/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{126:function(t,e,n){t.exports=n(127)},127:function(t,e,n){"use strict";n.r(e),function(t){n(52),n(57),n(25);var e=n(16),r=(n(37),n(95),n(3)),o=(n(78),n(109),n(20),n(19),n(44),n(46),n(80),n(137),n(143),n(145),n(1)),c=n(120),h=n(90),l=n(2),d=n(33),f=n(67);o.a.component(f.a.name,f.a),o.a.component("NLink",f.a),t.fetch||(t.fetch=c.a);var m,v,x=[],w=window.__NUXT__||{};Object.assign(o.a.config,{silent:!0,performance:!1});var y=o.a.config.errorHandler||console.error;function C(t,e,n){var r=function(component){var t=function(component,t){if(!component||!component.options||!component.options[t])return{};var option=component.options[t];if("function"==typeof option){for(var e=arguments.length,n=new Array(e>2?e-2:0),r=2;r1&&void 0!==arguments[1]&&arguments[1];return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).map((function(r){return e&&e.push(n),t.components[r]}))})))}function C(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.instances).map((function(r){return e&&e.push(n),t.instances[r]}))})))}function O(t,e){return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).reduce((function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r}),[])})))}function k(t,e){return Promise.all(O(t,function(){var t=Object(c.a)(regeneratorRuntime.mark((function t(n,r,o,c){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n||n.options){t.next=4;break}return t.next=3,n();case 3:n=t.sent;case 4:return o.components[c]=n=w(n),t.abrupt("return","function"==typeof e?e(n,r,o,c):n);case 6:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}()))}function _(t){return E.apply(this,arguments)}function E(){return(E=Object(c.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,k(e);case 4:return t.abrupt("return",f({},e,{meta:y(e).map((function(t,n){return f({},t.options.meta,{},(e.matched[n]||{}).meta)}))}));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function j(t,e){return D.apply(this,arguments)}function D(){return(D=Object(c.a)(regeneratorRuntime.mark((function t(e,n){var c,h,l,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.context||(e.context={isStatic:!1,isDev:!1,isHMR:!1,app:e,store:e.store,payload:n.payload,error:n.error,base:"/",env:{PROD_MODE:"1",NUXT_ENV_PROD_MODE:"1"}},n.req&&(e.context.req=n.req),n.res&&(e.context.res=n.res),n.ssrContext&&(e.context.ssrContext=n.ssrContext),e.context.redirect=function(t,path,n){if(t){e.context._redirected=!0;var r=Object(o.a)(path);if("number"==typeof t||"undefined"!==r&&"object"!==r||(n=path||{},path=t,r=Object(o.a)(path),t=302),"object"===r&&(path=e.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=H(path,n),window.location.replace(path),new Error("ERR_REDIRECT");e.context.next({path:path,query:n,status:t})}},e.context.nuxtState=window.__NUXT__),t.next=3,Promise.all([_(n.route),_(n.from)]);case 3:c=t.sent,h=Object(r.a)(c,2),l=h[0],d=h[1],n.route&&(e.context.route=l),n.from&&(e.context.from=d),e.context.next=n.next,e.context._redirected=!1,e.context._errored=!1,e.context.isHMR=Boolean(n.isHMR),e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{};case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(t,e){return!t.length||e._redirected||e._errored?Promise.resolve():M(t[0],e).then((function(){return T(t.slice(1),e)}))}function M(t,e){var n;return(n=2===t.length?new Promise((function(n){t(e,(function(t,data){t&&e.error(t),n(data=data||{})}))})):t(e))&&(n instanceof Promise||"function"==typeof n.then)||(n=Promise.resolve(n)),n}function R(base,t){var path=decodeURI(window.location.pathname);return"hash"===t?window.location.hash.replace(/^#\//,""):(base&&0===path.indexOf(base)&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash)}function S(t,e){return function(t){for(var e=new Array(t.length),i=0;i1)return this.nuxtChildKey||Object(x.b)(this.$route.matched[0].path)(this.$route.params);var t=Object(j.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){return this.nuxt.err?t("NuxtError",{props:{error:this.nuxt.err}}):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}},T=(n(52),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return t.startTimer()}),this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),setTimeout((function(){t.show=!1,t.$nextTick((function(){t.percent=0,t.reversed=!1}))}),500),this},fail:function(){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100?(t.skipTimerCount=1,t.reversed=!t.reversed):t.percent<=0&&(t.skipTimerCount=1,t.reversed=!t.reversed)))}),100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}}),M=(n(159),Object(_.a)(T,void 0,void 0,!1,null,null,null).exports),R=(n(161),n(168),n(170),n(39));function S(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var A,B={computed:function(t){for(var i=1;i2&&void 0!==arguments[2]?arguments[2]:{}).isProperty,r=void 0!==n&&n;if(!e.length||r&&1===e.length)return t;var o=e.shift();return t.modules[o]=t.modules[o]||{},t.modules[o].namespaced=!0,t.modules[o].modules=t.modules[o].modules||{},W(t.modules[o],e,{isProperty:r})}function U(t,e,n){e&&("state"===n?t.state=e||t.state:t[n]=Object.assign({},t[n],e))}var F=n(124),X=(n(94),n(182),n(125),n(95),n(188),n(189),n(97),n(98),n(16));function Y(t){return(Y="function"==typeof Symbol&&"symbol"===Object(X.a)(Symbol.iterator)?function(t){return Object(X.a)(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Object(X.a)(t)})(t)}function J(t,e){for(var i=0;i0&&t<1/0};function Ct(t){return void 0===t}function Ot(t){return"object"===Y(t)&&null!==t}var kt=Object.prototype.hasOwnProperty;function _t(t){if(!Ot(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&kt.call(n,"isPrototypeOf")}catch(t){return!1}}function Et(t){return"function"==typeof t}var jt=Array.prototype.slice;function Dt(t){return Array.from?Array.from(t):jt.call(t)}function Tt(data,t){return data&&Et(t)&&(Array.isArray(data)||wt(data.length)?Dt(data).forEach((function(e,n){t.call(data,e,n,data)})):Ot(data)&&Object.keys(data).forEach((function(e){t.call(data,data[e],e,data)}))),data}var Mt=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&n.forEach((function(e){Ot(e)&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t},Rt=/\.\d*(?:0|9){12}\d*$/;function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return Rt.test(t)?Math.round(t*e)/e:t}var At=/^width|height|left|top|marginLeft|marginTop$/;function Bt(element,t){var style=element.style;Tt(t,(function(t,e){At.test(e)&&wt(t)&&(t="".concat(t,"px")),style[e]=t}))}function Nt(element,t){if(t)if(wt(element.length))Tt(element,(function(e){Nt(e,t)}));else if(element.classList)element.classList.add(t);else{var e=element.className.trim();e?e.indexOf(t)<0&&(element.className="".concat(e," ").concat(t)):element.className=t}}function Pt(element,t){t&&(wt(element.length)?Tt(element,(function(e){Pt(e,t)})):element.classList?element.classList.remove(t):element.className.indexOf(t)>=0&&(element.className=element.className.replace(t,"")))}function $t(element,t,e){t&&(wt(element.length)?Tt(element,(function(n){$t(n,t,e)})):e?Nt(element,t):Pt(element,t))}var Lt=/([a-z\d])([A-Z])/g;function Ht(t){return t.replace(Lt,"$1-$2").toLowerCase()}function It(element,t){return Ot(element[t])?element[t]:element.dataset?element.dataset[t]:element.getAttribute("data-".concat(Ht(t)))}function zt(element,t,data){Ot(data)?element[t]=data:element.dataset?element.dataset[t]=data:element.setAttribute("data-".concat(Ht(t)),data)}var Wt=/\s\s*/,Ut=function(){var t=!1;if(K){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});V.addEventListener("test",n,r),V.removeEventListener("test",n,r)}return t}();function Ft(element,t,e){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e;t.trim().split(Wt).forEach((function(t){if(!Ut){var o=element.listeners;o&&o[t]&&o[t][e]&&(r=o[t][e],delete o[t][e],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete element.listeners)}element.removeEventListener(t,r,n)}))}function Xt(element,t,e){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e;t.trim().split(Wt).forEach((function(t){if(n.once&&!Ut){var o=element.listeners,c=void 0===o?{}:o;r=function(){delete c[t][e],element.removeEventListener(t,r,n);for(var o=arguments.length,h=new Array(o),l=0;l1&&void 0!==arguments[1]?arguments[1]:"contain",c=yt(r),h=yt(n);if(c&&h){var l=n*e;"contain"===o&&l>r||"cover"===o&&l=8&&(c=d+m)}}}if(c){var v,i,x=n.getUint16(c,r);for(i=0;it.width?3===n?l=t.height*h:d=t.width/h:3===n?d=t.width/h:l=t.height*h;var f={aspectRatio:h,naturalWidth:o,naturalHeight:c,width:l,height:d};f.left=(t.width-l)/2,f.top=(t.height-d)/2,f.oldLeft=f.left,f.oldTop=f.top,this.canvasData=f,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=Mt({},e),this.initialCanvasData=Mt({},f)},limitCanvas:function(t,e){var n=this.options,r=this.containerData,o=this.canvasData,c=this.cropBoxData,h=n.viewMode,l=o.aspectRatio,d=this.cropped&&c;if(t){var f=Number(n.minCanvasWidth)||0,m=Number(n.minCanvasHeight)||0;h>1?(f=Math.max(f,r.width),m=Math.max(m,r.height),3===h&&(m*l>f?f=m*l:m=f/l)):h>0&&(f?f=Math.max(f,d?c.width:0):m?m=Math.max(m,d?c.height:0):d&&(f=c.width,(m=c.height)*l>f?f=m*l:m=f/l));var v=te({aspectRatio:l,width:f,height:m});f=v.width,m=v.height,o.minWidth=f,o.minHeight=m,o.maxWidth=1/0,o.maxHeight=1/0}if(e)if(h>(d?0:1)){var x=r.width-o.width,w=r.height-o.height;o.minLeft=Math.min(0,x),o.minTop=Math.min(0,w),o.maxLeft=Math.max(0,x),o.maxTop=Math.max(0,w),d&&this.limited&&(o.minLeft=Math.min(c.left,c.left+(c.width-o.width)),o.minTop=Math.min(c.top,c.top+(c.height-o.height)),o.maxLeft=c.left,o.maxTop=c.top,2===h&&(o.width>=r.width&&(o.minLeft=Math.min(0,x),o.maxLeft=Math.max(0,x)),o.height>=r.height&&(o.minTop=Math.min(0,w),o.maxTop=Math.max(0,w))))}else o.minLeft=-o.width,o.minTop=-o.height,o.maxLeft=r.width,o.maxTop=r.height},renderCanvas:function(t,e){var n=this.canvasData,r=this.imageData;if(e){var o=function(t){var e=t.width,n=t.height,r=t.degree;if(90===(r=Math.abs(r)%180))return{width:n,height:e};var o=r%90*Math.PI/180,c=Math.sin(o),h=Math.cos(o),l=e*h+n*c,d=e*c+n*h;return r>90?{width:d,height:l}:{width:l,height:d}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),c=o.width,h=o.height,l=n.width*(c/n.naturalWidth),d=n.height*(h/n.naturalHeight);n.left-=(l-n.width)/2,n.top-=(d-n.height)/2,n.width=l,n.height=d,n.aspectRatio=c/h,n.naturalWidth=c,n.naturalHeight=h,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighte.width?o.height=o.width/n:o.width=o.height*n),this.cropBoxData=o,this.limitCropBox(!0,!0),o.width=Math.min(Math.max(o.width,o.minWidth),o.maxWidth),o.height=Math.min(Math.max(o.height,o.minHeight),o.maxHeight),o.width=Math.max(o.minWidth,o.width*r),o.height=Math.max(o.minHeight,o.height*r),o.left=e.left+(e.width-o.width)/2,o.top=e.top+(e.height-o.height)/2,o.oldLeft=o.left,o.oldTop=o.top,this.initialCropBoxData=Mt({},o)},limitCropBox:function(t,e){var n=this.options,r=this.containerData,o=this.canvasData,c=this.cropBoxData,h=this.limited,l=n.aspectRatio;if(t){var d=Number(n.minCropBoxWidth)||0,f=Number(n.minCropBoxHeight)||0,m=h?Math.min(r.width,o.width,o.width+o.left,r.width-o.left):r.width,v=h?Math.min(r.height,o.height,o.height+o.top,r.height-o.top):r.height;d=Math.min(d,r.width),f=Math.min(f,r.height),l&&(d&&f?f*l>d?f=d/l:d=f*l:d?f=d/l:f&&(d=f*l),v*l>m?v=m/l:m=v*l),c.minWidth=Math.min(d,m),c.minHeight=Math.min(f,v),c.maxWidth=m,c.maxHeight=v}e&&(h?(c.minLeft=Math.max(0,o.left),c.minTop=Math.max(0,o.top),c.maxLeft=Math.min(r.width,o.left+o.width)-c.width,c.maxTop=Math.min(r.height,o.top+o.height)-c.height):(c.minLeft=0,c.minTop=0,c.maxLeft=r.width-c.width,c.maxTop=r.height-c.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?"move":"all"),Bt(this.cropBox,Mt({width:n.width,height:n.height},Zt({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Yt(this.element,"crop",this.getData())}},ae={initPreview:function(){var element=this.element,t=this.crossOrigin,e=this.options.preview,n=t?this.crossOriginUrl:this.url,r=element.alt||"The image to preview",image=document.createElement("img");if(t&&(image.crossOrigin=t),image.src=n,image.alt=r,this.viewBox.appendChild(image),this.viewBoxImage=image,e){var o=e;"string"==typeof e?o=element.ownerDocument.querySelectorAll(e):e.querySelector&&(o=[e]),this.previews=o,Tt(o,(function(e){var img=document.createElement("img");zt(e,ht,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(img.crossOrigin=t),img.src=n,img.alt=r,img.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;"',e.innerHTML="",e.appendChild(img)}))}},resetPreview:function(){Tt(this.previews,(function(element){var data=It(element,ht);Bt(element,{width:data.width,height:data.height}),element.innerHTML=data.html,function(element,t){if(Ot(element[t]))try{delete element[t]}catch(e){element[t]=void 0}else if(element.dataset)try{delete element.dataset[t]}catch(e){element.dataset[t]=void 0}else element.removeAttribute("data-".concat(Ht(t)))}(element,ht)}))},preview:function(){var t=this.imageData,e=this.canvasData,n=this.cropBoxData,r=n.width,o=n.height,c=t.width,h=t.height,l=n.left-e.left-t.left,d=n.top-e.top-t.top;this.cropped&&!this.disabled&&(Bt(this.viewBoxImage,Mt({width:c,height:h},Zt(Mt({translateX:-l,translateY:-d},t)))),Tt(this.previews,(function(element){var data=It(element,ht),e=data.width,n=data.height,f=e,m=n,v=1;r&&(m=o*(v=e/r)),o&&m>n&&(f=r*(v=n/o),m=n),Bt(element,{width:f,height:m}),Bt(element.getElementsByTagName("img")[0],Mt({width:c*v,height:h*v},Zt(Mt({translateX:-l*v,translateY:-d*v},t))))})))}},se={bind:function(){var element=this.element,t=this.options,e=this.cropper;Et(t.cropstart)&&Xt(element,"cropstart",t.cropstart),Et(t.cropmove)&&Xt(element,"cropmove",t.cropmove),Et(t.cropend)&&Xt(element,"cropend",t.cropend),Et(t.crop)&&Xt(element,"crop",t.crop),Et(t.zoom)&&Xt(element,"zoom",t.zoom),Xt(e,ut,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&Xt(e,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Xt(e,"dblclick",this.onDblclick=this.dblclick.bind(this)),Xt(element.ownerDocument,pt,this.onCropMove=this.cropMove.bind(this)),Xt(element.ownerDocument,lt,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&Xt(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var element=this.element,t=this.options,e=this.cropper;Et(t.cropstart)&&Ft(element,"cropstart",t.cropstart),Et(t.cropmove)&&Ft(element,"cropmove",t.cropmove),Et(t.cropend)&&Ft(element,"cropend",t.cropend),Et(t.crop)&&Ft(element,"crop",t.crop),Et(t.zoom)&&Ft(element,"zoom",t.zoom),Ft(e,ut,this.onCropStart),t.zoomable&&t.zoomOnWheel&&Ft(e,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Ft(e,"dblclick",this.onDblclick),Ft(element.ownerDocument,pt,this.onCropMove),Ft(element.ownerDocument,lt,this.onCropEnd),t.responsive&&Ft(window,"resize",this.onResize)}},ce={resize:function(){var t=this.options,e=this.container,n=this.containerData,r=Number(t.minContainerWidth)||200,o=Number(t.minContainerHeight)||100;if(!(this.disabled||n.width<=r||n.height<=o)){var c,h,l=e.offsetWidth/n.width;if(1!==l||e.offsetHeight!==n.height)t.restore&&(c=this.getCanvasData(),h=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(Tt(c,(function(t,i){c[i]=t*l}))),this.setCropBoxData(Tt(h,(function(t,i){h[i]=t*l}))))}},dblclick:function(){var element,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((element=this.dragBox,t=tt,(element.classList?element.classList.contains(t):element.className.indexOf(t)>-1)?"move":"crop"))},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,button=t.button;if(!(this.disabled||"mouse"===t.pointerType&&wt(e)&&1!==e||"mouse"===t.pointerType&&wt(button)&&0!==button||t.ctrlKey)){var n,r=this.options,o=this.pointers;t.changedTouches?Tt(t.changedTouches,(function(t){o[t.identifier]=Gt(t)})):o[t.pointerId||0]=Gt(t),n=Object.keys(o).length>1&&r.zoomable&&r.zoomOnTouch?"zoom":It(t.target,ct),ft.test(n)&&!1!==Yt(this.element,"cropstart",{originalEvent:t,action:n})&&(t.preventDefault(),this.action=n,this.cropping=!1,"crop"===n&&(this.cropping=!0,Nt(this.dragBox,at)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var n=this.pointers;t.preventDefault(),!1!==Yt(this.element,"cropmove",{originalEvent:t,action:e})&&(t.changedTouches?Tt(t.changedTouches,(function(t){Mt(n[t.identifier]||{},Gt(t,!0))})):Mt(n[t.pointerId||0]||{},Gt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,n=this.pointers;t.changedTouches?Tt(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,$t(this.dragBox,at,this.cropped&&this.options.modal)),Yt(this.element,"cropend",{originalEvent:t,action:e}))}}},he={change:function(t){var e,n=this.options,r=this.canvasData,o=this.containerData,c=this.cropBoxData,h=this.pointers,l=this.action,d=n.aspectRatio,f=c.left,m=c.top,v=c.width,x=c.height,w=f+v,y=m+x,C=0,O=0,k=o.width,_=o.height,E=!0;!d&&t.shiftKey&&(d=v&&x?v/x:1),this.limited&&(C=c.minLeft,O=c.minTop,k=C+Math.min(o.width,r.width,r.left+r.width),_=O+Math.min(o.height,r.height,r.top+r.height));var j=h[Object.keys(h)[0]],D={x:j.endX-j.startX,y:j.endY-j.startY},T=function(t){switch(t){case"e":w+D.x>k&&(D.x=k-w);break;case"w":f+D.x_&&(D.y=_-y)}};switch(l){case"all":f+=D.x,m+=D.y;break;case"e":if(D.x>=0&&(w>=k||d&&(m<=O||y>=_))){E=!1;break}T("e"),(v+=D.x)<0&&(l="w",f-=v=-v),d&&(x=v/d,m+=(c.height-x)/2);break;case"n":if(D.y<=0&&(m<=O||d&&(f<=C||w>=k))){E=!1;break}T("n"),x-=D.y,m+=D.y,x<0&&(l="s",m-=x=-x),d&&(v=x*d,f+=(c.width-v)/2);break;case"w":if(D.x<=0&&(f<=C||d&&(m<=O||y>=_))){E=!1;break}T("w"),v-=D.x,f+=D.x,v<0&&(l="e",f-=v=-v),d&&(x=v/d,m+=(c.height-x)/2);break;case"s":if(D.y>=0&&(y>=_||d&&(f<=C||w>=k))){E=!1;break}T("s"),(x+=D.y)<0&&(l="n",m-=x=-x),d&&(v=x*d,f+=(c.width-v)/2);break;case"ne":if(d){if(D.y<=0&&(m<=O||w>=k)){E=!1;break}T("n"),x-=D.y,m+=D.y,v=x*d}else T("n"),T("e"),D.x>=0?wO&&(x-=D.y,m+=D.y):(x-=D.y,m+=D.y);v<0&&x<0?(l="sw",m-=x=-x,f-=v=-v):v<0?(l="nw",f-=v=-v):x<0&&(l="se",m-=x=-x);break;case"nw":if(d){if(D.y<=0&&(m<=O||f<=C)){E=!1;break}T("n"),x-=D.y,m+=D.y,v=x*d,f+=c.width-v}else T("n"),T("w"),D.x<=0?f>C?(v-=D.x,f+=D.x):D.y<=0&&m<=O&&(E=!1):(v-=D.x,f+=D.x),D.y<=0?m>O&&(x-=D.y,m+=D.y):(x-=D.y,m+=D.y);v<0&&x<0?(l="se",m-=x=-x,f-=v=-v):v<0?(l="ne",f-=v=-v):x<0&&(l="sw",m-=x=-x);break;case"sw":if(d){if(D.x<=0&&(f<=C||y>=_)){E=!1;break}T("w"),v-=D.x,f+=D.x,x=v/d}else T("s"),T("w"),D.x<=0?f>C?(v-=D.x,f+=D.x):D.y>=0&&y>=_&&(E=!1):(v-=D.x,f+=D.x),D.y>=0?y<_&&(x+=D.y):x+=D.y;v<0&&x<0?(l="ne",m-=x=-x,f-=v=-v):v<0?(l="se",f-=v=-v):x<0&&(l="nw",m-=x=-x);break;case"se":if(d){if(D.x>=0&&(w>=k||y>=_)){E=!1;break}T("e"),x=(v+=D.x)/d}else T("s"),T("e"),D.x>=0?w=0&&y>=_&&(E=!1):v+=D.x,D.y>=0?y<_&&(x+=D.y):x+=D.y;v<0&&x<0?(l="nw",m-=x=-x,f-=v=-v):v<0?(l="sw",f-=v=-v):x<0&&(l="ne",m-=x=-x);break;case"move":this.move(D.x,D.y),E=!1;break;case"zoom":this.zoom(function(t){var e=Mt({},t),n=[];return Tt(t,(function(t,r){delete e[r],Tt(e,(function(e){var r=Math.abs(t.startX-e.startX),o=Math.abs(t.startY-e.startY),c=Math.abs(t.endX-e.endX),h=Math.abs(t.endY-e.endY),l=Math.sqrt(r*r+o*o),d=(Math.sqrt(c*c+h*h)-l)/l;n.push(d)}))})),n.sort((function(a,b){return Math.abs(a)0?l=D.y>0?"se":"ne":D.x<0&&(f-=v,l=D.y>0?"sw":"nw"),D.y<0&&(m-=x),this.cropped||(Pt(this.cropBox,nt),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}E&&(c.width=v,c.height=x,c.left=f,c.top=m,this.action=l,this.renderCropBox()),Tt(h,(function(p){p.startX=p.endX,p.startY=p.endY}))}},ue={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Nt(this.dragBox,at),Pt(this.cropBox,nt),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Mt({},this.initialImageData),this.canvasData=Mt({},this.initialCanvasData),this.cropBoxData=Mt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Mt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Pt(this.dragBox,at),Nt(this.cropBox,nt)),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,Tt(this.previews,(function(element){element.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,Pt(this.cropper,et)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Nt(this.cropper,et)),this},destroy:function(){var element=this.element;return element.cropper?(element.cropper=void 0,this.isImg&&this.replaced&&(element.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,o=n.top;return this.moveTo(Ct(t)?t:r+Number(t),Ct(e)?e:o+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&&(wt(t)&&(n.left=t,r=!0),wt(e)&&(n.top=e,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,e){var n=this.canvasData;return t=(t=Number(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,o=this.canvasData,c=o.width,h=o.height,l=o.naturalWidth,d=o.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&r.zoomable){var f=l*t,m=d*t;if(!1===Yt(this.element,"zoom",{ratio:t,oldRatio:c/l,originalEvent:n}))return this;if(n){var v=this.pointers,x=qt(this.cropper),w=v&&Object.keys(v).length?function(t){var e=0,n=0,r=0;return Tt(t,(function(t){var o=t.startX,c=t.startY;e+=o,n+=c,r+=1})),{pageX:e/=r,pageY:n/=r}}(v):{pageX:n.pageX,pageY:n.pageY};o.left-=(f-c)*((w.pageX-x.left-o.left)/c),o.top-=(m-h)*((w.pageY-x.top-o.top)/h)}else _t(e)&&wt(e.x)&&wt(e.y)?(o.left-=(f-c)*((e.x-o.left)/c),o.top-=(m-h)*((e.y-o.top)/h)):(o.left-=(f-c)/2,o.top-=(m-h)/2);o.width=f,o.height=m,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return wt(t=Number(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,wt(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(wt(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&&(wt(t)&&(n.scaleX=t,r=!0),wt(e)&&(n.scaleY=e,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var data,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.options,n=this.imageData,r=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){data={x:o.left-r.left,y:o.top-r.top,width:o.width,height:o.height};var c=n.width/n.naturalWidth;if(Tt(data,(function(t,i){data[i]=t/c})),t){var h=Math.round(data.y+data.height),l=Math.round(data.x+data.width);data.x=Math.round(data.x),data.y=Math.round(data.y),data.width=l-data.x,data.height=h-data.y}}else data={x:0,y:0,width:0,height:0};return e.rotatable&&(data.rotate=n.rotate||0),e.scalable&&(data.scaleX=n.scaleX||1,data.scaleY=n.scaleY||1),data},setData:function(data){var t=this.options,e=this.imageData,n=this.canvasData,r={};if(this.ready&&!this.disabled&&_t(data)){var o=!1;t.rotatable&&wt(data.rotate)&&data.rotate!==e.rotate&&(e.rotate=data.rotate,o=!0),t.scalable&&(wt(data.scaleX)&&data.scaleX!==e.scaleX&&(e.scaleX=data.scaleX,o=!0),wt(data.scaleY)&&data.scaleY!==e.scaleY&&(e.scaleY=data.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var c=e.width/e.naturalWidth;wt(data.x)&&(r.left=data.x*c+n.left),wt(data.y)&&(r.top=data.y*c+n.top),wt(data.width)&&(r.width=data.width*c),wt(data.height)&&(r.height=data.height*c),this.setCropBoxData(r)}return this},getContainerData:function(){return this.ready?Mt({},this.containerData):{}},getImageData:function(){return this.sized?Mt({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,data={};return this.ready&&Tt(["left","top","width","height","naturalWidth","naturalHeight"],(function(e){data[e]=t[e]})),data},setCanvasData:function(data){var t=this.canvasData,e=t.aspectRatio;return this.ready&&!this.disabled&&_t(data)&&(wt(data.left)&&(t.left=data.left),wt(data.top)&&(t.top=data.top),wt(data.width)?(t.width=data.width,t.height=data.width/e):wt(data.height)&&(t.height=data.height,t.width=data.height*e),this.renderCanvas(!0)),this},getCropBoxData:function(){var data,t=this.cropBoxData;return this.ready&&this.cropped&&(data={left:t.left,top:t.top,width:t.width,height:t.height}),data||{}},setCropBoxData:function(data){var t,e,n=this.cropBoxData,r=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&_t(data)&&(wt(data.left)&&(n.left=data.left),wt(data.top)&&(n.top=data.top),wt(data.width)&&data.width!==n.width&&(t=!0,n.width=data.width),wt(data.height)&&data.height!==n.height&&(e=!0,n.height=data.height),r&&(t?n.height=n.width/r:e&&(n.width=n.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,source=ee(this.image,this.imageData,e,t);if(!this.cropped)return source;var n=this.getData(),r=n.x,o=n.y,c=n.width,h=n.height,l=source.width/Math.floor(e.naturalWidth);1!==l&&(r*=l,o*=l,c*=l,h*=l);var d=c/h,f=te({aspectRatio:d,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),m=te({aspectRatio:d,width:t.minWidth||0,height:t.minHeight||0},"cover"),v=te({aspectRatio:d,width:t.width||(1!==l?source.width:c),height:t.height||(1!==l?source.height:h)}),x=v.width,w=v.height;x=Math.min(f.width,Math.max(m.width,x)),w=Math.min(f.height,Math.max(m.height,w));var canvas=document.createElement("canvas"),y=canvas.getContext("2d");canvas.width=St(x),canvas.height=St(w),y.fillStyle=t.fillColor||"transparent",y.fillRect(0,0,x,w);var C=t.imageSmoothingEnabled,O=void 0===C||C,k=t.imageSmoothingQuality;y.imageSmoothingEnabled=O,k&&(y.imageSmoothingQuality=k);var _,E,j,D,T,M,R=source.width,S=source.height,A=r,B=o;A<=-c||A>R?(A=0,_=0,j=0,T=0):A<=0?(j=-A,A=0,T=_=Math.min(R,c+A)):A<=R&&(j=0,T=_=Math.min(c,R-A)),_<=0||B<=-h||B>S?(B=0,E=0,D=0,M=0):B<=0?(D=-B,B=0,M=E=Math.min(S,h+B)):B<=S&&(D=0,M=E=Math.min(h,S-B));var N=[A,B,_,E];if(T>0&&M>0){var P=x/c;N.push(j*P,D*P,T*P,M*P)}return y.drawImage.apply(y,[source].concat(Q(N.map((function(param){return Math.floor(St(param))}))))),canvas},setAspectRatio:function(t){var e=this.options;return this.disabled||Ct(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 o="crop"===t,c=e.movable&&"move"===t;t=o||c?t:"none",e.dragMode=t,zt(n,ct,t),$t(n,tt,o),$t(n,st,c),e.cropBoxMovable||(zt(r,ct,t),$t(r,tt,o),$t(r,st,c))}return this}},pe=V.Cropper,le=function(){function t(element){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!element||!bt.test(element.tagName))throw new Error("The first argument is required and must be an or element.");this.element=element,this.options=Mt({},vt,_t(e)&&e),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()}var e,n,r;return e=t,r=[{key:"noConflict",value:function(){return window.Cropper=pe,t}},{key:"setDefaults",value:function(t){Mt(vt,_t(t)&&t)}}],(n=[{key:"init",value:function(){var t,element=this.element,e=element.tagName.toLowerCase();if(!element.cropper){if(element.cropper=this,"img"===e){if(this.isImg=!0,t=element.getAttribute("src")||"",this.originalUrl=t,!t)return;t=element.src}else"canvas"===e&&window.HTMLCanvasElement&&(t=element.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var element=this.element,n=this.options;if(n.rotatable||n.scalable||(n.checkOrientation=!1),n.checkOrientation&&window.ArrayBuffer)if(mt.test(t))gt.test(t)?this.read((r=t.replace(re,""),o=atob(r),c=new ArrayBuffer(o.length),Tt(h=new Uint8Array(c),(function(t,i){h[i]=o.charCodeAt(i)})),c)):this.clone();else{var r,o,c,h,l=new XMLHttpRequest,d=this.clone.bind(this);this.reloading=!0,this.xhr=l,l.onabort=d,l.onerror=d,l.ontimeout=d,l.onprogress=function(){"image/jpeg"!==l.getResponseHeader("content-type")&&l.abort()},l.onload=function(){e.read(l.response)},l.onloadend=function(){e.reloading=!1,e.xhr=null},n.checkCrossOrigin&&Kt(t)&&element.crossOrigin&&(t=Vt(t)),l.open("GET",t),l.responseType="arraybuffer",l.withCredentials="use-credentials"===element.crossOrigin,l.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,r=ie(t),o=0,c=1,h=1;if(r>1){this.url=function(t,e){for(var n=[],r=new Uint8Array(t);r.length>0;)n.push(ne.apply(null,Dt(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}(t,"image/jpeg");var l=function(t){var e=0,n=1,r=1;switch(t){case 2:n=-1;break;case 3:e=-180;break;case 4:r=-1;break;case 5:e=90,r=-1;break;case 6:e=90;break;case 7:e=90,n=-1;break;case 8:e=-90}return{rotate:e,scaleX:n,scaleY:r}}(r);o=l.rotate,c=l.scaleX,h=l.scaleY}e.rotatable&&(n.rotate=o),e.scalable&&(n.scaleX=c,n.scaleY=h),this.clone()}},{key:"clone",value:function(){var element=this.element,t=this.url,e=element.crossOrigin,n=t;this.options.checkCrossOrigin&&Kt(t)&&(e||(e="anonymous"),n=Vt(t)),this.crossOrigin=e,this.crossOriginUrl=n;var image=document.createElement("img");e&&(image.crossOrigin=e),image.src=n||t,image.alt=element.alt||"The image to crop",this.image=image,image.onload=this.start.bind(this),image.onerror=this.stop.bind(this),Nt(image,it),element.parentNode.insertBefore(image,element.nextSibling)}},{key:"start",value:function(){var t=this,image=this.image;image.onload=null,image.onerror=null,this.sizing=!0;var e=V.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(V.navigator.userAgent),n=function(e,n){Mt(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.sizing=!1,t.sized=!0,t.build()};if(!image.naturalWidth||e){var r=document.createElement("img"),body=document.body||document.documentElement;this.sizingImage=r,r.onload=function(){n(r.width,r.height),e||body.removeChild(r)},r.src=image.src,e||(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;",body.appendChild(r))}else n(image.naturalWidth,image.naturalHeight)}},{key:"stop",value:function(){var image=this.image;image.onload=null,image.onerror=null,image.parentNode.removeChild(image),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var element=this.element,t=this.options,image=this.image,e=element.parentNode,template=document.createElement("div");template.innerHTML='
';var n=template.querySelector(".".concat("cropper","-container")),canvas=n.querySelector(".".concat("cropper","-canvas")),r=n.querySelector(".".concat("cropper","-drag-box")),o=n.querySelector(".".concat("cropper","-crop-box")),c=o.querySelector(".".concat("cropper","-face"));this.container=e,this.cropper=n,this.canvas=canvas,this.dragBox=r,this.cropBox=o,this.viewBox=n.querySelector(".".concat("cropper","-view-box")),this.face=c,canvas.appendChild(image),Nt(element,nt),e.insertBefore(n,element.nextSibling),this.isImg||Pt(image,it),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,Nt(o,nt),t.guides||Nt(o.getElementsByClassName("".concat("cropper","-dashed")),nt),t.center||Nt(o.getElementsByClassName("".concat("cropper","-center")),nt),t.background&&Nt(n,"".concat("cropper","-bg")),t.highlight||Nt(c,ot),t.cropBoxMovable&&(Nt(c,st),zt(c,ct,"all")),t.cropBoxResizable||(Nt(o.getElementsByClassName("".concat("cropper","-line")),nt),Nt(o.getElementsByClassName("".concat("cropper","-point")),nt)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),Et(t.ready)&&Xt(element,"ready",t.ready,{once:!0}),Yt(element,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Pt(this.element,nt))}},{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()}}])&&J(e.prototype,n),r&&J(e,r),t}();Mt(le.prototype,oe,ae,se,ce,he,ue);var de=le,fe="undefined"==typeof window?[String,Array]:[String,Array,Element,NodeList],me={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,initialAspectRatio:Number,aspectRatio:Number,data:Object,preview:fe,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,data=(t.containerStyle,t.src,t.alt,t.imgStyle,Object(F.a)(t,["containerStyle","src","alt","imgStyle"])),e={};for(var n in data)void 0!==this[n]&&(e[n]=this[n]);this.cropper=new de(this.$refs.img,e)},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(data){return this.cropper.setData(data)},getContainerData:function(){return this.cropper.getContainerData()},getImageData:function(){return this.cropper.getImageData()},getCanvasData:function(){return this.cropper.getCanvasData()},setCanvasData:function(data){return this.cropper.setCanvasData(data)},getCropBoxData:function(){return this.cropper.getCropBoxData()},setCropBoxData:function(data){return this.cropper.setCropBoxData(data)},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)}}};c.a.component("vue-cropper",me);var ge=n(123),be=n.n(ge);c.a.component("vue-draggable-resizable",be.a);var ve=n(93),xe=n.n(ve),we=n(24),ye=n.n(we),Ce=(n(190),n(193),n(197),n(195),{apiKey:"AIzaSyA0aribayqF34riliy-44A7WYcDkp1KiLE",authDomain:"selfiprint-x.firebaseapp.com",databaseURL:"https://selfiprint-x.firebaseio.com",projectId:"selfiprint-x",storageBucket:"selfiprint-x.appspot.com",messagingSenderId:"226459401511",appId:"1:226459401511:web:6dddc21c6a680f496a3d02"});ye.a.apps.length||(ye.a.initializeApp(Ce),ye.a.auth().signInAnonymously().catch((function(t){var e=t.code,n=t.message;console.log("Error when auth firebase","".concat(e,": [").concat(n,"]"))})));var Oe=ye.a.firestore();function ke(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function _e(t){for(var i=1;i has been deprecated and will be removed in Nuxt 3, please use instead")),m.a.render(t,e)}})),c.a.component(y.name,y),c.a.component("NChild",y),c.a.component(D.name,D),c.a.use(h.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var Ee={name:"page",mode:"out-in",appear:!1,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};function je(t){return De.apply(this,arguments)}function De(){return(De=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,r,o,h,l,d,path,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new v.a(w);case 2:return n=t.sent,(r=H(e)).$router=n,o=r.registerModule,r.registerModule=function(path,t,e){return o.call(r,path,t,Object.assign({preserveState:!0},e))},h=_e({router:n,store:r,nuxt:{defaultTransition:Ee,transitions:[Ee],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map((function(t){return t=t?"string"==typeof t?Object.assign({},Ee,{name:t}):Object.assign({},Ee,t):Ee})),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,h.context._errored=Boolean(t),t=t?Object(x.l)(t):null;var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},P),r.app=h,l=e?e.next:function(t){return h.router.push(t)},e?d=n.resolve(e.url).route:(path=Object(x.d)(n.options.base),d=n.resolve(path).route),t.next=13,Object(x.p)(h,{route:d,next:l,error:h.nuxt.error.bind(h),store:r,payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,ssrContext:e});case 13:f=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject(key, value) has no value provided");h[t="$"+t]=e,r[t]=h[t];var n="__nuxt_"+t+"_installed__";c.a[n]||(c.a[n]=!0,c.a.use((function(){c.a.prototype.hasOwnProperty(t)||Object.defineProperty(c.a.prototype,t,{get:function(){return this.$root.$options[t]}})})))},window.__NUXT__&&window.__NUXT__.state&&r.replaceState(window.__NUXT__.state),t.next=18;break;case 18:t.next=21;break;case 21:if("function"!=typeof xe.a){t.next=24;break}return t.next=24,xe()(h.context,f);case 24:if("function"!=typeof Oe){t.next=27;break}return t.next=27,Oe(h.context,f);case 27:t.next=30;break;case 30:return t.abrupt("return",{app:h,store:r,router:n});case 31:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},64:function(t,e,n){var content=n(158);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(35).default)("72daabed",content,!0,{sourceMap:!1})},65:function(t,e,n){var content=n(160);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(35).default)("3191d5ad",content,!0,{sourceMap:!1})},66:function(t,e,n){var content=n(173);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(35).default)("932a8f60",content,!0,{sourceMap:!1})},67:function(t,e,n){"use strict";n(19),n(57),n(25),n(20),n(78),n(109);var r=n(1),o=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})}),1)},c=window.IntersectionObserver&&new window.IntersectionObserver((function(t){t.forEach((function(t){var e=t.intersectionRatio,link=t.target;e<=0||link.__prefetch()}))}));e.a={name:"NuxtLink",extends:r.a.component("RouterLink"),props:{noPrefetch:{type:Boolean,default:!1}},mounted:function(){this.noPrefetch||o(this.observe,{timeout:2e3})},beforeDestroy:function(){this.__observed&&(c.unobserve(this.$el),delete this.$el.__prefetch)},methods:{observe:function(){c&&this.shouldPrefetch()&&(this.$el.__prefetch=this.prefetch.bind(this),c.observe(this.$el),this.__observed=!0)},shouldPrefetch:function(){return this.getPrefetchComponents().length>0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(t){return t.components.default})).filter((function(t){return"function"==typeof t&&!t.options&&!t.__prefetched}))},prefetch:function(){if(this.canPrefetch()){c.unobserve(this.$el);var t=this.getPrefetchComponents(),e=!0,n=!1,r=void 0;try{for(var o,h=t[Symbol.iterator]();!(e=(o=h.next()).done);e=!0){var l=o.value,d=l();d instanceof Promise&&d.catch((function(){})),l.__prefetched=!0}}catch(t){n=!0,r=t}finally{try{e||null==h.return||h.return()}finally{if(n)throw r}}}}}}},90:function(t,e,n){"use strict";e.a={}},93:function(t,e){window.fbAsyncInit=function(){window.FB.init({appId:"2348660631896454",status:!0,xfbml:!1,version:"v4.0",autoLogAppEvents:!0}),window.FB.AppEvents.logPageView()},function(t,s,e){var n=t.getElementsByTagName(s)[0];if(!t.getElementById(e)){var r=t.createElement(s);r.id=e,r.src="https://connect.facebook.net/en_US/sdk.js",n.parentNode.insertBefore(r,n)}}(document,"script","facebook-jssdk")}},[[126,9,3,10]]]);