sprof 0.2.10 → 0.2.11
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/{ExtractsList-D3pUjcC5.js → ExtractsList-BEH5IYVY.js} +12 -11
- package/dist/core/components/GeneralItem.vue.d.ts +1 -1
- package/dist/core/components/InfoItem.vue.d.ts +1 -1
- package/dist/core/components/atoms/PButton/PButton.stories.d.ts +6 -6
- package/dist/core/components/atoms/PButton/PButton.vue.d.ts +1 -1
- package/dist/core/components/atoms/PDialog/PDialog.stories.d.ts +6 -6
- package/dist/core/components/atoms/PDialog/PDialog.vue.d.ts +1 -1
- package/dist/core/components/molecules/PCrudList/PCrudList.stories.d.ts +9 -9
- package/dist/core/components/molecules/PCrudList/PCrudList.vue.d.ts +1 -1
- package/dist/core/components/molecules/PEditDialog/PEditDialog.stories.d.ts +9 -9
- package/dist/core/components/molecules/PEditDialog/PEditDialog.vue.d.ts +1 -1
- package/dist/core/components/organisms/PUploaderImage/ImageCropper.vue.d.ts +2 -4
- package/dist/core/components/organisms/PUploaderImage/PUploaderImage.test.d.ts +1 -0
- package/dist/core/components/organisms/PUploaderImage/PUploaderImage.vue.d.ts +17 -52
- package/dist/{index-D3zBQy-K.js → index-CmgBwS-p.js} +6673 -4872
- package/dist/index.d.ts +5 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/schedule/classes/Schedule.d.ts +19 -0
- package/dist/modules/schedule/classes/ScheduleDay.d.ts +15 -0
- package/dist/modules/schedule/classes/SchedulePlace.d.ts +12 -0
- package/dist/modules/schedule/classes/ScheduleSession.d.ts +16 -0
- package/dist/modules/schedule/classes/ScheduleSlot.d.ts +19 -0
- package/dist/modules/schedule/classes/index.d.ts +5 -0
- package/dist/modules/schedule/components/ScheduleGridEditor.vue.d.ts +59 -0
- package/dist/modules/schedule/components/ScheduleTimeline.vue.d.ts +58 -0
- package/dist/modules/schedule/components/index.d.ts +2 -0
- package/dist/modules/schedule/helpers/ScheduleGrid.d.ts +35 -0
- package/dist/modules/schedule/helpers/ScheduleTime.d.ts +22 -0
- package/dist/modules/schedule/helpers/index.d.ts +2 -0
- package/dist/modules/schedule/index.d.ts +26 -0
- package/dist/modules/schedule/store/ScheduleDaysStore.d.ts +7 -0
- package/dist/modules/schedule/store/SchedulePlacesStore.d.ts +7 -0
- package/dist/modules/schedule/store/ScheduleSessionsStore.d.ts +7 -0
- package/dist/modules/schedule/store/ScheduleSlotsStore.d.ts +7 -0
- package/dist/modules/schedule/store/SchedulesStore.d.ts +7 -0
- package/dist/modules/schedule/store/index.d.ts +5 -0
- package/dist/modules/schedule/types/ScheduleTypes.d.ts +122 -0
- package/dist/modules/schedule/types/index.d.ts +1 -0
- package/dist/sprof.js +40 -32
- package/dist/sprof.umd.cjs +16 -13
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/core/components/organisms/PUploaderImage/PUploaderImage.stories.d.ts +0 -165
package/dist/sprof.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(H,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("quasar"),require("vuedraggable"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","quasar","vuedraggable","vue-router"],n):(H=typeof globalThis<"u"?globalThis:H||self,n(H.sprof={},H.Vue,H.Quasar,H.draggable,H.VueRouter))})(this,function(H,n,D,ga,ya){"use strict";var a1=Object.defineProperty;var l1=(H,n,D)=>n in H?a1(H,n,{enumerable:!0,configurable:!0,writable:!0,value:D}):H[n]=D;var l=(H,n,D)=>l1(H,typeof n!="symbol"?n+"":n,D);var ct,dt,Re,sn,j,Ae,wt,Or;var Dt=typeof document<"u"?document.currentScript:null,me=(t=>(t.Login="login",t.Register="register",t.Restore="restore",t.Refresh="refresh",t))(me||{}),J=(t=>(t.Primary="primary",t.Success="success",t.Warning="warning",t.Error="error",t.Info="info",t))(J||{});class St{constructor(e,i,r,o){l(this,"text","Сохранить");l(this,"type",J.Success);l(this,"condition",!0);l(this,"action");l(this,"id","button");l(this,"disabled",!1);this.text=e,this.type=r,this.action=i,o!==void 0&&(this.condition=o)}static Primary(e,i,r){return new St(e,i,J.Primary,r)}static Success(e,i,r){return new St(e,i,J.Success,r)}static Warning(e,i,r){return new St(e,i,J.Warning,r)}static Error(e,i,r){return new St(e,i,J.Error,r)}}class Vn extends St{constructor(){super();l(this,"id","auth-button");l(this,"chunk",me.Login);l(this,"text","");l(this,"isSubmit",!1);l(this,"isLink",!0)}GetChunk(){return this.chunk}}let Ii=class extends Vn{constructor(){super(...arguments);l(this,"id","auth-button-login");l(this,"text","Войти");l(this,"isSubmit",!1);l(this,"chunk",me.Login)}};class Hr extends Vn{constructor(){super(...arguments);l(this,"id","auth-button-refresh");l(this,"text","Обновить пароль");l(this,"isSubmit",!1);l(this,"chunk",me.Refresh)}}class Pi extends Vn{constructor(){super(...arguments);l(this,"id","auth-button-register");l(this,"text","Зарегистрироваться");l(this,"isSubmit",!1);l(this,"chunk",me.Register)}}class zn extends Vn{constructor(){super(...arguments);l(this,"id","auth-button-restore");l(this,"text","Забыли пароль?");l(this,"isSubmit",!1);l(this,"chunk",me.Restore)}}class _r{constructor(){l(this,"value","");l(this,"label","");l(this,"placeholder","");l(this,"validator")}Validate(){return this.validator?(this.validator.errors=[],this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}var rt=(t=>(t.Email="field-auth-email",t.Password="field-auth-password",t.PasswordRepeat="field-auth-password-repeat",t))(rt||{});class Tn extends _r{constructor(){super(...arguments);l(this,"method");l(this,"id","field-auth");l(this,"name","")}get IsPassword(){return this.id===rt.Password||this.id===rt.PasswordRepeat}}var Lt=(t=>(t.Login="login",t.Email="email",t.Phone="phone",t.VK="vk",t.ESIA="esia",t))(Lt||{});const wa=/\S+@\S+\.\S+/;class Ur{constructor(){l(this,"errors",[])}validate(e){return(e===""||!e)&&this.errors.push("Введите email"),wa.test(e)||this.errors.push("Некорректный email"),this.errors}}let ba=class extends Tn{constructor(){super(...arguments);l(this,"id",rt.Email);l(this,"label","Email");l(this,"name","email");l(this,"placeholder","Введите email");l(this,"validator",new Ur);l(this,"method",Lt.Email)}};const On=new ba;class Ca{constructor(){l(this,"errors",[]);l(this,"length",3)}validate(e){return e===""||!e?(this.errors.push("Введите пароль"),this.errors):(e.length<this.length&&this.errors.push("Пароль должен быть длиннее 3 символов"),this.errors)}}let Sa=class extends Tn{constructor(){super(...arguments);l(this,"label","Пароль");l(this,"validator",new Ca);l(this,"name","password");l(this,"placeholder","Введите пароль");l(this,"id",rt.Password)}};const Fn=new Sa;let ka=class extends Tn{constructor(){super(...arguments);l(this,"label","Повторите пароль");l(this,"id",rt.PasswordRepeat)}};const qr=new ka,jr={allowRestore:!1,[me.Login]:{methods:[Lt.Email],title:"Вход в систему",action:"login",buttons:[new Ii,new Pi,new zn],fields:[On,Fn],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[me.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new Pi,new Ii,new zn],fields:[On,Fn,qr],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[me.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[new zn],fields:[On]},[me.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[new Hr],fields:[Fn]}};class xa{constructor(){l(this,"block",!1);l(this,"settings",jr);l(this,"chunk",me.Login);l(this,"selectedMethod",Lt.Email)}async Block(e){this.block=!0,await e(),this.block=!1}get IsBlock(){return this.block}GetValues(){const e=this.GetFields(),i=new Map;return e.forEach(r=>{r.value&&i.set(r.name,r.value)}),Object.fromEntries(i)}Validate(){if(this.IsRegister){const e=this.GetField(rt.Password),i=this.GetField(rt.PasswordRepeat);if((e==null?void 0:e.value)!==(i==null?void 0:i.value))return["Пароли не совпадают"]}return this.GetFields().map(e=>e.Validate()).flat()}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===me.Login}get IsRegister(){return this.chunk===me.Register}get IsRestore(){return this.chunk===me.Restore}get IsRefresh(){return this.chunk===me.Refresh}SetChunk(e){this.chunk=e}GetTitle(){return this.GetCurSet().title}GetButtons(){const e=this.GetCurSet().buttons;return e.forEach(i=>{i.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(me.Login),this.ResetFields()}GetField(e){return this.GetFields().find(i=>i.id===e)}}class Ea{constructor(){l(this,"visible",!1);l(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 Ht{constructor(){l(this,"type",J.Success);l(this,"text","");l(this,"title","")}static ToQuasarColor(e){switch(e){case J.Success:return"positive";case J.Warning:return"warning";case J.Error:return"negative";case J.Info:return"info";default:return"primary"}}static ContainsHtml(e){return/<[a-z][\s\S]*>/i.test(e)}showMessage(e,i){this.type=i,typeof e=="string"?(this.text=e,this.title=""):(this.text=e.text,this.title=e.title??"")}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}GetQuasarColor(){return Ht.ToQuasarColor(this.type)}Info(e){this.showMessage(e,J.Info)}Success(e){this.showMessage(e,J.Success)}Error(e){this.showMessage(e,J.Error)}Warning(e){this.showMessage(e,J.Warning)}FormMessage(e){let i="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const r of Object.keys(e))e[r][0]&&e[r][0].message&&(i+=`<li>${e[r][0].message}</li>`);return i+="</ul>",i}}class Ai{static Get(e,i,r="-"){return!e||!i?"":`${e}${r}${i}`}static In(e,i,r){return e>=i&&e<=r}static Intersects(e,i,r,o){return e===r||i===o||e>r&&e<o||i>r&&i<o||i>o&&e<r}}const Wr=1e3,Gr=60*Wr,Ni=60*Gr;var cn=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(cn||{});const Dn={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class q{static S(e){return Wr*e}static M(e){return Gr*e}static H(e){return Ni*e}static D(e){return Ni*e}static W(e){return Ni*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const i=q.SplitHM(e);return i.length>1?q.HtoM(i[0])+i[1]:q.HtoM(i[0])}static HtoM(e){return Number(e)*60}static SplitHM(e){if(!e)return[];const i=e.split(":");return[Number(i[0]),Number(i[1])]}static HmsToHm(e){const i=q.SplitHM(e);return q.ConcatHM(i[0],i[1])}static AddMtoHM(e,i){const r=new Date,o=q.SplitHM(e);r.setHours(o[0],o[1],0,0);const s=new Date(r.getTime()+i*6e4),a=s.getHours(),d=s.getMinutes();return q.ConcatHM(a,d)}static ConcatHM(e,i){return`${e}:${q.NormalizeTime(i)}`}static DiffM(e,i){return q.Gt(i,e)?q.HMtoM(i)-q.HMtoM(e):q.HMtoM(e)-q.HMtoM(i)}static GetPeriod(e,i){return Ai.Get(e,i)}static Gt(e,i){return q.HMtoM(e)>q.HMtoM(i)}static GtOrEq(e,i){return q.Gt(e,i)||q.Eq(e,i)}static Eq(e,i){return q.HMtoM(e)===q.HMtoM(i)}static PeriodInPeriod(e,i,r,o){return q.HMtoM(e)>=q.HMtoM(r)&&q.HMtoM(i)<=q.HMtoM(o)}static PeriodsIntersects(e,i,r,o){return Ai.Intersects(q.HMtoM(e),q.HMtoM(i),q.HMtoM(r),q.HMtoM(o))}}const Ba="top";class $a extends Ht{constructor(){super(...arguments);l(this,"duration",q.S(3))}showMessage(i,r){if(super.showMessage(i,r),typeof D.Notify.create!="function"){console.warn("[sprof] Quasar Notify plugin is not installed. Add `app.use(Quasar, { plugins: { Notify } })` (imported from 'quasar') to your app.");return}const o=typeof i=="string"?{}:i;D.Notify.create({message:this.text,caption:this.title||void 0,color:this.GetQuasarColor(),timeout:o.duration??this.duration,html:Ht.ContainsHtml(this.text),position:Ba})}GetDuration(){return this.duration}Dev(){this.showMessage("В режиме разработки",J.Warning)}Save(){this.showMessage("Изменения успешно сохранены",J.Success)}}const Ze=new $a;class Qe{static Get(e){const i=localStorage.getItem(e);if(i)return JSON.parse(i)}static Set(e,i){i&&localStorage.setItem(e,JSON.stringify(i))}static Remove(e){localStorage.removeItem(e)}}var Te=(t=>(t.User="user",t.AccessToken="accessToken",t.RefreshToken="refreshToken",t))(Te||{});class Ma{set(e){this.setAccessToken(e.accessToken),this.setRefreshToken(e.refreshToken)}getAccessToken(){return Qe.Get(Te.AccessToken)}getRefreshToken(){return Qe.Get(Te.RefreshToken)}setAccessToken(e){Qe.Set(Te.AccessToken,e)}setRefreshToken(e){Qe.Set(Te.RefreshToken,e)}reset(){Qe.Remove(Te.AccessToken),Qe.Remove(Te.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class Ra{constructor(){l(this,"user");l(this,"userConstructor")}AssignTo(e){e.user=this.get()}setUserConstructor(e){this.userConstructor=e}get(){if(!this.userConstructor){console.warn("No userConstructor was set");return}return this.user}set(e){this.userConstructor&&(this.user=new this.userConstructor(e),Qe.Set(Te.User,this.user))}reset(){this.user=void 0,Qe.Remove(Te.User)}actualize(){const e=Qe.Get(Te.User);e&&this.set(e)}}class Ia{constructor(){l(this,"isAuth",!1);l(this,"user",new Ra);l(this,"tokens",new Ma);l(this,"preventLogout",!1)}DeprecateLogout(){this.preventLogout=!0}AllowLogout(){this.preventLogout=!1}get IsAuth(){return this.isAuth}get User(){return this.user.get()}SetUserConstructor(e){this.user.setUserConstructor(e)}SetUser(e){this.user.set(e)}SetState(e){this.SetUser(e.user),this.tokens.set(e.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){Ze.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.user.actualize(),this.tokens.actualize(),this.tokens.getAccessToken()){this.isAuth=!0;return}this.Logout()}}let Pa=(ct=class{constructor(){l(this,"form",n.reactive(new xa));l(this,"status",n.reactive(new Ia));l(this,"modal",n.reactive(new Ea));if(ct.instance)return ct.instance;ct.instance=this,Object.freeze(this)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}},l(ct,"instance"),ct);const pe=new Pa;var Zr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*! *****************************************************************************
|
|
1
|
+
(function(W,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("quasar"),require("vuedraggable"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","quasar","vuedraggable","vue-router"],t):(W=typeof globalThis<"u"?globalThis:W||self,t(W.sprof={},W.Vue,W.Quasar,W.draggable,W.VueRouter))})(this,function(W,t,V,ho,Fl){"use strict";var bw=Object.defineProperty;var Sw=(W,t,V)=>t in W?bw(W,t,{enumerable:!0,configurable:!0,writable:!0,value:V}):W[t]=V;var l=(W,t,V)=>Sw(W,typeof t!="symbol"?t+"":t,V);var Ot,_t,tt,Ln,oe,ot,Yt,kr;var wn=typeof document<"u"?document.currentScript:null,ve=(n=>(n.Login="login",n.Register="register",n.Restore="restore",n.Refresh="refresh",n))(ve||{}),me=(n=>(n.Primary="primary",n.Success="success",n.Warning="warning",n.Error="error",n.Info="info",n))(me||{});class Zt{constructor(e,i,o,r){l(this,"text","Сохранить");l(this,"type",me.Success);l(this,"condition",!0);l(this,"action");l(this,"id","button");l(this,"disabled",!1);this.text=e,this.type=o,this.action=i,r!==void 0&&(this.condition=r)}static Primary(e,i,o){return new Zt(e,i,me.Primary,o)}static Success(e,i,o){return new Zt(e,i,me.Success,o)}static Warning(e,i,o){return new Zt(e,i,me.Warning,o)}static Error(e,i,o){return new Zt(e,i,me.Error,o)}}class gi extends Zt{constructor(){super();l(this,"id","auth-button");l(this,"chunk",ve.Login);l(this,"text","");l(this,"isSubmit",!1);l(this,"isLink",!0)}GetChunk(){return this.chunk}}let mo=class extends gi{constructor(){super(...arguments);l(this,"id","auth-button-login");l(this,"text","Войти");l(this,"isSubmit",!1);l(this,"chunk",ve.Login)}};class vr extends gi{constructor(){super(...arguments);l(this,"id","auth-button-refresh");l(this,"text","Обновить пароль");l(this,"isSubmit",!1);l(this,"chunk",ve.Refresh)}}class po extends gi{constructor(){super(...arguments);l(this,"id","auth-button-register");l(this,"text","Зарегистрироваться");l(this,"isSubmit",!1);l(this,"chunk",ve.Register)}}class yi extends gi{constructor(){super(...arguments);l(this,"id","auth-button-restore");l(this,"text","Забыли пароль?");l(this,"isSubmit",!1);l(this,"chunk",ve.Restore)}}class Ar{constructor(){l(this,"value","");l(this,"label","");l(this,"placeholder","");l(this,"validator")}Validate(){return this.validator?(this.validator.errors=[],this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}var Pt=(n=>(n.Email="field-auth-email",n.Password="field-auth-password",n.PasswordRepeat="field-auth-password-repeat",n))(Pt||{});class wi extends Ar{constructor(){super(...arguments);l(this,"method");l(this,"id","field-auth");l(this,"name","")}get IsPassword(){return this.id===Pt.Password||this.id===Pt.PasswordRepeat}}var bn=(n=>(n.Login="login",n.Email="email",n.Phone="phone",n.VK="vk",n.ESIA="esia",n))(bn||{});const Ol=/\S+@\S+\.\S+/;class zr{constructor(){l(this,"errors",[])}validate(e){return(e===""||!e)&&this.errors.push("Введите email"),Ol.test(e)||this.errors.push("Некорректный email"),this.errors}}let _l=class extends wi{constructor(){super(...arguments);l(this,"id",Pt.Email);l(this,"label","Email");l(this,"name","email");l(this,"placeholder","Введите email");l(this,"validator",new zr);l(this,"method",bn.Email)}};const bi=new _l;class Ll{constructor(){l(this,"errors",[]);l(this,"length",3)}validate(e){return e===""||!e?(this.errors.push("Введите пароль"),this.errors):(e.length<this.length&&this.errors.push("Пароль должен быть длиннее 3 символов"),this.errors)}}let Hl=class extends wi{constructor(){super(...arguments);l(this,"label","Пароль");l(this,"validator",new Ll);l(this,"name","password");l(this,"placeholder","Введите пароль");l(this,"id",Pt.Password)}};const Si=new Hl;let Ul=class extends wi{constructor(){super(...arguments);l(this,"label","Повторите пароль");l(this,"id",Pt.PasswordRepeat)}};const Dr=new Ul,Fr={allowRestore:!1,[ve.Login]:{methods:[bn.Email],title:"Вход в систему",action:"login",buttons:[new mo,new po,new yi],fields:[bi,Si],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[ve.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new po,new mo,new yi],fields:[bi,Si,Dr],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[ve.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[new yi],fields:[bi]},[ve.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[new vr],fields:[Si]}};class ql{constructor(){l(this,"block",!1);l(this,"settings",Fr);l(this,"chunk",ve.Login);l(this,"selectedMethod",bn.Email)}async Block(e){this.block=!0,await e(),this.block=!1}get IsBlock(){return this.block}GetValues(){const e=this.GetFields(),i=new Map;return e.forEach(o=>{o.value&&i.set(o.name,o.value)}),Object.fromEntries(i)}Validate(){if(this.IsRegister){const e=this.GetField(Pt.Password),i=this.GetField(Pt.PasswordRepeat);if((e==null?void 0:e.value)!==(i==null?void 0:i.value))return["Пароли не совпадают"]}return this.GetFields().map(e=>e.Validate()).flat()}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===ve.Login}get IsRegister(){return this.chunk===ve.Register}get IsRestore(){return this.chunk===ve.Restore}get IsRefresh(){return this.chunk===ve.Refresh}SetChunk(e){this.chunk=e}GetTitle(){return this.GetCurSet().title}GetButtons(){const e=this.GetCurSet().buttons;return e.forEach(i=>{i.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(ve.Login),this.ResetFields()}GetField(e){return this.GetFields().find(i=>i.id===e)}}class jl{constructor(){l(this,"visible",!1);l(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 Sn{constructor(){l(this,"type",me.Success);l(this,"text","");l(this,"title","")}static ToQuasarColor(e){switch(e){case me.Success:return"positive";case me.Warning:return"warning";case me.Error:return"negative";case me.Info:return"info";default:return"primary"}}static ContainsHtml(e){return/<[a-z][\s\S]*>/i.test(e)}showMessage(e,i){this.type=i,typeof e=="string"?(this.text=e,this.title=""):(this.text=e.text,this.title=e.title??"")}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}GetQuasarColor(){return Sn.ToQuasarColor(this.type)}Info(e){this.showMessage(e,me.Info)}Success(e){this.showMessage(e,me.Success)}Error(e){this.showMessage(e,me.Error)}Warning(e){this.showMessage(e,me.Warning)}FormMessage(e){let i="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const o of Object.keys(e))e[o][0]&&e[o][0].message&&(i+=`<li>${e[o][0].message}</li>`);return i+="</ul>",i}}class go{static Get(e,i,o="-"){return!e||!i?"":`${e}${o}${i}`}static In(e,i,o){return e>=i&&e<=o}static Intersects(e,i,o,r){return e===o||i===r||e>o&&e<r||i>o&&i<r||i>r&&e<o}}const Or=1e3,_r=60*Or,yo=60*_r;var qn=(n=>(n.FiveMinutes="5",n.HourQuarter="15",n.HourHalf="30",n.Hour="60",n))(qn||{});const Ci={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class ie{static S(e){return Or*e}static M(e){return _r*e}static H(e){return yo*e}static D(e){return yo*e}static W(e){return yo*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const i=ie.SplitHM(e);return i.length>1?ie.HtoM(i[0])+i[1]:ie.HtoM(i[0])}static HtoM(e){return Number(e)*60}static SplitHM(e){if(!e)return[];const i=e.split(":");return[Number(i[0]),Number(i[1])]}static HmsToHm(e){const i=ie.SplitHM(e);return ie.ConcatHM(i[0],i[1])}static AddMtoHM(e,i){const o=new Date,r=ie.SplitHM(e);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+i*6e4),a=s.getHours(),d=s.getMinutes();return ie.ConcatHM(a,d)}static ConcatHM(e,i){return`${e}:${ie.NormalizeTime(i)}`}static DiffM(e,i){return ie.Gt(i,e)?ie.HMtoM(i)-ie.HMtoM(e):ie.HMtoM(e)-ie.HMtoM(i)}static GetPeriod(e,i){return go.Get(e,i)}static Gt(e,i){return ie.HMtoM(e)>ie.HMtoM(i)}static GtOrEq(e,i){return ie.Gt(e,i)||ie.Eq(e,i)}static Eq(e,i){return ie.HMtoM(e)===ie.HMtoM(i)}static PeriodInPeriod(e,i,o,r){return ie.HMtoM(e)>=ie.HMtoM(o)&&ie.HMtoM(i)<=ie.HMtoM(r)}static PeriodsIntersects(e,i,o,r){return go.Intersects(ie.HMtoM(e),ie.HMtoM(i),ie.HMtoM(o),ie.HMtoM(r))}}const Wl="top";class Gl extends Sn{constructor(){super(...arguments);l(this,"duration",ie.S(3))}showMessage(i,o){if(super.showMessage(i,o),typeof V.Notify.create!="function"){console.warn("[sprof] Quasar Notify plugin is not installed. Add `app.use(Quasar, { plugins: { Notify } })` (imported from 'quasar') to your app.");return}const r=typeof i=="string"?{}:i;V.Notify.create({message:this.text,caption:this.title||void 0,color:this.GetQuasarColor(),timeout:r.duration??this.duration,html:Sn.ContainsHtml(this.text),position:Wl})}GetDuration(){return this.duration}Dev(){this.showMessage("В режиме разработки",me.Warning)}Save(){this.showMessage("Изменения успешно сохранены",me.Success)}}const Ct=new Gl;class kt{static Get(e){const i=localStorage.getItem(e);if(i)return JSON.parse(i)}static Set(e,i){i&&localStorage.setItem(e,JSON.stringify(i))}static Remove(e){localStorage.removeItem(e)}}var lt=(n=>(n.User="user",n.AccessToken="accessToken",n.RefreshToken="refreshToken",n))(lt||{});class Ql{set(e){this.setAccessToken(e.accessToken),this.setRefreshToken(e.refreshToken)}getAccessToken(){return kt.Get(lt.AccessToken)}getRefreshToken(){return kt.Get(lt.RefreshToken)}setAccessToken(e){kt.Set(lt.AccessToken,e)}setRefreshToken(e){kt.Set(lt.RefreshToken,e)}reset(){kt.Remove(lt.AccessToken),kt.Remove(lt.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class Yl{constructor(){l(this,"user");l(this,"userConstructor")}AssignTo(e){e.user=this.get()}setUserConstructor(e){this.userConstructor=e}get(){if(!this.userConstructor){console.warn("No userConstructor was set");return}return this.user}set(e){this.userConstructor&&(this.user=new this.userConstructor(e),kt.Set(lt.User,this.user))}reset(){this.user=void 0,kt.Remove(lt.User)}actualize(){const e=kt.Get(lt.User);e&&this.set(e)}}class Xl{constructor(){l(this,"isAuth",!1);l(this,"user",new Yl);l(this,"tokens",new Ql);l(this,"preventLogout",!1)}DeprecateLogout(){this.preventLogout=!0}AllowLogout(){this.preventLogout=!1}get IsAuth(){return this.isAuth}get User(){return this.user.get()}SetUserConstructor(e){this.user.setUserConstructor(e)}SetUser(e){this.user.set(e)}SetState(e){this.SetUser(e.user),this.tokens.set(e.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){Ct.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.user.actualize(),this.tokens.actualize(),this.tokens.getAccessToken()){this.isAuth=!0;return}this.Logout()}}let Zl=(Ot=class{constructor(){l(this,"form",t.reactive(new ql));l(this,"status",t.reactive(new Xl));l(this,"modal",t.reactive(new jl));if(Ot.instance)return Ot.instance;Ot.instance=this,Object.freeze(this)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}},l(Ot,"instance"),Ot);const Ae=new Zl;var Lr=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,20 +11,23 @@
|
|
|
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 Qr;(function(t){(function(e){var i=typeof globalThis=="object"?globalThis:typeof Zr=="object"?Zr:typeof self=="object"?self:typeof this=="object"?this:d(),r=o(t);typeof i.Reflect<"u"&&(r=o(i.Reflect,r)),e(r,i),typeof i.Reflect>"u"&&(i.Reflect=t);function o(c,u){return function(f,h){Object.defineProperty(c,f,{configurable:!0,writable:!0,value:h}),u&&u(f,h)}}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,i){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",c={__proto__:[]}instanceof Array,u=!d&&!c,f={create:d?function(){return Fr(Object.create(null))}:c?function(){return Fr({__proto__:null})}:function(){return Fr({})},has:u?function(g,b){return r.call(g,b)}:function(g,b){return b in g},get:u?function(g,b){return r.call(g,b)?g[b]:void 0}:function(g,b){return g[b]}},h=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:n1(),y=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:i1(),w=typeof WeakMap=="function"?WeakMap:r1(),k=o?Symbol.for("@reflect-metadata:registry"):void 0,x=Kg(),C=e1(x);function A(g,b,S,M){if(F(S)){if(!Mn(g))throw new TypeError;if(!Rn(b))throw new TypeError;return an(g,b)}else{if(!Mn(g))throw new TypeError;if(!re(b))throw new TypeError;if(!re(M)&&!F(M)&&!Ve(M))throw new TypeError;return Ve(M)&&(M=void 0),S=He(S),Bi(g,b,S,M)}}e("decorate",A);function B(g,b){function S(M,L){if(!re(M))throw new TypeError;if(!F(L)&&!In(L))throw new TypeError;$i(g,b,M,L)}return S}e("metadata",B);function V(g,b,S,M){if(!re(S))throw new TypeError;return F(M)||(M=He(M)),$i(g,b,S,M)}e("defineMetadata",V);function T(g,b,S){if(!re(b))throw new TypeError;return F(S)||(S=He(S)),ve(g,b,S)}e("hasMetadata",T);function U(g,b,S){if(!re(b))throw new TypeError;return F(S)||(S=He(S)),bt(g,b,S)}e("hasOwnMetadata",U);function Be(g,b,S){if(!re(b))throw new TypeError;return F(S)||(S=He(S)),Ct(g,b,S)}e("getMetadata",Be);function Vt(g,b,S){if(!re(b))throw new TypeError;return F(S)||(S=He(S)),ln(g,b,S)}e("getOwnMetadata",Vt);function zt(g,b){if(!re(g))throw new TypeError;return F(b)||(b=He(b)),$n(g,b)}e("getMetadataKeys",zt);function Ne(g,b){if(!re(g))throw new TypeError;return F(b)||(b=He(b)),je(g,b)}e("getOwnMetadataKeys",Ne);function nt(g,b,S){if(!re(b))throw new TypeError;if(F(S)||(S=He(S)),!re(b))throw new TypeError;F(S)||(S=He(S));var M=Nn(b,S,!1);return F(M)?!1:M.OrdinaryDeleteMetadata(g,b,S)}e("deleteMetadata",nt);function an(g,b){for(var S=g.length-1;S>=0;--S){var M=g[S],L=M(b);if(!F(L)&&!Ve(L)){if(!Rn(L))throw new TypeError;b=L}}return b}function Bi(g,b,S,M){for(var L=g.length-1;L>=0;--L){var he=g[L],ce=he(b,S,M);if(!F(ce)&&!Ve(ce)){if(!re(ce))throw new TypeError;M=ce}}return M}function ve(g,b,S){var M=bt(g,b,S);if(M)return!0;var L=An(b);return Ve(L)?!1:ve(g,L,S)}function bt(g,b,S){var M=Nn(b,S,!1);return F(M)?!1:Ot(M.OrdinaryHasOwnMetadata(g,b,S))}function Ct(g,b,S){var M=bt(g,b,S);if(M)return ln(g,b,S);var L=An(b);if(!Ve(L))return Ct(g,L,S)}function ln(g,b,S){var M=Nn(b,S,!1);if(!F(M))return M.OrdinaryGetOwnMetadata(g,b,S)}function $i(g,b,S,M){var L=Nn(S,M,!0);L.OrdinaryDefineOwnMetadata(g,b,S,M)}function $n(g,b){var S=je(g,b),M=An(g);if(M===null)return S;var L=$n(M,b);if(L.length<=0)return S;if(S.length<=0)return L;for(var he=new y,ce=[],W=0,I=S;W<I.length;W++){var N=I[W],v=he.has(N);v||(he.add(N),ce.push(N))}for(var z=0,G=L;z<G.length;z++){var N=G[z],v=he.has(N);v||(he.add(N),ce.push(N))}return ce}function je(g,b){var S=Nn(g,b,!1);return S?S.OrdinaryOwnMetadataKeys(g,b):[]}function ae(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 F(g){return g===void 0}function Ve(g){return g===null}function Tt(g){return typeof g=="symbol"}function re(g){return typeof g=="object"?g!==null:typeof g=="function"}function Y(g,b){switch(ae(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 S="string",M=_(g,s);if(M!==void 0){var L=M.call(g,S);if(re(L))throw new TypeError;return L}return Ie(g)}function Ie(g,b){var S,M;{var L=g.toString;if(Pe(L)){var M=L.call(g);if(!re(M))return M}var S=g.valueOf;if(Pe(S)){var M=S.call(g);if(!re(M))return M}}throw new TypeError}function Ot(g){return!!g}function Mi(g){return""+g}function He(g){var b=Y(g);return Tt(b)?b:Mi(b)}function Mn(g){return Array.isArray?Array.isArray(g):g instanceof Object?g instanceof Array:Object.prototype.toString.call(g)==="[object Array]"}function Pe(g){return typeof g=="function"}function Rn(g){return typeof g=="function"}function In(g){switch(ae(g)){case 3:return!0;case 4:return!0;default:return!1}}function ze(g,b){return g===b||g!==g&&b!==b}function _(g,b){var S=g[b];if(S!=null){if(!Pe(S))throw new TypeError;return S}}function Ee(g){var b=_(g,a);if(!Pe(b))throw new TypeError;var S=b.call(g);if(!re(S))throw new TypeError;return S}function We(g){return g.value}function it(g){var b=g.next();return b.done?!1:b}function Pn(g){var b=g.return;b&&b.call(g)}function An(g){var b=Object.getPrototypeOf(g);if(typeof g!="function"||g===h||b!==h)return b;var S=g.prototype,M=S&&Object.getPrototypeOf(S);if(M==null||M===Object.prototype)return b;var L=M.constructor;return typeof L!="function"||L===g?b:L}function Ft(){var g;!F(k)&&typeof i.Reflect<"u"&&!(k in i.Reflect)&&typeof i.Reflect.defineMetadata=="function"&&(g=t1(i.Reflect));var b,S,M,L=new w,he={registerProvider:ce,getProvider:I,setProvider:v};return he;function ce(z){if(!Object.isExtensible(he))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case g===z:break;case F(b):b=z;break;case b===z:break;case F(S):S=z;break;case S===z:break;default:M===void 0&&(M=new y),M.add(z);break}}function W(z,G){if(!F(b)){if(b.isProviderFor(z,G))return b;if(!F(S)){if(S.isProviderFor(z,G))return b;if(!F(M))for(var te=Ee(M);;){var se=it(te);if(!se)return;var Ge=We(se);if(Ge.isProviderFor(z,G))return Pn(te),Ge}}}if(!F(g)&&g.isProviderFor(z,G))return g}function I(z,G){var te=L.get(z),se;return F(te)||(se=te.get(G)),F(se)&&(se=W(z,G),F(se)||(F(te)&&(te=new m,L.set(z,te)),te.set(G,se))),se}function N(z){if(F(z))throw new TypeError;return b===z||S===z||!F(M)&&M.has(z)}function v(z,G,te){if(!N(te))throw new Error("Metadata provider not registered.");var se=I(z,G);if(se!==te){if(!F(se))return!1;var Ge=L.get(z);F(Ge)&&(Ge=new m,L.set(z,Ge)),Ge.set(G,te)}return!0}}function Kg(){var g;return!F(k)&&re(i.Reflect)&&Object.isExtensible(i.Reflect)&&(g=i.Reflect[k]),F(g)&&(g=Ft()),!F(k)&&re(i.Reflect)&&Object.isExtensible(i.Reflect)&&Object.defineProperty(i.Reflect,k,{enumerable:!1,configurable:!1,writable:!1,value:g}),g}function e1(g){var b=new w,S={isProviderFor:function(N,v){var z=b.get(N);return F(z)?!1:z.has(v)},OrdinaryDefineOwnMetadata:ce,OrdinaryHasOwnMetadata:L,OrdinaryGetOwnMetadata:he,OrdinaryOwnMetadataKeys:W,OrdinaryDeleteMetadata:I};return x.registerProvider(S),S;function M(N,v,z){var G=b.get(N),te=!1;if(F(G)){if(!z)return;G=new m,b.set(N,G),te=!0}var se=G.get(v);if(F(se)){if(!z)return;if(se=new m,G.set(v,se),!g.setProvider(N,v,S))throw G.delete(v),te&&b.delete(N),new Error("Wrong provider for target.")}return se}function L(N,v,z){var G=M(v,z,!1);return F(G)?!1:Ot(G.has(N))}function he(N,v,z){var G=M(v,z,!1);if(!F(G))return G.get(N)}function ce(N,v,z,G){var te=M(z,G,!0);te.set(N,v)}function W(N,v){var z=[],G=M(N,v,!1);if(F(G))return z;for(var te=G.keys(),se=Ee(te),Ge=0;;){var aa=it(se);if(!aa)return z.length=Ge,z;var o1=We(aa);try{z[Ge]=o1}catch(s1){try{Pn(se)}finally{throw s1}}Ge++}}function I(N,v,z){var G=M(v,z,!1);if(F(G)||!G.delete(N))return!1;if(G.size===0){var te=b.get(v);F(te)||(te.delete(z),te.size===0&&b.delete(te))}return!0}}function t1(g){var b=g.defineMetadata,S=g.hasOwnMetadata,M=g.getOwnMetadata,L=g.getOwnMetadataKeys,he=g.deleteMetadata,ce=new w,W={isProviderFor:function(I,N){var v=ce.get(I);return!F(v)&&v.has(N)?!0:L(I,N).length?(F(v)&&(v=new y,ce.set(I,v)),v.add(N),!0):!1},OrdinaryDefineOwnMetadata:b,OrdinaryHasOwnMetadata:S,OrdinaryGetOwnMetadata:M,OrdinaryOwnMetadataKeys:L,OrdinaryDeleteMetadata:he};return W}function Nn(g,b,S){var M=x.getProvider(g,b);if(!F(M))return M;if(S){if(x.setProvider(g,b,C))return C;throw new Error("Illegal state.")}}function n1(){var g={},b=[],S=function(){function W(I,N,v){this._index=0,this._keys=I,this._values=N,this._selector=v}return W.prototype["@@iterator"]=function(){return this},W.prototype[a]=function(){return this},W.prototype.next=function(){var I=this._index;if(I>=0&&I<this._keys.length){var N=this._selector(this._keys[I],this._values[I]);return I+1>=this._keys.length?(this._index=-1,this._keys=b,this._values=b):this._index++,{value:N,done:!1}}return{value:void 0,done:!0}},W.prototype.throw=function(I){throw this._index>=0&&(this._index=-1,this._keys=b,this._values=b),I},W.prototype.return=function(I){return this._index>=0&&(this._index=-1,this._keys=b,this._values=b),{value:I,done:!0}},W}(),M=function(){function W(){this._keys=[],this._values=[],this._cacheKey=g,this._cacheIndex=-2}return Object.defineProperty(W.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),W.prototype.has=function(I){return this._find(I,!1)>=0},W.prototype.get=function(I){var N=this._find(I,!1);return N>=0?this._values[N]:void 0},W.prototype.set=function(I,N){var v=this._find(I,!0);return this._values[v]=N,this},W.prototype.delete=function(I){var N=this._find(I,!1);if(N>=0){for(var v=this._keys.length,z=N+1;z<v;z++)this._keys[z-1]=this._keys[z],this._values[z-1]=this._values[z];return this._keys.length--,this._values.length--,ze(I,this._cacheKey)&&(this._cacheKey=g,this._cacheIndex=-2),!0}return!1},W.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=g,this._cacheIndex=-2},W.prototype.keys=function(){return new S(this._keys,this._values,L)},W.prototype.values=function(){return new S(this._keys,this._values,he)},W.prototype.entries=function(){return new S(this._keys,this._values,ce)},W.prototype["@@iterator"]=function(){return this.entries()},W.prototype[a]=function(){return this.entries()},W.prototype._find=function(I,N){if(!ze(this._cacheKey,I)){this._cacheIndex=-1;for(var v=0;v<this._keys.length;v++)if(ze(this._keys[v],I)){this._cacheIndex=v;break}}return this._cacheIndex<0&&N&&(this._cacheIndex=this._keys.length,this._keys.push(I),this._values.push(void 0)),this._cacheIndex},W}();return M;function L(W,I){return W}function he(W,I){return I}function ce(W,I){return[W,I]}}function i1(){var g=function(){function b(){this._map=new m}return Object.defineProperty(b.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),b.prototype.has=function(S){return this._map.has(S)},b.prototype.add=function(S){return this._map.set(S,S),this},b.prototype.delete=function(S){return this._map.delete(S)},b.prototype.clear=function(){this._map.clear()},b.prototype.keys=function(){return this._map.keys()},b.prototype.values=function(){return this._map.keys()},b.prototype.entries=function(){return this._map.entries()},b.prototype["@@iterator"]=function(){return this.keys()},b.prototype[a]=function(){return this.keys()},b}();return g}function r1(){var g=16,b=f.create(),S=M();return function(){function I(){this._key=M()}return I.prototype.has=function(N){var v=L(N,!1);return v!==void 0?f.has(v,this._key):!1},I.prototype.get=function(N){var v=L(N,!1);return v!==void 0?f.get(v,this._key):void 0},I.prototype.set=function(N,v){var z=L(N,!0);return z[this._key]=v,this},I.prototype.delete=function(N){var v=L(N,!1);return v!==void 0?delete v[this._key]:!1},I.prototype.clear=function(){this._key=M()},I}();function M(){var I;do I="@@WeakMap@@"+W();while(f.has(b,I));return b[I]=!0,I}function L(I,N){if(!r.call(I,S)){if(!N)return;Object.defineProperty(I,S,{value:f.create()})}return I[S]}function he(I,N){for(var v=0;v<N;++v)I[v]=Math.random()*255|0;return I}function ce(I){if(typeof Uint8Array=="function"){var N=new Uint8Array(I);return typeof crypto<"u"?crypto.getRandomValues(N):typeof msCrypto<"u"?msCrypto.getRandomValues(N):he(N,I),N}return he(new Array(I),I)}function W(){var I=ce(g);I[6]=I[6]&79|64,I[8]=I[8]&191|128;for(var N="",v=0;v<g;++v){var z=I[v];(v===4||v===6||v===8)&&(N+="-"),z<16&&(N+="0"),N+=z.toString(16).toLowerCase()}return N}}function Fr(g){return g.__=void 0,delete g.__,g}})})(Qr||(Qr={}));const ge=[];for(let t=0;t<256;++t)ge.push((t+256).toString(16).slice(1));function Aa(t,e=0){return(ge[t[e+0]]+ge[t[e+1]]+ge[t[e+2]]+ge[t[e+3]]+"-"+ge[t[e+4]]+ge[t[e+5]]+"-"+ge[t[e+6]]+ge[t[e+7]]+"-"+ge[t[e+8]]+ge[t[e+9]]+"-"+ge[t[e+10]]+ge[t[e+11]]+ge[t[e+12]]+ge[t[e+13]]+ge[t[e+14]]+ge[t[e+15]]).toLowerCase()}const Na=new Uint8Array(16);function va(){return crypto.getRandomValues(Na)}function ut(t,e,i){return crypto.randomUUID?crypto.randomUUID():Va(t)}function Va(t,e,i){var o;t=t||{};const r=t.random??((o=t.rng)==null?void 0:o.call(t))??va();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Aa(r)}class de{static UUID(){return ut()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}function za(t){var e=[];if(t.length===0)return"";if(typeof t[0]!="string")throw new TypeError("Url must be a string. Received "+t[0]);if(t[0].match(/^[^/:]+:\/*$/)&&t.length>1){var i=t.shift();t[0]=i+t[0]}t[0].match(/^file:\/\/\//)?t[0]=t[0].replace(/^([^/:]+):\/*/,"$1:///"):t[0]=t[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<t.length;r++){var o=t[r];if(typeof o!="string")throw new TypeError("Url must be a string. Received "+o);o!==""&&(r>0&&(o=o.replace(/^[\/]+/,"")),r<t.length-1?o=o.replace(/[\/]+$/,""):o=o.replace(/[\/]+$/,"/"),e.push(o))}var s=e.join("/");s=s.replace(/\/(\?|&|#[^!])/g,"$1");var a=s.split("?");return s=a.shift()+(a.length>0?"?":"")+a.join("&"),s}function vi(){var t;return typeof arguments[0]=="object"?t=arguments[0]:t=[].slice.call(arguments),za(t)}class Z{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static BuildSafeUrl(e,i,r){try{const o=new URL(e);return i&&(o.port=i.toString()),vi(o.toString(),r)}catch{throw new Error(`Invalid host URL: ${e}`)}}static ToCamelCase(e){const i=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(i).map((o,s)=>s===0?o.toLowerCase():Z.Capitalize(o.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,i,r){return e.substring(e.indexOf(i)+2,e.lastIndexOf(r))}static Translit(e,i){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 i&&/[а-яА-Я]/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 i=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(i,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,i){const r=e.toLowerCase().replaceAll(/\s/g,""),o=i.toLowerCase().replaceAll(/\s/g,""),s=Z.Translit(r),a=Z.Translit(o);return r.includes(o)||s.includes(o)||r.includes(a)}static SearchIn(e,i){return Z.StringsEquals(e,i)}static SearchInFields(e,i){let r=!1;for(let o=0;o<i.length;o++)if(Z.SearchIn(i[o],e)){r=!0;break}return r}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,i,r){const o=r??"highlight-text",s=new RegExp(Z.GetVariants(i).join("|"),"gi");return e.replace(s,`<span class="${o}">$&</span>`)}static GetVariants(e){const i=Z.Translit(e);return[e,Z.Capitalize(e),e.toLowerCase(),e.toUpperCase(),i,Z.Capitalize(i),i.toLowerCase(),i.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,i){const r=[2,0,1,1,1,2];return e.length+" "+i[e.length%100>4&&e.length%100<20?2:r[e.length%10<5?e.length%10:5]]}static TrimText(e){return typeof e=="string"?e.trim():e}}const yt=class yt{static BuildClass(e,i){i&&Object.keys(i).forEach(r=>{const o=i[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)){if(o.length===0)return;const s=Reflect.getMetadata(r,e);o.length!==0&&!s&&(e[r]=o),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,i,r){yt.RemoveFromClass(e,i,r)}static RemoveFromClassById(e,i,r){if(!e)return;const o=i.findIndex(s=>s.id===e);yt.RemoveFromClass(o,i,r)}static RemoveFromClass(e,i,r){if(e<0)return;const o=i[e].id;o&&r&&r.push(o),i.splice(e,1)}static GetPropertyName(e){const i=new e;return new Proxy(i,{get(r,o){return o}})}static InitClassInstance(e,i){const r=e.constructor(i);return yt.BuildClass(r),r.id=de.UUID(),r}static ExistsWithId(e,i){return e.some(r=>r.id===i)}static DeepMap(e){return i=>Array.isArray(i)?i.map(yt.DeepMap(e)):Object(i)===i?Object.fromEntries(Object.entries(i).map(([r,o])=>[r,yt.DeepMap(e)(o)])):e(i)}static DeepTrim(e){return this.DeepMap(Z.TrimText)(e)}};l(yt,"GetClassConstructor",e=>(i,r)=>{const o=Reflect.getMetadata(`property:${r}`,i)||{};o[r]=e,Reflect.defineMetadata(r,o,i)});let P=yt;class kt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");P.BuildClass(this,e)}static Create(){const e=new kt;return e.id=de.UUID(),e}}class Vi{static Setup(e="http://localhost",i="9000",r="api"){this.staticUrl=Z.BuildSafeUrl(e,i,r),this.staticUrl=vi(this.staticUrl,"static")}static get StaticUrl(){return this.staticUrl}}l(Vi,"staticUrl","");class ye{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"type","");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");l(this,"itemId");l(this,"itemOneId");l(this,"description","");l(this,"order",0);P.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Vi.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Dt&&Dt.tagName.toUpperCase()==="SCRIPT"&&Dt.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,i){const r=new ye;return r.id=i??de.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=de.UUID(),r}setFile(e){this.id||(this.id=de.UUID()),this.originalName=e.name,this.file=e,this.fileSystemPath=de.UUID(),this.url=e.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,i){if(e.target){let r="";return i&&(r=`@/assets/img/${i}`),new URL(r,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Dt&&Dt.tagName.toUpperCase()==="SCRIPT"&&Dt.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const i=e.split(".");return i[i.length-1]}}class Xr{constructor(e){l(this,"id");l(this,"name","");l(this,"surname","");l(this,"patronymic","");l(this,"isMale",!0);l(this,"dateBirth",new Date);l(this,"contactId");l(this,"slug","");l(this,"postIndex","");l(this,"address","");l(this,"editNameMode",!1);P.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=Z.Capitalize(this.name),this.surname=Z.Capitalize(this.surname),this.patronymic=Z.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 xt{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");P.BuildClass(this,e)}static Create(){const e=new xt;return e.id=de.UUID(),e}}class Ln{constructor(e){l(this,"id");l(this,"address");l(this,"description");P.BuildClass(this,e)}}class Hn{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");P.BuildClass(this,e)}static Create(){const e=new Hn;return e.id=de.UUID(),e}}class zi{constructor(e){l(this,"id");l(this,"address");l(this,"description");P.BuildClass(this,e)}}let Ta=(dt=class{},l(dt,"Phone",xt),l(dt,"FileInfo",ye),l(dt,"Website",zi),l(dt,"Email",kt),l(dt,"Human",Xr),l(dt,"PostAddress",Ln),l(dt,"UserAccount",Hn),dt);var ne=(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))(ne||{});class _n{constructor(e){l(this,"field","");l(this,"operator",ne.Eq);l(this,"value","");P.BuildClass(this,e)}setValue(e){this.value=e}static Create(e,i){return new _n({operator:i,field:e})}eq(e){return this.field===e.field&&this.operator===e.operator}isUnary(){return this.operator===ne.Eq||this.operator===ne.Gt||this.operator===ne.Lt}isBetween(){return this.operator===ne.Btw}isSet(){return this.operator===ne.In}}class Ti{constructor(e){l(this,"model","");l(this,"field","");l(this,"value","");l(this,"wheres",[]);P.BuildClass(this,e)}static Create(e){const i=new Ti;return i.model=e.GetClassName(),i}eq(e){return e.model===this.model&&e.field===this.field}addWhere(e,i){const r=this.findWhere({field:e,operator:i});if(r)return r;const o=_n.Create(e,i);return this.wheres.push(o),o}findWhere(e){return this.wheres.find(i=>i.eq(e))}}let Yr=class la{constructor(e){l(this,"id");l(this,"model","");l(this,"wheres",[]);l(this,"joins",[]);P.BuildClass(this,e)}static Create(e){const i=new la;return i.model=e.GetClassName(),i}addWhere(e,i){const r=this.findWhere({field:e,operator:i});if(r)return r;const o=_n.Create(e,i);return this.wheres.push(o),o}removeWhere(e){const i=this.wheres.findIndex(r=>r.eq(e));i>-1&&this.wheres.splice(i,1)}addJoin(e){const i=this.findJoin({model:e.GetClassName()});if(i)return i;const r=Ti.Create(e);return this.joins.push(r),r}findJoin(e){return this.joins.find(i=>i.eq(e))}findWhere(e){return this.wheres.find(i=>i.eq(e))}toRef(){return n.ref(this)}};class ot{static Shuffle(e){for(let i=e.length-1;i>0;i--){const r=Math.floor(Math.random()*(i+1));[e[i],e[r]]=[e[r],e[i]]}}static GenerateNumsRange(e,i,r=1){return Array.from({length:(i-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((i,r)=>i.order=r)}static Refill(e,i){e.splice(0,e.length),e.push(...i)}static Eq(e,i){return e.length===i.length&&(e==null?void 0:e.every((r,o)=>e[o]==i[o]))}static SwipeById(e,i,r){const o=e.findIndex(a=>i.id===a.id),s=e.findIndex(a=>r.id===a.id);o||s||([e[o],e[s]]=[e[s],e[o]])}static Swap(e,i,r){if(i<0||i>=e.length||r<0||r>=e.length)return;const o=e[i];e[i]=e[r],e[r]=o}static MoveUp(e,i){e[i].order=i-1,e[i-1]&&(e[i-1].order=i),[e[i],e[i-1]]=[e[i-1],e[i]]}static MoveDown(e,i){e[i].order=i+1,e[i+1]&&(e[i+1].order=i),[e[i],e[i+1]]=[e[i+1],e[i]]}}var ue=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t.ArrayString="arrayString",t.ArrayNumber="arrayNumber",t))(ue||{}),Oa=Object.defineProperty,Fa=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&Oa(e,i,o),o};const Jr=class vn{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",ne.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",ue.String);l(this,"set",[]);l(this,"isSet",!1);l(this,"joinTable","");l(this,"joinTableModel","");l(this,"joinTableFk","");l(this,"joinTablePk","");l(this,"joinTableId","");l(this,"joinTableIdCol","");P.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===ue.Join){const i=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===ne.In?i&&ot.Eq(this.set,e.set):i}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===ue.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===ue.String?this.value1===(e==null?void 0:e.value1):this.type===ue.Join&&this.set.length?ot.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",i=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===ue.Boolean?`"boolean":${this.boolean}`:"",d=this.type===ue.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===ue.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===ue.Number?`"number":${this.number}`:"",f=this.type===ue.Set||this.operator===ne.In?`"set":${JSON.stringify(this.set)}`:"",h=this.type===ue.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,i,r,o,s,a,d,c,u,f,h].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===ne.Eq||this.operator===ne.Gt||this.operator===ne.Lt}isBetweenFilter(){return this.operator===ne.Btw}isSetFilter(){return this.operator===ne.In}static Create(e,i,r){const o=new vn;return o.model=e.GetClassName(),o.col=i??"",o.type=r,o.type===ue.Number&&(o.value1="0"),o.type===ue.String&&(o.value1=""),o.type===ue.Boolean&&(o.value1="false",o.operator=ne.Eq),o}static CreateFilterModelWithJoin(e,i,r,o,s,a,d,c){const u=new vn;return u.id=ut(),u.joinTable=r,u.joinTablePk=o,u.joinTableFk=s,u.col=i,u.type=a,d&&(u.joinTableId=d),c&&(u.joinTableIdCol=c),u}static CreateFilterModelWithJoinV2(e,i,r,o,s,a,d){const c=new vn;return c.model=e,c.joinTableModel=r,c.joinTablePk=o,c.joinTableFk=s,c.col=i,c.type=ue.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,i){const r=new vn;return r.id=ut(),r.model=Z.ToCamelCase(e.GetClassName()),r.joinTableModel=Z.ToCamelCase(i.GetClassName()),r.type=ue.Join,r}addToSet(...e){e.forEach(i=>{if(this.set.indexOf(i)===-1){this.set.push(i);return}this.set=this.set.filter(r=>r!==i)})}pushToSet(...e){e.forEach(i=>{this.set.indexOf(i)===-1&&this.set.push(i)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return n.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,i){if(!e&&!i){this.dropDates();return}if(!i){this.setDate1(e),this.operator=ne.Eq;return}this.setDate2(i),this.operator=ne.Btw}};Fa([P.GetClassConstructor(String)],Jr.prototype,"set");let Oi=Jr;class Da{constructor(){l(this,"operation",ne.Lt);l(this,"column","");l(this,"value");l(this,"initial",!0);l(this,"tableName","");l(this,"version","");l(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",i=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,i,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 Un{constructor(e){l(this,"page",0);l(this,"rowsPerPage",25);l(this,"rowsNumber",0);l(this,"cursor",new Da);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");P.BuildClass(this,e)}setLoadMore(e,i,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=ne.Gt,this.cursor.column=i,this.cursor.tableName=r,this.cursorMode=!0}setLoadMoreV2(e,i,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=ne.Gt,this.cursor.column=i,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.page=e}toUrlQuery(){const e=`"offset":${this.offset}`,i=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,o=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,i,r,o,s,a].toString()}fromUrlQuery(){const e=window.location.search,i=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(i));this.page=Number(r.get("offset")),this.rowsPerPage=Number(r.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.rowsPerPage)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.page/this.rowsPerPage+1}drop(){this.page=0,this.rowsPerPage=25,P.BuildClass(this)}}var Oe=(t=>(t.Asc="asc",t.Desc="desc",t))(Oe||{});class qn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);P.BuildClass(this,e)}static Create(e,i,r=Oe.Asc,o,s){const a=new qn;return a.model=e.GetClassName(),a.col=i??"",a.order=r??Oe.Asc,a.label=o??"",a.default=s??!1,a}isAsc(){return this.order===Oe.Asc}isDesc(){return this.order===Oe.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",i=this.col?`"col":"${this.col}"`:"",r=this.order?`"order":"${this.order}"`:"";return[e,i,r].toString()}async fromUrlQuery(){const e=window.location.search,i=e.substring(e.indexOf("s=")+2,e.indexOf("|")),r=new URLSearchParams(decodeURIComponent(i));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=Oe.Asc}desc(){this.order=Oe.Desc}}class jn{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,i){const r=new jn;return r.model=e.GetClassName(),r.cols=i,r}}var La=Object.defineProperty,dn=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&La(e,i,o),o};const _t=(Re=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"f2",[]);l(this,"s",[]);l(this,"p",new Un);l(this,"t",new jn);P.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Re),this.instance}createFrom(e){const i=new Re(JSON.parse(e));this.f=i.f}clearForHTTP(){const e=new Re(this);return e.f=this.f.map(i=>Re.EmptyEntiries(i)),e.f2=this.f2.map(i=>Re.EmptyEntiries(i)),e.s=this.s.map(i=>Re.EmptyEntiries(i)),e.p=Re.EmptyEntiries(this.p),e.t=Re.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(i=>e.id===i.id)}getFirstSortModel(){return ot.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}setF2(e){this.f2.push(e)}replaceF(e,i){this.removeF(i),e&&this.setF(e)}removeF(e){const i=this.f.findIndex(r=>r.eq(e));P.RemoveFromClassByIndex(i,this.f)}reset(){this.f=[],this.s=[],this.p=new Un}resetF(){this.f=[]}},l(Re,"instance"),Re);dn([P.GetClassConstructor(Oi)],_t.prototype,"f"),dn([P.GetClassConstructor(Yr)],_t.prototype,"f2"),dn([P.GetClassConstructor(qn)],_t.prototype,"s"),dn([P.GetClassConstructor(Un)],_t.prototype,"p"),dn([P.GetClassConstructor(jn)],_t.prototype,"t");let st=_t,Ha=(sn=class{},l(sn,"SortModel",qn),l(sn,"FilterModel",Oi),l(sn,"FilterModelV2",Yr),l(sn,"FTSP",st),sn);function Kr(t,e){return function(){return t.apply(e,arguments)}}const{toString:_a}=Object.prototype,{getPrototypeOf:Ut}=Object,{iterator:un,toStringTag:eo}=Symbol,Wn=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),fn=(t,e)=>{let i=t;const r=[];for(;i!=null&&i!==Object.prototype;){if(r.indexOf(i)!==-1)return!1;if(r.push(i),Wn(i,e))return!0;i=Ut(i)}return!1},Ua=(t,e)=>t!=null&&fn(t,e)?t[e]:void 0,Fi=(t=>e=>{const i=_a.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),_e=t=>(t=t.toLowerCase(),e=>Fi(e)===t),Gn=t=>e=>typeof e===t,{isArray:Et}=Array,qt=Gn("undefined");function jt(t){return t!==null&&!qt(t)&&t.constructor!==null&&!qt(t.constructor)&&$e(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const to=_e("ArrayBuffer");function qa(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&to(t.buffer),e}const ja=Gn("string"),$e=Gn("function"),no=Gn("number"),Wt=t=>t!==null&&typeof t=="object",Wa=t=>t===!0||t===!1,Zn=t=>{if(!Wt(t))return!1;const e=Ut(t);return(e===null||e===Object.prototype||Ut(e)===null)&&!fn(t,eo)&&!fn(t,un)},Ga=t=>{if(!Wt(t)||jt(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Za=_e("Date"),Qa=_e("File"),Xa=t=>!!(t&&typeof t.uri<"u"),Ya=t=>t&&typeof t.getParts<"u",Ja=_e("Blob"),Ka=_e("FileList"),el=t=>Wt(t)&&$e(t.pipe);function tl(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const io=tl(),ro=typeof io.FormData<"u"?io.FormData:void 0,nl=t=>{if(!t)return!1;if(ro&&t instanceof ro)return!0;const e=Ut(t);if(!e||e===Object.prototype||!$e(t.append))return!1;const i=Fi(t);return i==="formdata"||i==="object"&&$e(t.toString)&&t.toString()==="[object FormData]"},il=_e("URLSearchParams"),[rl,ol,sl,al]=["ReadableStream","Request","Response","Headers"].map(_e),ll=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hn(t,e,{allOwnKeys:i=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),Et(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(jt(t))return;const s=i?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 oo(t,e){if(jt(t))return null;e=e.toLowerCase();const i=Object.keys(t);let r=i.length,o;for(;r-- >0;)if(o=i[r],e===o.toLowerCase())return o;return null}const Bt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,so=t=>!qt(t)&&t!==Bt;function Di(...t){const{caseless:e,skipUndefined:i}=so(this)&&this||{},r={},o=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const d=e&&typeof a=="string"&&oo(r,a)||a,c=Wn(r,d)?r[d]:void 0;Zn(c)&&Zn(s)?r[d]=Di(c,s):Zn(s)?r[d]=Di({},s):Et(s)?r[d]=s.slice():(!i||!qt(s))&&(r[d]=s)};for(let s=0,a=t.length;s<a;s++){const d=t[s];if(!d||jt(d)||(hn(d,o),typeof d!="object"||Et(d)))continue;const c=Object.getOwnPropertySymbols(d);for(let u=0;u<c.length;u++){const f=c[u];Cl.call(d,f)&&o(d[f],f)}}return r}const cl=(t,e,i,{allOwnKeys:r}={})=>(hn(e,(o,s)=>{i&&$e(o)?Object.defineProperty(t,s,{__proto__:null,value:Kr(o,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),dl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ul=(t,e,i,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),i&&Object.assign(t.prototype,i)},fl=(t,e,i,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=i!==!1&&Ut(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},hl=(t,e,i)=>{t=String(t),(i===void 0||i>t.length)&&(i=t.length),i-=e.length;const r=t.indexOf(e,i);return r!==-1&&r===i},ml=t=>{if(!t)return null;if(Et(t))return t;let e=t.length;if(!no(e))return null;const i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},pl=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ut(Uint8Array)),gl=(t,e)=>{const r=(t&&t[un]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},yl=(t,e)=>{let i;const r=[];for(;(i=t.exec(e))!==null;)r.push(i);return r},wl=_e("HTMLFormElement"),bl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:Cl}=Object.prototype,Sl=_e("RegExp"),ao=(t,e)=>{const i=Object.getOwnPropertyDescriptors(t),r={};hn(i,(o,s)=>{let a;(a=e(o,s,t))!==!1&&(r[s]=a||o)}),Object.defineProperties(t,r)},kl=t=>{ao(t,(e,i)=>{if($e(t)&&["arguments","caller","callee"].includes(i))return!1;const r=t[i];if($e(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},xl=(t,e)=>{const i={},r=o=>{o.forEach(s=>{i[s]=!0})};return Et(t)?r(t):r(String(t).split(e)),i},El=()=>{},Bl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function $l(t){return!!(t&&$e(t.append)&&t[eo]==="FormData"&&t[un])}const Ml=t=>{const e=new WeakSet,i=r=>{if(Wt(r)){if(e.has(r))return;if(jt(r))return r;if(!("toJSON"in r)){e.add(r);const o=Et(r)?[]:{};return hn(r,(s,a)=>{const d=i(s);!qt(d)&&(o[a]=d)}),e.delete(r),o}}return r};return i(t)},Rl=_e("AsyncFunction"),Il=t=>t&&(Wt(t)||$e(t))&&$e(t.then)&&$e(t.catch),lo=((t,e)=>t?setImmediate:e?((i,r)=>(Bt.addEventListener("message",({source:o,data:s})=>{o===Bt&&s===i&&r.length&&r.shift()()},!1),o=>{r.push(o),Bt.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",$e(Bt.postMessage)),Pl=typeof queueMicrotask<"u"?queueMicrotask.bind(Bt):typeof process<"u"&&process.nextTick||lo,co=t=>t!=null&&$e(t[un]),p={isArray:Et,isArrayBuffer:to,isBuffer:jt,isFormData:nl,isArrayBufferView:qa,isString:ja,isNumber:no,isBoolean:Wa,isObject:Wt,isPlainObject:Zn,isEmptyObject:Ga,isReadableStream:rl,isRequest:ol,isResponse:sl,isHeaders:al,isUndefined:qt,isDate:Za,isFile:Qa,isReactNativeBlob:Xa,isReactNative:Ya,isBlob:Ja,isRegExp:Sl,isFunction:$e,isStream:el,isURLSearchParams:il,isTypedArray:pl,isFileList:Ka,forEach:hn,merge:Di,extend:cl,trim:ll,stripBOM:dl,inherits:ul,toFlatObject:fl,kindOf:Fi,kindOfTest:_e,endsWith:hl,toArray:ml,forEachEntry:gl,matchAll:yl,isHTMLForm:wl,hasOwnProperty:Wn,hasOwnProp:Wn,hasOwnInPrototypeChain:fn,getSafeProp:Ua,reduceDescriptors:ao,freezeMethods:kl,toObjectSet:xl,toCamelCase:bl,noop:El,toFiniteNumber:Bl,findKey:oo,global:Bt,isContextDefined:so,isSpecCompliantForm:$l,toJSONObject:Ml,isAsyncFn:Rl,isThenable:Il,setImmediate:lo,asap:Pl,isIterable:co,isSafeIterable:t=>t!=null&&fn(t,un)&&co(t)},Al=p.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"]),Nl=t=>{const e={};let i,r,o;return t&&t.split(`
|
|
15
|
-
`).forEach(function(a){
|
|
16
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...i){const r=new this(e);return i.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[fo]=this[fo]={accessors:{}}).accessors,o=this.prototype;function s(a){const d=mn(a);r[d]||(Hl(o,a),r[d]=!0)}return p.isArray(e)?e.forEach(s):s(e),this}};Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),p.reduceDescriptors(Se.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[i]=r}}}),p.freezeMethods(Se);const _l="[REDACTED ****]";function Ul(t){if(p.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(p.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function ql(t,e){const i=new Set(e.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||p.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof Se&&(s=s.toJSON()),r.push(s);let a;if(p.isArray(s))a=[],s.forEach((d,c)=>{const u=o(d);p.isUndefined(u)||(a[c]=u)});else{if(!p.isPlainObject(s)&&Ul(s))return r.pop(),s;a=Object.create(null);for(const[d,c]of Object.entries(s)){const u=i.has(d.toLowerCase())?_l:o(c);p.isUndefined(u)||(a[d]=u)}}return r.pop(),a};return o(t)}let R=class ca extends Error{static from(e,i,r,o,s,a){const d=new ca(e.message,i||e.code,r,o,s);return Object.defineProperty(d,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),d.name=e.name,e.status!=null&&d.status==null&&(d.status=e.status),a&&Object.assign(d,a),d}constructor(e,i,r,o,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const e=this.config,i=e&&p.hasOwnProp(e,"redact")?e.redact:void 0,r=p.isArray(i)&&i.length>0?ql(e,i):p.toJSONObject(e);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:r,code:this.code,status:this.status}}};R.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",R.ERR_BAD_OPTION="ERR_BAD_OPTION",R.ECONNABORTED="ECONNABORTED",R.ETIMEDOUT="ETIMEDOUT",R.ECONNREFUSED="ECONNREFUSED",R.ERR_NETWORK="ERR_NETWORK",R.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",R.ERR_DEPRECATED="ERR_DEPRECATED",R.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",R.ERR_BAD_REQUEST="ERR_BAD_REQUEST",R.ERR_CANCELED="ERR_CANCELED",R.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",R.ERR_INVALID_URL="ERR_INVALID_URL",R.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const jl=null,ho=100;function _i(t){return p.isPlainObject(t)||p.isArray(t)}function mo(t){return p.endsWith(t,"[]")?t.slice(0,-2):t}function Ui(t,e,i){return t?t.concat(e).map(function(o,s){return o=mo(o),!i&&s?"["+o+"]":o}).join(i?".":""):e}function Wl(t){return p.isArray(t)&&!t.some(_i)}const Gl=p.toFlatObject(p,{},null,function(e){return/^is[A-Z]/.test(e)});function Xn(t,e,i){if(!p.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,i=p.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,B){return!p.isUndefined(B[A])});const r=i.metaTokens,o=i.visitor||w,s=i.dots,a=i.indexes,d=i.Blob||typeof Blob<"u"&&Blob,c=i.maxDepth===void 0?ho:i.maxDepth,u=d&&p.isSpecCompliantForm(e),f=[];if(!p.isFunction(o))throw new TypeError("visitor must be a function");function h(C){if(C===null)return"";if(p.isDate(C))return C.toISOString();if(p.isBoolean(C))return C.toString();if(!u&&p.isBlob(C))throw new R("Blob is not supported. Use a Buffer instead.");if(p.isArrayBuffer(C)||p.isTypedArray(C)){if(u&&typeof d=="function")return new d([C]);if(typeof Buffer<"u")return Buffer.from(C);throw new R("Blob is not supported. Use a Buffer instead.",R.ERR_NOT_SUPPORT)}return C}function m(C){if(C>c)throw new R("Object is too deeply nested ("+C+" levels). Max depth: "+c,R.ERR_FORM_DATA_DEPTH_EXCEEDED)}function y(C,A){if(c===1/0)return JSON.stringify(C);const B=[];return JSON.stringify(C,function(T,U){if(!p.isObject(U))return U;for(;B.length&&B[B.length-1]!==this;)B.pop();return B.push(U),m(A+B.length-1),U})}function w(C,A,B){let V=C;if(p.isReactNative(e)&&p.isReactNativeBlob(C))return e.append(Ui(B,A,s),h(C)),!1;if(C&&!B&&typeof C=="object"){if(p.endsWith(A,"{}"))A=r?A:A.slice(0,-2),C=y(C,1);else if(p.isArray(C)&&Wl(C)||(p.isFileList(C)||p.endsWith(A,"[]"))&&(V=p.toArray(C)))return A=mo(A),V.forEach(function(U,Be){!(p.isUndefined(U)||U===null)&&e.append(a===!0?Ui([A],Be,s):a===null?A:A+"[]",h(U))}),!1}return _i(C)?!0:(e.append(Ui(B,A,s),h(C)),!1)}const k=Object.assign(Gl,{defaultVisitor:w,convertValue:h,isVisitable:_i});function x(C,A,B=0){if(!p.isUndefined(C)){if(m(B),f.indexOf(C)!==-1)throw new Error("Circular reference detected in "+A.join("."));f.push(C),p.forEach(C,function(T,U){(!(p.isUndefined(T)||T===null)&&o.call(e,T,p.isString(U)?U.trim():U,A,k))===!0&&x(T,A?A.concat(U):[U],B+1)}),f.pop()}}if(!p.isObject(t))throw new TypeError("data must be an object");return x(t),e}function po(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function qi(t,e){this._pairs=[],t&&Xn(t,this,e)}const go=qi.prototype;go.append=function(e,i){this._pairs.push([e,i])},go.toString=function(e){const i=e?r=>e.call(this,r,po):po;return this._pairs.map(function(o){return i(o[0])+"="+i(o[1])},"").join("&")};function Zl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function yo(t,e,i){if(!e)return t;t=t||"";const r=p.isFunction(i)?{serialize:i}:i,o=p.getSafeProp(r,"encode")||Zl,s=p.getSafeProp(r,"serialize");let a;if(s?a=s(e,r):a=p.isURLSearchParams(e)?e.toString():new qi(e,r).toString(o),a){const d=t.indexOf("#");d!==-1&&(t=t.slice(0,d)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class wo{constructor(){this.handlers=[]}use(e,i,r){return this.handlers.push({fulfilled:e,rejected:i,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){p.forEach(this.handlers,function(r){r!==null&&e(r)})}}const ji={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Ql={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:qi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Wi=typeof window<"u"&&typeof document<"u",Gi=typeof navigator=="object"&&navigator||void 0,Xl=Wi&&(!Gi||["ReactNative","NativeScript","NS"].indexOf(Gi.product)<0),Yl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Jl=Wi&&window.location.href||"http://localhost",we={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wi,hasStandardBrowserEnv:Xl,hasStandardBrowserWebWorkerEnv:Yl,navigator:Gi,origin:Jl},Symbol.toStringTag,{value:"Module"})),...Ql};function Kl(t,e){return Xn(t,new we.classes.URLSearchParams,{visitor:function(i,r,o,s){return we.isNode&&p.isBuffer(i)?(this.append(r,i.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}const bo=ho;function Co(t){if(t>bo)throw new R("FormData field is too deeply nested ("+t+" levels). Max depth: "+bo,R.ERR_FORM_DATA_DEPTH_EXCEEDED)}function ec(t){const e=[],i=/\w+|\[(\w*)]/g;let r;for(;(r=i.exec(t))!==null;)Co(e.length),e.push(r[0]==="[]"?"":r[1]||r[0]);return e}function tc(t){const e={},i=Object.keys(t);let r;const o=i.length;let s;for(r=0;r<o;r++)s=i[r],e[s]=t[s];return e}function So(t){function e(i,r,o,s){Co(s);let a=i[s++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),c=s>=i.length;return a=!a&&p.isArray(o)?o.length:a,c?(p.hasOwnProp(o,a)?o[a]=p.isArray(o[a])?o[a].concat(r):[o[a],r]:o[a]=r,!d):((!p.hasOwnProp(o,a)||!p.isObject(o[a]))&&(o[a]=[]),e(i,r,o[a],s)&&p.isArray(o[a])&&(o[a]=tc(o[a])),!d)}if(p.isFormData(t)&&p.isFunction(t.entries)){const i={};return p.forEachEntry(t,(r,o)=>{e(ec(r),o,i,0)}),i}return null}const Gt=(t,e)=>t!=null&&p.hasOwnProp(t,e)?t[e]:void 0;function nc(t,e,i){if(p.isString(t))try{return(e||JSON.parse)(t),p.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(i||JSON.stringify)(t)}const pn={transitional:ji,adapter:["xhr","http","fetch"],transformRequest:[function(e,i){const r=i.getContentType()||"",o=r.indexOf("application/json")>-1,s=p.isObject(e);if(s&&p.isHTMLForm(e)&&(e=new FormData(e)),p.isFormData(e))return o?JSON.stringify(So(e)):e;if(p.isArrayBuffer(e)||p.isBuffer(e)||p.isStream(e)||p.isFile(e)||p.isBlob(e)||p.isReadableStream(e))return e;if(p.isArrayBufferView(e))return e.buffer;if(p.isURLSearchParams(e))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(s){const c=Gt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Kl(e,c).toString();if((d=p.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=Gt(this,"env"),f=u&&u.FormData;return Xn(d?{"files[]":e}:e,f&&new f,c)}}return s||o?(i.setContentType("application/json",!1),nc(e)):e}],transformResponse:[function(e){const i=Gt(this,"transitional")||pn.transitional,r=i&&i.forcedJSONParsing,o=Gt(this,"responseType"),s=o==="json";if(p.isResponse(e)||p.isReadableStream(e))return e;if(e&&p.isString(e)&&(r&&!o||s)){const d=!(i&&i.silentJSONParsing)&&s;try{return JSON.parse(e,Gt(this,"parseReviver"))}catch(c){if(d)throw c.name==="SyntaxError"?R.from(c,R.ERR_BAD_RESPONSE,this,null,Gt(this,"response")):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:we.classes.FormData,Blob:we.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch","query"],t=>{pn.headers[t]={}});function Zi(t,e){const i=this||pn,r=e||i,o=Se.from(r.headers);let s=r.data;return p.forEach(t,function(d){s=d.call(i,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function ko(t){return!!(t&&t.__CANCEL__)}let gn=class extends R{constructor(e,i,r){super(e??"canceled",R.ERR_CANCELED,i,r),this.name="CanceledError",this.__CANCEL__=!0}};function xo(t,e,i){const r=i.config.validateStatus;!i.status||!r||r(i.status)?t(i):e(new R("Request failed with status code "+i.status,i.status>=400&&i.status<500?R.ERR_BAD_REQUEST:R.ERR_BAD_RESPONSE,i.config,i.request,i))}function ic(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function rc(t,e){t=t||10;const i=new Array(t),r=new Array(t);let o=0,s=0,a;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),f=r[s];a||(a=u),i[o]=c,r[o]=u;let h=s,m=0;for(;h!==o;)m+=i[h++],h=h%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-a<e)return;const y=f&&u-f;return y?Math.round(m*1e3/y):void 0}}function oc(t,e){let i=0,r=1e3/e,o,s;const a=(u,f=Date.now())=>{i=f,o=null,s&&(clearTimeout(s),s=null),t(...u)};return[(...u)=>{const f=Date.now(),h=f-i;h>=r?a(u,f):(o=u,s||(s=setTimeout(()=>{s=null,a(o)},r-h)))},()=>o&&a(o)]}const Yn=(t,e,i=3)=>{let r=0;const o=rc(50,250);return oc(s=>{if(!s||typeof s.loaded!="number")return;const a=s.loaded,d=s.lengthComputable?s.total:void 0,c=d!=null?Math.min(a,d):a,u=Math.max(0,c-r),f=o(u);r=Math.max(r,c);const h={loaded:c,total:d,progress:d?c/d:void 0,bytes:u,rate:f||void 0,estimated:f&&d?(d-c)/f:void 0,event:s,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(h)},i)},Eo=(t,e)=>{const i=t!=null;return[r=>e[0]({lengthComputable:i,total:t,loaded:r}),e[1]]},Bo=t=>(...e)=>p.asap(()=>t(...e)),sc=we.hasStandardBrowserEnv?((t,e)=>i=>(i=new URL(i,we.origin),t.protocol===i.protocol&&t.host===i.host&&(e||t.port===i.port)))(new URL(we.origin),we.navigator&&/(msie|trident)/i.test(we.navigator.userAgent)):()=>!0,ac=we.hasStandardBrowserEnv?{write(t,e,i,r,o,s,a){if(typeof document>"u")return;const d=[`${t}=${encodeURIComponent(e)}`];p.isNumber(i)&&d.push(`expires=${new Date(i).toUTCString()}`),p.isString(r)&&d.push(`path=${r}`),p.isString(o)&&d.push(`domain=${o}`),s===!0&&d.push("secure"),p.isString(a)&&d.push(`SameSite=${a}`),document.cookie=d.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let i=0;i<e.length;i++){const r=e[i].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===t)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function lc(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function cc(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}const dc=/^https?:(?!\/\/)/i,uc=/[\t\n\r]/g;function fc(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function hc(t){return fc(t).replace(uc,"")}function $o(t,e){if(typeof t=="string"&&dc.test(hc(t)))throw new R('Invalid URL: missing "//" after protocol',R.ERR_INVALID_URL,e)}function Mo(t,e,i,r){$o(e,r);let o=!lc(e);return t&&(o||i===!1)?($o(t,r),cc(t,e)):e}const Ro=t=>t instanceof Se?{...t}:t;function $t(t,e){t=t||{},e=e||{};const i=Object.create(null);Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,h,m,y){return p.isPlainObject(f)&&p.isPlainObject(h)?p.merge.call({caseless:y},f,h):p.isPlainObject(h)?p.merge({},h):p.isArray(h)?h.slice():h}function o(f,h,m,y){if(p.isUndefined(h)){if(!p.isUndefined(f))return r(void 0,f,m,y)}else return r(f,h,m,y)}function s(f,h){if(!p.isUndefined(h))return r(void 0,h)}function a(f,h){if(p.isUndefined(h)){if(!p.isUndefined(f))return r(void 0,f)}else return r(void 0,h)}function d(f){const h=p.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!p.isUndefined(h))if(p.isPlainObject(h)){if(p.hasOwnProp(h,f))return h[f]}else return;const m=p.hasOwnProp(t,"transitional")?t.transitional:void 0;if(p.isPlainObject(m)&&p.hasOwnProp(m,f))return m[f]}function c(f,h,m){if(p.hasOwnProp(e,m))return r(f,h);if(p.hasOwnProp(t,m))return r(void 0,f)}const u={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,allowedSocketPaths:a,responseEncoding:a,validateStatus:c,headers:(f,h,m)=>o(Ro(f),Ro(h),m,!0)};return p.forEach(Object.keys({...t,...e}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const m=p.hasOwnProp(u,h)?u[h]:o,y=p.hasOwnProp(t,h)?t[h]:void 0,w=p.hasOwnProp(e,h)?e[h]:void 0,k=m(y,w,h);p.isUndefined(k)&&m!==c||(i[h]=k)}),p.hasOwnProp(e,"validateStatus")&&p.isUndefined(e.validateStatus)&&d("validateStatusUndefinedResolves")===!1&&(p.hasOwnProp(t,"validateStatus")?i.validateStatus=r(void 0,t.validateStatus):delete i.validateStatus),i}const mc=["content-type","content-length"];function pc(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([r,o])=>{mc.includes(r.toLowerCase())&&t.set(r,o)})}const gc=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16)));function Io(t){const e=$t({},t),i=m=>p.hasOwnProp(e,m)?e[m]:void 0,r=i("data");let o=i("withXSRFToken");const s=i("xsrfHeaderName"),a=i("xsrfCookieName");let d=i("headers");const c=i("auth"),u=i("baseURL"),f=i("allowAbsoluteUrls"),h=i("url");if(e.headers=d=Se.from(d),e.url=yo(Mo(u,h,f,e),i("params"),i("paramsSerializer")),c){const m=p.getSafeProp(c,"username")||"",y=p.getSafeProp(c,"password")||"";try{d.set("Authorization","Basic "+btoa(m+":"+(y?gc(y):"")))}catch(w){throw R.from(w,R.ERR_BAD_OPTION_VALUE,t)}}if(p.isFormData(r)&&(we.hasStandardBrowserEnv||we.hasStandardBrowserWebWorkerEnv||p.isReactNative(r)?d.setContentType(void 0):p.isFunction(r.getHeaders)&&pc(d,r.getHeaders(),i("formDataHeaderPolicy"))),we.hasStandardBrowserEnv&&(p.isFunction(o)&&(o=o(e)),o===!0||o==null&&sc(e.url))){const y=s&&a&&ac.read(a);y&&d.set(s,y)}return e}const yc=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(i,r){const o=Io(t);let s=o.data;const a=Se.from(o.headers).normalize();let{responseType:d,onUploadProgress:c,onDownloadProgress:u}=o,f,h,m,y,w;function k(){y&&y(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function C(){if(!x)return;const B=Se.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),T={data:!d||d==="text"||d==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:B,config:t,request:x};xo(function(Be){i(Be),k()},function(Be){r(Be),k()},T),x=null}"onloadend"in x?x.onloadend=C:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.startsWith("file:"))||setTimeout(C)},x.onabort=function(){x&&(r(new R("Request aborted",R.ECONNABORTED,t,x)),k(),x=null)},x.onerror=function(V){const T=V&&V.message?V.message:"Network Error",U=new R(T,R.ERR_NETWORK,t,x);U.event=V||null,r(U),k(),x=null},x.ontimeout=function(){let V=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||ji;o.timeoutErrorMessage&&(V=o.timeoutErrorMessage),r(new R(V,T.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,t,x)),k(),x=null},s===void 0&&a.setContentType(null),"setRequestHeader"in x&&p.forEach(uo(a),function(V,T){x.setRequestHeader(T,V)}),p.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),d&&d!=="json"&&(x.responseType=o.responseType),u&&([m,w]=Yn(u,!0),x.addEventListener("progress",m)),c&&x.upload&&([h,y]=Yn(c),x.upload.addEventListener("progress",h),x.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(f=B=>{x&&(r(!B||B.type?new gn(null,t,x):B),x.abort(),k(),x=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const A=ic(o.url);if(A&&!we.protocols.includes(A)){r(new R("Unsupported protocol "+A+":",R.ERR_BAD_REQUEST,t)),k();return}x.send(s||null)})},wc=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const i=new AbortController;let r=!1;const o=function(c){if(!r){r=!0,a();const u=c instanceof Error?c:this.reason;i.abort(u instanceof R?u:new gn(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{s=null,o(new R(`timeout of ${e}ms exceeded`,R.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),t=null)};t.forEach(c=>c.addEventListener("abort",o,{once:!0}));const{signal:d}=i;return d.unsubscribe=()=>p.asap(a),d},bc=function*(t,e){let i=t.byteLength;if(i<e){yield t;return}let r=0,o;for(;r<i;)o=r+e,yield t.slice(r,o),r=o},Cc=async function*(t,e){for await(const i of Sc(t))yield*bc(i,e)},Sc=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:i,value:r}=await e.read();if(i)break;yield r}}finally{await e.cancel()}},Po=(t,e,i,r)=>{const o=Cc(t,e);let s=0,a,d=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await o.next();if(u){d(),c.close();return}let h=f.byteLength;if(i){let m=s+=h;i(m)}c.enqueue(new Uint8Array(f))}catch(u){throw d(u),u}},cancel(c){return d(c),o.return()}},{highWaterMark:2})},Jn=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,kc=(t,e,i)=>e+2<i&&Jn(t.charCodeAt(e+1))&&Jn(t.charCodeAt(e+2));function xc(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const i=t.slice(5,e),r=t.slice(e+1);if(/;base64/i.test(i)){let a=r.length;const d=r.length;for(let y=0;y<d;y++)if(r.charCodeAt(y)===37&&y+2<d){const w=r.charCodeAt(y+1),k=r.charCodeAt(y+2);Jn(w)&&Jn(k)&&(a-=2,y+=2)}let c=0,u=d-1;const f=y=>y>=2&&r.charCodeAt(y-2)===37&&r.charCodeAt(y-1)===51&&(r.charCodeAt(y)===68||r.charCodeAt(y)===100);u>=0&&(r.charCodeAt(u)===61?(c++,u--):f(u)&&(c++,u-=3)),c===1&&u>=0&&(r.charCodeAt(u)===61||f(u))&&c++;const m=Math.floor(a/4)*3-(c||0);return m>0?m:0}let s=0;for(let a=0,d=r.length;a<d;a++){const c=r.charCodeAt(a);if(c===37&&kc(r,a,d))s+=1,a+=2;else if(c<128)s+=1;else if(c<2048)s+=2;else if(c>=55296&&c<=56319&&a+1<d){const u=r.charCodeAt(a+1);u>=56320&&u<=57343?(s+=4,a++):s+=3}else s+=3}return s}const Qi="1.18.1",Ao=64*1024,{isFunction:Kn}=p,Ec=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16))),No=t=>{if(!p.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},vo=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Bc=t=>{const e=t.indexOf("://");let i=t;return e!==-1&&(i=i.slice(e+3)),i.includes("@")||i.includes(":")},$c=t=>{const e=p.global!==void 0&&p.global!==null?p.global:globalThis,{ReadableStream:i,TextEncoder:r}=e;t=p.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:o,Request:s,Response:a}=t,d=o?Kn(o):typeof fetch=="function",c=Kn(s),u=Kn(a);if(!d)return!1;const f=d&&Kn(i),h=d&&(typeof r=="function"?(C=>A=>C.encode(A))(new r):async C=>new Uint8Array(await new s(C).arrayBuffer())),m=c&&f&&vo(()=>{let C=!1;const A=new s(we.origin,{body:new i,method:"POST",get duplex(){return C=!0,"half"}}),B=A.headers.has("Content-Type");return A.body!=null&&A.body.cancel(),C&&!B}),y=u&&f&&vo(()=>p.isReadableStream(new a("").body)),w={stream:y&&(C=>C.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(C=>{!w[C]&&(w[C]=(A,B)=>{let V=A&&A[C];if(V)return V.call(A);throw new R(`Response type '${C}' is not supported`,R.ERR_NOT_SUPPORT,B)})});const k=async C=>{if(C==null)return 0;if(p.isBlob(C))return C.size;if(p.isSpecCompliantForm(C))return(await new s(we.origin,{method:"POST",body:C}).arrayBuffer()).byteLength;if(p.isArrayBufferView(C)||p.isArrayBuffer(C))return C.byteLength;if(p.isURLSearchParams(C)&&(C=C+""),p.isString(C))return(await h(C)).byteLength},x=async(C,A)=>{const B=p.toFiniteNumber(C.getContentLength());return B??k(A)};return async C=>{let{url:A,method:B,data:V,signal:T,cancelToken:U,timeout:Be,onDownloadProgress:Vt,onUploadProgress:zt,responseType:Ne,headers:nt,withCredentials:an="same-origin",fetchOptions:Bi,maxContentLength:ve,maxBodyLength:bt}=Io(C);const Ct=p.isNumber(ve)&&ve>-1,ln=p.isNumber(bt)&&bt>-1,$i=Y=>p.hasOwnProp(C,Y)?C[Y]:void 0;let $n=o||fetch;Ne=Ne?(Ne+"").toLowerCase():"text";let je=wc([T,U&&U.toAbortSignal()],Be),ae=null;const F=je&&je.unsubscribe&&(()=>{je.unsubscribe()});let Ve,Tt=null;const re=()=>new R("Request body larger than maxBodyLength limit",R.ERR_BAD_REQUEST,C,ae);try{let Y;const Ie=$i("auth");if(Ie){const _=p.getSafeProp(Ie,"username")||"",Ee=p.getSafeProp(Ie,"password")||"";Y={username:_,password:Ee}}if(Bc(A)){const _=new URL(A,we.origin);if(!Y&&(_.username||_.password)){const Ee=No(_.username),We=No(_.password);Y={username:Ee,password:We}}(_.username||_.password)&&(_.username="",_.password="",A=_.href)}if(Y&&(nt.delete("authorization"),nt.set("Authorization","Basic "+btoa(Ec((Y.username||"")+":"+(Y.password||""))))),Ct&&typeof A=="string"&&A.startsWith("data:")&&xc(A)>ve)throw new R("maxContentLength size of "+ve+" exceeded",R.ERR_BAD_RESPONSE,C,ae);if(ln&&B!=="get"&&B!=="head"){const _=await k(V);if(typeof _=="number"&&isFinite(_)&&(Ve=_,_>bt))throw re()}const Ot=ln&&(p.isReadableStream(V)||p.isStream(V)),Mi=(_,Ee,We)=>Po(_,Ao,it=>{if(ln&&it>bt)throw Tt=re();Ee&&Ee(it)},We);if(m&&B!=="get"&&B!=="head"&&(zt||Ot)){if(Ve=Ve??await x(nt,V),Ve!==0||Ot){let _=new s(A,{method:"POST",body:V,duplex:"half"}),Ee;if(p.isFormData(V)&&(Ee=_.headers.get("content-type"))&&nt.setContentType(Ee),_.body){const[We,it]=zt&&Eo(Ve,Yn(Bo(zt)))||[];V=Mi(_.body,We,it)}}}else if(Ot&&!c&&f&&B!=="get"&&B!=="head")V=Mi(V);else if(Ot&&c&&!m&&B!=="get"&&B!=="head")throw new R("Stream request bodies are not supported by the current fetch implementation",R.ERR_NOT_SUPPORT,C,ae);p.isString(an)||(an=an?"include":"omit");const He=c&&"credentials"in s.prototype;if(p.isFormData(V)){const _=nt.getContentType();_&&/^multipart\/form-data/i.test(_)&&!/boundary=/i.test(_)&&nt.delete("content-type")}nt.set("User-Agent","axios/"+Qi,!1);const Mn={...Bi,signal:je,method:B.toUpperCase(),headers:uo(nt.normalize()),body:V,duplex:"half",credentials:He?an:void 0};ae=c&&new s(A,Mn);let Pe=await(c?$n(ae,Bi):$n(A,Mn));const Rn=Se.from(Pe.headers);if(Ct){const _=p.toFiniteNumber(Rn.getContentLength());if(_!=null&&_>ve)throw new R("maxContentLength size of "+ve+" exceeded",R.ERR_BAD_RESPONSE,C,ae)}const In=y&&(Ne==="stream"||Ne==="response");if(y&&Pe.body&&(Vt||Ct||In&&F)){const _={};["status","statusText","headers"].forEach(Ft=>{_[Ft]=Pe[Ft]});const Ee=p.toFiniteNumber(Rn.getContentLength()),[We,it]=Vt&&Eo(Ee,Yn(Bo(Vt),!0))||[];let Pn=0;const An=Ft=>{if(Ct&&(Pn=Ft,Pn>ve))throw new R("maxContentLength size of "+ve+" exceeded",R.ERR_BAD_RESPONSE,C,ae);We&&We(Ft)};Pe=new a(Po(Pe.body,Ao,An,()=>{it&&it(),F&&F()}),_)}Ne=Ne||"text";let ze=await w[p.findKey(w,Ne)||"text"](Pe,C);if(Ct&&!y&&!In){let _;if(ze!=null&&(typeof ze.byteLength=="number"?_=ze.byteLength:typeof ze.size=="number"?_=ze.size:typeof ze=="string"&&(_=typeof r=="function"?new r().encode(ze).byteLength:ze.length)),typeof _=="number"&&_>ve)throw new R("maxContentLength size of "+ve+" exceeded",R.ERR_BAD_RESPONSE,C,ae)}return!In&&F&&F(),await new Promise((_,Ee)=>{xo(_,Ee,{data:ze,headers:Se.from(Pe.headers),status:Pe.status,statusText:Pe.statusText,config:C,request:ae})})}catch(Y){if(F&&F(),je&&je.aborted&&je.reason instanceof R){const Ie=je.reason;throw Ie.config=C,ae&&(Ie.request=ae),Y!==Ie&&Object.defineProperty(Ie,"cause",{__proto__:null,value:Y,writable:!0,enumerable:!1,configurable:!0}),Ie}if(Tt)throw ae&&!Tt.request&&(Tt.request=ae),Tt;if(Y instanceof R)throw ae&&!Y.request&&(Y.request=ae),Y;if(Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)){const Ie=new R("Network Error",R.ERR_NETWORK,C,ae,Y&&Y.response);throw Object.defineProperty(Ie,"cause",{__proto__:null,value:Y.cause||Y,writable:!0,enumerable:!1,configurable:!0}),Ie}throw R.from(Y,Y&&Y.code,C,ae,Y&&Y.response)}}},Mc=new Map,Vo=t=>{let e=t&&t.env||{};const{fetch:i,Request:r,Response:o}=e,s=[r,o,i];let a=s.length,d=a,c,u,f=Mc;for(;d--;)c=s[d],u=f.get(c),u===void 0&&f.set(c,u=d?new Map:$c(e)),f=u;return u};Vo();const Xi={http:jl,xhr:yc,fetch:{get:Vo}};p.forEach(Xi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const zo=t=>`- ${t}`,Rc=t=>p.isFunction(t)||t===null||t===!1;function Ic(t,e){t=p.isArray(t)?t:[t];const{length:i}=t;let r,o;const s={};for(let a=0;a<i;a++){r=t[a];let d;if(o=r,!Rc(r)&&(o=Xi[(d=String(r)).toLowerCase()],o===void 0))throw new R(`Unknown adapter '${d}'`);if(o&&(p.isFunction(o)||(o=o.get(e))))break;s[d||"#"+a]=o}if(!o){const a=Object.entries(s).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let d=i?a.length>1?`since :
|
|
17
|
-
`+a.map(
|
|
18
|
-
`):" "+
|
|
19
|
-
`);return a===-1?"":
|
|
14
|
+
***************************************************************************** */var Hr;(function(n){(function(e){var i=typeof globalThis=="object"?globalThis:typeof Lr=="object"?Lr:typeof self=="object"?self:typeof this=="object"?this:d(),o=r(n);typeof i.Reflect<"u"&&(o=r(i.Reflect,o)),e(o,i),typeof i.Reflect>"u"&&(i.Reflect=n);function r(c,u){return function(f,h){Object.defineProperty(c,f,{configurable:!0,writable:!0,value:h}),u&&u(f,h)}}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,i){var o=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",s=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!d&&!c,f={create:d?function(){return fi(Object.create(null))}:c?function(){return fi({__proto__:null})}:function(){return fi({})},has:u?function(S,E){return o.call(S,E)}:function(S,E){return E in S},get:u?function(S,E){return o.call(S,E)?S[E]:void 0}:function(S,E){return S[E]}},h=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Un(),w=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Br(),C=typeof WeakMap=="function"?WeakMap:$r(),B=r?Symbol.for("@reflect-metadata:registry"):void 0,$=co(),x=xr($);function M(S,E,N,A){if(j(N)){if(!Lt(S))throw new TypeError;if(!mn(E))throw new TypeError;return ke(S,E)}else{if(!Lt(S))throw new TypeError;if(!ge(E))throw new TypeError;if(!ge(A)&&!j(A)&&!Le(A))throw new TypeError;return Le(A)&&(A=void 0),N=Xe(N),hn(S,E,N,A)}}e("decorate",M);function k(S,E){function N(A,Y){if(!ge(A))throw new TypeError;if(!j(Y)&&!be(Y))throw new TypeError;mt(S,E,A,Y)}return N}e("metadata",k);function P(S,E,N,A){if(!ge(N))throw new TypeError;return j(A)||(A=Xe(A)),mt(S,E,N,A)}e("defineMetadata",P);function D(S,E,N){if(!ge(E))throw new TypeError;return j(N)||(N=Xe(N)),Ye(S,E,N)}e("hasMetadata",D);function Z(S,E,N){if(!ge(E))throw new TypeError;return j(N)||(N=Xe(N)),It(S,E,N)}e("hasOwnMetadata",Z);function K(S,E,N){if(!ge(E))throw new TypeError;return j(N)||(N=Xe(N)),Vt(S,E,N)}e("getMetadata",K);function fe(S,E,N){if(!ge(E))throw new TypeError;return j(N)||(N=Xe(N)),Xt(S,E,N)}e("getOwnMetadata",fe);function ht(S,E){if(!ge(S))throw new TypeError;return j(E)||(E=Xe(E)),wt(S,E)}e("getMetadataKeys",ht);function Qe(S,E){if(!ge(S))throw new TypeError;return j(E)||(E=Xe(E)),nt(S,E)}e("getOwnMetadataKeys",Qe);function Pe(S,E,N){if(!ge(E))throw new TypeError;if(j(N)||(N=Xe(N)),!ge(E))throw new TypeError;j(N)||(N=Xe(N));var A=gn(E,N,!1);return j(A)?!1:A.OrdinaryDeleteMetadata(S,E,N)}e("deleteMetadata",Pe);function ke(S,E){for(var N=S.length-1;N>=0;--N){var A=S[N],Y=A(E);if(!j(Y)&&!Le(Y)){if(!mn(Y))throw new TypeError;E=Y}}return E}function hn(S,E,N,A){for(var Y=S.length-1;Y>=0;--Y){var Ee=S[Y],Be=Ee(E,N,A);if(!j(Be)&&!Le(Be)){if(!ge(Be))throw new TypeError;A=Be}}return A}function Ye(S,E,N){var A=It(S,E,N);if(A)return!0;var Y=bt(E);return Le(Y)?!1:Ye(S,Y,N)}function It(S,E,N){var A=gn(E,N,!1);return j(A)?!1:We(A.OrdinaryHasOwnMetadata(S,E,N))}function Vt(S,E,N){var A=It(S,E,N);if(A)return Xt(S,E,N);var Y=bt(E);if(!Le(Y))return Vt(S,Y,N)}function Xt(S,E,N){var A=gn(E,N,!1);if(!j(A))return A.OrdinaryGetOwnMetadata(S,E,N)}function mt(S,E,N,A){var Y=gn(N,A,!0);Y.OrdinaryDefineOwnMetadata(S,E,N,A)}function wt(S,E){var N=nt(S,E),A=bt(S);if(A===null)return N;var Y=wt(A,E);if(Y.length<=0)return N;if(N.length<=0)return Y;for(var Ee=new w,Be=[],ne=0,F=N;ne<F.length;ne++){var _=F[ne],L=Ee.has(_);L||(Ee.add(_),Be.push(_))}for(var U=0,te=Y;U<te.length;U++){var _=te[U],L=Ee.has(_);L||(Ee.add(_),Be.push(_))}return Be}function nt(S,E){var N=gn(S,E,!1);return N?N.OrdinaryOwnMetadataKeys(S,E):[]}function we(S){if(S===null)return 1;switch(typeof S){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return S===null?1:6;default:return 6}}function j(S){return S===void 0}function Le(S){return S===null}function Tt(S){return typeof S=="symbol"}function ge(S){return typeof S=="object"?S!==null:typeof S=="function"}function se(S,E){switch(we(S)){case 0:return S;case 1:return S;case 2:return S;case 3:return S;case 4:return S;case 5:return S}var N="string",A=ee(S,s);if(A!==void 0){var Y=A.call(S,N);if(ge(Y))throw new TypeError;return Y}return je(S)}function je(S,E){var N,A;{var Y=S.toString;if(Me(Y)){var A=Y.call(S);if(!ge(A))return A}var N=S.valueOf;if(Me(N)){var A=N.call(S);if(!ge(A))return A}}throw new TypeError}function We(S){return!!S}function Hn(S){return""+S}function Xe(S){var E=se(S);return Tt(E)?E:Hn(E)}function Lt(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}function Me(S){return typeof S=="function"}function mn(S){return typeof S=="function"}function be(S){switch(we(S)){case 3:return!0;case 4:return!0;default:return!1}}function Ze(S,E){return S===E||S!==S&&E!==E}function ee(S,E){var N=S[E];if(N!=null){if(!Me(N))throw new TypeError;return N}}function Ie(S){var E=ee(S,a);if(!Me(E))throw new TypeError;var N=E.call(S);if(!ge(N))throw new TypeError;return N}function rt(S){return S.value}function st(S){var E=S.next();return E.done?!1:E}function pn(S){var E=S.return;E&&E.call(S)}function bt(S){var E=Object.getPrototypeOf(S);if(typeof S!="function"||S===h||E!==h)return E;var N=S.prototype,A=N&&Object.getPrototypeOf(N);if(A==null||A===Object.prototype)return E;var Y=A.constructor;return typeof Y!="function"||Y===S?E:Y}function Rt(){var S;!j(B)&&typeof i.Reflect<"u"&&!(B in i.Reflect)&&typeof i.Reflect.defineMetadata=="function"&&(S=Er(i.Reflect));var E,N,A,Y=new C,Ee={registerProvider:Be,getProvider:F,setProvider:L};return Ee;function Be(U){if(!Object.isExtensible(Ee))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===U:break;case j(E):E=U;break;case E===U:break;case j(N):N=U;break;case N===U:break;default:A===void 0&&(A=new w),A.add(U);break}}function ne(U,te){if(!j(E)){if(E.isProviderFor(U,te))return E;if(!j(N)){if(N.isProviderFor(U,te))return E;if(!j(A))for(var he=Ie(A);;){var ye=st(he);if(!ye)return;var at=rt(ye);if(at.isProviderFor(U,te))return pn(he),at}}}if(!j(S)&&S.isProviderFor(U,te))return S}function F(U,te){var he=Y.get(U),ye;return j(he)||(ye=he.get(te)),j(ye)&&(ye=ne(U,te),j(ye)||(j(he)&&(he=new m,Y.set(U,he)),he.set(te,ye))),ye}function _(U){if(j(U))throw new TypeError;return E===U||N===U||!j(A)&&A.has(U)}function L(U,te,he){if(!_(he))throw new Error("Metadata provider not registered.");var ye=F(U,te);if(ye!==he){if(!j(ye))return!1;var at=Y.get(U);j(at)&&(at=new m,Y.set(U,at)),at.set(te,he)}return!0}}function co(){var S;return!j(B)&&ge(i.Reflect)&&Object.isExtensible(i.Reflect)&&(S=i.Reflect[B]),j(S)&&(S=Rt()),!j(B)&&ge(i.Reflect)&&Object.isExtensible(i.Reflect)&&Object.defineProperty(i.Reflect,B,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}function xr(S){var E=new C,N={isProviderFor:function(_,L){var U=E.get(_);return j(U)?!1:U.has(L)},OrdinaryDefineOwnMetadata:Be,OrdinaryHasOwnMetadata:Y,OrdinaryGetOwnMetadata:Ee,OrdinaryOwnMetadataKeys:ne,OrdinaryDeleteMetadata:F};return $.registerProvider(N),N;function A(_,L,U){var te=E.get(_),he=!1;if(j(te)){if(!U)return;te=new m,E.set(_,te),he=!0}var ye=te.get(L);if(j(ye)){if(!U)return;if(ye=new m,te.set(L,ye),!S.setProvider(_,L,N))throw te.delete(L),he&&E.delete(_),new Error("Wrong provider for target.")}return ye}function Y(_,L,U){var te=A(L,U,!1);return j(te)?!1:We(te.has(_))}function Ee(_,L,U){var te=A(L,U,!1);if(!j(te))return te.get(_)}function Be(_,L,U,te){var he=A(U,te,!0);he.set(_,L)}function ne(_,L){var U=[],te=A(_,L,!1);if(j(te))return U;for(var he=te.keys(),ye=Ie(he),at=0;;){var uo=st(ye);if(!uo)return U.length=at,U;var pt=rt(uo);try{U[at]=pt}catch(Nr){try{pn(ye)}finally{throw Nr}}at++}}function F(_,L,U){var te=A(L,U,!1);if(j(te)||!te.delete(_))return!1;if(te.size===0){var he=E.get(L);j(he)||(he.delete(U),he.size===0&&E.delete(he))}return!0}}function Er(S){var E=S.defineMetadata,N=S.hasOwnMetadata,A=S.getOwnMetadata,Y=S.getOwnMetadataKeys,Ee=S.deleteMetadata,Be=new C,ne={isProviderFor:function(F,_){var L=Be.get(F);return!j(L)&&L.has(_)?!0:Y(F,_).length?(j(L)&&(L=new w,Be.set(F,L)),L.add(_),!0):!1},OrdinaryDefineOwnMetadata:E,OrdinaryHasOwnMetadata:N,OrdinaryGetOwnMetadata:A,OrdinaryOwnMetadataKeys:Y,OrdinaryDeleteMetadata:Ee};return ne}function gn(S,E,N){var A=$.getProvider(S,E);if(!j(A))return A;if(N){if($.setProvider(S,E,x))return x;throw new Error("Illegal state.")}}function Un(){var S={},E=[],N=function(){function ne(F,_,L){this._index=0,this._keys=F,this._values=_,this._selector=L}return ne.prototype["@@iterator"]=function(){return this},ne.prototype[a]=function(){return this},ne.prototype.next=function(){var F=this._index;if(F>=0&&F<this._keys.length){var _=this._selector(this._keys[F],this._values[F]);return F+1>=this._keys.length?(this._index=-1,this._keys=E,this._values=E):this._index++,{value:_,done:!1}}return{value:void 0,done:!0}},ne.prototype.throw=function(F){throw this._index>=0&&(this._index=-1,this._keys=E,this._values=E),F},ne.prototype.return=function(F){return this._index>=0&&(this._index=-1,this._keys=E,this._values=E),{value:F,done:!0}},ne}(),A=function(){function ne(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return Object.defineProperty(ne.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ne.prototype.has=function(F){return this._find(F,!1)>=0},ne.prototype.get=function(F){var _=this._find(F,!1);return _>=0?this._values[_]:void 0},ne.prototype.set=function(F,_){var L=this._find(F,!0);return this._values[L]=_,this},ne.prototype.delete=function(F){var _=this._find(F,!1);if(_>=0){for(var L=this._keys.length,U=_+1;U<L;U++)this._keys[U-1]=this._keys[U],this._values[U-1]=this._values[U];return this._keys.length--,this._values.length--,Ze(F,this._cacheKey)&&(this._cacheKey=S,this._cacheIndex=-2),!0}return!1},ne.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=S,this._cacheIndex=-2},ne.prototype.keys=function(){return new N(this._keys,this._values,Y)},ne.prototype.values=function(){return new N(this._keys,this._values,Ee)},ne.prototype.entries=function(){return new N(this._keys,this._values,Be)},ne.prototype["@@iterator"]=function(){return this.entries()},ne.prototype[a]=function(){return this.entries()},ne.prototype._find=function(F,_){if(!Ze(this._cacheKey,F)){this._cacheIndex=-1;for(var L=0;L<this._keys.length;L++)if(Ze(this._keys[L],F)){this._cacheIndex=L;break}}return this._cacheIndex<0&&_&&(this._cacheIndex=this._keys.length,this._keys.push(F),this._values.push(void 0)),this._cacheIndex},ne}();return A;function Y(ne,F){return ne}function Ee(ne,F){return F}function Be(ne,F){return[ne,F]}}function Br(){var S=function(){function E(){this._map=new m}return Object.defineProperty(E.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),E.prototype.has=function(N){return this._map.has(N)},E.prototype.add=function(N){return this._map.set(N,N),this},E.prototype.delete=function(N){return this._map.delete(N)},E.prototype.clear=function(){this._map.clear()},E.prototype.keys=function(){return this._map.keys()},E.prototype.values=function(){return this._map.keys()},E.prototype.entries=function(){return this._map.entries()},E.prototype["@@iterator"]=function(){return this.keys()},E.prototype[a]=function(){return this.keys()},E}();return S}function $r(){var S=16,E=f.create(),N=A();return function(){function F(){this._key=A()}return F.prototype.has=function(_){var L=Y(_,!1);return L!==void 0?f.has(L,this._key):!1},F.prototype.get=function(_){var L=Y(_,!1);return L!==void 0?f.get(L,this._key):void 0},F.prototype.set=function(_,L){var U=Y(_,!0);return U[this._key]=L,this},F.prototype.delete=function(_){var L=Y(_,!1);return L!==void 0?delete L[this._key]:!1},F.prototype.clear=function(){this._key=A()},F}();function A(){var F;do F="@@WeakMap@@"+ne();while(f.has(E,F));return E[F]=!0,F}function Y(F,_){if(!o.call(F,N)){if(!_)return;Object.defineProperty(F,N,{value:f.create()})}return F[N]}function Ee(F,_){for(var L=0;L<_;++L)F[L]=Math.random()*255|0;return F}function Be(F){if(typeof Uint8Array=="function"){var _=new Uint8Array(F);return typeof crypto<"u"?crypto.getRandomValues(_):typeof msCrypto<"u"?msCrypto.getRandomValues(_):Ee(_,F),_}return Ee(new Array(F),F)}function ne(){var F=Be(S);F[6]=F[6]&79|64,F[8]=F[8]&191|128;for(var _="",L=0;L<S;++L){var U=F[L];(L===4||L===6||L===8)&&(_+="-"),U<16&&(_+="0"),_+=U.toString(16).toLowerCase()}return _}}function fi(S){return S.__=void 0,delete S.__,S}})})(Hr||(Hr={}));const ze=[];for(let n=0;n<256;++n)ze.push((n+256).toString(16).slice(1));function Jl(n,e=0){return(ze[n[e+0]]+ze[n[e+1]]+ze[n[e+2]]+ze[n[e+3]]+"-"+ze[n[e+4]]+ze[n[e+5]]+"-"+ze[n[e+6]]+ze[n[e+7]]+"-"+ze[n[e+8]]+ze[n[e+9]]+"-"+ze[n[e+10]]+ze[n[e+11]]+ze[n[e+12]]+ze[n[e+13]]+ze[n[e+14]]+ze[n[e+15]]).toLowerCase()}const Kl=new Uint8Array(16);function ec(){return crypto.getRandomValues(Kl)}function Ht(n,e,i){return crypto.randomUUID?crypto.randomUUID():tc(n)}function tc(n,e,i){var r;n=n||{};const o=n.random??((r=n.rng)==null?void 0:r.call(n))??ec();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Jl(o)}class De{static UUID(){return Ht()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}function nc(n){var e=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0].match(/^file:\/\/\//)?n[0]=n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0]=n[0].replace(/^([^/:]+):\/*/,"$1://");for(var o=0;o<n.length;o++){var r=n[o];if(typeof r!="string")throw new TypeError("Url must be a string. Received "+r);r!==""&&(o>0&&(r=r.replace(/^[\/]+/,"")),o<n.length-1?r=r.replace(/[\/]+$/,""):r=r.replace(/[\/]+$/,"/"),e.push(r))}var s=e.join("/");s=s.replace(/\/(\?|&|#[^!])/g,"$1");var a=s.split("?");return s=a.shift()+(a.length>0?"?":"")+a.join("&"),s}function wo(){var n;return typeof arguments[0]=="object"?n=arguments[0]:n=[].slice.call(arguments),nc(n)}class re{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static BuildSafeUrl(e,i,o){try{const r=new URL(e);return i&&(r.port=i.toString()),wo(r.toString(),o)}catch{throw new Error(`Invalid host URL: ${e}`)}}static ToCamelCase(e){const i=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(i).map((r,s)=>s===0?r.toLowerCase():re.Capitalize(r.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,i,o){return e.substring(e.indexOf(i)+2,e.lastIndexOf(o))}static Translit(e,i){const o={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return i&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,r=>{if(r===r.toLowerCase()){const a=Object.keys(o).find(d=>o[d]===r);return a||""}const s=Object.keys(o).find(a=>o[a]===r.toLowerCase());return s?s.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,r=>r===r.toLowerCase()?o[r]:o[r.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const i=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(i,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,i){const o=e.toLowerCase().replaceAll(/\s/g,""),r=i.toLowerCase().replaceAll(/\s/g,""),s=re.Translit(o),a=re.Translit(r);return o.includes(r)||s.includes(r)||o.includes(a)}static SearchIn(e,i){return re.StringsEquals(e,i)}static SearchInFields(e,i){let o=!1;for(let r=0;r<i.length;r++)if(re.SearchIn(i[r],e)){o=!0;break}return o}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,i,o){const r=o??"highlight-text",s=new RegExp(re.GetVariants(i).join("|"),"gi");return e.replace(s,`<span class="${r}">$&</span>`)}static GetVariants(e){const i=re.Translit(e);return[e,re.Capitalize(e),e.toLowerCase(),e.toUpperCase(),i,re.Capitalize(i),i.toLowerCase(),i.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,i){const o=[2,0,1,1,1,2];return e.length+" "+i[e.length%100>4&&e.length%100<20?2:o[e.length%10<5?e.length%10:5]]}static TrimText(e){return typeof e=="string"?e.trim():e}}const Qt=class Qt{static BuildClass(e,i){i&&Object.keys(i).forEach(o=>{const r=i[o];if(this.isPrimitive(r))e[o]instanceof Date?e[o]=new Date(r):e[o]=r;else if(r!=null&&!Array.isArray(r))if(e[o]&&e[o].constructor)e[o]=new e[o].constructor(r);else{const s=Reflect.getMetadata(o,e);s&&(e[o]=new s[o](r))}if(Array.isArray(r)){if(r.length===0)return;const s=Reflect.getMetadata(o,e);r.length!==0&&!s&&(e[o]=r),s&&(e[o]=r.map(a=>new s[o](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,i,o){Qt.RemoveFromClass(e,i,o)}static RemoveFromClassById(e,i,o){if(!e)return;const r=i.findIndex(s=>s.id===e);Qt.RemoveFromClass(r,i,o)}static RemoveFromClass(e,i,o){if(e<0)return;const r=i[e].id;r&&o&&o.push(r),i.splice(e,1)}static GetPropertyName(e){const i=new e;return new Proxy(i,{get(o,r){return r}})}static InitClassInstance(e,i){const o=e.constructor(i);return Qt.BuildClass(o),o.id=De.UUID(),o}static ExistsWithId(e,i){return e.some(o=>o.id===i)}static DeepMap(e){return i=>Array.isArray(i)?i.map(Qt.DeepMap(e)):Object(i)===i?Object.fromEntries(Object.entries(i).map(([o,r])=>[o,Qt.DeepMap(e)(r)])):e(i)}static DeepTrim(e){return this.DeepMap(re.TrimText)(e)}};l(Qt,"GetClassConstructor",e=>(i,o)=>{const r=Reflect.getMetadata(`property:${o}`,i)||{};r[o]=e,Reflect.defineMetadata(o,r,i)});let O=Qt;class Jt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");O.BuildClass(this,e)}static Create(){const e=new Jt;return e.id=De.UUID(),e}}class bo{static Setup(e="http://localhost",i="9000",o="api"){this.staticUrl=re.BuildSafeUrl(e,i,o),this.staticUrl=wo(this.staticUrl,"static")}static get StaticUrl(){return this.staticUrl}}l(bo,"staticUrl","");class Ge{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"type","");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");l(this,"itemId");l(this,"itemOneId");l(this,"description","");l(this,"order",0);O.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${bo.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:wn&&wn.tagName.toUpperCase()==="SCRIPT"&&wn.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,i){const o=new Ge;return o.id=i??De.UUID(),o.originalName=e.name,o.file=e.blob,o.fileSystemPath=De.UUID(),o}setFile(e){this.id||(this.id=De.UUID()),this.originalName=e.name,this.file=e,this.fileSystemPath=De.UUID(),this.url=e.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,i){if(e.target){let o="";return i&&(o=`@/assets/img/${i}`),new URL(o,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:wn&&wn.tagName.toUpperCase()==="SCRIPT"&&wn.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const i=e.split(".");return i[i.length-1]}}class Ur{constructor(e){l(this,"id");l(this,"name","");l(this,"surname","");l(this,"patronymic","");l(this,"isMale",!0);l(this,"dateBirth",new Date);l(this,"contactId");l(this,"slug","");l(this,"postIndex","");l(this,"address","");l(this,"editNameMode",!1);O.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=re.Capitalize(this.name),this.surname=re.Capitalize(this.surname),this.patronymic=re.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 Kt{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");O.BuildClass(this,e)}static Create(){const e=new Kt;return e.id=De.UUID(),e}}class ki{constructor(e){l(this,"id");l(this,"address");l(this,"description");O.BuildClass(this,e)}}class xi{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");O.BuildClass(this,e)}static Create(){const e=new xi;return e.id=De.UUID(),e}}class So{constructor(e){l(this,"id");l(this,"address");l(this,"description");O.BuildClass(this,e)}}let ic=(_t=class{},l(_t,"Phone",Kt),l(_t,"FileInfo",Ge),l(_t,"Website",So),l(_t,"Email",Jt),l(_t,"Human",Ur),l(_t,"PostAddress",ki),l(_t,"UserAccount",xi),_t);var Se=(n=>(n.Eq="=",n.Ne="!=",n.Gt=">",n.Lt="<",n.Btw="between",n.In="in",n.Like="like",n.Null="is null",n.NotNull="is not null",n))(Se||{});class Ei{constructor(e){l(this,"field","");l(this,"operator",Se.Eq);l(this,"value","");O.BuildClass(this,e)}setValue(e){this.value=e}static Create(e,i){return new Ei({operator:i,field:e})}eq(e){return this.field===e.field&&this.operator===e.operator}isUnary(){return this.operator===Se.Eq||this.operator===Se.Gt||this.operator===Se.Lt}isBetween(){return this.operator===Se.Btw}isSet(){return this.operator===Se.In}}class Co{constructor(e){l(this,"model","");l(this,"field","");l(this,"value","");l(this,"wheres",[]);O.BuildClass(this,e)}static Create(e){const i=new Co;return i.model=e.GetClassName(),i}eq(e){return e.model===this.model&&e.field===this.field}addWhere(e,i){const o=this.findWhere({field:e,operator:i});if(o)return o;const r=Ei.Create(e,i);return this.wheres.push(r),r}findWhere(e){return this.wheres.find(i=>i.eq(e))}}let qr=class Nl{constructor(e){l(this,"id");l(this,"model","");l(this,"wheres",[]);l(this,"joins",[]);O.BuildClass(this,e)}static Create(e){const i=new Nl;return i.model=e.GetClassName(),i}addWhere(e,i){const o=this.findWhere({field:e,operator:i});if(o)return o;const r=Ei.Create(e,i);return this.wheres.push(r),r}removeWhere(e){const i=this.wheres.findIndex(o=>o.eq(e));i>-1&&this.wheres.splice(i,1)}addJoin(e){const i=this.findJoin({model:e.GetClassName()});if(i)return i;const o=Co.Create(e);return this.joins.push(o),o}findJoin(e){return this.joins.find(i=>i.eq(e))}findWhere(e){return this.wheres.find(i=>i.eq(e))}toRef(){return t.ref(this)}};class vt{static Shuffle(e){for(let i=e.length-1;i>0;i--){const o=Math.floor(Math.random()*(i+1));[e[i],e[o]]=[e[o],e[i]]}}static GenerateNumsRange(e,i,o=1){return Array.from({length:(i-e)/o+1},(r,s)=>e+s*o)}static GetLast(e){return e[e.length-1]}static GetFirst(e){return e[0]}static GetRandEL(e){return e[Math.floor(Math.random()*e.length)]}static Sort(e){e.forEach((i,o)=>i.order=o)}static Refill(e,i){e.splice(0,e.length),e.push(...i)}static Eq(e,i){return e.length===i.length&&(e==null?void 0:e.every((o,r)=>e[r]==i[r]))}static SwipeById(e,i,o){const r=e.findIndex(a=>i.id===a.id),s=e.findIndex(a=>o.id===a.id);r||s||([e[r],e[s]]=[e[s],e[r]])}static Swap(e,i,o){if(i<0||i>=e.length||o<0||o>=e.length)return;const r=e[i];e[i]=e[o],e[o]=r}static MoveUp(e,i){e[i].order=i-1,e[i-1]&&(e[i-1].order=i),[e[i],e[i-1]]=[e[i-1],e[i]]}static MoveDown(e,i){e[i].order=i+1,e[i+1]&&(e[i+1].order=i),[e[i],e[i+1]]=[e[i+1],e[i]]}}var Te=(n=>(n.Date="date",n.String="string",n.Boolean="boolean",n.Number="number",n.Set="set",n.Join="join",n.ArrayString="arrayString",n.ArrayNumber="arrayNumber",n))(Te||{}),oc=Object.defineProperty,rc=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&oc(e,i,r),r};const jr=class pi{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",Se.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",Te.String);l(this,"set",[]);l(this,"isSet",!1);l(this,"joinTable","");l(this,"joinTableModel","");l(this,"joinTableFk","");l(this,"joinTablePk","");l(this,"joinTableId","");l(this,"joinTableIdCol","");O.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===Te.Join){const i=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===Se.In?i&&vt.Eq(this.set,e.set):i}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===Te.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===Te.String?this.value1===(e==null?void 0:e.value1):this.type===Te.Join&&this.set.length?vt.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",i=this.model?`"model":"${this.model}"`:"",o=this.col?`"col":"${this.col}"`:"",r=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===Te.Boolean?`"boolean":${this.boolean}`:"",d=this.type===Te.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===Te.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===Te.Number?`"number":${this.number}`:"",f=this.type===Te.Set||this.operator===Se.In?`"set":${JSON.stringify(this.set)}`:"",h=this.type===Te.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,i,o,r,s,a,d,c,u,f,h].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===Se.Eq||this.operator===Se.Gt||this.operator===Se.Lt}isBetweenFilter(){return this.operator===Se.Btw}isSetFilter(){return this.operator===Se.In}static Create(e,i,o){const r=new pi;return r.model=e.GetClassName(),r.col=i??"",r.type=o,r.type===Te.Number&&(r.value1="0"),r.type===Te.String&&(r.value1=""),r.type===Te.Boolean&&(r.value1="false",r.operator=Se.Eq),r}static CreateFilterModelWithJoin(e,i,o,r,s,a,d,c){const u=new pi;return u.id=Ht(),u.joinTable=o,u.joinTablePk=r,u.joinTableFk=s,u.col=i,u.type=a,d&&(u.joinTableId=d),c&&(u.joinTableIdCol=c),u}static CreateFilterModelWithJoinV2(e,i,o,r,s,a,d){const c=new pi;return c.model=e,c.joinTableModel=o,c.joinTablePk=r,c.joinTableFk=s,c.col=i,c.type=Te.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,i){const o=new pi;return o.id=Ht(),o.model=re.ToCamelCase(e.GetClassName()),o.joinTableModel=re.ToCamelCase(i.GetClassName()),o.type=Te.Join,o}addToSet(...e){e.forEach(i=>{if(this.set.indexOf(i)===-1){this.set.push(i);return}this.set=this.set.filter(o=>o!==i)})}pushToSet(...e){e.forEach(i=>{this.set.indexOf(i)===-1&&this.set.push(i)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return t.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,i){if(!e&&!i){this.dropDates();return}if(!i){this.setDate1(e),this.operator=Se.Eq;return}this.setDate2(i),this.operator=Se.Btw}};rc([O.GetClassConstructor(String)],jr.prototype,"set");let ko=jr;class sc{constructor(){l(this,"operation",Se.Lt);l(this,"column","");l(this,"value");l(this,"initial",!0);l(this,"tableName","");l(this,"version","");l(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",i=this.column?`"column":"${this.column}"`:"",o=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,r=o?`"value":"${o}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,i,r,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 Bi{constructor(e){l(this,"page",0);l(this,"rowsPerPage",25);l(this,"rowsNumber",0);l(this,"cursor",new sc);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");O.BuildClass(this,e)}setLoadMore(e,i,o){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=Se.Gt,this.cursor.column=i,this.cursor.tableName=o,this.cursorMode=!0}setLoadMoreV2(e,i,o){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=Se.Gt,this.cursor.column=i,this.cursor.model=o,this.cursorMode=!0,this.version="v2"}setOffset(e){this.page=e}toUrlQuery(){const e=`"offset":${this.offset}`,i=`"limit":${this.limit}`,o=`"cursorMode":${this.cursorMode}`,r=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,i,o,r,s,a].toString()}fromUrlQuery(){const e=window.location.search,i=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),o=new URLSearchParams(decodeURIComponent(i));this.page=Number(o.get("offset")),this.rowsPerPage=Number(o.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.rowsPerPage)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.page/this.rowsPerPage+1}drop(){this.page=0,this.rowsPerPage=25,O.BuildClass(this)}}var ct=(n=>(n.Asc="asc",n.Desc="desc",n))(ct||{});class $i{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);O.BuildClass(this,e)}static Create(e,i,o=ct.Asc,r,s){const a=new $i;return a.model=e.GetClassName(),a.col=i??"",a.order=o??ct.Asc,a.label=r??"",a.default=s??!1,a}isAsc(){return this.order===ct.Asc}isDesc(){return this.order===ct.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",i=this.col?`"col":"${this.col}"`:"",o=this.order?`"order":"${this.order}"`:"";return[e,i,o].toString()}async fromUrlQuery(){const e=window.location.search,i=e.substring(e.indexOf("s=")+2,e.indexOf("|")),o=new URLSearchParams(decodeURIComponent(i));this.model=o.get("model")??"",this.col=o.get("col")??"",this.label=o.get("label")??"",this.default=!!o.get("default"),this.order=o.get("order")??""}asc(){this.order=ct.Asc}desc(){this.order=ct.Desc}}class Ni{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,i){const o=new Ni;return o.model=e.GetClassName(),o.cols=i,o}}var ac=Object.defineProperty,jn=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&ac(e,i,r),r};const Cn=(tt=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"f2",[]);l(this,"s",[]);l(this,"p",new Bi);l(this,"t",new Ni);O.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new tt),this.instance}createFrom(e){const i=new tt(JSON.parse(e));this.f=i.f}clearForHTTP(){const e=new tt(this);return e.f=this.f.map(i=>tt.EmptyEntiries(i)),e.f2=this.f2.map(i=>tt.EmptyEntiries(i)),e.s=this.s.map(i=>tt.EmptyEntiries(i)),e.p=tt.EmptyEntiries(this.p),e.t=tt.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const o=Object.entries(e).filter(([r,s])=>r!=="label"&&s!==""&&s!==null);return Object.fromEntries(o)}findFilterModel(e){return this.f.find(i=>e.id===i.id)}getFirstSortModel(){return vt.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}setF2(e){this.f2.push(e)}replaceF(e,i){this.removeF(i),e&&this.setF(e)}removeF(e){const i=this.f.findIndex(o=>o.eq(e));O.RemoveFromClassByIndex(i,this.f)}reset(){this.f=[],this.s=[],this.p=new Bi}resetF(){this.f=[]}},l(tt,"instance"),tt);jn([O.GetClassConstructor(ko)],Cn.prototype,"f"),jn([O.GetClassConstructor(qr)],Cn.prototype,"f2"),jn([O.GetClassConstructor($i)],Cn.prototype,"s"),jn([O.GetClassConstructor(Bi)],Cn.prototype,"p"),jn([O.GetClassConstructor(Ni)],Cn.prototype,"t");let At=Cn,lc=(Ln=class{},l(Ln,"SortModel",$i),l(Ln,"FilterModel",ko),l(Ln,"FilterModelV2",qr),l(Ln,"FTSP",At),Ln);function Wr(n,e){return function(){return n.apply(e,arguments)}}const{toString:cc}=Object.prototype,{getPrototypeOf:kn}=Object,{iterator:Wn,toStringTag:Gr}=Symbol,Mi=(({hasOwnProperty:n})=>(e,i)=>n.call(e,i))(Object.prototype),Gn=(n,e)=>{let i=n;const o=[];for(;i!=null&&i!==Object.prototype;){if(o.indexOf(i)!==-1)return!1;if(o.push(i),Mi(i,e))return!0;i=kn(i)}return!1},dc=(n,e)=>n!=null&&Gn(n,e)?n[e]:void 0,xo=(n=>e=>{const i=cc.call(e);return n[i]||(n[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),gt=n=>(n=n.toLowerCase(),e=>xo(e)===n),Ii=n=>e=>typeof e===n,{isArray:en}=Array,xn=Ii("undefined");function En(n){return n!==null&&!xn(n)&&n.constructor!==null&&!xn(n.constructor)&&Je(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Qr=gt("ArrayBuffer");function uc(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Qr(n.buffer),e}const fc=Ii("string"),Je=Ii("function"),Yr=Ii("number"),Bn=n=>n!==null&&typeof n=="object",hc=n=>n===!0||n===!1,Vi=n=>{if(!Bn(n))return!1;const e=kn(n);return(e===null||e===Object.prototype||kn(e)===null)&&!Gn(n,Gr)&&!Gn(n,Wn)},mc=n=>{if(!Bn(n)||En(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},pc=gt("Date"),gc=gt("File"),yc=n=>!!(n&&typeof n.uri<"u"),wc=n=>n&&typeof n.getParts<"u",bc=gt("Blob"),Sc=gt("FileList"),Cc=n=>Bn(n)&&Je(n.pipe);function kc(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Xr=kc(),Zr=typeof Xr.FormData<"u"?Xr.FormData:void 0,xc=n=>{if(!n)return!1;if(Zr&&n instanceof Zr)return!0;const e=kn(n);if(!e||e===Object.prototype||!Je(n.append))return!1;const i=xo(n);return i==="formdata"||i==="object"&&Je(n.toString)&&n.toString()==="[object FormData]"},Ec=gt("URLSearchParams"),[Bc,$c,Nc,Mc]=["ReadableStream","Request","Response","Headers"].map(gt),Ic=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qn(n,e,{allOwnKeys:i=!1}={}){if(n===null||typeof n>"u")return;let o,r;if(typeof n!="object"&&(n=[n]),en(n))for(o=0,r=n.length;o<r;o++)e.call(null,n[o],o,n);else{if(En(n))return;const s=i?Object.getOwnPropertyNames(n):Object.keys(n),a=s.length;let d;for(o=0;o<a;o++)d=s[o],e.call(null,n[d],d,n)}}function Jr(n,e){if(En(n))return null;e=e.toLowerCase();const i=Object.keys(n);let o=i.length,r;for(;o-- >0;)if(r=i[o],e===r.toLowerCase())return r;return null}const tn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Kr=n=>!xn(n)&&n!==tn;function Eo(...n){const{caseless:e,skipUndefined:i}=Kr(this)&&this||{},o={},r=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const d=e&&typeof a=="string"&&Jr(o,a)||a,c=Mi(o,d)?o[d]:void 0;Vi(c)&&Vi(s)?o[d]=Eo(c,s):Vi(s)?o[d]=Eo({},s):en(s)?o[d]=s.slice():(!i||!xn(s))&&(o[d]=s)};for(let s=0,a=n.length;s<a;s++){const d=n[s];if(!d||En(d)||(Qn(d,r),typeof d!="object"||en(d)))continue;const c=Object.getOwnPropertySymbols(d);for(let u=0;u<c.length;u++){const f=c[u];Lc.call(d,f)&&r(d[f],f)}}return o}const Vc=(n,e,i,{allOwnKeys:o}={})=>(Qn(e,(r,s)=>{i&&Je(r)?Object.defineProperty(n,s,{__proto__:null,value:Wr(r,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,s,{__proto__:null,value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),n),Tc=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Rc=(n,e,i,o)=>{n.prototype=Object.create(e.prototype,o),Object.defineProperty(n.prototype,"constructor",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{__proto__:null,value:e.prototype}),i&&Object.assign(n.prototype,i)},Pc=(n,e,i,o)=>{let r,s,a;const d={};if(e=e||{},n==null)return e;do{for(r=Object.getOwnPropertyNames(n),s=r.length;s-- >0;)a=r[s],(!o||o(a,n,e))&&!d[a]&&(e[a]=n[a],d[a]=!0);n=i!==!1&&kn(n)}while(n&&(!i||i(n,e))&&n!==Object.prototype);return e},vc=(n,e,i)=>{n=String(n),(i===void 0||i>n.length)&&(i=n.length),i-=e.length;const o=n.indexOf(e,i);return o!==-1&&o===i},Ac=n=>{if(!n)return null;if(en(n))return n;let e=n.length;if(!Yr(e))return null;const i=new Array(e);for(;e-- >0;)i[e]=n[e];return i},zc=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&kn(Uint8Array)),Dc=(n,e)=>{const o=(n&&n[Wn]).call(n);let r;for(;(r=o.next())&&!r.done;){const s=r.value;e.call(n,s[0],s[1])}},Fc=(n,e)=>{let i;const o=[];for(;(i=n.exec(e))!==null;)o.push(i);return o},Oc=gt("HTMLFormElement"),_c=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,o,r){return o.toUpperCase()+r}),{propertyIsEnumerable:Lc}=Object.prototype,Hc=gt("RegExp"),es=(n,e)=>{const i=Object.getOwnPropertyDescriptors(n),o={};Qn(i,(r,s)=>{let a;(a=e(r,s,n))!==!1&&(o[s]=a||r)}),Object.defineProperties(n,o)},Uc=n=>{es(n,(e,i)=>{if(Je(n)&&["arguments","caller","callee"].includes(i))return!1;const o=n[i];if(Je(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},qc=(n,e)=>{const i={},o=r=>{r.forEach(s=>{i[s]=!0})};return en(n)?o(n):o(String(n).split(e)),i},jc=()=>{},Wc=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function Gc(n){return!!(n&&Je(n.append)&&n[Gr]==="FormData"&&n[Wn])}const Qc=n=>{const e=new WeakSet,i=o=>{if(Bn(o)){if(e.has(o))return;if(En(o))return o;if(!("toJSON"in o)){e.add(o);const r=en(o)?[]:{};return Qn(o,(s,a)=>{const d=i(s);!xn(d)&&(r[a]=d)}),e.delete(o),r}}return o};return i(n)},Yc=gt("AsyncFunction"),Xc=n=>n&&(Bn(n)||Je(n))&&Je(n.then)&&Je(n.catch),ts=((n,e)=>n?setImmediate:e?((i,o)=>(tn.addEventListener("message",({source:r,data:s})=>{r===tn&&s===i&&o.length&&o.shift()()},!1),r=>{o.push(r),tn.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Je(tn.postMessage)),Zc=typeof queueMicrotask<"u"?queueMicrotask.bind(tn):typeof process<"u"&&process.nextTick||ts,ns=n=>n!=null&&Je(n[Wn]),y={isArray:en,isArrayBuffer:Qr,isBuffer:En,isFormData:xc,isArrayBufferView:uc,isString:fc,isNumber:Yr,isBoolean:hc,isObject:Bn,isPlainObject:Vi,isEmptyObject:mc,isReadableStream:Bc,isRequest:$c,isResponse:Nc,isHeaders:Mc,isUndefined:xn,isDate:pc,isFile:gc,isReactNativeBlob:yc,isReactNative:wc,isBlob:bc,isRegExp:Hc,isFunction:Je,isStream:Cc,isURLSearchParams:Ec,isTypedArray:zc,isFileList:Sc,forEach:Qn,merge:Eo,extend:Vc,trim:Ic,stripBOM:Tc,inherits:Rc,toFlatObject:Pc,kindOf:xo,kindOfTest:gt,endsWith:vc,toArray:Ac,forEachEntry:Dc,matchAll:Fc,isHTMLForm:Oc,hasOwnProperty:Mi,hasOwnProp:Mi,hasOwnInPrototypeChain:Gn,getSafeProp:dc,reduceDescriptors:es,freezeMethods:Uc,toObjectSet:qc,toCamelCase:_c,noop:jc,toFiniteNumber:Wc,findKey:Jr,global:tn,isContextDefined:Kr,isSpecCompliantForm:Gc,toJSONObject:Qc,isAsyncFn:Yc,isThenable:Xc,setImmediate:ts,asap:Zc,isIterable:ns,isSafeIterable:n=>n!=null&&Gn(n,Wn)&&ns(n)},Jc=y.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"]),Kc=n=>{const e={};let i,o,r;return n&&n.split(`
|
|
15
|
+
`).forEach(function(a){r=a.indexOf(":"),i=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!i||e[i]&&Jc[i])&&(i==="set-cookie"?e[i]?e[i].push(o):e[i]=[o]:e[i]=e[i]?e[i]+", "+o:o)}),e};function ed(n){let e=0,i=n.length;for(;e<i;){const o=n.charCodeAt(e);if(o!==9&&o!==32)break;e+=1}for(;i>e;){const o=n.charCodeAt(i-1);if(o!==9&&o!==32)break;i-=1}return e===0&&i===n.length?n:n.slice(e,i)}const td=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),nd=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Bo(n,e){return y.isArray(n)?n.map(i=>Bo(i,e)):ed(String(n).replace(e,""))}const id=n=>Bo(n,td),od=n=>Bo(n,nd);function is(n){const e=Object.create(null);return y.forEach(n.toJSON(),(i,o)=>{e[o]=od(i)}),e}const os=Symbol("internals");function Yn(n){return n&&String(n).trim().toLowerCase()}function Ti(n){return n===!1||n==null?n:y.isArray(n)?n.map(Ti):id(String(n))}function rd(n){const e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=i.exec(n);)e[o[1]]=o[2];return e}const sd=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function $o(n,e,i,o,r){if(y.isFunction(o))return o.call(this,e,i);if(r&&(e=i),!!y.isString(e)){if(y.isString(o))return e.indexOf(o)!==-1;if(y.isRegExp(o))return o.test(e)}}function ad(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,i,o)=>i.toUpperCase()+o)}function ld(n,e){const i=y.toCamelCase(" "+e);["get","set","has"].forEach(o=>{Object.defineProperty(n,o+i,{__proto__:null,value:function(r,s,a){return this[o].call(this,e,r,s,a)},configurable:!0})})}let He=class{constructor(e){e&&this.set(e)}set(e,i,o){const r=this;function s(d,c,u){const f=Yn(c);if(!f)return;const h=y.findKey(r,f);(!h||r[h]===void 0||u===!0||u===void 0&&r[h]!==!1)&&(r[h||c]=Ti(d))}const a=(d,c)=>y.forEach(d,(u,f)=>s(u,f,c));if(y.isPlainObject(e)||e instanceof this.constructor)a(e,i);else if(y.isString(e)&&(e=e.trim())&&!sd(e))a(Kc(e),i);else if(y.isObject(e)&&y.isSafeIterable(e)){let d=Object.create(null),c,u;for(const f of e){if(!y.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],y.hasOwnProp(d,u)?(c=d[u],d[u]=y.isArray(c)?[...c,f[1]]:[c,f[1]]):d[u]=f[1]}a(d,i)}else e!=null&&s(i,e,o);return this}get(e,i){if(e=Yn(e),e){const o=y.findKey(this,e);if(o){const r=this[o];if(!i)return r;if(i===!0)return rd(r);if(y.isFunction(i))return i.call(this,r,o);if(y.isRegExp(i))return i.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,i){if(e=Yn(e),e){const o=y.findKey(this,e);return!!(o&&this[o]!==void 0&&(!i||$o(this,this[o],o,i)))}return!1}delete(e,i){const o=this;let r=!1;function s(a){if(a=Yn(a),a){const d=y.findKey(o,a);d&&(!i||$o(o,o[d],d,i))&&(delete o[d],r=!0)}}return y.isArray(e)?e.forEach(s):s(e),r}clear(e){const i=Object.keys(this);let o=i.length,r=!1;for(;o--;){const s=i[o];(!e||$o(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){const i=this,o={};return y.forEach(this,(r,s)=>{const a=y.findKey(o,s);if(a){i[a]=Ti(r),delete i[s];return}const d=e?ad(s):String(s).trim();d!==s&&delete i[s],i[d]=Ti(r),o[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const i=Object.create(null);return y.forEach(this,(o,r)=>{o!=null&&o!==!1&&(i[r]=e&&y.isArray(o)?o.join(", "):o)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,i])=>e+": "+i).join(`
|
|
16
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...i){const o=new this(e);return i.forEach(r=>o.set(r)),o}static accessor(e){const o=(this[os]=this[os]={accessors:{}}).accessors,r=this.prototype;function s(a){const d=Yn(a);o[d]||(ld(r,a),o[d]=!0)}return y.isArray(e)?e.forEach(s):s(e),this}};He.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),y.reduceDescriptors(He.prototype,({value:n},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(o){this[i]=o}}}),y.freezeMethods(He);const cd="[REDACTED ****]";function dd(n){if(y.hasOwnProp(n,"toJSON"))return!0;let e=Object.getPrototypeOf(n);for(;e&&e!==Object.prototype;){if(y.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function ud(n,e){const i=new Set(e.map(s=>String(s).toLowerCase())),o=[],r=s=>{if(s===null||typeof s!="object"||y.isBuffer(s))return s;if(o.indexOf(s)!==-1)return;s instanceof He&&(s=s.toJSON()),o.push(s);let a;if(y.isArray(s))a=[],s.forEach((d,c)=>{const u=r(d);y.isUndefined(u)||(a[c]=u)});else{if(!y.isPlainObject(s)&&dd(s))return o.pop(),s;a=Object.create(null);for(const[d,c]of Object.entries(s)){const u=i.has(d.toLowerCase())?cd:r(c);y.isUndefined(u)||(a[d]=u)}}return o.pop(),a};return r(n)}let z=class Ml extends Error{static from(e,i,o,r,s,a){const d=new Ml(e.message,i||e.code,o,r,s);return Object.defineProperty(d,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),d.name=e.name,e.status!=null&&d.status==null&&(d.status=e.status),a&&Object.assign(d,a),d}constructor(e,i,o,r,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),o&&(this.config=o),r&&(this.request=r),s&&(this.response=s,this.status=s.status)}toJSON(){const e=this.config,i=e&&y.hasOwnProp(e,"redact")?e.redact:void 0,o=y.isArray(i)&&i.length>0?ud(e,i):y.toJSONObject(e);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:o,code:this.code,status:this.status}}};z.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",z.ERR_BAD_OPTION="ERR_BAD_OPTION",z.ECONNABORTED="ECONNABORTED",z.ETIMEDOUT="ETIMEDOUT",z.ECONNREFUSED="ECONNREFUSED",z.ERR_NETWORK="ERR_NETWORK",z.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",z.ERR_DEPRECATED="ERR_DEPRECATED",z.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",z.ERR_BAD_REQUEST="ERR_BAD_REQUEST",z.ERR_CANCELED="ERR_CANCELED",z.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",z.ERR_INVALID_URL="ERR_INVALID_URL",z.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const fd=null,rs=100;function No(n){return y.isPlainObject(n)||y.isArray(n)}function ss(n){return y.endsWith(n,"[]")?n.slice(0,-2):n}function Mo(n,e,i){return n?n.concat(e).map(function(r,s){return r=ss(r),!i&&s?"["+r+"]":r}).join(i?".":""):e}function hd(n){return y.isArray(n)&&!n.some(No)}const md=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function Ri(n,e,i){if(!y.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,i=y.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,k){return!y.isUndefined(k[M])});const o=i.metaTokens,r=i.visitor||C,s=i.dots,a=i.indexes,d=i.Blob||typeof Blob<"u"&&Blob,c=i.maxDepth===void 0?rs:i.maxDepth,u=d&&y.isSpecCompliantForm(e),f=[];if(!y.isFunction(r))throw new TypeError("visitor must be a function");function h(x){if(x===null)return"";if(y.isDate(x))return x.toISOString();if(y.isBoolean(x))return x.toString();if(!u&&y.isBlob(x))throw new z("Blob is not supported. Use a Buffer instead.");if(y.isArrayBuffer(x)||y.isTypedArray(x)){if(u&&typeof d=="function")return new d([x]);if(typeof Buffer<"u")return Buffer.from(x);throw new z("Blob is not supported. Use a Buffer instead.",z.ERR_NOT_SUPPORT)}return x}function m(x){if(x>c)throw new z("Object is too deeply nested ("+x+" levels). Max depth: "+c,z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(x,M){if(c===1/0)return JSON.stringify(x);const k=[];return JSON.stringify(x,function(D,Z){if(!y.isObject(Z))return Z;for(;k.length&&k[k.length-1]!==this;)k.pop();return k.push(Z),m(M+k.length-1),Z})}function C(x,M,k){let P=x;if(y.isReactNative(e)&&y.isReactNativeBlob(x))return e.append(Mo(k,M,s),h(x)),!1;if(x&&!k&&typeof x=="object"){if(y.endsWith(M,"{}"))M=o?M:M.slice(0,-2),x=w(x,1);else if(y.isArray(x)&&hd(x)||(y.isFileList(x)||y.endsWith(M,"[]"))&&(P=y.toArray(x)))return M=ss(M),P.forEach(function(Z,K){!(y.isUndefined(Z)||Z===null)&&e.append(a===!0?Mo([M],K,s):a===null?M:M+"[]",h(Z))}),!1}return No(x)?!0:(e.append(Mo(k,M,s),h(x)),!1)}const B=Object.assign(md,{defaultVisitor:C,convertValue:h,isVisitable:No});function $(x,M,k=0){if(!y.isUndefined(x)){if(m(k),f.indexOf(x)!==-1)throw new Error("Circular reference detected in "+M.join("."));f.push(x),y.forEach(x,function(D,Z){(!(y.isUndefined(D)||D===null)&&r.call(e,D,y.isString(Z)?Z.trim():Z,M,B))===!0&&$(D,M?M.concat(Z):[Z],k+1)}),f.pop()}}if(!y.isObject(n))throw new TypeError("data must be an object");return $(n),e}function as(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(n).replace(/[!'()~]|%20/g,function(o){return e[o]})}function Io(n,e){this._pairs=[],n&&Ri(n,this,e)}const ls=Io.prototype;ls.append=function(e,i){this._pairs.push([e,i])},ls.toString=function(e){const i=e?o=>e.call(this,o,as):as;return this._pairs.map(function(r){return i(r[0])+"="+i(r[1])},"").join("&")};function pd(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function cs(n,e,i){if(!e)return n;n=n||"";const o=y.isFunction(i)?{serialize:i}:i,r=y.getSafeProp(o,"encode")||pd,s=y.getSafeProp(o,"serialize");let a;if(s?a=s(e,o):a=y.isURLSearchParams(e)?e.toString():new Io(e,o).toString(r),a){const d=n.indexOf("#");d!==-1&&(n=n.slice(0,d)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}class ds{constructor(){this.handlers=[]}use(e,i,o){return this.handlers.push({fulfilled:e,rejected:i,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){y.forEach(this.handlers,function(o){o!==null&&e(o)})}}const Vo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},gd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Io,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},To=typeof window<"u"&&typeof document<"u",Ro=typeof navigator=="object"&&navigator||void 0,yd=To&&(!Ro||["ReactNative","NativeScript","NS"].indexOf(Ro.product)<0),wd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bd=To&&window.location.href||"http://localhost",Fe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:To,hasStandardBrowserEnv:yd,hasStandardBrowserWebWorkerEnv:wd,navigator:Ro,origin:bd},Symbol.toStringTag,{value:"Module"})),...gd};function Sd(n,e){return Ri(n,new Fe.classes.URLSearchParams,{visitor:function(i,o,r,s){return Fe.isNode&&y.isBuffer(i)?(this.append(o,i.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}const us=rs;function fs(n){if(n>us)throw new z("FormData field is too deeply nested ("+n+" levels). Max depth: "+us,z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Cd(n){const e=[],i=/\w+|\[(\w*)]/g;let o;for(;(o=i.exec(n))!==null;)fs(e.length),e.push(o[0]==="[]"?"":o[1]||o[0]);return e}function kd(n){const e={},i=Object.keys(n);let o;const r=i.length;let s;for(o=0;o<r;o++)s=i[o],e[s]=n[s];return e}function hs(n){function e(i,o,r,s){fs(s);let a=i[s++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),c=s>=i.length;return a=!a&&y.isArray(r)?r.length:a,c?(y.hasOwnProp(r,a)?r[a]=y.isArray(r[a])?r[a].concat(o):[r[a],o]:r[a]=o,!d):((!y.hasOwnProp(r,a)||!y.isObject(r[a]))&&(r[a]=[]),e(i,o,r[a],s)&&y.isArray(r[a])&&(r[a]=kd(r[a])),!d)}if(y.isFormData(n)&&y.isFunction(n.entries)){const i={};return y.forEachEntry(n,(o,r)=>{e(Cd(o),r,i,0)}),i}return null}const $n=(n,e)=>n!=null&&y.hasOwnProp(n,e)?n[e]:void 0;function xd(n,e,i){if(y.isString(n))try{return(e||JSON.parse)(n),y.trim(n)}catch(o){if(o.name!=="SyntaxError")throw o}return(i||JSON.stringify)(n)}const Xn={transitional:Vo,adapter:["xhr","http","fetch"],transformRequest:[function(e,i){const o=i.getContentType()||"",r=o.indexOf("application/json")>-1,s=y.isObject(e);if(s&&y.isHTMLForm(e)&&(e=new FormData(e)),y.isFormData(e))return r?JSON.stringify(hs(e)):e;if(y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e)||y.isReadableStream(e))return e;if(y.isArrayBufferView(e))return e.buffer;if(y.isURLSearchParams(e))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(s){const c=$n(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return Sd(e,c).toString();if((d=y.isFileList(e))||o.indexOf("multipart/form-data")>-1){const u=$n(this,"env"),f=u&&u.FormData;return Ri(d?{"files[]":e}:e,f&&new f,c)}}return s||r?(i.setContentType("application/json",!1),xd(e)):e}],transformResponse:[function(e){const i=$n(this,"transitional")||Xn.transitional,o=i&&i.forcedJSONParsing,r=$n(this,"responseType"),s=r==="json";if(y.isResponse(e)||y.isReadableStream(e))return e;if(e&&y.isString(e)&&(o&&!r||s)){const d=!(i&&i.silentJSONParsing)&&s;try{return JSON.parse(e,$n(this,"parseReviver"))}catch(c){if(d)throw c.name==="SyntaxError"?z.from(c,z.ERR_BAD_RESPONSE,this,null,$n(this,"response")):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fe.classes.FormData,Blob:Fe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch","query"],n=>{Xn.headers[n]={}});function Po(n,e){const i=this||Xn,o=e||i,r=He.from(o.headers);let s=o.data;return y.forEach(n,function(d){s=d.call(i,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function ms(n){return!!(n&&n.__CANCEL__)}let Zn=class extends z{constructor(e,i,o){super(e??"canceled",z.ERR_CANCELED,i,o),this.name="CanceledError",this.__CANCEL__=!0}};function ps(n,e,i){const o=i.config.validateStatus;!i.status||!o||o(i.status)?n(i):e(new z("Request failed with status code "+i.status,i.status>=400&&i.status<500?z.ERR_BAD_REQUEST:z.ERR_BAD_RESPONSE,i.config,i.request,i))}function Ed(n){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n);return e&&e[1]||""}function Bd(n,e){n=n||10;const i=new Array(n),o=new Array(n);let r=0,s=0,a;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),f=o[s];a||(a=u),i[r]=c,o[r]=u;let h=s,m=0;for(;h!==r;)m+=i[h++],h=h%n;if(r=(r+1)%n,r===s&&(s=(s+1)%n),u-a<e)return;const w=f&&u-f;return w?Math.round(m*1e3/w):void 0}}function $d(n,e){let i=0,o=1e3/e,r,s;const a=(u,f=Date.now())=>{i=f,r=null,s&&(clearTimeout(s),s=null),n(...u)};return[(...u)=>{const f=Date.now(),h=f-i;h>=o?a(u,f):(r=u,s||(s=setTimeout(()=>{s=null,a(r)},o-h)))},()=>r&&a(r)]}const Pi=(n,e,i=3)=>{let o=0;const r=Bd(50,250);return $d(s=>{if(!s||typeof s.loaded!="number")return;const a=s.loaded,d=s.lengthComputable?s.total:void 0,c=d!=null?Math.min(a,d):a,u=Math.max(0,c-o),f=r(u);o=Math.max(o,c);const h={loaded:c,total:d,progress:d?c/d:void 0,bytes:u,rate:f||void 0,estimated:f&&d?(d-c)/f:void 0,event:s,lengthComputable:d!=null,[e?"download":"upload"]:!0};n(h)},i)},gs=(n,e)=>{const i=n!=null;return[o=>e[0]({lengthComputable:i,total:n,loaded:o}),e[1]]},ys=n=>(...e)=>y.asap(()=>n(...e)),Nd=Fe.hasStandardBrowserEnv?((n,e)=>i=>(i=new URL(i,Fe.origin),n.protocol===i.protocol&&n.host===i.host&&(e||n.port===i.port)))(new URL(Fe.origin),Fe.navigator&&/(msie|trident)/i.test(Fe.navigator.userAgent)):()=>!0,Md=Fe.hasStandardBrowserEnv?{write(n,e,i,o,r,s,a){if(typeof document>"u")return;const d=[`${n}=${encodeURIComponent(e)}`];y.isNumber(i)&&d.push(`expires=${new Date(i).toUTCString()}`),y.isString(o)&&d.push(`path=${o}`),y.isString(r)&&d.push(`domain=${r}`),s===!0&&d.push("secure"),y.isString(a)&&d.push(`SameSite=${a}`),document.cookie=d.join("; ")},read(n){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let i=0;i<e.length;i++){const o=e[i].replace(/^\s+/,""),r=o.indexOf("=");if(r!==-1&&o.slice(0,r)===n)try{return decodeURIComponent(o.slice(r+1))}catch{return o.slice(r+1)}}return null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Id(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Vd(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}const Td=/^https?:(?!\/\/)/i,Rd=/[\t\n\r]/g;function Pd(n){let e=0;for(;e<n.length&&n.charCodeAt(e)<=32;)e++;return n.slice(e)}function vd(n){return Pd(n).replace(Rd,"")}function ws(n,e){if(typeof n=="string"&&Td.test(vd(n)))throw new z('Invalid URL: missing "//" after protocol',z.ERR_INVALID_URL,e)}function bs(n,e,i,o){ws(e,o);let r=!Id(e);return n&&(r||i===!1)?(ws(n,o),Vd(n,e)):e}const Ss=n=>n instanceof He?{...n}:n;function nn(n,e){n=n||{},e=e||{};const i=Object.create(null);Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function o(f,h,m,w){return y.isPlainObject(f)&&y.isPlainObject(h)?y.merge.call({caseless:w},f,h):y.isPlainObject(h)?y.merge({},h):y.isArray(h)?h.slice():h}function r(f,h,m,w){if(y.isUndefined(h)){if(!y.isUndefined(f))return o(void 0,f,m,w)}else return o(f,h,m,w)}function s(f,h){if(!y.isUndefined(h))return o(void 0,h)}function a(f,h){if(y.isUndefined(h)){if(!y.isUndefined(f))return o(void 0,f)}else return o(void 0,h)}function d(f){const h=y.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!y.isUndefined(h))if(y.isPlainObject(h)){if(y.hasOwnProp(h,f))return h[f]}else return;const m=y.hasOwnProp(n,"transitional")?n.transitional:void 0;if(y.isPlainObject(m)&&y.hasOwnProp(m,f))return m[f]}function c(f,h,m){if(y.hasOwnProp(e,m))return o(f,h);if(y.hasOwnProp(n,m))return o(void 0,f)}const u={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,allowedSocketPaths:a,responseEncoding:a,validateStatus:c,headers:(f,h,m)=>r(Ss(f),Ss(h),m,!0)};return y.forEach(Object.keys({...n,...e}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const m=y.hasOwnProp(u,h)?u[h]:r,w=y.hasOwnProp(n,h)?n[h]:void 0,C=y.hasOwnProp(e,h)?e[h]:void 0,B=m(w,C,h);y.isUndefined(B)&&m!==c||(i[h]=B)}),y.hasOwnProp(e,"validateStatus")&&y.isUndefined(e.validateStatus)&&d("validateStatusUndefinedResolves")===!1&&(y.hasOwnProp(n,"validateStatus")?i.validateStatus=o(void 0,n.validateStatus):delete i.validateStatus),i}const Ad=["content-type","content-length"];function zd(n,e,i){if(i!=="content-only"){n.set(e);return}Object.entries(e||{}).forEach(([o,r])=>{Ad.includes(o.toLowerCase())&&n.set(o,r)})}const Dd=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16)));function Cs(n){const e=nn({},n),i=m=>y.hasOwnProp(e,m)?e[m]:void 0,o=i("data");let r=i("withXSRFToken");const s=i("xsrfHeaderName"),a=i("xsrfCookieName");let d=i("headers");const c=i("auth"),u=i("baseURL"),f=i("allowAbsoluteUrls"),h=i("url");if(e.headers=d=He.from(d),e.url=cs(bs(u,h,f,e),i("params"),i("paramsSerializer")),c){const m=y.getSafeProp(c,"username")||"",w=y.getSafeProp(c,"password")||"";try{d.set("Authorization","Basic "+btoa(m+":"+(w?Dd(w):"")))}catch(C){throw z.from(C,z.ERR_BAD_OPTION_VALUE,n)}}if(y.isFormData(o)&&(Fe.hasStandardBrowserEnv||Fe.hasStandardBrowserWebWorkerEnv||y.isReactNative(o)?d.setContentType(void 0):y.isFunction(o.getHeaders)&&zd(d,o.getHeaders(),i("formDataHeaderPolicy"))),Fe.hasStandardBrowserEnv&&(y.isFunction(r)&&(r=r(e)),r===!0||r==null&&Nd(e.url))){const w=s&&a&&Md.read(a);w&&d.set(s,w)}return e}const Fd=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(i,o){const r=Cs(n);let s=r.data;const a=He.from(r.headers).normalize();let{responseType:d,onUploadProgress:c,onDownloadProgress:u}=r,f,h,m,w,C;function B(){w&&w(),C&&C(),r.cancelToken&&r.cancelToken.unsubscribe(f),r.signal&&r.signal.removeEventListener("abort",f)}let $=new XMLHttpRequest;$.open(r.method.toUpperCase(),r.url,!0),$.timeout=r.timeout;function x(){if(!$)return;const k=He.from("getAllResponseHeaders"in $&&$.getAllResponseHeaders()),D={data:!d||d==="text"||d==="json"?$.responseText:$.response,status:$.status,statusText:$.statusText,headers:k,config:n,request:$};ps(function(K){i(K),B()},function(K){o(K),B()},D),$=null}"onloadend"in $?$.onloadend=x:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.startsWith("file:"))||setTimeout(x)},$.onabort=function(){$&&(o(new z("Request aborted",z.ECONNABORTED,n,$)),B(),$=null)},$.onerror=function(P){const D=P&&P.message?P.message:"Network Error",Z=new z(D,z.ERR_NETWORK,n,$);Z.event=P||null,o(Z),B(),$=null},$.ontimeout=function(){let P=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const D=r.transitional||Vo;r.timeoutErrorMessage&&(P=r.timeoutErrorMessage),o(new z(P,D.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,n,$)),B(),$=null},s===void 0&&a.setContentType(null),"setRequestHeader"in $&&y.forEach(is(a),function(P,D){$.setRequestHeader(D,P)}),y.isUndefined(r.withCredentials)||($.withCredentials=!!r.withCredentials),d&&d!=="json"&&($.responseType=r.responseType),u&&([m,C]=Pi(u,!0),$.addEventListener("progress",m)),c&&$.upload&&([h,w]=Pi(c),$.upload.addEventListener("progress",h),$.upload.addEventListener("loadend",w)),(r.cancelToken||r.signal)&&(f=k=>{$&&(o(!k||k.type?new Zn(null,n,$):k),$.abort(),B(),$=null)},r.cancelToken&&r.cancelToken.subscribe(f),r.signal&&(r.signal.aborted?f():r.signal.addEventListener("abort",f)));const M=Ed(r.url);if(M&&!Fe.protocols.includes(M)){o(new z("Unsupported protocol "+M+":",z.ERR_BAD_REQUEST,n)),B();return}$.send(s||null)})},Od=(n,e)=>{if(n=n?n.filter(Boolean):[],!e&&!n.length)return;const i=new AbortController;let o=!1;const r=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;i.abort(u instanceof z?u:new Zn(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{s=null,r(new z(`timeout of ${e}ms exceeded`,z.ETIMEDOUT))},e);const a=()=>{n&&(s&&clearTimeout(s),s=null,n.forEach(c=>{c.unsubscribe?c.unsubscribe(r):c.removeEventListener("abort",r)}),n=null)};n.forEach(c=>c.addEventListener("abort",r,{once:!0}));const{signal:d}=i;return d.unsubscribe=()=>y.asap(a),d},_d=function*(n,e){let i=n.byteLength;if(i<e){yield n;return}let o=0,r;for(;o<i;)r=o+e,yield n.slice(o,r),o=r},Ld=async function*(n,e){for await(const i of Hd(n))yield*_d(i,e)},Hd=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:i,value:o}=await e.read();if(i)break;yield o}}finally{await e.cancel()}},ks=(n,e,i,o)=>{const r=Ld(n,e);let s=0,a,d=c=>{a||(a=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await r.next();if(u){d(),c.close();return}let h=f.byteLength;if(i){let m=s+=h;i(m)}c.enqueue(new Uint8Array(f))}catch(u){throw d(u),u}},cancel(c){return d(c),r.return()}},{highWaterMark:2})},vi=n=>n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102,Ud=(n,e,i)=>e+2<i&&vi(n.charCodeAt(e+1))&&vi(n.charCodeAt(e+2));function qd(n){if(!n||typeof n!="string"||!n.startsWith("data:"))return 0;const e=n.indexOf(",");if(e<0)return 0;const i=n.slice(5,e),o=n.slice(e+1);if(/;base64/i.test(i)){let a=o.length;const d=o.length;for(let w=0;w<d;w++)if(o.charCodeAt(w)===37&&w+2<d){const C=o.charCodeAt(w+1),B=o.charCodeAt(w+2);vi(C)&&vi(B)&&(a-=2,w+=2)}let c=0,u=d-1;const f=w=>w>=2&&o.charCodeAt(w-2)===37&&o.charCodeAt(w-1)===51&&(o.charCodeAt(w)===68||o.charCodeAt(w)===100);u>=0&&(o.charCodeAt(u)===61?(c++,u--):f(u)&&(c++,u-=3)),c===1&&u>=0&&(o.charCodeAt(u)===61||f(u))&&c++;const m=Math.floor(a/4)*3-(c||0);return m>0?m:0}let s=0;for(let a=0,d=o.length;a<d;a++){const c=o.charCodeAt(a);if(c===37&&Ud(o,a,d))s+=1,a+=2;else if(c<128)s+=1;else if(c<2048)s+=2;else if(c>=55296&&c<=56319&&a+1<d){const u=o.charCodeAt(a+1);u>=56320&&u<=57343?(s+=4,a++):s+=3}else s+=3}return s}const vo="1.18.1",xs=64*1024,{isFunction:Ai}=y,jd=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16))),Es=n=>{if(!y.isString(n))return n;try{return decodeURIComponent(n)}catch{return n}},Bs=(n,...e)=>{try{return!!n(...e)}catch{return!1}},Wd=n=>{const e=n.indexOf("://");let i=n;return e!==-1&&(i=i.slice(e+3)),i.includes("@")||i.includes(":")},Gd=n=>{const e=y.global!==void 0&&y.global!==null?y.global:globalThis,{ReadableStream:i,TextEncoder:o}=e;n=y.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},n);const{fetch:r,Request:s,Response:a}=n,d=r?Ai(r):typeof fetch=="function",c=Ai(s),u=Ai(a);if(!d)return!1;const f=d&&Ai(i),h=d&&(typeof o=="function"?(x=>M=>x.encode(M))(new o):async x=>new Uint8Array(await new s(x).arrayBuffer())),m=c&&f&&Bs(()=>{let x=!1;const M=new s(Fe.origin,{body:new i,method:"POST",get duplex(){return x=!0,"half"}}),k=M.headers.has("Content-Type");return M.body!=null&&M.body.cancel(),x&&!k}),w=u&&f&&Bs(()=>y.isReadableStream(new a("").body)),C={stream:w&&(x=>x.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!C[x]&&(C[x]=(M,k)=>{let P=M&&M[x];if(P)return P.call(M);throw new z(`Response type '${x}' is not supported`,z.ERR_NOT_SUPPORT,k)})});const B=async x=>{if(x==null)return 0;if(y.isBlob(x))return x.size;if(y.isSpecCompliantForm(x))return(await new s(Fe.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(y.isArrayBufferView(x)||y.isArrayBuffer(x))return x.byteLength;if(y.isURLSearchParams(x)&&(x=x+""),y.isString(x))return(await h(x)).byteLength},$=async(x,M)=>{const k=y.toFiniteNumber(x.getContentLength());return k??B(M)};return async x=>{let{url:M,method:k,data:P,signal:D,cancelToken:Z,timeout:K,onDownloadProgress:fe,onUploadProgress:ht,responseType:Qe,headers:Pe,withCredentials:ke="same-origin",fetchOptions:hn,maxContentLength:Ye,maxBodyLength:It}=Cs(x);const Vt=y.isNumber(Ye)&&Ye>-1,Xt=y.isNumber(It)&&It>-1,mt=se=>y.hasOwnProp(x,se)?x[se]:void 0;let wt=r||fetch;Qe=Qe?(Qe+"").toLowerCase():"text";let nt=Od([D,Z&&Z.toAbortSignal()],K),we=null;const j=nt&&nt.unsubscribe&&(()=>{nt.unsubscribe()});let Le,Tt=null;const ge=()=>new z("Request body larger than maxBodyLength limit",z.ERR_BAD_REQUEST,x,we);try{let se;const je=mt("auth");if(je){const ee=y.getSafeProp(je,"username")||"",Ie=y.getSafeProp(je,"password")||"";se={username:ee,password:Ie}}if(Wd(M)){const ee=new URL(M,Fe.origin);if(!se&&(ee.username||ee.password)){const Ie=Es(ee.username),rt=Es(ee.password);se={username:Ie,password:rt}}(ee.username||ee.password)&&(ee.username="",ee.password="",M=ee.href)}if(se&&(Pe.delete("authorization"),Pe.set("Authorization","Basic "+btoa(jd((se.username||"")+":"+(se.password||""))))),Vt&&typeof M=="string"&&M.startsWith("data:")&&qd(M)>Ye)throw new z("maxContentLength size of "+Ye+" exceeded",z.ERR_BAD_RESPONSE,x,we);if(Xt&&k!=="get"&&k!=="head"){const ee=await B(P);if(typeof ee=="number"&&isFinite(ee)&&(Le=ee,ee>It))throw ge()}const We=Xt&&(y.isReadableStream(P)||y.isStream(P)),Hn=(ee,Ie,rt)=>ks(ee,xs,st=>{if(Xt&&st>It)throw Tt=ge();Ie&&Ie(st)},rt);if(m&&k!=="get"&&k!=="head"&&(ht||We)){if(Le=Le??await $(Pe,P),Le!==0||We){let ee=new s(M,{method:"POST",body:P,duplex:"half"}),Ie;if(y.isFormData(P)&&(Ie=ee.headers.get("content-type"))&&Pe.setContentType(Ie),ee.body){const[rt,st]=ht&&gs(Le,Pi(ys(ht)))||[];P=Hn(ee.body,rt,st)}}}else if(We&&!c&&f&&k!=="get"&&k!=="head")P=Hn(P);else if(We&&c&&!m&&k!=="get"&&k!=="head")throw new z("Stream request bodies are not supported by the current fetch implementation",z.ERR_NOT_SUPPORT,x,we);y.isString(ke)||(ke=ke?"include":"omit");const Xe=c&&"credentials"in s.prototype;if(y.isFormData(P)){const ee=Pe.getContentType();ee&&/^multipart\/form-data/i.test(ee)&&!/boundary=/i.test(ee)&&Pe.delete("content-type")}Pe.set("User-Agent","axios/"+vo,!1);const Lt={...hn,signal:nt,method:k.toUpperCase(),headers:is(Pe.normalize()),body:P,duplex:"half",credentials:Xe?ke:void 0};we=c&&new s(M,Lt);let Me=await(c?wt(we,hn):wt(M,Lt));const mn=He.from(Me.headers);if(Vt){const ee=y.toFiniteNumber(mn.getContentLength());if(ee!=null&&ee>Ye)throw new z("maxContentLength size of "+Ye+" exceeded",z.ERR_BAD_RESPONSE,x,we)}const be=w&&(Qe==="stream"||Qe==="response");if(w&&Me.body&&(fe||Vt||be&&j)){const ee={};["status","statusText","headers"].forEach(Rt=>{ee[Rt]=Me[Rt]});const Ie=y.toFiniteNumber(mn.getContentLength()),[rt,st]=fe&&gs(Ie,Pi(ys(fe),!0))||[];let pn=0;const bt=Rt=>{if(Vt&&(pn=Rt,pn>Ye))throw new z("maxContentLength size of "+Ye+" exceeded",z.ERR_BAD_RESPONSE,x,we);rt&&rt(Rt)};Me=new a(ks(Me.body,xs,bt,()=>{st&&st(),j&&j()}),ee)}Qe=Qe||"text";let Ze=await C[y.findKey(C,Qe)||"text"](Me,x);if(Vt&&!w&&!be){let ee;if(Ze!=null&&(typeof Ze.byteLength=="number"?ee=Ze.byteLength:typeof Ze.size=="number"?ee=Ze.size:typeof Ze=="string"&&(ee=typeof o=="function"?new o().encode(Ze).byteLength:Ze.length)),typeof ee=="number"&&ee>Ye)throw new z("maxContentLength size of "+Ye+" exceeded",z.ERR_BAD_RESPONSE,x,we)}return!be&&j&&j(),await new Promise((ee,Ie)=>{ps(ee,Ie,{data:Ze,headers:He.from(Me.headers),status:Me.status,statusText:Me.statusText,config:x,request:we})})}catch(se){if(j&&j(),nt&&nt.aborted&&nt.reason instanceof z){const je=nt.reason;throw je.config=x,we&&(je.request=we),se!==je&&Object.defineProperty(je,"cause",{__proto__:null,value:se,writable:!0,enumerable:!1,configurable:!0}),je}if(Tt)throw we&&!Tt.request&&(Tt.request=we),Tt;if(se instanceof z)throw we&&!se.request&&(se.request=we),se;if(se&&se.name==="TypeError"&&/Load failed|fetch/i.test(se.message)){const je=new z("Network Error",z.ERR_NETWORK,x,we,se&&se.response);throw Object.defineProperty(je,"cause",{__proto__:null,value:se.cause||se,writable:!0,enumerable:!1,configurable:!0}),je}throw z.from(se,se&&se.code,x,we,se&&se.response)}}},Qd=new Map,$s=n=>{let e=n&&n.env||{};const{fetch:i,Request:o,Response:r}=e,s=[o,r,i];let a=s.length,d=a,c,u,f=Qd;for(;d--;)c=s[d],u=f.get(c),u===void 0&&f.set(c,u=d?new Map:Gd(e)),f=u;return u};$s();const Ao={http:fd,xhr:Fd,fetch:{get:$s}};y.forEach(Ao,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(n,"adapterName",{__proto__:null,value:e})}});const Ns=n=>`- ${n}`,Yd=n=>y.isFunction(n)||n===null||n===!1;function Xd(n,e){n=y.isArray(n)?n:[n];const{length:i}=n;let o,r;const s={};for(let a=0;a<i;a++){o=n[a];let d;if(r=o,!Yd(o)&&(r=Ao[(d=String(o)).toLowerCase()],r===void 0))throw new z(`Unknown adapter '${d}'`);if(r&&(y.isFunction(r)||(r=r.get(e))))break;s[d||"#"+a]=r}if(!r){const a=Object.entries(s).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let d=i?a.length>1?`since :
|
|
17
|
+
`+a.map(Ns).join(`
|
|
18
|
+
`):" "+Ns(a[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+d,z.ERR_NOT_SUPPORT)}return r}const Ms={getAdapter:Xd,adapters:Ao};function zo(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Zn(null,n)}function Is(n){return zo(n),n.headers=He.from(n.headers),n.data=Po.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Ms.getAdapter(n.adapter||Xn.adapter,n)(n).then(function(o){zo(n),n.response=o;try{o.data=Po.call(n,n.transformResponse,o)}finally{delete n.response}return o.headers=He.from(o.headers),o},function(o){if(!ms(o)&&(zo(n),o&&o.response)){n.response=o.response;try{o.response.data=Po.call(n,n.transformResponse,o.response)}finally{delete n.response}o.response.headers=He.from(o.response.headers)}return Promise.reject(o)})}const zi={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{zi[n]=function(o){return typeof o===n||"a"+(e<1?"n ":" ")+n}});const Vs={};zi.transitional=function(e,i,o){function r(s,a){return"[Axios v"+vo+"] Transitional option '"+s+"'"+a+(o?". "+o:"")}return(s,a,d)=>{if(e===!1)throw new z(r(a," has been removed"+(i?" in "+i:"")),z.ERR_DEPRECATED);return i&&!Vs[a]&&(Vs[a]=!0,console.warn(r(a," has been deprecated since v"+i+" and will be removed in the near future"))),e?e(s,a,d):!0}},zi.spelling=function(e){return(i,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};function Zd(n,e,i){if(typeof n!="object"||n===null)throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const o=Object.keys(n);let r=o.length;for(;r-- >0;){const s=o[r],a=Object.prototype.hasOwnProperty.call(e,s)?e[s]:void 0;if(a){const d=n[s],c=d===void 0||a(d,s,n);if(c!==!0)throw new z("option "+s+" must be "+c,z.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new z("Unknown option "+s,z.ERR_BAD_OPTION)}}const Di={assertOptions:Zd,validators:zi},Ue=Di.validators;let on=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ds,response:new ds}}async request(e,i){try{return await this._request(e,i)}catch(o){if(o instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const s=(()=>{if(!r.stack)return"";const a=r.stack.indexOf(`
|
|
19
|
+
`);return a===-1?"":r.stack.slice(a+1)})();try{if(!o.stack)o.stack=s;else if(s){const a=s.indexOf(`
|
|
20
20
|
`),d=a===-1?-1:s.indexOf(`
|
|
21
|
-
`,a+1),c=d===-1?"":s.slice(d+1);String(
|
|
22
|
-
`+s)}}catch{}}throw r}}_request(e,i){typeof e=="string"?(i=i||{},i.url=e):i=e||{},i=$t(this.defaults,i);const{transitional:r,paramsSerializer:o,headers:s}=i;r!==void 0&&ti.assertOptions(r,{silentJSONParsing:ke.transitional(ke.boolean),forcedJSONParsing:ke.transitional(ke.boolean),clarifyTimeoutError:ke.transitional(ke.boolean),legacyInterceptorReqResOrdering:ke.transitional(ke.boolean),advertiseZstdAcceptEncoding:ke.transitional(ke.boolean),validateStatusUndefinedResolves:ke.transitional(ke.boolean)},!1),o!=null&&(p.isFunction(o)?i.paramsSerializer={serialize:o}:ti.assertOptions(o,{encode:ke.function,serialize:ke.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),ti.assertOptions(i,{baseUrl:ke.spelling("baseURL"),withXsrfToken:ke.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let a=s&&p.merge(s.common,s[i.method]);s&&p.forEach(["delete","get","head","post","put","patch","query","common"],w=>{delete s[w]}),i.headers=Se.concat(a,s);const d=[];let c=!0;this.interceptors.request.forEach(function(k){if(typeof k.runWhen=="function"&&k.runWhen(i)===!1)return;c=c&&k.synchronous;const x=i.transitional||ji;x&&x.legacyInterceptorReqResOrdering?d.unshift(k.fulfilled,k.rejected):d.push(k.fulfilled,k.rejected)});const u=[];this.interceptors.response.forEach(function(k){u.push(k.fulfilled,k.rejected)});let f,h=0,m;if(!c){const w=[Oo.bind(this),void 0];for(w.unshift(...d),w.push(...u),m=w.length,f=Promise.resolve(i);h<m;)f=f.then(w[h++],w[h++]);return f}m=d.length;let y=i;for(;h<m;){const w=d[h++],k=d[h++];try{y=w(y)}catch(x){k.call(this,x);break}}try{f=Oo.call(this,y)}catch(w){return Promise.reject(w)}for(h=0,m=u.length;h<m;)f=f.then(u[h++],u[h++]);return f}getUri(e){e=$t(this.defaults,e);const i=Mo(e.baseURL,e.url,e.allowAbsoluteUrls,e);return yo(i,e.params,e.paramsSerializer)}};p.forEach(["delete","get","head","options"],function(e){Mt.prototype[e]=function(i,r){return this.request($t(r||{},{method:e,url:i,data:r&&p.hasOwnProp(r,"data")?r.data:void 0}))}}),p.forEach(["post","put","patch","query"],function(e){function i(r){return function(s,a,d){return this.request($t(d||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Mt.prototype[e]=i(),e!=="query"&&(Mt.prototype[e+"Form"]=i(!0))});let Ac=class da{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(s){i=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 gn(s,a,d),i(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 i=this._listeners.indexOf(e);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const e=new AbortController,i=r=>{e.abort(r)};return this.subscribe(i),e.signal.unsubscribe=()=>this.unsubscribe(i),e.signal}static source(){let e;return{token:new da(function(o){e=o}),cancel:e}}};function Nc(t){return function(i){return t.apply(null,i)}}function vc(t){return p.isObject(t)&&t.isAxiosError===!0}const Ji={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ji).forEach(([t,e])=>{Ji[e]=t});function Do(t){const e=new Mt(t),i=Kr(Mt.prototype.request,e);return p.extend(i,Mt.prototype,e,{allOwnKeys:!0}),p.extend(i,e,null,{allOwnKeys:!0}),i.create=function(o){return Do($t(t,o))},i}const oe=Do(pn);oe.Axios=Mt,oe.CanceledError=gn,oe.CancelToken=Ac,oe.isCancel=ko,oe.VERSION=Qi,oe.toFormData=Xn,oe.AxiosError=R,oe.Cancel=oe.CanceledError,oe.all=function(e){return Promise.all(e)},oe.spread=Nc,oe.isAxiosError=vc,oe.mergeConfig=$t,oe.AxiosHeaders=Se,oe.formToJSON=t=>So(p.isHTMLForm(t)?new FormData(t):t),oe.getAdapter=To.getAdapter,oe.HttpStatusCode=Ji,oe.default=oe;const{Axios:p1,AxiosError:g1,CanceledError:y1,isCancel:w1,CancelToken:b1,VERSION:C1,all:S1,Cancel:k1,isAxiosError:x1,spread:E1,toFormData:B1,AxiosHeaders:$1,HttpStatusCode:M1,formToJSON:R1,getAdapter:I1,mergeConfig:P1,create:A1}=oe;var yn=(t=>(t.GET="get",t.POST="post",t.PUT="put",t.DELETE="delete",t))(yn||{});const wn=(()=>{function t(){const c=o();return!(!c||c==="undefined")}function e(c){c.accessToken&&localStorage.setItem("access_token",c.accessToken),c.refreshToken&&localStorage.setItem("refresh_token",c.refreshToken)}function i(){const c=localStorage.getItem("user");return c?JSON.parse(c).id:""}function r(){const c=localStorage.getItem("user");if(c)return JSON.parse(c)}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(c){if(!t())return;const u=wn.getUser();u&&(u.human=c,localStorage.setItem("user",JSON.stringify(u)))}return{isAuth:t,setTokens:e,getAccessToken:o,getRefreshToken:s,getUserId:i,clearTokens:a,getUser:r,updateHuman:d}})();class Ki{constructor(e){l(this,"code",400);l(this,"err","");P.BuildClass(this,e)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(e,i){const r=e.config;if(e.response){if(e.response.status===401&&!r._retry)return r._retry=!0,i.defaults.headers.common.token=wn.getAccessToken(),e.config.headers.token=wn.getAccessToken(),e.config.baseURL=void 0,i.request(r);if(e.response.status>=500){if(e.response.data==="неверный логин или пароль"){Ze.Error("Неверный логин или пароль");return}Ze.Error("Ошибка на сервере, попробуйте позже")}if(e.response.status>=400&&e.response.status<500){const o=new Ki(e.response.data).getErr();o&&Ze.Error(o)}return Promise.reject(e)}}}const Zt=oe.create();Zt.interceptors.response.use(t=>t,async t=>await Ki.Handle(t,Zt));class bn{static async Get(e,i,r){return await Zt({method:yn.GET,url:e,headers:i,responseType:r})}static async Post(e,i,r,o){return i["Content-Type"]="multipart/form-data",await Zt({method:yn.POST,url:e,headers:i,responseType:r,data:o})}static async Put(e,i,r){return i["Content-Type"]="multipart/form-data",await Zt({method:yn.PUT,url:e,headers:i,data:r})}static async Delete(e,i){return await Zt({method:yn.DELETE,url:e,headers:i})}}class ni{constructor(e){l(this,"name","");P.BuildClass(this,e)}static Set(){}static Get(e,i){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)>(i||10)?null:o.data}else return null}static async TryGet(e,i,r){let o;return o=ni.Get(e,r),o||(o=await i()),o}}var er=(t=>(t.ContentType="Content-Type",t.Token="token",t))(er||{}),Lo=(t=>(t.ApplicationJson="application/json",t.MultipartFormData="multipart/form-data",t))(Lo||{});const K=class K{static Setup(e="http://localhost",i,r="api"){this.baseUrl=Z.BuildSafeUrl(e,i,r),this.host=e,this.apiVersion=r}static newWebSocket(e){const i=this.host.replace("http","ws")+"/ws/"+e;return new WebSocket(i)}static download(e,i){const r=K.getDownloadFileName(e,i.headers);if(!(i.data instanceof Blob)){console.warn("download: response data is not a Blob");return}const o=URL.createObjectURL(i.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,i){if(e)return e;const r=i["content-disposition"];if(!r)return"file";const o=r.indexOf('"')+1,s=r.lastIndexOf('"'),a=r.substring(o,s);return a||"file"}static getHeaders(e){const i=Qe.Get(Te.AccessToken);return e||(e=K.headers),i&&(e[er.Token]=i),e??K.headers}static returnResponse(e,i){if(i)return e!=null&&e.isBlob?K.download(e.downloadFileName,i):i.data}static async Get(e){return K.returnResponse(e,await bn.Get(K.buildUrl((e==null?void 0:e.query)??""),K.getHeaders(e==null?void 0:e.headers),K.getResponseType(e==null?void 0:e.isBlob)))}static async Post(e){return K.returnResponse(e,await bn.Post(K.buildUrl(e==null?void 0:e.query),K.getHeaders(e==null?void 0:e.headers),K.getResponseType(e.isBlob),K.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Put(e){return K.returnResponse(e,await bn.Put(K.buildUrl(e==null?void 0:e.query),K.getHeaders(e==null?void 0:e.headers),K.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Delete(e){return K.returnResponse(e,await bn.Delete(K.buildUrl(e==null?void 0:e.query),K.getHeaders(e==null?void 0:e.headers)))}static async Subscribe(e){const{query:i}=e;return new EventSource(K.buildUrl(i))}static buildUrl(e=""){try{return vi(this.baseUrl,e)}catch{throw new Error(`Invalid base URL: ${this.baseUrl}`)}}static getResponseType(e){return e?"blob":"json"}static createFormDataPayload(e,i){const r=new FormData;if(r.append("form",JSON.stringify(e)),i)for(const o of i)o.file&&r.append(o.id??"files",o.file,o.originalName);return r}};l(K,"baseUrl",""),l(K,"apiVersion","api"),l(K,"host",""),l(K,"headers",{[er.ContentType]:Lo.ApplicationJson});let ie=K;const E=(t,e)=>{const i=t.__vccOpts||t;for(const[r,o]of e)i[r]=o;return i},Vc={},zc={style:{"text-align":"center"}};function Tc(t,e){return n.openBlock(),n.createElementBlock("div",zc,[...e[0]||(e[0]=[n.createElementVNode("h1",null,"Страница не найдена",-1)])])}const Ho=E(Vc,[["render",Tc]]),Oc=[{path:"/:pathMatch(.*)*",name:"NotFound",component:Ho}],Le=class Le{static Setup(e,i=""){this.router=e,this.title=i,this.ChangeDocumentTitle(),this.AddRoutes(Oc)}static Get(){return this.router}static AddRoutes(e){e.forEach(i=>{this.Get().addRoute(i)})}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(){var e;return(e=this.Get())==null?void 0:e.currentRoute.value}static RouterPushBlank(e){const i=this.Get().resolve({path:e});window.open(i==null?void 0:i.href,"_blank")}static GetPath(){var i;const e=(i=Le.Route())==null?void 0:i.path.split("/");return!e||e.length<=0?"":e[e.length-1]}static async ToAdmin(e){if(!e){await this.Get().push("/admin");return}let i=e;i[0]==="/"&&(i=e.substring(1)),await Le.To(`/admin/${i}`)}static GetStringQueryParam(e){return String(this.Route().query[e])}static GetNumberQueryParam(e){return Number(this.Route().query[e]??0)}static GetStringParam(e){var i;return(i=this.Route())==null?void 0:i.params[e]}static SetQueryParam(e,i){const r=new URL(window.location);r.searchParams.set(e,String(i)),history.replaceState(null,"",r)}static Resolve(e){return this.Get().resolve(e)}};l(Le,"router"),l(Le,"title",""),l(Le,"ChangeDocumentTitle",(e="")=>{let i=Le.Route().meta.title??e;i&&(i=" | "+i),document.title=Le.title+i});let Xe=Le;class ee{constructor(e,i){l(this,"items",n.reactive([]));l(this,"item");l(this,"options",n.reactive([]));l(this,"count",n.ref(0));l(this,"classConstructor");l(this,"url","");l(this,"searchStr",n.ref(""));this.classConstructor=e,this.item=n.reactive(new this.classConstructor),this.url=i}Set(e){Object.assign(this.item,new this.classConstructor(e))}getUrl(e){return e?`${this.url}/${e}`:this.url}async GetOptions(e="name",i="id"){const r=`${this.getUrl()}/options/${e}/${i}`;try{const o=await ie.Get({query:r});o&&(this.options.splice(0,this.options.length),this.options.push(...o))}catch(o){console.warn("GetOptions failed:",o)}}async GetAll(e){try{let i;const r=ie.Get;e&&e.withCache?i=await ni.TryGet(this.getUrl(),r):i=await r({query:this.getUrl()}),Array.isArray(i)?this.SetAll(i):this.SetAllWithCount(i)}catch(i){console.warn("GetAll failed:",i)}}async Get(e){try{e||(e=Xe.Id()),this.Set(await ie.Get({query:this.getUrl(e)}))}catch(i){console.warn("Get failed:",i)}}async GetBySlug(e){try{e||(e=Xe.Slug()),this.Set(await $.H.HttpClient.Get({query:this.getUrl("by-slug/"+e)}))}catch(i){console.warn("GetBySlug failed:",i)}}async FTSP(e){var i;try{const o=((e==null?void 0:e.ftsp)??st.Get()).clearForHTTP(),s={payload:{ftsp:o},query:this.getUrl("ftsp")},a=await ie.Post(s);if(!a||!a.ftsp)return;if(Array.isArray(a.data))this.SetAll(a.data);else{if(o.p.append){this.AppendToAll((i=a.data)==null?void 0:i.items);return}this.SetAllWithCount(a.data)}}catch(r){console.warn("FTSP failed:",r)}}async Create(e){try{const i=e??this.item,r={payload:i,query:this.getUrl()};return i.getFileInfos&&(r.fileInfos=i.getFileInfos()),await ie.Post(r)}catch(i){console.warn("Create failed:",i)}}async CreateAndSet(e){const i=await this.Create(e);this.Set(i)}async CreateMany(e){if(!e)return;const i=[];e.forEach(r=>{i.push(new Promise(()=>this.Create(r)))}),Promise.all(i)}async Update(e){try{const i=e??this.item,r={query:this.getUrl(`${i.id}`),payload:i};return i.getFileInfos&&(r.fileInfos=i.getFileInfos(),r.fileInfos.forEach(o=>o.url="")),await ie.Put(r)}catch(i){console.warn("Update failed:",i)}}async UpdateAndSet(e){const i=await this.Update(e);this.Set(i)}async UpdateAndReset(e){await this.Update(e??this.item),this.Set()}async Remove(e){if(e)try{await ie.Delete({query:this.getUrl(`${e}`)}),this.RemoveItem(e)}catch(i){console.warn("Remove failed:",i)}}async UpdateMany(e){if(e||(e=this.items),!e)return;const i=[];e.forEach(r=>{i.push(new Promise(()=>this.Update(r)))}),Promise.all(i)}SetAll(e){this.items.splice(0,this.items.length),e&&this.items.push(...e.map(i=>new this.classConstructor(i)))}SetAllWithCount(e){this.SetAll(e.items),this.count.value=e.count}RemoveItem(e){const i=this.items.findIndex(r=>r.id===e);i<0||this.items.splice(i,1)}AppendToAll(e){if(e){if(Array.isArray(e)){const i=e.map(r=>new this.classConstructor(r));this.items.push(...i);return}this.items.push(new this.classConstructor(e))}}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){P.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(e){if(e){if(Array.isArray(e)){const i=e.map(r=>new this.classConstructor(r));this.items.unshift(...i);return}this.items.unshift(new this.classConstructor(e))}}get Items(){return this.items}get ItemsFiltered(){return this.searchStr.value.trim()?this.Items.filter(e=>$.H.Strings.SearchInFields(this.searchStr.value,e.SearchFields())):this.Items}get Options(){return this.options}get Item(){return this.item}get Count(){return this.count}get SearchStr(){return this.searchStr}}function Fc(t,e){t=="left"&&e.next(),t=="right"&&e.prev()}const Dc=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class Lc{static GetRandColor(e){return ot.GetRandEL(e??Dc)}}function _o(t,e){const i=[],r=e||Oe.Asc,o=r===Oe.Asc?Oe.Desc:Oe.Asc;return Object.values(t).forEach(s=>{i.push(s(r)),i.push(s(o))}),i.length>0&&!i.some(s=>s.default)&&(i[0].default=!0),e&&i.forEach(s=>{s.default&&(s.default=s.order===e)}),i}let Hc=class{constructor(){l(this,"startHour",9);l(this,"endHour",19);l(this,"timelinePxHeight",50);l(this,"timelineStep",cn.FiveMinutes);l(this,"activeTime","");l(this,"activeObjectId","");l(this,"dragged",!1);l(this,"draggedStartTime","");l(this,"draggedEndTime","");l(this,"timelines",Dn[cn.FiveMinutes])}startDrag(e,i){this.draggedStartTime=e,this.draggedEndTime=i,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Dn[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return ot.GenerateNumsRange(this.startHour,this.endHour)}};const tr=t=>t===8||t===46,_c=t=>t>46&&t<58,Uc=t=>t>34&&t<41,qc=t=>t+".",jc=(t,e,i)=>{tr(e)||Uc(e)||(!_c(e)||i>9)&&t.preventDefault()};function Wc(t,e){if(e>8){let i=t.substring(0,2).replace(".","1");Number(i)>31&&(i="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=i+"."+r+"."+o}return t}function Gc(t){const e=t.keyCode;let i=t.srcElement.value;const r=i.length;jc(t,e,r),!tr(e)&&(r===2||r===5)&&(i=qc(i));const o=t.srcElement.value+String.fromCharCode(t.which);if(tr(e)){t.srcElement.value=i;return}i.length===0&&Number(o)>3&&(i="3",t.preventDefault()),i.length===1&&Number(o)>31&&(i="31",t.preventDefault()),o.length===5&&Number(o.substring(3,5))>12&&(i=i.substring(0,3)+"12",t.preventDefault()),i=Wc(i,r),t.srcElement.value=i}const Zc=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],Qc="ru-RU";class Ye{constructor(){l(this,"locale","ru-RU")}static Format(e,i){if(!e)return"";const r={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return i&&(r.year=i.year||i.year===void 0?i.year:r.year,r.month=i.month||i.month===void 0?i.month:r.month,r.day=i.day||i.day===void 0?i.day:r.day,r.hour=i.hour??r.hour,r.minute=i.minute??r.minute),Intl.DateTimeFormat(Qc,r).format(new Date(e))}static FormatWithTime(e){return Ye.Format(e,{month:"2-digit",day:"2-digit",year:"numeric",hour:"numeric",minute:"numeric"})}static FromRuStr(e){const i=e.split(".");return new Date(`${i[2]}-${i[1]}-${i[0]}`)}static GetPeriod(e,i,r){return`${this.Format(e,r)}-${this.Format(i,r)}`}static GetShortDayName(e){return e?Zc[e.getDay()]:""}static GetCurrentWeekPeriod(e){const i=new Date,r=new Date(i.getFullYear(),i.getMonth(),i.getDate()-i.getDay()+1),o=new Date(i.getFullYear(),i.getMonth(),r.getDate()+7);return this.GetPeriod(r,o,e||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(e,i){const r=new Date,o=new Date,s=Ye.SplitHourTime(e),a=Ye.SplitHourTime(i);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 i=Ye.SplitHourTime(e);return i[0]*60+i[1]}static SplitHourTime(e){const i=e.split(":");return[Number(i[0]),Number(i[1])]}static AddMinutesToHM(e,i){const r=new Date,o=Ye.SplitHourTime(e);r.setHours(o[0],o[1],0,0);const s=new Date(r.getTime()+i*6e4),a=s.getHours(),d=s.getMinutes();return`${a}:${d}`}static GetMonthsDiff(e,i){return i.getMonth()-e.getMonth()+12*(i.getFullYear()-e.getFullYear())}static StringToDate(e){const i=e.split(".");return new Date(`${i[2]}-${i[1]}-${i[0]}`)}static GetDateOrToday(e){return e?e.date:new Date}static InPeriod(e,i,r){return new Date(e)>=new Date(i)&&new Date(e)<=new Date(r)}static GetDatesFromPeriod(e,i){const r=[new Date(e)];let o=e;for(;o<=i;)o=Ye.AddDays(o,1),r.push(o);return r}static AddDays(e,i){const r=new Date(e);return r.setDate(r.getDate()+i),r}static Eq(e,i){return e.getTime()===i.getTime()}}class Xc{constructor(){l(this,"dragged",!1);l(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(e){this.dragged=!0,e&&e.dataTransfer&&e.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class Uo{static Get(e){const i=e.split(".");return i[i.length-1]}}const Yc=(()=>{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 i(s,a){const d=localStorage.getItem(`${s}_favourite`);if(!d){t(s,[a]);return}const c=d.split(",");c.push(a),t(s,c)}function r(s,a){const d=localStorage.getItem(`${s}_favourite`);if(!d)return;const c=d.split(",").filter(u=>u!==a);t(s,c)}function o(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:i,removeFromFavourite:r,setFavourite:t,isFavourite:e,clearFavourite:o}})();class Jc{constructor(){l(this,"list",[]);l(this,"defaultSortModel");l(this,"changeFlag",!1)}Set(e){this.Reset(),e&&(Array.isArray(e)?this.list=e:this.list=_o(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 Rt=new Jc;function Kc(){const t=n.ref(!1),e=n.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 ed=(()=>{const t=(s,a)=>n.onBeforeMount(async()=>{$.F.FTSP.Get().reset(),Rt.Set(a==null?void 0:a.sortsLib),await s()}),{saveButtonClick:e,showConfirmModal:i}=Kc(),r=s=>ya.onBeforeRouteLeave((a,d,c)=>{i((s||o)(),c)}),o=s=>async()=>{e.value=!0;try{s&&await s()}catch{return}};return{onBeforeMount:t,onBeforeRouteLeave:r,submit:o}})();function qo(t,e){const i=[];if(t)for(let r=0;r<Math.ceil(t.length/e);r++)i[r]=t.slice(r*e,r*e+e);return i}class nr{constructor(){l(this,"items",[]);l(this,"idx",0);l(this,"key","")}preSelect(){const e=Xe.GetStringQueryParam(this.key);if(!e||e==="undefined"){this.Select(0);return}const i=this.items.findIndex(r=>r.slug===e);i>-1&&this.Select(i)}static Create(e,i){const r=new nr;return r.key=e,r.items=i,r.items.length&&r.preSelect(),r}Select(e){if(this.items.length){if(e===void 0)return this.preSelect();this.idx=e,Xe.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 Ei=class Ei{static Format(e){let i=e;if(!i)e=i;else{(i[0]==="7"||i[0]==="8")&&i.length!==1&&(i=i.slice(1));const r=i.replace(/\+7|[^\d]/g,""),o=r.length;switch(!0){case o===0:e="";break;case(o===1&&i.length===1&&r==="7"):case(o===1&&i.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*)?$/}};l(Ei,"validatePhone",(e,i,r)=>{Ei.getPhoneRegExp().test(i)||!i?r():r(new Error("Пожалуйста, введите корректный номер телефона"))});let ir=Ei;class td{static Count(e){const i=e.filter(s=>s.rating!==0);let r=0;i.forEach(s=>r=r+s.rating);const o=r/i.length;return isNaN(o)?0:Number((r/i.length).toFixed(2))}}class nd{static async Auth(e){e&&e()}static Dev(){}}class id{constructor(){l(this,"startHour",9);l(this,"startHM",`${this.startHour}:00`);l(this,"endHour",19);l(this,"endHM",`${this.endHour}:00`);l(this,"timelinePxHeight",50);l(this,"timelineStep",cn.FiveMinutes);l(this,"timelines",Dn[cn.FiveMinutes])}periodIsCorrect(e,i){return q.GtOrEq(e,this.startHM)&&q.GtOrEq(this.endHM,i)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Dn[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return ot.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(e,i,r,o){return o.filter(s=>s.id!==r).every(s=>!q.PeriodsIntersects(e,i,s.startTime,s.endTime))}sortByStartTime(e){e.sort((i,r)=>q.HMtoM(i.startTime)-q.HMtoM(r.startTime))}}const rd=-68;function od(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const i=document.querySelector(t),r=e??rd;let o=0;i&&(o=i.getBoundingClientRect().top+r+document.body.scrollTop),o&&document.body.scrollTo({top:o,behavior:"smooth"})}class sd{static Sort(e){e.forEach((i,r)=>i.order=r)}}class ii{static Wait(e,i){return new Promise(r=>setTimeout(()=>r(i),e))}static WaitS(e,i){return ii.Wait(q.S(e),i)}static WaitM(e,i){return ii.Wait(q.M(e),i)}}function ad(t,e){let i=!0;return t.value.validate(r=>(r||(i=!1),i)),i}const ld=t=>new Promise(e=>{if(document.querySelector(t))return e(document.querySelector(t));const i=new MutationObserver(()=>{document.querySelector(t)&&(i.disconnect(),e(document.querySelector(t)))});i.observe(document.body,{childList:!0,subtree:!0})});let cd=class Dr{constructor(e){l(this,"id");l(this,"message","");l(this,"userName");l(this,"createdOn",new Date);l(this,"chatId");l(this,"type","message");P.BuildClass(this,e)}static Create(e,i,r,o){const s=new Dr;return s.id=ut(),s.chatId=e,s.message=r,s.userName=o,s}static CreatePingMessage(){const e=new Dr;return e.type="ping",e.id=ut(),e}isMessage(){return this.type==="message"||this.type===""}};const dd="";class ud{constructor(e="",i="",r="set"){l(this,"client");l(this,"endpoint","");l(this,"query","");l(this,"period",2e4);P.BuildClass(this,{endpoint:e,query:i,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(cd.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,dd.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 fd=(j=class{},l(j,"Arrays",ot),l(j,"Axios",bn),l(j,"BaseStore",ee),l(j,"Cache",ni),l(j,"Classes",P),l(j,"CarouselSwipe",Fc),l(j,"Color",Lc),l(j,"CreateSortModels",_o),l(j,"Cursor",Hc),l(j,"DateMask",Gc),l(j,"Dates",Ye),l(j,"Dragger",Xc),l(j,"Extension",Uo),l(j,"Favourite",Yc),l(j,"Hooks",ed),l(j,"HttpClient",ie),l(j,"Id",de),l(j,"MakeCarousel",qo),l(j,"Period",Ai),l(j,"PhoneService",ir),l(j,"Rating",td),l(j,"Router",Xe),l(j,"RouterGuard",nd),l(j,"Scheduler",id),l(j,"Scroll",od),l(j,"Sorter",sd),l(j,"Static",Vi),l(j,"Strings",Z),l(j,"Time",q),l(j,"Timer",ii),l(j,"Token",wn),l(j,"Menus",nr),l(j,"validate",ad),l(j,"WaitElement",ld),l(j,"WebSocketClient",ud),j);class hd{constructor(){l(this,"limit",25);l(this,"count",0);l(this,"curPage",1);l(this,"storeModule","")}setCurPage(e){this.curPage=e}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const jo=new hd;var Wo=(t=>(t.TableList="tableList",t.Default="",t))(Wo||{}),Je=(t=>(t.None="None",t.Next="Next",t.Prev="Prev",t))(Je||{}),Go=(t=>(t.Year="Год",t.Month="Месяц",t.Week="Неделя",t.Day="День",t))(Go||{}),Zo=(t=>(t.YouTube="YouTube",t.VK="VK",t.Instagram="Instagram",t.Facebook="Facebook",t))(Zo||{}),rr=(t=>(t.simple="simple",t.oneToMany="oneToMany",t.manyToMany="manyToMany",t))(rr||{});const md=Object.freeze(Object.defineProperty({__proto__:null,AdminLayout:Wo,Animations:Je,CalendarScale:Go,LocalStoreKeys:Te,SocialTypes:Zo,ValueRelation:rr},Symbol.toStringTag,{value:"Module"}));let pd=class{async Login(e=pe.Form.GetValues()){const i=await ie.Post({query:"auth/login",payload:e});if(!i)throw"Ошибка авторизации";pe.Status.SetState(i)}async LoginAs(e){await ie.Post({query:"auth/login-as",payload:{email:e}})}async Register(e=pe.Form.GetValues()){const i=await ie.Post({query:"auth/register",payload:e});if(!i)throw i}async RestorePassword(e=pe.Form.GetValues()){await ie.Post({query:"auth/restore-password",payload:e})}async PasswordChange(e=pe.Form.GetValues()){e.id=Xe.GetStringParam("userId"),await ie.Put({query:"auth/password-change",payload:e})}async RefreshToken(){await ie.Post({query:"auth/refresh-token",payload:{refreshToken:wn.getRefreshToken()}})}async CheckUuid(e){await ie.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}async ConfirmEmail(e){await ie.Get({query:`auth/confirm-email/${e}`})}async EmailIsConfirm(e){await ie.Get({query:`auth/email-is-confirm/${e}`})}};const gd=new pd;var yd=Object.defineProperty,ri=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&yd(e,i,o),o};const Cn=class ua{constructor(e){l(this,"id");l(this,"description","");l(this,"time","");l(this,"latitude","");l(this,"longitude","");l(this,"emails",[]);l(this,"postAddresses",[new Ln]);l(this,"phones",[]);l(this,"websites",[]);P.BuildClass(this,e)}addEmail(){const e=kt.Create();return e.contactId=this.id,this.emails.push(e),e}addPhone(){const e=xt.Create();return e.contactId=this.id,this.phones.push(e),e}static Create(){const e=new ua;return e.id=de.UUID(),e}removeEmail(e){P.RemoveFromClassById(e,this.emails)}removePhone(e){P.RemoveFromClassById(e,this.phones)}addPostAddress(){this.postAddresses.push(new Ln)}addWebsite(){this.websites.push(new zi)}pushFirst(){this.emails.length||this.emails.push(new kt),this.phones.length||this.phones.push(new xt)}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}};ri([P.GetClassConstructor(kt)],Cn.prototype,"emails"),ri([P.GetClassConstructor(Ln)],Cn.prototype,"postAddresses"),ri([P.GetClassConstructor(xt)],Cn.prototype,"phones"),ri([P.GetClassConstructor(zi)],Cn.prototype,"websites");let Qo=Cn,wd=class extends ee{constructor(){super(Qo,"contacts")}};const bd=new wd;let Cd=class extends ee{constructor(){super(kt,"emails")}};const Sd=new Cd;class or{constructor(e){l(this,"id");l(this,"ftsp");l(this,"name","");P.BuildClass(this,e)}static Create(e){const i=new or;return i.id=de.UUID(),i.ftsp=JSON.stringify(e),i}}let kd=class extends ee{constructor(){super(or,"ftsp-presets")}};const xd=new kd;let Ed=class extends ee{constructor(){super(Xr,"humans")}};const Bd=new Ed;let $d=class extends ee{constructor(){super(xt,"phones")}};const Md=new $d;class Rd{constructor(e){l(this,"id");l(this,"nameRus","");P.BuildClass(this,e)}}var Id=Object.defineProperty,Pd=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&Id(e,i,o),o};class Xo{constructor(e){l(this,"id");l(this,"nameRus","");l(this,"fields",[]);P.BuildClass(this,e)}}Pd([P.GetClassConstructor(Rd)],Xo.prototype,"fields");let Ad=class extends ee{constructor(){super(Xo,"schemas")}};const Nd=new Ad;class Yo{constructor(e){l(this,"id","");l(this,"value","");l(this,"label","");l(this,"key","");l(this,"description","");l(this,"route","");l(this,"searchElementMetas",[]);P.BuildClass(this,e)}}class vd{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");P.BuildClass(this,e)}}var Vd=Object.defineProperty,Jo=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&Vd(e,i,o),o};class Qt{constructor(e){l(this,"id");l(this,"key","");l(this,"label","");l(this,"order",0);l(this,"route","");l(this,"table","");l(this,"active",!0);l(this,"searchColumn","");l(this,"descriptionColumn","");l(this,"labelColumn","");l(this,"valueColumn","");l(this,"options",[]);l(this,"searchGroupMetaColumns",[]);P.BuildClass(this,e)}}Jo([P.GetClassConstructor(Yo)],Qt.prototype,"options"),Jo([P.GetClassConstructor(vd)],Qt.prototype,"searchGroupMetaColumns");class sr{constructor(e){l(this,"query","");l(this,"key","");l(this,"params","");l(this,"suggester",!1);l(this,"mustBeTranslated",!0);l(this,"options",[]);l(this,"searchGroupId","");l(this,"searchGroups",[]);l(this,"searchGroup",new Qt);l(this,"searchObjects",[]);l(this,"pagination",new Un);l(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(i=>new Qt(i))),e.searchGroup&&(this.searchGroup=new Qt(e.searchGroup)),e.options&&(this.options=e.options.map(i=>new Yo(i))),this.count=e.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(e){const i=this.searchGroups.find(r=>r.id===e);i?this.searchGroup=i:this.searchGroup=new Qt}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(Xe.Route().query.groupId)}setQuery(){const e=Xe.Route().query.query;e&&(this.query=e)}}let zd=class{constructor(){l(this,"isSearchDrawerOpen",n.ref(!1));l(this,"searchModel",n.reactive(new sr));l(this,"searchGroups",n.reactive([]));l(this,"count",0)}async Search(e){const i=await ie.Get({query:`search?key=${e.key}&query=${e.query}`});i&&i.searchGroup&&i.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 ie.Get({query:`search/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(r=>{r.options=[]});const i=await ie.Get({query:`search/main?searchModel=${e.toUrl()}`});return this.SetSearchModel(i),i}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new sr}SetSearchModel(e){e&&(this.searchModel=new sr(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const ar=new zd;let Td=class extends ee{constructor(){super(Hn,"users-accounts")}};const Od=new Td;var xe=(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))(xe||{});class Ko{constructor(e){l(this,"id");l(this,"name",xe.String);l(this,"valueRelation",rr.simple);P.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===xe.Radio)return"RadioProp";if(this.name===xe.Set)return"SetProp";if(this.name===xe.Number)return"NumberProp";if(this.name===xe.String)return"StringProp"}}let Fd=class extends ee{constructor(){super(Ko,"value-types")}};const Dd=new Fd;let es=(Ae=class{},l(Ae,"Auth",gd),l(Ae,"Contacts",bd),l(Ae,"Emails",Sd),l(Ae,"FileInfos",new ee(ye,"file-infos")),l(Ae,"FTSPPresets",xd),l(Ae,"Humans",Bd),l(Ae,"Phones",Md),l(Ae,"Schemas",Nd),l(Ae,"UserAccounts",Od),l(Ae,"ValueTypes",Dd),l(Ae,"Search",ar),Ae);var ft=(t=>(t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl",t))(ft||{});let Ld=(wt=class{},l(wt,"Orders",Oe),l(wt,"Sizes",ft),l(wt,"Statuses",J),l(wt,"DataTypes",ue),l(wt,"ValueTypes",xe),l(wt,"Operators",ne),wt);class Hd{constructor(){l(this,"title","");l(this,"buttons",[]);l(this,"editTitle",n.ref(!1));l(this,"showEdit",n.ref(!1))}Set(e="",i){typeof e=="function"?this.title=e():typeof e=="string"?this.title=e:this.title=e.value,this.buttons=i}}const _d=new Hd;class Ud{constructor(){l(this,"menu",[]);l(this,"path","");l(this,"isOpen",!0);l(this,"filterString","")}Set(e){this.menu=e}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(e=>{var i;return Z.SearchIn(e.name,this.filterString)||((i=e.children)==null?void 0:i.some(r=>Z.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 i;return this.filterString?(i=e.children)==null?void 0:i.filter(r=>Z.SearchIn(r.name,this.filterString)):e.children}}const qd=new Ud;class jd{constructor(){l(this,"Menu",n.reactive(qd));l(this,"Head",n.reactive(_d))}}const Wd=new jd,ts="Да",ns="Нет";class Gd extends Ht{constructor(){super(...arguments);l(this,"confirmButtonText",ts);l(this,"cancelButtonText",ns);l(this,"persistent",!0);l(this,"resolve");l(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(i){const r=typeof i=="string"?{text:i}:i;return this.confirmButtonText=r.confirmButtonText??ts,this.cancelButtonText=r.cancelButtonText??ns,this.persistent=r.persistent??!0,super.showMessage(r,this.type),new Promise((o,s)=>{if(this.resolve=o,this.reject=s,typeof D.Dialog.create!="function"){console.warn("[sprof] Quasar Dialog plugin is not installed. Add `app.use(Quasar, { plugins: { Dialog } })` (imported from 'quasar') to your app."),this.Settle(()=>s({type:"cancel"}));return}const a=D.Dialog.create({title:this.title||void 0,message:this.text,html:Ht.ContainsHtml(this.text),persistent:this.persistent,ok:{label:this.confirmButtonText,flat:!0,color:"primary"},cancel:{label:this.cancelButtonText,flat:!0,color:"warning"}});a.onOk(()=>this.Settle(()=>o({type:"submit"}))),a.onCancel(()=>this.Settle(()=>s({type:"cancel"}))),a.onDismiss(()=>this.Settle())})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.Settle(()=>{var i;return(i=this.resolve)==null?void 0:i.call(this,!0)})}Cancel(){this.Settle(()=>{var i;return(i=this.reject)==null?void 0:i.call(this)})}Settle(i){i==null||i(),this.resolve=void 0,this.reject=void 0}}const Zd=new Gd;class Qd{constructor(){l(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class Xd extends Qd{Show(){super.show()}Hide(){super.hide()}}const Yd=new Xd;class ht{}l(ht,"Admin",Wd),l(ht,"Dialog",Zd),l(ht,"Loading",Yd),l(ht,"Notify",Ze),l(ht,"Btn",St),l(ht,"Input",_r);class ${}l($,"Auth",n.reactive(pe)),l($,"UI",n.reactive(ht)),l($,"Paginator",n.reactive(jo)),l($,"S",es),l($,"H",fd),l($,"C",Ta),l($,"T",Ld),l($,"I",md),l($,"F",Ha);class is{constructor(e){l(this,"id");l(this,"name","");l(this,"address","");l(this,"number");l(this,"building");l(this,"buildingId");$.H.Classes.BuildClass(this,e),this.setName()}setName(){this.building&&(this.name=this.building.address+", вход "+this.number,this.address=this.name)}getBuildingNumber(){var e;return String((e=this.building)==null?void 0:e.number)}getEntranceNumber(){return String(this.number)}}class rs{constructor(e){l(this,"id");l(this,"number");l(this,"buildingId");$.H.Classes.BuildClass(this,e)}}var Jd=Object.defineProperty,os=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&Jd(e,i,o),o};class oi{constructor(e){l(this,"id");l(this,"number","");l(this,"address","");l(this,"name","");l(this,"status","");l(this,"description","");l(this,"floors",[]);l(this,"entrances",[]);$.H.Classes.BuildClass(this,e)}}os([$.H.Classes.GetClassConstructor(rs)],oi.prototype,"floors"),os([$.H.Classes.GetClassConstructor(is)],oi.prototype,"entrances");const Kd=Object.freeze(Object.defineProperty({__proto__:null,Building:oi,Entrance:is,Floor:rs},Symbol.toStringTag,{value:"Module"}));let eu=class extends ee{constructor(){super(oi,"buildings")}};const tu=new eu,nu=Object.freeze(Object.defineProperty({__proto__:null,C:Kd,S:Object.freeze(Object.defineProperty({__proto__:null,BuildingsStore:tu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));var Xt=(t=>(t.Ping="ping",t.Enter="enter",t.Exit="exit",t.Message="message",t.Write="write",t.Empty="",t))(Xt||{});class It{constructor(e){l(this,"id");l(this,"userId");l(this,"chatId");l(this,"message","");l(this,"fileInfo",new $.C.FileInfo);l(this,"createdAt",new Date);l(this,"type",Xt.Message);P.BuildClass(this,e)}static Create(e,i,r){const o=new It;return o.id=$.H.Id.UUID(),o.chatId=i,o.userId=r,o.message=e,o}static CreatePingMessage(){const e=new It;return e.type=Xt.Ping,e.id=$.H.Id.UUID(),e}isMessage(){return this.type===Xt.Message||this.type===Xt.Empty}}var iu=Object.defineProperty,ru=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&iu(e,i,o),o};const ss=class fa{constructor(e){l(this,"id");l(this,"name","");l(this,"createdAt",new Date);l(this,"newMesage","");l(this,"userId","");l(this,"chatMessages",[]);$.H.Classes.BuildClass(this,e)}static Create(){const e=new fa;return e.id=$.H.Id.UUID(),e}addMessage(){if(this.newMesage==="")return;const e=It.Create(this.newMesage,this.id,this.userId);return this.chatMessages.push(e),this.newMesage="",e}};ru([$.H.Classes.GetClassConstructor(It)],ss.prototype,"chatMessages");let as=ss;const ou=Object.freeze(Object.defineProperty({__proto__:null,Chat:as,ChatMessage:It},Symbol.toStringTag,{value:"Module"}));let su=class extends ee{constructor(){super(It,"chat-messages")}};const au=new su;let lu=class extends ee{constructor(){super(as,"chats")}};const cu=new lu,du=Object.freeze(Object.defineProperty({__proto__:null,C:ou,S:Object.freeze(Object.defineProperty({__proto__:null,ChatMessages:au,Chats:cu},Symbol.toStringTag,{value:"Module"})),T:(Or=class{},l(Or,"ChatMessage",Xt),Or)},Symbol.toStringTag,{value:"Module"}));class ls{constructor(e){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new ye);$.H.Classes.BuildClass(this,e)}}class Sn{constructor(e){l(this,"id");l(this,"passportId");l(this,"fileInfoId");l(this,"fileInfo",new $.C.FileInfo);l(this,"order",0);P.BuildClass(this,e)}static Create(e){const i=new Sn;return i.id=$.H.Id.UUID(),i.passportId=e,i}}var uu=Object.defineProperty,fu=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&uu(e,i,o),o};class lr{constructor(e){l(this,"id");l(this,"num","");l(this,"seria","");l(this,"division","");l(this,"divisionCode","");l(this,"citzenship","");l(this,"date",new Date);l(this,"address","");l(this,"passportScans",[]);P.BuildClass(this,e)}}fu([P.GetClassConstructor(Sn)],lr.prototype,"passportScans");class cs{constructor(e){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new ye);$.H.Classes.BuildClass(this,e)}}const hu=Object.freeze(Object.defineProperty({__proto__:null,Inn:ls,Passport:lr,PassportScan:Sn,Snils:cs},Symbol.toStringTag,{value:"Module"}));let mu=class extends ee{constructor(){super(ls,"inns")}};const pu=new mu;let gu=class extends ee{constructor(){super(Sn,"passport-scans")}};const yu=new gu;let wu=class extends ee{constructor(){super(lr,"passports")}};const bu=new wu;let Cu=class extends ee{constructor(){super(cs,"snilss")}};const Su=new Cu,ku=Object.freeze(Object.defineProperty({__proto__:null,C:hu,S:Object.freeze(Object.defineProperty({__proto__:null,Inns:pu,PassportScans:yu,Passports:bu,Snilss:Su},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class cr{constructor(e){l(this,"id");l(this,"name","");$.H.Classes.BuildClass(this,e)}static Create(e){const i=new cr;return i.id=$.H.Id.UUID(),i.name=e,i}}const xu=Object.freeze(Object.defineProperty({__proto__:null,Extract:cr},Symbol.toStringTag,{value:"Module"})),Eu=[{path:"/admin/extracts",name:"ExtractsList",component:()=>Promise.resolve().then(()=>Jg)}];class kn{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");$.H.Classes.BuildClass(this,e)}static Create(e,i){const r=new kn;return r.id=$.H.Id.UUID(),r.name=e,r.label=i,r}}let Bu=class extends ee{constructor(){super(kn,"extracts")}};const $u=new Bu,Mu=Object.freeze(Object.defineProperty({__proto__:null,C:xu,R:Eu,S:Object.freeze(Object.defineProperty({__proto__:null,ExtractsStore:$u},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Pt{constructor(e){l(this,"id");l(this,"name","");l(this,"score",0);l(this,"order",0);l(this,"showMoreQuestions",!1);l(this,"showOther",!1);l(this,"fieldId");l(this,"isMatrixY",!1);$.H.Classes.BuildClass(this,e)}static Create(e){const i=new Pt;return i.id=$.H.Id.UUID(),i.fieldId=e,i}}class ds{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fieldId");$.H.Classes.BuildClass(this,e)}}class dr{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);$.H.Classes.BuildClass(this,e)}}class Yt{constructor(e){l(this,"id");l(this,"name","");l(this,"fieldId");$.H.Classes.BuildClass(this,e)}static Create(e){const i=new Yt;return i.id=$.H.Id.UUID(),i.fieldId=e,i}}var Ru=Object.defineProperty,xn=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&Ru(e,i,o),o};const At=class Ri{constructor(e){l(this,"id");l(this,"name","");l(this,"code","");l(this,"valueTypeId");l(this,"order",0);l(this,"ageCompare",!1);l(this,"answerVariants",[]);l(this,"answerVariantsForDelete",[]);l(this,"fieldExamples",[]);l(this,"fieldVariants",[]);l(this,"valueType",new Ko);l(this,"fieldMeasures",[]);l(this,"showSet",!1);l(this,"showRadio",!1);l(this,"isEdit",!1);l(this,"children",[]);l(this,"parentId");l(this,"formSectionId");l(this,"selected",!1);$.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 i=new Ri;return i.id=$.H.Id.UUID(),i.formSectionId=e,i}getRegisterPropertyRadioOriginalValue(e){const i=this.answerVariants.find(r=>r.id===e);return i?i.name:""}addRadioItem(e){const i=new Pt(e);i.order=this.answerVariants.length,this.answerVariants.push(i)}removeRadioItem(e){const i=this.answerVariants[e].id;i&&this.answerVariantsForDelete.push(i),this.answerVariants.splice(e,1)}changeRelation(e){const i=e.find(r=>r.id===this.valueTypeId);if(i){if(i.isRadio()){this.showRadio=!0,this.showSet=!1;return}if(i.isSet()){this.showSet=!0,this.showRadio=!1;return}this.showSet=!1,this.showRadio=!1,this.valueType=i}}editRegisterProperty(e){this.isEdit=e??!this.isEdit}sortExamples(){this.fieldExamples.forEach((e,i)=>e.order=i)}addRegisterPropertyMeasure(e){this.fieldMeasures.push(new dr(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new Yt)}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=Pt.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=Ri.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=Yt.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new Ri(this);return e.id=$.H.Id.UUID(),e.answerVariants.forEach(i=>{i.id=$.H.Id.UUID(),i.fieldId=e.id}),e.children=e.children.map(i=>{const r=i.copy();return r.parentId=e.id,r}),e}};xn([$.H.Classes.GetClassConstructor(Pt)],At.prototype,"answerVariants"),xn([$.H.Classes.GetClassConstructor(ds)],At.prototype,"fieldExamples"),xn([$.H.Classes.GetClassConstructor(Yt)],At.prototype,"fieldVariants"),xn([$.H.Classes.GetClassConstructor(dr)],At.prototype,"fieldMeasures"),xn([$.H.Classes.GetClassConstructor(At)],At.prototype,"children");let si=At;class ur{constructor(e){l(this,"id");l(this,"answerId");l(this,"comment","");l(this,"fileInfoId");l(this,"fileInfo",new ye);$.H.Classes.BuildClass(this,e)}}class Nt{constructor(e){l(this,"id");l(this,"answerVariantId");l(this,"answerVariantIdY");l(this,"fieldFillId");$.H.Classes.BuildClass(this,e)}static Create(e,i){const r=new Nt;return r.id=ut(),r.fieldFillId=e,r.answerVariantId=i,r}static GetClassName(){return"selectedAnswerVariant"}}var Iu=Object.defineProperty,us=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&Iu(e,i,o),o};const fr=class Lr{constructor(e){l(this,"id");l(this,"valueString");l(this,"valueOther");l(this,"valueNumber");l(this,"valueDate");l(this,"fileInfo",new ye);l(this,"fileInfoId");l(this,"order",0);l(this,"selectedAnswerVariants",[]);l(this,"patientId");l(this,"fieldId");l(this,"formFillId");l(this,"answerVariantId");l(this,"filled",!1);l(this,"researchResultId");l(this,"answerFiles",[]);l(this,"answerFilesForDelete",[]);$.H.Classes.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,i){const r=new Lr;return r.id=ut(),r.fieldId=e.id,r.formFillId=i,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,i){return e.map(r=>Lr.Create(r,i))}addFile(){const e=new ur;return e.id=ut(),e.answerId=this.id,this.answerFiles.push(e),e}getFileInfos(){const e=[];return this.answerFiles.forEach(i=>e.push(i.fileInfo)),e}getSelectedAnswerVariant(){return!0}setMatrixRadioValue(e,i){const r=Nt.Create(this.id,e);return r.answerVariantIdY=i,this.selectedAnswerVariants.push(r),this.filled=!0,r}getMatrixValue(e,i){return this.selectedAnswerVariants.find(r=>r.answerVariantId===e&&r.answerVariantIdY===i)}addSelectedAnswerVariant(e){const i=Nt.Create(this.id,e);return this.selectedAnswerVariants.push(i),this.filled=!0,i}static GetClassName(){return"answer"}showOther(e){const i=e.find(r=>r.showOther);return i?this.answerVariantId===i.id||this.selectedAnswerVariants.some(r=>r.answerVariantId===i.id):!1}};us([$.H.Classes.GetClassConstructor(Nt)],fr.prototype,"selectedAnswerVariants"),us([$.H.Classes.GetClassConstructor(ur)],fr.prototype,"answerFiles");let Jt=fr;class Pu{constructor(e){l(this,"id");l(this,"fieldId");$.H.Classes.BuildClass(this,e)}static GetClassName(){return"fieldFilter"}}var Au=Object.defineProperty,Nu=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&Au(e,i,o),o};const fs=class ha{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fields",[]);l(this,"formId");$.H.Classes.BuildClass(this,e)}static GetClassName(){return"formSection"}getN(){return`${this.order+1}`}getFieldN(e){return`${this.getN()}.${e+1}`}getSubFieldN(e,i){return`${this.getFieldN(e)}.${i+1}`}static Create(e){const i=new ha;return i.id=$.H.Id.UUID(),i.formId=e,i}addField(){const e=si.Create(this.id);return this.fields.push(e),this.sortFields(),e}sortFields(){this.fields.forEach((e,i)=>e.order=i)}getAnswerVariants(){const e=[];return this.fields.forEach(i=>e.push(...i.answerVariants)),e}};Nu([$.H.Classes.GetClassConstructor(si)],fs.prototype,"fields");let ai=fs;var vu=Object.defineProperty,Vu=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&vu(e,i,o),o};const hs=class ma{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"isLaboratory",!1);l(this,"formSections",[]);l(this,"isEdit",!1);l(this,"withDates",!1);l(this,"withScores",!1);l(this,"selectedForExport",!1);l(this,"filterString","");l(this,"showOnlyNotFilled",!1);l(this,"showOnlyFilled",!1);$.H.Classes.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new ma;return e.id=$.H.Id.UUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=ai.Create(this.id);return this.formSections.push(e),$.H.Sorter.Sort(this.formSections),e}getFields(){const e=this.formSections.map(r=>r.fields).flat(),i=e.map(r=>r.children).flat();return e.concat(i).filter(r=>r.children.length===0)}};Vu([$.H.Classes.GetClassConstructor(ai)],hs.prototype,"formSections");let ms=hs;var zu=Object.defineProperty,Tu=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&zu(e,i,o),o};const ps=class pa{constructor(e){l(this,"id");l(this,"date",new Date);l(this,"editMode",!1);l(this,"userFormId");l(this,"fillingPercentage",0);l(this,"fieldFills",[]);l(this,"num","");l(this,"formId");$.H.Classes.BuildClass(this,e)}static Create(e){const i=new pa;return i.id=$.H.Id.UUID(),i.formId=e.id,i.fieldFills.push(...Jt.CreateMany(e.getFields(),i.id)),i}addFieldFill(e){this.fieldFills.push(e)}getFieldFill(e){var i;return(i=this.fieldFills)==null?void 0:i.find(r=>r.fieldId===e)}pushRegisterProperty(e){const i=new Jt;i.researchResultId=e,this.fieldFills.push(i)}getRegisterPropertyToPatient(e){return this.fieldFills.filter(i=>i.researchResultId===e)}getOrCreateFieldFill(e){let i=this.getFieldFill(e.id);return i||(i=Jt.Create(e),this.addFieldFill(i)),i}getFileInfos(){const e=[];return this.fieldFills.forEach(i=>e.push(...i.getFileInfos())),e}calculateFilling(){const e=this.fieldFills.filter(r=>r.filled).length,i=this.fieldFills.length;this.fillingPercentage=Math.round(e/i*100)}getFieldFillByFieldId(e){return this.fieldFills.find(i=>i.fieldId===e)}getFieldVariantFieldFill(e){return this.fieldFills.find(i=>i.answerVariantId===e)}getFieldsFieldFillsMap(e){const i={};return e.forEach(r=>{var o;if(r.code){const s=(o=this.getFieldFillByFieldId(r.id))==null?void 0:o.valueNumber;i[r.code]=s}}),i}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};Tu([$.H.Classes.GetClassConstructor(Jt)],ps.prototype,"fieldFills");let gs=ps;const Ou=Object.freeze(Object.defineProperty({__proto__:null,AnswerVariant:Pt,Field:si,FieldExample:ds,FieldFill:Jt,FieldFillFile:ur,FieldFilter:Pu,FieldMeasure:dr,FieldVariant:Yt,Form:ms,FormFill:gs,FormSection:ai,SelectedAnswerVariant:Nt},Symbol.toStringTag,{value:"Module"}));let Fu=class extends ee{constructor(){super(Pt,"answer-variants")}};const Du=new Fu;let Lu=class extends ee{constructor(){super(Jt,"field-fills")}};const Hu=new Lu;let _u=class extends ee{constructor(){super(si,"fields")}};const Uu=new _u;let qu=class extends ee{constructor(){super(gs,"form-fills")}};const ju=new qu;let Wu=class extends ee{constructor(){super(ai,"form-sections")}};const Gu=new Wu;let Zu=class extends ee{constructor(){super(ms,"forms")}};const Qu=new Zu;let Xu=class extends ee{constructor(){super(Nt,"selected-answer-variants")}};const Yu=new Xu,Ju=Object.freeze(Object.defineProperty({__proto__:null,C:Ou,S:Object.freeze(Object.defineProperty({__proto__:null,AnswerVariants:Du,FieldFills:Hu,Fields:Uu,FormFills:ju,FormSections:Gu,Forms:Qu,SelectedAnswerVariants:Yu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class li{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"selected",!1);l(this,"hide",!1);l(this,"editMode",!1);l(this,"color","");l(this,"background","");l(this,"order",0);l(this,"menuId");l(this,"iconId");l(this,"icon",new ye);l(this,"iconName","");l(this,"svgCode","");P.BuildClass(this,e)}addFile(e){this.icon.id||(this.icon.id=de.UUID()),this.icon.originalName=e.name,this.icon.file=e.raw}}var Ku=Object.defineProperty,ef=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&Ku(e,i,o),o};class hr{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"top",!0);l(this,"side",!0);l(this,"show",!1);l(this,"hide",!1);l(this,"active",!1);l(this,"order",0);l(this,"selected",!1);l(this,"editMode",!1);l(this,"subMenus",[]);l(this,"subMenusForDelete",[]);l(this,"iconId");l(this,"icon",new ye);P.BuildClass(this,e)}withoutChildren(){return this.subMenus.length===0}getFileInfos(){const e=[];return e.push(this.icon),this.subMenus.forEach(i=>{e.push(i.icon)}),e}addFile(e){this.icon.id||(this.icon.id=de.UUID()),this.icon.originalName=e.name,this.icon.file=e.raw}addSubMenu(){this.subMenus.push(new li)}removeSubMenu(e){const i=this.subMenus[e].id;i&&this.subMenusForDelete.push(i),this.subMenus.splice(e,1)}setColorsForSubMenus(){const e=["#00A248","#E63021","#006BB5","#F3911F","#6F6D6B"];let i=0;this.subMenus.forEach(r=>{r.color=e[i],i=e.length-1?i=0:i++})}containPath(e){return this.link===e||!!this.subMenus.find(i=>i.link===e)}static GetClassName(){return"menu"}}ef([P.GetClassConstructor(li)],hr.prototype,"subMenus");const tf=Object.freeze(Object.defineProperty({__proto__:null,Menu:hr,SubMenu:li},Symbol.toStringTag,{value:"Module"}));let nf=class extends $.H.BaseStore{constructor(){super(hr,"menus")}};const rf=new nf;let of=class extends $.H.BaseStore{constructor(){super(li,"sub-menus")}};const sf=new of,af=Object.freeze(Object.defineProperty({__proto__:null,C:tf,S:Object.freeze(Object.defineProperty({__proto__:null,Menus:rf,SubMenus:sf},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class ci{constructor(e){l(this,"id","");l(this,"name","");l(this,"component","");l(this,"order");l(this,"active",!1);l(this,"key",0);P.BuildClass(this,e)}static Create(e,i,r,o,s){const a=new ci;return a.id=e,a.name=i,a.component=r,a.order=o,a.active=!!s,a}}var ys=(t=>(t.User="USER",t.Admin="ADMIN",t))(ys||{});class lf{constructor(e){l(this,"id");l(this,"name",ys.User);l(this,"label","");l(this,"startPage","");P.BuildClass(this,e)}}class mr{constructor(e){l(this,"id");l(this,"document",new ye);l(this,"documentId");l(this,"pageId");P.BuildClass(this,e)}}var cf=Object.defineProperty,df=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&cf(e,i,o),o};class di{constructor(e){l(this,"id");l(this,"pageId");l(this,"fileInfoId");l(this,"fileInfo");l(this,"description");P.BuildClass(this,e)}}df([P.GetClassConstructor(ye)],di.prototype,"fileInfo");class ui{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"downloadToFile",!1);l(this,"pageSectionId");l(this,"scan",new ye);l(this,"scanId");P.BuildClass(this,e)}getFileInfos(){return[this.scan]}getFileName(){return this.name?this.name:this.scan.originalName}}var uf=Object.defineProperty,ff=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&uf(e,i,o),o};class Kt{constructor(e){l(this,"id");l(this,"name","");l(this,"singleScan",!1);l(this,"scan");l(this,"scanId");l(this,"order",0);l(this,"description","");l(this,"scans",[]);l(this,"scansForDelete",[]);l(this,"pageSectionDocuments",[]);l(this,"pageSideMenuId");l(this,"pageId");l(this,"text","");l(this,"documents",[]);P.BuildClass(this,e),this.documents=this.pageSectionDocuments,this.text=this.description.replace("<p>undefined</p>","")}addDocument(){const e=new ui;e.order=this.pageSectionDocuments.length-1,this.pageSectionDocuments.push(e)}getFileInfos(){const e=[];return this.pageSectionDocuments.forEach(i=>{e.push(...i.getFileInfos())}),e}infoExists(e){const i=Z.SearchIn(this.name,e),r=Z.SearchIn(this.description,e),o=this.getDocuments(e);return i||r||o.length>0}getDocuments(e){return this.pageSectionDocuments.filter(i=>Z.SearchIn(i.name,e))}getDescription(e){return e?Z.WrapSubStr(this.description,e):this.description}filter(e){if(!e){this.text=this.description,this.documents=this.pageSectionDocuments;return}this.text=Z.SearchIn(this.description,e)?Z.WrapSubStr(this.description,e):"",this.documents=this.pageSectionDocuments.filter(i=>Z.SearchIn(i.name,e))}}ff([P.GetClassConstructor(ui)],Kt.prototype,"pageSectionDocuments");var hf=Object.defineProperty,mf=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&hf(e,i,o),o};class mt{constructor(e){l(this,"id");l(this,"name","Новое меню");l(this,"order",0);l(this,"description","");l(this,"routeAnchor","");l(this,"slug","");l(this,"pageSections",[]);l(this,"showContent",!1);l(this,"pageId");l(this,"selected",!1);l(this,"sections",[]);l(this,"text","");P.BuildClass(this,e),this.sections=this.pageSections,this.text=this.description.replace("<p>undefined</p>","")}getFileInfos(){const e=[];return this.pageSections.forEach(i=>{e.push(...i.getFileInfos())}),e}addPageSection(){const e=new Kt;e.order=this.pageSections.length+1,e.name=`Новой раздел ${e.order}`,e.id=de.UUID(),this.pageSections.push(e)}infoExists(e){const i=Z.SearchIn(this.name,e),r=Z.SearchIn(this.description,e),o=this.getPageSections(e).length>0;return i||r||o}getPageSections(e){return e.length?this.pageSections.filter(i=>i.infoExists(e)):this.pageSections}filter(e){e.length?(this.sections=this.pageSections.filter(i=>i.infoExists(e)),this.text=Z.SearchIn(this.description,e)?Z.WrapSubStr(this.description,e):""):(this.sections=this.pageSections,this.text=this.description),this.sections.forEach(i=>i.filter(e))}}mf([P.GetClassConstructor(Kt)],mt.prototype,"pageSections");var pf=Object.defineProperty,fi=(t,e,i,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,i,o)||o);return o&&pf(e,i,o),o};class en{constructor(e){l(this,"id");l(this,"title","");l(this,"content","");l(this,"slug","");l(this,"pagesGroup","Без группы");l(this,"link","");l(this,"withComments",!1);l(this,"showContacts",!1);l(this,"collaps",!1);l(this,"showContent",!1);l(this,"pageImages",[]);l(this,"pageImagesForDelete",[]);l(this,"pageImagesNames",[]);l(this,"pageSideMenus",[]);l(this,"menus",[]);l(this,"pageSideMenusForDelete",[]);l(this,"pageSections",[]);l(this,"pageSectionsForDelete",[]);l(this,"pageDocuments",[]);l(this,"contact",new Qo);l(this,"contactId");l(this,"role",new lf);l(this,"roleId");l(this,"filterStr","");l(this,"activeMenuId","");P.BuildClass(this,e),this.menus=this.pageSideMenus}getActiveMenu(){const e=this.pageSideMenus.find(i=>i.id===this.activeMenuId);return e||this.pageSideMenus[0]}setActiveMenuId(e){this.activeMenuId=e}getLink(){return this.slug!==""?`/pages/${this.slug}`:"404"}getFileInfos(){const e=[];return this.pageSideMenus.forEach(i=>{e.push(...i.getFileInfos())}),this.pageImages.forEach(i=>{i.fileInfo&&e.push(i.fileInfo)}),e}addSideMenu(){const e=new mt;return e.order=this.pageSideMenus.length+1,e.name=`Новое меню ${e.order}`,e.id=de.UUID(),this.pageSideMenus.push(e),e.id}selectSideMenu(e,i){if(!e&&this.pageSideMenus.length>0){this.pageSideMenus[0].selected=!0;return}this.pageSideMenus.forEach(r=>{i?r.selected=r.id===e:r.selected=r.slug===e})}getSelectedSideMenu(){const e=this.pageSideMenus.find(i=>i.selected);return e||new mt}addCustomSectionsToSideMenu(e){e.forEach(i=>{const r=new mt;r.id=i.id,r.name=i.name,typeof i.order<"u"?this.pageSideMenus.splice(i.order,0,r):this.pageSideMenus.push(r)})}getPageSideMenus(){if(this.showContacts&&!this.pageSideMenus.find(e=>e.id==="contacts")){const e=new mt;e.id="contacts",e.name="Контакты",this.pageSideMenus.push(e)}return this.filterStr===""?this.pageSideMenus:this.pageSideMenus.filter(e=>e.infoExists(this.filterStr))}filter(){this.filterStr===""?this.menus=this.pageSideMenus:this.menus=this.pageSideMenus.filter(e=>e.infoExists(this.filterStr)),this.menus.forEach(e=>e.filter(this.filterStr))}static GetClassName(){return"page"}}fi([P.GetClassConstructor(di)],en.prototype,"pageImages"),fi([P.GetClassConstructor(mt)],en.prototype,"pageSideMenus"),fi([P.GetClassConstructor(Kt)],en.prototype,"pageSections"),fi([P.GetClassConstructor(mr)],en.prototype,"pageDocuments");const gf=Object.freeze(Object.defineProperty({__proto__:null,CustomSection:ci,Page:en,PageDocument:mr,PageImage:di,PageSection:Kt,PageSectionDocument:ui,PageSideMenu:mt},Symbol.toStringTag,{value:"Module"}));let yf=class extends $.H.BaseStore{constructor(){super(ci,"custom-sections")}};const wf=new yf;let bf=class extends $.H.BaseStore{constructor(){super(mr,"page-documents")}};const Cf=new bf;let Sf=class extends $.H.BaseStore{constructor(){super(di,"page-images")}};const kf=new Sf;let xf=class extends $.H.BaseStore{constructor(){super(ui,"page-section-documents")}};const Ef=new xf;let Bf=class extends $.H.BaseStore{constructor(){super(Kt,"page-sections")}};const $f=new Bf;let Mf=class extends $.H.BaseStore{constructor(){super(mt,"page-side-menus")}};const Rf=new Mf;let If=class extends $.H.BaseStore{constructor(){super(en,"pages")}};const Pf=new If,Af=Object.freeze(Object.defineProperty({__proto__:null,C:gf,S:Object.freeze(Object.defineProperty({__proto__:null,CustomSections:wf,PageDocuments:Cf,PageImages:kf,PageSectionDocuments:Ef,PageSections:$f,PageSideMenus:Rf,Pages:Pf},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),Nf=Object.freeze(Object.defineProperty({__proto__:null,ColorTheme:kn},Symbol.toStringTag,{value:"Module"}));let vf=class extends ee{constructor(){super(kn,"color-themes")}};const Vf=new vf,zf=Object.freeze(Object.defineProperty({__proto__:null,Buildings:nu,Chats:du,Docs:ku,Extracts:Mu,Forms:Ju,Menus:af,Pages:Af,Settings:Object.freeze(Object.defineProperty({__proto__:null,C:Nf,S:Object.freeze(Object.defineProperty({__proto__:null,ColorThemes:Vf},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),ws=n.defineComponent({inheritAttrs:!1,__name:"PBadge",props:{label:{type:[String,Number],default:void 0},color:{type:String,default:""},textColor:{type:String,default:""},outline:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},floating:{type:Boolean,default:!1},multiLine:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1}},setup(t){const e=n.useAttrs(),i=n.computed(()=>{const r={};for(const o of Object.keys(e))["label","color","text-color","outline","rounded","floating","multi-line","transparent"].includes(o)||(r[o]=e[o]);return r});return(r,o)=>(n.openBlock(),n.createBlock(n.unref(D.QBadge),n.mergeProps(n.unref(i),{label:t.label||void 0,color:t.color||void 0,"text-color":t.textColor||void 0,outline:t.outline,rounded:t.rounded,floating:t.floating,"multi-line":t.multiLine,transparent:t.transparent}),{default:n.withCtx(()=>[n.renderSlot(r.$slots,"default")]),_:3},16,["label","color","text-color","outline","rounded","floating","multi-line","transparent"]))}}),Ue=n.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:ft.M,required:!1},type:{type:String,default:J.Primary,required:!1},fontSize:{type:String,default:"",required:!1},disabled:{type:Boolean,default:!1,required:!1}},setup(t){const e=t,i=n.useAttrs(),r=n.computed(()=>{const C={};for(const A of Object.keys(i))["disable","color","size","flat","outline","unelevated","type"].includes(A)||(C[A]=i[A]);return C}),o=["submit","button","reset"],s=n.computed(()=>o.includes(e.type)),a=n.computed(()=>s.value?e.type:void 0),d=n.computed(()=>s.value?J.Primary:e.type),c=n.computed(()=>{const C={};return e.margin&&(C.margin=e.margin),e.padding&&(C.padding=e.padding),e.width&&(C.maxWidth=e.width,C.minWidth=e.width),e.height&&(C.minHeight=e.height,C.maxHeight=e.height),e.fontSize&&(C.fontSize=e.fontSize),C}),u={[J.Primary]:"primary",[J.Success]:"positive",[J.Warning]:"warning",[J.Error]:"negative",[J.Info]:"info"},f=n.computed(()=>i.color!==void 0?i.color:u[d.value]??"primary"),h={[ft.XS]:"xs",[ft.S]:"sm",[ft.M]:"md",[ft.L]:"lg",[ft.XL]:"xl"},m=n.computed(()=>i.size!==void 0?i.size:["xs","sm","md","lg","xl"].includes(e.size)?e.size:h[e.size]??"md"),y=n.computed(()=>i.flat!==void 0?i.flat:["text","pag","text_ano"].includes(e.skin)),w=n.computed(()=>i.outline!==void 0?i.outline:e.skin==="invert"),k=n.computed(()=>i.unelevated!==void 0?i.unelevated:e.skin==="base"),x=n.computed(()=>i.disable??e.disabled);return(C,A)=>(n.openBlock(),n.createBlock(n.unref(D.QBtn),n.mergeProps(n.unref(r),{style:n.unref(c),color:n.unref(f),size:n.unref(m),flat:n.unref(y),outline:n.unref(w),unelevated:n.unref(k),disable:n.unref(x),type:n.unref(a),"no-wrap":""}),{default:n.withCtx(()=>[n.renderSlot(C.$slots,"default"),n.createTextVNode(" "+n.toDisplayString(t.text),1)]),_:3},16,["style","color","size","flat","outline","unelevated","disable","type"]))}}),bs=n.defineComponent({inheritAttrs:!1,__name:"PCheckBox",props:n.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:""},value:{type:[String,Boolean],default:void 0},size:{type:String,default:"md"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:n.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const i=n.useModel(t,"modelValue"),r=e,o=n.useAttrs(),s=n.computed(()=>{const d={};for(const c of Object.keys(o))d[c]=o[c];return d}),a=()=>{r("change",i.value)};return(d,c)=>(n.openBlock(),n.createElementBlock("div",{class:"p-checkbox",style:n.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[n.createVNode(n.unref(D.QCheckbox),n.mergeProps({modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u)},n.unref(s),{label:t.label||void 0,size:t.size,style:{fontSize:t.fontSize},"onUpdate:modelValue":a}),null,16,["modelValue","label","size","style"])],4))}}),Cs=n.defineComponent({inheritAttrs:!1,__name:"PChip",props:{label:{type:String,default:""},color:{type:String,default:""},textColor:{type:String,default:""},outline:{type:Boolean,default:!1},square:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},removable:{type:Boolean,default:!1}},emits:["remove","update:model-value","update:selected"],setup(t,{emit:e}){const i=e,r=n.useAttrs(),o=n.computed(()=>{const s={};for(const a of Object.keys(r))["label","color","text-color","outline","square","dense","removable"].includes(a)||(s[a]=r[a]);return s});return(s,a)=>(n.openBlock(),n.createBlock(n.unref(D.QChip),n.mergeProps(n.unref(o),{label:t.label||void 0,color:t.color||void 0,"text-color":t.textColor||void 0,outline:t.outline,square:t.square,dense:t.dense,removable:t.removable,onRemove:a[0]||(a[0]=d=>i("remove"))}),n.createSlots({default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:2},[s.$slots.avatar?{name:"avatar",fn:n.withCtx(()=>[n.renderSlot(s.$slots,"avatar")]),key:"0"}:void 0,s.$slots.remove?{name:"remove",fn:n.withCtx(()=>[n.renderSlot(s.$slots,"remove")]),key:"1"}:void 0]),1040,["label","color","text-color","outline","square","dense","removable"]))}}),pt=E(n.defineComponent({inheritAttrs:!1,__name:"PInput",props:n.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},width:{type:String,required:!1,default:""},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"",required:!1},color:{type:String,default:"",required:!1},rules:{type:Array,required:!1,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:n.mergeModels(["blur","input","focus","clear"],["update:modelValue"]),setup(t,{expose:e,emit:i}){const r=i,o=n.useModel(t,"modelValue"),s=n.useAttrs(),a=n.computed(()=>typeof s.id=="string"?s.id:void 0),d=n.computed(()=>{const w={};for(const k of Object.keys(s))k!=="id"&&k!=="disable"&&(w[k]=s[k]);return w}),c=t,u=n.computed(()=>s.disable??c.disabled),f=n.ref(null);function h(){var w;(w=f.value)==null||w.focus()}e({focus:h});const m=()=>{r("input",o.value)},y=n.computed(()=>{const w={};return c.margin&&(w.margin=c.margin),c.padding&&(w.padding=c.padding),c.width&&(w.width=c.width),c.borderColor&&(w["--p-border-color"]=c.borderColor),w});return(w,k)=>(n.openBlock(),n.createBlock(n.unref(D.QInput),n.mergeProps({ref_key:"input",ref:f,modelValue:o.value,"onUpdate:modelValue":k[0]||(k[0]=x=>o.value=x)},n.unref(d),{for:n.unref(a),label:t.label||void 0,mask:t.mask,disable:n.unref(u),rules:t.rules,"input-style":{color:t.color||void 0},style:n.unref(y),class:"p-input",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":m,onBlur:k[1]||(k[1]=x=>w.$emit("blur",o.value)),onFocus:k[2]||(k[2]=x=>w.$emit("focus",o.value)),onClear:k[3]||(k[3]=x=>w.$emit("clear"))}),n.createSlots({before:n.withCtx(()=>[n.renderSlot(w.$slots,"before",{},()=>[n.renderSlot(w.$slots,"default",{},void 0,!0)],!0)]),append:n.withCtx(()=>[n.renderSlot(w.$slots,"append",{},()=>[n.renderSlot(w.$slots,"right",{},void 0,!0)],!0)]),_:2},[w.$slots.prepend?{name:"prepend",fn:n.withCtx(()=>[n.renderSlot(w.$slots,"prepend",{},void 0,!0)]),key:"0"}:void 0,w.$slots.after?{name:"after",fn:n.withCtx(()=>[n.renderSlot(w.$slots,"after",{},void 0,!0)]),key:"1"}:void 0,w.$slots.label?{name:"label",fn:n.withCtx(()=>[n.renderSlot(w.$slots,"label",{},void 0,!0)]),key:"2"}:void 0,w.$slots.error?{name:"error",fn:n.withCtx(()=>[n.renderSlot(w.$slots,"error",{},void 0,!0)]),key:"3"}:void 0,w.$slots.hint?{name:"hint",fn:n.withCtx(()=>[n.renderSlot(w.$slots,"hint",{},void 0,!0)]),key:"4"}:void 0,w.$slots.counter?{name:"counter",fn:n.withCtx(()=>[n.renderSlot(w.$slots,"counter",{},void 0,!0)]),key:"5"}:void 0,w.$slots.loading?{name:"loading",fn:n.withCtx(()=>[n.renderSlot(w.$slots,"loading",{},void 0,!0)]),key:"6"}:void 0]),1040,["modelValue","for","label","mask","disable","rules","input-style","style"]))}}),[["__scopeId","data-v-c4acf8be"]]),Tf={class:"row items-center justify-end"},hi="DD.MM.YYYY",Ss=n.defineComponent({__name:"PDateInput",props:n.mergeModels({label:{type:String,required:!0},dense:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{modelValue:{default:""},modelModifiers:{}}),emits:n.mergeModels(["blur"],["update:modelValue"]),setup(t){const e=n.useModel(t,"modelValue"),i=hi.replace(/[DMY]/g,"#"),r=c=>{if(!c)return"";const u=String(c).match(/^(\d{4})-(\d{2})-(\d{2})/);if(u)return`${u[3]}.${u[2]}.${u[1]}`;const f=new Date(c);return Number.isNaN(f.getTime())?"":D.date.formatDate(f,hi)},o=c=>{const u=D.date.extractDate(c,hi);if(Number.isNaN(u.getTime()))return"";const f=u.getFullYear(),h=String(u.getMonth()+1).padStart(2,"0"),m=String(u.getDate()).padStart(2,"0");return`${f}-${h}-${m}`},s=n.ref(r(e.value));n.watch(e,c=>{const u=r(c);u!==s.value&&(s.value=u)});const a=c=>{const u=typeof c=="number"?String(c):c;if(!u){e.value="";return}/^\d{2}\.\d{2}\.\d{4}$/.test(u)&&(e.value=o(u))},d={days:"Понедельник_Вторник_Среда_Четверг_Пятница_Суббота_Воскресенье".split("_"),daysShort:"Пн_Вт_Ср_Чт_Пт_Сб_Вс".split("_"),months:"Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь".split("_"),monthsShort:"Янв_Фев_Мар_Апр_Май_Июн_Июл_Авг_Сен_Окт_Ноя_Дек".split("_"),firstDayOfWeek:1,format24h:!0,pluralDay:"дни"};return(c,u)=>{const f=n.resolveDirective("close-popup");return n.openBlock(),n.createBlock(pt,{modelValue:n.unref(s),"onUpdate:modelValue":[u[1]||(u[1]=h=>n.isRef(s)?s.value=h:null),a],class:"fit",label:t.label,mask:n.unref(i),dense:t.dense,outlined:t.outlined,clearable:t.clearable,disable:t.disable,readonly:t.readonly,inputmode:"numeric",onBlur:u[2]||(u[2]=h=>c.$emit("blur"))},{prepend:n.withCtx(()=>[n.createVNode(n.unref(D.QIcon),{name:"event",class:"cursor-pointer"},{default:n.withCtx(()=>[n.createVNode(n.unref(D.QPopupProxy),{cover:"","transition-show":"scale","transition-hide":"scale"},{default:n.withCtx(()=>[n.createVNode(n.unref(D.QDate),{modelValue:n.unref(s),"onUpdate:modelValue":u[0]||(u[0]=h=>n.isRef(s)?s.value=h:null),mask:hi,"today-btn":"",locale:d},{default:n.withCtx(()=>[n.createElementVNode("div",Tf,[n.withDirectives(n.createVNode(Ue,{label:"Готово",color:"primary",flat:""},null,512),[[f]])])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),append:n.withCtx(()=>[n.renderSlot(c.$slots,"append")]),_:3},8,["modelValue","label","mask","dense","outlined","clearable","disable","readonly"])}}}),Of=n.defineComponent({inheritAttrs:!1,__name:"PDatePicker",props:n.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:n.mergeModels(["blur","input"],["update:modelValue"]),setup(t,{emit:e}){const i=e,r=n.useModel(t,"modelValue"),o=n.useAttrs(),s=n.computed(()=>typeof o.id=="string"?o.id:void 0),a=t,d=f=>{const h=f==null||f===""?null:new Date(String(f));h?(r.value=h,i("input",c(r.value))):(r.value=null,i("input",null))},c=f=>f?new Date(f.getTime()-f.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"",u=n.computed(()=>{const f={};return a.margin&&(f.margin=a.margin),a.padding&&(f.padding=a.padding),f});return(f,h)=>(n.openBlock(),n.createBlock(n.unref(D.QInput),{for:n.unref(s),max:"2100",min:"1900","model-value":c(r.value),label:t.label||void 0,class:"p-datepicker",type:"date",name:t.label,style:n.normalizeStyle(n.unref(u)),outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":d},{before:n.withCtx(()=>[n.renderSlot(f.$slots,"default")]),append:n.withCtx(()=>[n.renderSlot(f.$slots,"right")]),_:3},8,["for","model-value","label","name","style"]))}}),pr=n.defineComponent({inheritAttrs:!1,__name:"PDialog",props:n.mergeModels({persistent:{type:Boolean,default:!1},maximized:{type:Boolean,default:!1},transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=n.useModel(t,"modelValue"),i=n.useAttrs(),r=n.computed(()=>{const o={};for(const s of Object.keys(i))["persistent","maximized","transition-show","transition-hide"].includes(s)||(o[s]=i[s]);return o});return(o,s)=>(n.openBlock(),n.createBlock(n.unref(D.QDialog),n.mergeProps({modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=a=>e.value=a)},n.unref(r),{persistent:t.persistent,maximized:t.maximized,"transition-show":t.transitionShow,"transition-hide":t.transitionHide}),n.createSlots({default:n.withCtx(()=>[n.renderSlot(o.$slots,"default")]),_:2},[o.$slots.title?{name:"title",fn:n.withCtx(()=>[n.renderSlot(o.$slots,"title")]),key:"0"}:void 0,o.$slots.header?{name:"header",fn:n.withCtx(()=>[n.renderSlot(o.$slots,"header")]),key:"1"}:void 0,o.$slots.body?{name:"body",fn:n.withCtx(()=>[n.renderSlot(o.$slots,"body")]),key:"2"}:void 0,o.$slots.footer?{name:"footer",fn:n.withCtx(()=>[n.renderSlot(o.$slots,"footer")]),key:"3"}:void 0]),1040,["modelValue","persistent","maximized","transition-show","transition-hide"]))}}),Ff=E(n.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,i)=>(n.openBlock(),n.createElementBlock("div",{class:"flex-line flex",style:n.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})},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-71357bc9"]]),Df=["innerHTML"],Lf={key:1},gr=E(n.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:""},fontSize:{type:String,required:!1,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,i={color:e.color||void 0,fontSize:e.fontSize||void 0,fontWeight:e.fontWeight||void 0,background:e.background||void 0,padding:e.padding||void 0,width:e.width||void 0,maxWidth:e.width||void 0,minWidth:e.minWidth||void 0,margin:e.margin||void 0,justifyContent:e.justifyContent||void 0};return(r,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["string",t.customClass]),style:i,onClick:o[0]||(o[0]=s=>r.$emit("click"))},[n.createVNode(n.unref(D.QItemLabel),null,{default:n.withCtx(()=>[t.isHtml?(n.openBlock(),n.createElementBlock("span",{key:0,innerHTML:t.string},null,8,Df)):(n.openBlock(),n.createElementBlock("span",Lf,n.toDisplayString(t.string),1))]),_:1})],2))}}),[["__scopeId","data-v-049d3e33"]]),yr=E(n.defineComponent({inheritAttrs:!1,__name:"PTooltip",props:{tooltipText:{type:String,default:void 0,required:!1},timeout:{type:Number,default:0,required:!1},typeStyle:{type:String,default:"primary",required:!1},height:{type:String,default:"16px",required:!1},relPosition:{type:String,default:"right",required:!1},level:{type:String,default:"top",required:!1}},setup(t){const e=t,i=n.useAttrs(),r=n.computed(()=>{const c={};for(const u of Object.keys(i))u!=="delay"&&(c[u]=i[u]);return c}),o={primary:"var(--q-primary)",success:"var(--q-positive)",warning:"var(--q-warning)",danger:"var(--q-negative)",neutral:"var(--q-dark)"},s=n.computed(()=>{const c=e.relPosition==="left"?"right":"left";return`${e.level==="top"?"top":"bottom"} ${c}`}),a=n.computed(()=>{const c=e.relPosition==="left"?"right":"left";return`${e.level==="top"?"bottom":"top"} ${c}`}),d=n.computed(()=>({background:o[e.typeStyle],whiteSpace:"pre",height:e.height,borderRadius:"2px",display:"flex",justifyContent:"center",alignItems:"center"}));return(c,u)=>t.tooltipText?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0},n.unref(r),{class:"tooltip-wrapper"}),[n.renderSlot(c.$slots,"default",{},void 0,!0),n.createVNode(n.unref(D.QTooltip),{delay:t.timeout,anchor:n.unref(s),self:n.unref(a),class:"tooltip-box",style:n.normalizeStyle(n.unref(d))},{default:n.withCtx(()=>[n.createVNode(gr,{string:t.tooltipText,padding:"0 3px",height:t.height},null,8,["string","height"])]),_:1},8,["delay","anchor","self","style"])],16)):(n.openBlock(),n.createBlock(n.unref(D.QTooltip),n.mergeProps({key:1},n.unref(r),{delay:t.timeout,class:"tooltip-box"}),{default:n.withCtx(()=>[n.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},16,["delay"]))}}),[["__scopeId","data-v-ee5e83fd"]]),Hf={class:"p-hint-popup"},wr=E(n.defineComponent({__name:"PHint",props:{text:{}},setup(t){const e=n.ref(!1);return(i,r)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t.text?(n.openBlock(),n.createBlock(n.unref(D.QIcon),{key:0,name:"help_outline",size:"15px",class:"p-hint-icon",onClick:r[0]||(r[0]=n.withModifiers(o=>e.value=!0,["stop"]))},{default:n.withCtx(()=>[n.createVNode(yr,{anchor:"top middle",self:"bottom middle",offset:[0,6],"max-width":"320px"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t.text),1)]),_:1})]),_:1})):n.createCommentVNode("",!0),n.createVNode(n.unref(D.QMenu),{modelValue:n.unref(e),"onUpdate:modelValue":r[1]||(r[1]=o=>n.isRef(e)?e.value=o:null),anchor:"top middle",self:"bottom middle",offset:[0,6],"max-width":"340px"},{default:n.withCtx(()=>[n.createElementVNode("div",Hf,n.toDisplayString(t.text),1)]),_:1},8,["modelValue"])],64))}}),[["__scopeId","data-v-3443b70c"]]),_f=n.defineComponent({__name:"PInputDate",props:n.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:n.mergeModels(["update:modelValue","change","beforeChange"],["update:modelValue"]),setup(t,{emit:e}){const i=e,r=n.useModel(t,"modelValue"),o=Ye.Format(r.value),s=n.ref(o),a=c=>{if(!d(c))return;const u=Ye.FromRuStr(c);r.value=u,i("beforeChange",u),i("change",u)},d=c=>c.length!=10?(s.value=o,Ze.Error("Неверный формат даты"),!1):Number(s.value.slice(0,2))>31?(s.value=o,Ze.Error("Неверный день месяца"),!1):Number(s.value.slice(3,5))>12?(s.value=o,Ze.Error("Неверный месяц"),!1):Number(s.value.slice(6,10))>2100?(s.value=o,Ze.Error("Неверный год"),!1):!0;return(c,u)=>{const f=n.resolveComponent("PInput");return n.openBlock(),n.createElementBlock("div",{class:"style-container",style:n.normalizeStyle({width:t.width,position:"relative"})},[n.createVNode(f,{modelValue:n.unref(s),"onUpdate:modelValue":u[0]||(u[0]=h=>n.isRef(s)?s.value=h:null),mask:"##.##.####",placeholder:t.placeholder,margin:t.margin,label:t.label,onBlur:a,onKeydown:n.withKeys(n.withModifiers(h=>{},["prevent"]),["enter"])},null,8,["modelValue","placeholder","margin","label","onKeydown"])],4)}}}),Uf=E(n.defineComponent({__name:"IconMinus",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#minus"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"minus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[n.createElementVNode("path",{d:"M19.4995 13.8856H5.53125V11.8926H19.4995V13.8856Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-582bd65a"]]),qf=E(n.defineComponent({__name:"IconPlus",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#plus"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"plus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[n.createElementVNode("path",{d:"M11.3263 19.8672V13.8881H5.33984V11.8951H11.3263V5.91602H13.3217V11.8951H19.3081V13.8881H13.3217V19.8672H11.3263Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-1f1f064c"]]),jf=n.defineComponent({inheritAttrs:!1,__name:"PInputNumber",props:n.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1},color:{type:String,default:"",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:n.mergeModels(["blur","input","change"],["update:modelValue"]),setup(t,{emit:e}){const i=e,r=n.useAttrs(),o=n.computed(()=>typeof r.id=="string"?r.id:void 0),s=n.computed(()=>{const T={};for(const U of Object.keys(r))U!=="id"&&(T[U]=r[U]);return T}),a=t,d=()=>{const T=a.step.toString();return T.includes(".")?T.split(".")[1].length:0},c=d(),u=n.useModel(t,"modelValue"),h=(T=>Math.min(Math.max(T,a.min),a.max))(u.value);h!==u.value&&(u.value=h);const m=n.ref(h.toFixed(d())),y=n.computed(()=>{const T={};return a.margin&&(T.margin=a.margin),a.padding&&(T.padding=a.padding),T}),w=T=>{const U=Math.pow(10,c);return Math.round(T*U)/U},k=(T,...U)=>{u.value=w(T),m.value=w(T).toFixed(d()),U.forEach(Be=>i(Be,u.value))},x=(T,...U)=>{a.disabled||T>a.max||T<a.min||k(T,...U)},C=()=>x(+m.value+a.step,"change"),A=()=>x(+m.value-a.step,"change"),B=T=>x(Number(T),"input"),V=()=>x(+m.value,"change","blur");return(T,U)=>(n.openBlock(),n.createBlock(n.unref(D.QInput),n.mergeProps(n.unref(s),{for:n.unref(o),"model-value":n.unref(m),label:t.label||void 0,class:"p-input-number",type:"number",disable:t.disabled,"input-style":{color:t.disabled?"#828587":t.color,textAlign:"center"},style:n.unref(y),outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":B,onBlur:V}),{before:n.withCtx(()=>[n.createVNode(n.unref(D.QBtn),{class:"number-minus",flat:"",dense:"",round:"",style:{width:"32px",height:"32px"},onClick:A},{default:n.withCtx(()=>[n.createVNode(Uf)]),_:1})]),append:n.withCtx(()=>[n.createVNode(n.unref(D.QBtn),{class:"number-plus",flat:"",dense:"",round:"",style:{width:"32px",height:"32px"},onClick:C},{default:n.withCtx(()=>[n.createVNode(qf)]),_:1})]),_:1},16,["for","model-value","label","disable","input-style","style"]))}}),Wf=E(jf,[["__scopeId","data-v-6f4093e8"]]),Gf=E(n.defineComponent({__name:"PLeftSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},height:{type:String,required:!1,default:"100%"},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 i=t,r=e,o=n.ref(i.open);n.watch(()=>i.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,d)=>{const c=n.resolveComponent("PString");return n.openBlock(),n.createElementBlock(n.Fragment,null,[t.shift?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle({minWidth:t.widthClosed,maxWidth:t.widthClosed,height:t.height})},null,4)),n.createElementVNode("div",{class:"LS-body",style:n.normalizeStyle({marginLeft:n.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,height:t.height})},[n.createElementVNode("div",{class:"LS-content",style:n.normalizeStyle({width:`calc(100% - ${t.widthClosed})`,height:t.height,background:"#ffffff"})},[n.renderSlot(a.$slots,"default",{},void 0,!0)],4),n.createVNode(n.unref(D.QBtn),{class:"click-line",flat:"","no-caps":"",style:n.normalizeStyle({width:t.widthClosed,minWidth:t.widthClosed,height:t.height,borderRadius:"0"}),onClick:d[0]||(d[0]=u=>s(!n.unref(o)))},{default:n.withCtx(()=>[n.unref(o)?(n.openBlock(),n.createBlock(c,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):n.createCommentVNode("",!0),n.unref(o)?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(c,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))]),_:1},8,["style"])],4)],64)}}}),[["__scopeId","data-v-31292b0b"]]),Zf=n.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,i)=>(n.openBlock(),n.createBlock(n.unref(D.QList),{tag:"ul",style:n.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["style"]))}}),Qf=n.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1},background:{type:String,required:!1,default:""}},setup(t){return(e,i)=>(n.openBlock(),n.createBlock(n.unref(D.QItem),{tag:"li",style:n.normalizeStyle({margin:t.margin,padding:t.padding,borderBottom:t.showDivider?"1px solid":"none",background:t.background})},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["style"]))}}),Xf={class:"tags-selector"},Yf={key:0,class:"empty-state"},ks=E(n.defineComponent({__name:"POptionsListSingle",props:{store:{}},emits:["select"],setup(t,{emit:e}){const i=t,r=n.ref(""),o=i.store.Options,s=n.computed(()=>o.filter(c=>$.H.Strings.SearchIn(c.label,r.value))),a=e;n.onBeforeMount(async()=>{await i.store.GetOptions()});const d=async c=>{await i.store.Get(c.value),a("select",i.store.Item)};return(c,u)=>{const f=n.resolveDirective("ripple");return n.openBlock(),n.createElementBlock("div",Xf,[n.createVNode(pt,{modelValue:n.unref(r),"onUpdate:modelValue":u[0]||(u[0]=h=>n.isRef(r)?r.value=h:null),placeholder:"Поиск...",dense:"",outlined:"",clearable:"",class:"search-input"},null,8,["modelValue"]),n.createVNode(n.unref(D.QScrollArea),{style:{height:"350px"},class:"q-mt-sm"},{default:n.withCtx(()=>[n.createVNode(n.unref(D.QList),{dense:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),h=>n.withDirectives((n.openBlock(),n.createBlock(n.unref(D.QItem),{key:h.value,clickable:"",class:"tag-item",onClick:m=>d(h)},{default:n.withCtx(()=>[n.createVNode(n.unref(D.QItemSection),null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(h.label),1)]),_:2},1024)]),_:2},1032,["onClick"])),[[f]])),128)),n.unref(s).length?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Yf,"Ничего не найдено"))]),_:1})]),_:1})])}}}),[["__scopeId","data-v-9d5bdf93"]]),mi=n.defineComponent({inheritAttrs:!1,__name:"PSelect",props:n.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:""},inPadding:{type:String,required:!1,default:""},options:{type:Array,required:!1,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:n.mergeModels(["change","clear"],["update:modelValue"]),setup(t,{emit:e}){const i=n.useModel(t,"modelValue"),r=e,o=n.useAttrs(),s=n.computed(()=>typeof o.id=="string"?o.id:void 0),a=n.computed(()=>{const m={};for(const y of Object.keys(o))y!=="id"&&y!=="disable"&&(m[y]=o[y]);return m}),d=t,c=n.computed(()=>o.disable??d.disabled),u=m=>{r("change",m)},f=()=>{r("clear",void 0)},h=n.computed(()=>{const m={};return d.margin&&(m.margin=d.margin),d.padding&&(m.padding=d.padding),d.width&&(m.width=d.width),d.inPadding&&(m.padding=d.inPadding),m});return(m,y)=>(n.openBlock(),n.createBlock(n.unref(D.QSelect),n.mergeProps({modelValue:i.value,"onUpdate:modelValue":y[0]||(y[0]=w=>i.value=w)},n.unref(a),{for:n.unref(s),options:t.options,label:t.label||void 0,placeholder:t.placeholder,clearable:t.clearable,disable:n.unref(c),readonly:t.readonly,"input-style":{color:t.color||void 0},style:n.unref(h),class:"p-select",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":u,onClear:f}),n.createSlots({before:n.withCtx(()=>[n.renderSlot(m.$slots,"before",{},()=>[n.renderSlot(m.$slots,"left")])]),append:n.withCtx(()=>[n.renderSlot(m.$slots,"append",{},()=>[n.renderSlot(m.$slots,"right")])]),_:2},[m.$slots.prepend?{name:"prepend",fn:n.withCtx(()=>[n.renderSlot(m.$slots,"prepend")]),key:"0"}:void 0,m.$slots.after?{name:"after",fn:n.withCtx(()=>[n.renderSlot(m.$slots,"after")]),key:"1"}:void 0,m.$slots.default?{name:"default",fn:n.withCtx(()=>[n.renderSlot(m.$slots,"default")]),key:"2"}:void 0,m.$slots.label?{name:"label",fn:n.withCtx(()=>[n.renderSlot(m.$slots,"label")]),key:"3"}:void 0,m.$slots.error?{name:"error",fn:n.withCtx(()=>[n.renderSlot(m.$slots,"error")]),key:"4"}:void 0,m.$slots.hint?{name:"hint",fn:n.withCtx(()=>[n.renderSlot(m.$slots,"hint")]),key:"5"}:void 0,m.$slots.counter?{name:"counter",fn:n.withCtx(()=>[n.renderSlot(m.$slots,"counter")]),key:"6"}:void 0,m.$slots.loading?{name:"loading",fn:n.withCtx(()=>[n.renderSlot(m.$slots,"loading")]),key:"7"}:void 0,m.$slots.selected?{name:"selected",fn:n.withCtx(()=>[n.renderSlot(m.$slots,"selected")]),key:"8"}:void 0,m.$slots.option?{name:"option",fn:n.withCtx(w=>[n.renderSlot(m.$slots,"option",n.normalizeProps(n.guardReactiveProps(w)))]),key:"9"}:void 0,m.$slots["no-option"]?{name:"no-option",fn:n.withCtx(w=>[n.renderSlot(m.$slots,"no-option",n.normalizeProps(n.guardReactiveProps(w)))]),key:"10"}:void 0,m.$slots["before-options"]?{name:"before-options",fn:n.withCtx(()=>[n.renderSlot(m.$slots,"before-options")]),key:"11"}:void 0,m.$slots["after-options"]?{name:"after-options",fn:n.withCtx(()=>[n.renderSlot(m.$slots,"after-options")]),key:"12"}:void 0,m.$slots["selected-item"]?{name:"selected-item",fn:n.withCtx(w=>[n.renderSlot(m.$slots,"selected-item",n.normalizeProps(n.guardReactiveProps(w)))]),key:"13"}:void 0]),1040,["modelValue","for","options","label","placeholder","clearable","disable","readonly","input-style","style"]))}}),xs=n.defineComponent({__name:"POpts",props:{label:{},item:{},store:{},prop:{},storeOpts:{},optLabel:{},optValue:{},disabled:{type:Boolean},hint:{}},setup(t){var d;const e=t,i=((d=e.storeOpts)==null?void 0:d.Options)??[],r=n.ref(i);async function o(c,u,f,h){var k,x;const y="set"+(((k=u[0])==null?void 0:k.toUpperCase())+u.slice(1)),w=c[y];typeof w=="function"?w(f):(c[u]=f,c[u+"Id"]=f==null?void 0:f.id),await((x=h==null?void 0:h.Update)==null?void 0:x.call(h,c))}const s=(c,u)=>{if(c===""){u(()=>{r.value=i});return}u(()=>{r.value=i.filter(f=>$.H.Strings.SearchInFields(c,[f.label]))})},a=async c=>{c?(await e.storeOpts.Get(c.value),await o(e.item,e.prop,e.storeOpts.Item,e.store)):await o(e.item,e.prop,void 0,e.store)};return n.onBeforeMount(async()=>{i.length>0||await e.storeOpts.GetOptions(e.optLabel,e.optValue)}),(c,u)=>(n.openBlock(),n.createBlock(mi,{"use-input":"",options:n.unref(r),"model-value":t.item[t.prop+"Id"],label:t.label,disable:t.disabled,"map-options":"",clearable:"",dense:"",outlined:"","hide-bottom-space":"","onUpdate:modelValue":a,onFilter:s},{append:n.withCtx(()=>[n.createVNode(wr,{text:t.hint},null,8,["text"])]),_:1},8,["options","model-value","label","disable"]))}}),Jf=n.defineComponent({__name:"PRadio",props:n.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:""},size:{type:String,default:"md"},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:n.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const i=n.useModel(t,"modelValue"),r=e,o=t,s=()=>{r("change",o.value)};return(a,d)=>(n.openBlock(),n.createElementBlock("div",{class:"p-radio",style:n.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[n.createVNode(n.unref(D.QRadio),{modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=c=>i.value=c),s],val:t.value,name:t.name,label:t.label||void 0,size:t.size,style:n.normalizeStyle({fontSize:t.fontSize})},null,8,["modelValue","val","name","label","size","style"])],4))}}),Kf=E(n.defineComponent({__name:"PRightSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},height:{type:String,required:!1,default:"100%"},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 i=t,r=e,o=n.ref(i.open);n.watch(()=>i.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,d)=>{const c=n.resolveComponent("PString");return n.openBlock(),n.createElementBlock("div",{class:"wrapper",style:n.normalizeStyle({maxHeight:t.height,height:t.height})},[n.createElementVNode("div",{class:"content",style:n.normalizeStyle({paddingRight:t.shift?"0":`${t.widthClosed}`})},[n.renderSlot(a.$slots,"content",{},void 0,!0)],4),n.createElementVNode("div",{class:"RS-body",style:n.normalizeStyle({marginRight:n.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"})},[n.createVNode(n.unref(D.QBtn),{class:"click-line",flat:"","no-caps":"",style:n.normalizeStyle({width:t.widthClosed,minWidth:t.widthClosed,height:t.height,borderRadius:"0"}),onClick:d[0]||(d[0]=u=>s(!n.unref(o)))},{default:n.withCtx(()=>[n.unref(o)?(n.openBlock(),n.createBlock(c,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):n.createCommentVNode("",!0),n.unref(o)?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(c,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))]),_:1},8,["style"]),n.createElementVNode("div",{class:"RS-content",style:n.normalizeStyle({width:`calc(${t.widthOpened} - ${t.widthClosed} - 2px)`,background:t.background,height:t.height})},[n.renderSlot(a.$slots,"default",{},void 0,!0)],4)],4)],4)}}}),[["__scopeId","data-v-8ab50ea6"]]),eh=E(n.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"},divider:{type:Boolean,default:!1},dividerColor:{type:String,default:"rgba(0, 0, 0, 0.12)"}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock("div",{class:"sticky-block",style:n.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",borderBottom:t.divider?"1px solid":"none",borderColor:t.dividerColor})},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-4748d546"]]),th=n.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,i)=>(n.openBlock(),n.createElementBlock("table",n.mergeProps(e.$attrs,{style:{width:t.width,margin:t.margin},class:"p-table"}),[n.createElementVNode("thead",null,[n.renderSlot(e.$slots,"thead")]),n.createElementVNode("tbody",null,[n.renderSlot(e.$slots,"tbody")])],16))}}),Es=E(n.defineComponent({__name:"PTableToggle",props:{row:{},prop:{},store:{},readonly:{type:Boolean,default:!1}},setup(t){const e=t,i=n.computed(()=>e.row[e.prop]),r=async()=>{e.row[e.prop]=!e.row[e.prop],await e.store.Update(e.row)};return(o,s)=>(n.openBlock(),n.createBlock(n.unref(D.QTd),{key:t.prop},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["toggle-cell",{clickable:!e.readonly}]),onClick:s[0]||(s[0]=a=>e.readonly?void 0:r())},[n.createVNode(n.unref(D.QIcon),{name:n.unref(i)?"check_circle":"radio_button_unchecked",color:n.unref(i)?"positive":"grey-5",size:"20px"},null,8,["name","color"]),n.createVNode(yr,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(i)?"Включено":"Выключено"),1)]),_:1})],2)]),_:1}))}}),[["__scopeId","data-v-96a76c56"]]),nh=E(n.defineComponent({inheritAttrs:!1,__name:"PTextarea",props:n.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:"",required:!1},color:{type:String,default:"",required:!1},resize:{type:String,default:"vertical",required:!1}},{modelValue:{},modelModifiers:{}}),emits:n.mergeModels(["blur","input","focus"],["update:modelValue"]),setup(t){const e=n.useModel(t,"modelValue"),i=n.useAttrs(),r=n.computed(()=>typeof i.id=="string"?i.id:void 0),o=n.computed(()=>{const c={};for(const u of Object.keys(i))u!=="id"&&(c[u]=i[u]);return c}),s=t,a=n.computed(()=>({color:s.color||void 0,resize:s.resize})),d=n.computed(()=>{const c={};return s.margin&&(c.margin=s.margin),s.padding&&(c.padding=s.padding),s.borderColor&&(c["--p-border-color"]=s.borderColor),c});return(c,u)=>(n.openBlock(),n.createBlock(n.unref(D.QInput),n.mergeProps({modelValue:e.value,"onUpdate:modelValue":u[0]||(u[0]=f=>e.value=f)},n.unref(o),{for:n.unref(r),label:t.label||void 0,mask:t.mask,type:"textarea","input-style":n.unref(a),style:n.unref(d),class:"p-textarea",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":u[1]||(u[1]=f=>c.$emit("input",e.value)),onBlur:u[2]||(u[2]=f=>c.$emit("blur",e.value)),onFocus:u[3]||(u[3]=f=>c.$emit("focus",e.value))}),{before:n.withCtx(()=>[n.renderSlot(c.$slots,"default",{},void 0,!0)]),append:n.withCtx(()=>[n.renderSlot(c.$slots,"right",{},void 0,!0)]),_:3},16,["modelValue","for","label","mask","input-style","style"]))}}),[["__scopeId","data-v-8e01fef2"]]),Bs=n.defineComponent({inheritAttrs:!1,__name:"PToggle",props:n.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:""},size:{type:String,default:"md"},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:n.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const i=n.useModel(t,"modelValue"),r=e,o=n.useAttrs(),s=n.computed(()=>{const d={};for(const c of Object.keys(o))d[c]=o[c];return d}),a=()=>{r("change",i.value)};return(d,c)=>(n.openBlock(),n.createElementBlock("div",{class:"p-toggle",style:n.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[n.createVNode(n.unref(D.QToggle),n.mergeProps({modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u)},n.unref(s),{label:t.label||void 0,size:t.size,style:{fontSize:t.fontSize},"onUpdate:modelValue":a}),null,16,["modelValue","label","size","style"])],4))}}),ih={class:"top-slider-content"},rh={class:"center"},oh=E(n.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 i=t,r=e,o=n.ref(i.open);n.watch(()=>i.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,d)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(o)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"blur",onClick:[d[0]||(d[0]=n.withModifiers(c=>o.value=!0,["prevent"])),d[1]||(d[1]=n.withModifiers(()=>{},["stop"]))]})),n.createElementVNode("div",{class:"top-slider",style:n.normalizeStyle({marginTop:n.unref(o)?"0":`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`,height:t.sliderOnHeight}),onClick:d[3]||(d[3]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",ih,[n.createElementVNode("div",rh,[n.renderSlot(a.$slots,"default",{},void 0,!0)])]),n.createVNode(n.unref(D.QBtn),{class:"click-line",flat:"","no-caps":"",style:n.normalizeStyle({height:t.sliderOffHeight,minHeight:t.sliderOffHeight,borderRadius:"0"}),onClick:d[2]||(d[2]=c=>s(!n.unref(o)))},{default:n.withCtx(()=>[n.renderSlot(a.$slots,"title",{},void 0,!0)]),_:3},8,["style"])],4)],64))}}),[["__scopeId","data-v-88b1978e"]]);function sh(t){t.component("PButton",Ue),t.component("PBadge",ws),t.component("PCheckBox",bs),t.component("PChip",Cs),t.component("PDateInput",Ss),t.component("PDatePicker",Of),t.component("PDialog",pr),t.component("PFlex",Ff),t.component("PHint",wr),t.component("PInput",pt),t.component("PInputDate",_f),t.component("PInputNumber",Wf),t.component("PLeftSlider",Gf),t.component("PList",Zf),t.component("PListItem",Qf),t.component("POptionsListSingle",ks),t.component("POpts",xs),t.component("PRadio",Jf),t.component("PRightSlider",Kf),t.component("PSelect",mi),t.component("PSticky",eh),t.component("PString",gr),t.component("PTextarea",nh),t.component("PTopSlider",oh),t.component("PTable",th),t.component("PTableToggle",Es),t.component("PToggle",Bs),t.component("PTooltip",yr)}const ah={key:0,class:"mainblock"},lh={class:"mainblock-right"},ch={class:"body"},dh=E(n.defineComponent({__name:"AdaptiveContainer",props:{menuWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"}},setup(t){const e=t,i=n.ref(!1),r=n.ref(!0),o=n.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{r.value=!r.value};return n.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}),i.value=!0}),(a,d)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(a.$slots,"main",{},void 0,!0),n.unref(i)?(n.openBlock(),n.createElementBlock("div",ah,[n.createElementVNode("div",{class:"mainblock-left",style:n.normalizeStyle({minWidth:n.unref(o)?"100%":t.menuWidth,maxWidth:n.unref(o)?"100%":t.menuWidth,marginLeft:n.unref(o)?"-110%":"0",position:n.unref(o)?"fixed":"relative",top:n.unref(o)?"140px":""})},[n.createElementVNode("div",{class:"left-menu",style:n.normalizeStyle({minWidth:n.unref(o)?"auto":t.menuWidth,boxShadow:n.unref(o)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!n.unref(r)&&n.unref(o)?"110%":"0",borderTopLeftRadius:n.unref(o)?"0":"",borderBottomLeftRadius:n.unref(o)?"0":""}),onClick:d[0]||(d[0]=c=>s())},[n.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),n.createElementVNode("div",lh,[a.$slots.title?(n.openBlock(),n.createElementBlock("div",{key:0,class:"title",style:n.normalizeStyle({display:a.$slots.title?"flex":"none"})},[n.createElementVNode("div",{class:"icon",style:n.normalizeStyle({display:n.unref(o)?"flex":"none"}),onClick:d[1]||(d[1]=c=>s())},[n.renderSlot(a.$slots,"icon",{},void 0,!0)],4),n.renderSlot(a.$slots,"title",{},void 0,!0)],4)):n.createCommentVNode("",!0),n.createElementVNode("div",ch,[n.renderSlot(a.$slots,"body",{},void 0,!0)])])])):n.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-52b3d807"]]),uh={class:"mainblock-right"},fh={class:"body"},hh=E(n.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,i=n.ref(!1),r=n.ref(!0),o=n.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{r.value=!r.value};return n.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}),i.value=!0}),(a,d)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(a.$slots,"main",{},void 0,!0),n.unref(i)?(n.openBlock(),n.createElementBlock("div",{key:0,class:"mainblock",style:n.normalizeStyle({display:n.unref(o)?"block":"flex"})},[n.createElementVNode("div",{class:"mainblock-left",style:n.normalizeStyle({minWidth:n.unref(o)?"100%":t.menuWidth,display:t.leftWidth!=="0px"?"flex":"none",top:n.unref(o)?"58px":"80px"})},[n.createElementVNode("div",{class:"left-menu",style:n.normalizeStyle({minWidth:n.unref(o)?"100%":t.menuWidth,boxShadow:n.unref(o)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!n.unref(r)&&n.unref(o),"0"),overflowX:n.unref(o)?"scroll":"hidden",display:n.unref(o)?"flex":"block",background:n.unref(o)?"#ffffff":"",overflowY:n.unref(o)?"hidden":"auto"}),onClick:d[0]||(d[0]=c=>s())},[n.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),n.createElementVNode("div",uh,[n.createElementVNode("div",{class:"title",style:n.normalizeStyle({position:t.titleSticky?"sticky":"relative",top:t.titleSticky?n.unref(o)?"108px":"58px":"0",zIndex:t.titleSticky?"10":""})},[n.createElementVNode("div",{class:"icon",style:n.normalizeStyle({display:n.unref(o)?"flex":"none"}),onClick:d[1]||(d[1]=c=>s())},[n.renderSlot(a.$slots,"icon",{},void 0,!0)],4),n.renderSlot(a.$slots,"title",{},void 0,!0)],4),n.createElementVNode("div",fh,[n.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):n.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-a7d519dd"]]),$s=E(n.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 n.useCssVars(e=>({d143e9f0:t.maxWidth,b9d56180:t.width,v52bd0ff4:t.background,v1795aeac:t.gridGap,v0cfa7c52:t.gridTemplateColumns,v0c6d2a1f:t.gridTemplateRows,a3ccd918:t.margin})),(e,i)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["grid-block",t.customClass])},[n.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-a3c4743c"]]),mh={class:"container"},ph={class:"slide-box"},gh={class:"image"},yh={class:"image-box"},wh=["id","src","alt"],bh={class:"link-number"},Ch=["id","onClick"],Sh=E(n.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){n.useCssVars(y=>({v582c9d05:i}));const e=t,i=`${e.animationTime}ms`,r=n.ref(e.startActiveGroupIndex),o=n.ref(Je.None),s=n.ref(qo(e.events,e.quantity)),a=n.computed(()=>s.value[r.value]);n.onMounted(()=>{});const d=()=>r.value=r.value+1<s.value.length?r.value+1:0,c=()=>r.value=r.value-1<0?s.value.length-1:r.value-1,u=y=>{o.value=y,setTimeout(()=>o.value=Je.None,e.animationTime)},f=y=>{y!=r.value&&(u(y<r.value?Je.Prev:Je.Next),setTimeout(()=>r.value=y,e.animationTime/2))},h=()=>{u(Je.Next),setTimeout(d,e.animationTime/2)},m=()=>{u(Je.Prev),setTimeout(c,e.animationTime/2)};return(y,w)=>(n.openBlock(),n.createElementBlock("div",{class:"field",style:n.normalizeStyle({height:t.height,maxHeight:t.maxHeight})},[n.createElementVNode("div",mh,[(n.openBlock(),n.createElementBlock("svg",{class:"icon-arrow",onClick:w[0]||(w[0]=n.withModifiers(k=>m(),["stop"]))},[...w[3]||(w[3]=[n.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)])])),n.createElementVNode("div",ph,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(a),(k,x)=>(n.openBlock(),n.createElementBlock("div",{key:x,class:n.normalizeClass({animationnext:n.unref(o)===n.unref(Je).Next,animationprev:n.unref(o)===n.unref(Je).Prev})},[n.createElementVNode("div",gh,[n.createElementVNode("div",yh,[n.createElementVNode("img",{id:k.fileInfo.getImageUrl(),style:n.normalizeStyle({height:`calc(${t.height} - 110px)`,maxHeight:`calc(${t.maxHeight} - 110px)`}),src:k.fileInfo.getImageUrl(),alt:k.fileInfo.originalName,onClick:w[1]||(w[1]=C=>y.showImageInFullScreen())},null,12,wh)])])],2))),128))]),(n.openBlock(),n.createElementBlock("svg",{class:"icon-arrow",onClick:w[2]||(w[2]=n.withModifiers(k=>h(),["stop"]))},[...w[4]||(w[4]=[n.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])]))]),n.createElementVNode("div",bh,[n.createVNode($s,{"grid-template-columns":"repeat(auto-fit, minmax(26px, 1fr))","grid-gap":"5px",margin:"0"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),(k,x)=>(n.openBlock(),n.createElementBlock("div",{id:x.toString(),key:x,class:"number",style:n.normalizeStyle({background:x.toString()===n.unref(r).toString()?"#9D9D9D":""}),onClick:n.withModifiers(C=>f(x),["stop"])},n.toDisplayString(x+1),13,Ch))),128))]),_:1})])],4))}}),[["__scopeId","data-v-c5b846b9"]]),kh=n.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(t,{emit:e}){const i=t,r=e,o=n.ref(i.x),s=n.ref(i.y),a=n.computed(()=>o.value+"px"),d=n.computed(()=>s.value+"px"),c=()=>{r("close")};return(u,f)=>{const h=n.resolveDirective("click-outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:"context-window",style:n.normalizeStyle({left:n.unref(a),top:n.unref(d)})},[n.renderSlot(u.$slots,"default")],4)),[[h,c]])}}}),xh={class:"date-range"},Eh=E(n.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 i=t,r=e;n.watch(()=>[i.start,i.end],()=>{i.start||(o.value=void 0),i.end||(s.value=void 0)});const o=n.ref(i.start),s=n.ref(i.end),a=c=>{o.value=c,!(!i.end||c>i.end)&&(r("update:start",c),r("setStart",c))},d=c=>{s.value=c,!(!i.start||c<i.start)&&(r("update:end",c),r("setEnd",c))};return(c,u)=>{const f=n.resolveComponent("PInputDate");return n.openBlock(),n.createElementBlock("div",xh,[n.createVNode(f,{"model-value":n.unref(o),"onUpdate:modelValue":u[0]||(u[0]=h=>n.isRef(o)?o.value=h:null),onChange:a},null,8,["model-value"]),u[2]||(u[2]=n.createTextVNode(" - ",-1)),n.createVNode(f,{"model-value":n.unref(s),"onUpdate:modelValue":u[1]||(u[1]=h=>n.isRef(s)?s.value=h:null),onChange:d},null,8,["model-value"])])}}}),[["__scopeId","data-v-b93b6d46"]]),Bh=n.defineComponent({name:"DateInputRangeV2"}),$h={class:"date-range"};function Mh(t,e,i,r,o,s){return n.openBlock(),n.createElementBlock("div",$h,[n.renderSlot(t.$slots,"default",{},void 0,!0)])}const Rh=E(Bh,[["render",Mh],["__scopeId","data-v-d28c6f33"]]),Ih={class:"drop-item"},Ph={key:0,class:"drop-item-list"},Ah=E(n.defineComponent({__name:"DropList",props:{name:{type:String,default:"Name"},rolledUp:{type:Boolean,default:!0}},setup(t){const e=t,i=n.ref(e.rolledUp),r=async()=>{i.value=!i.value};return(o,s)=>{const a=n.resolveComponent("PString"),d=n.resolveComponent("IconArrowDrop");return n.openBlock(),n.createElementBlock("div",Ih,[n.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=c=>r())},[n.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"]),n.createElementVNode("div",{style:n.normalizeStyle({transform:n.unref(i)?"":"rotate(-90deg)",display:"flex",alignItems:"center",margin:"0 0 2px 0"})},[n.createVNode(d,{size:"10px",margin:"0"})],4)]),n.unref(i)?(n.openBlock(),n.createElementBlock("div",Ph,[n.renderSlot(o.$slots,"default",{},void 0,!0)])):n.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-97057f9c"]]),Nh=E(n.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new Oi,required:!0}},emits:["load"],setup(t,{emit:e}){const i=t,r=n.ref(!1),o=e,s=()=>{i.model.setBoolean(r.value),r.value?$.F.FTSP.Get().setF(i.model):$.F.FTSP.Get().removeF(i.model),o("load")};return(a,d)=>{const c=n.resolveComponent("PCheckBox");return n.openBlock(),n.createBlock(c,{modelValue:n.unref(r),"onUpdate:modelValue":d[0]||(d[0]=u=>n.isRef(r)?r.value=u:null),label:t.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-72984c94"]]),vh=E(n.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 i=e,r=n.ref(void 0),o=async a=>{st.Get().replaceF(a,r.value),r.value=a,st.Get().p.drop()},s=async a=>{await o(a),i("load")};return(a,d)=>{const c=n.resolveComponent("PString"),u=n.resolveComponent("PButton"),f=n.resolveComponent("GridContainer"),h=n.resolveComponent("InfoItem");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(c,{string:t.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),n.createVNode(h,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"#F5F5F5","border-color":"#C4C4C4",padding:"7px","with-hover":!1},{title:n.withCtx(()=>[...d[0]||(d[0]=[])]),default:n.withCtx(()=>[n.createVNode(f,{"max-width":"100%","grid-gap":"7px","grid-template-columns":"repeat(auto-fit, minmax(100%, 1fr))",margin:"0px"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.models,(m,y)=>(n.openBlock(),n.createBlock(u,{key:y,color:"blue",height:"auto",text:m.label,"is-toggle":m.valueEq(n.unref(r)),"toggle-mode":!0,inverse:t.inverse,onClick:w=>s(m.valueEq(n.unref(r))?void 0:m)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-586481ea"]]),Vh=["value","label"],zh=E(n.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 i=e,r=st.Get(),o=n.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),i("load")};return(d,c)=>{const u=n.resolveComponent("PSelect");return n.openBlock(),n.createBlock(u,{modelValue:n.unref(o),"onUpdate:modelValue":c[0]||(c[0]=f=>n.isRef(o)?o.value=f:null),clearable:n.unref(o),placeholder:t.defaultLabel,onChange:a},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.models,(f,h)=>(n.openBlock(),n.createElementBlock("option",{key:h,value:f,label:f.label},null,8,Vh))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ae66df57"]]),Th=E(n.defineComponent({__name:"FTSPPanel",setup(t){return n.onBeforeMount(async()=>{}),(e,i)=>(n.openBlock(),n.createElementBlock("div"))}}),[["__scopeId","data-v-e280d85b"]]),Oh=E(n.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=n.ref(!1);return(i,r)=>(n.openBlock(),n.createElementBlock("div",{class:"general-block-item",style:n.normalizeStyle({background:t.background,height:t.height,width:t.width,borderColor:t.borderColor,padding:t.padding,margin:t.margin,transform:t.scale&&n.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)},[n.createElementVNode("div",{class:"green",style:n.normalizeStyle({width:`${t.ready}`})},null,4),n.createElementVNode("div",{class:"general-block-item-title",style:n.normalizeStyle({fontSize:t.fontSize})},[n.renderSlot(i.$slots,"general-item",{},void 0,!0)],4),n.createElementVNode("div",{class:"tools-icon",style:n.normalizeStyle({display:t.withIcon?"flex":"none"})},[...r[2]||(r[2]=[n.createElementVNode("svg",{class:"icon-del"},[n.createElementVNode("use",{"xlink:href":"#del"})],-1)])],4),r[3]||(r[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"del",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},[n.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"]]),Fh={key:0,class:"blur"},Dh={style:{display:"flex","justify-content":"center"}},Lh=E(n.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 i=t,r=e,o=i.customClass!==""?i.customClass:"inside-class",s=n.ref(!1),a=n.ref(!1),d=n.ref(!1),c=n.ref(i.close);n.watch(()=>i.close,()=>{a.value=!1});const u=V=>{V.stopPropagation(),V.key==="Escape"&&(i.showSaveDialog?d.value=!0:a.value=!1)};n.watch(a,async()=>{var V,T;await n.nextTick(),a.value?((T=(V=document.getElementById("info-item-opened-content"))==null?void 0:V.querySelector("input"))==null||T.focus(),document.body.addEventListener("keydown",u)):document.body.removeEventListener("keydown",u,!1),a.value===!1&&r("after-close")});const f=()=>{r("click"),a.value=!!i.withOpenWindow,c.value!==i.close&&(a.value=!1,c.value=!c.value)},h=n.computed(()=>i.customClass===""?{width:i.width,minHeight:"40px",height:"auto",maxWidth:i.maxWidth,minWidth:i.minWidth,margin:i.baseBoxMargin}:void 0),m=n.computed(()=>a.value&&i.withOpenWindow),y=n.computed(()=>({background:i.background?i.background:void 0,zIndex:m.value?"2":"0",padding:m.value?"0":i.padding,margin:i.margin,width:m.value?i.openWidth:i.width,height:m.value?i.openHeight:i.height,minHeight:"40px",maxWidth:i.maxWidth,minWidth:i.minWidth,borderColor:s.value||a.value?i.colorSelected:i.borderColor,color:s.value?i.colorSelected:"#343E5C",boxShadow:s.value||a.value?`0px 0px 1px 1px ${i.colorSelected}`:"none",alignItems:m.value?"end":"center",cursor:(i.withHover,"pointer")})),w=n.computed(()=>({height:m.value?"0":"",overflow:i.closeWindowOverflow,width:i.width})),k=n.computed(()=>({height:m.value?"auto":"0"})),x=n.computed(()=>({color:s.value?i.colorSelected:"#343E5C",fill:s.value?i.colorSelected:"#343E5C",background:i.background})),C=()=>{i.showSaveDialog?d.value=!0:a.value=!1},A=async()=>{await r("keyup-enter"),i.close&&(a.value=!1),d.value=!1},B=()=>{a.value=!1,d.value=!1};return(V,T)=>{const U=n.resolveComponent("PString"),Be=n.resolveComponent("PButton"),Vt=n.resolveComponent("PModal"),zt=n.resolveDirective("click-outside");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(a)?(n.openBlock(),n.createElementBlock("div",Fh)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"base-box",style:n.normalizeStyle(n.unref(h)),onClick:T[2]||(T[2]=n.withModifiers(Ne=>f(),["prevent","stop"]))},[n.createElementVNode("div",{class:n.normalizeClass(["body",n.unref(o)]),style:n.normalizeStyle(n.unref(y)),onMouseenter:T[0]||(T[0]=Ne=>t.withHover?s.value=!0:s.value=!1),onMouseleave:T[1]||(T[1]=Ne=>s.value=!1)},[n.unref(a)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["close-window",t.customClass]),style:n.normalizeStyle(n.unref(w))},[n.renderSlot(V.$slots,"default",{},void 0,!0)],6)),n.unref(a)?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:1,id:"info-item-opened-content",class:"open-window",style:n.normalizeStyle(n.unref(k))},[n.renderSlot(V.$slots,"open-inside-content",{},void 0,!0)],4)),[[zt,C,void 0,{prevent:!0}]]):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"top-title",style:n.normalizeStyle(n.unref(x))},[n.renderSlot(V.$slots,"title",{},()=>[n.createVNode(U,{string:t.title,"font-size":"10px",padding:"0 0 0 3px",style:n.normalizeStyle({color:n.unref(s)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),n.createVNode(Vt,{show:n.unref(d),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:n.withCtx(()=>[n.createElementVNode("div",Dh,[n.createVNode(Be,{text:"Не сохранять",onClick:B}),n.createVNode(Be,{text:"Сохранять",onClick:A})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-e8e8f1a1"]]),Hh=E(n.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 i=n.ref(!1),r=e,o=s=>{i.value=!i.value,r("select",s)};return(s,a)=>{const d=n.resolveComponent("PString"),c=n.resolveComponent("PButton"),u=n.resolveComponent("InfoItem");return n.openBlock(),n.createBlock(u,{close:n.unref(i),title:t.title,"close-window-overflow":"hidden","with-hover":!0,"with-open-window":!0},{"open-inside-content":n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.list,f=>(n.openBlock(),n.createBlock(c,{key:f,type:"admin",color:"blue",text:f,onClick:h=>o(f)},null,8,["text","onClick"]))),128)),n.createVNode(c,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=f=>o(void 0))})]),default:n.withCtx(()=>[n.createVNode(d,{string:t.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-973addd1"]]),_h={class:"mainblock"},Uh={class:"mainline"},qh=E(n.defineComponent({__name:"LeftRightContainer",props:{leftWidth:{type:String,required:!1,default:"0px"},background:{type:String,required:!1,default:"inherit"}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock("div",_h,[n.createElementVNode("div",Uh,[n.createElementVNode("div",{class:"mainblock-left",style:n.normalizeStyle({minWidth:t.leftWidth,maxWidth:t.leftWidth,background:t.background,display:t.leftWidth!=="0px"?"block":"none"})},[n.renderSlot(e.$slots,"left",{},void 0,!0)],4),n.createElementVNode("div",{class:"mainblock-right",style:n.normalizeStyle({background:t.background})},[n.renderSlot(e.$slots,"right",{},void 0,!0)],4)])]))}}),[["__scopeId","data-v-42fa7104"]]),Ms=E(n.defineComponent({__name:"IconSearch",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#search"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[n.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"]]),jh={class:"search-list"},Wh=["onClick"],Rs=E(n.defineComponent({inheritAttrs:!1,__name:"PAutocomplete",props:{modelValue:{type:String,default:""},searchFunc:{type:Function,default:()=>{}},suggestions:{type:Array,default:[]},width:{type:[Number,String],default:""},maxHeightResultList:{type:String,default:"200px"},zIndexResultList:{type:String,default:"10"},boxShadowResultList:{type:String,default:"var(--box-shadow)"}},emits:["select","input"],setup(t,{emit:e}){const i=e,r=t,o=n.ref(r.modelValue),s=n.ref([]);async function a(){i("input",o.value),await d()}async function d(){r.searchFunc&&(s.value=await r.searchFunc(o.value))}async function c(u){o.value="",i("select",u)}return(u,f)=>(n.openBlock(),n.createElementBlock("div",{class:"container",style:n.normalizeStyle({width:t.width})},[n.createVNode(pt,{modelValue:n.unref(o),"onUpdate:modelValue":f[0]||(f[0]=h=>n.isRef(o)?o.value=h:null),placeholder:"Найти",onInput:a},{right:n.withCtx(()=>[n.createVNode(Ms,{size:"24px"})]),_:1},8,["modelValue"]),n.unref(o)&&n.unref(o).length>=2?(n.openBlock(),n.createElementBlock("div",{key:0,class:"result",style:n.normalizeStyle({maxHeight:t.maxHeightResultList,zIndex:t.zIndexResultList,boxShadow:t.boxShadowResultList})},[n.createElementVNode("ul",jh,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),h=>(n.openBlock(),n.createElementBlock("li",{key:h.value,onClick:m=>c(h)},n.toDisplayString(h.label),9,Wh))),128))])],4)):n.createCommentVNode("",!0)],4))}}),[["__scopeId","data-v-d02c66ef"]]),Gh=E(n.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=n.useModel(t,"modelValue"),i=async()=>{};return(r,o)=>{const s=n.resolveComponent("PInput");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(s,{modelValue:e.value.number,"onUpdate:modelValue":o[0]||(o[0]=a=>e.value.number=a),onBlur:i},null,8,["modelValue"]),n.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":o[1]||(o[1]=a=>e.value.description=a),onBlur:i},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-51bf3f08"]]),Zh={};function Qh(t,e){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e[0]||(e[0]=n.createElementVNode("div",{class:"blur"},null,-1)),e[1]||(e[1]=n.createElementVNode("div",{class:"loader-container"},[n.createElementVNode("div",{class:"loader",style:{"--b":"20px",width:"200px","--n":"10"}})],-1))],64)}const Xh=E(Zh,[["render",Qh],["__scopeId","data-v-0f1f2f84"]]),Yh={style:{display:"flex","justify-content":"center",width:"100%"}},Jh={class:"pag-number"},Kh={class:"pag-ul"},em={key:2},tm=E(n.defineComponent({__name:"PPagination",props:{showConfirm:{type:Boolean,default:!1},justifyContent:{type:String,default:"center"},store:{type:Object,required:!0}},setup(t){const e=t,i=h=>h?"active":"neutral",r=h=>h?"not-active":"neutral",o=n.ref(jo),s=n.ref(!1),a=n.ref(!1);o.value.count=e.store.Count.value,n.watch(e.store.Count,()=>{o.value.count=e.store.Count.value});const d=async h=>{if(h!==o.value.curPage&&(h<1&&(h=1),h>o.value.pagesCount()&&(h=o.value.pagesCount()),!e.showConfirm))return await c(h)},c=async(h,m)=>{o.value.setCurPage(h),st.Get().p.offset=(h-1)*o.value.limit,await e.store.FTSP(),f()},u=n.computed(()=>{const h=o.value.pagesCount();return h<8?ot.GenerateNumsRange(2,h-1).filter(m=>m<h&&m>1):ot.GenerateNumsRange(o.value.curPage-2,o.value.curPage+3).filter(m=>m<h&&m>1)}),f=()=>{const h=document.querySelector(".el-table__body-wrapper"),m=document.querySelector("#list");h?h.scrollTo({top:0}):m&&m.scrollTo({top:0})};return n.onBeforeUnmount(()=>{st.Get().p.drop()}),(h,m)=>{const y=n.resolveComponent("ArrowLeft"),w=n.resolveComponent("PButton"),k=n.resolveComponent("DoubleArrowLeft"),x=n.resolveComponent("EllipsisSvg"),C=n.resolveComponent("DoubleArrowRight"),A=n.resolveComponent("ArrowRight");return n.openBlock(),n.createElementBlock("div",Yh,[n.createElementVNode("div",{class:"pag-container",style:n.normalizeStyle({justifyContent:t.justifyContent})},[n.createElementVNode("div",Jh,[n.createVNode(w,{skin:"pag",type:r(n.unref(o).curPage===1),onClick:m[0]||(m[0]=B=>d(n.unref(o).curPage-1))},{default:n.withCtx(()=>[n.createVNode(y)]),_:1},8,["type"]),n.createElementVNode("ul",Kh,[n.createElementVNode("li",null,[n.createVNode(w,{skin:"pag",type:i(n.unref(o).curPage===1),text:"1",onClick:m[1]||(m[1]=B=>d(1))},null,8,["type"])]),n.unref(o).pagesCount()>8&&n.unref(o).curPage>4?(n.openBlock(),n.createElementBlock("li",{key:0,onMouseenter:m[3]||(m[3]=B=>s.value=!0),onMouseleave:m[4]||(m[4]=B=>s.value=!1)},[n.createVNode(w,{skin:"pag",type:"neutral",onClick:m[2]||(m[2]=B=>d(n.unref(o).curPage-5))},{default:n.withCtx(()=>[n.unref(s)?(n.openBlock(),n.createBlock(k,{key:0})):(n.openBlock(),n.createBlock(x,{key:1}))]),_:1})],32)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(u),B=>(n.openBlock(),n.createElementBlock("li",{key:B},[n.createVNode(w,{skin:"pag",type:i(B===n.unref(o).curPage),text:B,onClick:V=>d(B)},null,8,["type","text","onClick"])]))),128)),n.unref(o).pagesCount()>=8&&n.unref(o).curPage<n.unref(o).pagesCount()-3?(n.openBlock(),n.createElementBlock("li",{key:1,onMouseenter:m[6]||(m[6]=B=>a.value=!0),onMouseleave:m[7]||(m[7]=B=>a.value=!1)},[n.createVNode(w,{skin:"pag",type:"neutral",onClick:m[5]||(m[5]=B=>d(n.unref(o).curPage+5))},{default:n.withCtx(()=>[n.unref(a)?(n.openBlock(),n.createBlock(C,{key:0})):(n.openBlock(),n.createBlock(x,{key:1}))]),_:1})],32)):n.createCommentVNode("",!0),n.unref(o).pagesCount()>1?(n.openBlock(),n.createElementBlock("li",em,[n.createVNode(w,{skin:"pag",type:i(n.unref(o).pagesCount()===n.unref(o).curPage),text:n.unref(o).pagesCount(),onClick:m[8]||(m[8]=B=>d(n.unref(o).pagesCount()))},null,8,["type","text"])])):n.createCommentVNode("",!0)]),n.createVNode(w,{skin:"pag",type:r(n.unref(o).curPage===n.unref(o).pagesCount()),onClick:m[9]||(m[9]=B=>d(n.unref(o).curPage+1))},{default:n.withCtx(()=>[n.createVNode(A)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-57f15ca8"]]),nm=E(n.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},width:{type:[Number,String],default:"var(--input-width-default, 100%)"},focus:{type:Boolean,default:!1},maxHeightResultList:{type:String,default:"200px"},zIndexResultList:{type:String,default:"10"},boxShadowResultList:{type:String,default:"rgba(0, 0, 0, 0.35) 0px 5px 5px"}},emits:["select","load","input"],setup(t,{emit:e}){const i=t,r=e,o=n.ref(i.modelValue),s=n.ref();let a=ar.SearchModel();n.watch(()=>i.focus,()=>{i.focus&&setTimeout(()=>{s.value.focus(),o.value=""},500)});const d=async f=>{if(f.length<2)return;s.value.activated=!0,a=ar.SearchModel(),a.searchObjects=[],a.query=f,a.key=i.keyValue;const h=a.searchGroups.find(m=>m.key===i.keyValue);return h&&(a.searchGroup=h),await es.Search.Search(a),a.searchObjects},c=async f=>{r("select",f),o.value=""},u=f=>{r("input",f),f.length===0&&r("input","")};return(f,h)=>(n.openBlock(),n.createBlock(Rs,{ref_key:"searchForm",ref:s,modelValue:n.unref(o),"onUpdate:modelValue":h[0]||(h[0]=m=>n.isRef(o)?o.value=m:null),"max-height-result-list":t.maxHeightResultList,"z-index-result-list":t.zIndexResultList,"box-shadow-result-list":t.boxShadowResultList,width:t.width,"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:t.placeholder,"search-func":d,"trigger-on-focus":t.showSuggestions,suggestions:n.unref(a).searchObjects,onSelect:c,onInput:u},null,8,["modelValue","max-height-result-list","z-index-result-list","box-shadow-result-list","width","placeholder","trigger-on-focus","suggestions"]))}}),[["__scopeId","data-v-af0b4b1a"]]),im={class:"mainblock-body"},rm={class:"mainblock-footer"},om=E(n.defineComponent({__name:"ResearcheContainer",props:{background:{type:String,required:!1,default:"inherit"},padding:{type:String,required:!1,default:"0px 10px"}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock("div",{class:"mainblock",style:n.normalizeStyle({background:t.background,padding:t.padding})},[n.createElementVNode("div",{class:"mainblock-header",style:n.normalizeStyle({background:t.background})},[n.renderSlot(e.$slots,"header",{},void 0,!0)],4),n.createElementVNode("div",im,[n.renderSlot(e.$slots,"body",{},void 0,!0)]),n.createElementVNode("div",rm,[n.renderSlot(e.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-367c3367"]]),sm={class:"right-slider-content"},am={class:"right-slider-content-header"},lm={class:"right-slider-content-box"},cm={class:"right-slider-button"},dm=E(n.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 i=t,r=e,o=n.ref(!1);n.watch(()=>i.toggle,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("toggle",a)};return(a,d)=>{const c=n.resolveComponent("PString");return n.openBlock(),n.createElementBlock("div",{class:"right-slider",style:n.normalizeStyle({marginRight:n.unref(o)?`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`:"0",width:t.sliderOnWidth})},[n.createElementVNode("div",{class:"click-line",onClick:d[0]||(d[0]=u=>s(!n.unref(o)))},[n.unref(o)?(n.openBlock(),n.createBlock(c,{key:0,string:t.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):n.createCommentVNode("",!0),n.unref(o)?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(c,{key:1,string:t.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),n.createElementVNode("div",sm,[n.createElementVNode("div",am,[n.renderSlot(a.$slots,"header",{},void 0,!0)]),n.createElementVNode("div",lm,[n.renderSlot(a.$slots,"default",{},void 0,!0)])]),n.createElementVNode("div",cm,[n.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-262b1c53"]]),um={class:"mainblock"},fm={class:"body-block"},hm={class:"tab-block"},mm=E(n.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 i=t,r=e,o=n.ref(!1),s=n.ref(window.matchMedia("(max-width: 768px)").matches),a=c=>{r("toggle",c)},d=n.ref(!1);return n.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(i.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}),(c,u)=>(n.openBlock(),n.createElementBlock("div",um,[n.createElementVNode("div",{class:"slider-block",style:n.normalizeStyle({marginRight:n.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"})},[n.createElementVNode("div",{class:"slider-icon",style:n.normalizeStyle({border:t.isToggle?"1px solid #379FFF":"1px solid #00B5A4",background:t.isToggle?"#ffffff":"#C7ECEA"}),onClick:u[0]||(u[0]=f=>a(!t.isToggle)),onMouseenter:u[1]||(u[1]=f=>d.value=!0),onMouseleave:u[2]||(u[2]=f=>d.value=!1)},[n.createElementVNode("div",{class:"icon-block",style:n.normalizeStyle({transform:n.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"})},[n.renderSlot(c.$slots,"icon",{},void 0,!0)],4)],36),n.createElementVNode("div",{class:"slider-info",style:n.normalizeStyle({width:`calc(${t.sliderOnWidth} - ${t.sliderOffWidth})`})},[n.renderSlot(c.$slots,"slider-body",{},void 0,!0)],4)],4),n.createElementVNode("div",fm,[n.renderSlot(c.$slots,"body",{},void 0,!0)]),n.createElementVNode("div",hm,[n.renderSlot(c.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-0cfd77ce"]]),pm=["label","value"],gm=E(n.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(t,{emit:e}){const i={[xe.String]:"Текстовый ответ",[xe.Text]:"Развёрнутый текстовый ответ",[xe.Number]:"Числовой ответ",[xe.Date]:"Ответ в виде даты",[xe.Radio]:"Выбор одного из вариантов",[xe.Set]:"Выбор нескольких вариантов",[xe.File]:"Ответ в виде файла",[xe.MatrixRadio]:"Матрица с одним выбором",[xe.MatrixSet]:"Матрица с несколькими выборами"},r=e,o=s=>{r("select",s)};return(s,a)=>{const d=n.resolveComponent("PString"),c=n.resolveComponent("PSelect");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(d,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),n.createVNode(c,{"model-value":t.selectedType,placeholder:"Вид ответа",onChange:o},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(i,(u,f)=>n.createElementVNode("option",{key:u,label:u,value:f},null,8,pm)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-36a59e2b"]]),ym=["label","value"],wm=E(n.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const i=n.ref(!1),r=e,o=n.ref();n.onBeforeMount(()=>{i.value=!0,o.value=Rt.GetDefault()});const s=async d=>{o.value=d??Rt.GetDefault(),r("load")},a=async d=>{await s(d)};return(d,c)=>{var f;const u=n.resolveComponent("PSelect");return n.unref(i)?(n.openBlock(),n.createBlock(u,{key:0,modelValue:n.unref(o),"onUpdate:modelValue":c[0]||(c[0]=h=>n.isRef(o)?o.value=h:null),"popper-append-to-body":!1,clearable:!((f=n.unref(o))!=null&&f.default),"value-key":"label",onChange:a,onClear:c[1]||(c[1]=h=>a())},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(Rt).Get(),(h,m)=>(n.openBlock(),n.createElementBlock("option",{key:m,label:h.label,value:h},null,8,ym))),128))]),_:1},8,["modelValue","clearable"])):n.createCommentVNode("",!0)}}}),[["__scopeId","data-v-982338b4"]]),bm=["label","value"],Cm=E(n.defineComponent({__name:"SortSelect",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const i=e,r=n.ref();n.onBeforeMount(()=>{r.value=Rt.GetDefault()});const o=async a=>{a||(r.value=Rt.GetDefault()),st.Get().setSortModel(r.value),st.Get().p.drop(),i("load")},s=async a=>{await o(a)};return(a,d)=>{var u;const c=n.resolveComponent("PSelect");return n.openBlock(),n.createBlock(c,{modelValue:n.unref(r),"onUpdate:modelValue":d[0]||(d[0]=f=>n.isRef(r)?r.value=f:null),"popper-append-to-body":!1,clearable:!((u=n.unref(r))!=null&&u.default),"value-key":"label",onChange:s},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(Rt).Get(),(f,h)=>(n.openBlock(),n.createElementBlock("option",{key:h,label:f.label,value:f},null,8,bm))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-80f413ec"]]),Sm={class:"switch-container"},km={class:"line"},xm={class:"line"},Em=E(n.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 i=t,r={background:"inherit",border:"1px solid #c4c4c4"},o=()=>i.firstModel.valueEq(u.value)?void 0:r,s=()=>u.value?r:void 0,a=()=>i.secondModel.valueEq(u.value)?void 0:r,d=h=>{var y;return{color:(y=u.value)!=null&&y.valueEq(h)?"#006bb4":"#B0A4C0"}},c=e,u=n.ref(void 0),f=async h=>{var m;(m=u.value)!=null&&m.valueEq(h)||(u.value=h,c("load"))};return(h,m)=>{const y=n.resolveComponent("PString");return n.openBlock(),n.createElementBlock("div",Sm,[n.createElementVNode("div",km,[n.createVNode(y,{string:t.firstModel.label,"font-size":"12px",padding:"0",style:n.normalizeStyle(d(t.firstModel)),onClick:m[0]||(m[0]=w=>f(t.firstModel))},null,8,["string","style"]),n.createVNode(y,{string:"Все","font-size":"12px",padding:"0",style:n.normalizeStyle(d()),onClick:m[1]||(m[1]=w=>f())},null,8,["style"]),n.createVNode(y,{string:t.secondModel.label,"font-size":"12px",padding:"0",style:n.normalizeStyle(d(t.secondModel)),onClick:m[2]||(m[2]=w=>f(t.secondModel))},null,8,["string","style"])]),n.createElementVNode("div",xm,[n.createElementVNode("div",{class:n.normalizeClass(["switch-knob1",{active:t.firstModel.valueEq(n.unref(u))}]),style:n.normalizeStyle(o()),onClick:m[3]||(m[3]=w=>f(t.firstModel))},null,6),n.createElementVNode("div",{class:n.normalizeClass(["switch-knob2",{active:!n.unref(u)}]),style:n.normalizeStyle(s()),onClick:m[4]||(m[4]=w=>f())},null,6),n.createElementVNode("div",{class:n.normalizeClass(["switch-knob3",{active:t.secondModel.valueEq(n.unref(u))}]),style:n.normalizeStyle(a()),onClick:m[5]||(m[5]=w=>f(t.secondModel))},null,6),m[6]||(m[6]=n.createElementVNode("div",{class:"switch-axis"},null,-1)),m[7]||(m[7]=n.createElementVNode("div",{class:"switch-axis-dash1"},null,-1)),m[8]||(m[8]=n.createElementVNode("div",{class:"switch-axis-dash2"},null,-1)),m[9]||(m[9]=n.createElementVNode("div",{class:"switch-axis-dash3"},null,-1))])])}}}),[["__scopeId","data-v-ecff678c"]]),Bm={},$m={class:"flex"};function Mm(t,e){return n.openBlock(),n.createElementBlock("div",$m,[n.renderSlot(t.$slots,"default",{},void 0,!0)])}const Rm=E(Bm,[["render",Mm],["__scopeId","data-v-5023d414"]]),Im=E(n.defineComponent({__name:"ToggleInfoItem",props:{title:{type:String,required:!0},content:{type:String,required:!0}},emits:["submit"],setup(t,{emit:e}){const i=n.ref(!1),r=e,o=async()=>{r("submit"),i.value=!i.value};return(s,a)=>{const d=n.resolveComponent("PString"),c=n.resolveComponent("PButton"),u=n.resolveComponent("GridContainer"),f=n.resolveComponent("InfoItem");return n.openBlock(),n.createBlock(f,{title:t.title,icon:"edit-title","with-hover":!0,close:n.unref(i),width:"100%",onKeyupEnter:o},{"open-inside-content":n.withCtx(()=>[n.createVNode(u,{"custom-class":"grid"},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default",{},void 0,!0),n.createVNode(c,{type:"admin",color:"blue",text:"Сохранить",onClick:o})]),_:3})]),default:n.withCtx(()=>[t.content.length>0?(n.openBlock(),n.createBlock(d,{key:0,string:t.content},null,8,["string"])):(n.openBlock(),n.createBlock(d,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-0794596f"]]),Pm={class:"top-slider-content"},Am={class:"center"},Nm=E(n.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 i=t,r=e,o=n.ref(!0);n.watch(()=>i.toggle,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("toggle",a)};return(a,d)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(o)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"blur",onClick:[d[0]||(d[0]=n.withModifiers(c=>o.value=!0,["prevent"])),d[1]||(d[1]=n.withModifiers(()=>{},["stop"]))]})),n.createElementVNode("div",{class:"top-slider",style:n.normalizeStyle({marginTop:n.unref(o)?`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`:"0",height:t.sliderOnHeight}),onClick:d[3]||(d[3]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",Pm,[n.createElementVNode("div",Am,[n.renderSlot(a.$slots,"default",{},void 0,!0)])]),n.createElementVNode("div",{class:"click-line",style:n.normalizeStyle({height:t.sliderOffHeight}),onClick:d[2]||(d[2]=c=>s(!n.unref(o)))},[n.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-683131f5"]]);function vm(t){t.component("PageNotFound",Ho),t.component("AdaptiveContainer",dh),t.component("AdaptiveContainerHorizontal",hh),t.component("CarouselImages",Sh),t.component("ContextWindow",kh),t.component("DateInputRangeV2",Rh),t.component("DateInputRange",Eh),t.component("DropList",Ah),t.component("FilterCheckbox",Nh),t.component("FiltersButtonsSelect",vh),t.component("FilterSelect",zh),t.component("FTSPPanel",Th),t.component("GeneralItem",Oh),t.component("GridContainer",$s),t.component("InfoItem",Lh),t.component("InfoItemSelectButtons",Hh),t.component("LeftRightContainer",qh),t.component("PAutocomplete",Rs),t.component("PhoneForm",Gh),t.component("PLoader",Xh),t.component("PPagination",tm),t.component("RemoteSearch",nm),t.component("ResearcheContainer",om),t.component("RightSliderContainer",dm),t.component("RightTabsContainer",mm),t.component("SelectValueType",gm),t.component("SortList",wm),t.component("SortSelect",Cm),t.component("Switch3Pos",Em),t.component("ThemeWrapper",Rm),t.component("ToggleInfoItem",Im),t.component("TopSliderContainer",Nm)}const Vm=E(n.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=n.ref(!1);return(i,r)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?n.unref(e)?t.hoverColor:t.color:(n.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]=[n.createElementVNode("use",{"xlink:href":"#download"},null,-1)])],38)),r[3]||(r[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"download",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[n.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"}),n.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"]]),zm=E(n.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=n.ref(!1);return(i,r)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?n.unref(e)?t.hoverColor:t.color:(n.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]=[n.createElementVNode("use",{"xlink:href":"#filter"},null,-1)])],38)),r[3]||(r[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"filter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[n.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"}),n.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"]]),Tm=E(n.defineComponent({__name:"IconArrowLeft",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"arrow-left",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[n.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"]]),Om=E(n.defineComponent({__name:"IconCheckDefault",props:{size:{type:String,default:"22px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#check_on"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"check_on",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[n.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"]]),Is=E(n.defineComponent({__name:"IconClose",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#close"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},[n.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"]]),Fm=E(n.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,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#edit"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[n.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"}),n.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"]]),Dm=E(n.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,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#email"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"email",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[n.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"]]),Lm=E(n.defineComponent({__name:"IconMove",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#icon-move"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"icon-move",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22"},[n.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"]]),Hm=E(n.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,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#phone"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"phone",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[n.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"]]),_m=E(n.defineComponent({__name:"IconSelectArrow",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"arrow-down",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},[n.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"}),n.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"]]),Um=E(n.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=n.ref(!1);return(i,r)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?n.unref(e)?t.hoverColor:t.color:(n.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]=[n.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)])],38)),r[3]||(r[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.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"]]),qm=E(n.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=n.ref(!1);return(i,r)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?n.unref(e)?t.hoverColor:t.color:(n.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]=[n.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)])],38)),r[3]||(r[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.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"]]),jm=E(n.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=n.ref(!1);return(i,r)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?n.unref(e)?t.hoverColor:t.color:(n.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]=[n.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)])],38)),r[3]||(r[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"double-arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.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"]]),Wm=E(n.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=n.ref(!1);return(i,r)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?n.unref(e)?t.hoverColor:t.color:(n.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]=[n.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)])],38)),r[3]||(r[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"double-arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.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"]]),Gm=E(n.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=n.ref(!1);return(i,r)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?n.unref(e)?t.hoverColor:t.color:(n.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]=[n.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)])],38)),r[3]||(r[3]=n.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"]]);function Zm(t){t.component("IconDownload",Vm),t.component("IconFilter",zm),t.component("ArrowLeft",Um),t.component("ArrowRight",qm),t.component("DoubleArrowLeft",jm),t.component("DoubleArrowRight",Wm),t.component("EllipsisSvg",Gm),t.component("IconArrowLeft",Tm),t.component("IconCheckDefault",Om),t.component("IconClose",Is),t.component("IconEdit",Fm),t.component("IconEmail",Dm),t.component("IconMove",Lm),t.component("IconPhone",Hm),t.component("IconSearch",Ms),t.component("IconSelectArrow",_m)}const Qm=n.defineComponent({name:"CollapseContainer",props:{initActiveIdx:{type:Number,default:0}},setup(t){const e=n.ref(t.initActiveIdx),i=r=>{e.value=r};return n.watch(()=>t.initActiveIdx,()=>{i(t.initActiveIdx)}),{changeActiveId:i,activeIdx:e}}});function Xm(t,e,i,r,o,s){return n.openBlock(),n.createElementBlock("div",null,[n.renderSlot(t.$slots,"default",{activeIdx:t.activeIdx,changeActiveId:t.changeActiveId})])}const Ym=E(Qm,[["render",Xm]]),Jm=n.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 i=n.ref(t.activeId==="0"),r=()=>{i.value=!i.value,e("changeActiveId",t.tabId)};return n.onUpdated(()=>{t.activeId&&t.activeId!==t.tabId&&(i.value=!0)}),n.onBeforeMount(()=>{t.activeId&&t.activeId!==t.tabId&&(i.value=!1)}),{collapsed:i,handleItemClick:r}}}),Km=["for"],ep={class:"inside-icon"};function tp(t,e,i,r,o,s){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{class:"tab",style:n.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?(n.openBlock(),n.createElementBlock("svg",{key:0,class:"icon-arrow",onClick:e[0]||(e[0]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},[...e[3]||(e[3]=[n.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)])])):t.isCollaps&&!t.collapsed?(n.openBlock(),n.createElementBlock("svg",{key:1,class:"icon-arrow",onClick:e[1]||(e[1]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},[...e[4]||(e[4]=[n.createElementVNode("use",{"xlink:href":"#arrow-up"},null,-1)])])):n.createCommentVNode("",!0),n.createElementVNode("label",{for:t.tabId,onClick:e[2]||(e[2]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},[n.createElementVNode("div",{style:n.normalizeStyle({cursor:t.isCollaps?"pointer":"default",background:t.changeColor?t.background:t.backgroundAttention,padding:t.padding,borderRadius:"5px"}),class:"tab-name"},[n.createElementVNode("div",ep,[n.renderSlot(t.$slots,"icon",{},void 0,!0)]),n.createElementVNode("div",{class:"title-in",style:n.normalizeStyle({marginRight:t.isCollaps?"50px":"0",width:t.isCollaps?"calc(100% - 50px)":"100%"})},[n.renderSlot(t.$slots,"inside-title",{},()=>[n.createTextVNode(n.toDisplayString(t.title),1)],!0)],4),n.createElementVNode("div",{class:n.normalizeClass(["tools-bar",{"hidden-part":t.showToolsOnHover}])},[n.renderSlot(t.$slots,"tools",{},void 0,!0)],2)],4)],8,Km),n.createElementVNode("div",{style:n.normalizeStyle({maxHeight:t.isCollaps?"":"1000000vh",background:t.changeColor?t.background:t.backgroundAttention}),class:n.normalizeClass(t.collapsed?"tab-content-down":"tab-content-up")},[n.renderSlot(t.$slots,"default",{},void 0,!0)],6)],4),e[5]||(e[5]=n.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-c2e31ebb><symbol id="arrow-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-c2e31ebb><path d="M5 6L10 11L15 6L17 7L10 14L3 7L5 6Z" fill="currentColor" data-v-c2e31ebb></path></symbol><symbol id="arrow-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-c2e31ebb><path d="M15 14L10 9L5 14L3 13L10 6L17 13L15 14Z" fill="currentColor" data-v-c2e31ebb></path></symbol></svg>',1))],64)}const np=E(Jm,[["render",tp],["__scopeId","data-v-c2e31ebb"]]),ip={class:"tab"},rp={class:"rotate"},op=E(n.defineComponent({__name:"VerticalCollapseContainer",setup(t){const e=n.ref(!1),i=async()=>{e.value=!e.value};return(r,o)=>{const s=n.resolveComponent("ArrowRight"),a=n.resolveComponent("ArrowLeft");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",ip,[n.renderSlot(r.$slots,"main",{},void 0,!0),n.createElementVNode("div",{style:n.normalizeStyle({width:n.unref(e)?"50%":"20px",transition:"0.3s"}),class:"left"},[n.createElementVNode("div",{style:n.normalizeStyle({width:n.unref(e)?"100%":"0",transition:"0.3s"}),class:"left-content"},[n.renderSlot(r.$slots,"inside-content-left",{},void 0,!0)],4),n.createElementVNode("div",{class:"arrow-bar",onClick:i},[n.createElementVNode("div",rp,[n.renderSlot(r.$slots,"inside-title",{},void 0,!0)]),n.unref(e)?(n.openBlock(),n.createBlock(s,{key:0,"icon-class":"icon-arrow"})):(n.openBlock(),n.createBlock(a,{key:1,"icon-class":"icon-arrow"}))])],4),n.createElementVNode("div",{style:n.normalizeStyle({width:n.unref(e)?"50%":"100%",transition:"0.3s"}),class:"right"},[n.renderSlot(r.$slots,"inside-content-right",{},void 0,!0)],4)]),n.createVNode(a),n.createVNode(s)],64)}}}),[["__scopeId","data-v-4ccaade5"]]),sp={class:"add-block_body"},ap=E(n.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,i)=>{const r=n.resolveComponent("PSticky");return n.openBlock(),n.createElementBlock("div",{class:"add-block",style:n.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[n.createVNode(r,{top:t.top,"z-index":t.zIndex},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),n.createElementVNode("div",sp,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-338720bc"]]),lp=E(n.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,i)=>(n.openBlock(),n.createElementBlock("div",{class:"add-block",style:n.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-b2b43a38"]]),cp={class:"add-block_body"},dp=E(n.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,i)=>{const r=n.resolveComponent("PSticky"),o=n.resolveComponent("PContainer");return n.openBlock(),n.createBlock(o,{background:t.background,margin:t.margin,padding:t.padding},{default:n.withCtx(()=>[n.createVNode(r,{top:t.top,"z-index":t.zIndex},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),n.createElementVNode("div",cp,[n.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-9464e4a8"]]),up=["src"],fp={key:0,class:"header-row"},hp={class:"title-wrapper"},mp={key:0,class:"title-icon"},pp={class:"title-text"},gp={class:"text-subtitle1 text-weight-medium"},yp={key:0,class:"caption-row"},wp={class:"text-caption text-grey-6"},bp=["innerHTML"],Cp={key:1,class:"card-footer"},Ps=E(n.defineComponent({__name:"PCard",props:{height:{type:String,default:"auto"},maxHeight:{type:String,default:"none"},img:{type:String,default:""},title:{type:String,default:""},content:{type:String,default:""},caption:{type:String,default:""},icon:{type:String,default:""},isMain:{type:Boolean,default:!1},noPointer:{type:Boolean,default:!1},noHover:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const i=n.ref(null),r=t,o=e,s=n.computed(()=>r.img?r.isMain?"365px":"200px":"0"),a=d=>{r.noPointer||o("click",d)};return(d,c)=>(n.openBlock(),n.createBlock(n.unref(D.QCard),{class:n.normalizeClass(["card",{"no-hover":t.noHover,"cursor-pointer":!t.noPointer}]),flat:"",bordered:"",style:n.normalizeStyle({height:t.height}),onClick:a},{default:n.withCtx(()=>[t.img?(n.openBlock(),n.createElementBlock("div",{key:0,class:"image-container",style:n.normalizeStyle({height:s.value})},[n.createElementVNode("img",{class:"image-img",src:t.img,alt:"image",style:n.normalizeStyle({height:s.value})},null,12,up)],4)):n.createCommentVNode("",!0),n.createVNode(n.unref(D.QCardSection),{class:"card-content",style:n.normalizeStyle({maxHeight:t.maxHeight})},{default:n.withCtx(()=>[t.title||d.$slots.title||d.$slots.icon?(n.openBlock(),n.createElementBlock("div",fp,[n.createElementVNode("div",hp,[t.icon||d.$slots.icon?(n.openBlock(),n.createElementBlock("div",mp,[n.renderSlot(d.$slots,"icon",{},()=>[n.createVNode(n.unref(D.QIcon),{name:t.icon,size:"20px",color:"primary"},null,8,["name"])],!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",pp,[n.renderSlot(d.$slots,"title",{},()=>[n.createElementVNode("span",gp,n.toDisplayString(t.title),1)],!0)])]),d.$slots.caption||t.caption?(n.openBlock(),n.createElementBlock("div",yp,[n.renderSlot(d.$slots,"caption",{},()=>[n.createElementVNode("span",wp,n.toDisplayString(t.caption),1)],!0)])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),t.title||d.$slots.title?(n.openBlock(),n.createBlock(n.unref(D.QSeparator),{key:1,class:"header-separator"})):n.createCommentVNode("",!0),n.createElementVNode("div",{ref_key:"contentRef",ref:i,class:"content-wrapper"},[n.renderSlot(d.$slots,"default",{},()=>[t.content?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(t.isMain?"main-content":"preview-content"),innerHTML:t.content},null,10,bp)):n.createCommentVNode("",!0)],!0)],512)]),_:3},8,["style"]),d.$slots.footer?(n.openBlock(),n.createElementBlock("div",Cp,[n.renderSlot(d.$slots,"footer",{},void 0,!0)])):n.createCommentVNode("",!0)]),_:3},8,["style","class"]))}}),[["__scopeId","data-v-b586d556"]]),Sp={key:0,class:"list-title"},kp={class:"draggable-item"},xp={class:"drag-handle"},Ep={class:"item-content"},Bp={key:0,class:"item-actions"},$p={class:"item-content"},Mp={key:0,class:"item-actions"},Rp={key:4,class:"add-button-container"},Ip=n.defineComponent({__name:"PCrudList",props:{sortable:{type:Boolean,default:!0},showAdd:{type:Boolean,default:!0},showDelete:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},title:{type:String,required:!0,default:""},store:{type:$.H.BaseStore,default:void 0},addFunc:{type:Function,required:!0},addToList:{type:Boolean,default:!0},removeFromList:{type:Boolean,default:!0},margin:{type:String,required:!0,default:"0"},background:{type:String,required:!0,default:"var(--background-color)"}},emits:["add","remove","update","sort"],setup(t,{emit:e}){n.useCssVars(c=>({v73008f9f:t.background}));const i=t,r=e,o=async()=>{const c=await i.addFunc();c.order!=="undefined"&&(c.order=i.list.length),i.addToList&&i.store&&i.store.AppendToAll(c),i.store&&await i.store.Create(c),await d(),r("add",c)},s=async c=>{i.removeFromList&&$.H.Classes.RemoveFromClassById(c,i.list),i.store&&await i.store.Remove(c),await d(),r("remove",c)},a=async c=>{i.store&&await i.store.Update(c),r("update",c)},d=async()=>{!i.sortable||i.list.length===0||typeof i.list[0].order>"u"||($.H.Sorter.Sort(i.list),i.store&&await i.store.UpdateMany(i.list),r("sort"))};return(c,u)=>(n.openBlock(),n.createElementBlock("div",n.mergeProps(c.$attrs,{style:{margin:t.margin,boxSizing:"border-box"},class:"ordered-list"}),[t.title?(n.openBlock(),n.createElementBlock("div",Sp,n.toDisplayString(t.title),1)):n.renderSlot(c.$slots,"title",{},void 0,!0,1),t.sortable?(n.openBlock(),n.createBlock(n.unref(ga),{key:2,class:"draggable-list",list:t.list,"item-key":"id",handle:".drag-handle",onEnd:d},{item:n.withCtx(({element:f,index:h})=>[n.createElementVNode("div",kp,[n.createElementVNode("div",xp,[n.createVNode(n.unref(D.QIcon),{name:"drag_indicator",class:"drag-icon"})]),n.createElementVNode("div",Ep,[n.renderSlot(c.$slots,"default",{item:f,update:a,index:h},()=>[n.createVNode(pt,{modelValue:f.name,"onUpdate:modelValue":m=>f.name=m,outlined:"",dense:"",class:"content-input",onBlur:m=>a(f)},null,8,["modelValue","onUpdate:modelValue","onBlur"])],!0)]),t.showDelete?(n.openBlock(),n.createElementBlock("div",Bp,[n.createVNode(Ue,{icon:"delete",flat:"",round:"",dense:"",color:"negative",class:"delete-btn",onClick:m=>s(f.id)},null,8,["onClick"])])):n.createCommentVNode("",!0)])]),_:3},8,["list"])):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:3},n.renderList(t.list,(f,h)=>(n.openBlock(),n.createElementBlock("div",{key:f.id,class:"static-item",style:n.normalizeStyle({background:t.background})},[n.createElementVNode("div",$p,[n.renderSlot(c.$slots,"default",{item:f,update:a,index:h},()=>[n.createVNode(pt,{modelValue:f.name,"onUpdate:modelValue":m=>f.name=m,outlined:"",dense:"",class:"content-input",onBlur:m=>a(f)},null,8,["modelValue","onUpdate:modelValue","onBlur"])],!0)]),t.showDelete?(n.openBlock(),n.createElementBlock("div",Mp,[n.createVNode(Ue,{icon:"delete",flat:"",round:"",dense:"",color:"negative",class:"delete-btn",onClick:m=>s(f.id)},null,8,["onClick"])])):n.createCommentVNode("",!0)],4))),128)),t.showAdd?(n.openBlock(),n.createElementBlock("div",Rp,[n.createVNode(Ue,{color:"secondary",label:"Добавить",icon:"add",class:"add-btn",onClick:o})])):n.createCommentVNode("",!0)],16))}}),As=E(Ip,[["__scopeId","data-v-27edbd1f"]]),Pp={class:"del-block_title"},Ap={class:"del-block_body"},Np=E(n.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,i)=>(n.openBlock(),n.createElementBlock("div",{class:"del-block",style:n.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[n.createElementVNode("div",Pp,[n.renderSlot(e.$slots,"title",{},void 0,!0)]),n.createElementVNode("div",Ap,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-58d048aa"]]),vp={title:"Редактирование",confirmLabel:"Сохранить",cancelLabel:"Отмена",width:"720px",disabled:!1,showConfirm:!0},Vp={class:"edit-dialog-header"},zp={class:"edit-dialog-title"},Tp={class:"edit-dialog-content"},Op={key:0,class:"edit-dialog-actions"},Ns=E(n.defineComponent({__name:"PEditDialog",props:n.mergeDefaults({modelValue:{type:Boolean},title:{},confirmLabel:{},cancelLabel:{},width:{},disabled:{type:Boolean},showConfirm:{type:Boolean}},vp),emits:["update:modelValue","confirm","close"],setup(t,{expose:e,emit:i}){const r=t,o=i,s=n.ref(!1);n.watch(()=>r.modelValue,h=>{s.value=h},{immediate:!0});const a=async()=>{o("confirm"),d()},d=()=>{o("close"),s.value=!1,o("update:modelValue",!1)},c=()=>{s.value&&d()};e({opened:s,toggle:()=>{s.value=!s.value,o("update:modelValue",s.value)}});const f=async()=>{await n.nextTick();const h=document.querySelector('.edit-dialog-content input, .edit-dialog-content textarea, .edit-dialog-content [tabindex]:not([tabindex="-1"])');h&&"focus"in h&&h.focus()};return(h,m)=>{const y=n.resolveDirective("close-popup");return n.openBlock(),n.createBlock(pr,{modelValue:n.unref(s),"onUpdate:modelValue":[m[0]||(m[0]=w=>n.isRef(s)?s.value=w:null),d],position:"top",onKeydown:[n.withKeys(a,["enter"]),n.withKeys(c,["escape"])],onShow:f},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"edit-dialog",style:n.normalizeStyle({width:r.width})},[n.createElementVNode("div",Vp,[n.createElementVNode("div",zp,n.toDisplayString(r.title),1),n.withDirectives(n.createVNode(Ue,{icon:"close",flat:"",dense:"",round:"",size:"sm"},null,512),[[y]])]),n.createElementVNode("div",Tp,[n.renderSlot(h.$slots,"default",{},void 0,!0)]),r.showConfirm?(n.openBlock(),n.createElementBlock("div",Op,[n.withDirectives(n.createVNode(Ue,{flat:"",label:r.cancelLabel,size:"sm"},null,8,["label"]),[[y]]),n.createVNode(Ue,{flat:"",label:r.confirmLabel,color:"primary",disable:r.disabled,size:"sm",onClick:a},null,8,["label","disable"])])):n.createCommentVNode("",!0)],4)]),_:3},8,["modelValue"])}}}),[["__scopeId","data-v-beb7df93"]]),br=E(n.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 i=t,r=e,o=a=>{a.key==="Escape"&&s()};n.onMounted(()=>{document.body.addEventListener("keydown",o)}),n.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",o)});const s=()=>{i.closable&&r("close")};return(a,d)=>{const c=n.resolveComponent("IconClose");return n.openBlock(),n.createElementBlock(n.Fragment,null,[t.show?(n.openBlock(),n.createElementBlock("div",{key:0,class:"blur",onClick:s})):n.createCommentVNode("",!0),t.show?(n.openBlock(),n.createElementBlock("div",{key:1,class:"modal-w",style:n.normalizeStyle({maxWidth:t.width,width:t.width,margin:t.margin,padding:t.padding,top:t.top,maxHeight:t.maxHeight})},[t.closable?(n.openBlock(),n.createElementBlock("div",{key:0,class:"icon-box",onClick:s},[n.createVNode(c,{size:"20px"})])):n.createCommentVNode("",!0),n.renderSlot(a.$slots,"default",{},void 0,!0)],4)):n.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ece06e7d"]]);function Fp(t){t.component("CollapseContainer",Ym),t.component("CollapseItem",np),t.component("VerticalCollapseContainer",op),t.component("PAdd",ap),t.component("PCard",Ps),t.component("PCrudList",As),t.component("PEditDialog",Ns),t.component("PModal",br),t.component("PContainer",lp),t.component("PContainerStickyHead",dp),t.component("PDel",Np)}const Dp={class:"btn-group"},vs=E(n.defineComponent({__name:"PAuthForm",props:{width:{type:String,default:"auto"},margin:{type:String,default:"auto"},padding:{type:String,default:"0"},background:{type:String,default:"inherit"}},emits:["submit"],setup(t,{emit:e}){const i=e,r=n.computed(()=>pe.Form.GetButtons()),o=n.useTemplateRef("fields"),s=async d=>{if(!d.isSubmit){pe.Form.SetChunk(d.GetChunk()),a();return}const c=pe.Form.Validate();if(c.length>0){ht.Notify.Error(c.join("<br/>"));return}i("submit")},a=()=>{if(!o.value)return;const d=o.value[0];d&&d.$refs.input.focus()};return n.onMounted(async()=>{await a()}),n.onBeforeUnmount(()=>{pe.Form.Reset()}),(d,c)=>(n.openBlock(),n.createElementBlock("div",{class:"auth-card",style:n.normalizeStyle({maxWidth:t.width,margin:t.margin,padding:t.padding,background:t.background})},[n.createVNode(gr,{string:n.unref(pe).Form.GetTitle(),"font-size":"18px"},null,8,["string"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(pe).Form.GetFields(),u=>(n.openBlock(),n.createBlock(pt,{id:u.id,key:u.id,ref_for:!0,ref_key:"fields",ref:o,modelValue:u.value,"onUpdate:modelValue":f=>u.value=f,autocomplete:"nope",type:u.IsPassword?"password":"text",placeholder:u.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder"]))),128)),n.createElementVNode("div",Dp,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(r),(u,f)=>(n.openBlock(),n.createBlock(Ue,{id:u.id,key:u.GetChunk(),disabled:n.unref(pe).Form.IsBlock,type:f===0?n.unref(J).Success:n.unref(J).Primary,skin:"base",text:u.text,margin:"10px 0 0 0",width:"100%",onClick:h=>s(u)},null,8,["id","disabled","type","text","onClick"]))),128))])],4))}}),[["__scopeId","data-v-b315f2c4"]]),Lp=n.defineComponent({__name:"PAuthModal",props:{width:{type:String,default:"320px"},margin:{type:String,default:"0"},padding:{type:String,default:"2vw"}},emits:["submit"],setup(t){const e=()=>{pe.Form.Reset(),pe.Modal.Close()};return(i,r)=>(n.openBlock(),n.createBlock(br,{show:n.unref(pe).Modal.Visible,closable:n.unref(pe).Modal.Closable,width:t.width,padding:t.padding,onClose:e},{default:n.withCtx(()=>[n.createVNode(vs,{margin:t.margin,padding:"0",onSubmit:r[0]||(r[0]=o=>i.$emit("submit"))},null,8,["margin"])]),_:1},8,["show","closable","width","padding"]))}}),Hp={class:"field"},_p=E(n.defineComponent({__name:"PNameEdit",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(t,{emit:e}){const i=t,r=e,o=n.ref(!1),s=n.ref(),a=n.ref(i.withName.name),d=n.ref(!1),c=()=>{d.value=!1},u=async()=>{a.value.trim(),i.withName.setName&&i.withName.setName(a.value),o.value=!o.value,r("submit")};return(f,h)=>{const m=n.resolveComponent("PString"),y=n.resolveComponent("PInput"),w=n.resolveComponent("InfoItem"),k=n.resolveComponent("PButton"),x=n.resolveComponent("el-form");return n.openBlock(),n.createBlock(x,{ref_key:"form",ref:s,style:{width:"100%"}},{default:n.withCtx(()=>[n.createVNode(w,{title:"Название","show-save-dialog":d.value,icon:"edit-title","with-hover":!0,close:o.value,width:"100%",onKeyupEnter:u,onAfterClose:c},{"open-inside-content":n.withCtx(()=>[n.createVNode(w,{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:n.withCtx(()=>[n.createElementVNode("div",Hp,[n.createVNode(y,{modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=C=>a.value=C),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])])]),_:1}),n.createVNode(k,{type:"admin",color:"blue",text:"Сохранить",onClick:u})]),default:n.withCtx(()=>[a.value.length?(n.openBlock(),n.createBlock(m,{key:0,string:a.value.length>60?a.value.slice(0,60)+"...":a.value},null,8,["string"])):(n.openBlock(),n.createBlock(m,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:1},8,["show-save-dialog","close"])]),_:1},512)}}}),[["__scopeId","data-v-4f7966cb"]]),Up=["onClick"],qp=E(n.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 i=t,r=e,o=n.ref(window.innerWidth),s=n.ref(),a=n.ref(Number(i.tabHeight.replace(/[^+\d]/g,""))),d=()=>{o.value=window.innerWidth,a.value=s.value?s.value.clientHeight:Number(i.tabHeight.replace(/[^+\d]/g,""))};n.onMounted(()=>window.addEventListener("resize",d)),n.onUnmounted(()=>window.removeEventListener("resize",d));const c=n.computed(()=>`calc(100% - ${a.value}px + 1px)`);n.onBeforeMount(()=>{i.menus.Select()});const u=f=>{i.menus.Select(f),r("select")};return(f,h)=>(n.openBlock(),n.createElementBlock("div",{class:"mainblock",style:n.normalizeStyle({height:`calc(100% - ${t.outTopMargin} - ${t.tabHeight}`,margin:t.margin,borderRadius:t.borderRadius})},[n.createElementVNode("div",{ref_key:"menuRef",ref:s,class:"top-menu",style:n.normalizeStyle({gridTemplateColumns:`repeat(auto-fit, minmax(${t.minMenuItemWidth}, 1fr))`})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.menus.items,(m,y)=>(n.openBlock(),n.createElementBlock("div",{key:y},[n.createElementVNode("div",{class:n.normalizeClass({"selected-tab":y===t.menus.idx,tab:y!==t.menus.idx}),style:n.normalizeStyle({minHeight:t.tabHeight,maxHeight:t.tabHeight}),onClick:w=>u(y)},n.toDisplayString(m.name),15,Up)]))),128))],4),n.createElementVNode("div",{class:"body-container",style:n.normalizeStyle({background:t.background,height:n.unref(c)})},[n.renderSlot(f.$slots,"default",{},()=>[t.menus.idx>-1?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(t.menus.GetComponent()),{key:0})):n.createCommentVNode("",!0)],!0)],4)],4))}}),[["__scopeId","data-v-caa5b5d8"]]),jp=["id"],Wp=["for"],Gp={class:"left-field"},Zp=["href","download"],Qp={key:1,class:"text-field__input"},Xp={class:"right-field"},Yp=n.defineComponent({__name:"PUploaderFile",props:{fileInfo:{type:Object,required:!1,default:new ye},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 i=t,r=e,o=de.GUID(),s=de.GUID(),a=()=>{const u=document.getElementById(o);if(!u.files)return;const f=u.files[0];if(!f)return;if(!c(f.name)){Ze.Error(`Загруженный файл должен быть в одном из форматов: ${i.formats.join(", ")}`);return}const h=new ye;h.setFile(f),h.url=URL.createObjectURL(f),r("upload",h)},d=()=>{r("remove")};n.onMounted(()=>{const u=document.getElementById(s);u&&(u.onclick=()=>{var f;return(f=document.getElementById(o))==null?void 0:f.click()})});const c=u=>{let f=Uo.Get(u);return!!i.formats.includes(f.toLowerCase())};return(u,f)=>{const h=n.resolveComponent("PString"),m=n.resolveComponent("PFlex"),y=n.resolveComponent("PButton");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:n.unref(o),type:"file",hidden:"",onChange:a},null,40,jp),n.createElementVNode("div",{class:"text-field",style:n.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},n.toDisplayString(t.label),9,Wp)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"field",style:n.normalizeStyle({borderColor:t.borderColor})},[n.createElementVNode("div",Gp,[n.createVNode(m,null,{default:n.withCtx(()=>[n.renderSlot(u.$slots,"default",{},void 0,!0),n.createVNode(h,{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?(n.openBlock(),n.createElementBlock("div",{key:0,class:"text-field__input",style:n.normalizeStyle({color:t.color})},[n.createElementVNode("a",{href:t.fileInfo.getFileUrl(),target:"_blank",download:t.fileInfo.originalName},[n.createElementVNode("div",null,n.toDisplayString(t.fileInfo.originalName),1)],8,Zp),n.createVNode(y,{skin:"text",type:"del",onClick:d},{default:n.withCtx(()=>[n.createVNode(Is,{size:"20px",margin:"0 5px"})]),_:1})],4)):(n.openBlock(),n.createElementBlock("div",Qp,[n.createVNode(h,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),n.createElementVNode("div",Xp,[n.createVNode(y,{id:n.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)}}}),Jp=E(Yp,[["__scopeId","data-v-8b73ee22"]]);function Vs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),i.push.apply(i,r)}return i}function Q(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?Vs(Object(i),!0).forEach(function(r){Fe(t,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Vs(Object(i)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))})}return t}function Fe(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Kp(t,e){if(t==null)return{};var i,r,o=function(a,d){if(a==null)return{};var c,u,f={},h=Object.keys(a);for(u=0;u<h.length;u++)c=h[u],d.indexOf(c)>=0||(f[c]=a[c]);return f}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)i=s[r],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function vt(t){return function(e){if(Array.isArray(e))return Cr(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,i){if(e){if(typeof e=="string")return Cr(e,i);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 Cr(e,i)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
23
|
-
|
|
21
|
+
`,a+1),c=d===-1?"":s.slice(d+1);String(o.stack).endsWith(c)||(o.stack+=`
|
|
22
|
+
`+s)}}catch{}}throw o}}_request(e,i){typeof e=="string"?(i=i||{},i.url=e):i=e||{},i=nn(this.defaults,i);const{transitional:o,paramsSerializer:r,headers:s}=i;o!==void 0&&Di.assertOptions(o,{silentJSONParsing:Ue.transitional(Ue.boolean),forcedJSONParsing:Ue.transitional(Ue.boolean),clarifyTimeoutError:Ue.transitional(Ue.boolean),legacyInterceptorReqResOrdering:Ue.transitional(Ue.boolean),advertiseZstdAcceptEncoding:Ue.transitional(Ue.boolean),validateStatusUndefinedResolves:Ue.transitional(Ue.boolean)},!1),r!=null&&(y.isFunction(r)?i.paramsSerializer={serialize:r}:Di.assertOptions(r,{encode:Ue.function,serialize:Ue.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Di.assertOptions(i,{baseUrl:Ue.spelling("baseURL"),withXsrfToken:Ue.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let a=s&&y.merge(s.common,s[i.method]);s&&y.forEach(["delete","get","head","post","put","patch","query","common"],C=>{delete s[C]}),i.headers=He.concat(a,s);const d=[];let c=!0;this.interceptors.request.forEach(function(B){if(typeof B.runWhen=="function"&&B.runWhen(i)===!1)return;c=c&&B.synchronous;const $=i.transitional||Vo;$&&$.legacyInterceptorReqResOrdering?d.unshift(B.fulfilled,B.rejected):d.push(B.fulfilled,B.rejected)});const u=[];this.interceptors.response.forEach(function(B){u.push(B.fulfilled,B.rejected)});let f,h=0,m;if(!c){const C=[Is.bind(this),void 0];for(C.unshift(...d),C.push(...u),m=C.length,f=Promise.resolve(i);h<m;)f=f.then(C[h++],C[h++]);return f}m=d.length;let w=i;for(;h<m;){const C=d[h++],B=d[h++];try{w=C(w)}catch($){B.call(this,$);break}}try{f=Is.call(this,w)}catch(C){return Promise.reject(C)}for(h=0,m=u.length;h<m;)f=f.then(u[h++],u[h++]);return f}getUri(e){e=nn(this.defaults,e);const i=bs(e.baseURL,e.url,e.allowAbsoluteUrls,e);return cs(i,e.params,e.paramsSerializer)}};y.forEach(["delete","get","head","options"],function(e){on.prototype[e]=function(i,o){return this.request(nn(o||{},{method:e,url:i,data:o&&y.hasOwnProp(o,"data")?o.data:void 0}))}}),y.forEach(["post","put","patch","query"],function(e){function i(o){return function(s,a,d){return this.request(nn(d||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}on.prototype[e]=i(),e!=="query"&&(on.prototype[e+"Form"]=i(!0))});let Jd=class Il{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(s){i=s});const o=this;this.promise.then(r=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](r);o._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(d=>{o.subscribe(d),s=d}).then(r);return a.cancel=function(){o.unsubscribe(s)},a},e(function(s,a,d){o.reason||(o.reason=new Zn(s,a,d),i(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const i=this._listeners.indexOf(e);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const e=new AbortController,i=o=>{e.abort(o)};return this.subscribe(i),e.signal.unsubscribe=()=>this.unsubscribe(i),e.signal}static source(){let e;return{token:new Il(function(r){e=r}),cancel:e}}};function Kd(n){return function(i){return n.apply(null,i)}}function eu(n){return y.isObject(n)&&n.isAxiosError===!0}const Do={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Do).forEach(([n,e])=>{Do[e]=n});function Ts(n){const e=new on(n),i=Wr(on.prototype.request,e);return y.extend(i,on.prototype,e,{allOwnKeys:!0}),y.extend(i,e,null,{allOwnKeys:!0}),i.create=function(r){return Ts(nn(n,r))},i}const xe=Ts(Xn);xe.Axios=on,xe.CanceledError=Zn,xe.CancelToken=Jd,xe.isCancel=ms,xe.VERSION=vo,xe.toFormData=Ri,xe.AxiosError=z,xe.Cancel=xe.CanceledError,xe.all=function(e){return Promise.all(e)},xe.spread=Kd,xe.isAxiosError=eu,xe.mergeConfig=nn,xe.AxiosHeaders=He,xe.formToJSON=n=>hs(y.isHTMLForm(n)?new FormData(n):n),xe.getAdapter=Ms.getAdapter,xe.HttpStatusCode=Do,xe.default=xe;const{Axios:Nw,AxiosError:Mw,CanceledError:Iw,isCancel:Vw,CancelToken:Tw,VERSION:Rw,all:Pw,Cancel:vw,isAxiosError:Aw,spread:zw,toFormData:Dw,AxiosHeaders:Fw,HttpStatusCode:Ow,formToJSON:_w,getAdapter:Lw,mergeConfig:Hw,create:Uw}=xe;var Jn=(n=>(n.GET="get",n.POST="post",n.PUT="put",n.DELETE="delete",n))(Jn||{});const Kn=(()=>{function n(){const c=r();return!(!c||c==="undefined")}function e(c){c.accessToken&&localStorage.setItem("access_token",c.accessToken),c.refreshToken&&localStorage.setItem("refresh_token",c.refreshToken)}function i(){const c=localStorage.getItem("user");return c?JSON.parse(c).id:""}function o(){const c=localStorage.getItem("user");if(c)return JSON.parse(c)}function r(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function d(c){if(!n())return;const u=Kn.getUser();u&&(u.human=c,localStorage.setItem("user",JSON.stringify(u)))}return{isAuth:n,setTokens:e,getAccessToken:r,getRefreshToken:s,getUserId:i,clearTokens:a,getUser:o,updateHuman:d}})();class Fo{constructor(e){l(this,"code",400);l(this,"err","");O.BuildClass(this,e)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(e,i){const o=e.config;if(e.response){if(e.response.status===401&&!o._retry)return o._retry=!0,i.defaults.headers.common.token=Kn.getAccessToken(),e.config.headers.token=Kn.getAccessToken(),e.config.baseURL=void 0,i.request(o);if(e.response.status>=500){if(e.response.data==="неверный логин или пароль"){Ct.Error("Неверный логин или пароль");return}Ct.Error("Ошибка на сервере, попробуйте позже")}if(e.response.status>=400&&e.response.status<500){const r=new Fo(e.response.data).getErr();r&&Ct.Error(r)}return Promise.reject(e)}}}const Nn=xe.create();Nn.interceptors.response.use(n=>n,async n=>await Fo.Handle(n,Nn));class ei{static async Get(e,i,o){return await Nn({method:Jn.GET,url:e,headers:i,responseType:o})}static async Post(e,i,o,r){return i["Content-Type"]="multipart/form-data",await Nn({method:Jn.POST,url:e,headers:i,responseType:o,data:r})}static async Put(e,i,o){return i["Content-Type"]="multipart/form-data",await Nn({method:Jn.PUT,url:e,headers:i,data:o})}static async Delete(e,i){return await Nn({method:Jn.DELETE,url:e,headers:i})}}class Fi{constructor(e){l(this,"name","");O.BuildClass(this,e)}static Set(){}static Get(e,i){const o=sessionStorage.getItem(e);if(o){const r=JSON.parse(o),s=new Date,a=new Date(r.time),d=s.getTime()-a.getTime();return Math.round(d/6e4)>(i||10)?null:r.data}else return null}static async TryGet(e,i,o){let r;return r=Fi.Get(e,o),r||(r=await i()),r}}var Oo=(n=>(n.ContentType="Content-Type",n.Token="token",n))(Oo||{}),Rs=(n=>(n.ApplicationJson="application/json",n.MultipartFormData="multipart/form-data",n))(Rs||{});const pe=class pe{static Setup(e="http://localhost",i,o="api"){this.baseUrl=re.BuildSafeUrl(e,i,o),this.host=e,this.apiVersion=o}static newWebSocket(e){const i=this.host.replace("http","ws")+"/ws/"+e;return new WebSocket(i)}static download(e,i){const o=pe.getDownloadFileName(e,i.headers);if(!(i.data instanceof Blob)){console.warn("download: response data is not a Blob");return}const r=URL.createObjectURL(i.data),s=document.createElement("a");s.href=r,s.setAttribute("download",o),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click()}static getDownloadFileName(e,i){if(e)return e;const o=i["content-disposition"];if(!o)return"file";const r=o.indexOf('"')+1,s=o.lastIndexOf('"'),a=o.substring(r,s);return a||"file"}static getHeaders(e){const i=kt.Get(lt.AccessToken);return e||(e=pe.headers),i&&(e[Oo.Token]=i),e??pe.headers}static returnResponse(e,i){if(i)return e!=null&&e.isBlob?pe.download(e.downloadFileName,i):i.data}static async Get(e){return pe.returnResponse(e,await ei.Get(pe.buildUrl((e==null?void 0:e.query)??""),pe.getHeaders(e==null?void 0:e.headers),pe.getResponseType(e==null?void 0:e.isBlob)))}static async Post(e){return pe.returnResponse(e,await ei.Post(pe.buildUrl(e==null?void 0:e.query),pe.getHeaders(e==null?void 0:e.headers),pe.getResponseType(e.isBlob),pe.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Put(e){return pe.returnResponse(e,await ei.Put(pe.buildUrl(e==null?void 0:e.query),pe.getHeaders(e==null?void 0:e.headers),pe.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Delete(e){return pe.returnResponse(e,await ei.Delete(pe.buildUrl(e==null?void 0:e.query),pe.getHeaders(e==null?void 0:e.headers)))}static async Subscribe(e){const{query:i}=e;return new EventSource(pe.buildUrl(i))}static buildUrl(e=""){try{return wo(this.baseUrl,e)}catch{throw new Error(`Invalid base URL: ${this.baseUrl}`)}}static getResponseType(e){return e?"blob":"json"}static createFormDataPayload(e,i){const o=new FormData;if(o.append("form",JSON.stringify(e)),i)for(const r of i)r.file&&o.append(r.id??"files",r.file,r.originalName);return o}};l(pe,"baseUrl",""),l(pe,"apiVersion","api"),l(pe,"host",""),l(pe,"headers",{[Oo.ContentType]:Rs.ApplicationJson});let Ce=pe;const v=(n,e)=>{const i=n.__vccOpts||n;for(const[o,r]of e)i[o]=r;return i},tu={},nu={style:{"text-align":"center"}};function iu(n,e){return t.openBlock(),t.createElementBlock("div",nu,[...e[0]||(e[0]=[t.createElementVNode("h1",null,"Страница не найдена",-1)])])}const Ps=v(tu,[["render",iu]]),ou=[{path:"/:pathMatch(.*)*",name:"NotFound",component:Ps}],ft=class ft{static Setup(e,i=""){this.router=e,this.title=i,this.ChangeDocumentTitle(),this.AddRoutes(ou)}static Get(){return this.router}static AddRoutes(e){e.forEach(i=>{this.Get().addRoute(i)})}static async To(e){await this.Get().push(e)}static async ToHome(){}static async Replace(e){await this.Get().replace(e)}static Id(){return ft.GetStringParam("id")}static Slug(){return ft.GetStringParam("slug")}static async Back(){this.Get().go(-1)}static GetQid(){return ft.GetStringQueryParam("qid")}static Route(){var e;return(e=this.Get())==null?void 0:e.currentRoute.value}static RouterPushBlank(e){const i=this.Get().resolve({path:e});window.open(i==null?void 0:i.href,"_blank")}static GetPath(){var i;const e=(i=ft.Route())==null?void 0:i.path.split("/");return!e||e.length<=0?"":e[e.length-1]}static async ToAdmin(e){if(!e){await this.Get().push("/admin");return}let i=e;i[0]==="/"&&(i=e.substring(1)),await ft.To(`/admin/${i}`)}static GetStringQueryParam(e){return String(this.Route().query[e])}static GetNumberQueryParam(e){return Number(this.Route().query[e]??0)}static GetStringParam(e){var i;return(i=this.Route())==null?void 0:i.params[e]}static SetQueryParam(e,i){const o=new URL(window.location);o.searchParams.set(e,String(i)),history.replaceState(null,"",o)}static Resolve(e){return this.Get().resolve(e)}};l(ft,"router"),l(ft,"title",""),l(ft,"ChangeDocumentTitle",(e="")=>{let i=ft.Route().meta.title??e;i&&(i=" | "+i),document.title=ft.title+i});let xt=ft;class ce{constructor(e,i){l(this,"items",t.reactive([]));l(this,"item");l(this,"options",t.reactive([]));l(this,"count",t.ref(0));l(this,"classConstructor");l(this,"url","");l(this,"searchStr",t.ref(""));this.classConstructor=e,this.item=t.reactive(new this.classConstructor),this.url=i}Set(e){Object.assign(this.item,new this.classConstructor(e))}getUrl(e){return e?`${this.url}/${e}`:this.url}async GetOptions(e="name",i="id"){const o=`${this.getUrl()}/options/${e}/${i}`;try{const r=await Ce.Get({query:o});r&&(this.options.splice(0,this.options.length),this.options.push(...r))}catch(r){console.warn("GetOptions failed:",r)}}async GetAll(e){try{let i;const o=Ce.Get;e&&e.withCache?i=await Fi.TryGet(this.getUrl(),o):i=await o({query:this.getUrl()}),Array.isArray(i)?this.SetAll(i):this.SetAllWithCount(i)}catch(i){console.warn("GetAll failed:",i)}}async Get(e){try{e||(e=xt.Id()),this.Set(await Ce.Get({query:this.getUrl(e)}))}catch(i){console.warn("Get failed:",i)}}async GetBySlug(e){try{e||(e=xt.Slug()),this.Set(await R.H.HttpClient.Get({query:this.getUrl("by-slug/"+e)}))}catch(i){console.warn("GetBySlug failed:",i)}}async FTSP(e){var i;try{const r=((e==null?void 0:e.ftsp)??At.Get()).clearForHTTP(),s={payload:{ftsp:r},query:this.getUrl("ftsp")},a=await Ce.Post(s);if(!a||!a.ftsp)return;if(Array.isArray(a.data))this.SetAll(a.data);else{if(r.p.append){this.AppendToAll((i=a.data)==null?void 0:i.items);return}this.SetAllWithCount(a.data)}}catch(o){console.warn("FTSP failed:",o)}}async Create(e){try{const i=e??this.item,o={payload:i,query:this.getUrl()};return i.getFileInfos&&(o.fileInfos=i.getFileInfos()),await Ce.Post(o)}catch(i){console.warn("Create failed:",i)}}async CreateAndSet(e){const i=await this.Create(e);this.Set(i)}async CreateMany(e){if(!e)return;const i=[];e.forEach(o=>{i.push(new Promise(()=>this.Create(o)))}),Promise.all(i)}async Update(e){try{const i=e??this.item,o={query:this.getUrl(`${i.id}`),payload:i};return i.getFileInfos&&(o.fileInfos=i.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await Ce.Put(o)}catch(i){console.warn("Update failed:",i)}}async UpdateAndSet(e){const i=await this.Update(e);this.Set(i)}async UpdateAndReset(e){await this.Update(e??this.item),this.Set()}async Remove(e){if(e)try{await Ce.Delete({query:this.getUrl(`${e}`)}),this.RemoveItem(e)}catch(i){console.warn("Remove failed:",i)}}async UpdateMany(e){if(e||(e=this.items),!e)return;const i=[];e.forEach(o=>{i.push(new Promise(()=>this.Update(o)))}),Promise.all(i)}SetAll(e){this.items.splice(0,this.items.length),e&&this.items.push(...e.map(i=>new this.classConstructor(i)))}SetAllWithCount(e){this.SetAll(e.items),this.count.value=e.count}RemoveItem(e){const i=this.items.findIndex(o=>o.id===e);i<0||this.items.splice(i,1)}AppendToAll(e){if(e){if(Array.isArray(e)){const i=e.map(o=>new this.classConstructor(o));this.items.push(...i);return}this.items.push(new this.classConstructor(e))}}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){O.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(e){if(e){if(Array.isArray(e)){const i=e.map(o=>new this.classConstructor(o));this.items.unshift(...i);return}this.items.unshift(new this.classConstructor(e))}}get Items(){return this.items}get ItemsFiltered(){return this.searchStr.value.trim()?this.Items.filter(e=>R.H.Strings.SearchInFields(this.searchStr.value,e.SearchFields())):this.Items}get Options(){return this.options}get Item(){return this.item}get Count(){return this.count}get SearchStr(){return this.searchStr}}function ru(n,e){n=="left"&&e.next(),n=="right"&&e.prev()}const su=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class au{static GetRandColor(e){return vt.GetRandEL(e??su)}}function vs(n,e){const i=[],o=e||ct.Asc,r=o===ct.Asc?ct.Desc:ct.Asc;return Object.values(n).forEach(s=>{i.push(s(o)),i.push(s(r))}),i.length>0&&!i.some(s=>s.default)&&(i[0].default=!0),e&&i.forEach(s=>{s.default&&(s.default=s.order===e)}),i}let lu=class{constructor(){l(this,"startHour",9);l(this,"endHour",19);l(this,"timelinePxHeight",50);l(this,"timelineStep",qn.FiveMinutes);l(this,"activeTime","");l(this,"activeObjectId","");l(this,"dragged",!1);l(this,"draggedStartTime","");l(this,"draggedEndTime","");l(this,"timelines",Ci[qn.FiveMinutes])}startDrag(e,i){this.draggedStartTime=e,this.draggedEndTime=i,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Ci[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return vt.GenerateNumsRange(this.startHour,this.endHour)}};const _o=n=>n===8||n===46,cu=n=>n>46&&n<58,du=n=>n>34&&n<41,uu=n=>n+".",fu=(n,e,i)=>{_o(e)||du(e)||(!cu(e)||i>9)&&n.preventDefault()};function hu(n,e){if(e>8){let i=n.substring(0,2).replace(".","1");Number(i)>31&&(i="31");let o=n.substring(3,5).replace(".","1");Number(o)>12&&(o="12");let r=n.substring(6,10).replace(".","1");Number(r)>2100&&(r="2100"),n=i+"."+o+"."+r}return n}function mu(n){const e=n.keyCode;let i=n.srcElement.value;const o=i.length;fu(n,e,o),!_o(e)&&(o===2||o===5)&&(i=uu(i));const r=n.srcElement.value+String.fromCharCode(n.which);if(_o(e)){n.srcElement.value=i;return}i.length===0&&Number(r)>3&&(i="3",n.preventDefault()),i.length===1&&Number(r)>31&&(i="31",n.preventDefault()),r.length===5&&Number(r.substring(3,5))>12&&(i=i.substring(0,3)+"12",n.preventDefault()),i=hu(i,o),n.srcElement.value=i}const pu=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],gu="ru-RU";class Et{constructor(){l(this,"locale","ru-RU")}static Format(e,i){if(!e)return"";const o={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return i&&(o.year=i.year||i.year===void 0?i.year:o.year,o.month=i.month||i.month===void 0?i.month:o.month,o.day=i.day||i.day===void 0?i.day:o.day,o.hour=i.hour??o.hour,o.minute=i.minute??o.minute),Intl.DateTimeFormat(gu,o).format(new Date(e))}static FormatWithTime(e){return Et.Format(e,{month:"2-digit",day:"2-digit",year:"numeric",hour:"numeric",minute:"numeric"})}static FromRuStr(e){const i=e.split(".");return new Date(`${i[2]}-${i[1]}-${i[0]}`)}static GetPeriod(e,i,o){return`${this.Format(e,o)}-${this.Format(i,o)}`}static GetShortDayName(e){return e?pu[e.getDay()]:""}static GetCurrentWeekPeriod(e){const i=new Date,o=new Date(i.getFullYear(),i.getMonth(),i.getDate()-i.getDay()+1),r=new Date(i.getFullYear(),i.getMonth(),o.getDate()+7);return this.GetPeriod(o,r,e||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(e,i){const o=new Date,r=new Date,s=Et.SplitHourTime(e),a=Et.SplitHourTime(i);return o.setHours(s[0],s[1],0,0),r.setHours(a[0],a[1],0,0),(r.getTime()-o.getTime())/1e3/60}static HourTimeinMunutes(e){const i=Et.SplitHourTime(e);return i[0]*60+i[1]}static SplitHourTime(e){const i=e.split(":");return[Number(i[0]),Number(i[1])]}static AddMinutesToHM(e,i){const o=new Date,r=Et.SplitHourTime(e);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+i*6e4),a=s.getHours(),d=s.getMinutes();return`${a}:${d}`}static GetMonthsDiff(e,i){return i.getMonth()-e.getMonth()+12*(i.getFullYear()-e.getFullYear())}static StringToDate(e){const i=e.split(".");return new Date(`${i[2]}-${i[1]}-${i[0]}`)}static GetDateOrToday(e){return e?e.date:new Date}static InPeriod(e,i,o){return new Date(e)>=new Date(i)&&new Date(e)<=new Date(o)}static GetDatesFromPeriod(e,i){const o=[new Date(e)];let r=e;for(;r<=i;)r=Et.AddDays(r,1),o.push(r);return o}static AddDays(e,i){const o=new Date(e);return o.setDate(o.getDate()+i),o}static Eq(e,i){return e.getTime()===i.getTime()}}class yu{constructor(){l(this,"dragged",!1);l(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(e){this.dragged=!0,e&&e.dataTransfer&&e.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class As{static Get(e){const i=e.split(".");return i[i.length-1]}}const wu=(()=>{function n(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 i(s,a){const d=localStorage.getItem(`${s}_favourite`);if(!d){n(s,[a]);return}const c=d.split(",");c.push(a),n(s,c)}function o(s,a){const d=localStorage.getItem(`${s}_favourite`);if(!d)return;const c=d.split(",").filter(u=>u!==a);n(s,c)}function r(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:i,removeFromFavourite:o,setFavourite:n,isFavourite:e,clearFavourite:r}})();class bu{constructor(){l(this,"list",[]);l(this,"defaultSortModel");l(this,"changeFlag",!1)}Set(e){this.Reset(),e&&(Array.isArray(e)?this.list=e:this.list=vs(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 rn=new bu;function Su(){const n=t.ref(!1),e=t.ref(!1);return{confirmLeave:n,saveButtonClick:e,beforeWindowUnload:s=>{n.value&&s.preventDefault()},formUpdated:()=>{n.value=!0},showConfirmModal:(s,a)=>{n.value&&!e.value?s():a()}}}const Cu=(()=>{const n=(s,a)=>t.onBeforeMount(async()=>{R.F.FTSP.Get().reset(),rn.Set(a==null?void 0:a.sortsLib),await s()}),{saveButtonClick:e,showConfirmModal:i}=Su(),o=s=>Fl.onBeforeRouteLeave((a,d,c)=>{i((s||r)(),c)}),r=s=>async()=>{e.value=!0;try{s&&await s()}catch{return}};return{onBeforeMount:n,onBeforeRouteLeave:o,submit:r}})();function zs(n,e){const i=[];if(n)for(let o=0;o<Math.ceil(n.length/e);o++)i[o]=n.slice(o*e,o*e+e);return i}class Lo{constructor(){l(this,"items",[]);l(this,"idx",0);l(this,"key","")}preSelect(){const e=xt.GetStringQueryParam(this.key);if(!e||e==="undefined"){this.Select(0);return}const i=this.items.findIndex(o=>o.slug===e);i>-1&&this.Select(i)}static Create(e,i){const o=new Lo;return o.key=e,o.items=i,o.items.length&&o.preSelect(),o}Select(e){if(this.items.length){if(e===void 0)return this.preSelect();this.idx=e,xt.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 lo=class lo{static Format(e){let i=e;if(!i)e=i;else{(i[0]==="7"||i[0]==="8")&&i.length!==1&&(i=i.slice(1));const o=i.replace(/\+7|[^\d]/g,""),r=o.length;switch(!0){case r===0:e="";break;case(r===1&&i.length===1&&o==="7"):case(r===1&&i.length===1&&o==="8"):e="+7 (";break;case r<4:e=`+7 (${o}`;break;case r<7:e=`+7 (${o.slice(0,3)}) ${o.slice(3)}`;break;case r<9:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}`;break;default:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}-${o.slice(8,10)}`;break}}return e}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};l(lo,"validatePhone",(e,i,o)=>{lo.getPhoneRegExp().test(i)||!i?o():o(new Error("Пожалуйста, введите корректный номер телефона"))});let Ho=lo;class ku{static Count(e){const i=e.filter(s=>s.rating!==0);let o=0;i.forEach(s=>o=o+s.rating);const r=o/i.length;return isNaN(r)?0:Number((o/i.length).toFixed(2))}}class xu{static async Auth(e){e&&e()}static Dev(){}}class Eu{constructor(){l(this,"startHour",9);l(this,"startHM",`${this.startHour}:00`);l(this,"endHour",19);l(this,"endHM",`${this.endHour}:00`);l(this,"timelinePxHeight",50);l(this,"timelineStep",qn.FiveMinutes);l(this,"timelines",Ci[qn.FiveMinutes])}periodIsCorrect(e,i){return ie.GtOrEq(e,this.startHM)&&ie.GtOrEq(this.endHM,i)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Ci[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return vt.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(e,i,o,r){return r.filter(s=>s.id!==o).every(s=>!ie.PeriodsIntersects(e,i,s.startTime,s.endTime))}sortByStartTime(e){e.sort((i,o)=>ie.HMtoM(i.startTime)-ie.HMtoM(o.startTime))}}const Bu=-68;function $u(n,e){if(!n){document.body.scrollTo({top:0,behavior:"smooth"});return}const i=document.querySelector(n),o=e??Bu;let r=0;i&&(r=i.getBoundingClientRect().top+o+document.body.scrollTop),r&&document.body.scrollTo({top:r,behavior:"smooth"})}class Nu{static Sort(e){e.forEach((i,o)=>i.order=o)}}class Oi{static Wait(e,i){return new Promise(o=>setTimeout(()=>o(i),e))}static WaitS(e,i){return Oi.Wait(ie.S(e),i)}static WaitM(e,i){return Oi.Wait(ie.M(e),i)}}function Mu(n,e){let i=!0;return n.value.validate(o=>(o||(i=!1),i)),i}const Iu=n=>new Promise(e=>{if(document.querySelector(n))return e(document.querySelector(n));const i=new MutationObserver(()=>{document.querySelector(n)&&(i.disconnect(),e(document.querySelector(n)))});i.observe(document.body,{childList:!0,subtree:!0})});let Vu=class Rr{constructor(e){l(this,"id");l(this,"message","");l(this,"userName");l(this,"createdOn",new Date);l(this,"chatId");l(this,"type","message");O.BuildClass(this,e)}static Create(e,i,o,r){const s=new Rr;return s.id=Ht(),s.chatId=e,s.message=o,s.userName=r,s}static CreatePingMessage(){const e=new Rr;return e.type="ping",e.id=Ht(),e}isMessage(){return this.type==="message"||this.type===""}};const Tu="";class Ru{constructor(e="",i="",o="set"){l(this,"client");l(this,"endpoint","");l(this,"query","");l(this,"period",2e4);O.BuildClass(this,{endpoint:e,query:i,mutation:o}),this.connect(),this.ping()}send(e){!this.client||this.client.readyState!==1||this.client.send(e)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(Vu.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,Tu.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 Pu=(oe=class{},l(oe,"Arrays",vt),l(oe,"Axios",ei),l(oe,"BaseStore",ce),l(oe,"Cache",Fi),l(oe,"Classes",O),l(oe,"CarouselSwipe",ru),l(oe,"Color",au),l(oe,"CreateSortModels",vs),l(oe,"Cursor",lu),l(oe,"DateMask",mu),l(oe,"Dates",Et),l(oe,"Dragger",yu),l(oe,"Extension",As),l(oe,"Favourite",wu),l(oe,"Hooks",Cu),l(oe,"HttpClient",Ce),l(oe,"Id",De),l(oe,"MakeCarousel",zs),l(oe,"Period",go),l(oe,"PhoneService",Ho),l(oe,"Rating",ku),l(oe,"Router",xt),l(oe,"RouterGuard",xu),l(oe,"Scheduler",Eu),l(oe,"Scroll",$u),l(oe,"Sorter",Nu),l(oe,"Static",bo),l(oe,"Strings",re),l(oe,"Time",ie),l(oe,"Timer",Oi),l(oe,"Token",Kn),l(oe,"Menus",Lo),l(oe,"validate",Mu),l(oe,"WaitElement",Iu),l(oe,"WebSocketClient",Ru),oe);class vu{constructor(){l(this,"limit",25);l(this,"count",0);l(this,"curPage",1);l(this,"storeModule","")}setCurPage(e){this.curPage=e}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const Ds=new vu;var Fs=(n=>(n.TableList="tableList",n.Default="",n))(Fs||{}),Bt=(n=>(n.None="None",n.Next="Next",n.Prev="Prev",n))(Bt||{}),Os=(n=>(n.Year="Год",n.Month="Месяц",n.Week="Неделя",n.Day="День",n))(Os||{}),_s=(n=>(n.YouTube="YouTube",n.VK="VK",n.Instagram="Instagram",n.Facebook="Facebook",n))(_s||{}),Uo=(n=>(n.simple="simple",n.oneToMany="oneToMany",n.manyToMany="manyToMany",n))(Uo||{});const Au=Object.freeze(Object.defineProperty({__proto__:null,AdminLayout:Fs,Animations:Bt,CalendarScale:Os,LocalStoreKeys:lt,SocialTypes:_s,ValueRelation:Uo},Symbol.toStringTag,{value:"Module"}));let zu=class{async Login(e=Ae.Form.GetValues()){const i=await Ce.Post({query:"auth/login",payload:e});if(!i)throw"Ошибка авторизации";Ae.Status.SetState(i)}async LoginAs(e){await Ce.Post({query:"auth/login-as",payload:{email:e}})}async Register(e=Ae.Form.GetValues()){const i=await Ce.Post({query:"auth/register",payload:e});if(!i)throw i}async RestorePassword(e=Ae.Form.GetValues()){await Ce.Post({query:"auth/restore-password",payload:e})}async PasswordChange(e=Ae.Form.GetValues()){e.id=xt.GetStringParam("userId"),await Ce.Put({query:"auth/password-change",payload:e})}async RefreshToken(){await Ce.Post({query:"auth/refresh-token",payload:{refreshToken:Kn.getRefreshToken()}})}async CheckUuid(e){await Ce.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}async ConfirmEmail(e){await Ce.Get({query:`auth/confirm-email/${e}`})}async EmailIsConfirm(e){await Ce.Get({query:`auth/email-is-confirm/${e}`})}};const Du=new zu;var Fu=Object.defineProperty,_i=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&Fu(e,i,r),r};const ti=class Vl{constructor(e){l(this,"id");l(this,"description","");l(this,"time","");l(this,"latitude","");l(this,"longitude","");l(this,"emails",[]);l(this,"postAddresses",[new ki]);l(this,"phones",[]);l(this,"websites",[]);O.BuildClass(this,e)}addEmail(){const e=Jt.Create();return e.contactId=this.id,this.emails.push(e),e}addPhone(){const e=Kt.Create();return e.contactId=this.id,this.phones.push(e),e}static Create(){const e=new Vl;return e.id=De.UUID(),e}removeEmail(e){O.RemoveFromClassById(e,this.emails)}removePhone(e){O.RemoveFromClassById(e,this.phones)}addPostAddress(){this.postAddresses.push(new ki)}addWebsite(){this.websites.push(new So)}pushFirst(){this.emails.length||this.emails.push(new Jt),this.phones.length||this.phones.push(new Kt)}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}};_i([O.GetClassConstructor(Jt)],ti.prototype,"emails"),_i([O.GetClassConstructor(ki)],ti.prototype,"postAddresses"),_i([O.GetClassConstructor(Kt)],ti.prototype,"phones"),_i([O.GetClassConstructor(So)],ti.prototype,"websites");let Ls=ti,Ou=class extends ce{constructor(){super(Ls,"contacts")}};const _u=new Ou;let Lu=class extends ce{constructor(){super(Jt,"emails")}};const Hu=new Lu;class qo{constructor(e){l(this,"id");l(this,"ftsp");l(this,"name","");O.BuildClass(this,e)}static Create(e){const i=new qo;return i.id=De.UUID(),i.ftsp=JSON.stringify(e),i}}let Uu=class extends ce{constructor(){super(qo,"ftsp-presets")}};const qu=new Uu;let ju=class extends ce{constructor(){super(Ur,"humans")}};const Wu=new ju;let Gu=class extends ce{constructor(){super(Kt,"phones")}};const Qu=new Gu;class Yu{constructor(e){l(this,"id");l(this,"nameRus","");O.BuildClass(this,e)}}var Xu=Object.defineProperty,Zu=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&Xu(e,i,r),r};class Hs{constructor(e){l(this,"id");l(this,"nameRus","");l(this,"fields",[]);O.BuildClass(this,e)}}Zu([O.GetClassConstructor(Yu)],Hs.prototype,"fields");let Ju=class extends ce{constructor(){super(Hs,"schemas")}};const Ku=new Ju;class Us{constructor(e){l(this,"id","");l(this,"value","");l(this,"label","");l(this,"key","");l(this,"description","");l(this,"route","");l(this,"searchElementMetas",[]);O.BuildClass(this,e)}}class ef{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");O.BuildClass(this,e)}}var tf=Object.defineProperty,qs=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&tf(e,i,r),r};class Mn{constructor(e){l(this,"id");l(this,"key","");l(this,"label","");l(this,"order",0);l(this,"route","");l(this,"table","");l(this,"active",!0);l(this,"searchColumn","");l(this,"descriptionColumn","");l(this,"labelColumn","");l(this,"valueColumn","");l(this,"options",[]);l(this,"searchGroupMetaColumns",[]);O.BuildClass(this,e)}}qs([O.GetClassConstructor(Us)],Mn.prototype,"options"),qs([O.GetClassConstructor(ef)],Mn.prototype,"searchGroupMetaColumns");class jo{constructor(e){l(this,"query","");l(this,"key","");l(this,"params","");l(this,"suggester",!1);l(this,"mustBeTranslated",!0);l(this,"options",[]);l(this,"searchGroupId","");l(this,"searchGroups",[]);l(this,"searchGroup",new Mn);l(this,"searchObjects",[]);l(this,"pagination",new Bi);l(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(i=>new Mn(i))),e.searchGroup&&(this.searchGroup=new Mn(e.searchGroup)),e.options&&(this.options=e.options.map(i=>new Us(i))),this.count=e.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(e){const i=this.searchGroups.find(o=>o.id===e);i?this.searchGroup=i:this.searchGroup=new Mn}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(xt.Route().query.groupId)}setQuery(){const e=xt.Route().query.query;e&&(this.query=e)}}let nf=class{constructor(){l(this,"isSearchDrawerOpen",t.ref(!1));l(this,"searchModel",t.reactive(new jo));l(this,"searchGroups",t.reactive([]));l(this,"count",0)}async Search(e){const i=await Ce.Get({query:`search?key=${e.key}&query=${e.query}`});i&&i.searchGroup&&i.searchGroup.options.forEach(o=>{e.searchObjects.push({id:o.id,value:o.value,label:o.label,description:o.description})})}async mainSearch(e){this.SetSearchModel(await Ce.Get({query:`search/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(o=>{o.options=[]});const i=await Ce.Get({query:`search/main?searchModel=${e.toUrl()}`});return this.SetSearchModel(i),i}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new jo}SetSearchModel(e){e&&(this.searchModel=new jo(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const Wo=new nf;let of=class extends ce{constructor(){super(xi,"users-accounts")}};const rf=new of;var qe=(n=>(n.String="string",n.Text="text",n.Number="number",n.Date="date",n.DateTime="dateTime",n.Radio="radio",n.Set="set",n.Boolean="boolean",n.Files="files",n.File="file",n.MatrixRadio="matrixRadio",n.MatrixSet="matrixSet",n))(qe||{});class js{constructor(e){l(this,"id");l(this,"name",qe.String);l(this,"valueRelation",Uo.simple);O.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===qe.Radio)return"RadioProp";if(this.name===qe.Set)return"SetProp";if(this.name===qe.Number)return"NumberProp";if(this.name===qe.String)return"StringProp"}}let sf=class extends ce{constructor(){super(js,"value-types")}};const af=new sf;let Ws=(ot=class{},l(ot,"Auth",Du),l(ot,"Contacts",_u),l(ot,"Emails",Hu),l(ot,"FileInfos",new ce(Ge,"file-infos")),l(ot,"FTSPPresets",qu),l(ot,"Humans",Wu),l(ot,"Phones",Qu),l(ot,"Schemas",Ku),l(ot,"UserAccounts",rf),l(ot,"ValueTypes",af),l(ot,"Search",Wo),ot);var Ut=(n=>(n.XS="xs",n.S="s",n.M="m",n.L="l",n.XL="xl",n))(Ut||{});let lf=(Yt=class{},l(Yt,"Orders",ct),l(Yt,"Sizes",Ut),l(Yt,"Statuses",me),l(Yt,"DataTypes",Te),l(Yt,"ValueTypes",qe),l(Yt,"Operators",Se),Yt);class cf{constructor(){l(this,"title","");l(this,"buttons",[]);l(this,"editTitle",t.ref(!1));l(this,"showEdit",t.ref(!1))}Set(e="",i){typeof e=="function"?this.title=e():typeof e=="string"?this.title=e:this.title=e.value,this.buttons=i}}const df=new cf;class uf{constructor(){l(this,"menu",[]);l(this,"path","");l(this,"isOpen",!0);l(this,"filterString","")}Set(e){this.menu=e}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(e=>{var i;return re.SearchIn(e.name,this.filterString)||((i=e.children)==null?void 0:i.some(o=>re.SearchIn(o.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(e){this.path=e}GetPath(){return this.path}SetFilter(e){this.filterString=e}GetChildren(e){var i;return this.filterString?(i=e.children)==null?void 0:i.filter(o=>re.SearchIn(o.name,this.filterString)):e.children}}const ff=new uf;class hf{constructor(){l(this,"Menu",t.reactive(ff));l(this,"Head",t.reactive(df))}}const mf=new hf,Gs="Да",Qs="Нет";class pf extends Sn{constructor(){super(...arguments);l(this,"confirmButtonText",Gs);l(this,"cancelButtonText",Qs);l(this,"persistent",!0);l(this,"resolve");l(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(i){const o=typeof i=="string"?{text:i}:i;return this.confirmButtonText=o.confirmButtonText??Gs,this.cancelButtonText=o.cancelButtonText??Qs,this.persistent=o.persistent??!0,super.showMessage(o,this.type),new Promise((r,s)=>{if(this.resolve=r,this.reject=s,typeof V.Dialog.create!="function"){console.warn("[sprof] Quasar Dialog plugin is not installed. Add `app.use(Quasar, { plugins: { Dialog } })` (imported from 'quasar') to your app."),this.Settle(()=>s({type:"cancel"}));return}const a=V.Dialog.create({title:this.title||void 0,message:this.text,html:Sn.ContainsHtml(this.text),persistent:this.persistent,ok:{label:this.confirmButtonText,flat:!0,color:"primary"},cancel:{label:this.cancelButtonText,flat:!0,color:"warning"}});a.onOk(()=>this.Settle(()=>r({type:"submit"}))),a.onCancel(()=>this.Settle(()=>s({type:"cancel"}))),a.onDismiss(()=>this.Settle())})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.Settle(()=>{var i;return(i=this.resolve)==null?void 0:i.call(this,!0)})}Cancel(){this.Settle(()=>{var i;return(i=this.reject)==null?void 0:i.call(this)})}Settle(i){i==null||i(),this.resolve=void 0,this.reject=void 0}}const gf=new pf;class yf{constructor(){l(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class wf extends yf{Show(){super.show()}Hide(){super.hide()}}const bf=new wf;class qt{}l(qt,"Admin",mf),l(qt,"Dialog",gf),l(qt,"Loading",bf),l(qt,"Notify",Ct),l(qt,"Btn",Zt),l(qt,"Input",Ar);class R{}l(R,"Auth",t.reactive(Ae)),l(R,"UI",t.reactive(qt)),l(R,"Paginator",t.reactive(Ds)),l(R,"S",Ws),l(R,"H",Pu),l(R,"C",ic),l(R,"T",lf),l(R,"I",Au),l(R,"F",lc);class Ys{constructor(e){l(this,"id");l(this,"name","");l(this,"address","");l(this,"number");l(this,"building");l(this,"buildingId");R.H.Classes.BuildClass(this,e),this.setName()}setName(){this.building&&(this.name=this.building.address+", вход "+this.number,this.address=this.name)}getBuildingNumber(){var e;return String((e=this.building)==null?void 0:e.number)}getEntranceNumber(){return String(this.number)}}class Xs{constructor(e){l(this,"id");l(this,"number");l(this,"buildingId");R.H.Classes.BuildClass(this,e)}}var Sf=Object.defineProperty,Zs=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&Sf(e,i,r),r};class Li{constructor(e){l(this,"id");l(this,"number","");l(this,"address","");l(this,"name","");l(this,"status","");l(this,"description","");l(this,"floors",[]);l(this,"entrances",[]);R.H.Classes.BuildClass(this,e)}}Zs([R.H.Classes.GetClassConstructor(Xs)],Li.prototype,"floors"),Zs([R.H.Classes.GetClassConstructor(Ys)],Li.prototype,"entrances");const Cf=Object.freeze(Object.defineProperty({__proto__:null,Building:Li,Entrance:Ys,Floor:Xs},Symbol.toStringTag,{value:"Module"}));let kf=class extends ce{constructor(){super(Li,"buildings")}};const xf=new kf,Ef=Object.freeze(Object.defineProperty({__proto__:null,C:Cf,S:Object.freeze(Object.defineProperty({__proto__:null,BuildingsStore:xf},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));var In=(n=>(n.Ping="ping",n.Enter="enter",n.Exit="exit",n.Message="message",n.Write="write",n.Empty="",n))(In||{});class sn{constructor(e){l(this,"id");l(this,"userId");l(this,"chatId");l(this,"message","");l(this,"fileInfo",new R.C.FileInfo);l(this,"createdAt",new Date);l(this,"type",In.Message);O.BuildClass(this,e)}static Create(e,i,o){const r=new sn;return r.id=R.H.Id.UUID(),r.chatId=i,r.userId=o,r.message=e,r}static CreatePingMessage(){const e=new sn;return e.type=In.Ping,e.id=R.H.Id.UUID(),e}isMessage(){return this.type===In.Message||this.type===In.Empty}}var Bf=Object.defineProperty,$f=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&Bf(e,i,r),r};const Js=class Tl{constructor(e){l(this,"id");l(this,"name","");l(this,"createdAt",new Date);l(this,"newMesage","");l(this,"userId","");l(this,"chatMessages",[]);R.H.Classes.BuildClass(this,e)}static Create(){const e=new Tl;return e.id=R.H.Id.UUID(),e}addMessage(){if(this.newMesage==="")return;const e=sn.Create(this.newMesage,this.id,this.userId);return this.chatMessages.push(e),this.newMesage="",e}};$f([R.H.Classes.GetClassConstructor(sn)],Js.prototype,"chatMessages");let Ks=Js;const Nf=Object.freeze(Object.defineProperty({__proto__:null,Chat:Ks,ChatMessage:sn},Symbol.toStringTag,{value:"Module"}));let Mf=class extends ce{constructor(){super(sn,"chat-messages")}};const If=new Mf;let Vf=class extends ce{constructor(){super(Ks,"chats")}};const Tf=new Vf,Rf=Object.freeze(Object.defineProperty({__proto__:null,C:Nf,S:Object.freeze(Object.defineProperty({__proto__:null,ChatMessages:If,Chats:Tf},Symbol.toStringTag,{value:"Module"})),T:(kr=class{},l(kr,"ChatMessage",In),kr)},Symbol.toStringTag,{value:"Module"}));class ea{constructor(e){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new Ge);R.H.Classes.BuildClass(this,e)}}class ni{constructor(e){l(this,"id");l(this,"passportId");l(this,"fileInfoId");l(this,"fileInfo",new R.C.FileInfo);l(this,"order",0);O.BuildClass(this,e)}static Create(e){const i=new ni;return i.id=R.H.Id.UUID(),i.passportId=e,i}}var Pf=Object.defineProperty,vf=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&Pf(e,i,r),r};class Go{constructor(e){l(this,"id");l(this,"num","");l(this,"seria","");l(this,"division","");l(this,"divisionCode","");l(this,"citzenship","");l(this,"date",new Date);l(this,"address","");l(this,"passportScans",[]);O.BuildClass(this,e)}}vf([O.GetClassConstructor(ni)],Go.prototype,"passportScans");class ta{constructor(e){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new Ge);R.H.Classes.BuildClass(this,e)}}const Af=Object.freeze(Object.defineProperty({__proto__:null,Inn:ea,Passport:Go,PassportScan:ni,Snils:ta},Symbol.toStringTag,{value:"Module"}));let zf=class extends ce{constructor(){super(ea,"inns")}};const Df=new zf;let Ff=class extends ce{constructor(){super(ni,"passport-scans")}};const Of=new Ff;let _f=class extends ce{constructor(){super(Go,"passports")}};const Lf=new _f;let Hf=class extends ce{constructor(){super(ta,"snilss")}};const Uf=new Hf,qf=Object.freeze(Object.defineProperty({__proto__:null,C:Af,S:Object.freeze(Object.defineProperty({__proto__:null,Inns:Df,PassportScans:Of,Passports:Lf,Snilss:Uf},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Qo{constructor(e){l(this,"id");l(this,"name","");R.H.Classes.BuildClass(this,e)}static Create(e){const i=new Qo;return i.id=R.H.Id.UUID(),i.name=e,i}}const jf=Object.freeze(Object.defineProperty({__proto__:null,Extract:Qo},Symbol.toStringTag,{value:"Module"})),Wf=[{path:"/admin/extracts",name:"ExtractsList",component:()=>Promise.resolve().then(()=>cw)}];class ii{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");R.H.Classes.BuildClass(this,e)}static Create(e,i){const o=new ii;return o.id=R.H.Id.UUID(),o.name=e,o.label=i,o}}let Gf=class extends ce{constructor(){super(ii,"extracts")}};const Qf=new Gf,Yf=Object.freeze(Object.defineProperty({__proto__:null,C:jf,R:Wf,S:Object.freeze(Object.defineProperty({__proto__:null,ExtractsStore:Qf},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class an{constructor(e){l(this,"id");l(this,"name","");l(this,"score",0);l(this,"order",0);l(this,"showMoreQuestions",!1);l(this,"showOther",!1);l(this,"fieldId");l(this,"isMatrixY",!1);R.H.Classes.BuildClass(this,e)}static Create(e){const i=new an;return i.id=R.H.Id.UUID(),i.fieldId=e,i}}class na{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fieldId");R.H.Classes.BuildClass(this,e)}}class Yo{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);R.H.Classes.BuildClass(this,e)}}class Vn{constructor(e){l(this,"id");l(this,"name","");l(this,"fieldId");R.H.Classes.BuildClass(this,e)}static Create(e){const i=new Vn;return i.id=R.H.Id.UUID(),i.fieldId=e,i}}var Xf=Object.defineProperty,oi=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&Xf(e,i,r),r};const ln=class fo{constructor(e){l(this,"id");l(this,"name","");l(this,"code","");l(this,"valueTypeId");l(this,"order",0);l(this,"ageCompare",!1);l(this,"answerVariants",[]);l(this,"answerVariantsForDelete",[]);l(this,"fieldExamples",[]);l(this,"fieldVariants",[]);l(this,"valueType",new js);l(this,"fieldMeasures",[]);l(this,"showSet",!1);l(this,"showRadio",!1);l(this,"isEdit",!1);l(this,"children",[]);l(this,"parentId");l(this,"formSectionId");l(this,"selected",!1);R.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 i=new fo;return i.id=R.H.Id.UUID(),i.formSectionId=e,i}getRegisterPropertyRadioOriginalValue(e){const i=this.answerVariants.find(o=>o.id===e);return i?i.name:""}addRadioItem(e){const i=new an(e);i.order=this.answerVariants.length,this.answerVariants.push(i)}removeRadioItem(e){const i=this.answerVariants[e].id;i&&this.answerVariantsForDelete.push(i),this.answerVariants.splice(e,1)}changeRelation(e){const i=e.find(o=>o.id===this.valueTypeId);if(i){if(i.isRadio()){this.showRadio=!0,this.showSet=!1;return}if(i.isSet()){this.showSet=!0,this.showRadio=!1;return}this.showSet=!1,this.showRadio=!1,this.valueType=i}}editRegisterProperty(e){this.isEdit=e??!this.isEdit}sortExamples(){this.fieldExamples.forEach((e,i)=>e.order=i)}addRegisterPropertyMeasure(e){this.fieldMeasures.push(new Yo(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new Vn)}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=an.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=fo.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=Vn.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new fo(this);return e.id=R.H.Id.UUID(),e.answerVariants.forEach(i=>{i.id=R.H.Id.UUID(),i.fieldId=e.id}),e.children=e.children.map(i=>{const o=i.copy();return o.parentId=e.id,o}),e}};oi([R.H.Classes.GetClassConstructor(an)],ln.prototype,"answerVariants"),oi([R.H.Classes.GetClassConstructor(na)],ln.prototype,"fieldExamples"),oi([R.H.Classes.GetClassConstructor(Vn)],ln.prototype,"fieldVariants"),oi([R.H.Classes.GetClassConstructor(Yo)],ln.prototype,"fieldMeasures"),oi([R.H.Classes.GetClassConstructor(ln)],ln.prototype,"children");let Hi=ln;class Xo{constructor(e){l(this,"id");l(this,"answerId");l(this,"comment","");l(this,"fileInfoId");l(this,"fileInfo",new Ge);R.H.Classes.BuildClass(this,e)}}class cn{constructor(e){l(this,"id");l(this,"answerVariantId");l(this,"answerVariantIdY");l(this,"fieldFillId");R.H.Classes.BuildClass(this,e)}static Create(e,i){const o=new cn;return o.id=Ht(),o.fieldFillId=e,o.answerVariantId=i,o}static GetClassName(){return"selectedAnswerVariant"}}var Zf=Object.defineProperty,ia=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&Zf(e,i,r),r};const Zo=class Pr{constructor(e){l(this,"id");l(this,"valueString");l(this,"valueOther");l(this,"valueNumber");l(this,"valueDate");l(this,"fileInfo",new Ge);l(this,"fileInfoId");l(this,"order",0);l(this,"selectedAnswerVariants",[]);l(this,"patientId");l(this,"fieldId");l(this,"formFillId");l(this,"answerVariantId");l(this,"filled",!1);l(this,"researchResultId");l(this,"answerFiles",[]);l(this,"answerFilesForDelete",[]);R.H.Classes.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,i){const o=new Pr;return o.id=Ht(),o.fieldId=e.id,o.formFillId=i,o.order=e.order,o.valueNumber=0,o.valueString="",o.valueDate=new Date,o}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,i){return e.map(o=>Pr.Create(o,i))}addFile(){const e=new Xo;return e.id=Ht(),e.answerId=this.id,this.answerFiles.push(e),e}getFileInfos(){const e=[];return this.answerFiles.forEach(i=>e.push(i.fileInfo)),e}getSelectedAnswerVariant(){return!0}setMatrixRadioValue(e,i){const o=cn.Create(this.id,e);return o.answerVariantIdY=i,this.selectedAnswerVariants.push(o),this.filled=!0,o}getMatrixValue(e,i){return this.selectedAnswerVariants.find(o=>o.answerVariantId===e&&o.answerVariantIdY===i)}addSelectedAnswerVariant(e){const i=cn.Create(this.id,e);return this.selectedAnswerVariants.push(i),this.filled=!0,i}static GetClassName(){return"answer"}showOther(e){const i=e.find(o=>o.showOther);return i?this.answerVariantId===i.id||this.selectedAnswerVariants.some(o=>o.answerVariantId===i.id):!1}};ia([R.H.Classes.GetClassConstructor(cn)],Zo.prototype,"selectedAnswerVariants"),ia([R.H.Classes.GetClassConstructor(Xo)],Zo.prototype,"answerFiles");let Tn=Zo;class Jf{constructor(e){l(this,"id");l(this,"fieldId");R.H.Classes.BuildClass(this,e)}static GetClassName(){return"fieldFilter"}}var Kf=Object.defineProperty,eh=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&Kf(e,i,r),r};const oa=class Rl{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fields",[]);l(this,"formId");R.H.Classes.BuildClass(this,e)}static GetClassName(){return"formSection"}getN(){return`${this.order+1}`}getFieldN(e){return`${this.getN()}.${e+1}`}getSubFieldN(e,i){return`${this.getFieldN(e)}.${i+1}`}static Create(e){const i=new Rl;return i.id=R.H.Id.UUID(),i.formId=e,i}addField(){const e=Hi.Create(this.id);return this.fields.push(e),this.sortFields(),e}sortFields(){this.fields.forEach((e,i)=>e.order=i)}getAnswerVariants(){const e=[];return this.fields.forEach(i=>e.push(...i.answerVariants)),e}};eh([R.H.Classes.GetClassConstructor(Hi)],oa.prototype,"fields");let Ui=oa;var th=Object.defineProperty,nh=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&th(e,i,r),r};const ra=class Pl{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"isLaboratory",!1);l(this,"formSections",[]);l(this,"isEdit",!1);l(this,"withDates",!1);l(this,"withScores",!1);l(this,"selectedForExport",!1);l(this,"filterString","");l(this,"showOnlyNotFilled",!1);l(this,"showOnlyFilled",!1);R.H.Classes.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new Pl;return e.id=R.H.Id.UUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=Ui.Create(this.id);return this.formSections.push(e),R.H.Sorter.Sort(this.formSections),e}getFields(){const e=this.formSections.map(o=>o.fields).flat(),i=e.map(o=>o.children).flat();return e.concat(i).filter(o=>o.children.length===0)}};nh([R.H.Classes.GetClassConstructor(Ui)],ra.prototype,"formSections");let sa=ra;var ih=Object.defineProperty,oh=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&ih(e,i,r),r};const aa=class vl{constructor(e){l(this,"id");l(this,"date",new Date);l(this,"editMode",!1);l(this,"userFormId");l(this,"fillingPercentage",0);l(this,"fieldFills",[]);l(this,"num","");l(this,"formId");R.H.Classes.BuildClass(this,e)}static Create(e){const i=new vl;return i.id=R.H.Id.UUID(),i.formId=e.id,i.fieldFills.push(...Tn.CreateMany(e.getFields(),i.id)),i}addFieldFill(e){this.fieldFills.push(e)}getFieldFill(e){var i;return(i=this.fieldFills)==null?void 0:i.find(o=>o.fieldId===e)}pushRegisterProperty(e){const i=new Tn;i.researchResultId=e,this.fieldFills.push(i)}getRegisterPropertyToPatient(e){return this.fieldFills.filter(i=>i.researchResultId===e)}getOrCreateFieldFill(e){let i=this.getFieldFill(e.id);return i||(i=Tn.Create(e),this.addFieldFill(i)),i}getFileInfos(){const e=[];return this.fieldFills.forEach(i=>e.push(...i.getFileInfos())),e}calculateFilling(){const e=this.fieldFills.filter(o=>o.filled).length,i=this.fieldFills.length;this.fillingPercentage=Math.round(e/i*100)}getFieldFillByFieldId(e){return this.fieldFills.find(i=>i.fieldId===e)}getFieldVariantFieldFill(e){return this.fieldFills.find(i=>i.answerVariantId===e)}getFieldsFieldFillsMap(e){const i={};return e.forEach(o=>{var r;if(o.code){const s=(r=this.getFieldFillByFieldId(o.id))==null?void 0:r.valueNumber;i[o.code]=s}}),i}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};oh([R.H.Classes.GetClassConstructor(Tn)],aa.prototype,"fieldFills");let la=aa;const rh=Object.freeze(Object.defineProperty({__proto__:null,AnswerVariant:an,Field:Hi,FieldExample:na,FieldFill:Tn,FieldFillFile:Xo,FieldFilter:Jf,FieldMeasure:Yo,FieldVariant:Vn,Form:sa,FormFill:la,FormSection:Ui,SelectedAnswerVariant:cn},Symbol.toStringTag,{value:"Module"}));let sh=class extends ce{constructor(){super(an,"answer-variants")}};const ah=new sh;let lh=class extends ce{constructor(){super(Tn,"field-fills")}};const ch=new lh;let dh=class extends ce{constructor(){super(Hi,"fields")}};const uh=new dh;let fh=class extends ce{constructor(){super(la,"form-fills")}};const hh=new fh;let mh=class extends ce{constructor(){super(Ui,"form-sections")}};const ph=new mh;let gh=class extends ce{constructor(){super(sa,"forms")}};const yh=new gh;let wh=class extends ce{constructor(){super(cn,"selected-answer-variants")}};const bh=new wh,Sh=Object.freeze(Object.defineProperty({__proto__:null,C:rh,S:Object.freeze(Object.defineProperty({__proto__:null,AnswerVariants:ah,FieldFills:ch,Fields:uh,FormFills:hh,FormSections:ph,Forms:yh,SelectedAnswerVariants:bh},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class qi{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"selected",!1);l(this,"hide",!1);l(this,"editMode",!1);l(this,"color","");l(this,"background","");l(this,"order",0);l(this,"menuId");l(this,"iconId");l(this,"icon",new Ge);l(this,"iconName","");l(this,"svgCode","");O.BuildClass(this,e)}addFile(e){this.icon.id||(this.icon.id=De.UUID()),this.icon.originalName=e.name,this.icon.file=e.raw}}var Ch=Object.defineProperty,kh=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&Ch(e,i,r),r};class Jo{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"top",!0);l(this,"side",!0);l(this,"show",!1);l(this,"hide",!1);l(this,"active",!1);l(this,"order",0);l(this,"selected",!1);l(this,"editMode",!1);l(this,"subMenus",[]);l(this,"subMenusForDelete",[]);l(this,"iconId");l(this,"icon",new Ge);O.BuildClass(this,e)}withoutChildren(){return this.subMenus.length===0}getFileInfos(){const e=[];return e.push(this.icon),this.subMenus.forEach(i=>{e.push(i.icon)}),e}addFile(e){this.icon.id||(this.icon.id=De.UUID()),this.icon.originalName=e.name,this.icon.file=e.raw}addSubMenu(){this.subMenus.push(new qi)}removeSubMenu(e){const i=this.subMenus[e].id;i&&this.subMenusForDelete.push(i),this.subMenus.splice(e,1)}setColorsForSubMenus(){const e=["#00A248","#E63021","#006BB5","#F3911F","#6F6D6B"];let i=0;this.subMenus.forEach(o=>{o.color=e[i],i=e.length-1?i=0:i++})}containPath(e){return this.link===e||!!this.subMenus.find(i=>i.link===e)}static GetClassName(){return"menu"}}kh([O.GetClassConstructor(qi)],Jo.prototype,"subMenus");const xh=Object.freeze(Object.defineProperty({__proto__:null,Menu:Jo,SubMenu:qi},Symbol.toStringTag,{value:"Module"}));let Eh=class extends R.H.BaseStore{constructor(){super(Jo,"menus")}};const Bh=new Eh;let $h=class extends R.H.BaseStore{constructor(){super(qi,"sub-menus")}};const Nh=new $h,Mh=Object.freeze(Object.defineProperty({__proto__:null,C:xh,S:Object.freeze(Object.defineProperty({__proto__:null,Menus:Bh,SubMenus:Nh},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class ji{constructor(e){l(this,"id","");l(this,"name","");l(this,"component","");l(this,"order");l(this,"active",!1);l(this,"key",0);O.BuildClass(this,e)}static Create(e,i,o,r,s){const a=new ji;return a.id=e,a.name=i,a.component=o,a.order=r,a.active=!!s,a}}var ca=(n=>(n.User="USER",n.Admin="ADMIN",n))(ca||{});class Ih{constructor(e){l(this,"id");l(this,"name",ca.User);l(this,"label","");l(this,"startPage","");O.BuildClass(this,e)}}class Ko{constructor(e){l(this,"id");l(this,"document",new Ge);l(this,"documentId");l(this,"pageId");O.BuildClass(this,e)}}var Vh=Object.defineProperty,Th=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&Vh(e,i,r),r};class Wi{constructor(e){l(this,"id");l(this,"pageId");l(this,"fileInfoId");l(this,"fileInfo");l(this,"description");O.BuildClass(this,e)}}Th([O.GetClassConstructor(Ge)],Wi.prototype,"fileInfo");class Gi{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"downloadToFile",!1);l(this,"pageSectionId");l(this,"scan",new Ge);l(this,"scanId");O.BuildClass(this,e)}getFileInfos(){return[this.scan]}getFileName(){return this.name?this.name:this.scan.originalName}}var Rh=Object.defineProperty,Ph=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&Rh(e,i,r),r};class Rn{constructor(e){l(this,"id");l(this,"name","");l(this,"singleScan",!1);l(this,"scan");l(this,"scanId");l(this,"order",0);l(this,"description","");l(this,"scans",[]);l(this,"scansForDelete",[]);l(this,"pageSectionDocuments",[]);l(this,"pageSideMenuId");l(this,"pageId");l(this,"text","");l(this,"documents",[]);O.BuildClass(this,e),this.documents=this.pageSectionDocuments,this.text=this.description.replace("<p>undefined</p>","")}addDocument(){const e=new Gi;e.order=this.pageSectionDocuments.length-1,this.pageSectionDocuments.push(e)}getFileInfos(){const e=[];return this.pageSectionDocuments.forEach(i=>{e.push(...i.getFileInfos())}),e}infoExists(e){const i=re.SearchIn(this.name,e),o=re.SearchIn(this.description,e),r=this.getDocuments(e);return i||o||r.length>0}getDocuments(e){return this.pageSectionDocuments.filter(i=>re.SearchIn(i.name,e))}getDescription(e){return e?re.WrapSubStr(this.description,e):this.description}filter(e){if(!e){this.text=this.description,this.documents=this.pageSectionDocuments;return}this.text=re.SearchIn(this.description,e)?re.WrapSubStr(this.description,e):"",this.documents=this.pageSectionDocuments.filter(i=>re.SearchIn(i.name,e))}}Ph([O.GetClassConstructor(Gi)],Rn.prototype,"pageSectionDocuments");var vh=Object.defineProperty,Ah=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&vh(e,i,r),r};class jt{constructor(e){l(this,"id");l(this,"name","Новое меню");l(this,"order",0);l(this,"description","");l(this,"routeAnchor","");l(this,"slug","");l(this,"pageSections",[]);l(this,"showContent",!1);l(this,"pageId");l(this,"selected",!1);l(this,"sections",[]);l(this,"text","");O.BuildClass(this,e),this.sections=this.pageSections,this.text=this.description.replace("<p>undefined</p>","")}getFileInfos(){const e=[];return this.pageSections.forEach(i=>{e.push(...i.getFileInfos())}),e}addPageSection(){const e=new Rn;e.order=this.pageSections.length+1,e.name=`Новой раздел ${e.order}`,e.id=De.UUID(),this.pageSections.push(e)}infoExists(e){const i=re.SearchIn(this.name,e),o=re.SearchIn(this.description,e),r=this.getPageSections(e).length>0;return i||o||r}getPageSections(e){return e.length?this.pageSections.filter(i=>i.infoExists(e)):this.pageSections}filter(e){e.length?(this.sections=this.pageSections.filter(i=>i.infoExists(e)),this.text=re.SearchIn(this.description,e)?re.WrapSubStr(this.description,e):""):(this.sections=this.pageSections,this.text=this.description),this.sections.forEach(i=>i.filter(e))}}Ah([O.GetClassConstructor(Rn)],jt.prototype,"pageSections");var zh=Object.defineProperty,Qi=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&zh(e,i,r),r};class Pn{constructor(e){l(this,"id");l(this,"title","");l(this,"content","");l(this,"slug","");l(this,"pagesGroup","Без группы");l(this,"link","");l(this,"withComments",!1);l(this,"showContacts",!1);l(this,"collaps",!1);l(this,"showContent",!1);l(this,"pageImages",[]);l(this,"pageImagesForDelete",[]);l(this,"pageImagesNames",[]);l(this,"pageSideMenus",[]);l(this,"menus",[]);l(this,"pageSideMenusForDelete",[]);l(this,"pageSections",[]);l(this,"pageSectionsForDelete",[]);l(this,"pageDocuments",[]);l(this,"contact",new Ls);l(this,"contactId");l(this,"role",new Ih);l(this,"roleId");l(this,"filterStr","");l(this,"activeMenuId","");O.BuildClass(this,e),this.menus=this.pageSideMenus}getActiveMenu(){const e=this.pageSideMenus.find(i=>i.id===this.activeMenuId);return e||this.pageSideMenus[0]}setActiveMenuId(e){this.activeMenuId=e}getLink(){return this.slug!==""?`/pages/${this.slug}`:"404"}getFileInfos(){const e=[];return this.pageSideMenus.forEach(i=>{e.push(...i.getFileInfos())}),this.pageImages.forEach(i=>{i.fileInfo&&e.push(i.fileInfo)}),e}addSideMenu(){const e=new jt;return e.order=this.pageSideMenus.length+1,e.name=`Новое меню ${e.order}`,e.id=De.UUID(),this.pageSideMenus.push(e),e.id}selectSideMenu(e,i){if(!e&&this.pageSideMenus.length>0){this.pageSideMenus[0].selected=!0;return}this.pageSideMenus.forEach(o=>{i?o.selected=o.id===e:o.selected=o.slug===e})}getSelectedSideMenu(){const e=this.pageSideMenus.find(i=>i.selected);return e||new jt}addCustomSectionsToSideMenu(e){e.forEach(i=>{const o=new jt;o.id=i.id,o.name=i.name,typeof i.order<"u"?this.pageSideMenus.splice(i.order,0,o):this.pageSideMenus.push(o)})}getPageSideMenus(){if(this.showContacts&&!this.pageSideMenus.find(e=>e.id==="contacts")){const e=new jt;e.id="contacts",e.name="Контакты",this.pageSideMenus.push(e)}return this.filterStr===""?this.pageSideMenus:this.pageSideMenus.filter(e=>e.infoExists(this.filterStr))}filter(){this.filterStr===""?this.menus=this.pageSideMenus:this.menus=this.pageSideMenus.filter(e=>e.infoExists(this.filterStr)),this.menus.forEach(e=>e.filter(this.filterStr))}static GetClassName(){return"page"}}Qi([O.GetClassConstructor(Wi)],Pn.prototype,"pageImages"),Qi([O.GetClassConstructor(jt)],Pn.prototype,"pageSideMenus"),Qi([O.GetClassConstructor(Rn)],Pn.prototype,"pageSections"),Qi([O.GetClassConstructor(Ko)],Pn.prototype,"pageDocuments");const Dh=Object.freeze(Object.defineProperty({__proto__:null,CustomSection:ji,Page:Pn,PageDocument:Ko,PageImage:Wi,PageSection:Rn,PageSectionDocument:Gi,PageSideMenu:jt},Symbol.toStringTag,{value:"Module"}));let Fh=class extends R.H.BaseStore{constructor(){super(ji,"custom-sections")}};const Oh=new Fh;let _h=class extends R.H.BaseStore{constructor(){super(Ko,"page-documents")}};const Lh=new _h;let Hh=class extends R.H.BaseStore{constructor(){super(Wi,"page-images")}};const Uh=new Hh;let qh=class extends R.H.BaseStore{constructor(){super(Gi,"page-section-documents")}};const jh=new qh;let Wh=class extends R.H.BaseStore{constructor(){super(Rn,"page-sections")}};const Gh=new Wh;let Qh=class extends R.H.BaseStore{constructor(){super(jt,"page-side-menus")}};const Yh=new Qh;let Xh=class extends R.H.BaseStore{constructor(){super(Pn,"pages")}};const Zh=new Xh,Jh=Object.freeze(Object.defineProperty({__proto__:null,C:Dh,S:Object.freeze(Object.defineProperty({__proto__:null,CustomSections:Oh,PageDocuments:Lh,PageImages:Uh,PageSectionDocuments:jh,PageSections:Gh,PageSideMenus:Yh,Pages:Zh},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class zt{constructor(e){l(this,"id");l(this,"name","");l(this,"description","");l(this,"startTime","");l(this,"endTime","");l(this,"scheduleId");l(this,"sessionId");l(this,"payload",{});R.H.Classes.BuildClass(this,e)}static Create(e){const i=new zt;return i.id=R.H.Id.UUID(),i.scheduleId=e,i.startTime="9:00",i.endTime="9:30",i}}var Kh=Object.defineProperty,em=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&Kh(e,i,r),r};const da=class Al{constructor(e){l(this,"id");l(this,"name","");l(this,"description","");l(this,"startTime","");l(this,"endTime","");l(this,"scheduleId");l(this,"slots",[]);R.H.Classes.BuildClass(this,e)}static Create(e){const i=new Al;return i.id=R.H.Id.UUID(),i.scheduleId=e,i.startTime="9:00",i.endTime="9:30",i}};em([R.H.Classes.GetClassConstructor(zt)],da.prototype,"slots");let vn=da;var tm=Object.defineProperty,ua=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&tm(e,i,r),r};const er=class zl{constructor(e){l(this,"id");l(this,"name","");l(this,"description","");l(this,"scheduleDayId");l(this,"placeId");l(this,"sessions",[]);l(this,"slots",[]);R.H.Classes.BuildClass(this,e)}static Create(e,i){const o=new zl;return o.id=R.H.Id.UUID(),o.placeId=e,o.scheduleDayId=i,o}addSession(){const e=vn.Create(this.id);return this.sessions.push(e),e}addSlot(){const e=zt.Create(this.id);return this.slots.push(e),e}};ua([R.H.Classes.GetClassConstructor(vn)],er.prototype,"sessions"),ua([R.H.Classes.GetClassConstructor(zt)],er.prototype,"slots");let ri=er;var nm=Object.defineProperty,im=(n,e,i,o)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(e,i,r)||r);return r&&nm(e,i,r),r};const fa=class Dl{constructor(e){l(this,"id");l(this,"date",new Date(0));l(this,"description","");l(this,"ownerId");l(this,"ownerType","");l(this,"schedules",[]);R.H.Classes.BuildClass(this,e)}static Create(e,i,o=new Date){const r=new Dl;return r.id=R.H.Id.UUID(),r.ownerId=e,r.ownerType=i||"",r.date=o,r}};im([R.H.Classes.GetClassConstructor(ri)],fa.prototype,"schedules");let Yi=fa;class An{constructor(e){l(this,"id");l(this,"name","");l(this,"description","");l(this,"color","");R.H.Classes.BuildClass(this,e)}static Create(){const e=new An;return e.id=R.H.Id.UUID(),e}}const om=Object.freeze(Object.defineProperty({__proto__:null,Schedule:ri,ScheduleDay:Yi,SchedulePlace:An,ScheduleSession:vn,ScheduleSlot:zt},Symbol.toStringTag,{value:"Module"})),de=n=>n?R.H.Time.HMtoM(n):NaN,it=n=>R.H.Time.ConcatHM(Math.floor(n/60),n%60),zn=n=>{if(!n)return"";const e=R.H.Time.HmsToHm(n);return/^\d{1,2}:\d{2}$/.test(e)?e:""},si=(n,e)=>R.H.Time.DiffM(n,e),dn=(n,e)=>R.H.Time.AddMtoHM(n,e),tr=(n,e)=>{const i=de(n.startTime),o=de(e.startTime);return isFinite(i)?isFinite(o)?i-o:-1:1},ai=(n,e)=>{const i=de(n.startTime),o=de(n.endTime),r=de(e.startTime),s=de(e.endTime);return!isFinite(i)||!isFinite(o)||!isFinite(r)||!isFinite(s)?!1:i<s&&r<o},li=(n,e)=>Math.round(n/e)*e,ha=(n,e=8*60,i=20*60)=>{let o=e,r=i;for(const{item:d}of n){const c=de(d.startTime),u=de(d.endTime);isFinite(c)&&(o=Math.min(o,c)),isFinite(u)&&(r=Math.max(r,u))}const s=Math.floor(o/60)*60,a=Math.ceil(r/60)*60;return{start:s,end:a,total:a-s||60}},ma=(n,e)=>{const i=de(n.item.startTime),o=de(n.item.endTime);if(!isFinite(i)||!isFinite(o))return{top:"0%",height:"48px"};const r=(i-e.start)/e.total*100,s=Math.max((o-i)/e.total*100,2.5);return{top:r+"%",height:s+"%"}},pa=(n,e)=>{const i=de(n.startTime),o=de(n.endTime);if(!isFinite(i)||!isFinite(o)||o<=i)return{top:"0%",height:"auto"};const r=o-i,s=de(e.startTime),a=de(e.endTime),d=isFinite(s)?Math.max((s-i)/r*100,0):0;let c=isFinite(s)&&isFinite(a)?(a-s)/r*100:8;return c=Math.min(Math.max(c,3),100-d),{top:d+"%",height:c+"%"}},ga=(n,e,i)=>n.some(o=>o.item.id===e.item.id||e.kind==="session"&&o.kind==="slot"&&o.item.sessionId===e.item.id?!1:i(e.item,o.item)),ya=(n,e,i)=>n.some(o=>o.id!==e.id&&i(e,o)),wa=(n,e,i,o)=>{if(!(!isFinite(e)||!isFinite(i)||i<=e))return(n||[]).find(r=>{const s=o(r.startTime),a=o(r.endTime);return isFinite(s)&&isFinite(a)&&e>=s&&i<=a})},ba=n=>n<26?"h-tiny":n<34?"h-short":n<60?"h-medium":"h-full",nr={hall:"Зал",halls:"Залы",session:"Секция",sessions:"Секции",slot:"Событие",slots:"События",addHall:"Добавить зал",addSession:"Добавить секцию",addSlot:"Добавить событие",addDay:"Добавить день",deleteDay:"Удалить день",deleteHall:"Удалить расписание (зал)",noDays:"Сначала укажите даты",noHalls:"Для этого дня не добавлены залы.",date:"Дата",newHallPlaceholder:"Название нового зала",create:"Создать",close:"Закрыть",save:"Сохранить",cancel:"Отмена",delete:"Удалить",edit:"Редактировать",grid:"Сетка",list:"Список",startTime:"Начало",endTime:"Конец",sessionSelect:"Секция",sessionsTitle:"Секции",slotsTitle:"События",noSlots:"Пусто",noSlotsInDay:"Докладов нет",conflictTitle:"Пересечение с другим блоком в этом зале",changeDurationTitle:"Изменить длительность",gridHint:"Перетаскивайте блоки мышью или пальцем — в другой зал или на другое время. Блоки не сдвигают друг друга: пересечения подсвечиваются красным. Событие, брошенное внутрь секции, автоматически становится её частью. Секции помечены фиолетовым корешком. Клик по блоку — редактирование, нижняя кромка — длительность, двойной клик по пустому месту — новое событие.",listHint:"Перетаскивайте строки — порядок сохраняется, время блоков при этом не меняется.",alreadyAdded:"Зал уже добавлен в этот день",selectDayFirst:"Сначала выберите день",cannotCreate:"Не удалось добавить зал: сервер не ответил",createFailed:"Ошибка при добавлении зала",hallCreated:"Зал «{name}» создан",hallCreateFailed:"Не удалось создать зал",hallNotAdded:"Не удалось добавить зал: сервер не ответил",dayAdded:"День добавлен",saveEventFirst:"Сначала сохраните",correctStartTime:"Укажите корректное время начала",name:"Название",description:"Описание",participants:"Участники",enterName:"Введите название",intoSession:"в секцию",conflictCount:"пересечение"},Sa={createDay(n){return Yi.Create(void 0,void 0,n)},createSchedule(n,e){return ri.Create(n,e)},createSession(n){const e=(n==null?void 0:n.sessions)||[],i=e[e.length-1],o=(i==null?void 0:i.endTime)||"9:00",r=vn.Create(n==null?void 0:n.id);return r.startTime=o,r.endTime=R.H.Time.AddMtoHM(o,30),r},createSlot(n){return zt.Create(n==null?void 0:n.id)},createPlace(n){const e=An.Create();return e.name=n||"",e}},rm={class:"schedule-admin"},sm={key:0,class:"no-days text-center text-grey q-py-xl"},am={class:"schedule-toolbar row items-center q-gutter-sm q-mb-md"},lm={key:1,class:"row items-center q-gutter-xs zoom-control"},cm={key:0,class:"grid-view"},dm={key:0,class:"text-grey text-center q-py-lg"},um={class:"grid-header"},fm={class:"row items-center justify-center q-gutter-xs"},hm={class:"ellipsis"},mm={class:"time-gutter"},pm=["data-schedule-id","onDblclick"],gm=["title","onPointerdown","onClick"],ym={class:"block-content"},wm={class:"block-time"},bm={class:"block-name ellipsis"},Sm={key:0,class:"block-speakers ellipsis"},Cm={key:0,class:"session-perfoms"},km=["title","onPointerdown","onClick"],xm={class:"nested-time"},Em={class:"nested-name ellipsis"},Bm={key:0,class:"nested-speakers ellipsis"},$m=["title","onPointerdown"],Nm={class:"block-actions"},Mm=["title","onPointerdown"],Im=["title"],Vm={class:"session-spine-name"},Tm={class:"block-time"},Rm={key:0,class:"session-badge"},Pm={key:1,class:"conflict-badge"},vm={class:"block-name ellipsis"},Am={class:"text-caption text-grey-6 q-pa-xs"},zm={key:1,class:"list-view"},Dm={class:"row items-center q-gutter-sm"},Fm={class:"text-subtitle2"},Om={key:0,class:"sub-block"},_m={class:"sub-title"},Lm={class:"list-row session-row"},Hm={key:0,class:"nested-list"},Um={class:"col-4 ellipsis"},qm={class:"time-text"},jm={class:"sub-block"},Wm={class:"sub-title"},Gm={class:"list-row slot-row"},Qm={key:0,class:"text-grey text-center q-py-sm"},Ym={class:"text-caption text-grey-6 q-mb-sm"},Xm={class:"text-h6"},Zm={class:"row items-center q-gutter-sm q-mb-md"},Jm={key:0,class:"text-grey text-center q-py-md"},Km={class:"col ellipsis"},ep={class:"text-h6"},tp={class:"row q-col-gutter-sm q-mb-sm"},np={class:"col-6"},ip={class:"col-6"},un=15,Ca=6,ka=v(t.defineComponent({__name:"ScheduleGridEditor",props:{days:{},places:{},persist:{},labels:{default:()=>({})},factories:{default:()=>({})},hallName:{type:Function,default:void 0},dayTitle:{type:Function,default:void 0},slotName:{type:Function,default:void 0},slotSubtitle:{type:Function,default:void 0},sessionName:{type:Function,default:void 0},slotListOf:{type:Function,default:void 0},nestedSlotListOf:{type:Function,default:void 0}},setup(n){var Bl,$l;const e=n,i=t.computed(()=>({...nr,...e.labels})),o=t.computed(()=>({...Sa,...e.factories})),r=p=>e.slotListOf?e.slotListOf(p):(p==null?void 0:p.slots)||[],s=p=>e.nestedSlotListOf?e.nestedSlotListOf(p):(p==null?void 0:p.slots)||[],a=p=>(p==null?void 0:p.name)||i.value.hall,d=p=>e.sessionName?e.sessionName(p):(p==null?void 0:p.name)||`${i.value.session} ${(p==null?void 0:p.startTime)||""}–${(p==null?void 0:p.endTime)||""}`.trim(),c=p=>e.slotName?e.slotName(p):(p==null?void 0:p.name)||i.value.slot,u=p=>e.slotSubtitle?e.slotSubtitle(p):"",f=t.ref("grid"),h=t.ref(($l=(Bl=e.days)==null?void 0:Bl[0])==null?void 0:$l.id),m=t.ref(!1),w=t.ref(""),C=t.ref(!1),B=t.ref(null),$=t.ref(null),x=t.ref(void 0),M=t.ref(null),k=t.ref(null),P=t.ref(!1),D=t.ref(0),Z=t.ref(null),K=[{label:"40",value:40},{label:"60",value:60},{label:"90",value:90},{label:"120",value:120}],fe=t.ref(Number(localStorage.getItem("schedule-grid-zoom"))||60);t.watch(fe,p=>localStorage.setItem("schedule-grid-zoom",String(p)));const ht=t.computed(()=>Math.max(be.value.total/60*fe.value,360)),Qe=t.computed(()=>ht.value+"px"),Pe=t.computed(()=>[...e.days||[]].sort((p,g)=>new Date(p.date).getTime()-new Date(g.date).getTime())),ke=t.computed(()=>Pe.value.find(p=>p.id===h.value));t.watch(()=>Pe.value.map(p=>p.id).join(","),()=>{var p;(!h.value||!Pe.value.some(g=>g.id===h.value))&&(h.value=(p=Pe.value[0])==null?void 0:p.id)});const hn=p=>{if(e.dayTitle)return e.dayTitle(p);const g=new Date(p.date);return isNaN(g.getTime())||g.getFullYear()<2e3?"Дата":g.toLocaleDateString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"})},Ye=p=>{const g=new Date(p);return isNaN(g.getTime())||g.getFullYear()<2e3?"":g.toISOString().slice(0,10)},It=async(p,g)=>{g&&(p.date=new Date(g),await e.persist.updateDay(p),await e.persist.refresh())},Vt=async p=>{var b;if(!p)return;for(const I of mt(p))await se(I);await e.persist.removeDay(p);const g=(e.days||[]).indexOf(p);g>=0&&e.days.splice(g,1),await e.persist.refresh(),h.value=(b=Pe.value[0])==null?void 0:b.id},Xt=async()=>{var H,X;const p=Pe.value,g=p[p.length-1],b=g?new Date(new Date(g.date).getTime()+864e5):new Date;let I;try{I=o.value.createDay(b)}catch{e.persist.notify("warning",i.value.saveEventFirst);return}try{await((X=(H=e.persist).createDay)==null?void 0:X.call(H,I));for(const ue of e.places||[])await j(ue,I);await e.persist.refresh()}catch{e.persist.notify("negative",i.value.createFailed);return}h.value=I.id,e.persist.notify("positive",`${i.value.dayAdded}: ${hn(I)}`)},mt=p=>((p==null?void 0:p.schedules)||[]).slice().sort((g,b)=>{const I=wt(g),H=wt(b);return I.localeCompare(H,"ru")}),wt=p=>{if(e.hallName)return e.hallName(p);const g=p.place||(e.places||[]).find(b=>b.id===p.placeId);return(g==null?void 0:g.name)||i.value.hall},nt=()=>{m.value=!0},we=t.computed(()=>{const p=ke.value,g=new Set(((p==null?void 0:p.schedules)||[]).map(b=>b.placeId));return(e.places||[]).filter(b=>!g.has(b.id))}),j=async(p,g)=>{if(e.persist.bindPlaceToDay){await e.persist.bindPlaceToDay(p,g,o.value.createSchedule);return}const b=o.value.createSchedule(p.id,g.id);await e.persist.createSchedule(b)},Le=async p=>{m.value=!1;const g=ke.value;if(!g){e.persist.notify("warning",i.value.selectDayFirst);return}if(mt(g).some(b=>b.placeId===p.id)){e.persist.notify("warning",i.value.alreadyAdded);return}try{await j(p,g)}catch(b){console.warn("addPlaceToDay failed:",b),e.persist.notify("negative",i.value.createFailed),await e.persist.refresh();return}await e.persist.refresh(),h.value=g.id},Tt=async()=>{var b,I,H;const p=(b=w.value)==null?void 0:b.trim();if(!p){e.persist.notify("warning",i.value.enterName);return}const g=o.value.createPlace(p);try{if(!await((H=(I=e.persist).createPlace)==null?void 0:H.call(I,g))){e.persist.notify("negative",i.value.hallCreateFailed);return}}catch(X){console.warn("createPlace failed:",X),e.persist.notify("negative",i.value.hallCreateFailed);return}w.value="",await Le(g),e.persist.notify("positive",i.value.hallCreated.replace("{name}",p))},ge=async p=>{await se(p);const g=je(p);g&&(g.schedules=(g.schedules||[]).filter(b=>b.id!==p.id)),await e.persist.refresh()},se=async p=>{for(const g of p.sessions||[]){for(const b of s(g))await e.persist.removeSlot(b);await e.persist.removeSession(g)}for(const g of r(p))await e.persist.removeSlot(g);await e.persist.removeSchedule(p)},je=p=>(e.days||[]).find(g=>(g.schedules||[]).some(b=>b.id===p.id)),We=p=>[...s(p)].sort(tr),Hn=p=>(p.sessions||[]).some(g=>s(g).length>0),Xe=new WeakMap,Lt=p=>{const g=Xe.get(p),b=r(p);if(g&&g.src===b)return g.list;const I=new Set((p.sessions||[]).map(X=>X.id)),H=b.filter(X=>!X.sessionId||!I.has(X.sessionId));return Xe.set(p,{src:b,list:H}),H},Me=p=>[...(p.sessions||[]).map(g=>({kind:"session",item:g})),...Lt(p).map(g=>({kind:"slot",item:g}))],mn=p=>(p.sessions||[]).map(g=>({kind:"session",item:g})),be=t.computed(()=>{var g,b;const p=(((g=ke.value)==null?void 0:g.schedules)||[]).flatMap(I=>Me(I));for(const I of((b=ke.value)==null?void 0:b.schedules)||[])for(const H of I.sessions||[])p.push(...We(H).map(X=>({kind:"slot",item:X})));return ha(p)}),Ze=t.computed(()=>{const p=[];for(let g=be.value.start;g<=be.value.end;g+=60)p.push({min:g,label:it(g)});return p}),ee=t.computed(()=>{const p=[];for(let g=be.value.start+30;g<be.value.end;g+=60)p.push({min:g,label:it(g)});return p}),Ie=p=>ma(p,be.value),rt=t.computed(()=>{if(!M.value||!$.value)return{};const p=be.value,g=(M.value.minutes-p.start)/p.total*100,b=Math.max($.value.duration/p.total*100,2.5);return{top:g+"%",height:b+"%"}}),st=t.computed(()=>!M.value||!$.value?"":it(M.value.minutes+$.value.duration)),pn=t.computed(()=>{if(!M.value)return{};const p=be.value,g=(M.value.minutes-p.start)/p.total*100,b=Math.max(un/p.total*100,1.5);return{top:g+"%",height:b+"%"}}),bt=t.computed(()=>{var H,X,ue,$e,Ve;if(!M.value||!$.value||!$.value.id)return 0;const p=hi(M.value.scheduleId);if(!p)return 0;const g={startTime:M.value.time,endTime:st.value},b=(H=M.value.session)==null?void 0:H.id;let I=0;for(const T of Me(p))T.item.id!==((X=$.value)==null?void 0:X.id)&&(((ue=$.value)==null?void 0:ue.kind)==="slot"&&T.kind==="session"&&T.item.id===b||ai(g,T.item)&&I++);if((($e=$.value)==null?void 0:$e.kind)==="slot"&&M.value.session)for(const T of We(M.value.session))T.id!==((Ve=$.value)==null?void 0:Ve.id)&&ai(g,T)&&I++;return I}),Rt=t.computed(()=>bt.value>0),co=(p,g)=>ga(Me(p),g,ai),xr=(p,g)=>ya(We(p),g,ai),Er=(p,g)=>pa(p,g),gn=p=>{const g=be.value,b=de(p.item.startTime),I=de(p.item.endTime);return!isFinite(b)||!isFinite(I)?48:(I-b)/g.total*ht.value},Un=p=>ba(gn(p)),Br=p=>{const g=e.slotName?e.slotName(p.item):p.item.name||(p.kind==="session"?i.value.session:i.value.slot);if(p.kind==="slot"&&Un(p)!=="h-full"){const b=u(p.item);if(b)return`${g} — ${b}`}return g},$r=(p,g)=>{const b=c(p);if(g!=="h-full"){const I=u(p);if(I)return`${b} — ${I}`}return b},fi=p=>{const g=`${p.item.startTime||"?"}–${p.item.endTime||"?"}`;if(p.kind==="slot"){const b=u(p.item);return[c(p.item),g,b?`${i.value.participants}: ${b}`:""].filter(Boolean).join(`
|
|
23
|
+
`)}return[d(p.item),g].filter(Boolean).join(`
|
|
24
|
+
`)},S=p=>{const g=u(p);return[c(p),`${p.startTime}–${p.endTime}`,g?`${i.value.participants}: ${g}`:""].filter(Boolean).join(`
|
|
25
|
+
`)},E=(p,g)=>{var b;return{conflict:xr(p.item,g),dragging:((b=pt.value)==null?void 0:b.perfom.id)===g.id,[Un(p)]:!0}},N=t.ref(null),A=(p,g)=>{const b=p.getBoundingClientRect(),I=Math.min(Math.max((g-b.top)/b.height,0),1);return be.value.start+li(I*be.value.total,un)},Y=(p,g)=>{g.target.closest(".block-actions, .block-resize")||g.button!==0||P.value||(N.value={gi:p,startX:g.clientX,startY:g.clientY,moved:!1},window.addEventListener("pointermove",Ee),window.addEventListener("pointerup",F),window.addEventListener("pointercancel",te),window.addEventListener("keydown",he))},Ee=p=>{const g=N.value;if(g){if(!g.moved){if(Math.hypot(p.clientX-g.startX,p.clientY-g.startY)<Ca)return;g.moved=!0;const b=si(g.gi.item.startTime,g.gi.item.endTime);$.value={kind:g.gi.kind,id:g.gi.item.id,name:g.gi.item.name||(g.gi.kind==="session"?i.value.session:i.value.slot),duration:isFinite(b)&&b>0?b:30},document.body.style.userSelect="none",document.body.style.cursor="grabbing"}Be(p.clientX,p.clientY),ne(p.clientX,p.clientY)}},Be=(p,g)=>{var $e,Ve;const b=document.elementFromPoint(p,g),I=b==null?void 0:b.closest(".hall-col"),H=I==null?void 0:I.getAttribute("data-schedule-id");if(!I||!H){x.value=void 0,M.value=null;return}const X=hi(H);if(!X)return;x.value=X.id;const ue=A(I,g);M.value={scheduleId:X.id,minutes:ue,time:it(ue),hallName:wt(X),...(($e=$.value)==null?void 0:$e.kind)==="slot"?{session:Vr(X.sessions,ue,ue+(((Ve=$.value)==null?void 0:Ve.duration)||30),de)}:{}},k.value={x:p,y:g}},ne=(p,g)=>{const b=Z.value;if(!b)return;const I=b.getBoundingClientRect();g<I.top+48?b.scrollTop-=14:g>I.bottom-48&&(b.scrollTop+=14),p<I.left+48?b.scrollLeft-=14:p>I.right-48&&(b.scrollLeft+=14)},F=p=>{_(p)},_=async p=>{const g=N.value;if(L(),N.value=null,!g||!g.moved)return;D.value=Date.now();const b=document.elementFromPoint(p.clientX,p.clientY),I=b==null?void 0:b.closest(".hall-col"),H=I==null?void 0:I.getAttribute("data-schedule-id"),X=H?hi(H):void 0;if(I&&X){const ue=A(I,p.clientY);await yl(X,ue)}U()},L=()=>{window.removeEventListener("pointermove",Ee),window.removeEventListener("pointerup",F),window.removeEventListener("pointercancel",te),window.removeEventListener("keydown",he)},U=()=>{N.value=null,$.value=null,x.value=void 0,M.value=null,k.value=null,document.body.style.userSelect="",document.body.style.cursor="",D.value=Date.now()},te=()=>{L(),U()},he=p=>{p.key==="Escape"&&te()};t.onBeforeUnmount(()=>{L(),Ir(),document.body.style.userSelect="",document.body.style.cursor=""});const ye=p=>{if(!p)return null;for(const g of e.days||[])for(const b of g.schedules||[]){const I=(b.sessions||[]).find(X=>X.id===p);if(I)return{kind:"session",item:I,schedule:b};const H=r(b).find(X=>X.id===p);if(H)return{kind:"slot",item:H,schedule:b}}return null},at=()=>{var p;return ye((p=$.value)==null?void 0:p.id)},uo=(p,g)=>{g.preventDefault(),g.stopPropagation();const b=p.item,I=de(b.startTime),H=de(b.endTime);if(!isFinite(I)||!isFinite(H))return;const X=g.clientY;P.value=!0;const ue=T=>{const Q=(T.clientY-X)/fe.value*60,J=li(H+Q,un);b.endTime=it(Math.max(J,I+un))},$e=async()=>{window.removeEventListener("pointermove",ue),window.removeEventListener("pointerup",Ve),P.value=!1,D.value=Date.now();const T=ye(b.id);T&&(await St(b,T.kind),await e.persist.refresh())},Ve=()=>{$e()};window.addEventListener("pointermove",ue),window.addEventListener("pointerup",Ve)},pt=t.ref(null),Nr=(p,g,b)=>{if(b.target.closest(".nested-edit, .nested-resize")||b.button!==0||P.value)return;const I=b.target.closest(".session-perfoms"),H=de(p.startTime),X=de(p.endTime),ue=si(g.startTime,g.endTime);!I||!isFinite(H)||!isFinite(X)||X<=H||(pt.value={perfom:g,session:p,startX:b.clientX,startY:b.clientY,moved:!1,savedStart:g.startTime,savedEnd:g.endTime,sessionStart:H,sessionDur:X-H,durMin:isFinite(ue)&&ue>0?ue:30,container:I},window.addEventListener("pointermove",ml),window.addEventListener("pointerup",pl),window.addEventListener("pointercancel",Mr),window.addEventListener("keydown",gl))},ml=p=>{const g=pt.value;if(!g)return;if(!g.moved){if(Math.hypot(p.clientX-g.startX,p.clientY-g.startY)<Ca)return;g.moved=!0,document.body.style.userSelect="none",document.body.style.cursor="grabbing"}const b=g.container.getBoundingClientRect(),I=Math.min(Math.max((p.clientY-b.top)/b.height,0),1);let H=g.sessionStart+li(I*g.sessionDur,un);const X=g.sessionStart+g.sessionDur-g.durMin;H=Math.min(Math.max(H,g.sessionStart),Math.max(X,g.sessionStart)),g.perfom.startTime=it(H),g.perfom.endTime=it(H+g.durMin),k.value={x:p.clientX,y:p.clientY}},pl=p=>{dw(p)},dw=async p=>{var ue;const g=pt.value;if(Ir(),pt.value=null,k.value=null,document.body.style.userSelect="",document.body.style.cursor="",!g||!g.moved)return;D.value=Date.now();const b=document.elementFromPoint(p.clientX,p.clientY),I=b==null?void 0:b.closest(".hall-col"),H=I==null?void 0:I.getAttribute("data-schedule-id"),X=H?hi(H):void 0;if(I&&X){$.value={kind:"slot",id:g.perfom.id,name:g.perfom.name||i.value.slot,duration:g.durMin};const $e=A(I,p.clientY),Ve=it($e),T=si(g.perfom.startTime,g.perfom.endTime),Q=dn(Ve,T>0?T:30),J=((ue=Sl(g.perfom))==null?void 0:ue.id)===X.id&&g.perfom.startTime===Ve&&g.perfom.endTime===Q;await yl(X,$e),J&&(await e.persist.updateSlot(g.perfom),await e.persist.refresh()),$.value=null;return}g.perfom.startTime=zn(g.perfom.startTime),g.perfom.endTime=zn(g.perfom.endTime),g.perfom.startTime&&(await e.persist.updateSlot(g.perfom),await e.persist.refresh())},Mr=()=>{const p=pt.value;Ir(),p&&(p.perfom.startTime=p.savedStart,p.perfom.endTime=p.savedEnd),pt.value=null,k.value=null,document.body.style.userSelect="",document.body.style.cursor=""},Ir=()=>{window.removeEventListener("pointermove",ml),window.removeEventListener("pointerup",pl),window.removeEventListener("pointercancel",Mr),window.removeEventListener("keydown",gl)},gl=p=>{p.key==="Escape"&&Mr()},uw=(p,g,b)=>{b.preventDefault(),b.stopPropagation();const I=de(p.startTime),H=de(p.endTime),X=de(g.startTime),ue=b.target.closest(".nested-perfom"),$e=ue==null?void 0:ue.closest(".session-perfoms");if(!ue||!$e||!isFinite(I)||!isFinite(H)||H<=I||!isFinite(X))return;const Ve=$e.getBoundingClientRect(),T=H-I;P.value=!0;const Q=yn=>{const yw=Math.min(Math.max((yn.clientY-Ve.top)/Ve.height,0),1),ww=Math.min(Math.max(X+un,I+li(yw*T,un)),H);g.endTime=it(ww)},J=async()=>{window.removeEventListener("pointermove",Q),window.removeEventListener("pointerup",q),P.value=!1,D.value=Date.now(),await e.persist.updateSlot(g),await e.persist.refresh()},q=()=>{J()};window.addEventListener("pointermove",Q),window.addEventListener("pointerup",q)},yl=async(p,g)=>{var Q;x.value=void 0,M.value=null,k.value=null;const b=at();if(!b)return;const I=it(g),H=si(b.item.startTime,b.item.endTime),X=dn(I,H>0?H:30);if(((Q=b.schedule)==null?void 0:Q.id)===p.id&&b.item.startTime===I&&b.item.endTime===X)return;const ue=b.item.startTime;if(b.item.startTime=I,b.item.endTime=X,b.kind==="slot"){const J=Vr(p.sessions,de(I),de(X),de);J?b.item.sessionId=J.id:delete b.item.sessionId}if(b.kind==="session"){const J=de(I)-de(ue);for(const q of We(b.item))q.startTime&&(q.startTime=dn(q.startTime,J),q.endTime&&(q.endTime=dn(q.endTime,J)),q.scheduleId=p.id,await St(q,"slot"))}const $e=b.schedule,Ve=b.kind==="session"?p.sessions:r(p),T=b.item;if($e&&$e.id!==p.id){T.scheduleId=p.id;const J=b.kind==="session"?$e.sessions:r($e);R.H.Classes.RemoveFromClassById(T.id,J,[]),Ve.push(T)}await St(T,b.kind),await e.persist.refresh()},fw=async(p,g)=>{if(g.target.closest(".timeline-block"))return;const b=A(g.currentTarget,g.clientY),I=o.value.createSlot(p);I.startTime=it(b),I.endTime=it(b+30);const H=Vr(p.sessions,b,b+30,de);H!=null&&H.id&&(I.sessionId=H.id),await e.persist.createSlot(I),await e.persist.refresh();const X=ye(I.id);X&&mi(X)},wl=async(p,g,b)=>{if(p.added){if(p.added.element.scheduleId=g.id,b==="slot"&&p.added.element.sessionId&&((g.sessions||[]).some(H=>H.id===p.added.element.sessionId)||delete p.added.element.sessionId),await St(p.added.element,b),b==="session")for(const I of s(p.added.element))I.scheduleId=g.id,await e.persist.updateSlot(I);await e.persist.refresh()}},hi=p=>{for(const g of e.days||[]){const b=(g.schedules||[]).find(I=>I.id===p);if(b)return b}},Vr=(p,g,b,I)=>wa(p,g,b,I),bl=p=>((p==null?void 0:p.sessions)||[]).map(g=>({id:g.id,label:d(g)})),Sl=p=>{for(const g of e.days||[])for(const b of g.schedules||[])if(r(b).some(I=>I.id===p.id)||p.sessionId&&(b.sessions||[]).some(I=>I.id===p.sessionId))return b},Cl=t.computed(()=>{const p=B.value;if(p)return p.kind==="session"?hi(p.item.scheduleId)||mw(p.item):Sl(p.item)}),hw=t.computed(()=>{const p=B.value;return!p||p.kind!=="slot"?[]:bl(Cl.value)}),mw=(p,g)=>{for(const b of e.days||[])for(const I of b.schedules||[])if((I.sessions||[]).some(H=>H.id===p.id))return I},kl=async(p,g)=>{g?p.sessionId=g:delete p.sessionId,await e.persist.updateSlot(p),await e.persist.refresh()},xl=async p=>{const g=o.value.createSession(p);await e.persist.createSession(g),await e.persist.refresh()},El=async p=>{const g=o.value.createSlot(p),b=[...r(p)].sort(tr).slice(-1)[0];g.startTime=zn(b==null?void 0:b.endTime)||"9:00",g.endTime=dn(g.startTime,30),await e.persist.createSlot(g),await e.persist.refresh()},Tr=async(p,g)=>{if(g==="slot")await e.persist.removeSlot(p);else{for(const b of s(p))delete b.sessionId,await e.persist.updateSlot(b);await e.persist.removeSession(p)}await e.persist.refresh()},St=async(p,g)=>{const b=zn(p.startTime),I=zn(p.endTime);if(!b){e.persist.notify("warning",i.value.correctStartTime);return}p.startTime=b,p.endTime=I||dn(b,30),g==="slot"?await e.persist.updateSlot(p):await e.persist.updateSession(p)},mi=p=>{P.value||Date.now()-D.value<400||(B.value={kind:p.kind,item:p.item},C.value=!0)},pw=async()=>{const p=B.value;p&&(await St(p.item,p.kind),C.value=!1,B.value=null,await e.persist.refresh())},gw=async()=>{const p=B.value;p&&(await Tr(p.item,p.kind),C.value=!1,B.value=null)};return e.persist.loadOptions&&e.persist.loadOptions(),(p,g)=>{var $e,Ve;const b=t.resolveComponent("PInput"),I=t.resolveComponent("PButton"),H=t.resolveComponent("PTooltip"),X=t.resolveComponent("PSelect"),ue=t.resolveComponent("PDialog");return t.openBlock(),t.createElementBlock("div",rm,[($e=n.days)!=null&&$e.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",am,[t.createVNode(t.unref(V.QTabs),{modelValue:h.value,"onUpdate:modelValue":g[0]||(g[0]=T=>h.value=T),dense:"",class:"day-tabs","active-color":"primary"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Pe.value,T=>(t.openBlock(),t.createBlock(t.unref(V.QTab),{key:T.id,name:T.id,label:hn(T)},null,8,["name","label"]))),128))]),_:1},8,["modelValue"]),t.createVNode(t.unref(V.QSpace)),ke.value?(t.openBlock(),t.createBlock(b,{key:0,"model-value":Ye(ke.value.date),label:i.value.date,type:"date",dense:"",outlined:"",class:"date-input","onUpdate:modelValue":g[1]||(g[1]=T=>It(ke.value,T))},null,8,["model-value","label"])):t.createCommentVNode("",!0),t.createVNode(I,{size:"sm",color:"negative",outline:"",icon:"delete",label:i.value.deleteDay,disable:!ke.value,onClick:g[2]||(g[2]=T=>Vt(ke.value))},null,8,["label","disable"]),t.createVNode(I,{size:"sm",color:"primary",outline:"",icon:"event",label:i.value.addDay,onClick:Xt},null,8,["label"]),t.createVNode(I,{size:"sm",color:"primary",outline:"",icon:"add",label:i.value.addHall,onClick:nt},null,8,["label"]),f.value==="grid"?(t.openBlock(),t.createElementBlock("div",lm,[t.createVNode(t.unref(V.QIcon),{name:"zoom_in",size:"18px",class:"text-grey-6"}),t.createVNode(t.unref(V.QBtnToggle),{modelValue:fe.value,"onUpdate:modelValue":g[3]||(g[3]=T=>fe.value=T),"toggle-color":"primary",options:K,size:"sm",class:"zoom-toggle"},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.createVNode(t.unref(V.QBtnToggle),{modelValue:f.value,"onUpdate:modelValue":g[4]||(g[4]=T=>f.value=T),"toggle-color":"primary",options:[{label:i.value.grid,value:"grid",icon:"calendar_view_week"},{label:i.value.list,value:"list",icon:"view_list"}],size:"sm",class:"view-toggle"},null,8,["modelValue","options"])]),f.value==="grid"?(t.openBlock(),t.createElementBlock("div",cm,[mt(ke.value).length?(t.openBlock(),t.createElementBlock("div",{key:1,ref_key:"gridScrollRef",ref:Z,class:"grid-scroll"},[t.createElementVNode("div",{class:"grid-wrap",style:t.normalizeStyle({"--halls":mt(ke.value).length,"--hours":Math.max(be.value.total/60,1),"--half-hours":Math.max(be.value.total/60*2,2)})},[t.createElementVNode("div",um,[g[15]||(g[15]=t.createElementVNode("div",{class:"time-gutter"},null,-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(mt(ke.value),T=>(t.openBlock(),t.createElementBlock("div",{key:T.id,class:t.normalizeClass(["hall-head",{"drag-over":x.value===T.id}])},[t.createElementVNode("div",fm,[t.createVNode(t.unref(V.QIcon),{name:"meeting_room",size:"15px"}),t.createElementVNode("span",hm,t.toDisplayString(wt(T)),1),t.createVNode(I,{size:"sm",flat:"",dense:"",color:"primary",icon:"mic",onClick:Q=>El(T)},{default:t.withCtx(()=>[t.createVNode(H,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value.addSlot),1)]),_:1})]),_:1},8,["onClick"]),t.createVNode(I,{size:"sm",flat:"",dense:"",color:"primary",icon:"groups",onClick:Q=>xl(T)},{default:t.withCtx(()=>[t.createVNode(H,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value.addSession),1)]),_:1})]),_:1},8,["onClick"]),t.createVNode(I,{size:"sm",flat:"",dense:"",color:"negative",icon:"delete",onClick:Q=>ge(T)},{default:t.withCtx(()=>[t.createVNode(H,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value.deleteHall),1)]),_:1})]),_:1},8,["onClick"])])],2))),128))]),t.createElementVNode("div",{class:"grid-body",style:t.normalizeStyle({height:Qe.value})},[t.createElementVNode("div",mm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Ze.value,T=>(t.openBlock(),t.createElementBlock("div",{key:T.min,class:"hour-label",style:t.normalizeStyle({top:(T.min-be.value.start)/be.value.total*100+"%"})},t.toDisplayString(T.label),5))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ee.value,T=>(t.openBlock(),t.createElementBlock("div",{key:T.min,class:"half-label",style:t.normalizeStyle({top:(T.min-be.value.start)/be.value.total*100+"%"})},t.toDisplayString(T.label),5))),128))]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(mt(ke.value),T=>(t.openBlock(),t.createElementBlock("div",{key:T.id,class:t.normalizeClass(["hall-col",{"drag-over":x.value===T.id}]),"data-schedule-id":T.id,onDblclick:Q=>fw(T,Q)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Me(T),Q=>{var J;return t.openBlock(),t.createElementBlock("div",{key:Q.item.id,class:t.normalizeClass(["timeline-block",[Q.kind,{conflict:co(T,Q),dragging:((J=$.value)==null?void 0:J.id)===Q.item.id},Un(Q)]]),style:t.normalizeStyle(Ie(Q)),title:fi(Q),onPointerdown:q=>Y(Q,q),onClick:q=>mi(Q)},[t.createVNode(t.unref(V.QIcon),{name:"drag_indicator",class:"drag-handle"}),t.createElementVNode("div",ym,[t.createElementVNode("div",wm,t.toDisplayString(Q.item.startTime)+"–"+t.toDisplayString(Q.item.endTime),1),t.createElementVNode("div",bm,t.toDisplayString(Br(Q)),1),Q.kind==="slot"&&u(Q.item)?(t.openBlock(),t.createElementBlock("div",Sm,t.toDisplayString(u(Q.item)),1)):t.createCommentVNode("",!0)]),Q.kind==="session"&&We(Q.item).length?(t.openBlock(),t.createElementBlock("div",Cm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(We(Q.item),q=>(t.openBlock(),t.createElementBlock("div",{key:q.id,class:t.normalizeClass(["nested-perfom",E(Q,q)]),style:t.normalizeStyle(Er(Q.item,q)),title:S(q),onPointerdown:t.withModifiers(yn=>Nr(Q.item,q,yn),["stop"]),onClick:t.withModifiers(yn=>mi({kind:"slot",item:q}),["stop"])},[t.createElementVNode("div",xm,t.toDisplayString(q.startTime)+"–"+t.toDisplayString(q.endTime),1),t.createElementVNode("div",Em,t.toDisplayString($r(q,Un(Q))),1),u(q)?(t.openBlock(),t.createElementBlock("div",Bm,t.toDisplayString(u(q)),1)):t.createCommentVNode("",!0),t.createVNode(t.unref(V.QIcon),{name:"edit",size:"11px",class:"nested-edit"}),t.createElementVNode("div",{class:"nested-resize",title:i.value.changeDurationTitle,onPointerdown:t.withModifiers(yn=>uw(Q.item,q,yn),["stop","prevent"])},null,40,$m)],46,km))),128))])):t.createCommentVNode("",!0),t.createElementVNode("div",Nm,[co(T,Q)?(t.openBlock(),t.createBlock(t.unref(V.QIcon),{key:0,name:"warning",size:"12px",class:"conflict-icon"},{default:t.withCtx(()=>[t.createVNode(H,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value.conflictTitle),1)]),_:1})]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(V.QIcon),{name:"edit",size:"13px",class:"edit-icon",onClick:t.withModifiers(q=>mi(Q),["stop"])},{default:t.withCtx(()=>[t.createVNode(H,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value.edit),1)]),_:1})]),_:1},8,["onClick"])]),t.createElementVNode("div",{class:"block-resize",title:i.value.changeDurationTitle,onPointerdown:t.withModifiers(q=>uo(Q,q),["stop","prevent"])},null,40,Mm)],46,gm)}),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(mn(T),Q=>{var J;return t.openBlock(),t.createElementBlock("div",{key:"spine-"+Q.item.id,class:t.normalizeClass(["session-spine",{dragging:((J=$.value)==null?void 0:J.id)===Q.item.id}]),style:t.normalizeStyle(Ie(Q)),title:d(Q.item)},[t.createVNode(t.unref(V.QIcon),{name:"groups",size:"11px"}),t.createElementVNode("span",Vm,t.toDisplayString(d(Q.item)),1)],14,Im)}),128)),M.value&&M.value.scheduleId===T.id&&$.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["drop-zone",{conflict:Rt.value}]),style:t.normalizeStyle(pn.value)},null,6)):t.createCommentVNode("",!0),M.value&&M.value.scheduleId===T.id&&$.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["drop-preview",[$.value.kind,{conflict:Rt.value}]]),style:t.normalizeStyle(rt.value)},[t.createElementVNode("div",Tm,[t.createTextVNode(t.toDisplayString(M.value.time)+"–"+t.toDisplayString(st.value)+" ",1),M.value.session?(t.openBlock(),t.createElementBlock("span",Rm,t.toDisplayString(i.value.intoSession),1)):t.createCommentVNode("",!0),bt.value?(t.openBlock(),t.createElementBlock("span",Pm," ⚠ "+t.toDisplayString(i.value.conflictCount)+": "+t.toDisplayString(bt.value),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",vm,t.toDisplayString($.value.name),1)],6)):t.createCommentVNode("",!0)],42,pm))),128))],4),t.createElementVNode("div",Am,t.toDisplayString(i.value.gridHint),1)],4)],512)):(t.openBlock(),t.createElementBlock("div",dm,[t.createTextVNode(t.toDisplayString(i.value.noHalls)+" ",1),t.createVNode(I,{flat:"",color:"primary",size:"sm",label:i.value.addHall,onClick:nt},null,8,["label"])])),k.value&&M.value?(t.openBlock(),t.createElementBlock("div",{key:2,class:"drag-time-chip",style:t.normalizeStyle({left:k.value.x+"px",top:k.value.y+"px"})},[t.createVNode(t.unref(V.QIcon),{name:"schedule",size:"12px"}),t.createTextVNode(" "+t.toDisplayString(M.value.time)+" · "+t.toDisplayString(M.value.hallName)+" ",1),M.value.session?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[g[16]||(g[16]=t.createTextVNode(" · ",-1)),t.createVNode(t.unref(V.QIcon),{name:"groups",size:"12px"}),t.createTextVNode(" "+t.toDisplayString(i.value.intoSession)+" «"+t.toDisplayString(d(M.value.session))+"» ",1)],64)):t.createCommentVNode("",!0),bt.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[g[17]||(g[17]=t.createTextVNode(" · ",-1)),t.createVNode(t.unref(V.QIcon),{name:"warning",size:"12px"}),t.createTextVNode(" "+t.toDisplayString(bt.value),1)],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),(Ve=pt.value)!=null&&Ve.moved&&k.value?(t.openBlock(),t.createElementBlock("div",{key:3,class:"drag-time-chip",style:t.normalizeStyle({left:k.value.x+"px",top:k.value.y+"px"})},[t.createVNode(t.unref(V.QIcon),{name:"schedule",size:"12px"}),t.createTextVNode(" "+t.toDisplayString(pt.value.perfom.startTime)+"–"+t.toDisplayString(pt.value.perfom.endTime)+" · "+t.toDisplayString(i.value.intoSession),1)],4)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",zm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(mt(ke.value),T=>(t.openBlock(),t.createBlock(t.unref(V.QCard),{key:T.id,class:"hall-card q-mb-md"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.QCardSection),{class:"hall-card-head"},{default:t.withCtx(()=>[t.createElementVNode("div",Dm,[t.createVNode(t.unref(V.QIcon),{name:"meeting_room",size:"18px",color:"primary"}),t.createElementVNode("span",Fm,t.toDisplayString(wt(T)),1),t.createVNode(t.unref(V.QSpace)),t.createVNode(I,{size:"sm",flat:"",dense:"",color:"primary",icon:"add",label:i.value.session,onClick:Q=>xl(T)},null,8,["label","onClick"]),t.createVNode(I,{size:"sm",flat:"",dense:"",color:"primary",icon:"add",label:i.value.slot,onClick:Q=>El(T)},null,8,["label","onClick"]),t.createVNode(I,{size:"sm",flat:"",dense:"",color:"negative",icon:"delete",onClick:Q=>ge(T)},{default:t.withCtx(()=>[t.createVNode(H,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value.deleteHall),1)]),_:1})]),_:1},8,["onClick"])])]),_:2},1024),t.createVNode(t.unref(V.QCardSection),{class:"q-pt-none"},{default:t.withCtx(()=>{var Q;return[(Q=T.sessions)!=null&&Q.length?(t.openBlock(),t.createElementBlock("div",Om,[t.createElementVNode("div",_m,[t.createVNode(t.unref(V.QIcon),{name:"groups",size:"15px"}),t.createTextVNode(" "+t.toDisplayString(i.value.sessionsTitle),1)]),t.createVNode(t.unref(ho),{list:T.sessions,"item-key":"id",group:"sessions",handle:".drag-handle",class:"draggable-list",onChange:J=>wl(J,T,"session")},{item:t.withCtx(({element:J})=>[t.createElementVNode("div",Lm,[t.createVNode(t.unref(V.QIcon),{name:"drag_indicator",class:"drag-handle"}),t.createVNode(b,{"model-value":J.name,label:i.value.name,dense:"",outlined:"",class:"col-4","onUpdate:modelValue":q=>J.name=q,onBlur:q=>St(J,"session")},null,8,["model-value","label","onUpdate:modelValue","onBlur"]),t.createVNode(b,{"model-value":J.startTime,label:i.value.startTime,type:"time",dense:"",outlined:"",class:"time-input","onUpdate:modelValue":q=>J.startTime=q,onBlur:q=>St(J,"session")},null,8,["model-value","label","onUpdate:modelValue","onBlur"]),t.createVNode(b,{"model-value":J.endTime,label:i.value.endTime,type:"time",dense:"",outlined:"",class:"time-input","onUpdate:modelValue":q=>J.endTime=q,onBlur:q=>St(J,"session")},null,8,["model-value","label","onUpdate:modelValue","onBlur"]),t.renderSlot(p.$slots,"session-row-extra",{element:J,schedule:T},void 0,!0),t.createVNode(I,{size:"sm",flat:"",dense:"",color:"negative",icon:"delete",onClick:q=>Tr(J,"session")},null,8,["onClick"])]),We(J).length?(t.openBlock(),t.createElementBlock("div",Hm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(We(J),q=>(t.openBlock(),t.createElementBlock("div",{key:q.id,class:"list-row nested-row"},[t.createVNode(t.unref(V.QIcon),{name:"mic",size:"14px",class:"nested-icon"}),t.createElementVNode("div",Um,t.toDisplayString(c(q)),1),t.createElementVNode("div",qm,t.toDisplayString(q.startTime)+"–"+t.toDisplayString(q.endTime),1),t.createVNode(t.unref(V.QSpace)),t.createVNode(I,{size:"sm",flat:"",dense:"",color:"primary",icon:"edit",onClick:yn=>mi({kind:"slot",item:q})},null,8,["onClick"])]))),128))])):t.createCommentVNode("",!0)]),_:2},1032,["list","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",jm,[t.createElementVNode("div",Wm,[t.createVNode(t.unref(V.QIcon),{name:"mic",size:"15px"}),t.createTextVNode(" "+t.toDisplayString(i.value.slotsTitle),1)]),t.createVNode(t.unref(ho),{list:Lt(T),"item-key":"id",group:"slots",handle:".drag-handle",class:"draggable-list",onChange:J=>wl(J,T,"slot")},{item:t.withCtx(({element:J})=>[t.createElementVNode("div",Gm,[t.createVNode(t.unref(V.QIcon),{name:"drag_indicator",class:"drag-handle"}),t.createVNode(b,{"model-value":J.name,label:i.value.name,dense:"",outlined:"",class:"col-4","onUpdate:modelValue":q=>J.name=q,onBlur:q=>St(J,"slot")},null,8,["model-value","label","onUpdate:modelValue","onBlur"]),t.createVNode(b,{"model-value":J.startTime,label:i.value.startTime,type:"time",dense:"",outlined:"",class:"time-input","onUpdate:modelValue":q=>J.startTime=q,onBlur:q=>St(J,"slot")},null,8,["model-value","label","onUpdate:modelValue","onBlur"]),t.createVNode(b,{"model-value":J.endTime,label:i.value.endTime,type:"time",dense:"",outlined:"",class:"time-input","onUpdate:modelValue":q=>J.endTime=q,onBlur:q=>St(J,"slot")},null,8,["model-value","label","onUpdate:modelValue","onBlur"]),t.createVNode(X,{"model-value":J.sessionId,label:i.value.sessionSelect,dense:"",outlined:"",clearable:"",class:"session-select",options:bl(T),"option-value":"id","option-label":"label","onUpdate:modelValue":q=>kl(J,q)},null,8,["model-value","label","options","onUpdate:modelValue"]),t.renderSlot(p.$slots,"slot-row-extra",{element:J,schedule:T},void 0,!0),t.createVNode(I,{size:"sm",flat:"",dense:"",color:"negative",icon:"delete",onClick:q=>Tr(J,"slot")},null,8,["onClick"])])]),_:2},1032,["list","onChange"]),!Lt(T).length&&!Hn(T)?(t.openBlock(),t.createElementBlock("div",Qm,t.toDisplayString(i.value.noSlotsInDay),1)):t.createCommentVNode("",!0)])]}),_:2},1024)]),_:2},1024))),128)),t.createElementVNode("div",Ym,t.toDisplayString(i.value.listHint),1)]))],64)):(t.openBlock(),t.createElementBlock("div",sm,[t.createVNode(t.unref(V.QIcon),{name:"event_busy",size:"48px",class:"q-mb-sm"}),t.createElementVNode("div",null,t.toDisplayString(i.value.noDays),1)])),t.createVNode(ue,{modelValue:m.value,"onUpdate:modelValue":g[7]||(g[7]=T=>m.value=T)},{default:t.withCtx(()=>[t.createVNode(t.unref(V.QCard),{style:{width:"700px","max-width":"80vw"}},{default:t.withCtx(()=>[t.createVNode(t.unref(V.QCardSection),null,{default:t.withCtx(()=>[t.createElementVNode("div",Xm,t.toDisplayString(i.value.addHall),1)]),_:1}),t.createVNode(t.unref(V.QCardSection),null,{default:t.withCtx(()=>[t.createElementVNode("div",Zm,[t.createVNode(b,{modelValue:w.value,"onUpdate:modelValue":g[5]||(g[5]=T=>w.value=T),label:i.value.newHallPlaceholder,dense:"",outlined:"",class:"col",onKeyup:t.withKeys(Tt,["enter"])},null,8,["modelValue","label"]),t.createVNode(I,{color:"primary",label:i.value.create,icon:"add",dense:"",onClick:Tt},null,8,["label"])]),t.renderSlot(p.$slots,"places-list",{day:ke.value,add:Le},()=>[we.value.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Jm,t.toDisplayString(i.value.noHalls),1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(we.value,T=>(t.openBlock(),t.createElementBlock("div",{key:T.id,class:"place-row row items-center q-gutter-sm"},[t.createVNode(t.unref(V.QIcon),{name:"meeting_room",size:"16px",color:"primary"}),t.createElementVNode("span",Km,t.toDisplayString(a(T)),1),t.createVNode(I,{size:"sm",color:"primary",outline:"",label:i.value.addHall,icon:"add",dense:"",onClick:Q=>Le(T)},null,8,["label","onClick"])]))),128))],!0)]),_:3}),t.createVNode(t.unref(V.QCardActions),{align:"right"},{default:t.withCtx(()=>[t.createVNode(I,{label:i.value.close,color:"primary",onClick:g[6]||(g[6]=T=>m.value=!1)},null,8,["label"])]),_:1})]),_:3})]),_:3},8,["modelValue"]),t.createVNode(ue,{modelValue:C.value,"onUpdate:modelValue":g[14]||(g[14]=T=>C.value=T)},{default:t.withCtx(()=>[t.createVNode(t.unref(V.QCard),{style:{width:"640px","max-width":"90vw"}},{default:t.withCtx(()=>[t.createVNode(t.unref(V.QCardSection),null,{default:t.withCtx(()=>{var T;return[t.createElementVNode("div",ep,t.toDisplayString(((T=B.value)==null?void 0:T.kind)==="session"?i.value.session:i.value.slot),1)]}),_:1}),B.value?(t.openBlock(),t.createBlock(t.unref(V.QCardSection),{key:0,class:"q-pt-none"},{default:t.withCtx(()=>[t.createVNode(b,{modelValue:B.value.item.name,"onUpdate:modelValue":g[8]||(g[8]=T=>B.value.item.name=T),label:i.value.name,dense:"",outlined:"",class:"q-mb-sm"},null,8,["modelValue","label"]),t.createElementVNode("div",tp,[t.createElementVNode("div",np,[t.createVNode(b,{modelValue:B.value.item.startTime,"onUpdate:modelValue":g[9]||(g[9]=T=>B.value.item.startTime=T),label:i.value.startTime,type:"time",dense:"",outlined:""},null,8,["modelValue","label"])]),t.createElementVNode("div",ip,[t.createVNode(b,{modelValue:B.value.item.endTime,"onUpdate:modelValue":g[10]||(g[10]=T=>B.value.item.endTime=T),label:i.value.endTime,type:"time",dense:"",outlined:""},null,8,["modelValue","label"])])]),B.value.kind==="slot"?(t.openBlock(),t.createBlock(X,{key:0,"model-value":B.value.item.sessionId,label:i.value.sessionSelect,dense:"",outlined:"",clearable:"",class:"q-mb-sm",options:hw.value,"option-value":"id","option-label":"label","onUpdate:modelValue":g[11]||(g[11]=T=>kl(B.value.item,T))},null,8,["model-value","label","options"])):t.createCommentVNode("",!0),t.renderSlot(p.$slots,"edit-form",{kind:B.value.kind,item:B.value.item,schedule:Cl.value},void 0,!0),B.value.kind==="slot"?(t.openBlock(),t.createBlock(b,{key:1,modelValue:B.value.item.description,"onUpdate:modelValue":g[12]||(g[12]=T=>B.value.item.description=T),label:i.value.description,type:"textarea",rows:"2",dense:"",outlined:""},null,8,["modelValue","label"])):t.createCommentVNode("",!0)]),_:3})):t.createCommentVNode("",!0),t.createVNode(t.unref(V.QCardActions),{align:"right"},{default:t.withCtx(()=>[B.value?(t.openBlock(),t.createBlock(I,{key:0,flat:"",color:"negative",label:i.value.delete,onClick:gw},null,8,["label"])):t.createCommentVNode("",!0),t.createVNode(t.unref(V.QSpace)),t.createVNode(I,{flat:"",label:i.value.cancel,color:"primary",onClick:g[13]||(g[13]=T=>C.value=!1)},null,8,["label"]),t.createVNode(I,{label:i.value.save,color:"primary",onClick:pw},null,8,["label"])]),_:1})]),_:3})]),_:3},8,["modelValue"])])}}}),[["__scopeId","data-v-ad5bdb03"]]),op={class:"schedule-timeline"},rp={key:0,class:"timeline-container"},sp={class:"day-header"},ap={class:"day-title"},lp={class:"timeline"},cp={key:0,class:"schedule-place"},dp={class:"events-column"},up={key:0,class:"event-item session-item"},fp={class:"event-content"},hp={class:"event-time"},mp={class:"event-main"},pp={class:"event-name"},gp={key:0,class:"speakers-list"},yp=["onClick"],wp={class:"speaker-details"},bp={class:"speaker-name"},Sp={class:"bio-text"},Cp=["onClick"],kp={key:0,class:"perfom-divider"},xp={class:"event-content"},Ep={class:"event-time"},Bp={class:"event-main"},$p={class:"event-name"},Np={class:"event-badges"},Mp={key:0,class:"speakers-list"},Ip=["onClick"],Vp={class:"speaker-details"},Tp={class:"speaker-name"},Rp={class:"bio-text"},Pp={key:1,class:"no-program"},xa=v(t.defineComponent({__name:"ScheduleTimeline",props:{days:{},dayTitle:{type:Function,default:void 0},placeName:{type:Function,default:void 0},slotName:{type:Function,default:void 0},slotParticipants:{type:Function,default:void 0},sessionParticipants:{type:Function,default:void 0},participantName:{type:Function,default:void 0},participantBio:{type:Function,default:void 0},sessionName:{type:Function,default:void 0},noProgramText:{default:"Программа пока не опубликована"},slotListOf:{type:Function,default:void 0},nestedSlotListOf:{type:Function,default:void 0},slotClickable:{type:Boolean,default:!1}},emits:["open-participant","slot-click"],setup(n,{emit:e}){const i=n,o=e,r=t.computed(()=>({noProgram:i.noProgramText||"Программа пока не опубликована"})),s=k=>{if(i.dayTitle)return i.dayTitle(k);const P=new Date(k.date);return isNaN(P.getTime())||P.getFullYear()<2e3?"":P.toLocaleDateString("ru-RU",{weekday:"long",day:"numeric",month:"long",year:"numeric"})},a=k=>{var P;return i.placeName?i.placeName(k):((P=k.place)==null?void 0:P.name)||k.placeName||""},d=k=>i.slotName?i.slotName(k):(k==null?void 0:k.name)||"",c=k=>i.sessionName?i.sessionName(k):(k==null?void 0:k.name)||"",u=k=>i.slotParticipants?i.slotParticipants(k):(k==null?void 0:k.participants)||[],f=k=>i.sessionParticipants?i.sessionParticipants(k):(k==null?void 0:k.participants)||[],h=k=>{var P,D;return i.participantName?i.participantName(k):(k==null?void 0:k.name)||(k==null?void 0:k.fullName)||((D=(P=k==null?void 0:k.human)==null?void 0:P.getFullName)==null?void 0:D.call(P))||""},m=k=>i.participantBio?i.participantBio(k):(k==null?void 0:k.bio)||(k==null?void 0:k.regalias)||"",w=k=>i.slotListOf?i.slotListOf(k):(k==null?void 0:k.slots)||[],C=k=>i.nestedSlotListOf?i.nestedSlotListOf(k):(k==null?void 0:k.slots)||[],B=k=>k.schedules.filter(P=>{var D;return w(P).length>0||(((D=P.sessions)==null?void 0:D.length)||0)>0}),$=k=>{const P=[],D=new Set((k.sessions||[]).map(K=>K.id));for(const K of k.sessions||[]){P.push({kind:"session",item:K,nested:!1,index:0});for(const fe of C(K))P.push({kind:"slot",item:fe,nested:!0,index:0})}let Z=0;for(const K of w(k).filter(fe=>!fe.sessionId||!D.has(fe.sessionId)))P.push({kind:"slot",item:K,nested:!1,index:Z++});return P},x=t.computed(()=>{var k;return(k=i.days)==null?void 0:k.some(P=>{var D;return(D=P.schedules)==null?void 0:D.some(Z=>{var K;return w(Z).length>0||(((K=Z.sessions)==null?void 0:K.length)||0)>0})})}),M=(k,P)=>`${k} - ${P}`;return(k,P)=>(t.openBlock(),t.createElementBlock("div",op,[x.value?(t.openBlock(),t.createElementBlock("div",rp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.days,D=>(t.openBlock(),t.createElementBlock("div",{key:D.id,class:"day-section"},[t.createElementVNode("div",sp,[t.createElementVNode("div",ap,[t.createVNode(t.unref(V.QIcon),{name:"calendar_month",size:"16px",class:"day-icon"}),t.createTextVNode(" "+t.toDisplayString(s(D)),1)])]),t.createElementVNode("div",lp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B(D),Z=>(t.openBlock(),t.createElementBlock("div",{key:Z.id,class:"time-slot"},[a(Z)?(t.openBlock(),t.createElementBlock("div",cp,[t.createVNode(t.unref(V.QIcon),{name:"meeting_room",size:"14px"}),t.createTextVNode(" "+t.toDisplayString(a(Z)),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",dp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList($(Z),K=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:K.item.id},[K.kind==="session"?(t.openBlock(),t.createElementBlock("div",up,[t.createElementVNode("div",fp,[t.createElementVNode("div",hp,t.toDisplayString(M(K.item.startTime,K.item.endTime)),1),t.createElementVNode("div",mp,[t.createElementVNode("div",pp,t.toDisplayString(c(K.item)),1),f(K.item).length?(t.openBlock(),t.createElementBlock("div",gp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f(K.item),fe=>(t.openBlock(),t.createElementBlock("div",{key:fe.id,class:"speaker-item",onClick:ht=>o("open-participant",fe)},[t.createElementVNode("div",wp,[t.createElementVNode("div",bp,[t.createVNode(t.unref(V.QIcon),{name:"groups",size:"13px",class:"chair-icon"}),t.createTextVNode(" "+t.toDisplayString(h(fe)),1)]),t.createElementVNode("div",Sp,t.toDisplayString(m(fe)),1)])],8,yp))),128))])):t.createCommentVNode("",!0)])])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["event-item",[{"event-active":K.item.active,"nested-item":K.nested},{clickable:i.slotClickable}]]),onClick:fe=>i.slotClickable&&o("slot-click",K.item)},[!K.nested&&K.index>0?(t.openBlock(),t.createElementBlock("div",kp)):t.createCommentVNode("",!0),t.createElementVNode("div",xp,[t.createElementVNode("div",Ep,t.toDisplayString(M(K.item.startTime,K.item.endTime)),1),t.createElementVNode("div",Bp,[t.createElementVNode("div",$p,t.toDisplayString(d(K.item)),1),t.createElementVNode("div",Np,[t.renderSlot(k.$slots,"badges",{item:K.item},void 0,!0)]),u(K.item).length?(t.openBlock(),t.createElementBlock("div",Mp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u(K.item),fe=>(t.openBlock(),t.createElementBlock("div",{key:fe.id,class:"speaker-item",onClick:ht=>o("open-participant",fe)},[t.createElementVNode("div",Vp,[t.createElementVNode("div",Tp,[t.createVNode(t.unref(V.QIcon),{name:"mic",size:"13px",class:"chair-icon"}),t.createTextVNode(" "+t.toDisplayString(h(fe)),1)]),t.createElementVNode("div",Rp,t.toDisplayString(m(fe)),1)])],8,Ip))),128))])):t.createCommentVNode("",!0)])])],10,Cp))],64))),128))])]))),128))])]))),128))])):(t.openBlock(),t.createElementBlock("div",Pp,[t.createVNode(t.unref(V.QIcon),{name:"event_note",size:"40px",class:"no-program-icon"}),t.createElementVNode("p",null,t.toDisplayString(r.value.noProgram),1)])),t.renderSlot(k.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-520f36ef"]]),vp=Object.freeze(Object.defineProperty({__proto__:null,ScheduleGridEditor:ka,ScheduleTimeline:xa},Symbol.toStringTag,{value:"Module"})),Ap=Object.freeze(Object.defineProperty({__proto__:null,addMtoHM:dn,blockSizeClass:ba,blockStyle:ma,byStart:tr,diffM:si,findEnclosingSession:wa,fromMin:it,gridBounds:ha,hasConflict:ga,intersects:ai,nestedConflict:ya,nestedSlotStyle:pa,normTime:zn,snapMinutes:li,toMin:de},Symbol.toStringTag,{value:"Module"}));let zp=class extends ce{constructor(){super(Yi,"schedule-days")}};const Dp=new zp;let Fp=class extends ce{constructor(){super(An,"schedule-places")}};const Op=new Fp;let _p=class extends ce{constructor(){super(vn,"schedule-sessions")}};const Lp=new _p;let Hp=class extends ce{constructor(){super(zt,"schedule-slots")}};const Up=new Hp;let qp=class extends ce{constructor(){super(ri,"schedule-timetables")}};const jp=new qp,Wp=Object.freeze(Object.defineProperty({__proto__:null,C:om,Components:vp,H:Ap,S:Object.freeze(Object.defineProperty({__proto__:null,ScheduleDaysStore:Dp,SchedulePlacesStore:Op,ScheduleSessionsStore:Lp,ScheduleSlotsStore:Up,SchedulesStore:jp},Symbol.toStringTag,{value:"Module"})),T:Object.freeze(Object.defineProperty({__proto__:null,defaultFactories:Sa,defaultScheduleLabels:nr},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),Gp=Object.freeze(Object.defineProperty({__proto__:null,ColorTheme:ii},Symbol.toStringTag,{value:"Module"}));let Qp=class extends ce{constructor(){super(ii,"color-themes")}};const Yp=new Qp,Xp=Object.freeze(Object.defineProperty({__proto__:null,Buildings:Ef,Chats:Rf,Docs:qf,Extracts:Yf,Forms:Sh,Menus:Mh,Pages:Jh,Schedule:Wp,Settings:Object.freeze(Object.defineProperty({__proto__:null,C:Gp,S:Object.freeze(Object.defineProperty({__proto__:null,ColorThemes:Yp},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),Ea=t.defineComponent({inheritAttrs:!1,__name:"PBadge",props:{label:{type:[String,Number],default:void 0},color:{type:String,default:""},textColor:{type:String,default:""},outline:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},floating:{type:Boolean,default:!1},multiLine:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1}},setup(n){const e=t.useAttrs(),i=t.computed(()=>{const o={};for(const r of Object.keys(e))["label","color","text-color","outline","rounded","floating","multi-line","transparent"].includes(r)||(o[r]=e[r]);return o});return(o,r)=>(t.openBlock(),t.createBlock(t.unref(V.QBadge),t.mergeProps(t.unref(i),{label:n.label||void 0,color:n.color||void 0,"text-color":n.textColor||void 0,outline:n.outline,rounded:n.rounded,floating:n.floating,"multi-line":n.multiLine,transparent:n.transparent}),{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},16,["label","color","text-color","outline","rounded","floating","multi-line","transparent"]))}}),Ke=t.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:Ut.M,required:!1},type:{type:String,default:me.Primary,required:!1},fontSize:{type:String,default:"",required:!1},disabled:{type:Boolean,default:!1,required:!1}},setup(n){const e=n,i=t.useAttrs(),o=t.computed(()=>{const x={};for(const M of Object.keys(i))["disable","color","size","flat","outline","unelevated","type"].includes(M)||(x[M]=i[M]);return x}),r=["submit","button","reset"],s=t.computed(()=>r.includes(e.type)),a=t.computed(()=>s.value?e.type:void 0),d=t.computed(()=>s.value?me.Primary:e.type),c=t.computed(()=>{const x={};return e.margin&&(x.margin=e.margin),e.padding&&(x.padding=e.padding),e.width&&(x.maxWidth=e.width,x.minWidth=e.width),e.height&&(x.minHeight=e.height,x.maxHeight=e.height),e.fontSize&&(x.fontSize=e.fontSize),x}),u={[me.Primary]:"primary",[me.Success]:"positive",[me.Warning]:"warning",[me.Error]:"negative",[me.Info]:"info"},f=t.computed(()=>i.color!==void 0?i.color:u[d.value]??"primary"),h={[Ut.XS]:"xs",[Ut.S]:"sm",[Ut.M]:"md",[Ut.L]:"lg",[Ut.XL]:"xl"},m=t.computed(()=>i.size!==void 0?i.size:["xs","sm","md","lg","xl"].includes(e.size)?e.size:h[e.size]??"md"),w=t.computed(()=>i.flat!==void 0?i.flat:["text","pag","text_ano"].includes(e.skin)),C=t.computed(()=>i.outline!==void 0?i.outline:e.skin==="invert"),B=t.computed(()=>i.unelevated!==void 0?i.unelevated:e.skin==="base"),$=t.computed(()=>i.disable??e.disabled);return(x,M)=>(t.openBlock(),t.createBlock(t.unref(V.QBtn),t.mergeProps(t.unref(o),{style:t.unref(c),color:t.unref(f),size:t.unref(m),flat:t.unref(w),outline:t.unref(C),unelevated:t.unref(B),disable:t.unref($),type:t.unref(a),"no-wrap":""}),{default:t.withCtx(()=>[t.renderSlot(x.$slots,"default"),t.createTextVNode(" "+t.toDisplayString(n.text),1)]),_:3},16,["style","color","size","flat","outline","unelevated","disable","type"]))}}),Ba=t.defineComponent({inheritAttrs:!1,__name:"PCheckBox",props:t.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:""},value:{type:[String,Boolean],default:void 0},size:{type:String,default:"md"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:t.mergeModels(["change"],["update:modelValue"]),setup(n,{emit:e}){const i=t.useModel(n,"modelValue"),o=e,r=t.useAttrs(),s=t.computed(()=>{const d={};for(const c of Object.keys(r))d[c]=r[c];return d}),a=()=>{o("change",i.value)};return(d,c)=>(t.openBlock(),t.createElementBlock("div",{class:"p-checkbox",style:t.normalizeStyle({padding:n.padding,margin:n.margin,maxWidth:n.width})},[t.createVNode(t.unref(V.QCheckbox),t.mergeProps({modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u)},t.unref(s),{label:n.label||void 0,size:n.size,style:{fontSize:n.fontSize},"onUpdate:modelValue":a}),null,16,["modelValue","label","size","style"])],4))}}),$a=t.defineComponent({inheritAttrs:!1,__name:"PChip",props:{label:{type:String,default:""},color:{type:String,default:""},textColor:{type:String,default:""},outline:{type:Boolean,default:!1},square:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},removable:{type:Boolean,default:!1}},emits:["remove","update:model-value","update:selected"],setup(n,{emit:e}){const i=e,o=t.useAttrs(),r=t.computed(()=>{const s={};for(const a of Object.keys(o))["label","color","text-color","outline","square","dense","removable"].includes(a)||(s[a]=o[a]);return s});return(s,a)=>(t.openBlock(),t.createBlock(t.unref(V.QChip),t.mergeProps(t.unref(r),{label:n.label||void 0,color:n.color||void 0,"text-color":n.textColor||void 0,outline:n.outline,square:n.square,dense:n.dense,removable:n.removable,onRemove:a[0]||(a[0]=d=>i("remove"))}),t.createSlots({default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:2},[s.$slots.avatar?{name:"avatar",fn:t.withCtx(()=>[t.renderSlot(s.$slots,"avatar")]),key:"0"}:void 0,s.$slots.remove?{name:"remove",fn:t.withCtx(()=>[t.renderSlot(s.$slots,"remove")]),key:"1"}:void 0]),1040,["label","color","text-color","outline","square","dense","removable"]))}}),Wt=v(t.defineComponent({inheritAttrs:!1,__name:"PInput",props:t.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},width:{type:String,required:!1,default:""},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"",required:!1},color:{type:String,default:"",required:!1},rules:{type:Array,required:!1,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["blur","input","focus","clear"],["update:modelValue"]),setup(n,{expose:e,emit:i}){const o=i,r=t.useModel(n,"modelValue"),s=t.useAttrs(),a=t.computed(()=>typeof s.id=="string"?s.id:void 0),d=t.computed(()=>{const C={};for(const B of Object.keys(s))B!=="id"&&B!=="disable"&&(C[B]=s[B]);return C}),c=n,u=t.computed(()=>s.disable??c.disabled),f=t.ref(null);function h(){var C;(C=f.value)==null||C.focus()}e({focus:h});const m=()=>{o("input",r.value)},w=t.computed(()=>{const C={};return c.margin&&(C.margin=c.margin),c.padding&&(C.padding=c.padding),c.width&&(C.width=c.width),c.borderColor&&(C["--p-border-color"]=c.borderColor),C});return(C,B)=>(t.openBlock(),t.createBlock(t.unref(V.QInput),t.mergeProps({ref_key:"input",ref:f,modelValue:r.value,"onUpdate:modelValue":B[0]||(B[0]=$=>r.value=$)},t.unref(d),{for:t.unref(a),label:n.label||void 0,mask:n.mask,disable:t.unref(u),rules:n.rules,"input-style":{color:n.color||void 0},style:t.unref(w),class:"p-input",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":m,onBlur:B[1]||(B[1]=$=>C.$emit("blur",r.value)),onFocus:B[2]||(B[2]=$=>C.$emit("focus",r.value)),onClear:B[3]||(B[3]=$=>C.$emit("clear"))}),t.createSlots({before:t.withCtx(()=>[t.renderSlot(C.$slots,"before",{},()=>[t.renderSlot(C.$slots,"default",{},void 0,!0)],!0)]),append:t.withCtx(()=>[t.renderSlot(C.$slots,"append",{},()=>[t.renderSlot(C.$slots,"right",{},void 0,!0)],!0)]),_:2},[C.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(C.$slots,"prepend",{},void 0,!0)]),key:"0"}:void 0,C.$slots.after?{name:"after",fn:t.withCtx(()=>[t.renderSlot(C.$slots,"after",{},void 0,!0)]),key:"1"}:void 0,C.$slots.label?{name:"label",fn:t.withCtx(()=>[t.renderSlot(C.$slots,"label",{},void 0,!0)]),key:"2"}:void 0,C.$slots.error?{name:"error",fn:t.withCtx(()=>[t.renderSlot(C.$slots,"error",{},void 0,!0)]),key:"3"}:void 0,C.$slots.hint?{name:"hint",fn:t.withCtx(()=>[t.renderSlot(C.$slots,"hint",{},void 0,!0)]),key:"4"}:void 0,C.$slots.counter?{name:"counter",fn:t.withCtx(()=>[t.renderSlot(C.$slots,"counter",{},void 0,!0)]),key:"5"}:void 0,C.$slots.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(C.$slots,"loading",{},void 0,!0)]),key:"6"}:void 0]),1040,["modelValue","for","label","mask","disable","rules","input-style","style"]))}}),[["__scopeId","data-v-c4acf8be"]]),Zp={class:"row items-center justify-end"},Xi="DD.MM.YYYY",Na=t.defineComponent({__name:"PDateInput",props:t.mergeModels({label:{type:String,required:!0},dense:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{modelValue:{default:""},modelModifiers:{}}),emits:t.mergeModels(["blur"],["update:modelValue"]),setup(n){const e=t.useModel(n,"modelValue"),i=Xi.replace(/[DMY]/g,"#"),o=c=>{if(!c)return"";const u=String(c).match(/^(\d{4})-(\d{2})-(\d{2})/);if(u)return`${u[3]}.${u[2]}.${u[1]}`;const f=new Date(c);return Number.isNaN(f.getTime())?"":V.date.formatDate(f,Xi)},r=c=>{const u=V.date.extractDate(c,Xi);if(Number.isNaN(u.getTime()))return"";const f=u.getFullYear(),h=String(u.getMonth()+1).padStart(2,"0"),m=String(u.getDate()).padStart(2,"0");return`${f}-${h}-${m}`},s=t.ref(o(e.value));t.watch(e,c=>{const u=o(c);u!==s.value&&(s.value=u)});const a=c=>{const u=typeof c=="number"?String(c):c;if(!u){e.value="";return}/^\d{2}\.\d{2}\.\d{4}$/.test(u)&&(e.value=r(u))},d={days:"Понедельник_Вторник_Среда_Четверг_Пятница_Суббота_Воскресенье".split("_"),daysShort:"Пн_Вт_Ср_Чт_Пт_Сб_Вс".split("_"),months:"Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь".split("_"),monthsShort:"Янв_Фев_Мар_Апр_Май_Июн_Июл_Авг_Сен_Окт_Ноя_Дек".split("_"),firstDayOfWeek:1,format24h:!0,pluralDay:"дни"};return(c,u)=>{const f=t.resolveDirective("close-popup");return t.openBlock(),t.createBlock(Wt,{modelValue:t.unref(s),"onUpdate:modelValue":[u[1]||(u[1]=h=>t.isRef(s)?s.value=h:null),a],class:"fit",label:n.label,mask:t.unref(i),dense:n.dense,outlined:n.outlined,clearable:n.clearable,disable:n.disable,readonly:n.readonly,inputmode:"numeric",onBlur:u[2]||(u[2]=h=>c.$emit("blur"))},{prepend:t.withCtx(()=>[t.createVNode(t.unref(V.QIcon),{name:"event",class:"cursor-pointer"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.QPopupProxy),{cover:"","transition-show":"scale","transition-hide":"scale"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.QDate),{modelValue:t.unref(s),"onUpdate:modelValue":u[0]||(u[0]=h=>t.isRef(s)?s.value=h:null),mask:Xi,"today-btn":"",locale:d},{default:t.withCtx(()=>[t.createElementVNode("div",Zp,[t.withDirectives(t.createVNode(Ke,{label:"Готово",color:"primary",flat:""},null,512),[[f]])])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),append:t.withCtx(()=>[t.renderSlot(c.$slots,"append")]),_:3},8,["modelValue","label","mask","dense","outlined","clearable","disable","readonly"])}}}),Jp=t.defineComponent({inheritAttrs:!1,__name:"PDatePicker",props:t.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:t.mergeModels(["blur","input"],["update:modelValue"]),setup(n,{emit:e}){const i=e,o=t.useModel(n,"modelValue"),r=t.useAttrs(),s=t.computed(()=>typeof r.id=="string"?r.id:void 0),a=n,d=f=>{const h=f==null||f===""?null:new Date(String(f));h?(o.value=h,i("input",c(o.value))):(o.value=null,i("input",null))},c=f=>f?new Date(f.getTime()-f.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"",u=t.computed(()=>{const f={};return a.margin&&(f.margin=a.margin),a.padding&&(f.padding=a.padding),f});return(f,h)=>(t.openBlock(),t.createBlock(t.unref(V.QInput),{for:t.unref(s),max:"2100",min:"1900","model-value":c(o.value),label:n.label||void 0,class:"p-datepicker",type:"date",name:n.label,style:t.normalizeStyle(t.unref(u)),outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":d},{before:t.withCtx(()=>[t.renderSlot(f.$slots,"default")]),append:t.withCtx(()=>[t.renderSlot(f.$slots,"right")]),_:3},8,["for","model-value","label","name","style"]))}}),Zi=t.defineComponent({inheritAttrs:!1,__name:"PDialog",props:t.mergeModels({persistent:{type:Boolean,default:!1},maximized:{type:Boolean,default:!1},transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=t.useModel(n,"modelValue"),i=t.useAttrs(),o=t.computed(()=>{const r={};for(const s of Object.keys(i))["persistent","maximized","transition-show","transition-hide"].includes(s)||(r[s]=i[s]);return r});return(r,s)=>(t.openBlock(),t.createBlock(t.unref(V.QDialog),t.mergeProps({modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=a=>e.value=a)},t.unref(o),{persistent:n.persistent,maximized:n.maximized,"transition-show":n.transitionShow,"transition-hide":n.transitionHide}),t.createSlots({default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:2},[r.$slots.title?{name:"title",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"title")]),key:"0"}:void 0,r.$slots.header?{name:"header",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"header")]),key:"1"}:void 0,r.$slots.body?{name:"body",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"body")]),key:"2"}:void 0,r.$slots.footer?{name:"footer",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"footer")]),key:"3"}:void 0]),1040,["modelValue","persistent","maximized","transition-show","transition-hide"]))}}),Kp=v(t.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(n){return(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"flex-line flex",style:t.normalizeStyle({margin:n.margin,padding:n.padding,width:n.width,minWidth:n.minWidth,maxWidth:n.maxWidth,height:n.height,justifyContent:n.justifyContent,background:n.background,alignItems:n.alignItems})},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-71357bc9"]]),eg=["innerHTML"],tg={key:1},ir=v(t.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:""},fontSize:{type:String,required:!1,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(n){const e=n,i={color:e.color||void 0,fontSize:e.fontSize||void 0,fontWeight:e.fontWeight||void 0,background:e.background||void 0,padding:e.padding||void 0,width:e.width||void 0,maxWidth:e.width||void 0,minWidth:e.minWidth||void 0,margin:e.margin||void 0,justifyContent:e.justifyContent||void 0};return(o,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["string",n.customClass]),style:i,onClick:r[0]||(r[0]=s=>o.$emit("click"))},[t.createVNode(t.unref(V.QItemLabel),null,{default:t.withCtx(()=>[n.isHtml?(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:n.string},null,8,eg)):(t.openBlock(),t.createElementBlock("span",tg,t.toDisplayString(n.string),1))]),_:1})],2))}}),[["__scopeId","data-v-049d3e33"]]),ci=v(t.defineComponent({inheritAttrs:!1,__name:"PTooltip",props:{tooltipText:{type:String,default:void 0,required:!1},timeout:{type:Number,default:0,required:!1},typeStyle:{type:String,default:"primary",required:!1},height:{type:String,default:"16px",required:!1},relPosition:{type:String,default:"right",required:!1},level:{type:String,default:"top",required:!1}},setup(n){const e=n,i=t.useAttrs(),o=t.computed(()=>{const c={};for(const u of Object.keys(i))u!=="delay"&&(c[u]=i[u]);return c}),r={primary:"var(--q-primary)",success:"var(--q-positive)",warning:"var(--q-warning)",danger:"var(--q-negative)",neutral:"var(--q-dark)"},s=t.computed(()=>{const c=e.relPosition==="left"?"right":"left";return`${e.level==="top"?"top":"bottom"} ${c}`}),a=t.computed(()=>{const c=e.relPosition==="left"?"right":"left";return`${e.level==="top"?"bottom":"top"} ${c}`}),d=t.computed(()=>({background:r[e.typeStyle],whiteSpace:"pre",height:e.height,borderRadius:"2px",display:"flex",justifyContent:"center",alignItems:"center"}));return(c,u)=>n.tooltipText?(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:0},t.unref(o),{class:"tooltip-wrapper"}),[t.renderSlot(c.$slots,"default",{},void 0,!0),t.createVNode(t.unref(V.QTooltip),{delay:n.timeout,anchor:t.unref(s),self:t.unref(a),class:"tooltip-box",style:t.normalizeStyle(t.unref(d))},{default:t.withCtx(()=>[t.createVNode(ir,{string:n.tooltipText,padding:"0 3px",height:n.height},null,8,["string","height"])]),_:1},8,["delay","anchor","self","style"])],16)):(t.openBlock(),t.createBlock(t.unref(V.QTooltip),t.mergeProps({key:1},t.unref(o),{delay:n.timeout,class:"tooltip-box"}),{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},16,["delay"]))}}),[["__scopeId","data-v-ee5e83fd"]]),ng={class:"p-hint-popup"},or=v(t.defineComponent({__name:"PHint",props:{text:{}},setup(n){const e=t.ref(!1);return(i,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[n.text?(t.openBlock(),t.createBlock(t.unref(V.QIcon),{key:0,name:"help_outline",size:"15px",class:"p-hint-icon",onClick:o[0]||(o[0]=t.withModifiers(r=>e.value=!0,["stop"]))},{default:t.withCtx(()=>[t.createVNode(ci,{anchor:"top middle",self:"bottom middle",offset:[0,6],"max-width":"320px"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.text),1)]),_:1})]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(V.QMenu),{modelValue:t.unref(e),"onUpdate:modelValue":o[1]||(o[1]=r=>t.isRef(e)?e.value=r:null),anchor:"top middle",self:"bottom middle",offset:[0,6],"max-width":"340px"},{default:t.withCtx(()=>[t.createElementVNode("div",ng,t.toDisplayString(n.text),1)]),_:1},8,["modelValue"])],64))}}),[["__scopeId","data-v-3443b70c"]]),ig=t.defineComponent({__name:"PInputDate",props:t.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:t.mergeModels(["update:modelValue","change","beforeChange"],["update:modelValue"]),setup(n,{emit:e}){const i=e,o=t.useModel(n,"modelValue"),r=Et.Format(o.value),s=t.ref(r),a=c=>{if(!d(c))return;const u=Et.FromRuStr(c);o.value=u,i("beforeChange",u),i("change",u)},d=c=>c.length!=10?(s.value=r,Ct.Error("Неверный формат даты"),!1):Number(s.value.slice(0,2))>31?(s.value=r,Ct.Error("Неверный день месяца"),!1):Number(s.value.slice(3,5))>12?(s.value=r,Ct.Error("Неверный месяц"),!1):Number(s.value.slice(6,10))>2100?(s.value=r,Ct.Error("Неверный год"),!1):!0;return(c,u)=>{const f=t.resolveComponent("PInput");return t.openBlock(),t.createElementBlock("div",{class:"style-container",style:t.normalizeStyle({width:n.width,position:"relative"})},[t.createVNode(f,{modelValue:t.unref(s),"onUpdate:modelValue":u[0]||(u[0]=h=>t.isRef(s)?s.value=h:null),mask:"##.##.####",placeholder:n.placeholder,margin:n.margin,label:n.label,onBlur:a,onKeydown:t.withKeys(t.withModifiers(h=>{},["prevent"]),["enter"])},null,8,["modelValue","placeholder","margin","label","onKeydown"])],4)}}}),og=v(t.defineComponent({__name:"IconMinus",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...i[0]||(i[0]=[t.createElementVNode("use",{"xlink:href":"#minus"},null,-1)])],6)),i[1]||(i[1]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"minus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[t.createElementVNode("path",{d:"M19.4995 13.8856H5.53125V11.8926H19.4995V13.8856Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-582bd65a"]]),rg=v(t.defineComponent({__name:"IconPlus",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...i[0]||(i[0]=[t.createElementVNode("use",{"xlink:href":"#plus"},null,-1)])],6)),i[1]||(i[1]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"plus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[t.createElementVNode("path",{d:"M11.3263 19.8672V13.8881H5.33984V11.8951H11.3263V5.91602H13.3217V11.8951H19.3081V13.8881H13.3217V19.8672H11.3263Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-1f1f064c"]]),sg=t.defineComponent({inheritAttrs:!1,__name:"PInputNumber",props:t.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1},color:{type:String,default:"",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:t.mergeModels(["blur","input","change"],["update:modelValue"]),setup(n,{emit:e}){const i=e,o=t.useAttrs(),r=t.computed(()=>typeof o.id=="string"?o.id:void 0),s=t.computed(()=>{const D={};for(const Z of Object.keys(o))Z!=="id"&&(D[Z]=o[Z]);return D}),a=n,d=()=>{const D=a.step.toString();return D.includes(".")?D.split(".")[1].length:0},c=d(),u=t.useModel(n,"modelValue"),h=(D=>Math.min(Math.max(D,a.min),a.max))(u.value);h!==u.value&&(u.value=h);const m=t.ref(h.toFixed(d())),w=t.computed(()=>{const D={};return a.margin&&(D.margin=a.margin),a.padding&&(D.padding=a.padding),D}),C=D=>{const Z=Math.pow(10,c);return Math.round(D*Z)/Z},B=(D,...Z)=>{u.value=C(D),m.value=C(D).toFixed(d()),Z.forEach(K=>i(K,u.value))},$=(D,...Z)=>{a.disabled||D>a.max||D<a.min||B(D,...Z)},x=()=>$(+m.value+a.step,"change"),M=()=>$(+m.value-a.step,"change"),k=D=>$(Number(D),"input"),P=()=>$(+m.value,"change","blur");return(D,Z)=>(t.openBlock(),t.createBlock(t.unref(V.QInput),t.mergeProps(t.unref(s),{for:t.unref(r),"model-value":t.unref(m),label:n.label||void 0,class:"p-input-number",type:"number",disable:n.disabled,"input-style":{color:n.disabled?"#828587":n.color,textAlign:"center"},style:t.unref(w),outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":k,onBlur:P}),{before:t.withCtx(()=>[t.createVNode(t.unref(V.QBtn),{class:"number-minus",flat:"",dense:"",round:"",style:{width:"32px",height:"32px"},onClick:M},{default:t.withCtx(()=>[t.createVNode(og)]),_:1})]),append:t.withCtx(()=>[t.createVNode(t.unref(V.QBtn),{class:"number-plus",flat:"",dense:"",round:"",style:{width:"32px",height:"32px"},onClick:x},{default:t.withCtx(()=>[t.createVNode(rg)]),_:1})]),_:1},16,["for","model-value","label","disable","input-style","style"]))}}),ag=v(sg,[["__scopeId","data-v-6f4093e8"]]),lg=v(t.defineComponent({__name:"PLeftSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},height:{type:String,required:!1,default:"100%"},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(n,{emit:e}){const i=n,o=e,r=t.ref(i.open);t.watch(()=>i.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,d)=>{const c=t.resolveComponent("PString");return t.openBlock(),t.createElementBlock(t.Fragment,null,[n.shift?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({minWidth:n.widthClosed,maxWidth:n.widthClosed,height:n.height})},null,4)),t.createElementVNode("div",{class:"LS-body",style:t.normalizeStyle({marginLeft:t.unref(r)?"0":`calc(${n.widthClosed} - ${n.widthOpened})`,minWidth:n.widthOpened,maxWidth:n.widthOpened,boxShadow:n.shadow?"5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:n.shift?"relative":"absolute",background:n.background,height:n.height})},[t.createElementVNode("div",{class:"LS-content",style:t.normalizeStyle({width:`calc(100% - ${n.widthClosed})`,height:n.height,background:"#ffffff"})},[t.renderSlot(a.$slots,"default",{},void 0,!0)],4),t.createVNode(t.unref(V.QBtn),{class:"click-line",flat:"","no-caps":"",style:t.normalizeStyle({width:n.widthClosed,minWidth:n.widthClosed,height:n.height,borderRadius:"0"}),onClick:d[0]||(d[0]=u=>s(!t.unref(r)))},{default:t.withCtx(()=>[t.unref(r)?(t.openBlock(),t.createBlock(c,{key:0,string:n.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):t.createCommentVNode("",!0),t.unref(r)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,string:n.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))]),_:1},8,["style"])],4)],64)}}}),[["__scopeId","data-v-31292b0b"]]),cg=t.defineComponent({__name:"PList",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"300px"}},setup(n){return(e,i)=>(t.openBlock(),t.createBlock(t.unref(V.QList),{tag:"ul",style:t.normalizeStyle({margin:n.margin,padding:n.padding,width:n.width})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["style"]))}}),dg=t.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1},background:{type:String,required:!1,default:""}},setup(n){return(e,i)=>(t.openBlock(),t.createBlock(t.unref(V.QItem),{tag:"li",style:t.normalizeStyle({margin:n.margin,padding:n.padding,borderBottom:n.showDivider?"1px solid":"none",background:n.background})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["style"]))}}),ug={class:"tags-selector"},fg={key:0,class:"empty-state"},Ma=v(t.defineComponent({__name:"POptionsListSingle",props:{store:{}},emits:["select"],setup(n,{emit:e}){const i=n,o=t.ref(""),r=i.store.Options,s=t.computed(()=>r.filter(c=>R.H.Strings.SearchIn(c.label,o.value))),a=e;t.onBeforeMount(async()=>{await i.store.GetOptions()});const d=async c=>{await i.store.Get(c.value),a("select",i.store.Item)};return(c,u)=>{const f=t.resolveDirective("ripple");return t.openBlock(),t.createElementBlock("div",ug,[t.createVNode(Wt,{modelValue:t.unref(o),"onUpdate:modelValue":u[0]||(u[0]=h=>t.isRef(o)?o.value=h:null),placeholder:"Поиск...",dense:"",outlined:"",clearable:"",class:"search-input"},null,8,["modelValue"]),t.createVNode(t.unref(V.QScrollArea),{style:{height:"350px"},class:"q-mt-sm"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.QList),{dense:""},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),h=>t.withDirectives((t.openBlock(),t.createBlock(t.unref(V.QItem),{key:h.value,clickable:"",class:"tag-item",onClick:m=>d(h)},{default:t.withCtx(()=>[t.createVNode(t.unref(V.QItemSection),null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(h.label),1)]),_:2},1024)]),_:2},1032,["onClick"])),[[f]])),128)),t.unref(s).length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",fg,"Ничего не найдено"))]),_:1})]),_:1})])}}}),[["__scopeId","data-v-9d5bdf93"]]),Ji=t.defineComponent({inheritAttrs:!1,__name:"PSelect",props:t.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:""},inPadding:{type:String,required:!1,default:""},options:{type:Array,required:!1,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["change","clear"],["update:modelValue"]),setup(n,{emit:e}){const i=t.useModel(n,"modelValue"),o=e,r=t.useAttrs(),s=t.computed(()=>typeof r.id=="string"?r.id:void 0),a=t.computed(()=>{const m={};for(const w of Object.keys(r))w!=="id"&&w!=="disable"&&(m[w]=r[w]);return m}),d=n,c=t.computed(()=>r.disable??d.disabled),u=m=>{o("change",m)},f=()=>{o("clear",void 0)},h=t.computed(()=>{const m={};return d.margin&&(m.margin=d.margin),d.padding&&(m.padding=d.padding),d.width&&(m.width=d.width),d.inPadding&&(m.padding=d.inPadding),m});return(m,w)=>(t.openBlock(),t.createBlock(t.unref(V.QSelect),t.mergeProps({modelValue:i.value,"onUpdate:modelValue":w[0]||(w[0]=C=>i.value=C)},t.unref(a),{for:t.unref(s),options:n.options,label:n.label||void 0,placeholder:n.placeholder,clearable:n.clearable,disable:t.unref(c),readonly:n.readonly,"input-style":{color:n.color||void 0},style:t.unref(h),class:"p-select",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":u,onClear:f}),t.createSlots({before:t.withCtx(()=>[t.renderSlot(m.$slots,"before",{},()=>[t.renderSlot(m.$slots,"left")])]),append:t.withCtx(()=>[t.renderSlot(m.$slots,"append",{},()=>[t.renderSlot(m.$slots,"right")])]),_:2},[m.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"prepend")]),key:"0"}:void 0,m.$slots.after?{name:"after",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"after")]),key:"1"}:void 0,m.$slots.default?{name:"default",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"default")]),key:"2"}:void 0,m.$slots.label?{name:"label",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"label")]),key:"3"}:void 0,m.$slots.error?{name:"error",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"error")]),key:"4"}:void 0,m.$slots.hint?{name:"hint",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"hint")]),key:"5"}:void 0,m.$slots.counter?{name:"counter",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"counter")]),key:"6"}:void 0,m.$slots.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"loading")]),key:"7"}:void 0,m.$slots.selected?{name:"selected",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"selected")]),key:"8"}:void 0,m.$slots.option?{name:"option",fn:t.withCtx(C=>[t.renderSlot(m.$slots,"option",t.normalizeProps(t.guardReactiveProps(C)))]),key:"9"}:void 0,m.$slots["no-option"]?{name:"no-option",fn:t.withCtx(C=>[t.renderSlot(m.$slots,"no-option",t.normalizeProps(t.guardReactiveProps(C)))]),key:"10"}:void 0,m.$slots["before-options"]?{name:"before-options",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"before-options")]),key:"11"}:void 0,m.$slots["after-options"]?{name:"after-options",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"after-options")]),key:"12"}:void 0,m.$slots["selected-item"]?{name:"selected-item",fn:t.withCtx(C=>[t.renderSlot(m.$slots,"selected-item",t.normalizeProps(t.guardReactiveProps(C)))]),key:"13"}:void 0]),1040,["modelValue","for","options","label","placeholder","clearable","disable","readonly","input-style","style"]))}}),Ia=t.defineComponent({__name:"POpts",props:{label:{},item:{},store:{},prop:{},storeOpts:{},optLabel:{},optValue:{},disabled:{type:Boolean},hint:{}},setup(n){var d;const e=n,i=((d=e.storeOpts)==null?void 0:d.Options)??[],o=t.ref(i);async function r(c,u,f,h){var B,$;const w="set"+(((B=u[0])==null?void 0:B.toUpperCase())+u.slice(1)),C=c[w];typeof C=="function"?C(f):(c[u]=f,c[u+"Id"]=f==null?void 0:f.id),await(($=h==null?void 0:h.Update)==null?void 0:$.call(h,c))}const s=(c,u)=>{if(c===""){u(()=>{o.value=i});return}u(()=>{o.value=i.filter(f=>R.H.Strings.SearchInFields(c,[f.label]))})},a=async c=>{c?(await e.storeOpts.Get(c.value),await r(e.item,e.prop,e.storeOpts.Item,e.store)):await r(e.item,e.prop,void 0,e.store)};return t.onBeforeMount(async()=>{i.length>0||await e.storeOpts.GetOptions(e.optLabel,e.optValue)}),(c,u)=>(t.openBlock(),t.createBlock(Ji,{"use-input":"",options:t.unref(o),"model-value":n.item[n.prop+"Id"],label:n.label,disable:n.disabled,"map-options":"",clearable:"",dense:"",outlined:"","hide-bottom-space":"","onUpdate:modelValue":a,onFilter:s},{append:t.withCtx(()=>[t.createVNode(or,{text:n.hint},null,8,["text"])]),_:1},8,["options","model-value","label","disable"]))}}),hg=t.defineComponent({__name:"PRadio",props:t.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:""},size:{type:String,default:"md"},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:t.mergeModels(["change"],["update:modelValue"]),setup(n,{emit:e}){const i=t.useModel(n,"modelValue"),o=e,r=n,s=()=>{o("change",r.value)};return(a,d)=>(t.openBlock(),t.createElementBlock("div",{class:"p-radio",style:t.normalizeStyle({padding:n.padding,margin:n.margin,maxWidth:n.width})},[t.createVNode(t.unref(V.QRadio),{modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=c=>i.value=c),s],val:n.value,name:n.name,label:n.label||void 0,size:n.size,style:t.normalizeStyle({fontSize:n.fontSize})},null,8,["modelValue","val","name","label","size","style"])],4))}}),mg=v(t.defineComponent({__name:"PRightSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},height:{type:String,required:!1,default:"100%"},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(n,{emit:e}){const i=n,o=e,r=t.ref(i.open);t.watch(()=>i.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,d)=>{const c=t.resolveComponent("PString");return t.openBlock(),t.createElementBlock("div",{class:"wrapper",style:t.normalizeStyle({maxHeight:n.height,height:n.height})},[t.createElementVNode("div",{class:"content",style:t.normalizeStyle({paddingRight:n.shift?"0":`${n.widthClosed}`})},[t.renderSlot(a.$slots,"content",{},void 0,!0)],4),t.createElementVNode("div",{class:"RS-body",style:t.normalizeStyle({marginRight:t.unref(r)?"0":`calc(${n.widthClosed} - ${n.widthOpened})`,minWidth:n.widthOpened,maxWidth:n.widthOpened,boxShadow:n.shadow?"-5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:n.shift?"relative":"absolute"})},[t.createVNode(t.unref(V.QBtn),{class:"click-line",flat:"","no-caps":"",style:t.normalizeStyle({width:n.widthClosed,minWidth:n.widthClosed,height:n.height,borderRadius:"0"}),onClick:d[0]||(d[0]=u=>s(!t.unref(r)))},{default:t.withCtx(()=>[t.unref(r)?(t.openBlock(),t.createBlock(c,{key:0,string:n.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):t.createCommentVNode("",!0),t.unref(r)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,string:n.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))]),_:1},8,["style"]),t.createElementVNode("div",{class:"RS-content",style:t.normalizeStyle({width:`calc(${n.widthOpened} - ${n.widthClosed} - 2px)`,background:n.background,height:n.height})},[t.renderSlot(a.$slots,"default",{},void 0,!0)],4)],4)],4)}}}),[["__scopeId","data-v-8ab50ea6"]]),pg=v(t.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"},divider:{type:Boolean,default:!1},dividerColor:{type:String,default:"rgba(0, 0, 0, 0.12)"}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"sticky-block",style:t.normalizeStyle({zIndex:1+n.zIndex,top:n.top,background:n.background,padding:n.padding,boxShadow:n.shadow?"0 0 5px 2px rgba(0,0,0,0.3)":"none",borderBottom:n.divider?"1px solid":"none",borderColor:n.dividerColor})},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-4748d546"]]),gg=t.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(n){return(e,i)=>(t.openBlock(),t.createElementBlock("table",t.mergeProps(e.$attrs,{style:{width:n.width,margin:n.margin},class:"p-table"}),[t.createElementVNode("thead",null,[t.renderSlot(e.$slots,"thead")]),t.createElementVNode("tbody",null,[t.renderSlot(e.$slots,"tbody")])],16))}}),Va=v(t.defineComponent({__name:"PTableToggle",props:{row:{},prop:{},store:{},readonly:{type:Boolean,default:!1}},setup(n){const e=n,i=t.computed(()=>e.row[e.prop]),o=async()=>{e.row[e.prop]=!e.row[e.prop],await e.store.Update(e.row)};return(r,s)=>(t.openBlock(),t.createBlock(t.unref(V.QTd),{key:n.prop},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["toggle-cell",{clickable:!e.readonly}]),onClick:s[0]||(s[0]=a=>e.readonly?void 0:o())},[t.createVNode(t.unref(V.QIcon),{name:t.unref(i)?"check_circle":"radio_button_unchecked",color:t.unref(i)?"positive":"grey-5",size:"20px"},null,8,["name","color"]),t.createVNode(ci,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)?"Включено":"Выключено"),1)]),_:1})],2)]),_:1}))}}),[["__scopeId","data-v-96a76c56"]]),yg=v(t.defineComponent({inheritAttrs:!1,__name:"PTextarea",props:t.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:"",required:!1},color:{type:String,default:"",required:!1},resize:{type:String,default:"vertical",required:!1}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["blur","input","focus"],["update:modelValue"]),setup(n){const e=t.useModel(n,"modelValue"),i=t.useAttrs(),o=t.computed(()=>typeof i.id=="string"?i.id:void 0),r=t.computed(()=>{const c={};for(const u of Object.keys(i))u!=="id"&&(c[u]=i[u]);return c}),s=n,a=t.computed(()=>({color:s.color||void 0,resize:s.resize})),d=t.computed(()=>{const c={};return s.margin&&(c.margin=s.margin),s.padding&&(c.padding=s.padding),s.borderColor&&(c["--p-border-color"]=s.borderColor),c});return(c,u)=>(t.openBlock(),t.createBlock(t.unref(V.QInput),t.mergeProps({modelValue:e.value,"onUpdate:modelValue":u[0]||(u[0]=f=>e.value=f)},t.unref(r),{for:t.unref(o),label:n.label||void 0,mask:n.mask,type:"textarea","input-style":t.unref(a),style:t.unref(d),class:"p-textarea",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":u[1]||(u[1]=f=>c.$emit("input",e.value)),onBlur:u[2]||(u[2]=f=>c.$emit("blur",e.value)),onFocus:u[3]||(u[3]=f=>c.$emit("focus",e.value))}),{before:t.withCtx(()=>[t.renderSlot(c.$slots,"default",{},void 0,!0)]),append:t.withCtx(()=>[t.renderSlot(c.$slots,"right",{},void 0,!0)]),_:3},16,["modelValue","for","label","mask","input-style","style"]))}}),[["__scopeId","data-v-8e01fef2"]]),Ta=t.defineComponent({inheritAttrs:!1,__name:"PToggle",props:t.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:""},size:{type:String,default:"md"},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:t.mergeModels(["change"],["update:modelValue"]),setup(n,{emit:e}){const i=t.useModel(n,"modelValue"),o=e,r=t.useAttrs(),s=t.computed(()=>{const d={};for(const c of Object.keys(r))d[c]=r[c];return d}),a=()=>{o("change",i.value)};return(d,c)=>(t.openBlock(),t.createElementBlock("div",{class:"p-toggle",style:t.normalizeStyle({padding:n.padding,margin:n.margin,maxWidth:n.width})},[t.createVNode(t.unref(V.QToggle),t.mergeProps({modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u)},t.unref(s),{label:n.label||void 0,size:n.size,style:{fontSize:n.fontSize},"onUpdate:modelValue":a}),null,16,["modelValue","label","size","style"])],4))}}),wg={class:"top-slider-content"},bg={class:"center"},Sg=v(t.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(n,{emit:e}){const i=n,o=e,r=t.ref(i.open);t.watch(()=>i.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.unref(r)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"blur",onClick:[d[0]||(d[0]=t.withModifiers(c=>r.value=!0,["prevent"])),d[1]||(d[1]=t.withModifiers(()=>{},["stop"]))]})),t.createElementVNode("div",{class:"top-slider",style:t.normalizeStyle({marginTop:t.unref(r)?"0":`calc(${n.sliderOffHeight} - ${n.sliderOnHeight})`,height:n.sliderOnHeight}),onClick:d[3]||(d[3]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",wg,[t.createElementVNode("div",bg,[t.renderSlot(a.$slots,"default",{},void 0,!0)])]),t.createVNode(t.unref(V.QBtn),{class:"click-line",flat:"","no-caps":"",style:t.normalizeStyle({height:n.sliderOffHeight,minHeight:n.sliderOffHeight,borderRadius:"0"}),onClick:d[2]||(d[2]=c=>s(!t.unref(r)))},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"title",{},void 0,!0)]),_:3},8,["style"])],4)],64))}}),[["__scopeId","data-v-88b1978e"]]);function Cg(n){n.component("PButton",Ke),n.component("PBadge",Ea),n.component("PCheckBox",Ba),n.component("PChip",$a),n.component("PDateInput",Na),n.component("PDatePicker",Jp),n.component("PDialog",Zi),n.component("PFlex",Kp),n.component("PHint",or),n.component("PInput",Wt),n.component("PInputDate",ig),n.component("PInputNumber",ag),n.component("PLeftSlider",lg),n.component("PList",cg),n.component("PListItem",dg),n.component("POptionsListSingle",Ma),n.component("POpts",Ia),n.component("PRadio",hg),n.component("PRightSlider",mg),n.component("PSelect",Ji),n.component("PSticky",pg),n.component("PString",ir),n.component("PTextarea",yg),n.component("PTopSlider",Sg),n.component("PTable",gg),n.component("PTableToggle",Va),n.component("PToggle",Ta),n.component("PTooltip",ci)}const kg={key:0,class:"mainblock"},xg={class:"mainblock-right"},Eg={class:"body"},Bg=v(t.defineComponent({__name:"AdaptiveContainer",props:{menuWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"}},setup(n){const e=n,i=t.ref(!1),o=t.ref(!0),r=t.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{o.value=!o.value};return t.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return r.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return r.value=window.matchMedia("(max-width: 768px)").matches}return r.value=window.matchMedia("(max-width: 1330px)").matches}),i.value=!0}),(a,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.renderSlot(a.$slots,"main",{},void 0,!0),t.unref(i)?(t.openBlock(),t.createElementBlock("div",kg,[t.createElementVNode("div",{class:"mainblock-left",style:t.normalizeStyle({minWidth:t.unref(r)?"100%":n.menuWidth,maxWidth:t.unref(r)?"100%":n.menuWidth,marginLeft:t.unref(r)?"-110%":"0",position:t.unref(r)?"fixed":"relative",top:t.unref(r)?"140px":""})},[t.createElementVNode("div",{class:"left-menu",style:t.normalizeStyle({minWidth:t.unref(r)?"auto":n.menuWidth,boxShadow:t.unref(r)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!t.unref(o)&&t.unref(r)?"110%":"0",borderTopLeftRadius:t.unref(r)?"0":"",borderBottomLeftRadius:t.unref(r)?"0":""}),onClick:d[0]||(d[0]=c=>s())},[t.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),t.createElementVNode("div",xg,[a.$slots.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title",style:t.normalizeStyle({display:a.$slots.title?"flex":"none"})},[t.createElementVNode("div",{class:"icon",style:t.normalizeStyle({display:t.unref(r)?"flex":"none"}),onClick:d[1]||(d[1]=c=>s())},[t.renderSlot(a.$slots,"icon",{},void 0,!0)],4),t.renderSlot(a.$slots,"title",{},void 0,!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Eg,[t.renderSlot(a.$slots,"body",{},void 0,!0)])])])):t.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-52b3d807"]]),$g={class:"mainblock-right"},Ng={class:"body"},Mg=v(t.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(n){const e=n,i=t.ref(!1),o=t.ref(!0),r=t.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{o.value=!o.value};return t.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return r.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return r.value=window.matchMedia("(max-width: 768px)").matches}return r.value=window.matchMedia("(max-width: 1330px)").matches}),i.value=!0}),(a,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.renderSlot(a.$slots,"main",{},void 0,!0),t.unref(i)?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mainblock",style:t.normalizeStyle({display:t.unref(r)?"block":"flex"})},[t.createElementVNode("div",{class:"mainblock-left",style:t.normalizeStyle({minWidth:t.unref(r)?"100%":n.menuWidth,display:n.leftWidth!=="0px"?"flex":"none",top:t.unref(r)?"58px":"80px"})},[t.createElementVNode("div",{class:"left-menu",style:t.normalizeStyle({minWidth:t.unref(r)?"100%":n.menuWidth,boxShadow:t.unref(r)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!t.unref(o)&&t.unref(r),"0"),overflowX:t.unref(r)?"scroll":"hidden",display:t.unref(r)?"flex":"block",background:t.unref(r)?"#ffffff":"",overflowY:t.unref(r)?"hidden":"auto"}),onClick:d[0]||(d[0]=c=>s())},[t.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),t.createElementVNode("div",$g,[t.createElementVNode("div",{class:"title",style:t.normalizeStyle({position:n.titleSticky?"sticky":"relative",top:n.titleSticky?t.unref(r)?"108px":"58px":"0",zIndex:n.titleSticky?"10":""})},[t.createElementVNode("div",{class:"icon",style:t.normalizeStyle({display:t.unref(r)?"flex":"none"}),onClick:d[1]||(d[1]=c=>s())},[t.renderSlot(a.$slots,"icon",{},void 0,!0)],4),t.renderSlot(a.$slots,"title",{},void 0,!0)],4),t.createElementVNode("div",Ng,[t.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):t.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-a7d519dd"]]),Ra=v(t.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(n){return t.useCssVars(e=>({d143e9f0:n.maxWidth,b9d56180:n.width,v52bd0ff4:n.background,v1795aeac:n.gridGap,v0cfa7c52:n.gridTemplateColumns,v0c6d2a1f:n.gridTemplateRows,a3ccd918:n.margin})),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["grid-block",n.customClass])},[t.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-a3c4743c"]]),Ig={class:"container"},Vg={class:"slide-box"},Tg={class:"image"},Rg={class:"image-box"},Pg=["id","src","alt"],vg={class:"link-number"},Ag=["id","onClick"],zg=v(t.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(n){t.useCssVars(w=>({v582c9d05:i}));const e=n,i=`${e.animationTime}ms`,o=t.ref(e.startActiveGroupIndex),r=t.ref(Bt.None),s=t.ref(zs(e.events,e.quantity)),a=t.computed(()=>s.value[o.value]);t.onMounted(()=>{});const d=()=>o.value=o.value+1<s.value.length?o.value+1:0,c=()=>o.value=o.value-1<0?s.value.length-1:o.value-1,u=w=>{r.value=w,setTimeout(()=>r.value=Bt.None,e.animationTime)},f=w=>{w!=o.value&&(u(w<o.value?Bt.Prev:Bt.Next),setTimeout(()=>o.value=w,e.animationTime/2))},h=()=>{u(Bt.Next),setTimeout(d,e.animationTime/2)},m=()=>{u(Bt.Prev),setTimeout(c,e.animationTime/2)};return(w,C)=>(t.openBlock(),t.createElementBlock("div",{class:"field",style:t.normalizeStyle({height:n.height,maxHeight:n.maxHeight})},[t.createElementVNode("div",Ig,[(t.openBlock(),t.createElementBlock("svg",{class:"icon-arrow",onClick:C[0]||(C[0]=t.withModifiers(B=>m(),["stop"]))},[...C[3]||(C[3]=[t.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)])])),t.createElementVNode("div",Vg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(B,$)=>(t.openBlock(),t.createElementBlock("div",{key:$,class:t.normalizeClass({animationnext:t.unref(r)===t.unref(Bt).Next,animationprev:t.unref(r)===t.unref(Bt).Prev})},[t.createElementVNode("div",Tg,[t.createElementVNode("div",Rg,[t.createElementVNode("img",{id:B.fileInfo.getImageUrl(),style:t.normalizeStyle({height:`calc(${n.height} - 110px)`,maxHeight:`calc(${n.maxHeight} - 110px)`}),src:B.fileInfo.getImageUrl(),alt:B.fileInfo.originalName,onClick:C[1]||(C[1]=x=>w.showImageInFullScreen())},null,12,Pg)])])],2))),128))]),(t.openBlock(),t.createElementBlock("svg",{class:"icon-arrow",onClick:C[2]||(C[2]=t.withModifiers(B=>h(),["stop"]))},[...C[4]||(C[4]=[t.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])]))]),t.createElementVNode("div",vg,[t.createVNode(Ra,{"grid-template-columns":"repeat(auto-fit, minmax(26px, 1fr))","grid-gap":"5px",margin:"0"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(B,$)=>(t.openBlock(),t.createElementBlock("div",{id:$.toString(),key:$,class:"number",style:t.normalizeStyle({background:$.toString()===t.unref(o).toString()?"#9D9D9D":""}),onClick:t.withModifiers(x=>f($),["stop"])},t.toDisplayString($+1),13,Ag))),128))]),_:1})])],4))}}),[["__scopeId","data-v-c5b846b9"]]),Dg=t.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(n,{emit:e}){const i=n,o=e,r=t.ref(i.x),s=t.ref(i.y),a=t.computed(()=>r.value+"px"),d=t.computed(()=>s.value+"px"),c=()=>{o("close")};return(u,f)=>{const h=t.resolveDirective("click-outside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:"context-window",style:t.normalizeStyle({left:t.unref(a),top:t.unref(d)})},[t.renderSlot(u.$slots,"default")],4)),[[h,c]])}}}),Fg={class:"date-range"},Og=v(t.defineComponent({__name:"DateInputRange",props:{start:{type:Date,default:void 0},end:{type:Date,default:void 0}},emits:["update:start","update:end","setStart","setEnd"],setup(n,{emit:e}){const i=n,o=e;t.watch(()=>[i.start,i.end],()=>{i.start||(r.value=void 0),i.end||(s.value=void 0)});const r=t.ref(i.start),s=t.ref(i.end),a=c=>{r.value=c,!(!i.end||c>i.end)&&(o("update:start",c),o("setStart",c))},d=c=>{s.value=c,!(!i.start||c<i.start)&&(o("update:end",c),o("setEnd",c))};return(c,u)=>{const f=t.resolveComponent("PInputDate");return t.openBlock(),t.createElementBlock("div",Fg,[t.createVNode(f,{"model-value":t.unref(r),"onUpdate:modelValue":u[0]||(u[0]=h=>t.isRef(r)?r.value=h:null),onChange:a},null,8,["model-value"]),u[2]||(u[2]=t.createTextVNode(" - ",-1)),t.createVNode(f,{"model-value":t.unref(s),"onUpdate:modelValue":u[1]||(u[1]=h=>t.isRef(s)?s.value=h:null),onChange:d},null,8,["model-value"])])}}}),[["__scopeId","data-v-b93b6d46"]]),_g=t.defineComponent({name:"DateInputRangeV2"}),Lg={class:"date-range"};function Hg(n,e,i,o,r,s){return t.openBlock(),t.createElementBlock("div",Lg,[t.renderSlot(n.$slots,"default",{},void 0,!0)])}const Ug=v(_g,[["render",Hg],["__scopeId","data-v-d28c6f33"]]),qg={class:"drop-item"},jg={key:0,class:"drop-item-list"},Wg=v(t.defineComponent({__name:"DropList",props:{name:{type:String,default:"Name"},rolledUp:{type:Boolean,default:!0}},setup(n){const e=n,i=t.ref(e.rolledUp),o=async()=>{i.value=!i.value};return(r,s)=>{const a=t.resolveComponent("PString"),d=t.resolveComponent("IconArrowDrop");return t.openBlock(),t.createElementBlock("div",qg,[t.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=c=>o())},[t.createVNode(a,{"font-size":"13px","font-weight":"600",string:n.name,"justify-content":"left",width:"auto",margin:"0 5px 0 0",padding:"6px 0",color:"inherit"},null,8,["string"]),t.createElementVNode("div",{style:t.normalizeStyle({transform:t.unref(i)?"":"rotate(-90deg)",display:"flex",alignItems:"center",margin:"0 0 2px 0"})},[t.createVNode(d,{size:"10px",margin:"0"})],4)]),t.unref(i)?(t.openBlock(),t.createElementBlock("div",jg,[t.renderSlot(r.$slots,"default",{},void 0,!0)])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-97057f9c"]]),Gg=v(t.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new ko,required:!0}},emits:["load"],setup(n,{emit:e}){const i=n,o=t.ref(!1),r=e,s=()=>{i.model.setBoolean(o.value),o.value?R.F.FTSP.Get().setF(i.model):R.F.FTSP.Get().removeF(i.model),r("load")};return(a,d)=>{const c=t.resolveComponent("PCheckBox");return t.openBlock(),t.createBlock(c,{modelValue:t.unref(o),"onUpdate:modelValue":d[0]||(d[0]=u=>t.isRef(o)?o.value=u:null),label:n.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-72984c94"]]),Qg=v(t.defineComponent({__name:"FiltersButtonsSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(n,{emit:e}){const i=e,o=t.ref(void 0),r=async a=>{At.Get().replaceF(a,o.value),o.value=a,At.Get().p.drop()},s=async a=>{await r(a),i("load")};return(a,d)=>{const c=t.resolveComponent("PString"),u=t.resolveComponent("PButton"),f=t.resolveComponent("GridContainer"),h=t.resolveComponent("InfoItem");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(c,{string:n.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),t.createVNode(h,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"#F5F5F5","border-color":"#C4C4C4",padding:"7px","with-hover":!1},{title:t.withCtx(()=>[...d[0]||(d[0]=[])]),default:t.withCtx(()=>[t.createVNode(f,{"max-width":"100%","grid-gap":"7px","grid-template-columns":"repeat(auto-fit, minmax(100%, 1fr))",margin:"0px"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.models,(m,w)=>(t.openBlock(),t.createBlock(u,{key:w,color:"blue",height:"auto",text:m.label,"is-toggle":m.valueEq(t.unref(o)),"toggle-mode":!0,inverse:n.inverse,onClick:C=>s(m.valueEq(t.unref(o))?void 0:m)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-586481ea"]]),Yg=["value","label"],Xg=v(t.defineComponent({__name:"FilterSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(n,{emit:e}){const i=e,o=At.Get(),r=t.ref(void 0),s=async d=>{o.replaceF(d,r.value),r.value=d},a=async d=>{d?await s(r.value):await s(void 0),i("load")};return(d,c)=>{const u=t.resolveComponent("PSelect");return t.openBlock(),t.createBlock(u,{modelValue:t.unref(r),"onUpdate:modelValue":c[0]||(c[0]=f=>t.isRef(r)?r.value=f:null),clearable:t.unref(r),placeholder:n.defaultLabel,onChange:a},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.models,(f,h)=>(t.openBlock(),t.createElementBlock("option",{key:h,value:f,label:f.label},null,8,Yg))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ae66df57"]]),Zg=v(t.defineComponent({__name:"FTSPPanel",setup(n){return t.onBeforeMount(async()=>{}),(e,i)=>(t.openBlock(),t.createElementBlock("div"))}}),[["__scopeId","data-v-e280d85b"]]),Jg=v(t.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(n){const e=t.ref(!1);return(i,o)=>(t.openBlock(),t.createElementBlock("div",{class:"general-block-item",style:t.normalizeStyle({background:n.background,height:n.height,width:n.width,borderColor:n.borderColor,padding:n.padding,margin:n.margin,transform:n.scale&&t.unref(e)?"scale(1.03, 1.03)":""}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},[t.createElementVNode("div",{class:"green",style:t.normalizeStyle({width:`${n.ready}`})},null,4),t.createElementVNode("div",{class:"general-block-item-title",style:t.normalizeStyle({fontSize:n.fontSize})},[t.renderSlot(i.$slots,"general-item",{},void 0,!0)],4),t.createElementVNode("div",{class:"tools-icon",style:t.normalizeStyle({display:n.withIcon?"flex":"none"})},[...o[2]||(o[2]=[t.createElementVNode("svg",{class:"icon-del"},[t.createElementVNode("use",{"xlink:href":"#del"})],-1)])],4),o[3]||(o[3]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"del",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},[t.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"]]),Kg={key:0,class:"blur"},e1={style:{display:"flex","justify-content":"center"}},t1=v(t.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(n,{emit:e}){const i=n,o=e,r=i.customClass!==""?i.customClass:"inside-class",s=t.ref(!1),a=t.ref(!1),d=t.ref(!1),c=t.ref(i.close);t.watch(()=>i.close,()=>{a.value=!1});const u=P=>{P.stopPropagation(),P.key==="Escape"&&(i.showSaveDialog?d.value=!0:a.value=!1)};t.watch(a,async()=>{var P,D;await t.nextTick(),a.value?((D=(P=document.getElementById("info-item-opened-content"))==null?void 0:P.querySelector("input"))==null||D.focus(),document.body.addEventListener("keydown",u)):document.body.removeEventListener("keydown",u,!1),a.value===!1&&o("after-close")});const f=()=>{o("click"),a.value=!!i.withOpenWindow,c.value!==i.close&&(a.value=!1,c.value=!c.value)},h=t.computed(()=>i.customClass===""?{width:i.width,minHeight:"40px",height:"auto",maxWidth:i.maxWidth,minWidth:i.minWidth,margin:i.baseBoxMargin}:void 0),m=t.computed(()=>a.value&&i.withOpenWindow),w=t.computed(()=>({background:i.background?i.background:void 0,zIndex:m.value?"2":"0",padding:m.value?"0":i.padding,margin:i.margin,width:m.value?i.openWidth:i.width,height:m.value?i.openHeight:i.height,minHeight:"40px",maxWidth:i.maxWidth,minWidth:i.minWidth,borderColor:s.value||a.value?i.colorSelected:i.borderColor,color:s.value?i.colorSelected:"#343E5C",boxShadow:s.value||a.value?`0px 0px 1px 1px ${i.colorSelected}`:"none",alignItems:m.value?"end":"center",cursor:(i.withHover,"pointer")})),C=t.computed(()=>({height:m.value?"0":"",overflow:i.closeWindowOverflow,width:i.width})),B=t.computed(()=>({height:m.value?"auto":"0"})),$=t.computed(()=>({color:s.value?i.colorSelected:"#343E5C",fill:s.value?i.colorSelected:"#343E5C",background:i.background})),x=()=>{i.showSaveDialog?d.value=!0:a.value=!1},M=async()=>{await o("keyup-enter"),i.close&&(a.value=!1),d.value=!1},k=()=>{a.value=!1,d.value=!1};return(P,D)=>{const Z=t.resolveComponent("PString"),K=t.resolveComponent("PButton"),fe=t.resolveComponent("PModal"),ht=t.resolveDirective("click-outside");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.unref(a)?(t.openBlock(),t.createElementBlock("div",Kg)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"base-box",style:t.normalizeStyle(t.unref(h)),onClick:D[2]||(D[2]=t.withModifiers(Qe=>f(),["prevent","stop"]))},[t.createElementVNode("div",{class:t.normalizeClass(["body",t.unref(r)]),style:t.normalizeStyle(t.unref(w)),onMouseenter:D[0]||(D[0]=Qe=>n.withHover?s.value=!0:s.value=!1),onMouseleave:D[1]||(D[1]=Qe=>s.value=!1)},[t.unref(a)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["close-window",n.customClass]),style:t.normalizeStyle(t.unref(C))},[t.renderSlot(P.$slots,"default",{},void 0,!0)],6)),t.unref(a)?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,id:"info-item-opened-content",class:"open-window",style:t.normalizeStyle(t.unref(B))},[t.renderSlot(P.$slots,"open-inside-content",{},void 0,!0)],4)),[[ht,x,void 0,{prevent:!0}]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"top-title",style:t.normalizeStyle(t.unref($))},[t.renderSlot(P.$slots,"title",{},()=>[t.createVNode(Z,{string:n.title,"font-size":"10px",padding:"0 0 0 3px",style:t.normalizeStyle({color:t.unref(s)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),t.createVNode(fe,{show:t.unref(d),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:t.withCtx(()=>[t.createElementVNode("div",e1,[t.createVNode(K,{text:"Не сохранять",onClick:k}),t.createVNode(K,{text:"Сохранять",onClick:M})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-e8e8f1a1"]]),n1=v(t.defineComponent({__name:"InfoItemSelectButtons",props:{selected:{type:String,required:!0},title:{type:String,required:!0},list:{type:Array,required:!0}},emits:["select","reset"],setup(n,{emit:e}){const i=t.ref(!1),o=e,r=s=>{i.value=!i.value,o("select",s)};return(s,a)=>{const d=t.resolveComponent("PString"),c=t.resolveComponent("PButton"),u=t.resolveComponent("InfoItem");return t.openBlock(),t.createBlock(u,{close:t.unref(i),title:n.title,"close-window-overflow":"hidden","with-hover":!0,"with-open-window":!0},{"open-inside-content":t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.list,f=>(t.openBlock(),t.createBlock(c,{key:f,type:"admin",color:"blue",text:f,onClick:h=>r(f)},null,8,["text","onClick"]))),128)),t.createVNode(c,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=f=>r(void 0))})]),default:t.withCtx(()=>[t.createVNode(d,{string:n.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-973addd1"]]),i1={class:"mainblock"},o1={class:"mainline"},r1=v(t.defineComponent({__name:"LeftRightContainer",props:{leftWidth:{type:String,required:!1,default:"0px"},background:{type:String,required:!1,default:"inherit"}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock("div",i1,[t.createElementVNode("div",o1,[t.createElementVNode("div",{class:"mainblock-left",style:t.normalizeStyle({minWidth:n.leftWidth,maxWidth:n.leftWidth,background:n.background,display:n.leftWidth!=="0px"?"block":"none"})},[t.renderSlot(e.$slots,"left",{},void 0,!0)],4),t.createElementVNode("div",{class:"mainblock-right",style:t.normalizeStyle({background:n.background})},[t.renderSlot(e.$slots,"right",{},void 0,!0)],4)])]))}}),[["__scopeId","data-v-42fa7104"]]),Pa=v(t.defineComponent({__name:"IconSearch",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...i[0]||(i[0]=[t.createElementVNode("use",{"xlink:href":"#search"},null,-1)])],6)),i[1]||(i[1]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[t.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"]]),s1={class:"search-list"},a1=["onClick"],va=v(t.defineComponent({inheritAttrs:!1,__name:"PAutocomplete",props:{modelValue:{type:String,default:""},searchFunc:{type:Function,default:()=>{}},suggestions:{type:Array,default:[]},width:{type:[Number,String],default:""},maxHeightResultList:{type:String,default:"200px"},zIndexResultList:{type:String,default:"10"},boxShadowResultList:{type:String,default:"var(--box-shadow)"}},emits:["select","input"],setup(n,{emit:e}){const i=e,o=n,r=t.ref(o.modelValue),s=t.ref([]);async function a(){i("input",r.value),await d()}async function d(){o.searchFunc&&(s.value=await o.searchFunc(r.value))}async function c(u){r.value="",i("select",u)}return(u,f)=>(t.openBlock(),t.createElementBlock("div",{class:"container",style:t.normalizeStyle({width:n.width})},[t.createVNode(Wt,{modelValue:t.unref(r),"onUpdate:modelValue":f[0]||(f[0]=h=>t.isRef(r)?r.value=h:null),placeholder:"Найти",onInput:a},{right:t.withCtx(()=>[t.createVNode(Pa,{size:"24px"})]),_:1},8,["modelValue"]),t.unref(r)&&t.unref(r).length>=2?(t.openBlock(),t.createElementBlock("div",{key:0,class:"result",style:t.normalizeStyle({maxHeight:n.maxHeightResultList,zIndex:n.zIndexResultList,boxShadow:n.boxShadowResultList})},[t.createElementVNode("ul",s1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),h=>(t.openBlock(),t.createElementBlock("li",{key:h.value,onClick:m=>c(h)},t.toDisplayString(h.label),9,a1))),128))])],4)):t.createCommentVNode("",!0)],4))}}),[["__scopeId","data-v-d02c66ef"]]),l1=v(t.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=t.useModel(n,"modelValue"),i=async()=>{};return(o,r)=>{const s=t.resolveComponent("PInput");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(s,{modelValue:e.value.number,"onUpdate:modelValue":r[0]||(r[0]=a=>e.value.number=a),onBlur:i},null,8,["modelValue"]),t.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":r[1]||(r[1]=a=>e.value.description=a),onBlur:i},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-51bf3f08"]]),c1={};function d1(n,e){return t.openBlock(),t.createElementBlock(t.Fragment,null,[e[0]||(e[0]=t.createElementVNode("div",{class:"blur"},null,-1)),e[1]||(e[1]=t.createElementVNode("div",{class:"loader-container"},[t.createElementVNode("div",{class:"loader",style:{"--b":"20px",width:"200px","--n":"10"}})],-1))],64)}const u1=v(c1,[["render",d1],["__scopeId","data-v-0f1f2f84"]]),f1={style:{display:"flex","justify-content":"center",width:"100%"}},h1={class:"pag-number"},m1={class:"pag-ul"},p1={key:2},g1=v(t.defineComponent({__name:"PPagination",props:{showConfirm:{type:Boolean,default:!1},justifyContent:{type:String,default:"center"},store:{type:Object,required:!0}},setup(n){const e=n,i=h=>h?"active":"neutral",o=h=>h?"not-active":"neutral",r=t.ref(Ds),s=t.ref(!1),a=t.ref(!1);r.value.count=e.store.Count.value,t.watch(e.store.Count,()=>{r.value.count=e.store.Count.value});const d=async h=>{if(h!==r.value.curPage&&(h<1&&(h=1),h>r.value.pagesCount()&&(h=r.value.pagesCount()),!e.showConfirm))return await c(h)},c=async(h,m)=>{r.value.setCurPage(h),At.Get().p.offset=(h-1)*r.value.limit,await e.store.FTSP(),f()},u=t.computed(()=>{const h=r.value.pagesCount();return h<8?vt.GenerateNumsRange(2,h-1).filter(m=>m<h&&m>1):vt.GenerateNumsRange(r.value.curPage-2,r.value.curPage+3).filter(m=>m<h&&m>1)}),f=()=>{const h=document.querySelector(".el-table__body-wrapper"),m=document.querySelector("#list");h?h.scrollTo({top:0}):m&&m.scrollTo({top:0})};return t.onBeforeUnmount(()=>{At.Get().p.drop()}),(h,m)=>{const w=t.resolveComponent("ArrowLeft"),C=t.resolveComponent("PButton"),B=t.resolveComponent("DoubleArrowLeft"),$=t.resolveComponent("EllipsisSvg"),x=t.resolveComponent("DoubleArrowRight"),M=t.resolveComponent("ArrowRight");return t.openBlock(),t.createElementBlock("div",f1,[t.createElementVNode("div",{class:"pag-container",style:t.normalizeStyle({justifyContent:n.justifyContent})},[t.createElementVNode("div",h1,[t.createVNode(C,{skin:"pag",type:o(t.unref(r).curPage===1),onClick:m[0]||(m[0]=k=>d(t.unref(r).curPage-1))},{default:t.withCtx(()=>[t.createVNode(w)]),_:1},8,["type"]),t.createElementVNode("ul",m1,[t.createElementVNode("li",null,[t.createVNode(C,{skin:"pag",type:i(t.unref(r).curPage===1),text:"1",onClick:m[1]||(m[1]=k=>d(1))},null,8,["type"])]),t.unref(r).pagesCount()>8&&t.unref(r).curPage>4?(t.openBlock(),t.createElementBlock("li",{key:0,onMouseenter:m[3]||(m[3]=k=>s.value=!0),onMouseleave:m[4]||(m[4]=k=>s.value=!1)},[t.createVNode(C,{skin:"pag",type:"neutral",onClick:m[2]||(m[2]=k=>d(t.unref(r).curPage-5))},{default:t.withCtx(()=>[t.unref(s)?(t.openBlock(),t.createBlock(B,{key:0})):(t.openBlock(),t.createBlock($,{key:1}))]),_:1})],32)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(u),k=>(t.openBlock(),t.createElementBlock("li",{key:k},[t.createVNode(C,{skin:"pag",type:i(k===t.unref(r).curPage),text:k,onClick:P=>d(k)},null,8,["type","text","onClick"])]))),128)),t.unref(r).pagesCount()>=8&&t.unref(r).curPage<t.unref(r).pagesCount()-3?(t.openBlock(),t.createElementBlock("li",{key:1,onMouseenter:m[6]||(m[6]=k=>a.value=!0),onMouseleave:m[7]||(m[7]=k=>a.value=!1)},[t.createVNode(C,{skin:"pag",type:"neutral",onClick:m[5]||(m[5]=k=>d(t.unref(r).curPage+5))},{default:t.withCtx(()=>[t.unref(a)?(t.openBlock(),t.createBlock(x,{key:0})):(t.openBlock(),t.createBlock($,{key:1}))]),_:1})],32)):t.createCommentVNode("",!0),t.unref(r).pagesCount()>1?(t.openBlock(),t.createElementBlock("li",p1,[t.createVNode(C,{skin:"pag",type:i(t.unref(r).pagesCount()===t.unref(r).curPage),text:t.unref(r).pagesCount(),onClick:m[8]||(m[8]=k=>d(t.unref(r).pagesCount()))},null,8,["type","text"])])):t.createCommentVNode("",!0)]),t.createVNode(C,{skin:"pag",type:o(t.unref(r).curPage===t.unref(r).pagesCount()),onClick:m[9]||(m[9]=k=>d(t.unref(r).curPage+1))},{default:t.withCtx(()=>[t.createVNode(M)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-57f15ca8"]]),y1=v(t.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},width:{type:[Number,String],default:"var(--input-width-default, 100%)"},focus:{type:Boolean,default:!1},maxHeightResultList:{type:String,default:"200px"},zIndexResultList:{type:String,default:"10"},boxShadowResultList:{type:String,default:"rgba(0, 0, 0, 0.35) 0px 5px 5px"}},emits:["select","load","input"],setup(n,{emit:e}){const i=n,o=e,r=t.ref(i.modelValue),s=t.ref();let a=Wo.SearchModel();t.watch(()=>i.focus,()=>{i.focus&&setTimeout(()=>{s.value.focus(),r.value=""},500)});const d=async f=>{if(f.length<2)return;s.value.activated=!0,a=Wo.SearchModel(),a.searchObjects=[],a.query=f,a.key=i.keyValue;const h=a.searchGroups.find(m=>m.key===i.keyValue);return h&&(a.searchGroup=h),await Ws.Search.Search(a),a.searchObjects},c=async f=>{o("select",f),r.value=""},u=f=>{o("input",f),f.length===0&&o("input","")};return(f,h)=>(t.openBlock(),t.createBlock(va,{ref_key:"searchForm",ref:s,modelValue:t.unref(r),"onUpdate:modelValue":h[0]||(h[0]=m=>t.isRef(r)?r.value=m:null),"max-height-result-list":n.maxHeightResultList,"z-index-result-list":n.zIndexResultList,"box-shadow-result-list":n.boxShadowResultList,width:n.width,"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:n.placeholder,"search-func":d,"trigger-on-focus":n.showSuggestions,suggestions:t.unref(a).searchObjects,onSelect:c,onInput:u},null,8,["modelValue","max-height-result-list","z-index-result-list","box-shadow-result-list","width","placeholder","trigger-on-focus","suggestions"]))}}),[["__scopeId","data-v-af0b4b1a"]]),w1={class:"mainblock-body"},b1={class:"mainblock-footer"},S1=v(t.defineComponent({__name:"ResearcheContainer",props:{background:{type:String,required:!1,default:"inherit"},padding:{type:String,required:!1,default:"0px 10px"}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"mainblock",style:t.normalizeStyle({background:n.background,padding:n.padding})},[t.createElementVNode("div",{class:"mainblock-header",style:t.normalizeStyle({background:n.background})},[t.renderSlot(e.$slots,"header",{},void 0,!0)],4),t.createElementVNode("div",w1,[t.renderSlot(e.$slots,"body",{},void 0,!0)]),t.createElementVNode("div",b1,[t.renderSlot(e.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-367c3367"]]),C1={class:"right-slider-content"},k1={class:"right-slider-content-header"},x1={class:"right-slider-content-box"},E1={class:"right-slider-button"},B1=v(t.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(n,{emit:e}){const i=n,o=e,r=t.ref(!1);t.watch(()=>i.toggle,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("toggle",a)};return(a,d)=>{const c=t.resolveComponent("PString");return t.openBlock(),t.createElementBlock("div",{class:"right-slider",style:t.normalizeStyle({marginRight:t.unref(r)?`calc(${n.sliderOffWidth} - ${n.sliderOnWidth})`:"0",width:n.sliderOnWidth})},[t.createElementVNode("div",{class:"click-line",onClick:d[0]||(d[0]=u=>s(!t.unref(r)))},[t.unref(r)?(t.openBlock(),t.createBlock(c,{key:0,string:n.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):t.createCommentVNode("",!0),t.unref(r)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,string:n.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),t.createElementVNode("div",C1,[t.createElementVNode("div",k1,[t.renderSlot(a.$slots,"header",{},void 0,!0)]),t.createElementVNode("div",x1,[t.renderSlot(a.$slots,"default",{},void 0,!0)])]),t.createElementVNode("div",E1,[t.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-262b1c53"]]),$1={class:"mainblock"},N1={class:"body-block"},M1={class:"tab-block"},I1=v(t.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(n,{emit:e}){const i=n,o=e,r=t.ref(!1),s=t.ref(window.matchMedia("(max-width: 768px)").matches),a=c=>{o("toggle",c)},d=t.ref(!1);return t.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(i.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return s.value=window.matchMedia("(max-width: 1215px)").matches;case"1024px":return s.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return s.value=window.matchMedia("(max-width: 768px)").matches}return s.value=window.matchMedia("(max-width: 1330px)").matches}),r.value=!0}),(c,u)=>(t.openBlock(),t.createElementBlock("div",$1,[t.createElementVNode("div",{class:"slider-block",style:t.normalizeStyle({marginRight:t.unref(s)?n.isToggle?"49px":`calc(49px - ${n.sliderOnWidth})`:n.isToggle?n.sliderOffWidth:`calc(${n.sliderOffWidth} - ${n.sliderOnWidth})`,width:n.sliderOnWidth,minHeight:n.sliderOffWidth,height:n.isToggle?"auto":"100px"})},[t.createElementVNode("div",{class:"slider-icon",style:t.normalizeStyle({border:n.isToggle?"1px solid #379FFF":"1px solid #00B5A4",background:n.isToggle?"#ffffff":"#C7ECEA"}),onClick:u[0]||(u[0]=f=>a(!n.isToggle)),onMouseenter:u[1]||(u[1]=f=>d.value=!0),onMouseleave:u[2]||(u[2]=f=>d.value=!1)},[t.createElementVNode("div",{class:"icon-block",style:t.normalizeStyle({transform:t.unref(d)?n.isToggle?"rotate(-225deg) scale(1.2, 1.2)":"rotate(0deg) scale(1.2, 1.2)":n.isToggle?"rotate(-225deg)":"rotate(0deg)",fill:n.isToggle?"#379FFF":"#00B5A4"})},[t.renderSlot(c.$slots,"icon",{},void 0,!0)],4)],36),t.createElementVNode("div",{class:"slider-info",style:t.normalizeStyle({width:`calc(${n.sliderOnWidth} - ${n.sliderOffWidth})`})},[t.renderSlot(c.$slots,"slider-body",{},void 0,!0)],4)],4),t.createElementVNode("div",N1,[t.renderSlot(c.$slots,"body",{},void 0,!0)]),t.createElementVNode("div",M1,[t.renderSlot(c.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-0cfd77ce"]]),V1=["label","value"],T1=v(t.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(n,{emit:e}){const i={[qe.String]:"Текстовый ответ",[qe.Text]:"Развёрнутый текстовый ответ",[qe.Number]:"Числовой ответ",[qe.Date]:"Ответ в виде даты",[qe.Radio]:"Выбор одного из вариантов",[qe.Set]:"Выбор нескольких вариантов",[qe.File]:"Ответ в виде файла",[qe.MatrixRadio]:"Матрица с одним выбором",[qe.MatrixSet]:"Матрица с несколькими выборами"},o=e,r=s=>{o("select",s)};return(s,a)=>{const d=t.resolveComponent("PString"),c=t.resolveComponent("PSelect");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(d,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),t.createVNode(c,{"model-value":n.selectedType,placeholder:"Вид ответа",onChange:r},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(u,f)=>t.createElementVNode("option",{key:u,label:u,value:f},null,8,V1)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-36a59e2b"]]),R1=["label","value"],P1=v(t.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(n,{emit:e}){const i=t.ref(!1),o=e,r=t.ref();t.onBeforeMount(()=>{i.value=!0,r.value=rn.GetDefault()});const s=async d=>{r.value=d??rn.GetDefault(),o("load")},a=async d=>{await s(d)};return(d,c)=>{var f;const u=t.resolveComponent("PSelect");return t.unref(i)?(t.openBlock(),t.createBlock(u,{key:0,modelValue:t.unref(r),"onUpdate:modelValue":c[0]||(c[0]=h=>t.isRef(r)?r.value=h:null),"popper-append-to-body":!1,clearable:!((f=t.unref(r))!=null&&f.default),"value-key":"label",onChange:a,onClear:c[1]||(c[1]=h=>a())},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(rn).Get(),(h,m)=>(t.openBlock(),t.createElementBlock("option",{key:m,label:h.label,value:h},null,8,R1))),128))]),_:1},8,["modelValue","clearable"])):t.createCommentVNode("",!0)}}}),[["__scopeId","data-v-982338b4"]]),v1=["label","value"],A1=v(t.defineComponent({__name:"SortSelect",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(n,{emit:e}){const i=e,o=t.ref();t.onBeforeMount(()=>{o.value=rn.GetDefault()});const r=async a=>{a||(o.value=rn.GetDefault()),At.Get().setSortModel(o.value),At.Get().p.drop(),i("load")},s=async a=>{await r(a)};return(a,d)=>{var u;const c=t.resolveComponent("PSelect");return t.openBlock(),t.createBlock(c,{modelValue:t.unref(o),"onUpdate:modelValue":d[0]||(d[0]=f=>t.isRef(o)?o.value=f:null),"popper-append-to-body":!1,clearable:!((u=t.unref(o))!=null&&u.default),"value-key":"label",onChange:s},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(rn).Get(),(f,h)=>(t.openBlock(),t.createElementBlock("option",{key:h,label:f.label,value:f},null,8,v1))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-80f413ec"]]),z1={class:"switch-container"},D1={class:"line"},F1={class:"line"},O1=v(t.defineComponent({__name:"Switch3Pos",props:{firstModel:{type:Object,required:!0},secondModel:{type:Object,required:!0},defaultLabel:{type:String,default:"Все"}},emits:["load"],setup(n,{emit:e}){const i=n,o={background:"inherit",border:"1px solid #c4c4c4"},r=()=>i.firstModel.valueEq(u.value)?void 0:o,s=()=>u.value?o:void 0,a=()=>i.secondModel.valueEq(u.value)?void 0:o,d=h=>{var w;return{color:(w=u.value)!=null&&w.valueEq(h)?"#006bb4":"#B0A4C0"}},c=e,u=t.ref(void 0),f=async h=>{var m;(m=u.value)!=null&&m.valueEq(h)||(u.value=h,c("load"))};return(h,m)=>{const w=t.resolveComponent("PString");return t.openBlock(),t.createElementBlock("div",z1,[t.createElementVNode("div",D1,[t.createVNode(w,{string:n.firstModel.label,"font-size":"12px",padding:"0",style:t.normalizeStyle(d(n.firstModel)),onClick:m[0]||(m[0]=C=>f(n.firstModel))},null,8,["string","style"]),t.createVNode(w,{string:"Все","font-size":"12px",padding:"0",style:t.normalizeStyle(d()),onClick:m[1]||(m[1]=C=>f())},null,8,["style"]),t.createVNode(w,{string:n.secondModel.label,"font-size":"12px",padding:"0",style:t.normalizeStyle(d(n.secondModel)),onClick:m[2]||(m[2]=C=>f(n.secondModel))},null,8,["string","style"])]),t.createElementVNode("div",F1,[t.createElementVNode("div",{class:t.normalizeClass(["switch-knob1",{active:n.firstModel.valueEq(t.unref(u))}]),style:t.normalizeStyle(r()),onClick:m[3]||(m[3]=C=>f(n.firstModel))},null,6),t.createElementVNode("div",{class:t.normalizeClass(["switch-knob2",{active:!t.unref(u)}]),style:t.normalizeStyle(s()),onClick:m[4]||(m[4]=C=>f())},null,6),t.createElementVNode("div",{class:t.normalizeClass(["switch-knob3",{active:n.secondModel.valueEq(t.unref(u))}]),style:t.normalizeStyle(a()),onClick:m[5]||(m[5]=C=>f(n.secondModel))},null,6),m[6]||(m[6]=t.createElementVNode("div",{class:"switch-axis"},null,-1)),m[7]||(m[7]=t.createElementVNode("div",{class:"switch-axis-dash1"},null,-1)),m[8]||(m[8]=t.createElementVNode("div",{class:"switch-axis-dash2"},null,-1)),m[9]||(m[9]=t.createElementVNode("div",{class:"switch-axis-dash3"},null,-1))])])}}}),[["__scopeId","data-v-ecff678c"]]),_1={},L1={class:"flex"};function H1(n,e){return t.openBlock(),t.createElementBlock("div",L1,[t.renderSlot(n.$slots,"default",{},void 0,!0)])}const U1=v(_1,[["render",H1],["__scopeId","data-v-5023d414"]]),q1=v(t.defineComponent({__name:"ToggleInfoItem",props:{title:{type:String,required:!0},content:{type:String,required:!0}},emits:["submit"],setup(n,{emit:e}){const i=t.ref(!1),o=e,r=async()=>{o("submit"),i.value=!i.value};return(s,a)=>{const d=t.resolveComponent("PString"),c=t.resolveComponent("PButton"),u=t.resolveComponent("GridContainer"),f=t.resolveComponent("InfoItem");return t.openBlock(),t.createBlock(f,{title:n.title,icon:"edit-title","with-hover":!0,close:t.unref(i),width:"100%",onKeyupEnter:r},{"open-inside-content":t.withCtx(()=>[t.createVNode(u,{"custom-class":"grid"},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default",{},void 0,!0),t.createVNode(c,{type:"admin",color:"blue",text:"Сохранить",onClick:r})]),_:3})]),default:t.withCtx(()=>[n.content.length>0?(t.openBlock(),t.createBlock(d,{key:0,string:n.content},null,8,["string"])):(t.openBlock(),t.createBlock(d,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-0794596f"]]),j1={class:"top-slider-content"},W1={class:"center"},G1=v(t.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(n,{emit:e}){const i=n,o=e,r=t.ref(!0);t.watch(()=>i.toggle,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("toggle",a)};return(a,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.unref(r)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"blur",onClick:[d[0]||(d[0]=t.withModifiers(c=>r.value=!0,["prevent"])),d[1]||(d[1]=t.withModifiers(()=>{},["stop"]))]})),t.createElementVNode("div",{class:"top-slider",style:t.normalizeStyle({marginTop:t.unref(r)?`calc(${n.sliderOffHeight} - ${n.sliderOnHeight})`:"0",height:n.sliderOnHeight}),onClick:d[3]||(d[3]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",j1,[t.createElementVNode("div",W1,[t.renderSlot(a.$slots,"default",{},void 0,!0)])]),t.createElementVNode("div",{class:"click-line",style:t.normalizeStyle({height:n.sliderOffHeight}),onClick:d[2]||(d[2]=c=>s(!t.unref(r)))},[t.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-683131f5"]]);function Q1(n){n.component("PageNotFound",Ps),n.component("AdaptiveContainer",Bg),n.component("AdaptiveContainerHorizontal",Mg),n.component("CarouselImages",zg),n.component("ContextWindow",Dg),n.component("DateInputRangeV2",Ug),n.component("DateInputRange",Og),n.component("DropList",Wg),n.component("FilterCheckbox",Gg),n.component("FiltersButtonsSelect",Qg),n.component("FilterSelect",Xg),n.component("FTSPPanel",Zg),n.component("GeneralItem",Jg),n.component("GridContainer",Ra),n.component("InfoItem",t1),n.component("InfoItemSelectButtons",n1),n.component("LeftRightContainer",r1),n.component("PAutocomplete",va),n.component("PhoneForm",l1),n.component("PLoader",u1),n.component("PPagination",g1),n.component("RemoteSearch",y1),n.component("ResearcheContainer",S1),n.component("RightSliderContainer",B1),n.component("RightTabsContainer",I1),n.component("SelectValueType",T1),n.component("SortList",P1),n.component("SortSelect",A1),n.component("Switch3Pos",O1),n.component("ThemeWrapper",U1),n.component("ToggleInfoItem",q1),n.component("TopSliderContainer",G1)}const Y1=v(t.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(n){const e=t.ref(!1);return(i,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?t.unref(e)?n.hoverColor:n.color:(t.unref(e),n.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},[...o[2]||(o[2]=[t.createElementVNode("use",{"xlink:href":"#download"},null,-1)])],38)),o[3]||(o[3]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"download",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[t.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"}),t.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"]]),X1=v(t.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(n){const e=t.ref(!1);return(i,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?t.unref(e)?n.hoverColor:n.color:(t.unref(e),n.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},[...o[2]||(o[2]=[t.createElementVNode("use",{"xlink:href":"#filter"},null,-1)])],38)),o[3]||(o[3]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"filter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[t.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"}),t.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"]]),Z1=v(t.defineComponent({__name:"IconArrowLeft",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...i[0]||(i[0]=[t.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)])],6)),i[1]||(i[1]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"arrow-left",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[t.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"]]),J1=v(t.defineComponent({__name:"IconCheckDefault",props:{size:{type:String,default:"22px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...i[0]||(i[0]=[t.createElementVNode("use",{"xlink:href":"#check_on"},null,-1)])],6)),i[1]||(i[1]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"check_on",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[t.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"]]),Aa=v(t.defineComponent({__name:"IconClose",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...i[0]||(i[0]=[t.createElementVNode("use",{"xlink:href":"#close"},null,-1)])],6)),i[1]||(i[1]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},[t.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"]]),K1=v(t.defineComponent({__name:"IconEdit",props:{size:{type:String,default:""},margin:{type:String,default:"0 15px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...i[0]||(i[0]=[t.createElementVNode("use",{"xlink:href":"#edit"},null,-1)])],6)),i[1]||(i[1]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[t.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"}),t.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"]]),e0=v(t.defineComponent({__name:"IconEmail",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...i[0]||(i[0]=[t.createElementVNode("use",{"xlink:href":"#email"},null,-1)])],6)),i[1]||(i[1]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"email",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[t.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"]]),t0=v(t.defineComponent({__name:"IconMove",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...i[0]||(i[0]=[t.createElementVNode("use",{"xlink:href":"#icon-move"},null,-1)])],6)),i[1]||(i[1]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"icon-move",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22"},[t.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"]]),n0=v(t.defineComponent({__name:"IconPhone",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...i[0]||(i[0]=[t.createElementVNode("use",{"xlink:href":"#phone"},null,-1)])],6)),i[1]||(i[1]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"phone",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[t.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"]]),i0=v(t.defineComponent({__name:"IconSelectArrow",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...i[0]||(i[0]=[t.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)])],6)),i[1]||(i[1]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"arrow-down",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},[t.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"}),t.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"]]),o0=v(t.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(n){const e=t.ref(!1);return(i,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?t.unref(e)?n.hoverColor:n.color:(t.unref(e),n.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},[...o[2]||(o[2]=[t.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)])],38)),o[3]||(o[3]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.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"]]),r0=v(t.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(n){const e=t.ref(!1);return(i,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?t.unref(e)?n.hoverColor:n.color:(t.unref(e),n.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},[...o[2]||(o[2]=[t.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)])],38)),o[3]||(o[3]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.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"]]),s0=v(t.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(n){const e=t.ref(!1);return(i,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?t.unref(e)?n.hoverColor:n.color:(t.unref(e),n.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},[...o[2]||(o[2]=[t.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)])],38)),o[3]||(o[3]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"double-arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.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"]]),a0=v(t.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(n){const e=t.ref(!1);return(i,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?t.unref(e)?n.hoverColor:n.color:(t.unref(e),n.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},[...o[2]||(o[2]=[t.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)])],38)),o[3]||(o[3]=t.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[t.createElementVNode("symbol",{id:"double-arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.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"]]),l0=v(t.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(n){const e=t.ref(!1);return(i,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["icon",n.iconClass]),style:t.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?t.unref(e)?n.hoverColor:n.color:(t.unref(e),n.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},[...o[2]||(o[2]=[t.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)])],38)),o[3]||(o[3]=t.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"]]);function c0(n){n.component("IconDownload",Y1),n.component("IconFilter",X1),n.component("ArrowLeft",o0),n.component("ArrowRight",r0),n.component("DoubleArrowLeft",s0),n.component("DoubleArrowRight",a0),n.component("EllipsisSvg",l0),n.component("IconArrowLeft",Z1),n.component("IconCheckDefault",J1),n.component("IconClose",Aa),n.component("IconEdit",K1),n.component("IconEmail",e0),n.component("IconMove",t0),n.component("IconPhone",n0),n.component("IconSearch",Pa),n.component("IconSelectArrow",i0)}const d0=t.defineComponent({name:"CollapseContainer",props:{initActiveIdx:{type:Number,default:0}},setup(n){const e=t.ref(n.initActiveIdx),i=o=>{e.value=o};return t.watch(()=>n.initActiveIdx,()=>{i(n.initActiveIdx)}),{changeActiveId:i,activeIdx:e}}});function u0(n,e,i,o,r,s){return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(n.$slots,"default",{activeIdx:n.activeIdx,changeActiveId:n.changeActiveId})])}const f0=v(d0,[["render",u0]]),h0=t.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(n,{emit:e}){const i=t.ref(n.activeId==="0"),o=()=>{i.value=!i.value,e("changeActiveId",n.tabId)};return t.onUpdated(()=>{n.activeId&&n.activeId!==n.tabId&&(i.value=!0)}),t.onBeforeMount(()=>{n.activeId&&n.activeId!==n.tabId&&(i.value=!1)}),{collapsed:i,handleItemClick:o}}}),m0=["for"],p0={class:"inside-icon"};function g0(n,e,i,o,r,s){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:"tab",style:t.normalizeStyle({margin:n.margin,height:n.isCollaps&&n.collapsed?"60px":"","box-shadow":n.selectable&&n.activeId===n.tabId?"0px 0px 1px 2px #1979cf":""})},[n.isCollaps&&n.collapsed?(t.openBlock(),t.createElementBlock("svg",{key:0,class:"icon-arrow",onClick:e[0]||(e[0]=(...a)=>n.handleItemClick&&n.handleItemClick(...a))},[...e[3]||(e[3]=[t.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)])])):n.isCollaps&&!n.collapsed?(t.openBlock(),t.createElementBlock("svg",{key:1,class:"icon-arrow",onClick:e[1]||(e[1]=(...a)=>n.handleItemClick&&n.handleItemClick(...a))},[...e[4]||(e[4]=[t.createElementVNode("use",{"xlink:href":"#arrow-up"},null,-1)])])):t.createCommentVNode("",!0),t.createElementVNode("label",{for:n.tabId,onClick:e[2]||(e[2]=(...a)=>n.handleItemClick&&n.handleItemClick(...a))},[t.createElementVNode("div",{style:t.normalizeStyle({cursor:n.isCollaps?"pointer":"default",background:n.changeColor?n.background:n.backgroundAttention,padding:n.padding,borderRadius:"5px"}),class:"tab-name"},[t.createElementVNode("div",p0,[t.renderSlot(n.$slots,"icon",{},void 0,!0)]),t.createElementVNode("div",{class:"title-in",style:t.normalizeStyle({marginRight:n.isCollaps?"50px":"0",width:n.isCollaps?"calc(100% - 50px)":"100%"})},[t.renderSlot(n.$slots,"inside-title",{},()=>[t.createTextVNode(t.toDisplayString(n.title),1)],!0)],4),t.createElementVNode("div",{class:t.normalizeClass(["tools-bar",{"hidden-part":n.showToolsOnHover}])},[t.renderSlot(n.$slots,"tools",{},void 0,!0)],2)],4)],8,m0),t.createElementVNode("div",{style:t.normalizeStyle({maxHeight:n.isCollaps?"":"1000000vh",background:n.changeColor?n.background:n.backgroundAttention}),class:t.normalizeClass(n.collapsed?"tab-content-down":"tab-content-up")},[t.renderSlot(n.$slots,"default",{},void 0,!0)],6)],4),e[5]||(e[5]=t.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-c2e31ebb><symbol id="arrow-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-c2e31ebb><path d="M5 6L10 11L15 6L17 7L10 14L3 7L5 6Z" fill="currentColor" data-v-c2e31ebb></path></symbol><symbol id="arrow-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-c2e31ebb><path d="M15 14L10 9L5 14L3 13L10 6L17 13L15 14Z" fill="currentColor" data-v-c2e31ebb></path></symbol></svg>',1))],64)}const y0=v(h0,[["render",g0],["__scopeId","data-v-c2e31ebb"]]),w0={class:"tab"},b0={class:"rotate"},S0=v(t.defineComponent({__name:"VerticalCollapseContainer",setup(n){const e=t.ref(!1),i=async()=>{e.value=!e.value};return(o,r)=>{const s=t.resolveComponent("ArrowRight"),a=t.resolveComponent("ArrowLeft");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",w0,[t.renderSlot(o.$slots,"main",{},void 0,!0),t.createElementVNode("div",{style:t.normalizeStyle({width:t.unref(e)?"50%":"20px",transition:"0.3s"}),class:"left"},[t.createElementVNode("div",{style:t.normalizeStyle({width:t.unref(e)?"100%":"0",transition:"0.3s"}),class:"left-content"},[t.renderSlot(o.$slots,"inside-content-left",{},void 0,!0)],4),t.createElementVNode("div",{class:"arrow-bar",onClick:i},[t.createElementVNode("div",b0,[t.renderSlot(o.$slots,"inside-title",{},void 0,!0)]),t.unref(e)?(t.openBlock(),t.createBlock(s,{key:0,"icon-class":"icon-arrow"})):(t.openBlock(),t.createBlock(a,{key:1,"icon-class":"icon-arrow"}))])],4),t.createElementVNode("div",{style:t.normalizeStyle({width:t.unref(e)?"50%":"100%",transition:"0.3s"}),class:"right"},[t.renderSlot(o.$slots,"inside-content-right",{},void 0,!0)],4)]),t.createVNode(a),t.createVNode(s)],64)}}}),[["__scopeId","data-v-4ccaade5"]]),C0={class:"add-block_body"},k0=v(t.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(n){return(e,i)=>{const o=t.resolveComponent("PSticky");return t.openBlock(),t.createElementBlock("div",{class:"add-block",style:t.normalizeStyle({margin:n.margin,background:n.background,padding:n.padding})},[t.createVNode(o,{top:n.top,"z-index":n.zIndex},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),t.createElementVNode("div",C0,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-338720bc"]]),x0=v(t.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(n){return(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"add-block",style:t.normalizeStyle({margin:n.margin,background:n.background,padding:n.padding})},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-b2b43a38"]]),E0={class:"add-block_body"},B0=v(t.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(n){return(e,i)=>{const o=t.resolveComponent("PSticky"),r=t.resolveComponent("PContainer");return t.openBlock(),t.createBlock(r,{background:n.background,margin:n.margin,padding:n.padding},{default:t.withCtx(()=>[t.createVNode(o,{top:n.top,"z-index":n.zIndex},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),t.createElementVNode("div",E0,[t.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-9464e4a8"]]),$0=["src"],N0={key:0,class:"header-row"},M0={class:"title-wrapper"},I0={key:0,class:"title-icon"},V0={class:"title-text"},T0={class:"text-subtitle1 text-weight-medium"},R0={key:0,class:"caption-row"},P0={class:"text-caption text-grey-6"},v0=["innerHTML"],A0={key:1,class:"card-footer"},za=v(t.defineComponent({__name:"PCard",props:{height:{type:String,default:"auto"},maxHeight:{type:String,default:"none"},img:{type:String,default:""},title:{type:String,default:""},content:{type:String,default:""},caption:{type:String,default:""},icon:{type:String,default:""},isMain:{type:Boolean,default:!1},noPointer:{type:Boolean,default:!1},noHover:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:e}){const i=t.ref(null),o=n,r=e,s=t.computed(()=>o.img?o.isMain?"365px":"200px":"0"),a=d=>{o.noPointer||r("click",d)};return(d,c)=>(t.openBlock(),t.createBlock(t.unref(V.QCard),{class:t.normalizeClass(["card",{"no-hover":n.noHover,"cursor-pointer":!n.noPointer}]),flat:"",bordered:"",style:t.normalizeStyle({height:n.height}),onClick:a},{default:t.withCtx(()=>[n.img?(t.openBlock(),t.createElementBlock("div",{key:0,class:"image-container",style:t.normalizeStyle({height:s.value})},[t.createElementVNode("img",{class:"image-img",src:n.img,alt:"image",style:t.normalizeStyle({height:s.value})},null,12,$0)],4)):t.createCommentVNode("",!0),t.createVNode(t.unref(V.QCardSection),{class:"card-content",style:t.normalizeStyle({maxHeight:n.maxHeight})},{default:t.withCtx(()=>[n.title||d.$slots.title||d.$slots.icon?(t.openBlock(),t.createElementBlock("div",N0,[t.createElementVNode("div",M0,[n.icon||d.$slots.icon?(t.openBlock(),t.createElementBlock("div",I0,[t.renderSlot(d.$slots,"icon",{},()=>[t.createVNode(t.unref(V.QIcon),{name:n.icon,size:"20px",color:"primary"},null,8,["name"])],!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",V0,[t.renderSlot(d.$slots,"title",{},()=>[t.createElementVNode("span",T0,t.toDisplayString(n.title),1)],!0)])]),d.$slots.caption||n.caption?(t.openBlock(),t.createElementBlock("div",R0,[t.renderSlot(d.$slots,"caption",{},()=>[t.createElementVNode("span",P0,t.toDisplayString(n.caption),1)],!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),n.title||d.$slots.title?(t.openBlock(),t.createBlock(t.unref(V.QSeparator),{key:1,class:"header-separator"})):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"contentRef",ref:i,class:"content-wrapper"},[t.renderSlot(d.$slots,"default",{},()=>[n.content?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.isMain?"main-content":"preview-content"),innerHTML:n.content},null,10,v0)):t.createCommentVNode("",!0)],!0)],512)]),_:3},8,["style"]),d.$slots.footer?(t.openBlock(),t.createElementBlock("div",A0,[t.renderSlot(d.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3},8,["style","class"]))}}),[["__scopeId","data-v-b586d556"]]),z0={key:0,class:"list-title"},D0={class:"draggable-item"},F0={class:"drag-handle"},O0={class:"item-content"},_0={key:0,class:"item-actions"},L0={class:"item-content"},H0={key:0,class:"item-actions"},U0={key:4,class:"add-button-container"},q0=t.defineComponent({__name:"PCrudList",props:{sortable:{type:Boolean,default:!0},showAdd:{type:Boolean,default:!0},showDelete:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},title:{type:String,required:!0,default:""},store:{type:R.H.BaseStore,default:void 0},addFunc:{type:Function,required:!0},addToList:{type:Boolean,default:!0},removeFromList:{type:Boolean,default:!0},margin:{type:String,required:!0,default:"0"},background:{type:String,required:!0,default:"var(--background-color)"}},emits:["add","remove","update","sort"],setup(n,{emit:e}){t.useCssVars(c=>({v73008f9f:n.background}));const i=n,o=e,r=async()=>{const c=await i.addFunc();c.order!=="undefined"&&(c.order=i.list.length),i.addToList&&i.store&&i.store.AppendToAll(c),i.store&&await i.store.Create(c),await d(),o("add",c)},s=async c=>{i.removeFromList&&R.H.Classes.RemoveFromClassById(c,i.list),i.store&&await i.store.Remove(c),await d(),o("remove",c)},a=async c=>{i.store&&await i.store.Update(c),o("update",c)},d=async()=>{!i.sortable||i.list.length===0||typeof i.list[0].order>"u"||(R.H.Sorter.Sort(i.list),i.store&&await i.store.UpdateMany(i.list),o("sort"))};return(c,u)=>(t.openBlock(),t.createElementBlock("div",t.mergeProps(c.$attrs,{style:{margin:n.margin,boxSizing:"border-box"},class:"ordered-list"}),[n.title?(t.openBlock(),t.createElementBlock("div",z0,t.toDisplayString(n.title),1)):t.renderSlot(c.$slots,"title",{},void 0,!0,1),n.sortable?(t.openBlock(),t.createBlock(t.unref(ho),{key:2,class:"draggable-list",list:n.list,"item-key":"id",handle:".drag-handle",onEnd:d},{item:t.withCtx(({element:f,index:h})=>[t.createElementVNode("div",D0,[t.createElementVNode("div",F0,[t.createVNode(t.unref(V.QIcon),{name:"drag_indicator",class:"drag-icon"})]),t.createElementVNode("div",O0,[t.renderSlot(c.$slots,"default",{item:f,update:a,index:h},()=>[t.createVNode(Wt,{modelValue:f.name,"onUpdate:modelValue":m=>f.name=m,outlined:"",dense:"",class:"content-input",onBlur:m=>a(f)},null,8,["modelValue","onUpdate:modelValue","onBlur"])],!0)]),n.showDelete?(t.openBlock(),t.createElementBlock("div",_0,[t.createVNode(Ke,{icon:"delete",flat:"",round:"",dense:"",color:"negative",class:"delete-btn",onClick:m=>s(f.id)},null,8,["onClick"])])):t.createCommentVNode("",!0)])]),_:3},8,["list"])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:3},t.renderList(n.list,(f,h)=>(t.openBlock(),t.createElementBlock("div",{key:f.id,class:"static-item",style:t.normalizeStyle({background:n.background})},[t.createElementVNode("div",L0,[t.renderSlot(c.$slots,"default",{item:f,update:a,index:h},()=>[t.createVNode(Wt,{modelValue:f.name,"onUpdate:modelValue":m=>f.name=m,outlined:"",dense:"",class:"content-input",onBlur:m=>a(f)},null,8,["modelValue","onUpdate:modelValue","onBlur"])],!0)]),n.showDelete?(t.openBlock(),t.createElementBlock("div",H0,[t.createVNode(Ke,{icon:"delete",flat:"",round:"",dense:"",color:"negative",class:"delete-btn",onClick:m=>s(f.id)},null,8,["onClick"])])):t.createCommentVNode("",!0)],4))),128)),n.showAdd?(t.openBlock(),t.createElementBlock("div",U0,[t.createVNode(Ke,{color:"secondary",label:"Добавить",icon:"add",class:"add-btn",onClick:r})])):t.createCommentVNode("",!0)],16))}}),Da=v(q0,[["__scopeId","data-v-27edbd1f"]]),j0={class:"del-block_title"},W0={class:"del-block_body"},G0=v(t.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(n){return(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"del-block",style:t.normalizeStyle({margin:n.margin,background:n.background,padding:n.padding})},[t.createElementVNode("div",j0,[t.renderSlot(e.$slots,"title",{},void 0,!0)]),t.createElementVNode("div",W0,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-58d048aa"]]),Q0={title:"Редактирование",confirmLabel:"Сохранить",cancelLabel:"Отмена",width:"720px",disabled:!1,showConfirm:!0},Y0={class:"edit-dialog-header"},X0={class:"edit-dialog-title"},Z0={class:"edit-dialog-content"},J0={key:0,class:"edit-dialog-actions"},Fa=v(t.defineComponent({__name:"PEditDialog",props:t.mergeDefaults({modelValue:{type:Boolean},title:{},confirmLabel:{},cancelLabel:{},width:{},disabled:{type:Boolean},showConfirm:{type:Boolean}},Q0),emits:["update:modelValue","confirm","close"],setup(n,{expose:e,emit:i}){const o=n,r=i,s=t.ref(!1);t.watch(()=>o.modelValue,h=>{s.value=h},{immediate:!0});const a=async()=>{r("confirm"),d()},d=()=>{r("close"),s.value=!1,r("update:modelValue",!1)},c=()=>{s.value&&d()};e({opened:s,toggle:()=>{s.value=!s.value,r("update:modelValue",s.value)}});const f=async()=>{await t.nextTick();const h=document.querySelector('.edit-dialog-content input, .edit-dialog-content textarea, .edit-dialog-content [tabindex]:not([tabindex="-1"])');h&&"focus"in h&&h.focus()};return(h,m)=>{const w=t.resolveDirective("close-popup");return t.openBlock(),t.createBlock(Zi,{modelValue:t.unref(s),"onUpdate:modelValue":[m[0]||(m[0]=C=>t.isRef(s)?s.value=C:null),d],position:"top",onKeydown:[t.withKeys(a,["enter"]),t.withKeys(c,["escape"])],onShow:f},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"edit-dialog",style:t.normalizeStyle({width:o.width})},[t.createElementVNode("div",Y0,[t.createElementVNode("div",X0,t.toDisplayString(o.title),1),t.withDirectives(t.createVNode(Ke,{icon:"close",flat:"",dense:"",round:"",size:"sm"},null,512),[[w]])]),t.createElementVNode("div",Z0,[t.renderSlot(h.$slots,"default",{},void 0,!0)]),o.showConfirm?(t.openBlock(),t.createElementBlock("div",J0,[t.withDirectives(t.createVNode(Ke,{flat:"",label:o.cancelLabel,size:"sm"},null,8,["label"]),[[w]]),t.createVNode(Ke,{flat:"",label:o.confirmLabel,color:"primary",disable:o.disabled,size:"sm",onClick:a},null,8,["label","disable"])])):t.createCommentVNode("",!0)],4)]),_:3},8,["modelValue"])}}}),[["__scopeId","data-v-beb7df93"]]),Oa=v(t.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(n,{emit:e}){const i=n,o=e,r=a=>{a.key==="Escape"&&s()};t.onMounted(()=>{document.body.addEventListener("keydown",r)}),t.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",r)});const s=()=>{i.closable&&o("close")};return(a,d)=>{const c=t.resolveComponent("IconClose");return t.openBlock(),t.createElementBlock(t.Fragment,null,[n.show?(t.openBlock(),t.createElementBlock("div",{key:0,class:"blur",onClick:s})):t.createCommentVNode("",!0),n.show?(t.openBlock(),t.createElementBlock("div",{key:1,class:"modal-w",style:t.normalizeStyle({maxWidth:n.width,width:n.width,margin:n.margin,padding:n.padding,top:n.top,maxHeight:n.maxHeight})},[n.closable?(t.openBlock(),t.createElementBlock("div",{key:0,class:"icon-box",onClick:s},[t.createVNode(c,{size:"20px"})])):t.createCommentVNode("",!0),t.renderSlot(a.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ece06e7d"]]);function K0(n){n.component("CollapseContainer",f0),n.component("CollapseItem",y0),n.component("VerticalCollapseContainer",S0),n.component("PAdd",k0),n.component("PCard",za),n.component("PCrudList",Da),n.component("PEditDialog",Fa),n.component("PModal",Oa),n.component("PContainer",x0),n.component("PContainerStickyHead",B0),n.component("PDel",G0)}const ey={class:"btn-group"},_a=v(t.defineComponent({__name:"PAuthForm",props:{width:{type:String,default:"auto"},margin:{type:String,default:"auto"},padding:{type:String,default:"0"},background:{type:String,default:"inherit"}},emits:["submit"],setup(n,{emit:e}){const i=e,o=t.computed(()=>Ae.Form.GetButtons()),r=t.useTemplateRef("fields"),s=async d=>{if(!d.isSubmit){Ae.Form.SetChunk(d.GetChunk()),a();return}const c=Ae.Form.Validate();if(c.length>0){qt.Notify.Error(c.join("<br/>"));return}i("submit")},a=()=>{if(!r.value)return;const d=r.value[0];d&&d.$refs.input.focus()};return t.onMounted(async()=>{await a()}),t.onBeforeUnmount(()=>{Ae.Form.Reset()}),(d,c)=>(t.openBlock(),t.createElementBlock("div",{class:"auth-card",style:t.normalizeStyle({maxWidth:n.width,margin:n.margin,padding:n.padding,background:n.background})},[t.createVNode(ir,{string:t.unref(Ae).Form.GetTitle(),"font-size":"18px"},null,8,["string"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Ae).Form.GetFields(),u=>(t.openBlock(),t.createBlock(Wt,{id:u.id,key:u.id,ref_for:!0,ref_key:"fields",ref:r,modelValue:u.value,"onUpdate:modelValue":f=>u.value=f,autocomplete:"nope",type:u.IsPassword?"password":"text",placeholder:u.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder"]))),128)),t.createElementVNode("div",ey,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(o),(u,f)=>(t.openBlock(),t.createBlock(Ke,{id:u.id,key:u.GetChunk(),disabled:t.unref(Ae).Form.IsBlock,type:f===0?t.unref(me).Success:t.unref(me).Primary,skin:"base",text:u.text,margin:"10px 0 0 0",width:"100%",onClick:h=>s(u)},null,8,["id","disabled","type","text","onClick"]))),128))])],4))}}),[["__scopeId","data-v-b315f2c4"]]),ty=t.defineComponent({__name:"PAuthModal",props:{width:{type:String,default:"320px"},margin:{type:String,default:"0"},padding:{type:String,default:"2vw"}},emits:["submit"],setup(n){const e=()=>{Ae.Form.Reset(),Ae.Modal.Close()};return(i,o)=>(t.openBlock(),t.createBlock(Oa,{show:t.unref(Ae).Modal.Visible,closable:t.unref(Ae).Modal.Closable,width:n.width,padding:n.padding,onClose:e},{default:t.withCtx(()=>[t.createVNode(_a,{margin:n.margin,padding:"0",onSubmit:o[0]||(o[0]=r=>i.$emit("submit"))},null,8,["margin"])]),_:1},8,["show","closable","width","padding"]))}}),ny={class:"field"},iy=v(t.defineComponent({__name:"PNameEdit",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(n,{emit:e}){const i=n,o=e,r=t.ref(!1),s=t.ref(),a=t.ref(i.withName.name),d=t.ref(!1),c=()=>{d.value=!1},u=async()=>{a.value.trim(),i.withName.setName&&i.withName.setName(a.value),r.value=!r.value,o("submit")};return(f,h)=>{const m=t.resolveComponent("PString"),w=t.resolveComponent("PInput"),C=t.resolveComponent("InfoItem"),B=t.resolveComponent("PButton"),$=t.resolveComponent("el-form");return t.openBlock(),t.createBlock($,{ref_key:"form",ref:s,style:{width:"100%"}},{default:t.withCtx(()=>[t.createVNode(C,{title:"Название","show-save-dialog":d.value,icon:"edit-title","with-hover":!0,close:r.value,width:"100%",onKeyupEnter:u,onAfterClose:c},{"open-inside-content":t.withCtx(()=>[t.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:t.withCtx(()=>[t.createElementVNode("div",ny,[t.createVNode(w,{modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=x=>a.value=x),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])])]),_:1}),t.createVNode(B,{type:"admin",color:"blue",text:"Сохранить",onClick:u})]),default:t.withCtx(()=>[a.value.length?(t.openBlock(),t.createBlock(m,{key:0,string:a.value.length>60?a.value.slice(0,60)+"...":a.value},null,8,["string"])):(t.openBlock(),t.createBlock(m,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:1},8,["show-save-dialog","close"])]),_:1},512)}}}),[["__scopeId","data-v-4f7966cb"]]),oy=["onClick"],ry=v(t.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(n,{emit:e}){const i=n,o=e,r=t.ref(window.innerWidth),s=t.ref(),a=t.ref(Number(i.tabHeight.replace(/[^+\d]/g,""))),d=()=>{r.value=window.innerWidth,a.value=s.value?s.value.clientHeight:Number(i.tabHeight.replace(/[^+\d]/g,""))};t.onMounted(()=>window.addEventListener("resize",d)),t.onUnmounted(()=>window.removeEventListener("resize",d));const c=t.computed(()=>`calc(100% - ${a.value}px + 1px)`);t.onBeforeMount(()=>{i.menus.Select()});const u=f=>{i.menus.Select(f),o("select")};return(f,h)=>(t.openBlock(),t.createElementBlock("div",{class:"mainblock",style:t.normalizeStyle({height:`calc(100% - ${n.outTopMargin} - ${n.tabHeight}`,margin:n.margin,borderRadius:n.borderRadius})},[t.createElementVNode("div",{ref_key:"menuRef",ref:s,class:"top-menu",style:t.normalizeStyle({gridTemplateColumns:`repeat(auto-fit, minmax(${n.minMenuItemWidth}, 1fr))`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.menus.items,(m,w)=>(t.openBlock(),t.createElementBlock("div",{key:w},[t.createElementVNode("div",{class:t.normalizeClass({"selected-tab":w===n.menus.idx,tab:w!==n.menus.idx}),style:t.normalizeStyle({minHeight:n.tabHeight,maxHeight:n.tabHeight}),onClick:C=>u(w)},t.toDisplayString(m.name),15,oy)]))),128))],4),t.createElementVNode("div",{class:"body-container",style:t.normalizeStyle({background:n.background,height:t.unref(c)})},[t.renderSlot(f.$slots,"default",{},()=>[n.menus.idx>-1?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.menus.GetComponent()),{key:0})):t.createCommentVNode("",!0)],!0)],4)],4))}}),[["__scopeId","data-v-caa5b5d8"]]),sy=["id"],ay=["for"],ly={class:"left-field"},cy=["href","download"],dy={key:1,class:"text-field__input"},uy={class:"right-field"},fy=t.defineComponent({__name:"PUploaderFile",props:{fileInfo:{type:Object,required:!1,default:new Ge},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(n,{emit:e}){const i=n,o=e,r=De.GUID(),s=De.GUID(),a=()=>{const u=document.getElementById(r);if(!u.files)return;const f=u.files[0];if(!f)return;if(!c(f.name)){Ct.Error(`Загруженный файл должен быть в одном из форматов: ${i.formats.join(", ")}`);return}const h=new Ge;h.setFile(f),h.url=URL.createObjectURL(f),o("upload",h)},d=()=>{o("remove")};t.onMounted(()=>{const u=document.getElementById(s);u&&(u.onclick=()=>{var f;return(f=document.getElementById(r))==null?void 0:f.click()})});const c=u=>{let f=As.Get(u);return!!i.formats.includes(f.toLowerCase())};return(u,f)=>{const h=t.resolveComponent("PString"),m=t.resolveComponent("PFlex"),w=t.resolveComponent("PButton");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("input",{id:t.unref(r),type:"file",hidden:"",onChange:a},null,40,sy),t.createElementVNode("div",{class:"text-field",style:t.normalizeStyle({margin:n.margin,padding:n.padding})},[n.label?(t.openBlock(),t.createElementBlock("label",{key:0,class:"text-field__label",for:n.label},t.toDisplayString(n.label),9,ay)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"field",style:t.normalizeStyle({borderColor:n.borderColor})},[t.createElementVNode("div",ly,[t.createVNode(m,null,{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default",{},void 0,!0),t.createVNode(h,{string:n.placeholder,"font-size":"var(--font-size-default:)",color:"var(--input-label-color)",margin:"0 10px 0 0"},null,8,["string"])]),_:3})]),n.fileInfo&&n.fileInfo.originalName?(t.openBlock(),t.createElementBlock("div",{key:0,class:"text-field__input",style:t.normalizeStyle({color:n.color})},[t.createElementVNode("a",{href:n.fileInfo.getFileUrl(),target:"_blank",download:n.fileInfo.originalName},[t.createElementVNode("div",null,t.toDisplayString(n.fileInfo.originalName),1)],8,cy),t.createVNode(w,{skin:"text",type:"del",onClick:d},{default:t.withCtx(()=>[t.createVNode(Aa,{size:"20px",margin:"0 5px"})]),_:1})],4)):(t.openBlock(),t.createElementBlock("div",dy,[t.createVNode(h,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),t.createElementVNode("div",uy,[t.createVNode(w,{id:t.unref(s),skin:"text",type:"success","data-test":"upload-btn",text:n.fileInfo&&n.fileInfo.originalName?"Обновить":"Загрузить",margin:"0"},null,8,["id","text"])])],4)],4)],64)}}}),hy=v(fy,[["__scopeId","data-v-8b73ee22"]]);function La(n,e){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),i.push.apply(i,o)}return i}function ae(n){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?La(Object(i),!0).forEach(function(o){dt(n,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):La(Object(i)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(i,o))})}return n}function dt(n,e,i){return e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function my(n,e){if(n==null)return{};var i,o,r=function(a,d){if(a==null)return{};var c,u,f={},h=Object.keys(a);for(u=0;u<h.length;u++)c=h[u],d.indexOf(c)>=0||(f[c]=a[c]);return f}(n,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(o=0;o<s.length;o++)i=s[o],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(n,i)&&(r[i]=n[i])}return r}function fn(n){return function(e){if(Array.isArray(e))return rr(e)}(n)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(n)||function(e,i){if(e){if(typeof e=="string")return rr(e,i);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return rr(e,i)}}(n)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
26
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function rr(n,e){(e==null||e>n.length)&&(e=n.length);for(var i=0,o=new Array(e);i<e;i++)o[i]=n[i];return o}var Ha,py,Ki,Ne=(Ha=function(n){/*!
|
|
24
27
|
Copyright (c) 2018 Jed Watson.
|
|
25
28
|
Licensed under the MIT License (MIT), see
|
|
26
29
|
http://jedwatson.github.io/classnames
|
|
27
|
-
*/(function(){var e={}.hasOwnProperty;function i(){for(var
|
|
30
|
+
*/(function(){var e={}.hasOwnProperty;function i(){for(var o=[],r=0;r<arguments.length;r++){var s=arguments[r];if(s){var a=typeof s;if(a==="string"||a==="number")o.push(s);else if(Array.isArray(s)){if(s.length){var d=i.apply(null,s);d&&o.push(d)}}else if(a==="object")if(s.toString===Object.prototype.toString)for(var c in s)e.call(s,c)&&s[c]&&o.push(c);else o.push(s.toString())}}return o.join(" ")}n.exports?(i.default=i,n.exports=i):window.classNames=i})()},Ha(Ki={path:py,exports:{},require:function(n,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e==null&&Ki.path)}},Ki.exports),Ki.exports),yt=function(n){return function(e,i){if(!e)return n;var o;typeof e=="string"?o=e:i=e;var r=n;return o&&(r+="__"+o),r+(i?Object.keys(i).reduce(function(s,a){var d=i[a];return d&&(s+=" "+(typeof d=="boolean"?r+"--"+a:r+"--"+a+"_"+d)),s},""):"")}};function sr(n,e,i){var o,r,s,a,d;function c(){var f=Date.now()-a;f<e&&f>=0?o=setTimeout(c,e-f):(o=null,i||(d=n.apply(s,r),s=r=null))}e==null&&(e=100);var u=function(){s=this,r=arguments,a=Date.now();var f=i&&!o;return o||(o=setTimeout(c,e)),f&&(d=n.apply(s,r),s=r=null),d};return u.clear=function(){o&&(clearTimeout(o),o=null)},u.flush=function(){o&&(d=n.apply(s,r),s=r=null,clearTimeout(o),o=null)},u}sr.debounce=sr;var ar=sr,G=function(){return G=Object.assign||function(n){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},G.apply(this,arguments)};/*! *****************************************************************************
|
|
28
31
|
Copyright (c) Microsoft Corporation.
|
|
29
32
|
|
|
30
33
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -37,5 +40,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37
40
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
38
41
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
39
42
|
PERFORMANCE OF THIS SOFTWARE.
|
|
40
|
-
***************************************************************************** */function Ts(t,e){var i,r;return t&&e?(i=""+t+e[0].toUpperCase()+e.slice(1),r=t+"-"+e):(i=t||e,r=t||e),{name:i,classname:r}}function Os(t){return/^blob:/.test(t)}function Fs(t){return Os(t)||function(e){return/^data:/.test(e)}(t)}function tn(t){return!!(t&&t.constructor&&t.call&&t.apply)}function fe(t){return t===void 0}function gi(t){return typeof t=="object"&&t!==null}function xr(t,e,i){var r={};return gi(t)?(Object.keys(e).forEach(function(o){fe(t[o])?r[o]=e[o]:gi(e[o])?gi(t[o])?r[o]=xr(t[o],e[o],i[o]):r[o]=t[o]?e[o]:i[o]:e[o]===!0||e[o]===!1?r[o]=!!t[o]:r[o]=t[o]}),r):t?e:i}function yi(t){var e=Number(t);return Number.isNaN(e)?t:e}function Ds(t){return typeof(t=="number"||function(e){return typeof e=="object"&&e!==null}(t)&&toString.call(t)=="[object Number]")&&!Ls(t)}function Ls(t){return t!=t}function Hs(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var En=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},tg=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},Er=function(t){this.type="move",this.directions=t},ng=function(){function t(e,i,r,o,s){this.type="drag",this.nativeEvent=e,this.position=r,this.previousPosition=o,this.element=i,this.anchor=s}return t.prototype.shift=function(){var e=this,i=e.element,r=e.anchor,o=e.position;if(i){var s=i.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}(),Br={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=vt(t.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),t.touches.length&&this.initAnchor(this.touches.reduce(function(e,i){return{clientX:e.clientX+i.clientX/t.touches.length,clientY:e.clientY+i.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(),i=e.left,r=e.right,o=e.bottom,s=e.top;this.anchor={left:t.clientX-i,top:t.clientY-s,bottom:o-t.clientY,right:r-t.clientX}},processMove:function(t,e){var i=vt(e);if(this.touches.length){if(this.touches.length===1&&i.length===1){var r=this.$refs.draggable;this.$emit("drag",new ng(t,r,{left:i[0].clientX,top:i[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=i}},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"]};Br.render=function(t,e,i,r,o,s){return n.openBlock(),n.createBlock("div",{ref:"draggable",class:i.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)})},[n.renderSlot(t.$slots,"default")],34)};var $r=qe("vue-handler-wrapper"),_s={name:"HandlerWrapper",components:{DraggableElement:Br},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var t;if(this.horizontalPosition||this.verticalPosition){var e,i=Ts(this.horizontalPosition,this.verticalPosition);t=$r((Fe(e={},i.classname,!0),Fe(e,"disabled",this.disabled),e))}else t=$r({disabled:this.disabled});return{root:t,draggable:$r("draggable")}}},emits:["leave","enter","drag","drag-end"]};_s.render=function(t,e,i,r,o,s){var a=n.resolveComponent("DraggableElement");return n.openBlock(),n.createBlock("div",{class:s.classes.root},[n.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:n.withCtx(function(){return[n.renderSlot(t.$slots,"default")]}),_:3},8,["class"])],2)};var ig=qe("vue-line-wrapper"),Us={name:"LineWrapper",components:{DraggableElement:Br},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return ig((Fe(t={},this.position,!0),Fe(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};Us.render=function(t,e,i,r,o,s){var a=n.resolveComponent("DraggableElement");return n.openBlock(),n.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:n.withCtx(function(){return[n.renderSlot(t.$slots,"default")]}),_:3},8,["class"])};var Ke=["left","right","top","bottom"],rg=["left","right"],og=["top","bottom"],sg=["left","top"],ag=["fill-area","fit-area","stencil","none"],qs={left:0,top:0,width:0,height:0};function js(t,e,i){return!(i=i||["width","height","left","top"]).some(function(r){return t[r]!==e[r]})}function et(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function nn(t,e){return{left:t.left-e.left,top:t.top-e.top}}function be(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function Bn(t,e){var i={left:0,top:0,right:0,bottom:0};return Ke.forEach(function(r){var o=e[r],s=et(t)[r];i[r]=o!==void 0&&s!==void 0?r==="left"||r==="top"?Math.max(0,o-s):Math.max(0,s-o):0}),i}function tt(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 wi(t){return{left:-t.left,top:-t.top}}function Me(t,e){return O(O({},t),{left:t.left+e.left,top:t.top+e.top})}function De(t,e,i,r){if(e!==1){if(i){var o=be(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(i.left-o.left)*(1-e),top:t.top+t.height*(1-e)/2+(i.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 X(t){return t.width/t.height}function rn(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 on(t,e){var i={left:0,top:0},r=Bn(t,e);return r.left&&r.left>0?i.left=r.left:r.right&&r.right>0&&(i.left=-r.right),r.top&&r.top>0?i.top=r.top:r.bottom&&r.bottom>0&&(i.top=-r.bottom),i}function Mr(t,e){var i;return e.minimum&&t<e.minimum?i=e.minimum:e.maximum&&t>e.maximum&&(i=e.maximum),i}function Ws(t,e){var i=X(t),r=X(e);return e.width<1/0&&e.height<1/0?i>r?{width:e.width,height:e.width/i}:{width:e.height*i,height:e.height}:e.width<1/0?{width:e.width,height:e.width/i}:e.height<1/0?{width:e.height*i,height:e.height}:t}function Gs(t,e){var i=e*Math.PI/180;return{width:Math.abs(t.width*Math.cos(i))+Math.abs(t.height*Math.sin(i)),height:Math.abs(t.width*Math.sin(i))+Math.abs(t.height*Math.cos(i))}}function gt(t,e){var i=e*Math.PI/180;return{left:t.left*Math.cos(i)-t.top*Math.sin(i),top:t.left*Math.sin(i)+t.top*Math.cos(i)}}function bi(t,e){var i=Bn(Ce(t,e),e);return i.left+i.right+i.top+i.bottom?i.left+i.right>i.top+i.bottom?Math.min((t.width+i.left+i.right)/t.width,rn(t,e)):Math.min((t.height+i.top+i.bottom)/t.height,rn(t,e)):1}function Ce(t,e,i){i===void 0&&(i=!1);var r=on(t,e);return Me(t,i?wi(r):r)}function Rr(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 lg(t,e){return O(O({},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 Zs(t,e,i){i===void 0&&(i=!0);var r={};return Ke.forEach(function(o){var s=t[o],a=e[o];s!==void 0&&a!==void 0?r[o]=o==="left"||o==="top"?i?Math.max(s,a):Math.min(s,a):i?Math.min(s,a):Math.max(s,a):a!==void 0?r[o]=a:s!==void 0&&(r[o]=s)}),r}function Ci(t,e){return Zs(t,e,!0)}function Qs(t){var e=t.size,i=t.aspectRatio,r=t.ignoreMinimum,o=t.sizeRestrictions;return!!((e.correctRatio||X(e)>=i.minimum&&X(e)<=i.maximum)&&e.height<=o.maxHeight&&e.width<=o.maxWidth&&e.width&&e.height&&(r||e.height>=o.minHeight&&e.width>=o.minWidth))}function Xs(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function at(t){var e=t.width,i=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,i))};function a(u,f){return f===void 0&&(f=!1),u.reduce(function(h,m){return Qs({size:m,aspectRatio:o,sizeRestrictions:r,ignoreMinimum:f})&&(!h||Xs(m,{width:e,height:i})<Xs(h,{width:e,height:i}))?m:h},null)}var d=[];o&&[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})}),Qs({size:s,aspectRatio:o,sizeRestrictions:r})&&d.push(s);var c=a(d)||a(d,!0);return c&&{width:c.width,height:c.height}}function Ir(t){var e=t.event,i=t.coordinates,r=t.positionRestrictions,o=r===void 0?{}:r,s=Me(i,e.directions);return Me(s,on(s,o))}function cg(t){var e=t.coordinates,i=t.transform,r=t.imageSize,o=t.sizeRestrictions,s=t.positionRestrictions,a=t.aspectRatio,d=t.visibleArea,c=function(f,h){return Ir({coordinates:f,positionRestrictions:s,event:new Er({left:h.left-f.left,top:h.top-f.top})})},u=O({},e);return(Array.isArray(i)?i:[i]).forEach(function(f){var h={};fe((h=typeof f=="function"?f({coordinates:u,imageSize:r,visibleArea:d}):f).width)&&fe(h.height)||(u=function(m,y){var w=O(O(O({},m),at({width:y.width,height:y.height,sizeRestrictions:o,aspectRatio:a})),{left:0,top:0});return c(w,{left:m.left,top:m.top})}(u,O(O({},u),h))),fe(h.left)&&fe(h.top)||(u=c(u,O(O({},u),h)))}),u}function dg(t){t.event;var e=t.getAreaRestrictions,i=t.boundaries,r=t.coordinates,o=t.visibleArea;t.aspectRatio;var s=t.stencilSize,a=t.sizeRestrictions,d=t.positionRestrictions;t.stencilReference;var c,u,f,h=O({},r),m=O({},o),y=O({},s);c=X(y),u=X(h),f===void 0&&(f=.001),(c===0||u===0?Math.abs(u-c)<f:Math.abs(u/c)<1+f&&Math.abs(u/c)>1-f)||(h=O(O({},h),at({sizeRestrictions:a,width:h.width,height:h.height,aspectRatio:{minimum:X(y),maximum:X(y)}})));var w=bi(m=De(m,h.width*i.width/(m.width*y.width)),e({visibleArea:m,type:"resize"}));return w!==1&&(m=De(m,w),h=De(h,w)),m=Ce(m=Me(m,nn(be(h),be(m))),e({visibleArea:m,type:"move"})),{coordinates:h=Ce(h,Ci(et(m),d)),visibleArea:m}}function ug(t){var e=t.event,i=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=O({},o),c=O({},s);if(o&&s&&e.type!=="manipulateImage"){var u={width:0,height:0};c.width,r.width,X(r)>X(d)?(u.height=.8*r.height,u.width=u.height*X(d)):(u.width=.8*r.width,u.height=u.width*X(d));var f=bi(c=De(c,d.width*r.width/(c.width*u.width)),i({visibleArea:c,type:"resize"}));c=De(c,f),f!==1&&(u.height/=f,u.width/=f),c=Ce(c=Me(c,nn(be(d),be(c))),i({visibleArea:c,type:"move"})),d=Ce(d,Ci(et(c),a))}return{coordinates:d,visibleArea:c}}function fg(t){var e=t.event,i=t.coordinates,r=t.visibleArea,o=t.getAreaRestrictions,s=O({},r),a=O({},i);if(e.type==="setCoordinates"){var d=Math.max(0,a.width-s.width),c=Math.max(0,a.height-s.height);d>c?s=De(s,Math.min(a.width/s.width,rn(s,o({visibleArea:s,type:"resize"})))):c>d&&(s=De(s,Math.min(a.height/s.height,rn(s,o({visibleArea:s,type:"resize"}))))),s=Ce(s=Me(s,wi(on(a,et(s)))),o({visibleArea:s,type:"move"}))}return{visibleArea:s,coordinates:a}}function hg(t){var e=t.imageSize,i=t.visibleArea,r=t.coordinates,o=i||e;return{left:(i?i.left:0)+o.width/2-r.width/2,top:(i?i.top:0)+o.height/2-r.height/2}}function mg(t){var e=t.imageSize,i=t.visibleArea,r=t.aspectRatio,o=t.sizeRestrictions,s=i||e,a=Math.min(r.maximum||1/0,Math.max(r.minimum||0,X(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 at(O(O({},d),{aspectRatio:r,sizeRestrictions:o}))}function pg(t){var e,i,r=t.imageSize,o=t.visibleArea,s=t.boundaries,a=t.aspectRatio,d=t.sizeRestrictions,c=t.stencilSize,u=o||r;return X(u)>X(s)?i=(e=c.height*u.height/s.height)*X(c):e=(i=c.width*u.width/s.width)/X(c),at({width:i,height:e,aspectRatio:a,sizeRestrictions:d})}function gg(t){var e=t.getAreaRestrictions,i=t.coordinates,r=t.imageSize,o=X(t.boundaries);if(i){var s={height:Math.max(i.height,r.height),width:Math.max(i.width,r.width)},a=Ws({width:X(s)>o?s.width:s.height*o,height:X(s)>o?s.width/o:s.height},Rr(e())),d={left:i.left+i.width/2-a.width/2,top:i.top+i.height/2-a.height/2,width:a.width,height:a.height},c=Bn(i,et(O({left:0,top:0},r))),u={};return!c.left&&!c.right&&d.width<=r.width&&(u.left=0,u.right=r.width),!c.top&&!c.bottom&&d.height<=r.height&&(u.top=0,u.bottom=r.height),Ce(d,u)}var f=X(r);return a={height:f>o?r.height:r.width/o,width:f>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 Si(t,e){return Zs(t,et(e))}function yg(t){var e=t.event,i=t.coordinates,r=t.visibleArea,o=t.sizeRestrictions,s=t.getAreaRestrictions,a=t.positionRestrictions,d=t.adjustStencil,c=e.scale,u=e.move,f=O({},r),h=O({},i),m=1,y=1,w=c.factor&&Math.abs(c.factor-1)>.001;f=Me(f,{left:u.left||0,top:u.top||0});var k={stencil:{minimum:Math.max(o.minWidth?o.minWidth/h.width:0,o.minHeight?o.minHeight/h.height:0),maximum:Math.min(o.maxWidth?o.maxWidth/h.width:1/0,o.maxHeight?o.maxHeight/h.height:1/0,rn(h,a))},area:{maximum:rn(f,s({visibleArea:f,type:"resize"}))}};c.factor&&w&&(c.factor<1?(y=Math.max(c.factor,k.stencil.minimum))>1&&(y=1):c.factor>1&&(y=Math.min(c.factor,Math.min(k.area.maximum,k.stencil.maximum)))<1&&(y=1)),y&&(f=De(f,y,c.center));var x=i.left-r.left,C=r.width+r.left-(i.width+i.left),A=i.top-r.top,B=r.height+r.top-(i.height+i.top);return f=Ce(f=Me(f,on(f,{left:a.left!==void 0?a.left-x*y:void 0,top:a.top!==void 0?a.top-A*y:void 0,bottom:a.bottom!==void 0?a.bottom+B*y:void 0,right:a.right!==void 0?a.right+C*y:void 0})),s({visibleArea:f,type:"move"})),h.width=h.width*y,h.height=h.height*y,h.left=f.left+x*y,h.top=f.top+A*y,h=Ce(h,Ci(et(f),a)),c.factor&&w&&d&&(c.factor>1?m=Math.min(k.area.maximum,c.factor)/y:c.factor<1&&(m=Math.max(h.height/f.height,h.width/f.width,c.factor/y)),m!==1&&(f=Me(f=Ce(f=De(f,m,c.factor>1?c.center:be(h)),s({visibleArea:f,type:"move"})),wi(on(h,et(f)))))),{coordinates:h,visibleArea:f}}function wg(t){var e=t.aspectRatio,i=t.getAreaRestrictions,r=t.coordinates,o=t.visibleArea,s=t.sizeRestrictions,a=t.positionRestrictions,d=t.imageSize,c=t.previousImageSize,u=t.angle,f=O({},r),h=O({},o),m=gt(be(O({left:0,top:0},c)),u);return(f=O(O({},at({sizeRestrictions:s,aspectRatio:e,width:f.width,height:f.height})),gt(be(f),u))).left-=m.left-d.width/2+f.width/2,f.top-=m.top-d.height/2+f.height/2,h=De(h,bi(h,i({visibleArea:h,type:"resize"}))),{coordinates:f=Ce(f,a),visibleArea:h=Ce(h=Me(h,nn(be(f),be(r))),i({visibleArea:h,type:"move"}))}}function bg(t){var e=t.flip,i=t.previousFlip,r=t.rotate,o=t.getAreaRestrictions,s=t.coordinates,a=t.visibleArea,d=t.imageSize,c=O({},s),u=O({},a),f=i.horizontal!==e.horizontal,h=i.vertical!==e.vertical;if(f||h){var m=gt({left:d.width/2,top:d.height/2},-r),y=gt(be(c),-r),w=gt({left:f?m.left-(y.left-m.left):y.left,top:h?m.top-(y.top-m.top):y.top},r);c=Me(c,nn(w,be(c))),y=gt(be(u),-r),u=Ce(u=Me(u,nn(w=gt({left:f?m.left-(y.left-m.left):y.left,top:h?m.top-(y.top-m.top):y.top},r),be(u))),o({visibleArea:u,type:"move"}))}return{coordinates:c,visibleArea:u}}function Ys(t){var e=t.directions,i=t.coordinates,r=t.positionRestrictions,o=r===void 0?{}:r,s=t.sizeRestrictions,a=t.preserveRatio,d=t.compensate,c=O({},e),u=tt(i,c).width,f=tt(i,c).height;u<0&&(c.left<0&&c.right<0?(c.left=-(i.width-s.minWidth)/(c.left/c.right),c.right=-(i.width-s.minWidth)/(c.right/c.left)):c.left<0?c.left=-(i.width-s.minWidth):c.right<0&&(c.right=-(i.width-s.minWidth))),f<0&&(c.top<0&&c.bottom<0?(c.top=-(i.height-s.minHeight)/(c.top/c.bottom),c.bottom=-(i.height-s.minHeight)/(c.bottom/c.top)):c.top<0?c.top=-(i.height-s.minHeight):c.bottom<0&&(c.bottom=-(i.height-s.minHeight)));var h=Bn(tt(i,c),o);d&&(h.left&&h.left>0&&h.right===0?(c.right+=h.left,c.left-=h.left):h.right&&h.right>0&&h.left===0&&(c.left+=h.right,c.right-=h.right),h.top&&h.top>0&&h.bottom===0?(c.bottom+=h.top,c.top-=h.top):h.bottom&&h.bottom>0&&h.top===0&&(c.top+=h.bottom,c.bottom-=h.bottom),h=Bn(tt(i,c),o));var m={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(Ke.forEach(function(k){var x=h[k];x&&c[k]&&(m[k]=Math.max(0,1-x/c[k]))}),a){var y=Math.min.apply(null,Ke.map(function(k){return m[k]}));y!==1/0&&Ke.forEach(function(k){c[k]*=y})}else Ke.forEach(function(k){m[k]!==1/0&&(c[k]*=m[k])});if(u=tt(i,c).width,f=tt(i,c).height,c.right+c.left&&(u>s.maxWidth?m.width=(s.maxWidth-i.width)/(c.right+c.left):u<s.minWidth&&(m.width=(s.minWidth-i.width)/(c.right+c.left))),c.bottom+c.top&&(f>s.maxHeight?m.height=(s.maxHeight-i.height)/(c.bottom+c.top):f<s.minHeight&&(m.height=(s.minHeight-i.height)/(c.bottom+c.top))),a){var w=Math.min(m.width,m.height);w!==1/0&&Ke.forEach(function(k){c[k]*=w})}else m.width!==1/0&&rg.forEach(function(k){c[k]*=m.width}),m.height!==1/0&&og.forEach(function(k){c[k]*=m.height});return c}function ki(t,e,i){return e==0&&i==0?t/2:e==0?0:i==0?t:t*Math.abs(e/(e+i))}var Cg=qe("vue-simple-handler"),Sg=qe("vue-simple-handler-wrapper"),Pr={name:"SimpleHandler",components:{HandlerWrapper:_s},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=(Fe(t={},this.horizontalPosition,!!this.horizontalPosition),Fe(t,this.verticalPosition,!!this.verticalPosition),Fe(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),Fe(t,"hover",this.hover),t);return{default:le(Cg(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:le(Sg(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"]};Pr.render=function(t,e,i,r,o,s){var a=n.resolveComponent("HandlerWrapper");return n.openBlock(),n.createBlock(a,{class:s.classes.wrapper,"vertical-position":i.verticalPosition,"horizontal-position":i.horizontalPosition,disabled:i.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:n.withCtx(function(){return[n.createVNode("div",{class:s.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var kg=qe("vue-simple-line"),xg=qe("vue-simple-line-wrapper"),Ar={name:"SimpleLine",components:{LineWrapper:Us},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:le(kg(Fe({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:le(xg(Fe({},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"]};Ar.render=function(t,e,i,r,o,s){var a=n.resolveComponent("LineWrapper");return n.openBlock(),n.createBlock(a,{class:s.classes.wrapper,position:i.position,disabled:i.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:n.withCtx(function(){return[n.createVNode("div",{class:s.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Nr=qe("vue-bounding-box"),Eg=["east","west",null],Bg=["south","north",null],Js={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 Pr}},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 Ar}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return Eg.forEach(function(e){Bg.forEach(function(i){if(e!==i){var r=Ts(e,i),o=r.name,s=r.classname;t.push({name:o,classname:s,verticalDirection:i,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,i=this.linesClasses,r=this.linesWrappersClasses;return{root:Nr(),handlers:t,handlersWrappers:e,lines:i,linesWrappers:r}},lineNodes:function(){var t=this,e=[];return this.points.forEach(function(i){i.horizontalDirection&&i.verticalDirection||!t.lines[i.name]||e.push({name:i.name,component:t.linesComponent,class:le(t.classes.lines.default,t.classes.lines[i.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:le(t.classes.linesWrappers.default,t.classes.linesWrappers[i.name],!t.resizable&&t.classes.linesWrappers.disabled),hoverClass:t.classes.lines.hover,verticalDirection:i.verticalDirection,horizontalDirection:i.horizontalDirection,disabled:!t.resizable})}),e},handlerNodes:function(){var t=this,e=[],i=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:le(t.classes.handlers.default,t.classes.handlers[o.name]),wrapperClass:le(t.classes.handlersWrappers.default,t.classes.handlersWrappers[o.name]),hoverClass:t.classes.handlers.hover,verticalDirection:o.verticalDirection,horizontalDirection:o.horizontalDirection,disabled:!t.resizable};if(i&&r){var a=o.horizontalDirection,d=o.verticalDirection,c=a==="east"?i:a==="west"?0:i/2,u=d==="south"?r:d==="north"?0:r/2;s.wrapperClass=Nr("handler"),s.wrapperStyle={transform:"translate(".concat(c,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(s.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else s.wrapperClass=Nr("handler",Fe({},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,i){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),i==="north"?d.top-=a:i==="south"&&(d.bottom+=a),!i&&e?r="width":i&&!e&&(r="height"),this.resizable&&this.$emit("resize",new tg(d,{allowedDirections:{left:e==="west"||!e,right:e==="east"||!e,bottom:i==="south"||!i,top:i==="north"||!i},preserveAspectRatio:t.nativeEvent&&t.nativeEvent.shiftKey,respectDirection:r}))}},emits:["resize","resize-end"]};Js.render=function(t,e,i,r,o,s){return n.openBlock(),n.createBlock("div",{ref:"box",class:s.classes.root,style:s.style},[n.renderSlot(t.$slots,"default"),n.createVNode("div",null,[(n.openBlock(!0),n.createBlock(n.Fragment,null,n.renderList(s.lineNodes,function(a){return n.openBlock(),n.createBlock(n.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))]),(n.openBlock(!0),n.createBlock(n.Fragment,null,n.renderList(s.handlerNodes,function(a){return n.openBlock(),n.createBlock("div",{key:a.name,style:a.wrapperStyle,class:a.wrapperClass},[(n.openBlock(),n.createBlock(n.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 $g=qe("vue-draggable-area"),Ks={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:$g()}}},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=vt(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()):Hs({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(),i=e.left,r=e.top;this.anchor={x:t.clientX-i,y:t.clientY-r}},processMove:function(t,e){var i=vt(e);if(this.touches.length){var r=this.$refs.container.getBoundingClientRect(),o=r.left,s=r.top;this.touches.length===1&&i.length===1&&this.$emit("move",new Er({left:i[0].clientX-(o+this.anchor.x),top:i[0].clientY-(s+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};Ks.render=function(t,e,i,r,o,s){return n.openBlock(),n.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)})},[n.renderSlot(t.$slots,"default")],544)};function vr(t){var e,i;return{rotate:t.rotate||0,flip:{horizontal:((e=t==null?void 0:t.flip)===null||e===void 0?void 0:e.horizontal)||!1,vertical:((i=t==null?void 0:t.flip)===null||i===void 0?void 0:i.vertical)||!1}}}function Mg(t){return new Promise(function(e,i){try{if(t)if(/^data:/i.test(t))e(function(c){c=c.replace(/^data:([^;]+);base64,/gim,"");for(var u=atob(c),f=u.length,h=new ArrayBuffer(f),m=new Uint8Array(h),y=0;y<f;y++)m[y]=u.charCodeAt(y);return h}(t));else if(/^blob:/i.test(t)){var r=new FileReader;r.onload=function(c){e(c.target.result)},s=t,a=function(c){r.readAsArrayBuffer(c)},(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):i("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 i("Error: the image is empty")}catch(c){i(c)}var s,a,d})}function ea(t){var e=t.rotate,i=t.flip,r=t.scaleX,o=t.scaleY,s="";return s+=" rotate("+e+"deg) ",s+=" scaleX("+r*(i.horizontal?-1:1)+") ",s+=" scaleY("+o*(i.vertical?-1:1)+") "}function Rg(t){try{var e,i=new DataView(t),r=void 0,o=void 0,s=void 0,a=void 0;if(i.getUint8(0)===255&&i.getUint8(1)===216)for(var d=i.byteLength,c=2;c+1<d;){if(i.getUint8(c)===255&&i.getUint8(c+1)===225){s=c;break}c++}if(s&&(r=s+10,function(y,w,k){var x,C="";for(x=w,k+=w;x<k;x++)C+=String.fromCharCode(y.getUint8(x));return C}(i,s+4,4)==="Exif")){var u=i.getUint16(r);if(((o=u===18761)||u===19789)&&i.getUint16(r+2,o)===42){var f=i.getUint32(r+4,o);f>=8&&(a=r+f)}}if(a){for(var h=i.getUint16(a,o),m=0;m<h;m++)if(c=a+12*m+2,i.getUint16(c,o)===274){c+=8,e=i.getUint16(c,o),i.setUint16(c,1,o);break}}return e}catch{return null}}function ta(t,e){var i=e.getBoundingClientRect(),r=i.left,o=i.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+=Hs({x:s.left,y:s.top},{x:d.clientX-r,y:d.clientY-o})}),{centerMass:s,spread:a,count:t.length}}var na={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=kr(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 En({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 i=ta(e,this.$refs.container),r=this.oldGeometricProperties;r.count===i.count&&r.count>1&&this.$emit("resize",new En({left:r.centerMass.left-i.centerMass.left,top:r.centerMass.top-i.centerMass.top},{factor:r.spread/i.spread,center:i.centerMass})),this.oldGeometricProperties=i}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,i=e.getBoundingClientRect(),r=i.left,o=i.top,s=i.bottom,a=i.right;this.touches=vt(t.touches).filter(function(d){return d.clientX>r&&d.clientX<a&&d.clientY>o&&d.clientY<s}),this.oldGeometricProperties=ta(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 i=vt(t.touches).filter(function(r){return!r.identifier||e.touches.find(function(o){return o.identifier===r.identifier})});this.processEvent(t)&&(this.processMove(t,i),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(),i=e.left,r=e.top,o=1+this.wheelResize.ratio*(a=t.deltaY||t.detail||t.wheelDelta,(d=+a)==0||Ls(d)?d:d>0?1:-1),s={left:t.clientX-i,top:t.clientY-r};this.$emit("resize",new En({},{factor:o,center:s})),this.touches.length||this.debouncedProcessEnd()}var a,d}},emits:["resize","move","transform-end"]};na.render=function(t,e,i,r,o,s){return n.openBlock(),n.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)})},[n.renderSlot(t.$slots,"default")],544)};var Vr={components:{TransformableImage:na},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"]};Vr.render=function(t,e,i,r,o,s){var a=n.resolveComponent("transformable-image");return n.openBlock(),n.createBlock(a,{"touch-move":i.touchMove,"touch-resize":i.touchResize,"mouse-move":i.mouseMove,"wheel-resize":i.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:n.withCtx(function(){return[n.renderSlot(t.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var xi=qe("vue-preview"),ia={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:xi({fill:this.fill}),wrapper:xi("wrapper"),imageWrapper:xi("image-wrapper"),image:le(xi("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=Q(Q({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),i=this.imageSize.width,r=this.imageSize.height,o=Gs({width:i,height:r},e.rotate),s={width:"".concat(i,"px"),height:"".concat(r,"px"),left:"0px",top:"0px"},a={rotate:{left:(i-o.width)*e.scaleX/2,top:(r-o.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*i/2,top:(1-e.scaleY)*r/2}};return s.transform=`translate(
|
|
41
|
-
`.concat(-this.coordinates.left/t-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/t-a.rotate.top-a.scale.top,"px) ")+ea(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()}}};ia.render=function(t,e,i,r,o,s){return n.openBlock(),n.createBlock("div",{ref:"root",class:s.classes.root,style:s.style},[n.createVNode("div",{ref:"wrapper",class:s.classes.wrapper,style:s.wrapperStyle},[n.withDirectives(n.createVNode("img",{ref:"image",src:i.image&&i.image.src,class:s.classes.image,style:s.imageStyle},null,14,["src"]),[[n.vShow,i.image&&i.image.src]])],6)],6)};var ra={components:{Preview:ia},inheritAttrs:!1};ra.render=function(t,e,i,r,o,s){var a=n.resolveComponent("preview");return n.openBlock(),n.createBlock(a,n.mergeProps(t.$attrs,{fill:!0}),null,16)};var zr=qe("vue-rectangle-stencil"),oa={name:"RectangleStencil",components:{StencilPreview:ra,BoundingBox:Js,DraggableArea:Ks},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Pr}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Ar}},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:le(zr({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:le(zr("preview"),this.previewClass),boundingBox:le(zr("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,i=t.width,r=t.left,o=t.top,s={width:"".concat(i,"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"]};oa.render=function(t,e,i,r,o,s){var a=n.resolveComponent("stencil-preview"),d=n.resolveComponent("draggable-area"),c=n.resolveComponent("bounding-box");return n.openBlock(),n.createBlock("div",{class:s.classes.stencil,style:s.style},[n.createVNode(c,{width:i.stencilCoordinates.width,height:i.stencilCoordinates.height,transitions:i.transitions,class:s.classes.boundingBox,handlers:i.handlers,"handlers-component":i.handlersComponent,"handlers-classes":i.handlersClasses,"handlers-wrappers-classes":i.handlersWrappersClasses,lines:i.lines,"lines-component":i.linesComponent,"lines-classes":i.linesClasses,"lines-wrappers-classes":i.linesWrappersClasses,resizable:i.resizable,onResize:s.onResize,onResizeEnd:s.onResizeEnd},{default:n.withCtx(function(){return[n.createVNode(d,{movable:i.movable,onMove:s.onMove,onMoveEnd:s.onMoveEnd},{default:n.withCtx(function(){return[n.createVNode(a,{image:i.image,coordinates:i.coordinates,width:i.stencilCoordinates.width,height:i.stencilCoordinates.height,class:s.classes.preview,transitions:i.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 Ig=["transitions"],lt=qe("vue-advanced-cropper"),sa={name:"Cropper",components:{BackgroundWrapper:Vr},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return oa}},backgroundWrapperComponent:{type:[Object,String],default:function(){return Vr}},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 ag.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,i=t.coordinates,r=t.aspectRatio,o=t.positionRestrictions,s=t.sizeRestrictions,a=O(O({},i),{right:i.left+i.width,bottom:i.top+i.height}),d=e.params||{},c=O({},e.directions),u=d.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};s.widthFrozen&&(c.left=0,c.right=0),s.heightFrozen&&(c.top=0,c.bottom=0),Ke.forEach(function(V){u[V]||(c[V]=0)});var f=tt(a,c=Ys({coordinates:a,directions:c,sizeRestrictions:s,positionRestrictions:o})).width,h=tt(a,c).height,m=d.preserveRatio?X(a):Mr(f/h,r);if(m){var y=d.respectDirection;if(y||(y=a.width>=a.height||m===1?"width":"height"),y==="width"){var w=f/m-a.height;if(u.top&&u.bottom){var k=c.top,x=c.bottom;c.bottom=ki(w,x,k),c.top=ki(w,k,x)}else u.bottom?c.bottom=w:u.top?c.top=w:u.right?c.right=0:u.left&&(c.left=0)}else if(y==="height"){var C=a.width-h*m;if(u.left&&u.right){var A=c.left,B=c.right;c.left=-ki(C,A,B),c.right=-ki(C,B,A)}else u.left?c.left=-C:u.right?c.right=-C:u.top?c.top=0:u.bottom&&(c.bottom=0)}c=Ys({directions:c,coordinates:a,sizeRestrictions:s,positionRestrictions:o,preserveRatio:!0,compensate:d.compensate})}return f=tt(a,c).width,h=tt(a,c).height,(m=d.preserveRatio?X(a):Mr(f/h,r))&&Math.abs(m-f/h)>.001&&Ke.forEach(function(V){u[V]||(c[V]=0)}),Ir({event:new Er({left:-c.left,top:-c.top}),coordinates:{width:i.width+c.right+c.left,height:i.height+c.top+c.bottom,left:i.left,top:i.top},positionRestrictions:o})}},moveAlgorithm:{type:Function,default:Ir},initStretcher:{type:Function,default:function(t){var e=t.stretcher,i=t.imageSize,r=X(i);e.style.width=i.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,i=t.coordinates,r=t.aspectRatio,o=t.sizeRestrictions,s=t.positionRestrictions,a=O(O({},i),at({width:i.width,height:i.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=Me(a,nn(be(i),be(a))),Ci(et(e),s))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,i=t.boundaries,r=t.getAreaRestrictions,o=t.coordinates,s=O({},e);s.height=s.width/X(i),s.top+=(e.height-s.height)/2,(o.height-s.height>0||o.width-s.width>0)&&(s=De(s,Math.max(o.height/s.height,o.width/s.width)));var a=wi(on(o,et(s=De(s,bi(s,r({visibleArea:s,type:"resize"}))))));return s.width<o.width&&(a.left=0),s.height<o.height&&(a.top=0),s=Ce(s=Me(s,a),r({visibleArea:s,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,i=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"&&(X(i)>X(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,i={};return t.imageRestriction!=="none"&&(i={left:0,top:0,right:e.width,bottom:e.height}),i}}},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:Q({},qs)}},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=xr(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:xr(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:fe(this.minWidth)?0:yi(this.minWidth),minHeight:fe(this.minHeight)?0:yi(this.minHeight),maxWidth:fe(this.maxWidth)?1/0:yi(this.maxWidth),maxHeight:fe(this.maxHeight)?1/0:yi(this.maxHeight)});if(t=function(r){var o=r.areaRestrictions,s=r.sizeRestrictions,a=r.boundaries,d=r.positionRestrictions,c=O(O({},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&&(c.maxWidth=Math.min(c.maxWidth,d.right-d.left)),d.bottom!==void 0&&d.top!==void 0&&(c.maxHeight=Math.min(c.maxHeight,d.bottom-d.top));var u=Rr(o),f=Ws(a,u);return u.width<1/0&&(!c.maxWidth||c.maxWidth>f.width)&&(c.maxWidth=Math.min(c.maxWidth,f.width)),u.height<1/0&&(!c.maxHeight||c.maxHeight>f.height)&&(c.maxHeight=Math.min(c.maxHeight,f.height)),c.minWidth>c.maxWidth&&(c.minWidth=c.maxWidth,c.widthFrozen=!0),c.minHeight>c.maxHeight&&(c.minHeight=c.maxHeight,c.heightFrozen=!0),c}({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(),i=Rr(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));t.maxWidth=Math.min(t.maxWidth,i.width*e.width/this.boundaries.width),t.maxHeight=Math.min(t.maxHeight,i.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:lt(),image:le(lt("image"),this.imageClass),stencil:lt("stencil"),boundaries:le(lt("boundaries"),this.boundariesClass),stretcher:le(lt("stretcher")),background:le(lt("background"),this.backgroundClass),foreground:le(lt("foreground"),this.foregroundClass),imageWrapper:le(lt("image-wrapper")),cropperWrapper:le(lt("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,i=t.height,r=t.left,o=t.top;return{width:e/this.coefficient,height:i/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)},i={left:(1-1/this.coefficient)*t.width/2,top:(1-1/this.coefficient)*t.height/2},r=Q(Q({},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-i.left-this.imageTransforms.translateX,"px, ").concat(-e.top-i.top-this.imageTransforms.translateY,"px)")+ea(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(i){return t[i]!==e[i]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=kr(this.update,this.debounce),this.debouncedDisableTransitions=kr(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(Q({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:Q({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var i=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?Q({},this.visibleArea):null,imageTransforms:e,get canvas(){return i.canvas?i.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?Q({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.transitions,o=r===void 0||r;this.onManipulateImage(new En({},{factor:1/t,center:e}),{normalize:!1,transitions:o})},move:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.transitions,o=r===void 0||r;this.onManipulateImage(new En({left:t||0,top:e||0}),{normalize:!1,transitions:o})},setCoordinates:function(t){var e=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.autoZoom,o=r===void 0||r,s=i.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 i=e.coordinates,r=e.sizeRestrictions,o=e.positionRestrictions,s={width:Math.round(i.width),height:Math.round(i.height),left:Math.round(i.left),top:Math.round(i.top)};return s.width>r.maxWidth?s.width=Math.floor(i.width):s.width<r.minWidth&&(s.width=Math.ceil(i.width)),s.height>r.maxHeight?s.height=Math.floor(i.height):s.height<r.minHeight&&(s.height=Math.ceil(i.height)),Ce(s,o)}(Q(Q({},this.getPublicProperties()),{},{positionRestrictions:Si(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,i,r){var o=this.autoZoomAlgorithm;o||(o=this.stencilSize?dg:this.autoZoom?ug:fg);var s=o({event:{type:t,params:r},visibleArea:e,coordinates:i,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return Q(Q({},s),{},{changed:!js(s.visibleArea,e)||!js(s.coordinates,i)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.transitions,r=i!==void 0&&i,o=Kp(e,Ig),s=this.processAutoZoom(t,this.visibleArea,this.coordinates,o),a=s.visibleArea,d=s.coordinates,c=s.changed;r&&c&&this.enableTransitions(),this.visibleArea=a,this.coordinates=d,r&&c&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(e){var i=e.event,r=e.visibleArea,o=e.coefficient;if(i.type==="manipulateImage")return O(O({},i),{move:{left:i.move&&i.move.left?o*i.move.left:0,top:i.move&&i.move.top?o*i.move.top:0},scale:{factor:i.scale&&i.scale.factor?i.scale.factor:1,center:i.scale&&i.scale.center?{left:i.scale.center.left*o+r.left,top:i.scale.center.top*o+r.top}:null}});if(i.type==="resize"){var s=O(O({},i),{directions:O({},i.directions)});return Ke.forEach(function(d){s.directions[d]*=o}),s}if(i.type==="move"){var a=O(O({},i),{directions:O({},i.directions)});return sg.forEach(function(d){a.directions[d]*=o}),a}return i}(Q(Q({},this.getPublicProperties()),{},{event:t}))},getCanvas:function(){if(this.$refs.canvas){var t=this.$refs.canvas,e=this.$refs.image,i=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(d,c,u){var f=u.rotate,h=u.flip,m={width:c.naturalWidth,height:c.naturalHeight},y=Gs(m,f),w=d.getContext("2d");d.height=y.height,d.width=y.width,w.save();var k=gt(be(O({left:0,top:0},m)),f);return w.translate(-(k.left-y.width/2),-(k.top-y.height/2)),w.rotate(f*Math.PI/180),w.translate(h.horizontal?m.width:0,h.vertical?m.height:0),w.scale(h.horizontal?-1:1,h.vertical?-1:1),w.drawImage(c,0,0,m.width,m.height),w.restore(),d}(this.$refs.sourceCanvas,e,this.imageTransforms):e,r=Q({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(c){return u=c,!Number.isNaN(parseFloat(u))&&isFinite(u);var u})},s=at({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,c,u,f,h){d.width=f?f.width:u.width,d.height=f?f.height:u.height;var m=d.getContext("2d");m.clearRect(0,0,d.width,d.height),h&&(h.imageSmoothingEnabled&&(m.imageSmoothingEnabled=h.imageSmoothingEnabled),h.imageSmoothingQuality&&(m.imageSmoothingQuality=h.imageSmoothingQuality),h.fillColor&&(m.fillStyle=h.fillColor,m.fillRect(0,0,d.width,d.height),m.save()));var y=u.left<0?-u.left:0,w=u.top<0?-u.top:0;m.drawImage(c,u.left+y,u.top+w,u.width,u.height,y*(d.width/u.width),w*(d.height/u.height),d.width,d.height)}(t,i,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],i=this.visibleArea&&e?lg(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,r=this.visibleArea&&e?Si(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return cg({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:i,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?pg:mg);var i=this.sizeRestrictions;i.minWidth,i.minHeight,i.maxWidth,i.maxHeight;var r=tn(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,o=this.defaultPosition||hg,s=[r,function(a){var d=a.coordinates;return Q({},tn(o)?o({coordinates:d,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&s.push.apply(s,vt(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,i=this.$refs.cropper;return this.initStretcher({cropper:i,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then(function(){var r={cropper:i,imageSize:t.imageSize};if(tn(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(r):t.defaultBoundaries==="fit"?t.boundaries=function(o){var s=o.cropper,a=o.imageSize,d=s.clientHeight,c=s.clientWidth,u=d,f=a.width*d/a.height;return f>c&&(f=c,u=a.height*c/a.width),{width:f,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=Q(Q({},this.defaultImageTransforms),{},{flip:Q({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){t.priority!=="visible-area"&&(t.visibleArea=null,t.resetCoordinates());var e,i,r,o,s,a,d=t.defaultVisibleArea||gg;t.visibleArea=tn(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},i=e.visibleArea,r=e.boundaries,o=e.getAreaRestrictions,s=O({},i),a=X(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(Fs(o))return!1;var s=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(o)||[],d={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},c=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&&c(d)==c(s))}(this.src)){var i=fe(this.crossOrigin)?this.canvas:this.crossOrigin;i===!0&&(i="anonymous"),this.imageAttributes.crossOrigin=i||null}if(this.checkOrientation){var r=(t=this.src,new Promise(function(o){Mg(t).then(function(s){var a=Rg(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,i=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?Os(i)||!Fs(i)?(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 c=d.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(c):c.slice())),d=d.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(r):this.imageAttributes.src=i,tn(this.defaultTransforms)?this.appliedImageTransforms=vr(this.defaultTransforms()):gi(this.defaultTransforms)?this.appliedImageTransforms=vr(this.defaultTransforms):this.appliedImageTransforms=function(s){var a=vr({});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=Q(Q({},this.appliedImageTransforms),{},{flip:Q({},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(Q(Q({},e.getPublicProperties()),{},{positionRestrictions:Si(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 i=e.sizeRestrictions,r=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(Q(Q({},e.getPublicProperties()),{},{positionRestrictions:Si(e.positionRestrictions,e.visibleArea),sizeRestrictions:{maxWidth:Math.min(i.maxWidth,e.visibleArea.width),maxHeight:Math.min(i.maxHeight,e.visibleArea.height),minWidth:Math.max(i.minWidth,r),minHeight:Math.max(i.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 i=e.transitions,r=i!==void 0&&i,o=e.normalize,s=o===void 0||o;r&&this.enableTransitions();var a=yg(Q(Q({},this.getPublicProperties()),{},{event:s?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),d=a.visibleArea,c=a.coordinates;this.visibleArea=d,this.coordinates=c,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,i=t.type,r=i===void 0?"move":i;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:r})},getAspectRatio:function(t){var e,i,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,i=d.maximum}if(fe(e)&&(e=fe(o)?s:o),fe(i)&&(i=fe(o)?a:o),!t&&(fe(e)||fe(i))){var c=this.getStencilSize(),u=c?X(c):null;fe(e)&&(e=Ds(u)?u:void 0),fe(i)&&(i=Ds(u)?u:void 0)}return{minimum:e,maximum:i}},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,i=t.stencilSize,r=t.aspectRatio,Mr(X(o=tn(i)?i({boundaries:e,aspectRatio:r}):i),r)&&(o=at({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=at({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:o.width,height:o.height,aspectRatio:{minimum:X(o),maximum:X(o)}})),o;var t,e,i,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 Q({},qs)},flip:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.transitions,o=r===void 0||r;if(!this.transitionsActive){o&&this.enableTransitions();var s=Q({},this.imageTransforms.flip),a=bg({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,c=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=c,this.onChange(),o&&this.debouncedDisableTransitions()}},rotate:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.transitions,r=i===void 0||i;if(!this.transitionsActive){r&&this.enableTransitions();var o=Q({},this.imageSize);this.appliedImageTransforms.rotate+=t;var s=wg({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,c=this.processAutoZoom("rotateImage",a,d);a=c.visibleArea,d=c.coordinates,this.visibleArea=a,this.coordinates=d,this.onChange(),r&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},Pg={key:0,ref:"canvas",style:{display:"none"}},Ag={key:1,ref:"sourceCanvas",style:{display:"none"}};sa.render=function(t,e,i,r,o,s){return n.openBlock(),n.createBlock("div",{ref:"cropper",class:s.classes.cropper},[n.createVNode("div",{ref:"stretcher",class:s.classes.stretcher},null,2),n.createVNode("div",{class:s.classes.boundaries,style:s.boundariesStyle},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.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:n.withCtx(function(){return[n.createVNode("div",{class:s.classes.background,style:s.boundariesStyle},null,6),n.createVNode("div",{class:s.classes.imageWrapper},[n.createVNode("img",{ref:"image",crossorigin:o.imageAttributes.crossOrigin,src:o.imageAttributes.src,class:s.classes.image,style:s.imageStyle,onMousedown:e[1]||(e[1]=n.withModifiers(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),n.createVNode("div",{class:s.classes.foreground,style:s.boundariesStyle},null,6),n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.stencilComponent),n.mergeProps({ref:"stencil",image:s.image,coordinates:o.coordinates,"stencil-coordinates":s.stencilCoordinates,transitions:s.transitionsOptions},i.stencilProps,{onResize:s.onResize,onResizeEnd:s.onResizeEnd,onMove:s.onMove,onMoveEnd:s.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[n.vShow,o.imageLoaded]]),i.canvas?(n.openBlock(),n.createBlock("canvas",Pg,null,512)):n.createCommentVNode("",!0),i.canvas?(n.openBlock(),n.createBlock("canvas",Ag,null,512)):n.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const Ng={width:0,height:0,left:0,top:0};class Tr{constructor(){l(this,"id");l(this,"ratio",0);l(this,"src","");l(this,"coordinates",Ng)}setCoordinates(e){this.coordinates=e}getCoordinates(){return this.coordinates}static Create(e,i=0,r){const o=new Tr;return o.src=e,o.ratio=i,o.id=r,o}setRatio(e){this.ratio=e}getRatio(){return this.ratio}setSrc(e){this.src=e}getSrc(){return this.src}}const vg={class:"background-container"},Vg={class:"dialog-footer"},zg=E(n.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 i=t,r=e,o=n.ref(i.ratio),s=n.ref(Tr.Create(i.src,i.ratio));s.value.setRatio(o.value);const a=()=>{s.value.setRatio(o.value)},d=n.ref(),c=async()=>{const u=d.value.getResult();u&&u.canvas.toBlob(f=>{var h;r("crop",{blob:f,src:(h=u.canvas)==null?void 0:h.toDataURL()}),r("update:ratio",s.value.coordinates.width/s.value.coordinates.height)})};return(u,f)=>(n.openBlock(),n.createElementBlock("div",vg,[n.createVNode(mi,{modelValue:n.unref(o),"onUpdate:modelValue":f[0]||(f[0]=h=>n.isRef(o)?o.value=h:null),label:"Задайте пропорции фото",width:"100%",margin:"0 0 20px 0",onChange:a},{default:n.withCtx(()=>[...f[2]||(f[2]=[n.createElementVNode("option",{label:"2:3 (формат A4)",value:2/3},null,-1),n.createElementVNode("option",{label:"4:3 (для карточек новостей)",value:4/3},null,-1),n.createElementVNode("option",{label:"1:1 (для фото сотрудников)",value:1},null,-1),n.createElementVNode("option",{label:"3:2",value:3/2},null,-1),n.createElementVNode("option",{label:"16:9",value:16/9},null,-1),n.createElementVNode("option",{label:"3:4 (вертикальное изображение)",value:3/4},null,-1),n.createElementVNode("option",{label:"Задать пропорции вручную",value:0},null,-1)])]),_:1},8,["modelValue"]),n.createVNode(n.unref(sa),{ref_key:"cropperRef",ref:d,src:n.unref(s).src,"stencil-props":{aspectRatio:n.unref(s).ratio},style:{"max-height":"50vh","min-height":"50vh"},onChange:f[1]||(f[1]=h=>n.unref(s).setCoordinates(h.coordinates))},null,8,["src","stencil-props"]),n.createElementVNode("div",Vg,[n.createVNode(Ue,{skin:"text",type:"primary",text:"Сохранить",onClick:c})])]))}}),[["__scopeId","data-v-7b32def2"]]),Tg=E(n.defineComponent({__name:"IconUploaderChange",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#uploader-change"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"uploader-change",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[n.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-24be7852"]]),Og=E(n.defineComponent({__name:"IconUploaderDel",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#uploader-del"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"uploader-del",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[n.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-dd770f25"]]),Fg=E(n.defineComponent({__name:"IconUploaderPlus",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",t.iconClass]),style:n.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},[...i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#uploader-plus"},null,-1)])],6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"uploader-plus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[n.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-92c28425"]]),Dg={key:0},Lg=["src"],Hg={class:"tools-button"},_g={key:1},Ug=["id"],qg=n.defineComponent({__name:"PUploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{type:ye,required:!0,default:new ye},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 i=n.computed(()=>({width:s.height*h.value+"px",height:s.height+"px"})),r=n.computed(()=>({width:h.value<.66?s.height*.66+"px":s.height*h.value+"px",height:s.height+"px"})),o=n.computed(()=>({width:h.value<.66?s.height*.66+"px":s.height*h.value+"px",height:s.height+"px"})),s=t,a=e,d=n.ref(void 0),c=de.GUID(),u=n.ref(!1),f=n.ref(),h=n.ref(s.ratio),m=n.ref(""),y=()=>{d.value=void 0,h.value=1,a("update:ratio",1),a("removeFile"),k=document.getElementById(c),k.value=""},w=B=>{B.blob.src=B.src,s.fileInfo.setFile(B.blob),s.fileInfo.fileSystemPath&&(d.value=s.fileInfo),u.value=!1,a("crop")};n.watch(()=>[s.fileInfo.description,s.fileInfo.order,s.fileInfo.fileSystemPath],()=>{s.fileInfo.fileSystemPath&&(d.value=s.fileInfo,d.value.url=s.fileInfo.getFileUrl())}),n.onBeforeMount(()=>{s.fileInfo.fileSystemPath&&(d.value=s.fileInfo,d.value.url=s.fileInfo.getFileUrl())});let k=null;n.onMounted(()=>{document.getElementById("drop-area")&&(k=document.getElementById(c))});const x=()=>{k&&k.click()},C=B=>{m.value=B.url,u.value=!0},A=()=>{if(!k||!k.files||!k.files.length)return;const B=k.files[0];B.url=URL.createObjectURL(B),d.value=B,s.fileInfo.setFile(B),s.withCrop&&C(d.value)};return n.watch(h,B=>{a("update:ratio",B)}),(B,V)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{id:"drop-area",class:"img-container",style:n.normalizeStyle(n.unref(i))},[n.unref(d)?(n.openBlock(),n.createElementBlock("div",Dg,[n.createElementVNode("div",{class:"img-block",style:n.normalizeStyle(n.unref(r))},[n.createElementVNode("img",{src:n.unref(d).url,alt:"upload-image"},null,8,Lg)],4),n.createElementVNode("div",Hg,[n.createElementVNode("div",{class:"ins",style:n.normalizeStyle(n.unref(o))},[n.createElementVNode("div",{class:"change",onClick:V[0]||(V[0]=T=>C(n.unref(d)))},[n.createVNode(Tg,{margin:"0 10px 0 0",size:"40px"})]),n.createElementVNode("div",{claSS:"del",onClick:V[1]||(V[1]=T=>y())},[n.createVNode(Og,{size:"40px"})])],4)])])):(n.openBlock(),n.createElementBlock("div",_g,[n.createElementVNode("div",{class:"add-button",style:n.normalizeStyle({width:t.height*n.unref(h)-2+"px",height:t.height-2+"px"}),onClick:x},[n.createVNode(Fg,{size:"40px"})],4)]))],4),n.createElementVNode("input",{id:n.unref(c),ref_key:"uploader",ref:f,hidden:"",type:"file",onChange:A},null,40,Ug),n.createVNode(br,{show:n.unref(u),title:"Настройка изображения","max-height":"90vh",top:"5vh"},{default:n.withCtx(()=>[n.createVNode(zg,{ratio:n.unref(h),"onUpdate:ratio":V[2]||(V[2]=T=>n.isRef(h)?h.value=T:null),src:n.unref(m),onCrop:w,onClose:V[3]||(V[3]=T=>u.value=!1)},null,8,["ratio","src"])]),_:1},8,["show"])],64))}}),jg=E(qg,[["__scopeId","data-v-d0c48ec7"]]);function Wg(t){t.component("PTabs",qp),t.component("PUploaderFile",Jp),t.component("PUploaderImage",jg),t.component("PAuthForm",vs),t.component("PAuthModal",Lp),t.component("PNameEdit",_p)}const Gg={install:function(t){sh(t),Fp(t),Zm(t),Wg(t),vm(t)}};function Zg(t,e={}){const{quasarPlugins:i=!0}=e;i&&t.use(D.Quasar,{plugins:{Notify:D.Notify,Dialog:D.Dialog}}),Gg.install(t)}class Qg extends Tn{constructor(){super(...arguments);l(this,"label","Логин");l(this,"name","login");l(this,"validator",new Ur);l(this,"method",Lt.Login);l(this,"id","field-auth-login")}}const Xg=["PF","PFM"],Yg=E(n.defineComponent({__name:"ExtractCreateForm",emits:["create"],setup(t,{emit:e}){const i=e,r=ExtractsStore.Item,o=async()=>{await ExtractsStore.Create(),ExtractsStore.AppendToAll([r]),i("create")};return(s,a)=>{const d=n.resolveComponent("PInput"),c=n.resolveComponent("PButton");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(d,{modelValue:n.unref(r).name,"onUpdate:modelValue":a[0]||(a[0]=u=>n.unref(r).name=u)},null,8,["modelValue"]),n.createVNode(c,{text:"Создать",onClick:o})],64)}}}),[["__scopeId","data-v-acdf750a"]]),Jg=Object.freeze(Object.defineProperty({__proto__:null,default:E(n.defineComponent({__name:"ExtractsList",setup(t){const e=n.ref(!1),i=n.ref(!1),r=async()=>{i.value=!0},o=async()=>{await Promise.all([r()])},s=()=>{e.value=!e.value};return $.H.Hooks.onBeforeMount(o),(a,d)=>{const c=Yg,u=n.resolveComponent("PModal");return n.unref(e)?(n.openBlock(),n.createBlock(u,{key:0,show:n.unref(e)},{default:n.withCtx(()=>[n.createVNode(c,{onCreate:s})]),_:1},8,["show"])):n.createCommentVNode("",!0)}}}),[["__scopeId","data-v-03915680"]])},Symbol.toStringTag,{value:"Module"}));H.AuthButtonLogin=Ii,H.AuthButtonRefresh=Hr,H.AuthButtonRegister=Pi,H.AuthButtonRestore=zn,H.AuthChunks=me,H.AuthFieldsIds=rt,H.AuthFormSettings=jr,H.AuthMethods=Lt,H.EmailField=On,H.LoginField=Qg,H.PBadge=ws,H.PButton=Ue,H.PCard=Ps,H.PCheckBox=bs,H.PChip=Cs,H.PCrudList=As,H.PDateInput=Ss,H.PDialog=pr,H.PEditDialog=Ns,H.PF=$,H.PFM=zf,H.PHint=wr,H.PInput=pt,H.POptionsListSingle=ks,H.POpts=xs,H.PSelect=mi,H.PTableToggle=Es,H.PToggle=Bs,H.PasswordField=Fn,H.PasswordRepeatField=qr,H.installSprof=Zg,H.pfName=Xg,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
|
|
43
|
+
***************************************************************************** */function Ua(n,e){var i,o;return n&&e?(i=""+n+e[0].toUpperCase()+e.slice(1),o=n+"-"+e):(i=n||e,o=n||e),{name:i,classname:o}}function qa(n){return/^blob:/.test(n)}function ja(n){return qa(n)||function(e){return/^data:/.test(e)}(n)}function Dn(n){return!!(n&&n.constructor&&n.call&&n.apply)}function Re(n){return n===void 0}function eo(n){return typeof n=="object"&&n!==null}function lr(n,e,i){var o={};return eo(n)?(Object.keys(e).forEach(function(r){Re(n[r])?o[r]=e[r]:eo(e[r])?eo(n[r])?o[r]=lr(n[r],e[r],i[r]):o[r]=n[r]?e[r]:i[r]:e[r]===!0||e[r]===!1?o[r]=!!n[r]:o[r]=n[r]}),o):n?e:i}function to(n){var e=Number(n);return Number.isNaN(e)?n:e}function Wa(n){return typeof(n=="number"||function(e){return typeof e=="object"&&e!==null}(n)&&toString.call(n)=="[object Number]")&&!Ga(n)}function Ga(n){return n!=n}function Qa(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}var di=function(n,e){n===void 0&&(n={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=n,this.scale=e},gy=function(n,e){e===void 0&&(e={}),this.type="resize",this.directions=n,this.params=e},cr=function(n){this.type="move",this.directions=n},yy=function(){function n(e,i,o,r,s){this.type="drag",this.nativeEvent=e,this.position=o,this.previousPosition=r,this.element=i,this.anchor=s}return n.prototype.shift=function(){var e=this,i=e.element,o=e.anchor,r=e.position;if(i){var s=i.getBoundingClientRect(),a=s.left,d=s.top;return{left:r.left-a-o.left,top:r.top-d-o.top}}return{left:0,top:0}},n}(),dr={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(n){n.cancelable&&!this.disabled&&n.touches.length===1&&(this.touches=fn(n.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),n.touches.length&&this.initAnchor(this.touches.reduce(function(e,i){return{clientX:e.clientX+i.clientX/n.touches.length,clientY:e.clientY+i.clientY/n.touches.length}},{clientX:0,clientY:0})),n.preventDefault&&n.preventDefault(),n.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(n){this.touches.length&&(this.processMove(n,n.touches),n.preventDefault&&n.preventDefault(),n.stopPropagation&&n.stopPropagation())},onMouseDown:function(n){if(!this.disabled){var e={fake:!0,clientX:n.clientX,clientY:n.clientY};this.touches=[e],this.initAnchor(e),n.stopPropagation()}},onMouseMove:function(n){this.touches.length&&(this.processMove(n,[{fake:!0,clientX:n.clientX,clientY:n.clientY}]),n.preventDefault&&n.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(n){var e=this.$refs.draggable.getBoundingClientRect(),i=e.left,o=e.right,r=e.bottom,s=e.top;this.anchor={left:n.clientX-i,top:n.clientY-s,bottom:r-n.clientY,right:o-n.clientX}},processMove:function(n,e){var i=fn(e);if(this.touches.length){if(this.touches.length===1&&i.length===1){var o=this.$refs.draggable;this.$emit("drag",new yy(n,o,{left:i[0].clientX,top:i[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=i}},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"]};dr.render=function(n,e,i,o,r,s){return t.openBlock(),t.createBlock("div",{ref:"draggable",class:i.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)})},[t.renderSlot(n.$slots,"default")],34)};var ur=yt("vue-handler-wrapper"),Ya={name:"HandlerWrapper",components:{DraggableElement:dr},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var n;if(this.horizontalPosition||this.verticalPosition){var e,i=Ua(this.horizontalPosition,this.verticalPosition);n=ur((dt(e={},i.classname,!0),dt(e,"disabled",this.disabled),e))}else n=ur({disabled:this.disabled});return{root:n,draggable:ur("draggable")}}},emits:["leave","enter","drag","drag-end"]};Ya.render=function(n,e,i,o,r,s){var a=t.resolveComponent("DraggableElement");return t.openBlock(),t.createBlock("div",{class:s.classes.root},[t.createVNode(a,{class:s.classes.draggable,onDrag:e[1]||(e[1]=function(d){return n.$emit("drag",d)}),onDragEnd:e[2]||(e[2]=function(d){return n.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(d){return n.$emit("leave")}),onEnter:e[4]||(e[4]=function(d){return n.$emit("enter")})},{default:t.withCtx(function(){return[t.renderSlot(n.$slots,"default")]}),_:3},8,["class"])],2)};var wy=yt("vue-line-wrapper"),Xa={name:"LineWrapper",components:{DraggableElement:dr},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var n;return wy((dt(n={},this.position,!0),dt(n,"disabled",this.disabled),n))}},emits:["leave","enter","drag","drag-end"]};Xa.render=function(n,e,i,o,r,s){var a=t.resolveComponent("DraggableElement");return t.openBlock(),t.createBlock(a,{class:s.classname,onDrag:e[1]||(e[1]=function(d){return n.$emit("drag",d)}),onDragEnd:e[2]||(e[2]=function(d){return n.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(d){return n.$emit("leave")}),onEnter:e[4]||(e[4]=function(d){return n.$emit("enter")})},{default:t.withCtx(function(){return[t.renderSlot(n.$slots,"default")]}),_:3},8,["class"])};var $t=["left","right","top","bottom"],by=["left","right"],Sy=["top","bottom"],Cy=["left","top"],ky=["fill-area","fit-area","stencil","none"],Za={left:0,top:0,width:0,height:0};function Ja(n,e,i){return!(i=i||["width","height","left","top"]).some(function(o){return n[o]!==e[o]})}function Nt(n){return{left:n.left,top:n.top,right:n.left+n.width,bottom:n.top+n.height}}function Fn(n,e){return{left:n.left-e.left,top:n.top-e.top}}function Oe(n){return{left:n.left+n.width/2,top:n.top+n.height/2}}function ui(n,e){var i={left:0,top:0,right:0,bottom:0};return $t.forEach(function(o){var r=e[o],s=Nt(n)[o];i[o]=r!==void 0&&s!==void 0?o==="left"||o==="top"?Math.max(0,r-s):Math.max(0,s-r):0}),i}function Mt(n,e){return{left:n.left-e.left,top:n.top-e.top,width:n.width+e.left+e.right,height:n.height+e.top+e.bottom}}function no(n){return{left:-n.left,top:-n.top}}function et(n,e){return G(G({},n),{left:n.left+e.left,top:n.top+e.top})}function ut(n,e,i,o){if(e!==1){if(i){var r=Oe(n);return{width:n.width*e,height:n.height*e,left:n.left+n.width*(1-e)/2+(i.left-r.left)*(1-e),top:n.top+n.height*(1-e)/2+(i.top-r.top)*(1-e)}}return{width:n.width*e,height:n.height*e,left:n.left+n.width*(1-e)/2,top:n.top+n.height*(1-e)/2}}return n}function le(n){return n.width/n.height}function On(n,e){return Math.min(e.right!==void 0&&e.left!==void 0?(e.right-e.left)/n.width:1/0,e.bottom!==void 0&&e.top!==void 0?(e.bottom-e.top)/n.height:1/0)}function _n(n,e){var i={left:0,top:0},o=ui(n,e);return o.left&&o.left>0?i.left=o.left:o.right&&o.right>0&&(i.left=-o.right),o.top&&o.top>0?i.top=o.top:o.bottom&&o.bottom>0&&(i.top=-o.bottom),i}function fr(n,e){var i;return e.minimum&&n<e.minimum?i=e.minimum:e.maximum&&n>e.maximum&&(i=e.maximum),i}function Ka(n,e){var i=le(n),o=le(e);return e.width<1/0&&e.height<1/0?i>o?{width:e.width,height:e.width/i}:{width:e.height*i,height:e.height}:e.width<1/0?{width:e.width,height:e.width/i}:e.height<1/0?{width:e.height*i,height:e.height}:n}function el(n,e){var i=e*Math.PI/180;return{width:Math.abs(n.width*Math.cos(i))+Math.abs(n.height*Math.sin(i)),height:Math.abs(n.width*Math.sin(i))+Math.abs(n.height*Math.cos(i))}}function Gt(n,e){var i=e*Math.PI/180;return{left:n.left*Math.cos(i)-n.top*Math.sin(i),top:n.left*Math.sin(i)+n.top*Math.cos(i)}}function io(n,e){var i=ui(_e(n,e),e);return i.left+i.right+i.top+i.bottom?i.left+i.right>i.top+i.bottom?Math.min((n.width+i.left+i.right)/n.width,On(n,e)):Math.min((n.height+i.top+i.bottom)/n.height,On(n,e)):1}function _e(n,e,i){i===void 0&&(i=!1);var o=_n(n,e);return et(n,i?no(o):o)}function hr(n){return{width:n.right!==void 0&&n.left!==void 0?n.right-n.left:1/0,height:n.bottom!==void 0&&n.top!==void 0?n.bottom-n.top:1/0}}function xy(n,e){return G(G({},n),{minWidth:Math.min(e.width,n.minWidth),minHeight:Math.min(e.height,n.minHeight),maxWidth:Math.min(e.width,n.maxWidth),maxHeight:Math.min(e.height,n.maxHeight)})}function tl(n,e,i){i===void 0&&(i=!0);var o={};return $t.forEach(function(r){var s=n[r],a=e[r];s!==void 0&&a!==void 0?o[r]=r==="left"||r==="top"?i?Math.max(s,a):Math.min(s,a):i?Math.min(s,a):Math.max(s,a):a!==void 0?o[r]=a:s!==void 0&&(o[r]=s)}),o}function oo(n,e){return tl(n,e,!0)}function nl(n){var e=n.size,i=n.aspectRatio,o=n.ignoreMinimum,r=n.sizeRestrictions;return!!((e.correctRatio||le(e)>=i.minimum&&le(e)<=i.maximum)&&e.height<=r.maxHeight&&e.width<=r.maxWidth&&e.width&&e.height&&(o||e.height>=r.minHeight&&e.width>=r.minWidth))}function il(n,e){return Math.pow(n.width-e.width,2)+Math.pow(n.height-e.height,2)}function Dt(n){var e=n.width,i=n.height,o=n.sizeRestrictions,r={minimum:n.aspectRatio&&n.aspectRatio.minimum||0,maximum:n.aspectRatio&&n.aspectRatio.maximum||1/0},s={width:Math.max(o.minWidth,Math.min(o.maxWidth,e)),height:Math.max(o.minHeight,Math.min(o.maxHeight,i))};function a(u,f){return f===void 0&&(f=!1),u.reduce(function(h,m){return nl({size:m,aspectRatio:r,sizeRestrictions:o,ignoreMinimum:f})&&(!h||il(m,{width:e,height:i})<il(h,{width:e,height:i}))?m:h},null)}var d=[];r&&[r.minimum,r.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})}),nl({size:s,aspectRatio:r,sizeRestrictions:o})&&d.push(s);var c=a(d)||a(d,!0);return c&&{width:c.width,height:c.height}}function mr(n){var e=n.event,i=n.coordinates,o=n.positionRestrictions,r=o===void 0?{}:o,s=et(i,e.directions);return et(s,_n(s,r))}function Ey(n){var e=n.coordinates,i=n.transform,o=n.imageSize,r=n.sizeRestrictions,s=n.positionRestrictions,a=n.aspectRatio,d=n.visibleArea,c=function(f,h){return mr({coordinates:f,positionRestrictions:s,event:new cr({left:h.left-f.left,top:h.top-f.top})})},u=G({},e);return(Array.isArray(i)?i:[i]).forEach(function(f){var h={};Re((h=typeof f=="function"?f({coordinates:u,imageSize:o,visibleArea:d}):f).width)&&Re(h.height)||(u=function(m,w){var C=G(G(G({},m),Dt({width:w.width,height:w.height,sizeRestrictions:r,aspectRatio:a})),{left:0,top:0});return c(C,{left:m.left,top:m.top})}(u,G(G({},u),h))),Re(h.left)&&Re(h.top)||(u=c(u,G(G({},u),h)))}),u}function By(n){n.event;var e=n.getAreaRestrictions,i=n.boundaries,o=n.coordinates,r=n.visibleArea;n.aspectRatio;var s=n.stencilSize,a=n.sizeRestrictions,d=n.positionRestrictions;n.stencilReference;var c,u,f,h=G({},o),m=G({},r),w=G({},s);c=le(w),u=le(h),f===void 0&&(f=.001),(c===0||u===0?Math.abs(u-c)<f:Math.abs(u/c)<1+f&&Math.abs(u/c)>1-f)||(h=G(G({},h),Dt({sizeRestrictions:a,width:h.width,height:h.height,aspectRatio:{minimum:le(w),maximum:le(w)}})));var C=io(m=ut(m,h.width*i.width/(m.width*w.width)),e({visibleArea:m,type:"resize"}));return C!==1&&(m=ut(m,C),h=ut(h,C)),m=_e(m=et(m,Fn(Oe(h),Oe(m))),e({visibleArea:m,type:"move"})),{coordinates:h=_e(h,oo(Nt(m),d)),visibleArea:m}}function $y(n){var e=n.event,i=n.getAreaRestrictions,o=n.boundaries,r=n.coordinates,s=n.visibleArea;n.aspectRatio,n.stencilSize,n.sizeRestrictions;var a=n.positionRestrictions;n.stencilReference;var d=G({},r),c=G({},s);if(r&&s&&e.type!=="manipulateImage"){var u={width:0,height:0};c.width,o.width,le(o)>le(d)?(u.height=.8*o.height,u.width=u.height*le(d)):(u.width=.8*o.width,u.height=u.width*le(d));var f=io(c=ut(c,d.width*o.width/(c.width*u.width)),i({visibleArea:c,type:"resize"}));c=ut(c,f),f!==1&&(u.height/=f,u.width/=f),c=_e(c=et(c,Fn(Oe(d),Oe(c))),i({visibleArea:c,type:"move"})),d=_e(d,oo(Nt(c),a))}return{coordinates:d,visibleArea:c}}function Ny(n){var e=n.event,i=n.coordinates,o=n.visibleArea,r=n.getAreaRestrictions,s=G({},o),a=G({},i);if(e.type==="setCoordinates"){var d=Math.max(0,a.width-s.width),c=Math.max(0,a.height-s.height);d>c?s=ut(s,Math.min(a.width/s.width,On(s,r({visibleArea:s,type:"resize"})))):c>d&&(s=ut(s,Math.min(a.height/s.height,On(s,r({visibleArea:s,type:"resize"}))))),s=_e(s=et(s,no(_n(a,Nt(s)))),r({visibleArea:s,type:"move"}))}return{visibleArea:s,coordinates:a}}function My(n){var e=n.imageSize,i=n.visibleArea,o=n.coordinates,r=i||e;return{left:(i?i.left:0)+r.width/2-o.width/2,top:(i?i.top:0)+r.height/2-o.height/2}}function Iy(n){var e=n.imageSize,i=n.visibleArea,o=n.aspectRatio,r=n.sizeRestrictions,s=i||e,a=Math.min(o.maximum||1/0,Math.max(o.minimum||0,le(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 Dt(G(G({},d),{aspectRatio:o,sizeRestrictions:r}))}function Vy(n){var e,i,o=n.imageSize,r=n.visibleArea,s=n.boundaries,a=n.aspectRatio,d=n.sizeRestrictions,c=n.stencilSize,u=r||o;return le(u)>le(s)?i=(e=c.height*u.height/s.height)*le(c):e=(i=c.width*u.width/s.width)/le(c),Dt({width:i,height:e,aspectRatio:a,sizeRestrictions:d})}function Ty(n){var e=n.getAreaRestrictions,i=n.coordinates,o=n.imageSize,r=le(n.boundaries);if(i){var s={height:Math.max(i.height,o.height),width:Math.max(i.width,o.width)},a=Ka({width:le(s)>r?s.width:s.height*r,height:le(s)>r?s.width/r:s.height},hr(e())),d={left:i.left+i.width/2-a.width/2,top:i.top+i.height/2-a.height/2,width:a.width,height:a.height},c=ui(i,Nt(G({left:0,top:0},o))),u={};return!c.left&&!c.right&&d.width<=o.width&&(u.left=0,u.right=o.width),!c.top&&!c.bottom&&d.height<=o.height&&(u.top=0,u.bottom=o.height),_e(d,u)}var f=le(o);return a={height:f>r?o.height:o.width/r,width:f>r?o.height*r:o.width},{left:o.width/2-a.width/2,top:o.height/2-a.height/2,width:a.width,height:a.height}}function ro(n,e){return tl(n,Nt(e))}function Ry(n){var e=n.event,i=n.coordinates,o=n.visibleArea,r=n.sizeRestrictions,s=n.getAreaRestrictions,a=n.positionRestrictions,d=n.adjustStencil,c=e.scale,u=e.move,f=G({},o),h=G({},i),m=1,w=1,C=c.factor&&Math.abs(c.factor-1)>.001;f=et(f,{left:u.left||0,top:u.top||0});var B={stencil:{minimum:Math.max(r.minWidth?r.minWidth/h.width:0,r.minHeight?r.minHeight/h.height:0),maximum:Math.min(r.maxWidth?r.maxWidth/h.width:1/0,r.maxHeight?r.maxHeight/h.height:1/0,On(h,a))},area:{maximum:On(f,s({visibleArea:f,type:"resize"}))}};c.factor&&C&&(c.factor<1?(w=Math.max(c.factor,B.stencil.minimum))>1&&(w=1):c.factor>1&&(w=Math.min(c.factor,Math.min(B.area.maximum,B.stencil.maximum)))<1&&(w=1)),w&&(f=ut(f,w,c.center));var $=i.left-o.left,x=o.width+o.left-(i.width+i.left),M=i.top-o.top,k=o.height+o.top-(i.height+i.top);return f=_e(f=et(f,_n(f,{left:a.left!==void 0?a.left-$*w:void 0,top:a.top!==void 0?a.top-M*w:void 0,bottom:a.bottom!==void 0?a.bottom+k*w:void 0,right:a.right!==void 0?a.right+x*w:void 0})),s({visibleArea:f,type:"move"})),h.width=h.width*w,h.height=h.height*w,h.left=f.left+$*w,h.top=f.top+M*w,h=_e(h,oo(Nt(f),a)),c.factor&&C&&d&&(c.factor>1?m=Math.min(B.area.maximum,c.factor)/w:c.factor<1&&(m=Math.max(h.height/f.height,h.width/f.width,c.factor/w)),m!==1&&(f=et(f=_e(f=ut(f,m,c.factor>1?c.center:Oe(h)),s({visibleArea:f,type:"move"})),no(_n(h,Nt(f)))))),{coordinates:h,visibleArea:f}}function Py(n){var e=n.aspectRatio,i=n.getAreaRestrictions,o=n.coordinates,r=n.visibleArea,s=n.sizeRestrictions,a=n.positionRestrictions,d=n.imageSize,c=n.previousImageSize,u=n.angle,f=G({},o),h=G({},r),m=Gt(Oe(G({left:0,top:0},c)),u);return(f=G(G({},Dt({sizeRestrictions:s,aspectRatio:e,width:f.width,height:f.height})),Gt(Oe(f),u))).left-=m.left-d.width/2+f.width/2,f.top-=m.top-d.height/2+f.height/2,h=ut(h,io(h,i({visibleArea:h,type:"resize"}))),{coordinates:f=_e(f,a),visibleArea:h=_e(h=et(h,Fn(Oe(f),Oe(o))),i({visibleArea:h,type:"move"}))}}function vy(n){var e=n.flip,i=n.previousFlip,o=n.rotate,r=n.getAreaRestrictions,s=n.coordinates,a=n.visibleArea,d=n.imageSize,c=G({},s),u=G({},a),f=i.horizontal!==e.horizontal,h=i.vertical!==e.vertical;if(f||h){var m=Gt({left:d.width/2,top:d.height/2},-o),w=Gt(Oe(c),-o),C=Gt({left:f?m.left-(w.left-m.left):w.left,top:h?m.top-(w.top-m.top):w.top},o);c=et(c,Fn(C,Oe(c))),w=Gt(Oe(u),-o),u=_e(u=et(u,Fn(C=Gt({left:f?m.left-(w.left-m.left):w.left,top:h?m.top-(w.top-m.top):w.top},o),Oe(u))),r({visibleArea:u,type:"move"}))}return{coordinates:c,visibleArea:u}}function ol(n){var e=n.directions,i=n.coordinates,o=n.positionRestrictions,r=o===void 0?{}:o,s=n.sizeRestrictions,a=n.preserveRatio,d=n.compensate,c=G({},e),u=Mt(i,c).width,f=Mt(i,c).height;u<0&&(c.left<0&&c.right<0?(c.left=-(i.width-s.minWidth)/(c.left/c.right),c.right=-(i.width-s.minWidth)/(c.right/c.left)):c.left<0?c.left=-(i.width-s.minWidth):c.right<0&&(c.right=-(i.width-s.minWidth))),f<0&&(c.top<0&&c.bottom<0?(c.top=-(i.height-s.minHeight)/(c.top/c.bottom),c.bottom=-(i.height-s.minHeight)/(c.bottom/c.top)):c.top<0?c.top=-(i.height-s.minHeight):c.bottom<0&&(c.bottom=-(i.height-s.minHeight)));var h=ui(Mt(i,c),r);d&&(h.left&&h.left>0&&h.right===0?(c.right+=h.left,c.left-=h.left):h.right&&h.right>0&&h.left===0&&(c.left+=h.right,c.right-=h.right),h.top&&h.top>0&&h.bottom===0?(c.bottom+=h.top,c.top-=h.top):h.bottom&&h.bottom>0&&h.top===0&&(c.top+=h.bottom,c.bottom-=h.bottom),h=ui(Mt(i,c),r));var m={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if($t.forEach(function(B){var $=h[B];$&&c[B]&&(m[B]=Math.max(0,1-$/c[B]))}),a){var w=Math.min.apply(null,$t.map(function(B){return m[B]}));w!==1/0&&$t.forEach(function(B){c[B]*=w})}else $t.forEach(function(B){m[B]!==1/0&&(c[B]*=m[B])});if(u=Mt(i,c).width,f=Mt(i,c).height,c.right+c.left&&(u>s.maxWidth?m.width=(s.maxWidth-i.width)/(c.right+c.left):u<s.minWidth&&(m.width=(s.minWidth-i.width)/(c.right+c.left))),c.bottom+c.top&&(f>s.maxHeight?m.height=(s.maxHeight-i.height)/(c.bottom+c.top):f<s.minHeight&&(m.height=(s.minHeight-i.height)/(c.bottom+c.top))),a){var C=Math.min(m.width,m.height);C!==1/0&&$t.forEach(function(B){c[B]*=C})}else m.width!==1/0&&by.forEach(function(B){c[B]*=m.width}),m.height!==1/0&&Sy.forEach(function(B){c[B]*=m.height});return c}function so(n,e,i){return e==0&&i==0?n/2:e==0?0:i==0?n:n*Math.abs(e/(e+i))}var Ay=yt("vue-simple-handler"),zy=yt("vue-simple-handler-wrapper"),pr={name:"SimpleHandler",components:{HandlerWrapper:Ya},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 n,e=(dt(n={},this.horizontalPosition,!!this.horizontalPosition),dt(n,this.verticalPosition,!!this.verticalPosition),dt(n,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),dt(n,"hover",this.hover),n);return{default:Ne(Ay(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:Ne(zy(e),this.wrapperClass)}}},methods:{onDrag:function(n){this.$emit("drag",n)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};pr.render=function(n,e,i,o,r,s){var a=t.resolveComponent("HandlerWrapper");return t.openBlock(),t.createBlock(a,{class:s.classes.wrapper,"vertical-position":i.verticalPosition,"horizontal-position":i.horizontalPosition,disabled:i.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:t.withCtx(function(){return[t.createVNode("div",{class:s.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Dy=yt("vue-simple-line"),Fy=yt("vue-simple-line-wrapper"),gr={name:"SimpleLine",components:{LineWrapper:Xa},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:Ne(Dy(dt({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:Ne(Fy(dt({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(n){this.$emit("drag",n)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};gr.render=function(n,e,i,o,r,s){var a=t.resolveComponent("LineWrapper");return t.openBlock(),t.createBlock(a,{class:s.classes.wrapper,position:i.position,disabled:i.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:t.withCtx(function(){return[t.createVNode("div",{class:s.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var yr=yt("vue-bounding-box"),Oy=["east","west",null],_y=["south","north",null],rl={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 pr}},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 gr}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var n=[];return Oy.forEach(function(e){_y.forEach(function(i){if(e!==i){var o=Ua(e,i),r=o.name,s=o.classname;n.push({name:r,classname:s,verticalDirection:i,horizontalDirection:e})}})}),{points:n}},computed:{style:function(){var n={};return this.width&&this.height&&(n.width="".concat(this.width,"px"),n.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(n.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),n},classes:function(){var n=this.handlersClasses,e=this.handlersWrappersClasses,i=this.linesClasses,o=this.linesWrappersClasses;return{root:yr(),handlers:n,handlersWrappers:e,lines:i,linesWrappers:o}},lineNodes:function(){var n=this,e=[];return this.points.forEach(function(i){i.horizontalDirection&&i.verticalDirection||!n.lines[i.name]||e.push({name:i.name,component:n.linesComponent,class:Ne(n.classes.lines.default,n.classes.lines[i.name],!n.resizable&&n.classes.lines.disabled),wrapperClass:Ne(n.classes.linesWrappers.default,n.classes.linesWrappers[i.name],!n.resizable&&n.classes.linesWrappers.disabled),hoverClass:n.classes.lines.hover,verticalDirection:i.verticalDirection,horizontalDirection:i.horizontalDirection,disabled:!n.resizable})}),e},handlerNodes:function(){var n=this,e=[],i=this.width,o=this.height;return this.points.forEach(function(r){if(n.handlers[r.name]){var s={name:r.name,component:n.handlersComponent,class:Ne(n.classes.handlers.default,n.classes.handlers[r.name]),wrapperClass:Ne(n.classes.handlersWrappers.default,n.classes.handlersWrappers[r.name]),hoverClass:n.classes.handlers.hover,verticalDirection:r.verticalDirection,horizontalDirection:r.horizontalDirection,disabled:!n.resizable};if(i&&o){var a=r.horizontalDirection,d=r.verticalDirection,c=a==="east"?i:a==="west"?0:i/2,u=d==="south"?o:d==="north"?0:o/2;s.wrapperClass=yr("handler"),s.wrapperStyle={transform:"translate(".concat(c,"px, ").concat(u,"px)")},n.transitions&&n.transitions.enabled&&(s.wrapperStyle.transition="".concat(n.transitions.time,"ms ").concat(n.transitions.timingFunction))}else s.wrapperClass=yr("handler",dt({},r.classname,!0));e.push(s)}}),e}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(n,e,i){var o,r=n.shift(),s=r.left,a=r.top,d={left:0,right:0,top:0,bottom:0};e==="west"?d.left-=s:e==="east"&&(d.right+=s),i==="north"?d.top-=a:i==="south"&&(d.bottom+=a),!i&&e?o="width":i&&!e&&(o="height"),this.resizable&&this.$emit("resize",new gy(d,{allowedDirections:{left:e==="west"||!e,right:e==="east"||!e,bottom:i==="south"||!i,top:i==="north"||!i},preserveAspectRatio:n.nativeEvent&&n.nativeEvent.shiftKey,respectDirection:o}))}},emits:["resize","resize-end"]};rl.render=function(n,e,i,o,r,s){return t.openBlock(),t.createBlock("div",{ref:"box",class:s.classes.root,style:s.style},[t.renderSlot(n.$slots,"default"),t.createVNode("div",null,[(t.openBlock(!0),t.createBlock(t.Fragment,null,t.renderList(s.lineNodes,function(a){return t.openBlock(),t.createBlock(t.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))]),(t.openBlock(!0),t.createBlock(t.Fragment,null,t.renderList(s.handlerNodes,function(a){return t.openBlock(),t.createBlock("div",{key:a.name,style:a.wrapperStyle,class:a.wrapperClass},[(t.openBlock(),t.createBlock(t.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 Ly=yt("vue-draggable-area"),sl={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:Ly()}}},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(n){if(n.cancelable){var e=this.movable&&n.touches.length===1;e&&(this.touches=fn(n.touches)),(this.touchStarted||e)&&(n.preventDefault(),n.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(n){this.touches.length>=1&&(this.touchStarted?(this.processMove(n,n.touches),n.preventDefault(),n.stopPropagation()):Qa({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:n.touches[0].clientX,y:n.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(n){if(this.movable&&n.button===0){var e={fake:!0,clientX:n.clientX,clientY:n.clientY};this.touches=[e],this.initAnchor(e),n.stopPropagation()}},onMouseMove:function(n){this.touches.length&&(this.processMove(n,[{fake:!0,clientX:n.clientX,clientY:n.clientY}]),n.preventDefault&&n.cancelable&&n.preventDefault(),n.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(n){var e=this.$refs.container.getBoundingClientRect(),i=e.left,o=e.top;this.anchor={x:n.clientX-i,y:n.clientY-o}},processMove:function(n,e){var i=fn(e);if(this.touches.length){var o=this.$refs.container.getBoundingClientRect(),r=o.left,s=o.top;this.touches.length===1&&i.length===1&&this.$emit("move",new cr({left:i[0].clientX-(r+this.anchor.x),top:i[0].clientY-(s+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};sl.render=function(n,e,i,o,r,s){return t.openBlock(),t.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)})},[t.renderSlot(n.$slots,"default")],544)};function wr(n){var e,i;return{rotate:n.rotate||0,flip:{horizontal:((e=n==null?void 0:n.flip)===null||e===void 0?void 0:e.horizontal)||!1,vertical:((i=n==null?void 0:n.flip)===null||i===void 0?void 0:i.vertical)||!1}}}function Hy(n){return new Promise(function(e,i){try{if(n)if(/^data:/i.test(n))e(function(c){c=c.replace(/^data:([^;]+);base64,/gim,"");for(var u=atob(c),f=u.length,h=new ArrayBuffer(f),m=new Uint8Array(h),w=0;w<f;w++)m[w]=u.charCodeAt(w);return h}(n));else if(/^blob:/i.test(n)){var o=new FileReader;o.onload=function(c){e(c.target.result)},s=n,a=function(c){o.readAsArrayBuffer(c)},(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 r=new XMLHttpRequest;r.onreadystatechange=function(){r.readyState===4&&(r.status===200||r.status===0?e(r.response):i("Warning: could not load an image to parse its orientation"),r=null)},r.onprogress=function(){r.getResponseHeader("content-type")!=="image/jpeg"&&r.abort()},r.withCredentials=!1,r.open("GET",n,!0),r.responseType="arraybuffer",r.send(null)}else i("Error: the image is empty")}catch(c){i(c)}var s,a,d})}function al(n){var e=n.rotate,i=n.flip,o=n.scaleX,r=n.scaleY,s="";return s+=" rotate("+e+"deg) ",s+=" scaleX("+o*(i.horizontal?-1:1)+") ",s+=" scaleY("+r*(i.vertical?-1:1)+") "}function Uy(n){try{var e,i=new DataView(n),o=void 0,r=void 0,s=void 0,a=void 0;if(i.getUint8(0)===255&&i.getUint8(1)===216)for(var d=i.byteLength,c=2;c+1<d;){if(i.getUint8(c)===255&&i.getUint8(c+1)===225){s=c;break}c++}if(s&&(o=s+10,function(w,C,B){var $,x="";for($=C,B+=C;$<B;$++)x+=String.fromCharCode(w.getUint8($));return x}(i,s+4,4)==="Exif")){var u=i.getUint16(o);if(((r=u===18761)||u===19789)&&i.getUint16(o+2,r)===42){var f=i.getUint32(o+4,r);f>=8&&(a=o+f)}}if(a){for(var h=i.getUint16(a,r),m=0;m<h;m++)if(c=a+12*m+2,i.getUint16(c,r)===274){c+=8,e=i.getUint16(c,r),i.setUint16(c,1,r);break}}return e}catch{return null}}function ll(n,e){var i=e.getBoundingClientRect(),o=i.left,r=i.top,s={left:0,top:0},a=0;return n.forEach(function(d){s.left+=(d.clientX-o)/n.length,s.top+=(d.clientY-r)/n.length}),n.forEach(function(d){a+=Qa({x:s.left,y:s.top},{x:d.clientX-o,y:d.clientY-r})}),{centerMass:s,spread:a,count:n.length}}var cl={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=ar(this.processEnd),this.touches=[]},methods:{processMove:function(n,e){if(this.touches.length){if(this.touches.length===1&&e.length===1)this.$emit("move",new di({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 i=ll(e,this.$refs.container),o=this.oldGeometricProperties;o.count===i.count&&o.count>1&&this.$emit("resize",new di({left:o.centerMass.left-i.centerMass.left,top:o.centerMass.top-i.centerMass.top},{factor:o.spread/i.spread,center:i.centerMass})),this.oldGeometricProperties=i}this.touches=e}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(n){return this.eventsFilter?this.eventsFilter(n,this.transforming)!==!1:(n.preventDefault(),n.stopPropagation(),!0)},onTouchStart:function(n){if(n.cancelable&&(this.touchMove||this.touchResize&&n.touches.length>1)&&this.processEvent(n)){var e=this.$refs.container,i=e.getBoundingClientRect(),o=i.left,r=i.top,s=i.bottom,a=i.right;this.touches=fn(n.touches).filter(function(d){return d.clientX>o&&d.clientX<a&&d.clientY>r&&d.clientY<s}),this.oldGeometricProperties=ll(this.touches,e)}},onTouchEnd:function(n){n.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(n){var e=this;if(this.touches.length){var i=fn(n.touches).filter(function(o){return!o.identifier||e.touches.find(function(r){return r.identifier===o.identifier})});this.processEvent(n)&&(this.processMove(n,i),this.processStart())}},onMouseDown:function(n){if(this.mouseMove&&"buttons"in n&&n.buttons===1&&this.processEvent(n)){var e={fake:!0,clientX:n.clientX,clientY:n.clientY};this.touches=[e],this.processStart()}},onMouseMove:function(n){this.touches.length&&this.processEvent(n)&&this.processMove(n,[{clientX:n.clientX,clientY:n.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(n){if(this.wheelResize&&this.processEvent(n)){var e=this.$refs.container.getBoundingClientRect(),i=e.left,o=e.top,r=1+this.wheelResize.ratio*(a=n.deltaY||n.detail||n.wheelDelta,(d=+a)==0||Ga(d)?d:d>0?1:-1),s={left:n.clientX-i,top:n.clientY-o};this.$emit("resize",new di({},{factor:r,center:s})),this.touches.length||this.debouncedProcessEnd()}var a,d}},emits:["resize","move","transform-end"]};cl.render=function(n,e,i,o,r,s){return t.openBlock(),t.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)})},[t.renderSlot(n.$slots,"default")],544)};var br={components:{TransformableImage:cl},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"]};br.render=function(n,e,i,o,r,s){var a=t.resolveComponent("transformable-image");return t.openBlock(),t.createBlock(a,{"touch-move":i.touchMove,"touch-resize":i.touchResize,"mouse-move":i.mouseMove,"wheel-resize":i.wheelResize,onMove:e[1]||(e[1]=function(d){return n.$emit("move",d)}),onResize:e[2]||(e[2]=function(d){return n.$emit("resize",d)})},{default:t.withCtx(function(){return[t.renderSlot(n.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var ao=yt("vue-preview"),dl={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:ao({fill:this.fill}),wrapper:ao("wrapper"),imageWrapper:ao("image-wrapper"),image:Ne(ao("image"),this.imageClass)}},style:function(){if(this.fill)return{};var n={};return this.width&&(n.width="".concat(this.size.width,"px")),this.height&&(n.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(n.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),n},wrapperStyle:function(){var n={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&&(n.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),n},imageStyle:function(){if(this.coordinates&&this.image){var n=this.coordinates.width/this.size.width,e=ae(ae({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/n,scaleY:1/n}),i=this.imageSize.width,o=this.imageSize.height,r=el({width:i,height:o},e.rotate),s={width:"".concat(i,"px"),height:"".concat(o,"px"),left:"0px",top:"0px"},a={rotate:{left:(i-r.width)*e.scaleX/2,top:(o-r.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*i/2,top:(1-e.scaleY)*o/2}};return s.transform=`translate(
|
|
44
|
+
`.concat(-this.coordinates.left/n-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/n-a.rotate.top-a.scale.top,"px) ")+al(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(n){(n.width||n.height)&&this.onChangeImage()}},mounted:function(){var n=this;this.onChangeImage(),this.$refs.image.addEventListener("load",function(){n.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 n=this.$refs.image;this.calculatedImageSize.height=n.naturalHeight,this.calculatedImageSize.width=n.naturalWidth},refresh:function(){var n=this.$refs.root;this.width||(this.calculatedSize.width=n.clientWidth),this.height||(this.calculatedSize.height=n.clientHeight)},onChangeImage:function(){var n=this.$refs.image;n&&n.complete&&this.refreshImage(),this.refresh()}}};dl.render=function(n,e,i,o,r,s){return t.openBlock(),t.createBlock("div",{ref:"root",class:s.classes.root,style:s.style},[t.createVNode("div",{ref:"wrapper",class:s.classes.wrapper,style:s.wrapperStyle},[t.withDirectives(t.createVNode("img",{ref:"image",src:i.image&&i.image.src,class:s.classes.image,style:s.imageStyle},null,14,["src"]),[[t.vShow,i.image&&i.image.src]])],6)],6)};var ul={components:{Preview:dl},inheritAttrs:!1};ul.render=function(n,e,i,o,r,s){var a=t.resolveComponent("preview");return t.openBlock(),t.createBlock(a,t.mergeProps(n.$attrs,{fill:!0}),null,16)};var Sr=yt("vue-rectangle-stencil"),fl={name:"RectangleStencil",components:{StencilPreview:ul,BoundingBox:rl,DraggableArea:sl},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return pr}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return gr}},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:Ne(Sr({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:Ne(Sr("preview"),this.previewClass),boundingBox:Ne(Sr("bounding-box"),this.boundingBoxClass)}},style:function(){var n=this.stencilCoordinates,e=n.height,i=n.width,o=n.left,r=n.top,s={width:"".concat(i,"px"),height:"".concat(e,"px"),transform:"translate(".concat(o,"px, ").concat(r,"px)")};return this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}},methods:{onMove:function(n){this.$emit("move",n),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(n){this.$emit("resize",n),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"]};fl.render=function(n,e,i,o,r,s){var a=t.resolveComponent("stencil-preview"),d=t.resolveComponent("draggable-area"),c=t.resolveComponent("bounding-box");return t.openBlock(),t.createBlock("div",{class:s.classes.stencil,style:s.style},[t.createVNode(c,{width:i.stencilCoordinates.width,height:i.stencilCoordinates.height,transitions:i.transitions,class:s.classes.boundingBox,handlers:i.handlers,"handlers-component":i.handlersComponent,"handlers-classes":i.handlersClasses,"handlers-wrappers-classes":i.handlersWrappersClasses,lines:i.lines,"lines-component":i.linesComponent,"lines-classes":i.linesClasses,"lines-wrappers-classes":i.linesWrappersClasses,resizable:i.resizable,onResize:s.onResize,onResizeEnd:s.onResizeEnd},{default:t.withCtx(function(){return[t.createVNode(d,{movable:i.movable,onMove:s.onMove,onMoveEnd:s.onMoveEnd},{default:t.withCtx(function(){return[t.createVNode(a,{image:i.image,coordinates:i.coordinates,width:i.stencilCoordinates.width,height:i.stencilCoordinates.height,class:s.classes.preview,transitions:i.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 qy=["transitions"],Ft=yt("vue-advanced-cropper"),hl={name:"Cropper",components:{BackgroundWrapper:br},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return fl}},backgroundWrapperComponent:{type:[Object,String],default:function(){return br}},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(n){return ky.indexOf(n)!==-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(n){return!(typeof n=="string"&&n!=="fill"&&n!=="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(n){var e=n.event,i=n.coordinates,o=n.aspectRatio,r=n.positionRestrictions,s=n.sizeRestrictions,a=G(G({},i),{right:i.left+i.width,bottom:i.top+i.height}),d=e.params||{},c=G({},e.directions),u=d.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};s.widthFrozen&&(c.left=0,c.right=0),s.heightFrozen&&(c.top=0,c.bottom=0),$t.forEach(function(P){u[P]||(c[P]=0)});var f=Mt(a,c=ol({coordinates:a,directions:c,sizeRestrictions:s,positionRestrictions:r})).width,h=Mt(a,c).height,m=d.preserveRatio?le(a):fr(f/h,o);if(m){var w=d.respectDirection;if(w||(w=a.width>=a.height||m===1?"width":"height"),w==="width"){var C=f/m-a.height;if(u.top&&u.bottom){var B=c.top,$=c.bottom;c.bottom=so(C,$,B),c.top=so(C,B,$)}else u.bottom?c.bottom=C:u.top?c.top=C:u.right?c.right=0:u.left&&(c.left=0)}else if(w==="height"){var x=a.width-h*m;if(u.left&&u.right){var M=c.left,k=c.right;c.left=-so(x,M,k),c.right=-so(x,k,M)}else u.left?c.left=-x:u.right?c.right=-x:u.top?c.top=0:u.bottom&&(c.bottom=0)}c=ol({directions:c,coordinates:a,sizeRestrictions:s,positionRestrictions:r,preserveRatio:!0,compensate:d.compensate})}return f=Mt(a,c).width,h=Mt(a,c).height,(m=d.preserveRatio?le(a):fr(f/h,o))&&Math.abs(m-f/h)>.001&&$t.forEach(function(P){u[P]||(c[P]=0)}),mr({event:new cr({left:-c.left,top:-c.top}),coordinates:{width:i.width+c.right+c.left,height:i.height+c.top+c.bottom,left:i.left,top:i.top},positionRestrictions:r})}},moveAlgorithm:{type:Function,default:mr},initStretcher:{type:Function,default:function(n){var e=n.stretcher,i=n.imageSize,o=le(i);e.style.width=i.width+"px",e.style.height=e.clientWidth/o+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(n){var e=n.visibleArea,i=n.coordinates,o=n.aspectRatio,r=n.sizeRestrictions,s=n.positionRestrictions,a=G(G({},i),Dt({width:i.width,height:i.height,aspectRatio:o,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,r.minHeight),minWidth:Math.min(e.width,r.minWidth)}}));return a=_e(a=et(a,Fn(Oe(i),Oe(a))),oo(Nt(e),s))}},fitVisibleArea:{type:Function,default:function(n){var e=n.visibleArea,i=n.boundaries,o=n.getAreaRestrictions,r=n.coordinates,s=G({},e);s.height=s.width/le(i),s.top+=(e.height-s.height)/2,(r.height-s.height>0||r.width-s.width>0)&&(s=ut(s,Math.max(r.height/s.height,r.width/s.width)));var a=no(_n(r,Nt(s=ut(s,io(s,o({visibleArea:s,type:"resize"}))))));return s.width<r.width&&(a.left=0),s.height<r.height&&(a.top=0),s=_e(s=et(s,a),o({visibleArea:s,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(n){var e=n.visibleArea,i=n.boundaries,o=n.imageSize,r=n.imageRestriction,s=n.type,a={};return r==="fill-area"?a={left:0,top:0,right:o.width,bottom:o.height}:r==="fit-area"&&(le(i)>le(o)?(a={top:0,bottom:o.height},e&&s==="move"&&(e.width>o.width?(a.left=-(e.width-o.width)/2,a.right=o.width-a.left):(a.left=0,a.right=o.width))):(a={left:0,right:o.width},e&&s==="move"&&(e.height>o.height?(a.top=-(e.height-o.height)/2,a.bottom=o.height-a.top):(a.top=0,a.bottom=o.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(n){return{minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(n){var e=n.imageSize,i={};return n.imageRestriction!=="none"&&(i={left:0,top:0,right:e.width,bottom:e.height}),i}}},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:ae({},Za)}},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 n=function(e){return e*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(n))+Math.abs(this.imageAttributes.height*Math.sin(n)),height:Math.abs(this.imageAttributes.width*Math.sin(n))+Math.abs(this.imageAttributes.height*Math.cos(n))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var n=lr(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:lr(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:n}},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 n=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:Re(this.minWidth)?0:to(this.minWidth),minHeight:Re(this.minHeight)?0:to(this.minHeight),maxWidth:Re(this.maxWidth)?1/0:to(this.maxWidth),maxHeight:Re(this.maxHeight)?1/0:to(this.maxHeight)});if(n=function(o){var r=o.areaRestrictions,s=o.sizeRestrictions,a=o.boundaries,d=o.positionRestrictions,c=G(G({},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&&(c.maxWidth=Math.min(c.maxWidth,d.right-d.left)),d.bottom!==void 0&&d.top!==void 0&&(c.maxHeight=Math.min(c.maxHeight,d.bottom-d.top));var u=hr(r),f=Ka(a,u);return u.width<1/0&&(!c.maxWidth||c.maxWidth>f.width)&&(c.maxWidth=Math.min(c.maxWidth,f.width)),u.height<1/0&&(!c.maxHeight||c.maxHeight>f.height)&&(c.maxHeight=Math.min(c.maxHeight,f.height)),c.minWidth>c.maxWidth&&(c.minWidth=c.maxWidth,c.widthFrozen=!0),c.minHeight>c.maxHeight&&(c.minHeight=c.maxHeight,c.heightFrozen=!0),c}({sizeRestrictions:n,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(),i=hr(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));n.maxWidth=Math.min(n.maxWidth,i.width*e.width/this.boundaries.width),n.maxHeight=Math.min(n.maxHeight,i.height*e.height/this.boundaries.height),n.maxWidth<n.minWidth&&(n.minWidth=n.maxWidth),n.maxHeight<n.minHeight&&(n.minHeight=n.maxHeight)}return n}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:Ft(),image:Ne(Ft("image"),this.imageClass),stencil:Ft("stencil"),boundaries:Ne(Ft("boundaries"),this.boundariesClass),stretcher:Ne(Ft("stretcher")),background:Ne(Ft("background"),this.backgroundClass),foreground:Ne(Ft("foreground"),this.foregroundClass),imageWrapper:Ne(Ft("image-wrapper")),cropperWrapper:Ne(Ft("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var n=this.coordinates,e=n.width,i=n.height,o=n.left,r=n.top;return{width:e/this.coefficient,height:i/this.coefficient,left:(o-this.visibleArea.left)/this.coefficient,top:(r-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var n={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||(n.opacity="0"),n},imageStyle:function(){var n=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:(n.width-this.imageSize.width)/(2*this.coefficient),top:(n.height-this.imageSize.height)/(2*this.coefficient)},i={left:(1-1/this.coefficient)*n.width/2,top:(1-1/this.coefficient)*n.height/2},o=ae(ae({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/n.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/n.height)}),r={width:"".concat(n.width,"px"),height:"".concat(n.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-e.left-i.left-this.imageTransforms.translateX,"px, ").concat(-e.top-i.top-this.imageTransforms.translateY,"px)")+al(o)};return this.transitionsOptions.enabled&&(r.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),r}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var n=this;this.$nextTick(function(){n.resetCoordinates(),n.runAutoZoom("setCoordinates"),n.onChange()})},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(n,e){["aspectRatio","minAspectRatio","maxAspectRatio"].find(function(i){return n[i]!==e[i]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=ar(this.update,this.debounce),this.debouncedDisableTransitions=ar(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 n=this.initialized?this.prepareResult(ae({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:ae({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var i=this;return{image:this.image,coordinates:n,visibleArea:this.visibleArea?ae({},this.visibleArea):null,imageTransforms:e,get canvas(){return i.canvas?i.getCanvas():void 0}}}return{image:this.image,coordinates:n,visibleArea:this.visibleArea?ae({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(n,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.transitions,r=o===void 0||o;this.onManipulateImage(new di({},{factor:1/n,center:e}),{normalize:!1,transitions:r})},move:function(n,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.transitions,r=o===void 0||o;this.onManipulateImage(new di({left:n||0,top:e||0}),{normalize:!1,transitions:r})},setCoordinates:function(n){var e=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.autoZoom,r=o===void 0||o,s=i.transitions,a=s===void 0||s;this.$nextTick(function(){e.imageLoaded?(e.transitionsActive||(a&&e.enableTransitions(),e.coordinates=e.applyTransform(n),r&&e.runAutoZoom("setCoordinates"),a&&e.debouncedDisableTransitions()),e.onChange()):e.delayedTransforms=n})},refresh:function(){var n=this,e=this.$refs.image;if(this.src&&e)return this.initialized?this.updateVisibleArea().then(function(){n.onChange()}):this.resetVisibleArea().then(function(){n.onChange()})},reset:function(){var n=this;return this.resetVisibleArea().then(function(){n.onChange(!1)})},awaitRender:function(n){var e=this;this.awaiting||(this.awaiting=!0,this.$nextTick(function(){n(),e.awaiting=!1}))},prepareResult:function(n){return this.roundResult?function(e){var i=e.coordinates,o=e.sizeRestrictions,r=e.positionRestrictions,s={width:Math.round(i.width),height:Math.round(i.height),left:Math.round(i.left),top:Math.round(i.top)};return s.width>o.maxWidth?s.width=Math.floor(i.width):s.width<o.minWidth&&(s.width=Math.ceil(i.width)),s.height>o.maxHeight?s.height=Math.floor(i.height):s.height<o.minHeight&&(s.height=Math.ceil(i.height)),_e(s,r)}(ae(ae({},this.getPublicProperties()),{},{positionRestrictions:ro(this.positionRestrictions,this.visibleArea),coordinates:n})):n},processAutoZoom:function(n,e,i,o){var r=this.autoZoomAlgorithm;r||(r=this.stencilSize?By:this.autoZoom?$y:Ny);var s=r({event:{type:n,params:o},visibleArea:e,coordinates:i,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return ae(ae({},s),{},{changed:!Ja(s.visibleArea,e)||!Ja(s.coordinates,i)})},runAutoZoom:function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.transitions,o=i!==void 0&&i,r=my(e,qy),s=this.processAutoZoom(n,this.visibleArea,this.coordinates,r),a=s.visibleArea,d=s.coordinates,c=s.changed;o&&c&&this.enableTransitions(),this.visibleArea=a,this.coordinates=d,o&&c&&this.debouncedDisableTransitions()},normalizeEvent:function(n){return function(e){var i=e.event,o=e.visibleArea,r=e.coefficient;if(i.type==="manipulateImage")return G(G({},i),{move:{left:i.move&&i.move.left?r*i.move.left:0,top:i.move&&i.move.top?r*i.move.top:0},scale:{factor:i.scale&&i.scale.factor?i.scale.factor:1,center:i.scale&&i.scale.center?{left:i.scale.center.left*r+o.left,top:i.scale.center.top*r+o.top}:null}});if(i.type==="resize"){var s=G(G({},i),{directions:G({},i.directions)});return $t.forEach(function(d){s.directions[d]*=r}),s}if(i.type==="move"){var a=G(G({},i),{directions:G({},i.directions)});return Cy.forEach(function(d){a.directions[d]*=r}),a}return i}(ae(ae({},this.getPublicProperties()),{},{event:n}))},getCanvas:function(){if(this.$refs.canvas){var n=this.$refs.canvas,e=this.$refs.image,i=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(d,c,u){var f=u.rotate,h=u.flip,m={width:c.naturalWidth,height:c.naturalHeight},w=el(m,f),C=d.getContext("2d");d.height=w.height,d.width=w.width,C.save();var B=Gt(Oe(G({left:0,top:0},m)),f);return C.translate(-(B.left-w.width/2),-(B.top-w.height/2)),C.rotate(f*Math.PI/180),C.translate(h.horizontal?m.width:0,h.vertical?m.height:0),C.scale(h.horizontal?-1:1,h.vertical?-1:1),C.drawImage(c,0,0,m.width,m.height),C.restore(),d}(this.$refs.sourceCanvas,e,this.imageTransforms):e,o=ae({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),r=function(d){return d.find(function(c){return u=c,!Number.isNaN(parseFloat(u))&&isFinite(u);var u})},s=Dt({sizeRestrictions:{minWidth:r([o.width,o.minWidth])||0,minHeight:r([o.height,o.minHeight])||0,maxWidth:r([o.width,o.maxWidth])||1/0,maxHeight:r([o.height,o.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(o.maxArea&&s.width*s.height>o.maxArea){var a=Math.sqrt(o.maxArea/(s.width*s.height));s={width:Math.round(a*s.width),height:Math.round(a*s.height)}}return function(d,c,u,f,h){d.width=f?f.width:u.width,d.height=f?f.height:u.height;var m=d.getContext("2d");m.clearRect(0,0,d.width,d.height),h&&(h.imageSmoothingEnabled&&(m.imageSmoothingEnabled=h.imageSmoothingEnabled),h.imageSmoothingQuality&&(m.imageSmoothingQuality=h.imageSmoothingQuality),h.fillColor&&(m.fillStyle=h.fillColor,m.fillRect(0,0,d.width,d.height),m.save()));var w=u.left<0?-u.left:0,C=u.top<0?-u.top:0;m.drawImage(c,u.left+w,u.top+C,u.width,u.height,w*(d.width/u.width),C*(d.height/u.height),d.width,d.height)}(n,i,this.coordinates,s,o),n}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(n){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],i=this.visibleArea&&e?xy(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,o=this.visibleArea&&e?ro(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return Ey({transform:n,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:i,positionRestrictions:o,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var n=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var e=this.defaultSize;e||(e=this.stencilSize?Vy:Iy);var i=this.sizeRestrictions;i.minWidth,i.minHeight,i.maxWidth,i.maxHeight;var o=Dn(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,r=this.defaultPosition||My,s=[o,function(a){var d=a.coordinates;return ae({},Dn(r)?r({coordinates:d,imageSize:n.imageSize,visibleArea:n.visibleArea}):n.defaultPosition)}];this.delayedTransforms&&s.push.apply(s,fn(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(s,!0),this.delayedTransforms=null}},clearImage:function(){var n=this;this.imageLoaded=!1,setTimeout(function(){var e=n.$refs.stretcher;e&&(e.style.height="auto",e.style.width="auto"),n.coordinates=n.defaultCoordinates(),n.boundaries={width:0,height:0}},this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var n=this,e=this.$refs.stretcher,i=this.$refs.cropper;return this.initStretcher({cropper:i,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then(function(){var o={cropper:i,imageSize:n.imageSize};if(Dn(n.defaultBoundaries)?n.boundaries=n.defaultBoundaries(o):n.defaultBoundaries==="fit"?n.boundaries=function(r){var s=r.cropper,a=r.imageSize,d=s.clientHeight,c=s.clientWidth,u=d,f=a.width*d/a.height;return f>c&&(f=c,u=a.height*c/a.width),{width:f,height:u}}(o):n.boundaries=function(r){var s=r.cropper;return{width:s.clientWidth,height:s.clientHeight}}(o),!n.boundaries.width||!n.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")})},resetVisibleArea:function(){var n=this;return this.appliedImageTransforms=ae(ae({},this.defaultImageTransforms),{},{flip:ae({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){n.priority!=="visible-area"&&(n.visibleArea=null,n.resetCoordinates());var e,i,o,r,s,a,d=n.defaultVisibleArea||Ty;n.visibleArea=Dn(d)?d({imageSize:n.imageSize,boundaries:n.boundaries,coordinates:n.priority!=="visible-area"?n.coordinates:null,getAreaRestrictions:n.getAreaRestrictions,stencilSize:n.getStencilSize()}):n.defaultVisibleArea,n.visibleArea=(e={visibleArea:n.visibleArea,boundaries:n.boundaries,getAreaRestrictions:n.getAreaRestrictions},i=e.visibleArea,o=e.boundaries,r=e.getAreaRestrictions,s=G({},i),a=le(o),s.width/s.height!==a&&(s.height=s.width/a),_e(s,r({visibleArea:s,type:"move"}))),n.priority==="visible-area"?n.resetCoordinates():n.coordinates=n.fitCoordinates({visibleArea:n.visibleArea,coordinates:n.coordinates,aspectRatio:n.getAspectRatio(),positionRestrictions:n.positionRestrictions,sizeRestrictions:n.sizeRestrictions}),n.runAutoZoom("resetVisibleArea")}).catch(function(){n.visibleArea=null})},updateVisibleArea:function(){var n=this;return this.updateBoundaries().then(function(){n.visibleArea=n.fitVisibleArea({imageSize:n.imageSize,boundaries:n.boundaries,visibleArea:n.visibleArea,coordinates:n.coordinates,getAreaRestrictions:n.getAreaRestrictions}),n.coordinates=n.fitCoordinates({visibleArea:n.visibleArea,coordinates:n.coordinates,aspectRatio:n.getAspectRatio(),positionRestrictions:n.positionRestrictions,sizeRestrictions:n.sizeRestrictions}),n.runAutoZoom("updateVisibleArea")}).catch(function(){n.visibleArea=null})},onChange:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];n&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var n,e=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(r){if(ja(r))return!1;var s=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(r)||[],d={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},c=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&&c(d)==c(s))}(this.src)){var i=Re(this.crossOrigin)?this.canvas:this.crossOrigin;i===!0&&(i="anonymous"),this.imageAttributes.crossOrigin=i||null}if(this.checkOrientation){var o=(n=this.src,new Promise(function(r){Hy(n).then(function(s){var a=Uy(s);r(s?{source:n,arrayBuffer:s,orientation:a}:{source:n,arrayBuffer:null,orientation:null})}).catch(function(s){console.warn(s),r({source:n,arrayBuffer:null,orientation:null})})}));setTimeout(function(){o.then(e.onParseImage)},this.transitionTime)}else setTimeout(function(){e.onParseImage({source:e.src})},this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var n=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(){n.$emit("ready"),n.onChange(!1)}))},onParseImage:function(n){var e=this,i=n.source,o=n.arrayBuffer,r=n.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,o&&r&&r>1?qa(i)||!ja(i)?(this.imageAttributes.src=URL.createObjectURL(new Blob([o])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(s){for(var a=[],d=new Uint8Array(s);d.length>0;){var c=d.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(c):c.slice())),d=d.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(o):this.imageAttributes.src=i,Dn(this.defaultTransforms)?this.appliedImageTransforms=wr(this.defaultTransforms()):eo(this.defaultTransforms)?this.appliedImageTransforms=wr(this.defaultTransforms):this.appliedImageTransforms=function(s){var a=wr({});if(s)switch(s){case 2:a.flip.horizontal=!0;break;case 3:a.rotate=-180;break;case 4:a.flip.vertical=!0;break;case 5:a.rotate=90,a.flip.vertical=!0;break;case 6:a.rotate=90;break;case 7:a.rotate=90,a.flip.horizontal=!0;break;case 8:a.rotate=-90}return a}(r),this.defaultImageTransforms=ae(ae({},this.appliedImageTransforms),{},{flip:ae({},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(n){var e=this;this.transitionsOptions.enabled||this.awaitRender(function(){e.coordinates=e.moveAlgorithm(ae(ae({},e.getPublicProperties()),{},{positionRestrictions:ro(e.positionRestrictions,e.visibleArea),coordinates:e.coordinates,event:e.normalizeEvent(n)})),e.onChange()})},onResize:function(n){var e=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender(function(){var i=e.sizeRestrictions,o=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(ae(ae({},e.getPublicProperties()),{},{positionRestrictions:ro(e.positionRestrictions,e.visibleArea),sizeRestrictions:{maxWidth:Math.min(i.maxWidth,e.visibleArea.width),maxHeight:Math.min(i.maxHeight,e.visibleArea.height),minWidth:Math.max(i.minWidth,o),minHeight:Math.max(i.minHeight,o)},event:e.normalizeEvent(n)})),e.onChange(),e.ticking=!1})},onManipulateImage:function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var i=e.transitions,o=i!==void 0&&i,r=e.normalize,s=r===void 0||r;o&&this.enableTransitions();var a=Ry(ae(ae({},this.getPublicProperties()),{},{event:s?this.normalizeEvent(n):n,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),d=a.visibleArea,c=a.coordinates;this.visibleArea=d,this.coordinates=c,this.runAutoZoom("manipulateImage"),this.onChange(),o&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.visibleArea,i=n.type,o=i===void 0?"move":i;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:o})},getAspectRatio:function(n){var e,i,o=this.stencilProps,r=o.aspectRatio,s=o.minAspectRatio,a=o.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var d=this.$refs.stencil.aspectRatios();e=d.minimum,i=d.maximum}if(Re(e)&&(e=Re(r)?s:r),Re(i)&&(i=Re(r)?a:r),!n&&(Re(e)||Re(i))){var c=this.getStencilSize(),u=c?le(c):null;Re(e)&&(e=Wa(u)?u:void 0),Re(i)&&(i=Wa(u)?u:void 0)}return{minimum:e,maximum:i}},getStencilSize:function(){if(this.stencilSize)return n={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=n.boundaries,i=n.stencilSize,o=n.aspectRatio,fr(le(r=Dn(i)?i({boundaries:e,aspectRatio:o}):i),o)&&(r=Dt({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:o.minimum,maximum:o.maximum}})),(r.width>e.width||r.height>e.height)&&(r=Dt({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:le(r),maximum:le(r)}})),r;var n,e,i,o,r},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return ae({},Za)},flip:function(n,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.transitions,r=o===void 0||o;if(!this.transitionsActive){r&&this.enableTransitions();var s=ae({},this.imageTransforms.flip),a=vy({flip:{horizontal:n?!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,c=a.coordinates;n&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=d,this.coordinates=c,this.onChange(),r&&this.debouncedDisableTransitions()}},rotate:function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.transitions,o=i===void 0||i;if(!this.transitionsActive){o&&this.enableTransitions();var r=ae({},this.imageSize);this.appliedImageTransforms.rotate+=n;var s=Py({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:r,imageSize:this.imageSize,angle:n,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=s.visibleArea,d=s.coordinates,c=this.processAutoZoom("rotateImage",a,d);a=c.visibleArea,d=c.coordinates,this.visibleArea=a,this.coordinates=d,this.onChange(),o&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},jy={key:0,ref:"canvas",style:{display:"none"}},Wy={key:1,ref:"sourceCanvas",style:{display:"none"}};hl.render=function(n,e,i,o,r,s){return t.openBlock(),t.createBlock("div",{ref:"cropper",class:s.classes.cropper},[t.createVNode("div",{ref:"stretcher",class:s.classes.stretcher},null,2),t.createVNode("div",{class:s.classes.boundaries,style:s.boundariesStyle},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.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:t.withCtx(function(){return[t.createVNode("div",{class:s.classes.background,style:s.boundariesStyle},null,6),t.createVNode("div",{class:s.classes.imageWrapper},[t.createVNode("img",{ref:"image",crossorigin:r.imageAttributes.crossOrigin,src:r.imageAttributes.src,class:s.classes.image,style:s.imageStyle,onMousedown:e[1]||(e[1]=t.withModifiers(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),t.createVNode("div",{class:s.classes.foreground,style:s.boundariesStyle},null,6),t.withDirectives((t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.stencilComponent),t.mergeProps({ref:"stencil",image:s.image,coordinates:r.coordinates,"stencil-coordinates":s.stencilCoordinates,transitions:s.transitionsOptions},i.stencilProps,{onResize:s.onResize,onResizeEnd:s.onResizeEnd,onMove:s.onMove,onMoveEnd:s.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[t.vShow,r.imageLoaded]]),i.canvas?(t.openBlock(),t.createBlock("canvas",jy,null,512)):t.createCommentVNode("",!0),i.canvas?(t.openBlock(),t.createBlock("canvas",Wy,null,512)):t.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const Gy={width:0,height:0,left:0,top:0};class Cr{constructor(){l(this,"id");l(this,"ratio",0);l(this,"src","");l(this,"coordinates",Gy)}setCoordinates(e){this.coordinates=e}getCoordinates(){return this.coordinates}static Create(e,i=0,o){const r=new Cr;return r.src=e,r.ratio=i,r.id=o,r}setRatio(e){this.ratio=e}getRatio(){return this.ratio}setSrc(e){this.src=e}getSrc(){return this.src}}const Qy={class:"cropper-wrapper"},Yy={class:"row justify-end q-mt-md"},Xy=v(t.defineComponent({__name:"ImageCropper",props:{src:{type:String,required:!0},ratio:{type:Number,required:!1,default:1}},emits:["crop","update:ratio"],setup(n,{emit:e}){const i=n,o=e,r=t.ref(i.ratio),s=t.ref(Cr.Create(i.src,i.ratio));s.value.setRatio(r.value);const a=t.ref(),d=t.computed(()=>[{label:"2:3 (формат A4)",value:2/3},{label:"4:3 (для карточек новостей)",value:4/3},{label:"1:1 (для фото сотрудников)",value:1},{label:"3:2",value:3/2},{label:"16:9",value:16/9},{label:"3:4 (вертикальное изображение)",value:3/4},{label:"Задать пропорции вручную",value:0}]),c=()=>{s.value.setRatio(r.value)},u=async()=>{const f=a.value.getResult();f&&f.canvas.toBlob(h=>{var m;o("crop",{blob:h,src:(m=f.canvas)==null?void 0:m.toDataURL()}),o("update:ratio",s.value.coordinates.width/s.value.coordinates.height)})};return(f,h)=>(t.openBlock(),t.createElementBlock("div",Qy,[t.createVNode(Ji,{modelValue:r.value,"onUpdate:modelValue":[h[0]||(h[0]=m=>r.value=m),c],clearable:!1,options:d.value,label:"Задайте пропорции фото","emit-value":"","map-options":"",class:"q-mb-md"},null,8,["modelValue","options"]),t.createVNode(t.unref(hl),{ref_key:"cropperRef",ref:a,src:s.value.src,"stencil-props":{aspectRatio:s.value.ratio},class:"cropper-container",onChange:h[1]||(h[1]=m=>s.value.setCoordinates(m.coordinates))},null,8,["src","stencil-props"]),t.createElementVNode("div",Yy,[t.createVNode(Ke,{flat:"",label:"Сохранить",color:"primary",onClick:u})])]))}}),[["__scopeId","data-v-7ca895df"]]),Zy={class:"column items-center q-my-md"},Jy={class:"uploader-content"},Ky={class:"uploader-icon"},ew={class:"tools-button absolute-full column items-center justify-center"},tw={class:"row q-gutter-sm"},nw=v(t.defineComponent({__name:"PUploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{},height:{default:150},emitCrop:{type:Boolean,default:!1},ratio:{default:1},acceptTypes:{default:"image/*"},maxFileSize:{default:10485760}},emits:["crop","removeFile","update:ratio"],setup(n,{emit:e}){const i=V.ClosePopup,o=n,r=e,s=t.ref(),a=t.ref(`file-uploader-${Math.random().toString(36).substring(2,9)}`),d=t.ref(!1),c=t.ref(),u=t.ref(o.ratio),f=t.ref(""),h=t.computed(()=>({width:`${o.height*u.value}px`,height:`${o.height}px`,maxWidth:"100%"})),m=t.computed(()=>({width:`${o.height*u.value}px`,height:`${o.height}px`})),w=()=>{s.value=void 0,u.value=1,r("update:ratio",1),r("removeFile")},C=x=>{x.blob.src=x.src,o.fileInfo.setFile&&o.fileInfo.setFile(x.blob),o.fileInfo.fileSystemPath&&(s.value=o.fileInfo),d.value=!1,r("crop")},B=x=>{f.value=x.url,d.value=!0},$=x=>{if(x.length===0)return;const M=x[0];M.url=URL.createObjectURL(M),s.value=M,o.fileInfo.setFile&&o.fileInfo.setFile(M),o.withCrop&&B(s.value)};return t.watch(u,x=>{r("update:ratio",x)}),t.watch(()=>[o.fileInfo.description,o.fileInfo.order,o.fileInfo.fileSystemPath],()=>{o.fileInfo.fileSystemPath&&(s.value=o.fileInfo,o.fileInfo.getFileUrl&&(s.value.url=o.fileInfo.getFileUrl()))}),t.onBeforeMount(()=>{o.fileInfo.fileSystemPath&&(s.value=o.fileInfo,o.fileInfo.getFileUrl&&(s.value.url=o.fileInfo.getFileUrl()))}),(x,M)=>(t.openBlock(),t.createElementBlock("div",Zy,[t.unref(s)?(t.openBlock(),t.createElementBlock("div",{key:1,class:"img-container relative-position",style:t.normalizeStyle(t.unref(h))},[t.createVNode(t.unref(V.QImg),{src:t.unref(s).url,ratio:t.unref(u),class:"uploaded-image","spinner-color":"primary"},null,8,["src","ratio"]),t.createElementVNode("div",ew,[t.createElementVNode("div",tw,[t.createVNode(Ke,{round:"",dense:"",color:"white","text-color":"primary",icon:"crop",size:"md",onClick:M[0]||(M[0]=k=>B(t.unref(s)))},{default:t.withCtx(()=>[t.createVNode(ci,null,{default:t.withCtx(()=>[...M[5]||(M[5]=[t.createTextVNode("Изменить обрезку",-1)])]),_:1})]),_:1}),t.createVNode(Ke,{round:"",dense:"",color:"white","text-color":"negative",icon:"delete",size:"md",onClick:w},{default:t.withCtx(()=>[t.createVNode(ci,null,{default:t.withCtx(()=>[...M[6]||(M[6]=[t.createTextVNode("Удалить изображение",-1)])]),_:1})]),_:1})])])],4)):(t.openBlock(),t.createBlock(t.unref(V.QUploader),{key:0,id:t.unref(a),ref_key:"uploader",ref:c,class:"img-uploader",style:t.normalizeStyle(t.unref(m)),flat:"",bordered:"",accept:n.acceptTypes,"max-file-size":n.maxFileSize,"hide-upload-btn":"",onAdded:$,onRemoved:w},{header:t.withCtx(()=>[t.createElementVNode("div",Jy,[t.createVNode(t.unref(V.QUploaderAddTrigger)),t.createElementVNode("div",Ky,[t.createVNode(t.unref(V.QIcon),{name:"add_photo_alternate",size:"48px",color:"primary"})]),M[4]||(M[4]=t.createElementVNode("div",{class:"uploader-text text-primary text-center"},[t.createElementVNode("div",{class:"text-weight-medium"},"Добавить изображение"),t.createElementVNode("div",{class:"text-caption text-grey-6 q-mt-xs"}," Перетащите файл или нажмите для загрузки ")],-1))])]),_:1},8,["id","style","accept","max-file-size"])),t.createVNode(Zi,{modelValue:t.unref(d),"onUpdate:modelValue":M[3]||(M[3]=k=>t.isRef(d)?d.value=k:null),persistent:""},{default:t.withCtx(()=>[t.createVNode(t.unref(V.QCard),{class:"full-height"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.QCardSection),{class:"row items-center q-pb-none"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.QSpace)),t.withDirectives(t.createVNode(Ke,{icon:"close",flat:"",round:"",dense:""},null,512),[[t.unref(i)]])]),_:1}),t.createVNode(t.unref(V.QCardSection),{class:"cropper-section"},{default:t.withCtx(()=>[t.createVNode(Xy,{ratio:t.unref(u),"onUpdate:ratio":M[1]||(M[1]=k=>t.isRef(u)?u.value=k:null),src:t.unref(f),onCrop:C,onClose:M[2]||(M[2]=k=>d.value=!1)},null,8,["ratio","src"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]))}}),[["__scopeId","data-v-8e597e65"]]);function iw(n){n.component("PTabs",ry),n.component("PUploaderFile",hy),n.component("PUploaderImage",nw),n.component("PAuthForm",_a),n.component("PAuthModal",ty),n.component("PNameEdit",iy)}const ow={install:function(n){Cg(n),K0(n),c0(n),iw(n),Q1(n)}};function rw(n,e={}){const{quasarPlugins:i=!0}=e;i&&n.use(V.Quasar,{plugins:{Notify:V.Notify,Dialog:V.Dialog}}),ow.install(n)}class sw extends wi{constructor(){super(...arguments);l(this,"label","Логин");l(this,"name","login");l(this,"validator",new zr);l(this,"method",bn.Login);l(this,"id","field-auth-login")}}const aw=["PF","PFM"],lw=v(t.defineComponent({__name:"ExtractCreateForm",emits:["create"],setup(n,{emit:e}){const i=e,o=ExtractsStore.Item,r=async()=>{await ExtractsStore.Create(),ExtractsStore.AppendToAll([o]),i("create")};return(s,a)=>{const d=t.resolveComponent("PInput"),c=t.resolveComponent("PButton");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(d,{modelValue:t.unref(o).name,"onUpdate:modelValue":a[0]||(a[0]=u=>t.unref(o).name=u)},null,8,["modelValue"]),t.createVNode(c,{text:"Создать",onClick:r})],64)}}}),[["__scopeId","data-v-acdf750a"]]),cw=Object.freeze(Object.defineProperty({__proto__:null,default:v(t.defineComponent({__name:"ExtractsList",setup(n){const e=t.ref(!1),i=t.ref(!1),o=async()=>{i.value=!0},r=async()=>{await Promise.all([o()])},s=()=>{e.value=!e.value};return R.H.Hooks.onBeforeMount(r),(a,d)=>{const c=lw,u=t.resolveComponent("PModal");return t.unref(e)?(t.openBlock(),t.createBlock(u,{key:0,show:t.unref(e)},{default:t.withCtx(()=>[t.createVNode(c,{onCreate:s})]),_:1},8,["show"])):t.createCommentVNode("",!0)}}}),[["__scopeId","data-v-03915680"]])},Symbol.toStringTag,{value:"Module"}));W.AuthButtonLogin=mo,W.AuthButtonRefresh=vr,W.AuthButtonRegister=po,W.AuthButtonRestore=yi,W.AuthChunks=ve,W.AuthFieldsIds=Pt,W.AuthFormSettings=Fr,W.AuthMethods=bn,W.EmailField=bi,W.LoginField=sw,W.PBadge=Ea,W.PButton=Ke,W.PCard=za,W.PCheckBox=Ba,W.PChip=$a,W.PCrudList=Da,W.PDateInput=Na,W.PDialog=Zi,W.PEditDialog=Fa,W.PF=R,W.PFM=Xp,W.PHint=or,W.PInput=Wt,W.POptionsListSingle=Ma,W.POpts=Ia,W.PSelect=Ji,W.PTableToggle=Va,W.PToggle=Ta,W.PasswordField=Si,W.PasswordRepeatField=Dr,W.Schedule=ri,W.ScheduleDay=Yi,W.ScheduleDefaultLabels=nr,W.ScheduleGridEditor=ka,W.SchedulePlace=An,W.ScheduleSession=vn,W.ScheduleSlot=zt,W.ScheduleTimeline=xa,W.installSprof=rw,W.pfName=aw,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});
|