From f1cae1649c846ade6e139a9569014e6d0d0fd943 Mon Sep 17 00:00:00 2001 From: pangwenbo <102557135@qq.com> Date: Mon, 20 Jul 2020 10:40:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E5=85=A5=E6=96=87=E6=A1=A3=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- lib/cheersUploadImage/index.js | 8 ++++---- lib/index/index.js | 8 ++++---- lib/style/cheersUploadImage.css | 2 +- lib/style/index.css | 2 +- package.json | 2 +- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 2d46927..be318b6 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ -项目详解 \ No newline at end of file +### 文档地址 +https://pangwenbo.github.io/cheers-ui/ \ No newline at end of file diff --git a/lib/cheersUploadImage/index.js b/lib/cheersUploadImage/index.js index 2818384..8421973 100644 --- a/lib/cheersUploadImage/index.js +++ b/lib/cheersUploadImage/index.js @@ -1,10 +1,10 @@ -module.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="265c")}({"0261":function(t,e,n){"use strict";n.r(e),function(t){ +module.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="265c")}({"0014":function(t,e,n){},"0261":function(t,e,n){"use strict";n.r(e),function(t){ /*! * Vue.js v2.6.11 * (c) 2014-2019 Evan You * Released under the MIT License. */ -var n=Object.freeze({});function i(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function a(t){return!0===t}function o(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function c(t){return null!==t&&"object"===typeof t}var l=Object.prototype.toString;function u(t){return"[object Object]"===l.call(t)}function h(t){return"[object RegExp]"===l.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return r(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function f(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var _=/-(\w)/g,C=x((function(t){return t.replace(_,(function(t,e){return e?e.toUpperCase():""}))})),A=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),k=/\B([A-Z])/g,O=x((function(t){return t.replace(k,"-$1").toLowerCase()}));function D(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function S(t,e){return t.bind(e)}var T=Function.prototype.bind?S:D;function M(t,e){e=e||0;var n=t.length-e,i=new Array(n);while(n--)i[n]=t[n+e];return i}function E(t,e){for(var n in e)t[n]=e[n];return t}function $(t){for(var e={},n=0;n0,nt=Z&&Z.indexOf("edge/")>0,it=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),rt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),at={}.watch,ot=!1;if(K)try{var st={};Object.defineProperty(st,"passive",{get:function(){ot=!0}}),window.addEventListener("test-passive",null,st)}catch(Co){}var ct=function(){return void 0===V&&(V=!K&&!Q&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),V},lt=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var ht,dt="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);ht="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var pt=I,ft=0,mt=function(){this.id=ft++,this.subs=[]};mt.prototype.addSub=function(t){this.subs.push(t)},mt.prototype.removeSub=function(t){y(this.subs,t)},mt.prototype.depend=function(){mt.target&&mt.target.addDep(this)},mt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(a&&!w(r,"default"))o=!1;else if(""===o||o===O(t)){var c=te(String,r.type);(c<0||s0&&(o=De(o,(e||"")+"_"+n),Oe(o[0])&&Oe(l)&&(u[c]=_t(l.text+o[0].text),o.shift()),u.push.apply(u,o)):s(o)?Oe(l)?u[c]=_t(l.text+o):""!==o&&u.push(_t(o)):Oe(o)&&Oe(l)?u[c]=_t(l.text+o.text):(a(t._isVList)&&r(o.tag)&&i(o.key)&&r(e)&&(o.key="__vlist"+e+"_"+n+"__"),u.push(o)));return u}function Se(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Te(t){var e=Me(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(n){Bt(t,n,e[n])})),Tt(!0))}function Me(t,e){if(t){for(var n=Object.create(null),i=dt?Reflect.ownKeys(t):Object.keys(t),r=0;r0,o=t?!!t.$stable:!a,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(o&&i&&i!==n&&s===i.$key&&!a&&!i.$hasNormal)return i;for(var c in r={},t)t[c]&&"$"!==c[0]&&(r[c]=Be(e,c,t[c]))}else r={};for(var l in e)l in r||(r[l]=Le(e,l));return t&&Object.isExtensible(t)&&(t._normalized=r),X(r,"$stable",o),X(r,"$key",s),X(r,"$hasNormal",a),r}function Be(t,e,n){var i=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:ke(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:i,enumerable:!0,configurable:!0}),i}function Le(t,e){return function(){return t[e]}}function Re(t,e){var n,i,a,o,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),i=0,a=t.length;i1?M(n):n;for(var i=M(arguments,1),r='event handler for "'+t+'"',a=0,o=n.length;adocument.createEvent("Event").timeStamp&&(Vn=function(){return Gn.now()})}function Kn(){var t,e;for(Yn=Vn(),Wn=!0,Pn.sort((function(t,e){return t.id-e.id})),Xn=0;XnXn&&Pn[n].id>t.id)n--;Pn.splice(n+1,0,t)}else Pn.push(t);Hn||(Hn=!0,fe(Kn))}}var ei=0,ni=function(t,e,n,i,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ei,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ht,this.newDepIds=new ht,this.expression="","function"===typeof e?this.getter=e:(this.getter=Y(e),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()};ni.prototype.get=function(){var t;gt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Co){if(!this.user)throw Co;ee(Co,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ve(t),yt(),this.cleanupDeps()}return t},ni.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},ni.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ni.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ti(this)},ni.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Co){ee(Co,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},ni.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ni.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},ni.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var ii={enumerable:!0,configurable:!0,get:I,set:I};function ri(t,e,n){ii.get=function(){return this[e][n]},ii.set=function(t){this[e][n]=t},Object.defineProperty(t,n,ii)}function ai(t){t._watchers=[];var e=t.$options;e.props&&oi(t,e.props),e.methods&&fi(t,e.methods),e.data?si(t):It(t._data={},!0),e.computed&&ui(t,e.computed),e.watch&&e.watch!==at&&mi(t,e.watch)}function oi(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],a=!t.$parent;a||Tt(!1);var o=function(a){r.push(a);var o=Kt(a,e,n,t);Bt(i,a,o),a in t||ri(t,"_props",a)};for(var s in e)o(s);Tt(!0)}function si(t){var e=t.$options.data;e=t._data="function"===typeof e?ci(e,t):e||{},u(e)||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);while(r--){var a=n[r];0,i&&w(i,a)||W(a)||ri(t,"_data",a)}It(e,!0)}function ci(t,e){gt();try{return t.call(e,e)}catch(Co){return ee(Co,e,"data()"),{}}finally{yt()}}var li={lazy:!0};function ui(t,e){var n=t._computedWatchers=Object.create(null),i=ct();for(var r in e){var a=e[r],o="function"===typeof a?a:a.get;0,i||(n[r]=new ni(t,o||I,I,li)),r in t||hi(t,r,a)}}function hi(t,e,n){var i=!ct();"function"===typeof n?(ii.get=i?di(e):pi(n),ii.set=I):(ii.get=n.get?i&&!1!==n.cache?di(e):pi(n.get):I,ii.set=n.set||I),Object.defineProperty(t,e,ii)}function di(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),mt.target&&e.depend(),e.value}}function pi(t){return function(){return t.call(this,this)}}function fi(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?I:T(e[n],t)}function mi(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r-1)return this;var n=M(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function ki(t){t.mixin=function(t){return this.options=Vt(this.options,t),this}}function Oi(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var a=t.name||n.options.name;var o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=Vt(n.options,t),o["super"]=n,o.options.props&&Di(o),o.options.computed&&Si(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,P.forEach((function(t){o[t]=n[t]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=t,o.sealedOptions=E({},o.options),r[i]=o,o}}function Di(t){var e=t.options.props;for(var n in e)ri(t.prototype,"_props",n)}function Si(t){var e=t.options.computed;for(var n in e)hi(t.prototype,n,e[n])}function Ti(t){P.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Mi(t){return t&&(t.Ctor.options.name||t.tag)}function Ei(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function $i(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var a in n){var o=n[a];if(o){var s=Mi(o.componentOptions);s&&!e(s)&&Ii(n,a,i,r)}}}function Ii(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,y(n,e)}bi(Ci),gi(Ci),Tn(Ci),In(Ci),yn(Ci);var Bi=[String,RegExp,Array],Li={name:"keep-alive",abstract:!0,props:{include:Bi,exclude:Bi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Ii(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){$i(t,(function(t){return Ei(e,t)}))})),this.$watch("exclude",(function(e){$i(t,(function(t){return!Ei(e,t)}))}))},render:function(){var t=this.$slots.default,e=Cn(t),n=e&&e.componentOptions;if(n){var i=Mi(n),r=this,a=r.include,o=r.exclude;if(a&&(!i||!Ei(a,i))||o&&i&&Ei(o,i))return e;var s=this,c=s.cache,l=s.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[u]?(e.componentInstance=c[u].componentInstance,y(l,u),l.push(u)):(c[u]=e,l.push(u),this.max&&l.length>parseInt(this.max)&&Ii(c,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Ri={KeepAlive:Li};function Fi(t){var e={get:function(){return U}};Object.defineProperty(t,"config",e),t.util={warn:pt,extend:E,mergeOptions:Vt,defineReactive:Bt},t.set=Lt,t.delete=Rt,t.nextTick=fe,t.observable=function(t){return It(t),t},t.options=Object.create(null),P.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,E(t.options.components,Ri),Ai(t),ki(t),Oi(t),Ti(t)}Fi(Ci),Object.defineProperty(Ci.prototype,"$isServer",{get:ct}),Object.defineProperty(Ci.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ci,"FunctionalRenderContext",{value:Qe}),Ci.version="2.6.11";var ji=v("style,class"),Ni=v("input,textarea,option,select,progress"),Pi=function(t,e,n){return"value"===n&&Ni(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},zi=v("contenteditable,draggable,spellcheck"),Ui=v("events,caret,typing,plaintext-only"),Hi=function(t,e){return Vi(e)||"false"===e?"false":"contenteditable"===t&&Ui(e)?e:"true"},Wi=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Xi="http://www.w3.org/1999/xlink",qi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Yi=function(t){return qi(t)?t.slice(6,t.length):""},Vi=function(t){return null==t||!1===t};function Gi(t){var e=t.data,n=t,i=t;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(e=Ki(i.data,e));while(r(n=n.parent))n&&n.data&&(e=Ki(e,n.data));return Qi(e.staticClass,e.class)}function Ki(t,e){return{staticClass:Ji(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Qi(t,e){return r(t)||r(e)?Ji(t,Zi(e)):""}function Ji(t,e){return t?e?t+" "+e:t:e||""}function Zi(t){return Array.isArray(t)?tr(t):c(t)?er(t):"string"===typeof t?t:""}function tr(t){for(var e,n="",i=0,a=t.length;i-1?sr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:sr[t]=/HTMLUnknownElement/.test(e.toString())}var lr=v("text,number,password,search,email,tel,url");function ur(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function hr(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function dr(t,e){return document.createElementNS(nr[t],e)}function pr(t){return document.createTextNode(t)}function fr(t){return document.createComment(t)}function mr(t,e,n){t.insertBefore(e,n)}function vr(t,e){t.removeChild(e)}function gr(t,e){t.appendChild(e)}function yr(t){return t.parentNode}function br(t){return t.nextSibling}function wr(t){return t.tagName}function xr(t,e){t.textContent=e}function _r(t,e){t.setAttribute(e,"")}var Cr=Object.freeze({createElement:hr,createElementNS:dr,createTextNode:pr,createComment:fr,insertBefore:mr,removeChild:vr,appendChild:gr,parentNode:yr,nextSibling:br,tagName:wr,setTextContent:xr,setStyleScope:_r}),Ar={create:function(t,e){kr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(kr(t,!0),kr(e))},destroy:function(t){kr(t,!0)}};function kr(t,e){var n=t.data.ref;if(r(n)){var i=t.context,a=t.componentInstance||t.elm,o=i.$refs;e?Array.isArray(o[n])?y(o[n],a):o[n]===a&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(a)<0&&o[n].push(a):o[n]=[a]:o[n]=a}}var Or=new bt("",{},[]),Dr=["create","activate","update","remove","destroy"];function Sr(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&Tr(t,e)||a(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&i(e.asyncFactory.error))}function Tr(t,e){if("input"!==t.tag)return!0;var n,i=r(n=t.data)&&r(n=n.attrs)&&n.type,a=r(n=e.data)&&r(n=n.attrs)&&n.type;return i===a||lr(i)&&lr(a)}function Mr(t,e,n){var i,a,o={};for(i=e;i<=n;++i)a=t[i].key,r(a)&&(o[a]=i);return o}function Er(t){var e,n,o={},c=t.modules,l=t.nodeOps;for(e=0;em?(h=i(n[y+1])?null:n[y+1].elm,C(t,h,n,f,y,a)):f>y&&k(e,d,m)}function S(t,e,n,i){for(var a=n;a-1?Ur(t,e,n):Wi(e)?Vi(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):zi(e)?t.setAttribute(e,Hi(e,n)):qi(e)?Vi(n)?t.removeAttributeNS(Xi,Yi(e)):t.setAttributeNS(Xi,e,n):Ur(t,e,n)}function Ur(t,e,n){if(Vi(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var Hr={create:Pr,update:Pr};function Wr(t,e){var n=e.elm,a=e.data,o=t.data;if(!(i(a.staticClass)&&i(a.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=Gi(e),c=n._transitionClasses;r(c)&&(s=Ji(s,Zi(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Xr,qr={create:Wr,update:Wr},Yr="__r",Vr="__c";function Gr(t){if(r(t[Yr])){var e=tt?"change":"input";t[e]=[].concat(t[Yr],t[e]||[]),delete t[Yr]}r(t[Vr])&&(t.change=[].concat(t[Vr],t.change||[]),delete t[Vr])}function Kr(t,e,n){var i=Xr;return function r(){var a=e.apply(null,arguments);null!==a&&Zr(t,r,n,i)}}var Qr=oe&&!(rt&&Number(rt[1])<=53);function Jr(t,e,n,i){if(Qr){var r=Yn,a=e;e=a._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return a.apply(this,arguments)}}Xr.addEventListener(t,e,ot?{capture:n,passive:i}:n)}function Zr(t,e,n,i){(i||Xr).removeEventListener(t,e._wrapper||e,n)}function ta(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Xr=e.elm,Gr(n),we(n,r,Jr,Zr,Kr,e.context),Xr=void 0}}var ea,na={create:ta,update:ta};function ia(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,a,o=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in r(c.__ob__)&&(c=e.data.domProps=E({},c)),s)n in c||(o[n]="");for(n in c){if(a=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),a===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=a;var l=i(a)?"":String(a);ra(o,l)&&(o.value=l)}else if("innerHTML"===n&&rr(o.tagName)&&i(o.innerHTML)){ea=ea||document.createElement("div"),ea.innerHTML=""+a+"";var u=ea.firstChild;while(o.firstChild)o.removeChild(o.firstChild);while(u.firstChild)o.appendChild(u.firstChild)}else if(a!==s[n])try{o[n]=a}catch(Co){}}}}function ra(t,e){return!t.composing&&("OPTION"===t.tagName||aa(t,e)||oa(t,e))}function aa(t,e){var n=!0;try{n=document.activeElement!==t}catch(Co){}return n&&t.value!==e}function oa(t,e){var n=t.value,i=t._vModifiers;if(r(i)){if(i.number)return m(n)!==m(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}var sa={create:ia,update:ia},ca=x((function(t){var e={},n=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function la(t){var e=ua(t.style);return t.staticStyle?E(t.staticStyle,e):e}function ua(t){return Array.isArray(t)?$(t):"string"===typeof t?ca(t):t}function ha(t,e){var n,i={};if(e){var r=t;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=la(r.data))&&E(i,n)}(n=la(t.data))&&E(i,n);var a=t;while(a=a.parent)a.data&&(n=la(a.data))&&E(i,n);return i}var da,pa=/^--/,fa=/\s*!important$/,ma=function(t,e,n){if(pa.test(e))t.style.setProperty(e,n);else if(fa.test(n))t.style.setProperty(O(e),n.replace(fa,""),"important");else{var i=ga(e);if(Array.isArray(n))for(var r=0,a=n.length;r-1?e.split(wa).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function _a(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wa).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Ca(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&E(e,Aa(t.name||"v")),E(e,t),e}return"string"===typeof t?Aa(t):void 0}}var Aa=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),ka=K&&!et,Oa="transition",Da="animation",Sa="transition",Ta="transitionend",Ma="animation",Ea="animationend";ka&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Sa="WebkitTransition",Ta="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ma="WebkitAnimation",Ea="webkitAnimationEnd"));var $a=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ia(t){$a((function(){$a(t)}))}function Ba(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),xa(t,e))}function La(t,e){t._transitionClasses&&y(t._transitionClasses,e),_a(t,e)}function Ra(t,e,n){var i=ja(t,e),r=i.type,a=i.timeout,o=i.propCount;if(!r)return n();var s=r===Oa?Ta:Ea,c=0,l=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++c>=o&&l()};setTimeout((function(){c0&&(n=Oa,u=o,h=a.length):e===Da?l>0&&(n=Da,u=l,h=c.length):(u=Math.max(o,l),n=u>0?o>l?Oa:Da:null,h=n?n===Oa?a.length:c.length:0);var d=n===Oa&&Fa.test(i[Sa+"Property"]);return{type:n,timeout:u,propCount:h,hasTransform:d}}function Na(t,e){while(t.length1}function Xa(t,e){!0!==e.data.show&&za(e)}var qa=K?{create:Xa,activate:Xa,remove:function(t,e){!0!==t.data.show?Ua(t,e):e()}}:{},Ya=[Hr,qr,na,sa,ba,qa],Va=Ya.concat(Nr),Ga=Er({nodeOps:Cr,modules:Va});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&io(t,"input")}));var Ka={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?xe(n,"postpatch",(function(){Ka.componentUpdated(t,e,n)})):Qa(t,e,n.context),t._vOptions=[].map.call(t.options,to)):("textarea"===n.tag||lr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",eo),t.addEventListener("compositionend",no),t.addEventListener("change",no),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Qa(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,to);if(r.some((function(t,e){return!R(t,i[e])}))){var a=t.multiple?e.value.some((function(t){return Za(t,r)})):e.value!==e.oldValue&&Za(e.value,r);a&&io(t,"change")}}}};function Qa(t,e,n){Ja(t,e,n),(tt||nt)&&setTimeout((function(){Ja(t,e,n)}),0)}function Ja(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var a,o,s=0,c=t.options.length;s-1,o.selected!==a&&(o.selected=a);else if(R(to(o),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function Za(t,e){return e.every((function(e){return!R(e,t)}))}function to(t){return"_value"in t?t._value:t.value}function eo(t){t.target.composing=!0}function no(t){t.target.composing&&(t.target.composing=!1,io(t.target,"input"))}function io(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ro(t){return!t.componentInstance||t.data&&t.data.transition?t:ro(t.componentInstance._vnode)}var ao={bind:function(t,e,n){var i=e.value;n=ro(n);var r=n.data&&n.data.transition,a=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,za(n,(function(){t.style.display=a}))):t.style.display=i?a:"none"},update:function(t,e,n){var i=e.value,r=e.oldValue;if(!i!==!r){n=ro(n);var a=n.data&&n.data.transition;a?(n.data.show=!0,i?za(n,(function(){t.style.display=t.__vOriginalDisplay})):Ua(n,(function(){t.style.display="none"}))):t.style.display=i?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}},oo={model:Ka,show:ao},so={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function co(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?co(Cn(e.children)):t}function lo(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var a in r)e[C(a)]=r[a];return e}function uo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function ho(t){while(t=t.parent)if(t.data.transition)return!0}function po(t,e){return e.key===t.key&&e.tag===t.tag}var fo=function(t){return t.tag||_n(t)},mo=function(t){return"show"===t.name},vo={name:"transition",props:so,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(fo),n.length)){0;var i=this.mode;0;var r=n[0];if(ho(this.$vnode))return r;var a=co(r);if(!a)return r;if(this._leaving)return uo(t,r);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var c=(a.data||(a.data={})).transition=lo(this),l=this._vnode,u=co(l);if(a.data.directives&&a.data.directives.some(mo)&&(a.data.show=!0),u&&u.data&&!po(a,u)&&!_n(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=E({},c);if("out-in"===i)return this._leaving=!0,xe(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),uo(t,r);if("in-out"===i){if(_n(a))return l;var d,p=function(){d()};xe(c,"afterEnter",p),xe(c,"enterCancelled",p),xe(h,"delayLeave",(function(t){d=t}))}}return r}}},go=E({tag:String,moveClass:String},so);delete go.mode;var yo={props:go,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=En(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],o=lo(this),s=0;s0?n("li",{key:i,style:t.imageThumbStyle},[n("image-cover",{attrs:{thumb:e,previewFile:t.previewFile}}),n("close-btn",{staticClass:"delete-btn",nativeOn:{click:function(e){return t.fileList.splice(i,1)}}})],1):t._e()]})),t.fileList.length""}},created(){},mounted(){},data(){return{}},computed:{thumbStyle(){return{width:this.width,height:this.height,border:this.border}},thumbSrc(){return this.previewFile+this.thumb},imageStyle(){const t=`${this.styleType} ${this.sizeType}-size`;return t}},methods:{fullImagePath(t){return t?(0===t.indexOf("http")||0===t.indexOf("../")||t.indexOf("data:"),t):""}},components:{}},u=l,h=(n("857a"),n("9ca4")),d=Object(h["a"])(u,s,c,!1,null,null,null),p=d.exports,f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"close-btn"})},m=[],v={created(){},mounted(){},data(){return{}},computed:{},methods:{},components:{}},g=v,y=(n("bc5e"),Object(h["a"])(g,f,m,!1,null,null,null)),b=y.exports,w=n("60e8"),x=n.n(w),_={name:"cheersUploadImage",components:{VueCropper:o.a,ImageCover:p,CloseBtn:b},props:{value:{type:String,default:""},maxSize:{type:Number,default:0},isCropper:{type:Boolean,default:!0},previewFile:{type:String,default:()=>""},text:{type:String,default:""},localPreview:{type:Boolean,default:!1},accept:{type:String,default:""},title:{type:String,default:"上传文件"},width:{type:Number,default:0},height:{type:Number,default:0},multi:{type:Number,default:1},uploadUrl:{type:"",default:()=>""}},data(){return{key:"",token:"",currentFile:{},fileList:[],imageSrc:"",cropImg:"",showCropper:!1,uploadStatus:0,uploadPercent:0,uploading:!1}},computed:{imageThumbStyle(){return{width:this.width/2+"px",height:this.height/2+"px"}},uuid(){return Math.random().toString(36).substring(3,8)}},watch:{value:{immediate:!0,handler:function(){let t=this.value;this.fileList=t&&t.length?t.split(","):[]}},fileList:{deep:!0,handler:function(){let t=this.fileList;this.$emit("input",t.length?t.join(","):"")}}},methods:{f_message(t){this.$refs.userfile.value=null,this.$message({message:t,type:"warning"})},async f_selectFile(t){let e=t.target.files[0];this.currentFile=e;let n=new RegExp("image/*","i").test(e.type);return this.fileList.length>=this.multi?this.f_message(`最多上传${this.multi}个文件`):n?e.size>1e3*this.maxSize?this.f_message(`请上传小于${this.maxSize}KB的文件`):void(this.isCropper?(this.f_previewFile(e),this.showCropper=!0):this.f_uploadFile(e)):this.f_message("请选择图片类型文件")},f_previewFile(t){x.a.Image(t).resize(800,800,"max").get((t,e)=>{t||(this.imageSrc=e.toDataURL(),this.$refs.cropper.replace(this.imageSrc))})},f_cropImage(){this.cropImg=this.$refs.cropper.getCroppedCanvas().toDataURL()},f_cancelCrop(){this.showCropper=!1},async f_confirmCrop(){this.uploading=!0;let t=this.f_canvasToFile(this.$refs.cropper.getCroppedCanvas(),this.currentFile.name);if(this.localPreview){var e=window.URL.createObjectURL(t);this.fileList.push(e),this.$emit("overUpload",!1,t)}else{await this.f_uploadFile(t)}this.uploading=!1,this.showCropper=!1},f_canvasToFile(t,e){return new File([this.f_dataURLtoBlob(t.toDataURL())],e)},f_dataURLtoBlob(t){var e=t.split(","),n=e[0].match(/:(.*?);/)[1],i=atob(e[1]),r=i.length,a=new Uint8Array(r);while(r--)a[r]=i.charCodeAt(r);return new Blob([a],{type:n})},async f_uploadFile(t,e,n){var i=new FormData;i.append("file",t);let r=await this.$http.post(this.uploadUrl,i,{headers:{"Content-Type":"multipart/form-data"}});0==r.body.errorCode&&(this.uploadStatus=2,this.fileList.push(r.body.data.fileName))}}},C=_,A=(n("d789"),Object(h["a"])(C,i,r,!1,null,"6d4ef5ba",null)),k=A.exports;k.install=function(t){t.component(k.name,k)};e["default"]=k},3496:function(t,e,n){ +var n=Object.freeze({});function i(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function a(t){return!0===t}function o(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function c(t){return null!==t&&"object"===typeof t}var l=Object.prototype.toString;function u(t){return"[object Object]"===l.call(t)}function h(t){return"[object RegExp]"===l.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return r(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function f(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var _=/-(\w)/g,C=x((function(t){return t.replace(_,(function(t,e){return e?e.toUpperCase():""}))})),A=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),k=/\B([A-Z])/g,O=x((function(t){return t.replace(k,"-$1").toLowerCase()}));function D(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function S(t,e){return t.bind(e)}var T=Function.prototype.bind?S:D;function M(t,e){e=e||0;var n=t.length-e,i=new Array(n);while(n--)i[n]=t[n+e];return i}function E(t,e){for(var n in e)t[n]=e[n];return t}function $(t){for(var e={},n=0;n0,nt=Z&&Z.indexOf("edge/")>0,it=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),rt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),at={}.watch,ot=!1;if(K)try{var st={};Object.defineProperty(st,"passive",{get:function(){ot=!0}}),window.addEventListener("test-passive",null,st)}catch(Co){}var ct=function(){return void 0===V&&(V=!K&&!Q&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),V},lt=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var ht,dt="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);ht="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var pt=I,ft=0,mt=function(){this.id=ft++,this.subs=[]};mt.prototype.addSub=function(t){this.subs.push(t)},mt.prototype.removeSub=function(t){y(this.subs,t)},mt.prototype.depend=function(){mt.target&&mt.target.addDep(this)},mt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(a&&!w(r,"default"))o=!1;else if(""===o||o===O(t)){var c=te(String,r.type);(c<0||s0&&(o=De(o,(e||"")+"_"+n),Oe(o[0])&&Oe(l)&&(u[c]=_t(l.text+o[0].text),o.shift()),u.push.apply(u,o)):s(o)?Oe(l)?u[c]=_t(l.text+o):""!==o&&u.push(_t(o)):Oe(o)&&Oe(l)?u[c]=_t(l.text+o.text):(a(t._isVList)&&r(o.tag)&&i(o.key)&&r(e)&&(o.key="__vlist"+e+"_"+n+"__"),u.push(o)));return u}function Se(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Te(t){var e=Me(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(n){Bt(t,n,e[n])})),Tt(!0))}function Me(t,e){if(t){for(var n=Object.create(null),i=dt?Reflect.ownKeys(t):Object.keys(t),r=0;r0,o=t?!!t.$stable:!a,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(o&&i&&i!==n&&s===i.$key&&!a&&!i.$hasNormal)return i;for(var c in r={},t)t[c]&&"$"!==c[0]&&(r[c]=Be(e,c,t[c]))}else r={};for(var l in e)l in r||(r[l]=Le(e,l));return t&&Object.isExtensible(t)&&(t._normalized=r),X(r,"$stable",o),X(r,"$key",s),X(r,"$hasNormal",a),r}function Be(t,e,n){var i=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:ke(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:i,enumerable:!0,configurable:!0}),i}function Le(t,e){return function(){return t[e]}}function Re(t,e){var n,i,a,o,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),i=0,a=t.length;i1?M(n):n;for(var i=M(arguments,1),r='event handler for "'+t+'"',a=0,o=n.length;adocument.createEvent("Event").timeStamp&&(Vn=function(){return Gn.now()})}function Kn(){var t,e;for(Yn=Vn(),Wn=!0,Pn.sort((function(t,e){return t.id-e.id})),Xn=0;XnXn&&Pn[n].id>t.id)n--;Pn.splice(n+1,0,t)}else Pn.push(t);Hn||(Hn=!0,fe(Kn))}}var ei=0,ni=function(t,e,n,i,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ei,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ht,this.newDepIds=new ht,this.expression="","function"===typeof e?this.getter=e:(this.getter=Y(e),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()};ni.prototype.get=function(){var t;gt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Co){if(!this.user)throw Co;ee(Co,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ve(t),yt(),this.cleanupDeps()}return t},ni.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},ni.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ni.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ti(this)},ni.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Co){ee(Co,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},ni.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ni.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},ni.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var ii={enumerable:!0,configurable:!0,get:I,set:I};function ri(t,e,n){ii.get=function(){return this[e][n]},ii.set=function(t){this[e][n]=t},Object.defineProperty(t,n,ii)}function ai(t){t._watchers=[];var e=t.$options;e.props&&oi(t,e.props),e.methods&&fi(t,e.methods),e.data?si(t):It(t._data={},!0),e.computed&&ui(t,e.computed),e.watch&&e.watch!==at&&mi(t,e.watch)}function oi(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],a=!t.$parent;a||Tt(!1);var o=function(a){r.push(a);var o=Kt(a,e,n,t);Bt(i,a,o),a in t||ri(t,"_props",a)};for(var s in e)o(s);Tt(!0)}function si(t){var e=t.$options.data;e=t._data="function"===typeof e?ci(e,t):e||{},u(e)||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);while(r--){var a=n[r];0,i&&w(i,a)||W(a)||ri(t,"_data",a)}It(e,!0)}function ci(t,e){gt();try{return t.call(e,e)}catch(Co){return ee(Co,e,"data()"),{}}finally{yt()}}var li={lazy:!0};function ui(t,e){var n=t._computedWatchers=Object.create(null),i=ct();for(var r in e){var a=e[r],o="function"===typeof a?a:a.get;0,i||(n[r]=new ni(t,o||I,I,li)),r in t||hi(t,r,a)}}function hi(t,e,n){var i=!ct();"function"===typeof n?(ii.get=i?di(e):pi(n),ii.set=I):(ii.get=n.get?i&&!1!==n.cache?di(e):pi(n.get):I,ii.set=n.set||I),Object.defineProperty(t,e,ii)}function di(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),mt.target&&e.depend(),e.value}}function pi(t){return function(){return t.call(this,this)}}function fi(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?I:T(e[n],t)}function mi(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r-1)return this;var n=M(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function ki(t){t.mixin=function(t){return this.options=Vt(this.options,t),this}}function Oi(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var a=t.name||n.options.name;var o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=Vt(n.options,t),o["super"]=n,o.options.props&&Di(o),o.options.computed&&Si(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,P.forEach((function(t){o[t]=n[t]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=t,o.sealedOptions=E({},o.options),r[i]=o,o}}function Di(t){var e=t.options.props;for(var n in e)ri(t.prototype,"_props",n)}function Si(t){var e=t.options.computed;for(var n in e)hi(t.prototype,n,e[n])}function Ti(t){P.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Mi(t){return t&&(t.Ctor.options.name||t.tag)}function Ei(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function $i(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var a in n){var o=n[a];if(o){var s=Mi(o.componentOptions);s&&!e(s)&&Ii(n,a,i,r)}}}function Ii(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,y(n,e)}bi(Ci),gi(Ci),Tn(Ci),In(Ci),yn(Ci);var Bi=[String,RegExp,Array],Li={name:"keep-alive",abstract:!0,props:{include:Bi,exclude:Bi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Ii(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){$i(t,(function(t){return Ei(e,t)}))})),this.$watch("exclude",(function(e){$i(t,(function(t){return!Ei(e,t)}))}))},render:function(){var t=this.$slots.default,e=Cn(t),n=e&&e.componentOptions;if(n){var i=Mi(n),r=this,a=r.include,o=r.exclude;if(a&&(!i||!Ei(a,i))||o&&i&&Ei(o,i))return e;var s=this,c=s.cache,l=s.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[u]?(e.componentInstance=c[u].componentInstance,y(l,u),l.push(u)):(c[u]=e,l.push(u),this.max&&l.length>parseInt(this.max)&&Ii(c,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Ri={KeepAlive:Li};function Fi(t){var e={get:function(){return U}};Object.defineProperty(t,"config",e),t.util={warn:pt,extend:E,mergeOptions:Vt,defineReactive:Bt},t.set=Lt,t.delete=Rt,t.nextTick=fe,t.observable=function(t){return It(t),t},t.options=Object.create(null),P.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,E(t.options.components,Ri),Ai(t),ki(t),Oi(t),Ti(t)}Fi(Ci),Object.defineProperty(Ci.prototype,"$isServer",{get:ct}),Object.defineProperty(Ci.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ci,"FunctionalRenderContext",{value:Qe}),Ci.version="2.6.11";var ji=v("style,class"),Ni=v("input,textarea,option,select,progress"),Pi=function(t,e,n){return"value"===n&&Ni(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},zi=v("contenteditable,draggable,spellcheck"),Ui=v("events,caret,typing,plaintext-only"),Hi=function(t,e){return Vi(e)||"false"===e?"false":"contenteditable"===t&&Ui(e)?e:"true"},Wi=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Xi="http://www.w3.org/1999/xlink",qi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Yi=function(t){return qi(t)?t.slice(6,t.length):""},Vi=function(t){return null==t||!1===t};function Gi(t){var e=t.data,n=t,i=t;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(e=Ki(i.data,e));while(r(n=n.parent))n&&n.data&&(e=Ki(e,n.data));return Qi(e.staticClass,e.class)}function Ki(t,e){return{staticClass:Ji(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Qi(t,e){return r(t)||r(e)?Ji(t,Zi(e)):""}function Ji(t,e){return t?e?t+" "+e:t:e||""}function Zi(t){return Array.isArray(t)?tr(t):c(t)?er(t):"string"===typeof t?t:""}function tr(t){for(var e,n="",i=0,a=t.length;i-1?sr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:sr[t]=/HTMLUnknownElement/.test(e.toString())}var lr=v("text,number,password,search,email,tel,url");function ur(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function hr(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function dr(t,e){return document.createElementNS(nr[t],e)}function pr(t){return document.createTextNode(t)}function fr(t){return document.createComment(t)}function mr(t,e,n){t.insertBefore(e,n)}function vr(t,e){t.removeChild(e)}function gr(t,e){t.appendChild(e)}function yr(t){return t.parentNode}function br(t){return t.nextSibling}function wr(t){return t.tagName}function xr(t,e){t.textContent=e}function _r(t,e){t.setAttribute(e,"")}var Cr=Object.freeze({createElement:hr,createElementNS:dr,createTextNode:pr,createComment:fr,insertBefore:mr,removeChild:vr,appendChild:gr,parentNode:yr,nextSibling:br,tagName:wr,setTextContent:xr,setStyleScope:_r}),Ar={create:function(t,e){kr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(kr(t,!0),kr(e))},destroy:function(t){kr(t,!0)}};function kr(t,e){var n=t.data.ref;if(r(n)){var i=t.context,a=t.componentInstance||t.elm,o=i.$refs;e?Array.isArray(o[n])?y(o[n],a):o[n]===a&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(a)<0&&o[n].push(a):o[n]=[a]:o[n]=a}}var Or=new bt("",{},[]),Dr=["create","activate","update","remove","destroy"];function Sr(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&Tr(t,e)||a(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&i(e.asyncFactory.error))}function Tr(t,e){if("input"!==t.tag)return!0;var n,i=r(n=t.data)&&r(n=n.attrs)&&n.type,a=r(n=e.data)&&r(n=n.attrs)&&n.type;return i===a||lr(i)&&lr(a)}function Mr(t,e,n){var i,a,o={};for(i=e;i<=n;++i)a=t[i].key,r(a)&&(o[a]=i);return o}function Er(t){var e,n,o={},c=t.modules,l=t.nodeOps;for(e=0;em?(h=i(n[y+1])?null:n[y+1].elm,C(t,h,n,f,y,a)):f>y&&k(e,d,m)}function S(t,e,n,i){for(var a=n;a-1?Ur(t,e,n):Wi(e)?Vi(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):zi(e)?t.setAttribute(e,Hi(e,n)):qi(e)?Vi(n)?t.removeAttributeNS(Xi,Yi(e)):t.setAttributeNS(Xi,e,n):Ur(t,e,n)}function Ur(t,e,n){if(Vi(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var Hr={create:Pr,update:Pr};function Wr(t,e){var n=e.elm,a=e.data,o=t.data;if(!(i(a.staticClass)&&i(a.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=Gi(e),c=n._transitionClasses;r(c)&&(s=Ji(s,Zi(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Xr,qr={create:Wr,update:Wr},Yr="__r",Vr="__c";function Gr(t){if(r(t[Yr])){var e=tt?"change":"input";t[e]=[].concat(t[Yr],t[e]||[]),delete t[Yr]}r(t[Vr])&&(t.change=[].concat(t[Vr],t.change||[]),delete t[Vr])}function Kr(t,e,n){var i=Xr;return function r(){var a=e.apply(null,arguments);null!==a&&Zr(t,r,n,i)}}var Qr=oe&&!(rt&&Number(rt[1])<=53);function Jr(t,e,n,i){if(Qr){var r=Yn,a=e;e=a._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return a.apply(this,arguments)}}Xr.addEventListener(t,e,ot?{capture:n,passive:i}:n)}function Zr(t,e,n,i){(i||Xr).removeEventListener(t,e._wrapper||e,n)}function ta(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Xr=e.elm,Gr(n),we(n,r,Jr,Zr,Kr,e.context),Xr=void 0}}var ea,na={create:ta,update:ta};function ia(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,a,o=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in r(c.__ob__)&&(c=e.data.domProps=E({},c)),s)n in c||(o[n]="");for(n in c){if(a=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),a===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=a;var l=i(a)?"":String(a);ra(o,l)&&(o.value=l)}else if("innerHTML"===n&&rr(o.tagName)&&i(o.innerHTML)){ea=ea||document.createElement("div"),ea.innerHTML=""+a+"";var u=ea.firstChild;while(o.firstChild)o.removeChild(o.firstChild);while(u.firstChild)o.appendChild(u.firstChild)}else if(a!==s[n])try{o[n]=a}catch(Co){}}}}function ra(t,e){return!t.composing&&("OPTION"===t.tagName||aa(t,e)||oa(t,e))}function aa(t,e){var n=!0;try{n=document.activeElement!==t}catch(Co){}return n&&t.value!==e}function oa(t,e){var n=t.value,i=t._vModifiers;if(r(i)){if(i.number)return m(n)!==m(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}var sa={create:ia,update:ia},ca=x((function(t){var e={},n=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function la(t){var e=ua(t.style);return t.staticStyle?E(t.staticStyle,e):e}function ua(t){return Array.isArray(t)?$(t):"string"===typeof t?ca(t):t}function ha(t,e){var n,i={};if(e){var r=t;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=la(r.data))&&E(i,n)}(n=la(t.data))&&E(i,n);var a=t;while(a=a.parent)a.data&&(n=la(a.data))&&E(i,n);return i}var da,pa=/^--/,fa=/\s*!important$/,ma=function(t,e,n){if(pa.test(e))t.style.setProperty(e,n);else if(fa.test(n))t.style.setProperty(O(e),n.replace(fa,""),"important");else{var i=ga(e);if(Array.isArray(n))for(var r=0,a=n.length;r-1?e.split(wa).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function _a(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wa).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Ca(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&E(e,Aa(t.name||"v")),E(e,t),e}return"string"===typeof t?Aa(t):void 0}}var Aa=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),ka=K&&!et,Oa="transition",Da="animation",Sa="transition",Ta="transitionend",Ma="animation",Ea="animationend";ka&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Sa="WebkitTransition",Ta="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ma="WebkitAnimation",Ea="webkitAnimationEnd"));var $a=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ia(t){$a((function(){$a(t)}))}function Ba(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),xa(t,e))}function La(t,e){t._transitionClasses&&y(t._transitionClasses,e),_a(t,e)}function Ra(t,e,n){var i=ja(t,e),r=i.type,a=i.timeout,o=i.propCount;if(!r)return n();var s=r===Oa?Ta:Ea,c=0,l=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++c>=o&&l()};setTimeout((function(){c0&&(n=Oa,u=o,h=a.length):e===Da?l>0&&(n=Da,u=l,h=c.length):(u=Math.max(o,l),n=u>0?o>l?Oa:Da:null,h=n?n===Oa?a.length:c.length:0);var d=n===Oa&&Fa.test(i[Sa+"Property"]);return{type:n,timeout:u,propCount:h,hasTransform:d}}function Na(t,e){while(t.length1}function Xa(t,e){!0!==e.data.show&&za(e)}var qa=K?{create:Xa,activate:Xa,remove:function(t,e){!0!==t.data.show?Ua(t,e):e()}}:{},Ya=[Hr,qr,na,sa,ba,qa],Va=Ya.concat(Nr),Ga=Er({nodeOps:Cr,modules:Va});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&io(t,"input")}));var Ka={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?xe(n,"postpatch",(function(){Ka.componentUpdated(t,e,n)})):Qa(t,e,n.context),t._vOptions=[].map.call(t.options,to)):("textarea"===n.tag||lr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",eo),t.addEventListener("compositionend",no),t.addEventListener("change",no),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Qa(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,to);if(r.some((function(t,e){return!R(t,i[e])}))){var a=t.multiple?e.value.some((function(t){return Za(t,r)})):e.value!==e.oldValue&&Za(e.value,r);a&&io(t,"change")}}}};function Qa(t,e,n){Ja(t,e,n),(tt||nt)&&setTimeout((function(){Ja(t,e,n)}),0)}function Ja(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var a,o,s=0,c=t.options.length;s-1,o.selected!==a&&(o.selected=a);else if(R(to(o),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function Za(t,e){return e.every((function(e){return!R(e,t)}))}function to(t){return"_value"in t?t._value:t.value}function eo(t){t.target.composing=!0}function no(t){t.target.composing&&(t.target.composing=!1,io(t.target,"input"))}function io(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ro(t){return!t.componentInstance||t.data&&t.data.transition?t:ro(t.componentInstance._vnode)}var ao={bind:function(t,e,n){var i=e.value;n=ro(n);var r=n.data&&n.data.transition,a=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,za(n,(function(){t.style.display=a}))):t.style.display=i?a:"none"},update:function(t,e,n){var i=e.value,r=e.oldValue;if(!i!==!r){n=ro(n);var a=n.data&&n.data.transition;a?(n.data.show=!0,i?za(n,(function(){t.style.display=t.__vOriginalDisplay})):Ua(n,(function(){t.style.display="none"}))):t.style.display=i?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}},oo={model:Ka,show:ao},so={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function co(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?co(Cn(e.children)):t}function lo(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var a in r)e[C(a)]=r[a];return e}function uo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function ho(t){while(t=t.parent)if(t.data.transition)return!0}function po(t,e){return e.key===t.key&&e.tag===t.tag}var fo=function(t){return t.tag||_n(t)},mo=function(t){return"show"===t.name},vo={name:"transition",props:so,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(fo),n.length)){0;var i=this.mode;0;var r=n[0];if(ho(this.$vnode))return r;var a=co(r);if(!a)return r;if(this._leaving)return uo(t,r);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var c=(a.data||(a.data={})).transition=lo(this),l=this._vnode,u=co(l);if(a.data.directives&&a.data.directives.some(mo)&&(a.data.show=!0),u&&u.data&&!po(a,u)&&!_n(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=E({},c);if("out-in"===i)return this._leaving=!0,xe(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),uo(t,r);if("in-out"===i){if(_n(a))return l;var d,p=function(){d()};xe(c,"afterEnter",p),xe(c,"enterCancelled",p),xe(h,"delayLeave",(function(t){d=t}))}}return r}}},go=E({tag:String,moveClass:String},so);delete go.mode;var yo={props:go,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=En(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],o=lo(this),s=0;s0?n("li",{key:i,style:t.imageThumbStyle},[n("close-btn",{staticClass:"deleBtn",nativeOn:{click:function(e){return t.fileList.splice(i,1)}}}),n("image-cover",{attrs:{thumb:e,previewFile:t.previewFile}})],1):t._e()]})),t.fileList.length""}},created(){},mounted(){},data(){return{}},computed:{thumbStyle(){return{width:this.width,height:this.height,border:this.border}},thumbSrc(){return this.previewFile+this.thumb},imageStyle(){const t=`${this.styleType} ${this.sizeType}-size`;return t}},methods:{fullImagePath(t){return t?(0===t.indexOf("http")||0===t.indexOf("../")||t.indexOf("data:"),t):""}},components:{}},u=l,h=(n("857a"),n("9ca4")),d=Object(h["a"])(u,s,c,!1,null,null,null),p=d.exports,f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"close-btn"})},m=[],v={created(){},mounted(){},data(){return{}},computed:{},methods:{},components:{}},g=v,y=(n("9bb9"),Object(h["a"])(g,f,m,!1,null,"5af0fa1f",null)),b=y.exports,w=n("60e8"),x=n.n(w),_={name:"cheersUploadImage",components:{VueCropper:o.a,ImageCover:p,CloseBtn:b},props:{value:{type:String,default:""},maxSize:{type:Number,default:0},isCropper:{type:Boolean,default:!0},previewFile:{type:String,default:()=>""},text:{type:String,default:""},localPreview:{type:Boolean,default:!1},accept:{type:String,default:""},title:{type:String,default:"上传文件"},width:{type:Number,default:0},height:{type:Number,default:0},multi:{type:Number,default:1},uploadUrl:{type:"",default:()=>""}},data(){return{key:"",token:"",currentFile:{},fileList:[],imageSrc:"",cropImg:"",showCropper:!1,uploadStatus:0,uploadPercent:0,uploading:!1}},computed:{imageThumbStyle(){return{width:this.width/2+"px",height:this.height/2+"px"}},uuid(){return Math.random().toString(36).substring(3,8)}},watch:{value:{immediate:!0,handler:function(){let t=this.value;this.fileList=t&&t.length?t.split(","):[]}},fileList:{deep:!0,handler:function(){let t=this.fileList;this.$emit("input",t.length?t.join(","):"")}}},methods:{f_message(t){this.$refs.userfile.value=null,this.$message({message:t,type:"warning"})},async f_selectFile(t){let e=t.target.files[0];this.currentFile=e;let n=new RegExp("image/*","i").test(e.type);return this.fileList.length>=this.multi?this.f_message(`最多上传${this.multi}个文件`):n?e.size>1e3*this.maxSize?this.f_message(`请上传小于${this.maxSize}KB的文件`):void(this.isCropper?(this.f_previewFile(e),this.showCropper=!0):this.f_uploadFile(e)):this.f_message("请选择图片类型文件")},f_previewFile(t){x.a.Image(t).resize(800,800,"max").get((t,e)=>{t||(this.imageSrc=e.toDataURL(),this.$refs.cropper.replace(this.imageSrc))})},f_cropImage(){this.cropImg=this.$refs.cropper.getCroppedCanvas().toDataURL()},f_cancelCrop(){this.showCropper=!1},async f_confirmCrop(){this.uploading=!0;let t=this.f_canvasToFile(this.$refs.cropper.getCroppedCanvas(),this.currentFile.name);if(this.localPreview){var e=window.URL.createObjectURL(t);this.fileList.push(e),this.$emit("overUpload",!1,t)}else{await this.f_uploadFile(t)}this.uploading=!1,this.showCropper=!1},f_canvasToFile(t,e){return new File([this.f_dataURLtoBlob(t.toDataURL())],e)},f_dataURLtoBlob(t){var e=t.split(","),n=e[0].match(/:(.*?);/)[1],i=atob(e[1]),r=i.length,a=new Uint8Array(r);while(r--)a[r]=i.charCodeAt(r);return new Blob([a],{type:n})},async f_uploadFile(t,e,n){var i=new FormData;i.append("file",t);let r=await this.$http.post(this.uploadUrl,i,{headers:{"Content-Type":"multipart/form-data"}});0==r.body.errorCode&&(this.uploadStatus=2,this.fileList.push(r.body.data.fileName))}}},C=_,A=(n("6c77"),Object(h["a"])(C,i,r,!1,null,"b31b64ac",null)),k=A.exports;k.install=function(t){t.component(k.name,k)};e["default"]=k},3496:function(t,e,n){ /*! * Cropper.js v1.5.7 * https://fengyuanchen.github.io/cropperjs @@ -14,7 +14,7 @@ var n=Object.freeze({});function i(t){return void 0===t||null===t}function r(t){ * * Date: 2020-05-23T05:23:00.081Z */ -(function(e,n){t.exports=n()})(0,(function(){"use strict";function t(e){return t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n
',ut=Number.isNaN||f.isNaN;function ht(t){return"number"===typeof t&&!ut(t)}var dt=function(t){return t>0&&t<1/0};function pt(t){return"undefined"===typeof t}function ft(e){return"object"===t(e)&&null!==e}var mt=Object.prototype.hasOwnProperty;function vt(t){if(!ft(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&mt.call(n,"isPrototypeOf")}catch(i){return!1}}function gt(t){return"function"===typeof t}var yt=Array.prototype.slice;function bt(t){return Array.from?Array.from(t):yt.call(t)}function wt(t,e){return t&>(e)&&(Array.isArray(t)||ht(t.length)?bt(t).forEach((function(n,i){e.call(t,n,i,t)})):ft(t)&&Object.keys(t).forEach((function(n){e.call(t,t[n],n,t)}))),t}var xt=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&n.forEach((function(e){ft(e)&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t},_t=/\.\d*(?:0|9){12}\d*$/;function Ct(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return _t.test(t)?Math.round(t*e)/e:t}var At=/^width|height|left|top|marginLeft|marginTop$/;function kt(t,e){var n=t.style;wt(e,(function(t,e){At.test(e)&&ht(t)&&(t="".concat(t,"px")),n[e]=t}))}function Ot(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function Dt(t,e){if(e)if(ht(t.length))wt(t,(function(t){Dt(t,e)}));else if(t.classList)t.classList.add(e);else{var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function St(t,e){e&&(ht(t.length)?wt(t,(function(t){St(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function Tt(t,e,n){e&&(ht(t.length)?wt(t,(function(t){Tt(t,e,n)})):n?Dt(t,e):St(t,e))}var Mt=/([a-z\d])([A-Z])/g;function Et(t){return t.replace(Mt,"$1-$2").toLowerCase()}function $t(t,e){return ft(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(Et(e)))}function It(t,e,n){ft(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(Et(e)),n)}function Bt(t,e){if(ft(t[e]))try{delete t[e]}catch(n){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(n){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(Et(e)))}var Lt=/\s\s*/,Rt=function(){var t=!1;if(p){var e=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});f.addEventListener("test",n,i),f.removeEventListener("test",n,i)}return t}();function Ft(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n;e.trim().split(Lt).forEach((function(e){if(!Rt){var a=t.listeners;a&&a[e]&&a[e][n]&&(r=a[e][n],delete a[e][n],0===Object.keys(a[e]).length&&delete a[e],0===Object.keys(a).length&&delete t.listeners)}t.removeEventListener(e,r,i)}))}function jt(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n;e.trim().split(Lt).forEach((function(e){if(i.once&&!Rt){var a=t.listeners,o=void 0===a?{}:a;r=function(){delete o[e][n],t.removeEventListener(e,r,i);for(var a=arguments.length,s=new Array(a),c=0;c1&&void 0!==arguments[1]?arguments[1]:"contain",a=dt(i),o=dt(n);if(a&&o){var s=n*e;"contain"===r&&s>i||"cover"===r&&s90?{width:c,height:s}:{width:s,height:c}}function Qt(t,e,n,i){var r=e.aspectRatio,a=e.naturalWidth,o=e.naturalHeight,c=e.rotate,l=void 0===c?0:c,u=e.scaleX,h=void 0===u?1:u,d=e.scaleY,p=void 0===d?1:d,f=n.aspectRatio,m=n.naturalWidth,v=n.naturalHeight,g=i.fillColor,y=void 0===g?"transparent":g,b=i.imageSmoothingEnabled,w=void 0===b||b,x=i.imageSmoothingQuality,_=void 0===x?"low":x,C=i.maxWidth,A=void 0===C?1/0:C,k=i.maxHeight,O=void 0===k?1/0:k,D=i.minWidth,S=void 0===D?0:D,T=i.minHeight,M=void 0===T?0:T,E=document.createElement("canvas"),$=E.getContext("2d"),I=Gt({aspectRatio:f,width:A,height:O}),B=Gt({aspectRatio:f,width:S,height:M},"cover"),L=Math.min(I.width,Math.max(B.width,m)),R=Math.min(I.height,Math.max(B.height,v)),F=Gt({aspectRatio:r,width:A,height:O}),j=Gt({aspectRatio:r,width:S,height:M},"cover"),N=Math.min(F.width,Math.max(j.width,a)),P=Math.min(F.height,Math.max(j.height,o)),z=[-N/2,-P/2,N,P];return E.width=Ct(L),E.height=Ct(R),$.fillStyle=y,$.fillRect(0,0,L,R),$.save(),$.translate(L/2,R/2),$.rotate(l*Math.PI/180),$.scale(h,p),$.imageSmoothingEnabled=w,$.imageSmoothingQuality=_,$.drawImage.apply($,[t].concat(s(z.map((function(t){return Math.floor(Ct(t))}))))),$.restore(),E}var Jt=String.fromCharCode;function Zt(t,e,n){var i="";n+=e;for(var r=e;r0)n.push(Jt.apply(null,bt(r.subarray(0,i)))),r=r.subarray(i);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}function ie(t){var e,n=new DataView(t);try{var i,r,a;if(255===n.getUint8(0)&&216===n.getUint8(1)){var o=n.byteLength,s=2;while(s+1=8&&(a=l+h)}}}if(a){var d,p,f=n.getUint16(a,i);for(p=0;pt.width?3===n?s=t.height*o:c=t.width/o:3===n?c=t.width/o:s=t.height*o;var l={aspectRatio:o,naturalWidth:r,naturalHeight:a,width:s,height:c};l.left=(t.width-s)/2,l.top=(t.height-c)/2,l.oldLeft=l.left,l.oldTop=l.top,this.canvasData=l,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=xt({},e),this.initialCanvasData=xt({},l)},limitCanvas:function(t,e){var n=this.options,i=this.containerData,r=this.canvasData,a=this.cropBoxData,o=n.viewMode,s=r.aspectRatio,c=this.cropped&&a;if(t){var l=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;o>1?(l=Math.max(l,i.width),u=Math.max(u,i.height),3===o&&(u*s>l?l=u*s:u=l/s)):o>0&&(l?l=Math.max(l,c?a.width:0):u?u=Math.max(u,c?a.height:0):c&&(l=a.width,u=a.height,u*s>l?l=u*s:u=l/s));var h=Gt({aspectRatio:s,width:l,height:u});l=h.width,u=h.height,r.minWidth=l,r.minHeight=u,r.maxWidth=1/0,r.maxHeight=1/0}if(e)if(o>(c?0:1)){var d=i.width-r.width,p=i.height-r.height;r.minLeft=Math.min(0,d),r.minTop=Math.min(0,p),r.maxLeft=Math.max(0,d),r.maxTop=Math.max(0,p),c&&this.limited&&(r.minLeft=Math.min(a.left,a.left+(a.width-r.width)),r.minTop=Math.min(a.top,a.top+(a.height-r.height)),r.maxLeft=a.left,r.maxTop=a.top,2===o&&(r.width>=i.width&&(r.minLeft=Math.min(0,d),r.maxLeft=Math.max(0,d)),r.height>=i.height&&(r.minTop=Math.min(0,p),r.maxTop=Math.max(0,p))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=i.width,r.maxTop=i.height},renderCanvas:function(t,e){var n=this.canvasData,i=this.imageData;if(e){var r=Kt({width:i.naturalWidth*Math.abs(i.scaleX||1),height:i.naturalHeight*Math.abs(i.scaleY||1),degree:i.rotate||0}),a=r.width,o=r.height,s=n.width*(a/n.naturalWidth),c=n.height*(o/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(c-n.height)/2,n.width=s,n.height=c,n.aspectRatio=a/o,n.naturalWidth=a,n.naturalHeight=o,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighte.width?r.height=r.width/n:r.width=r.height*n),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*i),r.height=Math.max(r.minHeight,r.height*i),r.left=e.left+(e.width-r.width)/2,r.top=e.top+(e.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=xt({},r)},limitCropBox:function(t,e){var n=this.options,i=this.containerData,r=this.canvasData,a=this.cropBoxData,o=this.limited,s=n.aspectRatio;if(t){var c=Number(n.minCropBoxWidth)||0,l=Number(n.minCropBoxHeight)||0,u=o?Math.min(i.width,r.width,r.width+r.left,i.width-r.left):i.width,h=o?Math.min(i.height,r.height,r.height+r.top,i.height-r.top):i.height;c=Math.min(c,i.width),l=Math.min(l,i.height),s&&(c&&l?l*s>c?l=c/s:c=l*s:c?l=c/s:l&&(c=l*s),h*s>u?h=u/s:u=h*s),a.minWidth=Math.min(c,u),a.minHeight=Math.min(l,h),a.maxWidth=u,a.maxHeight=h}e&&(o?(a.minLeft=Math.max(0,r.left),a.minTop=Math.max(0,r.top),a.maxLeft=Math.min(i.width,r.left+r.width)-a.width,a.maxTop=Math.min(i.height,r.top+r.height)-a.height):(a.minLeft=0,a.minTop=0,a.maxLeft=i.width-a.width,a.maxTop=i.height-a.height))},renderCropBox:function(){var t=this.options,e=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=e.width&&n.height>=e.height?w:y),kt(this.cropBox,xt({width:n.width,height:n.height},Xt({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Nt(this.element,U,this.getData())}},oe={initPreview:function(){var t=this.element,e=this.crossOrigin,n=this.options.preview,i=e?this.crossOriginUrl:this.url,r=t.alt||"The image to preview",a=document.createElement("img");if(e&&(a.crossOrigin=e),a.src=i,a.alt=r,this.viewBox.appendChild(a),this.viewBoxImage=a,n){var o=n;"string"===typeof n?o=t.ownerDocument.querySelectorAll(n):n.querySelector&&(o=[n]),this.previews=o,wt(o,(function(t){var n=document.createElement("img");It(t,j,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(n.crossOrigin=e),n.src=i,n.alt=r,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(n)}))}},resetPreview:function(){wt(this.previews,(function(t){var e=$t(t,j);kt(t,{width:e.width,height:e.height}),t.innerHTML=e.html,Bt(t,j)}))},preview:function(){var t=this.imageData,e=this.canvasData,n=this.cropBoxData,i=n.width,r=n.height,a=t.width,o=t.height,s=n.left-e.left-t.left,c=n.top-e.top-t.top;this.cropped&&!this.disabled&&(kt(this.viewBoxImage,xt({width:a,height:o},Xt(xt({translateX:-s,translateY:-c},t)))),wt(this.previews,(function(e){var n=$t(e,j),l=n.width,u=n.height,h=l,d=u,p=1;i&&(p=l/i,d=r*p),r&&d>u&&(p=u/r,h=i*p,d=u),kt(e,{width:h,height:d}),kt(e.getElementsByTagName("img")[0],xt({width:a*p,height:o*p},Xt(xt({translateX:-s*p,translateY:-c*p},t))))})))}},se={bind:function(){var t=this.element,e=this.options,n=this.cropper;gt(e.cropstart)&&jt(t,X,e.cropstart),gt(e.cropmove)&&jt(t,W,e.cropmove),gt(e.cropend)&&jt(t,H,e.cropend),gt(e.crop)&&jt(t,U,e.crop),gt(e.zoom)&&jt(t,nt,e.zoom),jt(n,K,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&jt(n,et,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&jt(n,q,this.onDblclick=this.dblclick.bind(this)),jt(t.ownerDocument,Q,this.onCropMove=this.cropMove.bind(this)),jt(t.ownerDocument,J,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&jt(window,tt,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,n=this.cropper;gt(e.cropstart)&&Ft(t,X,e.cropstart),gt(e.cropmove)&&Ft(t,W,e.cropmove),gt(e.cropend)&&Ft(t,H,e.cropend),gt(e.crop)&&Ft(t,U,e.crop),gt(e.zoom)&&Ft(t,nt,e.zoom),Ft(n,K,this.onCropStart),e.zoomable&&e.zoomOnWheel&&Ft(n,et,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Ft(n,q,this.onDblclick),Ft(t.ownerDocument,Q,this.onCropMove),Ft(t.ownerDocument,J,this.onCropEnd),e.responsive&&Ft(window,tt,this.onResize)}},ce={resize:function(){if(!this.disabled){var t,e,n=this.options,i=this.container,r=this.containerData,a=i.offsetWidth/r.width;if(1!==a||i.offsetHeight!==r.height)n.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData(wt(t,(function(e,n){t[n]=e*a}))),this.setCropBoxData(wt(e,(function(t,n){e[n]=t*a}))))}},dblclick:function(){this.disabled||this.options.dragMode===z||this.setDragMode(Ot(this.dragBox,M)?P:N)},wheel:function(t){var e=this,n=Number(this.options.wheelZoomRatio)||.1,i=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?i=t.deltaY>0?1:-1:t.wheelDelta?i=-t.wheelDelta/120:t.detail&&(i=t.detail>0?1:-1),this.zoom(-i*n,t)))},cropStart:function(t){var e=t.buttons,n=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(ht(e)&&1!==e||ht(n)&&0!==n||t.ctrlKey))){var i,r=this.options,a=this.pointers;t.changedTouches?wt(t.changedTouches,(function(t){a[t.identifier]=Yt(t)})):a[t.pointerId||0]=Yt(t),i=Object.keys(a).length>1&&r.zoomable&&r.zoomOnTouch?x:$t(t.target,F),rt.test(i)&&!1!==Nt(this.element,X,{originalEvent:t,action:i})&&(t.preventDefault(),this.action=i,this.cropping=!1,i===b&&(this.cropping=!0,Dt(this.dragBox,L)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var n=this.pointers;t.preventDefault(),!1!==Nt(this.element,W,{originalEvent:t,action:e})&&(t.changedTouches?wt(t.changedTouches,(function(t){xt(n[t.identifier]||{},Yt(t,!0))})):xt(n[t.pointerId||0]||{},Yt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,n=this.pointers;t.changedTouches?wt(t.changedTouches,(function(t){delete n[t.identifier]})):delete n[t.pointerId||0],e&&(t.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Tt(this.dragBox,L,this.cropped&&this.options.modal)),Nt(this.element,H,{originalEvent:t,action:e}))}}},le={change:function(t){var e,n=this.options,i=this.canvasData,r=this.containerData,a=this.cropBoxData,o=this.pointers,s=this.action,c=n.aspectRatio,l=a.left,u=a.top,h=a.width,d=a.height,p=l+h,f=u+d,m=0,v=0,g=r.width,M=r.height,E=!0;!c&&t.shiftKey&&(c=h&&d?h/d:1),this.limited&&(m=a.minLeft,v=a.minTop,g=m+Math.min(r.width,i.width,i.left+i.width),M=v+Math.min(r.height,i.height,i.top+i.height));var I=o[Object.keys(o)[0]],B={x:I.endX-I.startX,y:I.endY-I.startY},L=function(t){switch(t){case _:p+B.x>g&&(B.x=g-p);break;case C:l+B.xM&&(B.y=M-f);break}};switch(s){case y:l+=B.x,u+=B.y;break;case _:if(B.x>=0&&(p>=g||c&&(u<=v||f>=M))){E=!1;break}L(_),h+=B.x,h<0&&(s=C,h=-h,l-=h),c&&(d=h/c,u+=(a.height-d)/2);break;case k:if(B.y<=0&&(u<=v||c&&(l<=m||p>=g))){E=!1;break}L(k),d-=B.y,u+=B.y,d<0&&(s=A,d=-d,u-=d),c&&(h=d*c,l+=(a.width-h)/2);break;case C:if(B.x<=0&&(l<=m||c&&(u<=v||f>=M))){E=!1;break}L(C),h-=B.x,l+=B.x,h<0&&(s=_,h=-h,l-=h),c&&(d=h/c,u+=(a.height-d)/2);break;case A:if(B.y>=0&&(f>=M||c&&(l<=m||p>=g))){E=!1;break}L(A),d+=B.y,d<0&&(s=k,d=-d,u-=d),c&&(h=d*c,l+=(a.width-h)/2);break;case O:if(c){if(B.y<=0&&(u<=v||p>=g)){E=!1;break}L(k),d-=B.y,u+=B.y,h=d*c}else L(k),L(_),B.x>=0?pv&&(d-=B.y,u+=B.y):(d-=B.y,u+=B.y);h<0&&d<0?(s=T,d=-d,h=-h,u-=d,l-=h):h<0?(s=D,h=-h,l-=h):d<0&&(s=S,d=-d,u-=d);break;case D:if(c){if(B.y<=0&&(u<=v||l<=m)){E=!1;break}L(k),d-=B.y,u+=B.y,h=d*c,l+=a.width-h}else L(k),L(C),B.x<=0?l>m?(h-=B.x,l+=B.x):B.y<=0&&u<=v&&(E=!1):(h-=B.x,l+=B.x),B.y<=0?u>v&&(d-=B.y,u+=B.y):(d-=B.y,u+=B.y);h<0&&d<0?(s=S,d=-d,h=-h,u-=d,l-=h):h<0?(s=O,h=-h,l-=h):d<0&&(s=T,d=-d,u-=d);break;case T:if(c){if(B.x<=0&&(l<=m||f>=M)){E=!1;break}L(C),h-=B.x,l+=B.x,d=h/c}else L(A),L(C),B.x<=0?l>m?(h-=B.x,l+=B.x):B.y>=0&&f>=M&&(E=!1):(h-=B.x,l+=B.x),B.y>=0?f=0&&(p>=g||f>=M)){E=!1;break}L(_),h+=B.x,d=h/c}else L(A),L(_),B.x>=0?p=0&&f>=M&&(E=!1):h+=B.x,B.y>=0?f0?s=B.y>0?S:O:B.x<0&&(l-=h,s=B.y>0?T:D),B.y<0&&(u-=d),this.cropped||(St(this.cropBox,$),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}E&&(a.width=h,a.height=d,a.left=l,a.top=u,this.action=s,this.renderCropBox()),wt(o,(function(t){t.startX=t.endX,t.startY=t.endY}))}},ue={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Dt(this.dragBox,L),St(this.cropBox,$),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=xt({},this.initialImageData),this.canvasData=xt({},this.initialCanvasData),this.cropBoxData=xt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(xt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),St(this.dragBox,L),Dt(this.cropBox,$)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,wt(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,St(this.cropper,E)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Dt(this.cropper,E)),this},destroy:function(){var t=this.element;return t[g]?(t[g]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,i=n.left,r=n.top;return this.moveTo(pt(t)?t:i+Number(t),pt(e)?e:r+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,i=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(ht(t)&&(n.left=t,i=!0),ht(e)&&(n.top=e,i=!0),i&&this.renderCanvas(!0)),this},zoom:function(t,e){var n=this.canvasData;return t=Number(t),t=t<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,null,e)},zoomTo:function(t,e,n){var i=this.options,r=this.canvasData,a=r.width,o=r.height,s=r.naturalWidth,c=r.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&i.zoomable){var l=s*t,u=c*t;if(!1===Nt(this.element,nt,{ratio:t,oldRatio:a/s,originalEvent:n}))return this;if(n){var h=this.pointers,d=Pt(this.cropper),p=h&&Object.keys(h).length?Vt(h):{pageX:n.pageX,pageY:n.pageY};r.left-=(l-a)*((p.pageX-d.left-r.left)/a),r.top-=(u-o)*((p.pageY-d.top-r.top)/o)}else vt(e)&&ht(e.x)&&ht(e.y)?(r.left-=(l-a)*((e.x-r.left)/a),r.top-=(u-o)*((e.y-r.top)/o)):(r.left-=(l-a)/2,r.top-=(u-o)/2);r.width=l,r.height=u,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),ht(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,ht(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(ht(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData,i=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(ht(t)&&(n.scaleX=t,i=!0),ht(e)&&(n.scaleY=e,i=!0),i&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,i=this.imageData,r=this.canvasData,a=this.cropBoxData;if(this.ready&&this.cropped){t={x:a.left-r.left,y:a.top-r.top,width:a.width,height:a.height};var o=i.width/i.naturalWidth;if(wt(t,(function(e,n){t[n]=e/o})),e){var s=Math.round(t.y+t.height),c=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=c-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return n.rotatable&&(t.rotate=i.rotate||0),n.scalable&&(t.scaleX=i.scaleX||1,t.scaleY=i.scaleY||1),t},setData:function(t){var e=this.options,n=this.imageData,i=this.canvasData,r={};if(this.ready&&!this.disabled&&vt(t)){var a=!1;e.rotatable&&ht(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,a=!0),e.scalable&&(ht(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,a=!0),ht(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var o=n.width/n.naturalWidth;ht(t.x)&&(r.left=t.x*o+i.left),ht(t.y)&&(r.top=t.y*o+i.top),ht(t.width)&&(r.width=t.width*o),ht(t.height)&&(r.height=t.height*o),this.setCropBoxData(r)}return this},getContainerData:function(){return this.ready?xt({},this.containerData):{}},getImageData:function(){return this.sized?xt({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&wt(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){e[n]=t[n]})),e},setCanvasData:function(t){var e=this.canvasData,n=e.aspectRatio;return this.ready&&!this.disabled&&vt(t)&&(ht(t.left)&&(e.left=t.left),ht(t.top)&&(e.top=t.top),ht(t.width)?(e.width=t.width,e.height=t.width/n):ht(t.height)&&(e.height=t.height,e.width=t.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,n,i=this.cropBoxData,r=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&vt(t)&&(ht(t.left)&&(i.left=t.left),ht(t.top)&&(i.top=t.top),ht(t.width)&&t.width!==i.width&&(e=!0,i.width=t.width),ht(t.height)&&t.height!==i.height&&(n=!0,i.height=t.height),r&&(e?i.height=i.width/r:n&&(i.width=i.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,n=Qt(this.image,this.imageData,e,t);if(!this.cropped)return n;var i=this.getData(),r=i.x,a=i.y,o=i.width,c=i.height,l=n.width/Math.floor(e.naturalWidth);1!==l&&(r*=l,a*=l,o*=l,c*=l);var u=o/c,h=Gt({aspectRatio:u,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),d=Gt({aspectRatio:u,width:t.minWidth||0,height:t.minHeight||0},"cover"),p=Gt({aspectRatio:u,width:t.width||(1!==l?n.width:o),height:t.height||(1!==l?n.height:c)}),f=p.width,m=p.height;f=Math.min(h.width,Math.max(d.width,f)),m=Math.min(h.height,Math.max(d.height,m));var v=document.createElement("canvas"),g=v.getContext("2d");v.width=Ct(f),v.height=Ct(m),g.fillStyle=t.fillColor||"transparent",g.fillRect(0,0,f,m);var y=t.imageSmoothingEnabled,b=void 0===y||y,w=t.imageSmoothingQuality;g.imageSmoothingEnabled=b,w&&(g.imageSmoothingQuality=w);var x,_,C,A,k,O,D=n.width,S=n.height,T=r,M=a;T<=-o||T>D?(T=0,x=0,C=0,k=0):T<=0?(C=-T,T=0,x=Math.min(D,o+T),k=x):T<=D&&(C=0,x=Math.min(o,D-T),k=x),x<=0||M<=-c||M>S?(M=0,_=0,A=0,O=0):M<=0?(A=-M,M=0,_=Math.min(S,c+M),O=_):M<=S&&(A=0,_=Math.min(c,S-M),O=_);var E=[T,M,x,_];if(k>0&&O>0){var $=f/o;E.push(C*$,A*$,k*$,O*$)}return g.drawImage.apply(g,[n].concat(s(E.map((function(t){return Math.floor(Ct(t))}))))),v},setAspectRatio:function(t){var e=this.options;return this.disabled||pt(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,n=this.dragBox,i=this.face;if(this.ready&&!this.disabled){var r=t===N,a=e.movable&&t===P;t=r||a?t:z,e.dragMode=t,It(n,F,t),Tt(n,M,r),Tt(n,R,a),e.cropBoxMovable||(It(i,F,t),Tt(i,M,r),Tt(i,R,a))}return this}},he=f.Cropper,de=function(){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,t),!n||!st.test(n.tagName))throw new Error("The first argument is required and must be an or element.");this.element=n,this.options=xt({},ct,vt(i)&&i),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return i(t,[{key:"init",value:function(){var t,e=this.element,n=e.tagName.toLowerCase();if(!e[g]){if(e[g]=this,"img"===n){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===n&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var n=this.element,i=this.options;if(i.rotatable||i.scalable||(i.checkOrientation=!1),i.checkOrientation&&window.ArrayBuffer)if(at.test(t))ot.test(t)?this.read(ee(t)):this.clone();else{var r=new XMLHttpRequest,a=this.clone.bind(this);this.reloading=!0,this.xhr=r,r.onabort=a,r.onerror=a,r.ontimeout=a,r.onprogress=function(){r.getResponseHeader("content-type")!==it&&r.abort()},r.onload=function(){e.read(r.response)},r.onloadend=function(){e.reloading=!1,e.xhr=null},i.checkCrossOrigin&&Ht(t)&&n.crossOrigin&&(t=Wt(t)),r.open("GET",t),r.responseType="arraybuffer",r.withCredentials="use-credentials"===n.crossOrigin,r.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,i=ie(t),r=0,a=1,o=1;if(i>1){this.url=ne(t,it);var s=re(i);r=s.rotate,a=s.scaleX,o=s.scaleY}e.rotatable&&(n.rotate=r),e.scalable&&(n.scaleX=a,n.scaleY=o),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,n=t.crossOrigin,i=e;this.options.checkCrossOrigin&&Ht(e)&&(n||(n="anonymous"),i=Wt(e)),this.crossOrigin=n,this.crossOriginUrl=i;var r=document.createElement("img");n&&(r.crossOrigin=n),r.src=i||e,r.alt=t.alt||"The image to crop",this.image=r,r.onload=this.start.bind(this),r.onerror=this.stop.bind(this),Dt(r,I),t.parentNode.insertBefore(r,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var n=f.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(f.navigator.userAgent),i=function(e,n){xt(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||n){var r=document.createElement("img"),a=document.body||document.documentElement;this.sizingImage=r,r.onload=function(){i(r.width,r.height),n||a.removeChild(r)},r.src=e.src,n||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",a.appendChild(r))}else i(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,n=this.image,i=t.parentNode,r=document.createElement("div");r.innerHTML=lt;var a=r.querySelector(".".concat(g,"-container")),o=a.querySelector(".".concat(g,"-canvas")),s=a.querySelector(".".concat(g,"-drag-box")),c=a.querySelector(".".concat(g,"-crop-box")),l=c.querySelector(".".concat(g,"-face"));this.container=i,this.cropper=a,this.canvas=o,this.dragBox=s,this.cropBox=c,this.viewBox=a.querySelector(".".concat(g,"-view-box")),this.face=l,o.appendChild(n),Dt(t,$),i.insertBefore(a,t.nextSibling),this.isImg||St(n,I),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,Dt(c,$),e.guides||Dt(c.getElementsByClassName("".concat(g,"-dashed")),$),e.center||Dt(c.getElementsByClassName("".concat(g,"-center")),$),e.background&&Dt(a,"".concat(g,"-bg")),e.highlight||Dt(l,B),e.cropBoxMovable&&(Dt(l,R),It(l,F,y)),e.cropBoxResizable||(Dt(c.getElementsByClassName("".concat(g,"-line")),$),Dt(c.getElementsByClassName("".concat(g,"-point")),$)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),gt(e.ready)&&jt(t,Z,e.ready,{once:!0}),Nt(t,Z)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),St(this.element,$))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=he,t}},{key:"setDefaults",value:function(t){xt(ct,vt(t)&&t)}}]),t}();return xt(de.prototype,ae,oe,se,ce,le,ue),de}))},4392:function(t,e,n){},"60e8":function(t,e,n){var i,r; +(function(e,n){t.exports=n()})(0,(function(){"use strict";function t(e){return t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n
',ut=Number.isNaN||f.isNaN;function ht(t){return"number"===typeof t&&!ut(t)}var dt=function(t){return t>0&&t<1/0};function pt(t){return"undefined"===typeof t}function ft(e){return"object"===t(e)&&null!==e}var mt=Object.prototype.hasOwnProperty;function vt(t){if(!ft(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&mt.call(n,"isPrototypeOf")}catch(i){return!1}}function gt(t){return"function"===typeof t}var yt=Array.prototype.slice;function bt(t){return Array.from?Array.from(t):yt.call(t)}function wt(t,e){return t&>(e)&&(Array.isArray(t)||ht(t.length)?bt(t).forEach((function(n,i){e.call(t,n,i,t)})):ft(t)&&Object.keys(t).forEach((function(n){e.call(t,t[n],n,t)}))),t}var xt=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&n.forEach((function(e){ft(e)&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t},_t=/\.\d*(?:0|9){12}\d*$/;function Ct(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return _t.test(t)?Math.round(t*e)/e:t}var At=/^width|height|left|top|marginLeft|marginTop$/;function kt(t,e){var n=t.style;wt(e,(function(t,e){At.test(e)&&ht(t)&&(t="".concat(t,"px")),n[e]=t}))}function Ot(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function Dt(t,e){if(e)if(ht(t.length))wt(t,(function(t){Dt(t,e)}));else if(t.classList)t.classList.add(e);else{var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function St(t,e){e&&(ht(t.length)?wt(t,(function(t){St(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function Tt(t,e,n){e&&(ht(t.length)?wt(t,(function(t){Tt(t,e,n)})):n?Dt(t,e):St(t,e))}var Mt=/([a-z\d])([A-Z])/g;function Et(t){return t.replace(Mt,"$1-$2").toLowerCase()}function $t(t,e){return ft(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(Et(e)))}function It(t,e,n){ft(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(Et(e)),n)}function Bt(t,e){if(ft(t[e]))try{delete t[e]}catch(n){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(n){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(Et(e)))}var Lt=/\s\s*/,Rt=function(){var t=!1;if(p){var e=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});f.addEventListener("test",n,i),f.removeEventListener("test",n,i)}return t}();function Ft(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n;e.trim().split(Lt).forEach((function(e){if(!Rt){var a=t.listeners;a&&a[e]&&a[e][n]&&(r=a[e][n],delete a[e][n],0===Object.keys(a[e]).length&&delete a[e],0===Object.keys(a).length&&delete t.listeners)}t.removeEventListener(e,r,i)}))}function jt(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n;e.trim().split(Lt).forEach((function(e){if(i.once&&!Rt){var a=t.listeners,o=void 0===a?{}:a;r=function(){delete o[e][n],t.removeEventListener(e,r,i);for(var a=arguments.length,s=new Array(a),c=0;c1&&void 0!==arguments[1]?arguments[1]:"contain",a=dt(i),o=dt(n);if(a&&o){var s=n*e;"contain"===r&&s>i||"cover"===r&&s90?{width:c,height:s}:{width:s,height:c}}function Qt(t,e,n,i){var r=e.aspectRatio,a=e.naturalWidth,o=e.naturalHeight,c=e.rotate,l=void 0===c?0:c,u=e.scaleX,h=void 0===u?1:u,d=e.scaleY,p=void 0===d?1:d,f=n.aspectRatio,m=n.naturalWidth,v=n.naturalHeight,g=i.fillColor,y=void 0===g?"transparent":g,b=i.imageSmoothingEnabled,w=void 0===b||b,x=i.imageSmoothingQuality,_=void 0===x?"low":x,C=i.maxWidth,A=void 0===C?1/0:C,k=i.maxHeight,O=void 0===k?1/0:k,D=i.minWidth,S=void 0===D?0:D,T=i.minHeight,M=void 0===T?0:T,E=document.createElement("canvas"),$=E.getContext("2d"),I=Gt({aspectRatio:f,width:A,height:O}),B=Gt({aspectRatio:f,width:S,height:M},"cover"),L=Math.min(I.width,Math.max(B.width,m)),R=Math.min(I.height,Math.max(B.height,v)),F=Gt({aspectRatio:r,width:A,height:O}),j=Gt({aspectRatio:r,width:S,height:M},"cover"),N=Math.min(F.width,Math.max(j.width,a)),P=Math.min(F.height,Math.max(j.height,o)),z=[-N/2,-P/2,N,P];return E.width=Ct(L),E.height=Ct(R),$.fillStyle=y,$.fillRect(0,0,L,R),$.save(),$.translate(L/2,R/2),$.rotate(l*Math.PI/180),$.scale(h,p),$.imageSmoothingEnabled=w,$.imageSmoothingQuality=_,$.drawImage.apply($,[t].concat(s(z.map((function(t){return Math.floor(Ct(t))}))))),$.restore(),E}var Jt=String.fromCharCode;function Zt(t,e,n){var i="";n+=e;for(var r=e;r0)n.push(Jt.apply(null,bt(r.subarray(0,i)))),r=r.subarray(i);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}function ie(t){var e,n=new DataView(t);try{var i,r,a;if(255===n.getUint8(0)&&216===n.getUint8(1)){var o=n.byteLength,s=2;while(s+1=8&&(a=l+h)}}}if(a){var d,p,f=n.getUint16(a,i);for(p=0;pt.width?3===n?s=t.height*o:c=t.width/o:3===n?c=t.width/o:s=t.height*o;var l={aspectRatio:o,naturalWidth:r,naturalHeight:a,width:s,height:c};l.left=(t.width-s)/2,l.top=(t.height-c)/2,l.oldLeft=l.left,l.oldTop=l.top,this.canvasData=l,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=xt({},e),this.initialCanvasData=xt({},l)},limitCanvas:function(t,e){var n=this.options,i=this.containerData,r=this.canvasData,a=this.cropBoxData,o=n.viewMode,s=r.aspectRatio,c=this.cropped&&a;if(t){var l=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;o>1?(l=Math.max(l,i.width),u=Math.max(u,i.height),3===o&&(u*s>l?l=u*s:u=l/s)):o>0&&(l?l=Math.max(l,c?a.width:0):u?u=Math.max(u,c?a.height:0):c&&(l=a.width,u=a.height,u*s>l?l=u*s:u=l/s));var h=Gt({aspectRatio:s,width:l,height:u});l=h.width,u=h.height,r.minWidth=l,r.minHeight=u,r.maxWidth=1/0,r.maxHeight=1/0}if(e)if(o>(c?0:1)){var d=i.width-r.width,p=i.height-r.height;r.minLeft=Math.min(0,d),r.minTop=Math.min(0,p),r.maxLeft=Math.max(0,d),r.maxTop=Math.max(0,p),c&&this.limited&&(r.minLeft=Math.min(a.left,a.left+(a.width-r.width)),r.minTop=Math.min(a.top,a.top+(a.height-r.height)),r.maxLeft=a.left,r.maxTop=a.top,2===o&&(r.width>=i.width&&(r.minLeft=Math.min(0,d),r.maxLeft=Math.max(0,d)),r.height>=i.height&&(r.minTop=Math.min(0,p),r.maxTop=Math.max(0,p))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=i.width,r.maxTop=i.height},renderCanvas:function(t,e){var n=this.canvasData,i=this.imageData;if(e){var r=Kt({width:i.naturalWidth*Math.abs(i.scaleX||1),height:i.naturalHeight*Math.abs(i.scaleY||1),degree:i.rotate||0}),a=r.width,o=r.height,s=n.width*(a/n.naturalWidth),c=n.height*(o/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(c-n.height)/2,n.width=s,n.height=c,n.aspectRatio=a/o,n.naturalWidth=a,n.naturalHeight=o,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighte.width?r.height=r.width/n:r.width=r.height*n),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*i),r.height=Math.max(r.minHeight,r.height*i),r.left=e.left+(e.width-r.width)/2,r.top=e.top+(e.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=xt({},r)},limitCropBox:function(t,e){var n=this.options,i=this.containerData,r=this.canvasData,a=this.cropBoxData,o=this.limited,s=n.aspectRatio;if(t){var c=Number(n.minCropBoxWidth)||0,l=Number(n.minCropBoxHeight)||0,u=o?Math.min(i.width,r.width,r.width+r.left,i.width-r.left):i.width,h=o?Math.min(i.height,r.height,r.height+r.top,i.height-r.top):i.height;c=Math.min(c,i.width),l=Math.min(l,i.height),s&&(c&&l?l*s>c?l=c/s:c=l*s:c?l=c/s:l&&(c=l*s),h*s>u?h=u/s:u=h*s),a.minWidth=Math.min(c,u),a.minHeight=Math.min(l,h),a.maxWidth=u,a.maxHeight=h}e&&(o?(a.minLeft=Math.max(0,r.left),a.minTop=Math.max(0,r.top),a.maxLeft=Math.min(i.width,r.left+r.width)-a.width,a.maxTop=Math.min(i.height,r.top+r.height)-a.height):(a.minLeft=0,a.minTop=0,a.maxLeft=i.width-a.width,a.maxTop=i.height-a.height))},renderCropBox:function(){var t=this.options,e=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=e.width&&n.height>=e.height?w:y),kt(this.cropBox,xt({width:n.width,height:n.height},Xt({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Nt(this.element,U,this.getData())}},oe={initPreview:function(){var t=this.element,e=this.crossOrigin,n=this.options.preview,i=e?this.crossOriginUrl:this.url,r=t.alt||"The image to preview",a=document.createElement("img");if(e&&(a.crossOrigin=e),a.src=i,a.alt=r,this.viewBox.appendChild(a),this.viewBoxImage=a,n){var o=n;"string"===typeof n?o=t.ownerDocument.querySelectorAll(n):n.querySelector&&(o=[n]),this.previews=o,wt(o,(function(t){var n=document.createElement("img");It(t,j,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(n.crossOrigin=e),n.src=i,n.alt=r,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(n)}))}},resetPreview:function(){wt(this.previews,(function(t){var e=$t(t,j);kt(t,{width:e.width,height:e.height}),t.innerHTML=e.html,Bt(t,j)}))},preview:function(){var t=this.imageData,e=this.canvasData,n=this.cropBoxData,i=n.width,r=n.height,a=t.width,o=t.height,s=n.left-e.left-t.left,c=n.top-e.top-t.top;this.cropped&&!this.disabled&&(kt(this.viewBoxImage,xt({width:a,height:o},Xt(xt({translateX:-s,translateY:-c},t)))),wt(this.previews,(function(e){var n=$t(e,j),l=n.width,u=n.height,h=l,d=u,p=1;i&&(p=l/i,d=r*p),r&&d>u&&(p=u/r,h=i*p,d=u),kt(e,{width:h,height:d}),kt(e.getElementsByTagName("img")[0],xt({width:a*p,height:o*p},Xt(xt({translateX:-s*p,translateY:-c*p},t))))})))}},se={bind:function(){var t=this.element,e=this.options,n=this.cropper;gt(e.cropstart)&&jt(t,X,e.cropstart),gt(e.cropmove)&&jt(t,W,e.cropmove),gt(e.cropend)&&jt(t,H,e.cropend),gt(e.crop)&&jt(t,U,e.crop),gt(e.zoom)&&jt(t,nt,e.zoom),jt(n,K,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&jt(n,et,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&jt(n,q,this.onDblclick=this.dblclick.bind(this)),jt(t.ownerDocument,Q,this.onCropMove=this.cropMove.bind(this)),jt(t.ownerDocument,J,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&jt(window,tt,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,n=this.cropper;gt(e.cropstart)&&Ft(t,X,e.cropstart),gt(e.cropmove)&&Ft(t,W,e.cropmove),gt(e.cropend)&&Ft(t,H,e.cropend),gt(e.crop)&&Ft(t,U,e.crop),gt(e.zoom)&&Ft(t,nt,e.zoom),Ft(n,K,this.onCropStart),e.zoomable&&e.zoomOnWheel&&Ft(n,et,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Ft(n,q,this.onDblclick),Ft(t.ownerDocument,Q,this.onCropMove),Ft(t.ownerDocument,J,this.onCropEnd),e.responsive&&Ft(window,tt,this.onResize)}},ce={resize:function(){if(!this.disabled){var t,e,n=this.options,i=this.container,r=this.containerData,a=i.offsetWidth/r.width;if(1!==a||i.offsetHeight!==r.height)n.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData(wt(t,(function(e,n){t[n]=e*a}))),this.setCropBoxData(wt(e,(function(t,n){e[n]=t*a}))))}},dblclick:function(){this.disabled||this.options.dragMode===z||this.setDragMode(Ot(this.dragBox,M)?P:N)},wheel:function(t){var e=this,n=Number(this.options.wheelZoomRatio)||.1,i=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?i=t.deltaY>0?1:-1:t.wheelDelta?i=-t.wheelDelta/120:t.detail&&(i=t.detail>0?1:-1),this.zoom(-i*n,t)))},cropStart:function(t){var e=t.buttons,n=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(ht(e)&&1!==e||ht(n)&&0!==n||t.ctrlKey))){var i,r=this.options,a=this.pointers;t.changedTouches?wt(t.changedTouches,(function(t){a[t.identifier]=Yt(t)})):a[t.pointerId||0]=Yt(t),i=Object.keys(a).length>1&&r.zoomable&&r.zoomOnTouch?x:$t(t.target,F),rt.test(i)&&!1!==Nt(this.element,X,{originalEvent:t,action:i})&&(t.preventDefault(),this.action=i,this.cropping=!1,i===b&&(this.cropping=!0,Dt(this.dragBox,L)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var n=this.pointers;t.preventDefault(),!1!==Nt(this.element,W,{originalEvent:t,action:e})&&(t.changedTouches?wt(t.changedTouches,(function(t){xt(n[t.identifier]||{},Yt(t,!0))})):xt(n[t.pointerId||0]||{},Yt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,n=this.pointers;t.changedTouches?wt(t.changedTouches,(function(t){delete n[t.identifier]})):delete n[t.pointerId||0],e&&(t.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Tt(this.dragBox,L,this.cropped&&this.options.modal)),Nt(this.element,H,{originalEvent:t,action:e}))}}},le={change:function(t){var e,n=this.options,i=this.canvasData,r=this.containerData,a=this.cropBoxData,o=this.pointers,s=this.action,c=n.aspectRatio,l=a.left,u=a.top,h=a.width,d=a.height,p=l+h,f=u+d,m=0,v=0,g=r.width,M=r.height,E=!0;!c&&t.shiftKey&&(c=h&&d?h/d:1),this.limited&&(m=a.minLeft,v=a.minTop,g=m+Math.min(r.width,i.width,i.left+i.width),M=v+Math.min(r.height,i.height,i.top+i.height));var I=o[Object.keys(o)[0]],B={x:I.endX-I.startX,y:I.endY-I.startY},L=function(t){switch(t){case _:p+B.x>g&&(B.x=g-p);break;case C:l+B.xM&&(B.y=M-f);break}};switch(s){case y:l+=B.x,u+=B.y;break;case _:if(B.x>=0&&(p>=g||c&&(u<=v||f>=M))){E=!1;break}L(_),h+=B.x,h<0&&(s=C,h=-h,l-=h),c&&(d=h/c,u+=(a.height-d)/2);break;case k:if(B.y<=0&&(u<=v||c&&(l<=m||p>=g))){E=!1;break}L(k),d-=B.y,u+=B.y,d<0&&(s=A,d=-d,u-=d),c&&(h=d*c,l+=(a.width-h)/2);break;case C:if(B.x<=0&&(l<=m||c&&(u<=v||f>=M))){E=!1;break}L(C),h-=B.x,l+=B.x,h<0&&(s=_,h=-h,l-=h),c&&(d=h/c,u+=(a.height-d)/2);break;case A:if(B.y>=0&&(f>=M||c&&(l<=m||p>=g))){E=!1;break}L(A),d+=B.y,d<0&&(s=k,d=-d,u-=d),c&&(h=d*c,l+=(a.width-h)/2);break;case O:if(c){if(B.y<=0&&(u<=v||p>=g)){E=!1;break}L(k),d-=B.y,u+=B.y,h=d*c}else L(k),L(_),B.x>=0?pv&&(d-=B.y,u+=B.y):(d-=B.y,u+=B.y);h<0&&d<0?(s=T,d=-d,h=-h,u-=d,l-=h):h<0?(s=D,h=-h,l-=h):d<0&&(s=S,d=-d,u-=d);break;case D:if(c){if(B.y<=0&&(u<=v||l<=m)){E=!1;break}L(k),d-=B.y,u+=B.y,h=d*c,l+=a.width-h}else L(k),L(C),B.x<=0?l>m?(h-=B.x,l+=B.x):B.y<=0&&u<=v&&(E=!1):(h-=B.x,l+=B.x),B.y<=0?u>v&&(d-=B.y,u+=B.y):(d-=B.y,u+=B.y);h<0&&d<0?(s=S,d=-d,h=-h,u-=d,l-=h):h<0?(s=O,h=-h,l-=h):d<0&&(s=T,d=-d,u-=d);break;case T:if(c){if(B.x<=0&&(l<=m||f>=M)){E=!1;break}L(C),h-=B.x,l+=B.x,d=h/c}else L(A),L(C),B.x<=0?l>m?(h-=B.x,l+=B.x):B.y>=0&&f>=M&&(E=!1):(h-=B.x,l+=B.x),B.y>=0?f=0&&(p>=g||f>=M)){E=!1;break}L(_),h+=B.x,d=h/c}else L(A),L(_),B.x>=0?p=0&&f>=M&&(E=!1):h+=B.x,B.y>=0?f0?s=B.y>0?S:O:B.x<0&&(l-=h,s=B.y>0?T:D),B.y<0&&(u-=d),this.cropped||(St(this.cropBox,$),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}E&&(a.width=h,a.height=d,a.left=l,a.top=u,this.action=s,this.renderCropBox()),wt(o,(function(t){t.startX=t.endX,t.startY=t.endY}))}},ue={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Dt(this.dragBox,L),St(this.cropBox,$),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=xt({},this.initialImageData),this.canvasData=xt({},this.initialCanvasData),this.cropBoxData=xt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(xt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),St(this.dragBox,L),Dt(this.cropBox,$)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,wt(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,St(this.cropper,E)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Dt(this.cropper,E)),this},destroy:function(){var t=this.element;return t[g]?(t[g]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,i=n.left,r=n.top;return this.moveTo(pt(t)?t:i+Number(t),pt(e)?e:r+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,i=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(ht(t)&&(n.left=t,i=!0),ht(e)&&(n.top=e,i=!0),i&&this.renderCanvas(!0)),this},zoom:function(t,e){var n=this.canvasData;return t=Number(t),t=t<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,null,e)},zoomTo:function(t,e,n){var i=this.options,r=this.canvasData,a=r.width,o=r.height,s=r.naturalWidth,c=r.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&i.zoomable){var l=s*t,u=c*t;if(!1===Nt(this.element,nt,{ratio:t,oldRatio:a/s,originalEvent:n}))return this;if(n){var h=this.pointers,d=Pt(this.cropper),p=h&&Object.keys(h).length?Vt(h):{pageX:n.pageX,pageY:n.pageY};r.left-=(l-a)*((p.pageX-d.left-r.left)/a),r.top-=(u-o)*((p.pageY-d.top-r.top)/o)}else vt(e)&&ht(e.x)&&ht(e.y)?(r.left-=(l-a)*((e.x-r.left)/a),r.top-=(u-o)*((e.y-r.top)/o)):(r.left-=(l-a)/2,r.top-=(u-o)/2);r.width=l,r.height=u,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),ht(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,ht(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(ht(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData,i=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(ht(t)&&(n.scaleX=t,i=!0),ht(e)&&(n.scaleY=e,i=!0),i&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,i=this.imageData,r=this.canvasData,a=this.cropBoxData;if(this.ready&&this.cropped){t={x:a.left-r.left,y:a.top-r.top,width:a.width,height:a.height};var o=i.width/i.naturalWidth;if(wt(t,(function(e,n){t[n]=e/o})),e){var s=Math.round(t.y+t.height),c=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=c-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return n.rotatable&&(t.rotate=i.rotate||0),n.scalable&&(t.scaleX=i.scaleX||1,t.scaleY=i.scaleY||1),t},setData:function(t){var e=this.options,n=this.imageData,i=this.canvasData,r={};if(this.ready&&!this.disabled&&vt(t)){var a=!1;e.rotatable&&ht(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,a=!0),e.scalable&&(ht(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,a=!0),ht(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var o=n.width/n.naturalWidth;ht(t.x)&&(r.left=t.x*o+i.left),ht(t.y)&&(r.top=t.y*o+i.top),ht(t.width)&&(r.width=t.width*o),ht(t.height)&&(r.height=t.height*o),this.setCropBoxData(r)}return this},getContainerData:function(){return this.ready?xt({},this.containerData):{}},getImageData:function(){return this.sized?xt({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&wt(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){e[n]=t[n]})),e},setCanvasData:function(t){var e=this.canvasData,n=e.aspectRatio;return this.ready&&!this.disabled&&vt(t)&&(ht(t.left)&&(e.left=t.left),ht(t.top)&&(e.top=t.top),ht(t.width)?(e.width=t.width,e.height=t.width/n):ht(t.height)&&(e.height=t.height,e.width=t.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,n,i=this.cropBoxData,r=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&vt(t)&&(ht(t.left)&&(i.left=t.left),ht(t.top)&&(i.top=t.top),ht(t.width)&&t.width!==i.width&&(e=!0,i.width=t.width),ht(t.height)&&t.height!==i.height&&(n=!0,i.height=t.height),r&&(e?i.height=i.width/r:n&&(i.width=i.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,n=Qt(this.image,this.imageData,e,t);if(!this.cropped)return n;var i=this.getData(),r=i.x,a=i.y,o=i.width,c=i.height,l=n.width/Math.floor(e.naturalWidth);1!==l&&(r*=l,a*=l,o*=l,c*=l);var u=o/c,h=Gt({aspectRatio:u,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),d=Gt({aspectRatio:u,width:t.minWidth||0,height:t.minHeight||0},"cover"),p=Gt({aspectRatio:u,width:t.width||(1!==l?n.width:o),height:t.height||(1!==l?n.height:c)}),f=p.width,m=p.height;f=Math.min(h.width,Math.max(d.width,f)),m=Math.min(h.height,Math.max(d.height,m));var v=document.createElement("canvas"),g=v.getContext("2d");v.width=Ct(f),v.height=Ct(m),g.fillStyle=t.fillColor||"transparent",g.fillRect(0,0,f,m);var y=t.imageSmoothingEnabled,b=void 0===y||y,w=t.imageSmoothingQuality;g.imageSmoothingEnabled=b,w&&(g.imageSmoothingQuality=w);var x,_,C,A,k,O,D=n.width,S=n.height,T=r,M=a;T<=-o||T>D?(T=0,x=0,C=0,k=0):T<=0?(C=-T,T=0,x=Math.min(D,o+T),k=x):T<=D&&(C=0,x=Math.min(o,D-T),k=x),x<=0||M<=-c||M>S?(M=0,_=0,A=0,O=0):M<=0?(A=-M,M=0,_=Math.min(S,c+M),O=_):M<=S&&(A=0,_=Math.min(c,S-M),O=_);var E=[T,M,x,_];if(k>0&&O>0){var $=f/o;E.push(C*$,A*$,k*$,O*$)}return g.drawImage.apply(g,[n].concat(s(E.map((function(t){return Math.floor(Ct(t))}))))),v},setAspectRatio:function(t){var e=this.options;return this.disabled||pt(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,n=this.dragBox,i=this.face;if(this.ready&&!this.disabled){var r=t===N,a=e.movable&&t===P;t=r||a?t:z,e.dragMode=t,It(n,F,t),Tt(n,M,r),Tt(n,R,a),e.cropBoxMovable||(It(i,F,t),Tt(i,M,r),Tt(i,R,a))}return this}},he=f.Cropper,de=function(){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,t),!n||!st.test(n.tagName))throw new Error("The first argument is required and must be an or element.");this.element=n,this.options=xt({},ct,vt(i)&&i),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return i(t,[{key:"init",value:function(){var t,e=this.element,n=e.tagName.toLowerCase();if(!e[g]){if(e[g]=this,"img"===n){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===n&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var n=this.element,i=this.options;if(i.rotatable||i.scalable||(i.checkOrientation=!1),i.checkOrientation&&window.ArrayBuffer)if(at.test(t))ot.test(t)?this.read(ee(t)):this.clone();else{var r=new XMLHttpRequest,a=this.clone.bind(this);this.reloading=!0,this.xhr=r,r.onabort=a,r.onerror=a,r.ontimeout=a,r.onprogress=function(){r.getResponseHeader("content-type")!==it&&r.abort()},r.onload=function(){e.read(r.response)},r.onloadend=function(){e.reloading=!1,e.xhr=null},i.checkCrossOrigin&&Ht(t)&&n.crossOrigin&&(t=Wt(t)),r.open("GET",t),r.responseType="arraybuffer",r.withCredentials="use-credentials"===n.crossOrigin,r.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,i=ie(t),r=0,a=1,o=1;if(i>1){this.url=ne(t,it);var s=re(i);r=s.rotate,a=s.scaleX,o=s.scaleY}e.rotatable&&(n.rotate=r),e.scalable&&(n.scaleX=a,n.scaleY=o),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,n=t.crossOrigin,i=e;this.options.checkCrossOrigin&&Ht(e)&&(n||(n="anonymous"),i=Wt(e)),this.crossOrigin=n,this.crossOriginUrl=i;var r=document.createElement("img");n&&(r.crossOrigin=n),r.src=i||e,r.alt=t.alt||"The image to crop",this.image=r,r.onload=this.start.bind(this),r.onerror=this.stop.bind(this),Dt(r,I),t.parentNode.insertBefore(r,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var n=f.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(f.navigator.userAgent),i=function(e,n){xt(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||n){var r=document.createElement("img"),a=document.body||document.documentElement;this.sizingImage=r,r.onload=function(){i(r.width,r.height),n||a.removeChild(r)},r.src=e.src,n||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",a.appendChild(r))}else i(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,n=this.image,i=t.parentNode,r=document.createElement("div");r.innerHTML=lt;var a=r.querySelector(".".concat(g,"-container")),o=a.querySelector(".".concat(g,"-canvas")),s=a.querySelector(".".concat(g,"-drag-box")),c=a.querySelector(".".concat(g,"-crop-box")),l=c.querySelector(".".concat(g,"-face"));this.container=i,this.cropper=a,this.canvas=o,this.dragBox=s,this.cropBox=c,this.viewBox=a.querySelector(".".concat(g,"-view-box")),this.face=l,o.appendChild(n),Dt(t,$),i.insertBefore(a,t.nextSibling),this.isImg||St(n,I),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,Dt(c,$),e.guides||Dt(c.getElementsByClassName("".concat(g,"-dashed")),$),e.center||Dt(c.getElementsByClassName("".concat(g,"-center")),$),e.background&&Dt(a,"".concat(g,"-bg")),e.highlight||Dt(l,B),e.cropBoxMovable&&(Dt(l,R),It(l,F,y)),e.cropBoxResizable||(Dt(c.getElementsByClassName("".concat(g,"-line")),$),Dt(c.getElementsByClassName("".concat(g,"-point")),$)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),gt(e.ready)&&jt(t,Z,e.ready,{once:!0}),Nt(t,Z)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),St(this.element,$))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=he,t}},{key:"setDefaults",value:function(t){xt(ct,vt(t)&&t)}}]),t}();return xt(de.prototype,ae,oe,se,ce,le,ue),de}))},"60e8":function(t,e,n){var i,r; /*! FileAPI 2.1.1 - BSD | git://github.com/mailru/FileAPI.git * FileAPI — a set of javascript tools for working with files. Multiupload, drag'n'drop and chunked file upload. Images: crop, resize and auto orientation by EXIF. - */(function(t){"use strict";var e=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,n=t.Blob&&function(){try{return Boolean(new Blob)}catch(t){return!1}}(),i=n&&t.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(t){return!1}}(),r=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder,a=(n||r)&&t.atob&&t.ArrayBuffer&&t.Uint8Array&&function(t){var e,a,o,s,c,l;for(e=t.split(",")[0].indexOf("base64")>=0?atob(t.split(",")[1]):decodeURIComponent(t.split(",")[1]),a=new ArrayBuffer(e.length),o=new Uint8Array(a),s=0;s0,C=t.dataURLtoBlob,A=/img/i,k=/canvas/i,O=/img|canvas/i,D=/input/i,S=/^data:[^,]+,/,T={}.toString,M=t.Math,E=function(e){return e=new t.Number(M.pow(1024,e)),e.from=function(t){return M.round(t*this)},e},$={},I=[],B="abort progress error load loadend",L="status statusText readyState response responseXML responseText responseBody".split(" "),R="currentTarget",F="preventDefault",j=function(t){return t&&"length"in t},N=function(t,e,n){if(t)if(j(t))for(var i=0,r=t.length;i=n&&!i&&a.end()},isFail:function(){return i},fail:function(){!i&&t(i=!0)},end:function(){r||(r=!0,t())}};return a},each:N,afor:function(t,e){var n=0,i=t.length;j(t)&&i--?function r(){e(i!=n&&r,t[n],n++)}():e(!1)},extend:P,isFile:function(t){return"[object File]"===T.call(t)},isBlob:function(t){return this.isFile(t)||"[object Blob]"===T.call(t)},isCanvas:function(t){return t&&k.test(t.nodeName)},getFilesFilter:function(t){return t="string"==typeof t?t:t.getAttribute&&t.getAttribute("accept")||"",t?new RegExp("("+t.replace(/\./g,"\\.").replace(/,/g,"|")+")$","i"):/./},readAsDataURL:function(t,e){q.isCanvas(t)?Y(t,e,"load",q.toDataURL(t)):G(t,e,"DataURL")},readAsBinaryString:function(t,e){V("BinaryString")?G(t,e,"BinaryString"):G(t,(function(t){if("load"==t.type)try{t.result=q.toBinaryString(t.result)}catch(n){t.type="error",t.message=n.toString()}e(t)}),"DataURL")},readAsArrayBuffer:function(t,e){G(t,e,"ArrayBuffer")},readAsText:function(t,e,n){n||(n=e,e="utf-8"),G(t,n,"Text",e)},toDataURL:function(t,e){return"string"==typeof t?t:t.toDataURL?t.toDataURL(e||"image/png"):void 0},toBinaryString:function(e){return t.atob(q.toDataURL(e).replace(S,""))},readAsImage:function(t,n,i){if(q.isBlob(t))if(d){var r=d.createObjectURL(t);r===e?Y(t,n,"error"):q.readAsImage(r,n,i)}else q.readAsDataURL(t,(function(e){"load"==e.type?q.readAsImage(e.result,n,i):(i||"error"==e.type)&&Y(t,n,e,null,{loaded:e.loaded,total:e.total})}));else if(q.isCanvas(t))Y(t,n,"load",t);else if(A.test(t.nodeName))if(t.complete)Y(t,n,"load",t);else{var a="error abort load";H(t,a,(function e(i){"load"==i.type&&d&&d.revokeObjectURL(t.src),U(t,a,e),Y(t,n,i,t)}))}else if(t.iframe)Y(t,n,{type:"error"});else{var o=q.newImage(t.dataURL||t);q.readAsImage(o,n,i)}},checkFileObj:function(t){var e={},n=q.accept;return"object"==typeof t?e=t:e.name=(t+"").split(/\\|\//g).pop(),null==e.type&&(e.type=e.name.split(".").pop()),N(n,(function(t,n){t=new RegExp(t.replace(/\s/g,"|"),"i"),(t.test(e.type)||q.ext2mime[e.type])&&(e.type=q.ext2mime[e.type]||n.split("/")[0]+"/"+e.type)})),e},getDropFiles:function(t,e){var n,i=[],r=[],a=nt(t),o=a.files,s=a.items,c=j(s)&&s[0]&&J(s[0]),l=q.queue((function(){e(i,r)}));if(c)if(_&&o){var u,h,d=o.length;n=new Array(d);while(d--){u=o[d];try{h=J(s[d])}catch(p){q.log("[err] getDropFiles: ",p),h=null}Q(h)&&(h.isDirectory||h.isFile&&u.name==u.name.normalize("NFC"))?n[d]=h:n[d]=u}}else n=s;else n=o;N(n||[],(function(t){l.inc();try{c&&Q(t)?Z(t,(function(t,e,n){t?q.log("[err] getDropFiles:",t):i.push.apply(i,e),r.push.apply(r,n),l.next()})):K(t,(function(e,n){e?i.push(t):t.error=n,r.push(t),l.next()}))}catch(p){l.next(),q.log("[err] getDropFiles: ",p)}})),l.check()},getFiles:function(t,e,n){var i=[];return n?(q.filterFiles(q.getFiles(t),e,n),null):(t.jquery&&(t.each((function(){i=i.concat(q.getFiles(this))})),t=i,i=[]),"string"==typeof e&&(e=q.getFilesFilter(e)),t.originalEvent?t=W(t.originalEvent):t.srcElement&&(t=W(t)),t.dataTransfer?t=t.dataTransfer:t.target&&(t=t.target),t.files?(i=t.files,b||(i[0].blob=t,i[0].iframe=!0)):!b&&et(t)?q.trim(t.value)&&(i=[q.checkFileObj(t.value)],i[0].blob=t,i[0].iframe=!0):j(t)&&(i=t),q.filter(i,(function(t){return!e||e.test(t.name)})))},getTotalSize:function(t){var e=0,n=t&&t.length;while(n--)e+=t[n].size;return e},getInfo:function(t,e){var n={},i=I.concat();q.isBlob(t)?function r(){var a=i.shift();a?a.test(t.type)?a(t,(function(t,i){t?e(t):(P(n,i),r())})):r():e(!1,n)}():e("not_support_info",n)},addInfoReader:function(t,e){e.test=function(e){return t.test(e)},I.push(e)},filter:function(t,e){for(var n,i=[],r=0,a=t.length;r>2,u=(3&o)<<4|s>>4;isNaN(s)?r=a=64:(r=(15&s)<<2|c>>6,a=isNaN(c)?64:63&c),n+=e.charAt(l)+e.charAt(u)+e.charAt(r)+e.charAt(a)}return n}};function Y(t,e,n,i,r){var a={type:n.type||n,target:t,result:i};P(a,r),e(a)}function V(t){return m&&!!m.prototype["readAs"+t]}function G(t,n,i,r){if(q.isBlob(t)&&V(i)){var a=new m;z(a,B,(function e(i){var r=i.type;"progress"==r?Y(t,n,i,i.target.result,{loaded:i.loaded,total:i.total}):"loadend"==r?(U(a,B,e),a=null):Y(t,n,i,i.target.result)}));try{r?a["readAs"+i](t,r):a["readAs"+i](t)}catch(o){Y(t,n,"error",e,{error:o.toString()})}}else Y(t,n,"error",e,{error:"filreader_not_support_"+i})}function K(t,e){if(!t.type&&(l||t.size%4096===0&&t.size<=102400))if(m)try{var n=new m;H(n,B,(function(t){var i="error"!=t.type;i?(null!=n.readyState&&n.readyState!==n.LOADING||n.abort(),e(i)):e(!1,n.error)})),n.readAsDataURL(t)}catch(i){e(!1,i)}else e(null,new Error("FileReader is not supported"));else e(!0)}function Q(t){return t&&(t.isFile||t.isDirectory)}function J(t){var e;return t.getAsEntry?e=t.getAsEntry():t.webkitGetAsEntry&&(e=t.webkitGetAsEntry()),e}function Z(t,e){if(t)if(t.isFile)t.file((function(n){n.fullPath=t.fullPath,e(!1,[n],[n])}),(function(n){t.error=n,e("FileError.code: "+n.code,[],[t])}));else if(t.isDirectory){var n=t.createReader(),i=!0,r=[],a=[t],o=function(n){t.error=n,e("DirectoryError.code: "+n.code,r,a)},s=function s(c){i&&(i=!1,c.length||(t.error=new Error("directory is empty"))),c.length?q.afor(c,(function(t,e){Z(e,(function(e,i,c){e||(r=r.concat(i)),a=a.concat(c),t?t():n.readEntries(s,o)}))})):e(!1,r,a)};n.readEntries(s,o)}else Z(J(t),e);else{var c=new Error("invalid entry");t=new Object(t),t.error=c,e(c.message,[],[t])}}function tt(t){var e={};return N(t,(function(t,n){t&&"object"===typeof t&&void 0===t.nodeType&&(t=P({},t)),e[n]=t})),e}function et(t){return D.test(t&&t.tagName)}function nt(t){return(t.originalEvent||t||"").dataTransfer||{}}function it(t){var e;for(e in t)if(t.hasOwnProperty(e)&&!(t[e]instanceof Object||"overlay"===e||"filter"===e))return!0;return!1}q.addInfoReader(/^image/,(function(t,e){if(!t.__dimensions){var n=t.__dimensions=q.defer();q.readAsImage(t,(function(t){var e=t.target;n.resolve("load"!=t.type&&"error",{width:e.width,height:e.height}),e.src=q.EMPTY_PNG,e=null}))}t.__dimensions.then(e)})),q.event.dnd=function(t,e,n){var i,r;n||(n=e,e=q.F),m?(z(t,"dragenter dragleave dragover",e.ff=e.ff||function(t){var n=nt(t).types,a=n&&n.length,o=!1;while(a--)if(~n[a].indexOf("File")){t[F](),r!==t.type&&(r=t.type,"dragleave"!=r&&e.call(t[R],!0,t),o=!0);break}o&&(clearTimeout(i),i=setTimeout((function(){e.call(t[R],"dragleave"!=r,t)}),50))}),z(t,"drop",n.ff=n.ff||function(t){t[F](),r=0,q.getDropFiles(t,(function(e,i){n.call(t[R],e,i,t)})),e.call(t[R],!1,t)})):q.log("Drag'n'Drop -- not supported")},q.event.dnd.off=function(t,e,n){U(t,"dragenter dragleave dragover",e.ff),U(t,"drop",n.ff)},y&&!y.fn.dnd&&(y.fn.dnd=function(t,e){return this.each((function(){q.event.dnd(this,t,e)}))},y.fn.offdnd=function(t,e){return this.each((function(){q.event.dnd.off(this,t,e)}))}),t.FileAPI=P(q,t.FileAPI),q.log("FileAPI: "+q.version),q.log("protocol: "+t.location.protocol),q.log("doctype: ["+s.name+"] "+s.publicId+" "+s.systemId),N(o.getElementsByTagName("meta"),(function(t){/x-ua-compatible/i.test(t.getAttribute("http-equiv"))&&q.log("meta.http-equiv: "+t.getAttribute("content"))}));try{n=!!console.log,i=!!console.log.apply}catch(rt){}q.flashUrl||(q.flashUrl=q.staticPath+"FileAPI.flash.swf"),q.flashImageUrl||(q.flashImageUrl=q.staticPath+"FileAPI.flash.image.swf"),q.flashWebcamUrl||(q.flashWebcamUrl=q.staticPath+"FileAPI.flash.camera.swf")}(window,void 0),function(t,e,n){"use strict";var i=Math.min,r=Math.round,a=function(){return e.createElement("canvas")},o=!1,s={8:270,3:180,6:90,7:270,4:180,5:90};try{o=a().toDataURL("image/png").indexOf("data:image/png")>-1}catch(l){}function c(e){if(e instanceof c){var n=new c(e.file);return t.extend(n.matrix,e.matrix),n}if(!(this instanceof c))return new c(e);this.file=e,this.size=e.size||100,this.matrix={sx:0,sy:0,sw:0,sh:0,dx:0,dy:0,dw:0,dh:0,resize:0,deg:0,quality:1,filter:0}}c.prototype={image:!0,constructor:c,set:function(e){return t.extend(this.matrix,e),this},crop:function(t,e,i,r){return i===n&&(i=t,r=e,t=e=0),this.set({sx:t,sy:e,sw:i,sh:r||i})},resize:function(t,e,n){return/min|max|height|width/.test(e)&&(n=e,e=t),this.set({dw:t,dh:e||t,resize:n})},preview:function(t,e){return this.resize(t,e||t,"preview")},rotate:function(t){return this.set({deg:t})},filter:function(t){return this.set({filter:t})},overlay:function(t){return this.set({overlay:t})},clone:function(){return new c(this)},_load:function(e,n){var i=this;/img|video/i.test(e.nodeName)?n.call(i,null,e):t.readAsImage(e,(function(t){n.call(i,"load"!=t.type,t.result)}))},_apply:function(e,n){var r,o=a(),s=this.getMatrix(e),l=o.getContext("2d"),u=e.videoWidth||e.width,h=e.videoHeight||e.height,d=s.deg,p=s.dw,f=s.dh,m=u,v=h,g=s.filter,y=e,b=s.overlay,w=t.queue((function(){e.src=t.EMPTY_PNG,n(!1,o)})),x=t.renderImageToCanvas;d-=360*Math.floor(d/360),e._type=this.file.type;while(s.multipass&&i(m/p,v/f)>2)m=m/2+.5|0,v=v/2+.5|0,r=a(),r.width=m,r.height=v,y!==e?(x(r,y,0,0,y.width,y.height,0,0,m,v),y=r):(y=r,x(y,e,s.sx,s.sy,s.sw,s.sh,0,0,m,v),s.sx=s.sy=s.sw=s.sh=0);o.width=d%180?f:p,o.height=d%180?p:f,o.type=s.type,o.quality=s.quality,l.rotate(d*Math.PI/180),x(l.canvas,y,s.sx,s.sy,s.sw||y.width,s.sh||y.height,180==d||270==d?-p:0,90==d||180==d?-f:0,p,f),p=o.width,f=o.height,b&&t.each([].concat(b),(function(e){w.inc();var n=new window.Image,i=function(){var r=0|e.x,a=0|e.y,o=e.w||n.width,s=e.h||n.height,c=e.rel;r=1==c||4==c||7==c?(p-o+r)/2:2==c||5==c||8==c?p-(o+r):r,a=3==c||4==c||5==c?(f-s+a)/2:c>=6?f-(s+a):a,t.event.off(n,"error load abort",i);try{l.globalAlpha=e.opacity||1,l.drawImage(n,r,a,o,s)}catch(u){}w.next()};t.event.on(n,"error load abort",i),n.src=e.src,n.complete&&i()})),g&&(w.inc(),c.applyFilter(o,g,w.next)),w.check()},getMatrix:function(e){var n,a,o=t.extend({},this.matrix),s=o.sw=o.sw||e.videoWidth||e.naturalWidth||e.width,c=o.sh=o.sh||e.videoHeight||e.naturalHeight||e.height,l=o.dw=o.dw||s,u=o.dh=o.dh||c,h=s/c,d=l/u,p=o.resize;"preview"==p?l==s&&u==c||(d>=h?(n=s,a=n/d):(a=c,n=a*d),n==s&&a==c||(o.sx=~~((s-n)/2),o.sy=~~((c-a)/2),s=n,c=a)):"height"==p?l=u*h:"width"==p?u=l/h:p&&(s>l||c>u?"min"==p?(l=r(h=d?i(s,l):u*h),u=r(h>=d?l/h:i(c,u))):(l=s,u=c));return o.sw=s,o.sh=c,o.dw=l,o.dh=u,o.multipass=t.multiPassResize,o},_trans:function(e){this._load(this.file,(function(n,i){if(n)e(n);else try{this._apply(i,e)}catch(n){t.log("[err] FileAPI.Image.fn._apply:",n),e(n)}}))},get:function(e){if(t.support.transform){var n=this,i=n.matrix;"auto"==i.deg?t.getInfo(n.file,(function(t,r){i.deg=s[r&&r.exif&&r.exif.Orientation]||0,n._trans(e)})):n._trans(e)}else e("not_support_transform");return this},toData:function(t){return this.get(t)}},c.exifOrientation=s,c.transform=function(e,i,r,a){function o(o,s){var l={},u=t.queue((function(t){a(t,l)}));o?u.fail():t.each(i,(function(t,i){if(!u.isFail()){var a=new c(s.nodeType?s:e),o="function"==typeof t;if(o?t(s,a):t.width?a[t.preview?"preview":"resize"](t.width,t.height,t.strategy):t.maxWidth&&(s.width>t.maxWidth||s.height>t.maxHeight)&&a.resize(t.maxWidth,t.maxHeight,"max"),t.crop){var h=t.crop;a.crop(0|h.x,0|h.y,h.w||h.width,h.h||h.height)}t.rotate===n&&r&&(t.rotate="auto"),a.set({type:a.matrix.type||t.type||e.type||"image/png"}),o||a.set({deg:t.rotate,overlay:t.overlay,filter:t.filter,quality:t.quality||1}),u.inc(),a.toData((function(t,e){t?u.fail():(l[i]=e,u.next())}))}}))}e.width?o(!1,e):t.getInfo(e,o)},t.each(["TOP","CENTER","BOTTOM"],(function(e,n){t.each(["LEFT","CENTER","RIGHT"],(function(t,i){c[e+"_"+t]=3*n+i,c[t+"_"+e]=3*n+i}))})),c.toCanvas=function(t){var n=e.createElement("canvas");return n.width=t.videoWidth||t.width,n.height=t.videoHeight||t.height,n.getContext("2d").drawImage(t,0,0),n},c.fromDataURL=function(e,n,i){var r=t.newImage(e);t.extend(r,n),i(r)},c.applyFilter=function(e,n,i){"function"==typeof n?n(e,i):window.Caman&&window.Caman("IMG"==e.tagName?c.toCanvas(e):e,(function(){"string"==typeof n?this[n]():t.each(n,(function(t,e){this[e](t)}),this),this.render(i)}))},t.renderImageToCanvas=function(e,n,i,r,a,o,s,c,l,u){try{return e.getContext("2d").drawImage(n,i,r,a,o,s,c,l,u)}catch(h){throw t.log("renderImageToCanvas failed"),h}},t.support.canvas=t.support.transform=o,t.Image=c}(FileAPI,document),function(t){"use strict";t(FileAPI)}((function(t){"use strict";if(window.navigator&&window.navigator.platform&&/iP(hone|od|ad)/.test(window.navigator.platform)){var e=t.renderImageToCanvas;t.detectSubsampling=function(t){var e,n;return t.width*t.height>1048576&&(e=document.createElement("canvas"),e.width=e.height=1,n=e.getContext("2d"),n.drawImage(t,1-t.width,0),0===n.getImageData(0,0,1,1).data[3])},t.detectVerticalSquash=function(t,e){var n,i,r,a,o,s=t.naturalHeight||t.height,c=document.createElement("canvas"),l=c.getContext("2d");e&&(s/=2),c.width=1,c.height=s,l.drawImage(t,0,0),n=l.getImageData(0,0,1,s).data,i=0,r=s,a=s;while(a>i)o=n[4*(a-1)+3],0===o?r=a:i=a,a=r+i>>1;return a/s||1},t.renderImageToCanvas=function(n,i,r,a,o,s,c,l,u,h){if("image/jpeg"===i._type){var d,p,f,m,v=n.getContext("2d"),g=document.createElement("canvas"),y=1024,b=g.getContext("2d");if(g.width=y,g.height=y,v.save(),d=t.detectSubsampling(i),d&&(r/=2,a/=2,o/=2,s/=2),p=t.detectVerticalSquash(i,d),d||1!==p){a*=p,u=Math.ceil(y*u/o),h=Math.ceil(y*h/s/p),l=0,m=0;while(m0&&1==t.filter(this.items,(function(t){return t.file})).length,t.support.html5?t.formData&&!this.multipart&&i?n._chunked?(t.log("FileAPI.Form.toPlainData"),this.toPlainData(e)):(t.log("FileAPI.Form.toFormData"),this.toFormData(e)):(t.log("FileAPI.Form.toMultipartData"),this.toMultipartData(e)):(t.log("FileAPI.Form.toHtmlData"),this.toHtmlData(e))},_to:function(e,n,i,r){var a=t.queue((function(){n(e)}));this.each((function(o){try{i(o,e,a,r)}catch(s){t.log("FileAPI.Form._to: "+s.message),n(s)}})),a.check()},toHtmlData:function(e){this._to(n.createDocumentFragment(),e,(function(e,i){var r,a=e.blob;e.file?(t.reset(a,!0),a.name=e.name,a.disabled=!1,i.appendChild(a)):(r=n.createElement("input"),r.name=e.name,r.type="hidden",r.value=a,i.appendChild(r))}))},toPlainData:function(t){this._to({},t,(function(t,e,n){t.file&&(e.type=t.file),t.blob.toBlob?(n.inc(),o(t,(function(t,i){e.name=t.name,e.file=i,e.size=i.length,e.type=t.type,n.next()}))):t.file?(e.name=t.blob.name,e.file=t.blob,e.size=t.blob.size,e.type=t.type):(e.params||(e.params=[]),e.params.push(a(t.name)+"="+a(t.blob))),e.start=-1,e.end=e.file&&e.file.FileAPIReadPosition||-1,e.retry=0}))},toFormData:function(t){this._to(new i,t,(function(t,e,n){t.blob&&t.blob.toBlob?(n.inc(),o(t,(function(t,i){e.append(t.name,i,t.file),n.next()}))):t.file?e.append(t.name,t.blob,t.file):e.append(t.name,t.blob),t.file&&e.append("_"+t.name,t.file)}))},toMultipartData:function(e){this._to([],e,(function(t,e,n,i){n.inc(),o(t,(function(t,r){e.push("--_"+i+'\r\nContent-Disposition: form-data; name="'+t.name+'"'+(t.file?'; filename="'+a(t.file)+'"':"")+(t.file?"\r\nContent-Type: "+(t.type||"application/octet-stream"):"")+"\r\n\r\n"+(t.file?r:a(r))+"\r\n"),n.next()}),!0)}),t.expando)}},t.Form=r}(FileAPI,window),function(t,e){"use strict";var n=function(){},i=t.document,r=function(t){this.uid=e.uid(),this.xhr={abort:n,getResponseHeader:n,getAllResponseHeaders:n},this.options=t},a={"":1,XML:1,Text:1,Body:1};r.prototype={status:0,statusText:"",constructor:r,getResponseHeader:function(t){return this.xhr.getResponseHeader(t)},getAllResponseHeaders:function(){return this.xhr.getAllResponseHeaders()||{}},end:function(i,r){var a=this,o=a.options;a.end=a.abort=n,a.status=i,r&&(a.statusText=r),e.log("xhr.end:",i,r),o.complete(200!=i&&201!=i&&(a.statusText||"unknown"),a),a.xhr&&a.xhr.node&&setTimeout((function(){var e=a.xhr.node;try{e.parentNode.removeChild(e)}catch(n){}try{delete t[a.uid]}catch(n){}t[a.uid]=a.xhr.node=null}),9)},abort:function(){this.end(0,"abort"),this.xhr&&(this.xhr.aborted=!0,this.xhr.abort())},send:function(t){var e=this,n=this.options;t.toData((function(t){t instanceof Error?e.end(0,t.message):(n.upload(n,e),e._send.call(e,n,t))}),n)},_send:function(n,r){var o,s=this,c=s.uid,l=s.uid+"Load",u=n.url;if(e.log("XHR._send:",r),n.cache||(u+=(~u.indexOf("?")?"&":"?")+e.uid()),r.nodeName){var h=n.jsonp;u=u.replace(/([a-z]+)=(\?)/i,"$1="+c),n.upload(n,s);var d=function(t){if(~u.indexOf(t.origin))try{var n=e.parseJSON(t.data);n.id==c&&p(n.status,n.statusText,n.response)}catch(i){p(0,i.message)}},p=t[c]=function(n,i,r){s.readyState=4,s.responseText=r,s.end(n,i),e.event.off(t,"message",d),t[c]=o=m=t[l]=null};s.xhr.abort=function(){try{m.stop?m.stop():m.contentWindow.stop?m.contentWindow.stop():m.contentWindow.document.execCommand("Stop")}catch(t){}p(0,"abort")},e.event.on(t,"message",d),t[l]=function(){try{var t=m.contentWindow,n=t.document,i=t.result||e.parseJSON(n.body.innerHTML);p(i.status,i.statusText,i.response)}catch(r){e.log("[transport.onload]",r)}},o=i.createElement("div"),o.innerHTML='
'+(h&&n.url.indexOf("=?")<0?'':"")+"
";var f=o.getElementsByTagName("form")[0],m=o.getElementsByTagName("iframe")[0];f.appendChild(r),e.log(f.parentNode.innerHTML),i.body.appendChild(o),s.xhr.node=o,s.readyState=2;try{f.submit()}catch(w){e.log("iframe.error: "+w)}f=null}else{if(u=u.replace(/([a-z]+)=(\?)&?/i,""),this.xhr&&this.xhr.aborted)return void e.log("Error: already aborted");if(o=s.xhr=e.getXHR(),r.params&&(u+=(u.indexOf("?")<0?"?":"&")+r.params.join("&")),o.open(n.uploadMethod||"POST",u,!0),"boolean"===typeof n.uploadCredentials?o.withCredentials=n.uploadCredentials?"true":null:e.withCredentials&&(o.withCredentials="true"),n.headers&&n.headers["X-Requested-With"]||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.each(n.headers,(function(t,e){o.setRequestHeader(e,t)})),n._chunked){o.upload&&o.upload.addEventListener("progress",e.throttle((function(t){r.retry||n.progress({type:t.type,total:r.size,loaded:r.start+t.loaded,totalSize:r.size},s,n)}),100),!1),o.onreadystatechange=function(){var t=parseInt(o.getResponseHeader("X-Last-Known-Byte"),10);if(s.status=o.status,s.statusText=o.statusText,s.readyState=o.readyState,4==o.readyState){for(var i in a)s["response"+i]=o["response"+i];if(o.onreadystatechange=null,!o.status||o.status-201>0)if(e.log("Error: "+o.status),(!o.status&&!o.aborted||500==o.status||416==o.status)&&++r.retry<=n.chunkUploadRetry){var c=o.status?0:e.chunkNetworkDownRetryTimeout;n.pause(r.file,n),e.log("X-Last-Known-Byte: "+t),t?r.end=t:(r.end=r.start-1,416==o.status&&(r.end=r.end-n.chunkSize)),setTimeout((function(){s._send(n,r)}),c)}else s.end(o.status);else r.retry=0,r.end==r.size-1?s.end(o.status):(e.log("X-Last-Known-Byte: "+t),t&&(r.end=t),r.file.FileAPIReadPosition=r.end,setTimeout((function(){s._send(n,r)}),0));o=null}},r.start=r.end+1,r.end=Math.max(Math.min(r.start+n.chunkSize,r.size)-1,r.start);var v=r.file,g=(v.slice||v.mozSlice||v.webkitSlice).call(v,r.start,r.end+1);r.size&&!g.size?setTimeout((function(){s.end(-1)})):(o.setRequestHeader("Content-Range","bytes "+r.start+"-"+r.end+"/"+r.size),o.setRequestHeader("Content-Disposition","attachment; filename="+encodeURIComponent(r.name)),o.setRequestHeader("Content-Type",r.type||"application/octet-stream"),o.send(g)),v=g=null}else if(o.upload&&o.upload.addEventListener("progress",e.throttle((function(t){n.progress(t,s,n)}),100),!1),o.onreadystatechange=function(){if(s.status=o.status,s.statusText=o.statusText,s.readyState=o.readyState,4==o.readyState){for(var t in a)s["response"+t]=o["response"+t];if(o.onreadystatechange=null,!o.status||o.status>201)if(e.log("Error: "+o.status),(!o.status&&!o.aborted||500==o.status)&&(n.retry||0)=0?t+"px":t}function u(t){var n,r=i.createElement("canvas"),a=!1;try{n=r.getContext("2d"),n.drawImage(t,0,0,1,1),a=255!=n.getImageData(0,0,1,1).data[4]}catch(o){e.log("[FileAPI.Camera] detectVideoSignal:",o)}return a}s.Shot=c,e.Camera=s}(window,FileAPI),function(t,e,n){"use strict";var i=n.each,r=[];!n.support.flash||!n.media||n.support.media&&n.html5&&!n.insecureChrome||function(){function t(t){var e=t.wid=n.uid();return n.Flash._fn[e]=t,"FileAPI.Flash._fn."+e}function e(t){try{n.Flash._fn[t.wid]=null,delete n.Flash._fn[t.wid]}catch(e){}}var a=n.Flash;n.extend(n.Flash,{patchCamera:function(){n.Camera.fallback=function(i,r,o){var s=n.uid();n.log("FlashAPI.Camera.publish: "+s),a.publish(i,s,n.extend(r,{camera:!0,onEvent:t((function t(i){"camera"===i.type&&(e(t),i.error?(n.log("FlashAPI.Camera.publish.error: "+i.error),o(i.error)):(n.log("FlashAPI.Camera.publish.success: "+s),o(null)))}))}))},i(r,(function(t){n.Camera.fallback.apply(n.Camera,t)})),r=[],n.extend(n.Camera.prototype,{_id:function(){return this.video.id},start:function(i){var r=this;a.cmd(this._id(),"camera.on",{callback:t((function t(a){e(t),a.error?(n.log("FlashAPI.camera.on.error: "+a.error),i(a.error,r)):(n.log("FlashAPI.camera.on.success: "+r._id()),r._active=!0,i(null,r))}))})},stop:function(){this._active=!1,a.cmd(this._id(),"camera.off")},shot:function(){n.log("FlashAPI.Camera.shot:",this._id());var t=n.Flash.cmd(this._id(),"shot",{});return t.type="image/png",t.flashId=this._id(),t.isShot=!0,new n.Camera.Shot(t)}})}}),n.Camera.fallback=function(){r.push(arguments)}}()}(window,window.jQuery,FileAPI),i=[],r=function(){return FileAPI}.apply(e,i),void 0===r||(t.exports=r)},"857a":function(t,e,n){"use strict";var i=n("8eff"),r=n.n(i);r.a},"8eff":function(t,e,n){},"9ca4":function(t,e,n){"use strict";function i(t,e,n,i,r,a,o,s){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}n.d(e,"a",(function(){return i}))},"9edd":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},bc5e:function(t,e,n){"use strict";var i=n("4392"),r=n.n(i);r.a},c0fb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("0261"),r=s(i),a=n("3496"),o=s(a);function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}n("030a");var l=r.default.extend({render:function(t){return t("div",{style:this.containerStyle},[t("img",{ref:"img",attrs:{src:this.src,alt:this.alt||"image",style:"max-width: 100%"},style:this.imgStyle})])},props:{containerStyle:Object,src:{type:String,default:""},alt:String,imgStyle:Object,viewMode:Number,dragMode:String,aspectRatio:Number,data:Object,preview:String,responsive:{type:Boolean,default:!0},restore:{type:Boolean,default:!0},checkCrossOrigin:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},guides:{type:Boolean,default:!0},center:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0},background:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!0},autoCropArea:Number,movable:{type:Boolean,default:!0},rotatable:{type:Boolean,default:!0},scalable:{type:Boolean,default:!0},zoomable:{type:Boolean,default:!0},zoomOnTouch:{type:Boolean,default:!0},zoomOnWheel:{type:Boolean,default:!0},wheelZoomRatio:Number,cropBoxMovable:{type:Boolean,default:!0},cropBoxResizable:{type:Boolean,default:!0},toggleDragModeOnDblclick:{type:Boolean,default:!0},minCanvasWidth:Number,minCanvasHeight:Number,minCropBoxWidth:Number,minCropBoxHeight:Number,minContainerWidth:Number,minContainerHeight:Number,ready:Function,cropstart:Function,cropmove:Function,cropend:Function,crop:Function,zoom:Function},mounted:function(){var t=this.$options.props,e=(t.containerStyle,t.src,t.alt,t.imgStyle,c(t,["containerStyle","src","alt","imgStyle"])),n={};for(var i in e)void 0!==this[i]&&(n[i]=this[i]);this.cropper=new o.default(this.$refs.img,n)},methods:{reset:function(){return this.cropper.reset()},clear:function(){return this.cropper.clear()},initCrop:function(){return this.cropper.crop()},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.cropper.replace(t,e)},enable:function(){return this.cropper.enable()},disable:function(){return this.cropper.disable()},destroy:function(){return this.cropper.destroy()},move:function(t,e){return this.cropper.move(t,e)},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.cropper.moveTo(t,e)},relativeZoom:function(t,e){return this.cropper.zoom(t,e)},zoomTo:function(t,e){return this.cropper.zoomTo(t,e)},rotate:function(t){return this.cropper.rotate(t)},rotateTo:function(t){return this.cropper.rotateTo(t)},scaleX:function(t){return this.cropper.scaleX(t)},scaleY:function(t){return this.cropper.scaleY(t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.cropper.scale(t,e)},getData:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.cropper.getData(t)},setData:function(t){return this.cropper.setData(t)},getContainerData:function(){return this.cropper.getContainerData()},getImageData:function(){return this.cropper.getImageData()},getCanvasData:function(){return this.cropper.getCanvasData()},setCanvasData:function(t){return this.cropper.setCanvasData(t)},getCropBoxData:function(){return this.cropper.getCropBoxData()},setCropBoxData:function(t){return this.cropper.setCropBoxData(t)},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.cropper.getCroppedCanvas(t)},setAspectRatio:function(t){return this.cropper.setAspectRatio(t)},setDragMode:function(t){return this.cropper.setDragMode(t)}}}),u=r.default.component("vue-cropper",l);e.default=u},c39a:function(t,e,n){},d789:function(t,e,n){"use strict";var i=n("c39a"),r=n.n(i);r.a}}); \ No newline at end of file + */(function(t){"use strict";var e=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,n=t.Blob&&function(){try{return Boolean(new Blob)}catch(t){return!1}}(),i=n&&t.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(t){return!1}}(),r=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder,a=(n||r)&&t.atob&&t.ArrayBuffer&&t.Uint8Array&&function(t){var e,a,o,s,c,l;for(e=t.split(",")[0].indexOf("base64")>=0?atob(t.split(",")[1]):decodeURIComponent(t.split(",")[1]),a=new ArrayBuffer(e.length),o=new Uint8Array(a),s=0;s0,C=t.dataURLtoBlob,A=/img/i,k=/canvas/i,O=/img|canvas/i,D=/input/i,S=/^data:[^,]+,/,T={}.toString,M=t.Math,E=function(e){return e=new t.Number(M.pow(1024,e)),e.from=function(t){return M.round(t*this)},e},$={},I=[],B="abort progress error load loadend",L="status statusText readyState response responseXML responseText responseBody".split(" "),R="currentTarget",F="preventDefault",j=function(t){return t&&"length"in t},N=function(t,e,n){if(t)if(j(t))for(var i=0,r=t.length;i=n&&!i&&a.end()},isFail:function(){return i},fail:function(){!i&&t(i=!0)},end:function(){r||(r=!0,t())}};return a},each:N,afor:function(t,e){var n=0,i=t.length;j(t)&&i--?function r(){e(i!=n&&r,t[n],n++)}():e(!1)},extend:P,isFile:function(t){return"[object File]"===T.call(t)},isBlob:function(t){return this.isFile(t)||"[object Blob]"===T.call(t)},isCanvas:function(t){return t&&k.test(t.nodeName)},getFilesFilter:function(t){return t="string"==typeof t?t:t.getAttribute&&t.getAttribute("accept")||"",t?new RegExp("("+t.replace(/\./g,"\\.").replace(/,/g,"|")+")$","i"):/./},readAsDataURL:function(t,e){q.isCanvas(t)?Y(t,e,"load",q.toDataURL(t)):G(t,e,"DataURL")},readAsBinaryString:function(t,e){V("BinaryString")?G(t,e,"BinaryString"):G(t,(function(t){if("load"==t.type)try{t.result=q.toBinaryString(t.result)}catch(n){t.type="error",t.message=n.toString()}e(t)}),"DataURL")},readAsArrayBuffer:function(t,e){G(t,e,"ArrayBuffer")},readAsText:function(t,e,n){n||(n=e,e="utf-8"),G(t,n,"Text",e)},toDataURL:function(t,e){return"string"==typeof t?t:t.toDataURL?t.toDataURL(e||"image/png"):void 0},toBinaryString:function(e){return t.atob(q.toDataURL(e).replace(S,""))},readAsImage:function(t,n,i){if(q.isBlob(t))if(d){var r=d.createObjectURL(t);r===e?Y(t,n,"error"):q.readAsImage(r,n,i)}else q.readAsDataURL(t,(function(e){"load"==e.type?q.readAsImage(e.result,n,i):(i||"error"==e.type)&&Y(t,n,e,null,{loaded:e.loaded,total:e.total})}));else if(q.isCanvas(t))Y(t,n,"load",t);else if(A.test(t.nodeName))if(t.complete)Y(t,n,"load",t);else{var a="error abort load";H(t,a,(function e(i){"load"==i.type&&d&&d.revokeObjectURL(t.src),U(t,a,e),Y(t,n,i,t)}))}else if(t.iframe)Y(t,n,{type:"error"});else{var o=q.newImage(t.dataURL||t);q.readAsImage(o,n,i)}},checkFileObj:function(t){var e={},n=q.accept;return"object"==typeof t?e=t:e.name=(t+"").split(/\\|\//g).pop(),null==e.type&&(e.type=e.name.split(".").pop()),N(n,(function(t,n){t=new RegExp(t.replace(/\s/g,"|"),"i"),(t.test(e.type)||q.ext2mime[e.type])&&(e.type=q.ext2mime[e.type]||n.split("/")[0]+"/"+e.type)})),e},getDropFiles:function(t,e){var n,i=[],r=[],a=nt(t),o=a.files,s=a.items,c=j(s)&&s[0]&&J(s[0]),l=q.queue((function(){e(i,r)}));if(c)if(_&&o){var u,h,d=o.length;n=new Array(d);while(d--){u=o[d];try{h=J(s[d])}catch(p){q.log("[err] getDropFiles: ",p),h=null}Q(h)&&(h.isDirectory||h.isFile&&u.name==u.name.normalize("NFC"))?n[d]=h:n[d]=u}}else n=s;else n=o;N(n||[],(function(t){l.inc();try{c&&Q(t)?Z(t,(function(t,e,n){t?q.log("[err] getDropFiles:",t):i.push.apply(i,e),r.push.apply(r,n),l.next()})):K(t,(function(e,n){e?i.push(t):t.error=n,r.push(t),l.next()}))}catch(p){l.next(),q.log("[err] getDropFiles: ",p)}})),l.check()},getFiles:function(t,e,n){var i=[];return n?(q.filterFiles(q.getFiles(t),e,n),null):(t.jquery&&(t.each((function(){i=i.concat(q.getFiles(this))})),t=i,i=[]),"string"==typeof e&&(e=q.getFilesFilter(e)),t.originalEvent?t=W(t.originalEvent):t.srcElement&&(t=W(t)),t.dataTransfer?t=t.dataTransfer:t.target&&(t=t.target),t.files?(i=t.files,b||(i[0].blob=t,i[0].iframe=!0)):!b&&et(t)?q.trim(t.value)&&(i=[q.checkFileObj(t.value)],i[0].blob=t,i[0].iframe=!0):j(t)&&(i=t),q.filter(i,(function(t){return!e||e.test(t.name)})))},getTotalSize:function(t){var e=0,n=t&&t.length;while(n--)e+=t[n].size;return e},getInfo:function(t,e){var n={},i=I.concat();q.isBlob(t)?function r(){var a=i.shift();a?a.test(t.type)?a(t,(function(t,i){t?e(t):(P(n,i),r())})):r():e(!1,n)}():e("not_support_info",n)},addInfoReader:function(t,e){e.test=function(e){return t.test(e)},I.push(e)},filter:function(t,e){for(var n,i=[],r=0,a=t.length;r>2,u=(3&o)<<4|s>>4;isNaN(s)?r=a=64:(r=(15&s)<<2|c>>6,a=isNaN(c)?64:63&c),n+=e.charAt(l)+e.charAt(u)+e.charAt(r)+e.charAt(a)}return n}};function Y(t,e,n,i,r){var a={type:n.type||n,target:t,result:i};P(a,r),e(a)}function V(t){return m&&!!m.prototype["readAs"+t]}function G(t,n,i,r){if(q.isBlob(t)&&V(i)){var a=new m;z(a,B,(function e(i){var r=i.type;"progress"==r?Y(t,n,i,i.target.result,{loaded:i.loaded,total:i.total}):"loadend"==r?(U(a,B,e),a=null):Y(t,n,i,i.target.result)}));try{r?a["readAs"+i](t,r):a["readAs"+i](t)}catch(o){Y(t,n,"error",e,{error:o.toString()})}}else Y(t,n,"error",e,{error:"filreader_not_support_"+i})}function K(t,e){if(!t.type&&(l||t.size%4096===0&&t.size<=102400))if(m)try{var n=new m;H(n,B,(function(t){var i="error"!=t.type;i?(null!=n.readyState&&n.readyState!==n.LOADING||n.abort(),e(i)):e(!1,n.error)})),n.readAsDataURL(t)}catch(i){e(!1,i)}else e(null,new Error("FileReader is not supported"));else e(!0)}function Q(t){return t&&(t.isFile||t.isDirectory)}function J(t){var e;return t.getAsEntry?e=t.getAsEntry():t.webkitGetAsEntry&&(e=t.webkitGetAsEntry()),e}function Z(t,e){if(t)if(t.isFile)t.file((function(n){n.fullPath=t.fullPath,e(!1,[n],[n])}),(function(n){t.error=n,e("FileError.code: "+n.code,[],[t])}));else if(t.isDirectory){var n=t.createReader(),i=!0,r=[],a=[t],o=function(n){t.error=n,e("DirectoryError.code: "+n.code,r,a)},s=function s(c){i&&(i=!1,c.length||(t.error=new Error("directory is empty"))),c.length?q.afor(c,(function(t,e){Z(e,(function(e,i,c){e||(r=r.concat(i)),a=a.concat(c),t?t():n.readEntries(s,o)}))})):e(!1,r,a)};n.readEntries(s,o)}else Z(J(t),e);else{var c=new Error("invalid entry");t=new Object(t),t.error=c,e(c.message,[],[t])}}function tt(t){var e={};return N(t,(function(t,n){t&&"object"===typeof t&&void 0===t.nodeType&&(t=P({},t)),e[n]=t})),e}function et(t){return D.test(t&&t.tagName)}function nt(t){return(t.originalEvent||t||"").dataTransfer||{}}function it(t){var e;for(e in t)if(t.hasOwnProperty(e)&&!(t[e]instanceof Object||"overlay"===e||"filter"===e))return!0;return!1}q.addInfoReader(/^image/,(function(t,e){if(!t.__dimensions){var n=t.__dimensions=q.defer();q.readAsImage(t,(function(t){var e=t.target;n.resolve("load"!=t.type&&"error",{width:e.width,height:e.height}),e.src=q.EMPTY_PNG,e=null}))}t.__dimensions.then(e)})),q.event.dnd=function(t,e,n){var i,r;n||(n=e,e=q.F),m?(z(t,"dragenter dragleave dragover",e.ff=e.ff||function(t){var n=nt(t).types,a=n&&n.length,o=!1;while(a--)if(~n[a].indexOf("File")){t[F](),r!==t.type&&(r=t.type,"dragleave"!=r&&e.call(t[R],!0,t),o=!0);break}o&&(clearTimeout(i),i=setTimeout((function(){e.call(t[R],"dragleave"!=r,t)}),50))}),z(t,"drop",n.ff=n.ff||function(t){t[F](),r=0,q.getDropFiles(t,(function(e,i){n.call(t[R],e,i,t)})),e.call(t[R],!1,t)})):q.log("Drag'n'Drop -- not supported")},q.event.dnd.off=function(t,e,n){U(t,"dragenter dragleave dragover",e.ff),U(t,"drop",n.ff)},y&&!y.fn.dnd&&(y.fn.dnd=function(t,e){return this.each((function(){q.event.dnd(this,t,e)}))},y.fn.offdnd=function(t,e){return this.each((function(){q.event.dnd.off(this,t,e)}))}),t.FileAPI=P(q,t.FileAPI),q.log("FileAPI: "+q.version),q.log("protocol: "+t.location.protocol),q.log("doctype: ["+s.name+"] "+s.publicId+" "+s.systemId),N(o.getElementsByTagName("meta"),(function(t){/x-ua-compatible/i.test(t.getAttribute("http-equiv"))&&q.log("meta.http-equiv: "+t.getAttribute("content"))}));try{n=!!console.log,i=!!console.log.apply}catch(rt){}q.flashUrl||(q.flashUrl=q.staticPath+"FileAPI.flash.swf"),q.flashImageUrl||(q.flashImageUrl=q.staticPath+"FileAPI.flash.image.swf"),q.flashWebcamUrl||(q.flashWebcamUrl=q.staticPath+"FileAPI.flash.camera.swf")}(window,void 0),function(t,e,n){"use strict";var i=Math.min,r=Math.round,a=function(){return e.createElement("canvas")},o=!1,s={8:270,3:180,6:90,7:270,4:180,5:90};try{o=a().toDataURL("image/png").indexOf("data:image/png")>-1}catch(l){}function c(e){if(e instanceof c){var n=new c(e.file);return t.extend(n.matrix,e.matrix),n}if(!(this instanceof c))return new c(e);this.file=e,this.size=e.size||100,this.matrix={sx:0,sy:0,sw:0,sh:0,dx:0,dy:0,dw:0,dh:0,resize:0,deg:0,quality:1,filter:0}}c.prototype={image:!0,constructor:c,set:function(e){return t.extend(this.matrix,e),this},crop:function(t,e,i,r){return i===n&&(i=t,r=e,t=e=0),this.set({sx:t,sy:e,sw:i,sh:r||i})},resize:function(t,e,n){return/min|max|height|width/.test(e)&&(n=e,e=t),this.set({dw:t,dh:e||t,resize:n})},preview:function(t,e){return this.resize(t,e||t,"preview")},rotate:function(t){return this.set({deg:t})},filter:function(t){return this.set({filter:t})},overlay:function(t){return this.set({overlay:t})},clone:function(){return new c(this)},_load:function(e,n){var i=this;/img|video/i.test(e.nodeName)?n.call(i,null,e):t.readAsImage(e,(function(t){n.call(i,"load"!=t.type,t.result)}))},_apply:function(e,n){var r,o=a(),s=this.getMatrix(e),l=o.getContext("2d"),u=e.videoWidth||e.width,h=e.videoHeight||e.height,d=s.deg,p=s.dw,f=s.dh,m=u,v=h,g=s.filter,y=e,b=s.overlay,w=t.queue((function(){e.src=t.EMPTY_PNG,n(!1,o)})),x=t.renderImageToCanvas;d-=360*Math.floor(d/360),e._type=this.file.type;while(s.multipass&&i(m/p,v/f)>2)m=m/2+.5|0,v=v/2+.5|0,r=a(),r.width=m,r.height=v,y!==e?(x(r,y,0,0,y.width,y.height,0,0,m,v),y=r):(y=r,x(y,e,s.sx,s.sy,s.sw,s.sh,0,0,m,v),s.sx=s.sy=s.sw=s.sh=0);o.width=d%180?f:p,o.height=d%180?p:f,o.type=s.type,o.quality=s.quality,l.rotate(d*Math.PI/180),x(l.canvas,y,s.sx,s.sy,s.sw||y.width,s.sh||y.height,180==d||270==d?-p:0,90==d||180==d?-f:0,p,f),p=o.width,f=o.height,b&&t.each([].concat(b),(function(e){w.inc();var n=new window.Image,i=function(){var r=0|e.x,a=0|e.y,o=e.w||n.width,s=e.h||n.height,c=e.rel;r=1==c||4==c||7==c?(p-o+r)/2:2==c||5==c||8==c?p-(o+r):r,a=3==c||4==c||5==c?(f-s+a)/2:c>=6?f-(s+a):a,t.event.off(n,"error load abort",i);try{l.globalAlpha=e.opacity||1,l.drawImage(n,r,a,o,s)}catch(u){}w.next()};t.event.on(n,"error load abort",i),n.src=e.src,n.complete&&i()})),g&&(w.inc(),c.applyFilter(o,g,w.next)),w.check()},getMatrix:function(e){var n,a,o=t.extend({},this.matrix),s=o.sw=o.sw||e.videoWidth||e.naturalWidth||e.width,c=o.sh=o.sh||e.videoHeight||e.naturalHeight||e.height,l=o.dw=o.dw||s,u=o.dh=o.dh||c,h=s/c,d=l/u,p=o.resize;"preview"==p?l==s&&u==c||(d>=h?(n=s,a=n/d):(a=c,n=a*d),n==s&&a==c||(o.sx=~~((s-n)/2),o.sy=~~((c-a)/2),s=n,c=a)):"height"==p?l=u*h:"width"==p?u=l/h:p&&(s>l||c>u?"min"==p?(l=r(h=d?i(s,l):u*h),u=r(h>=d?l/h:i(c,u))):(l=s,u=c));return o.sw=s,o.sh=c,o.dw=l,o.dh=u,o.multipass=t.multiPassResize,o},_trans:function(e){this._load(this.file,(function(n,i){if(n)e(n);else try{this._apply(i,e)}catch(n){t.log("[err] FileAPI.Image.fn._apply:",n),e(n)}}))},get:function(e){if(t.support.transform){var n=this,i=n.matrix;"auto"==i.deg?t.getInfo(n.file,(function(t,r){i.deg=s[r&&r.exif&&r.exif.Orientation]||0,n._trans(e)})):n._trans(e)}else e("not_support_transform");return this},toData:function(t){return this.get(t)}},c.exifOrientation=s,c.transform=function(e,i,r,a){function o(o,s){var l={},u=t.queue((function(t){a(t,l)}));o?u.fail():t.each(i,(function(t,i){if(!u.isFail()){var a=new c(s.nodeType?s:e),o="function"==typeof t;if(o?t(s,a):t.width?a[t.preview?"preview":"resize"](t.width,t.height,t.strategy):t.maxWidth&&(s.width>t.maxWidth||s.height>t.maxHeight)&&a.resize(t.maxWidth,t.maxHeight,"max"),t.crop){var h=t.crop;a.crop(0|h.x,0|h.y,h.w||h.width,h.h||h.height)}t.rotate===n&&r&&(t.rotate="auto"),a.set({type:a.matrix.type||t.type||e.type||"image/png"}),o||a.set({deg:t.rotate,overlay:t.overlay,filter:t.filter,quality:t.quality||1}),u.inc(),a.toData((function(t,e){t?u.fail():(l[i]=e,u.next())}))}}))}e.width?o(!1,e):t.getInfo(e,o)},t.each(["TOP","CENTER","BOTTOM"],(function(e,n){t.each(["LEFT","CENTER","RIGHT"],(function(t,i){c[e+"_"+t]=3*n+i,c[t+"_"+e]=3*n+i}))})),c.toCanvas=function(t){var n=e.createElement("canvas");return n.width=t.videoWidth||t.width,n.height=t.videoHeight||t.height,n.getContext("2d").drawImage(t,0,0),n},c.fromDataURL=function(e,n,i){var r=t.newImage(e);t.extend(r,n),i(r)},c.applyFilter=function(e,n,i){"function"==typeof n?n(e,i):window.Caman&&window.Caman("IMG"==e.tagName?c.toCanvas(e):e,(function(){"string"==typeof n?this[n]():t.each(n,(function(t,e){this[e](t)}),this),this.render(i)}))},t.renderImageToCanvas=function(e,n,i,r,a,o,s,c,l,u){try{return e.getContext("2d").drawImage(n,i,r,a,o,s,c,l,u)}catch(h){throw t.log("renderImageToCanvas failed"),h}},t.support.canvas=t.support.transform=o,t.Image=c}(FileAPI,document),function(t){"use strict";t(FileAPI)}((function(t){"use strict";if(window.navigator&&window.navigator.platform&&/iP(hone|od|ad)/.test(window.navigator.platform)){var e=t.renderImageToCanvas;t.detectSubsampling=function(t){var e,n;return t.width*t.height>1048576&&(e=document.createElement("canvas"),e.width=e.height=1,n=e.getContext("2d"),n.drawImage(t,1-t.width,0),0===n.getImageData(0,0,1,1).data[3])},t.detectVerticalSquash=function(t,e){var n,i,r,a,o,s=t.naturalHeight||t.height,c=document.createElement("canvas"),l=c.getContext("2d");e&&(s/=2),c.width=1,c.height=s,l.drawImage(t,0,0),n=l.getImageData(0,0,1,s).data,i=0,r=s,a=s;while(a>i)o=n[4*(a-1)+3],0===o?r=a:i=a,a=r+i>>1;return a/s||1},t.renderImageToCanvas=function(n,i,r,a,o,s,c,l,u,h){if("image/jpeg"===i._type){var d,p,f,m,v=n.getContext("2d"),g=document.createElement("canvas"),y=1024,b=g.getContext("2d");if(g.width=y,g.height=y,v.save(),d=t.detectSubsampling(i),d&&(r/=2,a/=2,o/=2,s/=2),p=t.detectVerticalSquash(i,d),d||1!==p){a*=p,u=Math.ceil(y*u/o),h=Math.ceil(y*h/s/p),l=0,m=0;while(m0&&1==t.filter(this.items,(function(t){return t.file})).length,t.support.html5?t.formData&&!this.multipart&&i?n._chunked?(t.log("FileAPI.Form.toPlainData"),this.toPlainData(e)):(t.log("FileAPI.Form.toFormData"),this.toFormData(e)):(t.log("FileAPI.Form.toMultipartData"),this.toMultipartData(e)):(t.log("FileAPI.Form.toHtmlData"),this.toHtmlData(e))},_to:function(e,n,i,r){var a=t.queue((function(){n(e)}));this.each((function(o){try{i(o,e,a,r)}catch(s){t.log("FileAPI.Form._to: "+s.message),n(s)}})),a.check()},toHtmlData:function(e){this._to(n.createDocumentFragment(),e,(function(e,i){var r,a=e.blob;e.file?(t.reset(a,!0),a.name=e.name,a.disabled=!1,i.appendChild(a)):(r=n.createElement("input"),r.name=e.name,r.type="hidden",r.value=a,i.appendChild(r))}))},toPlainData:function(t){this._to({},t,(function(t,e,n){t.file&&(e.type=t.file),t.blob.toBlob?(n.inc(),o(t,(function(t,i){e.name=t.name,e.file=i,e.size=i.length,e.type=t.type,n.next()}))):t.file?(e.name=t.blob.name,e.file=t.blob,e.size=t.blob.size,e.type=t.type):(e.params||(e.params=[]),e.params.push(a(t.name)+"="+a(t.blob))),e.start=-1,e.end=e.file&&e.file.FileAPIReadPosition||-1,e.retry=0}))},toFormData:function(t){this._to(new i,t,(function(t,e,n){t.blob&&t.blob.toBlob?(n.inc(),o(t,(function(t,i){e.append(t.name,i,t.file),n.next()}))):t.file?e.append(t.name,t.blob,t.file):e.append(t.name,t.blob),t.file&&e.append("_"+t.name,t.file)}))},toMultipartData:function(e){this._to([],e,(function(t,e,n,i){n.inc(),o(t,(function(t,r){e.push("--_"+i+'\r\nContent-Disposition: form-data; name="'+t.name+'"'+(t.file?'; filename="'+a(t.file)+'"':"")+(t.file?"\r\nContent-Type: "+(t.type||"application/octet-stream"):"")+"\r\n\r\n"+(t.file?r:a(r))+"\r\n"),n.next()}),!0)}),t.expando)}},t.Form=r}(FileAPI,window),function(t,e){"use strict";var n=function(){},i=t.document,r=function(t){this.uid=e.uid(),this.xhr={abort:n,getResponseHeader:n,getAllResponseHeaders:n},this.options=t},a={"":1,XML:1,Text:1,Body:1};r.prototype={status:0,statusText:"",constructor:r,getResponseHeader:function(t){return this.xhr.getResponseHeader(t)},getAllResponseHeaders:function(){return this.xhr.getAllResponseHeaders()||{}},end:function(i,r){var a=this,o=a.options;a.end=a.abort=n,a.status=i,r&&(a.statusText=r),e.log("xhr.end:",i,r),o.complete(200!=i&&201!=i&&(a.statusText||"unknown"),a),a.xhr&&a.xhr.node&&setTimeout((function(){var e=a.xhr.node;try{e.parentNode.removeChild(e)}catch(n){}try{delete t[a.uid]}catch(n){}t[a.uid]=a.xhr.node=null}),9)},abort:function(){this.end(0,"abort"),this.xhr&&(this.xhr.aborted=!0,this.xhr.abort())},send:function(t){var e=this,n=this.options;t.toData((function(t){t instanceof Error?e.end(0,t.message):(n.upload(n,e),e._send.call(e,n,t))}),n)},_send:function(n,r){var o,s=this,c=s.uid,l=s.uid+"Load",u=n.url;if(e.log("XHR._send:",r),n.cache||(u+=(~u.indexOf("?")?"&":"?")+e.uid()),r.nodeName){var h=n.jsonp;u=u.replace(/([a-z]+)=(\?)/i,"$1="+c),n.upload(n,s);var d=function(t){if(~u.indexOf(t.origin))try{var n=e.parseJSON(t.data);n.id==c&&p(n.status,n.statusText,n.response)}catch(i){p(0,i.message)}},p=t[c]=function(n,i,r){s.readyState=4,s.responseText=r,s.end(n,i),e.event.off(t,"message",d),t[c]=o=m=t[l]=null};s.xhr.abort=function(){try{m.stop?m.stop():m.contentWindow.stop?m.contentWindow.stop():m.contentWindow.document.execCommand("Stop")}catch(t){}p(0,"abort")},e.event.on(t,"message",d),t[l]=function(){try{var t=m.contentWindow,n=t.document,i=t.result||e.parseJSON(n.body.innerHTML);p(i.status,i.statusText,i.response)}catch(r){e.log("[transport.onload]",r)}},o=i.createElement("div"),o.innerHTML='
'+(h&&n.url.indexOf("=?")<0?'':"")+"
";var f=o.getElementsByTagName("form")[0],m=o.getElementsByTagName("iframe")[0];f.appendChild(r),e.log(f.parentNode.innerHTML),i.body.appendChild(o),s.xhr.node=o,s.readyState=2;try{f.submit()}catch(w){e.log("iframe.error: "+w)}f=null}else{if(u=u.replace(/([a-z]+)=(\?)&?/i,""),this.xhr&&this.xhr.aborted)return void e.log("Error: already aborted");if(o=s.xhr=e.getXHR(),r.params&&(u+=(u.indexOf("?")<0?"?":"&")+r.params.join("&")),o.open(n.uploadMethod||"POST",u,!0),"boolean"===typeof n.uploadCredentials?o.withCredentials=n.uploadCredentials?"true":null:e.withCredentials&&(o.withCredentials="true"),n.headers&&n.headers["X-Requested-With"]||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.each(n.headers,(function(t,e){o.setRequestHeader(e,t)})),n._chunked){o.upload&&o.upload.addEventListener("progress",e.throttle((function(t){r.retry||n.progress({type:t.type,total:r.size,loaded:r.start+t.loaded,totalSize:r.size},s,n)}),100),!1),o.onreadystatechange=function(){var t=parseInt(o.getResponseHeader("X-Last-Known-Byte"),10);if(s.status=o.status,s.statusText=o.statusText,s.readyState=o.readyState,4==o.readyState){for(var i in a)s["response"+i]=o["response"+i];if(o.onreadystatechange=null,!o.status||o.status-201>0)if(e.log("Error: "+o.status),(!o.status&&!o.aborted||500==o.status||416==o.status)&&++r.retry<=n.chunkUploadRetry){var c=o.status?0:e.chunkNetworkDownRetryTimeout;n.pause(r.file,n),e.log("X-Last-Known-Byte: "+t),t?r.end=t:(r.end=r.start-1,416==o.status&&(r.end=r.end-n.chunkSize)),setTimeout((function(){s._send(n,r)}),c)}else s.end(o.status);else r.retry=0,r.end==r.size-1?s.end(o.status):(e.log("X-Last-Known-Byte: "+t),t&&(r.end=t),r.file.FileAPIReadPosition=r.end,setTimeout((function(){s._send(n,r)}),0));o=null}},r.start=r.end+1,r.end=Math.max(Math.min(r.start+n.chunkSize,r.size)-1,r.start);var v=r.file,g=(v.slice||v.mozSlice||v.webkitSlice).call(v,r.start,r.end+1);r.size&&!g.size?setTimeout((function(){s.end(-1)})):(o.setRequestHeader("Content-Range","bytes "+r.start+"-"+r.end+"/"+r.size),o.setRequestHeader("Content-Disposition","attachment; filename="+encodeURIComponent(r.name)),o.setRequestHeader("Content-Type",r.type||"application/octet-stream"),o.send(g)),v=g=null}else if(o.upload&&o.upload.addEventListener("progress",e.throttle((function(t){n.progress(t,s,n)}),100),!1),o.onreadystatechange=function(){if(s.status=o.status,s.statusText=o.statusText,s.readyState=o.readyState,4==o.readyState){for(var t in a)s["response"+t]=o["response"+t];if(o.onreadystatechange=null,!o.status||o.status>201)if(e.log("Error: "+o.status),(!o.status&&!o.aborted||500==o.status)&&(n.retry||0)=0?t+"px":t}function u(t){var n,r=i.createElement("canvas"),a=!1;try{n=r.getContext("2d"),n.drawImage(t,0,0,1,1),a=255!=n.getImageData(0,0,1,1).data[4]}catch(o){e.log("[FileAPI.Camera] detectVideoSignal:",o)}return a}s.Shot=c,e.Camera=s}(window,FileAPI),function(t,e,n){"use strict";var i=n.each,r=[];!n.support.flash||!n.media||n.support.media&&n.html5&&!n.insecureChrome||function(){function t(t){var e=t.wid=n.uid();return n.Flash._fn[e]=t,"FileAPI.Flash._fn."+e}function e(t){try{n.Flash._fn[t.wid]=null,delete n.Flash._fn[t.wid]}catch(e){}}var a=n.Flash;n.extend(n.Flash,{patchCamera:function(){n.Camera.fallback=function(i,r,o){var s=n.uid();n.log("FlashAPI.Camera.publish: "+s),a.publish(i,s,n.extend(r,{camera:!0,onEvent:t((function t(i){"camera"===i.type&&(e(t),i.error?(n.log("FlashAPI.Camera.publish.error: "+i.error),o(i.error)):(n.log("FlashAPI.Camera.publish.success: "+s),o(null)))}))}))},i(r,(function(t){n.Camera.fallback.apply(n.Camera,t)})),r=[],n.extend(n.Camera.prototype,{_id:function(){return this.video.id},start:function(i){var r=this;a.cmd(this._id(),"camera.on",{callback:t((function t(a){e(t),a.error?(n.log("FlashAPI.camera.on.error: "+a.error),i(a.error,r)):(n.log("FlashAPI.camera.on.success: "+r._id()),r._active=!0,i(null,r))}))})},stop:function(){this._active=!1,a.cmd(this._id(),"camera.off")},shot:function(){n.log("FlashAPI.Camera.shot:",this._id());var t=n.Flash.cmd(this._id(),"shot",{});return t.type="image/png",t.flashId=this._id(),t.isShot=!0,new n.Camera.Shot(t)}})}}),n.Camera.fallback=function(){r.push(arguments)}}()}(window,window.jQuery,FileAPI),i=[],r=function(){return FileAPI}.apply(e,i),void 0===r||(t.exports=r)},"6c77":function(t,e,n){"use strict";var i=n("0014"),r=n.n(i);r.a},"857a":function(t,e,n){"use strict";var i=n("8eff"),r=n.n(i);r.a},"8d8b":function(t,e,n){},"8eff":function(t,e,n){},"9bb9":function(t,e,n){"use strict";var i=n("8d8b"),r=n.n(i);r.a},"9ca4":function(t,e,n){"use strict";function i(t,e,n,i,r,a,o,s){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}n.d(e,"a",(function(){return i}))},"9edd":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},c0fb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("0261"),r=s(i),a=n("3496"),o=s(a);function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}n("030a");var l=r.default.extend({render:function(t){return t("div",{style:this.containerStyle},[t("img",{ref:"img",attrs:{src:this.src,alt:this.alt||"image",style:"max-width: 100%"},style:this.imgStyle})])},props:{containerStyle:Object,src:{type:String,default:""},alt:String,imgStyle:Object,viewMode:Number,dragMode:String,aspectRatio:Number,data:Object,preview:String,responsive:{type:Boolean,default:!0},restore:{type:Boolean,default:!0},checkCrossOrigin:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},guides:{type:Boolean,default:!0},center:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0},background:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!0},autoCropArea:Number,movable:{type:Boolean,default:!0},rotatable:{type:Boolean,default:!0},scalable:{type:Boolean,default:!0},zoomable:{type:Boolean,default:!0},zoomOnTouch:{type:Boolean,default:!0},zoomOnWheel:{type:Boolean,default:!0},wheelZoomRatio:Number,cropBoxMovable:{type:Boolean,default:!0},cropBoxResizable:{type:Boolean,default:!0},toggleDragModeOnDblclick:{type:Boolean,default:!0},minCanvasWidth:Number,minCanvasHeight:Number,minCropBoxWidth:Number,minCropBoxHeight:Number,minContainerWidth:Number,minContainerHeight:Number,ready:Function,cropstart:Function,cropmove:Function,cropend:Function,crop:Function,zoom:Function},mounted:function(){var t=this.$options.props,e=(t.containerStyle,t.src,t.alt,t.imgStyle,c(t,["containerStyle","src","alt","imgStyle"])),n={};for(var i in e)void 0!==this[i]&&(n[i]=this[i]);this.cropper=new o.default(this.$refs.img,n)},methods:{reset:function(){return this.cropper.reset()},clear:function(){return this.cropper.clear()},initCrop:function(){return this.cropper.crop()},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.cropper.replace(t,e)},enable:function(){return this.cropper.enable()},disable:function(){return this.cropper.disable()},destroy:function(){return this.cropper.destroy()},move:function(t,e){return this.cropper.move(t,e)},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.cropper.moveTo(t,e)},relativeZoom:function(t,e){return this.cropper.zoom(t,e)},zoomTo:function(t,e){return this.cropper.zoomTo(t,e)},rotate:function(t){return this.cropper.rotate(t)},rotateTo:function(t){return this.cropper.rotateTo(t)},scaleX:function(t){return this.cropper.scaleX(t)},scaleY:function(t){return this.cropper.scaleY(t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.cropper.scale(t,e)},getData:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.cropper.getData(t)},setData:function(t){return this.cropper.setData(t)},getContainerData:function(){return this.cropper.getContainerData()},getImageData:function(){return this.cropper.getImageData()},getCanvasData:function(){return this.cropper.getCanvasData()},setCanvasData:function(t){return this.cropper.setCanvasData(t)},getCropBoxData:function(){return this.cropper.getCropBoxData()},setCropBoxData:function(t){return this.cropper.setCropBoxData(t)},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.cropper.getCroppedCanvas(t)},setAspectRatio:function(t){return this.cropper.setAspectRatio(t)},setDragMode:function(t){return this.cropper.setDragMode(t)}}}),u=r.default.component("vue-cropper",l);e.default=u}}); \ No newline at end of file diff --git a/lib/index/index.js b/lib/index/index.js index bcccb0b..8306e78 100644 --- a/lib/index/index.js +++ b/lib/index/index.js @@ -1,10 +1,10 @@ -module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="3a0d")}({0:function(t,e){},"0261":function(t,e,n){"use strict";n.r(e),function(t){ +module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="3a0d")}({0:function(t,e){},"0014":function(t,e,n){},"0261":function(t,e,n){"use strict";n.r(e),function(t){ /*! * Vue.js v2.6.11 * (c) 2014-2019 Evan You * Released under the MIT License. */ -var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function a(t){return!0===t}function o(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function l(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function u(t){return"[object Object]"===c.call(t)}function h(t){return"[object RegExp]"===c.call(t)}function p(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function f(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(t,e){return b.call(t,e)}function _(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var x=/-(\w)/g,C=_((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),k=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),A=/\B([A-Z])/g,O=_((function(t){return t.replace(A,"-$1").toLowerCase()}));function F(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function S(t,e){return t.bind(e)}var T=Function.prototype.bind?S:F;function D(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function $(t,e){for(var n in e)t[n]=e[n];return t}function M(t){for(var e={},n=0;n0,nt=Z&&Z.indexOf("edge/")>0,rt=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===Q),it=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),at={}.watch,ot=!1;if(K)try{var st={};Object.defineProperty(st,"passive",{get:function(){ot=!0}}),window.addEventListener("test-passive",null,st)}catch(Co){}var lt=function(){return void 0===V&&(V=!K&&!J&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),V},ct=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var ht,pt="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);ht="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=E,ft=0,mt=function(){this.id=ft++,this.subs=[]};mt.prototype.addSub=function(t){this.subs.push(t)},mt.prototype.removeSub=function(t){y(this.subs,t)},mt.prototype.depend=function(){mt.target&&mt.target.addDep(this)},mt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(a&&!w(i,"default"))o=!1;else if(""===o||o===O(t)){var l=te(String,i.type);(l<0||s0&&(o=Fe(o,(e||"")+"_"+n),Oe(o[0])&&Oe(c)&&(u[l]=xt(c.text+o[0].text),o.shift()),u.push.apply(u,o)):s(o)?Oe(c)?u[l]=xt(c.text+o):""!==o&&u.push(xt(o)):Oe(o)&&Oe(c)?u[l]=xt(c.text+o.text):(a(t._isVList)&&i(o.tag)&&r(o.key)&&i(e)&&(o.key="__vlist"+e+"_"+n+"__"),u.push(o)));return u}function Se(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Te(t){var e=De(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(n){Bt(t,n,e[n])})),Tt(!0))}function De(t,e){if(t){for(var n=Object.create(null),r=pt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,o=t?!!t.$stable:!a,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(o&&r&&r!==n&&s===r.$key&&!a&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=Be(e,l,t[l]))}else i={};for(var c in e)c in i||(i[c]=je(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),X(i,"$stable",o),X(i,"$key",s),X(i,"$hasNormal",a),i}function Be(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Ae(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function je(t,e){return function(){return t[e]}}function Le(t,e){var n,r,a,o,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,a=t.length;r1?D(n):n;for(var r=D(arguments,1),i='event handler for "'+t+'"',a=0,o=n.length;adocument.createEvent("Event").timeStamp&&(Vn=function(){return Gn.now()})}function Kn(){var t,e;for(Yn=Vn(),Wn=!0,Pn.sort((function(t,e){return t.id-e.id})),Xn=0;XnXn&&Pn[n].id>t.id)n--;Pn.splice(n+1,0,t)}else Pn.push(t);Hn||(Hn=!0,fe(Kn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ht,this.newDepIds=new ht,this.expression="","function"===typeof e?this.getter=e:(this.getter=Y(e),this.getter||(this.getter=E)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;gt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Co){if(!this.user)throw Co;ee(Co,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ve(t),yt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Co){ee(Co,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:E,set:E};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function ar(t){t._watchers=[];var e=t.$options;e.props&&or(t,e.props),e.methods&&fr(t,e.methods),e.data?sr(t):Et(t._data={},!0),e.computed&&ur(t,e.computed),e.watch&&e.watch!==at&&mr(t,e.watch)}function or(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],a=!t.$parent;a||Tt(!1);var o=function(a){i.push(a);var o=Kt(a,e,n,t);Bt(r,a,o),a in t||ir(t,"_props",a)};for(var s in e)o(s);Tt(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?lr(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var a=n[i];0,r&&w(r,a)||W(a)||ir(t,"_data",a)}Et(e,!0)}function lr(t,e){gt();try{return t.call(e,e)}catch(Co){return ee(Co,e,"data()"),{}}finally{yt()}}var cr={lazy:!0};function ur(t,e){var n=t._computedWatchers=Object.create(null),r=lt();for(var i in e){var a=e[i],o="function"===typeof a?a:a.get;0,r||(n[i]=new nr(t,o||E,E,cr)),i in t||hr(t,i,a)}}function hr(t,e,n){var r=!lt();"function"===typeof n?(rr.get=r?pr(e):dr(n),rr.set=E):(rr.get=n.get?r&&!1!==n.cache?pr(e):dr(n.get):E,rr.set=n.set||E),Object.defineProperty(t,e,rr)}function pr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),mt.target&&e.depend(),e.value}}function dr(t){return function(){return t.call(this,this)}}function fr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?E:T(e[n],t)}function mr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=D(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Ar(t){t.mixin=function(t){return this.options=Vt(this.options,t),this}}function Or(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var a=t.name||n.options.name;var o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=Vt(n.options,t),o["super"]=n,o.options.props&&Fr(o),o.options.computed&&Sr(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,P.forEach((function(t){o[t]=n[t]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=t,o.sealedOptions=$({},o.options),i[r]=o,o}}function Fr(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Sr(t){var e=t.options.computed;for(var n in e)hr(t.prototype,n,e[n])}function Tr(t){P.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Dr(t){return t&&(t.Ctor.options.name||t.tag)}function $r(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function Mr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var a in n){var o=n[a];if(o){var s=Dr(o.componentOptions);s&&!e(s)&&Er(n,a,r,i)}}}function Er(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}br(Cr),gr(Cr),Tn(Cr),En(Cr),yn(Cr);var Br=[String,RegExp,Array],jr={name:"keep-alive",abstract:!0,props:{include:Br,exclude:Br,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Er(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Mr(t,(function(t){return $r(e,t)}))})),this.$watch("exclude",(function(e){Mr(t,(function(t){return!$r(e,t)}))}))},render:function(){var t=this.$slots.default,e=Cn(t),n=e&&e.componentOptions;if(n){var r=Dr(n),i=this,a=i.include,o=i.exclude;if(a&&(!r||!$r(a,r))||o&&r&&$r(o,r))return e;var s=this,l=s.cache,c=s.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;l[u]?(e.componentInstance=l[u].componentInstance,y(c,u),c.push(u)):(l[u]=e,c.push(u),this.max&&c.length>parseInt(this.max)&&Er(l,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Lr={KeepAlive:jr};function Ir(t){var e={get:function(){return z}};Object.defineProperty(t,"config",e),t.util={warn:dt,extend:$,mergeOptions:Vt,defineReactive:Bt},t.set=jt,t.delete=Lt,t.nextTick=fe,t.observable=function(t){return Et(t),t},t.options=Object.create(null),P.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,$(t.options.components,Lr),kr(t),Ar(t),Or(t),Tr(t)}Ir(Cr),Object.defineProperty(Cr.prototype,"$isServer",{get:lt}),Object.defineProperty(Cr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cr,"FunctionalRenderContext",{value:Je}),Cr.version="2.6.11";var Rr=v("style,class"),Nr=v("input,textarea,option,select,progress"),Pr=function(t,e,n){return"value"===n&&Nr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Ur=v("contenteditable,draggable,spellcheck"),zr=v("events,caret,typing,plaintext-only"),Hr=function(t,e){return Vr(e)||"false"===e?"false":"contenteditable"===t&&zr(e)?e:"true"},Wr=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Xr="http://www.w3.org/1999/xlink",qr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Yr=function(t){return qr(t)?t.slice(6,t.length):""},Vr=function(t){return null==t||!1===t};function Gr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Kr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Kr(e,n.data));return Jr(e.staticClass,e.class)}function Kr(t,e){return{staticClass:Qr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Jr(t,e){return i(t)||i(e)?Qr(t,Zr(e)):""}function Qr(t,e){return t?e?t+" "+e:t:e||""}function Zr(t){return Array.isArray(t)?ti(t):l(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,a=t.length;r-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var ci=v("text,number,password,search,email,tel,url");function ui(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function hi(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function pi(t,e){return document.createElementNS(ni[t],e)}function di(t){return document.createTextNode(t)}function fi(t){return document.createComment(t)}function mi(t,e,n){t.insertBefore(e,n)}function vi(t,e){t.removeChild(e)}function gi(t,e){t.appendChild(e)}function yi(t){return t.parentNode}function bi(t){return t.nextSibling}function wi(t){return t.tagName}function _i(t,e){t.textContent=e}function xi(t,e){t.setAttribute(e,"")}var Ci=Object.freeze({createElement:hi,createElementNS:pi,createTextNode:di,createComment:fi,insertBefore:mi,removeChild:vi,appendChild:gi,parentNode:yi,nextSibling:bi,tagName:wi,setTextContent:_i,setStyleScope:xi}),ki={create:function(t,e){Ai(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ai(t,!0),Ai(e))},destroy:function(t){Ai(t,!0)}};function Ai(t,e){var n=t.data.ref;if(i(n)){var r=t.context,a=t.componentInstance||t.elm,o=r.$refs;e?Array.isArray(o[n])?y(o[n],a):o[n]===a&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(a)<0&&o[n].push(a):o[n]=[a]:o[n]=a}}var Oi=new bt("",{},[]),Fi=["create","activate","update","remove","destroy"];function Si(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ti(t,e)||a(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Ti(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,a=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===a||ci(r)&&ci(a)}function Di(t,e,n){var r,a,o={};for(r=e;r<=n;++r)a=t[r].key,i(a)&&(o[a]=r);return o}function $i(t){var e,n,o={},l=t.modules,c=t.nodeOps;for(e=0;em?(h=r(n[y+1])?null:n[y+1].elm,C(t,h,n,f,y,a)):f>y&&A(e,p,m)}function S(t,e,n,r){for(var a=n;a-1?zi(t,e,n):Wr(e)?Vr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Ur(e)?t.setAttribute(e,Hr(e,n)):qr(e)?Vr(n)?t.removeAttributeNS(Xr,Yr(e)):t.setAttributeNS(Xr,e,n):zi(t,e,n)}function zi(t,e,n){if(Vr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Hi={create:Pi,update:Pi};function Wi(t,e){var n=e.elm,a=e.data,o=t.data;if(!(r(a.staticClass)&&r(a.class)&&(r(o)||r(o.staticClass)&&r(o.class)))){var s=Gr(e),l=n._transitionClasses;i(l)&&(s=Qr(s,Zr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Xi,qi={create:Wi,update:Wi},Yi="__r",Vi="__c";function Gi(t){if(i(t[Yi])){var e=tt?"change":"input";t[e]=[].concat(t[Yi],t[e]||[]),delete t[Yi]}i(t[Vi])&&(t.change=[].concat(t[Vi],t.change||[]),delete t[Vi])}function Ki(t,e,n){var r=Xi;return function i(){var a=e.apply(null,arguments);null!==a&&Zi(t,i,n,r)}}var Ji=oe&&!(it&&Number(it[1])<=53);function Qi(t,e,n,r){if(Ji){var i=Yn,a=e;e=a._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return a.apply(this,arguments)}}Xi.addEventListener(t,e,ot?{capture:n,passive:r}:n)}function Zi(t,e,n,r){(r||Xi).removeEventListener(t,e._wrapper||e,n)}function ta(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Xi=e.elm,Gi(n),we(n,i,Qi,Zi,Ki,e.context),Xi=void 0}}var ea,na={create:ta,update:ta};function ra(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,a,o=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in i(l.__ob__)&&(l=e.data.domProps=$({},l)),s)n in l||(o[n]="");for(n in l){if(a=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),a===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=a;var c=r(a)?"":String(a);ia(o,c)&&(o.value=c)}else if("innerHTML"===n&&ii(o.tagName)&&r(o.innerHTML)){ea=ea||document.createElement("div"),ea.innerHTML=""+a+"";var u=ea.firstChild;while(o.firstChild)o.removeChild(o.firstChild);while(u.firstChild)o.appendChild(u.firstChild)}else if(a!==s[n])try{o[n]=a}catch(Co){}}}}function ia(t,e){return!t.composing&&("OPTION"===t.tagName||aa(t,e)||oa(t,e))}function aa(t,e){var n=!0;try{n=document.activeElement!==t}catch(Co){}return n&&t.value!==e}function oa(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return m(n)!==m(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var sa={create:ra,update:ra},la=_((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function ca(t){var e=ua(t.style);return t.staticStyle?$(t.staticStyle,e):e}function ua(t){return Array.isArray(t)?M(t):"string"===typeof t?la(t):t}function ha(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=ca(i.data))&&$(r,n)}(n=ca(t.data))&&$(r,n);var a=t;while(a=a.parent)a.data&&(n=ca(a.data))&&$(r,n);return r}var pa,da=/^--/,fa=/\s*!important$/,ma=function(t,e,n){if(da.test(e))t.style.setProperty(e,n);else if(fa.test(n))t.style.setProperty(O(e),n.replace(fa,""),"important");else{var r=ga(e);if(Array.isArray(n))for(var i=0,a=n.length;i-1?e.split(wa).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function xa(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wa).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Ca(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&$(e,ka(t.name||"v")),$(e,t),e}return"string"===typeof t?ka(t):void 0}}var ka=_((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Aa=K&&!et,Oa="transition",Fa="animation",Sa="transition",Ta="transitionend",Da="animation",$a="animationend";Aa&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Sa="WebkitTransition",Ta="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Da="WebkitAnimation",$a="webkitAnimationEnd"));var Ma=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ea(t){Ma((function(){Ma(t)}))}function Ba(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),_a(t,e))}function ja(t,e){t._transitionClasses&&y(t._transitionClasses,e),xa(t,e)}function La(t,e,n){var r=Ra(t,e),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s=i===Oa?Ta:$a,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=o&&c()};setTimeout((function(){l0&&(n=Oa,u=o,h=a.length):e===Fa?c>0&&(n=Fa,u=c,h=l.length):(u=Math.max(o,c),n=u>0?o>c?Oa:Fa:null,h=n?n===Oa?a.length:l.length:0);var p=n===Oa&&Ia.test(r[Sa+"Property"]);return{type:n,timeout:u,propCount:h,hasTransform:p}}function Na(t,e){while(t.length1}function Xa(t,e){!0!==e.data.show&&Ua(e)}var qa=K?{create:Xa,activate:Xa,remove:function(t,e){!0!==t.data.show?za(t,e):e()}}:{},Ya=[Hi,qi,na,sa,ba,qa],Va=Ya.concat(Ni),Ga=$i({nodeOps:Ci,modules:Va});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ro(t,"input")}));var Ka={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?_e(n,"postpatch",(function(){Ka.componentUpdated(t,e,n)})):Ja(t,e,n.context),t._vOptions=[].map.call(t.options,to)):("textarea"===n.tag||ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",eo),t.addEventListener("compositionend",no),t.addEventListener("change",no),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Ja(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,to);if(i.some((function(t,e){return!L(t,r[e])}))){var a=t.multiple?e.value.some((function(t){return Za(t,i)})):e.value!==e.oldValue&&Za(e.value,i);a&&ro(t,"change")}}}};function Ja(t,e,n){Qa(t,e,n),(tt||nt)&&setTimeout((function(){Qa(t,e,n)}),0)}function Qa(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var a,o,s=0,l=t.options.length;s-1,o.selected!==a&&(o.selected=a);else if(L(to(o),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Za(t,e){return e.every((function(e){return!L(e,t)}))}function to(t){return"_value"in t?t._value:t.value}function eo(t){t.target.composing=!0}function no(t){t.target.composing&&(t.target.composing=!1,ro(t.target,"input"))}function ro(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function io(t){return!t.componentInstance||t.data&&t.data.transition?t:io(t.componentInstance._vnode)}var ao={bind:function(t,e,n){var r=e.value;n=io(n);var i=n.data&&n.data.transition,a=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ua(n,(function(){t.style.display=a}))):t.style.display=r?a:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=io(n);var a=n.data&&n.data.transition;a?(n.data.show=!0,r?Ua(n,(function(){t.style.display=t.__vOriginalDisplay})):za(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},oo={model:Ka,show:ao},so={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function lo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?lo(Cn(e.children)):t}function co(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var a in i)e[C(a)]=i[a];return e}function uo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function ho(t){while(t=t.parent)if(t.data.transition)return!0}function po(t,e){return e.key===t.key&&e.tag===t.tag}var fo=function(t){return t.tag||xn(t)},mo=function(t){return"show"===t.name},vo={name:"transition",props:so,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(fo),n.length)){0;var r=this.mode;0;var i=n[0];if(ho(this.$vnode))return i;var a=lo(i);if(!a)return i;if(this._leaving)return uo(t,i);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var l=(a.data||(a.data={})).transition=co(this),c=this._vnode,u=lo(c);if(a.data.directives&&a.data.directives.some(mo)&&(a.data.show=!0),u&&u.data&&!po(a,u)&&!xn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=$({},l);if("out-in"===r)return this._leaving=!0,_e(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),uo(t,i);if("in-out"===r){if(xn(a))return c;var p,d=function(){p()};_e(l,"afterEnter",d),_e(l,"enterCancelled",d),_e(h,"delayLeave",(function(t){p=t}))}}return i}}},go=$({tag:String,moveClass:String},so);delete go.mode;var yo={props:go,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=$n(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=co(this),s=0;s""}},data(){return{loading:!1,fileUrl:"",fileList:[]}},created(){this.fileUrl=window.fileUrl},computed:{fileListName(){var t=this;if(this.dataFile&&this.dataFile.length>0){for(var e=[],n=0;n{if(0==t.body.errorCode){var e={};e.filePath=t.body.data.fileUrl,e.fileName=t.body.data.fileName,e.originName=t.body.data.orgFileName,n.fileList.push(e),n.$emit("overUpload",!1,n.fileList)}},t=>{console.log("上传失败")})},f_handleRemove(t,e){var n=[];if(console.log(e,"删除后得数组"),e.length>0)for(var r=0;r0?n("li",{key:r,style:t.imageThumbStyle},[n("image-cover",{attrs:{thumb:e,previewFile:t.previewFile}}),n("close-btn",{staticClass:"delete-btn",nativeOn:{click:function(e){return t.fileList.splice(r,1)}}})],1):t._e()]})),t.fileList.length""}},created(){},mounted(){},data(){return{}},computed:{thumbStyle(){return{width:this.width,height:this.height,border:this.border}},thumbSrc(){return this.previewFile+this.thumb},imageStyle(){const t=`${this.styleType} ${this.sizeType}-size`;return t}},methods:{fullImagePath(t){return t?(0===t.indexOf("http")||0===t.indexOf("../")||t.indexOf("data:"),t):""}},components:{}},u=c,h=(n("857a"),n("9ca4")),p=Object(h["a"])(u,s,l,!1,null,null,null),d=p.exports,f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"close-btn"})},m=[],v={created(){},mounted(){},data(){return{}},computed:{},methods:{},components:{}},g=v,y=(n("bc5e"),Object(h["a"])(g,f,m,!1,null,null,null)),b=y.exports,w=n("60e8"),_=n.n(w),x={name:"cheersUploadImage",components:{VueCropper:o.a,ImageCover:d,CloseBtn:b},props:{value:{type:String,default:""},maxSize:{type:Number,default:0},isCropper:{type:Boolean,default:!0},previewFile:{type:String,default:()=>""},text:{type:String,default:""},localPreview:{type:Boolean,default:!1},accept:{type:String,default:""},title:{type:String,default:"上传文件"},width:{type:Number,default:0},height:{type:Number,default:0},multi:{type:Number,default:1},uploadUrl:{type:"",default:()=>""}},data(){return{key:"",token:"",currentFile:{},fileList:[],imageSrc:"",cropImg:"",showCropper:!1,uploadStatus:0,uploadPercent:0,uploading:!1}},computed:{imageThumbStyle(){return{width:this.width/2+"px",height:this.height/2+"px"}},uuid(){return Math.random().toString(36).substring(3,8)}},watch:{value:{immediate:!0,handler:function(){let t=this.value;this.fileList=t&&t.length?t.split(","):[]}},fileList:{deep:!0,handler:function(){let t=this.fileList;this.$emit("input",t.length?t.join(","):"")}}},methods:{f_message(t){this.$refs.userfile.value=null,this.$message({message:t,type:"warning"})},async f_selectFile(t){let e=t.target.files[0];this.currentFile=e;let n=new RegExp("image/*","i").test(e.type);return this.fileList.length>=this.multi?this.f_message(`最多上传${this.multi}个文件`):n?e.size>1e3*this.maxSize?this.f_message(`请上传小于${this.maxSize}KB的文件`):void(this.isCropper?(this.f_previewFile(e),this.showCropper=!0):this.f_uploadFile(e)):this.f_message("请选择图片类型文件")},f_previewFile(t){_.a.Image(t).resize(800,800,"max").get((t,e)=>{t||(this.imageSrc=e.toDataURL(),this.$refs.cropper.replace(this.imageSrc))})},f_cropImage(){this.cropImg=this.$refs.cropper.getCroppedCanvas().toDataURL()},f_cancelCrop(){this.showCropper=!1},async f_confirmCrop(){this.uploading=!0;let t=this.f_canvasToFile(this.$refs.cropper.getCroppedCanvas(),this.currentFile.name);if(this.localPreview){var e=window.URL.createObjectURL(t);this.fileList.push(e),this.$emit("overUpload",!1,t)}else{await this.f_uploadFile(t)}this.uploading=!1,this.showCropper=!1},f_canvasToFile(t,e){return new File([this.f_dataURLtoBlob(t.toDataURL())],e)},f_dataURLtoBlob(t){var e=t.split(","),n=e[0].match(/:(.*?);/)[1],r=atob(e[1]),i=r.length,a=new Uint8Array(i);while(i--)a[i]=r.charCodeAt(i);return new Blob([a],{type:n})},async f_uploadFile(t,e,n){var r=new FormData;r.append("file",t);let i=await this.$http.post(this.uploadUrl,r,{headers:{"Content-Type":"multipart/form-data"}});0==i.body.errorCode&&(this.uploadStatus=2,this.fileList.push(i.body.data.fileName))}}},C=x,k=(n("d789"),Object(h["a"])(C,r,i,!1,null,"6d4ef5ba",null)),A=k.exports;A.install=function(t){t.component(A.name,A)};e["default"]=A},"29af":function(t,e,n){},"337c":function(t,e,n){"use strict";n.r(e);var r=n("2378");r["a"].install=function(t){t.component(r["a"].name,r["a"])},e["default"]=r["a"]},3496:function(t,e,n){ +var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function a(t){return!0===t}function o(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function l(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function u(t){return"[object Object]"===c.call(t)}function h(t){return"[object RegExp]"===c.call(t)}function p(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function f(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(t,e){return b.call(t,e)}function _(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var x=/-(\w)/g,C=_((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),k=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),A=/\B([A-Z])/g,O=_((function(t){return t.replace(A,"-$1").toLowerCase()}));function F(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function S(t,e){return t.bind(e)}var T=Function.prototype.bind?S:F;function D(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function $(t,e){for(var n in e)t[n]=e[n];return t}function M(t){for(var e={},n=0;n0,nt=Z&&Z.indexOf("edge/")>0,rt=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===Q),it=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),at={}.watch,ot=!1;if(K)try{var st={};Object.defineProperty(st,"passive",{get:function(){ot=!0}}),window.addEventListener("test-passive",null,st)}catch(Co){}var lt=function(){return void 0===V&&(V=!K&&!J&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),V},ct=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var ht,pt="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);ht="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=E,ft=0,mt=function(){this.id=ft++,this.subs=[]};mt.prototype.addSub=function(t){this.subs.push(t)},mt.prototype.removeSub=function(t){y(this.subs,t)},mt.prototype.depend=function(){mt.target&&mt.target.addDep(this)},mt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(a&&!w(i,"default"))o=!1;else if(""===o||o===O(t)){var l=te(String,i.type);(l<0||s0&&(o=Fe(o,(e||"")+"_"+n),Oe(o[0])&&Oe(c)&&(u[l]=xt(c.text+o[0].text),o.shift()),u.push.apply(u,o)):s(o)?Oe(c)?u[l]=xt(c.text+o):""!==o&&u.push(xt(o)):Oe(o)&&Oe(c)?u[l]=xt(c.text+o.text):(a(t._isVList)&&i(o.tag)&&r(o.key)&&i(e)&&(o.key="__vlist"+e+"_"+n+"__"),u.push(o)));return u}function Se(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Te(t){var e=De(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(n){Bt(t,n,e[n])})),Tt(!0))}function De(t,e){if(t){for(var n=Object.create(null),r=pt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,o=t?!!t.$stable:!a,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(o&&r&&r!==n&&s===r.$key&&!a&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=Be(e,l,t[l]))}else i={};for(var c in e)c in i||(i[c]=je(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),X(i,"$stable",o),X(i,"$key",s),X(i,"$hasNormal",a),i}function Be(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Ae(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function je(t,e){return function(){return t[e]}}function Le(t,e){var n,r,a,o,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,a=t.length;r1?D(n):n;for(var r=D(arguments,1),i='event handler for "'+t+'"',a=0,o=n.length;adocument.createEvent("Event").timeStamp&&(Vn=function(){return Gn.now()})}function Kn(){var t,e;for(Yn=Vn(),Wn=!0,Pn.sort((function(t,e){return t.id-e.id})),Xn=0;XnXn&&Pn[n].id>t.id)n--;Pn.splice(n+1,0,t)}else Pn.push(t);Hn||(Hn=!0,fe(Kn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ht,this.newDepIds=new ht,this.expression="","function"===typeof e?this.getter=e:(this.getter=Y(e),this.getter||(this.getter=E)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;gt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Co){if(!this.user)throw Co;ee(Co,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ve(t),yt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Co){ee(Co,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:E,set:E};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function ar(t){t._watchers=[];var e=t.$options;e.props&&or(t,e.props),e.methods&&fr(t,e.methods),e.data?sr(t):Et(t._data={},!0),e.computed&&ur(t,e.computed),e.watch&&e.watch!==at&&mr(t,e.watch)}function or(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],a=!t.$parent;a||Tt(!1);var o=function(a){i.push(a);var o=Kt(a,e,n,t);Bt(r,a,o),a in t||ir(t,"_props",a)};for(var s in e)o(s);Tt(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?lr(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var a=n[i];0,r&&w(r,a)||W(a)||ir(t,"_data",a)}Et(e,!0)}function lr(t,e){gt();try{return t.call(e,e)}catch(Co){return ee(Co,e,"data()"),{}}finally{yt()}}var cr={lazy:!0};function ur(t,e){var n=t._computedWatchers=Object.create(null),r=lt();for(var i in e){var a=e[i],o="function"===typeof a?a:a.get;0,r||(n[i]=new nr(t,o||E,E,cr)),i in t||hr(t,i,a)}}function hr(t,e,n){var r=!lt();"function"===typeof n?(rr.get=r?pr(e):dr(n),rr.set=E):(rr.get=n.get?r&&!1!==n.cache?pr(e):dr(n.get):E,rr.set=n.set||E),Object.defineProperty(t,e,rr)}function pr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),mt.target&&e.depend(),e.value}}function dr(t){return function(){return t.call(this,this)}}function fr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?E:T(e[n],t)}function mr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=D(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Ar(t){t.mixin=function(t){return this.options=Vt(this.options,t),this}}function Or(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var a=t.name||n.options.name;var o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=Vt(n.options,t),o["super"]=n,o.options.props&&Fr(o),o.options.computed&&Sr(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,P.forEach((function(t){o[t]=n[t]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=t,o.sealedOptions=$({},o.options),i[r]=o,o}}function Fr(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Sr(t){var e=t.options.computed;for(var n in e)hr(t.prototype,n,e[n])}function Tr(t){P.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Dr(t){return t&&(t.Ctor.options.name||t.tag)}function $r(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function Mr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var a in n){var o=n[a];if(o){var s=Dr(o.componentOptions);s&&!e(s)&&Er(n,a,r,i)}}}function Er(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}br(Cr),gr(Cr),Tn(Cr),En(Cr),yn(Cr);var Br=[String,RegExp,Array],jr={name:"keep-alive",abstract:!0,props:{include:Br,exclude:Br,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Er(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Mr(t,(function(t){return $r(e,t)}))})),this.$watch("exclude",(function(e){Mr(t,(function(t){return!$r(e,t)}))}))},render:function(){var t=this.$slots.default,e=Cn(t),n=e&&e.componentOptions;if(n){var r=Dr(n),i=this,a=i.include,o=i.exclude;if(a&&(!r||!$r(a,r))||o&&r&&$r(o,r))return e;var s=this,l=s.cache,c=s.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;l[u]?(e.componentInstance=l[u].componentInstance,y(c,u),c.push(u)):(l[u]=e,c.push(u),this.max&&c.length>parseInt(this.max)&&Er(l,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Lr={KeepAlive:jr};function Ir(t){var e={get:function(){return z}};Object.defineProperty(t,"config",e),t.util={warn:dt,extend:$,mergeOptions:Vt,defineReactive:Bt},t.set=jt,t.delete=Lt,t.nextTick=fe,t.observable=function(t){return Et(t),t},t.options=Object.create(null),P.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,$(t.options.components,Lr),kr(t),Ar(t),Or(t),Tr(t)}Ir(Cr),Object.defineProperty(Cr.prototype,"$isServer",{get:lt}),Object.defineProperty(Cr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cr,"FunctionalRenderContext",{value:Je}),Cr.version="2.6.11";var Rr=v("style,class"),Nr=v("input,textarea,option,select,progress"),Pr=function(t,e,n){return"value"===n&&Nr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Ur=v("contenteditable,draggable,spellcheck"),zr=v("events,caret,typing,plaintext-only"),Hr=function(t,e){return Vr(e)||"false"===e?"false":"contenteditable"===t&&zr(e)?e:"true"},Wr=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Xr="http://www.w3.org/1999/xlink",qr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Yr=function(t){return qr(t)?t.slice(6,t.length):""},Vr=function(t){return null==t||!1===t};function Gr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Kr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Kr(e,n.data));return Jr(e.staticClass,e.class)}function Kr(t,e){return{staticClass:Qr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Jr(t,e){return i(t)||i(e)?Qr(t,Zr(e)):""}function Qr(t,e){return t?e?t+" "+e:t:e||""}function Zr(t){return Array.isArray(t)?ti(t):l(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,a=t.length;r-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var ci=v("text,number,password,search,email,tel,url");function ui(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function hi(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function pi(t,e){return document.createElementNS(ni[t],e)}function di(t){return document.createTextNode(t)}function fi(t){return document.createComment(t)}function mi(t,e,n){t.insertBefore(e,n)}function vi(t,e){t.removeChild(e)}function gi(t,e){t.appendChild(e)}function yi(t){return t.parentNode}function bi(t){return t.nextSibling}function wi(t){return t.tagName}function _i(t,e){t.textContent=e}function xi(t,e){t.setAttribute(e,"")}var Ci=Object.freeze({createElement:hi,createElementNS:pi,createTextNode:di,createComment:fi,insertBefore:mi,removeChild:vi,appendChild:gi,parentNode:yi,nextSibling:bi,tagName:wi,setTextContent:_i,setStyleScope:xi}),ki={create:function(t,e){Ai(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ai(t,!0),Ai(e))},destroy:function(t){Ai(t,!0)}};function Ai(t,e){var n=t.data.ref;if(i(n)){var r=t.context,a=t.componentInstance||t.elm,o=r.$refs;e?Array.isArray(o[n])?y(o[n],a):o[n]===a&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(a)<0&&o[n].push(a):o[n]=[a]:o[n]=a}}var Oi=new bt("",{},[]),Fi=["create","activate","update","remove","destroy"];function Si(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ti(t,e)||a(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Ti(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,a=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===a||ci(r)&&ci(a)}function Di(t,e,n){var r,a,o={};for(r=e;r<=n;++r)a=t[r].key,i(a)&&(o[a]=r);return o}function $i(t){var e,n,o={},l=t.modules,c=t.nodeOps;for(e=0;em?(h=r(n[y+1])?null:n[y+1].elm,C(t,h,n,f,y,a)):f>y&&A(e,p,m)}function S(t,e,n,r){for(var a=n;a-1?zi(t,e,n):Wr(e)?Vr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Ur(e)?t.setAttribute(e,Hr(e,n)):qr(e)?Vr(n)?t.removeAttributeNS(Xr,Yr(e)):t.setAttributeNS(Xr,e,n):zi(t,e,n)}function zi(t,e,n){if(Vr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Hi={create:Pi,update:Pi};function Wi(t,e){var n=e.elm,a=e.data,o=t.data;if(!(r(a.staticClass)&&r(a.class)&&(r(o)||r(o.staticClass)&&r(o.class)))){var s=Gr(e),l=n._transitionClasses;i(l)&&(s=Qr(s,Zr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Xi,qi={create:Wi,update:Wi},Yi="__r",Vi="__c";function Gi(t){if(i(t[Yi])){var e=tt?"change":"input";t[e]=[].concat(t[Yi],t[e]||[]),delete t[Yi]}i(t[Vi])&&(t.change=[].concat(t[Vi],t.change||[]),delete t[Vi])}function Ki(t,e,n){var r=Xi;return function i(){var a=e.apply(null,arguments);null!==a&&Zi(t,i,n,r)}}var Ji=oe&&!(it&&Number(it[1])<=53);function Qi(t,e,n,r){if(Ji){var i=Yn,a=e;e=a._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return a.apply(this,arguments)}}Xi.addEventListener(t,e,ot?{capture:n,passive:r}:n)}function Zi(t,e,n,r){(r||Xi).removeEventListener(t,e._wrapper||e,n)}function ta(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Xi=e.elm,Gi(n),we(n,i,Qi,Zi,Ki,e.context),Xi=void 0}}var ea,na={create:ta,update:ta};function ra(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,a,o=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in i(l.__ob__)&&(l=e.data.domProps=$({},l)),s)n in l||(o[n]="");for(n in l){if(a=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),a===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=a;var c=r(a)?"":String(a);ia(o,c)&&(o.value=c)}else if("innerHTML"===n&&ii(o.tagName)&&r(o.innerHTML)){ea=ea||document.createElement("div"),ea.innerHTML=""+a+"";var u=ea.firstChild;while(o.firstChild)o.removeChild(o.firstChild);while(u.firstChild)o.appendChild(u.firstChild)}else if(a!==s[n])try{o[n]=a}catch(Co){}}}}function ia(t,e){return!t.composing&&("OPTION"===t.tagName||aa(t,e)||oa(t,e))}function aa(t,e){var n=!0;try{n=document.activeElement!==t}catch(Co){}return n&&t.value!==e}function oa(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return m(n)!==m(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var sa={create:ra,update:ra},la=_((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function ca(t){var e=ua(t.style);return t.staticStyle?$(t.staticStyle,e):e}function ua(t){return Array.isArray(t)?M(t):"string"===typeof t?la(t):t}function ha(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=ca(i.data))&&$(r,n)}(n=ca(t.data))&&$(r,n);var a=t;while(a=a.parent)a.data&&(n=ca(a.data))&&$(r,n);return r}var pa,da=/^--/,fa=/\s*!important$/,ma=function(t,e,n){if(da.test(e))t.style.setProperty(e,n);else if(fa.test(n))t.style.setProperty(O(e),n.replace(fa,""),"important");else{var r=ga(e);if(Array.isArray(n))for(var i=0,a=n.length;i-1?e.split(wa).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function xa(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wa).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Ca(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&$(e,ka(t.name||"v")),$(e,t),e}return"string"===typeof t?ka(t):void 0}}var ka=_((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Aa=K&&!et,Oa="transition",Fa="animation",Sa="transition",Ta="transitionend",Da="animation",$a="animationend";Aa&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Sa="WebkitTransition",Ta="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Da="WebkitAnimation",$a="webkitAnimationEnd"));var Ma=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ea(t){Ma((function(){Ma(t)}))}function Ba(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),_a(t,e))}function ja(t,e){t._transitionClasses&&y(t._transitionClasses,e),xa(t,e)}function La(t,e,n){var r=Ra(t,e),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s=i===Oa?Ta:$a,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=o&&c()};setTimeout((function(){l0&&(n=Oa,u=o,h=a.length):e===Fa?c>0&&(n=Fa,u=c,h=l.length):(u=Math.max(o,c),n=u>0?o>c?Oa:Fa:null,h=n?n===Oa?a.length:l.length:0);var p=n===Oa&&Ia.test(r[Sa+"Property"]);return{type:n,timeout:u,propCount:h,hasTransform:p}}function Na(t,e){while(t.length1}function Xa(t,e){!0!==e.data.show&&Ua(e)}var qa=K?{create:Xa,activate:Xa,remove:function(t,e){!0!==t.data.show?za(t,e):e()}}:{},Ya=[Hi,qi,na,sa,ba,qa],Va=Ya.concat(Ni),Ga=$i({nodeOps:Ci,modules:Va});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ro(t,"input")}));var Ka={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?_e(n,"postpatch",(function(){Ka.componentUpdated(t,e,n)})):Ja(t,e,n.context),t._vOptions=[].map.call(t.options,to)):("textarea"===n.tag||ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",eo),t.addEventListener("compositionend",no),t.addEventListener("change",no),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Ja(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,to);if(i.some((function(t,e){return!L(t,r[e])}))){var a=t.multiple?e.value.some((function(t){return Za(t,i)})):e.value!==e.oldValue&&Za(e.value,i);a&&ro(t,"change")}}}};function Ja(t,e,n){Qa(t,e,n),(tt||nt)&&setTimeout((function(){Qa(t,e,n)}),0)}function Qa(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var a,o,s=0,l=t.options.length;s-1,o.selected!==a&&(o.selected=a);else if(L(to(o),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Za(t,e){return e.every((function(e){return!L(e,t)}))}function to(t){return"_value"in t?t._value:t.value}function eo(t){t.target.composing=!0}function no(t){t.target.composing&&(t.target.composing=!1,ro(t.target,"input"))}function ro(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function io(t){return!t.componentInstance||t.data&&t.data.transition?t:io(t.componentInstance._vnode)}var ao={bind:function(t,e,n){var r=e.value;n=io(n);var i=n.data&&n.data.transition,a=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ua(n,(function(){t.style.display=a}))):t.style.display=r?a:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=io(n);var a=n.data&&n.data.transition;a?(n.data.show=!0,r?Ua(n,(function(){t.style.display=t.__vOriginalDisplay})):za(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},oo={model:Ka,show:ao},so={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function lo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?lo(Cn(e.children)):t}function co(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var a in i)e[C(a)]=i[a];return e}function uo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function ho(t){while(t=t.parent)if(t.data.transition)return!0}function po(t,e){return e.key===t.key&&e.tag===t.tag}var fo=function(t){return t.tag||xn(t)},mo=function(t){return"show"===t.name},vo={name:"transition",props:so,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(fo),n.length)){0;var r=this.mode;0;var i=n[0];if(ho(this.$vnode))return i;var a=lo(i);if(!a)return i;if(this._leaving)return uo(t,i);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var l=(a.data||(a.data={})).transition=co(this),c=this._vnode,u=lo(c);if(a.data.directives&&a.data.directives.some(mo)&&(a.data.show=!0),u&&u.data&&!po(a,u)&&!xn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=$({},l);if("out-in"===r)return this._leaving=!0,_e(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),uo(t,i);if("in-out"===r){if(xn(a))return c;var p,d=function(){p()};_e(l,"afterEnter",d),_e(l,"enterCancelled",d),_e(h,"delayLeave",(function(t){p=t}))}}return i}}},go=$({tag:String,moveClass:String},so);delete go.mode;var yo={props:go,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=$n(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=co(this),s=0;s""}},data(){return{loading:!1,fileUrl:"",fileList:[]}},created(){this.fileUrl=window.fileUrl},computed:{fileListName(){var t=this;if(this.dataFile&&this.dataFile.length>0){for(var e=[],n=0;n{if(0==t.body.errorCode){var e={};e.filePath=t.body.data.fileUrl,e.fileName=t.body.data.fileName,e.originName=t.body.data.orgFileName,n.fileList.push(e),n.$emit("overUpload",!1,n.fileList)}},t=>{console.log("上传失败")})},f_handleRemove(t,e){var n=[];if(console.log(e,"删除后得数组"),e.length>0)for(var r=0;r0?n("li",{key:r,style:t.imageThumbStyle},[n("close-btn",{staticClass:"deleBtn",nativeOn:{click:function(e){return t.fileList.splice(r,1)}}}),n("image-cover",{attrs:{thumb:e,previewFile:t.previewFile}})],1):t._e()]})),t.fileList.length""}},created(){},mounted(){},data(){return{}},computed:{thumbStyle(){return{width:this.width,height:this.height,border:this.border}},thumbSrc(){return this.previewFile+this.thumb},imageStyle(){const t=`${this.styleType} ${this.sizeType}-size`;return t}},methods:{fullImagePath(t){return t?(0===t.indexOf("http")||0===t.indexOf("../")||t.indexOf("data:"),t):""}},components:{}},u=c,h=(n("857a"),n("9ca4")),p=Object(h["a"])(u,s,l,!1,null,null,null),d=p.exports,f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"close-btn"})},m=[],v={created(){},mounted(){},data(){return{}},computed:{},methods:{},components:{}},g=v,y=(n("9bb9"),Object(h["a"])(g,f,m,!1,null,"5af0fa1f",null)),b=y.exports,w=n("60e8"),_=n.n(w),x={name:"cheersUploadImage",components:{VueCropper:o.a,ImageCover:d,CloseBtn:b},props:{value:{type:String,default:""},maxSize:{type:Number,default:0},isCropper:{type:Boolean,default:!0},previewFile:{type:String,default:()=>""},text:{type:String,default:""},localPreview:{type:Boolean,default:!1},accept:{type:String,default:""},title:{type:String,default:"上传文件"},width:{type:Number,default:0},height:{type:Number,default:0},multi:{type:Number,default:1},uploadUrl:{type:"",default:()=>""}},data(){return{key:"",token:"",currentFile:{},fileList:[],imageSrc:"",cropImg:"",showCropper:!1,uploadStatus:0,uploadPercent:0,uploading:!1}},computed:{imageThumbStyle(){return{width:this.width/2+"px",height:this.height/2+"px"}},uuid(){return Math.random().toString(36).substring(3,8)}},watch:{value:{immediate:!0,handler:function(){let t=this.value;this.fileList=t&&t.length?t.split(","):[]}},fileList:{deep:!0,handler:function(){let t=this.fileList;this.$emit("input",t.length?t.join(","):"")}}},methods:{f_message(t){this.$refs.userfile.value=null,this.$message({message:t,type:"warning"})},async f_selectFile(t){let e=t.target.files[0];this.currentFile=e;let n=new RegExp("image/*","i").test(e.type);return this.fileList.length>=this.multi?this.f_message(`最多上传${this.multi}个文件`):n?e.size>1e3*this.maxSize?this.f_message(`请上传小于${this.maxSize}KB的文件`):void(this.isCropper?(this.f_previewFile(e),this.showCropper=!0):this.f_uploadFile(e)):this.f_message("请选择图片类型文件")},f_previewFile(t){_.a.Image(t).resize(800,800,"max").get((t,e)=>{t||(this.imageSrc=e.toDataURL(),this.$refs.cropper.replace(this.imageSrc))})},f_cropImage(){this.cropImg=this.$refs.cropper.getCroppedCanvas().toDataURL()},f_cancelCrop(){this.showCropper=!1},async f_confirmCrop(){this.uploading=!0;let t=this.f_canvasToFile(this.$refs.cropper.getCroppedCanvas(),this.currentFile.name);if(this.localPreview){var e=window.URL.createObjectURL(t);this.fileList.push(e),this.$emit("overUpload",!1,t)}else{await this.f_uploadFile(t)}this.uploading=!1,this.showCropper=!1},f_canvasToFile(t,e){return new File([this.f_dataURLtoBlob(t.toDataURL())],e)},f_dataURLtoBlob(t){var e=t.split(","),n=e[0].match(/:(.*?);/)[1],r=atob(e[1]),i=r.length,a=new Uint8Array(i);while(i--)a[i]=r.charCodeAt(i);return new Blob([a],{type:n})},async f_uploadFile(t,e,n){var r=new FormData;r.append("file",t);let i=await this.$http.post(this.uploadUrl,r,{headers:{"Content-Type":"multipart/form-data"}});0==i.body.errorCode&&(this.uploadStatus=2,this.fileList.push(i.body.data.fileName))}}},C=x,k=(n("6c77"),Object(h["a"])(C,r,i,!1,null,"b31b64ac",null)),A=k.exports;A.install=function(t){t.component(A.name,A)};e["default"]=A},"29af":function(t,e,n){},"337c":function(t,e,n){"use strict";n.r(e);var r=n("2378");r["a"].install=function(t){t.component(r["a"].name,r["a"])},e["default"]=r["a"]},3496:function(t,e,n){ /*! * Cropper.js v1.5.7 * https://fengyuanchen.github.io/cropperjs @@ -14,7 +14,7 @@ var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){ * * Date: 2020-05-23T05:23:00.081Z */ -(function(e,n){t.exports=n()})(0,(function(){"use strict";function t(e){return t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n
',ut=Number.isNaN||f.isNaN;function ht(t){return"number"===typeof t&&!ut(t)}var pt=function(t){return t>0&&t<1/0};function dt(t){return"undefined"===typeof t}function ft(e){return"object"===t(e)&&null!==e}var mt=Object.prototype.hasOwnProperty;function vt(t){if(!ft(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&mt.call(n,"isPrototypeOf")}catch(r){return!1}}function gt(t){return"function"===typeof t}var yt=Array.prototype.slice;function bt(t){return Array.from?Array.from(t):yt.call(t)}function wt(t,e){return t&>(e)&&(Array.isArray(t)||ht(t.length)?bt(t).forEach((function(n,r){e.call(t,n,r,t)})):ft(t)&&Object.keys(t).forEach((function(n){e.call(t,t[n],n,t)}))),t}var _t=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&n.forEach((function(e){ft(e)&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t},xt=/\.\d*(?:0|9){12}\d*$/;function Ct(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return xt.test(t)?Math.round(t*e)/e:t}var kt=/^width|height|left|top|marginLeft|marginTop$/;function At(t,e){var n=t.style;wt(e,(function(t,e){kt.test(e)&&ht(t)&&(t="".concat(t,"px")),n[e]=t}))}function Ot(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function Ft(t,e){if(e)if(ht(t.length))wt(t,(function(t){Ft(t,e)}));else if(t.classList)t.classList.add(e);else{var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function St(t,e){e&&(ht(t.length)?wt(t,(function(t){St(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function Tt(t,e,n){e&&(ht(t.length)?wt(t,(function(t){Tt(t,e,n)})):n?Ft(t,e):St(t,e))}var Dt=/([a-z\d])([A-Z])/g;function $t(t){return t.replace(Dt,"$1-$2").toLowerCase()}function Mt(t,e){return ft(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat($t(e)))}function Et(t,e,n){ft(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat($t(e)),n)}function Bt(t,e){if(ft(t[e]))try{delete t[e]}catch(n){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(n){t.dataset[e]=void 0}else t.removeAttribute("data-".concat($t(e)))}var jt=/\s\s*/,Lt=function(){var t=!1;if(d){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});f.addEventListener("test",n,r),f.removeEventListener("test",n,r)}return t}();function It(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(jt).forEach((function(e){if(!Lt){var a=t.listeners;a&&a[e]&&a[e][n]&&(i=a[e][n],delete a[e][n],0===Object.keys(a[e]).length&&delete a[e],0===Object.keys(a).length&&delete t.listeners)}t.removeEventListener(e,i,r)}))}function Rt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(jt).forEach((function(e){if(r.once&&!Lt){var a=t.listeners,o=void 0===a?{}:a;i=function(){delete o[e][n],t.removeEventListener(e,i,r);for(var a=arguments.length,s=new Array(a),l=0;l1&&void 0!==arguments[1]?arguments[1]:"contain",a=pt(r),o=pt(n);if(a&&o){var s=n*e;"contain"===i&&s>r||"cover"===i&&s90?{width:l,height:s}:{width:s,height:l}}function Jt(t,e,n,r){var i=e.aspectRatio,a=e.naturalWidth,o=e.naturalHeight,l=e.rotate,c=void 0===l?0:l,u=e.scaleX,h=void 0===u?1:u,p=e.scaleY,d=void 0===p?1:p,f=n.aspectRatio,m=n.naturalWidth,v=n.naturalHeight,g=r.fillColor,y=void 0===g?"transparent":g,b=r.imageSmoothingEnabled,w=void 0===b||b,_=r.imageSmoothingQuality,x=void 0===_?"low":_,C=r.maxWidth,k=void 0===C?1/0:C,A=r.maxHeight,O=void 0===A?1/0:A,F=r.minWidth,S=void 0===F?0:F,T=r.minHeight,D=void 0===T?0:T,$=document.createElement("canvas"),M=$.getContext("2d"),E=Gt({aspectRatio:f,width:k,height:O}),B=Gt({aspectRatio:f,width:S,height:D},"cover"),j=Math.min(E.width,Math.max(B.width,m)),L=Math.min(E.height,Math.max(B.height,v)),I=Gt({aspectRatio:i,width:k,height:O}),R=Gt({aspectRatio:i,width:S,height:D},"cover"),N=Math.min(I.width,Math.max(R.width,a)),P=Math.min(I.height,Math.max(R.height,o)),U=[-N/2,-P/2,N,P];return $.width=Ct(j),$.height=Ct(L),M.fillStyle=y,M.fillRect(0,0,j,L),M.save(),M.translate(j/2,L/2),M.rotate(c*Math.PI/180),M.scale(h,d),M.imageSmoothingEnabled=w,M.imageSmoothingQuality=x,M.drawImage.apply(M,[t].concat(s(U.map((function(t){return Math.floor(Ct(t))}))))),M.restore(),$}var Qt=String.fromCharCode;function Zt(t,e,n){var r="";n+=e;for(var i=e;i0)n.push(Qt.apply(null,bt(i.subarray(0,r)))),i=i.subarray(r);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}function re(t){var e,n=new DataView(t);try{var r,i,a;if(255===n.getUint8(0)&&216===n.getUint8(1)){var o=n.byteLength,s=2;while(s+1=8&&(a=c+h)}}}if(a){var p,d,f=n.getUint16(a,r);for(d=0;dt.width?3===n?s=t.height*o:l=t.width/o:3===n?l=t.width/o:s=t.height*o;var c={aspectRatio:o,naturalWidth:i,naturalHeight:a,width:s,height:l};c.left=(t.width-s)/2,c.top=(t.height-l)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=_t({},e),this.initialCanvasData=_t({},c)},limitCanvas:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,a=this.cropBoxData,o=n.viewMode,s=i.aspectRatio,l=this.cropped&&a;if(t){var c=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;o>1?(c=Math.max(c,r.width),u=Math.max(u,r.height),3===o&&(u*s>c?c=u*s:u=c/s)):o>0&&(c?c=Math.max(c,l?a.width:0):u?u=Math.max(u,l?a.height:0):l&&(c=a.width,u=a.height,u*s>c?c=u*s:u=c/s));var h=Gt({aspectRatio:s,width:c,height:u});c=h.width,u=h.height,i.minWidth=c,i.minHeight=u,i.maxWidth=1/0,i.maxHeight=1/0}if(e)if(o>(l?0:1)){var p=r.width-i.width,d=r.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,d),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,d),l&&this.limited&&(i.minLeft=Math.min(a.left,a.left+(a.width-i.width)),i.minTop=Math.min(a.top,a.top+(a.height-i.height)),i.maxLeft=a.left,i.maxTop=a.top,2===o&&(i.width>=r.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=r.height&&(i.minTop=Math.min(0,d),i.maxTop=Math.max(0,d))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(t,e){var n=this.canvasData,r=this.imageData;if(e){var i=Kt({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),a=i.width,o=i.height,s=n.width*(a/n.naturalWidth),l=n.height*(o/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(l-n.height)/2,n.width=s,n.height=l,n.aspectRatio=a/o,n.naturalWidth=a,n.naturalHeight=o,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighte.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=e.left+(e.width-i.width)/2,i.top=e.top+(e.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=_t({},i)},limitCropBox:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,a=this.cropBoxData,o=this.limited,s=n.aspectRatio;if(t){var l=Number(n.minCropBoxWidth)||0,c=Number(n.minCropBoxHeight)||0,u=o?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,h=o?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;l=Math.min(l,r.width),c=Math.min(c,r.height),s&&(l&&c?c*s>l?c=l/s:l=c*s:l?c=l/s:c&&(l=c*s),h*s>u?h=u/s:u=h*s),a.minWidth=Math.min(l,u),a.minHeight=Math.min(c,h),a.maxWidth=u,a.maxHeight=h}e&&(o?(a.minLeft=Math.max(0,i.left),a.minTop=Math.max(0,i.top),a.maxLeft=Math.min(r.width,i.left+i.width)-a.width,a.maxTop=Math.min(r.height,i.top+i.height)-a.height):(a.minLeft=0,a.minTop=0,a.maxLeft=r.width-a.width,a.maxTop=r.height-a.height))},renderCropBox:function(){var t=this.options,e=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=e.width&&n.height>=e.height?w:y),At(this.cropBox,_t({width:n.width,height:n.height},Xt({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Nt(this.element,z,this.getData())}},oe={initPreview:function(){var t=this.element,e=this.crossOrigin,n=this.options.preview,r=e?this.crossOriginUrl:this.url,i=t.alt||"The image to preview",a=document.createElement("img");if(e&&(a.crossOrigin=e),a.src=r,a.alt=i,this.viewBox.appendChild(a),this.viewBoxImage=a,n){var o=n;"string"===typeof n?o=t.ownerDocument.querySelectorAll(n):n.querySelector&&(o=[n]),this.previews=o,wt(o,(function(t){var n=document.createElement("img");Et(t,R,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(n.crossOrigin=e),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(n)}))}},resetPreview:function(){wt(this.previews,(function(t){var e=Mt(t,R);At(t,{width:e.width,height:e.height}),t.innerHTML=e.html,Bt(t,R)}))},preview:function(){var t=this.imageData,e=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,a=t.width,o=t.height,s=n.left-e.left-t.left,l=n.top-e.top-t.top;this.cropped&&!this.disabled&&(At(this.viewBoxImage,_t({width:a,height:o},Xt(_t({translateX:-s,translateY:-l},t)))),wt(this.previews,(function(e){var n=Mt(e,R),c=n.width,u=n.height,h=c,p=u,d=1;r&&(d=c/r,p=i*d),i&&p>u&&(d=u/i,h=r*d,p=u),At(e,{width:h,height:p}),At(e.getElementsByTagName("img")[0],_t({width:a*d,height:o*d},Xt(_t({translateX:-s*d,translateY:-l*d},t))))})))}},se={bind:function(){var t=this.element,e=this.options,n=this.cropper;gt(e.cropstart)&&Rt(t,X,e.cropstart),gt(e.cropmove)&&Rt(t,W,e.cropmove),gt(e.cropend)&&Rt(t,H,e.cropend),gt(e.crop)&&Rt(t,z,e.crop),gt(e.zoom)&&Rt(t,nt,e.zoom),Rt(n,K,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&Rt(n,et,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Rt(n,q,this.onDblclick=this.dblclick.bind(this)),Rt(t.ownerDocument,J,this.onCropMove=this.cropMove.bind(this)),Rt(t.ownerDocument,Q,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&Rt(window,tt,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,n=this.cropper;gt(e.cropstart)&&It(t,X,e.cropstart),gt(e.cropmove)&&It(t,W,e.cropmove),gt(e.cropend)&&It(t,H,e.cropend),gt(e.crop)&&It(t,z,e.crop),gt(e.zoom)&&It(t,nt,e.zoom),It(n,K,this.onCropStart),e.zoomable&&e.zoomOnWheel&&It(n,et,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&It(n,q,this.onDblclick),It(t.ownerDocument,J,this.onCropMove),It(t.ownerDocument,Q,this.onCropEnd),e.responsive&&It(window,tt,this.onResize)}},le={resize:function(){if(!this.disabled){var t,e,n=this.options,r=this.container,i=this.containerData,a=r.offsetWidth/i.width;if(1!==a||r.offsetHeight!==i.height)n.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData(wt(t,(function(e,n){t[n]=e*a}))),this.setCropBoxData(wt(e,(function(t,n){e[n]=t*a}))))}},dblclick:function(){this.disabled||this.options.dragMode===U||this.setDragMode(Ot(this.dragBox,D)?P:N)},wheel:function(t){var e=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*n,t)))},cropStart:function(t){var e=t.buttons,n=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(ht(e)&&1!==e||ht(n)&&0!==n||t.ctrlKey))){var r,i=this.options,a=this.pointers;t.changedTouches?wt(t.changedTouches,(function(t){a[t.identifier]=Yt(t)})):a[t.pointerId||0]=Yt(t),r=Object.keys(a).length>1&&i.zoomable&&i.zoomOnTouch?_:Mt(t.target,I),it.test(r)&&!1!==Nt(this.element,X,{originalEvent:t,action:r})&&(t.preventDefault(),this.action=r,this.cropping=!1,r===b&&(this.cropping=!0,Ft(this.dragBox,j)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var n=this.pointers;t.preventDefault(),!1!==Nt(this.element,W,{originalEvent:t,action:e})&&(t.changedTouches?wt(t.changedTouches,(function(t){_t(n[t.identifier]||{},Yt(t,!0))})):_t(n[t.pointerId||0]||{},Yt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,n=this.pointers;t.changedTouches?wt(t.changedTouches,(function(t){delete n[t.identifier]})):delete n[t.pointerId||0],e&&(t.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Tt(this.dragBox,j,this.cropped&&this.options.modal)),Nt(this.element,H,{originalEvent:t,action:e}))}}},ce={change:function(t){var e,n=this.options,r=this.canvasData,i=this.containerData,a=this.cropBoxData,o=this.pointers,s=this.action,l=n.aspectRatio,c=a.left,u=a.top,h=a.width,p=a.height,d=c+h,f=u+p,m=0,v=0,g=i.width,D=i.height,$=!0;!l&&t.shiftKey&&(l=h&&p?h/p:1),this.limited&&(m=a.minLeft,v=a.minTop,g=m+Math.min(i.width,r.width,r.left+r.width),D=v+Math.min(i.height,r.height,r.top+r.height));var E=o[Object.keys(o)[0]],B={x:E.endX-E.startX,y:E.endY-E.startY},j=function(t){switch(t){case x:d+B.x>g&&(B.x=g-d);break;case C:c+B.xD&&(B.y=D-f);break}};switch(s){case y:c+=B.x,u+=B.y;break;case x:if(B.x>=0&&(d>=g||l&&(u<=v||f>=D))){$=!1;break}j(x),h+=B.x,h<0&&(s=C,h=-h,c-=h),l&&(p=h/l,u+=(a.height-p)/2);break;case A:if(B.y<=0&&(u<=v||l&&(c<=m||d>=g))){$=!1;break}j(A),p-=B.y,u+=B.y,p<0&&(s=k,p=-p,u-=p),l&&(h=p*l,c+=(a.width-h)/2);break;case C:if(B.x<=0&&(c<=m||l&&(u<=v||f>=D))){$=!1;break}j(C),h-=B.x,c+=B.x,h<0&&(s=x,h=-h,c-=h),l&&(p=h/l,u+=(a.height-p)/2);break;case k:if(B.y>=0&&(f>=D||l&&(c<=m||d>=g))){$=!1;break}j(k),p+=B.y,p<0&&(s=A,p=-p,u-=p),l&&(h=p*l,c+=(a.width-h)/2);break;case O:if(l){if(B.y<=0&&(u<=v||d>=g)){$=!1;break}j(A),p-=B.y,u+=B.y,h=p*l}else j(A),j(x),B.x>=0?dv&&(p-=B.y,u+=B.y):(p-=B.y,u+=B.y);h<0&&p<0?(s=T,p=-p,h=-h,u-=p,c-=h):h<0?(s=F,h=-h,c-=h):p<0&&(s=S,p=-p,u-=p);break;case F:if(l){if(B.y<=0&&(u<=v||c<=m)){$=!1;break}j(A),p-=B.y,u+=B.y,h=p*l,c+=a.width-h}else j(A),j(C),B.x<=0?c>m?(h-=B.x,c+=B.x):B.y<=0&&u<=v&&($=!1):(h-=B.x,c+=B.x),B.y<=0?u>v&&(p-=B.y,u+=B.y):(p-=B.y,u+=B.y);h<0&&p<0?(s=S,p=-p,h=-h,u-=p,c-=h):h<0?(s=O,h=-h,c-=h):p<0&&(s=T,p=-p,u-=p);break;case T:if(l){if(B.x<=0&&(c<=m||f>=D)){$=!1;break}j(C),h-=B.x,c+=B.x,p=h/l}else j(k),j(C),B.x<=0?c>m?(h-=B.x,c+=B.x):B.y>=0&&f>=D&&($=!1):(h-=B.x,c+=B.x),B.y>=0?f=0&&(d>=g||f>=D)){$=!1;break}j(x),h+=B.x,p=h/l}else j(k),j(x),B.x>=0?d=0&&f>=D&&($=!1):h+=B.x,B.y>=0?f0?s=B.y>0?S:O:B.x<0&&(c-=h,s=B.y>0?T:F),B.y<0&&(u-=p),this.cropped||(St(this.cropBox,M),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}$&&(a.width=h,a.height=p,a.left=c,a.top=u,this.action=s,this.renderCropBox()),wt(o,(function(t){t.startX=t.endX,t.startY=t.endY}))}},ue={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Ft(this.dragBox,j),St(this.cropBox,M),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=_t({},this.initialImageData),this.canvasData=_t({},this.initialCanvasData),this.cropBoxData=_t({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(_t(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),St(this.dragBox,j),Ft(this.cropBox,M)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,wt(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,St(this.cropper,$)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Ft(this.cropper,$)),this},destroy:function(){var t=this.element;return t[g]?(t[g]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(dt(t)?t:r+Number(t),dt(e)?e:i+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(ht(t)&&(n.left=t,r=!0),ht(e)&&(n.top=e,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,e){var n=this.canvasData;return t=Number(t),t=t<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,null,e)},zoomTo:function(t,e,n){var r=this.options,i=this.canvasData,a=i.width,o=i.height,s=i.naturalWidth,l=i.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&r.zoomable){var c=s*t,u=l*t;if(!1===Nt(this.element,nt,{ratio:t,oldRatio:a/s,originalEvent:n}))return this;if(n){var h=this.pointers,p=Pt(this.cropper),d=h&&Object.keys(h).length?Vt(h):{pageX:n.pageX,pageY:n.pageY};i.left-=(c-a)*((d.pageX-p.left-i.left)/a),i.top-=(u-o)*((d.pageY-p.top-i.top)/o)}else vt(e)&&ht(e.x)&&ht(e.y)?(i.left-=(c-a)*((e.x-i.left)/a),i.top-=(u-o)*((e.y-i.top)/o)):(i.left-=(c-a)/2,i.top-=(u-o)/2);i.width=c,i.height=u,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),ht(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,ht(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(ht(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(ht(t)&&(n.scaleX=t,r=!0),ht(e)&&(n.scaleY=e,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,a=this.cropBoxData;if(this.ready&&this.cropped){t={x:a.left-i.left,y:a.top-i.top,width:a.width,height:a.height};var o=r.width/r.naturalWidth;if(wt(t,(function(e,n){t[n]=e/o})),e){var s=Math.round(t.y+t.height),l=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=l-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return n.rotatable&&(t.rotate=r.rotate||0),n.scalable&&(t.scaleX=r.scaleX||1,t.scaleY=r.scaleY||1),t},setData:function(t){var e=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&vt(t)){var a=!1;e.rotatable&&ht(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,a=!0),e.scalable&&(ht(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,a=!0),ht(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var o=n.width/n.naturalWidth;ht(t.x)&&(i.left=t.x*o+r.left),ht(t.y)&&(i.top=t.y*o+r.top),ht(t.width)&&(i.width=t.width*o),ht(t.height)&&(i.height=t.height*o),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?_t({},this.containerData):{}},getImageData:function(){return this.sized?_t({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&wt(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){e[n]=t[n]})),e},setCanvasData:function(t){var e=this.canvasData,n=e.aspectRatio;return this.ready&&!this.disabled&&vt(t)&&(ht(t.left)&&(e.left=t.left),ht(t.top)&&(e.top=t.top),ht(t.width)?(e.width=t.width,e.height=t.width/n):ht(t.height)&&(e.height=t.height,e.width=t.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&vt(t)&&(ht(t.left)&&(r.left=t.left),ht(t.top)&&(r.top=t.top),ht(t.width)&&t.width!==r.width&&(e=!0,r.width=t.width),ht(t.height)&&t.height!==r.height&&(n=!0,r.height=t.height),i&&(e?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,n=Jt(this.image,this.imageData,e,t);if(!this.cropped)return n;var r=this.getData(),i=r.x,a=r.y,o=r.width,l=r.height,c=n.width/Math.floor(e.naturalWidth);1!==c&&(i*=c,a*=c,o*=c,l*=c);var u=o/l,h=Gt({aspectRatio:u,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),p=Gt({aspectRatio:u,width:t.minWidth||0,height:t.minHeight||0},"cover"),d=Gt({aspectRatio:u,width:t.width||(1!==c?n.width:o),height:t.height||(1!==c?n.height:l)}),f=d.width,m=d.height;f=Math.min(h.width,Math.max(p.width,f)),m=Math.min(h.height,Math.max(p.height,m));var v=document.createElement("canvas"),g=v.getContext("2d");v.width=Ct(f),v.height=Ct(m),g.fillStyle=t.fillColor||"transparent",g.fillRect(0,0,f,m);var y=t.imageSmoothingEnabled,b=void 0===y||y,w=t.imageSmoothingQuality;g.imageSmoothingEnabled=b,w&&(g.imageSmoothingQuality=w);var _,x,C,k,A,O,F=n.width,S=n.height,T=i,D=a;T<=-o||T>F?(T=0,_=0,C=0,A=0):T<=0?(C=-T,T=0,_=Math.min(F,o+T),A=_):T<=F&&(C=0,_=Math.min(o,F-T),A=_),_<=0||D<=-l||D>S?(D=0,x=0,k=0,O=0):D<=0?(k=-D,D=0,x=Math.min(S,l+D),O=x):D<=S&&(k=0,x=Math.min(l,S-D),O=x);var $=[T,D,_,x];if(A>0&&O>0){var M=f/o;$.push(C*M,k*M,A*M,O*M)}return g.drawImage.apply(g,[n].concat(s($.map((function(t){return Math.floor(Ct(t))}))))),v},setAspectRatio:function(t){var e=this.options;return this.disabled||dt(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i=t===N,a=e.movable&&t===P;t=i||a?t:U,e.dragMode=t,Et(n,I,t),Tt(n,D,i),Tt(n,L,a),e.cropBoxMovable||(Et(r,I,t),Tt(r,D,i),Tt(r,L,a))}return this}},he=f.Cropper,pe=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,t),!n||!st.test(n.tagName))throw new Error("The first argument is required and must be an or element.");this.element=n,this.options=_t({},lt,vt(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return r(t,[{key:"init",value:function(){var t,e=this.element,n=e.tagName.toLowerCase();if(!e[g]){if(e[g]=this,"img"===n){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===n&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(at.test(t))ot.test(t)?this.read(ee(t)):this.clone();else{var i=new XMLHttpRequest,a=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=a,i.onerror=a,i.ontimeout=a,i.onprogress=function(){i.getResponseHeader("content-type")!==rt&&i.abort()},i.onload=function(){e.read(i.response)},i.onloadend=function(){e.reloading=!1,e.xhr=null},r.checkCrossOrigin&&Ht(t)&&n.crossOrigin&&(t=Wt(t)),i.open("GET",t),i.responseType="arraybuffer",i.withCredentials="use-credentials"===n.crossOrigin,i.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,r=re(t),i=0,a=1,o=1;if(r>1){this.url=ne(t,rt);var s=ie(r);i=s.rotate,a=s.scaleX,o=s.scaleY}e.rotatable&&(n.rotate=i),e.scalable&&(n.scaleX=a,n.scaleY=o),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,n=t.crossOrigin,r=e;this.options.checkCrossOrigin&&Ht(e)&&(n||(n="anonymous"),r=Wt(e)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||e,i.alt=t.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),Ft(i,E),t.parentNode.insertBefore(i,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var n=f.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(f.navigator.userAgent),r=function(e,n){_t(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||n){var i=document.createElement("img"),a=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||a.removeChild(i)},i.src=e.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",a.appendChild(i))}else r(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,n=this.image,r=t.parentNode,i=document.createElement("div");i.innerHTML=ct;var a=i.querySelector(".".concat(g,"-container")),o=a.querySelector(".".concat(g,"-canvas")),s=a.querySelector(".".concat(g,"-drag-box")),l=a.querySelector(".".concat(g,"-crop-box")),c=l.querySelector(".".concat(g,"-face"));this.container=r,this.cropper=a,this.canvas=o,this.dragBox=s,this.cropBox=l,this.viewBox=a.querySelector(".".concat(g,"-view-box")),this.face=c,o.appendChild(n),Ft(t,M),r.insertBefore(a,t.nextSibling),this.isImg||St(n,E),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,Ft(l,M),e.guides||Ft(l.getElementsByClassName("".concat(g,"-dashed")),M),e.center||Ft(l.getElementsByClassName("".concat(g,"-center")),M),e.background&&Ft(a,"".concat(g,"-bg")),e.highlight||Ft(c,B),e.cropBoxMovable&&(Ft(c,L),Et(c,I,y)),e.cropBoxResizable||(Ft(l.getElementsByClassName("".concat(g,"-line")),M),Ft(l.getElementsByClassName("".concat(g,"-point")),M)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),gt(e.ready)&&Rt(t,Z,e.ready,{once:!0}),Nt(t,Z)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),St(this.element,M))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=he,t}},{key:"setDefaults",value:function(t){_t(lt,vt(t)&&t)}}]),t}();return _t(pe.prototype,ae,oe,se,le,ce,ue),pe}))},"370a":function(t,e,n){},"3a0d":function(t,e,n){"use strict";n.r(e);var r=n("e8e5"),i=n("c9c4"),a=n("ff0a"),o=n("337c"),s=n("5c45"),l=n("8b67"),c=n("1622"),u=n("265c"),h=n("807a"),p=n("0261"),d=0,f=1,m=2;function v(t){this.state=m,this.value=void 0,this.deferred=[];var e=this;try{t((function(t){e.resolve(t)}),(function(t){e.reject(t)}))}catch(n){e.reject(n)}}v.reject=function(t){return new v((function(e,n){n(t)}))},v.resolve=function(t){return new v((function(e,n){e(t)}))},v.all=function(t){return new v((function(e,n){var r=0,i=[];function a(n){return function(a){i[n]=a,r+=1,r===t.length&&e(i)}}0===t.length&&e(i);for(var o=0;o=200&&i<300,this.status=i||0,this.statusText=a||"",this.headers=new kt(r),this.body=t,L(t)?this.bodyText=t:P(t)&&(this.bodyBlob=t,Tt(t)&&(this.bodyText=St(t)))};function St(t){return new y((function(e){var n=new FileReader;n.readAsText(t),n.onload=function(){e(n.result)}}))}function Tt(t){return 0===t.type.indexOf("text")||-1!==t.type.indexOf("json")}Ft.prototype.blob=function(){return z(this.bodyBlob)},Ft.prototype.text=function(){return z(this.bodyText)},Ft.prototype.json=function(){return z(this.text(),(function(t){return JSON.parse(t)}))},Object.defineProperty(Ft.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var Dt=function(t){this.body=null,this.params={},X(this,t,{method:B(t.method||"GET")}),this.headers instanceof kt||(this.headers=new kt(this.headers))};Dt.prototype.getUrl=function(){return ot(this)},Dt.prototype.getBody=function(){return this.body},Dt.prototype.respondWith=function(t,e){return new Ft(t,X(e||{},{url:this.getUrl()}))};var $t={Accept:"application/json, text/plain, */*"},Mt={"Content-Type":"application/json;charset=utf-8"};function Et(t){var e=this||{},n=xt(e.$vm);return Y(t||{},e.$options,Et.options),Et.interceptors.forEach((function(t){L(t)&&(t=Et.interceptor[t]),I(t)&&n.use(t)})),n(new Dt(t)).then((function(t){return t.ok?t:y.reject(t)}),(function(t){return t instanceof Error&&T(t),y.reject(t)}))}function Bt(t,e,n,r){var i=this||{},a={};return n=X({},Bt.actions,n),W(n,(function(n,o){n=q({url:t,params:X({},e)},r,n),a[o]=function(){return(i.$http||Et)(jt(n,arguments))}})),a}function jt(t,e){var n,r=X({},t),i={};switch(e.length){case 2:i=e[0],n=e[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(r.method)?n=e[0]:i=e[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+e.length+" arguments"}return r.body=n,r.params=X({},r.params,i),r}function Lt(t){Lt.installed||(F(t),t.url=ot,t.http=Et,t.resource=Bt,t.Promise=y,Object.defineProperties(t.prototype,{$url:{get:function(){return H(t.url,this,this.$options.url)}},$http:{get:function(){return H(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}},$promise:{get:function(){var e=this;return function(n){return new t.Promise(n,e)}}}}))}Et.options={},Et.headers={put:Mt,post:Mt,patch:Mt,delete:Mt,common:$t,custom:{}},Et.interceptor={before:gt,method:yt,jsonp:vt,json:dt,form:pt,header:bt,cors:ht},Et.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach((function(t){Et[t]=function(e,n){return this(X(n||{},{url:e,method:t}))}})),["post","put","patch"].forEach((function(t){Et[t]=function(e,n,r){return this(X(r||{},{url:e,method:t,body:n}))}})),Bt.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!==typeof window&&window.Vue&&window.Vue.use(Lt);var It=Lt;p["default"].use(It);e["default"]={install(t){t.use(s["default"]),t.use(o["default"]),t.use(a["default"]),t.use(r["default"]),t.use(i["default"]),t.use(l["default"]),t.use(c["default"]),t.use(u["default"]),t.use(h["default"])}}},4392:function(t,e,n){},"472c":function(t,e,n){"use strict";var r=n("29af"),i=n.n(r);i.a},"4d13":function(t,e,n){},"52f5":function(t,e,n){"use strict";var r=n("76f3"),i=n.n(r);i.a},"5c45":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"margin-bottom":"50px","min-width":"1000px"}},[n("el-row",{staticClass:"row-bg",attrs:{type:"flex",justify:"center"}},[n("el-col",{attrs:{xs:24,sm:24,md:24,lg:24,xl:16}},[n("div",{staticClass:"index"},[n("div",{staticClass:"title"},[n("div",{staticStyle:{float:"left"}},[t._t("title")],2),n("span",{staticStyle:{margin:"0 auto"}},[t._t("center")],2),n("div",{staticClass:"title-right"},[t._t("title-right",[n("span",[t._v("标记")]),n("span",{staticStyle:{color:"red"}},[t._v("*")]),n("span",[t._v("未必填项")])])],2)]),t._t("body"),n("div",{staticClass:"footer"},[t._t("footer")],2)],2)])],1)],1)},i=[],a={name:"cheersCard"},o=a,s=(n("1045"),n("9ca4")),l=Object(s["a"])(o,r,i,!1,null,"1331d2ac",null),c=l.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c},"60e8":function(t,e,n){var r,i; +(function(e,n){t.exports=n()})(0,(function(){"use strict";function t(e){return t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n
',ut=Number.isNaN||f.isNaN;function ht(t){return"number"===typeof t&&!ut(t)}var pt=function(t){return t>0&&t<1/0};function dt(t){return"undefined"===typeof t}function ft(e){return"object"===t(e)&&null!==e}var mt=Object.prototype.hasOwnProperty;function vt(t){if(!ft(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&mt.call(n,"isPrototypeOf")}catch(r){return!1}}function gt(t){return"function"===typeof t}var yt=Array.prototype.slice;function bt(t){return Array.from?Array.from(t):yt.call(t)}function wt(t,e){return t&>(e)&&(Array.isArray(t)||ht(t.length)?bt(t).forEach((function(n,r){e.call(t,n,r,t)})):ft(t)&&Object.keys(t).forEach((function(n){e.call(t,t[n],n,t)}))),t}var _t=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&n.forEach((function(e){ft(e)&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t},xt=/\.\d*(?:0|9){12}\d*$/;function Ct(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return xt.test(t)?Math.round(t*e)/e:t}var kt=/^width|height|left|top|marginLeft|marginTop$/;function At(t,e){var n=t.style;wt(e,(function(t,e){kt.test(e)&&ht(t)&&(t="".concat(t,"px")),n[e]=t}))}function Ot(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function Ft(t,e){if(e)if(ht(t.length))wt(t,(function(t){Ft(t,e)}));else if(t.classList)t.classList.add(e);else{var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function St(t,e){e&&(ht(t.length)?wt(t,(function(t){St(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function Tt(t,e,n){e&&(ht(t.length)?wt(t,(function(t){Tt(t,e,n)})):n?Ft(t,e):St(t,e))}var Dt=/([a-z\d])([A-Z])/g;function $t(t){return t.replace(Dt,"$1-$2").toLowerCase()}function Mt(t,e){return ft(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat($t(e)))}function Et(t,e,n){ft(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat($t(e)),n)}function Bt(t,e){if(ft(t[e]))try{delete t[e]}catch(n){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(n){t.dataset[e]=void 0}else t.removeAttribute("data-".concat($t(e)))}var jt=/\s\s*/,Lt=function(){var t=!1;if(d){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});f.addEventListener("test",n,r),f.removeEventListener("test",n,r)}return t}();function It(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(jt).forEach((function(e){if(!Lt){var a=t.listeners;a&&a[e]&&a[e][n]&&(i=a[e][n],delete a[e][n],0===Object.keys(a[e]).length&&delete a[e],0===Object.keys(a).length&&delete t.listeners)}t.removeEventListener(e,i,r)}))}function Rt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(jt).forEach((function(e){if(r.once&&!Lt){var a=t.listeners,o=void 0===a?{}:a;i=function(){delete o[e][n],t.removeEventListener(e,i,r);for(var a=arguments.length,s=new Array(a),l=0;l1&&void 0!==arguments[1]?arguments[1]:"contain",a=pt(r),o=pt(n);if(a&&o){var s=n*e;"contain"===i&&s>r||"cover"===i&&s90?{width:l,height:s}:{width:s,height:l}}function Jt(t,e,n,r){var i=e.aspectRatio,a=e.naturalWidth,o=e.naturalHeight,l=e.rotate,c=void 0===l?0:l,u=e.scaleX,h=void 0===u?1:u,p=e.scaleY,d=void 0===p?1:p,f=n.aspectRatio,m=n.naturalWidth,v=n.naturalHeight,g=r.fillColor,y=void 0===g?"transparent":g,b=r.imageSmoothingEnabled,w=void 0===b||b,_=r.imageSmoothingQuality,x=void 0===_?"low":_,C=r.maxWidth,k=void 0===C?1/0:C,A=r.maxHeight,O=void 0===A?1/0:A,F=r.minWidth,S=void 0===F?0:F,T=r.minHeight,D=void 0===T?0:T,$=document.createElement("canvas"),M=$.getContext("2d"),E=Gt({aspectRatio:f,width:k,height:O}),B=Gt({aspectRatio:f,width:S,height:D},"cover"),j=Math.min(E.width,Math.max(B.width,m)),L=Math.min(E.height,Math.max(B.height,v)),I=Gt({aspectRatio:i,width:k,height:O}),R=Gt({aspectRatio:i,width:S,height:D},"cover"),N=Math.min(I.width,Math.max(R.width,a)),P=Math.min(I.height,Math.max(R.height,o)),U=[-N/2,-P/2,N,P];return $.width=Ct(j),$.height=Ct(L),M.fillStyle=y,M.fillRect(0,0,j,L),M.save(),M.translate(j/2,L/2),M.rotate(c*Math.PI/180),M.scale(h,d),M.imageSmoothingEnabled=w,M.imageSmoothingQuality=x,M.drawImage.apply(M,[t].concat(s(U.map((function(t){return Math.floor(Ct(t))}))))),M.restore(),$}var Qt=String.fromCharCode;function Zt(t,e,n){var r="";n+=e;for(var i=e;i0)n.push(Qt.apply(null,bt(i.subarray(0,r)))),i=i.subarray(r);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}function re(t){var e,n=new DataView(t);try{var r,i,a;if(255===n.getUint8(0)&&216===n.getUint8(1)){var o=n.byteLength,s=2;while(s+1=8&&(a=c+h)}}}if(a){var p,d,f=n.getUint16(a,r);for(d=0;dt.width?3===n?s=t.height*o:l=t.width/o:3===n?l=t.width/o:s=t.height*o;var c={aspectRatio:o,naturalWidth:i,naturalHeight:a,width:s,height:l};c.left=(t.width-s)/2,c.top=(t.height-l)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=_t({},e),this.initialCanvasData=_t({},c)},limitCanvas:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,a=this.cropBoxData,o=n.viewMode,s=i.aspectRatio,l=this.cropped&&a;if(t){var c=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;o>1?(c=Math.max(c,r.width),u=Math.max(u,r.height),3===o&&(u*s>c?c=u*s:u=c/s)):o>0&&(c?c=Math.max(c,l?a.width:0):u?u=Math.max(u,l?a.height:0):l&&(c=a.width,u=a.height,u*s>c?c=u*s:u=c/s));var h=Gt({aspectRatio:s,width:c,height:u});c=h.width,u=h.height,i.minWidth=c,i.minHeight=u,i.maxWidth=1/0,i.maxHeight=1/0}if(e)if(o>(l?0:1)){var p=r.width-i.width,d=r.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,d),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,d),l&&this.limited&&(i.minLeft=Math.min(a.left,a.left+(a.width-i.width)),i.minTop=Math.min(a.top,a.top+(a.height-i.height)),i.maxLeft=a.left,i.maxTop=a.top,2===o&&(i.width>=r.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=r.height&&(i.minTop=Math.min(0,d),i.maxTop=Math.max(0,d))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(t,e){var n=this.canvasData,r=this.imageData;if(e){var i=Kt({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),a=i.width,o=i.height,s=n.width*(a/n.naturalWidth),l=n.height*(o/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(l-n.height)/2,n.width=s,n.height=l,n.aspectRatio=a/o,n.naturalWidth=a,n.naturalHeight=o,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighte.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=e.left+(e.width-i.width)/2,i.top=e.top+(e.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=_t({},i)},limitCropBox:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,a=this.cropBoxData,o=this.limited,s=n.aspectRatio;if(t){var l=Number(n.minCropBoxWidth)||0,c=Number(n.minCropBoxHeight)||0,u=o?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,h=o?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;l=Math.min(l,r.width),c=Math.min(c,r.height),s&&(l&&c?c*s>l?c=l/s:l=c*s:l?c=l/s:c&&(l=c*s),h*s>u?h=u/s:u=h*s),a.minWidth=Math.min(l,u),a.minHeight=Math.min(c,h),a.maxWidth=u,a.maxHeight=h}e&&(o?(a.minLeft=Math.max(0,i.left),a.minTop=Math.max(0,i.top),a.maxLeft=Math.min(r.width,i.left+i.width)-a.width,a.maxTop=Math.min(r.height,i.top+i.height)-a.height):(a.minLeft=0,a.minTop=0,a.maxLeft=r.width-a.width,a.maxTop=r.height-a.height))},renderCropBox:function(){var t=this.options,e=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.height=e.width&&n.height>=e.height?w:y),At(this.cropBox,_t({width:n.width,height:n.height},Xt({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Nt(this.element,z,this.getData())}},oe={initPreview:function(){var t=this.element,e=this.crossOrigin,n=this.options.preview,r=e?this.crossOriginUrl:this.url,i=t.alt||"The image to preview",a=document.createElement("img");if(e&&(a.crossOrigin=e),a.src=r,a.alt=i,this.viewBox.appendChild(a),this.viewBoxImage=a,n){var o=n;"string"===typeof n?o=t.ownerDocument.querySelectorAll(n):n.querySelector&&(o=[n]),this.previews=o,wt(o,(function(t){var n=document.createElement("img");Et(t,R,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(n.crossOrigin=e),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(n)}))}},resetPreview:function(){wt(this.previews,(function(t){var e=Mt(t,R);At(t,{width:e.width,height:e.height}),t.innerHTML=e.html,Bt(t,R)}))},preview:function(){var t=this.imageData,e=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,a=t.width,o=t.height,s=n.left-e.left-t.left,l=n.top-e.top-t.top;this.cropped&&!this.disabled&&(At(this.viewBoxImage,_t({width:a,height:o},Xt(_t({translateX:-s,translateY:-l},t)))),wt(this.previews,(function(e){var n=Mt(e,R),c=n.width,u=n.height,h=c,p=u,d=1;r&&(d=c/r,p=i*d),i&&p>u&&(d=u/i,h=r*d,p=u),At(e,{width:h,height:p}),At(e.getElementsByTagName("img")[0],_t({width:a*d,height:o*d},Xt(_t({translateX:-s*d,translateY:-l*d},t))))})))}},se={bind:function(){var t=this.element,e=this.options,n=this.cropper;gt(e.cropstart)&&Rt(t,X,e.cropstart),gt(e.cropmove)&&Rt(t,W,e.cropmove),gt(e.cropend)&&Rt(t,H,e.cropend),gt(e.crop)&&Rt(t,z,e.crop),gt(e.zoom)&&Rt(t,nt,e.zoom),Rt(n,K,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&Rt(n,et,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Rt(n,q,this.onDblclick=this.dblclick.bind(this)),Rt(t.ownerDocument,J,this.onCropMove=this.cropMove.bind(this)),Rt(t.ownerDocument,Q,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&Rt(window,tt,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,n=this.cropper;gt(e.cropstart)&&It(t,X,e.cropstart),gt(e.cropmove)&&It(t,W,e.cropmove),gt(e.cropend)&&It(t,H,e.cropend),gt(e.crop)&&It(t,z,e.crop),gt(e.zoom)&&It(t,nt,e.zoom),It(n,K,this.onCropStart),e.zoomable&&e.zoomOnWheel&&It(n,et,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&It(n,q,this.onDblclick),It(t.ownerDocument,J,this.onCropMove),It(t.ownerDocument,Q,this.onCropEnd),e.responsive&&It(window,tt,this.onResize)}},le={resize:function(){if(!this.disabled){var t,e,n=this.options,r=this.container,i=this.containerData,a=r.offsetWidth/i.width;if(1!==a||r.offsetHeight!==i.height)n.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData(wt(t,(function(e,n){t[n]=e*a}))),this.setCropBoxData(wt(e,(function(t,n){e[n]=t*a}))))}},dblclick:function(){this.disabled||this.options.dragMode===U||this.setDragMode(Ot(this.dragBox,D)?P:N)},wheel:function(t){var e=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*n,t)))},cropStart:function(t){var e=t.buttons,n=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(ht(e)&&1!==e||ht(n)&&0!==n||t.ctrlKey))){var r,i=this.options,a=this.pointers;t.changedTouches?wt(t.changedTouches,(function(t){a[t.identifier]=Yt(t)})):a[t.pointerId||0]=Yt(t),r=Object.keys(a).length>1&&i.zoomable&&i.zoomOnTouch?_:Mt(t.target,I),it.test(r)&&!1!==Nt(this.element,X,{originalEvent:t,action:r})&&(t.preventDefault(),this.action=r,this.cropping=!1,r===b&&(this.cropping=!0,Ft(this.dragBox,j)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var n=this.pointers;t.preventDefault(),!1!==Nt(this.element,W,{originalEvent:t,action:e})&&(t.changedTouches?wt(t.changedTouches,(function(t){_t(n[t.identifier]||{},Yt(t,!0))})):_t(n[t.pointerId||0]||{},Yt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,n=this.pointers;t.changedTouches?wt(t.changedTouches,(function(t){delete n[t.identifier]})):delete n[t.pointerId||0],e&&(t.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Tt(this.dragBox,j,this.cropped&&this.options.modal)),Nt(this.element,H,{originalEvent:t,action:e}))}}},ce={change:function(t){var e,n=this.options,r=this.canvasData,i=this.containerData,a=this.cropBoxData,o=this.pointers,s=this.action,l=n.aspectRatio,c=a.left,u=a.top,h=a.width,p=a.height,d=c+h,f=u+p,m=0,v=0,g=i.width,D=i.height,$=!0;!l&&t.shiftKey&&(l=h&&p?h/p:1),this.limited&&(m=a.minLeft,v=a.minTop,g=m+Math.min(i.width,r.width,r.left+r.width),D=v+Math.min(i.height,r.height,r.top+r.height));var E=o[Object.keys(o)[0]],B={x:E.endX-E.startX,y:E.endY-E.startY},j=function(t){switch(t){case x:d+B.x>g&&(B.x=g-d);break;case C:c+B.xD&&(B.y=D-f);break}};switch(s){case y:c+=B.x,u+=B.y;break;case x:if(B.x>=0&&(d>=g||l&&(u<=v||f>=D))){$=!1;break}j(x),h+=B.x,h<0&&(s=C,h=-h,c-=h),l&&(p=h/l,u+=(a.height-p)/2);break;case A:if(B.y<=0&&(u<=v||l&&(c<=m||d>=g))){$=!1;break}j(A),p-=B.y,u+=B.y,p<0&&(s=k,p=-p,u-=p),l&&(h=p*l,c+=(a.width-h)/2);break;case C:if(B.x<=0&&(c<=m||l&&(u<=v||f>=D))){$=!1;break}j(C),h-=B.x,c+=B.x,h<0&&(s=x,h=-h,c-=h),l&&(p=h/l,u+=(a.height-p)/2);break;case k:if(B.y>=0&&(f>=D||l&&(c<=m||d>=g))){$=!1;break}j(k),p+=B.y,p<0&&(s=A,p=-p,u-=p),l&&(h=p*l,c+=(a.width-h)/2);break;case O:if(l){if(B.y<=0&&(u<=v||d>=g)){$=!1;break}j(A),p-=B.y,u+=B.y,h=p*l}else j(A),j(x),B.x>=0?dv&&(p-=B.y,u+=B.y):(p-=B.y,u+=B.y);h<0&&p<0?(s=T,p=-p,h=-h,u-=p,c-=h):h<0?(s=F,h=-h,c-=h):p<0&&(s=S,p=-p,u-=p);break;case F:if(l){if(B.y<=0&&(u<=v||c<=m)){$=!1;break}j(A),p-=B.y,u+=B.y,h=p*l,c+=a.width-h}else j(A),j(C),B.x<=0?c>m?(h-=B.x,c+=B.x):B.y<=0&&u<=v&&($=!1):(h-=B.x,c+=B.x),B.y<=0?u>v&&(p-=B.y,u+=B.y):(p-=B.y,u+=B.y);h<0&&p<0?(s=S,p=-p,h=-h,u-=p,c-=h):h<0?(s=O,h=-h,c-=h):p<0&&(s=T,p=-p,u-=p);break;case T:if(l){if(B.x<=0&&(c<=m||f>=D)){$=!1;break}j(C),h-=B.x,c+=B.x,p=h/l}else j(k),j(C),B.x<=0?c>m?(h-=B.x,c+=B.x):B.y>=0&&f>=D&&($=!1):(h-=B.x,c+=B.x),B.y>=0?f=0&&(d>=g||f>=D)){$=!1;break}j(x),h+=B.x,p=h/l}else j(k),j(x),B.x>=0?d=0&&f>=D&&($=!1):h+=B.x,B.y>=0?f0?s=B.y>0?S:O:B.x<0&&(c-=h,s=B.y>0?T:F),B.y<0&&(u-=p),this.cropped||(St(this.cropBox,M),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}$&&(a.width=h,a.height=p,a.left=c,a.top=u,this.action=s,this.renderCropBox()),wt(o,(function(t){t.startX=t.endX,t.startY=t.endY}))}},ue={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Ft(this.dragBox,j),St(this.cropBox,M),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=_t({},this.initialImageData),this.canvasData=_t({},this.initialCanvasData),this.cropBoxData=_t({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(_t(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),St(this.dragBox,j),Ft(this.cropBox,M)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,wt(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,St(this.cropper,$)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Ft(this.cropper,$)),this},destroy:function(){var t=this.element;return t[g]?(t[g]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(dt(t)?t:r+Number(t),dt(e)?e:i+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(ht(t)&&(n.left=t,r=!0),ht(e)&&(n.top=e,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,e){var n=this.canvasData;return t=Number(t),t=t<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,null,e)},zoomTo:function(t,e,n){var r=this.options,i=this.canvasData,a=i.width,o=i.height,s=i.naturalWidth,l=i.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&r.zoomable){var c=s*t,u=l*t;if(!1===Nt(this.element,nt,{ratio:t,oldRatio:a/s,originalEvent:n}))return this;if(n){var h=this.pointers,p=Pt(this.cropper),d=h&&Object.keys(h).length?Vt(h):{pageX:n.pageX,pageY:n.pageY};i.left-=(c-a)*((d.pageX-p.left-i.left)/a),i.top-=(u-o)*((d.pageY-p.top-i.top)/o)}else vt(e)&&ht(e.x)&&ht(e.y)?(i.left-=(c-a)*((e.x-i.left)/a),i.top-=(u-o)*((e.y-i.top)/o)):(i.left-=(c-a)/2,i.top-=(u-o)/2);i.width=c,i.height=u,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),ht(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,ht(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(ht(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(ht(t)&&(n.scaleX=t,r=!0),ht(e)&&(n.scaleY=e,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,a=this.cropBoxData;if(this.ready&&this.cropped){t={x:a.left-i.left,y:a.top-i.top,width:a.width,height:a.height};var o=r.width/r.naturalWidth;if(wt(t,(function(e,n){t[n]=e/o})),e){var s=Math.round(t.y+t.height),l=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=l-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return n.rotatable&&(t.rotate=r.rotate||0),n.scalable&&(t.scaleX=r.scaleX||1,t.scaleY=r.scaleY||1),t},setData:function(t){var e=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&vt(t)){var a=!1;e.rotatable&&ht(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,a=!0),e.scalable&&(ht(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,a=!0),ht(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var o=n.width/n.naturalWidth;ht(t.x)&&(i.left=t.x*o+r.left),ht(t.y)&&(i.top=t.y*o+r.top),ht(t.width)&&(i.width=t.width*o),ht(t.height)&&(i.height=t.height*o),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?_t({},this.containerData):{}},getImageData:function(){return this.sized?_t({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&wt(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){e[n]=t[n]})),e},setCanvasData:function(t){var e=this.canvasData,n=e.aspectRatio;return this.ready&&!this.disabled&&vt(t)&&(ht(t.left)&&(e.left=t.left),ht(t.top)&&(e.top=t.top),ht(t.width)?(e.width=t.width,e.height=t.width/n):ht(t.height)&&(e.height=t.height,e.width=t.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&vt(t)&&(ht(t.left)&&(r.left=t.left),ht(t.top)&&(r.top=t.top),ht(t.width)&&t.width!==r.width&&(e=!0,r.width=t.width),ht(t.height)&&t.height!==r.height&&(n=!0,r.height=t.height),i&&(e?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,n=Jt(this.image,this.imageData,e,t);if(!this.cropped)return n;var r=this.getData(),i=r.x,a=r.y,o=r.width,l=r.height,c=n.width/Math.floor(e.naturalWidth);1!==c&&(i*=c,a*=c,o*=c,l*=c);var u=o/l,h=Gt({aspectRatio:u,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),p=Gt({aspectRatio:u,width:t.minWidth||0,height:t.minHeight||0},"cover"),d=Gt({aspectRatio:u,width:t.width||(1!==c?n.width:o),height:t.height||(1!==c?n.height:l)}),f=d.width,m=d.height;f=Math.min(h.width,Math.max(p.width,f)),m=Math.min(h.height,Math.max(p.height,m));var v=document.createElement("canvas"),g=v.getContext("2d");v.width=Ct(f),v.height=Ct(m),g.fillStyle=t.fillColor||"transparent",g.fillRect(0,0,f,m);var y=t.imageSmoothingEnabled,b=void 0===y||y,w=t.imageSmoothingQuality;g.imageSmoothingEnabled=b,w&&(g.imageSmoothingQuality=w);var _,x,C,k,A,O,F=n.width,S=n.height,T=i,D=a;T<=-o||T>F?(T=0,_=0,C=0,A=0):T<=0?(C=-T,T=0,_=Math.min(F,o+T),A=_):T<=F&&(C=0,_=Math.min(o,F-T),A=_),_<=0||D<=-l||D>S?(D=0,x=0,k=0,O=0):D<=0?(k=-D,D=0,x=Math.min(S,l+D),O=x):D<=S&&(k=0,x=Math.min(l,S-D),O=x);var $=[T,D,_,x];if(A>0&&O>0){var M=f/o;$.push(C*M,k*M,A*M,O*M)}return g.drawImage.apply(g,[n].concat(s($.map((function(t){return Math.floor(Ct(t))}))))),v},setAspectRatio:function(t){var e=this.options;return this.disabled||dt(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i=t===N,a=e.movable&&t===P;t=i||a?t:U,e.dragMode=t,Et(n,I,t),Tt(n,D,i),Tt(n,L,a),e.cropBoxMovable||(Et(r,I,t),Tt(r,D,i),Tt(r,L,a))}return this}},he=f.Cropper,pe=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,t),!n||!st.test(n.tagName))throw new Error("The first argument is required and must be an or element.");this.element=n,this.options=_t({},lt,vt(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return r(t,[{key:"init",value:function(){var t,e=this.element,n=e.tagName.toLowerCase();if(!e[g]){if(e[g]=this,"img"===n){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===n&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(at.test(t))ot.test(t)?this.read(ee(t)):this.clone();else{var i=new XMLHttpRequest,a=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=a,i.onerror=a,i.ontimeout=a,i.onprogress=function(){i.getResponseHeader("content-type")!==rt&&i.abort()},i.onload=function(){e.read(i.response)},i.onloadend=function(){e.reloading=!1,e.xhr=null},r.checkCrossOrigin&&Ht(t)&&n.crossOrigin&&(t=Wt(t)),i.open("GET",t),i.responseType="arraybuffer",i.withCredentials="use-credentials"===n.crossOrigin,i.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,r=re(t),i=0,a=1,o=1;if(r>1){this.url=ne(t,rt);var s=ie(r);i=s.rotate,a=s.scaleX,o=s.scaleY}e.rotatable&&(n.rotate=i),e.scalable&&(n.scaleX=a,n.scaleY=o),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,n=t.crossOrigin,r=e;this.options.checkCrossOrigin&&Ht(e)&&(n||(n="anonymous"),r=Wt(e)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||e,i.alt=t.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),Ft(i,E),t.parentNode.insertBefore(i,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var n=f.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(f.navigator.userAgent),r=function(e,n){_t(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||n){var i=document.createElement("img"),a=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||a.removeChild(i)},i.src=e.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",a.appendChild(i))}else r(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,n=this.image,r=t.parentNode,i=document.createElement("div");i.innerHTML=ct;var a=i.querySelector(".".concat(g,"-container")),o=a.querySelector(".".concat(g,"-canvas")),s=a.querySelector(".".concat(g,"-drag-box")),l=a.querySelector(".".concat(g,"-crop-box")),c=l.querySelector(".".concat(g,"-face"));this.container=r,this.cropper=a,this.canvas=o,this.dragBox=s,this.cropBox=l,this.viewBox=a.querySelector(".".concat(g,"-view-box")),this.face=c,o.appendChild(n),Ft(t,M),r.insertBefore(a,t.nextSibling),this.isImg||St(n,E),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,Ft(l,M),e.guides||Ft(l.getElementsByClassName("".concat(g,"-dashed")),M),e.center||Ft(l.getElementsByClassName("".concat(g,"-center")),M),e.background&&Ft(a,"".concat(g,"-bg")),e.highlight||Ft(c,B),e.cropBoxMovable&&(Ft(c,L),Et(c,I,y)),e.cropBoxResizable||(Ft(l.getElementsByClassName("".concat(g,"-line")),M),Ft(l.getElementsByClassName("".concat(g,"-point")),M)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),gt(e.ready)&&Rt(t,Z,e.ready,{once:!0}),Nt(t,Z)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),St(this.element,M))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=he,t}},{key:"setDefaults",value:function(t){_t(lt,vt(t)&&t)}}]),t}();return _t(pe.prototype,ae,oe,se,le,ce,ue),pe}))},"370a":function(t,e,n){},"3a0d":function(t,e,n){"use strict";n.r(e);var r=n("e8e5"),i=n("c9c4"),a=n("ff0a"),o=n("337c"),s=n("5c45"),l=n("8b67"),c=n("1622"),u=n("265c"),h=n("807a"),p=n("0261"),d=0,f=1,m=2;function v(t){this.state=m,this.value=void 0,this.deferred=[];var e=this;try{t((function(t){e.resolve(t)}),(function(t){e.reject(t)}))}catch(n){e.reject(n)}}v.reject=function(t){return new v((function(e,n){n(t)}))},v.resolve=function(t){return new v((function(e,n){e(t)}))},v.all=function(t){return new v((function(e,n){var r=0,i=[];function a(n){return function(a){i[n]=a,r+=1,r===t.length&&e(i)}}0===t.length&&e(i);for(var o=0;o=200&&i<300,this.status=i||0,this.statusText=a||"",this.headers=new kt(r),this.body=t,L(t)?this.bodyText=t:P(t)&&(this.bodyBlob=t,Tt(t)&&(this.bodyText=St(t)))};function St(t){return new y((function(e){var n=new FileReader;n.readAsText(t),n.onload=function(){e(n.result)}}))}function Tt(t){return 0===t.type.indexOf("text")||-1!==t.type.indexOf("json")}Ft.prototype.blob=function(){return z(this.bodyBlob)},Ft.prototype.text=function(){return z(this.bodyText)},Ft.prototype.json=function(){return z(this.text(),(function(t){return JSON.parse(t)}))},Object.defineProperty(Ft.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var Dt=function(t){this.body=null,this.params={},X(this,t,{method:B(t.method||"GET")}),this.headers instanceof kt||(this.headers=new kt(this.headers))};Dt.prototype.getUrl=function(){return ot(this)},Dt.prototype.getBody=function(){return this.body},Dt.prototype.respondWith=function(t,e){return new Ft(t,X(e||{},{url:this.getUrl()}))};var $t={Accept:"application/json, text/plain, */*"},Mt={"Content-Type":"application/json;charset=utf-8"};function Et(t){var e=this||{},n=xt(e.$vm);return Y(t||{},e.$options,Et.options),Et.interceptors.forEach((function(t){L(t)&&(t=Et.interceptor[t]),I(t)&&n.use(t)})),n(new Dt(t)).then((function(t){return t.ok?t:y.reject(t)}),(function(t){return t instanceof Error&&T(t),y.reject(t)}))}function Bt(t,e,n,r){var i=this||{},a={};return n=X({},Bt.actions,n),W(n,(function(n,o){n=q({url:t,params:X({},e)},r,n),a[o]=function(){return(i.$http||Et)(jt(n,arguments))}})),a}function jt(t,e){var n,r=X({},t),i={};switch(e.length){case 2:i=e[0],n=e[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(r.method)?n=e[0]:i=e[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+e.length+" arguments"}return r.body=n,r.params=X({},r.params,i),r}function Lt(t){Lt.installed||(F(t),t.url=ot,t.http=Et,t.resource=Bt,t.Promise=y,Object.defineProperties(t.prototype,{$url:{get:function(){return H(t.url,this,this.$options.url)}},$http:{get:function(){return H(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}},$promise:{get:function(){var e=this;return function(n){return new t.Promise(n,e)}}}}))}Et.options={},Et.headers={put:Mt,post:Mt,patch:Mt,delete:Mt,common:$t,custom:{}},Et.interceptor={before:gt,method:yt,jsonp:vt,json:dt,form:pt,header:bt,cors:ht},Et.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach((function(t){Et[t]=function(e,n){return this(X(n||{},{url:e,method:t}))}})),["post","put","patch"].forEach((function(t){Et[t]=function(e,n,r){return this(X(r||{},{url:e,method:t,body:n}))}})),Bt.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!==typeof window&&window.Vue&&window.Vue.use(Lt);var It=Lt;p["default"].use(It);e["default"]={install(t){t.use(s["default"]),t.use(o["default"]),t.use(a["default"]),t.use(r["default"]),t.use(i["default"]),t.use(l["default"]),t.use(c["default"]),t.use(u["default"]),t.use(h["default"])}}},"472c":function(t,e,n){"use strict";var r=n("29af"),i=n.n(r);i.a},"4d13":function(t,e,n){},"52f5":function(t,e,n){"use strict";var r=n("76f3"),i=n.n(r);i.a},"5c45":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"margin-bottom":"50px","min-width":"1000px"}},[n("el-row",{staticClass:"row-bg",attrs:{type:"flex",justify:"center"}},[n("el-col",{attrs:{xs:24,sm:24,md:24,lg:24,xl:16}},[n("div",{staticClass:"index"},[n("div",{staticClass:"title"},[n("div",{staticStyle:{float:"left"}},[t._t("title")],2),n("span",{staticStyle:{margin:"0 auto"}},[t._t("center")],2),n("div",{staticClass:"title-right"},[t._t("title-right",[n("span",[t._v("标记")]),n("span",{staticStyle:{color:"red"}},[t._v("*")]),n("span",[t._v("未必填项")])])],2)]),t._t("body"),n("div",{staticClass:"footer"},[t._t("footer")],2)],2)])],1)],1)},i=[],a={name:"cheersCard"},o=a,s=(n("1045"),n("9ca4")),l=Object(s["a"])(o,r,i,!1,null,"1331d2ac",null),c=l.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c},"60e8":function(t,e,n){var r,i; /*! FileAPI 2.1.1 - BSD | git://github.com/mailru/FileAPI.git * FileAPI — a set of javascript tools for working with files. Multiupload, drag'n'drop and chunked file upload. Images: crop, resize and auto orientation by EXIF. - */(function(t){"use strict";var e=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,n=t.Blob&&function(){try{return Boolean(new Blob)}catch(t){return!1}}(),r=n&&t.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(t){return!1}}(),i=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder,a=(n||i)&&t.atob&&t.ArrayBuffer&&t.Uint8Array&&function(t){var e,a,o,s,l,c;for(e=t.split(",")[0].indexOf("base64")>=0?atob(t.split(",")[1]):decodeURIComponent(t.split(",")[1]),a=new ArrayBuffer(e.length),o=new Uint8Array(a),s=0;s0,C=t.dataURLtoBlob,k=/img/i,A=/canvas/i,O=/img|canvas/i,F=/input/i,S=/^data:[^,]+,/,T={}.toString,D=t.Math,$=function(e){return e=new t.Number(D.pow(1024,e)),e.from=function(t){return D.round(t*this)},e},M={},E=[],B="abort progress error load loadend",j="status statusText readyState response responseXML responseText responseBody".split(" "),L="currentTarget",I="preventDefault",R=function(t){return t&&"length"in t},N=function(t,e,n){if(t)if(R(t))for(var r=0,i=t.length;r=n&&!r&&a.end()},isFail:function(){return r},fail:function(){!r&&t(r=!0)},end:function(){i||(i=!0,t())}};return a},each:N,afor:function(t,e){var n=0,r=t.length;R(t)&&r--?function i(){e(r!=n&&i,t[n],n++)}():e(!1)},extend:P,isFile:function(t){return"[object File]"===T.call(t)},isBlob:function(t){return this.isFile(t)||"[object Blob]"===T.call(t)},isCanvas:function(t){return t&&A.test(t.nodeName)},getFilesFilter:function(t){return t="string"==typeof t?t:t.getAttribute&&t.getAttribute("accept")||"",t?new RegExp("("+t.replace(/\./g,"\\.").replace(/,/g,"|")+")$","i"):/./},readAsDataURL:function(t,e){q.isCanvas(t)?Y(t,e,"load",q.toDataURL(t)):G(t,e,"DataURL")},readAsBinaryString:function(t,e){V("BinaryString")?G(t,e,"BinaryString"):G(t,(function(t){if("load"==t.type)try{t.result=q.toBinaryString(t.result)}catch(n){t.type="error",t.message=n.toString()}e(t)}),"DataURL")},readAsArrayBuffer:function(t,e){G(t,e,"ArrayBuffer")},readAsText:function(t,e,n){n||(n=e,e="utf-8"),G(t,n,"Text",e)},toDataURL:function(t,e){return"string"==typeof t?t:t.toDataURL?t.toDataURL(e||"image/png"):void 0},toBinaryString:function(e){return t.atob(q.toDataURL(e).replace(S,""))},readAsImage:function(t,n,r){if(q.isBlob(t))if(p){var i=p.createObjectURL(t);i===e?Y(t,n,"error"):q.readAsImage(i,n,r)}else q.readAsDataURL(t,(function(e){"load"==e.type?q.readAsImage(e.result,n,r):(r||"error"==e.type)&&Y(t,n,e,null,{loaded:e.loaded,total:e.total})}));else if(q.isCanvas(t))Y(t,n,"load",t);else if(k.test(t.nodeName))if(t.complete)Y(t,n,"load",t);else{var a="error abort load";H(t,a,(function e(r){"load"==r.type&&p&&p.revokeObjectURL(t.src),z(t,a,e),Y(t,n,r,t)}))}else if(t.iframe)Y(t,n,{type:"error"});else{var o=q.newImage(t.dataURL||t);q.readAsImage(o,n,r)}},checkFileObj:function(t){var e={},n=q.accept;return"object"==typeof t?e=t:e.name=(t+"").split(/\\|\//g).pop(),null==e.type&&(e.type=e.name.split(".").pop()),N(n,(function(t,n){t=new RegExp(t.replace(/\s/g,"|"),"i"),(t.test(e.type)||q.ext2mime[e.type])&&(e.type=q.ext2mime[e.type]||n.split("/")[0]+"/"+e.type)})),e},getDropFiles:function(t,e){var n,r=[],i=[],a=nt(t),o=a.files,s=a.items,l=R(s)&&s[0]&&Q(s[0]),c=q.queue((function(){e(r,i)}));if(l)if(x&&o){var u,h,p=o.length;n=new Array(p);while(p--){u=o[p];try{h=Q(s[p])}catch(d){q.log("[err] getDropFiles: ",d),h=null}J(h)&&(h.isDirectory||h.isFile&&u.name==u.name.normalize("NFC"))?n[p]=h:n[p]=u}}else n=s;else n=o;N(n||[],(function(t){c.inc();try{l&&J(t)?Z(t,(function(t,e,n){t?q.log("[err] getDropFiles:",t):r.push.apply(r,e),i.push.apply(i,n),c.next()})):K(t,(function(e,n){e?r.push(t):t.error=n,i.push(t),c.next()}))}catch(d){c.next(),q.log("[err] getDropFiles: ",d)}})),c.check()},getFiles:function(t,e,n){var r=[];return n?(q.filterFiles(q.getFiles(t),e,n),null):(t.jquery&&(t.each((function(){r=r.concat(q.getFiles(this))})),t=r,r=[]),"string"==typeof e&&(e=q.getFilesFilter(e)),t.originalEvent?t=W(t.originalEvent):t.srcElement&&(t=W(t)),t.dataTransfer?t=t.dataTransfer:t.target&&(t=t.target),t.files?(r=t.files,b||(r[0].blob=t,r[0].iframe=!0)):!b&&et(t)?q.trim(t.value)&&(r=[q.checkFileObj(t.value)],r[0].blob=t,r[0].iframe=!0):R(t)&&(r=t),q.filter(r,(function(t){return!e||e.test(t.name)})))},getTotalSize:function(t){var e=0,n=t&&t.length;while(n--)e+=t[n].size;return e},getInfo:function(t,e){var n={},r=E.concat();q.isBlob(t)?function i(){var a=r.shift();a?a.test(t.type)?a(t,(function(t,r){t?e(t):(P(n,r),i())})):i():e(!1,n)}():e("not_support_info",n)},addInfoReader:function(t,e){e.test=function(e){return t.test(e)},E.push(e)},filter:function(t,e){for(var n,r=[],i=0,a=t.length;i>2,u=(3&o)<<4|s>>4;isNaN(s)?i=a=64:(i=(15&s)<<2|l>>6,a=isNaN(l)?64:63&l),n+=e.charAt(c)+e.charAt(u)+e.charAt(i)+e.charAt(a)}return n}};function Y(t,e,n,r,i){var a={type:n.type||n,target:t,result:r};P(a,i),e(a)}function V(t){return m&&!!m.prototype["readAs"+t]}function G(t,n,r,i){if(q.isBlob(t)&&V(r)){var a=new m;U(a,B,(function e(r){var i=r.type;"progress"==i?Y(t,n,r,r.target.result,{loaded:r.loaded,total:r.total}):"loadend"==i?(z(a,B,e),a=null):Y(t,n,r,r.target.result)}));try{i?a["readAs"+r](t,i):a["readAs"+r](t)}catch(o){Y(t,n,"error",e,{error:o.toString()})}}else Y(t,n,"error",e,{error:"filreader_not_support_"+r})}function K(t,e){if(!t.type&&(c||t.size%4096===0&&t.size<=102400))if(m)try{var n=new m;H(n,B,(function(t){var r="error"!=t.type;r?(null!=n.readyState&&n.readyState!==n.LOADING||n.abort(),e(r)):e(!1,n.error)})),n.readAsDataURL(t)}catch(r){e(!1,r)}else e(null,new Error("FileReader is not supported"));else e(!0)}function J(t){return t&&(t.isFile||t.isDirectory)}function Q(t){var e;return t.getAsEntry?e=t.getAsEntry():t.webkitGetAsEntry&&(e=t.webkitGetAsEntry()),e}function Z(t,e){if(t)if(t.isFile)t.file((function(n){n.fullPath=t.fullPath,e(!1,[n],[n])}),(function(n){t.error=n,e("FileError.code: "+n.code,[],[t])}));else if(t.isDirectory){var n=t.createReader(),r=!0,i=[],a=[t],o=function(n){t.error=n,e("DirectoryError.code: "+n.code,i,a)},s=function s(l){r&&(r=!1,l.length||(t.error=new Error("directory is empty"))),l.length?q.afor(l,(function(t,e){Z(e,(function(e,r,l){e||(i=i.concat(r)),a=a.concat(l),t?t():n.readEntries(s,o)}))})):e(!1,i,a)};n.readEntries(s,o)}else Z(Q(t),e);else{var l=new Error("invalid entry");t=new Object(t),t.error=l,e(l.message,[],[t])}}function tt(t){var e={};return N(t,(function(t,n){t&&"object"===typeof t&&void 0===t.nodeType&&(t=P({},t)),e[n]=t})),e}function et(t){return F.test(t&&t.tagName)}function nt(t){return(t.originalEvent||t||"").dataTransfer||{}}function rt(t){var e;for(e in t)if(t.hasOwnProperty(e)&&!(t[e]instanceof Object||"overlay"===e||"filter"===e))return!0;return!1}q.addInfoReader(/^image/,(function(t,e){if(!t.__dimensions){var n=t.__dimensions=q.defer();q.readAsImage(t,(function(t){var e=t.target;n.resolve("load"!=t.type&&"error",{width:e.width,height:e.height}),e.src=q.EMPTY_PNG,e=null}))}t.__dimensions.then(e)})),q.event.dnd=function(t,e,n){var r,i;n||(n=e,e=q.F),m?(U(t,"dragenter dragleave dragover",e.ff=e.ff||function(t){var n=nt(t).types,a=n&&n.length,o=!1;while(a--)if(~n[a].indexOf("File")){t[I](),i!==t.type&&(i=t.type,"dragleave"!=i&&e.call(t[L],!0,t),o=!0);break}o&&(clearTimeout(r),r=setTimeout((function(){e.call(t[L],"dragleave"!=i,t)}),50))}),U(t,"drop",n.ff=n.ff||function(t){t[I](),i=0,q.getDropFiles(t,(function(e,r){n.call(t[L],e,r,t)})),e.call(t[L],!1,t)})):q.log("Drag'n'Drop -- not supported")},q.event.dnd.off=function(t,e,n){z(t,"dragenter dragleave dragover",e.ff),z(t,"drop",n.ff)},y&&!y.fn.dnd&&(y.fn.dnd=function(t,e){return this.each((function(){q.event.dnd(this,t,e)}))},y.fn.offdnd=function(t,e){return this.each((function(){q.event.dnd.off(this,t,e)}))}),t.FileAPI=P(q,t.FileAPI),q.log("FileAPI: "+q.version),q.log("protocol: "+t.location.protocol),q.log("doctype: ["+s.name+"] "+s.publicId+" "+s.systemId),N(o.getElementsByTagName("meta"),(function(t){/x-ua-compatible/i.test(t.getAttribute("http-equiv"))&&q.log("meta.http-equiv: "+t.getAttribute("content"))}));try{n=!!console.log,r=!!console.log.apply}catch(it){}q.flashUrl||(q.flashUrl=q.staticPath+"FileAPI.flash.swf"),q.flashImageUrl||(q.flashImageUrl=q.staticPath+"FileAPI.flash.image.swf"),q.flashWebcamUrl||(q.flashWebcamUrl=q.staticPath+"FileAPI.flash.camera.swf")}(window,void 0),function(t,e,n){"use strict";var r=Math.min,i=Math.round,a=function(){return e.createElement("canvas")},o=!1,s={8:270,3:180,6:90,7:270,4:180,5:90};try{o=a().toDataURL("image/png").indexOf("data:image/png")>-1}catch(c){}function l(e){if(e instanceof l){var n=new l(e.file);return t.extend(n.matrix,e.matrix),n}if(!(this instanceof l))return new l(e);this.file=e,this.size=e.size||100,this.matrix={sx:0,sy:0,sw:0,sh:0,dx:0,dy:0,dw:0,dh:0,resize:0,deg:0,quality:1,filter:0}}l.prototype={image:!0,constructor:l,set:function(e){return t.extend(this.matrix,e),this},crop:function(t,e,r,i){return r===n&&(r=t,i=e,t=e=0),this.set({sx:t,sy:e,sw:r,sh:i||r})},resize:function(t,e,n){return/min|max|height|width/.test(e)&&(n=e,e=t),this.set({dw:t,dh:e||t,resize:n})},preview:function(t,e){return this.resize(t,e||t,"preview")},rotate:function(t){return this.set({deg:t})},filter:function(t){return this.set({filter:t})},overlay:function(t){return this.set({overlay:t})},clone:function(){return new l(this)},_load:function(e,n){var r=this;/img|video/i.test(e.nodeName)?n.call(r,null,e):t.readAsImage(e,(function(t){n.call(r,"load"!=t.type,t.result)}))},_apply:function(e,n){var i,o=a(),s=this.getMatrix(e),c=o.getContext("2d"),u=e.videoWidth||e.width,h=e.videoHeight||e.height,p=s.deg,d=s.dw,f=s.dh,m=u,v=h,g=s.filter,y=e,b=s.overlay,w=t.queue((function(){e.src=t.EMPTY_PNG,n(!1,o)})),_=t.renderImageToCanvas;p-=360*Math.floor(p/360),e._type=this.file.type;while(s.multipass&&r(m/d,v/f)>2)m=m/2+.5|0,v=v/2+.5|0,i=a(),i.width=m,i.height=v,y!==e?(_(i,y,0,0,y.width,y.height,0,0,m,v),y=i):(y=i,_(y,e,s.sx,s.sy,s.sw,s.sh,0,0,m,v),s.sx=s.sy=s.sw=s.sh=0);o.width=p%180?f:d,o.height=p%180?d:f,o.type=s.type,o.quality=s.quality,c.rotate(p*Math.PI/180),_(c.canvas,y,s.sx,s.sy,s.sw||y.width,s.sh||y.height,180==p||270==p?-d:0,90==p||180==p?-f:0,d,f),d=o.width,f=o.height,b&&t.each([].concat(b),(function(e){w.inc();var n=new window.Image,r=function(){var i=0|e.x,a=0|e.y,o=e.w||n.width,s=e.h||n.height,l=e.rel;i=1==l||4==l||7==l?(d-o+i)/2:2==l||5==l||8==l?d-(o+i):i,a=3==l||4==l||5==l?(f-s+a)/2:l>=6?f-(s+a):a,t.event.off(n,"error load abort",r);try{c.globalAlpha=e.opacity||1,c.drawImage(n,i,a,o,s)}catch(u){}w.next()};t.event.on(n,"error load abort",r),n.src=e.src,n.complete&&r()})),g&&(w.inc(),l.applyFilter(o,g,w.next)),w.check()},getMatrix:function(e){var n,a,o=t.extend({},this.matrix),s=o.sw=o.sw||e.videoWidth||e.naturalWidth||e.width,l=o.sh=o.sh||e.videoHeight||e.naturalHeight||e.height,c=o.dw=o.dw||s,u=o.dh=o.dh||l,h=s/l,p=c/u,d=o.resize;"preview"==d?c==s&&u==l||(p>=h?(n=s,a=n/p):(a=l,n=a*p),n==s&&a==l||(o.sx=~~((s-n)/2),o.sy=~~((l-a)/2),s=n,l=a)):"height"==d?c=u*h:"width"==d?u=c/h:d&&(s>c||l>u?"min"==d?(c=i(h=p?r(s,c):u*h),u=i(h>=p?c/h:r(l,u))):(c=s,u=l));return o.sw=s,o.sh=l,o.dw=c,o.dh=u,o.multipass=t.multiPassResize,o},_trans:function(e){this._load(this.file,(function(n,r){if(n)e(n);else try{this._apply(r,e)}catch(n){t.log("[err] FileAPI.Image.fn._apply:",n),e(n)}}))},get:function(e){if(t.support.transform){var n=this,r=n.matrix;"auto"==r.deg?t.getInfo(n.file,(function(t,i){r.deg=s[i&&i.exif&&i.exif.Orientation]||0,n._trans(e)})):n._trans(e)}else e("not_support_transform");return this},toData:function(t){return this.get(t)}},l.exifOrientation=s,l.transform=function(e,r,i,a){function o(o,s){var c={},u=t.queue((function(t){a(t,c)}));o?u.fail():t.each(r,(function(t,r){if(!u.isFail()){var a=new l(s.nodeType?s:e),o="function"==typeof t;if(o?t(s,a):t.width?a[t.preview?"preview":"resize"](t.width,t.height,t.strategy):t.maxWidth&&(s.width>t.maxWidth||s.height>t.maxHeight)&&a.resize(t.maxWidth,t.maxHeight,"max"),t.crop){var h=t.crop;a.crop(0|h.x,0|h.y,h.w||h.width,h.h||h.height)}t.rotate===n&&i&&(t.rotate="auto"),a.set({type:a.matrix.type||t.type||e.type||"image/png"}),o||a.set({deg:t.rotate,overlay:t.overlay,filter:t.filter,quality:t.quality||1}),u.inc(),a.toData((function(t,e){t?u.fail():(c[r]=e,u.next())}))}}))}e.width?o(!1,e):t.getInfo(e,o)},t.each(["TOP","CENTER","BOTTOM"],(function(e,n){t.each(["LEFT","CENTER","RIGHT"],(function(t,r){l[e+"_"+t]=3*n+r,l[t+"_"+e]=3*n+r}))})),l.toCanvas=function(t){var n=e.createElement("canvas");return n.width=t.videoWidth||t.width,n.height=t.videoHeight||t.height,n.getContext("2d").drawImage(t,0,0),n},l.fromDataURL=function(e,n,r){var i=t.newImage(e);t.extend(i,n),r(i)},l.applyFilter=function(e,n,r){"function"==typeof n?n(e,r):window.Caman&&window.Caman("IMG"==e.tagName?l.toCanvas(e):e,(function(){"string"==typeof n?this[n]():t.each(n,(function(t,e){this[e](t)}),this),this.render(r)}))},t.renderImageToCanvas=function(e,n,r,i,a,o,s,l,c,u){try{return e.getContext("2d").drawImage(n,r,i,a,o,s,l,c,u)}catch(h){throw t.log("renderImageToCanvas failed"),h}},t.support.canvas=t.support.transform=o,t.Image=l}(FileAPI,document),function(t){"use strict";t(FileAPI)}((function(t){"use strict";if(window.navigator&&window.navigator.platform&&/iP(hone|od|ad)/.test(window.navigator.platform)){var e=t.renderImageToCanvas;t.detectSubsampling=function(t){var e,n;return t.width*t.height>1048576&&(e=document.createElement("canvas"),e.width=e.height=1,n=e.getContext("2d"),n.drawImage(t,1-t.width,0),0===n.getImageData(0,0,1,1).data[3])},t.detectVerticalSquash=function(t,e){var n,r,i,a,o,s=t.naturalHeight||t.height,l=document.createElement("canvas"),c=l.getContext("2d");e&&(s/=2),l.width=1,l.height=s,c.drawImage(t,0,0),n=c.getImageData(0,0,1,s).data,r=0,i=s,a=s;while(a>r)o=n[4*(a-1)+3],0===o?i=a:r=a,a=i+r>>1;return a/s||1},t.renderImageToCanvas=function(n,r,i,a,o,s,l,c,u,h){if("image/jpeg"===r._type){var p,d,f,m,v=n.getContext("2d"),g=document.createElement("canvas"),y=1024,b=g.getContext("2d");if(g.width=y,g.height=y,v.save(),p=t.detectSubsampling(r),p&&(i/=2,a/=2,o/=2,s/=2),d=t.detectVerticalSquash(r,p),p||1!==d){a*=d,u=Math.ceil(y*u/o),h=Math.ceil(y*h/s/d),c=0,m=0;while(m0&&1==t.filter(this.items,(function(t){return t.file})).length,t.support.html5?t.formData&&!this.multipart&&r?n._chunked?(t.log("FileAPI.Form.toPlainData"),this.toPlainData(e)):(t.log("FileAPI.Form.toFormData"),this.toFormData(e)):(t.log("FileAPI.Form.toMultipartData"),this.toMultipartData(e)):(t.log("FileAPI.Form.toHtmlData"),this.toHtmlData(e))},_to:function(e,n,r,i){var a=t.queue((function(){n(e)}));this.each((function(o){try{r(o,e,a,i)}catch(s){t.log("FileAPI.Form._to: "+s.message),n(s)}})),a.check()},toHtmlData:function(e){this._to(n.createDocumentFragment(),e,(function(e,r){var i,a=e.blob;e.file?(t.reset(a,!0),a.name=e.name,a.disabled=!1,r.appendChild(a)):(i=n.createElement("input"),i.name=e.name,i.type="hidden",i.value=a,r.appendChild(i))}))},toPlainData:function(t){this._to({},t,(function(t,e,n){t.file&&(e.type=t.file),t.blob.toBlob?(n.inc(),o(t,(function(t,r){e.name=t.name,e.file=r,e.size=r.length,e.type=t.type,n.next()}))):t.file?(e.name=t.blob.name,e.file=t.blob,e.size=t.blob.size,e.type=t.type):(e.params||(e.params=[]),e.params.push(a(t.name)+"="+a(t.blob))),e.start=-1,e.end=e.file&&e.file.FileAPIReadPosition||-1,e.retry=0}))},toFormData:function(t){this._to(new r,t,(function(t,e,n){t.blob&&t.blob.toBlob?(n.inc(),o(t,(function(t,r){e.append(t.name,r,t.file),n.next()}))):t.file?e.append(t.name,t.blob,t.file):e.append(t.name,t.blob),t.file&&e.append("_"+t.name,t.file)}))},toMultipartData:function(e){this._to([],e,(function(t,e,n,r){n.inc(),o(t,(function(t,i){e.push("--_"+r+'\r\nContent-Disposition: form-data; name="'+t.name+'"'+(t.file?'; filename="'+a(t.file)+'"':"")+(t.file?"\r\nContent-Type: "+(t.type||"application/octet-stream"):"")+"\r\n\r\n"+(t.file?i:a(i))+"\r\n"),n.next()}),!0)}),t.expando)}},t.Form=i}(FileAPI,window),function(t,e){"use strict";var n=function(){},r=t.document,i=function(t){this.uid=e.uid(),this.xhr={abort:n,getResponseHeader:n,getAllResponseHeaders:n},this.options=t},a={"":1,XML:1,Text:1,Body:1};i.prototype={status:0,statusText:"",constructor:i,getResponseHeader:function(t){return this.xhr.getResponseHeader(t)},getAllResponseHeaders:function(){return this.xhr.getAllResponseHeaders()||{}},end:function(r,i){var a=this,o=a.options;a.end=a.abort=n,a.status=r,i&&(a.statusText=i),e.log("xhr.end:",r,i),o.complete(200!=r&&201!=r&&(a.statusText||"unknown"),a),a.xhr&&a.xhr.node&&setTimeout((function(){var e=a.xhr.node;try{e.parentNode.removeChild(e)}catch(n){}try{delete t[a.uid]}catch(n){}t[a.uid]=a.xhr.node=null}),9)},abort:function(){this.end(0,"abort"),this.xhr&&(this.xhr.aborted=!0,this.xhr.abort())},send:function(t){var e=this,n=this.options;t.toData((function(t){t instanceof Error?e.end(0,t.message):(n.upload(n,e),e._send.call(e,n,t))}),n)},_send:function(n,i){var o,s=this,l=s.uid,c=s.uid+"Load",u=n.url;if(e.log("XHR._send:",i),n.cache||(u+=(~u.indexOf("?")?"&":"?")+e.uid()),i.nodeName){var h=n.jsonp;u=u.replace(/([a-z]+)=(\?)/i,"$1="+l),n.upload(n,s);var p=function(t){if(~u.indexOf(t.origin))try{var n=e.parseJSON(t.data);n.id==l&&d(n.status,n.statusText,n.response)}catch(r){d(0,r.message)}},d=t[l]=function(n,r,i){s.readyState=4,s.responseText=i,s.end(n,r),e.event.off(t,"message",p),t[l]=o=m=t[c]=null};s.xhr.abort=function(){try{m.stop?m.stop():m.contentWindow.stop?m.contentWindow.stop():m.contentWindow.document.execCommand("Stop")}catch(t){}d(0,"abort")},e.event.on(t,"message",p),t[c]=function(){try{var t=m.contentWindow,n=t.document,r=t.result||e.parseJSON(n.body.innerHTML);d(r.status,r.statusText,r.response)}catch(i){e.log("[transport.onload]",i)}},o=r.createElement("div"),o.innerHTML='
'+(h&&n.url.indexOf("=?")<0?'':"")+"
";var f=o.getElementsByTagName("form")[0],m=o.getElementsByTagName("iframe")[0];f.appendChild(i),e.log(f.parentNode.innerHTML),r.body.appendChild(o),s.xhr.node=o,s.readyState=2;try{f.submit()}catch(w){e.log("iframe.error: "+w)}f=null}else{if(u=u.replace(/([a-z]+)=(\?)&?/i,""),this.xhr&&this.xhr.aborted)return void e.log("Error: already aborted");if(o=s.xhr=e.getXHR(),i.params&&(u+=(u.indexOf("?")<0?"?":"&")+i.params.join("&")),o.open(n.uploadMethod||"POST",u,!0),"boolean"===typeof n.uploadCredentials?o.withCredentials=n.uploadCredentials?"true":null:e.withCredentials&&(o.withCredentials="true"),n.headers&&n.headers["X-Requested-With"]||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.each(n.headers,(function(t,e){o.setRequestHeader(e,t)})),n._chunked){o.upload&&o.upload.addEventListener("progress",e.throttle((function(t){i.retry||n.progress({type:t.type,total:i.size,loaded:i.start+t.loaded,totalSize:i.size},s,n)}),100),!1),o.onreadystatechange=function(){var t=parseInt(o.getResponseHeader("X-Last-Known-Byte"),10);if(s.status=o.status,s.statusText=o.statusText,s.readyState=o.readyState,4==o.readyState){for(var r in a)s["response"+r]=o["response"+r];if(o.onreadystatechange=null,!o.status||o.status-201>0)if(e.log("Error: "+o.status),(!o.status&&!o.aborted||500==o.status||416==o.status)&&++i.retry<=n.chunkUploadRetry){var l=o.status?0:e.chunkNetworkDownRetryTimeout;n.pause(i.file,n),e.log("X-Last-Known-Byte: "+t),t?i.end=t:(i.end=i.start-1,416==o.status&&(i.end=i.end-n.chunkSize)),setTimeout((function(){s._send(n,i)}),l)}else s.end(o.status);else i.retry=0,i.end==i.size-1?s.end(o.status):(e.log("X-Last-Known-Byte: "+t),t&&(i.end=t),i.file.FileAPIReadPosition=i.end,setTimeout((function(){s._send(n,i)}),0));o=null}},i.start=i.end+1,i.end=Math.max(Math.min(i.start+n.chunkSize,i.size)-1,i.start);var v=i.file,g=(v.slice||v.mozSlice||v.webkitSlice).call(v,i.start,i.end+1);i.size&&!g.size?setTimeout((function(){s.end(-1)})):(o.setRequestHeader("Content-Range","bytes "+i.start+"-"+i.end+"/"+i.size),o.setRequestHeader("Content-Disposition","attachment; filename="+encodeURIComponent(i.name)),o.setRequestHeader("Content-Type",i.type||"application/octet-stream"),o.send(g)),v=g=null}else if(o.upload&&o.upload.addEventListener("progress",e.throttle((function(t){n.progress(t,s,n)}),100),!1),o.onreadystatechange=function(){if(s.status=o.status,s.statusText=o.statusText,s.readyState=o.readyState,4==o.readyState){for(var t in a)s["response"+t]=o["response"+t];if(o.onreadystatechange=null,!o.status||o.status>201)if(e.log("Error: "+o.status),(!o.status&&!o.aborted||500==o.status)&&(n.retry||0)=0?t+"px":t}function u(t){var n,i=r.createElement("canvas"),a=!1;try{n=i.getContext("2d"),n.drawImage(t,0,0,1,1),a=255!=n.getImageData(0,0,1,1).data[4]}catch(o){e.log("[FileAPI.Camera] detectVideoSignal:",o)}return a}s.Shot=l,e.Camera=s}(window,FileAPI),function(t,e,n){"use strict";var r=n.each,i=[];!n.support.flash||!n.media||n.support.media&&n.html5&&!n.insecureChrome||function(){function t(t){var e=t.wid=n.uid();return n.Flash._fn[e]=t,"FileAPI.Flash._fn."+e}function e(t){try{n.Flash._fn[t.wid]=null,delete n.Flash._fn[t.wid]}catch(e){}}var a=n.Flash;n.extend(n.Flash,{patchCamera:function(){n.Camera.fallback=function(r,i,o){var s=n.uid();n.log("FlashAPI.Camera.publish: "+s),a.publish(r,s,n.extend(i,{camera:!0,onEvent:t((function t(r){"camera"===r.type&&(e(t),r.error?(n.log("FlashAPI.Camera.publish.error: "+r.error),o(r.error)):(n.log("FlashAPI.Camera.publish.success: "+s),o(null)))}))}))},r(i,(function(t){n.Camera.fallback.apply(n.Camera,t)})),i=[],n.extend(n.Camera.prototype,{_id:function(){return this.video.id},start:function(r){var i=this;a.cmd(this._id(),"camera.on",{callback:t((function t(a){e(t),a.error?(n.log("FlashAPI.camera.on.error: "+a.error),r(a.error,i)):(n.log("FlashAPI.camera.on.success: "+i._id()),i._active=!0,r(null,i))}))})},stop:function(){this._active=!1,a.cmd(this._id(),"camera.off")},shot:function(){n.log("FlashAPI.Camera.shot:",this._id());var t=n.Flash.cmd(this._id(),"shot",{});return t.type="image/png",t.flashId=this._id(),t.isShot=!0,new n.Camera.Shot(t)}})}}),n.Camera.fallback=function(){i.push(arguments)}}()}(window,window.jQuery,FileAPI),r=[],i=function(){return FileAPI}.apply(e,r),void 0===i||(t.exports=i)},"76f3":function(t,e,n){},"807a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"test"},[t._v("测试按需引入B")])},i=[],a={name:"testB",data(){return{}}},o=a,s=(n("472c"),n("9ca4")),l=Object(s["a"])(o,r,i,!1,null,"5e993ff7",null),c=l.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c},"857a":function(t,e,n){"use strict";var r=n("8eff"),i=n.n(r);i.a},"8b67":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pages"},[t.paginations.totalRowNum>0?n("el-pagination",{attrs:{"page-sizes":t.pageInationsConfig.pageSizes,layout:t.pageInationsConfig.layout,"current-page":t.paginations.pageNum,"page-size":t.paginations.pageSize,total:t.paginations.totalRowNum},on:{"size-change":t.f_sizeChange,"current-change":t.f_currentChange}}):t._e()],1)},i=[],a={name:"cheersPaginations",props:{paginations:{type:Object,default:()=>({pageNum:0,pageSize:10,totalRowNum:0})},pageInationsConfig:{type:Object,default:()=>({layout:"total, sizes, prev, pager, next, jumper",pageSizes:[10,20,30,50,100]})}},data(){return{paginationsData:{pageNum:0,pageSize:10,totalRowNum:0}}},watch:{paginations:{handler(){this.paginationsData=this.paginations},limmediate:!0}},methods:{f_sizeChange(t){this.paginationsData.pageSize=t,this.$emit("f_changPaginations",this.paginationsData)},f_currentChange(t){this.paginationsData.pageNum=t,this.$emit("f_changPaginations",this.paginationsData)}}},o=a,s=(n("52f5"),n("9ca4")),l=Object(s["a"])(o,r,i,!1,null,"e50a3486",null),c=l.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c},"8eff":function(t,e,n){},"9c30":function(t,e,n){},"9ca4":function(t,e,n){"use strict";function r(t,e,n,r,i,a,o,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},"9edd":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},aa06:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"cheersTable",components:{row:{functional:!0,props:{row:Object,col:Object,render:Function,colIndex:[Number,String]},render(t,e){const n=Math.random().toString(35).replace(".",""),r={row:{...e.props.row},colIndex:e.props.colIndex||n};return e.props.col&&(r.col=e.props.col),e.props.render&&e.props.render(t,r)}}},props:{searchFrom:{type:Object,default:()=>{}},border:{type:Boolean,default:!0},stripe:{type:Boolean,default:!0},initListPermission:{type:Object,default:()=>{}},tableHeight:{type:String,default:"400"},showSummary:{type:Boolean,default:!1},expandShow:{type:Boolean,default:!1},expandList:{type:Array,default:()=>[]},indexShow:{type:Boolean,default:!0},selectionShow:{type:Boolean,default:!1},indexLabel:{type:String,default:"序号"},indexWidth:{type:String,default:"50"},tableHead:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},addBtnList:{type:Object,default:()=>{}},buttonListShow:{type:Boolean,default:!0}},methods:{f_show(itemshowBtn,scope){return eval(itemshowBtn)},f_clickBtn(t,e,n){this.$emit("f_listenCall",t,e,n)},f_handleSelectionChange(t){this.$emit("f_handleSelectionChange",t)}}}},bacc:function(module,__webpack_exports__,__webpack_require__){"use strict";var _cheersFormTitle_src_index__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("2378");__webpack_exports__["a"]={components:{cheersFormTitle:_cheersFormTitle_src_index__WEBPACK_IMPORTED_MODULE_0__["a"]},name:"cheersForm",props:{bdcolor:{type:String,default:"#409EFF"},inline:{type:Boolean,default:!0},isHandle:{type:Boolean,default:!0},labelWidth:{type:String,default:"120px"},ruleFormBtn:{type:Array,default:()=>[]},fieldList:{type:Array,default:()=>[]},ruleForm:{type:Object,default:()=>{}}},methods:{f_show(flag){return eval(flag)},f_clickBtn(t,e){this.$emit("f_listenBtn",t,e)},f_resetForm(){this.$refs.ruleForm.resetFields()},f_validate(){this.$refs.ruleForm.validate(t=>{this.$emit("f_save",t)})}}}},bc5e:function(t,e,n){"use strict";var r=n("4392"),i=n.n(r);i.a},c0fb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("0261"),i=s(r),a=n("3496"),o=s(a);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}n("030a");var c=i.default.extend({render:function(t){return t("div",{style:this.containerStyle},[t("img",{ref:"img",attrs:{src:this.src,alt:this.alt||"image",style:"max-width: 100%"},style:this.imgStyle})])},props:{containerStyle:Object,src:{type:String,default:""},alt:String,imgStyle:Object,viewMode:Number,dragMode:String,aspectRatio:Number,data:Object,preview:String,responsive:{type:Boolean,default:!0},restore:{type:Boolean,default:!0},checkCrossOrigin:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},guides:{type:Boolean,default:!0},center:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0},background:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!0},autoCropArea:Number,movable:{type:Boolean,default:!0},rotatable:{type:Boolean,default:!0},scalable:{type:Boolean,default:!0},zoomable:{type:Boolean,default:!0},zoomOnTouch:{type:Boolean,default:!0},zoomOnWheel:{type:Boolean,default:!0},wheelZoomRatio:Number,cropBoxMovable:{type:Boolean,default:!0},cropBoxResizable:{type:Boolean,default:!0},toggleDragModeOnDblclick:{type:Boolean,default:!0},minCanvasWidth:Number,minCanvasHeight:Number,minCropBoxWidth:Number,minCropBoxHeight:Number,minContainerWidth:Number,minContainerHeight:Number,ready:Function,cropstart:Function,cropmove:Function,cropend:Function,crop:Function,zoom:Function},mounted:function(){var t=this.$options.props,e=(t.containerStyle,t.src,t.alt,t.imgStyle,l(t,["containerStyle","src","alt","imgStyle"])),n={};for(var r in e)void 0!==this[r]&&(n[r]=this[r]);this.cropper=new o.default(this.$refs.img,n)},methods:{reset:function(){return this.cropper.reset()},clear:function(){return this.cropper.clear()},initCrop:function(){return this.cropper.crop()},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.cropper.replace(t,e)},enable:function(){return this.cropper.enable()},disable:function(){return this.cropper.disable()},destroy:function(){return this.cropper.destroy()},move:function(t,e){return this.cropper.move(t,e)},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.cropper.moveTo(t,e)},relativeZoom:function(t,e){return this.cropper.zoom(t,e)},zoomTo:function(t,e){return this.cropper.zoomTo(t,e)},rotate:function(t){return this.cropper.rotate(t)},rotateTo:function(t){return this.cropper.rotateTo(t)},scaleX:function(t){return this.cropper.scaleX(t)},scaleY:function(t){return this.cropper.scaleY(t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.cropper.scale(t,e)},getData:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.cropper.getData(t)},setData:function(t){return this.cropper.setData(t)},getContainerData:function(){return this.cropper.getContainerData()},getImageData:function(){return this.cropper.getImageData()},getCanvasData:function(){return this.cropper.getCanvasData()},setCanvasData:function(t){return this.cropper.setCanvasData(t)},getCropBoxData:function(){return this.cropper.getCropBoxData()},setCropBoxData:function(t){return this.cropper.setCropBoxData(t)},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.cropper.getCroppedCanvas(t)},setAspectRatio:function(t){return this.cropper.setAspectRatio(t)},setDragMode:function(t){return this.cropper.setDragMode(t)}}}),u=i.default.component("vue-cropper",c);e.default=u},c39a:function(t,e,n){},c9c4:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"search_input"},[n("el-form",{ref:"searchForm",staticClass:"demo-form-inline",attrs:{inline:t.inline,model:t.searchForm,"label-width":t.labelWidth}},[t._l(t.fieldList,(function(e){return n("el-form-item",{key:e.value,attrs:{label:e.label,value:e.value,prop:e.value}},["slot"===e.type?[t._t("form-"+e.solt)]:t._e(),"Input"===e.type||"Password"===e.type?n("el-input",t._b({attrs:{"show-password":"Password"===e.type,placeholder:e.placeholder||"请输入"+e.label},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-input",e.attr,!1)):t._e(),"NumberInput"===e.type?n("el-input-number",t._b({model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-input-number",e.attr,!1)):t._e(),"Select"===e.type?n("el-select",t._b({attrs:{placeholder:e.placeholder||"请选择"+e.label},on:{"visible-change":function(e){return t.$forceUpdate()},change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-select",e.attr,!1),t._l(e.options,(function(t){return n("el-option",{key:t[e.props.value],attrs:{label:t[e.props.label],value:t[e.props.value]}})})),1):t._e(),"Cascader"===e.type?n("el-cascader",t._b({attrs:{options:e.options,placeholder:e.placeholder||"请选择"+e.label,props:e.props},on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-cascader",e.attr,!1)):t._e(),"Radio"===e.type?n("el-radio-group",{on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},t._l(e.options,(function(r){return n("el-radio",t._b({key:r[e.props.value],attrs:{label:r[e.props.value]}},"el-radio",e.attr,!1),[t._v("\n\t\t\t\t\t"+t._s(r[e.props.label])+"\n\t\t\t\t")])})),1):t._e(),"Checkbox"===e.type?n("el-checkbox-group",{on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},t._l(e.options,(function(r){return n("el-checkbox",t._b({key:r[e.props.value],attrs:{label:r[e.props.value]}},"el-checkbox",e.attr,!1),[t._v(t._s(r[e.props.label])+"\n\t\t\t\t")])})),1):t._e(),"Year"===e.type?n("el-date-picker",t._b({attrs:{type:"year","value-format":"yyyy",format:"yyyy",placeholder:e.placeholder||"请选择"+e.label},on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"YearMonth"===e.type?n("el-date-picker",t._b({attrs:{type:"month","value-format":"yyyy-MM",format:"yyyy-MM",placeholder:e.placeholder||"请选择"+e.label},on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"Date"===e.type?n("el-date-picker",t._b({attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",placeholder:e.placeholder||"请选择"+e.label},on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"DateTime"===e.type?n("el-date-picker",t._b({attrs:{type:"datetime",placeholder:e.placeholder||"请选择"+e.label,"value-format":"yyyy-MM-dd hh:mm:ss"},on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"DateRange"===e.type?n("el-date-picker",t._b({attrs:{type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"Switch"===e.type?n("el-switch",t._b({on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-switch",e.attr,!1)):t._e()],2)})),t._l(t.searchFormBtn,(function(e,r){return n("el-form-item",{key:r+"searchFormBtn"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.f_show(e.showBtn),expression:"f_show(item.showBtn)"}],attrs:{type:"primary"},on:{click:function(n){return t.f_clickBtn(e.methods,e.option)}}},[n("i",{class:e.icon}),n("span",[t._v(t._s(e.title))])])],1)}))],2)],1)},i=[],a=n("efeb"),o=a["a"],s=n("9ca4"),l=Object(s["a"])(o,r,i,!1,null,null,null),c=l.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c},d789:function(t,e,n){"use strict";var r=n("c39a"),i=n.n(r);i.a},e8e5:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tables"},[n("el-table",{attrs:{data:t.tableData,stripe:t.stripe||!0,border:t.border||!0,height:t.tableHeight,"show-summary":t.showSummary},on:{"selection-change":t.f_handleSelectionChange}},[t.selectionShow?n("el-table-column",{key:1,attrs:{type:"selection",width:"50",align:"center","highlight-current-row":""}}):t._e(),t.indexShow?n("el-table-column",{key:2,attrs:{align:"center",label:t.indexLabel,width:t.indexWidth},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+1))])]}}],null,!1,4178052834)}):t._e(),t.expandShow?n("el-table-column",{key:3,attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._l(t.expandList,(function(t,r){return[n("row",{key:r+"expandList",attrs:{row:e.row,col:t,render:t.render,"col-index":r}})]}))]}}],null,!1,2152769975)}):t._e(),t._l(t.tableHead,(function(e,r){return[e.render?n("el-table-column",{key:r+"tableHead",attrs:{label:e.label,prop:e.prop,width:e.width,"header-align":e.headerAlign||"center",align:e.align||"center",fixed:e.fixed||!1,sortable:e.sortable||!1,"show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(t){return[n("row",{attrs:{row:t.row,col:e,render:e.render,"col-index":r}})]}}],null,!0)}):n("el-table-column",{key:r+"tableHead",attrs:{label:e.label,prop:e.prop,width:e.width,"header-align":e.headerAlign||"center",align:e.align||"center",fixed:e.fixed||!1,sortable:e.sortable||!1,"show-overflow-tooltip":!0}})]})),t.addBtnList?n("el-table-column",{key:1e3,attrs:{align:"center",fixed:t.addBtnList.fixed,label:t.addBtnList.label,"min-width":t.addBtnList.width},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(t.addBtnList.list,(function(r,i){return n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.f_show(r.showBtn||!0,e),expression:"f_show(item.showBtn||true,scope)"}],key:i+"addBtnList",attrs:{type:"text",title:r.title},on:{click:function(n){return t.f_clickBtn(r.methods,e,r.option)}}},[n("i",{class:r.icon}),n("span",[t._v(t._s(r.title))])])}))}}],null,!1,3043998195)}):t._e()],2)],1)},i=[],a=n("aa06"),o=a["a"],s=(n("0c63"),n("9ca4")),l=Object(s["a"])(o,r,i,!1,null,null,null),c=l.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c},efeb:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"cheersSearchBar",props:{initListPermission:{type:Object,default:()=>{}},inline:{type:Boolean,default:!0},labelWidth:{type:String,default:"120px"},searchFormBtn:{type:Array,default:()=>[]},fieldList:{type:Array,default:()=>[]},searchForm:{type:Object,default:()=>{}}},methods:{f_show(itemshowBtn,scope){return eval(itemshowBtn)},f_clickBtn(t,e){this.$emit("f_listenBtn",t,e)},f_resetForm(){this.$refs.searchForm.resetFields()}}}},ff0a:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{ref:"ruleForm",attrs:{inline:t.inline,model:t.ruleForm,"label-width":t.labelWidth}},[t._l(t.fieldList,(function(e,r){return n("el-row",{key:r+"row"},t._l(e.row,(function(e,r){return n("el-col",{key:r+"col",attrs:{span:e.col}},[e.title?n("cheers-form-title",{attrs:{bdcolor:t.bdcolor}},[t._v(t._s(e.title))]):t._e(),t._l(e.list,(function(e){return[t.f_show(e.flag||!0)?n("el-form-item",{key:e.value,attrs:{label:e.label,value:e.value,prop:e.value,rules:e.rules,labelWidth:e.labelWidth}},["slot"===e.type?[t._t("form-"+e.solt)]:t._e(),"Input"===e.type?n("el-input",t._b({attrs:{placeholder:e.placeholder||"请输入"+e.label},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-input",e.attr,!1)):t._e(),"Password"===e.type?n("el-input",t._b({attrs:{"show-password":"Password"===e.type,placeholder:e.placeholder||"请输入"+e.label},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-input",e.attr,!1)):t._e(),"NumberInput"===e.type?n("el-input-number",t._b({model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-input-number",e.attr,!1)):t._e(),"Select"===e.type?n("el-select",t._b({attrs:{placeholder:e.placeholder||"请选择"+e.label},on:{"visible-change":function(e){return t.$forceUpdate()},change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-select",e.attr,!1),t._l(e.options,(function(t){return n("el-option",{key:t[e.props.value],attrs:{label:t[e.props.label],value:t[e.props.value]}})})),1):t._e(),"Cascader"===e.type?n("el-cascader",t._b({attrs:{options:e.options,placeholder:e.placeholder||"请选择"+e.label,props:e.props},on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-cascader",e.attr,!1)):t._e(),"Radio"===e.type?n("el-radio-group",{on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},t._l(e.options,(function(r){return n("el-radio",t._b({key:r[e.props.value],attrs:{label:r[e.props.value]}},"el-radio",e.attr,!1),[t._v("\n\t\t\t\t\t\t\t"+t._s(r[e.props.label])+"\n\t\t\t\t\t\t")])})),1):t._e(),"Checkbox"===e.type?n("el-checkbox-group",{on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},t._l(e.options,(function(r){return n("el-checkbox",t._b({key:r[e.props.value],attrs:{label:r[e.props.value]}},"el-checkbox",e.attr,!1),[t._v(t._s(r[e.props.label])+"\n\t\t\t\t\t\t")])})),1):t._e(),"Year"===e.type?n("el-date-picker",t._b({attrs:{type:"year","value-format":"yyyy",format:"yyyy",placeholder:e.placeholder||"请选择"+e.label},on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"YearMonth"===e.type?n("el-date-picker",t._b({attrs:{type:"month","value-format":"yyyy-MM",format:"yyyy-MM",placeholder:e.placeholder||"请选择"+e.label},on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"Date"===e.type?n("el-date-picker",t._b({attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",placeholder:e.placeholder||"请选择"+e.label},on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"DateTime"===e.type?n("el-date-picker",t._b({attrs:{type:"datetime",placeholder:e.placeholder||"请选择"+e.label,"value-format":"yyyy-MM-dd hh:mm:ss"},on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"DateRange"===e.type?n("el-date-picker",t._b({attrs:{type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"Switch"===e.type?n("el-switch",t._b({on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-switch",e.attr,!1)):t._e()],2):t._e()]}))],2)})),1)})),n("el-form-item",t._l(t.ruleFormBtn,(function(e,r){return n("el-button",{key:r+"formBtn",attrs:{type:"primary"},on:{click:function(n){return t.f_clickBtn(e.methods,e.option)}}},[n("i",{class:e.icon}),n("span",[t._v(t._s(e.title))])])})),1)],2)},i=[],a=n("bacc"),o=a["a"],s=n("9ca4"),l=Object(s["a"])(o,r,i,!1,null,null,null),c=l.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c}}); \ No newline at end of file + */(function(t){"use strict";var e=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,n=t.Blob&&function(){try{return Boolean(new Blob)}catch(t){return!1}}(),r=n&&t.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(t){return!1}}(),i=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder,a=(n||i)&&t.atob&&t.ArrayBuffer&&t.Uint8Array&&function(t){var e,a,o,s,l,c;for(e=t.split(",")[0].indexOf("base64")>=0?atob(t.split(",")[1]):decodeURIComponent(t.split(",")[1]),a=new ArrayBuffer(e.length),o=new Uint8Array(a),s=0;s0,C=t.dataURLtoBlob,k=/img/i,A=/canvas/i,O=/img|canvas/i,F=/input/i,S=/^data:[^,]+,/,T={}.toString,D=t.Math,$=function(e){return e=new t.Number(D.pow(1024,e)),e.from=function(t){return D.round(t*this)},e},M={},E=[],B="abort progress error load loadend",j="status statusText readyState response responseXML responseText responseBody".split(" "),L="currentTarget",I="preventDefault",R=function(t){return t&&"length"in t},N=function(t,e,n){if(t)if(R(t))for(var r=0,i=t.length;r=n&&!r&&a.end()},isFail:function(){return r},fail:function(){!r&&t(r=!0)},end:function(){i||(i=!0,t())}};return a},each:N,afor:function(t,e){var n=0,r=t.length;R(t)&&r--?function i(){e(r!=n&&i,t[n],n++)}():e(!1)},extend:P,isFile:function(t){return"[object File]"===T.call(t)},isBlob:function(t){return this.isFile(t)||"[object Blob]"===T.call(t)},isCanvas:function(t){return t&&A.test(t.nodeName)},getFilesFilter:function(t){return t="string"==typeof t?t:t.getAttribute&&t.getAttribute("accept")||"",t?new RegExp("("+t.replace(/\./g,"\\.").replace(/,/g,"|")+")$","i"):/./},readAsDataURL:function(t,e){q.isCanvas(t)?Y(t,e,"load",q.toDataURL(t)):G(t,e,"DataURL")},readAsBinaryString:function(t,e){V("BinaryString")?G(t,e,"BinaryString"):G(t,(function(t){if("load"==t.type)try{t.result=q.toBinaryString(t.result)}catch(n){t.type="error",t.message=n.toString()}e(t)}),"DataURL")},readAsArrayBuffer:function(t,e){G(t,e,"ArrayBuffer")},readAsText:function(t,e,n){n||(n=e,e="utf-8"),G(t,n,"Text",e)},toDataURL:function(t,e){return"string"==typeof t?t:t.toDataURL?t.toDataURL(e||"image/png"):void 0},toBinaryString:function(e){return t.atob(q.toDataURL(e).replace(S,""))},readAsImage:function(t,n,r){if(q.isBlob(t))if(p){var i=p.createObjectURL(t);i===e?Y(t,n,"error"):q.readAsImage(i,n,r)}else q.readAsDataURL(t,(function(e){"load"==e.type?q.readAsImage(e.result,n,r):(r||"error"==e.type)&&Y(t,n,e,null,{loaded:e.loaded,total:e.total})}));else if(q.isCanvas(t))Y(t,n,"load",t);else if(k.test(t.nodeName))if(t.complete)Y(t,n,"load",t);else{var a="error abort load";H(t,a,(function e(r){"load"==r.type&&p&&p.revokeObjectURL(t.src),z(t,a,e),Y(t,n,r,t)}))}else if(t.iframe)Y(t,n,{type:"error"});else{var o=q.newImage(t.dataURL||t);q.readAsImage(o,n,r)}},checkFileObj:function(t){var e={},n=q.accept;return"object"==typeof t?e=t:e.name=(t+"").split(/\\|\//g).pop(),null==e.type&&(e.type=e.name.split(".").pop()),N(n,(function(t,n){t=new RegExp(t.replace(/\s/g,"|"),"i"),(t.test(e.type)||q.ext2mime[e.type])&&(e.type=q.ext2mime[e.type]||n.split("/")[0]+"/"+e.type)})),e},getDropFiles:function(t,e){var n,r=[],i=[],a=nt(t),o=a.files,s=a.items,l=R(s)&&s[0]&&Q(s[0]),c=q.queue((function(){e(r,i)}));if(l)if(x&&o){var u,h,p=o.length;n=new Array(p);while(p--){u=o[p];try{h=Q(s[p])}catch(d){q.log("[err] getDropFiles: ",d),h=null}J(h)&&(h.isDirectory||h.isFile&&u.name==u.name.normalize("NFC"))?n[p]=h:n[p]=u}}else n=s;else n=o;N(n||[],(function(t){c.inc();try{l&&J(t)?Z(t,(function(t,e,n){t?q.log("[err] getDropFiles:",t):r.push.apply(r,e),i.push.apply(i,n),c.next()})):K(t,(function(e,n){e?r.push(t):t.error=n,i.push(t),c.next()}))}catch(d){c.next(),q.log("[err] getDropFiles: ",d)}})),c.check()},getFiles:function(t,e,n){var r=[];return n?(q.filterFiles(q.getFiles(t),e,n),null):(t.jquery&&(t.each((function(){r=r.concat(q.getFiles(this))})),t=r,r=[]),"string"==typeof e&&(e=q.getFilesFilter(e)),t.originalEvent?t=W(t.originalEvent):t.srcElement&&(t=W(t)),t.dataTransfer?t=t.dataTransfer:t.target&&(t=t.target),t.files?(r=t.files,b||(r[0].blob=t,r[0].iframe=!0)):!b&&et(t)?q.trim(t.value)&&(r=[q.checkFileObj(t.value)],r[0].blob=t,r[0].iframe=!0):R(t)&&(r=t),q.filter(r,(function(t){return!e||e.test(t.name)})))},getTotalSize:function(t){var e=0,n=t&&t.length;while(n--)e+=t[n].size;return e},getInfo:function(t,e){var n={},r=E.concat();q.isBlob(t)?function i(){var a=r.shift();a?a.test(t.type)?a(t,(function(t,r){t?e(t):(P(n,r),i())})):i():e(!1,n)}():e("not_support_info",n)},addInfoReader:function(t,e){e.test=function(e){return t.test(e)},E.push(e)},filter:function(t,e){for(var n,r=[],i=0,a=t.length;i>2,u=(3&o)<<4|s>>4;isNaN(s)?i=a=64:(i=(15&s)<<2|l>>6,a=isNaN(l)?64:63&l),n+=e.charAt(c)+e.charAt(u)+e.charAt(i)+e.charAt(a)}return n}};function Y(t,e,n,r,i){var a={type:n.type||n,target:t,result:r};P(a,i),e(a)}function V(t){return m&&!!m.prototype["readAs"+t]}function G(t,n,r,i){if(q.isBlob(t)&&V(r)){var a=new m;U(a,B,(function e(r){var i=r.type;"progress"==i?Y(t,n,r,r.target.result,{loaded:r.loaded,total:r.total}):"loadend"==i?(z(a,B,e),a=null):Y(t,n,r,r.target.result)}));try{i?a["readAs"+r](t,i):a["readAs"+r](t)}catch(o){Y(t,n,"error",e,{error:o.toString()})}}else Y(t,n,"error",e,{error:"filreader_not_support_"+r})}function K(t,e){if(!t.type&&(c||t.size%4096===0&&t.size<=102400))if(m)try{var n=new m;H(n,B,(function(t){var r="error"!=t.type;r?(null!=n.readyState&&n.readyState!==n.LOADING||n.abort(),e(r)):e(!1,n.error)})),n.readAsDataURL(t)}catch(r){e(!1,r)}else e(null,new Error("FileReader is not supported"));else e(!0)}function J(t){return t&&(t.isFile||t.isDirectory)}function Q(t){var e;return t.getAsEntry?e=t.getAsEntry():t.webkitGetAsEntry&&(e=t.webkitGetAsEntry()),e}function Z(t,e){if(t)if(t.isFile)t.file((function(n){n.fullPath=t.fullPath,e(!1,[n],[n])}),(function(n){t.error=n,e("FileError.code: "+n.code,[],[t])}));else if(t.isDirectory){var n=t.createReader(),r=!0,i=[],a=[t],o=function(n){t.error=n,e("DirectoryError.code: "+n.code,i,a)},s=function s(l){r&&(r=!1,l.length||(t.error=new Error("directory is empty"))),l.length?q.afor(l,(function(t,e){Z(e,(function(e,r,l){e||(i=i.concat(r)),a=a.concat(l),t?t():n.readEntries(s,o)}))})):e(!1,i,a)};n.readEntries(s,o)}else Z(Q(t),e);else{var l=new Error("invalid entry");t=new Object(t),t.error=l,e(l.message,[],[t])}}function tt(t){var e={};return N(t,(function(t,n){t&&"object"===typeof t&&void 0===t.nodeType&&(t=P({},t)),e[n]=t})),e}function et(t){return F.test(t&&t.tagName)}function nt(t){return(t.originalEvent||t||"").dataTransfer||{}}function rt(t){var e;for(e in t)if(t.hasOwnProperty(e)&&!(t[e]instanceof Object||"overlay"===e||"filter"===e))return!0;return!1}q.addInfoReader(/^image/,(function(t,e){if(!t.__dimensions){var n=t.__dimensions=q.defer();q.readAsImage(t,(function(t){var e=t.target;n.resolve("load"!=t.type&&"error",{width:e.width,height:e.height}),e.src=q.EMPTY_PNG,e=null}))}t.__dimensions.then(e)})),q.event.dnd=function(t,e,n){var r,i;n||(n=e,e=q.F),m?(U(t,"dragenter dragleave dragover",e.ff=e.ff||function(t){var n=nt(t).types,a=n&&n.length,o=!1;while(a--)if(~n[a].indexOf("File")){t[I](),i!==t.type&&(i=t.type,"dragleave"!=i&&e.call(t[L],!0,t),o=!0);break}o&&(clearTimeout(r),r=setTimeout((function(){e.call(t[L],"dragleave"!=i,t)}),50))}),U(t,"drop",n.ff=n.ff||function(t){t[I](),i=0,q.getDropFiles(t,(function(e,r){n.call(t[L],e,r,t)})),e.call(t[L],!1,t)})):q.log("Drag'n'Drop -- not supported")},q.event.dnd.off=function(t,e,n){z(t,"dragenter dragleave dragover",e.ff),z(t,"drop",n.ff)},y&&!y.fn.dnd&&(y.fn.dnd=function(t,e){return this.each((function(){q.event.dnd(this,t,e)}))},y.fn.offdnd=function(t,e){return this.each((function(){q.event.dnd.off(this,t,e)}))}),t.FileAPI=P(q,t.FileAPI),q.log("FileAPI: "+q.version),q.log("protocol: "+t.location.protocol),q.log("doctype: ["+s.name+"] "+s.publicId+" "+s.systemId),N(o.getElementsByTagName("meta"),(function(t){/x-ua-compatible/i.test(t.getAttribute("http-equiv"))&&q.log("meta.http-equiv: "+t.getAttribute("content"))}));try{n=!!console.log,r=!!console.log.apply}catch(it){}q.flashUrl||(q.flashUrl=q.staticPath+"FileAPI.flash.swf"),q.flashImageUrl||(q.flashImageUrl=q.staticPath+"FileAPI.flash.image.swf"),q.flashWebcamUrl||(q.flashWebcamUrl=q.staticPath+"FileAPI.flash.camera.swf")}(window,void 0),function(t,e,n){"use strict";var r=Math.min,i=Math.round,a=function(){return e.createElement("canvas")},o=!1,s={8:270,3:180,6:90,7:270,4:180,5:90};try{o=a().toDataURL("image/png").indexOf("data:image/png")>-1}catch(c){}function l(e){if(e instanceof l){var n=new l(e.file);return t.extend(n.matrix,e.matrix),n}if(!(this instanceof l))return new l(e);this.file=e,this.size=e.size||100,this.matrix={sx:0,sy:0,sw:0,sh:0,dx:0,dy:0,dw:0,dh:0,resize:0,deg:0,quality:1,filter:0}}l.prototype={image:!0,constructor:l,set:function(e){return t.extend(this.matrix,e),this},crop:function(t,e,r,i){return r===n&&(r=t,i=e,t=e=0),this.set({sx:t,sy:e,sw:r,sh:i||r})},resize:function(t,e,n){return/min|max|height|width/.test(e)&&(n=e,e=t),this.set({dw:t,dh:e||t,resize:n})},preview:function(t,e){return this.resize(t,e||t,"preview")},rotate:function(t){return this.set({deg:t})},filter:function(t){return this.set({filter:t})},overlay:function(t){return this.set({overlay:t})},clone:function(){return new l(this)},_load:function(e,n){var r=this;/img|video/i.test(e.nodeName)?n.call(r,null,e):t.readAsImage(e,(function(t){n.call(r,"load"!=t.type,t.result)}))},_apply:function(e,n){var i,o=a(),s=this.getMatrix(e),c=o.getContext("2d"),u=e.videoWidth||e.width,h=e.videoHeight||e.height,p=s.deg,d=s.dw,f=s.dh,m=u,v=h,g=s.filter,y=e,b=s.overlay,w=t.queue((function(){e.src=t.EMPTY_PNG,n(!1,o)})),_=t.renderImageToCanvas;p-=360*Math.floor(p/360),e._type=this.file.type;while(s.multipass&&r(m/d,v/f)>2)m=m/2+.5|0,v=v/2+.5|0,i=a(),i.width=m,i.height=v,y!==e?(_(i,y,0,0,y.width,y.height,0,0,m,v),y=i):(y=i,_(y,e,s.sx,s.sy,s.sw,s.sh,0,0,m,v),s.sx=s.sy=s.sw=s.sh=0);o.width=p%180?f:d,o.height=p%180?d:f,o.type=s.type,o.quality=s.quality,c.rotate(p*Math.PI/180),_(c.canvas,y,s.sx,s.sy,s.sw||y.width,s.sh||y.height,180==p||270==p?-d:0,90==p||180==p?-f:0,d,f),d=o.width,f=o.height,b&&t.each([].concat(b),(function(e){w.inc();var n=new window.Image,r=function(){var i=0|e.x,a=0|e.y,o=e.w||n.width,s=e.h||n.height,l=e.rel;i=1==l||4==l||7==l?(d-o+i)/2:2==l||5==l||8==l?d-(o+i):i,a=3==l||4==l||5==l?(f-s+a)/2:l>=6?f-(s+a):a,t.event.off(n,"error load abort",r);try{c.globalAlpha=e.opacity||1,c.drawImage(n,i,a,o,s)}catch(u){}w.next()};t.event.on(n,"error load abort",r),n.src=e.src,n.complete&&r()})),g&&(w.inc(),l.applyFilter(o,g,w.next)),w.check()},getMatrix:function(e){var n,a,o=t.extend({},this.matrix),s=o.sw=o.sw||e.videoWidth||e.naturalWidth||e.width,l=o.sh=o.sh||e.videoHeight||e.naturalHeight||e.height,c=o.dw=o.dw||s,u=o.dh=o.dh||l,h=s/l,p=c/u,d=o.resize;"preview"==d?c==s&&u==l||(p>=h?(n=s,a=n/p):(a=l,n=a*p),n==s&&a==l||(o.sx=~~((s-n)/2),o.sy=~~((l-a)/2),s=n,l=a)):"height"==d?c=u*h:"width"==d?u=c/h:d&&(s>c||l>u?"min"==d?(c=i(h=p?r(s,c):u*h),u=i(h>=p?c/h:r(l,u))):(c=s,u=l));return o.sw=s,o.sh=l,o.dw=c,o.dh=u,o.multipass=t.multiPassResize,o},_trans:function(e){this._load(this.file,(function(n,r){if(n)e(n);else try{this._apply(r,e)}catch(n){t.log("[err] FileAPI.Image.fn._apply:",n),e(n)}}))},get:function(e){if(t.support.transform){var n=this,r=n.matrix;"auto"==r.deg?t.getInfo(n.file,(function(t,i){r.deg=s[i&&i.exif&&i.exif.Orientation]||0,n._trans(e)})):n._trans(e)}else e("not_support_transform");return this},toData:function(t){return this.get(t)}},l.exifOrientation=s,l.transform=function(e,r,i,a){function o(o,s){var c={},u=t.queue((function(t){a(t,c)}));o?u.fail():t.each(r,(function(t,r){if(!u.isFail()){var a=new l(s.nodeType?s:e),o="function"==typeof t;if(o?t(s,a):t.width?a[t.preview?"preview":"resize"](t.width,t.height,t.strategy):t.maxWidth&&(s.width>t.maxWidth||s.height>t.maxHeight)&&a.resize(t.maxWidth,t.maxHeight,"max"),t.crop){var h=t.crop;a.crop(0|h.x,0|h.y,h.w||h.width,h.h||h.height)}t.rotate===n&&i&&(t.rotate="auto"),a.set({type:a.matrix.type||t.type||e.type||"image/png"}),o||a.set({deg:t.rotate,overlay:t.overlay,filter:t.filter,quality:t.quality||1}),u.inc(),a.toData((function(t,e){t?u.fail():(c[r]=e,u.next())}))}}))}e.width?o(!1,e):t.getInfo(e,o)},t.each(["TOP","CENTER","BOTTOM"],(function(e,n){t.each(["LEFT","CENTER","RIGHT"],(function(t,r){l[e+"_"+t]=3*n+r,l[t+"_"+e]=3*n+r}))})),l.toCanvas=function(t){var n=e.createElement("canvas");return n.width=t.videoWidth||t.width,n.height=t.videoHeight||t.height,n.getContext("2d").drawImage(t,0,0),n},l.fromDataURL=function(e,n,r){var i=t.newImage(e);t.extend(i,n),r(i)},l.applyFilter=function(e,n,r){"function"==typeof n?n(e,r):window.Caman&&window.Caman("IMG"==e.tagName?l.toCanvas(e):e,(function(){"string"==typeof n?this[n]():t.each(n,(function(t,e){this[e](t)}),this),this.render(r)}))},t.renderImageToCanvas=function(e,n,r,i,a,o,s,l,c,u){try{return e.getContext("2d").drawImage(n,r,i,a,o,s,l,c,u)}catch(h){throw t.log("renderImageToCanvas failed"),h}},t.support.canvas=t.support.transform=o,t.Image=l}(FileAPI,document),function(t){"use strict";t(FileAPI)}((function(t){"use strict";if(window.navigator&&window.navigator.platform&&/iP(hone|od|ad)/.test(window.navigator.platform)){var e=t.renderImageToCanvas;t.detectSubsampling=function(t){var e,n;return t.width*t.height>1048576&&(e=document.createElement("canvas"),e.width=e.height=1,n=e.getContext("2d"),n.drawImage(t,1-t.width,0),0===n.getImageData(0,0,1,1).data[3])},t.detectVerticalSquash=function(t,e){var n,r,i,a,o,s=t.naturalHeight||t.height,l=document.createElement("canvas"),c=l.getContext("2d");e&&(s/=2),l.width=1,l.height=s,c.drawImage(t,0,0),n=c.getImageData(0,0,1,s).data,r=0,i=s,a=s;while(a>r)o=n[4*(a-1)+3],0===o?i=a:r=a,a=i+r>>1;return a/s||1},t.renderImageToCanvas=function(n,r,i,a,o,s,l,c,u,h){if("image/jpeg"===r._type){var p,d,f,m,v=n.getContext("2d"),g=document.createElement("canvas"),y=1024,b=g.getContext("2d");if(g.width=y,g.height=y,v.save(),p=t.detectSubsampling(r),p&&(i/=2,a/=2,o/=2,s/=2),d=t.detectVerticalSquash(r,p),p||1!==d){a*=d,u=Math.ceil(y*u/o),h=Math.ceil(y*h/s/d),c=0,m=0;while(m0&&1==t.filter(this.items,(function(t){return t.file})).length,t.support.html5?t.formData&&!this.multipart&&r?n._chunked?(t.log("FileAPI.Form.toPlainData"),this.toPlainData(e)):(t.log("FileAPI.Form.toFormData"),this.toFormData(e)):(t.log("FileAPI.Form.toMultipartData"),this.toMultipartData(e)):(t.log("FileAPI.Form.toHtmlData"),this.toHtmlData(e))},_to:function(e,n,r,i){var a=t.queue((function(){n(e)}));this.each((function(o){try{r(o,e,a,i)}catch(s){t.log("FileAPI.Form._to: "+s.message),n(s)}})),a.check()},toHtmlData:function(e){this._to(n.createDocumentFragment(),e,(function(e,r){var i,a=e.blob;e.file?(t.reset(a,!0),a.name=e.name,a.disabled=!1,r.appendChild(a)):(i=n.createElement("input"),i.name=e.name,i.type="hidden",i.value=a,r.appendChild(i))}))},toPlainData:function(t){this._to({},t,(function(t,e,n){t.file&&(e.type=t.file),t.blob.toBlob?(n.inc(),o(t,(function(t,r){e.name=t.name,e.file=r,e.size=r.length,e.type=t.type,n.next()}))):t.file?(e.name=t.blob.name,e.file=t.blob,e.size=t.blob.size,e.type=t.type):(e.params||(e.params=[]),e.params.push(a(t.name)+"="+a(t.blob))),e.start=-1,e.end=e.file&&e.file.FileAPIReadPosition||-1,e.retry=0}))},toFormData:function(t){this._to(new r,t,(function(t,e,n){t.blob&&t.blob.toBlob?(n.inc(),o(t,(function(t,r){e.append(t.name,r,t.file),n.next()}))):t.file?e.append(t.name,t.blob,t.file):e.append(t.name,t.blob),t.file&&e.append("_"+t.name,t.file)}))},toMultipartData:function(e){this._to([],e,(function(t,e,n,r){n.inc(),o(t,(function(t,i){e.push("--_"+r+'\r\nContent-Disposition: form-data; name="'+t.name+'"'+(t.file?'; filename="'+a(t.file)+'"':"")+(t.file?"\r\nContent-Type: "+(t.type||"application/octet-stream"):"")+"\r\n\r\n"+(t.file?i:a(i))+"\r\n"),n.next()}),!0)}),t.expando)}},t.Form=i}(FileAPI,window),function(t,e){"use strict";var n=function(){},r=t.document,i=function(t){this.uid=e.uid(),this.xhr={abort:n,getResponseHeader:n,getAllResponseHeaders:n},this.options=t},a={"":1,XML:1,Text:1,Body:1};i.prototype={status:0,statusText:"",constructor:i,getResponseHeader:function(t){return this.xhr.getResponseHeader(t)},getAllResponseHeaders:function(){return this.xhr.getAllResponseHeaders()||{}},end:function(r,i){var a=this,o=a.options;a.end=a.abort=n,a.status=r,i&&(a.statusText=i),e.log("xhr.end:",r,i),o.complete(200!=r&&201!=r&&(a.statusText||"unknown"),a),a.xhr&&a.xhr.node&&setTimeout((function(){var e=a.xhr.node;try{e.parentNode.removeChild(e)}catch(n){}try{delete t[a.uid]}catch(n){}t[a.uid]=a.xhr.node=null}),9)},abort:function(){this.end(0,"abort"),this.xhr&&(this.xhr.aborted=!0,this.xhr.abort())},send:function(t){var e=this,n=this.options;t.toData((function(t){t instanceof Error?e.end(0,t.message):(n.upload(n,e),e._send.call(e,n,t))}),n)},_send:function(n,i){var o,s=this,l=s.uid,c=s.uid+"Load",u=n.url;if(e.log("XHR._send:",i),n.cache||(u+=(~u.indexOf("?")?"&":"?")+e.uid()),i.nodeName){var h=n.jsonp;u=u.replace(/([a-z]+)=(\?)/i,"$1="+l),n.upload(n,s);var p=function(t){if(~u.indexOf(t.origin))try{var n=e.parseJSON(t.data);n.id==l&&d(n.status,n.statusText,n.response)}catch(r){d(0,r.message)}},d=t[l]=function(n,r,i){s.readyState=4,s.responseText=i,s.end(n,r),e.event.off(t,"message",p),t[l]=o=m=t[c]=null};s.xhr.abort=function(){try{m.stop?m.stop():m.contentWindow.stop?m.contentWindow.stop():m.contentWindow.document.execCommand("Stop")}catch(t){}d(0,"abort")},e.event.on(t,"message",p),t[c]=function(){try{var t=m.contentWindow,n=t.document,r=t.result||e.parseJSON(n.body.innerHTML);d(r.status,r.statusText,r.response)}catch(i){e.log("[transport.onload]",i)}},o=r.createElement("div"),o.innerHTML='
'+(h&&n.url.indexOf("=?")<0?'':"")+"
";var f=o.getElementsByTagName("form")[0],m=o.getElementsByTagName("iframe")[0];f.appendChild(i),e.log(f.parentNode.innerHTML),r.body.appendChild(o),s.xhr.node=o,s.readyState=2;try{f.submit()}catch(w){e.log("iframe.error: "+w)}f=null}else{if(u=u.replace(/([a-z]+)=(\?)&?/i,""),this.xhr&&this.xhr.aborted)return void e.log("Error: already aborted");if(o=s.xhr=e.getXHR(),i.params&&(u+=(u.indexOf("?")<0?"?":"&")+i.params.join("&")),o.open(n.uploadMethod||"POST",u,!0),"boolean"===typeof n.uploadCredentials?o.withCredentials=n.uploadCredentials?"true":null:e.withCredentials&&(o.withCredentials="true"),n.headers&&n.headers["X-Requested-With"]||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.each(n.headers,(function(t,e){o.setRequestHeader(e,t)})),n._chunked){o.upload&&o.upload.addEventListener("progress",e.throttle((function(t){i.retry||n.progress({type:t.type,total:i.size,loaded:i.start+t.loaded,totalSize:i.size},s,n)}),100),!1),o.onreadystatechange=function(){var t=parseInt(o.getResponseHeader("X-Last-Known-Byte"),10);if(s.status=o.status,s.statusText=o.statusText,s.readyState=o.readyState,4==o.readyState){for(var r in a)s["response"+r]=o["response"+r];if(o.onreadystatechange=null,!o.status||o.status-201>0)if(e.log("Error: "+o.status),(!o.status&&!o.aborted||500==o.status||416==o.status)&&++i.retry<=n.chunkUploadRetry){var l=o.status?0:e.chunkNetworkDownRetryTimeout;n.pause(i.file,n),e.log("X-Last-Known-Byte: "+t),t?i.end=t:(i.end=i.start-1,416==o.status&&(i.end=i.end-n.chunkSize)),setTimeout((function(){s._send(n,i)}),l)}else s.end(o.status);else i.retry=0,i.end==i.size-1?s.end(o.status):(e.log("X-Last-Known-Byte: "+t),t&&(i.end=t),i.file.FileAPIReadPosition=i.end,setTimeout((function(){s._send(n,i)}),0));o=null}},i.start=i.end+1,i.end=Math.max(Math.min(i.start+n.chunkSize,i.size)-1,i.start);var v=i.file,g=(v.slice||v.mozSlice||v.webkitSlice).call(v,i.start,i.end+1);i.size&&!g.size?setTimeout((function(){s.end(-1)})):(o.setRequestHeader("Content-Range","bytes "+i.start+"-"+i.end+"/"+i.size),o.setRequestHeader("Content-Disposition","attachment; filename="+encodeURIComponent(i.name)),o.setRequestHeader("Content-Type",i.type||"application/octet-stream"),o.send(g)),v=g=null}else if(o.upload&&o.upload.addEventListener("progress",e.throttle((function(t){n.progress(t,s,n)}),100),!1),o.onreadystatechange=function(){if(s.status=o.status,s.statusText=o.statusText,s.readyState=o.readyState,4==o.readyState){for(var t in a)s["response"+t]=o["response"+t];if(o.onreadystatechange=null,!o.status||o.status>201)if(e.log("Error: "+o.status),(!o.status&&!o.aborted||500==o.status)&&(n.retry||0)=0?t+"px":t}function u(t){var n,i=r.createElement("canvas"),a=!1;try{n=i.getContext("2d"),n.drawImage(t,0,0,1,1),a=255!=n.getImageData(0,0,1,1).data[4]}catch(o){e.log("[FileAPI.Camera] detectVideoSignal:",o)}return a}s.Shot=l,e.Camera=s}(window,FileAPI),function(t,e,n){"use strict";var r=n.each,i=[];!n.support.flash||!n.media||n.support.media&&n.html5&&!n.insecureChrome||function(){function t(t){var e=t.wid=n.uid();return n.Flash._fn[e]=t,"FileAPI.Flash._fn."+e}function e(t){try{n.Flash._fn[t.wid]=null,delete n.Flash._fn[t.wid]}catch(e){}}var a=n.Flash;n.extend(n.Flash,{patchCamera:function(){n.Camera.fallback=function(r,i,o){var s=n.uid();n.log("FlashAPI.Camera.publish: "+s),a.publish(r,s,n.extend(i,{camera:!0,onEvent:t((function t(r){"camera"===r.type&&(e(t),r.error?(n.log("FlashAPI.Camera.publish.error: "+r.error),o(r.error)):(n.log("FlashAPI.Camera.publish.success: "+s),o(null)))}))}))},r(i,(function(t){n.Camera.fallback.apply(n.Camera,t)})),i=[],n.extend(n.Camera.prototype,{_id:function(){return this.video.id},start:function(r){var i=this;a.cmd(this._id(),"camera.on",{callback:t((function t(a){e(t),a.error?(n.log("FlashAPI.camera.on.error: "+a.error),r(a.error,i)):(n.log("FlashAPI.camera.on.success: "+i._id()),i._active=!0,r(null,i))}))})},stop:function(){this._active=!1,a.cmd(this._id(),"camera.off")},shot:function(){n.log("FlashAPI.Camera.shot:",this._id());var t=n.Flash.cmd(this._id(),"shot",{});return t.type="image/png",t.flashId=this._id(),t.isShot=!0,new n.Camera.Shot(t)}})}}),n.Camera.fallback=function(){i.push(arguments)}}()}(window,window.jQuery,FileAPI),r=[],i=function(){return FileAPI}.apply(e,r),void 0===i||(t.exports=i)},"6c77":function(t,e,n){"use strict";var r=n("0014"),i=n.n(r);i.a},"76f3":function(t,e,n){},"807a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"test"},[t._v("测试按需引入B")])},i=[],a={name:"testB",data(){return{}}},o=a,s=(n("472c"),n("9ca4")),l=Object(s["a"])(o,r,i,!1,null,"5e993ff7",null),c=l.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c},"857a":function(t,e,n){"use strict";var r=n("8eff"),i=n.n(r);i.a},"8b67":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pages"},[t.paginations.totalRowNum>0?n("el-pagination",{attrs:{"page-sizes":t.pageInationsConfig.pageSizes,layout:t.pageInationsConfig.layout,"current-page":t.paginations.pageNum,"page-size":t.paginations.pageSize,total:t.paginations.totalRowNum},on:{"size-change":t.f_sizeChange,"current-change":t.f_currentChange}}):t._e()],1)},i=[],a={name:"cheersPaginations",props:{paginations:{type:Object,default:()=>({pageNum:0,pageSize:10,totalRowNum:0})},pageInationsConfig:{type:Object,default:()=>({layout:"total, sizes, prev, pager, next, jumper",pageSizes:[10,20,30,50,100]})}},data(){return{paginationsData:{pageNum:0,pageSize:10,totalRowNum:0}}},watch:{paginations:{handler(){this.paginationsData=this.paginations},limmediate:!0}},methods:{f_sizeChange(t){this.paginationsData.pageSize=t,this.$emit("f_changPaginations",this.paginationsData)},f_currentChange(t){this.paginationsData.pageNum=t,this.$emit("f_changPaginations",this.paginationsData)}}},o=a,s=(n("52f5"),n("9ca4")),l=Object(s["a"])(o,r,i,!1,null,"e50a3486",null),c=l.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c},"8d8b":function(t,e,n){},"8eff":function(t,e,n){},"9bb9":function(t,e,n){"use strict";var r=n("8d8b"),i=n.n(r);i.a},"9c30":function(t,e,n){},"9ca4":function(t,e,n){"use strict";function r(t,e,n,r,i,a,o,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},"9edd":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},aa06:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"cheersTable",components:{row:{functional:!0,props:{row:Object,col:Object,render:Function,colIndex:[Number,String]},render(t,e){const n=Math.random().toString(35).replace(".",""),r={row:{...e.props.row},colIndex:e.props.colIndex||n};return e.props.col&&(r.col=e.props.col),e.props.render&&e.props.render(t,r)}}},props:{searchFrom:{type:Object,default:()=>{}},border:{type:Boolean,default:!0},stripe:{type:Boolean,default:!0},initListPermission:{type:Object,default:()=>{}},tableHeight:{type:String,default:"400"},showSummary:{type:Boolean,default:!1},expandShow:{type:Boolean,default:!1},expandList:{type:Array,default:()=>[]},indexShow:{type:Boolean,default:!0},selectionShow:{type:Boolean,default:!1},indexLabel:{type:String,default:"序号"},indexWidth:{type:String,default:"50"},tableHead:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},addBtnList:{type:Object,default:()=>{}},buttonListShow:{type:Boolean,default:!0}},methods:{f_show(itemshowBtn,scope){return eval(itemshowBtn)},f_clickBtn(t,e,n){this.$emit("f_listenCall",t,e,n)},f_handleSelectionChange(t){this.$emit("f_handleSelectionChange",t)}}}},bacc:function(module,__webpack_exports__,__webpack_require__){"use strict";var _cheersFormTitle_src_index__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("2378");__webpack_exports__["a"]={components:{cheersFormTitle:_cheersFormTitle_src_index__WEBPACK_IMPORTED_MODULE_0__["a"]},name:"cheersForm",props:{bdcolor:{type:String,default:"#409EFF"},inline:{type:Boolean,default:!0},isHandle:{type:Boolean,default:!0},labelWidth:{type:String,default:"120px"},ruleFormBtn:{type:Array,default:()=>[]},fieldList:{type:Array,default:()=>[]},ruleForm:{type:Object,default:()=>{}}},methods:{f_show(flag){return eval(flag)},f_clickBtn(t,e){this.$emit("f_listenBtn",t,e)},f_resetForm(){this.$refs.ruleForm.resetFields()},f_validate(){this.$refs.ruleForm.validate(t=>{this.$emit("f_save",t)})}}}},c0fb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("0261"),i=s(r),a=n("3496"),o=s(a);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}n("030a");var c=i.default.extend({render:function(t){return t("div",{style:this.containerStyle},[t("img",{ref:"img",attrs:{src:this.src,alt:this.alt||"image",style:"max-width: 100%"},style:this.imgStyle})])},props:{containerStyle:Object,src:{type:String,default:""},alt:String,imgStyle:Object,viewMode:Number,dragMode:String,aspectRatio:Number,data:Object,preview:String,responsive:{type:Boolean,default:!0},restore:{type:Boolean,default:!0},checkCrossOrigin:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},guides:{type:Boolean,default:!0},center:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0},background:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!0},autoCropArea:Number,movable:{type:Boolean,default:!0},rotatable:{type:Boolean,default:!0},scalable:{type:Boolean,default:!0},zoomable:{type:Boolean,default:!0},zoomOnTouch:{type:Boolean,default:!0},zoomOnWheel:{type:Boolean,default:!0},wheelZoomRatio:Number,cropBoxMovable:{type:Boolean,default:!0},cropBoxResizable:{type:Boolean,default:!0},toggleDragModeOnDblclick:{type:Boolean,default:!0},minCanvasWidth:Number,minCanvasHeight:Number,minCropBoxWidth:Number,minCropBoxHeight:Number,minContainerWidth:Number,minContainerHeight:Number,ready:Function,cropstart:Function,cropmove:Function,cropend:Function,crop:Function,zoom:Function},mounted:function(){var t=this.$options.props,e=(t.containerStyle,t.src,t.alt,t.imgStyle,l(t,["containerStyle","src","alt","imgStyle"])),n={};for(var r in e)void 0!==this[r]&&(n[r]=this[r]);this.cropper=new o.default(this.$refs.img,n)},methods:{reset:function(){return this.cropper.reset()},clear:function(){return this.cropper.clear()},initCrop:function(){return this.cropper.crop()},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.cropper.replace(t,e)},enable:function(){return this.cropper.enable()},disable:function(){return this.cropper.disable()},destroy:function(){return this.cropper.destroy()},move:function(t,e){return this.cropper.move(t,e)},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.cropper.moveTo(t,e)},relativeZoom:function(t,e){return this.cropper.zoom(t,e)},zoomTo:function(t,e){return this.cropper.zoomTo(t,e)},rotate:function(t){return this.cropper.rotate(t)},rotateTo:function(t){return this.cropper.rotateTo(t)},scaleX:function(t){return this.cropper.scaleX(t)},scaleY:function(t){return this.cropper.scaleY(t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.cropper.scale(t,e)},getData:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.cropper.getData(t)},setData:function(t){return this.cropper.setData(t)},getContainerData:function(){return this.cropper.getContainerData()},getImageData:function(){return this.cropper.getImageData()},getCanvasData:function(){return this.cropper.getCanvasData()},setCanvasData:function(t){return this.cropper.setCanvasData(t)},getCropBoxData:function(){return this.cropper.getCropBoxData()},setCropBoxData:function(t){return this.cropper.setCropBoxData(t)},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.cropper.getCroppedCanvas(t)},setAspectRatio:function(t){return this.cropper.setAspectRatio(t)},setDragMode:function(t){return this.cropper.setDragMode(t)}}}),u=i.default.component("vue-cropper",c);e.default=u},c9c4:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"search_input"},[n("el-form",{ref:"searchForm",staticClass:"demo-form-inline",attrs:{inline:t.inline,model:t.searchForm,"label-width":t.labelWidth}},[t._l(t.fieldList,(function(e){return n("el-form-item",{key:e.value,attrs:{label:e.label,value:e.value,prop:e.value}},["slot"===e.type?[t._t("form-"+e.solt)]:t._e(),"Input"===e.type||"Password"===e.type?n("el-input",t._b({attrs:{"show-password":"Password"===e.type,placeholder:e.placeholder||"请输入"+e.label},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-input",e.attr,!1)):t._e(),"NumberInput"===e.type?n("el-input-number",t._b({model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-input-number",e.attr,!1)):t._e(),"Select"===e.type?n("el-select",t._b({attrs:{placeholder:e.placeholder||"请选择"+e.label},on:{"visible-change":function(e){return t.$forceUpdate()},change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-select",e.attr,!1),t._l(e.options,(function(t){return n("el-option",{key:t[e.props.value],attrs:{label:t[e.props.label],value:t[e.props.value]}})})),1):t._e(),"Cascader"===e.type?n("el-cascader",t._b({attrs:{options:e.options,placeholder:e.placeholder||"请选择"+e.label,props:e.props},on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-cascader",e.attr,!1)):t._e(),"Radio"===e.type?n("el-radio-group",{on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},t._l(e.options,(function(r){return n("el-radio",t._b({key:r[e.props.value],attrs:{label:r[e.props.value]}},"el-radio",e.attr,!1),[t._v("\n\t\t\t\t\t"+t._s(r[e.props.label])+"\n\t\t\t\t")])})),1):t._e(),"Checkbox"===e.type?n("el-checkbox-group",{on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},t._l(e.options,(function(r){return n("el-checkbox",t._b({key:r[e.props.value],attrs:{label:r[e.props.value]}},"el-checkbox",e.attr,!1),[t._v(t._s(r[e.props.label])+"\n\t\t\t\t")])})),1):t._e(),"Year"===e.type?n("el-date-picker",t._b({attrs:{type:"year","value-format":"yyyy",format:"yyyy",placeholder:e.placeholder||"请选择"+e.label},on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"YearMonth"===e.type?n("el-date-picker",t._b({attrs:{type:"month","value-format":"yyyy-MM",format:"yyyy-MM",placeholder:e.placeholder||"请选择"+e.label},on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"Date"===e.type?n("el-date-picker",t._b({attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",placeholder:e.placeholder||"请选择"+e.label},on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"DateTime"===e.type?n("el-date-picker",t._b({attrs:{type:"datetime",placeholder:e.placeholder||"请选择"+e.label,"value-format":"yyyy-MM-dd hh:mm:ss"},on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"DateRange"===e.type?n("el-date-picker",t._b({attrs:{type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"Switch"===e.type?n("el-switch",t._b({on:{change:function(n){e.change&&e.change(t.searchForm[e.value])}},model:{value:t.searchForm[e.value],callback:function(n){t.$set(t.searchForm,e.value,n)},expression:"searchForm[item.value]"}},"el-switch",e.attr,!1)):t._e()],2)})),t._l(t.searchFormBtn,(function(e,r){return n("el-form-item",{key:r+"searchFormBtn"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.f_show(e.showBtn),expression:"f_show(item.showBtn)"}],attrs:{type:"primary"},on:{click:function(n){return t.f_clickBtn(e.methods,e.option)}}},[n("i",{class:e.icon}),n("span",[t._v(t._s(e.title))])])],1)}))],2)],1)},i=[],a=n("efeb"),o=a["a"],s=n("9ca4"),l=Object(s["a"])(o,r,i,!1,null,null,null),c=l.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c},e8e5:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tables"},[n("el-table",{attrs:{data:t.tableData,stripe:t.stripe||!0,border:t.border||!0,height:t.tableHeight,"show-summary":t.showSummary},on:{"selection-change":t.f_handleSelectionChange}},[t.selectionShow?n("el-table-column",{key:1,attrs:{type:"selection",width:"50",align:"center","highlight-current-row":""}}):t._e(),t.indexShow?n("el-table-column",{key:2,attrs:{align:"center",label:t.indexLabel,width:t.indexWidth},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+1))])]}}],null,!1,4178052834)}):t._e(),t.expandShow?n("el-table-column",{key:3,attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._l(t.expandList,(function(t,r){return[n("row",{key:r+"expandList",attrs:{row:e.row,col:t,render:t.render,"col-index":r}})]}))]}}],null,!1,2152769975)}):t._e(),t._l(t.tableHead,(function(e,r){return[e.render?n("el-table-column",{key:r+"tableHead",attrs:{label:e.label,prop:e.prop,width:e.width,"header-align":e.headerAlign||"center",align:e.align||"center",fixed:e.fixed||!1,sortable:e.sortable||!1,"show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(t){return[n("row",{attrs:{row:t.row,col:e,render:e.render,"col-index":r}})]}}],null,!0)}):n("el-table-column",{key:r+"tableHead",attrs:{label:e.label,prop:e.prop,width:e.width,"header-align":e.headerAlign||"center",align:e.align||"center",fixed:e.fixed||!1,sortable:e.sortable||!1,"show-overflow-tooltip":!0}})]})),t.addBtnList?n("el-table-column",{key:1e3,attrs:{align:"center",fixed:t.addBtnList.fixed,label:t.addBtnList.label,"min-width":t.addBtnList.width},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(t.addBtnList.list,(function(r,i){return n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.f_show(r.showBtn||!0,e),expression:"f_show(item.showBtn||true,scope)"}],key:i+"addBtnList",attrs:{type:"text",title:r.title},on:{click:function(n){return t.f_clickBtn(r.methods,e,r.option)}}},[n("i",{class:r.icon}),n("span",[t._v(t._s(r.title))])])}))}}],null,!1,3043998195)}):t._e()],2)],1)},i=[],a=n("aa06"),o=a["a"],s=(n("0c63"),n("9ca4")),l=Object(s["a"])(o,r,i,!1,null,null,null),c=l.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c},efeb:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"cheersSearchBar",props:{initListPermission:{type:Object,default:()=>{}},inline:{type:Boolean,default:!0},labelWidth:{type:String,default:"120px"},searchFormBtn:{type:Array,default:()=>[]},fieldList:{type:Array,default:()=>[]},searchForm:{type:Object,default:()=>{}}},methods:{f_show(itemshowBtn,scope){return eval(itemshowBtn)},f_clickBtn(t,e){this.$emit("f_listenBtn",t,e)},f_resetForm(){this.$refs.searchForm.resetFields()}}}},ff0a:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{ref:"ruleForm",attrs:{inline:t.inline,model:t.ruleForm,"label-width":t.labelWidth}},[t._l(t.fieldList,(function(e,r){return n("el-row",{key:r+"row"},t._l(e.row,(function(e,r){return n("el-col",{key:r+"col",attrs:{span:e.col}},[e.title?n("cheers-form-title",{attrs:{bdcolor:t.bdcolor}},[t._v(t._s(e.title))]):t._e(),t._l(e.list,(function(e){return[t.f_show(e.flag||!0)?n("el-form-item",{key:e.value,attrs:{label:e.label,value:e.value,prop:e.value,rules:e.rules,labelWidth:e.labelWidth}},["slot"===e.type?[t._t("form-"+e.solt)]:t._e(),"Input"===e.type?n("el-input",t._b({attrs:{placeholder:e.placeholder||"请输入"+e.label},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-input",e.attr,!1)):t._e(),"Password"===e.type?n("el-input",t._b({attrs:{"show-password":"Password"===e.type,placeholder:e.placeholder||"请输入"+e.label},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-input",e.attr,!1)):t._e(),"NumberInput"===e.type?n("el-input-number",t._b({model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-input-number",e.attr,!1)):t._e(),"Select"===e.type?n("el-select",t._b({attrs:{placeholder:e.placeholder||"请选择"+e.label},on:{"visible-change":function(e){return t.$forceUpdate()},change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-select",e.attr,!1),t._l(e.options,(function(t){return n("el-option",{key:t[e.props.value],attrs:{label:t[e.props.label],value:t[e.props.value]}})})),1):t._e(),"Cascader"===e.type?n("el-cascader",t._b({attrs:{options:e.options,placeholder:e.placeholder||"请选择"+e.label,props:e.props},on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-cascader",e.attr,!1)):t._e(),"Radio"===e.type?n("el-radio-group",{on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},t._l(e.options,(function(r){return n("el-radio",t._b({key:r[e.props.value],attrs:{label:r[e.props.value]}},"el-radio",e.attr,!1),[t._v("\n\t\t\t\t\t\t\t"+t._s(r[e.props.label])+"\n\t\t\t\t\t\t")])})),1):t._e(),"Checkbox"===e.type?n("el-checkbox-group",{on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},t._l(e.options,(function(r){return n("el-checkbox",t._b({key:r[e.props.value],attrs:{label:r[e.props.value]}},"el-checkbox",e.attr,!1),[t._v(t._s(r[e.props.label])+"\n\t\t\t\t\t\t")])})),1):t._e(),"Year"===e.type?n("el-date-picker",t._b({attrs:{type:"year","value-format":"yyyy",format:"yyyy",placeholder:e.placeholder||"请选择"+e.label},on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"YearMonth"===e.type?n("el-date-picker",t._b({attrs:{type:"month","value-format":"yyyy-MM",format:"yyyy-MM",placeholder:e.placeholder||"请选择"+e.label},on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"Date"===e.type?n("el-date-picker",t._b({attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",placeholder:e.placeholder||"请选择"+e.label},on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"DateTime"===e.type?n("el-date-picker",t._b({attrs:{type:"datetime",placeholder:e.placeholder||"请选择"+e.label,"value-format":"yyyy-MM-dd hh:mm:ss"},on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"DateRange"===e.type?n("el-date-picker",t._b({attrs:{type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-date-picker",e.attr,!1)):t._e(),"Switch"===e.type?n("el-switch",t._b({on:{change:function(n){e.change&&e.change(t.ruleForm[e.value])}},model:{value:t.ruleForm[e.value],callback:function(n){t.$set(t.ruleForm,e.value,n)},expression:"ruleForm[item.value]"}},"el-switch",e.attr,!1)):t._e()],2):t._e()]}))],2)})),1)})),n("el-form-item",t._l(t.ruleFormBtn,(function(e,r){return n("el-button",{key:r+"formBtn",attrs:{type:"primary"},on:{click:function(n){return t.f_clickBtn(e.methods,e.option)}}},[n("i",{class:e.icon}),n("span",[t._v(t._s(e.title))])])})),1)],2)},i=[],a=n("bacc"),o=a["a"],s=n("9ca4"),l=Object(s["a"])(o,r,i,!1,null,null,null),c=l.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c}}); \ No newline at end of file diff --git a/lib/style/cheersUploadImage.css b/lib/style/cheersUploadImage.css index 1a64da8..2afc705 100644 --- a/lib/style/cheersUploadImage.css +++ b/lib/style/cheersUploadImage.css @@ -6,4 +6,4 @@ * Released under the MIT license * * Date: 2020-05-23T05:22:57.283Z - */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:rgba(51,153,255,.75);overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.upload-button>*{pointer-events:none}.upload-button{display:block;width:300px;min-height:150px;margin:10px auto auto auto;padding:10px auto;border-radius:10px;border:2px dashed #ddd;overflow:hidden;cursor:pointer}.upload-button span{display:block;width:50px;height:50px;border-radius:100%;border:3px solid #0983c7;margin:30px auto 15px;position:relative}.upload-button em{font-style:normal;text-align:center;display:block}.upload-button span:after,.upload-button span:before{display:block;content:"";background-color:#0983c7;position:absolute}.upload-button span:before{width:3px;height:30px;top:10px;left:24px}.upload-button span:after{width:30px;height:3px;top:24px;left:10px}.audio-preview,.video-preview{width:100%;position:relative}.image-cropper{position:relative}.cropper-buttons{position:fixed;bottom:0;left:0;right:0;background-color:hsla(0,0%,100%,.6)}.btn{padding:10px}.btn-primary{background-color:rgba(235,97,0,.8);color:#fff}.image-preview{position:relative}.image-list{list-style:none;display:inline-block;margin:0;padding:0}.image-list li{float:left;border:1px solid #e8f5ff;position:relative;text-align:center;margin-right:5px}.upload-image-button{width:75px;height:75px;position:relative;border:2px dashed #ddd!important;-webkit-box-sizing:border-box;box-sizing:border-box}.plus{font-size:50px;color:#0983c7;line-height:64px;margin-bottom:15px;font-weight:300;text-align:center;cursor:pointer}.delete-btn{top:-8px;right:-5px;position:absolute!important;cursor:pointer}.img-font{font-size:12px;color:#666}.thumb{margin-right:50px}.thumb-img{width:100%;height:100%;background-position:50%;background-repeat:no-repeat}.cover-size{background-size:cover}.contain-size{background-size:contain}.square{border-radius:0}.circle{border-radius:50%}.gray{filter:Gray;-webkit-filter:grayscale(100%)}// 关闭 .close-btn{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box;width:.18em;height:.18em;position:relative;border:none;border-radius:1em;font:normal 8em/normal Arial,Helvetica,sans-serif;color:#000;text-overflow:clip;background:#bc2f19;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.close-btn:after,.close-btn:before{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box;width:.11em;height:.025em;position:absolute;content:"";top:.07em;left:.03em;border:none;font:normal 100%/normal Arial,Helvetica,sans-serif;color:#000;text-overflow:clip;background:#fff;text-shadow:none}.close-btn:after{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)} \ No newline at end of file + */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:rgba(51,153,255,.75);overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.upload-button>*{pointer-events:none}.upload-button{display:block;width:300px;min-height:150px;margin:10px auto auto auto;padding:10px auto;border-radius:10px;border:2px dashed #ddd;overflow:hidden;cursor:pointer}.upload-button span{display:block;width:50px;height:50px;border-radius:100%;border:3px solid #0983c7;margin:30px auto 15px;position:relative}.upload-button em{font-style:normal;text-align:center;display:block}.upload-button span:after,.upload-button span:before{display:block;content:"";background-color:#0983c7;position:absolute}.upload-button span:before{width:3px;height:30px;top:10px;left:24px}.upload-button span:after{width:30px;height:3px;top:24px;left:10px}.audio-preview,.video-preview{width:100%;position:relative}.image-cropper{position:relative}.cropper-buttons{position:fixed;bottom:0;left:0;right:0;background-color:hsla(0,0%,100%,.6)}.btn{padding:10px}.btn-primary{background-color:rgba(235,97,0,.8);color:#fff}.image-list,.image-preview{position:relative}.image-list{list-style:none;display:inline-block;margin:0;padding:0}.image-list li{float:left;border:1px solid #e8f5ff;position:relative;text-align:center;margin-right:5px}.upload-image-button{width:75px;height:75px;position:relative;border:2px dashed #ddd!important;-webkit-box-sizing:border-box;box-sizing:border-box}.plus{font-size:50px;color:#0983c7;line-height:64px;margin-bottom:15px;font-weight:300;text-align:center;cursor:pointer}.delete-btn{top:-8px;right:-5px;position:absolute!important;cursor:pointer}.img-font{font-size:12px;color:#666}.thumb{margin-right:50px}.thumb-img{width:100%;height:100%;background-position:50%;background-repeat:no-repeat}.cover-size{background-size:cover}.contain-size{background-size:contain}.square{border-radius:0}.circle{border-radius:50%}.gray{filter:Gray;-webkit-filter:grayscale(100%)}//关闭 .close-btn{position:relative}.close-btn,//关闭 .close-btn{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box;width:.18em;height:.18em;border:none;border-radius:1em;font:normal 8em/normal Arial,Helvetica,sans-serif;color:#000;text-overflow:clip;background:#bc2f19;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.close-btn{position:absolute;top:-20px;right:-10px}.close-btn:after,.close-btn:before{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box;width:.11em;height:.025em;position:absolute;content:"";top:.07em;left:.03em;border:none;font:normal 100%/normal Arial,Helvetica,sans-serif;color:#000;text-overflow:clip;background:#fff;text-shadow:none}.close-btn:after{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)} \ No newline at end of file diff --git a/lib/style/index.css b/lib/style/index.css index 65c72a0..8ba872c 100644 --- a/lib/style/index.css +++ b/lib/style/index.css @@ -8,4 +8,4 @@ * Released under the MIT license * * Date: 2020-05-23T05:22:57.283Z - */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:rgba(51,153,255,.75);overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.upload-button>*{pointer-events:none}.upload-button{display:block;width:300px;min-height:150px;margin:10px auto auto auto;padding:10px auto;border-radius:10px;border:2px dashed #ddd;overflow:hidden;cursor:pointer}.upload-button span{display:block;width:50px;height:50px;border-radius:100%;border:3px solid #0983c7;margin:30px auto 15px;position:relative}.upload-button em{font-style:normal;text-align:center;display:block}.upload-button span:after,.upload-button span:before{display:block;content:"";background-color:#0983c7;position:absolute}.upload-button span:before{width:3px;height:30px;top:10px;left:24px}.upload-button span:after{width:30px;height:3px;top:24px;left:10px}.audio-preview,.video-preview{width:100%;position:relative}.image-cropper{position:relative}.cropper-buttons{position:fixed;bottom:0;left:0;right:0;background-color:hsla(0,0%,100%,.6)}.btn{padding:10px}.btn-primary{background-color:rgba(235,97,0,.8);color:#fff}.image-preview{position:relative}.image-list{list-style:none;display:inline-block;margin:0;padding:0}.image-list li{float:left;border:1px solid #e8f5ff;position:relative;text-align:center;margin-right:5px}.upload-image-button{width:75px;height:75px;position:relative;border:2px dashed #ddd!important;-webkit-box-sizing:border-box;box-sizing:border-box}.plus{font-size:50px;color:#0983c7;line-height:64px;margin-bottom:15px;font-weight:300;text-align:center;cursor:pointer}.delete-btn{top:-8px;right:-5px;position:absolute!important;cursor:pointer}.img-font{font-size:12px;color:#666}.thumb{margin-right:50px}.thumb-img{width:100%;height:100%;background-position:50%;background-repeat:no-repeat}.cover-size{background-size:cover}.contain-size{background-size:contain}.square{border-radius:0}.circle{border-radius:50%}.gray{filter:Gray;-webkit-filter:grayscale(100%)}// 关闭 .close-btn{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box;width:.18em;height:.18em;position:relative;border:none;border-radius:1em;font:normal 8em/normal Arial,Helvetica,sans-serif;color:#000;text-overflow:clip;background:#bc2f19;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.close-btn:after,.close-btn:before{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box;width:.11em;height:.025em;position:absolute;content:"";top:.07em;left:.03em;border:none;font:normal 100%/normal Arial,Helvetica,sans-serif;color:#000;text-overflow:clip;background:#fff;text-shadow:none}.close-btn:after{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.test[data-v-5e993ff7]{color:#00f} \ No newline at end of file + */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:rgba(51,153,255,.75);overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.upload-button>*{pointer-events:none}.upload-button{display:block;width:300px;min-height:150px;margin:10px auto auto auto;padding:10px auto;border-radius:10px;border:2px dashed #ddd;overflow:hidden;cursor:pointer}.upload-button span{display:block;width:50px;height:50px;border-radius:100%;border:3px solid #0983c7;margin:30px auto 15px;position:relative}.upload-button em{font-style:normal;text-align:center;display:block}.upload-button span:after,.upload-button span:before{display:block;content:"";background-color:#0983c7;position:absolute}.upload-button span:before{width:3px;height:30px;top:10px;left:24px}.upload-button span:after{width:30px;height:3px;top:24px;left:10px}.audio-preview,.video-preview{width:100%;position:relative}.image-cropper{position:relative}.cropper-buttons{position:fixed;bottom:0;left:0;right:0;background-color:hsla(0,0%,100%,.6)}.btn{padding:10px}.btn-primary{background-color:rgba(235,97,0,.8);color:#fff}.image-list,.image-preview{position:relative}.image-list{list-style:none;display:inline-block;margin:0;padding:0}.image-list li{float:left;border:1px solid #e8f5ff;position:relative;text-align:center;margin-right:5px}.upload-image-button{width:75px;height:75px;position:relative;border:2px dashed #ddd!important;-webkit-box-sizing:border-box;box-sizing:border-box}.plus{font-size:50px;color:#0983c7;line-height:64px;margin-bottom:15px;font-weight:300;text-align:center;cursor:pointer}.delete-btn{top:-8px;right:-5px;position:absolute!important;cursor:pointer}.img-font{font-size:12px;color:#666}.thumb{margin-right:50px}.thumb-img{width:100%;height:100%;background-position:50%;background-repeat:no-repeat}.cover-size{background-size:cover}.contain-size{background-size:contain}.square{border-radius:0}.circle{border-radius:50%}.gray{filter:Gray;-webkit-filter:grayscale(100%)}//关闭 .close-btn{position:relative}.close-btn,//关闭 .close-btn{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box;width:.18em;height:.18em;border:none;border-radius:1em;font:normal 8em/normal Arial,Helvetica,sans-serif;color:#000;text-overflow:clip;background:#bc2f19;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.close-btn{position:absolute;top:-20px;right:-10px}.close-btn:after,.close-btn:before{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box;width:.11em;height:.025em;position:absolute;content:"";top:.07em;left:.03em;border:none;font:normal 100%/normal Arial,Helvetica,sans-serif;color:#000;text-overflow:clip;background:#fff;text-shadow:none}.close-btn:after{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.test[data-v-5e993ff7]{color:#00f} \ No newline at end of file diff --git a/package.json b/package.json index 5db6e99..b9e3b05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cheers-ui", - "version": "0.3.8", + "version": "0.3.9", "private": false, "main": "lib/index/index.js", "keyword": "cheers-ui",