sprof 0.0.150 → 0.0.152
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.
- package/dist/core/components/AuthModal.vue.d.ts +33 -3
- package/dist/core/components/atoms/PDatePicker/PDatePicker.vue.d.ts +1 -1
- package/dist/core/components/index.d.ts +2 -2
- package/dist/core/components/molecules/PNotify/PNotify.stories.d.ts +242 -0
- package/dist/core/components/organisms/AuthForm/AuthForm.stories.d.ts +9 -0
- package/dist/core/components/organisms/AuthForm/AuthForm.vue.d.ts +9 -0
- package/dist/core/components/organisms/PModal.vue.d.ts +2 -2
- package/dist/core/ui/Notify.d.ts +25 -10
- package/dist/core/ui/index.d.ts +17 -16
- package/dist/sprof.js +1410 -1389
- package/dist/sprof.umd.cjs +12 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
- /package/dist/core/components/{PNotification.vue.d.ts → molecules/PNotify/PNotify.vue.d.ts} +0 -0
package/dist/sprof.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(E,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(E=typeof globalThis<"u"?globalThis:E||self,i(E.sprof={},E.Vue))})(this,function(E,i){"use strict";var rp=Object.defineProperty;var op=(E,i,Re)=>i in E?rp(E,i,{enumerable:!0,configurable:!0,writable:!0,value:Re}):E[i]=Re;var c=(E,i,Re)=>op(E,typeof i!="symbol"?i+"":i,Re);var Ye,be,qt,H,Ce,Je;var Re=typeof document<"u"?document.currentScript:null,se=(t=>(t.Login="login",t.Register="register",t.Restore="restore",t.Refresh="refresh",t))(se||{}),fe=(t=>(t.Primary="primary",t.Success="success",t.Warning="warning",t.Error="error",t.Info="info",t))(fe||{});class Ke{constructor(e,n,r,o){c(this,"text","Сохранить");c(this,"type",fe.Success);c(this,"condition",!0);c(this,"action");c(this,"id","button");c(this,"disabled",!1);this.text=e,this.type=r,this.action=n,o!==void 0&&(this.condition=o)}static Primary(e,n,r){return new Ke(e,n,fe.Primary,r)}static Success(e,n,r){return new Ke(e,n,fe.Success,r)}static Warning(e,n,r){return new Ke(e,n,fe.Warning,r)}static Error(e,n,r){return new Ke(e,n,fe.Error,r)}}class Wt extends Ke{constructor(){super();c(this,"id","auth-button");c(this,"chunk",se.Login);c(this,"text","");c(this,"isSubmit",!1);c(this,"isLink",!0)}GetChunk(){return this.chunk}}let Tn=class extends Wt{constructor(){super(...arguments);c(this,"id","auth-button-login");c(this,"text","Войти");c(this,"isSubmit",!1);c(this,"chunk",se.Login)}};class ji extends Wt{constructor(){super(...arguments);c(this,"id","auth-button-refresh");c(this,"text","Обновить пароль");c(this,"isSubmit",!1);c(this,"chunk",se.Refresh)}}class Fn extends Wt{constructor(){super(...arguments);c(this,"id","auth-button-register");c(this,"text","Зарегистрироваться");c(this,"isSubmit",!1);c(this,"chunk",se.Register)}}class jt extends Wt{constructor(){super(...arguments);c(this,"id","auth-button-restore");c(this,"text","Забыли пароль?");c(this,"isSubmit",!1);c(this,"chunk",se.Restore)}}class Gi{constructor(){c(this,"value","");c(this,"label","");c(this,"placeholder","");c(this,"validator")}Validate(){return this.validator?(this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}class Gt extends Gi{constructor(){super(...arguments);c(this,"method");c(this,"id","field-auth");c(this,"name","")}}var dt=(t=>(t.Login="login",t.Email="email",t.Phone="phone",t.VK="vk",t.ESIA="esia",t))(dt||{});const za=/\S+@\S+\.\S+/;class Zi{constructor(){c(this,"errors",[])}validate(e){return(e===""||!e)&&this.errors.push("Введите email"),za.test(e)||this.errors.push("Некорректный email"),this.errors}}class Zt extends Gt{constructor(){super(...arguments);c(this,"id","field-auth-email");c(this,"label","Email");c(this,"name","email");c(this,"placeholder","Введите email");c(this,"validator",new Zi);c(this,"method",dt.Email)}}class Ta{constructor(){c(this,"errors",[]);c(this,"length",6)}validate(e){return e===""||!e?(this.errors.push("Введите пароль"),this.errors):(e.length<this.length&&this.errors.push("Пароль недостаточной длины"),this.errors)}}class Xt extends Gt{constructor(){super(...arguments);c(this,"label","Пароль");c(this,"validator",new Ta);c(this,"name","password");c(this,"placeholder","Введите пароль");c(this,"id","field-auth-password")}}class Xi extends Gt{constructor(){super(...arguments);c(this,"label","Повторите пароль");c(this,"id","field-auth-password-repeat")}}const Yi={allowRestore:!1,[se.Login]:{methods:[dt.Email],title:"Вход в систему",action:"login",buttons:[new Tn,new Fn,new jt],fields:[new Zt,new Xt],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[se.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new Fn,new Tn,new jt],fields:[new Zt,new Xt,new Xi],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[se.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[new jt],fields:[new Zt]},[se.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[new ji],fields:[new Xt]}};let Fa=class{constructor(){c(this,"settings",Yi);c(this,"chunk",se.Login);c(this,"selectedMethod",dt.Email)}async Block(e){await e()}GetValues(){const e=this.GetFields(),n=new Map;return e.forEach(r=>{r.value&&n.set(r.name,r.value)}),Object.fromEntries(n)}Validate(){return[]}GetFields(){return this.GetCurSet().fields.filter(e=>!e.method||e.method===this.selectedMethod)}GetMethods(){return this.GetCurSet().methods}Chunk(){return this.chunk}get Settings(){return this.settings}GetCurSet(){return this.settings[this.chunk]}get IsLogin(){return this.chunk===se.Login}get IsRegister(){return this.chunk===se.Register}get IsRestore(){return this.chunk===se.Restore}get IsRefresh(){return this.chunk===se.Refresh}SetChunk(e){this.chunk=e}GetTitle(){return this.GetCurSet().title}GetButtons(){const e=this.GetCurSet().buttons;return e.forEach(n=>{n.isSubmit=!1}),e[0].isSubmit=!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.chunk=se.Login}};class Oa{constructor(){c(this,"visible",!1);c(this,"closable",!1)}get Closable(){return this.closable}get Visible(){return this.visible}Close(){this.visible=!1}Open(e){e&&(this.closable=!0),this.visible=!0}}class Ji{constructor(){c(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class Qi extends Ji{constructor(){super(...arguments);c(this,"type",fe.Success);c(this,"text","");c(this,"title","")}showMessage(n,r){this.hide(),this.type=r,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,fe.Info)}Success(n){this.showMessage(n,fe.Success)}Error(n){this.showMessage(n,fe.Error)}Warning(n){this.showMessage(n,fe.Warning)}FormMessage(n){let r="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const o of Object.keys(n))n[o][0]&&n[o][0].message&&(r+=`<li>${n[o][0].message}</li>`);return r+="</ul>",r}}class On{static Get(e,n,r="-"){return!e||!n?"":`${e}${r}${n}`}static In(e,n,r){return e>=n&&e<=r}static Intersects(e,n,r,o){return e===r||n===o||e>r&&e<o||n>r&&n<o||n>o&&e<r}}const Ki=1e3,er=60*Ki,Ln=60*er;var Bt=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(Bt||{});const Yt={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class D{static S(e){return Ki*e}static M(e){return er*e}static H(e){return Ln*e}static D(e){return Ln*e}static W(e){return Ln*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const n=D.SplitHM(e);return n.length>1?D.HtoM(n[0])+n[1]:D.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=D.SplitHM(e);return D.ConcatHM(n[0],n[1])}static AddMtoHM(e,n){const r=new Date,o=D.SplitHM(e);r.setHours(o[0],o[1],0,0);const s=new Date(r.getTime()+n*6e4),a=s.getHours(),d=s.getMinutes();return D.ConcatHM(a,d)}static ConcatHM(e,n){return`${e}:${D.NormalizeTime(n)}`}static DiffM(e,n){return D.Gt(n,e)?D.HMtoM(n)-D.HMtoM(e):D.HMtoM(e)-D.HMtoM(n)}static GetPeriod(e,n){return On.Get(e,n)}static Gt(e,n){return D.HMtoM(e)>D.HMtoM(n)}static GtOrEq(e,n){return D.Gt(e,n)||D.Eq(e,n)}static Eq(e,n){return D.HMtoM(e)===D.HMtoM(n)}static PeriodInPeriod(e,n,r,o){return D.HMtoM(e)>=D.HMtoM(r)&&D.HMtoM(n)<=D.HMtoM(o)}static PeriodsIntersects(e,n,r,o){return On.Intersects(D.HMtoM(e),D.HMtoM(n),D.HMtoM(r),D.HMtoM(o))}}class Mt{static Wait(e,n){return new Promise(r=>setTimeout(()=>r(n),e))}static WaitS(e,n){return Mt.Wait(D.S(e),n)}static WaitM(e,n){return Mt.Wait(D.M(e),n)}}class La extends Qi{constructor(){super(...arguments);c(this,"duration",D.S(3))}showMessage(n,r){super.showMessage(n,r),typeof n!="string"&&(this.duration=n.duration??this.duration),Mt.Wait(this.GetDuration()).then(()=>super.hide())}GetDuration(){return this.duration}Dev(){const n="В режиме разработки",r=fe.Warning;super.showMessage(n,r)}Save(){const n="Изменения успешно сохранены",r=fe.Success;super.showMessage(n,r)}}const pe=new La;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 Se=(t=>(t.User="user",t.AccessToken="accessToken",t.RefreshToken="refreshToken",t))(Se||{});class Da{set(e){this.setAccessToken(e.accessToken),this.setRefreshToken(e.refreshToken)}getAccessToken(){return $e.Get(Se.AccessToken)}getRefreshToken(){return $e.Get(Se.RefreshToken)}setAccessToken(e){$e.Set(Se.AccessToken,e)}setRefreshToken(e){$e.Set(Se.RefreshToken,e)}reset(){$e.Remove(Se.AccessToken),$e.Remove(Se.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class Ha{constructor(){c(this,"user");c(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(Se.User)),this.user}set(e){this.userConstructor&&(this.user=new this.userConstructor(e),$e.Set(Se.User,this.user))}reset(){this.user=void 0,$e.Remove(Se.User)}actualize(){const e=$e.Get(Se.User);e&&this.set(e)}}class qa{constructor(){c(this,"isAuth",!1);c(this,"user",new Ha);c(this,"tokens",new Da);c(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)}SetUser(e){this.user.set(e)}SetState(e){this.SetUser(e.user),this.tokens.set(e.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){pe.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.tokens.actualize(),this.tokens.getAccessToken()){this.isAuth=!0;return}this.Logout()}}const St=class St{constructor(){c(this,"form",i.reactive(new Fa));c(this,"status",i.reactive(new qa));c(this,"modal",i.reactive(new Oa));if(St.instance)return St.instance;St.instance=this,Object.freeze(this)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}};c(St,"instance");let Dn=St;const Ne=new Dn;var tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*! *****************************************************************************
|
|
1
|
+
(function(E,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(E=typeof globalThis<"u"?globalThis:E||self,i(E.sprof={},E.Vue))})(this,function(E,i){"use strict";var op=Object.defineProperty;var sp=(E,i,Re)=>i in E?op(E,i,{enumerable:!0,configurable:!0,writable:!0,value:Re}):E[i]=Re;var c=(E,i,Re)=>sp(E,typeof i!="symbol"?i+"":i,Re);var Ye,be,qt,H,Ce,Je;var Re=typeof document<"u"?document.currentScript:null,se=(t=>(t.Login="login",t.Register="register",t.Restore="restore",t.Refresh="refresh",t))(se||{}),fe=(t=>(t.Primary="primary",t.Success="success",t.Warning="warning",t.Error="error",t.Info="info",t))(fe||{});class Ke{constructor(e,n,r,o){c(this,"text","Сохранить");c(this,"type",fe.Success);c(this,"condition",!0);c(this,"action");c(this,"id","button");c(this,"disabled",!1);this.text=e,this.type=r,this.action=n,o!==void 0&&(this.condition=o)}static Primary(e,n,r){return new Ke(e,n,fe.Primary,r)}static Success(e,n,r){return new Ke(e,n,fe.Success,r)}static Warning(e,n,r){return new Ke(e,n,fe.Warning,r)}static Error(e,n,r){return new Ke(e,n,fe.Error,r)}}class _t extends Ke{constructor(){super();c(this,"id","auth-button");c(this,"chunk",se.Login);c(this,"text","");c(this,"isSubmit",!1);c(this,"isLink",!0)}GetChunk(){return this.chunk}}let Fn=class extends _t{constructor(){super(...arguments);c(this,"id","auth-button-login");c(this,"text","Войти");c(this,"isSubmit",!1);c(this,"chunk",se.Login)}};class Xi extends _t{constructor(){super(...arguments);c(this,"id","auth-button-refresh");c(this,"text","Обновить пароль");c(this,"isSubmit",!1);c(this,"chunk",se.Refresh)}}class On extends _t{constructor(){super(...arguments);c(this,"id","auth-button-register");c(this,"text","Зарегистрироваться");c(this,"isSubmit",!1);c(this,"chunk",se.Register)}}class jt extends _t{constructor(){super(...arguments);c(this,"id","auth-button-restore");c(this,"text","Забыли пароль?");c(this,"isSubmit",!1);c(this,"chunk",se.Restore)}}class Yi{constructor(){c(this,"value","");c(this,"label","");c(this,"placeholder","");c(this,"validator")}Validate(){return this.validator?(this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}class Gt extends Yi{constructor(){super(...arguments);c(this,"method");c(this,"id","field-auth");c(this,"name","")}}var dt=(t=>(t.Login="login",t.Email="email",t.Phone="phone",t.VK="vk",t.ESIA="esia",t))(dt||{});const za=/\S+@\S+\.\S+/;class Ji{constructor(){c(this,"errors",[])}validate(e){return(e===""||!e)&&this.errors.push("Введите email"),za.test(e)||this.errors.push("Некорректный email"),this.errors}}class Zt extends Gt{constructor(){super(...arguments);c(this,"id","field-auth-email");c(this,"label","Email");c(this,"name","email");c(this,"placeholder","Введите email");c(this,"validator",new Ji);c(this,"method",dt.Email)}}class Ta{constructor(){c(this,"errors",[]);c(this,"length",6)}validate(e){return e===""||!e?(this.errors.push("Введите пароль"),this.errors):(e.length<this.length&&this.errors.push("Пароль недостаточной длины"),this.errors)}}class Xt extends Gt{constructor(){super(...arguments);c(this,"label","Пароль");c(this,"validator",new Ta);c(this,"name","password");c(this,"placeholder","Введите пароль");c(this,"id","field-auth-password")}}class Qi extends Gt{constructor(){super(...arguments);c(this,"label","Повторите пароль");c(this,"id","field-auth-password-repeat")}}const Ki={allowRestore:!1,[se.Login]:{methods:[dt.Email],title:"Вход в систему",action:"login",buttons:[new Fn,new On,new jt],fields:[new Zt,new Xt],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[se.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new On,new Fn,new jt],fields:[new Zt,new Xt,new Qi],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[se.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[new jt],fields:[new Zt]},[se.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[new Xi],fields:[new Xt]}};let Fa=class{constructor(){c(this,"settings",Ki);c(this,"chunk",se.Login);c(this,"selectedMethod",dt.Email)}async Block(e){await e()}GetValues(){const e=this.GetFields(),n=new Map;return e.forEach(r=>{r.value&&n.set(r.name,r.value)}),Object.fromEntries(n)}Validate(){return[]}GetFields(){return this.GetCurSet().fields.filter(e=>!e.method||e.method===this.selectedMethod)}GetMethods(){return this.GetCurSet().methods}Chunk(){return this.chunk}get Settings(){return this.settings}GetCurSet(){return this.settings[this.chunk]}get IsLogin(){return this.chunk===se.Login}get IsRegister(){return this.chunk===se.Register}get IsRestore(){return this.chunk===se.Restore}get IsRefresh(){return this.chunk===se.Refresh}SetChunk(e){this.chunk=e}GetTitle(){return this.GetCurSet().title}GetButtons(){const e=this.GetCurSet().buttons;return e.forEach(n=>{n.isSubmit=!1}),e[0].isSubmit=!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.SetChunk(se.Login),this.ResetFields()}};class Oa{constructor(){c(this,"visible",!1);c(this,"closable",!1)}get Closable(){return this.closable}get Visible(){return this.visible}Close(){this.visible=!1}Open(e){e&&(this.closable=!0),this.visible=!0}}class er{constructor(){c(this,"visible",!1)}hide(){console.log("hide"),this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class tr extends er{constructor(){super(...arguments);c(this,"type",fe.Success);c(this,"text","");c(this,"title","")}showMessage(n,r){this.hide(),this.type=r,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,fe.Info)}Success(n){this.showMessage(n,fe.Success)}Error(n){this.showMessage(n,fe.Error)}Warning(n){this.showMessage(n,fe.Warning)}FormMessage(n){let r="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const o of Object.keys(n))n[o][0]&&n[o][0].message&&(r+=`<li>${n[o][0].message}</li>`);return r+="</ul>",r}}class Ln{static Get(e,n,r="-"){return!e||!n?"":`${e}${r}${n}`}static In(e,n,r){return e>=n&&e<=r}static Intersects(e,n,r,o){return e===r||n===o||e>r&&e<o||n>r&&n<o||n>o&&e<r}}const nr=1e3,ir=60*nr,Dn=60*ir;var Bt=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(Bt||{});const Yt={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class D{static S(e){return nr*e}static M(e){return ir*e}static H(e){return Dn*e}static D(e){return Dn*e}static W(e){return Dn*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const n=D.SplitHM(e);return n.length>1?D.HtoM(n[0])+n[1]:D.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=D.SplitHM(e);return D.ConcatHM(n[0],n[1])}static AddMtoHM(e,n){const r=new Date,o=D.SplitHM(e);r.setHours(o[0],o[1],0,0);const s=new Date(r.getTime()+n*6e4),a=s.getHours(),d=s.getMinutes();return D.ConcatHM(a,d)}static ConcatHM(e,n){return`${e}:${D.NormalizeTime(n)}`}static DiffM(e,n){return D.Gt(n,e)?D.HMtoM(n)-D.HMtoM(e):D.HMtoM(e)-D.HMtoM(n)}static GetPeriod(e,n){return Ln.Get(e,n)}static Gt(e,n){return D.HMtoM(e)>D.HMtoM(n)}static GtOrEq(e,n){return D.Gt(e,n)||D.Eq(e,n)}static Eq(e,n){return D.HMtoM(e)===D.HMtoM(n)}static PeriodInPeriod(e,n,r,o){return D.HMtoM(e)>=D.HMtoM(r)&&D.HMtoM(n)<=D.HMtoM(o)}static PeriodsIntersects(e,n,r,o){return Ln.Intersects(D.HMtoM(e),D.HMtoM(n),D.HMtoM(r),D.HMtoM(o))}}class Mt{static Wait(e,n){return new Promise(r=>setTimeout(()=>r(n),e))}static WaitS(e,n){return Mt.Wait(D.S(e),n)}static WaitM(e,n){return Mt.Wait(D.M(e),n)}}class La extends tr{constructor(){super(...arguments);c(this,"duration",D.S(3));c(this,"instance")}showMessage(n,r){super.showMessage(n,r),this.visible=!0,typeof n!="string"&&(this.duration=n.duration??this.duration),Mt.Wait(this.GetDuration()).then(()=>super.hide())}GetDuration(){return this.duration}Dev(){const n="В режиме разработки",r=fe.Warning;super.showMessage(n,r)}Save(){const n="Изменения успешно сохранены",r=fe.Success;super.showMessage(n,r)}}const Da=new La,pe=i.reactive(Da);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 Se=(t=>(t.User="user",t.AccessToken="accessToken",t.RefreshToken="refreshToken",t))(Se||{});class Ha{set(e){this.setAccessToken(e.accessToken),this.setRefreshToken(e.refreshToken)}getAccessToken(){return $e.Get(Se.AccessToken)}getRefreshToken(){return $e.Get(Se.RefreshToken)}setAccessToken(e){$e.Set(Se.AccessToken,e)}setRefreshToken(e){$e.Set(Se.RefreshToken,e)}reset(){$e.Remove(Se.AccessToken),$e.Remove(Se.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class qa{constructor(){c(this,"user");c(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(Se.User)),this.user}set(e){this.userConstructor&&(this.user=new this.userConstructor(e),$e.Set(Se.User,this.user))}reset(){this.user=void 0,$e.Remove(Se.User)}actualize(){const e=$e.Get(Se.User);e&&this.set(e)}}class Ua{constructor(){c(this,"isAuth",!1);c(this,"user",new qa);c(this,"tokens",new Ha);c(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)}SetUser(e){this.user.set(e)}SetState(e){this.SetUser(e.user),this.tokens.set(e.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){pe.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.tokens.actualize(),this.tokens.getAccessToken()){this.isAuth=!0;return}this.Logout()}}const St=class St{constructor(){c(this,"form",i.reactive(new Fa));c(this,"status",i.reactive(new Ua));c(this,"modal",i.reactive(new Oa));if(St.instance)return St.instance;St.instance=this,Object.freeze(this)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}};c(St,"instance");let Hn=St;const Ne=new Hn;var rr=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 nr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof tr=="object"?tr:typeof self=="object"?self:typeof this=="object"?this:d(),r=o(t);typeof n.Reflect<"u"&&(r=o(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function o(l,u){return function(h,f){Object.defineProperty(l,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 d(){return s()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",l={__proto__:[]}instanceof Array,u=!d&&!l,h={create:d?function(){return _i(Object.create(null))}:l?function(){return _i({__proto__:null})}:function(){return _i({})},has:u?function(g,y){return r.call(g,y)}:function(g,y){return y in g},get:u?function(g,y){return r.call(g,y)?g[y]:void 0}:function(g,y){return g[y]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Km(),p=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:ep(),C=typeof WeakMap=="function"?WeakMap:tp(),S=o?Symbol.for("@reflect-metadata:registry"):void 0,w=Ym(),R=Jm(w);function O(g,y,k,B){if(T(k)){if(!Ea(g))throw new TypeError;if(!xa(y))throw new TypeError;return qm(g,y)}else{if(!Ea(g))throw new TypeError;if(!te(y))throw new TypeError;if(!te(B)&&!T(B)&&!xt(B))throw new TypeError;return xt(B)&&(B=void 0),k=De(k),Um(g,y,k,B)}}e("decorate",O);function L(g,y){function k(B,V){if(!te(B))throw new TypeError;if(!T(V)&&!Zm(V))throw new TypeError;wa(g,y,B,V)}return k}e("metadata",L);function P(g,y,k,B){if(!te(k))throw new TypeError;return T(B)||(B=De(B)),wa(g,y,k,B)}e("defineMetadata",P);function j(g,y,k){if(!te(y))throw new TypeError;return T(k)||(k=De(k)),pa(g,y,k)}e("hasMetadata",j);function Be(g,y,k){if(!te(y))throw new TypeError;return T(k)||(k=De(k)),Hi(g,y,k)}e("hasOwnMetadata",Be);function Me(g,y,k){if(!te(y))throw new TypeError;return T(k)||(k=De(k)),ga(g,y,k)}e("getMetadata",Me);function Qe(g,y,k){if(!te(y))throw new TypeError;return T(k)||(k=De(k)),ya(g,y,k)}e("getOwnMetadata",Qe);function Et(g,y){if(!te(g))throw new TypeError;return T(y)||(y=De(y)),ba(g,y)}e("getMetadataKeys",Et);function Pn(g,y){if(!te(g))throw new TypeError;return T(y)||(y=De(y)),Ca(g,y)}e("getOwnMetadataKeys",Pn);function Hm(g,y,k){if(!te(y))throw new TypeError;if(T(k)||(k=De(k)),!te(y))throw new TypeError;T(k)||(k=De(k));var B=Ut(y,k,!1);return T(B)?!1:B.OrdinaryDeleteMetadata(g,y,k)}e("deleteMetadata",Hm);function qm(g,y){for(var k=g.length-1;k>=0;--k){var B=g[k],V=B(y);if(!T(V)&&!xt(V)){if(!xa(V))throw new TypeError;y=V}}return y}function Um(g,y,k,B){for(var V=g.length-1;V>=0;--V){var oe=g[V],ne=oe(y,k,B);if(!T(ne)&&!xt(ne)){if(!te(ne))throw new TypeError;B=ne}}return B}function pa(g,y,k){var B=Hi(g,y,k);if(B)return!0;var V=Ui(y);return xt(V)?!1:pa(g,V,k)}function Hi(g,y,k){var B=Ut(y,k,!1);return T(B)?!1:ka(B.OrdinaryHasOwnMetadata(g,y,k))}function ga(g,y,k){var B=Hi(g,y,k);if(B)return ya(g,y,k);var V=Ui(y);if(!xt(V))return ga(g,V,k)}function ya(g,y,k){var B=Ut(y,k,!1);if(!T(B))return B.OrdinaryGetOwnMetadata(g,y,k)}function wa(g,y,k,B){var V=Ut(k,B,!0);V.OrdinaryDefineOwnMetadata(g,y,k,B)}function ba(g,y){var k=Ca(g,y),B=Ui(g);if(B===null)return k;var V=ba(B,y);if(V.length<=0)return k;if(k.length<=0)return V;for(var oe=new p,ne=[],q=0,M=k;q<M.length;q++){var $=M[q],I=oe.has($);I||(oe.add($),ne.push($))}for(var A=0,U=V;A<U.length;A++){var $=U[A],I=oe.has($);I||(oe.add($),ne.push($))}return ne}function Ca(g,y){var k=Ut(g,y,!1);return k?k.OrdinaryOwnMetadataKeys(g,y):[]}function Sa(g){if(g===null)return 1;switch(typeof g){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return g===null?1:6;default:return 6}}function T(g){return g===void 0}function xt(g){return g===null}function _m(g){return typeof g=="symbol"}function te(g){return typeof g=="object"?g!==null:typeof g=="function"}function Wm(g,y){switch(Sa(g)){case 0:return g;case 1:return g;case 2:return g;case 3:return g;case 4:return g;case 5:return g}var k="string",B=Ba(g,s);if(B!==void 0){var V=B.call(g,k);if(te(V))throw new TypeError;return V}return jm(g)}function jm(g,y){var k,B;{var V=g.toString;if(Vn(V)){var B=V.call(g);if(!te(B))return B}var k=g.valueOf;if(Vn(k)){var B=k.call(g);if(!te(B))return B}}throw new TypeError}function ka(g){return!!g}function Gm(g){return""+g}function De(g){var y=Wm(g);return _m(y)?y:Gm(y)}function Ea(g){return Array.isArray?Array.isArray(g):g instanceof Object?g instanceof Array:Object.prototype.toString.call(g)==="[object Array]"}function Vn(g){return typeof g=="function"}function xa(g){return typeof g=="function"}function Zm(g){switch(Sa(g)){case 3:return!0;case 4:return!0;default:return!1}}function qi(g,y){return g===y||g!==g&&y!==y}function Ba(g,y){var k=g[y];if(k!=null){if(!Vn(k))throw new TypeError;return k}}function Ma(g){var y=Ba(g,a);if(!Vn(y))throw new TypeError;var k=y.call(g);if(!te(k))throw new TypeError;return k}function Ra(g){return g.value}function $a(g){var y=g.next();return y.done?!1:y}function Ia(g){var y=g.return;y&&y.call(g)}function Ui(g){var y=Object.getPrototypeOf(g);if(typeof g!="function"||g===f||y!==f)return y;var k=g.prototype,B=k&&Object.getPrototypeOf(k);if(B==null||B===Object.prototype)return y;var V=B.constructor;return typeof V!="function"||V===g?y:V}function Xm(){var g;!T(S)&&typeof n.Reflect<"u"&&!(S in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(g=Qm(n.Reflect));var y,k,B,V=new C,oe={registerProvider:ne,getProvider:M,setProvider:I};return oe;function ne(A){if(!Object.isExtensible(oe))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case g===A:break;case T(y):y=A;break;case y===A:break;case T(k):k=A;break;case k===A:break;default:B===void 0&&(B=new p),B.add(A);break}}function q(A,U){if(!T(y)){if(y.isProviderFor(A,U))return y;if(!T(k)){if(k.isProviderFor(A,U))return y;if(!T(B))for(var Z=Ma(B);;){var J=$a(Z);if(!J)return;var ve=Ra(J);if(ve.isProviderFor(A,U))return Ia(Z),ve}}}if(!T(g)&&g.isProviderFor(A,U))return g}function M(A,U){var Z=V.get(A),J;return T(Z)||(J=Z.get(U)),T(J)&&(J=q(A,U),T(J)||(T(Z)&&(Z=new m,V.set(A,Z)),Z.set(U,J))),J}function $(A){if(T(A))throw new TypeError;return y===A||k===A||!T(B)&&B.has(A)}function I(A,U,Z){if(!$(Z))throw new Error("Metadata provider not registered.");var J=M(A,U);if(J!==Z){if(!T(J))return!1;var ve=V.get(A);T(ve)&&(ve=new m,V.set(A,ve)),ve.set(U,Z)}return!0}}function Ym(){var g;return!T(S)&&te(n.Reflect)&&Object.isExtensible(n.Reflect)&&(g=n.Reflect[S]),T(g)&&(g=Xm()),!T(S)&&te(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,S,{enumerable:!1,configurable:!1,writable:!1,value:g}),g}function Jm(g){var y=new C,k={isProviderFor:function($,I){var A=y.get($);return T(A)?!1:A.has(I)},OrdinaryDefineOwnMetadata:ne,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:oe,OrdinaryOwnMetadataKeys:q,OrdinaryDeleteMetadata:M};return w.registerProvider(k),k;function B($,I,A){var U=y.get($),Z=!1;if(T(U)){if(!A)return;U=new m,y.set($,U),Z=!0}var J=U.get(I);if(T(J)){if(!A)return;if(J=new m,U.set(I,J),!g.setProvider($,I,k))throw U.delete(I),Z&&y.delete($),new Error("Wrong provider for target.")}return J}function V($,I,A){var U=B(I,A,!1);return T(U)?!1:ka(U.has($))}function oe($,I,A){var U=B(I,A,!1);if(!T(U))return U.get($)}function ne($,I,A,U){var Z=B(A,U,!0);Z.set($,I)}function q($,I){var A=[],U=B($,I,!1);if(T(U))return A;for(var Z=U.keys(),J=Ma(Z),ve=0;;){var Aa=$a(J);if(!Aa)return A.length=ve,A;var np=Ra(Aa);try{A[ve]=np}catch(ip){try{Ia(J)}finally{throw ip}}ve++}}function M($,I,A){var U=B(I,A,!1);if(T(U)||!U.delete($))return!1;if(U.size===0){var Z=y.get(I);T(Z)||(Z.delete(A),Z.size===0&&y.delete(Z))}return!0}}function Qm(g){var y=g.defineMetadata,k=g.hasOwnMetadata,B=g.getOwnMetadata,V=g.getOwnMetadataKeys,oe=g.deleteMetadata,ne=new C,q={isProviderFor:function(M,$){var I=ne.get(M);return!T(I)&&I.has($)?!0:V(M,$).length?(T(I)&&(I=new p,ne.set(M,I)),I.add($),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:V,OrdinaryDeleteMetadata:oe};return q}function Ut(g,y,k){var B=w.getProvider(g,y);if(!T(B))return B;if(k){if(w.setProvider(g,y,R))return R;throw new Error("Illegal state.")}}function Km(){var g={},y=[],k=function(){function q(M,$,I){this._index=0,this._keys=M,this._values=$,this._selector=I}return q.prototype["@@iterator"]=function(){return this},q.prototype[a]=function(){return this},q.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var $=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:$,done:!1}}return{value:void 0,done:!0}},q.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),M},q.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:M,done:!0}},q}(),B=function(){function q(){this._keys=[],this._values=[],this._cacheKey=g,this._cacheIndex=-2}return Object.defineProperty(q.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),q.prototype.has=function(M){return this._find(M,!1)>=0},q.prototype.get=function(M){var $=this._find(M,!1);return $>=0?this._values[$]:void 0},q.prototype.set=function(M,$){var I=this._find(M,!0);return this._values[I]=$,this},q.prototype.delete=function(M){var $=this._find(M,!1);if($>=0){for(var I=this._keys.length,A=$+1;A<I;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,qi(M,this._cacheKey)&&(this._cacheKey=g,this._cacheIndex=-2),!0}return!1},q.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=g,this._cacheIndex=-2},q.prototype.keys=function(){return new k(this._keys,this._values,V)},q.prototype.values=function(){return new k(this._keys,this._values,oe)},q.prototype.entries=function(){return new k(this._keys,this._values,ne)},q.prototype["@@iterator"]=function(){return this.entries()},q.prototype[a]=function(){return this.entries()},q.prototype._find=function(M,$){if(!qi(this._cacheKey,M)){this._cacheIndex=-1;for(var I=0;I<this._keys.length;I++)if(qi(this._keys[I],M)){this._cacheIndex=I;break}}return this._cacheIndex<0&&$&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},q}();return B;function V(q,M){return q}function oe(q,M){return M}function ne(q,M){return[q,M]}}function ep(){var g=function(){function y(){this._map=new m}return Object.defineProperty(y.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),y.prototype.has=function(k){return this._map.has(k)},y.prototype.add=function(k){return this._map.set(k,k),this},y.prototype.delete=function(k){return this._map.delete(k)},y.prototype.clear=function(){this._map.clear()},y.prototype.keys=function(){return this._map.keys()},y.prototype.values=function(){return this._map.keys()},y.prototype.entries=function(){return this._map.entries()},y.prototype["@@iterator"]=function(){return this.keys()},y.prototype[a]=function(){return this.keys()},y}();return g}function tp(){var g=16,y=h.create(),k=B();return function(){function M(){this._key=B()}return M.prototype.has=function($){var I=V($,!1);return I!==void 0?h.has(I,this._key):!1},M.prototype.get=function($){var I=V($,!1);return I!==void 0?h.get(I,this._key):void 0},M.prototype.set=function($,I){var A=V($,!0);return A[this._key]=I,this},M.prototype.delete=function($){var I=V($,!1);return I!==void 0?delete I[this._key]:!1},M.prototype.clear=function(){this._key=B()},M}();function B(){var M;do M="@@WeakMap@@"+q();while(h.has(y,M));return y[M]=!0,M}function V(M,$){if(!r.call(M,k)){if(!$)return;Object.defineProperty(M,k,{value:h.create()})}return M[k]}function oe(M,$){for(var I=0;I<$;++I)M[I]=Math.random()*255|0;return M}function ne(M){if(typeof Uint8Array=="function"){var $=new Uint8Array(M);return typeof crypto<"u"?crypto.getRandomValues($):typeof msCrypto<"u"?msCrypto.getRandomValues($):oe($,M),$}return oe(new Array(M),M)}function q(){var M=ne(g);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var $="",I=0;I<g;++I){var A=M[I];(I===4||I===6||I===8)&&($+="-"),A<16&&($+="0"),$+=A.toString(16).toLowerCase()}return $}}function _i(g){return g.__=void 0,delete g.__,g}})})(nr||(nr={}));let Jt;const Ua=new Uint8Array(16);function _a(){if(!Jt&&(Jt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Jt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jt(Ua)}const ae=[];for(let t=0;t<256;++t)ae.push((t+256).toString(16).slice(1));function Wa(t,e=0){return ae[t[e+0]]+ae[t[e+1]]+ae[t[e+2]]+ae[t[e+3]]+"-"+ae[t[e+4]]+ae[t[e+5]]+"-"+ae[t[e+6]]+ae[t[e+7]]+"-"+ae[t[e+8]]+ae[t[e+9]]+"-"+ae[t[e+10]]+ae[t[e+11]]+ae[t[e+12]]+ae[t[e+13]]+ae[t[e+14]]+ae[t[e+15]]}const ir={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function je(t,e,n){if(ir.randomUUID&&!t)return ir.randomUUID();t=t||{};const r=t.random||(t.rng||_a)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Wa(r)}class me{static UUID(){return je()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}const kt=class kt{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const o=n[r];if(this.isPrimitive(o))e[r]instanceof Date?e[r]=new Date(o):e[r]=o;else if(o!=null&&!Array.isArray(o))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(o);else{const s=Reflect.getMetadata(r,e);s&&(e[r]=new s[r](o))}if(Array.isArray(o)){const s=Reflect.getMetadata(r,e);s&&(e[r]=o.map(a=>new s[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){kt.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const o=n.findIndex(s=>s.id===e);kt.RemoveFromClass(o,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const o=n[e].id;o&&r&&r.push(o),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,o){return o}})}static InitClassInstance(e,n){const r=e.constructor(n);return kt.BuildClass(r),r.id=me.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}};c(kt,"GetClassConstructor",e=>(n,r)=>{const o=Reflect.getMetadata(`property:${r}`,n)||{};o[r]=e,Reflect.defineMetadata(r,o,n)});let z=kt;class et{constructor(e){c(this,"id");c(this,"address");c(this,"description");c(this,"contactId");z.BuildClass(this,e)}static Create(){const e=new et;return e.id=me.UUID(),e}}class Hn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}c(Hn,"staticUrl","");class Pe{constructor(e){c(this,"name","");c(this,"url","");c(this,"src","");c(this,"raw");c(this,"blob");c(this,"file");c(this,"id");c(this,"originalName","");c(this,"fileSystemPath","");z.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Hn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Re&&Re.tagName.toUpperCase()==="SCRIPT"&&Re.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new Pe;return r.id=n??me.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=me.UUID(),r}uploadNewFile(e){this.id||(this.id=me.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=me.UUID()}setFile(e){this.file=e.raw,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 r="";return n&&(r=`@/assets/img/${n}`),new URL(r,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Re&&Re.tagName.toUpperCase()==="SCRIPT"&&Re.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const n=e.split(".");return n[n.length-1]}}class Y{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((o,s)=>s===0?o.toLowerCase():Y.Capitalize(o.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,n,r){return e.substring(e.indexOf(n)+2,e.lastIndexOf(r))}static Translit(e,n){const r={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,o=>{if(o===o.toLowerCase()){const a=Object.keys(r).find(d=>r[d]===o);return a||""}const s=Object.keys(r).find(a=>r[a]===o.toLowerCase());return s?s.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,o=>o===o.toLowerCase()?r[o]:r[o.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 r=e.toLowerCase().replaceAll(/\s/g,""),o=n.toLowerCase().replaceAll(/\s/g,""),s=Y.Translit(r),a=Y.Translit(o);return r.includes(o)||s.includes(o)||r.includes(a)}static SearchIn(e,n){return Y.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static WrapSubStr(e,n){const r=new RegExp(Y.GetVariants(n).join("|"),"gi");return e.replace(r,`<span class="search-text">${n}</span>`)}static GetVariants(e){const n=Y.Translit(e);return[e,Y.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,Y.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,n){const r=[2,0,1,1,1,2];return e.length+" "+n[e.length%100>4&&e.length%100<20?2:r[e.length%10<5?e.length%10:5]]}}class rr{constructor(e){c(this,"id");c(this,"name","");c(this,"surname","");c(this,"patronymic","");c(this,"isMale",!0);c(this,"dateBirth",new Date);c(this,"contactId");c(this,"slug","");c(this,"postIndex","");c(this,"address","");c(this,"editNameMode",!1);z.BuildClass(this,e)}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=Y.Capitalize(this.name),this.surname=Y.Capitalize(this.surname),this.patronymic=Y.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(e){this.surname=e.surname,this.name=e.name,this.patronymic=e.patronymic}}class tt{constructor(e){c(this,"id");c(this,"number");c(this,"description");c(this,"contactId");z.BuildClass(this,e)}static Create(){const e=new tt;return e.id=me.UUID(),e}}class Qt{constructor(e){c(this,"id");c(this,"address");c(this,"description");z.BuildClass(this,e)}}class qn{constructor(e){c(this,"id");c(this,"address");c(this,"description");z.BuildClass(this,e)}}let ja=(Ye=class{},c(Ye,"Phone",tt),c(Ye,"FileInfo",Pe),c(Ye,"PostAddress",Qt),c(Ye,"Website",qn),c(Ye,"Email",et),c(Ye,"Human",rr),Ye);class Ve{static Shuffle(e){for(let n=e.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[e[n],e[r]]=[e[r],e[n]]}}static GenerateNumsRange(e,n,r=1){return Array.from({length:(n-e)/r+1},(o,s)=>e+s*r)}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,r)=>n.order=r)}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((r,o)=>e[o]==n[o]))}static SwipeById(e,n,r){const o=e.findIndex(a=>n.id===a.id),s=e.findIndex(a=>r.id===a.id);o||s||([e[o],e[s]]=[e[s],e[o]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const o=e[n];e[n]=e[r],e[r]=o}static MoveUp(e,n){e[n].order=n-1,e[n-1]&&(e[n-1].order=n),[e[n],e[n-1]]=[e[n-1],e[n]]}static MoveDown(e,n){e[n].order=n+1,e[n+1]&&(e[n+1].order=n),[e[n],e[n+1]]=[e[n+1],e[n]]}}var ie=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(ie||{}),de=(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))(de||{}),Ga=Object.defineProperty,Za=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Ga(e,n,o),o};const or=class _t{constructor(e){c(this,"id");c(this,"model","");c(this,"label","");c(this,"col","");c(this,"operator",de.Eq);c(this,"date1");c(this,"date2");c(this,"value1","");c(this,"boolean",!1);c(this,"number",0);c(this,"type",ie.String);c(this,"set",[]);c(this,"isSet",!1);c(this,"joinTable","");c(this,"joinTableModel","");c(this,"joinTableFk","");c(this,"joinTablePk","");c(this,"joinTableId","");c(this,"joinTableIdCol","");z.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===ie.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===de.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===ie.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===ie.String?this.value1===(e==null?void 0:e.value1):this.type===ie.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}"`:"",r=this.col?`"col":"${this.col}"`:"",o=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===ie.Boolean?`"boolean":${this.boolean}`:"",d=this.type===ie.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",l=this.type===ie.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===ie.Number?`"number":${this.number}`:"",h=this.type===ie.Set||this.operator===de.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===ie.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,o,s,a,d,l,u,h,f].filter(m=>m!=="").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===de.Eq||this.operator===de.Gt||this.operator===de.Lt}isBetweenFilter(){return this.operator===de.Btw}isSetFilter(){return this.operator===de.In}static Create(e,n,r){const o=new _t;return o.model=e.GetClassName(),o.col=n??"",o.type=r,o.type===ie.Number&&(o.value1="0"),o.type===ie.String&&(o.value1=""),o.type===ie.Boolean&&(o.value1="false",o.operator=de.Eq),o}static CreateFilterModelWithJoin(e,n,r,o,s,a,d,l){const u=new _t;return u.id=je(),u.joinTable=r,u.joinTablePk=o,u.joinTableFk=s,u.col=n,u.type=a,d&&(u.joinTableId=d),l&&(u.joinTableIdCol=l),u}static CreateFilterModelWithJoinV2(e,n,r,o,s,a,d){const l=new _t;return l.model=e,l.joinTableModel=r,l.joinTablePk=o,l.joinTableFk=s,l.col=n,l.type=ie.Join,a&&(l.joinTableId=a),d&&(l.joinTableIdCol=d),l}static OnlyIfSecondModelExists(e,n){const r=new _t;return r.id=je(),r.model=Y.ToCamelCase(e.GetClassName()),r.joinTableModel=Y.ToCamelCase(n.GetClassName()),r.type=ie.Join,r}addToSet(...e){e.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(r=>r!==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=de.Eq;return}this.setDate2(n),this.operator=de.Btw}};Za([z.GetClassConstructor(String)],or.prototype,"set");let Un=or;class Xa{constructor(){c(this,"operation",de.Lt);c(this,"column","");c(this,"value");c(this,"initial",!0);c(this,"tableName","");c(this,"version","");c(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",r=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,o=r?`"value":"${r}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,o,s,a].filter(d=>d!=="").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 Kt{constructor(e){c(this,"offset",0);c(this,"limit",25);c(this,"cursor",new Xa);c(this,"cursorMode",!1);c(this,"append",!1);c(this,"allLoaded",!1);c(this,"version","");z.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=de.Gt,this.cursor.column=n,this.cursor.tableName=r,this.cursorMode=!0}setLoadMoreV2(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=de.Gt,this.cursor.column=n,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.offset=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,o=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,o,s,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.offset=Number(r.get("offset")),this.limit=Number(r.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,z.BuildClass(this)}}var ke=(t=>(t.Asc="asc",t.Desc="desc",t))(ke||{});class en{constructor(e){c(this,"model","");c(this,"col","");c(this,"order");c(this,"label","");c(this,"default",!1);c(this,"selected",!1);z.BuildClass(this,e)}static Create(e,n,r=ke.Asc,o,s){const a=new en;return a.model=e.GetClassName(),a.col=n??"",a.order=r??ke.Asc,a.label=o??"",a.default=s??!1,a}isAsc(){return this.order===ke.Asc}isDesc(){return this.order===ke.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}"`:"",r=this.order?`"order":"${this.order}"`:"";return[e,n,r].toString()}async fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("s=")+2,e.indexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.model=r.get("model")??"",this.col=r.get("col")??"",this.label=r.get("label")??"",this.default=!!r.get("default"),this.order=r.get("order")??""}asc(){this.order=ke.Asc}desc(){this.order=ke.Desc}}class tn{constructor(){c(this,"model","");c(this,"cols",[]);c(this,"models",[])}static Create(e,n){const r=new tn;return r.model=e.GetClassName(),r.cols=n,r}}var Ya=Object.defineProperty,nn=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Ya(e,n,o),o};const Rt=(be=class{constructor(e){c(this,"id");c(this,"f",[]);c(this,"s",[]);c(this,"p",new Kt);c(this,"t",new tn);z.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new be),this.instance}createFrom(e){const n=new be(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new be(this);return e.f=this.f.map(n=>be.EmptyEntiries(n)),e.s=this.s.map(n=>be.EmptyEntiries(n)),e.p=be.EmptyEntiries(this.p),e.t=be.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([o,s])=>o!=="label"&&s!==""&&s!==null);return Object.fromEntries(r)}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(r=>r.eq(e));z.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new Kt}resetF(){this.f=[]}},c(be,"instance"),be);nn([z.GetClassConstructor(Un)],Rt.prototype,"f"),nn([z.GetClassConstructor(en)],Rt.prototype,"s"),nn([z.GetClassConstructor(Kt)],Rt.prototype,"p"),nn([z.GetClassConstructor(tn)],Rt.prototype,"t");let $t=Rt,Ja=(qt=class{},c(qt,"SortModel",en),c(qt,"FilterModel",Un),c(qt,"FTSP",$t),qt);function sr(t,e){return function(){return t.apply(e,arguments)}}const{toString:Qa}=Object.prototype,{getPrototypeOf:_n}=Object,rn=(t=>e=>{const n=Qa.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ie=t=>(t=t.toLowerCase(),e=>rn(e)===t),on=t=>e=>typeof e===t,{isArray:ut}=Array,It=on("undefined");function Ka(t){return t!==null&&!It(t)&&t.constructor!==null&&!It(t.constructor)&&we(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ar=Ie("ArrayBuffer");function el(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ar(t.buffer),e}const tl=on("string"),we=on("function"),lr=on("number"),sn=t=>t!==null&&typeof t=="object",nl=t=>t===!0||t===!1,an=t=>{if(rn(t)!=="object")return!1;const e=_n(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},il=Ie("Date"),rl=Ie("File"),ol=Ie("Blob"),sl=Ie("FileList"),al=t=>sn(t)&&we(t.pipe),ll=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||we(t.append)&&((e=rn(t))==="formdata"||e==="object"&&we(t.toString)&&t.toString()==="[object FormData]"))},cl=Ie("URLSearchParams"),[dl,ul,hl,fl]=["ReadableStream","Request","Response","Headers"].map(Ie),ml=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function At(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),ut(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let d;for(r=0;r<a;r++)d=s[r],e.call(null,t[d],d,t)}}function cr(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dr=t=>!It(t)&&t!==nt;function Wn(){const{caseless:t}=dr(this)&&this||{},e={},n=(r,o)=>{const s=t&&cr(e,o)||o;an(e[s])&&an(r)?e[s]=Wn(e[s],r):an(r)?e[s]=Wn({},r):ut(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&At(arguments[r],n);return e}const pl=(t,e,n,{allOwnKeys:r}={})=>(At(e,(o,s)=>{n&&we(o)?t[s]=sr(o,n):t[s]=o},{allOwnKeys:r}),t),gl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),yl=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},wl=(t,e,n,r)=>{let o,s,a;const d={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)a=o[s],(!r||r(a,t,e))&&!d[a]&&(e[a]=t[a],d[a]=!0);t=n!==!1&&_n(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},bl=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Cl=t=>{if(!t)return null;if(ut(t))return t;let e=t.length;if(!lr(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Sl=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&_n(Uint8Array)),kl=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},El=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},xl=Ie("HTMLFormElement"),Bl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ur=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Ml=Ie("RegExp"),hr=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};At(n,(o,s)=>{let a;(a=e(o,s,t))!==!1&&(r[s]=a||o)}),Object.defineProperties(t,r)},Rl=t=>{hr(t,(e,n)=>{if(we(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(we(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},$l=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return ut(t)?r(t):r(String(t).split(e)),n},Il=()=>{},Al=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,jn="abcdefghijklmnopqrstuvwxyz",fr="0123456789",mr={DIGIT:fr,ALPHA:jn,ALPHA_DIGIT:jn+jn.toUpperCase()+fr},vl=(t=16,e=mr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Nl(t){return!!(t&&we(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Pl=t=>{const e=new Array(10),n=(r,o)=>{if(sn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=ut(r)?[]:{};return At(r,(a,d)=>{const l=n(a,o+1);!It(l)&&(s[d]=l)}),e[o]=void 0,s}}return r};return n(t,0)},Vl=Ie("AsyncFunction"),zl=t=>t&&(sn(t)||we(t))&&we(t.then)&&we(t.catch),pr=((t,e)=>t?setImmediate:e?((n,r)=>(nt.addEventListener("message",({source:o,data:s})=>{o===nt&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),nt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",we(nt.postMessage)),Tl=typeof queueMicrotask<"u"?queueMicrotask.bind(nt):typeof process<"u"&&process.nextTick||pr,b={isArray:ut,isArrayBuffer:ar,isBuffer:Ka,isFormData:ll,isArrayBufferView:el,isString:tl,isNumber:lr,isBoolean:nl,isObject:sn,isPlainObject:an,isReadableStream:dl,isRequest:ul,isResponse:hl,isHeaders:fl,isUndefined:It,isDate:il,isFile:rl,isBlob:ol,isRegExp:Ml,isFunction:we,isStream:al,isURLSearchParams:cl,isTypedArray:Sl,isFileList:sl,forEach:At,merge:Wn,extend:pl,trim:ml,stripBOM:gl,inherits:yl,toFlatObject:wl,kindOf:rn,kindOfTest:Ie,endsWith:bl,toArray:Cl,forEachEntry:kl,matchAll:El,isHTMLForm:xl,hasOwnProperty:ur,hasOwnProp:ur,reduceDescriptors:hr,freezeMethods:Rl,toObjectSet:$l,toCamelCase:Bl,noop:Il,toFiniteNumber:Al,findKey:cr,global:nt,isContextDefined:dr,ALPHABET:mr,generateString:vl,isSpecCompliantForm:Nl,toJSONObject:Pl,isAsyncFn:Vl,isThenable:zl,setImmediate:pr,asap:Tl};function F(t,e,n,r,o){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),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}b.inherits(F,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:b.toJSONObject(this.config),code:this.code,status:this.status}}});const gr=F.prototype,yr={};["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=>{yr[t]={value:t}}),Object.defineProperties(F,yr),Object.defineProperty(gr,"isAxiosError",{value:!0}),F.from=(t,e,n,r,o,s)=>{const a=Object.create(gr);return b.toFlatObject(t,a,function(l){return l!==Error.prototype},d=>d!=="isAxiosError"),F.call(a,t.message,e,n,r,o),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const Fl=null;function Gn(t){return b.isPlainObject(t)||b.isArray(t)}function wr(t){return b.endsWith(t,"[]")?t.slice(0,-2):t}function br(t,e,n){return t?t.concat(e).map(function(o,s){return o=wr(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function Ol(t){return b.isArray(t)&&!t.some(Gn)}const Ll=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function ln(t,e,n){if(!b.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!b.isUndefined(w[S])});const r=n.metaTokens,o=n.visitor||h,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(e);if(!b.isFunction(o))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(b.isDate(C))return C.toISOString();if(!l&&b.isBlob(C))throw new F("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(C)||b.isTypedArray(C)?l&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,S,w){let R=C;if(C&&!w&&typeof C=="object"){if(b.endsWith(S,"{}"))S=r?S:S.slice(0,-2),C=JSON.stringify(C);else if(b.isArray(C)&&Ol(C)||(b.isFileList(C)||b.endsWith(S,"[]"))&&(R=b.toArray(C)))return S=wr(S),R.forEach(function(L,P){!(b.isUndefined(L)||L===null)&&e.append(a===!0?br([S],P,s):a===null?S:S+"[]",u(L))}),!1}return Gn(C)?!0:(e.append(br(w,S,s),u(C)),!1)}const f=[],m=Object.assign(Ll,{defaultVisitor:h,convertValue:u,isVisitable:Gn});function p(C,S){if(!b.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(C),b.forEach(C,function(R,O){(!(b.isUndefined(R)||R===null)&&o.call(e,R,b.isString(O)?O.trim():O,S,m))===!0&&p(R,S?S.concat(O):[O])}),f.pop()}}if(!b.isObject(t))throw new TypeError("data must be an object");return p(t),e}function Cr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Zn(t,e){this._pairs=[],t&&ln(t,this,e)}const Sr=Zn.prototype;Sr.append=function(e,n){this._pairs.push([e,n])},Sr.toString=function(e){const n=e?function(r){return e.call(this,r,Cr)}:Cr;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Dl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kr(t,e,n){if(!e)return t;const r=n&&n.encode||Dl;b.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(e,n):s=b.isURLSearchParams(e)?e.toString():new Zn(e,n).toString(r),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Er{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){b.forEach(this.handlers,function(r){r!==null&&e(r)})}}const xr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Zn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Xn=typeof window<"u"&&typeof document<"u",Yn=typeof navigator=="object"&&navigator||void 0,ql=Xn&&(!Yn||["ReactNative","NativeScript","NS"].indexOf(Yn.product)<0),Ul=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_l=Xn&&window.location.href||"http://localhost",ue={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xn,hasStandardBrowserEnv:ql,hasStandardBrowserWebWorkerEnv:Ul,navigator:Yn,origin:_l},Symbol.toStringTag,{value:"Module"})),...Hl};function Wl(t,e){return ln(t,new ue.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return ue.isNode&&b.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function jl(t){return b.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Gl(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function Br(t){function e(n,r,o,s){let a=n[s++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),l=s>=n.length;return a=!a&&b.isArray(o)?o.length:a,l?(b.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!d):((!o[a]||!b.isObject(o[a]))&&(o[a]=[]),e(n,r,o[a],s)&&b.isArray(o[a])&&(o[a]=Gl(o[a])),!d)}if(b.isFormData(t)&&b.isFunction(t.entries)){const n={};return b.forEachEntry(t,(r,o)=>{e(jl(r),o,n,0)}),n}return null}function Zl(t,e,n){if(b.isString(t))try{return(e||JSON.parse)(t),b.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const vt={transitional:xr,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=b.isObject(e);if(s&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return o?JSON.stringify(Br(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e)||b.isReadableStream(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Wl(e,this.formSerializer).toString();if((d=b.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ln(d?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Zl(e)):e}],transformResponse:[function(e){const n=this.transitional||vt.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(b.isResponse(e)||b.isReadableStream(e))return e;if(e&&b.isString(e)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(d){if(a)throw d.name==="SyntaxError"?F.from(d,F.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],t=>{vt.headers[t]={}});const Xl=b.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"]),Yl=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
15
|
-
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||e[n]&&
|
|
16
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[Mr]=this[Mr]={accessors:{}}).accessors,o=this.prototype;function s(a){const d=Nt(a);r[d]||(ec(o,a),r[d]=!0)}return b.isArray(e)?e.forEach(s):s(e),this}}ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.reduceDescriptors(ge.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),b.freezeMethods(ge);function Qn(t,e){const n=this||vt,r=e||n,o=ge.from(r.headers);let s=r.data;return b.forEach(t,function(d){s=d.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function Rr(t){return!!(t&&t.__CANCEL__)}function ht(t,e,n){F.call(this,t??"canceled",F.ERR_CANCELED,e,n),this.name="CanceledError"}b.inherits(ht,F,{__CANCEL__:!0});function $r(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function tc(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function nc(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),h=r[s];a||(a=u),n[o]=l,r[o]=u;let f=s,m=0;for(;f!==o;)m+=n[f++],f=f%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-a<e)return;const p=h&&u-h;return p?Math.round(m*1e3/p):void 0}}function ic(t,e){let n=0,r=1e3/e,o,s;const a=(u,h=Date.now())=>{n=h,o=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=r?a(u,h):(o=u,s||(s=setTimeout(()=>{s=null,a(o)},r-f)))},()=>o&&a(o)]}const dn=(t,e,n=3)=>{let r=0;const o=nc(50,250);return ic(s=>{const a=s.loaded,d=s.lengthComputable?s.total:void 0,l=a-r,u=o(l),h=a<=d;r=a;const f={loaded:a,total:d,progress:d?a/d:void 0,bytes:l,rate:u||void 0,estimated:u&&d&&h?(d-a)/u:void 0,event:s,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(f)},n)},Ir=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ar=t=>(...e)=>b.asap(()=>t(...e)),rc=ue.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,ue.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(ue.origin),ue.navigator&&/(msie|trident)/i.test(ue.navigator.userAgent)):()=>!0,oc=ue.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const a=[t+"="+encodeURIComponent(e)];b.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),b.isString(r)&&a.push("path="+r),b.isString(o)&&a.push("domain="+o),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 sc(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ac(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function vr(t,e){return t&&!sc(e)?ac(t,e):e}const Nr=t=>t instanceof ge?{...t}:t;function it(t,e){e=e||{};const n={};function r(u,h,f,m){return b.isPlainObject(u)&&b.isPlainObject(h)?b.merge.call({caseless:m},u,h):b.isPlainObject(h)?b.merge({},h):b.isArray(h)?h.slice():h}function o(u,h,f,m){if(b.isUndefined(h)){if(!b.isUndefined(u))return r(void 0,u,f,m)}else return r(u,h,f,m)}function s(u,h){if(!b.isUndefined(h))return r(void 0,h)}function a(u,h){if(b.isUndefined(h)){if(!b.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function d(u,h,f){if(f in e)return r(u,h);if(f in t)return r(void 0,u)}const l={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:d,headers:(u,h,f)=>o(Nr(u),Nr(h),f,!0)};return b.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=l[h]||o,m=f(t[h],e[h],h);b.isUndefined(m)&&f!==d||(n[h]=m)}),n}const Pr=t=>{const e=it({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:d}=e;e.headers=a=ge.from(a),e.url=kr(vr(e.baseURL,e.url),t.params,t.paramsSerializer),d&&a.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let l;if(b.isFormData(n)){if(ue.hasStandardBrowserEnv||ue.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...h]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...h].join("; "))}}if(ue.hasStandardBrowserEnv&&(r&&b.isFunction(r)&&(r=r(e)),r||r!==!1&&rc(e.url))){const u=o&&s&&oc.read(s);u&&a.set(o,u)}return e},lc=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=Pr(t);let s=o.data;const a=ge.from(o.headers).normalize();let{responseType:d,onUploadProgress:l,onDownloadProgress:u}=o,h,f,m,p,C;function S(){p&&p(),C&&C(),o.cancelToken&&o.cancelToken.unsubscribe(h),o.signal&&o.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function R(){if(!w)return;const L=ge.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),j={data:!d||d==="text"||d==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:L,config:t,request:w};$r(function(Me){n(Me),S()},function(Me){r(Me),S()},j),w=null}"onloadend"in w?w.onloadend=R:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(R)},w.onabort=function(){w&&(r(new F("Request aborted",F.ECONNABORTED,t,w)),w=null)},w.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let P=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||xr;o.timeoutErrorMessage&&(P=o.timeoutErrorMessage),r(new F(P,j.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,w)),w=null},s===void 0&&a.setContentType(null),"setRequestHeader"in w&&b.forEach(a.toJSON(),function(P,j){w.setRequestHeader(j,P)}),b.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),d&&d!=="json"&&(w.responseType=o.responseType),u&&([m,C]=dn(u,!0),w.addEventListener("progress",m)),l&&w.upload&&([f,p]=dn(l),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(h=L=>{w&&(r(!L||L.type?new ht(null,t,w):L),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(h),o.signal&&(o.signal.aborted?h():o.signal.addEventListener("abort",h)));const O=tc(o.url);if(O&&ue.protocols.indexOf(O)===-1){r(new F("Unsupported protocol "+O+":",F.ERR_BAD_REQUEST,t));return}w.send(s||null)})},cc=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const s=function(u){if(!o){o=!0,d();const h=u instanceof Error?u:this.reason;r.abort(h instanceof F?h:new ht(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,s(new F(`timeout ${e} of ms exceeded`,F.ETIMEDOUT))},e);const d=()=>{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:l}=r;return l.unsubscribe=()=>b.asap(d),l}},dc=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},uc=async function*(t,e){for await(const n of hc(t))yield*dc(n,e)},hc=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Vr=(t,e,n,r)=>{const o=uc(t,e);let s=0,a,d=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:h}=await o.next();if(u){d(),l.close();return}let f=h.byteLength;if(n){let m=s+=f;n(m)}l.enqueue(new Uint8Array(h))}catch(u){throw d(u),u}},cancel(l){return d(l),o.return()}},{highWaterMark:2})},un=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",zr=un&&typeof ReadableStream=="function",fc=un&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Tr=(t,...e)=>{try{return!!t(...e)}catch{return!1}},mc=zr&&Tr(()=>{let t=!1;const e=new Request(ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Fr=64*1024,Kn=zr&&Tr(()=>b.isReadableStream(new Response("").body)),hn={stream:Kn&&(t=>t.body)};un&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!hn[e]&&(hn[e]=b.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new F(`Response type '${e}' is not supported`,F.ERR_NOT_SUPPORT,r)})})})(new Response);const pc=async t=>{if(t==null)return 0;if(b.isBlob(t))return t.size;if(b.isSpecCompliantForm(t))return(await new Request(ue.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(b.isArrayBufferView(t)||b.isArrayBuffer(t))return t.byteLength;if(b.isURLSearchParams(t)&&(t=t+""),b.isString(t))return(await fc(t)).byteLength},gc=async(t,e)=>{const n=b.toFiniteNumber(t.getContentLength());return n??pc(e)},ei={http:Fl,xhr:lc,fetch:un&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:s,timeout:a,onDownloadProgress:d,onUploadProgress:l,responseType:u,headers:h,withCredentials:f="same-origin",fetchOptions:m}=Pr(t);u=u?(u+"").toLowerCase():"text";let p=cc([o,s&&s.toAbortSignal()],a),C;const S=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let w;try{if(l&&mc&&n!=="get"&&n!=="head"&&(w=await gc(h,r))!==0){let j=new Request(e,{method:"POST",body:r,duplex:"half"}),Be;if(b.isFormData(r)&&(Be=j.headers.get("content-type"))&&h.setContentType(Be),j.body){const[Me,Qe]=Ir(w,dn(Ar(l)));r=Vr(j.body,Fr,Me,Qe)}}b.isString(f)||(f=f?"include":"omit");const R="credentials"in Request.prototype;C=new Request(e,{...m,signal:p,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:R?f:void 0});let O=await fetch(C);const L=Kn&&(u==="stream"||u==="response");if(Kn&&(d||L&&S)){const j={};["status","statusText","headers"].forEach(Et=>{j[Et]=O[Et]});const Be=b.toFiniteNumber(O.headers.get("content-length")),[Me,Qe]=d&&Ir(Be,dn(Ar(d),!0))||[];O=new Response(Vr(O.body,Fr,Me,()=>{Qe&&Qe(),S&&S()}),j)}u=u||"text";let P=await hn[b.findKey(hn,u)||"text"](O,t);return!L&&S&&S(),await new Promise((j,Be)=>{$r(j,Be,{data:P,headers:ge.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:C})})}catch(R){throw S&&S(),R&&R.name==="TypeError"&&/fetch/i.test(R.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,t,C),{cause:R.cause||R}):F.from(R,R&&R.code,t,C)}})};b.forEach(ei,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Or=t=>`- ${t}`,yc=t=>b.isFunction(t)||t===null||t===!1,Lr={getAdapter:t=>{t=b.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let s=0;s<e;s++){n=t[s];let a;if(r=n,!yc(n)&&(r=ei[(a=String(n)).toLowerCase()],r===void 0))throw new F(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+s]=r}if(!r){const s=Object.entries(o).map(([d,l])=>`adapter ${d} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
|
|
17
|
-
`+s.map(
|
|
18
|
-
`):" "+
|
|
19
|
-
`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=it(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&mn.assertOptions(r,{silentJSONParsing:ze.transitional(ze.boolean),forcedJSONParsing:ze.transitional(ze.boolean),clarifyTimeoutError:ze.transitional(ze.boolean)},!1),o!=null&&(b.isFunction(o)?n.paramsSerializer={serialize:o}:mn.assertOptions(o,{encode:ze.function,serialize:ze.function},!0)),mn.assertOptions(n,{baseUrl:ze.spelling("baseURL"),withXsrfToken:ze.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&b.merge(s.common,s[n.method]);s&&b.forEach(["delete","get","head","post","put","patch","common"],C=>{delete s[C]}),n.headers=ge.concat(a,s);const d=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,d.unshift(S.fulfilled,S.rejected))});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let h,f=0,m;if(!l){const C=[Dr.bind(this),void 0];for(C.unshift.apply(C,d),C.push.apply(C,u),m=C.length,h=Promise.resolve(n);f<m;)h=h.then(C[f++],C[f++]);return h}m=d.length;let p=n;for(f=0;f<m;){const C=d[f++],S=d[f++];try{p=C(p)}catch(w){S.call(this,w);break}}try{h=Dr.call(this,p)}catch(C){return Promise.reject(C)}for(f=0,m=u.length;f<m;)h=h.then(u[f++],u[f++]);return h}getUri(e){e=it(this.defaults,e);const n=vr(e.baseURL,e.url);return kr(n,e.params,e.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(e){rt.prototype[e]=function(n,r){return this.request(it(r||{},{method:e,url:n,data:(r||{}).data}))}}),b.forEach(["post","put","patch"],function(e){function n(r){return function(s,a,d){return this.request(it(d||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}rt.prototype[e]=n(),rt.prototype[e+"Form"]=n(!0)});class ni{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 r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(d=>{r.subscribe(d),s=d}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,d){r.reason||(r.reason=new ht(s,a,d),n(r.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=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new ni(function(o){e=o}),cancel:e}}}function bc(t){return function(n){return t.apply(null,n)}}function Cc(t){return b.isObject(t)&&t.isAxiosError===!0}const ii={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(ii).forEach(([t,e])=>{ii[e]=t});function Ur(t){const e=new rt(t),n=sr(rt.prototype.request,e);return b.extend(n,rt.prototype,e,{allOwnKeys:!0}),b.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Ur(it(t,o))},n}const Q=Ur(vt);Q.Axios=rt,Q.CanceledError=ht,Q.CancelToken=ni,Q.isCancel=Rr,Q.VERSION=Hr,Q.toFormData=ln,Q.AxiosError=F,Q.Cancel=Q.CanceledError,Q.all=function(e){return Promise.all(e)},Q.spread=bc,Q.isAxiosError=Cc,Q.mergeConfig=it,Q.AxiosHeaders=ge,Q.formToJSON=t=>Br(b.isHTMLForm(t)?new FormData(t):t),Q.getAdapter=Lr.getAdapter,Q.HttpStatusCode=ii,Q.default=Q;var Pt=(t=>(t.GET="get",t.POST="post",t.PUT="put",t.DELETE="delete",t))(Pt||{});const Vt=(()=>{function t(){const l=o();return!(!l||l==="undefined")}function e(l){l.accessToken&&localStorage.setItem("access_token",l.accessToken),l.refreshToken&&localStorage.setItem("refresh_token",l.refreshToken)}function n(){const l=localStorage.getItem("user");return l?JSON.parse(l).id:""}function r(){const l=localStorage.getItem("user");if(l)return JSON.parse(l)}function o(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function d(l){if(!t())return;const u=Vt.getUser();u&&(u.human=l,localStorage.setItem("user",JSON.stringify(u)))}return{isAuth:t,setTokens:e,getAccessToken:o,getRefreshToken:s,getUserId:n,clearTokens:a,getUser:r,updateHuman:d}})();class ri{constructor(e){c(this,"code",400);c(this,"err","");z.BuildClass(this,e)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(e,n){const r=e.config;if(e.response){if(e.response.status===401&&!r._retry)return r._retry=!0,n.defaults.headers.common.token=Vt.getAccessToken(),e.config.headers.token=Vt.getAccessToken(),e.config.baseURL=void 0,n.request(r);if(e.response.status>=500){if(e.response.data==="неверный логин или пароль"){pe.Error("Неверный логин или пароль");return}pe.Error("Ошибка на сервере, попробуйте позже")}if(e.response.status>=400&&e.response.status<500){const o=new ri(e.response.data).getErr();o&&pe.Error(o)}return Promise.reject(e)}}}const ft=Q.create();ft.interceptors.response.use(t=>t,async t=>await ri.Handle(t,ft));class zt{static async Get(e,n,r){return await ft({method:Pt.GET,url:e,headers:n,responseType:r})}static async Post(e,n,r,o){return n["Content-Type"]="multipart/form-data",await ft({method:Pt.POST,url:e,headers:n,responseType:r,data:o})}static async Put(e,n,r){return n["Content-Type"]="multipart/form-data",await ft({method:Pt.PUT,url:e,headers:n,data:r})}static async Delete(e,n){return await ft({method:Pt.DELETE,url:e,headers:n})}}class pn{constructor(e){c(this,"name","");z.BuildClass(this,e)}static Set(){}static Get(e,n){const r=sessionStorage.getItem(e);if(r){const o=JSON.parse(r),s=new Date,a=new Date(o.time),d=s.getTime()-a.getTime();return Math.round(d/6e4)>(n||10)?null:o.data}else return null}static async TryGet(e,n,r){let o;return o=pn.Get(e,r),o||(o=await n()),o}}var oi=(t=>(t.ContentType="Content-Type",t.Token="token",t))(oi||{}),_r=(t=>(t.ApplicationJson="application/json",t.MultipartFormData="multipart/form-data",t))(_r||{});const G=class G{static Setup(e,n,r){this.baseUrl=e,this.apiVersion=n,this.apiHost=r}static newWebSocket(e){const n=this.apiHost.replace("http","ws")+"/ws/"+e;return new WebSocket(n)}static download(e,n){const r=G.getDownloadFileName(e,n.headers),o=URL.createObjectURL(n.data),s=document.createElement("a");s.href=o,s.setAttribute("download",r),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click()}static getDownloadFileName(e,n){if(e)return e;const r=n["content-disposition"],o=r.indexOf('"')+1,s=r.lastIndexOf('"'),a=r.substring(o,s);return a||"file"}static getHeaders(e){const n=$e.Get(Se.AccessToken);return e||(e=G.headers),n&&(e[oi.Token]=n),e??G.headers}static returnResponse(e,n){if(n)return e!=null&&e.isBlob?G.download(e.downloadFileName,n):n.data}static async Get(e){return G.returnResponse(e,await zt.Get(G.buildUrl((e==null?void 0:e.query)??""),G.getHeaders(e==null?void 0:e.headers),G.getResponseType(e==null?void 0:e.isBlob)))}static async Post(e){return G.returnResponse(e,await zt.Post(G.buildUrl(e==null?void 0:e.query),G.getHeaders(e==null?void 0:e.headers),G.getResponseType(e.isBlob),G.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Put(e){return G.returnResponse(e,await zt.Put(G.buildUrl(e==null?void 0:e.query),G.getHeaders(e==null?void 0:e.headers),G.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Delete(e){return G.returnResponse(e,await zt.Delete(G.buildUrl(e==null?void 0:e.query),G.getHeaders(e==null?void 0:e.headers)))}static async Subscribe(e){const{query:n}=e;return new EventSource(G.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 r=new FormData;if(r.append("form",JSON.stringify(e)),n)for(const o of n)o.file&&r.append(o.id??"files",o.file,o.originalName);return r}};c(G,"baseUrl",""),c(G,"apiVersion",""),c(G,"apiHost",""),c(G,"headers",{[oi.ContentType]:_r.ApplicationJson});let K=G;const x=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Sc={},kc={style:{"text-align":"center"}};function Ec(t,e){return i.openBlock(),i.createElementBlock("div",kc,e[0]||(e[0]=[i.createElementVNode("h1",null,"Страница не найдена",-1)]))}const si=x(Sc,[["render",Ec]]),xc=[{path:"/:pathMatch(.*)*",name:"NotFound",component:si}],Le=class Le{static Set(e){this.router=e,this.AddRoutes(xc)}static Get(){return this.router}static AddRoutes(e){e.forEach(n=>{this.Get().addRoute(n)})}static async To(e){await this.Get().push(e)}static async ToHome(){}static async Replace(e){await this.Get().replace(e)}static Id(){return Le.GetStringParam("id")}static Slug(){return Le.GetStringParam("slug")}static async Back(){this.Get().go(-1)}static GetQid(){return Le.GetStringQueryParam("qid")}static Route(){return this.Get().currentRoute.value}static RouterPushBlank(e){const n=this.Get().resolve({path:e});window.open(n==null?void 0:n.href,"_blank")}static GetPath(){var n;const e=(n=Le.Route())==null?void 0:n.path.split("/");return!e||e.length<=0?"":e[e.length-1]}static async ToAdmin(e){if(!e){await this.Get().push("/admin");return}let n=e;n[0]==="/"&&(n=e.substring(1)),await Le.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 SetQueryParam(e,n){const r=new URL(window.location);r.searchParams.set(e,String(n)),history.replaceState(null,"",r)}static Resolve(e){return this.Get().resolve(e)}};c(Le,"router"),c(Le,"ChangeDocumentTitle",(e="")=>{let n=Le.Route().meta.title??e;n&&e&&(n=n+` | ${e}`),document.title=n});let Ge=Le;class X{constructor(e,n){c(this,"items",i.reactive([]));c(this,"item");c(this,"count",i.ref(0));c(this,"classConstructor");c(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))}getUrl(e){return e?`${this.url}/${e}`:this.url}async GetAll(e){let n;const r=K.Get;e&&e.withCache?n=await pn.TryGet(this.getUrl(),r):n=await r({query:this.getUrl()}),Array.isArray(n)?this.SetAll(n):this.SetAllWithCount(n)}async Get(e){e||(e=Ge.Id()),this.Set(await K.Get({query:this.getUrl(e)}))}async FTSP(e){var a;const r=((e==null?void 0:e.ftsp)??$t.Get()).clearForHTTP(),o={payload:{ftsp:r},query:this.getUrl("ftsp")},s=await K.Post(o);if(!(!s||!s.ftsp))if(Array.isArray(s.data))this.SetAll(s.data);else{if(r.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,r={payload:n,query:this.getUrl()};return n.getFileInfos&&(r.fileInfos=n.getFileInfos(),r.fileInfos.forEach(o=>o.url="")),await K.Post(r)}async CreateAndSet(e){const n=await this.Create(e);this.Set(n)}async CreateMany(e){if(!e)return;const n=[];e.forEach(r=>{n.push(new Promise(()=>this.Create(r)))}),Promise.all(n)}async Update(e){const n=e??this.item,r={query:this.getUrl(`${n.id}`),payload:n};return n.getFileInfos&&(r.fileInfos=n.getFileInfos(),r.fileInfos.forEach(o=>o.url="")),await K.Put(r)}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 K.Delete({query:this.getUrl(`${e}`)}),this.RemoveItem(e)}async UpdateMany(e){if(e||(e=this.items),!e)return;const n=[];e.forEach(r=>{n.push(new Promise(()=>this.Update(r)))}),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(r=>r.id===e);this.items.splice(n,1)}AppendToAll(e){if(e){if(Array.isArray(e)){const n=e.map(r=>new this.classConstructor(r));this.items.push(...n);return}this.items.push(new this.classConstructor(e))}}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){z.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(e){if(e){if(Array.isArray(e)){const n=e.map(r=>new this.classConstructor(r));this.items.unshift(...n);return}this.items.unshift(new this.classConstructor(e))}}get Items(){return this.items}get Item(){return this.item}get Count(){return this.count}}function Bc(t,e){t=="left"&&e.next(),t=="right"&&e.prev()}const Mc=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class Rc{static GetRandColor(e){return Ve.GetRandEL(e??Mc)}}function Wr(t,e){const n=[],r=e||ke.Asc,o=r===ke.Asc?ke.Desc:ke.Asc;return Object.values(t).forEach(s=>{n.push(s(r)),n.push(s(o))}),n.length>0&&!n.some(s=>s.default)&&(n[0].default=!0),e&&n.forEach(s=>{s.default&&(s.default=s.order===e)}),n}let $c=class{constructor(){c(this,"startHour",9);c(this,"endHour",19);c(this,"timelinePxHeight",50);c(this,"timelineStep",Bt.FiveMinutes);c(this,"activeTime","");c(this,"activeObjectId","");c(this,"dragged",!1);c(this,"draggedStartTime","");c(this,"draggedEndTime","");c(this,"timelines",Yt[Bt.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=Yt[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 ai=t=>t===8||t===46,Ic=t=>t>46&&t<58,Ac=t=>t>34&&t<41,vc=t=>t+".",Nc=(t,e,n)=>{ai(e)||Ac(e)||(!Ic(e)||n>9)&&t.preventDefault()};function Pc(t,e){if(e>8){let n=t.substring(0,2).replace(".","1");Number(n)>31&&(n="31");let r=t.substring(3,5).replace(".","1");Number(r)>12&&(r="12");let o=t.substring(6,10).replace(".","1");Number(o)>2100&&(o="2100"),t=n+"."+r+"."+o}return t}function Vc(t){const e=t.keyCode;let n=t.srcElement.value;const r=n.length;Nc(t,e,r),!ai(e)&&(r===2||r===5)&&(n=vc(n));const o=t.srcElement.value+String.fromCharCode(t.which);if(ai(e)){t.srcElement.value=n;return}n.length===0&&Number(o)>3&&(n="3",t.preventDefault()),n.length===1&&Number(o)>31&&(n="31",t.preventDefault()),o.length===5&&Number(o.substring(3,5))>12&&(n=n.substring(0,3)+"12",t.preventDefault()),n=Pc(n,r),t.srcElement.value=n}const zc=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],Tc="ru-RU";class He{constructor(){c(this,"locale","ru-RU")}static Format(e,n){if(!e)return"";const r={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return n&&(r.year=n.year||n.year===void 0?n.year:r.year,r.month=n.month||n.month===void 0?n.month:r.month,r.day=n.day||n.day===void 0?n.day:r.day,r.hour=n.hour??r.hour,r.minute=n.minute??r.minute),Intl.DateTimeFormat(Tc,r).format(new Date(e))}static FromRuStr(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}static GetPeriod(e,n,r){return`${this.Format(e,r)}-${this.Format(n,r)}`}static GetShortDayName(e){return e?zc[e.getDay()]:""}static GetCurrentWeekPeriod(e){const n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),o=new Date(n.getFullYear(),n.getMonth(),r.getDate()+7);return this.GetPeriod(r,o,e||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(e,n){const r=new Date,o=new Date,s=He.SplitHourTime(e),a=He.SplitHourTime(n);return r.setHours(s[0],s[1],0,0),o.setHours(a[0],a[1],0,0),(o.getTime()-r.getTime())/1e3/60}static HourTimeinMunutes(e){const n=He.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 r=new Date,o=He.SplitHourTime(e);r.setHours(o[0],o[1],0,0);const s=new Date(r.getTime()+n*6e4),a=s.getHours(),d=s.getMinutes();return`${a}:${d}`}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]}`)}static GetDateOrToday(e){return e?e.date:new Date}static InPeriod(e,n,r){return new Date(e)>=new Date(n)&&new Date(e)<=new Date(r)}static GetDatesFromPeriod(e,n){const r=[new Date(e)];let o=e;for(;o<=n;)o=He.AddDays(o,1),r.push(o);return r}static AddDays(e,n){const r=new Date(e);return r.setDate(r.getDate()+n),r}static Eq(e,n){return e.getTime()===n.getTime()}}class Fc{constructor(){c(this,"dragged",!1);c(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 jr{static Get(e){const n=e.split(".");return n[n.length-1]}}const Oc=(()=>{function t(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function e(s,a){const d=localStorage.getItem(`${s}_favourite`);return d?d.split(",").includes(a):!1}function n(s,a){const d=localStorage.getItem(`${s}_favourite`);if(!d){t(s,[a]);return}const l=d.split(",");l.push(a),t(s,l)}function r(s,a){const d=localStorage.getItem(`${s}_favourite`);if(!d)return;const l=d.split(",").filter(u=>u!==a);t(s,l)}function o(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:n,removeFromFavourite:r,setFavourite:t,isFavourite:e,clearFavourite:o}})();/*!
|
|
14
|
+
***************************************************************************** */var or;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof rr=="object"?rr:typeof self=="object"?self:typeof this=="object"?this:d(),r=o(t);typeof n.Reflect<"u"&&(r=o(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function o(l,u){return function(h,f){Object.defineProperty(l,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 d(){return s()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",l={__proto__:[]}instanceof Array,u=!d&&!l,h={create:d?function(){return Gi(Object.create(null))}:l?function(){return Gi({__proto__:null})}:function(){return Gi({})},has:u?function(g,y){return r.call(g,y)}:function(g,y){return y in g},get:u?function(g,y){return r.call(g,y)?g[y]:void 0}:function(g,y){return g[y]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:ep(),p=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:tp(),C=typeof WeakMap=="function"?WeakMap:np(),S=o?Symbol.for("@reflect-metadata:registry"):void 0,w=Jm(),R=Qm(w);function O(g,y,k,B){if(T(k)){if(!Ea(g))throw new TypeError;if(!xa(y))throw new TypeError;return Um(g,y)}else{if(!Ea(g))throw new TypeError;if(!te(y))throw new TypeError;if(!te(B)&&!T(B)&&!xt(B))throw new TypeError;return xt(B)&&(B=void 0),k=De(k),Wm(g,y,k,B)}}e("decorate",O);function L(g,y){function k(B,V){if(!te(B))throw new TypeError;if(!T(V)&&!Xm(V))throw new TypeError;wa(g,y,B,V)}return k}e("metadata",L);function P(g,y,k,B){if(!te(k))throw new TypeError;return T(B)||(B=De(B)),wa(g,y,k,B)}e("defineMetadata",P);function j(g,y,k){if(!te(y))throw new TypeError;return T(k)||(k=De(k)),pa(g,y,k)}e("hasMetadata",j);function Be(g,y,k){if(!te(y))throw new TypeError;return T(k)||(k=De(k)),Wi(g,y,k)}e("hasOwnMetadata",Be);function Me(g,y,k){if(!te(y))throw new TypeError;return T(k)||(k=De(k)),ga(g,y,k)}e("getMetadata",Me);function Qe(g,y,k){if(!te(y))throw new TypeError;return T(k)||(k=De(k)),ya(g,y,k)}e("getOwnMetadata",Qe);function Et(g,y){if(!te(g))throw new TypeError;return T(y)||(y=De(y)),ba(g,y)}e("getMetadataKeys",Et);function Vn(g,y){if(!te(g))throw new TypeError;return T(y)||(y=De(y)),Ca(g,y)}e("getOwnMetadataKeys",Vn);function qm(g,y,k){if(!te(y))throw new TypeError;if(T(k)||(k=De(k)),!te(y))throw new TypeError;T(k)||(k=De(k));var B=Ut(y,k,!1);return T(B)?!1:B.OrdinaryDeleteMetadata(g,y,k)}e("deleteMetadata",qm);function Um(g,y){for(var k=g.length-1;k>=0;--k){var B=g[k],V=B(y);if(!T(V)&&!xt(V)){if(!xa(V))throw new TypeError;y=V}}return y}function Wm(g,y,k,B){for(var V=g.length-1;V>=0;--V){var oe=g[V],ne=oe(y,k,B);if(!T(ne)&&!xt(ne)){if(!te(ne))throw new TypeError;B=ne}}return B}function pa(g,y,k){var B=Wi(g,y,k);if(B)return!0;var V=ji(y);return xt(V)?!1:pa(g,V,k)}function Wi(g,y,k){var B=Ut(y,k,!1);return T(B)?!1:ka(B.OrdinaryHasOwnMetadata(g,y,k))}function ga(g,y,k){var B=Wi(g,y,k);if(B)return ya(g,y,k);var V=ji(y);if(!xt(V))return ga(g,V,k)}function ya(g,y,k){var B=Ut(y,k,!1);if(!T(B))return B.OrdinaryGetOwnMetadata(g,y,k)}function wa(g,y,k,B){var V=Ut(k,B,!0);V.OrdinaryDefineOwnMetadata(g,y,k,B)}function ba(g,y){var k=Ca(g,y),B=ji(g);if(B===null)return k;var V=ba(B,y);if(V.length<=0)return k;if(k.length<=0)return V;for(var oe=new p,ne=[],q=0,M=k;q<M.length;q++){var $=M[q],I=oe.has($);I||(oe.add($),ne.push($))}for(var A=0,U=V;A<U.length;A++){var $=U[A],I=oe.has($);I||(oe.add($),ne.push($))}return ne}function Ca(g,y){var k=Ut(g,y,!1);return k?k.OrdinaryOwnMetadataKeys(g,y):[]}function Sa(g){if(g===null)return 1;switch(typeof g){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return g===null?1:6;default:return 6}}function T(g){return g===void 0}function xt(g){return g===null}function _m(g){return typeof g=="symbol"}function te(g){return typeof g=="object"?g!==null:typeof g=="function"}function jm(g,y){switch(Sa(g)){case 0:return g;case 1:return g;case 2:return g;case 3:return g;case 4:return g;case 5:return g}var k="string",B=Ba(g,s);if(B!==void 0){var V=B.call(g,k);if(te(V))throw new TypeError;return V}return Gm(g)}function Gm(g,y){var k,B;{var V=g.toString;if(zn(V)){var B=V.call(g);if(!te(B))return B}var k=g.valueOf;if(zn(k)){var B=k.call(g);if(!te(B))return B}}throw new TypeError}function ka(g){return!!g}function Zm(g){return""+g}function De(g){var y=jm(g);return _m(y)?y:Zm(y)}function Ea(g){return Array.isArray?Array.isArray(g):g instanceof Object?g instanceof Array:Object.prototype.toString.call(g)==="[object Array]"}function zn(g){return typeof g=="function"}function xa(g){return typeof g=="function"}function Xm(g){switch(Sa(g)){case 3:return!0;case 4:return!0;default:return!1}}function _i(g,y){return g===y||g!==g&&y!==y}function Ba(g,y){var k=g[y];if(k!=null){if(!zn(k))throw new TypeError;return k}}function Ma(g){var y=Ba(g,a);if(!zn(y))throw new TypeError;var k=y.call(g);if(!te(k))throw new TypeError;return k}function Ra(g){return g.value}function $a(g){var y=g.next();return y.done?!1:y}function Ia(g){var y=g.return;y&&y.call(g)}function ji(g){var y=Object.getPrototypeOf(g);if(typeof g!="function"||g===f||y!==f)return y;var k=g.prototype,B=k&&Object.getPrototypeOf(k);if(B==null||B===Object.prototype)return y;var V=B.constructor;return typeof V!="function"||V===g?y:V}function Ym(){var g;!T(S)&&typeof n.Reflect<"u"&&!(S in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(g=Km(n.Reflect));var y,k,B,V=new C,oe={registerProvider:ne,getProvider:M,setProvider:I};return oe;function ne(A){if(!Object.isExtensible(oe))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case g===A:break;case T(y):y=A;break;case y===A:break;case T(k):k=A;break;case k===A:break;default:B===void 0&&(B=new p),B.add(A);break}}function q(A,U){if(!T(y)){if(y.isProviderFor(A,U))return y;if(!T(k)){if(k.isProviderFor(A,U))return y;if(!T(B))for(var Z=Ma(B);;){var J=$a(Z);if(!J)return;var ve=Ra(J);if(ve.isProviderFor(A,U))return Ia(Z),ve}}}if(!T(g)&&g.isProviderFor(A,U))return g}function M(A,U){var Z=V.get(A),J;return T(Z)||(J=Z.get(U)),T(J)&&(J=q(A,U),T(J)||(T(Z)&&(Z=new m,V.set(A,Z)),Z.set(U,J))),J}function $(A){if(T(A))throw new TypeError;return y===A||k===A||!T(B)&&B.has(A)}function I(A,U,Z){if(!$(Z))throw new Error("Metadata provider not registered.");var J=M(A,U);if(J!==Z){if(!T(J))return!1;var ve=V.get(A);T(ve)&&(ve=new m,V.set(A,ve)),ve.set(U,Z)}return!0}}function Jm(){var g;return!T(S)&&te(n.Reflect)&&Object.isExtensible(n.Reflect)&&(g=n.Reflect[S]),T(g)&&(g=Ym()),!T(S)&&te(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,S,{enumerable:!1,configurable:!1,writable:!1,value:g}),g}function Qm(g){var y=new C,k={isProviderFor:function($,I){var A=y.get($);return T(A)?!1:A.has(I)},OrdinaryDefineOwnMetadata:ne,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:oe,OrdinaryOwnMetadataKeys:q,OrdinaryDeleteMetadata:M};return w.registerProvider(k),k;function B($,I,A){var U=y.get($),Z=!1;if(T(U)){if(!A)return;U=new m,y.set($,U),Z=!0}var J=U.get(I);if(T(J)){if(!A)return;if(J=new m,U.set(I,J),!g.setProvider($,I,k))throw U.delete(I),Z&&y.delete($),new Error("Wrong provider for target.")}return J}function V($,I,A){var U=B(I,A,!1);return T(U)?!1:ka(U.has($))}function oe($,I,A){var U=B(I,A,!1);if(!T(U))return U.get($)}function ne($,I,A,U){var Z=B(A,U,!0);Z.set($,I)}function q($,I){var A=[],U=B($,I,!1);if(T(U))return A;for(var Z=U.keys(),J=Ma(Z),ve=0;;){var Aa=$a(J);if(!Aa)return A.length=ve,A;var ip=Ra(Aa);try{A[ve]=ip}catch(rp){try{Ia(J)}finally{throw rp}}ve++}}function M($,I,A){var U=B(I,A,!1);if(T(U)||!U.delete($))return!1;if(U.size===0){var Z=y.get(I);T(Z)||(Z.delete(A),Z.size===0&&y.delete(Z))}return!0}}function Km(g){var y=g.defineMetadata,k=g.hasOwnMetadata,B=g.getOwnMetadata,V=g.getOwnMetadataKeys,oe=g.deleteMetadata,ne=new C,q={isProviderFor:function(M,$){var I=ne.get(M);return!T(I)&&I.has($)?!0:V(M,$).length?(T(I)&&(I=new p,ne.set(M,I)),I.add($),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:V,OrdinaryDeleteMetadata:oe};return q}function Ut(g,y,k){var B=w.getProvider(g,y);if(!T(B))return B;if(k){if(w.setProvider(g,y,R))return R;throw new Error("Illegal state.")}}function ep(){var g={},y=[],k=function(){function q(M,$,I){this._index=0,this._keys=M,this._values=$,this._selector=I}return q.prototype["@@iterator"]=function(){return this},q.prototype[a]=function(){return this},q.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var $=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:$,done:!1}}return{value:void 0,done:!0}},q.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),M},q.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:M,done:!0}},q}(),B=function(){function q(){this._keys=[],this._values=[],this._cacheKey=g,this._cacheIndex=-2}return Object.defineProperty(q.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),q.prototype.has=function(M){return this._find(M,!1)>=0},q.prototype.get=function(M){var $=this._find(M,!1);return $>=0?this._values[$]:void 0},q.prototype.set=function(M,$){var I=this._find(M,!0);return this._values[I]=$,this},q.prototype.delete=function(M){var $=this._find(M,!1);if($>=0){for(var I=this._keys.length,A=$+1;A<I;A++)this._keys[A-1]=this._keys[A],this._values[A-1]=this._values[A];return this._keys.length--,this._values.length--,_i(M,this._cacheKey)&&(this._cacheKey=g,this._cacheIndex=-2),!0}return!1},q.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=g,this._cacheIndex=-2},q.prototype.keys=function(){return new k(this._keys,this._values,V)},q.prototype.values=function(){return new k(this._keys,this._values,oe)},q.prototype.entries=function(){return new k(this._keys,this._values,ne)},q.prototype["@@iterator"]=function(){return this.entries()},q.prototype[a]=function(){return this.entries()},q.prototype._find=function(M,$){if(!_i(this._cacheKey,M)){this._cacheIndex=-1;for(var I=0;I<this._keys.length;I++)if(_i(this._keys[I],M)){this._cacheIndex=I;break}}return this._cacheIndex<0&&$&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},q}();return B;function V(q,M){return q}function oe(q,M){return M}function ne(q,M){return[q,M]}}function tp(){var g=function(){function y(){this._map=new m}return Object.defineProperty(y.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),y.prototype.has=function(k){return this._map.has(k)},y.prototype.add=function(k){return this._map.set(k,k),this},y.prototype.delete=function(k){return this._map.delete(k)},y.prototype.clear=function(){this._map.clear()},y.prototype.keys=function(){return this._map.keys()},y.prototype.values=function(){return this._map.keys()},y.prototype.entries=function(){return this._map.entries()},y.prototype["@@iterator"]=function(){return this.keys()},y.prototype[a]=function(){return this.keys()},y}();return g}function np(){var g=16,y=h.create(),k=B();return function(){function M(){this._key=B()}return M.prototype.has=function($){var I=V($,!1);return I!==void 0?h.has(I,this._key):!1},M.prototype.get=function($){var I=V($,!1);return I!==void 0?h.get(I,this._key):void 0},M.prototype.set=function($,I){var A=V($,!0);return A[this._key]=I,this},M.prototype.delete=function($){var I=V($,!1);return I!==void 0?delete I[this._key]:!1},M.prototype.clear=function(){this._key=B()},M}();function B(){var M;do M="@@WeakMap@@"+q();while(h.has(y,M));return y[M]=!0,M}function V(M,$){if(!r.call(M,k)){if(!$)return;Object.defineProperty(M,k,{value:h.create()})}return M[k]}function oe(M,$){for(var I=0;I<$;++I)M[I]=Math.random()*255|0;return M}function ne(M){if(typeof Uint8Array=="function"){var $=new Uint8Array(M);return typeof crypto<"u"?crypto.getRandomValues($):typeof msCrypto<"u"?msCrypto.getRandomValues($):oe($,M),$}return oe(new Array(M),M)}function q(){var M=ne(g);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var $="",I=0;I<g;++I){var A=M[I];(I===4||I===6||I===8)&&($+="-"),A<16&&($+="0"),$+=A.toString(16).toLowerCase()}return $}}function Gi(g){return g.__=void 0,delete g.__,g}})})(or||(or={}));let Jt;const Wa=new Uint8Array(16);function _a(){if(!Jt&&(Jt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Jt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jt(Wa)}const ae=[];for(let t=0;t<256;++t)ae.push((t+256).toString(16).slice(1));function ja(t,e=0){return ae[t[e+0]]+ae[t[e+1]]+ae[t[e+2]]+ae[t[e+3]]+"-"+ae[t[e+4]]+ae[t[e+5]]+"-"+ae[t[e+6]]+ae[t[e+7]]+"-"+ae[t[e+8]]+ae[t[e+9]]+"-"+ae[t[e+10]]+ae[t[e+11]]+ae[t[e+12]]+ae[t[e+13]]+ae[t[e+14]]+ae[t[e+15]]}const sr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function je(t,e,n){if(sr.randomUUID&&!t)return sr.randomUUID();t=t||{};const r=t.random||(t.rng||_a)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ja(r)}class me{static UUID(){return je()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}const kt=class kt{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const o=n[r];if(this.isPrimitive(o))e[r]instanceof Date?e[r]=new Date(o):e[r]=o;else if(o!=null&&!Array.isArray(o))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(o);else{const s=Reflect.getMetadata(r,e);s&&(e[r]=new s[r](o))}if(Array.isArray(o)){const s=Reflect.getMetadata(r,e);s&&(e[r]=o.map(a=>new s[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){kt.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const o=n.findIndex(s=>s.id===e);kt.RemoveFromClass(o,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const o=n[e].id;o&&r&&r.push(o),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,o){return o}})}static InitClassInstance(e,n){const r=e.constructor(n);return kt.BuildClass(r),r.id=me.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}};c(kt,"GetClassConstructor",e=>(n,r)=>{const o=Reflect.getMetadata(`property:${r}`,n)||{};o[r]=e,Reflect.defineMetadata(r,o,n)});let z=kt;class et{constructor(e){c(this,"id");c(this,"address");c(this,"description");c(this,"contactId");z.BuildClass(this,e)}static Create(){const e=new et;return e.id=me.UUID(),e}}class qn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}c(qn,"staticUrl","");class Pe{constructor(e){c(this,"name","");c(this,"url","");c(this,"src","");c(this,"raw");c(this,"blob");c(this,"file");c(this,"id");c(this,"originalName","");c(this,"fileSystemPath","");z.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${qn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Re&&Re.tagName.toUpperCase()==="SCRIPT"&&Re.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new Pe;return r.id=n??me.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=me.UUID(),r}uploadNewFile(e){this.id||(this.id=me.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=me.UUID()}setFile(e){this.file=e.raw,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 r="";return n&&(r=`@/assets/img/${n}`),new URL(r,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Re&&Re.tagName.toUpperCase()==="SCRIPT"&&Re.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const n=e.split(".");return n[n.length-1]}}class Y{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((o,s)=>s===0?o.toLowerCase():Y.Capitalize(o.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,n,r){return e.substring(e.indexOf(n)+2,e.lastIndexOf(r))}static Translit(e,n){const r={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,o=>{if(o===o.toLowerCase()){const a=Object.keys(r).find(d=>r[d]===o);return a||""}const s=Object.keys(r).find(a=>r[a]===o.toLowerCase());return s?s.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,o=>o===o.toLowerCase()?r[o]:r[o.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 r=e.toLowerCase().replaceAll(/\s/g,""),o=n.toLowerCase().replaceAll(/\s/g,""),s=Y.Translit(r),a=Y.Translit(o);return r.includes(o)||s.includes(o)||r.includes(a)}static SearchIn(e,n){return Y.StringsEquals(e,n)}static FormatToPercentage(e){return`${e}%`}static WrapSubStr(e,n){const r=new RegExp(Y.GetVariants(n).join("|"),"gi");return e.replace(r,`<span class="search-text">${n}</span>`)}static GetVariants(e){const n=Y.Translit(e);return[e,Y.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,Y.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,n){const r=[2,0,1,1,1,2];return e.length+" "+n[e.length%100>4&&e.length%100<20?2:r[e.length%10<5?e.length%10:5]]}}class ar{constructor(e){c(this,"id");c(this,"name","");c(this,"surname","");c(this,"patronymic","");c(this,"isMale",!0);c(this,"dateBirth",new Date);c(this,"contactId");c(this,"slug","");c(this,"postIndex","");c(this,"address","");c(this,"editNameMode",!1);z.BuildClass(this,e)}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=Y.Capitalize(this.name),this.surname=Y.Capitalize(this.surname),this.patronymic=Y.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(e){this.surname=e.surname,this.name=e.name,this.patronymic=e.patronymic}}class tt{constructor(e){c(this,"id");c(this,"number");c(this,"description");c(this,"contactId");z.BuildClass(this,e)}static Create(){const e=new tt;return e.id=me.UUID(),e}}class Qt{constructor(e){c(this,"id");c(this,"address");c(this,"description");z.BuildClass(this,e)}}class Un{constructor(e){c(this,"id");c(this,"address");c(this,"description");z.BuildClass(this,e)}}let Ga=(Ye=class{},c(Ye,"Phone",tt),c(Ye,"FileInfo",Pe),c(Ye,"PostAddress",Qt),c(Ye,"Website",Un),c(Ye,"Email",et),c(Ye,"Human",ar),Ye);class Ve{static Shuffle(e){for(let n=e.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[e[n],e[r]]=[e[r],e[n]]}}static GenerateNumsRange(e,n,r=1){return Array.from({length:(n-e)/r+1},(o,s)=>e+s*r)}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,r)=>n.order=r)}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((r,o)=>e[o]==n[o]))}static SwipeById(e,n,r){const o=e.findIndex(a=>n.id===a.id),s=e.findIndex(a=>r.id===a.id);o||s||([e[o],e[s]]=[e[s],e[o]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const o=e[n];e[n]=e[r],e[r]=o}static MoveUp(e,n){e[n].order=n-1,e[n-1]&&(e[n-1].order=n),[e[n],e[n-1]]=[e[n-1],e[n]]}static MoveDown(e,n){e[n].order=n+1,e[n+1]&&(e[n+1].order=n),[e[n],e[n+1]]=[e[n+1],e[n]]}}var ie=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(ie||{}),de=(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))(de||{}),Za=Object.defineProperty,Xa=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Za(e,n,o),o};const lr=class Wt{constructor(e){c(this,"id");c(this,"model","");c(this,"label","");c(this,"col","");c(this,"operator",de.Eq);c(this,"date1");c(this,"date2");c(this,"value1","");c(this,"boolean",!1);c(this,"number",0);c(this,"type",ie.String);c(this,"set",[]);c(this,"isSet",!1);c(this,"joinTable","");c(this,"joinTableModel","");c(this,"joinTableFk","");c(this,"joinTablePk","");c(this,"joinTableId","");c(this,"joinTableIdCol","");z.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===ie.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===de.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===ie.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===ie.String?this.value1===(e==null?void 0:e.value1):this.type===ie.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}"`:"",r=this.col?`"col":"${this.col}"`:"",o=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===ie.Boolean?`"boolean":${this.boolean}`:"",d=this.type===ie.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",l=this.type===ie.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===ie.Number?`"number":${this.number}`:"",h=this.type===ie.Set||this.operator===de.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===ie.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,o,s,a,d,l,u,h,f].filter(m=>m!=="").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===de.Eq||this.operator===de.Gt||this.operator===de.Lt}isBetweenFilter(){return this.operator===de.Btw}isSetFilter(){return this.operator===de.In}static Create(e,n,r){const o=new Wt;return o.model=e.GetClassName(),o.col=n??"",o.type=r,o.type===ie.Number&&(o.value1="0"),o.type===ie.String&&(o.value1=""),o.type===ie.Boolean&&(o.value1="false",o.operator=de.Eq),o}static CreateFilterModelWithJoin(e,n,r,o,s,a,d,l){const u=new Wt;return u.id=je(),u.joinTable=r,u.joinTablePk=o,u.joinTableFk=s,u.col=n,u.type=a,d&&(u.joinTableId=d),l&&(u.joinTableIdCol=l),u}static CreateFilterModelWithJoinV2(e,n,r,o,s,a,d){const l=new Wt;return l.model=e,l.joinTableModel=r,l.joinTablePk=o,l.joinTableFk=s,l.col=n,l.type=ie.Join,a&&(l.joinTableId=a),d&&(l.joinTableIdCol=d),l}static OnlyIfSecondModelExists(e,n){const r=new Wt;return r.id=je(),r.model=Y.ToCamelCase(e.GetClassName()),r.joinTableModel=Y.ToCamelCase(n.GetClassName()),r.type=ie.Join,r}addToSet(...e){e.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(r=>r!==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=de.Eq;return}this.setDate2(n),this.operator=de.Btw}};Xa([z.GetClassConstructor(String)],lr.prototype,"set");let Wn=lr;class Ya{constructor(){c(this,"operation",de.Lt);c(this,"column","");c(this,"value");c(this,"initial",!0);c(this,"tableName","");c(this,"version","");c(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",r=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,o=r?`"value":"${r}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,o,s,a].filter(d=>d!=="").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 Kt{constructor(e){c(this,"offset",0);c(this,"limit",25);c(this,"cursor",new Ya);c(this,"cursorMode",!1);c(this,"append",!1);c(this,"allLoaded",!1);c(this,"version","");z.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=de.Gt,this.cursor.column=n,this.cursor.tableName=r,this.cursorMode=!0}setLoadMoreV2(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=de.Gt,this.cursor.column=n,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.offset=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,o=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,o,s,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.offset=Number(r.get("offset")),this.limit=Number(r.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,z.BuildClass(this)}}var ke=(t=>(t.Asc="asc",t.Desc="desc",t))(ke||{});class en{constructor(e){c(this,"model","");c(this,"col","");c(this,"order");c(this,"label","");c(this,"default",!1);c(this,"selected",!1);z.BuildClass(this,e)}static Create(e,n,r=ke.Asc,o,s){const a=new en;return a.model=e.GetClassName(),a.col=n??"",a.order=r??ke.Asc,a.label=o??"",a.default=s??!1,a}isAsc(){return this.order===ke.Asc}isDesc(){return this.order===ke.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}"`:"",r=this.order?`"order":"${this.order}"`:"";return[e,n,r].toString()}async fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("s=")+2,e.indexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.model=r.get("model")??"",this.col=r.get("col")??"",this.label=r.get("label")??"",this.default=!!r.get("default"),this.order=r.get("order")??""}asc(){this.order=ke.Asc}desc(){this.order=ke.Desc}}class tn{constructor(){c(this,"model","");c(this,"cols",[]);c(this,"models",[])}static Create(e,n){const r=new tn;return r.model=e.GetClassName(),r.cols=n,r}}var Ja=Object.defineProperty,nn=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Ja(e,n,o),o};const Rt=(be=class{constructor(e){c(this,"id");c(this,"f",[]);c(this,"s",[]);c(this,"p",new Kt);c(this,"t",new tn);z.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new be),this.instance}createFrom(e){const n=new be(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new be(this);return e.f=this.f.map(n=>be.EmptyEntiries(n)),e.s=this.s.map(n=>be.EmptyEntiries(n)),e.p=be.EmptyEntiries(this.p),e.t=be.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([o,s])=>o!=="label"&&s!==""&&s!==null);return Object.fromEntries(r)}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(r=>r.eq(e));z.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new Kt}resetF(){this.f=[]}},c(be,"instance"),be);nn([z.GetClassConstructor(Wn)],Rt.prototype,"f"),nn([z.GetClassConstructor(en)],Rt.prototype,"s"),nn([z.GetClassConstructor(Kt)],Rt.prototype,"p"),nn([z.GetClassConstructor(tn)],Rt.prototype,"t");let $t=Rt,Qa=(qt=class{},c(qt,"SortModel",en),c(qt,"FilterModel",Wn),c(qt,"FTSP",$t),qt);function cr(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ka}=Object.prototype,{getPrototypeOf:_n}=Object,rn=(t=>e=>{const n=Ka.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ie=t=>(t=t.toLowerCase(),e=>rn(e)===t),on=t=>e=>typeof e===t,{isArray:ut}=Array,It=on("undefined");function el(t){return t!==null&&!It(t)&&t.constructor!==null&&!It(t.constructor)&&we(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const dr=Ie("ArrayBuffer");function tl(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&dr(t.buffer),e}const nl=on("string"),we=on("function"),ur=on("number"),sn=t=>t!==null&&typeof t=="object",il=t=>t===!0||t===!1,an=t=>{if(rn(t)!=="object")return!1;const e=_n(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},rl=Ie("Date"),ol=Ie("File"),sl=Ie("Blob"),al=Ie("FileList"),ll=t=>sn(t)&&we(t.pipe),cl=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||we(t.append)&&((e=rn(t))==="formdata"||e==="object"&&we(t.toString)&&t.toString()==="[object FormData]"))},dl=Ie("URLSearchParams"),[ul,hl,fl,ml]=["ReadableStream","Request","Response","Headers"].map(Ie),pl=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function At(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),ut(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let d;for(r=0;r<a;r++)d=s[r],e.call(null,t[d],d,t)}}function hr(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fr=t=>!It(t)&&t!==nt;function jn(){const{caseless:t}=fr(this)&&this||{},e={},n=(r,o)=>{const s=t&&hr(e,o)||o;an(e[s])&&an(r)?e[s]=jn(e[s],r):an(r)?e[s]=jn({},r):ut(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&At(arguments[r],n);return e}const gl=(t,e,n,{allOwnKeys:r}={})=>(At(e,(o,s)=>{n&&we(o)?t[s]=cr(o,n):t[s]=o},{allOwnKeys:r}),t),yl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),wl=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},bl=(t,e,n,r)=>{let o,s,a;const d={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)a=o[s],(!r||r(a,t,e))&&!d[a]&&(e[a]=t[a],d[a]=!0);t=n!==!1&&_n(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Cl=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Sl=t=>{if(!t)return null;if(ut(t))return t;let e=t.length;if(!ur(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},kl=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&_n(Uint8Array)),El=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},xl=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Bl=Ie("HTMLFormElement"),Ml=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),mr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Rl=Ie("RegExp"),pr=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};At(n,(o,s)=>{let a;(a=e(o,s,t))!==!1&&(r[s]=a||o)}),Object.defineProperties(t,r)},$l=t=>{pr(t,(e,n)=>{if(we(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(we(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Il=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return ut(t)?r(t):r(String(t).split(e)),n},Al=()=>{},vl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Gn="abcdefghijklmnopqrstuvwxyz",gr="0123456789",yr={DIGIT:gr,ALPHA:Gn,ALPHA_DIGIT:Gn+Gn.toUpperCase()+gr},Nl=(t=16,e=yr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Pl(t){return!!(t&&we(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Vl=t=>{const e=new Array(10),n=(r,o)=>{if(sn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=ut(r)?[]:{};return At(r,(a,d)=>{const l=n(a,o+1);!It(l)&&(s[d]=l)}),e[o]=void 0,s}}return r};return n(t,0)},zl=Ie("AsyncFunction"),Tl=t=>t&&(sn(t)||we(t))&&we(t.then)&&we(t.catch),wr=((t,e)=>t?setImmediate:e?((n,r)=>(nt.addEventListener("message",({source:o,data:s})=>{o===nt&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),nt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",we(nt.postMessage)),Fl=typeof queueMicrotask<"u"?queueMicrotask.bind(nt):typeof process<"u"&&process.nextTick||wr,b={isArray:ut,isArrayBuffer:dr,isBuffer:el,isFormData:cl,isArrayBufferView:tl,isString:nl,isNumber:ur,isBoolean:il,isObject:sn,isPlainObject:an,isReadableStream:ul,isRequest:hl,isResponse:fl,isHeaders:ml,isUndefined:It,isDate:rl,isFile:ol,isBlob:sl,isRegExp:Rl,isFunction:we,isStream:ll,isURLSearchParams:dl,isTypedArray:kl,isFileList:al,forEach:At,merge:jn,extend:gl,trim:pl,stripBOM:yl,inherits:wl,toFlatObject:bl,kindOf:rn,kindOfTest:Ie,endsWith:Cl,toArray:Sl,forEachEntry:El,matchAll:xl,isHTMLForm:Bl,hasOwnProperty:mr,hasOwnProp:mr,reduceDescriptors:pr,freezeMethods:$l,toObjectSet:Il,toCamelCase:Ml,noop:Al,toFiniteNumber:vl,findKey:hr,global:nt,isContextDefined:fr,ALPHABET:yr,generateString:Nl,isSpecCompliantForm:Pl,toJSONObject:Vl,isAsyncFn:zl,isThenable:Tl,setImmediate:wr,asap:Fl};function F(t,e,n,r,o){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),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}b.inherits(F,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:b.toJSONObject(this.config),code:this.code,status:this.status}}});const br=F.prototype,Cr={};["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=>{Cr[t]={value:t}}),Object.defineProperties(F,Cr),Object.defineProperty(br,"isAxiosError",{value:!0}),F.from=(t,e,n,r,o,s)=>{const a=Object.create(br);return b.toFlatObject(t,a,function(l){return l!==Error.prototype},d=>d!=="isAxiosError"),F.call(a,t.message,e,n,r,o),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const Ol=null;function Zn(t){return b.isPlainObject(t)||b.isArray(t)}function Sr(t){return b.endsWith(t,"[]")?t.slice(0,-2):t}function kr(t,e,n){return t?t.concat(e).map(function(o,s){return o=Sr(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function Ll(t){return b.isArray(t)&&!t.some(Zn)}const Dl=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function ln(t,e,n){if(!b.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!b.isUndefined(w[S])});const r=n.metaTokens,o=n.visitor||h,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(e);if(!b.isFunction(o))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(b.isDate(C))return C.toISOString();if(!l&&b.isBlob(C))throw new F("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(C)||b.isTypedArray(C)?l&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,S,w){let R=C;if(C&&!w&&typeof C=="object"){if(b.endsWith(S,"{}"))S=r?S:S.slice(0,-2),C=JSON.stringify(C);else if(b.isArray(C)&&Ll(C)||(b.isFileList(C)||b.endsWith(S,"[]"))&&(R=b.toArray(C)))return S=Sr(S),R.forEach(function(L,P){!(b.isUndefined(L)||L===null)&&e.append(a===!0?kr([S],P,s):a===null?S:S+"[]",u(L))}),!1}return Zn(C)?!0:(e.append(kr(w,S,s),u(C)),!1)}const f=[],m=Object.assign(Dl,{defaultVisitor:h,convertValue:u,isVisitable:Zn});function p(C,S){if(!b.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(C),b.forEach(C,function(R,O){(!(b.isUndefined(R)||R===null)&&o.call(e,R,b.isString(O)?O.trim():O,S,m))===!0&&p(R,S?S.concat(O):[O])}),f.pop()}}if(!b.isObject(t))throw new TypeError("data must be an object");return p(t),e}function Er(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Xn(t,e){this._pairs=[],t&&ln(t,this,e)}const xr=Xn.prototype;xr.append=function(e,n){this._pairs.push([e,n])},xr.toString=function(e){const n=e?function(r){return e.call(this,r,Er)}:Er;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Hl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Br(t,e,n){if(!e)return t;const r=n&&n.encode||Hl;b.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(e,n):s=b.isURLSearchParams(e)?e.toString():new Xn(e,n).toString(r),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Mr{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){b.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Rr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ql={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Yn=typeof window<"u"&&typeof document<"u",Jn=typeof navigator=="object"&&navigator||void 0,Ul=Yn&&(!Jn||["ReactNative","NativeScript","NS"].indexOf(Jn.product)<0),Wl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_l=Yn&&window.location.href||"http://localhost",ue={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yn,hasStandardBrowserEnv:Ul,hasStandardBrowserWebWorkerEnv:Wl,navigator:Jn,origin:_l},Symbol.toStringTag,{value:"Module"})),...ql};function jl(t,e){return ln(t,new ue.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return ue.isNode&&b.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Gl(t){return b.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Zl(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function $r(t){function e(n,r,o,s){let a=n[s++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),l=s>=n.length;return a=!a&&b.isArray(o)?o.length:a,l?(b.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!d):((!o[a]||!b.isObject(o[a]))&&(o[a]=[]),e(n,r,o[a],s)&&b.isArray(o[a])&&(o[a]=Zl(o[a])),!d)}if(b.isFormData(t)&&b.isFunction(t.entries)){const n={};return b.forEachEntry(t,(r,o)=>{e(Gl(r),o,n,0)}),n}return null}function Xl(t,e,n){if(b.isString(t))try{return(e||JSON.parse)(t),b.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const vt={transitional:Rr,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=b.isObject(e);if(s&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return o?JSON.stringify($r(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e)||b.isReadableStream(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return jl(e,this.formSerializer).toString();if((d=b.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ln(d?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Xl(e)):e}],transformResponse:[function(e){const n=this.transitional||vt.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(b.isResponse(e)||b.isReadableStream(e))return e;if(e&&b.isString(e)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(d){if(a)throw d.name==="SyntaxError"?F.from(d,F.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],t=>{vt.headers[t]={}});const Yl=b.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"]),Jl=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
15
|
+
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||e[n]&&Yl[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Ir=Symbol("internals");function Nt(t){return t&&String(t).trim().toLowerCase()}function cn(t){return t===!1||t==null?t:b.isArray(t)?t.map(cn):String(t)}function Ql(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Kl=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Qn(t,e,n,r,o){if(b.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!b.isString(e)){if(b.isString(r))return e.indexOf(r)!==-1;if(b.isRegExp(r))return r.test(e)}}function ec(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function tc(t,e){const n=b.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,s,a){return this[r].call(this,e,o,s,a)},configurable:!0})})}class ge{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(d,l,u){const h=Nt(l);if(!h)throw new Error("header name must be a non-empty string");const f=b.findKey(o,h);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=cn(d))}const a=(d,l)=>b.forEach(d,(u,h)=>s(u,h,l));if(b.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(b.isString(e)&&(e=e.trim())&&!Kl(e))a(Jl(e),n);else if(b.isHeaders(e))for(const[d,l]of e.entries())s(l,d,r);else e!=null&&s(n,e,r);return this}get(e,n){if(e=Nt(e),e){const r=b.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return Ql(o);if(b.isFunction(n))return n.call(this,o,r);if(b.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Nt(e),e){const r=b.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Qn(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(a){if(a=Nt(a),a){const d=b.findKey(r,a);d&&(!n||Qn(r,r[d],d,n))&&(delete r[d],o=!0)}}return b.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||Qn(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return b.forEach(this,(o,s)=>{const a=b.findKey(r,s);if(a){n[a]=cn(o),delete n[s];return}const d=e?ec(s):String(s).trim();d!==s&&delete n[s],n[d]=cn(o),r[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return b.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&b.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
16
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[Ir]=this[Ir]={accessors:{}}).accessors,o=this.prototype;function s(a){const d=Nt(a);r[d]||(tc(o,a),r[d]=!0)}return b.isArray(e)?e.forEach(s):s(e),this}}ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.reduceDescriptors(ge.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),b.freezeMethods(ge);function Kn(t,e){const n=this||vt,r=e||n,o=ge.from(r.headers);let s=r.data;return b.forEach(t,function(d){s=d.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function Ar(t){return!!(t&&t.__CANCEL__)}function ht(t,e,n){F.call(this,t??"canceled",F.ERR_CANCELED,e,n),this.name="CanceledError"}b.inherits(ht,F,{__CANCEL__:!0});function vr(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function nc(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ic(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),h=r[s];a||(a=u),n[o]=l,r[o]=u;let f=s,m=0;for(;f!==o;)m+=n[f++],f=f%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-a<e)return;const p=h&&u-h;return p?Math.round(m*1e3/p):void 0}}function rc(t,e){let n=0,r=1e3/e,o,s;const a=(u,h=Date.now())=>{n=h,o=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=r?a(u,h):(o=u,s||(s=setTimeout(()=>{s=null,a(o)},r-f)))},()=>o&&a(o)]}const dn=(t,e,n=3)=>{let r=0;const o=ic(50,250);return rc(s=>{const a=s.loaded,d=s.lengthComputable?s.total:void 0,l=a-r,u=o(l),h=a<=d;r=a;const f={loaded:a,total:d,progress:d?a/d:void 0,bytes:l,rate:u||void 0,estimated:u&&d&&h?(d-a)/u:void 0,event:s,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(f)},n)},Nr=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Pr=t=>(...e)=>b.asap(()=>t(...e)),oc=ue.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,ue.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(ue.origin),ue.navigator&&/(msie|trident)/i.test(ue.navigator.userAgent)):()=>!0,sc=ue.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const a=[t+"="+encodeURIComponent(e)];b.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),b.isString(r)&&a.push("path="+r),b.isString(o)&&a.push("domain="+o),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 ac(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function lc(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Vr(t,e){return t&&!ac(e)?lc(t,e):e}const zr=t=>t instanceof ge?{...t}:t;function it(t,e){e=e||{};const n={};function r(u,h,f,m){return b.isPlainObject(u)&&b.isPlainObject(h)?b.merge.call({caseless:m},u,h):b.isPlainObject(h)?b.merge({},h):b.isArray(h)?h.slice():h}function o(u,h,f,m){if(b.isUndefined(h)){if(!b.isUndefined(u))return r(void 0,u,f,m)}else return r(u,h,f,m)}function s(u,h){if(!b.isUndefined(h))return r(void 0,h)}function a(u,h){if(b.isUndefined(h)){if(!b.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function d(u,h,f){if(f in e)return r(u,h);if(f in t)return r(void 0,u)}const l={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:d,headers:(u,h,f)=>o(zr(u),zr(h),f,!0)};return b.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=l[h]||o,m=f(t[h],e[h],h);b.isUndefined(m)&&f!==d||(n[h]=m)}),n}const Tr=t=>{const e=it({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:d}=e;e.headers=a=ge.from(a),e.url=Br(Vr(e.baseURL,e.url),t.params,t.paramsSerializer),d&&a.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let l;if(b.isFormData(n)){if(ue.hasStandardBrowserEnv||ue.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...h]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...h].join("; "))}}if(ue.hasStandardBrowserEnv&&(r&&b.isFunction(r)&&(r=r(e)),r||r!==!1&&oc(e.url))){const u=o&&s&&sc.read(s);u&&a.set(o,u)}return e},cc=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=Tr(t);let s=o.data;const a=ge.from(o.headers).normalize();let{responseType:d,onUploadProgress:l,onDownloadProgress:u}=o,h,f,m,p,C;function S(){p&&p(),C&&C(),o.cancelToken&&o.cancelToken.unsubscribe(h),o.signal&&o.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function R(){if(!w)return;const L=ge.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),j={data:!d||d==="text"||d==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:L,config:t,request:w};vr(function(Me){n(Me),S()},function(Me){r(Me),S()},j),w=null}"onloadend"in w?w.onloadend=R:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(R)},w.onabort=function(){w&&(r(new F("Request aborted",F.ECONNABORTED,t,w)),w=null)},w.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let P=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||Rr;o.timeoutErrorMessage&&(P=o.timeoutErrorMessage),r(new F(P,j.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,w)),w=null},s===void 0&&a.setContentType(null),"setRequestHeader"in w&&b.forEach(a.toJSON(),function(P,j){w.setRequestHeader(j,P)}),b.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),d&&d!=="json"&&(w.responseType=o.responseType),u&&([m,C]=dn(u,!0),w.addEventListener("progress",m)),l&&w.upload&&([f,p]=dn(l),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(h=L=>{w&&(r(!L||L.type?new ht(null,t,w):L),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(h),o.signal&&(o.signal.aborted?h():o.signal.addEventListener("abort",h)));const O=nc(o.url);if(O&&ue.protocols.indexOf(O)===-1){r(new F("Unsupported protocol "+O+":",F.ERR_BAD_REQUEST,t));return}w.send(s||null)})},dc=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const s=function(u){if(!o){o=!0,d();const h=u instanceof Error?u:this.reason;r.abort(h instanceof F?h:new ht(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,s(new F(`timeout ${e} of ms exceeded`,F.ETIMEDOUT))},e);const d=()=>{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:l}=r;return l.unsubscribe=()=>b.asap(d),l}},uc=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},hc=async function*(t,e){for await(const n of fc(t))yield*uc(n,e)},fc=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Fr=(t,e,n,r)=>{const o=hc(t,e);let s=0,a,d=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:h}=await o.next();if(u){d(),l.close();return}let f=h.byteLength;if(n){let m=s+=f;n(m)}l.enqueue(new Uint8Array(h))}catch(u){throw d(u),u}},cancel(l){return d(l),o.return()}},{highWaterMark:2})},un=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Or=un&&typeof ReadableStream=="function",mc=un&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Lr=(t,...e)=>{try{return!!t(...e)}catch{return!1}},pc=Or&&Lr(()=>{let t=!1;const e=new Request(ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Dr=64*1024,ei=Or&&Lr(()=>b.isReadableStream(new Response("").body)),hn={stream:ei&&(t=>t.body)};un&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!hn[e]&&(hn[e]=b.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new F(`Response type '${e}' is not supported`,F.ERR_NOT_SUPPORT,r)})})})(new Response);const gc=async t=>{if(t==null)return 0;if(b.isBlob(t))return t.size;if(b.isSpecCompliantForm(t))return(await new Request(ue.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(b.isArrayBufferView(t)||b.isArrayBuffer(t))return t.byteLength;if(b.isURLSearchParams(t)&&(t=t+""),b.isString(t))return(await mc(t)).byteLength},yc=async(t,e)=>{const n=b.toFiniteNumber(t.getContentLength());return n??gc(e)},ti={http:Ol,xhr:cc,fetch:un&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:s,timeout:a,onDownloadProgress:d,onUploadProgress:l,responseType:u,headers:h,withCredentials:f="same-origin",fetchOptions:m}=Tr(t);u=u?(u+"").toLowerCase():"text";let p=dc([o,s&&s.toAbortSignal()],a),C;const S=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let w;try{if(l&&pc&&n!=="get"&&n!=="head"&&(w=await yc(h,r))!==0){let j=new Request(e,{method:"POST",body:r,duplex:"half"}),Be;if(b.isFormData(r)&&(Be=j.headers.get("content-type"))&&h.setContentType(Be),j.body){const[Me,Qe]=Nr(w,dn(Pr(l)));r=Fr(j.body,Dr,Me,Qe)}}b.isString(f)||(f=f?"include":"omit");const R="credentials"in Request.prototype;C=new Request(e,{...m,signal:p,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:R?f:void 0});let O=await fetch(C);const L=ei&&(u==="stream"||u==="response");if(ei&&(d||L&&S)){const j={};["status","statusText","headers"].forEach(Et=>{j[Et]=O[Et]});const Be=b.toFiniteNumber(O.headers.get("content-length")),[Me,Qe]=d&&Nr(Be,dn(Pr(d),!0))||[];O=new Response(Fr(O.body,Dr,Me,()=>{Qe&&Qe(),S&&S()}),j)}u=u||"text";let P=await hn[b.findKey(hn,u)||"text"](O,t);return!L&&S&&S(),await new Promise((j,Be)=>{vr(j,Be,{data:P,headers:ge.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:C})})}catch(R){throw S&&S(),R&&R.name==="TypeError"&&/fetch/i.test(R.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,t,C),{cause:R.cause||R}):F.from(R,R&&R.code,t,C)}})};b.forEach(ti,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Hr=t=>`- ${t}`,wc=t=>b.isFunction(t)||t===null||t===!1,qr={getAdapter:t=>{t=b.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let s=0;s<e;s++){n=t[s];let a;if(r=n,!wc(n)&&(r=ti[(a=String(n)).toLowerCase()],r===void 0))throw new F(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+s]=r}if(!r){const s=Object.entries(o).map(([d,l])=>`adapter ${d} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
|
|
17
|
+
`+s.map(Hr).join(`
|
|
18
|
+
`):" "+Hr(s[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:ti};function ni(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ht(null,t)}function Ur(t){return ni(t),t.headers=ge.from(t.headers),t.data=Kn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),qr.getAdapter(t.adapter||vt.adapter)(t).then(function(r){return ni(t),r.data=Kn.call(t,t.transformResponse,r),r.headers=ge.from(r.headers),r},function(r){return Ar(r)||(ni(t),r&&r.response&&(r.response.data=Kn.call(t,t.transformResponse,r.response),r.response.headers=ge.from(r.response.headers))),Promise.reject(r)})}const Wr="1.7.9",fn={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{fn[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const _r={};fn.transitional=function(e,n,r){function o(s,a){return"[Axios v"+Wr+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,d)=>{if(e===!1)throw new F(o(a," has been removed"+(n?" in "+n:"")),F.ERR_DEPRECATED);return n&&!_r[a]&&(_r[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,d):!0}},fn.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function bc(t,e,n){if(typeof t!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],a=e[s];if(a){const d=t[s],l=d===void 0||a(d,s,t);if(l!==!0)throw new F("option "+s+" must be "+l,F.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new F("Unknown option "+s,F.ERR_BAD_OPTION)}}const mn={assertOptions:bc,validators:fn},ze=mn.validators;class rt{constructor(e){this.defaults=e,this.interceptors={request:new Mr,response:new Mr}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
19
|
+
`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=it(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&mn.assertOptions(r,{silentJSONParsing:ze.transitional(ze.boolean),forcedJSONParsing:ze.transitional(ze.boolean),clarifyTimeoutError:ze.transitional(ze.boolean)},!1),o!=null&&(b.isFunction(o)?n.paramsSerializer={serialize:o}:mn.assertOptions(o,{encode:ze.function,serialize:ze.function},!0)),mn.assertOptions(n,{baseUrl:ze.spelling("baseURL"),withXsrfToken:ze.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&b.merge(s.common,s[n.method]);s&&b.forEach(["delete","get","head","post","put","patch","common"],C=>{delete s[C]}),n.headers=ge.concat(a,s);const d=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,d.unshift(S.fulfilled,S.rejected))});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let h,f=0,m;if(!l){const C=[Ur.bind(this),void 0];for(C.unshift.apply(C,d),C.push.apply(C,u),m=C.length,h=Promise.resolve(n);f<m;)h=h.then(C[f++],C[f++]);return h}m=d.length;let p=n;for(f=0;f<m;){const C=d[f++],S=d[f++];try{p=C(p)}catch(w){S.call(this,w);break}}try{h=Ur.call(this,p)}catch(C){return Promise.reject(C)}for(f=0,m=u.length;f<m;)h=h.then(u[f++],u[f++]);return h}getUri(e){e=it(this.defaults,e);const n=Vr(e.baseURL,e.url);return Br(n,e.params,e.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(e){rt.prototype[e]=function(n,r){return this.request(it(r||{},{method:e,url:n,data:(r||{}).data}))}}),b.forEach(["post","put","patch"],function(e){function n(r){return function(s,a,d){return this.request(it(d||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}rt.prototype[e]=n(),rt.prototype[e+"Form"]=n(!0)});class ii{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 r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(d=>{r.subscribe(d),s=d}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,d){r.reason||(r.reason=new ht(s,a,d),n(r.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=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new ii(function(o){e=o}),cancel:e}}}function Cc(t){return function(n){return t.apply(null,n)}}function Sc(t){return b.isObject(t)&&t.isAxiosError===!0}const ri={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(ri).forEach(([t,e])=>{ri[e]=t});function jr(t){const e=new rt(t),n=cr(rt.prototype.request,e);return b.extend(n,rt.prototype,e,{allOwnKeys:!0}),b.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return jr(it(t,o))},n}const Q=jr(vt);Q.Axios=rt,Q.CanceledError=ht,Q.CancelToken=ii,Q.isCancel=Ar,Q.VERSION=Wr,Q.toFormData=ln,Q.AxiosError=F,Q.Cancel=Q.CanceledError,Q.all=function(e){return Promise.all(e)},Q.spread=Cc,Q.isAxiosError=Sc,Q.mergeConfig=it,Q.AxiosHeaders=ge,Q.formToJSON=t=>$r(b.isHTMLForm(t)?new FormData(t):t),Q.getAdapter=qr.getAdapter,Q.HttpStatusCode=ri,Q.default=Q;var Pt=(t=>(t.GET="get",t.POST="post",t.PUT="put",t.DELETE="delete",t))(Pt||{});const Vt=(()=>{function t(){const l=o();return!(!l||l==="undefined")}function e(l){l.accessToken&&localStorage.setItem("access_token",l.accessToken),l.refreshToken&&localStorage.setItem("refresh_token",l.refreshToken)}function n(){const l=localStorage.getItem("user");return l?JSON.parse(l).id:""}function r(){const l=localStorage.getItem("user");if(l)return JSON.parse(l)}function o(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function d(l){if(!t())return;const u=Vt.getUser();u&&(u.human=l,localStorage.setItem("user",JSON.stringify(u)))}return{isAuth:t,setTokens:e,getAccessToken:o,getRefreshToken:s,getUserId:n,clearTokens:a,getUser:r,updateHuman:d}})();class oi{constructor(e){c(this,"code",400);c(this,"err","");z.BuildClass(this,e)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(e,n){const r=e.config;if(e.response){if(e.response.status===401&&!r._retry)return r._retry=!0,n.defaults.headers.common.token=Vt.getAccessToken(),e.config.headers.token=Vt.getAccessToken(),e.config.baseURL=void 0,n.request(r);if(e.response.status>=500){if(e.response.data==="неверный логин или пароль"){pe.Error("Неверный логин или пароль");return}pe.Error("Ошибка на сервере, попробуйте позже")}if(e.response.status>=400&&e.response.status<500){const o=new oi(e.response.data).getErr();o&&pe.Error(o)}return Promise.reject(e)}}}const ft=Q.create();ft.interceptors.response.use(t=>t,async t=>await oi.Handle(t,ft));class zt{static async Get(e,n,r){return await ft({method:Pt.GET,url:e,headers:n,responseType:r})}static async Post(e,n,r,o){return n["Content-Type"]="multipart/form-data",await ft({method:Pt.POST,url:e,headers:n,responseType:r,data:o})}static async Put(e,n,r){return n["Content-Type"]="multipart/form-data",await ft({method:Pt.PUT,url:e,headers:n,data:r})}static async Delete(e,n){return await ft({method:Pt.DELETE,url:e,headers:n})}}class pn{constructor(e){c(this,"name","");z.BuildClass(this,e)}static Set(){}static Get(e,n){const r=sessionStorage.getItem(e);if(r){const o=JSON.parse(r),s=new Date,a=new Date(o.time),d=s.getTime()-a.getTime();return Math.round(d/6e4)>(n||10)?null:o.data}else return null}static async TryGet(e,n,r){let o;return o=pn.Get(e,r),o||(o=await n()),o}}var si=(t=>(t.ContentType="Content-Type",t.Token="token",t))(si||{}),Gr=(t=>(t.ApplicationJson="application/json",t.MultipartFormData="multipart/form-data",t))(Gr||{});const G=class G{static Setup(e,n,r){this.baseUrl=e,this.apiVersion=n,this.apiHost=r}static newWebSocket(e){const n=this.apiHost.replace("http","ws")+"/ws/"+e;return new WebSocket(n)}static download(e,n){const r=G.getDownloadFileName(e,n.headers),o=URL.createObjectURL(n.data),s=document.createElement("a");s.href=o,s.setAttribute("download",r),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click()}static getDownloadFileName(e,n){if(e)return e;const r=n["content-disposition"],o=r.indexOf('"')+1,s=r.lastIndexOf('"'),a=r.substring(o,s);return a||"file"}static getHeaders(e){const n=$e.Get(Se.AccessToken);return e||(e=G.headers),n&&(e[si.Token]=n),e??G.headers}static returnResponse(e,n){if(n)return e!=null&&e.isBlob?G.download(e.downloadFileName,n):n.data}static async Get(e){return G.returnResponse(e,await zt.Get(G.buildUrl((e==null?void 0:e.query)??""),G.getHeaders(e==null?void 0:e.headers),G.getResponseType(e==null?void 0:e.isBlob)))}static async Post(e){return G.returnResponse(e,await zt.Post(G.buildUrl(e==null?void 0:e.query),G.getHeaders(e==null?void 0:e.headers),G.getResponseType(e.isBlob),G.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Put(e){return G.returnResponse(e,await zt.Put(G.buildUrl(e==null?void 0:e.query),G.getHeaders(e==null?void 0:e.headers),G.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Delete(e){return G.returnResponse(e,await zt.Delete(G.buildUrl(e==null?void 0:e.query),G.getHeaders(e==null?void 0:e.headers)))}static async Subscribe(e){const{query:n}=e;return new EventSource(G.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 r=new FormData;if(r.append("form",JSON.stringify(e)),n)for(const o of n)o.file&&r.append(o.id??"files",o.file,o.originalName);return r}};c(G,"baseUrl",""),c(G,"apiVersion",""),c(G,"apiHost",""),c(G,"headers",{[si.ContentType]:Gr.ApplicationJson});let K=G;const x=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},kc={},Ec={style:{"text-align":"center"}};function xc(t,e){return i.openBlock(),i.createElementBlock("div",Ec,e[0]||(e[0]=[i.createElementVNode("h1",null,"Страница не найдена",-1)]))}const ai=x(kc,[["render",xc]]),Bc=[{path:"/:pathMatch(.*)*",name:"NotFound",component:ai}],Le=class Le{static Set(e){this.router=e,this.AddRoutes(Bc)}static Get(){return this.router}static AddRoutes(e){e.forEach(n=>{this.Get().addRoute(n)})}static async To(e){await this.Get().push(e)}static async ToHome(){}static async Replace(e){await this.Get().replace(e)}static Id(){return Le.GetStringParam("id")}static Slug(){return Le.GetStringParam("slug")}static async Back(){this.Get().go(-1)}static GetQid(){return Le.GetStringQueryParam("qid")}static Route(){return this.Get().currentRoute.value}static RouterPushBlank(e){const n=this.Get().resolve({path:e});window.open(n==null?void 0:n.href,"_blank")}static GetPath(){var n;const e=(n=Le.Route())==null?void 0:n.path.split("/");return!e||e.length<=0?"":e[e.length-1]}static async ToAdmin(e){if(!e){await this.Get().push("/admin");return}let n=e;n[0]==="/"&&(n=e.substring(1)),await Le.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 SetQueryParam(e,n){const r=new URL(window.location);r.searchParams.set(e,String(n)),history.replaceState(null,"",r)}static Resolve(e){return this.Get().resolve(e)}};c(Le,"router"),c(Le,"ChangeDocumentTitle",(e="")=>{let n=Le.Route().meta.title??e;n&&e&&(n=n+` | ${e}`),document.title=n});let Ge=Le;class X{constructor(e,n){c(this,"items",i.reactive([]));c(this,"item");c(this,"count",i.ref(0));c(this,"classConstructor");c(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))}getUrl(e){return e?`${this.url}/${e}`:this.url}async GetAll(e){let n;const r=K.Get;e&&e.withCache?n=await pn.TryGet(this.getUrl(),r):n=await r({query:this.getUrl()}),Array.isArray(n)?this.SetAll(n):this.SetAllWithCount(n)}async Get(e){e||(e=Ge.Id()),this.Set(await K.Get({query:this.getUrl(e)}))}async FTSP(e){var a;const r=((e==null?void 0:e.ftsp)??$t.Get()).clearForHTTP(),o={payload:{ftsp:r},query:this.getUrl("ftsp")},s=await K.Post(o);if(!(!s||!s.ftsp))if(Array.isArray(s.data))this.SetAll(s.data);else{if(r.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,r={payload:n,query:this.getUrl()};return n.getFileInfos&&(r.fileInfos=n.getFileInfos(),r.fileInfos.forEach(o=>o.url="")),await K.Post(r)}async CreateAndSet(e){const n=await this.Create(e);this.Set(n)}async CreateMany(e){if(!e)return;const n=[];e.forEach(r=>{n.push(new Promise(()=>this.Create(r)))}),Promise.all(n)}async Update(e){const n=e??this.item,r={query:this.getUrl(`${n.id}`),payload:n};return n.getFileInfos&&(r.fileInfos=n.getFileInfos(),r.fileInfos.forEach(o=>o.url="")),await K.Put(r)}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 K.Delete({query:this.getUrl(`${e}`)}),this.RemoveItem(e)}async UpdateMany(e){if(e||(e=this.items),!e)return;const n=[];e.forEach(r=>{n.push(new Promise(()=>this.Update(r)))}),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(r=>r.id===e);this.items.splice(n,1)}AppendToAll(e){if(e){if(Array.isArray(e)){const n=e.map(r=>new this.classConstructor(r));this.items.push(...n);return}this.items.push(new this.classConstructor(e))}}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){z.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(e){if(e){if(Array.isArray(e)){const n=e.map(r=>new this.classConstructor(r));this.items.unshift(...n);return}this.items.unshift(new this.classConstructor(e))}}get Items(){return this.items}get Item(){return this.item}get Count(){return this.count}}function Mc(t,e){t=="left"&&e.next(),t=="right"&&e.prev()}const Rc=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class $c{static GetRandColor(e){return Ve.GetRandEL(e??Rc)}}function Zr(t,e){const n=[],r=e||ke.Asc,o=r===ke.Asc?ke.Desc:ke.Asc;return Object.values(t).forEach(s=>{n.push(s(r)),n.push(s(o))}),n.length>0&&!n.some(s=>s.default)&&(n[0].default=!0),e&&n.forEach(s=>{s.default&&(s.default=s.order===e)}),n}let Ic=class{constructor(){c(this,"startHour",9);c(this,"endHour",19);c(this,"timelinePxHeight",50);c(this,"timelineStep",Bt.FiveMinutes);c(this,"activeTime","");c(this,"activeObjectId","");c(this,"dragged",!1);c(this,"draggedStartTime","");c(this,"draggedEndTime","");c(this,"timelines",Yt[Bt.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=Yt[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 li=t=>t===8||t===46,Ac=t=>t>46&&t<58,vc=t=>t>34&&t<41,Nc=t=>t+".",Pc=(t,e,n)=>{li(e)||vc(e)||(!Ac(e)||n>9)&&t.preventDefault()};function Vc(t,e){if(e>8){let n=t.substring(0,2).replace(".","1");Number(n)>31&&(n="31");let r=t.substring(3,5).replace(".","1");Number(r)>12&&(r="12");let o=t.substring(6,10).replace(".","1");Number(o)>2100&&(o="2100"),t=n+"."+r+"."+o}return t}function zc(t){const e=t.keyCode;let n=t.srcElement.value;const r=n.length;Pc(t,e,r),!li(e)&&(r===2||r===5)&&(n=Nc(n));const o=t.srcElement.value+String.fromCharCode(t.which);if(li(e)){t.srcElement.value=n;return}n.length===0&&Number(o)>3&&(n="3",t.preventDefault()),n.length===1&&Number(o)>31&&(n="31",t.preventDefault()),o.length===5&&Number(o.substring(3,5))>12&&(n=n.substring(0,3)+"12",t.preventDefault()),n=Vc(n,r),t.srcElement.value=n}const Tc=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],Fc="ru-RU";class He{constructor(){c(this,"locale","ru-RU")}static Format(e,n){if(!e)return"";const r={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return n&&(r.year=n.year||n.year===void 0?n.year:r.year,r.month=n.month||n.month===void 0?n.month:r.month,r.day=n.day||n.day===void 0?n.day:r.day,r.hour=n.hour??r.hour,r.minute=n.minute??r.minute),Intl.DateTimeFormat(Fc,r).format(new Date(e))}static FromRuStr(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}static GetPeriod(e,n,r){return`${this.Format(e,r)}-${this.Format(n,r)}`}static GetShortDayName(e){return e?Tc[e.getDay()]:""}static GetCurrentWeekPeriod(e){const n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),o=new Date(n.getFullYear(),n.getMonth(),r.getDate()+7);return this.GetPeriod(r,o,e||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(e,n){const r=new Date,o=new Date,s=He.SplitHourTime(e),a=He.SplitHourTime(n);return r.setHours(s[0],s[1],0,0),o.setHours(a[0],a[1],0,0),(o.getTime()-r.getTime())/1e3/60}static HourTimeinMunutes(e){const n=He.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 r=new Date,o=He.SplitHourTime(e);r.setHours(o[0],o[1],0,0);const s=new Date(r.getTime()+n*6e4),a=s.getHours(),d=s.getMinutes();return`${a}:${d}`}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]}`)}static GetDateOrToday(e){return e?e.date:new Date}static InPeriod(e,n,r){return new Date(e)>=new Date(n)&&new Date(e)<=new Date(r)}static GetDatesFromPeriod(e,n){const r=[new Date(e)];let o=e;for(;o<=n;)o=He.AddDays(o,1),r.push(o);return r}static AddDays(e,n){const r=new Date(e);return r.setDate(r.getDate()+n),r}static Eq(e,n){return e.getTime()===n.getTime()}}class Oc{constructor(){c(this,"dragged",!1);c(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 Xr{static Get(e){const n=e.split(".");return n[n.length-1]}}const Lc=(()=>{function t(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function e(s,a){const d=localStorage.getItem(`${s}_favourite`);return d?d.split(",").includes(a):!1}function n(s,a){const d=localStorage.getItem(`${s}_favourite`);if(!d){t(s,[a]);return}const l=d.split(",");l.push(a),t(s,l)}function r(s,a){const d=localStorage.getItem(`${s}_favourite`);if(!d)return;const l=d.split(",").filter(u=>u!==a);t(s,l)}function o(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:n,removeFromFavourite:r,setFavourite:t,isFavourite:e,clearFavourite:o}})();/*!
|
|
20
20
|
* vue-router v4.5.0
|
|
21
21
|
* (c) 2024 Eduardo San Martin Morote
|
|
22
22
|
* @license MIT
|
|
23
|
-
*/function Gr(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}var Zr;(function(t){t.pop="pop",t.push="push"})(Zr||(Zr={}));var Xr;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Xr||(Xr={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Yr;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Yr||(Yr={}));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 Dc(t,e,n){const r=()=>{t[e].delete(n)};i.onUnmounted(r),i.onDeactivated(r),i.onActivated(()=>{t[e].add(n)}),t[e].add(n)}function Hc(t){if(process.env.NODE_ENV!=="production"&&!i.getCurrentInstance()){Gr("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"&&Gr("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)}class qc{constructor(){c(this,"list",[]);c(this,"defaultSortModel");c(this,"changeFlag",!1)}Set(e){this.Reset(),e&&(Array.isArray(e)?this.list=e:this.list=Wr(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 Ze=new qc;function Uc(){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?s():a()}}}const _c=(()=>{const t=(s,a)=>i.onBeforeMount(async()=>{Ze.Set(a==null?void 0:a.sortsLib),Ze.Set(a==null?void 0:a.sortsLib),await s()}),{saveButtonClick:e,showConfirmModal:n}=Uc(),r=s=>Hc((a,d,l)=>{n((s||o)(),l)}),o=s=>async()=>{e.value=!0;try{s&&await s()}catch(a){console.log(a);return}};return{onBeforeMount:t,onBeforeRouteLeave:r,submit:o}})();function Jr(t,e){const n=[];if(t)for(let r=0;r<Math.ceil(t.length/e);r++)n[r]=t.slice(r*e,r*e+e);return n}class li{constructor(){c(this,"items",[]);c(this,"idx",0);c(this,"key","")}preSelect(){const e=Ge.GetStringQueryParam(this.key);if(!e||e==="undefined"){this.Select(0);return}const n=this.items.findIndex(r=>r.slug===e);n>-1&&this.Select(n)}static Create(e,n){const r=new li;return r.key=e,r.items=n,r.items.length&&r.preSelect(),r}Select(e){if(this.items.length){if(e===void 0)return this.preSelect();this.idx=e,Ge.SetQueryParam(this.key,this.GetSlug())}}GetMenu(){return this.items[this.idx]}GetComponent(){return this.items[this.idx].component}GetSlug(){return this.items[this.idx].slug}}const Nn=class Nn{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 r=n.replace(/\+7|[^\d]/g,""),o=r.length;switch(!0){case o===0:e="";break;case(o===1&&n.length===1&&r==="7"):case(o===1&&n.length===1&&r==="8"):e="+7 (";break;case o<4:e=`+7 (${r}`;break;case o<7:e=`+7 (${r.slice(0,3)}) ${r.slice(3)}`;break;case o<9:e=`+7 (${r.slice(0,3)}) ${r.slice(3,6)}-${r.slice(6,8)}`;break;default:e=`+7 (${r.slice(0,3)}) ${r.slice(3,6)}-${r.slice(6,8)}-${r.slice(8,10)}`;break}}return e}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};c(Nn,"validatePhone",(e,n,r)=>{Nn.getPhoneRegExp().test(n)||!n?r():r(new Error("Пожалуйста, введите корректный номер телефона"))});let ci=Nn;class Wc{static Count(e){const n=e.filter(s=>s.rating!==0);let r=0;n.forEach(s=>r=r+s.rating);const o=r/n.length;return isNaN(o)?0:Number((r/n.length).toFixed(2))}}class jc{static async Auth(e){e&&e()}static Dev(){}}class Gc{constructor(){c(this,"startHour",9);c(this,"startHM",`${this.startHour}:00`);c(this,"endHour",19);c(this,"endHM",`${this.endHour}:00`);c(this,"timelinePxHeight",50);c(this,"timelineStep",Bt.FiveMinutes);c(this,"timelines",Yt[Bt.FiveMinutes])}periodIsCorrect(e,n){return D.GtOrEq(e,this.startHM)&&D.GtOrEq(this.endHM,n)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Yt[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,r,o){return o.filter(s=>s.id!==r).every(s=>!D.PeriodsIntersects(e,n,s.startTime,s.endTime))}sortByStartTime(e){e.sort((n,r)=>D.HMtoM(n.startTime)-D.HMtoM(r.startTime))}}const Zc=-68;function Xc(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(t),r=e??Zc;let o=0;n&&(o=n.getBoundingClientRect().top+r+document.body.scrollTop),o&&document.body.scrollTo({top:o,behavior:"smooth"})}class Yc{static Sort(e){e.forEach((n,r)=>n.order=r)}}function Jc(t,e){let n=!0;return t.value.validate(r=>(r||(n=!1),n)),n}const Qc=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 gn{constructor(e){c(this,"id");c(this,"message","");c(this,"userName");c(this,"createdOn",new Date);c(this,"chatId");c(this,"type","message");z.BuildClass(this,e)}static Create(e,n,r,o){const s=new gn;return s.id=je(),s.chatId=e,s.message=r,s.userName=o,s}static CreatePingMessage(){const e=new gn;return e.type="ping",e.id=je(),e}isMessage(){return this.type==="message"||this.type===""}}const Kc="";class ed{constructor(e="",n="",r="set"){c(this,"client");c(this,"endpoint","");c(this,"query","");c(this,"period",2e4);z.BuildClass(this,{endpoint:e,query:n,mutation:r}),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(gn.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,Kc.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)}}let td=(H=class{},c(H,"Arrays",Ve),c(H,"Axios",zt),c(H,"BaseStore",X),c(H,"Cache",pn),c(H,"Classes",z),c(H,"CarouselSwipe",Bc),c(H,"Color",Rc),c(H,"CreateSortModels",Wr),c(H,"Cursor",$c),c(H,"DateMask",Vc),c(H,"Dates",He),c(H,"Dragger",Fc),c(H,"Extension",jr),c(H,"Favourite",Oc),c(H,"Hooks",_c),c(H,"HttpClient",K),c(H,"Id",me),c(H,"MakeCarousel",Jr),c(H,"Period",On),c(H,"PhoneService",ci),c(H,"Rating",Wc),c(H,"Router",Ge),c(H,"RouterGuard",jc),c(H,"Scheduler",Gc),c(H,"Scroll",Xc),c(H,"Sorter",Yc),c(H,"Static",Hn),c(H,"Strings",Y),c(H,"Time",D),c(H,"Timer",Mt),c(H,"Token",Vt),c(H,"Menus",li),c(H,"validate",Jc),c(H,"WaitElement",Qc),c(H,"WebSocketClient",ed),H);class nd{constructor(){c(this,"limit",25);c(this,"count",0);c(this,"curPage",1);c(this,"storeModule","")}setCurPage(e){this.curPage=e}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const id=new nd;let rd=class{async Login(e=Ne.Form.GetValues()){const n=await K.Post({query:"auth/login",payload:e});if(!n)throw"Ошибка авторизации";v.Auth.Status.SetState(n)}async LoginAs(e){await K.Post({query:"auth/login-as",payload:{email:e}})}async Register(e=Ne.Form.GetValues()){await K.Post({query:"auth/register",payload:e})}async RestorePassword(e=Ne.Form.GetValues()){await K.Post({query:"auth/restore-password",payload:e})}async PasswordChange(e=Ne.Form.GetValues()){e.id=v.H.Router.GetStringParam("userId"),await K.Put({query:"auth/password-change",payload:e})}async RefreshToken(){await K.Post({query:"auth/refresh-token",payload:{refreshToken:Vt.getRefreshToken()}})}async CheckUuid(e){await K.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}};const od=new rd;var sd=Object.defineProperty,yn=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&sd(e,n,o),o};const Tt=class va{constructor(e){c(this,"id");c(this,"description","");c(this,"time","");c(this,"latitude","");c(this,"longitude","");c(this,"emails",[]);c(this,"postAddresses",[new Qt]);c(this,"phones",[]);c(this,"websites",[]);z.BuildClass(this,e)}addEmail(){const e=et.Create();return e.contactId=this.id,this.emails.push(e),e}addPhone(){const e=tt.Create();return e.contactId=this.id,this.phones.push(e),e}static Create(){const e=new va;return e.id=me.UUID(),e}removeEmail(e){z.RemoveFromClassById(e,this.emails)}removePhone(e){z.RemoveFromClassById(e,this.phones)}addPostAddress(){this.postAddresses.push(new Qt)}addWebsite(){this.websites.push(new qn)}pushFirst(){this.emails.length||this.emails.push(new et),this.phones.length||this.phones.push(new tt)}getCoords(){return[Number(this.latitude),Number(this.longitude)]}updateDescription(e){this.description=e}updateTime(e){this.time=e}updateLatitude(e){this.latitude=e}updateLongitutde(e){this.longitude=e}};yn([z.GetClassConstructor(et)],Tt.prototype,"emails"),yn([z.GetClassConstructor(Qt)],Tt.prototype,"postAddresses"),yn([z.GetClassConstructor(tt)],Tt.prototype,"phones"),yn([z.GetClassConstructor(qn)],Tt.prototype,"websites");let ad=Tt,ld=class extends X{constructor(){super(ad,"contacts")}};const cd=new ld;let dd=class extends X{constructor(){super(et,"emails")}};const ud=new dd;let hd=class extends X{constructor(){super(Pe,"file-infos")}};const fd=new hd;class di{constructor(e){c(this,"id");c(this,"ftsp");c(this,"name","");z.BuildClass(this,e)}static Create(e){const n=new di;return n.id=me.UUID(),n.ftsp=JSON.stringify(e),n}}let md=class extends X{constructor(){super(di,"ftsp-presets")}};const pd=new md;let gd=class extends X{constructor(){super(rr,"humans")}};const yd=new gd;let wd=class extends X{constructor(){super(tt,"phones")}};const bd=new wd;class Cd{constructor(e){c(this,"id");c(this,"nameRus","");z.BuildClass(this,e)}}var Sd=Object.defineProperty,kd=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Sd(e,n,o),o};class Qr{constructor(e){c(this,"id");c(this,"nameRus","");c(this,"fields",[]);z.BuildClass(this,e)}}kd([z.GetClassConstructor(Cd)],Qr.prototype,"fields");let Ed=class extends X{constructor(){super(Qr,"schemas")}};const xd=new Ed;class Kr{constructor(e){c(this,"id","");c(this,"value","");c(this,"label","");c(this,"key","");c(this,"description","");c(this,"route","");c(this,"searchElementMetas",[]);z.BuildClass(this,e)}}class Bd{constructor(e){c(this,"id");c(this,"name","");c(this,"label","");z.BuildClass(this,e)}}var Md=Object.defineProperty,eo=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Md(e,n,o),o};class mt{constructor(e){c(this,"id");c(this,"key","");c(this,"label","");c(this,"order",0);c(this,"route","");c(this,"table","");c(this,"active",!0);c(this,"searchColumn","");c(this,"descriptionColumn","");c(this,"labelColumn","");c(this,"valueColumn","");c(this,"options",[]);c(this,"searchGroupMetaColumns",[]);z.BuildClass(this,e)}}eo([z.GetClassConstructor(Kr)],mt.prototype,"options"),eo([z.GetClassConstructor(Bd)],mt.prototype,"searchGroupMetaColumns");class ui{constructor(e){c(this,"query","");c(this,"key","");c(this,"params","");c(this,"suggester",!1);c(this,"mustBeTranslated",!0);c(this,"options",[]);c(this,"searchGroupId","");c(this,"searchGroups",[]);c(this,"searchGroup",new mt);c(this,"searchObjects",[]);c(this,"pagination",new Kt);c(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(n=>new mt(n))),e.searchGroup&&(this.searchGroup=new mt(e.searchGroup)),e.options&&(this.options=e.options.map(n=>new Kr(n))),this.count=e.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(e){const n=this.searchGroups.find(r=>r.id===e);n?this.searchGroup=n:this.searchGroup=new mt}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(Ge.Route().query.groupId)}setQuery(){const e=Ge.Route().query.query;e&&(this.query=e)}}let Rd=class{constructor(){c(this,"isSearchDrawerOpen",i.ref(!1));c(this,"searchModel",i.reactive(new ui));c(this,"searchGroups",i.reactive([]));c(this,"count",0)}async Search(e){const n=await K.Get({query:`?key=${e.key}&query=${e.query}`});n&&n.searchGroup&&n.searchGroup.options.forEach(r=>{e.searchObjects.push({id:r.id,value:r.value,label:r.label,description:r.description})})}async mainSearch(e){this.SetSearchModel(await K.Get({query:`/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(r=>{r.options=[]});const n=await K.Get({query:`main?searchModel=${e.toUrl()}`});this.SetSearchModel(n)}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new ui}SetSearchModel(e){e&&(this.searchModel=new ui(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const to=new Rd;class hi{constructor(e){c(this,"id");c(this,"login","");c(this,"email","");c(this,"password","");z.BuildClass(this,e)}static Create(){const e=new hi;return e.id=me.UUID(),e}}let $d=class extends X{constructor(){super(hi,"users-accounts")}};const Id=new $d;var no=(t=>(t.simple="simple",t.oneToMany="oneToMany",t.manyToMany="manyToMany",t))(no||{}),he=(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))(he||{});class io{constructor(e){c(this,"id");c(this,"name",he.String);c(this,"valueRelation",no.simple);z.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===he.Radio)return"RadioProp";if(this.name===he.Set)return"SetProp";if(this.name===he.Number)return"NumberProp";if(this.name===he.String)return"StringProp"}}let Ad=class extends X{constructor(){super(io,"value-types")}};const vd=new Ad;let Nd=(Ce=class{},c(Ce,"Auth",od),c(Ce,"Contacts",cd),c(Ce,"Emails",ud),c(Ce,"FileInfos",fd),c(Ce,"FTSPPresets",pd),c(Ce,"Humans",yd),c(Ce,"Phones",bd),c(Ce,"Schemas",xd),c(Ce,"UserAccounts",Id),c(Ce,"ValueTypes",vd),c(Ce,"Search",to),Ce);var fi=(t=>(t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl",t))(fi||{});let Pd=(Je=class{},c(Je,"Orders",ke),c(Je,"Sizes",fi),c(Je,"Statuses",fe),c(Je,"DataTypes",ie),c(Je,"ValueTypes",he),c(Je,"Operators",de),Je);class Vd{constructor(){c(this,"title","");c(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 zd=new Vd;class Td{constructor(){c(this,"menu",[]);c(this,"path","");c(this,"isOpen",!0);c(this,"filterString","")}Set(e){this.menu=e}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(e=>{var n;return Y.SearchIn(e.name,this.filterString)||((n=e.children)==null?void 0:n.some(r=>Y.SearchIn(r.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(r=>Y.SearchIn(r.name,this.filterString)):e.children}}const Fd=new Td;class Od{constructor(){c(this,"Menu",i.reactive(Fd));c(this,"Head",i.reactive(zd))}}const Ld=new Od;class Dd extends Qi{constructor(){super(...arguments);c(this,"confirmButtonText","Да");c(this,"cancelButtonText","Нет");c(this,"resolve");c(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((r,o)=>{this.resolve=r,this.reject=o})}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 qe=new Dd;class Hd extends Ji{Show(){super.show()}Hide(){super.hide()}}const qd=new Hd;class ot{}c(ot,"Admin",Ld),c(ot,"Dialog",qe),c(ot,"Loading",qd),c(ot,"Notify",pe),c(ot,"Btn",Ke),c(ot,"Input",Gi);class v{}c(v,"Auth",i.reactive(Ne)),c(v,"UI",i.reactive(ot)),c(v,"Paginator",i.reactive(id)),c(v,"S",Nd),c(v,"H",td),c(v,"C",ja),c(v,"T",Pd),c(v,"F",Ja);class ro{constructor(e){c(this,"id");c(this,"num","");c(this,"fileInfoId");c(this,"fileInfo",new Pe);v.H.Classes.BuildClass(this,e)}}class Ft{constructor(e){c(this,"id");c(this,"passportId");c(this,"fileInfoId");c(this,"fileInfo",new v.C.FileInfo);c(this,"order",0);z.BuildClass(this,e)}static Create(e){const n=new Ft;return n.id=v.H.Id.UUID(),n.passportId=e,n}}var Ud=Object.defineProperty,_d=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Ud(e,n,o),o};class mi{constructor(e){c(this,"id");c(this,"num","");c(this,"seria","");c(this,"division","");c(this,"divisionCode","");c(this,"citzenship","");c(this,"date",new Date);c(this,"address","");c(this,"passportScans",[]);z.BuildClass(this,e)}}_d([z.GetClassConstructor(Ft)],mi.prototype,"passportScans");class oo{constructor(e){c(this,"id");c(this,"num","");c(this,"fileInfoId");c(this,"fileInfo",new Pe);v.H.Classes.BuildClass(this,e)}}const Wd=Object.freeze(Object.defineProperty({__proto__:null,Inn:ro,Passport:mi,PassportScan:Ft,Snils:oo},Symbol.toStringTag,{value:"Module"}));let jd=class extends X{constructor(){super(ro,"inns")}};const Gd=new jd;let Zd=class extends X{constructor(){super(Ft,"passport-scans")}};const Xd=new Zd;let Yd=class extends X{constructor(){super(mi,"passports")}};const Jd=new Yd;let Qd=class extends X{constructor(){super(oo,"snilss")}};const Kd=new Qd,eu=Object.freeze(Object.defineProperty({__proto__:null,C:Wd,S:Object.freeze(Object.defineProperty({__proto__:null,Inns:Gd,PassportScans:Xd,Passports:Jd,Snilss:Kd},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class st{constructor(e){c(this,"id");c(this,"name","");c(this,"score",0);c(this,"order",0);c(this,"showMoreQuestions",!1);c(this,"showOther",!1);c(this,"fieldId");c(this,"isMatrixY",!1);v.H.Classes.BuildClass(this,e)}static Create(e){const n=new st;return n.id=v.H.Id.UUID(),n.fieldId=e,n}}class so{constructor(e){c(this,"id");c(this,"name","");c(this,"order",0);c(this,"fieldId");v.H.Classes.BuildClass(this,e)}}class pi{constructor(e){c(this,"id");c(this,"name","");c(this,"order",0);v.H.Classes.BuildClass(this,e)}}class pt{constructor(e){c(this,"id");c(this,"name","");c(this,"fieldId");v.H.Classes.BuildClass(this,e)}static Create(e){const n=new pt;return n.id=v.H.Id.UUID(),n.fieldId=e,n}}var tu=Object.defineProperty,Ot=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&tu(e,n,o),o};const at=class zn{constructor(e){c(this,"id");c(this,"name","");c(this,"code","");c(this,"valueTypeId");c(this,"order",0);c(this,"ageCompare",!1);c(this,"answerVariants",[]);c(this,"answerVariantsForDelete",[]);c(this,"fieldExamples",[]);c(this,"fieldVariants",[]);c(this,"valueType",new io);c(this,"fieldMeasures",[]);c(this,"showSet",!1);c(this,"showRadio",!1);c(this,"isEdit",!1);c(this,"children",[]);c(this,"parentId");c(this,"formSectionId");c(this,"selected",!1);v.H.Classes.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 zn;return n.id=v.H.Id.UUID(),n.formSectionId=e,n}getRegisterPropertyRadioOriginalValue(e){const n=this.answerVariants.find(r=>r.id===e);return n?n.name:""}addRadioItem(e){const n=new st(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(r=>r.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 pi(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new pt)}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=st.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=zn.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=pt.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new zn(this);return e.id=v.H.Id.UUID(),e.answerVariants.forEach(n=>{n.id=v.H.Id.UUID(),n.fieldId=e.id}),e.children=e.children.map(n=>{const r=n.copy();return r.parentId=e.id,r}),e}};Ot([v.H.Classes.GetClassConstructor(st)],at.prototype,"answerVariants"),Ot([v.H.Classes.GetClassConstructor(so)],at.prototype,"fieldExamples"),Ot([v.H.Classes.GetClassConstructor(pt)],at.prototype,"fieldVariants"),Ot([v.H.Classes.GetClassConstructor(pi)],at.prototype,"fieldMeasures"),Ot([v.H.Classes.GetClassConstructor(at)],at.prototype,"children");let wn=at;class gi{constructor(e){c(this,"id");c(this,"answerId");c(this,"comment","");c(this,"fileInfoId");c(this,"fileInfo",new Pe);v.H.Classes.BuildClass(this,e)}}class lt{constructor(e){c(this,"id");c(this,"answerVariantId");c(this,"answerVariantIdY");c(this,"fieldFillId");v.H.Classes.BuildClass(this,e)}static Create(e,n){const r=new lt;return r.id=je(),r.fieldFillId=e,r.answerVariantId=n,r}static GetClassName(){return"selectedAnswerVariant"}}var nu=Object.defineProperty,ao=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&nu(e,n,o),o};const yi=class Wi{constructor(e){c(this,"id");c(this,"valueString");c(this,"valueOther");c(this,"valueNumber");c(this,"valueDate");c(this,"fileInfo",new Pe);c(this,"fileInfoId");c(this,"order",0);c(this,"selectedAnswerVariants",[]);c(this,"patientId");c(this,"fieldId");c(this,"formFillId");c(this,"answerVariantId");c(this,"filled",!1);c(this,"researchResultId");c(this,"answerFiles",[]);c(this,"answerFilesForDelete",[]);v.H.Classes.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,n){const r=new Wi;return r.id=je(),r.fieldId=e.id,r.formFillId=n,r.order=e.order,r.valueNumber=0,r.valueString="",r.valueDate=new Date,r}setString(e){this.valueString=e,this.valueString&&(this.filled=this.valueString.length>0)}setNumber(e){this.valueNumber=e,this.valueNumber&&(this.filled=!0)}setOther(e){this.valueOther=e,this.valueOther&&(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(r=>Wi.Create(r,n))}addFile(){const e=new gi;return e.id=je(),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 r=lt.Create(this.id,e);return r.answerVariantIdY=n,this.selectedAnswerVariants.push(r),this.filled=!0,r}getMatrixValue(e,n){return this.selectedAnswerVariants.find(r=>r.answerVariantId===e&&r.answerVariantIdY===n)}addSelectedAnswerVariant(e){const n=lt.Create(this.id,e);return this.selectedAnswerVariants.push(n),this.filled=!0,n}static GetClassName(){return"answer"}showOther(e){const n=e.find(r=>r.showOther);return n?this.answerVariantId===n.id||this.selectedAnswerVariants.some(r=>r.answerVariantId===n.id):!1}};ao([v.H.Classes.GetClassConstructor(lt)],yi.prototype,"selectedAnswerVariants"),ao([v.H.Classes.GetClassConstructor(gi)],yi.prototype,"answerFiles");let gt=yi;class iu{constructor(e){c(this,"id");c(this,"fieldId");v.H.Classes.BuildClass(this,e)}static GetClassName(){return"fieldFilter"}}var ru=Object.defineProperty,ou=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&ru(e,n,o),o};const lo=class Na{constructor(e){c(this,"id");c(this,"name","");c(this,"order",0);c(this,"fields",[]);c(this,"formId");v.H.Classes.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 Na;return n.id=v.H.Id.UUID(),n.formId=e,n}addField(){const e=wn.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}};ou([v.H.Classes.GetClassConstructor(wn)],lo.prototype,"fields");let bn=lo;var su=Object.defineProperty,au=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&su(e,n,o),o};const co=class Pa{constructor(e){c(this,"id");c(this,"name","");c(this,"order",0);c(this,"isLaboratory",!1);c(this,"formSections",[]);c(this,"isEdit",!1);c(this,"withDates",!1);c(this,"withScores",!1);c(this,"selectedForExport",!1);c(this,"filterString","");c(this,"showOnlyNotFilled",!1);c(this,"showOnlyFilled",!1);v.H.Classes.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new Pa;return e.id=v.H.Id.UUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=bn.Create(this.id);return this.formSections.push(e),v.H.Sorter.Sort(this.formSections),e}getFields(){const e=this.formSections.map(r=>r.fields).flat(),n=e.map(r=>r.children).flat();return e.concat(n).filter(r=>r.children.length===0)}};au([v.H.Classes.GetClassConstructor(bn)],co.prototype,"formSections");let uo=co;var lu=Object.defineProperty,cu=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&lu(e,n,o),o};const ho=class Va{constructor(e){c(this,"id");c(this,"date",new Date);c(this,"editMode",!1);c(this,"userFormId");c(this,"fillingPercentage",0);c(this,"fieldFills",[]);c(this,"num","");c(this,"formId");v.H.Classes.BuildClass(this,e)}static Create(e){const n=new Va;return n.id=v.H.Id.UUID(),n.formId=e.id,n.fieldFills.push(...gt.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(r=>r.fieldId===e)}pushRegisterProperty(e){const n=new gt;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=gt.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(r=>r.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.answerVariantId===e)}getFieldsFieldFillsMap(e){const n={};return e.forEach(r=>{var o;if(r.code){const s=(o=this.getFieldFillByFieldId(r.id))==null?void 0:o.valueNumber;n[r.code]=s}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};cu([v.H.Classes.GetClassConstructor(gt)],ho.prototype,"fieldFills");let fo=ho;const du=Object.freeze(Object.defineProperty({__proto__:null,AnswerVariant:st,Field:wn,FieldExample:so,FieldFill:gt,FieldFillFile:gi,FieldFilter:iu,FieldMeasure:pi,FieldVariant:pt,Form:uo,FormFill:fo,FormSection:bn,SelectedAnswerVariant:lt},Symbol.toStringTag,{value:"Module"}));let uu=class extends X{constructor(){super(st,"answer-variants")}};const hu=new uu;let fu=class extends X{constructor(){super(gt,"field-fills")}};const mu=new fu;let pu=class extends X{constructor(){super(wn,"fields")}};const gu=new pu;let yu=class extends X{constructor(){super(fo,"form-fills")}};const wu=new yu;let bu=class extends X{constructor(){super(bn,"form-sections")}};const Cu=new bu;let Su=class extends X{constructor(){super(uo,"forms")}};const ku=new Su;let Eu=class extends X{constructor(){super(lt,"selected-answer-variants")}};const xu=new Eu,Bu=Object.freeze(Object.defineProperty({__proto__:null,C:du,S:Object.freeze(Object.defineProperty({__proto__:null,AnswerVariants:hu,FieldFills:mu,Fields:gu,FormFills:wu,FormSections:Cu,Forms:ku,SelectedAnswerVariants:xu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Cn{constructor(e){c(this,"id");c(this,"name","");c(this,"label","");v.H.Classes.BuildClass(this,e)}static Create(e,n){const r=new Cn;return r.id=v.H.Id.UUID(),r.name=e,r.label=n,r}}const Mu=Object.freeze(Object.defineProperty({__proto__:null,ColorTheme:Cn},Symbol.toStringTag,{value:"Module"}));let Ru=class extends X{constructor(){super(Cn,"color-themes")}};const $u=new Ru,Iu=Object.freeze(Object.defineProperty({__proto__:null,Docs:eu,Forms:Bu,Settings:Object.freeze(Object.defineProperty({__proto__:null,C:Mu,S:Object.freeze(Object.defineProperty({__proto__:null,ColorThemes:$u},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Au extends Gt{constructor(){super(...arguments);c(this,"label","Логин");c(this,"name","login");c(this,"validator",new Zi);c(this,"method",dt.Login);c(this,"id","field-auth-login")}}const vu={key:0,class:"mainblock"},Nu={class:"mainblock-right"},Pu={class:"title"},Vu={class:"body"},mo=x(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),r=i.ref(!0),o=i.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return o.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return o.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return o.value=window.matchMedia("(max-width: 768px)").matches}return o.value=window.matchMedia("(max-width: 1330px)").matches}),n.value=!0}),(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(a.$slots,"main",{},void 0,!0),i.unref(n)?(i.openBlock(),i.createElementBlock("div",vu,[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(o)?"100%":t.menuWidth,maxWidth:i.unref(o)?"100%":t.menuWidth,marginLeft:i.unref(o)?"-110%":"0",position:i.unref(o)?"fixed":"relative",top:i.unref(o)?"140px":""})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(o)?"auto":t.menuWidth,boxShadow:i.unref(o)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!i.unref(r)&&i.unref(o)?"110%":"0",borderTopLeftRadius:i.unref(o)?"0":"",borderBottomLeftRadius:i.unref(o)?"0":""}),onClick:d[0]||(d[0]=l=>s())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",Nu,[i.createElementVNode("div",Pu,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(o)?"flex":"none"}),onClick:d[1]||(d[1]=l=>s())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)]),i.createElementVNode("div",Vu,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])])):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-df55a859"]]),zu={class:"mainblock-right"},Tu={class:"body"},po=x(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),r=i.ref(!0),o=i.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return o.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return o.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return o.value=window.matchMedia("(max-width: 768px)").matches}return o.value=window.matchMedia("(max-width: 1330px)").matches}),n.value=!0}),(a,d)=>(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(o)?"block":"flex"})},[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(o)?"100%":t.menuWidth,display:t.leftWidth!=="0px"?"flex":"none",top:i.unref(o)?"58px":"80px"})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(o)?"100%":t.menuWidth,boxShadow:i.unref(o)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!i.unref(r)&&i.unref(o),"0"),overflowX:i.unref(o)?"scroll":"hidden",display:i.unref(o)?"flex":"block",background:i.unref(o)?"#ffffff":"",overflowY:i.unref(o)?"hidden":"auto"}),onClick:d[0]||(d[0]=l=>s())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",zu,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({position:t.titleSticky?"sticky":"relative",top:t.titleSticky?i.unref(o)?"108px":"58px":"0",zIndex:t.titleSticky?"10":""})},[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(o)?"flex":"none"}),onClick:d[1]||(d[1]=l=>s())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)],4),i.createElementVNode("div",Tu,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-a7d519dd"]]),Fu={class:"item"},Ou={class:"move"},Lu={class:"item-tools"},Du=["onClick"],Hu={class:"item-description"},qu=["onUpdate:modelValue"],go=x(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,r=e,o=async a=>{r("addImage",a)},s=async a=>{z.RemoveFromClassById(a.id,n.fileList,[]),r("remove",a)};return(a,d)=>{const l=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:d[0]||(d[0]=f=>i.unref(Ve).Sort(t.fileList))},{item:i.withCtx(({element:f,index:m})=>[i.createElementVNode("div",Fu,[i.createElementVNode("div",Ou,[i.createElementVNode("div",Lu,[d[1]||(d[1]=i.createElementVNode("svg",{class:"icon-move"},[i.createElementVNode("use",{"xlink:href":"#move"})],-1)),i.createElementVNode("button",{class:"admin-del2",onClick:i.withModifiers(p=>s(f),["prevent"])},"Удалить",8,Du)]),i.createVNode(l,{"file-info":f,height:150,"default-ratio":t.defaultRatio,onRemoveFile:p=>i.unref(z).RemoveFromClassByIndex(m,t.fileList,t.fileListForDelete),onCrop:p=>o(f)},null,8,["file-info","default-ratio","onRemoveFile","onCrop"])]),i.createElementVNode("div",Hu,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":p=>f.description=p,class:"item-description-form",placeholder:"..."},null,8,qu),[[i.vModelText,f.description]])])])]),_:1},8,["list"]),i.createVNode(h)],64)}}}),[["__scopeId","data-v-d92b4a59"]]),Uu="p-button",_u=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:fi.M,required:!1},type:{type:String,default:fe.Primary,required:!1},fontSize:{type:String,default:"",required:!1}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,o=()=>{r("click")},s=i.computed(()=>Y.JoinSnake(Uu,n.skin)),a=i.computed(()=>Y.JoinSnake(s.value,n.type)),d=i.computed(()=>Y.JoinSnake(s.value,n.size)),l=i.computed(()=>[s.value,a.value,d.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(l),onClick:i.withModifiers(o,["prevent"])}),[i.renderSlot(u.$slots,"default",{},void 0,!0),i.createTextVNode(" "+i.toDisplayString(t.text),1)],16))}}),wi=x(_u,[["__scopeId","data-v-9f699dcb"]]),bi=x(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-48c8e6e2"]]),Wu=["value"],yo=x(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"),r=e,o=()=>{r("change",n.value)};return(s,a)=>(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:o},null,40,Wu),[[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(bi,{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-85407c13"]]),ju=["for"],Gu={class:"field"},Zu={class:"left-field"},Xu=["id","value","name"],Yu={class:"right-field"},wo=x(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,r=i.useModel(t,"modelValue"),o=a=>{const l=a.target.valueAsDate;l?(r.value=l,n("input",s(r.value))):(r.value=null,n("input",null))},s=a=>a?new Date(a.getTime()-a.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"";return(a,d)=>(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,ju)):i.createCommentVNode("",!0),i.createElementVNode("div",Gu,[i.createElementVNode("div",Zu,[i.renderSlot(a.$slots,"default",{},void 0,!0)]),i.createElementVNode("input",{id:t.label,max:"2100",min:"1900",value:s(r.value),class:"text-field__input",type:"date",name:t.label,onInput:o},null,40,Xu),i.createElementVNode("div",Yu,[i.renderSlot(a.$slots,"right",{},void 0,!0)])])],4))}}),[["__scopeId","data-v-60c7417a"]]),bo=x(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-d9fdfe7d"]]);var Ju=Object.defineProperty,Qu=(t,e,n)=>e in t?Ju(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lt=(t,e,n)=>Qu(t,typeof e!="symbol"?e+"":e,n);const Co={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},So=(t,e,n)=>t.replaceAll(e,"").replace(n,".").replace("..",".").replace(/[^.\d]/g,""),ko=(t,e,n)=>{var r;return new Intl.NumberFormat(((r=n.number)==null?void 0:r.locale)??"en",{minimumFractionDigits:t,maximumFractionDigits:e,roundingMode:"trunc"})},Ku=(t,e=!0,n)=>{var r,o,s,a;const d=((r=n.number)==null?void 0:r.unsigned)!==!0&&t.startsWith("-")?"-":"",l=((o=n.number)==null?void 0:o.fraction)??0;let u=ko(0,l,n);const h=u.formatToParts(1000.12),f=((s=h.find(w=>w.type==="group"))==null?void 0:s.value)??" ",m=((a=h.find(w=>w.type==="decimal"))==null?void 0:a.value)??".",p=So(t,f,m);if(Number.isNaN(parseFloat(p)))return d;const C=p.split(".");if(C[1]!=null&&C[1].length>=1){const w=C[1].length<=l?C[1].length:l;u=ko(w,l,n)}let S=u.format(parseFloat(p));return e?l>0&&p.endsWith(".")&&!p.slice(0,-1).includes(".")&&(S+=m):S=So(S,f,m),d+S};let eh=class{constructor(e={}){Lt(this,"opts",{}),Lt(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...Co,...n.tokens};for(const r of Object.values(n.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else n.tokens=Co;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((r,o)=>r.length-o.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 r=this.process(e,n).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:r>=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 r=this.process(e,n.slice(-1).pop()??"",!1);return n.find(o=>this.process(e,o,!1).length>=r.length)??""}escapeMask(e){const n=[],r=[];return e.split("").forEach((o,s)=>{o==="!"&&e[s-1]!=="!"?r.push(s-r.length):n.push(o)}),{mask:n.join(""),escaped:r}}process(e,n,r=!0){if(this.opts.number!=null)return Ku(e,r,this.opts);if(n==null)return e;const o=`v=${e},mr=${n},m=${r?1:0}`;if(this.memo.has(o))return this.memo.get(o);const{mask:s,escaped:a}=this.escapeMask(n),d=[],l=this.opts.tokens!=null?this.opts.tokens:{},u=this.isReversed()?-1:1,h=this.isReversed()?"unshift":"push",f=this.isReversed()?0:s.length-1,m=this.isReversed()?()=>w>-1&&R>-1:()=>w<s.length&&R<e.length,p=L=>!this.isReversed()&&L<=f||this.isReversed()&&L>=f;let C,S=-1,w=this.isReversed()?s.length-1:0,R=this.isReversed()?e.length-1:0,O=!1;for(;m();){const L=s.charAt(w),P=l[L],j=(P==null?void 0:P.transform)!=null?P.transform(e.charAt(R)):e.charAt(R);if(!a.includes(w)&&P!=null?(j.match(P.pattern)!=null?(d[h](j),P.repeated?(S===-1?S=w:w===f&&w!==S&&(w=S-u),f===S&&(w-=u)):P.multiple&&(O=!0,w-=u),w+=u):P.multiple?O&&(w+=u,R-=u,O=!1):j===C?C=void 0:P.optional&&(w+=u,R-=u),R+=u):(r&&!this.isEager()&&d[h](L),j===L&&!this.isEager()?R+=u:C=L,this.isEager()||(w+=u)),this.isEager())for(;p(w)&&(l[s.charAt(w)]==null||a.includes(w));){if(r){if(d[h](s.charAt(w)),e.charAt(R)===s.charAt(w)){w+=u,R+=u;continue}}else s.charAt(w)===e.charAt(R)&&(R+=u);w+=u}}return this.memo.set(o,d.join("")),this.memo.get(o)}};const Eo=t=>JSON.parse(t.replaceAll("'",'"')),th=(t,e={})=>{const n={...e};t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=nh(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=Sn(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=Sn(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Sn(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=ih(t.dataset.maskaTokens));const r={};return t.dataset.maskaNumberLocale!=null&&(r.locale=t.dataset.maskaNumberLocale),t.dataset.maskaNumberFraction!=null&&(r.fraction=parseInt(t.dataset.maskaNumberFraction)),t.dataset.maskaNumberUnsigned!=null&&(r.unsigned=Sn(t.dataset.maskaNumberUnsigned)),(t.dataset.maskaNumber!=null||Object.values(r).length>0)&&(n.number=r),n},Sn=t=>t!==""?!!JSON.parse(t):!0,nh=t=>t.startsWith("[")&&t.endsWith("]")?Eo(t):t,ih=t=>{if(t.startsWith("{")&&t.endsWith("}"))return Eo(t);const e={};return t.split("|").forEach(n=>{const r=n.split(":");e[r[0]]={pattern:new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e};let rh=class{constructor(e,n={}){Lt(this,"items",new Map),Lt(this,"eventAbortController"),Lt(this,"onInput",r=>{if(r instanceof CustomEvent&&r.type==="input"&&!r.isTrusted&&!r.bubbles)return;const o=r.target,s=this.items.get(o),a="inputType"in r&&r.inputType.startsWith("delete"),d=s.isEager(),l=a&&d&&s.unmasked(o.value)===""?"":o.value;this.fixCursor(o,a,()=>this.setValue(o,l))}),this.options=n,this.eventAbortController=new AbortController,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(){this.eventAbortController.abort(),this.items.clear()}init(e){const n=this.getOptions(this.options);for(const r of e){if(!this.items.has(r)){const{signal:s}=this.eventAbortController;r.addEventListener("input",this.onInput,{capture:!0,signal:s})}const o=new eh(th(r,n));this.items.set(r,o),queueMicrotask(()=>this.updateValue(r)),r.selectionStart===null&&o.isEager()&&console.warn("Maska: input of `%s` type is not supported",r.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:r,postProcess:o,...s}=e;return s}fixCursor(e,n,r){const o=e.selectionStart,s=e.value;if(r(),o===null||o===s.length&&!n)return;const a=e.value,d=s.slice(0,o),l=a.slice(0,o),u=this.processInput(e,d).unmasked,h=this.processInput(e,l).unmasked;let f=o;d!==l&&(f+=n?a.length-s.length:u.length-h.length),e.setSelectionRange(f,f)}setValue(e,n){const r=this.processInput(e,n);e.value=r.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(o=>o(r)):this.options.onMaska(r)),e.dispatchEvent(new CustomEvent("maska",{detail:r})),e.dispatchEvent(new CustomEvent("input",{detail:r.masked}))}processInput(e,n){const r=this.items.get(e);let o=n??e.value;this.options.preProcess!=null&&(o=this.options.preProcess(o));let s=r.masked(o);return this.options.postProcess!=null&&(s=this.options.postProcess(s)),{masked:s,unmasked:r.unmasked(o),completed:r.completed(o)}}};const Ci=new WeakMap,oh=(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 r=t instanceof HTMLInputElement?t:t.querySelector("input");if(r==null||(r==null?void 0:r.type)==="file")return;let o={};if(e.value!=null&&(o=typeof e.value=="string"?{mask:e.value}:{...e.value}),e.arg!=null){const s=a=>{const d=e.modifiers.unmasked?a.unmasked:e.modifiers.completed?a.completed:a.masked;oh(e,d)};o.onMaska=o.onMaska==null?s:Array.isArray(o.onMaska)?[...o.onMaska,s]:[o.onMaska,s]}Ci.has(r)?(n=Ci.get(r))==null||n.update(o):Ci.set(r,new rh(r,o))},sh=["for"],ah={class:"left-field"},lh=["disabled"],ch={class:"right-field"},Bo=x(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,r)=>(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,sh)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor,background:t.disabled?"#F5F5F5":"var(--input-background)"})},[i.createElementVNode("div",ah,[i.renderSlot(n.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("input",i.mergeProps(n.$attrs,{"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),class:"text-field__input",style:{color:t.color},disabled:t.disabled,onBlur:r[1]||(r[1]=o=>n.$emit("blur",e.value)),onInput:r[2]||(r[2]=o=>n.$emit("input",e.value))}),null,16,lh),[[i.vModelDynamic,e.value],[i.unref(xo),t.mask]]),i.createElementVNode("div",ch,[i.renderSlot(n.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-e758ff7a"]]),Mo=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,r=i.useModel(t,"modelValue"),o=He.Format(r.value),s=i.ref(o),a=l=>{if(!d(l))return;const u=He.FromRuStr(l);r.value=u,n("beforeChange",u),n("change",u)},d=l=>l.length!=10?(s.value=o,pe.Error("Неверный формат даты"),!1):Number(s.value.slice(0,2))>31?(s.value=o,pe.Error("Неверный день месяца"),!1):Number(s.value.slice(3,5))>12?(s.value=o,pe.Error("Неверный месяц"),!1):Number(s.value.slice(6,10))>2100?(s.value=o,pe.Error("Неверный год"),!1):!0;return(l,u)=>{const h=i.resolveComponent("PInput");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)}}}),dh=["for"],uh={class:"number"},hh=["disabled"],fh=i.defineComponent({__name:"PInputNumber",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},disabled:{type:Boolean,required:!1,default:!1},max:{type:Number,default:Number.MAX_VALUE,required:!1},min:{type:Number,default:Number.NEGATIVE_INFINITY,required:!1},step:{type:Number,default:1,required:!1}},{modelValue:{default:0},modelModifiers:{}}),emits:i.mergeModels(["blur","input","change"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=t,o=()=>{const S=r.step.toString();return S.includes(".")?S.split(".")[1].length:0},s=o(),a=i.useModel(t,"modelValue"),d=i.ref(a.value.toFixed(o())),l=S=>{const w=Math.pow(10,s);return Math.round(S*w)/w},u=(S,...w)=>{a.value=l(S),d.value=l(S).toFixed(o()),w.forEach(R=>n(R,a.value))},h=(S,...w)=>{u(S,...w)},f=()=>h(+d.value+r.step,"change"),m=()=>h(+d.value-r.step,"change"),p=()=>h(+d.value,"input"),C=()=>h(+d.value,"change","blur");return(S,w)=>{const R=i.resolveComponent("IconMinus"),O=i.resolveComponent("IconPlus");return 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,dh)):i.createCommentVNode("",!0),i.createElementVNode("div",uh,[i.createElementVNode("button",{class:"number-minus",type:"button",onClick:m},[i.createElementVNode("div",{class:i.normalizeClass(t.disabled||a.value<=t.min?"icon-minus-disabled":"icon-minus")},[i.createVNode(R)],2)]),i.withDirectives(i.createElementVNode("input",i.mergeProps(S.$attrs,{"onUpdate:modelValue":w[0]||(w[0]=L=>i.isRef(d)?d.value=L:null),class:"input-field",type:"number",disabled:t.disabled,style:{color:t.disabled?"#828587":t.color,background:t.disabled?"var(--input-readonly-background)":""},onBlur:C,onInput:i.withModifiers(p,["stop"])}),null,16,hh),[[i.vModelText,i.unref(d),void 0,{lazy:!0}]]),i.createElementVNode("button",{class:"number-plus",style:i.normalizeStyle({transform:t.disabled?"none":"transform: scale(1.2, 1.2)"}),type:"button",onClick:f},[i.createElementVNode("div",{class:i.normalizeClass(t.disabled||a.value>=t.max?"icon-plus-disabled":"icon-plus")},[i.createVNode(O)],2)],4)])],4)}}}),Ro=x(fh,[["__scopeId","data-v-807eb4e2"]]),$o=x(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,r=e,o=i.ref(n.open);i.watch(()=>n.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,d)=>{const l=i.resolveComponent("PString");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(o)?"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:d[0]||(d[0]=u=>s(!i.unref(o)))},[i.unref(o)?(i.openBlock(),i.createBlock(l,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4)],4)],64)}}}),[["__scopeId","data-v-2af70fa2"]]),Io=x(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-eaa10a96"]]),Ao=x(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-93410b0d"]]),mh=["for"],ph=["id","name","checked","value"],vo=x(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"),r=e,o=t,s=me.GUID(),a=i.computed(()=>n.value===o.value),d=()=>{r("change",o.value)};return(l,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,ph),[[i.vModelRadio,n.value]]),i.createElementVNode("div",{class:"box",style:i.normalizeStyle({width:t.size,height:t.size,borderRadius:t.borderRadius}),onClick:d},[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:d},i.toDisplayString(t.label),1)],12,mh)],4))}}),[["__scopeId","data-v-25033aee"]]),gh={class:"wrapper"},yh={class:"content"},No=x(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,r=e,o=i.ref(n.open);i.watch(()=>n.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,d)=>{const l=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",gh,[i.createElementVNode("div",yh,[i.renderSlot(a.$slots,"content",{},void 0,!0)]),i.createElementVNode("div",{class:"RS-body",style:i.normalizeStyle({marginRight:i.unref(o)?"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:d[0]||(d[0]=u=>s(!i.unref(o)))},[i.unref(o)?(i.openBlock(),i.createBlock(l,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{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-e076619a"]]),kn=x(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-cbcad2a0"]]),wh=["for"],bh={class:"field"},Ch={class:"left-field"},Sh={class:"arrow"},kh={selected:"",hidden:""},Eh={class:"right-field"},Si=x(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:""},borderColor:{type:String,required:!1,default:""},color:{type:String,required:!1,default:""}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change","clear"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),r=i.ref(!0),o=e,s=i.ref(!1),a=()=>{r.value=!1,o("change",n.value)},d=()=>{n.value=void 0,o("clear",void 0),o("change",void 0),r.value=!0};return(l,u)=>{const h=i.resolveComponent("IconSelectArrow");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,wh)):i.createCommentVNode("",!0),i.createElementVNode("div",bh,[i.createElementVNode("div",Ch,[i.renderSlot(l.$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:d},[i.createVNode(kn,{margin:"0"})],512)),[[i.vShow,i.unref(s)]]):i.createCommentVNode("",!0),i.createElementVNode("div",Sh,[i.createVNode(h,{margin:"2px 2px 0 0"})]),i.withDirectives(i.createElementVNode("select",i.mergeProps(l.$attrs,{"onUpdate:modelValue":u[0]||(u[0]=f=>n.value=f),class:"text-field__input",onChange:a}),[i.createElementVNode("option",kh,i.toDisplayString(t.placeholder),1),i.renderSlot(l.$slots,"default",{},void 0,!0)],16),[[i.vModelSelect,n.value]])],32),i.createElementVNode("div",Eh,[i.renderSlot(l.$slots,"right",{},void 0,!0)])])],4)}}}),[["__scopeId","data-v-c056d6ef"]]),Po=x(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-01876330"]]),xh=["innerHTML"],Bh={key:1},Vo=x(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(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["string",t.customClass]),style:n,onClick:o[0]||(o[0]=s=>r.$emit("click"))},[t.isHtml?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:t.string},null,8,xh)):(i.openBlock(),i.createElementBlock("span",Bh,i.toDisplayString(t.string),1))],2))}}),[["__scopeId","data-v-98febd87"]]),zo=i.defineComponent({__name:"PTable",props:{margin:{type:String,required:!1,default:"0 0 20px 0"},width:{type:String,required:!1,default:"100%"},fontSize:{type:String,required:!1,default:"var(----font-size-default)"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("table",i.mergeProps(e.$attrs,{style:{width:t.width,margin:t.margin},class:"p-table"}),[i.createElementVNode("thead",null,[i.renderSlot(e.$slots,"thead")]),i.createElementVNode("tbody",null,[i.renderSlot(e.$slots,"tbody")])],16))}}),Mh=["for"],Rh={class:"left-field"},$h={class:"right-field"},To=x(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,r)=>(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,Mh)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",Rh,[i.renderSlot(n.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("textarea",i.mergeProps(n.$attrs,{"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),class:"text-field__input",style:{color:t.color},onBlur:r[1]||(r[1]=o=>n.$emit("blur",e.value)),onInput:r[2]||(r[2]=o=>n.$emit("input",e.value))}),null,16),[[i.vModelText,e.value],[i.unref(xo),t.mask]]),i.createElementVNode("div",$h,[i.renderSlot(n.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-2a2e858d"]]),Ih={class:"top-slider-content"},Ah={class:"center"},Fo=x(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,r=e,o=i.ref(n.open);i.watch(()=>n.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[d[0]||(d[0]=i.withModifiers(l=>o.value=!0,["prevent"])),d[1]||(d[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(o)?"0":`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`,height:t.sliderOnHeight}),onClick:d[3]||(d[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Ih,[i.createElementVNode("div",Ah,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:d[2]||(d[2]=l=>s(!i.unref(o)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-863b4aff"]]),Oo=i.defineComponent({__name:"AuthModal",emits:["submit"],setup(t){const e=()=>{Ne.Form.Reset(),Ne.Modal.Close()};return(n,r)=>{const o=i.resolveComponent("AuthForm"),s=i.resolveComponent("PModal");return i.openBlock(),i.createBlock(s,{show:i.unref(Ne).Modal.Visible,closable:i.unref(Ne).Modal.Closable,onClose:e},{default:i.withCtx(()=>[i.createVNode(o,{width:"760px",onSubmit:r[0]||(r[0]=a=>n.$emit("submit"))})]),_:1},8,["show","closable"])}}}),ki=x(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=>({d143e9f0:t.maxWidth,b9d56180:t.width,"52bd0ff4":t.background,"1795aeac":t.gridGap,"0cfa7c52":t.gridTemplateColumns,"0c6d2a1f":t.gridTemplateRows,a3ccd918: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-a3c4743c"]]);var Ue=(t=>(t.None="None",t.Next="Next",t.Prev="Prev",t))(Ue||{});const vh={class:"container"},Nh={class:"slide-box"},Ph={class:"link-number"},Vh=["id","onClick"],Lo=x(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(p=>({a8527066:n}));const e=t,n=`${e.animationTime}ms`,r=i.ref(e.startActiveGroupIndex),o=i.ref(Ue.None),s=i.ref(Jr(e.events,e.quantity)),a=i.computed(()=>s.value[r.value]);i.onMounted(()=>{});const d=()=>r.value=r.value+1<s.value.length?r.value+1:0,l=()=>r.value=r.value-1<0?s.value.length-1:r.value-1,u=p=>{o.value=p,setTimeout(()=>o.value=Ue.None,e.animationTime)},h=p=>{p!=r.value&&(u(p<r.value?Ue.Prev:Ue.Next),setTimeout(()=>r.value=p,e.animationTime/2))},f=()=>{u(Ue.Next),setTimeout(d,e.animationTime/2)},m=()=>{u(Ue.Prev),setTimeout(l,e.animationTime/2)};return(p,C)=>(i.openBlock(),i.createElementBlock("div",{class:"field",style:i.normalizeStyle({height:t.height,maxHeight:t.maxHeight})},[i.createElementVNode("div",vh,[(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:C[0]||(C[0]=i.withModifiers(S=>m(),["stop"]))},C[2]||(C[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)]))),i.createElementVNode("div",Nh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),(S,w)=>(i.openBlock(),i.createElementBlock("div",{key:w,class:i.normalizeClass({animationnext:i.unref(o)===i.unref(Ue).Next,animationprev:i.unref(o)===i.unref(Ue).Prev})},C[3]||(C[3]=[i.createElementVNode("div",{class:"image"},[i.createElementVNode("div",{class:"image-box"})],-1)]),2))),128))]),(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:C[1]||(C[1]=i.withModifiers(S=>f(),["stop"]))},C[4]||(C[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])))]),i.createElementVNode("div",Ph,[i.createVNode(ki,{"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),(S,w)=>(i.openBlock(),i.createElementBlock("div",{id:w.toString(),key:w,class:"number",style:i.normalizeStyle({background:w.toString()===i.unref(r).toString()?"#9D9D9D":""}),onClick:i.withModifiers(R=>h(w),["stop"])},i.toDisplayString(w+1),13,Vh))),128))]),_:1})])],4))}}),[["__scopeId","data-v-a5d87987"]]),Do=i.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(t,{emit:e}){const n=t,r=e,o=i.ref(n.x),s=i.ref(n.y),a=i.computed(()=>o.value+"px"),d=i.computed(()=>s.value+"px"),l=()=>{r("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(d)})},[i.renderSlot(u.$slots,"default")],4)),[[f,l]])}}}),zh={class:"date-range"},Ho=x(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,r=e;i.watch(()=>[n.start,n.end],()=>{n.start||(o.value=void 0),n.end||(s.value=void 0)});const o=i.ref(n.start),s=i.ref(n.end),a=l=>{o.value=l,!(!n.end||l>n.end)&&(r("update:start",l),r("setStart",l))},d=l=>{s.value=l,!(!n.start||l<n.start)&&(r("update:end",l),r("setEnd",l))};return(l,u)=>{const h=i.resolveComponent("PInputDate");return i.openBlock(),i.createElementBlock("div",zh,[i.createVNode(h,{"model-value":i.unref(o),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(o)?o.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:d},null,8,["model-value"])])}}}),[["__scopeId","data-v-a6b4e7cd"]]),Th=i.defineComponent({name:"DateInputRangeV2"}),Fh={class:"date-range"};function Oh(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("div",Fh,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const qo=x(Th,[["render",Oh],["__scopeId","data-v-d28c6f33"]]),Lh={class:"drop-item"},Dh={key:0,class:"drop-item-list"},Uo=x(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),r=async()=>{n.value=!n.value};return(o,s)=>{const a=i.resolveComponent("PString"),d=i.resolveComponent("IconArrowDrop");return i.openBlock(),i.createElementBlock("div",Lh,[i.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=l=>r())},[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(d,{size:"10px",margin:"0"})],4)]),i.unref(n)?(i.openBlock(),i.createElementBlock("div",Dh,[i.renderSlot(o.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-97057f9c"]]),_o=x(i.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new Un,required:!0}},emits:["load"],setup(t,{emit:e}){const n=t,r=i.ref(!1),o=e,s=()=>{n.model.setBoolean(r.value),o("load")};return(a,d)=>{const l=i.resolveComponent("PCheckBox");return i.openBlock(),i.createBlock(l,{modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=u=>i.isRef(r)?r.value=u:null),label:t.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-783d7387"]]),Wo=x(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,r=i.ref(void 0),o=async a=>{v.FTSP.Get().replaceF(a,r.value),r.value=a,v.FTSP.Get().p.drop()},s=async a=>{await o(a),n("load")};return(a,d)=>{const l=i.resolveComponent("PString"),u=i.resolveComponent("PButton"),h=i.resolveComponent("GridContainer"),f=i.resolveComponent("InfoItem");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(l,{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(()=>d[0]||(d[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,(m,p)=>(i.openBlock(),i.createBlock(u,{key:p,color:"blue",height:"auto",text:m.label,"is-toggle":m.valueEq(i.unref(r)),"toggle-mode":!0,inverse:t.inverse,onClick:C=>s(m.valueEq(i.unref(r))?void 0:m)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-a6b6b5f0"]]),Hh=["value","label"],jo=x(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,r=$t.Get(),o=i.ref(void 0),s=async d=>{r.replaceF(d,o.value),o.value=d},a=async d=>{d?await s(o.value):await s(void 0),n("load")};return(d,l)=>{const u=i.resolveComponent("PSelect");return i.openBlock(),i.createBlock(u,{modelValue:i.unref(o),"onUpdate:modelValue":l[0]||(l[0]=h=>i.isRef(o)?o.value=h:null),clearable:i.unref(o),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,Hh))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ae66df57"]]),Go=x(i.defineComponent({__name:"FTSPPanel",setup(t){return i.onBeforeMount(async()=>{}),(e,n)=>(i.openBlock(),i.createElementBlock("div"))}}),[["__scopeId","data-v-c3fae891"]]),Zo=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"})},r[2]||(r[2]=[i.createElementVNode("svg",{class:"icon-del"},[i.createElementVNode("use",{"xlink:href":"#del"})],-1)]),4),r[3]||(r[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-1056443d"]]),Xo=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#download"},null,-1)]),38)),r[3]||(r[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-94c18208"]]),Yo=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#filter"},null,-1)]),38)),r[3]||(r[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-d11e6069"]]),Jo=x(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-ca16a90c"]]),Qo=x(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-55ea5a5c"]]),Ko=x(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-99358e0a"]]),es=x(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-05547f14"]]),ts=x(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-131f6ba1"]]),ns=x(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-64e76eb7"]]),is=x(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-4d8b581f"]]),rs=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),38)),r[3]||(r[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-ec3439ce"]]),os=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)]),38)),r[3]||(r[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-cd0d3c21"]]),ss=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)]),38)),r[3]||(r[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-98099ad2"]]),as=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)]),38)),r[3]||(r[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-053c9917"]]),ls=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)]),38)),r[3]||(r[3]=i.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-1798f31d><symbol id="ellipsis" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" data-v-1798f31d><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-1798f31d></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-1798f31d></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-1798f31d></path></symbol></svg>',1))],64))}}),[["__scopeId","data-v-1798f31d"]]),qh={key:0,class:"blur"},Uh={style:{display:"flex","justify-content":"center"}},cs=x(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,r=e,o=n.customClass!==""?n.customClass:"inside-class",s=i.ref(!1),a=i.ref(!1),d=i.ref(!1),l=i.ref(n.close);i.watch(()=>n.close,()=>{a.value=!1});const u=P=>{P.stopPropagation(),P.key==="Escape"&&(n.showSaveDialog?d.value=!0:a.value=!1)};i.watch(a,async()=>{var P,j;await i.nextTick(),a.value?((j=(P=document.getElementById("info-item-opened-content"))==null?void 0:P.querySelector("input"))==null||j.focus(),document.body.addEventListener("keydown",u)):document.body.removeEventListener("keydown",u,!1),a.value===!1&&r("after-close")});const h=()=>{r("click"),a.value=!!n.withOpenWindow,l.value!==n.close&&(a.value=!1,l.value=!l.value)},f=i.computed(()=>n.customClass===""?{width:n.width,minHeight:"40px",height:"auto",maxWidth:n.maxWidth,minWidth:n.minWidth,margin:n.baseBoxMargin}:void 0),m=i.computed(()=>a.value&&n.withOpenWindow),p=i.computed(()=>({background:n.background?n.background:void 0,zIndex:m.value?"2":"0",padding:m.value?"0":n.padding,margin:n.margin,width:m.value?n.openWidth:n.width,height:m.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:m.value?"end":"center",cursor:(n.withHover,"pointer")})),C=i.computed(()=>({height:m.value?"0":"",overflow:n.closeWindowOverflow,width:n.width})),S=i.computed(()=>({height:m.value?"auto":"0"})),w=i.computed(()=>({color:s.value?n.colorSelected:"#343E5C",fill:s.value?n.colorSelected:"#343E5C",background:n.background})),R=()=>{n.showSaveDialog?d.value=!0:a.value=!1},O=async()=>{await r("keyup-enter"),n.close&&(a.value=!1),d.value=!1},L=()=>{a.value=!1,d.value=!1};return(P,j)=>{const Be=i.resolveComponent("PString"),Me=i.resolveComponent("PButton"),Qe=i.resolveComponent("PModal"),Et=i.resolveDirective("click-outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(a)?(i.openBlock(),i.createElementBlock("div",qh)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"base-box",style:i.normalizeStyle(i.unref(f)),onClick:j[2]||(j[2]=i.withModifiers(Pn=>h(),["prevent","stop"]))},[i.createElementVNode("div",{class:i.normalizeClass(["body",i.unref(o)]),style:i.normalizeStyle(i.unref(p)),onMouseenter:j[0]||(j[0]=Pn=>t.withHover?s.value=!0:s.value=!1),onMouseleave:j[1]||(j[1]=Pn=>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(C))},[i.renderSlot(P.$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(S))},[i.renderSlot(P.$slots,"open-inside-content",{},void 0,!0)],4)),[[Et,R,void 0,{prevent:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"top-title",style:i.normalizeStyle(i.unref(w))},[i.renderSlot(P.$slots,"title",{},()=>[i.createVNode(Be,{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(Qe,{show:i.unref(d),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:i.withCtx(()=>[i.createElementVNode("div",Uh,[i.createVNode(Me,{text:"Не сохранять",onClick:L}),i.createVNode(Me,{text:"Сохранять",onClick:O})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-e8e8f1a1"]]),ds=x(i.defineComponent({__name:"InfoItemSelectButtons",props:{selected:{type:String,required:!0},title:{type:String,required:!0},list:{type:Array,required:!0}},emits:["select","reset"],setup(t,{emit:e}){const n=i.ref(!1),r=e,o=s=>{n.value=!n.value,r("select",s)};return(s,a)=>{const d=i.resolveComponent("PString"),l=i.resolveComponent("PButton"),u=i.resolveComponent("InfoItem");return i.openBlock(),i.createBlock(u,{close:i.unref(n),title:t.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(l,{key:h,type:"admin",color:"blue",text:h,onClick:f=>o(h)},null,8,["text","onClick"]))),128)),i.createVNode(l,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=h=>o(void 0))})]),default:i.withCtx(()=>[i.createVNode(d,{string:t.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-973addd1"]]),_h={class:"mainblock"},Wh={class:"mainline"},us=x(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",_h,[i.createElementVNode("div",Wh,[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-42fa7104"]]),jh={class:"message-title"},Gh={class:"message-text"},hs=x(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",jh,i.toDisplayString(t.title),1),i.createElementVNode("div",Gh,i.toDisplayString(t.text),1)]))}}),[["__scopeId","data-v-182d0640"]]),Zh=i.defineComponent({name:"CollapseContainer",props:{initActiveIdx:{type:Number,default:0}},setup(t){const e=i.ref(t.initActiveIdx),n=r=>{e.value=r};return i.watch(()=>t.initActiveIdx,()=>{n(t.initActiveIdx)}),{changeActiveId:n,activeIdx:e}}});function Xh(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("div",null,[i.renderSlot(t.$slots,"default",{activeIdx:t.activeIdx,changeActiveId:t.changeActiveId})])}const fs=x(Zh,[["render",Xh]]),Yh=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"),r=()=>{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:r}}}),Jh=["for"],Qh={class:"inside-icon"};function Kh(t,e,n,r,o,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",Qh,[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,Jh),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-0ea9a95f><symbol id="arrow-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-0ea9a95f><path d="M5 6L10 11L15 6L17 7L10 14L3 7L5 6Z" fill="currentColor" data-v-0ea9a95f></path></symbol><symbol id="arrow-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-0ea9a95f><path d="M15 14L10 9L5 14L3 13L10 6L17 13L15 14Z" fill="currentColor" data-v-0ea9a95f></path></symbol></svg>',1))],64)}const ms=x(Yh,[["render",Kh],["__scopeId","data-v-0ea9a95f"]]),ef={class:"tab"},tf={class:"rotate"},ps=x(i.defineComponent({__name:"VerticalCollapseContainer",setup(t){const e=i.ref(!1),n=async()=>{e.value=!e.value};return(r,o)=>{const s=i.resolveComponent("ArrowRight"),a=i.resolveComponent("ArrowLeft");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",ef,[i.renderSlot(r.$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(r.$slots,"inside-content-left",{},void 0,!0)],4),i.createElementVNode("div",{class:"arrow-bar",onClick:n},[i.createElementVNode("div",tf,[i.renderSlot(r.$slots,"inside-title",{},void 0,!0)]),i.unref(e)?(i.openBlock(),i.createBlock(s,{key:0,"icon-class":"icon-arrow"})):(i.openBlock(),i.createBlock(a,{key:1,"icon-class":"icon-arrow"}))])],4),i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"50%":"100%",transition:"0.3s"}),class:"right"},[i.renderSlot(r.$slots,"inside-content-right",{},void 0,!0)],4)]),i.createVNode(a),i.createVNode(s)],64)}}}),[["__scopeId","data-v-4ccaade5"]]),nf={class:"add-block_body"},gs=x(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 r=i.resolveComponent("PSticky");return i.openBlock(),i.createElementBlock("div",{class:"add-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.createVNode(r,{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",nf,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-338720bc"]]),ys=x(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-b2b43a38"]]),rf={class:"add-block_body"},ws=x(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 r=i.resolveComponent("PSticky"),o=i.resolveComponent("PContainer");return i.openBlock(),i.createBlock(o,{background:t.background,margin:t.margin,padding:t.padding},{default:i.withCtx(()=>[i.createVNode(r,{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",rf,[i.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-9464e4a8"]]),of={class:"del-block_title"},sf={class:"del-block_body"},bs=x(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",of,[i.renderSlot(e.$slots,"title",{},void 0,!0)]),i.createElementVNode("div",sf,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-58d048aa"]]),af={class:"btn-group"},Cs=x(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=i.ref(!1),r=e,o=i.computed(()=>v.Auth.Form.GetButtons()),s=async a=>{if(!a.isSubmit)return v.Auth.Form.SetChunk(a.GetChunk());v.Auth.Form.Validate().length>0||r("submit")};return i.onBeforeUnmount(()=>{v.Auth.Form.Reset()}),(a,d)=>{const l=i.resolveComponent("PInput"),u=i.resolveComponent("PButton");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(("PF"in a?a.PF:i.unref(v)).Auth.Form.GetTitle()),1),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(("PF"in a?a.PF:i.unref(v)).Auth.Form.GetFields(),h=>(i.openBlock(),i.createBlock(l,{id:h.id,key:h,modelValue:h.value,"onUpdate:modelValue":f=>h.value=f,placeholder:h.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","placeholder"]))),128)),i.createElementVNode("div",af,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o),h=>(i.openBlock(),i.createBlock(u,{id:h.id,key:h.GetChunk(),disabled:i.unref(n),type:"primary",skin:"base",text:h.text,color:h.isSubmit?"blue":"grey",margin:"10px 0 0 0",width:"100%",height:"52px",onClick:f=>s(h)},null,8,["id","disabled","text","color","onClick"]))),128))])])],4)}}}),[["__scopeId","data-v-d1c99cc2"]]),Ei=x(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"},maxHeight:{type:String,default:"70vh"},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,r=e,o=a=>{a.key==="Escape"&&s()};i.onMounted(()=>{document.body.addEventListener("keydown",o)}),i.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",o)});const s=()=>{n.closable&&r("close")};return(a,d)=>{const l=i.resolveComponent("IconClose");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,maxHeight:t.maxHeight})},[t.closable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"icon-box",onClick:s},[i.createVNode(l,{size:"20px"})])):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"default",{},void 0,!0)],4)):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-3a1f6782"]]),lf={class:"field"},Ss=x(i.defineComponent({__name:"PNameEdit",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(t,{emit:e}){const n=t,r=e,o=i.ref(!1),s=i.ref(),a=i.ref(n.withName.name),d=i.ref(!1),l=()=>{d.value=!1},u=async()=>{a.value.trim(),n.withName.setName&&n.withName.setName(a.value),o.value=!o.value,r("submit")};return(h,f)=>{const m=i.resolveComponent("PString"),p=i.resolveComponent("PInput"),C=i.resolveComponent("InfoItem"),S=i.resolveComponent("PButton"),w=i.resolveComponent("el-form");return i.openBlock(),i.createBlock(w,{ref_key:"form",ref:s,style:{width:"100%"}},{default:i.withCtx(()=>[i.createVNode(C,{title:"Название","show-save-dialog":d.value,icon:"edit-title","with-hover":!0,close:o.value,width:"100%",onKeyupEnter:u,onAfterClose:l},{"open-inside-content":i.withCtx(()=>[i.createVNode(C,{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",lf,[i.createVNode(p,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=R=>a.value=R),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])])]),_:1}),i.createVNode(S,{type:"admin",color:"blue",text:"Сохранить",onClick:u})]),default:i.withCtx(()=>[a.value.length?(i.openBlock(),i.createBlock(m,{key:0,string:a.value.length>60?a.value.slice(0,60)+"...":a.value},null,8,["string"])):(i.openBlock(),i.createBlock(m,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:1},8,["show-save-dialog","close"])]),_:1},512)}}}),[["__scopeId","data-v-4f7966cb"]]),cf=["onClick"],ks=x(i.defineComponent({__name:"PTabs",props:{menus:{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"},margin:{type:String,required:!1,default:"var(--tabs-margin, 0 10px 10px 10px)"},borderRadius:{type:String,required:!1,default:"var(--tabs-border-radius, 10px)"}},emits:["select"],setup(t,{emit:e}){const n=t,r=e,o=i.ref(window.innerWidth),s=i.ref(),a=i.ref(Number(n.tabHeight.replace(/[^+\d]/g,""))),d=()=>{o.value=window.innerWidth,a.value=s.value?s.value.clientHeight:Number(n.tabHeight.replace(/[^+\d]/g,""))};i.onMounted(()=>window.addEventListener("resize",d)),i.onUnmounted(()=>window.removeEventListener("resize",d));const l=i.computed(()=>`calc(100% - ${a.value}px + 1px)`);i.onBeforeMount(()=>{n.menus.Select()});const u=h=>{n.menus.Select(h),r("select")};return(h,f)=>(i.openBlock(),i.createElementBlock("div",{class:"mainblock",style:i.normalizeStyle({height:`calc(100% - ${t.outTopMargin} - ${t.tabHeight}`,margin:t.margin,borderRadius:t.borderRadius})},[i.createElementVNode("div",{ref_key:"menuRef",ref:s,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.menus.items,(m,p)=>(i.openBlock(),i.createElementBlock("div",{key:p},[i.createElementVNode("div",{class:i.normalizeClass({"selected-tab":p===t.menus.idx,tab:p!==t.menus.idx}),style:i.normalizeStyle({minHeight:t.tabHeight,maxHeight:t.tabHeight}),onClick:C=>u(p)},i.toDisplayString(m.name),15,cf)]))),128))],4),i.createElementVNode("div",{class:"body-container",style:i.normalizeStyle({background:t.background,height:i.unref(l)})},[i.renderSlot(h.$slots,"default",{},()=>[t.menus.idx>-1?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.menus.GetComponent()),{key:0})):i.createCommentVNode("",!0)],!0)],4)],4))}}),[["__scopeId","data-v-caa5b5d8"]]);function Es(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Es(Object(n),!0).forEach(function(r){Ee(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function df(t,e){if(t==null)return{};var n,r,o=function(a,d){if(a==null)return{};var l,u,h={},f=Object.keys(a);for(u=0;u<f.length;u++)l=f[u],d.indexOf(l)>=0||(h[l]=a[l]);return h}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function ct(t){return function(e){if(Array.isArray(e))return xi(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 xi(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xi(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
|
|
23
|
+
*/function Yr(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}var Jr;(function(t){t.pop="pop",t.push="push"})(Jr||(Jr={}));var Qr;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Qr||(Qr={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Kr;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Kr||(Kr={}));const Dc=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 Hc(t,e,n){const r=()=>{t[e].delete(n)};i.onUnmounted(r),i.onDeactivated(r),i.onActivated(()=>{t[e].add(n)}),t[e].add(n)}function qc(t){if(process.env.NODE_ENV!=="production"&&!i.getCurrentInstance()){Yr("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");return}const e=i.inject(Dc,{}).value;if(!e){process.env.NODE_ENV!=="production"&&Yr("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}Hc(e,"leaveGuards",t)}class Uc{constructor(){c(this,"list",[]);c(this,"defaultSortModel");c(this,"changeFlag",!1)}Set(e){this.Reset(),e&&(Array.isArray(e)?this.list=e:this.list=Zr(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 Ze=new Uc;function Wc(){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?s():a()}}}const _c=(()=>{const t=(s,a)=>i.onBeforeMount(async()=>{Ze.Set(a==null?void 0:a.sortsLib),Ze.Set(a==null?void 0:a.sortsLib),await s()}),{saveButtonClick:e,showConfirmModal:n}=Wc(),r=s=>qc((a,d,l)=>{n((s||o)(),l)}),o=s=>async()=>{e.value=!0;try{s&&await s()}catch(a){console.log(a);return}};return{onBeforeMount:t,onBeforeRouteLeave:r,submit:o}})();function eo(t,e){const n=[];if(t)for(let r=0;r<Math.ceil(t.length/e);r++)n[r]=t.slice(r*e,r*e+e);return n}class ci{constructor(){c(this,"items",[]);c(this,"idx",0);c(this,"key","")}preSelect(){const e=Ge.GetStringQueryParam(this.key);if(!e||e==="undefined"){this.Select(0);return}const n=this.items.findIndex(r=>r.slug===e);n>-1&&this.Select(n)}static Create(e,n){const r=new ci;return r.key=e,r.items=n,r.items.length&&r.preSelect(),r}Select(e){if(this.items.length){if(e===void 0)return this.preSelect();this.idx=e,Ge.SetQueryParam(this.key,this.GetSlug())}}GetMenu(){return this.items[this.idx]}GetComponent(){return this.items[this.idx].component}GetSlug(){return this.items[this.idx].slug}}const Pn=class Pn{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 r=n.replace(/\+7|[^\d]/g,""),o=r.length;switch(!0){case o===0:e="";break;case(o===1&&n.length===1&&r==="7"):case(o===1&&n.length===1&&r==="8"):e="+7 (";break;case o<4:e=`+7 (${r}`;break;case o<7:e=`+7 (${r.slice(0,3)}) ${r.slice(3)}`;break;case o<9:e=`+7 (${r.slice(0,3)}) ${r.slice(3,6)}-${r.slice(6,8)}`;break;default:e=`+7 (${r.slice(0,3)}) ${r.slice(3,6)}-${r.slice(6,8)}-${r.slice(8,10)}`;break}}return e}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};c(Pn,"validatePhone",(e,n,r)=>{Pn.getPhoneRegExp().test(n)||!n?r():r(new Error("Пожалуйста, введите корректный номер телефона"))});let di=Pn;class jc{static Count(e){const n=e.filter(s=>s.rating!==0);let r=0;n.forEach(s=>r=r+s.rating);const o=r/n.length;return isNaN(o)?0:Number((r/n.length).toFixed(2))}}class Gc{static async Auth(e){e&&e()}static Dev(){}}class Zc{constructor(){c(this,"startHour",9);c(this,"startHM",`${this.startHour}:00`);c(this,"endHour",19);c(this,"endHM",`${this.endHour}:00`);c(this,"timelinePxHeight",50);c(this,"timelineStep",Bt.FiveMinutes);c(this,"timelines",Yt[Bt.FiveMinutes])}periodIsCorrect(e,n){return D.GtOrEq(e,this.startHM)&&D.GtOrEq(this.endHM,n)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Yt[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,r,o){return o.filter(s=>s.id!==r).every(s=>!D.PeriodsIntersects(e,n,s.startTime,s.endTime))}sortByStartTime(e){e.sort((n,r)=>D.HMtoM(n.startTime)-D.HMtoM(r.startTime))}}const Xc=-68;function Yc(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(t),r=e??Xc;let o=0;n&&(o=n.getBoundingClientRect().top+r+document.body.scrollTop),o&&document.body.scrollTo({top:o,behavior:"smooth"})}class Jc{static Sort(e){e.forEach((n,r)=>n.order=r)}}function Qc(t,e){let n=!0;return t.value.validate(r=>(r||(n=!1),n)),n}const Kc=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 gn{constructor(e){c(this,"id");c(this,"message","");c(this,"userName");c(this,"createdOn",new Date);c(this,"chatId");c(this,"type","message");z.BuildClass(this,e)}static Create(e,n,r,o){const s=new gn;return s.id=je(),s.chatId=e,s.message=r,s.userName=o,s}static CreatePingMessage(){const e=new gn;return e.type="ping",e.id=je(),e}isMessage(){return this.type==="message"||this.type===""}}const ed="";class td{constructor(e="",n="",r="set"){c(this,"client");c(this,"endpoint","");c(this,"query","");c(this,"period",2e4);z.BuildClass(this,{endpoint:e,query:n,mutation:r}),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(gn.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,ed.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)}}let nd=(H=class{},c(H,"Arrays",Ve),c(H,"Axios",zt),c(H,"BaseStore",X),c(H,"Cache",pn),c(H,"Classes",z),c(H,"CarouselSwipe",Mc),c(H,"Color",$c),c(H,"CreateSortModels",Zr),c(H,"Cursor",Ic),c(H,"DateMask",zc),c(H,"Dates",He),c(H,"Dragger",Oc),c(H,"Extension",Xr),c(H,"Favourite",Lc),c(H,"Hooks",_c),c(H,"HttpClient",K),c(H,"Id",me),c(H,"MakeCarousel",eo),c(H,"Period",Ln),c(H,"PhoneService",di),c(H,"Rating",jc),c(H,"Router",Ge),c(H,"RouterGuard",Gc),c(H,"Scheduler",Zc),c(H,"Scroll",Yc),c(H,"Sorter",Jc),c(H,"Static",qn),c(H,"Strings",Y),c(H,"Time",D),c(H,"Timer",Mt),c(H,"Token",Vt),c(H,"Menus",ci),c(H,"validate",Qc),c(H,"WaitElement",Kc),c(H,"WebSocketClient",td),H);class id{constructor(){c(this,"limit",25);c(this,"count",0);c(this,"curPage",1);c(this,"storeModule","")}setCurPage(e){this.curPage=e}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const rd=new id;let od=class{async Login(e=Ne.Form.GetValues()){const n=await K.Post({query:"auth/login",payload:e});if(!n)throw"Ошибка авторизации";v.Auth.Status.SetState(n)}async LoginAs(e){await K.Post({query:"auth/login-as",payload:{email:e}})}async Register(e=Ne.Form.GetValues()){const n=await K.Post({query:"auth/register",payload:e});if(!n)throw"Ошибка авторизации";v.Auth.Status.SetState(n)}async RestorePassword(e=Ne.Form.GetValues()){await K.Post({query:"auth/restore-password",payload:e})}async PasswordChange(e=Ne.Form.GetValues()){e.id=v.H.Router.GetStringParam("userId"),await K.Put({query:"auth/password-change",payload:e})}async RefreshToken(){await K.Post({query:"auth/refresh-token",payload:{refreshToken:Vt.getRefreshToken()}})}async CheckUuid(e){await K.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}};const sd=new od;var ad=Object.defineProperty,yn=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&ad(e,n,o),o};const Tt=class va{constructor(e){c(this,"id");c(this,"description","");c(this,"time","");c(this,"latitude","");c(this,"longitude","");c(this,"emails",[]);c(this,"postAddresses",[new Qt]);c(this,"phones",[]);c(this,"websites",[]);z.BuildClass(this,e)}addEmail(){const e=et.Create();return e.contactId=this.id,this.emails.push(e),e}addPhone(){const e=tt.Create();return e.contactId=this.id,this.phones.push(e),e}static Create(){const e=new va;return e.id=me.UUID(),e}removeEmail(e){z.RemoveFromClassById(e,this.emails)}removePhone(e){z.RemoveFromClassById(e,this.phones)}addPostAddress(){this.postAddresses.push(new Qt)}addWebsite(){this.websites.push(new Un)}pushFirst(){this.emails.length||this.emails.push(new et),this.phones.length||this.phones.push(new tt)}getCoords(){return[Number(this.latitude),Number(this.longitude)]}updateDescription(e){this.description=e}updateTime(e){this.time=e}updateLatitude(e){this.latitude=e}updateLongitutde(e){this.longitude=e}};yn([z.GetClassConstructor(et)],Tt.prototype,"emails"),yn([z.GetClassConstructor(Qt)],Tt.prototype,"postAddresses"),yn([z.GetClassConstructor(tt)],Tt.prototype,"phones"),yn([z.GetClassConstructor(Un)],Tt.prototype,"websites");let ld=Tt,cd=class extends X{constructor(){super(ld,"contacts")}};const dd=new cd;let ud=class extends X{constructor(){super(et,"emails")}};const hd=new ud;let fd=class extends X{constructor(){super(Pe,"file-infos")}};const md=new fd;class ui{constructor(e){c(this,"id");c(this,"ftsp");c(this,"name","");z.BuildClass(this,e)}static Create(e){const n=new ui;return n.id=me.UUID(),n.ftsp=JSON.stringify(e),n}}let pd=class extends X{constructor(){super(ui,"ftsp-presets")}};const gd=new pd;let yd=class extends X{constructor(){super(ar,"humans")}};const wd=new yd;let bd=class extends X{constructor(){super(tt,"phones")}};const Cd=new bd;class Sd{constructor(e){c(this,"id");c(this,"nameRus","");z.BuildClass(this,e)}}var kd=Object.defineProperty,Ed=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&kd(e,n,o),o};class to{constructor(e){c(this,"id");c(this,"nameRus","");c(this,"fields",[]);z.BuildClass(this,e)}}Ed([z.GetClassConstructor(Sd)],to.prototype,"fields");let xd=class extends X{constructor(){super(to,"schemas")}};const Bd=new xd;class no{constructor(e){c(this,"id","");c(this,"value","");c(this,"label","");c(this,"key","");c(this,"description","");c(this,"route","");c(this,"searchElementMetas",[]);z.BuildClass(this,e)}}class Md{constructor(e){c(this,"id");c(this,"name","");c(this,"label","");z.BuildClass(this,e)}}var Rd=Object.defineProperty,io=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Rd(e,n,o),o};class mt{constructor(e){c(this,"id");c(this,"key","");c(this,"label","");c(this,"order",0);c(this,"route","");c(this,"table","");c(this,"active",!0);c(this,"searchColumn","");c(this,"descriptionColumn","");c(this,"labelColumn","");c(this,"valueColumn","");c(this,"options",[]);c(this,"searchGroupMetaColumns",[]);z.BuildClass(this,e)}}io([z.GetClassConstructor(no)],mt.prototype,"options"),io([z.GetClassConstructor(Md)],mt.prototype,"searchGroupMetaColumns");class hi{constructor(e){c(this,"query","");c(this,"key","");c(this,"params","");c(this,"suggester",!1);c(this,"mustBeTranslated",!0);c(this,"options",[]);c(this,"searchGroupId","");c(this,"searchGroups",[]);c(this,"searchGroup",new mt);c(this,"searchObjects",[]);c(this,"pagination",new Kt);c(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(n=>new mt(n))),e.searchGroup&&(this.searchGroup=new mt(e.searchGroup)),e.options&&(this.options=e.options.map(n=>new no(n))),this.count=e.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(e){const n=this.searchGroups.find(r=>r.id===e);n?this.searchGroup=n:this.searchGroup=new mt}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(Ge.Route().query.groupId)}setQuery(){const e=Ge.Route().query.query;e&&(this.query=e)}}let $d=class{constructor(){c(this,"isSearchDrawerOpen",i.ref(!1));c(this,"searchModel",i.reactive(new hi));c(this,"searchGroups",i.reactive([]));c(this,"count",0)}async Search(e){const n=await K.Get({query:`?key=${e.key}&query=${e.query}`});n&&n.searchGroup&&n.searchGroup.options.forEach(r=>{e.searchObjects.push({id:r.id,value:r.value,label:r.label,description:r.description})})}async mainSearch(e){this.SetSearchModel(await K.Get({query:`/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(r=>{r.options=[]});const n=await K.Get({query:`main?searchModel=${e.toUrl()}`});this.SetSearchModel(n)}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new hi}SetSearchModel(e){e&&(this.searchModel=new hi(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const ro=new $d;class fi{constructor(e){c(this,"id");c(this,"login","");c(this,"email","");c(this,"password","");z.BuildClass(this,e)}static Create(){const e=new fi;return e.id=me.UUID(),e}}let Id=class extends X{constructor(){super(fi,"users-accounts")}};const Ad=new Id;var oo=(t=>(t.simple="simple",t.oneToMany="oneToMany",t.manyToMany="manyToMany",t))(oo||{}),he=(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))(he||{});class so{constructor(e){c(this,"id");c(this,"name",he.String);c(this,"valueRelation",oo.simple);z.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===he.Radio)return"RadioProp";if(this.name===he.Set)return"SetProp";if(this.name===he.Number)return"NumberProp";if(this.name===he.String)return"StringProp"}}let vd=class extends X{constructor(){super(so,"value-types")}};const Nd=new vd;let Pd=(Ce=class{},c(Ce,"Auth",sd),c(Ce,"Contacts",dd),c(Ce,"Emails",hd),c(Ce,"FileInfos",md),c(Ce,"FTSPPresets",gd),c(Ce,"Humans",wd),c(Ce,"Phones",Cd),c(Ce,"Schemas",Bd),c(Ce,"UserAccounts",Ad),c(Ce,"ValueTypes",Nd),c(Ce,"Search",ro),Ce);var mi=(t=>(t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl",t))(mi||{});let Vd=(Je=class{},c(Je,"Orders",ke),c(Je,"Sizes",mi),c(Je,"Statuses",fe),c(Je,"DataTypes",ie),c(Je,"ValueTypes",he),c(Je,"Operators",de),Je);class zd{constructor(){c(this,"title","");c(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 Td=new zd;class Fd{constructor(){c(this,"menu",[]);c(this,"path","");c(this,"isOpen",!0);c(this,"filterString","")}Set(e){this.menu=e}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(e=>{var n;return Y.SearchIn(e.name,this.filterString)||((n=e.children)==null?void 0:n.some(r=>Y.SearchIn(r.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(r=>Y.SearchIn(r.name,this.filterString)):e.children}}const Od=new Fd;class Ld{constructor(){c(this,"Menu",i.reactive(Od));c(this,"Head",i.reactive(Td))}}const Dd=new Ld;class Hd extends tr{constructor(){super(...arguments);c(this,"confirmButtonText","Да");c(this,"cancelButtonText","Нет");c(this,"resolve");c(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((r,o)=>{this.resolve=r,this.reject=o})}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 qe=new Hd;class qd extends er{Show(){super.show()}Hide(){super.hide()}}const Ud=new qd;class ot{}c(ot,"Admin",Dd),c(ot,"Dialog",qe),c(ot,"Loading",Ud),c(ot,"Notify",i.reactive(pe)),c(ot,"Btn",Ke),c(ot,"Input",Yi);class v{}c(v,"Auth",i.reactive(Ne)),c(v,"UI",i.reactive(ot)),c(v,"Paginator",i.reactive(rd)),c(v,"S",Pd),c(v,"H",nd),c(v,"C",Ga),c(v,"T",Vd),c(v,"F",Qa);class ao{constructor(e){c(this,"id");c(this,"num","");c(this,"fileInfoId");c(this,"fileInfo",new Pe);v.H.Classes.BuildClass(this,e)}}class Ft{constructor(e){c(this,"id");c(this,"passportId");c(this,"fileInfoId");c(this,"fileInfo",new v.C.FileInfo);c(this,"order",0);z.BuildClass(this,e)}static Create(e){const n=new Ft;return n.id=v.H.Id.UUID(),n.passportId=e,n}}var Wd=Object.defineProperty,_d=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Wd(e,n,o),o};class pi{constructor(e){c(this,"id");c(this,"num","");c(this,"seria","");c(this,"division","");c(this,"divisionCode","");c(this,"citzenship","");c(this,"date",new Date);c(this,"address","");c(this,"passportScans",[]);z.BuildClass(this,e)}}_d([z.GetClassConstructor(Ft)],pi.prototype,"passportScans");class lo{constructor(e){c(this,"id");c(this,"num","");c(this,"fileInfoId");c(this,"fileInfo",new Pe);v.H.Classes.BuildClass(this,e)}}const jd=Object.freeze(Object.defineProperty({__proto__:null,Inn:ao,Passport:pi,PassportScan:Ft,Snils:lo},Symbol.toStringTag,{value:"Module"}));let Gd=class extends X{constructor(){super(ao,"inns")}};const Zd=new Gd;let Xd=class extends X{constructor(){super(Ft,"passport-scans")}};const Yd=new Xd;let Jd=class extends X{constructor(){super(pi,"passports")}};const Qd=new Jd;let Kd=class extends X{constructor(){super(lo,"snilss")}};const eu=new Kd,tu=Object.freeze(Object.defineProperty({__proto__:null,C:jd,S:Object.freeze(Object.defineProperty({__proto__:null,Inns:Zd,PassportScans:Yd,Passports:Qd,Snilss:eu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class st{constructor(e){c(this,"id");c(this,"name","");c(this,"score",0);c(this,"order",0);c(this,"showMoreQuestions",!1);c(this,"showOther",!1);c(this,"fieldId");c(this,"isMatrixY",!1);v.H.Classes.BuildClass(this,e)}static Create(e){const n=new st;return n.id=v.H.Id.UUID(),n.fieldId=e,n}}class co{constructor(e){c(this,"id");c(this,"name","");c(this,"order",0);c(this,"fieldId");v.H.Classes.BuildClass(this,e)}}class gi{constructor(e){c(this,"id");c(this,"name","");c(this,"order",0);v.H.Classes.BuildClass(this,e)}}class pt{constructor(e){c(this,"id");c(this,"name","");c(this,"fieldId");v.H.Classes.BuildClass(this,e)}static Create(e){const n=new pt;return n.id=v.H.Id.UUID(),n.fieldId=e,n}}var nu=Object.defineProperty,Ot=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&nu(e,n,o),o};const at=class Tn{constructor(e){c(this,"id");c(this,"name","");c(this,"code","");c(this,"valueTypeId");c(this,"order",0);c(this,"ageCompare",!1);c(this,"answerVariants",[]);c(this,"answerVariantsForDelete",[]);c(this,"fieldExamples",[]);c(this,"fieldVariants",[]);c(this,"valueType",new so);c(this,"fieldMeasures",[]);c(this,"showSet",!1);c(this,"showRadio",!1);c(this,"isEdit",!1);c(this,"children",[]);c(this,"parentId");c(this,"formSectionId");c(this,"selected",!1);v.H.Classes.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 Tn;return n.id=v.H.Id.UUID(),n.formSectionId=e,n}getRegisterPropertyRadioOriginalValue(e){const n=this.answerVariants.find(r=>r.id===e);return n?n.name:""}addRadioItem(e){const n=new st(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(r=>r.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 gi(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new pt)}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=st.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=Tn.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=pt.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new Tn(this);return e.id=v.H.Id.UUID(),e.answerVariants.forEach(n=>{n.id=v.H.Id.UUID(),n.fieldId=e.id}),e.children=e.children.map(n=>{const r=n.copy();return r.parentId=e.id,r}),e}};Ot([v.H.Classes.GetClassConstructor(st)],at.prototype,"answerVariants"),Ot([v.H.Classes.GetClassConstructor(co)],at.prototype,"fieldExamples"),Ot([v.H.Classes.GetClassConstructor(pt)],at.prototype,"fieldVariants"),Ot([v.H.Classes.GetClassConstructor(gi)],at.prototype,"fieldMeasures"),Ot([v.H.Classes.GetClassConstructor(at)],at.prototype,"children");let wn=at;class yi{constructor(e){c(this,"id");c(this,"answerId");c(this,"comment","");c(this,"fileInfoId");c(this,"fileInfo",new Pe);v.H.Classes.BuildClass(this,e)}}class lt{constructor(e){c(this,"id");c(this,"answerVariantId");c(this,"answerVariantIdY");c(this,"fieldFillId");v.H.Classes.BuildClass(this,e)}static Create(e,n){const r=new lt;return r.id=je(),r.fieldFillId=e,r.answerVariantId=n,r}static GetClassName(){return"selectedAnswerVariant"}}var iu=Object.defineProperty,uo=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&iu(e,n,o),o};const wi=class Zi{constructor(e){c(this,"id");c(this,"valueString");c(this,"valueOther");c(this,"valueNumber");c(this,"valueDate");c(this,"fileInfo",new Pe);c(this,"fileInfoId");c(this,"order",0);c(this,"selectedAnswerVariants",[]);c(this,"patientId");c(this,"fieldId");c(this,"formFillId");c(this,"answerVariantId");c(this,"filled",!1);c(this,"researchResultId");c(this,"answerFiles",[]);c(this,"answerFilesForDelete",[]);v.H.Classes.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,n){const r=new Zi;return r.id=je(),r.fieldId=e.id,r.formFillId=n,r.order=e.order,r.valueNumber=0,r.valueString="",r.valueDate=new Date,r}setString(e){this.valueString=e,this.valueString&&(this.filled=this.valueString.length>0)}setNumber(e){this.valueNumber=e,this.valueNumber&&(this.filled=!0)}setOther(e){this.valueOther=e,this.valueOther&&(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(r=>Zi.Create(r,n))}addFile(){const e=new yi;return e.id=je(),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 r=lt.Create(this.id,e);return r.answerVariantIdY=n,this.selectedAnswerVariants.push(r),this.filled=!0,r}getMatrixValue(e,n){return this.selectedAnswerVariants.find(r=>r.answerVariantId===e&&r.answerVariantIdY===n)}addSelectedAnswerVariant(e){const n=lt.Create(this.id,e);return this.selectedAnswerVariants.push(n),this.filled=!0,n}static GetClassName(){return"answer"}showOther(e){const n=e.find(r=>r.showOther);return n?this.answerVariantId===n.id||this.selectedAnswerVariants.some(r=>r.answerVariantId===n.id):!1}};uo([v.H.Classes.GetClassConstructor(lt)],wi.prototype,"selectedAnswerVariants"),uo([v.H.Classes.GetClassConstructor(yi)],wi.prototype,"answerFiles");let gt=wi;class ru{constructor(e){c(this,"id");c(this,"fieldId");v.H.Classes.BuildClass(this,e)}static GetClassName(){return"fieldFilter"}}var ou=Object.defineProperty,su=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&ou(e,n,o),o};const ho=class Na{constructor(e){c(this,"id");c(this,"name","");c(this,"order",0);c(this,"fields",[]);c(this,"formId");v.H.Classes.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 Na;return n.id=v.H.Id.UUID(),n.formId=e,n}addField(){const e=wn.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.H.Classes.GetClassConstructor(wn)],ho.prototype,"fields");let bn=ho;var au=Object.defineProperty,lu=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&au(e,n,o),o};const fo=class Pa{constructor(e){c(this,"id");c(this,"name","");c(this,"order",0);c(this,"isLaboratory",!1);c(this,"formSections",[]);c(this,"isEdit",!1);c(this,"withDates",!1);c(this,"withScores",!1);c(this,"selectedForExport",!1);c(this,"filterString","");c(this,"showOnlyNotFilled",!1);c(this,"showOnlyFilled",!1);v.H.Classes.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new Pa;return e.id=v.H.Id.UUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=bn.Create(this.id);return this.formSections.push(e),v.H.Sorter.Sort(this.formSections),e}getFields(){const e=this.formSections.map(r=>r.fields).flat(),n=e.map(r=>r.children).flat();return e.concat(n).filter(r=>r.children.length===0)}};lu([v.H.Classes.GetClassConstructor(bn)],fo.prototype,"formSections");let mo=fo;var cu=Object.defineProperty,du=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&cu(e,n,o),o};const po=class Va{constructor(e){c(this,"id");c(this,"date",new Date);c(this,"editMode",!1);c(this,"userFormId");c(this,"fillingPercentage",0);c(this,"fieldFills",[]);c(this,"num","");c(this,"formId");v.H.Classes.BuildClass(this,e)}static Create(e){const n=new Va;return n.id=v.H.Id.UUID(),n.formId=e.id,n.fieldFills.push(...gt.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(r=>r.fieldId===e)}pushRegisterProperty(e){const n=new gt;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=gt.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(r=>r.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.answerVariantId===e)}getFieldsFieldFillsMap(e){const n={};return e.forEach(r=>{var o;if(r.code){const s=(o=this.getFieldFillByFieldId(r.id))==null?void 0:o.valueNumber;n[r.code]=s}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};du([v.H.Classes.GetClassConstructor(gt)],po.prototype,"fieldFills");let go=po;const uu=Object.freeze(Object.defineProperty({__proto__:null,AnswerVariant:st,Field:wn,FieldExample:co,FieldFill:gt,FieldFillFile:yi,FieldFilter:ru,FieldMeasure:gi,FieldVariant:pt,Form:mo,FormFill:go,FormSection:bn,SelectedAnswerVariant:lt},Symbol.toStringTag,{value:"Module"}));let hu=class extends X{constructor(){super(st,"answer-variants")}};const fu=new hu;let mu=class extends X{constructor(){super(gt,"field-fills")}};const pu=new mu;let gu=class extends X{constructor(){super(wn,"fields")}};const yu=new gu;let wu=class extends X{constructor(){super(go,"form-fills")}};const bu=new wu;let Cu=class extends X{constructor(){super(bn,"form-sections")}};const Su=new Cu;let ku=class extends X{constructor(){super(mo,"forms")}};const Eu=new ku;let xu=class extends X{constructor(){super(lt,"selected-answer-variants")}};const Bu=new xu,Mu=Object.freeze(Object.defineProperty({__proto__:null,C:uu,S:Object.freeze(Object.defineProperty({__proto__:null,AnswerVariants:fu,FieldFills:pu,Fields:yu,FormFills:bu,FormSections:Su,Forms:Eu,SelectedAnswerVariants:Bu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Cn{constructor(e){c(this,"id");c(this,"name","");c(this,"label","");v.H.Classes.BuildClass(this,e)}static Create(e,n){const r=new Cn;return r.id=v.H.Id.UUID(),r.name=e,r.label=n,r}}const Ru=Object.freeze(Object.defineProperty({__proto__:null,ColorTheme:Cn},Symbol.toStringTag,{value:"Module"}));let $u=class extends X{constructor(){super(Cn,"color-themes")}};const Iu=new $u,Au=Object.freeze(Object.defineProperty({__proto__:null,Docs:tu,Forms:Mu,Settings:Object.freeze(Object.defineProperty({__proto__:null,C:Ru,S:Object.freeze(Object.defineProperty({__proto__:null,ColorThemes:Iu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class vu extends Gt{constructor(){super(...arguments);c(this,"label","Логин");c(this,"name","login");c(this,"validator",new Ji);c(this,"method",dt.Login);c(this,"id","field-auth-login")}}const Nu={key:0,class:"mainblock"},Pu={class:"mainblock-right"},Vu={class:"title"},zu={class:"body"},yo=x(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),r=i.ref(!0),o=i.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return o.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return o.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return o.value=window.matchMedia("(max-width: 768px)").matches}return o.value=window.matchMedia("(max-width: 1330px)").matches}),n.value=!0}),(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(a.$slots,"main",{},void 0,!0),i.unref(n)?(i.openBlock(),i.createElementBlock("div",Nu,[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(o)?"100%":t.menuWidth,maxWidth:i.unref(o)?"100%":t.menuWidth,marginLeft:i.unref(o)?"-110%":"0",position:i.unref(o)?"fixed":"relative",top:i.unref(o)?"140px":""})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(o)?"auto":t.menuWidth,boxShadow:i.unref(o)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!i.unref(r)&&i.unref(o)?"110%":"0",borderTopLeftRadius:i.unref(o)?"0":"",borderBottomLeftRadius:i.unref(o)?"0":""}),onClick:d[0]||(d[0]=l=>s())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",Pu,[i.createElementVNode("div",Vu,[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(o)?"flex":"none"}),onClick:d[1]||(d[1]=l=>s())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)]),i.createElementVNode("div",zu,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])])):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-df55a859"]]),Tu={class:"mainblock-right"},Fu={class:"body"},wo=x(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),r=i.ref(!0),o=i.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return o.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return o.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return o.value=window.matchMedia("(max-width: 768px)").matches}return o.value=window.matchMedia("(max-width: 1330px)").matches}),n.value=!0}),(a,d)=>(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(o)?"block":"flex"})},[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(o)?"100%":t.menuWidth,display:t.leftWidth!=="0px"?"flex":"none",top:i.unref(o)?"58px":"80px"})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(o)?"100%":t.menuWidth,boxShadow:i.unref(o)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!i.unref(r)&&i.unref(o),"0"),overflowX:i.unref(o)?"scroll":"hidden",display:i.unref(o)?"flex":"block",background:i.unref(o)?"#ffffff":"",overflowY:i.unref(o)?"hidden":"auto"}),onClick:d[0]||(d[0]=l=>s())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",Tu,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({position:t.titleSticky?"sticky":"relative",top:t.titleSticky?i.unref(o)?"108px":"58px":"0",zIndex:t.titleSticky?"10":""})},[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(o)?"flex":"none"}),onClick:d[1]||(d[1]=l=>s())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)],4),i.createElementVNode("div",Fu,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-a7d519dd"]]),Ou={class:"item"},Lu={class:"move"},Du={class:"item-tools"},Hu=["onClick"],qu={class:"item-description"},Uu=["onUpdate:modelValue"],bo=x(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,r=e,o=async a=>{r("addImage",a)},s=async a=>{z.RemoveFromClassById(a.id,n.fileList,[]),r("remove",a)};return(a,d)=>{const l=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:d[0]||(d[0]=f=>i.unref(Ve).Sort(t.fileList))},{item:i.withCtx(({element:f,index:m})=>[i.createElementVNode("div",Ou,[i.createElementVNode("div",Lu,[i.createElementVNode("div",Du,[d[1]||(d[1]=i.createElementVNode("svg",{class:"icon-move"},[i.createElementVNode("use",{"xlink:href":"#move"})],-1)),i.createElementVNode("button",{class:"admin-del2",onClick:i.withModifiers(p=>s(f),["prevent"])},"Удалить",8,Hu)]),i.createVNode(l,{"file-info":f,height:150,"default-ratio":t.defaultRatio,onRemoveFile:p=>i.unref(z).RemoveFromClassByIndex(m,t.fileList,t.fileListForDelete),onCrop:p=>o(f)},null,8,["file-info","default-ratio","onRemoveFile","onCrop"])]),i.createElementVNode("div",qu,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":p=>f.description=p,class:"item-description-form",placeholder:"..."},null,8,Uu),[[i.vModelText,f.description]])])])]),_:1},8,["list"]),i.createVNode(h)],64)}}}),[["__scopeId","data-v-d92b4a59"]]),Wu="p-button",_u=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:mi.M,required:!1},type:{type:String,default:fe.Primary,required:!1},fontSize:{type:String,default:"",required:!1}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,o=()=>{r("click")},s=i.computed(()=>Y.JoinSnake(Wu,n.skin)),a=i.computed(()=>Y.JoinSnake(s.value,n.type)),d=i.computed(()=>Y.JoinSnake(s.value,n.size)),l=i.computed(()=>[s.value,a.value,d.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(l),onClick:i.withModifiers(o,["prevent"])}),[i.renderSlot(u.$slots,"default",{},void 0,!0),i.createTextVNode(" "+i.toDisplayString(t.text),1)],16))}}),Sn=x(_u,[["__scopeId","data-v-9f699dcb"]]),bi=x(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-48c8e6e2"]]),ju=["value"],Co=x(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"),r=e,o=()=>{r("change",n.value)};return(s,a)=>(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:o},null,40,ju),[[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(bi,{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-85407c13"]]),Gu=["for"],Zu={class:"field"},Xu={class:"left-field"},Yu=["id","value","name"],Ju={class:"right-field"},So=x(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,r=i.useModel(t,"modelValue"),o=a=>{const l=a.target.valueAsDate;l?(r.value=l,n("input",s(r.value))):(r.value=null,n("input",null))},s=a=>a?new Date(a.getTime()-a.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"";return(a,d)=>(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,Gu)):i.createCommentVNode("",!0),i.createElementVNode("div",Zu,[i.createElementVNode("div",Xu,[i.renderSlot(a.$slots,"default",{},void 0,!0)]),i.createElementVNode("input",{id:t.label,max:"2100",min:"1900",value:s(r.value),class:"text-field__input",type:"date",name:t.label,onInput:o},null,40,Yu),i.createElementVNode("div",Ju,[i.renderSlot(a.$slots,"right",{},void 0,!0)])])],4))}}),[["__scopeId","data-v-60c7417a"]]),ko=x(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-d9fdfe7d"]]);var Qu=Object.defineProperty,Ku=(t,e,n)=>e in t?Qu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lt=(t,e,n)=>Ku(t,typeof e!="symbol"?e+"":e,n);const Eo={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},xo=(t,e,n)=>t.replaceAll(e,"").replace(n,".").replace("..",".").replace(/[^.\d]/g,""),Bo=(t,e,n)=>{var r;return new Intl.NumberFormat(((r=n.number)==null?void 0:r.locale)??"en",{minimumFractionDigits:t,maximumFractionDigits:e,roundingMode:"trunc"})},eh=(t,e=!0,n)=>{var r,o,s,a;const d=((r=n.number)==null?void 0:r.unsigned)!==!0&&t.startsWith("-")?"-":"",l=((o=n.number)==null?void 0:o.fraction)??0;let u=Bo(0,l,n);const h=u.formatToParts(1000.12),f=((s=h.find(w=>w.type==="group"))==null?void 0:s.value)??" ",m=((a=h.find(w=>w.type==="decimal"))==null?void 0:a.value)??".",p=xo(t,f,m);if(Number.isNaN(parseFloat(p)))return d;const C=p.split(".");if(C[1]!=null&&C[1].length>=1){const w=C[1].length<=l?C[1].length:l;u=Bo(w,l,n)}let S=u.format(parseFloat(p));return e?l>0&&p.endsWith(".")&&!p.slice(0,-1).includes(".")&&(S+=m):S=xo(S,f,m),d+S};let th=class{constructor(e={}){Lt(this,"opts",{}),Lt(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...Eo,...n.tokens};for(const r of Object.values(n.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else n.tokens=Eo;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((r,o)=>r.length-o.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 r=this.process(e,n).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:r>=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 r=this.process(e,n.slice(-1).pop()??"",!1);return n.find(o=>this.process(e,o,!1).length>=r.length)??""}escapeMask(e){const n=[],r=[];return e.split("").forEach((o,s)=>{o==="!"&&e[s-1]!=="!"?r.push(s-r.length):n.push(o)}),{mask:n.join(""),escaped:r}}process(e,n,r=!0){if(this.opts.number!=null)return eh(e,r,this.opts);if(n==null)return e;const o=`v=${e},mr=${n},m=${r?1:0}`;if(this.memo.has(o))return this.memo.get(o);const{mask:s,escaped:a}=this.escapeMask(n),d=[],l=this.opts.tokens!=null?this.opts.tokens:{},u=this.isReversed()?-1:1,h=this.isReversed()?"unshift":"push",f=this.isReversed()?0:s.length-1,m=this.isReversed()?()=>w>-1&&R>-1:()=>w<s.length&&R<e.length,p=L=>!this.isReversed()&&L<=f||this.isReversed()&&L>=f;let C,S=-1,w=this.isReversed()?s.length-1:0,R=this.isReversed()?e.length-1:0,O=!1;for(;m();){const L=s.charAt(w),P=l[L],j=(P==null?void 0:P.transform)!=null?P.transform(e.charAt(R)):e.charAt(R);if(!a.includes(w)&&P!=null?(j.match(P.pattern)!=null?(d[h](j),P.repeated?(S===-1?S=w:w===f&&w!==S&&(w=S-u),f===S&&(w-=u)):P.multiple&&(O=!0,w-=u),w+=u):P.multiple?O&&(w+=u,R-=u,O=!1):j===C?C=void 0:P.optional&&(w+=u,R-=u),R+=u):(r&&!this.isEager()&&d[h](L),j===L&&!this.isEager()?R+=u:C=L,this.isEager()||(w+=u)),this.isEager())for(;p(w)&&(l[s.charAt(w)]==null||a.includes(w));){if(r){if(d[h](s.charAt(w)),e.charAt(R)===s.charAt(w)){w+=u,R+=u;continue}}else s.charAt(w)===e.charAt(R)&&(R+=u);w+=u}}return this.memo.set(o,d.join("")),this.memo.get(o)}};const Mo=t=>JSON.parse(t.replaceAll("'",'"')),nh=(t,e={})=>{const n={...e};t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=ih(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=kn(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=kn(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=kn(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=rh(t.dataset.maskaTokens));const r={};return t.dataset.maskaNumberLocale!=null&&(r.locale=t.dataset.maskaNumberLocale),t.dataset.maskaNumberFraction!=null&&(r.fraction=parseInt(t.dataset.maskaNumberFraction)),t.dataset.maskaNumberUnsigned!=null&&(r.unsigned=kn(t.dataset.maskaNumberUnsigned)),(t.dataset.maskaNumber!=null||Object.values(r).length>0)&&(n.number=r),n},kn=t=>t!==""?!!JSON.parse(t):!0,ih=t=>t.startsWith("[")&&t.endsWith("]")?Mo(t):t,rh=t=>{if(t.startsWith("{")&&t.endsWith("}"))return Mo(t);const e={};return t.split("|").forEach(n=>{const r=n.split(":");e[r[0]]={pattern:new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e};let oh=class{constructor(e,n={}){Lt(this,"items",new Map),Lt(this,"eventAbortController"),Lt(this,"onInput",r=>{if(r instanceof CustomEvent&&r.type==="input"&&!r.isTrusted&&!r.bubbles)return;const o=r.target,s=this.items.get(o),a="inputType"in r&&r.inputType.startsWith("delete"),d=s.isEager(),l=a&&d&&s.unmasked(o.value)===""?"":o.value;this.fixCursor(o,a,()=>this.setValue(o,l))}),this.options=n,this.eventAbortController=new AbortController,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(){this.eventAbortController.abort(),this.items.clear()}init(e){const n=this.getOptions(this.options);for(const r of e){if(!this.items.has(r)){const{signal:s}=this.eventAbortController;r.addEventListener("input",this.onInput,{capture:!0,signal:s})}const o=new th(nh(r,n));this.items.set(r,o),queueMicrotask(()=>this.updateValue(r)),r.selectionStart===null&&o.isEager()&&console.warn("Maska: input of `%s` type is not supported",r.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:r,postProcess:o,...s}=e;return s}fixCursor(e,n,r){const o=e.selectionStart,s=e.value;if(r(),o===null||o===s.length&&!n)return;const a=e.value,d=s.slice(0,o),l=a.slice(0,o),u=this.processInput(e,d).unmasked,h=this.processInput(e,l).unmasked;let f=o;d!==l&&(f+=n?a.length-s.length:u.length-h.length),e.setSelectionRange(f,f)}setValue(e,n){const r=this.processInput(e,n);e.value=r.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(o=>o(r)):this.options.onMaska(r)),e.dispatchEvent(new CustomEvent("maska",{detail:r})),e.dispatchEvent(new CustomEvent("input",{detail:r.masked}))}processInput(e,n){const r=this.items.get(e);let o=n??e.value;this.options.preProcess!=null&&(o=this.options.preProcess(o));let s=r.masked(o);return this.options.postProcess!=null&&(s=this.options.postProcess(s)),{masked:s,unmasked:r.unmasked(o),completed:r.completed(o)}}};const Ci=new WeakMap,sh=(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)},Ro=(t,e)=>{var n;const r=t instanceof HTMLInputElement?t:t.querySelector("input");if(r==null||(r==null?void 0:r.type)==="file")return;let o={};if(e.value!=null&&(o=typeof e.value=="string"?{mask:e.value}:{...e.value}),e.arg!=null){const s=a=>{const d=e.modifiers.unmasked?a.unmasked:e.modifiers.completed?a.completed:a.masked;sh(e,d)};o.onMaska=o.onMaska==null?s:Array.isArray(o.onMaska)?[...o.onMaska,s]:[o.onMaska,s]}Ci.has(r)?(n=Ci.get(r))==null||n.update(o):Ci.set(r,new oh(r,o))},ah=["for"],lh={class:"left-field"},ch=["disabled"],dh={class:"right-field"},Si=x(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,r)=>(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,ah)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor,background:t.disabled?"#F5F5F5":"var(--input-background)"})},[i.createElementVNode("div",lh,[i.renderSlot(n.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("input",i.mergeProps(n.$attrs,{"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),class:"text-field__input",style:{color:t.color},disabled:t.disabled,onBlur:r[1]||(r[1]=o=>n.$emit("blur",e.value)),onInput:r[2]||(r[2]=o=>n.$emit("input",e.value))}),null,16,ch),[[i.vModelDynamic,e.value],[i.unref(Ro),t.mask]]),i.createElementVNode("div",dh,[i.renderSlot(n.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-e758ff7a"]]),$o=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,r=i.useModel(t,"modelValue"),o=He.Format(r.value),s=i.ref(o),a=l=>{if(!d(l))return;const u=He.FromRuStr(l);r.value=u,n("beforeChange",u),n("change",u)},d=l=>l.length!=10?(s.value=o,pe.Error("Неверный формат даты"),!1):Number(s.value.slice(0,2))>31?(s.value=o,pe.Error("Неверный день месяца"),!1):Number(s.value.slice(3,5))>12?(s.value=o,pe.Error("Неверный месяц"),!1):Number(s.value.slice(6,10))>2100?(s.value=o,pe.Error("Неверный год"),!1):!0;return(l,u)=>{const h=i.resolveComponent("PInput");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)}}}),uh=["for"],hh={class:"number"},fh=["disabled"],mh=i.defineComponent({__name:"PInputNumber",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},disabled:{type:Boolean,required:!1,default:!1},max:{type:Number,default:Number.MAX_VALUE,required:!1},min:{type:Number,default:Number.NEGATIVE_INFINITY,required:!1},step:{type:Number,default:1,required:!1}},{modelValue:{default:0},modelModifiers:{}}),emits:i.mergeModels(["blur","input","change"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=t,o=()=>{const S=r.step.toString();return S.includes(".")?S.split(".")[1].length:0},s=o(),a=i.useModel(t,"modelValue"),d=i.ref(a.value.toFixed(o())),l=S=>{const w=Math.pow(10,s);return Math.round(S*w)/w},u=(S,...w)=>{a.value=l(S),d.value=l(S).toFixed(o()),w.forEach(R=>n(R,a.value))},h=(S,...w)=>{u(S,...w)},f=()=>h(+d.value+r.step,"change"),m=()=>h(+d.value-r.step,"change"),p=()=>h(+d.value,"input"),C=()=>h(+d.value,"change","blur");return(S,w)=>{const R=i.resolveComponent("IconMinus"),O=i.resolveComponent("IconPlus");return 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,uh)):i.createCommentVNode("",!0),i.createElementVNode("div",hh,[i.createElementVNode("button",{class:"number-minus",type:"button",onClick:m},[i.createElementVNode("div",{class:i.normalizeClass(t.disabled||a.value<=t.min?"icon-minus-disabled":"icon-minus")},[i.createVNode(R)],2)]),i.withDirectives(i.createElementVNode("input",i.mergeProps(S.$attrs,{"onUpdate:modelValue":w[0]||(w[0]=L=>i.isRef(d)?d.value=L:null),class:"input-field",type:"number",disabled:t.disabled,style:{color:t.disabled?"#828587":t.color,background:t.disabled?"var(--input-readonly-background)":""},onBlur:C,onInput:i.withModifiers(p,["stop"])}),null,16,fh),[[i.vModelText,i.unref(d),void 0,{lazy:!0}]]),i.createElementVNode("button",{class:"number-plus",style:i.normalizeStyle({transform:t.disabled?"none":"transform: scale(1.2, 1.2)"}),type:"button",onClick:f},[i.createElementVNode("div",{class:i.normalizeClass(t.disabled||a.value>=t.max?"icon-plus-disabled":"icon-plus")},[i.createVNode(O)],2)],4)])],4)}}}),Io=x(mh,[["__scopeId","data-v-807eb4e2"]]),Ao=x(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,r=e,o=i.ref(n.open);i.watch(()=>n.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,d)=>{const l=i.resolveComponent("PString");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(o)?"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:d[0]||(d[0]=u=>s(!i.unref(o)))},[i.unref(o)?(i.openBlock(),i.createBlock(l,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4)],4)],64)}}}),[["__scopeId","data-v-d9543858"]]),vo=x(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-eaa10a96"]]),No=x(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-93410b0d"]]),ph=["for"],gh=["id","name","checked","value"],Po=x(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"),r=e,o=t,s=me.GUID(),a=i.computed(()=>n.value===o.value),d=()=>{r("change",o.value)};return(l,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,gh),[[i.vModelRadio,n.value]]),i.createElementVNode("div",{class:"box",style:i.normalizeStyle({width:t.size,height:t.size,borderRadius:t.borderRadius}),onClick:d},[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:d},i.toDisplayString(t.label),1)],12,ph)],4))}}),[["__scopeId","data-v-25033aee"]]),yh={class:"wrapper"},wh={class:"content"},Vo=x(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,r=e,o=i.ref(n.open);i.watch(()=>n.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,d)=>{const l=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",yh,[i.createElementVNode("div",wh,[i.renderSlot(a.$slots,"content",{},void 0,!0)]),i.createElementVNode("div",{class:"RS-body",style:i.normalizeStyle({marginRight:i.unref(o)?"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:d[0]||(d[0]=u=>s(!i.unref(o)))},[i.unref(o)?(i.openBlock(),i.createBlock(l,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{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-22cd7fad"]]),En=x(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-cbcad2a0"]]),bh=["for"],Ch={class:"field"},Sh={class:"left-field"},kh={class:"arrow"},Eh={selected:"",hidden:""},xh={class:"right-field"},ki=x(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:""},borderColor:{type:String,required:!1,default:""},color:{type:String,required:!1,default:""}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change","clear"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),r=i.ref(!0),o=e,s=i.ref(!1),a=()=>{r.value=!1,o("change",n.value)},d=()=>{n.value=void 0,o("clear",void 0),o("change",void 0),r.value=!0};return(l,u)=>{const h=i.resolveComponent("IconSelectArrow");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,bh)):i.createCommentVNode("",!0),i.createElementVNode("div",Ch,[i.createElementVNode("div",Sh,[i.renderSlot(l.$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:d},[i.createVNode(En,{margin:"0"})],512)),[[i.vShow,i.unref(s)]]):i.createCommentVNode("",!0),i.createElementVNode("div",kh,[i.createVNode(h,{margin:"2px 2px 0 0"})]),i.withDirectives(i.createElementVNode("select",i.mergeProps(l.$attrs,{"onUpdate:modelValue":u[0]||(u[0]=f=>n.value=f),class:"text-field__input",onChange:a}),[i.createElementVNode("option",Eh,i.toDisplayString(t.placeholder),1),i.renderSlot(l.$slots,"default",{},void 0,!0)],16),[[i.vModelSelect,n.value]])],32),i.createElementVNode("div",xh,[i.renderSlot(l.$slots,"right",{},void 0,!0)])])],4)}}}),[["__scopeId","data-v-c056d6ef"]]),zo=x(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-01876330"]]),Bh=["innerHTML"],Mh={key:1},Ei=x(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(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["string",t.customClass]),style:n,onClick:o[0]||(o[0]=s=>r.$emit("click"))},[t.isHtml?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:t.string},null,8,Bh)):(i.openBlock(),i.createElementBlock("span",Mh,i.toDisplayString(t.string),1))],2))}}),[["__scopeId","data-v-98febd87"]]),To=i.defineComponent({__name:"PTable",props:{margin:{type:String,required:!1,default:"0 0 20px 0"},width:{type:String,required:!1,default:"100%"},fontSize:{type:String,required:!1,default:"var(--font-size-default)"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("table",i.mergeProps(e.$attrs,{style:{width:t.width,margin:t.margin},class:"p-table"}),[i.createElementVNode("thead",null,[i.renderSlot(e.$slots,"thead")]),i.createElementVNode("tbody",null,[i.renderSlot(e.$slots,"tbody")])],16))}}),Rh=["for"],$h={class:"left-field"},Ih={class:"right-field"},Fo=x(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,r)=>(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,Rh)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",$h,[i.renderSlot(n.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("textarea",i.mergeProps(n.$attrs,{"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),class:"text-field__input",style:{color:t.color},onBlur:r[1]||(r[1]=o=>n.$emit("blur",e.value)),onInput:r[2]||(r[2]=o=>n.$emit("input",e.value))}),null,16),[[i.vModelText,e.value],[i.unref(Ro),t.mask]]),i.createElementVNode("div",Ih,[i.renderSlot(n.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-2a2e858d"]]),Ah={class:"top-slider-content"},vh={class:"center"},Oo=x(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,r=e,o=i.ref(n.open);i.watch(()=>n.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[d[0]||(d[0]=i.withModifiers(l=>o.value=!0,["prevent"])),d[1]||(d[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(o)?"0":`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`,height:t.sliderOnHeight}),onClick:d[3]||(d[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Ah,[i.createElementVNode("div",vh,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:d[2]||(d[2]=l=>s(!i.unref(o)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-863b4aff"]]),Lo=i.defineComponent({__name:"AuthModal",props:{width:{type:String,default:"760px"},margin:{type:String,default:"0"},padding:{type:String,default:"2vw"}},emits:["submit"],setup(t){const e=()=>{Ne.Form.Reset(),Ne.Modal.Close()};return(n,r)=>{const o=i.resolveComponent("AuthForm"),s=i.resolveComponent("PModal");return i.openBlock(),i.createBlock(s,{show:i.unref(Ne).Modal.Visible,closable:i.unref(Ne).Modal.Closable,onClose:e},{default:i.withCtx(()=>[i.createVNode(o,{width:t.width,margin:t.margin,padding:t.padding,onSubmit:r[0]||(r[0]=a=>n.$emit("submit"))},null,8,["width","margin","padding"])]),_:1},8,["show","closable"])}}}),xi=x(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=>({d143e9f0:t.maxWidth,b9d56180:t.width,"52bd0ff4":t.background,"1795aeac":t.gridGap,"0cfa7c52":t.gridTemplateColumns,"0c6d2a1f":t.gridTemplateRows,a3ccd918: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-a3c4743c"]]);var Ue=(t=>(t.None="None",t.Next="Next",t.Prev="Prev",t))(Ue||{});const Nh={class:"container"},Ph={class:"slide-box"},Vh={class:"link-number"},zh=["id","onClick"],Do=x(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(p=>({a8527066:n}));const e=t,n=`${e.animationTime}ms`,r=i.ref(e.startActiveGroupIndex),o=i.ref(Ue.None),s=i.ref(eo(e.events,e.quantity)),a=i.computed(()=>s.value[r.value]);i.onMounted(()=>{});const d=()=>r.value=r.value+1<s.value.length?r.value+1:0,l=()=>r.value=r.value-1<0?s.value.length-1:r.value-1,u=p=>{o.value=p,setTimeout(()=>o.value=Ue.None,e.animationTime)},h=p=>{p!=r.value&&(u(p<r.value?Ue.Prev:Ue.Next),setTimeout(()=>r.value=p,e.animationTime/2))},f=()=>{u(Ue.Next),setTimeout(d,e.animationTime/2)},m=()=>{u(Ue.Prev),setTimeout(l,e.animationTime/2)};return(p,C)=>(i.openBlock(),i.createElementBlock("div",{class:"field",style:i.normalizeStyle({height:t.height,maxHeight:t.maxHeight})},[i.createElementVNode("div",Nh,[(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:C[0]||(C[0]=i.withModifiers(S=>m(),["stop"]))},C[2]||(C[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)]))),i.createElementVNode("div",Ph,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),(S,w)=>(i.openBlock(),i.createElementBlock("div",{key:w,class:i.normalizeClass({animationnext:i.unref(o)===i.unref(Ue).Next,animationprev:i.unref(o)===i.unref(Ue).Prev})},C[3]||(C[3]=[i.createElementVNode("div",{class:"image"},[i.createElementVNode("div",{class:"image-box"})],-1)]),2))),128))]),(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:C[1]||(C[1]=i.withModifiers(S=>f(),["stop"]))},C[4]||(C[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])))]),i.createElementVNode("div",Vh,[i.createVNode(xi,{"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),(S,w)=>(i.openBlock(),i.createElementBlock("div",{id:w.toString(),key:w,class:"number",style:i.normalizeStyle({background:w.toString()===i.unref(r).toString()?"#9D9D9D":""}),onClick:i.withModifiers(R=>h(w),["stop"])},i.toDisplayString(w+1),13,zh))),128))]),_:1})])],4))}}),[["__scopeId","data-v-a5d87987"]]),Ho=i.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(t,{emit:e}){const n=t,r=e,o=i.ref(n.x),s=i.ref(n.y),a=i.computed(()=>o.value+"px"),d=i.computed(()=>s.value+"px"),l=()=>{r("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(d)})},[i.renderSlot(u.$slots,"default")],4)),[[f,l]])}}}),Th={class:"date-range"},qo=x(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,r=e;i.watch(()=>[n.start,n.end],()=>{n.start||(o.value=void 0),n.end||(s.value=void 0)});const o=i.ref(n.start),s=i.ref(n.end),a=l=>{o.value=l,!(!n.end||l>n.end)&&(r("update:start",l),r("setStart",l))},d=l=>{s.value=l,!(!n.start||l<n.start)&&(r("update:end",l),r("setEnd",l))};return(l,u)=>{const h=i.resolveComponent("PInputDate");return i.openBlock(),i.createElementBlock("div",Th,[i.createVNode(h,{"model-value":i.unref(o),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(o)?o.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:d},null,8,["model-value"])])}}}),[["__scopeId","data-v-a6b4e7cd"]]),Fh=i.defineComponent({name:"DateInputRangeV2"}),Oh={class:"date-range"};function Lh(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("div",Oh,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const Uo=x(Fh,[["render",Lh],["__scopeId","data-v-d28c6f33"]]),Dh={class:"drop-item"},Hh={key:0,class:"drop-item-list"},Wo=x(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),r=async()=>{n.value=!n.value};return(o,s)=>{const a=i.resolveComponent("PString"),d=i.resolveComponent("IconArrowDrop");return i.openBlock(),i.createElementBlock("div",Dh,[i.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=l=>r())},[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(d,{size:"10px",margin:"0"})],4)]),i.unref(n)?(i.openBlock(),i.createElementBlock("div",Hh,[i.renderSlot(o.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-97057f9c"]]),_o=x(i.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new Wn,required:!0}},emits:["load"],setup(t,{emit:e}){const n=t,r=i.ref(!1),o=e,s=()=>{n.model.setBoolean(r.value),o("load")};return(a,d)=>{const l=i.resolveComponent("PCheckBox");return i.openBlock(),i.createBlock(l,{modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=u=>i.isRef(r)?r.value=u:null),label:t.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-783d7387"]]),jo=x(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,r=i.ref(void 0),o=async a=>{v.FTSP.Get().replaceF(a,r.value),r.value=a,v.FTSP.Get().p.drop()},s=async a=>{await o(a),n("load")};return(a,d)=>{const l=i.resolveComponent("PString"),u=i.resolveComponent("PButton"),h=i.resolveComponent("GridContainer"),f=i.resolveComponent("InfoItem");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(l,{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(()=>d[0]||(d[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,(m,p)=>(i.openBlock(),i.createBlock(u,{key:p,color:"blue",height:"auto",text:m.label,"is-toggle":m.valueEq(i.unref(r)),"toggle-mode":!0,inverse:t.inverse,onClick:C=>s(m.valueEq(i.unref(r))?void 0:m)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-a6b6b5f0"]]),qh=["value","label"],Go=x(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,r=$t.Get(),o=i.ref(void 0),s=async d=>{r.replaceF(d,o.value),o.value=d},a=async d=>{d?await s(o.value):await s(void 0),n("load")};return(d,l)=>{const u=i.resolveComponent("PSelect");return i.openBlock(),i.createBlock(u,{modelValue:i.unref(o),"onUpdate:modelValue":l[0]||(l[0]=h=>i.isRef(o)?o.value=h:null),clearable:i.unref(o),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,qh))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ae66df57"]]),Zo=x(i.defineComponent({__name:"FTSPPanel",setup(t){return i.onBeforeMount(async()=>{}),(e,n)=>(i.openBlock(),i.createElementBlock("div"))}}),[["__scopeId","data-v-c3fae891"]]),Xo=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"})},r[2]||(r[2]=[i.createElementVNode("svg",{class:"icon-del"},[i.createElementVNode("use",{"xlink:href":"#del"})],-1)]),4),r[3]||(r[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-1056443d"]]),Yo=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#download"},null,-1)]),38)),r[3]||(r[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-94c18208"]]),Jo=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#filter"},null,-1)]),38)),r[3]||(r[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-d11e6069"]]),Qo=x(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-ca16a90c"]]),Ko=x(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-55ea5a5c"]]),es=x(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-99358e0a"]]),ts=x(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-05547f14"]]),ns=x(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-131f6ba1"]]),is=x(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-64e76eb7"]]),rs=x(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-4d8b581f"]]),os=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),38)),r[3]||(r[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-ec3439ce"]]),ss=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)]),38)),r[3]||(r[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-cd0d3c21"]]),as=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)]),38)),r[3]||(r[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-98099ad2"]]),ls=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)]),38)),r[3]||(r[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-053c9917"]]),cs=x(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,r)=>(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:r[0]||(r[0]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)]),38)),r[3]||(r[3]=i.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-1798f31d><symbol id="ellipsis" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" data-v-1798f31d><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-1798f31d></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-1798f31d></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-1798f31d></path></symbol></svg>',1))],64))}}),[["__scopeId","data-v-1798f31d"]]),Uh={key:0,class:"blur"},Wh={style:{display:"flex","justify-content":"center"}},ds=x(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,r=e,o=n.customClass!==""?n.customClass:"inside-class",s=i.ref(!1),a=i.ref(!1),d=i.ref(!1),l=i.ref(n.close);i.watch(()=>n.close,()=>{a.value=!1});const u=P=>{P.stopPropagation(),P.key==="Escape"&&(n.showSaveDialog?d.value=!0:a.value=!1)};i.watch(a,async()=>{var P,j;await i.nextTick(),a.value?((j=(P=document.getElementById("info-item-opened-content"))==null?void 0:P.querySelector("input"))==null||j.focus(),document.body.addEventListener("keydown",u)):document.body.removeEventListener("keydown",u,!1),a.value===!1&&r("after-close")});const h=()=>{r("click"),a.value=!!n.withOpenWindow,l.value!==n.close&&(a.value=!1,l.value=!l.value)},f=i.computed(()=>n.customClass===""?{width:n.width,minHeight:"40px",height:"auto",maxWidth:n.maxWidth,minWidth:n.minWidth,margin:n.baseBoxMargin}:void 0),m=i.computed(()=>a.value&&n.withOpenWindow),p=i.computed(()=>({background:n.background?n.background:void 0,zIndex:m.value?"2":"0",padding:m.value?"0":n.padding,margin:n.margin,width:m.value?n.openWidth:n.width,height:m.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:m.value?"end":"center",cursor:(n.withHover,"pointer")})),C=i.computed(()=>({height:m.value?"0":"",overflow:n.closeWindowOverflow,width:n.width})),S=i.computed(()=>({height:m.value?"auto":"0"})),w=i.computed(()=>({color:s.value?n.colorSelected:"#343E5C",fill:s.value?n.colorSelected:"#343E5C",background:n.background})),R=()=>{n.showSaveDialog?d.value=!0:a.value=!1},O=async()=>{await r("keyup-enter"),n.close&&(a.value=!1),d.value=!1},L=()=>{a.value=!1,d.value=!1};return(P,j)=>{const Be=i.resolveComponent("PString"),Me=i.resolveComponent("PButton"),Qe=i.resolveComponent("PModal"),Et=i.resolveDirective("click-outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(a)?(i.openBlock(),i.createElementBlock("div",Uh)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"base-box",style:i.normalizeStyle(i.unref(f)),onClick:j[2]||(j[2]=i.withModifiers(Vn=>h(),["prevent","stop"]))},[i.createElementVNode("div",{class:i.normalizeClass(["body",i.unref(o)]),style:i.normalizeStyle(i.unref(p)),onMouseenter:j[0]||(j[0]=Vn=>t.withHover?s.value=!0:s.value=!1),onMouseleave:j[1]||(j[1]=Vn=>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(C))},[i.renderSlot(P.$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(S))},[i.renderSlot(P.$slots,"open-inside-content",{},void 0,!0)],4)),[[Et,R,void 0,{prevent:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"top-title",style:i.normalizeStyle(i.unref(w))},[i.renderSlot(P.$slots,"title",{},()=>[i.createVNode(Be,{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(Qe,{show:i.unref(d),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:i.withCtx(()=>[i.createElementVNode("div",Wh,[i.createVNode(Me,{text:"Не сохранять",onClick:L}),i.createVNode(Me,{text:"Сохранять",onClick:O})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-e8e8f1a1"]]),us=x(i.defineComponent({__name:"InfoItemSelectButtons",props:{selected:{type:String,required:!0},title:{type:String,required:!0},list:{type:Array,required:!0}},emits:["select","reset"],setup(t,{emit:e}){const n=i.ref(!1),r=e,o=s=>{n.value=!n.value,r("select",s)};return(s,a)=>{const d=i.resolveComponent("PString"),l=i.resolveComponent("PButton"),u=i.resolveComponent("InfoItem");return i.openBlock(),i.createBlock(u,{close:i.unref(n),title:t.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(l,{key:h,type:"admin",color:"blue",text:h,onClick:f=>o(h)},null,8,["text","onClick"]))),128)),i.createVNode(l,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=h=>o(void 0))})]),default:i.withCtx(()=>[i.createVNode(d,{string:t.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-973addd1"]]),_h={class:"mainblock"},jh={class:"mainline"},hs=x(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",_h,[i.createElementVNode("div",jh,[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-42fa7104"]]),Gh={class:"message-title"},Zh={class:"message-text"},Bi=x(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",Gh,i.toDisplayString(t.title),1),i.createElementVNode("div",Zh,i.toDisplayString(t.text),1)]))}}),[["__scopeId","data-v-182d0640"]]),Xh=i.defineComponent({name:"CollapseContainer",props:{initActiveIdx:{type:Number,default:0}},setup(t){const e=i.ref(t.initActiveIdx),n=r=>{e.value=r};return i.watch(()=>t.initActiveIdx,()=>{n(t.initActiveIdx)}),{changeActiveId:n,activeIdx:e}}});function Yh(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("div",null,[i.renderSlot(t.$slots,"default",{activeIdx:t.activeIdx,changeActiveId:t.changeActiveId})])}const fs=x(Xh,[["render",Yh]]),Jh=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"),r=()=>{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:r}}}),Qh=["for"],Kh={class:"inside-icon"};function ef(t,e,n,r,o,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",Kh,[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,Qh),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-0ea9a95f><symbol id="arrow-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-0ea9a95f><path d="M5 6L10 11L15 6L17 7L10 14L3 7L5 6Z" fill="currentColor" data-v-0ea9a95f></path></symbol><symbol id="arrow-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-0ea9a95f><path d="M15 14L10 9L5 14L3 13L10 6L17 13L15 14Z" fill="currentColor" data-v-0ea9a95f></path></symbol></svg>',1))],64)}const ms=x(Jh,[["render",ef],["__scopeId","data-v-0ea9a95f"]]),tf={class:"tab"},nf={class:"rotate"},ps=x(i.defineComponent({__name:"VerticalCollapseContainer",setup(t){const e=i.ref(!1),n=async()=>{e.value=!e.value};return(r,o)=>{const s=i.resolveComponent("ArrowRight"),a=i.resolveComponent("ArrowLeft");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",tf,[i.renderSlot(r.$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(r.$slots,"inside-content-left",{},void 0,!0)],4),i.createElementVNode("div",{class:"arrow-bar",onClick:n},[i.createElementVNode("div",nf,[i.renderSlot(r.$slots,"inside-title",{},void 0,!0)]),i.unref(e)?(i.openBlock(),i.createBlock(s,{key:0,"icon-class":"icon-arrow"})):(i.openBlock(),i.createBlock(a,{key:1,"icon-class":"icon-arrow"}))])],4),i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"50%":"100%",transition:"0.3s"}),class:"right"},[i.renderSlot(r.$slots,"inside-content-right",{},void 0,!0)],4)]),i.createVNode(a),i.createVNode(s)],64)}}}),[["__scopeId","data-v-4ccaade5"]]),rf={class:"add-block_body"},gs=x(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 r=i.resolveComponent("PSticky");return i.openBlock(),i.createElementBlock("div",{class:"add-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.createVNode(r,{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",rf,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-338720bc"]]),ys=x(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-b2b43a38"]]),of={class:"add-block_body"},ws=x(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 r=i.resolveComponent("PSticky"),o=i.resolveComponent("PContainer");return i.openBlock(),i.createBlock(o,{background:t.background,margin:t.margin,padding:t.padding},{default:i.withCtx(()=>[i.createVNode(r,{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",of,[i.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-9464e4a8"]]),sf={class:"del-block_title"},af={class:"del-block_body"},bs=x(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",sf,[i.renderSlot(e.$slots,"title",{},void 0,!0)]),i.createElementVNode("div",af,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-58d048aa"]]),Cs=x(i.defineComponent({__name:"PNotify",setup(t){const e=i.computed(()=>{switch(pe.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,r)=>(i.openBlock(),i.createBlock(i.Transition,{name:"fade"},{default:i.withCtx(()=>[i.unref(pe).IsVisible()?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e))},[i.createVNode(Bi,{title:i.unref(pe).GetTitle(),text:i.unref(pe).GetText()},null,8,["title","text"])],2)):i.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-3714a37b"]]),lf={class:"btn-group"},Ss=x(i.defineComponent({__name:"AuthForm",props:{width:{type:String,default:"320px"},margin:{type:String,default:"auto"},padding:{type:String,default:"2vw"},background:{type:String,default:"inherit"}},emits:["submit"],setup(t,{emit:e}){const n=i.ref(!1),r=e,o=i.computed(()=>v.Auth.Form.GetButtons()),s=async a=>{if(!a.isSubmit)return v.Auth.Form.SetChunk(a.GetChunk());v.Auth.Form.Validate().length>0||r("submit")};return i.onBeforeUnmount(()=>{v.Auth.Form.Reset()}),(a,d)=>(i.openBlock(),i.createElementBlock("div",{class:"auth-card",style:i.normalizeStyle({maxWidth:t.width,margin:t.margin,padding:t.padding,background:t.background})},[i.createVNode(Ei,{string:("PF"in a?a.PF:i.unref(v)).Auth.Form.GetTitle(),"font-size":"18px"},null,8,["string"]),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(("PF"in a?a.PF:i.unref(v)).Auth.Form.GetFields(),l=>(i.openBlock(),i.createBlock(Si,{id:l.id,key:l,modelValue:l.value,"onUpdate:modelValue":u=>l.value=u,placeholder:l.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","placeholder"]))),128)),i.createElementVNode("div",lf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o),(l,u)=>(i.openBlock(),i.createBlock(Sn,{id:l.id,key:l.GetChunk(),disabled:i.unref(n),type:u===0?"success":"primary",skin:"base",text:l.text,color:l.isSubmit?"blue":"grey",margin:"10px 0 0 0",width:"100%",height:"52px",onClick:h=>s(l)},null,8,["id","disabled","type","text","color","onClick"]))),128))])])],4))}}),[["__scopeId","data-v-befb9b45"]]),Mi=x(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"},maxHeight:{type:String,default:"70vh"},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,r=e,o=a=>{a.key==="Escape"&&s()};i.onMounted(()=>{document.body.addEventListener("keydown",o)}),i.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",o)});const s=()=>{n.closable&&r("close")};return(a,d)=>{const l=i.resolveComponent("IconClose");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,maxHeight:t.maxHeight})},[t.closable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"icon-box",onClick:s},[i.createVNode(l,{size:"20px"})])):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"default",{},void 0,!0)],4)):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-3a1f6782"]]),cf={class:"field"},ks=x(i.defineComponent({__name:"PNameEdit",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(t,{emit:e}){const n=t,r=e,o=i.ref(!1),s=i.ref(),a=i.ref(n.withName.name),d=i.ref(!1),l=()=>{d.value=!1},u=async()=>{a.value.trim(),n.withName.setName&&n.withName.setName(a.value),o.value=!o.value,r("submit")};return(h,f)=>{const m=i.resolveComponent("PString"),p=i.resolveComponent("PInput"),C=i.resolveComponent("InfoItem"),S=i.resolveComponent("PButton"),w=i.resolveComponent("el-form");return i.openBlock(),i.createBlock(w,{ref_key:"form",ref:s,style:{width:"100%"}},{default:i.withCtx(()=>[i.createVNode(C,{title:"Название","show-save-dialog":d.value,icon:"edit-title","with-hover":!0,close:o.value,width:"100%",onKeyupEnter:u,onAfterClose:l},{"open-inside-content":i.withCtx(()=>[i.createVNode(C,{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",cf,[i.createVNode(p,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=R=>a.value=R),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])])]),_:1}),i.createVNode(S,{type:"admin",color:"blue",text:"Сохранить",onClick:u})]),default:i.withCtx(()=>[a.value.length?(i.openBlock(),i.createBlock(m,{key:0,string:a.value.length>60?a.value.slice(0,60)+"...":a.value},null,8,["string"])):(i.openBlock(),i.createBlock(m,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:1},8,["show-save-dialog","close"])]),_:1},512)}}}),[["__scopeId","data-v-4f7966cb"]]),df=["onClick"],Es=x(i.defineComponent({__name:"PTabs",props:{menus:{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"},margin:{type:String,required:!1,default:"var(--tabs-margin, 0 10px 10px 10px)"},borderRadius:{type:String,required:!1,default:"var(--tabs-border-radius, 10px)"}},emits:["select"],setup(t,{emit:e}){const n=t,r=e,o=i.ref(window.innerWidth),s=i.ref(),a=i.ref(Number(n.tabHeight.replace(/[^+\d]/g,""))),d=()=>{o.value=window.innerWidth,a.value=s.value?s.value.clientHeight:Number(n.tabHeight.replace(/[^+\d]/g,""))};i.onMounted(()=>window.addEventListener("resize",d)),i.onUnmounted(()=>window.removeEventListener("resize",d));const l=i.computed(()=>`calc(100% - ${a.value}px + 1px)`);i.onBeforeMount(()=>{n.menus.Select()});const u=h=>{n.menus.Select(h),r("select")};return(h,f)=>(i.openBlock(),i.createElementBlock("div",{class:"mainblock",style:i.normalizeStyle({height:`calc(100% - ${t.outTopMargin} - ${t.tabHeight}`,margin:t.margin,borderRadius:t.borderRadius})},[i.createElementVNode("div",{ref_key:"menuRef",ref:s,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.menus.items,(m,p)=>(i.openBlock(),i.createElementBlock("div",{key:p},[i.createElementVNode("div",{class:i.normalizeClass({"selected-tab":p===t.menus.idx,tab:p!==t.menus.idx}),style:i.normalizeStyle({minHeight:t.tabHeight,maxHeight:t.tabHeight}),onClick:C=>u(p)},i.toDisplayString(m.name),15,df)]))),128))],4),i.createElementVNode("div",{class:"body-container",style:i.normalizeStyle({background:t.background,height:i.unref(l)})},[i.renderSlot(h.$slots,"default",{},()=>[t.menus.idx>-1?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.menus.GetComponent()),{key:0})):i.createCommentVNode("",!0)],!0)],4)],4))}}),[["__scopeId","data-v-caa5b5d8"]]);function xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xs(Object(n),!0).forEach(function(r){Ee(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uf(t,e){if(t==null)return{};var n,r,o=function(a,d){if(a==null)return{};var l,u,h={},f=Object.keys(a);for(u=0;u<f.length;u++)l=f[u],d.indexOf(l)>=0||(h[l]=a[l]);return h}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function ct(t){return function(e){if(Array.isArray(e))return Ri(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 Ri(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ri(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 Ri(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Bs,hf,xn,ee=(Bs=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 r=[],o=0;o<arguments.length;o++){var s=arguments[o];if(s){var a=typeof s;if(a==="string"||a==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var d=n.apply(null,s);d&&r.push(d)}}else if(a==="object")if(s.toString===Object.prototype.toString)for(var l in s)e.call(s,l)&&s[l]&&r.push(l);else r.push(s.toString())}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()},
|
|
28
|
+
*/(function(){var e={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var s=arguments[o];if(s){var a=typeof s;if(a==="string"||a==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var d=n.apply(null,s);d&&r.push(d)}}else if(a==="object")if(s.toString===Object.prototype.toString)for(var l in s)e.call(s,l)&&s[l]&&r.push(l);else r.push(s.toString())}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()},Bs(xn={path:hf,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e==null&&xn.path)}},xn.exports),xn.exports),Ae=function(t){return function(e,n){if(!e)return t;var r;typeof e=="string"?r=e:n=e;var o=t;return r&&(o+="__"+r),o+(n?Object.keys(n).reduce(function(s,a){var d=n[a];return d&&(s+=" "+(typeof d=="boolean"?o+"--"+a:o+"--"+a+"_"+d)),s},""):"")}};function $i(t,e,n){var r,o,s,a,d;function l(){var h=Date.now()-a;h<e&&h>=0?r=setTimeout(l,e-h):(r=null,n||(d=t.apply(s,o),s=o=null))}e==null&&(e=100);var u=function(){s=this,o=arguments,a=Date.now();var h=n&&!r;return r||(r=setTimeout(l,e)),h&&(d=t.apply(s,o),s=o=null),d};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(d=t.apply(s,o),s=o=null,clearTimeout(r),r=null)},u}$i.debounce=$i;var Ii=$i,N=function(){return N=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},N.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 Bs(t,e){var n,r;return t&&e?(n=""+t+e[0].toUpperCase()+e.slice(1),r=t+"-"+e):(n=t||e,r=t||e),{name:n,classname:r}}function Ms(t){return/^blob:/.test(t)}function Rs(t){return Ms(t)||function(e){return/^data:/.test(e)}(t)}function yt(t){return!!(t&&t.constructor&&t.call&&t.apply)}function re(t){return t===void 0}function xn(t){return typeof t=="object"&&t!==null}function Ri(t,e,n){var r={};return xn(t)?(Object.keys(e).forEach(function(o){re(t[o])?r[o]=e[o]:xn(e[o])?xn(t[o])?r[o]=Ri(t[o],e[o],n[o]):r[o]=t[o]?e[o]:n[o]:e[o]===!0||e[o]===!1?r[o]=!!t[o]:r[o]=t[o]}),r):t?e:n}function Bn(t){var e=Number(t);return Number.isNaN(e)?t:e}function $s(t){return typeof(t=="number"||function(e){return typeof e=="object"&&e!==null}(t)&&toString.call(t)=="[object Number]")&&!Is(t)}function Is(t){return t!=t}function As(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var Dt=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},hf=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},$i=function(t){this.type="move",this.directions=t},ff=function(){function t(e,n,r,o,s){this.type="drag",this.nativeEvent=e,this.position=r,this.previousPosition=o,this.element=n,this.anchor=s}return t.prototype.shift=function(){var e=this,n=e.element,r=e.anchor,o=e.position;if(n){var s=n.getBoundingClientRect(),a=s.left,d=s.top;return{left:o.left-a-r.left,top:o.top-d-r.top}}return{left:0,top:0}},t}(),Ii={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,r=e.right,o=e.bottom,s=e.top;this.anchor={left:t.clientX-n,top:t.clientY-s,bottom:o-t.clientY,right:r-t.clientX}},processMove:function(t,e){var n=ct(e);if(this.touches.length){if(this.touches.length===1&&n.length===1){var r=this.$refs.draggable;this.$emit("drag",new ff(t,r,{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"]};Ii.render=function(t,e,n,r,o,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 Ai=Ae("vue-handler-wrapper"),vs={name:"HandlerWrapper",components:{DraggableElement:Ii},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=Bs(this.horizontalPosition,this.verticalPosition);t=Ai((Ee(e={},n.classname,!0),Ee(e,"disabled",this.disabled),e))}else t=Ai({disabled:this.disabled});return{root:t,draggable:Ai("draggable")}}},emits:["leave","enter","drag","drag-end"]};vs.render=function(t,e,n,r,o,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(d){return t.$emit("drag",d)}),onDragEnd:e[2]||(e[2]=function(d){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(d){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(d){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])],2)};var mf=Ae("vue-line-wrapper"),Ns={name:"LineWrapper",components:{DraggableElement:Ii},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return mf((Ee(t={},this.position,!0),Ee(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};Ns.render=function(t,e,n,r,o,s){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock(a,{class:s.classname,onDrag:e[1]||(e[1]=function(d){return t.$emit("drag",d)}),onDragEnd:e[2]||(e[2]=function(d){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(d){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(d){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])};var Te=["left","right","top","bottom"],pf=["left","right"],gf=["top","bottom"],yf=["left","top"],wf=["fill-area","fit-area","stencil","none"],Ps={left:0,top:0,width:0,height:0};function Vs(t,e,n){return!(n=n||["width","height","left","top"]).some(function(r){return t[r]!==e[r]})}function Fe(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function wt(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 Ht(t,e){var n={left:0,top:0,right:0,bottom:0};return Te.forEach(function(r){var o=e[r],s=Fe(t)[r];n[r]=o!==void 0&&s!==void 0?r==="left"||r==="top"?Math.max(0,o-s):Math.max(0,s-o):0}),n}function Oe(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 Mn(t){return{left:-t.left,top:-t.top}}function ye(t,e){return N(N({},t),{left:t.left+e.left,top:t.top+e.top})}function xe(t,e,n,r){if(e!==1){if(n){var o=le(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(n.left-o.left)*(1-e),top:t.top+t.height*(1-e)/2+(n.top-o.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 W(t){return t.width/t.height}function bt(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 Ct(t,e){var n={left:0,top:0},r=Ht(t,e);return r.left&&r.left>0?n.left=r.left:r.right&&r.right>0&&(n.left=-r.right),r.top&&r.top>0?n.top=r.top:r.bottom&&r.bottom>0&&(n.top=-r.bottom),n}function vi(t,e){var n;return e.minimum&&t<e.minimum?n=e.minimum:e.maximum&&t>e.maximum&&(n=e.maximum),n}function zs(t,e){var n=W(t),r=W(e);return e.width<1/0&&e.height<1/0?n>r?{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 Ts(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 Xe(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 Rn(t,e){var n=Ht(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,bt(t,e)):Math.min((t.height+n.top+n.bottom)/t.height,bt(t,e)):1}function ce(t,e,n){n===void 0&&(n=!1);var r=Ct(t,e);return ye(t,n?Mn(r):r)}function Ni(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 bf(t,e){return N(N({},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 Fs(t,e,n){n===void 0&&(n=!0);var r={};return Te.forEach(function(o){var s=t[o],a=e[o];s!==void 0&&a!==void 0?r[o]=o==="left"||o==="top"?n?Math.max(s,a):Math.min(s,a):n?Math.min(s,a):Math.max(s,a):a!==void 0?r[o]=a:s!==void 0&&(r[o]=s)}),r}function $n(t,e){return Fs(t,e,!0)}function Os(t){var e=t.size,n=t.aspectRatio,r=t.ignoreMinimum,o=t.sizeRestrictions;return!!((e.correctRatio||W(e)>=n.minimum&&W(e)<=n.maximum)&&e.height<=o.maxHeight&&e.width<=o.maxWidth&&e.width&&e.height&&(r||e.height>=o.minHeight&&e.width>=o.minWidth))}function Ls(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,r=t.sizeRestrictions,o={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},s={width:Math.max(r.minWidth,Math.min(r.maxWidth,e)),height:Math.max(r.minHeight,Math.min(r.maxHeight,n))};function a(u,h){return h===void 0&&(h=!1),u.reduce(function(f,m){return Os({size:m,aspectRatio:o,sizeRestrictions:r,ignoreMinimum:h})&&(!f||Ls(m,{width:e,height:n})<Ls(f,{width:e,height:n}))?m:f},null)}var d=[];[o.minimum,o.maximum].forEach(function(u){u&&d.push({width:s.width,height:s.width/u,correctRatio:!0},{width:s.height*u,height:s.height,correctRatio:!0})}),Os({size:s,aspectRatio:o,sizeRestrictions:r})&&d.push(s);var l=a(d)||a(d,!0);return l&&{width:l.width,height:l.height}}function Pi(t){var e=t.event,n=t.coordinates,r=t.positionRestrictions,o=r===void 0?{}:r,s=ye(n,e.directions);return ye(s,Ct(s,o))}function Cf(t){var e=t.coordinates,n=t.transform,r=t.imageSize,o=t.sizeRestrictions,s=t.positionRestrictions,a=t.aspectRatio,d=t.visibleArea,l=function(h,f){return Pi({coordinates:h,positionRestrictions:s,event:new $i({left:f.left-h.left,top:f.top-h.top})})},u=N({},e);return(Array.isArray(n)?n:[n]).forEach(function(h){var f={};re((f=typeof h=="function"?h({coordinates:u,imageSize:r,visibleArea:d}):h).width)&&re(f.height)||(u=function(m,p){var C=N(N(N({},m),_e({width:p.width,height:p.height,sizeRestrictions:o,aspectRatio:a})),{left:0,top:0});return l(C,{left:m.left,top:m.top})}(u,N(N({},u),f))),re(f.left)&&re(f.top)||(u=l(u,N(N({},u),f)))}),u}function Sf(t){t.event;var e=t.getAreaRestrictions,n=t.boundaries,r=t.coordinates,o=t.visibleArea;t.aspectRatio;var s=t.stencilSize,a=t.sizeRestrictions,d=t.positionRestrictions;t.stencilReference;var l,u,h,f=N({},r),m=N({},o),p=N({},s);l=W(p),u=W(f),h===void 0&&(h=.001),(l===0||u===0?Math.abs(u-l)<h:Math.abs(u/l)<1+h&&Math.abs(u/l)>1-h)||(f=N(N({},f),_e({sizeRestrictions:a,width:f.width,height:f.height,aspectRatio:{minimum:W(p),maximum:W(p)}})));var C=Rn(m=xe(m,f.width*n.width/(m.width*p.width)),e({visibleArea:m,type:"resize"}));return C!==1&&(m=xe(m,C),f=xe(f,C)),m=ce(m=ye(m,wt(le(f),le(m))),e({visibleArea:m,type:"move"})),{coordinates:f=ce(f,$n(Fe(m),d)),visibleArea:m}}function kf(t){var e=t.event,n=t.getAreaRestrictions,r=t.boundaries,o=t.coordinates,s=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var a=t.positionRestrictions;t.stencilReference;var d=N({},o),l=N({},s);if(o&&s&&e.type!=="manipulateImage"){var u={width:0,height:0};l.width,r.width,W(r)>W(d)?(u.height=.8*r.height,u.width=u.height*W(d)):(u.width=.8*r.width,u.height=u.width*W(d));var h=Rn(l=xe(l,d.width*r.width/(l.width*u.width)),n({visibleArea:l,type:"resize"}));l=xe(l,h),h!==1&&(u.height/=h,u.width/=h),l=ce(l=ye(l,wt(le(d),le(l))),n({visibleArea:l,type:"move"})),d=ce(d,$n(Fe(l),a))}return{coordinates:d,visibleArea:l}}function Ef(t){var e=t.event,n=t.coordinates,r=t.visibleArea,o=t.getAreaRestrictions,s=N({},r),a=N({},n);if(e.type==="setCoordinates"){var d=Math.max(0,a.width-s.width),l=Math.max(0,a.height-s.height);d>l?s=xe(s,Math.min(a.width/s.width,bt(s,o({visibleArea:s,type:"resize"})))):l>d&&(s=xe(s,Math.min(a.height/s.height,bt(s,o({visibleArea:s,type:"resize"}))))),s=ce(s=ye(s,Mn(Ct(a,Fe(s)))),o({visibleArea:s,type:"move"}))}return{visibleArea:s,coordinates:a}}function xf(t){var e=t.imageSize,n=t.visibleArea,r=t.coordinates,o=n||e;return{left:(n?n.left:0)+o.width/2-r.width/2,top:(n?n.top:0)+o.height/2-r.height/2}}function Bf(t){var e=t.imageSize,n=t.visibleArea,r=t.aspectRatio,o=t.sizeRestrictions,s=n||e,a=Math.min(r.maximum||1/0,Math.max(r.minimum||0,W(s))),d=s.width<s.height?{width:.8*s.width,height:.8*s.width/a}:{height:.8*s.height,width:.8*s.height*a};return _e(N(N({},d),{aspectRatio:r,sizeRestrictions:o}))}function Mf(t){var e,n,r=t.imageSize,o=t.visibleArea,s=t.boundaries,a=t.aspectRatio,d=t.sizeRestrictions,l=t.stencilSize,u=o||r;return W(u)>W(s)?n=(e=l.height*u.height/s.height)*W(l):e=(n=l.width*u.width/s.width)/W(l),_e({width:n,height:e,aspectRatio:a,sizeRestrictions:d})}function Rf(t){var e=t.getAreaRestrictions,n=t.coordinates,r=t.imageSize,o=W(t.boundaries);if(n){var s={height:Math.max(n.height,r.height),width:Math.max(n.width,r.width)},a=zs({width:W(s)>o?s.width:s.height*o,height:W(s)>o?s.width/o:s.height},Ni(e())),d={left:n.left+n.width/2-a.width/2,top:n.top+n.height/2-a.height/2,width:a.width,height:a.height},l=Ht(n,Fe(N({left:0,top:0},r))),u={};return!l.left&&!l.right&&d.width<=r.width&&(u.left=0,u.right=r.width),!l.top&&!l.bottom&&d.height<=r.height&&(u.top=0,u.bottom=r.height),ce(d,u)}var h=W(r);return a={height:h>o?r.height:r.width/o,width:h>o?r.height*o:r.width},{left:r.width/2-a.width/2,top:r.height/2-a.height/2,width:a.width,height:a.height}}function In(t,e){return Fs(t,Fe(e))}function $f(t){var e=t.event,n=t.coordinates,r=t.visibleArea,o=t.sizeRestrictions,s=t.getAreaRestrictions,a=t.positionRestrictions,d=t.adjustStencil,l=e.scale,u=e.move,h=N({},r),f=N({},n),m=1,p=1,C=l.factor&&Math.abs(l.factor-1)>.001;h=ye(h,{left:u.left||0,top:u.top||0});var S={stencil:{minimum:Math.max(o.minWidth?o.minWidth/f.width:0,o.minHeight?o.minHeight/f.height:0),maximum:Math.min(o.maxWidth?o.maxWidth/f.width:1/0,o.maxHeight?o.maxHeight/f.height:1/0,bt(f,a))},area:{maximum:bt(h,s({visibleArea:h,type:"resize"}))}};l.factor&&C&&(l.factor<1?(p=Math.max(l.factor,S.stencil.minimum))>1&&(p=1):l.factor>1&&(p=Math.min(l.factor,Math.min(S.area.maximum,S.stencil.maximum)))<1&&(p=1)),p&&(h=xe(h,p,l.center));var w=n.left-r.left,R=r.width+r.left-(n.width+n.left),O=n.top-r.top,L=r.height+r.top-(n.height+n.top);return h=ce(h=ye(h,Ct(h,{left:a.left!==void 0?a.left-w*p:void 0,top:a.top!==void 0?a.top-O*p:void 0,bottom:a.bottom!==void 0?a.bottom+L*p:void 0,right:a.right!==void 0?a.right+R*p:void 0})),s({visibleArea:h,type:"move"})),f.width=f.width*p,f.height=f.height*p,f.left=h.left+w*p,f.top=h.top+O*p,f=ce(f,$n(Fe(h),a)),l.factor&&C&&d&&(l.factor>1?m=Math.min(S.area.maximum,l.factor)/p:l.factor<1&&(m=Math.max(f.height/h.height,f.width/h.width,l.factor/p)),m!==1&&(h=ye(h=ce(h=xe(h,m,l.factor>1?l.center:le(f)),s({visibleArea:h,type:"move"})),Mn(Ct(f,Fe(h)))))),{coordinates:f,visibleArea:h}}function If(t){var e=t.aspectRatio,n=t.getAreaRestrictions,r=t.coordinates,o=t.visibleArea,s=t.sizeRestrictions,a=t.positionRestrictions,d=t.imageSize,l=t.previousImageSize,u=t.angle,h=N({},r),f=N({},o),m=Xe(le(N({left:0,top:0},l)),u);return(h=N(N({},_e({sizeRestrictions:s,aspectRatio:e,width:h.width,height:h.height})),Xe(le(h),u))).left-=m.left-d.width/2+h.width/2,h.top-=m.top-d.height/2+h.height/2,f=xe(f,Rn(f,n({visibleArea:f,type:"resize"}))),{coordinates:h=ce(h,a),visibleArea:f=ce(f=ye(f,wt(le(h),le(r))),n({visibleArea:f,type:"move"}))}}function Af(t){var e=t.flip,n=t.previousFlip,r=t.rotate,o=t.getAreaRestrictions,s=t.coordinates,a=t.visibleArea,d=t.imageSize,l=N({},s),u=N({},a),h=n.horizontal!==e.horizontal,f=n.vertical!==e.vertical;if(h||f){var m=Xe({left:d.width/2,top:d.height/2},-r),p=Xe(le(l),-r),C=Xe({left:h?m.left-(p.left-m.left):p.left,top:f?m.top-(p.top-m.top):p.top},r);l=ye(l,wt(C,le(l))),p=Xe(le(u),-r),u=ce(u=ye(u,wt(C=Xe({left:h?m.left-(p.left-m.left):p.left,top:f?m.top-(p.top-m.top):p.top},r),le(u))),o({visibleArea:u,type:"move"}))}return{coordinates:l,visibleArea:u}}function Ds(t){var e=t.directions,n=t.coordinates,r=t.positionRestrictions,o=r===void 0?{}:r,s=t.sizeRestrictions,a=t.preserveRatio,d=t.compensate,l=N({},e),u=Oe(n,l).width,h=Oe(n,l).height;u<0&&(l.left<0&&l.right<0?(l.left=-(n.width-s.minWidth)/(l.left/l.right),l.right=-(n.width-s.minWidth)/(l.right/l.left)):l.left<0?l.left=-(n.width-s.minWidth):l.right<0&&(l.right=-(n.width-s.minWidth))),h<0&&(l.top<0&&l.bottom<0?(l.top=-(n.height-s.minHeight)/(l.top/l.bottom),l.bottom=-(n.height-s.minHeight)/(l.bottom/l.top)):l.top<0?l.top=-(n.height-s.minHeight):l.bottom<0&&(l.bottom=-(n.height-s.minHeight)));var f=Ht(Oe(n,l),o);d&&(f.left&&f.left>0&&f.right===0?(l.right+=f.left,l.left-=f.left):f.right&&f.right>0&&f.left===0&&(l.left+=f.right,l.right-=f.right),f.top&&f.top>0&&f.bottom===0?(l.bottom+=f.top,l.top-=f.top):f.bottom&&f.bottom>0&&f.top===0&&(l.top+=f.bottom,l.bottom-=f.bottom),f=Ht(Oe(n,l),o));var m={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(Te.forEach(function(S){var w=f[S];w&&l[S]&&(m[S]=Math.max(0,1-w/l[S]))}),a){var p=Math.min.apply(null,Te.map(function(S){return m[S]}));p!==1/0&&Te.forEach(function(S){l[S]*=p})}else Te.forEach(function(S){m[S]!==1/0&&(l[S]*=m[S])});if(u=Oe(n,l).width,h=Oe(n,l).height,l.right+l.left&&(u>s.maxWidth?m.width=(s.maxWidth-n.width)/(l.right+l.left):u<s.minWidth&&(m.width=(s.minWidth-n.width)/(l.right+l.left))),l.bottom+l.top&&(h>s.maxHeight?m.height=(s.maxHeight-n.height)/(l.bottom+l.top):h<s.minHeight&&(m.height=(s.minHeight-n.height)/(l.bottom+l.top))),a){var C=Math.min(m.width,m.height);C!==1/0&&Te.forEach(function(S){l[S]*=C})}else m.width!==1/0&&pf.forEach(function(S){l[S]*=m.width}),m.height!==1/0&&gf.forEach(function(S){l[S]*=m.height});return l}function An(t,e,n){return e==0&&n==0?t/2:e==0?0:n==0?t:t*Math.abs(e/(e+n))}var vf=Ae("vue-simple-handler"),Nf=Ae("vue-simple-handler-wrapper"),Vi={name:"SimpleHandler",components:{HandlerWrapper:vs},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=(Ee(t={},this.horizontalPosition,!!this.horizontalPosition),Ee(t,this.verticalPosition,!!this.verticalPosition),Ee(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),Ee(t,"hover",this.hover),t);return{default:ee(vf(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:ee(Nf(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"]};Vi.render=function(t,e,n,r,o,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 Pf=Ae("vue-simple-line"),Vf=Ae("vue-simple-line-wrapper"),zi={name:"SimpleLine",components:{LineWrapper:Ns},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:ee(Pf(Ee({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:ee(Vf(Ee({},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"]};zi.render=function(t,e,n,r,o,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 Ti=Ae("vue-bounding-box"),zf=["east","west",null],Tf=["south","north",null],Hs={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 Vi}},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 zi}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return zf.forEach(function(e){Tf.forEach(function(n){if(e!==n){var r=Bs(e,n),o=r.name,s=r.classname;t.push({name:o,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,r=this.linesWrappersClasses;return{root:Ti(),handlers:t,handlersWrappers:e,lines:n,linesWrappers:r}},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:ee(t.classes.lines.default,t.classes.lines[n.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:ee(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,r=this.height;return this.points.forEach(function(o){if(t.handlers[o.name]){var s={name:o.name,component:t.handlersComponent,class:ee(t.classes.handlers.default,t.classes.handlers[o.name]),wrapperClass:ee(t.classes.handlersWrappers.default,t.classes.handlersWrappers[o.name]),hoverClass:t.classes.handlers.hover,verticalDirection:o.verticalDirection,horizontalDirection:o.horizontalDirection,disabled:!t.resizable};if(n&&r){var a=o.horizontalDirection,d=o.verticalDirection,l=a==="east"?n:a==="west"?0:n/2,u=d==="south"?r:d==="north"?0:r/2;s.wrapperClass=Ti("handler"),s.wrapperStyle={transform:"translate(".concat(l,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(s.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else s.wrapperClass=Ti("handler",Ee({},o.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 r,o=t.shift(),s=o.left,a=o.top,d={left:0,right:0,top:0,bottom:0};e==="west"?d.left-=s:e==="east"&&(d.right+=s),n==="north"?d.top-=a:n==="south"&&(d.bottom+=a),!n&&e?r="width":n&&!e&&(r="height"),this.resizable&&this.$emit("resize",new hf(d,{allowedDirections:{left:e==="west"||!e,right:e==="east"||!e,bottom:n==="south"||!n,top:n==="north"||!n},preserveAspectRatio:t.nativeEvent&&t.nativeEvent.shiftKey,respectDirection:r}))}},emits:["resize","resize-end"]};Hs.render=function(t,e,n,r,o,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(d){return s.onHandlerDrag(d,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[1]||(e[1]=function(d){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(d){return s.onHandlerDrag(d,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[2]||(e[2]=function(d){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var Ff=Ae("vue-draggable-area"),qs={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:Ff()}}},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()):As({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,r=e.top;this.anchor={x:t.clientX-n,y:t.clientY-r}},processMove:function(t,e){var n=ct(e);if(this.touches.length){var r=this.$refs.container.getBoundingClientRect(),o=r.left,s=r.top;this.touches.length===1&&n.length===1&&this.$emit("move",new $i({left:n[0].clientX-(o+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"]};qs.render=function(t,e,n,r,o,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 Fi(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 Of(t){return new Promise(function(e,n){try{if(t)if(/^data:/i.test(t))e(function(l){l=l.replace(/^data:([^;]+);base64,/gim,"");for(var u=atob(l),h=u.length,f=new ArrayBuffer(h),m=new Uint8Array(f),p=0;p<h;p++)m[p]=u.charCodeAt(p);return f}(t));else if(/^blob:/i.test(t)){var r=new FileReader;r.onload=function(l){e(l.target.result)},s=t,a=function(l){r.readAsArrayBuffer(l)},(d=new XMLHttpRequest).open("GET",s,!0),d.responseType="blob",d.onload=function(){this.status!=200&&this.status!==0||a(this.response)},d.send()}else{var o=new XMLHttpRequest;o.onreadystatechange=function(){o.readyState===4&&(o.status===200||o.status===0?e(o.response):n("Warning: could not load an image to parse its orientation"),o=null)},o.onprogress=function(){o.getResponseHeader("content-type")!=="image/jpeg"&&o.abort()},o.withCredentials=!1,o.open("GET",t,!0),o.responseType="arraybuffer",o.send(null)}else n("Error: the image is empty")}catch(l){n(l)}var s,a,d})}function Us(t){var e=t.rotate,n=t.flip,r=t.scaleX,o=t.scaleY,s="";return s+=" rotate("+e+"deg) ",s+=" scaleX("+r*(n.horizontal?-1:1)+") ",s+=" scaleY("+o*(n.vertical?-1:1)+") "}function Lf(t){try{var e,n=new DataView(t),r=void 0,o=void 0,s=void 0,a=void 0;if(n.getUint8(0)===255&&n.getUint8(1)===216)for(var d=n.byteLength,l=2;l+1<d;){if(n.getUint8(l)===255&&n.getUint8(l+1)===225){s=l;break}l++}if(s&&(r=s+10,function(p,C,S){var w,R="";for(w=C,S+=C;w<S;w++)R+=String.fromCharCode(p.getUint8(w));return R}(n,s+4,4)==="Exif")){var u=n.getUint16(r);if(((o=u===18761)||u===19789)&&n.getUint16(r+2,o)===42){var h=n.getUint32(r+4,o);h>=8&&(a=r+h)}}if(a){for(var f=n.getUint16(a,o),m=0;m<f;m++)if(l=a+12*m+2,n.getUint16(l,o)===274){l+=8,e=n.getUint16(l,o),n.setUint16(l,1,o);break}}return e}catch{return null}}function _s(t,e){var n=e.getBoundingClientRect(),r=n.left,o=n.top,s={left:0,top:0},a=0;return t.forEach(function(d){s.left+=(d.clientX-r)/t.length,s.top+=(d.clientY-o)/t.length}),t.forEach(function(d){a+=As({x:s.left,y:s.top},{x:d.clientX-r,y:d.clientY-o})}),{centerMass:s,spread:a,count:t.length}}var Ws={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=Mi(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 Dt({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=_s(e,this.$refs.container),r=this.oldGeometricProperties;r.count===n.count&&r.count>1&&this.$emit("resize",new Dt({left:r.centerMass.left-n.centerMass.left,top:r.centerMass.top-n.centerMass.top},{factor:r.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(),r=n.left,o=n.top,s=n.bottom,a=n.right;this.touches=ct(t.touches).filter(function(d){return d.clientX>r&&d.clientX<a&&d.clientY>o&&d.clientY<s}),this.oldGeometricProperties=_s(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(r){return!r.identifier||e.touches.find(function(o){return o.identifier===r.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,r=e.top,o=1+this.wheelResize.ratio*(a=t.deltaY||t.detail||t.wheelDelta,(d=+a)==0||Is(d)?d:d>0?1:-1),s={left:t.clientX-n,top:t.clientY-r};this.$emit("resize",new Dt({},{factor:o,center:s})),this.touches.length||this.debouncedProcessEnd()}var a,d}},emits:["resize","move","transform-end"]};Ws.render=function(t,e,n,r,o,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 Oi={components:{TransformableImage:Ws},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"]};Oi.render=function(t,e,n,r,o,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(d){return t.$emit("move",d)}),onResize:e[2]||(e[2]=function(d){return t.$emit("resize",d)})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var vn=Ae("vue-preview"),js={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:vn({fill:this.fill}),wrapper:vn("wrapper"),imageWrapper:vn("image-wrapper"),image:ee(vn("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=_(_({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),n=this.imageSize.width,r=this.imageSize.height,o=Ts({width:n,height:r},e.rotate),s={width:"".concat(n,"px"),height:"".concat(r,"px"),left:"0px",top:"0px"},a={rotate:{left:(n-o.width)*e.scaleX/2,top:(r-o.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*r/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) ")+Us(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()}}};js.render=function(t,e,n,r,o,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 Gs={components:{Preview:js},inheritAttrs:!1};Gs.render=function(t,e,n,r,o,s){var a=i.resolveComponent("preview");return i.openBlock(),i.createBlock(a,i.mergeProps(t.$attrs,{fill:!0}),null,16)};var Li=Ae("vue-rectangle-stencil"),Zs={name:"RectangleStencil",components:{StencilPreview:Gs,BoundingBox:Hs,DraggableArea:qs},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Vi}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return zi}},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:ee(Li({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:ee(Li("preview"),this.previewClass),boundingBox:ee(Li("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,r=t.left,o=t.top,s={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(r,"px, ").concat(o,"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"]};Zs.render=function(t,e,n,r,o,s){var a=i.resolveComponent("stencil-preview"),d=i.resolveComponent("draggable-area"),l=i.resolveComponent("bounding-box");return i.openBlock(),i.createBlock("div",{class:s.classes.stencil,style:s.style},[i.createVNode(l,{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(d,{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 Df=["transitions"],We=Ae("vue-advanced-cropper"),Xs={name:"Cropper",components:{BackgroundWrapper:Oi},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return Zs}},backgroundWrapperComponent:{type:[Object,String],default:function(){return Oi}},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 wf.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,r=t.aspectRatio,o=t.positionRestrictions,s=t.sizeRestrictions,a=N(N({},n),{right:n.left+n.width,bottom:n.top+n.height}),d=e.params||{},l=N({},e.directions),u=d.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};s.widthFrozen&&(l.left=0,l.right=0),s.heightFrozen&&(l.top=0,l.bottom=0),Te.forEach(function(P){u[P]||(l[P]=0)});var h=Oe(a,l=Ds({coordinates:a,directions:l,sizeRestrictions:s,positionRestrictions:o})).width,f=Oe(a,l).height,m=d.preserveRatio?W(a):vi(h/f,r);if(m){var p=d.respectDirection;if(p||(p=a.width>=a.height||m===1?"width":"height"),p==="width"){var C=h/m-a.height;if(u.top&&u.bottom){var S=l.top,w=l.bottom;l.bottom=An(C,w,S),l.top=An(C,S,w)}else u.bottom?l.bottom=C:u.top?l.top=C:u.right?l.right=0:u.left&&(l.left=0)}else if(p==="height"){var R=a.width-f*m;if(u.left&&u.right){var O=l.left,L=l.right;l.left=-An(R,O,L),l.right=-An(R,L,O)}else u.left?l.left=-R:u.right?l.right=-R:u.top?l.top=0:u.bottom&&(l.bottom=0)}l=Ds({directions:l,coordinates:a,sizeRestrictions:s,positionRestrictions:o,preserveRatio:!0,compensate:d.compensate})}return h=Oe(a,l).width,f=Oe(a,l).height,(m=d.preserveRatio?W(a):vi(h/f,r))&&Math.abs(m-h/f)>.001&&Te.forEach(function(P){u[P]||(l[P]=0)}),Pi({event:new $i({left:-l.left,top:-l.top}),coordinates:{width:n.width+l.right+l.left,height:n.height+l.top+l.bottom,left:n.left,top:n.top},positionRestrictions:o})}},moveAlgorithm:{type:Function,default:Pi},initStretcher:{type:Function,default:function(t){var e=t.stretcher,n=t.imageSize,r=W(n);e.style.width=n.width+"px",e.style.height=e.clientWidth/r+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,n=t.coordinates,r=t.aspectRatio,o=t.sizeRestrictions,s=t.positionRestrictions,a=N(N({},n),_e({width:n.width,height:n.height,aspectRatio:r,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,o.minHeight),minWidth:Math.min(e.width,o.minWidth)}}));return a=ce(a=ye(a,wt(le(n),le(a))),$n(Fe(e),s))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.getAreaRestrictions,o=t.coordinates,s=N({},e);s.height=s.width/W(n),s.top+=(e.height-s.height)/2,(o.height-s.height>0||o.width-s.width>0)&&(s=xe(s,Math.max(o.height/s.height,o.width/s.width)));var a=Mn(Ct(o,Fe(s=xe(s,Rn(s,r({visibleArea:s,type:"resize"}))))));return s.width<o.width&&(a.left=0),s.height<o.height&&(a.top=0),s=ce(s=ye(s,a),r({visibleArea:s,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.imageSize,o=t.imageRestriction,s=t.type,a={};return o==="fill-area"?a={left:0,top:0,right:r.width,bottom:r.height}:o==="fit-area"&&(W(n)>W(r)?(a={top:0,bottom:r.height},e&&s==="move"&&(e.width>r.width?(a.left=-(e.width-r.width)/2,a.right=r.width-a.left):(a.left=0,a.right=r.width))):(a={left:0,right:r.width},e&&s==="move"&&(e.height>r.height?(a.top=-(e.height-r.height)/2,a.bottom=r.height-a.top):(a.top=0,a.bottom=r.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:_({},Ps)}},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=Ri(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:Ri(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:re(this.minWidth)?0:Bn(this.minWidth),minHeight:re(this.minHeight)?0:Bn(this.minHeight),maxWidth:re(this.maxWidth)?1/0:Bn(this.maxWidth),maxHeight:re(this.maxHeight)?1/0:Bn(this.maxHeight)});if(t=function(r){var o=r.areaRestrictions,s=r.sizeRestrictions,a=r.boundaries,d=r.positionRestrictions,l=N(N({},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});d.left!==void 0&&d.right!==void 0&&(l.maxWidth=Math.min(l.maxWidth,d.right-d.left)),d.bottom!==void 0&&d.top!==void 0&&(l.maxHeight=Math.min(l.maxHeight,d.bottom-d.top));var u=Ni(o),h=zs(a,u);return u.width<1/0&&(!l.maxWidth||l.maxWidth>h.width)&&(l.maxWidth=Math.min(l.maxWidth,h.width)),u.height<1/0&&(!l.maxHeight||l.maxHeight>h.height)&&(l.maxHeight=Math.min(l.maxHeight,h.height)),l.minWidth>l.maxWidth&&(l.minWidth=l.maxWidth,l.widthFrozen=!0),l.minHeight>l.maxHeight&&(l.minHeight=l.maxHeight,l.heightFrozen=!0),l}({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=Ni(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:We(),image:ee(We("image"),this.imageClass),stencil:We("stencil"),boundaries:ee(We("boundaries"),this.boundariesClass),stretcher:ee(We("stretcher")),background:ee(We("background"),this.backgroundClass),foreground:ee(We("foreground"),this.foregroundClass),imageWrapper:ee(We("image-wrapper")),cropperWrapper:ee(We("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,n=t.height,r=t.left,o=t.top;return{width:e/this.coefficient,height:n/this.coefficient,left:(r-this.visibleArea.left)/this.coefficient,top:(o-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},r=_(_({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),o={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)")+Us(r)};return this.transitionsOptions.enabled&&(o.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),o}},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=Mi(this.update,this.debounce),this.debouncedDisableTransitions=Mi(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(_({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:_({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?_({},this.visibleArea):null,imageTransforms:e,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?_({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,o=r===void 0||r;this.onManipulateImage(new Dt({},{factor:1/t,center:e}),{normalize:!1,transitions:o})},move:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,o=r===void 0||r;this.onManipulateImage(new Dt({left:t||0,top:e||0}),{normalize:!1,transitions:o})},setCoordinates:function(t){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.autoZoom,o=r===void 0||r,s=n.transitions,a=s===void 0||s;this.$nextTick(function(){e.imageLoaded?(e.transitionsActive||(a&&e.enableTransitions(),e.coordinates=e.applyTransform(t),o&&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,r=e.sizeRestrictions,o=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>r.maxWidth?s.width=Math.floor(n.width):s.width<r.minWidth&&(s.width=Math.ceil(n.width)),s.height>r.maxHeight?s.height=Math.floor(n.height):s.height<r.minHeight&&(s.height=Math.ceil(n.height)),ce(s,o)}(_(_({},this.getPublicProperties()),{},{positionRestrictions:In(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,n,r){var o=this.autoZoomAlgorithm;o||(o=this.stencilSize?Sf:this.autoZoom?kf:Ef);var s=o({event:{type:t,params:r},visibleArea:e,coordinates:n,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return _(_({},s),{},{changed:!Vs(s.visibleArea,e)||!Vs(s.coordinates,n)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n!==void 0&&n,o=df(e,Df),s=this.processAutoZoom(t,this.visibleArea,this.coordinates,o),a=s.visibleArea,d=s.coordinates,l=s.changed;r&&l&&this.enableTransitions(),this.visibleArea=a,this.coordinates=d,r&&l&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(e){var n=e.event,r=e.visibleArea,o=e.coefficient;if(n.type==="manipulateImage")return N(N({},n),{move:{left:n.move&&n.move.left?o*n.move.left:0,top:n.move&&n.move.top?o*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*o+r.left,top:n.scale.center.top*o+r.top}:null}});if(n.type==="resize"){var s=N(N({},n),{directions:N({},n.directions)});return Te.forEach(function(d){s.directions[d]*=o}),s}if(n.type==="move"){var a=N(N({},n),{directions:N({},n.directions)});return yf.forEach(function(d){a.directions[d]*=o}),a}return n}(_(_({},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(d,l,u){var h=u.rotate,f=u.flip,m={width:l.naturalWidth,height:l.naturalHeight},p=Ts(m,h),C=d.getContext("2d");d.height=p.height,d.width=p.width,C.save();var S=Xe(le(N({left:0,top:0},m)),h);return C.translate(-(S.left-p.width/2),-(S.top-p.height/2)),C.rotate(h*Math.PI/180),C.translate(f.horizontal?m.width:0,f.vertical?m.height:0),C.scale(f.horizontal?-1:1,f.vertical?-1:1),C.drawImage(l,0,0,m.width,m.height),C.restore(),d}(this.$refs.sourceCanvas,e,this.imageTransforms):e,r=_({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),o=function(d){return d.find(function(l){return u=l,!Number.isNaN(parseFloat(u))&&isFinite(u);var u})},s=_e({sizeRestrictions:{minWidth:o([r.width,r.minWidth])||0,minHeight:o([r.height,r.minHeight])||0,maxWidth:o([r.width,r.maxWidth])||1/0,maxHeight:o([r.height,r.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(r.maxArea&&s.width*s.height>r.maxArea){var a=Math.sqrt(r.maxArea/(s.width*s.height));s={width:Math.round(a*s.width),height:Math.round(a*s.height)}}return function(d,l,u,h,f){d.width=h?h.width:u.width,d.height=h?h.height:u.height;var m=d.getContext("2d");m.clearRect(0,0,d.width,d.height),f&&(f.imageSmoothingEnabled&&(m.imageSmoothingEnabled=f.imageSmoothingEnabled),f.imageSmoothingQuality&&(m.imageSmoothingQuality=f.imageSmoothingQuality),f.fillColor&&(m.fillStyle=f.fillColor,m.fillRect(0,0,d.width,d.height),m.save()));var p=u.left<0?-u.left:0,C=u.top<0?-u.top:0;m.drawImage(l,u.left+p,u.top+C,u.width,u.height,p*(d.width/u.width),C*(d.height/u.height),d.width,d.height)}(t,n,this.coordinates,s,r),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?bf(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,r=this.visibleArea&&e?In(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return Cf({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:n,positionRestrictions:r,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?Mf:Bf);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var r=yt(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,o=this.defaultPosition||xf,s=[r,function(a){var d=a.coordinates;return _({},yt(o)?o({coordinates:d,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 r={cropper:n,imageSize:t.imageSize};if(yt(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(r):t.defaultBoundaries==="fit"?t.boundaries=function(o){var s=o.cropper,a=o.imageSize,d=s.clientHeight,l=s.clientWidth,u=d,h=a.width*d/a.height;return h>l&&(h=l,u=a.height*l/a.width),{width:h,height:u}}(r):t.boundaries=function(o){var s=o.cropper;return{width:s.clientWidth,height:s.clientHeight}}(r),!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=_(_({},this.defaultImageTransforms),{},{flip:_({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){t.priority!=="visible-area"&&(t.visibleArea=null,t.resetCoordinates());var e,n,r,o,s,a,d=t.defaultVisibleArea||Rf;t.visibleArea=yt(d)?d({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,r=e.boundaries,o=e.getAreaRestrictions,s=N({},n),a=W(r),s.width/s.height!==a&&(s.height=s.width/a),ce(s,o({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(o){if(Rs(o))return!1;var s=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(o)||[],d={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},l=function(u){return u.port||((u.protocol||s.protocol)==="http"?80:433)};return!(!d.protocol&&!d.host&&!d.port||d.protocol&&d.protocol==s.protocol&&d.host&&d.host==s.host&&d.host&&l(d)==l(s))}(this.src)){var n=re(this.crossOrigin)?this.canvas:this.crossOrigin;n===!0&&(n="anonymous"),this.imageAttributes.crossOrigin=n||null}if(this.checkOrientation){var r=(t=this.src,new Promise(function(o){Of(t).then(function(s){var a=Lf(s);o(s?{source:t,arrayBuffer:s,orientation:a}:{source:t,arrayBuffer:null,orientation:null})}).catch(function(s){console.warn(s),o({source:t,arrayBuffer:null,orientation:null})})}));setTimeout(function(){r.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,r=t.arrayBuffer,o=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,r&&o&&o>1?Ms(n)||!Rs(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([r])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(s){for(var a=[],d=new Uint8Array(s);d.length>0;){var l=d.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(l):l.slice())),d=d.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(r):this.imageAttributes.src=n,yt(this.defaultTransforms)?this.appliedImageTransforms=Fi(this.defaultTransforms()):xn(this.defaultTransforms)?this.appliedImageTransforms=Fi(this.defaultTransforms):this.appliedImageTransforms=function(s){var a=Fi({});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}(o),this.defaultImageTransforms=_(_({},this.appliedImageTransforms),{},{flip:_({},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(_(_({},e.getPublicProperties()),{},{positionRestrictions:In(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,r=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(_(_({},e.getPublicProperties()),{},{positionRestrictions:In(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,r),minHeight:Math.max(n.minHeight,r)},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,r=n!==void 0&&n,o=e.normalize,s=o===void 0||o;r&&this.enableTransitions();var a=$f(_(_({},this.getPublicProperties()),{},{event:s?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),d=a.visibleArea,l=a.coordinates;this.visibleArea=d,this.coordinates=l,this.runAutoZoom("manipulateImage"),this.onChange(),r&&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,r=n===void 0?"move":n;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:r})},getAspectRatio:function(t){var e,n,r=this.stencilProps,o=r.aspectRatio,s=r.minAspectRatio,a=r.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var d=this.$refs.stencil.aspectRatios();e=d.minimum,n=d.maximum}if(re(e)&&(e=re(o)?s:o),re(n)&&(n=re(o)?a:o),!t&&(re(e)||re(n))){var l=this.getStencilSize(),u=l?W(l):null;re(e)&&(e=$s(u)?u:void 0),re(n)&&(n=$s(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,r=t.aspectRatio,vi(W(o=yt(n)?n({boundaries:e,aspectRatio:r}):n),r)&&(o=_e({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:o.width,height:o.height,aspectRatio:{minimum:r.minimum,maximum:r.maximum}})),(o.width>e.width||o.height>e.height)&&(o=_e({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:o.width,height:o.height,aspectRatio:{minimum:W(o),maximum:W(o)}})),o;var t,e,n,r,o},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 _({},Ps)},flip:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,o=r===void 0||r;if(!this.transitionsActive){o&&this.enableTransitions();var s=_({},this.imageTransforms.flip),a=Af({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()}),d=a.visibleArea,l=a.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=d,this.coordinates=l,this.onChange(),o&&this.debouncedDisableTransitions()}},rotate:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n===void 0||n;if(!this.transitionsActive){r&&this.enableTransitions();var o=_({},this.imageSize);this.appliedImageTransforms.rotate+=t;var s=If({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:o,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=s.visibleArea,d=s.coordinates,l=this.processAutoZoom("rotateImage",a,d);a=l.visibleArea,d=l.coordinates,this.visibleArea=a,this.coordinates=d,this.onChange(),r&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},Hf={key:0,ref:"canvas",style:{display:"none"}},qf={key:1,ref:"sourceCanvas",style:{display:"none"}};Xs.render=function(t,e,n,r,o,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:o.imageAttributes.crossOrigin,src:o.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:o.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,o.imageLoaded]]),n.canvas?(i.openBlock(),i.createBlock("canvas",Hf,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 Uf={width:0,height:0,left:0,top:0};class Di{constructor(){c(this,"id");c(this,"ratio",0);c(this,"src","");c(this,"coordinates",Uf)}setCoordinates(e){this.coordinates=e}getCoordinates(){return this.coordinates}static Create(e,n=0,r){const o=new Di;return o.src=e,o.ratio=n,o.id=r,o}setRatio(e){this.ratio=e}getRatio(){return this.ratio}setSrc(e){this.src=e}getSrc(){return this.src}}const _f={class:"background-container"},Wf={class:"dialog-footer"},jf=x(i.defineComponent({__name:"ImageCropper",props:{src:{type:String,required:!0},ratio:{type:Number,required:!1,default:1}},emits:["crop","close","update:ratio"],setup(t,{emit:e}){const n=t,r=e,o=i.ref(n.ratio),s=i.ref(Di.Create(n.src,n.ratio));s.value.setRatio(o.value);const a=()=>{s.value.setRatio(o.value)},d=i.ref(),l=async()=>{const u=d.value.getResult();u&&u.canvas.toBlob(h=>{var f;r("crop",{blob:h,src:(f=u.canvas)==null?void 0:f.toDataURL()}),r("update:ratio",s.value.coordinates.width/s.value.coordinates.height)})};return(u,h)=>(i.openBlock(),i.createElementBlock("div",_f,[i.createVNode(Si,{modelValue:i.unref(o),"onUpdate:modelValue":h[0]||(h[0]=f=>i.isRef(o)?o.value=f:null),label:"Задайте пропорции фото",width:"100%",margin:"0 0 20px 0",onChange:a},{default:i.withCtx(()=>h[2]||(h[2]=[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"]),i.createVNode(i.unref(Xs),{ref_key:"cropperRef",ref:d,src:i.unref(s).src,"stencil-props":{aspectRatio:i.unref(s).ratio},style:{"max-height":"50vh","min-height":"50vh"},onChange:h[1]||(h[1]=f=>i.unref(s).setCoordinates(f.coordinates))},null,8,["src","stencil-props"]),i.createElementVNode("div",Wf,[i.createVNode(wi,{skin:"text",type:"primary",text:"Сохранить",onClick:l})])]))}}),[["__scopeId","data-v-7b32def2"]]),Gf=x(i.defineComponent({__name:"IconUploaderChange",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":"#uploader-change"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",id:"uploader-change"},[i.createElementVNode("path",{d:"M12.825 15.783C12.175 15.787 11.5393 15.7173 10.918 15.574C10.2967 15.4307 9.762 15.1347 9.314 14.686C8.95467 14.3273 8.678 13.9173 8.484 13.456C8.28933 12.9947 8.192 12.5113 8.192 12.006C8.192 11.788 8.207 11.5807 8.237 11.384C8.26633 11.1867 8.31867 10.9873 8.394 10.786C8.43533 10.6633 8.43133 10.5437 8.382 10.427C8.33267 10.3103 8.25467 10.2293 8.148 10.184C8.038 10.1393 7.92567 10.1427 7.811 10.194C7.69633 10.2453 7.61833 10.3327 7.577 10.456C7.49367 10.706 7.428 10.9593 7.38 11.216C7.332 11.472 7.308 11.7333 7.308 12C7.308 12.628 7.42733 13.227 7.666 13.797C7.90533 14.367 8.24533 14.8723 8.686 15.313C9.20067 15.8437 9.81667 16.202 10.534 16.388C11.2513 16.5747 11.9797 16.6697 12.719 16.673L11.756 17.637C11.67 17.723 11.6237 17.8243 11.617 17.941C11.6103 18.0577 11.6567 18.1653 11.756 18.264C11.8553 18.3627 11.9597 18.412 12.069 18.412C12.1783 18.412 12.283 18.3627 12.383 18.264L13.906 16.741C14.0673 16.579 14.148 16.3903 14.148 16.175C14.148 15.9597 14.0673 15.7713 13.906 15.61L12.383 14.087C12.2963 14.0003 12.195 13.954 12.079 13.948C11.9623 13.9413 11.8547 13.9877 11.756 14.087C11.6573 14.1863 11.608 14.2907 11.608 14.4C11.608 14.5093 11.6573 14.614 11.756 14.714L12.825 15.783ZM11.189 8.212C11.839 8.212 12.4753 8.28333 13.098 8.426C13.7213 8.56867 14.2573 8.86433 14.706 9.313C15.0647 9.67233 15.3413 10.0827 15.536 10.544C15.7307 11.0053 15.8277 11.4887 15.827 11.994C15.827 12.212 15.8123 12.4193 15.783 12.616C15.7537 12.8127 15.701 13.0117 15.625 13.213C15.5843 13.3363 15.5887 13.4573 15.638 13.576C15.6873 13.6947 15.765 13.7763 15.871 13.821C15.9817 13.8657 16.0943 13.8657 16.209 13.821C16.3237 13.7763 16.4013 13.6923 16.442 13.569C16.5253 13.319 16.5913 13.0617 16.64 12.797C16.688 12.5323 16.712 12.2667 16.712 12C16.712 11.372 16.5943 10.773 16.359 10.203C16.1237 9.633 15.7837 9.12567 15.339 8.681C14.8203 8.14967 14.2023 7.79233 13.485 7.609C12.7683 7.425 12.04 7.333 11.3 7.333L12.27 6.363C12.3513 6.277 12.3953 6.17567 12.402 6.059C12.4087 5.94233 12.3627 5.83467 12.264 5.736C12.1653 5.63733 12.0607 5.58833 11.95 5.589C11.8393 5.58967 11.735 5.63867 11.637 5.736L10.114 7.26C9.952 7.422 9.871 7.61067 9.871 7.826C9.871 8.04133 9.952 8.22967 10.114 8.391L11.637 9.914C11.723 10.0007 11.8243 10.047 11.941 10.053C12.0577 10.059 12.1653 10.013 12.264 9.915C12.3627 9.817 12.412 9.71233 12.412 9.601C12.412 9.48967 12.3627 9.38533 12.264 9.288L11.189 8.212ZM12 21C10.7573 21 9.58867 20.7633 8.494 20.29C7.39933 19.816 6.447 19.174 5.637 18.364C4.82633 17.5533 4.18433 16.6007 3.711 15.506C3.237 14.4113 3 13.2427 3 12C3 10.7573 3.23667 9.58867 3.71 8.494C4.18333 7.39933 4.82567 6.447 5.637 5.637C6.44833 4.827 7.40067 4.18467 8.494 3.71C9.58933 3.23667 10.758 3 12 3C13.242 3 14.4107 3.23667 15.506 3.71C16.6007 4.184 17.553 4.82633 18.363 5.637C19.1737 6.447 19.8157 7.39933 20.289 8.494C20.763 9.58933 21 10.758 21 12C21 13.242 20.7633 14.4107 20.29 15.506C19.816 16.6007 19.174 17.553 18.364 18.363C17.5533 19.1737 16.6007 19.8157 15.506 20.289C14.4113 20.763 13.2427 21 12 21ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-b1844023"]]),Zf=x(i.defineComponent({__name:"IconUploaderDel",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":"#uploader-del"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",id:"uploader-del"},[i.createElementVNode("path",{d:"M7.616 20.0005C7.168 20.0005 6.78667 19.8431 6.472 19.5285C6.15733 19.2138 6 18.8328 6 18.3855V6.00047H5V5.00047H9V4.23047H15V5.00047H19V6.00047H18V18.3855C18 18.8455 17.846 19.2298 17.538 19.5385C17.23 19.8471 16.8453 20.0011 16.384 20.0005H7.616ZM17 6.00047H7V18.3855C7 18.5648 7.05767 18.7121 7.173 18.8275C7.28833 18.9428 7.436 19.0005 7.616 19.0005H16.385C16.5383 19.0005 16.6793 18.9365 16.808 18.8085C16.9367 18.6805 17.0007 18.5391 17 18.3845V6.00047ZM9.808 17.0005H10.808V8.00047H9.808V17.0005ZM13.192 17.0005H14.192V8.00047H13.192V17.0005Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-be789ad0"]]),Xf=x(i.defineComponent({__name:"IconUploaderPlus",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":"#uploader-plus"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25",id:"uploader-plus"},[i.createElementVNode("path",{d:"M8 12H12V8H13V12H17V13H13V17H12V13H8V12ZM12.5 3C15.0196 3 17.4359 4.00089 19.2175 5.78249C20.9991 7.56408 22 9.98044 22 12.5C22 15.0196 20.9991 17.4359 19.2175 19.2175C17.4359 20.9991 15.0196 22 12.5 22C9.98044 22 7.56408 20.9991 5.78249 19.2175C4.00089 17.4359 3 15.0196 3 12.5C3 9.98044 4.00089 7.56408 5.78249 5.78249C7.56408 4.00089 9.98044 3 12.5 3ZM12.5 4C10.2457 4 8.08365 4.89553 6.48959 6.48959C4.89553 8.08365 4 10.2457 4 12.5C4 14.7543 4.89553 16.9163 6.48959 18.5104C8.08365 20.1045 10.2457 21 12.5 21C13.6162 21 14.7215 20.7801 15.7528 20.353C16.7841 19.9258 17.7211 19.2997 18.5104 18.5104C19.2997 17.7211 19.9258 16.7841 20.353 15.7528C20.7801 14.7215 21 13.6162 21 12.5C21 10.2457 20.1045 8.08365 18.5104 6.48959C16.9163 4.89553 14.7543 4 12.5 4Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-54113724"]]),Yf={key:0},Jf=["src"],Qf={class:"tools-button"},Kf={key:1},em=["id"],Ys=x(i.defineComponent({__name:"PUploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{type:Pe,required:!0},height:{type:Number,default:150},emitCrop:{type:Boolean,default:!1},ratio:{type:Number,required:!1,default:1}},emits:["crop","removeFile","update:ratio"],setup(t,{emit:e}){const n=t,r=e,o=i.ref(void 0),s=me.GUID(),a=i.ref(!1),d=i.ref(),l=i.ref(n.ratio),u=i.ref(""),h=()=>{o.value=void 0,l.value=1,r("update:ratio",1),r("removeFile"),m=document.getElementById(s),m.value=""},f=w=>{n.fileInfo.setFile(w),n.fileInfo.fileSystemPath&&(o.value=n.fileInfo),a.value=!1,r("crop")};i.onBeforeMount(()=>{n.fileInfo.fileSystemPath&&(o.value=n.fileInfo,o.value.url=n.fileInfo.getFileUrl())});let m=null;i.onMounted(()=>{document.getElementById("drop-area")&&(m=document.getElementById(s))});const p=()=>{m&&m.click()},C=w=>{u.value=w.url,a.value=!0},S=()=>{if(!m||!m.files||!m.files.length)return;const w=m.files[0];w.url=URL.createObjectURL(w),o.value=w,n.fileInfo.uploadNewFile(w),n.withCrop&&C(o.value)};return i.watch(l,w=>{r("update:ratio",w)}),(w,R)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:"drop-area",class:"img-container",style:i.normalizeStyle({width:t.height*t.ratio+"px",height:t.height+"px"})},[i.unref(o)?(i.openBlock(),i.createElementBlock("div",Yf,[i.createElementVNode("div",{class:"img-block",style:i.normalizeStyle({width:t.ratio<.66?t.height*.66+"px":t.height*t.ratio+"px",height:t.height+"px"})},[i.createElementVNode("img",{src:i.unref(o).url,alt:"upload-image"},null,8,Jf)],4),i.createElementVNode("div",Qf,[i.createElementVNode("div",{class:"ins",style:i.normalizeStyle({width:t.ratio<.66?t.height*.66+"px":t.height*t.ratio+"px",height:t.height+"px"})},[i.createElementVNode("div",{class:"change",onClick:R[0]||(R[0]=O=>C(i.unref(o)))},[i.createVNode(Gf,{margin:"0 10px 0 0",size:"40px"})]),i.createElementVNode("div",{claSS:"del",onClick:R[1]||(R[1]=O=>h())},[i.createVNode(Zf,{size:"40px"})])],4)])])):(i.openBlock(),i.createElementBlock("div",Kf,[i.createElementVNode("div",{class:"add-button",style:i.normalizeStyle({width:t.height*t.ratio-2+"px",height:t.height-2+"px"}),onClick:p},[i.createVNode(Xf,{size:"40px"})],4)]))],4),i.createElementVNode("input",{id:i.unref(s),ref_key:"uploader",ref:d,hidden:"",type:"file",onChange:S},null,40,em),i.createVNode(Ei,{show:i.unref(a),title:"Настройка изображения","max-height":"90vh",top:"5vh"},{default:i.withCtx(()=>[i.createVNode(jf,{ratio:i.unref(l),"onUpdate:ratio":R[2]||(R[2]=O=>i.isRef(l)?l.value=O:null),src:i.unref(u),onCrop:f,onClose:R[3]||(R[3]=O=>a.value=!1)},null,8,["ratio","src"])]),_:1},8,["show"])],64))}}),[["__scopeId","data-v-93ebb6be"]]),tm=["id"],nm=["for"],im={class:"left-field"},rm=["href","download"],om={key:1,class:"text-field__input"},sm={class:"right-field"},am=i.defineComponent({__name:"UploaderFile",props:{fileInfo:{type:Object,required:!1,default:new Pe},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,r=e,o=me.GUID(),s=me.GUID(),a=()=>{const u=document.getElementById(o);if(!u.files)return;const h=u.files[0];if(h){if(!l(h.name)){pe.Error("Загруженный файл должен быть в формате pdf, jpg или jpeg");return}n.fileInfo.uploadAndSetFile(h),r("upload",n.fileInfo)}},d=()=>{n.fileInfo.clearFile(),r("remove",n.fileInfo)};i.onMounted(()=>{const u=document.getElementById(s);u&&(u.onclick=()=>{var h;return(h=document.getElementById(o))==null?void 0:h.click()})});const l=u=>{let h=jr.Get(u);return!!n.formats.includes(h.toLowerCase())};return(u,h)=>{const f=i.resolveComponent("PString"),m=i.resolveComponent("PFlex"),p=i.resolveComponent("PButton");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("input",{id:i.unref(o),type:"file",hidden:"",onChange:a},null,40,tm),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,nm)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",im,[i.createVNode(m,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(p,{skin:"text",type:"del",onClick:d},{default:i.withCtx(()=>[i.createVNode(kn,{size:"20px",margin:"0 5px"})]),_:1})],4)):(i.openBlock(),i.createElementBlock("div",om,[i.createVNode(f,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),i.createElementVNode("div",sm,[i.createVNode(p,{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)}}}),Js=x(am,[["__scopeId","data-v-e14d4836"]]),lm={class:"container"},cm={key:0,class:"result"},dm={class:"list"},um=["onClick"],Qs=x(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,r=t,o=i.ref(r.modelValue),s=i.ref([]);async function a(){n("input",o.value),await d()}async function d(){r.searchFunc&&(s.value=await r.searchFunc(o.value))}async function l(u){n("select",u)}return(u,h)=>{const f=i.resolveComponent("IconSearch"),m=i.resolveComponent("PInput");return i.openBlock(),i.createElementBlock("div",lm,[i.createVNode(m,{modelValue:i.unref(o),"onUpdate:modelValue":h[0]||(h[0]=p=>i.isRef(o)?o.value=p:null),placeholder:"Найти",onInput:a},{right:i.withCtx(()=>[i.createVNode(f)]),_:1},8,["modelValue"]),i.unref(o)?(i.openBlock(),i.createElementBlock("div",cm,[i.createElementVNode("ul",dm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),p=>(i.openBlock(),i.createElementBlock("li",{key:p.value,onClick:C=>l(p)},i.toDisplayString(p.label),9,um))),128))])])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-67b698bb"]]),hm={class:"footer"},Ks=x(i.defineComponent({__name:"PDialog",setup(t){const e=i.computed(()=>{switch(qe.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,r)=>{const o=i.resolveComponent("MessageBody"),s=i.resolveComponent("PButton");return i.openBlock(),i.createBlock(i.Transition,{name:"fade"},{default:i.withCtx(()=>[i.unref(qe).IsVisible()?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e))},[i.createVNode(o,{title:i.unref(qe).GetTitle(),text:i.unref(qe).GetText()},null,8,["title","text"]),i.createElementVNode("div",hm,[i.createVNode(s,{type:"primary",text:i.unref(qe).GetConfirmButtonText(),margin:"10px 0 0 0",onClick:r[0]||(r[0]=a=>i.unref(qe).Submit())},null,8,["text"]),i.createVNode(s,{type:"warning",text:i.unref(qe).GetCancelButtonText(),margin:"10px 0 0 0",onClick:r[1]||(r[1]=a=>i.unref(qe).Cancel())},null,8,["text"])])],2)):i.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-aa85ea7a"]]),ea=x(i.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{};return(r,o)=>{const s=i.resolveComponent("PInput");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{modelValue:e.value.number,"onUpdate:modelValue":o[0]||(o[0]=a=>e.value.number=a),onBlur:n},null,8,["modelValue"]),i.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":o[1]||(o[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-51bf3f08"]]),fm={};function mm(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 ta=x(fm,[["render",mm],["__scopeId","data-v-0f1f2f84"]]),na=x(i.defineComponent({__name:"PNotification",setup(t){const e=i.computed(()=>{switch(pe.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,r)=>{const o=i.resolveComponent("MessageBody");return i.openBlock(),i.createBlock(i.Transition,{name:"fade"},{default:i.withCtx(()=>[i.unref(pe).IsVisible()?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e))},[i.createVNode(o,{title:i.unref(pe).GetTitle(),text:i.unref(pe).GetText()},null,8,["title","text"])],2)):i.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-cf47c695"]]),pm={style:{display:"flex","justify-content":"center",width:"100%"}},gm={class:"pag-number"},ym={class:"pag-ul"},wm={key:2},ia=x(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,r=m=>m?"active":"neutral",o=m=>m?"not-active":"neutral",s=v.Paginator,a=i.ref(!1),d=i.ref(!1);s.count=n.store.Count;const l=async m=>{if(m!==s.curPage&&(m<1&&(m=1),m>s.pagesCount()&&(m=s.pagesCount()),!n.showConfirm))return await u(m)},u=async(m,p)=>{s.setCurPage(m),$t.Get().p.offset=(m-1)*s.limit,await n.store.FTSP(),f()},h=i.computed(()=>{const m=s.pagesCount();return m<8?Ve.GenerateNumsRange(2,m-1).filter(p=>p<m&&p>1):Ve.GenerateNumsRange(s.curPage-2,s.curPage+3).filter(p=>p<m&&p>1)}),f=()=>{const m=document.querySelector(".el-table__body-wrapper"),p=document.querySelector("#list");m?m.scrollTo({top:0}):p&&p.scrollTo({top:0})};return i.onBeforeUnmount(()=>{$t.Get().p.drop()}),(m,p)=>{const C=i.resolveComponent("ArrowLeft"),S=i.resolveComponent("PButton"),w=i.resolveComponent("DoubleArrowLeft"),R=i.resolveComponent("EllipsisSvg"),O=i.resolveComponent("DoubleArrowRight"),L=i.resolveComponent("ArrowRight");return i.openBlock(),i.createElementBlock("div",pm,[i.createElementVNode("div",{class:"pag-container",style:i.normalizeStyle({justifyContent:t.justifyContent})},[i.createElementVNode("div",gm,[i.createVNode(S,{skin:"pag",type:o(i.unref(s).curPage===1),onClick:p[0]||(p[0]=P=>l(i.unref(s).curPage-1))},{default:i.withCtx(()=>[i.createVNode(C)]),_:1},8,["type"]),i.createElementVNode("ul",ym,[i.createElementVNode("li",null,[i.createVNode(S,{skin:"pag",type:r(i.unref(s).curPage===1),text:"1",onClick:p[1]||(p[1]=P=>l(1))},null,8,["type"])]),i.unref(s).pagesCount()>8&&i.unref(s).curPage>4?(i.openBlock(),i.createElementBlock("li",{key:0,onMouseenter:p[3]||(p[3]=P=>a.value=!0),onMouseleave:p[4]||(p[4]=P=>a.value=!1)},[i.createVNode(S,{skin:"pag",type:"neutral",onClick:p[2]||(p[2]=P=>l(i.unref(s).curPage-5))},{default:i.withCtx(()=>[i.unref(a)?(i.openBlock(),i.createBlock(w,{key:0})):(i.openBlock(),i.createBlock(R,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(h),P=>(i.openBlock(),i.createElementBlock("li",{key:P},[i.createVNode(S,{skin:"pag",type:r(P===i.unref(s).curPage),text:P,onClick:j=>l(P)},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:p[6]||(p[6]=P=>d.value=!0),onMouseleave:p[7]||(p[7]=P=>d.value=!1)},[i.createVNode(S,{skin:"pag",type:"neutral",onClick:p[5]||(p[5]=P=>l(i.unref(s).curPage+5))},{default:i.withCtx(()=>[i.unref(d)?(i.openBlock(),i.createBlock(O,{key:0})):(i.openBlock(),i.createBlock(R,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),i.unref(s).pagesCount()>1?(i.openBlock(),i.createElementBlock("li",wm,[i.createVNode(S,{skin:"pag",type:r(i.unref(s).pagesCount()===i.unref(s).curPage),text:i.unref(s).pagesCount(),onClick:p[8]||(p[8]=P=>l(i.unref(s).pagesCount()))},null,8,["type","text"])])):i.createCommentVNode("",!0)]),i.createVNode(S,{skin:"pag",type:o(i.unref(s).curPage===i.unref(s).pagesCount()),onClick:p[9]||(p[9]=P=>l(i.unref(s).curPage+1))},{default:i.withCtx(()=>[i.createVNode(L)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-ad150339"]]),ra=x(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,r=e,o=i.ref(n.modelValue),s=i.ref(),a=to.SearchModel();i.watch(()=>n.focus,()=>{n.focus&&setTimeout(()=>{s.value.focus(),o.value=""},500)});const d=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(m=>m.key===n.keyValue);return f&&(a.searchGroup=f),a.searchObjects},l=async h=>{r("select",h),o.value=""},u=h=>{r("input",h),h.length===0&&r("input","")};return(h,f)=>{const m=i.resolveComponent("PAutocomplete");return i.openBlock(),i.createBlock(m,{ref_key:"searchForm",ref:s,modelValue:i.unref(o),"onUpdate:modelValue":f[0]||(f[0]=p=>i.isRef(o)?o.value=p:null),"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:t.placeholder,"search-func":d,"trigger-on-focus":t.showSuggestions,suggestions:i.unref(a).searchObjects,onSelect:l,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-ed43b642"]]),bm={class:"mainblock-body"},Cm={class:"mainblock-footer"},oa=x(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",bm,[i.renderSlot(e.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",Cm,[i.renderSlot(e.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-367c3367"]]),Sm={class:"right-slider-content"},km={class:"right-slider-content-header"},Em={class:"right-slider-content-box"},xm={class:"right-slider-button"},sa=x(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,r=e,o=i.ref(!1);i.watch(()=>n.toggle,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("toggle",a)};return(a,d)=>{const l=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",{class:"right-slider",style:i.normalizeStyle({marginRight:i.unref(o)?`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`:"0",width:t.sliderOnWidth})},[i.createElementVNode("div",{class:"click-line",onClick:d[0]||(d[0]=u=>s(!i.unref(o)))},[i.unref(o)?(i.openBlock(),i.createBlock(l,{key:0,string:t.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:1,string:t.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),i.createElementVNode("div",Sm,[i.createElementVNode("div",km,[i.renderSlot(a.$slots,"header",{},void 0,!0)]),i.createElementVNode("div",Em,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",xm,[i.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-262b1c53"]]),Bm={class:"mainblock"},Mm={class:"body-block"},Rm={class:"tab-block"},aa=x(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,r=e,o=i.ref(!1),s=i.ref(window.matchMedia("(max-width: 768px)").matches),a=l=>{r("toggle",l)},d=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}),o.value=!0}),(l,u)=>(i.openBlock(),i.createElementBlock("div",Bm,[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=>d.value=!0),onMouseleave:u[2]||(u[2]=h=>d.value=!1)},[i.createElementVNode("div",{class:"icon-block",style:i.normalizeStyle({transform:i.unref(d)?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(l.$slots,"icon",{},void 0,!0)],4)],36),i.createElementVNode("div",{class:"slider-info",style:i.normalizeStyle({width:`calc(${t.sliderOnWidth} - ${t.sliderOffWidth})`})},[i.renderSlot(l.$slots,"slider-body",{},void 0,!0)],4)],4),i.createElementVNode("div",Mm,[i.renderSlot(l.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",Rm,[i.renderSlot(l.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-0cfd77ce"]]),$m=["label","value"],la=x(i.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(t,{emit:e}){const n={[he.String]:"Текстовый ответ",[he.Text]:"Развёрнутый текстовый ответ",[he.Number]:"Числовой ответ",[he.Date]:"Ответ в виде даты",[he.Radio]:"Выбор одного из вариантов",[he.Set]:"Выбор нескольких вариантов",[he.File]:"Ответ в виде файла",[he.MatrixRadio]:"Матрица с одним выбором",[he.MatrixSet]:"Матрица с несколькими выборами"},r=e,o=s=>{r("select",s)};return(s,a)=>{const d=i.resolveComponent("PString"),l=i.resolveComponent("PSelect");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(d,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),i.createVNode(l,{"model-value":t.selectedType,placeholder:"Вид ответа",onChange:o},{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,$m)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-36a59e2b"]]),Im=["label","value"],ca=x(i.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=i.ref(!1),r=e,o=i.ref();i.onBeforeMount(()=>{n.value=!0,o.value=Ze.GetDefault()});const s=async d=>{o.value=d??Ze.GetDefault(),r("load")},a=async d=>{await s(d)};return(d,l)=>{var h;const u=i.resolveComponent("PSelect");return i.unref(n)?(i.openBlock(),i.createBlock(u,{key:0,modelValue:i.unref(o),"onUpdate:modelValue":l[0]||(l[0]=f=>i.isRef(o)?o.value=f:null),"popper-append-to-body":!1,clearable:!((h=i.unref(o))!=null&&h.default),"value-key":"label",onChange:a,onClear:l[1]||(l[1]=f=>a())},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Ze).Get(),(f,m)=>(i.openBlock(),i.createElementBlock("option",{key:m,label:f.label,value:f},null,8,Im))),128))]),_:1},8,["modelValue","clearable"])):i.createCommentVNode("",!0)}}}),[["__scopeId","data-v-fce97645"]]),Am=["label","value"],da=x(i.defineComponent({__name:"SortSelect",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=e,r=i.ref();i.onBeforeMount(()=>{r.value=Ze.GetDefault()});const o=async a=>{a||(r.value=Ze.GetDefault()),n("load")},s=async a=>{await o(a)};return(a,d)=>{var u;const l=i.resolveComponent("PSelect");return i.openBlock(),i.createBlock(l,{modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=h=>i.isRef(r)?r.value=h:null),"popper-append-to-body":!1,clearable:!((u=i.unref(r))!=null&&u.default),"value-key":"label",onChange:s},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Ze).Get(),(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,label:h.label,value:h},null,8,Am))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-36c9226a"]]),vm={class:"switch-container"},Nm={class:"line"},Pm={class:"line"},ua=x(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,r={background:"inherit",border:"1px solid #c4c4c4"},o=()=>n.firstModel.valueEq(u.value)?void 0:r,s=()=>u.value?r:void 0,a=()=>n.secondModel.valueEq(u.value)?void 0:r,d=f=>{var p;return{color:(p=u.value)!=null&&p.valueEq(f)?"#006bb4":"#B0A4C0"}},l=e,u=i.ref(void 0),h=async f=>{var m;(m=u.value)!=null&&m.valueEq(f)||(u.value=f,l("load"))};return(f,m)=>{const p=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",vm,[i.createElementVNode("div",Nm,[i.createVNode(p,{string:t.firstModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(d(t.firstModel)),onClick:m[0]||(m[0]=C=>h(t.firstModel))},null,8,["string","style"]),i.createVNode(p,{string:"Все","font-size":"12px",padding:"0",style:i.normalizeStyle(d()),onClick:m[1]||(m[1]=C=>h())},null,8,["style"]),i.createVNode(p,{string:t.secondModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(d(t.secondModel)),onClick:m[2]||(m[2]=C=>h(t.secondModel))},null,8,["string","style"])]),i.createElementVNode("div",Pm,[i.createElementVNode("div",{class:i.normalizeClass(["switch-knob1",{active:t.firstModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(o()),onClick:m[3]||(m[3]=C=>h(t.firstModel))},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob2",{active:!i.unref(u)}]),style:i.normalizeStyle(s()),onClick:m[4]||(m[4]=C=>h())},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob3",{active:t.secondModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(a()),onClick:m[5]||(m[5]=C=>h(t.secondModel))},null,6),m[6]||(m[6]=i.createElementVNode("div",{class:"switch-axis"},null,-1)),m[7]||(m[7]=i.createElementVNode("div",{class:"switch-axis-dash1"},null,-1)),m[8]||(m[8]=i.createElementVNode("div",{class:"switch-axis-dash2"},null,-1)),m[9]||(m[9]=i.createElementVNode("div",{class:"switch-axis-dash3"},null,-1))])])}}}),[["__scopeId","data-v-ecff678c"]]),Vm={},zm={class:"flex"};function Tm(t,e){return i.openBlock(),i.createElementBlock("div",zm,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const ha=x(Vm,[["render",Tm],["__scopeId","data-v-5023d414"]]),fa=x(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),r=e,o=async()=>{r("submit"),n.value=!n.value};return(s,a)=>{const d=i.resolveComponent("PString"),l=i.resolveComponent("PButton"),u=i.resolveComponent("GridContainer"),h=i.resolveComponent("InfoItem");return i.openBlock(),i.createBlock(h,{title:t.title,icon:"edit-title","with-hover":!0,close:i.unref(n),width:"100%",onKeyupEnter:o},{"open-inside-content":i.withCtx(()=>[i.createVNode(u,{"custom-class":"grid"},{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default",{},void 0,!0),i.createVNode(l,{type:"admin",color:"blue",text:"Сохранить",onClick:o})]),_:3})]),default:i.withCtx(()=>[t.content.length>0?(i.openBlock(),i.createBlock(d,{key:0,string:t.content},null,8,["string"])):(i.openBlock(),i.createBlock(d,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-0794596f"]]),Fm={class:"top-slider-content"},Om={class:"center"},ma=x(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,r=e,o=i.ref(!0);i.watch(()=>n.toggle,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("toggle",a)};return(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[d[0]||(d[0]=i.withModifiers(l=>o.value=!0,["prevent"])),d[1]||(d[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(o)?`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`:"0",height:t.sliderOnHeight}),onClick:d[3]||(d[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Fm,[i.createElementVNode("div",Om,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:d[2]||(d[2]=l=>s(!i.unref(o)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-683131f5"]]),Lm={install:function(t){t.component("PButton",wi),t.component("PCheckBox",yo),t.component("PDatePicker",wo),t.component("PFlex",bo),t.component("PInput",Bo),t.component("PInputDate",Mo),t.component("PInputNumber",Ro),t.component("PLeftSlider",$o),t.component("PList",Io),t.component("PListItem",Ao),t.component("PRadio",vo),t.component("PRightSlider",No),t.component("PSelect",Si),t.component("PSticky",Po),t.component("PString",Vo),t.component("PTextarea",To),t.component("PTopSlider",Fo),t.component("IconDownload",Xo),t.component("IconFilter",Yo),t.component("ArrowLeft",rs),t.component("ArrowRight",os),t.component("DoubleArrowLeft",ss),t.component("DoubleArrowRight",as),t.component("EllipsisSvg",ls),t.component("IconArrowLeft",Jo),t.component("IconCheckDefault",bi),t.component("IconClose",kn),t.component("IconEdit",Qo),t.component("IconEmail",Ko),t.component("IconMove",es),t.component("IconPhone",ts),t.component("PTable",zo),t.component("IconSearch",ns),t.component("IconSelectArrow",is),t.component("CollapseContainer",fs),t.component("CollapseItem",ms),t.component("VerticalCollapseContainer",ps),t.component("PAdd",gs),t.component("PContainer",ys),t.component("PContainerStickyHead",ws),t.component("PDel",bs),t.component("PTabs",ks),t.component("UploaderFile",Js),t.component("AuthForm",Cs),t.component("PModal",Ei),t.component("PageNotFound",si),t.component("AdaptiveContainer",mo),t.component("AdaptiveContainerHorizontal",po),t.component("AdminGallery",go),t.component("AuthModal",Oo),t.component("CarouselImages",Lo),t.component("ContextWindow",Do),t.component("DateInputRangeV2",qo),t.component("DateInputRange",Ho),t.component("DropList",Uo),t.component("FilterCheckbox",_o),t.component("FiltersButtonsSelect",Wo),t.component("FilterSelect",jo),t.component("FTSPPanel",Go),t.component("GeneralItem",Zo),t.component("GridContainer",ki),t.component("InfoItem",cs),t.component("InfoItemSelectButtons",ds),t.component("LeftRightContainer",us),t.component("MessageBody",hs),t.component("PAutocomplete",Qs),t.component("PDialog",Ks),t.component("PhoneForm",ea),t.component("PLoader",ta),t.component("PNotification",na),t.component("PPagination",ia),t.component("RemoteSearch",ra),t.component("ResearcheContainer",oa),t.component("RightSliderContainer",sa),t.component("RightTabsContainer",aa),t.component("SelectValueType",la),t.component("PNameEdit",Ss),t.component("SortList",ca),t.component("SortSelect",da),t.component("Switch3Pos",ua),t.component("ThemeWrapper",ha),t.component("ToggleInfoItem",fa),t.component("TopSliderContainer",ma),t.component("PUploaderImage",Ys)}},Dm=["PF","PFM"];E.AdaptiveContainer=mo,E.AdaptiveContainerHorizontal=po,E.AdminGallery=go,E.ArrowLeft=rs,E.ArrowRight=os,E.Auth=Ne,E.AuthButtonLogin=Tn,E.AuthButtonRefresh=ji,E.AuthButtonRegister=Fn,E.AuthButtonRestore=jt,E.AuthChunks=se,E.AuthForm=Cs,E.AuthFormSettings=Yi,E.AuthMethods=dt,E.AuthModal=Oo,E.CarouselImages=Lo,E.CollapseContainer=fs,E.CollapseItem=ms,E.ContextWindow=Do,E.DateInputRange=Ho,E.DateInputRange_v2=qo,E.DoubleArrowLeft=ss,E.DoubleArrowRight=as,E.DropList=Uo,E.EllipsisSvg=ls,E.EmailField=Zt,E.FTSPPanel=Go,E.FilterCheckbox=_o,E.FilterSelect=jo,E.FiltersButtonsSelect=Wo,E.GeneralItem=Zo,E.GridContainer=ki,E.IconArrowLeft=Jo,E.IconCheckDefault=bi,E.IconClose=kn,E.IconDownload=Xo,E.IconEdit=Qo,E.IconEmail=Ko,E.IconFilter=Yo,E.IconMove=es,E.IconPhone=ts,E.IconSearch=ns,E.IconSelectArrow=is,E.InfoItem=cs,E.InfoItemSelectButtons=ds,E.LeftRightContainer=us,E.LoginField=Au,E.MessageBody=hs,E.PAdd=gs,E.PAutocomplete=Qs,E.PButton=wi,E.PCheckBox=yo,E.PContainer=ys,E.PContainerStickyHead=ws,E.PDatePicker=wo,E.PDel=bs,E.PDialog=Ks,E.PF=v,E.PFM=Iu,E.PFlex=bo,E.PInput=Bo,E.PInputDate=Mo,E.PInputNumber=Ro,E.PLeftSlider=$o,E.PList=Io,E.PListItem=Ao,E.PLoader=ta,E.PModal=Ei,E.PNameEdit=Ss,E.PNotification=na,E.PPagination=ia,E.PRadio=vo,E.PRightSlider=No,E.PSelect=Si,E.PSticky=Po,E.PString=Vo,E.PTable=zo,E.PTabs=ks,E.PTextarea=To,E.PTopSlider=Fo,E.PUploaderImage=Ys,E.PageNotFound=si,E.PasswordField=Xt,E.PasswordRepeatField=Xi,E.PhoneForm=ea,E.RemoteSearch=ra,E.ResearcheContainer=oa,E.RightSliderContainer=sa,E.RightTabsContainer=aa,E.SelectValueType=la,E.SortList=ca,E.SortSelect=da,E.Switch3Pos=ua,E.ThemeWrapper=ha,E.ToggleInfoItem=fa,E.TopSliderContainer=ma,E.UploaderFile=Js,E.VerticalCollapseContainer=ps,E.pfName=Dm,E.servicesComponents=Lm,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|
|
41
|
+
***************************************************************************** */function Ms(t,e){var n,r;return t&&e?(n=""+t+e[0].toUpperCase()+e.slice(1),r=t+"-"+e):(n=t||e,r=t||e),{name:n,classname:r}}function Rs(t){return/^blob:/.test(t)}function $s(t){return Rs(t)||function(e){return/^data:/.test(e)}(t)}function yt(t){return!!(t&&t.constructor&&t.call&&t.apply)}function re(t){return t===void 0}function Bn(t){return typeof t=="object"&&t!==null}function Ai(t,e,n){var r={};return Bn(t)?(Object.keys(e).forEach(function(o){re(t[o])?r[o]=e[o]:Bn(e[o])?Bn(t[o])?r[o]=Ai(t[o],e[o],n[o]):r[o]=t[o]?e[o]:n[o]:e[o]===!0||e[o]===!1?r[o]=!!t[o]:r[o]=t[o]}),r):t?e:n}function Mn(t){var e=Number(t);return Number.isNaN(e)?t:e}function Is(t){return typeof(t=="number"||function(e){return typeof e=="object"&&e!==null}(t)&&toString.call(t)=="[object Number]")&&!As(t)}function As(t){return t!=t}function vs(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var Dt=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},ff=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},vi=function(t){this.type="move",this.directions=t},mf=function(){function t(e,n,r,o,s){this.type="drag",this.nativeEvent=e,this.position=r,this.previousPosition=o,this.element=n,this.anchor=s}return t.prototype.shift=function(){var e=this,n=e.element,r=e.anchor,o=e.position;if(n){var s=n.getBoundingClientRect(),a=s.left,d=s.top;return{left:o.left-a-r.left,top:o.top-d-r.top}}return{left:0,top:0}},t}(),Ni={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,r=e.right,o=e.bottom,s=e.top;this.anchor={left:t.clientX-n,top:t.clientY-s,bottom:o-t.clientY,right:r-t.clientX}},processMove:function(t,e){var n=ct(e);if(this.touches.length){if(this.touches.length===1&&n.length===1){var r=this.$refs.draggable;this.$emit("drag",new mf(t,r,{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"]};Ni.render=function(t,e,n,r,o,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 Pi=Ae("vue-handler-wrapper"),Ns={name:"HandlerWrapper",components:{DraggableElement:Ni},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=Ms(this.horizontalPosition,this.verticalPosition);t=Pi((Ee(e={},n.classname,!0),Ee(e,"disabled",this.disabled),e))}else t=Pi({disabled:this.disabled});return{root:t,draggable:Pi("draggable")}}},emits:["leave","enter","drag","drag-end"]};Ns.render=function(t,e,n,r,o,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(d){return t.$emit("drag",d)}),onDragEnd:e[2]||(e[2]=function(d){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(d){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(d){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])],2)};var pf=Ae("vue-line-wrapper"),Ps={name:"LineWrapper",components:{DraggableElement:Ni},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return pf((Ee(t={},this.position,!0),Ee(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};Ps.render=function(t,e,n,r,o,s){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock(a,{class:s.classname,onDrag:e[1]||(e[1]=function(d){return t.$emit("drag",d)}),onDragEnd:e[2]||(e[2]=function(d){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(d){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(d){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])};var Te=["left","right","top","bottom"],gf=["left","right"],yf=["top","bottom"],wf=["left","top"],bf=["fill-area","fit-area","stencil","none"],Vs={left:0,top:0,width:0,height:0};function zs(t,e,n){return!(n=n||["width","height","left","top"]).some(function(r){return t[r]!==e[r]})}function Fe(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function wt(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 Ht(t,e){var n={left:0,top:0,right:0,bottom:0};return Te.forEach(function(r){var o=e[r],s=Fe(t)[r];n[r]=o!==void 0&&s!==void 0?r==="left"||r==="top"?Math.max(0,o-s):Math.max(0,s-o):0}),n}function Oe(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 ye(t,e){return N(N({},t),{left:t.left+e.left,top:t.top+e.top})}function xe(t,e,n,r){if(e!==1){if(n){var o=le(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(n.left-o.left)*(1-e),top:t.top+t.height*(1-e)/2+(n.top-o.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 _(t){return t.width/t.height}function bt(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 Ct(t,e){var n={left:0,top:0},r=Ht(t,e);return r.left&&r.left>0?n.left=r.left:r.right&&r.right>0&&(n.left=-r.right),r.top&&r.top>0?n.top=r.top:r.bottom&&r.bottom>0&&(n.top=-r.bottom),n}function Vi(t,e){var n;return e.minimum&&t<e.minimum?n=e.minimum:e.maximum&&t>e.maximum&&(n=e.maximum),n}function Ts(t,e){var n=_(t),r=_(e);return e.width<1/0&&e.height<1/0?n>r?{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 Fs(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 Xe(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 $n(t,e){var n=Ht(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,bt(t,e)):Math.min((t.height+n.top+n.bottom)/t.height,bt(t,e)):1}function ce(t,e,n){n===void 0&&(n=!1);var r=Ct(t,e);return ye(t,n?Rn(r):r)}function zi(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 Cf(t,e){return N(N({},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 Os(t,e,n){n===void 0&&(n=!0);var r={};return Te.forEach(function(o){var s=t[o],a=e[o];s!==void 0&&a!==void 0?r[o]=o==="left"||o==="top"?n?Math.max(s,a):Math.min(s,a):n?Math.min(s,a):Math.max(s,a):a!==void 0?r[o]=a:s!==void 0&&(r[o]=s)}),r}function In(t,e){return Os(t,e,!0)}function Ls(t){var e=t.size,n=t.aspectRatio,r=t.ignoreMinimum,o=t.sizeRestrictions;return!!((e.correctRatio||_(e)>=n.minimum&&_(e)<=n.maximum)&&e.height<=o.maxHeight&&e.width<=o.maxWidth&&e.width&&e.height&&(r||e.height>=o.minHeight&&e.width>=o.minWidth))}function Ds(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function We(t){var e=t.width,n=t.height,r=t.sizeRestrictions,o={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},s={width:Math.max(r.minWidth,Math.min(r.maxWidth,e)),height:Math.max(r.minHeight,Math.min(r.maxHeight,n))};function a(u,h){return h===void 0&&(h=!1),u.reduce(function(f,m){return Ls({size:m,aspectRatio:o,sizeRestrictions:r,ignoreMinimum:h})&&(!f||Ds(m,{width:e,height:n})<Ds(f,{width:e,height:n}))?m:f},null)}var d=[];[o.minimum,o.maximum].forEach(function(u){u&&d.push({width:s.width,height:s.width/u,correctRatio:!0},{width:s.height*u,height:s.height,correctRatio:!0})}),Ls({size:s,aspectRatio:o,sizeRestrictions:r})&&d.push(s);var l=a(d)||a(d,!0);return l&&{width:l.width,height:l.height}}function Ti(t){var e=t.event,n=t.coordinates,r=t.positionRestrictions,o=r===void 0?{}:r,s=ye(n,e.directions);return ye(s,Ct(s,o))}function Sf(t){var e=t.coordinates,n=t.transform,r=t.imageSize,o=t.sizeRestrictions,s=t.positionRestrictions,a=t.aspectRatio,d=t.visibleArea,l=function(h,f){return Ti({coordinates:h,positionRestrictions:s,event:new vi({left:f.left-h.left,top:f.top-h.top})})},u=N({},e);return(Array.isArray(n)?n:[n]).forEach(function(h){var f={};re((f=typeof h=="function"?h({coordinates:u,imageSize:r,visibleArea:d}):h).width)&&re(f.height)||(u=function(m,p){var C=N(N(N({},m),We({width:p.width,height:p.height,sizeRestrictions:o,aspectRatio:a})),{left:0,top:0});return l(C,{left:m.left,top:m.top})}(u,N(N({},u),f))),re(f.left)&&re(f.top)||(u=l(u,N(N({},u),f)))}),u}function kf(t){t.event;var e=t.getAreaRestrictions,n=t.boundaries,r=t.coordinates,o=t.visibleArea;t.aspectRatio;var s=t.stencilSize,a=t.sizeRestrictions,d=t.positionRestrictions;t.stencilReference;var l,u,h,f=N({},r),m=N({},o),p=N({},s);l=_(p),u=_(f),h===void 0&&(h=.001),(l===0||u===0?Math.abs(u-l)<h:Math.abs(u/l)<1+h&&Math.abs(u/l)>1-h)||(f=N(N({},f),We({sizeRestrictions:a,width:f.width,height:f.height,aspectRatio:{minimum:_(p),maximum:_(p)}})));var C=$n(m=xe(m,f.width*n.width/(m.width*p.width)),e({visibleArea:m,type:"resize"}));return C!==1&&(m=xe(m,C),f=xe(f,C)),m=ce(m=ye(m,wt(le(f),le(m))),e({visibleArea:m,type:"move"})),{coordinates:f=ce(f,In(Fe(m),d)),visibleArea:m}}function Ef(t){var e=t.event,n=t.getAreaRestrictions,r=t.boundaries,o=t.coordinates,s=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var a=t.positionRestrictions;t.stencilReference;var d=N({},o),l=N({},s);if(o&&s&&e.type!=="manipulateImage"){var u={width:0,height:0};l.width,r.width,_(r)>_(d)?(u.height=.8*r.height,u.width=u.height*_(d)):(u.width=.8*r.width,u.height=u.width*_(d));var h=$n(l=xe(l,d.width*r.width/(l.width*u.width)),n({visibleArea:l,type:"resize"}));l=xe(l,h),h!==1&&(u.height/=h,u.width/=h),l=ce(l=ye(l,wt(le(d),le(l))),n({visibleArea:l,type:"move"})),d=ce(d,In(Fe(l),a))}return{coordinates:d,visibleArea:l}}function xf(t){var e=t.event,n=t.coordinates,r=t.visibleArea,o=t.getAreaRestrictions,s=N({},r),a=N({},n);if(e.type==="setCoordinates"){var d=Math.max(0,a.width-s.width),l=Math.max(0,a.height-s.height);d>l?s=xe(s,Math.min(a.width/s.width,bt(s,o({visibleArea:s,type:"resize"})))):l>d&&(s=xe(s,Math.min(a.height/s.height,bt(s,o({visibleArea:s,type:"resize"}))))),s=ce(s=ye(s,Rn(Ct(a,Fe(s)))),o({visibleArea:s,type:"move"}))}return{visibleArea:s,coordinates:a}}function Bf(t){var e=t.imageSize,n=t.visibleArea,r=t.coordinates,o=n||e;return{left:(n?n.left:0)+o.width/2-r.width/2,top:(n?n.top:0)+o.height/2-r.height/2}}function Mf(t){var e=t.imageSize,n=t.visibleArea,r=t.aspectRatio,o=t.sizeRestrictions,s=n||e,a=Math.min(r.maximum||1/0,Math.max(r.minimum||0,_(s))),d=s.width<s.height?{width:.8*s.width,height:.8*s.width/a}:{height:.8*s.height,width:.8*s.height*a};return We(N(N({},d),{aspectRatio:r,sizeRestrictions:o}))}function Rf(t){var e,n,r=t.imageSize,o=t.visibleArea,s=t.boundaries,a=t.aspectRatio,d=t.sizeRestrictions,l=t.stencilSize,u=o||r;return _(u)>_(s)?n=(e=l.height*u.height/s.height)*_(l):e=(n=l.width*u.width/s.width)/_(l),We({width:n,height:e,aspectRatio:a,sizeRestrictions:d})}function $f(t){var e=t.getAreaRestrictions,n=t.coordinates,r=t.imageSize,o=_(t.boundaries);if(n){var s={height:Math.max(n.height,r.height),width:Math.max(n.width,r.width)},a=Ts({width:_(s)>o?s.width:s.height*o,height:_(s)>o?s.width/o:s.height},zi(e())),d={left:n.left+n.width/2-a.width/2,top:n.top+n.height/2-a.height/2,width:a.width,height:a.height},l=Ht(n,Fe(N({left:0,top:0},r))),u={};return!l.left&&!l.right&&d.width<=r.width&&(u.left=0,u.right=r.width),!l.top&&!l.bottom&&d.height<=r.height&&(u.top=0,u.bottom=r.height),ce(d,u)}var h=_(r);return a={height:h>o?r.height:r.width/o,width:h>o?r.height*o:r.width},{left:r.width/2-a.width/2,top:r.height/2-a.height/2,width:a.width,height:a.height}}function An(t,e){return Os(t,Fe(e))}function If(t){var e=t.event,n=t.coordinates,r=t.visibleArea,o=t.sizeRestrictions,s=t.getAreaRestrictions,a=t.positionRestrictions,d=t.adjustStencil,l=e.scale,u=e.move,h=N({},r),f=N({},n),m=1,p=1,C=l.factor&&Math.abs(l.factor-1)>.001;h=ye(h,{left:u.left||0,top:u.top||0});var S={stencil:{minimum:Math.max(o.minWidth?o.minWidth/f.width:0,o.minHeight?o.minHeight/f.height:0),maximum:Math.min(o.maxWidth?o.maxWidth/f.width:1/0,o.maxHeight?o.maxHeight/f.height:1/0,bt(f,a))},area:{maximum:bt(h,s({visibleArea:h,type:"resize"}))}};l.factor&&C&&(l.factor<1?(p=Math.max(l.factor,S.stencil.minimum))>1&&(p=1):l.factor>1&&(p=Math.min(l.factor,Math.min(S.area.maximum,S.stencil.maximum)))<1&&(p=1)),p&&(h=xe(h,p,l.center));var w=n.left-r.left,R=r.width+r.left-(n.width+n.left),O=n.top-r.top,L=r.height+r.top-(n.height+n.top);return h=ce(h=ye(h,Ct(h,{left:a.left!==void 0?a.left-w*p:void 0,top:a.top!==void 0?a.top-O*p:void 0,bottom:a.bottom!==void 0?a.bottom+L*p:void 0,right:a.right!==void 0?a.right+R*p:void 0})),s({visibleArea:h,type:"move"})),f.width=f.width*p,f.height=f.height*p,f.left=h.left+w*p,f.top=h.top+O*p,f=ce(f,In(Fe(h),a)),l.factor&&C&&d&&(l.factor>1?m=Math.min(S.area.maximum,l.factor)/p:l.factor<1&&(m=Math.max(f.height/h.height,f.width/h.width,l.factor/p)),m!==1&&(h=ye(h=ce(h=xe(h,m,l.factor>1?l.center:le(f)),s({visibleArea:h,type:"move"})),Rn(Ct(f,Fe(h)))))),{coordinates:f,visibleArea:h}}function Af(t){var e=t.aspectRatio,n=t.getAreaRestrictions,r=t.coordinates,o=t.visibleArea,s=t.sizeRestrictions,a=t.positionRestrictions,d=t.imageSize,l=t.previousImageSize,u=t.angle,h=N({},r),f=N({},o),m=Xe(le(N({left:0,top:0},l)),u);return(h=N(N({},We({sizeRestrictions:s,aspectRatio:e,width:h.width,height:h.height})),Xe(le(h),u))).left-=m.left-d.width/2+h.width/2,h.top-=m.top-d.height/2+h.height/2,f=xe(f,$n(f,n({visibleArea:f,type:"resize"}))),{coordinates:h=ce(h,a),visibleArea:f=ce(f=ye(f,wt(le(h),le(r))),n({visibleArea:f,type:"move"}))}}function vf(t){var e=t.flip,n=t.previousFlip,r=t.rotate,o=t.getAreaRestrictions,s=t.coordinates,a=t.visibleArea,d=t.imageSize,l=N({},s),u=N({},a),h=n.horizontal!==e.horizontal,f=n.vertical!==e.vertical;if(h||f){var m=Xe({left:d.width/2,top:d.height/2},-r),p=Xe(le(l),-r),C=Xe({left:h?m.left-(p.left-m.left):p.left,top:f?m.top-(p.top-m.top):p.top},r);l=ye(l,wt(C,le(l))),p=Xe(le(u),-r),u=ce(u=ye(u,wt(C=Xe({left:h?m.left-(p.left-m.left):p.left,top:f?m.top-(p.top-m.top):p.top},r),le(u))),o({visibleArea:u,type:"move"}))}return{coordinates:l,visibleArea:u}}function Hs(t){var e=t.directions,n=t.coordinates,r=t.positionRestrictions,o=r===void 0?{}:r,s=t.sizeRestrictions,a=t.preserveRatio,d=t.compensate,l=N({},e),u=Oe(n,l).width,h=Oe(n,l).height;u<0&&(l.left<0&&l.right<0?(l.left=-(n.width-s.minWidth)/(l.left/l.right),l.right=-(n.width-s.minWidth)/(l.right/l.left)):l.left<0?l.left=-(n.width-s.minWidth):l.right<0&&(l.right=-(n.width-s.minWidth))),h<0&&(l.top<0&&l.bottom<0?(l.top=-(n.height-s.minHeight)/(l.top/l.bottom),l.bottom=-(n.height-s.minHeight)/(l.bottom/l.top)):l.top<0?l.top=-(n.height-s.minHeight):l.bottom<0&&(l.bottom=-(n.height-s.minHeight)));var f=Ht(Oe(n,l),o);d&&(f.left&&f.left>0&&f.right===0?(l.right+=f.left,l.left-=f.left):f.right&&f.right>0&&f.left===0&&(l.left+=f.right,l.right-=f.right),f.top&&f.top>0&&f.bottom===0?(l.bottom+=f.top,l.top-=f.top):f.bottom&&f.bottom>0&&f.top===0&&(l.top+=f.bottom,l.bottom-=f.bottom),f=Ht(Oe(n,l),o));var m={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(Te.forEach(function(S){var w=f[S];w&&l[S]&&(m[S]=Math.max(0,1-w/l[S]))}),a){var p=Math.min.apply(null,Te.map(function(S){return m[S]}));p!==1/0&&Te.forEach(function(S){l[S]*=p})}else Te.forEach(function(S){m[S]!==1/0&&(l[S]*=m[S])});if(u=Oe(n,l).width,h=Oe(n,l).height,l.right+l.left&&(u>s.maxWidth?m.width=(s.maxWidth-n.width)/(l.right+l.left):u<s.minWidth&&(m.width=(s.minWidth-n.width)/(l.right+l.left))),l.bottom+l.top&&(h>s.maxHeight?m.height=(s.maxHeight-n.height)/(l.bottom+l.top):h<s.minHeight&&(m.height=(s.minHeight-n.height)/(l.bottom+l.top))),a){var C=Math.min(m.width,m.height);C!==1/0&&Te.forEach(function(S){l[S]*=C})}else m.width!==1/0&&gf.forEach(function(S){l[S]*=m.width}),m.height!==1/0&&yf.forEach(function(S){l[S]*=m.height});return l}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 Nf=Ae("vue-simple-handler"),Pf=Ae("vue-simple-handler-wrapper"),Fi={name:"SimpleHandler",components:{HandlerWrapper:Ns},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=(Ee(t={},this.horizontalPosition,!!this.horizontalPosition),Ee(t,this.verticalPosition,!!this.verticalPosition),Ee(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),Ee(t,"hover",this.hover),t);return{default:ee(Nf(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:ee(Pf(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"]};Fi.render=function(t,e,n,r,o,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 Vf=Ae("vue-simple-line"),zf=Ae("vue-simple-line-wrapper"),Oi={name:"SimpleLine",components:{LineWrapper:Ps},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:ee(Vf(Ee({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:ee(zf(Ee({},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"]};Oi.render=function(t,e,n,r,o,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 Li=Ae("vue-bounding-box"),Tf=["east","west",null],Ff=["south","north",null],qs={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 Fi}},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 Oi}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return Tf.forEach(function(e){Ff.forEach(function(n){if(e!==n){var r=Ms(e,n),o=r.name,s=r.classname;t.push({name:o,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,r=this.linesWrappersClasses;return{root:Li(),handlers:t,handlersWrappers:e,lines:n,linesWrappers:r}},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:ee(t.classes.lines.default,t.classes.lines[n.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:ee(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,r=this.height;return this.points.forEach(function(o){if(t.handlers[o.name]){var s={name:o.name,component:t.handlersComponent,class:ee(t.classes.handlers.default,t.classes.handlers[o.name]),wrapperClass:ee(t.classes.handlersWrappers.default,t.classes.handlersWrappers[o.name]),hoverClass:t.classes.handlers.hover,verticalDirection:o.verticalDirection,horizontalDirection:o.horizontalDirection,disabled:!t.resizable};if(n&&r){var a=o.horizontalDirection,d=o.verticalDirection,l=a==="east"?n:a==="west"?0:n/2,u=d==="south"?r:d==="north"?0:r/2;s.wrapperClass=Li("handler"),s.wrapperStyle={transform:"translate(".concat(l,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(s.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else s.wrapperClass=Li("handler",Ee({},o.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 r,o=t.shift(),s=o.left,a=o.top,d={left:0,right:0,top:0,bottom:0};e==="west"?d.left-=s:e==="east"&&(d.right+=s),n==="north"?d.top-=a:n==="south"&&(d.bottom+=a),!n&&e?r="width":n&&!e&&(r="height"),this.resizable&&this.$emit("resize",new ff(d,{allowedDirections:{left:e==="west"||!e,right:e==="east"||!e,bottom:n==="south"||!n,top:n==="north"||!n},preserveAspectRatio:t.nativeEvent&&t.nativeEvent.shiftKey,respectDirection:r}))}},emits:["resize","resize-end"]};qs.render=function(t,e,n,r,o,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(d){return s.onHandlerDrag(d,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[1]||(e[1]=function(d){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(d){return s.onHandlerDrag(d,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[2]||(e[2]=function(d){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var Of=Ae("vue-draggable-area"),Us={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:Of()}}},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()):vs({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,r=e.top;this.anchor={x:t.clientX-n,y:t.clientY-r}},processMove:function(t,e){var n=ct(e);if(this.touches.length){var r=this.$refs.container.getBoundingClientRect(),o=r.left,s=r.top;this.touches.length===1&&n.length===1&&this.$emit("move",new vi({left:n[0].clientX-(o+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"]};Us.render=function(t,e,n,r,o,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 Di(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 Lf(t){return new Promise(function(e,n){try{if(t)if(/^data:/i.test(t))e(function(l){l=l.replace(/^data:([^;]+);base64,/gim,"");for(var u=atob(l),h=u.length,f=new ArrayBuffer(h),m=new Uint8Array(f),p=0;p<h;p++)m[p]=u.charCodeAt(p);return f}(t));else if(/^blob:/i.test(t)){var r=new FileReader;r.onload=function(l){e(l.target.result)},s=t,a=function(l){r.readAsArrayBuffer(l)},(d=new XMLHttpRequest).open("GET",s,!0),d.responseType="blob",d.onload=function(){this.status!=200&&this.status!==0||a(this.response)},d.send()}else{var o=new XMLHttpRequest;o.onreadystatechange=function(){o.readyState===4&&(o.status===200||o.status===0?e(o.response):n("Warning: could not load an image to parse its orientation"),o=null)},o.onprogress=function(){o.getResponseHeader("content-type")!=="image/jpeg"&&o.abort()},o.withCredentials=!1,o.open("GET",t,!0),o.responseType="arraybuffer",o.send(null)}else n("Error: the image is empty")}catch(l){n(l)}var s,a,d})}function Ws(t){var e=t.rotate,n=t.flip,r=t.scaleX,o=t.scaleY,s="";return s+=" rotate("+e+"deg) ",s+=" scaleX("+r*(n.horizontal?-1:1)+") ",s+=" scaleY("+o*(n.vertical?-1:1)+") "}function Df(t){try{var e,n=new DataView(t),r=void 0,o=void 0,s=void 0,a=void 0;if(n.getUint8(0)===255&&n.getUint8(1)===216)for(var d=n.byteLength,l=2;l+1<d;){if(n.getUint8(l)===255&&n.getUint8(l+1)===225){s=l;break}l++}if(s&&(r=s+10,function(p,C,S){var w,R="";for(w=C,S+=C;w<S;w++)R+=String.fromCharCode(p.getUint8(w));return R}(n,s+4,4)==="Exif")){var u=n.getUint16(r);if(((o=u===18761)||u===19789)&&n.getUint16(r+2,o)===42){var h=n.getUint32(r+4,o);h>=8&&(a=r+h)}}if(a){for(var f=n.getUint16(a,o),m=0;m<f;m++)if(l=a+12*m+2,n.getUint16(l,o)===274){l+=8,e=n.getUint16(l,o),n.setUint16(l,1,o);break}}return e}catch{return null}}function _s(t,e){var n=e.getBoundingClientRect(),r=n.left,o=n.top,s={left:0,top:0},a=0;return t.forEach(function(d){s.left+=(d.clientX-r)/t.length,s.top+=(d.clientY-o)/t.length}),t.forEach(function(d){a+=vs({x:s.left,y:s.top},{x:d.clientX-r,y:d.clientY-o})}),{centerMass:s,spread:a,count:t.length}}var js={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=Ii(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 Dt({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=_s(e,this.$refs.container),r=this.oldGeometricProperties;r.count===n.count&&r.count>1&&this.$emit("resize",new Dt({left:r.centerMass.left-n.centerMass.left,top:r.centerMass.top-n.centerMass.top},{factor:r.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(),r=n.left,o=n.top,s=n.bottom,a=n.right;this.touches=ct(t.touches).filter(function(d){return d.clientX>r&&d.clientX<a&&d.clientY>o&&d.clientY<s}),this.oldGeometricProperties=_s(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(r){return!r.identifier||e.touches.find(function(o){return o.identifier===r.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,r=e.top,o=1+this.wheelResize.ratio*(a=t.deltaY||t.detail||t.wheelDelta,(d=+a)==0||As(d)?d:d>0?1:-1),s={left:t.clientX-n,top:t.clientY-r};this.$emit("resize",new Dt({},{factor:o,center:s})),this.touches.length||this.debouncedProcessEnd()}var a,d}},emits:["resize","move","transform-end"]};js.render=function(t,e,n,r,o,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 Hi={components:{TransformableImage:js},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"]};Hi.render=function(t,e,n,r,o,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(d){return t.$emit("move",d)}),onResize:e[2]||(e[2]=function(d){return t.$emit("resize",d)})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var Nn=Ae("vue-preview"),Gs={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:Nn({fill:this.fill}),wrapper:Nn("wrapper"),imageWrapper:Nn("image-wrapper"),image:ee(Nn("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,r=this.imageSize.height,o=Fs({width:n,height:r},e.rotate),s={width:"".concat(n,"px"),height:"".concat(r,"px"),left:"0px",top:"0px"},a={rotate:{left:(n-o.width)*e.scaleX/2,top:(r-o.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*r/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) ")+Ws(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()}}};Gs.render=function(t,e,n,r,o,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 Zs={components:{Preview:Gs},inheritAttrs:!1};Zs.render=function(t,e,n,r,o,s){var a=i.resolveComponent("preview");return i.openBlock(),i.createBlock(a,i.mergeProps(t.$attrs,{fill:!0}),null,16)};var qi=Ae("vue-rectangle-stencil"),Xs={name:"RectangleStencil",components:{StencilPreview:Zs,BoundingBox:qs,DraggableArea:Us},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Fi}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Oi}},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:ee(qi({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:ee(qi("preview"),this.previewClass),boundingBox:ee(qi("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,r=t.left,o=t.top,s={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(r,"px, ").concat(o,"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"]};Xs.render=function(t,e,n,r,o,s){var a=i.resolveComponent("stencil-preview"),d=i.resolveComponent("draggable-area"),l=i.resolveComponent("bounding-box");return i.openBlock(),i.createBlock("div",{class:s.classes.stencil,style:s.style},[i.createVNode(l,{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(d,{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 Hf=["transitions"],_e=Ae("vue-advanced-cropper"),Ys={name:"Cropper",components:{BackgroundWrapper:Hi},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return Xs}},backgroundWrapperComponent:{type:[Object,String],default:function(){return Hi}},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 bf.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,r=t.aspectRatio,o=t.positionRestrictions,s=t.sizeRestrictions,a=N(N({},n),{right:n.left+n.width,bottom:n.top+n.height}),d=e.params||{},l=N({},e.directions),u=d.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};s.widthFrozen&&(l.left=0,l.right=0),s.heightFrozen&&(l.top=0,l.bottom=0),Te.forEach(function(P){u[P]||(l[P]=0)});var h=Oe(a,l=Hs({coordinates:a,directions:l,sizeRestrictions:s,positionRestrictions:o})).width,f=Oe(a,l).height,m=d.preserveRatio?_(a):Vi(h/f,r);if(m){var p=d.respectDirection;if(p||(p=a.width>=a.height||m===1?"width":"height"),p==="width"){var C=h/m-a.height;if(u.top&&u.bottom){var S=l.top,w=l.bottom;l.bottom=vn(C,w,S),l.top=vn(C,S,w)}else u.bottom?l.bottom=C:u.top?l.top=C:u.right?l.right=0:u.left&&(l.left=0)}else if(p==="height"){var R=a.width-f*m;if(u.left&&u.right){var O=l.left,L=l.right;l.left=-vn(R,O,L),l.right=-vn(R,L,O)}else u.left?l.left=-R:u.right?l.right=-R:u.top?l.top=0:u.bottom&&(l.bottom=0)}l=Hs({directions:l,coordinates:a,sizeRestrictions:s,positionRestrictions:o,preserveRatio:!0,compensate:d.compensate})}return h=Oe(a,l).width,f=Oe(a,l).height,(m=d.preserveRatio?_(a):Vi(h/f,r))&&Math.abs(m-h/f)>.001&&Te.forEach(function(P){u[P]||(l[P]=0)}),Ti({event:new vi({left:-l.left,top:-l.top}),coordinates:{width:n.width+l.right+l.left,height:n.height+l.top+l.bottom,left:n.left,top:n.top},positionRestrictions:o})}},moveAlgorithm:{type:Function,default:Ti},initStretcher:{type:Function,default:function(t){var e=t.stretcher,n=t.imageSize,r=_(n);e.style.width=n.width+"px",e.style.height=e.clientWidth/r+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,n=t.coordinates,r=t.aspectRatio,o=t.sizeRestrictions,s=t.positionRestrictions,a=N(N({},n),We({width:n.width,height:n.height,aspectRatio:r,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,o.minHeight),minWidth:Math.min(e.width,o.minWidth)}}));return a=ce(a=ye(a,wt(le(n),le(a))),In(Fe(e),s))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.getAreaRestrictions,o=t.coordinates,s=N({},e);s.height=s.width/_(n),s.top+=(e.height-s.height)/2,(o.height-s.height>0||o.width-s.width>0)&&(s=xe(s,Math.max(o.height/s.height,o.width/s.width)));var a=Rn(Ct(o,Fe(s=xe(s,$n(s,r({visibleArea:s,type:"resize"}))))));return s.width<o.width&&(a.left=0),s.height<o.height&&(a.top=0),s=ce(s=ye(s,a),r({visibleArea:s,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.imageSize,o=t.imageRestriction,s=t.type,a={};return o==="fill-area"?a={left:0,top:0,right:r.width,bottom:r.height}:o==="fit-area"&&(_(n)>_(r)?(a={top:0,bottom:r.height},e&&s==="move"&&(e.width>r.width?(a.left=-(e.width-r.width)/2,a.right=r.width-a.left):(a.left=0,a.right=r.width))):(a={left:0,right:r.width},e&&s==="move"&&(e.height>r.height?(a.top=-(e.height-r.height)/2,a.bottom=r.height-a.top):(a.top=0,a.bottom=r.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({},Vs)}},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=Ai(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:Ai(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:re(this.minWidth)?0:Mn(this.minWidth),minHeight:re(this.minHeight)?0:Mn(this.minHeight),maxWidth:re(this.maxWidth)?1/0:Mn(this.maxWidth),maxHeight:re(this.maxHeight)?1/0:Mn(this.maxHeight)});if(t=function(r){var o=r.areaRestrictions,s=r.sizeRestrictions,a=r.boundaries,d=r.positionRestrictions,l=N(N({},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});d.left!==void 0&&d.right!==void 0&&(l.maxWidth=Math.min(l.maxWidth,d.right-d.left)),d.bottom!==void 0&&d.top!==void 0&&(l.maxHeight=Math.min(l.maxHeight,d.bottom-d.top));var u=zi(o),h=Ts(a,u);return u.width<1/0&&(!l.maxWidth||l.maxWidth>h.width)&&(l.maxWidth=Math.min(l.maxWidth,h.width)),u.height<1/0&&(!l.maxHeight||l.maxHeight>h.height)&&(l.maxHeight=Math.min(l.maxHeight,h.height)),l.minWidth>l.maxWidth&&(l.minWidth=l.maxWidth,l.widthFrozen=!0),l.minHeight>l.maxHeight&&(l.minHeight=l.maxHeight,l.heightFrozen=!0),l}({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=zi(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:_e(),image:ee(_e("image"),this.imageClass),stencil:_e("stencil"),boundaries:ee(_e("boundaries"),this.boundariesClass),stretcher:ee(_e("stretcher")),background:ee(_e("background"),this.backgroundClass),foreground:ee(_e("foreground"),this.foregroundClass),imageWrapper:ee(_e("image-wrapper")),cropperWrapper:ee(_e("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,n=t.height,r=t.left,o=t.top;return{width:e/this.coefficient,height:n/this.coefficient,left:(r-this.visibleArea.left)/this.coefficient,top:(o-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},r=W(W({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),o={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)")+Ws(r)};return this.transitionsOptions.enabled&&(o.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),o}},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=Ii(this.update,this.debounce),this.debouncedDisableTransitions=Ii(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]:{},r=n.transitions,o=r===void 0||r;this.onManipulateImage(new Dt({},{factor:1/t,center:e}),{normalize:!1,transitions:o})},move:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,o=r===void 0||r;this.onManipulateImage(new Dt({left:t||0,top:e||0}),{normalize:!1,transitions:o})},setCoordinates:function(t){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.autoZoom,o=r===void 0||r,s=n.transitions,a=s===void 0||s;this.$nextTick(function(){e.imageLoaded?(e.transitionsActive||(a&&e.enableTransitions(),e.coordinates=e.applyTransform(t),o&&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,r=e.sizeRestrictions,o=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>r.maxWidth?s.width=Math.floor(n.width):s.width<r.minWidth&&(s.width=Math.ceil(n.width)),s.height>r.maxHeight?s.height=Math.floor(n.height):s.height<r.minHeight&&(s.height=Math.ceil(n.height)),ce(s,o)}(W(W({},this.getPublicProperties()),{},{positionRestrictions:An(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,n,r){var o=this.autoZoomAlgorithm;o||(o=this.stencilSize?kf:this.autoZoom?Ef:xf);var s=o({event:{type:t,params:r},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:!zs(s.visibleArea,e)||!zs(s.coordinates,n)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n!==void 0&&n,o=uf(e,Hf),s=this.processAutoZoom(t,this.visibleArea,this.coordinates,o),a=s.visibleArea,d=s.coordinates,l=s.changed;r&&l&&this.enableTransitions(),this.visibleArea=a,this.coordinates=d,r&&l&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(e){var n=e.event,r=e.visibleArea,o=e.coefficient;if(n.type==="manipulateImage")return N(N({},n),{move:{left:n.move&&n.move.left?o*n.move.left:0,top:n.move&&n.move.top?o*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*o+r.left,top:n.scale.center.top*o+r.top}:null}});if(n.type==="resize"){var s=N(N({},n),{directions:N({},n.directions)});return Te.forEach(function(d){s.directions[d]*=o}),s}if(n.type==="move"){var a=N(N({},n),{directions:N({},n.directions)});return wf.forEach(function(d){a.directions[d]*=o}),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(d,l,u){var h=u.rotate,f=u.flip,m={width:l.naturalWidth,height:l.naturalHeight},p=Fs(m,h),C=d.getContext("2d");d.height=p.height,d.width=p.width,C.save();var S=Xe(le(N({left:0,top:0},m)),h);return C.translate(-(S.left-p.width/2),-(S.top-p.height/2)),C.rotate(h*Math.PI/180),C.translate(f.horizontal?m.width:0,f.vertical?m.height:0),C.scale(f.horizontal?-1:1,f.vertical?-1:1),C.drawImage(l,0,0,m.width,m.height),C.restore(),d}(this.$refs.sourceCanvas,e,this.imageTransforms):e,r=W({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),o=function(d){return d.find(function(l){return u=l,!Number.isNaN(parseFloat(u))&&isFinite(u);var u})},s=We({sizeRestrictions:{minWidth:o([r.width,r.minWidth])||0,minHeight:o([r.height,r.minHeight])||0,maxWidth:o([r.width,r.maxWidth])||1/0,maxHeight:o([r.height,r.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(r.maxArea&&s.width*s.height>r.maxArea){var a=Math.sqrt(r.maxArea/(s.width*s.height));s={width:Math.round(a*s.width),height:Math.round(a*s.height)}}return function(d,l,u,h,f){d.width=h?h.width:u.width,d.height=h?h.height:u.height;var m=d.getContext("2d");m.clearRect(0,0,d.width,d.height),f&&(f.imageSmoothingEnabled&&(m.imageSmoothingEnabled=f.imageSmoothingEnabled),f.imageSmoothingQuality&&(m.imageSmoothingQuality=f.imageSmoothingQuality),f.fillColor&&(m.fillStyle=f.fillColor,m.fillRect(0,0,d.width,d.height),m.save()));var p=u.left<0?-u.left:0,C=u.top<0?-u.top:0;m.drawImage(l,u.left+p,u.top+C,u.width,u.height,p*(d.width/u.width),C*(d.height/u.height),d.width,d.height)}(t,n,this.coordinates,s,r),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?Cf(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,r=this.visibleArea&&e?An(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return Sf({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:n,positionRestrictions:r,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?Rf:Mf);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var r=yt(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,o=this.defaultPosition||Bf,s=[r,function(a){var d=a.coordinates;return W({},yt(o)?o({coordinates:d,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 r={cropper:n,imageSize:t.imageSize};if(yt(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(r):t.defaultBoundaries==="fit"?t.boundaries=function(o){var s=o.cropper,a=o.imageSize,d=s.clientHeight,l=s.clientWidth,u=d,h=a.width*d/a.height;return h>l&&(h=l,u=a.height*l/a.width),{width:h,height:u}}(r):t.boundaries=function(o){var s=o.cropper;return{width:s.clientWidth,height:s.clientHeight}}(r),!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,r,o,s,a,d=t.defaultVisibleArea||$f;t.visibleArea=yt(d)?d({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,r=e.boundaries,o=e.getAreaRestrictions,s=N({},n),a=_(r),s.width/s.height!==a&&(s.height=s.width/a),ce(s,o({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(o){if($s(o))return!1;var s=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(o)||[],d={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},l=function(u){return u.port||((u.protocol||s.protocol)==="http"?80:433)};return!(!d.protocol&&!d.host&&!d.port||d.protocol&&d.protocol==s.protocol&&d.host&&d.host==s.host&&d.host&&l(d)==l(s))}(this.src)){var n=re(this.crossOrigin)?this.canvas:this.crossOrigin;n===!0&&(n="anonymous"),this.imageAttributes.crossOrigin=n||null}if(this.checkOrientation){var r=(t=this.src,new Promise(function(o){Lf(t).then(function(s){var a=Df(s);o(s?{source:t,arrayBuffer:s,orientation:a}:{source:t,arrayBuffer:null,orientation:null})}).catch(function(s){console.warn(s),o({source:t,arrayBuffer:null,orientation:null})})}));setTimeout(function(){r.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,r=t.arrayBuffer,o=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,r&&o&&o>1?Rs(n)||!$s(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([r])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(s){for(var a=[],d=new Uint8Array(s);d.length>0;){var l=d.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(l):l.slice())),d=d.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(r):this.imageAttributes.src=n,yt(this.defaultTransforms)?this.appliedImageTransforms=Di(this.defaultTransforms()):Bn(this.defaultTransforms)?this.appliedImageTransforms=Di(this.defaultTransforms):this.appliedImageTransforms=function(s){var a=Di({});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}(o),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,r=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,r),minHeight:Math.max(n.minHeight,r)},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,r=n!==void 0&&n,o=e.normalize,s=o===void 0||o;r&&this.enableTransitions();var a=If(W(W({},this.getPublicProperties()),{},{event:s?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),d=a.visibleArea,l=a.coordinates;this.visibleArea=d,this.coordinates=l,this.runAutoZoom("manipulateImage"),this.onChange(),r&&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,r=n===void 0?"move":n;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:r})},getAspectRatio:function(t){var e,n,r=this.stencilProps,o=r.aspectRatio,s=r.minAspectRatio,a=r.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var d=this.$refs.stencil.aspectRatios();e=d.minimum,n=d.maximum}if(re(e)&&(e=re(o)?s:o),re(n)&&(n=re(o)?a:o),!t&&(re(e)||re(n))){var l=this.getStencilSize(),u=l?_(l):null;re(e)&&(e=Is(u)?u:void 0),re(n)&&(n=Is(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,r=t.aspectRatio,Vi(_(o=yt(n)?n({boundaries:e,aspectRatio:r}):n),r)&&(o=We({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:o.width,height:o.height,aspectRatio:{minimum:r.minimum,maximum:r.maximum}})),(o.width>e.width||o.height>e.height)&&(o=We({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:o.width,height:o.height,aspectRatio:{minimum:_(o),maximum:_(o)}})),o;var t,e,n,r,o},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({},Vs)},flip:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,o=r===void 0||r;if(!this.transitionsActive){o&&this.enableTransitions();var s=W({},this.imageTransforms.flip),a=vf({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()}),d=a.visibleArea,l=a.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=d,this.coordinates=l,this.onChange(),o&&this.debouncedDisableTransitions()}},rotate:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n===void 0||n;if(!this.transitionsActive){r&&this.enableTransitions();var o=W({},this.imageSize);this.appliedImageTransforms.rotate+=t;var s=Af({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:o,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=s.visibleArea,d=s.coordinates,l=this.processAutoZoom("rotateImage",a,d);a=l.visibleArea,d=l.coordinates,this.visibleArea=a,this.coordinates=d,this.onChange(),r&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},qf={key:0,ref:"canvas",style:{display:"none"}},Uf={key:1,ref:"sourceCanvas",style:{display:"none"}};Ys.render=function(t,e,n,r,o,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:o.imageAttributes.crossOrigin,src:o.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:o.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,o.imageLoaded]]),n.canvas?(i.openBlock(),i.createBlock("canvas",qf,null,512)):i.createCommentVNode("",!0),n.canvas?(i.openBlock(),i.createBlock("canvas",Uf,null,512)):i.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const Wf={width:0,height:0,left:0,top:0};class Ui{constructor(){c(this,"id");c(this,"ratio",0);c(this,"src","");c(this,"coordinates",Wf)}setCoordinates(e){this.coordinates=e}getCoordinates(){return this.coordinates}static Create(e,n=0,r){const o=new Ui;return o.src=e,o.ratio=n,o.id=r,o}setRatio(e){this.ratio=e}getRatio(){return this.ratio}setSrc(e){this.src=e}getSrc(){return this.src}}const _f={class:"background-container"},jf={class:"dialog-footer"},Gf=x(i.defineComponent({__name:"ImageCropper",props:{src:{type:String,required:!0},ratio:{type:Number,required:!1,default:1}},emits:["crop","close","update:ratio"],setup(t,{emit:e}){const n=t,r=e,o=i.ref(n.ratio),s=i.ref(Ui.Create(n.src,n.ratio));s.value.setRatio(o.value);const a=()=>{s.value.setRatio(o.value)},d=i.ref(),l=async()=>{const u=d.value.getResult();u&&u.canvas.toBlob(h=>{var f;r("crop",{blob:h,src:(f=u.canvas)==null?void 0:f.toDataURL()}),r("update:ratio",s.value.coordinates.width/s.value.coordinates.height)})};return(u,h)=>(i.openBlock(),i.createElementBlock("div",_f,[i.createVNode(ki,{modelValue:i.unref(o),"onUpdate:modelValue":h[0]||(h[0]=f=>i.isRef(o)?o.value=f:null),label:"Задайте пропорции фото",width:"100%",margin:"0 0 20px 0",onChange:a},{default:i.withCtx(()=>h[2]||(h[2]=[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"]),i.createVNode(i.unref(Ys),{ref_key:"cropperRef",ref:d,src:i.unref(s).src,"stencil-props":{aspectRatio:i.unref(s).ratio},style:{"max-height":"50vh","min-height":"50vh"},onChange:h[1]||(h[1]=f=>i.unref(s).setCoordinates(f.coordinates))},null,8,["src","stencil-props"]),i.createElementVNode("div",jf,[i.createVNode(Sn,{skin:"text",type:"primary",text:"Сохранить",onClick:l})])]))}}),[["__scopeId","data-v-7b32def2"]]),Zf=x(i.defineComponent({__name:"IconUploaderChange",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":"#uploader-change"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",id:"uploader-change"},[i.createElementVNode("path",{d:"M12.825 15.783C12.175 15.787 11.5393 15.7173 10.918 15.574C10.2967 15.4307 9.762 15.1347 9.314 14.686C8.95467 14.3273 8.678 13.9173 8.484 13.456C8.28933 12.9947 8.192 12.5113 8.192 12.006C8.192 11.788 8.207 11.5807 8.237 11.384C8.26633 11.1867 8.31867 10.9873 8.394 10.786C8.43533 10.6633 8.43133 10.5437 8.382 10.427C8.33267 10.3103 8.25467 10.2293 8.148 10.184C8.038 10.1393 7.92567 10.1427 7.811 10.194C7.69633 10.2453 7.61833 10.3327 7.577 10.456C7.49367 10.706 7.428 10.9593 7.38 11.216C7.332 11.472 7.308 11.7333 7.308 12C7.308 12.628 7.42733 13.227 7.666 13.797C7.90533 14.367 8.24533 14.8723 8.686 15.313C9.20067 15.8437 9.81667 16.202 10.534 16.388C11.2513 16.5747 11.9797 16.6697 12.719 16.673L11.756 17.637C11.67 17.723 11.6237 17.8243 11.617 17.941C11.6103 18.0577 11.6567 18.1653 11.756 18.264C11.8553 18.3627 11.9597 18.412 12.069 18.412C12.1783 18.412 12.283 18.3627 12.383 18.264L13.906 16.741C14.0673 16.579 14.148 16.3903 14.148 16.175C14.148 15.9597 14.0673 15.7713 13.906 15.61L12.383 14.087C12.2963 14.0003 12.195 13.954 12.079 13.948C11.9623 13.9413 11.8547 13.9877 11.756 14.087C11.6573 14.1863 11.608 14.2907 11.608 14.4C11.608 14.5093 11.6573 14.614 11.756 14.714L12.825 15.783ZM11.189 8.212C11.839 8.212 12.4753 8.28333 13.098 8.426C13.7213 8.56867 14.2573 8.86433 14.706 9.313C15.0647 9.67233 15.3413 10.0827 15.536 10.544C15.7307 11.0053 15.8277 11.4887 15.827 11.994C15.827 12.212 15.8123 12.4193 15.783 12.616C15.7537 12.8127 15.701 13.0117 15.625 13.213C15.5843 13.3363 15.5887 13.4573 15.638 13.576C15.6873 13.6947 15.765 13.7763 15.871 13.821C15.9817 13.8657 16.0943 13.8657 16.209 13.821C16.3237 13.7763 16.4013 13.6923 16.442 13.569C16.5253 13.319 16.5913 13.0617 16.64 12.797C16.688 12.5323 16.712 12.2667 16.712 12C16.712 11.372 16.5943 10.773 16.359 10.203C16.1237 9.633 15.7837 9.12567 15.339 8.681C14.8203 8.14967 14.2023 7.79233 13.485 7.609C12.7683 7.425 12.04 7.333 11.3 7.333L12.27 6.363C12.3513 6.277 12.3953 6.17567 12.402 6.059C12.4087 5.94233 12.3627 5.83467 12.264 5.736C12.1653 5.63733 12.0607 5.58833 11.95 5.589C11.8393 5.58967 11.735 5.63867 11.637 5.736L10.114 7.26C9.952 7.422 9.871 7.61067 9.871 7.826C9.871 8.04133 9.952 8.22967 10.114 8.391L11.637 9.914C11.723 10.0007 11.8243 10.047 11.941 10.053C12.0577 10.059 12.1653 10.013 12.264 9.915C12.3627 9.817 12.412 9.71233 12.412 9.601C12.412 9.48967 12.3627 9.38533 12.264 9.288L11.189 8.212ZM12 21C10.7573 21 9.58867 20.7633 8.494 20.29C7.39933 19.816 6.447 19.174 5.637 18.364C4.82633 17.5533 4.18433 16.6007 3.711 15.506C3.237 14.4113 3 13.2427 3 12C3 10.7573 3.23667 9.58867 3.71 8.494C4.18333 7.39933 4.82567 6.447 5.637 5.637C6.44833 4.827 7.40067 4.18467 8.494 3.71C9.58933 3.23667 10.758 3 12 3C13.242 3 14.4107 3.23667 15.506 3.71C16.6007 4.184 17.553 4.82633 18.363 5.637C19.1737 6.447 19.8157 7.39933 20.289 8.494C20.763 9.58933 21 10.758 21 12C21 13.242 20.7633 14.4107 20.29 15.506C19.816 16.6007 19.174 17.553 18.364 18.363C17.5533 19.1737 16.6007 19.8157 15.506 20.289C14.4113 20.763 13.2427 21 12 21ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-b1844023"]]),Xf=x(i.defineComponent({__name:"IconUploaderDel",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":"#uploader-del"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",id:"uploader-del"},[i.createElementVNode("path",{d:"M7.616 20.0005C7.168 20.0005 6.78667 19.8431 6.472 19.5285C6.15733 19.2138 6 18.8328 6 18.3855V6.00047H5V5.00047H9V4.23047H15V5.00047H19V6.00047H18V18.3855C18 18.8455 17.846 19.2298 17.538 19.5385C17.23 19.8471 16.8453 20.0011 16.384 20.0005H7.616ZM17 6.00047H7V18.3855C7 18.5648 7.05767 18.7121 7.173 18.8275C7.28833 18.9428 7.436 19.0005 7.616 19.0005H16.385C16.5383 19.0005 16.6793 18.9365 16.808 18.8085C16.9367 18.6805 17.0007 18.5391 17 18.3845V6.00047ZM9.808 17.0005H10.808V8.00047H9.808V17.0005ZM13.192 17.0005H14.192V8.00047H13.192V17.0005Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-be789ad0"]]),Yf=x(i.defineComponent({__name:"IconUploaderPlus",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":"#uploader-plus"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25",id:"uploader-plus"},[i.createElementVNode("path",{d:"M8 12H12V8H13V12H17V13H13V17H12V13H8V12ZM12.5 3C15.0196 3 17.4359 4.00089 19.2175 5.78249C20.9991 7.56408 22 9.98044 22 12.5C22 15.0196 20.9991 17.4359 19.2175 19.2175C17.4359 20.9991 15.0196 22 12.5 22C9.98044 22 7.56408 20.9991 5.78249 19.2175C4.00089 17.4359 3 15.0196 3 12.5C3 9.98044 4.00089 7.56408 5.78249 5.78249C7.56408 4.00089 9.98044 3 12.5 3ZM12.5 4C10.2457 4 8.08365 4.89553 6.48959 6.48959C4.89553 8.08365 4 10.2457 4 12.5C4 14.7543 4.89553 16.9163 6.48959 18.5104C8.08365 20.1045 10.2457 21 12.5 21C13.6162 21 14.7215 20.7801 15.7528 20.353C16.7841 19.9258 17.7211 19.2997 18.5104 18.5104C19.2997 17.7211 19.9258 16.7841 20.353 15.7528C20.7801 14.7215 21 13.6162 21 12.5C21 10.2457 20.1045 8.08365 18.5104 6.48959C16.9163 4.89553 14.7543 4 12.5 4Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-54113724"]]),Jf={key:0},Qf=["src"],Kf={class:"tools-button"},em={key:1},tm=["id"],Js=x(i.defineComponent({__name:"PUploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{type:Pe,required:!0},height:{type:Number,default:150},emitCrop:{type:Boolean,default:!1},ratio:{type:Number,required:!1,default:1}},emits:["crop","removeFile","update:ratio"],setup(t,{emit:e}){const n=t,r=e,o=i.ref(void 0),s=me.GUID(),a=i.ref(!1),d=i.ref(),l=i.ref(n.ratio),u=i.ref(""),h=()=>{o.value=void 0,l.value=1,r("update:ratio",1),r("removeFile"),m=document.getElementById(s),m.value=""},f=w=>{n.fileInfo.setFile(w),n.fileInfo.fileSystemPath&&(o.value=n.fileInfo),a.value=!1,r("crop")};i.onBeforeMount(()=>{n.fileInfo.fileSystemPath&&(o.value=n.fileInfo,o.value.url=n.fileInfo.getFileUrl())});let m=null;i.onMounted(()=>{document.getElementById("drop-area")&&(m=document.getElementById(s))});const p=()=>{m&&m.click()},C=w=>{u.value=w.url,a.value=!0},S=()=>{if(!m||!m.files||!m.files.length)return;const w=m.files[0];w.url=URL.createObjectURL(w),o.value=w,n.fileInfo.uploadNewFile(w),n.withCrop&&C(o.value)};return i.watch(l,w=>{r("update:ratio",w)}),(w,R)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:"drop-area",class:"img-container",style:i.normalizeStyle({width:t.height*t.ratio+"px",height:t.height+"px"})},[i.unref(o)?(i.openBlock(),i.createElementBlock("div",Jf,[i.createElementVNode("div",{class:"img-block",style:i.normalizeStyle({width:t.ratio<.66?t.height*.66+"px":t.height*t.ratio+"px",height:t.height+"px"})},[i.createElementVNode("img",{src:i.unref(o).url,alt:"upload-image"},null,8,Qf)],4),i.createElementVNode("div",Kf,[i.createElementVNode("div",{class:"ins",style:i.normalizeStyle({width:t.ratio<.66?t.height*.66+"px":t.height*t.ratio+"px",height:t.height+"px"})},[i.createElementVNode("div",{class:"change",onClick:R[0]||(R[0]=O=>C(i.unref(o)))},[i.createVNode(Zf,{margin:"0 10px 0 0",size:"40px"})]),i.createElementVNode("div",{claSS:"del",onClick:R[1]||(R[1]=O=>h())},[i.createVNode(Xf,{size:"40px"})])],4)])])):(i.openBlock(),i.createElementBlock("div",em,[i.createElementVNode("div",{class:"add-button",style:i.normalizeStyle({width:t.height*t.ratio-2+"px",height:t.height-2+"px"}),onClick:p},[i.createVNode(Yf,{size:"40px"})],4)]))],4),i.createElementVNode("input",{id:i.unref(s),ref_key:"uploader",ref:d,hidden:"",type:"file",onChange:S},null,40,tm),i.createVNode(Mi,{show:i.unref(a),title:"Настройка изображения","max-height":"90vh",top:"5vh"},{default:i.withCtx(()=>[i.createVNode(Gf,{ratio:i.unref(l),"onUpdate:ratio":R[2]||(R[2]=O=>i.isRef(l)?l.value=O:null),src:i.unref(u),onCrop:f,onClose:R[3]||(R[3]=O=>a.value=!1)},null,8,["ratio","src"])]),_:1},8,["show"])],64))}}),[["__scopeId","data-v-93ebb6be"]]),nm=["id"],im=["for"],rm={class:"left-field"},om=["href","download"],sm={key:1,class:"text-field__input"},am={class:"right-field"},lm=i.defineComponent({__name:"UploaderFile",props:{fileInfo:{type:Object,required:!1,default:new Pe},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,r=e,o=me.GUID(),s=me.GUID(),a=()=>{const u=document.getElementById(o);if(!u.files)return;const h=u.files[0];if(h){if(!l(h.name)){pe.Error("Загруженный файл должен быть в формате pdf, jpg или jpeg");return}n.fileInfo.uploadAndSetFile(h),r("upload",n.fileInfo)}},d=()=>{n.fileInfo.clearFile(),r("remove",n.fileInfo)};i.onMounted(()=>{const u=document.getElementById(s);u&&(u.onclick=()=>{var h;return(h=document.getElementById(o))==null?void 0:h.click()})});const l=u=>{let h=Xr.Get(u);return!!n.formats.includes(h.toLowerCase())};return(u,h)=>{const f=i.resolveComponent("PString"),m=i.resolveComponent("PFlex"),p=i.resolveComponent("PButton");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("input",{id:i.unref(o),type:"file",hidden:"",onChange:a},null,40,nm),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,im)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",rm,[i.createVNode(m,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,om),i.createVNode(p,{skin:"text",type:"del",onClick:d},{default:i.withCtx(()=>[i.createVNode(En,{size:"20px",margin:"0 5px"})]),_:1})],4)):(i.openBlock(),i.createElementBlock("div",sm,[i.createVNode(f,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),i.createElementVNode("div",am,[i.createVNode(p,{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)}}}),Qs=x(lm,[["__scopeId","data-v-e14d4836"]]),cm={class:"container"},dm={key:0,class:"result"},um={class:"list"},hm=["onClick"],Ks=x(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,r=t,o=i.ref(r.modelValue),s=i.ref([]);async function a(){n("input",o.value),await d()}async function d(){r.searchFunc&&(s.value=await r.searchFunc(o.value))}async function l(u){n("select",u)}return(u,h)=>{const f=i.resolveComponent("IconSearch"),m=i.resolveComponent("PInput");return i.openBlock(),i.createElementBlock("div",cm,[i.createVNode(m,{modelValue:i.unref(o),"onUpdate:modelValue":h[0]||(h[0]=p=>i.isRef(o)?o.value=p:null),placeholder:"Найти",onInput:a},{right:i.withCtx(()=>[i.createVNode(f)]),_:1},8,["modelValue"]),i.unref(o)?(i.openBlock(),i.createElementBlock("div",dm,[i.createElementVNode("ul",um,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),p=>(i.openBlock(),i.createElementBlock("li",{key:p.value,onClick:C=>l(p)},i.toDisplayString(p.label),9,hm))),128))])])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-67b698bb"]]),fm={class:"footer"},ea=x(i.defineComponent({__name:"PDialog",setup(t){const e=i.computed(()=>{switch(qe.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,r)=>{const o=i.resolveComponent("MessageBody"),s=i.resolveComponent("PButton");return i.openBlock(),i.createBlock(i.Transition,{name:"fade"},{default:i.withCtx(()=>[i.unref(qe).IsVisible()?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e))},[i.createVNode(o,{title:i.unref(qe).GetTitle(),text:i.unref(qe).GetText()},null,8,["title","text"]),i.createElementVNode("div",fm,[i.createVNode(s,{type:"primary",text:i.unref(qe).GetConfirmButtonText(),margin:"10px 0 0 0",onClick:r[0]||(r[0]=a=>i.unref(qe).Submit())},null,8,["text"]),i.createVNode(s,{type:"warning",text:i.unref(qe).GetCancelButtonText(),margin:"10px 0 0 0",onClick:r[1]||(r[1]=a=>i.unref(qe).Cancel())},null,8,["text"])])],2)):i.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-aa85ea7a"]]),ta=x(i.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{};return(r,o)=>{const s=i.resolveComponent("PInput");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{modelValue:e.value.number,"onUpdate:modelValue":o[0]||(o[0]=a=>e.value.number=a),onBlur:n},null,8,["modelValue"]),i.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":o[1]||(o[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-51bf3f08"]]),mm={};function pm(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 na=x(mm,[["render",pm],["__scopeId","data-v-0f1f2f84"]]),gm={style:{display:"flex","justify-content":"center",width:"100%"}},ym={class:"pag-number"},wm={class:"pag-ul"},bm={key:2},ia=x(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,r=m=>m?"active":"neutral",o=m=>m?"not-active":"neutral",s=v.Paginator,a=i.ref(!1),d=i.ref(!1);s.count=n.store.Count;const l=async m=>{if(m!==s.curPage&&(m<1&&(m=1),m>s.pagesCount()&&(m=s.pagesCount()),!n.showConfirm))return await u(m)},u=async(m,p)=>{s.setCurPage(m),$t.Get().p.offset=(m-1)*s.limit,await n.store.FTSP(),f()},h=i.computed(()=>{const m=s.pagesCount();return m<8?Ve.GenerateNumsRange(2,m-1).filter(p=>p<m&&p>1):Ve.GenerateNumsRange(s.curPage-2,s.curPage+3).filter(p=>p<m&&p>1)}),f=()=>{const m=document.querySelector(".el-table__body-wrapper"),p=document.querySelector("#list");m?m.scrollTo({top:0}):p&&p.scrollTo({top:0})};return i.onBeforeUnmount(()=>{$t.Get().p.drop()}),(m,p)=>{const C=i.resolveComponent("ArrowLeft"),S=i.resolveComponent("PButton"),w=i.resolveComponent("DoubleArrowLeft"),R=i.resolveComponent("EllipsisSvg"),O=i.resolveComponent("DoubleArrowRight"),L=i.resolveComponent("ArrowRight");return i.openBlock(),i.createElementBlock("div",gm,[i.createElementVNode("div",{class:"pag-container",style:i.normalizeStyle({justifyContent:t.justifyContent})},[i.createElementVNode("div",ym,[i.createVNode(S,{skin:"pag",type:o(i.unref(s).curPage===1),onClick:p[0]||(p[0]=P=>l(i.unref(s).curPage-1))},{default:i.withCtx(()=>[i.createVNode(C)]),_:1},8,["type"]),i.createElementVNode("ul",wm,[i.createElementVNode("li",null,[i.createVNode(S,{skin:"pag",type:r(i.unref(s).curPage===1),text:"1",onClick:p[1]||(p[1]=P=>l(1))},null,8,["type"])]),i.unref(s).pagesCount()>8&&i.unref(s).curPage>4?(i.openBlock(),i.createElementBlock("li",{key:0,onMouseenter:p[3]||(p[3]=P=>a.value=!0),onMouseleave:p[4]||(p[4]=P=>a.value=!1)},[i.createVNode(S,{skin:"pag",type:"neutral",onClick:p[2]||(p[2]=P=>l(i.unref(s).curPage-5))},{default:i.withCtx(()=>[i.unref(a)?(i.openBlock(),i.createBlock(w,{key:0})):(i.openBlock(),i.createBlock(R,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(h),P=>(i.openBlock(),i.createElementBlock("li",{key:P},[i.createVNode(S,{skin:"pag",type:r(P===i.unref(s).curPage),text:P,onClick:j=>l(P)},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:p[6]||(p[6]=P=>d.value=!0),onMouseleave:p[7]||(p[7]=P=>d.value=!1)},[i.createVNode(S,{skin:"pag",type:"neutral",onClick:p[5]||(p[5]=P=>l(i.unref(s).curPage+5))},{default:i.withCtx(()=>[i.unref(d)?(i.openBlock(),i.createBlock(O,{key:0})):(i.openBlock(),i.createBlock(R,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),i.unref(s).pagesCount()>1?(i.openBlock(),i.createElementBlock("li",bm,[i.createVNode(S,{skin:"pag",type:r(i.unref(s).pagesCount()===i.unref(s).curPage),text:i.unref(s).pagesCount(),onClick:p[8]||(p[8]=P=>l(i.unref(s).pagesCount()))},null,8,["type","text"])])):i.createCommentVNode("",!0)]),i.createVNode(S,{skin:"pag",type:o(i.unref(s).curPage===i.unref(s).pagesCount()),onClick:p[9]||(p[9]=P=>l(i.unref(s).curPage+1))},{default:i.withCtx(()=>[i.createVNode(L)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-ad150339"]]),ra=x(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,r=e,o=i.ref(n.modelValue),s=i.ref(),a=ro.SearchModel();i.watch(()=>n.focus,()=>{n.focus&&setTimeout(()=>{s.value.focus(),o.value=""},500)});const d=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(m=>m.key===n.keyValue);return f&&(a.searchGroup=f),a.searchObjects},l=async h=>{r("select",h),o.value=""},u=h=>{r("input",h),h.length===0&&r("input","")};return(h,f)=>{const m=i.resolveComponent("PAutocomplete");return i.openBlock(),i.createBlock(m,{ref_key:"searchForm",ref:s,modelValue:i.unref(o),"onUpdate:modelValue":f[0]||(f[0]=p=>i.isRef(o)?o.value=p:null),"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:t.placeholder,"search-func":d,"trigger-on-focus":t.showSuggestions,suggestions:i.unref(a).searchObjects,onSelect:l,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-ed43b642"]]),Cm={class:"mainblock-body"},Sm={class:"mainblock-footer"},oa=x(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",Cm,[i.renderSlot(e.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",Sm,[i.renderSlot(e.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-367c3367"]]),km={class:"right-slider-content"},Em={class:"right-slider-content-header"},xm={class:"right-slider-content-box"},Bm={class:"right-slider-button"},sa=x(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,r=e,o=i.ref(!1);i.watch(()=>n.toggle,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("toggle",a)};return(a,d)=>{const l=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",{class:"right-slider",style:i.normalizeStyle({marginRight:i.unref(o)?`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`:"0",width:t.sliderOnWidth})},[i.createElementVNode("div",{class:"click-line",onClick:d[0]||(d[0]=u=>s(!i.unref(o)))},[i.unref(o)?(i.openBlock(),i.createBlock(l,{key:0,string:t.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(l,{key:1,string:t.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),i.createElementVNode("div",km,[i.createElementVNode("div",Em,[i.renderSlot(a.$slots,"header",{},void 0,!0)]),i.createElementVNode("div",xm,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",Bm,[i.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-262b1c53"]]),Mm={class:"mainblock"},Rm={class:"body-block"},$m={class:"tab-block"},aa=x(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,r=e,o=i.ref(!1),s=i.ref(window.matchMedia("(max-width: 768px)").matches),a=l=>{r("toggle",l)},d=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}),o.value=!0}),(l,u)=>(i.openBlock(),i.createElementBlock("div",Mm,[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=>d.value=!0),onMouseleave:u[2]||(u[2]=h=>d.value=!1)},[i.createElementVNode("div",{class:"icon-block",style:i.normalizeStyle({transform:i.unref(d)?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(l.$slots,"icon",{},void 0,!0)],4)],36),i.createElementVNode("div",{class:"slider-info",style:i.normalizeStyle({width:`calc(${t.sliderOnWidth} - ${t.sliderOffWidth})`})},[i.renderSlot(l.$slots,"slider-body",{},void 0,!0)],4)],4),i.createElementVNode("div",Rm,[i.renderSlot(l.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",$m,[i.renderSlot(l.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-0cfd77ce"]]),Im=["label","value"],la=x(i.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(t,{emit:e}){const n={[he.String]:"Текстовый ответ",[he.Text]:"Развёрнутый текстовый ответ",[he.Number]:"Числовой ответ",[he.Date]:"Ответ в виде даты",[he.Radio]:"Выбор одного из вариантов",[he.Set]:"Выбор нескольких вариантов",[he.File]:"Ответ в виде файла",[he.MatrixRadio]:"Матрица с одним выбором",[he.MatrixSet]:"Матрица с несколькими выборами"},r=e,o=s=>{r("select",s)};return(s,a)=>{const d=i.resolveComponent("PString"),l=i.resolveComponent("PSelect");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(d,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),i.createVNode(l,{"model-value":t.selectedType,placeholder:"Вид ответа",onChange:o},{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,Im)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-36a59e2b"]]),Am=["label","value"],ca=x(i.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=i.ref(!1),r=e,o=i.ref();i.onBeforeMount(()=>{n.value=!0,o.value=Ze.GetDefault()});const s=async d=>{o.value=d??Ze.GetDefault(),r("load")},a=async d=>{await s(d)};return(d,l)=>{var h;const u=i.resolveComponent("PSelect");return i.unref(n)?(i.openBlock(),i.createBlock(u,{key:0,modelValue:i.unref(o),"onUpdate:modelValue":l[0]||(l[0]=f=>i.isRef(o)?o.value=f:null),"popper-append-to-body":!1,clearable:!((h=i.unref(o))!=null&&h.default),"value-key":"label",onChange:a,onClear:l[1]||(l[1]=f=>a())},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Ze).Get(),(f,m)=>(i.openBlock(),i.createElementBlock("option",{key:m,label:f.label,value:f},null,8,Am))),128))]),_:1},8,["modelValue","clearable"])):i.createCommentVNode("",!0)}}}),[["__scopeId","data-v-fce97645"]]),vm=["label","value"],da=x(i.defineComponent({__name:"SortSelect",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=e,r=i.ref();i.onBeforeMount(()=>{r.value=Ze.GetDefault()});const o=async a=>{a||(r.value=Ze.GetDefault()),n("load")},s=async a=>{await o(a)};return(a,d)=>{var u;const l=i.resolveComponent("PSelect");return i.openBlock(),i.createBlock(l,{modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=h=>i.isRef(r)?r.value=h:null),"popper-append-to-body":!1,clearable:!((u=i.unref(r))!=null&&u.default),"value-key":"label",onChange:s},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Ze).Get(),(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,label:h.label,value:h},null,8,vm))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-36c9226a"]]),Nm={class:"switch-container"},Pm={class:"line"},Vm={class:"line"},ua=x(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,r={background:"inherit",border:"1px solid #c4c4c4"},o=()=>n.firstModel.valueEq(u.value)?void 0:r,s=()=>u.value?r:void 0,a=()=>n.secondModel.valueEq(u.value)?void 0:r,d=f=>{var p;return{color:(p=u.value)!=null&&p.valueEq(f)?"#006bb4":"#B0A4C0"}},l=e,u=i.ref(void 0),h=async f=>{var m;(m=u.value)!=null&&m.valueEq(f)||(u.value=f,l("load"))};return(f,m)=>{const p=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",Nm,[i.createElementVNode("div",Pm,[i.createVNode(p,{string:t.firstModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(d(t.firstModel)),onClick:m[0]||(m[0]=C=>h(t.firstModel))},null,8,["string","style"]),i.createVNode(p,{string:"Все","font-size":"12px",padding:"0",style:i.normalizeStyle(d()),onClick:m[1]||(m[1]=C=>h())},null,8,["style"]),i.createVNode(p,{string:t.secondModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(d(t.secondModel)),onClick:m[2]||(m[2]=C=>h(t.secondModel))},null,8,["string","style"])]),i.createElementVNode("div",Vm,[i.createElementVNode("div",{class:i.normalizeClass(["switch-knob1",{active:t.firstModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(o()),onClick:m[3]||(m[3]=C=>h(t.firstModel))},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob2",{active:!i.unref(u)}]),style:i.normalizeStyle(s()),onClick:m[4]||(m[4]=C=>h())},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob3",{active:t.secondModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(a()),onClick:m[5]||(m[5]=C=>h(t.secondModel))},null,6),m[6]||(m[6]=i.createElementVNode("div",{class:"switch-axis"},null,-1)),m[7]||(m[7]=i.createElementVNode("div",{class:"switch-axis-dash1"},null,-1)),m[8]||(m[8]=i.createElementVNode("div",{class:"switch-axis-dash2"},null,-1)),m[9]||(m[9]=i.createElementVNode("div",{class:"switch-axis-dash3"},null,-1))])])}}}),[["__scopeId","data-v-ecff678c"]]),zm={},Tm={class:"flex"};function Fm(t,e){return i.openBlock(),i.createElementBlock("div",Tm,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const ha=x(zm,[["render",Fm],["__scopeId","data-v-5023d414"]]),fa=x(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),r=e,o=async()=>{r("submit"),n.value=!n.value};return(s,a)=>{const d=i.resolveComponent("PString"),l=i.resolveComponent("PButton"),u=i.resolveComponent("GridContainer"),h=i.resolveComponent("InfoItem");return i.openBlock(),i.createBlock(h,{title:t.title,icon:"edit-title","with-hover":!0,close:i.unref(n),width:"100%",onKeyupEnter:o},{"open-inside-content":i.withCtx(()=>[i.createVNode(u,{"custom-class":"grid"},{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default",{},void 0,!0),i.createVNode(l,{type:"admin",color:"blue",text:"Сохранить",onClick:o})]),_:3})]),default:i.withCtx(()=>[t.content.length>0?(i.openBlock(),i.createBlock(d,{key:0,string:t.content},null,8,["string"])):(i.openBlock(),i.createBlock(d,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-0794596f"]]),Om={class:"top-slider-content"},Lm={class:"center"},ma=x(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,r=e,o=i.ref(!0);i.watch(()=>n.toggle,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("toggle",a)};return(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[d[0]||(d[0]=i.withModifiers(l=>o.value=!0,["prevent"])),d[1]||(d[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(o)?`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`:"0",height:t.sliderOnHeight}),onClick:d[3]||(d[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Om,[i.createElementVNode("div",Lm,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:d[2]||(d[2]=l=>s(!i.unref(o)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-683131f5"]]),Dm={install:function(t){t.component("PButton",Sn),t.component("PCheckBox",Co),t.component("PDatePicker",So),t.component("PFlex",ko),t.component("PInput",Si),t.component("PInputDate",$o),t.component("PInputNumber",Io),t.component("PLeftSlider",Ao),t.component("PList",vo),t.component("PListItem",No),t.component("PRadio",Po),t.component("PRightSlider",Vo),t.component("PSelect",ki),t.component("PSticky",zo),t.component("PString",Ei),t.component("PTextarea",Fo),t.component("PTopSlider",Oo),t.component("IconDownload",Yo),t.component("IconFilter",Jo),t.component("ArrowLeft",os),t.component("ArrowRight",ss),t.component("DoubleArrowLeft",as),t.component("DoubleArrowRight",ls),t.component("EllipsisSvg",cs),t.component("IconArrowLeft",Qo),t.component("IconCheckDefault",bi),t.component("IconClose",En),t.component("IconEdit",Ko),t.component("IconEmail",es),t.component("IconMove",ts),t.component("IconPhone",ns),t.component("PTable",To),t.component("IconSearch",is),t.component("IconSelectArrow",rs),t.component("CollapseContainer",fs),t.component("CollapseItem",ms),t.component("VerticalCollapseContainer",ps),t.component("PAdd",gs),t.component("PContainer",ys),t.component("PContainerStickyHead",ws),t.component("PDel",bs),t.component("PTabs",Es),t.component("UploaderFile",Qs),t.component("AuthForm",Ss),t.component("PModal",Mi),t.component("PageNotFound",ai),t.component("AdaptiveContainer",yo),t.component("AdaptiveContainerHorizontal",wo),t.component("AdminGallery",bo),t.component("AuthModal",Lo),t.component("CarouselImages",Do),t.component("ContextWindow",Ho),t.component("DateInputRangeV2",Uo),t.component("DateInputRange",qo),t.component("DropList",Wo),t.component("FilterCheckbox",_o),t.component("FiltersButtonsSelect",jo),t.component("FilterSelect",Go),t.component("FTSPPanel",Zo),t.component("GeneralItem",Xo),t.component("GridContainer",xi),t.component("InfoItem",ds),t.component("InfoItemSelectButtons",us),t.component("LeftRightContainer",hs),t.component("MessageBody",Bi),t.component("PAutocomplete",Ks),t.component("PDialog",ea),t.component("PhoneForm",ta),t.component("PLoader",na),t.component("PNotify",Cs),t.component("PPagination",ia),t.component("RemoteSearch",ra),t.component("ResearcheContainer",oa),t.component("RightSliderContainer",sa),t.component("RightTabsContainer",aa),t.component("SelectValueType",la),t.component("PNameEdit",ks),t.component("SortList",ca),t.component("SortSelect",da),t.component("Switch3Pos",ua),t.component("ThemeWrapper",ha),t.component("ToggleInfoItem",fa),t.component("TopSliderContainer",ma),t.component("PUploaderImage",Js)}},Hm=["PF","PFM"];E.AdaptiveContainer=yo,E.AdaptiveContainerHorizontal=wo,E.AdminGallery=bo,E.ArrowLeft=os,E.ArrowRight=ss,E.Auth=Ne,E.AuthButtonLogin=Fn,E.AuthButtonRefresh=Xi,E.AuthButtonRegister=On,E.AuthButtonRestore=jt,E.AuthChunks=se,E.AuthForm=Ss,E.AuthFormSettings=Ki,E.AuthMethods=dt,E.AuthModal=Lo,E.CarouselImages=Do,E.CollapseContainer=fs,E.CollapseItem=ms,E.ContextWindow=Ho,E.DateInputRange=qo,E.DateInputRange_v2=Uo,E.DoubleArrowLeft=as,E.DoubleArrowRight=ls,E.DropList=Wo,E.EllipsisSvg=cs,E.EmailField=Zt,E.FTSPPanel=Zo,E.FilterCheckbox=_o,E.FilterSelect=Go,E.FiltersButtonsSelect=jo,E.GeneralItem=Xo,E.GridContainer=xi,E.IconArrowLeft=Qo,E.IconCheckDefault=bi,E.IconClose=En,E.IconDownload=Yo,E.IconEdit=Ko,E.IconEmail=es,E.IconFilter=Jo,E.IconMove=ts,E.IconPhone=ns,E.IconSearch=is,E.IconSelectArrow=rs,E.InfoItem=ds,E.InfoItemSelectButtons=us,E.LeftRightContainer=hs,E.LoginField=vu,E.MessageBody=Bi,E.PAdd=gs,E.PAutocomplete=Ks,E.PButton=Sn,E.PCheckBox=Co,E.PContainer=ys,E.PContainerStickyHead=ws,E.PDatePicker=So,E.PDel=bs,E.PDialog=ea,E.PF=v,E.PFM=Au,E.PFlex=ko,E.PInput=Si,E.PInputDate=$o,E.PInputNumber=Io,E.PLeftSlider=Ao,E.PList=vo,E.PListItem=No,E.PLoader=na,E.PModal=Mi,E.PNameEdit=ks,E.PNotify=Cs,E.PPagination=ia,E.PRadio=Po,E.PRightSlider=Vo,E.PSelect=ki,E.PSticky=zo,E.PString=Ei,E.PTable=To,E.PTabs=Es,E.PTextarea=Fo,E.PTopSlider=Oo,E.PUploaderImage=Js,E.PageNotFound=ai,E.PasswordField=Xt,E.PasswordRepeatField=Qi,E.PhoneForm=ta,E.RemoteSearch=ra,E.ResearcheContainer=oa,E.RightSliderContainer=sa,E.RightTabsContainer=aa,E.SelectValueType=la,E.SortList=ca,E.SortSelect=da,E.Switch3Pos=ua,E.ThemeWrapper=ha,E.ToggleInfoItem=fa,E.TopSliderContainer=ma,E.UploaderFile=Qs,E.VerticalCollapseContainer=ps,E.pfName=Hm,E.servicesComponents=Dm,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|