sprof 0.0.36 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(m,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(m=typeof globalThis<"u"?globalThis:m||self,i(m.sprof={},m.Vue))})(this,function(m,i){"use strict";var ug=Object.defineProperty;var hg=(m,i,me)=>i in m?ug(m,i,{enumerable:!0,configurable:!0,writable:!0,value:me}):m[i]=me;var l=(m,i,me)=>hg(m,typeof i!="symbol"?i+"":i,me);var Ee,Ue;var me=typeof document<"u"?document.currentScript:null;const gl=[...["Auth","AuthFormSettings","EmailField","LoginField","PasswordField","PasswordRepeatField","AuthFormSettings","AuthFormSettingsType","AuthFormStatuses","AuthButtonLogin","AuthButtonRegister"]],yl={key:0,class:"mainblock"},wl={class:"mainblock-right"},bl={class:"title"},Sl={class:"body"},Cl=i.defineComponent({__name:"AdaptiveContainer",props:{menuWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"}},setup(t){const e=t,n=i.ref(!1),o=i.ref(!0),r=i.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{o.value=!o.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return r.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return r.value=window.matchMedia("(max-width: 768px)").matches}return r.value=window.matchMedia("(max-width: 1330px)").matches}),n.value=!0}),(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(a.$slots,"main",{},void 0,!0),i.unref(n)?(i.openBlock(),i.createElementBlock("div",yl,[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(r)?"100%":t.menuWidth,maxWidth:i.unref(r)?"100%":t.menuWidth,marginLeft:i.unref(r)?"-110%":"0",position:i.unref(r)?"fixed":"relative",top:i.unref(r)?"140px":""})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(r)?"auto":t.menuWidth,boxShadow:i.unref(r)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!i.unref(o)&&i.unref(r)?"110%":"0",borderTopLeftRadius:i.unref(r)?"0":"",borderBottomLeftRadius:i.unref(r)?"0":""}),onClick:c[0]||(c[0]=d=>s())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",wl,[i.createElementVNode("div",bl,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(r)?"flex":"none"}),onClick:c[1]||(c[1]=d=>s())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)]),i.createElementVNode("div",Sl,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])])):i.createCommentVNode("",!0)],64))}}),M=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},wo=M(Cl,[["__scopeId","data-v-7b0ea2a1"]]),kl={class:"mainblock-right"},El={class:"body"},bo=M(i.defineComponent({__name:"AdaptiveContainerHorizontal",props:{menuWidth:{type:String,required:!1,default:"0px"},leftWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"},titleSticky:{type:Boolean,required:!1,default:!1}},setup(t){const e=t,n=i.ref(!1),o=i.ref(!0),r=i.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{o.value=!o.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return r.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return r.value=window.matchMedia("(max-width: 768px)").matches}return r.value=window.matchMedia("(max-width: 1330px)").matches}),n.value=!0}),(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(a.$slots,"main",{},void 0,!0),i.unref(n)?(i.openBlock(),i.createElementBlock("div",{key:0,class:"mainblock",style:i.normalizeStyle({display:i.unref(r)?"block":"flex"})},[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(r)?"100%":t.menuWidth,display:t.leftWidth!=="0px"?"flex":"none",top:i.unref(r)?"58px":"80px"})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(r)?"100%":t.menuWidth,boxShadow:i.unref(r)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!i.unref(o)&&i.unref(r),"0"),overflowX:i.unref(r)?"scroll":"hidden",display:i.unref(r)?"flex":"block",background:i.unref(r)?"#ffffff":"",overflowY:i.unref(r)?"hidden":"auto"}),onClick:c[0]||(c[0]=d=>s())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",kl,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({position:t.titleSticky?"sticky":"relative",top:t.titleSticky?i.unref(r)?"108px":"58px":"0",zIndex:t.titleSticky?"10":""})},[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(r)?"flex":"none"}),onClick:c[1]||(c[1]=d=>s())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)],4),i.createElementVNode("div",El,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-aa16a0ab"]]);class Ve{static Shuffle(e){for(let n=e.length-1;n>0;n--){const o=Math.floor(Math.random()*(n+1));[e[n],e[o]]=[e[o],e[n]]}}static GenerateNumsRange(e,n,o=1){return Array.from({length:(n-e)/o+1},(r,s)=>e+s*o)}static GetLast(e){return e[e.length-1]}static GetFirst(e){return e[0]}static GetRandEL(e){return e[Math.floor(Math.random()*e.length)]}static Sort(e){e.forEach((n,o)=>n.order=o)}static Refill(e,n){e.splice(0,e.length),e.push(...n)}static Eq(e,n){return e.length===n.length&&(e==null?void 0:e.every((o,r)=>e[r]==n[r]))}static SwipeById(e,n,o){const r=e.findIndex(a=>n.id===a.id),s=e.findIndex(a=>o.id===a.id);r||s||([e[r],e[s]]=[e[s],e[r]])}static Swap(e,n,o){if(n<0||n>=e.length||o<0||o>=e.length)return;const r=e[n];e[n]=e[o],e[o]=r}}var So=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*! *****************************************************************************
1
+ (function(m,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(m=typeof globalThis<"u"?globalThis:m||self,i(m.sprof={},m.Vue))})(this,function(m,i){"use strict";var ug=Object.defineProperty;var hg=(m,i,me)=>i in m?ug(m,i,{enumerable:!0,configurable:!0,writable:!0,value:me}):m[i]=me;var l=(m,i,me)=>hg(m,typeof i!="symbol"?i+"":i,me);var ke;var me=typeof document<"u"?document.currentScript:null;const pl=[...["Auth","AuthFormSettings","EmailField","LoginField","PasswordField","PasswordRepeatField","AuthFormSettings","AuthFormSettingsType","AuthFormStatuses","AuthButtonLogin","AuthButtonRegister"]],gl={key:0,class:"mainblock"},yl={class:"mainblock-right"},wl={class:"title"},bl={class:"body"},Sl=i.defineComponent({__name:"AdaptiveContainer",props:{menuWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"}},setup(t){const e=t,n=i.ref(!1),o=i.ref(!0),r=i.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{o.value=!o.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return r.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return r.value=window.matchMedia("(max-width: 768px)").matches}return r.value=window.matchMedia("(max-width: 1330px)").matches}),n.value=!0}),(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(a.$slots,"main",{},void 0,!0),i.unref(n)?(i.openBlock(),i.createElementBlock("div",gl,[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(r)?"100%":t.menuWidth,maxWidth:i.unref(r)?"100%":t.menuWidth,marginLeft:i.unref(r)?"-110%":"0",position:i.unref(r)?"fixed":"relative",top:i.unref(r)?"140px":""})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(r)?"auto":t.menuWidth,boxShadow:i.unref(r)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!i.unref(o)&&i.unref(r)?"110%":"0",borderTopLeftRadius:i.unref(r)?"0":"",borderBottomLeftRadius:i.unref(r)?"0":""}),onClick:c[0]||(c[0]=d=>s())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",yl,[i.createElementVNode("div",wl,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(r)?"flex":"none"}),onClick:c[1]||(c[1]=d=>s())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)]),i.createElementVNode("div",bl,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])])):i.createCommentVNode("",!0)],64))}}),M=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},po=M(Sl,[["__scopeId","data-v-7b0ea2a1"]]),Cl={class:"mainblock-right"},kl={class:"body"},go=M(i.defineComponent({__name:"AdaptiveContainerHorizontal",props:{menuWidth:{type:String,required:!1,default:"0px"},leftWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"},titleSticky:{type:Boolean,required:!1,default:!1}},setup(t){const e=t,n=i.ref(!1),o=i.ref(!0),r=i.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{o.value=!o.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return r.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return r.value=window.matchMedia("(max-width: 768px)").matches}return r.value=window.matchMedia("(max-width: 1330px)").matches}),n.value=!0}),(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(a.$slots,"main",{},void 0,!0),i.unref(n)?(i.openBlock(),i.createElementBlock("div",{key:0,class:"mainblock",style:i.normalizeStyle({display:i.unref(r)?"block":"flex"})},[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(r)?"100%":t.menuWidth,display:t.leftWidth!=="0px"?"flex":"none",top:i.unref(r)?"58px":"80px"})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(r)?"100%":t.menuWidth,boxShadow:i.unref(r)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!i.unref(o)&&i.unref(r),"0"),overflowX:i.unref(r)?"scroll":"hidden",display:i.unref(r)?"flex":"block",background:i.unref(r)?"#ffffff":"",overflowY:i.unref(r)?"hidden":"auto"}),onClick:c[0]||(c[0]=d=>s())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",Cl,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({position:t.titleSticky?"sticky":"relative",top:t.titleSticky?i.unref(r)?"108px":"58px":"0",zIndex:t.titleSticky?"10":""})},[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(r)?"flex":"none"}),onClick:c[1]||(c[1]=d=>s())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)],4),i.createElementVNode("div",kl,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-aa16a0ab"]]);class Ae{static Shuffle(e){for(let n=e.length-1;n>0;n--){const o=Math.floor(Math.random()*(n+1));[e[n],e[o]]=[e[o],e[n]]}}static GenerateNumsRange(e,n,o=1){return Array.from({length:(n-e)/o+1},(r,s)=>e+s*o)}static GetLast(e){return e[e.length-1]}static GetFirst(e){return e[0]}static GetRandEL(e){return e[Math.floor(Math.random()*e.length)]}static Sort(e){e.forEach((n,o)=>n.order=o)}static Refill(e,n){e.splice(0,e.length),e.push(...n)}static Eq(e,n){return e.length===n.length&&(e==null?void 0:e.every((o,r)=>e[r]==n[r]))}static SwipeById(e,n,o){const r=e.findIndex(a=>n.id===a.id),s=e.findIndex(a=>o.id===a.id);r||s||([e[r],e[s]]=[e[s],e[r]])}static Swap(e,n,o){if(n<0||n>=e.length||o<0||o>=e.length)return;const r=e[n];e[n]=e[o],e[o]=r}}var yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*! *****************************************************************************
2
2
  Copyright (C) Microsoft. All rights reserved.
3
3
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
4
  this file except in compliance with the License. You may obtain a copy of the
@@ -11,21 +11,21 @@
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
- ***************************************************************************** */var Co;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof So=="object"?So:typeof self=="object"?self:typeof this=="object"?this:c(),o=r(t);typeof n.Reflect<"u"&&(o=r(n.Reflect,o)),e(o,n),typeof n.Reflect>"u"&&(n.Reflect=t);function r(d,u){return function(h,f){Object.defineProperty(d,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||a()}})(function(e,n){var o=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",s=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",d={__proto__:[]}instanceof Array,u=!c&&!d,h={create:c?function(){return po(Object.create(null))}:d?function(){return po({__proto__:null})}:function(){return po({})},has:u?function(w,S){return o.call(w,S)}:function(w,S){return S in w},get:u?function(w,S){return o.call(w,S)?w[S]:void 0}:function(w,S){return w[S]}},f=Object.getPrototypeOf(Function),p=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:sg(),y=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:ag(),g=typeof WeakMap=="function"?WeakMap:lg(),k=r?Symbol.for("@reflect-metadata:registry"):void 0,b=ig(),I=og(b);function L(w,S,E,B){if(T(E)){if(!ol(w))throw new TypeError;if(!rl(S))throw new TypeError;return Yp(w,S)}else{if(!ol(w))throw new TypeError;if(!ne(S))throw new TypeError;if(!ne(B)&&!T(B)&&!It(B))throw new TypeError;return It(B)&&(B=void 0),E=Oe(E),Jp(w,S,E,B)}}e("decorate",L);function O(w,S){function E(B,P){if(!ne(B))throw new TypeError;if(!T(P)&&!tg(P))throw new TypeError;Ka(w,S,B,P)}return E}e("metadata",O);function z(w,S,E,B){if(!ne(E))throw new TypeError;return T(B)||(B=Oe(B)),Ka(w,S,E,B)}e("defineMetadata",z);function F(w,S,E){if(!ne(S))throw new TypeError;return T(E)||(E=Oe(E)),Ja(w,S,E)}e("hasMetadata",F);function ve(w,S,E){if(!ne(S))throw new TypeError;return T(E)||(E=Oe(E)),ho(w,S,E)}e("hasOwnMetadata",ve);function $e(w,S,E){if(!ne(S))throw new TypeError;return T(E)||(E=Oe(E)),Xa(w,S,E)}e("getMetadata",$e);function Je(w,S,E){if(!ne(S))throw new TypeError;return T(E)||(E=Oe(E)),Qa(w,S,E)}e("getOwnMetadata",Je);function Bt(w,S){if(!ne(w))throw new TypeError;return T(S)||(S=Oe(S)),el(w,S)}e("getMetadataKeys",Bt);function Ln(w,S){if(!ne(w))throw new TypeError;return T(S)||(S=Oe(S)),tl(w,S)}e("getOwnMetadataKeys",Ln);function Zp(w,S,E){if(!ne(S))throw new TypeError;if(T(E)||(E=Oe(E)),!ne(S))throw new TypeError;T(E)||(E=Oe(E));var B=Jt(S,E,!1);return T(B)?!1:B.OrdinaryDeleteMetadata(w,S,E)}e("deleteMetadata",Zp);function Yp(w,S){for(var E=w.length-1;E>=0;--E){var B=w[E],P=B(S);if(!T(P)&&!It(P)){if(!rl(P))throw new TypeError;S=P}}return S}function Jp(w,S,E,B){for(var P=w.length-1;P>=0;--P){var re=w[P],ie=re(S,E,B);if(!T(ie)&&!It(ie)){if(!ne(ie))throw new TypeError;B=ie}}return B}function Ja(w,S,E){var B=ho(w,S,E);if(B)return!0;var P=mo(S);return It(P)?!1:Ja(w,P,E)}function ho(w,S,E){var B=Jt(S,E,!1);return T(B)?!1:il(B.OrdinaryHasOwnMetadata(w,S,E))}function Xa(w,S,E){var B=ho(w,S,E);if(B)return Qa(w,S,E);var P=mo(S);if(!It(P))return Xa(w,P,E)}function Qa(w,S,E){var B=Jt(S,E,!1);if(!T(B))return B.OrdinaryGetOwnMetadata(w,S,E)}function Ka(w,S,E,B){var P=Jt(E,B,!0);P.OrdinaryDefineOwnMetadata(w,S,E,B)}function el(w,S){var E=tl(w,S),B=mo(w);if(B===null)return E;var P=el(B,S);if(P.length<=0)return E;if(E.length<=0)return P;for(var re=new y,ie=[],H=0,$=E;H<$.length;H++){var x=$[H],R=re.has(x);R||(re.add(x),ie.push(x))}for(var A=0,U=P;A<U.length;A++){var x=U[A],R=re.has(x);R||(re.add(x),ie.push(x))}return ie}function tl(w,S){var E=Jt(w,S,!1);return E?E.OrdinaryOwnMetadataKeys(w,S):[]}function nl(w){if(w===null)return 1;switch(typeof w){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return w===null?1:6;default:return 6}}function T(w){return w===void 0}function It(w){return w===null}function Xp(w){return typeof w=="symbol"}function ne(w){return typeof w=="object"?w!==null:typeof w=="function"}function Qp(w,S){switch(nl(w)){case 0:return w;case 1:return w;case 2:return w;case 3:return w;case 4:return w;case 5:return w}var E="string",B=sl(w,s);if(B!==void 0){var P=B.call(w,E);if(ne(P))throw new TypeError;return P}return Kp(w)}function Kp(w,S){var E,B;{var P=w.toString;if(On(P)){var B=P.call(w);if(!ne(B))return B}var E=w.valueOf;if(On(E)){var B=E.call(w);if(!ne(B))return B}}throw new TypeError}function il(w){return!!w}function eg(w){return""+w}function Oe(w){var S=Qp(w);return Xp(S)?S:eg(S)}function ol(w){return Array.isArray?Array.isArray(w):w instanceof Object?w instanceof Array:Object.prototype.toString.call(w)==="[object Array]"}function On(w){return typeof w=="function"}function rl(w){return typeof w=="function"}function tg(w){switch(nl(w)){case 3:return!0;case 4:return!0;default:return!1}}function fo(w,S){return w===S||w!==w&&S!==S}function sl(w,S){var E=w[S];if(E!=null){if(!On(E))throw new TypeError;return E}}function al(w){var S=sl(w,a);if(!On(S))throw new TypeError;var E=S.call(w);if(!ne(E))throw new TypeError;return E}function ll(w){return w.value}function cl(w){var S=w.next();return S.done?!1:S}function dl(w){var S=w.return;S&&S.call(w)}function mo(w){var S=Object.getPrototypeOf(w);if(typeof w!="function"||w===f||S!==f)return S;var E=w.prototype,B=E&&Object.getPrototypeOf(E);if(B==null||B===Object.prototype)return S;var P=B.constructor;return typeof P!="function"||P===w?S:P}function ng(){var w;!T(k)&&typeof n.Reflect<"u"&&!(k in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(w=rg(n.Reflect));var S,E,B,P=new g,re={registerProvider:ie,getProvider:$,setProvider:R};return re;function ie(A){if(!Object.isExtensible(re))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case w===A:break;case T(S):S=A;break;case S===A:break;case T(E):E=A;break;case E===A:break;default:B===void 0&&(B=new y),B.add(A);break}}function H(A,U){if(!T(S)){if(S.isProviderFor(A,U))return S;if(!T(E)){if(E.isProviderFor(A,U))return S;if(!T(B))for(var Z=al(B);;){var J=cl(Z);if(!J)return;var Ae=ll(J);if(Ae.isProviderFor(A,U))return dl(Z),Ae}}}if(!T(w)&&w.isProviderFor(A,U))return w}function $(A,U){var Z=P.get(A),J;return T(Z)||(J=Z.get(U)),T(J)&&(J=H(A,U),T(J)||(T(Z)&&(Z=new p,P.set(A,Z)),Z.set(U,J))),J}function x(A){if(T(A))throw new TypeError;return S===A||E===A||!T(B)&&B.has(A)}function R(A,U,Z){if(!x(Z))throw new Error("Metadata provider not registered.");var J=$(A,U);if(J!==Z){if(!T(J))return!1;var Ae=P.get(A);T(Ae)&&(Ae=new p,P.set(A,Ae)),Ae.set(U,Z)}return!0}}function ig(){var w;return!T(k)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&(w=n.Reflect[k]),T(w)&&(w=ng()),!T(k)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,k,{enumerable:!1,configurable:!1,writable:!1,value:w}),w}function og(w){var S=new g,E={isProviderFor:function(x,R){var A=S.get(x);return T(A)?!1:A.has(R)},OrdinaryDefineOwnMetadata:ie,OrdinaryHasOwnMetadata:P,OrdinaryGetOwnMetadata:re,OrdinaryOwnMetadataKeys:H,OrdinaryDeleteMetadata:$};return b.registerProvider(E),E;function B(x,R,A){var U=S.get(x),Z=!1;if(T(U)){if(!A)return;U=new p,S.set(x,U),Z=!0}var J=U.get(R);if(T(J)){if(!A)return;if(J=new p,U.set(R,J),!w.setProvider(x,R,E))throw U.delete(R),Z&&S.delete(x),new Error("Wrong provider for target.")}return J}function P(x,R,A){var U=B(R,A,!1);return T(U)?!1:il(U.has(x))}function re(x,R,A){var U=B(R,A,!1);if(!T(U))return U.get(x)}function ie(x,R,A,U){var Z=B(A,U,!0);Z.set(x,R)}function H(x,R){var A=[],U=B(x,R,!1);if(T(U))return A;for(var Z=U.keys(),J=al(Z),Ae=0;;){var ul=cl(J);if(!ul)return A.length=Ae,A;var cg=ll(ul);try{A[Ae]=cg}catch(dg){try{dl(J)}finally{throw dg}}Ae++}}function $(x,R,A){var U=B(R,A,!1);if(T(U)||!U.delete(x))return!1;if(U.size===0){var Z=S.get(R);T(Z)||(Z.delete(A),Z.size===0&&S.delete(Z))}return!0}}function rg(w){var S=w.defineMetadata,E=w.hasOwnMetadata,B=w.getOwnMetadata,P=w.getOwnMetadataKeys,re=w.deleteMetadata,ie=new g,H={isProviderFor:function($,x){var R=ie.get($);return!T(R)&&R.has(x)?!0:P($,x).length?(T(R)&&(R=new y,ie.set($,R)),R.add(x),!0):!1},OrdinaryDefineOwnMetadata:S,OrdinaryHasOwnMetadata:E,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:P,OrdinaryDeleteMetadata:re};return H}function Jt(w,S,E){var B=b.getProvider(w,S);if(!T(B))return B;if(E){if(b.setProvider(w,S,I))return I;throw new Error("Illegal state.")}}function sg(){var w={},S=[],E=function(){function H($,x,R){this._index=0,this._keys=$,this._values=x,this._selector=R}return H.prototype["@@iterator"]=function(){return this},H.prototype[a]=function(){return this},H.prototype.next=function(){var $=this._index;if($>=0&&$<this._keys.length){var x=this._selector(this._keys[$],this._values[$]);return $+1>=this._keys.length?(this._index=-1,this._keys=S,this._values=S):this._index++,{value:x,done:!1}}return{value:void 0,done:!0}},H.prototype.throw=function($){throw this._index>=0&&(this._index=-1,this._keys=S,this._values=S),$},H.prototype.return=function($){return this._index>=0&&(this._index=-1,this._keys=S,this._values=S),{value:$,done:!0}},H}(),B=function(){function H(){this._keys=[],this._values=[],this._cacheKey=w,this._cacheIndex=-2}return Object.defineProperty(H.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),H.prototype.has=function($){return this._find($,!1)>=0},H.prototype.get=function($){var x=this._find($,!1);return x>=0?this._values[x]:void 0},H.prototype.set=function($,x){var R=this._find($,!0);return this._values[R]=x,this},H.prototype.delete=function($){var x=this._find($,!1);if(x>=0){for(var R=this._keys.length,A=x+1;A<R;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,fo($,this._cacheKey)&&(this._cacheKey=w,this._cacheIndex=-2),!0}return!1},H.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=w,this._cacheIndex=-2},H.prototype.keys=function(){return new E(this._keys,this._values,P)},H.prototype.values=function(){return new E(this._keys,this._values,re)},H.prototype.entries=function(){return new E(this._keys,this._values,ie)},H.prototype["@@iterator"]=function(){return this.entries()},H.prototype[a]=function(){return this.entries()},H.prototype._find=function($,x){if(!fo(this._cacheKey,$)){this._cacheIndex=-1;for(var R=0;R<this._keys.length;R++)if(fo(this._keys[R],$)){this._cacheIndex=R;break}}return this._cacheIndex<0&&x&&(this._cacheIndex=this._keys.length,this._keys.push($),this._values.push(void 0)),this._cacheIndex},H}();return B;function P(H,$){return H}function re(H,$){return $}function ie(H,$){return[H,$]}}function ag(){var w=function(){function S(){this._map=new p}return Object.defineProperty(S.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),S.prototype.has=function(E){return this._map.has(E)},S.prototype.add=function(E){return this._map.set(E,E),this},S.prototype.delete=function(E){return this._map.delete(E)},S.prototype.clear=function(){this._map.clear()},S.prototype.keys=function(){return this._map.keys()},S.prototype.values=function(){return this._map.keys()},S.prototype.entries=function(){return this._map.entries()},S.prototype["@@iterator"]=function(){return this.keys()},S.prototype[a]=function(){return this.keys()},S}();return w}function lg(){var w=16,S=h.create(),E=B();return function(){function $(){this._key=B()}return $.prototype.has=function(x){var R=P(x,!1);return R!==void 0?h.has(R,this._key):!1},$.prototype.get=function(x){var R=P(x,!1);return R!==void 0?h.get(R,this._key):void 0},$.prototype.set=function(x,R){var A=P(x,!0);return A[this._key]=R,this},$.prototype.delete=function(x){var R=P(x,!1);return R!==void 0?delete R[this._key]:!1},$.prototype.clear=function(){this._key=B()},$}();function B(){var $;do $="@@WeakMap@@"+H();while(h.has(S,$));return S[$]=!0,$}function P($,x){if(!o.call($,E)){if(!x)return;Object.defineProperty($,E,{value:h.create()})}return $[E]}function re($,x){for(var R=0;R<x;++R)$[R]=Math.random()*255|0;return $}function ie($){if(typeof Uint8Array=="function"){var x=new Uint8Array($);return typeof crypto<"u"?crypto.getRandomValues(x):typeof msCrypto<"u"?msCrypto.getRandomValues(x):re(x,$),x}return re(new Array($),$)}function H(){var $=ie(w);$[6]=$[6]&79|64,$[8]=$[8]&191|128;for(var x="",R=0;R<w;++R){var A=$[R];(R===4||R===6||R===8)&&(x+="-"),A<16&&(x+="0"),x+=A.toString(16).toLowerCase()}return x}}function po(w){return w.__=void 0,delete w.__,w}})})(Co||(Co={}));let Xt;const vl=new Uint8Array(16);function Ml(){if(!Xt&&(Xt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Xt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xt(vl)}const se=[];for(let t=0;t<256;++t)se.push((t+256).toString(16).slice(1));function Bl(t,e=0){return se[t[e+0]]+se[t[e+1]]+se[t[e+2]]+se[t[e+3]]+"-"+se[t[e+4]]+se[t[e+5]]+"-"+se[t[e+6]]+se[t[e+7]]+"-"+se[t[e+8]]+se[t[e+9]]+"-"+se[t[e+10]]+se[t[e+11]]+se[t[e+12]]+se[t[e+13]]+se[t[e+14]]+se[t[e+15]]}const ko={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function de(t,e,n){if(ko.randomUUID&&!e&&!t)return ko.randomUUID();t=t||{};const o=t.random||(t.rng||Ml)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Bl(o)}const dt=class dt{static BuildClass(e,n){n&&Object.keys(n).forEach(o=>{const r=n[o];if(this.isPrimitive(r))e[o]instanceof Date?e[o]=new Date(r):e[o]=r;else if(r!=null&&!Array.isArray(r))if(e[o]&&e[o].constructor)e[o]=new e[o].constructor(r);else{const s=Reflect.getMetadata(o,e);s&&(e[o]=new s[o](r))}if(Array.isArray(r)){const s=Reflect.getMetadata(o,e);s&&(e[o]=r.map(a=>new s[o](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,o){dt.RemoveFromClass(e,n,o)}static RemoveFromClassById(e,n,o){if(!e)return;const r=n.findIndex(s=>s.id===e);dt.RemoveFromClass(r,n,o)}static RemoveFromClass(e,n,o){if(e<0)return;const r=n[e].id;r&&o&&o.push(r),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(o,r){return r}})}static CreateUUID(){return de()}static InitClassInstance(e,n){const o=e.constructor(n);return dt.BuildClass(o),o.id=dt.CreateUUID(),o}static ExistsWithId(e,n){return e.some(o=>o.id===n)}};l(dt,"GetClassConstructor",e=>(n,o)=>{const r=Reflect.getMetadata(`property:${o}`,n)||{};r[o]=e,Reflect.defineMetadata(o,r,n)});let v=dt;const Il={class:"item"},$l={class:"move"},xl={class:"item-tools"},Nl=["onClick"],Rl={class:"item-description"},Al=["onUpdate:modelValue"],Eo=M(i.defineComponent({__name:"AdminGallery",props:{fileList:{type:Array,reguired:!0,default:()=>[]},fileListForDelete:{type:Array,default:()=>[]},defaultRatio:{type:Number,required:!1,default:1},upload:{type:Boolean,required:!1,default:!0}},emits:["addImage","ratio","remove"],setup(t,{emit:e}){const n=t,o=e,r=async a=>{o("addImage",a)},s=async a=>{v.RemoveFromClassById(a.id,n.fileList,[]),o("remove",a)};return(a,c)=>{const d=i.resolveComponent("UploderImage"),u=i.resolveComponent("draggable"),h=i.resolveComponent("Move");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(u,{class:"groups",list:t.fileList,"item-key":"id",handle:".move",onEnd:c[0]||(c[0]=f=>i.unref(Ve).Sort(t.fileList))},{item:i.withCtx(({element:f,index:p})=>[i.createElementVNode("div",Il,[i.createElementVNode("div",$l,[i.createElementVNode("div",xl,[c[1]||(c[1]=i.createElementVNode("svg",{class:"icon-move"},[i.createElementVNode("use",{"xlink:href":"#move"})],-1)),i.createElementVNode("button",{class:"admin-del2",onClick:i.withModifiers(y=>s(f),["prevent"])},"Удалить",8,Nl)]),i.createVNode(d,{"file-info":f,height:150,"default-ratio":t.defaultRatio,onRemoveFile:y=>i.unref(v).RemoveFromClassByIndex(p,t.fileList,t.fileListForDelete),onCrop:y=>r(f)},null,8,["file-info","default-ratio","onRemoveFile","onCrop"])]),i.createElementVNode("div",Rl,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":y=>f.description=y,class:"item-description-form",placeholder:"..."},null,8,Al),[[i.vModelText,f.description]])])])]),_:1},8,["list"]),i.createVNode(h)],64)}}}),[["__scopeId","data-v-e3825d60"]]);class q{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static ToCamelCase(e){const n=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(n).map((r,s)=>s===0?r.toLowerCase():q.Capitalize(r.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,n,o){return e.substring(e.indexOf(n)+2,e.lastIndexOf(o))}static Translit(e,n){const o={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return n&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,r=>{if(r===r.toLowerCase()){const a=Object.keys(o).find(c=>o[c]===r);return a||""}const s=Object.keys(o).find(a=>o[a]===r.toLowerCase());return s?s.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,r=>r===r.toLowerCase()?o[r]:o[r.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const n=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(n,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,n){const o=e.toLowerCase().replaceAll(/\s/g,""),r=n.toLowerCase().replaceAll(/\s/g,""),s=q.Translit(o),a=q.Translit(r);return o.includes(r)||s.includes(r)||o.includes(a)}static SearchIn(e,n){return q.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static WrapSubStr(e,n){const o=new RegExp(q.GetVariants(n).join("|"),"gi");return e.replace(o,`<span class="search-text">${n}</span>`)}static GetVariants(e){const n=q.Translit(e);return[e,q.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,q.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static CreateGuid(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}static JoinSnake(...e){return e.join("_")}}var Hn=(t=>(t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl",t))(Hn||{}),ue=(t=>(t.Primary="primary",t.Success="success",t.Warning="warning",t.Error="error",t.Info="info",t))(ue||{});const Vl="p-button",Pl=i.defineComponent({inheritAttrs:!1,__name:"PButton",props:{text:{type:String,default:"",required:!1},margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},skin:{type:String,default:"base",required:!1},size:{type:String,default:Hn.M,required:!1},type:{type:String,default:ue.Primary,required:!1},fontSize:{type:String,default:"",required:!1}},emits:["click"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("click")},s=i.computed(()=>q.JoinSnake(Vl,n.skin)),a=i.computed(()=>q.JoinSnake(s.value,n.type)),c=i.computed(()=>q.JoinSnake(s.value,n.size)),d=i.computed(()=>[s.value,a.value,c.value]);return(u,h)=>(i.openBlock(),i.createElementBlock("button",i.mergeProps(u.$attrs,{style:{margin:t.margin,padding:t.padding,maxWidth:t.width,minWidth:t.width,minHeight:t.height,maxHeight:t.height,fontSize:t.fontSize},class:i.unref(d),onClick:i.withModifiers(r,["prevent"])}),[i.renderSlot(u.$slots,"default",{},void 0,!0),i.createTextVNode(" "+i.toDisplayString(t.text),1)],16))}}),pe=M(Pl,[["__scopeId","data-v-215d8f27"]]),qn=M(i.defineComponent({__name:"IconCheckDefault",props:{size:{type:String,default:"22px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#check_on"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"check_on",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M29.3678 7.25259C29.2732 7.3128 28.8775 7.6999 28.5076 8.13001C27.7076 9.02463 16.2409 22.0483 16.2065 22.0999C16.1549 22.1601 15.6732 21.73 13.9786 20.1042C8.31835 14.6934 8.5334 14.8827 8.03448 14.8827C7.69899 14.8827 7.59577 14.9257 7.3463 15.1752C7.09684 15.4246 7.05383 15.5279 7.05383 15.8547C7.05383 16.3365 6.98501 16.259 10.1506 19.2354C11.5011 20.4999 13.256 22.1601 14.056 22.9171C15.6302 24.4225 15.9485 24.6461 16.3872 24.5687C16.7399 24.4999 16.7743 24.4569 20.0947 20.6891C21.5485 19.0289 23.2689 17.0762 23.914 16.3451C29.4624 10.0655 30.6495 8.69775 30.77 8.48269C30.942 8.14721 30.8474 7.6999 30.5377 7.38162C30.3399 7.19237 30.2194 7.14076 29.9183 7.14076C29.7119 7.14936 29.471 7.19237 29.3678 7.25259Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-ef4acbe9"]]),Fl=["value"],Un=M(i.defineComponent({__name:"PCheckBox",props:i.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:"14px"},value:{type:[String,Boolean],default:void 0},size:{type:String,default:"22px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),o=e,r=()=>{o("change",n.value)};return(s,a)=>{const c=qn;return i.openBlock(),i.createElementBlock("div",{id:"some",class:"check-line",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createElementVNode("label",{class:"check-field__label",style:i.normalizeStyle({fontSize:t.fontSize})},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=d=>n.value=d),class:"check-field__input",type:"checkbox",value:t.value,onChange:r},null,40,Fl),[[i.vModelCheckbox,n.value]]),i.createElementVNode("div",{id:"abc",class:"box",style:i.normalizeStyle({width:t.size,height:t.size,borderRadius:t.borderRadius})},[n.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"check-icon",style:i.normalizeStyle({width:t.size,height:t.size})},[i.createVNode(c,{margin:"auto",size:t.size},null,8,["size"])],4)):i.createCommentVNode("",!0)],4),i.createTextVNode(" "+i.toDisplayString(t.label),1)],4)],4)}}}),[["__scopeId","data-v-5d8bdbbf"]]),Tl=["for"],zl={class:"field"},Dl={class:"left-field"},Ll=["id","value","name"],Ol={class:"right-field"},vo=M(i.defineComponent({__name:"PDatePicker",props:i.mergeModels({text:{type:String,default:"",required:!1},label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t,{emit:e}){const n=e,o=i.useModel(t,"modelValue"),r=a=>{const d=a.target.valueAsDate;d?(o.value=d,n("input",s(o.value))):(o.value=null,n("input",null))},s=a=>a?new Date(a.getTime()-a.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"";return(a,c)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Tl)):i.createCommentVNode("",!0),i.createElementVNode("div",zl,[i.createElementVNode("div",Dl,[i.renderSlot(a.$slots,"default",{},void 0,!0)]),i.createElementVNode("input",{id:t.label,max:"2100",min:"1900",value:s(o.value),class:"text-field__input",type:"date",name:t.label,onInput:r},null,40,Ll),i.createElementVNode("div",Ol,[i.renderSlot(a.$slots,"right",{},void 0,!0)])])],4))}}),[["__scopeId","data-v-b77c7363"]]),Wn=M(i.defineComponent({inheritAttrs:!1,__name:"PFlex",props:{margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},minWidth:{type:String,default:"",required:!1},maxWidth:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},justifyContent:{type:String,default:"",required:!1},background:{type:String,default:"",required:!1},alignItems:{type:String,default:"",required:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"flex-line",style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,height:t.height,justifyContent:t.justifyContent,background:t.background,alignItems:t.alignItems})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-6c788e9a"]]);var _l=Object.defineProperty,Hl=(t,e,n)=>e in t?_l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qt=(t,e,n)=>Hl(t,typeof e!="symbol"?e+"":e,n);const Mo={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Bo=(t,e,n)=>t.replaceAll(e,"").replace(n,".").replace("..",".").replace(/[^.\d]/g,""),Io=(t,e,n)=>{var o;return new Intl.NumberFormat(((o=n.number)==null?void 0:o.locale)??"en",{minimumFractionDigits:t,maximumFractionDigits:e,roundingMode:"trunc"})},ql=(t,e=!0,n)=>{var o,r,s,a;const c=((o=n.number)==null?void 0:o.unsigned)==null&&t.startsWith("-")?"-":"",d=((r=n.number)==null?void 0:r.fraction)??0;let u=Io(0,d,n);const h=u.formatToParts(1000.12),f=((s=h.find(b=>b.type==="group"))==null?void 0:s.value)??" ",p=((a=h.find(b=>b.type==="decimal"))==null?void 0:a.value)??".",y=Bo(t,f,p);if(Number.isNaN(parseFloat(y)))return c;const g=y.split(".");if(g[1]!=null&&g[1].length>=1){const b=g[1].length<=d?g[1].length:d;u=Io(b,d,n)}let k=u.format(parseFloat(y));return e?d>0&&y.endsWith(".")&&!y.slice(0,-1).includes(".")&&(k+=p):k=Bo(k,f,p),c+k};let Ul=class{constructor(e={}){Qt(this,"opts",{}),Qt(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...Mo,...n.tokens};for(const o of Object.values(n.tokens))typeof o.pattern=="string"&&(o.pattern=new RegExp(o.pattern))}else n.tokens=Mo;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((o,r)=>o.length-r.length):n.mask=n.mask[0]??""),n.mask===""&&(n.mask=null),this.opts=n}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(e);if(this.opts.mask==null||n==null)return!1;const o=this.process(e,n).length;return typeof this.opts.mask=="string"?o>=this.opts.mask.length:o>=n.length}findMask(e){const n=this.opts.mask;if(n==null)return null;if(typeof n=="string")return n;if(typeof n=="function")return n(e);const o=this.process(e,n.slice(-1).pop()??"",!1);return n.find(r=>this.process(e,r,!1).length>=o.length)??""}escapeMask(e){const n=[],o=[];return e.split("").forEach((r,s)=>{r==="!"&&e[s-1]!=="!"?o.push(s-o.length):n.push(r)}),{mask:n.join(""),escaped:o}}process(e,n,o=!0){if(this.opts.number!=null)return ql(e,o,this.opts);if(n==null)return e;const r=`v=${e},mr=${n},m=${o?1:0}`;if(this.memo.has(r))return this.memo.get(r);const{mask:s,escaped:a}=this.escapeMask(n),c=[],d=this.opts.tokens!=null?this.opts.tokens:{},u=this.isReversed()?-1:1,h=this.isReversed()?"unshift":"push",f=this.isReversed()?0:s.length-1,p=this.isReversed()?()=>b>-1&&I>-1:()=>b<s.length&&I<e.length,y=O=>!this.isReversed()&&O<=f||this.isReversed()&&O>=f;let g,k=-1,b=this.isReversed()?s.length-1:0,I=this.isReversed()?e.length-1:0,L=!1;for(;p();){const O=s.charAt(b),z=d[O],F=(z==null?void 0:z.transform)!=null?z.transform(e.charAt(I)):e.charAt(I);if(!a.includes(b)&&z!=null?(F.match(z.pattern)!=null?(c[h](F),z.repeated?(k===-1?k=b:b===f&&b!==k&&(b=k-u),f===k&&(b-=u)):z.multiple&&(L=!0,b-=u),b+=u):z.multiple?L&&(b+=u,I-=u,L=!1):F===g?g=void 0:z.optional&&(b+=u,I-=u),I+=u):(o&&!this.isEager()&&c[h](O),F===O&&!this.isEager()?I+=u:g=O,this.isEager()||(b+=u)),this.isEager())for(;y(b)&&(d[s.charAt(b)]==null||a.includes(b));){if(o){if(c[h](s.charAt(b)),e.charAt(I)===s.charAt(b)){b+=u,I+=u;continue}}else s.charAt(b)===e.charAt(I)&&(I+=u);b+=u}}return this.memo.set(r,c.join("")),this.memo.get(r)}};const $o=t=>JSON.parse(t.replaceAll("'",'"')),Wl=(t,e={})=>{const n={...e};t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=Gl(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=Kt(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=Kt(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Kt(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=jl(t.dataset.maskaTokens));const o={};return t.dataset.maskaNumberLocale!=null&&(o.locale=t.dataset.maskaNumberLocale),t.dataset.maskaNumberFraction!=null&&(o.fraction=parseInt(t.dataset.maskaNumberFraction)),t.dataset.maskaNumberUnsigned!=null&&(o.unsigned=Kt(t.dataset.maskaNumberUnsigned)),(t.dataset.maskaNumber!=null||Object.values(o).length>0)&&(n.number=o),n},Kt=t=>t!==""?!!JSON.parse(t):!0,Gl=t=>t.startsWith("[")&&t.endsWith("]")?$o(t):t,jl=t=>{if(t.startsWith("{")&&t.endsWith("}"))return $o(t);const e={};return t.split("|").forEach(n=>{const o=n.split(":");e[o[0]]={pattern:new RegExp(o[1]),optional:o[2]==="optional",multiple:o[2]==="multiple",repeated:o[2]==="repeated"}}),e};let Zl=class{constructor(e,n={}){Qt(this,"items",new Map),Qt(this,"onInput",o=>{if(o instanceof CustomEvent&&o.type==="input"&&!o.isTrusted&&!o.bubbles)return;const r=o.target,s=this.items.get(r),a="inputType"in o&&o.inputType.startsWith("delete"),c=s.isEager(),d=a&&c&&s.unmasked(r.value)===""?"":r.value;this.fixCursor(r,a,()=>this.setValue(r,d))}),this.options=n,this.init(this.getInputs(e))}update(e={}){this.options={...e},this.init(Array.from(this.items.keys()))}updateValue(e){e.value!==""&&e.value!==this.processInput(e).masked&&this.setValue(e,e.value)}destroy(){for(const e of this.items.keys())e.removeEventListener("input",this.onInput);this.items.clear()}init(e){const n=this.getOptions(this.options);for(const o of e){this.items.has(o)||o.addEventListener("input",this.onInput,{capture:!0});const r=new Ul(Wl(o,n));this.items.set(o,r),queueMicrotask(()=>this.updateValue(o)),o.selectionStart===null&&r.isEager()&&console.warn("Maska: input of `%s` type is not supported",o.type)}}getInputs(e){return typeof e=="string"?Array.from(document.querySelectorAll(e)):"length"in e?Array.from(e):[e]}getOptions(e){const{onMaska:n,preProcess:o,postProcess:r,...s}=e;return s}fixCursor(e,n,o){const r=e.selectionStart,s=e.value;if(o(),r===null||r===s.length&&!n)return;const a=e.value,c=s.slice(0,r),d=a.slice(0,r),u=this.processInput(e,c).unmasked,h=this.processInput(e,d).unmasked;let f=r;c!==d&&(f+=n?a.length-s.length:u.length-h.length),e.setSelectionRange(f,f)}setValue(e,n){const o=this.processInput(e,n);e.value=o.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(r=>r(o)):this.options.onMaska(o)),e.dispatchEvent(new CustomEvent("maska",{detail:o})),e.dispatchEvent(new CustomEvent("input",{detail:o.masked}))}processInput(e,n){const o=this.items.get(e);let r=n??e.value;this.options.preProcess!=null&&(r=this.options.preProcess(r));let s=o.masked(r);return this.options.postProcess!=null&&(s=this.options.postProcess(s)),{masked:s,unmasked:o.unmasked(r),completed:o.completed(r)}}};const Gn=new WeakMap,Yl=(t,e)=>{if(t.arg==null||t.instance==null)return;const n="setup"in t.instance.$.type;t.arg in t.instance?t.instance[t.arg]=e:n&&console.warn("Maska: please expose `%s` using defineExpose",t.arg)},xo=(t,e)=>{var n;const o=t instanceof HTMLInputElement?t:t.querySelector("input");if(o==null||(o==null?void 0:o.type)==="file")return;let r={};if(e.value!=null&&(r=typeof e.value=="string"?{mask:e.value}:{...e.value}),e.arg!=null){const s=a=>{const c=e.modifiers.unmasked?a.unmasked:e.modifiers.completed?a.completed:a.masked;Yl(e,c)};r.onMaska=r.onMaska==null?s:Array.isArray(r.onMaska)?[...r.onMaska,s]:[r.onMaska,s]}Gn.has(o)?(n=Gn.get(o))==null||n.update(r):Gn.set(o,new Zl(o,r))},Jl=["for"],Xl={class:"left-field"},Ql=["disabled"],Kl={class:"right-field"},We=M(i.defineComponent({__name:"PInput",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t){const e=i.useModel(t,"modelValue");return(n,o)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Jl)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",Xl,[i.renderSlot(n.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("input",i.mergeProps(n.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=r=>e.value=r),class:"text-field__input",style:{color:t.color},disabled:t.disabled,onBlur:o[1]||(o[1]=r=>n.$emit("blur",e.value)),onInput:o[2]||(o[2]=r=>n.$emit("input",e.value))}),null,16,Ql),[[i.vModelDynamic,e.value],[i.unref(xo),t.mask]]),i.createElementVNode("div",Kl,[i.renderSlot(n.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-3e6801ac"]]),ec=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],tc="ru-RU";class Pe{constructor(){l(this,"locale","ru-RU")}static Format(e,n){if(!e)return"";const o={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return n&&(o.year=n.year||n.year===void 0?n.year:o.year,o.month=n.month||n.month===void 0?n.month:o.month,o.day=n.day||n.day===void 0?n.day:o.day,o.hour=n.hour??o.hour,o.minute=n.minute??o.minute),Intl.DateTimeFormat(tc,o).format(new Date(e))}static FromRuStr(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}static GetPeriod(e,n,o){return`${this.Format(e,o)}-${this.Format(n,o)}`}static GetShortDayName(e){return e?ec[e.getDay()]:""}static GetCurrentWeekPeriod(e){const n=new Date,o=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),r=new Date(n.getFullYear(),n.getMonth(),o.getDate()+7);return this.GetPeriod(o,r,e||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(e,n){const o=new Date,r=new Date,s=Pe.SplitHourTime(e),a=Pe.SplitHourTime(n);return o.setHours(s[0],s[1],0,0),r.setHours(a[0],a[1],0,0),(r.getTime()-o.getTime())/1e3/60}static HourTimeinMunutes(e){const n=Pe.SplitHourTime(e);return n[0]*60+n[1]}static SplitHourTime(e){const n=e.split(":");return[Number(n[0]),Number(n[1])]}static AddMinutesToHM(e,n){const o=new Date,r=Pe.SplitHourTime(e);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return`${a}:${c}`}static GetMonthsDiff(e,n){return n.getMonth()-e.getMonth()+12*(n.getFullYear()-e.getFullYear())}static StringToDate(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}}class Xe{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");v.BuildClass(this,e)}static Create(){const e=new Xe;return e.id=v.CreateUUID(),e}}class ut{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");v.BuildClass(this,e)}static Create(){const e=new ut;return e.id=v.CreateUUID(),e}}class en{constructor(e){l(this,"id");l(this,"address");l(this,"description");v.BuildClass(this,e)}}class No{constructor(e){l(this,"id");l(this,"address");l(this,"description");v.BuildClass(this,e)}}var nc=Object.defineProperty,tn=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&nc(e,n,r),r};const xt=class go{constructor(e){l(this,"id");l(this,"description","");l(this,"time","");l(this,"latitude","");l(this,"longitude","");l(this,"emails",[]);l(this,"postAddresses",[new en]);l(this,"phones",[]);l(this,"websites",[]);v.BuildClass(this,e)}addEmail(){const e=Xe.Create();return e.contactId=this.id,this.emails.push(e),e}addPhone(){const e=ut.Create();return e.contactId=this.id,this.phones.push(e),e}static Create(){const e=new go;return e.id=v.CreateUUID(),e}removeEmail(e){v.RemoveFromClassById(e,this.emails)}removePhone(e){v.RemoveFromClassById(e,this.phones)}addPostAddress(){this.postAddresses.push(new en)}addWebsite(){this.websites.push(new No)}pushFirst(){this.emails.length||this.emails.push(new Xe),this.phones.length||this.phones.push(new ut)}getCoords(){return[Number(this.latitude),Number(this.longitude)]}static CreateBufetContacts(){const e=new go,n=new en;return n.address="4-й Добрынинский пер., 4, 1А корпус, 7й этаж",e.postAddresses[0]=n,e}updateDescription(e){this.description=e}updateTime(e){this.time=e}updateLatitude(e){this.latitude=e}updateLongitutde(e){this.longitude=e}};tn([v.GetClassConstructor(Xe)],xt.prototype,"emails"),tn([v.GetClassConstructor(en)],xt.prototype,"postAddresses"),tn([v.GetClassConstructor(ut)],xt.prototype,"phones"),tn([v.GetClassConstructor(No)],xt.prototype,"websites");let ht=xt;class X{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");v.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Ni.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:me&&me.tagName.toUpperCase()==="SCRIPT"&&me.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const o=new X;return o.id=n??v.CreateUUID(),o.originalName=e.name,o.file=e.blob,o.fileSystemPath=v.CreateUUID(),o}uploadNewFile(e){this.id||(this.id=v.CreateUUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=v.CreateUUID()}setFile(e){this.file=e,this.url=e.src}uploadAndSetFile(e){this.uploadNewFile(e),this.setFile(e),this.url=e.url}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,n){if(e.target){let o="/src/services/assets/img/avatar.webp";return n&&(o=`@/assets/img/${n}`),new URL(o,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:me&&me.tagName.toUpperCase()==="SCRIPT"&&me.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)==="pdf"}getExtension(e){const n=e.split(".");return n[n.length-1]}}var Q=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(Q||{}),he=(t=>(t.Eq="=",t.Ne="!=",t.Gt=">",t.Lt="<",t.Btw="between",t.In="in",t.Like="like",t.Null="is null",t.NotNull="is not null",t))(he||{}),ic=Object.defineProperty,oc=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&ic(e,n,r),r};const Ro=class $t{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",he.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",Q.String);l(this,"set",[]);l(this,"isSet",!1);l(this,"joinTable","");l(this,"joinTableModel","");l(this,"joinTableFk","");l(this,"joinTablePk","");l(this,"joinTableId","");l(this,"joinTableIdCol","");v.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===Q.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===he.In?n&&Ve.Eq(this.set,e.set):n}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===Q.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===Q.String?this.value1===(e==null?void 0:e.value1):this.type===Q.Join&&this.set.length?Ve.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",n=this.model?`"model":"${this.model}"`:"",o=this.col?`"col":"${this.col}"`:"",r=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===Q.Boolean?`"boolean":${this.boolean}`:"",c=this.type===Q.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",d=this.type===Q.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===Q.Number?`"number":${this.number}`:"",h=this.type===Q.Set||this.operator===he.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===Q.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,o,r,s,a,c,d,u,h,f].filter(p=>p!=="").toString()}fromUrlQuery(e){this.model=e.get("model")??"",this.col=e.get("col")??"",this.label=e.get("label")??"",this.operator=e.get("operator")??"",this.value1=e.get("value1")??"",this.type=e.get("type")??"",this.boolean=!!(e.get("boolean")??""),this.joinTableModel=e.get("joinTableModel")??"",this.joinTableId=e.get("joinTableId")??"",this.joinTableFk=e.get("joinTableFk")??"",this.joinTableIdCol=e.get("joinTableIdCol")??"",this.joinTablePk=e.get("joinTablePk")??""}isUnaryFilter(){return this.operator===he.Eq||this.operator===he.Gt||this.operator===he.Lt}isBetweenFilter(){return this.operator===he.Btw}isSetFilter(){return this.operator===he.In}static Create(e,n,o){const r=new $t;return r.model=e.GetClassName(),r.col=n??"",r.type=o,r.type===Q.Number&&(r.value1="0"),r.type===Q.String&&(r.value1=""),r.type===Q.Boolean&&(r.value1="false",r.operator=he.Eq),r}static CreateFilterModel(e,n,o){const r=new $t;return r.id=de(),r.model=typeof e=="string"?e:e.GetClassName(),r.col=n??"",r.type=o,r.type===Q.Number&&(r.value1="0"),r.type===Q.String&&(r.value1=""),r.type===Q.Boolean&&(r.value1="false"),r}static CreateFilterModelWithJoin(e,n,o,r,s,a,c,d){const u=new $t;return u.id=de(),u.joinTable=o,u.joinTablePk=r,u.joinTableFk=s,u.col=n,u.type=a,c&&(u.joinTableId=c),d&&(u.joinTableIdCol=d),u}static CreateFilterModelWithJoinV2(e,n,o,r,s,a,c){const d=new $t;return d.model=e,d.joinTableModel=o,d.joinTablePk=r,d.joinTableFk=s,d.col=n,d.type=Q.Join,a&&(d.joinTableId=a),c&&(d.joinTableIdCol=c),d}static OnlyIfSecondModelExists(e,n){const o=new $t;return o.id=de(),o.model=q.ToCamelCase(e.GetClassName()),o.joinTableModel=q.ToCamelCase(n.GetClassName()),o.type=Q.Join,o}addToSet(...e){e.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(o=>o!==n)})}pushToSet(...e){e.forEach(n=>{this.set.indexOf(n)===-1&&this.set.push(n)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return i.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,n){if(!e&&!n){this.dropDates();return}if(!n){this.setDate1(e),this.operator=he.Eq;return}this.setDate2(n),this.operator=he.Btw}};oc([v.GetClassConstructor(String)],Ro.prototype,"set");let jn=Ro;class rc{constructor(){l(this,"operation",he.Lt);l(this,"column","");l(this,"value");l(this,"initial",!0);l(this,"tableName","");l(this,"version","");l(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",o=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,r=o?`"value":"${o}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,r,s,a].filter(c=>c!=="").toString()}fromUrlQuery(e){e.cursvalue&&(this.value=e.cursvalue),e.curscolumn&&(this.column=String(e.curscolumn)),e.cursinitial!==void 0&&(this.initial=!!e.cursinitial),e.curstableName&&(this.tableName=String(e.curstableName)),e.cursoperation&&(this.operation=e.cursoperation)}}class nn{constructor(e){l(this,"offset",0);l(this,"limit",25);l(this,"cursor",new rc);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");v.BuildClass(this,e)}setLoadMore(e,n,o){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=he.Gt,this.cursor.column=n,this.cursor.tableName=o,this.cursorMode=!0}setLoadMoreV2(e,n,o){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=he.Gt,this.cursor.column=n,this.cursor.model=o,this.cursorMode=!0,this.version="v2"}setOffset(e){this.offset=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,o=`"cursorMode":${this.cursorMode}`,r=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,o,r,s,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),o=new URLSearchParams(decodeURIComponent(n));this.offset=Number(o.get("offset")),this.limit=Number(o.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.limit)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.limit+1}drop(){this.offset=0,this.limit=25,v.BuildClass(this)}}class on{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const o=new on;return o.model=e.GetClassName(),o.cols=n,o}}var Fe=(t=>(t.Asc="asc",t.Desc="desc",t))(Fe||{});class rn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);v.BuildClass(this,e)}static Create(e,n,o=Fe.Asc,r,s){const a=new rn;return a.model=e.GetClassName(),a.col=n??"",a.order=o??Fe.Asc,a.label=r??"",a.default=s??!1,a}isAsc(){return this.order===Fe.Asc}isDesc(){return this.order===Fe.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",n=this.col?`"col":"${this.col}"`:"",o=this.order?`"order":"${this.order}"`:"";return[e,n,o].toString()}async fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("s=")+2,e.indexOf("|")),o=new URLSearchParams(decodeURIComponent(n));this.model=o.get("model")??"",this.col=o.get("col")??"",this.label=o.get("label")??"",this.default=!!o.get("default"),this.order=o.get("order")??""}}var sc=Object.defineProperty,sn=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&sc(e,n,r),r};const Nt=(Ee=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"s",[]);l(this,"p",new nn);l(this,"t",new on);v.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Ee),this.instance}createFrom(e){const n=new Ee(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Ee(this);return e.f=this.f.map(n=>Ee.EmptyEntiries(n)),e.s=this.s.map(n=>Ee.EmptyEntiries(n)),e.p=Ee.EmptyEntiries(this.p),e.t=Ee.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const o=Object.entries(e).filter(([r,s])=>r!=="label"&&s!==""&&s!==null);return Object.fromEntries(o)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return Ve.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(o=>o.eq(e));v.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new nn}resetF(){this.f=[]}},l(Ee,"instance"),Ee);sn([v.GetClassConstructor(jn)],Nt.prototype,"f"),sn([v.GetClassConstructor(rn)],Nt.prototype,"s"),sn([v.GetClassConstructor(nn)],Nt.prototype,"p"),sn([v.GetClassConstructor(on)],Nt.prototype,"t");let ee=Nt;var ac=Object.defineProperty,lc=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&ac(e,n,r),r};class Zn{constructor(e){l(this,"id");l(this,"name","");l(this,"surname","");l(this,"patronymic","");l(this,"citizenship","");l(this,"placeBirth","");l(this,"carNumber","");l(this,"carModel","");l(this,"snils","");l(this,"photoId");l(this,"photo",new X);l(this,"photoMiniId");l(this,"photoMini",new X);l(this,"isMale",!0);l(this,"dateBirth",new Date);l(this,"contact",new ht);l(this,"contactId");l(this,"slug","");l(this,"postIndex","");l(this,"address","");l(this,"editNameMode",!1);v.BuildClass(this,e)}getImageUrl(){return this.photo.fileSystemPath?this.photo.getFileUrl():new URL("/src/services/assets/img/avatar.webp",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:me&&me.tagName.toUpperCase()==="SCRIPT"&&me.src||new URL("sprof.umd.cjs",document.baseURI).href)}setEditNameMode(e){this.editNameMode=e}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(e){return e?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=q.Capitalize(this.name),this.surname=q.Capitalize(this.surname),this.patronymic=q.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}getFileInfos(){const e=[];return e.push(this.photo),e.push(this.photoMini),e}removePhoto(){this.photo=new X,this.photoId=void 0}removePhotoMini(){this.photoMini=new X,this.photoMiniId=void 0}setFullName(e){this.surname=e.surname,this.name=e.name,this.patronymic=e.patronymic}initContact(){this.contact=ht.Create(),this.contactId=this.contact.id}}lc([v.GetClassConstructor(ht)],Zn.prototype,"contact");class Qe{constructor(e,n,o,r){l(this,"text","Сохранить");l(this,"type",ue.Success);l(this,"condition",!0);l(this,"action");l(this,"id","button");l(this,"disabled",!1);this.text=e,this.type=o,this.action=n,r!==void 0&&(this.condition=r)}static Primary(e,n,o){return new Qe(e,n,ue.Primary,o)}static Success(e,n,o){return new Qe(e,n,ue.Success,o)}static Warning(e,n,o){return new Qe(e,n,ue.Warning,o)}static Error(e,n,o){return new Qe(e,n,ue.Error,o)}}var Ao=(t=>(t.simple="simple",t.oneToMany="oneToMany",t.manyToMany="manyToMany",t))(Ao||{}),fe=(t=>(t.String="string",t.Text="text",t.Number="number",t.Date="date",t.DateTime="dateTime",t.Radio="radio",t.Set="set",t.Boolean="boolean",t.Files="files",t.File="file",t.MatrixRadio="matrixRadio",t.MatrixSet="matrixSet",t))(fe||{});class Yn{constructor(e){l(this,"id");l(this,"name",fe.String);l(this,"valueRelation",Ao.simple);v.BuildClass(this,e)}isString(){return this.name==="string"}isNumber(){return this.name==="number"}isDate(){return this.name==="date"}isDateTime(){return this.name==="dateTime"}isRadio(){return this.name==="radio"}isSet(){return this.name==="set"}isText(){return this.name==="text"}isBoolean(){return this.name==="boolean"}isFile(){return this.name==="file"}isFiles(){return this.name==="files"}getComponentType(){if(this.name===fe.Radio)return"RadioProp";if(this.name===fe.Set)return"SetProp";if(this.name===fe.Number)return"NumberProp";if(this.name===fe.String)return"StringProp"}}/*!
14
+ ***************************************************************************** */var wo;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof yo=="object"?yo:typeof self=="object"?self:typeof this=="object"?this:c(),o=r(t);typeof n.Reflect<"u"&&(o=r(n.Reflect,o)),e(o,n),typeof n.Reflect>"u"&&(n.Reflect=t);function r(d,u){return function(h,f){Object.defineProperty(d,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||a()}})(function(e,n){var o=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",s=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",d={__proto__:[]}instanceof Array,u=!c&&!d,h={create:c?function(){return ho(Object.create(null))}:d?function(){return ho({__proto__:null})}:function(){return ho({})},has:u?function(w,S){return o.call(w,S)}:function(w,S){return S in w},get:u?function(w,S){return o.call(w,S)?w[S]:void 0}:function(w,S){return w[S]}},f=Object.getPrototypeOf(Function),p=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:sg(),y=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:ag(),g=typeof WeakMap=="function"?WeakMap:lg(),k=r?Symbol.for("@reflect-metadata:registry"):void 0,b=ig(),I=og(b);function L(w,S,E,B){if(T(E)){if(!il(w))throw new TypeError;if(!ol(S))throw new TypeError;return Yp(w,S)}else{if(!il(w))throw new TypeError;if(!ne(S))throw new TypeError;if(!ne(B)&&!T(B)&&!Mt(B))throw new TypeError;return Mt(B)&&(B=void 0),E=Le(E),Jp(w,S,E,B)}}e("decorate",L);function O(w,S){function E(B,P){if(!ne(B))throw new TypeError;if(!T(P)&&!tg(P))throw new TypeError;Qa(w,S,B,P)}return E}e("metadata",O);function z(w,S,E,B){if(!ne(E))throw new TypeError;return T(B)||(B=Le(B)),Qa(w,S,E,B)}e("defineMetadata",z);function F(w,S,E){if(!ne(S))throw new TypeError;return T(E)||(E=Le(E)),Ya(w,S,E)}e("hasMetadata",F);function Ee(w,S,E){if(!ne(S))throw new TypeError;return T(E)||(E=Le(E)),lo(w,S,E)}e("hasOwnMetadata",Ee);function Ie(w,S,E){if(!ne(S))throw new TypeError;return T(E)||(E=Le(E)),Ja(w,S,E)}e("getMetadata",Ie);function Ze(w,S,E){if(!ne(S))throw new TypeError;return T(E)||(E=Le(E)),Xa(w,S,E)}e("getOwnMetadata",Ze);function vt(w,S){if(!ne(w))throw new TypeError;return T(S)||(S=Le(S)),Ka(w,S)}e("getMetadataKeys",vt);function zn(w,S){if(!ne(w))throw new TypeError;return T(S)||(S=Le(S)),el(w,S)}e("getOwnMetadataKeys",zn);function Zp(w,S,E){if(!ne(S))throw new TypeError;if(T(E)||(E=Le(E)),!ne(S))throw new TypeError;T(E)||(E=Le(E));var B=Zt(S,E,!1);return T(B)?!1:B.OrdinaryDeleteMetadata(w,S,E)}e("deleteMetadata",Zp);function Yp(w,S){for(var E=w.length-1;E>=0;--E){var B=w[E],P=B(S);if(!T(P)&&!Mt(P)){if(!ol(P))throw new TypeError;S=P}}return S}function Jp(w,S,E,B){for(var P=w.length-1;P>=0;--P){var re=w[P],ie=re(S,E,B);if(!T(ie)&&!Mt(ie)){if(!ne(ie))throw new TypeError;B=ie}}return B}function Ya(w,S,E){var B=lo(w,S,E);if(B)return!0;var P=uo(S);return Mt(P)?!1:Ya(w,P,E)}function lo(w,S,E){var B=Zt(S,E,!1);return T(B)?!1:nl(B.OrdinaryHasOwnMetadata(w,S,E))}function Ja(w,S,E){var B=lo(w,S,E);if(B)return Xa(w,S,E);var P=uo(S);if(!Mt(P))return Ja(w,P,E)}function Xa(w,S,E){var B=Zt(S,E,!1);if(!T(B))return B.OrdinaryGetOwnMetadata(w,S,E)}function Qa(w,S,E,B){var P=Zt(E,B,!0);P.OrdinaryDefineOwnMetadata(w,S,E,B)}function Ka(w,S){var E=el(w,S),B=uo(w);if(B===null)return E;var P=Ka(B,S);if(P.length<=0)return E;if(E.length<=0)return P;for(var re=new y,ie=[],H=0,$=E;H<$.length;H++){var x=$[H],R=re.has(x);R||(re.add(x),ie.push(x))}for(var A=0,U=P;A<U.length;A++){var x=U[A],R=re.has(x);R||(re.add(x),ie.push(x))}return ie}function el(w,S){var E=Zt(w,S,!1);return E?E.OrdinaryOwnMetadataKeys(w,S):[]}function tl(w){if(w===null)return 1;switch(typeof w){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return w===null?1:6;default:return 6}}function T(w){return w===void 0}function Mt(w){return w===null}function Xp(w){return typeof w=="symbol"}function ne(w){return typeof w=="object"?w!==null:typeof w=="function"}function Qp(w,S){switch(tl(w)){case 0:return w;case 1:return w;case 2:return w;case 3:return w;case 4:return w;case 5:return w}var E="string",B=rl(w,s);if(B!==void 0){var P=B.call(w,E);if(ne(P))throw new TypeError;return P}return Kp(w)}function Kp(w,S){var E,B;{var P=w.toString;if(Dn(P)){var B=P.call(w);if(!ne(B))return B}var E=w.valueOf;if(Dn(E)){var B=E.call(w);if(!ne(B))return B}}throw new TypeError}function nl(w){return!!w}function eg(w){return""+w}function Le(w){var S=Qp(w);return Xp(S)?S:eg(S)}function il(w){return Array.isArray?Array.isArray(w):w instanceof Object?w instanceof Array:Object.prototype.toString.call(w)==="[object Array]"}function Dn(w){return typeof w=="function"}function ol(w){return typeof w=="function"}function tg(w){switch(tl(w)){case 3:return!0;case 4:return!0;default:return!1}}function co(w,S){return w===S||w!==w&&S!==S}function rl(w,S){var E=w[S];if(E!=null){if(!Dn(E))throw new TypeError;return E}}function sl(w){var S=rl(w,a);if(!Dn(S))throw new TypeError;var E=S.call(w);if(!ne(E))throw new TypeError;return E}function al(w){return w.value}function ll(w){var S=w.next();return S.done?!1:S}function cl(w){var S=w.return;S&&S.call(w)}function uo(w){var S=Object.getPrototypeOf(w);if(typeof w!="function"||w===f||S!==f)return S;var E=w.prototype,B=E&&Object.getPrototypeOf(E);if(B==null||B===Object.prototype)return S;var P=B.constructor;return typeof P!="function"||P===w?S:P}function ng(){var w;!T(k)&&typeof n.Reflect<"u"&&!(k in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(w=rg(n.Reflect));var S,E,B,P=new g,re={registerProvider:ie,getProvider:$,setProvider:R};return re;function ie(A){if(!Object.isExtensible(re))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case w===A:break;case T(S):S=A;break;case S===A:break;case T(E):E=A;break;case E===A:break;default:B===void 0&&(B=new y),B.add(A);break}}function H(A,U){if(!T(S)){if(S.isProviderFor(A,U))return S;if(!T(E)){if(E.isProviderFor(A,U))return S;if(!T(B))for(var Z=sl(B);;){var J=ll(Z);if(!J)return;var Re=al(J);if(Re.isProviderFor(A,U))return cl(Z),Re}}}if(!T(w)&&w.isProviderFor(A,U))return w}function $(A,U){var Z=P.get(A),J;return T(Z)||(J=Z.get(U)),T(J)&&(J=H(A,U),T(J)||(T(Z)&&(Z=new p,P.set(A,Z)),Z.set(U,J))),J}function x(A){if(T(A))throw new TypeError;return S===A||E===A||!T(B)&&B.has(A)}function R(A,U,Z){if(!x(Z))throw new Error("Metadata provider not registered.");var J=$(A,U);if(J!==Z){if(!T(J))return!1;var Re=P.get(A);T(Re)&&(Re=new p,P.set(A,Re)),Re.set(U,Z)}return!0}}function ig(){var w;return!T(k)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&(w=n.Reflect[k]),T(w)&&(w=ng()),!T(k)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,k,{enumerable:!1,configurable:!1,writable:!1,value:w}),w}function og(w){var S=new g,E={isProviderFor:function(x,R){var A=S.get(x);return T(A)?!1:A.has(R)},OrdinaryDefineOwnMetadata:ie,OrdinaryHasOwnMetadata:P,OrdinaryGetOwnMetadata:re,OrdinaryOwnMetadataKeys:H,OrdinaryDeleteMetadata:$};return b.registerProvider(E),E;function B(x,R,A){var U=S.get(x),Z=!1;if(T(U)){if(!A)return;U=new p,S.set(x,U),Z=!0}var J=U.get(R);if(T(J)){if(!A)return;if(J=new p,U.set(R,J),!w.setProvider(x,R,E))throw U.delete(R),Z&&S.delete(x),new Error("Wrong provider for target.")}return J}function P(x,R,A){var U=B(R,A,!1);return T(U)?!1:nl(U.has(x))}function re(x,R,A){var U=B(R,A,!1);if(!T(U))return U.get(x)}function ie(x,R,A,U){var Z=B(A,U,!0);Z.set(x,R)}function H(x,R){var A=[],U=B(x,R,!1);if(T(U))return A;for(var Z=U.keys(),J=sl(Z),Re=0;;){var dl=ll(J);if(!dl)return A.length=Re,A;var cg=al(dl);try{A[Re]=cg}catch(dg){try{cl(J)}finally{throw dg}}Re++}}function $(x,R,A){var U=B(R,A,!1);if(T(U)||!U.delete(x))return!1;if(U.size===0){var Z=S.get(R);T(Z)||(Z.delete(A),Z.size===0&&S.delete(Z))}return!0}}function rg(w){var S=w.defineMetadata,E=w.hasOwnMetadata,B=w.getOwnMetadata,P=w.getOwnMetadataKeys,re=w.deleteMetadata,ie=new g,H={isProviderFor:function($,x){var R=ie.get($);return!T(R)&&R.has(x)?!0:P($,x).length?(T(R)&&(R=new y,ie.set($,R)),R.add(x),!0):!1},OrdinaryDefineOwnMetadata:S,OrdinaryHasOwnMetadata:E,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:P,OrdinaryDeleteMetadata:re};return H}function Zt(w,S,E){var B=b.getProvider(w,S);if(!T(B))return B;if(E){if(b.setProvider(w,S,I))return I;throw new Error("Illegal state.")}}function sg(){var w={},S=[],E=function(){function H($,x,R){this._index=0,this._keys=$,this._values=x,this._selector=R}return H.prototype["@@iterator"]=function(){return this},H.prototype[a]=function(){return this},H.prototype.next=function(){var $=this._index;if($>=0&&$<this._keys.length){var x=this._selector(this._keys[$],this._values[$]);return $+1>=this._keys.length?(this._index=-1,this._keys=S,this._values=S):this._index++,{value:x,done:!1}}return{value:void 0,done:!0}},H.prototype.throw=function($){throw this._index>=0&&(this._index=-1,this._keys=S,this._values=S),$},H.prototype.return=function($){return this._index>=0&&(this._index=-1,this._keys=S,this._values=S),{value:$,done:!0}},H}(),B=function(){function H(){this._keys=[],this._values=[],this._cacheKey=w,this._cacheIndex=-2}return Object.defineProperty(H.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),H.prototype.has=function($){return this._find($,!1)>=0},H.prototype.get=function($){var x=this._find($,!1);return x>=0?this._values[x]:void 0},H.prototype.set=function($,x){var R=this._find($,!0);return this._values[R]=x,this},H.prototype.delete=function($){var x=this._find($,!1);if(x>=0){for(var R=this._keys.length,A=x+1;A<R;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,co($,this._cacheKey)&&(this._cacheKey=w,this._cacheIndex=-2),!0}return!1},H.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=w,this._cacheIndex=-2},H.prototype.keys=function(){return new E(this._keys,this._values,P)},H.prototype.values=function(){return new E(this._keys,this._values,re)},H.prototype.entries=function(){return new E(this._keys,this._values,ie)},H.prototype["@@iterator"]=function(){return this.entries()},H.prototype[a]=function(){return this.entries()},H.prototype._find=function($,x){if(!co(this._cacheKey,$)){this._cacheIndex=-1;for(var R=0;R<this._keys.length;R++)if(co(this._keys[R],$)){this._cacheIndex=R;break}}return this._cacheIndex<0&&x&&(this._cacheIndex=this._keys.length,this._keys.push($),this._values.push(void 0)),this._cacheIndex},H}();return B;function P(H,$){return H}function re(H,$){return $}function ie(H,$){return[H,$]}}function ag(){var w=function(){function S(){this._map=new p}return Object.defineProperty(S.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),S.prototype.has=function(E){return this._map.has(E)},S.prototype.add=function(E){return this._map.set(E,E),this},S.prototype.delete=function(E){return this._map.delete(E)},S.prototype.clear=function(){this._map.clear()},S.prototype.keys=function(){return this._map.keys()},S.prototype.values=function(){return this._map.keys()},S.prototype.entries=function(){return this._map.entries()},S.prototype["@@iterator"]=function(){return this.keys()},S.prototype[a]=function(){return this.keys()},S}();return w}function lg(){var w=16,S=h.create(),E=B();return function(){function $(){this._key=B()}return $.prototype.has=function(x){var R=P(x,!1);return R!==void 0?h.has(R,this._key):!1},$.prototype.get=function(x){var R=P(x,!1);return R!==void 0?h.get(R,this._key):void 0},$.prototype.set=function(x,R){var A=P(x,!0);return A[this._key]=R,this},$.prototype.delete=function(x){var R=P(x,!1);return R!==void 0?delete R[this._key]:!1},$.prototype.clear=function(){this._key=B()},$}();function B(){var $;do $="@@WeakMap@@"+H();while(h.has(S,$));return S[$]=!0,$}function P($,x){if(!o.call($,E)){if(!x)return;Object.defineProperty($,E,{value:h.create()})}return $[E]}function re($,x){for(var R=0;R<x;++R)$[R]=Math.random()*255|0;return $}function ie($){if(typeof Uint8Array=="function"){var x=new Uint8Array($);return typeof crypto<"u"?crypto.getRandomValues(x):typeof msCrypto<"u"?msCrypto.getRandomValues(x):re(x,$),x}return re(new Array($),$)}function H(){var $=ie(w);$[6]=$[6]&79|64,$[8]=$[8]&191|128;for(var x="",R=0;R<w;++R){var A=$[R];(R===4||R===6||R===8)&&(x+="-"),A<16&&(x+="0"),x+=A.toString(16).toLowerCase()}return x}}function ho(w){return w.__=void 0,delete w.__,w}})})(wo||(wo={}));let Yt;const El=new Uint8Array(16);function vl(){if(!Yt&&(Yt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Yt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yt(El)}const se=[];for(let t=0;t<256;++t)se.push((t+256).toString(16).slice(1));function Ml(t,e=0){return se[t[e+0]]+se[t[e+1]]+se[t[e+2]]+se[t[e+3]]+"-"+se[t[e+4]]+se[t[e+5]]+"-"+se[t[e+6]]+se[t[e+7]]+"-"+se[t[e+8]]+se[t[e+9]]+"-"+se[t[e+10]]+se[t[e+11]]+se[t[e+12]]+se[t[e+13]]+se[t[e+14]]+se[t[e+15]]}const bo={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function de(t,e,n){if(bo.randomUUID&&!e&&!t)return bo.randomUUID();t=t||{};const o=t.random||(t.rng||vl)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Ml(o)}const lt=class lt{static BuildClass(e,n){n&&Object.keys(n).forEach(o=>{const r=n[o];if(this.isPrimitive(r))e[o]instanceof Date?e[o]=new Date(r):e[o]=r;else if(r!=null&&!Array.isArray(r))if(e[o]&&e[o].constructor)e[o]=new e[o].constructor(r);else{const s=Reflect.getMetadata(o,e);s&&(e[o]=new s[o](r))}if(Array.isArray(r)){const s=Reflect.getMetadata(o,e);s&&(e[o]=r.map(a=>new s[o](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,o){lt.RemoveFromClass(e,n,o)}static RemoveFromClassById(e,n,o){if(!e)return;const r=n.findIndex(s=>s.id===e);lt.RemoveFromClass(r,n,o)}static RemoveFromClass(e,n,o){if(e<0)return;const r=n[e].id;r&&o&&o.push(r),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(o,r){return r}})}static CreateUUID(){return de()}static InitClassInstance(e,n){const o=e.constructor(n);return lt.BuildClass(o),o.id=lt.CreateUUID(),o}static ExistsWithId(e,n){return e.some(o=>o.id===n)}};l(lt,"GetClassConstructor",e=>(n,o)=>{const r=Reflect.getMetadata(`property:${o}`,n)||{};r[o]=e,Reflect.defineMetadata(o,r,n)});let v=lt;const Bl={class:"item"},Il={class:"move"},$l={class:"item-tools"},xl=["onClick"],Nl={class:"item-description"},Rl=["onUpdate:modelValue"],So=M(i.defineComponent({__name:"AdminGallery",props:{fileList:{type:Array,reguired:!0,default:()=>[]},fileListForDelete:{type:Array,default:()=>[]},defaultRatio:{type:Number,required:!1,default:1},upload:{type:Boolean,required:!1,default:!0}},emits:["addImage","ratio","remove"],setup(t,{emit:e}){const n=t,o=e,r=async a=>{o("addImage",a)},s=async a=>{v.RemoveFromClassById(a.id,n.fileList,[]),o("remove",a)};return(a,c)=>{const d=i.resolveComponent("UploderImage"),u=i.resolveComponent("draggable"),h=i.resolveComponent("Move");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(u,{class:"groups",list:t.fileList,"item-key":"id",handle:".move",onEnd:c[0]||(c[0]=f=>i.unref(Ae).Sort(t.fileList))},{item:i.withCtx(({element:f,index:p})=>[i.createElementVNode("div",Bl,[i.createElementVNode("div",Il,[i.createElementVNode("div",$l,[c[1]||(c[1]=i.createElementVNode("svg",{class:"icon-move"},[i.createElementVNode("use",{"xlink:href":"#move"})],-1)),i.createElementVNode("button",{class:"admin-del2",onClick:i.withModifiers(y=>s(f),["prevent"])},"Удалить",8,xl)]),i.createVNode(d,{"file-info":f,height:150,"default-ratio":t.defaultRatio,onRemoveFile:y=>i.unref(v).RemoveFromClassByIndex(p,t.fileList,t.fileListForDelete),onCrop:y=>r(f)},null,8,["file-info","default-ratio","onRemoveFile","onCrop"])]),i.createElementVNode("div",Nl,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":y=>f.description=y,class:"item-description-form",placeholder:"..."},null,8,Rl),[[i.vModelText,f.description]])])])]),_:1},8,["list"]),i.createVNode(h)],64)}}}),[["__scopeId","data-v-e3825d60"]]);class q{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static ToCamelCase(e){const n=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(n).map((r,s)=>s===0?r.toLowerCase():q.Capitalize(r.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,n,o){return e.substring(e.indexOf(n)+2,e.lastIndexOf(o))}static Translit(e,n){const o={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return n&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,r=>{if(r===r.toLowerCase()){const a=Object.keys(o).find(c=>o[c]===r);return a||""}const s=Object.keys(o).find(a=>o[a]===r.toLowerCase());return s?s.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,r=>r===r.toLowerCase()?o[r]:o[r.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const n=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(n,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,n){const o=e.toLowerCase().replaceAll(/\s/g,""),r=n.toLowerCase().replaceAll(/\s/g,""),s=q.Translit(o),a=q.Translit(r);return o.includes(r)||s.includes(r)||o.includes(a)}static SearchIn(e,n){return q.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static WrapSubStr(e,n){const o=new RegExp(q.GetVariants(n).join("|"),"gi");return e.replace(o,`<span class="search-text">${n}</span>`)}static GetVariants(e){const n=q.Translit(e);return[e,q.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,q.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static CreateGuid(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}static JoinSnake(...e){return e.join("_")}}var On=(t=>(t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl",t))(On||{}),ue=(t=>(t.Primary="primary",t.Success="success",t.Warning="warning",t.Error="error",t.Info="info",t))(ue||{});const Al="p-button",Vl=i.defineComponent({inheritAttrs:!1,__name:"PButton",props:{text:{type:String,default:"",required:!1},margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},skin:{type:String,default:"base",required:!1},size:{type:String,default:On.M,required:!1},type:{type:String,default:ue.Primary,required:!1},fontSize:{type:String,default:"",required:!1}},emits:["click"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("click")},s=i.computed(()=>q.JoinSnake(Al,n.skin)),a=i.computed(()=>q.JoinSnake(s.value,n.type)),c=i.computed(()=>q.JoinSnake(s.value,n.size)),d=i.computed(()=>[s.value,a.value,c.value]);return(u,h)=>(i.openBlock(),i.createElementBlock("button",i.mergeProps(u.$attrs,{style:{margin:t.margin,padding:t.padding,maxWidth:t.width,minWidth:t.width,minHeight:t.height,maxHeight:t.height,fontSize:t.fontSize},class:i.unref(d),onClick:i.withModifiers(r,["prevent"])}),[i.renderSlot(u.$slots,"default",{},void 0,!0),i.createTextVNode(" "+i.toDisplayString(t.text),1)],16))}}),pe=M(Vl,[["__scopeId","data-v-215d8f27"]]),_n=M(i.defineComponent({__name:"IconCheckDefault",props:{size:{type:String,default:"22px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#check_on"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"check_on",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M29.3678 7.25259C29.2732 7.3128 28.8775 7.6999 28.5076 8.13001C27.7076 9.02463 16.2409 22.0483 16.2065 22.0999C16.1549 22.1601 15.6732 21.73 13.9786 20.1042C8.31835 14.6934 8.5334 14.8827 8.03448 14.8827C7.69899 14.8827 7.59577 14.9257 7.3463 15.1752C7.09684 15.4246 7.05383 15.5279 7.05383 15.8547C7.05383 16.3365 6.98501 16.259 10.1506 19.2354C11.5011 20.4999 13.256 22.1601 14.056 22.9171C15.6302 24.4225 15.9485 24.6461 16.3872 24.5687C16.7399 24.4999 16.7743 24.4569 20.0947 20.6891C21.5485 19.0289 23.2689 17.0762 23.914 16.3451C29.4624 10.0655 30.6495 8.69775 30.77 8.48269C30.942 8.14721 30.8474 7.6999 30.5377 7.38162C30.3399 7.19237 30.2194 7.14076 29.9183 7.14076C29.7119 7.14936 29.471 7.19237 29.3678 7.25259Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-ef4acbe9"]]),Pl=["value"],Hn=M(i.defineComponent({__name:"PCheckBox",props:i.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:"14px"},value:{type:[String,Boolean],default:void 0},size:{type:String,default:"22px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),o=e,r=()=>{o("change",n.value)};return(s,a)=>{const c=_n;return i.openBlock(),i.createElementBlock("div",{id:"some",class:"check-line",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createElementVNode("label",{class:"check-field__label",style:i.normalizeStyle({fontSize:t.fontSize})},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=d=>n.value=d),class:"check-field__input",type:"checkbox",value:t.value,onChange:r},null,40,Pl),[[i.vModelCheckbox,n.value]]),i.createElementVNode("div",{id:"abc",class:"box",style:i.normalizeStyle({width:t.size,height:t.size,borderRadius:t.borderRadius})},[n.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"check-icon",style:i.normalizeStyle({width:t.size,height:t.size})},[i.createVNode(c,{margin:"auto",size:t.size},null,8,["size"])],4)):i.createCommentVNode("",!0)],4),i.createTextVNode(" "+i.toDisplayString(t.label),1)],4)],4)}}}),[["__scopeId","data-v-5d8bdbbf"]]),Fl=["for"],Tl={class:"field"},zl={class:"left-field"},Dl=["id","value","name"],Ll={class:"right-field"},Co=M(i.defineComponent({__name:"PDatePicker",props:i.mergeModels({text:{type:String,default:"",required:!1},label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t,{emit:e}){const n=e,o=i.useModel(t,"modelValue"),r=a=>{const d=a.target.valueAsDate;d?(o.value=d,n("input",s(o.value))):(o.value=null,n("input",null))},s=a=>a?new Date(a.getTime()-a.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"";return(a,c)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Fl)):i.createCommentVNode("",!0),i.createElementVNode("div",Tl,[i.createElementVNode("div",zl,[i.renderSlot(a.$slots,"default",{},void 0,!0)]),i.createElementVNode("input",{id:t.label,max:"2100",min:"1900",value:s(o.value),class:"text-field__input",type:"date",name:t.label,onInput:r},null,40,Dl),i.createElementVNode("div",Ll,[i.renderSlot(a.$slots,"right",{},void 0,!0)])])],4))}}),[["__scopeId","data-v-b77c7363"]]),qn=M(i.defineComponent({inheritAttrs:!1,__name:"PFlex",props:{margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},minWidth:{type:String,default:"",required:!1},maxWidth:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},justifyContent:{type:String,default:"",required:!1},background:{type:String,default:"",required:!1},alignItems:{type:String,default:"",required:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"flex-line",style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,height:t.height,justifyContent:t.justifyContent,background:t.background,alignItems:t.alignItems})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-6c788e9a"]]);var Ol=Object.defineProperty,_l=(t,e,n)=>e in t?Ol(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Jt=(t,e,n)=>_l(t,typeof e!="symbol"?e+"":e,n);const ko={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Eo=(t,e,n)=>t.replaceAll(e,"").replace(n,".").replace("..",".").replace(/[^.\d]/g,""),vo=(t,e,n)=>{var o;return new Intl.NumberFormat(((o=n.number)==null?void 0:o.locale)??"en",{minimumFractionDigits:t,maximumFractionDigits:e,roundingMode:"trunc"})},Hl=(t,e=!0,n)=>{var o,r,s,a;const c=((o=n.number)==null?void 0:o.unsigned)==null&&t.startsWith("-")?"-":"",d=((r=n.number)==null?void 0:r.fraction)??0;let u=vo(0,d,n);const h=u.formatToParts(1000.12),f=((s=h.find(b=>b.type==="group"))==null?void 0:s.value)??" ",p=((a=h.find(b=>b.type==="decimal"))==null?void 0:a.value)??".",y=Eo(t,f,p);if(Number.isNaN(parseFloat(y)))return c;const g=y.split(".");if(g[1]!=null&&g[1].length>=1){const b=g[1].length<=d?g[1].length:d;u=vo(b,d,n)}let k=u.format(parseFloat(y));return e?d>0&&y.endsWith(".")&&!y.slice(0,-1).includes(".")&&(k+=p):k=Eo(k,f,p),c+k};let ql=class{constructor(e={}){Jt(this,"opts",{}),Jt(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...ko,...n.tokens};for(const o of Object.values(n.tokens))typeof o.pattern=="string"&&(o.pattern=new RegExp(o.pattern))}else n.tokens=ko;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((o,r)=>o.length-r.length):n.mask=n.mask[0]??""),n.mask===""&&(n.mask=null),this.opts=n}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(e);if(this.opts.mask==null||n==null)return!1;const o=this.process(e,n).length;return typeof this.opts.mask=="string"?o>=this.opts.mask.length:o>=n.length}findMask(e){const n=this.opts.mask;if(n==null)return null;if(typeof n=="string")return n;if(typeof n=="function")return n(e);const o=this.process(e,n.slice(-1).pop()??"",!1);return n.find(r=>this.process(e,r,!1).length>=o.length)??""}escapeMask(e){const n=[],o=[];return e.split("").forEach((r,s)=>{r==="!"&&e[s-1]!=="!"?o.push(s-o.length):n.push(r)}),{mask:n.join(""),escaped:o}}process(e,n,o=!0){if(this.opts.number!=null)return Hl(e,o,this.opts);if(n==null)return e;const r=`v=${e},mr=${n},m=${o?1:0}`;if(this.memo.has(r))return this.memo.get(r);const{mask:s,escaped:a}=this.escapeMask(n),c=[],d=this.opts.tokens!=null?this.opts.tokens:{},u=this.isReversed()?-1:1,h=this.isReversed()?"unshift":"push",f=this.isReversed()?0:s.length-1,p=this.isReversed()?()=>b>-1&&I>-1:()=>b<s.length&&I<e.length,y=O=>!this.isReversed()&&O<=f||this.isReversed()&&O>=f;let g,k=-1,b=this.isReversed()?s.length-1:0,I=this.isReversed()?e.length-1:0,L=!1;for(;p();){const O=s.charAt(b),z=d[O],F=(z==null?void 0:z.transform)!=null?z.transform(e.charAt(I)):e.charAt(I);if(!a.includes(b)&&z!=null?(F.match(z.pattern)!=null?(c[h](F),z.repeated?(k===-1?k=b:b===f&&b!==k&&(b=k-u),f===k&&(b-=u)):z.multiple&&(L=!0,b-=u),b+=u):z.multiple?L&&(b+=u,I-=u,L=!1):F===g?g=void 0:z.optional&&(b+=u,I-=u),I+=u):(o&&!this.isEager()&&c[h](O),F===O&&!this.isEager()?I+=u:g=O,this.isEager()||(b+=u)),this.isEager())for(;y(b)&&(d[s.charAt(b)]==null||a.includes(b));){if(o){if(c[h](s.charAt(b)),e.charAt(I)===s.charAt(b)){b+=u,I+=u;continue}}else s.charAt(b)===e.charAt(I)&&(I+=u);b+=u}}return this.memo.set(r,c.join("")),this.memo.get(r)}};const Mo=t=>JSON.parse(t.replaceAll("'",'"')),Ul=(t,e={})=>{const n={...e};t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=Wl(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=Xt(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=Xt(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Xt(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=Gl(t.dataset.maskaTokens));const o={};return t.dataset.maskaNumberLocale!=null&&(o.locale=t.dataset.maskaNumberLocale),t.dataset.maskaNumberFraction!=null&&(o.fraction=parseInt(t.dataset.maskaNumberFraction)),t.dataset.maskaNumberUnsigned!=null&&(o.unsigned=Xt(t.dataset.maskaNumberUnsigned)),(t.dataset.maskaNumber!=null||Object.values(o).length>0)&&(n.number=o),n},Xt=t=>t!==""?!!JSON.parse(t):!0,Wl=t=>t.startsWith("[")&&t.endsWith("]")?Mo(t):t,Gl=t=>{if(t.startsWith("{")&&t.endsWith("}"))return Mo(t);const e={};return t.split("|").forEach(n=>{const o=n.split(":");e[o[0]]={pattern:new RegExp(o[1]),optional:o[2]==="optional",multiple:o[2]==="multiple",repeated:o[2]==="repeated"}}),e};let jl=class{constructor(e,n={}){Jt(this,"items",new Map),Jt(this,"onInput",o=>{if(o instanceof CustomEvent&&o.type==="input"&&!o.isTrusted&&!o.bubbles)return;const r=o.target,s=this.items.get(r),a="inputType"in o&&o.inputType.startsWith("delete"),c=s.isEager(),d=a&&c&&s.unmasked(r.value)===""?"":r.value;this.fixCursor(r,a,()=>this.setValue(r,d))}),this.options=n,this.init(this.getInputs(e))}update(e={}){this.options={...e},this.init(Array.from(this.items.keys()))}updateValue(e){e.value!==""&&e.value!==this.processInput(e).masked&&this.setValue(e,e.value)}destroy(){for(const e of this.items.keys())e.removeEventListener("input",this.onInput);this.items.clear()}init(e){const n=this.getOptions(this.options);for(const o of e){this.items.has(o)||o.addEventListener("input",this.onInput,{capture:!0});const r=new ql(Ul(o,n));this.items.set(o,r),queueMicrotask(()=>this.updateValue(o)),o.selectionStart===null&&r.isEager()&&console.warn("Maska: input of `%s` type is not supported",o.type)}}getInputs(e){return typeof e=="string"?Array.from(document.querySelectorAll(e)):"length"in e?Array.from(e):[e]}getOptions(e){const{onMaska:n,preProcess:o,postProcess:r,...s}=e;return s}fixCursor(e,n,o){const r=e.selectionStart,s=e.value;if(o(),r===null||r===s.length&&!n)return;const a=e.value,c=s.slice(0,r),d=a.slice(0,r),u=this.processInput(e,c).unmasked,h=this.processInput(e,d).unmasked;let f=r;c!==d&&(f+=n?a.length-s.length:u.length-h.length),e.setSelectionRange(f,f)}setValue(e,n){const o=this.processInput(e,n);e.value=o.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(r=>r(o)):this.options.onMaska(o)),e.dispatchEvent(new CustomEvent("maska",{detail:o})),e.dispatchEvent(new CustomEvent("input",{detail:o.masked}))}processInput(e,n){const o=this.items.get(e);let r=n??e.value;this.options.preProcess!=null&&(r=this.options.preProcess(r));let s=o.masked(r);return this.options.postProcess!=null&&(s=this.options.postProcess(s)),{masked:s,unmasked:o.unmasked(r),completed:o.completed(r)}}};const Un=new WeakMap,Zl=(t,e)=>{if(t.arg==null||t.instance==null)return;const n="setup"in t.instance.$.type;t.arg in t.instance?t.instance[t.arg]=e:n&&console.warn("Maska: please expose `%s` using defineExpose",t.arg)},Bo=(t,e)=>{var n;const o=t instanceof HTMLInputElement?t:t.querySelector("input");if(o==null||(o==null?void 0:o.type)==="file")return;let r={};if(e.value!=null&&(r=typeof e.value=="string"?{mask:e.value}:{...e.value}),e.arg!=null){const s=a=>{const c=e.modifiers.unmasked?a.unmasked:e.modifiers.completed?a.completed:a.masked;Zl(e,c)};r.onMaska=r.onMaska==null?s:Array.isArray(r.onMaska)?[...r.onMaska,s]:[r.onMaska,s]}Un.has(o)?(n=Un.get(o))==null||n.update(r):Un.set(o,new jl(o,r))},Yl=["for"],Jl={class:"left-field"},Xl=["disabled"],Ql={class:"right-field"},qe=M(i.defineComponent({__name:"PInput",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t){const e=i.useModel(t,"modelValue");return(n,o)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Yl)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",Jl,[i.renderSlot(n.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("input",i.mergeProps(n.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=r=>e.value=r),class:"text-field__input",style:{color:t.color},disabled:t.disabled,onBlur:o[1]||(o[1]=r=>n.$emit("blur",e.value)),onInput:o[2]||(o[2]=r=>n.$emit("input",e.value))}),null,16,Xl),[[i.vModelDynamic,e.value],[i.unref(Bo),t.mask]]),i.createElementVNode("div",Ql,[i.renderSlot(n.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-3e6801ac"]]),Kl=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],ec="ru-RU";class Ve{constructor(){l(this,"locale","ru-RU")}static Format(e,n){if(!e)return"";const o={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return n&&(o.year=n.year||n.year===void 0?n.year:o.year,o.month=n.month||n.month===void 0?n.month:o.month,o.day=n.day||n.day===void 0?n.day:o.day,o.hour=n.hour??o.hour,o.minute=n.minute??o.minute),Intl.DateTimeFormat(ec,o).format(new Date(e))}static FromRuStr(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}static GetPeriod(e,n,o){return`${this.Format(e,o)}-${this.Format(n,o)}`}static GetShortDayName(e){return e?Kl[e.getDay()]:""}static GetCurrentWeekPeriod(e){const n=new Date,o=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),r=new Date(n.getFullYear(),n.getMonth(),o.getDate()+7);return this.GetPeriod(o,r,e||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(e,n){const o=new Date,r=new Date,s=Ve.SplitHourTime(e),a=Ve.SplitHourTime(n);return o.setHours(s[0],s[1],0,0),r.setHours(a[0],a[1],0,0),(r.getTime()-o.getTime())/1e3/60}static HourTimeinMunutes(e){const n=Ve.SplitHourTime(e);return n[0]*60+n[1]}static SplitHourTime(e){const n=e.split(":");return[Number(n[0]),Number(n[1])]}static AddMinutesToHM(e,n){const o=new Date,r=Ve.SplitHourTime(e);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return`${a}:${c}`}static GetMonthsDiff(e,n){return n.getMonth()-e.getMonth()+12*(n.getFullYear()-e.getFullYear())}static StringToDate(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}}class Ye{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");v.BuildClass(this,e)}static Create(){const e=new Ye;return e.id=v.CreateUUID(),e}}class ct{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");v.BuildClass(this,e)}static Create(){const e=new ct;return e.id=v.CreateUUID(),e}}class Qt{constructor(e){l(this,"id");l(this,"address");l(this,"description");v.BuildClass(this,e)}}class Io{constructor(e){l(this,"id");l(this,"address");l(this,"description");v.BuildClass(this,e)}}var tc=Object.defineProperty,Kt=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&tc(e,n,r),r};const It=class fo{constructor(e){l(this,"id");l(this,"description","");l(this,"time","");l(this,"latitude","");l(this,"longitude","");l(this,"emails",[]);l(this,"postAddresses",[new Qt]);l(this,"phones",[]);l(this,"websites",[]);v.BuildClass(this,e)}addEmail(){const e=Ye.Create();return e.contactId=this.id,this.emails.push(e),e}addPhone(){const e=ct.Create();return e.contactId=this.id,this.phones.push(e),e}static Create(){const e=new fo;return e.id=v.CreateUUID(),e}removeEmail(e){v.RemoveFromClassById(e,this.emails)}removePhone(e){v.RemoveFromClassById(e,this.phones)}addPostAddress(){this.postAddresses.push(new Qt)}addWebsite(){this.websites.push(new Io)}pushFirst(){this.emails.length||this.emails.push(new Ye),this.phones.length||this.phones.push(new ct)}getCoords(){return[Number(this.latitude),Number(this.longitude)]}static CreateBufetContacts(){const e=new fo,n=new Qt;return n.address="4-й Добрынинский пер., 4, 1А корпус, 7й этаж",e.postAddresses[0]=n,e}updateDescription(e){this.description=e}updateTime(e){this.time=e}updateLatitude(e){this.latitude=e}updateLongitutde(e){this.longitude=e}};Kt([v.GetClassConstructor(Ye)],It.prototype,"emails"),Kt([v.GetClassConstructor(Qt)],It.prototype,"postAddresses"),Kt([v.GetClassConstructor(ct)],It.prototype,"phones"),Kt([v.GetClassConstructor(Io)],It.prototype,"websites");let dt=It;class X{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");v.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Ii.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:me&&me.tagName.toUpperCase()==="SCRIPT"&&me.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const o=new X;return o.id=n??v.CreateUUID(),o.originalName=e.name,o.file=e.blob,o.fileSystemPath=v.CreateUUID(),o}uploadNewFile(e){this.id||(this.id=v.CreateUUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=v.CreateUUID()}setFile(e){this.file=e,this.url=e.src}uploadAndSetFile(e){this.uploadNewFile(e),this.setFile(e),this.url=e.url}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,n){if(e.target){let o="/src/services/assets/img/avatar.webp";return n&&(o=`@/assets/img/${n}`),new URL(o,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:me&&me.tagName.toUpperCase()==="SCRIPT"&&me.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)==="pdf"}getExtension(e){const n=e.split(".");return n[n.length-1]}}var Q=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(Q||{}),he=(t=>(t.Eq="=",t.Ne="!=",t.Gt=">",t.Lt="<",t.Btw="between",t.In="in",t.Like="like",t.Null="is null",t.NotNull="is not null",t))(he||{}),nc=Object.defineProperty,ic=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&nc(e,n,r),r};const $o=class Bt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",he.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",Q.String);l(this,"set",[]);l(this,"isSet",!1);l(this,"joinTable","");l(this,"joinTableModel","");l(this,"joinTableFk","");l(this,"joinTablePk","");l(this,"joinTableId","");l(this,"joinTableIdCol","");v.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===Q.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===he.In?n&&Ae.Eq(this.set,e.set):n}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===Q.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===Q.String?this.value1===(e==null?void 0:e.value1):this.type===Q.Join&&this.set.length?Ae.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",n=this.model?`"model":"${this.model}"`:"",o=this.col?`"col":"${this.col}"`:"",r=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===Q.Boolean?`"boolean":${this.boolean}`:"",c=this.type===Q.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",d=this.type===Q.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===Q.Number?`"number":${this.number}`:"",h=this.type===Q.Set||this.operator===he.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===Q.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,o,r,s,a,c,d,u,h,f].filter(p=>p!=="").toString()}fromUrlQuery(e){this.model=e.get("model")??"",this.col=e.get("col")??"",this.label=e.get("label")??"",this.operator=e.get("operator")??"",this.value1=e.get("value1")??"",this.type=e.get("type")??"",this.boolean=!!(e.get("boolean")??""),this.joinTableModel=e.get("joinTableModel")??"",this.joinTableId=e.get("joinTableId")??"",this.joinTableFk=e.get("joinTableFk")??"",this.joinTableIdCol=e.get("joinTableIdCol")??"",this.joinTablePk=e.get("joinTablePk")??""}isUnaryFilter(){return this.operator===he.Eq||this.operator===he.Gt||this.operator===he.Lt}isBetweenFilter(){return this.operator===he.Btw}isSetFilter(){return this.operator===he.In}static Create(e,n,o){const r=new Bt;return r.model=e.GetClassName(),r.col=n??"",r.type=o,r.type===Q.Number&&(r.value1="0"),r.type===Q.String&&(r.value1=""),r.type===Q.Boolean&&(r.value1="false",r.operator=he.Eq),r}static CreateFilterModel(e,n,o){const r=new Bt;return r.id=de(),r.model=typeof e=="string"?e:e.GetClassName(),r.col=n??"",r.type=o,r.type===Q.Number&&(r.value1="0"),r.type===Q.String&&(r.value1=""),r.type===Q.Boolean&&(r.value1="false"),r}static CreateFilterModelWithJoin(e,n,o,r,s,a,c,d){const u=new Bt;return u.id=de(),u.joinTable=o,u.joinTablePk=r,u.joinTableFk=s,u.col=n,u.type=a,c&&(u.joinTableId=c),d&&(u.joinTableIdCol=d),u}static CreateFilterModelWithJoinV2(e,n,o,r,s,a,c){const d=new Bt;return d.model=e,d.joinTableModel=o,d.joinTablePk=r,d.joinTableFk=s,d.col=n,d.type=Q.Join,a&&(d.joinTableId=a),c&&(d.joinTableIdCol=c),d}static OnlyIfSecondModelExists(e,n){const o=new Bt;return o.id=de(),o.model=q.ToCamelCase(e.GetClassName()),o.joinTableModel=q.ToCamelCase(n.GetClassName()),o.type=Q.Join,o}addToSet(...e){e.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(o=>o!==n)})}pushToSet(...e){e.forEach(n=>{this.set.indexOf(n)===-1&&this.set.push(n)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return i.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,n){if(!e&&!n){this.dropDates();return}if(!n){this.setDate1(e),this.operator=he.Eq;return}this.setDate2(n),this.operator=he.Btw}};ic([v.GetClassConstructor(String)],$o.prototype,"set");let Wn=$o;class oc{constructor(){l(this,"operation",he.Lt);l(this,"column","");l(this,"value");l(this,"initial",!0);l(this,"tableName","");l(this,"version","");l(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",o=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,r=o?`"value":"${o}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,r,s,a].filter(c=>c!=="").toString()}fromUrlQuery(e){e.cursvalue&&(this.value=e.cursvalue),e.curscolumn&&(this.column=String(e.curscolumn)),e.cursinitial!==void 0&&(this.initial=!!e.cursinitial),e.curstableName&&(this.tableName=String(e.curstableName)),e.cursoperation&&(this.operation=e.cursoperation)}}class en{constructor(e){l(this,"offset",0);l(this,"limit",25);l(this,"cursor",new oc);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");v.BuildClass(this,e)}setLoadMore(e,n,o){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=he.Gt,this.cursor.column=n,this.cursor.tableName=o,this.cursorMode=!0}setLoadMoreV2(e,n,o){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=he.Gt,this.cursor.column=n,this.cursor.model=o,this.cursorMode=!0,this.version="v2"}setOffset(e){this.offset=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,o=`"cursorMode":${this.cursorMode}`,r=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,o,r,s,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),o=new URLSearchParams(decodeURIComponent(n));this.offset=Number(o.get("offset")),this.limit=Number(o.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.limit)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.limit+1}drop(){this.offset=0,this.limit=25,v.BuildClass(this)}}class tn{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const o=new tn;return o.model=e.GetClassName(),o.cols=n,o}}var Pe=(t=>(t.Asc="asc",t.Desc="desc",t))(Pe||{});class nn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);v.BuildClass(this,e)}static Create(e,n,o=Pe.Asc,r,s){const a=new nn;return a.model=e.GetClassName(),a.col=n??"",a.order=o??Pe.Asc,a.label=r??"",a.default=s??!1,a}isAsc(){return this.order===Pe.Asc}isDesc(){return this.order===Pe.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",n=this.col?`"col":"${this.col}"`:"",o=this.order?`"order":"${this.order}"`:"";return[e,n,o].toString()}async fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("s=")+2,e.indexOf("|")),o=new URLSearchParams(decodeURIComponent(n));this.model=o.get("model")??"",this.col=o.get("col")??"",this.label=o.get("label")??"",this.default=!!o.get("default"),this.order=o.get("order")??""}}var rc=Object.defineProperty,on=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&rc(e,n,r),r};const $t=(ke=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"s",[]);l(this,"p",new en);l(this,"t",new tn);v.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new ke),this.instance}createFrom(e){const n=new ke(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new ke(this);return e.f=this.f.map(n=>ke.EmptyEntiries(n)),e.s=this.s.map(n=>ke.EmptyEntiries(n)),e.p=ke.EmptyEntiries(this.p),e.t=ke.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const o=Object.entries(e).filter(([r,s])=>r!=="label"&&s!==""&&s!==null);return Object.fromEntries(o)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return Ae.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(o=>o.eq(e));v.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new en}resetF(){this.f=[]}},l(ke,"instance"),ke);on([v.GetClassConstructor(Wn)],$t.prototype,"f"),on([v.GetClassConstructor(nn)],$t.prototype,"s"),on([v.GetClassConstructor(en)],$t.prototype,"p"),on([v.GetClassConstructor(tn)],$t.prototype,"t");let ee=$t;var sc=Object.defineProperty,ac=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&sc(e,n,r),r};class Gn{constructor(e){l(this,"id");l(this,"name","");l(this,"surname","");l(this,"patronymic","");l(this,"citizenship","");l(this,"placeBirth","");l(this,"carNumber","");l(this,"carModel","");l(this,"snils","");l(this,"photoId");l(this,"photo",new X);l(this,"photoMiniId");l(this,"photoMini",new X);l(this,"isMale",!0);l(this,"dateBirth",new Date);l(this,"contact",new dt);l(this,"contactId");l(this,"slug","");l(this,"postIndex","");l(this,"address","");l(this,"editNameMode",!1);v.BuildClass(this,e)}getImageUrl(){return this.photo.fileSystemPath?this.photo.getFileUrl():new URL("/src/services/assets/img/avatar.webp",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:me&&me.tagName.toUpperCase()==="SCRIPT"&&me.src||new URL("sprof.umd.cjs",document.baseURI).href)}setEditNameMode(e){this.editNameMode=e}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(e){return e?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=q.Capitalize(this.name),this.surname=q.Capitalize(this.surname),this.patronymic=q.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}getFileInfos(){const e=[];return e.push(this.photo),e.push(this.photoMini),e}removePhoto(){this.photo=new X,this.photoId=void 0}removePhotoMini(){this.photoMini=new X,this.photoMiniId=void 0}setFullName(e){this.surname=e.surname,this.name=e.name,this.patronymic=e.patronymic}initContact(){this.contact=dt.Create(),this.contactId=this.contact.id}}ac([v.GetClassConstructor(dt)],Gn.prototype,"contact");class Je{constructor(e,n,o,r){l(this,"text","Сохранить");l(this,"type",ue.Success);l(this,"condition",!0);l(this,"action");l(this,"id","button");l(this,"disabled",!1);this.text=e,this.type=o,this.action=n,r!==void 0&&(this.condition=r)}static Primary(e,n,o){return new Je(e,n,ue.Primary,o)}static Success(e,n,o){return new Je(e,n,ue.Success,o)}static Warning(e,n,o){return new Je(e,n,ue.Warning,o)}static Error(e,n,o){return new Je(e,n,ue.Error,o)}}var xo=(t=>(t.simple="simple",t.oneToMany="oneToMany",t.manyToMany="manyToMany",t))(xo||{}),fe=(t=>(t.String="string",t.Text="text",t.Number="number",t.Date="date",t.DateTime="dateTime",t.Radio="radio",t.Set="set",t.Boolean="boolean",t.Files="files",t.File="file",t.MatrixRadio="matrixRadio",t.MatrixSet="matrixSet",t))(fe||{});class jn{constructor(e){l(this,"id");l(this,"name",fe.String);l(this,"valueRelation",xo.simple);v.BuildClass(this,e)}isString(){return this.name==="string"}isNumber(){return this.name==="number"}isDate(){return this.name==="date"}isDateTime(){return this.name==="dateTime"}isRadio(){return this.name==="radio"}isSet(){return this.name==="set"}isText(){return this.name==="text"}isBoolean(){return this.name==="boolean"}isFile(){return this.name==="file"}isFiles(){return this.name==="files"}getComponentType(){if(this.name===fe.Radio)return"RadioProp";if(this.name===fe.Set)return"SetProp";if(this.name===fe.Number)return"NumberProp";if(this.name===fe.String)return"StringProp"}}/*!
15
15
  * vue-router v4.4.5
16
16
  * (c) 2024 Eduardo San Martin Morote
17
17
  * @license MIT
18
- */function Vo(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}var Po;(function(t){t.pop="pop",t.push="push"})(Po||(Po={}));var Fo;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Fo||(Fo={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var To;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(To||(To={}));const cc=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Symbol(process.env.NODE_ENV!=="production"?"router":""),Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function dc(t,e,n){const o=()=>{t[e].delete(n)};i.onUnmounted(o),i.onDeactivated(o),i.onActivated(()=>{t[e].add(n)}),t[e].add(n)}function uc(t){if(process.env.NODE_ENV!=="production"&&!i.getCurrentInstance()){Vo("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");return}const e=i.inject(cc,{}).value;if(!e){process.env.NODE_ENV!=="production"&&Vo("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");return}dc(e,"leaveGuards",t)}function zo(t,e){const n=[],o=e||Fe.Asc,r=o===Fe.Asc?Fe.Desc:Fe.Asc;return Object.values(t).forEach(s=>{n.push(s(o)),n.push(s(r))}),n.length>0&&!n.some(s=>s.default)&&(n[0].default=!0),e&&n.forEach(s=>{s.default&&(s.default=s.order===e)}),n}class hc{constructor(){l(this,"list",[]);l(this,"defaultSortModel");l(this,"changeFlag",!1)}Set(e){this.Reset(),e&&(Array.isArray(e)?this.list=e:this.list=zo(e),this.SetDefault())}SetDefault(){this.defaultSortModel=this.list.find(e=>e.default)??this.list[0],this.changeFlag=!this.changeFlag}Get(){return this.list}GetDefault(){return this.defaultSortModel}Reset(){this.list=[],this.defaultSortModel=void 0}}const Te=new hc;var Se=(t=>(t.Login="login",t.Register="register",t.Restore="restore",t.Refresh="refresh",t))(Se||{});class Do extends Qe{constructor(){super(...arguments);l(this,"id","auth-button");l(this,"status",Se.Login);l(this,"submit",!1)}GetStatus(){return this.status}}let Jn=class extends Do{constructor(){super(...arguments);l(this,"id","auth-button-login");l(this,"text","Войти");l(this,"isSubmit",!1);l(this,"disabled",!1)}};class Xn extends Do{constructor(){super(...arguments);l(this,"id","auth-button-register");l(this,"text","Зарегистрироваться");l(this,"isSubmit",!1);l(this,"disabled",!1)}}class fc{constructor(){l(this,"value","");l(this,"label","");l(this,"placeholder","");l(this,"validator")}Validate(){return this.validator?(this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}class an extends fc{constructor(){super(...arguments);l(this,"method");l(this,"id","field-auth");l(this,"name","")}}var ft=(t=>(t.Login="login",t.Email="email",t.Phone="phone",t.VK="vk",t.ESIA="esia",t))(ft||{});const mc=/\S+@\S+\.\S+/;class Lo{constructor(){l(this,"errors",[])}validate(e){return(e===""||!e)&&this.errors.push("Введите email"),mc.test(e)||this.errors.push("Некорректный email"),this.errors}}class ln extends an{constructor(){super(...arguments);l(this,"id","field-auth-email");l(this,"label","Email");l(this,"name","email");l(this,"placeholder","Введите email");l(this,"validator",new Lo);l(this,"method",ft.Email)}}class pc{constructor(){l(this,"errors",[]);l(this,"length",6)}validate(e){return e===""||!e?(this.errors.push("Введите пароль"),this.errors):(e.length<this.length&&this.errors.push("Пароль недостаточной длины"),this.errors)}}class cn extends an{constructor(){super(...arguments);l(this,"label","Пароль");l(this,"validator",new pc);l(this,"name","password");l(this,"placeholder","Введите пароль");l(this,"id","field-auth-password")}}class Oo extends an{constructor(){super(...arguments);l(this,"label","Повторите пароль");l(this,"id","field-auth-password-repeat")}}const _o={[Se.Login]:{methods:[ft.Email],title:"Вход в систему",action:"login",buttons:[new Jn,new Xn],fields:[new ln,new cn],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[Se.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new Xn,new Jn],fields:[new ln,new cn,new Oo],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[Se.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[],fields:[new ln]},[Se.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[],fields:[new cn]}};let gc=class{constructor(){l(this,"settings",_o);l(this,"status",Se.Login);l(this,"selectedMethod",ft.Email)}async Block(e){await e()}GetValues(){const e=this.GetFields(),n=new Map;return e.forEach(o=>{o.value&&n.set(o.name,o.value)}),n}Validate(){return[]}GetFields(){return this.GetCurSet().fields.filter(e=>!e.method||e.method===this.selectedMethod)}GetMethods(){return this.GetCurSet().methods}Status(){return this.status}GetCurSet(){return this.settings[this.status]}IsLogin(){return this.status===Se.Login}IsRegister(){return this.status===Se.Register}IsRestore(){return this.status===Se.Restore}IsRefresh(){return this.status===Se.Refresh}SetStatus(e){this.status=e}GetTitle(){return this.GetCurSet().title}GetButtons(){const e=this.GetCurSet().buttons;return e.forEach(n=>{n.submit=!1}),e.length>0&&(e[0].submit=!0),e}GetSuccessMessage(){return this.GetCurSet().successMessage}GetErrorMessage(){return this.GetCurSet().errorMessage}GetAction(){return this.GetCurSet().action}ResetFields(){this.GetCurSet().fields.forEach(e=>e.Reset())}Reset(){this.status=Se.Login}};class yc{constructor(){l(this,"visible",!1);l(this,"closable",!1)}IsClosable(){return this.closable}IsVisible(){return this.visible}Close(){this.visible=!1}Open(e){e&&(this.closable=!0),this.visible=!0}}class xe{static Get(e){const n=localStorage.getItem(e);if(n)return JSON.parse(n)}static Set(e,n){n&&localStorage.setItem(e,JSON.stringify(n))}static Remove(e){localStorage.removeItem(e)}}var Me=(t=>(t.User="user",t.AccessToken="accessToken",t.RefreshToken="refreshToken",t))(Me||{});class wc{set(e){this.setAccessToken(e.accessToken),this.setRefreshToken(e.refreshToken)}getAccessToken(){return xe.Get(Me.AccessToken)}getRefreshToken(){return xe.Get(Me.RefreshToken)}setAccessToken(e){xe.Set(Me.AccessToken,e)}setRefreshToken(e){xe.Set(Me.RefreshToken,e)}reset(){xe.Remove(Me.AccessToken),xe.Remove(Me.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class bc{constructor(){l(this,"user");l(this,"userConstructor")}AssignTo(e){e.user=this.get()}setUserConstructor(e){this.userConstructor=e}get(){if(this.userConstructor)return this.user=new this.userConstructor(xe.Get(Me.User)),this.user}set(e){this.userConstructor&&(this.user=new this.userConstructor(e),xe.Set(Me.User,this.user))}reset(){this.user=void 0,xe.Remove(Me.User)}actualize(){const e=xe.Get(Me.User);e&&this.set(e)}}class Sc{constructor(){l(this,"isAuth",!1);l(this,"user",new bc);l(this,"tokens",new wc);l(this,"preventLogout",!1)}DeprecateLogout(){this.preventLogout=!0}AllowLogout(){this.preventLogout=!1}get IsAuth(){return this.isAuth}get User(){return this.user.get()}SetUserConstructor(e){this.user.setUserConstructor(e)}SetState(e){this.user.set(e.user),this.tokens.set(e.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){N.Notification.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.user.actualize(),this.tokens.actualize(),this.user.get()&&this.tokens.getAccessToken()&&this.tokens.getRefreshToken()){this.isAuth=!0;return}this.Logout()}}class Ho{constructor(){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new X)}}class Rt{constructor(e){l(this,"id");l(this,"passportId");l(this,"fileInfoId");l(this,"fileInfo",new X);l(this,"order",0);v.BuildClass(this,e)}static Create(e){const n=new Rt;return n.id=v.CreateUUID(),n.passportId=e,n}}var Cc=Object.defineProperty,kc=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Cc(e,n,r),r};class Qn{constructor(e){l(this,"id");l(this,"num","");l(this,"seria","");l(this,"division","");l(this,"divisionCode","");l(this,"citzenship","");l(this,"date",new Date);l(this,"address","");l(this,"passportScans",[]);v.BuildClass(this,e)}}kc([v.GetClassConstructor(Rt)],Qn.prototype,"passportScans");class qo{constructor(){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new X)}}let Ec=class hl{constructor(e){l(this,"name","");v.BuildClass(this,e)}static Set(){}static Get(e,n){const o=sessionStorage.getItem(e);if(o){const r=JSON.parse(o),s=new Date,a=new Date(r.time),c=s.getTime()-a.getTime();return Math.round(c/6e4)>(n||10)?null:r.data}else return null}static async TryGet(e,n,o){let r;return r=hl.Get(e,o),r||(r=await n()),r}};function Uo(t,e){return function(){return t.apply(e,arguments)}}const{toString:vc}=Object.prototype,{getPrototypeOf:Kn}=Object,dn=(t=>e=>{const n=vc.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ne=t=>(t=t.toLowerCase(),e=>dn(e)===t),un=t=>e=>typeof e===t,{isArray:mt}=Array,At=un("undefined");function Mc(t){return t!==null&&!At(t)&&t.constructor!==null&&!At(t.constructor)&&Ce(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Wo=Ne("ArrayBuffer");function Bc(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Wo(t.buffer),e}const Ic=un("string"),Ce=un("function"),Go=un("number"),hn=t=>t!==null&&typeof t=="object",$c=t=>t===!0||t===!1,fn=t=>{if(dn(t)!=="object")return!1;const e=Kn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},xc=Ne("Date"),Nc=Ne("File"),Rc=Ne("Blob"),Ac=Ne("FileList"),Vc=t=>hn(t)&&Ce(t.pipe),Pc=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ce(t.append)&&((e=dn(t))==="formdata"||e==="object"&&Ce(t.toString)&&t.toString()==="[object FormData]"))},Fc=Ne("URLSearchParams"),[Tc,zc,Dc,Lc]=["ReadableStream","Request","Response","Headers"].map(Ne),Oc=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let o,r;if(typeof t!="object"&&(t=[t]),mt(t))for(o=0,r=t.length;o<r;o++)e.call(null,t[o],o,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let c;for(o=0;o<a;o++)c=s[o],e.call(null,t[c],c,t)}}function jo(t,e){e=e.toLowerCase();const n=Object.keys(t);let o=n.length,r;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const Ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zo=t=>!At(t)&&t!==Ke;function ei(){const{caseless:t}=Zo(this)&&this||{},e={},n=(o,r)=>{const s=t&&jo(e,r)||r;fn(e[s])&&fn(o)?e[s]=ei(e[s],o):fn(o)?e[s]=ei({},o):mt(o)?e[s]=o.slice():e[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Vt(arguments[o],n);return e}const _c=(t,e,n,{allOwnKeys:o}={})=>(Vt(e,(r,s)=>{n&&Ce(r)?t[s]=Uo(r,n):t[s]=r},{allOwnKeys:o}),t),Hc=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),qc=(t,e,n,o)=>{t.prototype=Object.create(e.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Uc=(t,e,n,o)=>{let r,s,a;const c={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),s=r.length;s-- >0;)a=r[s],(!o||o(a,t,e))&&!c[a]&&(e[a]=t[a],c[a]=!0);t=n!==!1&&Kn(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Wc=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const o=t.indexOf(e,n);return o!==-1&&o===n},Gc=t=>{if(!t)return null;if(mt(t))return t;let e=t.length;if(!Go(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},jc=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Kn(Uint8Array)),Zc=(t,e)=>{const o=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=o.next())&&!r.done;){const s=r.value;e.call(t,s[0],s[1])}},Yc=(t,e)=>{let n;const o=[];for(;(n=t.exec(e))!==null;)o.push(n);return o},Jc=Ne("HTMLFormElement"),Xc=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),Yo=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Qc=Ne("RegExp"),Jo=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),o={};Vt(n,(r,s)=>{let a;(a=e(r,s,t))!==!1&&(o[s]=a||r)}),Object.defineProperties(t,o)},Kc=t=>{Jo(t,(e,n)=>{if(Ce(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=t[n];if(Ce(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ed=(t,e)=>{const n={},o=r=>{r.forEach(s=>{n[s]=!0})};return mt(t)?o(t):o(String(t).split(e)),n},td=()=>{},nd=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ti="abcdefghijklmnopqrstuvwxyz",Xo="0123456789",Qo={DIGIT:Xo,ALPHA:ti,ALPHA_DIGIT:ti+ti.toUpperCase()+Xo},id=(t=16,e=Qo.ALPHA_DIGIT)=>{let n="";const{length:o}=e;for(;t--;)n+=e[Math.random()*o|0];return n};function od(t){return!!(t&&Ce(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const rd=t=>{const e=new Array(10),n=(o,r)=>{if(hn(o)){if(e.indexOf(o)>=0)return;if(!("toJSON"in o)){e[r]=o;const s=mt(o)?[]:{};return Vt(o,(a,c)=>{const d=n(a,r+1);!At(d)&&(s[c]=d)}),e[r]=void 0,s}}return o};return n(t,0)},sd=Ne("AsyncFunction"),ad=t=>t&&(hn(t)||Ce(t))&&Ce(t.then)&&Ce(t.catch),Ko=((t,e)=>t?setImmediate:e?((n,o)=>(Ke.addEventListener("message",({source:r,data:s})=>{r===Ke&&s===n&&o.length&&o.shift()()},!1),r=>{o.push(r),Ke.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(Ke.postMessage)),ld=typeof queueMicrotask<"u"?queueMicrotask.bind(Ke):typeof process<"u"&&process.nextTick||Ko,C={isArray:mt,isArrayBuffer:Wo,isBuffer:Mc,isFormData:Pc,isArrayBufferView:Bc,isString:Ic,isNumber:Go,isBoolean:$c,isObject:hn,isPlainObject:fn,isReadableStream:Tc,isRequest:zc,isResponse:Dc,isHeaders:Lc,isUndefined:At,isDate:xc,isFile:Nc,isBlob:Rc,isRegExp:Qc,isFunction:Ce,isStream:Vc,isURLSearchParams:Fc,isTypedArray:jc,isFileList:Ac,forEach:Vt,merge:ei,extend:_c,trim:Oc,stripBOM:Hc,inherits:qc,toFlatObject:Uc,kindOf:dn,kindOfTest:Ne,endsWith:Wc,toArray:Gc,forEachEntry:Zc,matchAll:Yc,isHTMLForm:Jc,hasOwnProperty:Yo,hasOwnProp:Yo,reduceDescriptors:Jo,freezeMethods:Kc,toObjectSet:ed,toCamelCase:Xc,noop:td,toFiniteNumber:nd,findKey:jo,global:Ke,isContextDefined:Zo,ALPHABET:Qo,generateString:id,isSpecCompliantForm:od,toJSONObject:rd,isAsyncFn:sd,isThenable:ad,setImmediate:Ko,asap:ld};function D(t,e,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}C.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:C.toJSONObject(this.config),code:this.code,status:this.status}}});const er=D.prototype,tr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{tr[t]={value:t}}),Object.defineProperties(D,tr),Object.defineProperty(er,"isAxiosError",{value:!0}),D.from=(t,e,n,o,r,s)=>{const a=Object.create(er);return C.toFlatObject(t,a,function(d){return d!==Error.prototype},c=>c!=="isAxiosError"),D.call(a,t.message,e,n,o,r),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const cd=null;function ni(t){return C.isPlainObject(t)||C.isArray(t)}function nr(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function ir(t,e,n){return t?t.concat(e).map(function(r,s){return r=nr(r),!n&&s?"["+r+"]":r}).join(n?".":""):e}function dd(t){return C.isArray(t)&&!t.some(ni)}const ud=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function mn(t,e,n){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=C.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,b){return!C.isUndefined(b[k])});const o=n.metaTokens,r=n.visitor||h,s=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(e);if(!C.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(C.isDate(g))return g.toISOString();if(!d&&C.isBlob(g))throw new D("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(g)||C.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function h(g,k,b){let I=g;if(g&&!b&&typeof g=="object"){if(C.endsWith(k,"{}"))k=o?k:k.slice(0,-2),g=JSON.stringify(g);else if(C.isArray(g)&&dd(g)||(C.isFileList(g)||C.endsWith(k,"[]"))&&(I=C.toArray(g)))return k=nr(k),I.forEach(function(O,z){!(C.isUndefined(O)||O===null)&&e.append(a===!0?ir([k],z,s):a===null?k:k+"[]",u(O))}),!1}return ni(g)?!0:(e.append(ir(b,k,s),u(g)),!1)}const f=[],p=Object.assign(ud,{defaultVisitor:h,convertValue:u,isVisitable:ni});function y(g,k){if(!C.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+k.join("."));f.push(g),C.forEach(g,function(I,L){(!(C.isUndefined(I)||I===null)&&r.call(e,I,C.isString(L)?L.trim():L,k,p))===!0&&y(I,k?k.concat(L):[L])}),f.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return y(t),e}function or(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return e[o]})}function ii(t,e){this._pairs=[],t&&mn(t,this,e)}const rr=ii.prototype;rr.append=function(e,n){this._pairs.push([e,n])},rr.toString=function(e){const n=e?function(o){return e.call(this,o,or)}:or;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function hd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sr(t,e,n){if(!e)return t;const o=n&&n.encode||hd,r=n&&n.serialize;let s;if(r?s=r(e,n):s=C.isURLSearchParams(e)?e.toString():new ii(e,n).toString(o),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class ar{constructor(){this.handlers=[]}use(e,n,o){return this.handlers.push({fulfilled:e,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){C.forEach(this.handlers,function(o){o!==null&&e(o)})}}const lr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ii,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},oi=typeof window<"u"&&typeof document<"u",ri=typeof navigator=="object"&&navigator||void 0,md=oi&&(!ri||["ReactNative","NativeScript","NS"].indexOf(ri.product)<0),pd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gd=oi&&window.location.href||"http://localhost",ge={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:oi,hasStandardBrowserEnv:md,hasStandardBrowserWebWorkerEnv:pd,navigator:ri,origin:gd},Symbol.toStringTag,{value:"Module"})),...fd};function yd(t,e){return mn(t,new ge.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,s){return ge.isNode&&C.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function wd(t){return C.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function bd(t){const e={},n=Object.keys(t);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],e[s]=t[s];return e}function cr(t){function e(n,o,r,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),d=s>=n.length;return a=!a&&C.isArray(r)?r.length:a,d?(C.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!c):((!r[a]||!C.isObject(r[a]))&&(r[a]=[]),e(n,o,r[a],s)&&C.isArray(r[a])&&(r[a]=bd(r[a])),!c)}if(C.isFormData(t)&&C.isFunction(t.entries)){const n={};return C.forEachEntry(t,(o,r)=>{e(wd(o),r,n,0)}),n}return null}function Sd(t,e,n){if(C.isString(t))try{return(e||JSON.parse)(t),C.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(t)}const Pt={transitional:lr,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,s=C.isObject(e);if(s&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return r?JSON.stringify(cr(e)):e;if(C.isArrayBuffer(e)||C.isBuffer(e)||C.isStream(e)||C.isFile(e)||C.isBlob(e)||C.isReadableStream(e))return e;if(C.isArrayBufferView(e))return e.buffer;if(C.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return yd(e,this.formSerializer).toString();if((c=C.isFileList(e))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return mn(c?{"files[]":e}:e,d&&new d,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),Sd(e)):e}],transformResponse:[function(e){const n=this.transitional||Pt.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(C.isResponse(e)||C.isReadableStream(e))return e;if(e&&C.isString(e)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(c){if(a)throw c.name==="SyntaxError"?D.from(c,D.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],t=>{Pt.headers[t]={}});const Cd=C.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),kd=t=>{const e={};let n,o,r;return t&&t.split(`
19
- `).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!n||e[n]&&Cd[n])&&(n==="set-cookie"?e[n]?e[n].push(o):e[n]=[o]:e[n]=e[n]?e[n]+", "+o:o)}),e},dr=Symbol("internals");function Ft(t){return t&&String(t).trim().toLowerCase()}function pn(t){return t===!1||t==null?t:C.isArray(t)?t.map(pn):String(t)}function Ed(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(t);)e[o[1]]=o[2];return e}const vd=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function si(t,e,n,o,r){if(C.isFunction(o))return o.call(this,e,n);if(r&&(e=n),!!C.isString(e)){if(C.isString(o))return e.indexOf(o)!==-1;if(C.isRegExp(o))return o.test(e)}}function Md(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,o)=>n.toUpperCase()+o)}function Bd(t,e){const n=C.toCamelCase(" "+e);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+n,{value:function(r,s,a){return this[o].call(this,e,r,s,a)},configurable:!0})})}class ye{constructor(e){e&&this.set(e)}set(e,n,o){const r=this;function s(c,d,u){const h=Ft(d);if(!h)throw new Error("header name must be a non-empty string");const f=C.findKey(r,h);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||d]=pn(c))}const a=(c,d)=>C.forEach(c,(u,h)=>s(u,h,d));if(C.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(C.isString(e)&&(e=e.trim())&&!vd(e))a(kd(e),n);else if(C.isHeaders(e))for(const[c,d]of e.entries())s(d,c,o);else e!=null&&s(n,e,o);return this}get(e,n){if(e=Ft(e),e){const o=C.findKey(this,e);if(o){const r=this[o];if(!n)return r;if(n===!0)return Ed(r);if(C.isFunction(n))return n.call(this,r,o);if(C.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ft(e),e){const o=C.findKey(this,e);return!!(o&&this[o]!==void 0&&(!n||si(this,this[o],o,n)))}return!1}delete(e,n){const o=this;let r=!1;function s(a){if(a=Ft(a),a){const c=C.findKey(o,a);c&&(!n||si(o,o[c],c,n))&&(delete o[c],r=!0)}}return C.isArray(e)?e.forEach(s):s(e),r}clear(e){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const s=n[o];(!e||si(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){const n=this,o={};return C.forEach(this,(r,s)=>{const a=C.findKey(o,s);if(a){n[a]=pn(r),delete n[s];return}const c=e?Md(s):String(s).trim();c!==s&&delete n[s],n[c]=pn(r),o[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return C.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=e&&C.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
20
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const o=new this(e);return n.forEach(r=>o.set(r)),o}static accessor(e){const o=(this[dr]=this[dr]={accessors:{}}).accessors,r=this.prototype;function s(a){const c=Ft(a);o[c]||(Bd(r,a),o[c]=!0)}return C.isArray(e)?e.forEach(s):s(e),this}}ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),C.reduceDescriptors(ye.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(o){this[n]=o}}}),C.freezeMethods(ye);function ai(t,e){const n=this||Pt,o=e||n,r=ye.from(o.headers);let s=o.data;return C.forEach(t,function(c){s=c.call(n,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function ur(t){return!!(t&&t.__CANCEL__)}function pt(t,e,n){D.call(this,t??"canceled",D.ERR_CANCELED,e,n),this.name="CanceledError"}C.inherits(pt,D,{__CANCEL__:!0});function hr(t,e,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):e(new D("Request failed with status code "+n.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Id(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function $d(t,e){t=t||10;const n=new Array(t),o=new Array(t);let r=0,s=0,a;return e=e!==void 0?e:1e3,function(d){const u=Date.now(),h=o[s];a||(a=u),n[r]=d,o[r]=u;let f=s,p=0;for(;f!==r;)p+=n[f++],f=f%t;if(r=(r+1)%t,r===s&&(s=(s+1)%t),u-a<e)return;const y=h&&u-h;return y?Math.round(p*1e3/y):void 0}}function xd(t,e){let n=0,o=1e3/e,r,s;const a=(u,h=Date.now())=>{n=h,r=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=o?a(u,h):(r=u,s||(s=setTimeout(()=>{s=null,a(r)},o-f)))},()=>r&&a(r)]}const gn=(t,e,n=3)=>{let o=0;const r=$d(50,250);return xd(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,d=a-o,u=r(d),h=a<=c;o=a;const f={loaded:a,total:c,progress:c?a/c:void 0,bytes:d,rate:u||void 0,estimated:u&&c&&h?(c-a)/u:void 0,event:s,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(f)},n)},fr=(t,e)=>{const n=t!=null;return[o=>e[0]({lengthComputable:n,total:t,loaded:o}),e[1]]},mr=t=>(...e)=>C.asap(()=>t(...e)),Nd=ge.hasStandardBrowserEnv?function(){const e=ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent),n=document.createElement("a");let o;function r(s){let a=s;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(a){const c=C.isString(a)?r(a):a;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}(),Rd=ge.hasStandardBrowserEnv?{write(t,e,n,o,r,s){const a=[t+"="+encodeURIComponent(e)];C.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),C.isString(o)&&a.push("path="+o),C.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ad(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Vd(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function pr(t,e){return t&&!Ad(e)?Vd(t,e):e}const gr=t=>t instanceof ye?{...t}:t;function et(t,e){e=e||{};const n={};function o(u,h,f){return C.isPlainObject(u)&&C.isPlainObject(h)?C.merge.call({caseless:f},u,h):C.isPlainObject(h)?C.merge({},h):C.isArray(h)?h.slice():h}function r(u,h,f){if(C.isUndefined(h)){if(!C.isUndefined(u))return o(void 0,u,f)}else return o(u,h,f)}function s(u,h){if(!C.isUndefined(h))return o(void 0,h)}function a(u,h){if(C.isUndefined(h)){if(!C.isUndefined(u))return o(void 0,u)}else return o(void 0,h)}function c(u,h,f){if(f in e)return o(u,h);if(f in t)return o(void 0,u)}const d={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(u,h)=>r(gr(u),gr(h),!0)};return C.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=d[h]||r,p=f(t[h],e[h],h);C.isUndefined(p)&&f!==c||(n[h]=p)}),n}const yr=t=>{const e=et({},t);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:c}=e;e.headers=a=ye.from(a),e.url=sr(pr(e.baseURL,e.url),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let d;if(C.isFormData(n)){if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((d=a.getContentType())!==!1){const[u,...h]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...h].join("; "))}}if(ge.hasStandardBrowserEnv&&(o&&C.isFunction(o)&&(o=o(e)),o||o!==!1&&Nd(e.url))){const u=r&&s&&Rd.read(s);u&&a.set(r,u)}return e},Pd=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,o){const r=yr(t);let s=r.data;const a=ye.from(r.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:u}=r,h,f,p,y,g;function k(){y&&y(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(h),r.signal&&r.signal.removeEventListener("abort",h)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout;function I(){if(!b)return;const O=ye.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),F={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:O,config:t,request:b};hr(function($e){n($e),k()},function($e){o($e),k()},F),b=null}"onloadend"in b?b.onloadend=I:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(I)},b.onabort=function(){b&&(o(new D("Request aborted",D.ECONNABORTED,t,b)),b=null)},b.onerror=function(){o(new D("Network Error",D.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let z=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const F=r.transitional||lr;r.timeoutErrorMessage&&(z=r.timeoutErrorMessage),o(new D(z,F.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,t,b)),b=null},s===void 0&&a.setContentType(null),"setRequestHeader"in b&&C.forEach(a.toJSON(),function(z,F){b.setRequestHeader(F,z)}),C.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),c&&c!=="json"&&(b.responseType=r.responseType),u&&([p,g]=gn(u,!0),b.addEventListener("progress",p)),d&&b.upload&&([f,y]=gn(d),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",y)),(r.cancelToken||r.signal)&&(h=O=>{b&&(o(!O||O.type?new pt(null,t,b):O),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(h),r.signal&&(r.signal.aborted?h():r.signal.addEventListener("abort",h)));const L=Id(r.url);if(L&&ge.protocols.indexOf(L)===-1){o(new D("Unsupported protocol "+L+":",D.ERR_BAD_REQUEST,t));return}b.send(s||null)})},Fd=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let o=new AbortController,r;const s=function(u){if(!r){r=!0,c();const h=u instanceof Error?u:this.reason;o.abort(h instanceof D?h:new pt(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,s(new D(`timeout ${e} of ms exceeded`,D.ETIMEDOUT))},e);const c=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),t=null)};t.forEach(u=>u.addEventListener("abort",s));const{signal:d}=o;return d.unsubscribe=()=>C.asap(c),d}},Td=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let o=0,r;for(;o<n;)r=o+e,yield t.slice(o,r),o=r},zd=async function*(t,e){for await(const n of Dd(t))yield*Td(n,e)},Dd=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:o}=await e.read();if(n)break;yield o}}finally{await e.cancel()}},wr=(t,e,n,o)=>{const r=zd(t,e);let s=0,a,c=d=>{a||(a=!0,o&&o(d))};return new ReadableStream({async pull(d){try{const{done:u,value:h}=await r.next();if(u){c(),d.close();return}let f=h.byteLength;if(n){let p=s+=f;n(p)}d.enqueue(new Uint8Array(h))}catch(u){throw c(u),u}},cancel(d){return c(d),r.return()}},{highWaterMark:2})},yn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",br=yn&&typeof ReadableStream=="function",Ld=yn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Sr=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Od=br&&Sr(()=>{let t=!1;const e=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Cr=64*1024,li=br&&Sr(()=>C.isReadableStream(new Response("").body)),wn={stream:li&&(t=>t.body)};yn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!wn[e]&&(wn[e]=C.isFunction(t[e])?n=>n[e]():(n,o)=>{throw new D(`Response type '${e}' is not supported`,D.ERR_NOT_SUPPORT,o)})})})(new Response);const _d=async t=>{if(t==null)return 0;if(C.isBlob(t))return t.size;if(C.isSpecCompliantForm(t))return(await new Request(ge.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(C.isArrayBufferView(t)||C.isArrayBuffer(t))return t.byteLength;if(C.isURLSearchParams(t)&&(t=t+""),C.isString(t))return(await Ld(t)).byteLength},Hd=async(t,e)=>{const n=C.toFiniteNumber(t.getContentLength());return n??_d(e)},ci={http:cd,xhr:Pd,fetch:yn&&(async t=>{let{url:e,method:n,data:o,signal:r,cancelToken:s,timeout:a,onDownloadProgress:c,onUploadProgress:d,responseType:u,headers:h,withCredentials:f="same-origin",fetchOptions:p}=yr(t);u=u?(u+"").toLowerCase():"text";let y=Fd([r,s&&s.toAbortSignal()],a),g;const k=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let b;try{if(d&&Od&&n!=="get"&&n!=="head"&&(b=await Hd(h,o))!==0){let F=new Request(e,{method:"POST",body:o,duplex:"half"}),ve;if(C.isFormData(o)&&(ve=F.headers.get("content-type"))&&h.setContentType(ve),F.body){const[$e,Je]=fr(b,gn(mr(d)));o=wr(F.body,Cr,$e,Je)}}C.isString(f)||(f=f?"include":"omit");const I="credentials"in Request.prototype;g=new Request(e,{...p,signal:y,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:o,duplex:"half",credentials:I?f:void 0});let L=await fetch(g);const O=li&&(u==="stream"||u==="response");if(li&&(c||O&&k)){const F={};["status","statusText","headers"].forEach(Bt=>{F[Bt]=L[Bt]});const ve=C.toFiniteNumber(L.headers.get("content-length")),[$e,Je]=c&&fr(ve,gn(mr(c),!0))||[];L=new Response(wr(L.body,Cr,$e,()=>{Je&&Je(),k&&k()}),F)}u=u||"text";let z=await wn[C.findKey(wn,u)||"text"](L,t);return!O&&k&&k(),await new Promise((F,ve)=>{hr(F,ve,{data:z,headers:ye.from(L.headers),status:L.status,statusText:L.statusText,config:t,request:g})})}catch(I){throw k&&k(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,t,g),{cause:I.cause||I}):D.from(I,I&&I.code,t,g)}})};C.forEach(ci,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const kr=t=>`- ${t}`,qd=t=>C.isFunction(t)||t===null||t===!1,Er={getAdapter:t=>{t=C.isArray(t)?t:[t];const{length:e}=t;let n,o;const r={};for(let s=0;s<e;s++){n=t[s];let a;if(o=n,!qd(n)&&(o=ci[(a=String(n)).toLowerCase()],o===void 0))throw new D(`Unknown adapter '${a}'`);if(o)break;r[a||"#"+s]=o}if(!o){const s=Object.entries(r).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
21
- `+s.map(kr).join(`
22
- `):" "+kr(s[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:ci};function di(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new pt(null,t)}function vr(t){return di(t),t.headers=ye.from(t.headers),t.data=ai.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Er.getAdapter(t.adapter||Pt.adapter)(t).then(function(o){return di(t),o.data=ai.call(t,t.transformResponse,o),o.headers=ye.from(o.headers),o},function(o){return ur(o)||(di(t),o&&o.response&&(o.response.data=ai.call(t,t.transformResponse,o.response),o.response.headers=ye.from(o.response.headers))),Promise.reject(o)})}const Mr="1.7.7",ui={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ui[t]=function(o){return typeof o===t||"a"+(e<1?"n ":" ")+t}});const Br={};ui.transitional=function(e,n,o){function r(s,a){return"[Axios v"+Mr+"] Transitional option '"+s+"'"+a+(o?". "+o:"")}return(s,a,c)=>{if(e===!1)throw new D(r(a," has been removed"+(n?" in "+n:"")),D.ERR_DEPRECATED);return n&&!Br[a]&&(Br[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,c):!0}};function Ud(t,e,n){if(typeof t!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let r=o.length;for(;r-- >0;){const s=o[r],a=e[s];if(a){const c=t[s],d=c===void 0||a(c,s,t);if(d!==!0)throw new D("option "+s+" must be "+d,D.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new D("Unknown option "+s,D.ERR_BAD_OPTION)}}const hi={assertOptions:Ud,validators:ui},Ge=hi.validators;class tt{constructor(e){this.defaults=e,this.interceptors={request:new ar,response:new ar}}async request(e,n){try{return await this._request(e,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
23
- `+s):o.stack=s}catch{}}throw o}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=et(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:s}=n;o!==void 0&&hi.assertOptions(o,{silentJSONParsing:Ge.transitional(Ge.boolean),forcedJSONParsing:Ge.transitional(Ge.boolean),clarifyTimeoutError:Ge.transitional(Ge.boolean)},!1),r!=null&&(C.isFunction(r)?n.paramsSerializer={serialize:r}:hi.assertOptions(r,{encode:Ge.function,serialize:Ge.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&C.merge(s.common,s[n.method]);s&&C.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=ye.concat(a,s);const c=[];let d=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(d=d&&k.synchronous,c.unshift(k.fulfilled,k.rejected))});const u=[];this.interceptors.response.forEach(function(k){u.push(k.fulfilled,k.rejected)});let h,f=0,p;if(!d){const g=[vr.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,u),p=g.length,h=Promise.resolve(n);f<p;)h=h.then(g[f++],g[f++]);return h}p=c.length;let y=n;for(f=0;f<p;){const g=c[f++],k=c[f++];try{y=g(y)}catch(b){k.call(this,b);break}}try{h=vr.call(this,y)}catch(g){return Promise.reject(g)}for(f=0,p=u.length;f<p;)h=h.then(u[f++],u[f++]);return h}getUri(e){e=et(this.defaults,e);const n=pr(e.baseURL,e.url);return sr(n,e.params,e.paramsSerializer)}}C.forEach(["delete","get","head","options"],function(e){tt.prototype[e]=function(n,o){return this.request(et(o||{},{method:e,url:n,data:(o||{}).data}))}}),C.forEach(["post","put","patch"],function(e){function n(o){return function(s,a,c){return this.request(et(c||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}tt.prototype[e]=n(),tt.prototype[e+"Form"]=n(!0)});class fi{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const o=this;this.promise.then(r=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](r);o._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(c=>{o.subscribe(c),s=c}).then(r);return a.cancel=function(){o.unsubscribe(s)},a},e(function(s,a,c){o.reason||(o.reason=new pt(s,a,c),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=o=>{e.abort(o)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new fi(function(r){e=r}),cancel:e}}}function Wd(t){return function(n){return t.apply(null,n)}}function Gd(t){return C.isObject(t)&&t.isAxiosError===!0}const mi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mi).forEach(([t,e])=>{mi[e]=t});function Ir(t){const e=new tt(t),n=Uo(tt.prototype.request,e);return C.extend(n,tt.prototype,e,{allOwnKeys:!0}),C.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Ir(et(t,r))},n}const K=Ir(Pt);K.Axios=tt,K.CanceledError=pt,K.CancelToken=fi,K.isCancel=ur,K.VERSION=Mr,K.toFormData=mn,K.AxiosError=D,K.Cancel=K.CanceledError,K.all=function(e){return Promise.all(e)},K.spread=Wd,K.isAxiosError=Gd,K.mergeConfig=et,K.AxiosHeaders=ye,K.formToJSON=t=>cr(C.isHTMLForm(t)?new FormData(t):t),K.getAdapter=Er.getAdapter,K.HttpStatusCode=mi,K.default=K;var Tt=(t=>(t.GET="get",t.POST="post",t.PUT="put",t.DELETE="delete",t))(Tt||{});const zt=(()=>{function t(){const d=r();return!(!d||d==="undefined")}function e(d){d.accessToken&&localStorage.setItem("access_token",d.accessToken),d.refreshToken&&localStorage.setItem("refresh_token",d.refreshToken)}function n(){const d=localStorage.getItem("user");return d?JSON.parse(d).id:""}function o(){const d=localStorage.getItem("user");if(d)return JSON.parse(d)}function r(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function c(d){if(!t())return;const u=zt.getUser();u&&(u.human=d,localStorage.setItem("user",JSON.stringify(u)))}return{isAuth:t,setTokens:e,getAccessToken:r,getRefreshToken:s,getUserId:n,clearTokens:a,getUser:o,updateHuman:c}})();class pi{constructor(e){l(this,"code",400);l(this,"err","");v.BuildClass(this,e)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(e,n){const o=e.config;if(e.response){if(e.response.status===401&&!o._retry)return o._retry=!0,n.defaults.headers.common.token=zt.getAccessToken(),e.config.headers.token=zt.getAccessToken(),e.config.baseURL=void 0,n.request(o);if(e.response.status>=500){if(e.response.data==="неверный логин или пароль"){N.Notification.Error("Неверный логин или пароль");return}N.Notification.Error("Ошибка на сервере, попробуйте позже")}if(e.response.status>=400&&e.response.status<500){const r=new pi(e.response.data).getErr();r&&N.Notification.Error(r)}return Promise.reject(e)}}}const gt=K.create();gt.interceptors.response.use(t=>t,async t=>await pi.Handle(t,gt));class Dt{static async Get(e,n,o){return await gt({method:Tt.GET,url:e,headers:n,responseType:o})}static async Post(e,n,o,r){return n["Content-Type"]="multipart/form-data",await gt({method:Tt.POST,url:e,headers:n,responseType:o,data:r})}static async Put(e,n,o){return n["Content-Type"]="multipart/form-data",await gt({method:Tt.PUT,url:e,headers:n,data:o})}static async Delete(e,n){return await gt({method:Tt.DELETE,url:e,headers:n})}}var gi=(t=>(t.ContentType="Content-Type",t.Token="token",t))(gi||{}),$r=(t=>(t.ApplicationJson="application/json",t.MultipartFormData="multipart/form-data",t))($r||{});const j=class j{static Setup(e,n,o){this.baseUrl=e,this.apiVersion=n,this.apiHost=o}static newWebSocket(e){const n=this.apiHost.replace("http","ws")+"/ws/"+e;return new WebSocket(n)}static download(e,n){const o=j.getDownloadFileName(e,n.headers),r=URL.createObjectURL(n.data),s=document.createElement("a");s.href=r,s.setAttribute("download",o),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click()}static getDownloadFileName(e,n){if(e)return e;const o=n["content-disposition"],r=o.indexOf('"')+1,s=o.lastIndexOf('"'),a=o.substring(r,s);return a||"file"}static getHeaders(e){const n=xe.Get(Me.AccessToken);return e||(e=j.headers),n&&(e[gi.Token]=n),e??j.headers}static returnResponse(e,n){if(n)return e!=null&&e.isBlob?j.download(e.downloadFileName,n):n.data}static async Get(e){return j.returnResponse(e,await Dt.Get(j.buildUrl((e==null?void 0:e.query)??""),j.getHeaders(e==null?void 0:e.headers),j.getResponseType(e==null?void 0:e.isBlob)))}static async Post(e){return j.returnResponse(e,await Dt.Post(j.buildUrl(e==null?void 0:e.query),j.getHeaders(e==null?void 0:e.headers),j.getResponseType(e.isBlob),j.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Put(e){return j.returnResponse(e,await Dt.Put(j.buildUrl(e==null?void 0:e.query),j.getHeaders(e==null?void 0:e.headers),j.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Delete(e){return j.returnResponse(e,await Dt.Delete(j.buildUrl(e==null?void 0:e.query),j.getHeaders(e==null?void 0:e.headers)))}static async Subscribe(e){const{query:n}=e;return new EventSource(j.buildUrl(n))}static buildUrl(e){const n=e??"";return this.baseUrl+this.apiVersion+n}static getResponseType(e){return e?"blob":"json"}static createFormDataPayload(e,n){const o=new FormData;if(o.append("form",JSON.stringify(e)),n)for(const r of n)r.file&&o.append(r.id??"files",r.file,r.originalName);return o}};l(j,"baseUrl",""),l(j,"apiVersion",""),l(j,"apiHost",""),l(j,"headers",{[gi.ContentType]:$r.ApplicationJson});let ae=j;class Y{constructor(e,n){l(this,"items",i.reactive([]));l(this,"item");l(this,"count",i.ref(0));l(this,"classConstructor");l(this,"url","");this.classConstructor=e,this.item=i.reactive(new this.classConstructor),this.url=n}Set(e){Object.assign(this.item,new this.classConstructor(e))}Item(){return this.item}getUrl(e){return e?`${this.url}/${e}`:this.url}async GetAll(e){let n;const o=ae.Get;e&&e.withCache?n=await Ec.TryGet(this.getUrl(),o):n=await o({query:this.getUrl()}),Array.isArray(n)?this.SetAll(n):this.SetAllWithCount(n)}async Get(e){e||(e=st.Id()),this.Set(await ae.Get({query:this.getUrl(e)}))}async FTSP(e){var a;const o=((e==null?void 0:e.ftsp)??ee.Get()).clearForHTTP(),r={payload:{ftsp:o},query:this.getUrl("ftsp")},s=await ae.Post(r);if(!(!s||!s.ftsp))if(Array.isArray(s.data))this.SetAll(s.data);else{if(o.p.append){this.AppendToAll((a=s.data)==null?void 0:a.items);return}this.SetAllWithCount(s.data)}}async Create(e){const n=e??this.item,o={payload:n,query:this.getUrl()};return n.getFileInfos&&(o.fileInfos=n.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await ae.Post(o)}async CreateAndSet(e){const n=await this.Create(e);this.Set(n)}async CreateMany(e){if(!e)return;const n=[];e.forEach(o=>{n.push(new Promise(()=>this.Create(o)))}),Promise.all(n)}async Update(e){const n=e??this.item,o={query:this.getUrl(`${n.id}`),payload:n};return n.getFileInfos&&(o.fileInfos=n.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await ae.Put(o)}async UpdateAndSet(e){const n=await this.Update(e);this.Set(n)}async UpdateAndReset(e){await this.Update(e??this.item),this.Set()}async Remove(e){if(!e){console.warn("BaseStore/Remove. id is undefined");return}await ae.Delete({query:this.getUrl(`${e}`)}),this.RemoveItem(e)}async UpdateMany(e){if(e||(e=this.items),!e)return;const n=[];e.forEach(o=>{n.push(new Promise(()=>this.Update(o)))}),Promise.all(n)}SetAll(e){e&&(this.items.splice(0,this.items.length),this.items.push(...e.map(n=>new this.classConstructor(n))))}SetAllWithCount(e){e&&(this.SetAll(e.items),this.count.value=e.count)}RemoveItem(e){const n=this.items.findIndex(o=>o.id===e);this.items.splice(n,1)}AppendToAll(e){if(!e)return;const n=e.map(o=>new this.classConstructor(o));this.items.push(...n)}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){v.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(e){this.items.unshift(new this.classConstructor(e))}Items(){return this.items}Count(){return this.count}}let jd=class extends Y{constructor(){super(Ho,"inns")}};const Zd=new jd;let Yd=class extends Y{constructor(){super(Rt,"passport-scans")}};const Jd=new Yd;let Xd=class extends Y{constructor(){super(Qn,"passports")}};const Qd=new Xd;let Kd=class extends Y{constructor(){super(qo,"snilss")}};const eu=new Kd;class yi{constructor(e){l(this,"id");l(this,"name","");v.BuildClass(this,e)}static Create(e){const n=new yi;return n.id=v.CreateUUID(),n.name=e,n}}class Lt{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");v.BuildClass(this,e)}static Create(e,n){const o=new Lt;return o.id=v.CreateUUID(),o.name=e,o.label=n,o}}let tu=class extends Y{constructor(){super(Lt,"extracts")}};const nu=new tu;class nt{constructor(e){l(this,"id");l(this,"name","");l(this,"score",0);l(this,"order",0);l(this,"showMoreQuestions",!1);l(this,"showOther",!1);l(this,"fieldId");l(this,"isMatrixY",!1);v.BuildClass(this,e)}static Create(e){const n=new nt;return n.id=v.CreateUUID(),n.fieldId=e,n}}class iu{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fieldId");v.BuildClass(this,e)}}class xr{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);v.BuildClass(this,e)}}class Ot{constructor(e){l(this,"id");l(this,"name","");l(this,"fieldId");v.BuildClass(this,e)}static Create(e){const n=new Ot;return n.id=v.CreateUUID(),n.fieldId=e,n}}var ou=Object.defineProperty,_t=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&ou(e,n,r),r};const it=class _n{constructor(e){l(this,"id");l(this,"name","");l(this,"code","");l(this,"valueTypeId");l(this,"order",0);l(this,"ageCompare",!1);l(this,"answerVariants",[]);l(this,"answerVariantsForDelete",[]);l(this,"fieldExamples",[]);l(this,"fieldVariants",[]);l(this,"valueType",new Yn);l(this,"fieldMeasures",[]);l(this,"showSet",!1);l(this,"showRadio",!1);l(this,"isEdit",!1);l(this,"children",[]);l(this,"parentId");l(this,"formSectionId");l(this,"selected",!1);v.BuildClass(this,e),this.changeRelation([this.valueType])}getMatrixX(){return this.answerVariants.filter(e=>!e.isMatrixY)}getMatrixY(){return this.answerVariants.filter(e=>e.isMatrixY)}static Create(e){const n=new _n;return n.id=v.CreateUUID(),n.formSectionId=e,n}getRegisterPropertyRadioOriginalValue(e){const n=this.answerVariants.find(o=>o.id===e);return n?n.name:""}addRadioItem(e){const n=new nt(e);n.order=this.answerVariants.length,this.answerVariants.push(n)}removeRadioItem(e){const n=this.answerVariants[e].id;n&&this.answerVariantsForDelete.push(n),this.answerVariants.splice(e,1)}changeRelation(e){const n=e.find(o=>o.id===this.valueTypeId);if(n){if(n.isRadio()){this.showRadio=!0,this.showSet=!1;return}if(n.isSet()){this.showSet=!0,this.showRadio=!1;return}this.showSet=!1,this.showRadio=!1,this.valueType=n}}editRegisterProperty(e){this.isEdit=e??!this.isEdit}sortExamples(){this.fieldExamples.forEach((e,n)=>e.order=n)}addRegisterPropertyMeasure(e){this.fieldMeasures.push(new xr(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new Ot)}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}static GetClassName(){return"Field"}setType(e){this.valueType=e,this.valueTypeId=e.id}setName(e){this.name=e}addAnswerVariant(){const e=nt.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=_n.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=Ot.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new _n(this);return e.id=v.CreateUUID(),e.answerVariants.forEach(n=>{n.id=v.CreateUUID(),n.fieldId=e.id}),e.children=e.children.map(n=>{const o=n.copy();return o.parentId=e.id,o}),e}};_t([v.GetClassConstructor(nt)],it.prototype,"answerVariants"),_t([v.GetClassConstructor(iu)],it.prototype,"fieldExamples"),_t([v.GetClassConstructor(Ot)],it.prototype,"fieldVariants"),_t([v.GetClassConstructor(xr)],it.prototype,"fieldMeasures"),_t([v.GetClassConstructor(it)],it.prototype,"children");let bn=it;class Nr{constructor(e){l(this,"id");l(this,"answerId");l(this,"comment","");l(this,"fileInfoId");l(this,"fileInfo",new X);v.BuildClass(this,e)}}class ot{constructor(e){l(this,"id");l(this,"answerVariantId");l(this,"answerVariantIdY");l(this,"fieldFillId");v.BuildClass(this,e)}static Create(e,n){const o=new ot;return o.id=de(),o.fieldFillId=e,o.answerVariantId=n,o}static GetClassName(){return"selectedAnswerVariant"}}var ru=Object.defineProperty,Rr=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&ru(e,n,r),r};const wi=class yo{constructor(e){l(this,"id");l(this,"valueString");l(this,"valueOther");l(this,"valueNumber");l(this,"valueDate");l(this,"fileInfo",new X);l(this,"fileInfoId");l(this,"order",0);l(this,"selectedAnswerVariants",[]);l(this,"patientId");l(this,"fieldId");l(this,"formFillId");l(this,"answerVariantId");l(this,"filled",!1);l(this,"researchResultId");l(this,"answerFiles",[]);l(this,"answerFilesForDelete",[]);v.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,n){const o=new yo;return o.id=de(),o.fieldId=e.id,o.formFillId=n,o.order=e.order,o.valueNumber=0,o.valueString="",o.valueDate=new Date,o}setString(e){this.valueString=e,this.filled=this.valueString.length>0}setNumber(e){this.valueNumber=e,this.filled=!0}setOther(e){this.valueOther=e,this.filled=this.valueOther.length>0}setDate(e){this.valueDate=e,this.filled=!0}setRadio(e){this.answerVariantId=e,this.filled=!!this.answerVariantId}static CreateMany(e,n){return e.map(o=>yo.Create(o,n))}addFile(){const e=new Nr;return e.id=de(),e.answerId=this.id,this.answerFiles.push(e),e}getFileInfos(){const e=[];return this.answerFiles.forEach(n=>e.push(n.fileInfo)),e}getSelectedAnswerVariant(){return!0}setMatrixRadioValue(e,n){const o=ot.Create(this.id,e);return o.answerVariantIdY=n,this.selectedAnswerVariants.push(o),this.filled=!0,o}getMatrixValue(e,n){return this.selectedAnswerVariants.find(o=>o.answerVariantId===e&&o.answerVariantIdY===n)}addSelectedAnswerVariant(e){const n=ot.Create(this.id,e);return this.selectedAnswerVariants.push(n),this.filled=!0,n}static GetClassName(){return"answer"}showOther(e){const n=e.find(o=>o.showOther);return n?this.answerVariantId===n.id||this.selectedAnswerVariants.some(o=>o.answerVariantId===n.id):!1}};Rr([v.GetClassConstructor(ot)],wi.prototype,"selectedAnswerVariants"),Rr([v.GetClassConstructor(Nr)],wi.prototype,"answerFiles");let yt=wi;var su=Object.defineProperty,au=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&su(e,n,r),r};const Ar=class fl{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fields",[]);l(this,"formId");v.BuildClass(this,e)}static GetClassName(){return"formSection"}getN(){return`${this.order+1}`}getFieldN(e){return`${this.getN()}.${e+1}`}getSubFieldN(e,n){return`${this.getFieldN(e)}.${n+1}`}static Create(e){const n=new fl;return n.id=v.CreateUUID(),n.formId=e,n}addField(){const e=bn.Create(this.id);return this.fields.push(e),this.sortFields(),e}sortFields(){this.fields.forEach((e,n)=>e.order=n)}getAnswerVariants(){const e=[];return this.fields.forEach(n=>e.push(...n.answerVariants)),e}};au([v.GetClassConstructor(bn)],Ar.prototype,"fields");let Sn=Ar;var lu=Object.defineProperty,cu=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&lu(e,n,r),r};const Vr=class ml{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"isLaboratory",!1);l(this,"formSections",[]);l(this,"isEdit",!1);l(this,"withDates",!1);l(this,"withScores",!1);l(this,"selectedForExport",!1);l(this,"filterString","");l(this,"showOnlyNotFilled",!1);l(this,"showOnlyFilled",!1);v.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new ml;return e.id=v.CreateUUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=Sn.Create(this.id);return this.formSections.push(e),ks.Sort(this.formSections),e}getFields(){const e=this.formSections.map(o=>o.fields).flat(),n=e.map(o=>o.children).flat();return e.concat(n).filter(o=>o.children.length===0)}};cu([v.GetClassConstructor(Sn)],Vr.prototype,"formSections");let Pr=Vr;var du=Object.defineProperty,uu=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&du(e,n,r),r};const Fr=class pl{constructor(e){l(this,"id");l(this,"date",new Date);l(this,"editMode",!1);l(this,"userFormId");l(this,"fillingPercentage",0);l(this,"fieldFills",[]);l(this,"num","");l(this,"formId");v.BuildClass(this,e)}static Create(e){const n=new pl;return n.id=v.CreateUUID(),n.formId=e.id,n.fieldFills.push(...yt.CreateMany(e.getFields(),n.id)),n}addFieldFill(e){this.fieldFills.push(e)}getFieldFill(e){var n;return(n=this.fieldFills)==null?void 0:n.find(o=>o.fieldId===e)}pushRegisterProperty(e){const n=new yt;n.researchResultId=e,this.fieldFills.push(n)}getRegisterPropertyToPatient(e){return this.fieldFills.filter(n=>n.researchResultId===e)}getOrCreateFieldFill(e){let n=this.getFieldFill(e.id);return n||(n=yt.Create(e),this.addFieldFill(n)),n}getFileInfos(){const e=[];return this.fieldFills.forEach(n=>e.push(...n.getFileInfos())),e}calculateFilling(){const e=this.fieldFills.filter(o=>o.filled).length,n=this.fieldFills.length;this.fillingPercentage=Math.round(e/n*100)}getFieldFillByFieldId(e){return this.fieldFills.find(n=>n.fieldId===e)}getFieldVariantFieldFill(e){return this.fieldFills.find(n=>n.fieldVariantId===e)}getFieldsFieldFillsMap(e){const n={};return e.forEach(o=>{var r;if(o.code){const s=(r=this.getFieldFillByFieldId(o.id))==null?void 0:r.valueNumber;n[o.code]=s}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};uu([v.GetClassConstructor(yt)],Fr.prototype,"fieldFills");let Tr=Fr,hu=class extends Y{constructor(){super(nt,"answer-variants")}};const zr=new hu;let fu=class extends Y{constructor(){super(yt,"field-fills")}};const Dr=new fu;let mu=class extends Y{constructor(){super(bn,"fields")}};const Lr=new mu;let pu=class extends Y{constructor(){super(Tr,"form-fills")}};const Or=new pu;let gu=class extends Y{constructor(){super(Sn,"form-sections")}};const _r=new gu;let yu=class extends Y{constructor(){super(Pr,"forms")}};const Hr=new yu;let wu=class extends Y{constructor(){super(ot,"selected-answer-variants")}};const qr=new wu;let Ur=(Ue=class{},l(Ue,"AnswerVariants",zr),l(Ue,"FieldFills",Dr),l(Ue,"Fields",Lr),l(Ue,"FormFills",Or),l(Ue,"FormSections",_r),l(Ue,"Forms",Hr),l(Ue,"SelectedAnswerVariants",qr),Ue),bu=class extends Y{constructor(){super(Lt,"color-themes")}};const Su=new bu;class Cu{constructor(){l(this,"form",new gc);l(this,"status",new Sc);l(this,"modal",new yc)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}}const bi=new Cu;let ku=class{async Login(e){const n=e??N.Auth.Form.GetValues(),o=await ae.Post({query:"auth/login",payload:n});if(!o)throw N.Notification.Error("Ошибка авторизации"),"Ошибка авторизации";N.Auth.Status.SetState(o)}async LoginAs(e){if(!await ae.Post({query:"auth/login-as",payload:{email:e}})){N.Notification.Error("Ошибка авторизации");return}}async Register(){}async RestorePassword(){}async passwordChange(){await ae.Put({query:"auth/password-change"})}async RefreshToken(){await ae.Post({query:"auth/refresh-token",payload:{refreshToken:zt.getRefreshToken()}})}async CheckUuid(e){await ae.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}};const Wr=new ku;let Eu=class extends Y{constructor(){super(ht,"contacts")}};const Gr=new Eu;let vu=class extends Y{constructor(){super(Xe,"emails")}};const Si=new vu;let Mu=class extends Y{constructor(){super(X,"file-infos")}};const jr=new Mu;class Ci{constructor(e){l(this,"id");l(this,"ftsp");l(this,"name","");v.BuildClass(this,e)}static Create(e){const n=new Ci;return n.id=v.CreateUUID(),n.ftsp=JSON.stringify(e),n}}let Bu=class extends Y{constructor(){super(Ci,"ftsp-presets")}};const Zr=new Bu;let Iu=class extends Y{constructor(){super(Zn,"humans")}};const Yr=new Iu;class Jr{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"downloadToFile",!1);l(this,"pageSectionId");l(this,"scan",new X);l(this,"scanId");e&&(this.id=e==null?void 0:e.id,this.name=e.name,this.order=e.order,this.downloadToFile=e.downloadToFile,this.pageSectionId=e.pageSectionId,e.scan&&(this.scan=new X(e.scan)),this.scanId=e.scanId)}getFileInfos(){return[this.scan]}uploadScan(e){return this.scan.id||(this.scan.id=de()),this.scan.originalName=e.name,this.scan.file=e.raw,this.scan.fileSystemPath=de(),this.scan.url=e.url,this.scan}getFileName(){return this.name?this.name:this.scan.originalName}}class $u{constructor(e){l(this,"id");l(this,"documentType",new rt);l(this,"documentTypeId");l(this,"order",0);v.BuildClass(this,e)}getFileInfos(){const e=[];return e.push(...this.documentType.getFileInfos()),e}}var xu=Object.defineProperty,Xr=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&xu(e,n,r),r};class rt{constructor(e){l(this,"id");l(this,"name","");l(this,"singleScan",!1);l(this,"scan");l(this,"scanId");l(this,"order",0);l(this,"description","");l(this,"scans",[]);l(this,"scansForDelete",[]);l(this,"pageSectionDocuments",[]);l(this,"pageSectionDocumentsForDelete",[]);l(this,"pageSectionImages",[]);l(this,"pageSectionImagesForDelete",[]);l(this,"pageSideMenuId");l(this,"pageId");l(this,"text","");l(this,"documents",[]);v.BuildClass(this,e),this.documents=this.pageSectionDocuments,this.text=this.description.replace("<p>undefined</p>","")}addDocument(){const e=new Jr;e.order=this.pageSectionDocuments.length-1,this.pageSectionDocuments.push(e)}getFileInfos(){const e=[];return this.pageSectionDocuments.forEach(n=>{e.push(...n.getFileInfos())}),e}infoExists(e){const n=q.SearchIn(this.name,e),o=q.SearchIn(this.description,e),r=this.getDocuments(e);return n||o||r.length>0}getDocuments(e){return this.pageSectionDocuments.filter(n=>q.SearchIn(n.name,e))}getDescription(e){return e?q.WrapSubStr(this.description,e):this.description}filter(e){if(!e){this.text=this.description,this.documents=this.pageSectionDocuments;return}this.text=q.SearchIn(this.description,e)?q.WrapSubStr(this.description,e):"",this.documents=this.pageSectionDocuments.filter(n=>q.SearchIn(n.name,e))}}Xr([v.GetClassConstructor(Jr)],rt.prototype,"pageSectionDocuments"),Xr([v.GetClassConstructor($u)],rt.prototype,"pageSectionImages");class Nu{constructor(e){l(this,"id");l(this,"document",new rt);l(this,"documentId");l(this,"pageId");v.BuildClass(this,e)}static GetFileInfos(e){const n=[];return e.forEach(o=>{const r=o.document.scan;r&&n.push(r)}),n}}var Ru=Object.defineProperty,Au=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Ru(e,n,r),r};class Qr{constructor(e){l(this,"id");l(this,"pageId");l(this,"fileInfoId");l(this,"fileInfo");l(this,"description");v.BuildClass(this,e)}}Au([v.GetClassConstructor(X)],Qr.prototype,"fileInfo");var Vu=Object.defineProperty,Pu=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Vu(e,n,r),r};class wt{constructor(e){l(this,"id");l(this,"name","Новое меню");l(this,"order",0);l(this,"description","");l(this,"routeAnchor","");l(this,"slug","");l(this,"pageSections",[]);l(this,"pageSectionsForDelete",[]);l(this,"showContent",!1);l(this,"pageId");l(this,"selected",!1);l(this,"sections",[]);l(this,"text","");v.BuildClass(this,e),this.sections=this.pageSections,this.text=this.description.replace("<p>undefined</p>","")}getFileInfos(){const e=[];return this.pageSections.forEach(n=>{e.push(...n.getFileInfos())}),e}addPageSection(){const e=new rt;e.order=this.pageSections.length+1,e.name=`Новой раздел ${e.order}`,e.id=de(),this.pageSections.push(e)}infoExists(e){const n=q.SearchIn(this.name,e),o=q.SearchIn(this.description,e),r=this.getPageSections(e).length>0;return n||o||r}getPageSections(e){return e.length?this.pageSections.filter(n=>n.infoExists(e)):this.pageSections}filter(e){e.length?(this.sections=this.pageSections.filter(n=>n.infoExists(e)),this.text=q.SearchIn(this.description,e)?q.WrapSubStr(this.description,e):""):(this.sections=this.pageSections,this.text=this.description),this.sections.forEach(n=>n.filter(e))}}Pu([v.GetClassConstructor(rt)],wt.prototype,"pageSections");var Kr=(t=>(t.User="USER",t.Admin="ADMIN",t))(Kr||{});class Fu{constructor(e){l(this,"id");l(this,"name",Kr.User);l(this,"label","");l(this,"startPage","");v.BuildClass(this,e)}}var Tu=Object.defineProperty,Cn=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Tu(e,n,r),r};class bt{constructor(e){l(this,"id");l(this,"title","");l(this,"content","");l(this,"slug","");l(this,"pagesGroup","Без группы");l(this,"link","");l(this,"withComments",!1);l(this,"showContacts",!1);l(this,"collaps",!1);l(this,"showContent",!1);l(this,"pageImages",[]);l(this,"pageImagesForDelete",[]);l(this,"pageImagesNames",[]);l(this,"pageSideMenus",[]);l(this,"menus",[]);l(this,"pageSideMenusForDelete",[]);l(this,"pageSections",[]);l(this,"pageSectionsForDelete",[]);l(this,"pageDocuments",[]);l(this,"contact",new ht);l(this,"contactId");l(this,"role",new Fu);l(this,"roleId");l(this,"filterStr","");l(this,"activeMenuId","");v.BuildClass(this,e),this.menus=this.pageSideMenus}getActiveMenu(){const e=this.pageSideMenus.find(n=>n.id===this.activeMenuId);return e||this.pageSideMenus[0]}setActiveMenuId(e){this.activeMenuId=e}getLink(){return this.slug!==""?`/pages/${this.slug}`:"404"}getFileInfos(){const e=[];return this.pageSideMenus.forEach(n=>{e.push(...n.getFileInfos())}),this.pageDocuments.forEach(n=>{n.document.scan&&e.push(n.document.scan)}),this.pageImages.forEach(n=>{n.fileInfo&&e.push(n.fileInfo)}),e}addSideMenu(){const e=new wt;return e.order=this.pageSideMenus.length+1,e.name=`Новое меню ${e.order}`,e.id=de(),this.pageSideMenus.push(e),e.id}selectSideMenu(e,n){if(!e&&this.pageSideMenus.length>0){this.pageSideMenus[0].selected=!0;return}this.pageSideMenus.forEach(o=>{n?o.selected=o.id===e:o.selected=o.slug===e})}getSelectedSideMenu(){const e=this.pageSideMenus.find(n=>n.selected);return e||new wt}addCustomSectionsToSideMenu(e){e.forEach(n=>{const o=new wt;o.id=n.id,o.name=n.name,typeof n.order<"u"?this.pageSideMenus.splice(n.order,0,o):this.pageSideMenus.push(o)})}getPageSideMenus(){if(this.showContacts&&!this.pageSideMenus.find(e=>e.id==="contacts")){const e=new wt;e.id="contacts",e.name="Контакты",this.pageSideMenus.push(e)}return this.filterStr===""?this.pageSideMenus:this.pageSideMenus.filter(e=>e.infoExists(this.filterStr))}filter(){this.filterStr===""?this.menus=this.pageSideMenus:this.menus=this.pageSideMenus.filter(e=>e.infoExists(this.filterStr)),this.menus.forEach(e=>e.filter(this.filterStr))}static GetClassName(){return"page"}}Cn([v.GetClassConstructor(Qr)],bt.prototype,"pageImages"),Cn([v.GetClassConstructor(wt)],bt.prototype,"pageSideMenus"),Cn([v.GetClassConstructor(rt)],bt.prototype,"pageSections"),Cn([v.GetClassConstructor(Nu)],bt.prototype,"pageDocuments");class es{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"selected",!1);l(this,"hide",!1);l(this,"editMode",!1);l(this,"color","");l(this,"background","");l(this,"page",new bt);l(this,"pageId");l(this,"order",0);l(this,"menuId");l(this,"iconId");l(this,"icon",new X);l(this,"iconName","");l(this,"svgCode","");v.BuildClass(this,e)}getLink(){return this.isLink()&&!this.isPageLink()?this.link:!this.isLink()&&this.isPageLink()?this.page.getLink():""}isLink(){return this.link!==""}isPageLink(){return this.pageId!==void 0&&this.pageId!==""}addFile(e){this.icon.id||(this.icon.id=de()),this.icon.originalName=e.name,this.icon.file=e.raw}}var zu=Object.defineProperty,Du=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&zu(e,n,r),r};class ts{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"top",!0);l(this,"side",!0);l(this,"show",!1);l(this,"hide",!1);l(this,"active",!1);l(this,"order",0);l(this,"selected",!1);l(this,"editMode",!1);l(this,"page",new bt);l(this,"pageId");l(this,"subMenus",[]);l(this,"subMenusForDelete",[]);l(this,"iconId");l(this,"icon",new X);v.BuildClass(this,e)}getLink(){return this.isLink()&&!this.isPageLink()?this.link:!this.isLink()&&this.isPageLink()?this.page.getLink():""}withoutChildren(){return this.subMenus.length===0}isLink(){return this.link!==""}isPageLink(){return!!this.pageId&&this.pageId!==""}getFileInfos(){const e=[];return e.push(this.icon),this.subMenus.forEach(n=>{e.push(n.icon)}),e}addFile(e){this.icon.id||(this.icon.id=de()),this.icon.originalName=e.name,this.icon.file=e.raw}addSubMenu(){this.subMenus.push(new es)}removeSubMenu(e){const n=this.subMenus[e].id;n&&this.subMenusForDelete.push(n),this.subMenus.splice(e,1)}setColorsForSubMenus(){const e=["#00A248","#E63021","#006BB5","#F3911F","#6F6D6B"];let n=0;this.subMenus.forEach(o=>{o.color=e[n],n=e.length-1?n=0:n++})}containPath(e){return this.getLink()===e||!!this.subMenus.find(n=>n.getLink()===e)}static GetClassName(){return"menu"}}Du([v.GetClassConstructor(es)],ts.prototype,"subMenus");let Lu=class extends Y{constructor(){super(ts,"menus")}};const ns=new Lu;let Ou=class extends Y{constructor(){super(ut,"phones")}};const ki=new Ou;class _u{constructor(e){l(this,"id");l(this,"nameRus","");v.BuildClass(this,e)}}var Hu=Object.defineProperty,qu=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Hu(e,n,r),r};class is{constructor(e){l(this,"id");l(this,"nameRus","");l(this,"fields",[]);v.BuildClass(this,e)}}qu([v.GetClassConstructor(_u)],is.prototype,"fields");let Uu=class extends Y{constructor(){super(is,"schemas")}};const os=new Uu;class rs{constructor(e){l(this,"id","");l(this,"value","");l(this,"label","");l(this,"key","");l(this,"description","");l(this,"route","");l(this,"searchElementMetas",[]);v.BuildClass(this,e)}}class Wu{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");v.BuildClass(this,e)}}var Gu=Object.defineProperty,ss=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Gu(e,n,r),r};class St{constructor(e){l(this,"id");l(this,"key","");l(this,"label","");l(this,"order",0);l(this,"route","");l(this,"table","");l(this,"active",!0);l(this,"searchColumn","");l(this,"descriptionColumn","");l(this,"labelColumn","");l(this,"valueColumn","");l(this,"options",[]);l(this,"searchGroupMetaColumns",[]);v.BuildClass(this,e)}}ss([v.GetClassConstructor(rs)],St.prototype,"options"),ss([v.GetClassConstructor(Wu)],St.prototype,"searchGroupMetaColumns");class Ei{constructor(e){l(this,"query","");l(this,"key","");l(this,"params","");l(this,"suggester",!1);l(this,"mustBeTranslated",!0);l(this,"options",[]);l(this,"searchGroupId","");l(this,"searchGroups",[]);l(this,"searchGroup",new St);l(this,"searchObjects",[]);l(this,"pagination",new nn);l(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(n=>new St(n))),e.searchGroup&&(this.searchGroup=new St(e.searchGroup)),e.options&&(this.options=e.options.map(n=>new rs(n))),this.count=e.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(e){const n=this.searchGroups.find(o=>o.id===e);n?this.searchGroup=n:this.searchGroup=new St}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(st.Route().query.groupId)}setQuery(){const e=st.Route().query.query;e&&(this.query=e)}}let ju=class{constructor(){l(this,"isSearchDrawerOpen",i.ref(!1));l(this,"searchModel",i.reactive(new Ei));l(this,"searchGroups",i.reactive([]));l(this,"count",0)}async Search(e){const n=await ae.Get({query:`?key=${e.key}&query=${e.query}`});n&&n.searchGroup&&n.searchGroup.options.forEach(o=>{e.searchObjects.push({id:o.id,value:o.value,label:o.label,description:o.description})})}async mainSearch(e){this.SetSearchModel(await ae.Get({query:`/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(o=>{o.options=[]});const n=await ae.Get({query:`main?searchModel=${e.toUrl()}`});this.SetSearchModel(n)}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new Ei}SetSearchModel(e){e&&(this.searchModel=new Ei(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const kn=new ju;class vi{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");v.BuildClass(this,e)}static Create(){const e=new vi;return e.id=v.CreateUUID(),e}}let Zu=class extends Y{constructor(){super(vi,"users-accounts")}};const as=new Zu;let Yu=class extends Y{constructor(){super(Yn,"value-types")}};const ls=new Yu;class ke{}l(ke,"Auth",Wr),l(ke,"Contacts",Gr),l(ke,"Emails",Si),l(ke,"FileInfos",jr),l(ke,"FTSPPresets",Zr),l(ke,"Humans",Yr),l(ke,"Menus",ns),l(ke,"Phones",ki),l(ke,"Schemas",os),l(ke,"Search",kn),l(ke,"UserAccounts",as),l(ke,"ValueTypes",ls);function Ju(t,e){e.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(o=>{t.prototype[o]=n.prototype[o]})})}class Mi{}Ju(Mi,[ke,Ur]);class Xu{constructor(){l(this,"title","");l(this,"buttons",[])}Set(e="",n){typeof e=="function"?this.title=e():typeof e=="string"?this.title=e:this.title=e.value,this.buttons=n}}const Qu=new Xu;class Ku{constructor(){l(this,"menu",[]);l(this,"path","");l(this,"isOpen",!0);l(this,"filterString","")}Set(e){this.menu=e}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(e=>{var n;return q.SearchIn(e.name,this.filterString)||((n=e.children)==null?void 0:n.some(o=>q.SearchIn(o.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(e){this.path=e}GetPath(){return this.path}SetFilter(e){this.filterString=e}GetChildren(e){var n;return this.filterString?(n=e.children)==null?void 0:n.filter(o=>q.SearchIn(o.name,this.filterString)):e.children}}const eh=new Ku;class th{constructor(){l(this,"Menu",eh);l(this,"Head",Qu)}}const cs=new th;class ds{constructor(){l(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class us extends ds{constructor(){super(...arguments);l(this,"type",ue.Success);l(this,"text","");l(this,"title","")}showMessage(n,o){this.hide(),this.type=o,typeof n=="string"?this.text=n:(this.text=n.text,this.title=n.title??""),super.show()}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}Info(n){this.showMessage(n,ue.Info)}Success(n){this.showMessage(n,ue.Success)}Error(n){this.showMessage(n,ue.Error)}Warning(n){this.showMessage(n,ue.Warning)}FormMessage(n){let o="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const r of Object.keys(n))n[r][0]&&n[r][0].message&&(o+=`<li>${n[r][0].message}</li>`);return o+="</ul>",o}}class nh extends us{constructor(){super(...arguments);l(this,"confirmButtonText","Да");l(this,"cancelButtonText","Нет");l(this,"resolve");l(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(n){return super.show(),typeof n!="string"&&(this.confirmButtonText=n.confirmButtonText,this.cancelButtonText=n.cancelButtonText),new Promise((o,r)=>{this.resolve=o,this.reject=r})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.resolve(!0),this.hide()}Cancel(){this.reject(),this.hide()}hide(){this.resolve=void 0,this.reject=void 0,super.hide()}}const hs=new nh;class ih extends ds{Show(){super.show()}Hide(){super.hide()}}const fs=new ih;class Ht{static Get(e,n,o="-"){return!e||!n?"":`${e}${o}${n}`}static In(e,n,o){return e>=n&&e<=o}static Intersects(e,n,o,r){return e===o||n===r||e>o&&e<r||n>o&&n<r||n>r&&e<o}}const ms=1e3,ps=60*ms,Bi=60*ps;var qt=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(qt||{});const En={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class _{static S(e){return ms*e}static M(e){return ps*e}static H(e){return Bi*e}static D(e){return Bi*e}static W(e){return Bi*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const n=_.SplitHM(e);return n.length>1?_.HtoM(n[0])+n[1]:_.HtoM(n[0])}static HtoM(e){return Number(e)*60}static SplitHM(e){if(!e)return[];const n=e.split(":");return[Number(n[0]),Number(n[1])]}static HmsToHm(e){const n=_.SplitHM(e);return _.ConcatHM(n[0],n[1])}static AddMtoHM(e,n){const o=new Date,r=_.SplitHM(e);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return _.ConcatHM(a,c)}static ConcatHM(e,n){return`${e}:${_.NormalizeTime(n)}`}static DiffM(e,n){return _.Gt(n,e)?_.HMtoM(n)-_.HMtoM(e):_.HMtoM(e)-_.HMtoM(n)}static GetPeriod(e,n){return Ht.Get(e,n)}static Gt(e,n){return _.HMtoM(e)>_.HMtoM(n)}static GtOrEq(e,n){return _.Gt(e,n)||_.Eq(e,n)}static Eq(e,n){return _.HMtoM(e)===_.HMtoM(n)}static PeriodInPeriod(e,n,o,r){return _.HMtoM(e)>=_.HMtoM(o)&&_.HMtoM(n)<=_.HMtoM(r)}static PeriodsIntersects(e,n,o,r){return Ht.Intersects(_.HMtoM(e),_.HMtoM(n),_.HMtoM(o),_.HMtoM(r))}}class Ut{static Wait(e,n){return new Promise(o=>setTimeout(()=>o(n),e))}static WaitS(e,n){return Ut.Wait(_.S(e),n)}static WaitM(e,n){return Ut.Wait(_.M(e),n)}}class oh extends us{constructor(){super(...arguments);l(this,"duration",_.S(3))}showMessage(n,o){super.showMessage(n,o),typeof n!="string"&&(this.duration=n.duration??this.duration),Ut.Wait(this.GetDuration()).then(()=>super.hide())}GetDuration(){return this.duration}Dev(){const n="В режиме разработки",o=ue.Warning;super.showMessage(n,o)}Save(){const n="Изменения успешно сохранены",o=ue.Success;super.showMessage(n,o)}}const gs=new oh;class rh{constructor(){l(this,"limit",25);l(this,"count",0);l(this,"curPage",1);l(this,"storeModule","")}setCurPage(e){this.curPage=e}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const ys=new rh;class N{}l(N,"Auth",i.reactive(bi)),l(N,"AdminUI",i.reactive(cs)),l(N,"Dialog",i.reactive(hs)),l(N,"Notification",i.reactive(gs)),l(N,"Loading",i.reactive(fs)),l(N,"Paginator",i.reactive(ys)),l(N,"Store",Mi);function ws(){const t=i.ref(!1),e=i.ref(!1);return{confirmLeave:t,saveButtonClick:e,beforeWindowUnload:s=>{t.value&&s.preventDefault()},formUpdated:()=>{t.value=!0},showConfirmModal:(s,a)=>{t.value&&!e.value?N.Dialog.Save().then(()=>{s(),a()}).catch(()=>{N.Notification.Warning("Изменения не были сохранены"),a()}):a()}}}const sh=(()=>{const t=(s,a)=>i.onBeforeMount(async()=>{var c;ee.Get().reset(),Te.Set(a==null?void 0:a.sortsLib),ee.Get().setSortModel(Te.GetDefault()),Te.Set(a==null?void 0:a.sortsLib),ee.Get().setSortModel(Te.GetDefault()),N.Paginator.storeModule=(c=a==null?void 0:a.pagination)==null?void 0:c.storeModule,await s()}),{saveButtonClick:e,showConfirmModal:n}=ws(),o=s=>uc((a,c,d)=>{n((s||r)(),d)}),r=s=>async()=>{e.value=!0;try{s&&await s(),N.Notification.Success("Сохранено")}catch(a){N.Notification.Success("Что-то пошло не так. "+a);return}};return{onBeforeMount:t,onBeforeRouteLeave:o,submit:r}})(),bs=["#31af5e","#ff4d3b","#006BB5","#f3911c"];function ah(){return bs[Math.floor(Math.random()*bs.length)]}function lh(t,e){const n=[2,0,1,1,1,2];return t.length+" "+e[t.length%100>4&&t.length%100<20?2:n[t.length%10<5?t.length%10:5]]}class ch{constructor(e){l(this,"name","");v.BuildClass(this,e)}cache(){}getFromCache(e){const n=sessionStorage.getItem(this.name);if(n){const o=JSON.parse(n),r=new Date,s=new Date(o.time),a=r.getTime()-s.getTime();return Math.round(a/6e4)>(e||10)?null:o.data}else return null}async storeGetWithCache(e,n){let o;return o=this.getFromCache(n),o||(o=await e(),o&&this.cache()),o}}function dh(t,e){t=="left"&&e.next(),t=="right"&&e.prev()}const uh=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class hh{static GetRandColor(e){return Ve.GetRandEL(e??uh)}}function fh(t){const e=t.filter(r=>r.rating!==0);let n=0;e.forEach(r=>n=n+r.rating);const o=n/e.length;return isNaN(o)?0:Number((n/e.length).toFixed(2))}let mh=class{constructor(){l(this,"startHour",9);l(this,"endHour",19);l(this,"timelinePxHeight",50);l(this,"timelineStep",qt.FiveMinutes);l(this,"activeTime","");l(this,"activeObjectId","");l(this,"dragged",!1);l(this,"draggedStartTime","");l(this,"draggedEndTime","");l(this,"timelines",En[qt.FiveMinutes])}startDrag(e,n){this.draggedStartTime=e,this.draggedEndTime=n,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=En[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Ve.GenerateNumsRange(this.startHour,this.endHour)}};const ph=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"];class Ct{constructor(e){l(this,"locale","ru-RU");this.locale=e??this.locale}format(e,n){if(!e)return"";const o={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return n&&(o.year=n.year||n.year===void 0?n.year:o.year,o.month=n.month||n.month===void 0?n.month:o.month,o.day=n.day||n.day===void 0?n.day:o.day,o.hour=n.hour??o.hour,o.minute=n.minute??o.minute),Intl.DateTimeFormat(this.locale,o).format(new Date(e))}getPeriod(e,n,o){return`${this.format(e,o)}-${this.format(n,o)}`}getShortDayName(e){return e?ph[e.getDay()]:""}getCurrentWeekPeriod(e){const n=new Date,o=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),r=new Date(n.getFullYear(),n.getMonth(),o.getDate()+7);return this.getPeriod(o,r,e||{month:"2-digit",day:"numeric",year:void 0})}getDurationInDay(e,n){const o=new Date,r=new Date,s=Ct.SplitHourTime(e),a=Ct.SplitHourTime(n);return o.setHours(s[0],s[1],0,0),r.setHours(a[0],a[1],0,0),(r.getTime()-o.getTime())/1e3/60}static HourTimeinMunutes(e){const n=Ct.SplitHourTime(e);return n[0]*60+n[1]}static SplitHourTime(e){const n=e.split(":");return[Number(n[0]),Number(n[1])]}static AddMinutesToHM(e,n){const o=new Date,r=Ct.SplitHourTime(e);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return`${a}:${c}`}getMonthsDiff(e,n){return n.getMonth()-e.getMonth()+12*(n.getFullYear()-e.getFullYear())}stringToDate(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}}const Ii=t=>t===8||t===46,gh=t=>t>46&&t<58,yh=t=>t>34&&t<41,wh=t=>t+".",bh=(t,e,n)=>{Ii(e)||yh(e)||(!gh(e)||n>9)&&t.preventDefault()};function Sh(t,e){if(e>8){let n=t.substring(0,2).replace(".","1");Number(n)>31&&(n="31");let o=t.substring(3,5).replace(".","1");Number(o)>12&&(o="12");let r=t.substring(6,10).replace(".","1");Number(r)>2100&&(r="2100"),t=n+"."+o+"."+r}return t}function Ch(t){const e=t.keyCode;let n=t.srcElement.value;const o=n.length;bh(t,e,o),!Ii(e)&&(o===2||o===5)&&(n=wh(n));const r=t.srcElement.value+String.fromCharCode(t.which);if(Ii(e)){t.srcElement.value=n;return}n.length===0&&Number(r)>3&&(n="3",t.preventDefault()),n.length===1&&Number(r)>31&&(n="31",t.preventDefault()),r.length===5&&Number(r.substring(3,5))>12&&(n=n.substring(0,3)+"12",t.preventDefault()),n=Sh(n,o),t.srcElement.value=n}class $i{static GetPeriod(e,n){return Ht.Get(Pe.Format(e),Pe.Format(n))}static GetDateOrToday(e){return e?e.date:new Date}static InPeriod(e,n,o){return Ht.In(new Date(e),new Date(n),new Date(o))}static GetDatesFromPeriod(e,n){const o=[new Date(e)];let r=e;for(;r<=n;)r=$i.AddDays(r,1),o.push(r);return o}static AddDays(e,n){const o=new Date(e);return o.setDate(o.getDate()+n),o}static Eq(e,n){return e.getTime()===n.getTime()}}class kh{constructor(){l(this,"dragged",!1);l(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(e){this.dragged=!0,e&&e.dataTransfer&&e.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class Ss{static Get(e){const n=e.split(".");return n[n.length-1]}}const Eh=(()=>{function t(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function e(s,a){const c=localStorage.getItem(`${s}_favourite`);return c?c.split(",").includes(a):!1}function n(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c){t(s,[a]);return}const d=c.split(",");d.push(a),t(s,d)}function o(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c)return;const d=c.split(",").filter(u=>u!==a);t(s,d)}function r(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:n,removeFromFavourite:o,setFavourite:t,isFavourite:e,clearFavourite:r}})();function Cs(t,e){const n=[];if(t)for(let o=0;o<Math.ceil(t.length/e);o++)n[o]=t.slice(o*e,o*e+e);return n}function vh(t,e){t[e].order=e-1,t[e-1]&&(t[e-1].order=e),[t[e],t[e-1]]=[t[e-1],t[e]]}function Mh(t,e){t[e].order=e+1,t[e+1]&&(t[e+1].order=e),[t[e],t[e+1]]=[t[e+1],t[e]]}class je{}l(je,"Auth",i.reactive(bi)),l(je,"AdminUI",i.reactive(cs)),l(je,"Dialog",i.reactive(hs)),l(je,"Notification",i.reactive(gs)),l(je,"Loading",i.reactive(fs)),l(je,"Paginator",i.reactive(ys)),l(je,"Store",Mi);const Dn=class Dn{static Format(e){let n=e;if(!n)e=n;else{(n[0]==="7"||n[0]==="8")&&n.length!==1&&(n=n.slice(1));const o=n.replace(/\+7|[^\d]/g,""),r=o.length;switch(!0){case r===0:e="";break;case(r===1&&n.length===1&&o==="7"):case(r===1&&n.length===1&&o==="8"):e="+7 (";break;case r<4:e=`+7 (${o}`;break;case r<7:e=`+7 (${o.slice(0,3)}) ${o.slice(3)}`;break;case r<9:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}`;break;default:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}-${o.slice(8,10)}`;break}}return e}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};l(Dn,"validatePhone",(e,n,o)=>{Dn.getPhoneRegExp().test(n)||!n?o():o(new Error("Пожалуйста, введите корректный номер телефона"))});let xi=Dn;const Bh=[{path:"/",redirect:"/login"},{path:"/login",component:()=>Promise.resolve().then(()=>Tm),meta:{layout:"LoginLayout"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:()=>Promise.resolve().then(()=>Om)}],Ye=class Ye{static SetRouter(e){this.router=e,this.AddRoutes(Bh)}static GetRouter(){return this.router}static AddRoutes(e){e.forEach(n=>{this.GetRouter().addRoute(n)})}static async To(e){N.Loading.Show(),await this.GetRouter().push(e),N.Loading.Hide()}static async ToHome(){N.Loading.Show(),N.Loading.Hide()}static async Replace(e){await this.GetRouter().replace(e)}static Id(){return Ye.GetStringParam("id")}static Slug(){return Ye.GetStringParam("slug")}static async Back(){N.Loading.Show(),this.GetRouter().go(-1),N.Loading.Hide()}static GetQid(){return Ye.GetStringQueryParam("qid")}static Route(){return this.GetRouter().currentRoute.value}static RouterPushBlank(e){const n=this.GetRouter().resolve({path:e});window.open(n==null?void 0:n.href,"_blank")}static GetPath(){var n;const e=(n=Ye.Route())==null?void 0:n.path.split("/");return!e||e.length<=0?"":e[e.length-1]}static async ToAdmin(e){if(!e){await this.GetRouter().push("/admin");return}let n=e;n[0]==="/"&&(n=e.substring(1)),await Ye.To(`/admin/${n}`)}static GetStringQueryParam(e){return String(this.Route().query[e])}static GetNumberQueryParam(e){return Number(this.Route().query[e]??0)}static GetStringParam(e){return this.Route().params[e]}static Resolve(e){return this.GetRouter().resolve(e)}};l(Ye,"router");let st=Ye;class Ih{static async Auth(e){e&&e()}static Dev(){}}class $h{constructor(){l(this,"startHour",9);l(this,"startHM",`${this.startHour}:00`);l(this,"endHour",19);l(this,"endHM",`${this.endHour}:00`);l(this,"timelinePxHeight",50);l(this,"timelineStep",qt.FiveMinutes);l(this,"timelines",En[qt.FiveMinutes])}periodIsCorrect(e,n){return _.GtOrEq(e,this.startHM)&&_.GtOrEq(this.endHM,n)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=En[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Ve.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(e,n,o,r){return r.filter(s=>s.id!==o).every(s=>!_.PeriodsIntersects(e,n,s.startTime,s.endTime))}sortByStartTime(e){e.sort((n,o)=>_.HMtoM(n.startTime)-_.HMtoM(o.startTime))}}const xh=-68;function Nh(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(t),o=e??xh;let r=0;n&&(r=n.getBoundingClientRect().top+o+document.body.scrollTop),r&&document.body.scrollTo({top:r,behavior:"smooth"})}class ks{static Sort(e){e.forEach((n,o)=>n.order=o)}}class Ni{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(Ni,"staticUrl","");function Rh(t,e){let n=!0;return t.value.validate((o,r)=>(o||(e?N.Notification.Error("Пожалуйста, проверьте правильность введенных данных"):N.Notification.Error(N.Notification.FormMessage(r)),n=!1),n)),n}const Ah=t=>new Promise(e=>{if(document.querySelector(t))return e(document.querySelector(t));const n=new MutationObserver(()=>{document.querySelector(t)&&(n.disconnect(),e(document.querySelector(t)))});n.observe(document.body,{childList:!0,subtree:!0})});class vn{constructor(e){l(this,"id");l(this,"message","");l(this,"userName");l(this,"createdOn",new Date);l(this,"chatId");l(this,"type","message");v.BuildClass(this,e)}static Create(e,n,o,r){const s=new vn;return s.id=de(),s.chatId=e,s.message=o,s.userName=r,s}static CreatePingMessage(){const e=new vn;return e.type="ping",e.id=de(),e}isMessage(){return this.type==="message"||this.type===""}}const Vh="";class Ph{constructor(e="",n="",o="set"){l(this,"client");l(this,"endpoint","");l(this,"query","");l(this,"period",2e4);v.BuildClass(this,{endpoint:e,query:n,mutation:o}),this.connect(),this.ping()}send(e){!this.client||this.client.readyState!==1||this.client.send(e)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(vn.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,Vh.replace("http","ws")).toString()}connect(){this.client=new WebSocket(this.buildUrl()),this.client.onclose=this.reconnect,this.client.onerror=this.reconnect}reconnect(){setTimeout(this.connect,3e3)}}const Ri=i.defineComponent({__name:"PInputDate",props:i.mergeModels({placeholder:{type:String,default:"Укажите дату"},width:{type:String,required:!1,default:"auto"},margin:{type:String,required:!1,default:""},label:{type:String,default:"",required:!1}},{modelValue:{default:new Date},modelModifiers:{}}),emits:i.mergeModels(["update:modelValue","change","beforeChange"],["update:modelValue"]),setup(t,{emit:e}){const n=e,o=i.useModel(t,"modelValue"),r=Pe.Format(o.value),s=i.ref(r),a=d=>{if(!c(d))return;const u=Pe.FromRuStr(d);o.value=u,n("beforeChange",u),n("change",u)},c=d=>d.length!=10?(s.value=r,N.Notification.Error("Неверный формат даты"),!1):Number(s.value.slice(0,2))>31?(s.value=r,N.Notification.Error("Неверный день месяца"),!1):Number(s.value.slice(3,5))>12?(s.value=r,N.Notification.Error("Неверный месяц"),!1):Number(s.value.slice(6,10))>2100?(s.value=r,N.Notification.Error("Неверный год"),!1):!0;return(d,u)=>{const h=We;return i.openBlock(),i.createElementBlock("div",{class:"style-container",style:i.normalizeStyle({width:t.width,position:"relative"})},[i.createVNode(h,{modelValue:i.unref(s),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(s)?s.value=f:null),mask:"##.##.####",placeholder:t.placeholder,margin:t.margin,label:t.label,onBlur:a,onKeydown:i.withKeys(i.withModifiers(f=>{},["prevent"]),["enter"])},null,8,["modelValue","placeholder","margin","label","onKeydown"])],4)}}}),Fh={class:"number"},Es=M(i.defineComponent({__name:"PInputNumber",props:{modelValue:{type:Number,required:!0,default:0}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.modelValue??0),s=()=>{r.value++,o("update:modelValue",r.value),o("change")},a=()=>{r.value--,o("update:modelValue",r.value),o("change")},c=()=>{o("update:modelValue",r.value),o("change")};return(d,u)=>(i.openBlock(),i.createElementBlock("div",Fh,[i.createElementVNode("button",{class:"number-minus",type:"button",onClick:a},u[1]||(u[1]=[i.createElementVNode("svg",{class:"icon-minus"},[i.createElementVNode("use",{"xlink:href":"#minus"})],-1)])),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=h=>i.isRef(r)?r.value=h:null),class:"input-field",type:"number",min:"0",step:"0.1",onInput:c},null,544),[[i.vModelText,i.unref(r)]]),i.createElementVNode("button",{class:"number-plus",type:"button",onClick:s},u[2]||(u[2]=[i.createElementVNode("svg",{class:"icon-plus"},[i.createElementVNode("use",{"xlink:href":"#plus"})],-1)]))]))}}),[["__scopeId","data-v-f53b6419"]]),Th=["innerHTML"],zh={key:1},we=M(i.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"var(--font-color)"},fontSize:{type:String,required:!1,default:"var(--font-size-default)"},fontWeight:{type:String,required:!1,default:""},background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},justifyContent:{type:String,required:!1,default:"center"},isHtml:{type:Boolean,required:!1,default:!1}},emits:["click"],setup(t){const e=t,n={color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,background:e.background,padding:e.padding,width:e.width,maxWidth:e.width,minWidth:e.minWidth,margin:e.margin,justifyContent:e.justifyContent};return(o,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["string",t.customClass]),style:n,onClick:r[0]||(r[0]=s=>o.$emit("click"))},[t.isHtml?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:t.string},null,8,Th)):(i.openBlock(),i.createElementBlock("span",zh,i.toDisplayString(t.string),1))],2))}}),[["__scopeId","data-v-bd8f6c8f"]]),vs=M(i.defineComponent({__name:"PLeftSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть меню"},titleClose:{type:String,required:!1,default:"Показать меню"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.open);i.watch(()=>n.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>{const d=we;return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.shift?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle({minWidth:t.widthClosed,maxWidth:t.widthClosed})},null,4)),i.createElementVNode("div",{class:"LS-body",style:i.normalizeStyle({marginLeft:i.unref(r)?"0":`calc(${t.widthClosed} - ${t.widthOpened})`,minWidth:t.widthOpened,maxWidth:t.widthOpened,boxShadow:t.shadow?"5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:t.shift?"relative":"absolute",background:t.background})},[i.createElementVNode("div",{class:"LS-content",style:i.normalizeStyle({width:`calc(${t.widthOpened} - ${t.widthClosed})`})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],4),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({width:t.widthClosed}),onClick:c[0]||(c[0]=u=>s(!i.unref(r)))},[i.unref(r)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4)],4)],64)}}}),[["__scopeId","data-v-3ea7497e"]]),Ms=M(i.defineComponent({__name:"PList",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"300px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("ul",{style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-84953e34"]]),Bs=M(i.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("li",{style:i.normalizeStyle({margin:t.margin,padding:t.padding,borderBottom:t.showDivider?"1px solid":"none"})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-4cb3c766"]]),Dh=["for"],Lh=["id","name","checked","value"],Is=M(i.defineComponent({__name:"PRadio",props:i.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:"14px"},size:{type:String,default:"20px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:"auto"},value:{type:[String,Boolean],default:void 0}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),o=e,r=t,s=q.CreateGuid(),a=i.computed(()=>n.value===r.value),c=()=>{o("change",r.value)};return(d,u)=>(i.openBlock(),i.createElementBlock("div",{class:"radio-line",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createElementVNode("label",{class:"radio-field__label",for:i.unref(s),style:i.normalizeStyle({fontSize:t.fontSize})},[i.withDirectives(i.createElementVNode("input",{id:i.unref(s),"onUpdate:modelValue":u[0]||(u[0]=h=>n.value=h),name:t.name,checked:i.unref(a),class:"radio-field__input",type:"radio",value:t.value},null,8,Lh),[[i.vModelRadio,n.value]]),i.createElementVNode("div",{class:"box",style:i.normalizeStyle({width:t.size,height:t.size,borderRadius:t.borderRadius}),onClick:c},[n.value===t.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"radio-dot",style:i.normalizeStyle({width:`calc(${t.size} - 50%)`,height:`calc(${t.size} - 50%)`})},null,4)):i.createCommentVNode("",!0)],4),i.createElementVNode("span",{onClick:c},i.toDisplayString(t.label),1)],12,Dh)],4))}}),[["__scopeId","data-v-a8f68add"]]),Oh={class:"wrapper"},_h={class:"content"},$s=M(i.defineComponent({__name:"PRightSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть"},titleClose:{type:String,required:!1,default:"Показать"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.open);i.watch(()=>n.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>{const d=we;return i.openBlock(),i.createElementBlock("div",Oh,[i.createElementVNode("div",_h,[i.renderSlot(a.$slots,"content",{},void 0,!0)]),i.createElementVNode("div",{class:"RS-body",style:i.normalizeStyle({marginRight:i.unref(r)?"0":`calc(${t.widthClosed} - ${t.widthOpened})`,minWidth:t.widthOpened,maxWidth:t.widthOpened,boxShadow:t.shadow?"-5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:t.shift?"relative":"absolute"})},[i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({width:t.widthClosed}),onClick:c[0]||(c[0]=u=>s(!i.unref(r)))},[i.unref(r)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4),i.createElementVNode("div",{class:"RS-content",style:i.normalizeStyle({width:`calc(${t.widthOpened} - ${t.widthClosed} - 2px)`,background:t.background})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],4)],4)])}}}),[["__scopeId","data-v-6f8cc35c"]]),Ai=M(i.defineComponent({__name:"IconSelectArrow",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-down",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},[i.createElementVNode("path",{d:"M3.08417 4.43062C2.86268 4.4769 2.70731 4.56285 2.52549 4.74467C2.29408 4.97607 2.20152 5.2174 2.22136 5.55459C2.25111 6.0207 1.96681 5.70996 6.78995 10.5397C9.18995 12.9463 11.2263 14.9662 11.309 15.029C11.5238 15.1843 11.7123 15.2471 11.99 15.2505C12.4693 15.2538 12.109 15.581 17.1106 10.5728C22.0891 5.58764 21.7288 5.98103 21.7255 5.505C21.7255 5.37607 21.7023 5.21078 21.6726 5.13145C21.5106 4.68186 21.0511 4.38434 20.5817 4.4174C20.1519 4.44715 20.4263 4.19591 16.0164 8.60252L11.9833 12.629L8.06598 8.71161C5.91061 6.55624 4.0726 4.73475 3.98003 4.66202C3.71227 4.45376 3.38499 4.36781 3.08417 4.43062Z",fill:"currentColor"}),i.createElementVNode("path",{d:"M9.69602 16.8994C9.70593 16.9292 9.72577 17.0184 9.73569 17.1044C9.76213 17.2664 9.7985 17.2994 9.83486 17.1903C9.84478 17.154 9.89106 17.1143 9.93734 17.1044C10.0464 17.078 10.0365 17.0548 9.87453 16.9589C9.6861 16.8465 9.67288 16.8432 9.69602 16.8994Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-db435ef1"]]),Wt=M(i.defineComponent({__name:"IconClose",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#close"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},[i.createElementVNode("path",{d:"M7.53508 7.18138C7.03684 7.5158 6.86132 8.14496 7.1161 8.66643C7.18971 8.8138 8.02201 9.69236 9.44881 11.1207C10.6718 12.345 11.8211 13.49 12.0023 13.6714L12.3251 14.0058L9.80551 16.5224C7.92576 18.4043 7.25199 19.1184 7.14441 19.3225C6.83867 19.9346 7.0425 20.5865 7.637 20.8926C7.89745 21.0286 8.41268 21.0343 8.6618 20.9096C8.76372 20.8585 10.0037 19.6626 11.4191 18.2455L14.001 15.6666L16.5432 18.2229C18.1964 19.8723 19.1703 20.8132 19.3232 20.8869C19.5779 21.0116 20.0309 21.0399 20.2913 20.9379C20.5178 20.8529 20.8632 20.5015 20.9368 20.2747C21.0274 19.9913 21.0161 19.5719 20.9028 19.3508C20.8519 19.2431 19.6516 17.9961 18.2361 16.5791L15.6656 14.0001L18.2191 11.4495C19.7138 9.95309 20.8179 8.80813 20.8858 8.6721C21.0104 8.42837 21.0387 7.98058 20.9425 7.73119C20.8519 7.50446 20.5971 7.23239 20.3593 7.11336C20.0988 6.97733 19.6516 6.96599 19.3628 7.08502C19.2212 7.14737 18.3097 8.01459 16.5771 9.74904L14.001 12.328L11.4191 9.75471C9.6583 7.99192 8.77504 7.14737 8.63349 7.08502C8.51459 7.03968 8.28246 7 8.1126 7C7.86347 7 7.76156 7.03401 7.53508 7.18138Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-8d8cfcf1"]]),Hh=["for"],qh={class:"field"},Uh={class:"left-field"},Wh={class:"arrow"},Gh={selected:"",hidden:""},jh={class:"right-field"},at=M(i.defineComponent({inheritAttrs:!1,__name:"PSelect",props:i.mergeModels({label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},value:{type:String,default:"",required:!1},readonly:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},clearable:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:""}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change","clear"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),o=i.ref(!0),r=e,s=i.ref(!1),a=()=>{o.value=!1,r("change",n.value)},c=()=>{r("clear",void 0),r("change",void 0),o.value=!0};return(d,u)=>{const h=Ai;return i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Hh)):i.createCommentVNode("",!0),i.createElementVNode("div",qh,[i.createElementVNode("div",Uh,[i.renderSlot(d.$slots,"left",{},void 0,!0)]),i.createElementVNode("div",{class:"sl",onMouseover:u[1]||(u[1]=f=>s.value=!0),onMouseleave:u[2]||(u[2]=f=>s.value=!1)},[t.clearable?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"clear",onClick:c},[i.createVNode(Wt,{margin:"0"})],512)),[[i.vShow,i.unref(s)]]):i.createCommentVNode("",!0),i.createElementVNode("div",Wh,[i.createVNode(h,{margin:"2px 2px 0 0"})]),i.withDirectives(i.createElementVNode("select",i.mergeProps(d.$attrs,{"onUpdate:modelValue":u[0]||(u[0]=f=>n.value=f),class:"text-field__input",onChange:a}),[i.createElementVNode("option",Gh,i.toDisplayString(t.placeholder),1),i.renderSlot(d.$slots,"default",{},void 0,!0)],16),[[i.vModelSelect,n.value]])],32),i.createElementVNode("div",jh,[i.renderSlot(d.$slots,"right",{},void 0,!0)])])],4)}}}),[["__scopeId","data-v-eab44241"]]),Mn=M(i.defineComponent({__name:"PSticky",props:{shadow:{type:Boolean,default:!1},zIndex:{type:Number,default:0},background:{type:String,default:"inherit"},padding:{type:String,default:"0"},top:{type:String,default:"0"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"sticky-block",style:i.normalizeStyle({zIndex:1+t.zIndex,top:t.top,background:t.background,padding:t.padding,boxShadow:t.shadow?"0 0 5px 2px rgba(0,0,0,0.3)":"none"})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-db44b76d"]]),Zh=["for"],Yh={class:"left-field"},Jh={class:"right-field"},xs=M(i.defineComponent({__name:"PTextarea",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:"0"},padding:{type:String,default:"0",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t){const e=i.useModel(t,"modelValue");return(n,o)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Zh)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",Yh,[i.renderSlot(n.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("textarea",i.mergeProps(n.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=r=>e.value=r),class:"text-field__input",style:{color:t.color},onBlur:o[1]||(o[1]=r=>n.$emit("blur",e.value)),onInput:o[2]||(o[2]=r=>n.$emit("input",e.value))}),null,16),[[i.vModelText,e.value],[i.unref(xo),t.mask]]),i.createElementVNode("div",Jh,[i.renderSlot(n.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-172b61e5"]]),Xh={class:"top-slider-content"},Qh={class:"center"},Ns=M(i.defineComponent({__name:"PTopSlider",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},open:{type:Boolean,default:!1}},emits:["open"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.open);i.watch(()=>n.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=i.withModifiers(d=>r.value=!0,["prevent"])),c[1]||(c[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(r)?"0":`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`,height:t.sliderOnHeight}),onClick:c[3]||(c[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Xh,[i.createElementVNode("div",Qh,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:c[2]||(c[2]=d=>s(!i.unref(r)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-12ffd2e2"]]),Gt=M(i.defineComponent({__name:"PModal",props:{showCloseDialog:{type:Boolean,required:!1,default:!1},closable:{type:Boolean,required:!1,default:!1},show:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:String,default:"760px"},margin:{type:String,default:"auto"},top:{type:String,default:"20vh"},padding:{type:String,default:"var(--modal-window-padding)"},showClose:{type:Boolean,default:!1}},emits:["save","close"],setup(t,{emit:e}){const n=t,o=e,r=a=>{a.key==="Escape"&&s()};i.onMounted(()=>{document.body.addEventListener("keydown",r)}),i.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",r)});const s=()=>{n.closable&&o("close")};return(a,c)=>{const d=Wt;return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.show?(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:s})):i.createCommentVNode("",!0),t.show?(i.openBlock(),i.createElementBlock("div",{key:1,class:"modal-w",style:i.normalizeStyle({maxWidth:t.width,width:t.width,margin:t.margin,padding:t.padding,top:t.top})},[t.closable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"icon-box",onClick:s},[i.createVNode(d,{size:"20px"})])):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"default",{},void 0,!0)],4)):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-41f0eae5"]]),Kh={class:"btn-group"},Bn=M(i.defineComponent({__name:"AuthForm",props:{width:{type:String,default:"300px"},margin:{type:String,default:"auto"},padding:{type:String,default:"60px 100px"}},emits:["submit"],setup(t,{emit:e}){const n=N.Auth.Form,o=i.ref(!1),r=e,s=i.computed(()=>n.GetButtons()),a=async c=>{await N.Auth.Form.Block(async()=>{if(!c.submit)return n.SetStatus(c.GetStatus());const d=n.Validate();if(d.length>0){N.Notification.Error(d.join(", "));return}r("submit")})};return i.onBeforeUnmount(()=>{n.Reset()}),(c,d)=>{const u=We,h=pe;return i.openBlock(),i.createElementBlock("div",{class:"auth-card",style:i.normalizeStyle({width:t.width,margin:t.margin,padding:t.padding})},[i.createElementVNode("div",null,i.toDisplayString(("PHelp"in c?c.PHelp:i.unref(N)).Auth.Form.GetTitle()),1),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(("PHelp"in c?c.PHelp:i.unref(N)).Auth.Form.GetFields(),f=>(i.openBlock(),i.createBlock(u,{id:f.id,key:f,modelValue:f.value,"onUpdate:modelValue":p=>f.value=p,placeholder:f.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","placeholder"]))),128)),i.createVNode(h,{type:"primary",skin:"text_ano",text:"Забыли пароль?",width:"124px",margin:"0 0 0 5px"}),i.createElementVNode("div",Kh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),f=>(i.openBlock(),i.createBlock(h,{id:f.id,key:f.GetStatus(),disabled:i.unref(o),type:"primary",skin:"base",text:f.text,color:f.submit?"blue":"grey",margin:"10px 0 0 0",width:"100%",height:"52px",onClick:p=>a(f)},null,8,["id","disabled","text","color","onClick"]))),128))])])],4)}}}),[["__scopeId","data-v-e716ebe9"]]),Rs=i.defineComponent({__name:"AuthModal",emits:["submit"],setup(t){const e=()=>{N.Auth.Form.Reset(),N.Auth.Modal.Close()};return(n,o)=>{const r=Bn,s=Gt;return i.openBlock(),i.createBlock(s,{show:("PHelp"in n?n.PHelp:i.unref(N)).Auth.Modal.IsVisible(),closable:("PHelp"in n?n.PHelp:i.unref(N)).Auth.Modal.IsClosable(),onClose:e},{default:i.withCtx(()=>[i.createVNode(r,{width:"760px",onAction:o[0]||(o[0]=a=>n.$emit("submit"))})]),_:1},8,["show","closable"])}}}),jt=M(i.defineComponent({__name:"GridContainer",props:{maxWidth:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"100%"},background:{type:String,required:!1,default:"inherit"},gridGap:{type:String,required:!1,default:"10px"},gridTemplateColumns:{type:String,required:!1,default:"repeat(auto-fit, minmax(250px, 1fr))"},gridTemplateRows:{type:String,required:!1,default:"repeat(0 0px)"},margin:{type:String,required:!1,default:"10px 0 0 0"},customClass:{type:String,required:!1,default:""}},setup(t){return i.useCssVars(e=>({59355408:t.maxWidth,"24aaa640":t.width,"0833ce18":t.background,"65d0bfaa":t.gridGap,"2373d8d7":t.gridTemplateColumns,ea2919c2:t.gridTemplateRows,"5f2f1c74":t.margin})),(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["grid-block",t.customClass])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-352a1099"]]);var _e=(t=>(t.None="None",t.Next="Next",t.Prev="Prev",t))(_e||{});const ef={class:"container"},tf={class:"slide-box"},nf={class:"link-number"},of=["id","onClick"],As=M(i.defineComponent({__name:"CarouselImages",props:{events:{type:Array,required:!0},quantity:{type:Number,default:1,required:!1},animationTime:{type:Number,default:500},height:{type:String,default:"360px"},maxHeight:{type:String,default:"360px"},startActiveGroupIndex:{type:Number,default:0}},emits:["openModalWindow"],setup(t){i.useCssVars(y=>({"17adb052":n}));const e=t,n=`${e.animationTime}ms`,o=i.ref(e.startActiveGroupIndex),r=i.ref(_e.None),s=i.ref(Cs(e.events,e.quantity)),a=i.computed(()=>s.value[o.value]);i.onMounted(()=>{});const c=()=>o.value=o.value+1<s.value.length?o.value+1:0,d=()=>o.value=o.value-1<0?s.value.length-1:o.value-1,u=y=>{r.value=y,setTimeout(()=>r.value=_e.None,e.animationTime)},h=y=>{y!=o.value&&(u(y<o.value?_e.Prev:_e.Next),setTimeout(()=>o.value=y,e.animationTime/2))},f=()=>{u(_e.Next),setTimeout(c,e.animationTime/2)},p=()=>{u(_e.Prev),setTimeout(d,e.animationTime/2)};return(y,g)=>(i.openBlock(),i.createElementBlock("div",{class:"field",style:i.normalizeStyle({height:t.height,maxHeight:t.maxHeight})},[i.createElementVNode("div",ef,[(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:g[0]||(g[0]=i.withModifiers(k=>p(),["stop"]))},g[2]||(g[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)]))),i.createElementVNode("div",tf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),(k,b)=>(i.openBlock(),i.createElementBlock("div",{key:b,class:i.normalizeClass({animationnext:i.unref(r)===i.unref(_e).Next,animationprev:i.unref(r)===i.unref(_e).Prev})},g[3]||(g[3]=[i.createElementVNode("div",{class:"image"},[i.createElementVNode("div",{class:"image-box"})],-1)]),2))),128))]),(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:g[1]||(g[1]=i.withModifiers(k=>f(),["stop"]))},g[4]||(g[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])))]),i.createElementVNode("div",nf,[i.createVNode(jt,{"grid-template-columns":"repeat(auto-fit, minmax(26px, 1fr))","grid-gap":"5px",margin:"0"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),(k,b)=>(i.openBlock(),i.createElementBlock("div",{id:b.toString(),key:b,class:"number",style:i.normalizeStyle({background:b.toString()===i.unref(o).toString()?"#9D9D9D":""}),onClick:i.withModifiers(I=>h(b),["stop"])},i.toDisplayString(b+1),13,of))),128))]),_:1})])],4))}}),[["__scopeId","data-v-3493284a"]]);class In{constructor(e){l(this,"id");l(this,"ratio",0);l(this,"src","");l(this,"store","");v.BuildClass(this,e)}static CreateCropper(e,n,o){const r=new In;return r.src=e,r.id=o,n&&(r.ratio=n),r}}let rf=class{constructor(){l(this,"cropper",new In)}Open(e){this.cropper=e}Cropper(){return this.cropper}Ratio(){return this.cropper.ratio}};const Vi=new rf,Pi=M(i.defineComponent({__name:"EmailForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{Si.Update(e.value)};return(o,r)=>{const s=We;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{modelValue:e.value.address,"onUpdate:modelValue":r[0]||(r[0]=a=>e.value.address=a),onBlur:n},null,8,["modelValue"]),i.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":r[1]||(r[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-bbe15030"]]),Fi=M(i.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{await ki.Update(e.value)};return(o,r)=>{const s=We;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{modelValue:e.value.number,"onUpdate:modelValue":r[0]||(r[0]=a=>e.value.number=a),onBlur:n},null,8,["modelValue"]),i.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":r[1]||(r[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-9d94e007"]]),sf={key:0,class:"contact-container"},af={class:"bottom-buttons"},lf={class:"list-number"},cf={class:"bottom-buttons"},df={class:"list-number"},Vs=M(i.defineComponent({__name:"ContactForm",props:i.mergeModels({full:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{},o=async a=>{e.value.removeEmail(a)},r=async()=>{},s=async a=>{e.value.removePhone(a)};return(a,c)=>{const d=We,u=pe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.full?(i.openBlock(),i.createElementBlock("div",sf,[i.createVNode(d,{modelValue:e.value.description,"onUpdate:modelValue":c[0]||(c[0]=h=>e.value.description=h),label:"Описание"},null,8,["modelValue"]),i.createVNode(d,{modelValue:e.value.time,"onUpdate:modelValue":c[1]||(c[1]=h=>e.value.time=h),label:"Время работы"},null,8,["modelValue"]),i.createVNode(d,{modelValue:e.value.latitude,"onUpdate:modelValue":c[2]||(c[2]=h=>e.value.latitude=h),label:"Широта (для карты)"},null,8,["modelValue"]),i.createVNode(d,{modelValue:e.value.longitude,"onUpdate:modelValue":c[3]||(c[3]=h=>e.value.longitude=h),label:"Долгота (для карты)"},null,8,["modelValue"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"contact-container",style:i.normalizeStyle({background:e.value.phones.length?"":"#F9FAFB"})},[i.createElementVNode("div",af,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({color:e.value.phones.length?"#303133":"#c4c4c4"})},"Телефоны",4),i.createVNode(u,{class:"admin-add",text:"+ Добавить",onClick:c[4]||(c[4]=h=>r())})]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.value.phones,(h,f)=>(i.openBlock(),i.createElementBlock("div",{key:h.id,class:"contact-container-item"},[i.createVNode(u,{class:"admin-del",text:"Удалить",onClick:p=>s(h.id)},null,8,["onClick"]),i.createElementVNode("div",lf,i.toDisplayString(f+1),1),i.createVNode(Fi,{modelValue:e.value.phones[f],"onUpdate:modelValue":p=>e.value.phones[f]=p},null,8,["modelValue","onUpdate:modelValue"])]))),128))],4),i.createElementVNode("div",{class:"contact-container",style:i.normalizeStyle({background:e.value.emails.length?"":"#F9FAFB"})},[i.createElementVNode("div",cf,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({color:e.value.emails.length?"#303133":"#c4c4c4"})},"Электронная почта",4),i.createVNode(u,{class:"admin-add",text:"+ Добавить",onClick:c[5]||(c[5]=h=>n())})]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.value.emails,(h,f)=>(i.openBlock(),i.createElementBlock("div",{key:h.id,class:"contact-container-item"},[i.createVNode(u,{class:"admin-del",text:"Удалить",onClick:p=>o(h.id)},null,8,["onClick"]),i.createElementVNode("div",df,i.toDisplayString(f+1),1),i.createVNode(Pi,{modelValue:e.value.emails[f],"onUpdate:modelValue":p=>e.value.emails[f]=p},null,8,["modelValue","onUpdate:modelValue"])]))),128))],4)],64)}}}),[["__scopeId","data-v-5abf9c52"]]),Ps=i.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.x),s=i.ref(n.y),a=i.computed(()=>r.value+"px"),c=i.computed(()=>s.value+"px"),d=()=>{o("close")};return(u,h)=>{const f=i.resolveDirective("click-outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:"context-window",style:i.normalizeStyle({left:i.unref(a),top:i.unref(c)})},[i.renderSlot(u.$slots,"default")],4)),[[f,d]])}}}),uf={class:"date-range"},Fs=M(i.defineComponent({__name:"DateInputRange",props:{start:{type:Date,default:void 0},end:{type:Date,default:void 0}},emits:["update:start","update:end","setStart","setEnd"],setup(t,{emit:e}){const n=t,o=e;i.watch(()=>[n.start,n.end],()=>{n.start||(r.value=void 0),n.end||(s.value=void 0)});const r=i.ref(n.start),s=i.ref(n.end),a=d=>{if(r.value=d,!n.end||d>n.end){N.Notification.Warning("Дата начала больше даты окончания");return}o("update:start",d),o("setStart",d)},c=d=>{if(s.value=d,!n.start||d<n.start){N.Notification.Warning("Дата начала больше даты окончания");return}o("update:end",d),o("setEnd",d)};return(d,u)=>{const h=Ri;return i.openBlock(),i.createElementBlock("div",uf,[i.createVNode(h,{"model-value":i.unref(r),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(r)?r.value=f:null),onChange:a},null,8,["model-value"]),u[2]||(u[2]=i.createTextVNode(" - ")),i.createVNode(h,{"model-value":i.unref(s),"onUpdate:modelValue":u[1]||(u[1]=f=>i.isRef(s)?s.value=f:null),onChange:c},null,8,["model-value"])])}}}),[["__scopeId","data-v-aac32b2f"]]),hf=i.defineComponent({name:"DateInputRangeV2"}),ff={class:"date-range"};function mf(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",ff,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const Ts=M(hf,[["render",mf],["__scopeId","data-v-80580591"]]),pf={class:"drop-item"},gf={key:0,class:"drop-item-list"},zs=M(i.defineComponent({__name:"DropList",props:{name:{type:String,default:"Name"},rolledUp:{type:Boolean,default:!0}},setup(t){const e=t,n=i.ref(e.rolledUp),o=async()=>{n.value=!n.value};return(r,s)=>{const a=we,c=i.resolveComponent("IconArrowDrop");return i.openBlock(),i.createElementBlock("div",pf,[i.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=d=>o())},[i.createVNode(a,{"font-size":"13px","font-weight":"600",string:t.name,"justify-content":"left",width:"auto",margin:"0 5px 0 0",padding:"6px 0",color:"inherit"},null,8,["string"]),i.createElementVNode("div",{style:i.normalizeStyle({transform:i.unref(n)?"":"rotate(-90deg)",display:"flex",alignItems:"center",margin:"0 0 2px 0"})},[i.createVNode(c,{size:"10px",margin:"0"})],4)]),i.unref(n)?(i.openBlock(),i.createElementBlock("div",gf,[i.renderSlot(r.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-75ec18f4"]]),Ds=M(i.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new jn,required:!0}},emits:["load"],setup(t,{emit:e}){const n=t,o=i.ref(!1),r=e,s=()=>{n.model.setBoolean(o.value),o.value?ee.Get().setF(n.model):ee.Get().removeF(n.model),r("load")};return(a,c)=>{const d=Un;return i.openBlock(),i.createBlock(d,{modelValue:i.unref(o),"onUpdate:modelValue":c[0]||(c[0]=u=>i.isRef(o)?o.value=u:null),label:t.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-ae33ede2"]]),yf={key:0,class:"blur"},wf={style:{display:"flex","justify-content":"center"}},lt=M(i.defineComponent({__name:"InfoItem",props:{background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},openWidth:{type:String,required:!1,default:"auto"},openHeight:{type:String,required:!1,default:"auto"},maxWidth:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},height:{type:String,required:!1,default:""},withOpenWindow:{type:Boolean,required:!1,default:!0},colorSelected:{type:String,required:!1,default:"#1979CF"},borderColor:{type:String,required:!1,default:"#E3E3E3"},withHover:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},close:{type:Boolean,required:!1,default:!0},baseBoxMargin:{type:String,required:!1,default:""},closeWindowOverflow:{type:String,required:!1,default:""},showSaveDialog:{type:Boolean,required:!1,default:!1}},emits:["click","keyup-enter","after-close"],setup(t,{emit:e}){const n=t,o=e,r=n.customClass!==""?n.customClass:"inside-class",s=i.ref(!1),a=i.ref(!1),c=i.ref(!1),d=i.ref(n.close);i.watch(()=>n.close,()=>{a.value=!1});const u=z=>{z.stopPropagation(),z.key==="Escape"&&(n.showSaveDialog?c.value=!0:a.value=!1)};i.watch(a,async()=>{var z,F;await i.nextTick(),a.value?((F=(z=document.getElementById("info-item-opened-content"))==null?void 0:z.querySelector("input"))==null||F.focus(),document.body.addEventListener("keydown",u)):document.body.removeEventListener("keydown",u,!1),a.value===!1&&o("after-close")});const h=()=>{o("click"),a.value=!!n.withOpenWindow,d.value!==n.close&&(a.value=!1,d.value=!d.value)},f=i.computed(()=>n.customClass===""?{width:n.width,minHeight:"40px",height:"auto",maxWidth:n.maxWidth,minWidth:n.minWidth,margin:n.baseBoxMargin}:void 0),p=i.computed(()=>a.value&&n.withOpenWindow),y=i.computed(()=>({background:n.background?n.background:void 0,zIndex:p.value?"2":"0",padding:p.value?"0":n.padding,margin:n.margin,width:p.value?n.openWidth:n.width,height:p.value?n.openHeight:n.height,minHeight:"40px",maxWidth:n.maxWidth,minWidth:n.minWidth,borderColor:s.value||a.value?n.colorSelected:n.borderColor,color:s.value?n.colorSelected:"#343E5C",boxShadow:s.value||a.value?`0px 0px 1px 1px ${n.colorSelected}`:"none",alignItems:p.value?"end":"center",cursor:(n.withHover,"pointer")})),g=i.computed(()=>({height:p.value?"0":"",overflow:n.closeWindowOverflow,width:n.width})),k=i.computed(()=>({height:p.value?"auto":"0"})),b=i.computed(()=>({color:s.value?n.colorSelected:"#343E5C",fill:s.value?n.colorSelected:"#343E5C",background:n.background})),I=()=>{n.showSaveDialog?c.value=!0:a.value=!1},L=async()=>{await o("keyup-enter"),n.close&&(a.value=!1),c.value=!1},O=()=>{a.value=!1,c.value=!1};return(z,F)=>{const ve=we,$e=pe,Je=Gt,Bt=i.resolveDirective("click-outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(a)?(i.openBlock(),i.createElementBlock("div",yf)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"base-box",style:i.normalizeStyle(i.unref(f)),onClick:F[2]||(F[2]=i.withModifiers(Ln=>h(),["prevent","stop"]))},[i.createElementVNode("div",{class:i.normalizeClass(["body",i.unref(r)]),style:i.normalizeStyle(i.unref(y)),onMouseenter:F[0]||(F[0]=Ln=>t.withHover?s.value=!0:s.value=!1),onMouseleave:F[1]||(F[1]=Ln=>s.value=!1)},[i.unref(a)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["close-window",t.customClass]),style:i.normalizeStyle(i.unref(g))},[i.renderSlot(z.$slots,"default",{},void 0,!0)],6)),i.unref(a)?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:1,id:"info-item-opened-content",class:"open-window",style:i.normalizeStyle(i.unref(k))},[i.renderSlot(z.$slots,"open-inside-content",{},void 0,!0)],4)),[[Bt,I,void 0,{prevent:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"top-title",style:i.normalizeStyle(i.unref(b))},[i.renderSlot(z.$slots,"title",{},()=>[i.createVNode(ve,{string:t.title,"font-size":"10px",padding:"0 0 0 3px",style:i.normalizeStyle({color:i.unref(s)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),i.createVNode(Je,{show:i.unref(c),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:i.withCtx(()=>[i.createElementVNode("div",wf,[i.createVNode($e,{text:"Не сохранять",onClick:O}),i.createVNode($e,{text:"Сохранять",onClick:L})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-4788a262"]]),Ls=M(i.defineComponent({__name:"FiltersButtonsSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(t,{emit:e}){const n=e,o=i.ref(void 0),r=async a=>{ee.Get().replaceF(a,o.value),o.value=a,ee.Get().p.drop()},s=async a=>{await r(a),n("load")};return(a,c)=>{const d=we,u=pe,h=jt,f=lt;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(d,{string:t.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),i.createVNode(f,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"#F5F5F5","border-color":"#C4C4C4",padding:"7px","with-hover":!1},{title:i.withCtx(()=>c[0]||(c[0]=[])),default:i.withCtx(()=>[i.createVNode(h,{"max-width":"100%","grid-gap":"7px","grid-template-columns":"repeat(auto-fit, minmax(100%, 1fr))",margin:"0px"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(p,y)=>(i.openBlock(),i.createBlock(u,{key:y,color:"blue",height:"auto",text:p.label,"is-toggle":p.valueEq(i.unref(o)),"toggle-mode":!0,inverse:t.inverse,onClick:g=>s(p.valueEq(i.unref(o))?void 0:p)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-04775fc7"]]),bf=["value","label"],Os=M(i.defineComponent({__name:"FilterSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(t,{emit:e}){const n=e,o=ee.Get(),r=i.ref(void 0),s=async c=>{o.replaceF(c,r.value),r.value=c},a=async c=>{c?await s(r.value):await s(void 0),n("load")};return(c,d)=>{const u=at;return i.openBlock(),i.createBlock(u,{modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=h=>i.isRef(r)?r.value=h:null),clearable:i.unref(r),placeholder:t.defaultLabel,onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,value:h,label:h.label},null,8,bf))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ea2463cc"]]),_s=M(i.defineComponent({__name:"FTSPPanel",setup(t){return i.onBeforeMount(async()=>{}),(e,n)=>(i.openBlock(),i.createElementBlock("div"))}}),[["__scopeId","data-v-a4a3cc13"]]),Hs=M(i.defineComponent({__name:"GeneralItem",props:{background:{type:String,required:!1,default:"#ffffff"},height:{type:String,required:!1,default:"40px"},width:{type:String,required:!1,default:"auto"},ready:{type:String,required:!1,default:"0%"},padding:{type:String,required:!1,default:"10px"},borderColor:{type:String,required:!1,default:"#343D5C"},margin:{type:String,required:!1,default:"5px"},scale:{type:Boolean,required:!1,default:!0},fontSize:{type:String,required:!1,default:"14px"},withIcon:{type:Boolean,required:!1,default:!1}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock("div",{class:"general-block-item",style:i.normalizeStyle({background:t.background,height:t.height,width:t.width,borderColor:t.borderColor,padding:t.padding,margin:t.margin,transform:t.scale&&i.unref(e)?"scale(1.03, 1.03)":""}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},[i.createElementVNode("div",{class:"green",style:i.normalizeStyle({width:`${t.ready}`})},null,4),i.createElementVNode("div",{class:"general-block-item-title",style:i.normalizeStyle({fontSize:t.fontSize})},[i.renderSlot(n.$slots,"general-item",{},void 0,!0)],4),i.createElementVNode("div",{class:"tools-icon",style:i.normalizeStyle({display:t.withIcon?"flex":"none"})},o[2]||(o[2]=[i.createElementVNode("svg",{class:"icon-del"},[i.createElementVNode("use",{"xlink:href":"#del"})],-1)]),4),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"del",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},[i.createElementVNode("path",{d:"M2.91797 8.75C2.6888 8.75 2.49255 8.66833 2.32922 8.505C2.16589 8.34167 2.08436 8.14556 2.08464 7.91667V2.5H1.66797V1.66667H3.7513V1.25H6.2513V1.66667H8.33464V2.5H7.91797V7.91667C7.91797 8.14583 7.8363 8.34208 7.67297 8.50542C7.50964 8.66875 7.31352 8.75028 7.08464 8.75H2.91797ZM7.08464 2.5H2.91797V7.91667H7.08464V2.5ZM3.7513 7.08333H4.58464V3.33333H3.7513V7.08333ZM5.41797 7.08333H6.2513V3.33333H5.41797V7.08333Z"})])],-1))],36))}}),[["__scopeId","data-v-d7e51e08"]]),Ti=M(i.defineComponent({__name:"IconDownload",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#download"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"download",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M15.6443 5.06141C15.0797 5.29331 15.0998 5.06141 15.0998 12.1393C15.0998 15.7388 15.0696 18.6728 15.0293 18.6728C14.9889 18.6728 14.1521 17.8763 13.1842 16.9083C11.6819 15.4061 11.3592 15.1338 11.0467 15.0733C10.724 15.0229 10.6333 15.0632 10.3611 15.3254C10.1292 15.5573 10.0586 15.7186 10.0586 16.0211C10.0586 16.3941 10.1594 16.5151 12.8615 19.2071C15.4326 21.7681 15.6947 22 16.0073 22C16.3198 22 16.582 21.7681 19.153 19.2071C21.9156 16.4546 21.9559 16.4042 21.9559 15.9908C21.9559 15.4867 21.6535 15.1641 21.109 15.0733C20.736 15.0128 20.7259 15.0229 18.8808 16.868C17.0357 18.6929 17.0155 18.7131 17.0155 18.3703C17.0054 18.1787 16.9953 15.2145 16.9853 11.7965L16.9651 5.56554L16.713 5.31348C16.4307 5.03117 15.9669 4.92026 15.6443 5.06141Z"}),i.createElementVNode("path",{d:"M5.30247 20.3872L5 20.6997L5.04033 22.081C5.07058 23.4321 5.08066 23.4825 5.44363 24.2488C6.09899 25.6099 7.17782 26.5173 8.59945 26.8904C9.47663 27.1122 22.5335 27.1223 23.4006 26.8904C25.044 26.4669 26.3245 25.2671 26.8084 23.7043C26.9496 23.2506 27 22.7868 27 21.8794C27 20.6796 27 20.6695 26.7076 20.3771C26.3144 19.9839 25.901 19.9839 25.4675 20.3771L25.1347 20.6695L25.1045 21.8189C25.0843 22.8776 25.0541 23.0086 24.7516 23.6035C24.3987 24.3093 23.7938 24.8235 23.088 25.0251C22.5839 25.1663 9.4363 25.1663 8.93217 25.0251C8.30706 24.8436 7.64161 24.3093 7.29881 23.7144C7.00642 23.2002 6.98625 23.0691 6.93584 21.9197L6.88543 20.6695L6.5527 20.3771C6.11916 19.9839 5.70577 19.9839 5.30247 20.3872Z"})])],-1))],64))}}),[["__scopeId","data-v-40934683"]]),zi=M(i.defineComponent({__name:"IconFilter",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#filter"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"filter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M8.58216 5.14236C6.22884 5.77558 4.70721 8.02494 5.04745 10.3688C5.61452 14.2627 10.3684 15.8127 13.0714 12.9962C13.6385 12.4103 14.319 11.2194 14.319 10.8225C14.319 10.6902 14.9428 10.6713 20.3771 10.6713H26.4353L26.7094 10.3972C27.0969 10.0097 27.0969 9.44261 26.7094 9.05511L26.4353 8.78103H20.396H14.3662L14.1867 8.23287C13.4589 5.9646 10.8599 4.52803 8.58216 5.14236ZM10.9638 7.21215C13.0525 8.24232 13.0336 11.2194 10.9355 12.2496C10.2172 12.5993 9.20593 12.6276 8.54436 12.2968C6.21939 11.1533 6.43676 7.81702 8.8846 7.01368C9.45166 6.8341 10.3495 6.91916 10.9638 7.21215Z"}),i.createElementVNode("path",{d:"M21.5953 17.6266C21.1133 17.7211 20.2155 18.0519 19.8752 18.2599C18.9868 18.7986 18.0322 20.0083 17.8054 20.8778L17.6826 21.3504H12.3616C6.66257 21.3504 6.63422 21.3504 6.37904 21.8135C6.20892 22.1443 6.26562 22.6452 6.51135 22.9287L6.73818 23.1933L12.1915 23.2406L17.6448 23.2878L17.8621 23.8738C18.4292 25.4427 19.7334 26.6052 21.2929 26.936C22.1057 27.1061 23.3154 27.0021 24.062 26.6997C25.3379 26.1799 26.4059 25.0174 26.8029 23.7037C26.9635 23.165 27.0013 22.8625 26.9635 22.0781C26.9352 21.1991 26.8974 21.0479 26.5855 20.3864C25.8105 18.7513 24.2794 17.7117 22.5499 17.6172C22.1529 17.5983 21.7276 17.6077 21.5953 17.6266ZM23.5517 19.8004C24.081 20.0556 24.5913 20.5754 24.8748 21.1519C24.9977 21.4071 25.045 21.7095 25.045 22.3427C25.045 23.1555 25.0261 23.2311 24.7236 23.7415C23.5611 25.6412 20.8014 25.5656 19.7902 23.5997C19.5066 23.0421 19.4405 22.0119 19.6484 21.3787C20.1682 19.8004 22.0206 19.0537 23.5517 19.8004Z"})])],-1))],64))}}),[["__scopeId","data-v-496ff188"]]),qs=M(i.defineComponent({__name:"IconArrowLeft",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-left",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[i.createElementVNode("path",{d:"M13.4323 2.0816C13.3788 2.0909 13.2951 2.12113 13.2462 2.14904C13.1997 2.17462 11.5439 3.85601 9.56715 5.8816C6.70668 8.81648 5.96017 9.59322 5.90436 9.69787C5.84622 9.8095 5.83691 9.85601 5.83691 9.99787C5.83691 10.1397 5.84622 10.1886 5.90436 10.2979C6.00436 10.4886 13.102 17.7746 13.2764 17.8653C13.3695 17.9142 13.423 17.9258 13.5555 17.9258C13.916 17.9235 14.1788 17.6583 14.1788 17.2932C14.1788 17.0374 14.1392 16.9769 13.623 16.4467C13.3695 16.1862 11.8555 14.6328 10.2555 12.9909C8.65552 11.349 7.35087 9.99787 7.35552 9.9909C7.36017 9.9816 8.86715 8.43276 10.7044 6.54904C12.5416 4.66532 14.0671 3.08392 14.0951 3.03508C14.2392 2.79555 14.1951 2.45834 13.9927 2.25834C13.8462 2.1095 13.6323 2.04206 13.4323 2.0816Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-11a9207f"]]),Us=M(i.defineComponent({__name:"IconEdit",props:{size:{type:String,default:""},margin:{type:String,default:"0 15px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#edit"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M21.993 4.16087C21.6831 4.26049 21.2404 4.48185 20.9969 4.64787C20.1778 5.22342 4.60489 20.9402 4.39459 21.4051C4.11789 22.0138 3 25.8434 3 26.1865C3 26.5961 3.30991 27.1938 3.65302 27.4373C4.2507 27.8689 4.58275 27.8468 6.88493 27.1716C8.06923 26.8174 9.23138 26.4411 9.47488 26.3194C10.0062 26.0537 25.4795 10.6468 26.0772 9.79458C26.8519 8.67669 26.9626 7.32637 26.3871 6.10887C25.6234 4.48185 23.6754 3.61853 21.993 4.16087ZM24.0406 6.25276C24.7379 6.70655 25.0035 7.69162 24.6272 8.44426C24.4501 8.78737 9.331 24.0393 8.73332 24.471C8.48982 24.6481 5.2247 25.6995 5.13616 25.6331C5.11402 25.611 5.42393 24.5042 5.82239 23.1871L6.12123 22.1909L14.1125 14.1886C22.5243 5.76576 22.4911 5.79896 23.3101 5.94285C23.4983 5.97605 23.8192 6.11994 24.0406 6.25276Z",fill:"currentColor"}),i.createElementVNode("path",{d:"M15.098 25.9216C14.5446 26.1872 14.4118 27.1169 14.8656 27.5265C15.0759 27.7146 15.4743 27.7257 21.1302 27.7589C25.325 27.781 27.273 27.7478 27.4722 27.6703C28.0367 27.4268 28.1806 26.6521 27.7489 26.154L27.4833 25.8441L21.4069 25.822C17.2674 25.8109 15.264 25.833 15.098 25.9216Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-74cd505c"]]),Ws=M(i.defineComponent({__name:"IconEmail",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#email"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"email",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V5.913C2.02243 5.39779 2.24301 4.91116 2.61568 4.5547C2.98835 4.19824 3.4843 3.99951 4 4H20C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20ZM4 7.868V18H20V7.868L12 13.2L4 7.868ZM4.8 6L12 10.8L19.2 6H4.8Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-b89c9521"]]),Gs=M(i.defineComponent({__name:"IconMove",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#icon-move"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"icon-move",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22"},[i.createElementVNode("path",{d:"M8.91736 3.08529L6.83471 5.17059H8.0843H9.33058V7.25588V9.34117H7.24793H5.16529L5.15868 8.09993L5.14876 6.85868L3.07273 8.93404L1 11.0127L3.08264 13.098L5.16529 15.1833V13.9321V12.6843H7.24793H9.33058V14.7696V16.8548H7.89256C7.10248 16.8548 6.45455 16.8648 6.45785 16.878C6.45785 16.8946 6.60992 17.0402 6.79504 17.2057C7.16529 17.5367 8.90744 19.1189 9.38017 19.5525C10.7058 20.7639 10.9967 21.0188 11.0331 20.999C11.0562 20.9857 12.0876 20.0523 13.3273 18.9236L15.5785 16.8714L14.124 16.8615L12.6694 16.8548V14.7696V12.6843H14.7521H16.8347V13.9255C16.8347 14.6074 16.8446 15.1668 16.8612 15.1668C16.8975 15.1668 21 11.0491 21 11.0127C21 10.9763 16.8975 6.85868 16.8612 6.85868C16.8446 6.85868 16.8347 7.41807 16.8347 8.09993V9.34117H14.7521H12.6694V7.25588V5.17059H13.9091C14.5901 5.17059 15.1488 5.16066 15.1488 5.14411C15.1488 5.12094 11.043 1 11.0165 1C11.0066 1 10.0612 1.93673 8.91736 3.08529ZM12.081 3.24086C12.6595 3.82011 13.1322 4.30337 13.1322 4.31661C13.1322 4.33316 12.8413 4.34309 12.4876 4.34309H11.843V7.25588V10.1687H14.7686H17.6942V9.53646C17.6909 9.18891 17.6975 8.89763 17.7041 8.89101C17.7074 8.88439 18.1934 9.36103 18.7785 9.9469L19.843 11.0127L18.7686 12.0885L17.6942 13.1642V12.9325C17.6909 12.8034 17.6876 12.5155 17.6843 12.2871L17.6777 11.8733L14.762 11.8634L11.843 11.8568V14.7696V17.6823L12.6331 17.689L13.4264 17.6989L12.2165 18.7978L11.0066 19.9L10.7223 19.6419C10.5669 19.5028 10.4314 19.3804 10.4215 19.3704C10.405 19.3539 9.92893 18.917 9.28099 18.3311C9.09917 18.1656 8.86777 17.9538 8.7686 17.8578L8.58678 17.6823H9.37355H10.157V14.7696V11.8568H7.24793H4.33884L4.33223 12.5022L4.32231 13.1477L3.25455 12.0785L2.19008 11.0127L3.25455 9.94359L4.32231 8.87446L4.33223 9.52322L4.33884 10.1687H7.24793H10.157V7.25588V4.34309L9.5124 4.33647L8.86446 4.32654L9.93223 3.25741C10.5174 2.67154 11.0066 2.1916 11.0165 2.1916C11.0264 2.1916 11.5058 2.66492 12.081 3.24086Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-47aba5d0"]]),js=M(i.defineComponent({__name:"IconPhone",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#phone"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"phone",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M19.4998 21.75H19.3723C4.63482 20.9025 2.54232 8.4675 2.24982 4.6725C2.22625 4.37744 2.26114 4.08062 2.35248 3.79906C2.44382 3.5175 2.58981 3.25673 2.78211 3.03169C2.9744 2.80665 3.20921 2.62177 3.47308 2.48763C3.73695 2.35349 4.02469 2.27274 4.31982 2.25H8.45232C8.75274 2.24971 9.04632 2.33963 9.29504 2.50812C9.54377 2.67661 9.73617 2.9159 9.84732 3.195L10.9873 6C11.0971 6.27266 11.1243 6.57156 11.0657 6.85957C11.007 7.14758 10.865 7.412 10.6573 7.62L9.05982 9.2325C9.30936 10.6506 9.98846 11.9578 11.0052 12.9772C12.022 13.9967 13.3274 14.6792 14.7448 14.9325L16.3723 13.32C16.5834 13.1146 16.8504 12.9759 17.1398 12.9213C17.4292 12.8666 17.7283 12.8983 17.9998 13.0125L20.8273 14.145C21.1022 14.2597 21.3367 14.4536 21.501 14.702C21.6653 14.9504 21.7519 15.2422 21.7498 15.54V19.5C21.7498 20.0967 21.5128 20.669 21.0908 21.091C20.6689 21.5129 20.0966 21.75 19.4998 21.75ZM4.49982 3.75C4.30091 3.75 4.11014 3.82902 3.96949 3.96967C3.82884 4.11032 3.74982 4.30109 3.74982 4.5V4.56C4.09482 9 6.30732 19.5 19.4548 20.25C19.5534 20.2561 19.6521 20.2427 19.7454 20.2105C19.8388 20.1783 19.9248 20.1281 19.9987 20.0626C20.0726 19.9971 20.1328 19.9176 20.1759 19.8288C20.219 19.74 20.2441 19.6436 20.2498 19.545V15.54L17.4223 14.4075L15.2698 16.545L14.9098 16.5C8.38482 15.6825 7.49982 9.1575 7.49982 9.09L7.45482 8.73L9.58482 6.5775L8.45982 3.75H4.49982Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-cb2db6a7"]]),Di=M(i.defineComponent({__name:"IconSearch",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#search"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M11 19C12.775 18.9996 14.4988 18.4054 15.897 17.312L20.293 21.708L21.707 20.294L17.311 15.898C18.405 14.4997 18.9996 12.7754 19 11C19 6.589 15.411 3 11 3C6.589 3 3 6.589 3 11C3 15.411 6.589 19 11 19ZM11 5C14.309 5 17 7.691 17 11C17 14.309 14.309 17 11 17C7.691 17 5 14.309 5 11C5 7.691 7.691 5 11 5Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-1b900a88"]]),Li=M(i.defineComponent({__name:"ArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M656.733 149.806C659.446 147.019 662.69 144.804 666.274 143.292C669.857 141.779 673.707 141 677.597 141C681.486 141 685.337 141.779 688.92 143.292C692.503 144.804 695.748 147.019 698.461 149.806C704.024 155.518 707.138 163.176 707.138 171.15C707.138 179.123 704.024 186.782 698.461 192.494L386.589 512.366L698.461 832.302C701.269 835.176 703.483 838.575 704.976 842.305C706.47 846.035 707.215 850.022 707.167 854.04C707.119 858.057 706.281 862.026 704.699 865.72C703.118 869.413 700.824 872.759 697.949 875.566C695.211 878.242 691.972 880.351 688.417 881.774C684.863 883.197 681.063 883.904 677.235 883.857C673.407 883.809 669.625 883.007 666.107 881.497C662.589 879.986 659.404 877.797 656.733 875.054L325.085 534.702C319.26 528.726 316 520.711 316 512.366C316 504.021 319.26 496.006 325.085 490.03L656.733 149.806Z"})])],-1))],64))}}),[["__scopeId","data-v-31d7e282"]]),Oi=M(i.defineComponent({__name:"ArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M366.436 875.054C363.723 877.84 360.479 880.055 356.895 881.568C353.312 883.08 349.462 883.859 345.572 883.859C341.683 883.859 337.832 883.08 334.249 881.568C330.666 880.055 327.421 877.84 324.708 875.054C319.145 869.342 316.031 861.683 316.031 853.71C316.031 845.736 319.145 838.077 324.708 832.366L636.58 512.494L324.708 192.558C321.9 189.684 319.686 186.284 318.193 182.555C316.699 178.825 315.954 174.837 316.002 170.82C316.049 166.802 316.888 162.833 318.47 159.14C320.051 155.446 322.345 152.1 325.22 149.294C327.958 146.618 331.197 144.508 334.752 143.086C338.306 141.663 342.106 140.955 345.934 141.003C349.762 141.05 353.544 141.852 357.062 143.363C360.58 144.873 363.765 147.063 366.436 149.806L698.084 490.158C703.909 496.134 707.169 504.148 707.169 512.494C707.169 520.839 703.909 528.854 698.084 534.83L366.436 875.054Z"})])],-1))],64))}}),[["__scopeId","data-v-ac346343"]]),_i=M(i.defineComponent({__name:"DoubleArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"double-arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M529.408 149.376C532.121 146.589 535.365 144.374 538.949 142.862C542.532 141.35 546.382 140.57 550.272 140.57C554.161 140.57 558.011 141.35 561.595 142.862C565.178 144.374 568.422 146.589 571.136 149.376C576.699 155.088 579.813 162.746 579.813 170.72C579.813 178.694 576.699 186.352 571.136 192.064L259.264 511.936L571.136 831.872C573.943 834.746 576.157 838.145 577.651 841.875C579.145 845.605 579.889 849.593 579.842 853.61C579.794 857.628 578.956 861.597 577.374 865.29C575.792 868.984 573.499 872.329 570.624 875.136C567.886 877.812 564.647 879.922 561.092 881.344C557.538 882.767 553.738 883.475 549.91 883.427C546.081 883.38 542.3 882.578 538.782 881.067C535.264 879.556 532.079 877.367 529.408 874.624L197.76 534.272C191.935 528.296 188.675 520.281 188.675 511.936C188.675 503.591 191.935 495.576 197.76 489.6L529.408 149.376ZM785.408 149.376C788.121 146.589 791.365 144.374 794.949 142.862C798.532 141.35 802.382 140.57 806.272 140.57C810.161 140.57 814.011 141.35 817.595 142.862C821.178 144.374 824.422 146.589 827.136 149.376C832.699 155.088 835.813 162.746 835.813 170.72C835.813 178.694 832.699 186.352 827.136 192.064L515.264 511.936L827.136 831.872C829.943 834.746 832.157 838.145 833.651 841.875C835.145 845.605 835.889 849.593 835.842 853.61C835.794 857.628 834.956 861.597 833.374 865.29C831.792 868.984 829.499 872.329 826.624 875.136C823.886 877.812 820.647 879.922 817.092 881.344C813.538 882.767 809.738 883.475 805.91 883.427C802.081 883.38 798.3 882.578 794.782 881.067C791.264 879.556 788.079 877.367 785.408 874.624L453.76 534.272C447.935 528.296 444.675 520.281 444.675 511.936C444.675 503.591 447.935 495.576 453.76 489.6L785.408 149.376Z"})])],-1))],64))}}),[["__scopeId","data-v-646afc45"]]),Hi=M(i.defineComponent({__name:"DoubleArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"double-arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M495.111 874.624C492.397 877.411 489.153 879.626 485.57 881.138C481.987 882.65 478.136 883.43 474.247 883.43C470.357 883.43 466.507 882.65 462.924 881.138C459.34 879.626 456.096 877.411 453.383 874.624C447.819 868.912 444.706 861.254 444.706 853.28C444.706 845.306 447.819 837.648 453.383 831.936L765.255 512.064L453.383 192.128C450.575 189.254 448.361 185.855 446.867 182.125C445.374 178.395 444.629 174.407 444.677 170.39C444.724 166.372 445.563 162.403 447.145 158.71C448.726 155.016 451.02 151.671 453.895 148.864C456.633 146.188 459.872 144.078 463.426 142.656C466.981 141.233 470.781 140.525 474.609 140.573C478.437 140.62 482.219 141.422 485.737 142.933C489.254 144.444 492.44 146.633 495.111 149.376L826.759 489.728C832.584 495.704 835.844 503.719 835.844 512.064C835.844 520.409 832.584 528.424 826.759 534.4L495.111 874.624ZM239.111 874.624C236.397 877.411 233.153 879.626 229.57 881.138C225.987 882.65 222.136 883.43 218.247 883.43C214.357 883.43 210.507 882.65 206.924 881.138C203.34 879.626 200.096 877.411 197.383 874.624C191.819 868.912 188.706 861.254 188.706 853.28C188.706 845.306 191.819 837.648 197.383 831.936L509.255 512.064L197.383 192.128C194.575 189.254 192.361 185.855 190.867 182.125C189.374 178.395 188.629 174.407 188.677 170.39C188.724 166.372 189.563 162.403 191.145 158.71C192.726 155.016 195.02 151.671 197.895 148.864C200.633 146.188 203.872 144.078 207.426 142.656C210.981 141.233 214.781 140.525 218.609 140.573C222.437 140.62 226.219 141.422 229.737 142.933C233.254 144.444 236.44 146.633 239.111 149.376L570.759 489.728C576.584 495.704 579.844 503.719 579.844 512.064C579.844 520.409 576.584 528.424 570.759 534.4L239.111 874.624Z"})])],-1))],64))}}),[["__scopeId","data-v-ef44f40e"]]),qi=M(i.defineComponent({__name:"EllipsisSvg",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)]),38)),o[3]||(o[3]=i.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-1c5f4e97><symbol id="ellipsis" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" data-v-1c5f4e97><path d="M65 135C73.2843 135 80 128.284 80 120C80 111.716 73.2843 105 65 105C56.7157 105 50 111.716 50 120C50 128.284 56.7157 135 65 135Z" data-v-1c5f4e97></path><path d="M120 135C128.284 135 135 128.284 135 120C135 111.716 128.284 105 120 105C111.716 105 105 111.716 105 120C105 128.284 111.716 135 120 135Z" data-v-1c5f4e97></path><path d="M175 135C183.284 135 190 128.284 190 120C190 111.716 183.284 105 175 105C166.716 105 160 111.716 160 120C160 128.284 166.716 135 175 135Z" data-v-1c5f4e97></path></symbol></svg>',1))],64))}}),[["__scopeId","data-v-1c5f4e97"]]);function Zs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zs(Object(n),!0).forEach(function(o){Be(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Be(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sf(t,e){if(t==null)return{};var n,o,r=function(a,c){if(a==null)return{};var d,u,h={},f=Object.keys(a);for(u=0;u<f.length;u++)d=f[u],c.indexOf(d)>=0||(h[d]=a[d]);return h}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)n=s[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ct(t){return function(e){if(Array.isArray(e))return Ui(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return Ui(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Ui(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ui(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}var Ys,Cf,$n,te=(Ys=function(t){/*!
18
+ */function No(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}var Ro;(function(t){t.pop="pop",t.push="push"})(Ro||(Ro={}));var Ao;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Ao||(Ao={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Vo;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Vo||(Vo={}));const lc=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Symbol(process.env.NODE_ENV!=="production"?"router":""),Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function cc(t,e,n){const o=()=>{t[e].delete(n)};i.onUnmounted(o),i.onDeactivated(o),i.onActivated(()=>{t[e].add(n)}),t[e].add(n)}function dc(t){if(process.env.NODE_ENV!=="production"&&!i.getCurrentInstance()){No("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");return}const e=i.inject(lc,{}).value;if(!e){process.env.NODE_ENV!=="production"&&No("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");return}cc(e,"leaveGuards",t)}function Po(t,e){const n=[],o=e||Pe.Asc,r=o===Pe.Asc?Pe.Desc:Pe.Asc;return Object.values(t).forEach(s=>{n.push(s(o)),n.push(s(r))}),n.length>0&&!n.some(s=>s.default)&&(n[0].default=!0),e&&n.forEach(s=>{s.default&&(s.default=s.order===e)}),n}class uc{constructor(){l(this,"list",[]);l(this,"defaultSortModel");l(this,"changeFlag",!1)}Set(e){this.Reset(),e&&(Array.isArray(e)?this.list=e:this.list=Po(e),this.SetDefault())}SetDefault(){this.defaultSortModel=this.list.find(e=>e.default)??this.list[0],this.changeFlag=!this.changeFlag}Get(){return this.list}GetDefault(){return this.defaultSortModel}Reset(){this.list=[],this.defaultSortModel=void 0}}const Fe=new uc;var Se=(t=>(t.Login="login",t.Register="register",t.Restore="restore",t.Refresh="refresh",t))(Se||{});class Fo extends Je{constructor(){super(...arguments);l(this,"id","auth-button");l(this,"status",Se.Login);l(this,"submit",!1)}GetStatus(){return this.status}}let Zn=class extends Fo{constructor(){super(...arguments);l(this,"id","auth-button-login");l(this,"text","Войти");l(this,"isSubmit",!1);l(this,"disabled",!1)}};class Yn extends Fo{constructor(){super(...arguments);l(this,"id","auth-button-register");l(this,"text","Зарегистрироваться");l(this,"isSubmit",!1);l(this,"disabled",!1)}}class hc{constructor(){l(this,"value","");l(this,"label","");l(this,"placeholder","");l(this,"validator")}Validate(){return this.validator?(this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}class rn extends hc{constructor(){super(...arguments);l(this,"method");l(this,"id","field-auth");l(this,"name","")}}var ut=(t=>(t.Login="login",t.Email="email",t.Phone="phone",t.VK="vk",t.ESIA="esia",t))(ut||{});const fc=/\S+@\S+\.\S+/;class To{constructor(){l(this,"errors",[])}validate(e){return(e===""||!e)&&this.errors.push("Введите email"),fc.test(e)||this.errors.push("Некорректный email"),this.errors}}class sn extends rn{constructor(){super(...arguments);l(this,"id","field-auth-email");l(this,"label","Email");l(this,"name","email");l(this,"placeholder","Введите email");l(this,"validator",new To);l(this,"method",ut.Email)}}class mc{constructor(){l(this,"errors",[]);l(this,"length",6)}validate(e){return e===""||!e?(this.errors.push("Введите пароль"),this.errors):(e.length<this.length&&this.errors.push("Пароль недостаточной длины"),this.errors)}}class an extends rn{constructor(){super(...arguments);l(this,"label","Пароль");l(this,"validator",new mc);l(this,"name","password");l(this,"placeholder","Введите пароль");l(this,"id","field-auth-password")}}class zo extends rn{constructor(){super(...arguments);l(this,"label","Повторите пароль");l(this,"id","field-auth-password-repeat")}}const Do={[Se.Login]:{methods:[ut.Email],title:"Вход в систему",action:"login",buttons:[new Zn,new Yn],fields:[new sn,new an],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[Se.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new Yn,new Zn],fields:[new sn,new an,new zo],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[Se.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[],fields:[new sn]},[Se.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[],fields:[new an]}};let pc=class{constructor(){l(this,"settings",Do);l(this,"status",Se.Login);l(this,"selectedMethod",ut.Email)}async Block(e){await e()}GetValues(){const e=this.GetFields(),n=new Map;return e.forEach(o=>{o.value&&n.set(o.name,o.value)}),n}Validate(){return[]}GetFields(){return this.GetCurSet().fields.filter(e=>!e.method||e.method===this.selectedMethod)}GetMethods(){return this.GetCurSet().methods}Status(){return this.status}GetCurSet(){return this.settings[this.status]}IsLogin(){return this.status===Se.Login}IsRegister(){return this.status===Se.Register}IsRestore(){return this.status===Se.Restore}IsRefresh(){return this.status===Se.Refresh}SetStatus(e){this.status=e}GetTitle(){return this.GetCurSet().title}GetButtons(){const e=this.GetCurSet().buttons;return e.forEach(n=>{n.submit=!1}),e.length>0&&(e[0].submit=!0),e}GetSuccessMessage(){return this.GetCurSet().successMessage}GetErrorMessage(){return this.GetCurSet().errorMessage}GetAction(){return this.GetCurSet().action}ResetFields(){this.GetCurSet().fields.forEach(e=>e.Reset())}Reset(){this.status=Se.Login}};class gc{constructor(){l(this,"visible",!1);l(this,"closable",!1)}IsClosable(){return this.closable}IsVisible(){return this.visible}Close(){this.visible=!1}Open(e){e&&(this.closable=!0),this.visible=!0}}class $e{static Get(e){const n=localStorage.getItem(e);if(n)return JSON.parse(n)}static Set(e,n){n&&localStorage.setItem(e,JSON.stringify(n))}static Remove(e){localStorage.removeItem(e)}}var ve=(t=>(t.User="user",t.AccessToken="accessToken",t.RefreshToken="refreshToken",t))(ve||{});class yc{set(e){this.setAccessToken(e.accessToken),this.setRefreshToken(e.refreshToken)}getAccessToken(){return $e.Get(ve.AccessToken)}getRefreshToken(){return $e.Get(ve.RefreshToken)}setAccessToken(e){$e.Set(ve.AccessToken,e)}setRefreshToken(e){$e.Set(ve.RefreshToken,e)}reset(){$e.Remove(ve.AccessToken),$e.Remove(ve.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class wc{constructor(){l(this,"user");l(this,"userConstructor")}AssignTo(e){e.user=this.get()}setUserConstructor(e){this.userConstructor=e}get(){if(this.userConstructor)return this.user=new this.userConstructor($e.Get(ve.User)),this.user}set(e){this.userConstructor&&(this.user=new this.userConstructor(e),$e.Set(ve.User,this.user))}reset(){this.user=void 0,$e.Remove(ve.User)}actualize(){const e=$e.Get(ve.User);e&&this.set(e)}}class bc{constructor(){l(this,"isAuth",!1);l(this,"user",new wc);l(this,"tokens",new yc);l(this,"preventLogout",!1)}DeprecateLogout(){this.preventLogout=!0}AllowLogout(){this.preventLogout=!1}get IsAuth(){return this.isAuth}get User(){return this.user.get()}SetUserConstructor(e){this.user.setUserConstructor(e)}SetState(e){this.user.set(e.user),this.tokens.set(e.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){N.Notification.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.user.actualize(),this.tokens.actualize(),this.user.get()&&this.tokens.getAccessToken()&&this.tokens.getRefreshToken()){this.isAuth=!0;return}this.Logout()}}class Lo{constructor(){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new X)}}class xt{constructor(e){l(this,"id");l(this,"passportId");l(this,"fileInfoId");l(this,"fileInfo",new X);l(this,"order",0);v.BuildClass(this,e)}static Create(e){const n=new xt;return n.id=v.CreateUUID(),n.passportId=e,n}}var Sc=Object.defineProperty,Cc=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Sc(e,n,r),r};class Jn{constructor(e){l(this,"id");l(this,"num","");l(this,"seria","");l(this,"division","");l(this,"divisionCode","");l(this,"citzenship","");l(this,"date",new Date);l(this,"address","");l(this,"passportScans",[]);v.BuildClass(this,e)}}Cc([v.GetClassConstructor(xt)],Jn.prototype,"passportScans");class Oo{constructor(){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new X)}}let kc=class ul{constructor(e){l(this,"name","");v.BuildClass(this,e)}static Set(){}static Get(e,n){const o=sessionStorage.getItem(e);if(o){const r=JSON.parse(o),s=new Date,a=new Date(r.time),c=s.getTime()-a.getTime();return Math.round(c/6e4)>(n||10)?null:r.data}else return null}static async TryGet(e,n,o){let r;return r=ul.Get(e,o),r||(r=await n()),r}};function _o(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ec}=Object.prototype,{getPrototypeOf:Xn}=Object,ln=(t=>e=>{const n=Ec.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xe=t=>(t=t.toLowerCase(),e=>ln(e)===t),cn=t=>e=>typeof e===t,{isArray:ht}=Array,Nt=cn("undefined");function vc(t){return t!==null&&!Nt(t)&&t.constructor!==null&&!Nt(t.constructor)&&Ce(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ho=xe("ArrayBuffer");function Mc(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ho(t.buffer),e}const Bc=cn("string"),Ce=cn("function"),qo=cn("number"),dn=t=>t!==null&&typeof t=="object",Ic=t=>t===!0||t===!1,un=t=>{if(ln(t)!=="object")return!1;const e=Xn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},$c=xe("Date"),xc=xe("File"),Nc=xe("Blob"),Rc=xe("FileList"),Ac=t=>dn(t)&&Ce(t.pipe),Vc=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ce(t.append)&&((e=ln(t))==="formdata"||e==="object"&&Ce(t.toString)&&t.toString()==="[object FormData]"))},Pc=xe("URLSearchParams"),[Fc,Tc,zc,Dc]=["ReadableStream","Request","Response","Headers"].map(xe),Lc=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Rt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let o,r;if(typeof t!="object"&&(t=[t]),ht(t))for(o=0,r=t.length;o<r;o++)e.call(null,t[o],o,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let c;for(o=0;o<a;o++)c=s[o],e.call(null,t[c],c,t)}}function Uo(t,e){e=e.toLowerCase();const n=Object.keys(t);let o=n.length,r;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const Xe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wo=t=>!Nt(t)&&t!==Xe;function Qn(){const{caseless:t}=Wo(this)&&this||{},e={},n=(o,r)=>{const s=t&&Uo(e,r)||r;un(e[s])&&un(o)?e[s]=Qn(e[s],o):un(o)?e[s]=Qn({},o):ht(o)?e[s]=o.slice():e[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Rt(arguments[o],n);return e}const Oc=(t,e,n,{allOwnKeys:o}={})=>(Rt(e,(r,s)=>{n&&Ce(r)?t[s]=_o(r,n):t[s]=r},{allOwnKeys:o}),t),_c=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Hc=(t,e,n,o)=>{t.prototype=Object.create(e.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},qc=(t,e,n,o)=>{let r,s,a;const c={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),s=r.length;s-- >0;)a=r[s],(!o||o(a,t,e))&&!c[a]&&(e[a]=t[a],c[a]=!0);t=n!==!1&&Xn(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Uc=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const o=t.indexOf(e,n);return o!==-1&&o===n},Wc=t=>{if(!t)return null;if(ht(t))return t;let e=t.length;if(!qo(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Gc=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Xn(Uint8Array)),jc=(t,e)=>{const o=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=o.next())&&!r.done;){const s=r.value;e.call(t,s[0],s[1])}},Zc=(t,e)=>{let n;const o=[];for(;(n=t.exec(e))!==null;)o.push(n);return o},Yc=xe("HTMLFormElement"),Jc=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),Go=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Xc=xe("RegExp"),jo=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),o={};Rt(n,(r,s)=>{let a;(a=e(r,s,t))!==!1&&(o[s]=a||r)}),Object.defineProperties(t,o)},Qc=t=>{jo(t,(e,n)=>{if(Ce(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=t[n];if(Ce(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Kc=(t,e)=>{const n={},o=r=>{r.forEach(s=>{n[s]=!0})};return ht(t)?o(t):o(String(t).split(e)),n},ed=()=>{},td=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Kn="abcdefghijklmnopqrstuvwxyz",Zo="0123456789",Yo={DIGIT:Zo,ALPHA:Kn,ALPHA_DIGIT:Kn+Kn.toUpperCase()+Zo},nd=(t=16,e=Yo.ALPHA_DIGIT)=>{let n="";const{length:o}=e;for(;t--;)n+=e[Math.random()*o|0];return n};function id(t){return!!(t&&Ce(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const od=t=>{const e=new Array(10),n=(o,r)=>{if(dn(o)){if(e.indexOf(o)>=0)return;if(!("toJSON"in o)){e[r]=o;const s=ht(o)?[]:{};return Rt(o,(a,c)=>{const d=n(a,r+1);!Nt(d)&&(s[c]=d)}),e[r]=void 0,s}}return o};return n(t,0)},rd=xe("AsyncFunction"),sd=t=>t&&(dn(t)||Ce(t))&&Ce(t.then)&&Ce(t.catch),Jo=((t,e)=>t?setImmediate:e?((n,o)=>(Xe.addEventListener("message",({source:r,data:s})=>{r===Xe&&s===n&&o.length&&o.shift()()},!1),r=>{o.push(r),Xe.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(Xe.postMessage)),ad=typeof queueMicrotask<"u"?queueMicrotask.bind(Xe):typeof process<"u"&&process.nextTick||Jo,C={isArray:ht,isArrayBuffer:Ho,isBuffer:vc,isFormData:Vc,isArrayBufferView:Mc,isString:Bc,isNumber:qo,isBoolean:Ic,isObject:dn,isPlainObject:un,isReadableStream:Fc,isRequest:Tc,isResponse:zc,isHeaders:Dc,isUndefined:Nt,isDate:$c,isFile:xc,isBlob:Nc,isRegExp:Xc,isFunction:Ce,isStream:Ac,isURLSearchParams:Pc,isTypedArray:Gc,isFileList:Rc,forEach:Rt,merge:Qn,extend:Oc,trim:Lc,stripBOM:_c,inherits:Hc,toFlatObject:qc,kindOf:ln,kindOfTest:xe,endsWith:Uc,toArray:Wc,forEachEntry:jc,matchAll:Zc,isHTMLForm:Yc,hasOwnProperty:Go,hasOwnProp:Go,reduceDescriptors:jo,freezeMethods:Qc,toObjectSet:Kc,toCamelCase:Jc,noop:ed,toFiniteNumber:td,findKey:Uo,global:Xe,isContextDefined:Wo,ALPHABET:Yo,generateString:nd,isSpecCompliantForm:id,toJSONObject:od,isAsyncFn:rd,isThenable:sd,setImmediate:Jo,asap:ad};function D(t,e,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}C.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:C.toJSONObject(this.config),code:this.code,status:this.status}}});const Xo=D.prototype,Qo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Qo[t]={value:t}}),Object.defineProperties(D,Qo),Object.defineProperty(Xo,"isAxiosError",{value:!0}),D.from=(t,e,n,o,r,s)=>{const a=Object.create(Xo);return C.toFlatObject(t,a,function(d){return d!==Error.prototype},c=>c!=="isAxiosError"),D.call(a,t.message,e,n,o,r),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const ld=null;function ei(t){return C.isPlainObject(t)||C.isArray(t)}function Ko(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function er(t,e,n){return t?t.concat(e).map(function(r,s){return r=Ko(r),!n&&s?"["+r+"]":r}).join(n?".":""):e}function cd(t){return C.isArray(t)&&!t.some(ei)}const dd=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=C.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,b){return!C.isUndefined(b[k])});const o=n.metaTokens,r=n.visitor||h,s=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(e);if(!C.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(C.isDate(g))return g.toISOString();if(!d&&C.isBlob(g))throw new D("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(g)||C.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function h(g,k,b){let I=g;if(g&&!b&&typeof g=="object"){if(C.endsWith(k,"{}"))k=o?k:k.slice(0,-2),g=JSON.stringify(g);else if(C.isArray(g)&&cd(g)||(C.isFileList(g)||C.endsWith(k,"[]"))&&(I=C.toArray(g)))return k=Ko(k),I.forEach(function(O,z){!(C.isUndefined(O)||O===null)&&e.append(a===!0?er([k],z,s):a===null?k:k+"[]",u(O))}),!1}return ei(g)?!0:(e.append(er(b,k,s),u(g)),!1)}const f=[],p=Object.assign(dd,{defaultVisitor:h,convertValue:u,isVisitable:ei});function y(g,k){if(!C.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+k.join("."));f.push(g),C.forEach(g,function(I,L){(!(C.isUndefined(I)||I===null)&&r.call(e,I,C.isString(L)?L.trim():L,k,p))===!0&&y(I,k?k.concat(L):[L])}),f.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return y(t),e}function tr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return e[o]})}function ti(t,e){this._pairs=[],t&&hn(t,this,e)}const nr=ti.prototype;nr.append=function(e,n){this._pairs.push([e,n])},nr.toString=function(e){const n=e?function(o){return e.call(this,o,tr)}:tr;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function ud(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ir(t,e,n){if(!e)return t;const o=n&&n.encode||ud,r=n&&n.serialize;let s;if(r?s=r(e,n):s=C.isURLSearchParams(e)?e.toString():new ti(e,n).toString(o),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class or{constructor(){this.handlers=[]}use(e,n,o){return this.handlers.push({fulfilled:e,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){C.forEach(this.handlers,function(o){o!==null&&e(o)})}}const rr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ti,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ni=typeof window<"u"&&typeof document<"u",ii=typeof navigator=="object"&&navigator||void 0,fd=ni&&(!ii||["ReactNative","NativeScript","NS"].indexOf(ii.product)<0),md=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pd=ni&&window.location.href||"http://localhost",ge={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ni,hasStandardBrowserEnv:fd,hasStandardBrowserWebWorkerEnv:md,navigator:ii,origin:pd},Symbol.toStringTag,{value:"Module"})),...hd};function gd(t,e){return hn(t,new ge.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,s){return ge.isNode&&C.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function yd(t){return C.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function wd(t){const e={},n=Object.keys(t);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],e[s]=t[s];return e}function sr(t){function e(n,o,r,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),d=s>=n.length;return a=!a&&C.isArray(r)?r.length:a,d?(C.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!c):((!r[a]||!C.isObject(r[a]))&&(r[a]=[]),e(n,o,r[a],s)&&C.isArray(r[a])&&(r[a]=wd(r[a])),!c)}if(C.isFormData(t)&&C.isFunction(t.entries)){const n={};return C.forEachEntry(t,(o,r)=>{e(yd(o),r,n,0)}),n}return null}function bd(t,e,n){if(C.isString(t))try{return(e||JSON.parse)(t),C.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(t)}const At={transitional:rr,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,s=C.isObject(e);if(s&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return r?JSON.stringify(sr(e)):e;if(C.isArrayBuffer(e)||C.isBuffer(e)||C.isStream(e)||C.isFile(e)||C.isBlob(e)||C.isReadableStream(e))return e;if(C.isArrayBufferView(e))return e.buffer;if(C.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return gd(e,this.formSerializer).toString();if((c=C.isFileList(e))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return hn(c?{"files[]":e}:e,d&&new d,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),bd(e)):e}],transformResponse:[function(e){const n=this.transitional||At.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(C.isResponse(e)||C.isReadableStream(e))return e;if(e&&C.isString(e)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(c){if(a)throw c.name==="SyntaxError"?D.from(c,D.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],t=>{At.headers[t]={}});const Sd=C.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cd=t=>{const e={};let n,o,r;return t&&t.split(`
19
+ `).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!n||e[n]&&Sd[n])&&(n==="set-cookie"?e[n]?e[n].push(o):e[n]=[o]:e[n]=e[n]?e[n]+", "+o:o)}),e},ar=Symbol("internals");function Vt(t){return t&&String(t).trim().toLowerCase()}function fn(t){return t===!1||t==null?t:C.isArray(t)?t.map(fn):String(t)}function kd(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(t);)e[o[1]]=o[2];return e}const Ed=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function oi(t,e,n,o,r){if(C.isFunction(o))return o.call(this,e,n);if(r&&(e=n),!!C.isString(e)){if(C.isString(o))return e.indexOf(o)!==-1;if(C.isRegExp(o))return o.test(e)}}function vd(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,o)=>n.toUpperCase()+o)}function Md(t,e){const n=C.toCamelCase(" "+e);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+n,{value:function(r,s,a){return this[o].call(this,e,r,s,a)},configurable:!0})})}class ye{constructor(e){e&&this.set(e)}set(e,n,o){const r=this;function s(c,d,u){const h=Vt(d);if(!h)throw new Error("header name must be a non-empty string");const f=C.findKey(r,h);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||d]=fn(c))}const a=(c,d)=>C.forEach(c,(u,h)=>s(u,h,d));if(C.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(C.isString(e)&&(e=e.trim())&&!Ed(e))a(Cd(e),n);else if(C.isHeaders(e))for(const[c,d]of e.entries())s(d,c,o);else e!=null&&s(n,e,o);return this}get(e,n){if(e=Vt(e),e){const o=C.findKey(this,e);if(o){const r=this[o];if(!n)return r;if(n===!0)return kd(r);if(C.isFunction(n))return n.call(this,r,o);if(C.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Vt(e),e){const o=C.findKey(this,e);return!!(o&&this[o]!==void 0&&(!n||oi(this,this[o],o,n)))}return!1}delete(e,n){const o=this;let r=!1;function s(a){if(a=Vt(a),a){const c=C.findKey(o,a);c&&(!n||oi(o,o[c],c,n))&&(delete o[c],r=!0)}}return C.isArray(e)?e.forEach(s):s(e),r}clear(e){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const s=n[o];(!e||oi(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){const n=this,o={};return C.forEach(this,(r,s)=>{const a=C.findKey(o,s);if(a){n[a]=fn(r),delete n[s];return}const c=e?vd(s):String(s).trim();c!==s&&delete n[s],n[c]=fn(r),o[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return C.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=e&&C.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
20
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const o=new this(e);return n.forEach(r=>o.set(r)),o}static accessor(e){const o=(this[ar]=this[ar]={accessors:{}}).accessors,r=this.prototype;function s(a){const c=Vt(a);o[c]||(Md(r,a),o[c]=!0)}return C.isArray(e)?e.forEach(s):s(e),this}}ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),C.reduceDescriptors(ye.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(o){this[n]=o}}}),C.freezeMethods(ye);function ri(t,e){const n=this||At,o=e||n,r=ye.from(o.headers);let s=o.data;return C.forEach(t,function(c){s=c.call(n,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function lr(t){return!!(t&&t.__CANCEL__)}function ft(t,e,n){D.call(this,t??"canceled",D.ERR_CANCELED,e,n),this.name="CanceledError"}C.inherits(ft,D,{__CANCEL__:!0});function cr(t,e,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):e(new D("Request failed with status code "+n.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Bd(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Id(t,e){t=t||10;const n=new Array(t),o=new Array(t);let r=0,s=0,a;return e=e!==void 0?e:1e3,function(d){const u=Date.now(),h=o[s];a||(a=u),n[r]=d,o[r]=u;let f=s,p=0;for(;f!==r;)p+=n[f++],f=f%t;if(r=(r+1)%t,r===s&&(s=(s+1)%t),u-a<e)return;const y=h&&u-h;return y?Math.round(p*1e3/y):void 0}}function $d(t,e){let n=0,o=1e3/e,r,s;const a=(u,h=Date.now())=>{n=h,r=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=o?a(u,h):(r=u,s||(s=setTimeout(()=>{s=null,a(r)},o-f)))},()=>r&&a(r)]}const mn=(t,e,n=3)=>{let o=0;const r=Id(50,250);return $d(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,d=a-o,u=r(d),h=a<=c;o=a;const f={loaded:a,total:c,progress:c?a/c:void 0,bytes:d,rate:u||void 0,estimated:u&&c&&h?(c-a)/u:void 0,event:s,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(f)},n)},dr=(t,e)=>{const n=t!=null;return[o=>e[0]({lengthComputable:n,total:t,loaded:o}),e[1]]},ur=t=>(...e)=>C.asap(()=>t(...e)),xd=ge.hasStandardBrowserEnv?function(){const e=ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent),n=document.createElement("a");let o;function r(s){let a=s;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(a){const c=C.isString(a)?r(a):a;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}(),Nd=ge.hasStandardBrowserEnv?{write(t,e,n,o,r,s){const a=[t+"="+encodeURIComponent(e)];C.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),C.isString(o)&&a.push("path="+o),C.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Rd(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ad(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function hr(t,e){return t&&!Rd(e)?Ad(t,e):e}const fr=t=>t instanceof ye?{...t}:t;function Qe(t,e){e=e||{};const n={};function o(u,h,f){return C.isPlainObject(u)&&C.isPlainObject(h)?C.merge.call({caseless:f},u,h):C.isPlainObject(h)?C.merge({},h):C.isArray(h)?h.slice():h}function r(u,h,f){if(C.isUndefined(h)){if(!C.isUndefined(u))return o(void 0,u,f)}else return o(u,h,f)}function s(u,h){if(!C.isUndefined(h))return o(void 0,h)}function a(u,h){if(C.isUndefined(h)){if(!C.isUndefined(u))return o(void 0,u)}else return o(void 0,h)}function c(u,h,f){if(f in e)return o(u,h);if(f in t)return o(void 0,u)}const d={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(u,h)=>r(fr(u),fr(h),!0)};return C.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=d[h]||r,p=f(t[h],e[h],h);C.isUndefined(p)&&f!==c||(n[h]=p)}),n}const mr=t=>{const e=Qe({},t);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:c}=e;e.headers=a=ye.from(a),e.url=ir(hr(e.baseURL,e.url),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let d;if(C.isFormData(n)){if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((d=a.getContentType())!==!1){const[u,...h]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...h].join("; "))}}if(ge.hasStandardBrowserEnv&&(o&&C.isFunction(o)&&(o=o(e)),o||o!==!1&&xd(e.url))){const u=r&&s&&Nd.read(s);u&&a.set(r,u)}return e},Vd=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,o){const r=mr(t);let s=r.data;const a=ye.from(r.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:u}=r,h,f,p,y,g;function k(){y&&y(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(h),r.signal&&r.signal.removeEventListener("abort",h)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout;function I(){if(!b)return;const O=ye.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),F={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:O,config:t,request:b};cr(function(Ie){n(Ie),k()},function(Ie){o(Ie),k()},F),b=null}"onloadend"in b?b.onloadend=I:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(I)},b.onabort=function(){b&&(o(new D("Request aborted",D.ECONNABORTED,t,b)),b=null)},b.onerror=function(){o(new D("Network Error",D.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let z=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const F=r.transitional||rr;r.timeoutErrorMessage&&(z=r.timeoutErrorMessage),o(new D(z,F.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,t,b)),b=null},s===void 0&&a.setContentType(null),"setRequestHeader"in b&&C.forEach(a.toJSON(),function(z,F){b.setRequestHeader(F,z)}),C.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),c&&c!=="json"&&(b.responseType=r.responseType),u&&([p,g]=mn(u,!0),b.addEventListener("progress",p)),d&&b.upload&&([f,y]=mn(d),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",y)),(r.cancelToken||r.signal)&&(h=O=>{b&&(o(!O||O.type?new ft(null,t,b):O),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(h),r.signal&&(r.signal.aborted?h():r.signal.addEventListener("abort",h)));const L=Bd(r.url);if(L&&ge.protocols.indexOf(L)===-1){o(new D("Unsupported protocol "+L+":",D.ERR_BAD_REQUEST,t));return}b.send(s||null)})},Pd=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let o=new AbortController,r;const s=function(u){if(!r){r=!0,c();const h=u instanceof Error?u:this.reason;o.abort(h instanceof D?h:new ft(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,s(new D(`timeout ${e} of ms exceeded`,D.ETIMEDOUT))},e);const c=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),t=null)};t.forEach(u=>u.addEventListener("abort",s));const{signal:d}=o;return d.unsubscribe=()=>C.asap(c),d}},Fd=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let o=0,r;for(;o<n;)r=o+e,yield t.slice(o,r),o=r},Td=async function*(t,e){for await(const n of zd(t))yield*Fd(n,e)},zd=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:o}=await e.read();if(n)break;yield o}}finally{await e.cancel()}},pr=(t,e,n,o)=>{const r=Td(t,e);let s=0,a,c=d=>{a||(a=!0,o&&o(d))};return new ReadableStream({async pull(d){try{const{done:u,value:h}=await r.next();if(u){c(),d.close();return}let f=h.byteLength;if(n){let p=s+=f;n(p)}d.enqueue(new Uint8Array(h))}catch(u){throw c(u),u}},cancel(d){return c(d),r.return()}},{highWaterMark:2})},pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",gr=pn&&typeof ReadableStream=="function",Dd=pn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),yr=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Ld=gr&&yr(()=>{let t=!1;const e=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),wr=64*1024,si=gr&&yr(()=>C.isReadableStream(new Response("").body)),gn={stream:si&&(t=>t.body)};pn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!gn[e]&&(gn[e]=C.isFunction(t[e])?n=>n[e]():(n,o)=>{throw new D(`Response type '${e}' is not supported`,D.ERR_NOT_SUPPORT,o)})})})(new Response);const Od=async t=>{if(t==null)return 0;if(C.isBlob(t))return t.size;if(C.isSpecCompliantForm(t))return(await new Request(ge.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(C.isArrayBufferView(t)||C.isArrayBuffer(t))return t.byteLength;if(C.isURLSearchParams(t)&&(t=t+""),C.isString(t))return(await Dd(t)).byteLength},_d=async(t,e)=>{const n=C.toFiniteNumber(t.getContentLength());return n??Od(e)},ai={http:ld,xhr:Vd,fetch:pn&&(async t=>{let{url:e,method:n,data:o,signal:r,cancelToken:s,timeout:a,onDownloadProgress:c,onUploadProgress:d,responseType:u,headers:h,withCredentials:f="same-origin",fetchOptions:p}=mr(t);u=u?(u+"").toLowerCase():"text";let y=Pd([r,s&&s.toAbortSignal()],a),g;const k=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let b;try{if(d&&Ld&&n!=="get"&&n!=="head"&&(b=await _d(h,o))!==0){let F=new Request(e,{method:"POST",body:o,duplex:"half"}),Ee;if(C.isFormData(o)&&(Ee=F.headers.get("content-type"))&&h.setContentType(Ee),F.body){const[Ie,Ze]=dr(b,mn(ur(d)));o=pr(F.body,wr,Ie,Ze)}}C.isString(f)||(f=f?"include":"omit");const I="credentials"in Request.prototype;g=new Request(e,{...p,signal:y,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:o,duplex:"half",credentials:I?f:void 0});let L=await fetch(g);const O=si&&(u==="stream"||u==="response");if(si&&(c||O&&k)){const F={};["status","statusText","headers"].forEach(vt=>{F[vt]=L[vt]});const Ee=C.toFiniteNumber(L.headers.get("content-length")),[Ie,Ze]=c&&dr(Ee,mn(ur(c),!0))||[];L=new Response(pr(L.body,wr,Ie,()=>{Ze&&Ze(),k&&k()}),F)}u=u||"text";let z=await gn[C.findKey(gn,u)||"text"](L,t);return!O&&k&&k(),await new Promise((F,Ee)=>{cr(F,Ee,{data:z,headers:ye.from(L.headers),status:L.status,statusText:L.statusText,config:t,request:g})})}catch(I){throw k&&k(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,t,g),{cause:I.cause||I}):D.from(I,I&&I.code,t,g)}})};C.forEach(ai,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const br=t=>`- ${t}`,Hd=t=>C.isFunction(t)||t===null||t===!1,Sr={getAdapter:t=>{t=C.isArray(t)?t:[t];const{length:e}=t;let n,o;const r={};for(let s=0;s<e;s++){n=t[s];let a;if(o=n,!Hd(n)&&(o=ai[(a=String(n)).toLowerCase()],o===void 0))throw new D(`Unknown adapter '${a}'`);if(o)break;r[a||"#"+s]=o}if(!o){const s=Object.entries(r).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
21
+ `+s.map(br).join(`
22
+ `):" "+br(s[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:ai};function li(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ft(null,t)}function Cr(t){return li(t),t.headers=ye.from(t.headers),t.data=ri.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Sr.getAdapter(t.adapter||At.adapter)(t).then(function(o){return li(t),o.data=ri.call(t,t.transformResponse,o),o.headers=ye.from(o.headers),o},function(o){return lr(o)||(li(t),o&&o.response&&(o.response.data=ri.call(t,t.transformResponse,o.response),o.response.headers=ye.from(o.response.headers))),Promise.reject(o)})}const kr="1.7.7",ci={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ci[t]=function(o){return typeof o===t||"a"+(e<1?"n ":" ")+t}});const Er={};ci.transitional=function(e,n,o){function r(s,a){return"[Axios v"+kr+"] Transitional option '"+s+"'"+a+(o?". "+o:"")}return(s,a,c)=>{if(e===!1)throw new D(r(a," has been removed"+(n?" in "+n:"")),D.ERR_DEPRECATED);return n&&!Er[a]&&(Er[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,c):!0}};function qd(t,e,n){if(typeof t!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let r=o.length;for(;r-- >0;){const s=o[r],a=e[s];if(a){const c=t[s],d=c===void 0||a(c,s,t);if(d!==!0)throw new D("option "+s+" must be "+d,D.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new D("Unknown option "+s,D.ERR_BAD_OPTION)}}const di={assertOptions:qd,validators:ci},Ue=di.validators;class Ke{constructor(e){this.defaults=e,this.interceptors={request:new or,response:new or}}async request(e,n){try{return await this._request(e,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
23
+ `+s):o.stack=s}catch{}}throw o}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Qe(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:s}=n;o!==void 0&&di.assertOptions(o,{silentJSONParsing:Ue.transitional(Ue.boolean),forcedJSONParsing:Ue.transitional(Ue.boolean),clarifyTimeoutError:Ue.transitional(Ue.boolean)},!1),r!=null&&(C.isFunction(r)?n.paramsSerializer={serialize:r}:di.assertOptions(r,{encode:Ue.function,serialize:Ue.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&C.merge(s.common,s[n.method]);s&&C.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=ye.concat(a,s);const c=[];let d=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(d=d&&k.synchronous,c.unshift(k.fulfilled,k.rejected))});const u=[];this.interceptors.response.forEach(function(k){u.push(k.fulfilled,k.rejected)});let h,f=0,p;if(!d){const g=[Cr.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,u),p=g.length,h=Promise.resolve(n);f<p;)h=h.then(g[f++],g[f++]);return h}p=c.length;let y=n;for(f=0;f<p;){const g=c[f++],k=c[f++];try{y=g(y)}catch(b){k.call(this,b);break}}try{h=Cr.call(this,y)}catch(g){return Promise.reject(g)}for(f=0,p=u.length;f<p;)h=h.then(u[f++],u[f++]);return h}getUri(e){e=Qe(this.defaults,e);const n=hr(e.baseURL,e.url);return ir(n,e.params,e.paramsSerializer)}}C.forEach(["delete","get","head","options"],function(e){Ke.prototype[e]=function(n,o){return this.request(Qe(o||{},{method:e,url:n,data:(o||{}).data}))}}),C.forEach(["post","put","patch"],function(e){function n(o){return function(s,a,c){return this.request(Qe(c||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Ke.prototype[e]=n(),Ke.prototype[e+"Form"]=n(!0)});class ui{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const o=this;this.promise.then(r=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](r);o._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(c=>{o.subscribe(c),s=c}).then(r);return a.cancel=function(){o.unsubscribe(s)},a},e(function(s,a,c){o.reason||(o.reason=new ft(s,a,c),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=o=>{e.abort(o)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new ui(function(r){e=r}),cancel:e}}}function Ud(t){return function(n){return t.apply(null,n)}}function Wd(t){return C.isObject(t)&&t.isAxiosError===!0}const hi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(hi).forEach(([t,e])=>{hi[e]=t});function vr(t){const e=new Ke(t),n=_o(Ke.prototype.request,e);return C.extend(n,Ke.prototype,e,{allOwnKeys:!0}),C.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return vr(Qe(t,r))},n}const K=vr(At);K.Axios=Ke,K.CanceledError=ft,K.CancelToken=ui,K.isCancel=lr,K.VERSION=kr,K.toFormData=hn,K.AxiosError=D,K.Cancel=K.CanceledError,K.all=function(e){return Promise.all(e)},K.spread=Ud,K.isAxiosError=Wd,K.mergeConfig=Qe,K.AxiosHeaders=ye,K.formToJSON=t=>sr(C.isHTMLForm(t)?new FormData(t):t),K.getAdapter=Sr.getAdapter,K.HttpStatusCode=hi,K.default=K;var Pt=(t=>(t.GET="get",t.POST="post",t.PUT="put",t.DELETE="delete",t))(Pt||{});const Ft=(()=>{function t(){const d=r();return!(!d||d==="undefined")}function e(d){d.accessToken&&localStorage.setItem("access_token",d.accessToken),d.refreshToken&&localStorage.setItem("refresh_token",d.refreshToken)}function n(){const d=localStorage.getItem("user");return d?JSON.parse(d).id:""}function o(){const d=localStorage.getItem("user");if(d)return JSON.parse(d)}function r(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function c(d){if(!t())return;const u=Ft.getUser();u&&(u.human=d,localStorage.setItem("user",JSON.stringify(u)))}return{isAuth:t,setTokens:e,getAccessToken:r,getRefreshToken:s,getUserId:n,clearTokens:a,getUser:o,updateHuman:c}})();class fi{constructor(e){l(this,"code",400);l(this,"err","");v.BuildClass(this,e)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(e,n){const o=e.config;if(e.response){if(e.response.status===401&&!o._retry)return o._retry=!0,n.defaults.headers.common.token=Ft.getAccessToken(),e.config.headers.token=Ft.getAccessToken(),e.config.baseURL=void 0,n.request(o);if(e.response.status>=500){if(e.response.data==="неверный логин или пароль"){N.Notification.Error("Неверный логин или пароль");return}N.Notification.Error("Ошибка на сервере, попробуйте позже")}if(e.response.status>=400&&e.response.status<500){const r=new fi(e.response.data).getErr();r&&N.Notification.Error(r)}return Promise.reject(e)}}}const mt=K.create();mt.interceptors.response.use(t=>t,async t=>await fi.Handle(t,mt));class Tt{static async Get(e,n,o){return await mt({method:Pt.GET,url:e,headers:n,responseType:o})}static async Post(e,n,o,r){return n["Content-Type"]="multipart/form-data",await mt({method:Pt.POST,url:e,headers:n,responseType:o,data:r})}static async Put(e,n,o){return n["Content-Type"]="multipart/form-data",await mt({method:Pt.PUT,url:e,headers:n,data:o})}static async Delete(e,n){return await mt({method:Pt.DELETE,url:e,headers:n})}}var mi=(t=>(t.ContentType="Content-Type",t.Token="token",t))(mi||{}),Mr=(t=>(t.ApplicationJson="application/json",t.MultipartFormData="multipart/form-data",t))(Mr||{});const j=class j{static Setup(e,n,o){this.baseUrl=e,this.apiVersion=n,this.apiHost=o}static newWebSocket(e){const n=this.apiHost.replace("http","ws")+"/ws/"+e;return new WebSocket(n)}static download(e,n){const o=j.getDownloadFileName(e,n.headers),r=URL.createObjectURL(n.data),s=document.createElement("a");s.href=r,s.setAttribute("download",o),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click()}static getDownloadFileName(e,n){if(e)return e;const o=n["content-disposition"],r=o.indexOf('"')+1,s=o.lastIndexOf('"'),a=o.substring(r,s);return a||"file"}static getHeaders(e){const n=$e.Get(ve.AccessToken);return e||(e=j.headers),n&&(e[mi.Token]=n),e??j.headers}static returnResponse(e,n){if(n)return e!=null&&e.isBlob?j.download(e.downloadFileName,n):n.data}static async Get(e){return j.returnResponse(e,await Tt.Get(j.buildUrl((e==null?void 0:e.query)??""),j.getHeaders(e==null?void 0:e.headers),j.getResponseType(e==null?void 0:e.isBlob)))}static async Post(e){return j.returnResponse(e,await Tt.Post(j.buildUrl(e==null?void 0:e.query),j.getHeaders(e==null?void 0:e.headers),j.getResponseType(e.isBlob),j.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Put(e){return j.returnResponse(e,await Tt.Put(j.buildUrl(e==null?void 0:e.query),j.getHeaders(e==null?void 0:e.headers),j.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Delete(e){return j.returnResponse(e,await Tt.Delete(j.buildUrl(e==null?void 0:e.query),j.getHeaders(e==null?void 0:e.headers)))}static async Subscribe(e){const{query:n}=e;return new EventSource(j.buildUrl(n))}static buildUrl(e){const n=e??"";return this.baseUrl+this.apiVersion+n}static getResponseType(e){return e?"blob":"json"}static createFormDataPayload(e,n){const o=new FormData;if(o.append("form",JSON.stringify(e)),n)for(const r of n)r.file&&o.append(r.id??"files",r.file,r.originalName);return o}};l(j,"baseUrl",""),l(j,"apiVersion",""),l(j,"apiHost",""),l(j,"headers",{[mi.ContentType]:Mr.ApplicationJson});let ae=j;class Y{constructor(e,n){l(this,"items",i.reactive([]));l(this,"item");l(this,"count",i.ref(0));l(this,"classConstructor");l(this,"url","");this.classConstructor=e,this.item=i.reactive(new this.classConstructor),this.url=n}Set(e){Object.assign(this.item,new this.classConstructor(e))}Item(){return this.item}getUrl(e){return e?`${this.url}/${e}`:this.url}async GetAll(e){let n;const o=ae.Get;e&&e.withCache?n=await kc.TryGet(this.getUrl(),o):n=await o({query:this.getUrl()}),Array.isArray(n)?this.SetAll(n):this.SetAllWithCount(n)}async Get(e){e||(e=ot.Id()),this.Set(await ae.Get({query:this.getUrl(e)}))}async FTSP(e){var a;const o=((e==null?void 0:e.ftsp)??ee.Get()).clearForHTTP(),r={payload:{ftsp:o},query:this.getUrl("ftsp")},s=await ae.Post(r);if(!(!s||!s.ftsp))if(Array.isArray(s.data))this.SetAll(s.data);else{if(o.p.append){this.AppendToAll((a=s.data)==null?void 0:a.items);return}this.SetAllWithCount(s.data)}}async Create(e){const n=e??this.item,o={payload:n,query:this.getUrl()};return n.getFileInfos&&(o.fileInfos=n.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await ae.Post(o)}async CreateAndSet(e){const n=await this.Create(e);this.Set(n)}async CreateMany(e){if(!e)return;const n=[];e.forEach(o=>{n.push(new Promise(()=>this.Create(o)))}),Promise.all(n)}async Update(e){const n=e??this.item,o={query:this.getUrl(`${n.id}`),payload:n};return n.getFileInfos&&(o.fileInfos=n.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await ae.Put(o)}async UpdateAndSet(e){const n=await this.Update(e);this.Set(n)}async UpdateAndReset(e){await this.Update(e??this.item),this.Set()}async Remove(e){if(!e){console.warn("BaseStore/Remove. id is undefined");return}await ae.Delete({query:this.getUrl(`${e}`)}),this.RemoveItem(e)}async UpdateMany(e){if(e||(e=this.items),!e)return;const n=[];e.forEach(o=>{n.push(new Promise(()=>this.Update(o)))}),Promise.all(n)}SetAll(e){e&&(this.items.splice(0,this.items.length),this.items.push(...e.map(n=>new this.classConstructor(n))))}SetAllWithCount(e){e&&(this.SetAll(e.items),this.count.value=e.count)}RemoveItem(e){const n=this.items.findIndex(o=>o.id===e);this.items.splice(n,1)}AppendToAll(e){if(!e)return;const n=e.map(o=>new this.classConstructor(o));this.items.push(...n)}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){v.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(e){this.items.unshift(new this.classConstructor(e))}Items(){return this.items}Count(){return this.count}}let Gd=class extends Y{constructor(){super(Lo,"inns")}};const jd=new Gd;let Zd=class extends Y{constructor(){super(xt,"passport-scans")}};const Yd=new Zd;let Jd=class extends Y{constructor(){super(Jn,"passports")}};const Xd=new Jd;let Qd=class extends Y{constructor(){super(Oo,"snilss")}};const Kd=new Qd;class pi{constructor(e){l(this,"id");l(this,"name","");v.BuildClass(this,e)}static Create(e){const n=new pi;return n.id=v.CreateUUID(),n.name=e,n}}class zt{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");v.BuildClass(this,e)}static Create(e,n){const o=new zt;return o.id=v.CreateUUID(),o.name=e,o.label=n,o}}let eu=class extends Y{constructor(){super(zt,"extracts")}};const tu=new eu;class et{constructor(e){l(this,"id");l(this,"name","");l(this,"score",0);l(this,"order",0);l(this,"showMoreQuestions",!1);l(this,"showOther",!1);l(this,"fieldId");l(this,"isMatrixY",!1);v.BuildClass(this,e)}static Create(e){const n=new et;return n.id=v.CreateUUID(),n.fieldId=e,n}}class nu{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fieldId");v.BuildClass(this,e)}}class Br{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);v.BuildClass(this,e)}}class Dt{constructor(e){l(this,"id");l(this,"name","");l(this,"fieldId");v.BuildClass(this,e)}static Create(e){const n=new Dt;return n.id=v.CreateUUID(),n.fieldId=e,n}}var iu=Object.defineProperty,Lt=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&iu(e,n,r),r};const tt=class Ln{constructor(e){l(this,"id");l(this,"name","");l(this,"code","");l(this,"valueTypeId");l(this,"order",0);l(this,"ageCompare",!1);l(this,"answerVariants",[]);l(this,"answerVariantsForDelete",[]);l(this,"fieldExamples",[]);l(this,"fieldVariants",[]);l(this,"valueType",new jn);l(this,"fieldMeasures",[]);l(this,"showSet",!1);l(this,"showRadio",!1);l(this,"isEdit",!1);l(this,"children",[]);l(this,"parentId");l(this,"formSectionId");l(this,"selected",!1);v.BuildClass(this,e),this.changeRelation([this.valueType])}getMatrixX(){return this.answerVariants.filter(e=>!e.isMatrixY)}getMatrixY(){return this.answerVariants.filter(e=>e.isMatrixY)}static Create(e){const n=new Ln;return n.id=v.CreateUUID(),n.formSectionId=e,n}getRegisterPropertyRadioOriginalValue(e){const n=this.answerVariants.find(o=>o.id===e);return n?n.name:""}addRadioItem(e){const n=new et(e);n.order=this.answerVariants.length,this.answerVariants.push(n)}removeRadioItem(e){const n=this.answerVariants[e].id;n&&this.answerVariantsForDelete.push(n),this.answerVariants.splice(e,1)}changeRelation(e){const n=e.find(o=>o.id===this.valueTypeId);if(n){if(n.isRadio()){this.showRadio=!0,this.showSet=!1;return}if(n.isSet()){this.showSet=!0,this.showRadio=!1;return}this.showSet=!1,this.showRadio=!1,this.valueType=n}}editRegisterProperty(e){this.isEdit=e??!this.isEdit}sortExamples(){this.fieldExamples.forEach((e,n)=>e.order=n)}addRegisterPropertyMeasure(e){this.fieldMeasures.push(new Br(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new Dt)}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}static GetClassName(){return"Field"}setType(e){this.valueType=e,this.valueTypeId=e.id}setName(e){this.name=e}addAnswerVariant(){const e=et.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=Ln.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=Dt.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new Ln(this);return e.id=v.CreateUUID(),e.answerVariants.forEach(n=>{n.id=v.CreateUUID(),n.fieldId=e.id}),e.children=e.children.map(n=>{const o=n.copy();return o.parentId=e.id,o}),e}};Lt([v.GetClassConstructor(et)],tt.prototype,"answerVariants"),Lt([v.GetClassConstructor(nu)],tt.prototype,"fieldExamples"),Lt([v.GetClassConstructor(Dt)],tt.prototype,"fieldVariants"),Lt([v.GetClassConstructor(Br)],tt.prototype,"fieldMeasures"),Lt([v.GetClassConstructor(tt)],tt.prototype,"children");let yn=tt;class Ir{constructor(e){l(this,"id");l(this,"answerId");l(this,"comment","");l(this,"fileInfoId");l(this,"fileInfo",new X);v.BuildClass(this,e)}}class nt{constructor(e){l(this,"id");l(this,"answerVariantId");l(this,"answerVariantIdY");l(this,"fieldFillId");v.BuildClass(this,e)}static Create(e,n){const o=new nt;return o.id=de(),o.fieldFillId=e,o.answerVariantId=n,o}static GetClassName(){return"selectedAnswerVariant"}}var ou=Object.defineProperty,$r=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&ou(e,n,r),r};const gi=class mo{constructor(e){l(this,"id");l(this,"valueString");l(this,"valueOther");l(this,"valueNumber");l(this,"valueDate");l(this,"fileInfo",new X);l(this,"fileInfoId");l(this,"order",0);l(this,"selectedAnswerVariants",[]);l(this,"patientId");l(this,"fieldId");l(this,"formFillId");l(this,"answerVariantId");l(this,"filled",!1);l(this,"researchResultId");l(this,"answerFiles",[]);l(this,"answerFilesForDelete",[]);v.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,n){const o=new mo;return o.id=de(),o.fieldId=e.id,o.formFillId=n,o.order=e.order,o.valueNumber=0,o.valueString="",o.valueDate=new Date,o}setString(e){this.valueString=e,this.filled=this.valueString.length>0}setNumber(e){this.valueNumber=e,this.filled=!0}setOther(e){this.valueOther=e,this.filled=this.valueOther.length>0}setDate(e){this.valueDate=e,this.filled=!0}setRadio(e){this.answerVariantId=e,this.filled=!!this.answerVariantId}static CreateMany(e,n){return e.map(o=>mo.Create(o,n))}addFile(){const e=new Ir;return e.id=de(),e.answerId=this.id,this.answerFiles.push(e),e}getFileInfos(){const e=[];return this.answerFiles.forEach(n=>e.push(n.fileInfo)),e}getSelectedAnswerVariant(){return!0}setMatrixRadioValue(e,n){const o=nt.Create(this.id,e);return o.answerVariantIdY=n,this.selectedAnswerVariants.push(o),this.filled=!0,o}getMatrixValue(e,n){return this.selectedAnswerVariants.find(o=>o.answerVariantId===e&&o.answerVariantIdY===n)}addSelectedAnswerVariant(e){const n=nt.Create(this.id,e);return this.selectedAnswerVariants.push(n),this.filled=!0,n}static GetClassName(){return"answer"}showOther(e){const n=e.find(o=>o.showOther);return n?this.answerVariantId===n.id||this.selectedAnswerVariants.some(o=>o.answerVariantId===n.id):!1}};$r([v.GetClassConstructor(nt)],gi.prototype,"selectedAnswerVariants"),$r([v.GetClassConstructor(Ir)],gi.prototype,"answerFiles");let pt=gi;var ru=Object.defineProperty,su=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&ru(e,n,r),r};const xr=class hl{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fields",[]);l(this,"formId");v.BuildClass(this,e)}static GetClassName(){return"formSection"}getN(){return`${this.order+1}`}getFieldN(e){return`${this.getN()}.${e+1}`}getSubFieldN(e,n){return`${this.getFieldN(e)}.${n+1}`}static Create(e){const n=new hl;return n.id=v.CreateUUID(),n.formId=e,n}addField(){const e=yn.Create(this.id);return this.fields.push(e),this.sortFields(),e}sortFields(){this.fields.forEach((e,n)=>e.order=n)}getAnswerVariants(){const e=[];return this.fields.forEach(n=>e.push(...n.answerVariants)),e}};su([v.GetClassConstructor(yn)],xr.prototype,"fields");let wn=xr;var au=Object.defineProperty,lu=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&au(e,n,r),r};const Nr=class fl{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"isLaboratory",!1);l(this,"formSections",[]);l(this,"isEdit",!1);l(this,"withDates",!1);l(this,"withScores",!1);l(this,"selectedForExport",!1);l(this,"filterString","");l(this,"showOnlyNotFilled",!1);l(this,"showOnlyFilled",!1);v.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new fl;return e.id=v.CreateUUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=wn.Create(this.id);return this.formSections.push(e),Cs.Sort(this.formSections),e}getFields(){const e=this.formSections.map(o=>o.fields).flat(),n=e.map(o=>o.children).flat();return e.concat(n).filter(o=>o.children.length===0)}};lu([v.GetClassConstructor(wn)],Nr.prototype,"formSections");let Rr=Nr;var cu=Object.defineProperty,du=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&cu(e,n,r),r};const Ar=class ml{constructor(e){l(this,"id");l(this,"date",new Date);l(this,"editMode",!1);l(this,"userFormId");l(this,"fillingPercentage",0);l(this,"fieldFills",[]);l(this,"num","");l(this,"formId");v.BuildClass(this,e)}static Create(e){const n=new ml;return n.id=v.CreateUUID(),n.formId=e.id,n.fieldFills.push(...pt.CreateMany(e.getFields(),n.id)),n}addFieldFill(e){this.fieldFills.push(e)}getFieldFill(e){var n;return(n=this.fieldFills)==null?void 0:n.find(o=>o.fieldId===e)}pushRegisterProperty(e){const n=new pt;n.researchResultId=e,this.fieldFills.push(n)}getRegisterPropertyToPatient(e){return this.fieldFills.filter(n=>n.researchResultId===e)}getOrCreateFieldFill(e){let n=this.getFieldFill(e.id);return n||(n=pt.Create(e),this.addFieldFill(n)),n}getFileInfos(){const e=[];return this.fieldFills.forEach(n=>e.push(...n.getFileInfos())),e}calculateFilling(){const e=this.fieldFills.filter(o=>o.filled).length,n=this.fieldFills.length;this.fillingPercentage=Math.round(e/n*100)}getFieldFillByFieldId(e){return this.fieldFills.find(n=>n.fieldId===e)}getFieldVariantFieldFill(e){return this.fieldFills.find(n=>n.fieldVariantId===e)}getFieldsFieldFillsMap(e){const n={};return e.forEach(o=>{var r;if(o.code){const s=(r=this.getFieldFillByFieldId(o.id))==null?void 0:r.valueNumber;n[o.code]=s}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};du([v.GetClassConstructor(pt)],Ar.prototype,"fieldFills");let Vr=Ar,uu=class extends Y{constructor(){super(et,"answer-variants")}};const Pr=new uu;let hu=class extends Y{constructor(){super(pt,"field-fills")}};const Fr=new hu;let fu=class extends Y{constructor(){super(yn,"fields")}};const Tr=new fu;let mu=class extends Y{constructor(){super(Vr,"form-fills")}};const zr=new mu;let pu=class extends Y{constructor(){super(wn,"form-sections")}};const Dr=new pu;let gu=class extends Y{constructor(){super(Rr,"forms")}};const Lr=new gu;let yu=class extends Y{constructor(){super(nt,"selected-answer-variants")}};const Or=new yu;let _r=class{constructor(){l(this,"AnswerVariants",Pr);l(this,"FieldFills",Fr);l(this,"Fields",Tr);l(this,"FormFills",zr);l(this,"FormSections",Dr);l(this,"Forms",Lr);l(this,"SelectedAnswerVariants",Or)}},wu=class extends Y{constructor(){super(zt,"color-themes")}};const bu=new wu;class Su{constructor(){l(this,"form",new pc);l(this,"status",new bc);l(this,"modal",new gc)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}}const yi=new Su;let Cu=class{async Login(e){const n=e??N.Auth.Form.GetValues(),o=await ae.Post({query:"auth/login",payload:n});if(!o)throw N.Notification.Error("Ошибка авторизации"),"Ошибка авторизации";N.Auth.Status.SetState(o)}async LoginAs(e){if(!await ae.Post({query:"auth/login-as",payload:{email:e}})){N.Notification.Error("Ошибка авторизации");return}}async Register(){}async RestorePassword(){}async passwordChange(){await ae.Put({query:"auth/password-change"})}async RefreshToken(){await ae.Post({query:"auth/refresh-token",payload:{refreshToken:Ft.getRefreshToken()}})}async CheckUuid(e){await ae.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}};const Hr=new Cu;let ku=class extends Y{constructor(){super(dt,"contacts")}};const qr=new ku;let Eu=class extends Y{constructor(){super(Ye,"emails")}};const wi=new Eu;let vu=class extends Y{constructor(){super(X,"file-infos")}};const Ur=new vu;class bi{constructor(e){l(this,"id");l(this,"ftsp");l(this,"name","");v.BuildClass(this,e)}static Create(e){const n=new bi;return n.id=v.CreateUUID(),n.ftsp=JSON.stringify(e),n}}let Mu=class extends Y{constructor(){super(bi,"ftsp-presets")}};const Wr=new Mu;let Bu=class extends Y{constructor(){super(Gn,"humans")}};const Gr=new Bu;class jr{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"downloadToFile",!1);l(this,"pageSectionId");l(this,"scan",new X);l(this,"scanId");e&&(this.id=e==null?void 0:e.id,this.name=e.name,this.order=e.order,this.downloadToFile=e.downloadToFile,this.pageSectionId=e.pageSectionId,e.scan&&(this.scan=new X(e.scan)),this.scanId=e.scanId)}getFileInfos(){return[this.scan]}uploadScan(e){return this.scan.id||(this.scan.id=de()),this.scan.originalName=e.name,this.scan.file=e.raw,this.scan.fileSystemPath=de(),this.scan.url=e.url,this.scan}getFileName(){return this.name?this.name:this.scan.originalName}}class Iu{constructor(e){l(this,"id");l(this,"documentType",new it);l(this,"documentTypeId");l(this,"order",0);v.BuildClass(this,e)}getFileInfos(){const e=[];return e.push(...this.documentType.getFileInfos()),e}}var $u=Object.defineProperty,Zr=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&$u(e,n,r),r};class it{constructor(e){l(this,"id");l(this,"name","");l(this,"singleScan",!1);l(this,"scan");l(this,"scanId");l(this,"order",0);l(this,"description","");l(this,"scans",[]);l(this,"scansForDelete",[]);l(this,"pageSectionDocuments",[]);l(this,"pageSectionDocumentsForDelete",[]);l(this,"pageSectionImages",[]);l(this,"pageSectionImagesForDelete",[]);l(this,"pageSideMenuId");l(this,"pageId");l(this,"text","");l(this,"documents",[]);v.BuildClass(this,e),this.documents=this.pageSectionDocuments,this.text=this.description.replace("<p>undefined</p>","")}addDocument(){const e=new jr;e.order=this.pageSectionDocuments.length-1,this.pageSectionDocuments.push(e)}getFileInfos(){const e=[];return this.pageSectionDocuments.forEach(n=>{e.push(...n.getFileInfos())}),e}infoExists(e){const n=q.SearchIn(this.name,e),o=q.SearchIn(this.description,e),r=this.getDocuments(e);return n||o||r.length>0}getDocuments(e){return this.pageSectionDocuments.filter(n=>q.SearchIn(n.name,e))}getDescription(e){return e?q.WrapSubStr(this.description,e):this.description}filter(e){if(!e){this.text=this.description,this.documents=this.pageSectionDocuments;return}this.text=q.SearchIn(this.description,e)?q.WrapSubStr(this.description,e):"",this.documents=this.pageSectionDocuments.filter(n=>q.SearchIn(n.name,e))}}Zr([v.GetClassConstructor(jr)],it.prototype,"pageSectionDocuments"),Zr([v.GetClassConstructor(Iu)],it.prototype,"pageSectionImages");class xu{constructor(e){l(this,"id");l(this,"document",new it);l(this,"documentId");l(this,"pageId");v.BuildClass(this,e)}static GetFileInfos(e){const n=[];return e.forEach(o=>{const r=o.document.scan;r&&n.push(r)}),n}}var Nu=Object.defineProperty,Ru=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Nu(e,n,r),r};class Yr{constructor(e){l(this,"id");l(this,"pageId");l(this,"fileInfoId");l(this,"fileInfo");l(this,"description");v.BuildClass(this,e)}}Ru([v.GetClassConstructor(X)],Yr.prototype,"fileInfo");var Au=Object.defineProperty,Vu=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Au(e,n,r),r};class gt{constructor(e){l(this,"id");l(this,"name","Новое меню");l(this,"order",0);l(this,"description","");l(this,"routeAnchor","");l(this,"slug","");l(this,"pageSections",[]);l(this,"pageSectionsForDelete",[]);l(this,"showContent",!1);l(this,"pageId");l(this,"selected",!1);l(this,"sections",[]);l(this,"text","");v.BuildClass(this,e),this.sections=this.pageSections,this.text=this.description.replace("<p>undefined</p>","")}getFileInfos(){const e=[];return this.pageSections.forEach(n=>{e.push(...n.getFileInfos())}),e}addPageSection(){const e=new it;e.order=this.pageSections.length+1,e.name=`Новой раздел ${e.order}`,e.id=de(),this.pageSections.push(e)}infoExists(e){const n=q.SearchIn(this.name,e),o=q.SearchIn(this.description,e),r=this.getPageSections(e).length>0;return n||o||r}getPageSections(e){return e.length?this.pageSections.filter(n=>n.infoExists(e)):this.pageSections}filter(e){e.length?(this.sections=this.pageSections.filter(n=>n.infoExists(e)),this.text=q.SearchIn(this.description,e)?q.WrapSubStr(this.description,e):""):(this.sections=this.pageSections,this.text=this.description),this.sections.forEach(n=>n.filter(e))}}Vu([v.GetClassConstructor(it)],gt.prototype,"pageSections");var Jr=(t=>(t.User="USER",t.Admin="ADMIN",t))(Jr||{});class Pu{constructor(e){l(this,"id");l(this,"name",Jr.User);l(this,"label","");l(this,"startPage","");v.BuildClass(this,e)}}var Fu=Object.defineProperty,bn=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Fu(e,n,r),r};class yt{constructor(e){l(this,"id");l(this,"title","");l(this,"content","");l(this,"slug","");l(this,"pagesGroup","Без группы");l(this,"link","");l(this,"withComments",!1);l(this,"showContacts",!1);l(this,"collaps",!1);l(this,"showContent",!1);l(this,"pageImages",[]);l(this,"pageImagesForDelete",[]);l(this,"pageImagesNames",[]);l(this,"pageSideMenus",[]);l(this,"menus",[]);l(this,"pageSideMenusForDelete",[]);l(this,"pageSections",[]);l(this,"pageSectionsForDelete",[]);l(this,"pageDocuments",[]);l(this,"contact",new dt);l(this,"contactId");l(this,"role",new Pu);l(this,"roleId");l(this,"filterStr","");l(this,"activeMenuId","");v.BuildClass(this,e),this.menus=this.pageSideMenus}getActiveMenu(){const e=this.pageSideMenus.find(n=>n.id===this.activeMenuId);return e||this.pageSideMenus[0]}setActiveMenuId(e){this.activeMenuId=e}getLink(){return this.slug!==""?`/pages/${this.slug}`:"404"}getFileInfos(){const e=[];return this.pageSideMenus.forEach(n=>{e.push(...n.getFileInfos())}),this.pageDocuments.forEach(n=>{n.document.scan&&e.push(n.document.scan)}),this.pageImages.forEach(n=>{n.fileInfo&&e.push(n.fileInfo)}),e}addSideMenu(){const e=new gt;return e.order=this.pageSideMenus.length+1,e.name=`Новое меню ${e.order}`,e.id=de(),this.pageSideMenus.push(e),e.id}selectSideMenu(e,n){if(!e&&this.pageSideMenus.length>0){this.pageSideMenus[0].selected=!0;return}this.pageSideMenus.forEach(o=>{n?o.selected=o.id===e:o.selected=o.slug===e})}getSelectedSideMenu(){const e=this.pageSideMenus.find(n=>n.selected);return e||new gt}addCustomSectionsToSideMenu(e){e.forEach(n=>{const o=new gt;o.id=n.id,o.name=n.name,typeof n.order<"u"?this.pageSideMenus.splice(n.order,0,o):this.pageSideMenus.push(o)})}getPageSideMenus(){if(this.showContacts&&!this.pageSideMenus.find(e=>e.id==="contacts")){const e=new gt;e.id="contacts",e.name="Контакты",this.pageSideMenus.push(e)}return this.filterStr===""?this.pageSideMenus:this.pageSideMenus.filter(e=>e.infoExists(this.filterStr))}filter(){this.filterStr===""?this.menus=this.pageSideMenus:this.menus=this.pageSideMenus.filter(e=>e.infoExists(this.filterStr)),this.menus.forEach(e=>e.filter(this.filterStr))}static GetClassName(){return"page"}}bn([v.GetClassConstructor(Yr)],yt.prototype,"pageImages"),bn([v.GetClassConstructor(gt)],yt.prototype,"pageSideMenus"),bn([v.GetClassConstructor(it)],yt.prototype,"pageSections"),bn([v.GetClassConstructor(xu)],yt.prototype,"pageDocuments");class Xr{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"selected",!1);l(this,"hide",!1);l(this,"editMode",!1);l(this,"color","");l(this,"background","");l(this,"page",new yt);l(this,"pageId");l(this,"order",0);l(this,"menuId");l(this,"iconId");l(this,"icon",new X);l(this,"iconName","");l(this,"svgCode","");v.BuildClass(this,e)}getLink(){return this.isLink()&&!this.isPageLink()?this.link:!this.isLink()&&this.isPageLink()?this.page.getLink():""}isLink(){return this.link!==""}isPageLink(){return this.pageId!==void 0&&this.pageId!==""}addFile(e){this.icon.id||(this.icon.id=de()),this.icon.originalName=e.name,this.icon.file=e.raw}}var Tu=Object.defineProperty,zu=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Tu(e,n,r),r};class Qr{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"top",!0);l(this,"side",!0);l(this,"show",!1);l(this,"hide",!1);l(this,"active",!1);l(this,"order",0);l(this,"selected",!1);l(this,"editMode",!1);l(this,"page",new yt);l(this,"pageId");l(this,"subMenus",[]);l(this,"subMenusForDelete",[]);l(this,"iconId");l(this,"icon",new X);v.BuildClass(this,e)}getLink(){return this.isLink()&&!this.isPageLink()?this.link:!this.isLink()&&this.isPageLink()?this.page.getLink():""}withoutChildren(){return this.subMenus.length===0}isLink(){return this.link!==""}isPageLink(){return!!this.pageId&&this.pageId!==""}getFileInfos(){const e=[];return e.push(this.icon),this.subMenus.forEach(n=>{e.push(n.icon)}),e}addFile(e){this.icon.id||(this.icon.id=de()),this.icon.originalName=e.name,this.icon.file=e.raw}addSubMenu(){this.subMenus.push(new Xr)}removeSubMenu(e){const n=this.subMenus[e].id;n&&this.subMenusForDelete.push(n),this.subMenus.splice(e,1)}setColorsForSubMenus(){const e=["#00A248","#E63021","#006BB5","#F3911F","#6F6D6B"];let n=0;this.subMenus.forEach(o=>{o.color=e[n],n=e.length-1?n=0:n++})}containPath(e){return this.getLink()===e||!!this.subMenus.find(n=>n.getLink()===e)}static GetClassName(){return"menu"}}zu([v.GetClassConstructor(Xr)],Qr.prototype,"subMenus");let Du=class extends Y{constructor(){super(Qr,"menus")}};const Kr=new Du;let Lu=class extends Y{constructor(){super(ct,"phones")}};const Si=new Lu;class Ou{constructor(e){l(this,"id");l(this,"nameRus","");v.BuildClass(this,e)}}var _u=Object.defineProperty,Hu=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&_u(e,n,r),r};class es{constructor(e){l(this,"id");l(this,"nameRus","");l(this,"fields",[]);v.BuildClass(this,e)}}Hu([v.GetClassConstructor(Ou)],es.prototype,"fields");let qu=class extends Y{constructor(){super(es,"schemas")}};const ts=new qu;class ns{constructor(e){l(this,"id","");l(this,"value","");l(this,"label","");l(this,"key","");l(this,"description","");l(this,"route","");l(this,"searchElementMetas",[]);v.BuildClass(this,e)}}class Uu{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");v.BuildClass(this,e)}}var Wu=Object.defineProperty,is=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&Wu(e,n,r),r};class wt{constructor(e){l(this,"id");l(this,"key","");l(this,"label","");l(this,"order",0);l(this,"route","");l(this,"table","");l(this,"active",!0);l(this,"searchColumn","");l(this,"descriptionColumn","");l(this,"labelColumn","");l(this,"valueColumn","");l(this,"options",[]);l(this,"searchGroupMetaColumns",[]);v.BuildClass(this,e)}}is([v.GetClassConstructor(ns)],wt.prototype,"options"),is([v.GetClassConstructor(Uu)],wt.prototype,"searchGroupMetaColumns");class Ci{constructor(e){l(this,"query","");l(this,"key","");l(this,"params","");l(this,"suggester",!1);l(this,"mustBeTranslated",!0);l(this,"options",[]);l(this,"searchGroupId","");l(this,"searchGroups",[]);l(this,"searchGroup",new wt);l(this,"searchObjects",[]);l(this,"pagination",new en);l(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(n=>new wt(n))),e.searchGroup&&(this.searchGroup=new wt(e.searchGroup)),e.options&&(this.options=e.options.map(n=>new ns(n))),this.count=e.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(e){const n=this.searchGroups.find(o=>o.id===e);n?this.searchGroup=n:this.searchGroup=new wt}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(ot.Route().query.groupId)}setQuery(){const e=ot.Route().query.query;e&&(this.query=e)}}let Gu=class{constructor(){l(this,"isSearchDrawerOpen",i.ref(!1));l(this,"searchModel",i.reactive(new Ci));l(this,"searchGroups",i.reactive([]));l(this,"count",0)}async Search(e){const n=await ae.Get({query:`?key=${e.key}&query=${e.query}`});n&&n.searchGroup&&n.searchGroup.options.forEach(o=>{e.searchObjects.push({id:o.id,value:o.value,label:o.label,description:o.description})})}async mainSearch(e){this.SetSearchModel(await ae.Get({query:`/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(o=>{o.options=[]});const n=await ae.Get({query:`main?searchModel=${e.toUrl()}`});this.SetSearchModel(n)}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new Ci}SetSearchModel(e){e&&(this.searchModel=new Ci(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const Sn=new Gu;class ki{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");v.BuildClass(this,e)}static Create(){const e=new ki;return e.id=v.CreateUUID(),e}}let ju=class extends Y{constructor(){super(ki,"users-accounts")}};const os=new ju;let Zu=class extends Y{constructor(){super(jn,"value-types")}};const rs=new Zu;class Yu{constructor(){l(this,"Auth",Hr);l(this,"Contacts",qr);l(this,"Emails",wi);l(this,"FileInfos",Ur);l(this,"FTSPPresets",Wr);l(this,"Humans",Gr);l(this,"Menus",Kr);l(this,"Phones",Si);l(this,"Schemas",ts);l(this,"Search",Sn);l(this,"UserAccounts",os);l(this,"ValueTypes",rs)}}function Ju(t,e){e.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(o=>{t.prototype[o]=n.prototype[o]})})}class ss{}Ju(ss,[Yu,_r]);const as=new ss;class Xu{constructor(){l(this,"title","");l(this,"buttons",[])}Set(e="",n){typeof e=="function"?this.title=e():typeof e=="string"?this.title=e:this.title=e.value,this.buttons=n}}const Qu=new Xu;class Ku{constructor(){l(this,"menu",[]);l(this,"path","");l(this,"isOpen",!0);l(this,"filterString","")}Set(e){this.menu=e}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(e=>{var n;return q.SearchIn(e.name,this.filterString)||((n=e.children)==null?void 0:n.some(o=>q.SearchIn(o.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(e){this.path=e}GetPath(){return this.path}SetFilter(e){this.filterString=e}GetChildren(e){var n;return this.filterString?(n=e.children)==null?void 0:n.filter(o=>q.SearchIn(o.name,this.filterString)):e.children}}const eh=new Ku;class th{constructor(){l(this,"Menu",eh);l(this,"Head",Qu)}}const ls=new th;class cs{constructor(){l(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class ds extends cs{constructor(){super(...arguments);l(this,"type",ue.Success);l(this,"text","");l(this,"title","")}showMessage(n,o){this.hide(),this.type=o,typeof n=="string"?this.text=n:(this.text=n.text,this.title=n.title??""),super.show()}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}Info(n){this.showMessage(n,ue.Info)}Success(n){this.showMessage(n,ue.Success)}Error(n){this.showMessage(n,ue.Error)}Warning(n){this.showMessage(n,ue.Warning)}FormMessage(n){let o="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const r of Object.keys(n))n[r][0]&&n[r][0].message&&(o+=`<li>${n[r][0].message}</li>`);return o+="</ul>",o}}class nh extends ds{constructor(){super(...arguments);l(this,"confirmButtonText","Да");l(this,"cancelButtonText","Нет");l(this,"resolve");l(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(n){return super.show(),typeof n!="string"&&(this.confirmButtonText=n.confirmButtonText,this.cancelButtonText=n.cancelButtonText),new Promise((o,r)=>{this.resolve=o,this.reject=r})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.resolve(!0),this.hide()}Cancel(){this.reject(),this.hide()}hide(){this.resolve=void 0,this.reject=void 0,super.hide()}}const us=new nh;class ih extends cs{Show(){super.show()}Hide(){super.hide()}}const hs=new ih;class Ot{static Get(e,n,o="-"){return!e||!n?"":`${e}${o}${n}`}static In(e,n,o){return e>=n&&e<=o}static Intersects(e,n,o,r){return e===o||n===r||e>o&&e<r||n>o&&n<r||n>r&&e<o}}const fs=1e3,ms=60*fs,Ei=60*ms;var _t=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(_t||{});const Cn={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class _{static S(e){return fs*e}static M(e){return ms*e}static H(e){return Ei*e}static D(e){return Ei*e}static W(e){return Ei*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const n=_.SplitHM(e);return n.length>1?_.HtoM(n[0])+n[1]:_.HtoM(n[0])}static HtoM(e){return Number(e)*60}static SplitHM(e){if(!e)return[];const n=e.split(":");return[Number(n[0]),Number(n[1])]}static HmsToHm(e){const n=_.SplitHM(e);return _.ConcatHM(n[0],n[1])}static AddMtoHM(e,n){const o=new Date,r=_.SplitHM(e);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return _.ConcatHM(a,c)}static ConcatHM(e,n){return`${e}:${_.NormalizeTime(n)}`}static DiffM(e,n){return _.Gt(n,e)?_.HMtoM(n)-_.HMtoM(e):_.HMtoM(e)-_.HMtoM(n)}static GetPeriod(e,n){return Ot.Get(e,n)}static Gt(e,n){return _.HMtoM(e)>_.HMtoM(n)}static GtOrEq(e,n){return _.Gt(e,n)||_.Eq(e,n)}static Eq(e,n){return _.HMtoM(e)===_.HMtoM(n)}static PeriodInPeriod(e,n,o,r){return _.HMtoM(e)>=_.HMtoM(o)&&_.HMtoM(n)<=_.HMtoM(r)}static PeriodsIntersects(e,n,o,r){return Ot.Intersects(_.HMtoM(e),_.HMtoM(n),_.HMtoM(o),_.HMtoM(r))}}class Ht{static Wait(e,n){return new Promise(o=>setTimeout(()=>o(n),e))}static WaitS(e,n){return Ht.Wait(_.S(e),n)}static WaitM(e,n){return Ht.Wait(_.M(e),n)}}class oh extends ds{constructor(){super(...arguments);l(this,"duration",_.S(3))}showMessage(n,o){super.showMessage(n,o),typeof n!="string"&&(this.duration=n.duration??this.duration),Ht.Wait(this.GetDuration()).then(()=>super.hide())}GetDuration(){return this.duration}Dev(){const n="В режиме разработки",o=ue.Warning;super.showMessage(n,o)}Save(){const n="Изменения успешно сохранены",o=ue.Success;super.showMessage(n,o)}}const ps=new oh;class rh{constructor(){l(this,"limit",25);l(this,"count",0);l(this,"curPage",1);l(this,"storeModule","")}setCurPage(e){this.curPage=e}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const gs=new rh;class N{}l(N,"Auth",i.reactive(yi)),l(N,"AdminUI",i.reactive(ls)),l(N,"Dialog",i.reactive(us)),l(N,"Notification",i.reactive(ps)),l(N,"Loading",i.reactive(hs)),l(N,"Paginator",i.reactive(gs)),l(N,"Store",as);function ys(){const t=i.ref(!1),e=i.ref(!1);return{confirmLeave:t,saveButtonClick:e,beforeWindowUnload:s=>{t.value&&s.preventDefault()},formUpdated:()=>{t.value=!0},showConfirmModal:(s,a)=>{t.value&&!e.value?N.Dialog.Save().then(()=>{s(),a()}).catch(()=>{N.Notification.Warning("Изменения не были сохранены"),a()}):a()}}}const sh=(()=>{const t=(s,a)=>i.onBeforeMount(async()=>{var c;ee.Get().reset(),Fe.Set(a==null?void 0:a.sortsLib),ee.Get().setSortModel(Fe.GetDefault()),Fe.Set(a==null?void 0:a.sortsLib),ee.Get().setSortModel(Fe.GetDefault()),N.Paginator.storeModule=(c=a==null?void 0:a.pagination)==null?void 0:c.storeModule,await s()}),{saveButtonClick:e,showConfirmModal:n}=ys(),o=s=>dc((a,c,d)=>{n((s||r)(),d)}),r=s=>async()=>{e.value=!0;try{s&&await s(),N.Notification.Success("Сохранено")}catch(a){N.Notification.Success("Что-то пошло не так. "+a);return}};return{onBeforeMount:t,onBeforeRouteLeave:o,submit:r}})(),ws=["#31af5e","#ff4d3b","#006BB5","#f3911c"];function ah(){return ws[Math.floor(Math.random()*ws.length)]}function lh(t,e){const n=[2,0,1,1,1,2];return t.length+" "+e[t.length%100>4&&t.length%100<20?2:n[t.length%10<5?t.length%10:5]]}class ch{constructor(e){l(this,"name","");v.BuildClass(this,e)}cache(){}getFromCache(e){const n=sessionStorage.getItem(this.name);if(n){const o=JSON.parse(n),r=new Date,s=new Date(o.time),a=r.getTime()-s.getTime();return Math.round(a/6e4)>(e||10)?null:o.data}else return null}async storeGetWithCache(e,n){let o;return o=this.getFromCache(n),o||(o=await e(),o&&this.cache()),o}}function dh(t,e){t=="left"&&e.next(),t=="right"&&e.prev()}const uh=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class hh{static GetRandColor(e){return Ae.GetRandEL(e??uh)}}function fh(t){const e=t.filter(r=>r.rating!==0);let n=0;e.forEach(r=>n=n+r.rating);const o=n/e.length;return isNaN(o)?0:Number((n/e.length).toFixed(2))}let mh=class{constructor(){l(this,"startHour",9);l(this,"endHour",19);l(this,"timelinePxHeight",50);l(this,"timelineStep",_t.FiveMinutes);l(this,"activeTime","");l(this,"activeObjectId","");l(this,"dragged",!1);l(this,"draggedStartTime","");l(this,"draggedEndTime","");l(this,"timelines",Cn[_t.FiveMinutes])}startDrag(e,n){this.draggedStartTime=e,this.draggedEndTime=n,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Cn[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Ae.GenerateNumsRange(this.startHour,this.endHour)}};const ph=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"];class bt{constructor(e){l(this,"locale","ru-RU");this.locale=e??this.locale}format(e,n){if(!e)return"";const o={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return n&&(o.year=n.year||n.year===void 0?n.year:o.year,o.month=n.month||n.month===void 0?n.month:o.month,o.day=n.day||n.day===void 0?n.day:o.day,o.hour=n.hour??o.hour,o.minute=n.minute??o.minute),Intl.DateTimeFormat(this.locale,o).format(new Date(e))}getPeriod(e,n,o){return`${this.format(e,o)}-${this.format(n,o)}`}getShortDayName(e){return e?ph[e.getDay()]:""}getCurrentWeekPeriod(e){const n=new Date,o=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),r=new Date(n.getFullYear(),n.getMonth(),o.getDate()+7);return this.getPeriod(o,r,e||{month:"2-digit",day:"numeric",year:void 0})}getDurationInDay(e,n){const o=new Date,r=new Date,s=bt.SplitHourTime(e),a=bt.SplitHourTime(n);return o.setHours(s[0],s[1],0,0),r.setHours(a[0],a[1],0,0),(r.getTime()-o.getTime())/1e3/60}static HourTimeinMunutes(e){const n=bt.SplitHourTime(e);return n[0]*60+n[1]}static SplitHourTime(e){const n=e.split(":");return[Number(n[0]),Number(n[1])]}static AddMinutesToHM(e,n){const o=new Date,r=bt.SplitHourTime(e);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return`${a}:${c}`}getMonthsDiff(e,n){return n.getMonth()-e.getMonth()+12*(n.getFullYear()-e.getFullYear())}stringToDate(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}}const vi=t=>t===8||t===46,gh=t=>t>46&&t<58,yh=t=>t>34&&t<41,wh=t=>t+".",bh=(t,e,n)=>{vi(e)||yh(e)||(!gh(e)||n>9)&&t.preventDefault()};function Sh(t,e){if(e>8){let n=t.substring(0,2).replace(".","1");Number(n)>31&&(n="31");let o=t.substring(3,5).replace(".","1");Number(o)>12&&(o="12");let r=t.substring(6,10).replace(".","1");Number(r)>2100&&(r="2100"),t=n+"."+o+"."+r}return t}function Ch(t){const e=t.keyCode;let n=t.srcElement.value;const o=n.length;bh(t,e,o),!vi(e)&&(o===2||o===5)&&(n=wh(n));const r=t.srcElement.value+String.fromCharCode(t.which);if(vi(e)){t.srcElement.value=n;return}n.length===0&&Number(r)>3&&(n="3",t.preventDefault()),n.length===1&&Number(r)>31&&(n="31",t.preventDefault()),r.length===5&&Number(r.substring(3,5))>12&&(n=n.substring(0,3)+"12",t.preventDefault()),n=Sh(n,o),t.srcElement.value=n}class Mi{static GetPeriod(e,n){return Ot.Get(Ve.Format(e),Ve.Format(n))}static GetDateOrToday(e){return e?e.date:new Date}static InPeriod(e,n,o){return Ot.In(new Date(e),new Date(n),new Date(o))}static GetDatesFromPeriod(e,n){const o=[new Date(e)];let r=e;for(;r<=n;)r=Mi.AddDays(r,1),o.push(r);return o}static AddDays(e,n){const o=new Date(e);return o.setDate(o.getDate()+n),o}static Eq(e,n){return e.getTime()===n.getTime()}}class kh{constructor(){l(this,"dragged",!1);l(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(e){this.dragged=!0,e&&e.dataTransfer&&e.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class bs{static Get(e){const n=e.split(".");return n[n.length-1]}}const Eh=(()=>{function t(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function e(s,a){const c=localStorage.getItem(`${s}_favourite`);return c?c.split(",").includes(a):!1}function n(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c){t(s,[a]);return}const d=c.split(",");d.push(a),t(s,d)}function o(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c)return;const d=c.split(",").filter(u=>u!==a);t(s,d)}function r(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:n,removeFromFavourite:o,setFavourite:t,isFavourite:e,clearFavourite:r}})();function Ss(t,e){const n=[];if(t)for(let o=0;o<Math.ceil(t.length/e);o++)n[o]=t.slice(o*e,o*e+e);return n}function vh(t,e){t[e].order=e-1,t[e-1]&&(t[e-1].order=e),[t[e],t[e-1]]=[t[e-1],t[e]]}function Mh(t,e){t[e].order=e+1,t[e+1]&&(t[e+1].order=e),[t[e],t[e+1]]=[t[e+1],t[e]]}class We{}l(We,"Auth",i.reactive(yi)),l(We,"AdminUI",i.reactive(ls)),l(We,"Dialog",i.reactive(us)),l(We,"Notification",i.reactive(ps)),l(We,"Loading",i.reactive(hs)),l(We,"Paginator",i.reactive(gs)),l(We,"Store",as);const Tn=class Tn{static Format(e){let n=e;if(!n)e=n;else{(n[0]==="7"||n[0]==="8")&&n.length!==1&&(n=n.slice(1));const o=n.replace(/\+7|[^\d]/g,""),r=o.length;switch(!0){case r===0:e="";break;case(r===1&&n.length===1&&o==="7"):case(r===1&&n.length===1&&o==="8"):e="+7 (";break;case r<4:e=`+7 (${o}`;break;case r<7:e=`+7 (${o.slice(0,3)}) ${o.slice(3)}`;break;case r<9:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}`;break;default:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}-${o.slice(8,10)}`;break}}return e}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};l(Tn,"validatePhone",(e,n,o)=>{Tn.getPhoneRegExp().test(n)||!n?o():o(new Error("Пожалуйста, введите корректный номер телефона"))});let Bi=Tn;const Bh=[{path:"/",redirect:"/login"},{path:"/login",component:()=>Promise.resolve().then(()=>Tm),meta:{layout:"LoginLayout"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:()=>Promise.resolve().then(()=>Om)}],je=class je{static SetRouter(e){this.router=e,this.AddRoutes(Bh)}static GetRouter(){return this.router}static AddRoutes(e){e.forEach(n=>{this.GetRouter().addRoute(n)})}static async To(e){N.Loading.Show(),await this.GetRouter().push(e),N.Loading.Hide()}static async ToHome(){N.Loading.Show(),N.Loading.Hide()}static async Replace(e){await this.GetRouter().replace(e)}static Id(){return je.GetStringParam("id")}static Slug(){return je.GetStringParam("slug")}static async Back(){N.Loading.Show(),this.GetRouter().go(-1),N.Loading.Hide()}static GetQid(){return je.GetStringQueryParam("qid")}static Route(){return this.GetRouter().currentRoute.value}static RouterPushBlank(e){const n=this.GetRouter().resolve({path:e});window.open(n==null?void 0:n.href,"_blank")}static GetPath(){var n;const e=(n=je.Route())==null?void 0:n.path.split("/");return!e||e.length<=0?"":e[e.length-1]}static async ToAdmin(e){if(!e){await this.GetRouter().push("/admin");return}let n=e;n[0]==="/"&&(n=e.substring(1)),await je.To(`/admin/${n}`)}static GetStringQueryParam(e){return String(this.Route().query[e])}static GetNumberQueryParam(e){return Number(this.Route().query[e]??0)}static GetStringParam(e){return this.Route().params[e]}static Resolve(e){return this.GetRouter().resolve(e)}};l(je,"router");let ot=je;class Ih{static async Auth(e){e&&e()}static Dev(){}}class $h{constructor(){l(this,"startHour",9);l(this,"startHM",`${this.startHour}:00`);l(this,"endHour",19);l(this,"endHM",`${this.endHour}:00`);l(this,"timelinePxHeight",50);l(this,"timelineStep",_t.FiveMinutes);l(this,"timelines",Cn[_t.FiveMinutes])}periodIsCorrect(e,n){return _.GtOrEq(e,this.startHM)&&_.GtOrEq(this.endHM,n)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Cn[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Ae.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(e,n,o,r){return r.filter(s=>s.id!==o).every(s=>!_.PeriodsIntersects(e,n,s.startTime,s.endTime))}sortByStartTime(e){e.sort((n,o)=>_.HMtoM(n.startTime)-_.HMtoM(o.startTime))}}const xh=-68;function Nh(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(t),o=e??xh;let r=0;n&&(r=n.getBoundingClientRect().top+o+document.body.scrollTop),r&&document.body.scrollTo({top:r,behavior:"smooth"})}class Cs{static Sort(e){e.forEach((n,o)=>n.order=o)}}class Ii{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(Ii,"staticUrl","");function Rh(t,e){let n=!0;return t.value.validate((o,r)=>(o||(e?N.Notification.Error("Пожалуйста, проверьте правильность введенных данных"):N.Notification.Error(N.Notification.FormMessage(r)),n=!1),n)),n}const Ah=t=>new Promise(e=>{if(document.querySelector(t))return e(document.querySelector(t));const n=new MutationObserver(()=>{document.querySelector(t)&&(n.disconnect(),e(document.querySelector(t)))});n.observe(document.body,{childList:!0,subtree:!0})});class kn{constructor(e){l(this,"id");l(this,"message","");l(this,"userName");l(this,"createdOn",new Date);l(this,"chatId");l(this,"type","message");v.BuildClass(this,e)}static Create(e,n,o,r){const s=new kn;return s.id=de(),s.chatId=e,s.message=o,s.userName=r,s}static CreatePingMessage(){const e=new kn;return e.type="ping",e.id=de(),e}isMessage(){return this.type==="message"||this.type===""}}const Vh="";class Ph{constructor(e="",n="",o="set"){l(this,"client");l(this,"endpoint","");l(this,"query","");l(this,"period",2e4);v.BuildClass(this,{endpoint:e,query:n,mutation:o}),this.connect(),this.ping()}send(e){!this.client||this.client.readyState!==1||this.client.send(e)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(kn.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,Vh.replace("http","ws")).toString()}connect(){this.client=new WebSocket(this.buildUrl()),this.client.onclose=this.reconnect,this.client.onerror=this.reconnect}reconnect(){setTimeout(this.connect,3e3)}}const $i=i.defineComponent({__name:"PInputDate",props:i.mergeModels({placeholder:{type:String,default:"Укажите дату"},width:{type:String,required:!1,default:"auto"},margin:{type:String,required:!1,default:""},label:{type:String,default:"",required:!1}},{modelValue:{default:new Date},modelModifiers:{}}),emits:i.mergeModels(["update:modelValue","change","beforeChange"],["update:modelValue"]),setup(t,{emit:e}){const n=e,o=i.useModel(t,"modelValue"),r=Ve.Format(o.value),s=i.ref(r),a=d=>{if(!c(d))return;const u=Ve.FromRuStr(d);o.value=u,n("beforeChange",u),n("change",u)},c=d=>d.length!=10?(s.value=r,N.Notification.Error("Неверный формат даты"),!1):Number(s.value.slice(0,2))>31?(s.value=r,N.Notification.Error("Неверный день месяца"),!1):Number(s.value.slice(3,5))>12?(s.value=r,N.Notification.Error("Неверный месяц"),!1):Number(s.value.slice(6,10))>2100?(s.value=r,N.Notification.Error("Неверный год"),!1):!0;return(d,u)=>{const h=qe;return i.openBlock(),i.createElementBlock("div",{class:"style-container",style:i.normalizeStyle({width:t.width,position:"relative"})},[i.createVNode(h,{modelValue:i.unref(s),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(s)?s.value=f:null),mask:"##.##.####",placeholder:t.placeholder,margin:t.margin,label:t.label,onBlur:a,onKeydown:i.withKeys(i.withModifiers(f=>{},["prevent"]),["enter"])},null,8,["modelValue","placeholder","margin","label","onKeydown"])],4)}}}),Fh={class:"number"},ks=M(i.defineComponent({__name:"PInputNumber",props:{modelValue:{type:Number,required:!0,default:0}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.modelValue??0),s=()=>{r.value++,o("update:modelValue",r.value),o("change")},a=()=>{r.value--,o("update:modelValue",r.value),o("change")},c=()=>{o("update:modelValue",r.value),o("change")};return(d,u)=>(i.openBlock(),i.createElementBlock("div",Fh,[i.createElementVNode("button",{class:"number-minus",type:"button",onClick:a},u[1]||(u[1]=[i.createElementVNode("svg",{class:"icon-minus"},[i.createElementVNode("use",{"xlink:href":"#minus"})],-1)])),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=h=>i.isRef(r)?r.value=h:null),class:"input-field",type:"number",min:"0",step:"0.1",onInput:c},null,544),[[i.vModelText,i.unref(r)]]),i.createElementVNode("button",{class:"number-plus",type:"button",onClick:s},u[2]||(u[2]=[i.createElementVNode("svg",{class:"icon-plus"},[i.createElementVNode("use",{"xlink:href":"#plus"})],-1)]))]))}}),[["__scopeId","data-v-f53b6419"]]),Th=["innerHTML"],zh={key:1},we=M(i.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"var(--font-color)"},fontSize:{type:String,required:!1,default:"var(--font-size-default)"},fontWeight:{type:String,required:!1,default:""},background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},justifyContent:{type:String,required:!1,default:"center"},isHtml:{type:Boolean,required:!1,default:!1}},emits:["click"],setup(t){const e=t,n={color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,background:e.background,padding:e.padding,width:e.width,maxWidth:e.width,minWidth:e.minWidth,margin:e.margin,justifyContent:e.justifyContent};return(o,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["string",t.customClass]),style:n,onClick:r[0]||(r[0]=s=>o.$emit("click"))},[t.isHtml?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:t.string},null,8,Th)):(i.openBlock(),i.createElementBlock("span",zh,i.toDisplayString(t.string),1))],2))}}),[["__scopeId","data-v-bd8f6c8f"]]),Es=M(i.defineComponent({__name:"PLeftSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть меню"},titleClose:{type:String,required:!1,default:"Показать меню"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.open);i.watch(()=>n.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>{const d=we;return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.shift?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle({minWidth:t.widthClosed,maxWidth:t.widthClosed})},null,4)),i.createElementVNode("div",{class:"LS-body",style:i.normalizeStyle({marginLeft:i.unref(r)?"0":`calc(${t.widthClosed} - ${t.widthOpened})`,minWidth:t.widthOpened,maxWidth:t.widthOpened,boxShadow:t.shadow?"5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:t.shift?"relative":"absolute",background:t.background})},[i.createElementVNode("div",{class:"LS-content",style:i.normalizeStyle({width:`calc(${t.widthOpened} - ${t.widthClosed})`})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],4),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({width:t.widthClosed}),onClick:c[0]||(c[0]=u=>s(!i.unref(r)))},[i.unref(r)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4)],4)],64)}}}),[["__scopeId","data-v-3ea7497e"]]),vs=M(i.defineComponent({__name:"PList",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"300px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("ul",{style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-84953e34"]]),Ms=M(i.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("li",{style:i.normalizeStyle({margin:t.margin,padding:t.padding,borderBottom:t.showDivider?"1px solid":"none"})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-4cb3c766"]]),Dh=["for"],Lh=["id","name","checked","value"],Bs=M(i.defineComponent({__name:"PRadio",props:i.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:"14px"},size:{type:String,default:"20px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:"auto"},value:{type:[String,Boolean],default:void 0}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),o=e,r=t,s=q.CreateGuid(),a=i.computed(()=>n.value===r.value),c=()=>{o("change",r.value)};return(d,u)=>(i.openBlock(),i.createElementBlock("div",{class:"radio-line",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createElementVNode("label",{class:"radio-field__label",for:i.unref(s),style:i.normalizeStyle({fontSize:t.fontSize})},[i.withDirectives(i.createElementVNode("input",{id:i.unref(s),"onUpdate:modelValue":u[0]||(u[0]=h=>n.value=h),name:t.name,checked:i.unref(a),class:"radio-field__input",type:"radio",value:t.value},null,8,Lh),[[i.vModelRadio,n.value]]),i.createElementVNode("div",{class:"box",style:i.normalizeStyle({width:t.size,height:t.size,borderRadius:t.borderRadius}),onClick:c},[n.value===t.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"radio-dot",style:i.normalizeStyle({width:`calc(${t.size} - 50%)`,height:`calc(${t.size} - 50%)`})},null,4)):i.createCommentVNode("",!0)],4),i.createElementVNode("span",{onClick:c},i.toDisplayString(t.label),1)],12,Dh)],4))}}),[["__scopeId","data-v-a8f68add"]]),Oh={class:"wrapper"},_h={class:"content"},Is=M(i.defineComponent({__name:"PRightSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть"},titleClose:{type:String,required:!1,default:"Показать"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.open);i.watch(()=>n.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>{const d=we;return i.openBlock(),i.createElementBlock("div",Oh,[i.createElementVNode("div",_h,[i.renderSlot(a.$slots,"content",{},void 0,!0)]),i.createElementVNode("div",{class:"RS-body",style:i.normalizeStyle({marginRight:i.unref(r)?"0":`calc(${t.widthClosed} - ${t.widthOpened})`,minWidth:t.widthOpened,maxWidth:t.widthOpened,boxShadow:t.shadow?"-5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:t.shift?"relative":"absolute"})},[i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({width:t.widthClosed}),onClick:c[0]||(c[0]=u=>s(!i.unref(r)))},[i.unref(r)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4),i.createElementVNode("div",{class:"RS-content",style:i.normalizeStyle({width:`calc(${t.widthOpened} - ${t.widthClosed} - 2px)`,background:t.background})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],4)],4)])}}}),[["__scopeId","data-v-6f8cc35c"]]),xi=M(i.defineComponent({__name:"IconSelectArrow",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-down",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},[i.createElementVNode("path",{d:"M3.08417 4.43062C2.86268 4.4769 2.70731 4.56285 2.52549 4.74467C2.29408 4.97607 2.20152 5.2174 2.22136 5.55459C2.25111 6.0207 1.96681 5.70996 6.78995 10.5397C9.18995 12.9463 11.2263 14.9662 11.309 15.029C11.5238 15.1843 11.7123 15.2471 11.99 15.2505C12.4693 15.2538 12.109 15.581 17.1106 10.5728C22.0891 5.58764 21.7288 5.98103 21.7255 5.505C21.7255 5.37607 21.7023 5.21078 21.6726 5.13145C21.5106 4.68186 21.0511 4.38434 20.5817 4.4174C20.1519 4.44715 20.4263 4.19591 16.0164 8.60252L11.9833 12.629L8.06598 8.71161C5.91061 6.55624 4.0726 4.73475 3.98003 4.66202C3.71227 4.45376 3.38499 4.36781 3.08417 4.43062Z",fill:"currentColor"}),i.createElementVNode("path",{d:"M9.69602 16.8994C9.70593 16.9292 9.72577 17.0184 9.73569 17.1044C9.76213 17.2664 9.7985 17.2994 9.83486 17.1903C9.84478 17.154 9.89106 17.1143 9.93734 17.1044C10.0464 17.078 10.0365 17.0548 9.87453 16.9589C9.6861 16.8465 9.67288 16.8432 9.69602 16.8994Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-db435ef1"]]),qt=M(i.defineComponent({__name:"IconClose",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#close"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},[i.createElementVNode("path",{d:"M7.53508 7.18138C7.03684 7.5158 6.86132 8.14496 7.1161 8.66643C7.18971 8.8138 8.02201 9.69236 9.44881 11.1207C10.6718 12.345 11.8211 13.49 12.0023 13.6714L12.3251 14.0058L9.80551 16.5224C7.92576 18.4043 7.25199 19.1184 7.14441 19.3225C6.83867 19.9346 7.0425 20.5865 7.637 20.8926C7.89745 21.0286 8.41268 21.0343 8.6618 20.9096C8.76372 20.8585 10.0037 19.6626 11.4191 18.2455L14.001 15.6666L16.5432 18.2229C18.1964 19.8723 19.1703 20.8132 19.3232 20.8869C19.5779 21.0116 20.0309 21.0399 20.2913 20.9379C20.5178 20.8529 20.8632 20.5015 20.9368 20.2747C21.0274 19.9913 21.0161 19.5719 20.9028 19.3508C20.8519 19.2431 19.6516 17.9961 18.2361 16.5791L15.6656 14.0001L18.2191 11.4495C19.7138 9.95309 20.8179 8.80813 20.8858 8.6721C21.0104 8.42837 21.0387 7.98058 20.9425 7.73119C20.8519 7.50446 20.5971 7.23239 20.3593 7.11336C20.0988 6.97733 19.6516 6.96599 19.3628 7.08502C19.2212 7.14737 18.3097 8.01459 16.5771 9.74904L14.001 12.328L11.4191 9.75471C9.6583 7.99192 8.77504 7.14737 8.63349 7.08502C8.51459 7.03968 8.28246 7 8.1126 7C7.86347 7 7.76156 7.03401 7.53508 7.18138Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-8d8cfcf1"]]),Hh=["for"],qh={class:"field"},Uh={class:"left-field"},Wh={class:"arrow"},Gh={selected:"",hidden:""},jh={class:"right-field"},rt=M(i.defineComponent({inheritAttrs:!1,__name:"PSelect",props:i.mergeModels({label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},value:{type:String,default:"",required:!1},readonly:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},clearable:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:""}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change","clear"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),o=i.ref(!0),r=e,s=i.ref(!1),a=()=>{o.value=!1,r("change",n.value)},c=()=>{r("clear",void 0),r("change",void 0),o.value=!0};return(d,u)=>{const h=xi;return i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Hh)):i.createCommentVNode("",!0),i.createElementVNode("div",qh,[i.createElementVNode("div",Uh,[i.renderSlot(d.$slots,"left",{},void 0,!0)]),i.createElementVNode("div",{class:"sl",onMouseover:u[1]||(u[1]=f=>s.value=!0),onMouseleave:u[2]||(u[2]=f=>s.value=!1)},[t.clearable?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"clear",onClick:c},[i.createVNode(qt,{margin:"0"})],512)),[[i.vShow,i.unref(s)]]):i.createCommentVNode("",!0),i.createElementVNode("div",Wh,[i.createVNode(h,{margin:"2px 2px 0 0"})]),i.withDirectives(i.createElementVNode("select",i.mergeProps(d.$attrs,{"onUpdate:modelValue":u[0]||(u[0]=f=>n.value=f),class:"text-field__input",onChange:a}),[i.createElementVNode("option",Gh,i.toDisplayString(t.placeholder),1),i.renderSlot(d.$slots,"default",{},void 0,!0)],16),[[i.vModelSelect,n.value]])],32),i.createElementVNode("div",jh,[i.renderSlot(d.$slots,"right",{},void 0,!0)])])],4)}}}),[["__scopeId","data-v-eab44241"]]),En=M(i.defineComponent({__name:"PSticky",props:{shadow:{type:Boolean,default:!1},zIndex:{type:Number,default:0},background:{type:String,default:"inherit"},padding:{type:String,default:"0"},top:{type:String,default:"0"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"sticky-block",style:i.normalizeStyle({zIndex:1+t.zIndex,top:t.top,background:t.background,padding:t.padding,boxShadow:t.shadow?"0 0 5px 2px rgba(0,0,0,0.3)":"none"})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-db44b76d"]]),Zh=["for"],Yh={class:"left-field"},Jh={class:"right-field"},$s=M(i.defineComponent({__name:"PTextarea",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:"0"},padding:{type:String,default:"0",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t){const e=i.useModel(t,"modelValue");return(n,o)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Zh)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",Yh,[i.renderSlot(n.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("textarea",i.mergeProps(n.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=r=>e.value=r),class:"text-field__input",style:{color:t.color},onBlur:o[1]||(o[1]=r=>n.$emit("blur",e.value)),onInput:o[2]||(o[2]=r=>n.$emit("input",e.value))}),null,16),[[i.vModelText,e.value],[i.unref(Bo),t.mask]]),i.createElementVNode("div",Jh,[i.renderSlot(n.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-172b61e5"]]),Xh={class:"top-slider-content"},Qh={class:"center"},xs=M(i.defineComponent({__name:"PTopSlider",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},open:{type:Boolean,default:!1}},emits:["open"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.open);i.watch(()=>n.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=i.withModifiers(d=>r.value=!0,["prevent"])),c[1]||(c[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(r)?"0":`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`,height:t.sliderOnHeight}),onClick:c[3]||(c[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Xh,[i.createElementVNode("div",Qh,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:c[2]||(c[2]=d=>s(!i.unref(r)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-12ffd2e2"]]),Ut=M(i.defineComponent({__name:"PModal",props:{showCloseDialog:{type:Boolean,required:!1,default:!1},closable:{type:Boolean,required:!1,default:!1},show:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:String,default:"760px"},margin:{type:String,default:"auto"},top:{type:String,default:"20vh"},padding:{type:String,default:"var(--modal-window-padding)"},showClose:{type:Boolean,default:!1}},emits:["save","close"],setup(t,{emit:e}){const n=t,o=e,r=a=>{a.key==="Escape"&&s()};i.onMounted(()=>{document.body.addEventListener("keydown",r)}),i.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",r)});const s=()=>{n.closable&&o("close")};return(a,c)=>{const d=qt;return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.show?(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:s})):i.createCommentVNode("",!0),t.show?(i.openBlock(),i.createElementBlock("div",{key:1,class:"modal-w",style:i.normalizeStyle({maxWidth:t.width,width:t.width,margin:t.margin,padding:t.padding,top:t.top})},[t.closable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"icon-box",onClick:s},[i.createVNode(d,{size:"20px"})])):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"default",{},void 0,!0)],4)):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-41f0eae5"]]),Kh={class:"btn-group"},vn=M(i.defineComponent({__name:"AuthForm",props:{width:{type:String,default:"300px"},margin:{type:String,default:"auto"},padding:{type:String,default:"60px 100px"}},emits:["submit"],setup(t,{emit:e}){const n=N.Auth.Form,o=i.ref(!1),r=e,s=i.computed(()=>n.GetButtons()),a=async c=>{await N.Auth.Form.Block(async()=>{if(!c.submit)return n.SetStatus(c.GetStatus());const d=n.Validate();if(d.length>0){N.Notification.Error(d.join(", "));return}r("submit")})};return i.onBeforeUnmount(()=>{n.Reset()}),(c,d)=>{const u=qe,h=pe;return i.openBlock(),i.createElementBlock("div",{class:"auth-card",style:i.normalizeStyle({width:t.width,margin:t.margin,padding:t.padding})},[i.createElementVNode("div",null,i.toDisplayString(("PHelp"in c?c.PHelp:i.unref(N)).Auth.Form.GetTitle()),1),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(("PHelp"in c?c.PHelp:i.unref(N)).Auth.Form.GetFields(),f=>(i.openBlock(),i.createBlock(u,{id:f.id,key:f,modelValue:f.value,"onUpdate:modelValue":p=>f.value=p,placeholder:f.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","placeholder"]))),128)),i.createVNode(h,{type:"primary",skin:"text_ano",text:"Забыли пароль?",width:"124px",margin:"0 0 0 5px"}),i.createElementVNode("div",Kh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),f=>(i.openBlock(),i.createBlock(h,{id:f.id,key:f.GetStatus(),disabled:i.unref(o),type:"primary",skin:"base",text:f.text,color:f.submit?"blue":"grey",margin:"10px 0 0 0",width:"100%",height:"52px",onClick:p=>a(f)},null,8,["id","disabled","text","color","onClick"]))),128))])])],4)}}}),[["__scopeId","data-v-e716ebe9"]]),Ns=i.defineComponent({__name:"AuthModal",emits:["submit"],setup(t){const e=()=>{N.Auth.Form.Reset(),N.Auth.Modal.Close()};return(n,o)=>{const r=vn,s=Ut;return i.openBlock(),i.createBlock(s,{show:("PHelp"in n?n.PHelp:i.unref(N)).Auth.Modal.IsVisible(),closable:("PHelp"in n?n.PHelp:i.unref(N)).Auth.Modal.IsClosable(),onClose:e},{default:i.withCtx(()=>[i.createVNode(r,{width:"760px",onAction:o[0]||(o[0]=a=>n.$emit("submit"))})]),_:1},8,["show","closable"])}}}),Wt=M(i.defineComponent({__name:"GridContainer",props:{maxWidth:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"100%"},background:{type:String,required:!1,default:"inherit"},gridGap:{type:String,required:!1,default:"10px"},gridTemplateColumns:{type:String,required:!1,default:"repeat(auto-fit, minmax(250px, 1fr))"},gridTemplateRows:{type:String,required:!1,default:"repeat(0 0px)"},margin:{type:String,required:!1,default:"10px 0 0 0"},customClass:{type:String,required:!1,default:""}},setup(t){return i.useCssVars(e=>({59355408:t.maxWidth,"24aaa640":t.width,"0833ce18":t.background,"65d0bfaa":t.gridGap,"2373d8d7":t.gridTemplateColumns,ea2919c2:t.gridTemplateRows,"5f2f1c74":t.margin})),(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["grid-block",t.customClass])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-352a1099"]]);var Oe=(t=>(t.None="None",t.Next="Next",t.Prev="Prev",t))(Oe||{});const ef={class:"container"},tf={class:"slide-box"},nf={class:"link-number"},of=["id","onClick"],Rs=M(i.defineComponent({__name:"CarouselImages",props:{events:{type:Array,required:!0},quantity:{type:Number,default:1,required:!1},animationTime:{type:Number,default:500},height:{type:String,default:"360px"},maxHeight:{type:String,default:"360px"},startActiveGroupIndex:{type:Number,default:0}},emits:["openModalWindow"],setup(t){i.useCssVars(y=>({"17adb052":n}));const e=t,n=`${e.animationTime}ms`,o=i.ref(e.startActiveGroupIndex),r=i.ref(Oe.None),s=i.ref(Ss(e.events,e.quantity)),a=i.computed(()=>s.value[o.value]);i.onMounted(()=>{});const c=()=>o.value=o.value+1<s.value.length?o.value+1:0,d=()=>o.value=o.value-1<0?s.value.length-1:o.value-1,u=y=>{r.value=y,setTimeout(()=>r.value=Oe.None,e.animationTime)},h=y=>{y!=o.value&&(u(y<o.value?Oe.Prev:Oe.Next),setTimeout(()=>o.value=y,e.animationTime/2))},f=()=>{u(Oe.Next),setTimeout(c,e.animationTime/2)},p=()=>{u(Oe.Prev),setTimeout(d,e.animationTime/2)};return(y,g)=>(i.openBlock(),i.createElementBlock("div",{class:"field",style:i.normalizeStyle({height:t.height,maxHeight:t.maxHeight})},[i.createElementVNode("div",ef,[(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:g[0]||(g[0]=i.withModifiers(k=>p(),["stop"]))},g[2]||(g[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)]))),i.createElementVNode("div",tf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),(k,b)=>(i.openBlock(),i.createElementBlock("div",{key:b,class:i.normalizeClass({animationnext:i.unref(r)===i.unref(Oe).Next,animationprev:i.unref(r)===i.unref(Oe).Prev})},g[3]||(g[3]=[i.createElementVNode("div",{class:"image"},[i.createElementVNode("div",{class:"image-box"})],-1)]),2))),128))]),(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:g[1]||(g[1]=i.withModifiers(k=>f(),["stop"]))},g[4]||(g[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])))]),i.createElementVNode("div",nf,[i.createVNode(Wt,{"grid-template-columns":"repeat(auto-fit, minmax(26px, 1fr))","grid-gap":"5px",margin:"0"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),(k,b)=>(i.openBlock(),i.createElementBlock("div",{id:b.toString(),key:b,class:"number",style:i.normalizeStyle({background:b.toString()===i.unref(o).toString()?"#9D9D9D":""}),onClick:i.withModifiers(I=>h(b),["stop"])},i.toDisplayString(b+1),13,of))),128))]),_:1})])],4))}}),[["__scopeId","data-v-3493284a"]]);class Mn{constructor(e){l(this,"id");l(this,"ratio",0);l(this,"src","");l(this,"store","");v.BuildClass(this,e)}static CreateCropper(e,n,o){const r=new Mn;return r.src=e,r.id=o,n&&(r.ratio=n),r}}let rf=class{constructor(){l(this,"cropper",new Mn)}Open(e){this.cropper=e}Cropper(){return this.cropper}Ratio(){return this.cropper.ratio}};const Ni=new rf,Ri=M(i.defineComponent({__name:"EmailForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{wi.Update(e.value)};return(o,r)=>{const s=qe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{modelValue:e.value.address,"onUpdate:modelValue":r[0]||(r[0]=a=>e.value.address=a),onBlur:n},null,8,["modelValue"]),i.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":r[1]||(r[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-bbe15030"]]),Ai=M(i.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{await Si.Update(e.value)};return(o,r)=>{const s=qe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{modelValue:e.value.number,"onUpdate:modelValue":r[0]||(r[0]=a=>e.value.number=a),onBlur:n},null,8,["modelValue"]),i.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":r[1]||(r[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-9d94e007"]]),sf={key:0,class:"contact-container"},af={class:"bottom-buttons"},lf={class:"list-number"},cf={class:"bottom-buttons"},df={class:"list-number"},As=M(i.defineComponent({__name:"ContactForm",props:i.mergeModels({full:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{},o=async a=>{e.value.removeEmail(a)},r=async()=>{},s=async a=>{e.value.removePhone(a)};return(a,c)=>{const d=qe,u=pe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.full?(i.openBlock(),i.createElementBlock("div",sf,[i.createVNode(d,{modelValue:e.value.description,"onUpdate:modelValue":c[0]||(c[0]=h=>e.value.description=h),label:"Описание"},null,8,["modelValue"]),i.createVNode(d,{modelValue:e.value.time,"onUpdate:modelValue":c[1]||(c[1]=h=>e.value.time=h),label:"Время работы"},null,8,["modelValue"]),i.createVNode(d,{modelValue:e.value.latitude,"onUpdate:modelValue":c[2]||(c[2]=h=>e.value.latitude=h),label:"Широта (для карты)"},null,8,["modelValue"]),i.createVNode(d,{modelValue:e.value.longitude,"onUpdate:modelValue":c[3]||(c[3]=h=>e.value.longitude=h),label:"Долгота (для карты)"},null,8,["modelValue"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"contact-container",style:i.normalizeStyle({background:e.value.phones.length?"":"#F9FAFB"})},[i.createElementVNode("div",af,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({color:e.value.phones.length?"#303133":"#c4c4c4"})},"Телефоны",4),i.createVNode(u,{class:"admin-add",text:"+ Добавить",onClick:c[4]||(c[4]=h=>r())})]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.value.phones,(h,f)=>(i.openBlock(),i.createElementBlock("div",{key:h.id,class:"contact-container-item"},[i.createVNode(u,{class:"admin-del",text:"Удалить",onClick:p=>s(h.id)},null,8,["onClick"]),i.createElementVNode("div",lf,i.toDisplayString(f+1),1),i.createVNode(Ai,{modelValue:e.value.phones[f],"onUpdate:modelValue":p=>e.value.phones[f]=p},null,8,["modelValue","onUpdate:modelValue"])]))),128))],4),i.createElementVNode("div",{class:"contact-container",style:i.normalizeStyle({background:e.value.emails.length?"":"#F9FAFB"})},[i.createElementVNode("div",cf,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({color:e.value.emails.length?"#303133":"#c4c4c4"})},"Электронная почта",4),i.createVNode(u,{class:"admin-add",text:"+ Добавить",onClick:c[5]||(c[5]=h=>n())})]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.value.emails,(h,f)=>(i.openBlock(),i.createElementBlock("div",{key:h.id,class:"contact-container-item"},[i.createVNode(u,{class:"admin-del",text:"Удалить",onClick:p=>o(h.id)},null,8,["onClick"]),i.createElementVNode("div",df,i.toDisplayString(f+1),1),i.createVNode(Ri,{modelValue:e.value.emails[f],"onUpdate:modelValue":p=>e.value.emails[f]=p},null,8,["modelValue","onUpdate:modelValue"])]))),128))],4)],64)}}}),[["__scopeId","data-v-5abf9c52"]]),Vs=i.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.x),s=i.ref(n.y),a=i.computed(()=>r.value+"px"),c=i.computed(()=>s.value+"px"),d=()=>{o("close")};return(u,h)=>{const f=i.resolveDirective("click-outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:"context-window",style:i.normalizeStyle({left:i.unref(a),top:i.unref(c)})},[i.renderSlot(u.$slots,"default")],4)),[[f,d]])}}}),uf={class:"date-range"},Ps=M(i.defineComponent({__name:"DateInputRange",props:{start:{type:Date,default:void 0},end:{type:Date,default:void 0}},emits:["update:start","update:end","setStart","setEnd"],setup(t,{emit:e}){const n=t,o=e;i.watch(()=>[n.start,n.end],()=>{n.start||(r.value=void 0),n.end||(s.value=void 0)});const r=i.ref(n.start),s=i.ref(n.end),a=d=>{if(r.value=d,!n.end||d>n.end){N.Notification.Warning("Дата начала больше даты окончания");return}o("update:start",d),o("setStart",d)},c=d=>{if(s.value=d,!n.start||d<n.start){N.Notification.Warning("Дата начала больше даты окончания");return}o("update:end",d),o("setEnd",d)};return(d,u)=>{const h=$i;return i.openBlock(),i.createElementBlock("div",uf,[i.createVNode(h,{"model-value":i.unref(r),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(r)?r.value=f:null),onChange:a},null,8,["model-value"]),u[2]||(u[2]=i.createTextVNode(" - ")),i.createVNode(h,{"model-value":i.unref(s),"onUpdate:modelValue":u[1]||(u[1]=f=>i.isRef(s)?s.value=f:null),onChange:c},null,8,["model-value"])])}}}),[["__scopeId","data-v-aac32b2f"]]),hf=i.defineComponent({name:"DateInputRangeV2"}),ff={class:"date-range"};function mf(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",ff,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const Fs=M(hf,[["render",mf],["__scopeId","data-v-80580591"]]),pf={class:"drop-item"},gf={key:0,class:"drop-item-list"},Ts=M(i.defineComponent({__name:"DropList",props:{name:{type:String,default:"Name"},rolledUp:{type:Boolean,default:!0}},setup(t){const e=t,n=i.ref(e.rolledUp),o=async()=>{n.value=!n.value};return(r,s)=>{const a=we,c=i.resolveComponent("IconArrowDrop");return i.openBlock(),i.createElementBlock("div",pf,[i.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=d=>o())},[i.createVNode(a,{"font-size":"13px","font-weight":"600",string:t.name,"justify-content":"left",width:"auto",margin:"0 5px 0 0",padding:"6px 0",color:"inherit"},null,8,["string"]),i.createElementVNode("div",{style:i.normalizeStyle({transform:i.unref(n)?"":"rotate(-90deg)",display:"flex",alignItems:"center",margin:"0 0 2px 0"})},[i.createVNode(c,{size:"10px",margin:"0"})],4)]),i.unref(n)?(i.openBlock(),i.createElementBlock("div",gf,[i.renderSlot(r.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-75ec18f4"]]),zs=M(i.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new Wn,required:!0}},emits:["load"],setup(t,{emit:e}){const n=t,o=i.ref(!1),r=e,s=()=>{n.model.setBoolean(o.value),o.value?ee.Get().setF(n.model):ee.Get().removeF(n.model),r("load")};return(a,c)=>{const d=Hn;return i.openBlock(),i.createBlock(d,{modelValue:i.unref(o),"onUpdate:modelValue":c[0]||(c[0]=u=>i.isRef(o)?o.value=u:null),label:t.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-ae33ede2"]]),yf={key:0,class:"blur"},wf={style:{display:"flex","justify-content":"center"}},st=M(i.defineComponent({__name:"InfoItem",props:{background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},openWidth:{type:String,required:!1,default:"auto"},openHeight:{type:String,required:!1,default:"auto"},maxWidth:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},height:{type:String,required:!1,default:""},withOpenWindow:{type:Boolean,required:!1,default:!0},colorSelected:{type:String,required:!1,default:"#1979CF"},borderColor:{type:String,required:!1,default:"#E3E3E3"},withHover:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},close:{type:Boolean,required:!1,default:!0},baseBoxMargin:{type:String,required:!1,default:""},closeWindowOverflow:{type:String,required:!1,default:""},showSaveDialog:{type:Boolean,required:!1,default:!1}},emits:["click","keyup-enter","after-close"],setup(t,{emit:e}){const n=t,o=e,r=n.customClass!==""?n.customClass:"inside-class",s=i.ref(!1),a=i.ref(!1),c=i.ref(!1),d=i.ref(n.close);i.watch(()=>n.close,()=>{a.value=!1});const u=z=>{z.stopPropagation(),z.key==="Escape"&&(n.showSaveDialog?c.value=!0:a.value=!1)};i.watch(a,async()=>{var z,F;await i.nextTick(),a.value?((F=(z=document.getElementById("info-item-opened-content"))==null?void 0:z.querySelector("input"))==null||F.focus(),document.body.addEventListener("keydown",u)):document.body.removeEventListener("keydown",u,!1),a.value===!1&&o("after-close")});const h=()=>{o("click"),a.value=!!n.withOpenWindow,d.value!==n.close&&(a.value=!1,d.value=!d.value)},f=i.computed(()=>n.customClass===""?{width:n.width,minHeight:"40px",height:"auto",maxWidth:n.maxWidth,minWidth:n.minWidth,margin:n.baseBoxMargin}:void 0),p=i.computed(()=>a.value&&n.withOpenWindow),y=i.computed(()=>({background:n.background?n.background:void 0,zIndex:p.value?"2":"0",padding:p.value?"0":n.padding,margin:n.margin,width:p.value?n.openWidth:n.width,height:p.value?n.openHeight:n.height,minHeight:"40px",maxWidth:n.maxWidth,minWidth:n.minWidth,borderColor:s.value||a.value?n.colorSelected:n.borderColor,color:s.value?n.colorSelected:"#343E5C",boxShadow:s.value||a.value?`0px 0px 1px 1px ${n.colorSelected}`:"none",alignItems:p.value?"end":"center",cursor:(n.withHover,"pointer")})),g=i.computed(()=>({height:p.value?"0":"",overflow:n.closeWindowOverflow,width:n.width})),k=i.computed(()=>({height:p.value?"auto":"0"})),b=i.computed(()=>({color:s.value?n.colorSelected:"#343E5C",fill:s.value?n.colorSelected:"#343E5C",background:n.background})),I=()=>{n.showSaveDialog?c.value=!0:a.value=!1},L=async()=>{await o("keyup-enter"),n.close&&(a.value=!1),c.value=!1},O=()=>{a.value=!1,c.value=!1};return(z,F)=>{const Ee=we,Ie=pe,Ze=Ut,vt=i.resolveDirective("click-outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(a)?(i.openBlock(),i.createElementBlock("div",yf)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"base-box",style:i.normalizeStyle(i.unref(f)),onClick:F[2]||(F[2]=i.withModifiers(zn=>h(),["prevent","stop"]))},[i.createElementVNode("div",{class:i.normalizeClass(["body",i.unref(r)]),style:i.normalizeStyle(i.unref(y)),onMouseenter:F[0]||(F[0]=zn=>t.withHover?s.value=!0:s.value=!1),onMouseleave:F[1]||(F[1]=zn=>s.value=!1)},[i.unref(a)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["close-window",t.customClass]),style:i.normalizeStyle(i.unref(g))},[i.renderSlot(z.$slots,"default",{},void 0,!0)],6)),i.unref(a)?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:1,id:"info-item-opened-content",class:"open-window",style:i.normalizeStyle(i.unref(k))},[i.renderSlot(z.$slots,"open-inside-content",{},void 0,!0)],4)),[[vt,I,void 0,{prevent:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"top-title",style:i.normalizeStyle(i.unref(b))},[i.renderSlot(z.$slots,"title",{},()=>[i.createVNode(Ee,{string:t.title,"font-size":"10px",padding:"0 0 0 3px",style:i.normalizeStyle({color:i.unref(s)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),i.createVNode(Ze,{show:i.unref(c),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:i.withCtx(()=>[i.createElementVNode("div",wf,[i.createVNode(Ie,{text:"Не сохранять",onClick:O}),i.createVNode(Ie,{text:"Сохранять",onClick:L})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-4788a262"]]),Ds=M(i.defineComponent({__name:"FiltersButtonsSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(t,{emit:e}){const n=e,o=i.ref(void 0),r=async a=>{ee.Get().replaceF(a,o.value),o.value=a,ee.Get().p.drop()},s=async a=>{await r(a),n("load")};return(a,c)=>{const d=we,u=pe,h=Wt,f=st;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(d,{string:t.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),i.createVNode(f,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"#F5F5F5","border-color":"#C4C4C4",padding:"7px","with-hover":!1},{title:i.withCtx(()=>c[0]||(c[0]=[])),default:i.withCtx(()=>[i.createVNode(h,{"max-width":"100%","grid-gap":"7px","grid-template-columns":"repeat(auto-fit, minmax(100%, 1fr))",margin:"0px"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(p,y)=>(i.openBlock(),i.createBlock(u,{key:y,color:"blue",height:"auto",text:p.label,"is-toggle":p.valueEq(i.unref(o)),"toggle-mode":!0,inverse:t.inverse,onClick:g=>s(p.valueEq(i.unref(o))?void 0:p)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-04775fc7"]]),bf=["value","label"],Ls=M(i.defineComponent({__name:"FilterSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(t,{emit:e}){const n=e,o=ee.Get(),r=i.ref(void 0),s=async c=>{o.replaceF(c,r.value),r.value=c},a=async c=>{c?await s(r.value):await s(void 0),n("load")};return(c,d)=>{const u=rt;return i.openBlock(),i.createBlock(u,{modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=h=>i.isRef(r)?r.value=h:null),clearable:i.unref(r),placeholder:t.defaultLabel,onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,value:h,label:h.label},null,8,bf))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ea2463cc"]]),Os=M(i.defineComponent({__name:"FTSPPanel",setup(t){return i.onBeforeMount(async()=>{}),(e,n)=>(i.openBlock(),i.createElementBlock("div"))}}),[["__scopeId","data-v-a4a3cc13"]]),_s=M(i.defineComponent({__name:"GeneralItem",props:{background:{type:String,required:!1,default:"#ffffff"},height:{type:String,required:!1,default:"40px"},width:{type:String,required:!1,default:"auto"},ready:{type:String,required:!1,default:"0%"},padding:{type:String,required:!1,default:"10px"},borderColor:{type:String,required:!1,default:"#343D5C"},margin:{type:String,required:!1,default:"5px"},scale:{type:Boolean,required:!1,default:!0},fontSize:{type:String,required:!1,default:"14px"},withIcon:{type:Boolean,required:!1,default:!1}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock("div",{class:"general-block-item",style:i.normalizeStyle({background:t.background,height:t.height,width:t.width,borderColor:t.borderColor,padding:t.padding,margin:t.margin,transform:t.scale&&i.unref(e)?"scale(1.03, 1.03)":""}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},[i.createElementVNode("div",{class:"green",style:i.normalizeStyle({width:`${t.ready}`})},null,4),i.createElementVNode("div",{class:"general-block-item-title",style:i.normalizeStyle({fontSize:t.fontSize})},[i.renderSlot(n.$slots,"general-item",{},void 0,!0)],4),i.createElementVNode("div",{class:"tools-icon",style:i.normalizeStyle({display:t.withIcon?"flex":"none"})},o[2]||(o[2]=[i.createElementVNode("svg",{class:"icon-del"},[i.createElementVNode("use",{"xlink:href":"#del"})],-1)]),4),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"del",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},[i.createElementVNode("path",{d:"M2.91797 8.75C2.6888 8.75 2.49255 8.66833 2.32922 8.505C2.16589 8.34167 2.08436 8.14556 2.08464 7.91667V2.5H1.66797V1.66667H3.7513V1.25H6.2513V1.66667H8.33464V2.5H7.91797V7.91667C7.91797 8.14583 7.8363 8.34208 7.67297 8.50542C7.50964 8.66875 7.31352 8.75028 7.08464 8.75H2.91797ZM7.08464 2.5H2.91797V7.91667H7.08464V2.5ZM3.7513 7.08333H4.58464V3.33333H3.7513V7.08333ZM5.41797 7.08333H6.2513V3.33333H5.41797V7.08333Z"})])],-1))],36))}}),[["__scopeId","data-v-d7e51e08"]]),Vi=M(i.defineComponent({__name:"IconDownload",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#download"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"download",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M15.6443 5.06141C15.0797 5.29331 15.0998 5.06141 15.0998 12.1393C15.0998 15.7388 15.0696 18.6728 15.0293 18.6728C14.9889 18.6728 14.1521 17.8763 13.1842 16.9083C11.6819 15.4061 11.3592 15.1338 11.0467 15.0733C10.724 15.0229 10.6333 15.0632 10.3611 15.3254C10.1292 15.5573 10.0586 15.7186 10.0586 16.0211C10.0586 16.3941 10.1594 16.5151 12.8615 19.2071C15.4326 21.7681 15.6947 22 16.0073 22C16.3198 22 16.582 21.7681 19.153 19.2071C21.9156 16.4546 21.9559 16.4042 21.9559 15.9908C21.9559 15.4867 21.6535 15.1641 21.109 15.0733C20.736 15.0128 20.7259 15.0229 18.8808 16.868C17.0357 18.6929 17.0155 18.7131 17.0155 18.3703C17.0054 18.1787 16.9953 15.2145 16.9853 11.7965L16.9651 5.56554L16.713 5.31348C16.4307 5.03117 15.9669 4.92026 15.6443 5.06141Z"}),i.createElementVNode("path",{d:"M5.30247 20.3872L5 20.6997L5.04033 22.081C5.07058 23.4321 5.08066 23.4825 5.44363 24.2488C6.09899 25.6099 7.17782 26.5173 8.59945 26.8904C9.47663 27.1122 22.5335 27.1223 23.4006 26.8904C25.044 26.4669 26.3245 25.2671 26.8084 23.7043C26.9496 23.2506 27 22.7868 27 21.8794C27 20.6796 27 20.6695 26.7076 20.3771C26.3144 19.9839 25.901 19.9839 25.4675 20.3771L25.1347 20.6695L25.1045 21.8189C25.0843 22.8776 25.0541 23.0086 24.7516 23.6035C24.3987 24.3093 23.7938 24.8235 23.088 25.0251C22.5839 25.1663 9.4363 25.1663 8.93217 25.0251C8.30706 24.8436 7.64161 24.3093 7.29881 23.7144C7.00642 23.2002 6.98625 23.0691 6.93584 21.9197L6.88543 20.6695L6.5527 20.3771C6.11916 19.9839 5.70577 19.9839 5.30247 20.3872Z"})])],-1))],64))}}),[["__scopeId","data-v-40934683"]]),Pi=M(i.defineComponent({__name:"IconFilter",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#filter"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"filter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M8.58216 5.14236C6.22884 5.77558 4.70721 8.02494 5.04745 10.3688C5.61452 14.2627 10.3684 15.8127 13.0714 12.9962C13.6385 12.4103 14.319 11.2194 14.319 10.8225C14.319 10.6902 14.9428 10.6713 20.3771 10.6713H26.4353L26.7094 10.3972C27.0969 10.0097 27.0969 9.44261 26.7094 9.05511L26.4353 8.78103H20.396H14.3662L14.1867 8.23287C13.4589 5.9646 10.8599 4.52803 8.58216 5.14236ZM10.9638 7.21215C13.0525 8.24232 13.0336 11.2194 10.9355 12.2496C10.2172 12.5993 9.20593 12.6276 8.54436 12.2968C6.21939 11.1533 6.43676 7.81702 8.8846 7.01368C9.45166 6.8341 10.3495 6.91916 10.9638 7.21215Z"}),i.createElementVNode("path",{d:"M21.5953 17.6266C21.1133 17.7211 20.2155 18.0519 19.8752 18.2599C18.9868 18.7986 18.0322 20.0083 17.8054 20.8778L17.6826 21.3504H12.3616C6.66257 21.3504 6.63422 21.3504 6.37904 21.8135C6.20892 22.1443 6.26562 22.6452 6.51135 22.9287L6.73818 23.1933L12.1915 23.2406L17.6448 23.2878L17.8621 23.8738C18.4292 25.4427 19.7334 26.6052 21.2929 26.936C22.1057 27.1061 23.3154 27.0021 24.062 26.6997C25.3379 26.1799 26.4059 25.0174 26.8029 23.7037C26.9635 23.165 27.0013 22.8625 26.9635 22.0781C26.9352 21.1991 26.8974 21.0479 26.5855 20.3864C25.8105 18.7513 24.2794 17.7117 22.5499 17.6172C22.1529 17.5983 21.7276 17.6077 21.5953 17.6266ZM23.5517 19.8004C24.081 20.0556 24.5913 20.5754 24.8748 21.1519C24.9977 21.4071 25.045 21.7095 25.045 22.3427C25.045 23.1555 25.0261 23.2311 24.7236 23.7415C23.5611 25.6412 20.8014 25.5656 19.7902 23.5997C19.5066 23.0421 19.4405 22.0119 19.6484 21.3787C20.1682 19.8004 22.0206 19.0537 23.5517 19.8004Z"})])],-1))],64))}}),[["__scopeId","data-v-496ff188"]]),Hs=M(i.defineComponent({__name:"IconArrowLeft",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-left",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[i.createElementVNode("path",{d:"M13.4323 2.0816C13.3788 2.0909 13.2951 2.12113 13.2462 2.14904C13.1997 2.17462 11.5439 3.85601 9.56715 5.8816C6.70668 8.81648 5.96017 9.59322 5.90436 9.69787C5.84622 9.8095 5.83691 9.85601 5.83691 9.99787C5.83691 10.1397 5.84622 10.1886 5.90436 10.2979C6.00436 10.4886 13.102 17.7746 13.2764 17.8653C13.3695 17.9142 13.423 17.9258 13.5555 17.9258C13.916 17.9235 14.1788 17.6583 14.1788 17.2932C14.1788 17.0374 14.1392 16.9769 13.623 16.4467C13.3695 16.1862 11.8555 14.6328 10.2555 12.9909C8.65552 11.349 7.35087 9.99787 7.35552 9.9909C7.36017 9.9816 8.86715 8.43276 10.7044 6.54904C12.5416 4.66532 14.0671 3.08392 14.0951 3.03508C14.2392 2.79555 14.1951 2.45834 13.9927 2.25834C13.8462 2.1095 13.6323 2.04206 13.4323 2.0816Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-11a9207f"]]),qs=M(i.defineComponent({__name:"IconEdit",props:{size:{type:String,default:""},margin:{type:String,default:"0 15px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#edit"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M21.993 4.16087C21.6831 4.26049 21.2404 4.48185 20.9969 4.64787C20.1778 5.22342 4.60489 20.9402 4.39459 21.4051C4.11789 22.0138 3 25.8434 3 26.1865C3 26.5961 3.30991 27.1938 3.65302 27.4373C4.2507 27.8689 4.58275 27.8468 6.88493 27.1716C8.06923 26.8174 9.23138 26.4411 9.47488 26.3194C10.0062 26.0537 25.4795 10.6468 26.0772 9.79458C26.8519 8.67669 26.9626 7.32637 26.3871 6.10887C25.6234 4.48185 23.6754 3.61853 21.993 4.16087ZM24.0406 6.25276C24.7379 6.70655 25.0035 7.69162 24.6272 8.44426C24.4501 8.78737 9.331 24.0393 8.73332 24.471C8.48982 24.6481 5.2247 25.6995 5.13616 25.6331C5.11402 25.611 5.42393 24.5042 5.82239 23.1871L6.12123 22.1909L14.1125 14.1886C22.5243 5.76576 22.4911 5.79896 23.3101 5.94285C23.4983 5.97605 23.8192 6.11994 24.0406 6.25276Z",fill:"currentColor"}),i.createElementVNode("path",{d:"M15.098 25.9216C14.5446 26.1872 14.4118 27.1169 14.8656 27.5265C15.0759 27.7146 15.4743 27.7257 21.1302 27.7589C25.325 27.781 27.273 27.7478 27.4722 27.6703C28.0367 27.4268 28.1806 26.6521 27.7489 26.154L27.4833 25.8441L21.4069 25.822C17.2674 25.8109 15.264 25.833 15.098 25.9216Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-74cd505c"]]),Us=M(i.defineComponent({__name:"IconEmail",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#email"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"email",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V5.913C2.02243 5.39779 2.24301 4.91116 2.61568 4.5547C2.98835 4.19824 3.4843 3.99951 4 4H20C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20ZM4 7.868V18H20V7.868L12 13.2L4 7.868ZM4.8 6L12 10.8L19.2 6H4.8Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-b89c9521"]]),Ws=M(i.defineComponent({__name:"IconMove",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#icon-move"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"icon-move",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22"},[i.createElementVNode("path",{d:"M8.91736 3.08529L6.83471 5.17059H8.0843H9.33058V7.25588V9.34117H7.24793H5.16529L5.15868 8.09993L5.14876 6.85868L3.07273 8.93404L1 11.0127L3.08264 13.098L5.16529 15.1833V13.9321V12.6843H7.24793H9.33058V14.7696V16.8548H7.89256C7.10248 16.8548 6.45455 16.8648 6.45785 16.878C6.45785 16.8946 6.60992 17.0402 6.79504 17.2057C7.16529 17.5367 8.90744 19.1189 9.38017 19.5525C10.7058 20.7639 10.9967 21.0188 11.0331 20.999C11.0562 20.9857 12.0876 20.0523 13.3273 18.9236L15.5785 16.8714L14.124 16.8615L12.6694 16.8548V14.7696V12.6843H14.7521H16.8347V13.9255C16.8347 14.6074 16.8446 15.1668 16.8612 15.1668C16.8975 15.1668 21 11.0491 21 11.0127C21 10.9763 16.8975 6.85868 16.8612 6.85868C16.8446 6.85868 16.8347 7.41807 16.8347 8.09993V9.34117H14.7521H12.6694V7.25588V5.17059H13.9091C14.5901 5.17059 15.1488 5.16066 15.1488 5.14411C15.1488 5.12094 11.043 1 11.0165 1C11.0066 1 10.0612 1.93673 8.91736 3.08529ZM12.081 3.24086C12.6595 3.82011 13.1322 4.30337 13.1322 4.31661C13.1322 4.33316 12.8413 4.34309 12.4876 4.34309H11.843V7.25588V10.1687H14.7686H17.6942V9.53646C17.6909 9.18891 17.6975 8.89763 17.7041 8.89101C17.7074 8.88439 18.1934 9.36103 18.7785 9.9469L19.843 11.0127L18.7686 12.0885L17.6942 13.1642V12.9325C17.6909 12.8034 17.6876 12.5155 17.6843 12.2871L17.6777 11.8733L14.762 11.8634L11.843 11.8568V14.7696V17.6823L12.6331 17.689L13.4264 17.6989L12.2165 18.7978L11.0066 19.9L10.7223 19.6419C10.5669 19.5028 10.4314 19.3804 10.4215 19.3704C10.405 19.3539 9.92893 18.917 9.28099 18.3311C9.09917 18.1656 8.86777 17.9538 8.7686 17.8578L8.58678 17.6823H9.37355H10.157V14.7696V11.8568H7.24793H4.33884L4.33223 12.5022L4.32231 13.1477L3.25455 12.0785L2.19008 11.0127L3.25455 9.94359L4.32231 8.87446L4.33223 9.52322L4.33884 10.1687H7.24793H10.157V7.25588V4.34309L9.5124 4.33647L8.86446 4.32654L9.93223 3.25741C10.5174 2.67154 11.0066 2.1916 11.0165 2.1916C11.0264 2.1916 11.5058 2.66492 12.081 3.24086Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-47aba5d0"]]),Gs=M(i.defineComponent({__name:"IconPhone",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#phone"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"phone",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M19.4998 21.75H19.3723C4.63482 20.9025 2.54232 8.4675 2.24982 4.6725C2.22625 4.37744 2.26114 4.08062 2.35248 3.79906C2.44382 3.5175 2.58981 3.25673 2.78211 3.03169C2.9744 2.80665 3.20921 2.62177 3.47308 2.48763C3.73695 2.35349 4.02469 2.27274 4.31982 2.25H8.45232C8.75274 2.24971 9.04632 2.33963 9.29504 2.50812C9.54377 2.67661 9.73617 2.9159 9.84732 3.195L10.9873 6C11.0971 6.27266 11.1243 6.57156 11.0657 6.85957C11.007 7.14758 10.865 7.412 10.6573 7.62L9.05982 9.2325C9.30936 10.6506 9.98846 11.9578 11.0052 12.9772C12.022 13.9967 13.3274 14.6792 14.7448 14.9325L16.3723 13.32C16.5834 13.1146 16.8504 12.9759 17.1398 12.9213C17.4292 12.8666 17.7283 12.8983 17.9998 13.0125L20.8273 14.145C21.1022 14.2597 21.3367 14.4536 21.501 14.702C21.6653 14.9504 21.7519 15.2422 21.7498 15.54V19.5C21.7498 20.0967 21.5128 20.669 21.0908 21.091C20.6689 21.5129 20.0966 21.75 19.4998 21.75ZM4.49982 3.75C4.30091 3.75 4.11014 3.82902 3.96949 3.96967C3.82884 4.11032 3.74982 4.30109 3.74982 4.5V4.56C4.09482 9 6.30732 19.5 19.4548 20.25C19.5534 20.2561 19.6521 20.2427 19.7454 20.2105C19.8388 20.1783 19.9248 20.1281 19.9987 20.0626C20.0726 19.9971 20.1328 19.9176 20.1759 19.8288C20.219 19.74 20.2441 19.6436 20.2498 19.545V15.54L17.4223 14.4075L15.2698 16.545L14.9098 16.5C8.38482 15.6825 7.49982 9.1575 7.49982 9.09L7.45482 8.73L9.58482 6.5775L8.45982 3.75H4.49982Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-cb2db6a7"]]),Fi=M(i.defineComponent({__name:"IconSearch",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#search"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M11 19C12.775 18.9996 14.4988 18.4054 15.897 17.312L20.293 21.708L21.707 20.294L17.311 15.898C18.405 14.4997 18.9996 12.7754 19 11C19 6.589 15.411 3 11 3C6.589 3 3 6.589 3 11C3 15.411 6.589 19 11 19ZM11 5C14.309 5 17 7.691 17 11C17 14.309 14.309 17 11 17C7.691 17 5 14.309 5 11C5 7.691 7.691 5 11 5Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-1b900a88"]]),Ti=M(i.defineComponent({__name:"ArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M656.733 149.806C659.446 147.019 662.69 144.804 666.274 143.292C669.857 141.779 673.707 141 677.597 141C681.486 141 685.337 141.779 688.92 143.292C692.503 144.804 695.748 147.019 698.461 149.806C704.024 155.518 707.138 163.176 707.138 171.15C707.138 179.123 704.024 186.782 698.461 192.494L386.589 512.366L698.461 832.302C701.269 835.176 703.483 838.575 704.976 842.305C706.47 846.035 707.215 850.022 707.167 854.04C707.119 858.057 706.281 862.026 704.699 865.72C703.118 869.413 700.824 872.759 697.949 875.566C695.211 878.242 691.972 880.351 688.417 881.774C684.863 883.197 681.063 883.904 677.235 883.857C673.407 883.809 669.625 883.007 666.107 881.497C662.589 879.986 659.404 877.797 656.733 875.054L325.085 534.702C319.26 528.726 316 520.711 316 512.366C316 504.021 319.26 496.006 325.085 490.03L656.733 149.806Z"})])],-1))],64))}}),[["__scopeId","data-v-31d7e282"]]),zi=M(i.defineComponent({__name:"ArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M366.436 875.054C363.723 877.84 360.479 880.055 356.895 881.568C353.312 883.08 349.462 883.859 345.572 883.859C341.683 883.859 337.832 883.08 334.249 881.568C330.666 880.055 327.421 877.84 324.708 875.054C319.145 869.342 316.031 861.683 316.031 853.71C316.031 845.736 319.145 838.077 324.708 832.366L636.58 512.494L324.708 192.558C321.9 189.684 319.686 186.284 318.193 182.555C316.699 178.825 315.954 174.837 316.002 170.82C316.049 166.802 316.888 162.833 318.47 159.14C320.051 155.446 322.345 152.1 325.22 149.294C327.958 146.618 331.197 144.508 334.752 143.086C338.306 141.663 342.106 140.955 345.934 141.003C349.762 141.05 353.544 141.852 357.062 143.363C360.58 144.873 363.765 147.063 366.436 149.806L698.084 490.158C703.909 496.134 707.169 504.148 707.169 512.494C707.169 520.839 703.909 528.854 698.084 534.83L366.436 875.054Z"})])],-1))],64))}}),[["__scopeId","data-v-ac346343"]]),Di=M(i.defineComponent({__name:"DoubleArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"double-arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M529.408 149.376C532.121 146.589 535.365 144.374 538.949 142.862C542.532 141.35 546.382 140.57 550.272 140.57C554.161 140.57 558.011 141.35 561.595 142.862C565.178 144.374 568.422 146.589 571.136 149.376C576.699 155.088 579.813 162.746 579.813 170.72C579.813 178.694 576.699 186.352 571.136 192.064L259.264 511.936L571.136 831.872C573.943 834.746 576.157 838.145 577.651 841.875C579.145 845.605 579.889 849.593 579.842 853.61C579.794 857.628 578.956 861.597 577.374 865.29C575.792 868.984 573.499 872.329 570.624 875.136C567.886 877.812 564.647 879.922 561.092 881.344C557.538 882.767 553.738 883.475 549.91 883.427C546.081 883.38 542.3 882.578 538.782 881.067C535.264 879.556 532.079 877.367 529.408 874.624L197.76 534.272C191.935 528.296 188.675 520.281 188.675 511.936C188.675 503.591 191.935 495.576 197.76 489.6L529.408 149.376ZM785.408 149.376C788.121 146.589 791.365 144.374 794.949 142.862C798.532 141.35 802.382 140.57 806.272 140.57C810.161 140.57 814.011 141.35 817.595 142.862C821.178 144.374 824.422 146.589 827.136 149.376C832.699 155.088 835.813 162.746 835.813 170.72C835.813 178.694 832.699 186.352 827.136 192.064L515.264 511.936L827.136 831.872C829.943 834.746 832.157 838.145 833.651 841.875C835.145 845.605 835.889 849.593 835.842 853.61C835.794 857.628 834.956 861.597 833.374 865.29C831.792 868.984 829.499 872.329 826.624 875.136C823.886 877.812 820.647 879.922 817.092 881.344C813.538 882.767 809.738 883.475 805.91 883.427C802.081 883.38 798.3 882.578 794.782 881.067C791.264 879.556 788.079 877.367 785.408 874.624L453.76 534.272C447.935 528.296 444.675 520.281 444.675 511.936C444.675 503.591 447.935 495.576 453.76 489.6L785.408 149.376Z"})])],-1))],64))}}),[["__scopeId","data-v-646afc45"]]),Li=M(i.defineComponent({__name:"DoubleArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"double-arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M495.111 874.624C492.397 877.411 489.153 879.626 485.57 881.138C481.987 882.65 478.136 883.43 474.247 883.43C470.357 883.43 466.507 882.65 462.924 881.138C459.34 879.626 456.096 877.411 453.383 874.624C447.819 868.912 444.706 861.254 444.706 853.28C444.706 845.306 447.819 837.648 453.383 831.936L765.255 512.064L453.383 192.128C450.575 189.254 448.361 185.855 446.867 182.125C445.374 178.395 444.629 174.407 444.677 170.39C444.724 166.372 445.563 162.403 447.145 158.71C448.726 155.016 451.02 151.671 453.895 148.864C456.633 146.188 459.872 144.078 463.426 142.656C466.981 141.233 470.781 140.525 474.609 140.573C478.437 140.62 482.219 141.422 485.737 142.933C489.254 144.444 492.44 146.633 495.111 149.376L826.759 489.728C832.584 495.704 835.844 503.719 835.844 512.064C835.844 520.409 832.584 528.424 826.759 534.4L495.111 874.624ZM239.111 874.624C236.397 877.411 233.153 879.626 229.57 881.138C225.987 882.65 222.136 883.43 218.247 883.43C214.357 883.43 210.507 882.65 206.924 881.138C203.34 879.626 200.096 877.411 197.383 874.624C191.819 868.912 188.706 861.254 188.706 853.28C188.706 845.306 191.819 837.648 197.383 831.936L509.255 512.064L197.383 192.128C194.575 189.254 192.361 185.855 190.867 182.125C189.374 178.395 188.629 174.407 188.677 170.39C188.724 166.372 189.563 162.403 191.145 158.71C192.726 155.016 195.02 151.671 197.895 148.864C200.633 146.188 203.872 144.078 207.426 142.656C210.981 141.233 214.781 140.525 218.609 140.573C222.437 140.62 226.219 141.422 229.737 142.933C233.254 144.444 236.44 146.633 239.111 149.376L570.759 489.728C576.584 495.704 579.844 503.719 579.844 512.064C579.844 520.409 576.584 528.424 570.759 534.4L239.111 874.624Z"})])],-1))],64))}}),[["__scopeId","data-v-ef44f40e"]]),Oi=M(i.defineComponent({__name:"EllipsisSvg",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)]),38)),o[3]||(o[3]=i.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-1c5f4e97><symbol id="ellipsis" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" data-v-1c5f4e97><path d="M65 135C73.2843 135 80 128.284 80 120C80 111.716 73.2843 105 65 105C56.7157 105 50 111.716 50 120C50 128.284 56.7157 135 65 135Z" data-v-1c5f4e97></path><path d="M120 135C128.284 135 135 128.284 135 120C135 111.716 128.284 105 120 105C111.716 105 105 111.716 105 120C105 128.284 111.716 135 120 135Z" data-v-1c5f4e97></path><path d="M175 135C183.284 135 190 128.284 190 120C190 111.716 183.284 105 175 105C166.716 105 160 111.716 160 120C160 128.284 166.716 135 175 135Z" data-v-1c5f4e97></path></symbol></svg>',1))],64))}}),[["__scopeId","data-v-1c5f4e97"]]);function js(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?js(Object(n),!0).forEach(function(o){Me(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Me(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sf(t,e){if(t==null)return{};var n,o,r=function(a,c){if(a==null)return{};var d,u,h={},f=Object.keys(a);for(u=0;u<f.length;u++)d=f[u],c.indexOf(d)>=0||(h[d]=a[d]);return h}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)n=s[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function at(t){return function(e){if(Array.isArray(e))return _i(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return _i(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _i(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _i(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}var Zs,Cf,Bn,te=(Zs=function(t){/*!
25
25
  Copyright (c) 2018 Jed Watson.
26
26
  Licensed under the MIT License (MIT), see
27
27
  http://jedwatson.github.io/classnames
28
- */(function(){var e={}.hasOwnProperty;function n(){for(var o=[],r=0;r<arguments.length;r++){var s=arguments[r];if(s){var a=typeof s;if(a==="string"||a==="number")o.push(s);else if(Array.isArray(s)){if(s.length){var c=n.apply(null,s);c&&o.push(c)}}else if(a==="object")if(s.toString===Object.prototype.toString)for(var d in s)e.call(s,d)&&s[d]&&o.push(d);else o.push(s.toString())}}return o.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()},Ys($n={path:Cf,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e==null&&$n.path)}},$n.exports),$n.exports),Re=function(t){return function(e,n){if(!e)return t;var o;typeof e=="string"?o=e:n=e;var r=t;return o&&(r+="__"+o),r+(n?Object.keys(n).reduce(function(s,a){var c=n[a];return c&&(s+=" "+(typeof c=="boolean"?r+"--"+a:r+"--"+a+"_"+c)),s},""):"")}};function Wi(t,e,n){var o,r,s,a,c;function d(){var h=Date.now()-a;h<e&&h>=0?o=setTimeout(d,e-h):(o=null,n||(c=t.apply(s,r),s=r=null))}e==null&&(e=100);var u=function(){s=this,r=arguments,a=Date.now();var h=n&&!o;return o||(o=setTimeout(d,e)),h&&(c=t.apply(s,r),s=r=null),c};return u.clear=function(){o&&(clearTimeout(o),o=null)},u.flush=function(){o&&(c=t.apply(s,r),s=r=null,clearTimeout(o),o=null)},u}Wi.debounce=Wi;var Gi=Wi,V=function(){return V=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},V.apply(this,arguments)};/*! *****************************************************************************
28
+ */(function(){var e={}.hasOwnProperty;function n(){for(var o=[],r=0;r<arguments.length;r++){var s=arguments[r];if(s){var a=typeof s;if(a==="string"||a==="number")o.push(s);else if(Array.isArray(s)){if(s.length){var c=n.apply(null,s);c&&o.push(c)}}else if(a==="object")if(s.toString===Object.prototype.toString)for(var d in s)e.call(s,d)&&s[d]&&o.push(d);else o.push(s.toString())}}return o.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()},Zs(Bn={path:Cf,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e==null&&Bn.path)}},Bn.exports),Bn.exports),Ne=function(t){return function(e,n){if(!e)return t;var o;typeof e=="string"?o=e:n=e;var r=t;return o&&(r+="__"+o),r+(n?Object.keys(n).reduce(function(s,a){var c=n[a];return c&&(s+=" "+(typeof c=="boolean"?r+"--"+a:r+"--"+a+"_"+c)),s},""):"")}};function Hi(t,e,n){var o,r,s,a,c;function d(){var h=Date.now()-a;h<e&&h>=0?o=setTimeout(d,e-h):(o=null,n||(c=t.apply(s,r),s=r=null))}e==null&&(e=100);var u=function(){s=this,r=arguments,a=Date.now();var h=n&&!o;return o||(o=setTimeout(d,e)),h&&(c=t.apply(s,r),s=r=null),c};return u.clear=function(){o&&(clearTimeout(o),o=null)},u.flush=function(){o&&(c=t.apply(s,r),s=r=null,clearTimeout(o),o=null)},u}Hi.debounce=Hi;var qi=Hi,V=function(){return V=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},V.apply(this,arguments)};/*! *****************************************************************************
29
29
  Copyright (c) Microsoft Corporation.
30
30
 
31
31
  Permission to use, copy, modify, and/or distribute this software for any
@@ -38,5 +38,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
38
38
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
39
39
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
40
40
  PERFORMANCE OF THIS SOFTWARE.
41
- ***************************************************************************** */function Js(t,e){var n,o;return t&&e?(n=""+t+e[0].toUpperCase()+e.slice(1),o=t+"-"+e):(n=t||e,o=t||e),{name:n,classname:o}}function Xs(t){return/^blob:/.test(t)}function Qs(t){return Xs(t)||function(e){return/^data:/.test(e)}(t)}function kt(t){return!!(t&&t.constructor&&t.call&&t.apply)}function oe(t){return t===void 0}function xn(t){return typeof t=="object"&&t!==null}function ji(t,e,n){var o={};return xn(t)?(Object.keys(e).forEach(function(r){oe(t[r])?o[r]=e[r]:xn(e[r])?xn(t[r])?o[r]=ji(t[r],e[r],n[r]):o[r]=t[r]?e[r]:n[r]:e[r]===!0||e[r]===!1?o[r]=!!t[r]:o[r]=t[r]}),o):t?e:n}function Nn(t){var e=Number(t);return Number.isNaN(e)?t:e}function Ks(t){return typeof(t=="number"||function(e){return typeof e=="object"&&e!==null}(t)&&toString.call(t)=="[object Number]")&&!ea(t)}function ea(t){return t!=t}function ta(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var Zt=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},kf=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},Zi=function(t){this.type="move",this.directions=t},Ef=function(){function t(e,n,o,r,s){this.type="drag",this.nativeEvent=e,this.position=o,this.previousPosition=r,this.element=n,this.anchor=s}return t.prototype.shift=function(){var e=this,n=e.element,o=e.anchor,r=e.position;if(n){var s=n.getBoundingClientRect(),a=s.left,c=s.top;return{left:r.left-a-o.left,top:r.top-c-o.top}}return{left:0,top:0}},t}(),Yi={name:"DraggableElement",props:{classname:{type:String}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(t){t.cancelable&&!this.disabled&&t.touches.length===1&&(this.touches=ct(t.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),t.touches.length&&this.initAnchor(this.touches.reduce(function(e,n){return{clientX:e.clientX+n.clientX/t.touches.length,clientY:e.clientY+n.clientY/t.touches.length}},{clientX:0,clientY:0})),t.preventDefault&&t.preventDefault(),t.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(t){this.touches.length&&(this.processMove(t,t.touches),t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation())},onMouseDown:function(t){if(!this.disabled){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.draggable.getBoundingClientRect(),n=e.left,o=e.right,r=e.bottom,s=e.top;this.anchor={left:t.clientX-n,top:t.clientY-s,bottom:r-t.clientY,right:o-t.clientX}},processMove:function(t,e){var n=ct(e);if(this.touches.length){if(this.touches.length===1&&n.length===1){var o=this.$refs.draggable;this.$emit("drag",new Ef(t,o,{left:n[0].clientX,top:n[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=n}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};Yi.render=function(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{ref:"draggable",class:n.classname,onTouchstart:e[1]||(e[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:e[2]||(e[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onMouseover:e[3]||(e[3]=function(){return s.onMouseOver&&s.onMouseOver.apply(s,arguments)}),onMouseleave:e[4]||(e[4]=function(){return s.onMouseLeave&&s.onMouseLeave.apply(s,arguments)})},[i.renderSlot(t.$slots,"default")],34)};var Ji=Re("vue-handler-wrapper"),na={name:"HandlerWrapper",components:{DraggableElement:Yi},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var t;if(this.horizontalPosition||this.verticalPosition){var e,n=Js(this.horizontalPosition,this.verticalPosition);t=Ji((Be(e={},n.classname,!0),Be(e,"disabled",this.disabled),e))}else t=Ji({disabled:this.disabled});return{root:t,draggable:Ji("draggable")}}},emits:["leave","enter","drag","drag-end"]};na.render=function(t,e,n,o,r,s){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock("div",{class:s.classes.root},[i.createVNode(a,{class:s.classes.draggable,onDrag:e[1]||(e[1]=function(c){return t.$emit("drag",c)}),onDragEnd:e[2]||(e[2]=function(c){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(c){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(c){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])],2)};var vf=Re("vue-line-wrapper"),ia={name:"LineWrapper",components:{DraggableElement:Yi},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return vf((Be(t={},this.position,!0),Be(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};ia.render=function(t,e,n,o,r,s){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock(a,{class:s.classname,onDrag:e[1]||(e[1]=function(c){return t.$emit("drag",c)}),onDragEnd:e[2]||(e[2]=function(c){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(c){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(c){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])};var ze=["left","right","top","bottom"],Mf=["left","right"],Bf=["top","bottom"],If=["left","top"],$f=["fill-area","fit-area","stencil","none"],oa={left:0,top:0,width:0,height:0};function ra(t,e,n){return!(n=n||["width","height","left","top"]).some(function(o){return t[o]!==e[o]})}function De(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function Et(t,e){return{left:t.left-e.left,top:t.top-e.top}}function le(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function Yt(t,e){var n={left:0,top:0,right:0,bottom:0};return ze.forEach(function(o){var r=e[o],s=De(t)[o];n[o]=r!==void 0&&s!==void 0?o==="left"||o==="top"?Math.max(0,r-s):Math.max(0,s-r):0}),n}function Le(t,e){return{left:t.left-e.left,top:t.top-e.top,width:t.width+e.left+e.right,height:t.height+e.top+e.bottom}}function Rn(t){return{left:-t.left,top:-t.top}}function be(t,e){return V(V({},t),{left:t.left+e.left,top:t.top+e.top})}function Ie(t,e,n,o){if(e!==1){if(n){var r=le(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(n.left-r.left)*(1-e),top:t.top+t.height*(1-e)/2+(n.top-r.top)*(1-e)}}return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2,top:t.top+t.height*(1-e)/2}}return t}function G(t){return t.width/t.height}function vt(t,e){return Math.min(e.right!==void 0&&e.left!==void 0?(e.right-e.left)/t.width:1/0,e.bottom!==void 0&&e.top!==void 0?(e.bottom-e.top)/t.height:1/0)}function Mt(t,e){var n={left:0,top:0},o=Yt(t,e);return o.left&&o.left>0?n.left=o.left:o.right&&o.right>0&&(n.left=-o.right),o.top&&o.top>0?n.top=o.top:o.bottom&&o.bottom>0&&(n.top=-o.bottom),n}function Xi(t,e){var n;return e.minimum&&t<e.minimum?n=e.minimum:e.maximum&&t>e.maximum&&(n=e.maximum),n}function sa(t,e){var n=G(t),o=G(e);return e.width<1/0&&e.height<1/0?n>o?{width:e.width,height:e.width/n}:{width:e.height*n,height:e.height}:e.width<1/0?{width:e.width,height:e.width/n}:e.height<1/0?{width:e.height*n,height:e.height}:t}function aa(t,e){var n=e*Math.PI/180;return{width:Math.abs(t.width*Math.cos(n))+Math.abs(t.height*Math.sin(n)),height:Math.abs(t.width*Math.sin(n))+Math.abs(t.height*Math.cos(n))}}function Ze(t,e){var n=e*Math.PI/180;return{left:t.left*Math.cos(n)-t.top*Math.sin(n),top:t.left*Math.sin(n)+t.top*Math.cos(n)}}function An(t,e){var n=Yt(ce(t,e),e);return n.left+n.right+n.top+n.bottom?n.left+n.right>n.top+n.bottom?Math.min((t.width+n.left+n.right)/t.width,vt(t,e)):Math.min((t.height+n.top+n.bottom)/t.height,vt(t,e)):1}function ce(t,e,n){n===void 0&&(n=!1);var o=Mt(t,e);return be(t,n?Rn(o):o)}function Qi(t){return{width:t.right!==void 0&&t.left!==void 0?t.right-t.left:1/0,height:t.bottom!==void 0&&t.top!==void 0?t.bottom-t.top:1/0}}function xf(t,e){return V(V({},t),{minWidth:Math.min(e.width,t.minWidth),minHeight:Math.min(e.height,t.minHeight),maxWidth:Math.min(e.width,t.maxWidth),maxHeight:Math.min(e.height,t.maxHeight)})}function la(t,e,n){n===void 0&&(n=!0);var o={};return ze.forEach(function(r){var s=t[r],a=e[r];s!==void 0&&a!==void 0?o[r]=r==="left"||r==="top"?n?Math.max(s,a):Math.min(s,a):n?Math.min(s,a):Math.max(s,a):a!==void 0?o[r]=a:s!==void 0&&(o[r]=s)}),o}function Vn(t,e){return la(t,e,!0)}function ca(t){var e=t.size,n=t.aspectRatio,o=t.ignoreMinimum,r=t.sizeRestrictions;return!!((e.correctRatio||G(e)>=n.minimum&&G(e)<=n.maximum)&&e.height<=r.maxHeight&&e.width<=r.maxWidth&&e.width&&e.height&&(o||e.height>=r.minHeight&&e.width>=r.minWidth))}function da(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function He(t){var e=t.width,n=t.height,o=t.sizeRestrictions,r={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},s={width:Math.max(o.minWidth,Math.min(o.maxWidth,e)),height:Math.max(o.minHeight,Math.min(o.maxHeight,n))};function a(u,h){return h===void 0&&(h=!1),u.reduce(function(f,p){return ca({size:p,aspectRatio:r,sizeRestrictions:o,ignoreMinimum:h})&&(!f||da(p,{width:e,height:n})<da(f,{width:e,height:n}))?p:f},null)}var c=[];r&&[r.minimum,r.maximum].forEach(function(u){u&&c.push({width:s.width,height:s.width/u,correctRatio:!0},{width:s.height*u,height:s.height,correctRatio:!0})}),ca({size:s,aspectRatio:r,sizeRestrictions:o})&&c.push(s);var d=a(c)||a(c,!0);return d&&{width:d.width,height:d.height}}function Ki(t){var e=t.event,n=t.coordinates,o=t.positionRestrictions,r=o===void 0?{}:o,s=be(n,e.directions);return be(s,Mt(s,r))}function Nf(t){var e=t.coordinates,n=t.transform,o=t.imageSize,r=t.sizeRestrictions,s=t.positionRestrictions,a=t.aspectRatio,c=t.visibleArea,d=function(h,f){return Ki({coordinates:h,positionRestrictions:s,event:new Zi({left:f.left-h.left,top:f.top-h.top})})},u=V({},e);return(Array.isArray(n)?n:[n]).forEach(function(h){var f={};oe((f=typeof h=="function"?h({coordinates:u,imageSize:o,visibleArea:c}):h).width)&&oe(f.height)||(u=function(p,y){var g=V(V(V({},p),He({width:y.width,height:y.height,sizeRestrictions:r,aspectRatio:a})),{left:0,top:0});return d(g,{left:p.left,top:p.top})}(u,V(V({},u),f))),oe(f.left)&&oe(f.top)||(u=d(u,V(V({},u),f)))}),u}function Rf(t){t.event;var e=t.getAreaRestrictions,n=t.boundaries,o=t.coordinates,r=t.visibleArea;t.aspectRatio;var s=t.stencilSize,a=t.sizeRestrictions,c=t.positionRestrictions;t.stencilReference;var d,u,h,f=V({},o),p=V({},r),y=V({},s);d=G(y),u=G(f),h===void 0&&(h=.001),(d===0||u===0?Math.abs(u-d)<h:Math.abs(u/d)<1+h&&Math.abs(u/d)>1-h)||(f=V(V({},f),He({sizeRestrictions:a,width:f.width,height:f.height,aspectRatio:{minimum:G(y),maximum:G(y)}})));var g=An(p=Ie(p,f.width*n.width/(p.width*y.width)),e({visibleArea:p,type:"resize"}));return g!==1&&(p=Ie(p,g),f=Ie(f,g)),p=ce(p=be(p,Et(le(f),le(p))),e({visibleArea:p,type:"move"})),{coordinates:f=ce(f,Vn(De(p),c)),visibleArea:p}}function Af(t){var e=t.event,n=t.getAreaRestrictions,o=t.boundaries,r=t.coordinates,s=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var a=t.positionRestrictions;t.stencilReference;var c=V({},r),d=V({},s);if(r&&s&&e.type!=="manipulateImage"){var u={width:0,height:0};d.width,o.width,G(o)>G(c)?(u.height=.8*o.height,u.width=u.height*G(c)):(u.width=.8*o.width,u.height=u.width*G(c));var h=An(d=Ie(d,c.width*o.width/(d.width*u.width)),n({visibleArea:d,type:"resize"}));d=Ie(d,h),h!==1&&(u.height/=h,u.width/=h),d=ce(d=be(d,Et(le(c),le(d))),n({visibleArea:d,type:"move"})),c=ce(c,Vn(De(d),a))}return{coordinates:c,visibleArea:d}}function Vf(t){var e=t.event,n=t.coordinates,o=t.visibleArea,r=t.getAreaRestrictions,s=V({},o),a=V({},n);if(e.type==="setCoordinates"){var c=Math.max(0,a.width-s.width),d=Math.max(0,a.height-s.height);c>d?s=Ie(s,Math.min(a.width/s.width,vt(s,r({visibleArea:s,type:"resize"})))):d>c&&(s=Ie(s,Math.min(a.height/s.height,vt(s,r({visibleArea:s,type:"resize"}))))),s=ce(s=be(s,Rn(Mt(a,De(s)))),r({visibleArea:s,type:"move"}))}return{visibleArea:s,coordinates:a}}function Pf(t){var e=t.imageSize,n=t.visibleArea,o=t.coordinates,r=n||e;return{left:(n?n.left:0)+r.width/2-o.width/2,top:(n?n.top:0)+r.height/2-o.height/2}}function Ff(t){var e=t.imageSize,n=t.visibleArea,o=t.aspectRatio,r=t.sizeRestrictions,s=n||e,a=Math.min(o.maximum||1/0,Math.max(o.minimum||0,G(s))),c=s.width<s.height?{width:.8*s.width,height:.8*s.width/a}:{height:.8*s.height,width:.8*s.height*a};return He(V(V({},c),{aspectRatio:o,sizeRestrictions:r}))}function Tf(t){var e,n,o=t.imageSize,r=t.visibleArea,s=t.boundaries,a=t.aspectRatio,c=t.sizeRestrictions,d=t.stencilSize,u=r||o;return G(u)>G(s)?n=(e=d.height*u.height/s.height)*G(d):e=(n=d.width*u.width/s.width)/G(d),He({width:n,height:e,aspectRatio:a,sizeRestrictions:c})}function zf(t){var e=t.getAreaRestrictions,n=t.coordinates,o=t.imageSize,r=G(t.boundaries);if(n){var s={height:Math.max(n.height,o.height),width:Math.max(n.width,o.width)},a=sa({width:G(s)>r?s.width:s.height*r,height:G(s)>r?s.width/r:s.height},Qi(e())),c={left:n.left+n.width/2-a.width/2,top:n.top+n.height/2-a.height/2,width:a.width,height:a.height},d=Yt(n,De(V({left:0,top:0},o))),u={};return!d.left&&!d.right&&c.width<=o.width&&(u.left=0,u.right=o.width),!d.top&&!d.bottom&&c.height<=o.height&&(u.top=0,u.bottom=o.height),ce(c,u)}var h=G(o);return a={height:h>r?o.height:o.width/r,width:h>r?o.height*r:o.width},{left:o.width/2-a.width/2,top:o.height/2-a.height/2,width:a.width,height:a.height}}function Pn(t,e){return la(t,De(e))}function Df(t){var e=t.event,n=t.coordinates,o=t.visibleArea,r=t.sizeRestrictions,s=t.getAreaRestrictions,a=t.positionRestrictions,c=t.adjustStencil,d=e.scale,u=e.move,h=V({},o),f=V({},n),p=1,y=1,g=d.factor&&Math.abs(d.factor-1)>.001;h=be(h,{left:u.left||0,top:u.top||0});var k={stencil:{minimum:Math.max(r.minWidth?r.minWidth/f.width:0,r.minHeight?r.minHeight/f.height:0),maximum:Math.min(r.maxWidth?r.maxWidth/f.width:1/0,r.maxHeight?r.maxHeight/f.height:1/0,vt(f,a))},area:{maximum:vt(h,s({visibleArea:h,type:"resize"}))}};d.factor&&g&&(d.factor<1?(y=Math.max(d.factor,k.stencil.minimum))>1&&(y=1):d.factor>1&&(y=Math.min(d.factor,Math.min(k.area.maximum,k.stencil.maximum)))<1&&(y=1)),y&&(h=Ie(h,y,d.center));var b=n.left-o.left,I=o.width+o.left-(n.width+n.left),L=n.top-o.top,O=o.height+o.top-(n.height+n.top);return h=ce(h=be(h,Mt(h,{left:a.left!==void 0?a.left-b*y:void 0,top:a.top!==void 0?a.top-L*y:void 0,bottom:a.bottom!==void 0?a.bottom+O*y:void 0,right:a.right!==void 0?a.right+I*y:void 0})),s({visibleArea:h,type:"move"})),f.width=f.width*y,f.height=f.height*y,f.left=h.left+b*y,f.top=h.top+L*y,f=ce(f,Vn(De(h),a)),d.factor&&g&&c&&(d.factor>1?p=Math.min(k.area.maximum,d.factor)/y:d.factor<1&&(p=Math.max(f.height/h.height,f.width/h.width,d.factor/y)),p!==1&&(h=be(h=ce(h=Ie(h,p,d.factor>1?d.center:le(f)),s({visibleArea:h,type:"move"})),Rn(Mt(f,De(h)))))),{coordinates:f,visibleArea:h}}function Lf(t){var e=t.aspectRatio,n=t.getAreaRestrictions,o=t.coordinates,r=t.visibleArea,s=t.sizeRestrictions,a=t.positionRestrictions,c=t.imageSize,d=t.previousImageSize,u=t.angle,h=V({},o),f=V({},r),p=Ze(le(V({left:0,top:0},d)),u);return(h=V(V({},He({sizeRestrictions:s,aspectRatio:e,width:h.width,height:h.height})),Ze(le(h),u))).left-=p.left-c.width/2+h.width/2,h.top-=p.top-c.height/2+h.height/2,f=Ie(f,An(f,n({visibleArea:f,type:"resize"}))),{coordinates:h=ce(h,a),visibleArea:f=ce(f=be(f,Et(le(h),le(o))),n({visibleArea:f,type:"move"}))}}function Of(t){var e=t.flip,n=t.previousFlip,o=t.rotate,r=t.getAreaRestrictions,s=t.coordinates,a=t.visibleArea,c=t.imageSize,d=V({},s),u=V({},a),h=n.horizontal!==e.horizontal,f=n.vertical!==e.vertical;if(h||f){var p=Ze({left:c.width/2,top:c.height/2},-o),y=Ze(le(d),-o),g=Ze({left:h?p.left-(y.left-p.left):y.left,top:f?p.top-(y.top-p.top):y.top},o);d=be(d,Et(g,le(d))),y=Ze(le(u),-o),u=ce(u=be(u,Et(g=Ze({left:h?p.left-(y.left-p.left):y.left,top:f?p.top-(y.top-p.top):y.top},o),le(u))),r({visibleArea:u,type:"move"}))}return{coordinates:d,visibleArea:u}}function ua(t){var e=t.directions,n=t.coordinates,o=t.positionRestrictions,r=o===void 0?{}:o,s=t.sizeRestrictions,a=t.preserveRatio,c=t.compensate,d=V({},e),u=Le(n,d).width,h=Le(n,d).height;u<0&&(d.left<0&&d.right<0?(d.left=-(n.width-s.minWidth)/(d.left/d.right),d.right=-(n.width-s.minWidth)/(d.right/d.left)):d.left<0?d.left=-(n.width-s.minWidth):d.right<0&&(d.right=-(n.width-s.minWidth))),h<0&&(d.top<0&&d.bottom<0?(d.top=-(n.height-s.minHeight)/(d.top/d.bottom),d.bottom=-(n.height-s.minHeight)/(d.bottom/d.top)):d.top<0?d.top=-(n.height-s.minHeight):d.bottom<0&&(d.bottom=-(n.height-s.minHeight)));var f=Yt(Le(n,d),r);c&&(f.left&&f.left>0&&f.right===0?(d.right+=f.left,d.left-=f.left):f.right&&f.right>0&&f.left===0&&(d.left+=f.right,d.right-=f.right),f.top&&f.top>0&&f.bottom===0?(d.bottom+=f.top,d.top-=f.top):f.bottom&&f.bottom>0&&f.top===0&&(d.top+=f.bottom,d.bottom-=f.bottom),f=Yt(Le(n,d),r));var p={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(ze.forEach(function(k){var b=f[k];b&&d[k]&&(p[k]=Math.max(0,1-b/d[k]))}),a){var y=Math.min.apply(null,ze.map(function(k){return p[k]}));y!==1/0&&ze.forEach(function(k){d[k]*=y})}else ze.forEach(function(k){p[k]!==1/0&&(d[k]*=p[k])});if(u=Le(n,d).width,h=Le(n,d).height,d.right+d.left&&(u>s.maxWidth?p.width=(s.maxWidth-n.width)/(d.right+d.left):u<s.minWidth&&(p.width=(s.minWidth-n.width)/(d.right+d.left))),d.bottom+d.top&&(h>s.maxHeight?p.height=(s.maxHeight-n.height)/(d.bottom+d.top):h<s.minHeight&&(p.height=(s.minHeight-n.height)/(d.bottom+d.top))),a){var g=Math.min(p.width,p.height);g!==1/0&&ze.forEach(function(k){d[k]*=g})}else p.width!==1/0&&Mf.forEach(function(k){d[k]*=p.width}),p.height!==1/0&&Bf.forEach(function(k){d[k]*=p.height});return d}function Fn(t,e,n){return e==0&&n==0?t/2:e==0?0:n==0?t:t*Math.abs(e/(e+n))}var _f=Re("vue-simple-handler"),Hf=Re("vue-simple-handler-wrapper"),eo={name:"SimpleHandler",components:{HandlerWrapper:na},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var t,e=(Be(t={},this.horizontalPosition,!!this.horizontalPosition),Be(t,this.verticalPosition,!!this.verticalPosition),Be(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),Be(t,"hover",this.hover),t);return{default:te(_f(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:te(Hf(e),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};eo.render=function(t,e,n,o,r,s){var a=i.resolveComponent("HandlerWrapper");return i.openBlock(),i.createBlock(a,{class:s.classes.wrapper,"vertical-position":n.verticalPosition,"horizontal-position":n.horizontalPosition,disabled:n.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:i.withCtx(function(){return[i.createVNode("div",{class:s.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var qf=Re("vue-simple-line"),Uf=Re("vue-simple-line-wrapper"),to={name:"SimpleLine",components:{LineWrapper:ia},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:te(qf(Be({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:te(Uf(Be({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};to.render=function(t,e,n,o,r,s){var a=i.resolveComponent("LineWrapper");return i.openBlock(),i.createBlock(a,{class:s.classes.wrapper,position:n.position,disabled:n.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:i.withCtx(function(){return[i.createVNode("div",{class:s.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var no=Re("vue-bounding-box"),Wf=["east","west",null],Gf=["south","north",null],ha={name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return eo}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return to}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return Wf.forEach(function(e){Gf.forEach(function(n){if(e!==n){var o=Js(e,n),r=o.name,s=o.classname;t.push({name:r,classname:s,verticalDirection:n,horizontalDirection:e})}})}),{points:t}},computed:{style:function(){var t={};return this.width&&this.height&&(t.width="".concat(this.width,"px"),t.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),t},classes:function(){var t=this.handlersClasses,e=this.handlersWrappersClasses,n=this.linesClasses,o=this.linesWrappersClasses;return{root:no(),handlers:t,handlersWrappers:e,lines:n,linesWrappers:o}},lineNodes:function(){var t=this,e=[];return this.points.forEach(function(n){n.horizontalDirection&&n.verticalDirection||!t.lines[n.name]||e.push({name:n.name,component:t.linesComponent,class:te(t.classes.lines.default,t.classes.lines[n.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:te(t.classes.linesWrappers.default,t.classes.linesWrappers[n.name],!t.resizable&&t.classes.linesWrappers.disabled),hoverClass:t.classes.lines.hover,verticalDirection:n.verticalDirection,horizontalDirection:n.horizontalDirection,disabled:!t.resizable})}),e},handlerNodes:function(){var t=this,e=[],n=this.width,o=this.height;return this.points.forEach(function(r){if(t.handlers[r.name]){var s={name:r.name,component:t.handlersComponent,class:te(t.classes.handlers.default,t.classes.handlers[r.name]),wrapperClass:te(t.classes.handlersWrappers.default,t.classes.handlersWrappers[r.name]),hoverClass:t.classes.handlers.hover,verticalDirection:r.verticalDirection,horizontalDirection:r.horizontalDirection,disabled:!t.resizable};if(n&&o){var a=r.horizontalDirection,c=r.verticalDirection,d=a==="east"?n:a==="west"?0:n/2,u=c==="south"?o:c==="north"?0:o/2;s.wrapperClass=no("handler"),s.wrapperStyle={transform:"translate(".concat(d,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(s.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else s.wrapperClass=no("handler",Be({},r.classname,!0));e.push(s)}}),e}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(t,e,n){var o,r=t.shift(),s=r.left,a=r.top,c={left:0,right:0,top:0,bottom:0};e==="west"?c.left-=s:e==="east"&&(c.right+=s),n==="north"?c.top-=a:n==="south"&&(c.bottom+=a),!n&&e?o="width":n&&!e&&(o="height"),this.resizable&&this.$emit("resize",new kf(c,{allowedDirections:{left:e==="west"||!e,right:e==="east"||!e,bottom:n==="south"||!n,top:n==="north"||!n},preserveAspectRatio:t.nativeEvent&&t.nativeEvent.shiftKey,respectDirection:o}))}},emits:["resize","resize-end"]};ha.render=function(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{ref:"box",class:s.classes.root,style:s.style},[i.renderSlot(t.$slots,"default"),i.createVNode("div",null,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(s.lineNodes,function(a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),{key:a.name,"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,position:a.name,disabled:a.disabled,onDrag:function(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[1]||(e[1]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(s.handlerNodes,function(a){return i.openBlock(),i.createBlock("div",{key:a.name,style:a.wrapperStyle,class:a.wrapperClass},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),{"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,"horizontal-position":a.horizontalDirection,"vertical-position":a.verticalDirection,disabled:a.disabled,onDrag:function(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[2]||(e[2]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var jf=Re("vue-draggable-area"),fa={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:jf()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(t){if(t.cancelable){var e=this.movable&&t.touches.length===1;e&&(this.touches=ct(t.touches)),(this.touchStarted||e)&&(t.preventDefault(),t.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(t){this.touches.length>=1&&(this.touchStarted?(this.processMove(t,t.touches),t.preventDefault(),t.stopPropagation()):ta({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:t.touches[0].clientX,y:t.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(t){if(this.movable&&t.button===0){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.cancelable&&t.preventDefault(),t.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.container.getBoundingClientRect(),n=e.left,o=e.top;this.anchor={x:t.clientX-n,y:t.clientY-o}},processMove:function(t,e){var n=ct(e);if(this.touches.length){var o=this.$refs.container.getBoundingClientRect(),r=o.left,s=o.top;this.touches.length===1&&n.length===1&&this.$emit("move",new Zi({left:n[0].clientX-(r+this.anchor.x),top:n[0].clientY-(s+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};fa.render=function(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:e[2]||(e[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)})},[i.renderSlot(t.$slots,"default")],544)};function io(t){var e,n;return{rotate:t.rotate||0,flip:{horizontal:((e=t==null?void 0:t.flip)===null||e===void 0?void 0:e.horizontal)||!1,vertical:((n=t==null?void 0:t.flip)===null||n===void 0?void 0:n.vertical)||!1}}}function Zf(t){return new Promise(function(e,n){try{if(t)if(/^data:/i.test(t))e(function(d){d=d.replace(/^data:([^;]+);base64,/gim,"");for(var u=atob(d),h=u.length,f=new ArrayBuffer(h),p=new Uint8Array(f),y=0;y<h;y++)p[y]=u.charCodeAt(y);return f}(t));else if(/^blob:/i.test(t)){var o=new FileReader;o.onload=function(d){e(d.target.result)},s=t,a=function(d){o.readAsArrayBuffer(d)},(c=new XMLHttpRequest).open("GET",s,!0),c.responseType="blob",c.onload=function(){this.status!=200&&this.status!==0||a(this.response)},c.send()}else{var r=new XMLHttpRequest;r.onreadystatechange=function(){r.readyState===4&&(r.status===200||r.status===0?e(r.response):n("Warning: could not load an image to parse its orientation"),r=null)},r.onprogress=function(){r.getResponseHeader("content-type")!=="image/jpeg"&&r.abort()},r.withCredentials=!1,r.open("GET",t,!0),r.responseType="arraybuffer",r.send(null)}else n("Error: the image is empty")}catch(d){n(d)}var s,a,c})}function ma(t){var e=t.rotate,n=t.flip,o=t.scaleX,r=t.scaleY,s="";return s+=" rotate("+e+"deg) ",s+=" scaleX("+o*(n.horizontal?-1:1)+") ",s+=" scaleY("+r*(n.vertical?-1:1)+") "}function Yf(t){try{var e,n=new DataView(t),o=void 0,r=void 0,s=void 0,a=void 0;if(n.getUint8(0)===255&&n.getUint8(1)===216)for(var c=n.byteLength,d=2;d+1<c;){if(n.getUint8(d)===255&&n.getUint8(d+1)===225){s=d;break}d++}if(s&&(o=s+10,function(y,g,k){var b,I="";for(b=g,k+=g;b<k;b++)I+=String.fromCharCode(y.getUint8(b));return I}(n,s+4,4)==="Exif")){var u=n.getUint16(o);if(((r=u===18761)||u===19789)&&n.getUint16(o+2,r)===42){var h=n.getUint32(o+4,r);h>=8&&(a=o+h)}}if(a){for(var f=n.getUint16(a,r),p=0;p<f;p++)if(d=a+12*p+2,n.getUint16(d,r)===274){d+=8,e=n.getUint16(d,r),n.setUint16(d,1,r);break}}return e}catch{return null}}function pa(t,e){var n=e.getBoundingClientRect(),o=n.left,r=n.top,s={left:0,top:0},a=0;return t.forEach(function(c){s.left+=(c.clientX-o)/t.length,s.top+=(c.clientY-r)/t.length}),t.forEach(function(c){a+=ta({x:s.left,y:s.top},{x:c.clientX-o,y:c.clientY-r})}),{centerMass:s,spread:a,count:t.length}}var ga={props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=Gi(this.processEnd),this.touches=[]},methods:{processMove:function(t,e){if(this.touches.length){if(this.touches.length===1&&e.length===1)this.$emit("move",new Zt({left:this.touches[0].clientX-e[0].clientX,top:this.touches[0].clientY-e[0].clientY}));else if(this.touches.length>1&&this.touchResize){var n=pa(e,this.$refs.container),o=this.oldGeometricProperties;o.count===n.count&&o.count>1&&this.$emit("resize",new Zt({left:o.centerMass.left-n.centerMass.left,top:o.centerMass.top-n.centerMass.top},{factor:o.spread/n.spread,center:n.centerMass})),this.oldGeometricProperties=n}this.touches=e}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(t){return this.eventsFilter?this.eventsFilter(t,this.transforming)!==!1:(t.preventDefault(),t.stopPropagation(),!0)},onTouchStart:function(t){if(t.cancelable&&(this.touchMove||this.touchResize&&t.touches.length>1)&&this.processEvent(t)){var e=this.$refs.container,n=e.getBoundingClientRect(),o=n.left,r=n.top,s=n.bottom,a=n.right;this.touches=ct(t.touches).filter(function(c){return c.clientX>o&&c.clientX<a&&c.clientY>r&&c.clientY<s}),this.oldGeometricProperties=pa(this.touches,e)}},onTouchEnd:function(t){t.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(t){var e=this;if(this.touches.length){var n=ct(t.touches).filter(function(o){return!o.identifier||e.touches.find(function(r){return r.identifier===o.identifier})});this.processEvent(t)&&(this.processMove(t,n),this.processStart())}},onMouseDown:function(t){if(this.mouseMove&&"buttons"in t&&t.buttons===1&&this.processEvent(t)){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.processStart()}},onMouseMove:function(t){this.touches.length&&this.processEvent(t)&&this.processMove(t,[{clientX:t.clientX,clientY:t.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(t){if(this.wheelResize&&this.processEvent(t)){var e=this.$refs.container.getBoundingClientRect(),n=e.left,o=e.top,r=1+this.wheelResize.ratio*(a=t.deltaY||t.detail||t.wheelDelta,(c=+a)==0||ea(c)?c:c>0?1:-1),s={left:t.clientX-n,top:t.clientY-o};this.$emit("resize",new Zt({},{factor:r,center:s})),this.touches.length||this.debouncedProcessEnd()}var a,c}},emits:["resize","move","transform-end"]};ga.render=function(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:e[2]||(e[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onWheel:e[3]||(e[3]=function(){return s.onWheel&&s.onWheel.apply(s,arguments)})},[i.renderSlot(t.$slots,"default")],544)};var oo={components:{TransformableImage:ga},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}},emits:["resize","move"]};oo.render=function(t,e,n,o,r,s){var a=i.resolveComponent("transformable-image");return i.openBlock(),i.createBlock(a,{"touch-move":n.touchMove,"touch-resize":n.touchResize,"mouse-move":n.mouseMove,"wheel-resize":n.wheelResize,onMove:e[1]||(e[1]=function(c){return t.$emit("move",c)}),onResize:e[2]||(e[2]=function(c){return t.$emit("resize",c)})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var Tn=Re("vue-preview"),ya={props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:Tn({fill:this.fill}),wrapper:Tn("wrapper"),imageWrapper:Tn("image-wrapper"),image:te(Tn("image"),this.imageClass)}},style:function(){if(this.fill)return{};var t={};return this.width&&(t.width="".concat(this.size.width,"px")),this.height&&(t.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},wrapperStyle:function(){var t={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){if(this.coordinates&&this.image){var t=this.coordinates.width/this.size.width,e=W(W({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),n=this.imageSize.width,o=this.imageSize.height,r=aa({width:n,height:o},e.rotate),s={width:"".concat(n,"px"),height:"".concat(o,"px"),left:"0px",top:"0px"},a={rotate:{left:(n-r.width)*e.scaleX/2,top:(o-r.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*o/2}};return s.transform=`translate(
42
- `.concat(-this.coordinates.left/t-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/t-a.rotate.top-a.scale.top,"px) ")+ma(e),this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(t){(t.width||t.height)&&this.onChangeImage()}},mounted:function(){var t=this;this.onChangeImage(),this.$refs.image.addEventListener("load",function(){t.refreshImage()}),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var t=this.$refs.image;this.calculatedImageSize.height=t.naturalHeight,this.calculatedImageSize.width=t.naturalWidth},refresh:function(){var t=this.$refs.root;this.width||(this.calculatedSize.width=t.clientWidth),this.height||(this.calculatedSize.height=t.clientHeight)},onChangeImage:function(){var t=this.$refs.image;t&&t.complete&&this.refreshImage(),this.refresh()}}};ya.render=function(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{ref:"root",class:s.classes.root,style:s.style},[i.createVNode("div",{ref:"wrapper",class:s.classes.wrapper,style:s.wrapperStyle},[i.withDirectives(i.createVNode("img",{ref:"image",src:n.image&&n.image.src,class:s.classes.image,style:s.imageStyle},null,14,["src"]),[[i.vShow,n.image&&n.image.src]])],6)],6)};var wa={components:{Preview:ya},inheritAttrs:!1};wa.render=function(t,e,n,o,r,s){var a=i.resolveComponent("preview");return i.openBlock(),i.createBlock(a,i.mergeProps(t.$attrs,{fill:!0}),null,16)};var ro=Re("vue-rectangle-stencil"),ba={name:"RectangleStencil",components:{StencilPreview:wa,BoundingBox:ha,DraggableArea:fa},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return eo}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return to}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:te(ro({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:te(ro("preview"),this.previewClass),boundingBox:te(ro("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,o=t.left,r=t.top,s={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(o,"px, ").concat(r,"px)")};return this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}},emits:["resize","resize-end","move","move-end"]};ba.render=function(t,e,n,o,r,s){var a=i.resolveComponent("stencil-preview"),c=i.resolveComponent("draggable-area"),d=i.resolveComponent("bounding-box");return i.openBlock(),i.createBlock("div",{class:s.classes.stencil,style:s.style},[i.createVNode(d,{width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,transitions:n.transitions,class:s.classes.boundingBox,handlers:n.handlers,"handlers-component":n.handlersComponent,"handlers-classes":n.handlersClasses,"handlers-wrappers-classes":n.handlersWrappersClasses,lines:n.lines,"lines-component":n.linesComponent,"lines-classes":n.linesClasses,"lines-wrappers-classes":n.linesWrappersClasses,resizable:n.resizable,onResize:s.onResize,onResizeEnd:s.onResizeEnd},{default:i.withCtx(function(){return[i.createVNode(c,{movable:n.movable,onMove:s.onMove,onMoveEnd:s.onMoveEnd},{default:i.withCtx(function(){return[i.createVNode(a,{image:n.image,coordinates:n.coordinates,width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,class:s.classes.preview,transitions:n.transitions},null,8,["image","coordinates","width","height","class","transitions"])]}),_:1},8,["movable","onMove","onMoveEnd"])]}),_:1},8,["width","height","transitions","class","handlers","handlers-component","handlers-classes","handlers-wrappers-classes","lines","lines-component","lines-classes","lines-wrappers-classes","resizable","onResize","onResizeEnd"])],6)};var Jf=["transitions"],qe=Re("vue-advanced-cropper"),Sa={name:"Cropper",components:{BackgroundWrapper:oo},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return ba}},backgroundWrapperComponent:{type:[Object,String],default:function(){return oo}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(t){return $f.indexOf(t)!==-1}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object]},defaultVisibleArea:{type:[Function,Object]},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(t){return!(typeof t=="string"&&t!=="fill"&&t!=="fit")}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(t){var e=t.event,n=t.coordinates,o=t.aspectRatio,r=t.positionRestrictions,s=t.sizeRestrictions,a=V(V({},n),{right:n.left+n.width,bottom:n.top+n.height}),c=e.params||{},d=V({},e.directions),u=c.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};s.widthFrozen&&(d.left=0,d.right=0),s.heightFrozen&&(d.top=0,d.bottom=0),ze.forEach(function(z){u[z]||(d[z]=0)});var h=Le(a,d=ua({coordinates:a,directions:d,sizeRestrictions:s,positionRestrictions:r})).width,f=Le(a,d).height,p=c.preserveRatio?G(a):Xi(h/f,o);if(p){var y=c.respectDirection;if(y||(y=a.width>=a.height||p===1?"width":"height"),y==="width"){var g=h/p-a.height;if(u.top&&u.bottom){var k=d.top,b=d.bottom;d.bottom=Fn(g,b,k),d.top=Fn(g,k,b)}else u.bottom?d.bottom=g:u.top?d.top=g:u.right?d.right=0:u.left&&(d.left=0)}else if(y==="height"){var I=a.width-f*p;if(u.left&&u.right){var L=d.left,O=d.right;d.left=-Fn(I,L,O),d.right=-Fn(I,O,L)}else u.left?d.left=-I:u.right?d.right=-I:u.top?d.top=0:u.bottom&&(d.bottom=0)}d=ua({directions:d,coordinates:a,sizeRestrictions:s,positionRestrictions:r,preserveRatio:!0,compensate:c.compensate})}return h=Le(a,d).width,f=Le(a,d).height,(p=c.preserveRatio?G(a):Xi(h/f,o))&&Math.abs(p-h/f)>.001&&ze.forEach(function(z){u[z]||(d[z]=0)}),Ki({event:new Zi({left:-d.left,top:-d.top}),coordinates:{width:n.width+d.right+d.left,height:n.height+d.top+d.bottom,left:n.left,top:n.top},positionRestrictions:r})}},moveAlgorithm:{type:Function,default:Ki},initStretcher:{type:Function,default:function(t){var e=t.stretcher,n=t.imageSize,o=G(n);e.style.width=n.width+"px",e.style.height=e.clientWidth/o+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,n=t.coordinates,o=t.aspectRatio,r=t.sizeRestrictions,s=t.positionRestrictions,a=V(V({},n),He({width:n.width,height:n.height,aspectRatio:o,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,r.minHeight),minWidth:Math.min(e.width,r.minWidth)}}));return a=ce(a=be(a,Et(le(n),le(a))),Vn(De(e),s))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,o=t.getAreaRestrictions,r=t.coordinates,s=V({},e);s.height=s.width/G(n),s.top+=(e.height-s.height)/2,(r.height-s.height>0||r.width-s.width>0)&&(s=Ie(s,Math.max(r.height/s.height,r.width/s.width)));var a=Rn(Mt(r,De(s=Ie(s,An(s,o({visibleArea:s,type:"resize"}))))));return s.width<r.width&&(a.left=0),s.height<r.height&&(a.top=0),s=ce(s=be(s,a),o({visibleArea:s,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,o=t.imageSize,r=t.imageRestriction,s=t.type,a={};return r==="fill-area"?a={left:0,top:0,right:o.width,bottom:o.height}:r==="fit-area"&&(G(n)>G(o)?(a={top:0,bottom:o.height},e&&s==="move"&&(e.width>o.width?(a.left=-(e.width-o.width)/2,a.right=o.width-a.left):(a.left=0,a.right=o.width))):(a={left:0,right:o.width},e&&s==="move"&&(e.height>o.height?(a.top=-(e.height-o.height)/2,a.bottom=o.height-a.top):(a.top=0,a.bottom=o.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(t){return{minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.imageSize,n={};return t.imageRestriction!=="none"&&(n={left:0,top:0,right:e.width,bottom:e.height}),n}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:null,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:W({},oa)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var t=function(e){return e*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(t))+Math.abs(this.imageAttributes.height*Math.sin(t)),height:Math.abs(this.imageAttributes.width*Math.sin(t))+Math.abs(this.imageAttributes.height*Math.cos(t))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var t=ji(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:ji(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:t}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var t=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:oe(this.minWidth)?0:Nn(this.minWidth),minHeight:oe(this.minHeight)?0:Nn(this.minHeight),maxWidth:oe(this.maxWidth)?1/0:Nn(this.maxWidth),maxHeight:oe(this.maxHeight)?1/0:Nn(this.maxHeight)});if(t=function(o){var r=o.areaRestrictions,s=o.sizeRestrictions,a=o.boundaries,c=o.positionRestrictions,d=V(V({},s),{minWidth:s.minWidth!==void 0?s.minWidth:0,minHeight:s.minHeight!==void 0?s.minHeight:0,maxWidth:s.maxWidth!==void 0?s.maxWidth:1/0,maxHeight:s.maxHeight!==void 0?s.maxHeight:1/0});c.left!==void 0&&c.right!==void 0&&(d.maxWidth=Math.min(d.maxWidth,c.right-c.left)),c.bottom!==void 0&&c.top!==void 0&&(d.maxHeight=Math.min(d.maxHeight,c.bottom-c.top));var u=Qi(r),h=sa(a,u);return u.width<1/0&&(!d.maxWidth||d.maxWidth>h.width)&&(d.maxWidth=Math.min(d.maxWidth,h.width)),u.height<1/0&&(!d.maxHeight||d.maxHeight>h.height)&&(d.maxHeight=Math.min(d.maxHeight,h.height)),d.minWidth>d.maxWidth&&(d.minWidth=d.maxWidth,d.widthFrozen=!0),d.minHeight>d.maxHeight&&(d.minHeight=d.maxHeight,d.heightFrozen=!0),d}({sizeRestrictions:t,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var e=this.getStencilSize(),n=Qi(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));t.maxWidth=Math.min(t.maxWidth,n.width*e.width/this.boundaries.width),t.maxHeight=Math.min(t.maxHeight,n.height*e.height/this.boundaries.height),t.maxWidth<t.minWidth&&(t.minWidth=t.maxWidth),t.maxHeight<t.minHeight&&(t.minHeight=t.maxHeight)}return t}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:qe(),image:te(qe("image"),this.imageClass),stencil:qe("stencil"),boundaries:te(qe("boundaries"),this.boundariesClass),stretcher:te(qe("stretcher")),background:te(qe("background"),this.backgroundClass),foreground:te(qe("foreground"),this.foregroundClass),imageWrapper:te(qe("image-wrapper")),cropperWrapper:te(qe("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,n=t.height,o=t.left,r=t.top;return{width:e/this.coefficient,height:n/this.coefficient,left:(o-this.visibleArea.left)/this.coefficient,top:(r-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var t={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(t.opacity="0"),t},imageStyle:function(){var t=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},e={left:(t.width-this.imageSize.width)/(2*this.coefficient),top:(t.height-this.imageSize.height)/(2*this.coefficient)},n={left:(1-1/this.coefficient)*t.width/2,top:(1-1/this.coefficient)*t.height/2},o=W(W({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),r={width:"".concat(t.width,"px"),height:"".concat(t.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-e.left-n.left-this.imageTransforms.translateX,"px, ").concat(-e.top-n.top-this.imageTransforms.translateY,"px)")+ma(o)};return this.transitionsOptions.enabled&&(r.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),r}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var t=this;this.$nextTick(function(){t.resetCoordinates(),t.runAutoZoom("setCoordinates"),t.onChange()})},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(t,e){["aspectRatio","minAspectRatio","maxAspectRatio"].find(function(n){return t[n]!==e[n]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=Gi(this.update,this.debounce),this.debouncedDisableTransitions=Gi(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var t=this.initialized?this.prepareResult(W({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:W({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?W({},this.visibleArea):null,imageTransforms:e,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?W({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.transitions,r=o===void 0||o;this.onManipulateImage(new Zt({},{factor:1/t,center:e}),{normalize:!1,transitions:r})},move:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.transitions,r=o===void 0||o;this.onManipulateImage(new Zt({left:t||0,top:e||0}),{normalize:!1,transitions:r})},setCoordinates:function(t){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.autoZoom,r=o===void 0||o,s=n.transitions,a=s===void 0||s;this.$nextTick(function(){e.imageLoaded?(e.transitionsActive||(a&&e.enableTransitions(),e.coordinates=e.applyTransform(t),r&&e.runAutoZoom("setCoordinates"),a&&e.debouncedDisableTransitions()),e.onChange()):e.delayedTransforms=t})},refresh:function(){var t=this,e=this.$refs.image;if(this.src&&e)return this.initialized?this.updateVisibleArea().then(function(){t.onChange()}):this.resetVisibleArea().then(function(){t.onChange()})},reset:function(){var t=this;return this.resetVisibleArea().then(function(){t.onChange(!1)})},awaitRender:function(t){var e=this;this.awaiting||(this.awaiting=!0,this.$nextTick(function(){t(),e.awaiting=!1}))},prepareResult:function(t){return this.roundResult?function(e){var n=e.coordinates,o=e.sizeRestrictions,r=e.positionRestrictions,s={width:Math.round(n.width),height:Math.round(n.height),left:Math.round(n.left),top:Math.round(n.top)};return s.width>o.maxWidth?s.width=Math.floor(n.width):s.width<o.minWidth&&(s.width=Math.ceil(n.width)),s.height>o.maxHeight?s.height=Math.floor(n.height):s.height<o.minHeight&&(s.height=Math.ceil(n.height)),ce(s,r)}(W(W({},this.getPublicProperties()),{},{positionRestrictions:Pn(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,n,o){var r=this.autoZoomAlgorithm;r||(r=this.stencilSize?Rf:this.autoZoom?Af:Vf);var s=r({event:{type:t,params:o},visibleArea:e,coordinates:n,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return W(W({},s),{},{changed:!ra(s.visibleArea,e)||!ra(s.coordinates,n)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,o=n!==void 0&&n,r=Sf(e,Jf),s=this.processAutoZoom(t,this.visibleArea,this.coordinates,r),a=s.visibleArea,c=s.coordinates,d=s.changed;o&&d&&this.enableTransitions(),this.visibleArea=a,this.coordinates=c,o&&d&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(e){var n=e.event,o=e.visibleArea,r=e.coefficient;if(n.type==="manipulateImage")return V(V({},n),{move:{left:n.move&&n.move.left?r*n.move.left:0,top:n.move&&n.move.top?r*n.move.top:0},scale:{factor:n.scale&&n.scale.factor?n.scale.factor:1,center:n.scale&&n.scale.center?{left:n.scale.center.left*r+o.left,top:n.scale.center.top*r+o.top}:null}});if(n.type==="resize"){var s=V(V({},n),{directions:V({},n.directions)});return ze.forEach(function(c){s.directions[c]*=r}),s}if(n.type==="move"){var a=V(V({},n),{directions:V({},n.directions)});return If.forEach(function(c){a.directions[c]*=r}),a}return n}(W(W({},this.getPublicProperties()),{},{event:t}))},getCanvas:function(){if(this.$refs.canvas){var t=this.$refs.canvas,e=this.$refs.image,n=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(c,d,u){var h=u.rotate,f=u.flip,p={width:d.naturalWidth,height:d.naturalHeight},y=aa(p,h),g=c.getContext("2d");c.height=y.height,c.width=y.width,g.save();var k=Ze(le(V({left:0,top:0},p)),h);return g.translate(-(k.left-y.width/2),-(k.top-y.height/2)),g.rotate(h*Math.PI/180),g.translate(f.horizontal?p.width:0,f.vertical?p.height:0),g.scale(f.horizontal?-1:1,f.vertical?-1:1),g.drawImage(d,0,0,p.width,p.height),g.restore(),c}(this.$refs.sourceCanvas,e,this.imageTransforms):e,o=W({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),r=function(c){return c.find(function(d){return u=d,!Number.isNaN(parseFloat(u))&&isFinite(u);var u})},s=He({sizeRestrictions:{minWidth:r([o.width,o.minWidth])||0,minHeight:r([o.height,o.minHeight])||0,maxWidth:r([o.width,o.maxWidth])||1/0,maxHeight:r([o.height,o.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(o.maxArea&&s.width*s.height>o.maxArea){var a=Math.sqrt(o.maxArea/(s.width*s.height));s={width:Math.round(a*s.width),height:Math.round(a*s.height)}}return function(c,d,u,h,f){c.width=h?h.width:u.width,c.height=h?h.height:u.height;var p=c.getContext("2d");p.clearRect(0,0,c.width,c.height),f&&(f.imageSmoothingEnabled&&(p.imageSmoothingEnabled=f.imageSmoothingEnabled),f.imageSmoothingQuality&&(p.imageSmoothingQuality=f.imageSmoothingQuality),f.fillColor&&(p.fillStyle=f.fillColor,p.fillRect(0,0,c.width,c.height),p.save()));var y=u.left<0?-u.left:0,g=u.top<0?-u.top:0;p.drawImage(d,u.left+y,u.top+g,u.width,u.height,y*(c.width/u.width),g*(c.height/u.height),c.width,c.height)}(t,n,this.coordinates,s,o),t}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.visibleArea&&e?xf(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,o=this.visibleArea&&e?Pn(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return Nf({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:n,positionRestrictions:o,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var t=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var e=this.defaultSize;e||(e=this.stencilSize?Tf:Ff);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var o=kt(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,r=this.defaultPosition||Pf,s=[o,function(a){var c=a.coordinates;return W({},kt(r)?r({coordinates:c,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&s.push.apply(s,ct(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(s,!0),this.delayedTransforms=null}},clearImage:function(){var t=this;this.imageLoaded=!1,setTimeout(function(){var e=t.$refs.stretcher;e&&(e.style.height="auto",e.style.width="auto"),t.coordinates=t.defaultCoordinates(),t.boundaries={width:0,height:0}},this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var t=this,e=this.$refs.stretcher,n=this.$refs.cropper;return this.initStretcher({cropper:n,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then(function(){var o={cropper:n,imageSize:t.imageSize};if(kt(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(o):t.defaultBoundaries==="fit"?t.boundaries=function(r){var s=r.cropper,a=r.imageSize,c=s.clientHeight,d=s.clientWidth,u=c,h=a.width*c/a.height;return h>d&&(h=d,u=a.height*d/a.width),{width:h,height:u}}(o):t.boundaries=function(r){var s=r.cropper;return{width:s.clientWidth,height:s.clientHeight}}(o),!t.boundaries.width||!t.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")})},resetVisibleArea:function(){var t=this;return this.appliedImageTransforms=W(W({},this.defaultImageTransforms),{},{flip:W({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){t.priority!=="visible-area"&&(t.visibleArea=null,t.resetCoordinates());var e,n,o,r,s,a,c=t.defaultVisibleArea||zf;t.visibleArea=kt(c)?c({imageSize:t.imageSize,boundaries:t.boundaries,coordinates:t.priority!=="visible-area"?t.coordinates:null,getAreaRestrictions:t.getAreaRestrictions,stencilSize:t.getStencilSize()}):t.defaultVisibleArea,t.visibleArea=(e={visibleArea:t.visibleArea,boundaries:t.boundaries,getAreaRestrictions:t.getAreaRestrictions},n=e.visibleArea,o=e.boundaries,r=e.getAreaRestrictions,s=V({},n),a=G(o),s.width/s.height!==a&&(s.height=s.width/a),ce(s,r({visibleArea:s,type:"move"}))),t.priority==="visible-area"?t.resetCoordinates():t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("resetVisibleArea")}).catch(function(){t.visibleArea=null})},updateVisibleArea:function(){var t=this;return this.updateBoundaries().then(function(){t.visibleArea=t.fitVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,visibleArea:t.visibleArea,coordinates:t.coordinates,getAreaRestrictions:t.getAreaRestrictions}),t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("updateVisibleArea")}).catch(function(){t.visibleArea=null})},onChange:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];t&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var t,e=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(r){if(Qs(r))return!1;var s=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(r)||[],c={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},d=function(u){return u.port||((u.protocol||s.protocol)==="http"?80:433)};return!(!c.protocol&&!c.host&&!c.port||c.protocol&&c.protocol==s.protocol&&c.host&&c.host==s.host&&c.host&&d(c)==d(s))}(this.src)){var n=oe(this.crossOrigin)?this.canvas:this.crossOrigin;n===!0&&(n="anonymous"),this.imageAttributes.crossOrigin=n||null}if(this.checkOrientation){var o=(t=this.src,new Promise(function(r){Zf(t).then(function(s){var a=Yf(s);r(s?{source:t,arrayBuffer:s,orientation:a}:{source:t,arrayBuffer:null,orientation:null})}).catch(function(s){console.warn(s),r({source:t,arrayBuffer:null,orientation:null})})}));setTimeout(function(){o.then(e.onParseImage)},this.transitionTime)}else setTimeout(function(){e.onParseImage({source:e.src})},this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var t=this,e=this.$refs.image;e&&!this.imageLoaded&&(this.imageAttributes.height=e.naturalHeight,this.imageAttributes.width=e.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then(function(){t.$emit("ready"),t.onChange(!1)}))},onParseImage:function(t){var e=this,n=t.source,o=t.arrayBuffer,r=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,o&&r&&r>1?Xs(n)||!Qs(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([o])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(s){for(var a=[],c=new Uint8Array(s);c.length>0;){var d=c.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(d):d.slice())),c=c.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(o):this.imageAttributes.src=n,kt(this.defaultTransforms)?this.appliedImageTransforms=io(this.defaultTransforms()):xn(this.defaultTransforms)?this.appliedImageTransforms=io(this.defaultTransforms):this.appliedImageTransforms=function(s){var a=io({});if(s)switch(s){case 2:a.flip.horizontal=!0;break;case 3:a.rotate=-180;break;case 4:a.flip.vertical=!0;break;case 5:a.rotate=90,a.flip.vertical=!0;break;case 6:a.rotate=90;break;case 7:a.rotate=90,a.flip.horizontal=!0;break;case 8:a.rotate=-90}return a}(r),this.defaultImageTransforms=W(W({},this.appliedImageTransforms),{},{flip:W({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var s=e.$refs.image;s&&s.complete&&(function(a){return!!a.naturalWidth}(s)?e.onSuccessLoadImage():e.onFailLoadImage())})},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(t){var e=this;this.transitionsOptions.enabled||this.awaitRender(function(){e.coordinates=e.moveAlgorithm(W(W({},e.getPublicProperties()),{},{positionRestrictions:Pn(e.positionRestrictions,e.visibleArea),coordinates:e.coordinates,event:e.normalizeEvent(t)})),e.onChange()})},onResize:function(t){var e=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender(function(){var n=e.sizeRestrictions,o=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(W(W({},e.getPublicProperties()),{},{positionRestrictions:Pn(e.positionRestrictions,e.visibleArea),sizeRestrictions:{maxWidth:Math.min(n.maxWidth,e.visibleArea.width),maxHeight:Math.min(n.maxHeight,e.visibleArea.height),minWidth:Math.max(n.minWidth,o),minHeight:Math.max(n.minHeight,o)},event:e.normalizeEvent(t)})),e.onChange(),e.ticking=!1})},onManipulateImage:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var n=e.transitions,o=n!==void 0&&n,r=e.normalize,s=r===void 0||r;o&&this.enableTransitions();var a=Df(W(W({},this.getPublicProperties()),{},{event:s?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),c=a.visibleArea,d=a.coordinates;this.visibleArea=c,this.coordinates=d,this.runAutoZoom("manipulateImage"),this.onChange(),o&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.visibleArea,n=t.type,o=n===void 0?"move":n;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:o})},getAspectRatio:function(t){var e,n,o=this.stencilProps,r=o.aspectRatio,s=o.minAspectRatio,a=o.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var c=this.$refs.stencil.aspectRatios();e=c.minimum,n=c.maximum}if(oe(e)&&(e=oe(r)?s:r),oe(n)&&(n=oe(r)?a:r),!t&&(oe(e)||oe(n))){var d=this.getStencilSize(),u=d?G(d):null;oe(e)&&(e=Ks(u)?u:void 0),oe(n)&&(n=Ks(u)?u:void 0)}return{minimum:e,maximum:n}},getStencilSize:function(){if(this.stencilSize)return t={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)},e=t.boundaries,n=t.stencilSize,o=t.aspectRatio,Xi(G(r=kt(n)?n({boundaries:e,aspectRatio:o}):n),o)&&(r=He({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:o.minimum,maximum:o.maximum}})),(r.width>e.width||r.height>e.height)&&(r=He({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:G(r),maximum:G(r)}})),r;var t,e,n,o,r},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return W({},oa)},flip:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.transitions,r=o===void 0||o;if(!this.transitionsActive){r&&this.enableTransitions();var s=W({},this.imageTransforms.flip),a=Of({flip:{horizontal:t?!s.horizontal:s.horizontal,vertical:e?!s.vertical:s.vertical},previousFlip:s,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),c=a.visibleArea,d=a.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=c,this.coordinates=d,this.onChange(),r&&this.debouncedDisableTransitions()}},rotate:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,o=n===void 0||n;if(!this.transitionsActive){o&&this.enableTransitions();var r=W({},this.imageSize);this.appliedImageTransforms.rotate+=t;var s=Lf({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:r,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=s.visibleArea,c=s.coordinates,d=this.processAutoZoom("rotateImage",a,c);a=d.visibleArea,c=d.coordinates,this.visibleArea=a,this.coordinates=c,this.onChange(),o&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},Xf={key:0,ref:"canvas",style:{display:"none"}},Qf={key:1,ref:"sourceCanvas",style:{display:"none"}};Sa.render=function(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{ref:"cropper",class:s.classes.cropper},[i.createVNode("div",{ref:"stretcher",class:s.classes.stretcher},null,2),i.createVNode("div",{class:s.classes.boundaries,style:s.boundariesStyle},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.backgroundWrapperComponent),{class:s.classes.cropperWrapper,"wheel-resize":s.settings.resizeImage.wheel,"touch-resize":s.settings.resizeImage.touch,"touch-move":s.settings.moveImage.touch,"mouse-move":s.settings.moveImage.mouse,onMove:s.onManipulateImage,onResize:s.onManipulateImage},{default:i.withCtx(function(){return[i.createVNode("div",{class:s.classes.background,style:s.boundariesStyle},null,6),i.createVNode("div",{class:s.classes.imageWrapper},[i.createVNode("img",{ref:"image",crossorigin:r.imageAttributes.crossOrigin,src:r.imageAttributes.src,class:s.classes.image,style:s.imageStyle,onMousedown:e[1]||(e[1]=i.withModifiers(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),i.createVNode("div",{class:s.classes.foreground,style:s.boundariesStyle},null,6),i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.stencilComponent),i.mergeProps({ref:"stencil",image:s.image,coordinates:r.coordinates,"stencil-coordinates":s.stencilCoordinates,transitions:s.transitionsOptions},n.stencilProps,{onResize:s.onResize,onResizeEnd:s.onResizeEnd,onMove:s.onMove,onMoveEnd:s.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[i.vShow,r.imageLoaded]]),n.canvas?(i.openBlock(),i.createBlock("canvas",Xf,null,512)):i.createCommentVNode("",!0),n.canvas?(i.openBlock(),i.createBlock("canvas",Qf,null,512)):i.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const Kf={class:"background-container"},em={class:"tools-line"},tm={class:"line-block"},nm={class:"dialog-footer"},so=M(i.defineComponent({__name:"ImageCropper",props:{open:{type:Boolean,required:!0},defaultRatio:{type:Number,required:!1,default:1}},emits:["crop","close"],setup(t,{emit:e}){const n=t,o=e,r=Vi.Cropper(),s=i.ref(n.defaultRatio);r.ratio=s.value;const a=async()=>{s.value===0?r.ratio=0:r.ratio=s.value},c=i.ref({width:0,height:0,left:0,top:0}),d=i.ref(!1),u=i.ref(""),h=i.ref(),f=async()=>{d.value=!0;const y=h.value.getResult();r.ratio===0&&(s.value=c.value.width/c.value.height),y&&y.canvas.toBlob(g=>{var k;o("crop",{blob:g,src:(k=y.canvas)==null?void 0:k.toDataURL()})}),d.value=!1},p=y=>{var g;c.value=y.coordinates,u.value=(g=y.canvas)==null?void 0:g.toDataURL()};return(y,g)=>{const k=at,b=i.resolveComponent("el-form-item"),I=i.resolveComponent("el-form"),L=i.resolveComponent("el-button"),O=Gt;return i.openBlock(),i.createBlock(O,{show:t.open,title:"Настройка изображения","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1},{default:i.withCtx(()=>[i.createElementVNode("div",Kf,[i.createElementVNode("div",em,[i.createElementVNode("div",tm,[i.createVNode(I,null,{default:i.withCtx(()=>[i.createVNode(b,{label:"Задайте пропорции фото:"},{default:i.withCtx(()=>[i.createVNode(k,{modelValue:i.unref(s),"onUpdate:modelValue":g[0]||(g[0]=z=>i.isRef(s)?s.value=z:null),label:"Пропорции изображения",onChange:a},{default:i.withCtx(()=>g[1]||(g[1]=[i.createElementVNode("option",{label:"2:3 (формат A4)",value:2/3},null,-1),i.createElementVNode("option",{label:"4:3 (для карточек новостей)",value:4/3},null,-1),i.createElementVNode("option",{label:"1:1 (для фото сотрудников)",value:1},null,-1),i.createElementVNode("option",{label:"3:2",value:3/2},null,-1),i.createElementVNode("option",{label:"16:9",value:16/9},null,-1),i.createElementVNode("option",{label:"3:4 (вертикальное изображение)",value:3/4},null,-1),i.createElementVNode("option",{label:"Задать пропорции вручную",value:0},null,-1)])),_:1},8,["modelValue"])]),_:1})]),_:1})])]),i.createVNode(i.unref(Sa),{ref_key:"cropperRef",ref:h,src:i.unref(r).src,"stencil-props":{aspectRatio:i.unref(r).ratio},style:{"max-height":"50vh","min-height":"50vh"},onChange:p},null,8,["src","stencil-props"]),i.createElementVNode("div",nm,[i.createVNode(L,{loading:i.unref(d),type:"success",onClick:f},{default:i.withCtx(()=>g[2]||(g[2]=[i.createTextVNode(" Сохранить ")])),_:1},8,["loading"])])])]),_:1},8,["show"])}}}),[["__scopeId","data-v-0707c63d"]]),Ca=M(i.defineComponent({__name:"InfoItemSelectButtons",props:{selected:{type:String,required:!0},list:{type:Array,required:!0}},emits:["select","reset"],setup(t,{emit:e}){const n=i.ref(!1),o=e,r=s=>{n.value=!n.value,o("select",s)};return(s,a)=>{const c=we,d=pe,u=lt;return i.openBlock(),i.createBlock(u,{close:i.unref(n),title:s.title,"close-window-overflow":"hidden","with-hover":!0,"with-open-window":!0},{"open-inside-content":i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.list,h=>(i.openBlock(),i.createBlock(d,{key:h,type:"admin",color:"blue",text:h,onClick:f=>r(h)},null,8,["text","onClick"]))),128)),i.createVNode(d,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=h=>r(void 0))})]),default:i.withCtx(()=>[i.createVNode(c,{string:t.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-435691bb"]]),im={class:"mainblock"},om={class:"mainline"},ka=M(i.defineComponent({__name:"LeftRightContainer",props:{leftWidth:{type:String,required:!1,default:"0px"},background:{type:String,required:!1,default:"inherit"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",im,[i.createElementVNode("div",om,[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:t.leftWidth,maxWidth:t.leftWidth,background:t.background,display:t.leftWidth!=="0px"?"block":"none"})},[i.renderSlot(e.$slots,"left",{},void 0,!0)],4),i.createElementVNode("div",{class:"mainblock-right",style:i.normalizeStyle({background:t.background})},[i.renderSlot(e.$slots,"right",{},void 0,!0)],4)])]))}}),[["__scopeId","data-v-a4bc6b16"]]),rm={class:"message-title"},sm={class:"message-text"},zn=M(i.defineComponent({__name:"MessageBody",props:{title:{type:String,default:"",required:!1},text:{type:String,default:"",required:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",rm,i.toDisplayString(t.title),1),i.createElementVNode("div",sm,i.toDisplayString(t.text),1)]))}}),[["__scopeId","data-v-e3c1e672"]]),am=i.defineComponent({name:"CollapseContainer",props:{initActiveIdx:{type:Number,default:0}},setup(t){const e=i.ref(t.initActiveIdx),n=o=>{e.value=o};return i.watch(()=>t.initActiveIdx,()=>{n(t.initActiveIdx)}),{changeActiveId:n,activeIdx:e}}});function lm(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",null,[i.renderSlot(t.$slots,"default",{activeIdx:t.activeIdx,changeActiveId:t.changeActiveId})])}const Ea=M(am,[["render",lm]]),cm=i.defineComponent({name:"CollapseItem",props:{tabId:{type:String,required:!1,default:""},activeId:{type:String,default:""},isCollaps:{type:Boolean,default:!0},title:{type:String,default:""},showToolsOnHover:{type:Boolean,default:!0},background:{type:String,required:!1,default:"#ffffff"},backgroundAttention:{type:String,required:!1,default:"#ffffff"},changeColor:{type:Boolean,default:!1},margin:{type:String,default:"10px 8px 2px 2px"},padding:{type:String,default:"0 10px"},selectable:{type:Boolean,default:!1}},emits:["changeActiveId"],setup(t,{emit:e}){const n=i.ref(t.activeId==="0"),o=()=>{n.value=!n.value,e("changeActiveId",t.tabId)};return i.onUpdated(()=>{t.activeId&&t.activeId!==t.tabId&&(n.value=!0)}),i.onBeforeMount(()=>{t.activeId&&t.activeId!==t.tabId&&(n.value=!1)}),{collapsed:n,handleItemClick:o}}}),dm=["for"],um={class:"inside-icon"};function hm(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{class:"tab",style:i.normalizeStyle({margin:t.margin,height:t.isCollaps&&t.collapsed?"60px":"","box-shadow":t.selectable&&t.activeId===t.tabId?"0px 0px 1px 2px #1979cf":""})},[t.isCollaps&&t.collapsed?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"icon-arrow",onClick:e[0]||(e[0]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},e[3]||(e[3]=[i.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]))):t.isCollaps&&!t.collapsed?(i.openBlock(),i.createElementBlock("svg",{key:1,class:"icon-arrow",onClick:e[1]||(e[1]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},e[4]||(e[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-up"},null,-1)]))):i.createCommentVNode("",!0),i.createElementVNode("label",{for:t.tabId,onClick:e[2]||(e[2]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},[i.createElementVNode("div",{style:i.normalizeStyle({cursor:t.isCollaps?"pointer":"default",background:t.changeColor?t.background:t.backgroundAttention,padding:t.padding,borderRadius:"5px"}),class:"tab-name"},[i.createElementVNode("div",um,[i.renderSlot(t.$slots,"icon",{},void 0,!0)]),t.title?(i.openBlock(),i.createElementBlock("div",{key:0,class:"title-in",style:i.normalizeStyle({marginRight:t.isCollaps?"50px":"0",width:t.isCollaps?"calc(100% - 50px)":"100%"})},i.toDisplayString(t.title),5)):(i.openBlock(),i.createElementBlock("div",{key:1,class:"title-in",style:i.normalizeStyle({marginRight:t.isCollaps?"50px":"0",width:t.isCollaps?"calc(100% - 50px)":"100%"})},[i.renderSlot(t.$slots,"inside-title",{},void 0,!0)],4)),i.createElementVNode("div",{class:i.normalizeClass(["tools-bar",{"hidden-part":t.showToolsOnHover}])},[i.renderSlot(t.$slots,"tools",{},void 0,!0)],2)],4)],8,dm),i.createElementVNode("div",{style:i.normalizeStyle({maxHeight:t.isCollaps?"":"1000000vh",background:t.changeColor?t.background:t.backgroundAttention}),class:i.normalizeClass(t.collapsed?"tab-content-down":"tab-content-up")},[i.renderSlot(t.$slots,"inside-content",{},void 0,!0)],6)],4),e[5]||(e[5]=i.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-50a7d390><symbol id="arrow-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-50a7d390><path d="M5 6L10 11L15 6L17 7L10 14L3 7L5 6Z" fill="currentColor" data-v-50a7d390></path></symbol><symbol id="arrow-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-50a7d390><path d="M15 14L10 9L5 14L3 13L10 6L17 13L15 14Z" fill="currentColor" data-v-50a7d390></path></symbol></svg>',1))],64)}const va=M(cm,[["render",hm],["__scopeId","data-v-50a7d390"]]),fm={width:"0",height:"0",class:"hidden"};function mm(t,e){return i.openBlock(),i.createElementBlock("svg",fm,e[0]||(e[0]=[i.createElementVNode("symbol",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"arrow-left"},[i.createElementVNode("path",{d:"M656.733 149.806C659.446 147.019 662.69 144.804 666.274 143.292C669.857 141.779 673.707 141 677.597 141C681.486 141 685.337 141.779 688.92 143.292C692.503 144.804 695.748 147.019 698.461 149.806C704.024 155.518 707.138 163.176 707.138 171.15C707.138 179.123 704.024 186.782 698.461 192.494L386.589 512.366L698.461 832.302C701.269 835.176 703.483 838.575 704.976 842.305C706.47 846.035 707.215 850.022 707.167 854.04C707.119 858.057 706.281 862.026 704.699 865.72C703.118 869.413 700.824 872.759 697.949 875.566C695.211 878.242 691.972 880.351 688.417 881.774C684.863 883.197 681.063 883.904 677.235 883.857C673.407 883.809 669.625 883.007 666.107 881.497C662.589 879.986 659.404 877.797 656.733 875.054L325.085 534.702C319.26 528.726 316 520.711 316 512.366C316 504.021 319.26 496.006 325.085 490.03L656.733 149.806Z"})],-1)]))}const pm={render:mm},gm={width:"0",height:"0",class:"hidden"};function ym(t,e){return i.openBlock(),i.createElementBlock("svg",gm,e[0]||(e[0]=[i.createElementVNode("symbol",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"arrow-right"},[i.createElementVNode("path",{d:"M366.436 875.054C363.723 877.84 360.479 880.055 356.895 881.568C353.312 883.08 349.462 883.859 345.572 883.859C341.683 883.859 337.832 883.08 334.249 881.568C330.666 880.055 327.421 877.84 324.708 875.054C319.145 869.342 316.031 861.683 316.031 853.71C316.031 845.736 319.145 838.077 324.708 832.366L636.58 512.494L324.708 192.558C321.9 189.684 319.686 186.284 318.193 182.555C316.699 178.825 315.954 174.837 316.002 170.82C316.049 166.802 316.888 162.833 318.47 159.14C320.051 155.446 322.345 152.1 325.22 149.294C327.958 146.618 331.197 144.508 334.752 143.086C338.306 141.663 342.106 140.955 345.934 141.003C349.762 141.05 353.544 141.852 357.062 143.363C360.58 144.873 363.765 147.063 366.436 149.806L698.084 490.158C703.909 496.134 707.169 504.148 707.169 512.494C707.169 520.839 703.909 528.854 698.084 534.83L366.436 875.054Z"})],-1)]))}const wm={render:ym},bm={class:"tab"},Sm={class:"rotate"},Cm={key:0,class:"icon-arrow"},km={key:1,class:"icon-arrow"},Ma=M(i.defineComponent({__name:"VerticalCollapseContainer",setup(t){const e=i.ref(!1),n=async()=>{e.value=!e.value};return(o,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",bm,[i.renderSlot(o.$slots,"main",{},void 0,!0),i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"50%":"20px",transition:"0.3s"}),class:"left"},[i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"100%":"0",transition:"0.3s"}),class:"left-content"},[i.renderSlot(o.$slots,"inside-content-left",{},void 0,!0)],4),i.createElementVNode("div",{class:"arrow-bar",onClick:n},[i.createElementVNode("div",Sm,[i.renderSlot(o.$slots,"inside-title",{},void 0,!0)]),i.unref(e)?(i.openBlock(),i.createElementBlock("svg",km,r[1]||(r[1]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]))):(i.openBlock(),i.createElementBlock("svg",Cm,r[0]||(r[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)])))])],4),i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"50%":"100%",transition:"0.3s"}),class:"right"},[i.renderSlot(o.$slots,"inside-content-right",{},void 0,!0)],4)]),i.createVNode(i.unref(pm)),i.createVNode(i.unref(wm))],64))}}),[["__scopeId","data-v-2371e4d8"]]),Em={class:"add-block_body"},Ba=M(i.defineComponent({__name:"PAdd",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(t){return(e,n)=>{const o=Mn;return i.openBlock(),i.createElementBlock("div",{class:"add-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.createVNode(o,{top:t.top,"z-index":t.zIndex},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),i.createElementVNode("div",Em,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-b93bc8b1"]]),ao=M(i.defineComponent({__name:"PContainer",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"add-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-b89bdc7a"]]),vm={class:"add-block_body"},Ia=M(i.defineComponent({__name:"PContainerStickyHead",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(t){return(e,n)=>{const o=Mn,r=ao;return i.openBlock(),i.createBlock(r,{background:t.background,margin:t.margin,padding:t.padding},{default:i.withCtx(()=>[i.createVNode(o,{top:t.top,"z-index":t.zIndex},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),i.createElementVNode("div",vm,[i.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-e59e418e"]]),Mm={class:"del-block_title"},Bm={class:"del-block_body"},$a=M(i.defineComponent({__name:"PDel",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"10px 10px 10px 50px"},padding:{type:String,required:!1,default:"10px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"del-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.createElementVNode("div",Mm,[i.renderSlot(e.$slots,"title",{},void 0,!0)]),i.createElementVNode("div",Bm,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-362b7b0d"]]),Im=["onClick"],xa=M(i.defineComponent({__name:"PTabs",props:{tabs:{type:Object,required:!0},tabHeight:{type:String,required:!1,default:"40px"},height:{type:String,required:!1,default:""},minMenuItemWidth:{type:String,required:!1,default:"150px"},outTopMargin:{type:String,required:!1,default:"40px"},background:{type:String,required:!1,default:"#ffffff"}},emits:["select"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.tabs[0]),s=i.ref(0),a=i.ref(window.innerWidth),c=i.ref(),d=i.ref(Number(n.tabHeight.replace(/[^+\d]/g,""))),u=()=>{a.value=window.innerWidth,d.value=c.value?c.value.clientHeight:Number(n.tabHeight.replace(/[^+\d]/g,""))};i.onMounted(()=>window.addEventListener("resize",u)),i.onUnmounted(()=>window.removeEventListener("resize",u));const h=i.computed(()=>`calc(100% - ${d.value}px + 1px)`),f=(p,y)=>{r.value=p,s.value=y,o("select",p)};return(p,y)=>(i.openBlock(),i.createElementBlock("div",{class:"mainblock",style:i.normalizeStyle({height:`calc(100% - ${t.outTopMargin} - ${t.tabHeight}`})},[i.createElementVNode("div",{ref_key:"menuRef",ref:c,class:"top-menu",style:i.normalizeStyle({gridTemplateColumns:`repeat(auto-fit, minmax(${t.minMenuItemWidth}, 1fr))`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tabs,(g,k)=>(i.openBlock(),i.createElementBlock("div",{key:k},[i.createElementVNode("div",{class:i.normalizeClass({"selected-tab":k===i.unref(s),tab:k!==i.unref(s)}),style:i.normalizeStyle({minHeight:t.tabHeight,maxHeight:t.tabHeight}),onClick:b=>f(g,k)},i.toDisplayString(g.name),15,Im)]))),128))],4),i.createElementVNode("div",{class:"body-container",style:i.normalizeStyle({background:t.background,height:i.unref(h)})},[i.renderSlot(p.$slots,"default",{},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(r).component)))],!0)],4)],4))}}),[["__scopeId","data-v-3cb80968"]]),$m=["id"],xm=["for"],Nm={class:"left-field"},Rm=["href","download"],Am={key:1,class:"text-field__input"},Vm={class:"right-field"},Pm=i.defineComponent({__name:"UploaderFile",props:{fileInfo:{type:Object,required:!1,default:new X},formats:{type:Array,default:()=>["pdf","jpeg","jpg"]},label:{type:String,default:"Label",required:!1},margin:{type:String,required:!1,default:"10px 0 0 0"},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},placeholder:{type:String,required:!1,default:""}},emits:["upload","remove"],setup(t,{emit:e}){const n=t,o=e,r=q.CreateGuid(),s=q.CreateGuid(),a=()=>{const u=document.getElementById(r);if(!u.files)return;const h=u.files[0];if(h){if(!d(h.name)){N.Notification.Error("Загруженный файл должен быть в формате pdf, jpg или jpeg");return}n.fileInfo.uploadAndSetFile(h),o("upload",n.fileInfo)}},c=()=>{n.fileInfo.clearFile(),o("remove",n.fileInfo)};i.onMounted(()=>{const u=document.getElementById(s);u&&(u.onclick=()=>{var h;return(h=document.getElementById(r))==null?void 0:h.click()})});const d=u=>{let h=Ss.Get(u);return!!n.formats.includes(h.toLowerCase())};return(u,h)=>{const f=we,p=Wn,y=pe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("input",{id:i.unref(r),type:"file",hidden:"",onChange:a},null,40,$m),i.createElementVNode("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,xm)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",Nm,[i.createVNode(p,null,{default:i.withCtx(()=>[i.renderSlot(u.$slots,"default",{},void 0,!0),i.createVNode(f,{string:t.placeholder,"font-size":"var(--font-size-default:)",color:"var(--input-label-color)",margin:"0 10px 0 0"},null,8,["string"])]),_:3})]),t.fileInfo&&t.fileInfo.originalName?(i.openBlock(),i.createElementBlock("div",{key:0,class:"text-field__input",style:i.normalizeStyle({color:t.color})},[i.createElementVNode("a",{href:t.fileInfo.getFileUrl(),target:"_blank",download:t.fileInfo.originalName},[i.createElementVNode("div",null,i.toDisplayString(t.fileInfo.originalName),1)],8,Rm),i.createVNode(y,{skin:"text",type:"del",onClick:c},{default:i.withCtx(()=>[i.createVNode(Wt,{size:"20px",margin:"0 5px"})]),_:1})],4)):(i.openBlock(),i.createElementBlock("div",Am,[i.createVNode(f,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),i.createElementVNode("div",Vm,[i.createVNode(y,{id:i.unref(s),skin:"text",type:"success","data-test":"upload-btn",text:t.fileInfo&&t.fileInfo.originalName?"Обновить":"Загрузить",margin:"0"},null,8,["id","text"])])],4)],4)],64)}}}),Na=M(Pm,[["__scopeId","data-v-6a86379b"]]),Fm={class:"bg"},lo=M(i.defineComponent({__name:"AuthPage",setup(t){const e=()=>{N.Auth.Form.IsLogin()&&st.ToHome()};return(n,o)=>{const r=Bn;return i.openBlock(),i.createElementBlock("div",Fm,[i.createVNode(r,{width:"760px",margin:"0 auto",onAction:e})])}}}),[["__scopeId","data-v-14e033ce"]]),Tm=Object.freeze(Object.defineProperty({__proto__:null,default:lo},Symbol.toStringTag,{value:"Module"})),zm={},Dm={style:{"text-align":"center"}};function Lm(t,e){return i.openBlock(),i.createElementBlock("div",Dm,e[0]||(e[0]=[i.createElementVNode("h1",null,"Страница не найдена",-1)]))}const co=M(zm,[["render",Lm]]),Om=Object.freeze(Object.defineProperty({__proto__:null,default:co},Symbol.toStringTag,{value:"Module"})),_m={class:"container"},Hm={key:0,class:"result"},qm={class:"list"},Um=["onClick"],uo=M(i.defineComponent({inheritAttrs:!1,__name:"PAutocomplete",props:{modelValue:{type:String,default:""},searchFunc:{type:Function,default:()=>{}},suggestions:{type:Array,default:[]}},emits:["select","input"],setup(t,{emit:e}){const n=e,o=t,r=i.ref(o.modelValue),s=i.ref([]);async function a(){n("input",r.value),await c()}async function c(){o.searchFunc&&(s.value=await o.searchFunc(r.value))}async function d(u){n("select",u)}return(u,h)=>{const f=Di,p=We;return i.openBlock(),i.createElementBlock("div",_m,[i.createVNode(p,{modelValue:i.unref(r),"onUpdate:modelValue":h[0]||(h[0]=y=>i.isRef(r)?r.value=y:null),placeholder:"Найти",onInput:a},{right:i.withCtx(()=>[i.createVNode(f)]),_:1},8,["modelValue"]),i.unref(r)?(i.openBlock(),i.createElementBlock("div",Hm,[i.createElementVNode("ul",qm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),y=>(i.openBlock(),i.createElementBlock("li",{key:y.value,onClick:g=>d(y)},i.toDisplayString(y.label),9,Um))),128))])])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-58b78c5c"]]),Wm={class:"footer"},Ra=M(i.defineComponent({__name:"PDialog",setup(t){const e=i.computed(()=>{switch(N.Dialog.GetType()){case"info":return"message primary";case"success":return"message success";case"warning":return"message warning";case"error":return"message danger";default:return"message neutral"}});return(n,o)=>{const r=zn,s=pe;return i.openBlock(),i.createBlock(i.Transition,{name:"fade"},{default:i.withCtx(()=>[("PHelp"in n?n.PHelp:i.unref(N)).Dialog.IsVisible()?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e))},[i.createVNode(r,{title:("PHelp"in n?n.PHelp:i.unref(N)).Dialog.GetTitle(),text:("PHelp"in n?n.PHelp:i.unref(N)).Dialog.GetText()},null,8,["title","text"]),i.createElementVNode("div",Wm,[i.createVNode(s,{type:"primary",text:("PHelp"in n?n.PHelp:i.unref(N)).Dialog.GetConfirmButtonText(),margin:"10px 0 0 0",onClick:o[0]||(o[0]=a=>("PHelp"in n?n.PHelp:i.unref(N)).Dialog.Submit())},null,8,["text"]),i.createVNode(s,{type:"warning",text:("PHelp"in n?n.PHelp:i.unref(N)).Dialog.GetCancelButtonText(),margin:"10px 0 0 0",onClick:o[1]||(o[1]=a=>("PHelp"in n?n.PHelp:i.unref(N)).Dialog.Cancel())},null,8,["text"])])],2)):i.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-cbdf027e"]]),Gm={};function jm(t,e){return i.openBlock(),i.createElementBlock(i.Fragment,null,[e[0]||(e[0]=i.createElementVNode("div",{class:"blur"},null,-1)),e[1]||(e[1]=i.createElementVNode("div",{class:"loader-container"},[i.createElementVNode("div",{class:"loader",style:{"--b":"20px",width:"200px","--n":"10"}})],-1))],64)}const Aa=M(Gm,[["render",jm],["__scopeId","data-v-879cfd55"]]),Va=M(i.defineComponent({__name:"PNotification",setup(t){const e=i.computed(()=>{switch(N.Notification.GetType()){case"info":return"message info";case"success":return"message success";case"warning":return"message warning";case"error":return"message error";default:return"message neutral"}});return(n,o)=>{const r=zn;return i.openBlock(),i.createBlock(i.Transition,{name:"fade"},{default:i.withCtx(()=>[("PHelp"in n?n.PHelp:i.unref(N)).Notification.IsVisible()?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e))},[i.createVNode(r,{title:("PHelp"in n?n.PHelp:i.unref(N)).Notification.GetTitle(),text:("PHelp"in n?n.PHelp:i.unref(N)).Notification.GetText()},null,8,["title","text"])],2)):i.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-e8d26012"]]),Zm={style:{display:"flex","justify-content":"center",width:"100%"}},Ym={class:"pag-number"},Jm={class:"pag-ul"},Xm={key:2},Pa=M(i.defineComponent({__name:"PPagination",props:{showConfirm:{type:Boolean,default:!1},justifyContent:{type:String,default:"center"},store:{type:Object,required:!0}},emits:["cancel","save"],setup(t,{emit:e}){const n=t,o=y=>y?"active":"neutral",r=y=>y?"not-active":"neutral",s=N.Paginator,a=i.ref(!1),c=i.ref(!1),d=e;s.count=n.store.Count();const u=async y=>{if(y!==s.curPage){if(y<1&&(y=1),y>s.pagesCount()&&(y=s.pagesCount()),!n.showConfirm)return await h(y);N.Dialog.Save().then(async()=>{d("save"),await h(y)}).catch(async()=>{N.Notification.Warning("Изменения не были сохранены"),d("cancel"),await h(y)})}},h=async(y,g)=>{s.setCurPage(y),ee.Get().p.offset=(y-1)*s.limit,await n.store.FTSP(),p()},f=i.computed(()=>{const y=s.pagesCount();return y<8?Ve.GenerateNumsRange(2,y-1).filter(g=>g<y&&g>1):Ve.GenerateNumsRange(s.curPage-2,s.curPage+3).filter(g=>g<y&&g>1)}),p=()=>{const y=document.querySelector(".el-table__body-wrapper"),g=document.querySelector("#list");y?y.scrollTo({top:0}):g&&g.scrollTo({top:0})};return i.onBeforeUnmount(()=>{ee.Get().p.drop()}),(y,g)=>{const k=Li,b=pe,I=_i,L=qi,O=Hi,z=Oi;return i.openBlock(),i.createElementBlock("div",Zm,[i.createElementVNode("div",{class:"pag-container",style:i.normalizeStyle({justifyContent:t.justifyContent})},[i.createElementVNode("div",Ym,[i.createVNode(b,{skin:"pag",type:r(i.unref(s).curPage===1),onClick:g[0]||(g[0]=F=>u(i.unref(s).curPage-1))},{default:i.withCtx(()=>[i.createVNode(k)]),_:1},8,["type"]),i.createElementVNode("ul",Jm,[i.createElementVNode("li",null,[i.createVNode(b,{skin:"pag",type:o(i.unref(s).curPage===1),text:"1",onClick:g[1]||(g[1]=F=>u(1))},null,8,["type"])]),i.unref(s).pagesCount()>8&&i.unref(s).curPage>4?(i.openBlock(),i.createElementBlock("li",{key:0,onMouseenter:g[3]||(g[3]=F=>a.value=!0),onMouseleave:g[4]||(g[4]=F=>a.value=!1)},[i.createVNode(b,{skin:"pag",type:"neutral",onClick:g[2]||(g[2]=F=>u(i.unref(s).curPage-5))},{default:i.withCtx(()=>[i.unref(a)?(i.openBlock(),i.createBlock(I,{key:0})):(i.openBlock(),i.createBlock(L,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f),F=>(i.openBlock(),i.createElementBlock("li",{key:F},[i.createVNode(b,{skin:"pag",type:o(F===i.unref(s).curPage),text:F,onClick:ve=>u(F)},null,8,["type","text","onClick"])]))),128)),i.unref(s).pagesCount()>=8&&i.unref(s).curPage<i.unref(s).pagesCount()-3?(i.openBlock(),i.createElementBlock("li",{key:1,onMouseenter:g[6]||(g[6]=F=>c.value=!0),onMouseleave:g[7]||(g[7]=F=>c.value=!1)},[i.createVNode(b,{skin:"pag",type:"neutral",onClick:g[5]||(g[5]=F=>u(i.unref(s).curPage+5))},{default:i.withCtx(()=>[i.unref(c)?(i.openBlock(),i.createBlock(O,{key:0})):(i.openBlock(),i.createBlock(L,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),i.unref(s).pagesCount()>1?(i.openBlock(),i.createElementBlock("li",Xm,[i.createVNode(b,{skin:"pag",type:o(i.unref(s).pagesCount()===i.unref(s).curPage),text:i.unref(s).pagesCount(),onClick:g[8]||(g[8]=F=>u(i.unref(s).pagesCount()))},null,8,["type","text"])])):i.createCommentVNode("",!0)]),i.createVNode(b,{skin:"pag",type:r(i.unref(s).curPage===i.unref(s).pagesCount()),onClick:g[9]||(g[9]=F=>u(i.unref(s).curPage+1))},{default:i.withCtx(()=>[i.createVNode(z)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-6645cd2f"]]),Fa=M(i.defineComponent({__name:"RemoteSearch",props:{keyValue:{type:String,default:""},modelValue:{type:String,default:""},storeModule:{type:String,default:""},placeholder:{type:String,default:"Начните вводить запрос"},showSuggestions:{type:Boolean,default:!0},maxWidth:{type:[Number,String],default:350},focus:{type:Boolean,default:!1}},emits:["select","load","input"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.modelValue),s=i.ref(),a=kn.SearchModel();i.watch(()=>n.focus,()=>{n.focus&&setTimeout(()=>{s.value.focus(),r.value=""},500)});const c=async h=>{if(h.length<2)return;s.value.activated=!0,a.searchObjects=[],a.query=h,a.key=n.keyValue;const f=a.searchGroups.find(p=>p.key===n.keyValue);return f&&(a.searchGroup=f),await kn.Search(a),a.searchObjects},d=async h=>{o("select",h),r.value=""},u=h=>{o("input",h),h.length===0&&o("input","")};return(h,f)=>{const p=uo;return i.openBlock(),i.createBlock(p,{ref_key:"searchForm",ref:s,modelValue:i.unref(r),"onUpdate:modelValue":f[0]||(f[0]=y=>i.isRef(r)?r.value=y:null),"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:t.placeholder,"search-func":c,"trigger-on-focus":t.showSuggestions,suggestions:i.unref(a).searchObjects,onSelect:d,onInput:u},{suffix:i.withCtx(()=>f[1]||(f[1]=[i.createElementVNode("i",{class:"el-icon-search"},null,-1)])),_:1},8,["modelValue","placeholder","trigger-on-focus","suggestions"])}}}),[["__scopeId","data-v-11ab26af"]]),Qm={class:"mainblock-body"},Km={class:"mainblock-footer"},Ta=M(i.defineComponent({__name:"ResearcheContainer",props:{background:{type:String,required:!1,default:"inherit"},padding:{type:String,required:!1,default:"0px 10px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"mainblock",style:i.normalizeStyle({background:t.background,padding:t.padding})},[i.createElementVNode("div",{class:"mainblock-header",style:i.normalizeStyle({background:t.background})},[i.renderSlot(e.$slots,"header",{},void 0,!0)],4),i.createElementVNode("div",Qm,[i.renderSlot(e.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",Km,[i.renderSlot(e.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-a670fb4a"]]),ep={class:"right-slider-content"},tp={class:"right-slider-content-header"},np={class:"right-slider-content-box"},ip={class:"right-slider-button"},za=M(i.defineComponent({__name:"RightSliderContainer",props:{sliderOffWidth:{type:String,required:!1,default:"30px"},sliderOnWidth:{type:String,required:!1,default:"260px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1},titleOpen:{type:String,required:!1,default:"Скрыть список исследований"},titleClose:{type:String,required:!1,default:"Показать список исследований"}},emits:["toggle"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1);i.watch(()=>n.toggle,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("toggle",a)};return(a,c)=>{const d=we;return i.openBlock(),i.createElementBlock("div",{class:"right-slider",style:i.normalizeStyle({marginRight:i.unref(r)?`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`:"0",width:t.sliderOnWidth})},[i.createElementVNode("div",{class:"click-line",onClick:c[0]||(c[0]=u=>s(!i.unref(r)))},[i.unref(r)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),i.createElementVNode("div",ep,[i.createElementVNode("div",tp,[i.renderSlot(a.$slots,"header",{},void 0,!0)]),i.createElementVNode("div",np,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",ip,[i.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-495a90f9"]]),op={class:"mainblock"},rp={class:"body-block"},sp={class:"tab-block"},Da=M(i.defineComponent({__name:"RightTabsContainer",props:{sliderOffWidth:{type:String,required:!1,default:"101px"},sliderOnWidth:{type:String,required:!1,default:"332px"},background:{type:String,required:!1,default:"inherit"},isToggle:{type:Boolean,required:!1,default:!1},mobileWidth:{type:String,required:!1,default:"768px"}},emits:["toggle"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(window.matchMedia("(max-width: 768px)").matches),a=d=>{o("toggle",d)},c=i.ref(!1);return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(n.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return s.value=window.matchMedia("(max-width: 1215px)").matches;case"1024px":return s.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return s.value=window.matchMedia("(max-width: 768px)").matches}return s.value=window.matchMedia("(max-width: 1330px)").matches}),r.value=!0}),(d,u)=>(i.openBlock(),i.createElementBlock("div",op,[i.createElementVNode("div",{class:"slider-block",style:i.normalizeStyle({marginRight:i.unref(s)?t.isToggle?"49px":`calc(49px - ${t.sliderOnWidth})`:t.isToggle?t.sliderOffWidth:`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`,width:t.sliderOnWidth,minHeight:t.sliderOffWidth,height:t.isToggle?"auto":"100px"})},[i.createElementVNode("div",{class:"slider-icon",style:i.normalizeStyle({border:t.isToggle?"1px solid #379FFF":"1px solid #00B5A4",background:t.isToggle?"#ffffff":"#C7ECEA"}),onClick:u[0]||(u[0]=h=>a(!t.isToggle)),onMouseenter:u[1]||(u[1]=h=>c.value=!0),onMouseleave:u[2]||(u[2]=h=>c.value=!1)},[i.createElementVNode("div",{class:"icon-block",style:i.normalizeStyle({transform:i.unref(c)?t.isToggle?"rotate(-225deg) scale(1.2, 1.2)":"rotate(0deg) scale(1.2, 1.2)":t.isToggle?"rotate(-225deg)":"rotate(0deg)",fill:t.isToggle?"#379FFF":"#00B5A4"})},[i.renderSlot(d.$slots,"icon",{},void 0,!0)],4)],36),i.createElementVNode("div",{class:"slider-info",style:i.normalizeStyle({width:`calc(${t.sliderOnWidth} - ${t.sliderOffWidth})`})},[i.renderSlot(d.$slots,"slider-body",{},void 0,!0)],4)],4),i.createElementVNode("div",rp,[i.renderSlot(d.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",sp,[i.renderSlot(d.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-eaeca0cc"]]),ap={class:"mainblock"},lp={class:"body"},cp={key:0,class:"title"},dp={class:"title-line"},up={class:"icon-filter",style:{stroke:"#B0A4C0",paddingLeft:"10px"}},hp={key:0,class:"help-block"},fp={key:0,class:"title"},mp={class:"title-line"},pp={class:"icon-download",style:{stroke:"#B0A4C0",paddingLeft:"10px"}},gp={key:1,class:"icons"},La=M(i.defineComponent({__name:"RSContainer",props:{menuWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"6000px"}},setup(t){const e=t,n=i.ref(!1),o=i.ref(!1),r=i.ref(!1),s=i.ref(window.matchMedia("(max-width: 6000px)").matches),a=()=>{o.value=!1,r.value=!1},c=()=>{o.value=!o.value},d=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return s.value=window.matchMedia("(max-width: 1215px)").matches;case"1024px":return s.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return s.value=window.matchMedia("(max-width: 768px)").matches}return s.value=window.matchMedia("(max-width: 6000px)").matches}),n.value=!0}),(u,h)=>{const f=zi,p=pe,y=Ti;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",ap,[o.value|r.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:h[0]||(h[0]=g=>a())})):i.createCommentVNode("",!0),i.createElementVNode("div",lp,[i.createElementVNode("div",{class:"visability-block",style:i.normalizeStyle({maxWidth:s.value?"100%":"300px"})},[i.renderSlot(u.$slots,"visability",{},void 0,!0)],4),i.createElementVNode("div",{class:"filter-block",style:i.normalizeStyle({position:s.value?"absolute":"",top:s.value?"10px":"",right:s.value?"0px":"",width:(s.value,"100%"),zIndex:s.value?"4":"",padding:s.value?"0px 0px 26px 0px":"0",marginRight:s.value?o.value?"0":"-200%":"0",transition:s.value?"0.3s":"",background:s.value?"#F5f5f5":"",borderTopLeftRadius:s.value?"5px":"",borderBottomLeftRadius:s.value?"5px":"",boxShadow:(s.value,"rgba(0, 0, 0, 0.35) 0px 5px 5px"),height:(s.value,"60vh")})},[s.value?(i.openBlock(),i.createElementBlock("div",cp,[i.createElementVNode("div",dp,[(i.openBlock(),i.createElementBlock("svg",up,h[5]||(h[5]=[i.createElementVNode("use",{"xlink:href":"#filter"},null,-1)]))),(i.openBlock(),i.createElementBlock("svg",{class:"icon-close",style:{marginRight:"5px"},onClick:h[1]||(h[1]=g=>c())},h[6]||(h[6]=[i.createElementVNode("use",{"xlink:href":"#close"},null,-1)])))]),i.renderSlot(u.$slots,"title-tools",{},void 0,!0)])):i.createCommentVNode("",!0),i.renderSlot(u.$slots,"filter",{},void 0,!0)],4),s.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",hp)),i.createElementVNode("div",{class:"download-block",style:i.normalizeStyle({position:s.value?"absolute":"",top:s.value?"60px":"",right:s.value?"0px":"",width:s.value?"77px":"",zIndex:s.value?"4":"",padding:s.value?"0px 0px 26px 0px":"0 0 0 10px",marginRight:s.value?r.value?"-2px":"-130px":"0",transition:s.value?"0.3s":"",background:s.value?"#F5f5f5":"",borderTopLeftRadius:s.value?"5px":"",borderBottomLeftRadius:s.value?"5px":"",boxShadow:s.value?"rgba(0, 0, 0, 0.35) 0px 5px 5px":"",height:s.value?"150px":""})},[s.value?(i.openBlock(),i.createElementBlock("div",fp,[i.createElementVNode("div",mp,[(i.openBlock(),i.createElementBlock("svg",pp,h[7]||(h[7]=[i.createElementVNode("use",{"xlink:href":"#download"},null,-1)]))),(i.openBlock(),i.createElementBlock("svg",{class:"icon-close",onClick:h[2]||(h[2]=g=>d())},h[8]||(h[8]=[i.createElementVNode("use",{"xlink:href":"#close"},null,-1)])))])])):i.createCommentVNode("",!0),i.renderSlot(u.$slots,"download",{},void 0,!0)],4),s.value?(i.openBlock(),i.createElementBlock("div",gp,[i.createVNode(p,{skin:"icon",margin:"0 0 0 10px",onClick:h[3]||(h[3]=g=>c())},{default:i.withCtx(()=>[i.createVNode(f,{color:"#006BB4"})]),_:1}),i.createVNode(p,{skin:"icon",margin:"13px 0 0 10px",onClick:h[4]||(h[4]=g=>d())},{default:i.withCtx(()=>[i.createVNode(y,{color:"#006BB4"})]),_:1})])):i.createCommentVNode("",!0)])]),h[9]||(h[9]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M12 10.5857L16.95 5.63574L18.364 7.04974L13.414 11.9997L18.364 16.9497L16.95 18.3637L12 13.4137L7.04999 18.3637L5.63599 16.9497L10.586 11.9997L5.63599 7.04974L7.04999 5.63574L12 10.5857Z"})])],-1))],64)}}}),[["__scopeId","data-v-468150ac"]]),yp=["label","value"],Oa=M(i.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(t,{emit:e}){const n={[fe.String]:"Текстовый ответ",[fe.Text]:"Развёрнутый текстовый ответ",[fe.Number]:"Числовой ответ",[fe.Date]:"Ответ в виде даты",[fe.Radio]:"Выбор одного из вариантов",[fe.Set]:"Выбор нескольких вариантов",[fe.File]:"Ответ в виде файла",[fe.MatrixRadio]:"Матрица с одним выбором",[fe.MatrixSet]:"Матрица с несколькими выборами"},o=e,r=s=>{o("select",s)};return(s,a)=>{const c=we,d=at;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(c,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),i.createVNode(d,{"model-value":t.selectedType,placeholder:"Вид ответа",onChange:r},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,(u,h)=>i.createElementVNode("option",{key:u,label:u,value:h},null,8,yp)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-6be05cd5"]]),wp={class:"field"},_a=M(i.defineComponent({__name:"SingleNameToggleForm",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(),a=i.ref(n.withName.name),c=i.ref(!1),d=()=>{c.value=!1},u=async()=>{a.value.trim(),n.withName.setName&&n.withName.setName(a.value),r.value=!r.value,o("submit")};return(h,f)=>{const p=we,y=i.resolveComponent("el-input"),g=i.resolveComponent("el-form-item"),k=i.resolveComponent("el-form"),b=pe;return i.openBlock(),i.createBlock(k,{ref_key:"form",ref:s,style:{width:"100%"}},{default:i.withCtx(()=>[i.createVNode(lt,{title:"Название","show-save-dialog":c.value,icon:"edit-title","with-hover":!0,close:r.value,width:"100%",onKeyupEnter:u,onAfterClose:d},{"open-inside-content":i.withCtx(()=>[i.createVNode(lt,{title:"",icon:"edit-title","with-open-window":!1,"with-hover":!1,"border-color":"#ffffff","base-box-margin":"0 0 15px 0",padding:"0",width:"100%","custom-class":"test","open-width":"100%"},{default:i.withCtx(()=>[i.createElementVNode("div",wp,[i.createVNode(k,null,{default:i.withCtx(()=>[i.createVNode(g,{style:{width:"100%"},prop:"surname"},{default:i.withCtx(()=>[i.createVNode(y,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=I=>a.value=I),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})])]),_:1}),i.createVNode(b,{type:"admin",color:"blue",text:"Сохранить",onClick:u})]),default:i.withCtx(()=>[a.value.length?(i.openBlock(),i.createBlock(p,{key:0,string:a.value.length>60?a.value.slice(0,60)+"...":a.value},null,8,["string"])):(i.openBlock(),i.createBlock(p,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:1},8,["show-save-dialog","close"])]),_:1},512)}}}),[["__scopeId","data-v-890163ac"]]),bp=["label","value"],Ha=M(i.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=i.ref(!1),o=e,r=i.ref();i.onBeforeMount(()=>{n.value=!0,r.value=Te.GetDefault(),ee.Get().setSortModel(r.value)});const s=async c=>{r.value=c??Te.GetDefault(),ee.Get().setSortModel(r.value),ee.Get().p.drop(),o("load")},a=async c=>{ee.Get().p.drop(),await s(c)};return(c,d)=>{var h;const u=at;return i.unref(n)?(i.openBlock(),i.createBlock(u,{key:0,modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=f=>i.isRef(r)?r.value=f:null),"popper-append-to-body":!1,clearable:!((h=i.unref(r))!=null&&h.default),"value-key":"label",onChange:a,onClear:d[1]||(d[1]=f=>a())},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Te).Get(),(f,p)=>(i.openBlock(),i.createElementBlock("option",{key:p,label:f.label,value:f},null,8,bp))),128))]),_:1},8,["modelValue","clearable"])):i.createCommentVNode("",!0)}}}),[["__scopeId","data-v-03971699"]]),Sp=["label","value"],qa=M(i.defineComponent({__name:"SortSelect",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=e,o=i.ref();i.onBeforeMount(()=>{o.value=Te.GetDefault()});const r=async a=>{a||(o.value=Te.GetDefault()),ee.Get().setSortModel(o.value),ee.Get().p.drop(),n("load")},s=async a=>{await r(a)};return(a,c)=>{var u;const d=at;return i.openBlock(),i.createBlock(d,{modelValue:i.unref(o),"onUpdate:modelValue":c[0]||(c[0]=h=>i.isRef(o)?o.value=h:null),"popper-append-to-body":!1,clearable:!((u=i.unref(o))!=null&&u.default),"value-key":"label",onChange:s},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Te).Get(),(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,label:h.label,value:h},null,8,Sp))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-98d731ba"]]),Cp={class:"switch-container"},kp={class:"line"},Ep={class:"line"},Ua=M(i.defineComponent({__name:"Switch3Pos",props:{firstModel:{type:Object,required:!0},secondModel:{type:Object,required:!0},defaultLabel:{type:String,default:"Все"}},emits:["load"],setup(t,{emit:e}){const n=t,o={background:"inherit",border:"1px solid #c4c4c4"},r=()=>n.firstModel.valueEq(u.value)?void 0:o,s=()=>u.value?o:void 0,a=()=>n.secondModel.valueEq(u.value)?void 0:o,c=f=>{var y;return{color:(y=u.value)!=null&&y.valueEq(f)?"#006bb4":"#B0A4C0"}},d=e,u=i.ref(void 0),h=async f=>{var p;(p=u.value)!=null&&p.valueEq(f)||(ee.Get().replaceF(f,u.value),u.value=f,d("load"))};return(f,p)=>{const y=we;return i.openBlock(),i.createElementBlock("div",Cp,[i.createElementVNode("div",kp,[i.createVNode(y,{string:t.firstModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(c(t.firstModel)),onClick:p[0]||(p[0]=g=>h(t.firstModel))},null,8,["string","style"]),i.createVNode(y,{string:"Все","font-size":"12px",padding:"0",style:i.normalizeStyle(c()),onClick:p[1]||(p[1]=g=>h())},null,8,["style"]),i.createVNode(y,{string:t.secondModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(c(t.secondModel)),onClick:p[2]||(p[2]=g=>h(t.secondModel))},null,8,["string","style"])]),i.createElementVNode("div",Ep,[i.createElementVNode("div",{class:i.normalizeClass(["switch-knob1",{active:t.firstModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(r()),onClick:p[3]||(p[3]=g=>h(t.firstModel))},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob2",{active:!i.unref(u)}]),style:i.normalizeStyle(s()),onClick:p[4]||(p[4]=g=>h())},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob3",{active:t.secondModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(a()),onClick:p[5]||(p[5]=g=>h(t.secondModel))},null,6),p[6]||(p[6]=i.createElementVNode("div",{class:"switch-axis"},null,-1)),p[7]||(p[7]=i.createElementVNode("div",{class:"switch-axis-dash1"},null,-1)),p[8]||(p[8]=i.createElementVNode("div",{class:"switch-axis-dash2"},null,-1)),p[9]||(p[9]=i.createElementVNode("div",{class:"switch-axis-dash3"},null,-1))])])}}}),[["__scopeId","data-v-4776a738"]]),vp={},Mp={class:"flex"};function Bp(t,e){return i.openBlock(),i.createElementBlock("div",Mp,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const Wa=M(vp,[["render",Bp],["__scopeId","data-v-4d1abb74"]]),Ga=M(i.defineComponent({__name:"ToggleInfoItem",props:{title:{type:String,required:!0},content:{type:String,required:!0}},emits:["submit"],setup(t,{emit:e}){const n=i.ref(!1),o=e,r=async()=>{o("submit"),n.value=!n.value};return(s,a)=>{const c=we,d=pe,u=jt,h=lt;return i.openBlock(),i.createBlock(h,{title:t.title,icon:"edit-title","with-hover":!0,close:i.unref(n),width:"100%",onKeyupEnter:r},{"open-inside-content":i.withCtx(()=>[i.createVNode(u,{"custom-class":"grid"},{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default",{},void 0,!0),i.createVNode(d,{type:"admin",color:"blue",text:"Сохранить",onClick:r})]),_:3})]),default:i.withCtx(()=>[t.content.length>0?(i.openBlock(),i.createBlock(c,{key:0,string:t.content},null,8,["string"])):(i.openBlock(),i.createBlock(c,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-994f6522"]]),Ip={class:"top-slider-content"},$p={class:"center"},ja=M(i.defineComponent({__name:"TopSliderContainer",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1}},emits:["toggle"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!0);i.watch(()=>n.toggle,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("toggle",a)};return(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=i.withModifiers(d=>r.value=!0,["prevent"])),c[1]||(c[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(r)?`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`:"0",height:t.sliderOnHeight}),onClick:c[3]||(c[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Ip,[i.createElementVNode("div",$p,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:c[2]||(c[2]=d=>s(!i.unref(r)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-fec4dfde"]]),xp={id:"drop-area",class:"img-container"},Np={key:0},Rp=["src"],Ap={class:"tools-button"},Vp={class:"ins"},Pp={key:1},Fp=["id"],Za=M(i.defineComponent({__name:"UploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{type:X,required:!0},height:{type:Number,default:150},width:{type:Number,default:150},cropRatio:{type:Boolean,default:!0},emitCrop:{type:Boolean,default:!1},defaultRatio:{type:Number,required:!1,default:1}},emits:["crop","removeFile"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(void 0),s=q.CreateGuid(),a=i.ref(!1),c=i.ref(),d=b=>{const I=n.cropRatio?n.defaultRatio:0;Vi.Open(In.CreateCropper(b.url,I,n.fileInfo.id)),a.value=!0},u=()=>{N.Dialog.Show({text:"Вы хотите удалить изображение",confirmButtonText:"Удалить",cancelButtonText:"Не удалять"}).then(()=>{r.value=void 0,c.value.clearFiles(),o("removeFile")})},h=b=>{n.fileInfo.setFile(b),n.fileInfo.fileSystemPath&&(r.value=n.fileInfo),a.value=!1,o("crop")};i.onBeforeMount(()=>{n.fileInfo.fileSystemPath&&(r.value=n.fileInfo,r.value.url=n.fileInfo.getFileUrl())});let f=null;i.onMounted(()=>{const b=document.getElementById("drop-area");b&&(b.addEventListener("dragover",I=>{p(I),b.classList.add("drag-over")}),b.addEventListener("dragleave",I=>{p(I),b.classList.remove("drag-over")}),b.addEventListener("dragenter",p),b.addEventListener("dragleave",p),b.addEventListener("drop",g),f=document.getElementById(s))});function p(b){b.preventDefault(),b.stopPropagation()}const y=()=>{f&&f.click()};function g(b){if(b.preventDefault(),!b.dataTransfer)return;const I=b.dataTransfer.files;I.length&&f&&(f.files=I,k())}const k=()=>{if(!f||!f.files||!f.files.length)return;const b=f.files[0];b.url=URL.createObjectURL(b),r.value=b,n.fileInfo.uploadNewFile(b),d(r.value)};return(b,I)=>{const L=pe,O=so;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",xp,[i.unref(r)?(i.openBlock(),i.createElementBlock("div",Np,[i.createElementVNode("div",{class:"img-block",style:i.normalizeStyle({width:t.height*t.defaultRatio-2+"px",height:t.height+"px"})},[i.createElementVNode("img",{class:"el-upload-list__item-thumbnail",src:i.unref(r).url,alt:"upload-image"},null,8,Rp)],4),i.createElementVNode("div",Ap,[i.createElementVNode("div",Vp,[i.createVNode(L,{skin:"text",text:"Изменить","font-size":"20px",width:"300px",margin:"100px 0 0 0",onClick:I[0]||(I[0]=z=>d(i.unref(r)))}),i.createVNode(L,{skin:"text",text:"Удалить","font-size":"20px",width:"300px",margin:"50px 0 0 0",onClick:I[1]||(I[1]=z=>u())})])])])):(i.openBlock(),i.createElementBlock("div",Pp,[i.createElementVNode("div",{class:"add-button",style:i.normalizeStyle({width:t.height*t.defaultRatio-2+"px",height:t.height+"px"})},[i.createVNode(L,{skin:"text",text:"Добавить","font-size":"20px",onClick:y})],4)]))]),i.createElementVNode("input",{id:i.unref(s),type:"file",hidden:"",onChange:k},null,40,Fp),t.withCrop?(i.openBlock(),i.createBlock(O,{key:0,open:i.unref(a),"default-ratio":t.defaultRatio,onCrop:h,onClose:I[2]||(I[2]=z=>a.value=!1)},null,8,["open","default-ratio"])):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-61aa63c7"]]),Tp=["Passport","PassportScan","Inn","Snils"],zp=["PassportsStore","PassportScansStore","InnsStore","SnilssStore"],Dp=["Extract"],Lp=["ExtractsStore"],Op=["AnswerVariant","Field","FieldFill","Form","FormFill","FormSection","SelectedAnswerVariant"],_p=["FieldsStore","AnswerVariantsStore","FieldFillsStore","FormFillsStore","FormSectionsStore","FormsStore","SelectedAnswerVariantsStore"],Ya=["ColorTheme"],Hp=[...Tp,...zp,...Ya,...Ya,...Op,..._p,...Dp,...Lp],qp=["BaseStore","$P","Contact","Static","Button","RouterGuard","Sizes","Human","FileInfo","Statuses","Email","FTSP","Arrays","Axios","brandColors","buildNameNumbers","Cache","CarouselSwipe","ClassHelper","Color","countRating","CreateSortModels","Cursor","DateFormat","DateMask","Dates","DatesFormatter","Dragger","Favourite","Extension","HttpClient","MakeCarousel","moveUp","moveDown","Period","PhoneService","Router","Scheduler","Scroll","Sorter","Strings","Time","TimeFormatter","Token","useConfirmLeavePage","validate","WaitElement","WebSocketClient","Hooks","ValueType","PHelp","FilterModel","SortModel"],Up=["AuthStore","ContactsStore","CropperStore","EmailsStore","FileInfosStore","FTSPPresetsStore","MenusStore","HumansStore","SchemasStore","PhonesStore","SearchStore","UserAccountsStore","ValueTypesStore"],Wp=["Orders"];class Gp extends an{constructor(){super(...arguments);l(this,"label","Логин");l(this,"name","login");l(this,"validator",new Lo);l(this,"method",ft.Login);l(this,"id","field-auth-login")}}const jp={install:function(t){t.component("PButton",pe),t.component("PCheckBox",Un),t.component("PDatePicker",vo),t.component("PFlex",Wn),t.component("PInput",We),t.component("PInputDate",Ri),t.component("PInputNumber",Es),t.component("PLeftSlider",vs),t.component("PList",Ms),t.component("PListItem",Bs),t.component("PRadio",Is),t.component("PRightSlider",$s),t.component("PSelect",at),t.component("PSticky",Mn),t.component("PString",we),t.component("PTextarea",xs),t.component("PTopSlider",Ns),t.component("IconDownload",Ti),t.component("IconFilter",zi),t.component("ArrowLeft",Li),t.component("ArrowRight",Oi),t.component("DoubleArrowLeft",_i),t.component("DoubleArrowRight",Hi),t.component("EllipsisSvg",qi),t.component("IconArrowLeft",qs),t.component("IconCheckDefault",qn),t.component("IconClose",Wt),t.component("IconEdit",Us),t.component("IconEmail",Ws),t.component("IconMove",Gs),t.component("IconPhone",js),t.component("IconSearch",Di),t.component("IconSelectArrow",Ai),t.component("CollapseContainer",Ea),t.component("CollapseItem",va),t.component("VerticalCollapseContainer",Ma),t.component("PAdd",Ba),t.component("PContainer",ao),t.component("PContainerStickyHead",Ia),t.component("PDel",$a),t.component("PTabs",xa),t.component("UploaderFile",Na),t.component("AuthForm",Bn),t.component("PModal",Gt),t.component("AuthPage",lo),t.component("PageNotFound",co),t.component("AdaptiveContainer",wo),t.component("AdaptiveContainerHorizontal",bo),t.component("AdminGallery",Eo),t.component("AuthModal",Rs),t.component("CarouselImages",As),t.component("ContactForm",Vs),t.component("ContextWindow",Ps),t.component("DateInputRangeV2",Ts),t.component("DateInputRange",Fs),t.component("DropList",zs),t.component("EmailForm",Pi),t.component("FilterCheckbox",Ds),t.component("FiltersButtonsSelect",Ls),t.component("FilterSelect",Os),t.component("FTSPPanel",_s),t.component("GeneralItem",Hs),t.component("GridContainer",jt),t.component("ImageCropper",so),t.component("InfoItem",lt),t.component("InfoItemSelectButtons",Ca),t.component("LeftRightContainer",ka),t.component("MessageBody",zn),t.component("PAutocomplete",uo),t.component("PDialog",Ra),t.component("PhoneForm",Fi),t.component("PLoader",Aa),t.component("PNotification",Va),t.component("PPagination",Pa),t.component("RemoteSearch",Fa),t.component("ResearcheContainer",Ta),t.component("RightSliderContainer",za),t.component("RightTabsContainer",Da),t.component("RSContainer",La),t.component("SelectValueType",Oa),t.component("SingleNameToggleForm",_a),t.component("SortList",Ha),t.component("SortSelect",qa),t.component("Switch3Pos",Ua),t.component("ThemeWrapper",Wa),t.component("ToggleInfoItem",Ga),t.component("TopSliderContainer",ja),t.component("UploaderImage",Za)}};m.$P=je,m.AdaptiveContainer=wo,m.AdaptiveContainerHorizontal=bo,m.AdminGallery=Eo,m.AnswerVariant=nt,m.AnswerVariantsStore=zr,m.Arrays=Ve,m.ArrowLeft=Li,m.ArrowRight=Oi,m.Auth=bi,m.AuthButtonLogin=Jn,m.AuthButtonRegister=Xn,m.AuthForm=Bn,m.AuthFormSettings=_o,m.AuthFormStatuses=Se,m.AuthMethods=ft,m.AuthModal=Rs,m.AuthPage=lo,m.AuthStore=Wr,m.Axios=Dt,m.BaseStore=Y,m.Button=Qe,m.Cache=ch,m.CarouselImages=As,m.CarouselSwipe=dh,m.ClassHelper=v,m.CollapseContainer=Ea,m.CollapseItem=va,m.Color=hh,m.ColorTheme=Lt,m.ColorThemesStore=Su,m.Contact=ht,m.ContactForm=Vs,m.ContactsStore=Gr,m.ContextWindow=Ps,m.CreateSortModels=zo,m.CropperStore=Vi,m.Cursor=mh,m.DateFormat=Ct,m.DateInputRange=Fs,m.DateInputRange_v2=Ts,m.DateMask=Ch,m.Dates=$i,m.DatesFormatter=Pe,m.DoubleArrowLeft=_i,m.DoubleArrowRight=Hi,m.Dragger=kh,m.DropList=zs,m.EllipsisSvg=qi,m.Email=Xe,m.EmailField=ln,m.EmailForm=Pi,m.EmailsStore=Si,m.Extension=Ss,m.Extract=yi,m.ExtractsStore=nu,m.FTSP=ee,m.FTSPPanel=_s,m.FTSPPresetsStore=Zr,m.Favourite=Eh,m.Field=bn,m.FieldFill=yt,m.FieldFillsStore=Dr,m.FieldsStore=Lr,m.FileInfo=X,m.FileInfosStore=jr,m.FilterCheckbox=Ds,m.FilterModel=jn,m.FilterSelect=Os,m.FiltersButtonsSelect=Ls,m.Form=Pr,m.FormFill=Tr,m.FormFillsStore=Or,m.FormSection=Sn,m.FormSectionsStore=_r,m.FormsStore=Hr,m.GeneralItem=Hs,m.GridContainer=jt,m.Hooks=sh,m.HttpClient=ae,m.Human=Zn,m.HumansStore=Yr,m.IconArrowLeft=qs,m.IconCheckDefault=qn,m.IconClose=Wt,m.IconDownload=Ti,m.IconEdit=Us,m.IconEmail=Ws,m.IconFilter=zi,m.IconMove=Gs,m.IconPhone=js,m.IconSearch=Di,m.IconSelectArrow=Ai,m.ImageCropper=so,m.InfoItem=lt,m.InfoItemSelectButtons=Ca,m.Inn=Ho,m.InnsStore=Zd,m.LeftRightContainer=ka,m.LoginField=Gp,m.M=Ur,m.MakeCarousel=Cs,m.MenusStore=ns,m.MessageBody=zn,m.Orders=Fe,m.PAdd=Ba,m.PAutocomplete=uo,m.PButton=pe,m.PCheckBox=Un,m.PContainer=ao,m.PContainerStickyHead=Ia,m.PDatePicker=vo,m.PDel=$a,m.PDialog=Ra,m.PFlex=Wn,m.PHelp=N,m.PInput=We,m.PInputDate=Ri,m.PInputNumber=Es,m.PLeftSlider=vs,m.PList=Ms,m.PListItem=Bs,m.PLoader=Aa,m.PModal=Gt,m.PNotification=Va,m.PPagination=Pa,m.PRadio=Is,m.PRightSlider=$s,m.PSelect=at,m.PSticky=Mn,m.PString=we,m.PTabs=xa,m.PTextarea=xs,m.PTopSlider=Ns,m.PageNotFound=co,m.Passport=Qn,m.PassportScan=Rt,m.PassportScansStore=Jd,m.PassportsStore=Qd,m.PasswordField=cn,m.PasswordRepeatField=Oo,m.Period=Ht,m.PhoneForm=Fi,m.PhoneService=xi,m.PhonesStore=ki,m.RSContainer=La,m.RemoteSearch=Fa,m.ResearcheContainer=Ta,m.RightSliderContainer=za,m.RightTabsContainer=Da,m.Router=st,m.RouterGuard=Ih,m.Scheduler=$h,m.SchemasStore=os,m.Scroll=Nh,m.SearchStore=kn,m.SelectValueType=Oa,m.SelectedAnswerVariant=ot,m.SelectedAnswerVariantsStore=qr,m.SingleNameToggleForm=_a,m.Sizes=Hn,m.Snils=qo,m.SnilssStore=eu,m.SortList=Ha,m.SortModel=rn,m.SortSelect=qa,m.Sorter=ks,m.Static=Ni,m.Statuses=ue,m.Strings=q,m.Switch3Pos=Ua,m.ThemeWrapper=Wa,m.Time=_,m.Timer=Ut,m.ToggleInfoItem=Ga,m.Token=zt,m.TopSliderContainer=ja,m.UploaderFile=Na,m.UploaderImage=Za,m.UserAccountsStore=as,m.ValueType=Yn,m.ValueTypesStore=ls,m.VerticalCollapseContainer=Ma,m.WaitElement=Ah,m.WebSocketClient=Ph,m.brandColors=ah,m.buildNameNumbers=lh,m.classesNames=gl,m.countRating=fh,m.modulesNames=Hp,m.moveDown=Mh,m.moveUp=vh,m.servicesComponents=jp,m.servicesNames=qp,m.servicesStoresNames=Up,m.typesNames=Wp,m.useConfirmLeavePage=ws,m.validate=Rh,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
41
+ ***************************************************************************** */function Ys(t,e){var n,o;return t&&e?(n=""+t+e[0].toUpperCase()+e.slice(1),o=t+"-"+e):(n=t||e,o=t||e),{name:n,classname:o}}function Js(t){return/^blob:/.test(t)}function Xs(t){return Js(t)||function(e){return/^data:/.test(e)}(t)}function St(t){return!!(t&&t.constructor&&t.call&&t.apply)}function oe(t){return t===void 0}function In(t){return typeof t=="object"&&t!==null}function Ui(t,e,n){var o={};return In(t)?(Object.keys(e).forEach(function(r){oe(t[r])?o[r]=e[r]:In(e[r])?In(t[r])?o[r]=Ui(t[r],e[r],n[r]):o[r]=t[r]?e[r]:n[r]:e[r]===!0||e[r]===!1?o[r]=!!t[r]:o[r]=t[r]}),o):t?e:n}function $n(t){var e=Number(t);return Number.isNaN(e)?t:e}function Qs(t){return typeof(t=="number"||function(e){return typeof e=="object"&&e!==null}(t)&&toString.call(t)=="[object Number]")&&!Ks(t)}function Ks(t){return t!=t}function ea(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var Gt=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},kf=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},Wi=function(t){this.type="move",this.directions=t},Ef=function(){function t(e,n,o,r,s){this.type="drag",this.nativeEvent=e,this.position=o,this.previousPosition=r,this.element=n,this.anchor=s}return t.prototype.shift=function(){var e=this,n=e.element,o=e.anchor,r=e.position;if(n){var s=n.getBoundingClientRect(),a=s.left,c=s.top;return{left:r.left-a-o.left,top:r.top-c-o.top}}return{left:0,top:0}},t}(),Gi={name:"DraggableElement",props:{classname:{type:String}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(t){t.cancelable&&!this.disabled&&t.touches.length===1&&(this.touches=at(t.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),t.touches.length&&this.initAnchor(this.touches.reduce(function(e,n){return{clientX:e.clientX+n.clientX/t.touches.length,clientY:e.clientY+n.clientY/t.touches.length}},{clientX:0,clientY:0})),t.preventDefault&&t.preventDefault(),t.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(t){this.touches.length&&(this.processMove(t,t.touches),t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation())},onMouseDown:function(t){if(!this.disabled){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.draggable.getBoundingClientRect(),n=e.left,o=e.right,r=e.bottom,s=e.top;this.anchor={left:t.clientX-n,top:t.clientY-s,bottom:r-t.clientY,right:o-t.clientX}},processMove:function(t,e){var n=at(e);if(this.touches.length){if(this.touches.length===1&&n.length===1){var o=this.$refs.draggable;this.$emit("drag",new Ef(t,o,{left:n[0].clientX,top:n[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=n}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};Gi.render=function(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{ref:"draggable",class:n.classname,onTouchstart:e[1]||(e[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:e[2]||(e[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onMouseover:e[3]||(e[3]=function(){return s.onMouseOver&&s.onMouseOver.apply(s,arguments)}),onMouseleave:e[4]||(e[4]=function(){return s.onMouseLeave&&s.onMouseLeave.apply(s,arguments)})},[i.renderSlot(t.$slots,"default")],34)};var ji=Ne("vue-handler-wrapper"),ta={name:"HandlerWrapper",components:{DraggableElement:Gi},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var t;if(this.horizontalPosition||this.verticalPosition){var e,n=Ys(this.horizontalPosition,this.verticalPosition);t=ji((Me(e={},n.classname,!0),Me(e,"disabled",this.disabled),e))}else t=ji({disabled:this.disabled});return{root:t,draggable:ji("draggable")}}},emits:["leave","enter","drag","drag-end"]};ta.render=function(t,e,n,o,r,s){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock("div",{class:s.classes.root},[i.createVNode(a,{class:s.classes.draggable,onDrag:e[1]||(e[1]=function(c){return t.$emit("drag",c)}),onDragEnd:e[2]||(e[2]=function(c){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(c){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(c){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])],2)};var vf=Ne("vue-line-wrapper"),na={name:"LineWrapper",components:{DraggableElement:Gi},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return vf((Me(t={},this.position,!0),Me(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};na.render=function(t,e,n,o,r,s){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock(a,{class:s.classname,onDrag:e[1]||(e[1]=function(c){return t.$emit("drag",c)}),onDragEnd:e[2]||(e[2]=function(c){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(c){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(c){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])};var Te=["left","right","top","bottom"],Mf=["left","right"],Bf=["top","bottom"],If=["left","top"],$f=["fill-area","fit-area","stencil","none"],ia={left:0,top:0,width:0,height:0};function oa(t,e,n){return!(n=n||["width","height","left","top"]).some(function(o){return t[o]!==e[o]})}function ze(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function Ct(t,e){return{left:t.left-e.left,top:t.top-e.top}}function le(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function jt(t,e){var n={left:0,top:0,right:0,bottom:0};return Te.forEach(function(o){var r=e[o],s=ze(t)[o];n[o]=r!==void 0&&s!==void 0?o==="left"||o==="top"?Math.max(0,r-s):Math.max(0,s-r):0}),n}function De(t,e){return{left:t.left-e.left,top:t.top-e.top,width:t.width+e.left+e.right,height:t.height+e.top+e.bottom}}function xn(t){return{left:-t.left,top:-t.top}}function be(t,e){return V(V({},t),{left:t.left+e.left,top:t.top+e.top})}function Be(t,e,n,o){if(e!==1){if(n){var r=le(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(n.left-r.left)*(1-e),top:t.top+t.height*(1-e)/2+(n.top-r.top)*(1-e)}}return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2,top:t.top+t.height*(1-e)/2}}return t}function G(t){return t.width/t.height}function kt(t,e){return Math.min(e.right!==void 0&&e.left!==void 0?(e.right-e.left)/t.width:1/0,e.bottom!==void 0&&e.top!==void 0?(e.bottom-e.top)/t.height:1/0)}function Et(t,e){var n={left:0,top:0},o=jt(t,e);return o.left&&o.left>0?n.left=o.left:o.right&&o.right>0&&(n.left=-o.right),o.top&&o.top>0?n.top=o.top:o.bottom&&o.bottom>0&&(n.top=-o.bottom),n}function Zi(t,e){var n;return e.minimum&&t<e.minimum?n=e.minimum:e.maximum&&t>e.maximum&&(n=e.maximum),n}function ra(t,e){var n=G(t),o=G(e);return e.width<1/0&&e.height<1/0?n>o?{width:e.width,height:e.width/n}:{width:e.height*n,height:e.height}:e.width<1/0?{width:e.width,height:e.width/n}:e.height<1/0?{width:e.height*n,height:e.height}:t}function sa(t,e){var n=e*Math.PI/180;return{width:Math.abs(t.width*Math.cos(n))+Math.abs(t.height*Math.sin(n)),height:Math.abs(t.width*Math.sin(n))+Math.abs(t.height*Math.cos(n))}}function Ge(t,e){var n=e*Math.PI/180;return{left:t.left*Math.cos(n)-t.top*Math.sin(n),top:t.left*Math.sin(n)+t.top*Math.cos(n)}}function Nn(t,e){var n=jt(ce(t,e),e);return n.left+n.right+n.top+n.bottom?n.left+n.right>n.top+n.bottom?Math.min((t.width+n.left+n.right)/t.width,kt(t,e)):Math.min((t.height+n.top+n.bottom)/t.height,kt(t,e)):1}function ce(t,e,n){n===void 0&&(n=!1);var o=Et(t,e);return be(t,n?xn(o):o)}function Yi(t){return{width:t.right!==void 0&&t.left!==void 0?t.right-t.left:1/0,height:t.bottom!==void 0&&t.top!==void 0?t.bottom-t.top:1/0}}function xf(t,e){return V(V({},t),{minWidth:Math.min(e.width,t.minWidth),minHeight:Math.min(e.height,t.minHeight),maxWidth:Math.min(e.width,t.maxWidth),maxHeight:Math.min(e.height,t.maxHeight)})}function aa(t,e,n){n===void 0&&(n=!0);var o={};return Te.forEach(function(r){var s=t[r],a=e[r];s!==void 0&&a!==void 0?o[r]=r==="left"||r==="top"?n?Math.max(s,a):Math.min(s,a):n?Math.min(s,a):Math.max(s,a):a!==void 0?o[r]=a:s!==void 0&&(o[r]=s)}),o}function Rn(t,e){return aa(t,e,!0)}function la(t){var e=t.size,n=t.aspectRatio,o=t.ignoreMinimum,r=t.sizeRestrictions;return!!((e.correctRatio||G(e)>=n.minimum&&G(e)<=n.maximum)&&e.height<=r.maxHeight&&e.width<=r.maxWidth&&e.width&&e.height&&(o||e.height>=r.minHeight&&e.width>=r.minWidth))}function ca(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function _e(t){var e=t.width,n=t.height,o=t.sizeRestrictions,r={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},s={width:Math.max(o.minWidth,Math.min(o.maxWidth,e)),height:Math.max(o.minHeight,Math.min(o.maxHeight,n))};function a(u,h){return h===void 0&&(h=!1),u.reduce(function(f,p){return la({size:p,aspectRatio:r,sizeRestrictions:o,ignoreMinimum:h})&&(!f||ca(p,{width:e,height:n})<ca(f,{width:e,height:n}))?p:f},null)}var c=[];r&&[r.minimum,r.maximum].forEach(function(u){u&&c.push({width:s.width,height:s.width/u,correctRatio:!0},{width:s.height*u,height:s.height,correctRatio:!0})}),la({size:s,aspectRatio:r,sizeRestrictions:o})&&c.push(s);var d=a(c)||a(c,!0);return d&&{width:d.width,height:d.height}}function Ji(t){var e=t.event,n=t.coordinates,o=t.positionRestrictions,r=o===void 0?{}:o,s=be(n,e.directions);return be(s,Et(s,r))}function Nf(t){var e=t.coordinates,n=t.transform,o=t.imageSize,r=t.sizeRestrictions,s=t.positionRestrictions,a=t.aspectRatio,c=t.visibleArea,d=function(h,f){return Ji({coordinates:h,positionRestrictions:s,event:new Wi({left:f.left-h.left,top:f.top-h.top})})},u=V({},e);return(Array.isArray(n)?n:[n]).forEach(function(h){var f={};oe((f=typeof h=="function"?h({coordinates:u,imageSize:o,visibleArea:c}):h).width)&&oe(f.height)||(u=function(p,y){var g=V(V(V({},p),_e({width:y.width,height:y.height,sizeRestrictions:r,aspectRatio:a})),{left:0,top:0});return d(g,{left:p.left,top:p.top})}(u,V(V({},u),f))),oe(f.left)&&oe(f.top)||(u=d(u,V(V({},u),f)))}),u}function Rf(t){t.event;var e=t.getAreaRestrictions,n=t.boundaries,o=t.coordinates,r=t.visibleArea;t.aspectRatio;var s=t.stencilSize,a=t.sizeRestrictions,c=t.positionRestrictions;t.stencilReference;var d,u,h,f=V({},o),p=V({},r),y=V({},s);d=G(y),u=G(f),h===void 0&&(h=.001),(d===0||u===0?Math.abs(u-d)<h:Math.abs(u/d)<1+h&&Math.abs(u/d)>1-h)||(f=V(V({},f),_e({sizeRestrictions:a,width:f.width,height:f.height,aspectRatio:{minimum:G(y),maximum:G(y)}})));var g=Nn(p=Be(p,f.width*n.width/(p.width*y.width)),e({visibleArea:p,type:"resize"}));return g!==1&&(p=Be(p,g),f=Be(f,g)),p=ce(p=be(p,Ct(le(f),le(p))),e({visibleArea:p,type:"move"})),{coordinates:f=ce(f,Rn(ze(p),c)),visibleArea:p}}function Af(t){var e=t.event,n=t.getAreaRestrictions,o=t.boundaries,r=t.coordinates,s=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var a=t.positionRestrictions;t.stencilReference;var c=V({},r),d=V({},s);if(r&&s&&e.type!=="manipulateImage"){var u={width:0,height:0};d.width,o.width,G(o)>G(c)?(u.height=.8*o.height,u.width=u.height*G(c)):(u.width=.8*o.width,u.height=u.width*G(c));var h=Nn(d=Be(d,c.width*o.width/(d.width*u.width)),n({visibleArea:d,type:"resize"}));d=Be(d,h),h!==1&&(u.height/=h,u.width/=h),d=ce(d=be(d,Ct(le(c),le(d))),n({visibleArea:d,type:"move"})),c=ce(c,Rn(ze(d),a))}return{coordinates:c,visibleArea:d}}function Vf(t){var e=t.event,n=t.coordinates,o=t.visibleArea,r=t.getAreaRestrictions,s=V({},o),a=V({},n);if(e.type==="setCoordinates"){var c=Math.max(0,a.width-s.width),d=Math.max(0,a.height-s.height);c>d?s=Be(s,Math.min(a.width/s.width,kt(s,r({visibleArea:s,type:"resize"})))):d>c&&(s=Be(s,Math.min(a.height/s.height,kt(s,r({visibleArea:s,type:"resize"}))))),s=ce(s=be(s,xn(Et(a,ze(s)))),r({visibleArea:s,type:"move"}))}return{visibleArea:s,coordinates:a}}function Pf(t){var e=t.imageSize,n=t.visibleArea,o=t.coordinates,r=n||e;return{left:(n?n.left:0)+r.width/2-o.width/2,top:(n?n.top:0)+r.height/2-o.height/2}}function Ff(t){var e=t.imageSize,n=t.visibleArea,o=t.aspectRatio,r=t.sizeRestrictions,s=n||e,a=Math.min(o.maximum||1/0,Math.max(o.minimum||0,G(s))),c=s.width<s.height?{width:.8*s.width,height:.8*s.width/a}:{height:.8*s.height,width:.8*s.height*a};return _e(V(V({},c),{aspectRatio:o,sizeRestrictions:r}))}function Tf(t){var e,n,o=t.imageSize,r=t.visibleArea,s=t.boundaries,a=t.aspectRatio,c=t.sizeRestrictions,d=t.stencilSize,u=r||o;return G(u)>G(s)?n=(e=d.height*u.height/s.height)*G(d):e=(n=d.width*u.width/s.width)/G(d),_e({width:n,height:e,aspectRatio:a,sizeRestrictions:c})}function zf(t){var e=t.getAreaRestrictions,n=t.coordinates,o=t.imageSize,r=G(t.boundaries);if(n){var s={height:Math.max(n.height,o.height),width:Math.max(n.width,o.width)},a=ra({width:G(s)>r?s.width:s.height*r,height:G(s)>r?s.width/r:s.height},Yi(e())),c={left:n.left+n.width/2-a.width/2,top:n.top+n.height/2-a.height/2,width:a.width,height:a.height},d=jt(n,ze(V({left:0,top:0},o))),u={};return!d.left&&!d.right&&c.width<=o.width&&(u.left=0,u.right=o.width),!d.top&&!d.bottom&&c.height<=o.height&&(u.top=0,u.bottom=o.height),ce(c,u)}var h=G(o);return a={height:h>r?o.height:o.width/r,width:h>r?o.height*r:o.width},{left:o.width/2-a.width/2,top:o.height/2-a.height/2,width:a.width,height:a.height}}function An(t,e){return aa(t,ze(e))}function Df(t){var e=t.event,n=t.coordinates,o=t.visibleArea,r=t.sizeRestrictions,s=t.getAreaRestrictions,a=t.positionRestrictions,c=t.adjustStencil,d=e.scale,u=e.move,h=V({},o),f=V({},n),p=1,y=1,g=d.factor&&Math.abs(d.factor-1)>.001;h=be(h,{left:u.left||0,top:u.top||0});var k={stencil:{minimum:Math.max(r.minWidth?r.minWidth/f.width:0,r.minHeight?r.minHeight/f.height:0),maximum:Math.min(r.maxWidth?r.maxWidth/f.width:1/0,r.maxHeight?r.maxHeight/f.height:1/0,kt(f,a))},area:{maximum:kt(h,s({visibleArea:h,type:"resize"}))}};d.factor&&g&&(d.factor<1?(y=Math.max(d.factor,k.stencil.minimum))>1&&(y=1):d.factor>1&&(y=Math.min(d.factor,Math.min(k.area.maximum,k.stencil.maximum)))<1&&(y=1)),y&&(h=Be(h,y,d.center));var b=n.left-o.left,I=o.width+o.left-(n.width+n.left),L=n.top-o.top,O=o.height+o.top-(n.height+n.top);return h=ce(h=be(h,Et(h,{left:a.left!==void 0?a.left-b*y:void 0,top:a.top!==void 0?a.top-L*y:void 0,bottom:a.bottom!==void 0?a.bottom+O*y:void 0,right:a.right!==void 0?a.right+I*y:void 0})),s({visibleArea:h,type:"move"})),f.width=f.width*y,f.height=f.height*y,f.left=h.left+b*y,f.top=h.top+L*y,f=ce(f,Rn(ze(h),a)),d.factor&&g&&c&&(d.factor>1?p=Math.min(k.area.maximum,d.factor)/y:d.factor<1&&(p=Math.max(f.height/h.height,f.width/h.width,d.factor/y)),p!==1&&(h=be(h=ce(h=Be(h,p,d.factor>1?d.center:le(f)),s({visibleArea:h,type:"move"})),xn(Et(f,ze(h)))))),{coordinates:f,visibleArea:h}}function Lf(t){var e=t.aspectRatio,n=t.getAreaRestrictions,o=t.coordinates,r=t.visibleArea,s=t.sizeRestrictions,a=t.positionRestrictions,c=t.imageSize,d=t.previousImageSize,u=t.angle,h=V({},o),f=V({},r),p=Ge(le(V({left:0,top:0},d)),u);return(h=V(V({},_e({sizeRestrictions:s,aspectRatio:e,width:h.width,height:h.height})),Ge(le(h),u))).left-=p.left-c.width/2+h.width/2,h.top-=p.top-c.height/2+h.height/2,f=Be(f,Nn(f,n({visibleArea:f,type:"resize"}))),{coordinates:h=ce(h,a),visibleArea:f=ce(f=be(f,Ct(le(h),le(o))),n({visibleArea:f,type:"move"}))}}function Of(t){var e=t.flip,n=t.previousFlip,o=t.rotate,r=t.getAreaRestrictions,s=t.coordinates,a=t.visibleArea,c=t.imageSize,d=V({},s),u=V({},a),h=n.horizontal!==e.horizontal,f=n.vertical!==e.vertical;if(h||f){var p=Ge({left:c.width/2,top:c.height/2},-o),y=Ge(le(d),-o),g=Ge({left:h?p.left-(y.left-p.left):y.left,top:f?p.top-(y.top-p.top):y.top},o);d=be(d,Ct(g,le(d))),y=Ge(le(u),-o),u=ce(u=be(u,Ct(g=Ge({left:h?p.left-(y.left-p.left):y.left,top:f?p.top-(y.top-p.top):y.top},o),le(u))),r({visibleArea:u,type:"move"}))}return{coordinates:d,visibleArea:u}}function da(t){var e=t.directions,n=t.coordinates,o=t.positionRestrictions,r=o===void 0?{}:o,s=t.sizeRestrictions,a=t.preserveRatio,c=t.compensate,d=V({},e),u=De(n,d).width,h=De(n,d).height;u<0&&(d.left<0&&d.right<0?(d.left=-(n.width-s.minWidth)/(d.left/d.right),d.right=-(n.width-s.minWidth)/(d.right/d.left)):d.left<0?d.left=-(n.width-s.minWidth):d.right<0&&(d.right=-(n.width-s.minWidth))),h<0&&(d.top<0&&d.bottom<0?(d.top=-(n.height-s.minHeight)/(d.top/d.bottom),d.bottom=-(n.height-s.minHeight)/(d.bottom/d.top)):d.top<0?d.top=-(n.height-s.minHeight):d.bottom<0&&(d.bottom=-(n.height-s.minHeight)));var f=jt(De(n,d),r);c&&(f.left&&f.left>0&&f.right===0?(d.right+=f.left,d.left-=f.left):f.right&&f.right>0&&f.left===0&&(d.left+=f.right,d.right-=f.right),f.top&&f.top>0&&f.bottom===0?(d.bottom+=f.top,d.top-=f.top):f.bottom&&f.bottom>0&&f.top===0&&(d.top+=f.bottom,d.bottom-=f.bottom),f=jt(De(n,d),r));var p={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(Te.forEach(function(k){var b=f[k];b&&d[k]&&(p[k]=Math.max(0,1-b/d[k]))}),a){var y=Math.min.apply(null,Te.map(function(k){return p[k]}));y!==1/0&&Te.forEach(function(k){d[k]*=y})}else Te.forEach(function(k){p[k]!==1/0&&(d[k]*=p[k])});if(u=De(n,d).width,h=De(n,d).height,d.right+d.left&&(u>s.maxWidth?p.width=(s.maxWidth-n.width)/(d.right+d.left):u<s.minWidth&&(p.width=(s.minWidth-n.width)/(d.right+d.left))),d.bottom+d.top&&(h>s.maxHeight?p.height=(s.maxHeight-n.height)/(d.bottom+d.top):h<s.minHeight&&(p.height=(s.minHeight-n.height)/(d.bottom+d.top))),a){var g=Math.min(p.width,p.height);g!==1/0&&Te.forEach(function(k){d[k]*=g})}else p.width!==1/0&&Mf.forEach(function(k){d[k]*=p.width}),p.height!==1/0&&Bf.forEach(function(k){d[k]*=p.height});return d}function Vn(t,e,n){return e==0&&n==0?t/2:e==0?0:n==0?t:t*Math.abs(e/(e+n))}var _f=Ne("vue-simple-handler"),Hf=Ne("vue-simple-handler-wrapper"),Xi={name:"SimpleHandler",components:{HandlerWrapper:ta},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var t,e=(Me(t={},this.horizontalPosition,!!this.horizontalPosition),Me(t,this.verticalPosition,!!this.verticalPosition),Me(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),Me(t,"hover",this.hover),t);return{default:te(_f(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:te(Hf(e),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};Xi.render=function(t,e,n,o,r,s){var a=i.resolveComponent("HandlerWrapper");return i.openBlock(),i.createBlock(a,{class:s.classes.wrapper,"vertical-position":n.verticalPosition,"horizontal-position":n.horizontalPosition,disabled:n.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:i.withCtx(function(){return[i.createVNode("div",{class:s.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var qf=Ne("vue-simple-line"),Uf=Ne("vue-simple-line-wrapper"),Qi={name:"SimpleLine",components:{LineWrapper:na},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:te(qf(Me({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:te(Uf(Me({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};Qi.render=function(t,e,n,o,r,s){var a=i.resolveComponent("LineWrapper");return i.openBlock(),i.createBlock(a,{class:s.classes.wrapper,position:n.position,disabled:n.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:i.withCtx(function(){return[i.createVNode("div",{class:s.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Ki=Ne("vue-bounding-box"),Wf=["east","west",null],Gf=["south","north",null],ua={name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return Xi}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return Qi}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return Wf.forEach(function(e){Gf.forEach(function(n){if(e!==n){var o=Ys(e,n),r=o.name,s=o.classname;t.push({name:r,classname:s,verticalDirection:n,horizontalDirection:e})}})}),{points:t}},computed:{style:function(){var t={};return this.width&&this.height&&(t.width="".concat(this.width,"px"),t.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),t},classes:function(){var t=this.handlersClasses,e=this.handlersWrappersClasses,n=this.linesClasses,o=this.linesWrappersClasses;return{root:Ki(),handlers:t,handlersWrappers:e,lines:n,linesWrappers:o}},lineNodes:function(){var t=this,e=[];return this.points.forEach(function(n){n.horizontalDirection&&n.verticalDirection||!t.lines[n.name]||e.push({name:n.name,component:t.linesComponent,class:te(t.classes.lines.default,t.classes.lines[n.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:te(t.classes.linesWrappers.default,t.classes.linesWrappers[n.name],!t.resizable&&t.classes.linesWrappers.disabled),hoverClass:t.classes.lines.hover,verticalDirection:n.verticalDirection,horizontalDirection:n.horizontalDirection,disabled:!t.resizable})}),e},handlerNodes:function(){var t=this,e=[],n=this.width,o=this.height;return this.points.forEach(function(r){if(t.handlers[r.name]){var s={name:r.name,component:t.handlersComponent,class:te(t.classes.handlers.default,t.classes.handlers[r.name]),wrapperClass:te(t.classes.handlersWrappers.default,t.classes.handlersWrappers[r.name]),hoverClass:t.classes.handlers.hover,verticalDirection:r.verticalDirection,horizontalDirection:r.horizontalDirection,disabled:!t.resizable};if(n&&o){var a=r.horizontalDirection,c=r.verticalDirection,d=a==="east"?n:a==="west"?0:n/2,u=c==="south"?o:c==="north"?0:o/2;s.wrapperClass=Ki("handler"),s.wrapperStyle={transform:"translate(".concat(d,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(s.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else s.wrapperClass=Ki("handler",Me({},r.classname,!0));e.push(s)}}),e}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(t,e,n){var o,r=t.shift(),s=r.left,a=r.top,c={left:0,right:0,top:0,bottom:0};e==="west"?c.left-=s:e==="east"&&(c.right+=s),n==="north"?c.top-=a:n==="south"&&(c.bottom+=a),!n&&e?o="width":n&&!e&&(o="height"),this.resizable&&this.$emit("resize",new kf(c,{allowedDirections:{left:e==="west"||!e,right:e==="east"||!e,bottom:n==="south"||!n,top:n==="north"||!n},preserveAspectRatio:t.nativeEvent&&t.nativeEvent.shiftKey,respectDirection:o}))}},emits:["resize","resize-end"]};ua.render=function(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{ref:"box",class:s.classes.root,style:s.style},[i.renderSlot(t.$slots,"default"),i.createVNode("div",null,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(s.lineNodes,function(a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),{key:a.name,"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,position:a.name,disabled:a.disabled,onDrag:function(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[1]||(e[1]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(s.handlerNodes,function(a){return i.openBlock(),i.createBlock("div",{key:a.name,style:a.wrapperStyle,class:a.wrapperClass},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),{"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,"horizontal-position":a.horizontalDirection,"vertical-position":a.verticalDirection,disabled:a.disabled,onDrag:function(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[2]||(e[2]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var jf=Ne("vue-draggable-area"),ha={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:jf()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(t){if(t.cancelable){var e=this.movable&&t.touches.length===1;e&&(this.touches=at(t.touches)),(this.touchStarted||e)&&(t.preventDefault(),t.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(t){this.touches.length>=1&&(this.touchStarted?(this.processMove(t,t.touches),t.preventDefault(),t.stopPropagation()):ea({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:t.touches[0].clientX,y:t.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(t){if(this.movable&&t.button===0){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.cancelable&&t.preventDefault(),t.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.container.getBoundingClientRect(),n=e.left,o=e.top;this.anchor={x:t.clientX-n,y:t.clientY-o}},processMove:function(t,e){var n=at(e);if(this.touches.length){var o=this.$refs.container.getBoundingClientRect(),r=o.left,s=o.top;this.touches.length===1&&n.length===1&&this.$emit("move",new Wi({left:n[0].clientX-(r+this.anchor.x),top:n[0].clientY-(s+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};ha.render=function(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:e[2]||(e[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)})},[i.renderSlot(t.$slots,"default")],544)};function eo(t){var e,n;return{rotate:t.rotate||0,flip:{horizontal:((e=t==null?void 0:t.flip)===null||e===void 0?void 0:e.horizontal)||!1,vertical:((n=t==null?void 0:t.flip)===null||n===void 0?void 0:n.vertical)||!1}}}function Zf(t){return new Promise(function(e,n){try{if(t)if(/^data:/i.test(t))e(function(d){d=d.replace(/^data:([^;]+);base64,/gim,"");for(var u=atob(d),h=u.length,f=new ArrayBuffer(h),p=new Uint8Array(f),y=0;y<h;y++)p[y]=u.charCodeAt(y);return f}(t));else if(/^blob:/i.test(t)){var o=new FileReader;o.onload=function(d){e(d.target.result)},s=t,a=function(d){o.readAsArrayBuffer(d)},(c=new XMLHttpRequest).open("GET",s,!0),c.responseType="blob",c.onload=function(){this.status!=200&&this.status!==0||a(this.response)},c.send()}else{var r=new XMLHttpRequest;r.onreadystatechange=function(){r.readyState===4&&(r.status===200||r.status===0?e(r.response):n("Warning: could not load an image to parse its orientation"),r=null)},r.onprogress=function(){r.getResponseHeader("content-type")!=="image/jpeg"&&r.abort()},r.withCredentials=!1,r.open("GET",t,!0),r.responseType="arraybuffer",r.send(null)}else n("Error: the image is empty")}catch(d){n(d)}var s,a,c})}function fa(t){var e=t.rotate,n=t.flip,o=t.scaleX,r=t.scaleY,s="";return s+=" rotate("+e+"deg) ",s+=" scaleX("+o*(n.horizontal?-1:1)+") ",s+=" scaleY("+r*(n.vertical?-1:1)+") "}function Yf(t){try{var e,n=new DataView(t),o=void 0,r=void 0,s=void 0,a=void 0;if(n.getUint8(0)===255&&n.getUint8(1)===216)for(var c=n.byteLength,d=2;d+1<c;){if(n.getUint8(d)===255&&n.getUint8(d+1)===225){s=d;break}d++}if(s&&(o=s+10,function(y,g,k){var b,I="";for(b=g,k+=g;b<k;b++)I+=String.fromCharCode(y.getUint8(b));return I}(n,s+4,4)==="Exif")){var u=n.getUint16(o);if(((r=u===18761)||u===19789)&&n.getUint16(o+2,r)===42){var h=n.getUint32(o+4,r);h>=8&&(a=o+h)}}if(a){for(var f=n.getUint16(a,r),p=0;p<f;p++)if(d=a+12*p+2,n.getUint16(d,r)===274){d+=8,e=n.getUint16(d,r),n.setUint16(d,1,r);break}}return e}catch{return null}}function ma(t,e){var n=e.getBoundingClientRect(),o=n.left,r=n.top,s={left:0,top:0},a=0;return t.forEach(function(c){s.left+=(c.clientX-o)/t.length,s.top+=(c.clientY-r)/t.length}),t.forEach(function(c){a+=ea({x:s.left,y:s.top},{x:c.clientX-o,y:c.clientY-r})}),{centerMass:s,spread:a,count:t.length}}var pa={props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=qi(this.processEnd),this.touches=[]},methods:{processMove:function(t,e){if(this.touches.length){if(this.touches.length===1&&e.length===1)this.$emit("move",new Gt({left:this.touches[0].clientX-e[0].clientX,top:this.touches[0].clientY-e[0].clientY}));else if(this.touches.length>1&&this.touchResize){var n=ma(e,this.$refs.container),o=this.oldGeometricProperties;o.count===n.count&&o.count>1&&this.$emit("resize",new Gt({left:o.centerMass.left-n.centerMass.left,top:o.centerMass.top-n.centerMass.top},{factor:o.spread/n.spread,center:n.centerMass})),this.oldGeometricProperties=n}this.touches=e}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(t){return this.eventsFilter?this.eventsFilter(t,this.transforming)!==!1:(t.preventDefault(),t.stopPropagation(),!0)},onTouchStart:function(t){if(t.cancelable&&(this.touchMove||this.touchResize&&t.touches.length>1)&&this.processEvent(t)){var e=this.$refs.container,n=e.getBoundingClientRect(),o=n.left,r=n.top,s=n.bottom,a=n.right;this.touches=at(t.touches).filter(function(c){return c.clientX>o&&c.clientX<a&&c.clientY>r&&c.clientY<s}),this.oldGeometricProperties=ma(this.touches,e)}},onTouchEnd:function(t){t.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(t){var e=this;if(this.touches.length){var n=at(t.touches).filter(function(o){return!o.identifier||e.touches.find(function(r){return r.identifier===o.identifier})});this.processEvent(t)&&(this.processMove(t,n),this.processStart())}},onMouseDown:function(t){if(this.mouseMove&&"buttons"in t&&t.buttons===1&&this.processEvent(t)){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.processStart()}},onMouseMove:function(t){this.touches.length&&this.processEvent(t)&&this.processMove(t,[{clientX:t.clientX,clientY:t.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(t){if(this.wheelResize&&this.processEvent(t)){var e=this.$refs.container.getBoundingClientRect(),n=e.left,o=e.top,r=1+this.wheelResize.ratio*(a=t.deltaY||t.detail||t.wheelDelta,(c=+a)==0||Ks(c)?c:c>0?1:-1),s={left:t.clientX-n,top:t.clientY-o};this.$emit("resize",new Gt({},{factor:r,center:s})),this.touches.length||this.debouncedProcessEnd()}var a,c}},emits:["resize","move","transform-end"]};pa.render=function(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:e[2]||(e[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onWheel:e[3]||(e[3]=function(){return s.onWheel&&s.onWheel.apply(s,arguments)})},[i.renderSlot(t.$slots,"default")],544)};var to={components:{TransformableImage:pa},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}},emits:["resize","move"]};to.render=function(t,e,n,o,r,s){var a=i.resolveComponent("transformable-image");return i.openBlock(),i.createBlock(a,{"touch-move":n.touchMove,"touch-resize":n.touchResize,"mouse-move":n.mouseMove,"wheel-resize":n.wheelResize,onMove:e[1]||(e[1]=function(c){return t.$emit("move",c)}),onResize:e[2]||(e[2]=function(c){return t.$emit("resize",c)})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var Pn=Ne("vue-preview"),ga={props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:Pn({fill:this.fill}),wrapper:Pn("wrapper"),imageWrapper:Pn("image-wrapper"),image:te(Pn("image"),this.imageClass)}},style:function(){if(this.fill)return{};var t={};return this.width&&(t.width="".concat(this.size.width,"px")),this.height&&(t.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},wrapperStyle:function(){var t={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){if(this.coordinates&&this.image){var t=this.coordinates.width/this.size.width,e=W(W({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),n=this.imageSize.width,o=this.imageSize.height,r=sa({width:n,height:o},e.rotate),s={width:"".concat(n,"px"),height:"".concat(o,"px"),left:"0px",top:"0px"},a={rotate:{left:(n-r.width)*e.scaleX/2,top:(o-r.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*o/2}};return s.transform=`translate(
42
+ `.concat(-this.coordinates.left/t-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/t-a.rotate.top-a.scale.top,"px) ")+fa(e),this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(t){(t.width||t.height)&&this.onChangeImage()}},mounted:function(){var t=this;this.onChangeImage(),this.$refs.image.addEventListener("load",function(){t.refreshImage()}),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var t=this.$refs.image;this.calculatedImageSize.height=t.naturalHeight,this.calculatedImageSize.width=t.naturalWidth},refresh:function(){var t=this.$refs.root;this.width||(this.calculatedSize.width=t.clientWidth),this.height||(this.calculatedSize.height=t.clientHeight)},onChangeImage:function(){var t=this.$refs.image;t&&t.complete&&this.refreshImage(),this.refresh()}}};ga.render=function(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{ref:"root",class:s.classes.root,style:s.style},[i.createVNode("div",{ref:"wrapper",class:s.classes.wrapper,style:s.wrapperStyle},[i.withDirectives(i.createVNode("img",{ref:"image",src:n.image&&n.image.src,class:s.classes.image,style:s.imageStyle},null,14,["src"]),[[i.vShow,n.image&&n.image.src]])],6)],6)};var ya={components:{Preview:ga},inheritAttrs:!1};ya.render=function(t,e,n,o,r,s){var a=i.resolveComponent("preview");return i.openBlock(),i.createBlock(a,i.mergeProps(t.$attrs,{fill:!0}),null,16)};var no=Ne("vue-rectangle-stencil"),wa={name:"RectangleStencil",components:{StencilPreview:ya,BoundingBox:ua,DraggableArea:ha},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Xi}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Qi}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:te(no({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:te(no("preview"),this.previewClass),boundingBox:te(no("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,o=t.left,r=t.top,s={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(o,"px, ").concat(r,"px)")};return this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}},emits:["resize","resize-end","move","move-end"]};wa.render=function(t,e,n,o,r,s){var a=i.resolveComponent("stencil-preview"),c=i.resolveComponent("draggable-area"),d=i.resolveComponent("bounding-box");return i.openBlock(),i.createBlock("div",{class:s.classes.stencil,style:s.style},[i.createVNode(d,{width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,transitions:n.transitions,class:s.classes.boundingBox,handlers:n.handlers,"handlers-component":n.handlersComponent,"handlers-classes":n.handlersClasses,"handlers-wrappers-classes":n.handlersWrappersClasses,lines:n.lines,"lines-component":n.linesComponent,"lines-classes":n.linesClasses,"lines-wrappers-classes":n.linesWrappersClasses,resizable:n.resizable,onResize:s.onResize,onResizeEnd:s.onResizeEnd},{default:i.withCtx(function(){return[i.createVNode(c,{movable:n.movable,onMove:s.onMove,onMoveEnd:s.onMoveEnd},{default:i.withCtx(function(){return[i.createVNode(a,{image:n.image,coordinates:n.coordinates,width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,class:s.classes.preview,transitions:n.transitions},null,8,["image","coordinates","width","height","class","transitions"])]}),_:1},8,["movable","onMove","onMoveEnd"])]}),_:1},8,["width","height","transitions","class","handlers","handlers-component","handlers-classes","handlers-wrappers-classes","lines","lines-component","lines-classes","lines-wrappers-classes","resizable","onResize","onResizeEnd"])],6)};var Jf=["transitions"],He=Ne("vue-advanced-cropper"),ba={name:"Cropper",components:{BackgroundWrapper:to},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return wa}},backgroundWrapperComponent:{type:[Object,String],default:function(){return to}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(t){return $f.indexOf(t)!==-1}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object]},defaultVisibleArea:{type:[Function,Object]},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(t){return!(typeof t=="string"&&t!=="fill"&&t!=="fit")}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(t){var e=t.event,n=t.coordinates,o=t.aspectRatio,r=t.positionRestrictions,s=t.sizeRestrictions,a=V(V({},n),{right:n.left+n.width,bottom:n.top+n.height}),c=e.params||{},d=V({},e.directions),u=c.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};s.widthFrozen&&(d.left=0,d.right=0),s.heightFrozen&&(d.top=0,d.bottom=0),Te.forEach(function(z){u[z]||(d[z]=0)});var h=De(a,d=da({coordinates:a,directions:d,sizeRestrictions:s,positionRestrictions:r})).width,f=De(a,d).height,p=c.preserveRatio?G(a):Zi(h/f,o);if(p){var y=c.respectDirection;if(y||(y=a.width>=a.height||p===1?"width":"height"),y==="width"){var g=h/p-a.height;if(u.top&&u.bottom){var k=d.top,b=d.bottom;d.bottom=Vn(g,b,k),d.top=Vn(g,k,b)}else u.bottom?d.bottom=g:u.top?d.top=g:u.right?d.right=0:u.left&&(d.left=0)}else if(y==="height"){var I=a.width-f*p;if(u.left&&u.right){var L=d.left,O=d.right;d.left=-Vn(I,L,O),d.right=-Vn(I,O,L)}else u.left?d.left=-I:u.right?d.right=-I:u.top?d.top=0:u.bottom&&(d.bottom=0)}d=da({directions:d,coordinates:a,sizeRestrictions:s,positionRestrictions:r,preserveRatio:!0,compensate:c.compensate})}return h=De(a,d).width,f=De(a,d).height,(p=c.preserveRatio?G(a):Zi(h/f,o))&&Math.abs(p-h/f)>.001&&Te.forEach(function(z){u[z]||(d[z]=0)}),Ji({event:new Wi({left:-d.left,top:-d.top}),coordinates:{width:n.width+d.right+d.left,height:n.height+d.top+d.bottom,left:n.left,top:n.top},positionRestrictions:r})}},moveAlgorithm:{type:Function,default:Ji},initStretcher:{type:Function,default:function(t){var e=t.stretcher,n=t.imageSize,o=G(n);e.style.width=n.width+"px",e.style.height=e.clientWidth/o+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,n=t.coordinates,o=t.aspectRatio,r=t.sizeRestrictions,s=t.positionRestrictions,a=V(V({},n),_e({width:n.width,height:n.height,aspectRatio:o,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,r.minHeight),minWidth:Math.min(e.width,r.minWidth)}}));return a=ce(a=be(a,Ct(le(n),le(a))),Rn(ze(e),s))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,o=t.getAreaRestrictions,r=t.coordinates,s=V({},e);s.height=s.width/G(n),s.top+=(e.height-s.height)/2,(r.height-s.height>0||r.width-s.width>0)&&(s=Be(s,Math.max(r.height/s.height,r.width/s.width)));var a=xn(Et(r,ze(s=Be(s,Nn(s,o({visibleArea:s,type:"resize"}))))));return s.width<r.width&&(a.left=0),s.height<r.height&&(a.top=0),s=ce(s=be(s,a),o({visibleArea:s,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,o=t.imageSize,r=t.imageRestriction,s=t.type,a={};return r==="fill-area"?a={left:0,top:0,right:o.width,bottom:o.height}:r==="fit-area"&&(G(n)>G(o)?(a={top:0,bottom:o.height},e&&s==="move"&&(e.width>o.width?(a.left=-(e.width-o.width)/2,a.right=o.width-a.left):(a.left=0,a.right=o.width))):(a={left:0,right:o.width},e&&s==="move"&&(e.height>o.height?(a.top=-(e.height-o.height)/2,a.bottom=o.height-a.top):(a.top=0,a.bottom=o.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(t){return{minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.imageSize,n={};return t.imageRestriction!=="none"&&(n={left:0,top:0,right:e.width,bottom:e.height}),n}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:null,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:W({},ia)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var t=function(e){return e*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(t))+Math.abs(this.imageAttributes.height*Math.sin(t)),height:Math.abs(this.imageAttributes.width*Math.sin(t))+Math.abs(this.imageAttributes.height*Math.cos(t))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var t=Ui(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:Ui(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:t}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var t=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:oe(this.minWidth)?0:$n(this.minWidth),minHeight:oe(this.minHeight)?0:$n(this.minHeight),maxWidth:oe(this.maxWidth)?1/0:$n(this.maxWidth),maxHeight:oe(this.maxHeight)?1/0:$n(this.maxHeight)});if(t=function(o){var r=o.areaRestrictions,s=o.sizeRestrictions,a=o.boundaries,c=o.positionRestrictions,d=V(V({},s),{minWidth:s.minWidth!==void 0?s.minWidth:0,minHeight:s.minHeight!==void 0?s.minHeight:0,maxWidth:s.maxWidth!==void 0?s.maxWidth:1/0,maxHeight:s.maxHeight!==void 0?s.maxHeight:1/0});c.left!==void 0&&c.right!==void 0&&(d.maxWidth=Math.min(d.maxWidth,c.right-c.left)),c.bottom!==void 0&&c.top!==void 0&&(d.maxHeight=Math.min(d.maxHeight,c.bottom-c.top));var u=Yi(r),h=ra(a,u);return u.width<1/0&&(!d.maxWidth||d.maxWidth>h.width)&&(d.maxWidth=Math.min(d.maxWidth,h.width)),u.height<1/0&&(!d.maxHeight||d.maxHeight>h.height)&&(d.maxHeight=Math.min(d.maxHeight,h.height)),d.minWidth>d.maxWidth&&(d.minWidth=d.maxWidth,d.widthFrozen=!0),d.minHeight>d.maxHeight&&(d.minHeight=d.maxHeight,d.heightFrozen=!0),d}({sizeRestrictions:t,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var e=this.getStencilSize(),n=Yi(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));t.maxWidth=Math.min(t.maxWidth,n.width*e.width/this.boundaries.width),t.maxHeight=Math.min(t.maxHeight,n.height*e.height/this.boundaries.height),t.maxWidth<t.minWidth&&(t.minWidth=t.maxWidth),t.maxHeight<t.minHeight&&(t.minHeight=t.maxHeight)}return t}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:He(),image:te(He("image"),this.imageClass),stencil:He("stencil"),boundaries:te(He("boundaries"),this.boundariesClass),stretcher:te(He("stretcher")),background:te(He("background"),this.backgroundClass),foreground:te(He("foreground"),this.foregroundClass),imageWrapper:te(He("image-wrapper")),cropperWrapper:te(He("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,n=t.height,o=t.left,r=t.top;return{width:e/this.coefficient,height:n/this.coefficient,left:(o-this.visibleArea.left)/this.coefficient,top:(r-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var t={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(t.opacity="0"),t},imageStyle:function(){var t=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},e={left:(t.width-this.imageSize.width)/(2*this.coefficient),top:(t.height-this.imageSize.height)/(2*this.coefficient)},n={left:(1-1/this.coefficient)*t.width/2,top:(1-1/this.coefficient)*t.height/2},o=W(W({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),r={width:"".concat(t.width,"px"),height:"".concat(t.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-e.left-n.left-this.imageTransforms.translateX,"px, ").concat(-e.top-n.top-this.imageTransforms.translateY,"px)")+fa(o)};return this.transitionsOptions.enabled&&(r.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),r}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var t=this;this.$nextTick(function(){t.resetCoordinates(),t.runAutoZoom("setCoordinates"),t.onChange()})},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(t,e){["aspectRatio","minAspectRatio","maxAspectRatio"].find(function(n){return t[n]!==e[n]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=qi(this.update,this.debounce),this.debouncedDisableTransitions=qi(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var t=this.initialized?this.prepareResult(W({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:W({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?W({},this.visibleArea):null,imageTransforms:e,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?W({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.transitions,r=o===void 0||o;this.onManipulateImage(new Gt({},{factor:1/t,center:e}),{normalize:!1,transitions:r})},move:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.transitions,r=o===void 0||o;this.onManipulateImage(new Gt({left:t||0,top:e||0}),{normalize:!1,transitions:r})},setCoordinates:function(t){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.autoZoom,r=o===void 0||o,s=n.transitions,a=s===void 0||s;this.$nextTick(function(){e.imageLoaded?(e.transitionsActive||(a&&e.enableTransitions(),e.coordinates=e.applyTransform(t),r&&e.runAutoZoom("setCoordinates"),a&&e.debouncedDisableTransitions()),e.onChange()):e.delayedTransforms=t})},refresh:function(){var t=this,e=this.$refs.image;if(this.src&&e)return this.initialized?this.updateVisibleArea().then(function(){t.onChange()}):this.resetVisibleArea().then(function(){t.onChange()})},reset:function(){var t=this;return this.resetVisibleArea().then(function(){t.onChange(!1)})},awaitRender:function(t){var e=this;this.awaiting||(this.awaiting=!0,this.$nextTick(function(){t(),e.awaiting=!1}))},prepareResult:function(t){return this.roundResult?function(e){var n=e.coordinates,o=e.sizeRestrictions,r=e.positionRestrictions,s={width:Math.round(n.width),height:Math.round(n.height),left:Math.round(n.left),top:Math.round(n.top)};return s.width>o.maxWidth?s.width=Math.floor(n.width):s.width<o.minWidth&&(s.width=Math.ceil(n.width)),s.height>o.maxHeight?s.height=Math.floor(n.height):s.height<o.minHeight&&(s.height=Math.ceil(n.height)),ce(s,r)}(W(W({},this.getPublicProperties()),{},{positionRestrictions:An(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,n,o){var r=this.autoZoomAlgorithm;r||(r=this.stencilSize?Rf:this.autoZoom?Af:Vf);var s=r({event:{type:t,params:o},visibleArea:e,coordinates:n,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return W(W({},s),{},{changed:!oa(s.visibleArea,e)||!oa(s.coordinates,n)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,o=n!==void 0&&n,r=Sf(e,Jf),s=this.processAutoZoom(t,this.visibleArea,this.coordinates,r),a=s.visibleArea,c=s.coordinates,d=s.changed;o&&d&&this.enableTransitions(),this.visibleArea=a,this.coordinates=c,o&&d&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(e){var n=e.event,o=e.visibleArea,r=e.coefficient;if(n.type==="manipulateImage")return V(V({},n),{move:{left:n.move&&n.move.left?r*n.move.left:0,top:n.move&&n.move.top?r*n.move.top:0},scale:{factor:n.scale&&n.scale.factor?n.scale.factor:1,center:n.scale&&n.scale.center?{left:n.scale.center.left*r+o.left,top:n.scale.center.top*r+o.top}:null}});if(n.type==="resize"){var s=V(V({},n),{directions:V({},n.directions)});return Te.forEach(function(c){s.directions[c]*=r}),s}if(n.type==="move"){var a=V(V({},n),{directions:V({},n.directions)});return If.forEach(function(c){a.directions[c]*=r}),a}return n}(W(W({},this.getPublicProperties()),{},{event:t}))},getCanvas:function(){if(this.$refs.canvas){var t=this.$refs.canvas,e=this.$refs.image,n=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(c,d,u){var h=u.rotate,f=u.flip,p={width:d.naturalWidth,height:d.naturalHeight},y=sa(p,h),g=c.getContext("2d");c.height=y.height,c.width=y.width,g.save();var k=Ge(le(V({left:0,top:0},p)),h);return g.translate(-(k.left-y.width/2),-(k.top-y.height/2)),g.rotate(h*Math.PI/180),g.translate(f.horizontal?p.width:0,f.vertical?p.height:0),g.scale(f.horizontal?-1:1,f.vertical?-1:1),g.drawImage(d,0,0,p.width,p.height),g.restore(),c}(this.$refs.sourceCanvas,e,this.imageTransforms):e,o=W({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),r=function(c){return c.find(function(d){return u=d,!Number.isNaN(parseFloat(u))&&isFinite(u);var u})},s=_e({sizeRestrictions:{minWidth:r([o.width,o.minWidth])||0,minHeight:r([o.height,o.minHeight])||0,maxWidth:r([o.width,o.maxWidth])||1/0,maxHeight:r([o.height,o.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(o.maxArea&&s.width*s.height>o.maxArea){var a=Math.sqrt(o.maxArea/(s.width*s.height));s={width:Math.round(a*s.width),height:Math.round(a*s.height)}}return function(c,d,u,h,f){c.width=h?h.width:u.width,c.height=h?h.height:u.height;var p=c.getContext("2d");p.clearRect(0,0,c.width,c.height),f&&(f.imageSmoothingEnabled&&(p.imageSmoothingEnabled=f.imageSmoothingEnabled),f.imageSmoothingQuality&&(p.imageSmoothingQuality=f.imageSmoothingQuality),f.fillColor&&(p.fillStyle=f.fillColor,p.fillRect(0,0,c.width,c.height),p.save()));var y=u.left<0?-u.left:0,g=u.top<0?-u.top:0;p.drawImage(d,u.left+y,u.top+g,u.width,u.height,y*(c.width/u.width),g*(c.height/u.height),c.width,c.height)}(t,n,this.coordinates,s,o),t}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.visibleArea&&e?xf(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,o=this.visibleArea&&e?An(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return Nf({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:n,positionRestrictions:o,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var t=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var e=this.defaultSize;e||(e=this.stencilSize?Tf:Ff);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var o=St(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,r=this.defaultPosition||Pf,s=[o,function(a){var c=a.coordinates;return W({},St(r)?r({coordinates:c,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&s.push.apply(s,at(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(s,!0),this.delayedTransforms=null}},clearImage:function(){var t=this;this.imageLoaded=!1,setTimeout(function(){var e=t.$refs.stretcher;e&&(e.style.height="auto",e.style.width="auto"),t.coordinates=t.defaultCoordinates(),t.boundaries={width:0,height:0}},this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var t=this,e=this.$refs.stretcher,n=this.$refs.cropper;return this.initStretcher({cropper:n,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then(function(){var o={cropper:n,imageSize:t.imageSize};if(St(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(o):t.defaultBoundaries==="fit"?t.boundaries=function(r){var s=r.cropper,a=r.imageSize,c=s.clientHeight,d=s.clientWidth,u=c,h=a.width*c/a.height;return h>d&&(h=d,u=a.height*d/a.width),{width:h,height:u}}(o):t.boundaries=function(r){var s=r.cropper;return{width:s.clientWidth,height:s.clientHeight}}(o),!t.boundaries.width||!t.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")})},resetVisibleArea:function(){var t=this;return this.appliedImageTransforms=W(W({},this.defaultImageTransforms),{},{flip:W({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){t.priority!=="visible-area"&&(t.visibleArea=null,t.resetCoordinates());var e,n,o,r,s,a,c=t.defaultVisibleArea||zf;t.visibleArea=St(c)?c({imageSize:t.imageSize,boundaries:t.boundaries,coordinates:t.priority!=="visible-area"?t.coordinates:null,getAreaRestrictions:t.getAreaRestrictions,stencilSize:t.getStencilSize()}):t.defaultVisibleArea,t.visibleArea=(e={visibleArea:t.visibleArea,boundaries:t.boundaries,getAreaRestrictions:t.getAreaRestrictions},n=e.visibleArea,o=e.boundaries,r=e.getAreaRestrictions,s=V({},n),a=G(o),s.width/s.height!==a&&(s.height=s.width/a),ce(s,r({visibleArea:s,type:"move"}))),t.priority==="visible-area"?t.resetCoordinates():t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("resetVisibleArea")}).catch(function(){t.visibleArea=null})},updateVisibleArea:function(){var t=this;return this.updateBoundaries().then(function(){t.visibleArea=t.fitVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,visibleArea:t.visibleArea,coordinates:t.coordinates,getAreaRestrictions:t.getAreaRestrictions}),t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("updateVisibleArea")}).catch(function(){t.visibleArea=null})},onChange:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];t&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var t,e=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(r){if(Xs(r))return!1;var s=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(r)||[],c={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},d=function(u){return u.port||((u.protocol||s.protocol)==="http"?80:433)};return!(!c.protocol&&!c.host&&!c.port||c.protocol&&c.protocol==s.protocol&&c.host&&c.host==s.host&&c.host&&d(c)==d(s))}(this.src)){var n=oe(this.crossOrigin)?this.canvas:this.crossOrigin;n===!0&&(n="anonymous"),this.imageAttributes.crossOrigin=n||null}if(this.checkOrientation){var o=(t=this.src,new Promise(function(r){Zf(t).then(function(s){var a=Yf(s);r(s?{source:t,arrayBuffer:s,orientation:a}:{source:t,arrayBuffer:null,orientation:null})}).catch(function(s){console.warn(s),r({source:t,arrayBuffer:null,orientation:null})})}));setTimeout(function(){o.then(e.onParseImage)},this.transitionTime)}else setTimeout(function(){e.onParseImage({source:e.src})},this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var t=this,e=this.$refs.image;e&&!this.imageLoaded&&(this.imageAttributes.height=e.naturalHeight,this.imageAttributes.width=e.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then(function(){t.$emit("ready"),t.onChange(!1)}))},onParseImage:function(t){var e=this,n=t.source,o=t.arrayBuffer,r=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,o&&r&&r>1?Js(n)||!Xs(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([o])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(s){for(var a=[],c=new Uint8Array(s);c.length>0;){var d=c.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(d):d.slice())),c=c.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(o):this.imageAttributes.src=n,St(this.defaultTransforms)?this.appliedImageTransforms=eo(this.defaultTransforms()):In(this.defaultTransforms)?this.appliedImageTransforms=eo(this.defaultTransforms):this.appliedImageTransforms=function(s){var a=eo({});if(s)switch(s){case 2:a.flip.horizontal=!0;break;case 3:a.rotate=-180;break;case 4:a.flip.vertical=!0;break;case 5:a.rotate=90,a.flip.vertical=!0;break;case 6:a.rotate=90;break;case 7:a.rotate=90,a.flip.horizontal=!0;break;case 8:a.rotate=-90}return a}(r),this.defaultImageTransforms=W(W({},this.appliedImageTransforms),{},{flip:W({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var s=e.$refs.image;s&&s.complete&&(function(a){return!!a.naturalWidth}(s)?e.onSuccessLoadImage():e.onFailLoadImage())})},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(t){var e=this;this.transitionsOptions.enabled||this.awaitRender(function(){e.coordinates=e.moveAlgorithm(W(W({},e.getPublicProperties()),{},{positionRestrictions:An(e.positionRestrictions,e.visibleArea),coordinates:e.coordinates,event:e.normalizeEvent(t)})),e.onChange()})},onResize:function(t){var e=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender(function(){var n=e.sizeRestrictions,o=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(W(W({},e.getPublicProperties()),{},{positionRestrictions:An(e.positionRestrictions,e.visibleArea),sizeRestrictions:{maxWidth:Math.min(n.maxWidth,e.visibleArea.width),maxHeight:Math.min(n.maxHeight,e.visibleArea.height),minWidth:Math.max(n.minWidth,o),minHeight:Math.max(n.minHeight,o)},event:e.normalizeEvent(t)})),e.onChange(),e.ticking=!1})},onManipulateImage:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var n=e.transitions,o=n!==void 0&&n,r=e.normalize,s=r===void 0||r;o&&this.enableTransitions();var a=Df(W(W({},this.getPublicProperties()),{},{event:s?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),c=a.visibleArea,d=a.coordinates;this.visibleArea=c,this.coordinates=d,this.runAutoZoom("manipulateImage"),this.onChange(),o&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.visibleArea,n=t.type,o=n===void 0?"move":n;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:o})},getAspectRatio:function(t){var e,n,o=this.stencilProps,r=o.aspectRatio,s=o.minAspectRatio,a=o.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var c=this.$refs.stencil.aspectRatios();e=c.minimum,n=c.maximum}if(oe(e)&&(e=oe(r)?s:r),oe(n)&&(n=oe(r)?a:r),!t&&(oe(e)||oe(n))){var d=this.getStencilSize(),u=d?G(d):null;oe(e)&&(e=Qs(u)?u:void 0),oe(n)&&(n=Qs(u)?u:void 0)}return{minimum:e,maximum:n}},getStencilSize:function(){if(this.stencilSize)return t={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)},e=t.boundaries,n=t.stencilSize,o=t.aspectRatio,Zi(G(r=St(n)?n({boundaries:e,aspectRatio:o}):n),o)&&(r=_e({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:o.minimum,maximum:o.maximum}})),(r.width>e.width||r.height>e.height)&&(r=_e({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:G(r),maximum:G(r)}})),r;var t,e,n,o,r},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return W({},ia)},flip:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.transitions,r=o===void 0||o;if(!this.transitionsActive){r&&this.enableTransitions();var s=W({},this.imageTransforms.flip),a=Of({flip:{horizontal:t?!s.horizontal:s.horizontal,vertical:e?!s.vertical:s.vertical},previousFlip:s,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),c=a.visibleArea,d=a.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=c,this.coordinates=d,this.onChange(),r&&this.debouncedDisableTransitions()}},rotate:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,o=n===void 0||n;if(!this.transitionsActive){o&&this.enableTransitions();var r=W({},this.imageSize);this.appliedImageTransforms.rotate+=t;var s=Lf({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:r,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=s.visibleArea,c=s.coordinates,d=this.processAutoZoom("rotateImage",a,c);a=d.visibleArea,c=d.coordinates,this.visibleArea=a,this.coordinates=c,this.onChange(),o&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},Xf={key:0,ref:"canvas",style:{display:"none"}},Qf={key:1,ref:"sourceCanvas",style:{display:"none"}};ba.render=function(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{ref:"cropper",class:s.classes.cropper},[i.createVNode("div",{ref:"stretcher",class:s.classes.stretcher},null,2),i.createVNode("div",{class:s.classes.boundaries,style:s.boundariesStyle},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.backgroundWrapperComponent),{class:s.classes.cropperWrapper,"wheel-resize":s.settings.resizeImage.wheel,"touch-resize":s.settings.resizeImage.touch,"touch-move":s.settings.moveImage.touch,"mouse-move":s.settings.moveImage.mouse,onMove:s.onManipulateImage,onResize:s.onManipulateImage},{default:i.withCtx(function(){return[i.createVNode("div",{class:s.classes.background,style:s.boundariesStyle},null,6),i.createVNode("div",{class:s.classes.imageWrapper},[i.createVNode("img",{ref:"image",crossorigin:r.imageAttributes.crossOrigin,src:r.imageAttributes.src,class:s.classes.image,style:s.imageStyle,onMousedown:e[1]||(e[1]=i.withModifiers(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),i.createVNode("div",{class:s.classes.foreground,style:s.boundariesStyle},null,6),i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.stencilComponent),i.mergeProps({ref:"stencil",image:s.image,coordinates:r.coordinates,"stencil-coordinates":s.stencilCoordinates,transitions:s.transitionsOptions},n.stencilProps,{onResize:s.onResize,onResizeEnd:s.onResizeEnd,onMove:s.onMove,onMoveEnd:s.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[i.vShow,r.imageLoaded]]),n.canvas?(i.openBlock(),i.createBlock("canvas",Xf,null,512)):i.createCommentVNode("",!0),n.canvas?(i.openBlock(),i.createBlock("canvas",Qf,null,512)):i.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const Kf={class:"background-container"},em={class:"tools-line"},tm={class:"line-block"},nm={class:"dialog-footer"},io=M(i.defineComponent({__name:"ImageCropper",props:{open:{type:Boolean,required:!0},defaultRatio:{type:Number,required:!1,default:1}},emits:["crop","close"],setup(t,{emit:e}){const n=t,o=e,r=Ni.Cropper(),s=i.ref(n.defaultRatio);r.ratio=s.value;const a=async()=>{s.value===0?r.ratio=0:r.ratio=s.value},c=i.ref({width:0,height:0,left:0,top:0}),d=i.ref(!1),u=i.ref(""),h=i.ref(),f=async()=>{d.value=!0;const y=h.value.getResult();r.ratio===0&&(s.value=c.value.width/c.value.height),y&&y.canvas.toBlob(g=>{var k;o("crop",{blob:g,src:(k=y.canvas)==null?void 0:k.toDataURL()})}),d.value=!1},p=y=>{var g;c.value=y.coordinates,u.value=(g=y.canvas)==null?void 0:g.toDataURL()};return(y,g)=>{const k=rt,b=i.resolveComponent("el-form-item"),I=i.resolveComponent("el-form"),L=i.resolveComponent("el-button"),O=Ut;return i.openBlock(),i.createBlock(O,{show:t.open,title:"Настройка изображения","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1},{default:i.withCtx(()=>[i.createElementVNode("div",Kf,[i.createElementVNode("div",em,[i.createElementVNode("div",tm,[i.createVNode(I,null,{default:i.withCtx(()=>[i.createVNode(b,{label:"Задайте пропорции фото:"},{default:i.withCtx(()=>[i.createVNode(k,{modelValue:i.unref(s),"onUpdate:modelValue":g[0]||(g[0]=z=>i.isRef(s)?s.value=z:null),label:"Пропорции изображения",onChange:a},{default:i.withCtx(()=>g[1]||(g[1]=[i.createElementVNode("option",{label:"2:3 (формат A4)",value:2/3},null,-1),i.createElementVNode("option",{label:"4:3 (для карточек новостей)",value:4/3},null,-1),i.createElementVNode("option",{label:"1:1 (для фото сотрудников)",value:1},null,-1),i.createElementVNode("option",{label:"3:2",value:3/2},null,-1),i.createElementVNode("option",{label:"16:9",value:16/9},null,-1),i.createElementVNode("option",{label:"3:4 (вертикальное изображение)",value:3/4},null,-1),i.createElementVNode("option",{label:"Задать пропорции вручную",value:0},null,-1)])),_:1},8,["modelValue"])]),_:1})]),_:1})])]),i.createVNode(i.unref(ba),{ref_key:"cropperRef",ref:h,src:i.unref(r).src,"stencil-props":{aspectRatio:i.unref(r).ratio},style:{"max-height":"50vh","min-height":"50vh"},onChange:p},null,8,["src","stencil-props"]),i.createElementVNode("div",nm,[i.createVNode(L,{loading:i.unref(d),type:"success",onClick:f},{default:i.withCtx(()=>g[2]||(g[2]=[i.createTextVNode(" Сохранить ")])),_:1},8,["loading"])])])]),_:1},8,["show"])}}}),[["__scopeId","data-v-0707c63d"]]),Sa=M(i.defineComponent({__name:"InfoItemSelectButtons",props:{selected:{type:String,required:!0},list:{type:Array,required:!0}},emits:["select","reset"],setup(t,{emit:e}){const n=i.ref(!1),o=e,r=s=>{n.value=!n.value,o("select",s)};return(s,a)=>{const c=we,d=pe,u=st;return i.openBlock(),i.createBlock(u,{close:i.unref(n),title:s.title,"close-window-overflow":"hidden","with-hover":!0,"with-open-window":!0},{"open-inside-content":i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.list,h=>(i.openBlock(),i.createBlock(d,{key:h,type:"admin",color:"blue",text:h,onClick:f=>r(h)},null,8,["text","onClick"]))),128)),i.createVNode(d,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=h=>r(void 0))})]),default:i.withCtx(()=>[i.createVNode(c,{string:t.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-435691bb"]]),im={class:"mainblock"},om={class:"mainline"},Ca=M(i.defineComponent({__name:"LeftRightContainer",props:{leftWidth:{type:String,required:!1,default:"0px"},background:{type:String,required:!1,default:"inherit"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",im,[i.createElementVNode("div",om,[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:t.leftWidth,maxWidth:t.leftWidth,background:t.background,display:t.leftWidth!=="0px"?"block":"none"})},[i.renderSlot(e.$slots,"left",{},void 0,!0)],4),i.createElementVNode("div",{class:"mainblock-right",style:i.normalizeStyle({background:t.background})},[i.renderSlot(e.$slots,"right",{},void 0,!0)],4)])]))}}),[["__scopeId","data-v-a4bc6b16"]]),rm={class:"message-title"},sm={class:"message-text"},Fn=M(i.defineComponent({__name:"MessageBody",props:{title:{type:String,default:"",required:!1},text:{type:String,default:"",required:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",rm,i.toDisplayString(t.title),1),i.createElementVNode("div",sm,i.toDisplayString(t.text),1)]))}}),[["__scopeId","data-v-e3c1e672"]]),am=i.defineComponent({name:"CollapseContainer",props:{initActiveIdx:{type:Number,default:0}},setup(t){const e=i.ref(t.initActiveIdx),n=o=>{e.value=o};return i.watch(()=>t.initActiveIdx,()=>{n(t.initActiveIdx)}),{changeActiveId:n,activeIdx:e}}});function lm(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",null,[i.renderSlot(t.$slots,"default",{activeIdx:t.activeIdx,changeActiveId:t.changeActiveId})])}const ka=M(am,[["render",lm]]),cm=i.defineComponent({name:"CollapseItem",props:{tabId:{type:String,required:!1,default:""},activeId:{type:String,default:""},isCollaps:{type:Boolean,default:!0},title:{type:String,default:""},showToolsOnHover:{type:Boolean,default:!0},background:{type:String,required:!1,default:"#ffffff"},backgroundAttention:{type:String,required:!1,default:"#ffffff"},changeColor:{type:Boolean,default:!1},margin:{type:String,default:"10px 8px 2px 2px"},padding:{type:String,default:"0 10px"},selectable:{type:Boolean,default:!1}},emits:["changeActiveId"],setup(t,{emit:e}){const n=i.ref(t.activeId==="0"),o=()=>{n.value=!n.value,e("changeActiveId",t.tabId)};return i.onUpdated(()=>{t.activeId&&t.activeId!==t.tabId&&(n.value=!0)}),i.onBeforeMount(()=>{t.activeId&&t.activeId!==t.tabId&&(n.value=!1)}),{collapsed:n,handleItemClick:o}}}),dm=["for"],um={class:"inside-icon"};function hm(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{class:"tab",style:i.normalizeStyle({margin:t.margin,height:t.isCollaps&&t.collapsed?"60px":"","box-shadow":t.selectable&&t.activeId===t.tabId?"0px 0px 1px 2px #1979cf":""})},[t.isCollaps&&t.collapsed?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"icon-arrow",onClick:e[0]||(e[0]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},e[3]||(e[3]=[i.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]))):t.isCollaps&&!t.collapsed?(i.openBlock(),i.createElementBlock("svg",{key:1,class:"icon-arrow",onClick:e[1]||(e[1]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},e[4]||(e[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-up"},null,-1)]))):i.createCommentVNode("",!0),i.createElementVNode("label",{for:t.tabId,onClick:e[2]||(e[2]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},[i.createElementVNode("div",{style:i.normalizeStyle({cursor:t.isCollaps?"pointer":"default",background:t.changeColor?t.background:t.backgroundAttention,padding:t.padding,borderRadius:"5px"}),class:"tab-name"},[i.createElementVNode("div",um,[i.renderSlot(t.$slots,"icon",{},void 0,!0)]),t.title?(i.openBlock(),i.createElementBlock("div",{key:0,class:"title-in",style:i.normalizeStyle({marginRight:t.isCollaps?"50px":"0",width:t.isCollaps?"calc(100% - 50px)":"100%"})},i.toDisplayString(t.title),5)):(i.openBlock(),i.createElementBlock("div",{key:1,class:"title-in",style:i.normalizeStyle({marginRight:t.isCollaps?"50px":"0",width:t.isCollaps?"calc(100% - 50px)":"100%"})},[i.renderSlot(t.$slots,"inside-title",{},void 0,!0)],4)),i.createElementVNode("div",{class:i.normalizeClass(["tools-bar",{"hidden-part":t.showToolsOnHover}])},[i.renderSlot(t.$slots,"tools",{},void 0,!0)],2)],4)],8,dm),i.createElementVNode("div",{style:i.normalizeStyle({maxHeight:t.isCollaps?"":"1000000vh",background:t.changeColor?t.background:t.backgroundAttention}),class:i.normalizeClass(t.collapsed?"tab-content-down":"tab-content-up")},[i.renderSlot(t.$slots,"inside-content",{},void 0,!0)],6)],4),e[5]||(e[5]=i.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-50a7d390><symbol id="arrow-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-50a7d390><path d="M5 6L10 11L15 6L17 7L10 14L3 7L5 6Z" fill="currentColor" data-v-50a7d390></path></symbol><symbol id="arrow-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-50a7d390><path d="M15 14L10 9L5 14L3 13L10 6L17 13L15 14Z" fill="currentColor" data-v-50a7d390></path></symbol></svg>',1))],64)}const Ea=M(cm,[["render",hm],["__scopeId","data-v-50a7d390"]]),fm={width:"0",height:"0",class:"hidden"};function mm(t,e){return i.openBlock(),i.createElementBlock("svg",fm,e[0]||(e[0]=[i.createElementVNode("symbol",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"arrow-left"},[i.createElementVNode("path",{d:"M656.733 149.806C659.446 147.019 662.69 144.804 666.274 143.292C669.857 141.779 673.707 141 677.597 141C681.486 141 685.337 141.779 688.92 143.292C692.503 144.804 695.748 147.019 698.461 149.806C704.024 155.518 707.138 163.176 707.138 171.15C707.138 179.123 704.024 186.782 698.461 192.494L386.589 512.366L698.461 832.302C701.269 835.176 703.483 838.575 704.976 842.305C706.47 846.035 707.215 850.022 707.167 854.04C707.119 858.057 706.281 862.026 704.699 865.72C703.118 869.413 700.824 872.759 697.949 875.566C695.211 878.242 691.972 880.351 688.417 881.774C684.863 883.197 681.063 883.904 677.235 883.857C673.407 883.809 669.625 883.007 666.107 881.497C662.589 879.986 659.404 877.797 656.733 875.054L325.085 534.702C319.26 528.726 316 520.711 316 512.366C316 504.021 319.26 496.006 325.085 490.03L656.733 149.806Z"})],-1)]))}const pm={render:mm},gm={width:"0",height:"0",class:"hidden"};function ym(t,e){return i.openBlock(),i.createElementBlock("svg",gm,e[0]||(e[0]=[i.createElementVNode("symbol",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",id:"arrow-right"},[i.createElementVNode("path",{d:"M366.436 875.054C363.723 877.84 360.479 880.055 356.895 881.568C353.312 883.08 349.462 883.859 345.572 883.859C341.683 883.859 337.832 883.08 334.249 881.568C330.666 880.055 327.421 877.84 324.708 875.054C319.145 869.342 316.031 861.683 316.031 853.71C316.031 845.736 319.145 838.077 324.708 832.366L636.58 512.494L324.708 192.558C321.9 189.684 319.686 186.284 318.193 182.555C316.699 178.825 315.954 174.837 316.002 170.82C316.049 166.802 316.888 162.833 318.47 159.14C320.051 155.446 322.345 152.1 325.22 149.294C327.958 146.618 331.197 144.508 334.752 143.086C338.306 141.663 342.106 140.955 345.934 141.003C349.762 141.05 353.544 141.852 357.062 143.363C360.58 144.873 363.765 147.063 366.436 149.806L698.084 490.158C703.909 496.134 707.169 504.148 707.169 512.494C707.169 520.839 703.909 528.854 698.084 534.83L366.436 875.054Z"})],-1)]))}const wm={render:ym},bm={class:"tab"},Sm={class:"rotate"},Cm={key:0,class:"icon-arrow"},km={key:1,class:"icon-arrow"},va=M(i.defineComponent({__name:"VerticalCollapseContainer",setup(t){const e=i.ref(!1),n=async()=>{e.value=!e.value};return(o,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",bm,[i.renderSlot(o.$slots,"main",{},void 0,!0),i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"50%":"20px",transition:"0.3s"}),class:"left"},[i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"100%":"0",transition:"0.3s"}),class:"left-content"},[i.renderSlot(o.$slots,"inside-content-left",{},void 0,!0)],4),i.createElementVNode("div",{class:"arrow-bar",onClick:n},[i.createElementVNode("div",Sm,[i.renderSlot(o.$slots,"inside-title",{},void 0,!0)]),i.unref(e)?(i.openBlock(),i.createElementBlock("svg",km,r[1]||(r[1]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]))):(i.openBlock(),i.createElementBlock("svg",Cm,r[0]||(r[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)])))])],4),i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"50%":"100%",transition:"0.3s"}),class:"right"},[i.renderSlot(o.$slots,"inside-content-right",{},void 0,!0)],4)]),i.createVNode(i.unref(pm)),i.createVNode(i.unref(wm))],64))}}),[["__scopeId","data-v-2371e4d8"]]),Em={class:"add-block_body"},Ma=M(i.defineComponent({__name:"PAdd",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(t){return(e,n)=>{const o=En;return i.openBlock(),i.createElementBlock("div",{class:"add-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.createVNode(o,{top:t.top,"z-index":t.zIndex},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),i.createElementVNode("div",Em,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-b93bc8b1"]]),oo=M(i.defineComponent({__name:"PContainer",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"add-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-b89bdc7a"]]),vm={class:"add-block_body"},Ba=M(i.defineComponent({__name:"PContainerStickyHead",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(t){return(e,n)=>{const o=En,r=oo;return i.openBlock(),i.createBlock(r,{background:t.background,margin:t.margin,padding:t.padding},{default:i.withCtx(()=>[i.createVNode(o,{top:t.top,"z-index":t.zIndex},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),i.createElementVNode("div",vm,[i.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-e59e418e"]]),Mm={class:"del-block_title"},Bm={class:"del-block_body"},Ia=M(i.defineComponent({__name:"PDel",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"10px 10px 10px 50px"},padding:{type:String,required:!1,default:"10px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"del-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.createElementVNode("div",Mm,[i.renderSlot(e.$slots,"title",{},void 0,!0)]),i.createElementVNode("div",Bm,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-362b7b0d"]]),Im=["onClick"],$a=M(i.defineComponent({__name:"PTabs",props:{tabs:{type:Object,required:!0},tabHeight:{type:String,required:!1,default:"40px"},height:{type:String,required:!1,default:""},minMenuItemWidth:{type:String,required:!1,default:"150px"},outTopMargin:{type:String,required:!1,default:"40px"},background:{type:String,required:!1,default:"#ffffff"}},emits:["select"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.tabs[0]),s=i.ref(0),a=i.ref(window.innerWidth),c=i.ref(),d=i.ref(Number(n.tabHeight.replace(/[^+\d]/g,""))),u=()=>{a.value=window.innerWidth,d.value=c.value?c.value.clientHeight:Number(n.tabHeight.replace(/[^+\d]/g,""))};i.onMounted(()=>window.addEventListener("resize",u)),i.onUnmounted(()=>window.removeEventListener("resize",u));const h=i.computed(()=>`calc(100% - ${d.value}px + 1px)`),f=(p,y)=>{r.value=p,s.value=y,o("select",p)};return(p,y)=>(i.openBlock(),i.createElementBlock("div",{class:"mainblock",style:i.normalizeStyle({height:`calc(100% - ${t.outTopMargin} - ${t.tabHeight}`})},[i.createElementVNode("div",{ref_key:"menuRef",ref:c,class:"top-menu",style:i.normalizeStyle({gridTemplateColumns:`repeat(auto-fit, minmax(${t.minMenuItemWidth}, 1fr))`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tabs,(g,k)=>(i.openBlock(),i.createElementBlock("div",{key:k},[i.createElementVNode("div",{class:i.normalizeClass({"selected-tab":k===i.unref(s),tab:k!==i.unref(s)}),style:i.normalizeStyle({minHeight:t.tabHeight,maxHeight:t.tabHeight}),onClick:b=>f(g,k)},i.toDisplayString(g.name),15,Im)]))),128))],4),i.createElementVNode("div",{class:"body-container",style:i.normalizeStyle({background:t.background,height:i.unref(h)})},[i.renderSlot(p.$slots,"default",{},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(r).component)))],!0)],4)],4))}}),[["__scopeId","data-v-3cb80968"]]),$m=["id"],xm=["for"],Nm={class:"left-field"},Rm=["href","download"],Am={key:1,class:"text-field__input"},Vm={class:"right-field"},Pm=i.defineComponent({__name:"UploaderFile",props:{fileInfo:{type:Object,required:!1,default:new X},formats:{type:Array,default:()=>["pdf","jpeg","jpg"]},label:{type:String,default:"Label",required:!1},margin:{type:String,required:!1,default:"10px 0 0 0"},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},placeholder:{type:String,required:!1,default:""}},emits:["upload","remove"],setup(t,{emit:e}){const n=t,o=e,r=q.CreateGuid(),s=q.CreateGuid(),a=()=>{const u=document.getElementById(r);if(!u.files)return;const h=u.files[0];if(h){if(!d(h.name)){N.Notification.Error("Загруженный файл должен быть в формате pdf, jpg или jpeg");return}n.fileInfo.uploadAndSetFile(h),o("upload",n.fileInfo)}},c=()=>{n.fileInfo.clearFile(),o("remove",n.fileInfo)};i.onMounted(()=>{const u=document.getElementById(s);u&&(u.onclick=()=>{var h;return(h=document.getElementById(r))==null?void 0:h.click()})});const d=u=>{let h=bs.Get(u);return!!n.formats.includes(h.toLowerCase())};return(u,h)=>{const f=we,p=qn,y=pe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("input",{id:i.unref(r),type:"file",hidden:"",onChange:a},null,40,$m),i.createElementVNode("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,xm)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",Nm,[i.createVNode(p,null,{default:i.withCtx(()=>[i.renderSlot(u.$slots,"default",{},void 0,!0),i.createVNode(f,{string:t.placeholder,"font-size":"var(--font-size-default:)",color:"var(--input-label-color)",margin:"0 10px 0 0"},null,8,["string"])]),_:3})]),t.fileInfo&&t.fileInfo.originalName?(i.openBlock(),i.createElementBlock("div",{key:0,class:"text-field__input",style:i.normalizeStyle({color:t.color})},[i.createElementVNode("a",{href:t.fileInfo.getFileUrl(),target:"_blank",download:t.fileInfo.originalName},[i.createElementVNode("div",null,i.toDisplayString(t.fileInfo.originalName),1)],8,Rm),i.createVNode(y,{skin:"text",type:"del",onClick:c},{default:i.withCtx(()=>[i.createVNode(qt,{size:"20px",margin:"0 5px"})]),_:1})],4)):(i.openBlock(),i.createElementBlock("div",Am,[i.createVNode(f,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),i.createElementVNode("div",Vm,[i.createVNode(y,{id:i.unref(s),skin:"text",type:"success","data-test":"upload-btn",text:t.fileInfo&&t.fileInfo.originalName?"Обновить":"Загрузить",margin:"0"},null,8,["id","text"])])],4)],4)],64)}}}),xa=M(Pm,[["__scopeId","data-v-6a86379b"]]),Fm={class:"bg"},ro=M(i.defineComponent({__name:"AuthPage",setup(t){const e=()=>{N.Auth.Form.IsLogin()&&ot.ToHome()};return(n,o)=>{const r=vn;return i.openBlock(),i.createElementBlock("div",Fm,[i.createVNode(r,{width:"760px",margin:"0 auto",onAction:e})])}}}),[["__scopeId","data-v-14e033ce"]]),Tm=Object.freeze(Object.defineProperty({__proto__:null,default:ro},Symbol.toStringTag,{value:"Module"})),zm={},Dm={style:{"text-align":"center"}};function Lm(t,e){return i.openBlock(),i.createElementBlock("div",Dm,e[0]||(e[0]=[i.createElementVNode("h1",null,"Страница не найдена",-1)]))}const so=M(zm,[["render",Lm]]),Om=Object.freeze(Object.defineProperty({__proto__:null,default:so},Symbol.toStringTag,{value:"Module"})),_m={class:"container"},Hm={key:0,class:"result"},qm={class:"list"},Um=["onClick"],ao=M(i.defineComponent({inheritAttrs:!1,__name:"PAutocomplete",props:{modelValue:{type:String,default:""},searchFunc:{type:Function,default:()=>{}},suggestions:{type:Array,default:[]}},emits:["select","input"],setup(t,{emit:e}){const n=e,o=t,r=i.ref(o.modelValue),s=i.ref([]);async function a(){n("input",r.value),await c()}async function c(){o.searchFunc&&(s.value=await o.searchFunc(r.value))}async function d(u){n("select",u)}return(u,h)=>{const f=Fi,p=qe;return i.openBlock(),i.createElementBlock("div",_m,[i.createVNode(p,{modelValue:i.unref(r),"onUpdate:modelValue":h[0]||(h[0]=y=>i.isRef(r)?r.value=y:null),placeholder:"Найти",onInput:a},{right:i.withCtx(()=>[i.createVNode(f)]),_:1},8,["modelValue"]),i.unref(r)?(i.openBlock(),i.createElementBlock("div",Hm,[i.createElementVNode("ul",qm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),y=>(i.openBlock(),i.createElementBlock("li",{key:y.value,onClick:g=>d(y)},i.toDisplayString(y.label),9,Um))),128))])])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-58b78c5c"]]),Wm={class:"footer"},Na=M(i.defineComponent({__name:"PDialog",setup(t){const e=i.computed(()=>{switch(N.Dialog.GetType()){case"info":return"message primary";case"success":return"message success";case"warning":return"message warning";case"error":return"message danger";default:return"message neutral"}});return(n,o)=>{const r=Fn,s=pe;return i.openBlock(),i.createBlock(i.Transition,{name:"fade"},{default:i.withCtx(()=>[("PHelp"in n?n.PHelp:i.unref(N)).Dialog.IsVisible()?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e))},[i.createVNode(r,{title:("PHelp"in n?n.PHelp:i.unref(N)).Dialog.GetTitle(),text:("PHelp"in n?n.PHelp:i.unref(N)).Dialog.GetText()},null,8,["title","text"]),i.createElementVNode("div",Wm,[i.createVNode(s,{type:"primary",text:("PHelp"in n?n.PHelp:i.unref(N)).Dialog.GetConfirmButtonText(),margin:"10px 0 0 0",onClick:o[0]||(o[0]=a=>("PHelp"in n?n.PHelp:i.unref(N)).Dialog.Submit())},null,8,["text"]),i.createVNode(s,{type:"warning",text:("PHelp"in n?n.PHelp:i.unref(N)).Dialog.GetCancelButtonText(),margin:"10px 0 0 0",onClick:o[1]||(o[1]=a=>("PHelp"in n?n.PHelp:i.unref(N)).Dialog.Cancel())},null,8,["text"])])],2)):i.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-cbdf027e"]]),Gm={};function jm(t,e){return i.openBlock(),i.createElementBlock(i.Fragment,null,[e[0]||(e[0]=i.createElementVNode("div",{class:"blur"},null,-1)),e[1]||(e[1]=i.createElementVNode("div",{class:"loader-container"},[i.createElementVNode("div",{class:"loader",style:{"--b":"20px",width:"200px","--n":"10"}})],-1))],64)}const Ra=M(Gm,[["render",jm],["__scopeId","data-v-879cfd55"]]),Aa=M(i.defineComponent({__name:"PNotification",setup(t){const e=i.computed(()=>{switch(N.Notification.GetType()){case"info":return"message info";case"success":return"message success";case"warning":return"message warning";case"error":return"message error";default:return"message neutral"}});return(n,o)=>{const r=Fn;return i.openBlock(),i.createBlock(i.Transition,{name:"fade"},{default:i.withCtx(()=>[("PHelp"in n?n.PHelp:i.unref(N)).Notification.IsVisible()?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e))},[i.createVNode(r,{title:("PHelp"in n?n.PHelp:i.unref(N)).Notification.GetTitle(),text:("PHelp"in n?n.PHelp:i.unref(N)).Notification.GetText()},null,8,["title","text"])],2)):i.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-e8d26012"]]),Zm={style:{display:"flex","justify-content":"center",width:"100%"}},Ym={class:"pag-number"},Jm={class:"pag-ul"},Xm={key:2},Va=M(i.defineComponent({__name:"PPagination",props:{showConfirm:{type:Boolean,default:!1},justifyContent:{type:String,default:"center"},store:{type:Object,required:!0}},emits:["cancel","save"],setup(t,{emit:e}){const n=t,o=y=>y?"active":"neutral",r=y=>y?"not-active":"neutral",s=N.Paginator,a=i.ref(!1),c=i.ref(!1),d=e;s.count=n.store.Count();const u=async y=>{if(y!==s.curPage){if(y<1&&(y=1),y>s.pagesCount()&&(y=s.pagesCount()),!n.showConfirm)return await h(y);N.Dialog.Save().then(async()=>{d("save"),await h(y)}).catch(async()=>{N.Notification.Warning("Изменения не были сохранены"),d("cancel"),await h(y)})}},h=async(y,g)=>{s.setCurPage(y),ee.Get().p.offset=(y-1)*s.limit,await n.store.FTSP(),p()},f=i.computed(()=>{const y=s.pagesCount();return y<8?Ae.GenerateNumsRange(2,y-1).filter(g=>g<y&&g>1):Ae.GenerateNumsRange(s.curPage-2,s.curPage+3).filter(g=>g<y&&g>1)}),p=()=>{const y=document.querySelector(".el-table__body-wrapper"),g=document.querySelector("#list");y?y.scrollTo({top:0}):g&&g.scrollTo({top:0})};return i.onBeforeUnmount(()=>{ee.Get().p.drop()}),(y,g)=>{const k=Ti,b=pe,I=Di,L=Oi,O=Li,z=zi;return i.openBlock(),i.createElementBlock("div",Zm,[i.createElementVNode("div",{class:"pag-container",style:i.normalizeStyle({justifyContent:t.justifyContent})},[i.createElementVNode("div",Ym,[i.createVNode(b,{skin:"pag",type:r(i.unref(s).curPage===1),onClick:g[0]||(g[0]=F=>u(i.unref(s).curPage-1))},{default:i.withCtx(()=>[i.createVNode(k)]),_:1},8,["type"]),i.createElementVNode("ul",Jm,[i.createElementVNode("li",null,[i.createVNode(b,{skin:"pag",type:o(i.unref(s).curPage===1),text:"1",onClick:g[1]||(g[1]=F=>u(1))},null,8,["type"])]),i.unref(s).pagesCount()>8&&i.unref(s).curPage>4?(i.openBlock(),i.createElementBlock("li",{key:0,onMouseenter:g[3]||(g[3]=F=>a.value=!0),onMouseleave:g[4]||(g[4]=F=>a.value=!1)},[i.createVNode(b,{skin:"pag",type:"neutral",onClick:g[2]||(g[2]=F=>u(i.unref(s).curPage-5))},{default:i.withCtx(()=>[i.unref(a)?(i.openBlock(),i.createBlock(I,{key:0})):(i.openBlock(),i.createBlock(L,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f),F=>(i.openBlock(),i.createElementBlock("li",{key:F},[i.createVNode(b,{skin:"pag",type:o(F===i.unref(s).curPage),text:F,onClick:Ee=>u(F)},null,8,["type","text","onClick"])]))),128)),i.unref(s).pagesCount()>=8&&i.unref(s).curPage<i.unref(s).pagesCount()-3?(i.openBlock(),i.createElementBlock("li",{key:1,onMouseenter:g[6]||(g[6]=F=>c.value=!0),onMouseleave:g[7]||(g[7]=F=>c.value=!1)},[i.createVNode(b,{skin:"pag",type:"neutral",onClick:g[5]||(g[5]=F=>u(i.unref(s).curPage+5))},{default:i.withCtx(()=>[i.unref(c)?(i.openBlock(),i.createBlock(O,{key:0})):(i.openBlock(),i.createBlock(L,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),i.unref(s).pagesCount()>1?(i.openBlock(),i.createElementBlock("li",Xm,[i.createVNode(b,{skin:"pag",type:o(i.unref(s).pagesCount()===i.unref(s).curPage),text:i.unref(s).pagesCount(),onClick:g[8]||(g[8]=F=>u(i.unref(s).pagesCount()))},null,8,["type","text"])])):i.createCommentVNode("",!0)]),i.createVNode(b,{skin:"pag",type:r(i.unref(s).curPage===i.unref(s).pagesCount()),onClick:g[9]||(g[9]=F=>u(i.unref(s).curPage+1))},{default:i.withCtx(()=>[i.createVNode(z)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-6645cd2f"]]),Pa=M(i.defineComponent({__name:"RemoteSearch",props:{keyValue:{type:String,default:""},modelValue:{type:String,default:""},storeModule:{type:String,default:""},placeholder:{type:String,default:"Начните вводить запрос"},showSuggestions:{type:Boolean,default:!0},maxWidth:{type:[Number,String],default:350},focus:{type:Boolean,default:!1}},emits:["select","load","input"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.modelValue),s=i.ref(),a=Sn.SearchModel();i.watch(()=>n.focus,()=>{n.focus&&setTimeout(()=>{s.value.focus(),r.value=""},500)});const c=async h=>{if(h.length<2)return;s.value.activated=!0,a.searchObjects=[],a.query=h,a.key=n.keyValue;const f=a.searchGroups.find(p=>p.key===n.keyValue);return f&&(a.searchGroup=f),await Sn.Search(a),a.searchObjects},d=async h=>{o("select",h),r.value=""},u=h=>{o("input",h),h.length===0&&o("input","")};return(h,f)=>{const p=ao;return i.openBlock(),i.createBlock(p,{ref_key:"searchForm",ref:s,modelValue:i.unref(r),"onUpdate:modelValue":f[0]||(f[0]=y=>i.isRef(r)?r.value=y:null),"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:t.placeholder,"search-func":c,"trigger-on-focus":t.showSuggestions,suggestions:i.unref(a).searchObjects,onSelect:d,onInput:u},{suffix:i.withCtx(()=>f[1]||(f[1]=[i.createElementVNode("i",{class:"el-icon-search"},null,-1)])),_:1},8,["modelValue","placeholder","trigger-on-focus","suggestions"])}}}),[["__scopeId","data-v-11ab26af"]]),Qm={class:"mainblock-body"},Km={class:"mainblock-footer"},Fa=M(i.defineComponent({__name:"ResearcheContainer",props:{background:{type:String,required:!1,default:"inherit"},padding:{type:String,required:!1,default:"0px 10px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"mainblock",style:i.normalizeStyle({background:t.background,padding:t.padding})},[i.createElementVNode("div",{class:"mainblock-header",style:i.normalizeStyle({background:t.background})},[i.renderSlot(e.$slots,"header",{},void 0,!0)],4),i.createElementVNode("div",Qm,[i.renderSlot(e.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",Km,[i.renderSlot(e.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-a670fb4a"]]),ep={class:"right-slider-content"},tp={class:"right-slider-content-header"},np={class:"right-slider-content-box"},ip={class:"right-slider-button"},Ta=M(i.defineComponent({__name:"RightSliderContainer",props:{sliderOffWidth:{type:String,required:!1,default:"30px"},sliderOnWidth:{type:String,required:!1,default:"260px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1},titleOpen:{type:String,required:!1,default:"Скрыть список исследований"},titleClose:{type:String,required:!1,default:"Показать список исследований"}},emits:["toggle"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1);i.watch(()=>n.toggle,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("toggle",a)};return(a,c)=>{const d=we;return i.openBlock(),i.createElementBlock("div",{class:"right-slider",style:i.normalizeStyle({marginRight:i.unref(r)?`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`:"0",width:t.sliderOnWidth})},[i.createElementVNode("div",{class:"click-line",onClick:c[0]||(c[0]=u=>s(!i.unref(r)))},[i.unref(r)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),i.createElementVNode("div",ep,[i.createElementVNode("div",tp,[i.renderSlot(a.$slots,"header",{},void 0,!0)]),i.createElementVNode("div",np,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",ip,[i.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-495a90f9"]]),op={class:"mainblock"},rp={class:"body-block"},sp={class:"tab-block"},za=M(i.defineComponent({__name:"RightTabsContainer",props:{sliderOffWidth:{type:String,required:!1,default:"101px"},sliderOnWidth:{type:String,required:!1,default:"332px"},background:{type:String,required:!1,default:"inherit"},isToggle:{type:Boolean,required:!1,default:!1},mobileWidth:{type:String,required:!1,default:"768px"}},emits:["toggle"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(window.matchMedia("(max-width: 768px)").matches),a=d=>{o("toggle",d)},c=i.ref(!1);return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(n.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return s.value=window.matchMedia("(max-width: 1215px)").matches;case"1024px":return s.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return s.value=window.matchMedia("(max-width: 768px)").matches}return s.value=window.matchMedia("(max-width: 1330px)").matches}),r.value=!0}),(d,u)=>(i.openBlock(),i.createElementBlock("div",op,[i.createElementVNode("div",{class:"slider-block",style:i.normalizeStyle({marginRight:i.unref(s)?t.isToggle?"49px":`calc(49px - ${t.sliderOnWidth})`:t.isToggle?t.sliderOffWidth:`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`,width:t.sliderOnWidth,minHeight:t.sliderOffWidth,height:t.isToggle?"auto":"100px"})},[i.createElementVNode("div",{class:"slider-icon",style:i.normalizeStyle({border:t.isToggle?"1px solid #379FFF":"1px solid #00B5A4",background:t.isToggle?"#ffffff":"#C7ECEA"}),onClick:u[0]||(u[0]=h=>a(!t.isToggle)),onMouseenter:u[1]||(u[1]=h=>c.value=!0),onMouseleave:u[2]||(u[2]=h=>c.value=!1)},[i.createElementVNode("div",{class:"icon-block",style:i.normalizeStyle({transform:i.unref(c)?t.isToggle?"rotate(-225deg) scale(1.2, 1.2)":"rotate(0deg) scale(1.2, 1.2)":t.isToggle?"rotate(-225deg)":"rotate(0deg)",fill:t.isToggle?"#379FFF":"#00B5A4"})},[i.renderSlot(d.$slots,"icon",{},void 0,!0)],4)],36),i.createElementVNode("div",{class:"slider-info",style:i.normalizeStyle({width:`calc(${t.sliderOnWidth} - ${t.sliderOffWidth})`})},[i.renderSlot(d.$slots,"slider-body",{},void 0,!0)],4)],4),i.createElementVNode("div",rp,[i.renderSlot(d.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",sp,[i.renderSlot(d.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-eaeca0cc"]]),ap={class:"mainblock"},lp={class:"body"},cp={key:0,class:"title"},dp={class:"title-line"},up={class:"icon-filter",style:{stroke:"#B0A4C0",paddingLeft:"10px"}},hp={key:0,class:"help-block"},fp={key:0,class:"title"},mp={class:"title-line"},pp={class:"icon-download",style:{stroke:"#B0A4C0",paddingLeft:"10px"}},gp={key:1,class:"icons"},Da=M(i.defineComponent({__name:"RSContainer",props:{menuWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"6000px"}},setup(t){const e=t,n=i.ref(!1),o=i.ref(!1),r=i.ref(!1),s=i.ref(window.matchMedia("(max-width: 6000px)").matches),a=()=>{o.value=!1,r.value=!1},c=()=>{o.value=!o.value},d=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return s.value=window.matchMedia("(max-width: 1215px)").matches;case"1024px":return s.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return s.value=window.matchMedia("(max-width: 768px)").matches}return s.value=window.matchMedia("(max-width: 6000px)").matches}),n.value=!0}),(u,h)=>{const f=Pi,p=pe,y=Vi;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",ap,[o.value|r.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:h[0]||(h[0]=g=>a())})):i.createCommentVNode("",!0),i.createElementVNode("div",lp,[i.createElementVNode("div",{class:"visability-block",style:i.normalizeStyle({maxWidth:s.value?"100%":"300px"})},[i.renderSlot(u.$slots,"visability",{},void 0,!0)],4),i.createElementVNode("div",{class:"filter-block",style:i.normalizeStyle({position:s.value?"absolute":"",top:s.value?"10px":"",right:s.value?"0px":"",width:(s.value,"100%"),zIndex:s.value?"4":"",padding:s.value?"0px 0px 26px 0px":"0",marginRight:s.value?o.value?"0":"-200%":"0",transition:s.value?"0.3s":"",background:s.value?"#F5f5f5":"",borderTopLeftRadius:s.value?"5px":"",borderBottomLeftRadius:s.value?"5px":"",boxShadow:(s.value,"rgba(0, 0, 0, 0.35) 0px 5px 5px"),height:(s.value,"60vh")})},[s.value?(i.openBlock(),i.createElementBlock("div",cp,[i.createElementVNode("div",dp,[(i.openBlock(),i.createElementBlock("svg",up,h[5]||(h[5]=[i.createElementVNode("use",{"xlink:href":"#filter"},null,-1)]))),(i.openBlock(),i.createElementBlock("svg",{class:"icon-close",style:{marginRight:"5px"},onClick:h[1]||(h[1]=g=>c())},h[6]||(h[6]=[i.createElementVNode("use",{"xlink:href":"#close"},null,-1)])))]),i.renderSlot(u.$slots,"title-tools",{},void 0,!0)])):i.createCommentVNode("",!0),i.renderSlot(u.$slots,"filter",{},void 0,!0)],4),s.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",hp)),i.createElementVNode("div",{class:"download-block",style:i.normalizeStyle({position:s.value?"absolute":"",top:s.value?"60px":"",right:s.value?"0px":"",width:s.value?"77px":"",zIndex:s.value?"4":"",padding:s.value?"0px 0px 26px 0px":"0 0 0 10px",marginRight:s.value?r.value?"-2px":"-130px":"0",transition:s.value?"0.3s":"",background:s.value?"#F5f5f5":"",borderTopLeftRadius:s.value?"5px":"",borderBottomLeftRadius:s.value?"5px":"",boxShadow:s.value?"rgba(0, 0, 0, 0.35) 0px 5px 5px":"",height:s.value?"150px":""})},[s.value?(i.openBlock(),i.createElementBlock("div",fp,[i.createElementVNode("div",mp,[(i.openBlock(),i.createElementBlock("svg",pp,h[7]||(h[7]=[i.createElementVNode("use",{"xlink:href":"#download"},null,-1)]))),(i.openBlock(),i.createElementBlock("svg",{class:"icon-close",onClick:h[2]||(h[2]=g=>d())},h[8]||(h[8]=[i.createElementVNode("use",{"xlink:href":"#close"},null,-1)])))])])):i.createCommentVNode("",!0),i.renderSlot(u.$slots,"download",{},void 0,!0)],4),s.value?(i.openBlock(),i.createElementBlock("div",gp,[i.createVNode(p,{skin:"icon",margin:"0 0 0 10px",onClick:h[3]||(h[3]=g=>c())},{default:i.withCtx(()=>[i.createVNode(f,{color:"#006BB4"})]),_:1}),i.createVNode(p,{skin:"icon",margin:"13px 0 0 10px",onClick:h[4]||(h[4]=g=>d())},{default:i.withCtx(()=>[i.createVNode(y,{color:"#006BB4"})]),_:1})])):i.createCommentVNode("",!0)])]),h[9]||(h[9]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M12 10.5857L16.95 5.63574L18.364 7.04974L13.414 11.9997L18.364 16.9497L16.95 18.3637L12 13.4137L7.04999 18.3637L5.63599 16.9497L10.586 11.9997L5.63599 7.04974L7.04999 5.63574L12 10.5857Z"})])],-1))],64)}}}),[["__scopeId","data-v-468150ac"]]),yp=["label","value"],La=M(i.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(t,{emit:e}){const n={[fe.String]:"Текстовый ответ",[fe.Text]:"Развёрнутый текстовый ответ",[fe.Number]:"Числовой ответ",[fe.Date]:"Ответ в виде даты",[fe.Radio]:"Выбор одного из вариантов",[fe.Set]:"Выбор нескольких вариантов",[fe.File]:"Ответ в виде файла",[fe.MatrixRadio]:"Матрица с одним выбором",[fe.MatrixSet]:"Матрица с несколькими выборами"},o=e,r=s=>{o("select",s)};return(s,a)=>{const c=we,d=rt;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(c,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),i.createVNode(d,{"model-value":t.selectedType,placeholder:"Вид ответа",onChange:r},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,(u,h)=>i.createElementVNode("option",{key:u,label:u,value:h},null,8,yp)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-6be05cd5"]]),wp={class:"field"},Oa=M(i.defineComponent({__name:"SingleNameToggleForm",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(),a=i.ref(n.withName.name),c=i.ref(!1),d=()=>{c.value=!1},u=async()=>{a.value.trim(),n.withName.setName&&n.withName.setName(a.value),r.value=!r.value,o("submit")};return(h,f)=>{const p=we,y=i.resolveComponent("el-input"),g=i.resolveComponent("el-form-item"),k=i.resolveComponent("el-form"),b=pe;return i.openBlock(),i.createBlock(k,{ref_key:"form",ref:s,style:{width:"100%"}},{default:i.withCtx(()=>[i.createVNode(st,{title:"Название","show-save-dialog":c.value,icon:"edit-title","with-hover":!0,close:r.value,width:"100%",onKeyupEnter:u,onAfterClose:d},{"open-inside-content":i.withCtx(()=>[i.createVNode(st,{title:"",icon:"edit-title","with-open-window":!1,"with-hover":!1,"border-color":"#ffffff","base-box-margin":"0 0 15px 0",padding:"0",width:"100%","custom-class":"test","open-width":"100%"},{default:i.withCtx(()=>[i.createElementVNode("div",wp,[i.createVNode(k,null,{default:i.withCtx(()=>[i.createVNode(g,{style:{width:"100%"},prop:"surname"},{default:i.withCtx(()=>[i.createVNode(y,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=I=>a.value=I),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})])]),_:1}),i.createVNode(b,{type:"admin",color:"blue",text:"Сохранить",onClick:u})]),default:i.withCtx(()=>[a.value.length?(i.openBlock(),i.createBlock(p,{key:0,string:a.value.length>60?a.value.slice(0,60)+"...":a.value},null,8,["string"])):(i.openBlock(),i.createBlock(p,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:1},8,["show-save-dialog","close"])]),_:1},512)}}}),[["__scopeId","data-v-890163ac"]]),bp=["label","value"],_a=M(i.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=i.ref(!1),o=e,r=i.ref();i.onBeforeMount(()=>{n.value=!0,r.value=Fe.GetDefault(),ee.Get().setSortModel(r.value)});const s=async c=>{r.value=c??Fe.GetDefault(),ee.Get().setSortModel(r.value),ee.Get().p.drop(),o("load")},a=async c=>{ee.Get().p.drop(),await s(c)};return(c,d)=>{var h;const u=rt;return i.unref(n)?(i.openBlock(),i.createBlock(u,{key:0,modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=f=>i.isRef(r)?r.value=f:null),"popper-append-to-body":!1,clearable:!((h=i.unref(r))!=null&&h.default),"value-key":"label",onChange:a,onClear:d[1]||(d[1]=f=>a())},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Fe).Get(),(f,p)=>(i.openBlock(),i.createElementBlock("option",{key:p,label:f.label,value:f},null,8,bp))),128))]),_:1},8,["modelValue","clearable"])):i.createCommentVNode("",!0)}}}),[["__scopeId","data-v-03971699"]]),Sp=["label","value"],Ha=M(i.defineComponent({__name:"SortSelect",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=e,o=i.ref();i.onBeforeMount(()=>{o.value=Fe.GetDefault()});const r=async a=>{a||(o.value=Fe.GetDefault()),ee.Get().setSortModel(o.value),ee.Get().p.drop(),n("load")},s=async a=>{await r(a)};return(a,c)=>{var u;const d=rt;return i.openBlock(),i.createBlock(d,{modelValue:i.unref(o),"onUpdate:modelValue":c[0]||(c[0]=h=>i.isRef(o)?o.value=h:null),"popper-append-to-body":!1,clearable:!((u=i.unref(o))!=null&&u.default),"value-key":"label",onChange:s},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Fe).Get(),(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,label:h.label,value:h},null,8,Sp))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-98d731ba"]]),Cp={class:"switch-container"},kp={class:"line"},Ep={class:"line"},qa=M(i.defineComponent({__name:"Switch3Pos",props:{firstModel:{type:Object,required:!0},secondModel:{type:Object,required:!0},defaultLabel:{type:String,default:"Все"}},emits:["load"],setup(t,{emit:e}){const n=t,o={background:"inherit",border:"1px solid #c4c4c4"},r=()=>n.firstModel.valueEq(u.value)?void 0:o,s=()=>u.value?o:void 0,a=()=>n.secondModel.valueEq(u.value)?void 0:o,c=f=>{var y;return{color:(y=u.value)!=null&&y.valueEq(f)?"#006bb4":"#B0A4C0"}},d=e,u=i.ref(void 0),h=async f=>{var p;(p=u.value)!=null&&p.valueEq(f)||(ee.Get().replaceF(f,u.value),u.value=f,d("load"))};return(f,p)=>{const y=we;return i.openBlock(),i.createElementBlock("div",Cp,[i.createElementVNode("div",kp,[i.createVNode(y,{string:t.firstModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(c(t.firstModel)),onClick:p[0]||(p[0]=g=>h(t.firstModel))},null,8,["string","style"]),i.createVNode(y,{string:"Все","font-size":"12px",padding:"0",style:i.normalizeStyle(c()),onClick:p[1]||(p[1]=g=>h())},null,8,["style"]),i.createVNode(y,{string:t.secondModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(c(t.secondModel)),onClick:p[2]||(p[2]=g=>h(t.secondModel))},null,8,["string","style"])]),i.createElementVNode("div",Ep,[i.createElementVNode("div",{class:i.normalizeClass(["switch-knob1",{active:t.firstModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(r()),onClick:p[3]||(p[3]=g=>h(t.firstModel))},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob2",{active:!i.unref(u)}]),style:i.normalizeStyle(s()),onClick:p[4]||(p[4]=g=>h())},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob3",{active:t.secondModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(a()),onClick:p[5]||(p[5]=g=>h(t.secondModel))},null,6),p[6]||(p[6]=i.createElementVNode("div",{class:"switch-axis"},null,-1)),p[7]||(p[7]=i.createElementVNode("div",{class:"switch-axis-dash1"},null,-1)),p[8]||(p[8]=i.createElementVNode("div",{class:"switch-axis-dash2"},null,-1)),p[9]||(p[9]=i.createElementVNode("div",{class:"switch-axis-dash3"},null,-1))])])}}}),[["__scopeId","data-v-4776a738"]]),vp={},Mp={class:"flex"};function Bp(t,e){return i.openBlock(),i.createElementBlock("div",Mp,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const Ua=M(vp,[["render",Bp],["__scopeId","data-v-4d1abb74"]]),Wa=M(i.defineComponent({__name:"ToggleInfoItem",props:{title:{type:String,required:!0},content:{type:String,required:!0}},emits:["submit"],setup(t,{emit:e}){const n=i.ref(!1),o=e,r=async()=>{o("submit"),n.value=!n.value};return(s,a)=>{const c=we,d=pe,u=Wt,h=st;return i.openBlock(),i.createBlock(h,{title:t.title,icon:"edit-title","with-hover":!0,close:i.unref(n),width:"100%",onKeyupEnter:r},{"open-inside-content":i.withCtx(()=>[i.createVNode(u,{"custom-class":"grid"},{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default",{},void 0,!0),i.createVNode(d,{type:"admin",color:"blue",text:"Сохранить",onClick:r})]),_:3})]),default:i.withCtx(()=>[t.content.length>0?(i.openBlock(),i.createBlock(c,{key:0,string:t.content},null,8,["string"])):(i.openBlock(),i.createBlock(c,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-994f6522"]]),Ip={class:"top-slider-content"},$p={class:"center"},Ga=M(i.defineComponent({__name:"TopSliderContainer",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1}},emits:["toggle"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!0);i.watch(()=>n.toggle,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("toggle",a)};return(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=i.withModifiers(d=>r.value=!0,["prevent"])),c[1]||(c[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(r)?`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`:"0",height:t.sliderOnHeight}),onClick:c[3]||(c[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Ip,[i.createElementVNode("div",$p,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:c[2]||(c[2]=d=>s(!i.unref(r)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-fec4dfde"]]),xp={id:"drop-area",class:"img-container"},Np={key:0},Rp=["src"],Ap={class:"tools-button"},Vp={class:"ins"},Pp={key:1},Fp=["id"],ja=M(i.defineComponent({__name:"UploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{type:X,required:!0},height:{type:Number,default:150},width:{type:Number,default:150},cropRatio:{type:Boolean,default:!0},emitCrop:{type:Boolean,default:!1},defaultRatio:{type:Number,required:!1,default:1}},emits:["crop","removeFile"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(void 0),s=q.CreateGuid(),a=i.ref(!1),c=i.ref(),d=b=>{const I=n.cropRatio?n.defaultRatio:0;Ni.Open(Mn.CreateCropper(b.url,I,n.fileInfo.id)),a.value=!0},u=()=>{N.Dialog.Show({text:"Вы хотите удалить изображение",confirmButtonText:"Удалить",cancelButtonText:"Не удалять"}).then(()=>{r.value=void 0,c.value.clearFiles(),o("removeFile")})},h=b=>{n.fileInfo.setFile(b),n.fileInfo.fileSystemPath&&(r.value=n.fileInfo),a.value=!1,o("crop")};i.onBeforeMount(()=>{n.fileInfo.fileSystemPath&&(r.value=n.fileInfo,r.value.url=n.fileInfo.getFileUrl())});let f=null;i.onMounted(()=>{const b=document.getElementById("drop-area");b&&(b.addEventListener("dragover",I=>{p(I),b.classList.add("drag-over")}),b.addEventListener("dragleave",I=>{p(I),b.classList.remove("drag-over")}),b.addEventListener("dragenter",p),b.addEventListener("dragleave",p),b.addEventListener("drop",g),f=document.getElementById(s))});function p(b){b.preventDefault(),b.stopPropagation()}const y=()=>{f&&f.click()};function g(b){if(b.preventDefault(),!b.dataTransfer)return;const I=b.dataTransfer.files;I.length&&f&&(f.files=I,k())}const k=()=>{if(!f||!f.files||!f.files.length)return;const b=f.files[0];b.url=URL.createObjectURL(b),r.value=b,n.fileInfo.uploadNewFile(b),d(r.value)};return(b,I)=>{const L=pe,O=io;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",xp,[i.unref(r)?(i.openBlock(),i.createElementBlock("div",Np,[i.createElementVNode("div",{class:"img-block",style:i.normalizeStyle({width:t.height*t.defaultRatio-2+"px",height:t.height+"px"})},[i.createElementVNode("img",{class:"el-upload-list__item-thumbnail",src:i.unref(r).url,alt:"upload-image"},null,8,Rp)],4),i.createElementVNode("div",Ap,[i.createElementVNode("div",Vp,[i.createVNode(L,{skin:"text",text:"Изменить","font-size":"20px",width:"300px",margin:"100px 0 0 0",onClick:I[0]||(I[0]=z=>d(i.unref(r)))}),i.createVNode(L,{skin:"text",text:"Удалить","font-size":"20px",width:"300px",margin:"50px 0 0 0",onClick:I[1]||(I[1]=z=>u())})])])])):(i.openBlock(),i.createElementBlock("div",Pp,[i.createElementVNode("div",{class:"add-button",style:i.normalizeStyle({width:t.height*t.defaultRatio-2+"px",height:t.height+"px"})},[i.createVNode(L,{skin:"text",text:"Добавить","font-size":"20px",onClick:y})],4)]))]),i.createElementVNode("input",{id:i.unref(s),type:"file",hidden:"",onChange:k},null,40,Fp),t.withCrop?(i.openBlock(),i.createBlock(O,{key:0,open:i.unref(a),"default-ratio":t.defaultRatio,onCrop:h,onClose:I[2]||(I[2]=z=>a.value=!1)},null,8,["open","default-ratio"])):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-61aa63c7"]]),Tp=["Passport","PassportScan","Inn","Snils"],zp=["PassportsStore","PassportScansStore","InnsStore","SnilssStore"],Dp=["Extract"],Lp=["ExtractsStore"],Op=["AnswerVariant","Field","FieldFill","Form","FormFill","FormSection","SelectedAnswerVariant"],_p=["FieldsStore","AnswerVariantsStore","FieldFillsStore","FormFillsStore","FormSectionsStore","FormsStore","SelectedAnswerVariantsStore"],Za=["ColorTheme"],Hp=[...Tp,...zp,...Za,...Za,...Op,..._p,...Dp,...Lp],qp=["BaseStore","$P","Contact","Static","Button","RouterGuard","Sizes","Human","FileInfo","Statuses","Email","FTSP","Arrays","Axios","brandColors","buildNameNumbers","Cache","CarouselSwipe","ClassHelper","Color","countRating","CreateSortModels","Cursor","DateFormat","DateMask","Dates","DatesFormatter","Dragger","Favourite","Extension","HttpClient","MakeCarousel","moveUp","moveDown","Period","PhoneService","Router","Scheduler","Scroll","Sorter","Strings","Time","TimeFormatter","Token","useConfirmLeavePage","validate","WaitElement","WebSocketClient","Hooks","ValueType","PHelp","FilterModel","SortModel"],Up=["AuthStore","ContactsStore","CropperStore","EmailsStore","FileInfosStore","FTSPPresetsStore","MenusStore","HumansStore","SchemasStore","PhonesStore","SearchStore","UserAccountsStore","ValueTypesStore"],Wp=["Orders"];class Gp extends rn{constructor(){super(...arguments);l(this,"label","Логин");l(this,"name","login");l(this,"validator",new To);l(this,"method",ut.Login);l(this,"id","field-auth-login")}}const jp={install:function(t){t.component("PButton",pe),t.component("PCheckBox",Hn),t.component("PDatePicker",Co),t.component("PFlex",qn),t.component("PInput",qe),t.component("PInputDate",$i),t.component("PInputNumber",ks),t.component("PLeftSlider",Es),t.component("PList",vs),t.component("PListItem",Ms),t.component("PRadio",Bs),t.component("PRightSlider",Is),t.component("PSelect",rt),t.component("PSticky",En),t.component("PString",we),t.component("PTextarea",$s),t.component("PTopSlider",xs),t.component("IconDownload",Vi),t.component("IconFilter",Pi),t.component("ArrowLeft",Ti),t.component("ArrowRight",zi),t.component("DoubleArrowLeft",Di),t.component("DoubleArrowRight",Li),t.component("EllipsisSvg",Oi),t.component("IconArrowLeft",Hs),t.component("IconCheckDefault",_n),t.component("IconClose",qt),t.component("IconEdit",qs),t.component("IconEmail",Us),t.component("IconMove",Ws),t.component("IconPhone",Gs),t.component("IconSearch",Fi),t.component("IconSelectArrow",xi),t.component("CollapseContainer",ka),t.component("CollapseItem",Ea),t.component("VerticalCollapseContainer",va),t.component("PAdd",Ma),t.component("PContainer",oo),t.component("PContainerStickyHead",Ba),t.component("PDel",Ia),t.component("PTabs",$a),t.component("UploaderFile",xa),t.component("AuthForm",vn),t.component("PModal",Ut),t.component("AuthPage",ro),t.component("PageNotFound",so),t.component("AdaptiveContainer",po),t.component("AdaptiveContainerHorizontal",go),t.component("AdminGallery",So),t.component("AuthModal",Ns),t.component("CarouselImages",Rs),t.component("ContactForm",As),t.component("ContextWindow",Vs),t.component("DateInputRangeV2",Fs),t.component("DateInputRange",Ps),t.component("DropList",Ts),t.component("EmailForm",Ri),t.component("FilterCheckbox",zs),t.component("FiltersButtonsSelect",Ds),t.component("FilterSelect",Ls),t.component("FTSPPanel",Os),t.component("GeneralItem",_s),t.component("GridContainer",Wt),t.component("ImageCropper",io),t.component("InfoItem",st),t.component("InfoItemSelectButtons",Sa),t.component("LeftRightContainer",Ca),t.component("MessageBody",Fn),t.component("PAutocomplete",ao),t.component("PDialog",Na),t.component("PhoneForm",Ai),t.component("PLoader",Ra),t.component("PNotification",Aa),t.component("PPagination",Va),t.component("RemoteSearch",Pa),t.component("ResearcheContainer",Fa),t.component("RightSliderContainer",Ta),t.component("RightTabsContainer",za),t.component("RSContainer",Da),t.component("SelectValueType",La),t.component("SingleNameToggleForm",Oa),t.component("SortList",_a),t.component("SortSelect",Ha),t.component("Switch3Pos",qa),t.component("ThemeWrapper",Ua),t.component("ToggleInfoItem",Wa),t.component("TopSliderContainer",Ga),t.component("UploaderImage",ja)}};m.$P=We,m.AdaptiveContainer=po,m.AdaptiveContainerHorizontal=go,m.AdminGallery=So,m.AnswerVariant=et,m.AnswerVariantsStore=Pr,m.Arrays=Ae,m.ArrowLeft=Ti,m.ArrowRight=zi,m.Auth=yi,m.AuthButtonLogin=Zn,m.AuthButtonRegister=Yn,m.AuthForm=vn,m.AuthFormSettings=Do,m.AuthFormStatuses=Se,m.AuthMethods=ut,m.AuthModal=Ns,m.AuthPage=ro,m.AuthStore=Hr,m.Axios=Tt,m.BaseStore=Y,m.Button=Je,m.Cache=ch,m.CarouselImages=Rs,m.CarouselSwipe=dh,m.ClassHelper=v,m.CollapseContainer=ka,m.CollapseItem=Ea,m.Color=hh,m.ColorTheme=zt,m.ColorThemesStore=bu,m.Contact=dt,m.ContactForm=As,m.ContactsStore=qr,m.ContextWindow=Vs,m.CreateSortModels=Po,m.CropperStore=Ni,m.Cursor=mh,m.DateFormat=bt,m.DateInputRange=Ps,m.DateInputRange_v2=Fs,m.DateMask=Ch,m.Dates=Mi,m.DatesFormatter=Ve,m.DoubleArrowLeft=Di,m.DoubleArrowRight=Li,m.Dragger=kh,m.DropList=Ts,m.EllipsisSvg=Oi,m.Email=Ye,m.EmailField=sn,m.EmailForm=Ri,m.EmailsStore=wi,m.Extension=bs,m.Extract=pi,m.ExtractsStore=tu,m.FTSP=ee,m.FTSPPanel=Os,m.FTSPPresetsStore=Wr,m.Favourite=Eh,m.Field=yn,m.FieldFill=pt,m.FieldFillsStore=Fr,m.FieldsStore=Tr,m.FileInfo=X,m.FileInfosStore=Ur,m.FilterCheckbox=zs,m.FilterModel=Wn,m.FilterSelect=Ls,m.FiltersButtonsSelect=Ds,m.Form=Rr,m.FormFill=Vr,m.FormFillsStore=zr,m.FormSection=wn,m.FormSectionsStore=Dr,m.FormsStore=Lr,m.GeneralItem=_s,m.GridContainer=Wt,m.Hooks=sh,m.HttpClient=ae,m.Human=Gn,m.HumansStore=Gr,m.IconArrowLeft=Hs,m.IconCheckDefault=_n,m.IconClose=qt,m.IconDownload=Vi,m.IconEdit=qs,m.IconEmail=Us,m.IconFilter=Pi,m.IconMove=Ws,m.IconPhone=Gs,m.IconSearch=Fi,m.IconSelectArrow=xi,m.ImageCropper=io,m.InfoItem=st,m.InfoItemSelectButtons=Sa,m.Inn=Lo,m.InnsStore=jd,m.LeftRightContainer=Ca,m.LoginField=Gp,m.M=_r,m.MakeCarousel=Ss,m.MenusStore=Kr,m.MessageBody=Fn,m.Orders=Pe,m.PAdd=Ma,m.PAutocomplete=ao,m.PButton=pe,m.PCheckBox=Hn,m.PContainer=oo,m.PContainerStickyHead=Ba,m.PDatePicker=Co,m.PDel=Ia,m.PDialog=Na,m.PFlex=qn,m.PHelp=N,m.PInput=qe,m.PInputDate=$i,m.PInputNumber=ks,m.PLeftSlider=Es,m.PList=vs,m.PListItem=Ms,m.PLoader=Ra,m.PModal=Ut,m.PNotification=Aa,m.PPagination=Va,m.PRadio=Bs,m.PRightSlider=Is,m.PSelect=rt,m.PSticky=En,m.PString=we,m.PTabs=$a,m.PTextarea=$s,m.PTopSlider=xs,m.PageNotFound=so,m.Passport=Jn,m.PassportScan=xt,m.PassportScansStore=Yd,m.PassportsStore=Xd,m.PasswordField=an,m.PasswordRepeatField=zo,m.Period=Ot,m.PhoneForm=Ai,m.PhoneService=Bi,m.PhonesStore=Si,m.RSContainer=Da,m.RemoteSearch=Pa,m.ResearcheContainer=Fa,m.RightSliderContainer=Ta,m.RightTabsContainer=za,m.Router=ot,m.RouterGuard=Ih,m.Scheduler=$h,m.SchemasStore=ts,m.Scroll=Nh,m.SearchStore=Sn,m.SelectValueType=La,m.SelectedAnswerVariant=nt,m.SelectedAnswerVariantsStore=Or,m.SingleNameToggleForm=Oa,m.Sizes=On,m.Snils=Oo,m.SnilssStore=Kd,m.SortList=_a,m.SortModel=nn,m.SortSelect=Ha,m.Sorter=Cs,m.Static=Ii,m.Statuses=ue,m.Strings=q,m.Switch3Pos=qa,m.ThemeWrapper=Ua,m.Time=_,m.Timer=Ht,m.ToggleInfoItem=Wa,m.Token=Ft,m.TopSliderContainer=Ga,m.UploaderFile=xa,m.UploaderImage=ja,m.UserAccountsStore=os,m.ValueType=jn,m.ValueTypesStore=rs,m.VerticalCollapseContainer=va,m.WaitElement=Ah,m.WebSocketClient=Ph,m.brandColors=ah,m.buildNameNumbers=lh,m.classesNames=pl,m.countRating=fh,m.modulesNames=Hp,m.moveDown=Mh,m.moveUp=vh,m.servicesComponents=jp,m.servicesNames=qp,m.servicesStoresNames=Up,m.typesNames=Wp,m.useConfirmLeavePage=ys,m.validate=Rh,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});