import { g } from './SvgIcon-C2791tkm.mjs';
import { defineComponent, ref, watch, onBeforeUnmount, createVNode, reactive, mergeProps, unref, useSSRContext, resolveComponent, withCtx, createTextVNode, toDisplayString, nextTick } from 'vue';
import { ssrRenderAttrs, ssrRenderAttr, ssrRenderComponent, ssrRenderTeleport, ssrInterpolate } from 'vue/server-renderer';
import { p as pe } from './index-Dj5w-pp2.mjs';
import { a as Qt$1, e as Zt$1, c as gn, u as ef, b as Qs, _ as An } from './server.mjs';
import { q as q$1 } from './BaseTextInput-Uos38syD.mjs';
import { I as I$1 } from './BaseSelectInput-DtQVsXjS.mjs';
import { x } from './BaseDateInput-DoqKlvmk.mjs';
import { k } from './BasePhoneInput-3_AyFPIq.mjs';
import * as R$1 from 'yup';
import '../_/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:fs';
import 'node:url';
import 'node:path';
import 'unhead';
import '@unhead/shared';
import 'vue-router';
import 'vue-rate';
import 'date-fns';
import '@hennge/vue3-pagination';
import 'axios';
import 'vue-social-sharing';
import './client-only-CAHE6F0E.mjs';
import '@headlessui/vue';

/*!
 * Cropper.js v1.6.1
 * https://fengyuanchen.github.io/cropperjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2023-09-17T03:44:19.860Z
 */
function S(t2, i2) {
  var a2 = Object.keys(t2);
  if (Object.getOwnPropertySymbols) {
    var e2 = Object.getOwnPropertySymbols(t2);
    i2 && (e2 = e2.filter(function(i3) {
      return Object.getOwnPropertyDescriptor(t2, i3).enumerable;
    })), a2.push.apply(a2, e2);
  }
  return a2;
}
function L(t2) {
  for (var i2 = 1; i2 < arguments.length; i2++) {
    var a2 = null != arguments[i2] ? arguments[i2] : {};
    i2 % 2 ? S(Object(a2), true).forEach(function(i3) {
      $(t2, i3, a2[i3]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t2, Object.getOwnPropertyDescriptors(a2)) : S(Object(a2)).forEach(function(i3) {
      Object.defineProperty(t2, i3, Object.getOwnPropertyDescriptor(a2, i3));
    });
  }
  return t2;
}
function O(t2) {
  return (O = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
    return typeof t3;
  } : function(t3) {
    return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
  })(t2);
}
function R(t2, i2) {
  for (var a2 = 0; a2 < i2.length; a2++) {
    var e2 = i2[a2];
    e2.enumerable = e2.enumerable || false, e2.configurable = true, "value" in e2 && (e2.writable = true), Object.defineProperty(t2, I(e2.key), e2);
  }
}
function $(t2, i2, a2) {
  return (i2 = I(i2)) in t2 ? Object.defineProperty(t2, i2, { value: a2, enumerable: true, configurable: true, writable: true }) : t2[i2] = a2, t2;
}
function _(t2) {
  return function(t3) {
    if (Array.isArray(t3)) return N(t3);
  }(t2) || function(t3) {
    if (typeof Symbol < "u" && null != t3[Symbol.iterator] || null != t3["@@iterator"]) return Array.from(t3);
  }(t2) || function(t3, i2) {
    if (t3) {
      if ("string" == typeof t3) return N(t3, i2);
      var a2 = Object.prototype.toString.call(t3).slice(8, -1);
      if ("Object" === a2 && t3.constructor && (a2 = t3.constructor.name), "Map" === a2 || "Set" === a2) return Array.from(t3);
      if ("Arguments" === a2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a2)) return N(t3, i2);
    }
  }(t2) || function() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  }();
}
function N(t2, i2) {
  (null == i2 || i2 > t2.length) && (i2 = t2.length);
  for (var a2 = 0, e2 = new Array(i2); a2 < i2; a2++) e2[a2] = t2[a2];
  return e2;
}
function I(t2) {
  var i2 = function(t3, i3) {
    if ("object" != typeof t3 || null === t3) return t3;
    var a2 = t3[Symbol.toPrimitive];
    if (undefined !== a2) {
      var e2 = a2.call(t3, i3);
      if ("object" != typeof e2) return e2;
      throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return (String )(t3);
  }(t2, "string");
  return "symbol" == typeof i2 ? i2 : String(i2);
}
var q = {}, U = "cropper", W = "all", H = "crop", P = "move", F = "zoom", X = "e", Y = "w", V = "s", Q = "n", Z = "ne", G = "nw", K = "se", J = "sw", tt = "".concat(U, "-crop"), it = "".concat(U, "-disabled"), at = "".concat(U, "-hidden"), et = "".concat(U, "-hide"), nt = "".concat(U, "-invisible"), ot = "".concat(U, "-modal"), pt = "".concat(U, "-move"), lt = "".concat(U, "Action"), rt = "".concat(U, "Preview"), st = "crop", ct = "move", dt = "none", mt = "crop", ht = "cropend", vt = "cropmove", ut = "cropstart", xt = "dblclick", gt = "mousedown", ft = "mousemove", bt = "mouseup", wt = "ready", yt = "resize", kt = "wheel", jt = "zoom", zt = "image/jpeg", Mt = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, Ct = /^data:/, Dt = /^data:image\/jpeg;base64,/, Bt = /^img|canvas$/i, Tt = { viewMode: 0, dragMode: st, initialAspectRatio: NaN, aspectRatio: NaN, data: null, preview: "", responsive: true, restore: true, checkCrossOrigin: true, checkOrientation: true, modal: true, guides: true, center: true, highlight: true, background: true, autoCrop: true, autoCropArea: 0.8, movable: true, rotatable: true, scalable: true, zoomable: true, zoomOnTouch: true, zoomOnWheel: true, wheelZoomRatio: 0.1, cropBoxMovable: true, cropBoxResizable: true, toggleDragModeOnDblclick: true, minCanvasWidth: 0, minCanvasHeight: 0, minCropBoxWidth: 0, minCropBoxHeight: 0, minContainerWidth: 200, minContainerHeight: 100, ready: null, cropstart: null, cropmove: null, cropend: null, crop: null, zoom: null }, Et = Number.isNaN || q.isNaN;
function At(t2) {
  return "number" == typeof t2 && !Et(t2);
}
var St = function(t2) {
  return t2 > 0 && t2 < 1 / 0;
};
function Lt(t2) {
  return typeof t2 > "u";
}
function Ot(t2) {
  return "object" === O(t2) && null !== t2;
}
var Rt = Object.prototype.hasOwnProperty;
function $t(t2) {
  if (!Ot(t2)) return false;
  try {
    var i2 = t2.constructor, a2 = i2.prototype;
    return i2 && a2 && Rt.call(a2, "isPrototypeOf");
  } catch {
    return false;
  }
}
function _t(t2) {
  return "function" == typeof t2;
}
var Nt = Array.prototype.slice;
function It(t2) {
  return Array.from ? Array.from(t2) : Nt.call(t2);
}
function qt(t2, i2) {
  return t2 && _t(i2) && (Array.isArray(t2) || At(t2.length) ? It(t2).forEach(function(a2, e2) {
    i2.call(t2, a2, e2, t2);
  }) : Ot(t2) && Object.keys(t2).forEach(function(a2) {
    i2.call(t2, t2[a2], a2, t2);
  })), t2;
}
var Ut = Object.assign || function(t2) {
  for (var i2 = arguments.length, a2 = new Array(i2 > 1 ? i2 - 1 : 0), e2 = 1; e2 < i2; e2++) a2[e2 - 1] = arguments[e2];
  return Ot(t2) && a2.length > 0 && a2.forEach(function(i3) {
    Ot(i3) && Object.keys(i3).forEach(function(a3) {
      t2[a3] = i3[a3];
    });
  }), t2;
}, Wt = /\.\d*(?:0|9){12}\d*$/;
function Ht(t2) {
  var i2 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : 1e11;
  return Wt.test(t2) ? Math.round(t2 * i2) / i2 : t2;
}
var Pt = /^width|height|left|top|marginLeft|marginTop$/;
function Ft(t2, i2) {
  var a2 = t2.style;
  qt(i2, function(t3, i3) {
    Pt.test(i3) && At(t3) && (t3 = "".concat(t3, "px")), a2[i3] = t3;
  });
}
function Xt(t2, i2) {
  if (i2) {
    if (At(t2.length)) return void qt(t2, function(t3) {
      Xt(t3, i2);
    });
    if (t2.classList) return void t2.classList.add(i2);
    var a2 = t2.className.trim();
    a2 ? a2.indexOf(i2) < 0 && (t2.className = "".concat(a2, " ").concat(i2)) : t2.className = i2;
  }
}
function Yt(t2, i2) {
  if (i2) {
    if (At(t2.length)) return void qt(t2, function(t3) {
      Yt(t3, i2);
    });
    if (t2.classList) return void t2.classList.remove(i2);
    t2.className.indexOf(i2) >= 0 && (t2.className = t2.className.replace(i2, ""));
  }
}
function Vt(t2, i2, a2) {
  if (i2) {
    if (At(t2.length)) return void qt(t2, function(t3) {
      Vt(t3, i2, a2);
    });
    a2 ? Xt(t2, i2) : Yt(t2, i2);
  }
}
var Qt = /([a-z\d])([A-Z])/g;
function Zt(t2) {
  return t2.replace(Qt, "$1-$2").toLowerCase();
}
function Gt(t2, i2) {
  return Ot(t2[i2]) ? t2[i2] : t2.dataset ? t2.dataset[i2] : t2.getAttribute("data-".concat(Zt(i2)));
}
function Kt(t2, i2, a2) {
  Ot(a2) ? t2[i2] = a2 : t2.dataset ? t2.dataset[i2] = a2 : t2.setAttribute("data-".concat(Zt(i2)), a2);
}
var Jt = /\s\s*/;
function ti(t2, i2, a2) {
  var e2 = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : {}, n2 = a2;
  i2.trim().split(Jt).forEach(function(i3) {
    var o2 = t2.listeners;
    o2 && o2[i3] && o2[i3][a2] && (n2 = o2[i3][a2], delete o2[i3][a2], 0 === Object.keys(o2[i3]).length && delete o2[i3], 0 === Object.keys(o2).length && delete t2.listeners), t2.removeEventListener(i3, n2, e2);
  });
}
function ii(t2, i2, a2) {
  var e2 = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : {}, n2 = a2;
  i2.trim().split(Jt).forEach(function(i3) {
    if (e2.once) {
      var o2 = t2.listeners, p2 = undefined === o2 ? {} : o2;
      n2 = function() {
        delete p2[i3][a2], t2.removeEventListener(i3, n2, e2);
        for (var o3 = arguments.length, l2 = new Array(o3), r2 = 0; r2 < o3; r2++) l2[r2] = arguments[r2];
        a2.apply(t2, l2);
      }, p2[i3] || (p2[i3] = {}), p2[i3][a2] && t2.removeEventListener(i3, p2[i3][a2], e2), p2[i3][a2] = n2, t2.listeners = p2;
    }
    t2.addEventListener(i3, n2, e2);
  });
}
function ai(t2, i2, a2) {
  var e2;
  return _t(Event) && _t(CustomEvent) ? e2 = new CustomEvent(i2, { detail: a2, bubbles: true, cancelable: true }) : (e2 = (undefined).createEvent("CustomEvent")).initCustomEvent(i2, true, true, a2), t2.dispatchEvent(e2);
}
function ei(t2) {
  var i2 = t2.getBoundingClientRect();
  return { left: i2.left + ((undefined).pageXOffset - (undefined).documentElement.clientLeft), top: i2.top + ((undefined).pageYOffset - (undefined).documentElement.clientTop) };
}
var ni = q.location, oi = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
function pi(t2) {
  var i2 = t2.match(oi);
  return null !== i2 && (i2[1] !== ni.protocol || i2[2] !== ni.hostname || i2[3] !== ni.port);
}
function li(t2) {
  var i2 = "timestamp=".concat((/* @__PURE__ */ new Date()).getTime());
  return t2 + (-1 === t2.indexOf("?") ? "?" : "&") + i2;
}
function ri(t2) {
  var i2 = t2.rotate, a2 = t2.scaleX, e2 = t2.scaleY, n2 = t2.translateX, o2 = t2.translateY, p2 = [];
  At(n2) && 0 !== n2 && p2.push("translateX(".concat(n2, "px)")), At(o2) && 0 !== o2 && p2.push("translateY(".concat(o2, "px)")), At(i2) && 0 !== i2 && p2.push("rotate(".concat(i2, "deg)")), At(a2) && 1 !== a2 && p2.push("scaleX(".concat(a2, ")")), At(e2) && 1 !== e2 && p2.push("scaleY(".concat(e2, ")"));
  var l2 = p2.length ? p2.join(" ") : "none";
  return { WebkitTransform: l2, msTransform: l2, transform: l2 };
}
function si(t2, i2) {
  var a2 = t2.pageX, e2 = t2.pageY, n2 = { endX: a2, endY: e2 };
  return i2 ? n2 : L({ startX: a2, startY: e2 }, n2);
}
function ci(t2) {
  var i2 = t2.aspectRatio, a2 = t2.height, e2 = t2.width, n2 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : "contain", o2 = St(e2), p2 = St(a2);
  if (o2 && p2) {
    var l2 = a2 * i2;
    "contain" === n2 && l2 > e2 || "cover" === n2 && l2 < e2 ? a2 = e2 / i2 : e2 = a2 * i2;
  } else o2 ? a2 = e2 / i2 : p2 && (e2 = a2 * i2);
  return { width: e2, height: a2 };
}
var di = String.fromCharCode;
var mi = /^data:.*,/;
function hi(t2) {
  var i2, a2 = new DataView(t2);
  try {
    var e2, n2, o2;
    if (255 === a2.getUint8(0) && 216 === a2.getUint8(1)) for (var p2 = a2.byteLength, l2 = 2; l2 + 1 < p2; ) {
      if (255 === a2.getUint8(l2) && 225 === a2.getUint8(l2 + 1)) {
        n2 = l2;
        break;
      }
      l2 += 1;
    }
    if (n2) {
      var r2 = n2 + 10;
      if ("Exif" === function(t3, i3, a3) {
        var e3 = "";
        a3 += i3;
        for (var n3 = i3; n3 < a3; n3 += 1) e3 += di(t3.getUint8(n3));
        return e3;
      }(a2, n2 + 4, 4)) {
        var s2 = a2.getUint16(r2);
        if (((e2 = 18761 === s2) || 19789 === s2) && 42 === a2.getUint16(r2 + 2, e2)) {
          var c2 = a2.getUint32(r2 + 4, e2);
          c2 >= 8 && (o2 = r2 + c2);
        }
      }
    }
    if (o2) {
      var d2, m2, h2 = a2.getUint16(o2, e2);
      for (m2 = 0; m2 < h2; m2 += 1) if (d2 = o2 + 12 * m2 + 2, 274 === a2.getUint16(d2, e2)) {
        d2 += 8, i2 = a2.getUint16(d2, e2), a2.setUint16(d2, 1, e2);
        break;
      }
    }
  } catch {
    i2 = 1;
  }
  return i2;
}
var vi = { render: function() {
  this.initContainer(), this.initCanvas(), this.initCropBox(), this.renderCanvas(), this.cropped && this.renderCropBox();
}, initContainer: function() {
  var t2 = this.element, i2 = this.options, a2 = this.container, e2 = this.cropper, n2 = Number(i2.minContainerWidth), o2 = Number(i2.minContainerHeight);
  Xt(e2, at), Yt(t2, at);
  var p2 = { width: Math.max(a2.offsetWidth, n2 >= 0 ? n2 : 200), height: Math.max(a2.offsetHeight, o2 >= 0 ? o2 : 100) };
  this.containerData = p2, Ft(e2, { width: p2.width, height: p2.height }), Xt(t2, at), Yt(e2, at);
}, initCanvas: function() {
  var t2 = this.containerData, i2 = this.imageData, a2 = this.options.viewMode, e2 = Math.abs(i2.rotate) % 180 == 90, n2 = e2 ? i2.naturalHeight : i2.naturalWidth, o2 = e2 ? i2.naturalWidth : i2.naturalHeight, p2 = n2 / o2, l2 = t2.width, r2 = t2.height;
  t2.height * p2 > t2.width ? 3 === a2 ? l2 = t2.height * p2 : r2 = t2.width / p2 : 3 === a2 ? r2 = t2.width / p2 : l2 = t2.height * p2;
  var s2 = { aspectRatio: p2, naturalWidth: n2, naturalHeight: o2, width: l2, height: r2 };
  this.canvasData = s2, this.limited = 1 === a2 || 2 === a2, this.limitCanvas(true, true), s2.width = Math.min(Math.max(s2.width, s2.minWidth), s2.maxWidth), s2.height = Math.min(Math.max(s2.height, s2.minHeight), s2.maxHeight), s2.left = (t2.width - s2.width) / 2, s2.top = (t2.height - s2.height) / 2, s2.oldLeft = s2.left, s2.oldTop = s2.top, this.initialCanvasData = Ut({}, s2);
}, limitCanvas: function(t2, i2) {
  var a2 = this.options, e2 = this.containerData, n2 = this.canvasData, o2 = this.cropBoxData, p2 = a2.viewMode, l2 = n2.aspectRatio, r2 = this.cropped && o2;
  if (t2) {
    var s2 = Number(a2.minCanvasWidth) || 0, c2 = Number(a2.minCanvasHeight) || 0;
    p2 > 1 ? (s2 = Math.max(s2, e2.width), c2 = Math.max(c2, e2.height), 3 === p2 && (c2 * l2 > s2 ? s2 = c2 * l2 : c2 = s2 / l2)) : p2 > 0 && (s2 ? s2 = Math.max(s2, r2 ? o2.width : 0) : c2 ? c2 = Math.max(c2, r2 ? o2.height : 0) : r2 && (s2 = o2.width, (c2 = o2.height) * l2 > s2 ? s2 = c2 * l2 : c2 = s2 / l2));
    var d2 = ci({ aspectRatio: l2, width: s2, height: c2 });
    s2 = d2.width, c2 = d2.height, n2.minWidth = s2, n2.minHeight = c2, n2.maxWidth = 1 / 0, n2.maxHeight = 1 / 0;
  }
  if (i2) if (p2 > (r2 ? 0 : 1)) {
    var m2 = e2.width - n2.width, h2 = e2.height - n2.height;
    n2.minLeft = Math.min(0, m2), n2.minTop = Math.min(0, h2), n2.maxLeft = Math.max(0, m2), n2.maxTop = Math.max(0, h2), r2 && this.limited && (n2.minLeft = Math.min(o2.left, o2.left + (o2.width - n2.width)), n2.minTop = Math.min(o2.top, o2.top + (o2.height - n2.height)), n2.maxLeft = o2.left, n2.maxTop = o2.top, 2 === p2 && (n2.width >= e2.width && (n2.minLeft = Math.min(0, m2), n2.maxLeft = Math.max(0, m2)), n2.height >= e2.height && (n2.minTop = Math.min(0, h2), n2.maxTop = Math.max(0, h2))));
  } else n2.minLeft = -n2.width, n2.minTop = -n2.height, n2.maxLeft = e2.width, n2.maxTop = e2.height;
}, renderCanvas: function(t2, i2) {
  var a2 = this.canvasData, e2 = this.imageData;
  if (i2) {
    var n2 = function(t3) {
      var i3 = t3.width, a3 = t3.height, e3 = t3.degree;
      if (90 == (e3 = Math.abs(e3) % 180)) return { width: a3, height: i3 };
      var n3 = e3 % 90 * Math.PI / 180, o3 = Math.sin(n3), p3 = Math.cos(n3), l3 = i3 * p3 + a3 * o3, r3 = i3 * o3 + a3 * p3;
      return e3 > 90 ? { width: r3, height: l3 } : { width: l3, height: r3 };
    }({ width: e2.naturalWidth * Math.abs(e2.scaleX || 1), height: e2.naturalHeight * Math.abs(e2.scaleY || 1), degree: e2.rotate || 0 }), o2 = n2.width, p2 = n2.height, l2 = a2.width * (o2 / a2.naturalWidth), r2 = a2.height * (p2 / a2.naturalHeight);
    a2.left -= (l2 - a2.width) / 2, a2.top -= (r2 - a2.height) / 2, a2.width = l2, a2.height = r2, a2.aspectRatio = o2 / p2, a2.naturalWidth = o2, a2.naturalHeight = p2, this.limitCanvas(true, false);
  }
  (a2.width > a2.maxWidth || a2.width < a2.minWidth) && (a2.left = a2.oldLeft), (a2.height > a2.maxHeight || a2.height < a2.minHeight) && (a2.top = a2.oldTop), a2.width = Math.min(Math.max(a2.width, a2.minWidth), a2.maxWidth), a2.height = Math.min(Math.max(a2.height, a2.minHeight), a2.maxHeight), this.limitCanvas(false, true), a2.left = Math.min(Math.max(a2.left, a2.minLeft), a2.maxLeft), a2.top = Math.min(Math.max(a2.top, a2.minTop), a2.maxTop), a2.oldLeft = a2.left, a2.oldTop = a2.top, Ft(this.canvas, Ut({ width: a2.width, height: a2.height }, ri({ translateX: a2.left, translateY: a2.top }))), this.renderImage(t2), this.cropped && this.limited && this.limitCropBox(true, true);
}, renderImage: function(t2) {
  var i2 = this.canvasData, a2 = this.imageData, e2 = a2.naturalWidth * (i2.width / i2.naturalWidth), n2 = a2.naturalHeight * (i2.height / i2.naturalHeight);
  Ut(a2, { width: e2, height: n2, left: (i2.width - e2) / 2, top: (i2.height - n2) / 2 }), Ft(this.image, Ut({ width: a2.width, height: a2.height }, ri(Ut({ translateX: a2.left, translateY: a2.top }, a2)))), t2 && this.output();
}, initCropBox: function() {
  var t2 = this.options, i2 = this.canvasData, a2 = t2.aspectRatio || t2.initialAspectRatio, e2 = Number(t2.autoCropArea) || 0.8, n2 = { width: i2.width, height: i2.height };
  a2 && (i2.height * a2 > i2.width ? n2.height = n2.width / a2 : n2.width = n2.height * a2), this.cropBoxData = n2, this.limitCropBox(true, true), n2.width = Math.min(Math.max(n2.width, n2.minWidth), n2.maxWidth), n2.height = Math.min(Math.max(n2.height, n2.minHeight), n2.maxHeight), n2.width = Math.max(n2.minWidth, n2.width * e2), n2.height = Math.max(n2.minHeight, n2.height * e2), n2.left = i2.left + (i2.width - n2.width) / 2, n2.top = i2.top + (i2.height - n2.height) / 2, n2.oldLeft = n2.left, n2.oldTop = n2.top, this.initialCropBoxData = Ut({}, n2);
}, limitCropBox: function(t2, i2) {
  var a2 = this.options, e2 = this.containerData, n2 = this.canvasData, o2 = this.cropBoxData, p2 = this.limited, l2 = a2.aspectRatio;
  if (t2) {
    var r2 = Number(a2.minCropBoxWidth) || 0, s2 = Number(a2.minCropBoxHeight) || 0, c2 = p2 ? Math.min(e2.width, n2.width, n2.width + n2.left, e2.width - n2.left) : e2.width, d2 = p2 ? Math.min(e2.height, n2.height, n2.height + n2.top, e2.height - n2.top) : e2.height;
    r2 = Math.min(r2, e2.width), s2 = Math.min(s2, e2.height), l2 && (r2 && s2 ? s2 * l2 > r2 ? s2 = r2 / l2 : r2 = s2 * l2 : r2 ? s2 = r2 / l2 : s2 && (r2 = s2 * l2), d2 * l2 > c2 ? d2 = c2 / l2 : c2 = d2 * l2), o2.minWidth = Math.min(r2, c2), o2.minHeight = Math.min(s2, d2), o2.maxWidth = c2, o2.maxHeight = d2;
  }
  i2 && (p2 ? (o2.minLeft = Math.max(0, n2.left), o2.minTop = Math.max(0, n2.top), o2.maxLeft = Math.min(e2.width, n2.left + n2.width) - o2.width, o2.maxTop = Math.min(e2.height, n2.top + n2.height) - o2.height) : (o2.minLeft = 0, o2.minTop = 0, o2.maxLeft = e2.width - o2.width, o2.maxTop = e2.height - o2.height));
}, renderCropBox: function() {
  var t2 = this.options, i2 = this.containerData, a2 = this.cropBoxData;
  (a2.width > a2.maxWidth || a2.width < a2.minWidth) && (a2.left = a2.oldLeft), (a2.height > a2.maxHeight || a2.height < a2.minHeight) && (a2.top = a2.oldTop), a2.width = Math.min(Math.max(a2.width, a2.minWidth), a2.maxWidth), a2.height = Math.min(Math.max(a2.height, a2.minHeight), a2.maxHeight), this.limitCropBox(false, true), a2.left = Math.min(Math.max(a2.left, a2.minLeft), a2.maxLeft), a2.top = Math.min(Math.max(a2.top, a2.minTop), a2.maxTop), a2.oldLeft = a2.left, a2.oldTop = a2.top, t2.movable && t2.cropBoxMovable && Kt(this.face, lt, a2.width >= i2.width && a2.height >= i2.height ? P : W), Ft(this.cropBox, Ut({ width: a2.width, height: a2.height }, ri({ translateX: a2.left, translateY: a2.top }))), this.cropped && this.limited && this.limitCanvas(true, true), this.disabled || this.output();
}, output: function() {
  this.preview(), ai(this.element, mt, this.getData());
} }, ui = { initPreview: function() {
  var t2 = this.element, i2 = this.crossOrigin, a2 = this.options.preview, e2 = i2 ? this.crossOriginUrl : this.url, n2 = t2.alt || "The image to preview", o2 = (undefined).createElement("img");
  if (i2 && (o2.crossOrigin = i2), o2.src = e2, o2.alt = n2, this.viewBox.appendChild(o2), this.viewBoxImage = o2, a2) {
    var p2 = a2;
    "string" == typeof a2 ? p2 = t2.ownerDocument.querySelectorAll(a2) : a2.querySelector && (p2 = [a2]), this.previews = p2, qt(p2, function(t3) {
      var a3 = (undefined).createElement("img");
      Kt(t3, rt, { width: t3.offsetWidth, height: t3.offsetHeight, html: t3.innerHTML }), i2 && (a3.crossOrigin = i2), a3.src = e2, a3.alt = n2, a3.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;"', t3.innerHTML = "", t3.appendChild(a3);
    });
  }
}, resetPreview: function() {
  qt(this.previews, function(t2) {
    var i2 = Gt(t2, rt);
    Ft(t2, { width: i2.width, height: i2.height }), t2.innerHTML = i2.html, function(t3, i3) {
      if (Ot(t3[i3])) try {
        delete t3[i3];
      } catch {
        t3[i3] = undefined;
      }
      else if (t3.dataset) try {
        delete t3.dataset[i3];
      } catch {
        t3.dataset[i3] = undefined;
      }
      else t3.removeAttribute("data-".concat(Zt(i3)));
    }(t2, rt);
  });
}, preview: function() {
  var t2 = this.imageData, i2 = this.canvasData, a2 = this.cropBoxData, e2 = a2.width, n2 = a2.height, o2 = t2.width, p2 = t2.height, l2 = a2.left - i2.left - t2.left, r2 = a2.top - i2.top - t2.top;
  !this.cropped || this.disabled || (Ft(this.viewBoxImage, Ut({ width: o2, height: p2 }, ri(Ut({ translateX: -l2, translateY: -r2 }, t2)))), qt(this.previews, function(i3) {
    var a3 = Gt(i3, rt), s2 = a3.width, c2 = a3.height, d2 = s2, m2 = c2, h2 = 1;
    e2 && (m2 = n2 * (h2 = s2 / e2)), n2 && m2 > c2 && (d2 = e2 * (h2 = c2 / n2), m2 = c2), Ft(i3, { width: d2, height: m2 }), Ft(i3.getElementsByTagName("img")[0], Ut({ width: o2 * h2, height: p2 * h2 }, ri(Ut({ translateX: -l2 * h2, translateY: -r2 * h2 }, t2))));
  }));
} }, xi = { bind: function() {
  var t2 = this.element, i2 = this.options, a2 = this.cropper;
  _t(i2.cropstart) && ii(t2, ut, i2.cropstart), _t(i2.cropmove) && ii(t2, vt, i2.cropmove), _t(i2.cropend) && ii(t2, ht, i2.cropend), _t(i2.crop) && ii(t2, mt, i2.crop), _t(i2.zoom) && ii(t2, jt, i2.zoom), ii(a2, gt, this.onCropStart = this.cropStart.bind(this)), i2.zoomable && i2.zoomOnWheel && ii(a2, kt, this.onWheel = this.wheel.bind(this), { passive: false, capture: true }), i2.toggleDragModeOnDblclick && ii(a2, xt, this.onDblclick = this.dblclick.bind(this)), ii(t2.ownerDocument, ft, this.onCropMove = this.cropMove.bind(this)), ii(t2.ownerDocument, bt, this.onCropEnd = this.cropEnd.bind(this)), i2.responsive && ii(undefined, yt, this.onResize = this.resize.bind(this));
}, unbind: function() {
  var t2 = this.element, i2 = this.options, a2 = this.cropper;
  _t(i2.cropstart) && ti(t2, ut, i2.cropstart), _t(i2.cropmove) && ti(t2, vt, i2.cropmove), _t(i2.cropend) && ti(t2, ht, i2.cropend), _t(i2.crop) && ti(t2, mt, i2.crop), _t(i2.zoom) && ti(t2, jt, i2.zoom), ti(a2, gt, this.onCropStart), i2.zoomable && i2.zoomOnWheel && ti(a2, kt, this.onWheel, { passive: false, capture: true }), i2.toggleDragModeOnDblclick && ti(a2, xt, this.onDblclick), ti(t2.ownerDocument, ft, this.onCropMove), ti(t2.ownerDocument, bt, this.onCropEnd), i2.responsive && ti(undefined, yt, this.onResize);
} }, gi = { resize: function() {
  if (!this.disabled) {
    var t2, i2, a2 = this.options, e2 = this.container, n2 = this.containerData, o2 = e2.offsetWidth / n2.width, p2 = e2.offsetHeight / n2.height, l2 = Math.abs(o2 - 1) > Math.abs(p2 - 1) ? o2 : p2;
    if (1 !== l2) a2.restore && (t2 = this.getCanvasData(), i2 = this.getCropBoxData()), this.render(), a2.restore && (this.setCanvasData(qt(t2, function(i3, a3) {
      t2[a3] = i3 * l2;
    })), this.setCropBoxData(qt(i2, function(t3, a3) {
      i2[a3] = t3 * l2;
    })));
  }
}, dblclick: function() {
  var t2, i2;
  this.disabled || this.options.dragMode === dt || this.setDragMode((t2 = this.dragBox, i2 = tt, (t2.classList ? t2.classList.contains(i2) : t2.className.indexOf(i2) > -1) ? ct : st));
}, wheel: function(t2) {
  var i2 = this, a2 = Number(this.options.wheelZoomRatio) || 0.1, e2 = 1;
  this.disabled || (t2.preventDefault(), !this.wheeling && (this.wheeling = true, setTimeout(function() {
    i2.wheeling = false;
  }, 50), t2.deltaY ? e2 = t2.deltaY > 0 ? 1 : -1 : t2.wheelDelta ? e2 = -t2.wheelDelta / 120 : t2.detail && (e2 = t2.detail > 0 ? 1 : -1), this.zoom(-e2 * a2, t2)));
}, cropStart: function(t2) {
  var i2 = t2.buttons, a2 = t2.button;
  if (!(this.disabled || ("mousedown" === t2.type || "pointerdown" === t2.type && "mouse" === t2.pointerType) && (At(i2) && 1 !== i2 || At(a2) && 0 !== a2 || t2.ctrlKey))) {
    var e2, n2 = this.options, o2 = this.pointers;
    t2.changedTouches ? qt(t2.changedTouches, function(t3) {
      o2[t3.identifier] = si(t3);
    }) : o2[t2.pointerId || 0] = si(t2), e2 = Object.keys(o2).length > 1 && n2.zoomable && n2.zoomOnTouch ? F : Gt(t2.target, lt), Mt.test(e2) && false !== ai(this.element, ut, { originalEvent: t2, action: e2 }) && (t2.preventDefault(), this.action = e2, this.cropping = false, e2 === H && (this.cropping = true, Xt(this.dragBox, ot)));
  }
}, cropMove: function(t2) {
  var i2 = this.action;
  if (!this.disabled && i2) {
    var a2 = this.pointers;
    t2.preventDefault(), false !== ai(this.element, vt, { originalEvent: t2, action: i2 }) && (t2.changedTouches ? qt(t2.changedTouches, function(t3) {
      Ut(a2[t3.identifier] || {}, si(t3, true));
    }) : Ut(a2[t2.pointerId || 0] || {}, si(t2, true)), this.change(t2));
  }
}, cropEnd: function(t2) {
  if (!this.disabled) {
    var i2 = this.action, a2 = this.pointers;
    t2.changedTouches ? qt(t2.changedTouches, function(t3) {
      delete a2[t3.identifier];
    }) : delete a2[t2.pointerId || 0], i2 && (t2.preventDefault(), Object.keys(a2).length || (this.action = ""), this.cropping && (this.cropping = false, Vt(this.dragBox, ot, this.cropped && this.options.modal)), ai(this.element, ht, { originalEvent: t2, action: i2 }));
  }
} }, fi = { change: function(t2) {
  var i2, a2 = this.options, e2 = this.canvasData, n2 = this.containerData, o2 = this.cropBoxData, p2 = this.pointers, l2 = this.action, r2 = a2.aspectRatio, s2 = o2.left, c2 = o2.top, d2 = o2.width, m2 = o2.height, h2 = s2 + d2, v2 = c2 + m2, u2 = 0, x2 = 0, g2 = n2.width, f2 = n2.height, b2 = true;
  !r2 && t2.shiftKey && (r2 = d2 && m2 ? d2 / m2 : 1), this.limited && (u2 = o2.minLeft, x2 = o2.minTop, g2 = u2 + Math.min(n2.width, e2.width, e2.left + e2.width), f2 = x2 + Math.min(n2.height, e2.height, e2.top + e2.height));
  var w2 = p2[Object.keys(p2)[0]], y2 = { x: w2.endX - w2.startX, y: w2.endY - w2.startY }, k2 = function(t3) {
    switch (t3) {
      case X:
        h2 + y2.x > g2 && (y2.x = g2 - h2);
        break;
      case Y:
        s2 + y2.x < u2 && (y2.x = u2 - s2);
        break;
      case Q:
        c2 + y2.y < x2 && (y2.y = x2 - c2);
        break;
      case V:
        v2 + y2.y > f2 && (y2.y = f2 - v2);
    }
  };
  switch (l2) {
    case W:
      s2 += y2.x, c2 += y2.y;
      break;
    case X:
      if (y2.x >= 0 && (h2 >= g2 || r2 && (c2 <= x2 || v2 >= f2))) {
        b2 = false;
        break;
      }
      k2(X), (d2 += y2.x) < 0 && (l2 = Y, s2 -= d2 = -d2), r2 && (m2 = d2 / r2, c2 += (o2.height - m2) / 2);
      break;
    case Q:
      if (y2.y <= 0 && (c2 <= x2 || r2 && (s2 <= u2 || h2 >= g2))) {
        b2 = false;
        break;
      }
      k2(Q), m2 -= y2.y, c2 += y2.y, m2 < 0 && (l2 = V, c2 -= m2 = -m2), r2 && (d2 = m2 * r2, s2 += (o2.width - d2) / 2);
      break;
    case Y:
      if (y2.x <= 0 && (s2 <= u2 || r2 && (c2 <= x2 || v2 >= f2))) {
        b2 = false;
        break;
      }
      k2(Y), d2 -= y2.x, s2 += y2.x, d2 < 0 && (l2 = X, s2 -= d2 = -d2), r2 && (m2 = d2 / r2, c2 += (o2.height - m2) / 2);
      break;
    case V:
      if (y2.y >= 0 && (v2 >= f2 || r2 && (s2 <= u2 || h2 >= g2))) {
        b2 = false;
        break;
      }
      k2(V), (m2 += y2.y) < 0 && (l2 = Q, c2 -= m2 = -m2), r2 && (d2 = m2 * r2, s2 += (o2.width - d2) / 2);
      break;
    case Z:
      if (r2) {
        if (y2.y <= 0 && (c2 <= x2 || h2 >= g2)) {
          b2 = false;
          break;
        }
        k2(Q), m2 -= y2.y, c2 += y2.y, d2 = m2 * r2;
      } else k2(Q), k2(X), y2.x >= 0 ? h2 < g2 ? d2 += y2.x : y2.y <= 0 && c2 <= x2 && (b2 = false) : d2 += y2.x, y2.y <= 0 ? c2 > x2 && (m2 -= y2.y, c2 += y2.y) : (m2 -= y2.y, c2 += y2.y);
      d2 < 0 && m2 < 0 ? (l2 = J, c2 -= m2 = -m2, s2 -= d2 = -d2) : d2 < 0 ? (l2 = G, s2 -= d2 = -d2) : m2 < 0 && (l2 = K, c2 -= m2 = -m2);
      break;
    case G:
      if (r2) {
        if (y2.y <= 0 && (c2 <= x2 || s2 <= u2)) {
          b2 = false;
          break;
        }
        k2(Q), m2 -= y2.y, c2 += y2.y, d2 = m2 * r2, s2 += o2.width - d2;
      } else k2(Q), k2(Y), y2.x <= 0 ? s2 > u2 ? (d2 -= y2.x, s2 += y2.x) : y2.y <= 0 && c2 <= x2 && (b2 = false) : (d2 -= y2.x, s2 += y2.x), y2.y <= 0 ? c2 > x2 && (m2 -= y2.y, c2 += y2.y) : (m2 -= y2.y, c2 += y2.y);
      d2 < 0 && m2 < 0 ? (l2 = K, c2 -= m2 = -m2, s2 -= d2 = -d2) : d2 < 0 ? (l2 = Z, s2 -= d2 = -d2) : m2 < 0 && (l2 = J, c2 -= m2 = -m2);
      break;
    case J:
      if (r2) {
        if (y2.x <= 0 && (s2 <= u2 || v2 >= f2)) {
          b2 = false;
          break;
        }
        k2(Y), d2 -= y2.x, s2 += y2.x, m2 = d2 / r2;
      } else k2(V), k2(Y), y2.x <= 0 ? s2 > u2 ? (d2 -= y2.x, s2 += y2.x) : y2.y >= 0 && v2 >= f2 && (b2 = false) : (d2 -= y2.x, s2 += y2.x), y2.y >= 0 ? v2 < f2 && (m2 += y2.y) : m2 += y2.y;
      d2 < 0 && m2 < 0 ? (l2 = Z, c2 -= m2 = -m2, s2 -= d2 = -d2) : d2 < 0 ? (l2 = K, s2 -= d2 = -d2) : m2 < 0 && (l2 = G, c2 -= m2 = -m2);
      break;
    case K:
      if (r2) {
        if (y2.x >= 0 && (h2 >= g2 || v2 >= f2)) {
          b2 = false;
          break;
        }
        k2(X), m2 = (d2 += y2.x) / r2;
      } else k2(V), k2(X), y2.x >= 0 ? h2 < g2 ? d2 += y2.x : y2.y >= 0 && v2 >= f2 && (b2 = false) : d2 += y2.x, y2.y >= 0 ? v2 < f2 && (m2 += y2.y) : m2 += y2.y;
      d2 < 0 && m2 < 0 ? (l2 = G, c2 -= m2 = -m2, s2 -= d2 = -d2) : d2 < 0 ? (l2 = J, s2 -= d2 = -d2) : m2 < 0 && (l2 = Z, c2 -= m2 = -m2);
      break;
    case P:
      this.move(y2.x, y2.y), b2 = false;
      break;
    case F:
      this.zoom(function(t3) {
        var i3 = L({}, t3), a3 = 0;
        return qt(t3, function(t4, e3) {
          delete i3[e3], qt(i3, function(i4) {
            var e4 = Math.abs(t4.startX - i4.startX), n3 = Math.abs(t4.startY - i4.startY), o3 = Math.abs(t4.endX - i4.endX), p3 = Math.abs(t4.endY - i4.endY), l3 = Math.sqrt(e4 * e4 + n3 * n3), r3 = (Math.sqrt(o3 * o3 + p3 * p3) - l3) / l3;
            Math.abs(r3) > Math.abs(a3) && (a3 = r3);
          });
        }), a3;
      }(p2), t2), b2 = false;
      break;
    case H:
      if (!y2.x || !y2.y) {
        b2 = false;
        break;
      }
      i2 = ei(this.cropper), s2 = w2.startX - i2.left, c2 = w2.startY - i2.top, d2 = o2.minWidth, m2 = o2.minHeight, y2.x > 0 ? l2 = y2.y > 0 ? K : Z : y2.x < 0 && (s2 -= d2, l2 = y2.y > 0 ? J : G), y2.y < 0 && (c2 -= m2), this.cropped || (Yt(this.cropBox, at), this.cropped = true, this.limited && this.limitCropBox(true, true));
  }
  b2 && (o2.width = d2, o2.height = m2, o2.left = s2, o2.top = c2, this.action = l2, this.renderCropBox()), qt(p2, function(t3) {
    t3.startX = t3.endX, t3.startY = t3.endY;
  });
} }, bi = { crop: function() {
  return this.ready && !this.cropped && !this.disabled && (this.cropped = true, this.limitCropBox(true, true), this.options.modal && Xt(this.dragBox, ot), Yt(this.cropBox, at), this.setCropBoxData(this.initialCropBoxData)), this;
}, reset: function() {
  return this.ready && !this.disabled && (this.imageData = Ut({}, this.initialImageData), this.canvasData = Ut({}, this.initialCanvasData), this.cropBoxData = Ut({}, this.initialCropBoxData), this.renderCanvas(), this.cropped && this.renderCropBox()), this;
}, clear: function() {
  return this.cropped && !this.disabled && (Ut(this.cropBoxData, { left: 0, top: 0, width: 0, height: 0 }), this.cropped = false, this.renderCropBox(), this.limitCanvas(true, true), this.renderCanvas(), Yt(this.dragBox, ot), Xt(this.cropBox, at)), this;
}, replace: function(t2) {
  var i2 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
  return !this.disabled && t2 && (this.isImg && (this.element.src = t2), i2 ? (this.url = t2, this.image.src = t2, this.ready && (this.viewBoxImage.src = t2, qt(this.previews, function(i3) {
    i3.getElementsByTagName("img")[0].src = t2;
  }))) : (this.isImg && (this.replaced = true), this.options.data = null, this.uncreate(), this.load(t2))), this;
}, enable: function() {
  return this.ready && this.disabled && (this.disabled = false, Yt(this.cropper, it)), this;
}, disable: function() {
  return this.ready && !this.disabled && (this.disabled = true, Xt(this.cropper, it)), this;
}, destroy: function() {
  var t2 = this.element;
  return t2[U] ? (t2[U] = undefined, this.isImg && this.replaced && (t2.src = this.originalUrl), this.uncreate(), this) : this;
}, move: function(t2) {
  var i2 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : t2, a2 = this.canvasData, e2 = a2.left, n2 = a2.top;
  return this.moveTo(Lt(t2) ? t2 : e2 + Number(t2), Lt(i2) ? i2 : n2 + Number(i2));
}, moveTo: function(t2) {
  var i2 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : t2, a2 = this.canvasData, e2 = false;
  return t2 = Number(t2), i2 = Number(i2), this.ready && !this.disabled && this.options.movable && (At(t2) && (a2.left = t2, e2 = true), At(i2) && (a2.top = i2, e2 = true), e2 && this.renderCanvas(true)), this;
}, zoom: function(t2, i2) {
  var a2 = this.canvasData;
  return t2 = (t2 = Number(t2)) < 0 ? 1 / (1 - t2) : 1 + t2, this.zoomTo(a2.width * t2 / a2.naturalWidth, null, i2);
}, zoomTo: function(t2, i2, a2) {
  var e2 = this.options, n2 = this.canvasData, o2 = n2.width, p2 = n2.height, l2 = n2.naturalWidth, r2 = n2.naturalHeight;
  if ((t2 = Number(t2)) >= 0 && this.ready && !this.disabled && e2.zoomable) {
    var s2 = l2 * t2, c2 = r2 * t2;
    if (false === ai(this.element, jt, { ratio: t2, oldRatio: o2 / l2, originalEvent: a2 })) return this;
    if (a2) {
      var d2 = this.pointers, m2 = ei(this.cropper), h2 = d2 && Object.keys(d2).length ? function(t3) {
        var i3 = 0, a3 = 0, e3 = 0;
        return qt(t3, function(t4) {
          var n3 = t4.startX, o3 = t4.startY;
          i3 += n3, a3 += o3, e3 += 1;
        }), { pageX: i3 /= e3, pageY: a3 /= e3 };
      }(d2) : { pageX: a2.pageX, pageY: a2.pageY };
      n2.left -= (s2 - o2) * ((h2.pageX - m2.left - n2.left) / o2), n2.top -= (c2 - p2) * ((h2.pageY - m2.top - n2.top) / p2);
    } else $t(i2) && At(i2.x) && At(i2.y) ? (n2.left -= (s2 - o2) * ((i2.x - n2.left) / o2), n2.top -= (c2 - p2) * ((i2.y - n2.top) / p2)) : (n2.left -= (s2 - o2) / 2, n2.top -= (c2 - p2) / 2);
    n2.width = s2, n2.height = c2, this.renderCanvas(true);
  }
  return this;
}, rotate: function(t2) {
  return this.rotateTo((this.imageData.rotate || 0) + Number(t2));
}, rotateTo: function(t2) {
  return At(t2 = Number(t2)) && this.ready && !this.disabled && this.options.rotatable && (this.imageData.rotate = t2 % 360, this.renderCanvas(true, true)), this;
}, scaleX: function(t2) {
  var i2 = this.imageData.scaleY;
  return this.scale(t2, At(i2) ? i2 : 1);
}, scaleY: function(t2) {
  var i2 = this.imageData.scaleX;
  return this.scale(At(i2) ? i2 : 1, t2);
}, scale: function(t2) {
  var i2 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : t2, a2 = this.imageData, e2 = false;
  return t2 = Number(t2), i2 = Number(i2), this.ready && !this.disabled && this.options.scalable && (At(t2) && (a2.scaleX = t2, e2 = true), At(i2) && (a2.scaleY = i2, e2 = true), e2 && this.renderCanvas(true, true)), this;
}, getData: function() {
  var t2, i2 = arguments.length > 0 && undefined !== arguments[0] && arguments[0], a2 = this.options, e2 = this.imageData, n2 = this.canvasData, o2 = this.cropBoxData;
  if (this.ready && this.cropped) {
    t2 = { x: o2.left - n2.left, y: o2.top - n2.top, width: o2.width, height: o2.height };
    var p2 = e2.width / e2.naturalWidth;
    if (qt(t2, function(i3, a3) {
      t2[a3] = i3 / p2;
    }), i2) {
      var l2 = Math.round(t2.y + t2.height), r2 = Math.round(t2.x + t2.width);
      t2.x = Math.round(t2.x), t2.y = Math.round(t2.y), t2.width = r2 - t2.x, t2.height = l2 - t2.y;
    }
  } else t2 = { x: 0, y: 0, width: 0, height: 0 };
  return a2.rotatable && (t2.rotate = e2.rotate || 0), a2.scalable && (t2.scaleX = e2.scaleX || 1, t2.scaleY = e2.scaleY || 1), t2;
}, setData: function(t2) {
  var i2 = this.options, a2 = this.imageData, e2 = this.canvasData, n2 = {};
  if (this.ready && !this.disabled && $t(t2)) {
    var o2 = false;
    i2.rotatable && At(t2.rotate) && t2.rotate !== a2.rotate && (a2.rotate = t2.rotate, o2 = true), i2.scalable && (At(t2.scaleX) && t2.scaleX !== a2.scaleX && (a2.scaleX = t2.scaleX, o2 = true), At(t2.scaleY) && t2.scaleY !== a2.scaleY && (a2.scaleY = t2.scaleY, o2 = true)), o2 && this.renderCanvas(true, true);
    var p2 = a2.width / a2.naturalWidth;
    At(t2.x) && (n2.left = t2.x * p2 + e2.left), At(t2.y) && (n2.top = t2.y * p2 + e2.top), At(t2.width) && (n2.width = t2.width * p2), At(t2.height) && (n2.height = t2.height * p2), this.setCropBoxData(n2);
  }
  return this;
}, getContainerData: function() {
  return this.ready ? Ut({}, this.containerData) : {};
}, getImageData: function() {
  return this.sized ? Ut({}, this.imageData) : {};
}, getCanvasData: function() {
  var t2 = this.canvasData, i2 = {};
  return this.ready && qt(["left", "top", "width", "height", "naturalWidth", "naturalHeight"], function(a2) {
    i2[a2] = t2[a2];
  }), i2;
}, setCanvasData: function(t2) {
  var i2 = this.canvasData, a2 = i2.aspectRatio;
  return this.ready && !this.disabled && $t(t2) && (At(t2.left) && (i2.left = t2.left), At(t2.top) && (i2.top = t2.top), At(t2.width) ? (i2.width = t2.width, i2.height = t2.width / a2) : At(t2.height) && (i2.height = t2.height, i2.width = t2.height * a2), this.renderCanvas(true)), this;
}, getCropBoxData: function() {
  var t2, i2 = this.cropBoxData;
  return this.ready && this.cropped && (t2 = { left: i2.left, top: i2.top, width: i2.width, height: i2.height }), t2 || {};
}, setCropBoxData: function(t2) {
  var i2, a2, e2 = this.cropBoxData, n2 = this.options.aspectRatio;
  return this.ready && this.cropped && !this.disabled && $t(t2) && (At(t2.left) && (e2.left = t2.left), At(t2.top) && (e2.top = t2.top), At(t2.width) && t2.width !== e2.width && (i2 = true, e2.width = t2.width), At(t2.height) && t2.height !== e2.height && (a2 = true, e2.height = t2.height), n2 && (i2 ? e2.height = e2.width / n2 : a2 && (e2.width = e2.height * n2)), this.renderCropBox()), this;
}, getCroppedCanvas: function() {
  var t2 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
  if (!this.ready || !(undefined).HTMLCanvasElement) return null;
  var i2 = this.canvasData, a2 = function(t3, i3, a3, e3) {
    var n3 = i3.aspectRatio, o3 = i3.naturalWidth, p3 = i3.naturalHeight, l3 = i3.rotate, r3 = undefined === l3 ? 0 : l3, s3 = i3.scaleX, c3 = undefined === s3 ? 1 : s3, d3 = i3.scaleY, m3 = undefined === d3 ? 1 : d3, h3 = a3.aspectRatio, v3 = a3.naturalWidth, u3 = a3.naturalHeight, x3 = e3.fillColor, g3 = undefined === x3 ? "transparent" : x3, f3 = e3.imageSmoothingEnabled, b3 = undefined === f3 || f3, w3 = e3.imageSmoothingQuality, y3 = undefined === w3 ? "low" : w3, k3 = e3.maxWidth, j3 = undefined === k3 ? 1 / 0 : k3, z3 = e3.maxHeight, M3 = undefined === z3 ? 1 / 0 : z3, C3 = e3.minWidth, D3 = undefined === C3 ? 0 : C3, B3 = e3.minHeight, T3 = undefined === B3 ? 0 : B3, E3 = (undefined).createElement("canvas"), A3 = E3.getContext("2d"), S2 = ci({ aspectRatio: h3, width: j3, height: M3 }), L2 = ci({ aspectRatio: h3, width: D3, height: T3 }, "cover"), O2 = Math.min(S2.width, Math.max(L2.width, v3)), R2 = Math.min(S2.height, Math.max(L2.height, u3)), $2 = ci({ aspectRatio: n3, width: j3, height: M3 }), N2 = ci({ aspectRatio: n3, width: D3, height: T3 }, "cover"), I2 = Math.min($2.width, Math.max(N2.width, o3)), q2 = Math.min($2.height, Math.max(N2.height, p3)), U2 = [-I2 / 2, -q2 / 2, I2, q2];
    return E3.width = Ht(O2), E3.height = Ht(R2), A3.fillStyle = g3, A3.fillRect(0, 0, O2, R2), A3.save(), A3.translate(O2 / 2, R2 / 2), A3.rotate(r3 * Math.PI / 180), A3.scale(c3, m3), A3.imageSmoothingEnabled = b3, A3.imageSmoothingQuality = y3, A3.drawImage.apply(A3, [t3].concat(_(U2.map(function(t4) {
      return Math.floor(Ht(t4));
    })))), A3.restore(), E3;
  }(this.image, this.imageData, i2, t2);
  if (!this.cropped) return a2;
  var e2 = this.getData(t2.rounded), n2 = e2.x, o2 = e2.y, p2 = e2.width, l2 = e2.height, r2 = a2.width / Math.floor(i2.naturalWidth);
  1 !== r2 && (n2 *= r2, o2 *= r2, p2 *= r2, l2 *= r2);
  var s2 = p2 / l2, c2 = ci({ aspectRatio: s2, width: t2.maxWidth || 1 / 0, height: t2.maxHeight || 1 / 0 }), d2 = ci({ aspectRatio: s2, width: t2.minWidth || 0, height: t2.minHeight || 0 }, "cover"), m2 = ci({ aspectRatio: s2, width: t2.width || (1 !== r2 ? a2.width : p2), height: t2.height || (1 !== r2 ? a2.height : l2) }), h2 = m2.width, v2 = m2.height;
  h2 = Math.min(c2.width, Math.max(d2.width, h2)), v2 = Math.min(c2.height, Math.max(d2.height, v2));
  var u2 = (undefined).createElement("canvas"), x2 = u2.getContext("2d");
  u2.width = Ht(h2), u2.height = Ht(v2), x2.fillStyle = t2.fillColor || "transparent", x2.fillRect(0, 0, h2, v2);
  var g2 = t2.imageSmoothingEnabled, f2 = undefined === g2 || g2, b2 = t2.imageSmoothingQuality;
  x2.imageSmoothingEnabled = f2, b2 && (x2.imageSmoothingQuality = b2);
  var w2, y2, k2, j2, z2, M2, C2 = a2.width, D2 = a2.height, B2 = n2, T2 = o2;
  B2 <= -p2 || B2 > C2 ? (B2 = 0, w2 = 0, k2 = 0, z2 = 0) : B2 <= 0 ? (k2 = -B2, B2 = 0, z2 = w2 = Math.min(C2, p2 + B2)) : B2 <= C2 && (k2 = 0, z2 = w2 = Math.min(p2, C2 - B2)), w2 <= 0 || T2 <= -l2 || T2 > D2 ? (T2 = 0, y2 = 0, j2 = 0, M2 = 0) : T2 <= 0 ? (j2 = -T2, T2 = 0, M2 = y2 = Math.min(D2, l2 + T2)) : T2 <= D2 && (j2 = 0, M2 = y2 = Math.min(l2, D2 - T2));
  var E2 = [B2, T2, w2, y2];
  if (z2 > 0 && M2 > 0) {
    var A2 = h2 / p2;
    E2.push(k2 * A2, j2 * A2, z2 * A2, M2 * A2);
  }
  return x2.drawImage.apply(x2, [a2].concat(_(E2.map(function(t3) {
    return Math.floor(Ht(t3));
  })))), u2;
}, setAspectRatio: function(t2) {
  var i2 = this.options;
  return !this.disabled && !Lt(t2) && (i2.aspectRatio = Math.max(0, t2) || NaN, this.ready && (this.initCropBox(), this.cropped && this.renderCropBox())), this;
}, setDragMode: function(t2) {
  var i2 = this.options, a2 = this.dragBox, e2 = this.face;
  if (this.ready && !this.disabled) {
    var n2 = t2 === st, o2 = i2.movable && t2 === ct;
    t2 = n2 || o2 ? t2 : dt, i2.dragMode = t2, Kt(a2, lt, t2), Vt(a2, tt, n2), Vt(a2, pt, o2), i2.cropBoxMovable || (Kt(e2, lt, t2), Vt(e2, tt, n2), Vt(e2, pt, o2));
  }
  return this;
} }, wi = q.Cropper, yi = function() {
  function t2(i2) {
    var a2 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {};
    if (function(t3, i3) {
      if (!(t3 instanceof i3)) throw new TypeError("Cannot call a class as a function");
    }(this, t2), !i2 || !Bt.test(i2.tagName)) throw new Error("The first argument is required and must be an <img> or <canvas> element.");
    this.element = i2, this.options = Ut({}, Tt, $t(a2) && a2), this.cropped = false, this.disabled = false, this.pointers = {}, this.ready = false, this.reloading = false, this.replaced = false, this.sized = false, this.sizing = false, this.init();
  }
  return function(t3, i2, a2) {
    R(t3.prototype, i2), R(t3, a2), Object.defineProperty(t3, "prototype", { writable: false });
  }(t2, [{ key: "init", value: function() {
    var t3, i2 = this.element, a2 = i2.tagName.toLowerCase();
    if (!i2[U]) {
      if (i2[U] = this, "img" === a2) {
        if (this.isImg = true, t3 = i2.getAttribute("src") || "", this.originalUrl = t3, !t3) return;
        t3 = i2.src;
      } else "canvas" === a2 && (undefined).HTMLCanvasElement && (t3 = i2.toDataURL());
      this.load(t3);
    }
  } }, { key: "load", value: function(t3) {
    var i2 = this;
    if (t3) {
      this.url = t3, this.imageData = {};
      var a2 = this.element, e2 = this.options;
      if (!e2.rotatable && !e2.scalable && (e2.checkOrientation = false), !e2.checkOrientation || !(undefined).ArrayBuffer) return void this.clone();
      if (Ct.test(t3)) return void (Dt.test(t3) ? this.read(function(t4) {
        var i3 = t4.replace(mi, ""), a3 = atob(i3), e3 = new ArrayBuffer(a3.length), n3 = new Uint8Array(e3);
        return qt(n3, function(t5, i4) {
          n3[i4] = a3.charCodeAt(i4);
        }), e3;
      }(t3)) : this.clone());
      var n2 = new (undefined)(), o2 = this.clone.bind(this);
      this.reloading = true, this.xhr = n2, n2.onabort = o2, n2.onerror = o2, n2.ontimeout = o2, n2.onprogress = function() {
        n2.getResponseHeader("content-type") !== zt && n2.abort();
      }, n2.onload = function() {
        i2.read(n2.response);
      }, n2.onloadend = function() {
        i2.reloading = false, i2.xhr = null;
      }, e2.checkCrossOrigin && pi(t3) && a2.crossOrigin && (t3 = li(t3)), n2.open("GET", t3, true), n2.responseType = "arraybuffer", n2.withCredentials = "use-credentials" === a2.crossOrigin, n2.send();
    }
  } }, { key: "read", value: function(t3) {
    var i2 = this.options, a2 = this.imageData, e2 = hi(t3), n2 = 0, o2 = 1, p2 = 1;
    if (e2 > 1) {
      this.url = function(t4, i3) {
        for (var a3 = [], e3 = new Uint8Array(t4); e3.length > 0; ) a3.push(di.apply(null, It(e3.subarray(0, 8192)))), e3 = e3.subarray(8192);
        return "data:".concat(i3, ";base64,").concat(btoa(a3.join("")));
      }(t3, zt);
      var l2 = function(t4) {
        var i3 = 0, a3 = 1, e3 = 1;
        switch (t4) {
          case 2:
            a3 = -1;
            break;
          case 3:
            i3 = -180;
            break;
          case 4:
            e3 = -1;
            break;
          case 5:
            i3 = 90, e3 = -1;
            break;
          case 6:
            i3 = 90;
            break;
          case 7:
            i3 = 90, a3 = -1;
            break;
          case 8:
            i3 = -90;
        }
        return { rotate: i3, scaleX: a3, scaleY: e3 };
      }(e2);
      n2 = l2.rotate, o2 = l2.scaleX, p2 = l2.scaleY;
    }
    i2.rotatable && (a2.rotate = n2), i2.scalable && (a2.scaleX = o2, a2.scaleY = p2), this.clone();
  } }, { key: "clone", value: function() {
    var t3 = this.element, i2 = this.url, a2 = t3.crossOrigin, e2 = i2;
    this.options.checkCrossOrigin && pi(i2) && (a2 || (a2 = "anonymous"), e2 = li(i2)), this.crossOrigin = a2, this.crossOriginUrl = e2;
    var n2 = (undefined).createElement("img");
    a2 && (n2.crossOrigin = a2), n2.src = e2 || i2, n2.alt = t3.alt || "The image to crop", this.image = n2, n2.onload = this.start.bind(this), n2.onerror = this.stop.bind(this), Xt(n2, et), t3.parentNode.insertBefore(n2, t3.nextSibling);
  } }, { key: "start", value: function() {
    var t3 = this, i2 = this.image;
    i2.onload = null, i2.onerror = null, this.sizing = true;
    var a2 = q.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(q.navigator.userAgent), e2 = function(i3, a3) {
      Ut(t3.imageData, { naturalWidth: i3, naturalHeight: a3, aspectRatio: i3 / a3 }), t3.initialImageData = Ut({}, t3.imageData), t3.sizing = false, t3.sized = true, t3.build();
    };
    if (!i2.naturalWidth || a2) {
      var n2 = (undefined).createElement("img"), o2 = (undefined).body || (undefined).documentElement;
      this.sizingImage = n2, n2.onload = function() {
        e2(n2.width, n2.height), a2 || o2.removeChild(n2);
      }, n2.src = i2.src, a2 || (n2.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;", o2.appendChild(n2));
    } else e2(i2.naturalWidth, i2.naturalHeight);
  } }, { key: "stop", value: function() {
    var t3 = this.image;
    t3.onload = null, t3.onerror = null, t3.parentNode.removeChild(t3), this.image = null;
  } }, { key: "build", value: function() {
    if (this.sized && !this.ready) {
      var t3 = this.element, i2 = this.options, a2 = this.image, e2 = t3.parentNode, n2 = (undefined).createElement("div");
      n2.innerHTML = '<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>';
      var o2 = n2.querySelector(".".concat(U, "-container")), p2 = o2.querySelector(".".concat(U, "-canvas")), l2 = o2.querySelector(".".concat(U, "-drag-box")), r2 = o2.querySelector(".".concat(U, "-crop-box")), s2 = r2.querySelector(".".concat(U, "-face"));
      this.container = e2, this.cropper = o2, this.canvas = p2, this.dragBox = l2, this.cropBox = r2, this.viewBox = o2.querySelector(".".concat(U, "-view-box")), this.face = s2, p2.appendChild(a2), Xt(t3, at), e2.insertBefore(o2, t3.nextSibling), Yt(a2, et), this.initPreview(), this.bind(), i2.initialAspectRatio = Math.max(0, i2.initialAspectRatio) || NaN, i2.aspectRatio = Math.max(0, i2.aspectRatio) || NaN, i2.viewMode = Math.max(0, Math.min(3, Math.round(i2.viewMode))) || 0, Xt(r2, at), i2.guides || Xt(r2.getElementsByClassName("".concat(U, "-dashed")), at), i2.center || Xt(r2.getElementsByClassName("".concat(U, "-center")), at), i2.background && Xt(o2, "".concat(U, "-bg")), i2.highlight || Xt(s2, nt), i2.cropBoxMovable && (Xt(s2, pt), Kt(s2, lt, W)), i2.cropBoxResizable || (Xt(r2.getElementsByClassName("".concat(U, "-line")), at), Xt(r2.getElementsByClassName("".concat(U, "-point")), at)), this.render(), this.ready = true, this.setDragMode(i2.dragMode), i2.autoCrop && this.crop(), this.setData(i2.data), _t(i2.ready) && ii(t3, wt, i2.ready, { once: true }), ai(t3, wt);
    }
  } }, { key: "unbuild", value: function() {
    if (this.ready) {
      this.ready = false, this.unbind(), this.resetPreview();
      var t3 = this.cropper.parentNode;
      t3 && t3.removeChild(this.cropper), Yt(this.element, at);
    }
  } }, { key: "uncreate", value: function() {
    this.ready ? (this.unbuild(), this.ready = false, this.cropped = false) : this.sizing ? (this.sizingImage.onload = null, this.sizing = false, this.sized = false) : this.reloading ? (this.xhr.onabort = null, this.xhr.abort()) : this.image && this.stop();
  } }], [{ key: "noConflict", value: function() {
    return (undefined).Cropper = wi, t2;
  } }, { key: "setDefaults", value: function(t3) {
    Ut(Tt, $t(t3) && t3);
  } }]), t2;
}();
function ki(t2) {
  return t2 && t2.__esModule && Object.prototype.hasOwnProperty.call(t2, "default") ? t2.default : t2;
}
function ji() {
  this._types = /* @__PURE__ */ Object.create(null), this._extensions = /* @__PURE__ */ Object.create(null);
  for (let t2 = 0; t2 < arguments.length; t2++) this.define(arguments[t2]);
  this.define = this.define.bind(this), this.getType = this.getType.bind(this), this.getExtension = this.getExtension.bind(this);
}
Ut(yi.prototype, vi, ui, xi, gi, fi, bi), ji.prototype.define = function(t2, i2) {
  for (let a2 in t2) {
    let e2 = t2[a2].map(function(t3) {
      return t3.toLowerCase();
    });
    a2 = a2.toLowerCase();
    for (let t3 = 0; t3 < e2.length; t3++) {
      const n2 = e2[t3];
      if ("*" !== n2[0]) {
        if (!i2 && n2 in this._types) throw new Error('Attempt to change mapping for "' + n2 + '" extension from "' + this._types[n2] + '" to "' + a2 + '". Pass `force=true` to allow this, otherwise remove "' + n2 + '" from the list of extensions for "' + a2 + '".');
        this._types[n2] = a2;
      }
    }
    if (i2 || !this._extensions[a2]) {
      const t3 = e2[0];
      this._extensions[a2] = "*" !== t3[0] ? t3 : t3.substr(1);
    }
  }
}, ji.prototype.getType = function(t2) {
  let i2 = (t2 = String(t2)).replace(/^.*[/\\]/, "").toLowerCase(), a2 = i2.replace(/^.*\./, "").toLowerCase(), e2 = i2.length < t2.length;
  return (a2.length < i2.length - 1 || !e2) && this._types[a2] || null;
}, ji.prototype.getExtension = function(t2) {
  return (t2 = /^\s*([^;\s]*)/.test(t2) && RegExp.$1) && this._extensions[t2.toLowerCase()] || null;
};
const zi = ki(new ji({ "application/andrew-inset": ["ez"], "application/applixware": ["aw"], "application/atom+xml": ["atom"], "application/atomcat+xml": ["atomcat"], "application/atomdeleted+xml": ["atomdeleted"], "application/atomsvc+xml": ["atomsvc"], "application/atsc-dwd+xml": ["dwd"], "application/atsc-held+xml": ["held"], "application/atsc-rsat+xml": ["rsat"], "application/bdoc": ["bdoc"], "application/calendar+xml": ["xcs"], "application/ccxml+xml": ["ccxml"], "application/cdfx+xml": ["cdfx"], "application/cdmi-capability": ["cdmia"], "application/cdmi-container": ["cdmic"], "application/cdmi-domain": ["cdmid"], "application/cdmi-object": ["cdmio"], "application/cdmi-queue": ["cdmiq"], "application/cu-seeme": ["cu"], "application/dash+xml": ["mpd"], "application/davmount+xml": ["davmount"], "application/docbook+xml": ["dbk"], "application/dssc+der": ["dssc"], "application/dssc+xml": ["xdssc"], "application/ecmascript": ["es", "ecma"], "application/emma+xml": ["emma"], "application/emotionml+xml": ["emotionml"], "application/epub+zip": ["epub"], "application/exi": ["exi"], "application/express": ["exp"], "application/fdt+xml": ["fdt"], "application/font-tdpfr": ["pfr"], "application/geo+json": ["geojson"], "application/gml+xml": ["gml"], "application/gpx+xml": ["gpx"], "application/gxf": ["gxf"], "application/gzip": ["gz"], "application/hjson": ["hjson"], "application/hyperstudio": ["stk"], "application/inkml+xml": ["ink", "inkml"], "application/ipfix": ["ipfix"], "application/its+xml": ["its"], "application/java-archive": ["jar", "war", "ear"], "application/java-serialized-object": ["ser"], "application/java-vm": ["class"], "application/javascript": ["js", "mjs"], "application/json": ["json", "map"], "application/json5": ["json5"], "application/jsonml+json": ["jsonml"], "application/ld+json": ["jsonld"], "application/lgr+xml": ["lgr"], "application/lost+xml": ["lostxml"], "application/mac-binhex40": ["hqx"], "application/mac-compactpro": ["cpt"], "application/mads+xml": ["mads"], "application/manifest+json": ["webmanifest"], "application/marc": ["mrc"], "application/marcxml+xml": ["mrcx"], "application/mathematica": ["ma", "nb", "mb"], "application/mathml+xml": ["mathml"], "application/mbox": ["mbox"], "application/mediaservercontrol+xml": ["mscml"], "application/metalink+xml": ["metalink"], "application/metalink4+xml": ["meta4"], "application/mets+xml": ["mets"], "application/mmt-aei+xml": ["maei"], "application/mmt-usd+xml": ["musd"], "application/mods+xml": ["mods"], "application/mp21": ["m21", "mp21"], "application/mp4": ["mp4s", "m4p"], "application/msword": ["doc", "dot"], "application/mxf": ["mxf"], "application/n-quads": ["nq"], "application/n-triples": ["nt"], "application/node": ["cjs"], "application/octet-stream": ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"], "application/oda": ["oda"], "application/oebps-package+xml": ["opf"], "application/ogg": ["ogx"], "application/omdoc+xml": ["omdoc"], "application/onenote": ["onetoc", "onetoc2", "onetmp", "onepkg"], "application/oxps": ["oxps"], "application/p2p-overlay+xml": ["relo"], "application/patch-ops-error+xml": ["xer"], "application/pdf": ["pdf"], "application/pgp-encrypted": ["pgp"], "application/pgp-signature": ["asc", "sig"], "application/pics-rules": ["prf"], "application/pkcs10": ["p10"], "application/pkcs7-mime": ["p7m", "p7c"], "application/pkcs7-signature": ["p7s"], "application/pkcs8": ["p8"], "application/pkix-attr-cert": ["ac"], "application/pkix-cert": ["cer"], "application/pkix-crl": ["crl"], "application/pkix-pkipath": ["pkipath"], "application/pkixcmp": ["pki"], "application/pls+xml": ["pls"], "application/postscript": ["ai", "eps", "ps"], "application/provenance+xml": ["provx"], "application/pskc+xml": ["pskcxml"], "application/raml+yaml": ["raml"], "application/rdf+xml": ["rdf", "owl"], "application/reginfo+xml": ["rif"], "application/relax-ng-compact-syntax": ["rnc"], "application/resource-lists+xml": ["rl"], "application/resource-lists-diff+xml": ["rld"], "application/rls-services+xml": ["rs"], "application/route-apd+xml": ["rapd"], "application/route-s-tsid+xml": ["sls"], "application/route-usd+xml": ["rusd"], "application/rpki-ghostbusters": ["gbr"], "application/rpki-manifest": ["mft"], "application/rpki-roa": ["roa"], "application/rsd+xml": ["rsd"], "application/rss+xml": ["rss"], "application/rtf": ["rtf"], "application/sbml+xml": ["sbml"], "application/scvp-cv-request": ["scq"], "application/scvp-cv-response": ["scs"], "application/scvp-vp-request": ["spq"], "application/scvp-vp-response": ["spp"], "application/sdp": ["sdp"], "application/senml+xml": ["senmlx"], "application/sensml+xml": ["sensmlx"], "application/set-payment-initiation": ["setpay"], "application/set-registration-initiation": ["setreg"], "application/shf+xml": ["shf"], "application/sieve": ["siv", "sieve"], "application/smil+xml": ["smi", "smil"], "application/sparql-query": ["rq"], "application/sparql-results+xml": ["srx"], "application/srgs": ["gram"], "application/srgs+xml": ["grxml"], "application/sru+xml": ["sru"], "application/ssdl+xml": ["ssdl"], "application/ssml+xml": ["ssml"], "application/swid+xml": ["swidtag"], "application/tei+xml": ["tei", "teicorpus"], "application/thraud+xml": ["tfi"], "application/timestamped-data": ["tsd"], "application/toml": ["toml"], "application/trig": ["trig"], "application/ttml+xml": ["ttml"], "application/ubjson": ["ubj"], "application/urc-ressheet+xml": ["rsheet"], "application/urc-targetdesc+xml": ["td"], "application/voicexml+xml": ["vxml"], "application/wasm": ["wasm"], "application/widget": ["wgt"], "application/winhlp": ["hlp"], "application/wsdl+xml": ["wsdl"], "application/wspolicy+xml": ["wspolicy"], "application/xaml+xml": ["xaml"], "application/xcap-att+xml": ["xav"], "application/xcap-caps+xml": ["xca"], "application/xcap-diff+xml": ["xdf"], "application/xcap-el+xml": ["xel"], "application/xcap-ns+xml": ["xns"], "application/xenc+xml": ["xenc"], "application/xhtml+xml": ["xhtml", "xht"], "application/xliff+xml": ["xlf"], "application/xml": ["xml", "xsl", "xsd", "rng"], "application/xml-dtd": ["dtd"], "application/xop+xml": ["xop"], "application/xproc+xml": ["xpl"], "application/xslt+xml": ["*xsl", "xslt"], "application/xspf+xml": ["xspf"], "application/xv+xml": ["mxml", "xhvml", "xvml", "xvm"], "application/yang": ["yang"], "application/yin+xml": ["yin"], "application/zip": ["zip"], "audio/3gpp": ["*3gpp"], "audio/adpcm": ["adp"], "audio/amr": ["amr"], "audio/basic": ["au", "snd"], "audio/midi": ["mid", "midi", "kar", "rmi"], "audio/mobile-xmf": ["mxmf"], "audio/mp3": ["*mp3"], "audio/mp4": ["m4a", "mp4a"], "audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"], "audio/ogg": ["oga", "ogg", "spx", "opus"], "audio/s3m": ["s3m"], "audio/silk": ["sil"], "audio/wav": ["wav"], "audio/wave": ["*wav"], "audio/webm": ["weba"], "audio/xm": ["xm"], "font/collection": ["ttc"], "font/otf": ["otf"], "font/ttf": ["ttf"], "font/woff": ["woff"], "font/woff2": ["woff2"], "image/aces": ["exr"], "image/apng": ["apng"], "image/avif": ["avif"], "image/bmp": ["bmp"], "image/cgm": ["cgm"], "image/dicom-rle": ["drle"], "image/emf": ["emf"], "image/fits": ["fits"], "image/g3fax": ["g3"], "image/gif": ["gif"], "image/heic": ["heic"], "image/heic-sequence": ["heics"], "image/heif": ["heif"], "image/heif-sequence": ["heifs"], "image/hej2k": ["hej2"], "image/hsj2": ["hsj2"], "image/ief": ["ief"], "image/jls": ["jls"], "image/jp2": ["jp2", "jpg2"], "image/jpeg": ["jpeg", "jpg", "jpe"], "image/jph": ["jph"], "image/jphc": ["jhc"], "image/jpm": ["jpm"], "image/jpx": ["jpx", "jpf"], "image/jxr": ["jxr"], "image/jxra": ["jxra"], "image/jxrs": ["jxrs"], "image/jxs": ["jxs"], "image/jxsc": ["jxsc"], "image/jxsi": ["jxsi"], "image/jxss": ["jxss"], "image/ktx": ["ktx"], "image/ktx2": ["ktx2"], "image/png": ["png"], "image/sgi": ["sgi"], "image/svg+xml": ["svg", "svgz"], "image/t38": ["t38"], "image/tiff": ["tif", "tiff"], "image/tiff-fx": ["tfx"], "image/webp": ["webp"], "image/wmf": ["wmf"], "message/disposition-notification": ["disposition-notification"], "message/global": ["u8msg"], "message/global-delivery-status": ["u8dsn"], "message/global-disposition-notification": ["u8mdn"], "message/global-headers": ["u8hdr"], "message/rfc822": ["eml", "mime"], "model/3mf": ["3mf"], "model/gltf+json": ["gltf"], "model/gltf-binary": ["glb"], "model/iges": ["igs", "iges"], "model/mesh": ["msh", "mesh", "silo"], "model/mtl": ["mtl"], "model/obj": ["obj"], "model/step+xml": ["stpx"], "model/step+zip": ["stpz"], "model/step-xml+zip": ["stpxz"], "model/stl": ["stl"], "model/vrml": ["wrl", "vrml"], "model/x3d+binary": ["*x3db", "x3dbz"], "model/x3d+fastinfoset": ["x3db"], "model/x3d+vrml": ["*x3dv", "x3dvz"], "model/x3d+xml": ["x3d", "x3dz"], "model/x3d-vrml": ["x3dv"], "text/cache-manifest": ["appcache", "manifest"], "text/calendar": ["ics", "ifb"], "text/coffeescript": ["coffee", "litcoffee"], "text/css": ["css"], "text/csv": ["csv"], "text/html": ["html", "htm", "shtml"], "text/jade": ["jade"], "text/jsx": ["jsx"], "text/less": ["less"], "text/markdown": ["markdown", "md"], "text/mathml": ["mml"], "text/mdx": ["mdx"], "text/n3": ["n3"], "text/plain": ["txt", "text", "conf", "def", "list", "log", "in", "ini"], "text/richtext": ["rtx"], "text/rtf": ["*rtf"], "text/sgml": ["sgml", "sgm"], "text/shex": ["shex"], "text/slim": ["slim", "slm"], "text/spdx": ["spdx"], "text/stylus": ["stylus", "styl"], "text/tab-separated-values": ["tsv"], "text/troff": ["t", "tr", "roff", "man", "me", "ms"], "text/turtle": ["ttl"], "text/uri-list": ["uri", "uris", "urls"], "text/vcard": ["vcard"], "text/vtt": ["vtt"], "text/xml": ["*xml"], "text/yaml": ["yaml", "yml"], "video/3gpp": ["3gp", "3gpp"], "video/3gpp2": ["3g2"], "video/h261": ["h261"], "video/h263": ["h263"], "video/h264": ["h264"], "video/iso.segment": ["m4s"], "video/jpeg": ["jpgv"], "video/jpm": ["*jpm", "jpgm"], "video/mj2": ["mj2", "mjp2"], "video/mp2t": ["ts"], "video/mp4": ["mp4", "mp4v", "mpg4"], "video/mpeg": ["mpeg", "mpg", "mpe", "m1v", "m2v"], "video/ogg": ["ogv"], "video/quicktime": ["qt", "mov"], "video/webm": ["webm"] }, { "application/prs.cww": ["cww"], "application/vnd.1000minds.decision-model+xml": ["1km"], "application/vnd.3gpp.pic-bw-large": ["plb"], "application/vnd.3gpp.pic-bw-small": ["psb"], "application/vnd.3gpp.pic-bw-var": ["pvb"], "application/vnd.3gpp2.tcap": ["tcap"], "application/vnd.3m.post-it-notes": ["pwn"], "application/vnd.accpac.simply.aso": ["aso"], "application/vnd.accpac.simply.imp": ["imp"], "application/vnd.acucobol": ["acu"], "application/vnd.acucorp": ["atc", "acutc"], "application/vnd.adobe.air-application-installer-package+zip": ["air"], "application/vnd.adobe.formscentral.fcdt": ["fcdt"], "application/vnd.adobe.fxp": ["fxp", "fxpl"], "application/vnd.adobe.xdp+xml": ["xdp"], "application/vnd.adobe.xfdf": ["xfdf"], "application/vnd.ahead.space": ["ahead"], "application/vnd.airzip.filesecure.azf": ["azf"], "application/vnd.airzip.filesecure.azs": ["azs"], "application/vnd.amazon.ebook": ["azw"], "application/vnd.americandynamics.acc": ["acc"], "application/vnd.amiga.ami": ["ami"], "application/vnd.android.package-archive": ["apk"], "application/vnd.anser-web-certificate-issue-initiation": ["cii"], "application/vnd.anser-web-funds-transfer-initiation": ["fti"], "application/vnd.antix.game-component": ["atx"], "application/vnd.apple.installer+xml": ["mpkg"], "application/vnd.apple.keynote": ["key"], "application/vnd.apple.mpegurl": ["m3u8"], "application/vnd.apple.numbers": ["numbers"], "application/vnd.apple.pages": ["pages"], "application/vnd.apple.pkpass": ["pkpass"], "application/vnd.aristanetworks.swi": ["swi"], "application/vnd.astraea-software.iota": ["iota"], "application/vnd.audiograph": ["aep"], "application/vnd.balsamiq.bmml+xml": ["bmml"], "application/vnd.blueice.multipass": ["mpm"], "application/vnd.bmi": ["bmi"], "application/vnd.businessobjects": ["rep"], "application/vnd.chemdraw+xml": ["cdxml"], "application/vnd.chipnuts.karaoke-mmd": ["mmd"], "application/vnd.cinderella": ["cdy"], "application/vnd.citationstyles.style+xml": ["csl"], "application/vnd.claymore": ["cla"], "application/vnd.cloanto.rp9": ["rp9"], "application/vnd.clonk.c4group": ["c4g", "c4d", "c4f", "c4p", "c4u"], "application/vnd.cluetrust.cartomobile-config": ["c11amc"], "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"], "application/vnd.commonspace": ["csp"], "application/vnd.contact.cmsg": ["cdbcmsg"], "application/vnd.cosmocaller": ["cmc"], "application/vnd.crick.clicker": ["clkx"], "application/vnd.crick.clicker.keyboard": ["clkk"], "application/vnd.crick.clicker.palette": ["clkp"], "application/vnd.crick.clicker.template": ["clkt"], "application/vnd.crick.clicker.wordbank": ["clkw"], "application/vnd.criticaltools.wbs+xml": ["wbs"], "application/vnd.ctc-posml": ["pml"], "application/vnd.cups-ppd": ["ppd"], "application/vnd.curl.car": ["car"], "application/vnd.curl.pcurl": ["pcurl"], "application/vnd.dart": ["dart"], "application/vnd.data-vision.rdz": ["rdz"], "application/vnd.dbf": ["dbf"], "application/vnd.dece.data": ["uvf", "uvvf", "uvd", "uvvd"], "application/vnd.dece.ttml+xml": ["uvt", "uvvt"], "application/vnd.dece.unspecified": ["uvx", "uvvx"], "application/vnd.dece.zip": ["uvz", "uvvz"], "application/vnd.denovo.fcselayout-link": ["fe_launch"], "application/vnd.dna": ["dna"], "application/vnd.dolby.mlp": ["mlp"], "application/vnd.dpgraph": ["dpg"], "application/vnd.dreamfactory": ["dfac"], "application/vnd.ds-keypoint": ["kpxx"], "application/vnd.dvb.ait": ["ait"], "application/vnd.dvb.service": ["svc"], "application/vnd.dynageo": ["geo"], "application/vnd.ecowin.chart": ["mag"], "application/vnd.enliven": ["nml"], "application/vnd.epson.esf": ["esf"], "application/vnd.epson.msf": ["msf"], "application/vnd.epson.quickanime": ["qam"], "application/vnd.epson.salt": ["slt"], "application/vnd.epson.ssf": ["ssf"], "application/vnd.eszigno3+xml": ["es3", "et3"], "application/vnd.ezpix-album": ["ez2"], "application/vnd.ezpix-package": ["ez3"], "application/vnd.fdf": ["fdf"], "application/vnd.fdsn.mseed": ["mseed"], "application/vnd.fdsn.seed": ["seed", "dataless"], "application/vnd.flographit": ["gph"], "application/vnd.fluxtime.clip": ["ftc"], "application/vnd.framemaker": ["fm", "frame", "maker", "book"], "application/vnd.frogans.fnc": ["fnc"], "application/vnd.frogans.ltf": ["ltf"], "application/vnd.fsc.weblaunch": ["fsc"], "application/vnd.fujitsu.oasys": ["oas"], "application/vnd.fujitsu.oasys2": ["oa2"], "application/vnd.fujitsu.oasys3": ["oa3"], "application/vnd.fujitsu.oasysgp": ["fg5"], "application/vnd.fujitsu.oasysprs": ["bh2"], "application/vnd.fujixerox.ddd": ["ddd"], "application/vnd.fujixerox.docuworks": ["xdw"], "application/vnd.fujixerox.docuworks.binder": ["xbd"], "application/vnd.fuzzysheet": ["fzs"], "application/vnd.genomatix.tuxedo": ["txd"], "application/vnd.geogebra.file": ["ggb"], "application/vnd.geogebra.tool": ["ggt"], "application/vnd.geometry-explorer": ["gex", "gre"], "application/vnd.geonext": ["gxt"], "application/vnd.geoplan": ["g2w"], "application/vnd.geospace": ["g3w"], "application/vnd.gmx": ["gmx"], "application/vnd.google-apps.document": ["gdoc"], "application/vnd.google-apps.presentation": ["gslides"], "application/vnd.google-apps.spreadsheet": ["gsheet"], "application/vnd.google-earth.kml+xml": ["kml"], "application/vnd.google-earth.kmz": ["kmz"], "application/vnd.grafeq": ["gqf", "gqs"], "application/vnd.groove-account": ["gac"], "application/vnd.groove-help": ["ghf"], "application/vnd.groove-identity-message": ["gim"], "application/vnd.groove-injector": ["grv"], "application/vnd.groove-tool-message": ["gtm"], "application/vnd.groove-tool-template": ["tpl"], "application/vnd.groove-vcard": ["vcg"], "application/vnd.hal+xml": ["hal"], "application/vnd.handheld-entertainment+xml": ["zmm"], "application/vnd.hbci": ["hbci"], "application/vnd.hhe.lesson-player": ["les"], "application/vnd.hp-hpgl": ["hpgl"], "application/vnd.hp-hpid": ["hpid"], "application/vnd.hp-hps": ["hps"], "application/vnd.hp-jlyt": ["jlt"], "application/vnd.hp-pcl": ["pcl"], "application/vnd.hp-pclxl": ["pclxl"], "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"], "application/vnd.ibm.minipay": ["mpy"], "application/vnd.ibm.modcap": ["afp", "listafp", "list3820"], "application/vnd.ibm.rights-management": ["irm"], "application/vnd.ibm.secure-container": ["sc"], "application/vnd.iccprofile": ["icc", "icm"], "application/vnd.igloader": ["igl"], "application/vnd.immervision-ivp": ["ivp"], "application/vnd.immervision-ivu": ["ivu"], "application/vnd.insors.igm": ["igm"], "application/vnd.intercon.formnet": ["xpw", "xpx"], "application/vnd.intergeo": ["i2g"], "application/vnd.intu.qbo": ["qbo"], "application/vnd.intu.qfx": ["qfx"], "application/vnd.ipunplugged.rcprofile": ["rcprofile"], "application/vnd.irepository.package+xml": ["irp"], "application/vnd.is-xpr": ["xpr"], "application/vnd.isac.fcs": ["fcs"], "application/vnd.jam": ["jam"], "application/vnd.jcp.javame.midlet-rms": ["rms"], "application/vnd.jisp": ["jisp"], "application/vnd.joost.joda-archive": ["joda"], "application/vnd.kahootz": ["ktz", "ktr"], "application/vnd.kde.karbon": ["karbon"], "application/vnd.kde.kchart": ["chrt"], "application/vnd.kde.kformula": ["kfo"], "application/vnd.kde.kivio": ["flw"], "application/vnd.kde.kontour": ["kon"], "application/vnd.kde.kpresenter": ["kpr", "kpt"], "application/vnd.kde.kspread": ["ksp"], "application/vnd.kde.kword": ["kwd", "kwt"], "application/vnd.kenameaapp": ["htke"], "application/vnd.kidspiration": ["kia"], "application/vnd.kinar": ["kne", "knp"], "application/vnd.koan": ["skp", "skd", "skt", "skm"], "application/vnd.kodak-descriptor": ["sse"], "application/vnd.las.las+xml": ["lasxml"], "application/vnd.llamagraphics.life-balance.desktop": ["lbd"], "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"], "application/vnd.lotus-1-2-3": ["123"], "application/vnd.lotus-approach": ["apr"], "application/vnd.lotus-freelance": ["pre"], "application/vnd.lotus-notes": ["nsf"], "application/vnd.lotus-organizer": ["org"], "application/vnd.lotus-screencam": ["scm"], "application/vnd.lotus-wordpro": ["lwp"], "application/vnd.macports.portpkg": ["portpkg"], "application/vnd.mapbox-vector-tile": ["mvt"], "application/vnd.mcd": ["mcd"], "application/vnd.medcalcdata": ["mc1"], "application/vnd.mediastation.cdkey": ["cdkey"], "application/vnd.mfer": ["mwf"], "application/vnd.mfmp": ["mfm"], "application/vnd.micrografx.flo": ["flo"], "application/vnd.micrografx.igx": ["igx"], "application/vnd.mif": ["mif"], "application/vnd.mobius.daf": ["daf"], "application/vnd.mobius.dis": ["dis"], "application/vnd.mobius.mbk": ["mbk"], "application/vnd.mobius.mqy": ["mqy"], "application/vnd.mobius.msl": ["msl"], "application/vnd.mobius.plc": ["plc"], "application/vnd.mobius.txf": ["txf"], "application/vnd.mophun.application": ["mpn"], "application/vnd.mophun.certificate": ["mpc"], "application/vnd.mozilla.xul+xml": ["xul"], "application/vnd.ms-artgalry": ["cil"], "application/vnd.ms-cab-compressed": ["cab"], "application/vnd.ms-excel": ["xls", "xlm", "xla", "xlc", "xlt", "xlw"], "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"], "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"], "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"], "application/vnd.ms-excel.template.macroenabled.12": ["xltm"], "application/vnd.ms-fontobject": ["eot"], "application/vnd.ms-htmlhelp": ["chm"], "application/vnd.ms-ims": ["ims"], "application/vnd.ms-lrm": ["lrm"], "application/vnd.ms-officetheme": ["thmx"], "application/vnd.ms-outlook": ["msg"], "application/vnd.ms-pki.seccat": ["cat"], "application/vnd.ms-pki.stl": ["*stl"], "application/vnd.ms-powerpoint": ["ppt", "pps", "pot"], "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"], "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"], "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"], "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"], "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"], "application/vnd.ms-project": ["mpp", "mpt"], "application/vnd.ms-word.document.macroenabled.12": ["docm"], "application/vnd.ms-word.template.macroenabled.12": ["dotm"], "application/vnd.ms-works": ["wps", "wks", "wcm", "wdb"], "application/vnd.ms-wpl": ["wpl"], "application/vnd.ms-xpsdocument": ["xps"], "application/vnd.mseq": ["mseq"], "application/vnd.musician": ["mus"], "application/vnd.muvee.style": ["msty"], "application/vnd.mynfc": ["taglet"], "application/vnd.neurolanguage.nlu": ["nlu"], "application/vnd.nitf": ["ntf", "nitf"], "application/vnd.noblenet-directory": ["nnd"], "application/vnd.noblenet-sealer": ["nns"], "application/vnd.noblenet-web": ["nnw"], "application/vnd.nokia.n-gage.ac+xml": ["*ac"], "application/vnd.nokia.n-gage.data": ["ngdat"], "application/vnd.nokia.n-gage.symbian.install": ["n-gage"], "application/vnd.nokia.radio-preset": ["rpst"], "application/vnd.nokia.radio-presets": ["rpss"], "application/vnd.novadigm.edm": ["edm"], "application/vnd.novadigm.edx": ["edx"], "application/vnd.novadigm.ext": ["ext"], "application/vnd.oasis.opendocument.chart": ["odc"], "application/vnd.oasis.opendocument.chart-template": ["otc"], "application/vnd.oasis.opendocument.database": ["odb"], "application/vnd.oasis.opendocument.formula": ["odf"], "application/vnd.oasis.opendocument.formula-template": ["odft"], "application/vnd.oasis.opendocument.graphics": ["odg"], "application/vnd.oasis.opendocument.graphics-template": ["otg"], "application/vnd.oasis.opendocument.image": ["odi"], "application/vnd.oasis.opendocument.image-template": ["oti"], "application/vnd.oasis.opendocument.presentation": ["odp"], "application/vnd.oasis.opendocument.presentation-template": ["otp"], "application/vnd.oasis.opendocument.spreadsheet": ["ods"], "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"], "application/vnd.oasis.opendocument.text": ["odt"], "application/vnd.oasis.opendocument.text-master": ["odm"], "application/vnd.oasis.opendocument.text-template": ["ott"], "application/vnd.oasis.opendocument.text-web": ["oth"], "application/vnd.olpc-sugar": ["xo"], "application/vnd.oma.dd2+xml": ["dd2"], "application/vnd.openblox.game+xml": ["obgx"], "application/vnd.openofficeorg.extension": ["oxt"], "application/vnd.openstreetmap.data+xml": ["osm"], "application/vnd.openxmlformats-officedocument.presentationml.presentation": ["pptx"], "application/vnd.openxmlformats-officedocument.presentationml.slide": ["sldx"], "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ["ppsx"], "application/vnd.openxmlformats-officedocument.presentationml.template": ["potx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ["xltx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ["docx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ["dotx"], "application/vnd.osgeo.mapguide.package": ["mgp"], "application/vnd.osgi.dp": ["dp"], "application/vnd.osgi.subsystem": ["esa"], "application/vnd.palm": ["pdb", "pqa", "oprc"], "application/vnd.pawaafile": ["paw"], "application/vnd.pg.format": ["str"], "application/vnd.pg.osasli": ["ei6"], "application/vnd.picsel": ["efif"], "application/vnd.pmi.widget": ["wg"], "application/vnd.pocketlearn": ["plf"], "application/vnd.powerbuilder6": ["pbd"], "application/vnd.previewsystems.box": ["box"], "application/vnd.proteus.magazine": ["mgz"], "application/vnd.publishare-delta-tree": ["qps"], "application/vnd.pvi.ptid1": ["ptid"], "application/vnd.quark.quarkxpress": ["qxd", "qxt", "qwd", "qwt", "qxl", "qxb"], "application/vnd.rar": ["rar"], "application/vnd.realvnc.bed": ["bed"], "application/vnd.recordare.musicxml": ["mxl"], "application/vnd.recordare.musicxml+xml": ["musicxml"], "application/vnd.rig.cryptonote": ["cryptonote"], "application/vnd.rim.cod": ["cod"], "application/vnd.rn-realmedia": ["rm"], "application/vnd.rn-realmedia-vbr": ["rmvb"], "application/vnd.route66.link66+xml": ["link66"], "application/vnd.sailingtracker.track": ["st"], "application/vnd.seemail": ["see"], "application/vnd.sema": ["sema"], "application/vnd.semd": ["semd"], "application/vnd.semf": ["semf"], "application/vnd.shana.informed.formdata": ["ifm"], "application/vnd.shana.informed.formtemplate": ["itp"], "application/vnd.shana.informed.interchange": ["iif"], "application/vnd.shana.informed.package": ["ipk"], "application/vnd.simtech-mindmapper": ["twd", "twds"], "application/vnd.smaf": ["mmf"], "application/vnd.smart.teacher": ["teacher"], "application/vnd.software602.filler.form+xml": ["fo"], "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"], "application/vnd.spotfire.dxp": ["dxp"], "application/vnd.spotfire.sfs": ["sfs"], "application/vnd.stardivision.calc": ["sdc"], "application/vnd.stardivision.draw": ["sda"], "application/vnd.stardivision.impress": ["sdd"], "application/vnd.stardivision.math": ["smf"], "application/vnd.stardivision.writer": ["sdw", "vor"], "application/vnd.stardivision.writer-global": ["sgl"], "application/vnd.stepmania.package": ["smzip"], "application/vnd.stepmania.stepchart": ["sm"], "application/vnd.sun.wadl+xml": ["wadl"], "application/vnd.sun.xml.calc": ["sxc"], "application/vnd.sun.xml.calc.template": ["stc"], "application/vnd.sun.xml.draw": ["sxd"], "application/vnd.sun.xml.draw.template": ["std"], "application/vnd.sun.xml.impress": ["sxi"], "application/vnd.sun.xml.impress.template": ["sti"], "application/vnd.sun.xml.math": ["sxm"], "application/vnd.sun.xml.writer": ["sxw"], "application/vnd.sun.xml.writer.global": ["sxg"], "application/vnd.sun.xml.writer.template": ["stw"], "application/vnd.sus-calendar": ["sus", "susp"], "application/vnd.svd": ["svd"], "application/vnd.symbian.install": ["sis", "sisx"], "application/vnd.syncml+xml": ["xsm"], "application/vnd.syncml.dm+wbxml": ["bdm"], "application/vnd.syncml.dm+xml": ["xdm"], "application/vnd.syncml.dmddf+xml": ["ddf"], "application/vnd.tao.intent-module-archive": ["tao"], "application/vnd.tcpdump.pcap": ["pcap", "cap", "dmp"], "application/vnd.tmobile-livetv": ["tmo"], "application/vnd.trid.tpt": ["tpt"], "application/vnd.triscape.mxs": ["mxs"], "application/vnd.trueapp": ["tra"], "application/vnd.ufdl": ["ufd", "ufdl"], "application/vnd.uiq.theme": ["utz"], "application/vnd.umajin": ["umj"], "application/vnd.unity": ["unityweb"], "application/vnd.uoml+xml": ["uoml"], "application/vnd.vcx": ["vcx"], "application/vnd.visio": ["vsd", "vst", "vss", "vsw"], "application/vnd.visionary": ["vis"], "application/vnd.vsf": ["vsf"], "application/vnd.wap.wbxml": ["wbxml"], "application/vnd.wap.wmlc": ["wmlc"], "application/vnd.wap.wmlscriptc": ["wmlsc"], "application/vnd.webturbo": ["wtb"], "application/vnd.wolfram.player": ["nbp"], "application/vnd.wordperfect": ["wpd"], "application/vnd.wqd": ["wqd"], "application/vnd.wt.stf": ["stf"], "application/vnd.xara": ["xar"], "application/vnd.xfdl": ["xfdl"], "application/vnd.yamaha.hv-dic": ["hvd"], "application/vnd.yamaha.hv-script": ["hvs"], "application/vnd.yamaha.hv-voice": ["hvp"], "application/vnd.yamaha.openscoreformat": ["osf"], "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"], "application/vnd.yamaha.smaf-audio": ["saf"], "application/vnd.yamaha.smaf-phrase": ["spf"], "application/vnd.yellowriver-custom-menu": ["cmp"], "application/vnd.zul": ["zir", "zirz"], "application/vnd.zzazz.deck+xml": ["zaz"], "application/x-7z-compressed": ["7z"], "application/x-abiword": ["abw"], "application/x-ace-compressed": ["ace"], "application/x-apple-diskimage": ["*dmg"], "application/x-arj": ["arj"], "application/x-authorware-bin": ["aab", "x32", "u32", "vox"], "application/x-authorware-map": ["aam"], "application/x-authorware-seg": ["aas"], "application/x-bcpio": ["bcpio"], "application/x-bdoc": ["*bdoc"], "application/x-bittorrent": ["torrent"], "application/x-blorb": ["blb", "blorb"], "application/x-bzip": ["bz"], "application/x-bzip2": ["bz2", "boz"], "application/x-cbr": ["cbr", "cba", "cbt", "cbz", "cb7"], "application/x-cdlink": ["vcd"], "application/x-cfs-compressed": ["cfs"], "application/x-chat": ["chat"], "application/x-chess-pgn": ["pgn"], "application/x-chrome-extension": ["crx"], "application/x-cocoa": ["cco"], "application/x-conference": ["nsc"], "application/x-cpio": ["cpio"], "application/x-csh": ["csh"], "application/x-debian-package": ["*deb", "udeb"], "application/x-dgc-compressed": ["dgc"], "application/x-director": ["dir", "dcr", "dxr", "cst", "cct", "cxt", "w3d", "fgd", "swa"], "application/x-doom": ["wad"], "application/x-dtbncx+xml": ["ncx"], "application/x-dtbook+xml": ["dtb"], "application/x-dtbresource+xml": ["res"], "application/x-dvi": ["dvi"], "application/x-envoy": ["evy"], "application/x-eva": ["eva"], "application/x-font-bdf": ["bdf"], "application/x-font-ghostscript": ["gsf"], "application/x-font-linux-psf": ["psf"], "application/x-font-pcf": ["pcf"], "application/x-font-snf": ["snf"], "application/x-font-type1": ["pfa", "pfb", "pfm", "afm"], "application/x-freearc": ["arc"], "application/x-futuresplash": ["spl"], "application/x-gca-compressed": ["gca"], "application/x-glulx": ["ulx"], "application/x-gnumeric": ["gnumeric"], "application/x-gramps-xml": ["gramps"], "application/x-gtar": ["gtar"], "application/x-hdf": ["hdf"], "application/x-httpd-php": ["php"], "application/x-install-instructions": ["install"], "application/x-iso9660-image": ["*iso"], "application/x-iwork-keynote-sffkey": ["*key"], "application/x-iwork-numbers-sffnumbers": ["*numbers"], "application/x-iwork-pages-sffpages": ["*pages"], "application/x-java-archive-diff": ["jardiff"], "application/x-java-jnlp-file": ["jnlp"], "application/x-keepass2": ["kdbx"], "application/x-latex": ["latex"], "application/x-lua-bytecode": ["luac"], "application/x-lzh-compressed": ["lzh", "lha"], "application/x-makeself": ["run"], "application/x-mie": ["mie"], "application/x-mobipocket-ebook": ["prc", "mobi"], "application/x-ms-application": ["application"], "application/x-ms-shortcut": ["lnk"], "application/x-ms-wmd": ["wmd"], "application/x-ms-wmz": ["wmz"], "application/x-ms-xbap": ["xbap"], "application/x-msaccess": ["mdb"], "application/x-msbinder": ["obd"], "application/x-mscardfile": ["crd"], "application/x-msclip": ["clp"], "application/x-msdos-program": ["*exe"], "application/x-msdownload": ["*exe", "*dll", "com", "bat", "*msi"], "application/x-msmediaview": ["mvb", "m13", "m14"], "application/x-msmetafile": ["*wmf", "*wmz", "*emf", "emz"], "application/x-msmoney": ["mny"], "application/x-mspublisher": ["pub"], "application/x-msschedule": ["scd"], "application/x-msterminal": ["trm"], "application/x-mswrite": ["wri"], "application/x-netcdf": ["nc", "cdf"], "application/x-ns-proxy-autoconfig": ["pac"], "application/x-nzb": ["nzb"], "application/x-perl": ["pl", "pm"], "application/x-pilot": ["*prc", "*pdb"], "application/x-pkcs12": ["p12", "pfx"], "application/x-pkcs7-certificates": ["p7b", "spc"], "application/x-pkcs7-certreqresp": ["p7r"], "application/x-rar-compressed": ["*rar"], "application/x-redhat-package-manager": ["rpm"], "application/x-research-info-systems": ["ris"], "application/x-sea": ["sea"], "application/x-sh": ["sh"], "application/x-shar": ["shar"], "application/x-shockwave-flash": ["swf"], "application/x-silverlight-app": ["xap"], "application/x-sql": ["sql"], "application/x-stuffit": ["sit"], "application/x-stuffitx": ["sitx"], "application/x-subrip": ["srt"], "application/x-sv4cpio": ["sv4cpio"], "application/x-sv4crc": ["sv4crc"], "application/x-t3vm-image": ["t3"], "application/x-tads": ["gam"], "application/x-tar": ["tar"], "application/x-tcl": ["tcl", "tk"], "application/x-tex": ["tex"], "application/x-tex-tfm": ["tfm"], "application/x-texinfo": ["texinfo", "texi"], "application/x-tgif": ["*obj"], "application/x-ustar": ["ustar"], "application/x-virtualbox-hdd": ["hdd"], "application/x-virtualbox-ova": ["ova"], "application/x-virtualbox-ovf": ["ovf"], "application/x-virtualbox-vbox": ["vbox"], "application/x-virtualbox-vbox-extpack": ["vbox-extpack"], "application/x-virtualbox-vdi": ["vdi"], "application/x-virtualbox-vhd": ["vhd"], "application/x-virtualbox-vmdk": ["vmdk"], "application/x-wais-source": ["src"], "application/x-web-app-manifest+json": ["webapp"], "application/x-x509-ca-cert": ["der", "crt", "pem"], "application/x-xfig": ["fig"], "application/x-xliff+xml": ["*xlf"], "application/x-xpinstall": ["xpi"], "application/x-xz": ["xz"], "application/x-zmachine": ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"], "audio/vnd.dece.audio": ["uva", "uvva"], "audio/vnd.digital-winds": ["eol"], "audio/vnd.dra": ["dra"], "audio/vnd.dts": ["dts"], "audio/vnd.dts.hd": ["dtshd"], "audio/vnd.lucent.voice": ["lvp"], "audio/vnd.ms-playready.media.pya": ["pya"], "audio/vnd.nuera.ecelp4800": ["ecelp4800"], "audio/vnd.nuera.ecelp7470": ["ecelp7470"], "audio/vnd.nuera.ecelp9600": ["ecelp9600"], "audio/vnd.rip": ["rip"], "audio/x-aac": ["aac"], "audio/x-aiff": ["aif", "aiff", "aifc"], "audio/x-caf": ["caf"], "audio/x-flac": ["flac"], "audio/x-m4a": ["*m4a"], "audio/x-matroska": ["mka"], "audio/x-mpegurl": ["m3u"], "audio/x-ms-wax": ["wax"], "audio/x-ms-wma": ["wma"], "audio/x-pn-realaudio": ["ram", "ra"], "audio/x-pn-realaudio-plugin": ["rmp"], "audio/x-realaudio": ["*ra"], "audio/x-wav": ["*wav"], "chemical/x-cdx": ["cdx"], "chemical/x-cif": ["cif"], "chemical/x-cmdf": ["cmdf"], "chemical/x-cml": ["cml"], "chemical/x-csml": ["csml"], "chemical/x-xyz": ["xyz"], "image/prs.btif": ["btif"], "image/prs.pti": ["pti"], "image/vnd.adobe.photoshop": ["psd"], "image/vnd.airzip.accelerator.azv": ["azv"], "image/vnd.dece.graphic": ["uvi", "uvvi", "uvg", "uvvg"], "image/vnd.djvu": ["djvu", "djv"], "image/vnd.dvb.subtitle": ["*sub"], "image/vnd.dwg": ["dwg"], "image/vnd.dxf": ["dxf"], "image/vnd.fastbidsheet": ["fbs"], "image/vnd.fpx": ["fpx"], "image/vnd.fst": ["fst"], "image/vnd.fujixerox.edmics-mmr": ["mmr"], "image/vnd.fujixerox.edmics-rlc": ["rlc"], "image/vnd.microsoft.icon": ["ico"], "image/vnd.ms-dds": ["dds"], "image/vnd.ms-modi": ["mdi"], "image/vnd.ms-photo": ["wdp"], "image/vnd.net-fpx": ["npx"], "image/vnd.pco.b16": ["b16"], "image/vnd.tencent.tap": ["tap"], "image/vnd.valve.source.texture": ["vtf"], "image/vnd.wap.wbmp": ["wbmp"], "image/vnd.xiff": ["xif"], "image/vnd.zbrush.pcx": ["pcx"], "image/x-3ds": ["3ds"], "image/x-cmu-raster": ["ras"], "image/x-cmx": ["cmx"], "image/x-freehand": ["fh", "fhc", "fh4", "fh5", "fh7"], "image/x-icon": ["*ico"], "image/x-jng": ["jng"], "image/x-mrsid-image": ["sid"], "image/x-ms-bmp": ["*bmp"], "image/x-pcx": ["*pcx"], "image/x-pict": ["pic", "pct"], "image/x-portable-anymap": ["pnm"], "image/x-portable-bitmap": ["pbm"], "image/x-portable-graymap": ["pgm"], "image/x-portable-pixmap": ["ppm"], "image/x-rgb": ["rgb"], "image/x-tga": ["tga"], "image/x-xbitmap": ["xbm"], "image/x-xpixmap": ["xpm"], "image/x-xwindowdump": ["xwd"], "message/vnd.wfa.wsc": ["wsc"], "model/vnd.collada+xml": ["dae"], "model/vnd.dwf": ["dwf"], "model/vnd.gdl": ["gdl"], "model/vnd.gtw": ["gtw"], "model/vnd.mts": ["mts"], "model/vnd.opengex": ["ogex"], "model/vnd.parasolid.transmit.binary": ["x_b"], "model/vnd.parasolid.transmit.text": ["x_t"], "model/vnd.sap.vds": ["vds"], "model/vnd.usdz+zip": ["usdz"], "model/vnd.valve.source.compiled-map": ["bsp"], "model/vnd.vtu": ["vtu"], "text/prs.lines.tag": ["dsc"], "text/vnd.curl": ["curl"], "text/vnd.curl.dcurl": ["dcurl"], "text/vnd.curl.mcurl": ["mcurl"], "text/vnd.curl.scurl": ["scurl"], "text/vnd.dvb.subtitle": ["sub"], "text/vnd.fly": ["fly"], "text/vnd.fmi.flexstor": ["flx"], "text/vnd.graphviz": ["gv"], "text/vnd.in3d.3dml": ["3dml"], "text/vnd.in3d.spot": ["spot"], "text/vnd.sun.j2me.app-descriptor": ["jad"], "text/vnd.wap.wml": ["wml"], "text/vnd.wap.wmlscript": ["wmls"], "text/x-asm": ["s", "asm"], "text/x-c": ["c", "cc", "cxx", "cpp", "h", "hh", "dic"], "text/x-component": ["htc"], "text/x-fortran": ["f", "for", "f77", "f90"], "text/x-handlebars-template": ["hbs"], "text/x-java-source": ["java"], "text/x-lua": ["lua"], "text/x-markdown": ["mkd"], "text/x-nfo": ["nfo"], "text/x-opml": ["opml"], "text/x-org": ["*org"], "text/x-pascal": ["p", "pas"], "text/x-processing": ["pde"], "text/x-sass": ["sass"], "text/x-scss": ["scss"], "text/x-setext": ["etx"], "text/x-sfv": ["sfv"], "text/x-suse-ymp": ["ymp"], "text/x-uuencode": ["uu"], "text/x-vcalendar": ["vcs"], "text/x-vcard": ["vcf"], "video/vnd.dece.hd": ["uvh", "uvvh"], "video/vnd.dece.mobile": ["uvm", "uvvm"], "video/vnd.dece.pd": ["uvp", "uvvp"], "video/vnd.dece.sd": ["uvs", "uvvs"], "video/vnd.dece.video": ["uvv", "uvvv"], "video/vnd.dvb.file": ["dvb"], "video/vnd.fvt": ["fvt"], "video/vnd.mpegurl": ["mxu", "m4u"], "video/vnd.ms-playready.media.pyv": ["pyv"], "video/vnd.uvvu.mp4": ["uvu", "uvvu"], "video/vnd.vivo": ["viv"], "video/x-f4v": ["f4v"], "video/x-fli": ["fli"], "video/x-flv": ["flv"], "video/x-m4v": ["m4v"], "video/x-matroska": ["mkv", "mk3d", "mks"], "video/x-mng": ["mng"], "video/x-ms-asf": ["asf", "asx"], "video/x-ms-vob": ["vob"], "video/x-ms-wm": ["wm"], "video/x-ms-wmv": ["wmv"], "video/x-ms-wmx": ["wmx"], "video/x-ms-wvx": ["wvx"], "video/x-msvideo": ["avi"], "video/x-sgi-movie": ["movie"], "video/x-smv": ["smv"], "x-conference/x-cooltalk": ["ice"] }));
function Mi(t2) {
  return "object" === function(t3) {
    return Object.prototype.toString.call(t3).slice(8, -1).toLowerCase();
  }(t2);
}
function Ci({ type: t2, id: i2, resource: a2 }) {
  return new Promise((t3, i3) => {
    i3();
  });
}
function Bi({ mode: t2, dataURI: i2 }) {
  return "round" === t2 ? "image/png" : function(t3) {
    return t3.startsWith("data") && t3.includes("base64") ? t3.split(",")[0].replace(/data:(.*);base64/, "$1") : zi.getType(t3) || "";
  }(i2);
}
function Ti(t2) {
  const i2 = (undefined).createElement("canvas"), a2 = i2.getContext("2d");
  if (!a2) return i2;
  const { width: e2, height: n2 } = t2;
  return i2.width = e2, i2.height = n2, a2.imageSmoothingEnabled = true, a2.drawImage(t2, 0, 0, e2, n2), a2.globalCompositeOperation = "destination-in", a2.beginPath(), a2.arc(e2 / 2, n2 / 2, Math.min(e2, n2) / 2, 0, 2 * Math.PI, true), a2.fill(), i2;
}
function Ei(t2, i2 = {}) {
  if (!Mi(t2)) return i2;
  const { mode: a2, width: e2, height: n2 } = t2;
  switch (a2) {
    case "fixedSize":
    case "round":
      i2.width = e2, i2.height = n2;
  }
  return i2;
}
const Ai = { img: { type: String, required: true, default: "" }, boxStyle: { type: Object, required: false, default: () => ({}) }, options: { type: Object, required: false, default: () => ({}) }, presetMode: { type: Object, required: false, default: () => ({}) } };
let Si;
Ci({ type: "style", id: "cropperjs", resource: '/*!\n * Cropper.js v1.6.1\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2023-09-17T03:44:17.565Z\n */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}\n' }).catch((t2) => {
}), Ci({ type: "style", id: "vue-picture-cropper", resource: ".vue--picture-cropper__wrap{width:100%;height:100%;margin:0}.vue--picture-cropper__img{display:block;width:auto;height:auto;max-width:100%;max-height:100%}.vue--picture-cropper__wrap-round .cropper-view-box,.vue--picture-cropper__wrap-round .cropper-face{border-radius:50%}\n" }).catch((t2) => {
});
const Li = defineComponent({ name: "VuePictureCropper", props: Ai, setup(t2) {
  const i2 = ref(), l2 = ref("");
  async function r2() {
    await nextTick();
    const a2 = (undefined).setInterval(() => {
      if (i2.value) try {
        Si = new yi(i2.value, t2.options), (void 0).clearInterval(a2), s2(), l2.value = Bi({ mode: t2.presetMode.mode, dataURI: t2.img }), i2.value.addEventListener("ready", () => {
          !function() {
            if (!Mi(t2.presetMode)) return;
            const { mode: i3, width: a3, height: e2 } = t2.presetMode;
            switch (i3) {
              case "fixedSize":
              case "round":
                Si.setCropBoxData({ width: a3, height: e2 });
            }
          }();
        });
      } catch (e2) {
      }
    }, 10);
  }
  function s2() {
    Si.getDataURL = c2, Si.getBlob = d2, Si.getFile = m2;
  }
  function c2(i3 = {}) {
    i3 = Ei(t2.presetMode, i3);
    try {
      let a2 = Si.getCroppedCanvas(i3);
      return "round" === t2.presetMode.mode && (a2 = Ti(a2)), a2.toDataURL(l2.value);
    } catch {
      return "";
    }
  }
  async function d2(i3 = {}) {
    return i3 = Ei(t2.presetMode, i3), new Promise((a2) => {
      try {
        let e2 = Si.getCroppedCanvas(i3);
        "round" === t2.presetMode.mode && (e2 = Ti(e2)), e2.toBlob((t3) => {
          a2(t3);
        }, l2.value);
      } catch {
        a2(null);
      }
    });
  }
  async function m2(t3 = {}) {
    const { fileName: i3 } = t3, a2 = l2.value.replace(/image\//, ""), e2 = i3 ? `${i3}.${a2}` : `cropped-${Date.now()}.${a2}`, n2 = await d2(t3);
    return n2 ? new File([n2], e2, { type: l2.value }) : null;
  }
  return watch(() => t2.img, async () => {
    if (Si) try {
      Si.replace(t2.img), l2.value = Bi({ mode: t2.presetMode.mode, dataURI: t2.img }), s2();
    } catch (i3) {
    }
    else await r2();
  }, { immediate: true }), onBeforeUnmount(() => {
    Si && (Si.destroy(), Si = null);
  }), () => createVNode("div", { class: "vue--picture-cropper__wrap " + ("round" === t2.presetMode.mode ? "vue--picture-cropper__wrap-round" : ""), style: t2.boxStyle }, [createVNode("img", { ref: i2, class: "vue--picture-cropper__img", src: t2.img }, null)]);
} }), Oi = defineComponent({ __name: "CropperImg", __ssrInlineRender: true, props: { defaultImage: { type: String }, attachment: { type: Boolean } }, emits: ["uploaded"], setup(i2, { emit: e2 }) {
  Qt$1().$axios;
  const n2 = ref(false);
  ref(null);
  const o2 = ref(""), p2 = reactive({ dataURL: "", blobURL: "" });
  function c2() {
  }
  return (a2, e3, l2, d2) => {
    const m2 = g;
    e3(`<div${ssrRenderAttrs(mergeProps({ class: "live-demo" }, d2))}><section class="section"><div class="relative w-fit"><img${ssrRenderAttr("src", unref(p2).dataURL ? unref(p2).dataURL : i2.defaultImage)} class="size-[154px] object-cover" alt="profile"${ssrRenderAttr("draggable", false)}><label class="cursor-pointer absolute z-10 -bottom-2 -end-2 bg-white size-10 border border-[#E5E5E5] rounded-full flex items-center justify-center" for="profileImage">`), e3(ssrRenderComponent(m2, { name: "edit" }, null, l2)), e3('</label></div><button class="select-picture hidden"><input id="profileImage" type="file" accept="image/jpg, image/jpeg, image/png, image/gif"></button></section>'), unref(p2).dataURL && unref(p2).blobURL, e3("<!---->"), ssrRenderTeleport(e3, (t2) => {
      unref(n2) ? (t2(`<div class="fixed top-0 left-0 w-full h-[100dvh] bg-[#0000007a] z-[100]"><div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"><div class="modal-mask"></div><div class="modal-scroll-view"><div class="modal bg-[#222] p-3 rounded-xl"><div class="modal-title flex items-center justify-between gap-3 mb-3"><span class="title text-white">${ssrInterpolate(a2.$t("TITLES.crop_image"))}</span><div class="tools flex items-center gap-3"><button class="btn h-[30px] min-w-[100px] bg-white rounded hover:bg-[#eee]">${ssrInterpolate(a2.$t("TITLES.cancel"))}</button><button class="btn h-[30px] min-w-[100px] bg-white rounded hover:bg-[#eee]">${ssrInterpolate(a2.$t("TITLES.clear"))}</button><button class="btn h-[30px] min-w-[100px] bg-white rounded hover:bg-[#eee]">${ssrInterpolate(a2.$t("TITLES.reset"))}</button><button class="btn h-[30px] min-w-[100px] bg-white rounded hover:bg-[#eee]">${ssrInterpolate(a2.$t("TITLES.submit"))}</button></div></div><div class="modal-content h-[500px] overflow-auto rounded-lg">`), t2(ssrRenderComponent(unref(Li), { boxStyle: { width: "100%", height: "100%", backgroundColor: "#f8f8f8", margin: "auto" }, img: unref(o2), options: { viewMode: 1, dragMode: "crop", aspectRatio: 1 }, onReady: c2 }, null, l2)), t2("</div></div></div></div></div>")) : t2("<!---->");
    }, "body", false, l2), e3("</div>");
  };
} }), Ri = Oi.setup;
Oi.setup = (t2, i2) => {
  const a2 = useSSRContext();
  return (a2.modules || (a2.modules = /* @__PURE__ */ new Set())).add("components/CropperImg.vue"), Ri ? Ri(t2, i2) : undefined;
};
const $i = { __name: "index", __ssrInlineRender: true, setup(i2) {
  var e2, n2;
  const { public: { profileName: p2 } } = Zt$1(), l2 = gn(p2).value, c2 = ef(), f2 = Qt$1().$axios, { t: S2 } = Qs(), L2 = ref([{ id: "male", name: "Male" }, { id: "female", name: "Female" }]), O2 = ref({ image: null == l2 ? undefined : l2.image, name: null == l2 ? undefined : l2.name, email: null == l2 ? undefined : l2.email, phone: { phone_number: null == l2 ? undefined : l2.phone, phone_code: null == l2 ? undefined : l2.phone_code }, birthday: null == l2 ? undefined : l2.date_of_birth, type: L2.value.find((t2) => t2.id === (null == l2 ? undefined : l2.gender)), country: (null == l2 ? undefined : l2.country) ? { id: null == (e2 = null == l2 ? undefined : l2.country) ? undefined : e2.id, name: null == (n2 = null == l2 ? undefined : l2.country) ? undefined : n2.name } : null }), R2 = ref(false), $2 = ref(null), _2 = (t2) => {
    $2.value = t2, O2.value.image = t2;
  }, N2 = R$1.object().shape({ image: R$1.mixed().nullable(), name: R$1.string().required(S2("ERRORS.name")), email: R$1.string().email(S2("ERRORS.invalidEmail")).required(S2("ERRORS.email")), birthday: R$1.date().required(S2("ERRORS.birthday")), type: R$1.object().required(S2("ERRORS.type")), country: R$1.object().required(S2("ERRORS.country")) }), I2 = async (t2) => {
    R2.value = true;
    const i3 = new FormData();
    i3.append("_method", "PUT"), $2.value && i3.append("image", $2.value), i3.append("name", t2.name), i3.append("email", t2.email), i3.append("phone", t2.phone.phone_number), i3.append("phone_code", t2.phone.phone_code), i3.append("date_of_birth", t2.birthday), i3.append("gender", t2.type.id), i3.append("country_id", t2.country.id), f2.post("profile_edit", i3).then((t3) => {
      pe.success(t3.data.message), gn(p2).value = { ...t3.data.data, token: undefined }, (undefined).location.reload();
    }).catch((t3) => {
      var i4, a2;
      pe.error((null == (a2 = null == (i4 = t3.response) ? undefined : i4.data) ? undefined : a2.message) || "An error occurred while updating profile.");
    }).finally(() => {
      R2.value = false;
    });
  };
  return (i3, a2, e3, n3) => {
    const p3 = Oi, f3 = An, w2 = g, y2 = resolveComponent("VeeForm"), k2 = q$1, j2 = I$1, z2 = x, C2 = k;
    a2(`<div${ssrRenderAttrs(mergeProps({ class: "bg-[#F6F7FC] p-4 lg:p-6 h-fit" }, n3))}><h3 class="font-bold text-xl lg:mb-10 mb-6">${ssrInterpolate(i3.$t("TITLES.edit_your_info"))}</h3><div class="flex mb-10 items-center gap-4 flex-wrap">`), a2("<!---->"), a2('<div class="w-fit flex items-center justify-center flex-col gap-2 mb-5">'), a2(ssrRenderComponent(p3, { attachment: "", onUploaded: _2, defaultImage: unref(O2).image }, null, e3)), a2(`</div><div><div class="font-medium text-2xl mb-4 text-primary">${ssrInterpolate(unref(l2).name)}</div><a dir="ltr"${ssrRenderAttr("href", `tel:${unref(l2).phone_code}${unref(l2).phone}`)} class="text-xl text-[#7C899F]">+${ssrInterpolate(unref(l2).phone_code)} ${ssrInterpolate(unref(l2).phone)}</a></div>`), a2(ssrRenderComponent(f3, { to: i3.localePath("/profile/change-password"), class: "base-btn flex-shrink w-[320px] max-w-[100%] ms-auto flex items-center justify-center gap-2.5 !h-14" }, { default: withCtx((t2, a3, e4, n4) => {
      if (!a3) return [createVNode(w2, { name: "edit2", class: "flex-shrink-0" }), createTextVNode(" " + toDisplayString(i3.$t("TITLES.change_password")), 1)];
      a3(ssrRenderComponent(w2, { name: "edit2", class: "flex-shrink-0" }, null, e4, n4)), a3(` ${ssrInterpolate(i3.$t("TITLES.change_password"))}`);
    }), _: 1 }, e3)), a2("</div>"), a2(ssrRenderComponent(y2, { "validation-schema": unref(N2), onSubmit: I2, initialValues: unref(O2) }, { default: withCtx((t2, a3, e4, n4) => {
      if (!a3) return [createVNode("div", { class: "grid lg:grid-cols-2 [&_label]:!bg-[#F6F7FC] [&_input]:!bg-[#FFFFFF03] [&_button[aria-haspopup=listbox]]:!bg-[#FFFFFF03] gap-8" }, [createVNode("div", null, [createVNode(k2, { name: "name", label: i3.$t("LABELS.name"), placeholder: i3.$t("INPUTS.name"), type: "text", value: unref(O2).name, "onUpdate:value": (t3) => unref(O2).name = t3 }, null, 8, ["label", "placeholder", "value", "onUpdate:value"])]), createVNode("div", null, [createVNode(j2, { name: "country", label: i3.$t("LABELS.country"), placeholder: i3.$t("INPUTS.country"), value: unref(O2).country, "onUpdate:value": (t3) => unref(O2).country = t3, items: unref(c2).countries }, null, 8, ["label", "placeholder", "value", "onUpdate:value", "items"])]), createVNode("div", null, [createVNode(k2, { name: "email", label: i3.$t("LABELS.email"), placeholder: i3.$t("INPUTS.email"), type: "email", value: unref(O2).email, "onUpdate:value": (t3) => unref(O2).email = t3 }, null, 8, ["label", "placeholder", "value", "onUpdate:value"])]), createVNode("div", null, [createVNode(z2, { name: "birthday", label: i3.$t("LABELS.birthday"), placeholder: i3.$t("INPUTS.selectBirthday"), value: unref(O2).birthday, "onUpdate:value": (t3) => unref(O2).birthday = t3 }, null, 8, ["label", "placeholder", "value", "onUpdate:value"])]), createVNode("div", null, [createVNode(C2, { name: "phone", label: i3.$t("LABELS.phone"), placeholder: i3.$t("INPUTS.phone"), value: unref(O2).phone, "onUpdate:value": (t3) => unref(O2).phone = t3, disabled: "" }, null, 8, ["label", "placeholder", "value", "onUpdate:value"])]), createVNode("div", null, [createVNode(j2, { name: "type", label: i3.$t("LABELS.type"), placeholder: i3.$t("INPUTS.type"), value: unref(O2).type, "onUpdate:value": (t3) => unref(O2).type = t3, items: unref(L2) }, null, 8, ["label", "placeholder", "value", "onUpdate:value", "items"])]), createVNode("div", null, [createVNode("button", { loading: unref(R2), type: "submit", class: "base-btn capitalize w-full mb-2" }, toDisplayString(i3.$t("TITLES.edit_profile")), 9, ["loading"])])])];
      a3(`<div class="grid lg:grid-cols-2 [&amp;_label]:!bg-[#F6F7FC] [&amp;_input]:!bg-[#FFFFFF03] [&amp;_button[aria-haspopup=listbox]]:!bg-[#FFFFFF03] gap-8"${n4}><div${n4}>`), a3(ssrRenderComponent(k2, { name: "name", label: i3.$t("LABELS.name"), placeholder: i3.$t("INPUTS.name"), type: "text", value: unref(O2).name, "onUpdate:value": (t3) => unref(O2).name = t3 }, null, e4, n4)), a3(`</div><div${n4}>`), a3(ssrRenderComponent(j2, { name: "country", label: i3.$t("LABELS.country"), placeholder: i3.$t("INPUTS.country"), value: unref(O2).country, "onUpdate:value": (t3) => unref(O2).country = t3, items: unref(c2).countries }, null, e4, n4)), a3(`</div><div${n4}>`), a3(ssrRenderComponent(k2, { name: "email", label: i3.$t("LABELS.email"), placeholder: i3.$t("INPUTS.email"), type: "email", value: unref(O2).email, "onUpdate:value": (t3) => unref(O2).email = t3 }, null, e4, n4)), a3(`</div><div${n4}>`), a3(ssrRenderComponent(z2, { name: "birthday", label: i3.$t("LABELS.birthday"), placeholder: i3.$t("INPUTS.selectBirthday"), value: unref(O2).birthday, "onUpdate:value": (t3) => unref(O2).birthday = t3 }, null, e4, n4)), a3(`</div><div${n4}>`), a3(ssrRenderComponent(C2, { name: "phone", label: i3.$t("LABELS.phone"), placeholder: i3.$t("INPUTS.phone"), value: unref(O2).phone, "onUpdate:value": (t3) => unref(O2).phone = t3, disabled: "" }, null, e4, n4)), a3(`</div><div${n4}>`), a3(ssrRenderComponent(j2, { name: "type", label: i3.$t("LABELS.type"), placeholder: i3.$t("INPUTS.type"), value: unref(O2).type, "onUpdate:value": (t3) => unref(O2).type = t3, items: unref(L2) }, null, e4, n4)), a3(`</div><div${n4}><button${ssrRenderAttr("loading", unref(R2))} type="submit" class="base-btn capitalize w-full mb-2"${n4}>${ssrInterpolate(i3.$t("TITLES.edit_profile"))}</button></div></div>`);
    }), _: 1 }, e3)), a2("</div>");
  };
} }, _i = $i.setup;
$i.setup = (t2, i2) => {
  const a2 = useSSRContext();
  return (a2.modules || (a2.modules = /* @__PURE__ */ new Set())).add("pages/profile/index.vue"), _i ? _i(t2, i2) : undefined;
};

export { $i as default };
//# sourceMappingURL=index-BViLKR0f.mjs.map
