mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 09:27:19 +08:00
15 lines
96 KiB
JavaScript
15 lines
96 KiB
JavaScript
import{r as ot,k as Or,ac as Dr,as as Ut,at as ki,E as $i,aa as gn,au as mn,av as Hi,O as wn,o as q,i as Q,e as X,aw as yn,d as li,D as $e,ax as bn,u as Ue,ay as xn,h as Y,g as K,Q as Cn,az as On,ar as Dn,aA as En,aB as Tn,b as j,z as Mn,U as An,a as He,c as zi,w as fe,f as ii,j as Vi,t as ze,aC as _n}from"./index-7675bdf8.js";const Sn="/vue-pure-admin/static/png/avatar-f405a975.png";/*!
|
||
* Cropper.js v1.5.13
|
||
* https://fengyuanchen.github.io/cropperjs
|
||
*
|
||
* Copyright 2015-present Chen Fengyuan
|
||
* Released under the MIT license
|
||
*
|
||
* Date: 2022-11-20T05:30:46.114Z
|
||
*/function Wi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,r)}return i}function Er(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Wi(Object(i),!0).forEach(function(r){Nn(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Wi(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function Rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yi(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ln(e,t,i){return t&&Yi(e.prototype,t),i&&Yi(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nn(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Tr(e){return Bn(e)||Pn(e)||In(e)||kn()}function Bn(e){if(Array.isArray(e))return fi(e)}function Pn(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function In(e,t){if(e){if(typeof e=="string")return fi(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return fi(e,t)}}function fi(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=e[i];return r}function kn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Qe=typeof window<"u"&&typeof window.document<"u",Ct=Qe?window:{},Oi=Qe&&Ct.document.documentElement?"ontouchstart"in Ct.document.documentElement:!1,Di=Qe?"PointerEvent"in Ct:!1,H="cropper",Ei="all",Mr="crop",Ar="move",_r="zoom",It="e",kt="w",Ft="s",St="n",pe="ne",he="nw",de="se",ve="sw",pi="".concat(H,"-crop"),ji="".concat(H,"-disabled"),tt="".concat(H,"-hidden"),Xi="".concat(H,"-hide"),$n="".concat(H,"-invisible"),qe="".concat(H,"-modal"),hi="".concat(H,"-move"),be="".concat(H,"Action"),Ve="".concat(H,"Preview"),Ti="crop",Sr="move",Rr="none",di="crop",vi="cropend",gi="cropmove",mi="cropstart",Ui="dblclick",Hn=Oi?"touchstart":"mousedown",zn=Oi?"touchmove":"mousemove",Vn=Oi?"touchend touchcancel":"mouseup",Fi=Di?"pointerdown":Hn,qi=Di?"pointermove":zn,Gi=Di?"pointerup pointercancel":Vn,Ki="ready",Qi="resize",Zi="wheel",wi="zoom",Ji="image/jpeg",Wn=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Yn=/^data:/,jn=/^data:image\/jpeg;base64,/,Xn=/^img|canvas$/i,Lr=200,Nr=100,tr={viewMode:0,dragMode:Ti,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:Lr,minContainerHeight:Nr,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},Un='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',Fn=Number.isNaN||Ct.isNaN;function N(e){return typeof e=="number"&&!Fn(e)}var er=function(t){return t>0&&t<1/0};function ri(e){return typeof e>"u"}function zt(e){return ui(e)==="object"&&e!==null}var qn=Object.prototype.hasOwnProperty;function Gt(e){if(!zt(e))return!1;try{var t=e.constructor,i=t.prototype;return t&&i&&qn.call(i,"isPrototypeOf")}catch{return!1}}function J(e){return typeof e=="function"}var Gn=Array.prototype.slice;function Br(e){return Array.from?Array.from(e):Gn.call(e)}function U(e,t){return e&&J(t)&&(Array.isArray(e)||N(e.length)?Br(e).forEach(function(i,r){t.call(e,i,r,e)}):zt(e)&&Object.keys(e).forEach(function(i){t.call(e,e[i],i,e)})),e}var z=Object.assign||function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];return zt(t)&&r.length>0&&r.forEach(function(n){zt(n)&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t},Kn=/\.\d*(?:0|9){12}\d*$/;function Qt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Kn.test(e)?Math.round(e*t)/t:e}var Qn=/^width|height|left|top|marginLeft|marginTop$/;function Rt(e,t){var i=e.style;U(t,function(r,a){Qn.test(a)&&N(r)&&(r="".concat(r,"px")),i[a]=r})}function Zn(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function F(e,t){if(t){if(N(e.length)){U(e,function(r){F(r,t)});return}if(e.classList){e.classList.add(t);return}var i=e.className.trim();i?i.indexOf(t)<0&&(e.className="".concat(i," ").concat(t)):e.className=t}}function yt(e,t){if(t){if(N(e.length)){U(e,function(i){yt(i,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function Kt(e,t,i){if(t){if(N(e.length)){U(e,function(r){Kt(r,t,i)});return}i?F(e,t):yt(e,t)}}var Jn=/([a-z\d])([A-Z])/g;function Mi(e){return e.replace(Jn,"$1-$2").toLowerCase()}function yi(e,t){return zt(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Mi(t)))}function xe(e,t,i){zt(i)?e[t]=i:e.dataset?e.dataset[t]=i:e.setAttribute("data-".concat(Mi(t)),i)}function ta(e,t){if(zt(e[t]))try{delete e[t]}catch{e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch{e.dataset[t]=void 0}else e.removeAttribute("data-".concat(Mi(t)))}var Pr=/\s\s*/,Ir=function(){var e=!1;if(Qe){var t=!1,i=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(n){t=n}});Ct.addEventListener("test",i,r),Ct.removeEventListener("test",i,r)}return e}();function ht(e,t,i){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i;t.trim().split(Pr).forEach(function(n){if(!Ir){var o=e.listeners;o&&o[n]&&o[n][i]&&(a=o[n][i],delete o[n][i],Object.keys(o[n]).length===0&&delete o[n],Object.keys(o).length===0&&delete e.listeners)}e.removeEventListener(n,a,r)})}function ct(e,t,i){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i;t.trim().split(Pr).forEach(function(n){if(r.once&&!Ir){var o=e.listeners,s=o===void 0?{}:o;a=function(){delete s[n][i],e.removeEventListener(n,a,r);for(var f=arguments.length,l=new Array(f),h=0;h<f;h++)l[h]=arguments[h];i.apply(e,l)},s[n]||(s[n]={}),s[n][i]&&e.removeEventListener(n,s[n][i],r),s[n][i]=a,e.listeners=s}e.addEventListener(n,a,r)})}function Zt(e,t,i){var r;return J(Event)&&J(CustomEvent)?r=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!0,i)),e.dispatchEvent(r)}function kr(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var ni=Ct.location,ea=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function ir(e){var t=e.match(ea);return t!==null&&(t[1]!==ni.protocol||t[2]!==ni.hostname||t[3]!==ni.port)}function rr(e){var t="timestamp=".concat(new Date().getTime());return e+(e.indexOf("?")===-1?"?":"&")+t}function me(e){var t=e.rotate,i=e.scaleX,r=e.scaleY,a=e.translateX,n=e.translateY,o=[];N(a)&&a!==0&&o.push("translateX(".concat(a,"px)")),N(n)&&n!==0&&o.push("translateY(".concat(n,"px)")),N(t)&&t!==0&&o.push("rotate(".concat(t,"deg)")),N(i)&&i!==1&&o.push("scaleX(".concat(i,")")),N(r)&&r!==1&&o.push("scaleY(".concat(r,")"));var s=o.length?o.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function ia(e){var t=Er({},e),i=0;return U(e,function(r,a){delete t[a],U(t,function(n){var o=Math.abs(r.startX-n.startX),s=Math.abs(r.startY-n.startY),c=Math.abs(r.endX-n.endX),f=Math.abs(r.endY-n.endY),l=Math.sqrt(o*o+s*s),h=Math.sqrt(c*c+f*f),d=(h-l)/l;Math.abs(d)>Math.abs(i)&&(i=d)})}),i}function We(e,t){var i=e.pageX,r=e.pageY,a={endX:i,endY:r};return t?a:Er({startX:i,startY:r},a)}function ra(e){var t=0,i=0,r=0;return U(e,function(a){var n=a.startX,o=a.startY;t+=n,i+=o,r+=1}),t/=r,i/=r,{pageX:t,pageY:i}}function Lt(e){var t=e.aspectRatio,i=e.height,r=e.width,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",n=er(r),o=er(i);if(n&&o){var s=i*t;a==="contain"&&s>r||a==="cover"&&s<r?i=r/t:r=i*t}else n?i=r/t:o&&(r=i*t);return{width:r,height:i}}function na(e){var t=e.width,i=e.height,r=e.degree;if(r=Math.abs(r)%180,r===90)return{width:i,height:t};var a=r%90*Math.PI/180,n=Math.sin(a),o=Math.cos(a),s=t*o+i*n,c=t*n+i*o;return r>90?{width:c,height:s}:{width:s,height:c}}function aa(e,t,i,r){var a=t.aspectRatio,n=t.naturalWidth,o=t.naturalHeight,s=t.rotate,c=s===void 0?0:s,f=t.scaleX,l=f===void 0?1:f,h=t.scaleY,d=h===void 0?1:h,y=i.aspectRatio,g=i.naturalWidth,w=i.naturalHeight,b=r.fillColor,x=b===void 0?"transparent":b,C=r.imageSmoothingEnabled,A=C===void 0?!0:C,p=r.imageSmoothingQuality,D=p===void 0?"low":p,u=r.maxWidth,m=u===void 0?1/0:u,T=r.maxHeight,O=T===void 0?1/0:T,M=r.minWidth,_=M===void 0?0:M,S=r.minHeight,L=S===void 0?0:S,I=document.createElement("canvas"),k=I.getContext("2d"),$=Lt({aspectRatio:y,width:m,height:O}),V=Lt({aspectRatio:y,width:_,height:L},"cover"),W=Math.min($.width,Math.max(V.width,g)),Z=Math.min($.height,Math.max(V.height,w)),rt=Lt({aspectRatio:a,width:m,height:O}),gt=Lt({aspectRatio:a,width:_,height:L},"cover"),nt=Math.min(rt.width,Math.max(gt.width,n)),mt=Math.min(rt.height,Math.max(gt.height,o)),pt=[-nt/2,-mt/2,nt,mt];return I.width=Qt(W),I.height=Qt(Z),k.fillStyle=x,k.fillRect(0,0,W,Z),k.save(),k.translate(W/2,Z/2),k.rotate(c*Math.PI/180),k.scale(l,d),k.imageSmoothingEnabled=A,k.imageSmoothingQuality=D,k.drawImage.apply(k,[e].concat(Tr(pt.map(function(at){return Math.floor(Qt(at))})))),k.restore(),I}var $r=String.fromCharCode;function oa(e,t,i){var r="";i+=t;for(var a=t;a<i;a+=1)r+=$r(e.getUint8(a));return r}var sa=/^data:.*,/;function ca(e){var t=e.replace(sa,""),i=atob(t),r=new ArrayBuffer(i.length),a=new Uint8Array(r);return U(a,function(n,o){a[o]=i.charCodeAt(o)}),r}function la(e,t){for(var i=[],r=8192,a=new Uint8Array(e);a.length>0;)i.push($r.apply(null,Br(a.subarray(0,r)))),a=a.subarray(r);return"data:".concat(t,";base64,").concat(btoa(i.join("")))}function ua(e){var t=new DataView(e),i;try{var r,a,n;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var o=t.byteLength,s=2;s+1<o;){if(t.getUint8(s)===255&&t.getUint8(s+1)===225){a=s;break}s+=1}if(a){var c=a+4,f=a+10;if(oa(t,c,4)==="Exif"){var l=t.getUint16(f);if(r=l===18761,(r||l===19789)&&t.getUint16(f+2,r)===42){var h=t.getUint32(f+4,r);h>=8&&(n=f+h)}}}if(n){var d=t.getUint16(n,r),y,g;for(g=0;g<d;g+=1)if(y=n+g*12+2,t.getUint16(y,r)===274){y+=8,i=t.getUint16(y,r),t.setUint16(y,1,r);break}}}catch{i=1}return i}function fa(e){var t=0,i=1,r=1;switch(e){case 2:i=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,i=-1;break;case 8:t=-90;break}return{rotate:t,scaleX:i,scaleY:r}}var pa={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,i=this.options,r=this.container,a=this.cropper,n=Number(i.minContainerWidth),o=Number(i.minContainerHeight);F(a,tt),yt(t,tt);var s={width:Math.max(r.offsetWidth,n>=0?n:Lr),height:Math.max(r.offsetHeight,o>=0?o:Nr)};this.containerData=s,Rt(a,{width:s.width,height:s.height}),F(t,tt),yt(a,tt)},initCanvas:function(){var t=this.containerData,i=this.imageData,r=this.options.viewMode,a=Math.abs(i.rotate)%180===90,n=a?i.naturalHeight:i.naturalWidth,o=a?i.naturalWidth:i.naturalHeight,s=n/o,c=t.width,f=t.height;t.height*s>t.width?r===3?c=t.height*s:f=t.width/s:r===3?f=t.width/s:c=t.height*s;var l={aspectRatio:s,naturalWidth:n,naturalHeight:o,width:c,height:f};this.canvasData=l,this.limited=r===1||r===2,this.limitCanvas(!0,!0),l.width=Math.min(Math.max(l.width,l.minWidth),l.maxWidth),l.height=Math.min(Math.max(l.height,l.minHeight),l.maxHeight),l.left=(t.width-l.width)/2,l.top=(t.height-l.height)/2,l.oldLeft=l.left,l.oldTop=l.top,this.initialCanvasData=z({},l)},limitCanvas:function(t,i){var r=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,s=r.viewMode,c=n.aspectRatio,f=this.cropped&&o;if(t){var l=Number(r.minCanvasWidth)||0,h=Number(r.minCanvasHeight)||0;s>1?(l=Math.max(l,a.width),h=Math.max(h,a.height),s===3&&(h*c>l?l=h*c:h=l/c)):s>0&&(l?l=Math.max(l,f?o.width:0):h?h=Math.max(h,f?o.height:0):f&&(l=o.width,h=o.height,h*c>l?l=h*c:h=l/c));var d=Lt({aspectRatio:c,width:l,height:h});l=d.width,h=d.height,n.minWidth=l,n.minHeight=h,n.maxWidth=1/0,n.maxHeight=1/0}if(i)if(s>(f?0:1)){var y=a.width-n.width,g=a.height-n.height;n.minLeft=Math.min(0,y),n.minTop=Math.min(0,g),n.maxLeft=Math.max(0,y),n.maxTop=Math.max(0,g),f&&this.limited&&(n.minLeft=Math.min(o.left,o.left+(o.width-n.width)),n.minTop=Math.min(o.top,o.top+(o.height-n.height)),n.maxLeft=o.left,n.maxTop=o.top,s===2&&(n.width>=a.width&&(n.minLeft=Math.min(0,y),n.maxLeft=Math.max(0,y)),n.height>=a.height&&(n.minTop=Math.min(0,g),n.maxTop=Math.max(0,g))))}else n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=a.width,n.maxTop=a.height},renderCanvas:function(t,i){var r=this.canvasData,a=this.imageData;if(i){var n=na({width:a.naturalWidth*Math.abs(a.scaleX||1),height:a.naturalHeight*Math.abs(a.scaleY||1),degree:a.rotate||0}),o=n.width,s=n.height,c=r.width*(o/r.naturalWidth),f=r.height*(s/r.naturalHeight);r.left-=(c-r.width)/2,r.top-=(f-r.height)/2,r.width=c,r.height=f,r.aspectRatio=o/s,r.naturalWidth=o,r.naturalHeight=s,this.limitCanvas(!0,!1)}(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCanvas(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,Rt(this.canvas,z({width:r.width,height:r.height},me({translateX:r.left,translateY:r.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var i=this.canvasData,r=this.imageData,a=r.naturalWidth*(i.width/i.naturalWidth),n=r.naturalHeight*(i.height/i.naturalHeight);z(r,{width:a,height:n,left:(i.width-a)/2,top:(i.height-n)/2}),Rt(this.image,z({width:r.width,height:r.height},me(z({translateX:r.left,translateY:r.top},r)))),t&&this.output()},initCropBox:function(){var t=this.options,i=this.canvasData,r=t.aspectRatio||t.initialAspectRatio,a=Number(t.autoCropArea)||.8,n={width:i.width,height:i.height};r&&(i.height*r>i.width?n.height=n.width/r:n.width=n.height*r),this.cropBoxData=n,this.limitCropBox(!0,!0),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),n.width=Math.max(n.minWidth,n.width*a),n.height=Math.max(n.minHeight,n.height*a),n.left=i.left+(i.width-n.width)/2,n.top=i.top+(i.height-n.height)/2,n.oldLeft=n.left,n.oldTop=n.top,this.initialCropBoxData=z({},n)},limitCropBox:function(t,i){var r=this.options,a=this.containerData,n=this.canvasData,o=this.cropBoxData,s=this.limited,c=r.aspectRatio;if(t){var f=Number(r.minCropBoxWidth)||0,l=Number(r.minCropBoxHeight)||0,h=s?Math.min(a.width,n.width,n.width+n.left,a.width-n.left):a.width,d=s?Math.min(a.height,n.height,n.height+n.top,a.height-n.top):a.height;f=Math.min(f,a.width),l=Math.min(l,a.height),c&&(f&&l?l*c>f?l=f/c:f=l*c:f?l=f/c:l&&(f=l*c),d*c>h?d=h/c:h=d*c),o.minWidth=Math.min(f,h),o.minHeight=Math.min(l,d),o.maxWidth=h,o.maxHeight=d}i&&(s?(o.minLeft=Math.max(0,n.left),o.minTop=Math.max(0,n.top),o.maxLeft=Math.min(a.width,n.left+n.width)-o.width,o.maxTop=Math.min(a.height,n.top+n.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=a.width-o.width,o.maxTop=a.height-o.height))},renderCropBox:function(){var t=this.options,i=this.containerData,r=this.cropBoxData;(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCropBox(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,t.movable&&t.cropBoxMovable&&xe(this.face,be,r.width>=i.width&&r.height>=i.height?Ar:Ei),Rt(this.cropBox,z({width:r.width,height:r.height},me({translateX:r.left,translateY:r.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Zt(this.element,di,this.getData())}},ha={initPreview:function(){var t=this.element,i=this.crossOrigin,r=this.options.preview,a=i?this.crossOriginUrl:this.url,n=t.alt||"The image to preview",o=document.createElement("img");if(i&&(o.crossOrigin=i),o.src=a,o.alt=n,this.viewBox.appendChild(o),this.viewBoxImage=o,!!r){var s=r;typeof r=="string"?s=t.ownerDocument.querySelectorAll(r):r.querySelector&&(s=[r]),this.previews=s,U(s,function(c){var f=document.createElement("img");xe(c,Ve,{width:c.offsetWidth,height:c.offsetHeight,html:c.innerHTML}),i&&(f.crossOrigin=i),f.src=a,f.alt=n,f.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;"',c.innerHTML="",c.appendChild(f)})}},resetPreview:function(){U(this.previews,function(t){var i=yi(t,Ve);Rt(t,{width:i.width,height:i.height}),t.innerHTML=i.html,ta(t,Ve)})},preview:function(){var t=this.imageData,i=this.canvasData,r=this.cropBoxData,a=r.width,n=r.height,o=t.width,s=t.height,c=r.left-i.left-t.left,f=r.top-i.top-t.top;!this.cropped||this.disabled||(Rt(this.viewBoxImage,z({width:o,height:s},me(z({translateX:-c,translateY:-f},t)))),U(this.previews,function(l){var h=yi(l,Ve),d=h.width,y=h.height,g=d,w=y,b=1;a&&(b=d/a,w=n*b),n&&w>y&&(b=y/n,g=a*b,w=y),Rt(l,{width:g,height:w}),Rt(l.getElementsByTagName("img")[0],z({width:o*b,height:s*b},me(z({translateX:-c*b,translateY:-f*b},t))))}))}},da={bind:function(){var t=this.element,i=this.options,r=this.cropper;J(i.cropstart)&&ct(t,mi,i.cropstart),J(i.cropmove)&&ct(t,gi,i.cropmove),J(i.cropend)&&ct(t,vi,i.cropend),J(i.crop)&&ct(t,di,i.crop),J(i.zoom)&&ct(t,wi,i.zoom),ct(r,Fi,this.onCropStart=this.cropStart.bind(this)),i.zoomable&&i.zoomOnWheel&&ct(r,Zi,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),i.toggleDragModeOnDblclick&&ct(r,Ui,this.onDblclick=this.dblclick.bind(this)),ct(t.ownerDocument,qi,this.onCropMove=this.cropMove.bind(this)),ct(t.ownerDocument,Gi,this.onCropEnd=this.cropEnd.bind(this)),i.responsive&&ct(window,Qi,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,i=this.options,r=this.cropper;J(i.cropstart)&&ht(t,mi,i.cropstart),J(i.cropmove)&&ht(t,gi,i.cropmove),J(i.cropend)&&ht(t,vi,i.cropend),J(i.crop)&&ht(t,di,i.crop),J(i.zoom)&&ht(t,wi,i.zoom),ht(r,Fi,this.onCropStart),i.zoomable&&i.zoomOnWheel&&ht(r,Zi,this.onWheel,{passive:!1,capture:!0}),i.toggleDragModeOnDblclick&&ht(r,Ui,this.onDblclick),ht(t.ownerDocument,qi,this.onCropMove),ht(t.ownerDocument,Gi,this.onCropEnd),i.responsive&&ht(window,Qi,this.onResize)}},va={resize:function(){if(!this.disabled){var t=this.options,i=this.container,r=this.containerData,a=i.offsetWidth/r.width,n=i.offsetHeight/r.height,o=Math.abs(a-1)>Math.abs(n-1)?a:n;if(o!==1){var s,c;t.restore&&(s=this.getCanvasData(),c=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(U(s,function(f,l){s[l]=f*o})),this.setCropBoxData(U(c,function(f,l){c[l]=f*o})))}}},dblclick:function(){this.disabled||this.options.dragMode===Rr||this.setDragMode(Zn(this.dragBox,pi)?Sr:Ti)},wheel:function(t){var i=this,r=Number(this.options.wheelZoomRatio)||.1,a=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){i.wheeling=!1},50),t.deltaY?a=t.deltaY>0?1:-1:t.wheelDelta?a=-t.wheelDelta/120:t.detail&&(a=t.detail>0?1:-1),this.zoom(-a*r,t)))},cropStart:function(t){var i=t.buttons,r=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(N(i)&&i!==1||N(r)&&r!==0||t.ctrlKey))){var a=this.options,n=this.pointers,o;t.changedTouches?U(t.changedTouches,function(s){n[s.identifier]=We(s)}):n[t.pointerId||0]=We(t),Object.keys(n).length>1&&a.zoomable&&a.zoomOnTouch?o=_r:o=yi(t.target,be),Wn.test(o)&&Zt(this.element,mi,{originalEvent:t,action:o})!==!1&&(t.preventDefault(),this.action=o,this.cropping=!1,o===Mr&&(this.cropping=!0,F(this.dragBox,qe)))}},cropMove:function(t){var i=this.action;if(!(this.disabled||!i)){var r=this.pointers;t.preventDefault(),Zt(this.element,gi,{originalEvent:t,action:i})!==!1&&(t.changedTouches?U(t.changedTouches,function(a){z(r[a.identifier]||{},We(a,!0))}):z(r[t.pointerId||0]||{},We(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var i=this.action,r=this.pointers;t.changedTouches?U(t.changedTouches,function(a){delete r[a.identifier]}):delete r[t.pointerId||0],i&&(t.preventDefault(),Object.keys(r).length||(this.action=""),this.cropping&&(this.cropping=!1,Kt(this.dragBox,qe,this.cropped&&this.options.modal)),Zt(this.element,vi,{originalEvent:t,action:i}))}}},ga={change:function(t){var i=this.options,r=this.canvasData,a=this.containerData,n=this.cropBoxData,o=this.pointers,s=this.action,c=i.aspectRatio,f=n.left,l=n.top,h=n.width,d=n.height,y=f+h,g=l+d,w=0,b=0,x=a.width,C=a.height,A=!0,p;!c&&t.shiftKey&&(c=h&&d?h/d:1),this.limited&&(w=n.minLeft,b=n.minTop,x=w+Math.min(a.width,r.width,r.left+r.width),C=b+Math.min(a.height,r.height,r.top+r.height));var D=o[Object.keys(o)[0]],u={x:D.endX-D.startX,y:D.endY-D.startY},m=function(O){switch(O){case It:y+u.x>x&&(u.x=x-y);break;case kt:f+u.x<w&&(u.x=w-f);break;case St:l+u.y<b&&(u.y=b-l);break;case Ft:g+u.y>C&&(u.y=C-g);break}};switch(s){case Ei:f+=u.x,l+=u.y;break;case It:if(u.x>=0&&(y>=x||c&&(l<=b||g>=C))){A=!1;break}m(It),h+=u.x,h<0&&(s=kt,h=-h,f-=h),c&&(d=h/c,l+=(n.height-d)/2);break;case St:if(u.y<=0&&(l<=b||c&&(f<=w||y>=x))){A=!1;break}m(St),d-=u.y,l+=u.y,d<0&&(s=Ft,d=-d,l-=d),c&&(h=d*c,f+=(n.width-h)/2);break;case kt:if(u.x<=0&&(f<=w||c&&(l<=b||g>=C))){A=!1;break}m(kt),h-=u.x,f+=u.x,h<0&&(s=It,h=-h,f-=h),c&&(d=h/c,l+=(n.height-d)/2);break;case Ft:if(u.y>=0&&(g>=C||c&&(f<=w||y>=x))){A=!1;break}m(Ft),d+=u.y,d<0&&(s=St,d=-d,l-=d),c&&(h=d*c,f+=(n.width-h)/2);break;case pe:if(c){if(u.y<=0&&(l<=b||y>=x)){A=!1;break}m(St),d-=u.y,l+=u.y,h=d*c}else m(St),m(It),u.x>=0?y<x?h+=u.x:u.y<=0&&l<=b&&(A=!1):h+=u.x,u.y<=0?l>b&&(d-=u.y,l+=u.y):(d-=u.y,l+=u.y);h<0&&d<0?(s=ve,d=-d,h=-h,l-=d,f-=h):h<0?(s=he,h=-h,f-=h):d<0&&(s=de,d=-d,l-=d);break;case he:if(c){if(u.y<=0&&(l<=b||f<=w)){A=!1;break}m(St),d-=u.y,l+=u.y,h=d*c,f+=n.width-h}else m(St),m(kt),u.x<=0?f>w?(h-=u.x,f+=u.x):u.y<=0&&l<=b&&(A=!1):(h-=u.x,f+=u.x),u.y<=0?l>b&&(d-=u.y,l+=u.y):(d-=u.y,l+=u.y);h<0&&d<0?(s=de,d=-d,h=-h,l-=d,f-=h):h<0?(s=pe,h=-h,f-=h):d<0&&(s=ve,d=-d,l-=d);break;case ve:if(c){if(u.x<=0&&(f<=w||g>=C)){A=!1;break}m(kt),h-=u.x,f+=u.x,d=h/c}else m(Ft),m(kt),u.x<=0?f>w?(h-=u.x,f+=u.x):u.y>=0&&g>=C&&(A=!1):(h-=u.x,f+=u.x),u.y>=0?g<C&&(d+=u.y):d+=u.y;h<0&&d<0?(s=pe,d=-d,h=-h,l-=d,f-=h):h<0?(s=de,h=-h,f-=h):d<0&&(s=he,d=-d,l-=d);break;case de:if(c){if(u.x>=0&&(y>=x||g>=C)){A=!1;break}m(It),h+=u.x,d=h/c}else m(Ft),m(It),u.x>=0?y<x?h+=u.x:u.y>=0&&g>=C&&(A=!1):h+=u.x,u.y>=0?g<C&&(d+=u.y):d+=u.y;h<0&&d<0?(s=he,d=-d,h=-h,l-=d,f-=h):h<0?(s=ve,h=-h,f-=h):d<0&&(s=pe,d=-d,l-=d);break;case Ar:this.move(u.x,u.y),A=!1;break;case _r:this.zoom(ia(o),t),A=!1;break;case Mr:if(!u.x||!u.y){A=!1;break}p=kr(this.cropper),f=D.startX-p.left,l=D.startY-p.top,h=n.minWidth,d=n.minHeight,u.x>0?s=u.y>0?de:pe:u.x<0&&(f-=h,s=u.y>0?ve:he),u.y<0&&(l-=d),this.cropped||(yt(this.cropBox,tt),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}A&&(n.width=h,n.height=d,n.left=f,n.top=l,this.action=s,this.renderCropBox()),U(o,function(T){T.startX=T.endX,T.startY=T.endY})}},ma={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&F(this.dragBox,qe),yt(this.cropBox,tt),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=z({},this.initialImageData),this.canvasData=z({},this.initialCanvasData),this.cropBoxData=z({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(z(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),yt(this.dragBox,qe),F(this.cropBox,tt)),this},replace:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),i?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,U(this.previews,function(r){r.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,yt(this.cropper,ji)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,F(this.cropper,ji)),this},destroy:function(){var t=this.element;return t[H]?(t[H]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.canvasData,a=r.left,n=r.top;return this.moveTo(ri(t)?t:a+Number(t),ri(i)?i:n+Number(i))},moveTo:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.canvasData,a=!1;return t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.movable&&(N(t)&&(r.left=t,a=!0),N(i)&&(r.top=i,a=!0),a&&this.renderCanvas(!0)),this},zoom:function(t,i){var r=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(r.width*t/r.naturalWidth,null,i)},zoomTo:function(t,i,r){var a=this.options,n=this.canvasData,o=n.width,s=n.height,c=n.naturalWidth,f=n.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&a.zoomable){var l=c*t,h=f*t;if(Zt(this.element,wi,{ratio:t,oldRatio:o/c,originalEvent:r})===!1)return this;if(r){var d=this.pointers,y=kr(this.cropper),g=d&&Object.keys(d).length?ra(d):{pageX:r.pageX,pageY:r.pageY};n.left-=(l-o)*((g.pageX-y.left-n.left)/o),n.top-=(h-s)*((g.pageY-y.top-n.top)/s)}else Gt(i)&&N(i.x)&&N(i.y)?(n.left-=(l-o)*((i.x-n.left)/o),n.top-=(h-s)*((i.y-n.top)/s)):(n.left-=(l-o)/2,n.top-=(h-s)/2);n.width=l,n.height=h,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),N(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var i=this.imageData.scaleY;return this.scale(t,N(i)?i:1)},scaleY:function(t){var i=this.imageData.scaleX;return this.scale(N(i)?i:1,t)},scale:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.imageData,a=!1;return t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.scalable&&(N(t)&&(r.scaleX=t,a=!0),N(i)&&(r.scaleY=i,a=!0),a&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.options,r=this.imageData,a=this.canvasData,n=this.cropBoxData,o;if(this.ready&&this.cropped){o={x:n.left-a.left,y:n.top-a.top,width:n.width,height:n.height};var s=r.width/r.naturalWidth;if(U(o,function(l,h){o[h]=l/s}),t){var c=Math.round(o.y+o.height),f=Math.round(o.x+o.width);o.x=Math.round(o.x),o.y=Math.round(o.y),o.width=f-o.x,o.height=c-o.y}}else o={x:0,y:0,width:0,height:0};return i.rotatable&&(o.rotate=r.rotate||0),i.scalable&&(o.scaleX=r.scaleX||1,o.scaleY=r.scaleY||1),o},setData:function(t){var i=this.options,r=this.imageData,a=this.canvasData,n={};if(this.ready&&!this.disabled&&Gt(t)){var o=!1;i.rotatable&&N(t.rotate)&&t.rotate!==r.rotate&&(r.rotate=t.rotate,o=!0),i.scalable&&(N(t.scaleX)&&t.scaleX!==r.scaleX&&(r.scaleX=t.scaleX,o=!0),N(t.scaleY)&&t.scaleY!==r.scaleY&&(r.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var s=r.width/r.naturalWidth;N(t.x)&&(n.left=t.x*s+a.left),N(t.y)&&(n.top=t.y*s+a.top),N(t.width)&&(n.width=t.width*s),N(t.height)&&(n.height=t.height*s),this.setCropBoxData(n)}return this},getContainerData:function(){return this.ready?z({},this.containerData):{}},getImageData:function(){return this.sized?z({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,i={};return this.ready&&U(["left","top","width","height","naturalWidth","naturalHeight"],function(r){i[r]=t[r]}),i},setCanvasData:function(t){var i=this.canvasData,r=i.aspectRatio;return this.ready&&!this.disabled&&Gt(t)&&(N(t.left)&&(i.left=t.left),N(t.top)&&(i.top=t.top),N(t.width)?(i.width=t.width,i.height=t.width/r):N(t.height)&&(i.height=t.height,i.width=t.height*r),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,i;return this.ready&&this.cropped&&(i={left:t.left,top:t.top,width:t.width,height:t.height}),i||{}},setCropBoxData:function(t){var i=this.cropBoxData,r=this.options.aspectRatio,a,n;return this.ready&&this.cropped&&!this.disabled&&Gt(t)&&(N(t.left)&&(i.left=t.left),N(t.top)&&(i.top=t.top),N(t.width)&&t.width!==i.width&&(a=!0,i.width=t.width),N(t.height)&&t.height!==i.height&&(n=!0,i.height=t.height),r&&(a?i.height=i.width/r:n&&(i.width=i.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var i=this.canvasData,r=aa(this.image,this.imageData,i,t);if(!this.cropped)return r;var a=this.getData(),n=a.x,o=a.y,s=a.width,c=a.height,f=r.width/Math.floor(i.naturalWidth);f!==1&&(n*=f,o*=f,s*=f,c*=f);var l=s/c,h=Lt({aspectRatio:l,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),d=Lt({aspectRatio:l,width:t.minWidth||0,height:t.minHeight||0},"cover"),y=Lt({aspectRatio:l,width:t.width||(f!==1?r.width:s),height:t.height||(f!==1?r.height:c)}),g=y.width,w=y.height;g=Math.min(h.width,Math.max(d.width,g)),w=Math.min(h.height,Math.max(d.height,w));var b=document.createElement("canvas"),x=b.getContext("2d");b.width=Qt(g),b.height=Qt(w),x.fillStyle=t.fillColor||"transparent",x.fillRect(0,0,g,w);var C=t.imageSmoothingEnabled,A=C===void 0?!0:C,p=t.imageSmoothingQuality;x.imageSmoothingEnabled=A,p&&(x.imageSmoothingQuality=p);var D=r.width,u=r.height,m=n,T=o,O,M,_,S,L,I;m<=-s||m>D?(m=0,O=0,_=0,L=0):m<=0?(_=-m,m=0,O=Math.min(D,s+m),L=O):m<=D&&(_=0,O=Math.min(s,D-m),L=O),O<=0||T<=-c||T>u?(T=0,M=0,S=0,I=0):T<=0?(S=-T,T=0,M=Math.min(u,c+T),I=M):T<=u&&(S=0,M=Math.min(c,u-T),I=M);var k=[m,T,O,M];if(L>0&&I>0){var $=g/s;k.push(_*$,S*$,L*$,I*$)}return x.drawImage.apply(x,[r].concat(Tr(k.map(function(V){return Math.floor(Qt(V))})))),b},setAspectRatio:function(t){var i=this.options;return!this.disabled&&!ri(t)&&(i.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var i=this.options,r=this.dragBox,a=this.face;if(this.ready&&!this.disabled){var n=t===Ti,o=i.movable&&t===Sr;t=n||o?t:Rr,i.dragMode=t,xe(r,be,t),Kt(r,pi,n),Kt(r,hi,o),i.cropBoxMovable||(xe(a,be,t),Kt(a,pi,n),Kt(a,hi,o))}return this}},wa=Ct.Cropper,Hr=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Rn(this,e),!t||!Xn.test(t.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=z({},tr,Gt(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 Ln(e,[{key:"init",value:function(){var i=this.element,r=i.tagName.toLowerCase(),a;if(!i[H]){if(i[H]=this,r==="img"){if(this.isImg=!0,a=i.getAttribute("src")||"",this.originalUrl=a,!a)return;a=i.src}else r==="canvas"&&window.HTMLCanvasElement&&(a=i.toDataURL());this.load(a)}}},{key:"load",value:function(i){var r=this;if(i){this.url=i,this.imageData={};var a=this.element,n=this.options;if(!n.rotatable&&!n.scalable&&(n.checkOrientation=!1),!n.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Yn.test(i)){jn.test(i)?this.read(ca(i)):this.clone();return}var o=new XMLHttpRequest,s=this.clone.bind(this);this.reloading=!0,this.xhr=o,o.onabort=s,o.onerror=s,o.ontimeout=s,o.onprogress=function(){o.getResponseHeader("content-type")!==Ji&&o.abort()},o.onload=function(){r.read(o.response)},o.onloadend=function(){r.reloading=!1,r.xhr=null},n.checkCrossOrigin&&ir(i)&&a.crossOrigin&&(i=rr(i)),o.open("GET",i,!0),o.responseType="arraybuffer",o.withCredentials=a.crossOrigin==="use-credentials",o.send()}}},{key:"read",value:function(i){var r=this.options,a=this.imageData,n=ua(i),o=0,s=1,c=1;if(n>1){this.url=la(i,Ji);var f=fa(n);o=f.rotate,s=f.scaleX,c=f.scaleY}r.rotatable&&(a.rotate=o),r.scalable&&(a.scaleX=s,a.scaleY=c),this.clone()}},{key:"clone",value:function(){var i=this.element,r=this.url,a=i.crossOrigin,n=r;this.options.checkCrossOrigin&&ir(r)&&(a||(a="anonymous"),n=rr(r)),this.crossOrigin=a,this.crossOriginUrl=n;var o=document.createElement("img");a&&(o.crossOrigin=a),o.src=n||r,o.alt=i.alt||"The image to crop",this.image=o,o.onload=this.start.bind(this),o.onerror=this.stop.bind(this),F(o,Xi),i.parentNode.insertBefore(o,i.nextSibling)}},{key:"start",value:function(){var i=this,r=this.image;r.onload=null,r.onerror=null,this.sizing=!0;var a=Ct.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Ct.navigator.userAgent),n=function(f,l){z(i.imageData,{naturalWidth:f,naturalHeight:l,aspectRatio:f/l}),i.initialImageData=z({},i.imageData),i.sizing=!1,i.sized=!0,i.build()};if(r.naturalWidth&&!a){n(r.naturalWidth,r.naturalHeight);return}var o=document.createElement("img"),s=document.body||document.documentElement;this.sizingImage=o,o.onload=function(){n(o.width,o.height),a||s.removeChild(o)},o.src=r.src,a||(o.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;",s.appendChild(o))}},{key:"stop",value:function(){var i=this.image;i.onload=null,i.onerror=null,i.parentNode.removeChild(i),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var i=this.element,r=this.options,a=this.image,n=i.parentNode,o=document.createElement("div");o.innerHTML=Un;var s=o.querySelector(".".concat(H,"-container")),c=s.querySelector(".".concat(H,"-canvas")),f=s.querySelector(".".concat(H,"-drag-box")),l=s.querySelector(".".concat(H,"-crop-box")),h=l.querySelector(".".concat(H,"-face"));this.container=n,this.cropper=s,this.canvas=c,this.dragBox=f,this.cropBox=l,this.viewBox=s.querySelector(".".concat(H,"-view-box")),this.face=h,c.appendChild(a),F(i,tt),n.insertBefore(s,i.nextSibling),yt(a,Xi),this.initPreview(),this.bind(),r.initialAspectRatio=Math.max(0,r.initialAspectRatio)||NaN,r.aspectRatio=Math.max(0,r.aspectRatio)||NaN,r.viewMode=Math.max(0,Math.min(3,Math.round(r.viewMode)))||0,F(l,tt),r.guides||F(l.getElementsByClassName("".concat(H,"-dashed")),tt),r.center||F(l.getElementsByClassName("".concat(H,"-center")),tt),r.background&&F(s,"".concat(H,"-bg")),r.highlight||F(h,$n),r.cropBoxMovable&&(F(h,hi),xe(h,be,Ei)),r.cropBoxResizable||(F(l.getElementsByClassName("".concat(H,"-line")),tt),F(l.getElementsByClassName("".concat(H,"-point")),tt)),this.render(),this.ready=!0,this.setDragMode(r.dragMode),r.autoCrop&&this.crop(),this.setData(r.data),J(r.ready)&&ct(i,Ki,r.ready,{once:!0}),Zt(i,Ki)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var i=this.cropper.parentNode;i&&i.removeChild(this.cropper),yt(this.element,tt)}}},{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=wa,e}},{key:"setDefaults",value:function(i){z(tr,Gt(i)&&i)}}]),e}();z(Hr.prototype,pa,ha,da,va,ga,ma);/*!
|
||
* vue-tippy v6.2.0
|
||
* (c) 2023
|
||
* @license MIT
|
||
*/var et="top",ut="bottom",ft="right",it="left",Ai="auto",Ee=[et,ut,ft,it],te="start",Ce="end",ya="clippingParents",zr="viewport",ge="popper",ba="reference",nr=Ee.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+Ce])},[]),Vr=[].concat(Ee,[Ai]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+Ce])},[]),xa="beforeRead",Ca="read",Oa="afterRead",Da="beforeMain",Ea="main",Ta="afterMain",Ma="beforeWrite",Aa="write",_a="afterWrite",Sa=[xa,Ca,Oa,Da,Ea,Ta,Ma,Aa,_a];function Ot(e){return e?(e.nodeName||"").toLowerCase():null}function vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ee(e){var t=vt(e).Element;return e instanceof t||e instanceof Element}function lt(e){var t=vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Wr(e){if(typeof ShadowRoot>"u")return!1;var t=vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ra(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var r=t.styles[i]||{},a=t.attributes[i]||{},n=t.elements[i];!lt(n)||!Ot(n)||(Object.assign(n.style,r),Object.keys(a).forEach(function(o){var s=a[o];s===!1?n.removeAttribute(o):n.setAttribute(o,s===!0?"":s)}))})}function La(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],n=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:i[r]),s=o.reduce(function(c,f){return c[f]="",c},{});!lt(a)||!Ot(a)||(Object.assign(a.style,s),Object.keys(n).forEach(function(c){a.removeAttribute(c)}))})}}var Yr={name:"applyStyles",enabled:!0,phase:"write",fn:Ra,effect:La,requires:["computeStyles"]};function bt(e){return e.split("-")[0]}var Ht=Math.max,Ge=Math.min,ie=Math.round;function re(e,t){t===void 0&&(t=!1);var i=e.getBoundingClientRect(),r=1,a=1;if(lt(e)&&t){var n=e.offsetHeight,o=e.offsetWidth;o>0&&(r=ie(i.width)/o||1),n>0&&(a=ie(i.height)/n||1)}return{width:i.width/r,height:i.height/a,top:i.top/a,right:i.right/r,bottom:i.bottom/a,left:i.left/r,x:i.left/r,y:i.top/a}}function _i(e){var t=re(e),i=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:r}}function jr(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Wr(i)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Dt(e){return vt(e).getComputedStyle(e)}function Na(e){return["table","td","th"].indexOf(Ot(e))>=0}function Nt(e){return((ee(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ze(e){return Ot(e)==="html"?e:e.assignedSlot||e.parentNode||(Wr(e)?e.host:null)||Nt(e)}function ar(e){return!lt(e)||Dt(e).position==="fixed"?null:e.offsetParent}function Ba(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,i=navigator.userAgent.indexOf("Trident")!==-1;if(i&<(e)){var r=Dt(e);if(r.position==="fixed")return null}for(var a=Ze(e);lt(a)&&["html","body"].indexOf(Ot(a))<0;){var n=Dt(a);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||t&&n.willChange==="filter"||t&&n.filter&&n.filter!=="none")return a;a=a.parentNode}return null}function Te(e){for(var t=vt(e),i=ar(e);i&&Na(i)&&Dt(i).position==="static";)i=ar(i);return i&&(Ot(i)==="html"||Ot(i)==="body"&&Dt(i).position==="static")?t:i||Ba(e)||t}function Si(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function we(e,t,i){return Ht(e,Ge(t,i))}function Pa(e,t,i){var r=we(e,t,i);return r>i?i:r}function Xr(){return{top:0,right:0,bottom:0,left:0}}function Ur(e){return Object.assign({},Xr(),e)}function Fr(e,t){return t.reduce(function(i,r){return i[r]=e,i},{})}var Ia=function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,Ur(typeof t!="number"?t:Fr(t,Ee))};function ka(e){var t,i=e.state,r=e.name,a=e.options,n=i.elements.arrow,o=i.modifiersData.popperOffsets,s=bt(i.placement),c=Si(s),f=[it,ft].indexOf(s)>=0,l=f?"height":"width";if(!(!n||!o)){var h=Ia(a.padding,i),d=_i(n),y=c==="y"?et:it,g=c==="y"?ut:ft,w=i.rects.reference[l]+i.rects.reference[c]-o[c]-i.rects.popper[l],b=o[c]-i.rects.reference[c],x=Te(n),C=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,A=w/2-b/2,p=h[y],D=C-d[l]-h[g],u=C/2-d[l]/2+A,m=we(p,u,D),T=c;i.modifiersData[r]=(t={},t[T]=m,t.centerOffset=m-u,t)}}function $a(e){var t=e.state,i=e.options,r=i.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||jr(t.elements.popper,a)&&(t.elements.arrow=a))}var Ha={name:"arrow",enabled:!0,phase:"main",fn:ka,effect:$a,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var za={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Va(e){var t=e.x,i=e.y,r=window,a=r.devicePixelRatio||1;return{x:ie(t*a)/a||0,y:ie(i*a)/a||0}}function or(e){var t,i=e.popper,r=e.popperRect,a=e.placement,n=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,h=e.isFixed,d=l===!0?Va(o):typeof l=="function"?l(o):o,y=d.x,g=y===void 0?0:y,w=d.y,b=w===void 0?0:w,x=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),A=it,p=et,D=window;if(f){var u=Te(i),m="clientHeight",T="clientWidth";if(u===vt(i)&&(u=Nt(i),Dt(u).position!=="static"&&s==="absolute"&&(m="scrollHeight",T="scrollWidth")),u=u,a===et||(a===it||a===ft)&&n===Ce){p=ut;var O=h&&D.visualViewport?D.visualViewport.height:u[m];b-=O-r.height,b*=c?1:-1}if(a===it||(a===et||a===ut)&&n===Ce){A=ft;var M=h&&D.visualViewport?D.visualViewport.width:u[T];g-=M-r.width,g*=c?1:-1}}var _=Object.assign({position:s},f&&za);if(c){var S;return Object.assign({},_,(S={},S[p]=C?"0":"",S[A]=x?"0":"",S.transform=(D.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",S))}return Object.assign({},_,(t={},t[p]=C?b+"px":"",t[A]=x?g+"px":"",t.transform="",t))}function Wa(e){var t=e.state,i=e.options,r=i.gpuAcceleration,a=r===void 0?!0:r,n=i.adaptive,o=n===void 0?!0:n,s=i.roundOffsets,c=s===void 0?!0:s,f={placement:bt(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,or(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,or(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ya={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wa,data:{}},Ye={passive:!0};function ja(e){var t=e.state,i=e.instance,r=e.options,a=r.scroll,n=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,c=vt(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&f.forEach(function(l){l.addEventListener("scroll",i.update,Ye)}),s&&c.addEventListener("resize",i.update,Ye),function(){n&&f.forEach(function(l){l.removeEventListener("scroll",i.update,Ye)}),s&&c.removeEventListener("resize",i.update,Ye)}}var Xa={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ja,data:{}},Ua={left:"right",right:"left",bottom:"top",top:"bottom"};function Fe(e){return e.replace(/left|right|bottom|top/g,function(t){return Ua[t]})}var Fa={start:"end",end:"start"};function sr(e){return e.replace(/start|end/g,function(t){return Fa[t]})}function Ri(e){var t=vt(e),i=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:i,scrollTop:r}}function Li(e){return re(Nt(e)).left+Ri(e).scrollLeft}function qa(e){var t=vt(e),i=Nt(e),r=t.visualViewport,a=i.clientWidth,n=i.clientHeight,o=0,s=0;return r&&(a=r.width,n=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:a,height:n,x:o+Li(e),y:s}}function Ga(e){var t,i=Nt(e),r=Ri(e),a=(t=e.ownerDocument)==null?void 0:t.body,n=Ht(i.scrollWidth,i.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Ht(i.scrollHeight,i.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+Li(e),c=-r.scrollTop;return Dt(a||i).direction==="rtl"&&(s+=Ht(i.clientWidth,a?a.clientWidth:0)-n),{width:n,height:o,x:s,y:c}}function Ni(e){var t=Dt(e),i=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+a+r)}function qr(e){return["html","body","#document"].indexOf(Ot(e))>=0?e.ownerDocument.body:lt(e)&&Ni(e)?e:qr(Ze(e))}function ye(e,t){var i;t===void 0&&(t=[]);var r=qr(e),a=r===((i=e.ownerDocument)==null?void 0:i.body),n=vt(r),o=a?[n].concat(n.visualViewport||[],Ni(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(ye(Ze(o)))}function bi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ka(e){var t=re(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function cr(e,t){return t===zr?bi(qa(e)):ee(t)?Ka(t):bi(Ga(Nt(e)))}function Qa(e){var t=ye(Ze(e)),i=["absolute","fixed"].indexOf(Dt(e).position)>=0,r=i&<(e)?Te(e):e;return ee(r)?t.filter(function(a){return ee(a)&&jr(a,r)&&Ot(a)!=="body"&&(i?Dt(a).position!=="static":!0)}):[]}function Za(e,t,i){var r=t==="clippingParents"?Qa(e):[].concat(t),a=[].concat(r,[i]),n=a[0],o=a.reduce(function(s,c){var f=cr(e,c);return s.top=Ht(f.top,s.top),s.right=Ge(f.right,s.right),s.bottom=Ge(f.bottom,s.bottom),s.left=Ht(f.left,s.left),s},cr(e,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Gr(e){var t=e.reference,i=e.element,r=e.placement,a=r?bt(r):null,n=r?ne(r):null,o=t.x+t.width/2-i.width/2,s=t.y+t.height/2-i.height/2,c;switch(a){case et:c={x:o,y:t.y-i.height};break;case ut:c={x:o,y:t.y+t.height};break;case ft:c={x:t.x+t.width,y:s};break;case it:c={x:t.x-i.width,y:s};break;default:c={x:t.x,y:t.y}}var f=a?Si(a):null;if(f!=null){var l=f==="y"?"height":"width";switch(n){case te:c[f]=c[f]-(t[l]/2-i[l]/2);break;case Ce:c[f]=c[f]+(t[l]/2-i[l]/2);break}}return c}function Oe(e,t){t===void 0&&(t={});var i=t,r=i.placement,a=r===void 0?e.placement:r,n=i.boundary,o=n===void 0?ya:n,s=i.rootBoundary,c=s===void 0?zr:s,f=i.elementContext,l=f===void 0?ge:f,h=i.altBoundary,d=h===void 0?!1:h,y=i.padding,g=y===void 0?0:y,w=Ur(typeof g!="number"?g:Fr(g,Ee)),b=l===ge?ba:ge,x=e.rects.popper,C=e.elements[d?b:l],A=Za(ee(C)?C:C.contextElement||Nt(e.elements.popper),o,c),p=re(e.elements.reference),D=Gr({reference:p,element:x,strategy:"absolute",placement:a}),u=bi(Object.assign({},x,D)),m=l===ge?u:p,T={top:A.top-m.top+w.top,bottom:m.bottom-A.bottom+w.bottom,left:A.left-m.left+w.left,right:m.right-A.right+w.right},O=e.modifiersData.offset;if(l===ge&&O){var M=O[a];Object.keys(T).forEach(function(_){var S=[ft,ut].indexOf(_)>=0?1:-1,L=[et,ut].indexOf(_)>=0?"y":"x";T[_]+=M[L]*S})}return T}function Ja(e,t){t===void 0&&(t={});var i=t,r=i.placement,a=i.boundary,n=i.rootBoundary,o=i.padding,s=i.flipVariations,c=i.allowedAutoPlacements,f=c===void 0?Vr:c,l=ne(r),h=l?s?nr:nr.filter(function(g){return ne(g)===l}):Ee,d=h.filter(function(g){return f.indexOf(g)>=0});d.length===0&&(d=h);var y=d.reduce(function(g,w){return g[w]=Oe(e,{placement:w,boundary:a,rootBoundary:n,padding:o})[bt(w)],g},{});return Object.keys(y).sort(function(g,w){return y[g]-y[w]})}function to(e){if(bt(e)===Ai)return[];var t=Fe(e);return[sr(e),t,sr(t)]}function eo(e){var t=e.state,i=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=i.mainAxis,n=a===void 0?!0:a,o=i.altAxis,s=o===void 0?!0:o,c=i.fallbackPlacements,f=i.padding,l=i.boundary,h=i.rootBoundary,d=i.altBoundary,y=i.flipVariations,g=y===void 0?!0:y,w=i.allowedAutoPlacements,b=t.options.placement,x=bt(b),C=x===b,A=c||(C||!g?[Fe(b)]:to(b)),p=[b].concat(A).reduce(function(pt,at){return pt.concat(bt(at)===Ai?Ja(t,{placement:at,boundary:l,rootBoundary:h,padding:f,flipVariations:g,allowedAutoPlacements:w}):at)},[]),D=t.rects.reference,u=t.rects.popper,m=new Map,T=!0,O=p[0],M=0;M<p.length;M++){var _=p[M],S=bt(_),L=ne(_)===te,I=[et,ut].indexOf(S)>=0,k=I?"width":"height",$=Oe(t,{placement:_,boundary:l,rootBoundary:h,altBoundary:d,padding:f}),V=I?L?ft:it:L?ut:et;D[k]>u[k]&&(V=Fe(V));var W=Fe(V),Z=[];if(n&&Z.push($[S]<=0),s&&Z.push($[V]<=0,$[W]<=0),Z.every(function(pt){return pt})){O=_,T=!1;break}m.set(_,Z)}if(T)for(var rt=g?3:1,gt=function(at){var Et=p.find(function(Vt){var Tt=m.get(Vt);if(Tt)return Tt.slice(0,at).every(function(Wt){return Wt})});if(Et)return O=Et,"break"},nt=rt;nt>0;nt--){var mt=gt(nt);if(mt==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}var io={name:"flip",enabled:!0,phase:"main",fn:eo,requiresIfExists:["offset"],data:{_skip:!1}};function lr(e,t,i){return i===void 0&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ur(e){return[et,ft,ut,it].some(function(t){return e[t]>=0})}function ro(e){var t=e.state,i=e.name,r=t.rects.reference,a=t.rects.popper,n=t.modifiersData.preventOverflow,o=Oe(t,{elementContext:"reference"}),s=Oe(t,{altBoundary:!0}),c=lr(o,r),f=lr(s,a,n),l=ur(c),h=ur(f);t.modifiersData[i]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":h})}var no={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ro};function ao(e,t,i){var r=bt(e),a=[it,et].indexOf(r)>=0?-1:1,n=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,o=n[0],s=n[1];return o=o||0,s=(s||0)*a,[it,ft].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function oo(e){var t=e.state,i=e.options,r=e.name,a=i.offset,n=a===void 0?[0,0]:a,o=Vr.reduce(function(l,h){return l[h]=ao(h,t.rects,n),l},{}),s=o[t.placement],c=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=o}var so={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oo};function co(e){var t=e.state,i=e.name;t.modifiersData[i]=Gr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var lo={name:"popperOffsets",enabled:!0,phase:"read",fn:co,data:{}};function uo(e){return e==="x"?"y":"x"}function fo(e){var t=e.state,i=e.options,r=e.name,a=i.mainAxis,n=a===void 0?!0:a,o=i.altAxis,s=o===void 0?!1:o,c=i.boundary,f=i.rootBoundary,l=i.altBoundary,h=i.padding,d=i.tether,y=d===void 0?!0:d,g=i.tetherOffset,w=g===void 0?0:g,b=Oe(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:l}),x=bt(t.placement),C=ne(t.placement),A=!C,p=Si(x),D=uo(p),u=t.modifiersData.popperOffsets,m=t.rects.reference,T=t.rects.popper,O=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,M=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(u){if(n){var L,I=p==="y"?et:it,k=p==="y"?ut:ft,$=p==="y"?"height":"width",V=u[p],W=V+b[I],Z=V-b[k],rt=y?-T[$]/2:0,gt=C===te?m[$]:T[$],nt=C===te?-T[$]:-m[$],mt=t.elements.arrow,pt=y&&mt?_i(mt):{width:0,height:0},at=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xr(),Et=at[I],Vt=at[k],Tt=we(0,m[$],pt[$]),Wt=A?m[$]/2-rt-Tt-Et-M.mainAxis:gt-Tt-Et-M.mainAxis,At=A?-m[$]/2+rt+Tt+Vt+M.mainAxis:nt+Tt+Vt+M.mainAxis,Yt=t.elements.arrow&&Te(t.elements.arrow),Me=Yt?p==="y"?Yt.clientTop||0:Yt.clientLeft||0:0,oe=(L=_==null?void 0:_[p])!=null?L:0,Ae=V+Wt-oe-Me,_e=V+At-oe,se=we(y?Ge(W,Ae):W,V,y?Ht(Z,_e):Z);u[p]=se,S[p]=se-V}if(s){var ce,Se=p==="x"?et:it,Re=p==="x"?ut:ft,Mt=u[D],_t=D==="y"?"height":"width",le=Mt+b[Se],Bt=Mt-b[Re],ue=[et,it].indexOf(x)!==-1,Le=(ce=_==null?void 0:_[D])!=null?ce:0,Ne=ue?le:Mt-m[_t]-T[_t]-Le+M.altAxis,Be=ue?Mt+m[_t]+T[_t]-Le-M.altAxis:Bt,Pe=y&&ue?Pa(Ne,Mt,Be):we(y?Ne:le,Mt,y?Be:Bt);u[D]=Pe,S[D]=Pe-Mt}t.modifiersData[r]=S}}var po={name:"preventOverflow",enabled:!0,phase:"main",fn:fo,requiresIfExists:["offset"]};function ho(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vo(e){return e===vt(e)||!lt(e)?Ri(e):ho(e)}function go(e){var t=e.getBoundingClientRect(),i=ie(t.width)/e.offsetWidth||1,r=ie(t.height)/e.offsetHeight||1;return i!==1||r!==1}function mo(e,t,i){i===void 0&&(i=!1);var r=lt(t),a=lt(t)&&go(t),n=Nt(t),o=re(e,a),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!i)&&((Ot(t)!=="body"||Ni(n))&&(s=vo(t)),lt(t)?(c=re(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):n&&(c.x=Li(n))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function wo(e){var t=new Map,i=new Set,r=[];e.forEach(function(n){t.set(n.name,n)});function a(n){i.add(n.name);var o=[].concat(n.requires||[],n.requiresIfExists||[]);o.forEach(function(s){if(!i.has(s)){var c=t.get(s);c&&a(c)}}),r.push(n)}return e.forEach(function(n){i.has(n.name)||a(n)}),r}function yo(e){var t=wo(e);return Sa.reduce(function(i,r){return i.concat(t.filter(function(a){return a.phase===r}))},[])}function bo(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function xo(e){var t=e.reduce(function(i,r){var a=i[r.name];return i[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,i},{});return Object.keys(t).map(function(i){return t[i]})}var fr={placement:"bottom",modifiers:[],strategy:"absolute"};function pr(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Co(e){e===void 0&&(e={});var t=e,i=t.defaultModifiers,r=i===void 0?[]:i,a=t.defaultOptions,n=a===void 0?fr:a;return function(s,c,f){f===void 0&&(f=n);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},fr,n),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},h=[],d=!1,y={state:l,setOptions:function(x){var C=typeof x=="function"?x(l.options):x;w(),l.options=Object.assign({},n,l.options,C),l.scrollParents={reference:ee(s)?ye(s):s.contextElement?ye(s.contextElement):[],popper:ye(c)};var A=yo(xo([].concat(r,l.options.modifiers)));return l.orderedModifiers=A.filter(function(p){return p.enabled}),g(),y.update()},forceUpdate:function(){if(!d){var x=l.elements,C=x.reference,A=x.popper;if(pr(C,A)){l.rects={reference:mo(C,Te(A),l.options.strategy==="fixed"),popper:_i(A)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(M){return l.modifiersData[M.name]=Object.assign({},M.data)});for(var p=0;p<l.orderedModifiers.length;p++){if(l.reset===!0){l.reset=!1,p=-1;continue}var D=l.orderedModifiers[p],u=D.fn,m=D.options,T=m===void 0?{}:m,O=D.name;typeof u=="function"&&(l=u({state:l,options:T,name:O,instance:y})||l)}}}},update:bo(function(){return new Promise(function(b){y.forceUpdate(),b(l)})}),destroy:function(){w(),d=!0}};if(!pr(s,c))return y;y.setOptions(f).then(function(b){!d&&f.onFirstUpdate&&f.onFirstUpdate(b)});function g(){l.orderedModifiers.forEach(function(b){var x=b.name,C=b.options,A=C===void 0?{}:C,p=b.effect;if(typeof p=="function"){var D=p({state:l,name:x,instance:y,options:A}),u=function(){};h.push(D||u)}})}function w(){h.forEach(function(b){return b()}),h=[]}return y}}var Oo=[Xa,lo,Ya,Yr,so,io,po,Ha,no],Do=Co({defaultModifiers:Oo}),Eo="tippy-box",Kr="tippy-content",Qr="tippy-backdrop",Zr="tippy-arrow",Jr="tippy-svg-arrow",$t={passive:!0,capture:!0},tn=function(){return document.body};function ai(e,t,i){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(i)?i[t]:i)}return e}function Bi(e,t){var i={}.toString.call(e);return i.indexOf("[object")===0&&i.indexOf(t+"]")>-1}function en(e,t){return typeof e=="function"?e.apply(void 0,t):e}function hr(e,t){if(t===0)return e;var i;return function(r){clearTimeout(i),i=setTimeout(function(){e(r)},t)}}function To(e){return e.split(/\s+/).filter(Boolean)}function qt(e){return[].concat(e)}function dr(e,t){e.indexOf(t)===-1&&e.push(t)}function Mo(e){return e.filter(function(t,i){return e.indexOf(t)===i})}function rn(e){return e.split("-")[0]}function ae(e){return[].slice.call(e)}function vr(e){return Object.keys(e).reduce(function(t,i){return e[i]!==void 0&&(t[i]=e[i]),t},{})}function Jt(){return document.createElement("div")}function Je(e){return["Element","Fragment"].some(function(t){return Bi(e,t)})}function Ao(e){return Bi(e,"NodeList")}function Pi(e){return Bi(e,"MouseEvent")}function _o(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function So(e){return Je(e)?[e]:Ao(e)?ae(e):Array.isArray(e)?e:ae(document.querySelectorAll(e))}function oi(e,t){e.forEach(function(i){i&&(i.style.transitionDuration=t+"ms")})}function De(e,t){e.forEach(function(i){i&&i.setAttribute("data-state",t)})}function nn(e){var t,i=qt(e),r=i[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Ro(e,t){var i=t.clientX,r=t.clientY;return e.every(function(a){var n=a.popperRect,o=a.popperState,s=a.props,c=s.interactiveBorder,f=rn(o.placement),l=o.modifiersData.offset;if(!l)return!0;var h=f==="bottom"?l.top.y:0,d=f==="top"?l.bottom.y:0,y=f==="right"?l.left.x:0,g=f==="left"?l.right.x:0,w=n.top-r+h>c,b=r-n.bottom-d>c,x=n.left-i+y>c,C=i-n.right-g>c;return w||b||x||C})}function si(e,t,i){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,i)})}function gr(e,t){for(var i=t;i;){var r;if(e.contains(i))return!0;i=i.getRootNode==null||(r=i.getRootNode())==null?void 0:r.host}return!1}var wt={isTouch:!1},mr=0;function Lo(){wt.isTouch||(wt.isTouch=!0,window.performance&&document.addEventListener("mousemove",an))}function an(){var e=performance.now();e-mr<20&&(wt.isTouch=!1,document.removeEventListener("mousemove",an)),mr=e}function No(){var e=document.activeElement;if(_o(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Bo(){document.addEventListener("touchstart",Lo,$t),window.addEventListener("blur",No)}var Po=typeof window<"u"&&typeof document<"u",Io=Po?!!window.msCrypto:!1,ko={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},$o={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},dt=Object.assign({appendTo:tn,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ko,$o),Ho=Object.keys(dt),zo=function(t){var i=Object.keys(t);i.forEach(function(r){dt[r]=t[r]})};function on(e){var t=e.plugins||[],i=t.reduce(function(r,a){var n=a.name,o=a.defaultValue;if(n){var s;r[n]=e[n]!==void 0?e[n]:(s=dt[n])!=null?s:o}return r},{});return Object.assign({},e,i)}function Vo(e,t){var i=t?Object.keys(on(Object.assign({},dt,{plugins:t}))):Ho,r=i.reduce(function(a,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return a;if(n==="content")a[n]=o;else try{a[n]=JSON.parse(o)}catch{a[n]=o}return a},{});return r}function wr(e,t){var i=Object.assign({},t,{content:en(t.content,[e])},t.ignoreAttributes?{}:Vo(e,t.plugins));return i.aria=Object.assign({},dt.aria,i.aria),i.aria={expanded:i.aria.expanded==="auto"?t.interactive:i.aria.expanded,content:i.aria.content==="auto"?t.interactive?null:"describedby":i.aria.content},i}var Wo=function(){return"innerHTML"};function xi(e,t){e[Wo()]=t}function yr(e){var t=Jt();return e===!0?t.className=Zr:(t.className=Jr,Je(e)?t.appendChild(e):xi(t,e)),t}function br(e,t){Je(t.content)?(xi(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?xi(e,t.content):e.textContent=t.content)}function Ke(e){var t=e.firstElementChild,i=ae(t.children);return{box:t,content:i.find(function(r){return r.classList.contains(Kr)}),arrow:i.find(function(r){return r.classList.contains(Zr)||r.classList.contains(Jr)}),backdrop:i.find(function(r){return r.classList.contains(Qr)})}}function sn(e){var t=Jt(),i=Jt();i.className=Eo,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var r=Jt();r.className=Kr,r.setAttribute("data-state","hidden"),br(r,e.props),t.appendChild(i),i.appendChild(r),a(e.props,e.props);function a(n,o){var s=Ke(t),c=s.box,f=s.content,l=s.arrow;o.theme?c.setAttribute("data-theme",o.theme):c.removeAttribute("data-theme"),typeof o.animation=="string"?c.setAttribute("data-animation",o.animation):c.removeAttribute("data-animation"),o.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?c.setAttribute("role",o.role):c.removeAttribute("role"),(n.content!==o.content||n.allowHTML!==o.allowHTML)&&br(f,e.props),o.arrow?l?n.arrow!==o.arrow&&(c.removeChild(l),c.appendChild(yr(o.arrow))):c.appendChild(yr(o.arrow)):l&&c.removeChild(l)}return{popper:t,onUpdate:a}}sn.$$tippy=!0;var Yo=1,je=[],ci=[];function jo(e,t){var i=wr(e,Object.assign({},dt,on(vr(t)))),r,a,n,o=!1,s=!1,c=!1,f=!1,l,h,d,y=[],g=hr(Ae,i.interactiveDebounce),w,b=Yo++,x=null,C=Mo(i.plugins),A={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},p={id:b,reference:e,popper:Jt(),popperInstance:x,props:i,state:A,plugins:C,clearDelayTimeouts:Ne,setProps:Be,setContent:Pe,show:un,hide:fn,hideWithInteractivity:pn,enable:ue,disable:Le,unmount:hn,destroy:dn};if(!i.render)return p;var D=i.render(p),u=D.popper,m=D.onUpdate;u.setAttribute("data-tippy-root",""),u.id="tippy-"+p.id,p.popper=u,e._tippy=p,u._tippy=p;var T=C.map(function(v){return v.fn(p)}),O=e.hasAttribute("aria-expanded");return Yt(),rt(),V(),W("onCreate",[p]),i.showOnCreate&&le(),u.addEventListener("mouseenter",function(){p.props.interactive&&p.state.isVisible&&p.clearDelayTimeouts()}),u.addEventListener("mouseleave",function(){p.props.interactive&&p.props.trigger.indexOf("mouseenter")>=0&&I().addEventListener("mousemove",g)}),p;function M(){var v=p.props.touch;return Array.isArray(v)?v:[v,0]}function _(){return M()[0]==="hold"}function S(){var v;return!!((v=p.props.render)!=null&&v.$$tippy)}function L(){return w||e}function I(){var v=L().parentNode;return v?nn(v):document}function k(){return Ke(u)}function $(v){return p.state.isMounted&&!p.state.isVisible||wt.isTouch||l&&l.type==="focus"?0:ai(p.props.delay,v?0:1,dt.delay)}function V(v){v===void 0&&(v=!1),u.style.pointerEvents=p.props.interactive&&!v?"":"none",u.style.zIndex=""+p.props.zIndex}function W(v,E,R){if(R===void 0&&(R=!0),T.forEach(function(B){B[v]&&B[v].apply(B,E)}),R){var P;(P=p.props)[v].apply(P,E)}}function Z(){var v=p.props.aria;if(v.content){var E="aria-"+v.content,R=u.id,P=qt(p.props.triggerTarget||e);P.forEach(function(B){var G=B.getAttribute(E);if(p.state.isVisible)B.setAttribute(E,G?G+" "+R:R);else{var st=G&&G.replace(R,"").trim();st?B.setAttribute(E,st):B.removeAttribute(E)}})}}function rt(){if(!(O||!p.props.aria.expanded)){var v=qt(p.props.triggerTarget||e);v.forEach(function(E){p.props.interactive?E.setAttribute("aria-expanded",p.state.isVisible&&E===L()?"true":"false"):E.removeAttribute("aria-expanded")})}}function gt(){I().removeEventListener("mousemove",g),je=je.filter(function(v){return v!==g})}function nt(v){if(!(wt.isTouch&&(c||v.type==="mousedown"))){var E=v.composedPath&&v.composedPath()[0]||v.target;if(!(p.props.interactive&&gr(u,E))){if(qt(p.props.triggerTarget||e).some(function(R){return gr(R,E)})){if(wt.isTouch||p.state.isVisible&&p.props.trigger.indexOf("click")>=0)return}else W("onClickOutside",[p,v]);p.props.hideOnClick===!0&&(p.clearDelayTimeouts(),p.hide(),s=!0,setTimeout(function(){s=!1}),p.state.isMounted||Et())}}}function mt(){c=!0}function pt(){c=!1}function at(){var v=I();v.addEventListener("mousedown",nt,!0),v.addEventListener("touchend",nt,$t),v.addEventListener("touchstart",pt,$t),v.addEventListener("touchmove",mt,$t)}function Et(){var v=I();v.removeEventListener("mousedown",nt,!0),v.removeEventListener("touchend",nt,$t),v.removeEventListener("touchstart",pt,$t),v.removeEventListener("touchmove",mt,$t)}function Vt(v,E){Wt(v,function(){!p.state.isVisible&&u.parentNode&&u.parentNode.contains(u)&&E()})}function Tt(v,E){Wt(v,E)}function Wt(v,E){var R=k().box;function P(B){B.target===R&&(si(R,"remove",P),E())}if(v===0)return E();si(R,"remove",h),si(R,"add",P),h=P}function At(v,E,R){R===void 0&&(R=!1);var P=qt(p.props.triggerTarget||e);P.forEach(function(B){B.addEventListener(v,E,R),y.push({node:B,eventType:v,handler:E,options:R})})}function Yt(){_()&&(At("touchstart",oe,{passive:!0}),At("touchend",_e,{passive:!0})),To(p.props.trigger).forEach(function(v){if(v!=="manual")switch(At(v,oe),v){case"mouseenter":At("mouseleave",_e);break;case"focus":At(Io?"focusout":"blur",se);break;case"focusin":At("focusout",se);break}})}function Me(){y.forEach(function(v){var E=v.node,R=v.eventType,P=v.handler,B=v.options;E.removeEventListener(R,P,B)}),y=[]}function oe(v){var E,R=!1;if(!(!p.state.isEnabled||ce(v)||s)){var P=((E=l)==null?void 0:E.type)==="focus";l=v,w=v.currentTarget,rt(),!p.state.isVisible&&Pi(v)&&je.forEach(function(B){return B(v)}),v.type==="click"&&(p.props.trigger.indexOf("mouseenter")<0||o)&&p.props.hideOnClick!==!1&&p.state.isVisible?R=!0:le(v),v.type==="click"&&(o=!R),R&&!P&&Bt(v)}}function Ae(v){var E=v.target,R=L().contains(E)||u.contains(E);if(!(v.type==="mousemove"&&R)){var P=_t().concat(u).map(function(B){var G,st=B._tippy,jt=(G=st.popperInstance)==null?void 0:G.state;return jt?{popperRect:B.getBoundingClientRect(),popperState:jt,props:i}:null}).filter(Boolean);Ro(P,v)&&(gt(),Bt(v))}}function _e(v){var E=ce(v)||p.props.trigger.indexOf("click")>=0&&o;if(!E){if(p.props.interactive){p.hideWithInteractivity(v);return}Bt(v)}}function se(v){p.props.trigger.indexOf("focusin")<0&&v.target!==L()||p.props.interactive&&v.relatedTarget&&u.contains(v.relatedTarget)||Bt(v)}function ce(v){return wt.isTouch?_()!==v.type.indexOf("touch")>=0:!1}function Se(){Re();var v=p.props,E=v.popperOptions,R=v.placement,P=v.offset,B=v.getReferenceClientRect,G=v.moveTransition,st=S()?Ke(u).arrow:null,jt=B?{getBoundingClientRect:B,contextElement:B.contextElement||L()}:e,Ii={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ie){var Xt=Ie.state;if(S()){var vn=k(),ei=vn.box;["placement","reference-hidden","escaped"].forEach(function(ke){ke==="placement"?ei.setAttribute("data-placement",Xt.placement):Xt.attributes.popper["data-popper-"+ke]?ei.setAttribute("data-"+ke,""):ei.removeAttribute("data-"+ke)}),Xt.attributes.popper={}}}},Pt=[{name:"offset",options:{offset:P}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!G}},Ii];S()&&st&&Pt.push({name:"arrow",options:{element:st,padding:3}}),Pt.push.apply(Pt,(E==null?void 0:E.modifiers)||[]),p.popperInstance=Do(jt,u,Object.assign({},E,{placement:R,onFirstUpdate:d,modifiers:Pt}))}function Re(){p.popperInstance&&(p.popperInstance.destroy(),p.popperInstance=null)}function Mt(){var v=p.props.appendTo,E,R=L();p.props.interactive&&v===tn||v==="parent"?E=R.parentNode:E=en(v,[R]),E.contains(u)||E.appendChild(u),p.state.isMounted=!0,Se()}function _t(){return ae(u.querySelectorAll("[data-tippy-root]"))}function le(v){p.clearDelayTimeouts(),v&&W("onTrigger",[p,v]),at();var E=$(!0),R=M(),P=R[0],B=R[1];wt.isTouch&&P==="hold"&&B&&(E=B),E?r=setTimeout(function(){p.show()},E):p.show()}function Bt(v){if(p.clearDelayTimeouts(),W("onUntrigger",[p,v]),!p.state.isVisible){Et();return}if(!(p.props.trigger.indexOf("mouseenter")>=0&&p.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(v.type)>=0&&o)){var E=$(!1);E?a=setTimeout(function(){p.state.isVisible&&p.hide()},E):n=requestAnimationFrame(function(){p.hide()})}}function ue(){p.state.isEnabled=!0}function Le(){p.hide(),p.state.isEnabled=!1}function Ne(){clearTimeout(r),clearTimeout(a),cancelAnimationFrame(n)}function Be(v){if(!p.state.isDestroyed){W("onBeforeUpdate",[p,v]),Me();var E=p.props,R=wr(e,Object.assign({},E,vr(v),{ignoreAttributes:!0}));p.props=R,Yt(),E.interactiveDebounce!==R.interactiveDebounce&&(gt(),g=hr(Ae,R.interactiveDebounce)),E.triggerTarget&&!R.triggerTarget?qt(E.triggerTarget).forEach(function(P){P.removeAttribute("aria-expanded")}):R.triggerTarget&&e.removeAttribute("aria-expanded"),rt(),V(),m&&m(E,R),p.popperInstance&&(Se(),_t().forEach(function(P){requestAnimationFrame(P._tippy.popperInstance.forceUpdate)})),W("onAfterUpdate",[p,v])}}function Pe(v){p.setProps({content:v})}function un(){var v=p.state.isVisible,E=p.state.isDestroyed,R=!p.state.isEnabled,P=wt.isTouch&&!p.props.touch,B=ai(p.props.duration,0,dt.duration);if(!(v||E||R||P)&&!L().hasAttribute("disabled")&&(W("onShow",[p],!1),p.props.onShow(p)!==!1)){if(p.state.isVisible=!0,S()&&(u.style.visibility="visible"),V(),at(),p.state.isMounted||(u.style.transition="none"),S()){var G=k(),st=G.box,jt=G.content;oi([st,jt],0)}d=function(){var Pt;if(!(!p.state.isVisible||f)){if(f=!0,u.offsetHeight,u.style.transition=p.props.moveTransition,S()&&p.props.animation){var ti=k(),Ie=ti.box,Xt=ti.content;oi([Ie,Xt],B),De([Ie,Xt],"visible")}Z(),rt(),dr(ci,p),(Pt=p.popperInstance)==null||Pt.forceUpdate(),W("onMount",[p]),p.props.animation&&S()&&Tt(B,function(){p.state.isShown=!0,W("onShown",[p])})}},Mt()}}function fn(){var v=!p.state.isVisible,E=p.state.isDestroyed,R=!p.state.isEnabled,P=ai(p.props.duration,1,dt.duration);if(!(v||E||R)&&(W("onHide",[p],!1),p.props.onHide(p)!==!1)){if(p.state.isVisible=!1,p.state.isShown=!1,f=!1,o=!1,S()&&(u.style.visibility="hidden"),gt(),Et(),V(!0),S()){var B=k(),G=B.box,st=B.content;p.props.animation&&(oi([G,st],P),De([G,st],"hidden"))}Z(),rt(),p.props.animation?S()&&Vt(P,p.unmount):p.unmount()}}function pn(v){I().addEventListener("mousemove",g),dr(je,g),g(v)}function hn(){p.state.isVisible&&p.hide(),p.state.isMounted&&(Re(),_t().forEach(function(v){v._tippy.unmount()}),u.parentNode&&u.parentNode.removeChild(u),ci=ci.filter(function(v){return v!==p}),p.state.isMounted=!1,W("onHidden",[p]))}function dn(){p.state.isDestroyed||(p.clearDelayTimeouts(),p.unmount(),Me(),delete e._tippy,p.state.isDestroyed=!0,W("onDestroy",[p]))}}function xt(e,t){t===void 0&&(t={});var i=dt.plugins.concat(t.plugins||[]);Bo();var r=Object.assign({},t,{plugins:i}),a=So(e),n=a.reduce(function(o,s){var c=s&&jo(s,r);return c&&o.push(c),o},[]);return Je(e)?n[0]:n}xt.defaultProps=dt;xt.setDefaultProps=zo;xt.currentInput=wt;Object.assign({},Yr,{effect:function(t){var i=t.state,r={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(i.elements.popper.style,r.popper),i.styles=r,i.elements.arrow&&Object.assign(i.elements.arrow.style,r.arrow)}});var Xo={name:"animateFill",defaultValue:!1,fn:function(t){var i;if(!((i=t.props.render)!=null&&i.$$tippy))return{};var r=Ke(t.popper),a=r.box,n=r.content,o=t.props.animateFill?Uo():null;return{onCreate:function(){o&&(a.insertBefore(o,a.firstElementChild),a.setAttribute("data-animatefill",""),a.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var c=a.style.transitionDuration,f=Number(c.replace("ms",""));n.style.transitionDelay=Math.round(f/10)+"ms",o.style.transitionDuration=c,De([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&De([o],"hidden")}}}};function Uo(){var e=Jt();return e.className=Qr,De([e],"hidden"),e}var Ci={clientX:0,clientY:0},Xe=[];function cn(e){var t=e.clientX,i=e.clientY;Ci={clientX:t,clientY:i}}function Fo(e){e.addEventListener("mousemove",cn)}function qo(e){e.removeEventListener("mousemove",cn)}var Go={name:"followCursor",defaultValue:!1,fn:function(t){var i=t.reference,r=nn(t.props.triggerTarget||i),a=!1,n=!1,o=!0,s=t.props;function c(){return t.props.followCursor==="initial"&&t.state.isVisible}function f(){r.addEventListener("mousemove",d)}function l(){r.removeEventListener("mousemove",d)}function h(){a=!0,t.setProps({getReferenceClientRect:null}),a=!1}function d(w){var b=w.target?i.contains(w.target):!0,x=t.props.followCursor,C=w.clientX,A=w.clientY,p=i.getBoundingClientRect(),D=C-p.left,u=A-p.top;(b||!t.props.interactive)&&t.setProps({getReferenceClientRect:function(){var T=i.getBoundingClientRect(),O=C,M=A;x==="initial"&&(O=T.left+D,M=T.top+u);var _=x==="horizontal"?T.top:M,S=x==="vertical"?T.right:O,L=x==="horizontal"?T.bottom:M,I=x==="vertical"?T.left:O;return{width:S-I,height:L-_,top:_,right:S,bottom:L,left:I}}})}function y(){t.props.followCursor&&(Xe.push({instance:t,doc:r}),Fo(r))}function g(){Xe=Xe.filter(function(w){return w.instance!==t}),Xe.filter(function(w){return w.doc===r}).length===0&&qo(r)}return{onCreate:y,onDestroy:g,onBeforeUpdate:function(){s=t.props},onAfterUpdate:function(b,x){var C=x.followCursor;a||C!==void 0&&s.followCursor!==C&&(g(),C?(y(),t.state.isMounted&&!n&&!c()&&f()):(l(),h()))},onMount:function(){t.props.followCursor&&!n&&(o&&(d(Ci),o=!1),c()||f())},onTrigger:function(b,x){Pi(x)&&(Ci={clientX:x.clientX,clientY:x.clientY}),n=x.type==="focus"},onHidden:function(){t.props.followCursor&&(h(),l(),o=!0)}}}};function Ko(e,t){var i;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((((i=e.popperOptions)==null?void 0:i.modifiers)||[]).filter(function(r){var a=r.name;return a!==t.name}),[t])})}}var Qo={name:"inlinePositioning",defaultValue:!1,fn:function(t){var i=t.reference;function r(){return!!t.props.inlinePositioning}var a,n=-1,o=!1,s=[],c={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(y){var g=y.state;r()&&(s.indexOf(g.placement)!==-1&&(s=[]),a!==g.placement&&s.indexOf(g.placement)===-1&&(s.push(g.placement),t.setProps({getReferenceClientRect:function(){return f(g.placement)}})),a=g.placement)}};function f(d){return Zo(rn(d),i.getBoundingClientRect(),ae(i.getClientRects()),n)}function l(d){o=!0,t.setProps(d),o=!1}function h(){o||l(Ko(t.props,c))}return{onCreate:h,onAfterUpdate:h,onTrigger:function(y,g){if(Pi(g)){var w=ae(t.reference.getClientRects()),b=w.find(function(C){return C.left-2<=g.clientX&&C.right+2>=g.clientX&&C.top-2<=g.clientY&&C.bottom+2>=g.clientY}),x=w.indexOf(b);n=x>-1?x:n}},onHidden:function(){n=-1}}}};function Zo(e,t,i,r){if(i.length<2||e===null)return t;if(i.length===2&&r>=0&&i[0].left>i[1].right)return i[r]||t;switch(e){case"top":case"bottom":{var a=i[0],n=i[i.length-1],o=e==="top",s=a.top,c=n.bottom,f=o?a.left:n.left,l=o?a.right:n.right,h=l-f,d=c-s;return{top:s,bottom:c,left:f,right:l,width:h,height:d}}case"left":case"right":{var y=Math.min.apply(Math,i.map(function(u){return u.left})),g=Math.max.apply(Math,i.map(function(u){return u.right})),w=i.filter(function(u){return e==="left"?u.left===y:u.right===g}),b=w[0].top,x=w[w.length-1].bottom,C=y,A=g,p=A-C,D=x-b;return{top:b,bottom:x,left:C,right:A,width:p,height:D}}default:return t}}var Jo={name:"sticky",defaultValue:!1,fn:function(t){var i=t.reference,r=t.popper;function a(){return t.popperInstance?t.popperInstance.state.elements.reference:i}function n(f){return t.props.sticky===!0||t.props.sticky===f}var o=null,s=null;function c(){var f=n("reference")?a().getBoundingClientRect():null,l=n("popper")?r.getBoundingClientRect():null;(f&&xr(o,f)||l&&xr(s,l))&&t.popperInstance&&t.popperInstance.update(),o=f,s=l,t.state.isMounted&&requestAnimationFrame(c)}return{onMount:function(){t.props.sticky&&c()}}}};function xr(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}xt.setDefaultProps({render:sn});xt.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});function ln(e,t={},i={mount:!0}){const r=gn(),a=ot(),n=ot({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1});let o=null;const s=()=>o||(o=document.createDocumentFragment(),o),c=u=>{let m,T=Ut(u)?u.value:u;if(mn(T))r&&(T.appContext=r.appContext),Hi(T,s()),m=()=>s();else if(typeof T=="object"){let O=wn(T);r&&(O.appContext=r.appContext),Hi(O,s()),m=()=>s()}else m=T;return m},f=u=>{let m={};return Ut(u)?m=u.value||{}:ki(u)?m={...u}:m={...u},m.content&&(m.content=c(m.content)),m.triggerTarget&&(m.triggerTarget=Ut(m.triggerTarget)?m.triggerTarget.value:m.triggerTarget),(!m.plugins||!Array.isArray(m.plugins))&&(m.plugins=[]),m.plugins=m.plugins.filter(T=>T.name!=="vueTippyReactiveState"),m.plugins.push({name:"vueTippyReactiveState",fn:()=>({onCreate(){n.value.isEnabled=!0},onMount(){n.value.isMounted=!0},onShow(){n.value.isMounted=!0,n.value.isVisible=!0},onShown(){n.value.isShown=!0},onHide(){n.value.isMounted=!1,n.value.isVisible=!1},onHidden(){n.value.isShown=!1},onUnmounted(){n.value.isMounted=!1},onDestroy(){n.value.isDestroyed=!0}})}),m},l=()=>{a.value&&a.value.setProps(f(t))},h=()=>{!a.value||!t.content||a.value.setContent(c(t.content))},d=u=>{var m;(m=a.value)===null||m===void 0||m.setContent(c(u))},y=u=>{var m;(m=a.value)===null||m===void 0||m.setProps(f(u))},g=()=>{a.value&&(a.value.destroy(),a.value=void 0),o=null},w=()=>{var u;(u=a.value)===null||u===void 0||u.show()},b=()=>{var u;(u=a.value)===null||u===void 0||u.hide()},x=()=>{var u;(u=a.value)===null||u===void 0||u.disable(),n.value.isEnabled=!1},C=()=>{var u;(u=a.value)===null||u===void 0||u.enable(),n.value.isEnabled=!0},A=()=>{var u;(u=a.value)===null||u===void 0||u.unmount()},p=()=>{if(!e)return;let u=Ut(e)?e.value:e;typeof u=="function"&&(u=u()),u&&(a.value=xt(u,f(t)),u.$tippy=D)},D={tippy:a,refresh:l,refreshContent:h,setContent:d,setProps:y,destroy:g,hide:b,show:w,disable:x,enable:C,unmount:A,mount:p,state:n};return i.mount&&(r?(r.isMounted?p():Or(p),Dr(()=>{g()})):p()),Ut(t)||ki(t)?$i(t,l,{immediate:!1}):Ut(t.content)&&$i(t.content,h,{immediate:!1}),D}const ts=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let Cr={};Object.keys(xt.defaultProps).forEach(e=>{ts.includes(e)?Cr[e]={type:Boolean,default:function(){return xt.defaultProps[e]}}:Cr[e]={default:function(){return xt.defaultProps[e]}}});const es={mounted(e,t,i){const r=typeof t.value=="string"?{content:t.value}:t.value||{},a=Object.keys(t.modifiers||{}),n=a.find(s=>s!=="arrow"),o=a.findIndex(s=>s==="arrow")!==-1;n&&(r.placement=r.placement||n),o&&(r.arrow=r.arrow!==void 0?r.arrow:!0),i.props&&i.props.onTippyShow&&(r.onShow=function(...s){var c;return(c=i.props)===null||c===void 0?void 0:c.onTippyShow(...s)}),i.props&&i.props.onTippyShown&&(r.onShown=function(...s){var c;return(c=i.props)===null||c===void 0?void 0:c.onTippyShown(...s)}),i.props&&i.props.onTippyHidden&&(r.onHidden=function(...s){var c;return(c=i.props)===null||c===void 0?void 0:c.onTippyHidden(...s)}),i.props&&i.props.onTippyHide&&(r.onHide=function(...s){var c;return(c=i.props)===null||c===void 0?void 0:c.onTippyHide(...s)}),i.props&&i.props.onTippyMount&&(r.onMount=function(...s){var c;return(c=i.props)===null||c===void 0?void 0:c.onTippyMount(...s)}),e.getAttribute("title")&&!r.content&&(r.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!r.content&&(r.content=e.getAttribute("content")),ln(e,r)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const i=typeof t.value=="string"?{content:t.value}:t.value||{};e.getAttribute("title")&&!i.content&&(i.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!i.content&&(i.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(i||{}):e._tippy&&e._tippy.setProps(i||{})}},is=xt.setDefaultProps;is({ignoreAttributes:!0,plugins:[Jo,Qo,Go,Xo]});const rs={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},ns=X("path",{fill:"currentColor",d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"},null,-1),as=[ns];function os(e,t){return q(),Q("svg",rs,as)}const ss={render:os},cs={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},ls=X("path",{fill:"currentColor",d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"},null,-1),us=[ls];function fs(e,t){return q(),Q("svg",cs,us)}const ps={render:fs},hs={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",class:"icon",viewBox:"0 0 1024 1024"},ds=X("path",{d:"m296.992 216.992-272 272L3.008 512l21.984 23.008 272 272 46.016-46.016L126.016 544h772L680.992 760.992l46.016 46.016 272-272L1020.992 512l-21.984-23.008-272-272-46.048 46.048L898.016 480h-772l216.96-216.992z"},null,-1),vs=[ds];function gs(e,t){return q(),Q("svg",hs,vs)}const ms={render:gs},ws={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",class:"icon",viewBox:"0 0 1024 1024"},ys=X("path",{d:"m512 67.008-23.008 21.984-256 256 46.048 46.048L480 190.016v644L279.008 632.96l-46.048 46.08 256 256 23.008 21.984 23.008-21.984 256-256-46.016-46.016L544 834.016v-644l200.992 200.96 46.016-45.984-256-256z"},null,-1),bs=[ys];function xs(e,t){return q(),Q("svg",ws,bs)}const Cs={render:xs},Os={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},Ds=X("path",{fill:"currentColor",d:"M868 545.5 536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"},null,-1),Es=[Ds];function Ts(e,t){return q(),Q("svg",Os,Es)}const Ms={render:Ts},As={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",class:"icon",viewBox:"0 0 1024 1024"},_s=yn('<path d="M956.8 988.8H585.6c-16 0-25.6-9.6-25.6-28.8V576c0-16 9.6-28.8 25.6-28.8h371.2c16 0 25.6 9.6 25.6 28.8v384c0 16-9.6 28.8-25.6 28.8zM608 937.6h326.4V598.4H608v339.2zm-121.6 44.8C262.4 982.4 144 848 144 595.2c0-19.2 9.6-28.8 25.6-28.8s25.6 12.8 25.6 28.8c0 220.8 96 326.4 288 326.4 16 0 25.6 12.8 25.6 28.8s-6.4 32-22.4 32z"></path><path d="M262.4 694.4c-6.4 0-9.6-3.2-16-6.4L160 601.6c-9.6-9.6-9.6-22.4 0-28.8s22.4-9.6 28.8 0l86.4 86.4c9.6 9.6 9.6 22.4 0 28.8-3.2 3.2-6.4 6.4-12.8 6.4z"></path><path d="M86.4 694.4c-6.4 0-9.6-3.2-16-6.4-9.6-9.6-9.6-22.4 0-28.8l86.4-86.4c9.6-9.6 22.4-9.6 28.8 0 9.6 9.6 9.6 22.4 0 28.8L99.2 688c-3.2 3.2-6.4 6.4-12.8 6.4zm790.4-249.6c-16 0-28.8-12.8-28.8-32 0-224-99.2-336-300.8-336-16 0-28.8-12.8-28.8-32s9.6-32 28.8-32c233.6 0 355.2 137.6 355.2 396.8 0 22.4-9.6 35.2-25.6 35.2z"></path><path d="M876.8 448c-6.4 0-9.6-3.2-16-6.4l-86.4-86.4c-9.6-9.6-9.6-22.4 0-28.8s22.4-9.6 28.8 0l86.4 86.4c9.6 9.6 9.6 22.4 0 28.8 0 3.2-6.4 6.4-12.8 6.4z"></path><path d="M876.8 448c-6.4 0-9.6-3.2-16-6.4-9.6-9.6-9.6-22.4 0-28.8l86.4-86.4c9.6-9.6 22.4-9.6 28.8 0s9.6 22.4 0 28.8l-86.4 86.4c-3.2 3.2-6.4 6.4-12.8 6.4zM288 524.8C156.8 524.8 48 416 48 278.4S156.8 35.2 288 35.2 528 144 528 281.6 419.2 524.8 288 524.8zm-3.2-432c-99.2 0-179.2 83.2-179.2 185.6S185.6 464 284.8 464 464 380.8 464 278.4 384 92.8 284.8 92.8z"></path>',5),Ss=[_s];function Rs(e,t){return q(),Q("svg",As,Ss)}const Ls={render:Rs},Ns={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},Bs=X("path",{fill:"currentColor",d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"},null,-1),Ps=[Bs];function Is(e,t){return q(),Q("svg",Ns,Ps)}const ks={render:Is},$s={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},Hs=X("path",{fill:"currentColor",d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 0 0 0 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"},null,-1),zs=[Hs];function Vs(e,t){return q(),Q("svg",$s,zs)}const Ws={render:Vs},Ys={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},js=X("path",{fill:"currentColor",d:"M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"},null,-1),Xs=[js];function Us(e,t){return q(),Q("svg",Ys,Xs)}const Fs={render:Us},qs={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},Gs=X("path",{fill:"currentColor",d:"M869 487.8 491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 0 0 0-48.4z"},null,-1),Ks=[Gs];function Qs(e,t){return q(),Q("svg",qs,Ks)}const Zs={render:Qs},Js={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},tc=X("path",{fill:"currentColor",d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"},null,-1),ec=X("path",{fill:"currentColor",d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8 11 40.7 14 82.7 8.9 124.8-.7 5.4-1.4 10.8-2.4 16.1h74.9c14.8-103.6-11.3-213-81-302.3z"},null,-1),ic=[tc,ec];function rc(e,t){return q(),Q("svg",Js,ic)}const nc={render:rc},ac={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},oc=X("path",{fill:"currentColor",d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"},null,-1),sc=[oc];function cc(e,t){return q(),Q("svg",ac,sc)}const lc={render:cc},uc={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},fc=X("path",{fill:"currentColor",d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2-69.6 89.2-95.7 198.6-81.1 302.4h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"},null,-1),pc=X("path",{fill:"currentColor",d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"},null,-1),hc=[fc,pc];function dc(e,t){return q(),Q("svg",uc,hc)}const vc={render:dc},gc={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},mc=X("path",{fill:"currentColor",d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"},null,-1),wc=[mc];function yc(e,t){return q(),Q("svg",gc,wc)}const bc={render:yc},xc={aspectRatio:1,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,autoCrop:!0,background:!0,highlight:!0,center:!0,responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,scalable:!0,modal:!0,guides:!0,movable:!0,rotatable:!0},Cc={src:{type:String,required:!0},alt:{type:String},circled:{type:Boolean,default:!1},realTimePreview:{type:Boolean,default:!0},height:{type:[String,Number],default:"360px"},crossorigin:{type:String,default:void 0},imageStyle:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},Oc=li({name:"ReCropper",props:Cc,setup(e,{attrs:t,emit:i}){const r=ot(),a=ot(),n=ot(),o=ot(!1),s=ot(),c=ot(e.circled),f=ot(e.src);let l=1,h=1;const d=Cn(C,80),y=$e(()=>({height:e.height,maxWidth:"100%",...e.imageStyle})),g=$e(()=>[t.class,{["re-circled"]:c.value}]),w=$e(()=>["p-[6px]","h-[30px]","w-[30px]","outline-none","rounded-[4px]","cursor-pointer","hover:bg-[rgba(0,0,0,0.06)]"]),b=$e(()=>({height:`${e.height}`.replace(/px/,"")+"px"}));Or(x),Dr(()=>{var O;(O=n.value)==null||O.destroy()}),bn(r,()=>{D("reset")});async function x(){const O=Ue(a);O&&(n.value=new Hr(O,{...xc,ready:()=>{o.value=!0,C(),xn(400).then(()=>i("readied",n.value))},crop(){d()},zoom(){d()},cropmove(){d()},...e.options}))}function C(){e.realTimePreview&&A()}function A(){if(!n.value)return;(c.value?p():n.value.getCroppedCanvas()).toBlob(M=>{if(!M)return;const _=new FileReader;_.readAsDataURL(M),_.onloadend=S=>{var L;!((L=S.target)!=null&&L.result)||!M||(s.value=S.target.result,i("cropper",{base64:S.target.result,blob:M,info:{size:M.size,...n.value.getData()}}))},_.onerror=()=>{i("error")}})}function p(){const O=n.value.getCroppedCanvas(),M=document.createElement("canvas"),_=M.getContext("2d"),S=O.width,L=O.height;return M.width=S,M.height=L,_.imageSmoothingEnabled=!0,_.drawImage(O,0,0,S,L),_.globalCompositeOperation="destination-in",_.beginPath(),_.arc(S/2,L/2,Math.min(S,L)/2,0,2*Math.PI,!0),_.fill(),M}function D(O,M){var _,S,L,I;O==="scaleX"&&(l=M=l===-1?1:-1),O==="scaleY"&&(h=M=h===-1?1:-1),M&&On(M)?(S=(_=n.value)==null?void 0:_[O])==null||S.call(_,...M):(I=(L=n.value)==null?void 0:L[O])==null||I.call(L,M)}function u(O){const M=new FileReader;return M.readAsDataURL(O),f.value="",M.onload=_=>{var S;f.value=(S=_.target)==null?void 0:S.result},M.onloadend=()=>{x()},!1}const m=li({directives:{tippy:es,longpress:En},setup(){return()=>Y("div",{class:"flex flex-wrap w-[60px] justify-between"},[Y(Tn,{accept:"image/*","show-file-list":!1,"before-upload":u},{default:()=>[K(Y(ps,{class:w.value},null),[[j("tippy"),{content:"上传",placement:"left-start"}]])]}),K(Y(Fs,{class:w.value,onClick:()=>Mn(s.value,"cropping.png")},null),[[j("tippy"),{content:"下载",placement:"right-start"}]]),K(Y(Ls,{class:w.value,onClick:()=>{c.value=!c.value,C()}},null),[[j("tippy"),{content:"圆形、矩形裁剪",placement:"left-start"}]]),K(Y(ss,{class:w.value,onClick:()=>D("reset")},null),[[j("tippy"),{content:"重置",placement:"right-start"}]]),K(Y(Ms,{class:w.value},null),[[j("tippy"),{content:"上移(可长按)",placement:"left-start"}],[j("longpress"),()=>D("move",[0,-10]),"0:100"]]),K(Y(ks,{class:w.value},null),[[j("tippy"),{content:"下移(可长按)",placement:"right-start"}],[j("longpress"),()=>D("move",[0,10]),"0:100"]]),K(Y(Ws,{class:w.value},null),[[j("tippy"),{content:"左移(可长按)",placement:"left-start"}],[j("longpress"),()=>D("move",[-10,0]),"0:100"]]),K(Y(Zs,{class:w.value},null),[[j("tippy"),{content:"右移(可长按)",placement:"right-start"}],[j("longpress"),()=>D("move",[10,0]),"0:100"]]),K(Y(ms,{class:w.value,onClick:()=>D("scaleX",-1)},null),[[j("tippy"),{content:"水平翻转",placement:"left-start"}]]),K(Y(Cs,{class:w.value,onClick:()=>D("scaleY",-1)},null),[[j("tippy"),{content:"垂直翻转",placement:"right-start"}]]),K(Y(nc,{class:w.value,onClick:()=>D("rotate",-45)},null),[[j("tippy"),{content:"逆时针旋转",placement:"left-start"}]]),K(Y(vc,{class:w.value,onClick:()=>D("rotate",45)},null),[[j("tippy"),{content:"顺时针旋转",placement:"right-start"}]]),K(Y(lc,{class:w.value},null),[[j("tippy"),{content:"放大(可长按)",placement:"left-start"}],[j("longpress"),()=>D("zoom",.1),"0:100"]]),K(Y(bc,{class:w.value},null),[[j("tippy"),{content:"缩小(可长按)",placement:"right-start"}],[j("longpress"),()=>D("zoom",-.1),"0:100"]])])}});function T(O){O.preventDefault();const{show:M,setProps:_}=ln(r,{content:m,arrow:!1,theme:"light",trigger:"manual",interactive:!0,appendTo:"parent",animation:"perspective",placement:"bottom-start"});_({getReferenceClientRect:()=>({width:0,height:0,top:O.clientY,bottom:O.clientY,left:O.clientX,right:O.clientX})}),M()}return{inSrc:f,props:e,imgElRef:a,tippyElRef:r,getClass:g,getWrapperStyle:b,getImageStyle:y,isReady:o,croppered:A,onContextmenu:T}},render(){const{inSrc:e,isReady:t,getClass:i,getImageStyle:r,onContextmenu:a,getWrapperStyle:n}=this,{alt:o,crossorigin:s}=this.props;return e?Y("div",{ref:"tippyElRef",class:i,style:n,onContextmenu:c=>a(c)},[K(Y("img",{ref:"imgElRef",style:r,src:e,alt:o,crossorigin:s},null),[[Dn,t]])]):null}}),Dc=An(Oc),Ec={class:"card-header"},Tc={class:"font-medium"},Mc={class:"flex flex-wrap justify-center items-center text-center"},Ac={key:1,class:"mt-1"},Sc=li({name:"Cropping",__name:"index",setup(e){const t=ot(),i=ot(),r=ot(!1),a=ot("");function n({base64:o,blob:s,info:c}){t.value=c,a.value=o}return(o,s)=>{const c=He("el-link"),f=He("el-image"),l=He("el-popover"),h=He("el-card");return q(),zi(h,{shadow:"never"},{header:fe(()=>[X("div",Ec,[X("span",Tc,[ii(" 图片裁剪组件,基于开源的 "),Y(c,{href:"https://fengyuanchen.github.io/cropperjs/",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:fe(()=>[ii(" cropperjs ")]),_:1}),ii(" 进行二次封装(提示:右键下面左侧裁剪区可开启功能菜单) ")])])]),default:fe(()=>[Y(l,{visible:r.value,placement:"right",width:"300px",teleported:!1},{reference:fe(()=>[Y(Ue(Dc),{ref_key:"refCropper",ref:i,class:"w-[30vw]",src:Ue(Sn),circled:"",onCropper:n,onReadied:s[0]||(s[0]=d=>r.value=!0)},null,8,["src"])]),default:fe(()=>[X("div",Mc,[a.value?(q(),zi(f,{key:0,src:a.value,"preview-src-list":Array.of(a.value),fit:"cover"},null,8,["src","preview-src-list"])):Vi("",!0),t.value?(q(),Q("div",Ac,[X("p",null," 图像大小:"+ze(parseInt(t.value.width))+" × "+ze(parseInt(t.value.height))+"像素 ",1),X("p",null," 文件大小:"+ze(Ue(_n)(t.value.size))+"("+ze(t.value.size)+" 字节) ",1)])):Vi("",!0)])]),_:1},8,["visible"])]),_:1})}}});export{Sc as default};
|