sprof 0.2.9 → 0.2.10
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-CCcvo_02.js → ExtractsList-D3pUjcC5.js} +1 -1
- package/dist/index-D3zBQy-K.js +14955 -0
- package/dist/sprof.js +1 -1
- package/dist/sprof.umd.cjs +14 -23
- package/package.json +1 -1
- package/dist/index-Bwtms4B9.js +0 -19392
package/dist/sprof.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ct,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("quasar"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","quasar","vue-router"],o):(ct=typeof globalThis<"u"?globalThis:ct||self,o(ct.sprof={},ct.Vue,ct.Quasar,ct.VueRouter))})(this,function(ct,o,it,Bc){"use strict";var nb=Object.defineProperty;var ob=(ct,o,it)=>o in ct?nb(ct,o,{enumerable:!0,configurable:!0,writable:!0,value:it}):ct[o]=it;var f=(ct,o,it)=>ob(ct,typeof o!="symbol"?o+"":o,it);var cn,dn,Ee,vo,yt,Oe,wn,ka;var Wn=typeof document<"u"?document.currentScript:null,ne=(e=>(e.Login="login",e.Register="register",e.Restore="restore",e.Refresh="refresh",e))(ne||{}),Mt=(e=>(e.Primary="primary",e.Success="success",e.Warning="warning",e.Error="error",e.Info="info",e))(Mt||{});class Cn{constructor(t,n,i,s){f(this,"text","Сохранить");f(this,"type",Mt.Success);f(this,"condition",!0);f(this,"action");f(this,"id","button");f(this,"disabled",!1);this.text=t,this.type=i,this.action=n,s!==void 0&&(this.condition=s)}static Primary(t,n,i){return new Cn(t,n,Mt.Primary,i)}static Success(t,n,i){return new Cn(t,n,Mt.Success,i)}static Warning(t,n,i){return new Cn(t,n,Mt.Warning,i)}static Error(t,n,i){return new Cn(t,n,Mt.Error,i)}}class Jo extends Cn{constructor(){super();f(this,"id","auth-button");f(this,"chunk",ne.Login);f(this,"text","");f(this,"isSubmit",!1);f(this,"isLink",!0)}GetChunk(){return this.chunk}}let ss=class extends Jo{constructor(){super(...arguments);f(this,"id","auth-button-login");f(this,"text","Войти");f(this,"isSubmit",!1);f(this,"chunk",ne.Login)}};class Fa extends Jo{constructor(){super(...arguments);f(this,"id","auth-button-refresh");f(this,"text","Обновить пароль");f(this,"isSubmit",!1);f(this,"chunk",ne.Refresh)}}class as extends Jo{constructor(){super(...arguments);f(this,"id","auth-button-register");f(this,"text","Зарегистрироваться");f(this,"isSubmit",!1);f(this,"chunk",ne.Register)}}class _o extends Jo{constructor(){super(...arguments);f(this,"id","auth-button-restore");f(this,"text","Забыли пароль?");f(this,"isSubmit",!1);f(this,"chunk",ne.Restore)}}class Va{constructor(){f(this,"value","");f(this,"label","");f(this,"placeholder","");f(this,"validator")}Validate(){return this.validator?(this.validator.errors=[],this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}var en=(e=>(e.Email="field-auth-email",e.Password="field-auth-password",e.PasswordRepeat="field-auth-password-repeat",e))(en||{});class qo extends Va{constructor(){super(...arguments);f(this,"method");f(this,"id","field-auth");f(this,"name","")}get IsPassword(){return this.id===en.Password||this.id===en.PasswordRepeat}}var Xn=(e=>(e.Login="login",e.Email="email",e.Phone="phone",e.VK="vk",e.ESIA="esia",e))(Xn||{});const kc=/\S+@\S+\.\S+/;class za{constructor(){f(this,"errors",[])}validate(t){return(t===""||!t)&&this.errors.push("Введите email"),kc.test(t)||this.errors.push("Некорректный email"),this.errors}}let Nc=class extends qo{constructor(){super(...arguments);f(this,"id",en.Email);f(this,"label","Email");f(this,"name","email");f(this,"placeholder","Введите email");f(this,"validator",new za);f(this,"method",Xn.Email)}};const $o=new Nc;class Dc{constructor(){f(this,"errors",[]);f(this,"length",3)}validate(t){return t===""||!t?(this.errors.push("Введите пароль"),this.errors):(t.length<this.length&&this.errors.push("Пароль должен быть длиннее 3 символов"),this.errors)}}let Fc=class extends qo{constructor(){super(...arguments);f(this,"label","Пароль");f(this,"validator",new Dc);f(this,"name","password");f(this,"placeholder","Введите пароль");f(this,"id",en.Password)}};const ti=new Fc;let Vc=class extends qo{constructor(){super(...arguments);f(this,"label","Повторите пароль");f(this,"id",en.PasswordRepeat)}};const La=new Vc,Ha={allowRestore:!1,[ne.Login]:{methods:[Xn.Email],title:"Вход в систему",action:"login",buttons:[new ss,new as,new _o],fields:[$o,ti],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[ne.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new as,new ss,new _o],fields:[$o,ti,La],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[ne.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[new _o],fields:[$o]},[ne.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[new Fa],fields:[ti]}};class zc{constructor(){f(this,"block",!1);f(this,"settings",Ha);f(this,"chunk",ne.Login);f(this,"selectedMethod",Xn.Email)}async Block(t){this.block=!0,await t(),this.block=!1}get IsBlock(){return this.block}GetValues(){const t=this.GetFields(),n=new Map;return t.forEach(i=>{i.value&&n.set(i.name,i.value)}),Object.fromEntries(n)}Validate(){if(this.IsRegister){const t=this.GetField(en.Password),n=this.GetField(en.PasswordRepeat);if((t==null?void 0:t.value)!==(n==null?void 0:n.value))return["Пароли не совпадают"]}return this.GetFields().map(t=>t.Validate()).flat()}GetFields(){return this.GetCurSet().fields.filter(t=>!t.method||t.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===ne.Login}get IsRegister(){return this.chunk===ne.Register}get IsRestore(){return this.chunk===ne.Restore}get IsRefresh(){return this.chunk===ne.Refresh}SetChunk(t){this.chunk=t}GetTitle(){return this.GetCurSet().title}GetButtons(){const t=this.GetCurSet().buttons;return t.forEach(n=>{n.isSubmit=!1}),t[0].isSubmit=!0,t}GetSuccessMessage(){return this.GetCurSet().successMessage}GetErrorMessage(){return this.GetCurSet().errorMessage}GetAction(){return this.GetCurSet().action}ResetFields(){this.GetCurSet().fields.forEach(t=>t.Reset())}Reset(){this.SetChunk(ne.Login),this.ResetFields()}GetField(t){return this.GetFields().find(n=>n.id===t)}}class Lc{constructor(){f(this,"visible",!1);f(this,"closable",!1)}get Closable(){return this.closable}get Visible(){return this.visible}Close(){this.visible=!1}Open(t){t&&(this.closable=!0),this.visible=!0}}class Yn{constructor(){f(this,"type",Mt.Success);f(this,"text","");f(this,"title","")}static ToQuasarColor(t){switch(t){case Mt.Success:return"positive";case Mt.Warning:return"warning";case Mt.Error:return"negative";case Mt.Info:return"info";default:return"primary"}}static ContainsHtml(t){return/<[a-z][\s\S]*>/i.test(t)}showMessage(t,n){this.type=n,typeof t=="string"?(this.text=t,this.title=""):(this.text=t.text,this.title=t.title??"")}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}GetQuasarColor(){return Yn.ToQuasarColor(this.type)}Info(t){this.showMessage(t,Mt.Info)}Success(t){this.showMessage(t,Mt.Success)}Error(t){this.showMessage(t,Mt.Error)}Warning(t){this.showMessage(t,Mt.Warning)}FormMessage(t){let n="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const i of Object.keys(t))t[i][0]&&t[i][0].message&&(n+=`<li>${t[i][0].message}</li>`);return n+="</ul>",n}}class rs{static Get(t,n,i="-"){return!t||!n?"":`${t}${i}${n}`}static In(t,n,i){return t>=n&&t<=i}static Intersects(t,n,i,s){return t===i||n===s||t>i&&t<s||n>i&&n<s||n>s&&t<i}}const Ua=1e3,ja=60*Ua,ls=60*ja;var yo=(e=>(e.FiveMinutes="5",e.HourQuarter="15",e.HourHalf="30",e.Hour="60",e))(yo||{});const ei={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class vt{static S(t){return Ua*t}static M(t){return ja*t}static H(t){return ls*t}static D(t){return ls*t}static W(t){return ls*t}static NormalizeTime(t){return String(t).padStart(2,"0")}static HMtoM(t){const n=vt.SplitHM(t);return n.length>1?vt.HtoM(n[0])+n[1]:vt.HtoM(n[0])}static HtoM(t){return Number(t)*60}static SplitHM(t){if(!t)return[];const n=t.split(":");return[Number(n[0]),Number(n[1])]}static HmsToHm(t){const n=vt.SplitHM(t);return vt.ConcatHM(n[0],n[1])}static AddMtoHM(t,n){const i=new Date,s=vt.SplitHM(t);i.setHours(s[0],s[1],0,0);const r=new Date(i.getTime()+n*6e4),a=r.getHours(),c=r.getMinutes();return vt.ConcatHM(a,c)}static ConcatHM(t,n){return`${t}:${vt.NormalizeTime(n)}`}static DiffM(t,n){return vt.Gt(n,t)?vt.HMtoM(n)-vt.HMtoM(t):vt.HMtoM(t)-vt.HMtoM(n)}static GetPeriod(t,n){return rs.Get(t,n)}static Gt(t,n){return vt.HMtoM(t)>vt.HMtoM(n)}static GtOrEq(t,n){return vt.Gt(t,n)||vt.Eq(t,n)}static Eq(t,n){return vt.HMtoM(t)===vt.HMtoM(n)}static PeriodInPeriod(t,n,i,s){return vt.HMtoM(t)>=vt.HMtoM(i)&&vt.HMtoM(n)<=vt.HMtoM(s)}static PeriodsIntersects(t,n,i,s){return rs.Intersects(vt.HMtoM(t),vt.HMtoM(n),vt.HMtoM(i),vt.HMtoM(s))}}const Hc="top";class Uc extends Yn{constructor(){super(...arguments);f(this,"duration",vt.S(3))}showMessage(n,i){if(super.showMessage(n,i),typeof it.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 s=typeof n=="string"?{}:n;it.Notify.create({message:this.text,caption:this.title||void 0,color:this.GetQuasarColor(),timeout:s.duration??this.duration,html:Yn.ContainsHtml(this.text),position:Hc})}GetDuration(){return this.duration}Dev(){this.showMessage("В режиме разработки",Mt.Warning)}Save(){this.showMessage("Изменения успешно сохранены",Mt.Success)}}const Xe=new Uc;class Ye{static Get(t){const n=localStorage.getItem(t);if(n)return JSON.parse(n)}static Set(t,n){n&&localStorage.setItem(t,JSON.stringify(n))}static Remove(t){localStorage.removeItem(t)}}var Te=(e=>(e.User="user",e.AccessToken="accessToken",e.RefreshToken="refreshToken",e))(Te||{});class jc{set(t){this.setAccessToken(t.accessToken),this.setRefreshToken(t.refreshToken)}getAccessToken(){return Ye.Get(Te.AccessToken)}getRefreshToken(){return Ye.Get(Te.RefreshToken)}setAccessToken(t){Ye.Set(Te.AccessToken,t)}setRefreshToken(t){Ye.Set(Te.RefreshToken,t)}reset(){Ye.Remove(Te.AccessToken),Ye.Remove(Te.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class Gc{constructor(){f(this,"user");f(this,"userConstructor")}AssignTo(t){t.user=this.get()}setUserConstructor(t){this.userConstructor=t}get(){if(!this.userConstructor){console.warn("No userConstructor was set");return}return this.user}set(t){this.userConstructor&&(this.user=new this.userConstructor(t),Ye.Set(Te.User,this.user))}reset(){this.user=void 0,Ye.Remove(Te.User)}actualize(){const t=Ye.Get(Te.User);t&&this.set(t)}}class Wc{constructor(){f(this,"isAuth",!1);f(this,"user",new Gc);f(this,"tokens",new jc);f(this,"preventLogout",!1)}DeprecateLogout(){this.preventLogout=!0}AllowLogout(){this.preventLogout=!1}get IsAuth(){return this.isAuth}get User(){return this.user.get()}SetUserConstructor(t){this.user.setUserConstructor(t)}SetUser(t){this.user.set(t)}SetState(t){this.SetUser(t.user),this.tokens.set(t.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){Xe.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 Xc=(cn=class{constructor(){f(this,"form",o.reactive(new zc));f(this,"status",o.reactive(new Wc));f(this,"modal",o.reactive(new Lc));if(cn.instance)return cn.instance;cn.instance=this,Object.freeze(this)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}},f(cn,"instance"),cn);const oe=new Xc;var cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Kc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),n}/*! *****************************************************************************
|
|
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:{};/*! *****************************************************************************
|
|
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,29 +11,20 @@
|
|
|
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 Ga;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof cs=="object"?cs:typeof self=="object"?self:typeof this=="object"?this:c(),i=s(e);typeof n.Reflect<"u"&&(i=s(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function s(l,d){return function(u,h){Object.defineProperty(l,u,{configurable:!0,writable:!0,value:h}),d&&d(u,h)}}function r(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return r()||a()}})(function(t,n){var i=Object.prototype.hasOwnProperty,s=typeof Symbol=="function",r=s&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=s&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",l={__proto__:[]}instanceof Array,d=!c&&!l,u={create:c?function(){return M(Object.create(null))}:l?function(){return M({__proto__:null})}:function(){return M({})},has:d?function(y,w){return i.call(y,w)}:function(y,w){return w in y},get:d?function(y,w){return i.call(y,w)?y[w]:void 0}:function(y,w){return y[w]}},h=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:jn(),p=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Gn(),g=typeof WeakMap=="function"?WeakMap:O(),v=s?Symbol.for("@reflect-metadata:registry"):void 0,b=Ln(),S=Hn(b);function C(y,w,P,B){if(K(P)){if(!Ae(y))throw new TypeError;if(!zt(w))throw new TypeError;return st(y,w)}else{if(!Ae(y))throw new TypeError;if(!ft(w))throw new TypeError;if(!ft(B)&&!K(B)&&!Ct(B))throw new TypeError;return Ct(B)&&(B=void 0),P=Zt(P),L(y,w,P,B)}}t("decorate",C);function x(y,w){function P(B,V){if(!ft(B))throw new TypeError;if(!K(V)&&!Lt(V))throw new TypeError;bt(y,w,B,V)}return P}t("metadata",x);function I(y,w,P,B){if(!ft(P))throw new TypeError;return K(B)||(B=Zt(B)),bt(y,w,P,B)}t("defineMetadata",I);function R(y,w,P){if(!ft(w))throw new TypeError;return K(P)||(P=Zt(P)),z(y,w,P)}t("hasMetadata",R);function A(y,w,P){if(!ft(w))throw new TypeError;return K(P)||(P=Zt(P)),ot(y,w,P)}t("hasOwnMetadata",A);function Y(y,w,P){if(!ft(w))throw new TypeError;return K(P)||(P=Zt(P)),X(y,w,P)}t("getMetadata",Y);function _(y,w,P){if(!ft(w))throw new TypeError;return K(P)||(P=Zt(P)),$(y,w,P)}t("getOwnMetadata",_);function N(y,w){if(!ft(y))throw new TypeError;return K(w)||(w=Zt(w)),It(y,w)}t("getMetadataKeys",N);function H(y,w){if(!ft(y))throw new TypeError;return K(w)||(w=Zt(w)),Pt(y,w)}t("getOwnMetadataKeys",H);function Q(y,w,P){if(!ft(w))throw new TypeError;if(K(P)||(P=Zt(P)),!ft(w))throw new TypeError;K(P)||(P=Zt(P));var B=We(w,P,!1);return K(B)?!1:B.OrdinaryDeleteMetadata(y,w,P)}t("deleteMetadata",Q);function st(y,w){for(var P=y.length-1;P>=0;--P){var B=y[P],V=B(w);if(!K(V)&&!Ct(V)){if(!zt(V))throw new TypeError;w=V}}return w}function L(y,w,P,B){for(var V=y.length-1;V>=0;--V){var rt=y[V],mt=rt(w,P,B);if(!K(mt)&&!Ct(mt)){if(!ft(mt))throw new TypeError;B=mt}}return B}function z(y,w,P){var B=ot(y,w,P);if(B)return!0;var V=Ie(w);return Ct(V)?!1:z(y,V,P)}function ot(y,w,P){var B=We(w,P,!1);return K(B)?!1:Kt(B.OrdinaryHasOwnMetadata(y,w,P))}function X(y,w,P){var B=ot(y,w,P);if(B)return $(y,w,P);var V=Ie(w);if(!Ct(V))return X(y,V,P)}function $(y,w,P){var B=We(w,P,!1);if(!K(B))return B.OrdinaryGetOwnMetadata(y,w,P)}function bt(y,w,P,B){var V=We(P,B,!0);V.OrdinaryDefineOwnMetadata(y,w,P,B)}function It(y,w){var P=Pt(y,w),B=Ie(y);if(B===null)return P;var V=It(B,w);if(V.length<=0)return P;if(P.length<=0)return V;for(var rt=new p,mt=[],j=0,T=P;j<T.length;j++){var k=T[j],D=rt.has(k);D||(rt.add(k),mt.push(k))}for(var F=0,at=V;F<at.length;F++){var k=at[F],D=rt.has(k);D||(rt.add(k),mt.push(k))}return mt}function Pt(y,w){var P=We(y,w,!1);return P?P.OrdinaryOwnMetadataKeys(y,w):[]}function ut(y){if(y===null)return 1;switch(typeof y){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return y===null?1:6;default:return 6}}function K(y){return y===void 0}function Ct(y){return y===null}function kt(y){return typeof y=="symbol"}function ft(y){return typeof y=="object"?y!==null:typeof y=="function"}function tt(y,w){switch(ut(y)){case 0:return y;case 1:return y;case 2:return y;case 3:return y;case 4:return y;case 5:return y}var P="string",B=et(y,r);if(B!==void 0){var V=B.call(y,P);if(ft(V))throw new TypeError;return V}return gt(y)}function gt(y,w){var P,B;{var V=y.toString;if(Vt(V)){var B=V.call(y);if(!ft(B))return B}var P=y.valueOf;if(Vt(P)){var B=P.call(y);if(!ft(B))return B}}throw new TypeError}function Kt(y){return!!y}function _t(y){return""+y}function Zt(y){var w=tt(y);return kt(w)?w:_t(w)}function Ae(y){return Array.isArray?Array.isArray(y):y instanceof Object?y instanceof Array:Object.prototype.toString.call(y)==="[object Array]"}function Vt(y){return typeof y=="function"}function zt(y){return typeof y=="function"}function Lt(y){switch(ut(y)){case 3:return!0;case 4:return!0;default:return!1}}function Qt(y,w){return y===w||y!==y&&w!==w}function et(y,w){var P=y[w];if(P!=null){if(!Vt(P))throw new TypeError;return P}}function At(y){var w=et(y,a);if(!Vt(w))throw new TypeError;var P=w.call(y);if(!ft(P))throw new TypeError;return P}function ge(y){return y.value}function xe(y){var w=y.next();return w.done?!1:w}function de(y){var w=y.return;w&&w.call(y)}function Ie(y){var w=Object.getPrototypeOf(y);if(typeof y!="function"||y===h||w!==h)return w;var P=y.prototype,B=P&&Object.getPrototypeOf(P);if(B==null||B===Object.prototype)return w;var V=B.constructor;return typeof V!="function"||V===y?w:V}function Pe(){var y;!K(v)&&typeof n.Reflect<"u"&&!(v in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(y=Un(n.Reflect));var w,P,B,V=new g,rt={registerProvider:mt,getProvider:T,setProvider:D};return rt;function mt(F){if(!Object.isExtensible(rt))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case y===F:break;case K(w):w=F;break;case w===F:break;case K(P):P=F;break;case P===F:break;default:B===void 0&&(B=new p),B.add(F);break}}function j(F,at){if(!K(w)){if(w.isProviderFor(F,at))return w;if(!K(P)){if(P.isProviderFor(F,at))return w;if(!K(B))for(var Rt=At(B);;){var Ht=xe(Rt);if(!Ht)return;var ve=ge(Ht);if(ve.isProviderFor(F,at))return de(Rt),ve}}}if(!K(y)&&y.isProviderFor(F,at))return y}function T(F,at){var Rt=V.get(F),Ht;return K(Rt)||(Ht=Rt.get(at)),K(Ht)&&(Ht=j(F,at),K(Ht)||(K(Rt)&&(Rt=new m,V.set(F,Rt)),Rt.set(at,Ht))),Ht}function k(F){if(K(F))throw new TypeError;return w===F||P===F||!K(B)&&B.has(F)}function D(F,at,Rt){if(!k(Rt))throw new Error("Metadata provider not registered.");var Ht=T(F,at);if(Ht!==Rt){if(!K(Ht))return!1;var ve=V.get(F);K(ve)&&(ve=new m,V.set(F,ve)),ve.set(at,Rt)}return!0}}function Ln(){var y;return!K(v)&&ft(n.Reflect)&&Object.isExtensible(n.Reflect)&&(y=n.Reflect[v]),K(y)&&(y=Pe()),!K(v)&&ft(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:y}),y}function Hn(y){var w=new g,P={isProviderFor:function(k,D){var F=w.get(k);return K(F)?!1:F.has(D)},OrdinaryDefineOwnMetadata:mt,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:rt,OrdinaryOwnMetadataKeys:j,OrdinaryDeleteMetadata:T};return b.registerProvider(P),P;function B(k,D,F){var at=w.get(k),Rt=!1;if(K(at)){if(!F)return;at=new m,w.set(k,at),Rt=!0}var Ht=at.get(D);if(K(Ht)){if(!F)return;if(Ht=new m,at.set(D,Ht),!y.setProvider(k,D,P))throw at.delete(D),Rt&&w.delete(k),new Error("Wrong provider for target.")}return Ht}function V(k,D,F){var at=B(D,F,!1);return K(at)?!1:Kt(at.has(k))}function rt(k,D,F){var at=B(D,F,!1);if(!K(at))return at.get(k)}function mt(k,D,F,at){var Rt=B(F,at,!0);Rt.set(k,D)}function j(k,D){var F=[],at=B(k,D,!1);if(K(at))return F;for(var Rt=at.keys(),Ht=At(Rt),ve=0;;){var Ec=xe(Ht);if(!Ec)return F.length=ve,F;var tb=ge(Ec);try{F[ve]=tb}catch(eb){try{de(Ht)}finally{throw eb}}ve++}}function T(k,D,F){var at=B(D,F,!1);if(K(at)||!at.delete(k))return!1;if(at.size===0){var Rt=w.get(D);K(Rt)||(Rt.delete(F),Rt.size===0&&w.delete(Rt))}return!0}}function Un(y){var w=y.defineMetadata,P=y.hasOwnMetadata,B=y.getOwnMetadata,V=y.getOwnMetadataKeys,rt=y.deleteMetadata,mt=new g,j={isProviderFor:function(T,k){var D=mt.get(T);return!K(D)&&D.has(k)?!0:V(T,k).length?(K(D)&&(D=new p,mt.set(T,D)),D.add(k),!0):!1},OrdinaryDefineOwnMetadata:w,OrdinaryHasOwnMetadata:P,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:V,OrdinaryDeleteMetadata:rt};return j}function We(y,w,P){var B=b.getProvider(y,w);if(!K(B))return B;if(P){if(b.setProvider(y,w,S))return S;throw new Error("Illegal state.")}}function jn(){var y={},w=[],P=function(){function j(T,k,D){this._index=0,this._keys=T,this._values=k,this._selector=D}return j.prototype["@@iterator"]=function(){return this},j.prototype[a]=function(){return this},j.prototype.next=function(){var T=this._index;if(T>=0&&T<this._keys.length){var k=this._selector(this._keys[T],this._values[T]);return T+1>=this._keys.length?(this._index=-1,this._keys=w,this._values=w):this._index++,{value:k,done:!1}}return{value:void 0,done:!0}},j.prototype.throw=function(T){throw this._index>=0&&(this._index=-1,this._keys=w,this._values=w),T},j.prototype.return=function(T){return this._index>=0&&(this._index=-1,this._keys=w,this._values=w),{value:T,done:!0}},j}(),B=function(){function j(){this._keys=[],this._values=[],this._cacheKey=y,this._cacheIndex=-2}return Object.defineProperty(j.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),j.prototype.has=function(T){return this._find(T,!1)>=0},j.prototype.get=function(T){var k=this._find(T,!1);return k>=0?this._values[k]:void 0},j.prototype.set=function(T,k){var D=this._find(T,!0);return this._values[D]=k,this},j.prototype.delete=function(T){var k=this._find(T,!1);if(k>=0){for(var D=this._keys.length,F=k+1;F<D;F++)this._keys[F-1]=this._keys[F],this._values[F-1]=this._values[F];return this._keys.length--,this._values.length--,Qt(T,this._cacheKey)&&(this._cacheKey=y,this._cacheIndex=-2),!0}return!1},j.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=y,this._cacheIndex=-2},j.prototype.keys=function(){return new P(this._keys,this._values,V)},j.prototype.values=function(){return new P(this._keys,this._values,rt)},j.prototype.entries=function(){return new P(this._keys,this._values,mt)},j.prototype["@@iterator"]=function(){return this.entries()},j.prototype[a]=function(){return this.entries()},j.prototype._find=function(T,k){if(!Qt(this._cacheKey,T)){this._cacheIndex=-1;for(var D=0;D<this._keys.length;D++)if(Qt(this._keys[D],T)){this._cacheIndex=D;break}}return this._cacheIndex<0&&k&&(this._cacheIndex=this._keys.length,this._keys.push(T),this._values.push(void 0)),this._cacheIndex},j}();return B;function V(j,T){return j}function rt(j,T){return T}function mt(j,T){return[j,T]}}function Gn(){var y=function(){function w(){this._map=new m}return Object.defineProperty(w.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),w.prototype.has=function(P){return this._map.has(P)},w.prototype.add=function(P){return this._map.set(P,P),this},w.prototype.delete=function(P){return this._map.delete(P)},w.prototype.clear=function(){this._map.clear()},w.prototype.keys=function(){return this._map.keys()},w.prototype.values=function(){return this._map.keys()},w.prototype.entries=function(){return this._map.entries()},w.prototype["@@iterator"]=function(){return this.keys()},w.prototype[a]=function(){return this.keys()},w}();return y}function O(){var y=16,w=u.create(),P=B();return function(){function T(){this._key=B()}return T.prototype.has=function(k){var D=V(k,!1);return D!==void 0?u.has(D,this._key):!1},T.prototype.get=function(k){var D=V(k,!1);return D!==void 0?u.get(D,this._key):void 0},T.prototype.set=function(k,D){var F=V(k,!0);return F[this._key]=D,this},T.prototype.delete=function(k){var D=V(k,!1);return D!==void 0?delete D[this._key]:!1},T.prototype.clear=function(){this._key=B()},T}();function B(){var T;do T="@@WeakMap@@"+j();while(u.has(w,T));return w[T]=!0,T}function V(T,k){if(!i.call(T,P)){if(!k)return;Object.defineProperty(T,P,{value:u.create()})}return T[P]}function rt(T,k){for(var D=0;D<k;++D)T[D]=Math.random()*255|0;return T}function mt(T){if(typeof Uint8Array=="function"){var k=new Uint8Array(T);return typeof crypto<"u"?crypto.getRandomValues(k):typeof msCrypto<"u"?msCrypto.getRandomValues(k):rt(k,T),k}return rt(new Array(T),T)}function j(){var T=mt(y);T[6]=T[6]&79|64,T[8]=T[8]&191|128;for(var k="",D=0;D<y;++D){var F=T[D];(D===4||D===6||D===8)&&(k+="-"),F<16&&(k+="0"),k+=F.toString(16).toLowerCase()}return k}}function M(y){return y.__=void 0,delete y.__,y}})})(Ga||(Ga={}));const ie=[];for(let e=0;e<256;++e)ie.push((e+256).toString(16).slice(1));function Zc(e,t=0){return(ie[e[t+0]]+ie[e[t+1]]+ie[e[t+2]]+ie[e[t+3]]+"-"+ie[e[t+4]]+ie[e[t+5]]+"-"+ie[e[t+6]]+ie[e[t+7]]+"-"+ie[e[t+8]]+ie[e[t+9]]+"-"+ie[e[t+10]]+ie[e[t+11]]+ie[e[t+12]]+ie[e[t+13]]+ie[e[t+14]]+ie[e[t+15]]).toLowerCase()}const Qc=new Uint8Array(16);function Jc(){return crypto.getRandomValues(Qc)}function un(e,t,n){return crypto.randomUUID?crypto.randomUUID():_c(e)}function _c(e,t,n){var s;e=e||{};const i=e.random??((s=e.rng)==null?void 0:s.call(e))??Jc();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Zc(i)}class $t{static UUID(){return un()}static GUID(){const t=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}function qc(e){var t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var i=0;i<e.length;i++){var s=e[i];if(typeof s!="string")throw new TypeError("Url must be a string. Received "+s);s!==""&&(i>0&&(s=s.replace(/^[\/]+/,"")),i<e.length-1?s=s.replace(/[\/]+$/,""):s=s.replace(/[\/]+$/,"/"),t.push(s))}var r=t.join("/");r=r.replace(/\/(\?|&|#[^!])/g,"$1");var a=r.split("?");return r=a.shift()+(a.length>0?"?":"")+a.join("&"),r}function ds(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),qc(e)}class wt{static Capitalize(t){return t?t[0].toUpperCase()+t.slice(1):""}static BuildSafeUrl(t,n,i){try{const s=new URL(t);return n&&(s.port=n.toString()),ds(s.toString(),i)}catch{throw new Error(`Invalid host URL: ${t}`)}}static ToCamelCase(t){const n=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return t.match(n).map((s,r)=>r===0?s.toLowerCase():wt.Capitalize(s.toLowerCase())).join("")}static ToKebabCase(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(t,n,i){return t.substring(t.indexOf(n)+2,t.lastIndexOf(i))}static Translit(t,n){const i={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return n&&/[а-яА-Я]/g.test(t)?t.replace(/[А-я/,.;'\][]/g,s=>{if(s===s.toLowerCase()){const a=Object.keys(i).find(c=>i[c]===s);return a||""}const r=Object.keys(i).find(a=>i[a]===s.toLowerCase());return r?r.toUpperCase():""}):t.replace(/[A-z/,.;'\][]/g,s=>s===s.toLowerCase()?i[s]:i[s.toLowerCase()].toUpperCase())}static RemoveEmoji(t){const n=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return t.replace(n,"")}static CanBeTranslited(t){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(t)}static StringsEquals(t,n){const i=t.toLowerCase().replaceAll(/\s/g,""),s=n.toLowerCase().replaceAll(/\s/g,""),r=wt.Translit(i),a=wt.Translit(s);return i.includes(s)||r.includes(s)||i.includes(a)}static SearchIn(t,n){return wt.StringsEquals(t,n)}static SearchInFields(t,n){let i=!1;for(let s=0;s<n.length;s++)if(wt.SearchIn(n[s],t)){i=!0;break}return i}static FormatToPercentage(t){return`${t}%`}static ApplyClassToSubStr(t,n,i){const s=i??"highlight-text",r=new RegExp(wt.GetVariants(n).join("|"),"gi");return t.replace(r,`<span class="${s}">$&</span>`)}static GetVariants(t){const n=wt.Translit(t);return[t,wt.Capitalize(t),t.toLowerCase(),t.toUpperCase(),n,wt.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(t){return/\d/.test(t)}static JoinSnake(...t){return t.join("_")}static GetDynamicCountName(t,n){const i=[2,0,1,1,1,2];return t.length+" "+n[t.length%100>4&&t.length%100<20?2:i[t.length%10<5?t.length%10:5]]}static TrimText(t){return typeof t=="string"?t.trim():t}}const Sn=class Sn{static BuildClass(t,n){n&&Object.keys(n).forEach(i=>{const s=n[i];if(this.isPrimitive(s))t[i]instanceof Date?t[i]=new Date(s):t[i]=s;else if(s!=null&&!Array.isArray(s))if(t[i]&&t[i].constructor)t[i]=new t[i].constructor(s);else{const r=Reflect.getMetadata(i,t);r&&(t[i]=new r[i](s))}if(Array.isArray(s)){if(s.length===0)return;const r=Reflect.getMetadata(i,t);s.length!==0&&!r&&(t[i]=s),r&&(t[i]=s.map(a=>new r[i](a)))}})}static isPrimitive(t){return t!==null&&typeof t<"u"&&t!==Object(t)}static RemoveFromClassByIndex(t,n,i){Sn.RemoveFromClass(t,n,i)}static RemoveFromClassById(t,n,i){if(!t)return;const s=n.findIndex(r=>r.id===t);Sn.RemoveFromClass(s,n,i)}static RemoveFromClass(t,n,i){if(t<0)return;const s=n[t].id;s&&i&&i.push(s),n.splice(t,1)}static GetPropertyName(t){const n=new t;return new Proxy(n,{get(i,s){return s}})}static InitClassInstance(t,n){const i=t.constructor(n);return Sn.BuildClass(i),i.id=$t.UUID(),i}static ExistsWithId(t,n){return t.some(i=>i.id===n)}static DeepMap(t){return n=>Array.isArray(n)?n.map(Sn.DeepMap(t)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([i,s])=>[i,Sn.DeepMap(t)(s)])):t(n)}static DeepTrim(t){return this.DeepMap(wt.TrimText)(t)}};f(Sn,"GetClassConstructor",t=>(n,i)=>{const s=Reflect.getMetadata(`property:${i}`,n)||{};s[i]=t,Reflect.defineMetadata(i,s,n)});let J=Sn;class En{constructor(t){f(this,"id");f(this,"address");f(this,"description");f(this,"contactId");J.BuildClass(this,t)}static Create(){const t=new En;return t.id=$t.UUID(),t}}class us{static Setup(t="http://localhost",n="9000",i="api"){this.staticUrl=wt.BuildSafeUrl(t,n,i),this.staticUrl=ds(this.staticUrl,"static")}static get StaticUrl(){return this.staticUrl}}f(us,"staticUrl","");class se{constructor(t){f(this,"name","");f(this,"url","");f(this,"src","");f(this,"raw");f(this,"blob");f(this,"file");f(this,"type","");f(this,"id");f(this,"originalName","");f(this,"fileSystemPath","");f(this,"itemId");f(this,"itemOneId");f(this,"description","");f(this,"order",0);J.BuildClass(this,t)}getFileUrl(){const t=this.url?this.url:`${us.StaticUrl}/${this.fileSystemPath}`;return new URL(t,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(t,n){const i=new se;return i.id=n??$t.UUID(),i.originalName=t.name,i.file=t.blob,i.fileSystemPath=$t.UUID(),i}setFile(t){this.id||(this.id=$t.UUID()),this.originalName=t.name,this.file=t,this.fileSystemPath=$t.UUID(),this.url=t.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(t,n){if(t.target){let i="";return n&&(i=`@/assets/img/${n}`),new URL(i,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(t){const n=t.split(".");return n[n.length-1]}}class Wa{constructor(t){f(this,"id");f(this,"name","");f(this,"surname","");f(this,"patronymic","");f(this,"isMale",!0);f(this,"dateBirth",new Date);f(this,"contactId");f(this,"slug","");f(this,"postIndex","");f(this,"address","");f(this,"editNameMode",!1);J.BuildClass(this,t)}setEditNameMode(t){this.editNameMode=t}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(t){return t?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=wt.Capitalize(this.name),this.surname=wt.Capitalize(this.surname),this.patronymic=wt.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(t){this.surname=t.surname,this.name=t.name,this.patronymic=t.patronymic}}class xn{constructor(t){f(this,"id");f(this,"number");f(this,"description");f(this,"contactId");J.BuildClass(this,t)}static Create(){const t=new xn;return t.id=$t.UUID(),t}}class ni{constructor(t){f(this,"id");f(this,"address");f(this,"description");J.BuildClass(this,t)}}class oi{constructor(t){f(this,"id");f(this,"login","");f(this,"email","");f(this,"password","");J.BuildClass(this,t)}static Create(){const t=new oi;return t.id=$t.UUID(),t}}class fs{constructor(t){f(this,"id");f(this,"address");f(this,"description");J.BuildClass(this,t)}}let $c=(dn=class{},f(dn,"Phone",xn),f(dn,"FileInfo",se),f(dn,"Website",fs),f(dn,"Email",En),f(dn,"Human",Wa),f(dn,"PostAddress",ni),f(dn,"UserAccount",oi),dn);var Ut=(e=>(e.Eq="=",e.Ne="!=",e.Gt=">",e.Lt="<",e.Btw="between",e.In="in",e.Like="like",e.Null="is null",e.NotNull="is not null",e))(Ut||{});class ii{constructor(t){f(this,"field","");f(this,"operator",Ut.Eq);f(this,"value","");J.BuildClass(this,t)}setValue(t){this.value=t}static Create(t,n){return new ii({operator:n,field:t})}eq(t){return this.field===t.field&&this.operator===t.operator}isUnary(){return this.operator===Ut.Eq||this.operator===Ut.Gt||this.operator===Ut.Lt}isBetween(){return this.operator===Ut.Btw}isSet(){return this.operator===Ut.In}}class hs{constructor(t){f(this,"model","");f(this,"field","");f(this,"value","");f(this,"wheres",[]);J.BuildClass(this,t)}static Create(t){const n=new hs;return n.model=t.GetClassName(),n}eq(t){return t.model===this.model&&t.field===this.field}addWhere(t,n){const i=this.findWhere({field:t,operator:n});if(i)return i;const s=ii.Create(t,n);return this.wheres.push(s),s}findWhere(t){return this.wheres.find(n=>n.eq(t))}}let Xa=class xc{constructor(t){f(this,"id");f(this,"model","");f(this,"wheres",[]);f(this,"joins",[]);J.BuildClass(this,t)}static Create(t){const n=new xc;return n.model=t.GetClassName(),n}addWhere(t,n){const i=this.findWhere({field:t,operator:n});if(i)return i;const s=ii.Create(t,n);return this.wheres.push(s),s}removeWhere(t){const n=this.wheres.findIndex(i=>i.eq(t));n>-1&&this.wheres.splice(n,1)}addJoin(t){const n=this.findJoin({model:t.GetClassName()});if(n)return n;const i=hs.Create(t);return this.joins.push(i),i}findJoin(t){return this.joins.find(n=>n.eq(t))}findWhere(t){return this.wheres.find(n=>n.eq(t))}toRef(){return o.ref(this)}};class nn{static Shuffle(t){for(let n=t.length-1;n>0;n--){const i=Math.floor(Math.random()*(n+1));[t[n],t[i]]=[t[i],t[n]]}}static GenerateNumsRange(t,n,i=1){return Array.from({length:(n-t)/i+1},(s,r)=>t+r*i)}static GetLast(t){return t[t.length-1]}static GetFirst(t){return t[0]}static GetRandEL(t){return t[Math.floor(Math.random()*t.length)]}static Sort(t){t.forEach((n,i)=>n.order=i)}static Refill(t,n){t.splice(0,t.length),t.push(...n)}static Eq(t,n){return t.length===n.length&&(t==null?void 0:t.every((i,s)=>t[s]==n[s]))}static SwipeById(t,n,i){const s=t.findIndex(a=>n.id===a.id),r=t.findIndex(a=>i.id===a.id);s||r||([t[s],t[r]]=[t[r],t[s]])}static Swap(t,n,i){if(n<0||n>=t.length||i<0||i>=t.length)return;const s=t[n];t[n]=t[i],t[i]=s}static MoveUp(t,n){t[n].order=n-1,t[n-1]&&(t[n-1].order=n),[t[n],t[n-1]]=[t[n-1],t[n]]}static MoveDown(t,n){t[n].order=n+1,t[n+1]&&(t[n+1].order=n),[t[n],t[n+1]]=[t[n+1],t[n]]}}var te=(e=>(e.Date="date",e.String="string",e.Boolean="boolean",e.Number="number",e.Set="set",e.Join="join",e.ArrayString="arrayString",e.ArrayNumber="arrayNumber",e))(te||{}),td=Object.defineProperty,ed=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&td(t,n,s),s};const Ya=class Qo{constructor(t){f(this,"id");f(this,"model","");f(this,"label","");f(this,"col","");f(this,"operator",Ut.Eq);f(this,"date1");f(this,"date2");f(this,"value1","");f(this,"boolean",!1);f(this,"number",0);f(this,"type",te.String);f(this,"set",[]);f(this,"isSet",!1);f(this,"joinTable","");f(this,"joinTableModel","");f(this,"joinTableFk","");f(this,"joinTablePk","");f(this,"joinTableId","");f(this,"joinTableIdCol","");J.BuildClass(this,t)}eq(t){if(!t)return!1;if(this.type===te.Join){const n=t.model===this.model&&t.operator===this.operator&&this.joinTableModel===t.joinTableModel;return t.operator===Ut.In?n&&nn.Eq(this.set,t.set):n}return t.model===this.model&&t.col===this.col&&t.operator===this.operator}valueEq(t){return!this||!t||!this.eq(t)?!1:this.type===te.Boolean?this.boolean===(t==null?void 0:t.boolean):this.type===te.String?this.value1===(t==null?void 0:t.value1):this.type===te.Join&&this.set.length?nn.Eq(this.set,t.set):!1}toUrlQuery(){const t=this.type?`"type":"${this.type}"`:"",n=this.model?`"model":"${this.model}"`:"",i=this.col?`"col":"${this.col}"`:"",s=this.operator?`"operator":"${this.operator}"`:"",r=this.value1?`"value1":"${this.value1}"`:"",a=this.type===te.Boolean?`"boolean":${this.boolean}`:"",c=this.type===te.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",l=this.type===te.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",d=this.type===te.Number?`"number":${this.number}`:"",u=this.type===te.Set||this.operator===Ut.In?`"set":${JSON.stringify(this.set)}`:"",h=this.type===te.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[t,n,i,s,r,a,c,l,d,u,h].filter(m=>m!=="").toString()}fromUrlQuery(t){this.model=t.get("model")??"",this.col=t.get("col")??"",this.label=t.get("label")??"",this.operator=t.get("operator")??"",this.value1=t.get("value1")??"",this.type=t.get("type")??"",this.boolean=!!(t.get("boolean")??""),this.joinTableModel=t.get("joinTableModel")??"",this.joinTableId=t.get("joinTableId")??"",this.joinTableFk=t.get("joinTableFk")??"",this.joinTableIdCol=t.get("joinTableIdCol")??"",this.joinTablePk=t.get("joinTablePk")??""}isUnaryFilter(){return this.operator===Ut.Eq||this.operator===Ut.Gt||this.operator===Ut.Lt}isBetweenFilter(){return this.operator===Ut.Btw}isSetFilter(){return this.operator===Ut.In}static Create(t,n,i){const s=new Qo;return s.model=t.GetClassName(),s.col=n??"",s.type=i,s.type===te.Number&&(s.value1="0"),s.type===te.String&&(s.value1=""),s.type===te.Boolean&&(s.value1="false",s.operator=Ut.Eq),s}static CreateFilterModelWithJoin(t,n,i,s,r,a,c,l){const d=new Qo;return d.id=un(),d.joinTable=i,d.joinTablePk=s,d.joinTableFk=r,d.col=n,d.type=a,c&&(d.joinTableId=c),l&&(d.joinTableIdCol=l),d}static CreateFilterModelWithJoinV2(t,n,i,s,r,a,c){const l=new Qo;return l.model=t,l.joinTableModel=i,l.joinTablePk=s,l.joinTableFk=r,l.col=n,l.type=te.Join,a&&(l.joinTableId=a),c&&(l.joinTableIdCol=c),l}static OnlyIfSecondModelExists(t,n){const i=new Qo;return i.id=un(),i.model=wt.ToCamelCase(t.GetClassName()),i.joinTableModel=wt.ToCamelCase(n.GetClassName()),i.type=te.Join,i}addToSet(...t){t.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(i=>i!==n)})}pushToSet(...t){t.forEach(n=>{this.set.indexOf(n)===-1&&this.set.push(n)})}replaceSet(...t){this.set=t}setBoolean(t){this.boolean=t}toRef(){return o.ref(this)}setDate1(t){this.date1=t}setDate2(t){this.date2=t}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(t,n){if(!t&&!n){this.dropDates();return}if(!n){this.setDate1(t),this.operator=Ut.Eq;return}this.setDate2(n),this.operator=Ut.Btw}};ed([J.GetClassConstructor(String)],Ya.prototype,"set");let ms=Ya;class nd{constructor(){f(this,"operation",Ut.Lt);f(this,"column","");f(this,"value");f(this,"initial",!0);f(this,"tableName","");f(this,"version","");f(this,"model","")}toUrlQuery(){const t=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",i=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,s=i?`"value":"${i}"`:"",r=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[t,n,s,r,a].filter(c=>c!=="").toString()}fromUrlQuery(t){t.cursvalue&&(this.value=t.cursvalue),t.curscolumn&&(this.column=String(t.curscolumn)),t.cursinitial!==void 0&&(this.initial=!!t.cursinitial),t.curstableName&&(this.tableName=String(t.curstableName)),t.cursoperation&&(this.operation=t.cursoperation)}}class si{constructor(t){f(this,"page",0);f(this,"rowsPerPage",25);f(this,"rowsNumber",0);f(this,"cursor",new nd);f(this,"cursorMode",!1);f(this,"append",!1);f(this,"allLoaded",!1);f(this,"version","");J.BuildClass(this,t)}setLoadMore(t,n,i){this.cursor.value=t,this.cursor.initial=!1,this.cursor.operation=Ut.Gt,this.cursor.column=n,this.cursor.tableName=i,this.cursorMode=!0}setLoadMoreV2(t,n,i){this.cursor.value=t,this.cursor.initial=!1,this.cursor.operation=Ut.Gt,this.cursor.column=n,this.cursor.model=i,this.cursorMode=!0,this.version="v2"}setOffset(t){this.page=t}toUrlQuery(){const t=`"offset":${this.offset}`,n=`"limit":${this.limit}`,i=`"cursorMode":${this.cursorMode}`,s=`"append":${this.append}`,r=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[t,n,i,s,r,a].toString()}fromUrlQuery(){const t=window.location.search,n=t.substring(t.indexOf("p=")+2,t.lastIndexOf("|")),i=new URLSearchParams(decodeURIComponent(n));this.page=Number(i.get("offset")),this.rowsPerPage=Number(i.get("col"))}setAllLoaded(t){this.allLoaded=!(t>=this.rowsPerPage)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.page/this.rowsPerPage+1}drop(){this.page=0,this.rowsPerPage=25,J.BuildClass(this)}}var Be=(e=>(e.Asc="asc",e.Desc="desc",e))(Be||{});class ai{constructor(t){f(this,"model","");f(this,"col","");f(this,"order");f(this,"label","");f(this,"default",!1);f(this,"selected",!1);J.BuildClass(this,t)}static Create(t,n,i=Be.Asc,s,r){const a=new ai;return a.model=t.GetClassName(),a.col=n??"",a.order=i??Be.Asc,a.label=s??"",a.default=r??!1,a}isAsc(){return this.order===Be.Asc}isDesc(){return this.order===Be.Desc}eq(t){return t.model===this.model&&t.col===this.col&&t.order===this.order}toUrlQuery(){const t=this.model?`"model":"${this.model}"`:"",n=this.col?`"col":"${this.col}"`:"",i=this.order?`"order":"${this.order}"`:"";return[t,n,i].toString()}async fromUrlQuery(){const t=window.location.search,n=t.substring(t.indexOf("s=")+2,t.indexOf("|")),i=new URLSearchParams(decodeURIComponent(n));this.model=i.get("model")??"",this.col=i.get("col")??"",this.label=i.get("label")??"",this.default=!!i.get("default"),this.order=i.get("order")??""}asc(){this.order=Be.Asc}desc(){this.order=Be.Desc}}class ri{constructor(){f(this,"model","");f(this,"cols",[]);f(this,"models",[])}static Create(t,n){const i=new ri;return i.model=t.GetClassName(),i.cols=n,i}}var od=Object.defineProperty,bo=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&od(t,n,s),s};const Kn=(Ee=class{constructor(t){f(this,"id");f(this,"f",[]);f(this,"f2",[]);f(this,"s",[]);f(this,"p",new si);f(this,"t",new ri);J.BuildClass(this,t)}static Get(){return this.instance||(this.instance=new Ee),this.instance}createFrom(t){const n=new Ee(JSON.parse(t));this.f=n.f}clearForHTTP(){const t=new Ee(this);return t.f=this.f.map(n=>Ee.EmptyEntiries(n)),t.f2=this.f2.map(n=>Ee.EmptyEntiries(n)),t.s=this.s.map(n=>Ee.EmptyEntiries(n)),t.p=Ee.EmptyEntiries(this.p),t.t=Ee.EmptyEntiries(this.t),t}static EmptyEntiries(t){if(!t)return;const i=Object.entries(t).filter(([s,r])=>s!=="label"&&r!==""&&r!==null);return Object.fromEntries(i)}findFilterModel(t){return this.f.find(n=>t.id===n.id)}getFirstSortModel(){return nn.GetLast(this.s)}setSortModel(t){t&&(this.s[0]=t)}setS(t){this.s[0]=t}setF(t){this.f.push(t)}setF2(t){this.f2.push(t)}replaceF(t,n){this.removeF(n),t&&this.setF(t)}removeF(t){const n=this.f.findIndex(i=>i.eq(t));J.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new si}resetF(){this.f=[]}},f(Ee,"instance"),Ee);bo([J.GetClassConstructor(ms)],Kn.prototype,"f"),bo([J.GetClassConstructor(Xa)],Kn.prototype,"f2"),bo([J.GetClassConstructor(ai)],Kn.prototype,"s"),bo([J.GetClassConstructor(si)],Kn.prototype,"p"),bo([J.GetClassConstructor(ri)],Kn.prototype,"t");let on=Kn,id=(vo=class{},f(vo,"SortModel",ai),f(vo,"FilterModel",ms),f(vo,"FilterModelV2",Xa),f(vo,"FTSP",on),vo);function Ka(e,t){return function(){return e.apply(t,arguments)}}const{toString:sd}=Object.prototype,{getPrototypeOf:Zn}=Object,{iterator:So,toStringTag:Za}=Symbol,li=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wo=(e,t)=>{let n=e;const i=[];for(;n!=null&&n!==Object.prototype;){if(i.indexOf(n)!==-1)return!1;if(i.push(n),li(n,t))return!0;n=Zn(n)}return!1},ad=(e,t)=>e!=null&&wo(e,t)?e[t]:void 0,ps=(e=>t=>{const n=sd.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ze=e=>(e=e.toLowerCase(),t=>ps(t)===e),ci=e=>t=>typeof t===e,{isArray:In}=Array,Qn=ci("undefined");function Jn(e){return e!==null&&!Qn(e)&&e.constructor!==null&&!Qn(e.constructor)&&be(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qa=ze("ArrayBuffer");function rd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qa(e.buffer),t}const ld=ci("string"),be=ci("function"),Ja=ci("number"),_n=e=>e!==null&&typeof e=="object",cd=e=>e===!0||e===!1,di=e=>{if(!_n(e))return!1;const t=Zn(e);return(t===null||t===Object.prototype||Zn(t)===null)&&!wo(e,Za)&&!wo(e,So)},dd=e=>{if(!_n(e)||Jn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},ud=ze("Date"),fd=ze("File"),hd=e=>!!(e&&typeof e.uri<"u"),md=e=>e&&typeof e.getParts<"u",pd=ze("Blob"),gd=ze("FileList"),vd=e=>_n(e)&&be(e.pipe);function yd(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const _a=yd(),qa=typeof _a.FormData<"u"?_a.FormData:void 0,bd=e=>{if(!e)return!1;if(qa&&e instanceof qa)return!0;const t=Zn(e);if(!t||t===Object.prototype||!be(e.append))return!1;const n=ps(e);return n==="formdata"||n==="object"&&be(e.toString)&&e.toString()==="[object FormData]"},Sd=ze("URLSearchParams"),[wd,Cd,Ed,xd]=["ReadableStream","Request","Response","Headers"].map(ze),Id=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Co(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,s;if(typeof e!="object"&&(e=[e]),In(e))for(i=0,s=e.length;i<s;i++)t.call(null,e[i],i,e);else{if(Jn(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let c;for(i=0;i<a;i++)c=r[i],t.call(null,e[c],c,e)}}function $a(e,t){if(Jn(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i=n.length,s;for(;i-- >0;)if(s=n[i],t===s.toLowerCase())return s;return null}const Pn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tr=e=>!Qn(e)&&e!==Pn;function gs(...e){const{caseless:t,skipUndefined:n}=tr(this)&&this||{},i={},s=(r,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=t&&typeof a=="string"&&$a(i,a)||a,l=li(i,c)?i[c]:void 0;di(l)&&di(r)?i[c]=gs(l,r):di(r)?i[c]=gs({},r):In(r)?i[c]=r.slice():(!n||!Qn(r))&&(i[c]=r)};for(let r=0,a=e.length;r<a;r++){const c=e[r];if(!c||Jn(c)||(Co(c,s),typeof c!="object"||In(c)))continue;const l=Object.getOwnPropertySymbols(c);for(let d=0;d<l.length;d++){const u=l[d];Vd.call(c,u)&&s(c[u],u)}}return i}const Pd=(e,t,n,{allOwnKeys:i}={})=>(Co(t,(s,r)=>{n&&be(s)?Object.defineProperty(e,r,{__proto__:null,value:Ka(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),Rd=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Md=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Od=(e,t,n,i)=>{let s,r,a;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),r=s.length;r-- >0;)a=s[r],(!i||i(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&Zn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ad=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Td=e=>{if(!e)return null;if(In(e))return e;let t=e.length;if(!Ja(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Bd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zn(Uint8Array)),kd=(e,t)=>{const i=(e&&e[So]).call(e);let s;for(;(s=i.next())&&!s.done;){const r=s.value;t.call(e,r[0],r[1])}},Nd=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Dd=ze("HTMLFormElement"),Fd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,s){return i.toUpperCase()+s}),{propertyIsEnumerable:Vd}=Object.prototype,zd=ze("RegExp"),er=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Co(n,(s,r)=>{let a;(a=t(s,r,e))!==!1&&(i[r]=a||s)}),Object.defineProperties(e,i)},Ld=e=>{er(e,(t,n)=>{if(be(e)&&["arguments","caller","callee"].includes(n))return!1;const i=e[n];if(be(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Hd=(e,t)=>{const n={},i=s=>{s.forEach(r=>{n[r]=!0})};return In(e)?i(e):i(String(e).split(t)),n},Ud=()=>{},jd=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Gd(e){return!!(e&&be(e.append)&&e[Za]==="FormData"&&e[So])}const Wd=e=>{const t=new WeakSet,n=i=>{if(_n(i)){if(t.has(i))return;if(Jn(i))return i;if(!("toJSON"in i)){t.add(i);const s=In(i)?[]:{};return Co(i,(r,a)=>{const c=n(r);!Qn(c)&&(s[a]=c)}),t.delete(i),s}}return i};return n(e)},Xd=ze("AsyncFunction"),Yd=e=>e&&(_n(e)||be(e))&&be(e.then)&&be(e.catch),nr=((e,t)=>e?setImmediate:t?((n,i)=>(Pn.addEventListener("message",({source:s,data:r})=>{s===Pn&&r===n&&i.length&&i.shift()()},!1),s=>{i.push(s),Pn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",be(Pn.postMessage)),Kd=typeof queueMicrotask<"u"?queueMicrotask.bind(Pn):typeof process<"u"&&process.nextTick||nr,or=e=>e!=null&&be(e[So]),E={isArray:In,isArrayBuffer:Qa,isBuffer:Jn,isFormData:bd,isArrayBufferView:rd,isString:ld,isNumber:Ja,isBoolean:cd,isObject:_n,isPlainObject:di,isEmptyObject:dd,isReadableStream:wd,isRequest:Cd,isResponse:Ed,isHeaders:xd,isUndefined:Qn,isDate:ud,isFile:fd,isReactNativeBlob:hd,isReactNative:md,isBlob:pd,isRegExp:zd,isFunction:be,isStream:vd,isURLSearchParams:Sd,isTypedArray:Bd,isFileList:gd,forEach:Co,merge:gs,extend:Pd,trim:Id,stripBOM:Rd,inherits:Md,toFlatObject:Od,kindOf:ps,kindOfTest:ze,endsWith:Ad,toArray:Td,forEachEntry:kd,matchAll:Nd,isHTMLForm:Dd,hasOwnProperty:li,hasOwnProp:li,hasOwnInPrototypeChain:wo,getSafeProp:ad,reduceDescriptors:er,freezeMethods:Ld,toObjectSet:Hd,toCamelCase:Fd,noop:Ud,toFiniteNumber:jd,findKey:$a,global:Pn,isContextDefined:tr,isSpecCompliantForm:Gd,toJSONObject:Wd,isAsyncFn:Xd,isThenable:Yd,setImmediate:nr,asap:Kd,isIterable:or,isSafeIterable:e=>e!=null&&wo(e,So)&&or(e)},Zd=E.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"]),Qd=e=>{const t={};let n,i,s;return e&&e.split(`
|
|
15
|
-
`).forEach(function(a){
|
|
16
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(s=>i.set(s)),i}static accessor(t){const i=(this[sr]=this[sr]={accessors:{}}).accessors,s=this.prototype;function r(a){const c=Eo(a);i[c]||(iu(s,a),i[c]=!0)}return E.isArray(t)?t.forEach(r):r(t),this}};ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(ue.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}}),E.freezeMethods(ue);const su="[REDACTED ****]";function au(e){if(E.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(E.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function ru(e,t){const n=new Set(t.map(r=>String(r).toLowerCase())),i=[],s=r=>{if(r===null||typeof r!="object"||E.isBuffer(r))return r;if(i.indexOf(r)!==-1)return;r instanceof ue&&(r=r.toJSON()),i.push(r);let a;if(E.isArray(r))a=[],r.forEach((c,l)=>{const d=s(c);E.isUndefined(d)||(a[l]=d)});else{if(!E.isPlainObject(r)&&au(r))return i.pop(),r;a=Object.create(null);for(const[c,l]of Object.entries(r)){const d=n.has(c.toLowerCase())?su:s(l);E.isUndefined(d)||(a[c]=d)}}return i.pop(),a};return s(e)}let Z=class Ic extends Error{static from(t,n,i,s,r,a){const c=new Ic(t.message,n||t.code,i,s,r);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),a&&Object.assign(c,a),c}constructor(t,n,i,s,r){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),s&&(this.request=s),r&&(this.response=r,this.status=r.status)}toJSON(){const t=this.config,n=t&&E.hasOwnProp(t,"redact")?t.redact:void 0,i=E.isArray(n)&&n.length>0?ru(t,n):E.toJSONObject(t);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:i,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 lu=null,ar=100;function bs(e){return E.isPlainObject(e)||E.isArray(e)}function rr(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function Ss(e,t,n){return e?e.concat(t).map(function(s,r){return s=rr(s),!n&&r?"["+s+"]":s}).join(n?".":""):t}function cu(e){return E.isArray(e)&&!e.some(bs)}const du=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function fi(e,t,n){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,x){return!E.isUndefined(x[C])});const i=n.metaTokens,s=n.visitor||g,r=n.dots,a=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?ar:n.maxDepth,d=c&&E.isSpecCompliantForm(t),u=[];if(!E.isFunction(s))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(E.isDate(S))return S.toISOString();if(E.isBoolean(S))return S.toString();if(!d&&E.isBlob(S))throw new Z("Blob is not supported. Use a Buffer instead.");if(E.isArrayBuffer(S)||E.isTypedArray(S)){if(d&&typeof c=="function")return new c([S]);if(typeof Buffer<"u")return Buffer.from(S);throw new Z("Blob is not supported. Use a Buffer instead.",Z.ERR_NOT_SUPPORT)}return S}function m(S){if(S>l)throw new Z("Object is too deeply nested ("+S+" levels). Max depth: "+l,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(S,C){if(l===1/0)return JSON.stringify(S);const x=[];return JSON.stringify(S,function(R,A){if(!E.isObject(A))return A;for(;x.length&&x[x.length-1]!==this;)x.pop();return x.push(A),m(C+x.length-1),A})}function g(S,C,x){let I=S;if(E.isReactNative(t)&&E.isReactNativeBlob(S))return t.append(Ss(x,C,r),h(S)),!1;if(S&&!x&&typeof S=="object"){if(E.endsWith(C,"{}"))C=i?C:C.slice(0,-2),S=p(S,1);else if(E.isArray(S)&&cu(S)||(E.isFileList(S)||E.endsWith(C,"[]"))&&(I=E.toArray(S)))return C=rr(C),I.forEach(function(A,Y){!(E.isUndefined(A)||A===null)&&t.append(a===!0?Ss([C],Y,r):a===null?C:C+"[]",h(A))}),!1}return bs(S)?!0:(t.append(Ss(x,C,r),h(S)),!1)}const v=Object.assign(du,{defaultVisitor:g,convertValue:h,isVisitable:bs});function b(S,C,x=0){if(!E.isUndefined(S)){if(m(x),u.indexOf(S)!==-1)throw new Error("Circular reference detected in "+C.join("."));u.push(S),E.forEach(S,function(R,A){(!(E.isUndefined(R)||R===null)&&s.call(t,R,E.isString(A)?A.trim():A,C,v))===!0&&b(R,C?C.concat(A):[A],x+1)}),u.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return b(e),t}function lr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(i){return t[i]})}function ws(e,t){this._pairs=[],e&&fi(e,this,t)}const cr=ws.prototype;cr.append=function(t,n){this._pairs.push([t,n])},cr.toString=function(t){const n=t?i=>t.call(this,i,lr):lr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function uu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dr(e,t,n){if(!t)return e;e=e||"";const i=E.isFunction(n)?{serialize:n}:n,s=E.getSafeProp(i,"encode")||uu,r=E.getSafeProp(i,"serialize");let a;if(r?a=r(t,i):a=E.isURLSearchParams(t)?t.toString():new ws(t,i).toString(s),a){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class ur{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){E.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Cs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},fu={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ws,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Es=typeof window<"u"&&typeof document<"u",xs=typeof navigator=="object"&&navigator||void 0,hu=Es&&(!xs||["ReactNative","NativeScript","NS"].indexOf(xs.product)<0),mu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pu=Es&&window.location.href||"http://localhost",ae={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Es,hasStandardBrowserEnv:hu,hasStandardBrowserWebWorkerEnv:mu,navigator:xs,origin:pu},Symbol.toStringTag,{value:"Module"})),...fu};function gu(e,t){return fi(e,new ae.classes.URLSearchParams,{visitor:function(n,i,s,r){return ae.isNode&&E.isBuffer(n)?(this.append(i,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}const fr=ar;function hr(e){if(e>fr)throw new Z("FormData field is too deeply nested ("+e+" levels). Max depth: "+fr,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function vu(e){const t=[],n=/\w+|\[(\w*)]/g;let i;for(;(i=n.exec(e))!==null;)hr(t.length),t.push(i[0]==="[]"?"":i[1]||i[0]);return t}function yu(e){const t={},n=Object.keys(e);let i;const s=n.length;let r;for(i=0;i<s;i++)r=n[i],t[r]=e[r];return t}function mr(e){function t(n,i,s,r){hr(r);let a=n[r++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=r>=n.length;return a=!a&&E.isArray(s)?s.length:a,l?(E.hasOwnProp(s,a)?s[a]=E.isArray(s[a])?s[a].concat(i):[s[a],i]:s[a]=i,!c):((!E.hasOwnProp(s,a)||!E.isObject(s[a]))&&(s[a]=[]),t(n,i,s[a],r)&&E.isArray(s[a])&&(s[a]=yu(s[a])),!c)}if(E.isFormData(e)&&E.isFunction(e.entries)){const n={};return E.forEachEntry(e,(i,s)=>{t(vu(i),s,n,0)}),n}return null}const qn=(e,t)=>e!=null&&E.hasOwnProp(e,t)?e[t]:void 0;function bu(e,t,n){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const xo={transitional:Cs,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",s=i.indexOf("application/json")>-1,r=E.isObject(t);if(r&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return s?JSON.stringify(mr(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(r){const l=qn(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return gu(t,l).toString();if((c=E.isFileList(t))||i.indexOf("multipart/form-data")>-1){const d=qn(this,"env"),u=d&&d.FormData;return fi(c?{"files[]":t}:t,u&&new u,l)}}return r||s?(n.setContentType("application/json",!1),bu(t)):t}],transformResponse:[function(t){const n=qn(this,"transitional")||xo.transitional,i=n&&n.forcedJSONParsing,s=qn(this,"responseType"),r=s==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(i&&!s||r)){const c=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,qn(this,"parseReviver"))}catch(l){if(c)throw l.name==="SyntaxError"?Z.from(l,Z.ERR_BAD_RESPONSE,this,null,qn(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ae.classes.FormData,Blob:ae.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch","query"],e=>{xo.headers[e]={}});function Is(e,t){const n=this||xo,i=t||n,s=ue.from(i.headers);let r=i.data;return E.forEach(e,function(c){r=c.call(n,r,s.normalize(),t?t.status:void 0)}),s.normalize(),r}function pr(e){return!!(e&&e.__CANCEL__)}let Io=class extends Z{constructor(t,n,i){super(t??"canceled",Z.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function gr(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Z("Request failed with status code "+n.status,n.status>=400&&n.status<500?Z.ERR_BAD_REQUEST:Z.ERR_BAD_RESPONSE,n.config,n.request,n))}function Su(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function wu(e,t){e=e||10;const n=new Array(e),i=new Array(e);let s=0,r=0,a;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),u=i[r];a||(a=d),n[s]=l,i[s]=d;let h=r,m=0;for(;h!==s;)m+=n[h++],h=h%e;if(s=(s+1)%e,s===r&&(r=(r+1)%e),d-a<t)return;const p=u&&d-u;return p?Math.round(m*1e3/p):void 0}}function Cu(e,t){let n=0,i=1e3/t,s,r;const a=(d,u=Date.now())=>{n=u,s=null,r&&(clearTimeout(r),r=null),e(...d)};return[(...d)=>{const u=Date.now(),h=u-n;h>=i?a(d,u):(s=d,r||(r=setTimeout(()=>{r=null,a(s)},i-h)))},()=>s&&a(s)]}const hi=(e,t,n=3)=>{let i=0;const s=wu(50,250);return Cu(r=>{if(!r||typeof r.loaded!="number")return;const a=r.loaded,c=r.lengthComputable?r.total:void 0,l=c!=null?Math.min(a,c):a,d=Math.max(0,l-i),u=s(d);i=Math.max(i,l);const h={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:u||void 0,estimated:u&&c?(c-l)/u:void 0,event:r,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},vr=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},yr=e=>(...t)=>E.asap(()=>e(...t)),Eu=ae.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ae.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ae.origin),ae.navigator&&/(msie|trident)/i.test(ae.navigator.userAgent)):()=>!0,xu=ae.hasStandardBrowserEnv?{write(e,t,n,i,s,r,a){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];E.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),E.isString(i)&&c.push(`path=${i}`),E.isString(s)&&c.push(`domain=${s}`),r===!0&&c.push("secure"),E.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const i=t[n].replace(/^\s+/,""),s=i.indexOf("=");if(s!==-1&&i.slice(0,s)===e)try{return decodeURIComponent(i.slice(s+1))}catch{return i.slice(s+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Iu(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Pu(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const Ru=/^https?:(?!\/\/)/i,Mu=/[\t\n\r]/g;function Ou(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Au(e){return Ou(e).replace(Mu,"")}function br(e,t){if(typeof e=="string"&&Ru.test(Au(e)))throw new Z('Invalid URL: missing "//" after protocol',Z.ERR_INVALID_URL,t)}function Sr(e,t,n,i){br(t,i);let s=!Iu(t);return e&&(s||n===!1)?(br(e,i),Pu(e,t)):t}const wr=e=>e instanceof ue?{...e}:e;function Rn(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function i(u,h,m,p){return E.isPlainObject(u)&&E.isPlainObject(h)?E.merge.call({caseless:p},u,h):E.isPlainObject(h)?E.merge({},h):E.isArray(h)?h.slice():h}function s(u,h,m,p){if(E.isUndefined(h)){if(!E.isUndefined(u))return i(void 0,u,m,p)}else return i(u,h,m,p)}function r(u,h){if(!E.isUndefined(h))return i(void 0,h)}function a(u,h){if(E.isUndefined(h)){if(!E.isUndefined(u))return i(void 0,u)}else return i(void 0,h)}function c(u){const h=E.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!E.isUndefined(h))if(E.isPlainObject(h)){if(E.hasOwnProp(h,u))return h[u]}else return;const m=E.hasOwnProp(e,"transitional")?e.transitional:void 0;if(E.isPlainObject(m)&&E.hasOwnProp(m,u))return m[u]}function l(u,h,m){if(E.hasOwnProp(t,m))return i(u,h);if(E.hasOwnProp(e,m))return i(void 0,u)}const d={url:r,method:r,data:r,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:l,headers:(u,h,m)=>s(wr(u),wr(h),m,!0)};return E.forEach(Object.keys({...e,...t}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const m=E.hasOwnProp(d,h)?d[h]:s,p=E.hasOwnProp(e,h)?e[h]:void 0,g=E.hasOwnProp(t,h)?t[h]:void 0,v=m(p,g,h);E.isUndefined(v)&&m!==l||(n[h]=v)}),E.hasOwnProp(t,"validateStatus")&&E.isUndefined(t.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(E.hasOwnProp(e,"validateStatus")?n.validateStatus=i(void 0,e.validateStatus):delete n.validateStatus),n}const Tu=["content-type","content-length"];function Bu(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([i,s])=>{Tu.includes(i.toLowerCase())&&e.set(i,s)})}const ku=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Cr(e){const t=Rn({},e),n=m=>E.hasOwnProp(t,m)?t[m]:void 0,i=n("data");let s=n("withXSRFToken");const r=n("xsrfHeaderName"),a=n("xsrfCookieName");let c=n("headers");const l=n("auth"),d=n("baseURL"),u=n("allowAbsoluteUrls"),h=n("url");if(t.headers=c=ue.from(c),t.url=dr(Sr(d,h,u,t),n("params"),n("paramsSerializer")),l){const m=E.getSafeProp(l,"username")||"",p=E.getSafeProp(l,"password")||"";try{c.set("Authorization","Basic "+btoa(m+":"+(p?ku(p):"")))}catch(g){throw Z.from(g,Z.ERR_BAD_OPTION_VALUE,e)}}if(E.isFormData(i)&&(ae.hasStandardBrowserEnv||ae.hasStandardBrowserWebWorkerEnv||E.isReactNative(i)?c.setContentType(void 0):E.isFunction(i.getHeaders)&&Bu(c,i.getHeaders(),n("formDataHeaderPolicy"))),ae.hasStandardBrowserEnv&&(E.isFunction(s)&&(s=s(t)),s===!0||s==null&&Eu(t.url))){const p=r&&a&&xu.read(a);p&&c.set(r,p)}return t}const Nu=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,i){const s=Cr(e);let r=s.data;const a=ue.from(s.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:d}=s,u,h,m,p,g;function v(){p&&p(),g&&g(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(s.method.toUpperCase(),s.url,!0),b.timeout=s.timeout;function S(){if(!b)return;const x=ue.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),R={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:x,config:e,request:b};gr(function(Y){n(Y),v()},function(Y){i(Y),v()},R),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.startsWith("file:"))||setTimeout(S)},b.onabort=function(){b&&(i(new Z("Request aborted",Z.ECONNABORTED,e,b)),v(),b=null)},b.onerror=function(I){const R=I&&I.message?I.message:"Network Error",A=new Z(R,Z.ERR_NETWORK,e,b);A.event=I||null,i(A),v(),b=null},b.ontimeout=function(){let I=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const R=s.transitional||Cs;s.timeoutErrorMessage&&(I=s.timeoutErrorMessage),i(new Z(I,R.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,b)),v(),b=null},r===void 0&&a.setContentType(null),"setRequestHeader"in b&&E.forEach(ir(a),function(I,R){b.setRequestHeader(R,I)}),E.isUndefined(s.withCredentials)||(b.withCredentials=!!s.withCredentials),c&&c!=="json"&&(b.responseType=s.responseType),d&&([m,g]=hi(d,!0),b.addEventListener("progress",m)),l&&b.upload&&([h,p]=hi(l),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",p)),(s.cancelToken||s.signal)&&(u=x=>{b&&(i(!x||x.type?new Io(null,e,b):x),b.abort(),v(),b=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const C=Su(s.url);if(C&&!ae.protocols.includes(C)){i(new Z("Unsupported protocol "+C+":",Z.ERR_BAD_REQUEST,e)),v();return}b.send(r||null)})},Du=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let i=!1;const s=function(l){if(!i){i=!0,a();const d=l instanceof Error?l:this.reason;n.abort(d instanceof Z?d:new Io(d instanceof Error?d.message:d))}};let r=t&&setTimeout(()=>{r=null,s(new Z(`timeout of ${t}ms exceeded`,Z.ETIMEDOUT))},t);const a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s,{once:!0}));const{signal:c}=n;return c.unsubscribe=()=>E.asap(a),c},Fu=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,s;for(;i<n;)s=i+t,yield e.slice(i,s),i=s},Vu=async function*(e,t){for await(const n of zu(e))yield*Fu(n,t)},zu=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},Er=(e,t,n,i)=>{const s=Vu(e,t);let r=0,a,c=l=>{a||(a=!0,i&&i(l))};return new ReadableStream({async pull(l){try{const{done:d,value:u}=await s.next();if(d){c(),l.close();return}let h=u.byteLength;if(n){let m=r+=h;n(m)}l.enqueue(new Uint8Array(u))}catch(d){throw c(d),d}},cancel(l){return c(l),s.return()}},{highWaterMark:2})},mi=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Lu=(e,t,n)=>t+2<n&&mi(e.charCodeAt(t+1))&&mi(e.charCodeAt(t+2));function Hu(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(n)){let a=i.length;const c=i.length;for(let p=0;p<c;p++)if(i.charCodeAt(p)===37&&p+2<c){const g=i.charCodeAt(p+1),v=i.charCodeAt(p+2);mi(g)&&mi(v)&&(a-=2,p+=2)}let l=0,d=c-1;const u=p=>p>=2&&i.charCodeAt(p-2)===37&&i.charCodeAt(p-1)===51&&(i.charCodeAt(p)===68||i.charCodeAt(p)===100);d>=0&&(i.charCodeAt(d)===61?(l++,d--):u(d)&&(l++,d-=3)),l===1&&d>=0&&(i.charCodeAt(d)===61||u(d))&&l++;const m=Math.floor(a/4)*3-(l||0);return m>0?m:0}let r=0;for(let a=0,c=i.length;a<c;a++){const l=i.charCodeAt(a);if(l===37&&Lu(i,a,c))r+=1,a+=2;else if(l<128)r+=1;else if(l<2048)r+=2;else if(l>=55296&&l<=56319&&a+1<c){const d=i.charCodeAt(a+1);d>=56320&&d<=57343?(r+=4,a++):r+=3}else r+=3}return r}const Ps="1.18.1",xr=64*1024,{isFunction:pi}=E,Uu=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Ir=e=>{if(!E.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Pr=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ju=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},Gu=e=>{const t=E.global!==void 0&&E.global!==null?E.global:globalThis,{ReadableStream:n,TextEncoder:i}=t;e=E.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:r,Response:a}=e,c=s?pi(s):typeof fetch=="function",l=pi(r),d=pi(a);if(!c)return!1;const u=c&&pi(n),h=c&&(typeof i=="function"?(S=>C=>S.encode(C))(new i):async S=>new Uint8Array(await new r(S).arrayBuffer())),m=l&&u&&Pr(()=>{let S=!1;const C=new r(ae.origin,{body:new n,method:"POST",get duplex(){return S=!0,"half"}}),x=C.headers.has("Content-Type");return C.body!=null&&C.body.cancel(),S&&!x}),p=d&&u&&Pr(()=>E.isReadableStream(new a("").body)),g={stream:p&&(S=>S.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!g[S]&&(g[S]=(C,x)=>{let I=C&&C[S];if(I)return I.call(C);throw new Z(`Response type '${S}' is not supported`,Z.ERR_NOT_SUPPORT,x)})});const v=async S=>{if(S==null)return 0;if(E.isBlob(S))return S.size;if(E.isSpecCompliantForm(S))return(await new r(ae.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(E.isArrayBufferView(S)||E.isArrayBuffer(S))return S.byteLength;if(E.isURLSearchParams(S)&&(S=S+""),E.isString(S))return(await h(S)).byteLength},b=async(S,C)=>{const x=E.toFiniteNumber(S.getContentLength());return x??v(C)};return async S=>{let{url:C,method:x,data:I,signal:R,cancelToken:A,timeout:Y,onDownloadProgress:_,onUploadProgress:N,responseType:H,headers:Q,withCredentials:st="same-origin",fetchOptions:L,maxContentLength:z,maxBodyLength:ot}=Cr(S);const X=E.isNumber(z)&&z>-1,$=E.isNumber(ot)&&ot>-1,bt=tt=>E.hasOwnProp(S,tt)?S[tt]:void 0;let It=s||fetch;H=H?(H+"").toLowerCase():"text";let Pt=Du([R,A&&A.toAbortSignal()],Y),ut=null;const K=Pt&&Pt.unsubscribe&&(()=>{Pt.unsubscribe()});let Ct,kt=null;const ft=()=>new Z("Request body larger than maxBodyLength limit",Z.ERR_BAD_REQUEST,S,ut);try{let tt;const gt=bt("auth");if(gt){const et=E.getSafeProp(gt,"username")||"",At=E.getSafeProp(gt,"password")||"";tt={username:et,password:At}}if(ju(C)){const et=new URL(C,ae.origin);if(!tt&&(et.username||et.password)){const At=Ir(et.username),ge=Ir(et.password);tt={username:At,password:ge}}(et.username||et.password)&&(et.username="",et.password="",C=et.href)}if(tt&&(Q.delete("authorization"),Q.set("Authorization","Basic "+btoa(Uu((tt.username||"")+":"+(tt.password||""))))),X&&typeof C=="string"&&C.startsWith("data:")&&Hu(C)>z)throw new Z("maxContentLength size of "+z+" exceeded",Z.ERR_BAD_RESPONSE,S,ut);if($&&x!=="get"&&x!=="head"){const et=await v(I);if(typeof et=="number"&&isFinite(et)&&(Ct=et,et>ot))throw ft()}const Kt=$&&(E.isReadableStream(I)||E.isStream(I)),_t=(et,At,ge)=>Er(et,xr,xe=>{if($&&xe>ot)throw kt=ft();At&&At(xe)},ge);if(m&&x!=="get"&&x!=="head"&&(N||Kt)){if(Ct=Ct??await b(Q,I),Ct!==0||Kt){let et=new r(C,{method:"POST",body:I,duplex:"half"}),At;if(E.isFormData(I)&&(At=et.headers.get("content-type"))&&Q.setContentType(At),et.body){const[ge,xe]=N&&vr(Ct,hi(yr(N)))||[];I=_t(et.body,ge,xe)}}}else if(Kt&&!l&&u&&x!=="get"&&x!=="head")I=_t(I);else if(Kt&&l&&!m&&x!=="get"&&x!=="head")throw new Z("Stream request bodies are not supported by the current fetch implementation",Z.ERR_NOT_SUPPORT,S,ut);E.isString(st)||(st=st?"include":"omit");const Zt=l&&"credentials"in r.prototype;if(E.isFormData(I)){const et=Q.getContentType();et&&/^multipart\/form-data/i.test(et)&&!/boundary=/i.test(et)&&Q.delete("content-type")}Q.set("User-Agent","axios/"+Ps,!1);const Ae={...L,signal:Pt,method:x.toUpperCase(),headers:ir(Q.normalize()),body:I,duplex:"half",credentials:Zt?st:void 0};ut=l&&new r(C,Ae);let Vt=await(l?It(ut,L):It(C,Ae));const zt=ue.from(Vt.headers);if(X){const et=E.toFiniteNumber(zt.getContentLength());if(et!=null&&et>z)throw new Z("maxContentLength size of "+z+" exceeded",Z.ERR_BAD_RESPONSE,S,ut)}const Lt=p&&(H==="stream"||H==="response");if(p&&Vt.body&&(_||X||Lt&&K)){const et={};["status","statusText","headers"].forEach(Pe=>{et[Pe]=Vt[Pe]});const At=E.toFiniteNumber(zt.getContentLength()),[ge,xe]=_&&vr(At,hi(yr(_),!0))||[];let de=0;const Ie=Pe=>{if(X&&(de=Pe,de>z))throw new Z("maxContentLength size of "+z+" exceeded",Z.ERR_BAD_RESPONSE,S,ut);ge&&ge(Pe)};Vt=new a(Er(Vt.body,xr,Ie,()=>{xe&&xe(),K&&K()}),et)}H=H||"text";let Qt=await g[E.findKey(g,H)||"text"](Vt,S);if(X&&!p&&!Lt){let et;if(Qt!=null&&(typeof Qt.byteLength=="number"?et=Qt.byteLength:typeof Qt.size=="number"?et=Qt.size:typeof Qt=="string"&&(et=typeof i=="function"?new i().encode(Qt).byteLength:Qt.length)),typeof et=="number"&&et>z)throw new Z("maxContentLength size of "+z+" exceeded",Z.ERR_BAD_RESPONSE,S,ut)}return!Lt&&K&&K(),await new Promise((et,At)=>{gr(et,At,{data:Qt,headers:ue.from(Vt.headers),status:Vt.status,statusText:Vt.statusText,config:S,request:ut})})}catch(tt){if(K&&K(),Pt&&Pt.aborted&&Pt.reason instanceof Z){const gt=Pt.reason;throw gt.config=S,ut&&(gt.request=ut),tt!==gt&&Object.defineProperty(gt,"cause",{__proto__:null,value:tt,writable:!0,enumerable:!1,configurable:!0}),gt}if(kt)throw ut&&!kt.request&&(kt.request=ut),kt;if(tt instanceof Z)throw ut&&!tt.request&&(tt.request=ut),tt;if(tt&&tt.name==="TypeError"&&/Load failed|fetch/i.test(tt.message)){const gt=new Z("Network Error",Z.ERR_NETWORK,S,ut,tt&&tt.response);throw Object.defineProperty(gt,"cause",{__proto__:null,value:tt.cause||tt,writable:!0,enumerable:!1,configurable:!0}),gt}throw Z.from(tt,tt&&tt.code,S,ut,tt&&tt.response)}}},Wu=new Map,Rr=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:s}=t,r=[i,s,n];let a=r.length,c=a,l,d,u=Wu;for(;c--;)l=r[c],d=u.get(l),d===void 0&&u.set(l,d=c?new Map:Gu(t)),u=d;return d};Rr();const Rs={http:lu,xhr:Nu,fetch:{get:Rr}};E.forEach(Rs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Mr=e=>`- ${e}`,Xu=e=>E.isFunction(e)||e===null||e===!1;function Yu(e,t){e=E.isArray(e)?e:[e];const{length:n}=e;let i,s;const r={};for(let a=0;a<n;a++){i=e[a];let c;if(s=i,!Xu(i)&&(s=Rs[(c=String(i)).toLowerCase()],s===void 0))throw new Z(`Unknown adapter '${c}'`);if(s&&(E.isFunction(s)||(s=s.get(t))))break;r[c||"#"+a]=s}if(!s){const a=Object.entries(r).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let c=n?a.length>1?`since :
|
|
17
|
-
`+a.map(
|
|
18
|
-
`):" "+
|
|
19
|
-
`);return a===-1?"":
|
|
20
|
-
`),
|
|
21
|
-
`,a+1),
|
|
22
|
-
`+r)}}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Rn(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:r}=n;i!==void 0&&vi.assertOptions(i,{silentJSONParsing:fe.transitional(fe.boolean),forcedJSONParsing:fe.transitional(fe.boolean),clarifyTimeoutError:fe.transitional(fe.boolean),legacyInterceptorReqResOrdering:fe.transitional(fe.boolean),advertiseZstdAcceptEncoding:fe.transitional(fe.boolean),validateStatusUndefinedResolves:fe.transitional(fe.boolean)},!1),s!=null&&(E.isFunction(s)?n.paramsSerializer={serialize:s}:vi.assertOptions(s,{encode:fe.function,serialize:fe.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),vi.assertOptions(n,{baseUrl:fe.spelling("baseURL"),withXsrfToken:fe.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=r&&E.merge(r.common,r[n.method]);r&&E.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete r[g]}),n.headers=ue.concat(a,r);const c=[];let l=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;l=l&&v.synchronous;const b=n.transitional||Cs;b&&b.legacyInterceptorReqResOrdering?c.unshift(v.fulfilled,v.rejected):c.push(v.fulfilled,v.rejected)});const d=[];this.interceptors.response.forEach(function(v){d.push(v.fulfilled,v.rejected)});let u,h=0,m;if(!l){const g=[Ar.bind(this),void 0];for(g.unshift(...c),g.push(...d),m=g.length,u=Promise.resolve(n);h<m;)u=u.then(g[h++],g[h++]);return u}m=c.length;let p=n;for(;h<m;){const g=c[h++],v=c[h++];try{p=g(p)}catch(b){v.call(this,b);break}}try{u=Ar.call(this,p)}catch(g){return Promise.reject(g)}for(h=0,m=d.length;h<m;)u=u.then(d[h++],d[h++]);return u}getUri(t){t=Rn(this.defaults,t);const n=Sr(t.baseURL,t.url,t.allowAbsoluteUrls,t);return dr(n,t.params,t.paramsSerializer)}};E.forEach(["delete","get","head","options"],function(t){Mn.prototype[t]=function(n,i){return this.request(Rn(i||{},{method:t,url:n,data:i&&E.hasOwnProp(i,"data")?i.data:void 0}))}}),E.forEach(["post","put","patch","query"],function(t){function n(i){return function(r,a,c){return this.request(Rn(c||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:r,data:a}))}}Mn.prototype[t]=n(),t!=="query"&&(Mn.prototype[t+"Form"]=n(!0))});let Zu=class Pc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const a=new Promise(c=>{i.subscribe(c),r=c}).then(s);return a.cancel=function(){i.unsubscribe(r)},a},t(function(r,a,c){i.reason||(i.reason=new Io(r,a,c),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Pc(function(s){t=s}),cancel:t}}};function Qu(e){return function(n){return e.apply(null,n)}}function Ju(e){return E.isObject(e)&&e.isAxiosError===!0}const Os={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(Os).forEach(([e,t])=>{Os[t]=e});function Br(e){const t=new Mn(e),n=Ka(Mn.prototype.request,t);return E.extend(n,Mn.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Br(Rn(e,s))},n}const Yt=Br(xo);Yt.Axios=Mn,Yt.CanceledError=Io,Yt.CancelToken=Zu,Yt.isCancel=pr,Yt.VERSION=Ps,Yt.toFormData=fi,Yt.AxiosError=Z,Yt.Cancel=Yt.CanceledError,Yt.all=function(t){return Promise.all(t)},Yt.spread=Qu,Yt.isAxiosError=Ju,Yt.mergeConfig=Rn,Yt.AxiosHeaders=ue,Yt.formToJSON=e=>mr(E.isHTMLForm(e)?new FormData(e):e),Yt.getAdapter=Or.getAdapter,Yt.HttpStatusCode=Os,Yt.default=Yt;const{Axios:db,AxiosError:ub,CanceledError:fb,isCancel:hb,CancelToken:mb,VERSION:pb,all:gb,Cancel:vb,isAxiosError:yb,spread:bb,toFormData:Sb,AxiosHeaders:wb,HttpStatusCode:Cb,formToJSON:Eb,getAdapter:xb,mergeConfig:Ib,create:Pb}=Yt;var Po=(e=>(e.GET="get",e.POST="post",e.PUT="put",e.DELETE="delete",e))(Po||{});const Ro=(()=>{function e(){const l=s();return!(!l||l==="undefined")}function t(l){l.accessToken&&localStorage.setItem("access_token",l.accessToken),l.refreshToken&&localStorage.setItem("refresh_token",l.refreshToken)}function n(){const l=localStorage.getItem("user");return l?JSON.parse(l).id:""}function i(){const l=localStorage.getItem("user");if(l)return JSON.parse(l)}function s(){return localStorage.getItem("access_token")}function r(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function c(l){if(!e())return;const d=Ro.getUser();d&&(d.human=l,localStorage.setItem("user",JSON.stringify(d)))}return{isAuth:e,setTokens:t,getAccessToken:s,getRefreshToken:r,getUserId:n,clearTokens:a,getUser:i,updateHuman:c}})();class As{constructor(t){f(this,"code",400);f(this,"err","");J.BuildClass(this,t)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(t,n){const i=t.config;if(t.response){if(t.response.status===401&&!i._retry)return i._retry=!0,n.defaults.headers.common.token=Ro.getAccessToken(),t.config.headers.token=Ro.getAccessToken(),t.config.baseURL=void 0,n.request(i);if(t.response.status>=500){if(t.response.data==="неверный логин или пароль"){Xe.Error("Неверный логин или пароль");return}Xe.Error("Ошибка на сервере, попробуйте позже")}if(t.response.status>=400&&t.response.status<500){const s=new As(t.response.data).getErr();s&&Xe.Error(s)}return Promise.reject(t)}}}const $n=Yt.create();$n.interceptors.response.use(e=>e,async e=>await As.Handle(e,$n));class Mo{static async Get(t,n,i){return await $n({method:Po.GET,url:t,headers:n,responseType:i})}static async Post(t,n,i,s){return n["Content-Type"]="multipart/form-data",await $n({method:Po.POST,url:t,headers:n,responseType:i,data:s})}static async Put(t,n,i){return n["Content-Type"]="multipart/form-data",await $n({method:Po.PUT,url:t,headers:n,data:i})}static async Delete(t,n){return await $n({method:Po.DELETE,url:t,headers:n})}}class yi{constructor(t){f(this,"name","");J.BuildClass(this,t)}static Set(){}static Get(t,n){const i=sessionStorage.getItem(t);if(i){const s=JSON.parse(i),r=new Date,a=new Date(s.time),c=r.getTime()-a.getTime();return Math.round(c/6e4)>(n||10)?null:s.data}else return null}static async TryGet(t,n,i){let s;return s=yi.Get(t,i),s||(s=await n()),s}}var Ts=(e=>(e.ContentType="Content-Type",e.Token="token",e))(Ts||{}),kr=(e=>(e.ApplicationJson="application/json",e.MultipartFormData="multipart/form-data",e))(kr||{});const Ot=class Ot{static Setup(t="http://localhost",n,i="api"){this.baseUrl=wt.BuildSafeUrl(t,n,i),this.host=t,this.apiVersion=i}static newWebSocket(t){const n=this.host.replace("http","ws")+"/ws/"+t;return new WebSocket(n)}static download(t,n){const i=Ot.getDownloadFileName(t,n.headers);if(!(n.data instanceof Blob)){console.warn("download: response data is not a Blob");return}const s=URL.createObjectURL(n.data),r=document.createElement("a");r.href=s,r.setAttribute("download",i),r.setAttribute("target","_blank"),document.body.appendChild(r),r.click()}static getDownloadFileName(t,n){if(t)return t;const i=n["content-disposition"];if(!i)return"file";const s=i.indexOf('"')+1,r=i.lastIndexOf('"'),a=i.substring(s,r);return a||"file"}static getHeaders(t){const n=Ye.Get(Te.AccessToken);return t||(t=Ot.headers),n&&(t[Ts.Token]=n),t??Ot.headers}static returnResponse(t,n){if(n)return t!=null&&t.isBlob?Ot.download(t.downloadFileName,n):n.data}static async Get(t){return Ot.returnResponse(t,await Mo.Get(Ot.buildUrl((t==null?void 0:t.query)??""),Ot.getHeaders(t==null?void 0:t.headers),Ot.getResponseType(t==null?void 0:t.isBlob)))}static async Post(t){return Ot.returnResponse(t,await Mo.Post(Ot.buildUrl(t==null?void 0:t.query),Ot.getHeaders(t==null?void 0:t.headers),Ot.getResponseType(t.isBlob),Ot.createFormDataPayload(t==null?void 0:t.payload,t==null?void 0:t.fileInfos)))}static async Put(t){return Ot.returnResponse(t,await Mo.Put(Ot.buildUrl(t==null?void 0:t.query),Ot.getHeaders(t==null?void 0:t.headers),Ot.createFormDataPayload(t==null?void 0:t.payload,t==null?void 0:t.fileInfos)))}static async Delete(t){return Ot.returnResponse(t,await Mo.Delete(Ot.buildUrl(t==null?void 0:t.query),Ot.getHeaders(t==null?void 0:t.headers)))}static async Subscribe(t){const{query:n}=t;return new EventSource(Ot.buildUrl(n))}static buildUrl(t=""){try{return ds(this.baseUrl,t)}catch{throw new Error(`Invalid base URL: ${this.baseUrl}`)}}static getResponseType(t){return t?"blob":"json"}static createFormDataPayload(t,n){const i=new FormData;if(i.append("form",JSON.stringify(t)),n)for(const s of n)s.file&&i.append(s.id??"files",s.file,s.originalName);return i}};f(Ot,"baseUrl",""),f(Ot,"apiVersion","api"),f(Ot,"host",""),f(Ot,"headers",{[Ts.ContentType]:kr.ApplicationJson});let jt=Ot;const U=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},_u={},qu={style:{"text-align":"center"}};function $u(e,t){return o.openBlock(),o.createElementBlock("div",qu,[...t[0]||(t[0]=[o.createElementVNode("h1",null,"Страница не найдена",-1)])])}const Nr=U(_u,[["render",$u]]),tf=[{path:"/:pathMatch(.*)*",name:"NotFound",component:Nr}],Ve=class Ve{static Setup(t,n=""){this.router=t,this.title=n,this.ChangeDocumentTitle(),this.AddRoutes(tf)}static Get(){return this.router}static AddRoutes(t){t.forEach(n=>{this.Get().addRoute(n)})}static async To(t){await this.Get().push(t)}static async ToHome(){}static async Replace(t){await this.Get().replace(t)}static Id(){return Ve.GetStringParam("id")}static Slug(){return Ve.GetStringParam("slug")}static async Back(){this.Get().go(-1)}static GetQid(){return Ve.GetStringQueryParam("qid")}static Route(){var t;return(t=this.Get())==null?void 0:t.currentRoute.value}static RouterPushBlank(t){const n=this.Get().resolve({path:t});window.open(n==null?void 0:n.href,"_blank")}static GetPath(){var n;const t=(n=Ve.Route())==null?void 0:n.path.split("/");return!t||t.length<=0?"":t[t.length-1]}static async ToAdmin(t){if(!t){await this.Get().push("/admin");return}let n=t;n[0]==="/"&&(n=t.substring(1)),await Ve.To(`/admin/${n}`)}static GetStringQueryParam(t){return String(this.Route().query[t])}static GetNumberQueryParam(t){return Number(this.Route().query[t]??0)}static GetStringParam(t){var n;return(n=this.Route())==null?void 0:n.params[t]}static SetQueryParam(t,n){const i=new URL(window.location);i.searchParams.set(t,String(n)),history.replaceState(null,"",i)}static Resolve(t){return this.Get().resolve(t)}};f(Ve,"router"),f(Ve,"title",""),f(Ve,"ChangeDocumentTitle",(t="")=>{let n=Ve.Route().meta.title??t;n&&(n=" | "+n),document.title=Ve.title+n});let Ke=Ve;class Tt{constructor(t,n){f(this,"items",o.reactive([]));f(this,"item");f(this,"options",o.reactive([]));f(this,"count",o.ref(0));f(this,"classConstructor");f(this,"url","");f(this,"searchStr",o.ref(""));this.classConstructor=t,this.item=o.reactive(new this.classConstructor),this.url=n}Set(t){Object.assign(this.item,new this.classConstructor(t))}getUrl(t){return t?`${this.url}/${t}`:this.url}async GetOptions(t="name",n="id"){const i=`${this.getUrl()}/options/${t}/${n}`;try{const s=await jt.Get({query:i});s&&(this.options.splice(0,this.options.length),this.options.push(...s))}catch(s){console.warn("GetOptions failed:",s)}}async GetAll(t){try{let n;const i=jt.Get;t&&t.withCache?n=await yi.TryGet(this.getUrl(),i):n=await i({query:this.getUrl()}),Array.isArray(n)?this.SetAll(n):this.SetAllWithCount(n)}catch(n){console.warn("GetAll failed:",n)}}async Get(t){try{t||(t=Ke.Id()),this.Set(await jt.Get({query:this.getUrl(t)}))}catch(n){console.warn("Get failed:",n)}}async GetBySlug(t){try{t||(t=Ke.Slug()),this.Set(await W.H.HttpClient.Get({query:this.getUrl("by-slug/"+t)}))}catch(n){console.warn("GetBySlug failed:",n)}}async FTSP(t){var n;try{const s=((t==null?void 0:t.ftsp)??on.Get()).clearForHTTP(),r={payload:{ftsp:s},query:this.getUrl("ftsp")},a=await jt.Post(r);if(!a||!a.ftsp)return;if(Array.isArray(a.data))this.SetAll(a.data);else{if(s.p.append){this.AppendToAll((n=a.data)==null?void 0:n.items);return}this.SetAllWithCount(a.data)}}catch(i){console.warn("FTSP failed:",i)}}async Create(t){try{const n=t??this.item,i={payload:n,query:this.getUrl()};return n.getFileInfos&&(i.fileInfos=n.getFileInfos()),await jt.Post(i)}catch(n){console.warn("Create failed:",n)}}async CreateAndSet(t){const n=await this.Create(t);this.Set(n)}async CreateMany(t){if(!t)return;const n=[];t.forEach(i=>{n.push(new Promise(()=>this.Create(i)))}),Promise.all(n)}async Update(t){try{const n=t??this.item,i={query:this.getUrl(`${n.id}`),payload:n};return n.getFileInfos&&(i.fileInfos=n.getFileInfos(),i.fileInfos.forEach(s=>s.url="")),await jt.Put(i)}catch(n){console.warn("Update failed:",n)}}async UpdateAndSet(t){const n=await this.Update(t);this.Set(n)}async UpdateAndReset(t){await this.Update(t??this.item),this.Set()}async Remove(t){if(t)try{await jt.Delete({query:this.getUrl(`${t}`)}),this.RemoveItem(t)}catch(n){console.warn("Remove failed:",n)}}async UpdateMany(t){if(t||(t=this.items),!t)return;const n=[];t.forEach(i=>{n.push(new Promise(()=>this.Update(i)))}),Promise.all(n)}SetAll(t){this.items.splice(0,this.items.length),t&&this.items.push(...t.map(n=>new this.classConstructor(n)))}SetAllWithCount(t){this.SetAll(t.items),this.count.value=t.count}RemoveItem(t){const n=this.items.findIndex(i=>i.id===t);n<0||this.items.splice(n,1)}AppendToAll(t){if(t){if(Array.isArray(t)){const n=t.map(i=>new this.classConstructor(i));this.items.push(...n);return}this.items.push(new this.classConstructor(t))}}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){J.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(t){if(t){if(Array.isArray(t)){const n=t.map(i=>new this.classConstructor(i));this.items.unshift(...n);return}this.items.unshift(new this.classConstructor(t))}}get Items(){return this.items}get ItemsFiltered(){return this.searchStr.value.trim()?this.Items.filter(t=>W.H.Strings.SearchInFields(this.searchStr.value,t.SearchFields())):this.Items}get Options(){return this.options}get Item(){return this.item}get Count(){return this.count}get SearchStr(){return this.searchStr}}function ef(e,t){e=="left"&&t.next(),e=="right"&&t.prev()}const nf=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class of{static GetRandColor(t){return nn.GetRandEL(t??nf)}}function Dr(e,t){const n=[],i=t||Be.Asc,s=i===Be.Asc?Be.Desc:Be.Asc;return Object.values(e).forEach(r=>{n.push(r(i)),n.push(r(s))}),n.length>0&&!n.some(r=>r.default)&&(n[0].default=!0),t&&n.forEach(r=>{r.default&&(r.default=r.order===t)}),n}let sf=class{constructor(){f(this,"startHour",9);f(this,"endHour",19);f(this,"timelinePxHeight",50);f(this,"timelineStep",yo.FiveMinutes);f(this,"activeTime","");f(this,"activeObjectId","");f(this,"dragged",!1);f(this,"draggedStartTime","");f(this,"draggedEndTime","");f(this,"timelines",ei[yo.FiveMinutes])}startDrag(t,n){this.draggedStartTime=t,this.draggedEndTime=n,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(t){this.timelineStep=t,this.setTimelines()}setTimelines(){this.timelines=ei[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return nn.GenerateNumsRange(this.startHour,this.endHour)}};const Bs=e=>e===8||e===46,af=e=>e>46&&e<58,rf=e=>e>34&&e<41,lf=e=>e+".",cf=(e,t,n)=>{Bs(t)||rf(t)||(!af(t)||n>9)&&e.preventDefault()};function df(e,t){if(t>8){let n=e.substring(0,2).replace(".","1");Number(n)>31&&(n="31");let i=e.substring(3,5).replace(".","1");Number(i)>12&&(i="12");let s=e.substring(6,10).replace(".","1");Number(s)>2100&&(s="2100"),e=n+"."+i+"."+s}return e}function uf(e){const t=e.keyCode;let n=e.srcElement.value;const i=n.length;cf(e,t,i),!Bs(t)&&(i===2||i===5)&&(n=lf(n));const s=e.srcElement.value+String.fromCharCode(e.which);if(Bs(t)){e.srcElement.value=n;return}n.length===0&&Number(s)>3&&(n="3",e.preventDefault()),n.length===1&&Number(s)>31&&(n="31",e.preventDefault()),s.length===5&&Number(s.substring(3,5))>12&&(n=n.substring(0,3)+"12",e.preventDefault()),n=df(n,i),e.srcElement.value=n}const ff=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],hf="ru-RU";class Ze{constructor(){f(this,"locale","ru-RU")}static Format(t,n){if(!t)return"";const i={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return n&&(i.year=n.year||n.year===void 0?n.year:i.year,i.month=n.month||n.month===void 0?n.month:i.month,i.day=n.day||n.day===void 0?n.day:i.day,i.hour=n.hour??i.hour,i.minute=n.minute??i.minute),Intl.DateTimeFormat(hf,i).format(new Date(t))}static FormatWithTime(t){return Ze.Format(t,{month:"2-digit",day:"2-digit",year:"numeric",hour:"numeric",minute:"numeric"})}static FromRuStr(t){const n=t.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}static GetPeriod(t,n,i){return`${this.Format(t,i)}-${this.Format(n,i)}`}static GetShortDayName(t){return t?ff[t.getDay()]:""}static GetCurrentWeekPeriod(t){const n=new Date,i=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),s=new Date(n.getFullYear(),n.getMonth(),i.getDate()+7);return this.GetPeriod(i,s,t||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(t,n){const i=new Date,s=new Date,r=Ze.SplitHourTime(t),a=Ze.SplitHourTime(n);return i.setHours(r[0],r[1],0,0),s.setHours(a[0],a[1],0,0),(s.getTime()-i.getTime())/1e3/60}static HourTimeinMunutes(t){const n=Ze.SplitHourTime(t);return n[0]*60+n[1]}static SplitHourTime(t){const n=t.split(":");return[Number(n[0]),Number(n[1])]}static AddMinutesToHM(t,n){const i=new Date,s=Ze.SplitHourTime(t);i.setHours(s[0],s[1],0,0);const r=new Date(i.getTime()+n*6e4),a=r.getHours(),c=r.getMinutes();return`${a}:${c}`}static GetMonthsDiff(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}static StringToDate(t){const n=t.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}static GetDateOrToday(t){return t?t.date:new Date}static InPeriod(t,n,i){return new Date(t)>=new Date(n)&&new Date(t)<=new Date(i)}static GetDatesFromPeriod(t,n){const i=[new Date(t)];let s=t;for(;s<=n;)s=Ze.AddDays(s,1),i.push(s);return i}static AddDays(t,n){const i=new Date(t);return i.setDate(i.getDate()+n),i}static Eq(t,n){return t.getTime()===n.getTime()}}class mf{constructor(){f(this,"dragged",!1);f(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(t){this.dragged=!0,t&&t.dataTransfer&&t.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class Fr{static Get(t){const n=t.split(".");return n[n.length-1]}}const pf=(()=>{function e(r,a){localStorage.setItem(`${r}_favourite`,a.toString())}function t(r,a){const c=localStorage.getItem(`${r}_favourite`);return c?c.split(",").includes(a):!1}function n(r,a){const c=localStorage.getItem(`${r}_favourite`);if(!c){e(r,[a]);return}const l=c.split(",");l.push(a),e(r,l)}function i(r,a){const c=localStorage.getItem(`${r}_favourite`);if(!c)return;const l=c.split(",").filter(d=>d!==a);e(r,l)}function s(){for(const r in localStorage)r.includes("_favourite")&&localStorage.removeItem(r)}return{addToFavourite:n,removeFromFavourite:i,setFavourite:e,isFavourite:t,clearFavourite:s}})();class gf{constructor(){f(this,"list",[]);f(this,"defaultSortModel");f(this,"changeFlag",!1)}Set(t){this.Reset(),t&&(Array.isArray(t)?this.list=t:this.list=Dr(t),this.SetDefault())}SetDefault(){this.defaultSortModel=this.list.find(t=>t.default)??this.list[0],this.changeFlag=!this.changeFlag}Get(){return this.list}GetDefault(){return this.defaultSortModel}Reset(){this.list=[],this.defaultSortModel=void 0}}const On=new gf;function vf(){const e=o.ref(!1),t=o.ref(!1);return{confirmLeave:e,saveButtonClick:t,beforeWindowUnload:r=>{e.value&&r.preventDefault()},formUpdated:()=>{e.value=!0},showConfirmModal:(r,a)=>{e.value&&!t.value?r():a()}}}const yf=(()=>{const e=(r,a)=>o.onBeforeMount(async()=>{W.F.FTSP.Get().reset(),On.Set(a==null?void 0:a.sortsLib),await r()}),{saveButtonClick:t,showConfirmModal:n}=vf(),i=r=>Bc.onBeforeRouteLeave((a,c,l)=>{n((r||s)(),l)}),s=r=>async()=>{t.value=!0;try{r&&await r()}catch{return}};return{onBeforeMount:e,onBeforeRouteLeave:i,submit:s}})();function Vr(e,t){const n=[];if(e)for(let i=0;i<Math.ceil(e.length/t);i++)n[i]=e.slice(i*t,i*t+t);return n}class ks{constructor(){f(this,"items",[]);f(this,"idx",0);f(this,"key","")}preSelect(){const t=Ke.GetStringQueryParam(this.key);if(!t||t==="undefined"){this.Select(0);return}const n=this.items.findIndex(i=>i.slug===t);n>-1&&this.Select(n)}static Create(t,n){const i=new ks;return i.key=t,i.items=n,i.items.length&&i.preSelect(),i}Select(t){if(this.items.length){if(t===void 0)return this.preSelect();this.idx=t,Ke.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 os=class os{static Format(t){let n=t;if(!n)t=n;else{(n[0]==="7"||n[0]==="8")&&n.length!==1&&(n=n.slice(1));const i=n.replace(/\+7|[^\d]/g,""),s=i.length;switch(!0){case s===0:t="";break;case(s===1&&n.length===1&&i==="7"):case(s===1&&n.length===1&&i==="8"):t="+7 (";break;case s<4:t=`+7 (${i}`;break;case s<7:t=`+7 (${i.slice(0,3)}) ${i.slice(3)}`;break;case s<9:t=`+7 (${i.slice(0,3)}) ${i.slice(3,6)}-${i.slice(6,8)}`;break;default:t=`+7 (${i.slice(0,3)}) ${i.slice(3,6)}-${i.slice(6,8)}-${i.slice(8,10)}`;break}}return t}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};f(os,"validatePhone",(t,n,i)=>{os.getPhoneRegExp().test(n)||!n?i():i(new Error("Пожалуйста, введите корректный номер телефона"))});let Ns=os;class bf{static Count(t){const n=t.filter(r=>r.rating!==0);let i=0;n.forEach(r=>i=i+r.rating);const s=i/n.length;return isNaN(s)?0:Number((i/n.length).toFixed(2))}}class Sf{static async Auth(t){t&&t()}static Dev(){}}class wf{constructor(){f(this,"startHour",9);f(this,"startHM",`${this.startHour}:00`);f(this,"endHour",19);f(this,"endHM",`${this.endHour}:00`);f(this,"timelinePxHeight",50);f(this,"timelineStep",yo.FiveMinutes);f(this,"timelines",ei[yo.FiveMinutes])}periodIsCorrect(t,n){return vt.GtOrEq(t,this.startHM)&&vt.GtOrEq(this.endHM,n)}setTimelineStep(t){this.timelineStep=t,this.setTimelines()}setTimelines(){this.timelines=ei[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return nn.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(t,n,i,s){return s.filter(r=>r.id!==i).every(r=>!vt.PeriodsIntersects(t,n,r.startTime,r.endTime))}sortByStartTime(t){t.sort((n,i)=>vt.HMtoM(n.startTime)-vt.HMtoM(i.startTime))}}const Cf=-68;function Ef(e,t){if(!e){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(e),i=t??Cf;let s=0;n&&(s=n.getBoundingClientRect().top+i+document.body.scrollTop),s&&document.body.scrollTo({top:s,behavior:"smooth"})}class xf{static Sort(t){t.forEach((n,i)=>n.order=i)}}class bi{static Wait(t,n){return new Promise(i=>setTimeout(()=>i(n),t))}static WaitS(t,n){return bi.Wait(vt.S(t),n)}static WaitM(t,n){return bi.Wait(vt.M(t),n)}}function If(e,t){let n=!0;return e.value.validate(i=>(i||(n=!1),n)),n}const Pf=e=>new Promise(t=>{if(document.querySelector(e))return t(document.querySelector(e));const n=new MutationObserver(()=>{document.querySelector(e)&&(n.disconnect(),t(document.querySelector(e)))});n.observe(document.body,{childList:!0,subtree:!0})});let Rf=class Na{constructor(t){f(this,"id");f(this,"message","");f(this,"userName");f(this,"createdOn",new Date);f(this,"chatId");f(this,"type","message");J.BuildClass(this,t)}static Create(t,n,i,s){const r=new Na;return r.id=un(),r.chatId=t,r.message=i,r.userName=s,r}static CreatePingMessage(){const t=new Na;return t.type="ping",t.id=un(),t}isMessage(){return this.type==="message"||this.type===""}};const Mf="";class Of{constructor(t="",n="",i="set"){f(this,"client");f(this,"endpoint","");f(this,"query","");f(this,"period",2e4);J.BuildClass(this,{endpoint:t,query:n,mutation:i}),this.connect(),this.ping()}send(t){!this.client||this.client.readyState!==1||this.client.send(t)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(Rf.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=t=>{t.data})}buildUrl(){const t=`ws/${this.endpoint}/${this.query}`;return new URL(t,Mf.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 Af=(yt=class{},f(yt,"Arrays",nn),f(yt,"Axios",Mo),f(yt,"BaseStore",Tt),f(yt,"Cache",yi),f(yt,"Classes",J),f(yt,"CarouselSwipe",ef),f(yt,"Color",of),f(yt,"CreateSortModels",Dr),f(yt,"Cursor",sf),f(yt,"DateMask",uf),f(yt,"Dates",Ze),f(yt,"Dragger",mf),f(yt,"Extension",Fr),f(yt,"Favourite",pf),f(yt,"Hooks",yf),f(yt,"HttpClient",jt),f(yt,"Id",$t),f(yt,"MakeCarousel",Vr),f(yt,"Period",rs),f(yt,"PhoneService",Ns),f(yt,"Rating",bf),f(yt,"Router",Ke),f(yt,"RouterGuard",Sf),f(yt,"Scheduler",wf),f(yt,"Scroll",Ef),f(yt,"Sorter",xf),f(yt,"Static",us),f(yt,"Strings",wt),f(yt,"Time",vt),f(yt,"Timer",bi),f(yt,"Token",Ro),f(yt,"Menus",ks),f(yt,"validate",If),f(yt,"WaitElement",Pf),f(yt,"WebSocketClient",Of),yt);class Tf{constructor(){f(this,"limit",25);f(this,"count",0);f(this,"curPage",1);f(this,"storeModule","")}setCurPage(t){this.curPage=t}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const zr=new Tf;var Lr=(e=>(e.TableList="tableList",e.Default="",e))(Lr||{}),Qe=(e=>(e.None="None",e.Next="Next",e.Prev="Prev",e))(Qe||{}),Hr=(e=>(e.Year="Год",e.Month="Месяц",e.Week="Неделя",e.Day="День",e))(Hr||{}),Ur=(e=>(e.YouTube="YouTube",e.VK="VK",e.Instagram="Instagram",e.Facebook="Facebook",e))(Ur||{}),Ds=(e=>(e.simple="simple",e.oneToMany="oneToMany",e.manyToMany="manyToMany",e))(Ds||{});const Bf=Object.freeze(Object.defineProperty({__proto__:null,AdminLayout:Lr,Animations:Qe,CalendarScale:Hr,LocalStoreKeys:Te,SocialTypes:Ur,ValueRelation:Ds},Symbol.toStringTag,{value:"Module"}));let kf=class{async Login(t=oe.Form.GetValues()){const n=await jt.Post({query:"auth/login",payload:t});if(!n)throw"Ошибка авторизации";oe.Status.SetState(n)}async LoginAs(t){await jt.Post({query:"auth/login-as",payload:{email:t}})}async Register(t=oe.Form.GetValues()){const n=await jt.Post({query:"auth/register",payload:t});if(!n)throw n}async RestorePassword(t=oe.Form.GetValues()){await jt.Post({query:"auth/restore-password",payload:t})}async PasswordChange(t=oe.Form.GetValues()){t.id=Ke.GetStringParam("userId"),await jt.Put({query:"auth/password-change",payload:t})}async RefreshToken(){await jt.Post({query:"auth/refresh-token",payload:{refreshToken:Ro.getRefreshToken()}})}async CheckUuid(t){await jt.Get({query:`auth/check-uuid/${t.userId}/${t.uniqueId}`})}async ConfirmEmail(t){await jt.Get({query:`auth/confirm-email/${t}`})}async EmailIsConfirm(t){await jt.Get({query:`auth/email-is-confirm/${t}`})}};const Nf=new kf;var Df=Object.defineProperty,Si=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&Df(t,n,s),s};const Oo=class Rc{constructor(t){f(this,"id");f(this,"description","");f(this,"time","");f(this,"latitude","");f(this,"longitude","");f(this,"emails",[]);f(this,"postAddresses",[new ni]);f(this,"phones",[]);f(this,"websites",[]);J.BuildClass(this,t)}addEmail(){const t=En.Create();return t.contactId=this.id,this.emails.push(t),t}addPhone(){const t=xn.Create();return t.contactId=this.id,this.phones.push(t),t}static Create(){const t=new Rc;return t.id=$t.UUID(),t}removeEmail(t){J.RemoveFromClassById(t,this.emails)}removePhone(t){J.RemoveFromClassById(t,this.phones)}addPostAddress(){this.postAddresses.push(new ni)}addWebsite(){this.websites.push(new fs)}pushFirst(){this.emails.length||this.emails.push(new En),this.phones.length||this.phones.push(new xn)}getCoords(){return[Number(this.latitude),Number(this.longitude)]}updateDescription(t){this.description=t}updateTime(t){this.time=t}updateLatitude(t){this.latitude=t}updateLongitutde(t){this.longitude=t}};Si([J.GetClassConstructor(En)],Oo.prototype,"emails"),Si([J.GetClassConstructor(ni)],Oo.prototype,"postAddresses"),Si([J.GetClassConstructor(xn)],Oo.prototype,"phones"),Si([J.GetClassConstructor(fs)],Oo.prototype,"websites");let jr=Oo,Ff=class extends Tt{constructor(){super(jr,"contacts")}};const Vf=new Ff;let zf=class extends Tt{constructor(){super(En,"emails")}};const Lf=new zf;class Fs{constructor(t){f(this,"id");f(this,"ftsp");f(this,"name","");J.BuildClass(this,t)}static Create(t){const n=new Fs;return n.id=$t.UUID(),n.ftsp=JSON.stringify(t),n}}let Hf=class extends Tt{constructor(){super(Fs,"ftsp-presets")}};const Uf=new Hf;let jf=class extends Tt{constructor(){super(Wa,"humans")}};const Gf=new jf;let Wf=class extends Tt{constructor(){super(xn,"phones")}};const Xf=new Wf;class Yf{constructor(t){f(this,"id");f(this,"nameRus","");J.BuildClass(this,t)}}var Kf=Object.defineProperty,Zf=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&Kf(t,n,s),s};class Gr{constructor(t){f(this,"id");f(this,"nameRus","");f(this,"fields",[]);J.BuildClass(this,t)}}Zf([J.GetClassConstructor(Yf)],Gr.prototype,"fields");let Qf=class extends Tt{constructor(){super(Gr,"schemas")}};const Jf=new Qf;class Wr{constructor(t){f(this,"id","");f(this,"value","");f(this,"label","");f(this,"key","");f(this,"description","");f(this,"route","");f(this,"searchElementMetas",[]);J.BuildClass(this,t)}}class _f{constructor(t){f(this,"id");f(this,"name","");f(this,"label","");J.BuildClass(this,t)}}var qf=Object.defineProperty,Xr=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&qf(t,n,s),s};class to{constructor(t){f(this,"id");f(this,"key","");f(this,"label","");f(this,"order",0);f(this,"route","");f(this,"table","");f(this,"active",!0);f(this,"searchColumn","");f(this,"descriptionColumn","");f(this,"labelColumn","");f(this,"valueColumn","");f(this,"options",[]);f(this,"searchGroupMetaColumns",[]);J.BuildClass(this,t)}}Xr([J.GetClassConstructor(Wr)],to.prototype,"options"),Xr([J.GetClassConstructor(_f)],to.prototype,"searchGroupMetaColumns");class Vs{constructor(t){f(this,"query","");f(this,"key","");f(this,"params","");f(this,"suggester",!1);f(this,"mustBeTranslated",!0);f(this,"options",[]);f(this,"searchGroupId","");f(this,"searchGroups",[]);f(this,"searchGroup",new to);f(this,"searchObjects",[]);f(this,"pagination",new si);f(this,"count",0);t&&(this.query=t.query,t.searchGroups&&(this.searchGroups=t.searchGroups.map(n=>new to(n))),t.searchGroup&&(this.searchGroup=new to(t.searchGroup)),t.options&&(this.options=t.options.map(n=>new Wr(n))),this.count=t.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(t){const n=this.searchGroups.find(i=>i.id===t);n?this.searchGroup=n:this.searchGroup=new to}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(Ke.Route().query.groupId)}setQuery(){const t=Ke.Route().query.query;t&&(this.query=t)}}let $f=class{constructor(){f(this,"isSearchDrawerOpen",o.ref(!1));f(this,"searchModel",o.reactive(new Vs));f(this,"searchGroups",o.reactive([]));f(this,"count",0)}async Search(t){const n=await jt.Get({query:`search?key=${t.key}&query=${t.query}`});n&&n.searchGroup&&n.searchGroup.options.forEach(i=>{t.searchObjects.push({id:i.id,value:i.value,label:i.label,description:i.description})})}async mainSearch(t){this.SetSearchModel(await jt.Get({query:`search/main?searchModel=${t.toUrl()}`}))}async Full(t){t.options=[],t.searchGroups.forEach(i=>{i.options=[]});const n=await jt.Get({query:`search/main?searchModel=${t.toUrl()}`});return this.SetSearchModel(n),n}ToggleDrawer(t){this.isSearchDrawerOpen.value=t,this.searchModel=new Vs}SetSearchModel(t){t&&(this.searchModel=new Vs(t))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const zs=new $f;let th=class extends Tt{constructor(){super(oi,"users-accounts")}};const eh=new th;var he=(e=>(e.String="string",e.Text="text",e.Number="number",e.Date="date",e.DateTime="dateTime",e.Radio="radio",e.Set="set",e.Boolean="boolean",e.Files="files",e.File="file",e.MatrixRadio="matrixRadio",e.MatrixSet="matrixSet",e))(he||{});class Yr{constructor(t){f(this,"id");f(this,"name",he.String);f(this,"valueRelation",Ds.simple);J.BuildClass(this,t)}isString(){return this.name==="string"}isNumber(){return this.name==="number"}isDate(){return this.name==="date"}isDateTime(){return this.name==="dateTime"}isRadio(){return this.name==="radio"}isSet(){return this.name==="set"}isText(){return this.name==="text"}isBoolean(){return this.name==="boolean"}isFile(){return this.name==="file"}isFiles(){return this.name==="files"}getComponentType(){if(this.name===he.Radio)return"RadioProp";if(this.name===he.Set)return"SetProp";if(this.name===he.Number)return"NumberProp";if(this.name===he.String)return"StringProp"}}let nh=class extends Tt{constructor(){super(Yr,"value-types")}};const oh=new nh;let Kr=(Oe=class{},f(Oe,"Auth",Nf),f(Oe,"Contacts",Vf),f(Oe,"Emails",Lf),f(Oe,"FileInfos",new Tt(se,"file-infos")),f(Oe,"FTSPPresets",Uf),f(Oe,"Humans",Gf),f(Oe,"Phones",Xf),f(Oe,"Schemas",Jf),f(Oe,"UserAccounts",eh),f(Oe,"ValueTypes",oh),f(Oe,"Search",zs),Oe);var fn=(e=>(e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e))(fn||{});let ih=(wn=class{},f(wn,"Orders",Be),f(wn,"Sizes",fn),f(wn,"Statuses",Mt),f(wn,"DataTypes",te),f(wn,"ValueTypes",he),f(wn,"Operators",Ut),wn);class sh{constructor(){f(this,"title","");f(this,"buttons",[]);f(this,"editTitle",o.ref(!1));f(this,"showEdit",o.ref(!1))}Set(t="",n){typeof t=="function"?this.title=t():typeof t=="string"?this.title=t:this.title=t.value,this.buttons=n}}const ah=new sh;class rh{constructor(){f(this,"menu",[]);f(this,"path","");f(this,"isOpen",!0);f(this,"filterString","")}Set(t){this.menu=t}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(t=>{var n;return wt.SearchIn(t.name,this.filterString)||((n=t.children)==null?void 0:n.some(i=>wt.SearchIn(i.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(t){this.path=t}GetPath(){return this.path}SetFilter(t){this.filterString=t}GetChildren(t){var n;return this.filterString?(n=t.children)==null?void 0:n.filter(i=>wt.SearchIn(i.name,this.filterString)):t.children}}const lh=new rh;class ch{constructor(){f(this,"Menu",o.reactive(lh));f(this,"Head",o.reactive(ah))}}const dh=new ch,Zr="Да",Qr="Нет";class uh extends Yn{constructor(){super(...arguments);f(this,"confirmButtonText",Zr);f(this,"cancelButtonText",Qr);f(this,"persistent",!0);f(this,"resolve");f(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(n){const i=typeof n=="string"?{text:n}:n;return this.confirmButtonText=i.confirmButtonText??Zr,this.cancelButtonText=i.cancelButtonText??Qr,this.persistent=i.persistent??!0,super.showMessage(i,this.type),new Promise((s,r)=>{if(this.resolve=s,this.reject=r,typeof it.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(()=>r({type:"cancel"}));return}const a=it.Dialog.create({title:this.title||void 0,message:this.text,html:Yn.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(()=>s({type:"submit"}))),a.onCancel(()=>this.Settle(()=>r({type:"cancel"}))),a.onDismiss(()=>this.Settle())})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.Settle(()=>{var n;return(n=this.resolve)==null?void 0:n.call(this,!0)})}Cancel(){this.Settle(()=>{var n;return(n=this.reject)==null?void 0:n.call(this)})}Settle(n){n==null||n(),this.resolve=void 0,this.reject=void 0}}const fh=new uh;class hh{constructor(){f(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class mh extends hh{Show(){super.show()}Hide(){super.hide()}}const ph=new mh;class hn{}f(hn,"Admin",dh),f(hn,"Dialog",fh),f(hn,"Loading",ph),f(hn,"Notify",Xe),f(hn,"Btn",Cn),f(hn,"Input",Va);class W{}f(W,"Auth",o.reactive(oe)),f(W,"UI",o.reactive(hn)),f(W,"Paginator",o.reactive(zr)),f(W,"S",Kr),f(W,"H",Af),f(W,"C",$c),f(W,"T",ih),f(W,"I",Bf),f(W,"F",id);class Jr{constructor(t){f(this,"id");f(this,"name","");f(this,"address","");f(this,"number");f(this,"building");f(this,"buildingId");W.H.Classes.BuildClass(this,t),this.setName()}setName(){this.building&&(this.name=this.building.address+", вход "+this.number,this.address=this.name)}getBuildingNumber(){var t;return String((t=this.building)==null?void 0:t.number)}getEntranceNumber(){return String(this.number)}}class _r{constructor(t){f(this,"id");f(this,"number");f(this,"buildingId");W.H.Classes.BuildClass(this,t)}}var gh=Object.defineProperty,qr=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&gh(t,n,s),s};class wi{constructor(t){f(this,"id");f(this,"number","");f(this,"address","");f(this,"name","");f(this,"status","");f(this,"description","");f(this,"floors",[]);f(this,"entrances",[]);W.H.Classes.BuildClass(this,t)}}qr([W.H.Classes.GetClassConstructor(_r)],wi.prototype,"floors"),qr([W.H.Classes.GetClassConstructor(Jr)],wi.prototype,"entrances");const vh=Object.freeze(Object.defineProperty({__proto__:null,Building:wi,Entrance:Jr,Floor:_r},Symbol.toStringTag,{value:"Module"}));let yh=class extends Tt{constructor(){super(wi,"buildings")}};const bh=new yh,Sh=Object.freeze(Object.defineProperty({__proto__:null,C:vh,S:Object.freeze(Object.defineProperty({__proto__:null,BuildingsStore:bh},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));var eo=(e=>(e.Ping="ping",e.Enter="enter",e.Exit="exit",e.Message="message",e.Write="write",e.Empty="",e))(eo||{});class An{constructor(t){f(this,"id");f(this,"userId");f(this,"chatId");f(this,"message","");f(this,"fileInfo",new W.C.FileInfo);f(this,"createdAt",new Date);f(this,"type",eo.Message);J.BuildClass(this,t)}static Create(t,n,i){const s=new An;return s.id=W.H.Id.UUID(),s.chatId=n,s.userId=i,s.message=t,s}static CreatePingMessage(){const t=new An;return t.type=eo.Ping,t.id=W.H.Id.UUID(),t}isMessage(){return this.type===eo.Message||this.type===eo.Empty}}var wh=Object.defineProperty,Ch=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&wh(t,n,s),s};const $r=class Mc{constructor(t){f(this,"id");f(this,"name","");f(this,"createdAt",new Date);f(this,"newMesage","");f(this,"userId","");f(this,"chatMessages",[]);W.H.Classes.BuildClass(this,t)}static Create(){const t=new Mc;return t.id=W.H.Id.UUID(),t}addMessage(){if(this.newMesage==="")return;const t=An.Create(this.newMesage,this.id,this.userId);return this.chatMessages.push(t),this.newMesage="",t}};Ch([W.H.Classes.GetClassConstructor(An)],$r.prototype,"chatMessages");let tl=$r;const Eh=Object.freeze(Object.defineProperty({__proto__:null,Chat:tl,ChatMessage:An},Symbol.toStringTag,{value:"Module"}));let xh=class extends Tt{constructor(){super(An,"chat-messages")}};const Ih=new xh;let Ph=class extends Tt{constructor(){super(tl,"chats")}};const Rh=new Ph,Mh=Object.freeze(Object.defineProperty({__proto__:null,C:Eh,S:Object.freeze(Object.defineProperty({__proto__:null,ChatMessages:Ih,Chats:Rh},Symbol.toStringTag,{value:"Module"})),T:(ka=class{},f(ka,"ChatMessage",eo),ka)},Symbol.toStringTag,{value:"Module"}));class el{constructor(t){f(this,"id");f(this,"num","");f(this,"fileInfoId");f(this,"fileInfo",new se);W.H.Classes.BuildClass(this,t)}}class Ao{constructor(t){f(this,"id");f(this,"passportId");f(this,"fileInfoId");f(this,"fileInfo",new W.C.FileInfo);f(this,"order",0);J.BuildClass(this,t)}static Create(t){const n=new Ao;return n.id=W.H.Id.UUID(),n.passportId=t,n}}var Oh=Object.defineProperty,Ah=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&Oh(t,n,s),s};class Ls{constructor(t){f(this,"id");f(this,"num","");f(this,"seria","");f(this,"division","");f(this,"divisionCode","");f(this,"citzenship","");f(this,"date",new Date);f(this,"address","");f(this,"passportScans",[]);J.BuildClass(this,t)}}Ah([J.GetClassConstructor(Ao)],Ls.prototype,"passportScans");class nl{constructor(t){f(this,"id");f(this,"num","");f(this,"fileInfoId");f(this,"fileInfo",new se);W.H.Classes.BuildClass(this,t)}}const Th=Object.freeze(Object.defineProperty({__proto__:null,Inn:el,Passport:Ls,PassportScan:Ao,Snils:nl},Symbol.toStringTag,{value:"Module"}));let Bh=class extends Tt{constructor(){super(el,"inns")}};const kh=new Bh;let Nh=class extends Tt{constructor(){super(Ao,"passport-scans")}};const Dh=new Nh;let Fh=class extends Tt{constructor(){super(Ls,"passports")}};const Vh=new Fh;let zh=class extends Tt{constructor(){super(nl,"snilss")}};const Lh=new zh,Hh=Object.freeze(Object.defineProperty({__proto__:null,C:Th,S:Object.freeze(Object.defineProperty({__proto__:null,Inns:kh,PassportScans:Dh,Passports:Vh,Snilss:Lh},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Hs{constructor(t){f(this,"id");f(this,"name","");W.H.Classes.BuildClass(this,t)}static Create(t){const n=new Hs;return n.id=W.H.Id.UUID(),n.name=t,n}}const Uh=Object.freeze(Object.defineProperty({__proto__:null,Extract:Hs},Symbol.toStringTag,{value:"Module"})),jh=[{path:"/admin/extracts",name:"ExtractsList",component:()=>Promise.resolve().then(()=>$y)}];class To{constructor(t){f(this,"id");f(this,"name","");f(this,"label","");W.H.Classes.BuildClass(this,t)}static Create(t,n){const i=new To;return i.id=W.H.Id.UUID(),i.name=t,i.label=n,i}}let Gh=class extends Tt{constructor(){super(To,"extracts")}};const Wh=new Gh,Xh=Object.freeze(Object.defineProperty({__proto__:null,C:Uh,R:jh,S:Object.freeze(Object.defineProperty({__proto__:null,ExtractsStore:Wh},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Tn{constructor(t){f(this,"id");f(this,"name","");f(this,"score",0);f(this,"order",0);f(this,"showMoreQuestions",!1);f(this,"showOther",!1);f(this,"fieldId");f(this,"isMatrixY",!1);W.H.Classes.BuildClass(this,t)}static Create(t){const n=new Tn;return n.id=W.H.Id.UUID(),n.fieldId=t,n}}class ol{constructor(t){f(this,"id");f(this,"name","");f(this,"order",0);f(this,"fieldId");W.H.Classes.BuildClass(this,t)}}class Us{constructor(t){f(this,"id");f(this,"name","");f(this,"order",0);W.H.Classes.BuildClass(this,t)}}class no{constructor(t){f(this,"id");f(this,"name","");f(this,"fieldId");W.H.Classes.BuildClass(this,t)}static Create(t){const n=new no;return n.id=W.H.Id.UUID(),n.fieldId=t,n}}var Yh=Object.defineProperty,Bo=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&Yh(t,n,s),s};const Bn=class is{constructor(t){f(this,"id");f(this,"name","");f(this,"code","");f(this,"valueTypeId");f(this,"order",0);f(this,"ageCompare",!1);f(this,"answerVariants",[]);f(this,"answerVariantsForDelete",[]);f(this,"fieldExamples",[]);f(this,"fieldVariants",[]);f(this,"valueType",new Yr);f(this,"fieldMeasures",[]);f(this,"showSet",!1);f(this,"showRadio",!1);f(this,"isEdit",!1);f(this,"children",[]);f(this,"parentId");f(this,"formSectionId");f(this,"selected",!1);W.H.Classes.BuildClass(this,t),this.changeRelation([this.valueType])}getMatrixX(){return this.answerVariants.filter(t=>!t.isMatrixY)}getMatrixY(){return this.answerVariants.filter(t=>t.isMatrixY)}static Create(t){const n=new is;return n.id=W.H.Id.UUID(),n.formSectionId=t,n}getRegisterPropertyRadioOriginalValue(t){const n=this.answerVariants.find(i=>i.id===t);return n?n.name:""}addRadioItem(t){const n=new Tn(t);n.order=this.answerVariants.length,this.answerVariants.push(n)}removeRadioItem(t){const n=this.answerVariants[t].id;n&&this.answerVariantsForDelete.push(n),this.answerVariants.splice(t,1)}changeRelation(t){const n=t.find(i=>i.id===this.valueTypeId);if(n){if(n.isRadio()){this.showRadio=!0,this.showSet=!1;return}if(n.isSet()){this.showSet=!0,this.showRadio=!1;return}this.showSet=!1,this.showRadio=!1,this.valueType=n}}editRegisterProperty(t){this.isEdit=t??!this.isEdit}sortExamples(){this.fieldExamples.forEach((t,n)=>t.order=n)}addRegisterPropertyMeasure(t){this.fieldMeasures.push(new Us(t))}addRegisterPropertyVariant(){this.fieldVariants.push(new no)}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}static GetClassName(){return"Field"}setType(t){this.valueType=t,this.valueTypeId=t.id}setName(t){this.name=t}addAnswerVariant(){const t=Tn.Create(this.id);return t.name="Вариант",t.order=this.answerVariants.length,this.answerVariants.push(t),t}addChild(){const t=is.Create();return t.parentId=this.id,t.name="Вопрос",t.order=this.children.length,this.children.push(t),t}addFieldVariant(){const t=no.Create(this.id);return this.fieldVariants.push(t),t}copy(){const t=new is(this);return t.id=W.H.Id.UUID(),t.answerVariants.forEach(n=>{n.id=W.H.Id.UUID(),n.fieldId=t.id}),t.children=t.children.map(n=>{const i=n.copy();return i.parentId=t.id,i}),t}};Bo([W.H.Classes.GetClassConstructor(Tn)],Bn.prototype,"answerVariants"),Bo([W.H.Classes.GetClassConstructor(ol)],Bn.prototype,"fieldExamples"),Bo([W.H.Classes.GetClassConstructor(no)],Bn.prototype,"fieldVariants"),Bo([W.H.Classes.GetClassConstructor(Us)],Bn.prototype,"fieldMeasures"),Bo([W.H.Classes.GetClassConstructor(Bn)],Bn.prototype,"children");let Ci=Bn;class js{constructor(t){f(this,"id");f(this,"answerId");f(this,"comment","");f(this,"fileInfoId");f(this,"fileInfo",new se);W.H.Classes.BuildClass(this,t)}}class kn{constructor(t){f(this,"id");f(this,"answerVariantId");f(this,"answerVariantIdY");f(this,"fieldFillId");W.H.Classes.BuildClass(this,t)}static Create(t,n){const i=new kn;return i.id=un(),i.fieldFillId=t,i.answerVariantId=n,i}static GetClassName(){return"selectedAnswerVariant"}}var Kh=Object.defineProperty,il=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&Kh(t,n,s),s};const Gs=class Da{constructor(t){f(this,"id");f(this,"valueString");f(this,"valueOther");f(this,"valueNumber");f(this,"valueDate");f(this,"fileInfo",new se);f(this,"fileInfoId");f(this,"order",0);f(this,"selectedAnswerVariants",[]);f(this,"patientId");f(this,"fieldId");f(this,"formFillId");f(this,"answerVariantId");f(this,"filled",!1);f(this,"researchResultId");f(this,"answerFiles",[]);f(this,"answerFilesForDelete",[]);W.H.Classes.BuildClass(this,t)}setFilled(t){this.filled=t}static Create(t,n){const i=new Da;return i.id=un(),i.fieldId=t.id,i.formFillId=n,i.order=t.order,i.valueNumber=0,i.valueString="",i.valueDate=new Date,i}setString(t){this.valueString=t,this.valueString&&(this.filled=this.valueString.length>0)}setNumber(t){this.valueNumber=t,this.valueNumber&&(this.filled=!0)}setOther(t){this.valueOther=t,this.valueOther&&(this.filled=this.valueOther.length>0)}setDate(t){this.valueDate=t,this.filled=!0}setRadio(t){this.answerVariantId=t,this.filled=!!this.answerVariantId}static CreateMany(t,n){return t.map(i=>Da.Create(i,n))}addFile(){const t=new js;return t.id=un(),t.answerId=this.id,this.answerFiles.push(t),t}getFileInfos(){const t=[];return this.answerFiles.forEach(n=>t.push(n.fileInfo)),t}getSelectedAnswerVariant(){return!0}setMatrixRadioValue(t,n){const i=kn.Create(this.id,t);return i.answerVariantIdY=n,this.selectedAnswerVariants.push(i),this.filled=!0,i}getMatrixValue(t,n){return this.selectedAnswerVariants.find(i=>i.answerVariantId===t&&i.answerVariantIdY===n)}addSelectedAnswerVariant(t){const n=kn.Create(this.id,t);return this.selectedAnswerVariants.push(n),this.filled=!0,n}static GetClassName(){return"answer"}showOther(t){const n=t.find(i=>i.showOther);return n?this.answerVariantId===n.id||this.selectedAnswerVariants.some(i=>i.answerVariantId===n.id):!1}};il([W.H.Classes.GetClassConstructor(kn)],Gs.prototype,"selectedAnswerVariants"),il([W.H.Classes.GetClassConstructor(js)],Gs.prototype,"answerFiles");let oo=Gs;class Zh{constructor(t){f(this,"id");f(this,"fieldId");W.H.Classes.BuildClass(this,t)}static GetClassName(){return"fieldFilter"}}var Qh=Object.defineProperty,Jh=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&Qh(t,n,s),s};const sl=class Oc{constructor(t){f(this,"id");f(this,"name","");f(this,"order",0);f(this,"fields",[]);f(this,"formId");W.H.Classes.BuildClass(this,t)}static GetClassName(){return"formSection"}getN(){return`${this.order+1}`}getFieldN(t){return`${this.getN()}.${t+1}`}getSubFieldN(t,n){return`${this.getFieldN(t)}.${n+1}`}static Create(t){const n=new Oc;return n.id=W.H.Id.UUID(),n.formId=t,n}addField(){const t=Ci.Create(this.id);return this.fields.push(t),this.sortFields(),t}sortFields(){this.fields.forEach((t,n)=>t.order=n)}getAnswerVariants(){const t=[];return this.fields.forEach(n=>t.push(...n.answerVariants)),t}};Jh([W.H.Classes.GetClassConstructor(Ci)],sl.prototype,"fields");let Ei=sl;var _h=Object.defineProperty,qh=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&_h(t,n,s),s};const al=class Ac{constructor(t){f(this,"id");f(this,"name","");f(this,"order",0);f(this,"isLaboratory",!1);f(this,"formSections",[]);f(this,"isEdit",!1);f(this,"withDates",!1);f(this,"withScores",!1);f(this,"selectedForExport",!1);f(this,"filterString","");f(this,"showOnlyNotFilled",!1);f(this,"showOnlyFilled",!1);W.H.Classes.BuildClass(this,t)}static GetClassName(){return"Form"}static Create(){const t=new Ac;return t.id=W.H.Id.UUID(),t}editRegisterGroup(t){this.isEdit=t??!this.isEdit}addFormSection(){const t=Ei.Create(this.id);return this.formSections.push(t),W.H.Sorter.Sort(this.formSections),t}getFields(){const t=this.formSections.map(i=>i.fields).flat(),n=t.map(i=>i.children).flat();return t.concat(n).filter(i=>i.children.length===0)}};qh([W.H.Classes.GetClassConstructor(Ei)],al.prototype,"formSections");let rl=al;var $h=Object.defineProperty,tm=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&$h(t,n,s),s};const ll=class Tc{constructor(t){f(this,"id");f(this,"date",new Date);f(this,"editMode",!1);f(this,"userFormId");f(this,"fillingPercentage",0);f(this,"fieldFills",[]);f(this,"num","");f(this,"formId");W.H.Classes.BuildClass(this,t)}static Create(t){const n=new Tc;return n.id=W.H.Id.UUID(),n.formId=t.id,n.fieldFills.push(...oo.CreateMany(t.getFields(),n.id)),n}addFieldFill(t){this.fieldFills.push(t)}getFieldFill(t){var n;return(n=this.fieldFills)==null?void 0:n.find(i=>i.fieldId===t)}pushRegisterProperty(t){const n=new oo;n.researchResultId=t,this.fieldFills.push(n)}getRegisterPropertyToPatient(t){return this.fieldFills.filter(n=>n.researchResultId===t)}getOrCreateFieldFill(t){let n=this.getFieldFill(t.id);return n||(n=oo.Create(t),this.addFieldFill(n)),n}getFileInfos(){const t=[];return this.fieldFills.forEach(n=>t.push(...n.getFileInfos())),t}calculateFilling(){const t=this.fieldFills.filter(i=>i.filled).length,n=this.fieldFills.length;this.fillingPercentage=Math.round(t/n*100)}getFieldFillByFieldId(t){return this.fieldFills.find(n=>n.fieldId===t)}getFieldVariantFieldFill(t){return this.fieldFills.find(n=>n.answerVariantId===t)}getFieldsFieldFillsMap(t){const n={};return t.forEach(i=>{var s;if(i.code){const r=(s=this.getFieldFillByFieldId(i.id))==null?void 0:s.valueNumber;n[i.code]=r}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};tm([W.H.Classes.GetClassConstructor(oo)],ll.prototype,"fieldFills");let cl=ll;const em=Object.freeze(Object.defineProperty({__proto__:null,AnswerVariant:Tn,Field:Ci,FieldExample:ol,FieldFill:oo,FieldFillFile:js,FieldFilter:Zh,FieldMeasure:Us,FieldVariant:no,Form:rl,FormFill:cl,FormSection:Ei,SelectedAnswerVariant:kn},Symbol.toStringTag,{value:"Module"}));let nm=class extends Tt{constructor(){super(Tn,"answer-variants")}};const om=new nm;let im=class extends Tt{constructor(){super(oo,"field-fills")}};const sm=new im;let am=class extends Tt{constructor(){super(Ci,"fields")}};const rm=new am;let lm=class extends Tt{constructor(){super(cl,"form-fills")}};const cm=new lm;let dm=class extends Tt{constructor(){super(Ei,"form-sections")}};const um=new dm;let fm=class extends Tt{constructor(){super(rl,"forms")}};const hm=new fm;let mm=class extends Tt{constructor(){super(kn,"selected-answer-variants")}};const pm=new mm,gm=Object.freeze(Object.defineProperty({__proto__:null,C:em,S:Object.freeze(Object.defineProperty({__proto__:null,AnswerVariants:om,FieldFills:sm,Fields:rm,FormFills:cm,FormSections:um,Forms:hm,SelectedAnswerVariants:pm},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class xi{constructor(t){f(this,"id");f(this,"name","");f(this,"link","");f(this,"selected",!1);f(this,"hide",!1);f(this,"editMode",!1);f(this,"color","");f(this,"background","");f(this,"order",0);f(this,"menuId");f(this,"iconId");f(this,"icon",new se);f(this,"iconName","");f(this,"svgCode","");J.BuildClass(this,t)}addFile(t){this.icon.id||(this.icon.id=$t.UUID()),this.icon.originalName=t.name,this.icon.file=t.raw}}var vm=Object.defineProperty,ym=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&vm(t,n,s),s};class Ws{constructor(t){f(this,"id");f(this,"name","");f(this,"link","");f(this,"top",!0);f(this,"side",!0);f(this,"show",!1);f(this,"hide",!1);f(this,"active",!1);f(this,"order",0);f(this,"selected",!1);f(this,"editMode",!1);f(this,"subMenus",[]);f(this,"subMenusForDelete",[]);f(this,"iconId");f(this,"icon",new se);J.BuildClass(this,t)}withoutChildren(){return this.subMenus.length===0}getFileInfos(){const t=[];return t.push(this.icon),this.subMenus.forEach(n=>{t.push(n.icon)}),t}addFile(t){this.icon.id||(this.icon.id=$t.UUID()),this.icon.originalName=t.name,this.icon.file=t.raw}addSubMenu(){this.subMenus.push(new xi)}removeSubMenu(t){const n=this.subMenus[t].id;n&&this.subMenusForDelete.push(n),this.subMenus.splice(t,1)}setColorsForSubMenus(){const t=["#00A248","#E63021","#006BB5","#F3911F","#6F6D6B"];let n=0;this.subMenus.forEach(i=>{i.color=t[n],n=t.length-1?n=0:n++})}containPath(t){return this.link===t||!!this.subMenus.find(n=>n.link===t)}static GetClassName(){return"menu"}}ym([J.GetClassConstructor(xi)],Ws.prototype,"subMenus");const bm=Object.freeze(Object.defineProperty({__proto__:null,Menu:Ws,SubMenu:xi},Symbol.toStringTag,{value:"Module"}));let Sm=class extends W.H.BaseStore{constructor(){super(Ws,"menus")}};const wm=new Sm;let Cm=class extends W.H.BaseStore{constructor(){super(xi,"sub-menus")}};const Em=new Cm,xm=Object.freeze(Object.defineProperty({__proto__:null,C:bm,S:Object.freeze(Object.defineProperty({__proto__:null,Menus:wm,SubMenus:Em},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Ii{constructor(t){f(this,"id","");f(this,"name","");f(this,"component","");f(this,"order");f(this,"active",!1);f(this,"key",0);J.BuildClass(this,t)}static Create(t,n,i,s,r){const a=new Ii;return a.id=t,a.name=n,a.component=i,a.order=s,a.active=!!r,a}}var dl=(e=>(e.User="USER",e.Admin="ADMIN",e))(dl||{});class Im{constructor(t){f(this,"id");f(this,"name",dl.User);f(this,"label","");f(this,"startPage","");J.BuildClass(this,t)}}class Xs{constructor(t){f(this,"id");f(this,"document",new se);f(this,"documentId");f(this,"pageId");J.BuildClass(this,t)}}var Pm=Object.defineProperty,Rm=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&Pm(t,n,s),s};class Pi{constructor(t){f(this,"id");f(this,"pageId");f(this,"fileInfoId");f(this,"fileInfo");f(this,"description");J.BuildClass(this,t)}}Rm([J.GetClassConstructor(se)],Pi.prototype,"fileInfo");class Ri{constructor(t){f(this,"id");f(this,"name","");f(this,"order",0);f(this,"downloadToFile",!1);f(this,"pageSectionId");f(this,"scan",new se);f(this,"scanId");J.BuildClass(this,t)}getFileInfos(){return[this.scan]}getFileName(){return this.name?this.name:this.scan.originalName}}var Mm=Object.defineProperty,Om=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&Mm(t,n,s),s};class io{constructor(t){f(this,"id");f(this,"name","");f(this,"singleScan",!1);f(this,"scan");f(this,"scanId");f(this,"order",0);f(this,"description","");f(this,"scans",[]);f(this,"scansForDelete",[]);f(this,"pageSectionDocuments",[]);f(this,"pageSideMenuId");f(this,"pageId");f(this,"text","");f(this,"documents",[]);J.BuildClass(this,t),this.documents=this.pageSectionDocuments,this.text=this.description.replace("<p>undefined</p>","")}addDocument(){const t=new Ri;t.order=this.pageSectionDocuments.length-1,this.pageSectionDocuments.push(t)}getFileInfos(){const t=[];return this.pageSectionDocuments.forEach(n=>{t.push(...n.getFileInfos())}),t}infoExists(t){const n=wt.SearchIn(this.name,t),i=wt.SearchIn(this.description,t),s=this.getDocuments(t);return n||i||s.length>0}getDocuments(t){return this.pageSectionDocuments.filter(n=>wt.SearchIn(n.name,t))}getDescription(t){return t?wt.WrapSubStr(this.description,t):this.description}filter(t){if(!t){this.text=this.description,this.documents=this.pageSectionDocuments;return}this.text=wt.SearchIn(this.description,t)?wt.WrapSubStr(this.description,t):"",this.documents=this.pageSectionDocuments.filter(n=>wt.SearchIn(n.name,t))}}Om([J.GetClassConstructor(Ri)],io.prototype,"pageSectionDocuments");var Am=Object.defineProperty,Tm=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&Am(t,n,s),s};class mn{constructor(t){f(this,"id");f(this,"name","Новое меню");f(this,"order",0);f(this,"description","");f(this,"routeAnchor","");f(this,"slug","");f(this,"pageSections",[]);f(this,"showContent",!1);f(this,"pageId");f(this,"selected",!1);f(this,"sections",[]);f(this,"text","");J.BuildClass(this,t),this.sections=this.pageSections,this.text=this.description.replace("<p>undefined</p>","")}getFileInfos(){const t=[];return this.pageSections.forEach(n=>{t.push(...n.getFileInfos())}),t}addPageSection(){const t=new io;t.order=this.pageSections.length+1,t.name=`Новой раздел ${t.order}`,t.id=$t.UUID(),this.pageSections.push(t)}infoExists(t){const n=wt.SearchIn(this.name,t),i=wt.SearchIn(this.description,t),s=this.getPageSections(t).length>0;return n||i||s}getPageSections(t){return t.length?this.pageSections.filter(n=>n.infoExists(t)):this.pageSections}filter(t){t.length?(this.sections=this.pageSections.filter(n=>n.infoExists(t)),this.text=wt.SearchIn(this.description,t)?wt.WrapSubStr(this.description,t):""):(this.sections=this.pageSections,this.text=this.description),this.sections.forEach(n=>n.filter(t))}}Tm([J.GetClassConstructor(io)],mn.prototype,"pageSections");var Bm=Object.defineProperty,Mi=(e,t,n,i)=>{for(var s=void 0,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(t,n,s)||s);return s&&Bm(t,n,s),s};class so{constructor(t){f(this,"id");f(this,"title","");f(this,"content","");f(this,"slug","");f(this,"pagesGroup","Без группы");f(this,"link","");f(this,"withComments",!1);f(this,"showContacts",!1);f(this,"collaps",!1);f(this,"showContent",!1);f(this,"pageImages",[]);f(this,"pageImagesForDelete",[]);f(this,"pageImagesNames",[]);f(this,"pageSideMenus",[]);f(this,"menus",[]);f(this,"pageSideMenusForDelete",[]);f(this,"pageSections",[]);f(this,"pageSectionsForDelete",[]);f(this,"pageDocuments",[]);f(this,"contact",new jr);f(this,"contactId");f(this,"role",new Im);f(this,"roleId");f(this,"filterStr","");f(this,"activeMenuId","");J.BuildClass(this,t),this.menus=this.pageSideMenus}getActiveMenu(){const t=this.pageSideMenus.find(n=>n.id===this.activeMenuId);return t||this.pageSideMenus[0]}setActiveMenuId(t){this.activeMenuId=t}getLink(){return this.slug!==""?`/pages/${this.slug}`:"404"}getFileInfos(){const t=[];return this.pageSideMenus.forEach(n=>{t.push(...n.getFileInfos())}),this.pageImages.forEach(n=>{n.fileInfo&&t.push(n.fileInfo)}),t}addSideMenu(){const t=new mn;return t.order=this.pageSideMenus.length+1,t.name=`Новое меню ${t.order}`,t.id=$t.UUID(),this.pageSideMenus.push(t),t.id}selectSideMenu(t,n){if(!t&&this.pageSideMenus.length>0){this.pageSideMenus[0].selected=!0;return}this.pageSideMenus.forEach(i=>{n?i.selected=i.id===t:i.selected=i.slug===t})}getSelectedSideMenu(){const t=this.pageSideMenus.find(n=>n.selected);return t||new mn}addCustomSectionsToSideMenu(t){t.forEach(n=>{const i=new mn;i.id=n.id,i.name=n.name,typeof n.order<"u"?this.pageSideMenus.splice(n.order,0,i):this.pageSideMenus.push(i)})}getPageSideMenus(){if(this.showContacts&&!this.pageSideMenus.find(t=>t.id==="contacts")){const t=new mn;t.id="contacts",t.name="Контакты",this.pageSideMenus.push(t)}return this.filterStr===""?this.pageSideMenus:this.pageSideMenus.filter(t=>t.infoExists(this.filterStr))}filter(){this.filterStr===""?this.menus=this.pageSideMenus:this.menus=this.pageSideMenus.filter(t=>t.infoExists(this.filterStr)),this.menus.forEach(t=>t.filter(this.filterStr))}static GetClassName(){return"page"}}Mi([J.GetClassConstructor(Pi)],so.prototype,"pageImages"),Mi([J.GetClassConstructor(mn)],so.prototype,"pageSideMenus"),Mi([J.GetClassConstructor(io)],so.prototype,"pageSections"),Mi([J.GetClassConstructor(Xs)],so.prototype,"pageDocuments");const km=Object.freeze(Object.defineProperty({__proto__:null,CustomSection:Ii,Page:so,PageDocument:Xs,PageImage:Pi,PageSection:io,PageSectionDocument:Ri,PageSideMenu:mn},Symbol.toStringTag,{value:"Module"}));let Nm=class extends W.H.BaseStore{constructor(){super(Ii,"custom-sections")}};const Dm=new Nm;let Fm=class extends W.H.BaseStore{constructor(){super(Xs,"page-documents")}};const Vm=new Fm;let zm=class extends W.H.BaseStore{constructor(){super(Pi,"page-images")}};const Lm=new zm;let Hm=class extends W.H.BaseStore{constructor(){super(Ri,"page-section-documents")}};const Um=new Hm;let jm=class extends W.H.BaseStore{constructor(){super(io,"page-sections")}};const Gm=new jm;let Wm=class extends W.H.BaseStore{constructor(){super(mn,"page-side-menus")}};const Xm=new Wm;let Ym=class extends W.H.BaseStore{constructor(){super(so,"pages")}};const Km=new Ym,Zm=Object.freeze(Object.defineProperty({__proto__:null,C:km,S:Object.freeze(Object.defineProperty({__proto__:null,CustomSections:Dm,PageDocuments:Vm,PageImages:Lm,PageSectionDocuments:Um,PageSections:Gm,PageSideMenus:Xm,Pages:Km},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),Qm=Object.freeze(Object.defineProperty({__proto__:null,ColorTheme:To},Symbol.toStringTag,{value:"Module"}));let Jm=class extends Tt{constructor(){super(To,"color-themes")}};const _m=new Jm,qm=Object.freeze(Object.defineProperty({__proto__:null,Buildings:Sh,Chats:Mh,Docs:Hh,Extracts:Xh,Forms:gm,Menus:xm,Pages:Zm,Settings:Object.freeze(Object.defineProperty({__proto__:null,C:Qm,S:Object.freeze(Object.defineProperty({__proto__:null,ColorThemes:_m},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),ul=o.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(e){const t=o.useAttrs(),n=o.computed(()=>{const i={};for(const s of Object.keys(t))["label","color","text-color","outline","rounded","floating","multi-line","transparent"].includes(s)||(i[s]=t[s]);return i});return(i,s)=>(o.openBlock(),o.createBlock(o.unref(it.QBadge),o.mergeProps(o.unref(n),{label:e.label||void 0,color:e.color||void 0,"text-color":e.textColor||void 0,outline:e.outline,rounded:e.rounded,floating:e.floating,"multi-line":e.multiLine,transparent:e.transparent}),{default:o.withCtx(()=>[o.renderSlot(i.$slots,"default")]),_:3},16,["label","color","text-color","outline","rounded","floating","multi-line","transparent"]))}}),Le=o.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:fn.M,required:!1},type:{type:String,default:Mt.Primary,required:!1},fontSize:{type:String,default:"",required:!1},disabled:{type:Boolean,default:!1,required:!1}},setup(e){const t=e,n=o.useAttrs(),i=o.computed(()=>{const S={};for(const C of Object.keys(n))["disable","color","size","flat","outline","unelevated","type"].includes(C)||(S[C]=n[C]);return S}),s=["submit","button","reset"],r=o.computed(()=>s.includes(t.type)),a=o.computed(()=>r.value?t.type:void 0),c=o.computed(()=>r.value?Mt.Primary:t.type),l=o.computed(()=>{const S={};return t.margin&&(S.margin=t.margin),t.padding&&(S.padding=t.padding),t.width&&(S.maxWidth=t.width,S.minWidth=t.width),t.height&&(S.minHeight=t.height,S.maxHeight=t.height),t.fontSize&&(S.fontSize=t.fontSize),S}),d={[Mt.Primary]:"primary",[Mt.Success]:"positive",[Mt.Warning]:"warning",[Mt.Error]:"negative",[Mt.Info]:"info"},u=o.computed(()=>n.color!==void 0?n.color:d[c.value]??"primary"),h={[fn.XS]:"xs",[fn.S]:"sm",[fn.M]:"md",[fn.L]:"lg",[fn.XL]:"xl"},m=o.computed(()=>n.size!==void 0?n.size:["xs","sm","md","lg","xl"].includes(t.size)?t.size:h[t.size]??"md"),p=o.computed(()=>n.flat!==void 0?n.flat:["text","pag","text_ano"].includes(t.skin)),g=o.computed(()=>n.outline!==void 0?n.outline:t.skin==="invert"),v=o.computed(()=>n.unelevated!==void 0?n.unelevated:t.skin==="base"),b=o.computed(()=>n.disable??t.disabled);return(S,C)=>(o.openBlock(),o.createBlock(o.unref(it.QBtn),o.mergeProps(o.unref(i),{style:o.unref(l),color:o.unref(u),size:o.unref(m),flat:o.unref(p),outline:o.unref(g),unelevated:o.unref(v),disable:o.unref(b),type:o.unref(a),"no-wrap":""}),{default:o.withCtx(()=>[o.renderSlot(S.$slots,"default"),o.createTextVNode(" "+o.toDisplayString(e.text),1)]),_:3},16,["style","color","size","flat","outline","unelevated","disable","type"]))}}),fl=o.defineComponent({inheritAttrs:!1,__name:"PCheckBox",props:o.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:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const n=o.useModel(e,"modelValue"),i=t,s=o.useAttrs(),r=o.computed(()=>{const c={};for(const l of Object.keys(s))c[l]=s[l];return c}),a=()=>{i("change",n.value)};return(c,l)=>(o.openBlock(),o.createElementBlock("div",{class:"p-checkbox",style:o.normalizeStyle({padding:e.padding,margin:e.margin,maxWidth:e.width})},[o.createVNode(o.unref(it.QCheckbox),o.mergeProps({modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=d=>n.value=d)},o.unref(r),{label:e.label||void 0,size:e.size,style:{fontSize:e.fontSize},"onUpdate:modelValue":a}),null,16,["modelValue","label","size","style"])],4))}}),hl=o.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(e,{emit:t}){const n=t,i=o.useAttrs(),s=o.computed(()=>{const r={};for(const a of Object.keys(i))["label","color","text-color","outline","square","dense","removable"].includes(a)||(r[a]=i[a]);return r});return(r,a)=>(o.openBlock(),o.createBlock(o.unref(it.QChip),o.mergeProps(o.unref(s),{label:e.label||void 0,color:e.color||void 0,"text-color":e.textColor||void 0,outline:e.outline,square:e.square,dense:e.dense,removable:e.removable,onRemove:a[0]||(a[0]=c=>n("remove"))}),o.createSlots({default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:2},[r.$slots.avatar?{name:"avatar",fn:o.withCtx(()=>[o.renderSlot(r.$slots,"avatar")]),key:"0"}:void 0,r.$slots.remove?{name:"remove",fn:o.withCtx(()=>[o.renderSlot(r.$slots,"remove")]),key:"1"}:void 0]),1040,["label","color","text-color","outline","square","dense","removable"]))}}),pn=U(o.defineComponent({inheritAttrs:!1,__name:"PInput",props:o.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:o.mergeModels(["blur","input","focus","clear"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const i=n,s=o.useModel(e,"modelValue"),r=o.useAttrs(),a=o.computed(()=>typeof r.id=="string"?r.id:void 0),c=o.computed(()=>{const g={};for(const v of Object.keys(r))v!=="id"&&v!=="disable"&&(g[v]=r[v]);return g}),l=e,d=o.computed(()=>r.disable??l.disabled),u=o.ref(null);function h(){var g;(g=u.value)==null||g.focus()}t({focus:h});const m=()=>{i("input",s.value)},p=o.computed(()=>{const g={};return l.margin&&(g.margin=l.margin),l.padding&&(g.padding=l.padding),l.width&&(g.width=l.width),l.borderColor&&(g["--p-border-color"]=l.borderColor),g});return(g,v)=>(o.openBlock(),o.createBlock(o.unref(it.QInput),o.mergeProps({ref_key:"input",ref:u,modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=b=>s.value=b)},o.unref(c),{for:o.unref(a),label:e.label||void 0,mask:e.mask,disable:o.unref(d),rules:e.rules,"input-style":{color:e.color||void 0},style:o.unref(p),class:"p-input",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":m,onBlur:v[1]||(v[1]=b=>g.$emit("blur",s.value)),onFocus:v[2]||(v[2]=b=>g.$emit("focus",s.value)),onClear:v[3]||(v[3]=b=>g.$emit("clear"))}),o.createSlots({before:o.withCtx(()=>[o.renderSlot(g.$slots,"before",{},()=>[o.renderSlot(g.$slots,"default",{},void 0,!0)],!0)]),append:o.withCtx(()=>[o.renderSlot(g.$slots,"append",{},()=>[o.renderSlot(g.$slots,"right",{},void 0,!0)],!0)]),_:2},[g.$slots.prepend?{name:"prepend",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"prepend",{},void 0,!0)]),key:"0"}:void 0,g.$slots.after?{name:"after",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"after",{},void 0,!0)]),key:"1"}:void 0,g.$slots.label?{name:"label",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"label",{},void 0,!0)]),key:"2"}:void 0,g.$slots.error?{name:"error",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"error",{},void 0,!0)]),key:"3"}:void 0,g.$slots.hint?{name:"hint",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"hint",{},void 0,!0)]),key:"4"}:void 0,g.$slots.counter?{name:"counter",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"counter",{},void 0,!0)]),key:"5"}:void 0,g.$slots.loading?{name:"loading",fn:o.withCtx(()=>[o.renderSlot(g.$slots,"loading",{},void 0,!0)]),key:"6"}:void 0]),1040,["modelValue","for","label","mask","disable","rules","input-style","style"]))}}),[["__scopeId","data-v-c4acf8be"]]),$m={class:"row items-center justify-end"},Oi="DD.MM.YYYY",ml=o.defineComponent({__name:"PDateInput",props:o.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:o.mergeModels(["blur"],["update:modelValue"]),setup(e){const t=o.useModel(e,"modelValue"),n=Oi.replace(/[DMY]/g,"#"),i=l=>{if(!l)return"";const d=String(l).match(/^(\d{4})-(\d{2})-(\d{2})/);if(d)return`${d[3]}.${d[2]}.${d[1]}`;const u=new Date(l);return Number.isNaN(u.getTime())?"":it.date.formatDate(u,Oi)},s=l=>{const d=it.date.extractDate(l,Oi);if(Number.isNaN(d.getTime()))return"";const u=d.getFullYear(),h=String(d.getMonth()+1).padStart(2,"0"),m=String(d.getDate()).padStart(2,"0");return`${u}-${h}-${m}`},r=o.ref(i(t.value));o.watch(t,l=>{const d=i(l);d!==r.value&&(r.value=d)});const a=l=>{const d=typeof l=="number"?String(l):l;if(!d){t.value="";return}/^\d{2}\.\d{2}\.\d{4}$/.test(d)&&(t.value=s(d))},c={days:"Понедельник_Вторник_Среда_Четверг_Пятница_Суббота_Воскресенье".split("_"),daysShort:"Пн_Вт_Ср_Чт_Пт_Сб_Вс".split("_"),months:"Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь".split("_"),monthsShort:"Янв_Фев_Мар_Апр_Май_Июн_Июл_Авг_Сен_Окт_Ноя_Дек".split("_"),firstDayOfWeek:1,format24h:!0,pluralDay:"дни"};return(l,d)=>{const u=o.resolveDirective("close-popup");return o.openBlock(),o.createBlock(pn,{modelValue:o.unref(r),"onUpdate:modelValue":[d[1]||(d[1]=h=>o.isRef(r)?r.value=h:null),a],class:"fit",label:e.label,mask:o.unref(n),dense:e.dense,outlined:e.outlined,clearable:e.clearable,disable:e.disable,readonly:e.readonly,inputmode:"numeric",onBlur:d[2]||(d[2]=h=>l.$emit("blur"))},{prepend:o.withCtx(()=>[o.createVNode(o.unref(it.QIcon),{name:"event",class:"cursor-pointer"},{default:o.withCtx(()=>[o.createVNode(o.unref(it.QPopupProxy),{cover:"","transition-show":"scale","transition-hide":"scale"},{default:o.withCtx(()=>[o.createVNode(o.unref(it.QDate),{modelValue:o.unref(r),"onUpdate:modelValue":d[0]||(d[0]=h=>o.isRef(r)?r.value=h:null),mask:Oi,"today-btn":"",locale:c},{default:o.withCtx(()=>[o.createElementVNode("div",$m,[o.withDirectives(o.createVNode(Le,{label:"Готово",color:"primary",flat:""},null,512),[[u]])])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),append:o.withCtx(()=>[o.renderSlot(l.$slots,"append")]),_:3},8,["modelValue","label","mask","dense","outlined","clearable","disable","readonly"])}}}),tp=o.defineComponent({inheritAttrs:!1,__name:"PDatePicker",props:o.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:o.mergeModels(["blur","input"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=o.useModel(e,"modelValue"),s=o.useAttrs(),r=o.computed(()=>typeof s.id=="string"?s.id:void 0),a=e,c=u=>{const h=u==null||u===""?null:new Date(String(u));h?(i.value=h,n("input",l(i.value))):(i.value=null,n("input",null))},l=u=>u?new Date(u.getTime()-u.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"",d=o.computed(()=>{const u={};return a.margin&&(u.margin=a.margin),a.padding&&(u.padding=a.padding),u});return(u,h)=>(o.openBlock(),o.createBlock(o.unref(it.QInput),{for:o.unref(r),max:"2100",min:"1900","model-value":l(i.value),label:e.label||void 0,class:"p-datepicker",type:"date",name:e.label,style:o.normalizeStyle(o.unref(d)),outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":c},{before:o.withCtx(()=>[o.renderSlot(u.$slots,"default")]),append:o.withCtx(()=>[o.renderSlot(u.$slots,"right")]),_:3},8,["for","model-value","label","name","style"]))}}),Ys=o.defineComponent({inheritAttrs:!1,__name:"PDialog",props:o.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(e){const t=o.useModel(e,"modelValue"),n=o.useAttrs(),i=o.computed(()=>{const s={};for(const r of Object.keys(n))["persistent","maximized","transition-show","transition-hide"].includes(r)||(s[r]=n[r]);return s});return(s,r)=>(o.openBlock(),o.createBlock(o.unref(it.QDialog),o.mergeProps({modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=a=>t.value=a)},o.unref(i),{persistent:e.persistent,maximized:e.maximized,"transition-show":e.transitionShow,"transition-hide":e.transitionHide}),o.createSlots({default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:2},[s.$slots.title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(s.$slots,"title")]),key:"0"}:void 0,s.$slots.header?{name:"header",fn:o.withCtx(()=>[o.renderSlot(s.$slots,"header")]),key:"1"}:void 0,s.$slots.body?{name:"body",fn:o.withCtx(()=>[o.renderSlot(s.$slots,"body")]),key:"2"}:void 0,s.$slots.footer?{name:"footer",fn:o.withCtx(()=>[o.renderSlot(s.$slots,"footer")]),key:"3"}:void 0]),1040,["modelValue","persistent","maximized","transition-show","transition-hide"]))}}),ep=U(o.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(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",{class:"flex-line flex",style:o.normalizeStyle({margin:e.margin,padding:e.padding,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth,height:e.height,justifyContent:e.justifyContent,background:e.background,alignItems:e.alignItems})},[o.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-71357bc9"]]),np=["innerHTML"],op={key:1},Ks=U(o.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(e){const t=e,n={color:t.color||void 0,fontSize:t.fontSize||void 0,fontWeight:t.fontWeight||void 0,background:t.background||void 0,padding:t.padding||void 0,width:t.width||void 0,maxWidth:t.width||void 0,minWidth:t.minWidth||void 0,margin:t.margin||void 0,justifyContent:t.justifyContent||void 0};return(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["string",e.customClass]),style:n,onClick:s[0]||(s[0]=r=>i.$emit("click"))},[o.createVNode(o.unref(it.QItemLabel),null,{default:o.withCtx(()=>[e.isHtml?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:e.string},null,8,np)):(o.openBlock(),o.createElementBlock("span",op,o.toDisplayString(e.string),1))]),_:1})],2))}}),[["__scopeId","data-v-049d3e33"]]),Zs=U(o.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(e){const t=e,n=o.useAttrs(),i=o.computed(()=>{const l={};for(const d of Object.keys(n))d!=="delay"&&(l[d]=n[d]);return l}),s={primary:"var(--q-primary)",success:"var(--q-positive)",warning:"var(--q-warning)",danger:"var(--q-negative)",neutral:"var(--q-dark)"},r=o.computed(()=>{const l=t.relPosition==="left"?"right":"left";return`${t.level==="top"?"top":"bottom"} ${l}`}),a=o.computed(()=>{const l=t.relPosition==="left"?"right":"left";return`${t.level==="top"?"bottom":"top"} ${l}`}),c=o.computed(()=>({background:s[t.typeStyle],whiteSpace:"pre",height:t.height,borderRadius:"2px",display:"flex",justifyContent:"center",alignItems:"center"}));return(l,d)=>e.tooltipText?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0},o.unref(i),{class:"tooltip-wrapper"}),[o.renderSlot(l.$slots,"default",{},void 0,!0),o.createVNode(o.unref(it.QTooltip),{delay:e.timeout,anchor:o.unref(r),self:o.unref(a),class:"tooltip-box",style:o.normalizeStyle(o.unref(c))},{default:o.withCtx(()=>[o.createVNode(Ks,{string:e.tooltipText,padding:"0 3px",height:e.height},null,8,["string","height"])]),_:1},8,["delay","anchor","self","style"])],16)):(o.openBlock(),o.createBlock(o.unref(it.QTooltip),o.mergeProps({key:1},o.unref(i),{delay:e.timeout,class:"tooltip-box"}),{default:o.withCtx(()=>[o.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},16,["delay"]))}}),[["__scopeId","data-v-ee5e83fd"]]),ip={class:"p-hint-popup"},Qs=U(o.defineComponent({__name:"PHint",props:{text:{}},setup(e){const t=o.ref(!1);return(n,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[e.text?(o.openBlock(),o.createBlock(o.unref(it.QIcon),{key:0,name:"help_outline",size:"15px",class:"p-hint-icon",onClick:i[0]||(i[0]=o.withModifiers(s=>t.value=!0,["stop"]))},{default:o.withCtx(()=>[o.createVNode(Zs,{anchor:"top middle",self:"bottom middle",offset:[0,6],"max-width":"320px"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.text),1)]),_:1})]),_:1})):o.createCommentVNode("",!0),o.createVNode(o.unref(it.QMenu),{modelValue:o.unref(t),"onUpdate:modelValue":i[1]||(i[1]=s=>o.isRef(t)?t.value=s:null),anchor:"top middle",self:"bottom middle",offset:[0,6],"max-width":"340px"},{default:o.withCtx(()=>[o.createElementVNode("div",ip,o.toDisplayString(e.text),1)]),_:1},8,["modelValue"])],64))}}),[["__scopeId","data-v-3443b70c"]]),sp=o.defineComponent({__name:"PInputDate",props:o.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:o.mergeModels(["update:modelValue","change","beforeChange"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=o.useModel(e,"modelValue"),s=Ze.Format(i.value),r=o.ref(s),a=l=>{if(!c(l))return;const d=Ze.FromRuStr(l);i.value=d,n("beforeChange",d),n("change",d)},c=l=>l.length!=10?(r.value=s,Xe.Error("Неверный формат даты"),!1):Number(r.value.slice(0,2))>31?(r.value=s,Xe.Error("Неверный день месяца"),!1):Number(r.value.slice(3,5))>12?(r.value=s,Xe.Error("Неверный месяц"),!1):Number(r.value.slice(6,10))>2100?(r.value=s,Xe.Error("Неверный год"),!1):!0;return(l,d)=>{const u=o.resolveComponent("PInput");return o.openBlock(),o.createElementBlock("div",{class:"style-container",style:o.normalizeStyle({width:e.width,position:"relative"})},[o.createVNode(u,{modelValue:o.unref(r),"onUpdate:modelValue":d[0]||(d[0]=h=>o.isRef(r)?r.value=h:null),mask:"##.##.####",placeholder:e.placeholder,margin:e.margin,label:e.label,onBlur:a,onKeydown:o.withKeys(o.withModifiers(h=>{},["prevent"]),["enter"])},null,8,["modelValue","placeholder","margin","label","onKeydown"])],4)}}}),ap=U(o.defineComponent({__name:"IconMinus",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#minus"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"minus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[o.createElementVNode("path",{d:"M19.4995 13.8856H5.53125V11.8926H19.4995V13.8856Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-582bd65a"]]),rp=U(o.defineComponent({__name:"IconPlus",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#plus"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"plus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[o.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"]]),lp=o.defineComponent({inheritAttrs:!1,__name:"PInputNumber",props:o.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:o.mergeModels(["blur","input","change"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=o.useAttrs(),s=o.computed(()=>typeof i.id=="string"?i.id:void 0),r=o.computed(()=>{const R={};for(const A of Object.keys(i))A!=="id"&&(R[A]=i[A]);return R}),a=e,c=()=>{const R=a.step.toString();return R.includes(".")?R.split(".")[1].length:0},l=c(),d=o.useModel(e,"modelValue"),h=(R=>Math.min(Math.max(R,a.min),a.max))(d.value);h!==d.value&&(d.value=h);const m=o.ref(h.toFixed(c())),p=o.computed(()=>{const R={};return a.margin&&(R.margin=a.margin),a.padding&&(R.padding=a.padding),R}),g=R=>{const A=Math.pow(10,l);return Math.round(R*A)/A},v=(R,...A)=>{d.value=g(R),m.value=g(R).toFixed(c()),A.forEach(Y=>n(Y,d.value))},b=(R,...A)=>{a.disabled||R>a.max||R<a.min||v(R,...A)},S=()=>b(+m.value+a.step,"change"),C=()=>b(+m.value-a.step,"change"),x=R=>b(Number(R),"input"),I=()=>b(+m.value,"change","blur");return(R,A)=>(o.openBlock(),o.createBlock(o.unref(it.QInput),o.mergeProps(o.unref(r),{for:o.unref(s),"model-value":o.unref(m),label:e.label||void 0,class:"p-input-number",type:"number",disable:e.disabled,"input-style":{color:e.disabled?"#828587":e.color,textAlign:"center"},style:o.unref(p),outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":x,onBlur:I}),{before:o.withCtx(()=>[o.createVNode(o.unref(it.QBtn),{class:"number-minus",flat:"",dense:"",round:"",style:{width:"32px",height:"32px"},onClick:C},{default:o.withCtx(()=>[o.createVNode(ap)]),_:1})]),append:o.withCtx(()=>[o.createVNode(o.unref(it.QBtn),{class:"number-plus",flat:"",dense:"",round:"",style:{width:"32px",height:"32px"},onClick:S},{default:o.withCtx(()=>[o.createVNode(rp)]),_:1})]),_:1},16,["for","model-value","label","disable","input-style","style"]))}}),cp=U(lp,[["__scopeId","data-v-6f4093e8"]]),dp=U(o.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(e,{emit:t}){const n=e,i=t,s=o.ref(n.open);o.watch(()=>n.open,()=>{s.value=!s.value});const r=a=>{s.value=!s.value,i("open",a)};return(a,c)=>{const l=o.resolveComponent("PString");return o.openBlock(),o.createElementBlock(o.Fragment,null,[e.shift?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle({minWidth:e.widthClosed,maxWidth:e.widthClosed,height:e.height})},null,4)),o.createElementVNode("div",{class:"LS-body",style:o.normalizeStyle({marginLeft:o.unref(s)?"0":`calc(${e.widthClosed} - ${e.widthOpened})`,minWidth:e.widthOpened,maxWidth:e.widthOpened,boxShadow:e.shadow?"5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:e.shift?"relative":"absolute",background:e.background,height:e.height})},[o.createElementVNode("div",{class:"LS-content",style:o.normalizeStyle({width:`calc(100% - ${e.widthClosed})`,height:e.height,background:"#ffffff"})},[o.renderSlot(a.$slots,"default",{},void 0,!0)],4),o.createVNode(o.unref(it.QBtn),{class:"click-line",flat:"","no-caps":"",style:o.normalizeStyle({width:e.widthClosed,minWidth:e.widthClosed,height:e.height,borderRadius:"0"}),onClick:c[0]||(c[0]=d=>r(!o.unref(s)))},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(l,{key:0,string:e.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):o.createCommentVNode("",!0),o.unref(s)?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(l,{key:1,string:e.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))]),_:1},8,["style"])],4)],64)}}}),[["__scopeId","data-v-31292b0b"]]),up=o.defineComponent({__name:"PList",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"300px"}},setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(it.QList),{tag:"ul",style:o.normalizeStyle({margin:e.margin,padding:e.padding,width:e.width})},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},8,["style"]))}}),fp=o.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(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(it.QItem),{tag:"li",style:o.normalizeStyle({margin:e.margin,padding:e.padding,borderBottom:e.showDivider?"1px solid":"none",background:e.background})},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},8,["style"]))}}),hp={class:"tags-selector"},mp={key:0,class:"empty-state"},pl=U(o.defineComponent({__name:"POptionsListSingle",props:{store:{}},emits:["select"],setup(e,{emit:t}){const n=e,i=o.ref(""),s=n.store.Options,r=o.computed(()=>s.filter(l=>W.H.Strings.SearchIn(l.label,i.value))),a=t;o.onBeforeMount(async()=>{await n.store.GetOptions()});const c=async l=>{await n.store.Get(l.value),a("select",n.store.Item)};return(l,d)=>{const u=o.resolveDirective("ripple");return o.openBlock(),o.createElementBlock("div",hp,[o.createVNode(pn,{modelValue:o.unref(i),"onUpdate:modelValue":d[0]||(d[0]=h=>o.isRef(i)?i.value=h:null),placeholder:"Поиск...",dense:"",outlined:"",clearable:"",class:"search-input"},null,8,["modelValue"]),o.createVNode(o.unref(it.QScrollArea),{style:{height:"350px"},class:"q-mt-sm"},{default:o.withCtx(()=>[o.createVNode(o.unref(it.QList),{dense:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r),h=>o.withDirectives((o.openBlock(),o.createBlock(o.unref(it.QItem),{key:h.value,clickable:"",class:"tag-item",onClick:m=>c(h)},{default:o.withCtx(()=>[o.createVNode(o.unref(it.QItemSection),null,{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(h.label),1)]),_:2},1024)]),_:2},1032,["onClick"])),[[u]])),128)),o.unref(r).length?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",mp,"Ничего не найдено"))]),_:1})]),_:1})])}}}),[["__scopeId","data-v-9d5bdf93"]]),Ai=o.defineComponent({inheritAttrs:!1,__name:"PSelect",props:o.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:o.mergeModels(["change","clear"],["update:modelValue"]),setup(e,{emit:t}){const n=o.useModel(e,"modelValue"),i=t,s=o.useAttrs(),r=o.computed(()=>typeof s.id=="string"?s.id:void 0),a=o.computed(()=>{const m={};for(const p of Object.keys(s))p!=="id"&&p!=="disable"&&(m[p]=s[p]);return m}),c=e,l=o.computed(()=>s.disable??c.disabled),d=m=>{i("change",m)},u=()=>{i("clear",void 0)},h=o.computed(()=>{const m={};return c.margin&&(m.margin=c.margin),c.padding&&(m.padding=c.padding),c.width&&(m.width=c.width),c.inPadding&&(m.padding=c.inPadding),m});return(m,p)=>(o.openBlock(),o.createBlock(o.unref(it.QSelect),o.mergeProps({modelValue:n.value,"onUpdate:modelValue":p[0]||(p[0]=g=>n.value=g)},o.unref(a),{for:o.unref(r),options:e.options,label:e.label||void 0,placeholder:e.placeholder,clearable:e.clearable,disable:o.unref(l),readonly:e.readonly,"input-style":{color:e.color||void 0},style:o.unref(h),class:"p-select",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":d,onClear:u}),o.createSlots({before:o.withCtx(()=>[o.renderSlot(m.$slots,"before",{},()=>[o.renderSlot(m.$slots,"left")])]),append:o.withCtx(()=>[o.renderSlot(m.$slots,"append",{},()=>[o.renderSlot(m.$slots,"right")])]),_:2},[m.$slots.prepend?{name:"prepend",fn:o.withCtx(()=>[o.renderSlot(m.$slots,"prepend")]),key:"0"}:void 0,m.$slots.after?{name:"after",fn:o.withCtx(()=>[o.renderSlot(m.$slots,"after")]),key:"1"}:void 0,m.$slots.default?{name:"default",fn:o.withCtx(()=>[o.renderSlot(m.$slots,"default")]),key:"2"}:void 0,m.$slots.label?{name:"label",fn:o.withCtx(()=>[o.renderSlot(m.$slots,"label")]),key:"3"}:void 0,m.$slots.error?{name:"error",fn:o.withCtx(()=>[o.renderSlot(m.$slots,"error")]),key:"4"}:void 0,m.$slots.hint?{name:"hint",fn:o.withCtx(()=>[o.renderSlot(m.$slots,"hint")]),key:"5"}:void 0,m.$slots.counter?{name:"counter",fn:o.withCtx(()=>[o.renderSlot(m.$slots,"counter")]),key:"6"}:void 0,m.$slots.loading?{name:"loading",fn:o.withCtx(()=>[o.renderSlot(m.$slots,"loading")]),key:"7"}:void 0,m.$slots.selected?{name:"selected",fn:o.withCtx(()=>[o.renderSlot(m.$slots,"selected")]),key:"8"}:void 0,m.$slots.option?{name:"option",fn:o.withCtx(g=>[o.renderSlot(m.$slots,"option",o.normalizeProps(o.guardReactiveProps(g)))]),key:"9"}:void 0,m.$slots["no-option"]?{name:"no-option",fn:o.withCtx(g=>[o.renderSlot(m.$slots,"no-option",o.normalizeProps(o.guardReactiveProps(g)))]),key:"10"}:void 0,m.$slots["before-options"]?{name:"before-options",fn:o.withCtx(()=>[o.renderSlot(m.$slots,"before-options")]),key:"11"}:void 0,m.$slots["after-options"]?{name:"after-options",fn:o.withCtx(()=>[o.renderSlot(m.$slots,"after-options")]),key:"12"}:void 0,m.$slots["selected-item"]?{name:"selected-item",fn:o.withCtx(g=>[o.renderSlot(m.$slots,"selected-item",o.normalizeProps(o.guardReactiveProps(g)))]),key:"13"}:void 0]),1040,["modelValue","for","options","label","placeholder","clearable","disable","readonly","input-style","style"]))}}),gl=o.defineComponent({__name:"POpts",props:{label:{},item:{},store:{},prop:{},storeOpts:{},optLabel:{},optValue:{},disabled:{type:Boolean},hint:{}},setup(e){var c;const t=e,n=((c=t.storeOpts)==null?void 0:c.Options)??[],i=o.ref(n);async function s(l,d,u,h){var v,b;const p="set"+(((v=d[0])==null?void 0:v.toUpperCase())+d.slice(1)),g=l[p];typeof g=="function"?g(u):(l[d]=u,l[d+"Id"]=u==null?void 0:u.id),await((b=h==null?void 0:h.Update)==null?void 0:b.call(h,l))}const r=(l,d)=>{if(l===""){d(()=>{i.value=n});return}d(()=>{i.value=n.filter(u=>W.H.Strings.SearchInFields(l,[u.label]))})},a=async l=>{l?(await t.storeOpts.Get(l.value),await s(t.item,t.prop,t.storeOpts.Item,t.store)):await s(t.item,t.prop,void 0,t.store)};return o.onBeforeMount(async()=>{n.length>0||await t.storeOpts.GetOptions(t.optLabel,t.optValue)}),(l,d)=>(o.openBlock(),o.createBlock(Ai,{"use-input":"",options:o.unref(i),"model-value":e.item[e.prop+"Id"],label:e.label,disable:e.disabled,"map-options":"",clearable:"",dense:"",outlined:"","hide-bottom-space":"","onUpdate:modelValue":a,onFilter:r},{append:o.withCtx(()=>[o.createVNode(Qs,{text:e.hint},null,8,["text"])]),_:1},8,["options","model-value","label","disable"]))}}),pp=o.defineComponent({__name:"PRadio",props:o.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:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const n=o.useModel(e,"modelValue"),i=t,s=e,r=()=>{i("change",s.value)};return(a,c)=>(o.openBlock(),o.createElementBlock("div",{class:"p-radio",style:o.normalizeStyle({padding:e.padding,margin:e.margin,maxWidth:e.width})},[o.createVNode(o.unref(it.QRadio),{modelValue:n.value,"onUpdate:modelValue":[c[0]||(c[0]=l=>n.value=l),r],val:e.value,name:e.name,label:e.label||void 0,size:e.size,style:o.normalizeStyle({fontSize:e.fontSize})},null,8,["modelValue","val","name","label","size","style"])],4))}}),gp=U(o.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(e,{emit:t}){const n=e,i=t,s=o.ref(n.open);o.watch(()=>n.open,()=>{s.value=!s.value});const r=a=>{s.value=!s.value,i("open",a)};return(a,c)=>{const l=o.resolveComponent("PString");return o.openBlock(),o.createElementBlock("div",{class:"wrapper",style:o.normalizeStyle({maxHeight:e.height,height:e.height})},[o.createElementVNode("div",{class:"content",style:o.normalizeStyle({paddingRight:e.shift?"0":`${e.widthClosed}`})},[o.renderSlot(a.$slots,"content",{},void 0,!0)],4),o.createElementVNode("div",{class:"RS-body",style:o.normalizeStyle({marginRight:o.unref(s)?"0":`calc(${e.widthClosed} - ${e.widthOpened})`,minWidth:e.widthOpened,maxWidth:e.widthOpened,boxShadow:e.shadow?"-5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:e.shift?"relative":"absolute"})},[o.createVNode(o.unref(it.QBtn),{class:"click-line",flat:"","no-caps":"",style:o.normalizeStyle({width:e.widthClosed,minWidth:e.widthClosed,height:e.height,borderRadius:"0"}),onClick:c[0]||(c[0]=d=>r(!o.unref(s)))},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(l,{key:0,string:e.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):o.createCommentVNode("",!0),o.unref(s)?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(l,{key:1,string:e.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))]),_:1},8,["style"]),o.createElementVNode("div",{class:"RS-content",style:o.normalizeStyle({width:`calc(${e.widthOpened} - ${e.widthClosed} - 2px)`,background:e.background,height:e.height})},[o.renderSlot(a.$slots,"default",{},void 0,!0)],4)],4)],4)}}}),[["__scopeId","data-v-8ab50ea6"]]),vp=U(o.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(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",{class:"sticky-block",style:o.normalizeStyle({zIndex:1+e.zIndex,top:e.top,background:e.background,padding:e.padding,boxShadow:e.shadow?"0 0 5px 2px rgba(0,0,0,0.3)":"none",borderBottom:e.divider?"1px solid":"none",borderColor:e.dividerColor})},[o.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-4748d546"]]),yp=o.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(e){return(t,n)=>(o.openBlock(),o.createElementBlock("table",o.mergeProps(t.$attrs,{style:{width:e.width,margin:e.margin},class:"p-table"}),[o.createElementVNode("thead",null,[o.renderSlot(t.$slots,"thead")]),o.createElementVNode("tbody",null,[o.renderSlot(t.$slots,"tbody")])],16))}}),vl=U(o.defineComponent({__name:"PTableToggle",props:{row:{},prop:{},store:{},readonly:{type:Boolean,default:!1}},setup(e){const t=e,n=o.computed(()=>t.row[t.prop]),i=async()=>{t.row[t.prop]=!t.row[t.prop],await t.store.Update(t.row)};return(s,r)=>(o.openBlock(),o.createBlock(o.unref(it.QTd),{key:e.prop},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(["toggle-cell",{clickable:!t.readonly}]),onClick:r[0]||(r[0]=a=>t.readonly?void 0:i())},[o.createVNode(o.unref(it.QIcon),{name:o.unref(n)?"check_circle":"radio_button_unchecked",color:o.unref(n)?"positive":"grey-5",size:"20px"},null,8,["name","color"]),o.createVNode(Zs,null,{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)?"Включено":"Выключено"),1)]),_:1})],2)]),_:1}))}}),[["__scopeId","data-v-96a76c56"]]),bp=U(o.defineComponent({inheritAttrs:!1,__name:"PTextarea",props:o.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:o.mergeModels(["blur","input","focus"],["update:modelValue"]),setup(e){const t=o.useModel(e,"modelValue"),n=o.useAttrs(),i=o.computed(()=>typeof n.id=="string"?n.id:void 0),s=o.computed(()=>{const l={};for(const d of Object.keys(n))d!=="id"&&(l[d]=n[d]);return l}),r=e,a=o.computed(()=>({color:r.color||void 0,resize:r.resize})),c=o.computed(()=>{const l={};return r.margin&&(l.margin=r.margin),r.padding&&(l.padding=r.padding),r.borderColor&&(l["--p-border-color"]=r.borderColor),l});return(l,d)=>(o.openBlock(),o.createBlock(o.unref(it.QInput),o.mergeProps({modelValue:t.value,"onUpdate:modelValue":d[0]||(d[0]=u=>t.value=u)},o.unref(s),{for:o.unref(i),label:e.label||void 0,mask:e.mask,type:"textarea","input-style":o.unref(a),style:o.unref(c),class:"p-textarea",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":d[1]||(d[1]=u=>l.$emit("input",t.value)),onBlur:d[2]||(d[2]=u=>l.$emit("blur",t.value)),onFocus:d[3]||(d[3]=u=>l.$emit("focus",t.value))}),{before:o.withCtx(()=>[o.renderSlot(l.$slots,"default",{},void 0,!0)]),append:o.withCtx(()=>[o.renderSlot(l.$slots,"right",{},void 0,!0)]),_:3},16,["modelValue","for","label","mask","input-style","style"]))}}),[["__scopeId","data-v-8e01fef2"]]),yl=o.defineComponent({inheritAttrs:!1,__name:"PToggle",props:o.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:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const n=o.useModel(e,"modelValue"),i=t,s=o.useAttrs(),r=o.computed(()=>{const c={};for(const l of Object.keys(s))c[l]=s[l];return c}),a=()=>{i("change",n.value)};return(c,l)=>(o.openBlock(),o.createElementBlock("div",{class:"p-toggle",style:o.normalizeStyle({padding:e.padding,margin:e.margin,maxWidth:e.width})},[o.createVNode(o.unref(it.QToggle),o.mergeProps({modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=d=>n.value=d)},o.unref(r),{label:e.label||void 0,size:e.size,style:{fontSize:e.fontSize},"onUpdate:modelValue":a}),null,16,["modelValue","label","size","style"])],4))}}),Sp={class:"top-slider-content"},wp={class:"center"},Cp=U(o.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(e,{emit:t}){const n=e,i=t,s=o.ref(n.open);o.watch(()=>n.open,()=>{s.value=!s.value});const r=a=>{s.value=!s.value,i("open",a)};return(a,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(s)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=o.withModifiers(l=>s.value=!0,["prevent"])),c[1]||(c[1]=o.withModifiers(()=>{},["stop"]))]})),o.createElementVNode("div",{class:"top-slider",style:o.normalizeStyle({marginTop:o.unref(s)?"0":`calc(${e.sliderOffHeight} - ${e.sliderOnHeight})`,height:e.sliderOnHeight}),onClick:c[3]||(c[3]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("div",Sp,[o.createElementVNode("div",wp,[o.renderSlot(a.$slots,"default",{},void 0,!0)])]),o.createVNode(o.unref(it.QBtn),{class:"click-line",flat:"","no-caps":"",style:o.normalizeStyle({height:e.sliderOffHeight,minHeight:e.sliderOffHeight,borderRadius:"0"}),onClick:c[2]||(c[2]=l=>r(!o.unref(s)))},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"title",{},void 0,!0)]),_:3},8,["style"])],4)],64))}}),[["__scopeId","data-v-88b1978e"]]);function Ep(e){e.component("PButton",Le),e.component("PBadge",ul),e.component("PCheckBox",fl),e.component("PChip",hl),e.component("PDateInput",ml),e.component("PDatePicker",tp),e.component("PDialog",Ys),e.component("PFlex",ep),e.component("PHint",Qs),e.component("PInput",pn),e.component("PInputDate",sp),e.component("PInputNumber",cp),e.component("PLeftSlider",dp),e.component("PList",up),e.component("PListItem",fp),e.component("POptionsListSingle",pl),e.component("POpts",gl),e.component("PRadio",pp),e.component("PRightSlider",gp),e.component("PSelect",Ai),e.component("PSticky",vp),e.component("PString",Ks),e.component("PTextarea",bp),e.component("PTopSlider",Cp),e.component("PTable",yp),e.component("PTableToggle",vl),e.component("PToggle",yl),e.component("PTooltip",Zs)}const xp={key:0,class:"mainblock"},Ip={class:"mainblock-right"},Pp={class:"body"},Rp=U(o.defineComponent({__name:"AdaptiveContainer",props:{menuWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"}},setup(e){const t=e,n=o.ref(!1),i=o.ref(!0),s=o.ref(window.matchMedia("(max-width: 1330px)").matches),r=()=>{i.value=!i.value};return o.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(t.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").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}),n.value=!0}),(a,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.renderSlot(a.$slots,"main",{},void 0,!0),o.unref(n)?(o.openBlock(),o.createElementBlock("div",xp,[o.createElementVNode("div",{class:"mainblock-left",style:o.normalizeStyle({minWidth:o.unref(s)?"100%":e.menuWidth,maxWidth:o.unref(s)?"100%":e.menuWidth,marginLeft:o.unref(s)?"-110%":"0",position:o.unref(s)?"fixed":"relative",top:o.unref(s)?"140px":""})},[o.createElementVNode("div",{class:"left-menu",style:o.normalizeStyle({minWidth:o.unref(s)?"auto":e.menuWidth,boxShadow:o.unref(s)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!o.unref(i)&&o.unref(s)?"110%":"0",borderTopLeftRadius:o.unref(s)?"0":"",borderBottomLeftRadius:o.unref(s)?"0":""}),onClick:c[0]||(c[0]=l=>r())},[o.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),o.createElementVNode("div",Ip,[a.$slots.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:"title",style:o.normalizeStyle({display:a.$slots.title?"flex":"none"})},[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({display:o.unref(s)?"flex":"none"}),onClick:c[1]||(c[1]=l=>r())},[o.renderSlot(a.$slots,"icon",{},void 0,!0)],4),o.renderSlot(a.$slots,"title",{},void 0,!0)],4)):o.createCommentVNode("",!0),o.createElementVNode("div",Pp,[o.renderSlot(a.$slots,"body",{},void 0,!0)])])])):o.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-52b3d807"]]),Mp={class:"mainblock-right"},Op={class:"body"},Ap=U(o.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(e){const t=e,n=o.ref(!1),i=o.ref(!0),s=o.ref(window.matchMedia("(max-width: 1330px)").matches),r=()=>{i.value=!i.value};return o.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(t.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").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}),n.value=!0}),(a,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.renderSlot(a.$slots,"main",{},void 0,!0),o.unref(n)?(o.openBlock(),o.createElementBlock("div",{key:0,class:"mainblock",style:o.normalizeStyle({display:o.unref(s)?"block":"flex"})},[o.createElementVNode("div",{class:"mainblock-left",style:o.normalizeStyle({minWidth:o.unref(s)?"100%":e.menuWidth,display:e.leftWidth!=="0px"?"flex":"none",top:o.unref(s)?"58px":"80px"})},[o.createElementVNode("div",{class:"left-menu",style:o.normalizeStyle({minWidth:o.unref(s)?"100%":e.menuWidth,boxShadow:o.unref(s)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!o.unref(i)&&o.unref(s),"0"),overflowX:o.unref(s)?"scroll":"hidden",display:o.unref(s)?"flex":"block",background:o.unref(s)?"#ffffff":"",overflowY:o.unref(s)?"hidden":"auto"}),onClick:c[0]||(c[0]=l=>r())},[o.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),o.createElementVNode("div",Mp,[o.createElementVNode("div",{class:"title",style:o.normalizeStyle({position:e.titleSticky?"sticky":"relative",top:e.titleSticky?o.unref(s)?"108px":"58px":"0",zIndex:e.titleSticky?"10":""})},[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({display:o.unref(s)?"flex":"none"}),onClick:c[1]||(c[1]=l=>r())},[o.renderSlot(a.$slots,"icon",{},void 0,!0)],4),o.renderSlot(a.$slots,"title",{},void 0,!0)],4),o.createElementVNode("div",Op,[o.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):o.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-a7d519dd"]]),bl=U(o.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(e){return o.useCssVars(t=>({d143e9f0:e.maxWidth,b9d56180:e.width,v52bd0ff4:e.background,v1795aeac:e.gridGap,v0cfa7c52:e.gridTemplateColumns,v0c6d2a1f:e.gridTemplateRows,a3ccd918:e.margin})),(t,n)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["grid-block",e.customClass])},[o.renderSlot(t.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-a3c4743c"]]),Tp={class:"container"},Bp={class:"slide-box"},kp={class:"image"},Np={class:"image-box"},Dp=["id","src","alt"],Fp={class:"link-number"},Vp=["id","onClick"],zp=U(o.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(e){o.useCssVars(p=>({v582c9d05:n}));const t=e,n=`${t.animationTime}ms`,i=o.ref(t.startActiveGroupIndex),s=o.ref(Qe.None),r=o.ref(Vr(t.events,t.quantity)),a=o.computed(()=>r.value[i.value]);o.onMounted(()=>{});const c=()=>i.value=i.value+1<r.value.length?i.value+1:0,l=()=>i.value=i.value-1<0?r.value.length-1:i.value-1,d=p=>{s.value=p,setTimeout(()=>s.value=Qe.None,t.animationTime)},u=p=>{p!=i.value&&(d(p<i.value?Qe.Prev:Qe.Next),setTimeout(()=>i.value=p,t.animationTime/2))},h=()=>{d(Qe.Next),setTimeout(c,t.animationTime/2)},m=()=>{d(Qe.Prev),setTimeout(l,t.animationTime/2)};return(p,g)=>(o.openBlock(),o.createElementBlock("div",{class:"field",style:o.normalizeStyle({height:e.height,maxHeight:e.maxHeight})},[o.createElementVNode("div",Tp,[(o.openBlock(),o.createElementBlock("svg",{class:"icon-arrow",onClick:g[0]||(g[0]=o.withModifiers(v=>m(),["stop"]))},[...g[3]||(g[3]=[o.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)])])),o.createElementVNode("div",Bp,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),(v,b)=>(o.openBlock(),o.createElementBlock("div",{key:b,class:o.normalizeClass({animationnext:o.unref(s)===o.unref(Qe).Next,animationprev:o.unref(s)===o.unref(Qe).Prev})},[o.createElementVNode("div",kp,[o.createElementVNode("div",Np,[o.createElementVNode("img",{id:v.fileInfo.getImageUrl(),style:o.normalizeStyle({height:`calc(${e.height} - 110px)`,maxHeight:`calc(${e.maxHeight} - 110px)`}),src:v.fileInfo.getImageUrl(),alt:v.fileInfo.originalName,onClick:g[1]||(g[1]=S=>p.showImageInFullScreen())},null,12,Dp)])])],2))),128))]),(o.openBlock(),o.createElementBlock("svg",{class:"icon-arrow",onClick:g[2]||(g[2]=o.withModifiers(v=>h(),["stop"]))},[...g[4]||(g[4]=[o.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])]))]),o.createElementVNode("div",Fp,[o.createVNode(bl,{"grid-template-columns":"repeat(auto-fit, minmax(26px, 1fr))","grid-gap":"5px",margin:"0"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r),(v,b)=>(o.openBlock(),o.createElementBlock("div",{id:b.toString(),key:b,class:"number",style:o.normalizeStyle({background:b.toString()===o.unref(i).toString()?"#9D9D9D":""}),onClick:o.withModifiers(S=>u(b),["stop"])},o.toDisplayString(b+1),13,Vp))),128))]),_:1})])],4))}}),[["__scopeId","data-v-c5b846b9"]]),Lp=o.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(e,{emit:t}){const n=e,i=t,s=o.ref(n.x),r=o.ref(n.y),a=o.computed(()=>s.value+"px"),c=o.computed(()=>r.value+"px"),l=()=>{i("close")};return(d,u)=>{const h=o.resolveDirective("click-outside");return o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:"context-window",style:o.normalizeStyle({left:o.unref(a),top:o.unref(c)})},[o.renderSlot(d.$slots,"default")],4)),[[h,l]])}}}),Hp={class:"date-range"},Up=U(o.defineComponent({__name:"DateInputRange",props:{start:{type:Date,default:void 0},end:{type:Date,default:void 0}},emits:["update:start","update:end","setStart","setEnd"],setup(e,{emit:t}){const n=e,i=t;o.watch(()=>[n.start,n.end],()=>{n.start||(s.value=void 0),n.end||(r.value=void 0)});const s=o.ref(n.start),r=o.ref(n.end),a=l=>{s.value=l,!(!n.end||l>n.end)&&(i("update:start",l),i("setStart",l))},c=l=>{r.value=l,!(!n.start||l<n.start)&&(i("update:end",l),i("setEnd",l))};return(l,d)=>{const u=o.resolveComponent("PInputDate");return o.openBlock(),o.createElementBlock("div",Hp,[o.createVNode(u,{"model-value":o.unref(s),"onUpdate:modelValue":d[0]||(d[0]=h=>o.isRef(s)?s.value=h:null),onChange:a},null,8,["model-value"]),d[2]||(d[2]=o.createTextVNode(" - ",-1)),o.createVNode(u,{"model-value":o.unref(r),"onUpdate:modelValue":d[1]||(d[1]=h=>o.isRef(r)?r.value=h:null),onChange:c},null,8,["model-value"])])}}}),[["__scopeId","data-v-b93b6d46"]]),jp=o.defineComponent({name:"DateInputRangeV2"}),Gp={class:"date-range"};function Wp(e,t,n,i,s,r){return o.openBlock(),o.createElementBlock("div",Gp,[o.renderSlot(e.$slots,"default",{},void 0,!0)])}const Xp=U(jp,[["render",Wp],["__scopeId","data-v-d28c6f33"]]),Yp={class:"drop-item"},Kp={key:0,class:"drop-item-list"},Zp=U(o.defineComponent({__name:"DropList",props:{name:{type:String,default:"Name"},rolledUp:{type:Boolean,default:!0}},setup(e){const t=e,n=o.ref(t.rolledUp),i=async()=>{n.value=!n.value};return(s,r)=>{const a=o.resolveComponent("PString"),c=o.resolveComponent("IconArrowDrop");return o.openBlock(),o.createElementBlock("div",Yp,[o.createElementVNode("div",{class:"drop-item-name",onClick:r[0]||(r[0]=l=>i())},[o.createVNode(a,{"font-size":"13px","font-weight":"600",string:e.name,"justify-content":"left",width:"auto",margin:"0 5px 0 0",padding:"6px 0",color:"inherit"},null,8,["string"]),o.createElementVNode("div",{style:o.normalizeStyle({transform:o.unref(n)?"":"rotate(-90deg)",display:"flex",alignItems:"center",margin:"0 0 2px 0"})},[o.createVNode(c,{size:"10px",margin:"0"})],4)]),o.unref(n)?(o.openBlock(),o.createElementBlock("div",Kp,[o.renderSlot(s.$slots,"default",{},void 0,!0)])):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-97057f9c"]]),Qp=U(o.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new ms,required:!0}},emits:["load"],setup(e,{emit:t}){const n=e,i=o.ref(!1),s=t,r=()=>{n.model.setBoolean(i.value),i.value?W.F.FTSP.Get().setF(n.model):W.F.FTSP.Get().removeF(n.model),s("load")};return(a,c)=>{const l=o.resolveComponent("PCheckBox");return o.openBlock(),o.createBlock(l,{modelValue:o.unref(i),"onUpdate:modelValue":c[0]||(c[0]=d=>o.isRef(i)?i.value=d:null),label:e.model.label,size:"mini",onChange:r},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-72984c94"]]),Jp=U(o.defineComponent({__name:"FiltersButtonsSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(e,{emit:t}){const n=t,i=o.ref(void 0),s=async a=>{on.Get().replaceF(a,i.value),i.value=a,on.Get().p.drop()},r=async a=>{await s(a),n("load")};return(a,c)=>{const l=o.resolveComponent("PString"),d=o.resolveComponent("PButton"),u=o.resolveComponent("GridContainer"),h=o.resolveComponent("InfoItem");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(l,{string:e.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),o.createVNode(h,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"#F5F5F5","border-color":"#C4C4C4",padding:"7px","with-hover":!1},{title:o.withCtx(()=>[...c[0]||(c[0]=[])]),default:o.withCtx(()=>[o.createVNode(u,{"max-width":"100%","grid-gap":"7px","grid-template-columns":"repeat(auto-fit, minmax(100%, 1fr))",margin:"0px"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.models,(m,p)=>(o.openBlock(),o.createBlock(d,{key:p,color:"blue",height:"auto",text:m.label,"is-toggle":m.valueEq(o.unref(i)),"toggle-mode":!0,inverse:e.inverse,onClick:g=>r(m.valueEq(o.unref(i))?void 0:m)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-586481ea"]]),_p=["value","label"],qp=U(o.defineComponent({__name:"FilterSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(e,{emit:t}){const n=t,i=on.Get(),s=o.ref(void 0),r=async c=>{i.replaceF(c,s.value),s.value=c},a=async c=>{c?await r(s.value):await r(void 0),n("load")};return(c,l)=>{const d=o.resolveComponent("PSelect");return o.openBlock(),o.createBlock(d,{modelValue:o.unref(s),"onUpdate:modelValue":l[0]||(l[0]=u=>o.isRef(s)?s.value=u:null),clearable:o.unref(s),placeholder:e.defaultLabel,onChange:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.models,(u,h)=>(o.openBlock(),o.createElementBlock("option",{key:h,value:u,label:u.label},null,8,_p))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ae66df57"]]),$p=U(o.defineComponent({__name:"FTSPPanel",setup(e){return o.onBeforeMount(async()=>{}),(t,n)=>(o.openBlock(),o.createElementBlock("div"))}}),[["__scopeId","data-v-e280d85b"]]),tg=U(o.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(e){const t=o.ref(!1);return(n,i)=>(o.openBlock(),o.createElementBlock("div",{class:"general-block-item",style:o.normalizeStyle({background:e.background,height:e.height,width:e.width,borderColor:e.borderColor,padding:e.padding,margin:e.margin,transform:e.scale&&o.unref(t)?"scale(1.03, 1.03)":""}),onMouseenter:i[0]||(i[0]=s=>t.value=!0),onMouseleave:i[1]||(i[1]=s=>t.value=!1)},[o.createElementVNode("div",{class:"green",style:o.normalizeStyle({width:`${e.ready}`})},null,4),o.createElementVNode("div",{class:"general-block-item-title",style:o.normalizeStyle({fontSize:e.fontSize})},[o.renderSlot(n.$slots,"general-item",{},void 0,!0)],4),o.createElementVNode("div",{class:"tools-icon",style:o.normalizeStyle({display:e.withIcon?"flex":"none"})},[...i[2]||(i[2]=[o.createElementVNode("svg",{class:"icon-del"},[o.createElementVNode("use",{"xlink:href":"#del"})],-1)])],4),i[3]||(i[3]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"del",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},[o.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"]]),eg={key:0,class:"blur"},ng={style:{display:"flex","justify-content":"center"}},og=U(o.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(e,{emit:t}){const n=e,i=t,s=n.customClass!==""?n.customClass:"inside-class",r=o.ref(!1),a=o.ref(!1),c=o.ref(!1),l=o.ref(n.close);o.watch(()=>n.close,()=>{a.value=!1});const d=I=>{I.stopPropagation(),I.key==="Escape"&&(n.showSaveDialog?c.value=!0:a.value=!1)};o.watch(a,async()=>{var I,R;await o.nextTick(),a.value?((R=(I=document.getElementById("info-item-opened-content"))==null?void 0:I.querySelector("input"))==null||R.focus(),document.body.addEventListener("keydown",d)):document.body.removeEventListener("keydown",d,!1),a.value===!1&&i("after-close")});const u=()=>{i("click"),a.value=!!n.withOpenWindow,l.value!==n.close&&(a.value=!1,l.value=!l.value)},h=o.computed(()=>n.customClass===""?{width:n.width,minHeight:"40px",height:"auto",maxWidth:n.maxWidth,minWidth:n.minWidth,margin:n.baseBoxMargin}:void 0),m=o.computed(()=>a.value&&n.withOpenWindow),p=o.computed(()=>({background:n.background?n.background:void 0,zIndex:m.value?"2":"0",padding:m.value?"0":n.padding,margin:n.margin,width:m.value?n.openWidth:n.width,height:m.value?n.openHeight:n.height,minHeight:"40px",maxWidth:n.maxWidth,minWidth:n.minWidth,borderColor:r.value||a.value?n.colorSelected:n.borderColor,color:r.value?n.colorSelected:"#343E5C",boxShadow:r.value||a.value?`0px 0px 1px 1px ${n.colorSelected}`:"none",alignItems:m.value?"end":"center",cursor:(n.withHover,"pointer")})),g=o.computed(()=>({height:m.value?"0":"",overflow:n.closeWindowOverflow,width:n.width})),v=o.computed(()=>({height:m.value?"auto":"0"})),b=o.computed(()=>({color:r.value?n.colorSelected:"#343E5C",fill:r.value?n.colorSelected:"#343E5C",background:n.background})),S=()=>{n.showSaveDialog?c.value=!0:a.value=!1},C=async()=>{await i("keyup-enter"),n.close&&(a.value=!1),c.value=!1},x=()=>{a.value=!1,c.value=!1};return(I,R)=>{const A=o.resolveComponent("PString"),Y=o.resolveComponent("PButton"),_=o.resolveComponent("PModal"),N=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(a)?(o.openBlock(),o.createElementBlock("div",eg)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"base-box",style:o.normalizeStyle(o.unref(h)),onClick:R[2]||(R[2]=o.withModifiers(H=>u(),["prevent","stop"]))},[o.createElementVNode("div",{class:o.normalizeClass(["body",o.unref(s)]),style:o.normalizeStyle(o.unref(p)),onMouseenter:R[0]||(R[0]=H=>e.withHover?r.value=!0:r.value=!1),onMouseleave:R[1]||(R[1]=H=>r.value=!1)},[o.unref(a)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["close-window",e.customClass]),style:o.normalizeStyle(o.unref(g))},[o.renderSlot(I.$slots,"default",{},void 0,!0)],6)),o.unref(a)?o.withDirectives((o.openBlock(),o.createElementBlock("div",{key:1,id:"info-item-opened-content",class:"open-window",style:o.normalizeStyle(o.unref(v))},[o.renderSlot(I.$slots,"open-inside-content",{},void 0,!0)],4)),[[N,S,void 0,{prevent:!0}]]):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"top-title",style:o.normalizeStyle(o.unref(b))},[o.renderSlot(I.$slots,"title",{},()=>[o.createVNode(A,{string:e.title,"font-size":"10px",padding:"0 0 0 3px",style:o.normalizeStyle({color:o.unref(r)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),o.createVNode(_,{show:o.unref(c),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:o.withCtx(()=>[o.createElementVNode("div",ng,[o.createVNode(Y,{text:"Не сохранять",onClick:x}),o.createVNode(Y,{text:"Сохранять",onClick:C})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-e8e8f1a1"]]),ig=U(o.defineComponent({__name:"InfoItemSelectButtons",props:{selected:{type:String,required:!0},title:{type:String,required:!0},list:{type:Array,required:!0}},emits:["select","reset"],setup(e,{emit:t}){const n=o.ref(!1),i=t,s=r=>{n.value=!n.value,i("select",r)};return(r,a)=>{const c=o.resolveComponent("PString"),l=o.resolveComponent("PButton"),d=o.resolveComponent("InfoItem");return o.openBlock(),o.createBlock(d,{close:o.unref(n),title:e.title,"close-window-overflow":"hidden","with-hover":!0,"with-open-window":!0},{"open-inside-content":o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.list,u=>(o.openBlock(),o.createBlock(l,{key:u,type:"admin",color:"blue",text:u,onClick:h=>s(u)},null,8,["text","onClick"]))),128)),o.createVNode(l,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=u=>s(void 0))})]),default:o.withCtx(()=>[o.createVNode(c,{string:e.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-973addd1"]]),sg={class:"mainblock"},ag={class:"mainline"},rg=U(o.defineComponent({__name:"LeftRightContainer",props:{leftWidth:{type:String,required:!1,default:"0px"},background:{type:String,required:!1,default:"inherit"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",sg,[o.createElementVNode("div",ag,[o.createElementVNode("div",{class:"mainblock-left",style:o.normalizeStyle({minWidth:e.leftWidth,maxWidth:e.leftWidth,background:e.background,display:e.leftWidth!=="0px"?"block":"none"})},[o.renderSlot(t.$slots,"left",{},void 0,!0)],4),o.createElementVNode("div",{class:"mainblock-right",style:o.normalizeStyle({background:e.background})},[o.renderSlot(t.$slots,"right",{},void 0,!0)],4)])]))}}),[["__scopeId","data-v-42fa7104"]]),Sl=U(o.defineComponent({__name:"IconSearch",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#search"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[o.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"]]),lg={class:"search-list"},cg=["onClick"],wl=U(o.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(e,{emit:t}){const n=t,i=e,s=o.ref(i.modelValue),r=o.ref([]);async function a(){n("input",s.value),await c()}async function c(){i.searchFunc&&(r.value=await i.searchFunc(s.value))}async function l(d){s.value="",n("select",d)}return(d,u)=>(o.openBlock(),o.createElementBlock("div",{class:"container",style:o.normalizeStyle({width:e.width})},[o.createVNode(pn,{modelValue:o.unref(s),"onUpdate:modelValue":u[0]||(u[0]=h=>o.isRef(s)?s.value=h:null),placeholder:"Найти",onInput:a},{right:o.withCtx(()=>[o.createVNode(Sl,{size:"24px"})]),_:1},8,["modelValue"]),o.unref(s)&&o.unref(s).length>=2?(o.openBlock(),o.createElementBlock("div",{key:0,class:"result",style:o.normalizeStyle({maxHeight:e.maxHeightResultList,zIndex:e.zIndexResultList,boxShadow:e.boxShadowResultList})},[o.createElementVNode("ul",lg,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r),h=>(o.openBlock(),o.createElementBlock("li",{key:h.value,onClick:m=>l(h)},o.toDisplayString(h.label),9,cg))),128))])],4)):o.createCommentVNode("",!0)],4))}}),[["__scopeId","data-v-d02c66ef"]]),dg=U(o.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=o.useModel(e,"modelValue"),n=async()=>{};return(i,s)=>{const r=o.resolveComponent("PInput");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(r,{modelValue:t.value.number,"onUpdate:modelValue":s[0]||(s[0]=a=>t.value.number=a),onBlur:n},null,8,["modelValue"]),o.createVNode(r,{modelValue:t.value.description,"onUpdate:modelValue":s[1]||(s[1]=a=>t.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-51bf3f08"]]),ug={};function fg(e,t){return o.openBlock(),o.createElementBlock(o.Fragment,null,[t[0]||(t[0]=o.createElementVNode("div",{class:"blur"},null,-1)),t[1]||(t[1]=o.createElementVNode("div",{class:"loader-container"},[o.createElementVNode("div",{class:"loader",style:{"--b":"20px",width:"200px","--n":"10"}})],-1))],64)}const hg=U(ug,[["render",fg],["__scopeId","data-v-0f1f2f84"]]),mg={style:{display:"flex","justify-content":"center",width:"100%"}},pg={class:"pag-number"},gg={class:"pag-ul"},vg={key:2},yg=U(o.defineComponent({__name:"PPagination",props:{showConfirm:{type:Boolean,default:!1},justifyContent:{type:String,default:"center"},store:{type:Object,required:!0}},setup(e){const t=e,n=h=>h?"active":"neutral",i=h=>h?"not-active":"neutral",s=o.ref(zr),r=o.ref(!1),a=o.ref(!1);s.value.count=t.store.Count.value,o.watch(t.store.Count,()=>{s.value.count=t.store.Count.value});const c=async h=>{if(h!==s.value.curPage&&(h<1&&(h=1),h>s.value.pagesCount()&&(h=s.value.pagesCount()),!t.showConfirm))return await l(h)},l=async(h,m)=>{s.value.setCurPage(h),on.Get().p.offset=(h-1)*s.value.limit,await t.store.FTSP(),u()},d=o.computed(()=>{const h=s.value.pagesCount();return h<8?nn.GenerateNumsRange(2,h-1).filter(m=>m<h&&m>1):nn.GenerateNumsRange(s.value.curPage-2,s.value.curPage+3).filter(m=>m<h&&m>1)}),u=()=>{const h=document.querySelector(".el-table__body-wrapper"),m=document.querySelector("#list");h?h.scrollTo({top:0}):m&&m.scrollTo({top:0})};return o.onBeforeUnmount(()=>{on.Get().p.drop()}),(h,m)=>{const p=o.resolveComponent("ArrowLeft"),g=o.resolveComponent("PButton"),v=o.resolveComponent("DoubleArrowLeft"),b=o.resolveComponent("EllipsisSvg"),S=o.resolveComponent("DoubleArrowRight"),C=o.resolveComponent("ArrowRight");return o.openBlock(),o.createElementBlock("div",mg,[o.createElementVNode("div",{class:"pag-container",style:o.normalizeStyle({justifyContent:e.justifyContent})},[o.createElementVNode("div",pg,[o.createVNode(g,{skin:"pag",type:i(o.unref(s).curPage===1),onClick:m[0]||(m[0]=x=>c(o.unref(s).curPage-1))},{default:o.withCtx(()=>[o.createVNode(p)]),_:1},8,["type"]),o.createElementVNode("ul",gg,[o.createElementVNode("li",null,[o.createVNode(g,{skin:"pag",type:n(o.unref(s).curPage===1),text:"1",onClick:m[1]||(m[1]=x=>c(1))},null,8,["type"])]),o.unref(s).pagesCount()>8&&o.unref(s).curPage>4?(o.openBlock(),o.createElementBlock("li",{key:0,onMouseenter:m[3]||(m[3]=x=>r.value=!0),onMouseleave:m[4]||(m[4]=x=>r.value=!1)},[o.createVNode(g,{skin:"pag",type:"neutral",onClick:m[2]||(m[2]=x=>c(o.unref(s).curPage-5))},{default:o.withCtx(()=>[o.unref(r)?(o.openBlock(),o.createBlock(v,{key:0})):(o.openBlock(),o.createBlock(b,{key:1}))]),_:1})],32)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(d),x=>(o.openBlock(),o.createElementBlock("li",{key:x},[o.createVNode(g,{skin:"pag",type:n(x===o.unref(s).curPage),text:x,onClick:I=>c(x)},null,8,["type","text","onClick"])]))),128)),o.unref(s).pagesCount()>=8&&o.unref(s).curPage<o.unref(s).pagesCount()-3?(o.openBlock(),o.createElementBlock("li",{key:1,onMouseenter:m[6]||(m[6]=x=>a.value=!0),onMouseleave:m[7]||(m[7]=x=>a.value=!1)},[o.createVNode(g,{skin:"pag",type:"neutral",onClick:m[5]||(m[5]=x=>c(o.unref(s).curPage+5))},{default:o.withCtx(()=>[o.unref(a)?(o.openBlock(),o.createBlock(S,{key:0})):(o.openBlock(),o.createBlock(b,{key:1}))]),_:1})],32)):o.createCommentVNode("",!0),o.unref(s).pagesCount()>1?(o.openBlock(),o.createElementBlock("li",vg,[o.createVNode(g,{skin:"pag",type:n(o.unref(s).pagesCount()===o.unref(s).curPage),text:o.unref(s).pagesCount(),onClick:m[8]||(m[8]=x=>c(o.unref(s).pagesCount()))},null,8,["type","text"])])):o.createCommentVNode("",!0)]),o.createVNode(g,{skin:"pag",type:i(o.unref(s).curPage===o.unref(s).pagesCount()),onClick:m[9]||(m[9]=x=>c(o.unref(s).curPage+1))},{default:o.withCtx(()=>[o.createVNode(C)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-57f15ca8"]]),bg=U(o.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(e,{emit:t}){const n=e,i=t,s=o.ref(n.modelValue),r=o.ref();let a=zs.SearchModel();o.watch(()=>n.focus,()=>{n.focus&&setTimeout(()=>{r.value.focus(),s.value=""},500)});const c=async u=>{if(u.length<2)return;r.value.activated=!0,a=zs.SearchModel(),a.searchObjects=[],a.query=u,a.key=n.keyValue;const h=a.searchGroups.find(m=>m.key===n.keyValue);return h&&(a.searchGroup=h),await Kr.Search.Search(a),a.searchObjects},l=async u=>{i("select",u),s.value=""},d=u=>{i("input",u),u.length===0&&i("input","")};return(u,h)=>(o.openBlock(),o.createBlock(wl,{ref_key:"searchForm",ref:r,modelValue:o.unref(s),"onUpdate:modelValue":h[0]||(h[0]=m=>o.isRef(s)?s.value=m:null),"max-height-result-list":e.maxHeightResultList,"z-index-result-list":e.zIndexResultList,"box-shadow-result-list":e.boxShadowResultList,width:e.width,"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:e.placeholder,"search-func":c,"trigger-on-focus":e.showSuggestions,suggestions:o.unref(a).searchObjects,onSelect:l,onInput:d},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"]]),Sg={class:"mainblock-body"},wg={class:"mainblock-footer"},Cg=U(o.defineComponent({__name:"ResearcheContainer",props:{background:{type:String,required:!1,default:"inherit"},padding:{type:String,required:!1,default:"0px 10px"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",{class:"mainblock",style:o.normalizeStyle({background:e.background,padding:e.padding})},[o.createElementVNode("div",{class:"mainblock-header",style:o.normalizeStyle({background:e.background})},[o.renderSlot(t.$slots,"header",{},void 0,!0)],4),o.createElementVNode("div",Sg,[o.renderSlot(t.$slots,"body",{},void 0,!0)]),o.createElementVNode("div",wg,[o.renderSlot(t.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-367c3367"]]),Eg={class:"right-slider-content"},xg={class:"right-slider-content-header"},Ig={class:"right-slider-content-box"},Pg={class:"right-slider-button"},Rg=U(o.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(e,{emit:t}){const n=e,i=t,s=o.ref(!1);o.watch(()=>n.toggle,()=>{s.value=!s.value});const r=a=>{s.value=!s.value,i("toggle",a)};return(a,c)=>{const l=o.resolveComponent("PString");return o.openBlock(),o.createElementBlock("div",{class:"right-slider",style:o.normalizeStyle({marginRight:o.unref(s)?`calc(${e.sliderOffWidth} - ${e.sliderOnWidth})`:"0",width:e.sliderOnWidth})},[o.createElementVNode("div",{class:"click-line",onClick:c[0]||(c[0]=d=>r(!o.unref(s)))},[o.unref(s)?(o.openBlock(),o.createBlock(l,{key:0,string:e.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):o.createCommentVNode("",!0),o.unref(s)?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(l,{key:1,string:e.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),o.createElementVNode("div",Eg,[o.createElementVNode("div",xg,[o.renderSlot(a.$slots,"header",{},void 0,!0)]),o.createElementVNode("div",Ig,[o.renderSlot(a.$slots,"default",{},void 0,!0)])]),o.createElementVNode("div",Pg,[o.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-262b1c53"]]),Mg={class:"mainblock"},Og={class:"body-block"},Ag={class:"tab-block"},Tg=U(o.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(e,{emit:t}){const n=e,i=t,s=o.ref(!1),r=o.ref(window.matchMedia("(max-width: 768px)").matches),a=l=>{i("toggle",l)},c=o.ref(!1);return o.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(n.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return r.value=window.matchMedia("(max-width: 1215px)").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}),s.value=!0}),(l,d)=>(o.openBlock(),o.createElementBlock("div",Mg,[o.createElementVNode("div",{class:"slider-block",style:o.normalizeStyle({marginRight:o.unref(r)?e.isToggle?"49px":`calc(49px - ${e.sliderOnWidth})`:e.isToggle?e.sliderOffWidth:`calc(${e.sliderOffWidth} - ${e.sliderOnWidth})`,width:e.sliderOnWidth,minHeight:e.sliderOffWidth,height:e.isToggle?"auto":"100px"})},[o.createElementVNode("div",{class:"slider-icon",style:o.normalizeStyle({border:e.isToggle?"1px solid #379FFF":"1px solid #00B5A4",background:e.isToggle?"#ffffff":"#C7ECEA"}),onClick:d[0]||(d[0]=u=>a(!e.isToggle)),onMouseenter:d[1]||(d[1]=u=>c.value=!0),onMouseleave:d[2]||(d[2]=u=>c.value=!1)},[o.createElementVNode("div",{class:"icon-block",style:o.normalizeStyle({transform:o.unref(c)?e.isToggle?"rotate(-225deg) scale(1.2, 1.2)":"rotate(0deg) scale(1.2, 1.2)":e.isToggle?"rotate(-225deg)":"rotate(0deg)",fill:e.isToggle?"#379FFF":"#00B5A4"})},[o.renderSlot(l.$slots,"icon",{},void 0,!0)],4)],36),o.createElementVNode("div",{class:"slider-info",style:o.normalizeStyle({width:`calc(${e.sliderOnWidth} - ${e.sliderOffWidth})`})},[o.renderSlot(l.$slots,"slider-body",{},void 0,!0)],4)],4),o.createElementVNode("div",Og,[o.renderSlot(l.$slots,"body",{},void 0,!0)]),o.createElementVNode("div",Ag,[o.renderSlot(l.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-0cfd77ce"]]),Bg=["label","value"],kg=U(o.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(e,{emit:t}){const n={[he.String]:"Текстовый ответ",[he.Text]:"Развёрнутый текстовый ответ",[he.Number]:"Числовой ответ",[he.Date]:"Ответ в виде даты",[he.Radio]:"Выбор одного из вариантов",[he.Set]:"Выбор нескольких вариантов",[he.File]:"Ответ в виде файла",[he.MatrixRadio]:"Матрица с одним выбором",[he.MatrixSet]:"Матрица с несколькими выборами"},i=t,s=r=>{i("select",r)};return(r,a)=>{const c=o.resolveComponent("PString"),l=o.resolveComponent("PSelect");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(c,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),o.createVNode(l,{"model-value":e.selectedType,placeholder:"Вид ответа",onChange:s},{default:o.withCtx(()=>[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(n,(d,u)=>o.createElementVNode("option",{key:d,label:d,value:u},null,8,Bg)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-36a59e2b"]]),Ng=["label","value"],Dg=U(o.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(e,{emit:t}){const n=o.ref(!1),i=t,s=o.ref();o.onBeforeMount(()=>{n.value=!0,s.value=On.GetDefault()});const r=async c=>{s.value=c??On.GetDefault(),i("load")},a=async c=>{await r(c)};return(c,l)=>{var u;const d=o.resolveComponent("PSelect");return o.unref(n)?(o.openBlock(),o.createBlock(d,{key:0,modelValue:o.unref(s),"onUpdate:modelValue":l[0]||(l[0]=h=>o.isRef(s)?s.value=h:null),"popper-append-to-body":!1,clearable:!((u=o.unref(s))!=null&&u.default),"value-key":"label",onChange:a,onClear:l[1]||(l[1]=h=>a())},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(On).Get(),(h,m)=>(o.openBlock(),o.createElementBlock("option",{key:m,label:h.label,value:h},null,8,Ng))),128))]),_:1},8,["modelValue","clearable"])):o.createCommentVNode("",!0)}}}),[["__scopeId","data-v-982338b4"]]),Fg=["label","value"],Vg=U(o.defineComponent({__name:"SortSelect",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(e,{emit:t}){const n=t,i=o.ref();o.onBeforeMount(()=>{i.value=On.GetDefault()});const s=async a=>{a||(i.value=On.GetDefault()),on.Get().setSortModel(i.value),on.Get().p.drop(),n("load")},r=async a=>{await s(a)};return(a,c)=>{var d;const l=o.resolveComponent("PSelect");return o.openBlock(),o.createBlock(l,{modelValue:o.unref(i),"onUpdate:modelValue":c[0]||(c[0]=u=>o.isRef(i)?i.value=u:null),"popper-append-to-body":!1,clearable:!((d=o.unref(i))!=null&&d.default),"value-key":"label",onChange:r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(On).Get(),(u,h)=>(o.openBlock(),o.createElementBlock("option",{key:h,label:u.label,value:u},null,8,Fg))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-80f413ec"]]),zg={class:"switch-container"},Lg={class:"line"},Hg={class:"line"},Ug=U(o.defineComponent({__name:"Switch3Pos",props:{firstModel:{type:Object,required:!0},secondModel:{type:Object,required:!0},defaultLabel:{type:String,default:"Все"}},emits:["load"],setup(e,{emit:t}){const n=e,i={background:"inherit",border:"1px solid #c4c4c4"},s=()=>n.firstModel.valueEq(d.value)?void 0:i,r=()=>d.value?i:void 0,a=()=>n.secondModel.valueEq(d.value)?void 0:i,c=h=>{var p;return{color:(p=d.value)!=null&&p.valueEq(h)?"#006bb4":"#B0A4C0"}},l=t,d=o.ref(void 0),u=async h=>{var m;(m=d.value)!=null&&m.valueEq(h)||(d.value=h,l("load"))};return(h,m)=>{const p=o.resolveComponent("PString");return o.openBlock(),o.createElementBlock("div",zg,[o.createElementVNode("div",Lg,[o.createVNode(p,{string:e.firstModel.label,"font-size":"12px",padding:"0",style:o.normalizeStyle(c(e.firstModel)),onClick:m[0]||(m[0]=g=>u(e.firstModel))},null,8,["string","style"]),o.createVNode(p,{string:"Все","font-size":"12px",padding:"0",style:o.normalizeStyle(c()),onClick:m[1]||(m[1]=g=>u())},null,8,["style"]),o.createVNode(p,{string:e.secondModel.label,"font-size":"12px",padding:"0",style:o.normalizeStyle(c(e.secondModel)),onClick:m[2]||(m[2]=g=>u(e.secondModel))},null,8,["string","style"])]),o.createElementVNode("div",Hg,[o.createElementVNode("div",{class:o.normalizeClass(["switch-knob1",{active:e.firstModel.valueEq(o.unref(d))}]),style:o.normalizeStyle(s()),onClick:m[3]||(m[3]=g=>u(e.firstModel))},null,6),o.createElementVNode("div",{class:o.normalizeClass(["switch-knob2",{active:!o.unref(d)}]),style:o.normalizeStyle(r()),onClick:m[4]||(m[4]=g=>u())},null,6),o.createElementVNode("div",{class:o.normalizeClass(["switch-knob3",{active:e.secondModel.valueEq(o.unref(d))}]),style:o.normalizeStyle(a()),onClick:m[5]||(m[5]=g=>u(e.secondModel))},null,6),m[6]||(m[6]=o.createElementVNode("div",{class:"switch-axis"},null,-1)),m[7]||(m[7]=o.createElementVNode("div",{class:"switch-axis-dash1"},null,-1)),m[8]||(m[8]=o.createElementVNode("div",{class:"switch-axis-dash2"},null,-1)),m[9]||(m[9]=o.createElementVNode("div",{class:"switch-axis-dash3"},null,-1))])])}}}),[["__scopeId","data-v-ecff678c"]]),jg={},Gg={class:"flex"};function Wg(e,t){return o.openBlock(),o.createElementBlock("div",Gg,[o.renderSlot(e.$slots,"default",{},void 0,!0)])}const Xg=U(jg,[["render",Wg],["__scopeId","data-v-5023d414"]]),Yg=U(o.defineComponent({__name:"ToggleInfoItem",props:{title:{type:String,required:!0},content:{type:String,required:!0}},emits:["submit"],setup(e,{emit:t}){const n=o.ref(!1),i=t,s=async()=>{i("submit"),n.value=!n.value};return(r,a)=>{const c=o.resolveComponent("PString"),l=o.resolveComponent("PButton"),d=o.resolveComponent("GridContainer"),u=o.resolveComponent("InfoItem");return o.openBlock(),o.createBlock(u,{title:e.title,icon:"edit-title","with-hover":!0,close:o.unref(n),width:"100%",onKeyupEnter:s},{"open-inside-content":o.withCtx(()=>[o.createVNode(d,{"custom-class":"grid"},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default",{},void 0,!0),o.createVNode(l,{type:"admin",color:"blue",text:"Сохранить",onClick:s})]),_:3})]),default:o.withCtx(()=>[e.content.length>0?(o.openBlock(),o.createBlock(c,{key:0,string:e.content},null,8,["string"])):(o.openBlock(),o.createBlock(c,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-0794596f"]]),Kg={class:"top-slider-content"},Zg={class:"center"},Qg=U(o.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(e,{emit:t}){const n=e,i=t,s=o.ref(!0);o.watch(()=>n.toggle,()=>{s.value=!s.value});const r=a=>{s.value=!s.value,i("toggle",a)};return(a,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(s)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=o.withModifiers(l=>s.value=!0,["prevent"])),c[1]||(c[1]=o.withModifiers(()=>{},["stop"]))]})),o.createElementVNode("div",{class:"top-slider",style:o.normalizeStyle({marginTop:o.unref(s)?`calc(${e.sliderOffHeight} - ${e.sliderOnHeight})`:"0",height:e.sliderOnHeight}),onClick:c[3]||(c[3]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("div",Kg,[o.createElementVNode("div",Zg,[o.renderSlot(a.$slots,"default",{},void 0,!0)])]),o.createElementVNode("div",{class:"click-line",style:o.normalizeStyle({height:e.sliderOffHeight}),onClick:c[2]||(c[2]=l=>r(!o.unref(s)))},[o.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-683131f5"]]);function Jg(e){e.component("PageNotFound",Nr),e.component("AdaptiveContainer",Rp),e.component("AdaptiveContainerHorizontal",Ap),e.component("CarouselImages",zp),e.component("ContextWindow",Lp),e.component("DateInputRangeV2",Xp),e.component("DateInputRange",Up),e.component("DropList",Zp),e.component("FilterCheckbox",Qp),e.component("FiltersButtonsSelect",Jp),e.component("FilterSelect",qp),e.component("FTSPPanel",$p),e.component("GeneralItem",tg),e.component("GridContainer",bl),e.component("InfoItem",og),e.component("InfoItemSelectButtons",ig),e.component("LeftRightContainer",rg),e.component("PAutocomplete",wl),e.component("PhoneForm",dg),e.component("PLoader",hg),e.component("PPagination",yg),e.component("RemoteSearch",bg),e.component("ResearcheContainer",Cg),e.component("RightSliderContainer",Rg),e.component("RightTabsContainer",Tg),e.component("SelectValueType",kg),e.component("SortList",Dg),e.component("SortSelect",Vg),e.component("Switch3Pos",Ug),e.component("ThemeWrapper",Xg),e.component("ToggleInfoItem",Yg),e.component("TopSliderContainer",Qg)}const _g=U(o.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(e){const t=o.ref(!1);return(n,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?o.unref(t)?e.hoverColor:e.color:(o.unref(t),e.color)}),onMouseenter:i[0]||(i[0]=s=>t.value=!0),onMouseleave:i[1]||(i[1]=s=>t.value=!1)},[...i[2]||(i[2]=[o.createElementVNode("use",{"xlink:href":"#download"},null,-1)])],38)),i[3]||(i[3]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"download",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[o.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"}),o.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"]]),qg=U(o.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(e){const t=o.ref(!1);return(n,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?o.unref(t)?e.hoverColor:e.color:(o.unref(t),e.color)}),onMouseenter:i[0]||(i[0]=s=>t.value=!0),onMouseleave:i[1]||(i[1]=s=>t.value=!1)},[...i[2]||(i[2]=[o.createElementVNode("use",{"xlink:href":"#filter"},null,-1)])],38)),i[3]||(i[3]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"filter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[o.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"}),o.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"]]),$g=U(o.defineComponent({__name:"IconArrowLeft",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"arrow-left",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[o.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"]]),tv=U(o.defineComponent({__name:"IconCheckDefault",props:{size:{type:String,default:"22px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#check_on"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"check_on",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[o.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"]]),Cl=U(o.defineComponent({__name:"IconClose",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#close"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},[o.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"]]),ev=U(o.defineComponent({__name:"IconEdit",props:{size:{type:String,default:""},margin:{type:String,default:"0 15px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#edit"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[o.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"}),o.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"]]),nv=U(o.defineComponent({__name:"IconEmail",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#email"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"email",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[o.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"]]),ov=U(o.defineComponent({__name:"IconMove",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#icon-move"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"icon-move",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22"},[o.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"]]),iv=U(o.defineComponent({__name:"IconPhone",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#phone"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"phone",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[o.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"]]),sv=U(o.defineComponent({__name:"IconSelectArrow",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"arrow-down",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},[o.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"}),o.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"]]),av=U(o.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(e){const t=o.ref(!1);return(n,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?o.unref(t)?e.hoverColor:e.color:(o.unref(t),e.color)}),onMouseenter:i[0]||(i[0]=s=>t.value=!0),onMouseleave:i[1]||(i[1]=s=>t.value=!1)},[...i[2]||(i[2]=[o.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)])],38)),i[3]||(i[3]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.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"]]),rv=U(o.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(e){const t=o.ref(!1);return(n,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?o.unref(t)?e.hoverColor:e.color:(o.unref(t),e.color)}),onMouseenter:i[0]||(i[0]=s=>t.value=!0),onMouseleave:i[1]||(i[1]=s=>t.value=!1)},[...i[2]||(i[2]=[o.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)])],38)),i[3]||(i[3]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.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"]]),lv=U(o.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(e){const t=o.ref(!1);return(n,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?o.unref(t)?e.hoverColor:e.color:(o.unref(t),e.color)}),onMouseenter:i[0]||(i[0]=s=>t.value=!0),onMouseleave:i[1]||(i[1]=s=>t.value=!1)},[...i[2]||(i[2]=[o.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)])],38)),i[3]||(i[3]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"double-arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.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"]]),cv=U(o.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(e){const t=o.ref(!1);return(n,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?o.unref(t)?e.hoverColor:e.color:(o.unref(t),e.color)}),onMouseenter:i[0]||(i[0]=s=>t.value=!0),onMouseleave:i[1]||(i[1]=s=>t.value=!1)},[...i[2]||(i[2]=[o.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)])],38)),i[3]||(i[3]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"double-arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.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"]]),dv=U(o.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(e){const t=o.ref(!1);return(n,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?o.unref(t)?e.hoverColor:e.color:(o.unref(t),e.color)}),onMouseenter:i[0]||(i[0]=s=>t.value=!0),onMouseleave:i[1]||(i[1]=s=>t.value=!1)},[...i[2]||(i[2]=[o.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)])],38)),i[3]||(i[3]=o.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 uv(e){e.component("IconDownload",_g),e.component("IconFilter",qg),e.component("ArrowLeft",av),e.component("ArrowRight",rv),e.component("DoubleArrowLeft",lv),e.component("DoubleArrowRight",cv),e.component("EllipsisSvg",dv),e.component("IconArrowLeft",$g),e.component("IconCheckDefault",tv),e.component("IconClose",Cl),e.component("IconEdit",ev),e.component("IconEmail",nv),e.component("IconMove",ov),e.component("IconPhone",iv),e.component("IconSearch",Sl),e.component("IconSelectArrow",sv)}const fv=o.defineComponent({name:"CollapseContainer",props:{initActiveIdx:{type:Number,default:0}},setup(e){const t=o.ref(e.initActiveIdx),n=i=>{t.value=i};return o.watch(()=>e.initActiveIdx,()=>{n(e.initActiveIdx)}),{changeActiveId:n,activeIdx:t}}});function hv(e,t,n,i,s,r){return o.openBlock(),o.createElementBlock("div",null,[o.renderSlot(e.$slots,"default",{activeIdx:e.activeIdx,changeActiveId:e.changeActiveId})])}const mv=U(fv,[["render",hv]]),pv=o.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(e,{emit:t}){const n=o.ref(e.activeId==="0"),i=()=>{n.value=!n.value,t("changeActiveId",e.tabId)};return o.onUpdated(()=>{e.activeId&&e.activeId!==e.tabId&&(n.value=!0)}),o.onBeforeMount(()=>{e.activeId&&e.activeId!==e.tabId&&(n.value=!1)}),{collapsed:n,handleItemClick:i}}}),gv=["for"],vv={class:"inside-icon"};function yv(e,t,n,i,s,r){return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{class:"tab",style:o.normalizeStyle({margin:e.margin,height:e.isCollaps&&e.collapsed?"60px":"","box-shadow":e.selectable&&e.activeId===e.tabId?"0px 0px 1px 2px #1979cf":""})},[e.isCollaps&&e.collapsed?(o.openBlock(),o.createElementBlock("svg",{key:0,class:"icon-arrow",onClick:t[0]||(t[0]=(...a)=>e.handleItemClick&&e.handleItemClick(...a))},[...t[3]||(t[3]=[o.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)])])):e.isCollaps&&!e.collapsed?(o.openBlock(),o.createElementBlock("svg",{key:1,class:"icon-arrow",onClick:t[1]||(t[1]=(...a)=>e.handleItemClick&&e.handleItemClick(...a))},[...t[4]||(t[4]=[o.createElementVNode("use",{"xlink:href":"#arrow-up"},null,-1)])])):o.createCommentVNode("",!0),o.createElementVNode("label",{for:e.tabId,onClick:t[2]||(t[2]=(...a)=>e.handleItemClick&&e.handleItemClick(...a))},[o.createElementVNode("div",{style:o.normalizeStyle({cursor:e.isCollaps?"pointer":"default",background:e.changeColor?e.background:e.backgroundAttention,padding:e.padding,borderRadius:"5px"}),class:"tab-name"},[o.createElementVNode("div",vv,[o.renderSlot(e.$slots,"icon",{},void 0,!0)]),o.createElementVNode("div",{class:"title-in",style:o.normalizeStyle({marginRight:e.isCollaps?"50px":"0",width:e.isCollaps?"calc(100% - 50px)":"100%"})},[o.renderSlot(e.$slots,"inside-title",{},()=>[o.createTextVNode(o.toDisplayString(e.title),1)],!0)],4),o.createElementVNode("div",{class:o.normalizeClass(["tools-bar",{"hidden-part":e.showToolsOnHover}])},[o.renderSlot(e.$slots,"tools",{},void 0,!0)],2)],4)],8,gv),o.createElementVNode("div",{style:o.normalizeStyle({maxHeight:e.isCollaps?"":"1000000vh",background:e.changeColor?e.background:e.backgroundAttention}),class:o.normalizeClass(e.collapsed?"tab-content-down":"tab-content-up")},[o.renderSlot(e.$slots,"default",{},void 0,!0)],6)],4),t[5]||(t[5]=o.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 bv=U(pv,[["render",yv],["__scopeId","data-v-c2e31ebb"]]),Sv={class:"tab"},wv={class:"rotate"},Cv=U(o.defineComponent({__name:"VerticalCollapseContainer",setup(e){const t=o.ref(!1),n=async()=>{t.value=!t.value};return(i,s)=>{const r=o.resolveComponent("ArrowRight"),a=o.resolveComponent("ArrowLeft");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",Sv,[o.renderSlot(i.$slots,"main",{},void 0,!0),o.createElementVNode("div",{style:o.normalizeStyle({width:o.unref(t)?"50%":"20px",transition:"0.3s"}),class:"left"},[o.createElementVNode("div",{style:o.normalizeStyle({width:o.unref(t)?"100%":"0",transition:"0.3s"}),class:"left-content"},[o.renderSlot(i.$slots,"inside-content-left",{},void 0,!0)],4),o.createElementVNode("div",{class:"arrow-bar",onClick:n},[o.createElementVNode("div",wv,[o.renderSlot(i.$slots,"inside-title",{},void 0,!0)]),o.unref(t)?(o.openBlock(),o.createBlock(r,{key:0,"icon-class":"icon-arrow"})):(o.openBlock(),o.createBlock(a,{key:1,"icon-class":"icon-arrow"}))])],4),o.createElementVNode("div",{style:o.normalizeStyle({width:o.unref(t)?"50%":"100%",transition:"0.3s"}),class:"right"},[o.renderSlot(i.$slots,"inside-content-right",{},void 0,!0)],4)]),o.createVNode(a),o.createVNode(r)],64)}}}),[["__scopeId","data-v-4ccaade5"]]),Ev={class:"add-block_body"},xv=U(o.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(e){return(t,n)=>{const i=o.resolveComponent("PSticky");return o.openBlock(),o.createElementBlock("div",{class:"add-block",style:o.normalizeStyle({margin:e.margin,background:e.background,padding:e.padding})},[o.createVNode(i,{top:e.top,"z-index":e.zIndex},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),o.createElementVNode("div",Ev,[o.renderSlot(t.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-338720bc"]]),Iv=U(o.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(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",{class:"add-block",style:o.normalizeStyle({margin:e.margin,background:e.background,padding:e.padding})},[o.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-b2b43a38"]]),Pv={class:"add-block_body"},Rv=U(o.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(e){return(t,n)=>{const i=o.resolveComponent("PSticky"),s=o.resolveComponent("PContainer");return o.openBlock(),o.createBlock(s,{background:e.background,margin:e.margin,padding:e.padding},{default:o.withCtx(()=>[o.createVNode(i,{top:e.top,"z-index":e.zIndex},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),o.createElementVNode("div",Pv,[o.renderSlot(t.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-9464e4a8"]]),Mv=["src"],Ov={key:0,class:"header-row"},Av={class:"title-wrapper"},Tv={key:0,class:"title-icon"},Bv={class:"title-text"},kv={class:"text-subtitle1 text-weight-medium"},Nv={key:0,class:"caption-row"},Dv={class:"text-caption text-grey-6"},Fv=["innerHTML"],Vv={key:1,class:"card-footer"},El=U(o.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(e,{emit:t}){const n=o.ref(null),i=e,s=t,r=o.computed(()=>i.img?i.isMain?"365px":"200px":"0"),a=c=>{i.noPointer||s("click",c)};return(c,l)=>(o.openBlock(),o.createBlock(o.unref(it.QCard),{class:o.normalizeClass(["card",{"no-hover":e.noHover,"cursor-pointer":!e.noPointer}]),flat:"",bordered:"",style:o.normalizeStyle({height:e.height}),onClick:a},{default:o.withCtx(()=>[e.img?(o.openBlock(),o.createElementBlock("div",{key:0,class:"image-container",style:o.normalizeStyle({height:r.value})},[o.createElementVNode("img",{class:"image-img",src:e.img,alt:"image",style:o.normalizeStyle({height:r.value})},null,12,Mv)],4)):o.createCommentVNode("",!0),o.createVNode(o.unref(it.QCardSection),{class:"card-content",style:o.normalizeStyle({maxHeight:e.maxHeight})},{default:o.withCtx(()=>[e.title||c.$slots.title||c.$slots.icon?(o.openBlock(),o.createElementBlock("div",Ov,[o.createElementVNode("div",Av,[e.icon||c.$slots.icon?(o.openBlock(),o.createElementBlock("div",Tv,[o.renderSlot(c.$slots,"icon",{},()=>[o.createVNode(o.unref(it.QIcon),{name:e.icon,size:"20px",color:"primary"},null,8,["name"])],!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",Bv,[o.renderSlot(c.$slots,"title",{},()=>[o.createElementVNode("span",kv,o.toDisplayString(e.title),1)],!0)])]),c.$slots.caption||e.caption?(o.openBlock(),o.createElementBlock("div",Nv,[o.renderSlot(c.$slots,"caption",{},()=>[o.createElementVNode("span",Dv,o.toDisplayString(e.caption),1)],!0)])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),e.title||c.$slots.title?(o.openBlock(),o.createBlock(o.unref(it.QSeparator),{key:1,class:"header-separator"})):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_key:"contentRef",ref:n,class:"content-wrapper"},[o.renderSlot(c.$slots,"default",{},()=>[e.content?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.isMain?"main-content":"preview-content"),innerHTML:e.content},null,10,Fv)):o.createCommentVNode("",!0)],!0)],512)]),_:3},8,["style"]),c.$slots.footer?(o.openBlock(),o.createElementBlock("div",Vv,[o.renderSlot(c.$slots,"footer",{},void 0,!0)])):o.createCommentVNode("",!0)]),_:3},8,["style","class"]))}}),[["__scopeId","data-v-b586d556"]]);var xl={exports:{}};/**!
|
|
23
|
-
|
|
24
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
25
|
-
* @author owenm <owen23355@gmail.com>
|
|
26
|
-
* @license MIT
|
|
27
|
-
*/function Il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Il(Object(n),!0).forEach(function(i){zv(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ti(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ti=function(t){return typeof t}:Ti=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ti(e)}function zv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ke.apply(this,arguments)}function Lv(e,t){if(e==null)return{};var n={},i=Object.keys(e),s,r;for(r=0;r<i.length;r++)s=i[r],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function Hv(e,t){if(e==null)return{};var n=Lv(e,t),i,s;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Uv(e){return jv(e)||Gv(e)||Wv(e)||Xv()}function jv(e){if(Array.isArray(e))return Js(e)}function Gv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wv(e,t){if(e){if(typeof e=="string")return Js(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Js(e,t)}}function Js(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Xv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
28
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Yv="1.14.0";function sn(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var an=sn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ko=sn(/Edge/i),Pl=sn(/firefox/i),No=sn(/safari/i)&&!sn(/chrome/i)&&!sn(/android/i),Rl=sn(/iP(ad|od|hone)/i),Kv=sn(/chrome/i)&&sn(/android/i),Ml={capture:!1,passive:!1};function St(e,t,n){e.addEventListener(t,n,!an&&Ml)}function pt(e,t,n){e.removeEventListener(t,n,!an&&Ml)}function Bi(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Zv(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function He(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Bi(e,t):Bi(e,t))||i&&e===n)return e;if(e===n)break}while(e=Zv(e))}return null}var Ol=/\s+/g;function Ft(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Ol," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Ol," ")}}function q(e,t,n){var i=e&&e.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function Nn(e,t){var n="";if(typeof e=="string")n=e;else do{var i=q(e,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return s&&new s(n)}function Al(e,t,n){if(e){var i=e.getElementsByTagName(t),s=0,r=i.length;if(n)for(;s<r;s++)n(i[s],s);return i}return[]}function _e(){var e=document.scrollingElement;return e||document.documentElement}function Nt(e,t,n,i,s){if(!(!e.getBoundingClientRect&&e!==window)){var r,a,c,l,d,u,h;if(e!==window&&e.parentNode&&e!==_e()?(r=e.getBoundingClientRect(),a=r.top,c=r.left,l=r.bottom,d=r.right,u=r.height,h=r.width):(a=0,c=0,l=window.innerHeight,d=window.innerWidth,u=window.innerHeight,h=window.innerWidth),(t||n)&&e!==window&&(s=s||e.parentNode,!an))do if(s&&s.getBoundingClientRect&&(q(s,"transform")!=="none"||n&&q(s,"position")!=="static")){var m=s.getBoundingClientRect();a-=m.top+parseInt(q(s,"border-top-width")),c-=m.left+parseInt(q(s,"border-left-width")),l=a+r.height,d=c+r.width;break}while(s=s.parentNode);if(i&&e!==window){var p=Nn(s||e),g=p&&p.a,v=p&&p.d;p&&(a/=v,c/=g,h/=g,u/=v,l=a+u,d=c+h)}return{top:a,left:c,bottom:l,right:d,width:h,height:u}}}function Tl(e,t,n){for(var i=gn(e,!0),s=Nt(e)[t];i;){var r=Nt(i)[n],a=void 0;if(a=s>=r,!a)return i;if(i===_e())break;i=gn(i,!1)}return!1}function ao(e,t,n,i){for(var s=0,r=0,a=e.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==lt.ghost&&(i||a[r]!==lt.dragged)&&He(a[r],n.draggable,e,!1)){if(s===t)return a[r];s++}r++}return null}function _s(e,t){for(var n=e.lastElementChild;n&&(n===lt.ghost||q(n,"display")==="none"||t&&!Bi(n,t));)n=n.previousElementSibling;return n||null}function Gt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==lt.clone&&(!t||Bi(e,t))&&n++;return n}function Bl(e){var t=0,n=0,i=_e();if(e)do{var s=Nn(e),r=s.a,a=s.d;t+=e.scrollLeft*r,n+=e.scrollTop*a}while(e!==i&&(e=e.parentNode));return[t,n]}function Qv(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n)}return-1}function gn(e,t){if(!e||!e.getBoundingClientRect)return _e();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var s=q(n);if(n.clientWidth<n.scrollWidth&&(s.overflowX=="auto"||s.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(s.overflowY=="auto"||s.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return _e();if(i||t)return n;i=!0}}while(n=n.parentNode);return _e()}function Jv(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function qs(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Do;function kl(e,t){return function(){if(!Do){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),Do=setTimeout(function(){Do=void 0},t)}}}function _v(){clearTimeout(Do),Do=void 0}function Nl(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function $s(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Dl(e,t){q(e,"position","absolute"),q(e,"top",t.top),q(e,"left",t.left),q(e,"width",t.width),q(e,"height",t.height)}function ta(e){q(e,"position",""),q(e,"top",""),q(e,"left",""),q(e,"width",""),q(e,"height","")}var me="Sortable"+new Date().getTime();function qv(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(s){if(!(q(s,"display")==="none"||s===lt.ghost)){e.push({target:s,rect:Nt(s)});var r=Je({},e[e.length-1].rect);if(s.thisAnimationDuration){var a=Nn(s,!0);a&&(r.top-=a.f,r.left-=a.e)}s.fromRect=r}})}},addAnimationState:function(i){e.push(i)},removeAnimationState:function(i){e.splice(Qv(e,{target:i}),1)},animateAll:function(i){var s=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var r=!1,a=0;e.forEach(function(c){var l=0,d=c.target,u=d.fromRect,h=Nt(d),m=d.prevFromRect,p=d.prevToRect,g=c.rect,v=Nn(d,!0);v&&(h.top-=v.f,h.left-=v.e),d.toRect=h,d.thisAnimationDuration&&qs(m,h)&&!qs(u,h)&&(g.top-h.top)/(g.left-h.left)===(u.top-h.top)/(u.left-h.left)&&(l=t1(g,m,p,s.options)),qs(h,u)||(d.prevFromRect=u,d.prevToRect=h,l||(l=s.options.animation),s.animate(d,g,h,l)),l&&(r=!0,a=Math.max(a,l),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},l),d.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},a):typeof i=="function"&&i(),e=[]},animate:function(i,s,r,a){if(a){q(i,"transition",""),q(i,"transform","");var c=Nn(this.el),l=c&&c.a,d=c&&c.d,u=(s.left-r.left)/(l||1),h=(s.top-r.top)/(d||1);i.animatingX=!!u,i.animatingY=!!h,q(i,"transform","translate3d("+u+"px,"+h+"px,0)"),this.forRepaintDummy=$v(i),q(i,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),q(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){q(i,"transition",""),q(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},a)}}}}function $v(e){return e.offsetWidth}function t1(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var ro=[],ea={initializeByDefault:!0},Fo={mount:function(t){for(var n in ea)ea.hasOwnProperty(n)&&!(n in t)&&(t[n]=ea[n]);ro.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),ro.push(t)},pluginEvent:function(t,n,i){var s=this;this.eventCanceled=!1,i.cancel=function(){s.eventCanceled=!0};var r=t+"Global";ro.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][r]&&n[a.pluginName][r](Je({sortable:n},i)),n.options[a.pluginName]&&n[a.pluginName][t]&&n[a.pluginName][t](Je({sortable:n},i)))})},initializePlugins:function(t,n,i,s){ro.forEach(function(c){var l=c.pluginName;if(!(!t.options[l]&&!c.initializeByDefault)){var d=new c(t,n,t.options);d.sortable=t,d.options=t.options,t[l]=d,ke(i,d.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var a=this.modifyOption(t,r,t.options[r]);typeof a<"u"&&(t.options[r]=a)}},getEventProperties:function(t,n){var i={};return ro.forEach(function(s){typeof s.eventProperties=="function"&&ke(i,s.eventProperties.call(n[s.pluginName],t))}),i},modifyOption:function(t,n,i){var s;return ro.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(s=r.optionListeners[n].call(t[r.pluginName],i))}),s}};function Vo(e){var t=e.sortable,n=e.rootEl,i=e.name,s=e.targetEl,r=e.cloneEl,a=e.toEl,c=e.fromEl,l=e.oldIndex,d=e.newIndex,u=e.oldDraggableIndex,h=e.newDraggableIndex,m=e.originalEvent,p=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[me],!!t){var v,b=t.options,S="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!an&&!ko?v=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(i,!0,!0)),v.to=a||n,v.from=c||n,v.item=s||n,v.clone=r,v.oldIndex=l,v.newIndex=d,v.oldDraggableIndex=u,v.newDraggableIndex=h,v.originalEvent=m,v.pullMode=p?p.lastPutMode:void 0;var C=Je(Je({},g),Fo.getEventProperties(i,t));for(var x in C)v[x]=C[x];n&&n.dispatchEvent(v),b[S]&&b[S].call(t,v)}}var e1=["evt"],Se=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=i.evt,r=Hv(i,e1);Fo.pluginEvent.bind(lt)(t,n,Je({dragEl:G,parentEl:Wt,ghostEl:ht,rootEl:Dt,nextEl:Dn,lastDownEl:ki,cloneEl:Xt,cloneHidden:vn,dragStarted:Lo,putSortable:re,activeSortable:lt.active,originalEvent:s,oldIndex:lo,oldDraggableIndex:zo,newIndex:Re,newDraggableIndex:yn,hideGhostForTarget:jl,unhideGhostForTarget:Gl,cloneNowHidden:function(){vn=!0},cloneNowShown:function(){vn=!1},dispatchSortableEvent:function(c){ye({sortable:n,name:c,originalEvent:s})}},r))};function ye(e){Vo(Je({putSortable:re,cloneEl:Xt,targetEl:G,rootEl:Dt,oldIndex:lo,oldDraggableIndex:zo,newIndex:Re,newDraggableIndex:yn},e))}var G,Wt,ht,Dt,Dn,ki,Xt,vn,lo,Re,zo,yn,Ni,re,co=!1,Di=!1,Fi=[],Fn,Ue,na,oa,Fl,Vl,Lo,uo,Ho,Uo=!1,Vi=!1,zi,pe,ia=[],sa=!1,Li=[],Hi=typeof document<"u",Ui=Rl,zl=ko||an?"cssFloat":"float",n1=Hi&&!Kv&&!Rl&&"draggable"in document.createElement("div"),Ll=function(){if(Hi){if(an)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Hl=function(t,n){var i=q(t),s=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=ao(t,0,n),a=ao(t,1,n),c=r&&q(r),l=a&&q(a),d=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Nt(r).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Nt(a).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&c.float&&c.float!=="none"){var h=c.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===h)?"vertical":"horizontal"}return r&&(c.display==="block"||c.display==="flex"||c.display==="table"||c.display==="grid"||d>=s&&i[zl]==="none"||a&&i[zl]==="none"&&d+u>s)?"vertical":"horizontal"},o1=function(t,n,i){var s=i?t.left:t.top,r=i?t.right:t.bottom,a=i?t.width:t.height,c=i?n.left:n.top,l=i?n.right:n.bottom,d=i?n.width:n.height;return s===c||r===l||s+a/2===c+d/2},i1=function(t,n){var i;return Fi.some(function(s){var r=s[me].options.emptyInsertThreshold;if(!(!r||_s(s))){var a=Nt(s),c=t>=a.left-r&&t<=a.right+r,l=n>=a.top-r&&n<=a.bottom+r;if(c&&l)return i=s}}),i},Ul=function(t){function n(r,a){return function(c,l,d,u){var h=c.options.group.name&&l.options.group.name&&c.options.group.name===l.options.group.name;if(r==null&&(a||h))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return n(r(c,l,d,u),a)(c,l,d,u);var m=(a?c:l).options.group.name;return r===!0||typeof r=="string"&&r===m||r.join&&r.indexOf(m)>-1}}var i={},s=t.group;(!s||Ti(s)!="object")&&(s={name:s}),i.name=s.name,i.checkPull=n(s.pull,!0),i.checkPut=n(s.put),i.revertClone=s.revertClone,t.group=i},jl=function(){!Ll&&ht&&q(ht,"display","none")},Gl=function(){!Ll&&ht&&q(ht,"display","")};Hi&&document.addEventListener("click",function(e){if(Di)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Di=!1,!1},!0);var Vn=function(t){if(G){t=t.touches?t.touches[0]:t;var n=i1(t.clientX,t.clientY);if(n){var i={};for(var s in t)t.hasOwnProperty(s)&&(i[s]=t[s]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[me]._onDragOver(i)}}},s1=function(t){G&&G.parentNode[me]._isOutsideThisEl(t.target)};function lt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=ke({},t),e[me]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Hl(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,c){a.setData("Text",c.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:lt.supportPointer!==!1&&"PointerEvent"in window&&!No,emptyInsertThreshold:5};Fo.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);Ul(t);for(var s in this)s.charAt(0)==="_"&&typeof this[s]=="function"&&(this[s]=this[s].bind(this));this.nativeDraggable=t.forceFallback?!1:n1,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?St(e,"pointerdown",this._onTapStart):(St(e,"mousedown",this._onTapStart),St(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(St(e,"dragover",this),St(e,"dragenter",this)),Fi.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ke(this,qv())}lt.prototype={constructor:lt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(uo=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,G):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,s=this.options,r=s.preventOnFilter,a=t.type,c=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(c||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,u=s.filter;if(h1(i),!G&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||s.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&No&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=He(l,s.draggable,i,!1),!(l&&l.animated)&&ki!==l)){if(lo=Gt(l),zo=Gt(l,s.draggable),typeof u=="function"){if(u.call(this,t,l,this)){ye({sortable:n,rootEl:d,name:"filter",targetEl:l,toEl:i,fromEl:i}),Se("filter",n,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(h){if(h=He(d,h.trim(),i,!1),h)return ye({sortable:n,rootEl:h,name:"filter",targetEl:l,fromEl:i,toEl:i}),Se("filter",n,{evt:t}),!0}),u)){r&&t.cancelable&&t.preventDefault();return}s.handle&&!He(d,s.handle,i,!1)||this._prepareDragStart(t,c,l)}}},_prepareDragStart:function(t,n,i){var s=this,r=s.el,a=s.options,c=r.ownerDocument,l;if(i&&!G&&i.parentNode===r){var d=Nt(i);if(Dt=r,G=i,Wt=G.parentNode,Dn=G.nextSibling,ki=i,Ni=a.group,lt.dragged=G,Fn={target:G,clientX:(n||t).clientX,clientY:(n||t).clientY},Fl=Fn.clientX-d.left,Vl=Fn.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,G.style["will-change"]="all",l=function(){if(Se("delayEnded",s,{evt:t}),lt.eventCanceled){s._onDrop();return}s._disableDelayedDragEvents(),!Pl&&s.nativeDraggable&&(G.draggable=!0),s._triggerDragStart(t,n),ye({sortable:s,name:"choose",originalEvent:t}),Ft(G,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){Al(G,u.trim(),aa)}),St(c,"dragover",Vn),St(c,"mousemove",Vn),St(c,"touchmove",Vn),St(c,"mouseup",s._onDrop),St(c,"touchend",s._onDrop),St(c,"touchcancel",s._onDrop),Pl&&this.nativeDraggable&&(this.options.touchStartThreshold=4,G.draggable=!0),Se("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(ko||an))){if(lt.eventCanceled){this._onDrop();return}St(c,"mouseup",s._disableDelayedDrag),St(c,"touchend",s._disableDelayedDrag),St(c,"touchcancel",s._disableDelayedDrag),St(c,"mousemove",s._delayedDragTouchMoveHandler),St(c,"touchmove",s._delayedDragTouchMoveHandler),a.supportPointer&&St(c,"pointermove",s._delayedDragTouchMoveHandler),s._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){G&&aa(G),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;pt(t,"mouseup",this._disableDelayedDrag),pt(t,"touchend",this._disableDelayedDrag),pt(t,"touchcancel",this._disableDelayedDrag),pt(t,"mousemove",this._delayedDragTouchMoveHandler),pt(t,"touchmove",this._delayedDragTouchMoveHandler),pt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?St(document,"pointermove",this._onTouchMove):n?St(document,"touchmove",this._onTouchMove):St(document,"mousemove",this._onTouchMove):(St(G,"dragend",this),St(Dt,"dragstart",this._onDragStart));try{document.selection?Gi(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(co=!1,Dt&&G){Se("dragStarted",this,{evt:n}),this.nativeDraggable&&St(document,"dragover",s1);var i=this.options;!t&&Ft(G,i.dragClass,!1),Ft(G,i.ghostClass,!0),lt.active=this,t&&this._appendGhost(),ye({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ue){this._lastX=Ue.clientX,this._lastY=Ue.clientY,jl();for(var t=document.elementFromPoint(Ue.clientX,Ue.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ue.clientX,Ue.clientY),t!==n);)n=t;if(G.parentNode[me]._isOutsideThisEl(t),n)do{if(n[me]){var i=void 0;if(i=n[me]._onDragOver({clientX:Ue.clientX,clientY:Ue.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Gl()}},_onTouchMove:function(t){if(Fn){var n=this.options,i=n.fallbackTolerance,s=n.fallbackOffset,r=t.touches?t.touches[0]:t,a=ht&&Nn(ht,!0),c=ht&&a&&a.a,l=ht&&a&&a.d,d=Ui&&pe&&Bl(pe),u=(r.clientX-Fn.clientX+s.x)/(c||1)+(d?d[0]-ia[0]:0)/(c||1),h=(r.clientY-Fn.clientY+s.y)/(l||1)+(d?d[1]-ia[1]:0)/(l||1);if(!lt.active&&!co){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(ht){a?(a.e+=u-(na||0),a.f+=h-(oa||0)):a={a:1,b:0,c:0,d:1,e:u,f:h};var m="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");q(ht,"webkitTransform",m),q(ht,"mozTransform",m),q(ht,"msTransform",m),q(ht,"transform",m),na=u,oa=h,Ue=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ht){var t=this.options.fallbackOnBody?document.body:Dt,n=Nt(G,!0,Ui,!0,t),i=this.options;if(Ui){for(pe=t;q(pe,"position")==="static"&&q(pe,"transform")==="none"&&pe!==document;)pe=pe.parentNode;pe!==document.body&&pe!==document.documentElement?(pe===document&&(pe=_e()),n.top+=pe.scrollTop,n.left+=pe.scrollLeft):pe=_e(),ia=Bl(pe)}ht=G.cloneNode(!0),Ft(ht,i.ghostClass,!1),Ft(ht,i.fallbackClass,!0),Ft(ht,i.dragClass,!0),q(ht,"transition",""),q(ht,"transform",""),q(ht,"box-sizing","border-box"),q(ht,"margin",0),q(ht,"top",n.top),q(ht,"left",n.left),q(ht,"width",n.width),q(ht,"height",n.height),q(ht,"opacity","0.8"),q(ht,"position",Ui?"absolute":"fixed"),q(ht,"zIndex","100000"),q(ht,"pointerEvents","none"),lt.ghost=ht,t.appendChild(ht),q(ht,"transform-origin",Fl/parseInt(ht.style.width)*100+"% "+Vl/parseInt(ht.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,s=t.dataTransfer,r=i.options;if(Se("dragStart",this,{evt:t}),lt.eventCanceled){this._onDrop();return}Se("setupClone",this),lt.eventCanceled||(Xt=$s(G),Xt.draggable=!1,Xt.style["will-change"]="",this._hideClone(),Ft(Xt,this.options.chosenClass,!1),lt.clone=Xt),i.cloneId=Gi(function(){Se("clone",i),!lt.eventCanceled&&(i.options.removeCloneOnHide||Dt.insertBefore(Xt,G),i._hideClone(),ye({sortable:i,name:"clone"}))}),!n&&Ft(G,r.dragClass,!0),n?(Di=!0,i._loopId=setInterval(i._emulateDragOver,50)):(pt(document,"mouseup",i._onDrop),pt(document,"touchend",i._onDrop),pt(document,"touchcancel",i._onDrop),s&&(s.effectAllowed="move",r.setData&&r.setData.call(i,s,G)),St(document,"drop",i),q(G,"transform","translateZ(0)")),co=!0,i._dragStartId=Gi(i._dragStarted.bind(i,n,t)),St(document,"selectstart",i),Lo=!0,No&&q(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,i=t.target,s,r,a,c=this.options,l=c.group,d=lt.active,u=Ni===l,h=c.sort,m=re||d,p,g=this,v=!1;if(sa)return;function b(bt,It){Se(bt,g,Je({evt:t,isOwner:u,axis:p?"vertical":"horizontal",revert:a,dragRect:s,targetRect:r,canSort:h,fromSortable:m,target:i,completed:C,onMove:function(ut,K){return ji(Dt,n,G,s,ut,Nt(ut),t,K)},changed:x},It))}function S(){b("dragOverAnimationCapture"),g.captureAnimationState(),g!==m&&m.captureAnimationState()}function C(bt){return b("dragOverCompleted",{insertion:bt}),bt&&(u?d._hideClone():d._showClone(g),g!==m&&(Ft(G,re?re.options.ghostClass:d.options.ghostClass,!1),Ft(G,c.ghostClass,!0)),re!==g&&g!==lt.active?re=g:g===lt.active&&re&&(re=null),m===g&&(g._ignoreWhileAnimating=i),g.animateAll(function(){b("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(i===G&&!G.animated||i===n&&!i.animated)&&(uo=null),!c.dragoverBubble&&!t.rootEl&&i!==document&&(G.parentNode[me]._isOutsideThisEl(t.target),!bt&&Vn(t)),!c.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function x(){Re=Gt(G),yn=Gt(G,c.draggable),ye({sortable:g,name:"change",toEl:n,newIndex:Re,newDraggableIndex:yn,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=He(i,c.draggable,n,!0),b("dragOver"),lt.eventCanceled)return v;if(G.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||g._ignoreWhileAnimating===i)return C(!1);if(Di=!1,d&&!c.disabled&&(u?h||(a=Wt!==Dt):re===this||(this.lastPutMode=Ni.checkPull(this,d,G,t))&&l.checkPut(this,d,G,t))){if(p=this._getDirection(t,i)==="vertical",s=Nt(G),b("dragOverValid"),lt.eventCanceled)return v;if(a)return Wt=Dt,S(),this._hideClone(),b("revert"),lt.eventCanceled||(Dn?Dt.insertBefore(G,Dn):Dt.appendChild(G)),C(!0);var I=_s(n,c.draggable);if(!I||c1(t,p,this)&&!I.animated){if(I===G)return C(!1);if(I&&n===t.target&&(i=I),i&&(r=Nt(i)),ji(Dt,n,G,s,i,r,t,!!i)!==!1)return S(),n.appendChild(G),Wt=n,x(),C(!0)}else if(I&&l1(t,p,this)){var R=ao(n,0,c,!0);if(R===G)return C(!1);if(i=R,r=Nt(i),ji(Dt,n,G,s,i,r,t,!1)!==!1)return S(),n.insertBefore(G,R),Wt=n,x(),C(!0)}else if(i.parentNode===n){r=Nt(i);var A=0,Y,_=G.parentNode!==n,N=!o1(G.animated&&G.toRect||s,i.animated&&i.toRect||r,p),H=p?"top":"left",Q=Tl(i,"top","top")||Tl(G,"top","top"),st=Q?Q.scrollTop:void 0;uo!==i&&(Y=r[H],Uo=!1,Vi=!N&&c.invertSwap||_),A=d1(t,i,r,p,N?1:c.swapThreshold,c.invertedSwapThreshold==null?c.swapThreshold:c.invertedSwapThreshold,Vi,uo===i);var L;if(A!==0){var z=Gt(G);do z-=A,L=Wt.children[z];while(L&&(q(L,"display")==="none"||L===ht))}if(A===0||L===i)return C(!1);uo=i,Ho=A;var ot=i.nextElementSibling,X=!1;X=A===1;var $=ji(Dt,n,G,s,i,r,t,X);if($!==!1)return($===1||$===-1)&&(X=$===1),sa=!0,setTimeout(r1,30),S(),X&&!ot?n.appendChild(G):i.parentNode.insertBefore(G,X?ot:i),Q&&Nl(Q,0,st-Q.scrollTop),Wt=G.parentNode,Y!==void 0&&!Vi&&(zi=Math.abs(Y-Nt(i)[H])),x(),C(!0)}if(n.contains(G))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){pt(document,"mousemove",this._onTouchMove),pt(document,"touchmove",this._onTouchMove),pt(document,"pointermove",this._onTouchMove),pt(document,"dragover",Vn),pt(document,"mousemove",Vn),pt(document,"touchmove",Vn)},_offUpEvents:function(){var t=this.el.ownerDocument;pt(t,"mouseup",this._onDrop),pt(t,"touchend",this._onDrop),pt(t,"pointerup",this._onDrop),pt(t,"touchcancel",this._onDrop),pt(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;if(Re=Gt(G),yn=Gt(G,i.draggable),Se("drop",this,{evt:t}),Wt=G&&G.parentNode,Re=Gt(G),yn=Gt(G,i.draggable),lt.eventCanceled){this._nulling();return}co=!1,Vi=!1,Uo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ra(this.cloneId),ra(this._dragStartId),this.nativeDraggable&&(pt(document,"drop",this),pt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),No&&q(document.body,"user-select",""),q(G,"transform",""),t&&(Lo&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),ht&&ht.parentNode&&ht.parentNode.removeChild(ht),(Dt===Wt||re&&re.lastPutMode!=="clone")&&Xt&&Xt.parentNode&&Xt.parentNode.removeChild(Xt),G&&(this.nativeDraggable&&pt(G,"dragend",this),aa(G),G.style["will-change"]="",Lo&&!co&&Ft(G,re?re.options.ghostClass:this.options.ghostClass,!1),Ft(G,this.options.chosenClass,!1),ye({sortable:this,name:"unchoose",toEl:Wt,newIndex:null,newDraggableIndex:null,originalEvent:t}),Dt!==Wt?(Re>=0&&(ye({rootEl:Wt,name:"add",toEl:Wt,fromEl:Dt,originalEvent:t}),ye({sortable:this,name:"remove",toEl:Wt,originalEvent:t}),ye({rootEl:Wt,name:"sort",toEl:Wt,fromEl:Dt,originalEvent:t}),ye({sortable:this,name:"sort",toEl:Wt,originalEvent:t})),re&&re.save()):Re!==lo&&Re>=0&&(ye({sortable:this,name:"update",toEl:Wt,originalEvent:t}),ye({sortable:this,name:"sort",toEl:Wt,originalEvent:t})),lt.active&&((Re==null||Re===-1)&&(Re=lo,yn=zo),ye({sortable:this,name:"end",toEl:Wt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Se("nulling",this),Dt=G=Wt=ht=Dn=Xt=ki=vn=Fn=Ue=Lo=Re=yn=lo=zo=uo=Ho=re=Ni=lt.dragged=lt.ghost=lt.clone=lt.active=null,Li.forEach(function(t){t.checked=!0}),Li.length=na=oa=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":G&&(this._onDragOver(t),a1(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,i=this.el.children,s=0,r=i.length,a=this.options;s<r;s++)n=i[s],He(n,a.draggable,this.el,!1)&&t.push(n.getAttribute(a.dataIdAttr)||f1(n));return t},sort:function(t,n){var i={},s=this.el;this.toArray().forEach(function(r,a){var c=s.children[a];He(c,this.options.draggable,s,!1)&&(i[r]=c)},this),n&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(s.removeChild(i[r]),s.appendChild(i[r]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return He(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var i=this.options;if(n===void 0)return i[t];var s=Fo.modifyOption(this,t,n);typeof s<"u"?i[t]=s:i[t]=n,t==="group"&&Ul(i)},destroy:function(){Se("destroy",this);var t=this.el;t[me]=null,pt(t,"mousedown",this._onTapStart),pt(t,"touchstart",this._onTapStart),pt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(pt(t,"dragover",this),pt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Fi.splice(Fi.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!vn){if(Se("hideClone",this),lt.eventCanceled)return;q(Xt,"display","none"),this.options.removeCloneOnHide&&Xt.parentNode&&Xt.parentNode.removeChild(Xt),vn=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(vn){if(Se("showClone",this),lt.eventCanceled)return;G.parentNode==Dt&&!this.options.group.revertClone?Dt.insertBefore(Xt,G):Dn?Dt.insertBefore(Xt,Dn):Dt.appendChild(Xt),this.options.group.revertClone&&this.animate(G,Xt),q(Xt,"display",""),vn=!1}}};function a1(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ji(e,t,n,i,s,r,a,c){var l,d=e[me],u=d.options.onMove,h;return window.CustomEvent&&!an&&!ko?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=s||t,l.relatedRect=r||Nt(t),l.willInsertAfter=c,l.originalEvent=a,e.dispatchEvent(l),u&&(h=u.call(d,l,a)),h}function aa(e){e.draggable=!1}function r1(){sa=!1}function l1(e,t,n){var i=Nt(ao(n.el,0,n.options,!0)),s=10;return t?e.clientX<i.left-s||e.clientY<i.top&&e.clientX<i.right:e.clientY<i.top-s||e.clientY<i.bottom&&e.clientX<i.left}function c1(e,t,n){var i=Nt(_s(n.el,n.options.draggable)),s=10;return t?e.clientX>i.right+s||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+s}function d1(e,t,n,i,s,r,a,c){var l=i?e.clientY:e.clientX,d=i?n.height:n.width,u=i?n.top:n.left,h=i?n.bottom:n.right,m=!1;if(!a){if(c&&zi<d*s){if(!Uo&&(Ho===1?l>u+d*r/2:l<h-d*r/2)&&(Uo=!0),Uo)m=!0;else if(Ho===1?l<u+zi:l>h-zi)return-Ho}else if(l>u+d*(1-s)/2&&l<h-d*(1-s)/2)return u1(t)}return m=m||a,m&&(l<u+d*r/2||l>h-d*r/2)?l>u+d/2?1:-1:0}function u1(e){return Gt(G)<Gt(e)?1:-1}function f1(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function h1(e){Li.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&Li.push(i)}}function Gi(e){return setTimeout(e,0)}function ra(e){return clearTimeout(e)}Hi&&St(document,"touchmove",function(e){(lt.active||co)&&e.cancelable&&e.preventDefault()}),lt.utils={on:St,off:pt,css:q,find:Al,is:function(t,n){return!!He(t,n,t,!1)},extend:Jv,throttle:kl,closest:He,toggleClass:Ft,clone:$s,index:Gt,nextTick:Gi,cancelNextTick:ra,detectDirection:Hl,getChild:ao},lt.get=function(e){return e[me]},lt.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(lt.utils=Je(Je({},lt.utils),i.utils)),Fo.mount(i)})},lt.create=function(e,t){return new lt(e,t)},lt.version=Yv;var Jt=[],jo,la,ca=!1,da,ua,Wi,Go;function m1(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var i=n.originalEvent;this.sortable.nativeDraggable?St(document,"dragover",this._handleAutoScroll):this.options.supportPointer?St(document,"pointermove",this._handleFallbackAutoScroll):i.touches?St(document,"touchmove",this._handleFallbackAutoScroll):St(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var i=n.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?pt(document,"dragover",this._handleAutoScroll):(pt(document,"pointermove",this._handleFallbackAutoScroll),pt(document,"touchmove",this._handleFallbackAutoScroll),pt(document,"mousemove",this._handleFallbackAutoScroll)),Wl(),Xi(),_v()},nulling:function(){Wi=la=jo=ca=Go=da=ua=null,Jt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,i){var s=this,r=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,c=document.elementFromPoint(r,a);if(Wi=n,i||this.options.forceAutoScrollFallback||ko||an||No){fa(n,this.options,c,i);var l=gn(c,!0);ca&&(!Go||r!==da||a!==ua)&&(Go&&Wl(),Go=setInterval(function(){var d=gn(document.elementFromPoint(r,a),!0);d!==l&&(l=d,Xi()),fa(n,s.options,d,i)},10),da=r,ua=a)}else{if(!this.options.bubbleScroll||gn(c,!0)===_e()){Xi();return}fa(n,this.options,gn(c,!1),!1)}}},ke(e,{pluginName:"scroll",initializeByDefault:!0})}function Xi(){Jt.forEach(function(e){clearInterval(e.pid)}),Jt=[]}function Wl(){clearInterval(Go)}var fa=kl(function(e,t,n,i){if(t.scroll){var s=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,c=t.scrollSpeed,l=_e(),d=!1,u;la!==n&&(la=n,Xi(),jo=t.scroll,u=t.scrollFn,jo===!0&&(jo=gn(n,!0)));var h=0,m=jo;do{var p=m,g=Nt(p),v=g.top,b=g.bottom,S=g.left,C=g.right,x=g.width,I=g.height,R=void 0,A=void 0,Y=p.scrollWidth,_=p.scrollHeight,N=q(p),H=p.scrollLeft,Q=p.scrollTop;p===l?(R=x<Y&&(N.overflowX==="auto"||N.overflowX==="scroll"||N.overflowX==="visible"),A=I<_&&(N.overflowY==="auto"||N.overflowY==="scroll"||N.overflowY==="visible")):(R=x<Y&&(N.overflowX==="auto"||N.overflowX==="scroll"),A=I<_&&(N.overflowY==="auto"||N.overflowY==="scroll"));var st=R&&(Math.abs(C-s)<=a&&H+x<Y)-(Math.abs(S-s)<=a&&!!H),L=A&&(Math.abs(b-r)<=a&&Q+I<_)-(Math.abs(v-r)<=a&&!!Q);if(!Jt[h])for(var z=0;z<=h;z++)Jt[z]||(Jt[z]={});(Jt[h].vx!=st||Jt[h].vy!=L||Jt[h].el!==p)&&(Jt[h].el=p,Jt[h].vx=st,Jt[h].vy=L,clearInterval(Jt[h].pid),(st!=0||L!=0)&&(d=!0,Jt[h].pid=setInterval((function(){i&&this.layer===0&<.active._onTouchMove(Wi);var ot=Jt[this.layer].vy?Jt[this.layer].vy*c:0,X=Jt[this.layer].vx?Jt[this.layer].vx*c:0;typeof u=="function"&&u.call(lt.dragged.parentNode[me],X,ot,e,Wi,Jt[this.layer].el)!=="continue"||Nl(Jt[this.layer].el,X,ot)}).bind({layer:h}),24))),h++}while(t.bubbleScroll&&m!==l&&(m=gn(m,!1)));ca=d}},30),Xl=function(t){var n=t.originalEvent,i=t.putSortable,s=t.dragEl,r=t.activeSortable,a=t.dispatchSortableEvent,c=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var d=i||r;c();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,h=document.elementFromPoint(u.clientX,u.clientY);l(),d&&!d.el.contains(h)&&(a("spill"),this.onSpill({dragEl:s,putSortable:i}))}};function ha(){}ha.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var s=ao(this.sortable.el,this.startIndex,this.options);s?this.sortable.el.insertBefore(n,s):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:Xl},ke(ha,{pluginName:"revertOnSpill"});function ma(){}ma.prototype={onSpill:function(t){var n=t.dragEl,i=t.putSortable,s=i||this.sortable;s.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),s.animateAll()},drop:Xl},ke(ma,{pluginName:"removeOnSpill"});var Ne;function p1(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var i=n.dragEl;Ne=i},dragOverValid:function(n){var i=n.completed,s=n.target,r=n.onMove,a=n.activeSortable,c=n.changed,l=n.cancel;if(a.options.swap){var d=this.sortable.el,u=this.options;if(s&&s!==d){var h=Ne;r(s)!==!1?(Ft(s,u.swapClass,!0),Ne=s):Ne=null,h&&h!==Ne&&Ft(h,u.swapClass,!1)}c(),i(!0),l()}},drop:function(n){var i=n.activeSortable,s=n.putSortable,r=n.dragEl,a=s||this.sortable,c=this.options;Ne&&Ft(Ne,c.swapClass,!1),Ne&&(c.swap||s&&s.options.swap)&&r!==Ne&&(a.captureAnimationState(),a!==i&&i.captureAnimationState(),g1(r,Ne),a.animateAll(),a!==i&&i.animateAll())},nulling:function(){Ne=null}},ke(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ne}}})}function g1(e,t){var n=e.parentNode,i=t.parentNode,s,r;!n||!i||n.isEqualNode(t)||i.isEqualNode(e)||(s=Gt(e),r=Gt(t),n.isEqualNode(i)&&s<r&&r++,n.insertBefore(t,n.children[s]),i.insertBefore(e,i.children[r]))}var dt=[],Me=[],Wo,je,Xo=!1,we=!1,fo=!1,Bt,Yo,Yi;function v1(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?St(document,"pointerup",this._deselectMultiDrag):(St(document,"mouseup",this._deselectMultiDrag),St(document,"touchend",this._deselectMultiDrag)),St(document,"keydown",this._checkKeyDown),St(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(s,r){var a="";dt.length&&je===t?dt.forEach(function(c,l){a+=(l?", ":"")+c.textContent}):a=r.textContent,s.setData("Text",a)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var i=n.dragEl;Bt=i},delayEnded:function(){this.isMultiDrag=~dt.indexOf(Bt)},setupClone:function(n){var i=n.sortable,s=n.cancel;if(this.isMultiDrag){for(var r=0;r<dt.length;r++)Me.push($s(dt[r])),Me[r].sortableIndex=dt[r].sortableIndex,Me[r].draggable=!1,Me[r].style["will-change"]="",Ft(Me[r],this.options.selectedClass,!1),dt[r]===Bt&&Ft(Me[r],this.options.chosenClass,!1);i._hideClone(),s()}},clone:function(n){var i=n.sortable,s=n.rootEl,r=n.dispatchSortableEvent,a=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||dt.length&&je===i&&(Yl(!0,s),r("clone"),a()))},showClone:function(n){var i=n.cloneNowShown,s=n.rootEl,r=n.cancel;this.isMultiDrag&&(Yl(!1,s),Me.forEach(function(a){q(a,"display","")}),i(),Yi=!1,r())},hideClone:function(n){var i=this;n.sortable;var s=n.cloneNowHidden,r=n.cancel;this.isMultiDrag&&(Me.forEach(function(a){q(a,"display","none"),i.options.removeCloneOnHide&&a.parentNode&&a.parentNode.removeChild(a)}),s(),Yi=!0,r())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&je&&je.multiDrag._deselectMultiDrag(),dt.forEach(function(i){i.sortableIndex=Gt(i)}),dt=dt.sort(function(i,s){return i.sortableIndex-s.sortableIndex}),fo=!0},dragStarted:function(n){var i=this,s=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(s.captureAnimationState(),this.options.animation)){dt.forEach(function(a){a!==Bt&&q(a,"position","absolute")});var r=Nt(Bt,!1,!0,!0);dt.forEach(function(a){a!==Bt&&Dl(a,r)}),we=!0,Xo=!0}s.animateAll(function(){we=!1,Xo=!1,i.options.animation&&dt.forEach(function(a){ta(a)}),i.options.sort&&Ki()})}},dragOver:function(n){var i=n.target,s=n.completed,r=n.cancel;we&&~dt.indexOf(i)&&(s(!1),r())},revert:function(n){var i=n.fromSortable,s=n.rootEl,r=n.sortable,a=n.dragRect;dt.length>1&&(dt.forEach(function(c){r.addAnimationState({target:c,rect:we?Nt(c):a}),ta(c),c.fromRect=a,i.removeAnimationState(c)}),we=!1,y1(!this.options.removeCloneOnHide,s))},dragOverCompleted:function(n){var i=n.sortable,s=n.isOwner,r=n.insertion,a=n.activeSortable,c=n.parentEl,l=n.putSortable,d=this.options;if(r){if(s&&a._hideClone(),Xo=!1,d.animation&&dt.length>1&&(we||!s&&!a.options.sort&&!l)){var u=Nt(Bt,!1,!0,!0);dt.forEach(function(m){m!==Bt&&(Dl(m,u),c.appendChild(m))}),we=!0}if(!s)if(we||Ki(),dt.length>1){var h=Yi;a._showClone(i),a.options.animation&&!Yi&&h&&Me.forEach(function(m){a.addAnimationState({target:m,rect:Yo}),m.fromRect=Yo,m.thisAnimationDuration=null})}else a._showClone(i)}},dragOverAnimationCapture:function(n){var i=n.dragRect,s=n.isOwner,r=n.activeSortable;if(dt.forEach(function(c){c.thisAnimationDuration=null}),r.options.animation&&!s&&r.multiDrag.isMultiDrag){Yo=ke({},i);var a=Nn(Bt,!0);Yo.top-=a.f,Yo.left-=a.e}},dragOverAnimationComplete:function(){we&&(we=!1,Ki())},drop:function(n){var i=n.originalEvent,s=n.rootEl,r=n.parentEl,a=n.sortable,c=n.dispatchSortableEvent,l=n.oldIndex,d=n.putSortable,u=d||this.sortable;if(i){var h=this.options,m=r.children;if(!fo)if(h.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ft(Bt,h.selectedClass,!~dt.indexOf(Bt)),~dt.indexOf(Bt))dt.splice(dt.indexOf(Bt),1),Wo=null,Vo({sortable:a,rootEl:s,name:"deselect",targetEl:Bt});else{if(dt.push(Bt),Vo({sortable:a,rootEl:s,name:"select",targetEl:Bt}),i.shiftKey&&Wo&&a.el.contains(Wo)){var p=Gt(Wo),g=Gt(Bt);if(~p&&~g&&p!==g){var v,b;for(g>p?(b=p,v=g):(b=g,v=p+1);b<v;b++)~dt.indexOf(m[b])||(Ft(m[b],h.selectedClass,!0),dt.push(m[b]),Vo({sortable:a,rootEl:s,name:"select",targetEl:m[b]}))}}else Wo=Bt;je=u}if(fo&&this.isMultiDrag){if(we=!1,(r[me].options.sort||r!==s)&&dt.length>1){var S=Nt(Bt),C=Gt(Bt,":not(."+this.options.selectedClass+")");if(!Xo&&h.animation&&(Bt.thisAnimationDuration=null),u.captureAnimationState(),!Xo&&(h.animation&&(Bt.fromRect=S,dt.forEach(function(I){if(I.thisAnimationDuration=null,I!==Bt){var R=we?Nt(I):S;I.fromRect=R,u.addAnimationState({target:I,rect:R})}})),Ki(),dt.forEach(function(I){m[C]?r.insertBefore(I,m[C]):r.appendChild(I),C++}),l===Gt(Bt))){var x=!1;dt.forEach(function(I){if(I.sortableIndex!==Gt(I)){x=!0;return}}),x&&c("update")}dt.forEach(function(I){ta(I)}),u.animateAll()}je=u}(s===r||d&&d.lastPutMode!=="clone")&&Me.forEach(function(I){I.parentNode&&I.parentNode.removeChild(I)})}},nullingGlobal:function(){this.isMultiDrag=fo=!1,Me.length=0},destroyGlobal:function(){this._deselectMultiDrag(),pt(document,"pointerup",this._deselectMultiDrag),pt(document,"mouseup",this._deselectMultiDrag),pt(document,"touchend",this._deselectMultiDrag),pt(document,"keydown",this._checkKeyDown),pt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof fo<"u"&&fo)&&je===this.sortable&&!(n&&He(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;dt.length;){var i=dt[0];Ft(i,this.options.selectedClass,!1),dt.shift(),Vo({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:i})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},ke(e,{pluginName:"multiDrag",utils:{select:function(n){var i=n.parentNode[me];!i||!i.options.multiDrag||~dt.indexOf(n)||(je&&je!==i&&(je.multiDrag._deselectMultiDrag(),je=i),Ft(n,i.options.selectedClass,!0),dt.push(n))},deselect:function(n){var i=n.parentNode[me],s=dt.indexOf(n);!i||!i.options.multiDrag||!~s||(Ft(n,i.options.selectedClass,!1),dt.splice(s,1))}},eventProperties:function(){var n=this,i=[],s=[];return dt.forEach(function(r){i.push({multiDragElement:r,index:r.sortableIndex});var a;we&&r!==Bt?a=-1:we?a=Gt(r,":not(."+n.options.selectedClass+")"):a=Gt(r),s.push({multiDragElement:r,index:a})}),{items:Uv(dt),clones:[].concat(Me),oldIndicies:i,newIndicies:s}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function y1(e,t){dt.forEach(function(n,i){var s=t.children[n.sortableIndex+(e?Number(i):0)];s?t.insertBefore(n,s):t.appendChild(n)})}function Yl(e,t){Me.forEach(function(n,i){var s=t.children[n.sortableIndex+(e?Number(i):0)];s?t.insertBefore(n,s):t.appendChild(n)})}function Ki(){dt.forEach(function(e){e!==Bt&&e.parentNode&&e.parentNode.removeChild(e)})}lt.mount(new m1),lt.mount(ma,ha);const b1=Kc(Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:v1,Sortable:lt,Swap:p1,default:lt},Symbol.toStringTag,{value:"Module"})));(function(e,t){(function(i,s){e.exports=s(o,b1)})(typeof self<"u"?self:cs,function(n,i){return function(s){var r={};function a(c){if(r[c])return r[c].exports;var l=r[c]={i:c,l:!1,exports:{}};return s[c].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=s,a.c=r,a.d=function(c,l,d){a.o(c,l)||Object.defineProperty(c,l,{enumerable:!0,get:d})},a.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},a.t=function(c,l){if(l&1&&(c=a(c)),l&8||l&4&&typeof c=="object"&&c&&c.__esModule)return c;var d=Object.create(null);if(a.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:c}),l&2&&typeof c!="string")for(var u in c)a.d(d,u,(function(h){return c[h]}).bind(null,u));return d},a.n=function(c){var l=c&&c.__esModule?function(){return c.default}:function(){return c};return a.d(l,"a",l),l},a.o=function(c,l){return Object.prototype.hasOwnProperty.call(c,l)},a.p="",a(a.s="fb15")}({"00ee":function(s,r,a){var c=a("b622"),l=c("toStringTag"),d={};d[l]="z",s.exports=String(d)==="[object z]"},"0366":function(s,r,a){var c=a("1c0b");s.exports=function(l,d,u){if(c(l),d===void 0)return l;switch(u){case 0:return function(){return l.call(d)};case 1:return function(h){return l.call(d,h)};case 2:return function(h,m){return l.call(d,h,m)};case 3:return function(h,m,p){return l.call(d,h,m,p)}}return function(){return l.apply(d,arguments)}}},"057f":function(s,r,a){var c=a("fc6a"),l=a("241c").f,d={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(m){try{return l(m)}catch{return u.slice()}};s.exports.f=function(p){return u&&d.call(p)=="[object Window]"?h(p):l(c(p))}},"06cf":function(s,r,a){var c=a("83ab"),l=a("d1e7"),d=a("5c6c"),u=a("fc6a"),h=a("c04e"),m=a("5135"),p=a("0cfb"),g=Object.getOwnPropertyDescriptor;r.f=c?g:function(b,S){if(b=u(b),S=h(S,!0),p)try{return g(b,S)}catch{}if(m(b,S))return d(!l.f.call(b,S),b[S])}},"0cfb":function(s,r,a){var c=a("83ab"),l=a("d039"),d=a("cc12");s.exports=!c&&!l(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(s,r,a){var c=a("23e7"),l=a("d58f").left,d=a("a640"),u=a("ae40"),h=d("reduce"),m=u("reduce",{1:0});c({target:"Array",proto:!0,forced:!h||!m},{reduce:function(g){return l(this,g,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(s,r,a){var c=a("c6b6"),l=a("9263");s.exports=function(d,u){var h=d.exec;if(typeof h=="function"){var m=h.call(d,u);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(c(d)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(d,u)}},"159b":function(s,r,a){var c=a("da84"),l=a("fdbc"),d=a("17c2"),u=a("9112");for(var h in l){var m=c[h],p=m&&m.prototype;if(p&&p.forEach!==d)try{u(p,"forEach",d)}catch{p.forEach=d}}},"17c2":function(s,r,a){var c=a("b727").forEach,l=a("a640"),d=a("ae40"),u=l("forEach"),h=d("forEach");s.exports=!u||!h?function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(s,r,a){var c=a("d066");s.exports=c("document","documentElement")},"1c0b":function(s,r){s.exports=function(a){if(typeof a!="function")throw TypeError(String(a)+" is not a function");return a}},"1c7e":function(s,r,a){var c=a("b622"),l=c("iterator"),d=!1;try{var u=0,h={next:function(){return{done:!!u++}},return:function(){d=!0}};h[l]=function(){return this},Array.from(h,function(){throw 2})}catch{}s.exports=function(m,p){if(!p&&!d)return!1;var g=!1;try{var v={};v[l]=function(){return{next:function(){return{done:g=!0}}}},m(v)}catch{}return g}},"1d80":function(s,r){s.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},"1dde":function(s,r,a){var c=a("d039"),l=a("b622"),d=a("2d00"),u=l("species");s.exports=function(h){return d>=51||!c(function(){var m=[],p=m.constructor={};return p[u]=function(){return{foo:1}},m[h](Boolean).foo!==1})}},"23cb":function(s,r,a){var c=a("a691"),l=Math.max,d=Math.min;s.exports=function(u,h){var m=c(u);return m<0?l(m+h,0):d(m,h)}},"23e7":function(s,r,a){var c=a("da84"),l=a("06cf").f,d=a("9112"),u=a("6eeb"),h=a("ce4e"),m=a("e893"),p=a("94ca");s.exports=function(g,v){var b=g.target,S=g.global,C=g.stat,x,I,R,A,Y,_;if(S?I=c:C?I=c[b]||h(b,{}):I=(c[b]||{}).prototype,I)for(R in v){if(Y=v[R],g.noTargetGet?(_=l(I,R),A=_&&_.value):A=I[R],x=p(S?R:b+(C?".":"#")+R,g.forced),!x&&A!==void 0){if(typeof Y==typeof A)continue;m(Y,A)}(g.sham||A&&A.sham)&&d(Y,"sham",!0),u(I,R,Y,g)}}},"241c":function(s,r,a){var c=a("ca84"),l=a("7839"),d=l.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(h){return c(h,d)}},"25f0":function(s,r,a){var c=a("6eeb"),l=a("825a"),d=a("d039"),u=a("ad6d"),h="toString",m=RegExp.prototype,p=m[h],g=d(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),v=p.name!=h;(g||v)&&c(RegExp.prototype,h,function(){var S=l(this),C=String(S.source),x=S.flags,I=String(x===void 0&&S instanceof RegExp&&!("flags"in m)?u.call(S):x);return"/"+C+"/"+I},{unsafe:!0})},"2ca0":function(s,r,a){var c=a("23e7"),l=a("06cf").f,d=a("50c4"),u=a("5a34"),h=a("1d80"),m=a("ab13"),p=a("c430"),g="".startsWith,v=Math.min,b=m("startsWith"),S=!p&&!b&&!!function(){var C=l(String.prototype,"startsWith");return C&&!C.writable}();c({target:"String",proto:!0,forced:!S&&!b},{startsWith:function(x){var I=String(h(this));u(x);var R=d(v(arguments.length>1?arguments[1]:void 0,I.length)),A=String(x);return g?g.call(I,A,R):I.slice(R,R+A.length)===A}})},"2d00":function(s,r,a){var c=a("da84"),l=a("342f"),d=c.process,u=d&&d.versions,h=u&&u.v8,m,p;h?(m=h.split("."),p=m[0]+m[1]):l&&(m=l.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=l.match(/Chrome\/(\d+)/),m&&(p=m[1]))),s.exports=p&&+p},"342f":function(s,r,a){var c=a("d066");s.exports=c("navigator","userAgent")||""},"35a1":function(s,r,a){var c=a("f5df"),l=a("3f8c"),d=a("b622"),u=d("iterator");s.exports=function(h){if(h!=null)return h[u]||h["@@iterator"]||l[c(h)]}},"37e8":function(s,r,a){var c=a("83ab"),l=a("9bf2"),d=a("825a"),u=a("df75");s.exports=c?Object.defineProperties:function(m,p){d(m);for(var g=u(p),v=g.length,b=0,S;v>b;)l.f(m,S=g[b++],p[S]);return m}},"3bbe":function(s,r,a){var c=a("861d");s.exports=function(l){if(!c(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(s,r,a){var c=a("6547").charAt,l=a("69f3"),d=a("7dd0"),u="String Iterator",h=l.set,m=l.getterFor(u);d(String,"String",function(p){h(this,{type:u,string:String(p),index:0})},function(){var g=m(this),v=g.string,b=g.index,S;return b>=v.length?{value:void 0,done:!0}:(S=c(v,b),g.index+=S.length,{value:S,done:!1})})},"3f8c":function(s,r){s.exports={}},4160:function(s,r,a){var c=a("23e7"),l=a("17c2");c({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(s,r,a){var c=a("da84");s.exports=c},"44ad":function(s,r,a){var c=a("d039"),l=a("c6b6"),d="".split;s.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return l(u)=="String"?d.call(u,""):Object(u)}:Object},"44d2":function(s,r,a){var c=a("b622"),l=a("7c73"),d=a("9bf2"),u=c("unscopables"),h=Array.prototype;h[u]==null&&d.f(h,u,{configurable:!0,value:l(null)}),s.exports=function(m){h[u][m]=!0}},"44e7":function(s,r,a){var c=a("861d"),l=a("c6b6"),d=a("b622"),u=d("match");s.exports=function(h){var m;return c(h)&&((m=h[u])!==void 0?!!m:l(h)=="RegExp")}},4930:function(s,r,a){var c=a("d039");s.exports=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())})},"4d64":function(s,r,a){var c=a("fc6a"),l=a("50c4"),d=a("23cb"),u=function(h){return function(m,p,g){var v=c(m),b=l(v.length),S=d(g,b),C;if(h&&p!=p){for(;b>S;)if(C=v[S++],C!=C)return!0}else for(;b>S;S++)if((h||S in v)&&v[S]===p)return h||S||0;return!h&&-1}};s.exports={includes:u(!0),indexOf:u(!1)}},"4de4":function(s,r,a){var c=a("23e7"),l=a("b727").filter,d=a("1dde"),u=a("ae40"),h=d("filter"),m=u("filter");c({target:"Array",proto:!0,forced:!h||!m},{filter:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(s,r,a){var c=a("0366"),l=a("7b0b"),d=a("9bdd"),u=a("e95a"),h=a("50c4"),m=a("8418"),p=a("35a1");s.exports=function(v){var b=l(v),S=typeof this=="function"?this:Array,C=arguments.length,x=C>1?arguments[1]:void 0,I=x!==void 0,R=p(b),A=0,Y,_,N,H,Q,st;if(I&&(x=c(x,C>2?arguments[2]:void 0,2)),R!=null&&!(S==Array&&u(R)))for(H=R.call(b),Q=H.next,_=new S;!(N=Q.call(H)).done;A++)st=I?d(H,x,[N.value,A],!0):N.value,m(_,A,st);else for(Y=h(b.length),_=new S(Y);Y>A;A++)st=I?x(b[A],A):b[A],m(_,A,st);return _.length=A,_}},"4fad":function(s,r,a){var c=a("23e7"),l=a("6f53").entries;c({target:"Object",stat:!0},{entries:function(u){return l(u)}})},"50c4":function(s,r,a){var c=a("a691"),l=Math.min;s.exports=function(d){return d>0?l(c(d),9007199254740991):0}},5135:function(s,r){var a={}.hasOwnProperty;s.exports=function(c,l){return a.call(c,l)}},5319:function(s,r,a){var c=a("d784"),l=a("825a"),d=a("7b0b"),u=a("50c4"),h=a("a691"),m=a("1d80"),p=a("8aa5"),g=a("14c3"),v=Math.max,b=Math.min,S=Math.floor,C=/\$([$&'`]|\d\d?|<[^>]*>)/g,x=/\$([$&'`]|\d\d?)/g,I=function(R){return R===void 0?R:String(R)};c("replace",2,function(R,A,Y,_){var N=_.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,H=_.REPLACE_KEEPS_$0,Q=N?"$":"$0";return[function(z,ot){var X=m(this),$=z==null?void 0:z[R];return $!==void 0?$.call(z,X,ot):A.call(String(X),z,ot)},function(L,z){if(!N&&H||typeof z=="string"&&z.indexOf(Q)===-1){var ot=Y(A,L,this,z);if(ot.done)return ot.value}var X=l(L),$=String(this),bt=typeof z=="function";bt||(z=String(z));var It=X.global;if(It){var Pt=X.unicode;X.lastIndex=0}for(var ut=[];;){var K=g(X,$);if(K===null||(ut.push(K),!It))break;var Ct=String(K[0]);Ct===""&&(X.lastIndex=p($,u(X.lastIndex),Pt))}for(var kt="",ft=0,tt=0;tt<ut.length;tt++){K=ut[tt];for(var gt=String(K[0]),Kt=v(b(h(K.index),$.length),0),_t=[],Zt=1;Zt<K.length;Zt++)_t.push(I(K[Zt]));var Ae=K.groups;if(bt){var Vt=[gt].concat(_t,Kt,$);Ae!==void 0&&Vt.push(Ae);var zt=String(z.apply(void 0,Vt))}else zt=st(gt,$,Kt,_t,Ae,z);Kt>=ft&&(kt+=$.slice(ft,Kt)+zt,ft=Kt+gt.length)}return kt+$.slice(ft)}];function st(L,z,ot,X,$,bt){var It=ot+L.length,Pt=X.length,ut=x;return $!==void 0&&($=d($),ut=C),A.call(bt,ut,function(K,Ct){var kt;switch(Ct.charAt(0)){case"$":return"$";case"&":return L;case"`":return z.slice(0,ot);case"'":return z.slice(It);case"<":kt=$[Ct.slice(1,-1)];break;default:var ft=+Ct;if(ft===0)return K;if(ft>Pt){var tt=S(ft/10);return tt===0?K:tt<=Pt?X[tt-1]===void 0?Ct.charAt(1):X[tt-1]+Ct.charAt(1):K}kt=X[ft-1]}return kt===void 0?"":kt})}})},5692:function(s,r,a){var c=a("c430"),l=a("c6cd");(s.exports=function(d,u){return l[d]||(l[d]=u!==void 0?u:{})})("versions",[]).push({version:"3.6.5",mode:c?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(s,r,a){var c=a("d066"),l=a("241c"),d=a("7418"),u=a("825a");s.exports=c("Reflect","ownKeys")||function(m){var p=l.f(u(m)),g=d.f;return g?p.concat(g(m)):p}},"5a34":function(s,r,a){var c=a("44e7");s.exports=function(l){if(c(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(s,r){s.exports=function(a,c){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:c}}},"5db7":function(s,r,a){var c=a("23e7"),l=a("a2bf"),d=a("7b0b"),u=a("50c4"),h=a("1c0b"),m=a("65f0");c({target:"Array",proto:!0},{flatMap:function(g){var v=d(this),b=u(v.length),S;return h(g),S=m(v,0),S.length=l(S,v,v,b,0,1,g,arguments.length>1?arguments[1]:void 0),S}})},6547:function(s,r,a){var c=a("a691"),l=a("1d80"),d=function(u){return function(h,m){var p=String(l(h)),g=c(m),v=p.length,b,S;return g<0||g>=v?u?"":void 0:(b=p.charCodeAt(g),b<55296||b>56319||g+1===v||(S=p.charCodeAt(g+1))<56320||S>57343?u?p.charAt(g):b:u?p.slice(g,g+2):(b-55296<<10)+(S-56320)+65536)}};s.exports={codeAt:d(!1),charAt:d(!0)}},"65f0":function(s,r,a){var c=a("861d"),l=a("e8b5"),d=a("b622"),u=d("species");s.exports=function(h,m){var p;return l(h)&&(p=h.constructor,typeof p=="function"&&(p===Array||l(p.prototype))?p=void 0:c(p)&&(p=p[u],p===null&&(p=void 0))),new(p===void 0?Array:p)(m===0?0:m)}},"69f3":function(s,r,a){var c=a("7f9a"),l=a("da84"),d=a("861d"),u=a("9112"),h=a("5135"),m=a("f772"),p=a("d012"),g=l.WeakMap,v,b,S,C=function(N){return S(N)?b(N):v(N,{})},x=function(N){return function(H){var Q;if(!d(H)||(Q=b(H)).type!==N)throw TypeError("Incompatible receiver, "+N+" required");return Q}};if(c){var I=new g,R=I.get,A=I.has,Y=I.set;v=function(N,H){return Y.call(I,N,H),H},b=function(N){return R.call(I,N)||{}},S=function(N){return A.call(I,N)}}else{var _=m("state");p[_]=!0,v=function(N,H){return u(N,_,H),H},b=function(N){return h(N,_)?N[_]:{}},S=function(N){return h(N,_)}}s.exports={set:v,get:b,has:S,enforce:C,getterFor:x}},"6eeb":function(s,r,a){var c=a("da84"),l=a("9112"),d=a("5135"),u=a("ce4e"),h=a("8925"),m=a("69f3"),p=m.get,g=m.enforce,v=String(String).split("String");(s.exports=function(b,S,C,x){var I=x?!!x.unsafe:!1,R=x?!!x.enumerable:!1,A=x?!!x.noTargetGet:!1;if(typeof C=="function"&&(typeof S=="string"&&!d(C,"name")&&l(C,"name",S),g(C).source=v.join(typeof S=="string"?S:"")),b===c){R?b[S]=C:u(S,C);return}else I?!A&&b[S]&&(R=!0):delete b[S];R?b[S]=C:l(b,S,C)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||h(this)})},"6f53":function(s,r,a){var c=a("83ab"),l=a("df75"),d=a("fc6a"),u=a("d1e7").f,h=function(m){return function(p){for(var g=d(p),v=l(g),b=v.length,S=0,C=[],x;b>S;)x=v[S++],(!c||u.call(g,x))&&C.push(m?[x,g[x]]:g[x]);return C}};s.exports={entries:h(!0),values:h(!1)}},"73d9":function(s,r,a){var c=a("44d2");c("flatMap")},7418:function(s,r){r.f=Object.getOwnPropertySymbols},"746f":function(s,r,a){var c=a("428f"),l=a("5135"),d=a("e538"),u=a("9bf2").f;s.exports=function(h){var m=c.Symbol||(c.Symbol={});l(m,h)||u(m,h,{value:d.f(h)})}},7839:function(s,r){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(s,r,a){var c=a("1d80");s.exports=function(l){return Object(c(l))}},"7c73":function(s,r,a){var c=a("825a"),l=a("37e8"),d=a("7839"),u=a("d012"),h=a("1be4"),m=a("cc12"),p=a("f772"),g=">",v="<",b="prototype",S="script",C=p("IE_PROTO"),x=function(){},I=function(N){return v+S+g+N+v+"/"+S+g},R=function(N){N.write(I("")),N.close();var H=N.parentWindow.Object;return N=null,H},A=function(){var N=m("iframe"),H="java"+S+":",Q;return N.style.display="none",h.appendChild(N),N.src=String(H),Q=N.contentWindow.document,Q.open(),Q.write(I("document.F=Object")),Q.close(),Q.F},Y,_=function(){try{Y=document.domain&&new ActiveXObject("htmlfile")}catch{}_=Y?R(Y):A();for(var N=d.length;N--;)delete _[b][d[N]];return _()};u[C]=!0,s.exports=Object.create||function(H,Q){var st;return H!==null?(x[b]=c(H),st=new x,x[b]=null,st[C]=H):st=_(),Q===void 0?st:l(st,Q)}},"7dd0":function(s,r,a){var c=a("23e7"),l=a("9ed3"),d=a("e163"),u=a("d2bb"),h=a("d44e"),m=a("9112"),p=a("6eeb"),g=a("b622"),v=a("c430"),b=a("3f8c"),S=a("ae93"),C=S.IteratorPrototype,x=S.BUGGY_SAFARI_ITERATORS,I=g("iterator"),R="keys",A="values",Y="entries",_=function(){return this};s.exports=function(N,H,Q,st,L,z,ot){l(Q,H,st);var X=function(tt){if(tt===L&&ut)return ut;if(!x&&tt in It)return It[tt];switch(tt){case R:return function(){return new Q(this,tt)};case A:return function(){return new Q(this,tt)};case Y:return function(){return new Q(this,tt)}}return function(){return new Q(this)}},$=H+" Iterator",bt=!1,It=N.prototype,Pt=It[I]||It["@@iterator"]||L&&It[L],ut=!x&&Pt||X(L),K=H=="Array"&&It.entries||Pt,Ct,kt,ft;if(K&&(Ct=d(K.call(new N)),C!==Object.prototype&&Ct.next&&(!v&&d(Ct)!==C&&(u?u(Ct,C):typeof Ct[I]!="function"&&m(Ct,I,_)),h(Ct,$,!0,!0),v&&(b[$]=_))),L==A&&Pt&&Pt.name!==A&&(bt=!0,ut=function(){return Pt.call(this)}),(!v||ot)&&It[I]!==ut&&m(It,I,ut),b[H]=ut,L)if(kt={values:X(A),keys:z?ut:X(R),entries:X(Y)},ot)for(ft in kt)(x||bt||!(ft in It))&&p(It,ft,kt[ft]);else c({target:H,proto:!0,forced:x||bt},kt);return kt}},"7f9a":function(s,r,a){var c=a("da84"),l=a("8925"),d=c.WeakMap;s.exports=typeof d=="function"&&/native code/.test(l(d))},"825a":function(s,r,a){var c=a("861d");s.exports=function(l){if(!c(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(s,r,a){var c=a("d039");s.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(s,r,a){var c=a("c04e"),l=a("9bf2"),d=a("5c6c");s.exports=function(u,h,m){var p=c(h);p in u?l.f(u,p,d(0,m)):u[p]=m}},"861d":function(s,r){s.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},8875:function(s,r,a){var c,l,d;(function(u,h){l=[],c=h,d=typeof c=="function"?c.apply(r,l):c,d!==void 0&&(s.exports=d)})(typeof self<"u"?self:this,function(){function u(){var h=Object.getOwnPropertyDescriptor(document,"currentScript");if(!h&&"currentScript"in document&&document.currentScript||h&&h.get!==u&&document.currentScript)return document.currentScript;try{throw new Error}catch(Y){var m=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,g=m.exec(Y.stack)||p.exec(Y.stack),v=g&&g[1]||!1,b=g&&g[2]||!1,S=document.location.href.replace(document.location.hash,""),C,x,I,R=document.getElementsByTagName("script");v===S&&(C=document.documentElement.outerHTML,x=new RegExp("(?:[^\\n]+?\\n){0,"+(b-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),I=C.replace(x,"$1").trim());for(var A=0;A<R.length;A++)if(R[A].readyState==="interactive"||R[A].src===v||v===S&&R[A].innerHTML&&R[A].innerHTML.trim()===I)return R[A];return null}}return u})},8925:function(s,r,a){var c=a("c6cd"),l=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(d){return l.call(d)}),s.exports=c.inspectSource},"8aa5":function(s,r,a){var c=a("6547").charAt;s.exports=function(l,d,u){return d+(u?c(l,d).length:1)}},"8bbf":function(s,r){s.exports=n},"90e3":function(s,r){var a=0,c=Math.random();s.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++a+c).toString(36)}},9112:function(s,r,a){var c=a("83ab"),l=a("9bf2"),d=a("5c6c");s.exports=c?function(u,h,m){return l.f(u,h,d(1,m))}:function(u,h,m){return u[h]=m,u}},9263:function(s,r,a){var c=a("ad6d"),l=a("9f7f"),d=RegExp.prototype.exec,u=String.prototype.replace,h=d,m=function(){var b=/a/,S=/b*/g;return d.call(b,"a"),d.call(S,"a"),b.lastIndex!==0||S.lastIndex!==0}(),p=l.UNSUPPORTED_Y||l.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,v=m||g||p;v&&(h=function(S){var C=this,x,I,R,A,Y=p&&C.sticky,_=c.call(C),N=C.source,H=0,Q=S;return Y&&(_=_.replace("y",""),_.indexOf("g")===-1&&(_+="g"),Q=String(S).slice(C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&S[C.lastIndex-1]!==`
|
|
29
|
-
`)&&(N="(?: "+N+")",Q=" "+Q,H++),I=new RegExp("^(?:"+N+")",_)),g&&(I=new RegExp("^"+N+"$(?!\\s)",_)),m&&(x=C.lastIndex),R=d.call(Y?I:C,Q),Y?R?(R.input=R.input.slice(H),R[0]=R[0].slice(H),R.index=C.lastIndex,C.lastIndex+=R[0].length):C.lastIndex=0:m&&R&&(C.lastIndex=C.global?R.index+R[0].length:x),g&&R&&R.length>1&&u.call(R[0],I,function(){for(A=1;A<arguments.length-2;A++)arguments[A]===void 0&&(R[A]=void 0)}),R}),s.exports=h},"94ca":function(s,r,a){var c=a("d039"),l=/#|\.prototype\./,d=function(g,v){var b=h[u(g)];return b==p?!0:b==m?!1:typeof v=="function"?c(v):!!v},u=d.normalize=function(g){return String(g).replace(l,".").toLowerCase()},h=d.data={},m=d.NATIVE="N",p=d.POLYFILL="P";s.exports=d},"99af":function(s,r,a){var c=a("23e7"),l=a("d039"),d=a("e8b5"),u=a("861d"),h=a("7b0b"),m=a("50c4"),p=a("8418"),g=a("65f0"),v=a("1dde"),b=a("b622"),S=a("2d00"),C=b("isConcatSpreadable"),x=9007199254740991,I="Maximum allowed index exceeded",R=S>=51||!l(function(){var N=[];return N[C]=!1,N.concat()[0]!==N}),A=v("concat"),Y=function(N){if(!u(N))return!1;var H=N[C];return H!==void 0?!!H:d(N)},_=!R||!A;c({target:"Array",proto:!0,forced:_},{concat:function(H){var Q=h(this),st=g(Q,0),L=0,z,ot,X,$,bt;for(z=-1,X=arguments.length;z<X;z++)if(bt=z===-1?Q:arguments[z],Y(bt)){if($=m(bt.length),L+$>x)throw TypeError(I);for(ot=0;ot<$;ot++,L++)ot in bt&&p(st,L,bt[ot])}else{if(L>=x)throw TypeError(I);p(st,L++,bt)}return st.length=L,st}})},"9bdd":function(s,r,a){var c=a("825a");s.exports=function(l,d,u,h){try{return h?d(c(u)[0],u[1]):d(u)}catch(p){var m=l.return;throw m!==void 0&&c(m.call(l)),p}}},"9bf2":function(s,r,a){var c=a("83ab"),l=a("0cfb"),d=a("825a"),u=a("c04e"),h=Object.defineProperty;r.f=c?h:function(p,g,v){if(d(p),g=u(g,!0),d(v),l)try{return h(p,g,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(p[g]=v.value),p}},"9ed3":function(s,r,a){var c=a("ae93").IteratorPrototype,l=a("7c73"),d=a("5c6c"),u=a("d44e"),h=a("3f8c"),m=function(){return this};s.exports=function(p,g,v){var b=g+" Iterator";return p.prototype=l(c,{next:d(1,v)}),u(p,b,!1,!0),h[b]=m,p}},"9f7f":function(s,r,a){var c=a("d039");function l(d,u){return RegExp(d,u)}r.UNSUPPORTED_Y=c(function(){var d=l("a","y");return d.lastIndex=2,d.exec("abcd")!=null}),r.BROKEN_CARET=c(function(){var d=l("^r","gy");return d.lastIndex=2,d.exec("str")!=null})},a2bf:function(s,r,a){var c=a("e8b5"),l=a("50c4"),d=a("0366"),u=function(h,m,p,g,v,b,S,C){for(var x=v,I=0,R=S?d(S,C,3):!1,A;I<g;){if(I in p){if(A=R?R(p[I],I,m):p[I],b>0&&c(A))x=u(h,m,A,l(A.length),x,b-1)-1;else{if(x>=9007199254740991)throw TypeError("Exceed the acceptable array length");h[x]=A}x++}I++}return x};s.exports=u},a352:function(s,r){s.exports=i},a434:function(s,r,a){var c=a("23e7"),l=a("23cb"),d=a("a691"),u=a("50c4"),h=a("7b0b"),m=a("65f0"),p=a("8418"),g=a("1dde"),v=a("ae40"),b=g("splice"),S=v("splice",{ACCESSORS:!0,0:0,1:2}),C=Math.max,x=Math.min,I=9007199254740991,R="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!b||!S},{splice:function(Y,_){var N=h(this),H=u(N.length),Q=l(Y,H),st=arguments.length,L,z,ot,X,$,bt;if(st===0?L=z=0:st===1?(L=0,z=H-Q):(L=st-2,z=x(C(d(_),0),H-Q)),H+L-z>I)throw TypeError(R);for(ot=m(N,z),X=0;X<z;X++)$=Q+X,$ in N&&p(ot,X,N[$]);if(ot.length=z,L<z){for(X=Q;X<H-z;X++)$=X+z,bt=X+L,$ in N?N[bt]=N[$]:delete N[bt];for(X=H;X>H-z+L;X--)delete N[X-1]}else if(L>z)for(X=H-z;X>Q;X--)$=X+z-1,bt=X+L-1,$ in N?N[bt]=N[$]:delete N[bt];for(X=0;X<L;X++)N[X+Q]=arguments[X+2];return N.length=H-z+L,ot}})},a4d3:function(s,r,a){var c=a("23e7"),l=a("da84"),d=a("d066"),u=a("c430"),h=a("83ab"),m=a("4930"),p=a("fdbf"),g=a("d039"),v=a("5135"),b=a("e8b5"),S=a("861d"),C=a("825a"),x=a("7b0b"),I=a("fc6a"),R=a("c04e"),A=a("5c6c"),Y=a("7c73"),_=a("df75"),N=a("241c"),H=a("057f"),Q=a("7418"),st=a("06cf"),L=a("9bf2"),z=a("d1e7"),ot=a("9112"),X=a("6eeb"),$=a("5692"),bt=a("f772"),It=a("d012"),Pt=a("90e3"),ut=a("b622"),K=a("e538"),Ct=a("746f"),kt=a("d44e"),ft=a("69f3"),tt=a("b727").forEach,gt=bt("hidden"),Kt="Symbol",_t="prototype",Zt=ut("toPrimitive"),Ae=ft.set,Vt=ft.getterFor(Kt),zt=Object[_t],Lt=l.Symbol,Qt=d("JSON","stringify"),et=st.f,At=L.f,ge=H.f,xe=z.f,de=$("symbols"),Ie=$("op-symbols"),Pe=$("string-to-symbol-registry"),Ln=$("symbol-to-string-registry"),Hn=$("wks"),Un=l.QObject,We=!Un||!Un[_t]||!Un[_t].findChild,jn=h&&g(function(){return Y(At({},"a",{get:function(){return At(this,"a",{value:7}).a}})).a!=7})?function(j,T,k){var D=et(zt,T);D&&delete zt[T],At(j,T,k),D&&j!==zt&&At(zt,T,D)}:At,Gn=function(j,T){var k=de[j]=Y(Lt[_t]);return Ae(k,{type:Kt,tag:j,description:T}),h||(k.description=T),k},O=p?function(j){return typeof j=="symbol"}:function(j){return Object(j)instanceof Lt},M=function(T,k,D){T===zt&&M(Ie,k,D),C(T);var F=R(k,!0);return C(D),v(de,F)?(D.enumerable?(v(T,gt)&&T[gt][F]&&(T[gt][F]=!1),D=Y(D,{enumerable:A(0,!1)})):(v(T,gt)||At(T,gt,A(1,{})),T[gt][F]=!0),jn(T,F,D)):At(T,F,D)},y=function(T,k){C(T);var D=I(k),F=_(D).concat(rt(D));return tt(F,function(at){(!h||P.call(D,at))&&M(T,at,D[at])}),T},w=function(T,k){return k===void 0?Y(T):y(Y(T),k)},P=function(T){var k=R(T,!0),D=xe.call(this,k);return this===zt&&v(de,k)&&!v(Ie,k)?!1:D||!v(this,k)||!v(de,k)||v(this,gt)&&this[gt][k]?D:!0},B=function(T,k){var D=I(T),F=R(k,!0);if(!(D===zt&&v(de,F)&&!v(Ie,F))){var at=et(D,F);return at&&v(de,F)&&!(v(D,gt)&&D[gt][F])&&(at.enumerable=!0),at}},V=function(T){var k=ge(I(T)),D=[];return tt(k,function(F){!v(de,F)&&!v(It,F)&&D.push(F)}),D},rt=function(T){var k=T===zt,D=ge(k?Ie:I(T)),F=[];return tt(D,function(at){v(de,at)&&(!k||v(zt,at))&&F.push(de[at])}),F};if(m||(Lt=function(){if(this instanceof Lt)throw TypeError("Symbol is not a constructor");var T=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),k=Pt(T),D=function(F){this===zt&&D.call(Ie,F),v(this,gt)&&v(this[gt],k)&&(this[gt][k]=!1),jn(this,k,A(1,F))};return h&&We&&jn(zt,k,{configurable:!0,set:D}),Gn(k,T)},X(Lt[_t],"toString",function(){return Vt(this).tag}),X(Lt,"withoutSetter",function(j){return Gn(Pt(j),j)}),z.f=P,L.f=M,st.f=B,N.f=H.f=V,Q.f=rt,K.f=function(j){return Gn(ut(j),j)},h&&(At(Lt[_t],"description",{configurable:!0,get:function(){return Vt(this).description}}),u||X(zt,"propertyIsEnumerable",P,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!m,sham:!m},{Symbol:Lt}),tt(_(Hn),function(j){Ct(j)}),c({target:Kt,stat:!0,forced:!m},{for:function(j){var T=String(j);if(v(Pe,T))return Pe[T];var k=Lt(T);return Pe[T]=k,Ln[k]=T,k},keyFor:function(T){if(!O(T))throw TypeError(T+" is not a symbol");if(v(Ln,T))return Ln[T]},useSetter:function(){We=!0},useSimple:function(){We=!1}}),c({target:"Object",stat:!0,forced:!m,sham:!h},{create:w,defineProperty:M,defineProperties:y,getOwnPropertyDescriptor:B}),c({target:"Object",stat:!0,forced:!m},{getOwnPropertyNames:V,getOwnPropertySymbols:rt}),c({target:"Object",stat:!0,forced:g(function(){Q.f(1)})},{getOwnPropertySymbols:function(T){return Q.f(x(T))}}),Qt){var mt=!m||g(function(){var j=Lt();return Qt([j])!="[null]"||Qt({a:j})!="{}"||Qt(Object(j))!="{}"});c({target:"JSON",stat:!0,forced:mt},{stringify:function(T,k,D){for(var F=[T],at=1,Rt;arguments.length>at;)F.push(arguments[at++]);if(Rt=k,!(!S(k)&&T===void 0||O(T)))return b(k)||(k=function(Ht,ve){if(typeof Rt=="function"&&(ve=Rt.call(this,Ht,ve)),!O(ve))return ve}),F[1]=k,Qt.apply(null,F)}})}Lt[_t][Zt]||ot(Lt[_t],Zt,Lt[_t].valueOf),kt(Lt,Kt),It[gt]=!0},a630:function(s,r,a){var c=a("23e7"),l=a("4df4"),d=a("1c7e"),u=!d(function(h){Array.from(h)});c({target:"Array",stat:!0,forced:u},{from:l})},a640:function(s,r,a){var c=a("d039");s.exports=function(l,d){var u=[][l];return!!u&&c(function(){u.call(null,d||function(){throw 1},1)})}},a691:function(s,r){var a=Math.ceil,c=Math.floor;s.exports=function(l){return isNaN(l=+l)?0:(l>0?c:a)(l)}},ab13:function(s,r,a){var c=a("b622"),l=c("match");s.exports=function(d){var u=/./;try{"/./"[d](u)}catch{try{return u[l]=!1,"/./"[d](u)}catch{}}return!1}},ac1f:function(s,r,a){var c=a("23e7"),l=a("9263");c({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(s,r,a){var c=a("825a");s.exports=function(){var l=c(this),d="";return l.global&&(d+="g"),l.ignoreCase&&(d+="i"),l.multiline&&(d+="m"),l.dotAll&&(d+="s"),l.unicode&&(d+="u"),l.sticky&&(d+="y"),d}},ae40:function(s,r,a){var c=a("83ab"),l=a("d039"),d=a("5135"),u=Object.defineProperty,h={},m=function(p){throw p};s.exports=function(p,g){if(d(h,p))return h[p];g||(g={});var v=[][p],b=d(g,"ACCESSORS")?g.ACCESSORS:!1,S=d(g,0)?g[0]:m,C=d(g,1)?g[1]:void 0;return h[p]=!!v&&!l(function(){if(b&&!c)return!0;var x={length:-1};b?u(x,1,{enumerable:!0,get:m}):x[1]=1,v.call(x,S,C)})}},ae93:function(s,r,a){var c=a("e163"),l=a("9112"),d=a("5135"),u=a("b622"),h=a("c430"),m=u("iterator"),p=!1,g=function(){return this},v,b,S;[].keys&&(S=[].keys(),"next"in S?(b=c(c(S)),b!==Object.prototype&&(v=b)):p=!0),v==null&&(v={}),!h&&!d(v,m)&&l(v,m,g),s.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:p}},b041:function(s,r,a){var c=a("00ee"),l=a("f5df");s.exports=c?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(s,r,a){var c=a("83ab"),l=a("9bf2").f,d=Function.prototype,u=d.toString,h=/^\s*function ([^ (]*)/,m="name";c&&!(m in d)&&l(d,m,{configurable:!0,get:function(){try{return u.call(this).match(h)[1]}catch{return""}}})},b622:function(s,r,a){var c=a("da84"),l=a("5692"),d=a("5135"),u=a("90e3"),h=a("4930"),m=a("fdbf"),p=l("wks"),g=c.Symbol,v=m?g:g&&g.withoutSetter||u;s.exports=function(b){return d(p,b)||(h&&d(g,b)?p[b]=g[b]:p[b]=v("Symbol."+b)),p[b]}},b64b:function(s,r,a){var c=a("23e7"),l=a("7b0b"),d=a("df75"),u=a("d039"),h=u(function(){d(1)});c({target:"Object",stat:!0,forced:h},{keys:function(p){return d(l(p))}})},b727:function(s,r,a){var c=a("0366"),l=a("44ad"),d=a("7b0b"),u=a("50c4"),h=a("65f0"),m=[].push,p=function(g){var v=g==1,b=g==2,S=g==3,C=g==4,x=g==6,I=g==5||x;return function(R,A,Y,_){for(var N=d(R),H=l(N),Q=c(A,Y,3),st=u(H.length),L=0,z=_||h,ot=v?z(R,st):b?z(R,0):void 0,X,$;st>L;L++)if((I||L in H)&&(X=H[L],$=Q(X,L,N),g)){if(v)ot[L]=$;else if($)switch(g){case 3:return!0;case 5:return X;case 6:return L;case 2:m.call(ot,X)}else if(C)return!1}return x?-1:S||C?C:ot}};s.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(s,r,a){var c=a("861d");s.exports=function(l,d){if(!c(l))return l;var u,h;if(d&&typeof(u=l.toString)=="function"&&!c(h=u.call(l))||typeof(u=l.valueOf)=="function"&&!c(h=u.call(l))||!d&&typeof(u=l.toString)=="function"&&!c(h=u.call(l)))return h;throw TypeError("Can't convert object to primitive value")}},c430:function(s,r){s.exports=!1},c6b6:function(s,r){var a={}.toString;s.exports=function(c){return a.call(c).slice(8,-1)}},c6cd:function(s,r,a){var c=a("da84"),l=a("ce4e"),d="__core-js_shared__",u=c[d]||l(d,{});s.exports=u},c740:function(s,r,a){var c=a("23e7"),l=a("b727").findIndex,d=a("44d2"),u=a("ae40"),h="findIndex",m=!0,p=u(h);h in[]&&Array(1)[h](function(){m=!1}),c({target:"Array",proto:!0,forced:m||!p},{findIndex:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}}),d(h)},c8ba:function(s,r){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}s.exports=a},c975:function(s,r,a){var c=a("23e7"),l=a("4d64").indexOf,d=a("a640"),u=a("ae40"),h=[].indexOf,m=!!h&&1/[1].indexOf(1,-0)<0,p=d("indexOf"),g=u("indexOf",{ACCESSORS:!0,1:0});c({target:"Array",proto:!0,forced:m||!p||!g},{indexOf:function(b){return m?h.apply(this,arguments)||0:l(this,b,arguments.length>1?arguments[1]:void 0)}})},ca84:function(s,r,a){var c=a("5135"),l=a("fc6a"),d=a("4d64").indexOf,u=a("d012");s.exports=function(h,m){var p=l(h),g=0,v=[],b;for(b in p)!c(u,b)&&c(p,b)&&v.push(b);for(;m.length>g;)c(p,b=m[g++])&&(~d(v,b)||v.push(b));return v}},caad:function(s,r,a){var c=a("23e7"),l=a("4d64").includes,d=a("44d2"),u=a("ae40"),h=u("indexOf",{ACCESSORS:!0,1:0});c({target:"Array",proto:!0,forced:!h},{includes:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}}),d("includes")},cc12:function(s,r,a){var c=a("da84"),l=a("861d"),d=c.document,u=l(d)&&l(d.createElement);s.exports=function(h){return u?d.createElement(h):{}}},ce4e:function(s,r,a){var c=a("da84"),l=a("9112");s.exports=function(d,u){try{l(c,d,u)}catch{c[d]=u}return u}},d012:function(s,r){s.exports={}},d039:function(s,r){s.exports=function(a){try{return!!a()}catch{return!0}}},d066:function(s,r,a){var c=a("428f"),l=a("da84"),d=function(u){return typeof u=="function"?u:void 0};s.exports=function(u,h){return arguments.length<2?d(c[u])||d(l[u]):c[u]&&c[u][h]||l[u]&&l[u][h]}},d1e7:function(s,r,a){var c={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,d=l&&!c.call({1:2},1);r.f=d?function(h){var m=l(this,h);return!!m&&m.enumerable}:c},d28b:function(s,r,a){var c=a("746f");c("iterator")},d2bb:function(s,r,a){var c=a("825a"),l=a("3bbe");s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d=!1,u={},h;try{h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,h.call(u,[]),d=u instanceof Array}catch{}return function(p,g){return c(p),l(g),d?h.call(p,g):p.__proto__=g,p}}():void 0)},d3b7:function(s,r,a){var c=a("00ee"),l=a("6eeb"),d=a("b041");c||l(Object.prototype,"toString",d,{unsafe:!0})},d44e:function(s,r,a){var c=a("9bf2").f,l=a("5135"),d=a("b622"),u=d("toStringTag");s.exports=function(h,m,p){h&&!l(h=p?h:h.prototype,u)&&c(h,u,{configurable:!0,value:m})}},d58f:function(s,r,a){var c=a("1c0b"),l=a("7b0b"),d=a("44ad"),u=a("50c4"),h=function(m){return function(p,g,v,b){c(g);var S=l(p),C=d(S),x=u(S.length),I=m?x-1:0,R=m?-1:1;if(v<2)for(;;){if(I in C){b=C[I],I+=R;break}if(I+=R,m?I<0:x<=I)throw TypeError("Reduce of empty array with no initial value")}for(;m?I>=0:x>I;I+=R)I in C&&(b=g(b,C[I],I,S));return b}};s.exports={left:h(!1),right:h(!0)}},d784:function(s,r,a){a("ac1f");var c=a("6eeb"),l=a("d039"),d=a("b622"),u=a("9263"),h=a("9112"),m=d("species"),p=!l(function(){var C=/./;return C.exec=function(){var x=[];return x.groups={a:"7"},x},"".replace(C,"$<a>")!=="7"}),g=function(){return"a".replace(/./,"$0")==="$0"}(),v=d("replace"),b=function(){return/./[v]?/./[v]("a","$0")==="":!1}(),S=!l(function(){var C=/(?:)/,x=C.exec;C.exec=function(){return x.apply(this,arguments)};var I="ab".split(C);return I.length!==2||I[0]!=="a"||I[1]!=="b"});s.exports=function(C,x,I,R){var A=d(C),Y=!l(function(){var L={};return L[A]=function(){return 7},""[C](L)!=7}),_=Y&&!l(function(){var L=!1,z=/a/;return C==="split"&&(z={},z.constructor={},z.constructor[m]=function(){return z},z.flags="",z[A]=/./[A]),z.exec=function(){return L=!0,null},z[A](""),!L});if(!Y||!_||C==="replace"&&!(p&&g&&!b)||C==="split"&&!S){var N=/./[A],H=I(A,""[C],function(L,z,ot,X,$){return z.exec===u?Y&&!$?{done:!0,value:N.call(z,ot,X)}:{done:!0,value:L.call(ot,z,X)}:{done:!1}},{REPLACE_KEEPS_$0:g,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:b}),Q=H[0],st=H[1];c(String.prototype,C,Q),c(RegExp.prototype,A,x==2?function(L,z){return st.call(L,this,z)}:function(L){return st.call(L,this)})}R&&h(RegExp.prototype[A],"sham",!0)}},d81d:function(s,r,a){var c=a("23e7"),l=a("b727").map,d=a("1dde"),u=a("ae40"),h=d("map"),m=u("map");c({target:"Array",proto:!0,forced:!h||!m},{map:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}})},da84:function(s,r,a){(function(c){var l=function(d){return d&&d.Math==Math&&d};s.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof c=="object"&&c)||Function("return this")()}).call(this,a("c8ba"))},dbb4:function(s,r,a){var c=a("23e7"),l=a("83ab"),d=a("56ef"),u=a("fc6a"),h=a("06cf"),m=a("8418");c({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(g){for(var v=u(g),b=h.f,S=d(v),C={},x=0,I,R;S.length>x;)R=b(v,I=S[x++]),R!==void 0&&m(C,I,R);return C}})},dbf1:function(s,r,a){(function(c){a.d(r,"a",function(){return d});function l(){return typeof window<"u"?window.console:c.console}var d=l()}).call(this,a("c8ba"))},ddb0:function(s,r,a){var c=a("da84"),l=a("fdbc"),d=a("e260"),u=a("9112"),h=a("b622"),m=h("iterator"),p=h("toStringTag"),g=d.values;for(var v in l){var b=c[v],S=b&&b.prototype;if(S){if(S[m]!==g)try{u(S,m,g)}catch{S[m]=g}if(S[p]||u(S,p,v),l[v]){for(var C in d)if(S[C]!==d[C])try{u(S,C,d[C])}catch{S[C]=d[C]}}}}},df75:function(s,r,a){var c=a("ca84"),l=a("7839");s.exports=Object.keys||function(u){return c(u,l)}},e01a:function(s,r,a){var c=a("23e7"),l=a("83ab"),d=a("da84"),u=a("5135"),h=a("861d"),m=a("9bf2").f,p=a("e893"),g=d.Symbol;if(l&&typeof g=="function"&&(!("description"in g.prototype)||g().description!==void 0)){var v={},b=function(){var A=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Y=this instanceof b?new g(A):A===void 0?g():g(A);return A===""&&(v[Y]=!0),Y};p(b,g);var S=b.prototype=g.prototype;S.constructor=b;var C=S.toString,x=String(g("test"))=="Symbol(test)",I=/^Symbol\((.*)\)[^)]+$/;m(S,"description",{configurable:!0,get:function(){var A=h(this)?this.valueOf():this,Y=C.call(A);if(u(v,A))return"";var _=x?Y.slice(7,-1):Y.replace(I,"$1");return _===""?void 0:_}}),c({global:!0,forced:!0},{Symbol:b})}},e163:function(s,r,a){var c=a("5135"),l=a("7b0b"),d=a("f772"),u=a("e177"),h=d("IE_PROTO"),m=Object.prototype;s.exports=u?Object.getPrototypeOf:function(p){return p=l(p),c(p,h)?p[h]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?m:null}},e177:function(s,r,a){var c=a("d039");s.exports=!c(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(s,r,a){var c=a("fc6a"),l=a("44d2"),d=a("3f8c"),u=a("69f3"),h=a("7dd0"),m="Array Iterator",p=u.set,g=u.getterFor(m);s.exports=h(Array,"Array",function(v,b){p(this,{type:m,target:c(v),index:0,kind:b})},function(){var v=g(this),b=v.target,S=v.kind,C=v.index++;return!b||C>=b.length?(v.target=void 0,{value:void 0,done:!0}):S=="keys"?{value:C,done:!1}:S=="values"?{value:b[C],done:!1}:{value:[C,b[C]],done:!1}},"values"),d.Arguments=d.Array,l("keys"),l("values"),l("entries")},e439:function(s,r,a){var c=a("23e7"),l=a("d039"),d=a("fc6a"),u=a("06cf").f,h=a("83ab"),m=l(function(){u(1)}),p=!h||m;c({target:"Object",stat:!0,forced:p,sham:!h},{getOwnPropertyDescriptor:function(v,b){return u(d(v),b)}})},e538:function(s,r,a){var c=a("b622");r.f=c},e893:function(s,r,a){var c=a("5135"),l=a("56ef"),d=a("06cf"),u=a("9bf2");s.exports=function(h,m){for(var p=l(m),g=u.f,v=d.f,b=0;b<p.length;b++){var S=p[b];c(h,S)||g(h,S,v(m,S))}}},e8b5:function(s,r,a){var c=a("c6b6");s.exports=Array.isArray||function(d){return c(d)=="Array"}},e95a:function(s,r,a){var c=a("b622"),l=a("3f8c"),d=c("iterator"),u=Array.prototype;s.exports=function(h){return h!==void 0&&(l.Array===h||u[d]===h)}},f5df:function(s,r,a){var c=a("00ee"),l=a("c6b6"),d=a("b622"),u=d("toStringTag"),h=l(function(){return arguments}())=="Arguments",m=function(p,g){try{return p[g]}catch{}};s.exports=c?l:function(p){var g,v,b;return p===void 0?"Undefined":p===null?"Null":typeof(v=m(g=Object(p),u))=="string"?v:h?l(g):(b=l(g))=="Object"&&typeof g.callee=="function"?"Arguments":b}},f772:function(s,r,a){var c=a("5692"),l=a("90e3"),d=c("keys");s.exports=function(u){return d[u]||(d[u]=l(u))}},fb15:function(s,r,a){if(a.r(r),typeof window<"u"){var c=window.document.currentScript;{var l=a("8875");c=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var d=c&&c.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);d&&(a.p=d[1])}a("99af"),a("4de4"),a("4160"),a("c975"),a("d81d"),a("a434"),a("159b"),a("a4d3"),a("e439"),a("dbb4"),a("b64b");function u(O,M,y){return M in O?Object.defineProperty(O,M,{value:y,enumerable:!0,configurable:!0,writable:!0}):O[M]=y,O}function h(O,M){var y=Object.keys(O);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(O);M&&(w=w.filter(function(P){return Object.getOwnPropertyDescriptor(O,P).enumerable})),y.push.apply(y,w)}return y}function m(O){for(var M=1;M<arguments.length;M++){var y=arguments[M]!=null?arguments[M]:{};M%2?h(Object(y),!0).forEach(function(w){u(O,w,y[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(y)):h(Object(y)).forEach(function(w){Object.defineProperty(O,w,Object.getOwnPropertyDescriptor(y,w))})}return O}function p(O){if(Array.isArray(O))return O}a("e01a"),a("d28b"),a("e260"),a("d3b7"),a("3ca3"),a("ddb0");function g(O,M){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(O)))){var y=[],w=!0,P=!1,B=void 0;try{for(var V=O[Symbol.iterator](),rt;!(w=(rt=V.next()).done)&&(y.push(rt.value),!(M&&y.length===M));w=!0);}catch(mt){P=!0,B=mt}finally{try{!w&&V.return!=null&&V.return()}finally{if(P)throw B}}return y}}a("a630"),a("fb6a"),a("b0c0"),a("25f0");function v(O,M){(M==null||M>O.length)&&(M=O.length);for(var y=0,w=new Array(M);y<M;y++)w[y]=O[y];return w}function b(O,M){if(O){if(typeof O=="string")return v(O,M);var y=Object.prototype.toString.call(O).slice(8,-1);if(y==="Object"&&O.constructor&&(y=O.constructor.name),y==="Map"||y==="Set")return Array.from(O);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return v(O,M)}}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
30
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C(O,M){return p(O)||g(O,M)||b(O,M)||S()}function x(O){if(Array.isArray(O))return v(O)}function I(O){if(typeof Symbol<"u"&&Symbol.iterator in Object(O))return Array.from(O)}function R(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
31
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(O){return x(O)||I(O)||b(O)||R()}var Y=a("a352"),_=a.n(Y);function N(O){O.parentElement!==null&&O.parentElement.removeChild(O)}function H(O,M,y){var w=y===0?O.children[0]:O.children[y-1].nextSibling;O.insertBefore(M,w)}var Q=a("dbf1");a("13d5"),a("4fad"),a("ac1f"),a("5319");function st(O){var M=Object.create(null);return function(w){var P=M[w];return P||(M[w]=O(w))}}var L=/-(\w)/g,z=st(function(O){return O.replace(L,function(M,y){return y.toUpperCase()})});a("5db7"),a("73d9");var ot=["Start","Add","Remove","Update","End"],X=["Choose","Unchoose","Sort","Filter","Clone"],$=["Move"],bt=[$,ot,X].flatMap(function(O){return O}).map(function(O){return"on".concat(O)}),It={manage:$,manageAndEmit:ot,emit:X};function Pt(O){return bt.indexOf(O)!==-1}a("caad"),a("2ca0");var ut=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function K(O){return ut.includes(O)}function Ct(O){return["transition-group","TransitionGroup"].includes(O)}function kt(O){return["id","class","role","style"].includes(O)||O.startsWith("data-")||O.startsWith("aria-")||O.startsWith("on")}function ft(O){return O.reduce(function(M,y){var w=C(y,2),P=w[0],B=w[1];return M[P]=B,M},{})}function tt(O){var M=O.$attrs,y=O.componentData,w=y===void 0?{}:y,P=ft(Object.entries(M).filter(function(B){var V=C(B,2),rt=V[0];return V[1],kt(rt)}));return m(m({},P),w)}function gt(O){var M=O.$attrs,y=O.callBackBuilder,w=ft(Kt(M));Object.entries(y).forEach(function(B){var V=C(B,2),rt=V[0],mt=V[1];It[rt].forEach(function(j){w["on".concat(j)]=mt(j)})});var P="[data-draggable]".concat(w.draggable||"");return m(m({},w),{},{draggable:P})}function Kt(O){return Object.entries(O).filter(function(M){var y=C(M,2),w=y[0];return y[1],!kt(w)}).map(function(M){var y=C(M,2),w=y[0],P=y[1];return[z(w),P]}).filter(function(M){var y=C(M,2),w=y[0];return y[1],!Pt(w)})}a("c740");function _t(O,M){if(!(O instanceof M))throw new TypeError("Cannot call a class as a function")}function Zt(O,M){for(var y=0;y<M.length;y++){var w=M[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(O,w.key,w)}}function Ae(O,M,y){return M&&Zt(O.prototype,M),O}var Vt=function(M){var y=M.el;return y},zt=function(M,y){return M.__draggable_context=y},Lt=function(M){return M.__draggable_context},Qt=function(){function O(M){var y=M.nodes,w=y.header,P=y.default,B=y.footer,V=M.root,rt=M.realList;_t(this,O),this.defaultNodes=P,this.children=[].concat(A(w),A(P),A(B)),this.externalComponent=V.externalComponent,this.rootTransition=V.transition,this.tag=V.tag,this.realList=rt}return Ae(O,[{key:"render",value:function(y,w){var P=this.tag,B=this.children,V=this._isRootComponent,rt=V?{default:function(){return B}}:B;return y(P,w,rt)}},{key:"updated",value:function(){var y=this.defaultNodes,w=this.realList;y.forEach(function(P,B){zt(Vt(P),{element:w[B],index:B})})}},{key:"getUnderlyingVm",value:function(y){return Lt(y)}},{key:"getVmIndexFromDomIndex",value:function(y,w){var P=this.defaultNodes,B=P.length,V=w.children,rt=V.item(y);if(rt===null)return B;var mt=Lt(rt);if(mt)return mt.index;if(B===0)return 0;var j=Vt(P[0]),T=A(V).findIndex(function(k){return k===j});return y<T?0:B}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),O}(),et=a("8bbf");function At(O,M){var y=O[M];return y?y():[]}function ge(O){var M=O.$slots,y=O.realList,w=O.getKey,P=y||[],B=["header","footer"].map(function(k){return At(M,k)}),V=C(B,2),rt=V[0],mt=V[1],j=M.item;if(!j)throw new Error("draggable element must have an item slot");var T=P.flatMap(function(k,D){return j({element:k,index:D}).map(function(F){return F.key=w(k),F.props=m(m({},F.props||{}),{},{"data-draggable":!0}),F})});if(T.length!==P.length)throw new Error("Item slot must have only one child");return{header:rt,footer:mt,default:T}}function xe(O){var M=Ct(O),y=!K(O)&&!M;return{transition:M,externalComponent:y,tag:y?Object(et.resolveComponent)(O):M?et.TransitionGroup:O}}function de(O){var M=O.$slots,y=O.tag,w=O.realList,P=O.getKey,B=ge({$slots:M,realList:w,getKey:P}),V=xe(y);return new Qt({nodes:B,root:V,realList:w})}function Ie(O,M){var y=this;Object(et.nextTick)(function(){return y.$emit(O.toLowerCase(),M)})}function Pe(O){var M=this;return function(y,w){if(M.realList!==null)return M["onDrag".concat(O)](y,w)}}function Ln(O){var M=this,y=Pe.call(this,O);return function(w,P){y.call(M,w,P),Ie.call(M,O,w)}}var Hn=null,Un={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(M){return M}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},We=["update:modelValue","change"].concat(A([].concat(A(It.manageAndEmit),A(It.emit)).map(function(O){return O.toLowerCase()}))),jn=Object(et.defineComponent)({name:"draggable",inheritAttrs:!1,props:Un,emits:We,data:function(){return{error:!1}},render:function(){try{this.error=!1;var M=this.$slots,y=this.$attrs,w=this.tag,P=this.componentData,B=this.realList,V=this.getKey,rt=de({$slots:M,tag:w,realList:B,getKey:V});this.componentStructure=rt;var mt=tt({$attrs:y,componentData:P});return rt.render(et.h,mt)}catch(j){return this.error=!0,Object(et.h)("pre",{style:{color:"red"}},j.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&Q.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var M=this;if(!this.error){var y=this.$attrs,w=this.$el,P=this.componentStructure;P.updated();var B=gt({$attrs:y,callBackBuilder:{manageAndEmit:function(mt){return Ln.call(M,mt)},emit:function(mt){return Ie.bind(M,mt)},manage:function(mt){return Pe.call(M,mt)}}}),V=w.nodeType===1?w:w.parentElement;this._sortable=new _.a(V,B),this.targetDomElement=V,V.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var M=this.list;return M||this.modelValue},getKey:function(){var M=this.itemKey;return typeof M=="function"?M:function(y){return y[M]}}},watch:{$attrs:{handler:function(M){var y=this._sortable;y&&Kt(M).forEach(function(w){var P=C(w,2),B=P[0],V=P[1];y.option(B,V)})},deep:!0}},methods:{getUnderlyingVm:function(M){return this.componentStructure.getUnderlyingVm(M)||null},getUnderlyingPotencialDraggableComponent:function(M){return M.__draggable_component__},emitChanges:function(M){var y=this;Object(et.nextTick)(function(){return y.$emit("change",M)})},alterList:function(M){if(this.list){M(this.list);return}var y=A(this.modelValue);M(y),this.$emit("update:modelValue",y)},spliceList:function(){var M=arguments,y=function(P){return P.splice.apply(P,A(M))};this.alterList(y)},updatePosition:function(M,y){var w=function(B){return B.splice(y,0,B.splice(M,1)[0])};this.alterList(w)},getRelatedContextFromMoveEvent:function(M){var y=M.to,w=M.related,P=this.getUnderlyingPotencialDraggableComponent(y);if(!P)return{component:P};var B=P.realList,V={list:B,component:P};if(y!==w&&B){var rt=P.getUnderlyingVm(w)||{};return m(m({},rt),V)}return V},getVmIndexFromDomIndex:function(M){return this.componentStructure.getVmIndexFromDomIndex(M,this.targetDomElement)},onDragStart:function(M){this.context=this.getUnderlyingVm(M.item),M.item._underlying_vm_=this.clone(this.context.element),Hn=M.item},onDragAdd:function(M){var y=M.item._underlying_vm_;if(y!==void 0){N(M.item);var w=this.getVmIndexFromDomIndex(M.newIndex);this.spliceList(w,0,y);var P={element:y,newIndex:w};this.emitChanges({added:P})}},onDragRemove:function(M){if(H(this.$el,M.item,M.oldIndex),M.pullMode==="clone"){N(M.clone);return}var y=this.context,w=y.index,P=y.element;this.spliceList(w,1);var B={element:P,oldIndex:w};this.emitChanges({removed:B})},onDragUpdate:function(M){N(M.item),H(M.from,M.item,M.oldIndex);var y=this.context.index,w=this.getVmIndexFromDomIndex(M.newIndex);this.updatePosition(y,w);var P={element:this.context.element,oldIndex:y,newIndex:w};this.emitChanges({moved:P})},computeFutureIndex:function(M,y){if(!M.element)return 0;var w=A(y.to.children).filter(function(rt){return rt.style.display!=="none"}),P=w.indexOf(y.related),B=M.component.getVmIndexFromDomIndex(P),V=w.indexOf(Hn)!==-1;return V||!y.willInsertAfter?B:B+1},onDragMove:function(M,y){var w=this.move,P=this.realList;if(!w||!P)return!0;var B=this.getRelatedContextFromMoveEvent(M),V=this.computeFutureIndex(B,M),rt=m(m({},this.context),{},{futureIndex:V}),mt=m(m({},M),{},{relatedContext:B,draggedContext:rt});return w(mt,y)},onDragEnd:function(){Hn=null}}}),Gn=jn;r.default=Gn},fb6a:function(s,r,a){var c=a("23e7"),l=a("861d"),d=a("e8b5"),u=a("23cb"),h=a("50c4"),m=a("fc6a"),p=a("8418"),g=a("b622"),v=a("1dde"),b=a("ae40"),S=v("slice"),C=b("slice",{ACCESSORS:!0,0:0,1:2}),x=g("species"),I=[].slice,R=Math.max;c({target:"Array",proto:!0,forced:!S||!C},{slice:function(Y,_){var N=m(this),H=h(N.length),Q=u(Y,H),st=u(_===void 0?H:_,H),L,z,ot;if(d(N)&&(L=N.constructor,typeof L=="function"&&(L===Array||d(L.prototype))?L=void 0:l(L)&&(L=L[x],L===null&&(L=void 0)),L===Array||L===void 0))return I.call(N,Q,st);for(z=new(L===void 0?Array:L)(R(st-Q,0)),ot=0;Q<st;Q++,ot++)Q in N&&p(z,ot,N[Q]);return z.length=ot,z}})},fc6a:function(s,r,a){var c=a("44ad"),l=a("1d80");s.exports=function(d){return c(l(d))}},fdbc:function(s,r){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(s,r,a){var c=a("4930");s.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(xl);var S1=xl.exports;const w1=Yc(S1),C1={key:0,class:"list-title"},E1={class:"draggable-item"},x1={class:"drag-handle"},I1={class:"item-content"},P1={key:0,class:"item-actions"},R1={class:"item-content"},M1={key:0,class:"item-actions"},O1={key:4,class:"add-button-container"},A1=o.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:W.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(e,{emit:t}){o.useCssVars(l=>({v73008f9f:e.background}));const n=e,i=t,s=async()=>{const l=await n.addFunc();l.order!=="undefined"&&(l.order=n.list.length),n.addToList&&n.store&&n.store.AppendToAll(l),n.store&&await n.store.Create(l),await c(),i("add",l)},r=async l=>{n.removeFromList&&W.H.Classes.RemoveFromClassById(l,n.list),n.store&&await n.store.Remove(l),await c(),i("remove",l)},a=async l=>{n.store&&await n.store.Update(l),i("update",l)},c=async()=>{!n.sortable||n.list.length===0||typeof n.list[0].order>"u"||(W.H.Sorter.Sort(n.list),n.store&&await n.store.UpdateMany(n.list),i("sort"))};return(l,d)=>(o.openBlock(),o.createElementBlock("div",o.mergeProps(l.$attrs,{style:{margin:e.margin,boxSizing:"border-box"},class:"ordered-list"}),[e.title?(o.openBlock(),o.createElementBlock("div",C1,o.toDisplayString(e.title),1)):o.renderSlot(l.$slots,"title",{},void 0,!0,1),e.sortable?(o.openBlock(),o.createBlock(o.unref(w1),{key:2,class:"draggable-list",list:e.list,"item-key":"id",handle:".drag-handle",onEnd:c},{item:o.withCtx(({element:u,index:h})=>[o.createElementVNode("div",E1,[o.createElementVNode("div",x1,[o.createVNode(o.unref(it.QIcon),{name:"drag_indicator",class:"drag-icon"})]),o.createElementVNode("div",I1,[o.renderSlot(l.$slots,"default",{item:u,update:a,index:h},()=>[o.createVNode(pn,{modelValue:u.name,"onUpdate:modelValue":m=>u.name=m,outlined:"",dense:"",class:"content-input",onBlur:m=>a(u)},null,8,["modelValue","onUpdate:modelValue","onBlur"])],!0)]),e.showDelete?(o.openBlock(),o.createElementBlock("div",P1,[o.createVNode(Le,{icon:"delete",flat:"",round:"",dense:"",color:"negative",class:"delete-btn",onClick:m=>r(u.id)},null,8,["onClick"])])):o.createCommentVNode("",!0)])]),_:3},8,["list"])):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:3},o.renderList(e.list,(u,h)=>(o.openBlock(),o.createElementBlock("div",{key:u.id,class:"static-item",style:o.normalizeStyle({background:e.background})},[o.createElementVNode("div",R1,[o.renderSlot(l.$slots,"default",{item:u,update:a,index:h},()=>[o.createVNode(pn,{modelValue:u.name,"onUpdate:modelValue":m=>u.name=m,outlined:"",dense:"",class:"content-input",onBlur:m=>a(u)},null,8,["modelValue","onUpdate:modelValue","onBlur"])],!0)]),e.showDelete?(o.openBlock(),o.createElementBlock("div",M1,[o.createVNode(Le,{icon:"delete",flat:"",round:"",dense:"",color:"negative",class:"delete-btn",onClick:m=>r(u.id)},null,8,["onClick"])])):o.createCommentVNode("",!0)],4))),128)),e.showAdd?(o.openBlock(),o.createElementBlock("div",O1,[o.createVNode(Le,{color:"secondary",label:"Добавить",icon:"add",class:"add-btn",onClick:s})])):o.createCommentVNode("",!0)],16))}}),Kl=U(A1,[["__scopeId","data-v-27edbd1f"]]),T1={class:"del-block_title"},B1={class:"del-block_body"},k1=U(o.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(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",{class:"del-block",style:o.normalizeStyle({margin:e.margin,background:e.background,padding:e.padding})},[o.createElementVNode("div",T1,[o.renderSlot(t.$slots,"title",{},void 0,!0)]),o.createElementVNode("div",B1,[o.renderSlot(t.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-58d048aa"]]),N1={title:"Редактирование",confirmLabel:"Сохранить",cancelLabel:"Отмена",width:"720px",disabled:!1,showConfirm:!0},D1={class:"edit-dialog-header"},F1={class:"edit-dialog-title"},V1={class:"edit-dialog-content"},z1={key:0,class:"edit-dialog-actions"},Zl=U(o.defineComponent({__name:"PEditDialog",props:o.mergeDefaults({modelValue:{type:Boolean},title:{},confirmLabel:{},cancelLabel:{},width:{},disabled:{type:Boolean},showConfirm:{type:Boolean}},N1),emits:["update:modelValue","confirm","close"],setup(e,{expose:t,emit:n}){const i=e,s=n,r=o.ref(!1);o.watch(()=>i.modelValue,h=>{r.value=h},{immediate:!0});const a=async()=>{s("confirm"),c()},c=()=>{s("close"),r.value=!1,s("update:modelValue",!1)},l=()=>{r.value&&c()};t({opened:r,toggle:()=>{r.value=!r.value,s("update:modelValue",r.value)}});const u=async()=>{await o.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 p=o.resolveDirective("close-popup");return o.openBlock(),o.createBlock(Ys,{modelValue:o.unref(r),"onUpdate:modelValue":[m[0]||(m[0]=g=>o.isRef(r)?r.value=g:null),c],position:"top",onKeydown:[o.withKeys(a,["enter"]),o.withKeys(l,["escape"])],onShow:u},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"edit-dialog",style:o.normalizeStyle({width:i.width})},[o.createElementVNode("div",D1,[o.createElementVNode("div",F1,o.toDisplayString(i.title),1),o.withDirectives(o.createVNode(Le,{icon:"close",flat:"",dense:"",round:"",size:"sm"},null,512),[[p]])]),o.createElementVNode("div",V1,[o.renderSlot(h.$slots,"default",{},void 0,!0)]),i.showConfirm?(o.openBlock(),o.createElementBlock("div",z1,[o.withDirectives(o.createVNode(Le,{flat:"",label:i.cancelLabel,size:"sm"},null,8,["label"]),[[p]]),o.createVNode(Le,{flat:"",label:i.confirmLabel,color:"primary",disable:i.disabled,size:"sm",onClick:a},null,8,["label","disable"])])):o.createCommentVNode("",!0)],4)]),_:3},8,["modelValue"])}}}),[["__scopeId","data-v-beb7df93"]]),pa=U(o.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(e,{emit:t}){const n=e,i=t,s=a=>{a.key==="Escape"&&r()};o.onMounted(()=>{document.body.addEventListener("keydown",s)}),o.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",s)});const r=()=>{n.closable&&i("close")};return(a,c)=>{const l=o.resolveComponent("IconClose");return o.openBlock(),o.createElementBlock(o.Fragment,null,[e.show?(o.openBlock(),o.createElementBlock("div",{key:0,class:"blur",onClick:r})):o.createCommentVNode("",!0),e.show?(o.openBlock(),o.createElementBlock("div",{key:1,class:"modal-w",style:o.normalizeStyle({maxWidth:e.width,width:e.width,margin:e.margin,padding:e.padding,top:e.top,maxHeight:e.maxHeight})},[e.closable?(o.openBlock(),o.createElementBlock("div",{key:0,class:"icon-box",onClick:r},[o.createVNode(l,{size:"20px"})])):o.createCommentVNode("",!0),o.renderSlot(a.$slots,"default",{},void 0,!0)],4)):o.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ece06e7d"]]);function L1(e){e.component("CollapseContainer",mv),e.component("CollapseItem",bv),e.component("VerticalCollapseContainer",Cv),e.component("PAdd",xv),e.component("PCard",El),e.component("PCrudList",Kl),e.component("PEditDialog",Zl),e.component("PModal",pa),e.component("PContainer",Iv),e.component("PContainerStickyHead",Rv),e.component("PDel",k1)}const H1={class:"btn-group"},Ql=U(o.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(e,{emit:t}){const n=t,i=o.computed(()=>oe.Form.GetButtons()),s=o.useTemplateRef("fields"),r=async c=>{if(!c.isSubmit){oe.Form.SetChunk(c.GetChunk()),a();return}const l=oe.Form.Validate();if(l.length>0){hn.Notify.Error(l.join("<br/>"));return}n("submit")},a=()=>{if(!s.value)return;const c=s.value[0];c&&c.$refs.input.focus()};return o.onMounted(async()=>{await a()}),o.onBeforeUnmount(()=>{oe.Form.Reset()}),(c,l)=>(o.openBlock(),o.createElementBlock("div",{class:"auth-card",style:o.normalizeStyle({maxWidth:e.width,margin:e.margin,padding:e.padding,background:e.background})},[o.createVNode(Ks,{string:o.unref(oe).Form.GetTitle(),"font-size":"18px"},null,8,["string"]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(oe).Form.GetFields(),d=>(o.openBlock(),o.createBlock(pn,{id:d.id,key:d.id,ref_for:!0,ref_key:"fields",ref:s,modelValue:d.value,"onUpdate:modelValue":u=>d.value=u,autocomplete:"nope",type:d.IsPassword?"password":"text",placeholder:d.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder"]))),128)),o.createElementVNode("div",H1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),(d,u)=>(o.openBlock(),o.createBlock(Le,{id:d.id,key:d.GetChunk(),disabled:o.unref(oe).Form.IsBlock,type:u===0?o.unref(Mt).Success:o.unref(Mt).Primary,skin:"base",text:d.text,margin:"10px 0 0 0",width:"100%",onClick:h=>r(d)},null,8,["id","disabled","type","text","onClick"]))),128))])],4))}}),[["__scopeId","data-v-b315f2c4"]]),U1=o.defineComponent({__name:"PAuthModal",props:{width:{type:String,default:"320px"},margin:{type:String,default:"0"},padding:{type:String,default:"2vw"}},emits:["submit"],setup(e){const t=()=>{oe.Form.Reset(),oe.Modal.Close()};return(n,i)=>(o.openBlock(),o.createBlock(pa,{show:o.unref(oe).Modal.Visible,closable:o.unref(oe).Modal.Closable,width:e.width,padding:e.padding,onClose:t},{default:o.withCtx(()=>[o.createVNode(Ql,{margin:e.margin,padding:"0",onSubmit:i[0]||(i[0]=s=>n.$emit("submit"))},null,8,["margin"])]),_:1},8,["show","closable","width","padding"]))}}),j1={class:"field"},G1=U(o.defineComponent({__name:"PNameEdit",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(e,{emit:t}){const n=e,i=t,s=o.ref(!1),r=o.ref(),a=o.ref(n.withName.name),c=o.ref(!1),l=()=>{c.value=!1},d=async()=>{a.value.trim(),n.withName.setName&&n.withName.setName(a.value),s.value=!s.value,i("submit")};return(u,h)=>{const m=o.resolveComponent("PString"),p=o.resolveComponent("PInput"),g=o.resolveComponent("InfoItem"),v=o.resolveComponent("PButton"),b=o.resolveComponent("el-form");return o.openBlock(),o.createBlock(b,{ref_key:"form",ref:r,style:{width:"100%"}},{default:o.withCtx(()=>[o.createVNode(g,{title:"Название","show-save-dialog":c.value,icon:"edit-title","with-hover":!0,close:s.value,width:"100%",onKeyupEnter:d,onAfterClose:l},{"open-inside-content":o.withCtx(()=>[o.createVNode(g,{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:o.withCtx(()=>[o.createElementVNode("div",j1,[o.createVNode(p,{modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=S=>a.value=S),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])])]),_:1}),o.createVNode(v,{type:"admin",color:"blue",text:"Сохранить",onClick:d})]),default:o.withCtx(()=>[a.value.length?(o.openBlock(),o.createBlock(m,{key:0,string:a.value.length>60?a.value.slice(0,60)+"...":a.value},null,8,["string"])):(o.openBlock(),o.createBlock(m,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:1},8,["show-save-dialog","close"])]),_:1},512)}}}),[["__scopeId","data-v-4f7966cb"]]),W1=["onClick"],X1=U(o.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(e,{emit:t}){const n=e,i=t,s=o.ref(window.innerWidth),r=o.ref(),a=o.ref(Number(n.tabHeight.replace(/[^+\d]/g,""))),c=()=>{s.value=window.innerWidth,a.value=r.value?r.value.clientHeight:Number(n.tabHeight.replace(/[^+\d]/g,""))};o.onMounted(()=>window.addEventListener("resize",c)),o.onUnmounted(()=>window.removeEventListener("resize",c));const l=o.computed(()=>`calc(100% - ${a.value}px + 1px)`);o.onBeforeMount(()=>{n.menus.Select()});const d=u=>{n.menus.Select(u),i("select")};return(u,h)=>(o.openBlock(),o.createElementBlock("div",{class:"mainblock",style:o.normalizeStyle({height:`calc(100% - ${e.outTopMargin} - ${e.tabHeight}`,margin:e.margin,borderRadius:e.borderRadius})},[o.createElementVNode("div",{ref_key:"menuRef",ref:r,class:"top-menu",style:o.normalizeStyle({gridTemplateColumns:`repeat(auto-fit, minmax(${e.minMenuItemWidth}, 1fr))`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.menus.items,(m,p)=>(o.openBlock(),o.createElementBlock("div",{key:p},[o.createElementVNode("div",{class:o.normalizeClass({"selected-tab":p===e.menus.idx,tab:p!==e.menus.idx}),style:o.normalizeStyle({minHeight:e.tabHeight,maxHeight:e.tabHeight}),onClick:g=>d(p)},o.toDisplayString(m.name),15,W1)]))),128))],4),o.createElementVNode("div",{class:"body-container",style:o.normalizeStyle({background:e.background,height:o.unref(l)})},[o.renderSlot(u.$slots,"default",{},()=>[e.menus.idx>-1?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.menus.GetComponent()),{key:0})):o.createCommentVNode("",!0)],!0)],4)],4))}}),[["__scopeId","data-v-caa5b5d8"]]),Y1=["id"],K1=["for"],Z1={class:"left-field"},Q1=["href","download"],J1={key:1,class:"text-field__input"},_1={class:"right-field"},q1=o.defineComponent({__name:"PUploaderFile",props:{fileInfo:{type:Object,required:!1,default:new se},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(e,{emit:t}){const n=e,i=t,s=$t.GUID(),r=$t.GUID(),a=()=>{const d=document.getElementById(s);if(!d.files)return;const u=d.files[0];if(!u)return;if(!l(u.name)){Xe.Error(`Загруженный файл должен быть в одном из форматов: ${n.formats.join(", ")}`);return}const h=new se;h.setFile(u),h.url=URL.createObjectURL(u),i("upload",h)},c=()=>{i("remove")};o.onMounted(()=>{const d=document.getElementById(r);d&&(d.onclick=()=>{var u;return(u=document.getElementById(s))==null?void 0:u.click()})});const l=d=>{let u=Fr.Get(d);return!!n.formats.includes(u.toLowerCase())};return(d,u)=>{const h=o.resolveComponent("PString"),m=o.resolveComponent("PFlex"),p=o.resolveComponent("PButton");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("input",{id:o.unref(s),type:"file",hidden:"",onChange:a},null,40,Y1),o.createElementVNode("div",{class:"text-field",style:o.normalizeStyle({margin:e.margin,padding:e.padding})},[e.label?(o.openBlock(),o.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},o.toDisplayString(e.label),9,K1)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"field",style:o.normalizeStyle({borderColor:e.borderColor})},[o.createElementVNode("div",Z1,[o.createVNode(m,null,{default:o.withCtx(()=>[o.renderSlot(d.$slots,"default",{},void 0,!0),o.createVNode(h,{string:e.placeholder,"font-size":"var(--font-size-default:)",color:"var(--input-label-color)",margin:"0 10px 0 0"},null,8,["string"])]),_:3})]),e.fileInfo&&e.fileInfo.originalName?(o.openBlock(),o.createElementBlock("div",{key:0,class:"text-field__input",style:o.normalizeStyle({color:e.color})},[o.createElementVNode("a",{href:e.fileInfo.getFileUrl(),target:"_blank",download:e.fileInfo.originalName},[o.createElementVNode("div",null,o.toDisplayString(e.fileInfo.originalName),1)],8,Q1),o.createVNode(p,{skin:"text",type:"del",onClick:c},{default:o.withCtx(()=>[o.createVNode(Cl,{size:"20px",margin:"0 5px"})]),_:1})],4)):(o.openBlock(),o.createElementBlock("div",J1,[o.createVNode(h,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),o.createElementVNode("div",_1,[o.createVNode(p,{id:o.unref(r),skin:"text",type:"success","data-test":"upload-btn",text:e.fileInfo&&e.fileInfo.originalName?"Обновить":"Загрузить",margin:"0"},null,8,["id","text"])])],4)],4)],64)}}}),$1=U(q1,[["__scopeId","data-v-8b73ee22"]]);function Jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jl(Object(n),!0).forEach(function(i){De(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ty(e,t){if(e==null)return{};var n,i,s=function(a,c){if(a==null)return{};var l,d,u={},h=Object.keys(a);for(d=0;d<h.length;d++)l=h[d],c.indexOf(l)>=0||(u[l]=a[l]);return u}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function zn(e){return function(t){if(Array.isArray(t))return ga(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return ga(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return ga(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
32
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ga(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var _l,ey,Zi,qt=(_l=function(e){/*!
|
|
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){o=a.indexOf(":"),i=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!i||e[i]&&Al[i])&&(i==="set-cookie"?e[i]?e[i].push(r):e[i]=[r]:e[i]=e[i]?e[i]+", "+r:r)}),e};function vl(t){let e=0,i=t.length;for(;e<i;){const r=t.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;i>e;){const r=t.charCodeAt(i-1);if(r!==9&&r!==32)break;i-=1}return e===0&&i===t.length?t:t.slice(e,i)}const Vl=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),zl=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Li(t,e){return p.isArray(t)?t.map(i=>Li(i,e)):vl(String(t).replace(e,""))}const Tl=t=>Li(t,Vl),Ol=t=>Li(t,zl);function uo(t){const e=Object.create(null);return p.forEach(t.toJSON(),(i,r)=>{e[r]=Ol(i)}),e}const fo=Symbol("internals");function mn(t){return t&&String(t).trim().toLowerCase()}function Qn(t){return t===!1||t==null?t:p.isArray(t)?t.map(Qn):Tl(String(t))}function Fl(t){const e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=i.exec(t);)e[r[1]]=r[2];return e}const Dl=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Hi(t,e,i,r,o){if(p.isFunction(r))return r.call(this,e,i);if(o&&(e=i),!!p.isString(e)){if(p.isString(r))return e.indexOf(r)!==-1;if(p.isRegExp(r))return r.test(e)}}function Ll(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,i,r)=>i.toUpperCase()+r)}function Hl(t,e){const i=p.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+i,{__proto__:null,value:function(o,s,a){return this[r].call(this,e,o,s,a)},configurable:!0})})}let Se=class{constructor(e){e&&this.set(e)}set(e,i,r){const o=this;function s(d,c,u){const f=mn(c);if(!f)return;const h=p.findKey(o,f);(!h||o[h]===void 0||u===!0||u===void 0&&o[h]!==!1)&&(o[h||c]=Qn(d))}const a=(d,c)=>p.forEach(d,(u,f)=>s(u,f,c));if(p.isPlainObject(e)||e instanceof this.constructor)a(e,i);else if(p.isString(e)&&(e=e.trim())&&!Dl(e))a(Nl(e),i);else if(p.isObject(e)&&p.isSafeIterable(e)){let d=Object.create(null),c,u;for(const f of e){if(!p.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],p.hasOwnProp(d,u)?(c=d[u],d[u]=p.isArray(c)?[...c,f[1]]:[c,f[1]]):d[u]=f[1]}a(d,i)}else e!=null&&s(i,e,r);return this}get(e,i){if(e=mn(e),e){const r=p.findKey(this,e);if(r){const o=this[r];if(!i)return o;if(i===!0)return Fl(o);if(p.isFunction(i))return i.call(this,o,r);if(p.isRegExp(i))return i.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,i){if(e=mn(e),e){const r=p.findKey(this,e);return!!(r&&this[r]!==void 0&&(!i||Hi(this,this[r],r,i)))}return!1}delete(e,i){const r=this;let o=!1;function s(a){if(a=mn(a),a){const d=p.findKey(r,a);d&&(!i||Hi(r,r[d],d,i))&&(delete r[d],o=!0)}}return p.isArray(e)?e.forEach(s):s(e),o}clear(e){const i=Object.keys(this);let r=i.length,o=!1;for(;r--;){const s=i[r];(!e||Hi(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const i=this,r={};return p.forEach(this,(o,s)=>{const a=p.findKey(r,s);if(a){i[a]=Qn(o),delete i[s];return}const d=e?Ll(s):String(s).trim();d!==s&&delete i[s],i[d]=Qn(o),r[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const i=Object.create(null);return p.forEach(this,(r,o)=>{r!=null&&r!==!1&&(i[o]=e&&p.isArray(r)?r.join(", "):r)}),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 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(zo).join(`
|
|
18
|
+
`):" "+zo(a[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+d,R.ERR_NOT_SUPPORT)}return o}const To={getAdapter:Ic,adapters:Xi};function Yi(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new gn(null,t)}function Oo(t){return Yi(t),t.headers=Se.from(t.headers),t.data=Zi.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),To.getAdapter(t.adapter||pn.adapter,t)(t).then(function(r){Yi(t),t.response=r;try{r.data=Zi.call(t,t.transformResponse,r)}finally{delete t.response}return r.headers=Se.from(r.headers),r},function(r){if(!ko(r)&&(Yi(t),r&&r.response)){t.response=r.response;try{r.response.data=Zi.call(t,t.transformResponse,r.response)}finally{delete t.response}r.response.headers=Se.from(r.response.headers)}return Promise.reject(r)})}const ei={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ei[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Fo={};ei.transitional=function(e,i,r){function o(s,a){return"[Axios v"+Qi+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,d)=>{if(e===!1)throw new R(o(a," has been removed"+(i?" in "+i:"")),R.ERR_DEPRECATED);return i&&!Fo[a]&&(Fo[a]=!0,console.warn(o(a," has been deprecated since v"+i+" and will be removed in the near future"))),e?e(s,a,d):!0}},ei.spelling=function(e){return(i,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Pc(t,e,i){if(typeof t!="object"||t===null)throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],a=Object.prototype.hasOwnProperty.call(e,s)?e[s]:void 0;if(a){const d=t[s],c=d===void 0||a(d,s,t);if(c!==!0)throw new R("option "+s+" must be "+c,R.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new R("Unknown option "+s,R.ERR_BAD_OPTION)}}const ti={assertOptions:Pc,validators:ei},ke=ti.validators;let Mt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new wo,response:new wo}}async request(e,i){try{return await this._request(e,i)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=(()=>{if(!o.stack)return"";const a=o.stack.indexOf(`
|
|
19
|
+
`);return a===-1?"":o.stack.slice(a+1)})();try{if(!r.stack)r.stack=s;else if(s){const a=s.indexOf(`
|
|
20
|
+
`),d=a===-1?-1:s.indexOf(`
|
|
21
|
+
`,a+1),c=d===-1?"":s.slice(d+1);String(r.stack).endsWith(c)||(r.stack+=`
|
|
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
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Cr(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,r=new Array(e);i<e;i++)r[i]=t[i];return r}var zs,eg,pi,le=(zs=function(t){/*!
|
|
33
24
|
Copyright (c) 2018 Jed Watson.
|
|
34
25
|
Licensed under the MIT License (MIT), see
|
|
35
26
|
http://jedwatson.github.io/classnames
|
|
36
|
-
*/(function(){var
|
|
27
|
+
*/(function(){var e={}.hasOwnProperty;function i(){for(var r=[],o=0;o<arguments.length;o++){var s=arguments[o];if(s){var a=typeof s;if(a==="string"||a==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var d=i.apply(null,s);d&&r.push(d)}}else if(a==="object")if(s.toString===Object.prototype.toString)for(var c in s)e.call(s,c)&&s[c]&&r.push(c);else r.push(s.toString())}}return r.join(" ")}t.exports?(i.default=i,t.exports=i):window.classNames=i})()},zs(pi={path:eg,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e==null&&pi.path)}},pi.exports),pi.exports),qe=function(t){return function(e,i){if(!e)return t;var r;typeof e=="string"?r=e:i=e;var o=t;return r&&(o+="__"+r),o+(i?Object.keys(i).reduce(function(s,a){var d=i[a];return d&&(s+=" "+(typeof d=="boolean"?o+"--"+a:o+"--"+a+"_"+d)),s},""):"")}};function Sr(t,e,i){var r,o,s,a,d;function c(){var f=Date.now()-a;f<e&&f>=0?r=setTimeout(c,e-f):(r=null,i||(d=t.apply(s,o),s=o=null))}e==null&&(e=100);var u=function(){s=this,o=arguments,a=Date.now();var f=i&&!r;return r||(r=setTimeout(c,e)),f&&(d=t.apply(s,o),s=o=null),d};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(d=t.apply(s,o),s=o=null,clearTimeout(r),r=null)},u}Sr.debounce=Sr;var kr=Sr,O=function(){return O=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},O.apply(this,arguments)};/*! *****************************************************************************
|
|
37
28
|
Copyright (c) Microsoft Corporation.
|
|
38
29
|
|
|
39
30
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -46,5 +37,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
46
37
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
47
38
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
48
39
|
PERFORMANCE OF THIS SOFTWARE.
|
|
49
|
-
***************************************************************************** */function ql(e,t){var n,i;return e&&t?(n=""+e+t[0].toUpperCase()+t.slice(1),i=e+"-"+t):(n=e||t,i=e||t),{name:n,classname:i}}function $l(e){return/^blob:/.test(e)}function tc(e){return $l(e)||function(t){return/^data:/.test(t)}(e)}function ho(e){return!!(e&&e.constructor&&e.call&&e.apply)}function ee(e){return e===void 0}function Qi(e){return typeof e=="object"&&e!==null}function ba(e,t,n){var i={};return Qi(e)?(Object.keys(t).forEach(function(s){ee(e[s])?i[s]=t[s]:Qi(t[s])?Qi(e[s])?i[s]=ba(e[s],t[s],n[s]):i[s]=e[s]?t[s]:n[s]:t[s]===!0||t[s]===!1?i[s]=!!e[s]:i[s]=e[s]}),i):e?t:n}function Ji(e){var t=Number(e);return Number.isNaN(t)?e:t}function ec(e){return typeof(e=="number"||function(t){return typeof t=="object"&&t!==null}(e)&&toString.call(e)=="[object Number]")&&!nc(e)}function nc(e){return e!=e}function oc(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}var Ko=function(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.type="manipulateImage",this.move=e,this.scale=t},ny=function(e,t){t===void 0&&(t={}),this.type="resize",this.directions=e,this.params=t},Sa=function(e){this.type="move",this.directions=e},oy=function(){function e(t,n,i,s,r){this.type="drag",this.nativeEvent=t,this.position=i,this.previousPosition=s,this.element=n,this.anchor=r}return e.prototype.shift=function(){var t=this,n=t.element,i=t.anchor,s=t.position;if(n){var r=n.getBoundingClientRect(),a=r.left,c=r.top;return{left:s.left-a-i.left,top:s.top-c-i.top}}return{left:0,top:0}},e}(),wa={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(e){e.cancelable&&!this.disabled&&e.touches.length===1&&(this.touches=zn(e.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),e.touches.length&&this.initAnchor(this.touches.reduce(function(t,n){return{clientX:t.clientX+n.clientX/e.touches.length,clientY:t.clientY+n.clientY/e.touches.length}},{clientX:0,clientY:0})),e.preventDefault&&e.preventDefault(),e.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(e){this.touches.length&&(this.processMove(e,e.touches),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},onMouseDown:function(e){if(!this.disabled){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.initAnchor(t),e.stopPropagation()}},onMouseMove:function(e){this.touches.length&&(this.processMove(e,[{fake:!0,clientX:e.clientX,clientY:e.clientY}]),e.preventDefault&&e.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(e){var t=this.$refs.draggable.getBoundingClientRect(),n=t.left,i=t.right,s=t.bottom,r=t.top;this.anchor={left:e.clientX-n,top:e.clientY-r,bottom:s-e.clientY,right:i-e.clientX}},processMove:function(e,t){var n=zn(t);if(this.touches.length){if(this.touches.length===1&&n.length===1){var i=this.$refs.draggable;this.$emit("drag",new oy(e,i,{left:n[0].clientX,top:n[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=n}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};wa.render=function(e,t,n,i,s,r){return o.openBlock(),o.createBlock("div",{ref:"draggable",class:n.classname,onTouchstart:t[1]||(t[1]=function(){return r.onTouchStart&&r.onTouchStart.apply(r,arguments)}),onMousedown:t[2]||(t[2]=function(){return r.onMouseDown&&r.onMouseDown.apply(r,arguments)}),onMouseover:t[3]||(t[3]=function(){return r.onMouseOver&&r.onMouseOver.apply(r,arguments)}),onMouseleave:t[4]||(t[4]=function(){return r.onMouseLeave&&r.onMouseLeave.apply(r,arguments)})},[o.renderSlot(e.$slots,"default")],34)};var Ca=Ge("vue-handler-wrapper"),ic={name:"HandlerWrapper",components:{DraggableElement:wa},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var e;if(this.horizontalPosition||this.verticalPosition){var t,n=ql(this.horizontalPosition,this.verticalPosition);e=Ca((De(t={},n.classname,!0),De(t,"disabled",this.disabled),t))}else e=Ca({disabled:this.disabled});return{root:e,draggable:Ca("draggable")}}},emits:["leave","enter","drag","drag-end"]};ic.render=function(e,t,n,i,s,r){var a=o.resolveComponent("DraggableElement");return o.openBlock(),o.createBlock("div",{class:r.classes.root},[o.createVNode(a,{class:r.classes.draggable,onDrag:t[1]||(t[1]=function(c){return e.$emit("drag",c)}),onDragEnd:t[2]||(t[2]=function(c){return e.$emit("drag-end")}),onLeave:t[3]||(t[3]=function(c){return e.$emit("leave")}),onEnter:t[4]||(t[4]=function(c){return e.$emit("enter")})},{default:o.withCtx(function(){return[o.renderSlot(e.$slots,"default")]}),_:3},8,["class"])],2)};var iy=Ge("vue-line-wrapper"),sc={name:"LineWrapper",components:{DraggableElement:wa},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var e;return iy((De(e={},this.position,!0),De(e,"disabled",this.disabled),e))}},emits:["leave","enter","drag","drag-end"]};sc.render=function(e,t,n,i,s,r){var a=o.resolveComponent("DraggableElement");return o.openBlock(),o.createBlock(a,{class:r.classname,onDrag:t[1]||(t[1]=function(c){return e.$emit("drag",c)}),onDragEnd:t[2]||(t[2]=function(c){return e.$emit("drag-end")}),onLeave:t[3]||(t[3]=function(c){return e.$emit("leave")}),onEnter:t[4]||(t[4]=function(c){return e.$emit("enter")})},{default:o.withCtx(function(){return[o.renderSlot(e.$slots,"default")]}),_:3},8,["class"])};var qe=["left","right","top","bottom"],sy=["left","right"],ay=["top","bottom"],ry=["left","top"],ly=["fill-area","fit-area","stencil","none"],ac={left:0,top:0,width:0,height:0};function rc(e,t,n){return!(n=n||["width","height","left","top"]).some(function(i){return e[i]!==t[i]})}function $e(e){return{left:e.left,top:e.top,right:e.left+e.width,bottom:e.top+e.height}}function mo(e,t){return{left:e.left-t.left,top:e.top-t.top}}function le(e){return{left:e.left+e.width/2,top:e.top+e.height/2}}function Zo(e,t){var n={left:0,top:0,right:0,bottom:0};return qe.forEach(function(i){var s=t[i],r=$e(e)[i];n[i]=s!==void 0&&r!==void 0?i==="left"||i==="top"?Math.max(0,s-r):Math.max(0,r-s):0}),n}function tn(e,t){return{left:e.left-t.left,top:e.top-t.top,width:e.width+t.left+t.right,height:e.height+t.top+t.bottom}}function _i(e){return{left:-e.left,top:-e.top}}function Ce(e,t){return nt(nt({},e),{left:e.left+t.left,top:e.top+t.top})}function Fe(e,t,n,i){if(t!==1){if(n){var s=le(e);return{width:e.width*t,height:e.height*t,left:e.left+e.width*(1-t)/2+(n.left-s.left)*(1-t),top:e.top+e.height*(1-t)/2+(n.top-s.top)*(1-t)}}return{width:e.width*t,height:e.height*t,left:e.left+e.width*(1-t)/2,top:e.top+e.height*(1-t)/2}}return e}function xt(e){return e.width/e.height}function po(e,t){return Math.min(t.right!==void 0&&t.left!==void 0?(t.right-t.left)/e.width:1/0,t.bottom!==void 0&&t.top!==void 0?(t.bottom-t.top)/e.height:1/0)}function go(e,t){var n={left:0,top:0},i=Zo(e,t);return i.left&&i.left>0?n.left=i.left:i.right&&i.right>0&&(n.left=-i.right),i.top&&i.top>0?n.top=i.top:i.bottom&&i.bottom>0&&(n.top=-i.bottom),n}function Ea(e,t){var n;return t.minimum&&e<t.minimum?n=t.minimum:t.maximum&&e>t.maximum&&(n=t.maximum),n}function lc(e,t){var n=xt(e),i=xt(t);return t.width<1/0&&t.height<1/0?n>i?{width:t.width,height:t.width/n}:{width:t.height*n,height:t.height}:t.width<1/0?{width:t.width,height:t.width/n}:t.height<1/0?{width:t.height*n,height:t.height}:e}function cc(e,t){var n=t*Math.PI/180;return{width:Math.abs(e.width*Math.cos(n))+Math.abs(e.height*Math.sin(n)),height:Math.abs(e.width*Math.sin(n))+Math.abs(e.height*Math.cos(n))}}function bn(e,t){var n=t*Math.PI/180;return{left:e.left*Math.cos(n)-e.top*Math.sin(n),top:e.left*Math.sin(n)+e.top*Math.cos(n)}}function qi(e,t){var n=Zo(ce(e,t),t);return n.left+n.right+n.top+n.bottom?n.left+n.right>n.top+n.bottom?Math.min((e.width+n.left+n.right)/e.width,po(e,t)):Math.min((e.height+n.top+n.bottom)/e.height,po(e,t)):1}function ce(e,t,n){n===void 0&&(n=!1);var i=go(e,t);return Ce(e,n?_i(i):i)}function xa(e){return{width:e.right!==void 0&&e.left!==void 0?e.right-e.left:1/0,height:e.bottom!==void 0&&e.top!==void 0?e.bottom-e.top:1/0}}function cy(e,t){return nt(nt({},e),{minWidth:Math.min(t.width,e.minWidth),minHeight:Math.min(t.height,e.minHeight),maxWidth:Math.min(t.width,e.maxWidth),maxHeight:Math.min(t.height,e.maxHeight)})}function dc(e,t,n){n===void 0&&(n=!0);var i={};return qe.forEach(function(s){var r=e[s],a=t[s];r!==void 0&&a!==void 0?i[s]=s==="left"||s==="top"?n?Math.max(r,a):Math.min(r,a):n?Math.min(r,a):Math.max(r,a):a!==void 0?i[s]=a:r!==void 0&&(i[s]=r)}),i}function $i(e,t){return dc(e,t,!0)}function uc(e){var t=e.size,n=e.aspectRatio,i=e.ignoreMinimum,s=e.sizeRestrictions;return!!((t.correctRatio||xt(t)>=n.minimum&&xt(t)<=n.maximum)&&t.height<=s.maxHeight&&t.width<=s.maxWidth&&t.width&&t.height&&(i||t.height>=s.minHeight&&t.width>=s.minWidth))}function fc(e,t){return Math.pow(e.width-t.width,2)+Math.pow(e.height-t.height,2)}function rn(e){var t=e.width,n=e.height,i=e.sizeRestrictions,s={minimum:e.aspectRatio&&e.aspectRatio.minimum||0,maximum:e.aspectRatio&&e.aspectRatio.maximum||1/0},r={width:Math.max(i.minWidth,Math.min(i.maxWidth,t)),height:Math.max(i.minHeight,Math.min(i.maxHeight,n))};function a(d,u){return u===void 0&&(u=!1),d.reduce(function(h,m){return uc({size:m,aspectRatio:s,sizeRestrictions:i,ignoreMinimum:u})&&(!h||fc(m,{width:t,height:n})<fc(h,{width:t,height:n}))?m:h},null)}var c=[];s&&[s.minimum,s.maximum].forEach(function(d){d&&c.push({width:r.width,height:r.width/d,correctRatio:!0},{width:r.height*d,height:r.height,correctRatio:!0})}),uc({size:r,aspectRatio:s,sizeRestrictions:i})&&c.push(r);var l=a(c)||a(c,!0);return l&&{width:l.width,height:l.height}}function Ia(e){var t=e.event,n=e.coordinates,i=e.positionRestrictions,s=i===void 0?{}:i,r=Ce(n,t.directions);return Ce(r,go(r,s))}function dy(e){var t=e.coordinates,n=e.transform,i=e.imageSize,s=e.sizeRestrictions,r=e.positionRestrictions,a=e.aspectRatio,c=e.visibleArea,l=function(u,h){return Ia({coordinates:u,positionRestrictions:r,event:new Sa({left:h.left-u.left,top:h.top-u.top})})},d=nt({},t);return(Array.isArray(n)?n:[n]).forEach(function(u){var h={};ee((h=typeof u=="function"?u({coordinates:d,imageSize:i,visibleArea:c}):u).width)&&ee(h.height)||(d=function(m,p){var g=nt(nt(nt({},m),rn({width:p.width,height:p.height,sizeRestrictions:s,aspectRatio:a})),{left:0,top:0});return l(g,{left:m.left,top:m.top})}(d,nt(nt({},d),h))),ee(h.left)&&ee(h.top)||(d=l(d,nt(nt({},d),h)))}),d}function uy(e){e.event;var t=e.getAreaRestrictions,n=e.boundaries,i=e.coordinates,s=e.visibleArea;e.aspectRatio;var r=e.stencilSize,a=e.sizeRestrictions,c=e.positionRestrictions;e.stencilReference;var l,d,u,h=nt({},i),m=nt({},s),p=nt({},r);l=xt(p),d=xt(h),u===void 0&&(u=.001),(l===0||d===0?Math.abs(d-l)<u:Math.abs(d/l)<1+u&&Math.abs(d/l)>1-u)||(h=nt(nt({},h),rn({sizeRestrictions:a,width:h.width,height:h.height,aspectRatio:{minimum:xt(p),maximum:xt(p)}})));var g=qi(m=Fe(m,h.width*n.width/(m.width*p.width)),t({visibleArea:m,type:"resize"}));return g!==1&&(m=Fe(m,g),h=Fe(h,g)),m=ce(m=Ce(m,mo(le(h),le(m))),t({visibleArea:m,type:"move"})),{coordinates:h=ce(h,$i($e(m),c)),visibleArea:m}}function fy(e){var t=e.event,n=e.getAreaRestrictions,i=e.boundaries,s=e.coordinates,r=e.visibleArea;e.aspectRatio,e.stencilSize,e.sizeRestrictions;var a=e.positionRestrictions;e.stencilReference;var c=nt({},s),l=nt({},r);if(s&&r&&t.type!=="manipulateImage"){var d={width:0,height:0};l.width,i.width,xt(i)>xt(c)?(d.height=.8*i.height,d.width=d.height*xt(c)):(d.width=.8*i.width,d.height=d.width*xt(c));var u=qi(l=Fe(l,c.width*i.width/(l.width*d.width)),n({visibleArea:l,type:"resize"}));l=Fe(l,u),u!==1&&(d.height/=u,d.width/=u),l=ce(l=Ce(l,mo(le(c),le(l))),n({visibleArea:l,type:"move"})),c=ce(c,$i($e(l),a))}return{coordinates:c,visibleArea:l}}function hy(e){var t=e.event,n=e.coordinates,i=e.visibleArea,s=e.getAreaRestrictions,r=nt({},i),a=nt({},n);if(t.type==="setCoordinates"){var c=Math.max(0,a.width-r.width),l=Math.max(0,a.height-r.height);c>l?r=Fe(r,Math.min(a.width/r.width,po(r,s({visibleArea:r,type:"resize"})))):l>c&&(r=Fe(r,Math.min(a.height/r.height,po(r,s({visibleArea:r,type:"resize"}))))),r=ce(r=Ce(r,_i(go(a,$e(r)))),s({visibleArea:r,type:"move"}))}return{visibleArea:r,coordinates:a}}function my(e){var t=e.imageSize,n=e.visibleArea,i=e.coordinates,s=n||t;return{left:(n?n.left:0)+s.width/2-i.width/2,top:(n?n.top:0)+s.height/2-i.height/2}}function py(e){var t=e.imageSize,n=e.visibleArea,i=e.aspectRatio,s=e.sizeRestrictions,r=n||t,a=Math.min(i.maximum||1/0,Math.max(i.minimum||0,xt(r))),c=r.width<r.height?{width:.8*r.width,height:.8*r.width/a}:{height:.8*r.height,width:.8*r.height*a};return rn(nt(nt({},c),{aspectRatio:i,sizeRestrictions:s}))}function gy(e){var t,n,i=e.imageSize,s=e.visibleArea,r=e.boundaries,a=e.aspectRatio,c=e.sizeRestrictions,l=e.stencilSize,d=s||i;return xt(d)>xt(r)?n=(t=l.height*d.height/r.height)*xt(l):t=(n=l.width*d.width/r.width)/xt(l),rn({width:n,height:t,aspectRatio:a,sizeRestrictions:c})}function vy(e){var t=e.getAreaRestrictions,n=e.coordinates,i=e.imageSize,s=xt(e.boundaries);if(n){var r={height:Math.max(n.height,i.height),width:Math.max(n.width,i.width)},a=lc({width:xt(r)>s?r.width:r.height*s,height:xt(r)>s?r.width/s:r.height},xa(t())),c={left:n.left+n.width/2-a.width/2,top:n.top+n.height/2-a.height/2,width:a.width,height:a.height},l=Zo(n,$e(nt({left:0,top:0},i))),d={};return!l.left&&!l.right&&c.width<=i.width&&(d.left=0,d.right=i.width),!l.top&&!l.bottom&&c.height<=i.height&&(d.top=0,d.bottom=i.height),ce(c,d)}var u=xt(i);return a={height:u>s?i.height:i.width/s,width:u>s?i.height*s:i.width},{left:i.width/2-a.width/2,top:i.height/2-a.height/2,width:a.width,height:a.height}}function ts(e,t){return dc(e,$e(t))}function yy(e){var t=e.event,n=e.coordinates,i=e.visibleArea,s=e.sizeRestrictions,r=e.getAreaRestrictions,a=e.positionRestrictions,c=e.adjustStencil,l=t.scale,d=t.move,u=nt({},i),h=nt({},n),m=1,p=1,g=l.factor&&Math.abs(l.factor-1)>.001;u=Ce(u,{left:d.left||0,top:d.top||0});var v={stencil:{minimum:Math.max(s.minWidth?s.minWidth/h.width:0,s.minHeight?s.minHeight/h.height:0),maximum:Math.min(s.maxWidth?s.maxWidth/h.width:1/0,s.maxHeight?s.maxHeight/h.height:1/0,po(h,a))},area:{maximum:po(u,r({visibleArea:u,type:"resize"}))}};l.factor&&g&&(l.factor<1?(p=Math.max(l.factor,v.stencil.minimum))>1&&(p=1):l.factor>1&&(p=Math.min(l.factor,Math.min(v.area.maximum,v.stencil.maximum)))<1&&(p=1)),p&&(u=Fe(u,p,l.center));var b=n.left-i.left,S=i.width+i.left-(n.width+n.left),C=n.top-i.top,x=i.height+i.top-(n.height+n.top);return u=ce(u=Ce(u,go(u,{left:a.left!==void 0?a.left-b*p:void 0,top:a.top!==void 0?a.top-C*p:void 0,bottom:a.bottom!==void 0?a.bottom+x*p:void 0,right:a.right!==void 0?a.right+S*p:void 0})),r({visibleArea:u,type:"move"})),h.width=h.width*p,h.height=h.height*p,h.left=u.left+b*p,h.top=u.top+C*p,h=ce(h,$i($e(u),a)),l.factor&&g&&c&&(l.factor>1?m=Math.min(v.area.maximum,l.factor)/p:l.factor<1&&(m=Math.max(h.height/u.height,h.width/u.width,l.factor/p)),m!==1&&(u=Ce(u=ce(u=Fe(u,m,l.factor>1?l.center:le(h)),r({visibleArea:u,type:"move"})),_i(go(h,$e(u)))))),{coordinates:h,visibleArea:u}}function by(e){var t=e.aspectRatio,n=e.getAreaRestrictions,i=e.coordinates,s=e.visibleArea,r=e.sizeRestrictions,a=e.positionRestrictions,c=e.imageSize,l=e.previousImageSize,d=e.angle,u=nt({},i),h=nt({},s),m=bn(le(nt({left:0,top:0},l)),d);return(u=nt(nt({},rn({sizeRestrictions:r,aspectRatio:t,width:u.width,height:u.height})),bn(le(u),d))).left-=m.left-c.width/2+u.width/2,u.top-=m.top-c.height/2+u.height/2,h=Fe(h,qi(h,n({visibleArea:h,type:"resize"}))),{coordinates:u=ce(u,a),visibleArea:h=ce(h=Ce(h,mo(le(u),le(i))),n({visibleArea:h,type:"move"}))}}function Sy(e){var t=e.flip,n=e.previousFlip,i=e.rotate,s=e.getAreaRestrictions,r=e.coordinates,a=e.visibleArea,c=e.imageSize,l=nt({},r),d=nt({},a),u=n.horizontal!==t.horizontal,h=n.vertical!==t.vertical;if(u||h){var m=bn({left:c.width/2,top:c.height/2},-i),p=bn(le(l),-i),g=bn({left:u?m.left-(p.left-m.left):p.left,top:h?m.top-(p.top-m.top):p.top},i);l=Ce(l,mo(g,le(l))),p=bn(le(d),-i),d=ce(d=Ce(d,mo(g=bn({left:u?m.left-(p.left-m.left):p.left,top:h?m.top-(p.top-m.top):p.top},i),le(d))),s({visibleArea:d,type:"move"}))}return{coordinates:l,visibleArea:d}}function hc(e){var t=e.directions,n=e.coordinates,i=e.positionRestrictions,s=i===void 0?{}:i,r=e.sizeRestrictions,a=e.preserveRatio,c=e.compensate,l=nt({},t),d=tn(n,l).width,u=tn(n,l).height;d<0&&(l.left<0&&l.right<0?(l.left=-(n.width-r.minWidth)/(l.left/l.right),l.right=-(n.width-r.minWidth)/(l.right/l.left)):l.left<0?l.left=-(n.width-r.minWidth):l.right<0&&(l.right=-(n.width-r.minWidth))),u<0&&(l.top<0&&l.bottom<0?(l.top=-(n.height-r.minHeight)/(l.top/l.bottom),l.bottom=-(n.height-r.minHeight)/(l.bottom/l.top)):l.top<0?l.top=-(n.height-r.minHeight):l.bottom<0&&(l.bottom=-(n.height-r.minHeight)));var h=Zo(tn(n,l),s);c&&(h.left&&h.left>0&&h.right===0?(l.right+=h.left,l.left-=h.left):h.right&&h.right>0&&h.left===0&&(l.left+=h.right,l.right-=h.right),h.top&&h.top>0&&h.bottom===0?(l.bottom+=h.top,l.top-=h.top):h.bottom&&h.bottom>0&&h.top===0&&(l.top+=h.bottom,l.bottom-=h.bottom),h=Zo(tn(n,l),s));var m={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(qe.forEach(function(v){var b=h[v];b&&l[v]&&(m[v]=Math.max(0,1-b/l[v]))}),a){var p=Math.min.apply(null,qe.map(function(v){return m[v]}));p!==1/0&&qe.forEach(function(v){l[v]*=p})}else qe.forEach(function(v){m[v]!==1/0&&(l[v]*=m[v])});if(d=tn(n,l).width,u=tn(n,l).height,l.right+l.left&&(d>r.maxWidth?m.width=(r.maxWidth-n.width)/(l.right+l.left):d<r.minWidth&&(m.width=(r.minWidth-n.width)/(l.right+l.left))),l.bottom+l.top&&(u>r.maxHeight?m.height=(r.maxHeight-n.height)/(l.bottom+l.top):u<r.minHeight&&(m.height=(r.minHeight-n.height)/(l.bottom+l.top))),a){var g=Math.min(m.width,m.height);g!==1/0&&qe.forEach(function(v){l[v]*=g})}else m.width!==1/0&&sy.forEach(function(v){l[v]*=m.width}),m.height!==1/0&&ay.forEach(function(v){l[v]*=m.height});return l}function es(e,t,n){return t==0&&n==0?e/2:t==0?0:n==0?e:e*Math.abs(t/(t+n))}var wy=Ge("vue-simple-handler"),Cy=Ge("vue-simple-handler-wrapper"),Pa={name:"SimpleHandler",components:{HandlerWrapper:ic},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 e,t=(De(e={},this.horizontalPosition,!!this.horizontalPosition),De(e,this.verticalPosition,!!this.verticalPosition),De(e,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),De(e,"hover",this.hover),e);return{default:qt(wy(t),this.defaultClass,this.hover&&this.hoverClass),wrapper:qt(Cy(t),this.wrapperClass)}}},methods:{onDrag:function(e){this.$emit("drag",e)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};Pa.render=function(e,t,n,i,s,r){var a=o.resolveComponent("HandlerWrapper");return o.openBlock(),o.createBlock(a,{class:r.classes.wrapper,"vertical-position":n.verticalPosition,"horizontal-position":n.horizontalPosition,disabled:n.disabled,onDrag:r.onDrag,onDragEnd:r.onDragEnd,onEnter:r.onEnter,onLeave:r.onLeave},{default:o.withCtx(function(){return[o.createVNode("div",{class:r.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Ey=Ge("vue-simple-line"),xy=Ge("vue-simple-line-wrapper"),Ra={name:"SimpleLine",components:{LineWrapper:sc},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:qt(Ey(De({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:qt(xy(De({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(e){this.$emit("drag",e)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};Ra.render=function(e,t,n,i,s,r){var a=o.resolveComponent("LineWrapper");return o.openBlock(),o.createBlock(a,{class:r.classes.wrapper,position:n.position,disabled:n.disabled,onDrag:r.onDrag,onDragEnd:r.onDragEnd,onEnter:r.onEnter,onLeave:r.onLeave},{default:o.withCtx(function(){return[o.createVNode("div",{class:r.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Ma=Ge("vue-bounding-box"),Iy=["east","west",null],Py=["south","north",null],mc={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 Pa}},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 Ra}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var e=[];return Iy.forEach(function(t){Py.forEach(function(n){if(t!==n){var i=ql(t,n),s=i.name,r=i.classname;e.push({name:s,classname:r,verticalDirection:n,horizontalDirection:t})}})}),{points:e}},computed:{style:function(){var e={};return this.width&&this.height&&(e.width="".concat(this.width,"px"),e.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),e},classes:function(){var e=this.handlersClasses,t=this.handlersWrappersClasses,n=this.linesClasses,i=this.linesWrappersClasses;return{root:Ma(),handlers:e,handlersWrappers:t,lines:n,linesWrappers:i}},lineNodes:function(){var e=this,t=[];return this.points.forEach(function(n){n.horizontalDirection&&n.verticalDirection||!e.lines[n.name]||t.push({name:n.name,component:e.linesComponent,class:qt(e.classes.lines.default,e.classes.lines[n.name],!e.resizable&&e.classes.lines.disabled),wrapperClass:qt(e.classes.linesWrappers.default,e.classes.linesWrappers[n.name],!e.resizable&&e.classes.linesWrappers.disabled),hoverClass:e.classes.lines.hover,verticalDirection:n.verticalDirection,horizontalDirection:n.horizontalDirection,disabled:!e.resizable})}),t},handlerNodes:function(){var e=this,t=[],n=this.width,i=this.height;return this.points.forEach(function(s){if(e.handlers[s.name]){var r={name:s.name,component:e.handlersComponent,class:qt(e.classes.handlers.default,e.classes.handlers[s.name]),wrapperClass:qt(e.classes.handlersWrappers.default,e.classes.handlersWrappers[s.name]),hoverClass:e.classes.handlers.hover,verticalDirection:s.verticalDirection,horizontalDirection:s.horizontalDirection,disabled:!e.resizable};if(n&&i){var a=s.horizontalDirection,c=s.verticalDirection,l=a==="east"?n:a==="west"?0:n/2,d=c==="south"?i:c==="north"?0:i/2;r.wrapperClass=Ma("handler"),r.wrapperStyle={transform:"translate(".concat(l,"px, ").concat(d,"px)")},e.transitions&&e.transitions.enabled&&(r.wrapperStyle.transition="".concat(e.transitions.time,"ms ").concat(e.transitions.timingFunction))}else r.wrapperClass=Ma("handler",De({},s.classname,!0));t.push(r)}}),t}},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(e,t,n){var i,s=e.shift(),r=s.left,a=s.top,c={left:0,right:0,top:0,bottom:0};t==="west"?c.left-=r:t==="east"&&(c.right+=r),n==="north"?c.top-=a:n==="south"&&(c.bottom+=a),!n&&t?i="width":n&&!t&&(i="height"),this.resizable&&this.$emit("resize",new ny(c,{allowedDirections:{left:t==="west"||!t,right:t==="east"||!t,bottom:n==="south"||!n,top:n==="north"||!n},preserveAspectRatio:e.nativeEvent&&e.nativeEvent.shiftKey,respectDirection:i}))}},emits:["resize","resize-end"]};mc.render=function(e,t,n,i,s,r){return o.openBlock(),o.createBlock("div",{ref:"box",class:r.classes.root,style:r.style},[o.renderSlot(e.$slots,"default"),o.createVNode("div",null,[(o.openBlock(!0),o.createBlock(o.Fragment,null,o.renderList(r.lineNodes,function(a){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.component),{key:a.name,"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,position:a.name,disabled:a.disabled,onDrag:function(c){return r.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:t[1]||(t[1]=function(c){return r.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(o.openBlock(!0),o.createBlock(o.Fragment,null,o.renderList(r.handlerNodes,function(a){return o.openBlock(),o.createBlock("div",{key:a.name,style:a.wrapperStyle,class:a.wrapperClass},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.component),{"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,"horizontal-position":a.horizontalDirection,"vertical-position":a.verticalDirection,disabled:a.disabled,onDrag:function(c){return r.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:t[2]||(t[2]=function(c){return r.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var Ry=Ge("vue-draggable-area"),pc={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:Ry()}}},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(e){if(e.cancelable){var t=this.movable&&e.touches.length===1;t&&(this.touches=zn(e.touches)),(this.touchStarted||t)&&(e.preventDefault(),e.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(e){this.touches.length>=1&&(this.touchStarted?(this.processMove(e,e.touches),e.preventDefault(),e.stopPropagation()):oc({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:e.touches[0].clientX,y:e.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(e){if(this.movable&&e.button===0){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.initAnchor(t),e.stopPropagation()}},onMouseMove:function(e){this.touches.length&&(this.processMove(e,[{fake:!0,clientX:e.clientX,clientY:e.clientY}]),e.preventDefault&&e.cancelable&&e.preventDefault(),e.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(e){var t=this.$refs.container.getBoundingClientRect(),n=t.left,i=t.top;this.anchor={x:e.clientX-n,y:e.clientY-i}},processMove:function(e,t){var n=zn(t);if(this.touches.length){var i=this.$refs.container.getBoundingClientRect(),s=i.left,r=i.top;this.touches.length===1&&n.length===1&&this.$emit("move",new Sa({left:n[0].clientX-(s+this.anchor.x),top:n[0].clientY-(r+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};pc.render=function(e,t,n,i,s,r){return o.openBlock(),o.createBlock("div",{ref:"container",onTouchstart:t[1]||(t[1]=function(){return r.onTouchStart&&r.onTouchStart.apply(r,arguments)}),onMousedown:t[2]||(t[2]=function(){return r.onMouseDown&&r.onMouseDown.apply(r,arguments)})},[o.renderSlot(e.$slots,"default")],544)};function Oa(e){var t,n;return{rotate:e.rotate||0,flip:{horizontal:((t=e==null?void 0:e.flip)===null||t===void 0?void 0:t.horizontal)||!1,vertical:((n=e==null?void 0:e.flip)===null||n===void 0?void 0:n.vertical)||!1}}}function My(e){return new Promise(function(t,n){try{if(e)if(/^data:/i.test(e))t(function(l){l=l.replace(/^data:([^;]+);base64,/gim,"");for(var d=atob(l),u=d.length,h=new ArrayBuffer(u),m=new Uint8Array(h),p=0;p<u;p++)m[p]=d.charCodeAt(p);return h}(e));else if(/^blob:/i.test(e)){var i=new FileReader;i.onload=function(l){t(l.target.result)},r=e,a=function(l){i.readAsArrayBuffer(l)},(c=new XMLHttpRequest).open("GET",r,!0),c.responseType="blob",c.onload=function(){this.status!=200&&this.status!==0||a(this.response)},c.send()}else{var s=new XMLHttpRequest;s.onreadystatechange=function(){s.readyState===4&&(s.status===200||s.status===0?t(s.response):n("Warning: could not load an image to parse its orientation"),s=null)},s.onprogress=function(){s.getResponseHeader("content-type")!=="image/jpeg"&&s.abort()},s.withCredentials=!1,s.open("GET",e,!0),s.responseType="arraybuffer",s.send(null)}else n("Error: the image is empty")}catch(l){n(l)}var r,a,c})}function gc(e){var t=e.rotate,n=e.flip,i=e.scaleX,s=e.scaleY,r="";return r+=" rotate("+t+"deg) ",r+=" scaleX("+i*(n.horizontal?-1:1)+") ",r+=" scaleY("+s*(n.vertical?-1:1)+") "}function Oy(e){try{var t,n=new DataView(e),i=void 0,s=void 0,r=void 0,a=void 0;if(n.getUint8(0)===255&&n.getUint8(1)===216)for(var c=n.byteLength,l=2;l+1<c;){if(n.getUint8(l)===255&&n.getUint8(l+1)===225){r=l;break}l++}if(r&&(i=r+10,function(p,g,v){var b,S="";for(b=g,v+=g;b<v;b++)S+=String.fromCharCode(p.getUint8(b));return S}(n,r+4,4)==="Exif")){var d=n.getUint16(i);if(((s=d===18761)||d===19789)&&n.getUint16(i+2,s)===42){var u=n.getUint32(i+4,s);u>=8&&(a=i+u)}}if(a){for(var h=n.getUint16(a,s),m=0;m<h;m++)if(l=a+12*m+2,n.getUint16(l,s)===274){l+=8,t=n.getUint16(l,s),n.setUint16(l,1,s);break}}return t}catch{return null}}function vc(e,t){var n=t.getBoundingClientRect(),i=n.left,s=n.top,r={left:0,top:0},a=0;return e.forEach(function(c){r.left+=(c.clientX-i)/e.length,r.top+=(c.clientY-s)/e.length}),e.forEach(function(c){a+=oc({x:r.left,y:r.top},{x:c.clientX-i,y:c.clientY-s})}),{centerMass:r,spread:a,count:e.length}}var yc={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=ya(this.processEnd),this.touches=[]},methods:{processMove:function(e,t){if(this.touches.length){if(this.touches.length===1&&t.length===1)this.$emit("move",new Ko({left:this.touches[0].clientX-t[0].clientX,top:this.touches[0].clientY-t[0].clientY}));else if(this.touches.length>1&&this.touchResize){var n=vc(t,this.$refs.container),i=this.oldGeometricProperties;i.count===n.count&&i.count>1&&this.$emit("resize",new Ko({left:i.centerMass.left-n.centerMass.left,top:i.centerMass.top-n.centerMass.top},{factor:i.spread/n.spread,center:n.centerMass})),this.oldGeometricProperties=n}this.touches=t}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(e){return this.eventsFilter?this.eventsFilter(e,this.transforming)!==!1:(e.preventDefault(),e.stopPropagation(),!0)},onTouchStart:function(e){if(e.cancelable&&(this.touchMove||this.touchResize&&e.touches.length>1)&&this.processEvent(e)){var t=this.$refs.container,n=t.getBoundingClientRect(),i=n.left,s=n.top,r=n.bottom,a=n.right;this.touches=zn(e.touches).filter(function(c){return c.clientX>i&&c.clientX<a&&c.clientY>s&&c.clientY<r}),this.oldGeometricProperties=vc(this.touches,t)}},onTouchEnd:function(e){e.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(e){var t=this;if(this.touches.length){var n=zn(e.touches).filter(function(i){return!i.identifier||t.touches.find(function(s){return s.identifier===i.identifier})});this.processEvent(e)&&(this.processMove(e,n),this.processStart())}},onMouseDown:function(e){if(this.mouseMove&&"buttons"in e&&e.buttons===1&&this.processEvent(e)){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.processStart()}},onMouseMove:function(e){this.touches.length&&this.processEvent(e)&&this.processMove(e,[{clientX:e.clientX,clientY:e.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(e){if(this.wheelResize&&this.processEvent(e)){var t=this.$refs.container.getBoundingClientRect(),n=t.left,i=t.top,s=1+this.wheelResize.ratio*(a=e.deltaY||e.detail||e.wheelDelta,(c=+a)==0||nc(c)?c:c>0?1:-1),r={left:e.clientX-n,top:e.clientY-i};this.$emit("resize",new Ko({},{factor:s,center:r})),this.touches.length||this.debouncedProcessEnd()}var a,c}},emits:["resize","move","transform-end"]};yc.render=function(e,t,n,i,s,r){return o.openBlock(),o.createBlock("div",{ref:"container",onTouchstart:t[1]||(t[1]=function(){return r.onTouchStart&&r.onTouchStart.apply(r,arguments)}),onMousedown:t[2]||(t[2]=function(){return r.onMouseDown&&r.onMouseDown.apply(r,arguments)}),onWheel:t[3]||(t[3]=function(){return r.onWheel&&r.onWheel.apply(r,arguments)})},[o.renderSlot(e.$slots,"default")],544)};var Aa={components:{TransformableImage:yc},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"]};Aa.render=function(e,t,n,i,s,r){var a=o.resolveComponent("transformable-image");return o.openBlock(),o.createBlock(a,{"touch-move":n.touchMove,"touch-resize":n.touchResize,"mouse-move":n.mouseMove,"wheel-resize":n.wheelResize,onMove:t[1]||(t[1]=function(c){return e.$emit("move",c)}),onResize:t[2]||(t[2]=function(c){return e.$emit("resize",c)})},{default:o.withCtx(function(){return[o.renderSlot(e.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var ns=Ge("vue-preview"),bc={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:ns({fill:this.fill}),wrapper:ns("wrapper"),imageWrapper:ns("image-wrapper"),image:qt(ns("image"),this.imageClass)}},style:function(){if(this.fill)return{};var e={};return this.width&&(e.width="".concat(this.size.width,"px")),this.height&&(e.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),e},wrapperStyle:function(){var e={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&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),e},imageStyle:function(){if(this.coordinates&&this.image){var e=this.coordinates.width/this.size.width,t=Et(Et({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/e,scaleY:1/e}),n=this.imageSize.width,i=this.imageSize.height,s=cc({width:n,height:i},t.rotate),r={width:"".concat(n,"px"),height:"".concat(i,"px"),left:"0px",top:"0px"},a={rotate:{left:(n-s.width)*t.scaleX/2,top:(i-s.height)*t.scaleY/2},scale:{left:(1-t.scaleX)*n/2,top:(1-t.scaleY)*i/2}};return r.transform=`translate(
|
|
50
|
-
`.concat(-this.coordinates.left/e-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/e-a.rotate.top-a.scale.top,"px) ")+gc(t),this.transitions&&this.transitions.enabled&&(r.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),r}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(e){(e.width||e.height)&&this.onChangeImage()}},mounted:function(){var e=this;this.onChangeImage(),this.$refs.image.addEventListener("load",function(){e.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 e=this.$refs.image;this.calculatedImageSize.height=e.naturalHeight,this.calculatedImageSize.width=e.naturalWidth},refresh:function(){var e=this.$refs.root;this.width||(this.calculatedSize.width=e.clientWidth),this.height||(this.calculatedSize.height=e.clientHeight)},onChangeImage:function(){var e=this.$refs.image;e&&e.complete&&this.refreshImage(),this.refresh()}}};bc.render=function(e,t,n,i,s,r){return o.openBlock(),o.createBlock("div",{ref:"root",class:r.classes.root,style:r.style},[o.createVNode("div",{ref:"wrapper",class:r.classes.wrapper,style:r.wrapperStyle},[o.withDirectives(o.createVNode("img",{ref:"image",src:n.image&&n.image.src,class:r.classes.image,style:r.imageStyle},null,14,["src"]),[[o.vShow,n.image&&n.image.src]])],6)],6)};var Sc={components:{Preview:bc},inheritAttrs:!1};Sc.render=function(e,t,n,i,s,r){var a=o.resolveComponent("preview");return o.openBlock(),o.createBlock(a,o.mergeProps(e.$attrs,{fill:!0}),null,16)};var Ta=Ge("vue-rectangle-stencil"),wc={name:"RectangleStencil",components:{StencilPreview:Sc,BoundingBox:mc,DraggableArea:pc},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Pa}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Ra}},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:qt(Ta({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:qt(Ta("preview"),this.previewClass),boundingBox:qt(Ta("bounding-box"),this.boundingBoxClass)}},style:function(){var e=this.stencilCoordinates,t=e.height,n=e.width,i=e.left,s=e.top,r={width:"".concat(n,"px"),height:"".concat(t,"px"),transform:"translate(".concat(i,"px, ").concat(s,"px)")};return this.transitions&&this.transitions.enabled&&(r.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),r}},methods:{onMove:function(e){this.$emit("move",e),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(e){this.$emit("resize",e),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"]};wc.render=function(e,t,n,i,s,r){var a=o.resolveComponent("stencil-preview"),c=o.resolveComponent("draggable-area"),l=o.resolveComponent("bounding-box");return o.openBlock(),o.createBlock("div",{class:r.classes.stencil,style:r.style},[o.createVNode(l,{width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,transitions:n.transitions,class:r.classes.boundingBox,handlers:n.handlers,"handlers-component":n.handlersComponent,"handlers-classes":n.handlersClasses,"handlers-wrappers-classes":n.handlersWrappersClasses,lines:n.lines,"lines-component":n.linesComponent,"lines-classes":n.linesClasses,"lines-wrappers-classes":n.linesWrappersClasses,resizable:n.resizable,onResize:r.onResize,onResizeEnd:r.onResizeEnd},{default:o.withCtx(function(){return[o.createVNode(c,{movable:n.movable,onMove:r.onMove,onMoveEnd:r.onMoveEnd},{default:o.withCtx(function(){return[o.createVNode(a,{image:n.image,coordinates:n.coordinates,width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,class:r.classes.preview,transitions:n.transitions},null,8,["image","coordinates","width","height","class","transitions"])]}),_:1},8,["movable","onMove","onMoveEnd"])]}),_:1},8,["width","height","transitions","class","handlers","handlers-component","handlers-classes","handlers-wrappers-classes","lines","lines-component","lines-classes","lines-wrappers-classes","resizable","onResize","onResizeEnd"])],6)};var Ay=["transitions"],ln=Ge("vue-advanced-cropper"),Cc={name:"Cropper",components:{BackgroundWrapper:Aa},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return wc}},backgroundWrapperComponent:{type:[Object,String],default:function(){return Aa}},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(e){return ly.indexOf(e)!==-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(e){return!(typeof e=="string"&&e!=="fill"&&e!=="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(e){var t=e.event,n=e.coordinates,i=e.aspectRatio,s=e.positionRestrictions,r=e.sizeRestrictions,a=nt(nt({},n),{right:n.left+n.width,bottom:n.top+n.height}),c=t.params||{},l=nt({},t.directions),d=c.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};r.widthFrozen&&(l.left=0,l.right=0),r.heightFrozen&&(l.top=0,l.bottom=0),qe.forEach(function(I){d[I]||(l[I]=0)});var u=tn(a,l=hc({coordinates:a,directions:l,sizeRestrictions:r,positionRestrictions:s})).width,h=tn(a,l).height,m=c.preserveRatio?xt(a):Ea(u/h,i);if(m){var p=c.respectDirection;if(p||(p=a.width>=a.height||m===1?"width":"height"),p==="width"){var g=u/m-a.height;if(d.top&&d.bottom){var v=l.top,b=l.bottom;l.bottom=es(g,b,v),l.top=es(g,v,b)}else d.bottom?l.bottom=g:d.top?l.top=g:d.right?l.right=0:d.left&&(l.left=0)}else if(p==="height"){var S=a.width-h*m;if(d.left&&d.right){var C=l.left,x=l.right;l.left=-es(S,C,x),l.right=-es(S,x,C)}else d.left?l.left=-S:d.right?l.right=-S:d.top?l.top=0:d.bottom&&(l.bottom=0)}l=hc({directions:l,coordinates:a,sizeRestrictions:r,positionRestrictions:s,preserveRatio:!0,compensate:c.compensate})}return u=tn(a,l).width,h=tn(a,l).height,(m=c.preserveRatio?xt(a):Ea(u/h,i))&&Math.abs(m-u/h)>.001&&qe.forEach(function(I){d[I]||(l[I]=0)}),Ia({event:new Sa({left:-l.left,top:-l.top}),coordinates:{width:n.width+l.right+l.left,height:n.height+l.top+l.bottom,left:n.left,top:n.top},positionRestrictions:s})}},moveAlgorithm:{type:Function,default:Ia},initStretcher:{type:Function,default:function(e){var t=e.stretcher,n=e.imageSize,i=xt(n);t.style.width=n.width+"px",t.style.height=t.clientWidth/i+"px",t.style.width=t.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(e){var t=e.visibleArea,n=e.coordinates,i=e.aspectRatio,s=e.sizeRestrictions,r=e.positionRestrictions,a=nt(nt({},n),rn({width:n.width,height:n.height,aspectRatio:i,sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minHeight:Math.min(t.height,s.minHeight),minWidth:Math.min(t.width,s.minWidth)}}));return a=ce(a=Ce(a,mo(le(n),le(a))),$i($e(t),r))}},fitVisibleArea:{type:Function,default:function(e){var t=e.visibleArea,n=e.boundaries,i=e.getAreaRestrictions,s=e.coordinates,r=nt({},t);r.height=r.width/xt(n),r.top+=(t.height-r.height)/2,(s.height-r.height>0||s.width-r.width>0)&&(r=Fe(r,Math.max(s.height/r.height,s.width/r.width)));var a=_i(go(s,$e(r=Fe(r,qi(r,i({visibleArea:r,type:"resize"}))))));return r.width<s.width&&(a.left=0),r.height<s.height&&(a.top=0),r=ce(r=Ce(r,a),i({visibleArea:r,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(e){var t=e.visibleArea,n=e.boundaries,i=e.imageSize,s=e.imageRestriction,r=e.type,a={};return s==="fill-area"?a={left:0,top:0,right:i.width,bottom:i.height}:s==="fit-area"&&(xt(n)>xt(i)?(a={top:0,bottom:i.height},t&&r==="move"&&(t.width>i.width?(a.left=-(t.width-i.width)/2,a.right=i.width-a.left):(a.left=0,a.right=i.width))):(a={left:0,right:i.width},t&&r==="move"&&(t.height>i.height?(a.top=-(t.height-i.height)/2,a.bottom=i.height-a.top):(a.top=0,a.bottom=i.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(e){return{minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(e){var t=e.imageSize,n={};return e.imageRestriction!=="none"&&(n={left:0,top:0,right:t.width,bottom:t.height}),n}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:null,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:Et({},ac)}},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 e=function(t){return t*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(e))+Math.abs(this.imageAttributes.height*Math.sin(e)),height:Math.abs(this.imageAttributes.width*Math.sin(e))+Math.abs(this.imageAttributes.height*Math.cos(e))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var e=ba(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:ba(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:e}},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 e=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:ee(this.minWidth)?0:Ji(this.minWidth),minHeight:ee(this.minHeight)?0:Ji(this.minHeight),maxWidth:ee(this.maxWidth)?1/0:Ji(this.maxWidth),maxHeight:ee(this.maxHeight)?1/0:Ji(this.maxHeight)});if(e=function(i){var s=i.areaRestrictions,r=i.sizeRestrictions,a=i.boundaries,c=i.positionRestrictions,l=nt(nt({},r),{minWidth:r.minWidth!==void 0?r.minWidth:0,minHeight:r.minHeight!==void 0?r.minHeight:0,maxWidth:r.maxWidth!==void 0?r.maxWidth:1/0,maxHeight:r.maxHeight!==void 0?r.maxHeight:1/0});c.left!==void 0&&c.right!==void 0&&(l.maxWidth=Math.min(l.maxWidth,c.right-c.left)),c.bottom!==void 0&&c.top!==void 0&&(l.maxHeight=Math.min(l.maxHeight,c.bottom-c.top));var d=xa(s),u=lc(a,d);return d.width<1/0&&(!l.maxWidth||l.maxWidth>u.width)&&(l.maxWidth=Math.min(l.maxWidth,u.width)),d.height<1/0&&(!l.maxHeight||l.maxHeight>u.height)&&(l.maxHeight=Math.min(l.maxHeight,u.height)),l.minWidth>l.maxWidth&&(l.minWidth=l.maxWidth,l.widthFrozen=!0),l.minHeight>l.maxHeight&&(l.minHeight=l.maxHeight,l.heightFrozen=!0),l}({sizeRestrictions:e,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 t=this.getStencilSize(),n=xa(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));e.maxWidth=Math.min(e.maxWidth,n.width*t.width/this.boundaries.width),e.maxHeight=Math.min(e.maxHeight,n.height*t.height/this.boundaries.height),e.maxWidth<e.minWidth&&(e.minWidth=e.maxWidth),e.maxHeight<e.minHeight&&(e.minHeight=e.maxHeight)}return e}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:ln(),image:qt(ln("image"),this.imageClass),stencil:ln("stencil"),boundaries:qt(ln("boundaries"),this.boundariesClass),stretcher:qt(ln("stretcher")),background:qt(ln("background"),this.backgroundClass),foreground:qt(ln("foreground"),this.foregroundClass),imageWrapper:qt(ln("image-wrapper")),cropperWrapper:qt(ln("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var e=this.coordinates,t=e.width,n=e.height,i=e.left,s=e.top;return{width:t/this.coefficient,height:n/this.coefficient,left:(i-this.visibleArea.left)/this.coefficient,top:(s-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var e={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||(e.opacity="0"),e},imageStyle:function(){var e=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)},t={left:(e.width-this.imageSize.width)/(2*this.coefficient),top:(e.height-this.imageSize.height)/(2*this.coefficient)},n={left:(1-1/this.coefficient)*e.width/2,top:(1-1/this.coefficient)*e.height/2},i=Et(Et({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/e.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/e.height)}),s={width:"".concat(e.width,"px"),height:"".concat(e.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-t.left-n.left-this.imageTransforms.translateX,"px, ").concat(-t.top-n.top-this.imageTransforms.translateY,"px)")+gc(i)};return this.transitionsOptions.enabled&&(s.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),s}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var e=this;this.$nextTick(function(){e.resetCoordinates(),e.runAutoZoom("setCoordinates"),e.onChange()})},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(e,t){["aspectRatio","minAspectRatio","maxAspectRatio"].find(function(n){return e[n]!==t[n]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=ya(this.update,this.debounce),this.debouncedDisableTransitions=ya(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 e=this.initialized?this.prepareResult(Et({},this.coordinates)):this.defaultCoordinates(),t={rotate:this.imageTransforms.rotate%360,flip:Et({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:e,visibleArea:this.visibleArea?Et({},this.visibleArea):null,imageTransforms:t,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:e,visibleArea:this.visibleArea?Et({},this.visibleArea):null,canvas:void 0,imageTransforms:t}},zoom:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.transitions,s=i===void 0||i;this.onManipulateImage(new Ko({},{factor:1/e,center:t}),{normalize:!1,transitions:s})},move:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.transitions,s=i===void 0||i;this.onManipulateImage(new Ko({left:e||0,top:t||0}),{normalize:!1,transitions:s})},setCoordinates:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.autoZoom,s=i===void 0||i,r=n.transitions,a=r===void 0||r;this.$nextTick(function(){t.imageLoaded?(t.transitionsActive||(a&&t.enableTransitions(),t.coordinates=t.applyTransform(e),s&&t.runAutoZoom("setCoordinates"),a&&t.debouncedDisableTransitions()),t.onChange()):t.delayedTransforms=e})},refresh:function(){var e=this,t=this.$refs.image;if(this.src&&t)return this.initialized?this.updateVisibleArea().then(function(){e.onChange()}):this.resetVisibleArea().then(function(){e.onChange()})},reset:function(){var e=this;return this.resetVisibleArea().then(function(){e.onChange(!1)})},awaitRender:function(e){var t=this;this.awaiting||(this.awaiting=!0,this.$nextTick(function(){e(),t.awaiting=!1}))},prepareResult:function(e){return this.roundResult?function(t){var n=t.coordinates,i=t.sizeRestrictions,s=t.positionRestrictions,r={width:Math.round(n.width),height:Math.round(n.height),left:Math.round(n.left),top:Math.round(n.top)};return r.width>i.maxWidth?r.width=Math.floor(n.width):r.width<i.minWidth&&(r.width=Math.ceil(n.width)),r.height>i.maxHeight?r.height=Math.floor(n.height):r.height<i.minHeight&&(r.height=Math.ceil(n.height)),ce(r,s)}(Et(Et({},this.getPublicProperties()),{},{positionRestrictions:ts(this.positionRestrictions,this.visibleArea),coordinates:e})):e},processAutoZoom:function(e,t,n,i){var s=this.autoZoomAlgorithm;s||(s=this.stencilSize?uy:this.autoZoom?fy:hy);var r=s({event:{type:e,params:i},visibleArea:t,coordinates:n,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return Et(Et({},r),{},{changed:!rc(r.visibleArea,t)||!rc(r.coordinates,n)})},runAutoZoom:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transitions,i=n!==void 0&&n,s=ty(t,Ay),r=this.processAutoZoom(e,this.visibleArea,this.coordinates,s),a=r.visibleArea,c=r.coordinates,l=r.changed;i&&l&&this.enableTransitions(),this.visibleArea=a,this.coordinates=c,i&&l&&this.debouncedDisableTransitions()},normalizeEvent:function(e){return function(t){var n=t.event,i=t.visibleArea,s=t.coefficient;if(n.type==="manipulateImage")return nt(nt({},n),{move:{left:n.move&&n.move.left?s*n.move.left:0,top:n.move&&n.move.top?s*n.move.top:0},scale:{factor:n.scale&&n.scale.factor?n.scale.factor:1,center:n.scale&&n.scale.center?{left:n.scale.center.left*s+i.left,top:n.scale.center.top*s+i.top}:null}});if(n.type==="resize"){var r=nt(nt({},n),{directions:nt({},n.directions)});return qe.forEach(function(c){r.directions[c]*=s}),r}if(n.type==="move"){var a=nt(nt({},n),{directions:nt({},n.directions)});return ry.forEach(function(c){a.directions[c]*=s}),a}return n}(Et(Et({},this.getPublicProperties()),{},{event:e}))},getCanvas:function(){if(this.$refs.canvas){var e=this.$refs.canvas,t=this.$refs.image,n=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(c,l,d){var u=d.rotate,h=d.flip,m={width:l.naturalWidth,height:l.naturalHeight},p=cc(m,u),g=c.getContext("2d");c.height=p.height,c.width=p.width,g.save();var v=bn(le(nt({left:0,top:0},m)),u);return g.translate(-(v.left-p.width/2),-(v.top-p.height/2)),g.rotate(u*Math.PI/180),g.translate(h.horizontal?m.width:0,h.vertical?m.height:0),g.scale(h.horizontal?-1:1,h.vertical?-1:1),g.drawImage(l,0,0,m.width,m.height),g.restore(),c}(this.$refs.sourceCanvas,t,this.imageTransforms):t,i=Et({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),s=function(c){return c.find(function(l){return d=l,!Number.isNaN(parseFloat(d))&&isFinite(d);var d})},r=rn({sizeRestrictions:{minWidth:s([i.width,i.minWidth])||0,minHeight:s([i.height,i.minHeight])||0,maxWidth:s([i.width,i.maxWidth])||1/0,maxHeight:s([i.height,i.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(i.maxArea&&r.width*r.height>i.maxArea){var a=Math.sqrt(i.maxArea/(r.width*r.height));r={width:Math.round(a*r.width),height:Math.round(a*r.height)}}return function(c,l,d,u,h){c.width=u?u.width:d.width,c.height=u?u.height:d.height;var m=c.getContext("2d");m.clearRect(0,0,c.width,c.height),h&&(h.imageSmoothingEnabled&&(m.imageSmoothingEnabled=h.imageSmoothingEnabled),h.imageSmoothingQuality&&(m.imageSmoothingQuality=h.imageSmoothingQuality),h.fillColor&&(m.fillStyle=h.fillColor,m.fillRect(0,0,c.width,c.height),m.save()));var p=d.left<0?-d.left:0,g=d.top<0?-d.top:0;m.drawImage(l,d.left+p,d.top+g,d.width,d.height,p*(c.width/d.width),g*(c.height/d.height),c.width,c.height)}(e,n,this.coordinates,r,i),e}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.visibleArea&&t?cy(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,i=this.visibleArea&&t?ts(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return dy({transform:e,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:n,positionRestrictions:i,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var e=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var t=this.defaultSize;t||(t=this.stencilSize?gy:py);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var i=ho(t)?t({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):t,s=this.defaultPosition||my,r=[i,function(a){var c=a.coordinates;return Et({},ho(s)?s({coordinates:c,imageSize:e.imageSize,visibleArea:e.visibleArea}):e.defaultPosition)}];this.delayedTransforms&&r.push.apply(r,zn(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(r,!0),this.delayedTransforms=null}},clearImage:function(){var e=this;this.imageLoaded=!1,setTimeout(function(){var t=e.$refs.stretcher;t&&(t.style.height="auto",t.style.width="auto"),e.coordinates=e.defaultCoordinates(),e.boundaries={width:0,height:0}},this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var e=this,t=this.$refs.stretcher,n=this.$refs.cropper;return this.initStretcher({cropper:n,stretcher:t,imageSize:this.imageSize}),this.$nextTick().then(function(){var i={cropper:n,imageSize:e.imageSize};if(ho(e.defaultBoundaries)?e.boundaries=e.defaultBoundaries(i):e.defaultBoundaries==="fit"?e.boundaries=function(s){var r=s.cropper,a=s.imageSize,c=r.clientHeight,l=r.clientWidth,d=c,u=a.width*c/a.height;return u>l&&(u=l,d=a.height*l/a.width),{width:u,height:d}}(i):e.boundaries=function(s){var r=s.cropper;return{width:r.clientWidth,height:r.clientHeight}}(i),!e.boundaries.width||!e.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")})},resetVisibleArea:function(){var e=this;return this.appliedImageTransforms=Et(Et({},this.defaultImageTransforms),{},{flip:Et({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){e.priority!=="visible-area"&&(e.visibleArea=null,e.resetCoordinates());var t,n,i,s,r,a,c=e.defaultVisibleArea||vy;e.visibleArea=ho(c)?c({imageSize:e.imageSize,boundaries:e.boundaries,coordinates:e.priority!=="visible-area"?e.coordinates:null,getAreaRestrictions:e.getAreaRestrictions,stencilSize:e.getStencilSize()}):e.defaultVisibleArea,e.visibleArea=(t={visibleArea:e.visibleArea,boundaries:e.boundaries,getAreaRestrictions:e.getAreaRestrictions},n=t.visibleArea,i=t.boundaries,s=t.getAreaRestrictions,r=nt({},n),a=xt(i),r.width/r.height!==a&&(r.height=r.width/a),ce(r,s({visibleArea:r,type:"move"}))),e.priority==="visible-area"?e.resetCoordinates():e.coordinates=e.fitCoordinates({visibleArea:e.visibleArea,coordinates:e.coordinates,aspectRatio:e.getAspectRatio(),positionRestrictions:e.positionRestrictions,sizeRestrictions:e.sizeRestrictions}),e.runAutoZoom("resetVisibleArea")}).catch(function(){e.visibleArea=null})},updateVisibleArea:function(){var e=this;return this.updateBoundaries().then(function(){e.visibleArea=e.fitVisibleArea({imageSize:e.imageSize,boundaries:e.boundaries,visibleArea:e.visibleArea,coordinates:e.coordinates,getAreaRestrictions:e.getAreaRestrictions}),e.coordinates=e.fitCoordinates({visibleArea:e.visibleArea,coordinates:e.coordinates,aspectRatio:e.getAspectRatio(),positionRestrictions:e.positionRestrictions,sizeRestrictions:e.sizeRestrictions}),e.runAutoZoom("updateVisibleArea")}).catch(function(){e.visibleArea=null})},onChange:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];e&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var e,t=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(s){if(tc(s))return!1;var r=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(s)||[],c={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},l=function(d){return d.port||((d.protocol||r.protocol)==="http"?80:433)};return!(!c.protocol&&!c.host&&!c.port||c.protocol&&c.protocol==r.protocol&&c.host&&c.host==r.host&&c.host&&l(c)==l(r))}(this.src)){var n=ee(this.crossOrigin)?this.canvas:this.crossOrigin;n===!0&&(n="anonymous"),this.imageAttributes.crossOrigin=n||null}if(this.checkOrientation){var i=(e=this.src,new Promise(function(s){My(e).then(function(r){var a=Oy(r);s(r?{source:e,arrayBuffer:r,orientation:a}:{source:e,arrayBuffer:null,orientation:null})}).catch(function(r){console.warn(r),s({source:e,arrayBuffer:null,orientation:null})})}));setTimeout(function(){i.then(t.onParseImage)},this.transitionTime)}else setTimeout(function(){t.onParseImage({source:t.src})},this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var e=this,t=this.$refs.image;t&&!this.imageLoaded&&(this.imageAttributes.height=t.naturalHeight,this.imageAttributes.width=t.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then(function(){e.$emit("ready"),e.onChange(!1)}))},onParseImage:function(e){var t=this,n=e.source,i=e.arrayBuffer,s=e.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,i&&s&&s>1?$l(n)||!tc(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([i])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(r){for(var a=[],c=new Uint8Array(r);c.length>0;){var l=c.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(l):l.slice())),c=c.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(i):this.imageAttributes.src=n,ho(this.defaultTransforms)?this.appliedImageTransforms=Oa(this.defaultTransforms()):Qi(this.defaultTransforms)?this.appliedImageTransforms=Oa(this.defaultTransforms):this.appliedImageTransforms=function(r){var a=Oa({});if(r)switch(r){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}(s),this.defaultImageTransforms=Et(Et({},this.appliedImageTransforms),{},{flip:Et({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var r=t.$refs.image;r&&r.complete&&(function(a){return!!a.naturalWidth}(r)?t.onSuccessLoadImage():t.onFailLoadImage())})},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(e){var t=this;this.transitionsOptions.enabled||this.awaitRender(function(){t.coordinates=t.moveAlgorithm(Et(Et({},t.getPublicProperties()),{},{positionRestrictions:ts(t.positionRestrictions,t.visibleArea),coordinates:t.coordinates,event:t.normalizeEvent(e)})),t.onChange()})},onResize:function(e){var t=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender(function(){var n=t.sizeRestrictions,i=Math.min(t.coordinates.width,t.coordinates.height,20*t.coefficient);t.coordinates=t.resizeAlgorithm(Et(Et({},t.getPublicProperties()),{},{positionRestrictions:ts(t.positionRestrictions,t.visibleArea),sizeRestrictions:{maxWidth:Math.min(n.maxWidth,t.visibleArea.width),maxHeight:Math.min(n.maxHeight,t.visibleArea.height),minWidth:Math.max(n.minWidth,i),minHeight:Math.max(n.minHeight,i)},event:t.normalizeEvent(e)})),t.onChange(),t.ticking=!1})},onManipulateImage:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var n=t.transitions,i=n!==void 0&&n,s=t.normalize,r=s===void 0||s;i&&this.enableTransitions();var a=yy(Et(Et({},this.getPublicProperties()),{},{event:r?this.normalizeEvent(e):e,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),c=a.visibleArea,l=a.coordinates;this.visibleArea=c,this.coordinates=l,this.runAutoZoom("manipulateImage"),this.onChange(),i&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.visibleArea,n=e.type,i=n===void 0?"move":n;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:t,type:i})},getAspectRatio:function(e){var t,n,i=this.stencilProps,s=i.aspectRatio,r=i.minAspectRatio,a=i.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var c=this.$refs.stencil.aspectRatios();t=c.minimum,n=c.maximum}if(ee(t)&&(t=ee(s)?r:s),ee(n)&&(n=ee(s)?a:s),!e&&(ee(t)||ee(n))){var l=this.getStencilSize(),d=l?xt(l):null;ee(t)&&(t=ec(d)?d:void 0),ee(n)&&(n=ec(d)?d:void 0)}return{minimum:t,maximum:n}},getStencilSize:function(){if(this.stencilSize)return e={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)},t=e.boundaries,n=e.stencilSize,i=e.aspectRatio,Ea(xt(s=ho(n)?n({boundaries:t,aspectRatio:i}):n),i)&&(s=rn({sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minWidth:0,minHeight:0},width:s.width,height:s.height,aspectRatio:{minimum:i.minimum,maximum:i.maximum}})),(s.width>t.width||s.height>t.height)&&(s=rn({sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minWidth:0,minHeight:0},width:s.width,height:s.height,aspectRatio:{minimum:xt(s),maximum:xt(s)}})),s;var e,t,n,i,s},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 Et({},ac)},flip:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.transitions,s=i===void 0||i;if(!this.transitionsActive){s&&this.enableTransitions();var r=Et({},this.imageTransforms.flip),a=Sy({flip:{horizontal:e?!r.horizontal:r.horizontal,vertical:t?!r.vertical:r.vertical},previousFlip:r,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),c=a.visibleArea,l=a.coordinates;e&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),t&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=c,this.coordinates=l,this.onChange(),s&&this.debouncedDisableTransitions()}},rotate:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transitions,i=n===void 0||n;if(!this.transitionsActive){i&&this.enableTransitions();var s=Et({},this.imageSize);this.appliedImageTransforms.rotate+=e;var r=by({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:s,imageSize:this.imageSize,angle:e,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=r.visibleArea,c=r.coordinates,l=this.processAutoZoom("rotateImage",a,c);a=l.visibleArea,c=l.coordinates,this.visibleArea=a,this.coordinates=c,this.onChange(),i&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},Ty={key:0,ref:"canvas",style:{display:"none"}},By={key:1,ref:"sourceCanvas",style:{display:"none"}};Cc.render=function(e,t,n,i,s,r){return o.openBlock(),o.createBlock("div",{ref:"cropper",class:r.classes.cropper},[o.createVNode("div",{ref:"stretcher",class:r.classes.stretcher},null,2),o.createVNode("div",{class:r.classes.boundaries,style:r.boundariesStyle},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.backgroundWrapperComponent),{class:r.classes.cropperWrapper,"wheel-resize":r.settings.resizeImage.wheel,"touch-resize":r.settings.resizeImage.touch,"touch-move":r.settings.moveImage.touch,"mouse-move":r.settings.moveImage.mouse,onMove:r.onManipulateImage,onResize:r.onManipulateImage},{default:o.withCtx(function(){return[o.createVNode("div",{class:r.classes.background,style:r.boundariesStyle},null,6),o.createVNode("div",{class:r.classes.imageWrapper},[o.createVNode("img",{ref:"image",crossorigin:s.imageAttributes.crossOrigin,src:s.imageAttributes.src,class:r.classes.image,style:r.imageStyle,onMousedown:t[1]||(t[1]=o.withModifiers(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),o.createVNode("div",{class:r.classes.foreground,style:r.boundariesStyle},null,6),o.withDirectives((o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.stencilComponent),o.mergeProps({ref:"stencil",image:r.image,coordinates:s.coordinates,"stencil-coordinates":r.stencilCoordinates,transitions:r.transitionsOptions},n.stencilProps,{onResize:r.onResize,onResizeEnd:r.onResizeEnd,onMove:r.onMove,onMoveEnd:r.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[o.vShow,s.imageLoaded]]),n.canvas?(o.openBlock(),o.createBlock("canvas",Ty,null,512)):o.createCommentVNode("",!0),n.canvas?(o.openBlock(),o.createBlock("canvas",By,null,512)):o.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const ky={width:0,height:0,left:0,top:0};class Ba{constructor(){f(this,"id");f(this,"ratio",0);f(this,"src","");f(this,"coordinates",ky)}setCoordinates(t){this.coordinates=t}getCoordinates(){return this.coordinates}static Create(t,n=0,i){const s=new Ba;return s.src=t,s.ratio=n,s.id=i,s}setRatio(t){this.ratio=t}getRatio(){return this.ratio}setSrc(t){this.src=t}getSrc(){return this.src}}const Ny={class:"background-container"},Dy={class:"dialog-footer"},Fy=U(o.defineComponent({__name:"ImageCropper",props:{src:{type:String,required:!0},ratio:{type:Number,required:!1,default:1}},emits:["crop","close","update:ratio"],setup(e,{emit:t}){const n=e,i=t,s=o.ref(n.ratio),r=o.ref(Ba.Create(n.src,n.ratio));r.value.setRatio(s.value);const a=()=>{r.value.setRatio(s.value)},c=o.ref(),l=async()=>{const d=c.value.getResult();d&&d.canvas.toBlob(u=>{var h;i("crop",{blob:u,src:(h=d.canvas)==null?void 0:h.toDataURL()}),i("update:ratio",r.value.coordinates.width/r.value.coordinates.height)})};return(d,u)=>(o.openBlock(),o.createElementBlock("div",Ny,[o.createVNode(Ai,{modelValue:o.unref(s),"onUpdate:modelValue":u[0]||(u[0]=h=>o.isRef(s)?s.value=h:null),label:"Задайте пропорции фото",width:"100%",margin:"0 0 20px 0",onChange:a},{default:o.withCtx(()=>[...u[2]||(u[2]=[o.createElementVNode("option",{label:"2:3 (формат A4)",value:2/3},null,-1),o.createElementVNode("option",{label:"4:3 (для карточек новостей)",value:4/3},null,-1),o.createElementVNode("option",{label:"1:1 (для фото сотрудников)",value:1},null,-1),o.createElementVNode("option",{label:"3:2",value:3/2},null,-1),o.createElementVNode("option",{label:"16:9",value:16/9},null,-1),o.createElementVNode("option",{label:"3:4 (вертикальное изображение)",value:3/4},null,-1),o.createElementVNode("option",{label:"Задать пропорции вручную",value:0},null,-1)])]),_:1},8,["modelValue"]),o.createVNode(o.unref(Cc),{ref_key:"cropperRef",ref:c,src:o.unref(r).src,"stencil-props":{aspectRatio:o.unref(r).ratio},style:{"max-height":"50vh","min-height":"50vh"},onChange:u[1]||(u[1]=h=>o.unref(r).setCoordinates(h.coordinates))},null,8,["src","stencil-props"]),o.createElementVNode("div",Dy,[o.createVNode(Le,{skin:"text",type:"primary",text:"Сохранить",onClick:l})])]))}}),[["__scopeId","data-v-7b32def2"]]),Vy=U(o.defineComponent({__name:"IconUploaderChange",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#uploader-change"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"uploader-change",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[o.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"]]),zy=U(o.defineComponent({__name:"IconUploaderDel",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#uploader-del"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"uploader-del",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[o.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"]]),Ly=U(o.defineComponent({__name:"IconUploaderPlus",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon",e.iconClass]),style:o.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},[...n[0]||(n[0]=[o.createElementVNode("use",{"xlink:href":"#uploader-plus"},null,-1)])],6)),n[1]||(n[1]=o.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[o.createElementVNode("symbol",{id:"uploader-plus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[o.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"]]),Hy={key:0},Uy=["src"],jy={class:"tools-button"},Gy={key:1},Wy=["id"],Xy=o.defineComponent({__name:"PUploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{type:se,required:!0,default:new se},height:{type:Number,default:150},emitCrop:{type:Boolean,default:!1},ratio:{type:Number,required:!1,default:1}},emits:["crop","removeFile","update:ratio"],setup(e,{emit:t}){const n=o.computed(()=>({width:r.height*h.value+"px",height:r.height+"px"})),i=o.computed(()=>({width:h.value<.66?r.height*.66+"px":r.height*h.value+"px",height:r.height+"px"})),s=o.computed(()=>({width:h.value<.66?r.height*.66+"px":r.height*h.value+"px",height:r.height+"px"})),r=e,a=t,c=o.ref(void 0),l=$t.GUID(),d=o.ref(!1),u=o.ref(),h=o.ref(r.ratio),m=o.ref(""),p=()=>{c.value=void 0,h.value=1,a("update:ratio",1),a("removeFile"),v=document.getElementById(l),v.value=""},g=x=>{x.blob.src=x.src,r.fileInfo.setFile(x.blob),r.fileInfo.fileSystemPath&&(c.value=r.fileInfo),d.value=!1,a("crop")};o.watch(()=>[r.fileInfo.description,r.fileInfo.order,r.fileInfo.fileSystemPath],()=>{r.fileInfo.fileSystemPath&&(c.value=r.fileInfo,c.value.url=r.fileInfo.getFileUrl())}),o.onBeforeMount(()=>{r.fileInfo.fileSystemPath&&(c.value=r.fileInfo,c.value.url=r.fileInfo.getFileUrl())});let v=null;o.onMounted(()=>{document.getElementById("drop-area")&&(v=document.getElementById(l))});const b=()=>{v&&v.click()},S=x=>{m.value=x.url,d.value=!0},C=()=>{if(!v||!v.files||!v.files.length)return;const x=v.files[0];x.url=URL.createObjectURL(x),c.value=x,r.fileInfo.setFile(x),r.withCrop&&S(c.value)};return o.watch(h,x=>{a("update:ratio",x)}),(x,I)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{id:"drop-area",class:"img-container",style:o.normalizeStyle(o.unref(n))},[o.unref(c)?(o.openBlock(),o.createElementBlock("div",Hy,[o.createElementVNode("div",{class:"img-block",style:o.normalizeStyle(o.unref(i))},[o.createElementVNode("img",{src:o.unref(c).url,alt:"upload-image"},null,8,Uy)],4),o.createElementVNode("div",jy,[o.createElementVNode("div",{class:"ins",style:o.normalizeStyle(o.unref(s))},[o.createElementVNode("div",{class:"change",onClick:I[0]||(I[0]=R=>S(o.unref(c)))},[o.createVNode(Vy,{margin:"0 10px 0 0",size:"40px"})]),o.createElementVNode("div",{claSS:"del",onClick:I[1]||(I[1]=R=>p())},[o.createVNode(zy,{size:"40px"})])],4)])])):(o.openBlock(),o.createElementBlock("div",Gy,[o.createElementVNode("div",{class:"add-button",style:o.normalizeStyle({width:e.height*o.unref(h)-2+"px",height:e.height-2+"px"}),onClick:b},[o.createVNode(Ly,{size:"40px"})],4)]))],4),o.createElementVNode("input",{id:o.unref(l),ref_key:"uploader",ref:u,hidden:"",type:"file",onChange:C},null,40,Wy),o.createVNode(pa,{show:o.unref(d),title:"Настройка изображения","max-height":"90vh",top:"5vh"},{default:o.withCtx(()=>[o.createVNode(Fy,{ratio:o.unref(h),"onUpdate:ratio":I[2]||(I[2]=R=>o.isRef(h)?h.value=R:null),src:o.unref(m),onCrop:g,onClose:I[3]||(I[3]=R=>d.value=!1)},null,8,["ratio","src"])]),_:1},8,["show"])],64))}}),Yy=U(Xy,[["__scopeId","data-v-d0c48ec7"]]);function Ky(e){e.component("PTabs",X1),e.component("PUploaderFile",$1),e.component("PUploaderImage",Yy),e.component("PAuthForm",Ql),e.component("PAuthModal",U1),e.component("PNameEdit",G1)}const Zy={install:function(e){Ep(e),L1(e),uv(e),Ky(e),Jg(e)}};function Qy(e,t={}){const{quasarPlugins:n=!0}=t;n&&e.use(it.Quasar,{plugins:{Notify:it.Notify,Dialog:it.Dialog}}),Zy.install(e)}class Jy extends qo{constructor(){super(...arguments);f(this,"label","Логин");f(this,"name","login");f(this,"validator",new za);f(this,"method",Xn.Login);f(this,"id","field-auth-login")}}const _y=["PF","PFM"],qy=U(o.defineComponent({__name:"ExtractCreateForm",emits:["create"],setup(e,{emit:t}){const n=t,i=ExtractsStore.Item,s=async()=>{await ExtractsStore.Create(),ExtractsStore.AppendToAll([i]),n("create")};return(r,a)=>{const c=o.resolveComponent("PInput"),l=o.resolveComponent("PButton");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(c,{modelValue:o.unref(i).name,"onUpdate:modelValue":a[0]||(a[0]=d=>o.unref(i).name=d)},null,8,["modelValue"]),o.createVNode(l,{text:"Создать",onClick:s})],64)}}}),[["__scopeId","data-v-acdf750a"]]),$y=Object.freeze(Object.defineProperty({__proto__:null,default:U(o.defineComponent({__name:"ExtractsList",setup(e){const t=o.ref(!1),n=o.ref(!1),i=async()=>{n.value=!0},s=async()=>{await Promise.all([i()])},r=()=>{t.value=!t.value};return W.H.Hooks.onBeforeMount(s),(a,c)=>{const l=qy,d=o.resolveComponent("PModal");return o.unref(t)?(o.openBlock(),o.createBlock(d,{key:0,show:o.unref(t)},{default:o.withCtx(()=>[o.createVNode(l,{onCreate:r})]),_:1},8,["show"])):o.createCommentVNode("",!0)}}}),[["__scopeId","data-v-03915680"]])},Symbol.toStringTag,{value:"Module"}));ct.AuthButtonLogin=ss,ct.AuthButtonRefresh=Fa,ct.AuthButtonRegister=as,ct.AuthButtonRestore=_o,ct.AuthChunks=ne,ct.AuthFieldsIds=en,ct.AuthFormSettings=Ha,ct.AuthMethods=Xn,ct.EmailField=$o,ct.LoginField=Jy,ct.PBadge=ul,ct.PButton=Le,ct.PCard=El,ct.PCheckBox=fl,ct.PChip=hl,ct.PCrudList=Kl,ct.PDateInput=ml,ct.PDialog=Ys,ct.PEditDialog=Zl,ct.PF=W,ct.PFM=qm,ct.PHint=Qs,ct.PInput=pn,ct.POptionsListSingle=pl,ct.POpts=gl,ct.PSelect=Ai,ct.PTableToggle=vl,ct.PToggle=yl,ct.PasswordField=ti,ct.PasswordRepeatField=La,ct.installSprof=Qy,ct.pfName=_y,Object.defineProperty(ct,Symbol.toStringTag,{value:"Module"})});
|
|
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"})});
|