r3ui-lib 1.2.17 → 1.2.18
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/r3ui-lib.es.js +1971 -1955
- package/dist/r3ui-lib.umd.js +15 -15
- package/dist/types/composables/table/useTableDefault.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/r3ui-lib.umd.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
(function(ee,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(ee=typeof globalThis<"u"?globalThis:ee||self,a(ee.R3uiLib={},ee.Vue))})(this,(function(ee,a){"use strict";const Lr={__name:"Spinner",props:{isSmall:{type:Boolean,default:!1}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["spinner-border",{"spinner-border-sm":n.isSmall}]),role:"status"},null,2))}},Br={__name:"Icon",props:{name:{type:String,required:!0}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("i",{class:a.normalizeClass(`bi bi-${n.name}`)},null,2))}},Od={class:"d-inline-flex align-items-center justify-content-center"},Ld={key:2},Fr={__name:"DefaultButton",props:{label:{type:String,default:""},icon:{type:String,default:""},iconPosition:{type:String,default:"left",validator(n){return["right","left"].includes(n)}},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isFullWidth:{type:Boolean,default:!1},customClasses:{type:Array,default:()=>[]},styles:{type:String,default:"primary",validator(n){return["primary","light","secondary","success","danger","warning","info"].includes(n)}}},emits:["submit"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>`btn-${t.styles}`);function s(){t.isLoading||t.isDisabled||i("submit")}return(o,l)=>(a.openBlock(),a.createElementBlock("button",{"data-test":"DefaultButton",class:a.normalizeClass(["btn",[n.isLoading||n.isDisabled?"disabled":"",n.isFullWidth?"w-100":"",n.styles?r.value:"",...n.customClasses]]),onClick:a.withModifiers(s,["prevent"])},[a.createElementVNode("div",Od,[n.icon&&n.iconPosition==="left"?(a.openBlock(),a.createBlock(Br,{key:0,name:n.icon,class:a.normalizeClass(n.label?"me-2":"")},null,8,["name","class"])):a.createCommentVNode("",!0),n.isLoading?(a.openBlock(),a.createBlock(Lr,{key:1,isSmall:!0,class:"pe-2"})):a.createCommentVNode("",!0),n.label?(a.openBlock(),a.createElementBlock("span",Ld,a.toDisplayString(n.label),1)):a.createCommentVNode("",!0),n.icon&&n.iconPosition==="right"?(a.openBlock(),a.createBlock(Br,{key:3,name:n.icon,class:a.normalizeClass(n.label?"ms-2":"")},null,8,["name","class"])):a.createCommentVNode("",!0)])],2))}},Bd=a.defineComponent({__name:"AddButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},iconClass:{default:"bi bi-plus-circle-fill pe-2"}},emits:["click"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("click")};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["d-flex add-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"AddButton",onClick:r},[a.createElementVNode("i",{class:a.normalizeClass(s.iconClass)},null,2),a.createTextVNode(" "+a.toDisplayString(s.label||s.text||"Добавить"),1)],2))}}),Ie=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},il=Ie(Bd,[["__scopeId","data-v-cf07042b"]]),Fd={"data-test":"CollapseButton"},_d=["id"],Pd=["id"],Nd=Ie(a.defineComponent({__name:"CollapseButton",props:{isCollapsed:{type:Boolean,default:!0},expandText:{default:"Развернуть все"},collapseText:{default:"Свернуть все"},expandId:{default:"expand-filters-btn"},collapseId:{default:"collapse-filters-btn"},buttonStyle:{default:"padding: 8px 24px; margin-bottom: 32px"},iconStyle:{default:"font-size: 10px"},expandLabel:{default:"Развернуть все"},collapseLabel:{default:"Свернуть все"},isColapsed:{type:Boolean}},emits:["emitCollapseToggle","emitColapsed","expand","collapse"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>t.isCollapsed),s=a.computed(()=>t.expandText),o=a.computed(()=>t.collapseText),l=()=>{i("emitCollapseToggle",!1),i("emitColapsed",!1),i("expand")},u=()=>{i("emitCollapseToggle",!0),i("emitColapsed",!0),i("collapse")};return(c,d)=>(a.openBlock(),a.createElementBlock("div",Fd,[r.value?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",id:c.expandId,class:"btn btn-light collapse-button",onClick:l,style:a.normalizeStyle(c.buttonStyle)},[a.createTextVNode(a.toDisplayString(s.value)+" ",1),a.createElementVNode("i",{class:"bi bi-caret-down-fill",style:a.normalizeStyle(c.iconStyle)},null,4)],12,_d)):a.createCommentVNode("",!0),r.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",id:c.collapseId,class:"btn btn-light collapse-button",onClick:u,style:a.normalizeStyle(c.buttonStyle)},[a.createTextVNode(a.toDisplayString(o.value)+" ",1),a.createElementVNode("i",{class:"bi bi-caret-up-fill",style:a.normalizeStyle(c.iconStyle)},null,4)],12,Pd))]))}}),[["__scopeId","data-v-a0502514"]]),Id=Ie(a.defineComponent({__name:"ExportButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},exportType:{default:"default"}},emits:["export"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("export",t.exportType)};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["col-auto export-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"ExportButton",onClick:r},[a.createTextVNode(a.toDisplayString(s.label||s.text||"Экспорт")+" ",1),o[0]||(o[0]=a.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],2))}}),[["__scopeId","data-v-20f08c06"]]),Hd=Ie(a.defineComponent({__name:"PrintButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1}},emits:["print"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||(window.print(),i("print"))};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["col-auto print-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"PrintButton",onClick:r},[a.createTextVNode(a.toDisplayString(s.label||s.text||"Печать")+" ",1),o[0]||(o[0]=a.createElementVNode("i",{class:"ps-2 bi bi-printer-fill"},null,-1))],2))}}),[["__scopeId","data-v-52020521"]]),Vd=["disabled"],zd={class:"clear-form-button__label"},jd=Ie(a.defineComponent({__name:"ClearFormButton",props:{label:{default:"Очистить"},disabled:{type:Boolean,default:!1}},emits:["clear"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("clear",!0)};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["clear-form-button",{"clear-form-button--disabled":s.disabled}]),disabled:s.disabled,"data-test":"ClearFormButton",onClick:r},[o[0]||(o[0]=a.createElementVNode("div",{class:"clear-form-button__icon"},[a.createElementVNode("i",{class:"bi bi-trash-fill"})],-1)),a.createElementVNode("div",zd,a.toDisplayString(s.label),1)],10,Vd))}}),[["__scopeId","data-v-ed163ff4"]]),Wd={class:"toggle-buttons","data-test":"ToggleButtons"},Ud=["onClick"],Gd=Ie(a.defineComponent({__name:"ToggleButtons",props:{options:{},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=r=>{t("update:modelValue",r.name)};return(r,s)=>(a.openBlock(),a.createElementBlock("div",Wd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.options,o=>(a.openBlock(),a.createElementBlock("button",{key:o.name,type:"button",class:a.normalizeClass(["toggle-buttons__button",{"toggle-buttons__button--active":r.modelValue===o.name}]),onClick:l=>i(o)},a.toDisplayString(o.title),11,Ud))),128))]))}}),[["__scopeId","data-v-4eae7f5d"]]);var nl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Yd(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var _r,sl;function Oi(){return sl||(sl=1,_r=TypeError),_r}const Qd=Yd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Pr,al;function On(){if(al)return Pr;al=1;var n=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=n&&e&&typeof e.get=="function"?e.get:null,i=n&&Map.prototype.forEach,r=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=r&&s&&typeof s.get=="function"?s.get:null,l=r&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,c=u?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,f=d?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,h=p?WeakRef.prototype.deref:null,k=Boolean.prototype.valueOf,C=Object.prototype.toString,A=Function.prototype.toString,w=String.prototype.match,m=String.prototype.slice,D=String.prototype.replace,g=String.prototype.toUpperCase,M=String.prototype.toLowerCase,v=RegExp.prototype.test,x=Array.prototype.concat,y=Array.prototype.join,S=Array.prototype.slice,b=Math.floor,T=typeof BigInt=="function"?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,N=typeof Symbol=="function"&&typeof Symbol.iterator=="object",W=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===N||!0)?Symbol.toStringTag:null,G=Object.prototype.propertyIsEnumerable,I=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(te){return te.__proto__}:null);function H(te,re){if(te===1/0||te===-1/0||te!==te||te&&te>-1e3&&te<1e3||v.call(/e/,re))return re;var Pe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof te=="number"){var ze=te<0?-b(-te):b(te);if(ze!==te){var Oe=String(ze),Re=m.call(re,Oe.length+1);return D.call(Oe,Pe,"$&_")+"."+D.call(D.call(Re,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(re,Pe,"$&_")}var K=Qd,F=K.custom,P=oe(F)?F:null,Q={__proto__:null,double:'"',single:"'"},j={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Pr=function te(re,Pe,ze,Oe){var Re=Pe||{};if(xe(Re,"quoteStyle")&&!xe(Q,Re.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xe(Re,"maxStringLength")&&(typeof Re.maxStringLength=="number"?Re.maxStringLength<0&&Re.maxStringLength!==1/0:Re.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ct=xe(Re,"customInspect")?Re.customInspect:!0;if(typeof ct!="boolean"&&ct!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xe(Re,"indent")&&Re.indent!==null&&Re.indent!==" "&&!(parseInt(Re.indent,10)===Re.indent&&Re.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xe(Re,"numericSeparator")&&typeof Re.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ge=Re.numericSeparator;if(typeof re>"u")return"undefined";if(re===null)return"null";if(typeof re=="boolean")return re?"true":"false";if(typeof re=="string")return Me(re,Re);if(typeof re=="number"){if(re===0)return 1/0/re>0?"0":"-0";var B=String(re);return ge?H(re,B):B}if(typeof re=="bigint"){var E=String(re)+"n";return ge?H(re,E):E}var O=typeof Re.depth>"u"?5:Re.depth;if(typeof ze>"u"&&(ze=0),ze>=O&&O>0&&typeof re=="object")return $(re)?"[Array]":"[Object]";var _=Rt(Re,ze);if(typeof Oe>"u")Oe=[];else if(Ne(Oe,re)>=0)return"[Circular]";function Y(jt,$t,Xi){if($t&&(Oe=S.call(Oe),Oe.push($t)),Xi){var Di={depth:Re.depth};return xe(Re,"quoteStyle")&&(Di.quoteStyle=Re.quoteStyle),te(jt,Di,ze+1,Oe)}return te(jt,Re,ze+1,Oe)}if(typeof re=="function"&&!J(re)){var ne=_e(re),ce=Ge(re,Y);return"[Function"+(ne?": "+ne:" (anonymous)")+"]"+(ce.length>0?" { "+y.call(ce,", ")+" }":"")}if(oe(re)){var fe=N?D.call(String(re),/^(Symbol\(.*\))_[^)]*$/,"$1"):L.call(re);return typeof re=="object"&&!N?Se(fe):fe}if(ke(re)){for(var pe="<"+M.call(String(re.nodeName)),be=re.attributes||[],Ce=0;Ce<be.length;Ce++)pe+=" "+be[Ce].name+"="+q(X(be[Ce].value),"double",Re);return pe+=">",re.childNodes&&re.childNodes.length&&(pe+="..."),pe+="</"+M.call(String(re.nodeName))+">",pe}if($(re)){if(re.length===0)return"[]";var De=Ge(re,Y);return _&&!je(De)?"["+At(De,_)+"]":"[ "+y.call(De,", ")+" ]"}if(ue(re)){var We=Ge(re,Y);return!("cause"in Error.prototype)&&"cause"in re&&!G.call(re,"cause")?"{ ["+String(re)+"] "+y.call(x.call("[cause]: "+Y(re.cause),We),", ")+" }":We.length===0?"["+String(re)+"]":"{ ["+String(re)+"] "+y.call(We,", ")+" }"}if(typeof re=="object"&&ct){if(P&&typeof re[P]=="function"&&K)return K(re,{depth:O-ze});if(ct!=="symbol"&&typeof re.inspect=="function")return re.inspect()}if(de(re)){var Be=[];return i&&i.call(re,function(jt,$t){Be.push(Y($t,re,!0)+" => "+Y(jt,re))}),et("Map",t.call(re),Be,_)}if(me(re)){var qe=[];return l&&l.call(re,function(jt){qe.push(Y(jt,re))}),et("Set",o.call(re),qe,_)}if(Z(re))return Le("WeakMap");if(he(re))return Le("WeakSet");if(ie(re))return Le("WeakRef");if(U(re))return Se(Y(Number(re)));if(ye(re))return Se(Y(T.call(re)));if(le(re))return Se(k.call(re));if(V(re))return Se(Y(String(re)));if(typeof window<"u"&&re===window)return"{ [object Window] }";if(typeof globalThis<"u"&&re===globalThis||typeof nl<"u"&&re===nl)return"{ [object globalThis] }";if(!z(re)&&!J(re)){var Xe=Ge(re,Y),at=I?I(re)===Object.prototype:re instanceof Object||re.constructor===Object,nt=re instanceof Object?"":"null prototype",yi=!at&&W&&Object(re)===re&&W in re?m.call(Fe(re),8,-1):nt?"Object":"",Ti=at||typeof re.constructor!="function"?"":re.constructor.name?re.constructor.name+" ":"",ci=Ti+(yi||nt?"["+y.call(x.call([],yi||[],nt||[]),": ")+"] ":"");return Xe.length===0?ci+"{}":_?ci+"{"+At(Xe,_)+"}":ci+"{ "+y.call(Xe,", ")+" }"}return String(re)};function q(te,re,Pe){var ze=Pe.quoteStyle||re,Oe=Q[ze];return Oe+te+Oe}function X(te){return D.call(String(te),/"/g,""")}function ae(te){return!W||!(typeof te=="object"&&(W in te||typeof te[W]<"u"))}function $(te){return Fe(te)==="[object Array]"&&ae(te)}function z(te){return Fe(te)==="[object Date]"&&ae(te)}function J(te){return Fe(te)==="[object RegExp]"&&ae(te)}function ue(te){return Fe(te)==="[object Error]"&&ae(te)}function V(te){return Fe(te)==="[object String]"&&ae(te)}function U(te){return Fe(te)==="[object Number]"&&ae(te)}function le(te){return Fe(te)==="[object Boolean]"&&ae(te)}function oe(te){if(N)return te&&typeof te=="object"&&te instanceof Symbol;if(typeof te=="symbol")return!0;if(!te||typeof te!="object"||!L)return!1;try{return L.call(te),!0}catch{}return!1}function ye(te){if(!te||typeof te!="object"||!T)return!1;try{return T.call(te),!0}catch{}return!1}var we=Object.prototype.hasOwnProperty||function(te){return te in this};function xe(te,re){return we.call(te,re)}function Fe(te){return C.call(te)}function _e(te){if(te.name)return te.name;var re=w.call(A.call(te),/^function\s*([\w$]+)/);return re?re[1]:null}function Ne(te,re){if(te.indexOf)return te.indexOf(re);for(var Pe=0,ze=te.length;Pe<ze;Pe++)if(te[Pe]===re)return Pe;return-1}function de(te){if(!t||!te||typeof te!="object")return!1;try{t.call(te);try{o.call(te)}catch{return!0}return te instanceof Map}catch{}return!1}function Z(te){if(!c||!te||typeof te!="object")return!1;try{c.call(te,c);try{f.call(te,f)}catch{return!0}return te instanceof WeakMap}catch{}return!1}function ie(te){if(!h||!te||typeof te!="object")return!1;try{return h.call(te),!0}catch{}return!1}function me(te){if(!o||!te||typeof te!="object")return!1;try{o.call(te);try{t.call(te)}catch{return!0}return te instanceof Set}catch{}return!1}function he(te){if(!f||!te||typeof te!="object")return!1;try{f.call(te,f);try{c.call(te,c)}catch{return!0}return te instanceof WeakSet}catch{}return!1}function ke(te){return!te||typeof te!="object"?!1:typeof HTMLElement<"u"&&te instanceof HTMLElement?!0:typeof te.nodeName=="string"&&typeof te.getAttribute=="function"}function Me(te,re){if(te.length>re.maxStringLength){var Pe=te.length-re.maxStringLength,ze="... "+Pe+" more character"+(Pe>1?"s":"");return Me(m.call(te,0,re.maxStringLength),re)+ze}var Oe=j[re.quoteStyle||"single"];Oe.lastIndex=0;var Re=D.call(D.call(te,Oe,"\\$1"),/[\x00-\x1f]/g,se);return q(Re,"single",re)}function se(te){var re=te.charCodeAt(0),Pe={8:"b",9:"t",10:"n",12:"f",13:"r"}[re];return Pe?"\\"+Pe:"\\x"+(re<16?"0":"")+g.call(re.toString(16))}function Se(te){return"Object("+te+")"}function Le(te){return te+" { ? }"}function et(te,re,Pe,ze){var Oe=ze?At(Pe,ze):y.call(Pe,", ");return te+" ("+re+") {"+Oe+"}"}function je(te){for(var re=0;re<te.length;re++)if(Ne(te[re],`
|
|
2
|
-
`)>=0)return!1;return!0}function Rt(te,
|
|
3
|
-
`+
|
|
4
|
-
`+re.prev}function Ge(te,re){var Pe=$(te),ze=[];if(Pe){ze.length=te.length;for(var Oe=0;Oe<te.length;Oe++)ze[Oe]=xe(te,Oe)?re(te[Oe],te):""}var Re=typeof R=="function"?R(te):[],ct;if(N){ct={};for(var ge=0;ge<Re.length;ge++)ct["$"+Re[ge]]=Re[ge]}for(var B in te)xe(te,B)&&(Pe&&String(Number(B))===B&&B<te.length||N&&ct["$"+B]instanceof Symbol||(v.call(/[^\w$]/,B)?ze.push(re(B,te)+": "+re(te[B],te)):ze.push(B+": "+re(te[B],te))));if(typeof R=="function")for(var E=0;E<Re.length;E++)G.call(te,Re[E])&&ze.push("["+re(Re[E])+"]: "+re(te[Re[E]],te));return ze}return Pr}var Nr,ol;function Kd(){if(ol)return Nr;ol=1;var n=On(),e=Oi(),t=function(l,u,c){for(var d=l,f;(f=d.next)!=null;d=f)if(f.key===u)return d.next=f.next,c||(f.next=l.next,l.next=f),f},i=function(l,u){if(l){var c=t(l,u);return c&&c.value}},r=function(l,u,c){var d=t(l,u);d?d.value=c:l.next={key:u,next:l.next,value:c}},s=function(l,u){return l?!!t(l,u):!1},o=function(l,u){if(l)return t(l,u,!0)};return Nr=function(){var u,c={assert:function(d){if(!c.has(d))throw new e("Side channel does not contain "+n(d))},delete:function(d){var f=u&&u.next,p=o(u,d);return p&&f&&f===p&&(u=void 0),!!p},get:function(d){return i(u,d)},has:function(d){return s(u,d)},set:function(d,f){u||(u={next:void 0}),r(u,d,f)}};return c},Nr}var Ir,ll;function ul(){return ll||(ll=1,Ir=Object),Ir}var Hr,cl;function Jd(){return cl||(cl=1,Hr=Error),Hr}var Vr,dl;function qd(){return dl||(dl=1,Vr=EvalError),Vr}var zr,hl;function $d(){return hl||(hl=1,zr=RangeError),zr}var jr,fl;function Zd(){return fl||(fl=1,jr=ReferenceError),jr}var Wr,pl;function Xd(){return pl||(pl=1,Wr=SyntaxError),Wr}var Ur,ml;function eh(){return ml||(ml=1,Ur=URIError),Ur}var Gr,gl;function th(){return gl||(gl=1,Gr=Math.abs),Gr}var Yr,bl;function ih(){return bl||(bl=1,Yr=Math.floor),Yr}var Qr,vl;function nh(){return vl||(vl=1,Qr=Math.max),Qr}var Kr,yl;function rh(){return yl||(yl=1,Kr=Math.min),Kr}var Jr,wl;function sh(){return wl||(wl=1,Jr=Math.pow),Jr}var qr,Cl;function ah(){return Cl||(Cl=1,qr=Math.round),qr}var $r,Al;function oh(){return Al||(Al=1,$r=Number.isNaN||function(e){return e!==e}),$r}var Zr,El;function lh(){if(El)return Zr;El=1;var n=oh();return Zr=function(t){return n(t)||t===0?t:t<0?-1:1},Zr}var Xr,kl;function uh(){return kl||(kl=1,Xr=Object.getOwnPropertyDescriptor),Xr}var es,Sl;function xl(){if(Sl)return es;Sl=1;var n=uh();if(n)try{n([],"length")}catch{n=null}return es=n,es}var ts,Rl;function ch(){if(Rl)return ts;Rl=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return ts=n,ts}var is,Ml;function dh(){return Ml||(Ml=1,is=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==r||l.enumerable!==!0)return!1}return!0}),is}var ns,Tl;function hh(){if(Tl)return ns;Tl=1;var n=typeof Symbol<"u"&&Symbol,e=dh();return ns=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ns}var rs,Dl;function Ol(){return Dl||(Dl=1,rs=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),rs}var ss,Ll;function Bl(){if(Ll)return ss;Ll=1;var n=ul();return ss=n.getPrototypeOf||null,ss}var as,Fl;function fh(){if(Fl)return as;Fl=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},s=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},o=function(l,u){for(var c="",d=0;d<l.length;d+=1)c+=l[d],d+1<l.length&&(c+=u);return c};return as=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==i)throw new TypeError(n+c);for(var d=s(arguments,1),f,p=function(){if(this instanceof f){var w=c.apply(this,r(d,arguments));return Object(w)===w?w:this}return c.apply(u,r(d,arguments))},h=t(0,c.length-d.length),k=[],C=0;C<h;C++)k[C]="$"+C;if(f=Function("binder","return function ("+o(k,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var A=function(){};A.prototype=c.prototype,f.prototype=new A,A.prototype=null}return f},as}var os,_l;function Ln(){if(_l)return os;_l=1;var n=fh();return os=Function.prototype.bind||n,os}var ls,Pl;function us(){return Pl||(Pl=1,ls=Function.prototype.call),ls}var cs,Nl;function Il(){return Nl||(Nl=1,cs=Function.prototype.apply),cs}var ds,Hl;function ph(){return Hl||(Hl=1,ds=typeof Reflect<"u"&&Reflect&&Reflect.apply),ds}var hs,Vl;function mh(){if(Vl)return hs;Vl=1;var n=Ln(),e=Il(),t=us(),i=ph();return hs=i||n.call(t,e),hs}var fs,zl;function jl(){if(zl)return fs;zl=1;var n=Ln(),e=Oi(),t=us(),i=mh();return fs=function(s){if(s.length<1||typeof s[0]!="function")throw new e("a function is required");return i(n,t,s)},fs}var ps,Wl;function gh(){if(Wl)return ps;Wl=1;var n=jl(),e=xl(),t;try{t=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var i=!!t&&e&&e(Object.prototype,"__proto__"),r=Object,s=r.getPrototypeOf;return ps=i&&typeof i.get=="function"?n([i.get]):typeof s=="function"?function(l){return s(l==null?l:r(l))}:!1,ps}var ms,Ul;function bh(){if(Ul)return ms;Ul=1;var n=Ol(),e=Bl(),t=gh();return ms=n?function(r){return n(r)}:e?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return e(r)}:t?function(r){return t(r)}:null,ms}var gs,Gl;function vh(){if(Gl)return gs;Gl=1;var n=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ln();return gs=t.call(n,e),gs}var bs,Yl;function vs(){if(Yl)return bs;Yl=1;var n,e=ul(),t=Jd(),i=qd(),r=$d(),s=Zd(),o=Xd(),l=Oi(),u=eh(),c=th(),d=ih(),f=nh(),p=rh(),h=sh(),k=ah(),C=lh(),A=Function,w=function(J){try{return A('"use strict"; return ('+J+").constructor;")()}catch{}},m=xl(),D=ch(),g=function(){throw new l},M=m?(function(){try{return arguments.callee,g}catch{try{return m(arguments,"callee").get}catch{return g}}})():g,v=hh()(),x=bh(),y=Bl(),S=Ol(),b=Il(),T=us(),R={},L=typeof Uint8Array>"u"||!x?n:x(Uint8Array),N={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":v&&x?x([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&x?x(x([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!v||!x?n:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":r,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!v||!x?n:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&x?x(""[Symbol.iterator]()):n,"%Symbol%":v?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":M,"%TypedArray%":L,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":b,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":y,"%Math.abs%":c,"%Math.floor%":d,"%Math.max%":f,"%Math.min%":p,"%Math.pow%":h,"%Math.round%":k,"%Math.sign%":C,"%Reflect.getPrototypeOf%":S};if(x)try{null.error}catch(J){var W=x(x(J));N["%Error.prototype%"]=W}var G=function J(ue){var V;if(ue==="%AsyncFunction%")V=w("async function () {}");else if(ue==="%GeneratorFunction%")V=w("function* () {}");else if(ue==="%AsyncGeneratorFunction%")V=w("async function* () {}");else if(ue==="%AsyncGenerator%"){var U=J("%AsyncGeneratorFunction%");U&&(V=U.prototype)}else if(ue==="%AsyncIteratorPrototype%"){var le=J("%AsyncGenerator%");le&&x&&(V=x(le.prototype))}return N[ue]=V,V},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H=Ln(),K=vh(),F=H.call(T,Array.prototype.concat),P=H.call(b,Array.prototype.splice),Q=H.call(T,String.prototype.replace),j=H.call(T,String.prototype.slice),q=H.call(T,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ae=/\\(\\)?/g,$=function(ue){var V=j(ue,0,1),U=j(ue,-1);if(V==="%"&&U!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(U==="%"&&V!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var le=[];return Q(ue,X,function(oe,ye,we,xe){le[le.length]=we?Q(xe,ae,"$1"):ye||oe}),le},z=function(ue,V){var U=ue,le;if(K(I,U)&&(le=I[U],U="%"+le[0]+"%"),K(N,U)){var oe=N[U];if(oe===R&&(oe=G(U)),typeof oe>"u"&&!V)throw new l("intrinsic "+ue+" exists, but is not available. Please file an issue!");return{alias:le,name:U,value:oe}}throw new o("intrinsic "+ue+" does not exist!")};return bs=function(ue,V){if(typeof ue!="string"||ue.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V!="boolean")throw new l('"allowMissing" argument must be a boolean');if(q(/^%?[^%]*%?$/,ue)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=$(ue),le=U.length>0?U[0]:"",oe=z("%"+le+"%",V),ye=oe.name,we=oe.value,xe=!1,Fe=oe.alias;Fe&&(le=Fe[0],P(U,F([0,1],Fe)));for(var _e=1,Ne=!0;_e<U.length;_e+=1){var de=U[_e],Z=j(de,0,1),ie=j(de,-1);if((Z==='"'||Z==="'"||Z==="`"||ie==='"'||ie==="'"||ie==="`")&&Z!==ie)throw new o("property names with quotes must have matching quotes");if((de==="constructor"||!Ne)&&(xe=!0),le+="."+de,ye="%"+le+"%",K(N,ye))we=N[ye];else if(we!=null){if(!(de in we)){if(!V)throw new l("base intrinsic for "+ue+" exists, but the property is not available.");return}if(m&&_e+1>=U.length){var me=m(we,de);Ne=!!me,Ne&&"get"in me&&!("originalValue"in me.get)?we=me.get:we=we[de]}else Ne=K(we,de),we=we[de];Ne&&!xe&&(N[ye]=we)}}return we},bs}var ys,Ql;function Kl(){if(Ql)return ys;Ql=1;var n=vs(),e=jl(),t=e([n("%String.prototype.indexOf%")]);return ys=function(r,s){var o=n(r,!!s);return typeof o=="function"&&t(r,".prototype.")>-1?e([o]):o},ys}var ws,Jl;function ql(){if(Jl)return ws;Jl=1;var n=vs(),e=Kl(),t=On(),i=Oi(),r=n("%Map%",!0),s=e("Map.prototype.get",!0),o=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),c=e("Map.prototype.size",!0);return ws=!!r&&function(){var f,p={assert:function(h){if(!p.has(h))throw new i("Side channel does not contain "+t(h))},delete:function(h){if(f){var k=u(f,h);return c(f)===0&&(f=void 0),k}return!1},get:function(h){if(f)return s(f,h)},has:function(h){return f?l(f,h):!1},set:function(h,k){f||(f=new r),o(f,h,k)}};return p},ws}var Cs,$l;function yh(){if($l)return Cs;$l=1;var n=vs(),e=Kl(),t=On(),i=ql(),r=Oi(),s=n("%WeakMap%",!0),o=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),c=e("WeakMap.prototype.delete",!0);return Cs=s?function(){var f,p,h={assert:function(k){if(!h.has(k))throw new r("Side channel does not contain "+t(k))},delete:function(k){if(s&&k&&(typeof k=="object"||typeof k=="function")){if(f)return c(f,k)}else if(i&&p)return p.delete(k);return!1},get:function(k){return s&&k&&(typeof k=="object"||typeof k=="function")&&f?o(f,k):p&&p.get(k)},has:function(k){return s&&k&&(typeof k=="object"||typeof k=="function")&&f?u(f,k):!!p&&p.has(k)},set:function(k,C){s&&k&&(typeof k=="object"||typeof k=="function")?(f||(f=new s),l(f,k,C)):i&&(p||(p=i()),p.set(k,C))}};return h}:i,Cs}var As,Zl;function wh(){if(Zl)return As;Zl=1;var n=Oi(),e=On(),t=Kd(),i=ql(),r=yh(),s=r||i||t;return As=function(){var l,u={assert:function(c){if(!u.has(c))throw new n("Side channel does not contain "+e(c))},delete:function(c){return!!l&&l.delete(c)},get:function(c){return l&&l.get(c)},has:function(c){return!!l&&l.has(c)},set:function(c,d){l||(l=s()),l.set(c,d)}};return u},As}var Es,Xl;function ks(){if(Xl)return Es;Xl=1;var n=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Es={default:t.RFC3986,formatters:{RFC1738:function(i){return n.call(i,e,"+")},RFC3986:function(i){return String(i)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},Es}var Ss,eu;function tu(){if(eu)return Ss;eu=1;var n=ks(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i=(function(){for(var A=[],w=0;w<256;++w)A.push("%"+((w<16?"0":"")+w.toString(16)).toUpperCase());return A})(),r=function(w){for(;w.length>1;){var m=w.pop(),D=m.obj[m.prop];if(t(D)){for(var g=[],M=0;M<D.length;++M)typeof D[M]<"u"&&g.push(D[M]);m.obj[m.prop]=g}}},s=function(w,m){for(var D=m&&m.plainObjects?{__proto__:null}:{},g=0;g<w.length;++g)typeof w[g]<"u"&&(D[g]=w[g]);return D},o=function A(w,m,D){if(!m)return w;if(typeof m!="object"&&typeof m!="function"){if(t(w))w.push(m);else if(w&&typeof w=="object")(D&&(D.plainObjects||D.allowPrototypes)||!e.call(Object.prototype,m))&&(w[m]=!0);else return[w,m];return w}if(!w||typeof w!="object")return[w].concat(m);var g=w;return t(w)&&!t(m)&&(g=s(w,D)),t(w)&&t(m)?(m.forEach(function(M,v){if(e.call(w,v)){var x=w[v];x&&typeof x=="object"&&M&&typeof M=="object"?w[v]=A(x,M,D):w.push(M)}else w[v]=M}),w):Object.keys(m).reduce(function(M,v){var x=m[v];return e.call(M,v)?M[v]=A(M[v],x,D):M[v]=x,M},g)},l=function(w,m){return Object.keys(m).reduce(function(D,g){return D[g]=m[g],D},w)},u=function(A,w,m){var D=A.replace(/\+/g," ");if(m==="iso-8859-1")return D.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(D)}catch{return D}},c=1024,d=function(w,m,D,g,M){if(w.length===0)return w;var v=w;if(typeof w=="symbol"?v=Symbol.prototype.toString.call(w):typeof w!="string"&&(v=String(w)),D==="iso-8859-1")return escape(v).replace(/%u[0-9a-f]{4}/gi,function(L){return"%26%23"+parseInt(L.slice(2),16)+"%3B"});for(var x="",y=0;y<v.length;y+=c){for(var S=v.length>=c?v.slice(y,y+c):v,b=[],T=0;T<S.length;++T){var R=S.charCodeAt(T);if(R===45||R===46||R===95||R===126||R>=48&&R<=57||R>=65&&R<=90||R>=97&&R<=122||M===n.RFC1738&&(R===40||R===41)){b[b.length]=S.charAt(T);continue}if(R<128){b[b.length]=i[R];continue}if(R<2048){b[b.length]=i[192|R>>6]+i[128|R&63];continue}if(R<55296||R>=57344){b[b.length]=i[224|R>>12]+i[128|R>>6&63]+i[128|R&63];continue}T+=1,R=65536+((R&1023)<<10|S.charCodeAt(T)&1023),b[b.length]=i[240|R>>18]+i[128|R>>12&63]+i[128|R>>6&63]+i[128|R&63]}x+=b.join("")}return x},f=function(w){for(var m=[{obj:{o:w},prop:"o"}],D=[],g=0;g<m.length;++g)for(var M=m[g],v=M.obj[M.prop],x=Object.keys(v),y=0;y<x.length;++y){var S=x[y],b=v[S];typeof b=="object"&&b!==null&&D.indexOf(b)===-1&&(m.push({obj:v,prop:S}),D.push(b))}return r(m),w},p=function(w){return Object.prototype.toString.call(w)==="[object RegExp]"},h=function(w){return!w||typeof w!="object"?!1:!!(w.constructor&&w.constructor.isBuffer&&w.constructor.isBuffer(w))},k=function(w,m){return[].concat(w,m)},C=function(w,m){if(t(w)){for(var D=[],g=0;g<w.length;g+=1)D.push(m(w[g]));return D}return m(w)};return Ss={arrayToObject:s,assign:l,combine:k,compact:f,decode:u,encode:d,isBuffer:h,isRegExp:p,maybeMap:C,merge:o},Ss}var xs,iu;function Ch(){if(iu)return xs;iu=1;var n=wh(),e=tu(),t=ks(),i=Object.prototype.hasOwnProperty,r={brackets:function(A){return A+"[]"},comma:"comma",indices:function(A,w){return A+"["+w+"]"},repeat:function(A){return A}},s=Array.isArray,o=Array.prototype.push,l=function(C,A){o.apply(C,s(A)?A:[A])},u=Date.prototype.toISOString,c=t.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:c,formatter:t.formatters[c],indices:!1,serializeDate:function(A){return u.call(A)},skipNulls:!1,strictNullHandling:!1},f=function(A){return typeof A=="string"||typeof A=="number"||typeof A=="boolean"||typeof A=="symbol"||typeof A=="bigint"},p={},h=function C(A,w,m,D,g,M,v,x,y,S,b,T,R,L,N,W,G,I){for(var H=A,K=I,F=0,P=!1;(K=K.get(p))!==void 0&&!P;){var Q=K.get(A);if(F+=1,typeof Q<"u"){if(Q===F)throw new RangeError("Cyclic object value");P=!0}typeof K.get(p)>"u"&&(F=0)}if(typeof S=="function"?H=S(w,H):H instanceof Date?H=R(H):m==="comma"&&s(H)&&(H=e.maybeMap(H,function(ye){return ye instanceof Date?R(ye):ye})),H===null){if(M)return y&&!W?y(w,d.encoder,G,"key",L):w;H=""}if(f(H)||e.isBuffer(H)){if(y){var j=W?w:y(w,d.encoder,G,"key",L);return[N(j)+"="+N(y(H,d.encoder,G,"value",L))]}return[N(w)+"="+N(String(H))]}var q=[];if(typeof H>"u")return q;var X;if(m==="comma"&&s(H))W&&y&&(H=e.maybeMap(H,y)),X=[{value:H.length>0?H.join(",")||null:void 0}];else if(s(S))X=S;else{var ae=Object.keys(H);X=b?ae.sort(b):ae}var $=x?String(w).replace(/\./g,"%2E"):String(w),z=D&&s(H)&&H.length===1?$+"[]":$;if(g&&s(H)&&H.length===0)return z+"[]";for(var J=0;J<X.length;++J){var ue=X[J],V=typeof ue=="object"&&ue&&typeof ue.value<"u"?ue.value:H[ue];if(!(v&&V===null)){var U=T&&x?String(ue).replace(/\./g,"%2E"):String(ue),le=s(H)?typeof m=="function"?m(z,U):z:z+(T?"."+U:"["+U+"]");I.set(A,F);var oe=n();oe.set(p,I),l(q,C(V,le,m,D,g,M,v,x,m==="comma"&&W&&s(H)?null:y,S,b,T,R,L,N,W,G,oe))}}return q},k=function(A){if(!A)return d;if(typeof A.allowEmptyArrays<"u"&&typeof A.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof A.encodeDotInKeys<"u"&&typeof A.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(A.encoder!==null&&typeof A.encoder<"u"&&typeof A.encoder!="function")throw new TypeError("Encoder has to be a function.");var w=A.charset||d.charset;if(typeof A.charset<"u"&&A.charset!=="utf-8"&&A.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var m=t.default;if(typeof A.format<"u"){if(!i.call(t.formatters,A.format))throw new TypeError("Unknown format option provided.");m=A.format}var D=t.formatters[m],g=d.filter;(typeof A.filter=="function"||s(A.filter))&&(g=A.filter);var M;if(A.arrayFormat in r?M=A.arrayFormat:"indices"in A?M=A.indices?"indices":"repeat":M=d.arrayFormat,"commaRoundTrip"in A&&typeof A.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var v=typeof A.allowDots>"u"?A.encodeDotInKeys===!0?!0:d.allowDots:!!A.allowDots;return{addQueryPrefix:typeof A.addQueryPrefix=="boolean"?A.addQueryPrefix:d.addQueryPrefix,allowDots:v,allowEmptyArrays:typeof A.allowEmptyArrays=="boolean"?!!A.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:M,charset:w,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!A.commaRoundTrip,delimiter:typeof A.delimiter>"u"?d.delimiter:A.delimiter,encode:typeof A.encode=="boolean"?A.encode:d.encode,encodeDotInKeys:typeof A.encodeDotInKeys=="boolean"?A.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof A.encoder=="function"?A.encoder:d.encoder,encodeValuesOnly:typeof A.encodeValuesOnly=="boolean"?A.encodeValuesOnly:d.encodeValuesOnly,filter:g,format:m,formatter:D,serializeDate:typeof A.serializeDate=="function"?A.serializeDate:d.serializeDate,skipNulls:typeof A.skipNulls=="boolean"?A.skipNulls:d.skipNulls,sort:typeof A.sort=="function"?A.sort:null,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:d.strictNullHandling}};return xs=function(C,A){var w=C,m=k(A),D,g;typeof m.filter=="function"?(g=m.filter,w=g("",w)):s(m.filter)&&(g=m.filter,D=g);var M=[];if(typeof w!="object"||w===null)return"";var v=r[m.arrayFormat],x=v==="comma"&&m.commaRoundTrip;D||(D=Object.keys(w)),m.sort&&D.sort(m.sort);for(var y=n(),S=0;S<D.length;++S){var b=D[S],T=w[b];m.skipNulls&&T===null||l(M,h(T,b,v,x,m.allowEmptyArrays,m.strictNullHandling,m.skipNulls,m.encodeDotInKeys,m.encode?m.encoder:null,m.filter,m.sort,m.allowDots,m.serializeDate,m.format,m.formatter,m.encodeValuesOnly,m.charset,y))}var R=M.join(m.delimiter),L=m.addQueryPrefix===!0?"?":"";return m.charsetSentinel&&(m.charset==="iso-8859-1"?L+="utf8=%26%2310003%3B&":L+="utf8=%E2%9C%93&"),R.length>0?L+R:""},xs}var Rs,nu;function Ah(){if(nu)return Rs;nu=1;var n=tu(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},r=function(p){return p.replace(/&#(\d+);/g,function(h,k){return String.fromCharCode(parseInt(k,10))})},s=function(p,h,k){if(p&&typeof p=="string"&&h.comma&&p.indexOf(",")>-1)return p.split(",");if(h.throwOnLimitExceeded&&k>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return p},o="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",u=function(h,k){var C={__proto__:null},A=k.ignoreQueryPrefix?h.replace(/^\?/,""):h;A=A.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var w=k.parameterLimit===1/0?void 0:k.parameterLimit,m=A.split(k.delimiter,k.throwOnLimitExceeded?w+1:w);if(k.throwOnLimitExceeded&&m.length>w)throw new RangeError("Parameter limit exceeded. Only "+w+" parameter"+(w===1?"":"s")+" allowed.");var D=-1,g,M=k.charset;if(k.charsetSentinel)for(g=0;g<m.length;++g)m[g].indexOf("utf8=")===0&&(m[g]===l?M="utf-8":m[g]===o&&(M="iso-8859-1"),D=g,g=m.length);for(g=0;g<m.length;++g)if(g!==D){var v=m[g],x=v.indexOf("]="),y=x===-1?v.indexOf("="):x+1,S,b;y===-1?(S=k.decoder(v,i.decoder,M,"key"),b=k.strictNullHandling?null:""):(S=k.decoder(v.slice(0,y),i.decoder,M,"key"),b=n.maybeMap(s(v.slice(y+1),k,t(C[S])?C[S].length:0),function(R){return k.decoder(R,i.decoder,M,"value")})),b&&k.interpretNumericEntities&&M==="iso-8859-1"&&(b=r(String(b))),v.indexOf("[]=")>-1&&(b=t(b)?[b]:b);var T=e.call(C,S);T&&k.duplicates==="combine"?C[S]=n.combine(C[S],b):(!T||k.duplicates==="last")&&(C[S]=b)}return C},c=function(p,h,k,C){var A=0;if(p.length>0&&p[p.length-1]==="[]"){var w=p.slice(0,-1).join("");A=Array.isArray(h)&&h[w]?h[w].length:0}for(var m=C?h:s(h,k,A),D=p.length-1;D>=0;--D){var g,M=p[D];if(M==="[]"&&k.parseArrays)g=k.allowEmptyArrays&&(m===""||k.strictNullHandling&&m===null)?[]:n.combine([],m);else{g=k.plainObjects?{__proto__:null}:{};var v=M.charAt(0)==="["&&M.charAt(M.length-1)==="]"?M.slice(1,-1):M,x=k.decodeDotInKeys?v.replace(/%2E/g,"."):v,y=parseInt(x,10);!k.parseArrays&&x===""?g={0:m}:!isNaN(y)&&M!==x&&String(y)===x&&y>=0&&k.parseArrays&&y<=k.arrayLimit?(g=[],g[y]=m):x!=="__proto__"&&(g[x]=m)}m=g}return m},d=function(h,k,C,A){if(h){var w=C.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,m=/(\[[^[\]]*])/,D=/(\[[^[\]]*])/g,g=C.depth>0&&m.exec(w),M=g?w.slice(0,g.index):w,v=[];if(M){if(!C.plainObjects&&e.call(Object.prototype,M)&&!C.allowPrototypes)return;v.push(M)}for(var x=0;C.depth>0&&(g=D.exec(w))!==null&&x<C.depth;){if(x+=1,!C.plainObjects&&e.call(Object.prototype,g[1].slice(1,-1))&&!C.allowPrototypes)return;v.push(g[1])}if(g){if(C.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+C.depth+" and strictDepth is true");v.push("["+w.slice(g.index)+"]")}return c(v,k,C,A)}},f=function(h){if(!h)return i;if(typeof h.allowEmptyArrays<"u"&&typeof h.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof h.decodeDotInKeys<"u"&&typeof h.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(h.decoder!==null&&typeof h.decoder<"u"&&typeof h.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof h.charset<"u"&&h.charset!=="utf-8"&&h.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof h.throwOnLimitExceeded<"u"&&typeof h.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var k=typeof h.charset>"u"?i.charset:h.charset,C=typeof h.duplicates>"u"?i.duplicates:h.duplicates;if(C!=="combine"&&C!=="first"&&C!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var A=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:i.allowDots:!!h.allowDots;return{allowDots:A,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:i.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:i.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:i.arrayLimit,charset:k,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:i.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:i.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:i.decoder,delimiter:typeof h.delimiter=="string"||n.isRegExp(h.delimiter)?h.delimiter:i.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:i.depth,duplicates:C,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:i.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:i.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:i.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return Rs=function(p,h){var k=f(h);if(p===""||p===null||typeof p>"u")return k.plainObjects?{__proto__:null}:{};for(var C=typeof p=="string"?u(p,k):p,A=k.plainObjects?{__proto__:null}:{},w=Object.keys(C),m=0;m<w.length;++m){var D=w[m],g=d(D,C[D],k,typeof p=="string");A=n.merge(A,g,k)}return k.allowSparse===!0?A:n.compact(A)},Rs}var Ms,ru;function Eh(){if(ru)return Ms;ru=1;var n=Ch(),e=Ah(),t=ks();return Ms={formats:t,parse:e,stringify:n},Ms}var kh=Eh();const su=rl(kh),Sh=["action"],xh=["value"],Rh=["name","value"],Mh=["value"],Th=["disabled"],Dh=Ie(a.defineComponent({__name:"ExportComponent",props:{type:{},action:{},filters:{},buttonText:{},csrfToken:{}},setup(n){const e=n,t=a.ref(),i=a.ref([]),r=a.computed(()=>e.csrfToken),s=async()=>{t.value&&t.value.submit()},o=()=>{if(!e.filters)return!1;if(typeof e.filters=="string")return l(),!0;c()},l=()=>{i.value=[];const d=/^.*\?/gm,f=e.filters.replace(d,""),p=su.parse(f);i.value=u(p)},u=d=>su.stringify(d,{encode:!1}).split("&").map(f=>{const p=f.split("=");return{key:p[0],value:p[1]}}).filter(({key:f,value:p})=>f.length&&p.length),c=()=>{if(i.value=[],!e.filters)return!1;i.value=u(e.filters)};return a.watch(()=>e.filters,()=>{o()},{deep:!1}),a.onMounted(()=>{o()}),(d,f)=>(a.openBlock(),a.createElementBlock("form",{target:"_blank",action:d.action,method:"POST",ref_key:"reportForm",ref:t},[d.type?(a.openBlock(),a.createElementBlock("input",{key:0,type:"hidden",name:"type",value:d.type},null,8,xh)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,p=>(a.openBlock(),a.createElementBlock("input",{key:p.key,type:"hidden",name:p.key,value:p.value},null,8,Rh))),128)),a.createElementVNode("input",{type:"hidden",name:"_token",value:r.value},null,8,Mh),a.createElementVNode("button",{type:"button",class:a.normalizeClass(["col-auto export-button",{disabled:!d.action}]),onClick:s,disabled:!d.action},[a.createTextVNode(a.toDisplayString(d.buttonText)+" ",1),f[0]||(f[0]=a.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],10,Th)],8,Sh))}}),[["__scopeId","data-v-db74d2e3"]]);var Bn={exports:{}};/*!
|
|
1
|
+
(function(ee,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(ee=typeof globalThis<"u"?globalThis:ee||self,a(ee.R3uiLib={},ee.Vue))})(this,(function(ee,a){"use strict";const Lr={__name:"Spinner",props:{isSmall:{type:Boolean,default:!1}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["spinner-border",{"spinner-border-sm":n.isSmall}]),role:"status"},null,2))}},Br={__name:"Icon",props:{name:{type:String,required:!0}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("i",{class:a.normalizeClass(`bi bi-${n.name}`)},null,2))}},Od={class:"d-inline-flex align-items-center justify-content-center"},Ld={key:2},Fr={__name:"DefaultButton",props:{label:{type:String,default:""},icon:{type:String,default:""},iconPosition:{type:String,default:"left",validator(n){return["right","left"].includes(n)}},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isFullWidth:{type:Boolean,default:!1},customClasses:{type:Array,default:()=>[]},styles:{type:String,default:"primary",validator(n){return["primary","light","secondary","success","danger","warning","info"].includes(n)}}},emits:["submit"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>`btn-${t.styles}`);function s(){t.isLoading||t.isDisabled||i("submit")}return(o,l)=>(a.openBlock(),a.createElementBlock("button",{"data-test":"DefaultButton",class:a.normalizeClass(["btn",[n.isLoading||n.isDisabled?"disabled":"",n.isFullWidth?"w-100":"",n.styles?r.value:"",...n.customClasses]]),onClick:a.withModifiers(s,["prevent"])},[a.createElementVNode("div",Od,[n.icon&&n.iconPosition==="left"?(a.openBlock(),a.createBlock(Br,{key:0,name:n.icon,class:a.normalizeClass(n.label?"me-2":"")},null,8,["name","class"])):a.createCommentVNode("",!0),n.isLoading?(a.openBlock(),a.createBlock(Lr,{key:1,isSmall:!0,class:"pe-2"})):a.createCommentVNode("",!0),n.label?(a.openBlock(),a.createElementBlock("span",Ld,a.toDisplayString(n.label),1)):a.createCommentVNode("",!0),n.icon&&n.iconPosition==="right"?(a.openBlock(),a.createBlock(Br,{key:3,name:n.icon,class:a.normalizeClass(n.label?"ms-2":"")},null,8,["name","class"])):a.createCommentVNode("",!0)])],2))}},Bd=a.defineComponent({__name:"AddButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},iconClass:{default:"bi bi-plus-circle-fill pe-2"}},emits:["click"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("click")};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["d-flex add-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"AddButton",onClick:r},[a.createElementVNode("i",{class:a.normalizeClass(s.iconClass)},null,2),a.createTextVNode(" "+a.toDisplayString(s.label||s.text||"Добавить"),1)],2))}}),Ie=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},il=Ie(Bd,[["__scopeId","data-v-cf07042b"]]),Fd={"data-test":"CollapseButton"},_d=["id"],Pd=["id"],Nd=Ie(a.defineComponent({__name:"CollapseButton",props:{isCollapsed:{type:Boolean,default:!0},expandText:{default:"Развернуть все"},collapseText:{default:"Свернуть все"},expandId:{default:"expand-filters-btn"},collapseId:{default:"collapse-filters-btn"},buttonStyle:{default:"padding: 8px 24px; margin-bottom: 32px"},iconStyle:{default:"font-size: 10px"},expandLabel:{default:"Развернуть все"},collapseLabel:{default:"Свернуть все"},isColapsed:{type:Boolean}},emits:["emitCollapseToggle","emitColapsed","expand","collapse"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>t.isCollapsed),s=a.computed(()=>t.expandText),o=a.computed(()=>t.collapseText),l=()=>{i("emitCollapseToggle",!1),i("emitColapsed",!1),i("expand")},u=()=>{i("emitCollapseToggle",!0),i("emitColapsed",!0),i("collapse")};return(c,d)=>(a.openBlock(),a.createElementBlock("div",Fd,[r.value?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",id:c.expandId,class:"btn btn-light collapse-button",onClick:l,style:a.normalizeStyle(c.buttonStyle)},[a.createTextVNode(a.toDisplayString(s.value)+" ",1),a.createElementVNode("i",{class:"bi bi-caret-down-fill",style:a.normalizeStyle(c.iconStyle)},null,4)],12,_d)):a.createCommentVNode("",!0),r.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",id:c.collapseId,class:"btn btn-light collapse-button",onClick:u,style:a.normalizeStyle(c.buttonStyle)},[a.createTextVNode(a.toDisplayString(o.value)+" ",1),a.createElementVNode("i",{class:"bi bi-caret-up-fill",style:a.normalizeStyle(c.iconStyle)},null,4)],12,Pd))]))}}),[["__scopeId","data-v-a0502514"]]),Id=Ie(a.defineComponent({__name:"ExportButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},exportType:{default:"default"}},emits:["export"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("export",t.exportType)};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["col-auto export-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"ExportButton",onClick:r},[a.createTextVNode(a.toDisplayString(s.label||s.text||"Экспорт")+" ",1),o[0]||(o[0]=a.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],2))}}),[["__scopeId","data-v-20f08c06"]]),Hd=Ie(a.defineComponent({__name:"PrintButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1}},emits:["print"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||(window.print(),i("print"))};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["col-auto print-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"PrintButton",onClick:r},[a.createTextVNode(a.toDisplayString(s.label||s.text||"Печать")+" ",1),o[0]||(o[0]=a.createElementVNode("i",{class:"ps-2 bi bi-printer-fill"},null,-1))],2))}}),[["__scopeId","data-v-52020521"]]),Vd=["disabled"],zd={class:"clear-form-button__label"},jd=Ie(a.defineComponent({__name:"ClearFormButton",props:{label:{default:"Очистить"},disabled:{type:Boolean,default:!1}},emits:["clear"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("clear",!0)};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["clear-form-button",{"clear-form-button--disabled":s.disabled}]),disabled:s.disabled,"data-test":"ClearFormButton",onClick:r},[o[0]||(o[0]=a.createElementVNode("div",{class:"clear-form-button__icon"},[a.createElementVNode("i",{class:"bi bi-trash-fill"})],-1)),a.createElementVNode("div",zd,a.toDisplayString(s.label),1)],10,Vd))}}),[["__scopeId","data-v-ed163ff4"]]),Wd={class:"toggle-buttons","data-test":"ToggleButtons"},Ud=["onClick"],Gd=Ie(a.defineComponent({__name:"ToggleButtons",props:{options:{},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=r=>{t("update:modelValue",r.name)};return(r,s)=>(a.openBlock(),a.createElementBlock("div",Wd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.options,o=>(a.openBlock(),a.createElementBlock("button",{key:o.name,type:"button",class:a.normalizeClass(["toggle-buttons__button",{"toggle-buttons__button--active":r.modelValue===o.name}]),onClick:l=>i(o)},a.toDisplayString(o.title),11,Ud))),128))]))}}),[["__scopeId","data-v-4eae7f5d"]]);var nl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Yd(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var _r,sl;function Oi(){return sl||(sl=1,_r=TypeError),_r}const Qd=Yd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Pr,al;function On(){if(al)return Pr;al=1;var n=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=n&&e&&typeof e.get=="function"?e.get:null,i=n&&Map.prototype.forEach,r=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=r&&s&&typeof s.get=="function"?s.get:null,l=r&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,c=u?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,f=d?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,h=p?WeakRef.prototype.deref:null,k=Boolean.prototype.valueOf,C=Object.prototype.toString,A=Function.prototype.toString,w=String.prototype.match,m=String.prototype.slice,D=String.prototype.replace,g=String.prototype.toUpperCase,M=String.prototype.toLowerCase,v=RegExp.prototype.test,x=Array.prototype.concat,y=Array.prototype.join,S=Array.prototype.slice,b=Math.floor,T=typeof BigInt=="function"?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,I=typeof Symbol=="function"&&typeof Symbol.iterator=="object",W=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||!0)?Symbol.toStringTag:null,U=Object.prototype.propertyIsEnumerable,H=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(te){return te.__proto__}:null);function V(te,se){if(te===1/0||te===-1/0||te!==te||te&&te>-1e3&&te<1e3||v.call(/e/,se))return se;var Pe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof te=="number"){var ze=te<0?-b(-te):b(te);if(ze!==te){var Oe=String(ze),Re=m.call(se,Oe.length+1);return D.call(Oe,Pe,"$&_")+"."+D.call(D.call(Re,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(se,Pe,"$&_")}var K=Qd,F=K.custom,N=ae(F)?F:null,Q={__proto__:null,double:'"',single:"'"},j={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Pr=function te(se,Pe,ze,Oe){var Re=Pe||{};if(xe(Re,"quoteStyle")&&!xe(Q,Re.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xe(Re,"maxStringLength")&&(typeof Re.maxStringLength=="number"?Re.maxStringLength<0&&Re.maxStringLength!==1/0:Re.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ct=xe(Re,"customInspect")?Re.customInspect:!0;if(typeof ct!="boolean"&&ct!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xe(Re,"indent")&&Re.indent!==null&&Re.indent!==" "&&!(parseInt(Re.indent,10)===Re.indent&&Re.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xe(Re,"numericSeparator")&&typeof Re.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ge=Re.numericSeparator;if(typeof se>"u")return"undefined";if(se===null)return"null";if(typeof se=="boolean")return se?"true":"false";if(typeof se=="string")return Me(se,Re);if(typeof se=="number"){if(se===0)return 1/0/se>0?"0":"-0";var B=String(se);return ge?V(se,B):B}if(typeof se=="bigint"){var E=String(se)+"n";return ge?V(se,E):E}var O=typeof Re.depth>"u"?5:Re.depth;if(typeof ze>"u"&&(ze=0),ze>=O&&O>0&&typeof se=="object")return ue(se)?"[Array]":"[Object]";var _=Rt(Re,ze);if(typeof Oe>"u")Oe=[];else if(Ne(Oe,se)>=0)return"[Circular]";function G(jt,$t,Xi){if($t&&(Oe=S.call(Oe),Oe.push($t)),Xi){var Di={depth:Re.depth};return xe(Re,"quoteStyle")&&(Di.quoteStyle=Re.quoteStyle),te(jt,Di,ze+1,Oe)}return te(jt,Re,ze+1,Oe)}if(typeof se=="function"&&!X(se)){var re=_e(se),ce=Ge(se,G);return"[Function"+(re?": "+re:" (anonymous)")+"]"+(ce.length>0?" { "+y.call(ce,", ")+" }":"")}if(ae(se)){var fe=I?D.call(String(se),/^(Symbol\(.*\))_[^)]*$/,"$1"):L.call(se);return typeof se=="object"&&!I?Se(fe):fe}if(ke(se)){for(var pe="<"+M.call(String(se.nodeName)),be=se.attributes||[],Ce=0;Ce<be.length;Ce++)pe+=" "+be[Ce].name+"="+J(Z(be[Ce].value),"double",Re);return pe+=">",se.childNodes&&se.childNodes.length&&(pe+="..."),pe+="</"+M.call(String(se.nodeName))+">",pe}if(ue(se)){if(se.length===0)return"[]";var De=Ge(se,G);return _&&!je(De)?"["+At(De,_)+"]":"[ "+y.call(De,", ")+" ]"}if($(se)){var We=Ge(se,G);return!("cause"in Error.prototype)&&"cause"in se&&!U.call(se,"cause")?"{ ["+String(se)+"] "+y.call(x.call("[cause]: "+G(se.cause),We),", ")+" }":We.length===0?"["+String(se)+"]":"{ ["+String(se)+"] "+y.call(We,", ")+" }"}if(typeof se=="object"&&ct){if(N&&typeof se[N]=="function"&&K)return K(se,{depth:O-ze});if(ct!=="symbol"&&typeof se.inspect=="function")return se.inspect()}if(de(se)){var Be=[];return i&&i.call(se,function(jt,$t){Be.push(G($t,se,!0)+" => "+G(jt,se))}),et("Map",t.call(se),Be,_)}if(me(se)){var qe=[];return l&&l.call(se,function(jt){qe.push(G(jt,se))}),et("Set",o.call(se),qe,_)}if(q(se))return Le("WeakMap");if(he(se))return Le("WeakSet");if(ie(se))return Le("WeakRef");if(z(se))return Se(G(Number(se)));if(ye(se))return Se(G(T.call(se)));if(ne(se))return Se(k.call(se));if(P(se))return Se(G(String(se)));if(typeof window<"u"&&se===window)return"{ [object Window] }";if(typeof globalThis<"u"&&se===globalThis||typeof nl<"u"&&se===nl)return"{ [object globalThis] }";if(!Y(se)&&!X(se)){var Xe=Ge(se,G),at=H?H(se)===Object.prototype:se instanceof Object||se.constructor===Object,nt=se instanceof Object?"":"null prototype",yi=!at&&W&&Object(se)===se&&W in se?m.call(Fe(se),8,-1):nt?"Object":"",Ti=at||typeof se.constructor!="function"?"":se.constructor.name?se.constructor.name+" ":"",ci=Ti+(yi||nt?"["+y.call(x.call([],yi||[],nt||[]),": ")+"] ":"");return Xe.length===0?ci+"{}":_?ci+"{"+At(Xe,_)+"}":ci+"{ "+y.call(Xe,", ")+" }"}return String(se)};function J(te,se,Pe){var ze=Pe.quoteStyle||se,Oe=Q[ze];return Oe+te+Oe}function Z(te){return D.call(String(te),/"/g,""")}function le(te){return!W||!(typeof te=="object"&&(W in te||typeof te[W]<"u"))}function ue(te){return Fe(te)==="[object Array]"&&le(te)}function Y(te){return Fe(te)==="[object Date]"&&le(te)}function X(te){return Fe(te)==="[object RegExp]"&&le(te)}function $(te){return Fe(te)==="[object Error]"&&le(te)}function P(te){return Fe(te)==="[object String]"&&le(te)}function z(te){return Fe(te)==="[object Number]"&&le(te)}function ne(te){return Fe(te)==="[object Boolean]"&&le(te)}function ae(te){if(I)return te&&typeof te=="object"&&te instanceof Symbol;if(typeof te=="symbol")return!0;if(!te||typeof te!="object"||!L)return!1;try{return L.call(te),!0}catch{}return!1}function ye(te){if(!te||typeof te!="object"||!T)return!1;try{return T.call(te),!0}catch{}return!1}var we=Object.prototype.hasOwnProperty||function(te){return te in this};function xe(te,se){return we.call(te,se)}function Fe(te){return C.call(te)}function _e(te){if(te.name)return te.name;var se=w.call(A.call(te),/^function\s*([\w$]+)/);return se?se[1]:null}function Ne(te,se){if(te.indexOf)return te.indexOf(se);for(var Pe=0,ze=te.length;Pe<ze;Pe++)if(te[Pe]===se)return Pe;return-1}function de(te){if(!t||!te||typeof te!="object")return!1;try{t.call(te);try{o.call(te)}catch{return!0}return te instanceof Map}catch{}return!1}function q(te){if(!c||!te||typeof te!="object")return!1;try{c.call(te,c);try{f.call(te,f)}catch{return!0}return te instanceof WeakMap}catch{}return!1}function ie(te){if(!h||!te||typeof te!="object")return!1;try{return h.call(te),!0}catch{}return!1}function me(te){if(!o||!te||typeof te!="object")return!1;try{o.call(te);try{t.call(te)}catch{return!0}return te instanceof Set}catch{}return!1}function he(te){if(!f||!te||typeof te!="object")return!1;try{f.call(te,f);try{c.call(te,c)}catch{return!0}return te instanceof WeakSet}catch{}return!1}function ke(te){return!te||typeof te!="object"?!1:typeof HTMLElement<"u"&&te instanceof HTMLElement?!0:typeof te.nodeName=="string"&&typeof te.getAttribute=="function"}function Me(te,se){if(te.length>se.maxStringLength){var Pe=te.length-se.maxStringLength,ze="... "+Pe+" more character"+(Pe>1?"s":"");return Me(m.call(te,0,se.maxStringLength),se)+ze}var Oe=j[se.quoteStyle||"single"];Oe.lastIndex=0;var Re=D.call(D.call(te,Oe,"\\$1"),/[\x00-\x1f]/g,oe);return J(Re,"single",se)}function oe(te){var se=te.charCodeAt(0),Pe={8:"b",9:"t",10:"n",12:"f",13:"r"}[se];return Pe?"\\"+Pe:"\\x"+(se<16?"0":"")+g.call(se.toString(16))}function Se(te){return"Object("+te+")"}function Le(te){return te+" { ? }"}function et(te,se,Pe,ze){var Oe=ze?At(Pe,ze):y.call(Pe,", ");return te+" ("+se+") {"+Oe+"}"}function je(te){for(var se=0;se<te.length;se++)if(Ne(te[se],`
|
|
2
|
+
`)>=0)return!1;return!0}function Rt(te,se){var Pe;if(te.indent===" ")Pe=" ";else if(typeof te.indent=="number"&&te.indent>0)Pe=y.call(Array(te.indent+1)," ");else return null;return{base:Pe,prev:y.call(Array(se+1),Pe)}}function At(te,se){if(te.length===0)return"";var Pe=`
|
|
3
|
+
`+se.prev+se.base;return Pe+y.call(te,","+Pe)+`
|
|
4
|
+
`+se.prev}function Ge(te,se){var Pe=ue(te),ze=[];if(Pe){ze.length=te.length;for(var Oe=0;Oe<te.length;Oe++)ze[Oe]=xe(te,Oe)?se(te[Oe],te):""}var Re=typeof R=="function"?R(te):[],ct;if(I){ct={};for(var ge=0;ge<Re.length;ge++)ct["$"+Re[ge]]=Re[ge]}for(var B in te)xe(te,B)&&(Pe&&String(Number(B))===B&&B<te.length||I&&ct["$"+B]instanceof Symbol||(v.call(/[^\w$]/,B)?ze.push(se(B,te)+": "+se(te[B],te)):ze.push(B+": "+se(te[B],te))));if(typeof R=="function")for(var E=0;E<Re.length;E++)U.call(te,Re[E])&&ze.push("["+se(Re[E])+"]: "+se(te[Re[E]],te));return ze}return Pr}var Nr,ol;function Kd(){if(ol)return Nr;ol=1;var n=On(),e=Oi(),t=function(l,u,c){for(var d=l,f;(f=d.next)!=null;d=f)if(f.key===u)return d.next=f.next,c||(f.next=l.next,l.next=f),f},i=function(l,u){if(l){var c=t(l,u);return c&&c.value}},r=function(l,u,c){var d=t(l,u);d?d.value=c:l.next={key:u,next:l.next,value:c}},s=function(l,u){return l?!!t(l,u):!1},o=function(l,u){if(l)return t(l,u,!0)};return Nr=function(){var u,c={assert:function(d){if(!c.has(d))throw new e("Side channel does not contain "+n(d))},delete:function(d){var f=u&&u.next,p=o(u,d);return p&&f&&f===p&&(u=void 0),!!p},get:function(d){return i(u,d)},has:function(d){return s(u,d)},set:function(d,f){u||(u={next:void 0}),r(u,d,f)}};return c},Nr}var Ir,ll;function ul(){return ll||(ll=1,Ir=Object),Ir}var Hr,cl;function Jd(){return cl||(cl=1,Hr=Error),Hr}var Vr,dl;function qd(){return dl||(dl=1,Vr=EvalError),Vr}var zr,hl;function $d(){return hl||(hl=1,zr=RangeError),zr}var jr,fl;function Zd(){return fl||(fl=1,jr=ReferenceError),jr}var Wr,pl;function Xd(){return pl||(pl=1,Wr=SyntaxError),Wr}var Ur,ml;function eh(){return ml||(ml=1,Ur=URIError),Ur}var Gr,gl;function th(){return gl||(gl=1,Gr=Math.abs),Gr}var Yr,bl;function ih(){return bl||(bl=1,Yr=Math.floor),Yr}var Qr,vl;function nh(){return vl||(vl=1,Qr=Math.max),Qr}var Kr,yl;function rh(){return yl||(yl=1,Kr=Math.min),Kr}var Jr,wl;function sh(){return wl||(wl=1,Jr=Math.pow),Jr}var qr,Cl;function ah(){return Cl||(Cl=1,qr=Math.round),qr}var $r,Al;function oh(){return Al||(Al=1,$r=Number.isNaN||function(e){return e!==e}),$r}var Zr,El;function lh(){if(El)return Zr;El=1;var n=oh();return Zr=function(t){return n(t)||t===0?t:t<0?-1:1},Zr}var Xr,kl;function uh(){return kl||(kl=1,Xr=Object.getOwnPropertyDescriptor),Xr}var es,Sl;function xl(){if(Sl)return es;Sl=1;var n=uh();if(n)try{n([],"length")}catch{n=null}return es=n,es}var ts,Rl;function ch(){if(Rl)return ts;Rl=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return ts=n,ts}var is,Ml;function dh(){return Ml||(Ml=1,is=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==r||l.enumerable!==!0)return!1}return!0}),is}var ns,Tl;function hh(){if(Tl)return ns;Tl=1;var n=typeof Symbol<"u"&&Symbol,e=dh();return ns=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ns}var rs,Dl;function Ol(){return Dl||(Dl=1,rs=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),rs}var ss,Ll;function Bl(){if(Ll)return ss;Ll=1;var n=ul();return ss=n.getPrototypeOf||null,ss}var as,Fl;function fh(){if(Fl)return as;Fl=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},s=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},o=function(l,u){for(var c="",d=0;d<l.length;d+=1)c+=l[d],d+1<l.length&&(c+=u);return c};return as=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==i)throw new TypeError(n+c);for(var d=s(arguments,1),f,p=function(){if(this instanceof f){var w=c.apply(this,r(d,arguments));return Object(w)===w?w:this}return c.apply(u,r(d,arguments))},h=t(0,c.length-d.length),k=[],C=0;C<h;C++)k[C]="$"+C;if(f=Function("binder","return function ("+o(k,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var A=function(){};A.prototype=c.prototype,f.prototype=new A,A.prototype=null}return f},as}var os,_l;function Ln(){if(_l)return os;_l=1;var n=fh();return os=Function.prototype.bind||n,os}var ls,Pl;function us(){return Pl||(Pl=1,ls=Function.prototype.call),ls}var cs,Nl;function Il(){return Nl||(Nl=1,cs=Function.prototype.apply),cs}var ds,Hl;function ph(){return Hl||(Hl=1,ds=typeof Reflect<"u"&&Reflect&&Reflect.apply),ds}var hs,Vl;function mh(){if(Vl)return hs;Vl=1;var n=Ln(),e=Il(),t=us(),i=ph();return hs=i||n.call(t,e),hs}var fs,zl;function jl(){if(zl)return fs;zl=1;var n=Ln(),e=Oi(),t=us(),i=mh();return fs=function(s){if(s.length<1||typeof s[0]!="function")throw new e("a function is required");return i(n,t,s)},fs}var ps,Wl;function gh(){if(Wl)return ps;Wl=1;var n=jl(),e=xl(),t;try{t=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var i=!!t&&e&&e(Object.prototype,"__proto__"),r=Object,s=r.getPrototypeOf;return ps=i&&typeof i.get=="function"?n([i.get]):typeof s=="function"?function(l){return s(l==null?l:r(l))}:!1,ps}var ms,Ul;function bh(){if(Ul)return ms;Ul=1;var n=Ol(),e=Bl(),t=gh();return ms=n?function(r){return n(r)}:e?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return e(r)}:t?function(r){return t(r)}:null,ms}var gs,Gl;function vh(){if(Gl)return gs;Gl=1;var n=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ln();return gs=t.call(n,e),gs}var bs,Yl;function vs(){if(Yl)return bs;Yl=1;var n,e=ul(),t=Jd(),i=qd(),r=$d(),s=Zd(),o=Xd(),l=Oi(),u=eh(),c=th(),d=ih(),f=nh(),p=rh(),h=sh(),k=ah(),C=lh(),A=Function,w=function(X){try{return A('"use strict"; return ('+X+").constructor;")()}catch{}},m=xl(),D=ch(),g=function(){throw new l},M=m?(function(){try{return arguments.callee,g}catch{try{return m(arguments,"callee").get}catch{return g}}})():g,v=hh()(),x=bh(),y=Bl(),S=Ol(),b=Il(),T=us(),R={},L=typeof Uint8Array>"u"||!x?n:x(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":v&&x?x([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&x?x(x([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!v||!x?n:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":r,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!v||!x?n:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&x?x(""[Symbol.iterator]()):n,"%Symbol%":v?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":M,"%TypedArray%":L,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":b,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":y,"%Math.abs%":c,"%Math.floor%":d,"%Math.max%":f,"%Math.min%":p,"%Math.pow%":h,"%Math.round%":k,"%Math.sign%":C,"%Reflect.getPrototypeOf%":S};if(x)try{null.error}catch(X){var W=x(x(X));I["%Error.prototype%"]=W}var U=function X($){var P;if($==="%AsyncFunction%")P=w("async function () {}");else if($==="%GeneratorFunction%")P=w("function* () {}");else if($==="%AsyncGeneratorFunction%")P=w("async function* () {}");else if($==="%AsyncGenerator%"){var z=X("%AsyncGeneratorFunction%");z&&(P=z.prototype)}else if($==="%AsyncIteratorPrototype%"){var ne=X("%AsyncGenerator%");ne&&x&&(P=x(ne.prototype))}return I[$]=P,P},H={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},V=Ln(),K=vh(),F=V.call(T,Array.prototype.concat),N=V.call(b,Array.prototype.splice),Q=V.call(T,String.prototype.replace),j=V.call(T,String.prototype.slice),J=V.call(T,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,le=/\\(\\)?/g,ue=function($){var P=j($,0,1),z=j($,-1);if(P==="%"&&z!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(z==="%"&&P!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var ne=[];return Q($,Z,function(ae,ye,we,xe){ne[ne.length]=we?Q(xe,le,"$1"):ye||ae}),ne},Y=function($,P){var z=$,ne;if(K(H,z)&&(ne=H[z],z="%"+ne[0]+"%"),K(I,z)){var ae=I[z];if(ae===R&&(ae=U(z)),typeof ae>"u"&&!P)throw new l("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:ne,name:z,value:ae}}throw new o("intrinsic "+$+" does not exist!")};return bs=function($,P){if(typeof $!="string"||$.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof P!="boolean")throw new l('"allowMissing" argument must be a boolean');if(J(/^%?[^%]*%?$/,$)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var z=ue($),ne=z.length>0?z[0]:"",ae=Y("%"+ne+"%",P),ye=ae.name,we=ae.value,xe=!1,Fe=ae.alias;Fe&&(ne=Fe[0],N(z,F([0,1],Fe)));for(var _e=1,Ne=!0;_e<z.length;_e+=1){var de=z[_e],q=j(de,0,1),ie=j(de,-1);if((q==='"'||q==="'"||q==="`"||ie==='"'||ie==="'"||ie==="`")&&q!==ie)throw new o("property names with quotes must have matching quotes");if((de==="constructor"||!Ne)&&(xe=!0),ne+="."+de,ye="%"+ne+"%",K(I,ye))we=I[ye];else if(we!=null){if(!(de in we)){if(!P)throw new l("base intrinsic for "+$+" exists, but the property is not available.");return}if(m&&_e+1>=z.length){var me=m(we,de);Ne=!!me,Ne&&"get"in me&&!("originalValue"in me.get)?we=me.get:we=we[de]}else Ne=K(we,de),we=we[de];Ne&&!xe&&(I[ye]=we)}}return we},bs}var ys,Ql;function Kl(){if(Ql)return ys;Ql=1;var n=vs(),e=jl(),t=e([n("%String.prototype.indexOf%")]);return ys=function(r,s){var o=n(r,!!s);return typeof o=="function"&&t(r,".prototype.")>-1?e([o]):o},ys}var ws,Jl;function ql(){if(Jl)return ws;Jl=1;var n=vs(),e=Kl(),t=On(),i=Oi(),r=n("%Map%",!0),s=e("Map.prototype.get",!0),o=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),c=e("Map.prototype.size",!0);return ws=!!r&&function(){var f,p={assert:function(h){if(!p.has(h))throw new i("Side channel does not contain "+t(h))},delete:function(h){if(f){var k=u(f,h);return c(f)===0&&(f=void 0),k}return!1},get:function(h){if(f)return s(f,h)},has:function(h){return f?l(f,h):!1},set:function(h,k){f||(f=new r),o(f,h,k)}};return p},ws}var Cs,$l;function yh(){if($l)return Cs;$l=1;var n=vs(),e=Kl(),t=On(),i=ql(),r=Oi(),s=n("%WeakMap%",!0),o=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),c=e("WeakMap.prototype.delete",!0);return Cs=s?function(){var f,p,h={assert:function(k){if(!h.has(k))throw new r("Side channel does not contain "+t(k))},delete:function(k){if(s&&k&&(typeof k=="object"||typeof k=="function")){if(f)return c(f,k)}else if(i&&p)return p.delete(k);return!1},get:function(k){return s&&k&&(typeof k=="object"||typeof k=="function")&&f?o(f,k):p&&p.get(k)},has:function(k){return s&&k&&(typeof k=="object"||typeof k=="function")&&f?u(f,k):!!p&&p.has(k)},set:function(k,C){s&&k&&(typeof k=="object"||typeof k=="function")?(f||(f=new s),l(f,k,C)):i&&(p||(p=i()),p.set(k,C))}};return h}:i,Cs}var As,Zl;function wh(){if(Zl)return As;Zl=1;var n=Oi(),e=On(),t=Kd(),i=ql(),r=yh(),s=r||i||t;return As=function(){var l,u={assert:function(c){if(!u.has(c))throw new n("Side channel does not contain "+e(c))},delete:function(c){return!!l&&l.delete(c)},get:function(c){return l&&l.get(c)},has:function(c){return!!l&&l.has(c)},set:function(c,d){l||(l=s()),l.set(c,d)}};return u},As}var Es,Xl;function ks(){if(Xl)return Es;Xl=1;var n=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Es={default:t.RFC3986,formatters:{RFC1738:function(i){return n.call(i,e,"+")},RFC3986:function(i){return String(i)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},Es}var Ss,eu;function tu(){if(eu)return Ss;eu=1;var n=ks(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i=(function(){for(var A=[],w=0;w<256;++w)A.push("%"+((w<16?"0":"")+w.toString(16)).toUpperCase());return A})(),r=function(w){for(;w.length>1;){var m=w.pop(),D=m.obj[m.prop];if(t(D)){for(var g=[],M=0;M<D.length;++M)typeof D[M]<"u"&&g.push(D[M]);m.obj[m.prop]=g}}},s=function(w,m){for(var D=m&&m.plainObjects?{__proto__:null}:{},g=0;g<w.length;++g)typeof w[g]<"u"&&(D[g]=w[g]);return D},o=function A(w,m,D){if(!m)return w;if(typeof m!="object"&&typeof m!="function"){if(t(w))w.push(m);else if(w&&typeof w=="object")(D&&(D.plainObjects||D.allowPrototypes)||!e.call(Object.prototype,m))&&(w[m]=!0);else return[w,m];return w}if(!w||typeof w!="object")return[w].concat(m);var g=w;return t(w)&&!t(m)&&(g=s(w,D)),t(w)&&t(m)?(m.forEach(function(M,v){if(e.call(w,v)){var x=w[v];x&&typeof x=="object"&&M&&typeof M=="object"?w[v]=A(x,M,D):w.push(M)}else w[v]=M}),w):Object.keys(m).reduce(function(M,v){var x=m[v];return e.call(M,v)?M[v]=A(M[v],x,D):M[v]=x,M},g)},l=function(w,m){return Object.keys(m).reduce(function(D,g){return D[g]=m[g],D},w)},u=function(A,w,m){var D=A.replace(/\+/g," ");if(m==="iso-8859-1")return D.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(D)}catch{return D}},c=1024,d=function(w,m,D,g,M){if(w.length===0)return w;var v=w;if(typeof w=="symbol"?v=Symbol.prototype.toString.call(w):typeof w!="string"&&(v=String(w)),D==="iso-8859-1")return escape(v).replace(/%u[0-9a-f]{4}/gi,function(L){return"%26%23"+parseInt(L.slice(2),16)+"%3B"});for(var x="",y=0;y<v.length;y+=c){for(var S=v.length>=c?v.slice(y,y+c):v,b=[],T=0;T<S.length;++T){var R=S.charCodeAt(T);if(R===45||R===46||R===95||R===126||R>=48&&R<=57||R>=65&&R<=90||R>=97&&R<=122||M===n.RFC1738&&(R===40||R===41)){b[b.length]=S.charAt(T);continue}if(R<128){b[b.length]=i[R];continue}if(R<2048){b[b.length]=i[192|R>>6]+i[128|R&63];continue}if(R<55296||R>=57344){b[b.length]=i[224|R>>12]+i[128|R>>6&63]+i[128|R&63];continue}T+=1,R=65536+((R&1023)<<10|S.charCodeAt(T)&1023),b[b.length]=i[240|R>>18]+i[128|R>>12&63]+i[128|R>>6&63]+i[128|R&63]}x+=b.join("")}return x},f=function(w){for(var m=[{obj:{o:w},prop:"o"}],D=[],g=0;g<m.length;++g)for(var M=m[g],v=M.obj[M.prop],x=Object.keys(v),y=0;y<x.length;++y){var S=x[y],b=v[S];typeof b=="object"&&b!==null&&D.indexOf(b)===-1&&(m.push({obj:v,prop:S}),D.push(b))}return r(m),w},p=function(w){return Object.prototype.toString.call(w)==="[object RegExp]"},h=function(w){return!w||typeof w!="object"?!1:!!(w.constructor&&w.constructor.isBuffer&&w.constructor.isBuffer(w))},k=function(w,m){return[].concat(w,m)},C=function(w,m){if(t(w)){for(var D=[],g=0;g<w.length;g+=1)D.push(m(w[g]));return D}return m(w)};return Ss={arrayToObject:s,assign:l,combine:k,compact:f,decode:u,encode:d,isBuffer:h,isRegExp:p,maybeMap:C,merge:o},Ss}var xs,iu;function Ch(){if(iu)return xs;iu=1;var n=wh(),e=tu(),t=ks(),i=Object.prototype.hasOwnProperty,r={brackets:function(A){return A+"[]"},comma:"comma",indices:function(A,w){return A+"["+w+"]"},repeat:function(A){return A}},s=Array.isArray,o=Array.prototype.push,l=function(C,A){o.apply(C,s(A)?A:[A])},u=Date.prototype.toISOString,c=t.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:c,formatter:t.formatters[c],indices:!1,serializeDate:function(A){return u.call(A)},skipNulls:!1,strictNullHandling:!1},f=function(A){return typeof A=="string"||typeof A=="number"||typeof A=="boolean"||typeof A=="symbol"||typeof A=="bigint"},p={},h=function C(A,w,m,D,g,M,v,x,y,S,b,T,R,L,I,W,U,H){for(var V=A,K=H,F=0,N=!1;(K=K.get(p))!==void 0&&!N;){var Q=K.get(A);if(F+=1,typeof Q<"u"){if(Q===F)throw new RangeError("Cyclic object value");N=!0}typeof K.get(p)>"u"&&(F=0)}if(typeof S=="function"?V=S(w,V):V instanceof Date?V=R(V):m==="comma"&&s(V)&&(V=e.maybeMap(V,function(ye){return ye instanceof Date?R(ye):ye})),V===null){if(M)return y&&!W?y(w,d.encoder,U,"key",L):w;V=""}if(f(V)||e.isBuffer(V)){if(y){var j=W?w:y(w,d.encoder,U,"key",L);return[I(j)+"="+I(y(V,d.encoder,U,"value",L))]}return[I(w)+"="+I(String(V))]}var J=[];if(typeof V>"u")return J;var Z;if(m==="comma"&&s(V))W&&y&&(V=e.maybeMap(V,y)),Z=[{value:V.length>0?V.join(",")||null:void 0}];else if(s(S))Z=S;else{var le=Object.keys(V);Z=b?le.sort(b):le}var ue=x?String(w).replace(/\./g,"%2E"):String(w),Y=D&&s(V)&&V.length===1?ue+"[]":ue;if(g&&s(V)&&V.length===0)return Y+"[]";for(var X=0;X<Z.length;++X){var $=Z[X],P=typeof $=="object"&&$&&typeof $.value<"u"?$.value:V[$];if(!(v&&P===null)){var z=T&&x?String($).replace(/\./g,"%2E"):String($),ne=s(V)?typeof m=="function"?m(Y,z):Y:Y+(T?"."+z:"["+z+"]");H.set(A,F);var ae=n();ae.set(p,H),l(J,C(P,ne,m,D,g,M,v,x,m==="comma"&&W&&s(V)?null:y,S,b,T,R,L,I,W,U,ae))}}return J},k=function(A){if(!A)return d;if(typeof A.allowEmptyArrays<"u"&&typeof A.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof A.encodeDotInKeys<"u"&&typeof A.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(A.encoder!==null&&typeof A.encoder<"u"&&typeof A.encoder!="function")throw new TypeError("Encoder has to be a function.");var w=A.charset||d.charset;if(typeof A.charset<"u"&&A.charset!=="utf-8"&&A.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var m=t.default;if(typeof A.format<"u"){if(!i.call(t.formatters,A.format))throw new TypeError("Unknown format option provided.");m=A.format}var D=t.formatters[m],g=d.filter;(typeof A.filter=="function"||s(A.filter))&&(g=A.filter);var M;if(A.arrayFormat in r?M=A.arrayFormat:"indices"in A?M=A.indices?"indices":"repeat":M=d.arrayFormat,"commaRoundTrip"in A&&typeof A.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var v=typeof A.allowDots>"u"?A.encodeDotInKeys===!0?!0:d.allowDots:!!A.allowDots;return{addQueryPrefix:typeof A.addQueryPrefix=="boolean"?A.addQueryPrefix:d.addQueryPrefix,allowDots:v,allowEmptyArrays:typeof A.allowEmptyArrays=="boolean"?!!A.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:M,charset:w,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!A.commaRoundTrip,delimiter:typeof A.delimiter>"u"?d.delimiter:A.delimiter,encode:typeof A.encode=="boolean"?A.encode:d.encode,encodeDotInKeys:typeof A.encodeDotInKeys=="boolean"?A.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof A.encoder=="function"?A.encoder:d.encoder,encodeValuesOnly:typeof A.encodeValuesOnly=="boolean"?A.encodeValuesOnly:d.encodeValuesOnly,filter:g,format:m,formatter:D,serializeDate:typeof A.serializeDate=="function"?A.serializeDate:d.serializeDate,skipNulls:typeof A.skipNulls=="boolean"?A.skipNulls:d.skipNulls,sort:typeof A.sort=="function"?A.sort:null,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:d.strictNullHandling}};return xs=function(C,A){var w=C,m=k(A),D,g;typeof m.filter=="function"?(g=m.filter,w=g("",w)):s(m.filter)&&(g=m.filter,D=g);var M=[];if(typeof w!="object"||w===null)return"";var v=r[m.arrayFormat],x=v==="comma"&&m.commaRoundTrip;D||(D=Object.keys(w)),m.sort&&D.sort(m.sort);for(var y=n(),S=0;S<D.length;++S){var b=D[S],T=w[b];m.skipNulls&&T===null||l(M,h(T,b,v,x,m.allowEmptyArrays,m.strictNullHandling,m.skipNulls,m.encodeDotInKeys,m.encode?m.encoder:null,m.filter,m.sort,m.allowDots,m.serializeDate,m.format,m.formatter,m.encodeValuesOnly,m.charset,y))}var R=M.join(m.delimiter),L=m.addQueryPrefix===!0?"?":"";return m.charsetSentinel&&(m.charset==="iso-8859-1"?L+="utf8=%26%2310003%3B&":L+="utf8=%E2%9C%93&"),R.length>0?L+R:""},xs}var Rs,nu;function Ah(){if(nu)return Rs;nu=1;var n=tu(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},r=function(p){return p.replace(/&#(\d+);/g,function(h,k){return String.fromCharCode(parseInt(k,10))})},s=function(p,h,k){if(p&&typeof p=="string"&&h.comma&&p.indexOf(",")>-1)return p.split(",");if(h.throwOnLimitExceeded&&k>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return p},o="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",u=function(h,k){var C={__proto__:null},A=k.ignoreQueryPrefix?h.replace(/^\?/,""):h;A=A.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var w=k.parameterLimit===1/0?void 0:k.parameterLimit,m=A.split(k.delimiter,k.throwOnLimitExceeded?w+1:w);if(k.throwOnLimitExceeded&&m.length>w)throw new RangeError("Parameter limit exceeded. Only "+w+" parameter"+(w===1?"":"s")+" allowed.");var D=-1,g,M=k.charset;if(k.charsetSentinel)for(g=0;g<m.length;++g)m[g].indexOf("utf8=")===0&&(m[g]===l?M="utf-8":m[g]===o&&(M="iso-8859-1"),D=g,g=m.length);for(g=0;g<m.length;++g)if(g!==D){var v=m[g],x=v.indexOf("]="),y=x===-1?v.indexOf("="):x+1,S,b;y===-1?(S=k.decoder(v,i.decoder,M,"key"),b=k.strictNullHandling?null:""):(S=k.decoder(v.slice(0,y),i.decoder,M,"key"),b=n.maybeMap(s(v.slice(y+1),k,t(C[S])?C[S].length:0),function(R){return k.decoder(R,i.decoder,M,"value")})),b&&k.interpretNumericEntities&&M==="iso-8859-1"&&(b=r(String(b))),v.indexOf("[]=")>-1&&(b=t(b)?[b]:b);var T=e.call(C,S);T&&k.duplicates==="combine"?C[S]=n.combine(C[S],b):(!T||k.duplicates==="last")&&(C[S]=b)}return C},c=function(p,h,k,C){var A=0;if(p.length>0&&p[p.length-1]==="[]"){var w=p.slice(0,-1).join("");A=Array.isArray(h)&&h[w]?h[w].length:0}for(var m=C?h:s(h,k,A),D=p.length-1;D>=0;--D){var g,M=p[D];if(M==="[]"&&k.parseArrays)g=k.allowEmptyArrays&&(m===""||k.strictNullHandling&&m===null)?[]:n.combine([],m);else{g=k.plainObjects?{__proto__:null}:{};var v=M.charAt(0)==="["&&M.charAt(M.length-1)==="]"?M.slice(1,-1):M,x=k.decodeDotInKeys?v.replace(/%2E/g,"."):v,y=parseInt(x,10);!k.parseArrays&&x===""?g={0:m}:!isNaN(y)&&M!==x&&String(y)===x&&y>=0&&k.parseArrays&&y<=k.arrayLimit?(g=[],g[y]=m):x!=="__proto__"&&(g[x]=m)}m=g}return m},d=function(h,k,C,A){if(h){var w=C.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,m=/(\[[^[\]]*])/,D=/(\[[^[\]]*])/g,g=C.depth>0&&m.exec(w),M=g?w.slice(0,g.index):w,v=[];if(M){if(!C.plainObjects&&e.call(Object.prototype,M)&&!C.allowPrototypes)return;v.push(M)}for(var x=0;C.depth>0&&(g=D.exec(w))!==null&&x<C.depth;){if(x+=1,!C.plainObjects&&e.call(Object.prototype,g[1].slice(1,-1))&&!C.allowPrototypes)return;v.push(g[1])}if(g){if(C.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+C.depth+" and strictDepth is true");v.push("["+w.slice(g.index)+"]")}return c(v,k,C,A)}},f=function(h){if(!h)return i;if(typeof h.allowEmptyArrays<"u"&&typeof h.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof h.decodeDotInKeys<"u"&&typeof h.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(h.decoder!==null&&typeof h.decoder<"u"&&typeof h.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof h.charset<"u"&&h.charset!=="utf-8"&&h.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof h.throwOnLimitExceeded<"u"&&typeof h.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var k=typeof h.charset>"u"?i.charset:h.charset,C=typeof h.duplicates>"u"?i.duplicates:h.duplicates;if(C!=="combine"&&C!=="first"&&C!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var A=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:i.allowDots:!!h.allowDots;return{allowDots:A,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:i.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:i.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:i.arrayLimit,charset:k,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:i.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:i.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:i.decoder,delimiter:typeof h.delimiter=="string"||n.isRegExp(h.delimiter)?h.delimiter:i.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:i.depth,duplicates:C,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:i.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:i.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:i.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return Rs=function(p,h){var k=f(h);if(p===""||p===null||typeof p>"u")return k.plainObjects?{__proto__:null}:{};for(var C=typeof p=="string"?u(p,k):p,A=k.plainObjects?{__proto__:null}:{},w=Object.keys(C),m=0;m<w.length;++m){var D=w[m],g=d(D,C[D],k,typeof p=="string");A=n.merge(A,g,k)}return k.allowSparse===!0?A:n.compact(A)},Rs}var Ms,ru;function Eh(){if(ru)return Ms;ru=1;var n=Ch(),e=Ah(),t=ks();return Ms={formats:t,parse:e,stringify:n},Ms}var kh=Eh();const su=rl(kh),Sh=["action"],xh=["value"],Rh=["name","value"],Mh=["value"],Th=["disabled"],Dh=Ie(a.defineComponent({__name:"ExportComponent",props:{type:{},action:{},filters:{},buttonText:{},csrfToken:{}},setup(n){const e=n,t=a.ref(),i=a.ref([]),r=a.computed(()=>e.csrfToken),s=async()=>{t.value&&t.value.submit()},o=()=>{if(!e.filters)return!1;if(typeof e.filters=="string")return l(),!0;c()},l=()=>{i.value=[];const d=/^.*\?/gm,f=e.filters.replace(d,""),p=su.parse(f);i.value=u(p)},u=d=>su.stringify(d,{encode:!1}).split("&").map(f=>{const p=f.split("=");return{key:p[0],value:p[1]}}).filter(({key:f,value:p})=>f.length&&p.length),c=()=>{if(i.value=[],!e.filters)return!1;i.value=u(e.filters)};return a.watch(()=>e.filters,()=>{o()},{deep:!1}),a.onMounted(()=>{o()}),(d,f)=>(a.openBlock(),a.createElementBlock("form",{target:"_blank",action:d.action,method:"POST",ref_key:"reportForm",ref:t},[d.type?(a.openBlock(),a.createElementBlock("input",{key:0,type:"hidden",name:"type",value:d.type},null,8,xh)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,p=>(a.openBlock(),a.createElementBlock("input",{key:p.key,type:"hidden",name:p.key,value:p.value},null,8,Rh))),128)),a.createElementVNode("input",{type:"hidden",name:"_token",value:r.value},null,8,Mh),a.createElementVNode("button",{type:"button",class:a.normalizeClass(["col-auto export-button",{disabled:!d.action}]),onClick:s,disabled:!d.action},[a.createTextVNode(a.toDisplayString(d.buttonText)+" ",1),f[0]||(f[0]=a.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],10,Th)],8,Sh))}}),[["__scopeId","data-v-db74d2e3"]]);var Bn={exports:{}};/*!
|
|
5
5
|
* dist/inputmask
|
|
6
6
|
* https://github.com/RobinHerbots/Inputmask
|
|
7
7
|
* Copyright (c) 2010 - 2024 Robin Herbots
|
|
8
8
|
* Licensed under the MIT license
|
|
9
9
|
* Version: 5.0.9
|
|
10
|
-
*/var Oh=Bn.exports,au;function Lh(){return au||(au=1,(function(n,e){(function(t,i){n.exports=i()})(typeof self<"u"?self:Oh,(function(){return(function(){var t={3976:function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(u,c){return typeof c.onBeforeMask=="function"?c.onBeforeMask.call(this,u,c):u},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(u,c,d){if(d===void 0)return u.__data?u.__data[c]:null;u.__data=u.__data||{},u.__data[c]=d}},3776:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.Event=void 0,l.off=function(m,D){var g,M;return A(this[0])&&m&&(g=this[0].eventRegistry,M=this[0],m.split(" ").forEach((function(v){var x=p(v.split("."),2);(function(y,S){var b,T,R=[];if(y.length>0)if(D===void 0)for(b=0,T=g[y][S].length;b<T;b++)R.push({ev:y,namespace:S&&S.length>0?S:"global",handler:g[y][S][b]});else R.push({ev:y,namespace:S&&S.length>0?S:"global",handler:D});else if(S.length>0){for(var L in g)for(var
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function h(m,D){(D==null||D>m.length)&&(D=m.length);for(var g=0,M=new Array(D);g<D;g++)M[g]=m[g];return M}function k(m){return m&&m.__esModule?m:{default:m}}var C=c.default.document;function A(m){return m instanceof Element}var w=l.Event=void 0;typeof c.default.CustomEvent=="function"?l.Event=w=c.default.CustomEvent:c.default.Event&&C&&C.createEvent?(l.Event=w=function(m,D){D=D||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var g=C.createEvent("CustomEvent");return g.initCustomEvent(m,D.bubbles,D.cancelable,D.detail),g},w.prototype=c.default.Event.prototype):typeof Event<"u"&&(l.Event=w=Event)},600:function(o,l){function u(c){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},u(c)}Object.defineProperty(l,"__esModule",{value:!0}),l.default=function c(){var d,f,p,h,k,C,A=arguments[0]||{},w=1,m=arguments.length,D=!1;for(typeof A=="boolean"&&(D=A,A=arguments[w]||{},w++),u(A)!=="object"&&typeof A!="function"&&(A={});w<m;w++)if((d=arguments[w])!=null)for(f in d)p=A[f],A!==(h=d[f])&&(D&&h&&(Object.prototype.toString.call(h)==="[object Object]"||(k=Array.isArray(h)))?(k?(k=!1,C=p&&Array.isArray(p)?p:[]):C=p&&Object.prototype.toString.call(p)==="[object Object]"?p:{},A[f]=c(D,C,h)):h!==void 0&&(A[f]=h));return A}},4963:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=h(u(9380)),d=h(u(253)),f=u(3776),p=h(u(600));function h(A){return A&&A.__esModule?A:{default:A}}var k=c.default.document;function C(A){return A instanceof C?A:this instanceof C?void(A!=null&&A!==c.default&&(this[0]=A.nodeName?A:A[0]!==void 0&&A[0].nodeName?A[0]:k.querySelector(A),this[0]!==void 0&&this[0]!==null&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new C(A)}C.prototype={on:f.on,off:f.off,trigger:f.trigger},C.extend=p.default,C.data=d.default,C.Event=f.Event,l.default=C},9845:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.mobile=l.iphone=l.ie=void 0;var c,d=(c=u(9380))&&c.__esModule?c:{default:c},f=d.default.navigator&&d.default.navigator.userAgent||"";l.ie=f.indexOf("MSIE ")>0||f.indexOf("Trident/")>0,l.mobile=d.default.navigator&&d.default.navigator.userAgentData&&d.default.navigator.userAgentData.mobile||d.default.navigator&&d.default.navigator.maxTouchPoints||"ontouchstart"in d.default,l.iphone=/iphone/i.test(f)},7184:function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(c){return c.replace(u,"\\$1")};var u=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(o,l,u){function c(S){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},c(S)}Object.defineProperty(l,"__esModule",{value:!0}),l.EventHandlers=void 0;var d,f=u(9845),p=(d=u(9380))&&d.__esModule?d:{default:d},h=u(7760),k=u(2839),C=u(8711),A=u(7215),w=u(4713);function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return b};var S,b={},T=Object.prototype,R=T.hasOwnProperty,L=Object.defineProperty||function(de,Z,ie){de[Z]=ie.value},N=typeof Symbol=="function"?Symbol:{},W=N.iterator||"@@iterator",G=N.asyncIterator||"@@asyncIterator",I=N.toStringTag||"@@toStringTag";function H(de,Z,ie){return Object.defineProperty(de,Z,{value:ie,enumerable:!0,configurable:!0,writable:!0}),de[Z]}try{H({},"")}catch{H=function(Z,ie,me){return Z[ie]=me}}function K(de,Z,ie,me){var he=Z&&Z.prototype instanceof ae?Z:ae,ke=Object.create(he.prototype),Me=new _e(me||[]);return L(ke,"_invoke",{value:ye(de,ie,Me)}),ke}function F(de,Z,ie){try{return{type:"normal",arg:de.call(Z,ie)}}catch(me){return{type:"throw",arg:me}}}b.wrap=K;var P="suspendedStart",Q="suspendedYield",j="executing",q="completed",X={};function ae(){}function $(){}function z(){}var J={};H(J,W,(function(){return this}));var ue=Object.getPrototypeOf,V=ue&&ue(ue(Ne([])));V&&V!==T&&R.call(V,W)&&(J=V);var U=z.prototype=ae.prototype=Object.create(J);function le(de){["next","throw","return"].forEach((function(Z){H(de,Z,(function(ie){return this._invoke(Z,ie)}))}))}function oe(de,Z){function ie(he,ke,Me,se){var Se=F(de[he],de,ke);if(Se.type!=="throw"){var Le=Se.arg,et=Le.value;return et&&c(et)=="object"&&R.call(et,"__await")?Z.resolve(et.__await).then((function(je){ie("next",je,Me,se)}),(function(je){ie("throw",je,Me,se)})):Z.resolve(et).then((function(je){Le.value=je,Me(Le)}),(function(je){return ie("throw",je,Me,se)}))}se(Se.arg)}var me;L(this,"_invoke",{value:function(he,ke){function Me(){return new Z((function(se,Se){ie(he,ke,se,Se)}))}return me=me?me.then(Me,Me):Me()}})}function ye(de,Z,ie){var me=P;return function(he,ke){if(me===j)throw new Error("Generator is already running");if(me===q){if(he==="throw")throw ke;return{value:S,done:!0}}for(ie.method=he,ie.arg=ke;;){var Me=ie.delegate;if(Me){var se=we(Me,ie);if(se){if(se===X)continue;return se}}if(ie.method==="next")ie.sent=ie._sent=ie.arg;else if(ie.method==="throw"){if(me===P)throw me=q,ie.arg;ie.dispatchException(ie.arg)}else ie.method==="return"&&ie.abrupt("return",ie.arg);me=j;var Se=F(de,Z,ie);if(Se.type==="normal"){if(me=ie.done?q:Q,Se.arg===X)continue;return{value:Se.arg,done:ie.done}}Se.type==="throw"&&(me=q,ie.method="throw",ie.arg=Se.arg)}}}function we(de,Z){var ie=Z.method,me=de.iterator[ie];if(me===S)return Z.delegate=null,ie==="throw"&&de.iterator.return&&(Z.method="return",Z.arg=S,we(de,Z),Z.method==="throw")||ie!=="return"&&(Z.method="throw",Z.arg=new TypeError("The iterator does not provide a '"+ie+"' method")),X;var he=F(me,de.iterator,Z.arg);if(he.type==="throw")return Z.method="throw",Z.arg=he.arg,Z.delegate=null,X;var ke=he.arg;return ke?ke.done?(Z[de.resultName]=ke.value,Z.next=de.nextLoc,Z.method!=="return"&&(Z.method="next",Z.arg=S),Z.delegate=null,X):ke:(Z.method="throw",Z.arg=new TypeError("iterator result is not an object"),Z.delegate=null,X)}function xe(de){var Z={tryLoc:de[0]};1 in de&&(Z.catchLoc=de[1]),2 in de&&(Z.finallyLoc=de[2],Z.afterLoc=de[3]),this.tryEntries.push(Z)}function Fe(de){var Z=de.completion||{};Z.type="normal",delete Z.arg,de.completion=Z}function _e(de){this.tryEntries=[{tryLoc:"root"}],de.forEach(xe,this),this.reset(!0)}function Ne(de){if(de||de===""){var Z=de[W];if(Z)return Z.call(de);if(typeof de.next=="function")return de;if(!isNaN(de.length)){var ie=-1,me=function he(){for(;++ie<de.length;)if(R.call(de,ie))return he.value=de[ie],he.done=!1,he;return he.value=S,he.done=!0,he};return me.next=me}}throw new TypeError(c(de)+" is not iterable")}return $.prototype=z,L(U,"constructor",{value:z,configurable:!0}),L(z,"constructor",{value:$,configurable:!0}),$.displayName=H(z,I,"GeneratorFunction"),b.isGeneratorFunction=function(de){var Z=typeof de=="function"&&de.constructor;return!!Z&&(Z===$||(Z.displayName||Z.name)==="GeneratorFunction")},b.mark=function(de){return Object.setPrototypeOf?Object.setPrototypeOf(de,z):(de.__proto__=z,H(de,I,"GeneratorFunction")),de.prototype=Object.create(U),de},b.awrap=function(de){return{__await:de}},le(oe.prototype),H(oe.prototype,G,(function(){return this})),b.AsyncIterator=oe,b.async=function(de,Z,ie,me,he){he===void 0&&(he=Promise);var ke=new oe(K(de,Z,ie,me),he);return b.isGeneratorFunction(Z)?ke:ke.next().then((function(Me){return Me.done?Me.value:ke.next()}))},le(U),H(U,I,"Generator"),H(U,W,(function(){return this})),H(U,"toString",(function(){return"[object Generator]"})),b.keys=function(de){var Z=Object(de),ie=[];for(var me in Z)ie.push(me);return ie.reverse(),function he(){for(;ie.length;){var ke=ie.pop();if(ke in Z)return he.value=ke,he.done=!1,he}return he.done=!0,he}},b.values=Ne,_e.prototype={constructor:_e,reset:function(de){if(this.prev=0,this.next=0,this.sent=this._sent=S,this.done=!1,this.delegate=null,this.method="next",this.arg=S,this.tryEntries.forEach(Fe),!de)for(var Z in this)Z.charAt(0)==="t"&&R.call(this,Z)&&!isNaN(+Z.slice(1))&&(this[Z]=S)},stop:function(){this.done=!0;var de=this.tryEntries[0].completion;if(de.type==="throw")throw de.arg;return this.rval},dispatchException:function(de){if(this.done)throw de;var Z=this;function ie(Se,Le){return ke.type="throw",ke.arg=de,Z.next=Se,Le&&(Z.method="next",Z.arg=S),!!Le}for(var me=this.tryEntries.length-1;me>=0;--me){var he=this.tryEntries[me],ke=he.completion;if(he.tryLoc==="root")return ie("end");if(he.tryLoc<=this.prev){var Me=R.call(he,"catchLoc"),se=R.call(he,"finallyLoc");if(Me&&se){if(this.prev<he.catchLoc)return ie(he.catchLoc,!0);if(this.prev<he.finallyLoc)return ie(he.finallyLoc)}else if(Me){if(this.prev<he.catchLoc)return ie(he.catchLoc,!0)}else{if(!se)throw new Error("try statement without catch or finally");if(this.prev<he.finallyLoc)return ie(he.finallyLoc)}}}},abrupt:function(de,Z){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var me=this.tryEntries[ie];if(me.tryLoc<=this.prev&&R.call(me,"finallyLoc")&&this.prev<me.finallyLoc){var he=me;break}}he&&(de==="break"||de==="continue")&&he.tryLoc<=Z&&Z<=he.finallyLoc&&(he=null);var ke=he?he.completion:{};return ke.type=de,ke.arg=Z,he?(this.method="next",this.next=he.finallyLoc,X):this.complete(ke)},complete:function(de,Z){if(de.type==="throw")throw de.arg;return de.type==="break"||de.type==="continue"?this.next=de.arg:de.type==="return"?(this.rval=this.arg=de.arg,this.method="return",this.next="end"):de.type==="normal"&&Z&&(this.next=Z),X},finish:function(de){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var ie=this.tryEntries[Z];if(ie.finallyLoc===de)return this.complete(ie.completion,ie.afterLoc),Fe(ie),X}},catch:function(de){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var ie=this.tryEntries[Z];if(ie.tryLoc===de){var me=ie.completion;if(me.type==="throw"){var he=me.arg;Fe(ie)}return he}}throw new Error("illegal catch attempt")},delegateYield:function(de,Z,ie){return this.delegate={iterator:Ne(de),resultName:Z,nextLoc:ie},this.method==="next"&&(this.arg=S),X}},b}function D(S,b){var T=typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(!T){if(Array.isArray(S)||(T=(function(I,H){if(I){if(typeof I=="string")return g(I,H);var K=Object.prototype.toString.call(I).slice(8,-1);if(K==="Object"&&I.constructor&&(K=I.constructor.name),K==="Map"||K==="Set")return Array.from(I);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return g(I,H)}})(S))||b){T&&(S=T);var R=0,L=function(){};return{s:L,n:function(){return R>=S.length?{done:!0}:{done:!1,value:S[R++]}},e:function(I){throw I},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
12
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N,W=!0,G=!1;return{s:function(){T=T.call(S)},n:function(){var I=T.next();return W=I.done,I},e:function(I){G=!0,N=I},f:function(){try{W||T.return==null||T.return()}finally{if(G)throw N}}}}function g(S,b){(b==null||b>S.length)&&(b=S.length);for(var T=0,R=new Array(b);T<b;T++)R[T]=S[T];return R}function M(S,b,T,R,L,N,W){try{var G=S[N](W),I=G.value}catch(H){return void T(H)}G.done?b(I):Promise.resolve(I).then(R,L)}var v,x,y=l.EventHandlers={keyEvent:function(S,b,T,R,L){var N=this.inputmask,W=N.opts,G=N.dependencyLib,I=N.maskset,H=this,K=G(H),F=S.key,P=C.caret.call(N,H),Q=W.onKeyDown.call(this,S,C.getBuffer.call(N),P,W);if(Q!==void 0)return Q;if(F===k.keys.Backspace||F===k.keys.Delete||f.iphone&&F===k.keys.BACKSPACE_SAFARI||S.ctrlKey&&F===k.keys.x&&!("oncut"in H))S.preventDefault(),A.handleRemove.call(N,H,F,P),(0,h.writeBuffer)(H,C.getBuffer.call(N,!0),I.p,S,H.inputmask._valueGet()!==C.getBuffer.call(N).join(""));else if(F===k.keys.End||F===k.keys.PageDown){S.preventDefault();var j=C.seekNext.call(N,C.getLastValidPosition.call(N));C.caret.call(N,H,S.shiftKey?P.begin:j,j,!0)}else F===k.keys.Home&&!S.shiftKey||F===k.keys.PageUp?(S.preventDefault(),C.caret.call(N,H,0,S.shiftKey?P.begin:0,!0)):W.undoOnEscape&&F===k.keys.Escape&&S.altKey!==!0?((0,h.checkVal)(H,!0,!1,N.undoValue.split("")),K.trigger("click")):F!==k.keys.Insert||S.shiftKey||S.ctrlKey||N.userOptions.insertMode!==void 0?W.tabThrough===!0&&F===k.keys.Tab?S.shiftKey===!0?(P.end=C.seekPrevious.call(N,P.end,!0),w.getTest.call(N,P.end-1).match.static===!0&&P.end--,P.begin=C.seekPrevious.call(N,P.end,!0),P.begin>=0&&P.end>0&&(S.preventDefault(),C.caret.call(N,H,P.begin,P.end))):(P.begin=C.seekNext.call(N,P.begin,!0),P.end=C.seekNext.call(N,P.begin,!0),P.end<I.maskLength&&P.end--,P.begin<=I.maskLength&&(S.preventDefault(),C.caret.call(N,H,P.begin,P.end))):S.shiftKey||(W.insertModeVisual&&W.insertMode===!1?F===k.keys.ArrowRight?setTimeout((function(){var q=C.caret.call(N,H);C.caret.call(N,H,q.begin)}),0):F===k.keys.ArrowLeft&&setTimeout((function(){var q=C.translatePosition.call(N,H.inputmask.caretPos.begin);C.translatePosition.call(N,H.inputmask.caretPos.end),N.isRTL?C.caret.call(N,H,q+(q===I.maskLength?0:1)):C.caret.call(N,H,q-(q===0?0:1))}),0):N.keyEventHook===void 0||N.keyEventHook(S)):A.isSelection.call(N,P)?W.insertMode=!W.insertMode:(W.insertMode=!W.insertMode,C.caret.call(N,H,P.begin,P.begin));return N.isComposing=F==k.keys.Process||F==k.keys.Unidentified,N.ignorable=F&&F.length>1&&!(H.tagName.toLowerCase()==="textarea"&&F==k.keys.Enter),y.keypressEvent.call(this,S,b,T,R,L)},keypressEvent:function(S,b,T,R,L){var N=this.inputmask||this,W=N.opts,G=N.dependencyLib,I=N.maskset,H=N.el,K=G(H),F=S.key;if(b===!0||S.ctrlKey&&S.altKey&&!N.ignorable||!(S.ctrlKey||S.metaKey||N.ignorable)){if(F){var P,Q=b?{begin:L,end:L}:C.caret.call(N,H);b||(F=W.substitutes[F]||F),I.writeOutBuffer=!0;var j=A.isValid.call(N,Q,F,R,void 0,void 0,void 0,b);if(j!==!1&&(C.resetMaskSet.call(N,!0),P=j.caret!==void 0?j.caret:C.seekNext.call(N,j.pos.begin?j.pos.begin:j.pos),I.p=P),P=W.numericInput&&j.caret===void 0?C.seekPrevious.call(N,P):P,T!==!1&&(setTimeout((function(){W.onKeyValidation.call(H,F,j)}),0),I.writeOutBuffer&&j!==!1)){var q=C.getBuffer.call(N);(0,h.writeBuffer)(H,q,P,S,b!==!0)}if(S.preventDefault(),b)return j!==!1&&(j.forwardPosition=P),j}}else F===k.keys.Enter&&N.undoValue!==N._valueGet(!0)&&(N.undoValue=N._valueGet(!0),setTimeout((function(){K.trigger("change")}),0))},pasteEvent:(v=m().mark((function S(b){var T,R,L,N,W,G;return m().wrap((function(I){for(;;)switch(I.prev=I.next){case 0:T=function(H,K,F,P,Q){var j=C.caret.call(H,K,void 0,void 0,!0),q=F.substr(0,j.begin),X=F.substr(j.end,F.length);if(q==(H.isRTL?C.getBufferTemplate.call(H).slice().reverse():C.getBufferTemplate.call(H)).slice(0,j.begin).join("")&&(q=""),X==(H.isRTL?C.getBufferTemplate.call(H).slice().reverse():C.getBufferTemplate.call(H)).slice(j.end).join("")&&(X=""),P=q+P+X,H.isRTL&&N.numericInput!==!0){P=P.split("");var ae,$=D(C.getBufferTemplate.call(H));try{for($.s();!(ae=$.n()).done;){var z=ae.value;P[0]===z&&P.shift()}}catch(ue){$.e(ue)}finally{$.f()}P=P.reverse().join("")}var J=P;if(typeof Q=="function"){if((J=Q.call(H,J,N))===!1)return!1;J||(J=F)}(0,h.checkVal)(K,!0,!1,J.toString().split(""),b)},R=this,L=this.inputmask,N=L.opts,W=L._valueGet(!0),L.skipInputEvent=!0,b.clipboardData&&b.clipboardData.getData?G=b.clipboardData.getData("text/plain"):p.default.clipboardData&&p.default.clipboardData.getData&&(G=p.default.clipboardData.getData("Text")),T(L,R,W,G,N.onBeforePaste),b.preventDefault();case 7:case"end":return I.stop()}}),S,this)})),x=function(){var S=this,b=arguments;return new Promise((function(T,R){var L=v.apply(S,b);function N(G){M(L,T,R,N,W,"next",G)}function W(G){M(L,T,R,N,W,"throw",G)}N(void 0)}))},function(S){return x.apply(this,arguments)}),inputFallBackEvent:function(S){var b=this.inputmask,T=b.opts,R=b.dependencyLib,L,N=this,W=N.inputmask._valueGet(!0),G=(b.isRTL?C.getBuffer.call(b).slice().reverse():C.getBuffer.call(b)).join(""),I=C.caret.call(b,N,void 0,void 0,!0);if(G!==W){if(L=(function(K,F,P){for(var Q,j,q,X=K.substr(0,P.begin).split(""),ae=K.substr(P.begin).split(""),$=F.substr(0,P.begin).split(""),z=F.substr(P.begin).split(""),J=X.length>=$.length?X.length:$.length,ue=ae.length>=z.length?ae.length:z.length,V="",U=[],le="~";X.length<J;)X.push(le);for(;$.length<J;)$.push(le);for(;ae.length<ue;)ae.unshift(le);for(;z.length<ue;)z.unshift(le);var oe=X.concat(ae),ye=$.concat(z);for(j=0,Q=oe.length;j<Q;j++)switch(q=w.getPlaceholder.call(b,C.translatePosition.call(b,j)),V){case"insertText":ye[j-1]===oe[j]&&P.begin==oe.length-1&&U.push(oe[j]),j=Q;break;case"insertReplacementText":case"deleteContentBackward":oe[j]===le?P.end++:j=Q;break;default:oe[j]!==ye[j]&&(oe[j+1]!==le&&oe[j+1]!==q&&oe[j+1]!==void 0||(ye[j]!==q||ye[j+1]!==le)&&ye[j]!==le?ye[j+1]===le&&ye[j]===oe[j+1]?(V="insertText",U.push(oe[j]),P.begin--,P.end--):oe[j]!==q&&oe[j]!==le&&(oe[j+1]===le||ye[j]!==oe[j]&&ye[j+1]===oe[j+1])?(V="insertReplacementText",U.push(oe[j]),P.begin--):oe[j]===le?(V="deleteContentBackward",(C.isMask.call(b,C.translatePosition.call(b,j),!0)||ye[j]===T.radixPoint)&&P.end++):j=Q:(V="insertText",U.push(oe[j]),P.begin--,P.end--))}return{action:V,data:U,caret:P}})(W,G,I),(N.inputmask.shadowRoot||N.ownerDocument).activeElement!==N&&N.focus(),(0,h.writeBuffer)(N,C.getBuffer.call(b)),C.caret.call(b,N,I.begin,I.end,!0),!f.mobile&&b.skipNextInsert&&S.inputType==="insertText"&&L.action==="insertText"&&b.isComposing)return!1;switch(S.inputType==="insertCompositionText"&&L.action==="insertText"&&b.isComposing?b.skipNextInsert=!0:b.skipNextInsert=!1,L.action){case"insertText":case"insertReplacementText":L.data.forEach((function(K,F){var P=new R.Event("keypress");P.key=K,b.ignorable=!1,y.keypressEvent.call(N,P)})),setTimeout((function(){b.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var H=new R.Event("keydown");H.key=k.keys.Backspace,y.keyEvent.call(N,H);break;default:(0,h.applyInputValue)(N,W),C.caret.call(b,N,I.begin,I.end,!0)}S.preventDefault()}},setValueEvent:function(S){var b=this.inputmask,T=b.dependencyLib,R=this,L=S&&S.detail?S.detail[0]:arguments[1];L===void 0&&(L=R.inputmask._valueGet(!0)),(0,h.applyInputValue)(R,L,new T.Event("input")),(S.detail&&S.detail[1]!==void 0||arguments[2]!==void 0)&&C.caret.call(b,R,S.detail?S.detail[1]:arguments[2])},focusEvent:function(S){var b=this.inputmask,T=b.opts,R=b&&b._valueGet();T.showMaskOnFocus&&R!==C.getBuffer.call(b).join("")&&(0,h.writeBuffer)(this,C.getBuffer.call(b),C.seekNext.call(b,C.getLastValidPosition.call(b))),T.positionCaretOnTab!==!0||b.mouseEnter!==!1||A.isComplete.call(b,C.getBuffer.call(b))&&C.getLastValidPosition.call(b)!==-1||y.clickEvent.apply(this,[S,!0]),b.undoValue=b&&b._valueGet(!0)},invalidEvent:function(S){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var S=this.inputmask,b=S.opts,T=this;S.mouseEnter=!1,b.clearMaskOnLostFocus&&(T.inputmask.shadowRoot||T.ownerDocument).activeElement!==T&&(0,h.HandleNativePlaceholder)(T,S.originalPlaceholder)},clickEvent:function(S,b){var T=this.inputmask;T.clicked++;var R=this;if((R.inputmask.shadowRoot||R.ownerDocument).activeElement===R){var L=C.determineNewCaretPosition.call(T,C.caret.call(T,R),b);L!==void 0&&C.caret.call(T,R,L)}},cutEvent:function(S){var b=this.inputmask,T=b.maskset,R=this,L=C.caret.call(b,R),N=b.isRTL?C.getBuffer.call(b).slice(L.end,L.begin):C.getBuffer.call(b).slice(L.begin,L.end),W=b.isRTL?N.reverse().join(""):N.join("");p.default.navigator&&p.default.navigator.clipboard?p.default.navigator.clipboard.writeText(W):p.default.clipboardData&&p.default.clipboardData.getData&&p.default.clipboardData.setData("Text",W),A.handleRemove.call(b,R,k.keys.Delete,L),(0,h.writeBuffer)(R,C.getBuffer.call(b),T.p,S,b.undoValue!==b._valueGet(!0))},blurEvent:function(S){var b=this.inputmask,T=b.opts,R=b.dependencyLib;b.clicked=0;var L=R(this),N=this;if(N.inputmask){(0,h.HandleNativePlaceholder)(N,b.originalPlaceholder);var W=N.inputmask._valueGet(),G=C.getBuffer.call(b).slice();W!==""&&(T.clearMaskOnLostFocus&&(C.getLastValidPosition.call(b)===-1&&W===C.getBufferTemplate.call(b).join("")?G=[]:h.clearOptionalTail.call(b,G)),A.isComplete.call(b,G)===!1&&(setTimeout((function(){L.trigger("incomplete")}),0),T.clearIncomplete&&(C.resetMaskSet.call(b,!1),G=T.clearMaskOnLostFocus?[]:C.getBufferTemplate.call(b).slice())),(0,h.writeBuffer)(N,G,void 0,S)),W=b._valueGet(!0),b.undoValue!==W&&(W!=""||b.undoValue!=C.getBufferTemplate.call(b).join("")||b.undoValue==C.getBufferTemplate.call(b).join("")&&b.maskset.validPositions.length>0)&&(b.undoValue=W,L.trigger("change"))}},mouseenterEvent:function(){var S=this.inputmask,b=S.opts.showMaskOnHover,T=this;if(S.mouseEnter=!0,(T.inputmask.shadowRoot||T.ownerDocument).activeElement!==T){var R=(S.isRTL?C.getBufferTemplate.call(S).slice().reverse():C.getBufferTemplate.call(S)).join("");b&&(0,h.HandleNativePlaceholder)(T,R)}},submitEvent:function(){var S=this.inputmask,b=S.opts;S.undoValue!==S._valueGet(!0)&&S.$el.trigger("change"),C.getLastValidPosition.call(S)===-1&&S._valueGet&&S._valueGet()===C.getBufferTemplate.call(S).join("")&&S._valueSet(""),b.clearIncomplete&&A.isComplete.call(S,C.getBuffer.call(S))===!1&&S._valueSet(""),b.removeMaskOnSubmit&&(S._valueSet(S.unmaskedvalue(),!0),setTimeout((function(){(0,h.writeBuffer)(S.el,C.getBuffer.call(S))}),0))},resetEvent:function(){var S=this.inputmask;S.refreshValue=!0,setTimeout((function(){(0,h.applyInputValue)(S.el,S._valueGet(!0))}),0)}}},9716:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.EventRuler=void 0;var c,d=u(7760),f=(c=u(2394))&&c.__esModule?c:{default:c},p=u(2839),h=u(8711);l.EventRuler={on:function(k,C,A){var w=k.inputmask.dependencyLib,m=function(D){D.originalEvent&&(D=D.originalEvent||D,arguments[0]=D);var g,M=this,v=M.inputmask,x=v?v.opts:void 0;if(v===void 0&&this.nodeName!=="FORM"){var y=w.data(M,"_inputmask_opts");w(M).off(),y&&new f.default(y).mask(M)}else{if(["submit","reset","setvalue"].includes(D.type)||this.nodeName==="FORM"||!(M.disabled||M.readOnly&&!(D.type==="keydown"&&D.ctrlKey&&D.key===p.keys.c||x.tabThrough===!1&&D.key===p.keys.Tab))){switch(D.type){case"input":if(v.skipInputEvent===!0)return v.skipInputEvent=!1,D.preventDefault();break;case"click":case"focus":return v.validationEvent?(v.validationEvent=!1,k.blur(),(0,d.HandleNativePlaceholder)(k,(v.isRTL?h.getBufferTemplate.call(v).slice().reverse():h.getBufferTemplate.call(v)).join("")),setTimeout((function(){k.focus()}),x.validationEventTimeOut),!1):(g=arguments,void setTimeout((function(){k.inputmask&&A.apply(M,g)}),0))}var S=A.apply(M,arguments);return S===!1&&(D.preventDefault(),D.stopPropagation()),S}D.preventDefault()}};["submit","reset"].includes(C)?(m=m.bind(k),k.form!==null&&w(k.form).on(C,m)):w(k).on(C,m),k.inputmask.events[C]=k.inputmask.events[C]||[],k.inputmask.events[C].push(m)},off:function(k,C){if(k.inputmask&&k.inputmask.events){var A=k.inputmask.dependencyLib,w=k.inputmask.events;for(var m in C&&((w=[])[C]=k.inputmask.events[C]),w){for(var D=w[m];D.length>0;){var g=D.pop();["submit","reset"].includes(m)?k.form!==null&&A(k.form).off(m,g):A(k).off(m,g)}delete k.inputmask.events[m]}}}}},219:function(o,l,u){var c=m(u(7184)),d=m(u(2394)),f=u(2839),p=u(8711),h=u(4713);function k(F,P){return(function(Q){if(Array.isArray(Q))return Q})(F)||(function(Q,j){var q=Q==null?null:typeof Symbol<"u"&&Q[Symbol.iterator]||Q["@@iterator"];if(q!=null){var X,ae,$,z,J=[],ue=!0,V=!1;try{if($=(q=q.call(Q)).next,j!==0)for(;!(ue=(X=$.call(q)).done)&&(J.push(X.value),J.length!==j);ue=!0);}catch(U){V=!0,ae=U}finally{try{if(!ue&&q.return!=null&&(z=q.return(),Object(z)!==z))return}finally{if(V)throw ae}}return J}})(F,P)||(function(Q,j){if(Q){if(typeof Q=="string")return C(Q,j);var q=Object.prototype.toString.call(Q).slice(8,-1);if(q==="Object"&&Q.constructor&&(q=Q.constructor.name),q==="Map"||q==="Set")return Array.from(Q);if(q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q))return C(Q,j)}})(F,P)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function C(F,P){(P==null||P>F.length)&&(P=F.length);for(var Q=0,j=new Array(P);Q<P;Q++)j[Q]=F[Q];return j}function A(F){return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},A(F)}function w(F,P){for(var Q=0;Q<P.length;Q++){var j=P[Q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(F,(q=j.key,X=void 0,X=(function(ae,$){if(A(ae)!=="object"||ae===null)return ae;var z=ae[Symbol.toPrimitive];if(z!==void 0){var J=z.call(ae,$);if(A(J)!=="object")return J;throw new TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(ae)})(q,"string"),A(X)==="symbol"?X:String(X)),j)}var q,X}function m(F){return F&&F.__esModule?F:{default:F}}u(1313);var D=d.default.dependencyLib,g=(function(){function F(j,q,X,ae){(function($,z){if(!($ instanceof z))throw new TypeError("Cannot call a class as a function")})(this,F),this.mask=j,this.format=q,this.opts=X,this.inputmask=ae,this._date=new Date(1,0,1),this.initDateObject(j,this.opts,this.inputmask)}var P,Q;return P=F,(Q=[{key:"date",get:function(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}},{key:"initDateObject",value:function(j,q,X){var ae;for(L(q).lastIndex=0;ae=L(q).exec(this.format);){var $=/\d+$/.exec(ae[0]),z=$?ae[0][0]+"x":ae[0],J=void 0;if(j!==void 0){if($){var ue=L(q).lastIndex,V=K.call(X,ae.index,q,X&&X.maskset);L(q).lastIndex=ue,J=j.slice(0,j.indexOf(V.nextMatch[0]))}else{for(var U=ae[0][0],le=ae.index;X&&(q.placeholder[h.getTest.call(X,le).match.placeholder]||h.getTest.call(X,le).match.placeholder)===U;)le++;var oe=le-ae.index;J=j.slice(0,oe||y[z]&&y[z][4]||z.length)}j=j.slice(J.length)}Object.prototype.hasOwnProperty.call(y,z)&&this.setValue(this,J,z,y[z][2],y[z][1])}}},{key:"setValue",value:function(j,q,X,ae,$){if(q!==void 0)switch(ae){case"ampm":j[ae]=q,j["raw"+ae]=q.replace(/\s/g,"_");break;case"month":if(X==="mmm"||X==="mmmm"){j[ae]=G(X==="mmm"?v.monthNames.slice(0,12).findIndex((function(J){return q.toLowerCase()===J.toLowerCase()}))+1:v.monthNames.slice(12,24).findIndex((function(J){return q.toLowerCase()===J.toLowerCase()}))+1,2),j[ae]=j[ae]==="00"?"":j[ae].toString(),j["raw"+ae]=j[ae];break}default:j[ae]=q.replace(/[^0-9]/g,"0"),j["raw"+ae]=q.replace(/\s/g,"_")}if($!==void 0){var z=j[ae];(ae==="day"&&parseInt(z)===29||ae==="month"&&parseInt(z)===2)&&(parseInt(j.day)!==29||parseInt(j.month)!==2||j.year!==""&&j.year!==void 0||j._date.setFullYear(2012,1,29)),ae==="day"&&(x=!0,parseInt(z)===0&&(z=1)),ae==="month"&&(x=!0),ae==="year"&&(x=!0,z.length<y[X][4]&&(z=G(z,y[X][4],!0))),(z!==""&&!isNaN(z)||ae==="ampm")&&$.call(j._date,z)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&w(P.prototype,Q),Object.defineProperty(P,"prototype",{writable:!1}),F})(),M=new Date().getFullYear(),v=d.default.prototype.i18n,x=!1,y={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return G(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(F){var P=F?parseInt(F):0;return P>0&&P--,Date.prototype.setMonth.call(this,P)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(F){var P=F?parseInt(F):0;return P>0&&P--,Date.prototype.setMonth.call(this,P)},"month",function(){return G(Date.prototype.getMonth.call(this)+1,2)}],mmm:[v.monthNames.slice(0,12).join("|"),function(F){var P=v.monthNames.slice(0,12).findIndex((function(Q){return F.toLowerCase()===Q.toLowerCase()}));return P!==-1&&Date.prototype.setMonth.call(this,P)},"month",function(){return v.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[v.monthNames.slice(12,24).join("|"),function(F){var P=v.monthNames.slice(12,24).findIndex((function(Q){return F.toLowerCase()===Q.toLowerCase()}));return P!==-1&&Date.prototype.setMonth.call(this,P)},"month",function(){return v.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(F){var P=new Date().getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(P).concat(F))},"year",function(){return G(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return G(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return G(Date.prototype.getHours.call(this),2)}],hx:[function(F){return"[0-9]{".concat(F,"}")},Date.prototype.setHours,"hours",function(F){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return G(Date.prototype.getHours.call(this),2)}],Hx:[function(F){return"[0-9]{".concat(F,"}")},Date.prototype.setHours,"hours",function(F){return function(){return G(Date.prototype.getHours.call(this),F)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return G(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return G(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return G(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return G(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",b,"ampm",T,1],tt:["[ap]m",b,"ampm",T,2],T:["[AP]",b,"ampm",T,1],TT:["[AP]M",b,"ampm",T,2],Z:[".*",void 0,"Z",function(){var F=this.toString().match(/\((.+)\)/)[1];return F.includes(" ")&&(F=(F=F.replace("-"," ").toUpperCase()).split(" ").map((function(P){return k(P,1)[0]})).join("")),F}],o:[""],S:[""]},S={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function b(F){var P=this.getHours();F.toLowerCase().includes("p")?this.setHours(P+12):F.toLowerCase().includes("a")&&P>=12&&this.setHours(P-12)}function T(){var F=this.getHours();return(F=F||12)>=12?"PM":"AM"}function R(F){var P=/\d+$/.exec(F[0]);if(P&&P[0]!==void 0){var Q=y[F[0][0]+"x"].slice("");return Q[0]=Q[0](P[0]),Q[3]=Q[3](P[0]),Q}if(y[F[0]])return y[F[0]]}function L(F){if(!F.tokenizer){var P=[],Q=[];for(var j in y)if(/\.*x$/.test(j)){var q=j[0]+"\\d+";Q.indexOf(q)===-1&&Q.push(q)}else P.indexOf(j[0])===-1&&P.push(j[0]);F.tokenizer="("+(Q.length>0?Q.join("|")+"|":"")+P.join("+|")+")+?|.",F.tokenizer=new RegExp(F.tokenizer,"g")}return F.tokenizer}function N(F,P,Q){if(!x)return!0;if(F.rawday===void 0||!isFinite(F.rawday)&&new Date(F.date.getFullYear(),isFinite(F.rawmonth)?F.month:F.date.getMonth()+1,0).getDate()>=F.day||F.day=="29"&&(!isFinite(F.rawyear)||F.rawyear===void 0||F.rawyear==="")||new Date(F.date.getFullYear(),isFinite(F.rawmonth)?F.month:F.date.getMonth()+1,0).getDate()>=F.day)return P;if(F.day=="29"){var j=K.call(this,P.pos,Q,this.maskset);if(j.targetMatch&&j.targetMatch[0]==="yyyy"&&P.pos-j.targetMatchIndex==2)return P.remove=P.pos+1,P}else if(F.date.getMonth()==2&&F.day=="30"&&P.c!==void 0)return F.day="03",F.date.setDate(3),F.date.setMonth(1),P.insert=[{pos:P.pos,c:"0"},{pos:P.pos+1,c:P.c}],P.caret=p.seekNext.call(this,P.pos+1),P;return!1}function W(F,P,Q,j){var q,X,ae="",$=0,z={};for(L(Q).lastIndex=0;q=L(Q).exec(F);){if(P===void 0)if(X=R(q))ae+="("+X[0]+")",Q.placeholder&&Q.placeholder!==""?(z[$]=Q.placeholder[q.index%Q.placeholder.length],z[Q.placeholder[q.index%Q.placeholder.length]]=q[0].charAt(0)):z[$]=q[0].charAt(0);else switch(q[0]){case"[":ae+="(";break;case"]":ae+=")?";break;default:ae+=(0,c.default)(q[0]),z[$]=q[0].charAt(0)}else(X=R(q))?j!==!0&&X[3]?ae+=X[3].call(P.date):X[2]?ae+=P["raw"+X[2]]:ae+=q[0]:ae+=q[0];$++}return P===void 0&&(Q.placeholder=z),ae}function G(F,P,Q){for(F=String(F),P=P||2;F.length<P;)F=Q?F+"0":"0"+F;return F}function I(F,P,Q){return typeof F=="string"?new g(F,P,Q,this):F&&A(F)==="object"&&Object.prototype.hasOwnProperty.call(F,"date")?F:void 0}function H(F,P){return W(P.inputFormat,{date:F},P)}function K(F,P,Q){var j,q,X=this,ae=Q&&Q.tests[F]?P.placeholder[Q.tests[F][0].match.placeholder]||Q.tests[F][0].match.placeholder:"",$=0,z=0;for(L(P).lastIndex=0;q=L(P).exec(P.inputFormat);){var J=/\d+$/.exec(q[0]);if(J)z=parseInt(J[0]);else{for(var ue=q[0][0],V=$;X&&(P.placeholder[h.getTest.call(X,V).match.placeholder]||h.getTest.call(X,V).match.placeholder)===ue;)V++;(z=V-$)===0&&(z=q[0].length)}if($+=z,q[0].indexOf(ae)!=-1||$>=F+1){j=q,q=L(P).exec(P.inputFormat);break}}return{targetMatchIndex:$-z,nextMatch:q,targetMatch:j}}d.default.extendAliases({datetime:{mask:function(F){return F.numericInput=!1,y.S=v.ordinalSuffix.join("|"),F.inputFormat=S[F.inputFormat]||F.inputFormat,F.displayFormat=S[F.displayFormat]||F.displayFormat||F.inputFormat,F.outputFormat=S[F.outputFormat]||F.outputFormat||F.inputFormat,F.regex=W(F.inputFormat,void 0,F),F.min=I(F.min,F.inputFormat,F),F.max=I(F.max,F.inputFormat,F),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(F,P,Q,j,q,X,ae,$){if($)return!0;if(isNaN(Q)&&F[P]!==Q){var z=K.call(this,P,q,X);if(z.nextMatch&&z.nextMatch[0]===Q&&z.targetMatch[0].length>1){var J=R(z.targetMatch)[0];if(new RegExp(J).test("0"+F[P-1]))return F[P]=F[P-1],F[P-1]="0",{fuzzy:!0,buffer:F,refreshFromBuffer:{start:P-1,end:P+1},pos:P+1}}}return!0},postValidation:function(F,P,Q,j,q,X,ae,$){var z,J,ue=this;if(ae)return!0;if(j===!1&&(((z=K.call(ue,P+1,q,X)).targetMatch&&z.targetMatchIndex===P&&z.targetMatch[0].length>1&&y[z.targetMatch[0]]!==void 0||(z=K.call(ue,P+2,q,X)).targetMatch&&z.targetMatchIndex===P+1&&z.targetMatch[0].length>1&&y[z.targetMatch[0]]!==void 0)&&(J=R(z.targetMatch)[0]),J!==void 0&&(X.validPositions[P+1]!==void 0&&new RegExp(J).test(Q+"0")?(F[P]=Q,F[P+1]="0",j={pos:P+2,caret:P}):new RegExp(J).test("0"+Q)&&(F[P]="0",F[P+1]=Q,j={pos:P+2})),j===!1))return j;if(j.fuzzy&&(F=j.buffer,P=j.pos),(z=K.call(ue,P,q,X)).targetMatch&&z.targetMatch[0]&&y[z.targetMatch[0]]!==void 0){var V=R(z.targetMatch);J=V[0];var U=F.slice(z.targetMatchIndex,z.targetMatchIndex+z.targetMatch[0].length);if(new RegExp(J).test(U.join(""))===!1&&z.targetMatch[0].length===2&&X.validPositions[z.targetMatchIndex]&&X.validPositions[z.targetMatchIndex+1]&&(X.validPositions[z.targetMatchIndex+1].input="0"),V[2]=="year")for(var le=h.getMaskTemplate.call(ue,!1,1,void 0,!0),oe=P+1;oe<F.length;oe++)F[oe]=le[oe],X.validPositions.splice(P+1,1)}var ye=j,we=I.call(ue,F.join(""),q.inputFormat,q);return ye&&!isNaN(we.date.getTime())&&(q.prefillYear&&(ye=(function(xe,Fe,_e){if(xe.year!==xe.rawyear){var Ne=M.toString(),de=xe.rawyear.replace(/[^0-9]/g,""),Z=Ne.slice(0,de.length),ie=Ne.slice(de.length);if(de.length===2&&de===Z){var me=new Date(M,xe.month-1,xe.day);xe.day==me.getDate()&&(!_e.max||_e.max.date.getTime()>=me.getTime())&&(xe.date.setFullYear(M),xe.year=Ne,Fe.insert=[{pos:Fe.pos+1,c:ie[0]},{pos:Fe.pos+2,c:ie[1]}])}}return Fe})(we,ye,q)),ye=(function(xe,Fe,_e,Ne,de){if(!Fe)return Fe;if(Fe&&_e.min&&!isNaN(_e.min.date.getTime())){var Z;for(xe.reset(),L(_e).lastIndex=0;Z=L(_e).exec(_e.inputFormat);){var ie;if((ie=R(Z))&&ie[3]){for(var me=ie[1],he=xe[ie[2]],ke=_e.min[ie[2]],Me=_e.max?_e.max[ie[2]]:ke+1,se=[],Se=!1,Le=0;Le<ke.length;Le++)Ne.validPositions[Le+Z.index]!==void 0||Se?(se[Le]=he[Le],Se=Se||he[Le]>ke[Le]):(Le+Z.index==0&&he[Le]<ke[Le]?(se[Le]=he[Le],Se=!0):se[Le]=ke[Le],ie[2]==="year"&&he.length-1==Le&&ke!=Me&&(se=(parseInt(se.join(""))+1).toString().split("")),ie[2]==="ampm"&&ke!=Me&&_e.min.date.getTime()>xe.date.getTime()&&(se[Le]=Me[Le]));me.call(xe._date,se.join(""))}}Fe=_e.min.date.getTime()<=xe.date.getTime(),xe.reInit()}return Fe&&_e.max&&(isNaN(_e.max.date.getTime())||(Fe=_e.max.date.getTime()>=xe.date.getTime())),Fe})(we,ye=N.call(ue,we,ye,q),q,X)),P!==void 0&&ye&&j.pos!==P?{buffer:W(q.inputFormat,we,q).split(""),refreshFromBuffer:{start:P,end:j.pos},pos:j.caret||j.pos}:ye},onKeyDown:function(F,P,Q,j){F.ctrlKey&&F.key===f.keys.ArrowRight&&(this.inputmask._valueSet(H(new Date,j)),D(this).trigger("setvalue"))},onUnMask:function(F,P,Q){return P&&W(Q.outputFormat,I.call(this,F,Q.inputFormat,Q),Q,!0)},casing:function(F,P,Q,j){if(P.nativeDef.indexOf("[ap]")==0)return F.toLowerCase();if(P.nativeDef.indexOf("[AP]")==0)return F.toUpperCase();var q=h.getTest.call(this,[Q-1]);return q.match.def.indexOf("[AP]")==0||Q===0||q&&q.input===String.fromCharCode(f.keyCode.Space)||q&&q.match.def===String.fromCharCode(f.keyCode.Space)?F.toUpperCase():F.toLowerCase()},onBeforeMask:function(F,P){return Object.prototype.toString.call(F)==="[object Date]"&&(F=H(F,P)),F},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(o,l,u){var c,d=(c=u(2394))&&c.__esModule?c:{default:c};d.default.dependencyLib.extend(!0,d.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(o,l,u){var c,d=(c=u(2394))&&c.__esModule?c:{default:c},f=u(8711),p=u(4713);function h(w){return(function(m){if(Array.isArray(m))return k(m)})(w)||(function(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)})(w)||(function(m,D){if(m){if(typeof m=="string")return k(m,D);var g=Object.prototype.toString.call(m).slice(8,-1);if(g==="Object"&&m.constructor&&(g=m.constructor.name),g==="Map"||g==="Set")return Array.from(m);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return k(m,D)}})(w)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function k(w,m){(m==null||m>w.length)&&(m=w.length);for(var D=0,g=new Array(m);D<m;D++)g[D]=w[D];return g}d.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var C=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function A(w,m,D,g,M){if(D-1>-1&&m.buffer[D-1]!=="."?(w=m.buffer[D-1]+w,w=D-2>-1&&m.buffer[D-2]!=="."?m.buffer[D-2]+w:"0"+w):w="00"+w,M.greedy&&parseInt(w)>255&&C.test("00"+w.charAt(2))){var v=[].concat(h(m.buffer.slice(0,D)),[".",w.charAt(2)]);if(v.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:v,caret:D+2}}return C.test(w)}d.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:A},j:{validator:A},k:{validator:A},l:{validator:A}},onUnMask:function(w,m,D){return w},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(w){var m=w.separator,D=w.quantifier,g="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",M=g;if(m)for(var v=0;v<D;v++)M+="[".concat(m).concat(g,"]");return M},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(w,m){return(w=w.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(w,m,D){return w},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(w,m,D,g,M,v,x){var y=p.getMaskTemplate.call(this,!0,f.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(y.join(""))}}})},207:function(o,l,u){var c=h(u(7184)),d=h(u(2394)),f=u(2839),p=u(8711);function h(g){return g&&g.__esModule?g:{default:g}}var k=d.default.dependencyLib;function C(g,M){for(var v="",x=0;x<g.length;x++)d.default.prototype.definitions[g.charAt(x)]||M.definitions[g.charAt(x)]||M.optionalmarker[0]===g.charAt(x)||M.optionalmarker[1]===g.charAt(x)||M.quantifiermarker[0]===g.charAt(x)||M.quantifiermarker[1]===g.charAt(x)||M.groupmarker[0]===g.charAt(x)||M.groupmarker[1]===g.charAt(x)||M.alternatormarker===g.charAt(x)?v+="\\"+g.charAt(x):v+=g.charAt(x);return v}function A(g,M,v,x){if(g.length>0&&M>0&&(!v.digitsOptional||x)){var y=g.indexOf(v.radixPoint),S=!1;v.negationSymbol.back===g[g.length-1]&&(S=!0,g.length--),y===-1&&(g.push(v.radixPoint),y=g.length-1);for(var b=1;b<=M;b++)isFinite(g[y+b])||(g[y+b]="0")}return S&&g.push(v.negationSymbol.back),g}function w(g,M){var v=0;for(var x in g==="+"&&(v=p.seekNext.call(this,M.validPositions.length-1)),M.tests)if((x=parseInt(x))>=v){for(var y=0,S=M.tests[x].length;y<S;y++)if((M.validPositions[x]===void 0||g==="-")&&M.tests[x][y].match.def===g)return x+(M.validPositions[x]!==void 0&&g!=="-"?1:0)}return v}function m(g,M){for(var v=-1,x=0,y=M.validPositions.length;x<y;x++){var S=M.validPositions[x];if(S&&S.match.def===g){v=x;break}}return v}function D(g,M,v,x,y){var S=M.buffer?M.buffer.indexOf(y.radixPoint):-1,b=(S!==-1||x&&y.jitMasking)&&new RegExp(y.definitions[9].validator).test(g);return!x&&y._radixDance&&S!==-1&&b&&M.validPositions[S]==null?{insert:{pos:S===v?S+1:S,c:y.radixPoint},pos:v}:b}d.default.extendAliases({numeric:{mask:function(g){g.repeat=0,g.groupSeparator===g.radixPoint&&g.digits&&g.digits!=="0"&&(g.radixPoint==="."?g.groupSeparator=",":g.radixPoint===","?g.groupSeparator=".":g.groupSeparator=""),g.groupSeparator===" "&&(g.skipOptionalPartCharacter=void 0),g.placeholder.length>1&&(g.placeholder=g.placeholder.charAt(0)),g.positionCaretOnClick==="radixFocus"&&g.placeholder===""&&(g.positionCaretOnClick="lvp");var M="0",v=g.radixPoint;g.numericInput===!0&&g.__financeInput===void 0?(M="1",g.positionCaretOnClick=g.positionCaretOnClick==="radixFocus"?"lvp":g.positionCaretOnClick,g.digitsOptional=!1,isNaN(g.digits)&&(g.digits=2),g._radixDance=!1,v=g.radixPoint===","?"?":"!",g.radixPoint!==""&&g.definitions[v]===void 0&&(g.definitions[v]={},g.definitions[v].validator="["+g.radixPoint+"]",g.definitions[v].placeholder=g.radixPoint,g.definitions[v].static=!0,g.definitions[v].generated=!0)):(g.__financeInput=!1,g.numericInput=!0);var x,y="[+]";if(y+=C(g.prefix,g),g.groupSeparator!==""?(g.definitions[g.groupSeparator]===void 0&&(g.definitions[g.groupSeparator]={},g.definitions[g.groupSeparator].validator="["+g.groupSeparator+"]",g.definitions[g.groupSeparator].placeholder=g.groupSeparator,g.definitions[g.groupSeparator].static=!0,g.definitions[g.groupSeparator].generated=!0),y+=g._mask(g)):y+="9{+}",g.digits!==void 0&&g.digits!==0){var S=g.digits.toString().split(",");isFinite(S[0])&&S[1]&&isFinite(S[1])?y+=v+M+"{"+g.digits+"}":(isNaN(g.digits)||parseInt(g.digits)>0)&&(g.digitsOptional||g.jitMasking?(x=y+v+M+"{0,"+g.digits+"}",g.keepStatic=!0):y+=v+M+"{"+g.digits+"}")}else g.inputmode="numeric";return y+=C(g.suffix,g),y+="[-]",x&&(y=[x+C(g.suffix,g)+"[-]",y]),g.greedy=!1,(function(b){b.parseMinMaxOptions===void 0&&(b.min!==null&&(b.min=b.min.toString().replace(new RegExp((0,c.default)(b.groupSeparator),"g"),""),b.radixPoint===","&&(b.min=b.min.replace(b.radixPoint,".")),b.min=isFinite(b.min)?parseFloat(b.min):NaN,isNaN(b.min)&&(b.min=Number.MIN_VALUE)),b.max!==null&&(b.max=b.max.toString().replace(new RegExp((0,c.default)(b.groupSeparator),"g"),""),b.radixPoint===","&&(b.max=b.max.replace(b.radixPoint,".")),b.max=isFinite(b.max)?parseFloat(b.max):NaN,isNaN(b.max)&&(b.max=Number.MAX_VALUE)),b.parseMinMaxOptions="done")})(g),g.radixPoint!==""&&g.substituteRadixPoint&&(g.substitutes[g.radixPoint=="."?",":"."]=g.radixPoint),y},_mask:function(g){return"("+g.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:D},1:{validator:D,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(g,M,v,x,y){return y.allowMinus&&(g==="-"||g===y.negationSymbol.front)}},"-":{validator:function(g,M,v,x,y){return y.allowMinus&&g===y.negationSymbol.back}}},preValidation:function(g,M,v,x,y,S,b,T){var R=this;if(y.__financeInput!==!1&&v===y.radixPoint)return!1;var L=g.indexOf(y.radixPoint),N=M;if(M=(function(K,F,P,Q,j){return j._radixDance&&j.numericInput&&F!==j.negationSymbol.back&&K<=P&&(P>0||F==j.radixPoint)&&(Q.validPositions[K-1]===void 0||Q.validPositions[K-1].input!==j.negationSymbol.back)&&(K-=1),K})(M,v,L,S,y),v==="-"||v===y.negationSymbol.front){if(y.allowMinus!==!0)return!1;var W=!1,G=m("+",S),I=m("-",S);return G!==-1&&(W=[G],I!==-1&&W.push(I)),W!==!1?{remove:W,caret:N-y.negationSymbol.back.length}:{insert:[{pos:w.call(R,"+",S),c:y.negationSymbol.front,fromIsValid:!0},{pos:w.call(R,"-",S),c:y.negationSymbol.back,fromIsValid:void 0}],caret:N+y.negationSymbol.back.length}}if(v===y.groupSeparator)return{caret:N};if(T)return!0;if(L!==-1&&y._radixDance===!0&&x===!1&&v===y.radixPoint&&y.digits!==void 0&&(isNaN(y.digits)||parseInt(y.digits)>0)&&L!==M){var H=w.call(R,y.radixPoint,S);return S.validPositions[H]&&(S.validPositions[H].generatedInput=S.validPositions[H].generated||!1),{caret:y._radixDance&&M===L-1?L+1:L}}if(y.__financeInput===!1){if(x){if(y.digitsOptional)return{rewritePosition:b.end};if(!y.digitsOptional){if(b.begin>L&&b.end<=L)return v===y.radixPoint?{insert:{pos:L+1,c:"0",fromIsValid:!0},rewritePosition:L}:{rewritePosition:L+1};if(b.begin<L)return{rewritePosition:b.begin-1}}}else if(!y.showMaskOnHover&&!y.showMaskOnFocus&&!y.digitsOptional&&y.digits>0&&this.__valueGet.call(this.el)==="")return{rewritePosition:L}}return{rewritePosition:M}},postValidation:function(g,M,v,x,y,S,b){if(x===!1)return x;if(b)return!0;if(y.min!==null||y.max!==null){var T=y.onUnMask(g.slice().reverse().join(""),void 0,k.extend({},y,{unmaskAsNumber:!0}));if(y.min!==null&&T<y.min&&(T.toString().length>y.min.toString().length||T<0))return!1;if(y.max!==null&&T>y.max)return!!y.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:A(y.max.toString().replace(".",y.radixPoint).split(""),y.digits,y).reverse()}}return x},onUnMask:function(g,M,v){if(M===""&&v.nullable===!0)return M;var x=g.replace(v.prefix,"");return x=(x=x.replace(v.suffix,"")).replace(new RegExp((0,c.default)(v.groupSeparator),"g"),""),v.placeholder.charAt(0)!==""&&(x=x.replace(new RegExp(v.placeholder.charAt(0),"g"),"0")),v.unmaskAsNumber?(v.radixPoint!==""&&x.indexOf(v.radixPoint)!==-1&&(x=x.replace(c.default.call(this,v.radixPoint),".")),x=(x=x.replace(new RegExp("^"+(0,c.default)(v.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(v.negationSymbol.back)+"$"),""),Number(x)):x},isComplete:function(g,M){var v=(M.numericInput?g.slice().reverse():g).join("");return v=(v=(v=(v=(v=v.replace(new RegExp("^"+(0,c.default)(M.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(M.negationSymbol.back)+"$"),"")).replace(M.prefix,"")).replace(M.suffix,"")).replace(new RegExp((0,c.default)(M.groupSeparator)+"([0-9]{3})","g"),"$1"),M.radixPoint===","&&(v=v.replace((0,c.default)(M.radixPoint),".")),isFinite(v)},onBeforeMask:function(g,M){var v;g=(v=g)!==null&&v!==void 0?v:"";var x=M.radixPoint||",";isFinite(M.digits)&&(M.digits=parseInt(M.digits)),typeof g!="number"&&M.inputType!=="number"||x===""||(g=g.toString().replace(".",x));var y=g.charAt(0)==="-"||g.charAt(0)===M.negationSymbol.front,S=g.split(x),b=S[0].replace(/[^\-0-9]/g,""),T=S.length>1?S[1].replace(/[^0-9]/g,""):"",R=S.length>1;g=b+(T!==""?x+T:T);var L=0;if(x!==""&&(L=M.digitsOptional?M.digits<T.length?M.digits:T.length:M.digits,T!==""||!M.digitsOptional)){var N=Math.pow(10,L||1);g=g.replace((0,c.default)(x),"."),isNaN(parseFloat(g))||(g=(M.roundingFN(parseFloat(g)*N)/N).toFixed(L)),g=g.toString().replace(".",x)}if(M.digits===0&&g.indexOf(x)!==-1&&(g=g.substring(0,g.indexOf(x))),M.min!==null||M.max!==null){var W=g.toString().replace(x,".");M.min!==null&&W<M.min?g=M.min.toString().replace(".",x):M.max!==null&&W>M.max&&(g=M.max.toString().replace(".",x))}return y&&g.charAt(0)!=="-"&&(g="-"+g),A(g.toString().split(""),L,M,R).join("")},onBeforeWrite:function(g,M,v,x){function y(I,H){if(x.__financeInput!==!1||H){var K=I.indexOf(x.radixPoint);K!==-1&&I.splice(K,1)}if(x.groupSeparator!=="")for(;(K=I.indexOf(x.groupSeparator))!==-1;)I.splice(K,1);return I}var S,b;if(x.stripLeadingZeroes&&(b=(function(I,H){var K=new RegExp("(^"+(H.negationSymbol.front!==""?(0,c.default)(H.negationSymbol.front)+"?":"")+(0,c.default)(H.prefix)+")(.*)("+(0,c.default)(H.suffix)+(H.negationSymbol.back!=""?(0,c.default)(H.negationSymbol.back)+"?":"")+"$)").exec(I.slice().reverse().join("")),F=K?K[2]:"",P=!1;return F&&(F=F.split(H.radixPoint.charAt(0))[0],P=new RegExp("^[0"+H.groupSeparator+"]*").exec(F)),!(!P||!(P[0].length>1||P[0].length>0&&P[0].length<F.length))&&P})(M,x)))for(var T=M.join("").lastIndexOf(b[0].split("").reverse().join(""))-(b[0]==b.input?0:1),R=b[0]==b.input?1:0,L=b[0].length-R;L>0;L--)this.maskset.validPositions.splice(T+L,1),delete M[T+L];if(g)switch(g.type){case"blur":case"checkval":if(x.min!==null){var N=x.onUnMask(M.slice().reverse().join(""),void 0,k.extend({},x,{unmaskAsNumber:!0}));if(x.min!==null&&N<x.min)return{refreshFromBuffer:!0,buffer:A(x.min.toString().replace(".",x.radixPoint).split(""),x.digits,x).reverse()}}if(M[M.length-1]===x.negationSymbol.front){var W=new RegExp("(^"+(x.negationSymbol.front!=""?(0,c.default)(x.negationSymbol.front)+"?":"")+(0,c.default)(x.prefix)+")(.*)("+(0,c.default)(x.suffix)+(x.negationSymbol.back!=""?(0,c.default)(x.negationSymbol.back)+"?":"")+"$)").exec(y(M.slice(),!0).reverse().join(""));(W?W[2]:"")==0&&(S={refreshFromBuffer:!0,buffer:[0]})}else x.radixPoint!==""&&M.indexOf(x.radixPoint)===x.suffix.length&&(S&&S.buffer?S.buffer.splice(0,1+x.suffix.length):(M.splice(0,1+x.suffix.length),S={refreshFromBuffer:!0,buffer:y(M)}));if(x.enforceDigitsOnBlur){var G=(S=S||{})&&S.buffer||M.slice().reverse();S.refreshFromBuffer=!0,S.buffer=A(G,x.digits,x,!0).reverse()}}return S},onKeyDown:function(g,M,v,x){var y,S=k(this);if(g.location!=3){var b,T=g.key;if((b=x.shortcuts&&x.shortcuts[T])&&b.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(b)),S.trigger("setvalue"),!1}if(g.ctrlKey)switch(g.key){case f.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(x.step)),S.trigger("setvalue"),!1;case f.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(x.step)),S.trigger("setvalue"),!1}if(!g.shiftKey&&(g.key===f.keys.Delete||g.key===f.keys.Backspace||g.key===f.keys.BACKSPACE_SAFARI)&&v.begin!==M.length){if(M[g.key===f.keys.Delete?v.begin-1:v.end]===x.negationSymbol.front)return y=M.slice().reverse(),x.negationSymbol.front!==""&&y.shift(),x.negationSymbol.back!==""&&y.pop(),S.trigger("setvalue",[y.join(""),v.begin]),!1;if(x._radixDance===!0){var R,L=M.indexOf(x.radixPoint);if(x.digitsOptional){if(L===0)return(y=M.slice().reverse()).pop(),S.trigger("setvalue",[y.join(""),v.begin>=y.length?y.length:v.begin]),!1}else if(L!==-1&&(v.begin<L||v.end<L||g.key===f.keys.Delete&&(v.begin===L||v.begin-1===L)))return v.begin===v.end&&(g.key===f.keys.Backspace||g.key===f.keys.BACKSPACE_SAFARI?v.begin++:g.key===f.keys.Delete&&v.begin-1===L&&(R=k.extend({},v),v.begin--,v.end--)),(y=M.slice().reverse()).splice(y.length-v.begin,v.begin-v.end+1),y=A(y,x.digits,x).join(""),R&&(v=R),S.trigger("setvalue",[y,v.begin>=y.length?L+1:v.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(g){return"("+g.groupSeparator+"99){*|1}("+g.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=!(typeof window>"u"||!window.document||!window.document.createElement);l.default=u?window:{}},7760:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.HandleNativePlaceholder=function(D,g){var M=D?D.inputmask:this;if(c.ie){if(D.inputmask._valueGet()!==g&&(D.placeholder!==g||D.placeholder==="")){var v=p.getBuffer.call(M).slice(),x=D.inputmask._valueGet();if(x!==g){var y=p.getLastValidPosition.call(M);y===-1&&x===p.getBufferTemplate.call(M).join("")?v=[]:y!==-1&&A.call(M,v),m(D,v)}}}else D.placeholder!==g&&(D.placeholder=g,D.placeholder===""&&D.removeAttribute("placeholder"))},l.applyInputValue=C,l.checkVal=w,l.clearOptionalTail=A,l.unmaskedvalue=function(D){var g=D?D.inputmask:this,M=g.opts,v=g.maskset;if(D){if(D.inputmask===void 0)return D.value;D.inputmask&&D.inputmask.refreshValue&&C(D,D.inputmask._valueGet(!0))}for(var x=[],y=v.validPositions,S=0,b=y.length;S<b;S++)y[S]&&y[S].match&&(y[S].match.static!=1||Array.isArray(v.metadata)&&y[S].generatedInput!==!0)&&x.push(y[S].input);var T=x.length===0?"":(g.isRTL?x.reverse():x).join("");if(typeof M.onUnMask=="function"){var R=(g.isRTL?p.getBuffer.call(g).slice().reverse():p.getBuffer.call(g)).join("");T=M.onUnMask.call(g,R,T,M)}return T},l.writeBuffer=m;var c=u(9845),d=u(6030),f=u(2839),p=u(8711),h=u(7215),k=u(4713);function C(D,g,M){var v=D?D.inputmask:this,x=v.opts;D.inputmask.refreshValue=!1,typeof x.onBeforeMask=="function"&&(g=x.onBeforeMask.call(v,g,x)||g),w(D,!0,!1,g=(g||"").toString().split(""),M),v.undoValue=v._valueGet(!0),(x.clearMaskOnLostFocus||x.clearIncomplete)&&D.inputmask._valueGet()===p.getBufferTemplate.call(v).join("")&&p.getLastValidPosition.call(v)===-1&&D.inputmask._valueSet("")}function A(D){D.length=0;for(var g,M=k.getMaskTemplate.call(this,!0,0,!0,void 0,!0);(g=M.shift())!==void 0;)D.push(g);return D}function w(D,g,M,v,x){var y,S=D?D.inputmask:this,b=S.maskset,T=S.opts,R=S.dependencyLib,L=v.slice(),N="",W=-1,G=T.skipOptionalPartCharacter;T.skipOptionalPartCharacter="",p.resetMaskSet.call(S,!1),S.clicked=0,W=T.radixPoint?p.determineNewCaretPosition.call(S,{begin:0,end:0},!1,T.__financeInput===!1?"radixFocus":void 0).begin:0,b.p=W,S.caretPos={begin:W};var I=[],H=S.caretPos;if(L.forEach((function(q,X){if(q!==void 0){var ae=new R.Event("_checkval");ae.key=q,N+=q;var $=p.getLastValidPosition.call(S,void 0,!0);(function(z,J){for(var ue=k.getMaskTemplate.call(S,!0,0).slice(z,p.seekNext.call(S,z,!1,!1)).join("").replace(/'/g,""),V=ue.indexOf(J);V>0&&ue[V-1]===" ";)V--;var U=V===0&&!p.isMask.call(S,z)&&(k.getTest.call(S,z).match.nativeDef===J.charAt(0)||k.getTest.call(S,z).match.static===!0&&k.getTest.call(S,z).match.nativeDef==="'"+J.charAt(0)||k.getTest.call(S,z).match.nativeDef===" "&&(k.getTest.call(S,z+1).match.nativeDef===J.charAt(0)||k.getTest.call(S,z+1).match.static===!0&&k.getTest.call(S,z+1).match.nativeDef==="'"+J.charAt(0)));if(!U&&V>0&&!p.isMask.call(S,z,!1,!0)){var le=p.seekNext.call(S,z);S.caretPos.begin<le&&(S.caretPos={begin:le})}return U})(W,N)?y=d.EventHandlers.keypressEvent.call(S,ae,!0,!1,M,$+1):(y=d.EventHandlers.keypressEvent.call(S,ae,!0,!1,M,S.caretPos.begin))&&(W=S.caretPos.begin+1,N=""),y?(y.pos!==void 0&&b.validPositions[y.pos]&&b.validPositions[y.pos].match.static===!0&&b.validPositions[y.pos].alternation===void 0&&(I.push(y.pos),S.isRTL||(y.forwardPosition=y.pos+1)),m.call(S,void 0,p.getBuffer.call(S),y.forwardPosition,ae,!1),S.caretPos={begin:y.forwardPosition,end:y.forwardPosition},H=S.caretPos):b.validPositions[X]===void 0&&L[X]===k.getPlaceholder.call(S,X)&&p.isMask.call(S,X,!0)?S.caretPos.begin++:S.caretPos=H}})),I.length>0){var K,F,P=p.seekNext.call(S,-1,void 0,!1);if(!h.isComplete.call(S,p.getBuffer.call(S))&&I.length<=P||h.isComplete.call(S,p.getBuffer.call(S))&&I.length>0&&I.length!==P&&I[0]===0){for(var Q=P;(K=I.shift())!==void 0;)if(K<Q){var j=new R.Event("_checkval");if((F=b.validPositions[K]).generatedInput=!0,j.key=F.input,(y=d.EventHandlers.keypressEvent.call(S,j,!0,!1,M,Q))&&y.pos!==void 0&&y.pos!==K&&b.validPositions[y.pos]&&b.validPositions[y.pos].match.static===!0)I.push(y.pos);else if(!y)break;Q++}}}g&&m.call(S,D,p.getBuffer.call(S),y?y.forwardPosition:S.caretPos.begin,x||new R.Event("checkval"),x&&(x.type==="input"&&S.undoValue!==p.getBuffer.call(S).join("")||x.type==="paste")),T.skipOptionalPartCharacter=G}function m(D,g,M,v,x){var y=D?D.inputmask:this,S=y.opts,b=y.dependencyLib;if(v&&typeof S.onBeforeWrite=="function"){var T=S.onBeforeWrite.call(y,v,g,M,S);if(T){if(T.refreshFromBuffer){var R=T.refreshFromBuffer;h.refreshFromBuffer.call(y,R===!0?R:R.start,R.end,T.buffer||g),g=p.getBuffer.call(y,!0)}M!==void 0&&(M=T.caret!==void 0?T.caret:M)}}if(D!==void 0&&(D.inputmask._valueSet(g.join("")),M===void 0||v!==void 0&&v.type==="blur"||p.caret.call(y,D,M,void 0,void 0,v!==void 0&&v.type==="keydown"&&(v.key===f.keys.Delete||v.key===f.keys.Backspace)),D.inputmask.writeBufferHook===void 0||D.inputmask.writeBufferHook(M),x===!0)){var L=b(D),N=D.inputmask._valueGet();D.inputmask.skipInputEvent=!0,L.trigger("input"),setTimeout((function(){N===p.getBufferTemplate.call(y).join("")?L.trigger("cleared"):h.isComplete.call(y,g)===!0&&L.trigger("complete")}),0)}}},2394:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=M(u(3976)),d=M(u(7392)),f=M(u(4963)),p=u(9716),h=M(u(9380)),k=u(7760),C=u(157),A=u(2391),w=u(8711),m=u(7215),D=u(4713);function g(b){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},g(b)}function M(b){return b&&b.__esModule?b:{default:b}}var v=h.default.document,x="_inputmask_opts";function y(b,T,R){if(!(this instanceof y))return new y(b,T,R);this.dependencyLib=f.default,this.el=void 0,this.events={},this.maskset=void 0,R!==!0&&(Object.prototype.toString.call(b)==="[object Object]"?T=b:(T=T||{},b&&(T.alias=b)),this.opts=f.default.extend(!0,{},this.defaults,T),this.noMasksCache=T&&T.definitions!==void 0,this.userOptions=T||{},S(this.opts.alias,T,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}function S(b,T,R){var L=y.prototype.aliases[b];return L?(L.alias&&S(L.alias,void 0,R),f.default.extend(!0,R,L),f.default.extend(!0,R,T),!0):(R.mask===null&&(R.mask=b),!1)}y.prototype={dataAttribute:"data-inputmask",defaults:c.default,definitions:d.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(b){var T=this;return typeof b=="string"&&(b=v.getElementById(b)||v.querySelectorAll(b)),(b=b.nodeName?[b]:Array.isArray(b)?b:[].slice.call(b)).forEach((function(R,L){var N=f.default.extend(!0,{},T.opts);if((function(G,I,H,K){function F(ae,$){var z=K===""?ae:K+"-"+ae;($=$!==void 0?$:G.getAttribute(z))!==null&&(typeof $=="string"&&(ae.indexOf("on")===0?$=h.default[$]:$==="false"?$=!1:$==="true"&&($=!0)),H[ae]=$)}if(I.importDataAttributes===!0){var P,Q,j,q,X=G.getAttribute(K);if(X&&X!==""&&(X=X.replace(/'/g,'"'),Q=JSON.parse("{"+X+"}")),Q){for(q in j=void 0,Q)if(q.toLowerCase()==="alias"){j=Q[q];break}}for(P in F("alias",j),H.alias&&S(H.alias,H,I),I){if(Q){for(q in j=void 0,Q)if(q.toLowerCase()===P.toLowerCase()){j=Q[q];break}}F(P,j)}}return f.default.extend(!0,I,H),(G.dir==="rtl"||I.rightAlign)&&(G.style.textAlign="right"),(G.dir==="rtl"||I.numericInput)&&(G.dir="ltr",G.removeAttribute("dir"),I.isRTL=!0),Object.keys(H).length})(R,N,f.default.extend(!0,{},T.userOptions),T.dataAttribute)){var W=(0,A.generateMaskSet)(N,T.noMasksCache);W!==void 0&&(R.inputmask!==void 0&&(R.inputmask.opts.autoUnmask=!0,R.inputmask.remove()),R.inputmask=new y(void 0,void 0,!0),R.inputmask.opts=N,R.inputmask.noMasksCache=T.noMasksCache,R.inputmask.userOptions=f.default.extend(!0,{},T.userOptions),R.inputmask.el=R,R.inputmask.$el=(0,f.default)(R),R.inputmask.maskset=W,f.default.data(R,x,T.userOptions),C.mask.call(R.inputmask))}})),b&&b[0]&&b[0].inputmask||this},option:function(b,T){return typeof b=="string"?this.opts[b]:g(b)==="object"?(f.default.extend(this.userOptions,b),this.el&&T!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(b){if(this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||b!==void 0){var T=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,b,this.opts)||b).split("");k.checkVal.call(this,void 0,!1,!1,T),typeof this.opts.onBeforeWrite=="function"&&this.opts.onBeforeWrite.call(this,void 0,w.getBuffer.call(this),0,this.opts)}return k.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){f.default.data(this.el,x,null);var b=this.opts.autoUnmask?(0,k.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);b!==w.getBufferTemplate.call(this).join("")?this._valueSet(b,this.opts.autoUnmask):this._valueSet(""),p.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):v.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?w.getBufferTemplate.call(this).reverse():w.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),m.isComplete.call(this,w.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var b=D.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(T){return T.mask!==b||(b=T,!1)})),b}return this.maskset.metadata},isValid:function(b){if(this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),b){var T=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,b,this.opts)||b).split("");k.checkVal.call(this,void 0,!0,!1,T)}else b=this.isRTL?w.getBuffer.call(this).slice().reverse().join(""):w.getBuffer.call(this).join("");for(var R=w.getBuffer.call(this),L=w.determineLastRequiredPosition.call(this),N=R.length-1;N>L&&!w.isMask.call(this,N);N--);return R.splice(L,N+1-L),m.isComplete.call(this,R)&&b===(this.isRTL?w.getBuffer.call(this).slice().reverse().join(""):w.getBuffer.call(this).join(""))},format:function(b,T){this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache);var R=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,b,this.opts)||b).split("");k.checkVal.call(this,void 0,!0,!1,R);var L=this.isRTL?w.getBuffer.call(this).slice().reverse().join(""):w.getBuffer.call(this).join("");return T?{value:L,metadata:this.getmetadata()}:L},setValue:function(b){this.el&&(0,f.default)(this.el).trigger("setvalue",[b])},analyseMask:A.analyseMask},y.extendDefaults=function(b){f.default.extend(!0,y.prototype.defaults,b)},y.extendDefinitions=function(b){f.default.extend(!0,y.prototype.definitions,b)},y.extendAliases=function(b){f.default.extend(!0,y.prototype.aliases,b)},y.format=function(b,T,R){return y(T).format(b,R)},y.unmask=function(b,T){return y(T).unmaskedvalue(b)},y.isValid=function(b,T){return y(T).isValid(b)},y.remove=function(b){typeof b=="string"&&(b=v.getElementById(b)||v.querySelectorAll(b)),(b=b.nodeName?[b]:b).forEach((function(T){T.inputmask&&T.inputmask.remove()}))},y.setValue=function(b,T){typeof b=="string"&&(b=v.getElementById(b)||v.querySelectorAll(b)),(b=b.nodeName?[b]:b).forEach((function(R){R.inputmask?R.inputmask.setValue(T):(0,f.default)(R).trigger("setvalue",[T])}))},y.dependencyLib=f.default,h.default.Inputmask=y,l.default=y},5296:function(o,l,u){function c(v){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},c(v)}var d=D(u(9380)),f=D(u(2394));function p(v,x){for(var y=0;y<x.length;y++){var S=x[y];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,(b=S.key,T=void 0,T=(function(R,L){if(c(R)!=="object"||R===null)return R;var N=R[Symbol.toPrimitive];if(N!==void 0){var W=N.call(R,L);if(c(W)!=="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(R)})(b,"string"),c(T)==="symbol"?T:String(T)),S)}var b,T}function h(v){var x=A();return function(){var y,S=m(v);if(x){var b=m(this).constructor;y=Reflect.construct(S,arguments,b)}else y=S.apply(this,arguments);return(function(T,R){if(R&&(c(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L})(T)})(this,y)}}function k(v){var x=typeof Map=="function"?new Map:void 0;return k=function(y){if(y===null||!(function(b){try{return Function.toString.call(b).indexOf("[native code]")!==-1}catch{return typeof b=="function"}})(y))return y;if(typeof y!="function")throw new TypeError("Super expression must either be null or a function");if(x!==void 0){if(x.has(y))return x.get(y);x.set(y,S)}function S(){return C(y,arguments,m(this).constructor)}return S.prototype=Object.create(y.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w(S,y)},k(v)}function C(v,x,y){return C=A()?Reflect.construct.bind():function(S,b,T){var R=[null];R.push.apply(R,b);var L=new(Function.bind.apply(S,R));return T&&w(L,T.prototype),L},C.apply(null,arguments)}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}function w(v,x){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,S){return y.__proto__=S,y},w(v,x)}function m(v){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},m(v)}function D(v){return v&&v.__esModule?v:{default:v}}var g=d.default.document;if(g&&g.head&&g.head.attachShadow&&d.default.customElements&&d.default.customElements.get("input-mask")===void 0){var M=(function(v){(function(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),Object.defineProperty(T,"prototype",{writable:!1}),R&&w(T,R)})(b,v);var x,y,S=h(b);function b(){var T;(function(G,I){if(!(G instanceof I))throw new TypeError("Cannot call a class as a function")})(this,b);var R=(T=S.call(this)).getAttributeNames(),L=T.attachShadow({mode:"closed"});for(var N in T.input=g.createElement("input"),T.input.type="text",L.appendChild(T.input),R)Object.prototype.hasOwnProperty.call(R,N)&&T.input.setAttribute(R[N],T.getAttribute(R[N]));var W=new f.default;return W.dataAttribute="",W.mask(T.input),T.input.inputmask.shadowRoot=L,T}return x=b,(y=[{key:"attributeChangedCallback",value:function(T,R,L){this.input.setAttribute(T,L)}},{key:"value",get:function(){return this.input.value},set:function(T){this.input.value=T}}])&&p(x.prototype,y),Object.defineProperty(x,"prototype",{writable:!1}),b})(k(HTMLElement));d.default.customElements.define("input-mask",M)}},2839:function(o,l){function u(C){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},u(C)}function c(C,A){return(function(w){if(Array.isArray(w))return w})(C)||(function(w,m){var D=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(D!=null){var g,M,v,x,y=[],S=!0,b=!1;try{if(v=(D=D.call(w)).next,m!==0)for(;!(S=(g=v.call(D)).done)&&(y.push(g.value),y.length!==m);S=!0);}catch(T){b=!0,M=T}finally{try{if(!S&&D.return!=null&&(x=D.return(),Object(x)!==x))return}finally{if(b)throw M}}return y}})(C,A)||(function(w,m){if(w){if(typeof w=="string")return d(w,m);var D=Object.prototype.toString.call(w).slice(8,-1);if(D==="Object"&&w.constructor&&(D=w.constructor.name),D==="Map"||D==="Set")return Array.from(w);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return d(w,m)}})(C,A)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function d(C,A){(A==null||A>C.length)&&(A=C.length);for(var w=0,m=new Array(A);w<A;w++)m[w]=C[w];return m}function f(C,A){var w=Object.keys(C);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(C);A&&(m=m.filter((function(D){return Object.getOwnPropertyDescriptor(C,D).enumerable}))),w.push.apply(w,m)}return w}function p(C,A,w){return(A=(function(m){var D=(function(g,M){if(u(g)!=="object"||g===null)return g;var v=g[Symbol.toPrimitive];if(v!==void 0){var x=v.call(g,M);if(u(x)!=="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(M==="string"?String:Number)(g)})(m,"string");return u(D)==="symbol"?D:String(D)})(A))in C?Object.defineProperty(C,A,{value:w,enumerable:!0,configurable:!0,writable:!0}):C[A]=w,C}Object.defineProperty(l,"__esModule",{value:!0}),l.keys=l.keyCode=void 0,l.toKey=function(C,A){return k[C]||(A?String.fromCharCode(C):String.fromCharCode(C).toLowerCase())},l.toKeyCode=function(C){return h[C]};var h=l.keyCode=(function(C){for(var A=1;A<arguments.length;A++){var w=arguments[A]!=null?arguments[A]:{};A%2?f(Object(w),!0).forEach((function(m){p(C,m,w[m])})):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(w)):f(Object(w)).forEach((function(m){Object.defineProperty(C,m,Object.getOwnPropertyDescriptor(w,m))}))}return C})({c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32},{Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229}),k=Object.entries(h).reduce((function(C,A){var w=c(A,2),m=w[0],D=w[1];return C[D]=C[D]===void 0?m:C[D],C}),{});l.keys=Object.entries(h).reduce((function(C,A){var w=c(A,2),m=w[0];return w[1],C[m]=m==="Space"?" ":m,C}),{})},2391:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.analyseMask=function(A,w,m){var D,g,M,v,x,y,S=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,b=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,T=!1,R=new p.default,L=[],
|
|
16
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(G.split("["),2),K=H[0],F=H[1];F=F.replace("]",""),v=v.replace(new RegExp("".concat((0,d.default)(K),"\\[").concat((0,d.default)(F),"\\]")),K.charAt(0)===F.charAt(0)?"(".concat(K,"|").concat(K).concat(F,")"):"".concat(K,"[").concat(F,"]"))}))}return v}function g(v,x,y){var S,b,T=!1;return v!==null&&v!==""||((T=y.regex!==null)?v=(v=y.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(T=!0,v=".*")),v.length===1&&y.greedy===!1&&y.repeat!==0&&(y.placeholder=""),v=D(v,y),b=T?"regex_"+y.regex:y.numericInput?v.split("").reverse().join(""):v,y.keepStatic!==null&&(b="ks_"+y.keepStatic+b),h(y.placeholder)==="object"&&(b="ph_"+JSON.stringify(y.placeholder)+b),f.default.prototype.masksCache[b]===void 0||w===!0?(S={mask:v,maskToken:f.default.prototype.analyseMask(v,T,y),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:x,maskLength:void 0,jitOffset:{}},w!==!0&&(f.default.prototype.masksCache[b]=S,S=c.default.extend(!0,{},f.default.prototype.masksCache[b]))):S=c.default.extend(!0,{},f.default.prototype.masksCache[b]),S}if(typeof A.mask=="function"&&(A.mask=A.mask(A)),Array.isArray(A.mask)){if(A.mask.length>1){A.keepStatic===null&&(A.keepStatic=!0);var M=A.groupmarker[0];return(A.isRTL?A.mask.reverse():A.mask).forEach((function(v){M.length>1&&(M+=A.alternatormarker),v.mask!==void 0&&typeof v.mask!="function"?M+=v.mask:M+=v})),g(M+=A.groupmarker[1],A.mask,A)}A.mask=A.mask.pop()}return m=A.mask&&A.mask.mask!==void 0&&typeof A.mask.mask!="function"?g(A.mask.mask,A.mask,A):g(A.mask,A.mask,A),A.keepStatic===null&&(A.keepStatic=!1),m};var c=C(u(4963)),d=C(u(7184)),f=C(u(2394)),p=C(u(9695));function h(A){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},h(A)}function k(A,w){(w==null||w>A.length)&&(w=A.length);for(var m=0,D=new Array(w);m<w;m++)D[m]=A[m];return D}function C(A){return A&&A.__esModule?A:{default:A}}},157:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.mask=function(){var C=this,A=this.opts,w=this.el,m=this.dependencyLib;f.EventRuler.off(w);var D=(function(v,x){var y=v.getAttribute("type"),S=v.tagName.toLowerCase()==="input"&&x.supportsInputType.includes(y)||v.isContentEditable||v.tagName.toLowerCase()==="textarea";if(!S)if(v.tagName.toLowerCase()==="input"){var b=document.createElement("input");b.setAttribute("type",y),S=b.type==="text",b=null}else S="partial";return S!==!1?(function(T){var R,L;function N(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():h.getLastValidPosition.call(C)!==-1||x.nullable!==!0?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&x.clearMaskOnLostFocus?(C.isRTL?p.clearOptionalTail.call(C,h.getBuffer.call(C).slice()).reverse():p.clearOptionalTail.call(C,h.getBuffer.call(C).slice())).join(""):R.call(this):"":R.call(this)}function W(I){L.call(this,I),this.inputmask&&(0,p.applyInputValue)(this,I)}if(!T.inputmask.__valueGet){if(x.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){var G=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(T),"value"):void 0;G&&G.get&&G.set?(R=G.get,L=G.set,Object.defineProperty(T,"value",{get:N,set:W,configurable:!0})):T.tagName.toLowerCase()!=="input"&&(R=function(){return this.textContent},L=function(I){this.textContent=I},Object.defineProperty(T,"value",{get:N,set:W,configurable:!0}))}else document.__lookupGetter__&&T.__lookupGetter__("value")&&(R=T.__lookupGetter__("value"),L=T.__lookupSetter__("value"),T.__defineGetter__("value",N),T.__defineSetter__("value",W));T.inputmask.__valueGet=R,T.inputmask.__valueSet=L}T.inputmask._valueGet=function(I){return C.isRTL&&I!==!0?R.call(this.el).split("").reverse().join(""):R.call(this.el)},T.inputmask._valueSet=function(I,H){L.call(this.el,I==null?"":H!==!0&&C.isRTL?I.split("").reverse().join(""):I)},R===void 0&&(R=function(){return this.value},L=function(I){this.value=I},(function(I){if(m.valHooks&&(m.valHooks[I]===void 0||m.valHooks[I].inputmaskpatch!==!0)){var H=m.valHooks[I]&&m.valHooks[I].get?m.valHooks[I].get:function(F){return F.value},K=m.valHooks[I]&&m.valHooks[I].set?m.valHooks[I].set:function(F,P){return F.value=P,F};m.valHooks[I]={get:function(F){if(F.inputmask){if(F.inputmask.opts.autoUnmask)return F.inputmask.unmaskedvalue();var P=H(F);return h.getLastValidPosition.call(C,void 0,void 0,F.inputmask.maskset.validPositions)!==-1||x.nullable!==!0?P:""}return H(F)},set:function(F,P){var Q=K(F,P);return F.inputmask&&(0,p.applyInputValue)(F,P),Q},inputmaskpatch:!0}}})(T.type),(function(I){f.EventRuler.on(I,"mouseenter",(function(){var H=this,K=H.inputmask._valueGet(!0);K!=(H.inputmask.isRTL?h.getBuffer.call(H.inputmask).slice().reverse():h.getBuffer.call(H.inputmask)).join("")&&(0,p.applyInputValue)(H,K)}))})(T))}})(v):v.inputmask=void 0,S})(w,A);if(D!==!1){C.originalPlaceholder=w.placeholder,C.maxLength=w!==void 0?w.maxLength:void 0,C.maxLength===-1&&(C.maxLength=void 0),"inputMode"in w&&w.getAttribute("inputmode")===null&&(w.inputMode=A.inputmode,w.setAttribute("inputmode",A.inputmode)),D===!0&&(A.showMaskOnFocus=A.showMaskOnFocus&&["cc-number","cc-exp"].indexOf(w.autocomplete)===-1,c.iphone&&(A.insertModeVisual=!1,w.setAttribute("autocorrect","off")),f.EventRuler.on(w,"submit",d.EventHandlers.submitEvent),f.EventRuler.on(w,"reset",d.EventHandlers.resetEvent),f.EventRuler.on(w,"blur",d.EventHandlers.blurEvent),f.EventRuler.on(w,"focus",d.EventHandlers.focusEvent),f.EventRuler.on(w,"invalid",d.EventHandlers.invalidEvent),f.EventRuler.on(w,"click",d.EventHandlers.clickEvent),f.EventRuler.on(w,"mouseleave",d.EventHandlers.mouseleaveEvent),f.EventRuler.on(w,"mouseenter",d.EventHandlers.mouseenterEvent),f.EventRuler.on(w,"paste",d.EventHandlers.pasteEvent),f.EventRuler.on(w,"cut",d.EventHandlers.cutEvent),f.EventRuler.on(w,"complete",A.oncomplete),f.EventRuler.on(w,"incomplete",A.onincomplete),f.EventRuler.on(w,"cleared",A.oncleared),A.inputEventOnly!==!0&&f.EventRuler.on(w,"keydown",d.EventHandlers.keyEvent),(c.mobile||A.inputEventOnly)&&w.removeAttribute("maxLength"),f.EventRuler.on(w,"input",d.EventHandlers.inputFallBackEvent)),f.EventRuler.on(w,"setvalue",d.EventHandlers.setValueEvent),C.applyMaskHook===void 0||C.applyMaskHook(),h.getBufferTemplate.call(C).join(""),C.undoValue=C._valueGet(!0);var g=(w.inputmask.shadowRoot||w.ownerDocument).activeElement;if(w.inputmask._valueGet(!0)!==""||A.clearMaskOnLostFocus===!1||g===w){(0,p.applyInputValue)(w,w.inputmask._valueGet(!0),A);var M=h.getBuffer.call(C).slice();k.isComplete.call(C,M)===!1&&A.clearIncomplete&&h.resetMaskSet.call(C,!1),A.clearMaskOnLostFocus&&g!==w&&(h.getLastValidPosition.call(C)===-1?M=[]:p.clearOptionalTail.call(C,M)),(A.clearMaskOnLostFocus===!1||A.showMaskOnFocus&&g===w||w.inputmask._valueGet(!0)!=="")&&(0,p.writeBuffer)(w,M),g===w&&h.caret.call(C,w,h.seekNext.call(C,h.getLastValidPosition.call(C)))}}};var c=u(9845),d=u(6030),f=u(9716),p=u(7760),h=u(8711),k=u(7215)},9695:function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(u,c,d,f){this.matches=[],this.openGroup=u||!1,this.alternatorGroup=!1,this.isGroup=u||!1,this.isOptional=c||!1,this.isQuantifier=d||!1,this.isAlternator=f||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(o,l){if(this==null)throw new TypeError('"this" is null or not defined');var u=Object(this),c=u.length>>>0;if(c===0)return!1;for(var d=0|l,f=Math.max(d>=0?d:c-Math.abs(d),0);f<c;){if(u[f]===o)return!0;f++}return!1}})},9302:function(){var o=Function.bind.call(Function.call,Array.prototype.reduce),l=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),u=Function.bind.call(Function.call,Array.prototype.concat),c=Object.keys;Object.entries||(Object.entries=function(d){return o(c(d),(function(f,p){return u(f,typeof p=="string"&&l(d,p)?[[p,d[p]]]:[])}),[])})},7149:function(){function o(l){return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},o(l)}typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=o("test".__proto__)==="object"?function(l){return l.__proto__}:function(l){return l.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(o,l){return typeof l!="number"&&(l=0),!(l+o.length>this.length)&&this.indexOf(o,l)!==-1})},8711:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.caret=function(m,D,g,M,v){var x,y=this,S=this.opts;if(D===void 0)return"selectionStart"in m&&"selectionEnd"in m?(D=m.selectionStart,g=m.selectionEnd):d.default.getSelection?(x=d.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==m&&x.commonAncestorContainer!==m||(D=x.startOffset,g=x.endOffset):document.selection&&document.selection.createRange&&(g=(D=0-(x=document.selection.createRange()).duplicate().moveStart("character",-m.inputmask._valueGet().length))+x.text.length),{begin:M?D:w.call(y,D),end:M?g:w.call(y,g)};if(Array.isArray(D)&&(g=y.isRTL?D[0]:D[1],D=y.isRTL?D[1]:D[0]),D.begin!==void 0&&(g=y.isRTL?D.begin:D.end,D=y.isRTL?D.end:D.begin),typeof D=="number"){D=M?D:w.call(y,D),g=typeof(g=M?g:w.call(y,g))=="number"?g:D;var b=parseInt(((m.ownerDocument.defaultView||d.default).getComputedStyle?(m.ownerDocument.defaultView||d.default).getComputedStyle(m,null):m.currentStyle).fontSize)*g;if(m.scrollLeft=b>m.scrollWidth?b:0,m.inputmask.caretPos={begin:D,end:g},S.insertModeVisual&&S.insertMode===!1&&D===g&&(v||g++),m===(m.inputmask.shadowRoot||m.ownerDocument).activeElement){if("setSelectionRange"in m)m.setSelectionRange(D,g);else if(d.default.getSelection){if(x=document.createRange(),m.firstChild===void 0||m.firstChild===null){var T=document.createTextNode("");m.appendChild(T)}x.setStart(m.firstChild,D<m.inputmask._valueGet().length?D:m.inputmask._valueGet().length),x.setEnd(m.firstChild,g<m.inputmask._valueGet().length?g:m.inputmask._valueGet().length),x.collapse(!0);var R=d.default.getSelection();R.removeAllRanges(),R.addRange(x)}else m.createTextRange&&((x=m.createTextRange()).collapse(!0),x.moveEnd("character",g),x.moveStart("character",D),x.select());m.inputmask.caretHook===void 0||m.inputmask.caretHook.call(y,{begin:D,end:g})}}},l.determineLastRequiredPosition=function(m){var D,g,M=this,v=M.maskset,x=M.dependencyLib,y=k.call(M),S={},b=v.validPositions[y],T=p.getMaskTemplate.call(M,!0,k.call(M),!0,!0),R=T.length,L=b!==void 0?b.locator.slice():void 0;for(D=y+1;D<T.length;D++)L=(g=p.getTestTemplate.call(M,D,L,D-1)).locator.slice(),S[D]=x.extend(!0,{},g);var N=b&&b.alternation!==void 0?b.locator[b.alternation]:void 0;for(D=R-1;D>y&&((g=S[D]).match.optionality||g.match.optionalQuantifier&&g.match.newBlockMarker||N&&(N!==S[D].locator[b.alternation]&&g.match.static!==!0||g.match.static===!0&&g.locator[b.alternation]&&f.checkAlternationMatch.call(M,g.locator[b.alternation].toString().split(","),N.toString().split(","))&&p.getTests.call(M,D)[0].def!==""))&&T[D]===p.getPlaceholder.call(M,D,g.match);D--)R--;return m?{l:R,def:S[R]?S[R].match:void 0}:R},l.determineNewCaretPosition=function(m,D,g){var M,v,x,y=this,S=y.maskset,b=y.opts;if(D&&(y.isRTL?m.end=m.begin:m.begin=m.end),m.begin===m.end){switch(g=g||b.positionCaretOnClick){case"none":break;case"select":m={begin:0,end:h.call(y).length};break;case"ignore":m.end=m.begin=A.call(y,k.call(y));break;case"radixFocus":if(y.clicked>1&&S.validPositions.length===0)break;if((function(G){if(b.radixPoint!==""&&b.digits!==0){var I=S.validPositions;if(I[G]===void 0||I[G].input===void 0){if(G<A.call(y,-1))return!0;var H=h.call(y).indexOf(b.radixPoint);if(H!==-1){for(var K=0,F=I.length;K<F;K++)if(I[K]&&H<K&&I[K].input!==p.getPlaceholder.call(y,K))return!1;return!0}}}return!1})(m.begin)){var T=h.call(y).join("").indexOf(b.radixPoint);m.end=m.begin=b.numericInput?A.call(y,T):T;break}default:if(M=m.begin,v=k.call(y,M,!0),M<=(x=A.call(y,v!==-1||C.call(y,0)?v:-1)))m.end=m.begin=C.call(y,M,!1,!0)?M:A.call(y,M);else{var R=S.validPositions[v],L=p.getTestTemplate.call(y,x,R?R.match.locator:void 0,R),N=p.getPlaceholder.call(y,x,L.match);if(N!==""&&h.call(y)[x]!==N&&L.match.optionalQuantifier!==!0&&L.match.newBlockMarker!==!0||!C.call(y,x,b.keepStatic,!0)&&L.match.def===N){var W=A.call(y,x);(M>=W||M===x)&&(x=W)}m.end=m.begin=x}}return m}},l.getBuffer=h,l.getBufferTemplate=function(){var m=this.maskset;return m._buffer===void 0&&(m._buffer=p.getMaskTemplate.call(this,!1,1),m.buffer===void 0&&(m.buffer=m._buffer.slice())),m._buffer},l.getLastValidPosition=k,l.isMask=C,l.resetMaskSet=function(m){var D=this.maskset;D.buffer=void 0,m!==!0&&(D.validPositions=[],D.p=0),m===!1&&(D.tests={},D.jitOffset={})},l.seekNext=A,l.seekPrevious=function(m,D){var g=this,M=m-1;if(m<=0)return 0;for(;M>0&&(D===!0&&(p.getTest.call(g,M).match.newBlockMarker!==!0||!C.call(g,M,void 0,!0))||D!==!0&&!C.call(g,M,void 0,!0));)M--;return M},l.translatePosition=w;var c,d=(c=u(9380))&&c.__esModule?c:{default:c},f=u(7215),p=u(4713);function h(m){var D=this,g=D.maskset;return g.buffer!==void 0&&m!==!0||(g.buffer=p.getMaskTemplate.call(D,!0,k.call(D),!0),g._buffer===void 0&&(g._buffer=g.buffer.slice())),g.buffer}function k(m,D,g){var M=this.maskset,v=-1,x=-1,y=g||M.validPositions;m===void 0&&(m=-1);for(var S=0,b=y.length;S<b;S++)y[S]&&(D||y[S].generatedInput!==!0)&&(S<=m&&(v=S),S>=m&&(x=S));return v===-1||v===m?x:x===-1||m-v<x-m?v:x}function C(m,D,g){var M=this,v=this.maskset,x=p.getTestTemplate.call(M,m).match;if(x.def===""&&(x=p.getTest.call(M,m).match),x.static!==!0)return x.fn;if(g===!0&&v.validPositions[m]!==void 0&&v.validPositions[m].generatedInput!==!0)return!0;if(D!==!0&&m>-1){if(g){var y=p.getTests.call(M,m);return y.length>1+(y[y.length-1].match.def===""?1:0)}var S=p.determineTestTemplate.call(M,m,p.getTests.call(M,m)),b=p.getPlaceholder.call(M,m,S.match);return S.match.def!==b}return!1}function A(m,D,g){var M=this;g===void 0&&(g=!0);for(var v=m+1;p.getTest.call(M,v).match.def!==""&&(D===!0&&(p.getTest.call(M,v).match.newBlockMarker!==!0||!C.call(M,v,void 0,!0))||D!==!0&&!C.call(M,v,void 0,g));)v++;return v}function w(m){var D=this.opts,g=this.el;return!this.isRTL||typeof m!="number"||D.greedy&&D.placeholder===""||!g||(m=this._valueGet().length-m)<0&&(m=0),m}},4713:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.determineTestTemplate=w,l.getDecisionTaker=k,l.getMaskTemplate=function(M,v,x,y,S){var b=this,T=this.opts,R=this.maskset,L=T.greedy;S&&T.greedy&&(T.greedy=!1,b.maskset.tests={}),v=v||0;var N,W,G,I,H=[],K=0;do{if(M===!0&&R.validPositions[K])W=(G=S&&R.validPositions[K].match.optionality&&R.validPositions[K+1]===void 0&&(R.validPositions[K].generatedInput===!0||R.validPositions[K].input==T.skipOptionalPartCharacter&&K>0)?w.call(b,K,g.call(b,K,N,K-1)):R.validPositions[K]).match,N=G.locator.slice(),H.push(x===!0?G.input:x===!1?W.nativeDef:C.call(b,K,W));else{W=(G=A.call(b,K,N,K-1)).match,N=G.locator.slice();var F=y!==!0&&(T.jitMasking!==!1?T.jitMasking:W.jit);(I=(I||R.validPositions[K-1])&&W.static&&W.def!==T.groupSeparator&&W.fn===null)||F===!1||F===void 0||typeof F=="number"&&isFinite(F)&&F>K?H.push(x===!1?W.nativeDef:C.call(b,H.length,W)):I=!1}K++}while(W.static!==!0||W.def!==""||v>K);return H[H.length-1]===""&&H.pop(),x===!1&&R.maskLength!==void 0||(R.maskLength=K-1),T.greedy=L,H},l.getPlaceholder=C,l.getTest=m,l.getTestTemplate=A,l.getTests=g,l.isSubsetOf=D;var c,d=(c=u(2394))&&c.__esModule?c:{default:c},f=u(8711);function p(M){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},p(M)}function h(M,v){var x=(M.alternation!=null?M.mloc[k(M)]:M.locator).join("");if(x!=="")for(x=x.split(":")[0];x.length<v;)x+="0";return x}function k(M){var v=M.locator[M.alternation];return typeof v=="string"&&v.length>0&&(v=v.split(",")[0]),v!==void 0?v.toString():""}function C(M,v,x){var y=this,S=this.opts,b=this.maskset;if((v=v||m.call(y,M).match).placeholder!==void 0||x===!0){if(v.placeholder!==""&&v.static===!0&&v.generated!==!0){var T=f.getLastValidPosition.call(y,M),R=f.seekNext.call(y,T);return(x?M<=R:M<R)?S.staticDefinitionSymbol&&v.static?v.nativeDef:v.def:typeof v.placeholder=="function"?v.placeholder(S):v.placeholder}return typeof v.placeholder=="function"?v.placeholder(S):v.placeholder}if(v.static===!0){if(M>-1&&b.validPositions[M]===void 0){var L,N=g.call(y,M),W=[];if(typeof S.placeholder=="string"&&N.length>1+(N[N.length-1].match.def===""?1:0)){for(var G=0;G<N.length;G++)if(N[G].match.def!==""&&N[G].match.optionality!==!0&&N[G].match.optionalQuantifier!==!0&&(N[G].match.static===!0||L===void 0||N[G].match.fn.test(L.match.def,b,M,!0,S)!==!1)&&(W.push(N[G]),N[G].match.static===!0&&(L=N[G]),W.length>1&&/[0-9a-bA-Z]/.test(W[0].match.def)))return S.placeholder.charAt(M%S.placeholder.length)}}return v.def}return p(S.placeholder)==="object"?v.def:S.placeholder.charAt(M%S.placeholder.length)}function A(M,v,x){return this.maskset.validPositions[M]||w.call(this,M,g.call(this,M,v&&v.slice(),x))}function w(M,v){var x=this.opts,y=0,S=(function(I,H){var K=0,F=!1;return H.forEach((function(P){P.match.optionality&&(K!==0&&K!==P.match.optionality&&(F=!0),(K===0||K>P.match.optionality)&&(K=P.match.optionality))})),K&&(I==0||H.length==1?K=0:F||(K=0)),K})(M,v);M=M>0?M-1:0;var b,T,R,L=h(m.call(this,M));x.greedy&&v.length>1&&v[v.length-1].match.def===""&&(y=1);for(var N=0;N<v.length-y;N++){var W=v[N];b=h(W,L.length);var G=Math.abs(b-L);(W.unMatchedAlternationStopped!==!0||v.filter((function(I){return I.unMatchedAlternationStopped!==!0})).length<=1)&&(T===void 0||b!==""&&G<T||R&&!x.greedy&&R.match.optionality&&R.match.optionality-S>0&&R.match.newBlockMarker==="master"&&(!W.match.optionality||W.match.optionality-S<1||!W.match.newBlockMarker)||R&&!x.greedy&&R.match.optionalQuantifier&&!W.match.optionalQuantifier)&&(T=G,R=W)}return R}function m(M,v){var x=this.maskset;return x.validPositions[M]?x.validPositions[M]:(v||g.call(this,M))[0]}function D(M,v,x){function y(S){for(var b,T=[],R=-1,L=0,N=S.length;L<N;L++)if(S.charAt(L)==="-")for(b=S.charCodeAt(L+1);++R<b;)T.push(String.fromCharCode(R));else R=S.charCodeAt(L),T.push(S.charAt(L));return T.join("")}return M.match.def===v.match.nativeDef||!(!(x.regex||M.match.fn instanceof RegExp&&v.match.fn instanceof RegExp)||M.match.static===!0||v.match.static===!0)&&(v.match.fn.source==="."||y(v.match.fn.source.replace(/[[\]/]/g,"")).indexOf(y(M.match.fn.source.replace(/[[\]/]/g,"")))!==-1)}function g(M,v,x){var y,S,b=this,T=this.dependencyLib,R=this.maskset,L=this.opts,N=this.el,W=R.maskToken,G=v?x:0,I=v?v.slice():[0],H=[],K=!1,F=v?v.join(""):"",P=!1;function Q($,z,J,ue){function V(oe,ye,we){function xe(Z,ie){var me=ie.matches.indexOf(Z)===0;return me||ie.matches.every((function(he,ke){return he.isQuantifier===!0?me=xe(Z,ie.matches[ke-1]):Object.prototype.hasOwnProperty.call(he,"matches")&&(me=xe(Z,he)),!me})),me}function Fe(Z,ie,me){var he,ke;if((R.tests[Z]||R.validPositions[Z])&&(R.validPositions[Z]?[R.validPositions[Z]]:R.tests[Z]).every((function(Se,Le){if(Se.mloc[ie])return he=Se,!1;var et=me!==void 0?me:Se.alternation,je=Se.locator[et]!==void 0?Se.locator[et].toString().indexOf(ie):-1;return(ke===void 0||je<ke)&&je!==-1&&(he=Se,ke=je),!0})),he){var Me=he.locator[he.alternation],se=he.mloc[ie]||he.mloc[Me]||he.locator;return se[se.length-1].toString().indexOf(":")!==-1&&se.pop(),se.slice((me!==void 0?me:he.alternation)+1)}return me!==void 0?Fe(Z,ie):void 0}function _e(Z,ie){return Z.match.static===!0&&ie.match.static!==!0&&ie.match.fn.test(Z.match.def,R,M,!1,L,!1)}function Ne(Z,ie){var me=Z.alternation,he=ie===void 0||me<=ie.alternation&&Z.locator[me].toString().indexOf(ie.locator[me])===-1;if(!he&&me>ie.alternation){for(var ke=0;ke<me;ke++)if(Z.locator[ke]!==ie.locator[ke]){me=ke,he=!0;break}}return!!he&&(function(Me){Z.mloc=Z.mloc||{};var se=Z.locator[Me];if(se!==void 0){if(typeof se=="string"&&(se=se.split(",")[0]),Z.mloc[se]===void 0&&(Z.mloc[se]=Z.locator.slice(),Z.mloc[se].push(":".concat(Z.alternation))),ie!==void 0){for(var Se in ie.mloc)typeof Se=="string"&&(Se=parseInt(Se.split(",")[0])),Z.mloc[Se+0]=ie.mloc[Se];Z.locator[Me]=Object.keys(Z.mloc).join(",")}return Z.alternation>Me&&(Z.alternation=Me),!0}return Z.alternation=void 0,!1})(me)}function de(Z,ie){if(Z.locator.length!==ie.locator.length)return!1;for(var me=Z.alternation+1;me<Z.locator.length;me++)if(Z.locator[me]!==ie.locator[me])return!1;return!0}if(G>M+L._maxTestPos)throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(R.mask));if(G===M&&oe.matches===void 0){if(H.push({match:oe,locator:ye.reverse(),cd:F,mloc:{}}),!oe.optionality||we!==void 0||!(L.definitions&&L.definitions[oe.nativeDef]&&L.definitions[oe.nativeDef].optional||d.default.prototype.definitions[oe.nativeDef]&&d.default.prototype.definitions[oe.nativeDef].optional))return!0;K=!0,G=M}else if(oe.matches!==void 0){if(oe.isGroup&&we!==oe)return(function(){if(oe=V($.matches[$.matches.indexOf(oe)+1],ye,we))return!0})();if(oe.isOptional)return(function(){var Z=oe,ie=H.length;if(oe=Q(oe,z,ye,we),H.length>0){if(H.forEach((function(me,he){he>=ie&&(me.match.optionality=me.match.optionality?me.match.optionality+1:1)})),y=H[H.length-1].match,we!==void 0||!xe(y,Z))return oe;K=!0,G=M}})();if(oe.isAlternator)return(function(){function Z(B){for(var E,O=B.matches[0].matches?B.matches[0].matches.length:1,_=0;_<B.matches.length&&O===(E=B.matches[_].matches?B.matches[_].matches.length:1);_++);return O!==E}b.hasAlternator=!0;var ie,me=oe,he=[],ke=H.slice(),Me=ye.length,se=z.length>0?z.shift():-1;if(se===-1||typeof se=="string"){var Se,Le=G,et=z.slice(),je=[];if(typeof se=="string")je=se.split(",");else for(Se=0;Se<me.matches.length;Se++)je.push(Se.toString());if(R.excludes[M]!==void 0){for(var Rt=je.slice(),At=0,Ge=R.excludes[M].length;At<Ge;At++){var te=R.excludes[M][At].toString().split(":");ye.length==te[1]&&je.splice(je.indexOf(te[0]),1)}je.length===0&&(delete R.excludes[M],je=Rt)}(L.keepStatic===!0||isFinite(parseInt(L.keepStatic))&&Le>=L.keepStatic)&&(je=je.slice(0,1));for(var re=0;re<je.length;re++){Se=parseInt(je[re]),H=[],z=typeof se=="string"&&Fe(G,Se,Me)||et.slice();var Pe=me.matches[Se];if(Pe&&V(Pe,[Se].concat(ye),we))oe=!0;else if(re===0&&(P=Z(me)),Pe&&Pe.matches&&Pe.matches.length>me.matches[0].matches.length)break;ie=H.slice(),G=Le,H=[];for(var ze=0;ze<ie.length;ze++){var Oe=ie[ze],Re=!1;Oe.alternation=Oe.alternation||Me,Ne(Oe);for(var ct=0;ct<he.length;ct++){var ge=he[ct];if(typeof se!="string"||Oe.alternation!==void 0&&je.includes(Oe.locator[Oe.alternation].toString())){if(Oe.match.nativeDef===ge.match.nativeDef){Re=!0,Ne(ge,Oe);break}if(D(Oe,ge,L)){Ne(Oe,ge)&&(Re=!0,he.splice(he.indexOf(ge),0,Oe));break}if(D(ge,Oe,L)){Ne(ge,Oe);break}if(_e(Oe,ge)){de(Oe,ge)||N.inputmask.userOptions.keepStatic!==void 0?Ne(Oe,ge)&&(Re=!0,he.splice(he.indexOf(ge),0,Oe)):L.keepStatic=!0;break}if(_e(ge,Oe)){Ne(ge,Oe);break}}}Re||he.push(Oe)}}H=ke.concat(he),G=M,K=H.length>0&&P,oe=he.length>0&&!P,P&&K&&!oe&&H.forEach((function(B,E){B.unMatchedAlternationStopped=!0})),z=et.slice()}else oe=V(me.matches[se]||$.matches[se],[se].concat(ye),we);if(oe)return!0})();if(oe.isQuantifier&&we!==$.matches[$.matches.indexOf(oe)-1])return(function(){for(var Z=oe,ie=!1,me=z.length>0?z.shift():0;me<(isNaN(Z.quantifier.max)?me+1:Z.quantifier.max)&&G<=M;me++){var he=$.matches[$.matches.indexOf(Z)-1];if(oe=V(he,[me].concat(ye),he)){if(H.forEach((function(ke,Me){(y=j(he,ke.match)?ke.match:H[H.length-1].match).optionalQuantifier=me>=Z.quantifier.min,y.jit=(me+1)*(he.matches.indexOf(y)+1)>Z.quantifier.jit,y.optionalQuantifier&&xe(y,he)&&(K=!0,G=M,L.greedy&&R.validPositions[M-1]==null&&me>Z.quantifier.min&&["*","+"].indexOf(Z.quantifier.max)!=-1&&(H.pop(),F=void 0),ie=!0,oe=!1),!ie&&y.jit&&(R.jitOffset[M]=he.matches.length-he.matches.indexOf(y))})),ie)break;return!0}}})();if(oe=Q(oe,z,ye,we))return!0}else G++}for(var U=z.length>0?z.shift():0;U<$.matches.length;U++)if($.matches[U].isQuantifier!==!0){var le=V($.matches[U],[U].concat(J),ue);if(le&&G===M)return le;if(G>M)break}}function j($,z){var J=$.matches.indexOf(z)!=-1;return J||$.matches.forEach((function(ue,V){ue.matches===void 0||J||(J=j(ue,z))})),J}if(M>-1){if(v===void 0){for(var q,X=M-1;(q=R.validPositions[X]||R.tests[X])===void 0&&X>-1;)X--;q!==void 0&&X>-1&&(I=(function($,z){var J,ue=[];return Array.isArray(z)||(z=[z]),z.length>0&&(z[0].alternation===void 0||L.keepStatic===!0?(ue=w.call(b,$,z.slice()).locator.slice()).length===0&&(ue=z[0].locator.slice()):z.forEach((function(V){V.def!==""&&(ue.length===0?(J=V.alternation,ue=V.locator.slice()):V.locator[J]&&ue[J].toString().indexOf(V.locator[J])===-1&&(ue[J]+=","+V.locator[J]))}))),ue})(X,q),F=I.join(""),G=X)}if(R.tests[M]&&R.tests[M][0].cd===F)return R.tests[M];for(var ae=I.shift();ae<W.length&&!(Q(W[ae],I,[ae])&&G===M||G>M);ae++);}return(H.length===0||K)&&H.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:P&&H.filter((function($){return $.unMatchedAlternationStopped!==!0})).length===0?[0]:[],mloc:{},cd:F}),v!==void 0&&R.tests[M]?S=T.extend(!0,[],H):(R.tests[M]=T.extend(!0,[],H),S=R.tests[M]),H.forEach((function($){$.match.optionality=$.match.defOptionality||!1})),S}},7215:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.alternate=h,l.checkAlternationMatch=function(v,x,y){for(var S,b=this.opts.greedy?x:x.slice(0,1),T=!1,R=y!==void 0?y.split(","):[],L=0;L<R.length;L++)(S=v.indexOf(R[L]))!==-1&&v.splice(S,1);for(var N=0;N<v.length;N++)if(b.includes(v[N])){T=!0;break}return T},l.handleRemove=function(v,x,y,S,b){var T=this,R=this.maskset,L=this.opts;if((L.numericInput||T.isRTL)&&(x===d.keys.Backspace?x=d.keys.Delete:x===d.keys.Delete&&(x=d.keys.Backspace),T.isRTL)){var N=y.end;y.end=y.begin,y.begin=N}var W,G=f.getLastValidPosition.call(T,void 0,!0);y.end>=f.getBuffer.call(T).length&&G>=y.end&&(y.end=G+1),x===d.keys.Backspace?y.end-y.begin<1&&(y.begin=f.seekPrevious.call(T,y.begin)):x===d.keys.Delete&&y.begin===y.end&&(y.end=f.isMask.call(T,y.end,!0,!0)?y.end+1:f.seekNext.call(T,y.end)+1),(W=M.call(T,y))!==!1&&((S!==!0&&L.keepStatic!==!1||L.regex!==null&&p.getTest.call(T,y.begin).match.def.indexOf("|")!==-1)&&h.call(T,!0),S!==!0&&(R.p=x===d.keys.Delete?y.begin+W:y.begin,R.p=f.determineNewCaretPosition.call(T,{begin:R.p,end:R.p},!1,L.insertMode===!1&&x===d.keys.Backspace?"none":void 0).begin))},l.isComplete=C,l.isSelection=A,l.isValid=w,l.refreshFromBuffer=D,l.revalidateMask=M;var c=u(6030),d=u(2839),f=u(8711),p=u(4713);function h(v,x,y,S,b,T){var R=this,L=this.dependencyLib,N=this.opts,W=R.maskset;if(!R.hasAlternator)return!1;var G,I,H,K,F,P,Q,j,q,X,ae,$=L.extend(!0,[],W.validPositions),z=L.extend(!0,{},W.tests),J=!1,ue=!1,V=b!==void 0?b:f.getLastValidPosition.call(R);if(T&&(X=T.begin,ae=T.end,T.begin>T.end&&(X=T.end,ae=T.begin)),V===-1&&b===void 0)G=0,I=(K=p.getTest.call(R,G)).alternation;else for(;V>=0;V--)if((H=W.validPositions[V])&&H.alternation!==void 0){if(V<=(v||0)&&K&&K.locator[H.alternation]!==H.locator[H.alternation])break;G=V,I=W.validPositions[G].alternation,K=H}if(I!==void 0){Q=parseInt(G),W.excludes[Q]=W.excludes[Q]||[],v!==!0&&W.excludes[Q].push((0,p.getDecisionTaker)(K)+":"+K.alternation);var U=[],le=-1;for(F=Q;Q<f.getLastValidPosition.call(R,void 0,!0)+1;F++)le===-1&&v<=F&&x!==void 0&&(U.push(x),le=U.length-1),(P=W.validPositions[Q])&&P.generatedInput!==!0&&(T===void 0||F<X||F>=ae)&&U.push(P.input),W.validPositions.splice(Q,1);for(le===-1&&x!==void 0&&(U.push(x),le=U.length-1);W.excludes[Q]!==void 0&&W.excludes[Q].length<10;){for(W.tests={},f.resetMaskSet.call(R,!0),J=!0,F=0;F<U.length&&(j=J.caret||N.insertMode==0&&j!=null?f.seekNext.call(R,j):f.getLastValidPosition.call(R,void 0,!0)+1,q=U[F],J=w.call(R,j,q,!1,S,!0));F++)F===le&&(ue=J),v==1&&J&&(ue={caretPos:F});if(J)break;if(f.resetMaskSet.call(R),K=p.getTest.call(R,Q),W.validPositions=L.extend(!0,[],$),W.tests=L.extend(!0,{},z),!W.excludes[Q]){ue=h.call(R,v,x,y,S,Q-1,T);break}if(K.alternation!=null){var oe=(0,p.getDecisionTaker)(K);if(W.excludes[Q].indexOf(oe+":"+K.alternation)!==-1){ue=h.call(R,v,x,y,S,Q-1,T);break}for(W.excludes[Q].push(oe+":"+K.alternation),F=Q;F<f.getLastValidPosition.call(R,void 0,!0)+1;F++)W.validPositions.splice(Q)}else delete W.excludes[Q]}}return ue&&N.keepStatic===!1||delete W.excludes[Q],ue}function k(v,x,y){var S=this.opts,b=this.maskset;switch(S.casing||x.casing){case"upper":v=v.toUpperCase();break;case"lower":v=v.toLowerCase();break;case"title":var T=b.validPositions[y-1];v=y===0||T&&T.input===String.fromCharCode(d.keyCode.Space)?v.toUpperCase():v.toLowerCase();break;default:if(typeof S.casing=="function"){var R=Array.prototype.slice.call(arguments);R.push(b.validPositions),v=S.casing.apply(this,R)}}return v}function C(v){var x=this,y=this.opts,S=this.maskset;if(typeof y.isComplete=="function")return y.isComplete(v,y);if(y.repeat!=="*"){var b=!1,T=f.determineLastRequiredPosition.call(x,!0),R=T.l;if(T.def===void 0||T.def.newBlockMarker||T.def.optionality||T.def.optionalQuantifier){b=!0;for(var L=0;L<=R;L++){var N=p.getTestTemplate.call(x,L).match;if(N.static!==!0&&S.validPositions[L]===void 0&&(N.optionality===!1||N.optionality===void 0||N.optionality&&N.newBlockMarker==0)&&(N.optionalQuantifier===!1||N.optionalQuantifier===void 0)||N.static===!0&&N.def!=""&&v[L]!==p.getPlaceholder.call(x,L,N)){b=!1;break}}}return b}}function A(v){var x=this.opts.insertMode?0:1;return this.isRTL?v.begin-v.end>x:v.end-v.begin>x}function w(v,x,y,S,b,T,R){var L=this,N=this.dependencyLib,W=this.opts,G=L.maskset;y=y===!0;var I=v;function H(J){if(J!==void 0){if(J.remove!==void 0&&(Array.isArray(J.remove)||(J.remove=[J.remove]),J.remove.sort((function(V,U){return L.isRTL?V.pos-U.pos:U.pos-V.pos})).forEach((function(V){M.call(L,{begin:V,end:V+1})})),J.remove=void 0),J.insert!==void 0&&(Array.isArray(J.insert)||(J.insert=[J.insert]),J.insert.sort((function(V,U){return L.isRTL?U.pos-V.pos:V.pos-U.pos})).forEach((function(V){V.c!==""&&w.call(L,V.pos,V.c,V.strict===void 0||V.strict,V.fromIsValid!==void 0?V.fromIsValid:S)})),J.insert=void 0),J.refreshFromBuffer&&J.buffer){var ue=J.refreshFromBuffer;D.call(L,ue===!0?ue:ue.start,ue.end,J.buffer),J.refreshFromBuffer=void 0}J.rewritePosition!==void 0&&(I=J.rewritePosition,J=!0)}return J}function K(J,ue,V){var U=!1;return p.getTests.call(L,J).every((function(le,oe){var ye=le.match;if(f.getBuffer.call(L,!0),(U=(!ye.jit||G.validPositions[f.seekPrevious.call(L,J)]!==void 0)&&(ye.fn!=null?ye.fn.test(ue,G,J,V,W,A.call(L,v)):(ue===ye.def||ue===W.skipOptionalPartCharacter)&&ye.def!==""&&{c:p.getPlaceholder.call(L,J,ye,!0)||ye.def,pos:J}))!==!1){var we=U.c!==void 0?U.c:ue,xe=J;return we=we===W.skipOptionalPartCharacter&&ye.static===!0?p.getPlaceholder.call(L,J,ye,!0)||ye.def:we,(U=H(U))!==!0&&U.pos!==void 0&&U.pos!==J&&(xe=U.pos),U!==!0&&U.pos===void 0&&U.c===void 0||M.call(L,v,N.extend({},le,{input:k.call(L,we,ye,xe)}),S,xe)===!1&&(U=!1),!1}return!0})),U}v.begin!==void 0&&(I=L.isRTL?v.end:v.begin);var F=!0,P=N.extend(!0,[],G.validPositions);if(W.keepStatic===!1&&G.excludes[I]!==void 0&&b!==!0&&S!==!0)for(var Q=I;Q<(L.isRTL?v.begin:v.end);Q++)G.excludes[Q]!==void 0&&(G.excludes[Q]=void 0,delete G.tests[Q]);if(typeof W.preValidation=="function"&&S!==!0&&T!==!0&&(F=H(F=W.preValidation.call(L,f.getBuffer.call(L),I,x,A.call(L,v),W,G,v,y||b))),F===!0){if(F=K(I,x,y),(!y||S===!0)&&F===!1&&T!==!0){var j=G.validPositions[I];if(!j||j.match.static!==!0||j.match.def!==x&&x!==W.skipOptionalPartCharacter){if(W.insertMode||G.validPositions[f.seekNext.call(L,I)]===void 0||v.end>I){var q=!1;if(G.jitOffset[I]&&G.validPositions[f.seekNext.call(L,I)]===void 0&&(F=w.call(L,I+G.jitOffset[I],x,!0,!0))!==!1&&(b!==!0&&(F.caret=I),q=!0),v.end>I&&(G.validPositions[I]=void 0),!q&&!f.isMask.call(L,I,W.keepStatic&&I===0)){for(var X=I+1,ae=f.seekNext.call(L,I,!1,I!==0);X<=ae;X++)if((F=K(X,x,y))!==!1){F=g.call(L,I,F.pos!==void 0?F.pos:X)||F,I=X;break}}}}else F={caret:f.seekNext.call(L,I)}}L.hasAlternator&&b!==!0&&!y&&(b=!0,F===!1&&W.keepStatic&&(C.call(L,f.getBuffer.call(L))||I===0)?F=h.call(L,I,x,y,S,void 0,v):(A.call(L,v)&&G.tests[I]&&G.tests[I].length>1&&W.keepStatic||F==1&&W.numericInput!==!0&&G.tests[I]&&G.tests[I].length>1&&f.getLastValidPosition.call(L,void 0,!0)>I)&&(F=h.call(L,!0))),F===!0&&(F={pos:I})}if(typeof W.postValidation=="function"&&S!==!0&&T!==!0){var $=W.postValidation.call(L,f.getBuffer.call(L,!0),v.begin!==void 0?L.isRTL?v.end:v.begin:v,x,F,W,G,y,R);$!==void 0&&(F=$===!0?F:$)}F&&F.pos===void 0&&(F.pos=I),F===!1||T===!0?(f.resetMaskSet.call(L,!0),G.validPositions=N.extend(!0,[],P)):g.call(L,void 0,I,!0);var z=H(F);return L.maxLength!==void 0&&f.getBuffer.call(L).length>L.maxLength&&!S&&(f.resetMaskSet.call(L,!0),G.validPositions=N.extend(!0,[],P),z=!1),z}function m(v,x,y){for(var S=this.maskset,b=!1,T=p.getTests.call(this,v),R=0;R<T.length;R++){if(T[R].match&&(T[R].match.nativeDef===x.match[y.shiftPositions?"def":"nativeDef"]&&(!y.shiftPositions||!x.match.static)||T[R].match.nativeDef===x.match.nativeDef||y.regex&&!T[R].match.static&&T[R].match.fn.test(x.input,S,v,!1,y))){b=!0;break}if(T[R].match&&T[R].match.def===x.match.nativeDef){b=void 0;break}}return b===!1&&S.jitOffset[v]!==void 0&&(b=m.call(this,v+S.jitOffset[v],x,y)),b}function D(v,x,y){var S,b,T=this,R=this.maskset,L=this.opts,N=this.dependencyLib,W=L.skipOptionalPartCharacter,G=T.isRTL?y.slice().reverse():y;if(L.skipOptionalPartCharacter="",v===!0)f.resetMaskSet.call(T,!1),v=0,x=y.length,b=f.determineNewCaretPosition.call(T,{begin:0,end:0},!1).begin;else{for(S=v;S<x;S++)R.validPositions.splice(v,0);b=v}var I=new N.Event("keypress");for(S=v;S<x;S++){I.key=G[S].toString(),T.ignorable=!1;var H=c.EventHandlers.keypressEvent.call(T,I,!0,!1,!1,b);H!==!1&&H!==void 0&&(b=H.forwardPosition)}L.skipOptionalPartCharacter=W}function g(v,x,y){var S=this,b=this.maskset,T=this.dependencyLib;if(v===void 0)for(v=x-1;v>0&&!b.validPositions[v];v--);for(var R=v;R<x;R++)if(b.validPositions[R]===void 0&&!f.isMask.call(S,R,!1)&&(R==0?p.getTest.call(S,R):b.validPositions[R-1])){var L=p.getTests.call(S,R).slice();L[L.length-1].match.def===""&&L.pop();var N,W=p.determineTestTemplate.call(S,R,L);if(W&&(W.match.jit!==!0||W.match.newBlockMarker==="master"&&(N=b.validPositions[R+1])&&N.match.optionalQuantifier===!0)&&((W=T.extend({},W,{input:p.getPlaceholder.call(S,R,W.match,!0)||W.match.def})).generatedInput=!0,M.call(S,R,W,!0),y!==!0)){var G=b.validPositions[x].input;return b.validPositions[x]=void 0,w.call(S,x,G,!0,!0)}}}function M(v,x,y,S){var b=this,T=this.maskset,R=this.opts,L=this.dependencyLib;function N(z,J,ue){var V=J[z];if(V!==void 0&&V.match.static===!0&&V.match.optionality!==!0&&(J[0]===void 0||J[0].alternation===void 0)){var U=ue.begin<=z-1?J[z-1]&&J[z-1].match.static===!0&&J[z-1]:J[z-1],le=ue.end>z+1?J[z+1]&&J[z+1].match.static===!0&&J[z+1]:J[z+1];return U&&le}return!1}var W=0,G=v.begin!==void 0?v.begin:v,I=v.end!==void 0?v.end:v,H=!0;if(v.begin>v.end&&(G=v.end,I=v.begin),S=S!==void 0?S:G,y===void 0&&(G!==I||R.insertMode&&T.validPositions[S]!==void 0||x===void 0||x.match.optionalQuantifier||x.match.optionality)){var K,F=L.extend(!0,[],T.validPositions),P=f.getLastValidPosition.call(b,void 0,!0);T.p=G;var Q=A.call(b,v)?G:S;for(K=P;K>=Q;K--)T.validPositions.splice(K,1),x===void 0&&delete T.tests[K+1];var j,q,X=S,ae=X;for(x&&(T.validPositions[S]=L.extend(!0,{},x),ae++,X++),F[I]==null&&T.jitOffset[I]&&(I+=T.jitOffset[I]+1),K=x?I:I-1;K<=P;K++){if((j=F[K])!==void 0&&j.generatedInput!==!0&&(K>=I||K>=G&&N(K,F,{begin:G,end:I}))){for(;p.getTest.call(b,ae).match.def!=="";){if((q=m.call(b,ae,j,R))!==!1||j.match.def==="+"){j.match.def==="+"&&f.getBuffer.call(b,!0);var $=w.call(b,ae,j.input,j.match.def!=="+",!0);if(H=$!==!1,X=($.pos||ae)+1,!H&&q)break}else H=!1;if(H){x===void 0&&j.match.static&&K===v.begin&&W++;break}if(!H&&f.getBuffer.call(b),ae>T.maskLength)break;ae++}p.getTest.call(b,ae).match.def==""&&(H=!1),ae=X}if(!H)break}if(!H)return T.validPositions=L.extend(!0,[],F),f.resetMaskSet.call(b,!0),!1}else x&&p.getTest.call(b,S).match.cd===x.match.cd&&(T.validPositions[S]=L.extend(!0,{},x));return f.resetMaskSet.call(b,!0),W}}},i={};function r(o){var l=i[o];if(l!==void 0)return l.exports;var u=i[o]={exports:{}};return t[o](u,u.exports,r),u.exports}var s={};return(function(){var o=s;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,r(7149),r(3194),r(9302),r(4013),r(3851),r(219),r(207),r(5296);var l,u=(l=r(2394))&&l.__esModule?l:{default:l};o.default=u.default})(),s})()}))})(Bn)),Bn.exports}var Bh=Lh();const Fh=rl(Bh);//! moment.js
|
|
10
|
+
*/var Oh=Bn.exports,au;function Lh(){return au||(au=1,(function(n,e){(function(t,i){n.exports=i()})(typeof self<"u"?self:Oh,(function(){return(function(){var t={3976:function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(u,c){return typeof c.onBeforeMask=="function"?c.onBeforeMask.call(this,u,c):u},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0,l.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(u,c,d){if(d===void 0)return u.__data?u.__data[c]:null;u.__data=u.__data||{},u.__data[c]=d}},3776:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.Event=void 0,l.off=function(m,D){var g,M;return A(this[0])&&m&&(g=this[0].eventRegistry,M=this[0],m.split(" ").forEach((function(v){var x=p(v.split("."),2);(function(y,S){var b,T,R=[];if(y.length>0)if(D===void 0)for(b=0,T=g[y][S].length;b<T;b++)R.push({ev:y,namespace:S&&S.length>0?S:"global",handler:g[y][S][b]});else R.push({ev:y,namespace:S&&S.length>0?S:"global",handler:D});else if(S.length>0){for(var L in g)for(var I in g[L])if(I===S)if(D===void 0)for(b=0,T=g[L][I].length;b<T;b++)R.push({ev:L,namespace:I,handler:g[L][I][b]});else R.push({ev:L,namespace:I,handler:D})}return R})(x[0],x[1]).forEach((function(y){var S=y.ev,b=y.handler;(function(T,R,L){if(T in g==1)if(M.removeEventListener?M.removeEventListener(T,L,!1):M.detachEvent&&M.detachEvent("on".concat(T),L),R==="global")for(var I in g[T])g[T][I].splice(g[T][I].indexOf(L),1);else g[T][R].splice(g[T][R].indexOf(L),1)})(S,y.namespace,b)}))}))),this},l.on=function(m,D){if(A(this[0])){var g=this[0].eventRegistry,M=this[0];m.split(" ").forEach((function(v){var x=p(v.split("."),2),y=x[0],S=x[1];(function(b,T){M.addEventListener?M.addEventListener(b,D,!1):M.attachEvent&&M.attachEvent("on".concat(b),D),g[b]=g[b]||{},g[b][T]=g[b][T]||[],g[b][T].push(D)})(y,S===void 0?"global":S)}))}return this},l.trigger=function(m){var D=arguments;if(A(this[0]))for(var g=this[0].eventRegistry,M=this[0],v=typeof m=="string"?m.split(" "):[m.type],x=0;x<v.length;x++){var y=v[x].split("."),S=y[0],b=y[1]||"global";if(C!==void 0&&b==="global"){var T,R={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(C.createEvent){try{S==="input"?(R.inputType="insertText",T=new InputEvent(S,R)):T=new CustomEvent(S,R)}catch{(T=C.createEvent("CustomEvent")).initCustomEvent(S,R.bubbles,R.cancelable,R.detail)}m.type&&(0,d.default)(T,m),M.dispatchEvent(T)}else(T=C.createEventObject()).eventType=S,T.detail=arguments[1],m.type&&(0,d.default)(T,m),M.fireEvent("on"+T.eventType,T)}else if(g[S]!==void 0){arguments[0]=arguments[0].type?arguments[0]:f.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);var L=g[S];(b==="global"?Object.values(L).flat():L[b]).forEach((function(I){return I.apply(M,D)}))}}return this};var c=k(u(9380)),d=k(u(600)),f=k(u(4963));function p(m,D){return(function(g){if(Array.isArray(g))return g})(m)||(function(g,M){var v=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(v!=null){var x,y,S,b,T=[],R=!0,L=!1;try{if(S=(v=v.call(g)).next,M!==0)for(;!(R=(x=S.call(v)).done)&&(T.push(x.value),T.length!==M);R=!0);}catch(I){L=!0,y=I}finally{try{if(!R&&v.return!=null&&(b=v.return(),Object(b)!==b))return}finally{if(L)throw y}}return T}})(m,D)||(function(g,M){if(g){if(typeof g=="string")return h(g,M);var v=Object.prototype.toString.call(g).slice(8,-1);if(v==="Object"&&g.constructor&&(v=g.constructor.name),v==="Map"||v==="Set")return Array.from(g);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return h(g,M)}})(m,D)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function h(m,D){(D==null||D>m.length)&&(D=m.length);for(var g=0,M=new Array(D);g<D;g++)M[g]=m[g];return M}function k(m){return m&&m.__esModule?m:{default:m}}var C=c.default.document;function A(m){return m instanceof Element}var w=l.Event=void 0;typeof c.default.CustomEvent=="function"?l.Event=w=c.default.CustomEvent:c.default.Event&&C&&C.createEvent?(l.Event=w=function(m,D){D=D||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var g=C.createEvent("CustomEvent");return g.initCustomEvent(m,D.bubbles,D.cancelable,D.detail),g},w.prototype=c.default.Event.prototype):typeof Event<"u"&&(l.Event=w=Event)},600:function(o,l){function u(c){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},u(c)}Object.defineProperty(l,"__esModule",{value:!0}),l.default=function c(){var d,f,p,h,k,C,A=arguments[0]||{},w=1,m=arguments.length,D=!1;for(typeof A=="boolean"&&(D=A,A=arguments[w]||{},w++),u(A)!=="object"&&typeof A!="function"&&(A={});w<m;w++)if((d=arguments[w])!=null)for(f in d)p=A[f],A!==(h=d[f])&&(D&&h&&(Object.prototype.toString.call(h)==="[object Object]"||(k=Array.isArray(h)))?(k?(k=!1,C=p&&Array.isArray(p)?p:[]):C=p&&Object.prototype.toString.call(p)==="[object Object]"?p:{},A[f]=c(D,C,h)):h!==void 0&&(A[f]=h));return A}},4963:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=h(u(9380)),d=h(u(253)),f=u(3776),p=h(u(600));function h(A){return A&&A.__esModule?A:{default:A}}var k=c.default.document;function C(A){return A instanceof C?A:this instanceof C?void(A!=null&&A!==c.default&&(this[0]=A.nodeName?A:A[0]!==void 0&&A[0].nodeName?A[0]:k.querySelector(A),this[0]!==void 0&&this[0]!==null&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new C(A)}C.prototype={on:f.on,off:f.off,trigger:f.trigger},C.extend=p.default,C.data=d.default,C.Event=f.Event,l.default=C},9845:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.mobile=l.iphone=l.ie=void 0;var c,d=(c=u(9380))&&c.__esModule?c:{default:c},f=d.default.navigator&&d.default.navigator.userAgent||"";l.ie=f.indexOf("MSIE ")>0||f.indexOf("Trident/")>0,l.mobile=d.default.navigator&&d.default.navigator.userAgentData&&d.default.navigator.userAgentData.mobile||d.default.navigator&&d.default.navigator.maxTouchPoints||"ontouchstart"in d.default,l.iphone=/iphone/i.test(f)},7184:function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(c){return c.replace(u,"\\$1")};var u=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(o,l,u){function c(S){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},c(S)}Object.defineProperty(l,"__esModule",{value:!0}),l.EventHandlers=void 0;var d,f=u(9845),p=(d=u(9380))&&d.__esModule?d:{default:d},h=u(7760),k=u(2839),C=u(8711),A=u(7215),w=u(4713);function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return b};var S,b={},T=Object.prototype,R=T.hasOwnProperty,L=Object.defineProperty||function(de,q,ie){de[q]=ie.value},I=typeof Symbol=="function"?Symbol:{},W=I.iterator||"@@iterator",U=I.asyncIterator||"@@asyncIterator",H=I.toStringTag||"@@toStringTag";function V(de,q,ie){return Object.defineProperty(de,q,{value:ie,enumerable:!0,configurable:!0,writable:!0}),de[q]}try{V({},"")}catch{V=function(q,ie,me){return q[ie]=me}}function K(de,q,ie,me){var he=q&&q.prototype instanceof le?q:le,ke=Object.create(he.prototype),Me=new _e(me||[]);return L(ke,"_invoke",{value:ye(de,ie,Me)}),ke}function F(de,q,ie){try{return{type:"normal",arg:de.call(q,ie)}}catch(me){return{type:"throw",arg:me}}}b.wrap=K;var N="suspendedStart",Q="suspendedYield",j="executing",J="completed",Z={};function le(){}function ue(){}function Y(){}var X={};V(X,W,(function(){return this}));var $=Object.getPrototypeOf,P=$&&$($(Ne([])));P&&P!==T&&R.call(P,W)&&(X=P);var z=Y.prototype=le.prototype=Object.create(X);function ne(de){["next","throw","return"].forEach((function(q){V(de,q,(function(ie){return this._invoke(q,ie)}))}))}function ae(de,q){function ie(he,ke,Me,oe){var Se=F(de[he],de,ke);if(Se.type!=="throw"){var Le=Se.arg,et=Le.value;return et&&c(et)=="object"&&R.call(et,"__await")?q.resolve(et.__await).then((function(je){ie("next",je,Me,oe)}),(function(je){ie("throw",je,Me,oe)})):q.resolve(et).then((function(je){Le.value=je,Me(Le)}),(function(je){return ie("throw",je,Me,oe)}))}oe(Se.arg)}var me;L(this,"_invoke",{value:function(he,ke){function Me(){return new q((function(oe,Se){ie(he,ke,oe,Se)}))}return me=me?me.then(Me,Me):Me()}})}function ye(de,q,ie){var me=N;return function(he,ke){if(me===j)throw new Error("Generator is already running");if(me===J){if(he==="throw")throw ke;return{value:S,done:!0}}for(ie.method=he,ie.arg=ke;;){var Me=ie.delegate;if(Me){var oe=we(Me,ie);if(oe){if(oe===Z)continue;return oe}}if(ie.method==="next")ie.sent=ie._sent=ie.arg;else if(ie.method==="throw"){if(me===N)throw me=J,ie.arg;ie.dispatchException(ie.arg)}else ie.method==="return"&&ie.abrupt("return",ie.arg);me=j;var Se=F(de,q,ie);if(Se.type==="normal"){if(me=ie.done?J:Q,Se.arg===Z)continue;return{value:Se.arg,done:ie.done}}Se.type==="throw"&&(me=J,ie.method="throw",ie.arg=Se.arg)}}}function we(de,q){var ie=q.method,me=de.iterator[ie];if(me===S)return q.delegate=null,ie==="throw"&&de.iterator.return&&(q.method="return",q.arg=S,we(de,q),q.method==="throw")||ie!=="return"&&(q.method="throw",q.arg=new TypeError("The iterator does not provide a '"+ie+"' method")),Z;var he=F(me,de.iterator,q.arg);if(he.type==="throw")return q.method="throw",q.arg=he.arg,q.delegate=null,Z;var ke=he.arg;return ke?ke.done?(q[de.resultName]=ke.value,q.next=de.nextLoc,q.method!=="return"&&(q.method="next",q.arg=S),q.delegate=null,Z):ke:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,Z)}function xe(de){var q={tryLoc:de[0]};1 in de&&(q.catchLoc=de[1]),2 in de&&(q.finallyLoc=de[2],q.afterLoc=de[3]),this.tryEntries.push(q)}function Fe(de){var q=de.completion||{};q.type="normal",delete q.arg,de.completion=q}function _e(de){this.tryEntries=[{tryLoc:"root"}],de.forEach(xe,this),this.reset(!0)}function Ne(de){if(de||de===""){var q=de[W];if(q)return q.call(de);if(typeof de.next=="function")return de;if(!isNaN(de.length)){var ie=-1,me=function he(){for(;++ie<de.length;)if(R.call(de,ie))return he.value=de[ie],he.done=!1,he;return he.value=S,he.done=!0,he};return me.next=me}}throw new TypeError(c(de)+" is not iterable")}return ue.prototype=Y,L(z,"constructor",{value:Y,configurable:!0}),L(Y,"constructor",{value:ue,configurable:!0}),ue.displayName=V(Y,H,"GeneratorFunction"),b.isGeneratorFunction=function(de){var q=typeof de=="function"&&de.constructor;return!!q&&(q===ue||(q.displayName||q.name)==="GeneratorFunction")},b.mark=function(de){return Object.setPrototypeOf?Object.setPrototypeOf(de,Y):(de.__proto__=Y,V(de,H,"GeneratorFunction")),de.prototype=Object.create(z),de},b.awrap=function(de){return{__await:de}},ne(ae.prototype),V(ae.prototype,U,(function(){return this})),b.AsyncIterator=ae,b.async=function(de,q,ie,me,he){he===void 0&&(he=Promise);var ke=new ae(K(de,q,ie,me),he);return b.isGeneratorFunction(q)?ke:ke.next().then((function(Me){return Me.done?Me.value:ke.next()}))},ne(z),V(z,H,"Generator"),V(z,W,(function(){return this})),V(z,"toString",(function(){return"[object Generator]"})),b.keys=function(de){var q=Object(de),ie=[];for(var me in q)ie.push(me);return ie.reverse(),function he(){for(;ie.length;){var ke=ie.pop();if(ke in q)return he.value=ke,he.done=!1,he}return he.done=!0,he}},b.values=Ne,_e.prototype={constructor:_e,reset:function(de){if(this.prev=0,this.next=0,this.sent=this._sent=S,this.done=!1,this.delegate=null,this.method="next",this.arg=S,this.tryEntries.forEach(Fe),!de)for(var q in this)q.charAt(0)==="t"&&R.call(this,q)&&!isNaN(+q.slice(1))&&(this[q]=S)},stop:function(){this.done=!0;var de=this.tryEntries[0].completion;if(de.type==="throw")throw de.arg;return this.rval},dispatchException:function(de){if(this.done)throw de;var q=this;function ie(Se,Le){return ke.type="throw",ke.arg=de,q.next=Se,Le&&(q.method="next",q.arg=S),!!Le}for(var me=this.tryEntries.length-1;me>=0;--me){var he=this.tryEntries[me],ke=he.completion;if(he.tryLoc==="root")return ie("end");if(he.tryLoc<=this.prev){var Me=R.call(he,"catchLoc"),oe=R.call(he,"finallyLoc");if(Me&&oe){if(this.prev<he.catchLoc)return ie(he.catchLoc,!0);if(this.prev<he.finallyLoc)return ie(he.finallyLoc)}else if(Me){if(this.prev<he.catchLoc)return ie(he.catchLoc,!0)}else{if(!oe)throw new Error("try statement without catch or finally");if(this.prev<he.finallyLoc)return ie(he.finallyLoc)}}}},abrupt:function(de,q){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var me=this.tryEntries[ie];if(me.tryLoc<=this.prev&&R.call(me,"finallyLoc")&&this.prev<me.finallyLoc){var he=me;break}}he&&(de==="break"||de==="continue")&&he.tryLoc<=q&&q<=he.finallyLoc&&(he=null);var ke=he?he.completion:{};return ke.type=de,ke.arg=q,he?(this.method="next",this.next=he.finallyLoc,Z):this.complete(ke)},complete:function(de,q){if(de.type==="throw")throw de.arg;return de.type==="break"||de.type==="continue"?this.next=de.arg:de.type==="return"?(this.rval=this.arg=de.arg,this.method="return",this.next="end"):de.type==="normal"&&q&&(this.next=q),Z},finish:function(de){for(var q=this.tryEntries.length-1;q>=0;--q){var ie=this.tryEntries[q];if(ie.finallyLoc===de)return this.complete(ie.completion,ie.afterLoc),Fe(ie),Z}},catch:function(de){for(var q=this.tryEntries.length-1;q>=0;--q){var ie=this.tryEntries[q];if(ie.tryLoc===de){var me=ie.completion;if(me.type==="throw"){var he=me.arg;Fe(ie)}return he}}throw new Error("illegal catch attempt")},delegateYield:function(de,q,ie){return this.delegate={iterator:Ne(de),resultName:q,nextLoc:ie},this.method==="next"&&(this.arg=S),Z}},b}function D(S,b){var T=typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(!T){if(Array.isArray(S)||(T=(function(H,V){if(H){if(typeof H=="string")return g(H,V);var K=Object.prototype.toString.call(H).slice(8,-1);if(K==="Object"&&H.constructor&&(K=H.constructor.name),K==="Map"||K==="Set")return Array.from(H);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return g(H,V)}})(S))||b){T&&(S=T);var R=0,L=function(){};return{s:L,n:function(){return R>=S.length?{done:!0}:{done:!1,value:S[R++]}},e:function(H){throw H},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var I,W=!0,U=!1;return{s:function(){T=T.call(S)},n:function(){var H=T.next();return W=H.done,H},e:function(H){U=!0,I=H},f:function(){try{W||T.return==null||T.return()}finally{if(U)throw I}}}}function g(S,b){(b==null||b>S.length)&&(b=S.length);for(var T=0,R=new Array(b);T<b;T++)R[T]=S[T];return R}function M(S,b,T,R,L,I,W){try{var U=S[I](W),H=U.value}catch(V){return void T(V)}U.done?b(H):Promise.resolve(H).then(R,L)}var v,x,y=l.EventHandlers={keyEvent:function(S,b,T,R,L){var I=this.inputmask,W=I.opts,U=I.dependencyLib,H=I.maskset,V=this,K=U(V),F=S.key,N=C.caret.call(I,V),Q=W.onKeyDown.call(this,S,C.getBuffer.call(I),N,W);if(Q!==void 0)return Q;if(F===k.keys.Backspace||F===k.keys.Delete||f.iphone&&F===k.keys.BACKSPACE_SAFARI||S.ctrlKey&&F===k.keys.x&&!("oncut"in V))S.preventDefault(),A.handleRemove.call(I,V,F,N),(0,h.writeBuffer)(V,C.getBuffer.call(I,!0),H.p,S,V.inputmask._valueGet()!==C.getBuffer.call(I).join(""));else if(F===k.keys.End||F===k.keys.PageDown){S.preventDefault();var j=C.seekNext.call(I,C.getLastValidPosition.call(I));C.caret.call(I,V,S.shiftKey?N.begin:j,j,!0)}else F===k.keys.Home&&!S.shiftKey||F===k.keys.PageUp?(S.preventDefault(),C.caret.call(I,V,0,S.shiftKey?N.begin:0,!0)):W.undoOnEscape&&F===k.keys.Escape&&S.altKey!==!0?((0,h.checkVal)(V,!0,!1,I.undoValue.split("")),K.trigger("click")):F!==k.keys.Insert||S.shiftKey||S.ctrlKey||I.userOptions.insertMode!==void 0?W.tabThrough===!0&&F===k.keys.Tab?S.shiftKey===!0?(N.end=C.seekPrevious.call(I,N.end,!0),w.getTest.call(I,N.end-1).match.static===!0&&N.end--,N.begin=C.seekPrevious.call(I,N.end,!0),N.begin>=0&&N.end>0&&(S.preventDefault(),C.caret.call(I,V,N.begin,N.end))):(N.begin=C.seekNext.call(I,N.begin,!0),N.end=C.seekNext.call(I,N.begin,!0),N.end<H.maskLength&&N.end--,N.begin<=H.maskLength&&(S.preventDefault(),C.caret.call(I,V,N.begin,N.end))):S.shiftKey||(W.insertModeVisual&&W.insertMode===!1?F===k.keys.ArrowRight?setTimeout((function(){var J=C.caret.call(I,V);C.caret.call(I,V,J.begin)}),0):F===k.keys.ArrowLeft&&setTimeout((function(){var J=C.translatePosition.call(I,V.inputmask.caretPos.begin);C.translatePosition.call(I,V.inputmask.caretPos.end),I.isRTL?C.caret.call(I,V,J+(J===H.maskLength?0:1)):C.caret.call(I,V,J-(J===0?0:1))}),0):I.keyEventHook===void 0||I.keyEventHook(S)):A.isSelection.call(I,N)?W.insertMode=!W.insertMode:(W.insertMode=!W.insertMode,C.caret.call(I,V,N.begin,N.begin));return I.isComposing=F==k.keys.Process||F==k.keys.Unidentified,I.ignorable=F&&F.length>1&&!(V.tagName.toLowerCase()==="textarea"&&F==k.keys.Enter),y.keypressEvent.call(this,S,b,T,R,L)},keypressEvent:function(S,b,T,R,L){var I=this.inputmask||this,W=I.opts,U=I.dependencyLib,H=I.maskset,V=I.el,K=U(V),F=S.key;if(b===!0||S.ctrlKey&&S.altKey&&!I.ignorable||!(S.ctrlKey||S.metaKey||I.ignorable)){if(F){var N,Q=b?{begin:L,end:L}:C.caret.call(I,V);b||(F=W.substitutes[F]||F),H.writeOutBuffer=!0;var j=A.isValid.call(I,Q,F,R,void 0,void 0,void 0,b);if(j!==!1&&(C.resetMaskSet.call(I,!0),N=j.caret!==void 0?j.caret:C.seekNext.call(I,j.pos.begin?j.pos.begin:j.pos),H.p=N),N=W.numericInput&&j.caret===void 0?C.seekPrevious.call(I,N):N,T!==!1&&(setTimeout((function(){W.onKeyValidation.call(V,F,j)}),0),H.writeOutBuffer&&j!==!1)){var J=C.getBuffer.call(I);(0,h.writeBuffer)(V,J,N,S,b!==!0)}if(S.preventDefault(),b)return j!==!1&&(j.forwardPosition=N),j}}else F===k.keys.Enter&&I.undoValue!==I._valueGet(!0)&&(I.undoValue=I._valueGet(!0),setTimeout((function(){K.trigger("change")}),0))},pasteEvent:(v=m().mark((function S(b){var T,R,L,I,W,U;return m().wrap((function(H){for(;;)switch(H.prev=H.next){case 0:T=function(V,K,F,N,Q){var j=C.caret.call(V,K,void 0,void 0,!0),J=F.substr(0,j.begin),Z=F.substr(j.end,F.length);if(J==(V.isRTL?C.getBufferTemplate.call(V).slice().reverse():C.getBufferTemplate.call(V)).slice(0,j.begin).join("")&&(J=""),Z==(V.isRTL?C.getBufferTemplate.call(V).slice().reverse():C.getBufferTemplate.call(V)).slice(j.end).join("")&&(Z=""),N=J+N+Z,V.isRTL&&I.numericInput!==!0){N=N.split("");var le,ue=D(C.getBufferTemplate.call(V));try{for(ue.s();!(le=ue.n()).done;){var Y=le.value;N[0]===Y&&N.shift()}}catch($){ue.e($)}finally{ue.f()}N=N.reverse().join("")}var X=N;if(typeof Q=="function"){if((X=Q.call(V,X,I))===!1)return!1;X||(X=F)}(0,h.checkVal)(K,!0,!1,X.toString().split(""),b)},R=this,L=this.inputmask,I=L.opts,W=L._valueGet(!0),L.skipInputEvent=!0,b.clipboardData&&b.clipboardData.getData?U=b.clipboardData.getData("text/plain"):p.default.clipboardData&&p.default.clipboardData.getData&&(U=p.default.clipboardData.getData("Text")),T(L,R,W,U,I.onBeforePaste),b.preventDefault();case 7:case"end":return H.stop()}}),S,this)})),x=function(){var S=this,b=arguments;return new Promise((function(T,R){var L=v.apply(S,b);function I(U){M(L,T,R,I,W,"next",U)}function W(U){M(L,T,R,I,W,"throw",U)}I(void 0)}))},function(S){return x.apply(this,arguments)}),inputFallBackEvent:function(S){var b=this.inputmask,T=b.opts,R=b.dependencyLib,L,I=this,W=I.inputmask._valueGet(!0),U=(b.isRTL?C.getBuffer.call(b).slice().reverse():C.getBuffer.call(b)).join(""),H=C.caret.call(b,I,void 0,void 0,!0);if(U!==W){if(L=(function(K,F,N){for(var Q,j,J,Z=K.substr(0,N.begin).split(""),le=K.substr(N.begin).split(""),ue=F.substr(0,N.begin).split(""),Y=F.substr(N.begin).split(""),X=Z.length>=ue.length?Z.length:ue.length,$=le.length>=Y.length?le.length:Y.length,P="",z=[],ne="~";Z.length<X;)Z.push(ne);for(;ue.length<X;)ue.push(ne);for(;le.length<$;)le.unshift(ne);for(;Y.length<$;)Y.unshift(ne);var ae=Z.concat(le),ye=ue.concat(Y);for(j=0,Q=ae.length;j<Q;j++)switch(J=w.getPlaceholder.call(b,C.translatePosition.call(b,j)),P){case"insertText":ye[j-1]===ae[j]&&N.begin==ae.length-1&&z.push(ae[j]),j=Q;break;case"insertReplacementText":case"deleteContentBackward":ae[j]===ne?N.end++:j=Q;break;default:ae[j]!==ye[j]&&(ae[j+1]!==ne&&ae[j+1]!==J&&ae[j+1]!==void 0||(ye[j]!==J||ye[j+1]!==ne)&&ye[j]!==ne?ye[j+1]===ne&&ye[j]===ae[j+1]?(P="insertText",z.push(ae[j]),N.begin--,N.end--):ae[j]!==J&&ae[j]!==ne&&(ae[j+1]===ne||ye[j]!==ae[j]&&ye[j+1]===ae[j+1])?(P="insertReplacementText",z.push(ae[j]),N.begin--):ae[j]===ne?(P="deleteContentBackward",(C.isMask.call(b,C.translatePosition.call(b,j),!0)||ye[j]===T.radixPoint)&&N.end++):j=Q:(P="insertText",z.push(ae[j]),N.begin--,N.end--))}return{action:P,data:z,caret:N}})(W,U,H),(I.inputmask.shadowRoot||I.ownerDocument).activeElement!==I&&I.focus(),(0,h.writeBuffer)(I,C.getBuffer.call(b)),C.caret.call(b,I,H.begin,H.end,!0),!f.mobile&&b.skipNextInsert&&S.inputType==="insertText"&&L.action==="insertText"&&b.isComposing)return!1;switch(S.inputType==="insertCompositionText"&&L.action==="insertText"&&b.isComposing?b.skipNextInsert=!0:b.skipNextInsert=!1,L.action){case"insertText":case"insertReplacementText":L.data.forEach((function(K,F){var N=new R.Event("keypress");N.key=K,b.ignorable=!1,y.keypressEvent.call(I,N)})),setTimeout((function(){b.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var V=new R.Event("keydown");V.key=k.keys.Backspace,y.keyEvent.call(I,V);break;default:(0,h.applyInputValue)(I,W),C.caret.call(b,I,H.begin,H.end,!0)}S.preventDefault()}},setValueEvent:function(S){var b=this.inputmask,T=b.dependencyLib,R=this,L=S&&S.detail?S.detail[0]:arguments[1];L===void 0&&(L=R.inputmask._valueGet(!0)),(0,h.applyInputValue)(R,L,new T.Event("input")),(S.detail&&S.detail[1]!==void 0||arguments[2]!==void 0)&&C.caret.call(b,R,S.detail?S.detail[1]:arguments[2])},focusEvent:function(S){var b=this.inputmask,T=b.opts,R=b&&b._valueGet();T.showMaskOnFocus&&R!==C.getBuffer.call(b).join("")&&(0,h.writeBuffer)(this,C.getBuffer.call(b),C.seekNext.call(b,C.getLastValidPosition.call(b))),T.positionCaretOnTab!==!0||b.mouseEnter!==!1||A.isComplete.call(b,C.getBuffer.call(b))&&C.getLastValidPosition.call(b)!==-1||y.clickEvent.apply(this,[S,!0]),b.undoValue=b&&b._valueGet(!0)},invalidEvent:function(S){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var S=this.inputmask,b=S.opts,T=this;S.mouseEnter=!1,b.clearMaskOnLostFocus&&(T.inputmask.shadowRoot||T.ownerDocument).activeElement!==T&&(0,h.HandleNativePlaceholder)(T,S.originalPlaceholder)},clickEvent:function(S,b){var T=this.inputmask;T.clicked++;var R=this;if((R.inputmask.shadowRoot||R.ownerDocument).activeElement===R){var L=C.determineNewCaretPosition.call(T,C.caret.call(T,R),b);L!==void 0&&C.caret.call(T,R,L)}},cutEvent:function(S){var b=this.inputmask,T=b.maskset,R=this,L=C.caret.call(b,R),I=b.isRTL?C.getBuffer.call(b).slice(L.end,L.begin):C.getBuffer.call(b).slice(L.begin,L.end),W=b.isRTL?I.reverse().join(""):I.join("");p.default.navigator&&p.default.navigator.clipboard?p.default.navigator.clipboard.writeText(W):p.default.clipboardData&&p.default.clipboardData.getData&&p.default.clipboardData.setData("Text",W),A.handleRemove.call(b,R,k.keys.Delete,L),(0,h.writeBuffer)(R,C.getBuffer.call(b),T.p,S,b.undoValue!==b._valueGet(!0))},blurEvent:function(S){var b=this.inputmask,T=b.opts,R=b.dependencyLib;b.clicked=0;var L=R(this),I=this;if(I.inputmask){(0,h.HandleNativePlaceholder)(I,b.originalPlaceholder);var W=I.inputmask._valueGet(),U=C.getBuffer.call(b).slice();W!==""&&(T.clearMaskOnLostFocus&&(C.getLastValidPosition.call(b)===-1&&W===C.getBufferTemplate.call(b).join("")?U=[]:h.clearOptionalTail.call(b,U)),A.isComplete.call(b,U)===!1&&(setTimeout((function(){L.trigger("incomplete")}),0),T.clearIncomplete&&(C.resetMaskSet.call(b,!1),U=T.clearMaskOnLostFocus?[]:C.getBufferTemplate.call(b).slice())),(0,h.writeBuffer)(I,U,void 0,S)),W=b._valueGet(!0),b.undoValue!==W&&(W!=""||b.undoValue!=C.getBufferTemplate.call(b).join("")||b.undoValue==C.getBufferTemplate.call(b).join("")&&b.maskset.validPositions.length>0)&&(b.undoValue=W,L.trigger("change"))}},mouseenterEvent:function(){var S=this.inputmask,b=S.opts.showMaskOnHover,T=this;if(S.mouseEnter=!0,(T.inputmask.shadowRoot||T.ownerDocument).activeElement!==T){var R=(S.isRTL?C.getBufferTemplate.call(S).slice().reverse():C.getBufferTemplate.call(S)).join("");b&&(0,h.HandleNativePlaceholder)(T,R)}},submitEvent:function(){var S=this.inputmask,b=S.opts;S.undoValue!==S._valueGet(!0)&&S.$el.trigger("change"),C.getLastValidPosition.call(S)===-1&&S._valueGet&&S._valueGet()===C.getBufferTemplate.call(S).join("")&&S._valueSet(""),b.clearIncomplete&&A.isComplete.call(S,C.getBuffer.call(S))===!1&&S._valueSet(""),b.removeMaskOnSubmit&&(S._valueSet(S.unmaskedvalue(),!0),setTimeout((function(){(0,h.writeBuffer)(S.el,C.getBuffer.call(S))}),0))},resetEvent:function(){var S=this.inputmask;S.refreshValue=!0,setTimeout((function(){(0,h.applyInputValue)(S.el,S._valueGet(!0))}),0)}}},9716:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.EventRuler=void 0;var c,d=u(7760),f=(c=u(2394))&&c.__esModule?c:{default:c},p=u(2839),h=u(8711);l.EventRuler={on:function(k,C,A){var w=k.inputmask.dependencyLib,m=function(D){D.originalEvent&&(D=D.originalEvent||D,arguments[0]=D);var g,M=this,v=M.inputmask,x=v?v.opts:void 0;if(v===void 0&&this.nodeName!=="FORM"){var y=w.data(M,"_inputmask_opts");w(M).off(),y&&new f.default(y).mask(M)}else{if(["submit","reset","setvalue"].includes(D.type)||this.nodeName==="FORM"||!(M.disabled||M.readOnly&&!(D.type==="keydown"&&D.ctrlKey&&D.key===p.keys.c||x.tabThrough===!1&&D.key===p.keys.Tab))){switch(D.type){case"input":if(v.skipInputEvent===!0)return v.skipInputEvent=!1,D.preventDefault();break;case"click":case"focus":return v.validationEvent?(v.validationEvent=!1,k.blur(),(0,d.HandleNativePlaceholder)(k,(v.isRTL?h.getBufferTemplate.call(v).slice().reverse():h.getBufferTemplate.call(v)).join("")),setTimeout((function(){k.focus()}),x.validationEventTimeOut),!1):(g=arguments,void setTimeout((function(){k.inputmask&&A.apply(M,g)}),0))}var S=A.apply(M,arguments);return S===!1&&(D.preventDefault(),D.stopPropagation()),S}D.preventDefault()}};["submit","reset"].includes(C)?(m=m.bind(k),k.form!==null&&w(k.form).on(C,m)):w(k).on(C,m),k.inputmask.events[C]=k.inputmask.events[C]||[],k.inputmask.events[C].push(m)},off:function(k,C){if(k.inputmask&&k.inputmask.events){var A=k.inputmask.dependencyLib,w=k.inputmask.events;for(var m in C&&((w=[])[C]=k.inputmask.events[C]),w){for(var D=w[m];D.length>0;){var g=D.pop();["submit","reset"].includes(m)?k.form!==null&&A(k.form).off(m,g):A(k).off(m,g)}delete k.inputmask.events[m]}}}}},219:function(o,l,u){var c=m(u(7184)),d=m(u(2394)),f=u(2839),p=u(8711),h=u(4713);function k(F,N){return(function(Q){if(Array.isArray(Q))return Q})(F)||(function(Q,j){var J=Q==null?null:typeof Symbol<"u"&&Q[Symbol.iterator]||Q["@@iterator"];if(J!=null){var Z,le,ue,Y,X=[],$=!0,P=!1;try{if(ue=(J=J.call(Q)).next,j!==0)for(;!($=(Z=ue.call(J)).done)&&(X.push(Z.value),X.length!==j);$=!0);}catch(z){P=!0,le=z}finally{try{if(!$&&J.return!=null&&(Y=J.return(),Object(Y)!==Y))return}finally{if(P)throw le}}return X}})(F,N)||(function(Q,j){if(Q){if(typeof Q=="string")return C(Q,j);var J=Object.prototype.toString.call(Q).slice(8,-1);if(J==="Object"&&Q.constructor&&(J=Q.constructor.name),J==="Map"||J==="Set")return Array.from(Q);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return C(Q,j)}})(F,N)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function C(F,N){(N==null||N>F.length)&&(N=F.length);for(var Q=0,j=new Array(N);Q<N;Q++)j[Q]=F[Q];return j}function A(F){return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},A(F)}function w(F,N){for(var Q=0;Q<N.length;Q++){var j=N[Q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(F,(J=j.key,Z=void 0,Z=(function(le,ue){if(A(le)!=="object"||le===null)return le;var Y=le[Symbol.toPrimitive];if(Y!==void 0){var X=Y.call(le,ue);if(A(X)!=="object")return X;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ue==="string"?String:Number)(le)})(J,"string"),A(Z)==="symbol"?Z:String(Z)),j)}var J,Z}function m(F){return F&&F.__esModule?F:{default:F}}u(1313);var D=d.default.dependencyLib,g=(function(){function F(j,J,Z,le){(function(ue,Y){if(!(ue instanceof Y))throw new TypeError("Cannot call a class as a function")})(this,F),this.mask=j,this.format=J,this.opts=Z,this.inputmask=le,this._date=new Date(1,0,1),this.initDateObject(j,this.opts,this.inputmask)}var N,Q;return N=F,(Q=[{key:"date",get:function(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}},{key:"initDateObject",value:function(j,J,Z){var le;for(L(J).lastIndex=0;le=L(J).exec(this.format);){var ue=/\d+$/.exec(le[0]),Y=ue?le[0][0]+"x":le[0],X=void 0;if(j!==void 0){if(ue){var $=L(J).lastIndex,P=K.call(Z,le.index,J,Z&&Z.maskset);L(J).lastIndex=$,X=j.slice(0,j.indexOf(P.nextMatch[0]))}else{for(var z=le[0][0],ne=le.index;Z&&(J.placeholder[h.getTest.call(Z,ne).match.placeholder]||h.getTest.call(Z,ne).match.placeholder)===z;)ne++;var ae=ne-le.index;X=j.slice(0,ae||y[Y]&&y[Y][4]||Y.length)}j=j.slice(X.length)}Object.prototype.hasOwnProperty.call(y,Y)&&this.setValue(this,X,Y,y[Y][2],y[Y][1])}}},{key:"setValue",value:function(j,J,Z,le,ue){if(J!==void 0)switch(le){case"ampm":j[le]=J,j["raw"+le]=J.replace(/\s/g,"_");break;case"month":if(Z==="mmm"||Z==="mmmm"){j[le]=U(Z==="mmm"?v.monthNames.slice(0,12).findIndex((function(X){return J.toLowerCase()===X.toLowerCase()}))+1:v.monthNames.slice(12,24).findIndex((function(X){return J.toLowerCase()===X.toLowerCase()}))+1,2),j[le]=j[le]==="00"?"":j[le].toString(),j["raw"+le]=j[le];break}default:j[le]=J.replace(/[^0-9]/g,"0"),j["raw"+le]=J.replace(/\s/g,"_")}if(ue!==void 0){var Y=j[le];(le==="day"&&parseInt(Y)===29||le==="month"&&parseInt(Y)===2)&&(parseInt(j.day)!==29||parseInt(j.month)!==2||j.year!==""&&j.year!==void 0||j._date.setFullYear(2012,1,29)),le==="day"&&(x=!0,parseInt(Y)===0&&(Y=1)),le==="month"&&(x=!0),le==="year"&&(x=!0,Y.length<y[Z][4]&&(Y=U(Y,y[Z][4],!0))),(Y!==""&&!isNaN(Y)||le==="ampm")&&ue.call(j._date,Y)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&w(N.prototype,Q),Object.defineProperty(N,"prototype",{writable:!1}),F})(),M=new Date().getFullYear(),v=d.default.prototype.i18n,x=!1,y={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return U(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(F){var N=F?parseInt(F):0;return N>0&&N--,Date.prototype.setMonth.call(this,N)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(F){var N=F?parseInt(F):0;return N>0&&N--,Date.prototype.setMonth.call(this,N)},"month",function(){return U(Date.prototype.getMonth.call(this)+1,2)}],mmm:[v.monthNames.slice(0,12).join("|"),function(F){var N=v.monthNames.slice(0,12).findIndex((function(Q){return F.toLowerCase()===Q.toLowerCase()}));return N!==-1&&Date.prototype.setMonth.call(this,N)},"month",function(){return v.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[v.monthNames.slice(12,24).join("|"),function(F){var N=v.monthNames.slice(12,24).findIndex((function(Q){return F.toLowerCase()===Q.toLowerCase()}));return N!==-1&&Date.prototype.setMonth.call(this,N)},"month",function(){return v.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(F){var N=new Date().getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(N).concat(F))},"year",function(){return U(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return U(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return U(Date.prototype.getHours.call(this),2)}],hx:[function(F){return"[0-9]{".concat(F,"}")},Date.prototype.setHours,"hours",function(F){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return U(Date.prototype.getHours.call(this),2)}],Hx:[function(F){return"[0-9]{".concat(F,"}")},Date.prototype.setHours,"hours",function(F){return function(){return U(Date.prototype.getHours.call(this),F)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return U(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return U(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return U(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return U(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",b,"ampm",T,1],tt:["[ap]m",b,"ampm",T,2],T:["[AP]",b,"ampm",T,1],TT:["[AP]M",b,"ampm",T,2],Z:[".*",void 0,"Z",function(){var F=this.toString().match(/\((.+)\)/)[1];return F.includes(" ")&&(F=(F=F.replace("-"," ").toUpperCase()).split(" ").map((function(N){return k(N,1)[0]})).join("")),F}],o:[""],S:[""]},S={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function b(F){var N=this.getHours();F.toLowerCase().includes("p")?this.setHours(N+12):F.toLowerCase().includes("a")&&N>=12&&this.setHours(N-12)}function T(){var F=this.getHours();return(F=F||12)>=12?"PM":"AM"}function R(F){var N=/\d+$/.exec(F[0]);if(N&&N[0]!==void 0){var Q=y[F[0][0]+"x"].slice("");return Q[0]=Q[0](N[0]),Q[3]=Q[3](N[0]),Q}if(y[F[0]])return y[F[0]]}function L(F){if(!F.tokenizer){var N=[],Q=[];for(var j in y)if(/\.*x$/.test(j)){var J=j[0]+"\\d+";Q.indexOf(J)===-1&&Q.push(J)}else N.indexOf(j[0])===-1&&N.push(j[0]);F.tokenizer="("+(Q.length>0?Q.join("|")+"|":"")+N.join("+|")+")+?|.",F.tokenizer=new RegExp(F.tokenizer,"g")}return F.tokenizer}function I(F,N,Q){if(!x)return!0;if(F.rawday===void 0||!isFinite(F.rawday)&&new Date(F.date.getFullYear(),isFinite(F.rawmonth)?F.month:F.date.getMonth()+1,0).getDate()>=F.day||F.day=="29"&&(!isFinite(F.rawyear)||F.rawyear===void 0||F.rawyear==="")||new Date(F.date.getFullYear(),isFinite(F.rawmonth)?F.month:F.date.getMonth()+1,0).getDate()>=F.day)return N;if(F.day=="29"){var j=K.call(this,N.pos,Q,this.maskset);if(j.targetMatch&&j.targetMatch[0]==="yyyy"&&N.pos-j.targetMatchIndex==2)return N.remove=N.pos+1,N}else if(F.date.getMonth()==2&&F.day=="30"&&N.c!==void 0)return F.day="03",F.date.setDate(3),F.date.setMonth(1),N.insert=[{pos:N.pos,c:"0"},{pos:N.pos+1,c:N.c}],N.caret=p.seekNext.call(this,N.pos+1),N;return!1}function W(F,N,Q,j){var J,Z,le="",ue=0,Y={};for(L(Q).lastIndex=0;J=L(Q).exec(F);){if(N===void 0)if(Z=R(J))le+="("+Z[0]+")",Q.placeholder&&Q.placeholder!==""?(Y[ue]=Q.placeholder[J.index%Q.placeholder.length],Y[Q.placeholder[J.index%Q.placeholder.length]]=J[0].charAt(0)):Y[ue]=J[0].charAt(0);else switch(J[0]){case"[":le+="(";break;case"]":le+=")?";break;default:le+=(0,c.default)(J[0]),Y[ue]=J[0].charAt(0)}else(Z=R(J))?j!==!0&&Z[3]?le+=Z[3].call(N.date):Z[2]?le+=N["raw"+Z[2]]:le+=J[0]:le+=J[0];ue++}return N===void 0&&(Q.placeholder=Y),le}function U(F,N,Q){for(F=String(F),N=N||2;F.length<N;)F=Q?F+"0":"0"+F;return F}function H(F,N,Q){return typeof F=="string"?new g(F,N,Q,this):F&&A(F)==="object"&&Object.prototype.hasOwnProperty.call(F,"date")?F:void 0}function V(F,N){return W(N.inputFormat,{date:F},N)}function K(F,N,Q){var j,J,Z=this,le=Q&&Q.tests[F]?N.placeholder[Q.tests[F][0].match.placeholder]||Q.tests[F][0].match.placeholder:"",ue=0,Y=0;for(L(N).lastIndex=0;J=L(N).exec(N.inputFormat);){var X=/\d+$/.exec(J[0]);if(X)Y=parseInt(X[0]);else{for(var $=J[0][0],P=ue;Z&&(N.placeholder[h.getTest.call(Z,P).match.placeholder]||h.getTest.call(Z,P).match.placeholder)===$;)P++;(Y=P-ue)===0&&(Y=J[0].length)}if(ue+=Y,J[0].indexOf(le)!=-1||ue>=F+1){j=J,J=L(N).exec(N.inputFormat);break}}return{targetMatchIndex:ue-Y,nextMatch:J,targetMatch:j}}d.default.extendAliases({datetime:{mask:function(F){return F.numericInput=!1,y.S=v.ordinalSuffix.join("|"),F.inputFormat=S[F.inputFormat]||F.inputFormat,F.displayFormat=S[F.displayFormat]||F.displayFormat||F.inputFormat,F.outputFormat=S[F.outputFormat]||F.outputFormat||F.inputFormat,F.regex=W(F.inputFormat,void 0,F),F.min=H(F.min,F.inputFormat,F),F.max=H(F.max,F.inputFormat,F),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(F,N,Q,j,J,Z,le,ue){if(ue)return!0;if(isNaN(Q)&&F[N]!==Q){var Y=K.call(this,N,J,Z);if(Y.nextMatch&&Y.nextMatch[0]===Q&&Y.targetMatch[0].length>1){var X=R(Y.targetMatch)[0];if(new RegExp(X).test("0"+F[N-1]))return F[N]=F[N-1],F[N-1]="0",{fuzzy:!0,buffer:F,refreshFromBuffer:{start:N-1,end:N+1},pos:N+1}}}return!0},postValidation:function(F,N,Q,j,J,Z,le,ue){var Y,X,$=this;if(le)return!0;if(j===!1&&(((Y=K.call($,N+1,J,Z)).targetMatch&&Y.targetMatchIndex===N&&Y.targetMatch[0].length>1&&y[Y.targetMatch[0]]!==void 0||(Y=K.call($,N+2,J,Z)).targetMatch&&Y.targetMatchIndex===N+1&&Y.targetMatch[0].length>1&&y[Y.targetMatch[0]]!==void 0)&&(X=R(Y.targetMatch)[0]),X!==void 0&&(Z.validPositions[N+1]!==void 0&&new RegExp(X).test(Q+"0")?(F[N]=Q,F[N+1]="0",j={pos:N+2,caret:N}):new RegExp(X).test("0"+Q)&&(F[N]="0",F[N+1]=Q,j={pos:N+2})),j===!1))return j;if(j.fuzzy&&(F=j.buffer,N=j.pos),(Y=K.call($,N,J,Z)).targetMatch&&Y.targetMatch[0]&&y[Y.targetMatch[0]]!==void 0){var P=R(Y.targetMatch);X=P[0];var z=F.slice(Y.targetMatchIndex,Y.targetMatchIndex+Y.targetMatch[0].length);if(new RegExp(X).test(z.join(""))===!1&&Y.targetMatch[0].length===2&&Z.validPositions[Y.targetMatchIndex]&&Z.validPositions[Y.targetMatchIndex+1]&&(Z.validPositions[Y.targetMatchIndex+1].input="0"),P[2]=="year")for(var ne=h.getMaskTemplate.call($,!1,1,void 0,!0),ae=N+1;ae<F.length;ae++)F[ae]=ne[ae],Z.validPositions.splice(N+1,1)}var ye=j,we=H.call($,F.join(""),J.inputFormat,J);return ye&&!isNaN(we.date.getTime())&&(J.prefillYear&&(ye=(function(xe,Fe,_e){if(xe.year!==xe.rawyear){var Ne=M.toString(),de=xe.rawyear.replace(/[^0-9]/g,""),q=Ne.slice(0,de.length),ie=Ne.slice(de.length);if(de.length===2&&de===q){var me=new Date(M,xe.month-1,xe.day);xe.day==me.getDate()&&(!_e.max||_e.max.date.getTime()>=me.getTime())&&(xe.date.setFullYear(M),xe.year=Ne,Fe.insert=[{pos:Fe.pos+1,c:ie[0]},{pos:Fe.pos+2,c:ie[1]}])}}return Fe})(we,ye,J)),ye=(function(xe,Fe,_e,Ne,de){if(!Fe)return Fe;if(Fe&&_e.min&&!isNaN(_e.min.date.getTime())){var q;for(xe.reset(),L(_e).lastIndex=0;q=L(_e).exec(_e.inputFormat);){var ie;if((ie=R(q))&&ie[3]){for(var me=ie[1],he=xe[ie[2]],ke=_e.min[ie[2]],Me=_e.max?_e.max[ie[2]]:ke+1,oe=[],Se=!1,Le=0;Le<ke.length;Le++)Ne.validPositions[Le+q.index]!==void 0||Se?(oe[Le]=he[Le],Se=Se||he[Le]>ke[Le]):(Le+q.index==0&&he[Le]<ke[Le]?(oe[Le]=he[Le],Se=!0):oe[Le]=ke[Le],ie[2]==="year"&&he.length-1==Le&&ke!=Me&&(oe=(parseInt(oe.join(""))+1).toString().split("")),ie[2]==="ampm"&&ke!=Me&&_e.min.date.getTime()>xe.date.getTime()&&(oe[Le]=Me[Le]));me.call(xe._date,oe.join(""))}}Fe=_e.min.date.getTime()<=xe.date.getTime(),xe.reInit()}return Fe&&_e.max&&(isNaN(_e.max.date.getTime())||(Fe=_e.max.date.getTime()>=xe.date.getTime())),Fe})(we,ye=I.call($,we,ye,J),J,Z)),N!==void 0&&ye&&j.pos!==N?{buffer:W(J.inputFormat,we,J).split(""),refreshFromBuffer:{start:N,end:j.pos},pos:j.caret||j.pos}:ye},onKeyDown:function(F,N,Q,j){F.ctrlKey&&F.key===f.keys.ArrowRight&&(this.inputmask._valueSet(V(new Date,j)),D(this).trigger("setvalue"))},onUnMask:function(F,N,Q){return N&&W(Q.outputFormat,H.call(this,F,Q.inputFormat,Q),Q,!0)},casing:function(F,N,Q,j){if(N.nativeDef.indexOf("[ap]")==0)return F.toLowerCase();if(N.nativeDef.indexOf("[AP]")==0)return F.toUpperCase();var J=h.getTest.call(this,[Q-1]);return J.match.def.indexOf("[AP]")==0||Q===0||J&&J.input===String.fromCharCode(f.keyCode.Space)||J&&J.match.def===String.fromCharCode(f.keyCode.Space)?F.toUpperCase():F.toLowerCase()},onBeforeMask:function(F,N){return Object.prototype.toString.call(F)==="[object Date]"&&(F=V(F,N)),F},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(o,l,u){var c,d=(c=u(2394))&&c.__esModule?c:{default:c};d.default.dependencyLib.extend(!0,d.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(o,l,u){var c,d=(c=u(2394))&&c.__esModule?c:{default:c},f=u(8711),p=u(4713);function h(w){return(function(m){if(Array.isArray(m))return k(m)})(w)||(function(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)})(w)||(function(m,D){if(m){if(typeof m=="string")return k(m,D);var g=Object.prototype.toString.call(m).slice(8,-1);if(g==="Object"&&m.constructor&&(g=m.constructor.name),g==="Map"||g==="Set")return Array.from(m);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return k(m,D)}})(w)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function k(w,m){(m==null||m>w.length)&&(m=w.length);for(var D=0,g=new Array(m);D<m;D++)g[D]=w[D];return g}d.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var C=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function A(w,m,D,g,M){if(D-1>-1&&m.buffer[D-1]!=="."?(w=m.buffer[D-1]+w,w=D-2>-1&&m.buffer[D-2]!=="."?m.buffer[D-2]+w:"0"+w):w="00"+w,M.greedy&&parseInt(w)>255&&C.test("00"+w.charAt(2))){var v=[].concat(h(m.buffer.slice(0,D)),[".",w.charAt(2)]);if(v.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:v,caret:D+2}}return C.test(w)}d.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:A},j:{validator:A},k:{validator:A},l:{validator:A}},onUnMask:function(w,m,D){return w},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(w){var m=w.separator,D=w.quantifier,g="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",M=g;if(m)for(var v=0;v<D;v++)M+="[".concat(m).concat(g,"]");return M},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(w,m){return(w=w.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(w,m,D){return w},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(w,m,D,g,M,v,x){var y=p.getMaskTemplate.call(this,!0,f.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(y.join(""))}}})},207:function(o,l,u){var c=h(u(7184)),d=h(u(2394)),f=u(2839),p=u(8711);function h(g){return g&&g.__esModule?g:{default:g}}var k=d.default.dependencyLib;function C(g,M){for(var v="",x=0;x<g.length;x++)d.default.prototype.definitions[g.charAt(x)]||M.definitions[g.charAt(x)]||M.optionalmarker[0]===g.charAt(x)||M.optionalmarker[1]===g.charAt(x)||M.quantifiermarker[0]===g.charAt(x)||M.quantifiermarker[1]===g.charAt(x)||M.groupmarker[0]===g.charAt(x)||M.groupmarker[1]===g.charAt(x)||M.alternatormarker===g.charAt(x)?v+="\\"+g.charAt(x):v+=g.charAt(x);return v}function A(g,M,v,x){if(g.length>0&&M>0&&(!v.digitsOptional||x)){var y=g.indexOf(v.radixPoint),S=!1;v.negationSymbol.back===g[g.length-1]&&(S=!0,g.length--),y===-1&&(g.push(v.radixPoint),y=g.length-1);for(var b=1;b<=M;b++)isFinite(g[y+b])||(g[y+b]="0")}return S&&g.push(v.negationSymbol.back),g}function w(g,M){var v=0;for(var x in g==="+"&&(v=p.seekNext.call(this,M.validPositions.length-1)),M.tests)if((x=parseInt(x))>=v){for(var y=0,S=M.tests[x].length;y<S;y++)if((M.validPositions[x]===void 0||g==="-")&&M.tests[x][y].match.def===g)return x+(M.validPositions[x]!==void 0&&g!=="-"?1:0)}return v}function m(g,M){for(var v=-1,x=0,y=M.validPositions.length;x<y;x++){var S=M.validPositions[x];if(S&&S.match.def===g){v=x;break}}return v}function D(g,M,v,x,y){var S=M.buffer?M.buffer.indexOf(y.radixPoint):-1,b=(S!==-1||x&&y.jitMasking)&&new RegExp(y.definitions[9].validator).test(g);return!x&&y._radixDance&&S!==-1&&b&&M.validPositions[S]==null?{insert:{pos:S===v?S+1:S,c:y.radixPoint},pos:v}:b}d.default.extendAliases({numeric:{mask:function(g){g.repeat=0,g.groupSeparator===g.radixPoint&&g.digits&&g.digits!=="0"&&(g.radixPoint==="."?g.groupSeparator=",":g.radixPoint===","?g.groupSeparator=".":g.groupSeparator=""),g.groupSeparator===" "&&(g.skipOptionalPartCharacter=void 0),g.placeholder.length>1&&(g.placeholder=g.placeholder.charAt(0)),g.positionCaretOnClick==="radixFocus"&&g.placeholder===""&&(g.positionCaretOnClick="lvp");var M="0",v=g.radixPoint;g.numericInput===!0&&g.__financeInput===void 0?(M="1",g.positionCaretOnClick=g.positionCaretOnClick==="radixFocus"?"lvp":g.positionCaretOnClick,g.digitsOptional=!1,isNaN(g.digits)&&(g.digits=2),g._radixDance=!1,v=g.radixPoint===","?"?":"!",g.radixPoint!==""&&g.definitions[v]===void 0&&(g.definitions[v]={},g.definitions[v].validator="["+g.radixPoint+"]",g.definitions[v].placeholder=g.radixPoint,g.definitions[v].static=!0,g.definitions[v].generated=!0)):(g.__financeInput=!1,g.numericInput=!0);var x,y="[+]";if(y+=C(g.prefix,g),g.groupSeparator!==""?(g.definitions[g.groupSeparator]===void 0&&(g.definitions[g.groupSeparator]={},g.definitions[g.groupSeparator].validator="["+g.groupSeparator+"]",g.definitions[g.groupSeparator].placeholder=g.groupSeparator,g.definitions[g.groupSeparator].static=!0,g.definitions[g.groupSeparator].generated=!0),y+=g._mask(g)):y+="9{+}",g.digits!==void 0&&g.digits!==0){var S=g.digits.toString().split(",");isFinite(S[0])&&S[1]&&isFinite(S[1])?y+=v+M+"{"+g.digits+"}":(isNaN(g.digits)||parseInt(g.digits)>0)&&(g.digitsOptional||g.jitMasking?(x=y+v+M+"{0,"+g.digits+"}",g.keepStatic=!0):y+=v+M+"{"+g.digits+"}")}else g.inputmode="numeric";return y+=C(g.suffix,g),y+="[-]",x&&(y=[x+C(g.suffix,g)+"[-]",y]),g.greedy=!1,(function(b){b.parseMinMaxOptions===void 0&&(b.min!==null&&(b.min=b.min.toString().replace(new RegExp((0,c.default)(b.groupSeparator),"g"),""),b.radixPoint===","&&(b.min=b.min.replace(b.radixPoint,".")),b.min=isFinite(b.min)?parseFloat(b.min):NaN,isNaN(b.min)&&(b.min=Number.MIN_VALUE)),b.max!==null&&(b.max=b.max.toString().replace(new RegExp((0,c.default)(b.groupSeparator),"g"),""),b.radixPoint===","&&(b.max=b.max.replace(b.radixPoint,".")),b.max=isFinite(b.max)?parseFloat(b.max):NaN,isNaN(b.max)&&(b.max=Number.MAX_VALUE)),b.parseMinMaxOptions="done")})(g),g.radixPoint!==""&&g.substituteRadixPoint&&(g.substitutes[g.radixPoint=="."?",":"."]=g.radixPoint),y},_mask:function(g){return"("+g.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:D},1:{validator:D,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(g,M,v,x,y){return y.allowMinus&&(g==="-"||g===y.negationSymbol.front)}},"-":{validator:function(g,M,v,x,y){return y.allowMinus&&g===y.negationSymbol.back}}},preValidation:function(g,M,v,x,y,S,b,T){var R=this;if(y.__financeInput!==!1&&v===y.radixPoint)return!1;var L=g.indexOf(y.radixPoint),I=M;if(M=(function(K,F,N,Q,j){return j._radixDance&&j.numericInput&&F!==j.negationSymbol.back&&K<=N&&(N>0||F==j.radixPoint)&&(Q.validPositions[K-1]===void 0||Q.validPositions[K-1].input!==j.negationSymbol.back)&&(K-=1),K})(M,v,L,S,y),v==="-"||v===y.negationSymbol.front){if(y.allowMinus!==!0)return!1;var W=!1,U=m("+",S),H=m("-",S);return U!==-1&&(W=[U],H!==-1&&W.push(H)),W!==!1?{remove:W,caret:I-y.negationSymbol.back.length}:{insert:[{pos:w.call(R,"+",S),c:y.negationSymbol.front,fromIsValid:!0},{pos:w.call(R,"-",S),c:y.negationSymbol.back,fromIsValid:void 0}],caret:I+y.negationSymbol.back.length}}if(v===y.groupSeparator)return{caret:I};if(T)return!0;if(L!==-1&&y._radixDance===!0&&x===!1&&v===y.radixPoint&&y.digits!==void 0&&(isNaN(y.digits)||parseInt(y.digits)>0)&&L!==M){var V=w.call(R,y.radixPoint,S);return S.validPositions[V]&&(S.validPositions[V].generatedInput=S.validPositions[V].generated||!1),{caret:y._radixDance&&M===L-1?L+1:L}}if(y.__financeInput===!1){if(x){if(y.digitsOptional)return{rewritePosition:b.end};if(!y.digitsOptional){if(b.begin>L&&b.end<=L)return v===y.radixPoint?{insert:{pos:L+1,c:"0",fromIsValid:!0},rewritePosition:L}:{rewritePosition:L+1};if(b.begin<L)return{rewritePosition:b.begin-1}}}else if(!y.showMaskOnHover&&!y.showMaskOnFocus&&!y.digitsOptional&&y.digits>0&&this.__valueGet.call(this.el)==="")return{rewritePosition:L}}return{rewritePosition:M}},postValidation:function(g,M,v,x,y,S,b){if(x===!1)return x;if(b)return!0;if(y.min!==null||y.max!==null){var T=y.onUnMask(g.slice().reverse().join(""),void 0,k.extend({},y,{unmaskAsNumber:!0}));if(y.min!==null&&T<y.min&&(T.toString().length>y.min.toString().length||T<0))return!1;if(y.max!==null&&T>y.max)return!!y.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:A(y.max.toString().replace(".",y.radixPoint).split(""),y.digits,y).reverse()}}return x},onUnMask:function(g,M,v){if(M===""&&v.nullable===!0)return M;var x=g.replace(v.prefix,"");return x=(x=x.replace(v.suffix,"")).replace(new RegExp((0,c.default)(v.groupSeparator),"g"),""),v.placeholder.charAt(0)!==""&&(x=x.replace(new RegExp(v.placeholder.charAt(0),"g"),"0")),v.unmaskAsNumber?(v.radixPoint!==""&&x.indexOf(v.radixPoint)!==-1&&(x=x.replace(c.default.call(this,v.radixPoint),".")),x=(x=x.replace(new RegExp("^"+(0,c.default)(v.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(v.negationSymbol.back)+"$"),""),Number(x)):x},isComplete:function(g,M){var v=(M.numericInput?g.slice().reverse():g).join("");return v=(v=(v=(v=(v=v.replace(new RegExp("^"+(0,c.default)(M.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(M.negationSymbol.back)+"$"),"")).replace(M.prefix,"")).replace(M.suffix,"")).replace(new RegExp((0,c.default)(M.groupSeparator)+"([0-9]{3})","g"),"$1"),M.radixPoint===","&&(v=v.replace((0,c.default)(M.radixPoint),".")),isFinite(v)},onBeforeMask:function(g,M){var v;g=(v=g)!==null&&v!==void 0?v:"";var x=M.radixPoint||",";isFinite(M.digits)&&(M.digits=parseInt(M.digits)),typeof g!="number"&&M.inputType!=="number"||x===""||(g=g.toString().replace(".",x));var y=g.charAt(0)==="-"||g.charAt(0)===M.negationSymbol.front,S=g.split(x),b=S[0].replace(/[^\-0-9]/g,""),T=S.length>1?S[1].replace(/[^0-9]/g,""):"",R=S.length>1;g=b+(T!==""?x+T:T);var L=0;if(x!==""&&(L=M.digitsOptional?M.digits<T.length?M.digits:T.length:M.digits,T!==""||!M.digitsOptional)){var I=Math.pow(10,L||1);g=g.replace((0,c.default)(x),"."),isNaN(parseFloat(g))||(g=(M.roundingFN(parseFloat(g)*I)/I).toFixed(L)),g=g.toString().replace(".",x)}if(M.digits===0&&g.indexOf(x)!==-1&&(g=g.substring(0,g.indexOf(x))),M.min!==null||M.max!==null){var W=g.toString().replace(x,".");M.min!==null&&W<M.min?g=M.min.toString().replace(".",x):M.max!==null&&W>M.max&&(g=M.max.toString().replace(".",x))}return y&&g.charAt(0)!=="-"&&(g="-"+g),A(g.toString().split(""),L,M,R).join("")},onBeforeWrite:function(g,M,v,x){function y(H,V){if(x.__financeInput!==!1||V){var K=H.indexOf(x.radixPoint);K!==-1&&H.splice(K,1)}if(x.groupSeparator!=="")for(;(K=H.indexOf(x.groupSeparator))!==-1;)H.splice(K,1);return H}var S,b;if(x.stripLeadingZeroes&&(b=(function(H,V){var K=new RegExp("(^"+(V.negationSymbol.front!==""?(0,c.default)(V.negationSymbol.front)+"?":"")+(0,c.default)(V.prefix)+")(.*)("+(0,c.default)(V.suffix)+(V.negationSymbol.back!=""?(0,c.default)(V.negationSymbol.back)+"?":"")+"$)").exec(H.slice().reverse().join("")),F=K?K[2]:"",N=!1;return F&&(F=F.split(V.radixPoint.charAt(0))[0],N=new RegExp("^[0"+V.groupSeparator+"]*").exec(F)),!(!N||!(N[0].length>1||N[0].length>0&&N[0].length<F.length))&&N})(M,x)))for(var T=M.join("").lastIndexOf(b[0].split("").reverse().join(""))-(b[0]==b.input?0:1),R=b[0]==b.input?1:0,L=b[0].length-R;L>0;L--)this.maskset.validPositions.splice(T+L,1),delete M[T+L];if(g)switch(g.type){case"blur":case"checkval":if(x.min!==null){var I=x.onUnMask(M.slice().reverse().join(""),void 0,k.extend({},x,{unmaskAsNumber:!0}));if(x.min!==null&&I<x.min)return{refreshFromBuffer:!0,buffer:A(x.min.toString().replace(".",x.radixPoint).split(""),x.digits,x).reverse()}}if(M[M.length-1]===x.negationSymbol.front){var W=new RegExp("(^"+(x.negationSymbol.front!=""?(0,c.default)(x.negationSymbol.front)+"?":"")+(0,c.default)(x.prefix)+")(.*)("+(0,c.default)(x.suffix)+(x.negationSymbol.back!=""?(0,c.default)(x.negationSymbol.back)+"?":"")+"$)").exec(y(M.slice(),!0).reverse().join(""));(W?W[2]:"")==0&&(S={refreshFromBuffer:!0,buffer:[0]})}else x.radixPoint!==""&&M.indexOf(x.radixPoint)===x.suffix.length&&(S&&S.buffer?S.buffer.splice(0,1+x.suffix.length):(M.splice(0,1+x.suffix.length),S={refreshFromBuffer:!0,buffer:y(M)}));if(x.enforceDigitsOnBlur){var U=(S=S||{})&&S.buffer||M.slice().reverse();S.refreshFromBuffer=!0,S.buffer=A(U,x.digits,x,!0).reverse()}}return S},onKeyDown:function(g,M,v,x){var y,S=k(this);if(g.location!=3){var b,T=g.key;if((b=x.shortcuts&&x.shortcuts[T])&&b.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(b)),S.trigger("setvalue"),!1}if(g.ctrlKey)switch(g.key){case f.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(x.step)),S.trigger("setvalue"),!1;case f.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(x.step)),S.trigger("setvalue"),!1}if(!g.shiftKey&&(g.key===f.keys.Delete||g.key===f.keys.Backspace||g.key===f.keys.BACKSPACE_SAFARI)&&v.begin!==M.length){if(M[g.key===f.keys.Delete?v.begin-1:v.end]===x.negationSymbol.front)return y=M.slice().reverse(),x.negationSymbol.front!==""&&y.shift(),x.negationSymbol.back!==""&&y.pop(),S.trigger("setvalue",[y.join(""),v.begin]),!1;if(x._radixDance===!0){var R,L=M.indexOf(x.radixPoint);if(x.digitsOptional){if(L===0)return(y=M.slice().reverse()).pop(),S.trigger("setvalue",[y.join(""),v.begin>=y.length?y.length:v.begin]),!1}else if(L!==-1&&(v.begin<L||v.end<L||g.key===f.keys.Delete&&(v.begin===L||v.begin-1===L)))return v.begin===v.end&&(g.key===f.keys.Backspace||g.key===f.keys.BACKSPACE_SAFARI?v.begin++:g.key===f.keys.Delete&&v.begin-1===L&&(R=k.extend({},v),v.begin--,v.end--)),(y=M.slice().reverse()).splice(y.length-v.begin,v.begin-v.end+1),y=A(y,x.digits,x).join(""),R&&(v=R),S.trigger("setvalue",[y,v.begin>=y.length?L+1:v.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(g){return"("+g.groupSeparator+"99){*|1}("+g.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=!(typeof window>"u"||!window.document||!window.document.createElement);l.default=u?window:{}},7760:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.HandleNativePlaceholder=function(D,g){var M=D?D.inputmask:this;if(c.ie){if(D.inputmask._valueGet()!==g&&(D.placeholder!==g||D.placeholder==="")){var v=p.getBuffer.call(M).slice(),x=D.inputmask._valueGet();if(x!==g){var y=p.getLastValidPosition.call(M);y===-1&&x===p.getBufferTemplate.call(M).join("")?v=[]:y!==-1&&A.call(M,v),m(D,v)}}}else D.placeholder!==g&&(D.placeholder=g,D.placeholder===""&&D.removeAttribute("placeholder"))},l.applyInputValue=C,l.checkVal=w,l.clearOptionalTail=A,l.unmaskedvalue=function(D){var g=D?D.inputmask:this,M=g.opts,v=g.maskset;if(D){if(D.inputmask===void 0)return D.value;D.inputmask&&D.inputmask.refreshValue&&C(D,D.inputmask._valueGet(!0))}for(var x=[],y=v.validPositions,S=0,b=y.length;S<b;S++)y[S]&&y[S].match&&(y[S].match.static!=1||Array.isArray(v.metadata)&&y[S].generatedInput!==!0)&&x.push(y[S].input);var T=x.length===0?"":(g.isRTL?x.reverse():x).join("");if(typeof M.onUnMask=="function"){var R=(g.isRTL?p.getBuffer.call(g).slice().reverse():p.getBuffer.call(g)).join("");T=M.onUnMask.call(g,R,T,M)}return T},l.writeBuffer=m;var c=u(9845),d=u(6030),f=u(2839),p=u(8711),h=u(7215),k=u(4713);function C(D,g,M){var v=D?D.inputmask:this,x=v.opts;D.inputmask.refreshValue=!1,typeof x.onBeforeMask=="function"&&(g=x.onBeforeMask.call(v,g,x)||g),w(D,!0,!1,g=(g||"").toString().split(""),M),v.undoValue=v._valueGet(!0),(x.clearMaskOnLostFocus||x.clearIncomplete)&&D.inputmask._valueGet()===p.getBufferTemplate.call(v).join("")&&p.getLastValidPosition.call(v)===-1&&D.inputmask._valueSet("")}function A(D){D.length=0;for(var g,M=k.getMaskTemplate.call(this,!0,0,!0,void 0,!0);(g=M.shift())!==void 0;)D.push(g);return D}function w(D,g,M,v,x){var y,S=D?D.inputmask:this,b=S.maskset,T=S.opts,R=S.dependencyLib,L=v.slice(),I="",W=-1,U=T.skipOptionalPartCharacter;T.skipOptionalPartCharacter="",p.resetMaskSet.call(S,!1),S.clicked=0,W=T.radixPoint?p.determineNewCaretPosition.call(S,{begin:0,end:0},!1,T.__financeInput===!1?"radixFocus":void 0).begin:0,b.p=W,S.caretPos={begin:W};var H=[],V=S.caretPos;if(L.forEach((function(J,Z){if(J!==void 0){var le=new R.Event("_checkval");le.key=J,I+=J;var ue=p.getLastValidPosition.call(S,void 0,!0);(function(Y,X){for(var $=k.getMaskTemplate.call(S,!0,0).slice(Y,p.seekNext.call(S,Y,!1,!1)).join("").replace(/'/g,""),P=$.indexOf(X);P>0&&$[P-1]===" ";)P--;var z=P===0&&!p.isMask.call(S,Y)&&(k.getTest.call(S,Y).match.nativeDef===X.charAt(0)||k.getTest.call(S,Y).match.static===!0&&k.getTest.call(S,Y).match.nativeDef==="'"+X.charAt(0)||k.getTest.call(S,Y).match.nativeDef===" "&&(k.getTest.call(S,Y+1).match.nativeDef===X.charAt(0)||k.getTest.call(S,Y+1).match.static===!0&&k.getTest.call(S,Y+1).match.nativeDef==="'"+X.charAt(0)));if(!z&&P>0&&!p.isMask.call(S,Y,!1,!0)){var ne=p.seekNext.call(S,Y);S.caretPos.begin<ne&&(S.caretPos={begin:ne})}return z})(W,I)?y=d.EventHandlers.keypressEvent.call(S,le,!0,!1,M,ue+1):(y=d.EventHandlers.keypressEvent.call(S,le,!0,!1,M,S.caretPos.begin))&&(W=S.caretPos.begin+1,I=""),y?(y.pos!==void 0&&b.validPositions[y.pos]&&b.validPositions[y.pos].match.static===!0&&b.validPositions[y.pos].alternation===void 0&&(H.push(y.pos),S.isRTL||(y.forwardPosition=y.pos+1)),m.call(S,void 0,p.getBuffer.call(S),y.forwardPosition,le,!1),S.caretPos={begin:y.forwardPosition,end:y.forwardPosition},V=S.caretPos):b.validPositions[Z]===void 0&&L[Z]===k.getPlaceholder.call(S,Z)&&p.isMask.call(S,Z,!0)?S.caretPos.begin++:S.caretPos=V}})),H.length>0){var K,F,N=p.seekNext.call(S,-1,void 0,!1);if(!h.isComplete.call(S,p.getBuffer.call(S))&&H.length<=N||h.isComplete.call(S,p.getBuffer.call(S))&&H.length>0&&H.length!==N&&H[0]===0){for(var Q=N;(K=H.shift())!==void 0;)if(K<Q){var j=new R.Event("_checkval");if((F=b.validPositions[K]).generatedInput=!0,j.key=F.input,(y=d.EventHandlers.keypressEvent.call(S,j,!0,!1,M,Q))&&y.pos!==void 0&&y.pos!==K&&b.validPositions[y.pos]&&b.validPositions[y.pos].match.static===!0)H.push(y.pos);else if(!y)break;Q++}}}g&&m.call(S,D,p.getBuffer.call(S),y?y.forwardPosition:S.caretPos.begin,x||new R.Event("checkval"),x&&(x.type==="input"&&S.undoValue!==p.getBuffer.call(S).join("")||x.type==="paste")),T.skipOptionalPartCharacter=U}function m(D,g,M,v,x){var y=D?D.inputmask:this,S=y.opts,b=y.dependencyLib;if(v&&typeof S.onBeforeWrite=="function"){var T=S.onBeforeWrite.call(y,v,g,M,S);if(T){if(T.refreshFromBuffer){var R=T.refreshFromBuffer;h.refreshFromBuffer.call(y,R===!0?R:R.start,R.end,T.buffer||g),g=p.getBuffer.call(y,!0)}M!==void 0&&(M=T.caret!==void 0?T.caret:M)}}if(D!==void 0&&(D.inputmask._valueSet(g.join("")),M===void 0||v!==void 0&&v.type==="blur"||p.caret.call(y,D,M,void 0,void 0,v!==void 0&&v.type==="keydown"&&(v.key===f.keys.Delete||v.key===f.keys.Backspace)),D.inputmask.writeBufferHook===void 0||D.inputmask.writeBufferHook(M),x===!0)){var L=b(D),I=D.inputmask._valueGet();D.inputmask.skipInputEvent=!0,L.trigger("input"),setTimeout((function(){I===p.getBufferTemplate.call(y).join("")?L.trigger("cleared"):h.isComplete.call(y,g)===!0&&L.trigger("complete")}),0)}}},2394:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var c=M(u(3976)),d=M(u(7392)),f=M(u(4963)),p=u(9716),h=M(u(9380)),k=u(7760),C=u(157),A=u(2391),w=u(8711),m=u(7215),D=u(4713);function g(b){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},g(b)}function M(b){return b&&b.__esModule?b:{default:b}}var v=h.default.document,x="_inputmask_opts";function y(b,T,R){if(!(this instanceof y))return new y(b,T,R);this.dependencyLib=f.default,this.el=void 0,this.events={},this.maskset=void 0,R!==!0&&(Object.prototype.toString.call(b)==="[object Object]"?T=b:(T=T||{},b&&(T.alias=b)),this.opts=f.default.extend(!0,{},this.defaults,T),this.noMasksCache=T&&T.definitions!==void 0,this.userOptions=T||{},S(this.opts.alias,T,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}function S(b,T,R){var L=y.prototype.aliases[b];return L?(L.alias&&S(L.alias,void 0,R),f.default.extend(!0,R,L),f.default.extend(!0,R,T),!0):(R.mask===null&&(R.mask=b),!1)}y.prototype={dataAttribute:"data-inputmask",defaults:c.default,definitions:d.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(b){var T=this;return typeof b=="string"&&(b=v.getElementById(b)||v.querySelectorAll(b)),(b=b.nodeName?[b]:Array.isArray(b)?b:[].slice.call(b)).forEach((function(R,L){var I=f.default.extend(!0,{},T.opts);if((function(U,H,V,K){function F(le,ue){var Y=K===""?le:K+"-"+le;(ue=ue!==void 0?ue:U.getAttribute(Y))!==null&&(typeof ue=="string"&&(le.indexOf("on")===0?ue=h.default[ue]:ue==="false"?ue=!1:ue==="true"&&(ue=!0)),V[le]=ue)}if(H.importDataAttributes===!0){var N,Q,j,J,Z=U.getAttribute(K);if(Z&&Z!==""&&(Z=Z.replace(/'/g,'"'),Q=JSON.parse("{"+Z+"}")),Q){for(J in j=void 0,Q)if(J.toLowerCase()==="alias"){j=Q[J];break}}for(N in F("alias",j),V.alias&&S(V.alias,V,H),H){if(Q){for(J in j=void 0,Q)if(J.toLowerCase()===N.toLowerCase()){j=Q[J];break}}F(N,j)}}return f.default.extend(!0,H,V),(U.dir==="rtl"||H.rightAlign)&&(U.style.textAlign="right"),(U.dir==="rtl"||H.numericInput)&&(U.dir="ltr",U.removeAttribute("dir"),H.isRTL=!0),Object.keys(V).length})(R,I,f.default.extend(!0,{},T.userOptions),T.dataAttribute)){var W=(0,A.generateMaskSet)(I,T.noMasksCache);W!==void 0&&(R.inputmask!==void 0&&(R.inputmask.opts.autoUnmask=!0,R.inputmask.remove()),R.inputmask=new y(void 0,void 0,!0),R.inputmask.opts=I,R.inputmask.noMasksCache=T.noMasksCache,R.inputmask.userOptions=f.default.extend(!0,{},T.userOptions),R.inputmask.el=R,R.inputmask.$el=(0,f.default)(R),R.inputmask.maskset=W,f.default.data(R,x,T.userOptions),C.mask.call(R.inputmask))}})),b&&b[0]&&b[0].inputmask||this},option:function(b,T){return typeof b=="string"?this.opts[b]:g(b)==="object"?(f.default.extend(this.userOptions,b),this.el&&T!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(b){if(this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||b!==void 0){var T=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,b,this.opts)||b).split("");k.checkVal.call(this,void 0,!1,!1,T),typeof this.opts.onBeforeWrite=="function"&&this.opts.onBeforeWrite.call(this,void 0,w.getBuffer.call(this),0,this.opts)}return k.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){f.default.data(this.el,x,null);var b=this.opts.autoUnmask?(0,k.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);b!==w.getBufferTemplate.call(this).join("")?this._valueSet(b,this.opts.autoUnmask):this._valueSet(""),p.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):v.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?w.getBufferTemplate.call(this).reverse():w.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),m.isComplete.call(this,w.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var b=D.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(T){return T.mask!==b||(b=T,!1)})),b}return this.maskset.metadata},isValid:function(b){if(this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache),b){var T=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,b,this.opts)||b).split("");k.checkVal.call(this,void 0,!0,!1,T)}else b=this.isRTL?w.getBuffer.call(this).slice().reverse().join(""):w.getBuffer.call(this).join("");for(var R=w.getBuffer.call(this),L=w.determineLastRequiredPosition.call(this),I=R.length-1;I>L&&!w.isMask.call(this,I);I--);return R.splice(L,I+1-L),m.isComplete.call(this,R)&&b===(this.isRTL?w.getBuffer.call(this).slice().reverse().join(""):w.getBuffer.call(this).join(""))},format:function(b,T){this.maskset=this.maskset||(0,A.generateMaskSet)(this.opts,this.noMasksCache);var R=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,b,this.opts)||b).split("");k.checkVal.call(this,void 0,!0,!1,R);var L=this.isRTL?w.getBuffer.call(this).slice().reverse().join(""):w.getBuffer.call(this).join("");return T?{value:L,metadata:this.getmetadata()}:L},setValue:function(b){this.el&&(0,f.default)(this.el).trigger("setvalue",[b])},analyseMask:A.analyseMask},y.extendDefaults=function(b){f.default.extend(!0,y.prototype.defaults,b)},y.extendDefinitions=function(b){f.default.extend(!0,y.prototype.definitions,b)},y.extendAliases=function(b){f.default.extend(!0,y.prototype.aliases,b)},y.format=function(b,T,R){return y(T).format(b,R)},y.unmask=function(b,T){return y(T).unmaskedvalue(b)},y.isValid=function(b,T){return y(T).isValid(b)},y.remove=function(b){typeof b=="string"&&(b=v.getElementById(b)||v.querySelectorAll(b)),(b=b.nodeName?[b]:b).forEach((function(T){T.inputmask&&T.inputmask.remove()}))},y.setValue=function(b,T){typeof b=="string"&&(b=v.getElementById(b)||v.querySelectorAll(b)),(b=b.nodeName?[b]:b).forEach((function(R){R.inputmask?R.inputmask.setValue(T):(0,f.default)(R).trigger("setvalue",[T])}))},y.dependencyLib=f.default,h.default.Inputmask=y,l.default=y},5296:function(o,l,u){function c(v){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},c(v)}var d=D(u(9380)),f=D(u(2394));function p(v,x){for(var y=0;y<x.length;y++){var S=x[y];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,(b=S.key,T=void 0,T=(function(R,L){if(c(R)!=="object"||R===null)return R;var I=R[Symbol.toPrimitive];if(I!==void 0){var W=I.call(R,L);if(c(W)!=="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(R)})(b,"string"),c(T)==="symbol"?T:String(T)),S)}var b,T}function h(v){var x=A();return function(){var y,S=m(v);if(x){var b=m(this).constructor;y=Reflect.construct(S,arguments,b)}else y=S.apply(this,arguments);return(function(T,R){if(R&&(c(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L})(T)})(this,y)}}function k(v){var x=typeof Map=="function"?new Map:void 0;return k=function(y){if(y===null||!(function(b){try{return Function.toString.call(b).indexOf("[native code]")!==-1}catch{return typeof b=="function"}})(y))return y;if(typeof y!="function")throw new TypeError("Super expression must either be null or a function");if(x!==void 0){if(x.has(y))return x.get(y);x.set(y,S)}function S(){return C(y,arguments,m(this).constructor)}return S.prototype=Object.create(y.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w(S,y)},k(v)}function C(v,x,y){return C=A()?Reflect.construct.bind():function(S,b,T){var R=[null];R.push.apply(R,b);var L=new(Function.bind.apply(S,R));return T&&w(L,T.prototype),L},C.apply(null,arguments)}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}function w(v,x){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,S){return y.__proto__=S,y},w(v,x)}function m(v){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},m(v)}function D(v){return v&&v.__esModule?v:{default:v}}var g=d.default.document;if(g&&g.head&&g.head.attachShadow&&d.default.customElements&&d.default.customElements.get("input-mask")===void 0){var M=(function(v){(function(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),Object.defineProperty(T,"prototype",{writable:!1}),R&&w(T,R)})(b,v);var x,y,S=h(b);function b(){var T;(function(U,H){if(!(U instanceof H))throw new TypeError("Cannot call a class as a function")})(this,b);var R=(T=S.call(this)).getAttributeNames(),L=T.attachShadow({mode:"closed"});for(var I in T.input=g.createElement("input"),T.input.type="text",L.appendChild(T.input),R)Object.prototype.hasOwnProperty.call(R,I)&&T.input.setAttribute(R[I],T.getAttribute(R[I]));var W=new f.default;return W.dataAttribute="",W.mask(T.input),T.input.inputmask.shadowRoot=L,T}return x=b,(y=[{key:"attributeChangedCallback",value:function(T,R,L){this.input.setAttribute(T,L)}},{key:"value",get:function(){return this.input.value},set:function(T){this.input.value=T}}])&&p(x.prototype,y),Object.defineProperty(x,"prototype",{writable:!1}),b})(k(HTMLElement));d.default.customElements.define("input-mask",M)}},2839:function(o,l){function u(C){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},u(C)}function c(C,A){return(function(w){if(Array.isArray(w))return w})(C)||(function(w,m){var D=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(D!=null){var g,M,v,x,y=[],S=!0,b=!1;try{if(v=(D=D.call(w)).next,m!==0)for(;!(S=(g=v.call(D)).done)&&(y.push(g.value),y.length!==m);S=!0);}catch(T){b=!0,M=T}finally{try{if(!S&&D.return!=null&&(x=D.return(),Object(x)!==x))return}finally{if(b)throw M}}return y}})(C,A)||(function(w,m){if(w){if(typeof w=="string")return d(w,m);var D=Object.prototype.toString.call(w).slice(8,-1);if(D==="Object"&&w.constructor&&(D=w.constructor.name),D==="Map"||D==="Set")return Array.from(w);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return d(w,m)}})(C,A)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function d(C,A){(A==null||A>C.length)&&(A=C.length);for(var w=0,m=new Array(A);w<A;w++)m[w]=C[w];return m}function f(C,A){var w=Object.keys(C);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(C);A&&(m=m.filter((function(D){return Object.getOwnPropertyDescriptor(C,D).enumerable}))),w.push.apply(w,m)}return w}function p(C,A,w){return(A=(function(m){var D=(function(g,M){if(u(g)!=="object"||g===null)return g;var v=g[Symbol.toPrimitive];if(v!==void 0){var x=v.call(g,M);if(u(x)!=="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(M==="string"?String:Number)(g)})(m,"string");return u(D)==="symbol"?D:String(D)})(A))in C?Object.defineProperty(C,A,{value:w,enumerable:!0,configurable:!0,writable:!0}):C[A]=w,C}Object.defineProperty(l,"__esModule",{value:!0}),l.keys=l.keyCode=void 0,l.toKey=function(C,A){return k[C]||(A?String.fromCharCode(C):String.fromCharCode(C).toLowerCase())},l.toKeyCode=function(C){return h[C]};var h=l.keyCode=(function(C){for(var A=1;A<arguments.length;A++){var w=arguments[A]!=null?arguments[A]:{};A%2?f(Object(w),!0).forEach((function(m){p(C,m,w[m])})):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(w)):f(Object(w)).forEach((function(m){Object.defineProperty(C,m,Object.getOwnPropertyDescriptor(w,m))}))}return C})({c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32},{Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229}),k=Object.entries(h).reduce((function(C,A){var w=c(A,2),m=w[0],D=w[1];return C[D]=C[D]===void 0?m:C[D],C}),{});l.keys=Object.entries(h).reduce((function(C,A){var w=c(A,2),m=w[0];return w[1],C[m]=m==="Space"?" ":m,C}),{})},2391:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.analyseMask=function(A,w,m){var D,g,M,v,x,y,S=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,b=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,T=!1,R=new p.default,L=[],I=[],W=!1;function U(P,z,ne){ne=ne!==void 0?ne:P.matches.length;var ae=P.matches[ne-1];if(w){if(z.indexOf("[")===0||T&&/\\d|\\s|\\w|\\p/i.test(z)||z==="."){var ye=m.casing?"i":"";/\\p\{.*}/i.test(z)&&(ye+="u"),P.matches.splice(ne++,0,{fn:new RegExp(z,ye),static:!1,optionality:!1,newBlockMarker:ae===void 0?"master":ae.def!==z,casing:null,def:z,placeholder:h(m.placeholder)==="object"?m.placeholder[R.matches.length]:void 0,nativeDef:z})}else T&&(z=z[z.length-1]),z.split("").forEach((function(xe,Fe){ae=P.matches[ne-1],P.matches.splice(ne++,0,{fn:/[a-z]/i.test(m.staticDefinitionSymbol||xe)?new RegExp("["+(m.staticDefinitionSymbol||xe)+"]",m.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:ae===void 0?"master":ae.def!==xe&&ae.static!==!0,casing:null,def:m.staticDefinitionSymbol||xe,placeholder:m.staticDefinitionSymbol!==void 0?xe:h(m.placeholder)==="object"?m.placeholder[R.matches.length]:void 0,nativeDef:(T?"'":"")+xe})}));T=!1}else{var we=m.definitions&&m.definitions[z]||m.usePrototypeDefinitions&&f.default.prototype.definitions[z];we&&!T?P.matches.splice(ne++,0,{fn:we.validator?typeof we.validator=="string"?new RegExp(we.validator,m.casing?"i":""):new function(){this.test=we.validator}:/./,static:we.static||!1,optionality:we.optional||!1,defOptionality:we.optional||!1,newBlockMarker:ae===void 0||we.optional?"master":ae.def!==(we.definitionSymbol||z),casing:we.casing,def:we.definitionSymbol||z,placeholder:we.placeholder,nativeDef:z,generated:we.generated}):(P.matches.splice(ne++,0,{fn:/[a-z]/i.test(m.staticDefinitionSymbol||z)?new RegExp("["+(m.staticDefinitionSymbol||z)+"]",m.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:ae===void 0?"master":ae.def!==z&&ae.static!==!0,casing:null,def:m.staticDefinitionSymbol||z,placeholder:m.staticDefinitionSymbol!==void 0?z:void 0,nativeDef:(T?"'":"")+z}),T=!1)}}function H(){if(L.length>0){if(U(v=L[L.length-1],g),v.isAlternator){x=L.pop();for(var P=0;P<x.matches.length;P++)x.matches[P].isGroup&&(x.matches[P].isGroup=!1);L.length>0?(v=L[L.length-1]).matches.push(x):R.matches.push(x)}}else U(R,g)}function V(P){var z=new p.default(!0);return z.openGroup=!1,z.matches=P,z}function K(){if((M=L.pop()).openGroup=!1,M!==void 0)if(L.length>0){if((v=L[L.length-1]).matches.push(M),v.isAlternator){x=L.pop();for(var P=0;P<x.matches.length;P++)x.matches[P].isGroup=!1,x.matches[P].alternatorGroup=!1;L.length>0?(v=L[L.length-1]).matches.push(x):R.matches.push(x)}}else R.matches.push(M);else H()}function F(P){var z=P.pop();return z.isQuantifier&&(z=V([P.pop(),z])),z}for(w&&(m.optionalmarker[0]=void 0,m.optionalmarker[1]=void 0);D=w?b.exec(A):S.exec(A);){if(g=D[0],w){switch(g.charAt(0)){case"?":g="{0,1}";break;case"+":case"*":g="{"+g+"}";break;case"|":if(L.length===0){var N=V(R.matches);N.openGroup=!0,L.push(N),R.matches=[],W=!0}}switch(g){case"\\d":g="[0-9]";break;case"\\p":g+=b.exec(A)[0],g+=b.exec(A)[0]}}if(T)H();else switch(g.charAt(0)){case"$":case"^":w||H();break;case m.escapeChar:T=!0,w&&H();break;case m.optionalmarker[1]:case m.groupmarker[1]:K();break;case m.optionalmarker[0]:L.push(new p.default(!1,!0));break;case m.groupmarker[0]:L.push(new p.default(!0));break;case m.quantifiermarker[0]:var Q=new p.default(!1,!1,!0),j=(g=g.replace(/[{}?]/g,"")).split("|"),J=j[0].split(","),Z=isNaN(J[0])?J[0]:parseInt(J[0]),le=J.length===1?Z:isNaN(J[1])?J[1]:parseInt(J[1]),ue=isNaN(j[1])?j[1]:parseInt(j[1]);Z!=="*"&&Z!=="+"||(Z=le==="*"?0:1),Q.quantifier={min:Z,max:le,jit:ue};var Y=L.length>0?L[L.length-1].matches:R.matches;(D=Y.pop()).isGroup||(D=V([D])),Y.push(D),Y.push(Q);break;case m.alternatormarker:if(L.length>0){var X=(v=L[L.length-1]).matches[v.matches.length-1];y=v.openGroup&&(X.matches===void 0||X.isGroup===!1&&X.isAlternator===!1)?L.pop():F(v.matches)}else y=F(R.matches);if(y.isAlternator)L.push(y);else if(y.alternatorGroup?(x=L.pop(),y.alternatorGroup=!1):x=new p.default(!1,!1,!1,!0),x.matches.push(y),L.push(x),y.openGroup){y.openGroup=!1;var $=new p.default(!0);$.alternatorGroup=!0,L.push($)}break;default:H()}}for(W&&K();L.length>0;)M=L.pop(),R.matches.push(M);return R.matches.length>0&&((function P(z){z&&z.matches&&z.matches.forEach((function(ne,ae){var ye=z.matches[ae+1];(ye===void 0||ye.matches===void 0||ye.isQuantifier===!1)&&ne&&ne.isGroup&&(ne.isGroup=!1,w||(U(ne,m.groupmarker[0],0),ne.openGroup!==!0&&U(ne,m.groupmarker[1]))),P(ne)}))})(R),I.push(R)),(m.numericInput||m.isRTL)&&(function P(z){for(var ne in z.matches=z.matches.reverse(),z.matches)if(Object.prototype.hasOwnProperty.call(z.matches,ne)){var ae=parseInt(ne);if(z.matches[ne].isQuantifier&&z.matches[ae+1]&&z.matches[ae+1].isGroup){var ye=z.matches[ne];z.matches.splice(ne,1),z.matches.splice(ae+1,0,ye)}z.matches[ne].matches!==void 0?z.matches[ne]=P(z.matches[ne]):z.matches[ne]=((we=z.matches[ne])===m.optionalmarker[0]?we=m.optionalmarker[1]:we===m.optionalmarker[1]?we=m.optionalmarker[0]:we===m.groupmarker[0]?we=m.groupmarker[1]:we===m.groupmarker[1]&&(we=m.groupmarker[0]),we)}var we;return z})(I[0]),I},l.generateMaskSet=function(A,w){var m;function D(v,x){var y=x.repeat,S=x.groupmarker,b=x.quantifiermarker,T=x.keepStatic;if(y>0||y==="*"||y==="+"){var R=y==="*"?0:y==="+"?1:y;if(R!=y)v=S[0]+v+S[1]+b[0]+R+","+y+b[1];else for(var L=v,I=1;I<R;I++)v+=L}if(T===!0){var W=v.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));W&&W.forEach((function(U,H){var V=(function(N,Q){return(function(j){if(Array.isArray(j))return j})(N)||(function(j,J){var Z=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(Z!=null){var le,ue,Y,X,$=[],P=!0,z=!1;try{if(Y=(Z=Z.call(j)).next,J!==0)for(;!(P=(le=Y.call(Z)).done)&&($.push(le.value),$.length!==J);P=!0);}catch(ne){z=!0,ue=ne}finally{try{if(!P&&Z.return!=null&&(X=Z.return(),Object(X)!==X))return}finally{if(z)throw ue}}return $}})(N,Q)||(function(j,J){if(j){if(typeof j=="string")return k(j,J);var Z=Object.prototype.toString.call(j).slice(8,-1);if(Z==="Object"&&j.constructor&&(Z=j.constructor.name),Z==="Map"||Z==="Set")return Array.from(j);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return k(j,J)}})(N,Q)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(U.split("["),2),K=V[0],F=V[1];F=F.replace("]",""),v=v.replace(new RegExp("".concat((0,d.default)(K),"\\[").concat((0,d.default)(F),"\\]")),K.charAt(0)===F.charAt(0)?"(".concat(K,"|").concat(K).concat(F,")"):"".concat(K,"[").concat(F,"]"))}))}return v}function g(v,x,y){var S,b,T=!1;return v!==null&&v!==""||((T=y.regex!==null)?v=(v=y.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(T=!0,v=".*")),v.length===1&&y.greedy===!1&&y.repeat!==0&&(y.placeholder=""),v=D(v,y),b=T?"regex_"+y.regex:y.numericInput?v.split("").reverse().join(""):v,y.keepStatic!==null&&(b="ks_"+y.keepStatic+b),h(y.placeholder)==="object"&&(b="ph_"+JSON.stringify(y.placeholder)+b),f.default.prototype.masksCache[b]===void 0||w===!0?(S={mask:v,maskToken:f.default.prototype.analyseMask(v,T,y),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:x,maskLength:void 0,jitOffset:{}},w!==!0&&(f.default.prototype.masksCache[b]=S,S=c.default.extend(!0,{},f.default.prototype.masksCache[b]))):S=c.default.extend(!0,{},f.default.prototype.masksCache[b]),S}if(typeof A.mask=="function"&&(A.mask=A.mask(A)),Array.isArray(A.mask)){if(A.mask.length>1){A.keepStatic===null&&(A.keepStatic=!0);var M=A.groupmarker[0];return(A.isRTL?A.mask.reverse():A.mask).forEach((function(v){M.length>1&&(M+=A.alternatormarker),v.mask!==void 0&&typeof v.mask!="function"?M+=v.mask:M+=v})),g(M+=A.groupmarker[1],A.mask,A)}A.mask=A.mask.pop()}return m=A.mask&&A.mask.mask!==void 0&&typeof A.mask.mask!="function"?g(A.mask.mask,A.mask,A):g(A.mask,A.mask,A),A.keepStatic===null&&(A.keepStatic=!1),m};var c=C(u(4963)),d=C(u(7184)),f=C(u(2394)),p=C(u(9695));function h(A){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},h(A)}function k(A,w){(w==null||w>A.length)&&(w=A.length);for(var m=0,D=new Array(w);m<w;m++)D[m]=A[m];return D}function C(A){return A&&A.__esModule?A:{default:A}}},157:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.mask=function(){var C=this,A=this.opts,w=this.el,m=this.dependencyLib;f.EventRuler.off(w);var D=(function(v,x){var y=v.getAttribute("type"),S=v.tagName.toLowerCase()==="input"&&x.supportsInputType.includes(y)||v.isContentEditable||v.tagName.toLowerCase()==="textarea";if(!S)if(v.tagName.toLowerCase()==="input"){var b=document.createElement("input");b.setAttribute("type",y),S=b.type==="text",b=null}else S="partial";return S!==!1?(function(T){var R,L;function I(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():h.getLastValidPosition.call(C)!==-1||x.nullable!==!0?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&x.clearMaskOnLostFocus?(C.isRTL?p.clearOptionalTail.call(C,h.getBuffer.call(C).slice()).reverse():p.clearOptionalTail.call(C,h.getBuffer.call(C).slice())).join(""):R.call(this):"":R.call(this)}function W(H){L.call(this,H),this.inputmask&&(0,p.applyInputValue)(this,H)}if(!T.inputmask.__valueGet){if(x.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){var U=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(T),"value"):void 0;U&&U.get&&U.set?(R=U.get,L=U.set,Object.defineProperty(T,"value",{get:I,set:W,configurable:!0})):T.tagName.toLowerCase()!=="input"&&(R=function(){return this.textContent},L=function(H){this.textContent=H},Object.defineProperty(T,"value",{get:I,set:W,configurable:!0}))}else document.__lookupGetter__&&T.__lookupGetter__("value")&&(R=T.__lookupGetter__("value"),L=T.__lookupSetter__("value"),T.__defineGetter__("value",I),T.__defineSetter__("value",W));T.inputmask.__valueGet=R,T.inputmask.__valueSet=L}T.inputmask._valueGet=function(H){return C.isRTL&&H!==!0?R.call(this.el).split("").reverse().join(""):R.call(this.el)},T.inputmask._valueSet=function(H,V){L.call(this.el,H==null?"":V!==!0&&C.isRTL?H.split("").reverse().join(""):H)},R===void 0&&(R=function(){return this.value},L=function(H){this.value=H},(function(H){if(m.valHooks&&(m.valHooks[H]===void 0||m.valHooks[H].inputmaskpatch!==!0)){var V=m.valHooks[H]&&m.valHooks[H].get?m.valHooks[H].get:function(F){return F.value},K=m.valHooks[H]&&m.valHooks[H].set?m.valHooks[H].set:function(F,N){return F.value=N,F};m.valHooks[H]={get:function(F){if(F.inputmask){if(F.inputmask.opts.autoUnmask)return F.inputmask.unmaskedvalue();var N=V(F);return h.getLastValidPosition.call(C,void 0,void 0,F.inputmask.maskset.validPositions)!==-1||x.nullable!==!0?N:""}return V(F)},set:function(F,N){var Q=K(F,N);return F.inputmask&&(0,p.applyInputValue)(F,N),Q},inputmaskpatch:!0}}})(T.type),(function(H){f.EventRuler.on(H,"mouseenter",(function(){var V=this,K=V.inputmask._valueGet(!0);K!=(V.inputmask.isRTL?h.getBuffer.call(V.inputmask).slice().reverse():h.getBuffer.call(V.inputmask)).join("")&&(0,p.applyInputValue)(V,K)}))})(T))}})(v):v.inputmask=void 0,S})(w,A);if(D!==!1){C.originalPlaceholder=w.placeholder,C.maxLength=w!==void 0?w.maxLength:void 0,C.maxLength===-1&&(C.maxLength=void 0),"inputMode"in w&&w.getAttribute("inputmode")===null&&(w.inputMode=A.inputmode,w.setAttribute("inputmode",A.inputmode)),D===!0&&(A.showMaskOnFocus=A.showMaskOnFocus&&["cc-number","cc-exp"].indexOf(w.autocomplete)===-1,c.iphone&&(A.insertModeVisual=!1,w.setAttribute("autocorrect","off")),f.EventRuler.on(w,"submit",d.EventHandlers.submitEvent),f.EventRuler.on(w,"reset",d.EventHandlers.resetEvent),f.EventRuler.on(w,"blur",d.EventHandlers.blurEvent),f.EventRuler.on(w,"focus",d.EventHandlers.focusEvent),f.EventRuler.on(w,"invalid",d.EventHandlers.invalidEvent),f.EventRuler.on(w,"click",d.EventHandlers.clickEvent),f.EventRuler.on(w,"mouseleave",d.EventHandlers.mouseleaveEvent),f.EventRuler.on(w,"mouseenter",d.EventHandlers.mouseenterEvent),f.EventRuler.on(w,"paste",d.EventHandlers.pasteEvent),f.EventRuler.on(w,"cut",d.EventHandlers.cutEvent),f.EventRuler.on(w,"complete",A.oncomplete),f.EventRuler.on(w,"incomplete",A.onincomplete),f.EventRuler.on(w,"cleared",A.oncleared),A.inputEventOnly!==!0&&f.EventRuler.on(w,"keydown",d.EventHandlers.keyEvent),(c.mobile||A.inputEventOnly)&&w.removeAttribute("maxLength"),f.EventRuler.on(w,"input",d.EventHandlers.inputFallBackEvent)),f.EventRuler.on(w,"setvalue",d.EventHandlers.setValueEvent),C.applyMaskHook===void 0||C.applyMaskHook(),h.getBufferTemplate.call(C).join(""),C.undoValue=C._valueGet(!0);var g=(w.inputmask.shadowRoot||w.ownerDocument).activeElement;if(w.inputmask._valueGet(!0)!==""||A.clearMaskOnLostFocus===!1||g===w){(0,p.applyInputValue)(w,w.inputmask._valueGet(!0),A);var M=h.getBuffer.call(C).slice();k.isComplete.call(C,M)===!1&&A.clearIncomplete&&h.resetMaskSet.call(C,!1),A.clearMaskOnLostFocus&&g!==w&&(h.getLastValidPosition.call(C)===-1?M=[]:p.clearOptionalTail.call(C,M)),(A.clearMaskOnLostFocus===!1||A.showMaskOnFocus&&g===w||w.inputmask._valueGet(!0)!=="")&&(0,p.writeBuffer)(w,M),g===w&&h.caret.call(C,w,h.seekNext.call(C,h.getLastValidPosition.call(C)))}}};var c=u(9845),d=u(6030),f=u(9716),p=u(7760),h=u(8711),k=u(7215)},9695:function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(u,c,d,f){this.matches=[],this.openGroup=u||!1,this.alternatorGroup=!1,this.isGroup=u||!1,this.isOptional=c||!1,this.isQuantifier=d||!1,this.isAlternator=f||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(o,l){if(this==null)throw new TypeError('"this" is null or not defined');var u=Object(this),c=u.length>>>0;if(c===0)return!1;for(var d=0|l,f=Math.max(d>=0?d:c-Math.abs(d),0);f<c;){if(u[f]===o)return!0;f++}return!1}})},9302:function(){var o=Function.bind.call(Function.call,Array.prototype.reduce),l=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),u=Function.bind.call(Function.call,Array.prototype.concat),c=Object.keys;Object.entries||(Object.entries=function(d){return o(c(d),(function(f,p){return u(f,typeof p=="string"&&l(d,p)?[[p,d[p]]]:[])}),[])})},7149:function(){function o(l){return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},o(l)}typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=o("test".__proto__)==="object"?function(l){return l.__proto__}:function(l){return l.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(o,l){return typeof l!="number"&&(l=0),!(l+o.length>this.length)&&this.indexOf(o,l)!==-1})},8711:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.caret=function(m,D,g,M,v){var x,y=this,S=this.opts;if(D===void 0)return"selectionStart"in m&&"selectionEnd"in m?(D=m.selectionStart,g=m.selectionEnd):d.default.getSelection?(x=d.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==m&&x.commonAncestorContainer!==m||(D=x.startOffset,g=x.endOffset):document.selection&&document.selection.createRange&&(g=(D=0-(x=document.selection.createRange()).duplicate().moveStart("character",-m.inputmask._valueGet().length))+x.text.length),{begin:M?D:w.call(y,D),end:M?g:w.call(y,g)};if(Array.isArray(D)&&(g=y.isRTL?D[0]:D[1],D=y.isRTL?D[1]:D[0]),D.begin!==void 0&&(g=y.isRTL?D.begin:D.end,D=y.isRTL?D.end:D.begin),typeof D=="number"){D=M?D:w.call(y,D),g=typeof(g=M?g:w.call(y,g))=="number"?g:D;var b=parseInt(((m.ownerDocument.defaultView||d.default).getComputedStyle?(m.ownerDocument.defaultView||d.default).getComputedStyle(m,null):m.currentStyle).fontSize)*g;if(m.scrollLeft=b>m.scrollWidth?b:0,m.inputmask.caretPos={begin:D,end:g},S.insertModeVisual&&S.insertMode===!1&&D===g&&(v||g++),m===(m.inputmask.shadowRoot||m.ownerDocument).activeElement){if("setSelectionRange"in m)m.setSelectionRange(D,g);else if(d.default.getSelection){if(x=document.createRange(),m.firstChild===void 0||m.firstChild===null){var T=document.createTextNode("");m.appendChild(T)}x.setStart(m.firstChild,D<m.inputmask._valueGet().length?D:m.inputmask._valueGet().length),x.setEnd(m.firstChild,g<m.inputmask._valueGet().length?g:m.inputmask._valueGet().length),x.collapse(!0);var R=d.default.getSelection();R.removeAllRanges(),R.addRange(x)}else m.createTextRange&&((x=m.createTextRange()).collapse(!0),x.moveEnd("character",g),x.moveStart("character",D),x.select());m.inputmask.caretHook===void 0||m.inputmask.caretHook.call(y,{begin:D,end:g})}}},l.determineLastRequiredPosition=function(m){var D,g,M=this,v=M.maskset,x=M.dependencyLib,y=k.call(M),S={},b=v.validPositions[y],T=p.getMaskTemplate.call(M,!0,k.call(M),!0,!0),R=T.length,L=b!==void 0?b.locator.slice():void 0;for(D=y+1;D<T.length;D++)L=(g=p.getTestTemplate.call(M,D,L,D-1)).locator.slice(),S[D]=x.extend(!0,{},g);var I=b&&b.alternation!==void 0?b.locator[b.alternation]:void 0;for(D=R-1;D>y&&((g=S[D]).match.optionality||g.match.optionalQuantifier&&g.match.newBlockMarker||I&&(I!==S[D].locator[b.alternation]&&g.match.static!==!0||g.match.static===!0&&g.locator[b.alternation]&&f.checkAlternationMatch.call(M,g.locator[b.alternation].toString().split(","),I.toString().split(","))&&p.getTests.call(M,D)[0].def!==""))&&T[D]===p.getPlaceholder.call(M,D,g.match);D--)R--;return m?{l:R,def:S[R]?S[R].match:void 0}:R},l.determineNewCaretPosition=function(m,D,g){var M,v,x,y=this,S=y.maskset,b=y.opts;if(D&&(y.isRTL?m.end=m.begin:m.begin=m.end),m.begin===m.end){switch(g=g||b.positionCaretOnClick){case"none":break;case"select":m={begin:0,end:h.call(y).length};break;case"ignore":m.end=m.begin=A.call(y,k.call(y));break;case"radixFocus":if(y.clicked>1&&S.validPositions.length===0)break;if((function(U){if(b.radixPoint!==""&&b.digits!==0){var H=S.validPositions;if(H[U]===void 0||H[U].input===void 0){if(U<A.call(y,-1))return!0;var V=h.call(y).indexOf(b.radixPoint);if(V!==-1){for(var K=0,F=H.length;K<F;K++)if(H[K]&&V<K&&H[K].input!==p.getPlaceholder.call(y,K))return!1;return!0}}}return!1})(m.begin)){var T=h.call(y).join("").indexOf(b.radixPoint);m.end=m.begin=b.numericInput?A.call(y,T):T;break}default:if(M=m.begin,v=k.call(y,M,!0),M<=(x=A.call(y,v!==-1||C.call(y,0)?v:-1)))m.end=m.begin=C.call(y,M,!1,!0)?M:A.call(y,M);else{var R=S.validPositions[v],L=p.getTestTemplate.call(y,x,R?R.match.locator:void 0,R),I=p.getPlaceholder.call(y,x,L.match);if(I!==""&&h.call(y)[x]!==I&&L.match.optionalQuantifier!==!0&&L.match.newBlockMarker!==!0||!C.call(y,x,b.keepStatic,!0)&&L.match.def===I){var W=A.call(y,x);(M>=W||M===x)&&(x=W)}m.end=m.begin=x}}return m}},l.getBuffer=h,l.getBufferTemplate=function(){var m=this.maskset;return m._buffer===void 0&&(m._buffer=p.getMaskTemplate.call(this,!1,1),m.buffer===void 0&&(m.buffer=m._buffer.slice())),m._buffer},l.getLastValidPosition=k,l.isMask=C,l.resetMaskSet=function(m){var D=this.maskset;D.buffer=void 0,m!==!0&&(D.validPositions=[],D.p=0),m===!1&&(D.tests={},D.jitOffset={})},l.seekNext=A,l.seekPrevious=function(m,D){var g=this,M=m-1;if(m<=0)return 0;for(;M>0&&(D===!0&&(p.getTest.call(g,M).match.newBlockMarker!==!0||!C.call(g,M,void 0,!0))||D!==!0&&!C.call(g,M,void 0,!0));)M--;return M},l.translatePosition=w;var c,d=(c=u(9380))&&c.__esModule?c:{default:c},f=u(7215),p=u(4713);function h(m){var D=this,g=D.maskset;return g.buffer!==void 0&&m!==!0||(g.buffer=p.getMaskTemplate.call(D,!0,k.call(D),!0),g._buffer===void 0&&(g._buffer=g.buffer.slice())),g.buffer}function k(m,D,g){var M=this.maskset,v=-1,x=-1,y=g||M.validPositions;m===void 0&&(m=-1);for(var S=0,b=y.length;S<b;S++)y[S]&&(D||y[S].generatedInput!==!0)&&(S<=m&&(v=S),S>=m&&(x=S));return v===-1||v===m?x:x===-1||m-v<x-m?v:x}function C(m,D,g){var M=this,v=this.maskset,x=p.getTestTemplate.call(M,m).match;if(x.def===""&&(x=p.getTest.call(M,m).match),x.static!==!0)return x.fn;if(g===!0&&v.validPositions[m]!==void 0&&v.validPositions[m].generatedInput!==!0)return!0;if(D!==!0&&m>-1){if(g){var y=p.getTests.call(M,m);return y.length>1+(y[y.length-1].match.def===""?1:0)}var S=p.determineTestTemplate.call(M,m,p.getTests.call(M,m)),b=p.getPlaceholder.call(M,m,S.match);return S.match.def!==b}return!1}function A(m,D,g){var M=this;g===void 0&&(g=!0);for(var v=m+1;p.getTest.call(M,v).match.def!==""&&(D===!0&&(p.getTest.call(M,v).match.newBlockMarker!==!0||!C.call(M,v,void 0,!0))||D!==!0&&!C.call(M,v,void 0,g));)v++;return v}function w(m){var D=this.opts,g=this.el;return!this.isRTL||typeof m!="number"||D.greedy&&D.placeholder===""||!g||(m=this._valueGet().length-m)<0&&(m=0),m}},4713:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.determineTestTemplate=w,l.getDecisionTaker=k,l.getMaskTemplate=function(M,v,x,y,S){var b=this,T=this.opts,R=this.maskset,L=T.greedy;S&&T.greedy&&(T.greedy=!1,b.maskset.tests={}),v=v||0;var I,W,U,H,V=[],K=0;do{if(M===!0&&R.validPositions[K])W=(U=S&&R.validPositions[K].match.optionality&&R.validPositions[K+1]===void 0&&(R.validPositions[K].generatedInput===!0||R.validPositions[K].input==T.skipOptionalPartCharacter&&K>0)?w.call(b,K,g.call(b,K,I,K-1)):R.validPositions[K]).match,I=U.locator.slice(),V.push(x===!0?U.input:x===!1?W.nativeDef:C.call(b,K,W));else{W=(U=A.call(b,K,I,K-1)).match,I=U.locator.slice();var F=y!==!0&&(T.jitMasking!==!1?T.jitMasking:W.jit);(H=(H||R.validPositions[K-1])&&W.static&&W.def!==T.groupSeparator&&W.fn===null)||F===!1||F===void 0||typeof F=="number"&&isFinite(F)&&F>K?V.push(x===!1?W.nativeDef:C.call(b,V.length,W)):H=!1}K++}while(W.static!==!0||W.def!==""||v>K);return V[V.length-1]===""&&V.pop(),x===!1&&R.maskLength!==void 0||(R.maskLength=K-1),T.greedy=L,V},l.getPlaceholder=C,l.getTest=m,l.getTestTemplate=A,l.getTests=g,l.isSubsetOf=D;var c,d=(c=u(2394))&&c.__esModule?c:{default:c},f=u(8711);function p(M){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},p(M)}function h(M,v){var x=(M.alternation!=null?M.mloc[k(M)]:M.locator).join("");if(x!=="")for(x=x.split(":")[0];x.length<v;)x+="0";return x}function k(M){var v=M.locator[M.alternation];return typeof v=="string"&&v.length>0&&(v=v.split(",")[0]),v!==void 0?v.toString():""}function C(M,v,x){var y=this,S=this.opts,b=this.maskset;if((v=v||m.call(y,M).match).placeholder!==void 0||x===!0){if(v.placeholder!==""&&v.static===!0&&v.generated!==!0){var T=f.getLastValidPosition.call(y,M),R=f.seekNext.call(y,T);return(x?M<=R:M<R)?S.staticDefinitionSymbol&&v.static?v.nativeDef:v.def:typeof v.placeholder=="function"?v.placeholder(S):v.placeholder}return typeof v.placeholder=="function"?v.placeholder(S):v.placeholder}if(v.static===!0){if(M>-1&&b.validPositions[M]===void 0){var L,I=g.call(y,M),W=[];if(typeof S.placeholder=="string"&&I.length>1+(I[I.length-1].match.def===""?1:0)){for(var U=0;U<I.length;U++)if(I[U].match.def!==""&&I[U].match.optionality!==!0&&I[U].match.optionalQuantifier!==!0&&(I[U].match.static===!0||L===void 0||I[U].match.fn.test(L.match.def,b,M,!0,S)!==!1)&&(W.push(I[U]),I[U].match.static===!0&&(L=I[U]),W.length>1&&/[0-9a-bA-Z]/.test(W[0].match.def)))return S.placeholder.charAt(M%S.placeholder.length)}}return v.def}return p(S.placeholder)==="object"?v.def:S.placeholder.charAt(M%S.placeholder.length)}function A(M,v,x){return this.maskset.validPositions[M]||w.call(this,M,g.call(this,M,v&&v.slice(),x))}function w(M,v){var x=this.opts,y=0,S=(function(H,V){var K=0,F=!1;return V.forEach((function(N){N.match.optionality&&(K!==0&&K!==N.match.optionality&&(F=!0),(K===0||K>N.match.optionality)&&(K=N.match.optionality))})),K&&(H==0||V.length==1?K=0:F||(K=0)),K})(M,v);M=M>0?M-1:0;var b,T,R,L=h(m.call(this,M));x.greedy&&v.length>1&&v[v.length-1].match.def===""&&(y=1);for(var I=0;I<v.length-y;I++){var W=v[I];b=h(W,L.length);var U=Math.abs(b-L);(W.unMatchedAlternationStopped!==!0||v.filter((function(H){return H.unMatchedAlternationStopped!==!0})).length<=1)&&(T===void 0||b!==""&&U<T||R&&!x.greedy&&R.match.optionality&&R.match.optionality-S>0&&R.match.newBlockMarker==="master"&&(!W.match.optionality||W.match.optionality-S<1||!W.match.newBlockMarker)||R&&!x.greedy&&R.match.optionalQuantifier&&!W.match.optionalQuantifier)&&(T=U,R=W)}return R}function m(M,v){var x=this.maskset;return x.validPositions[M]?x.validPositions[M]:(v||g.call(this,M))[0]}function D(M,v,x){function y(S){for(var b,T=[],R=-1,L=0,I=S.length;L<I;L++)if(S.charAt(L)==="-")for(b=S.charCodeAt(L+1);++R<b;)T.push(String.fromCharCode(R));else R=S.charCodeAt(L),T.push(S.charAt(L));return T.join("")}return M.match.def===v.match.nativeDef||!(!(x.regex||M.match.fn instanceof RegExp&&v.match.fn instanceof RegExp)||M.match.static===!0||v.match.static===!0)&&(v.match.fn.source==="."||y(v.match.fn.source.replace(/[[\]/]/g,"")).indexOf(y(M.match.fn.source.replace(/[[\]/]/g,"")))!==-1)}function g(M,v,x){var y,S,b=this,T=this.dependencyLib,R=this.maskset,L=this.opts,I=this.el,W=R.maskToken,U=v?x:0,H=v?v.slice():[0],V=[],K=!1,F=v?v.join(""):"",N=!1;function Q(ue,Y,X,$){function P(ae,ye,we){function xe(q,ie){var me=ie.matches.indexOf(q)===0;return me||ie.matches.every((function(he,ke){return he.isQuantifier===!0?me=xe(q,ie.matches[ke-1]):Object.prototype.hasOwnProperty.call(he,"matches")&&(me=xe(q,he)),!me})),me}function Fe(q,ie,me){var he,ke;if((R.tests[q]||R.validPositions[q])&&(R.validPositions[q]?[R.validPositions[q]]:R.tests[q]).every((function(Se,Le){if(Se.mloc[ie])return he=Se,!1;var et=me!==void 0?me:Se.alternation,je=Se.locator[et]!==void 0?Se.locator[et].toString().indexOf(ie):-1;return(ke===void 0||je<ke)&&je!==-1&&(he=Se,ke=je),!0})),he){var Me=he.locator[he.alternation],oe=he.mloc[ie]||he.mloc[Me]||he.locator;return oe[oe.length-1].toString().indexOf(":")!==-1&&oe.pop(),oe.slice((me!==void 0?me:he.alternation)+1)}return me!==void 0?Fe(q,ie):void 0}function _e(q,ie){return q.match.static===!0&&ie.match.static!==!0&&ie.match.fn.test(q.match.def,R,M,!1,L,!1)}function Ne(q,ie){var me=q.alternation,he=ie===void 0||me<=ie.alternation&&q.locator[me].toString().indexOf(ie.locator[me])===-1;if(!he&&me>ie.alternation){for(var ke=0;ke<me;ke++)if(q.locator[ke]!==ie.locator[ke]){me=ke,he=!0;break}}return!!he&&(function(Me){q.mloc=q.mloc||{};var oe=q.locator[Me];if(oe!==void 0){if(typeof oe=="string"&&(oe=oe.split(",")[0]),q.mloc[oe]===void 0&&(q.mloc[oe]=q.locator.slice(),q.mloc[oe].push(":".concat(q.alternation))),ie!==void 0){for(var Se in ie.mloc)typeof Se=="string"&&(Se=parseInt(Se.split(",")[0])),q.mloc[Se+0]=ie.mloc[Se];q.locator[Me]=Object.keys(q.mloc).join(",")}return q.alternation>Me&&(q.alternation=Me),!0}return q.alternation=void 0,!1})(me)}function de(q,ie){if(q.locator.length!==ie.locator.length)return!1;for(var me=q.alternation+1;me<q.locator.length;me++)if(q.locator[me]!==ie.locator[me])return!1;return!0}if(U>M+L._maxTestPos)throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(R.mask));if(U===M&&ae.matches===void 0){if(V.push({match:ae,locator:ye.reverse(),cd:F,mloc:{}}),!ae.optionality||we!==void 0||!(L.definitions&&L.definitions[ae.nativeDef]&&L.definitions[ae.nativeDef].optional||d.default.prototype.definitions[ae.nativeDef]&&d.default.prototype.definitions[ae.nativeDef].optional))return!0;K=!0,U=M}else if(ae.matches!==void 0){if(ae.isGroup&&we!==ae)return(function(){if(ae=P(ue.matches[ue.matches.indexOf(ae)+1],ye,we))return!0})();if(ae.isOptional)return(function(){var q=ae,ie=V.length;if(ae=Q(ae,Y,ye,we),V.length>0){if(V.forEach((function(me,he){he>=ie&&(me.match.optionality=me.match.optionality?me.match.optionality+1:1)})),y=V[V.length-1].match,we!==void 0||!xe(y,q))return ae;K=!0,U=M}})();if(ae.isAlternator)return(function(){function q(B){for(var E,O=B.matches[0].matches?B.matches[0].matches.length:1,_=0;_<B.matches.length&&O===(E=B.matches[_].matches?B.matches[_].matches.length:1);_++);return O!==E}b.hasAlternator=!0;var ie,me=ae,he=[],ke=V.slice(),Me=ye.length,oe=Y.length>0?Y.shift():-1;if(oe===-1||typeof oe=="string"){var Se,Le=U,et=Y.slice(),je=[];if(typeof oe=="string")je=oe.split(",");else for(Se=0;Se<me.matches.length;Se++)je.push(Se.toString());if(R.excludes[M]!==void 0){for(var Rt=je.slice(),At=0,Ge=R.excludes[M].length;At<Ge;At++){var te=R.excludes[M][At].toString().split(":");ye.length==te[1]&&je.splice(je.indexOf(te[0]),1)}je.length===0&&(delete R.excludes[M],je=Rt)}(L.keepStatic===!0||isFinite(parseInt(L.keepStatic))&&Le>=L.keepStatic)&&(je=je.slice(0,1));for(var se=0;se<je.length;se++){Se=parseInt(je[se]),V=[],Y=typeof oe=="string"&&Fe(U,Se,Me)||et.slice();var Pe=me.matches[Se];if(Pe&&P(Pe,[Se].concat(ye),we))ae=!0;else if(se===0&&(N=q(me)),Pe&&Pe.matches&&Pe.matches.length>me.matches[0].matches.length)break;ie=V.slice(),U=Le,V=[];for(var ze=0;ze<ie.length;ze++){var Oe=ie[ze],Re=!1;Oe.alternation=Oe.alternation||Me,Ne(Oe);for(var ct=0;ct<he.length;ct++){var ge=he[ct];if(typeof oe!="string"||Oe.alternation!==void 0&&je.includes(Oe.locator[Oe.alternation].toString())){if(Oe.match.nativeDef===ge.match.nativeDef){Re=!0,Ne(ge,Oe);break}if(D(Oe,ge,L)){Ne(Oe,ge)&&(Re=!0,he.splice(he.indexOf(ge),0,Oe));break}if(D(ge,Oe,L)){Ne(ge,Oe);break}if(_e(Oe,ge)){de(Oe,ge)||I.inputmask.userOptions.keepStatic!==void 0?Ne(Oe,ge)&&(Re=!0,he.splice(he.indexOf(ge),0,Oe)):L.keepStatic=!0;break}if(_e(ge,Oe)){Ne(ge,Oe);break}}}Re||he.push(Oe)}}V=ke.concat(he),U=M,K=V.length>0&&N,ae=he.length>0&&!N,N&&K&&!ae&&V.forEach((function(B,E){B.unMatchedAlternationStopped=!0})),Y=et.slice()}else ae=P(me.matches[oe]||ue.matches[oe],[oe].concat(ye),we);if(ae)return!0})();if(ae.isQuantifier&&we!==ue.matches[ue.matches.indexOf(ae)-1])return(function(){for(var q=ae,ie=!1,me=Y.length>0?Y.shift():0;me<(isNaN(q.quantifier.max)?me+1:q.quantifier.max)&&U<=M;me++){var he=ue.matches[ue.matches.indexOf(q)-1];if(ae=P(he,[me].concat(ye),he)){if(V.forEach((function(ke,Me){(y=j(he,ke.match)?ke.match:V[V.length-1].match).optionalQuantifier=me>=q.quantifier.min,y.jit=(me+1)*(he.matches.indexOf(y)+1)>q.quantifier.jit,y.optionalQuantifier&&xe(y,he)&&(K=!0,U=M,L.greedy&&R.validPositions[M-1]==null&&me>q.quantifier.min&&["*","+"].indexOf(q.quantifier.max)!=-1&&(V.pop(),F=void 0),ie=!0,ae=!1),!ie&&y.jit&&(R.jitOffset[M]=he.matches.length-he.matches.indexOf(y))})),ie)break;return!0}}})();if(ae=Q(ae,Y,ye,we))return!0}else U++}for(var z=Y.length>0?Y.shift():0;z<ue.matches.length;z++)if(ue.matches[z].isQuantifier!==!0){var ne=P(ue.matches[z],[z].concat(X),$);if(ne&&U===M)return ne;if(U>M)break}}function j(ue,Y){var X=ue.matches.indexOf(Y)!=-1;return X||ue.matches.forEach((function($,P){$.matches===void 0||X||(X=j($,Y))})),X}if(M>-1){if(v===void 0){for(var J,Z=M-1;(J=R.validPositions[Z]||R.tests[Z])===void 0&&Z>-1;)Z--;J!==void 0&&Z>-1&&(H=(function(ue,Y){var X,$=[];return Array.isArray(Y)||(Y=[Y]),Y.length>0&&(Y[0].alternation===void 0||L.keepStatic===!0?($=w.call(b,ue,Y.slice()).locator.slice()).length===0&&($=Y[0].locator.slice()):Y.forEach((function(P){P.def!==""&&($.length===0?(X=P.alternation,$=P.locator.slice()):P.locator[X]&&$[X].toString().indexOf(P.locator[X])===-1&&($[X]+=","+P.locator[X]))}))),$})(Z,J),F=H.join(""),U=Z)}if(R.tests[M]&&R.tests[M][0].cd===F)return R.tests[M];for(var le=H.shift();le<W.length&&!(Q(W[le],H,[le])&&U===M||U>M);le++);}return(V.length===0||K)&&V.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:N&&V.filter((function(ue){return ue.unMatchedAlternationStopped!==!0})).length===0?[0]:[],mloc:{},cd:F}),v!==void 0&&R.tests[M]?S=T.extend(!0,[],V):(R.tests[M]=T.extend(!0,[],V),S=R.tests[M]),V.forEach((function(ue){ue.match.optionality=ue.match.defOptionality||!1})),S}},7215:function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.alternate=h,l.checkAlternationMatch=function(v,x,y){for(var S,b=this.opts.greedy?x:x.slice(0,1),T=!1,R=y!==void 0?y.split(","):[],L=0;L<R.length;L++)(S=v.indexOf(R[L]))!==-1&&v.splice(S,1);for(var I=0;I<v.length;I++)if(b.includes(v[I])){T=!0;break}return T},l.handleRemove=function(v,x,y,S,b){var T=this,R=this.maskset,L=this.opts;if((L.numericInput||T.isRTL)&&(x===d.keys.Backspace?x=d.keys.Delete:x===d.keys.Delete&&(x=d.keys.Backspace),T.isRTL)){var I=y.end;y.end=y.begin,y.begin=I}var W,U=f.getLastValidPosition.call(T,void 0,!0);y.end>=f.getBuffer.call(T).length&&U>=y.end&&(y.end=U+1),x===d.keys.Backspace?y.end-y.begin<1&&(y.begin=f.seekPrevious.call(T,y.begin)):x===d.keys.Delete&&y.begin===y.end&&(y.end=f.isMask.call(T,y.end,!0,!0)?y.end+1:f.seekNext.call(T,y.end)+1),(W=M.call(T,y))!==!1&&((S!==!0&&L.keepStatic!==!1||L.regex!==null&&p.getTest.call(T,y.begin).match.def.indexOf("|")!==-1)&&h.call(T,!0),S!==!0&&(R.p=x===d.keys.Delete?y.begin+W:y.begin,R.p=f.determineNewCaretPosition.call(T,{begin:R.p,end:R.p},!1,L.insertMode===!1&&x===d.keys.Backspace?"none":void 0).begin))},l.isComplete=C,l.isSelection=A,l.isValid=w,l.refreshFromBuffer=D,l.revalidateMask=M;var c=u(6030),d=u(2839),f=u(8711),p=u(4713);function h(v,x,y,S,b,T){var R=this,L=this.dependencyLib,I=this.opts,W=R.maskset;if(!R.hasAlternator)return!1;var U,H,V,K,F,N,Q,j,J,Z,le,ue=L.extend(!0,[],W.validPositions),Y=L.extend(!0,{},W.tests),X=!1,$=!1,P=b!==void 0?b:f.getLastValidPosition.call(R);if(T&&(Z=T.begin,le=T.end,T.begin>T.end&&(Z=T.end,le=T.begin)),P===-1&&b===void 0)U=0,H=(K=p.getTest.call(R,U)).alternation;else for(;P>=0;P--)if((V=W.validPositions[P])&&V.alternation!==void 0){if(P<=(v||0)&&K&&K.locator[V.alternation]!==V.locator[V.alternation])break;U=P,H=W.validPositions[U].alternation,K=V}if(H!==void 0){Q=parseInt(U),W.excludes[Q]=W.excludes[Q]||[],v!==!0&&W.excludes[Q].push((0,p.getDecisionTaker)(K)+":"+K.alternation);var z=[],ne=-1;for(F=Q;Q<f.getLastValidPosition.call(R,void 0,!0)+1;F++)ne===-1&&v<=F&&x!==void 0&&(z.push(x),ne=z.length-1),(N=W.validPositions[Q])&&N.generatedInput!==!0&&(T===void 0||F<Z||F>=le)&&z.push(N.input),W.validPositions.splice(Q,1);for(ne===-1&&x!==void 0&&(z.push(x),ne=z.length-1);W.excludes[Q]!==void 0&&W.excludes[Q].length<10;){for(W.tests={},f.resetMaskSet.call(R,!0),X=!0,F=0;F<z.length&&(j=X.caret||I.insertMode==0&&j!=null?f.seekNext.call(R,j):f.getLastValidPosition.call(R,void 0,!0)+1,J=z[F],X=w.call(R,j,J,!1,S,!0));F++)F===ne&&($=X),v==1&&X&&($={caretPos:F});if(X)break;if(f.resetMaskSet.call(R),K=p.getTest.call(R,Q),W.validPositions=L.extend(!0,[],ue),W.tests=L.extend(!0,{},Y),!W.excludes[Q]){$=h.call(R,v,x,y,S,Q-1,T);break}if(K.alternation!=null){var ae=(0,p.getDecisionTaker)(K);if(W.excludes[Q].indexOf(ae+":"+K.alternation)!==-1){$=h.call(R,v,x,y,S,Q-1,T);break}for(W.excludes[Q].push(ae+":"+K.alternation),F=Q;F<f.getLastValidPosition.call(R,void 0,!0)+1;F++)W.validPositions.splice(Q)}else delete W.excludes[Q]}}return $&&I.keepStatic===!1||delete W.excludes[Q],$}function k(v,x,y){var S=this.opts,b=this.maskset;switch(S.casing||x.casing){case"upper":v=v.toUpperCase();break;case"lower":v=v.toLowerCase();break;case"title":var T=b.validPositions[y-1];v=y===0||T&&T.input===String.fromCharCode(d.keyCode.Space)?v.toUpperCase():v.toLowerCase();break;default:if(typeof S.casing=="function"){var R=Array.prototype.slice.call(arguments);R.push(b.validPositions),v=S.casing.apply(this,R)}}return v}function C(v){var x=this,y=this.opts,S=this.maskset;if(typeof y.isComplete=="function")return y.isComplete(v,y);if(y.repeat!=="*"){var b=!1,T=f.determineLastRequiredPosition.call(x,!0),R=T.l;if(T.def===void 0||T.def.newBlockMarker||T.def.optionality||T.def.optionalQuantifier){b=!0;for(var L=0;L<=R;L++){var I=p.getTestTemplate.call(x,L).match;if(I.static!==!0&&S.validPositions[L]===void 0&&(I.optionality===!1||I.optionality===void 0||I.optionality&&I.newBlockMarker==0)&&(I.optionalQuantifier===!1||I.optionalQuantifier===void 0)||I.static===!0&&I.def!=""&&v[L]!==p.getPlaceholder.call(x,L,I)){b=!1;break}}}return b}}function A(v){var x=this.opts.insertMode?0:1;return this.isRTL?v.begin-v.end>x:v.end-v.begin>x}function w(v,x,y,S,b,T,R){var L=this,I=this.dependencyLib,W=this.opts,U=L.maskset;y=y===!0;var H=v;function V(X){if(X!==void 0){if(X.remove!==void 0&&(Array.isArray(X.remove)||(X.remove=[X.remove]),X.remove.sort((function(P,z){return L.isRTL?P.pos-z.pos:z.pos-P.pos})).forEach((function(P){M.call(L,{begin:P,end:P+1})})),X.remove=void 0),X.insert!==void 0&&(Array.isArray(X.insert)||(X.insert=[X.insert]),X.insert.sort((function(P,z){return L.isRTL?z.pos-P.pos:P.pos-z.pos})).forEach((function(P){P.c!==""&&w.call(L,P.pos,P.c,P.strict===void 0||P.strict,P.fromIsValid!==void 0?P.fromIsValid:S)})),X.insert=void 0),X.refreshFromBuffer&&X.buffer){var $=X.refreshFromBuffer;D.call(L,$===!0?$:$.start,$.end,X.buffer),X.refreshFromBuffer=void 0}X.rewritePosition!==void 0&&(H=X.rewritePosition,X=!0)}return X}function K(X,$,P){var z=!1;return p.getTests.call(L,X).every((function(ne,ae){var ye=ne.match;if(f.getBuffer.call(L,!0),(z=(!ye.jit||U.validPositions[f.seekPrevious.call(L,X)]!==void 0)&&(ye.fn!=null?ye.fn.test($,U,X,P,W,A.call(L,v)):($===ye.def||$===W.skipOptionalPartCharacter)&&ye.def!==""&&{c:p.getPlaceholder.call(L,X,ye,!0)||ye.def,pos:X}))!==!1){var we=z.c!==void 0?z.c:$,xe=X;return we=we===W.skipOptionalPartCharacter&&ye.static===!0?p.getPlaceholder.call(L,X,ye,!0)||ye.def:we,(z=V(z))!==!0&&z.pos!==void 0&&z.pos!==X&&(xe=z.pos),z!==!0&&z.pos===void 0&&z.c===void 0||M.call(L,v,I.extend({},ne,{input:k.call(L,we,ye,xe)}),S,xe)===!1&&(z=!1),!1}return!0})),z}v.begin!==void 0&&(H=L.isRTL?v.end:v.begin);var F=!0,N=I.extend(!0,[],U.validPositions);if(W.keepStatic===!1&&U.excludes[H]!==void 0&&b!==!0&&S!==!0)for(var Q=H;Q<(L.isRTL?v.begin:v.end);Q++)U.excludes[Q]!==void 0&&(U.excludes[Q]=void 0,delete U.tests[Q]);if(typeof W.preValidation=="function"&&S!==!0&&T!==!0&&(F=V(F=W.preValidation.call(L,f.getBuffer.call(L),H,x,A.call(L,v),W,U,v,y||b))),F===!0){if(F=K(H,x,y),(!y||S===!0)&&F===!1&&T!==!0){var j=U.validPositions[H];if(!j||j.match.static!==!0||j.match.def!==x&&x!==W.skipOptionalPartCharacter){if(W.insertMode||U.validPositions[f.seekNext.call(L,H)]===void 0||v.end>H){var J=!1;if(U.jitOffset[H]&&U.validPositions[f.seekNext.call(L,H)]===void 0&&(F=w.call(L,H+U.jitOffset[H],x,!0,!0))!==!1&&(b!==!0&&(F.caret=H),J=!0),v.end>H&&(U.validPositions[H]=void 0),!J&&!f.isMask.call(L,H,W.keepStatic&&H===0)){for(var Z=H+1,le=f.seekNext.call(L,H,!1,H!==0);Z<=le;Z++)if((F=K(Z,x,y))!==!1){F=g.call(L,H,F.pos!==void 0?F.pos:Z)||F,H=Z;break}}}}else F={caret:f.seekNext.call(L,H)}}L.hasAlternator&&b!==!0&&!y&&(b=!0,F===!1&&W.keepStatic&&(C.call(L,f.getBuffer.call(L))||H===0)?F=h.call(L,H,x,y,S,void 0,v):(A.call(L,v)&&U.tests[H]&&U.tests[H].length>1&&W.keepStatic||F==1&&W.numericInput!==!0&&U.tests[H]&&U.tests[H].length>1&&f.getLastValidPosition.call(L,void 0,!0)>H)&&(F=h.call(L,!0))),F===!0&&(F={pos:H})}if(typeof W.postValidation=="function"&&S!==!0&&T!==!0){var ue=W.postValidation.call(L,f.getBuffer.call(L,!0),v.begin!==void 0?L.isRTL?v.end:v.begin:v,x,F,W,U,y,R);ue!==void 0&&(F=ue===!0?F:ue)}F&&F.pos===void 0&&(F.pos=H),F===!1||T===!0?(f.resetMaskSet.call(L,!0),U.validPositions=I.extend(!0,[],N)):g.call(L,void 0,H,!0);var Y=V(F);return L.maxLength!==void 0&&f.getBuffer.call(L).length>L.maxLength&&!S&&(f.resetMaskSet.call(L,!0),U.validPositions=I.extend(!0,[],N),Y=!1),Y}function m(v,x,y){for(var S=this.maskset,b=!1,T=p.getTests.call(this,v),R=0;R<T.length;R++){if(T[R].match&&(T[R].match.nativeDef===x.match[y.shiftPositions?"def":"nativeDef"]&&(!y.shiftPositions||!x.match.static)||T[R].match.nativeDef===x.match.nativeDef||y.regex&&!T[R].match.static&&T[R].match.fn.test(x.input,S,v,!1,y))){b=!0;break}if(T[R].match&&T[R].match.def===x.match.nativeDef){b=void 0;break}}return b===!1&&S.jitOffset[v]!==void 0&&(b=m.call(this,v+S.jitOffset[v],x,y)),b}function D(v,x,y){var S,b,T=this,R=this.maskset,L=this.opts,I=this.dependencyLib,W=L.skipOptionalPartCharacter,U=T.isRTL?y.slice().reverse():y;if(L.skipOptionalPartCharacter="",v===!0)f.resetMaskSet.call(T,!1),v=0,x=y.length,b=f.determineNewCaretPosition.call(T,{begin:0,end:0},!1).begin;else{for(S=v;S<x;S++)R.validPositions.splice(v,0);b=v}var H=new I.Event("keypress");for(S=v;S<x;S++){H.key=U[S].toString(),T.ignorable=!1;var V=c.EventHandlers.keypressEvent.call(T,H,!0,!1,!1,b);V!==!1&&V!==void 0&&(b=V.forwardPosition)}L.skipOptionalPartCharacter=W}function g(v,x,y){var S=this,b=this.maskset,T=this.dependencyLib;if(v===void 0)for(v=x-1;v>0&&!b.validPositions[v];v--);for(var R=v;R<x;R++)if(b.validPositions[R]===void 0&&!f.isMask.call(S,R,!1)&&(R==0?p.getTest.call(S,R):b.validPositions[R-1])){var L=p.getTests.call(S,R).slice();L[L.length-1].match.def===""&&L.pop();var I,W=p.determineTestTemplate.call(S,R,L);if(W&&(W.match.jit!==!0||W.match.newBlockMarker==="master"&&(I=b.validPositions[R+1])&&I.match.optionalQuantifier===!0)&&((W=T.extend({},W,{input:p.getPlaceholder.call(S,R,W.match,!0)||W.match.def})).generatedInput=!0,M.call(S,R,W,!0),y!==!0)){var U=b.validPositions[x].input;return b.validPositions[x]=void 0,w.call(S,x,U,!0,!0)}}}function M(v,x,y,S){var b=this,T=this.maskset,R=this.opts,L=this.dependencyLib;function I(Y,X,$){var P=X[Y];if(P!==void 0&&P.match.static===!0&&P.match.optionality!==!0&&(X[0]===void 0||X[0].alternation===void 0)){var z=$.begin<=Y-1?X[Y-1]&&X[Y-1].match.static===!0&&X[Y-1]:X[Y-1],ne=$.end>Y+1?X[Y+1]&&X[Y+1].match.static===!0&&X[Y+1]:X[Y+1];return z&&ne}return!1}var W=0,U=v.begin!==void 0?v.begin:v,H=v.end!==void 0?v.end:v,V=!0;if(v.begin>v.end&&(U=v.end,H=v.begin),S=S!==void 0?S:U,y===void 0&&(U!==H||R.insertMode&&T.validPositions[S]!==void 0||x===void 0||x.match.optionalQuantifier||x.match.optionality)){var K,F=L.extend(!0,[],T.validPositions),N=f.getLastValidPosition.call(b,void 0,!0);T.p=U;var Q=A.call(b,v)?U:S;for(K=N;K>=Q;K--)T.validPositions.splice(K,1),x===void 0&&delete T.tests[K+1];var j,J,Z=S,le=Z;for(x&&(T.validPositions[S]=L.extend(!0,{},x),le++,Z++),F[H]==null&&T.jitOffset[H]&&(H+=T.jitOffset[H]+1),K=x?H:H-1;K<=N;K++){if((j=F[K])!==void 0&&j.generatedInput!==!0&&(K>=H||K>=U&&I(K,F,{begin:U,end:H}))){for(;p.getTest.call(b,le).match.def!=="";){if((J=m.call(b,le,j,R))!==!1||j.match.def==="+"){j.match.def==="+"&&f.getBuffer.call(b,!0);var ue=w.call(b,le,j.input,j.match.def!=="+",!0);if(V=ue!==!1,Z=(ue.pos||le)+1,!V&&J)break}else V=!1;if(V){x===void 0&&j.match.static&&K===v.begin&&W++;break}if(!V&&f.getBuffer.call(b),le>T.maskLength)break;le++}p.getTest.call(b,le).match.def==""&&(V=!1),le=Z}if(!V)break}if(!V)return T.validPositions=L.extend(!0,[],F),f.resetMaskSet.call(b,!0),!1}else x&&p.getTest.call(b,S).match.cd===x.match.cd&&(T.validPositions[S]=L.extend(!0,{},x));return f.resetMaskSet.call(b,!0),W}}},i={};function r(o){var l=i[o];if(l!==void 0)return l.exports;var u=i[o]={exports:{}};return t[o](u,u.exports,r),u.exports}var s={};return(function(){var o=s;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,r(7149),r(3194),r(9302),r(4013),r(3851),r(219),r(207),r(5296);var l,u=(l=r(2394))&&l.__esModule?l:{default:l};o.default=u.default})(),s})()}))})(Bn)),Bn.exports}var Bh=Lh();const Fh=rl(Bh);//! moment.js
|
|
17
17
|
//! version : 2.30.1
|
|
18
18
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
19
19
|
//! license : MIT
|
|
@@ -24,11 +24,11 @@ Arguments: `+Array.prototype.slice.call(i).join("")+`
|
|
|
24
24
|
`+new Error().stack),t=!1}return e.apply(this,arguments)},e)}var du={};function hu(n,e){Ae.deprecationHandler!=null&&Ae.deprecationHandler(n,e),du[n]||(cu(e),du[n]=!0)}Ae.suppressDeprecationWarnings=!1,Ae.deprecationHandler=null;function Ut(n){return typeof Function<"u"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function Nh(n){var e,t;for(t in n)Qe(n,t)&&(e=n[t],Ut(e)?this[t]=e:this["_"+t]=e);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Fs(n,e){var t=di({},n),i;for(i in e)Qe(e,i)&&(wi(n[i])&&wi(e[i])?(t[i]={},di(t[i],n[i]),di(t[i],e[i])):e[i]!=null?t[i]=e[i]:delete t[i]);for(i in n)Qe(n,i)&&!Qe(e,i)&&wi(n[i])&&(t[i]=di({},t[i]));return t}function _s(n){n!=null&&this.set(n)}var Ps;Object.keys?Ps=Object.keys:Ps=function(n){var e,t=[];for(e in n)Qe(n,e)&&t.push(e);return t};var Ih={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Hh(n,e,t){var i=this._calendar[n]||this._calendar.sameElse;return Ut(i)?i.call(e,t):i}function Gt(n,e,t){var i=""+Math.abs(n),r=e-i.length,s=n>=0;return(s?t?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var Ns=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,_n=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Is={},Li={};function Te(n,e,t,i){var r=i;typeof i=="string"&&(r=function(){return this[i]()}),n&&(Li[n]=r),e&&(Li[e[0]]=function(){return Gt(r.apply(this,arguments),e[1],e[2])}),t&&(Li[t]=function(){return this.localeData().ordinal(r.apply(this,arguments),n)})}function Vh(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function zh(n){var e=n.match(Ns),t,i;for(t=0,i=e.length;t<i;t++)Li[e[t]]?e[t]=Li[e[t]]:e[t]=Vh(e[t]);return function(r){var s="",o;for(o=0;o<i;o++)s+=Ut(e[o])?e[o].call(r,n):e[o];return s}}function Pn(n,e){return n.isValid()?(e=fu(e,n.localeData()),Is[e]=Is[e]||zh(e),Is[e](n)):n.localeData().invalidDate()}function fu(n,e){var t=5;function i(r){return e.longDateFormat(r)||r}for(_n.lastIndex=0;t>=0&&_n.test(n);)n=n.replace(_n,i),_n.lastIndex=0,t-=1;return n}var jh={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Wh(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(Ns).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[n])}var Uh="Invalid date";function Gh(){return this._invalidDate}var Yh="%d",Qh=/\d{1,2}/;function Kh(n){return this._ordinal.replace("%d",n)}var Jh={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qh(n,e,t,i){var r=this._relativeTime[t];return Ut(r)?r(n,e,t,i):r.replace(/%d/i,n)}function $h(n,e){var t=this._relativeTime[n>0?"future":"past"];return Ut(t)?t(e):t.replace(/%s/i,e)}var pu={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Tt(n){return typeof n=="string"?pu[n]||pu[n.toLowerCase()]:void 0}function Hs(n){var e={},t,i;for(i in n)Qe(n,i)&&(t=Tt(i),t&&(e[t]=n[i]));return e}var Zh={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Xh(n){var e=[],t;for(t in n)Qe(n,t)&&e.push({unit:t,priority:Zh[t]});return e.sort(function(i,r){return i.priority-r.priority}),e}var mu=/\d/,Et=/\d\d/,gu=/\d{3}/,Vs=/\d{4}/,Nn=/[+-]?\d{6}/,tt=/\d\d?/,bu=/\d\d\d\d?/,vu=/\d\d\d\d\d\d?/,In=/\d{1,3}/,zs=/\d{1,4}/,Hn=/[+-]?\d{1,6}/,Bi=/\d+/,Vn=/[+-]?\d+/,ef=/Z|[+-]\d\d:?\d\d/gi,zn=/Z|[+-]\d\d(?::?\d\d)?/gi,tf=/[+-]?\d+(\.\d{1,3})?/,nn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Fi=/^[1-9]\d?/,js=/^([1-9]\d|\d)/,jn;jn={};function Ee(n,e,t){jn[n]=Ut(e)?e:function(i,r){return i&&t?t:e}}function nf(n,e){return Qe(jn,n)?jn[n](e._strict,e._locale):new RegExp(rf(n))}function rf(n){return Xt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,r,s){return t||i||r||s}))}function Xt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Dt(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function Ue(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=Dt(e)),t}var Ws={};function $e(n,e){var t,i=e,r;for(typeof n=="string"&&(n=[n]),Zt(e)&&(i=function(s,o){o[e]=Ue(s)}),r=n.length,t=0;t<r;t++)Ws[n[t]]=i}function rn(n,e){$e(n,function(t,i,r,s){r._w=r._w||{},e(t,r._w,r,s)})}function sf(n,e,t){e!=null&&Qe(Ws,n)&&Ws[n](e,t._a,t,n)}function Wn(n){return n%4===0&&n%100!==0||n%400===0}var ht=0,ei=1,Yt=2,ut=3,It=4,ti=5,Ci=6,af=7,of=8;Te("Y",0,0,function(){var n=this.year();return n<=9999?Gt(n,4):"+"+n}),Te(0,["YY",2],0,function(){return this.year()%100}),Te(0,["YYYY",4],0,"year"),Te(0,["YYYYY",5],0,"year"),Te(0,["YYYYYY",6,!0],0,"year"),Ee("Y",Vn),Ee("YY",tt,Et),Ee("YYYY",zs,Vs),Ee("YYYYY",Hn,Nn),Ee("YYYYYY",Hn,Nn),$e(["YYYYY","YYYYYY"],ht),$e("YYYY",function(n,e){e[ht]=n.length===2?Ae.parseTwoDigitYear(n):Ue(n)}),$e("YY",function(n,e){e[ht]=Ae.parseTwoDigitYear(n)}),$e("Y",function(n,e){e[ht]=parseInt(n,10)});function sn(n){return Wn(n)?366:365}Ae.parseTwoDigitYear=function(n){return Ue(n)+(Ue(n)>68?1900:2e3)};var yu=_i("FullYear",!0);function lf(){return Wn(this.year())}function _i(n,e){return function(t){return t!=null?(wu(this,n,t),Ae.updateOffset(this,e),this):an(this,n)}}function an(n,e){if(!n.isValid())return NaN;var t=n._d,i=n._isUTC;switch(e){case"Milliseconds":return i?t.getUTCMilliseconds():t.getMilliseconds();case"Seconds":return i?t.getUTCSeconds():t.getSeconds();case"Minutes":return i?t.getUTCMinutes():t.getMinutes();case"Hours":return i?t.getUTCHours():t.getHours();case"Date":return i?t.getUTCDate():t.getDate();case"Day":return i?t.getUTCDay():t.getDay();case"Month":return i?t.getUTCMonth():t.getMonth();case"FullYear":return i?t.getUTCFullYear():t.getFullYear();default:return NaN}}function wu(n,e,t){var i,r,s,o,l;if(!(!n.isValid()||isNaN(t))){switch(i=n._d,r=n._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(t):i.setMilliseconds(t));case"Seconds":return void(r?i.setUTCSeconds(t):i.setSeconds(t));case"Minutes":return void(r?i.setUTCMinutes(t):i.setMinutes(t));case"Hours":return void(r?i.setUTCHours(t):i.setHours(t));case"Date":return void(r?i.setUTCDate(t):i.setDate(t));case"FullYear":break;default:return}s=t,o=n.month(),l=n.date(),l=l===29&&o===1&&!Wn(s)?28:l,r?i.setUTCFullYear(s,o,l):i.setFullYear(s,o,l)}}function uf(n){return n=Tt(n),Ut(this[n])?this[n]():this}function cf(n,e){if(typeof n=="object"){n=Hs(n);var t=Xh(n),i,r=t.length;for(i=0;i<r;i++)this[t[i].unit](n[t[i].unit])}else if(n=Tt(n),Ut(this[n]))return this[n](e);return this}function df(n,e){return(n%e+e)%e}var lt;Array.prototype.indexOf?lt=Array.prototype.indexOf:lt=function(n){var e;for(e=0;e<this.length;++e)if(this[e]===n)return e;return-1};function Us(n,e){if(isNaN(n)||isNaN(e))return NaN;var t=df(e,12);return n+=(e-t)/12,t===1?Wn(n)?29:28:31-t%7%2}Te("M",["MM",2],"Mo",function(){return this.month()+1}),Te("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)}),Te("MMMM",0,0,function(n){return this.localeData().months(this,n)}),Ee("M",tt,Fi),Ee("MM",tt,Et),Ee("MMM",function(n,e){return e.monthsShortRegex(n)}),Ee("MMMM",function(n,e){return e.monthsRegex(n)}),$e(["M","MM"],function(n,e){e[ei]=Ue(n)-1}),$e(["MMM","MMMM"],function(n,e,t,i){var r=t._locale.monthsParse(n,i,t._strict);r!=null?e[ei]=r:He(t).invalidMonth=n});var hf="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Cu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Au=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ff=nn,pf=nn;function mf(n,e){return n?Pt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||Au).test(e)?"format":"standalone"][n.month()]:Pt(this._months)?this._months:this._months.standalone}function gf(n,e){return n?Pt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[Au.test(e)?"format":"standalone"][n.month()]:Pt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function bf(n,e,t){var i,r,s,o=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=Wt([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return t?e==="MMM"?(r=lt.call(this._shortMonthsParse,o),r!==-1?r:null):(r=lt.call(this._longMonthsParse,o),r!==-1?r:null):e==="MMM"?(r=lt.call(this._shortMonthsParse,o),r!==-1?r:(r=lt.call(this._longMonthsParse,o),r!==-1?r:null)):(r=lt.call(this._longMonthsParse,o),r!==-1?r:(r=lt.call(this._shortMonthsParse,o),r!==-1?r:null))}function vf(n,e,t){var i,r,s;if(this._monthsParseExact)return bf.call(this,n,e,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=Wt([2e3,i]),t&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!t&&!this._monthsParse[i]&&(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),t&&e==="MMMM"&&this._longMonthsParse[i].test(n))return i;if(t&&e==="MMM"&&this._shortMonthsParse[i].test(n))return i;if(!t&&this._monthsParse[i].test(n))return i}}function Eu(n,e){if(!n.isValid())return n;if(typeof e=="string"){if(/^\d+$/.test(e))e=Ue(e);else if(e=n.localeData().monthsParse(e),!Zt(e))return n}var t=e,i=n.date();return i=i<29?i:Math.min(i,Us(n.year(),t)),n._isUTC?n._d.setUTCMonth(t,i):n._d.setMonth(t,i),n}function ku(n){return n!=null?(Eu(this,n),Ae.updateOffset(this,!0),this):an(this,"Month")}function yf(){return Us(this.year(),this.month())}function wf(n){return this._monthsParseExact?(Qe(this,"_monthsRegex")||Su.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(Qe(this,"_monthsShortRegex")||(this._monthsShortRegex=ff),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function Cf(n){return this._monthsParseExact?(Qe(this,"_monthsRegex")||Su.call(this),n?this._monthsStrictRegex:this._monthsRegex):(Qe(this,"_monthsRegex")||(this._monthsRegex=pf),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function Su(){function n(u,c){return c.length-u.length}var e=[],t=[],i=[],r,s,o,l;for(r=0;r<12;r++)s=Wt([2e3,r]),o=Xt(this.monthsShort(s,"")),l=Xt(this.months(s,"")),e.push(o),t.push(l),i.push(l),i.push(o);e.sort(n),t.sort(n),i.sort(n),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Af(n,e,t,i,r,s,o){var l;return n<100&&n>=0?(l=new Date(n+400,e,t,i,r,s,o),isFinite(l.getFullYear())&&l.setFullYear(n)):l=new Date(n,e,t,i,r,s,o),l}function on(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function Un(n,e,t){var i=7+e-t,r=(7+on(n,0,i).getUTCDay()-e)%7;return-r+i-1}function xu(n,e,t,i,r){var s=(7+t-i)%7,o=Un(n,i,r),l=1+7*(e-1)+s+o,u,c;return l<=0?(u=n-1,c=sn(u)+l):l>sn(n)?(u=n+1,c=l-sn(n)):(u=n,c=l),{year:u,dayOfYear:c}}function ln(n,e,t){var i=Un(n.year(),e,t),r=Math.floor((n.dayOfYear()-i-1)/7)+1,s,o;return r<1?(o=n.year()-1,s=r+ii(o,e,t)):r>ii(n.year(),e,t)?(s=r-ii(n.year(),e,t),o=n.year()+1):(o=n.year(),s=r),{week:s,year:o}}function ii(n,e,t){var i=Un(n,e,t),r=Un(n+1,e,t);return(sn(n)-i+r)/7}Te("w",["ww",2],"wo","week"),Te("W",["WW",2],"Wo","isoWeek"),Ee("w",tt,Fi),Ee("ww",tt,Et),Ee("W",tt,Fi),Ee("WW",tt,Et),rn(["w","ww","W","WW"],function(n,e,t,i){e[i.substr(0,1)]=Ue(n)});function Ef(n){return ln(n,this._week.dow,this._week.doy).week}var kf={dow:0,doy:6};function Sf(){return this._week.dow}function xf(){return this._week.doy}function Rf(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Mf(n){var e=ln(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Te("d",0,"do","day"),Te("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),Te("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),Te("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),Te("e",0,0,"weekday"),Te("E",0,0,"isoWeekday"),Ee("d",tt),Ee("e",tt),Ee("E",tt),Ee("dd",function(n,e){return e.weekdaysMinRegex(n)}),Ee("ddd",function(n,e){return e.weekdaysShortRegex(n)}),Ee("dddd",function(n,e){return e.weekdaysRegex(n)}),rn(["dd","ddd","dddd"],function(n,e,t,i){var r=t._locale.weekdaysParse(n,i,t._strict);r!=null?e.d=r:He(t).invalidWeekday=n}),rn(["d","e","E"],function(n,e,t,i){e[i]=Ue(n)});function Tf(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Df(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function Gs(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Of="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ru="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lf="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Bf=nn,Ff=nn,_f=nn;function Pf(n,e){var t=Pt(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?Gs(t,this._week.dow):n?t[n.day()]:t}function Nf(n){return n===!0?Gs(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function If(n){return n===!0?Gs(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Hf(n,e,t){var i,r,s,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=Wt([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return t?e==="dddd"?(r=lt.call(this._weekdaysParse,o),r!==-1?r:null):e==="ddd"?(r=lt.call(this._shortWeekdaysParse,o),r!==-1?r:null):(r=lt.call(this._minWeekdaysParse,o),r!==-1?r:null):e==="dddd"?(r=lt.call(this._weekdaysParse,o),r!==-1||(r=lt.call(this._shortWeekdaysParse,o),r!==-1)?r:(r=lt.call(this._minWeekdaysParse,o),r!==-1?r:null)):e==="ddd"?(r=lt.call(this._shortWeekdaysParse,o),r!==-1||(r=lt.call(this._weekdaysParse,o),r!==-1)?r:(r=lt.call(this._minWeekdaysParse,o),r!==-1?r:null)):(r=lt.call(this._minWeekdaysParse,o),r!==-1||(r=lt.call(this._weekdaysParse,o),r!==-1)?r:(r=lt.call(this._shortWeekdaysParse,o),r!==-1?r:null))}function Vf(n,e,t){var i,r,s;if(this._weekdaysParseExact)return Hf.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=Wt([2e3,1]).day(i),t&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[i].test(n))return i;if(t&&e==="ddd"&&this._shortWeekdaysParse[i].test(n))return i;if(t&&e==="dd"&&this._minWeekdaysParse[i].test(n))return i;if(!t&&this._weekdaysParse[i].test(n))return i}}function zf(n){if(!this.isValid())return n!=null?this:NaN;var e=an(this,"Day");return n!=null?(n=Tf(n,this.localeData()),this.add(n-e,"d")):e}function jf(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Wf(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Df(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Uf(n){return this._weekdaysParseExact?(Qe(this,"_weekdaysRegex")||Ys.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Qe(this,"_weekdaysRegex")||(this._weekdaysRegex=Bf),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gf(n){return this._weekdaysParseExact?(Qe(this,"_weekdaysRegex")||Ys.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Qe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ff),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Yf(n){return this._weekdaysParseExact?(Qe(this,"_weekdaysRegex")||Ys.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Qe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_f),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ys(){function n(d,f){return f.length-d.length}var e=[],t=[],i=[],r=[],s,o,l,u,c;for(s=0;s<7;s++)o=Wt([2e3,1]).day(s),l=Xt(this.weekdaysMin(o,"")),u=Xt(this.weekdaysShort(o,"")),c=Xt(this.weekdays(o,"")),e.push(l),t.push(u),i.push(c),r.push(l),r.push(u),r.push(c);e.sort(n),t.sort(n),i.sort(n),r.sort(n),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Qs(){return this.hours()%12||12}function Qf(){return this.hours()||24}Te("H",["HH",2],0,"hour"),Te("h",["hh",2],0,Qs),Te("k",["kk",2],0,Qf),Te("hmm",0,0,function(){return""+Qs.apply(this)+Gt(this.minutes(),2)}),Te("hmmss",0,0,function(){return""+Qs.apply(this)+Gt(this.minutes(),2)+Gt(this.seconds(),2)}),Te("Hmm",0,0,function(){return""+this.hours()+Gt(this.minutes(),2)}),Te("Hmmss",0,0,function(){return""+this.hours()+Gt(this.minutes(),2)+Gt(this.seconds(),2)});function Mu(n,e){Te(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}Mu("a",!0),Mu("A",!1);function Tu(n,e){return e._meridiemParse}Ee("a",Tu),Ee("A",Tu),Ee("H",tt,js),Ee("h",tt,Fi),Ee("k",tt,Fi),Ee("HH",tt,Et),Ee("hh",tt,Et),Ee("kk",tt,Et),Ee("hmm",bu),Ee("hmmss",vu),Ee("Hmm",bu),Ee("Hmmss",vu),$e(["H","HH"],ut),$e(["k","kk"],function(n,e,t){var i=Ue(n);e[ut]=i===24?0:i}),$e(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n}),$e(["h","hh"],function(n,e,t){e[ut]=Ue(n),He(t).bigHour=!0}),$e("hmm",function(n,e,t){var i=n.length-2;e[ut]=Ue(n.substr(0,i)),e[It]=Ue(n.substr(i)),He(t).bigHour=!0}),$e("hmmss",function(n,e,t){var i=n.length-4,r=n.length-2;e[ut]=Ue(n.substr(0,i)),e[It]=Ue(n.substr(i,2)),e[ti]=Ue(n.substr(r)),He(t).bigHour=!0}),$e("Hmm",function(n,e,t){var i=n.length-2;e[ut]=Ue(n.substr(0,i)),e[It]=Ue(n.substr(i))}),$e("Hmmss",function(n,e,t){var i=n.length-4,r=n.length-2;e[ut]=Ue(n.substr(0,i)),e[It]=Ue(n.substr(i,2)),e[ti]=Ue(n.substr(r))});function Kf(n){return(n+"").toLowerCase().charAt(0)==="p"}var Jf=/[ap]\.?m?\.?/i,qf=_i("Hours",!0);function $f(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var Du={calendar:Ih,longDateFormat:jh,invalidDate:Uh,ordinal:Yh,dayOfMonthOrdinalParse:Qh,relativeTime:Jh,months:hf,monthsShort:Cu,week:kf,weekdays:Of,weekdaysMin:Lf,weekdaysShort:Ru,meridiemParse:Jf},rt={},un={},cn;function Zf(n,e){var t,i=Math.min(n.length,e.length);for(t=0;t<i;t+=1)if(n[t]!==e[t])return t;return i}function Ou(n){return n&&n.toLowerCase().replace("_","-")}function Xf(n){for(var e=0,t,i,r,s;e<n.length;){for(s=Ou(n[e]).split("-"),t=s.length,i=Ou(n[e+1]),i=i?i.split("-"):null;t>0;){if(r=Gn(s.slice(0,t).join("-")),r)return r;if(i&&i.length>=t&&Zf(s,i)>=t-1)break;t--}e++}return cn}function ep(n){return!!(n&&n.match("^[^/\\\\]*$"))}function Gn(n){var e=null,t;if(rt[n]===void 0&&typeof module<"u"&&module&&module.exports&&ep(n))try{e=cn._abbr,t=require,t("./locale/"+n),hi(e)}catch{rt[n]=null}return rt[n]}function hi(n,e){var t;return n&&(vt(e)?t=ni(n):t=Ks(n,e),t?cn=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),cn._abbr}function Ks(n,e){if(e!==null){var t,i=Du;if(e.abbr=n,rt[n]!=null)hu("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=rt[n]._config;else if(e.parentLocale!=null)if(rt[e.parentLocale]!=null)i=rt[e.parentLocale]._config;else if(t=Gn(e.parentLocale),t!=null)i=t._config;else return un[e.parentLocale]||(un[e.parentLocale]=[]),un[e.parentLocale].push({name:n,config:e}),null;return rt[n]=new _s(Fs(i,e)),un[n]&&un[n].forEach(function(r){Ks(r.name,r.config)}),hi(n),rt[n]}else return delete rt[n],null}function tp(n,e){if(e!=null){var t,i,r=Du;rt[n]!=null&&rt[n].parentLocale!=null?rt[n].set(Fs(rt[n]._config,e)):(i=Gn(n),i!=null&&(r=i._config),e=Fs(r,e),i==null&&(e.abbr=n),t=new _s(e),t.parentLocale=rt[n],rt[n]=t),hi(n)}else rt[n]!=null&&(rt[n].parentLocale!=null?(rt[n]=rt[n].parentLocale,n===hi()&&hi(n)):rt[n]!=null&&delete rt[n]);return rt[n]}function ni(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return cn;if(!Pt(n)){if(e=Gn(n),e)return e;n=[n]}return Xf(n)}function ip(){return Ps(rt)}function Js(n){var e,t=n._a;return t&&He(n).overflow===-2&&(e=t[ei]<0||t[ei]>11?ei:t[Yt]<1||t[Yt]>Us(t[ht],t[ei])?Yt:t[ut]<0||t[ut]>24||t[ut]===24&&(t[It]!==0||t[ti]!==0||t[Ci]!==0)?ut:t[It]<0||t[It]>59?It:t[ti]<0||t[ti]>59?ti:t[Ci]<0||t[Ci]>999?Ci:-1,He(n)._overflowDayOfYear&&(e<ht||e>Yt)&&(e=Yt),He(n)._overflowWeeks&&e===-1&&(e=af),He(n)._overflowWeekday&&e===-1&&(e=of),He(n).overflow=e),n}var np=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rp=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sp=/Z|[+-]\d\d(?::?\d\d)?/,Yn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],qs=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ap=/^\/?Date\((-?\d+)/i,op=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,lp={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Lu(n){var e,t,i=n._i,r=np.exec(i)||rp.exec(i),s,o,l,u,c=Yn.length,d=qs.length;if(r){for(He(n).iso=!0,e=0,t=c;e<t;e++)if(Yn[e][1].exec(r[1])){o=Yn[e][0],s=Yn[e][2]!==!1;break}if(o==null){n._isValid=!1;return}if(r[3]){for(e=0,t=d;e<t;e++)if(qs[e][1].exec(r[3])){l=(r[2]||" ")+qs[e][0];break}if(l==null){n._isValid=!1;return}}if(!s&&l!=null){n._isValid=!1;return}if(r[4])if(sp.exec(r[4]))u="Z";else{n._isValid=!1;return}n._f=o+(l||"")+(u||""),Zs(n)}else n._isValid=!1}function up(n,e,t,i,r,s){var o=[cp(n),Cu.indexOf(e),parseInt(t,10),parseInt(i,10),parseInt(r,10)];return s&&o.push(parseInt(s,10)),o}function cp(n){var e=parseInt(n,10);return e<=49?2e3+e:e<=999?1900+e:e}function dp(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function hp(n,e,t){if(n){var i=Ru.indexOf(n),r=new Date(e[0],e[1],e[2]).getDay();if(i!==r)return He(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function fp(n,e,t){if(n)return lp[n];if(e)return 0;var i=parseInt(t,10),r=i%100,s=(i-r)/100;return s*60+r}function Bu(n){var e=op.exec(dp(n._i)),t;if(e){if(t=up(e[4],e[3],e[2],e[5],e[6],e[7]),!hp(e[1],t,n))return;n._a=t,n._tzm=fp(e[8],e[9],e[10]),n._d=on.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),He(n).rfc2822=!0}else n._isValid=!1}function pp(n){var e=ap.exec(n._i);if(e!==null){n._d=new Date(+e[1]);return}if(Lu(n),n._isValid===!1)delete n._isValid;else return;if(Bu(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:Ae.createFromInputFallback(n)}Ae.createFromInputFallback=Mt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});function Pi(n,e,t){return n??e??t}function mp(n){var e=new Date(Ae.now());return n._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function $s(n){var e,t,i=[],r,s,o;if(!n._d){for(r=mp(n),n._w&&n._a[Yt]==null&&n._a[ei]==null&&gp(n),n._dayOfYear!=null&&(o=Pi(n._a[ht],r[ht]),(n._dayOfYear>sn(o)||n._dayOfYear===0)&&(He(n)._overflowDayOfYear=!0),t=on(o,0,n._dayOfYear),n._a[ei]=t.getUTCMonth(),n._a[Yt]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=i[e]=r[e];for(;e<7;e++)n._a[e]=i[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[ut]===24&&n._a[It]===0&&n._a[ti]===0&&n._a[Ci]===0&&(n._nextDay=!0,n._a[ut]=0),n._d=(n._useUTC?on:Af).apply(null,i),s=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[ut]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==s&&(He(n).weekdayMismatch=!0)}}function gp(n){var e,t,i,r,s,o,l,u,c;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(s=1,o=4,t=Pi(e.GG,n._a[ht],ln(it(),1,4).year),i=Pi(e.W,1),r=Pi(e.E,1),(r<1||r>7)&&(u=!0)):(s=n._locale._week.dow,o=n._locale._week.doy,c=ln(it(),s,o),t=Pi(e.gg,n._a[ht],c.year),i=Pi(e.w,c.week),e.d!=null?(r=e.d,(r<0||r>6)&&(u=!0)):e.e!=null?(r=e.e+s,(e.e<0||e.e>6)&&(u=!0)):r=s),i<1||i>ii(t,s,o)?He(n)._overflowWeeks=!0:u!=null?He(n)._overflowWeekday=!0:(l=xu(t,i,r,s,o),n._a[ht]=l.year,n._dayOfYear=l.dayOfYear)}Ae.ISO_8601=function(){},Ae.RFC_2822=function(){};function Zs(n){if(n._f===Ae.ISO_8601){Lu(n);return}if(n._f===Ae.RFC_2822){Bu(n);return}n._a=[],He(n).empty=!0;var e=""+n._i,t,i,r,s,o,l=e.length,u=0,c,d;for(r=fu(n._f,n._locale).match(Ns)||[],d=r.length,t=0;t<d;t++)s=r[t],i=(e.match(nf(s,n))||[])[0],i&&(o=e.substr(0,e.indexOf(i)),o.length>0&&He(n).unusedInput.push(o),e=e.slice(e.indexOf(i)+i.length),u+=i.length),Li[s]?(i?He(n).empty=!1:He(n).unusedTokens.push(s),sf(s,i,n)):n._strict&&!i&&He(n).unusedTokens.push(s);He(n).charsLeftOver=l-u,e.length>0&&He(n).unusedInput.push(e),n._a[ut]<=12&&He(n).bigHour===!0&&n._a[ut]>0&&(He(n).bigHour=void 0),He(n).parsedDateParts=n._a.slice(0),He(n).meridiem=n._meridiem,n._a[ut]=bp(n._locale,n._a[ut],n._meridiem),c=He(n).era,c!==null&&(n._a[ht]=n._locale.erasConvertYear(c,n._a[ht])),$s(n),Js(n)}function bp(n,e,t){var i;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(i=n.isPM(t),i&&e<12&&(e+=12),!i&&e===12&&(e=0)),e)}function vp(n){var e,t,i,r,s,o,l=!1,u=n._f.length;if(u===0){He(n).invalidFormat=!0,n._d=new Date(NaN);return}for(r=0;r<u;r++)s=0,o=!1,e=Bs({},n),n._useUTC!=null&&(e._useUTC=n._useUTC),e._f=n._f[r],Zs(e),Os(e)&&(o=!0),s+=He(e).charsLeftOver,s+=He(e).unusedTokens.length*10,He(e).score=s,l?s<i&&(i=s,t=e):(i==null||s<i||o)&&(i=s,t=e,o&&(l=!0));di(n,t||e)}function yp(n){if(!n._d){var e=Hs(n._i),t=e.day===void 0?e.date:e.day;n._a=lu([e.year,e.month,t,e.hour,e.minute,e.second,e.millisecond],function(i){return i&&parseInt(i,10)}),$s(n)}}function wp(n){var e=new tn(Js(Fu(n)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Fu(n){var e=n._i,t=n._f;return n._locale=n._locale||ni(n._l),e===null||t===void 0&&e===""?Fn({nullInput:!0}):(typeof e=="string"&&(n._i=e=n._locale.preparse(e)),Nt(e)?new tn(Js(e)):(en(e)?n._d=e:Pt(t)?vp(n):t?Zs(n):Cp(n),Os(n)||(n._d=null),n))}function Cp(n){var e=n._i;vt(e)?n._d=new Date(Ae.now()):en(e)?n._d=new Date(e.valueOf()):typeof e=="string"?pp(n):Pt(e)?(n._a=lu(e.slice(0),function(t){return parseInt(t,10)}),$s(n)):wi(e)?yp(n):Zt(e)?n._d=new Date(e):Ae.createFromInputFallback(n)}function _u(n,e,t,i,r){var s={};return(e===!0||e===!1)&&(i=e,e=void 0),(t===!0||t===!1)&&(i=t,t=void 0),(wi(n)&&Ts(n)||Pt(n)&&n.length===0)&&(n=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=t,s._i=n,s._f=e,s._strict=i,wp(s)}function it(n,e,t,i){return _u(n,e,t,i,!1)}var Ap=Mt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=it.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:Fn()}),Ep=Mt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=it.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:Fn()});function Pu(n,e){var t,i;if(e.length===1&&Pt(e[0])&&(e=e[0]),!e.length)return it();for(t=e[0],i=1;i<e.length;++i)(!e[i].isValid()||e[i][n](t))&&(t=e[i]);return t}function kp(){var n=[].slice.call(arguments,0);return Pu("isBefore",n)}function Sp(){var n=[].slice.call(arguments,0);return Pu("isAfter",n)}var xp=function(){return Date.now?Date.now():+new Date},dn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rp(n){var e,t=!1,i,r=dn.length;for(e in n)if(Qe(n,e)&&!(lt.call(dn,e)!==-1&&(n[e]==null||!isNaN(n[e]))))return!1;for(i=0;i<r;++i)if(n[dn[i]]){if(t)return!1;parseFloat(n[dn[i]])!==Ue(n[dn[i]])&&(t=!0)}return!0}function Mp(){return this._isValid}function Tp(){return Ht(NaN)}function Qn(n){var e=Hs(n),t=e.year||0,i=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,o=e.day||0,l=e.hour||0,u=e.minute||0,c=e.second||0,d=e.millisecond||0;this._isValid=Rp(e),this._milliseconds=+d+c*1e3+u*6e4+l*1e3*60*60,this._days=+o+s*7,this._months=+r+i*3+t*12,this._data={},this._locale=ni(),this._bubble()}function Kn(n){return n instanceof Qn}function Xs(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function Dp(n,e,t){var i=Math.min(n.length,e.length),r=Math.abs(n.length-e.length),s=0,o;for(o=0;o<i;o++)Ue(n[o])!==Ue(e[o])&&s++;return s+r}function Nu(n,e){Te(n,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+Gt(~~(t/60),2)+e+Gt(~~t%60,2)})}Nu("Z",":"),Nu("ZZ",""),Ee("Z",zn),Ee("ZZ",zn),$e(["Z","ZZ"],function(n,e,t){t._useUTC=!0,t._tzm=ea(zn,n)});var Op=/([\+\-]|\d\d)/gi;function ea(n,e){var t=(e||"").match(n),i,r,s;return t===null?null:(i=t[t.length-1]||[],r=(i+"").match(Op)||["-",0,0],s=+(r[1]*60)+Ue(r[2]),s===0?0:r[0]==="+"?s:-s)}function ta(n,e){var t,i;return e._isUTC?(t=e.clone(),i=(Nt(n)||en(n)?n.valueOf():it(n).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+i),Ae.updateOffset(t,!1),t):it(n).local()}function ia(n){return-Math.round(n._d.getTimezoneOffset())}Ae.updateOffset=function(){};function Lp(n,e,t){var i=this._offset||0,r;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=ea(zn,n),n===null)return this}else Math.abs(n)<16&&!t&&(n=n*60);return!this._isUTC&&e&&(r=ia(this)),this._offset=n,this._isUTC=!0,r!=null&&this.add(r,"m"),i!==n&&(!e||this._changeInProgress?zu(this,Ht(n-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Ae.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:ia(this)}function Bp(n,e){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,e),this):-this.utcOffset()}function Fp(n){return this.utcOffset(0,n)}function _p(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(ia(this),"m")),this}function Pp(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=ea(ef,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function Np(n){return this.isValid()?(n=n?it(n).utcOffset():0,(this.utcOffset()-n)%60===0):!1}function Ip(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Hp(){if(!vt(this._isDSTShifted))return this._isDSTShifted;var n={},e;return Bs(n,this),n=Fu(n),n._a?(e=n._isUTC?Wt(n._a):it(n._a),this._isDSTShifted=this.isValid()&&Dp(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vp(){return this.isValid()?!this._isUTC:!1}function zp(){return this.isValid()?this._isUTC:!1}function Iu(){return this.isValid()?this._isUTC&&this._offset===0:!1}var jp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wp=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(n,e){var t=n,i=null,r,s,o;return Kn(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:Zt(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(i=jp.exec(n))?(r=i[1]==="-"?-1:1,t={y:0,d:Ue(i[Yt])*r,h:Ue(i[ut])*r,m:Ue(i[It])*r,s:Ue(i[ti])*r,ms:Ue(Xs(i[Ci]*1e3))*r}):(i=Wp.exec(n))?(r=i[1]==="-"?-1:1,t={y:Ai(i[2],r),M:Ai(i[3],r),w:Ai(i[4],r),d:Ai(i[5],r),h:Ai(i[6],r),m:Ai(i[7],r),s:Ai(i[8],r)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Up(it(t.from),it(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),s=new Qn(t),Kn(n)&&Qe(n,"_locale")&&(s._locale=n._locale),Kn(n)&&Qe(n,"_isValid")&&(s._isValid=n._isValid),s}Ht.fn=Qn.prototype,Ht.invalid=Tp;function Ai(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function Hu(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Up(n,e){var t;return n.isValid()&&e.isValid()?(e=ta(e,n),n.isBefore(e)?t=Hu(n,e):(t=Hu(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Vu(n,e){return function(t,i){var r,s;return i!==null&&!isNaN(+i)&&(hu(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=t,t=i,i=s),r=Ht(t,i),zu(this,r,n),this}}function zu(n,e,t,i){var r=e._milliseconds,s=Xs(e._days),o=Xs(e._months);n.isValid()&&(i=i??!0,o&&Eu(n,an(n,"Month")+o*t),s&&wu(n,"Date",an(n,"Date")+s*t),r&&n._d.setTime(n._d.valueOf()+r*t),i&&Ae.updateOffset(n,s||o))}var Gp=Vu(1,"add"),Yp=Vu(-1,"subtract");function ju(n){return typeof n=="string"||n instanceof String}function Qp(n){return Nt(n)||en(n)||ju(n)||Zt(n)||Jp(n)||Kp(n)||n===null||n===void 0}function Kp(n){var e=wi(n)&&!Ts(n),t=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,s,o=i.length;for(r=0;r<o;r+=1)s=i[r],t=t||Qe(n,s);return e&&t}function Jp(n){var e=Pt(n),t=!1;return e&&(t=n.filter(function(i){return!Zt(i)&&ju(n)}).length===0),e&&t}function qp(n){var e=wi(n)&&!Ts(n),t=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,s;for(r=0;r<i.length;r+=1)s=i[r],t=t||Qe(n,s);return e&&t}function $p(n,e){var t=n.diff(e,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function Zp(n,e){arguments.length===1&&(arguments[0]?Qp(arguments[0])?(n=arguments[0],e=void 0):qp(arguments[0])&&(e=arguments[0],n=void 0):(n=void 0,e=void 0));var t=n||it(),i=ta(t,this).startOf("day"),r=Ae.calendarFormat(this,i)||"sameElse",s=e&&(Ut(e[r])?e[r].call(this,t):e[r]);return this.format(s||this.localeData().calendar(r,this,it(t)))}function Xp(){return new tn(this)}function em(n,e){var t=Nt(n)?n:it(n);return this.isValid()&&t.isValid()?(e=Tt(e)||"millisecond",e==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf()):!1}function tm(n,e){var t=Nt(n)?n:it(n);return this.isValid()&&t.isValid()?(e=Tt(e)||"millisecond",e==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf()):!1}function im(n,e,t,i){var r=Nt(n)?n:it(n),s=Nt(e)?e:it(e);return this.isValid()&&r.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(r,t):!this.isBefore(r,t))&&(i[1]===")"?this.isBefore(s,t):!this.isAfter(s,t))):!1}function nm(n,e){var t=Nt(n)?n:it(n),i;return this.isValid()&&t.isValid()?(e=Tt(e)||"millisecond",e==="millisecond"?this.valueOf()===t.valueOf():(i=t.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf())):!1}function rm(n,e){return this.isSame(n,e)||this.isAfter(n,e)}function sm(n,e){return this.isSame(n,e)||this.isBefore(n,e)}function am(n,e,t){var i,r,s;if(!this.isValid())return NaN;if(i=ta(n,this),!i.isValid())return NaN;switch(r=(i.utcOffset()-this.utcOffset())*6e4,e=Tt(e),e){case"year":s=Jn(this,i)/12;break;case"month":s=Jn(this,i);break;case"quarter":s=Jn(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return t?s:Dt(s)}function Jn(n,e){if(n.date()<e.date())return-Jn(e,n);var t=(e.year()-n.year())*12+(e.month()-n.month()),i=n.clone().add(t,"months"),r,s;return e-i<0?(r=n.clone().add(t-1,"months"),s=(e-i)/(i-r)):(r=n.clone().add(t+1,"months"),s=(e-i)/(r-i)),-(t+s)||0}Ae.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Ae.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function om(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function lm(n){if(!this.isValid())return null;var e=n!==!0,t=e?this.clone().utc():this;return t.year()<0||t.year()>9999?Pn(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ut(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Pn(t,"Z")):Pn(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function um(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,i,r,s;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",s=e+'[")]',this.format(t+i+r+s)}function cm(n){n||(n=this.isUtc()?Ae.defaultFormatUtc:Ae.defaultFormat);var e=Pn(this,n);return this.localeData().postformat(e)}function dm(n,e){return this.isValid()&&(Nt(n)&&n.isValid()||it(n).isValid())?Ht({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function hm(n){return this.from(it(),n)}function fm(n,e){return this.isValid()&&(Nt(n)&&n.isValid()||it(n).isValid())?Ht({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function pm(n){return this.to(it(),n)}function Wu(n){var e;return n===void 0?this._locale._abbr:(e=ni(n),e!=null&&(this._locale=e),this)}var Uu=Mt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Gu(){return this._locale}var qn=1e3,Ni=60*qn,$n=60*Ni,Yu=(365*400+97)*24*$n;function Ii(n,e){return(n%e+e)%e}function Qu(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Yu:new Date(n,e,t).valueOf()}function Ku(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Yu:Date.UTC(n,e,t)}function mm(n){var e,t;if(n=Tt(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Ku:Qu,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ii(e+(this._isUTC?0:this.utcOffset()*Ni),$n);break;case"minute":e=this._d.valueOf(),e-=Ii(e,Ni);break;case"second":e=this._d.valueOf(),e-=Ii(e,qn);break}return this._d.setTime(e),Ae.updateOffset(this,!0),this}function gm(n){var e,t;if(n=Tt(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Ku:Qu,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=$n-Ii(e+(this._isUTC?0:this.utcOffset()*Ni),$n)-1;break;case"minute":e=this._d.valueOf(),e+=Ni-Ii(e,Ni)-1;break;case"second":e=this._d.valueOf(),e+=qn-Ii(e,qn)-1;break}return this._d.setTime(e),Ae.updateOffset(this,!0),this}function bm(){return this._d.valueOf()-(this._offset||0)*6e4}function vm(){return Math.floor(this.valueOf()/1e3)}function ym(){return new Date(this.valueOf())}function wm(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function Cm(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Am(){return this.isValid()?this.toISOString():null}function Em(){return Os(this)}function km(){return di({},He(this))}function Sm(){return He(this).overflow}function xm(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Te("N",0,0,"eraAbbr"),Te("NN",0,0,"eraAbbr"),Te("NNN",0,0,"eraAbbr"),Te("NNNN",0,0,"eraName"),Te("NNNNN",0,0,"eraNarrow"),Te("y",["y",1],"yo","eraYear"),Te("y",["yy",2],0,"eraYear"),Te("y",["yyy",3],0,"eraYear"),Te("y",["yyyy",4],0,"eraYear"),Ee("N",na),Ee("NN",na),Ee("NNN",na),Ee("NNNN",Nm),Ee("NNNNN",Im),$e(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,i){var r=t._locale.erasParse(n,i,t._strict);r?He(t).era=r:He(t).invalidEra=n}),Ee("y",Bi),Ee("yy",Bi),Ee("yyy",Bi),Ee("yyyy",Bi),Ee("yo",Hm),$e(["y","yy","yyy","yyyy"],ht),$e(["yo"],function(n,e,t,i){var r;t._locale._eraYearOrdinalRegex&&(r=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[ht]=t._locale.eraYearOrdinalParse(n,r):e[ht]=parseInt(n,10)});function Rm(n,e){var t,i,r,s=this._eras||ni("en")._eras;for(t=0,i=s.length;t<i;++t){switch(typeof s[t].since){case"string":r=Ae(s[t].since).startOf("day"),s[t].since=r.valueOf();break}switch(typeof s[t].until){case"undefined":s[t].until=1/0;break;case"string":r=Ae(s[t].until).startOf("day").valueOf(),s[t].until=r.valueOf();break}}return s}function Mm(n,e,t){var i,r,s=this.eras(),o,l,u;for(n=n.toUpperCase(),i=0,r=s.length;i<r;++i)if(o=s[i].name.toUpperCase(),l=s[i].abbr.toUpperCase(),u=s[i].narrow.toUpperCase(),t)switch(e){case"N":case"NN":case"NNN":if(l===n)return s[i];break;case"NNNN":if(o===n)return s[i];break;case"NNNNN":if(u===n)return s[i];break}else if([o,l,u].indexOf(n)>=0)return s[i]}function Tm(n,e){var t=n.since<=n.until?1:-1;return e===void 0?Ae(n.since).year():Ae(n.since).year()+(e-n.offset)*t}function Dm(){var n,e,t,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return i[n].name;return""}function Om(){var n,e,t,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return i[n].narrow;return""}function Lm(){var n,e,t,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return i[n].abbr;return""}function Bm(){var n,e,t,i,r=this.localeData().eras();for(n=0,e=r.length;n<e;++n)if(t=r[n].since<=r[n].until?1:-1,i=this.clone().startOf("day").valueOf(),r[n].since<=i&&i<=r[n].until||r[n].until<=i&&i<=r[n].since)return(this.year()-Ae(r[n].since).year())*t+r[n].offset;return this.year()}function Fm(n){return Qe(this,"_erasNameRegex")||ra.call(this),n?this._erasNameRegex:this._erasRegex}function _m(n){return Qe(this,"_erasAbbrRegex")||ra.call(this),n?this._erasAbbrRegex:this._erasRegex}function Pm(n){return Qe(this,"_erasNarrowRegex")||ra.call(this),n?this._erasNarrowRegex:this._erasRegex}function na(n,e){return e.erasAbbrRegex(n)}function Nm(n,e){return e.erasNameRegex(n)}function Im(n,e){return e.erasNarrowRegex(n)}function Hm(n,e){return e._eraYearOrdinalRegex||Bi}function ra(){var n=[],e=[],t=[],i=[],r,s,o,l,u,c=this.eras();for(r=0,s=c.length;r<s;++r)o=Xt(c[r].name),l=Xt(c[r].abbr),u=Xt(c[r].narrow),e.push(o),n.push(l),t.push(u),i.push(o),i.push(l),i.push(u);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}Te(0,["gg",2],0,function(){return this.weekYear()%100}),Te(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Zn(n,e){Te(0,[n,n.length],0,e)}Zn("gggg","weekYear"),Zn("ggggg","weekYear"),Zn("GGGG","isoWeekYear"),Zn("GGGGG","isoWeekYear"),Ee("G",Vn),Ee("g",Vn),Ee("GG",tt,Et),Ee("gg",tt,Et),Ee("GGGG",zs,Vs),Ee("gggg",zs,Vs),Ee("GGGGG",Hn,Nn),Ee("ggggg",Hn,Nn),rn(["gggg","ggggg","GGGG","GGGGG"],function(n,e,t,i){e[i.substr(0,2)]=Ue(n)}),rn(["gg","GG"],function(n,e,t,i){e[i]=Ae.parseTwoDigitYear(n)});function Vm(n){return Ju.call(this,n,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function zm(n){return Ju.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function jm(){return ii(this.year(),1,4)}function Wm(){return ii(this.isoWeekYear(),1,4)}function Um(){var n=this.localeData()._week;return ii(this.year(),n.dow,n.doy)}function Gm(){var n=this.localeData()._week;return ii(this.weekYear(),n.dow,n.doy)}function Ju(n,e,t,i,r){var s;return n==null?ln(this,i,r).year:(s=ii(n,i,r),e>s&&(e=s),Ym.call(this,n,e,t,i,r))}function Ym(n,e,t,i,r){var s=xu(n,e,t,i,r),o=on(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Te("Q",0,"Qo","quarter"),Ee("Q",mu),$e("Q",function(n,e){e[ei]=(Ue(n)-1)*3});function Qm(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Te("D",["DD",2],"Do","date"),Ee("D",tt,Fi),Ee("DD",tt,Et),Ee("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),$e(["D","DD"],Yt),$e("Do",function(n,e){e[Yt]=Ue(n.match(tt)[0])});var qu=_i("Date",!0);Te("DDD",["DDDD",3],"DDDo","dayOfYear"),Ee("DDD",In),Ee("DDDD",gu),$e(["DDD","DDDD"],function(n,e,t){t._dayOfYear=Ue(n)});function Km(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Te("m",["mm",2],0,"minute"),Ee("m",tt,js),Ee("mm",tt,Et),$e(["m","mm"],It);var Jm=_i("Minutes",!1);Te("s",["ss",2],0,"second"),Ee("s",tt,js),Ee("ss",tt,Et),$e(["s","ss"],ti);var qm=_i("Seconds",!1);Te("S",0,0,function(){return~~(this.millisecond()/100)}),Te(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Te(0,["SSS",3],0,"millisecond"),Te(0,["SSSS",4],0,function(){return this.millisecond()*10}),Te(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ee("S",In,mu),Ee("SS",In,Et),Ee("SSS",In,gu);var fi,$u;for(fi="SSSS";fi.length<=9;fi+="S")Ee(fi,Bi);function $m(n,e){e[Ci]=Ue(("0."+n)*1e3)}for(fi="S";fi.length<=9;fi+="S")$e(fi,$m);$u=_i("Milliseconds",!1),Te("z",0,0,"zoneAbbr"),Te("zz",0,0,"zoneName");function Zm(){return this._isUTC?"UTC":""}function Xm(){return this._isUTC?"Coordinated Universal Time":""}var ve=tn.prototype;ve.add=Gp,ve.calendar=Zp,ve.clone=Xp,ve.diff=am,ve.endOf=gm,ve.format=cm,ve.from=dm,ve.fromNow=hm,ve.to=fm,ve.toNow=pm,ve.get=uf,ve.invalidAt=Sm,ve.isAfter=em,ve.isBefore=tm,ve.isBetween=im,ve.isSame=nm,ve.isSameOrAfter=rm,ve.isSameOrBefore=sm,ve.isValid=Em,ve.lang=Uu,ve.locale=Wu,ve.localeData=Gu,ve.max=Ep,ve.min=Ap,ve.parsingFlags=km,ve.set=cf,ve.startOf=mm,ve.subtract=Yp,ve.toArray=wm,ve.toObject=Cm,ve.toDate=ym,ve.toISOString=lm,ve.inspect=um,typeof Symbol<"u"&&Symbol.for!=null&&(ve[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ve.toJSON=Am,ve.toString=om,ve.unix=vm,ve.valueOf=bm,ve.creationData=xm,ve.eraName=Dm,ve.eraNarrow=Om,ve.eraAbbr=Lm,ve.eraYear=Bm,ve.year=yu,ve.isLeapYear=lf,ve.weekYear=Vm,ve.isoWeekYear=zm,ve.quarter=ve.quarters=Qm,ve.month=ku,ve.daysInMonth=yf,ve.week=ve.weeks=Rf,ve.isoWeek=ve.isoWeeks=Mf,ve.weeksInYear=Um,ve.weeksInWeekYear=Gm,ve.isoWeeksInYear=jm,ve.isoWeeksInISOWeekYear=Wm,ve.date=qu,ve.day=ve.days=zf,ve.weekday=jf,ve.isoWeekday=Wf,ve.dayOfYear=Km,ve.hour=ve.hours=qf,ve.minute=ve.minutes=Jm,ve.second=ve.seconds=qm,ve.millisecond=ve.milliseconds=$u,ve.utcOffset=Lp,ve.utc=Fp,ve.local=_p,ve.parseZone=Pp,ve.hasAlignedHourOffset=Np,ve.isDST=Ip,ve.isLocal=Vp,ve.isUtcOffset=zp,ve.isUtc=Iu,ve.isUTC=Iu,ve.zoneAbbr=Zm,ve.zoneName=Xm,ve.dates=Mt("dates accessor is deprecated. Use date instead.",qu),ve.months=Mt("months accessor is deprecated. Use month instead",ku),ve.years=Mt("years accessor is deprecated. Use year instead",yu),ve.zone=Mt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Bp),ve.isDSTShifted=Mt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Hp);function eg(n){return it(n*1e3)}function tg(){return it.apply(null,arguments).parseZone()}function Zu(n){return n}var Ke=_s.prototype;Ke.calendar=Hh,Ke.longDateFormat=Wh,Ke.invalidDate=Gh,Ke.ordinal=Kh,Ke.preparse=Zu,Ke.postformat=Zu,Ke.relativeTime=qh,Ke.pastFuture=$h,Ke.set=Nh,Ke.eras=Rm,Ke.erasParse=Mm,Ke.erasConvertYear=Tm,Ke.erasAbbrRegex=_m,Ke.erasNameRegex=Fm,Ke.erasNarrowRegex=Pm,Ke.months=mf,Ke.monthsShort=gf,Ke.monthsParse=vf,Ke.monthsRegex=Cf,Ke.monthsShortRegex=wf,Ke.week=Ef,Ke.firstDayOfYear=xf,Ke.firstDayOfWeek=Sf,Ke.weekdays=Pf,Ke.weekdaysMin=If,Ke.weekdaysShort=Nf,Ke.weekdaysParse=Vf,Ke.weekdaysRegex=Uf,Ke.weekdaysShortRegex=Gf,Ke.weekdaysMinRegex=Yf,Ke.isPM=Kf,Ke.meridiem=$f;function Xn(n,e,t,i){var r=ni(),s=Wt().set(i,e);return r[t](s,n)}function Xu(n,e,t){if(Zt(n)&&(e=n,n=void 0),n=n||"",e!=null)return Xn(n,e,t,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Xn(n,i,t,"month");return r}function sa(n,e,t,i){typeof n=="boolean"?(Zt(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,Zt(e)&&(t=e,e=void 0),e=e||"");var r=ni(),s=n?r._week.dow:0,o,l=[];if(t!=null)return Xn(e,(t+s)%7,i,"day");for(o=0;o<7;o++)l[o]=Xn(e,(o+s)%7,i,"day");return l}function ig(n,e){return Xu(n,e,"months")}function ng(n,e){return Xu(n,e,"monthsShort")}function rg(n,e,t){return sa(n,e,t,"weekdays")}function sg(n,e,t){return sa(n,e,t,"weekdaysShort")}function ag(n,e,t){return sa(n,e,t,"weekdaysMin")}hi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=Ue(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}}),Ae.lang=Mt("moment.lang is deprecated. Use moment.locale instead.",hi),Ae.langData=Mt("moment.langData is deprecated. Use moment.localeData instead.",ni);var ri=Math.abs;function og(){var n=this._data;return this._milliseconds=ri(this._milliseconds),this._days=ri(this._days),this._months=ri(this._months),n.milliseconds=ri(n.milliseconds),n.seconds=ri(n.seconds),n.minutes=ri(n.minutes),n.hours=ri(n.hours),n.months=ri(n.months),n.years=ri(n.years),this}function ec(n,e,t,i){var r=Ht(e,t);return n._milliseconds+=i*r._milliseconds,n._days+=i*r._days,n._months+=i*r._months,n._bubble()}function lg(n,e){return ec(this,n,e,1)}function ug(n,e){return ec(this,n,e,-1)}function tc(n){return n<0?Math.floor(n):Math.ceil(n)}function cg(){var n=this._milliseconds,e=this._days,t=this._months,i=this._data,r,s,o,l,u;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=tc(aa(t)+e)*864e5,e=0,t=0),i.milliseconds=n%1e3,r=Dt(n/1e3),i.seconds=r%60,s=Dt(r/60),i.minutes=s%60,o=Dt(s/60),i.hours=o%24,e+=Dt(o/24),u=Dt(ic(e)),t+=u,e-=tc(aa(u)),l=Dt(t/12),t%=12,i.days=e,i.months=t,i.years=l,this}function ic(n){return n*4800/146097}function aa(n){return n*146097/4800}function dg(n){if(!this.isValid())return NaN;var e,t,i=this._milliseconds;if(n=Tt(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+i/864e5,t=this._months+ic(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(aa(this._months)),n){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return e*24+i/36e5;case"minute":return e*1440+i/6e4;case"second":return e*86400+i/1e3;case"millisecond":return Math.floor(e*864e5)+i;default:throw new Error("Unknown unit "+n)}}function si(n){return function(){return this.as(n)}}var nc=si("ms"),hg=si("s"),fg=si("m"),pg=si("h"),mg=si("d"),gg=si("w"),bg=si("M"),vg=si("Q"),yg=si("y"),wg=nc;function Cg(){return Ht(this)}function Ag(n){return n=Tt(n),this.isValid()?this[n+"s"]():NaN}function Ei(n){return function(){return this.isValid()?this._data[n]:NaN}}var Eg=Ei("milliseconds"),kg=Ei("seconds"),Sg=Ei("minutes"),xg=Ei("hours"),Rg=Ei("days"),Mg=Ei("months"),Tg=Ei("years");function Dg(){return Dt(this.days()/7)}var ai=Math.round,Hi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Og(n,e,t,i,r){return r.relativeTime(e||1,!!t,n,i)}function Lg(n,e,t,i){var r=Ht(n).abs(),s=ai(r.as("s")),o=ai(r.as("m")),l=ai(r.as("h")),u=ai(r.as("d")),c=ai(r.as("M")),d=ai(r.as("w")),f=ai(r.as("y")),p=s<=t.ss&&["s",s]||s<t.s&&["ss",s]||o<=1&&["m"]||o<t.m&&["mm",o]||l<=1&&["h"]||l<t.h&&["hh",l]||u<=1&&["d"]||u<t.d&&["dd",u];return t.w!=null&&(p=p||d<=1&&["w"]||d<t.w&&["ww",d]),p=p||c<=1&&["M"]||c<t.M&&["MM",c]||f<=1&&["y"]||["yy",f],p[2]=e,p[3]=+n>0,p[4]=i,Og.apply(null,p)}function Bg(n){return n===void 0?ai:typeof n=="function"?(ai=n,!0):!1}function Fg(n,e){return Hi[n]===void 0?!1:e===void 0?Hi[n]:(Hi[n]=e,n==="s"&&(Hi.ss=e-1),!0)}function _g(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,i=Hi,r,s;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(i=Object.assign({},Hi,e),e.s!=null&&e.ss==null&&(i.ss=e.s-1)),r=this.localeData(),s=Lg(this,!t,i,r),t&&(s=r.pastFuture(+this,s)),r.postformat(s)}var oa=Math.abs;function Vi(n){return(n>0)-(n<0)||+n}function er(){if(!this.isValid())return this.localeData().invalidDate();var n=oa(this._milliseconds)/1e3,e=oa(this._days),t=oa(this._months),i,r,s,o,l=this.asSeconds(),u,c,d,f;return l?(i=Dt(n/60),r=Dt(i/60),n%=60,i%=60,s=Dt(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",c=Vi(this._months)!==Vi(l)?"-":"",d=Vi(this._days)!==Vi(l)?"-":"",f=Vi(this._milliseconds)!==Vi(l)?"-":"",u+"P"+(s?c+s+"Y":"")+(t?c+t+"M":"")+(e?d+e+"D":"")+(r||i||n?"T":"")+(r?f+r+"H":"")+(i?f+i+"M":"")+(n?f+o+"S":"")):"P0D"}var Ye=Qn.prototype;Ye.isValid=Mp,Ye.abs=og,Ye.add=lg,Ye.subtract=ug,Ye.as=dg,Ye.asMilliseconds=nc,Ye.asSeconds=hg,Ye.asMinutes=fg,Ye.asHours=pg,Ye.asDays=mg,Ye.asWeeks=gg,Ye.asMonths=bg,Ye.asQuarters=vg,Ye.asYears=yg,Ye.valueOf=wg,Ye._bubble=cg,Ye.clone=Cg,Ye.get=Ag,Ye.milliseconds=Eg,Ye.seconds=kg,Ye.minutes=Sg,Ye.hours=xg,Ye.days=Rg,Ye.weeks=Dg,Ye.months=Mg,Ye.years=Tg,Ye.humanize=_g,Ye.toISOString=er,Ye.toString=er,Ye.toJSON=er,Ye.locale=Wu,Ye.localeData=Gu,Ye.toIsoString=Mt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er),Ye.lang=Uu,Te("X",0,0,"unix"),Te("x",0,0,"valueOf"),Ee("x",Vn),Ee("X",tf),$e("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)}),$e("x",function(n,e,t){t._d=new Date(Ue(n))});//! moment.js
|
|
25
25
|
Ae.version="2.30.1",_h(it),Ae.fn=ve,Ae.min=kp,Ae.max=Sp,Ae.now=xp,Ae.utc=Wt,Ae.unix=eg,Ae.months=ig,Ae.isDate=en,Ae.locale=hi,Ae.invalid=Fn,Ae.duration=Ht,Ae.isMoment=Nt,Ae.weekdays=rg,Ae.parseZone=tg,Ae.localeData=ni,Ae.isDuration=Kn,Ae.monthsShort=ng,Ae.weekdaysMin=ag,Ae.defineLocale=Ks,Ae.updateLocale=tp,Ae.locales=ip,Ae.weekdaysShort=sg,Ae.normalizeUnits=Tt,Ae.relativeTimeRounding=Bg,Ae.relativeTimeThreshold=Fg,Ae.calendarFormat=$p,Ae.prototype=ve,Ae.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const rc=n=>n===void 0||n==="auto"||n==="instant"||n==="smooth";function Pg(n,e){this.scrollLeft=n,this.scrollTop=e}const sc=(n,e,t="cannot convert to dictionary.")=>`Failed to execute '${n}' on '${e}': ${t}`,ac=(n,e,t)=>sc(n,e,`The provided value '${t}' is not a valid enum value of type ScrollBehavior.`),oc=(n,e,t)=>{var i;const r=`__SEAMLESS.BACKUP$${e}`;return!n[r]&&n[e]&&!(!((i=n[e])===null||i===void 0)&&i.__isPolyfill)&&(n[r]=n[e]),n[r]||t},Ng=n=>{const e=typeof n;return n!==null&&(e==="object"||e==="function")},la=n=>n.ownerDocument.scrollingElement||n.ownerDocument.documentElement;function Ig(n){if(typeof Event=="function")return new Event("scrollend",{bubbles:n,cancelable:!1});const e=document.createEvent("Event");return e.initEvent("scrollend",n,!1),e}const Hg=n=>.5*(1-Math.cos(Math.PI*n));function ua(){var n;let e;return!((n=window.performance)===null||n===void 0)&&n.now?e=()=>window.performance.now():e=()=>window.Date.now(),ua=e,e()}const Vg=500,lc=n=>{const t=(ua()-n.timeStamp)/(n.duration||Vg);if(t>1){n.method(n.targetX,n.targetY),n.callback();return}const i=(n.timingFunc||Hg)(t),r=n.startX+(n.targetX-n.startX)*i,s=n.startY+(n.targetY-n.startY)*i;n.method(r,s),n.rafId=window.requestAnimationFrame(()=>{lc(n)})},tr=n=>isFinite(n)?Number(n):0,zg=n=>{var e;return(e=n.isConnected)!==null&&e!==void 0?e:!n.ownerDocument||!(n.ownerDocument.compareDocumentPosition(n)&1)},jg=(n,e,t)=>{var i,r;if(!zg(n))return;const s=n.scrollLeft,o=n.scrollTop,l=tr((i=e.left)!==null&&i!==void 0?i:s),u=tr((r=e.top)!==null&&r!==void 0?r:o);if(l===s&&u===o)return;const c=oc(HTMLElement.prototype,"scroll",Pg),d=oc(Object.getPrototypeOf(n),"scroll",c).bind(n);if(e.behavior!=="smooth"){d(l,u);return}const f=()=>{window.removeEventListener("wheel",k),window.removeEventListener("touchmove",k)},p=()=>{f();const C=n.nodeType===9;n.dispatchEvent(Ig(C))},h=Object.assign(Object.assign({},t),{timeStamp:ua(),startX:s,startY:o,targetX:l,targetY:u,rafId:0,method:d,callback:p}),k=()=>{window.cancelAnimationFrame(h.rafId),f()};window.addEventListener("wheel",k,{passive:!0,once:!0}),window.addEventListener("touchmove",k,{passive:!0,once:!0}),lc(h)},Wg=n=>n.window===n,Ug=(n=>(e,t,i)=>{const[r,s]=Wg(e)?[la(e.document.documentElement),"Window"]:[e,"Element"],o=t??{};if(!Ng(o))throw new TypeError(sc(n,s));if(!rc(o.behavior))throw new TypeError(ac(n,s,o.behavior));n==="scrollBy"&&(o.left=tr(o.left)+r.scrollLeft,o.top=tr(o.top)+r.scrollTop),jg(r,o,i)})("scroll"),uc=n=>{switch(n){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0},cc=(n,e,t,i)=>{let r=0;switch(e||(r^=2),n){case 0:r=r>>1|(r&1)<<1,[t,i]=[i,t];break;case 1:case 3:r^=1;break;case 4:r^=2;break}return[r,t,i]},Gg=n=>(cc(uc(n.writingMode),n.direction!=="rtl",void 0,void 0)[0]&1)===1,Yg=(n,e,t)=>{const[i,r,s]=cc(e,t,n.block||"start",n.inline||"nearest");return[r,s].map((o,l)=>{switch(o){case"center":return 1;case"nearest":return 0;default:{const u=i>>l&1;return o==="start"==!u?2:3}}})},dc=(n,e,t,i,r,s,o)=>n!==0?n:r<e&&s>t||r>e&&s<t?null:r<=e&&o<=i||s>=t&&o>=i?2:s>t&&o<i||r<e&&o>i?3:null,hc=n=>n!=="visible"&&n!=="clip",Qg=n=>{var e;try{return((e=n.ownerDocument.defaultView)===null||e===void 0?void 0:e.frameElement)||null}catch{return null}},Kg=(n,e)=>n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth?hc(e.overflowY)||hc(e.overflowX)||n===la(n):!1,fc=n=>{const e=n.parentNode,t=n.parentElement;if(t===null&&e!==null){if(e.nodeType===11)return e.host;if(e.nodeType===9)return Qg(n)}return t},ca=(n,e,t)=>n<e?e:n>t?t:n,Jg=n=>["scroll-margin","scroll-snap-margin"].filter(e=>e in n.documentElement.style)[0],qg=(n,e,t)=>{const{top:i,right:r,bottom:s,left:o}=e,l=Jg(n.ownerDocument);if(!l)return[i,r,s,o];const u=c=>{const d=t.getPropertyValue(`${l}-${c}`);return parseInt(d,10)||0};return[i-u("top"),r+u("right"),s+u("bottom"),o-u("left")]},ir=(n,e,t)=>{switch(n){case 1:return(e+t)/2;case 3:return t;case 2:case 0:return e}},$g=(n,e)=>{var t,i,r;const s=(t=n.ownerDocument.defaultView)===null||t===void 0?void 0:t.visualViewport,[o,l,u,c]=n===la(n)?[0,0,(i=s?.width)!==null&&i!==void 0?i:n.clientWidth,(r=s?.height)!==null&&r!==void 0?r:n.clientHeight]:[e.left,e.top,n.clientWidth,n.clientHeight],d=o+n.clientLeft,f=l+n.clientTop,p=d+u,h=f+c;return[f,p,h,d]},Zg=(n,e)=>{const t=[];let i=n.ownerDocument,r=i.defaultView;if(!r)return t;const s=window.getComputedStyle(n),o=s.direction!=="rtl",l=uc(s.writingMode||s.getPropertyValue("-webkit-writing-mode")||s.getPropertyValue("-ms-writing-mode")),[u,c]=Yg(e,l,o);let[d,f,p,h]=qg(n,n.getBoundingClientRect(),s);for(let k=fc(n);k!==null;k=fc(k)){if(i!==k.ownerDocument){if(i=k.ownerDocument,r=i.defaultView,!r)break;const{left:T,top:R}=k.getBoundingClientRect();d+=R,f+=T,p+=R,h+=T}const C=r.getComputedStyle(k);if(C.position==="fixed")break;if(!Kg(k,C))continue;const A=k.getBoundingClientRect(),[w,m,D,g]=$g(k,A),M=dc(u,g,m,k.clientWidth,h,f,f-h),v=dc(c,w,D,k.clientHeight,d,p,p-d),x=M===null?0:ir(M,h,f)-ir(M,g,m),y=v===null?0:ir(v,d,p)-ir(v,w,D),S=Gg(C)?ca(x,-k.scrollWidth+k.clientWidth-k.scrollLeft,-k.scrollLeft):ca(x,-k.scrollLeft,k.scrollWidth-k.clientWidth-k.scrollLeft),b=ca(y,-k.scrollTop,k.scrollHeight-k.clientHeight-k.scrollTop);t.push([k,{left:k.scrollLeft+S,top:k.scrollTop+b,behavior:e.behavior}]),d=Math.max(d-b,w),f=Math.min(f-S,m),p=Math.min(p-b,D),h=Math.max(h-S,g)}return t},pc=(n,e,t)=>{const i=e||{};if(!rc(i.behavior))throw new TypeError(ac("scrollIntoView","Element",i.behavior));Zg(n,i).forEach(([s,o])=>{Ug(s,o,t)})},da=(n,e)=>e.some(t=>n.includes(t)),ha=(n,e)=>e.every(t=>n.includes(t));function fa(n){return Array.isArray(n)?n.map(e=>({id:e.id,label:e.name,all:e})):[]}function pa(){setTimeout(()=>{const e=document.querySelectorAll(".not-valid")[0];e&&pc(e,{behavior:"smooth",block:"center"})})}function ma(n,e){const t=document.querySelector(n);t&&pc(t,{behavior:"smooth",block:"center",...e})}function ga(){return navigator?.language?.split("-")[0]}function nr(){return["ru","en","kz"]}function ba(n){return nr().includes(n)}function hn(n,e){let t;return function(...i){t&&clearTimeout(t),t=setTimeout(()=>{n(...i)},e)}}function va(n,e){let t;return function(...i){t||(n(...i),t=!0,setTimeout(()=>t=!1,e))}}function rr(n){const e={};for(const[t,i]of Object.entries(n))i&&(e[t]=i);return e}function ya(n){return n.map(e=>rr(e))}function wa(n){return n.reduce((e,t)=>e+t,0)}const Ca=()=>({alias:"email"}),Aa=()=>({regex:"^[0-9]{9,16}$"}),Ea=()=>({regex:"^[0-9]{10,12}$"}),ka=()=>({mask:"999999999"}),Sa=()=>({mask:"999-999-999 99"}),xa=()=>({mask:"9999 999999"});function sr(n){return typeof n!="string"?!1:Ae(n).isValid()}function Ra(n,e={}){const{withTime:t=!1,locale:i="ru"}=e;if(!n||n.length===0||!sr(n))return"";const r=new Date(n),s=r.getHours()>=10?r.getHours():`0${r.getHours()}`,o=r.getMinutes()>=10?r.getMinutes():`0${r.getMinutes()}`,l=r.getFullYear(),u=r.getMonth()+1>=10?r.getMonth()+1:`0${r.getMonth()+1}`,c=r.getDate()>=10?r.getDate():`0${r.getDate()}`;return i==="ru"?t?`${c}.${u}.${l} ${s}:${o}`:`${c}.${u}.${l}`:t?`${u}.${c}.${l} ${s}:${o}`:`${u}.${c}.${l}`}function Ma(n,e={}){const{locale:t="ru",currency:i="RUB"}=e,r={ru:"ru-RU",en:"en-US",kz:"kk-KZ"},o={style:"currency",maximumSignificantDigits:2,currency:{ru:"RUB",en:"USD",kz:"KZT"}[t]||i};return new Intl.NumberFormat(r[t]||"en-US",o).format(Number(n))}function Ta(n){return Ae(new Date).format(n)}function Da(n,e){const t=new Date(n);return t.setDate(t.getDate()+e),t}function Oa(n,e){const t=new Date(n);return t.setMonth(t.getMonth()+e),t}function La(n,e){const t=new Date(n);return t.setFullYear(t.getFullYear()+e),t}function Ba(n,e,t,i){let r=Math.abs(n);return r%=100,r>=5&&r<=20?i:(r%=10,r===1?e:r>=2&&r<=4?t:i)}function Fa(n){return!n||n.length===0?n:n[0].toUpperCase()+n.slice(1)}function _a(n){return n.replace(/\b\w/g,e=>e.toUpperCase())}function Pa(n){return n.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>t===0?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,"")}function Na(n){return n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}function Ia(n){return n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1_$2").toLowerCase()}function Ha(n,e,t="..."){return n.length<=e?n:n.substring(0,e)+t}function Va(n){let e=n.replace(/\D/g,"").slice(0,8);return e.length>=5?`${e.slice(0,2)}.${e.slice(2,4)}.${e.slice(4)}`:e.length>=3?`${e.slice(0,2)}.${e.slice(2)}`:e}function za({str:n,limit:e=null}){return!e||!n?n:n.substring(0,e)}function ja(n,e){let t="";for(const[i,r]of n.entries()){const s=n.length>i+1?", ":" ";if(t+=`${r.name}${s}`,t.length>e){let o=n.length-(i+1);const l=o>0?`+${o}`:"";t=`${t.substr(0,e)}...${l}`;break}}return t}function Wa(n){return[...new Set(n)]}function Ua(n,e){return n.reduce((t,i)=>{const r=String(i[e]);return t[r]=t[r]||[],t[r].push(i),t},{})}function Ga(n,e,t="asc"){return[...n].sort((i,r)=>{const s=i[e],o=r[e];return s<o?t==="asc"?-1:1:s>o?t==="asc"?1:-1:0})}function Ya(n,e){const t=[];for(let i=0;i<n.length;i+=e)t.push(n.slice(i,i+e));return t}function Qa(n){return typeof n=="object"&&n!==null}function oi(n){return n===void 0?n:JSON.parse(JSON.stringify(n))}function ar(n,e){return JSON.stringify(n)===JSON.stringify(e)}function Ka(n,e){return n.sort().toString()===e.sort().toString()}function Ja(n,e){let t=n.length,i=e.length;if(t!==i)return!1;n.sort(),e.sort();for(let r=0;r<t;r++)if(n[r]!==e[r])return!1;return!0}const qa=n=>{const e=oi(n),t={};for(const[i,r]of Object.entries(e)){const s=i.split(".");let o=t;for(const[u,c]of s.slice(0,-1).entries()){if(!o[c]){const d=Number.isInteger(Number(s[+u+1]));o[c]=d?[]:{}}o=o[c]}const l=s.pop();l&&(o[l]=r)}return t},or=n=>{let e=oi(n),t={};for(const i in e){if(typeof e[i]!="object"||e[i]===null){t[i]=e[i];continue}const r=or(e[i]);for(const s in r)t[`${i}.${s}`]=r[s]}return t};function $a(n,e){const t={};return e.forEach(i=>{i in n&&(t[i]=n[i])}),t}function Za(n,e){const t={...n};return e.forEach(i=>{delete t[i]}),t}function zi(n,e,t,i=!1){if(i)return a.render(null,n),!0;const r=a.h(e,t);return a.render(r,n),!0}function pi(){const n=Date.now(),e=Math.floor(Math.random()*9999);return n+e}function Xa(n=""){return`${n}${Date.now()}-${Math.random().toString(36).substr(2,9)}`}function eo(n){throw new Error(`${n} is required.`)}function to(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)}function io(n){return/^[\+]?[1-9][\d]{0,15}$/.test(n.replace(/\D/g,""))}function no(n){try{return new URL(n),!0}catch{return!1}}function ro(n,e){try{localStorage.setItem(n,JSON.stringify(e))}catch(t){console.error("Error saving to localStorage:",t)}}function so(n,e){try{const t=localStorage.getItem(n);return t?JSON.parse(t):e||null}catch(t){return console.error("Error reading from localStorage:",t),e||null}}function ao(n){try{localStorage.removeItem(n)}catch(e){console.error("Error removing from localStorage:",e)}}function oo(n,e){try{sessionStorage.setItem(n,JSON.stringify(e))}catch(t){console.error("Error saving to sessionStorage:",t)}}function lo(n,e){try{const t=sessionStorage.getItem(n);return t?JSON.parse(t):e||null}catch(t){return console.error("Error reading from sessionStorage:",t),e||null}}function uo(n){try{sessionStorage.removeItem(n)}catch(e){console.error("Error removing from sessionStorage:",e)}}function co(n){const e=new Map;return((...t)=>{const i=JSON.stringify(t);if(e.has(i))return e.get(i);const r=n(...t);return e.set(i,r),r})}function ho(n){let e=!1,t;return((...i)=>(e||(e=!0,t=n(...i)),t))}function fo(n,e,t){return Math.min(Math.max(n,e),t)}function po(n,e,t){return n+(e-n)*t}function mo(n,e){return Math.floor(Math.random()*(e-n+1))+n}function go(n,e){return Math.round(n*Math.pow(10,e))/Math.pow(10,e)}function bo(n,e){return n.includes(e)}function vo(n,e){return e.some(t=>n.includes(t))}function lr(n,e){return!n||!e?.length?!1:Array.isArray(n)?n.some(t=>e.includes(t)):e.includes(n)}function yo(n){if(typeof n=="string")try{return JSON.parse(n)}catch{return n}return n}const Xg=Object.freeze(Object.defineProperty({__proto__:null,addDays:Da,addMonths:Oa,addYears:La,areArraysEqual:Ja,arrayToCutString:ja,camelCase:Pa,capitalize:_a,chunk:Ya,clamp:fo,cutString:za,debounce:hn,default:{prepareSelectOptions:fa,scrollToError:pa,scrollToElement:ma,getBrowserLocale:ga,getSupportedLocales:nr,isValidLocale:ba,debounce:hn,throttle:va,getValueFromObjectItem:rr,getValueFromArr:ya,sumOfArrayNumbers:wa,initEmailMask:Ca,initPhoneMask:Aa,initInnMask:Ea,initKppMask:ka,initSnilsMask:Sa,initPassportMask:xa,isValidDate:sr,formatDate:Ra,formatMoney:Ma,getNowDate:Ta,addDays:Da,addMonths:Oa,addYears:La,getDeclinationFromNumber:Ba,firstToUppercase:Fa,capitalize:_a,camelCase:Pa,kebabCase:Na,snakeCase:Ia,truncate:Ha,maskDate:Va,cutString:za,arrayToCutString:ja,findOne:da,findAll:ha,unique:Wa,groupBy:Ua,sortBy:Ga,chunk:Ya,isObject:Qa,getDeepCopyObject:oi,isEqual:ar,isArraysEqual:Ka,areArraysEqual:Ja,unflatenObject:qa,flattenObject:or,pick:$a,omit:Za,mountSubFilter:zi,getUniqueKey:pi,generateId:Xa,required:eo,isValidEmail:to,isValidPhone:io,isValidUrl:no,setLocalStorage:ro,getLocalStorage:so,removeLocalStorage:ao,setSessionStorage:oo,getSessionStorage:lo,removeSessionStorage:uo,memoize:co,once:ho,clamp:fo,lerp:po,random:mo,roundToDecimals:go,hasRole:bo,hasMatch:vo,hasPermission:lr,prepareResponse:yo},findAll:ha,findOne:da,firstToUppercase:Fa,flattenObject:or,formatDate:Ra,formatMoney:Ma,generateId:Xa,getBrowserLocale:ga,getDeclinationFromNumber:Ba,getDeepCopyObject:oi,getLocalStorage:so,getNowDate:Ta,getSessionStorage:lo,getSupportedLocales:nr,getUniqueKey:pi,getValueFromArr:ya,getValueFromObjectItem:rr,groupBy:Ua,hasMatch:vo,hasPermission:lr,hasRole:bo,initEmailMask:Ca,initInnMask:Ea,initKppMask:ka,initPassportMask:xa,initPhoneMask:Aa,initSnilsMask:Sa,isArraysEqual:Ka,isEqual:ar,isObject:Qa,isValidDate:sr,isValidEmail:to,isValidLocale:ba,isValidPhone:io,isValidUrl:no,kebabCase:Na,lerp:po,maskDate:Va,memoize:co,mountSubFilter:zi,omit:Za,once:ho,pick:$a,prepareResponse:yo,prepareSelectOptions:fa,random:mo,removeLocalStorage:ao,removeSessionStorage:uo,required:eo,roundToDecimals:go,scrollToElement:ma,scrollToError:pa,setLocalStorage:ro,setSessionStorage:oo,snakeCase:Ia,sortBy:Ga,sumOfArrayNumbers:wa,throttle:va,truncate:Ha,unflatenObject:qa,unique:Wa},Symbol.toStringTag,{value:"Module"})),eb={class:"lh-1","data-test":"FormError"},ki={__name:"FormError",props:{errors:{type:Array,default:()=>[]}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",eb,[n.errors?.length?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(n.errors,(i,r)=>(a.openBlock(),a.createElementBlock("div",{class:"text-danger small",key:r},a.toDisplayString(i),1))),128)):a.createCommentVNode("",!0)]))}},tb={class:"position-relative"},ib=["type","name","value","placeholder","disabled"],ur=Ie({__name:"CustomInput",props:{modelValue:{type:[String,Number],default:""},titleClass:{type:String,default:""},title:{type:String,default:""},name:{type:String,default:""},min:{type:[String,Number],default:""},max:{type:[String,Number],default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},inputClass:{type:[String,Object],default:""},type:{type:String,default:"text"},error:{type:[String,Object,Array],default:""},maskOptions:{type:[String,Object],default:()=>({})},maxNumber:{type:[String,Number],default:null}},emits:["change","blur","update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=a.ref(null),o=hn(p=>{let h=p.target.value;t.max&&(h=l(h),p.target.value=h),t.maxNumber&&(Number(h)>=Number(t.maxNumber)&&(h=t.maxNumber.toString()),p.target.value=h),i("update:modelValue",h)},100),l=p=>p.substring(0,t.max),u=()=>{i("update:modelValue",null),i("change",null),r.value&&(r.value.value=null)},c=()=>{if(t.maskOptions===""||!r.value)return!1;Fh({...t.maskOptions}).mask(r.value)};a.onMounted(()=>{c()}),a.watch(()=>t.maskOptions,(p,h)=>{ar(p,h)||c()},{deep:!0});const d=a.computed(()=>!(!t.modelValue||t.disabled)),f=a.computed(()=>Array.isArray(t.error)?t.error.filter(Boolean):typeof t.error=="string"&&t.error?[t.error]:[]);return(p,h)=>(a.openBlock(),a.createElementBlock("div",null,[n.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["mb-1 fw-bold",[n.titleClass]])},a.toDisplayString(n.title),3)):a.createCommentVNode("",!0),a.createElementVNode("div",tb,[a.createElementVNode("input",{ref_key:"inputEl",ref:r,type:n.type,name:n.name,class:a.normalizeClass(["form-control outline-none",{[n.inputClass]:n.inputClass,"not-valid":f.value.length>0,"is-invalid":f.value.length>0}]),value:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onBlur:h[0]||(h[0]=k=>i("blur")),onInput:h[1]||(h[1]=(...k)=>a.unref(o)&&a.unref(o)(...k)),onChange:h[2]||(h[2]=(...k)=>a.unref(o)&&a.unref(o)(...k))},null,42,ib),d.value?(a.openBlock(),a.createElementBlock("i",{key:0,class:a.normalizeClass(["bi bi-x-lg remove-button position-absolute",[n.modelValue?"":"d-none",n.disabled?"d-none":""]]),onClick:u},null,2)):a.createCommentVNode("",!0)]),a.createVNode(ki,{errors:f.value},null,8,["errors"])]))}},[["__scopeId","data-v-7d3c7059"]]),nb={class:"position-relative"},rb=["type","value"],sb=Ie({__name:"PasswordInput",props:{modelValue:{type:String,default:""},error:{type:[String,Array],default:""},initialVisibility:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n){const e=n,t=a.ref(e.initialVisibility);a.watch(()=>e.initialVisibility,r=>{t.value=r});const i=a.computed(()=>Array.isArray(e.error)?e.error.filter(Boolean):typeof e.error=="string"&&e.error?[e.error]:[]);return(r,s)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",nb,[a.createElementVNode("input",a.mergeProps({class:["form-control password-input outline-none",{"is-invalid":i.value.length>0}],type:t.value?"text":"password",value:n.modelValue},r.$attrs,{autocomplete:"new-password",onInput:s[0]||(s[0]=o=>r.$emit("update:modelValue",o.target.value))}),null,16,rb),a.createElementVNode("div",{class:"toggle-pass",onClick:s[1]||(s[1]=o=>t.value=!t.value)},[a.createElementVNode("i",{class:a.normalizeClass(["bi",[t.value?"bi-eye-slash-fill":"bi-eye-fill"]]),style:{"font-size":"20px"}},null,2)])]),a.createVNode(ki,{errors:i.value},null,8,["errors"])]))}},[["__scopeId","data-v-380938cd"]]),ab={class:"form-check d-flex align-items-center"},ob=["id","name","checked"],lb=["for"],ub={__name:"Checkbox",props:{modelValue:{type:Boolean,default:!1},name:{type:String,required:!0},label:{type:String,default:""},id:{type:String,default:()=>`checkbox-${Math.random().toString(36).slice(2,9)}`},size:{type:String,default:"sm",validator:n=>["sm","md","lg"].includes(n)},clickableLabel:{type:Boolean,default:!0},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=a.ref(null),s=a.computed(()=>t.size==="sm"?"5px":t.size==="md"?"10px":t.size==="lg"?"15px":"5px"),o=l=>{i("update:modelValue",l.target.checked)};return a.watch(()=>t.indeterminate,l=>{r.value&&(r.value.indeterminate=l)}),a.onMounted(()=>{r.value&&(r.value.indeterminate=t.indeterminate)}),(l,u)=>(a.openBlock(),a.createElementBlock("div",ab,[a.createElementVNode("input",{ref_key:"inputRef",ref:r,class:"form-check-input mr-2 mt-0",type:"checkbox",id:n.id,name:n.name,style:a.normalizeStyle({padding:s.value}),checked:n.modelValue,onChange:o},null,44,ob),n.label?(a.openBlock(),a.createElementBlock("label",{key:0,class:a.normalizeClass(["form-check-label lh-n",{"cursor-pointer":n.clickableLabel}]),for:n.clickableLabel?n.id:void 0},a.toDisplayString(n.label),11,lb)):a.createCommentVNode("",!0)]))}};var cb=Object.defineProperty,db=Object.defineProperties,hb=Object.getOwnPropertyDescriptors,mc=Object.getOwnPropertySymbols,fb=Object.prototype.hasOwnProperty,pb=Object.prototype.propertyIsEnumerable,gc=(n,e,t)=>e in n?cb(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ji=(n,e)=>{for(var t in e||(e={}))fb.call(e,t)&&gc(n,t,e[t]);if(mc)for(var t of mc(e))pb.call(e,t)&&gc(n,t,e[t]);return n},bc=(n,e)=>db(n,hb(e));const mb={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(n){this.autoscroll&&n&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var n;const e=((n=this.$refs.dropdownMenu)==null?void 0:n.children[this.typeAheadPointer])||!1;if(e){const t=this.getDropdownViewport(),{top:i,bottom:r,height:s}=e.getBoundingClientRect();if(i<t.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(r>t.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(t.height-s)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},gb={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let n=0;n<this.filteredOptions.length;n++)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},open(n){n&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let n=this.typeAheadPointer-1;n>=0;n--)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},typeAheadDown(){for(let n=this.typeAheadPointer+1;n<this.filteredOptions.length;n++)if(this.selectable(this.filteredOptions[n])){this.typeAheadPointer=n;break}},typeAheadSelect(){const n=this.filteredOptions[this.typeAheadPointer];n&&this.selectable(n)&&this.select(n)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},bb={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(n){this.mutableLoading=n}},methods:{toggleLoading(n=null){return n==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=n}}},wo=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},vb={},yb={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},wb=a.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),Cb=[wb];function Ab(n,e){return a.openBlock(),a.createElementBlock("svg",yb,Cb)}const Eb=wo(vb,[["render",Ab]]),kb={},Sb={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},xb=a.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),Rb=[xb];function Mb(n,e){return a.openBlock(),a.createElementBlock("svg",Sb,Rb)}const Tb=wo(kb,[["render",Mb]]),vc={Deselect:Eb,OpenIndicator:Tb},Db={mounted(n,{instance:e}){if(e.appendToBody){const{height:t,top:i,left:r,width:s}=e.$refs.toggle.getBoundingClientRect();let o=window.scrollX||window.pageXOffset,l=window.scrollY||window.pageYOffset;n.unbindPosition=e.calculatePosition(n,e,{width:s+"px",left:o+r+"px",top:l+i+t+"px"}),document.body.appendChild(n)}},unmounted(n,{instance:e}){e.appendToBody&&(n.unbindPosition&&typeof n.unbindPosition=="function"&&n.unbindPosition(),n.parentNode&&n.parentNode.removeChild(n))}};function Ob(n){const e={};return Object.keys(n).sort().forEach(t=>{e[t]=n[t]}),JSON.stringify(e)}let Lb=0;function Bb(){return++Lb}const Fb={components:ji({},vc),directives:{appendToBody:Db},mixins:[mb,gb,bb],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:n=>n},selectable:{type:Function,default:n=>!0},getOptionLabel:{type:Function,default(n){return typeof n=="object"?n.hasOwnProperty(this.label)?n[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(n)}.
|
|
26
26
|
https://vue-select.org/api/props.html#getoptionlabel`):n}},getOptionKey:{type:Function,default(n){if(typeof n!="object")return n;try{return n.hasOwnProperty("id")?n.id:Ob(n)}catch(e){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
|
|
27
|
-
https://vue-select.org/api/props.html#getoptionkey`,n,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(n,e,t){return(e||"").toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1}},filter:{type:Function,default(n,e){return n.filter(t=>{let i=this.getOptionLabel(t);return typeof i=="number"&&(i=i.toString()),this.filterBy(t,i,e)})}},createOption:{type:Function,default(n){return typeof this.optionList[0]=="object"?{[this.label]:n}:n}},resetOnOptionsChange:{default:!1,validator:n=>["function","boolean"].includes(typeof n)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:n,multiple:e}){return n&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(n,e)=>n},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(n,e,{width:t,top:i,left:r}){n.style.top=i,n.style.left=r,n.style.width=t}},dropdownShouldOpen:{type:Function,default({noDrop:n,open:e,mutableLoading:t}){return n?!1:e&&!t}},uid:{type:[String,Number],default:()=>Bb()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let n=this.modelValue;return this.isTrackingValues&&(n=this.$data._value),n!=null&&n!==""?[].concat(n):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const n={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:ji({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:n,listFooter:n,header:bc(ji({},n),{deselect:this.deselect}),footer:bc(ji({},n),{deselect:this.deselect})}},childComponents(){return ji(ji({},vc),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const n=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return n;const e=this.search.length?this.filter(n,this.search,this):n;if(this.taggable&&this.search.length){const t=this.createOption(this.search);this.optionExists(t)||e.unshift(t)}return e},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(n,e){const t=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(n,e,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&t()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(n){this.isTrackingValues&&this.setInternalValueFromOptions(n)}},multiple(){this.clearSelection()},open(n){this.$emit(n?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(n){Array.isArray(n)?this.$data._value=n.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(n)},select(n){this.$emit("option:selecting",n),this.isOptionSelected(n)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(n):(this.taggable&&!this.optionExists(n)&&(this.$emit("option:created",n),this.pushTag(n)),this.multiple&&(n=this.selectedValue.concat(n)),this.updateValue(n),this.$emit("option:selected",n)),this.onAfterSelect(n)},deselect(n){this.$emit("option:deselecting",n),this.updateValue(this.selectedValue.filter(e=>!this.optionComparator(e,n))),this.$emit("option:deselected",n)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(n){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(n){typeof this.modelValue>"u"&&(this.$data._value=n),n!==null&&(Array.isArray(n)?n=n.map(e=>this.reduce(e)):n=this.reduce(n)),this.$emit("update:modelValue",n)},toggleDropdown(n){const e=n.target!==this.searchEl;e&&n.preventDefault();const t=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||t.filter(Boolean).some(i=>i.contains(n.target)||i===n.target)){n.preventDefault();return}this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(n){return this.selectedValue.some(e=>this.optionComparator(e,n))},isOptionDeselectable(n){return this.isOptionSelected(n)&&this.deselectFromDropdown},optionComparator(n,e){return this.getOptionKey(n)===this.getOptionKey(e)},findOptionFromReducedValue(n){const e=i=>JSON.stringify(this.reduce(i))===JSON.stringify(n),t=[...this.options,...this.pushedTags].filter(e);return t.length===1?t[0]:t.find(i=>this.optionComparator(i,this.$data._value))||n},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let n=null;this.multiple&&(n=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(n)}},optionExists(n){return this.optionList.some(e=>this.optionComparator(e,n))},normalizeOptionForSlot(n){return typeof n=="object"?n:{[this.label]:n}},pushTag(n){this.pushedTags.push(n)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:n,multiple:e}=this;this.clearSearchOnBlur({clearSearchOnSelect:n,multiple:e})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(n){const e=r=>(r.preventDefault(),!this.isComposing&&this.typeAheadSelect()),t={8:r=>this.maybeDeleteValue(),9:r=>this.onTab(),27:r=>this.onEscape(),38:r=>(r.preventDefault(),this.typeAheadUp()),40:r=>(r.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(r=>t[r]=e);const i=this.mapKeydown(t,this);if(typeof i[n.keyCode]=="function")return i[n.keyCode](n)}}},_b=["dir"],Pb=["id","aria-expanded","aria-owns"],Nb={ref:"selectedOptions",class:"vs__selected-options"},Ib=["disabled","title","aria-label","onClick"],Hb={ref:"actions",class:"vs__actions"},Vb=["disabled"],zb={class:"vs__spinner"},jb=["id"],Wb=["id","aria-selected","onMouseover","onClick"],Ub={key:0,class:"vs__no-options"},Gb=a.createTextVNode(" Sorry, no matching options. "),Yb=["id"];function Qb(n,e,t,i,r,s){const o=a.resolveDirective("append-to-body");return a.openBlock(),a.createElementBlock("div",{dir:t.dir,class:a.normalizeClass(["v-select",s.stateClasses])},[a.renderSlot(n.$slots,"header",a.normalizeProps(a.guardReactiveProps(s.scope.header))),a.createElementVNode("div",{id:`vs${t.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":s.dropdownOpen.toString(),"aria-owns":`vs${t.uid}__listbox`,"aria-label":"Search for option",onMousedown:e[1]||(e[1]=l=>s.toggleDropdown(l))},[a.createElementVNode("div",Nb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.selectedValue,(l,u)=>a.renderSlot(n.$slots,"selected-option-container",{option:s.normalizeOptionForSlot(l),deselect:s.deselect,multiple:t.multiple,disabled:t.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{key:t.getOptionKey(l),class:"vs__selected"},[a.renderSlot(n.$slots,"selected-option",a.normalizeProps(a.guardReactiveProps(s.normalizeOptionForSlot(l))),()=>[a.createTextVNode(a.toDisplayString(t.getOptionLabel(l)),1)]),t.multiple?(a.openBlock(),a.createElementBlock("button",{key:0,ref_for:!0,ref:c=>r.deselectButtons[u]=c,disabled:t.disabled,type:"button",class:"vs__deselect",title:`Deselect ${t.getOptionLabel(l)}`,"aria-label":`Deselect ${t.getOptionLabel(l)}`,onClick:c=>s.deselect(l)},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.childComponents.Deselect)))],8,Ib)):a.createCommentVNode("",!0)]))])),256)),a.renderSlot(n.$slots,"search",a.normalizeProps(a.guardReactiveProps(s.scope.search)),()=>[a.createElementVNode("input",a.mergeProps({class:"vs__search"},s.scope.search.attributes,a.toHandlers(s.scope.search.events)),null,16)])],512),a.createElementVNode("div",Hb,[a.withDirectives(a.createElementVNode("button",{ref:"clearButton",disabled:t.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:e[0]||(e[0]=(...l)=>s.clearSelection&&s.clearSelection(...l))},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.childComponents.Deselect)))],8,Vb),[[a.vShow,s.showClearButton]]),a.renderSlot(n.$slots,"open-indicator",a.normalizeProps(a.guardReactiveProps(s.scope.openIndicator)),()=>[t.noDrop?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.childComponents.OpenIndicator),a.normalizeProps(a.mergeProps({key:0},s.scope.openIndicator.attributes)),null,16))]),a.renderSlot(n.$slots,"spinner",a.normalizeProps(a.guardReactiveProps(s.scope.spinner)),()=>[a.withDirectives(a.createElementVNode("div",zb,"Loading...",512),[[a.vShow,n.mutableLoading]])])],512)],40,Pb),a.createVNode(a.Transition,{name:t.transition},{default:a.withCtx(()=>[s.dropdownOpen?a.withDirectives((a.openBlock(),a.createElementBlock("ul",{id:`vs${t.uid}__listbox`,ref:"dropdownMenu",key:`vs${t.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:e[2]||(e[2]=a.withModifiers((...l)=>s.onMousedown&&s.onMousedown(...l),["prevent"])),onMouseup:e[3]||(e[3]=(...l)=>s.onMouseUp&&s.onMouseUp(...l))},[a.renderSlot(n.$slots,"list-header",a.normalizeProps(a.guardReactiveProps(s.scope.listHeader))),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.filteredOptions,(l,u)=>(a.openBlock(),a.createElementBlock("li",{id:`vs${t.uid}__option-${u}`,key:t.getOptionKey(l),role:"option",class:a.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":s.isOptionDeselectable(l)&&u===n.typeAheadPointer,"vs__dropdown-option--selected":s.isOptionSelected(l),"vs__dropdown-option--highlight":u===n.typeAheadPointer,"vs__dropdown-option--disabled":!t.selectable(l)}]),"aria-selected":u===n.typeAheadPointer?!0:null,onMouseover:c=>t.selectable(l)?n.typeAheadPointer=u:null,onClick:a.withModifiers(c=>t.selectable(l)?s.select(l):null,["prevent","stop"])},[a.renderSlot(n.$slots,"option",a.normalizeProps(a.guardReactiveProps(s.normalizeOptionForSlot(l))),()=>[a.createTextVNode(a.toDisplayString(t.getOptionLabel(l)),1)])],42,Wb))),128)),s.filteredOptions.length===0?(a.openBlock(),a.createElementBlock("li",Ub,[a.renderSlot(n.$slots,"no-options",a.normalizeProps(a.guardReactiveProps(s.scope.noOptions)),()=>[Gb])])):a.createCommentVNode("",!0),a.renderSlot(n.$slots,"list-footer",a.normalizeProps(a.guardReactiveProps(s.scope.listFooter)))],40,jb)),[[o]]):(a.openBlock(),a.createElementBlock("ul",{key:1,id:`vs${t.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,Yb))]),_:3},8,["name"]),a.renderSlot(n.$slots,"footer",a.normalizeProps(a.guardReactiveProps(s.scope.footer)))],10,_b)}const Kb=wo(Fb,[["render",Qb]]);var yt="top",Ot="bottom",Lt="right",wt="left",Co="auto",fn=[yt,Ot,Lt,wt],Wi="start",pn="end",Jb="clippingParents",yc="viewport",mn="popper",qb="reference",wc=fn.reduce(function(n,e){return n.concat([e+"-"+Wi,e+"-"+pn])},[]),Cc=[].concat(fn,[Co]).reduce(function(n,e){return n.concat([e,e+"-"+Wi,e+"-"+pn])},[]),$b="beforeRead",Zb="read",Xb="afterRead",ev="beforeMain",tv="main",iv="afterMain",nv="beforeWrite",rv="write",sv="afterWrite",av=[$b,Zb,Xb,ev,tv,iv,nv,rv,sv];function Qt(n){return n?(n.nodeName||"").toLowerCase():null}function kt(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Si(n){var e=kt(n).Element;return n instanceof e||n instanceof Element}function Bt(n){var e=kt(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Ao(n){if(typeof ShadowRoot>"u")return!1;var e=kt(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function ov(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},s=e.elements[t];!Bt(s)||!Qt(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(o){var l=r[o];l===!1?s.removeAttribute(o):s.setAttribute(o,l===!0?"":l)}))})}function lv(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],s=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),l=o.reduce(function(u,c){return u[c]="",u},{});!Bt(r)||!Qt(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}const uv={name:"applyStyles",enabled:!0,phase:"write",fn:ov,effect:lv,requires:["computeStyles"]};function Kt(n){return n.split("-")[0]}var xi=Math.max,cr=Math.min,Ui=Math.round;function Eo(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ac(){return!/^((?!chrome|android).)*safari/i.test(Eo())}function Gi(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),r=1,s=1;e&&Bt(n)&&(r=n.offsetWidth>0&&Ui(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&Ui(i.height)/n.offsetHeight||1);var o=Si(n)?kt(n):window,l=o.visualViewport,u=!Ac()&&t,c=(i.left+(u&&l?l.offsetLeft:0))/r,d=(i.top+(u&&l?l.offsetTop:0))/s,f=i.width/r,p=i.height/s;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function ko(n){var e=Gi(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function Ec(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Ao(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function li(n){return kt(n).getComputedStyle(n)}function cv(n){return["table","td","th"].indexOf(Qt(n))>=0}function mi(n){return((Si(n)?n.ownerDocument:n.document)||window.document).documentElement}function dr(n){return Qt(n)==="html"?n:n.assignedSlot||n.parentNode||(Ao(n)?n.host:null)||mi(n)}function kc(n){return!Bt(n)||li(n).position==="fixed"?null:n.offsetParent}function dv(n){var e=/firefox/i.test(Eo()),t=/Trident/i.test(Eo());if(t&&Bt(n)){var i=li(n);if(i.position==="fixed")return null}var r=dr(n);for(Ao(r)&&(r=r.host);Bt(r)&&["html","body"].indexOf(Qt(r))<0;){var s=li(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function gn(n){for(var e=kt(n),t=kc(n);t&&cv(t)&&li(t).position==="static";)t=kc(t);return t&&(Qt(t)==="html"||Qt(t)==="body"&&li(t).position==="static")?e:t||dv(n)||e}function So(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function bn(n,e,t){return xi(n,cr(e,t))}function hv(n,e,t){var i=bn(n,e,t);return i>t?t:i}function Sc(){return{top:0,right:0,bottom:0,left:0}}function xc(n){return Object.assign({},Sc(),n)}function Rc(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var fv=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,xc(typeof e!="number"?e:Rc(e,fn))};function pv(n){var e,t=n.state,i=n.name,r=n.options,s=t.elements.arrow,o=t.modifiersData.popperOffsets,l=Kt(t.placement),u=So(l),c=[wt,Lt].indexOf(l)>=0,d=c?"height":"width";if(!(!s||!o)){var f=fv(r.padding,t),p=ko(s),h=u==="y"?yt:wt,k=u==="y"?Ot:Lt,C=t.rects.reference[d]+t.rects.reference[u]-o[u]-t.rects.popper[d],A=o[u]-t.rects.reference[u],w=gn(s),m=w?u==="y"?w.clientHeight||0:w.clientWidth||0:0,D=C/2-A/2,g=f[h],M=m-p[d]-f[k],v=m/2-p[d]/2+D,x=bn(g,v,M),y=u;t.modifiersData[i]=(e={},e[y]=x,e.centerOffset=x-v,e)}}function mv(n){var e=n.state,t=n.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Ec(e.elements.popper,r)&&(e.elements.arrow=r))}const gv={name:"arrow",enabled:!0,phase:"main",fn:pv,effect:mv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yi(n){return n.split("-")[1]}var bv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vv(n,e){var t=n.x,i=n.y,r=e.devicePixelRatio||1;return{x:Ui(t*r)/r||0,y:Ui(i*r)/r||0}}function Mc(n){var e,t=n.popper,i=n.popperRect,r=n.placement,s=n.variation,o=n.offsets,l=n.position,u=n.gpuAcceleration,c=n.adaptive,d=n.roundOffsets,f=n.isFixed,p=o.x,h=p===void 0?0:p,k=o.y,C=k===void 0?0:k,A=typeof d=="function"?d({x:h,y:C}):{x:h,y:C};h=A.x,C=A.y;var w=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),D=wt,g=yt,M=window;if(c){var v=gn(t),x="clientHeight",y="clientWidth";if(v===kt(t)&&(v=mi(t),li(v).position!=="static"&&l==="absolute"&&(x="scrollHeight",y="scrollWidth")),v=v,r===yt||(r===wt||r===Lt)&&s===pn){g=Ot;var S=f&&v===M&&M.visualViewport?M.visualViewport.height:v[x];C-=S-i.height,C*=u?1:-1}if(r===wt||(r===yt||r===Ot)&&s===pn){D=Lt;var b=f&&v===M&&M.visualViewport?M.visualViewport.width:v[y];h-=b-i.width,h*=u?1:-1}}var T=Object.assign({position:l},c&&bv),R=d===!0?vv({x:h,y:C},kt(t)):{x:h,y:C};if(h=R.x,C=R.y,u){var L;return Object.assign({},T,(L={},L[g]=m?"0":"",L[D]=w?"0":"",L.transform=(M.devicePixelRatio||1)<=1?"translate("+h+"px, "+C+"px)":"translate3d("+h+"px, "+C+"px, 0)",L))}return Object.assign({},T,(e={},e[g]=m?C+"px":"",e[D]=w?h+"px":"",e.transform="",e))}function yv(n){var e=n.state,t=n.options,i=t.gpuAcceleration,r=i===void 0?!0:i,s=t.adaptive,o=s===void 0?!0:s,l=t.roundOffsets,u=l===void 0?!0:l,c={placement:Kt(e.placement),variation:Yi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Mc(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Mc(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const wv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yv,data:{}};var hr={passive:!0};function Cv(n){var e=n.state,t=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,o=i.resize,l=o===void 0?!0:o,u=kt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",t.update,hr)}),l&&u.addEventListener("resize",t.update,hr),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",t.update,hr)}),l&&u.removeEventListener("resize",t.update,hr)}}const Av={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Cv,data:{}};var Ev={left:"right",right:"left",bottom:"top",top:"bottom"};function fr(n){return n.replace(/left|right|bottom|top/g,function(e){return Ev[e]})}var kv={start:"end",end:"start"};function Tc(n){return n.replace(/start|end/g,function(e){return kv[e]})}function xo(n){var e=kt(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function Ro(n){return Gi(mi(n)).left+xo(n).scrollLeft}function Sv(n,e){var t=kt(n),i=mi(n),r=t.visualViewport,s=i.clientWidth,o=i.clientHeight,l=0,u=0;if(r){s=r.width,o=r.height;var c=Ac();(c||!c&&e==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}return{width:s,height:o,x:l+Ro(n),y:u}}function xv(n){var e,t=mi(n),i=xo(n),r=(e=n.ownerDocument)==null?void 0:e.body,s=xi(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=xi(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+Ro(n),u=-i.scrollTop;return li(r||t).direction==="rtl"&&(l+=xi(t.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:l,y:u}}function Mo(n){var e=li(n),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function Dc(n){return["html","body","#document"].indexOf(Qt(n))>=0?n.ownerDocument.body:Bt(n)&&Mo(n)?n:Dc(dr(n))}function vn(n,e){var t;e===void 0&&(e=[]);var i=Dc(n),r=i===((t=n.ownerDocument)==null?void 0:t.body),s=kt(i),o=r?[s].concat(s.visualViewport||[],Mo(i)?i:[]):i,l=e.concat(o);return r?l:l.concat(vn(dr(o)))}function To(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Rv(n,e){var t=Gi(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function Oc(n,e,t){return e===yc?To(Sv(n,t)):Si(e)?Rv(e,t):To(xv(mi(n)))}function Mv(n){var e=vn(dr(n)),t=["absolute","fixed"].indexOf(li(n).position)>=0,i=t&&Bt(n)?gn(n):n;return Si(i)?e.filter(function(r){return Si(r)&&Ec(r,i)&&Qt(r)!=="body"}):[]}function Tv(n,e,t,i){var r=e==="clippingParents"?Mv(n):[].concat(e),s=[].concat(r,[t]),o=s[0],l=s.reduce(function(u,c){var d=Oc(n,c,i);return u.top=xi(d.top,u.top),u.right=cr(d.right,u.right),u.bottom=cr(d.bottom,u.bottom),u.left=xi(d.left,u.left),u},Oc(n,o,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Lc(n){var e=n.reference,t=n.element,i=n.placement,r=i?Kt(i):null,s=i?Yi(i):null,o=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,u;switch(r){case yt:u={x:o,y:e.y-t.height};break;case Ot:u={x:o,y:e.y+e.height};break;case Lt:u={x:e.x+e.width,y:l};break;case wt:u={x:e.x-t.width,y:l};break;default:u={x:e.x,y:e.y}}var c=r?So(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case Wi:u[c]=u[c]-(e[d]/2-t[d]/2);break;case pn:u[c]=u[c]+(e[d]/2-t[d]/2);break}}return u}function yn(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?n.placement:i,s=t.strategy,o=s===void 0?n.strategy:s,l=t.boundary,u=l===void 0?Jb:l,c=t.rootBoundary,d=c===void 0?yc:c,f=t.elementContext,p=f===void 0?mn:f,h=t.altBoundary,k=h===void 0?!1:h,C=t.padding,A=C===void 0?0:C,w=xc(typeof A!="number"?A:Rc(A,fn)),m=p===mn?qb:mn,D=n.rects.popper,g=n.elements[k?m:p],M=Tv(Si(g)?g:g.contextElement||mi(n.elements.popper),u,d,o),v=Gi(n.elements.reference),x=Lc({reference:v,element:D,placement:r}),y=To(Object.assign({},D,x)),S=p===mn?y:v,b={top:M.top-S.top+w.top,bottom:S.bottom-M.bottom+w.bottom,left:M.left-S.left+w.left,right:S.right-M.right+w.right},T=n.modifiersData.offset;if(p===mn&&T){var R=T[r];Object.keys(b).forEach(function(L){var N=[Lt,Ot].indexOf(L)>=0?1:-1,W=[yt,Ot].indexOf(L)>=0?"y":"x";b[L]+=R[W]*N})}return b}function Dv(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,s=t.rootBoundary,o=t.padding,l=t.flipVariations,u=t.allowedAutoPlacements,c=u===void 0?Cc:u,d=Yi(i),f=d?l?wc:wc.filter(function(k){return Yi(k)===d}):fn,p=f.filter(function(k){return c.indexOf(k)>=0});p.length===0&&(p=f);var h=p.reduce(function(k,C){return k[C]=yn(n,{placement:C,boundary:r,rootBoundary:s,padding:o})[Kt(C)],k},{});return Object.keys(h).sort(function(k,C){return h[k]-h[C]})}function Ov(n){if(Kt(n)===Co)return[];var e=fr(n);return[Tc(n),e,Tc(e)]}function Lv(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,s=r===void 0?!0:r,o=t.altAxis,l=o===void 0?!0:o,u=t.fallbackPlacements,c=t.padding,d=t.boundary,f=t.rootBoundary,p=t.altBoundary,h=t.flipVariations,k=h===void 0?!0:h,C=t.allowedAutoPlacements,A=e.options.placement,w=Kt(A),m=w===A,D=u||(m||!k?[fr(A)]:Ov(A)),g=[A].concat(D).reduce(function(q,X){return q.concat(Kt(X)===Co?Dv(e,{placement:X,boundary:d,rootBoundary:f,padding:c,flipVariations:k,allowedAutoPlacements:C}):X)},[]),M=e.rects.reference,v=e.rects.popper,x=new Map,y=!0,S=g[0],b=0;b<g.length;b++){var T=g[b],R=Kt(T),L=Yi(T)===Wi,N=[yt,Ot].indexOf(R)>=0,W=N?"width":"height",G=yn(e,{placement:T,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),I=N?L?Lt:wt:L?Ot:yt;M[W]>v[W]&&(I=fr(I));var H=fr(I),K=[];if(s&&K.push(G[R]<=0),l&&K.push(G[I]<=0,G[H]<=0),K.every(function(q){return q})){S=T,y=!1;break}x.set(T,K)}if(y)for(var F=k?3:1,P=function(X){var ae=g.find(function($){var z=x.get($);if(z)return z.slice(0,X).every(function(J){return J})});if(ae)return S=ae,"break"},Q=F;Q>0;Q--){var j=P(Q);if(j==="break")break}e.placement!==S&&(e.modifiersData[i]._skip=!0,e.placement=S,e.reset=!0)}}const Bv={name:"flip",enabled:!0,phase:"main",fn:Lv,requiresIfExists:["offset"],data:{_skip:!1}};function Bc(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Fc(n){return[yt,Lt,Ot,wt].some(function(e){return n[e]>=0})}function Fv(n){var e=n.state,t=n.name,i=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,o=yn(e,{elementContext:"reference"}),l=yn(e,{altBoundary:!0}),u=Bc(o,i),c=Bc(l,r,s),d=Fc(u),f=Fc(c);e.modifiersData[t]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const _v={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fv};function Pv(n,e,t){var i=Kt(n),r=[wt,yt].indexOf(i)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=s[0],l=s[1];return o=o||0,l=(l||0)*r,[wt,Lt].indexOf(i)>=0?{x:l,y:o}:{x:o,y:l}}function Nv(n){var e=n.state,t=n.options,i=n.name,r=t.offset,s=r===void 0?[0,0]:r,o=Cc.reduce(function(d,f){return d[f]=Pv(f,e.rects,s),d},{}),l=o[e.placement],u=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=o}const Iv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nv};function Hv(n){var e=n.state,t=n.name;e.modifiersData[t]=Lc({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Vv={name:"popperOffsets",enabled:!0,phase:"read",fn:Hv,data:{}};function zv(n){return n==="x"?"y":"x"}function jv(n){var e=n.state,t=n.options,i=n.name,r=t.mainAxis,s=r===void 0?!0:r,o=t.altAxis,l=o===void 0?!1:o,u=t.boundary,c=t.rootBoundary,d=t.altBoundary,f=t.padding,p=t.tether,h=p===void 0?!0:p,k=t.tetherOffset,C=k===void 0?0:k,A=yn(e,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),w=Kt(e.placement),m=Yi(e.placement),D=!m,g=So(w),M=zv(g),v=e.modifiersData.popperOffsets,x=e.rects.reference,y=e.rects.popper,S=typeof C=="function"?C(Object.assign({},e.rects,{placement:e.placement})):C,b=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,R={x:0,y:0};if(v){if(s){var L,N=g==="y"?yt:wt,W=g==="y"?Ot:Lt,G=g==="y"?"height":"width",I=v[g],H=I+A[N],K=I-A[W],F=h?-y[G]/2:0,P=m===Wi?x[G]:y[G],Q=m===Wi?-y[G]:-x[G],j=e.elements.arrow,q=h&&j?ko(j):{width:0,height:0},X=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Sc(),ae=X[N],$=X[W],z=bn(0,x[G],q[G]),J=D?x[G]/2-F-z-ae-b.mainAxis:P-z-ae-b.mainAxis,ue=D?-x[G]/2+F+z+$+b.mainAxis:Q+z+$+b.mainAxis,V=e.elements.arrow&&gn(e.elements.arrow),U=V?g==="y"?V.clientTop||0:V.clientLeft||0:0,le=(L=T?.[g])!=null?L:0,oe=I+J-le-U,ye=I+ue-le,we=bn(h?cr(H,oe):H,I,h?xi(K,ye):K);v[g]=we,R[g]=we-I}if(l){var xe,Fe=g==="x"?yt:wt,_e=g==="x"?Ot:Lt,Ne=v[M],de=M==="y"?"height":"width",Z=Ne+A[Fe],ie=Ne-A[_e],me=[yt,wt].indexOf(w)!==-1,he=(xe=T?.[M])!=null?xe:0,ke=me?Z:Ne-x[de]-y[de]-he+b.altAxis,Me=me?Ne+x[de]+y[de]-he-b.altAxis:ie,se=h&&me?hv(ke,Ne,Me):bn(h?ke:Z,Ne,h?Me:ie);v[M]=se,R[M]=se-Ne}e.modifiersData[i]=R}}const Wv={name:"preventOverflow",enabled:!0,phase:"main",fn:jv,requiresIfExists:["offset"]};function Uv(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Gv(n){return n===kt(n)||!Bt(n)?xo(n):Uv(n)}function Yv(n){var e=n.getBoundingClientRect(),t=Ui(e.width)/n.offsetWidth||1,i=Ui(e.height)/n.offsetHeight||1;return t!==1||i!==1}function Qv(n,e,t){t===void 0&&(t=!1);var i=Bt(e),r=Bt(e)&&Yv(e),s=mi(e),o=Gi(n,r,t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!t)&&((Qt(e)!=="body"||Mo(s))&&(l=Gv(e)),Bt(e)?(u=Gi(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=Ro(s))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function Kv(n){var e=new Map,t=new Set,i=[];n.forEach(function(s){e.set(s.name,s)});function r(s){t.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(l){if(!t.has(l)){var u=e.get(l);u&&r(u)}}),i.push(s)}return n.forEach(function(s){t.has(s.name)||r(s)}),i}function Jv(n){var e=Kv(n);return av.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function qv(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function $v(n){var e=n.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var _c={placement:"bottom",modifiers:[],strategy:"absolute"};function Pc(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Zv(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,i=t===void 0?[]:t,r=e.defaultOptions,s=r===void 0?_c:r;return function(l,u,c){c===void 0&&(c=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},_c,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(w){var m=typeof w=="function"?w(d.options):w;C(),d.options=Object.assign({},s,d.options,m),d.scrollParents={reference:Si(l)?vn(l):l.contextElement?vn(l.contextElement):[],popper:vn(u)};var D=Jv($v([].concat(i,d.options.modifiers)));return d.orderedModifiers=D.filter(function(g){return g.enabled}),k(),h.update()},forceUpdate:function(){if(!p){var w=d.elements,m=w.reference,D=w.popper;if(Pc(m,D)){d.rects={reference:Qv(m,gn(D),d.options.strategy==="fixed"),popper:ko(D)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(b){return d.modifiersData[b.name]=Object.assign({},b.data)});for(var g=0;g<d.orderedModifiers.length;g++){if(d.reset===!0){d.reset=!1,g=-1;continue}var M=d.orderedModifiers[g],v=M.fn,x=M.options,y=x===void 0?{}:x,S=M.name;typeof v=="function"&&(d=v({state:d,options:y,name:S,instance:h})||d)}}}},update:qv(function(){return new Promise(function(A){h.forceUpdate(),A(d)})}),destroy:function(){C(),p=!0}};if(!Pc(l,u))return h;h.setOptions(c).then(function(A){!p&&c.onFirstUpdate&&c.onFirstUpdate(A)});function k(){d.orderedModifiers.forEach(function(A){var w=A.name,m=A.options,D=m===void 0?{}:m,g=A.effect;if(typeof g=="function"){var M=g({state:d,name:w,instance:h,options:D}),v=function(){};f.push(M||v)}})}function C(){f.forEach(function(A){return A()}),f=[]}return h}}var Xv=[Av,Vv,wv,uv,Iv,Bv,Wv,gv,_v],ey=Zv({defaultModifiers:Xv});function ty(n,e,{width:t}){n.style.width=t;const i=ey(e.$refs.toggle,n,{placement:e.$attrs.placement,modifiers:[{name:"offset",options:{offset:[0,-1]}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:r}){e.$el.classList.toggle("drop-up",r.placement==="top")}}]});return()=>i.destroy()}const iy={class:"r3-vselect d-flex flex-column"},ny={key:0,class:"text-muted"},ry={key:0,class:"py-1"},sy={class:"text-wrap"},ay=["innerHTML"],oy={key:1,class:"text-muted p-0"},ly={class:"text-wrap"},uy={key:2,class:"text-muted p-0 small d-flex justify-content-center"},cy={class:"text-wrap px-2"},dy={key:0,class:"selected"},hy=["innerHTML"],fy={key:0,style:{"border-left-color":"rgba(88, 151, 251, 0.71)"},class:"vs__spinner"},Vt={__name:"VSelect",props:{modelValue:[String,Object,Number],reduce:{type:Function,default:n=>n.id},hint:{type:String,default:""},classes:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},title:{type:String},titleClass:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!0},searchTimout:{type:Number,default:1e3},dropDownPlacement:{type:String,default:"bottom",validator(n,e){return["bottom","top"].includes(n)}},teleportDropdown:{type:String,default:"auto",validator:n=>["auto","yes","no"].includes(n)},error:{type:[Array,String],default:null}},emits:["update:modelValue","search","blur","focus"],setup(n,{emit:e}){const t=e,i=n,r=i.multiple?[]:null;a.getCurrentInstance();const s=a.ref(r),o=hn(c,i.searchTimout),l=a.computed(()=>i.teleportDropdown==="yes"?!0:i.teleportDropdown==="no"?!1:i.dropDownPlacement==="top"),u=a.computed(()=>{const p=oi(i.options);return p?p.map(h=>{const k=i.modelValue;return k?{...h,disabled:h.id===k}:h}):[]});function c(p){t("search",p)}const d=p=>!(!p.id||p.disabled),f=a.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean):typeof i.error=="string"&&i.error?[i.error]:[]);return a.watch(()=>i.modelValue,p=>{s.value=i.modelValue},{deep:!0}),a.watch(()=>s.value,p=>{t("update:modelValue",p)},{deep:!0}),a.onMounted(()=>{s.value=i.modelValue}),(p,h)=>(a.openBlock(),a.createElementBlock("div",iy,[n.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["r3-vselect__title",n.titleClass])},a.toDisplayString(n.title),3)):a.createCommentVNode("",!0),a.createVNode(a.unref(Kb),a.mergeProps({class:"style-chooser"},p.$attrs,{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=k=>s.value=k),reduce:n.reduce,options:u.value,multiple:n.multiple,placeholder:n.placeholder,disabled:n.disabled,loading:n.isLoading,clearable:n.allowClear,placement:n.dropDownPlacement,appendToBody:l.value,"calculate-position":a.unref(ty),selectable:k=>d(k),"onSearch:blur":h[1]||(h[1]=k=>t("blur")),"onSearch:focus":h[2]||(h[2]=k=>t("focus")),onSearch:a.unref(o),class:[...n.classes,n.error?"not-valid":""]}),{"no-options":a.withCtx(k=>[k?(a.openBlock(),a.createElementBlock("span",ny,a.toDisplayString(n.hint),1)):a.createCommentVNode("",!0)]),option:a.withCtx(k=>[k!=null?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[k.id?(a.openBlock(),a.createElementBlock("div",ry,[a.createElementVNode("div",sy,a.toDisplayString(k.label),1),k.html?(a.openBlock(),a.createElementBlock("div",{key:0,innerHTML:k.html},null,8,ay)):a.createCommentVNode("",!0)])):k.disabled?(a.openBlock(),a.createElementBlock("div",oy,[a.createElementVNode("div",ly,a.toDisplayString(k.label)+"disabled",1)])):(a.openBlock(),a.createElementBlock("div",uy,[h[3]||(h[3]=a.createElementVNode("span",null,"-",-1)),a.createElementVNode("span",cy,a.toDisplayString(k.label),1),h[4]||(h[4]=a.createElementVNode("span",null,"-",-1))]))],64)):a.createCommentVNode("",!0)]),"selected-option":a.withCtx(k=>[k!=null?(a.openBlock(),a.createElementBlock("div",dy,[a.createElementVNode("div",null,a.toDisplayString(k.label),1),k.html?(a.openBlock(),a.createElementBlock("div",{key:0,innerHTML:k.html},null,8,hy)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]),spinner:a.withCtx(k=>[k!=null&&k.loading?(a.openBlock(),a.createElementBlock("div",fy)):a.createCommentVNode("",!0)]),_:1},16,["modelValue","reduce","options","multiple","placeholder","disabled","loading","clearable","placement","appendToBody","calculate-position","selectable","onSearch","class"]),a.createVNode(ki,{errors:f.value},null,8,["errors"])]))}},py={class:"form-check"},my=["type","id","name"],gy=["for"],Nc=Ie(a.defineComponent({__name:"BooleanCheckbox",props:{defaultValue:{default:null},trueValue:{default:"1"},modelValue:{default:void 0},name:{default:""},group:{default:""},type:{default:"checkbox"},label:{default:""},error:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=a.ref(),s=pi(),o=a.computed(()=>t.group.length?t.group:t.name),l=()=>{i("update:modelValue",r.value?.checked?t.trueValue:t.defaultValue)},u=a.computed(()=>!t.modelValue||t.modelValue!==t.trueValue?(r.value&&(r.value.checked=!1),c(),null):(r.value&&(r.value.checked=!0),c(),!0)),c=()=>{if(!t.setFilterParamsStringsHandler)return!1;const f=r.value?.checked?"Да":null;t.setFilterParamsStringsHandler(t.name,f)},d=a.computed(()=>Array.isArray(t.error)?t.error?.filter(Boolean)||[]:typeof t.error=="string"&&t.error?[t.error]:[]);return a.watch(()=>t.modelValue,f=>{r.value&&(r.value.checked=!!f)}),(f,p)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",py,[(a.openBlock(),a.createElementBlock("input",{class:a.normalizeClass(["form-check-input mb-1",[f.error?"not-valid":""]]),ref_key:"input",ref:r,type:f.type,id:String(a.unref(s)),name:o.value,key:String(u.value),onClick:l},null,10,my)),a.createElementVNode("label",{class:a.normalizeClass(["form-check-label",[f.error?"text-danger":""]]),for:String(a.unref(s))},a.toDisplayString(f.label),11,gy)]),a.createVNode(ki,{errors:d.value},null,8,["errors"])],64))}}),[["__scopeId","data-v-c1b5c25e"]]),by={class:"multi-checkbox"},vy=["checked","onClick","id","value","name"],yy=["for"],wy=Ie(a.defineComponent({__name:"MultiCheckbox",props:{modelValue:{default:()=>[]},inputClass:{default:""},options:{default:()=>[]},error:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0},name:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=a.toRef(t,"modelValue"),s=a.toRef(t,"options"),o=a.toRef(t,"name");function l(f,p){const h=String(p);let k=[...r.value];r.value.includes(h)?k=r.value.filter(C=>String(C)!==h):k.push(h),i("update:modelValue",k)}const u=a.computed(()=>f=>r.value.includes(String(f)));function c(f){if(!t.setFilterParamsStringsHandler)return;let p=f.map(k=>String(k));const h=s.value.filter(k=>p.includes(String(k.id))).map(k=>k.text);if(p.length===0){t.setFilterParamsStringsHandler(o.value,null);return}t.setFilterParamsStringsHandler(o.value,h.join(", "))}const d=a.computed(()=>Array.isArray(t.error)?t.error?.filter(Boolean)||[]:typeof t.error=="string"&&t.error?[t.error]:[]);return a.watch(()=>r.value,f=>{c(f)},{deep:!0}),(f,p)=>(a.openBlock(),a.createElementBlock("div",by,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,h=>(a.openBlock(),a.createElementBlock("div",{class:"form-check",key:h.id},[a.createElementVNode("input",{class:a.normalizeClass(["form-check-input",[f.inputClass,{"not-valid":f.error}]]),type:"checkbox",checked:u.value(h.id),onClick:k=>l(k,h.id),id:`${o.value}-${h.id}`,value:h.id,name:`${o.value}-${h.id}`},null,10,vy),a.createElementVNode("label",{class:"form-check-label d-block",for:`${o.value}-${h.id}`},a.toDisplayString(h.text),9,yy)]))),128)),a.createVNode(ki,{errors:d.value},null,8,["errors"])]))}}),[["__scopeId","data-v-e23ac74b"]]),Cy={class:"multi-input"},Ay={class:"col"},Ey={class:"col-auto"},ky=["onClick"],Sy=Ie(a.defineComponent({__name:"MultiInput",props:{modelValue:{default:()=>[]},title:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0},name:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},inputClass:{default:""},error:{default:""},maskOptions:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=a.toRef(t,"modelValue");a.toRef(t,"title");const s=a.toRef(t,"placeholder");a.toRef(t,"disabled");const o=a.toRef(t,"error"),l=a.toRef(t,"maskOptions"),u=a.ref([]),c=a.ref(!1),d={value:"",disabled:!1,uniqueKey:1};function f(){const w=oi(d);w.uniqueKey=pi(),u.value.push(w)}function p(w,m){w.value=m}const h=a.computed(()=>u.value.length>1);function k(w){u.value=u.value.filter(m=>m.uniqueKey!==w.uniqueKey)}function C(){u.value=[],f()}function A(w){const m=w.map(g=>g.value);if(i("update:modelValue",m),!t.setFilterParamsStringsHandler)return;const D=m.filter(g=>g&&g.length>0);if(D.length===0){t.setFilterParamsStringsHandler(t.name,null);return}t.setFilterParamsStringsHandler(t.name,D.join(", "))}return a.watch(()=>u.value,w=>{c.value||A(w)},{deep:!0}),a.watch(()=>r.value,w=>{c.value=!0,!w||w.length===0?C():u.value.length!==w.length?u.value=w.map((m,D)=>({value:m,disabled:!1,uniqueKey:pi()+D})):w.forEach((m,D)=>{u.value[D]&&(u.value[D].value=m)}),a.nextTick(()=>{c.value=!1})},{deep:!0}),a.onMounted(()=>{r.value&&r.value.length>0?u.value=r.value.map((w,m)=>({value:w,disabled:!1,uniqueKey:pi()+m})):f()}),(w,m)=>(a.openBlock(),a.createElementBlock("div",Cy,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(D,g)=>(a.openBlock(),a.createElementBlock("div",{class:"row mb-2",key:D.uniqueKey},[a.createElementVNode("div",Ay,[a.createVNode(ur,{"model-value":D.value,"onUpdate:modelValue":M=>p(D,M),name:w.name,placeholder:s.value,class:a.normalizeClass(w.inputClass),disabled:D.disabled,"mask-options":l.value,error:o.value},null,8,["model-value","onUpdate:modelValue","name","placeholder","class","disabled","mask-options","error"])]),a.createElementVNode("div",Ey,[h.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"d-flex remove-button p-2",style:{cursor:"pointer"},onClick:M=>k(D)},[...m[0]||(m[0]=[a.createElementVNode("i",{class:"bi bi-trash-fill"},null,-1)])],8,ky)):a.createCommentVNode("",!0)])]))),128)),a.createVNode(il,{onClick:f})]))}}),[["__scopeId","data-v-9337052b"]]);var Do=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Qi={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(n){return typeof console<"u"&&console.warn(n)},getWeek:function(n){var e=new Date(n.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},wn={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){var e=n%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Ct=function(n,e){return e===void 0&&(e=2),("000"+n).slice(e*-1)},Ft=function(n){return n===!0?1:0};function Ic(n,e){var t;return function(){var i=this,r=arguments;clearTimeout(t),t=setTimeout(function(){return n.apply(i,r)},e)}}var Oo=function(n){return n instanceof Array?n:[n]};function gt(n,e,t){if(t===!0)return n.classList.add(e);n.classList.remove(e)}function Je(n,e,t){var i=window.document.createElement(n);return e=e||"",t=t||"",i.className=e,t!==void 0&&(i.textContent=t),i}function pr(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function Hc(n,e){if(e(n))return n;if(n.parentNode)return Hc(n.parentNode,e)}function mr(n,e){var t=Je("div","numInputWrapper"),i=Je("input","numInput "+n),r=Je("span","arrowUp"),s=Je("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?i.type="number":(i.type="text",i.pattern="\\d*"),e!==void 0)for(var o in e)i.setAttribute(o,e[o]);return t.appendChild(i),t.appendChild(r),t.appendChild(s),t}function St(n){try{if(typeof n.composedPath=="function"){var e=n.composedPath();return e[0]}return n.target}catch{return n.target}}var Lo=function(){},gr=function(n,e,t){return t.months[e?"shorthand":"longhand"][n]},xy={D:Lo,F:function(n,e,t){n.setMonth(t.months.longhand.indexOf(e))},G:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},H:function(n,e){n.setHours(parseFloat(e))},J:function(n,e){n.setDate(parseFloat(e))},K:function(n,e,t){n.setHours(n.getHours()%12+12*Ft(new RegExp(t.amPM[1],"i").test(e)))},M:function(n,e,t){n.setMonth(t.months.shorthand.indexOf(e))},S:function(n,e){n.setSeconds(parseFloat(e))},U:function(n,e){return new Date(parseFloat(e)*1e3)},W:function(n,e,t){var i=parseInt(e),r=new Date(n.getFullYear(),0,2+(i-1)*7,0,0,0,0);return r.setDate(r.getDate()-r.getDay()+t.firstDayOfWeek),r},Y:function(n,e){n.setFullYear(parseFloat(e))},Z:function(n,e){return new Date(e)},d:function(n,e){n.setDate(parseFloat(e))},h:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},i:function(n,e){n.setMinutes(parseFloat(e))},j:function(n,e){n.setDate(parseFloat(e))},l:Lo,m:function(n,e){n.setMonth(parseFloat(e)-1)},n:function(n,e){n.setMonth(parseFloat(e)-1)},s:function(n,e){n.setSeconds(parseFloat(e))},u:function(n,e){return new Date(parseFloat(e))},w:Lo,y:function(n,e){n.setFullYear(2e3+parseFloat(e))}},Ri={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Cn={Z:function(n){return n.toISOString()},D:function(n,e,t){return e.weekdays.shorthand[Cn.w(n,e,t)]},F:function(n,e,t){return gr(Cn.n(n,e,t)-1,!1,e)},G:function(n,e,t){return Ct(Cn.h(n,e,t))},H:function(n){return Ct(n.getHours())},J:function(n,e){return e.ordinal!==void 0?n.getDate()+e.ordinal(n.getDate()):n.getDate()},K:function(n,e){return e.amPM[Ft(n.getHours()>11)]},M:function(n,e){return gr(n.getMonth(),!0,e)},S:function(n){return Ct(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,e,t){return t.getWeek(n)},Y:function(n){return Ct(n.getFullYear(),4)},d:function(n){return Ct(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return Ct(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,e){return e.weekdays.longhand[n.getDay()]},m:function(n){return Ct(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},u:function(n){return n.getTime()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}},Vc=function(n){var e=n.config,t=e===void 0?Qi:e,i=n.l10n,r=i===void 0?wn:i,s=n.isMobile,o=s===void 0?!1:s;return function(l,u,c){var d=c||r;return t.formatDate!==void 0&&!o?t.formatDate(l,u,d):u.split("").map(function(f,p,h){return Cn[f]&&h[p-1]!=="\\"?Cn[f](l,d,t):f!=="\\"?f:""}).join("")}},Bo=function(n){var e=n.config,t=e===void 0?Qi:e,i=n.l10n,r=i===void 0?wn:i;return function(s,o,l,u){if(!(s!==0&&!s)){var c=u||r,d,f=s;if(s instanceof Date)d=new Date(s.getTime());else if(typeof s!="string"&&s.toFixed!==void 0)d=new Date(s);else if(typeof s=="string"){var p=o||(t||Qi).dateFormat,h=String(s).trim();if(h==="today")d=new Date,l=!0;else if(t&&t.parseDate)d=t.parseDate(s,p);else if(/Z$/.test(h)||/GMT$/.test(h))d=new Date(s);else{for(var k=void 0,C=[],A=0,w=0,m="";A<p.length;A++){var D=p[A],g=D==="\\",M=p[A-1]==="\\"||g;if(Ri[D]&&!M){m+=Ri[D];var v=new RegExp(m).exec(s);v&&(k=!0)&&C[D!=="Y"?"push":"unshift"]({fn:xy[D],val:v[++w]})}else g||(m+=".")}d=!t||!t.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),C.forEach(function(x){var y=x.fn,S=x.val;return d=y(d,S,c)||d}),d=k?d:void 0}}if(!(d instanceof Date&&!isNaN(d.getTime()))){t.errorHandler(new Error("Invalid date provided: "+f));return}return l===!0&&d.setHours(0,0,0,0),d}}};function xt(n,e,t){return t===void 0&&(t=!0),t!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):n.getTime()-e.getTime()}var Ry=function(n,e,t){return n>Math.min(e,t)&&n<Math.max(e,t)},Fo=function(n,e,t){return n*3600+e*60+t},My=function(n){var e=Math.floor(n/3600),t=(n-e*3600)/60;return[e,t,n-e*3600-t*60]},Ty={DAY:864e5};function _o(n){var e=n.defaultHour,t=n.defaultMinute,i=n.defaultSeconds;if(n.minDate!==void 0){var r=n.minDate.getHours(),s=n.minDate.getMinutes(),o=n.minDate.getSeconds();e<r&&(e=r),e===r&&t<s&&(t=s),e===r&&t===s&&i<o&&(i=n.minDate.getSeconds())}if(n.maxDate!==void 0){var l=n.maxDate.getHours(),u=n.maxDate.getMinutes();e=Math.min(e,l),e===l&&(t=Math.min(u,t)),e===l&&t===u&&(i=n.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:i}}typeof Object.assign!="function"&&(Object.assign=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var i=function(l){l&&Object.keys(l).forEach(function(u){return n[u]=l[u]})},r=0,s=e;r<s.length;r++){var o=s[r];i(o)}return n});var ft=function(){return ft=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},ft.apply(this,arguments)},zc=function(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var i=Array(n),r=0,e=0;e<t;e++)for(var s=arguments[e],o=0,l=s.length;o<l;o++,r++)i[r]=s[o];return i},Dy=300;function Oy(n,e){var t={config:ft(ft({},Qi),ot.defaultConfig),l10n:wn};t.parseDate=Bo({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=C,t._setHoursFromDate=p,t._positionCalendar=_e,t.changeMonth=P,t.changeYear=$,t.clear=Q,t.close=j,t.onMouseOver=U,t._createElement=Je,t.createDay=v,t.destroy=q,t.isEnabled=z,t.jumpToDate=m,t.updateValue=Re,t.open=oe,t.redraw=Z,t.set=ke,t.setDate=se,t.toggle=At;function i(){t.utils={getDaysInMonth:function(B,E){return B===void 0&&(B=t.currentMonth),E===void 0&&(E=t.currentYear),B===1&&(E%4===0&&E%100!==0||E%400===0)?29:t.l10n.daysInMonth[B]}}}function r(){t.element=t.input=n,t.isOpen=!1,we(),Fe(),et(),Le(),i(),t.isMobile||M(),w(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&p(t.config.noCalendar?t.latestSelectedDateObj:void 0),Re(!1)),l();var B=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&B&&_e(),Ge("onReady")}function s(){var B;return((B=t.calendarContainer)===null||B===void 0?void 0:B.getRootNode()).activeElement||document.activeElement}function o(B){return B.bind(t)}function l(){var B=t.config;B.weekNumbers===!1&&B.showMonths===1||B.noCalendar!==!0&&window.requestAnimationFrame(function(){if(t.calendarContainer!==void 0&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),t.daysContainer!==void 0){var E=(t.days.offsetWidth+1)*B.showMonths;t.daysContainer.style.width=E+"px",t.calendarContainer.style.width=E+(t.weekWrapper!==void 0?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}})}function u(B){if(t.selectedDates.length===0){var E=t.config.minDate===void 0||xt(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),O=_o(t.config);E.setHours(O.hours,O.minutes,O.seconds,E.getMilliseconds()),t.selectedDates=[E],t.latestSelectedDateObj=E}B!==void 0&&B.type!=="blur"&&ge(B);var _=t._input.value;f(),Re(),t._input.value!==_&&t._debouncedChange()}function c(B,E){return B%12+12*Ft(E===t.l10n.amPM[1])}function d(B){switch(B%24){case 0:case 12:return 12;default:return B%12}}function f(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var B=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,E=(parseInt(t.minuteElement.value,10)||0)%60,O=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(B=c(B,t.amPM.textContent));var _=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&xt(t.latestSelectedDateObj,t.config.minDate,!0)===0,Y=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&xt(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var ne=Fo(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),ce=Fo(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),fe=Fo(B,E,O);if(fe>ce&&fe<ne){var pe=My(ne);B=pe[0],E=pe[1],O=pe[2]}}else{if(Y){var be=t.config.maxTime!==void 0?t.config.maxTime:t.config.maxDate;B=Math.min(B,be.getHours()),B===be.getHours()&&(E=Math.min(E,be.getMinutes())),E===be.getMinutes()&&(O=Math.min(O,be.getSeconds()))}if(_){var Ce=t.config.minTime!==void 0?t.config.minTime:t.config.minDate;B=Math.max(B,Ce.getHours()),B===Ce.getHours()&&E<Ce.getMinutes()&&(E=Ce.getMinutes()),E===Ce.getMinutes()&&(O=Math.max(O,Ce.getSeconds()))}}h(B,E,O)}}function p(B){var E=B||t.latestSelectedDateObj;E&&E instanceof Date&&h(E.getHours(),E.getMinutes(),E.getSeconds())}function h(B,E,O){t.latestSelectedDateObj!==void 0&&t.latestSelectedDateObj.setHours(B%24,E,O||0,0),!(!t.hourElement||!t.minuteElement||t.isMobile)&&(t.hourElement.value=Ct(t.config.time_24hr?B:(12+B)%12+12*Ft(B%12===0)),t.minuteElement.value=Ct(E),t.amPM!==void 0&&(t.amPM.textContent=t.l10n.amPM[Ft(B>=12)]),t.secondElement!==void 0&&(t.secondElement.value=Ct(O)))}function k(B){var E=St(B),O=parseInt(E.value)+(B.delta||0);(O/1e3>1||B.key==="Enter"&&!/[^\d]/.test(O.toString()))&&$(O)}function C(B,E,O,_){if(E instanceof Array)return E.forEach(function(Y){return C(B,Y,O,_)});if(B instanceof Array)return B.forEach(function(Y){return C(Y,E,O,_)});B.addEventListener(E,O,_),t._handlers.push({remove:function(){return B.removeEventListener(E,O,_)}})}function A(){Ge("onChange")}function w(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(O){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+O+"]"),function(_){return C(_,"click",t[O])})}),t.isMobile){Rt();return}var B=Ic(le,50);if(t._debouncedChange=Ic(A,Dy),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&C(t.daysContainer,"mouseover",function(O){t.config.mode==="range"&&U(St(O))}),C(t._input,"keydown",V),t.calendarContainer!==void 0&&C(t.calendarContainer,"keydown",V),!t.config.inline&&!t.config.static&&C(window,"resize",B),window.ontouchstart!==void 0?C(window.document,"touchstart",ae):C(window.document,"mousedown",ae),C(window.document,"focus",ae,{capture:!0}),t.config.clickOpens===!0&&(C(t._input,"focus",t.open),C(t._input,"click",t.open)),t.daysContainer!==void 0&&(C(t.monthNav,"click",ct),C(t.monthNav,["keyup","increment"],k),C(t.daysContainer,"click",me)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var E=function(O){return St(O).select()};C(t.timeContainer,["increment"],u),C(t.timeContainer,"blur",u,{capture:!0}),C(t.timeContainer,"click",D),C([t.hourElement,t.minuteElement],["focus","click"],E),t.secondElement!==void 0&&C(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&C(t.amPM,"click",function(O){u(O)})}t.config.allowInput&&C(t._input,"blur",ue)}function m(B,E){var O=B!==void 0?t.parseDate(B):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),_=t.currentYear,Y=t.currentMonth;try{O!==void 0&&(t.currentYear=O.getFullYear(),t.currentMonth=O.getMonth())}catch(ne){ne.message="Invalid date supplied: "+O,t.config.errorHandler(ne)}E&&t.currentYear!==_&&(Ge("onYearChange"),L()),E&&(t.currentYear!==_||t.currentMonth!==Y)&&Ge("onMonthChange"),t.redraw()}function D(B){var E=St(B);~E.className.indexOf("arrow")&&g(B,E.classList.contains("arrowUp")?1:-1)}function g(B,E,O){var _=B&&St(B),Y=O||_&&_.parentNode&&_.parentNode.firstChild,ne=te("increment");ne.delta=E,Y&&Y.dispatchEvent(ne)}function M(){var B=window.document.createDocumentFragment();if(t.calendarContainer=Je("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(B.appendChild(G()),t.innerContainer=Je("div","flatpickr-innerContainer"),t.config.weekNumbers){var E=F(),O=E.weekWrapper,_=E.weekNumbers;t.innerContainer.appendChild(O),t.weekNumbers=_,t.weekWrapper=O}t.rContainer=Je("div","flatpickr-rContainer"),t.rContainer.appendChild(H()),t.daysContainer||(t.daysContainer=Je("div","flatpickr-days"),t.daysContainer.tabIndex=-1),R(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),B.appendChild(t.innerContainer)}t.config.enableTime&&B.appendChild(I()),gt(t.calendarContainer,"rangeMode",t.config.mode==="range"),gt(t.calendarContainer,"animate",t.config.animate===!0),gt(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(B);var Y=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!Y&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var ne=Je("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(ne,t.element),ne.appendChild(t.element),t.altInput&&ne.appendChild(t.altInput),ne.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function v(B,E,O,_){var Y=z(E,!0),ne=Je("span",B,E.getDate().toString());return ne.dateObj=E,ne.$i=_,ne.setAttribute("aria-label",t.formatDate(E,t.config.ariaDateFormat)),B.indexOf("hidden")===-1&&xt(E,t.now)===0&&(t.todayDateElem=ne,ne.classList.add("today"),ne.setAttribute("aria-current","date")),Y?(ne.tabIndex=-1,re(E)&&(ne.classList.add("selected"),t.selectedDateElem=ne,t.config.mode==="range"&&(gt(ne,"startRange",t.selectedDates[0]&&xt(E,t.selectedDates[0],!0)===0),gt(ne,"endRange",t.selectedDates[1]&&xt(E,t.selectedDates[1],!0)===0),B==="nextMonthDay"&&ne.classList.add("inRange")))):ne.classList.add("flatpickr-disabled"),t.config.mode==="range"&&Pe(E)&&!re(E)&&ne.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&B!=="prevMonthDay"&&_%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(E)+"</span>"),Ge("onDayCreate",ne),ne}function x(B){B.focus(),t.config.mode==="range"&&U(B)}function y(B){for(var E=B>0?0:t.config.showMonths-1,O=B>0?t.config.showMonths:-1,_=E;_!=O;_+=B)for(var Y=t.daysContainer.children[_],ne=B>0?0:Y.children.length-1,ce=B>0?Y.children.length:-1,fe=ne;fe!=ce;fe+=B){var pe=Y.children[fe];if(pe.className.indexOf("hidden")===-1&&z(pe.dateObj))return pe}}function S(B,E){for(var O=B.className.indexOf("Month")===-1?B.dateObj.getMonth():t.currentMonth,_=E>0?t.config.showMonths:-1,Y=E>0?1:-1,ne=O-t.currentMonth;ne!=_;ne+=Y)for(var ce=t.daysContainer.children[ne],fe=O-t.currentMonth===ne?B.$i+E:E<0?ce.children.length-1:0,pe=ce.children.length,be=fe;be>=0&&be<pe&&be!=(E>0?pe:-1);be+=Y){var Ce=ce.children[be];if(Ce.className.indexOf("hidden")===-1&&z(Ce.dateObj)&&Math.abs(B.$i-be)>=Math.abs(E))return x(Ce)}t.changeMonth(Y),b(y(Y),0)}function b(B,E){var O=s(),_=J(O||document.body),Y=B!==void 0?B:_?O:t.selectedDateElem!==void 0&&J(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&J(t.todayDateElem)?t.todayDateElem:y(E>0?1:-1);Y===void 0?t._input.focus():_?S(Y,E):x(Y)}function T(B,E){for(var O=(new Date(B,E,1).getDay()-t.l10n.firstDayOfWeek+7)%7,_=t.utils.getDaysInMonth((E-1+12)%12,B),Y=t.utils.getDaysInMonth(E,B),ne=window.document.createDocumentFragment(),ce=t.config.showMonths>1,fe=ce?"prevMonthDay hidden":"prevMonthDay",pe=ce?"nextMonthDay hidden":"nextMonthDay",be=_+1-O,Ce=0;be<=_;be++,Ce++)ne.appendChild(v("flatpickr-day "+fe,new Date(B,E-1,be),be,Ce));for(be=1;be<=Y;be++,Ce++)ne.appendChild(v("flatpickr-day",new Date(B,E,be),be,Ce));for(var De=Y+1;De<=42-O&&(t.config.showMonths===1||Ce%7!==0);De++,Ce++)ne.appendChild(v("flatpickr-day "+pe,new Date(B,E+1,De%Y),De,Ce));var We=Je("div","dayContainer");return We.appendChild(ne),We}function R(){if(t.daysContainer!==void 0){pr(t.daysContainer),t.weekNumbers&&pr(t.weekNumbers);for(var B=document.createDocumentFragment(),E=0;E<t.config.showMonths;E++){var O=new Date(t.currentYear,t.currentMonth,1);O.setMonth(t.currentMonth+E),B.appendChild(T(O.getFullYear(),O.getMonth()))}t.daysContainer.appendChild(B),t.days=t.daysContainer.firstChild,t.config.mode==="range"&&t.selectedDates.length===1&&U()}}function L(){if(!(t.config.showMonths>1||t.config.monthSelectorType!=="dropdown")){var B=function(_){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&_<t.config.minDate.getMonth()?!1:!(t.config.maxDate!==void 0&&t.currentYear===t.config.maxDate.getFullYear()&&_>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var E=0;E<12;E++)if(B(E)){var O=Je("option","flatpickr-monthDropdown-month");O.value=new Date(t.currentYear,E).getMonth().toString(),O.textContent=gr(E,t.config.shorthandCurrentMonth,t.l10n),O.tabIndex=-1,t.currentMonth===E&&(O.selected=!0),t.monthsDropdownContainer.appendChild(O)}}}function N(){var B=Je("div","flatpickr-month"),E=window.document.createDocumentFragment(),O;t.config.showMonths>1||t.config.monthSelectorType==="static"?O=Je("span","cur-month"):(t.monthsDropdownContainer=Je("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),C(t.monthsDropdownContainer,"change",function(ce){var fe=St(ce),pe=parseInt(fe.value,10);t.changeMonth(pe-t.currentMonth),Ge("onMonthChange")}),L(),O=t.monthsDropdownContainer);var _=mr("cur-year",{tabindex:"-1"}),Y=_.getElementsByTagName("input")[0];Y.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&Y.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(Y.setAttribute("max",t.config.maxDate.getFullYear().toString()),Y.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var ne=Je("div","flatpickr-current-month");return ne.appendChild(O),ne.appendChild(_),E.appendChild(ne),B.appendChild(E),{container:B,yearElement:Y,monthElement:O}}function W(){pr(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var B=t.config.showMonths;B--;){var E=N();t.yearElements.push(E.yearElement),t.monthElements.push(E.monthElement),t.monthNav.appendChild(E.container)}t.monthNav.appendChild(t.nextMonthNav)}function G(){return t.monthNav=Je("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=Je("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=Je("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,W(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(B){t.__hidePrevMonthArrow!==B&&(gt(t.prevMonthNav,"flatpickr-disabled",B),t.__hidePrevMonthArrow=B)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(B){t.__hideNextMonthArrow!==B&&(gt(t.nextMonthNav,"flatpickr-disabled",B),t.__hideNextMonthArrow=B)}}),t.currentYearElement=t.yearElements[0],ze(),t.monthNav}function I(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var B=_o(t.config);t.timeContainer=Je("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var E=Je("span","flatpickr-time-separator",":"),O=mr("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=O.getElementsByTagName("input")[0];var _=mr("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=_.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=Ct(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?B.hours:d(B.hours)),t.minuteElement.value=Ct(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():B.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(O),t.timeContainer.appendChild(E),t.timeContainer.appendChild(_),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var Y=mr("flatpickr-second");t.secondElement=Y.getElementsByTagName("input")[0],t.secondElement.value=Ct(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():B.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(Je("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(Y)}return t.config.time_24hr||(t.amPM=Je("span","flatpickr-am-pm",t.l10n.amPM[Ft((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function H(){t.weekdayContainer?pr(t.weekdayContainer):t.weekdayContainer=Je("div","flatpickr-weekdays");for(var B=t.config.showMonths;B--;){var E=Je("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(E)}return K(),t.weekdayContainer}function K(){if(t.weekdayContainer){var B=t.l10n.firstDayOfWeek,E=zc(t.l10n.weekdays.shorthand);B>0&&B<E.length&&(E=zc(E.splice(B,E.length),E.splice(0,B)));for(var O=t.config.showMonths;O--;)t.weekdayContainer.children[O].innerHTML=`
|
|
27
|
+
https://vue-select.org/api/props.html#getoptionkey`,n,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(n,e,t){return(e||"").toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1}},filter:{type:Function,default(n,e){return n.filter(t=>{let i=this.getOptionLabel(t);return typeof i=="number"&&(i=i.toString()),this.filterBy(t,i,e)})}},createOption:{type:Function,default(n){return typeof this.optionList[0]=="object"?{[this.label]:n}:n}},resetOnOptionsChange:{default:!1,validator:n=>["function","boolean"].includes(typeof n)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:n,multiple:e}){return n&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(n,e)=>n},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(n,e,{width:t,top:i,left:r}){n.style.top=i,n.style.left=r,n.style.width=t}},dropdownShouldOpen:{type:Function,default({noDrop:n,open:e,mutableLoading:t}){return n?!1:e&&!t}},uid:{type:[String,Number],default:()=>Bb()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let n=this.modelValue;return this.isTrackingValues&&(n=this.$data._value),n!=null&&n!==""?[].concat(n):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const n={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:ji({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:n,listFooter:n,header:bc(ji({},n),{deselect:this.deselect}),footer:bc(ji({},n),{deselect:this.deselect})}},childComponents(){return ji(ji({},vc),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const n=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return n;const e=this.search.length?this.filter(n,this.search,this):n;if(this.taggable&&this.search.length){const t=this.createOption(this.search);this.optionExists(t)||e.unshift(t)}return e},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(n,e){const t=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(n,e,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&t()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(n){this.isTrackingValues&&this.setInternalValueFromOptions(n)}},multiple(){this.clearSelection()},open(n){this.$emit(n?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(n){Array.isArray(n)?this.$data._value=n.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(n)},select(n){this.$emit("option:selecting",n),this.isOptionSelected(n)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(n):(this.taggable&&!this.optionExists(n)&&(this.$emit("option:created",n),this.pushTag(n)),this.multiple&&(n=this.selectedValue.concat(n)),this.updateValue(n),this.$emit("option:selected",n)),this.onAfterSelect(n)},deselect(n){this.$emit("option:deselecting",n),this.updateValue(this.selectedValue.filter(e=>!this.optionComparator(e,n))),this.$emit("option:deselected",n)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(n){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(n){typeof this.modelValue>"u"&&(this.$data._value=n),n!==null&&(Array.isArray(n)?n=n.map(e=>this.reduce(e)):n=this.reduce(n)),this.$emit("update:modelValue",n)},toggleDropdown(n){const e=n.target!==this.searchEl;e&&n.preventDefault();const t=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||t.filter(Boolean).some(i=>i.contains(n.target)||i===n.target)){n.preventDefault();return}this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(n){return this.selectedValue.some(e=>this.optionComparator(e,n))},isOptionDeselectable(n){return this.isOptionSelected(n)&&this.deselectFromDropdown},optionComparator(n,e){return this.getOptionKey(n)===this.getOptionKey(e)},findOptionFromReducedValue(n){const e=i=>JSON.stringify(this.reduce(i))===JSON.stringify(n),t=[...this.options,...this.pushedTags].filter(e);return t.length===1?t[0]:t.find(i=>this.optionComparator(i,this.$data._value))||n},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let n=null;this.multiple&&(n=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(n)}},optionExists(n){return this.optionList.some(e=>this.optionComparator(e,n))},normalizeOptionForSlot(n){return typeof n=="object"?n:{[this.label]:n}},pushTag(n){this.pushedTags.push(n)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:n,multiple:e}=this;this.clearSearchOnBlur({clearSearchOnSelect:n,multiple:e})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(n){const e=r=>(r.preventDefault(),!this.isComposing&&this.typeAheadSelect()),t={8:r=>this.maybeDeleteValue(),9:r=>this.onTab(),27:r=>this.onEscape(),38:r=>(r.preventDefault(),this.typeAheadUp()),40:r=>(r.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(r=>t[r]=e);const i=this.mapKeydown(t,this);if(typeof i[n.keyCode]=="function")return i[n.keyCode](n)}}},_b=["dir"],Pb=["id","aria-expanded","aria-owns"],Nb={ref:"selectedOptions",class:"vs__selected-options"},Ib=["disabled","title","aria-label","onClick"],Hb={ref:"actions",class:"vs__actions"},Vb=["disabled"],zb={class:"vs__spinner"},jb=["id"],Wb=["id","aria-selected","onMouseover","onClick"],Ub={key:0,class:"vs__no-options"},Gb=a.createTextVNode(" Sorry, no matching options. "),Yb=["id"];function Qb(n,e,t,i,r,s){const o=a.resolveDirective("append-to-body");return a.openBlock(),a.createElementBlock("div",{dir:t.dir,class:a.normalizeClass(["v-select",s.stateClasses])},[a.renderSlot(n.$slots,"header",a.normalizeProps(a.guardReactiveProps(s.scope.header))),a.createElementVNode("div",{id:`vs${t.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":s.dropdownOpen.toString(),"aria-owns":`vs${t.uid}__listbox`,"aria-label":"Search for option",onMousedown:e[1]||(e[1]=l=>s.toggleDropdown(l))},[a.createElementVNode("div",Nb,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.selectedValue,(l,u)=>a.renderSlot(n.$slots,"selected-option-container",{option:s.normalizeOptionForSlot(l),deselect:s.deselect,multiple:t.multiple,disabled:t.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{key:t.getOptionKey(l),class:"vs__selected"},[a.renderSlot(n.$slots,"selected-option",a.normalizeProps(a.guardReactiveProps(s.normalizeOptionForSlot(l))),()=>[a.createTextVNode(a.toDisplayString(t.getOptionLabel(l)),1)]),t.multiple?(a.openBlock(),a.createElementBlock("button",{key:0,ref_for:!0,ref:c=>r.deselectButtons[u]=c,disabled:t.disabled,type:"button",class:"vs__deselect",title:`Deselect ${t.getOptionLabel(l)}`,"aria-label":`Deselect ${t.getOptionLabel(l)}`,onClick:c=>s.deselect(l)},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.childComponents.Deselect)))],8,Ib)):a.createCommentVNode("",!0)]))])),256)),a.renderSlot(n.$slots,"search",a.normalizeProps(a.guardReactiveProps(s.scope.search)),()=>[a.createElementVNode("input",a.mergeProps({class:"vs__search"},s.scope.search.attributes,a.toHandlers(s.scope.search.events)),null,16)])],512),a.createElementVNode("div",Hb,[a.withDirectives(a.createElementVNode("button",{ref:"clearButton",disabled:t.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:e[0]||(e[0]=(...l)=>s.clearSelection&&s.clearSelection(...l))},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.childComponents.Deselect)))],8,Vb),[[a.vShow,s.showClearButton]]),a.renderSlot(n.$slots,"open-indicator",a.normalizeProps(a.guardReactiveProps(s.scope.openIndicator)),()=>[t.noDrop?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.childComponents.OpenIndicator),a.normalizeProps(a.mergeProps({key:0},s.scope.openIndicator.attributes)),null,16))]),a.renderSlot(n.$slots,"spinner",a.normalizeProps(a.guardReactiveProps(s.scope.spinner)),()=>[a.withDirectives(a.createElementVNode("div",zb,"Loading...",512),[[a.vShow,n.mutableLoading]])])],512)],40,Pb),a.createVNode(a.Transition,{name:t.transition},{default:a.withCtx(()=>[s.dropdownOpen?a.withDirectives((a.openBlock(),a.createElementBlock("ul",{id:`vs${t.uid}__listbox`,ref:"dropdownMenu",key:`vs${t.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:e[2]||(e[2]=a.withModifiers((...l)=>s.onMousedown&&s.onMousedown(...l),["prevent"])),onMouseup:e[3]||(e[3]=(...l)=>s.onMouseUp&&s.onMouseUp(...l))},[a.renderSlot(n.$slots,"list-header",a.normalizeProps(a.guardReactiveProps(s.scope.listHeader))),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.filteredOptions,(l,u)=>(a.openBlock(),a.createElementBlock("li",{id:`vs${t.uid}__option-${u}`,key:t.getOptionKey(l),role:"option",class:a.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":s.isOptionDeselectable(l)&&u===n.typeAheadPointer,"vs__dropdown-option--selected":s.isOptionSelected(l),"vs__dropdown-option--highlight":u===n.typeAheadPointer,"vs__dropdown-option--disabled":!t.selectable(l)}]),"aria-selected":u===n.typeAheadPointer?!0:null,onMouseover:c=>t.selectable(l)?n.typeAheadPointer=u:null,onClick:a.withModifiers(c=>t.selectable(l)?s.select(l):null,["prevent","stop"])},[a.renderSlot(n.$slots,"option",a.normalizeProps(a.guardReactiveProps(s.normalizeOptionForSlot(l))),()=>[a.createTextVNode(a.toDisplayString(t.getOptionLabel(l)),1)])],42,Wb))),128)),s.filteredOptions.length===0?(a.openBlock(),a.createElementBlock("li",Ub,[a.renderSlot(n.$slots,"no-options",a.normalizeProps(a.guardReactiveProps(s.scope.noOptions)),()=>[Gb])])):a.createCommentVNode("",!0),a.renderSlot(n.$slots,"list-footer",a.normalizeProps(a.guardReactiveProps(s.scope.listFooter)))],40,jb)),[[o]]):(a.openBlock(),a.createElementBlock("ul",{key:1,id:`vs${t.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,Yb))]),_:3},8,["name"]),a.renderSlot(n.$slots,"footer",a.normalizeProps(a.guardReactiveProps(s.scope.footer)))],10,_b)}const Kb=wo(Fb,[["render",Qb]]);var yt="top",Ot="bottom",Lt="right",wt="left",Co="auto",fn=[yt,Ot,Lt,wt],Wi="start",pn="end",Jb="clippingParents",yc="viewport",mn="popper",qb="reference",wc=fn.reduce(function(n,e){return n.concat([e+"-"+Wi,e+"-"+pn])},[]),Cc=[].concat(fn,[Co]).reduce(function(n,e){return n.concat([e,e+"-"+Wi,e+"-"+pn])},[]),$b="beforeRead",Zb="read",Xb="afterRead",ev="beforeMain",tv="main",iv="afterMain",nv="beforeWrite",rv="write",sv="afterWrite",av=[$b,Zb,Xb,ev,tv,iv,nv,rv,sv];function Qt(n){return n?(n.nodeName||"").toLowerCase():null}function kt(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Si(n){var e=kt(n).Element;return n instanceof e||n instanceof Element}function Bt(n){var e=kt(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Ao(n){if(typeof ShadowRoot>"u")return!1;var e=kt(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function ov(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},s=e.elements[t];!Bt(s)||!Qt(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(o){var l=r[o];l===!1?s.removeAttribute(o):s.setAttribute(o,l===!0?"":l)}))})}function lv(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],s=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),l=o.reduce(function(u,c){return u[c]="",u},{});!Bt(r)||!Qt(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}const uv={name:"applyStyles",enabled:!0,phase:"write",fn:ov,effect:lv,requires:["computeStyles"]};function Kt(n){return n.split("-")[0]}var xi=Math.max,cr=Math.min,Ui=Math.round;function Eo(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ac(){return!/^((?!chrome|android).)*safari/i.test(Eo())}function Gi(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),r=1,s=1;e&&Bt(n)&&(r=n.offsetWidth>0&&Ui(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&Ui(i.height)/n.offsetHeight||1);var o=Si(n)?kt(n):window,l=o.visualViewport,u=!Ac()&&t,c=(i.left+(u&&l?l.offsetLeft:0))/r,d=(i.top+(u&&l?l.offsetTop:0))/s,f=i.width/r,p=i.height/s;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function ko(n){var e=Gi(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function Ec(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Ao(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function li(n){return kt(n).getComputedStyle(n)}function cv(n){return["table","td","th"].indexOf(Qt(n))>=0}function mi(n){return((Si(n)?n.ownerDocument:n.document)||window.document).documentElement}function dr(n){return Qt(n)==="html"?n:n.assignedSlot||n.parentNode||(Ao(n)?n.host:null)||mi(n)}function kc(n){return!Bt(n)||li(n).position==="fixed"?null:n.offsetParent}function dv(n){var e=/firefox/i.test(Eo()),t=/Trident/i.test(Eo());if(t&&Bt(n)){var i=li(n);if(i.position==="fixed")return null}var r=dr(n);for(Ao(r)&&(r=r.host);Bt(r)&&["html","body"].indexOf(Qt(r))<0;){var s=li(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function gn(n){for(var e=kt(n),t=kc(n);t&&cv(t)&&li(t).position==="static";)t=kc(t);return t&&(Qt(t)==="html"||Qt(t)==="body"&&li(t).position==="static")?e:t||dv(n)||e}function So(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function bn(n,e,t){return xi(n,cr(e,t))}function hv(n,e,t){var i=bn(n,e,t);return i>t?t:i}function Sc(){return{top:0,right:0,bottom:0,left:0}}function xc(n){return Object.assign({},Sc(),n)}function Rc(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var fv=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,xc(typeof e!="number"?e:Rc(e,fn))};function pv(n){var e,t=n.state,i=n.name,r=n.options,s=t.elements.arrow,o=t.modifiersData.popperOffsets,l=Kt(t.placement),u=So(l),c=[wt,Lt].indexOf(l)>=0,d=c?"height":"width";if(!(!s||!o)){var f=fv(r.padding,t),p=ko(s),h=u==="y"?yt:wt,k=u==="y"?Ot:Lt,C=t.rects.reference[d]+t.rects.reference[u]-o[u]-t.rects.popper[d],A=o[u]-t.rects.reference[u],w=gn(s),m=w?u==="y"?w.clientHeight||0:w.clientWidth||0:0,D=C/2-A/2,g=f[h],M=m-p[d]-f[k],v=m/2-p[d]/2+D,x=bn(g,v,M),y=u;t.modifiersData[i]=(e={},e[y]=x,e.centerOffset=x-v,e)}}function mv(n){var e=n.state,t=n.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Ec(e.elements.popper,r)&&(e.elements.arrow=r))}const gv={name:"arrow",enabled:!0,phase:"main",fn:pv,effect:mv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yi(n){return n.split("-")[1]}var bv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vv(n,e){var t=n.x,i=n.y,r=e.devicePixelRatio||1;return{x:Ui(t*r)/r||0,y:Ui(i*r)/r||0}}function Mc(n){var e,t=n.popper,i=n.popperRect,r=n.placement,s=n.variation,o=n.offsets,l=n.position,u=n.gpuAcceleration,c=n.adaptive,d=n.roundOffsets,f=n.isFixed,p=o.x,h=p===void 0?0:p,k=o.y,C=k===void 0?0:k,A=typeof d=="function"?d({x:h,y:C}):{x:h,y:C};h=A.x,C=A.y;var w=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),D=wt,g=yt,M=window;if(c){var v=gn(t),x="clientHeight",y="clientWidth";if(v===kt(t)&&(v=mi(t),li(v).position!=="static"&&l==="absolute"&&(x="scrollHeight",y="scrollWidth")),v=v,r===yt||(r===wt||r===Lt)&&s===pn){g=Ot;var S=f&&v===M&&M.visualViewport?M.visualViewport.height:v[x];C-=S-i.height,C*=u?1:-1}if(r===wt||(r===yt||r===Ot)&&s===pn){D=Lt;var b=f&&v===M&&M.visualViewport?M.visualViewport.width:v[y];h-=b-i.width,h*=u?1:-1}}var T=Object.assign({position:l},c&&bv),R=d===!0?vv({x:h,y:C},kt(t)):{x:h,y:C};if(h=R.x,C=R.y,u){var L;return Object.assign({},T,(L={},L[g]=m?"0":"",L[D]=w?"0":"",L.transform=(M.devicePixelRatio||1)<=1?"translate("+h+"px, "+C+"px)":"translate3d("+h+"px, "+C+"px, 0)",L))}return Object.assign({},T,(e={},e[g]=m?C+"px":"",e[D]=w?h+"px":"",e.transform="",e))}function yv(n){var e=n.state,t=n.options,i=t.gpuAcceleration,r=i===void 0?!0:i,s=t.adaptive,o=s===void 0?!0:s,l=t.roundOffsets,u=l===void 0?!0:l,c={placement:Kt(e.placement),variation:Yi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Mc(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Mc(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const wv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yv,data:{}};var hr={passive:!0};function Cv(n){var e=n.state,t=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,o=i.resize,l=o===void 0?!0:o,u=kt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",t.update,hr)}),l&&u.addEventListener("resize",t.update,hr),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",t.update,hr)}),l&&u.removeEventListener("resize",t.update,hr)}}const Av={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Cv,data:{}};var Ev={left:"right",right:"left",bottom:"top",top:"bottom"};function fr(n){return n.replace(/left|right|bottom|top/g,function(e){return Ev[e]})}var kv={start:"end",end:"start"};function Tc(n){return n.replace(/start|end/g,function(e){return kv[e]})}function xo(n){var e=kt(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function Ro(n){return Gi(mi(n)).left+xo(n).scrollLeft}function Sv(n,e){var t=kt(n),i=mi(n),r=t.visualViewport,s=i.clientWidth,o=i.clientHeight,l=0,u=0;if(r){s=r.width,o=r.height;var c=Ac();(c||!c&&e==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}return{width:s,height:o,x:l+Ro(n),y:u}}function xv(n){var e,t=mi(n),i=xo(n),r=(e=n.ownerDocument)==null?void 0:e.body,s=xi(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=xi(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+Ro(n),u=-i.scrollTop;return li(r||t).direction==="rtl"&&(l+=xi(t.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:l,y:u}}function Mo(n){var e=li(n),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function Dc(n){return["html","body","#document"].indexOf(Qt(n))>=0?n.ownerDocument.body:Bt(n)&&Mo(n)?n:Dc(dr(n))}function vn(n,e){var t;e===void 0&&(e=[]);var i=Dc(n),r=i===((t=n.ownerDocument)==null?void 0:t.body),s=kt(i),o=r?[s].concat(s.visualViewport||[],Mo(i)?i:[]):i,l=e.concat(o);return r?l:l.concat(vn(dr(o)))}function To(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Rv(n,e){var t=Gi(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function Oc(n,e,t){return e===yc?To(Sv(n,t)):Si(e)?Rv(e,t):To(xv(mi(n)))}function Mv(n){var e=vn(dr(n)),t=["absolute","fixed"].indexOf(li(n).position)>=0,i=t&&Bt(n)?gn(n):n;return Si(i)?e.filter(function(r){return Si(r)&&Ec(r,i)&&Qt(r)!=="body"}):[]}function Tv(n,e,t,i){var r=e==="clippingParents"?Mv(n):[].concat(e),s=[].concat(r,[t]),o=s[0],l=s.reduce(function(u,c){var d=Oc(n,c,i);return u.top=xi(d.top,u.top),u.right=cr(d.right,u.right),u.bottom=cr(d.bottom,u.bottom),u.left=xi(d.left,u.left),u},Oc(n,o,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Lc(n){var e=n.reference,t=n.element,i=n.placement,r=i?Kt(i):null,s=i?Yi(i):null,o=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,u;switch(r){case yt:u={x:o,y:e.y-t.height};break;case Ot:u={x:o,y:e.y+e.height};break;case Lt:u={x:e.x+e.width,y:l};break;case wt:u={x:e.x-t.width,y:l};break;default:u={x:e.x,y:e.y}}var c=r?So(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case Wi:u[c]=u[c]-(e[d]/2-t[d]/2);break;case pn:u[c]=u[c]+(e[d]/2-t[d]/2);break}}return u}function yn(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?n.placement:i,s=t.strategy,o=s===void 0?n.strategy:s,l=t.boundary,u=l===void 0?Jb:l,c=t.rootBoundary,d=c===void 0?yc:c,f=t.elementContext,p=f===void 0?mn:f,h=t.altBoundary,k=h===void 0?!1:h,C=t.padding,A=C===void 0?0:C,w=xc(typeof A!="number"?A:Rc(A,fn)),m=p===mn?qb:mn,D=n.rects.popper,g=n.elements[k?m:p],M=Tv(Si(g)?g:g.contextElement||mi(n.elements.popper),u,d,o),v=Gi(n.elements.reference),x=Lc({reference:v,element:D,placement:r}),y=To(Object.assign({},D,x)),S=p===mn?y:v,b={top:M.top-S.top+w.top,bottom:S.bottom-M.bottom+w.bottom,left:M.left-S.left+w.left,right:S.right-M.right+w.right},T=n.modifiersData.offset;if(p===mn&&T){var R=T[r];Object.keys(b).forEach(function(L){var I=[Lt,Ot].indexOf(L)>=0?1:-1,W=[yt,Ot].indexOf(L)>=0?"y":"x";b[L]+=R[W]*I})}return b}function Dv(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,s=t.rootBoundary,o=t.padding,l=t.flipVariations,u=t.allowedAutoPlacements,c=u===void 0?Cc:u,d=Yi(i),f=d?l?wc:wc.filter(function(k){return Yi(k)===d}):fn,p=f.filter(function(k){return c.indexOf(k)>=0});p.length===0&&(p=f);var h=p.reduce(function(k,C){return k[C]=yn(n,{placement:C,boundary:r,rootBoundary:s,padding:o})[Kt(C)],k},{});return Object.keys(h).sort(function(k,C){return h[k]-h[C]})}function Ov(n){if(Kt(n)===Co)return[];var e=fr(n);return[Tc(n),e,Tc(e)]}function Lv(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,s=r===void 0?!0:r,o=t.altAxis,l=o===void 0?!0:o,u=t.fallbackPlacements,c=t.padding,d=t.boundary,f=t.rootBoundary,p=t.altBoundary,h=t.flipVariations,k=h===void 0?!0:h,C=t.allowedAutoPlacements,A=e.options.placement,w=Kt(A),m=w===A,D=u||(m||!k?[fr(A)]:Ov(A)),g=[A].concat(D).reduce(function(J,Z){return J.concat(Kt(Z)===Co?Dv(e,{placement:Z,boundary:d,rootBoundary:f,padding:c,flipVariations:k,allowedAutoPlacements:C}):Z)},[]),M=e.rects.reference,v=e.rects.popper,x=new Map,y=!0,S=g[0],b=0;b<g.length;b++){var T=g[b],R=Kt(T),L=Yi(T)===Wi,I=[yt,Ot].indexOf(R)>=0,W=I?"width":"height",U=yn(e,{placement:T,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),H=I?L?Lt:wt:L?Ot:yt;M[W]>v[W]&&(H=fr(H));var V=fr(H),K=[];if(s&&K.push(U[R]<=0),l&&K.push(U[H]<=0,U[V]<=0),K.every(function(J){return J})){S=T,y=!1;break}x.set(T,K)}if(y)for(var F=k?3:1,N=function(Z){var le=g.find(function(ue){var Y=x.get(ue);if(Y)return Y.slice(0,Z).every(function(X){return X})});if(le)return S=le,"break"},Q=F;Q>0;Q--){var j=N(Q);if(j==="break")break}e.placement!==S&&(e.modifiersData[i]._skip=!0,e.placement=S,e.reset=!0)}}const Bv={name:"flip",enabled:!0,phase:"main",fn:Lv,requiresIfExists:["offset"],data:{_skip:!1}};function Bc(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Fc(n){return[yt,Lt,Ot,wt].some(function(e){return n[e]>=0})}function Fv(n){var e=n.state,t=n.name,i=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,o=yn(e,{elementContext:"reference"}),l=yn(e,{altBoundary:!0}),u=Bc(o,i),c=Bc(l,r,s),d=Fc(u),f=Fc(c);e.modifiersData[t]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const _v={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fv};function Pv(n,e,t){var i=Kt(n),r=[wt,yt].indexOf(i)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=s[0],l=s[1];return o=o||0,l=(l||0)*r,[wt,Lt].indexOf(i)>=0?{x:l,y:o}:{x:o,y:l}}function Nv(n){var e=n.state,t=n.options,i=n.name,r=t.offset,s=r===void 0?[0,0]:r,o=Cc.reduce(function(d,f){return d[f]=Pv(f,e.rects,s),d},{}),l=o[e.placement],u=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=o}const Iv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nv};function Hv(n){var e=n.state,t=n.name;e.modifiersData[t]=Lc({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Vv={name:"popperOffsets",enabled:!0,phase:"read",fn:Hv,data:{}};function zv(n){return n==="x"?"y":"x"}function jv(n){var e=n.state,t=n.options,i=n.name,r=t.mainAxis,s=r===void 0?!0:r,o=t.altAxis,l=o===void 0?!1:o,u=t.boundary,c=t.rootBoundary,d=t.altBoundary,f=t.padding,p=t.tether,h=p===void 0?!0:p,k=t.tetherOffset,C=k===void 0?0:k,A=yn(e,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),w=Kt(e.placement),m=Yi(e.placement),D=!m,g=So(w),M=zv(g),v=e.modifiersData.popperOffsets,x=e.rects.reference,y=e.rects.popper,S=typeof C=="function"?C(Object.assign({},e.rects,{placement:e.placement})):C,b=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,R={x:0,y:0};if(v){if(s){var L,I=g==="y"?yt:wt,W=g==="y"?Ot:Lt,U=g==="y"?"height":"width",H=v[g],V=H+A[I],K=H-A[W],F=h?-y[U]/2:0,N=m===Wi?x[U]:y[U],Q=m===Wi?-y[U]:-x[U],j=e.elements.arrow,J=h&&j?ko(j):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Sc(),le=Z[I],ue=Z[W],Y=bn(0,x[U],J[U]),X=D?x[U]/2-F-Y-le-b.mainAxis:N-Y-le-b.mainAxis,$=D?-x[U]/2+F+Y+ue+b.mainAxis:Q+Y+ue+b.mainAxis,P=e.elements.arrow&&gn(e.elements.arrow),z=P?g==="y"?P.clientTop||0:P.clientLeft||0:0,ne=(L=T?.[g])!=null?L:0,ae=H+X-ne-z,ye=H+$-ne,we=bn(h?cr(V,ae):V,H,h?xi(K,ye):K);v[g]=we,R[g]=we-H}if(l){var xe,Fe=g==="x"?yt:wt,_e=g==="x"?Ot:Lt,Ne=v[M],de=M==="y"?"height":"width",q=Ne+A[Fe],ie=Ne-A[_e],me=[yt,wt].indexOf(w)!==-1,he=(xe=T?.[M])!=null?xe:0,ke=me?q:Ne-x[de]-y[de]-he+b.altAxis,Me=me?Ne+x[de]+y[de]-he-b.altAxis:ie,oe=h&&me?hv(ke,Ne,Me):bn(h?ke:q,Ne,h?Me:ie);v[M]=oe,R[M]=oe-Ne}e.modifiersData[i]=R}}const Wv={name:"preventOverflow",enabled:!0,phase:"main",fn:jv,requiresIfExists:["offset"]};function Uv(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Gv(n){return n===kt(n)||!Bt(n)?xo(n):Uv(n)}function Yv(n){var e=n.getBoundingClientRect(),t=Ui(e.width)/n.offsetWidth||1,i=Ui(e.height)/n.offsetHeight||1;return t!==1||i!==1}function Qv(n,e,t){t===void 0&&(t=!1);var i=Bt(e),r=Bt(e)&&Yv(e),s=mi(e),o=Gi(n,r,t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!t)&&((Qt(e)!=="body"||Mo(s))&&(l=Gv(e)),Bt(e)?(u=Gi(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=Ro(s))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function Kv(n){var e=new Map,t=new Set,i=[];n.forEach(function(s){e.set(s.name,s)});function r(s){t.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(l){if(!t.has(l)){var u=e.get(l);u&&r(u)}}),i.push(s)}return n.forEach(function(s){t.has(s.name)||r(s)}),i}function Jv(n){var e=Kv(n);return av.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function qv(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function $v(n){var e=n.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var _c={placement:"bottom",modifiers:[],strategy:"absolute"};function Pc(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Zv(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,i=t===void 0?[]:t,r=e.defaultOptions,s=r===void 0?_c:r;return function(l,u,c){c===void 0&&(c=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},_c,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(w){var m=typeof w=="function"?w(d.options):w;C(),d.options=Object.assign({},s,d.options,m),d.scrollParents={reference:Si(l)?vn(l):l.contextElement?vn(l.contextElement):[],popper:vn(u)};var D=Jv($v([].concat(i,d.options.modifiers)));return d.orderedModifiers=D.filter(function(g){return g.enabled}),k(),h.update()},forceUpdate:function(){if(!p){var w=d.elements,m=w.reference,D=w.popper;if(Pc(m,D)){d.rects={reference:Qv(m,gn(D),d.options.strategy==="fixed"),popper:ko(D)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(b){return d.modifiersData[b.name]=Object.assign({},b.data)});for(var g=0;g<d.orderedModifiers.length;g++){if(d.reset===!0){d.reset=!1,g=-1;continue}var M=d.orderedModifiers[g],v=M.fn,x=M.options,y=x===void 0?{}:x,S=M.name;typeof v=="function"&&(d=v({state:d,options:y,name:S,instance:h})||d)}}}},update:qv(function(){return new Promise(function(A){h.forceUpdate(),A(d)})}),destroy:function(){C(),p=!0}};if(!Pc(l,u))return h;h.setOptions(c).then(function(A){!p&&c.onFirstUpdate&&c.onFirstUpdate(A)});function k(){d.orderedModifiers.forEach(function(A){var w=A.name,m=A.options,D=m===void 0?{}:m,g=A.effect;if(typeof g=="function"){var M=g({state:d,name:w,instance:h,options:D}),v=function(){};f.push(M||v)}})}function C(){f.forEach(function(A){return A()}),f=[]}return h}}var Xv=[Av,Vv,wv,uv,Iv,Bv,Wv,gv,_v],ey=Zv({defaultModifiers:Xv});function ty(n,e,{width:t}){n.style.width=t;const i=ey(e.$refs.toggle,n,{placement:e.$attrs.placement,modifiers:[{name:"offset",options:{offset:[0,-1]}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:r}){e.$el.classList.toggle("drop-up",r.placement==="top")}}]});return()=>i.destroy()}const iy={class:"r3-vselect d-flex flex-column"},ny={key:0,class:"text-muted"},ry={key:0,class:"py-1"},sy={class:"text-wrap"},ay=["innerHTML"],oy={key:1,class:"text-muted p-0"},ly={class:"text-wrap"},uy={key:2,class:"text-muted p-0 small d-flex justify-content-center"},cy={class:"text-wrap px-2"},dy={key:0,class:"selected"},hy=["innerHTML"],fy={key:0,style:{"border-left-color":"rgba(88, 151, 251, 0.71)"},class:"vs__spinner"},Vt={__name:"VSelect",props:{modelValue:[String,Object,Number],reduce:{type:Function,default:n=>n.id},hint:{type:String,default:""},classes:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},title:{type:String},titleClass:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!0},searchTimout:{type:Number,default:1e3},dropDownPlacement:{type:String,default:"bottom",validator(n,e){return["bottom","top"].includes(n)}},teleportDropdown:{type:String,default:"auto",validator:n=>["auto","yes","no"].includes(n)},error:{type:[Array,String],default:null}},emits:["update:modelValue","search","blur","focus"],setup(n,{emit:e}){const t=e,i=n,r=i.multiple?[]:null;a.getCurrentInstance();const s=a.ref(r),o=hn(c,i.searchTimout),l=a.computed(()=>i.teleportDropdown==="yes"?!0:i.teleportDropdown==="no"?!1:i.dropDownPlacement==="top"),u=a.computed(()=>{const p=oi(i.options);return p?p.map(h=>{const k=i.modelValue;return k?{...h,disabled:h.id===k}:h}):[]});function c(p){t("search",p)}const d=p=>!(!p.id||p.disabled),f=a.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean):typeof i.error=="string"&&i.error?[i.error]:[]);return a.watch(()=>i.modelValue,p=>{s.value=i.modelValue},{deep:!0}),a.watch(()=>s.value,p=>{t("update:modelValue",p)},{deep:!0}),a.onMounted(()=>{s.value=i.modelValue}),(p,h)=>(a.openBlock(),a.createElementBlock("div",iy,[n.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["r3-vselect__title",n.titleClass])},a.toDisplayString(n.title),3)):a.createCommentVNode("",!0),a.createVNode(a.unref(Kb),a.mergeProps({class:"style-chooser"},p.$attrs,{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=k=>s.value=k),reduce:n.reduce,options:u.value,multiple:n.multiple,placeholder:n.placeholder,disabled:n.disabled,loading:n.isLoading,clearable:n.allowClear,placement:n.dropDownPlacement,appendToBody:l.value,"calculate-position":a.unref(ty),selectable:k=>d(k),"onSearch:blur":h[1]||(h[1]=k=>t("blur")),"onSearch:focus":h[2]||(h[2]=k=>t("focus")),onSearch:a.unref(o),class:[...n.classes,n.error?"not-valid":""]}),{"no-options":a.withCtx(k=>[k?(a.openBlock(),a.createElementBlock("span",ny,a.toDisplayString(n.hint),1)):a.createCommentVNode("",!0)]),option:a.withCtx(k=>[k!=null?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[k.id?(a.openBlock(),a.createElementBlock("div",ry,[a.createElementVNode("div",sy,a.toDisplayString(k.label),1),k.html?(a.openBlock(),a.createElementBlock("div",{key:0,innerHTML:k.html},null,8,ay)):a.createCommentVNode("",!0)])):k.disabled?(a.openBlock(),a.createElementBlock("div",oy,[a.createElementVNode("div",ly,a.toDisplayString(k.label)+"disabled",1)])):(a.openBlock(),a.createElementBlock("div",uy,[h[3]||(h[3]=a.createElementVNode("span",null,"-",-1)),a.createElementVNode("span",cy,a.toDisplayString(k.label),1),h[4]||(h[4]=a.createElementVNode("span",null,"-",-1))]))],64)):a.createCommentVNode("",!0)]),"selected-option":a.withCtx(k=>[k!=null?(a.openBlock(),a.createElementBlock("div",dy,[a.createElementVNode("div",null,a.toDisplayString(k.label),1),k.html?(a.openBlock(),a.createElementBlock("div",{key:0,innerHTML:k.html},null,8,hy)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]),spinner:a.withCtx(k=>[k!=null&&k.loading?(a.openBlock(),a.createElementBlock("div",fy)):a.createCommentVNode("",!0)]),_:1},16,["modelValue","reduce","options","multiple","placeholder","disabled","loading","clearable","placement","appendToBody","calculate-position","selectable","onSearch","class"]),a.createVNode(ki,{errors:f.value},null,8,["errors"])]))}},py={class:"form-check"},my=["type","id","name"],gy=["for"],Nc=Ie(a.defineComponent({__name:"BooleanCheckbox",props:{defaultValue:{default:null},trueValue:{default:"1"},modelValue:{default:void 0},name:{default:""},group:{default:""},type:{default:"checkbox"},label:{default:""},error:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=a.ref(),s=pi(),o=a.computed(()=>t.group.length?t.group:t.name),l=()=>{i("update:modelValue",r.value?.checked?t.trueValue:t.defaultValue)},u=a.computed(()=>!t.modelValue||t.modelValue!==t.trueValue?(r.value&&(r.value.checked=!1),c(),null):(r.value&&(r.value.checked=!0),c(),!0)),c=()=>{if(!t.setFilterParamsStringsHandler)return!1;const f=r.value?.checked?"Да":null;t.setFilterParamsStringsHandler(t.name,f)},d=a.computed(()=>Array.isArray(t.error)?t.error?.filter(Boolean)||[]:typeof t.error=="string"&&t.error?[t.error]:[]);return a.watch(()=>t.modelValue,f=>{r.value&&(r.value.checked=!!f)}),(f,p)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",py,[(a.openBlock(),a.createElementBlock("input",{class:a.normalizeClass(["form-check-input mb-1",[f.error?"not-valid":""]]),ref_key:"input",ref:r,type:f.type,id:String(a.unref(s)),name:o.value,key:String(u.value),onClick:l},null,10,my)),a.createElementVNode("label",{class:a.normalizeClass(["form-check-label",[f.error?"text-danger":""]]),for:String(a.unref(s))},a.toDisplayString(f.label),11,gy)]),a.createVNode(ki,{errors:d.value},null,8,["errors"])],64))}}),[["__scopeId","data-v-c1b5c25e"]]),by={class:"multi-checkbox"},vy=["checked","onClick","id","value","name"],yy=["for"],wy=Ie(a.defineComponent({__name:"MultiCheckbox",props:{modelValue:{default:()=>[]},inputClass:{default:""},options:{default:()=>[]},error:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0},name:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=a.toRef(t,"modelValue"),s=a.toRef(t,"options"),o=a.toRef(t,"name");function l(f,p){const h=String(p);let k=[...r.value];r.value.includes(h)?k=r.value.filter(C=>String(C)!==h):k.push(h),i("update:modelValue",k)}const u=a.computed(()=>f=>r.value.includes(String(f)));function c(f){if(!t.setFilterParamsStringsHandler)return;let p=f.map(k=>String(k));const h=s.value.filter(k=>p.includes(String(k.id))).map(k=>k.text);if(p.length===0){t.setFilterParamsStringsHandler(o.value,null);return}t.setFilterParamsStringsHandler(o.value,h.join(", "))}const d=a.computed(()=>Array.isArray(t.error)?t.error?.filter(Boolean)||[]:typeof t.error=="string"&&t.error?[t.error]:[]);return a.watch(()=>r.value,f=>{c(f)},{deep:!0}),(f,p)=>(a.openBlock(),a.createElementBlock("div",by,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,h=>(a.openBlock(),a.createElementBlock("div",{class:"form-check",key:h.id},[a.createElementVNode("input",{class:a.normalizeClass(["form-check-input",[f.inputClass,{"not-valid":f.error}]]),type:"checkbox",checked:u.value(h.id),onClick:k=>l(k,h.id),id:`${o.value}-${h.id}`,value:h.id,name:`${o.value}-${h.id}`},null,10,vy),a.createElementVNode("label",{class:"form-check-label d-block",for:`${o.value}-${h.id}`},a.toDisplayString(h.text),9,yy)]))),128)),a.createVNode(ki,{errors:d.value},null,8,["errors"])]))}}),[["__scopeId","data-v-e23ac74b"]]),Cy={class:"multi-input"},Ay={class:"col"},Ey={class:"col-auto"},ky=["onClick"],Sy=Ie(a.defineComponent({__name:"MultiInput",props:{modelValue:{default:()=>[]},title:{default:""},setFilterParamsStringsHandler:{type:Function,default:void 0},name:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},inputClass:{default:""},error:{default:""},maskOptions:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=a.toRef(t,"modelValue");a.toRef(t,"title");const s=a.toRef(t,"placeholder");a.toRef(t,"disabled");const o=a.toRef(t,"error"),l=a.toRef(t,"maskOptions"),u=a.ref([]),c=a.ref(!1),d={value:"",disabled:!1,uniqueKey:1};function f(){const w=oi(d);w.uniqueKey=pi(),u.value.push(w)}function p(w,m){w.value=m}const h=a.computed(()=>u.value.length>1);function k(w){u.value=u.value.filter(m=>m.uniqueKey!==w.uniqueKey)}function C(){u.value=[],f()}function A(w){const m=w.map(g=>g.value);if(i("update:modelValue",m),!t.setFilterParamsStringsHandler)return;const D=m.filter(g=>g&&g.length>0);if(D.length===0){t.setFilterParamsStringsHandler(t.name,null);return}t.setFilterParamsStringsHandler(t.name,D.join(", "))}return a.watch(()=>u.value,w=>{c.value||A(w)},{deep:!0}),a.watch(()=>r.value,w=>{c.value=!0,!w||w.length===0?C():u.value.length!==w.length?u.value=w.map((m,D)=>({value:m,disabled:!1,uniqueKey:pi()+D})):w.forEach((m,D)=>{u.value[D]&&(u.value[D].value=m)}),a.nextTick(()=>{c.value=!1})},{deep:!0}),a.onMounted(()=>{r.value&&r.value.length>0?u.value=r.value.map((w,m)=>({value:w,disabled:!1,uniqueKey:pi()+m})):f()}),(w,m)=>(a.openBlock(),a.createElementBlock("div",Cy,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(D,g)=>(a.openBlock(),a.createElementBlock("div",{class:"row mb-2",key:D.uniqueKey},[a.createElementVNode("div",Ay,[a.createVNode(ur,{"model-value":D.value,"onUpdate:modelValue":M=>p(D,M),name:w.name,placeholder:s.value,class:a.normalizeClass(w.inputClass),disabled:D.disabled,"mask-options":l.value,error:o.value},null,8,["model-value","onUpdate:modelValue","name","placeholder","class","disabled","mask-options","error"])]),a.createElementVNode("div",Ey,[h.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"d-flex remove-button p-2",style:{cursor:"pointer"},onClick:M=>k(D)},[...m[0]||(m[0]=[a.createElementVNode("i",{class:"bi bi-trash-fill"},null,-1)])],8,ky)):a.createCommentVNode("",!0)])]))),128)),a.createVNode(il,{onClick:f})]))}}),[["__scopeId","data-v-9337052b"]]);var Do=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Qi={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(n){return typeof console<"u"&&console.warn(n)},getWeek:function(n){var e=new Date(n.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},wn={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){var e=n%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Ct=function(n,e){return e===void 0&&(e=2),("000"+n).slice(e*-1)},Ft=function(n){return n===!0?1:0};function Ic(n,e){var t;return function(){var i=this,r=arguments;clearTimeout(t),t=setTimeout(function(){return n.apply(i,r)},e)}}var Oo=function(n){return n instanceof Array?n:[n]};function gt(n,e,t){if(t===!0)return n.classList.add(e);n.classList.remove(e)}function Je(n,e,t){var i=window.document.createElement(n);return e=e||"",t=t||"",i.className=e,t!==void 0&&(i.textContent=t),i}function pr(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function Hc(n,e){if(e(n))return n;if(n.parentNode)return Hc(n.parentNode,e)}function mr(n,e){var t=Je("div","numInputWrapper"),i=Je("input","numInput "+n),r=Je("span","arrowUp"),s=Je("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?i.type="number":(i.type="text",i.pattern="\\d*"),e!==void 0)for(var o in e)i.setAttribute(o,e[o]);return t.appendChild(i),t.appendChild(r),t.appendChild(s),t}function St(n){try{if(typeof n.composedPath=="function"){var e=n.composedPath();return e[0]}return n.target}catch{return n.target}}var Lo=function(){},gr=function(n,e,t){return t.months[e?"shorthand":"longhand"][n]},xy={D:Lo,F:function(n,e,t){n.setMonth(t.months.longhand.indexOf(e))},G:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},H:function(n,e){n.setHours(parseFloat(e))},J:function(n,e){n.setDate(parseFloat(e))},K:function(n,e,t){n.setHours(n.getHours()%12+12*Ft(new RegExp(t.amPM[1],"i").test(e)))},M:function(n,e,t){n.setMonth(t.months.shorthand.indexOf(e))},S:function(n,e){n.setSeconds(parseFloat(e))},U:function(n,e){return new Date(parseFloat(e)*1e3)},W:function(n,e,t){var i=parseInt(e),r=new Date(n.getFullYear(),0,2+(i-1)*7,0,0,0,0);return r.setDate(r.getDate()-r.getDay()+t.firstDayOfWeek),r},Y:function(n,e){n.setFullYear(parseFloat(e))},Z:function(n,e){return new Date(e)},d:function(n,e){n.setDate(parseFloat(e))},h:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},i:function(n,e){n.setMinutes(parseFloat(e))},j:function(n,e){n.setDate(parseFloat(e))},l:Lo,m:function(n,e){n.setMonth(parseFloat(e)-1)},n:function(n,e){n.setMonth(parseFloat(e)-1)},s:function(n,e){n.setSeconds(parseFloat(e))},u:function(n,e){return new Date(parseFloat(e))},w:Lo,y:function(n,e){n.setFullYear(2e3+parseFloat(e))}},Ri={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Cn={Z:function(n){return n.toISOString()},D:function(n,e,t){return e.weekdays.shorthand[Cn.w(n,e,t)]},F:function(n,e,t){return gr(Cn.n(n,e,t)-1,!1,e)},G:function(n,e,t){return Ct(Cn.h(n,e,t))},H:function(n){return Ct(n.getHours())},J:function(n,e){return e.ordinal!==void 0?n.getDate()+e.ordinal(n.getDate()):n.getDate()},K:function(n,e){return e.amPM[Ft(n.getHours()>11)]},M:function(n,e){return gr(n.getMonth(),!0,e)},S:function(n){return Ct(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,e,t){return t.getWeek(n)},Y:function(n){return Ct(n.getFullYear(),4)},d:function(n){return Ct(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return Ct(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,e){return e.weekdays.longhand[n.getDay()]},m:function(n){return Ct(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},u:function(n){return n.getTime()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}},Vc=function(n){var e=n.config,t=e===void 0?Qi:e,i=n.l10n,r=i===void 0?wn:i,s=n.isMobile,o=s===void 0?!1:s;return function(l,u,c){var d=c||r;return t.formatDate!==void 0&&!o?t.formatDate(l,u,d):u.split("").map(function(f,p,h){return Cn[f]&&h[p-1]!=="\\"?Cn[f](l,d,t):f!=="\\"?f:""}).join("")}},Bo=function(n){var e=n.config,t=e===void 0?Qi:e,i=n.l10n,r=i===void 0?wn:i;return function(s,o,l,u){if(!(s!==0&&!s)){var c=u||r,d,f=s;if(s instanceof Date)d=new Date(s.getTime());else if(typeof s!="string"&&s.toFixed!==void 0)d=new Date(s);else if(typeof s=="string"){var p=o||(t||Qi).dateFormat,h=String(s).trim();if(h==="today")d=new Date,l=!0;else if(t&&t.parseDate)d=t.parseDate(s,p);else if(/Z$/.test(h)||/GMT$/.test(h))d=new Date(s);else{for(var k=void 0,C=[],A=0,w=0,m="";A<p.length;A++){var D=p[A],g=D==="\\",M=p[A-1]==="\\"||g;if(Ri[D]&&!M){m+=Ri[D];var v=new RegExp(m).exec(s);v&&(k=!0)&&C[D!=="Y"?"push":"unshift"]({fn:xy[D],val:v[++w]})}else g||(m+=".")}d=!t||!t.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),C.forEach(function(x){var y=x.fn,S=x.val;return d=y(d,S,c)||d}),d=k?d:void 0}}if(!(d instanceof Date&&!isNaN(d.getTime()))){t.errorHandler(new Error("Invalid date provided: "+f));return}return l===!0&&d.setHours(0,0,0,0),d}}};function xt(n,e,t){return t===void 0&&(t=!0),t!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):n.getTime()-e.getTime()}var Ry=function(n,e,t){return n>Math.min(e,t)&&n<Math.max(e,t)},Fo=function(n,e,t){return n*3600+e*60+t},My=function(n){var e=Math.floor(n/3600),t=(n-e*3600)/60;return[e,t,n-e*3600-t*60]},Ty={DAY:864e5};function _o(n){var e=n.defaultHour,t=n.defaultMinute,i=n.defaultSeconds;if(n.minDate!==void 0){var r=n.minDate.getHours(),s=n.minDate.getMinutes(),o=n.minDate.getSeconds();e<r&&(e=r),e===r&&t<s&&(t=s),e===r&&t===s&&i<o&&(i=n.minDate.getSeconds())}if(n.maxDate!==void 0){var l=n.maxDate.getHours(),u=n.maxDate.getMinutes();e=Math.min(e,l),e===l&&(t=Math.min(u,t)),e===l&&t===u&&(i=n.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:i}}typeof Object.assign!="function"&&(Object.assign=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var i=function(l){l&&Object.keys(l).forEach(function(u){return n[u]=l[u]})},r=0,s=e;r<s.length;r++){var o=s[r];i(o)}return n});var ft=function(){return ft=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},ft.apply(this,arguments)},zc=function(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var i=Array(n),r=0,e=0;e<t;e++)for(var s=arguments[e],o=0,l=s.length;o<l;o++,r++)i[r]=s[o];return i},Dy=300;function Oy(n,e){var t={config:ft(ft({},Qi),ot.defaultConfig),l10n:wn};t.parseDate=Bo({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=C,t._setHoursFromDate=p,t._positionCalendar=_e,t.changeMonth=N,t.changeYear=ue,t.clear=Q,t.close=j,t.onMouseOver=z,t._createElement=Je,t.createDay=v,t.destroy=J,t.isEnabled=Y,t.jumpToDate=m,t.updateValue=Re,t.open=ae,t.redraw=q,t.set=ke,t.setDate=oe,t.toggle=At;function i(){t.utils={getDaysInMonth:function(B,E){return B===void 0&&(B=t.currentMonth),E===void 0&&(E=t.currentYear),B===1&&(E%4===0&&E%100!==0||E%400===0)?29:t.l10n.daysInMonth[B]}}}function r(){t.element=t.input=n,t.isOpen=!1,we(),Fe(),et(),Le(),i(),t.isMobile||M(),w(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&p(t.config.noCalendar?t.latestSelectedDateObj:void 0),Re(!1)),l();var B=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&B&&_e(),Ge("onReady")}function s(){var B;return((B=t.calendarContainer)===null||B===void 0?void 0:B.getRootNode()).activeElement||document.activeElement}function o(B){return B.bind(t)}function l(){var B=t.config;B.weekNumbers===!1&&B.showMonths===1||B.noCalendar!==!0&&window.requestAnimationFrame(function(){if(t.calendarContainer!==void 0&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),t.daysContainer!==void 0){var E=(t.days.offsetWidth+1)*B.showMonths;t.daysContainer.style.width=E+"px",t.calendarContainer.style.width=E+(t.weekWrapper!==void 0?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}})}function u(B){if(t.selectedDates.length===0){var E=t.config.minDate===void 0||xt(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),O=_o(t.config);E.setHours(O.hours,O.minutes,O.seconds,E.getMilliseconds()),t.selectedDates=[E],t.latestSelectedDateObj=E}B!==void 0&&B.type!=="blur"&&ge(B);var _=t._input.value;f(),Re(),t._input.value!==_&&t._debouncedChange()}function c(B,E){return B%12+12*Ft(E===t.l10n.amPM[1])}function d(B){switch(B%24){case 0:case 12:return 12;default:return B%12}}function f(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var B=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,E=(parseInt(t.minuteElement.value,10)||0)%60,O=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(B=c(B,t.amPM.textContent));var _=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&xt(t.latestSelectedDateObj,t.config.minDate,!0)===0,G=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&xt(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var re=Fo(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),ce=Fo(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),fe=Fo(B,E,O);if(fe>ce&&fe<re){var pe=My(re);B=pe[0],E=pe[1],O=pe[2]}}else{if(G){var be=t.config.maxTime!==void 0?t.config.maxTime:t.config.maxDate;B=Math.min(B,be.getHours()),B===be.getHours()&&(E=Math.min(E,be.getMinutes())),E===be.getMinutes()&&(O=Math.min(O,be.getSeconds()))}if(_){var Ce=t.config.minTime!==void 0?t.config.minTime:t.config.minDate;B=Math.max(B,Ce.getHours()),B===Ce.getHours()&&E<Ce.getMinutes()&&(E=Ce.getMinutes()),E===Ce.getMinutes()&&(O=Math.max(O,Ce.getSeconds()))}}h(B,E,O)}}function p(B){var E=B||t.latestSelectedDateObj;E&&E instanceof Date&&h(E.getHours(),E.getMinutes(),E.getSeconds())}function h(B,E,O){t.latestSelectedDateObj!==void 0&&t.latestSelectedDateObj.setHours(B%24,E,O||0,0),!(!t.hourElement||!t.minuteElement||t.isMobile)&&(t.hourElement.value=Ct(t.config.time_24hr?B:(12+B)%12+12*Ft(B%12===0)),t.minuteElement.value=Ct(E),t.amPM!==void 0&&(t.amPM.textContent=t.l10n.amPM[Ft(B>=12)]),t.secondElement!==void 0&&(t.secondElement.value=Ct(O)))}function k(B){var E=St(B),O=parseInt(E.value)+(B.delta||0);(O/1e3>1||B.key==="Enter"&&!/[^\d]/.test(O.toString()))&&ue(O)}function C(B,E,O,_){if(E instanceof Array)return E.forEach(function(G){return C(B,G,O,_)});if(B instanceof Array)return B.forEach(function(G){return C(G,E,O,_)});B.addEventListener(E,O,_),t._handlers.push({remove:function(){return B.removeEventListener(E,O,_)}})}function A(){Ge("onChange")}function w(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(O){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+O+"]"),function(_){return C(_,"click",t[O])})}),t.isMobile){Rt();return}var B=Ic(ne,50);if(t._debouncedChange=Ic(A,Dy),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&C(t.daysContainer,"mouseover",function(O){t.config.mode==="range"&&z(St(O))}),C(t._input,"keydown",P),t.calendarContainer!==void 0&&C(t.calendarContainer,"keydown",P),!t.config.inline&&!t.config.static&&C(window,"resize",B),window.ontouchstart!==void 0?C(window.document,"touchstart",le):C(window.document,"mousedown",le),C(window.document,"focus",le,{capture:!0}),t.config.clickOpens===!0&&(C(t._input,"focus",t.open),C(t._input,"click",t.open)),t.daysContainer!==void 0&&(C(t.monthNav,"click",ct),C(t.monthNav,["keyup","increment"],k),C(t.daysContainer,"click",me)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var E=function(O){return St(O).select()};C(t.timeContainer,["increment"],u),C(t.timeContainer,"blur",u,{capture:!0}),C(t.timeContainer,"click",D),C([t.hourElement,t.minuteElement],["focus","click"],E),t.secondElement!==void 0&&C(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&C(t.amPM,"click",function(O){u(O)})}t.config.allowInput&&C(t._input,"blur",$)}function m(B,E){var O=B!==void 0?t.parseDate(B):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),_=t.currentYear,G=t.currentMonth;try{O!==void 0&&(t.currentYear=O.getFullYear(),t.currentMonth=O.getMonth())}catch(re){re.message="Invalid date supplied: "+O,t.config.errorHandler(re)}E&&t.currentYear!==_&&(Ge("onYearChange"),L()),E&&(t.currentYear!==_||t.currentMonth!==G)&&Ge("onMonthChange"),t.redraw()}function D(B){var E=St(B);~E.className.indexOf("arrow")&&g(B,E.classList.contains("arrowUp")?1:-1)}function g(B,E,O){var _=B&&St(B),G=O||_&&_.parentNode&&_.parentNode.firstChild,re=te("increment");re.delta=E,G&&G.dispatchEvent(re)}function M(){var B=window.document.createDocumentFragment();if(t.calendarContainer=Je("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(B.appendChild(U()),t.innerContainer=Je("div","flatpickr-innerContainer"),t.config.weekNumbers){var E=F(),O=E.weekWrapper,_=E.weekNumbers;t.innerContainer.appendChild(O),t.weekNumbers=_,t.weekWrapper=O}t.rContainer=Je("div","flatpickr-rContainer"),t.rContainer.appendChild(V()),t.daysContainer||(t.daysContainer=Je("div","flatpickr-days"),t.daysContainer.tabIndex=-1),R(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),B.appendChild(t.innerContainer)}t.config.enableTime&&B.appendChild(H()),gt(t.calendarContainer,"rangeMode",t.config.mode==="range"),gt(t.calendarContainer,"animate",t.config.animate===!0),gt(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(B);var G=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!G&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var re=Je("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(re,t.element),re.appendChild(t.element),t.altInput&&re.appendChild(t.altInput),re.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function v(B,E,O,_){var G=Y(E,!0),re=Je("span",B,E.getDate().toString());return re.dateObj=E,re.$i=_,re.setAttribute("aria-label",t.formatDate(E,t.config.ariaDateFormat)),B.indexOf("hidden")===-1&&xt(E,t.now)===0&&(t.todayDateElem=re,re.classList.add("today"),re.setAttribute("aria-current","date")),G?(re.tabIndex=-1,se(E)&&(re.classList.add("selected"),t.selectedDateElem=re,t.config.mode==="range"&&(gt(re,"startRange",t.selectedDates[0]&&xt(E,t.selectedDates[0],!0)===0),gt(re,"endRange",t.selectedDates[1]&&xt(E,t.selectedDates[1],!0)===0),B==="nextMonthDay"&&re.classList.add("inRange")))):re.classList.add("flatpickr-disabled"),t.config.mode==="range"&&Pe(E)&&!se(E)&&re.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&B!=="prevMonthDay"&&_%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(E)+"</span>"),Ge("onDayCreate",re),re}function x(B){B.focus(),t.config.mode==="range"&&z(B)}function y(B){for(var E=B>0?0:t.config.showMonths-1,O=B>0?t.config.showMonths:-1,_=E;_!=O;_+=B)for(var G=t.daysContainer.children[_],re=B>0?0:G.children.length-1,ce=B>0?G.children.length:-1,fe=re;fe!=ce;fe+=B){var pe=G.children[fe];if(pe.className.indexOf("hidden")===-1&&Y(pe.dateObj))return pe}}function S(B,E){for(var O=B.className.indexOf("Month")===-1?B.dateObj.getMonth():t.currentMonth,_=E>0?t.config.showMonths:-1,G=E>0?1:-1,re=O-t.currentMonth;re!=_;re+=G)for(var ce=t.daysContainer.children[re],fe=O-t.currentMonth===re?B.$i+E:E<0?ce.children.length-1:0,pe=ce.children.length,be=fe;be>=0&&be<pe&&be!=(E>0?pe:-1);be+=G){var Ce=ce.children[be];if(Ce.className.indexOf("hidden")===-1&&Y(Ce.dateObj)&&Math.abs(B.$i-be)>=Math.abs(E))return x(Ce)}t.changeMonth(G),b(y(G),0)}function b(B,E){var O=s(),_=X(O||document.body),G=B!==void 0?B:_?O:t.selectedDateElem!==void 0&&X(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&X(t.todayDateElem)?t.todayDateElem:y(E>0?1:-1);G===void 0?t._input.focus():_?S(G,E):x(G)}function T(B,E){for(var O=(new Date(B,E,1).getDay()-t.l10n.firstDayOfWeek+7)%7,_=t.utils.getDaysInMonth((E-1+12)%12,B),G=t.utils.getDaysInMonth(E,B),re=window.document.createDocumentFragment(),ce=t.config.showMonths>1,fe=ce?"prevMonthDay hidden":"prevMonthDay",pe=ce?"nextMonthDay hidden":"nextMonthDay",be=_+1-O,Ce=0;be<=_;be++,Ce++)re.appendChild(v("flatpickr-day "+fe,new Date(B,E-1,be),be,Ce));for(be=1;be<=G;be++,Ce++)re.appendChild(v("flatpickr-day",new Date(B,E,be),be,Ce));for(var De=G+1;De<=42-O&&(t.config.showMonths===1||Ce%7!==0);De++,Ce++)re.appendChild(v("flatpickr-day "+pe,new Date(B,E+1,De%G),De,Ce));var We=Je("div","dayContainer");return We.appendChild(re),We}function R(){if(t.daysContainer!==void 0){pr(t.daysContainer),t.weekNumbers&&pr(t.weekNumbers);for(var B=document.createDocumentFragment(),E=0;E<t.config.showMonths;E++){var O=new Date(t.currentYear,t.currentMonth,1);O.setMonth(t.currentMonth+E),B.appendChild(T(O.getFullYear(),O.getMonth()))}t.daysContainer.appendChild(B),t.days=t.daysContainer.firstChild,t.config.mode==="range"&&t.selectedDates.length===1&&z()}}function L(){if(!(t.config.showMonths>1||t.config.monthSelectorType!=="dropdown")){var B=function(_){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&_<t.config.minDate.getMonth()?!1:!(t.config.maxDate!==void 0&&t.currentYear===t.config.maxDate.getFullYear()&&_>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var E=0;E<12;E++)if(B(E)){var O=Je("option","flatpickr-monthDropdown-month");O.value=new Date(t.currentYear,E).getMonth().toString(),O.textContent=gr(E,t.config.shorthandCurrentMonth,t.l10n),O.tabIndex=-1,t.currentMonth===E&&(O.selected=!0),t.monthsDropdownContainer.appendChild(O)}}}function I(){var B=Je("div","flatpickr-month"),E=window.document.createDocumentFragment(),O;t.config.showMonths>1||t.config.monthSelectorType==="static"?O=Je("span","cur-month"):(t.monthsDropdownContainer=Je("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),C(t.monthsDropdownContainer,"change",function(ce){var fe=St(ce),pe=parseInt(fe.value,10);t.changeMonth(pe-t.currentMonth),Ge("onMonthChange")}),L(),O=t.monthsDropdownContainer);var _=mr("cur-year",{tabindex:"-1"}),G=_.getElementsByTagName("input")[0];G.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&G.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(G.setAttribute("max",t.config.maxDate.getFullYear().toString()),G.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var re=Je("div","flatpickr-current-month");return re.appendChild(O),re.appendChild(_),E.appendChild(re),B.appendChild(E),{container:B,yearElement:G,monthElement:O}}function W(){pr(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var B=t.config.showMonths;B--;){var E=I();t.yearElements.push(E.yearElement),t.monthElements.push(E.monthElement),t.monthNav.appendChild(E.container)}t.monthNav.appendChild(t.nextMonthNav)}function U(){return t.monthNav=Je("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=Je("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=Je("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,W(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(B){t.__hidePrevMonthArrow!==B&&(gt(t.prevMonthNav,"flatpickr-disabled",B),t.__hidePrevMonthArrow=B)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(B){t.__hideNextMonthArrow!==B&&(gt(t.nextMonthNav,"flatpickr-disabled",B),t.__hideNextMonthArrow=B)}}),t.currentYearElement=t.yearElements[0],ze(),t.monthNav}function H(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var B=_o(t.config);t.timeContainer=Je("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var E=Je("span","flatpickr-time-separator",":"),O=mr("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=O.getElementsByTagName("input")[0];var _=mr("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=_.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=Ct(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?B.hours:d(B.hours)),t.minuteElement.value=Ct(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():B.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(O),t.timeContainer.appendChild(E),t.timeContainer.appendChild(_),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var G=mr("flatpickr-second");t.secondElement=G.getElementsByTagName("input")[0],t.secondElement.value=Ct(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():B.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(Je("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(G)}return t.config.time_24hr||(t.amPM=Je("span","flatpickr-am-pm",t.l10n.amPM[Ft((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function V(){t.weekdayContainer?pr(t.weekdayContainer):t.weekdayContainer=Je("div","flatpickr-weekdays");for(var B=t.config.showMonths;B--;){var E=Je("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(E)}return K(),t.weekdayContainer}function K(){if(t.weekdayContainer){var B=t.l10n.firstDayOfWeek,E=zc(t.l10n.weekdays.shorthand);B>0&&B<E.length&&(E=zc(E.splice(B,E.length),E.splice(0,B)));for(var O=t.config.showMonths;O--;)t.weekdayContainer.children[O].innerHTML=`
|
|
28
28
|
<span class='flatpickr-weekday'>
|
|
29
29
|
`+E.join("</span><span class='flatpickr-weekday'>")+`
|
|
30
30
|
</span>
|
|
31
|
-
`}}function F(){t.calendarContainer.classList.add("hasWeeks");var B=Je("div","flatpickr-weekwrapper");B.appendChild(Je("span","flatpickr-weekday",t.l10n.weekAbbreviation));var E=Je("div","flatpickr-weeks");return B.appendChild(E),{weekWrapper:B,weekNumbers:E}}function P(B,E){E===void 0&&(E=!0);var O=E?B:B-t.currentMonth;O<0&&t._hidePrevMonthArrow===!0||O>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=O,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Ge("onYearChange"),L()),R(),Ge("onMonthChange"),ze())}function Q(B,E){if(B===void 0&&(B=!0),E===void 0&&(E=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,E===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var O=_o(t.config),_=O.hours,Y=O.minutes,ne=O.seconds;h(_,Y,ne)}t.redraw(),B&&Ge("onChange")}function j(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),Ge("onClose")}function q(){t.config!==void 0&&Ge("onDestroy");for(var B=t._handlers.length;B--;)t._handlers[B].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var E=t.calendarContainer.parentNode;if(E.lastChild&&E.removeChild(E.lastChild),E.parentNode){for(;E.firstChild;)E.parentNode.insertBefore(E.firstChild,E);E.parentNode.removeChild(E)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(O){try{delete t[O]}catch{}})}function X(B){return t.calendarContainer.contains(B)}function ae(B){if(t.isOpen&&!t.config.inline){var E=St(B),O=X(E),_=E===t.input||E===t.altInput||t.element.contains(E)||B.path&&B.path.indexOf&&(~B.path.indexOf(t.input)||~B.path.indexOf(t.altInput)),Y=!_&&!O&&!X(B.relatedTarget),ne=!t.config.ignoredFocusElements.some(function(ce){return ce.contains(E)});Y&&ne&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&u(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function $(B){if(!(!B||t.config.minDate&&B<t.config.minDate.getFullYear()||t.config.maxDate&&B>t.config.maxDate.getFullYear())){var E=B,O=t.currentYear!==E;t.currentYear=E||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),O&&(t.redraw(),Ge("onYearChange"),L())}}function z(B,E){var O;E===void 0&&(E=!0);var _=t.parseDate(B,void 0,E);if(t.config.minDate&&_&&xt(_,t.config.minDate,E!==void 0?E:!t.minDateHasTime)<0||t.config.maxDate&&_&&xt(_,t.config.maxDate,E!==void 0?E:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(_===void 0)return!1;for(var Y=!!t.config.enable,ne=(O=t.config.enable)!==null&&O!==void 0?O:t.config.disable,ce=0,fe=void 0;ce<ne.length;ce++){if(fe=ne[ce],typeof fe=="function"&&fe(_))return Y;if(fe instanceof Date&&_!==void 0&&fe.getTime()===_.getTime())return Y;if(typeof fe=="string"){var pe=t.parseDate(fe,void 0,!0);return pe&&pe.getTime()===_.getTime()?Y:!Y}else if(typeof fe=="object"&&_!==void 0&&fe.from&&fe.to&&_.getTime()>=fe.from.getTime()&&_.getTime()<=fe.to.getTime())return Y}return!Y}function J(B){return t.daysContainer!==void 0?B.className.indexOf("hidden")===-1&&B.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(B):!1}function ue(B){var E=B.target===t._input,O=t._input.value.trimEnd()!==Oe();E&&O&&!(B.relatedTarget&&X(B.relatedTarget))&&t.setDate(t._input.value,!0,B.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function V(B){var E=St(B),O=t.config.wrap?n.contains(E):E===t._input,_=t.config.allowInput,Y=t.isOpen&&(!_||!O),ne=t.config.inline&&O&&!_;if(B.keyCode===13&&O){if(_)return t.setDate(t._input.value,!0,E===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),E.blur();t.open()}else if(X(E)||Y||ne){var ce=!!t.timeContainer&&t.timeContainer.contains(E);switch(B.keyCode){case 13:ce?(B.preventDefault(),u(),ie()):me(B);break;case 27:B.preventDefault(),ie();break;case 8:case 46:O&&!t.config.allowInput&&(B.preventDefault(),t.clear());break;case 37:case 39:if(!ce&&!O){B.preventDefault();var fe=s();if(t.daysContainer!==void 0&&(_===!1||fe&&J(fe))){var pe=B.keyCode===39?1:-1;B.ctrlKey?(B.stopPropagation(),P(pe),b(y(1),0)):b(void 0,pe)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:B.preventDefault();var be=B.keyCode===40?1:-1;t.daysContainer&&E.$i!==void 0||E===t.input||E===t.altInput?B.ctrlKey?(B.stopPropagation(),$(t.currentYear-be),b(y(1),0)):ce||b(void 0,be*7):E===t.currentYearElement?$(t.currentYear-be):t.config.enableTime&&(!ce&&t.hourElement&&t.hourElement.focus(),u(B),t._debouncedChange());break;case 9:if(ce){var Ce=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function(Be){return Be}),De=Ce.indexOf(E);if(De!==-1){var We=Ce[De+(B.shiftKey?-1:1)];B.preventDefault(),(We||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(E)&&B.shiftKey&&(B.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&E===t.amPM)switch(B.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],f(),Re();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],f(),Re();break}(O||X(E))&&Ge("onKeyDown",B)}function U(B,E){if(E===void 0&&(E="flatpickr-day"),!(t.selectedDates.length!==1||B&&(!B.classList.contains(E)||B.classList.contains("flatpickr-disabled")))){for(var O=B?B.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),_=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),Y=Math.min(O,t.selectedDates[0].getTime()),ne=Math.max(O,t.selectedDates[0].getTime()),ce=!1,fe=0,pe=0,be=Y;be<ne;be+=Ty.DAY)z(new Date(be),!0)||(ce=ce||be>Y&&be<ne,be<_&&(!fe||be>fe)?fe=be:be>_&&(!pe||be<pe)&&(pe=be));var Ce=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+E));Ce.forEach(function(De){var We=De.dateObj,Be=We.getTime(),qe=fe>0&&Be<fe||pe>0&&Be>pe;if(qe){De.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Xe){De.classList.remove(Xe)});return}else if(ce&&!qe)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Xe){De.classList.remove(Xe)}),B!==void 0&&(B.classList.add(O<=t.selectedDates[0].getTime()?"startRange":"endRange"),_<O&&Be===_?De.classList.add("startRange"):_>O&&Be===_&&De.classList.add("endRange"),Be>=fe&&(pe===0||Be<=pe)&&Ry(Be,_,O)&&De.classList.add("inRange"))})}}function le(){t.isOpen&&!t.config.static&&!t.config.inline&&_e()}function oe(B,E){if(E===void 0&&(E=t._positionElement),t.isMobile===!0){if(B){B.preventDefault();var O=St(B);O&&O.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),Ge("onOpen");return}else if(t._input.disabled||t.config.inline)return;var _=t.isOpen;t.isOpen=!0,_||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),Ge("onOpen"),_e(E)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(B===void 0||!t.timeContainer.contains(B.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function ye(B){return function(E){var O=t.config["_"+B+"Date"]=t.parseDate(E,t.config.dateFormat),_=t.config["_"+(B==="min"?"max":"min")+"Date"];O!==void 0&&(t[B==="min"?"minDateHasTime":"maxDateHasTime"]=O.getHours()>0||O.getMinutes()>0||O.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(Y){return z(Y)}),!t.selectedDates.length&&B==="min"&&p(O),Re()),t.daysContainer&&(Z(),O!==void 0?t.currentYearElement[B]=O.getFullYear().toString():t.currentYearElement.removeAttribute(B),t.currentYearElement.disabled=!!_&&O!==void 0&&_.getFullYear()===O.getFullYear())}}function we(){var B=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],E=ft(ft({},JSON.parse(JSON.stringify(n.dataset||{}))),e),O={};t.config.parseDate=E.parseDate,t.config.formatDate=E.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(Ce){t.config._enable=Se(Ce)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(Ce){t.config._disable=Se(Ce)}});var _=E.mode==="time";if(!E.dateFormat&&(E.enableTime||_)){var Y=ot.defaultConfig.dateFormat||Qi.dateFormat;O.dateFormat=E.noCalendar||_?"H:i"+(E.enableSeconds?":S":""):Y+" H:i"+(E.enableSeconds?":S":"")}if(E.altInput&&(E.enableTime||_)&&!E.altFormat){var ne=ot.defaultConfig.altFormat||Qi.altFormat;O.altFormat=E.noCalendar||_?"h:i"+(E.enableSeconds?":S K":" K"):ne+(" h:i"+(E.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:ye("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:ye("max")});var ce=function(Ce){return function(De){t.config[Ce==="min"?"_minTime":"_maxTime"]=t.parseDate(De,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:ce("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:ce("max")}),E.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,O,E);for(var fe=0;fe<B.length;fe++)t.config[B[fe]]=t.config[B[fe]]===!0||t.config[B[fe]]==="true";Do.filter(function(Ce){return t.config[Ce]!==void 0}).forEach(function(Ce){t.config[Ce]=Oo(t.config[Ce]||[]).map(o)}),t.isMobile=!t.config.disableMobile&&!t.config.inline&&t.config.mode==="single"&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var fe=0;fe<t.config.plugins.length;fe++){var pe=t.config.plugins[fe](t)||{};for(var be in pe)Do.indexOf(be)>-1?t.config[be]=Oo(pe[be]).map(o).concat(t.config[be]):typeof E[be]>"u"&&(t.config[be]=pe[be])}E.altInputClass||(t.config.altInputClass=xe().className+" "+t.config.altInputClass),Ge("onParseConfig")}function xe(){return t.config.wrap?n.querySelector("[data-input]"):n}function Fe(){typeof t.config.locale!="object"&&typeof ot.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=ft(ft({},ot.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?ot.l10ns[t.config.locale]:void 0),Ri.D="("+t.l10n.weekdays.shorthand.join("|")+")",Ri.l="("+t.l10n.weekdays.longhand.join("|")+")",Ri.M="("+t.l10n.months.shorthand.join("|")+")",Ri.F="("+t.l10n.months.longhand.join("|")+")",Ri.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var B=ft(ft({},e),JSON.parse(JSON.stringify(n.dataset||{})));B.time_24hr===void 0&&ot.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=Vc(t),t.parseDate=Bo({config:t.config,l10n:t.l10n})}function _e(B){if(typeof t.config.position=="function")return void t.config.position(t,B);if(t.calendarContainer!==void 0){Ge("onPreCalendarPosition");var E=B||t._positionElement,O=Array.prototype.reduce.call(t.calendarContainer.children,(function(Di,Ax){return Di+Ax.offsetHeight}),0),_=t.calendarContainer.offsetWidth,Y=t.config.position.split(" "),ne=Y[0],ce=Y.length>1?Y[1]:null,fe=E.getBoundingClientRect(),pe=window.innerHeight-fe.bottom,be=ne==="above"||ne!=="below"&&pe<O&&fe.top>O,Ce=window.pageYOffset+fe.top+(be?-O-2:E.offsetHeight+2);if(gt(t.calendarContainer,"arrowTop",!be),gt(t.calendarContainer,"arrowBottom",be),!t.config.inline){var De=window.pageXOffset+fe.left,We=!1,Be=!1;ce==="center"?(De-=(_-fe.width)/2,We=!0):ce==="right"&&(De-=_-fe.width,Be=!0),gt(t.calendarContainer,"arrowLeft",!We&&!Be),gt(t.calendarContainer,"arrowCenter",We),gt(t.calendarContainer,"arrowRight",Be);var qe=window.document.body.offsetWidth-(window.pageXOffset+fe.right),Xe=De+_>window.document.body.offsetWidth,at=qe+_>window.document.body.offsetWidth;if(gt(t.calendarContainer,"rightMost",Xe),!t.config.static)if(t.calendarContainer.style.top=Ce+"px",!Xe)t.calendarContainer.style.left=De+"px",t.calendarContainer.style.right="auto";else if(!at)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=qe+"px";else{var nt=Ne();if(nt===void 0)return;var yi=window.document.body.offsetWidth,Ti=Math.max(0,yi/2-_/2),ci=".flatpickr-calendar.centerMost:before",jt=".flatpickr-calendar.centerMost:after",$t=nt.cssRules.length,Xi="{left:"+fe.left+"px;right:auto;}";gt(t.calendarContainer,"rightMost",!1),gt(t.calendarContainer,"centerMost",!0),nt.insertRule(ci+","+jt+Xi,$t),t.calendarContainer.style.left=Ti+"px",t.calendarContainer.style.right="auto"}}}}function Ne(){for(var B=null,E=0;E<document.styleSheets.length;E++){var O=document.styleSheets[E];if(O.cssRules){try{O.cssRules}catch{continue}B=O;break}}return B??de()}function de(){var B=document.createElement("style");return document.head.appendChild(B),B.sheet}function Z(){t.config.noCalendar||t.isMobile||(L(),ze(),R())}function ie(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function me(B){B.preventDefault(),B.stopPropagation();var E=function(Ce){return Ce.classList&&Ce.classList.contains("flatpickr-day")&&!Ce.classList.contains("flatpickr-disabled")&&!Ce.classList.contains("notAllowed")},O=Hc(St(B),E);if(O!==void 0){var _=O,Y=t.latestSelectedDateObj=new Date(_.dateObj.getTime()),ne=(Y.getMonth()<t.currentMonth||Y.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=_,t.config.mode==="single")t.selectedDates=[Y];else if(t.config.mode==="multiple"){var ce=re(Y);ce?t.selectedDates.splice(parseInt(ce),1):t.selectedDates.push(Y)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=Y,t.selectedDates.push(Y),xt(Y,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(Ce,De){return Ce.getTime()-De.getTime()}));if(f(),ne){var fe=t.currentYear!==Y.getFullYear();t.currentYear=Y.getFullYear(),t.currentMonth=Y.getMonth(),fe&&(Ge("onYearChange"),L()),Ge("onMonthChange")}if(ze(),R(),Re(),!ne&&t.config.mode!=="range"&&t.config.showMonths===1?x(_):t.selectedDateElem!==void 0&&t.hourElement===void 0&&t.selectedDateElem&&t.selectedDateElem.focus(),t.hourElement!==void 0&&t.hourElement!==void 0&&t.hourElement.focus(),t.config.closeOnSelect){var pe=t.config.mode==="single"&&!t.config.enableTime,be=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(pe||be)&&ie()}A()}}var he={locale:[Fe,K],showMonths:[W,l,H],minDate:[m],maxDate:[m],positionElement:[je],clickOpens:[function(){t.config.clickOpens===!0?(C(t._input,"focus",t.open),C(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function ke(B,E){if(B!==null&&typeof B=="object"){Object.assign(t.config,B);for(var O in B)he[O]!==void 0&&he[O].forEach(function(_){return _()})}else t.config[B]=E,he[B]!==void 0?he[B].forEach(function(_){return _()}):Do.indexOf(B)>-1&&(t.config[B]=Oo(E));t.redraw(),Re(!0)}function Me(B,E){var O=[];if(B instanceof Array)O=B.map(function(_){return t.parseDate(_,E)});else if(B instanceof Date||typeof B=="number")O=[t.parseDate(B,E)];else if(typeof B=="string")switch(t.config.mode){case"single":case"time":O=[t.parseDate(B,E)];break;case"multiple":O=B.split(t.config.conjunction).map(function(_){return t.parseDate(_,E)});break;case"range":O=B.split(t.l10n.rangeSeparator).map(function(_){return t.parseDate(_,E)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(B)));t.selectedDates=t.config.allowInvalidPreload?O:O.filter(function(_){return _ instanceof Date&&z(_,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(_,Y){return _.getTime()-Y.getTime()})}function se(B,E,O){if(E===void 0&&(E=!1),O===void 0&&(O=t.config.dateFormat),B!==0&&!B||B instanceof Array&&B.length===0)return t.clear(E);Me(B,O),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),m(void 0,E),p(),t.selectedDates.length===0&&t.clear(!1),Re(E),E&&Ge("onChange")}function Se(B){return B.slice().map(function(E){return typeof E=="string"||typeof E=="number"||E instanceof Date?t.parseDate(E,void 0,!0):E&&typeof E=="object"&&E.from&&E.to?{from:t.parseDate(E.from,void 0),to:t.parseDate(E.to,void 0)}:E}).filter(function(E){return E})}function Le(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var B=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);B&&Me(B,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),t.config.minTime!==void 0&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),t.config.maxTime!==void 0&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}function et(){if(t.input=xe(),!t.input){t.config.errorHandler(new Error("Invalid input element specified"));return}t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=Je(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),je()}function je(){t._positionElement=t.config.positionElement||t._input}function Rt(){var B=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=Je("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=B,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=B==="datetime-local"?"Y-m-d\\TH:i:S":B==="date"?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",t.altInput!==void 0&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch{}C(t.mobileInput,"change",function(E){t.setDate(St(E).value,!1,t.mobileFormatStr),Ge("onChange"),Ge("onClose")})}function At(B){if(t.isOpen===!0)return t.close();t.open(B)}function Ge(B,E){if(t.config!==void 0){var O=t.config[B];if(O!==void 0&&O.length>0)for(var _=0;O[_]&&_<O.length;_++)O[_](t.selectedDates,t.input.value,t,E);B==="onChange"&&(t.input.dispatchEvent(te("change")),t.input.dispatchEvent(te("input")))}}function te(B){var E=document.createEvent("Event");return E.initEvent(B,!0,!0),E}function re(B){for(var E=0;E<t.selectedDates.length;E++){var O=t.selectedDates[E];if(O instanceof Date&&xt(O,B)===0)return""+E}return!1}function Pe(B){return t.config.mode!=="range"||t.selectedDates.length<2?!1:xt(B,t.selectedDates[0])>=0&&xt(B,t.selectedDates[1])<=0}function ze(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(B,E){var O=new Date(t.currentYear,t.currentMonth,1);O.setMonth(t.currentMonth+E),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[E].textContent=gr(O.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=O.getMonth().toString(),B.value=O.getFullYear().toString()}),t._hidePrevMonthArrow=t.config.minDate!==void 0&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=t.config.maxDate!==void 0&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function Oe(B){var E=B||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(O){return t.formatDate(O,E)}).filter(function(O,_,Y){return t.config.mode!=="range"||t.config.enableTime||Y.indexOf(O)===_}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function Re(B){B===void 0&&(B=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=Oe(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=Oe(t.config.altFormat)),B!==!1&&Ge("onValueUpdate")}function ct(B){var E=St(B),O=t.prevMonthNav.contains(E),_=t.nextMonthNav.contains(E);O||_?P(O?-1:1):t.yearElements.indexOf(E)>=0?E.select():E.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):E.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function ge(B){B.preventDefault();var E=B.type==="keydown",O=St(B),_=O;t.amPM!==void 0&&O===t.amPM&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]);var Y=parseFloat(_.getAttribute("min")),ne=parseFloat(_.getAttribute("max")),ce=parseFloat(_.getAttribute("step")),fe=parseInt(_.value,10),pe=B.delta||(E?B.which===38?1:-1:0),be=fe+ce*pe;if(typeof _.value<"u"&&_.value.length===2){var Ce=_===t.hourElement,De=_===t.minuteElement;be<Y?(be=ne+be+Ft(!Ce)+(Ft(Ce)&&Ft(!t.amPM)),De&&g(void 0,-1,t.hourElement)):be>ne&&(be=_===t.hourElement?be-ne-Ft(!t.amPM):Y,De&&g(void 0,1,t.hourElement)),t.amPM&&Ce&&(ce===1?be+fe===23:Math.abs(be-fe)>ce)&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]),_.value=Ct(be)}}return r(),t}function Ki(n,e){for(var t=Array.prototype.slice.call(n).filter(function(o){return o instanceof HTMLElement}),i=[],r=0;r<t.length;r++){var s=t[r];try{if(s.getAttribute("data-fp-omit")!==null)continue;s._flatpickr!==void 0&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=Oy(s,e||{}),i.push(s._flatpickr)}catch(o){console.error(o)}}return i.length===1?i[0]:i}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return Ki(this,n)},HTMLElement.prototype.flatpickr=function(n){return Ki([this],n)});var ot=function(n,e){return typeof n=="string"?Ki(window.document.querySelectorAll(n),e):n instanceof Node?Ki([n],e):Ki(n,e)};ot.defaultConfig={},ot.l10ns={en:ft({},wn),default:ft({},wn)},ot.localize=function(n){ot.l10ns.default=ft(ft({},ot.l10ns.default),n)},ot.setDefaults=function(n){ot.defaultConfig=ft(ft({},ot.defaultConfig),n)},ot.parseDate=Bo({}),ot.formatDate=Vc({}),ot.compareDates=xt,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Ki(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=ot);var An={exports:{}},Ly=An.exports,jc;function By(){return jc||(jc=1,(function(n,e){(function(t,i){i(e)})(Ly,(function(t){var i=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};i.l10ns.ru=r;var s=i.l10ns;t.Russian=r,t.default=s,Object.defineProperty(t,"__esModule",{value:!0})}))})(An,An.exports)),An.exports}var Fy=By();const _y=["value","id","name","disabled","required","placeholder"],Py=["title"],Ny=["title"],Iy=Ie(a.defineComponent({__name:"Flatpickr",props:{modelValue:{default:""},id:{default:"flatpickr-input"},error:{default:""},name:{default:"flatpickr"},placeholder:{default:"Выберите дату"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},config:{default:()=>({})},format:{default:"DD.MM.YYYY"},locale:{default:"ru"},resetTitle:{default:"Очистить"},calendarTitle:{default:"Выбрать дату"},allowInput:{type:Boolean,default:!0},enableTime:{type:Boolean,default:!1},time_24hr:{type:Boolean,default:!0},dateFormat:{default:"d.m.Y"},minDate:{default:void 0},maxDate:{default:void 0},defaultDate:{default:void 0},mode:{default:"single"}},emits:["update:modelValue","change","open","close","ready"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=a.ref(),o=a.ref(null),l=a.ref(!1),u=a.ref(""),c=a.ref([]),d=a.ref(!1),f=a.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean)||[]:typeof i.error=="string"&&i.error?[i.error]:[]),p=x=>{if(!x)return null;if(x instanceof Date&&!isNaN(x.getTime()))return x;const y=typeof x=="string"?x.trim():"";if(y){const S=C(y);if(S){const R=new Date(S);if(!isNaN(R.getTime()))return R}const b=ot.parseDate?.(y,i.dateFormat);if(b&&!isNaN(b.getTime()))return b;const T=new Date(y);if(!isNaN(T.getTime()))return T}return null},h=x=>{const y=x instanceof Date?x:p(x);if(!y)return"";const S=String(y.getDate()).padStart(2,"0"),b=String(y.getMonth()+1).padStart(2,"0"),T=y.getFullYear();return i.format==="MM/DD/YYYY"?`${b}/${S}/${T}`:i.format==="YYYY-MM-DD"?`${T}-${b}-${S}`:`${S}.${b}.${T}`},k=x=>{const y=x instanceof Date?x:p(x);if(!y)return"";const S=String(y.getDate()).padStart(2,"0"),b=String(y.getMonth()+1).padStart(2,"0");return`${y.getFullYear()}-${b}-${S}`},C=x=>{if(!x)return"";const y=x.trim(),S=ot.parseDate?.(y,i.dateFormat);if(S&&!isNaN(S.getTime())){const b=S.getFullYear(),T=String(S.getMonth()+1).padStart(2,"0"),R=String(S.getDate()).padStart(2,"0");return`${b}-${T}-${R}`}if(/^\d{4}-\d{2}-\d{2}/.test(y))return y;if(i.format==="MM/DD/YYYY"){const[b,T,R]=y.split("/");if(b&&T&&R)return`${R}-${b.padStart(2,"0")}-${T.padStart(2,"0")}`}if(i.format==="YYYY-MM-DD")return y;if(i.format==="DD.MM.YYYY"){const[b,T,R]=y.split(".");if(b&&T&&R)return`${R}-${T.padStart(2,"0")}-${b.padStart(2,"0")}`}return y},A=x=>x?Array.isArray(x)?x:[x]:[],w=(x,y)=>{const S=A(x),b=S.map(R=>h(R)).filter(Boolean);if(u.value=b.join(", "),l.value=b.length>0,!y?._input)return;if(!b.length){y.clear?.(),y._input.value="";return}const T=S.map(R=>p(R)).filter(R=>!!R);if(!T.length){y.clear?.(),y._input.value=u.value;return}y.setDate?.(T,!1),y._input.value=u.value,(i.mode==="range"||i.mode==="multiple")&&(c.value=y.selectedDates||T)},m=()=>{if(!s.value)return;const x={locale:i.locale==="ru"?Fy.Russian:void 0,allowInput:i.allowInput,enableTime:i.enableTime,time_24hr:i.time_24hr,dateFormat:i.dateFormat,mode:i.mode,wrap:!0,onClose:(y,S,b)=>{const T=y.length>0;if(c.value=y,!T)return D({instance:b}),!1;if(i.mode==="range"||i.mode==="multiple"){const R=y.map(W=>k(W)),L=Array.isArray(i.modelValue)?i.modelValue:[];if(L.length===R.length&&L.every((W,G)=>W===R[G]))return!1}else{const R=k(y[0]);if(!(i.modelValue!==R))return!1}if(d.value=!0,i.mode==="range"||i.mode==="multiple"){const R=y.map(L=>h(L));u.value=R.join(", "),l.value=R.length>0}else u.value=S,l.value=S.length>0;a.nextTick(()=>{if(i.mode==="multiple"){const R=y.map(L=>k(L));r("update:modelValue",R)}else if(i.mode==="range"){const R=y.map(L=>k(L));r("update:modelValue",R)}else{const R=k(y[0]);r("update:modelValue",R)}r("change",y.map(R=>R.toISOString()),S,b),a.nextTick(()=>{d.value=!1})})},onOpen:y=>{r("open",y)},onReady:y=>{r("ready",y)},...i.config};i.minDate&&i.minDate&&(x.minDate=i.minDate),i.maxDate&&(x.maxDate=i.maxDate),i.defaultDate&&(x.defaultDate=i.defaultDate),o.value=ot(s.value,x),D({instance:o.value})},D=({instance:x})=>{w(i.modelValue,x)},g=()=>{if(i.disabled||!o.value)return;o.value.clear(),o.value._input.value="";const x=i.mode==="range"||i.mode==="multiple"?[]:"";u.value="",l.value=!1,c.value=[],r("update:modelValue",x),r("change",[],"",o.value),w(x,o.value)},M=x=>{const y=x.target;u.value=y.value},v=()=>{if(i.mode==="range"||i.mode==="multiple"){if(o.value?.isOpen)return;if((o.value?.selectedDates||[]).length===0&&c.value.length>0){const y=c.value.map(T=>k(T)),S=Array.isArray(i.modelValue)?i.modelValue:[];S.length===y.length&&S.every((T,R)=>T===y[R])||r("update:modelValue",y)}return}if(i.mode==="single"&&u.value){const x=C(u.value);x&&r("update:modelValue",x)}};return a.watch(()=>i.modelValue,x=>{d.value||w(x,o.value)},{deep:!0}),a.watch(()=>i.disabled,x=>{o.value?._input&&(o.value._input.disabled=x)}),a.onMounted(()=>{m()}),a.onBeforeUnmount(()=>{o.value&&o.value.destroy()}),e({datapicker:o}),(x,y)=>(a.openBlock(),a.createElementBlock("div",{style:{position:"relative"},ref_key:"input",ref:s},[a.createElementVNode("div",{class:a.normalizeClass({"not-valid":f.value.length})},[a.createElementVNode("input",{type:"text",class:"form-control flatpickr",value:u.value,id:x.id,name:x.name,disabled:x.disabled,required:x.required,placeholder:x.placeholder,autocomplete:"off","data-input":"",onInput:M,onBlur:v},null,40,_y)],2),l.value&&!x.disabled?(a.openBlock(),a.createElementBlock("a",{key:0,class:"remove-button text-dark",onClick:g,style:{position:"absolute",right:"40px",top:"8px","font-size":"16px",cursor:"pointer"},"data-toggle":"",title:x.resetTitle},[...y[0]||(y[0]=[a.createElementVNode("i",{class:"bi bi-x-lg"},null,-1)])],8,Py)):a.createCommentVNode("",!0),a.createElementVNode("a",{class:"remove-button text-dark",style:{position:"absolute",right:"10px",top:"4px","font-size":"20px",cursor:"pointer"},"data-toggle":"",title:x.calendarTitle},[...y[1]||(y[1]=[a.createElementVNode("i",{class:"bi bi-calendar3"},null,-1)])],8,Ny),a.createVNode(ki,{errors:f.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-a8bbc430"]]);function Hy(n={}){const{placeholder:e="Поиск...",searchHint:t="Введите минимум 3 символа",searchTypes:i=[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}],defaultSearchType:r="partial",minSearchLength:s=3}=n,o=a.ref(""),l=a.ref([]),u=a.ref(!1),c=a.ref(r),d=a.ref(!1),f=a.ref(!1),p=a.computed(()=>o.value&&o.value.length>0&&o.value.length<s?`Введите минимум ${s} символа`:t),h=a.computed(()=>i);return{search:o,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:v=>{o.value=v||"",v&&v.length>=s},onSelect:v=>{},clearSearch:()=>{o.value="",l.value=[]},toggleSettings:()=>{d.value=!d.value},hideSettings:()=>{d.value=!1},setOptions:v=>{l.value=v},setLoading:v=>{u.value=v},setGlobalLoading:v=>{f.value=v}}}const Vy=["disabled"],zy={key:1,class:"bi bi-three-dots-vertical"},jy=Ie(a.defineComponent({__name:"HeaderSearchForm",props:{placeholder:{default:"Поиск..."},searchHint:{default:"Введите минимум 3 символа"},searchTypes:{default:()=>[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}]},defaultSearchType:{default:"partial"},minSearchLength:{default:3},searchTypeName:{default:"searchType"},options:{default:()=>[]},isLoading:{type:Boolean,default:!1},isSearchLoading:{type:Boolean,default:!1}},emits:["search","select","searchTypeChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={placeholder:i.placeholder,searchHint:i.searchHint,searchTypes:i.searchTypes,defaultSearchType:i.defaultSearchType,minSearchLength:i.minSearchLength},{search:o,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:k,onSelect:C,clearSearch:A,toggleSettings:w,hideSettings:m}=Hy(s),D=a.ref();a.computed(()=>i.options.length>0?i.options:l.value),a.computed(()=>i.isSearchLoading||u.value),a.computed(()=>i.isLoading||f.value);const g=S=>{const b=S||"";k(b),r("search",b,c.value)},M=S=>{C(S),r("select",S)},v=a.computed(()=>i.searchTypeName);a.watch(c,S=>{r("searchTypeChange",S),m()});const x=S=>{const b=S.target;y.value?.contains(b)||m()},y=a.ref();return a.onMounted(()=>{document.addEventListener("click",x)}),a.onUnmounted(()=>{document.removeEventListener("click",x)}),e({clearSearch:A,setOptions:S=>{l.value=S},setLoading:S=>{u.value=S},setGlobalLoading:S=>{f.value=S},focus:()=>{D.value?.$el?.querySelector("input")?.focus()}}),(S,b)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapperRef",ref:y,class:"position-relative d-flex align-items-center rounded search-select-wrapper"},[(a.openBlock(),a.createBlock(Vt,{ref_key:"selectRef",ref:D,key:a.unref(c),classes:["border-0","outline-none"],style:{maxWidth:"500px",minWidth:"500px"},modelValue:a.unref(o),"onUpdate:modelValue":[b[0]||(b[0]=T=>a.isRef(o)?o.value=T:null),M],reduce:T=>T,options:S.options,placeholder:S.placeholder,onSearch:g,onBlur:a.unref(A),onFocus:a.unref(m),isLoading:S.isSearchLoading,hint:a.unref(p)},null,8,["modelValue","reduce","options","placeholder","onBlur","onFocus","isLoading","hint"])),a.createElementVNode("button",{class:"btn btn-light px-2",onClick:b[1]||(b[1]=(...T)=>a.unref(w)&&a.unref(w)(...T)),disabled:S.isLoading},[S.isLoading?(a.openBlock(),a.createBlock(Lr,{key:0,isSmall:!0})):(a.openBlock(),a.createElementBlock("i",zy))],8,Vy),a.unref(d)?(a.openBlock(),a.createElementBlock("ul",{key:0,class:"position-absolute setting-list",onClick:b[3]||(b[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(h),T=>(a.openBlock(),a.createElementBlock("li",{key:T.value,class:"setting-item"},[a.createVNode(Nc,{name:v.value,label:T.label,modelValue:a.unref(c),"onUpdate:modelValue":b[2]||(b[2]=R=>a.isRef(c)?c.value=R:null),type:"radio",group:v.value,trueValue:T.value},null,8,["name","label","modelValue","group","trueValue"])]))),128))])):a.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-060eb2dc"]]);function Wy(n={}){const{loadCountries:e,loadRegions:t,loadDistricts:i,loadLocalities:r,loadStreets:s,countryKey:o="country_id",regionKey:l="region_id",districtKey:u="district_id",localityKey:c="locality_id",streetKey:d="street_id",houseKey:f="house",buildingKey:p="building",apartmentKey:h="apartment",countryLabel:k="Страна",regionLabel:C="Регион",districtLabel:A="Район",localityLabel:w="Населенный пункт",streetLabel:m="Улица",houseLabel:D="Дом",buildingLabel:g="Корпус",apartmentLabel:M="Квартира",columnWidth:v="12",prefix:x="",multiLocalities:y=!1,multiStreets:S=!1,showHouseFields:b=!0}=n,T=a.ref(!1),R=a.ref({}),L=a.ref(!1),N=a.ref(!1),W=a.ref(!1),G=a.ref(!1),I=a.ref(!1),H=a.ref(!1),K=a.ref([]),F=a.ref([]),P=a.ref([]),Q=a.ref([]),j=a.ref([]),q=a.computed(()=>`${x}${o}`),X=a.computed(()=>`${x}${l}`),ae=a.computed(()=>`${x}${u}`),$=a.computed(()=>`${x}${c}`),z=a.computed(()=>`${x}${d}`),J=a.computed(()=>`${x}${f}`),ue=a.computed(()=>`${x}${p}`),V=a.computed(()=>`${x}${h}`),U=a.computed(()=>({country:k,region:C,district:A,locality:w,street:m,house:D,building:g,apartment:M})),le=async()=>{if(e){N.value=!0;try{K.value=await e()}finally{N.value=!1}}},oe=async ge=>{if(t){W.value=!0;try{F.value=await t(ge)}finally{W.value=!1}}},ye=async ge=>{if(i){G.value=!0;try{P.value=await i(ge)}finally{G.value=!1}}},we=async ge=>{if(r){I.value=!0;try{Q.value=await r(ge)}finally{I.value=!1}}},xe=async ge=>{if(s){H.value=!0;try{j.value=await s(ge)}finally{H.value=!1}}},Fe=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[q.value]:ge};R.value=O;return}const E={...R.value,[q.value]:ge,[X.value]:null,[ae.value]:null,[$.value]:null,[z.value]:null,[J.value]:null,[ue.value]:null,[V.value]:null};R.value=E,F.value=[],P.value=[],Q.value=[],j.value=[]},_e=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[X.value]:ge};R.value=O;return}const E={...R.value,[X.value]:ge,[ae.value]:null,[$.value]:null,[z.value]:null,[J.value]:null,[ue.value]:null,[V.value]:null};R.value=E,P.value=[],Q.value=[],j.value=[]},Ne=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[ae.value]:ge};R.value=O;return}const E={...R.value,[ae.value]:ge,[$.value]:null,[z.value]:null,[J.value]:null,[ue.value]:null,[V.value]:null};R.value=E},de=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[$.value]:ge};R.value=O;return}const E={...R.value,[$.value]:ge,[z.value]:null,[J.value]:null,[ue.value]:null,[V.value]:null};R.value=E,j.value=[]},Z=async ge=>{T.value||(Fe(ge),ge&&await oe(ge))},ie=async ge=>{T.value||(_e(ge),ge&&(await ye(ge),await we(ge)))},me=async ge=>{if(!T.value){if(Ne(ge),!ge){const B=R.value[X.value];B&&await ie(B);return}await we(ge)}},he=async ge=>{T.value||(de(ge),ge&&await xe(ge))},ke=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[z.value]:ge};R.value=O;return}const E={...R.value,[z.value]:ge,[J.value]:null,[ue.value]:null,[V.value]:null};R.value=E},Me=ge=>{const B=ge.target,E={...R.value,[J.value]:B.value};R.value=E},se=ge=>{const B=ge.target,E={...R.value,[ue.value]:B.value};R.value=E},Se=ge=>{const B=ge.target,E={...R.value,[V.value]:B.value};R.value=E},Le=async(ge,B)=>{Object.assign(R.value,ge)},et=async(ge,B)=>{T.value=!0;const E=ge[q.value],O=ge[X.value],_=ge[ae.value],Y=ge[$.value];ge[z.value];try{e&&await le(),t&&(O||E||B)&&await oe(E||B),i&&O&&await ye(O),r&&_?await we(_):r&&O&&await we(O),s&&Y&&await xe(Y),Object.assign(R.value,ge)}catch(ne){console.error("❌ Error during auto-fill (skip reset mode):",ne)}finally{a.nextTick(()=>{T.value=!1})}},je=a.computed(()=>{const ge=R.value[q.value];return ge&&K.value.find(E=>String(E.id)===String(ge))?.label||""}),Rt=a.computed(()=>{const ge=R.value[X.value];return ge&&F.value.find(E=>String(E.id)===String(ge))?.label||""}),At=a.computed(()=>{const ge=R.value[ae.value];return ge&&P.value.find(B=>String(B.id)===String(ge))?.label||""}),Ge=a.computed(()=>{const ge=R.value[$.value];return ge&&Q.value.find(B=>String(B.id)===String(ge))?.label||""}),te=a.computed(()=>{const ge=R.value[z.value];return ge&&j.value.find(E=>String(E.id)===String(ge))?.label||""}),re=a.computed(()=>{const ge=R.value[J.value];return ge?`${D} ${ge}`:""}),Pe=a.computed(()=>{const ge=R.value[ue.value];return ge?`${g} ${ge}`:""}),ze=a.computed(()=>{const ge=R.value[V.value];return ge?`${M} ${ge}`:""}),Oe=a.computed(()=>[je.value,Rt.value,At.value,Ge.value,te.value,re.value,Pe.value,ze.value].filter(Boolean).join(", ")),Re=a.computed(()=>{const ge=R.value[$.value];return Array.isArray(ge)?ge.length>1:!1}),ct=a.computed(()=>S?!1:b);return{modelValue:R,isLoading:L,isCountryLoading:N,isRegionLoading:W,isDistrictLoading:G,isLocalityLoading:I,isStreetLoading:H,countryOptions:K,regionOptions:F,districtOptions:P,localityOptions:Q,streetOptions:j,finalCountryKey:q,finalRegionKey:X,finalDistrictKey:ae,finalLocalityKey:$,finalStreetKey:z,finalHouseKey:J,finalBuildingKey:ue,finalApartmentKey:V,labels:U,selectedCountryLabel:je,selectedRegionLabel:Rt,selectedDistrictLabel:At,selectedLocalityLabel:Ge,selectedStreetLabel:te,selectedHouseLabel:re,selectedBuildingLabel:Pe,selectedApartmentLabel:ze,fullAddress:Oe,isMultiLocalitiesSelected:Re,shouldShowHouseFields:ct,loadCountryOptions:le,loadRegionOptions:oe,loadDistrictOptions:ye,loadLocalityOptions:we,loadStreetOptions:xe,onCountrySelect:Z,onRegionSelect:ie,onDistrictSelect:me,onLocalitySelect:he,onStreetSelect:ke,onHouseInput:Me,onBuildingInput:se,onApartmentInput:Se,resetFieldsByCountry:Fe,resetFieldsByRegion:_e,resetFieldsByDistrict:Ne,resetFieldsByLocality:de,autoFillForm:Le,autoFillFormSkipReset:et}}const Uy={class:"address-form"},Gy={class:"row"},Yy={class:"form-label"},Qy={class:"form-label"},Ky={class:"form-label"},Jy={class:"form-label"},qy={class:"form-label"},$y={class:"form-label"},Zy=["value","disabled"],Xy={class:"form-label"},ew=["value","disabled"],tw={class:"form-label"},iw=["value","disabled"],nw={key:0,class:"mt-3"},rw={class:"alert alert-info"},sw=Ie(a.defineComponent({__name:"AddressForm",props:{modelValue:{default:()=>({})},loadCountries:{},loadRegions:{},loadDistricts:{},loadLocalities:{},loadStreets:{},countryKey:{default:"country_id"},regionKey:{default:"region_id"},districtKey:{default:"district_id"},localityKey:{default:"locality_id"},streetKey:{default:"street_id"},houseKey:{default:"house"},buildingKey:{default:"building"},apartmentKey:{default:"apartment"},countryLabel:{default:"Страна"},regionLabel:{default:"Регион"},districtLabel:{default:"Район"},localityLabel:{default:"Населенный пункт"},streetLabel:{default:"Улица"},houseLabel:{default:"Дом"},buildingLabel:{default:"Корпус"},apartmentLabel:{default:"Квартира"},columnWidth:{default:"12"},prefix:{default:""},multiLocalities:{type:Boolean,default:!1},multiStreets:{type:Boolean,default:!1},showHouseFields:{type:Boolean,default:!0},showFullAddress:{type:Boolean,default:!1},disabledFields:{default:()=>({})},allowClear:{default:()=>({})},countryId:{default:void 0},setFilterParamsStringsHandler:{type:Function,default:void 0},filterName:{default:"address"},isParentComponentReady:{type:Boolean,default:!0}},emits:["update:modelValue","change","countryChange","regionChange","districtChange","localityChange","streetChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={loadCountries:i.loadCountries,loadRegions:i.loadRegions,loadDistricts:i.loadDistricts,loadLocalities:i.loadLocalities,loadStreets:i.loadStreets,countryKey:i.countryKey,regionKey:i.regionKey,districtKey:i.districtKey,localityKey:i.localityKey,streetKey:i.streetKey,houseKey:i.houseKey,buildingKey:i.buildingKey,apartmentKey:i.apartmentKey,countryLabel:i.countryLabel,regionLabel:i.regionLabel,districtLabel:i.districtLabel,localityLabel:i.localityLabel,streetLabel:i.streetLabel,houseLabel:i.houseLabel,buildingLabel:i.buildingLabel,apartmentLabel:i.apartmentLabel,columnWidth:i.columnWidth,prefix:i.prefix,multiLocalities:i.multiLocalities,multiStreets:i.multiStreets,showHouseFields:i.showHouseFields},{modelValue:o,isCountryLoading:l,isRegionLoading:u,isDistrictLoading:c,isLocalityLoading:d,isStreetLoading:f,countryOptions:p,regionOptions:h,districtOptions:k,localityOptions:C,streetOptions:A,finalCountryKey:w,finalRegionKey:m,finalDistrictKey:D,finalLocalityKey:g,finalStreetKey:M,finalHouseKey:v,finalBuildingKey:x,finalApartmentKey:y,labels:S,selectedCountryLabel:b,selectedRegionLabel:T,selectedDistrictLabel:R,selectedLocalityLabel:L,selectedStreetLabel:N,selectedHouseLabel:W,selectedBuildingLabel:G,selectedApartmentLabel:I,fullAddress:H,isMultiLocalitiesSelected:K,shouldShowHouseFields:F,loadCountryOptions:P,loadRegionOptions:Q,onCountrySelect:j,onRegionSelect:q,onDistrictSelect:X,onLocalitySelect:ae,onStreetSelect:$,onHouseInput:z,onBuildingInput:J,onApartmentInput:ue,autoFillForm:V,autoFillFormSkipReset:U}=Wy(s);let le=!1,oe=!1,ye=!1;const we=(se,Se)=>{if(se===Se)return!0;if(!se||!Se||typeof se!="object"||typeof Se!="object")return!1;const Le=Object.keys(se),et=Object.keys(Se);if(Le.length!==et.length)return!1;for(const je of Le)if(se[je]!==Se[je])return!1;return!0};a.watch(()=>i.modelValue,async se=>{if(le||oe||ye||we(o.value,se))return;if(se&&(se[w.value]||se[m.value]||se[D.value]||se[g.value]||se[M.value])){if(!oe){oe=!0;try{await U(se,i.countryId)}catch(Le){console.error("❌ Error during auto-fill:",Le)}finally{oe=!1}}}else o.value={...se}},{immediate:!0,deep:!0}),a.watch(o,se=>{ye||oe||we(i.modelValue,se)||(le=!0,ye=!0,r("update:modelValue",{...se}),r("change",{...se}),a.nextTick(()=>{le=!1,ye=!1}))},{deep:!0});let xe=!1;a.watch(()=>i.countryId,async(se,Se)=>{if(!xe&&!oe&&se!=null&&i.loadRegions){if(se!==Se){const Le={...o.value,[m.value]:null,[D.value]:null,[g.value]:null,[M.value]:null,[v.value]:null,[x.value]:null,[y.value]:null};o.value=Le}try{xe=!0,await Q(se)}catch(Le){console.error("❌ AddressForm: Error loading regions",Le)}finally{xe=!1}}},{immediate:!0});const Fe=async se=>{await j(se),r("countryChange",se)},_e=async se=>{await q(se),r("regionChange",se)},Ne=async se=>{await X(se),r("districtChange",se)},de=async se=>{await ae(se),r("localityChange",se)},Z=se=>{$(se),r("streetChange",se)},ie=se=>{z(se)},me=se=>{J(se)},he=se=>{ue(se)},ke=a.computed(()=>{if(!i.multiLocalities)return!1;const se=o.value[M.value];return!Array.isArray(se)||se?.length<2});function Me(){return[b.value,T.value,R.value,L.value,N.value,W.value,G.value,I.value].filter(Boolean).join(", ")}return a.watch(()=>W.value,async se=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>G.value,async se=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>I.value,async se=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>N.value,async se=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>L.value,async se=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>R.value,async se=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>T.value,async se=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>b.value,async se=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.onMounted(async()=>{i.loadCountries&&await P()}),e({loadRegionOptions:Q,loadCountryOptions:P,resetForm:()=>{o.value={},p.value=[],h.value=[],k.value=[],C.value=[],A.value=[],r("update:modelValue",{}),i.loadCountries&&P()},getFullAddress:()=>H.value,getValue:()=>Me(),autoFillForm:async se=>{oe=!0;try{await V(se)}finally{oe=!1}},autoFillFormSkipReset:async se=>{oe=!0;try{await U(se,i.countryId)}finally{oe=!1}}}),(se,Se)=>(a.openBlock(),a.createElementBlock("div",Uy,[a.createElementVNode("div",Gy,[se.loadCountries?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`col-${se.columnWidth} mb-2`)},[a.createElementVNode("label",Yy,a.toDisplayString(a.unref(S).country),1),a.createVNode(Vt,{modelValue:se.modelValue[a.unref(w)],options:a.unref(p),disabled:se.disabledFields?.country||a.unref(l),"onUpdate:modelValue":Fe,allowClear:se.allowClear?.country,isLoading:a.unref(l)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(`col-${se.columnWidth} mb-2`)},[a.createElementVNode("label",Qy,a.toDisplayString(a.unref(S).region),1),a.createVNode(Vt,{modelValue:se.modelValue[a.unref(m)],options:a.unref(h),disabled:se.disabledFields?.region||a.unref(u),"onUpdate:modelValue":_e,allowClear:se.allowClear?.region,isLoading:a.unref(u)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2),a.createElementVNode("div",{class:a.normalizeClass(`col-${se.columnWidth} mb-2`)},[a.createElementVNode("label",Ky,a.toDisplayString(a.unref(S).district),1),a.createVNode(Vt,{modelValue:se.modelValue[a.unref(D)],disabled:se.disabledFields?.district||a.unref(c),options:a.unref(k),"onUpdate:modelValue":Ne,allowClear:se.allowClear?.district,isLoading:a.unref(c)},null,8,["modelValue","disabled","options","allowClear","isLoading"])],2),a.createElementVNode("div",{class:a.normalizeClass(`col-${se.columnWidth} mb-2`)},[a.createElementVNode("label",Jy,a.toDisplayString(a.unref(S).locality),1),a.createVNode(Vt,{modelValue:se.modelValue[a.unref(g)],disabled:se.disabledFields?.locality||a.unref(d),"onUpdate:modelValue":de,options:a.unref(C),name:a.unref(g),showAddButton:ke.value,isLoading:a.unref(d),multiple:se.multiLocalities},null,8,["modelValue","disabled","options","name","showAddButton","isLoading","multiple"])],2),a.unref(K)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:a.normalizeClass(`col-${se.columnWidth} mb-2`)},[a.createElementVNode("label",qy,a.toDisplayString(a.unref(S).street),1),a.createVNode(Vt,{modelValue:se.modelValue[a.unref(M)],disabled:se.disabledFields?.street||a.unref(f),options:a.unref(A),"onUpdate:modelValue":Z,allowClear:se.allowClear?.street,isLoading:a.unref(f),multiple:se.multiStreets},null,8,["modelValue","disabled","options","allowClear","isLoading","multiple"])],2),a.unref(F)?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`col-${se.columnWidth} mb-2`)},[a.createElementVNode("label",$y,a.toDisplayString(a.unref(S).house),1),a.createElementVNode("input",{type:"text",class:"form-control",value:se.modelValue[a.unref(v)]||"",disabled:se.disabledFields?.house,onInput:ie},null,40,Zy)],2)):a.createCommentVNode("",!0),a.unref(F)?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(`col-${se.columnWidth} mb-2`)},[a.createElementVNode("label",Xy,a.toDisplayString(a.unref(S).building),1),a.createElementVNode("input",{type:"text",class:"form-control",value:se.modelValue[a.unref(x)]||"",disabled:se.disabledFields?.building,onInput:me},null,40,ew)],2)):a.createCommentVNode("",!0),a.unref(F)?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(`col-${se.columnWidth} mb-2`)},[a.createElementVNode("label",tw,a.toDisplayString(a.unref(S).apartment),1),a.createElementVNode("input",{type:"text",class:"form-control",value:se.modelValue[a.unref(y)]||"",disabled:se.disabledFields?.apartment,onInput:he},null,40,iw)],2)):a.createCommentVNode("",!0)],64))]),se.showFullAddress&&a.unref(H)?(a.openBlock(),a.createElementBlock("div",nw,[a.createElementVNode("div",rw,[Se[0]||(Se[0]=a.createElementVNode("strong",null,"Полный адрес:",-1)),a.createTextVNode(" "+a.toDisplayString(a.unref(H)),1)])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-dfe07190"]]),aw={class:"age-from-to-form"},ow={class:"form-group"},lw={key:0,class:"form-label mb-2"},uw={class:"row align-items-center mb-2"},cw={key:0,class:"col-auto"},dw={class:"form-label mb-0"},hw={class:"col"},fw={class:"col"},pw={class:"row align-items-center mb-2"},mw={key:0,class:"col-auto"},gw={class:"form-label mb-0"},bw={class:"col"},vw={class:"col"},yw=Ie(a.defineComponent({__name:"AgeFromAgeTo",props:{modelValue:{default:null},title:{default:""},nameFrom:{default:"age_from"},nameTo:{default:"age_to"},placeholderFrom:{default:null},placeholderTo:{default:null},timeTypePlaceholder:{default:void 0},timeTypeOptions:{default:void 0},disabled:{type:Boolean,default:!1},onFilterUpdate:{type:Function,default:void 0}},emits:["update:modelValue","change"],setup(n,{expose:e,emit:t}){const i=[{id:1,label:"Дней",value:"days"},{id:2,label:"Недель",value:"weeks"},{id:3,label:"Месяцев",value:"months"},{id:4,label:"Лет",value:"years"}],r=n,s=t,o={age_from:null,age_to:null,time_type_from:null,time_type_to:null},l=a.ref({...o}),u=a.computed(()=>r.timeTypeOptions!==void 0&&r.timeTypeOptions!==null?r.timeTypeOptions:i),c=a.computed(()=>r.placeholderFrom??null),d=a.computed(()=>r.placeholderTo??null),f=a.computed(()=>{if(r.timeTypePlaceholder===null||r.timeTypePlaceholder===void 0){console.log("[AgeFromAgeTo] timeTypePlaceholder is null/undefined, placeholder disabled");return}return console.log("[AgeFromAgeTo] timeTypePlaceholder:",r.timeTypePlaceholder),r.timeTypePlaceholder}),p=a.computed(()=>{const m=l.value.age_from;if(!m)return null;const D=l.value.time_type_from,g=u.value.find(({id:M})=>Number(M)===Number(D))?.label;return g?`${m} ${g}`:null}),h=a.computed(()=>{const m=l.value.age_to;if(!m)return null;const D=l.value.time_type_to,g=u.value.find(({id:M})=>Number(M)===Number(D))?.label;return g?`${m} ${g}`:null}),k=()=>{l.value={...o}},C=()=>{r.onFilterUpdate&&(r.onFilterUpdate(r.nameFrom,p.value),r.onFilterUpdate(r.nameTo,h.value))},A=m=>{if(!m.age_from&&!m.age_to&&!m.time_type_from&&!m.time_type_to){s("update:modelValue",null),s("change",{...o}),C();return}const g=[];m.age_from&&m.time_type_from&&g.push(`age_from[time_type]=${m.time_type_from}&age_from[value]=${m.age_from}`),m.age_to&&m.time_type_to&&g.push(`age_to[time_type]=${m.time_type_to}&age_to[value]=${m.age_to}`);const M=g.length>0?g.join("&")+"&":"";s("update:modelValue",M||null),s("change",{...m}),C()},w=m=>{if(m)try{const D=new URLSearchParams(m),g=D.get("age_from[value]"),M=D.get("age_from[time_type]"),v=D.get("age_to[value]"),x=D.get("age_to[time_type]");l.value={age_from:g?Number(g):null,age_to:v?Number(v):null,time_type_from:M?Number(M):null,time_type_to:x?Number(x):null}}catch(D){console.warn("Error parsing query string:",D)}};return a.watch(()=>r.modelValue,(m,D)=>{m!==D&&(m===null?k():w(m))},{immediate:!0}),a.watch(()=>l.value,m=>{A(m)},{deep:!0}),a.onMounted(()=>{r.modelValue&&w(r.modelValue)}),e({reset:k,getFormData:()=>({age_from:l.value.age_from?Number(l.value.age_from):null,age_to:l.value.age_to?Number(l.value.age_to):null,time_type_from:l.value.time_type_from?Number(l.value.time_type_from):null,time_type_to:l.value.time_type_to?Number(l.value.time_type_to):null}),getFilterStrings:()=>({from:p.value,to:h.value})}),(m,D)=>(a.openBlock(),a.createElementBlock("div",aw,[a.createElementVNode("div",ow,[m.title?(a.openBlock(),a.createElementBlock("label",lw,a.toDisplayString(m.title),1)):a.createCommentVNode("",!0),a.createElementVNode("div",uw,[c.value?(a.openBlock(),a.createElementBlock("div",cw,[a.createElementVNode("label",dw,a.toDisplayString(c.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",hw,[a.createVNode(ur,{modelValue:l.value.age_from,"onUpdate:modelValue":D[0]||(D[0]=g=>l.value.age_from=g),name:m.nameFrom,maskOptions:{regex:"^[0-9]*$"},disabled:m.disabled},null,8,["modelValue","name","disabled"])]),a.createElementVNode("div",fw,[a.createVNode(Vt,{modelValue:l.value.time_type_from,"onUpdate:modelValue":D[1]||(D[1]=g=>l.value.time_type_from=g),name:`${m.nameFrom}_type`,multiple:!1,options:u.value,allowClear:!1,disabled:m.disabled,placeholder:f.value},null,8,["modelValue","name","options","disabled","placeholder"])])]),a.createElementVNode("div",pw,[d.value?(a.openBlock(),a.createElementBlock("div",mw,[a.createElementVNode("label",gw,a.toDisplayString(d.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",bw,[a.createVNode(ur,{modelValue:l.value.age_to,"onUpdate:modelValue":D[2]||(D[2]=g=>l.value.age_to=g),name:m.nameTo,maskOptions:{regex:"^[0-9]*$"},disabled:m.disabled},null,8,["modelValue","name","disabled"])]),a.createElementVNode("div",vw,[a.createVNode(Vt,{modelValue:l.value.time_type_to,"onUpdate:modelValue":D[3]||(D[3]=g=>l.value.time_type_to=g),name:`${m.nameTo}_type`,multiple:!1,options:u.value,allowClear:!1,disabled:m.disabled,placeholder:f.value},null,8,["modelValue","name","options","disabled","placeholder"])])])])]))}}),[["__scopeId","data-v-37fca95f"]]),ww={class:"modal-header pb-4 border-bottom-0"},Cw={key:0,class:"modal-title"},Aw={key:0,class:"modal-body pt-0"},Ew={class:"modal-body-content"},kw={key:1,class:"modal-footer row justify-content-start"},Sw={class:"modal-footer-content"},Wc=a.defineComponent({__name:"DefaultModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},scrollable:{type:Boolean,default:!0},centered:{type:Boolean,default:!0},size:{type:String,default:""},fullscreen:{type:Boolean,default:!1},style:{type:String,default:""},modalVisibility:{type:Boolean,default:!1}},emits:["update:modelValue","emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=a.useSlots(),s=()=>{i("update:modelValue",!1),i("emitModalVisibility",!1)},o=k=>{k.key==="Escape"&&s()},l=a.computed(()=>t.modelValue||t.modalVisibility);let u=0,c=!1;const d=()=>{if(u>0){document.body.style.overflow="hidden";return}document.body.style.overflow=""},f=()=>{c||(window.addEventListener("keydown",o),c=!0)},p=()=>{c&&(window.removeEventListener("keydown",o),c=!1)},h=(k,C)=>{if(k&&!C){u+=1,u===1&&f(),d();return}!k&&C&&(u=Math.max(0,u-1),u===0&&p(),d())};return a.watch(l,h,{immediate:!0}),a.onUnmounted(()=>{l.value&&(u=Math.max(0,u-1)),u===0&&p(),d()}),(k,C)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[n.modelValue||n.modalVisibility?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["r3ui-modal-wrapper",{"r3ui-modal-wrapper--fullscreen":n.fullscreen}])},[a.createElementVNode("div",{class:"overlay",onClick:s}),a.createElementVNode("div",{class:a.normalizeClass(["modal-dialog",{"modal-dialog-scrollable":n.scrollable,"modal-dialog-centered":n.centered&&!n.fullscreen,"modal-sm":n.size==="sm"&&!n.fullscreen,"modal-lg":n.size==="lg"&&!n.fullscreen,"modal-xl":n.size==="xl"&&!n.fullscreen}])},[a.createElementVNode("div",{class:"modal-content p-4",style:a.normalizeStyle(n.style)},[a.createElementVNode("div",ww,[n.title?(a.openBlock(),a.createElementBlock("h4",Cw,a.toDisplayString(n.title),1)):a.createCommentVNode("",!0),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:s})]),a.unref(r)["modal-body"]||a.unref(r).body?(a.openBlock(),a.createElementBlock("div",Aw,[a.createElementVNode("div",Ew,[a.renderSlot(k.$slots,"modal-body"),a.renderSlot(k.$slots,"body")])])):a.createCommentVNode("",!0),a.unref(r)["modal-footer"]||a.unref(r).footer?(a.openBlock(),a.createElementBlock("div",kw,[a.createElementVNode("div",Sw,[a.renderSlot(k.$slots,"modal-footer"),a.renderSlot(k.$slots,"footer")])])):a.createCommentVNode("",!0)],4)],2)],2)):a.createCommentVNode("",!0)]))}}),xw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCCZEvh2A2b1/f6WbT996+Jcn7vJvc38yd5d5sJsv77z333HPPvRfgcDgcDofD4XA4HA6Hw+FwOBwOh8OxgYDewyC1BNVSqJaCjnphx2uyaDnSUSKa1ya11HeUI+gFZLLAJFhILdM6XgvhLCRyWC2bO157heCsQ6Ler5b31XJYLYqHhf5mGVItAccBQmpZBu9FTVdehvMWwxVYN9EhtTzS8dolZwxEy8jhaDz3bOFQ3hChZVQQLQXj0JI7VGrNz8MJ7XsbmzAg+rncf0cDslu+xIAdnyjD9uxVcg8fRXbzl8hF9wirpVItFWAUVgUOoRvCkqATxgr1V0wUGufeKjUaRbQKiV+5Ss7fsFUp2NWkjDn+FbK7+JWIWuYhIThTsCZwEAnzF0r3hn5ZOFFcJFRfNVlo/OECqREe8NoaediLq5WiHTuVwi7ErlDLIjDkkLEkMPVYcqBMnZjh5+GTH9whVnklajoe+qVcuLIqXhz9Avlp3kICPwNGYEHgoFrWII3TwoqwRqprlOzFT8kldR8rRYYfkamuACP4LfBCtSyFS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1jUN3RIKr4Fms2xRkp0V+Ym6q4YFZJxueIM0KTGsbXQ0yF+NxwkNueFZjyQTMEthPjFeNBXTe54qSDfzuT5cGfsIG3FPkWfnJBHiPwVp2KaW/Uu5RGwJNlL19dzjnx09lWHaQ2kk8VBx49lht+HamGeLOJZOw4nLKmAUQ0BOv2okXk02R6ZApXbOKFacLMR77tQ3qkZOe0F3jd0wgrp8iz8ZUbL0geuAA6dTyMvNTEtkFHCqMuexRGYqIO5ZMGne12H7Fe3YfqX7Nu8kRDNcdEp09JgvFBVYKDLwUR2SE+uB+QztyYZgBFjEwz2XzfZDF4gIzveh4qBEg8Ky9aiOC1v9/JHz7hx8Hr791iKsOAe2UhGC8vW/SlSmf/DdUpA3Ej1JFEXHPkIVYLTBA+CdERu/h075x5qycW/HPYOHJ0+HAuLHJEQWpgl2haa+1/PTLejk3ztuIzHiadIa+GsHqLpplOkUutOyQIggZbHF7mtPH5jcXN+f/eVnrY3HCbQB6LMxz3yabsFtg4KU447IK5sy4aMtpQl9DWIDFnA5TRKtxgsAqs4m5nlYLIkSeGZexeW5ppq2rYF0QFlaLLnk2OQAnCQy8FHkwkxN9ANOqEcNc1bjhxapLQCDqln+HCj7eEfpuHM9YSxVFojH85BCcJrCKjyInJrydfQhiD81z1Tx0X1p1yYS0Gl4n9eENL1kdzN++J5iPQ3Vx5rIsVRQZa6vIYThVYJViilizrysfxspY/2w6hwTluNhiYD8KIBMukqWy4qv708gQhCQyyDOCVBTIVtAFQVWqyKHCJhs4mlqulAtKkW0u+BngFftIwB31Msy1ZL2oW6LfW1fWV7twehfdGXjQvmh5gHRmRO8EeOs4WV8R/drQGSG7SGaBWdS7nFC8FLlXol/0637U0fIaNAUCXoy+ovgpSQUVCAQCgUAgEAgEAoFAIBAIBAKBQCDgytcDGZ2xDzhdwgAAAABJRU5ErkJggg==",Dw={class:"row mb-3 flex-column mx-0"},Ow={class:"col-auto mb-3"},Lw={class:"image-container",style:{width:"90px",height:"90px"}},Bw=["src","alt"],Fw=["src"],_w=["src"],Pw=["src"],Nw=["src"],Iw={class:"col"},Hw={class:"confirmation-content"},Vw={key:0,class:"mb-3"},zw={key:1,class:"text-muted"},jw={key:0,class:"row"},Ww={class:"col-auto"},Uw=["disabled"],Gw={class:"col"},Yw=["disabled"],Qw={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Kw=Ie(a.defineComponent({__name:"ConfirmationModal",props:{title:{default:""},message:{default:""},description:{default:""},modalVisibility:{type:Boolean,default:!1},size:{default:""},confirmText:{default:"Да"},cancelText:{default:"Нет"},imageSrc:{default:""},imageAlt:{default:""},loading:{type:Boolean,default:!1},mode:{default:"confirmation"},showButtons:{type:Boolean,default:!0}},emits:["update:modalVisibility","confirm","cancel"],setup(n,{emit:e}){const t=n,i=e,r=d=>{i("update:modalVisibility",d)},s=()=>{switch(t.mode){case"success":return"btn btn-success";case"warning":return"btn btn-warning";case"error":return"btn btn-danger";default:return"btn btn-primary"}},o=()=>{switch(t.mode){case"success":return"Отлично";case"warning":return"Понятно";case"error":return"Понятно";default:return t.confirmText}},l=()=>{t.loading||i("confirm")},u=()=>{t.loading||(i("cancel"),i("update:modalVisibility",!1))},c=d=>{console.warn("Failed to load image:",d.target.src)};return(d,f)=>(a.openBlock(),a.createBlock(Wc,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":a.withCtx(()=>[a.createElementVNode("div",Dw,[a.createElementVNode("div",Ow,[a.createElementVNode("div",Lw,[d.imageSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,Bw)):d.mode==="success"?(a.openBlock(),a.createElementBlock("img",{key:1,class:"w-100",src:a.unref(Tw),alt:"Успех",onError:c},null,40,Fw)):d.mode==="warning"?(a.openBlock(),a.createElementBlock("img",{key:2,class:"w-100",src:a.unref(Mw),alt:"Предупреждение",onError:c},null,40,_w)):d.mode==="error"?(a.openBlock(),a.createElementBlock("img",{key:3,class:"w-100",src:a.unref(Rw),alt:"Ошибка",onError:c},null,40,Pw)):(a.openBlock(),a.createElementBlock("img",{key:4,class:"w-100",src:a.unref(xw),alt:"Подтверждение",onError:c},null,40,Nw))])]),a.createElementVNode("div",Iw,[a.createElementVNode("div",Hw,[d.message?(a.openBlock(),a.createElementBlock("h5",Vw,a.toDisplayString(d.message),1)):a.createCommentVNode("",!0),d.description?(a.openBlock(),a.createElementBlock("p",zw,a.toDisplayString(d.description),1)):a.createCommentVNode("",!0)])])]),a.renderSlot(d.$slots,"modal-body",{},void 0,!0)]),"modal-footer":a.withCtx(()=>[a.renderSlot(d.$slots,"modal-footer",{},()=>[d.showButtons?(a.openBlock(),a.createElementBlock("div",jw,[a.createElementVNode("div",Ww,[d.mode==="confirmation"?(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-light",onClick:u,disabled:d.loading},a.toDisplayString(d.cancelText),9,Uw)):a.createCommentVNode("",!0)]),a.createElementVNode("div",Gw,[a.createElementVNode("button",{class:a.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(a.openBlock(),a.createElementBlock("span",Qw)):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o()),1)],10,Yw)])])):a.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-d29a06ff"]]),Jw={key:0,class:"filter-modal-wrapper"},qw={class:"filter-modal-dialog"},$w={class:"filter-modal-content"},Zw={class:"filter-modal-header"},Xw={key:0,class:"filter-modal-title"},eC={class:"filter-modal-body"},tC={class:"filter-modal-footer"},iC=Ie(a.defineComponent({__name:"TableFilterModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=()=>{i("emitModalVisibility",!1)},s=o=>{o.key==="Escape"&&r()};return a.watch(()=>t.modalVisibility,o=>{o?(document.body.style.overflow="hidden",window.addEventListener("keydown",s)):(document.body.style.overflow="",window.removeEventListener("keydown",s))},{immediate:!0}),a.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",s)}),(o,l)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[o.modalVisibility?(a.openBlock(),a.createElementBlock("div",Jw,[a.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),a.createElementVNode("div",qw,[a.createElementVNode("div",$w,[a.createElementVNode("div",Zw,[o.title?(a.openBlock(),a.createElementBlock("h4",Xw,a.toDisplayString(o.title),1)):a.createCommentVNode("",!0),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),a.createElementVNode("div",eC,[a.renderSlot(o.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",tC,[a.renderSlot(o.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),nC={key:0,class:"px-0"},rC={class:"modal-dialog modal-dialog-centered modal-xl"},sC={class:"modal-content py-2 px-4"},aC={class:"modal-header mb-3"},oC={class:"modal-title"},lC={class:"modal-body row"},uC={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},Uc=Ie(a.defineComponent({__name:"EditTableColumnsModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){return(t,i)=>t.modalVisibility?(a.openBlock(),a.createElementBlock("div",nC,[a.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),a.createElementVNode("div",rC,[a.createElementVNode("div",sC,[a.createElementVNode("div",aC,[a.createElementVNode("h3",oC,a.toDisplayString(t.title),1),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:i[1]||(i[1]=r=>t.$emit("emitModalVisibility",!1))})]),a.createElementVNode("div",lC,[a.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",uC,[a.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),cC={class:"row mb-4 mx-0","data-test":"PageTitle"},dC={class:"col-12"},hC={class:"row align-items-center"},fC={class:"col-auto"},pC={class:"col d-flex justify-content-end"},mC=Ie(a.defineComponent({__name:"PageTitle",props:{title:{},subtitle:{default:""},titleClass:{default:""},subtitleClass:{default:""},titleStyle:{default:""},subtitleStyle:{default:""}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",cC,[a.createElementVNode("div",dC,[a.createElementVNode("div",hC,[a.createElementVNode("div",fC,[a.createElementVNode("h2",{class:a.normalizeClass(["mb-0",e.titleClass]),style:a.normalizeStyle(e.titleStyle)},a.toDisplayString(e.title),7),e.subtitle?(a.openBlock(),a.createElementBlock("p",{key:0,class:a.normalizeClass(["text-muted mb-0 mt-1",e.subtitleClass]),style:a.normalizeStyle(e.subtitleStyle)},a.toDisplayString(e.subtitle),7)):a.createCommentVNode("",!0)]),a.createElementVNode("div",pC,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),gC={class:"card-body"},bC={class:"card-text"},vC=Ie({__name:"Card",props:{title:{type:String,default:""},bodyClass:{type:String,default:"bg-gray-light"}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["card",n.bodyClass])},[a.createElementVNode("div",gC,[a.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),a.createElementVNode("p",bC,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),yC={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},wC=a.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(a.openBlock(),a.createElementBlock("footer",yC,a.toDisplayString(e.copyrightText)+" "+a.toDisplayString(a.unref(Ae)().year()),1))}}),CC={class:"custom-dropdown"},AC={style:{"border-bottom":"2px solid #000"}},EC={class:"dropdown-list-wrapper"},kC={key:0,class:"custom-dropdown-menu"},SC=["onMousedown"],Po=Ie({__name:"DefaultDropDown",props:{links:{type:Array,required:!0},title:{type:String,default:"Actions"},type:{type:String,default:"actions",validator:function(n){return["actions","profile"].includes(n)}}},setup(n){const e=n,t=a.ref(!1),i=l=>{l&&(l.preventDefault(),l.stopPropagation()),t.value=!t.value},r=l=>{if(typeof l!="function"){i();return}l(),i()},s=l=>{l&&(l.preventDefault(),l.stopPropagation()),setTimeout(()=>{t.value=!1},100)},o=a.computed(()=>e.type==="profile");return(l,u)=>(a.openBlock(),a.createElementBlock("div",CC,[o.value?(a.openBlock(),a.createElementBlock("a",{key:0,href:"#",class:"cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",onClick:i,onBlur:s},[u[0]||(u[0]=a.createElementVNode("div",{class:"circl"},null,-1)),a.createTextVNode(" "+a.toDisplayString(n.title),1)],32)):(a.openBlock(),a.createElementBlock("a",{key:1,href:"#",class:"link-dark",type:"button",onClick:i,onBlur:s},[a.createElementVNode("span",AC,a.toDisplayString(n.title),1),u[1]||(u[1]=a.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-left":"5px"}},null,-1))],32)),a.createElementVNode("div",EC,[t.value?(a.openBlock(),a.createElementBlock("ul",kC,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.links,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:d},[c.hidden?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["dropdown-item",{disabled:c?.disabled}]),style:{cursor:"pointer"},onMousedown:a.withModifiers(f=>r(c?.action),["prevent"])},a.toDisplayString(c?.title),43,SC))]))),128))])):a.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-2e8e004b"]]),xC="data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAA7CAYAAADYdw5tAAAQ9UlEQVR4nO1dzW7bSLb+DinJns69uOzF4CodIKMM0EkHdxFl0YAjqhFmN7s4TxD5CaJ+AstPEPsJojxBO08QGonkAFlYvRh42hlMGDQa7eAuWsHt221bYp1ZsKSQxSJFWf6Lmh+ghSiqeETVV3XOd04VCTk+KTiOYw0Gg3VmZsMwnr58+dI9b5v+aKDzNiDH8VCr1VaJqMXMHhG1Op3O0/O26Y+CnDSfMGq1WoOIHgOwmNkTQtx79eqVd952zTty0nzicBynMhgMngOoyEPrxWJxzXXd/nnaNc/ISTMHkMT5DkAVAJjZA/Cg2+32ztey+YRx3gbkmB2u63rFYvEegB4AEFGFiHbq9XrrnE2bS+QzzRxBzjg7AKzQ4fVOp/Ptedk0j8hJM2f45ptvloUQ34WPMfNmqVRayeOck0Huns0ZXrx4sQkgQg4iWpYxT44TQE6a+cSm5phj2/bjM7dkDpGTZj5RSTjerNfrzplaMofISTNncBynAiCRGMy8eobmzCVy0swRQonO1NO+/vrr6pkYNKfISTMnsG27KeXmJNdsjFKpdOsMTJpbFM7bgBzHh+M41uHh4UPDMJrIQJYRhBB5fdoMyEnziWFpaalCRPcNw1geDAZVwzCsyd+KYH17e3vrVIz7gyBPbl5gOI5jDYfDqu/7t4ioSkQOpphRFPSZeb3b7a6dpI1/ROSkuSCo1WpVZr4ryVFFQI5pZxEVfQA9IcTmwsLC07wi4GSQk+YcUa/XHWa+D6CB2QkCAB4z95jZBdDL3bDTQU6ac4AkyypS8ikZMCYIEXmlUmkrn0nOBj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guMk5AzuT9CiNS1Md1ud81xnKdSCBjtQKNivAl4hkTsscHMMemdmVdt277r+/6KYRiWEOJYal0i/HhuZJqdZejmvsc/KPVdh5yYER4v0Notr8Gk+yA40iUL7eQilzwT9+jLn9NjuiE/gxEKBTimjCbZ4fKbL5YhRHjxWep36eZ+G0Cb33xxH+w7QSxFwQxpUA8sPDD18NvvE3fOmbt9z2q12nikLJVKH85qf2Pbtp8juTbNJaI1IcQT0zS/nbRQLsfFxtyR5qwh1cdHzPy9ugeBRB9Ar1gsPhgMBr8AABHdm2b/tRwXC/mT0GaEdA0rcr1/W850nzPzfxGRF3YHbdsGgNETlnPSfKLISTM7lsNFo5Ikk+KmSZt55LjAyJ/uPAPknmkWEVmTSnnCyiIAMMdL7nN8GshJczJILCUaQVXXWN1SKMcng5w0M0DKx6Pqg2bSwjf5bBq1bH7mkqIc54OcNLNjlOyziOh5eG80x3EsmeCMlbBPuyQhx8VBLjnPCCk57yBeNqMWlY4hF6ZN/SSCHBcDmg1qckwDz/P6V69ePQTwN+WjpCJRr1QqPfA87+D0rctxGshJcwL48ccfX129evUDgCUAiymnuqVS6V7+FOZPG7l7doIYVQfgYx1cX75cIcRm/kjA+cC/AdgTzC0pucD7AAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e",RC=["src","alt"],Gc=Ie(a.defineComponent({__name:"Logo",props:{src:{default:xC},alt:{default:"Logo"},width:{default:154},height:{default:50},className:{default:"logo"},style:{default:()=>({})},brandText:{default:void 0},textSize:{default:12},textColor:{default:"#000"},textWeight:{default:"normal"},showText:{type:Boolean,default:!0}},setup(n){const e=n,t=a.computed(()=>e.src?.startsWith("~/")?e.src.replace("~/","/"):e.src),i=a.computed(()=>{const l="r3ui-logo";return e.className?`${l} ${e.className}`:l}),r=a.computed(()=>({width:typeof e.width=="number"?`${e.width}px`:e.width,height:typeof e.height=="number"?`${e.height}px`:e.height,...e.style})),s=a.computed(()=>"r3ui-logo-container"),o=a.computed(()=>({fontSize:typeof e.textSize=="number"?`${e.textSize}px`:e.textSize,color:e.textColor,fontWeight:e.textWeight}));return(l,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["r3ui-logo-container",s.value])},[a.createElementVNode("img",{src:t.value,alt:l.alt,class:a.normalizeClass(i.value),style:a.normalizeStyle(r.value)},null,14,RC),l.brandText&&l.brandText.trim()&&l.showText?(a.openBlock(),a.createElementBlock("span",{key:0,class:"r3ui-logo-text",style:a.normalizeStyle(o.value)},a.toDisplayString(l.brandText),5)):a.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-57bc5457"]]),MC={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},TC={class:"row align-items-center"},DC={class:"col-auto pe-0"},OC={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},LC={class:"row"},BC={class:"col-auto d-flex align-items-center"},FC={key:1,class:"text-muted"},_C={class:"col-auto"},PC=Ie(a.defineComponent({__name:"Header",props:{isAuthenticated:{type:Boolean,default:!1},user:{type:Object,default:null},brandText:{type:String,required:!0},loginText:{type:String,default:"Authorization"},rawDropdownLinks:{type:Array,default:()=>[]}},emits:["navigate","logout"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>t.rawDropdownLinks.map(s=>s.name==="logout"?{...s,action:()=>i("logout")}:s.name.includes("http")?{...s,action:()=>i("navigate",s.name,{external:!0})}:{...s,action:()=>i("navigate",`/${s.name}`)}));return(s,o)=>(a.openBlock(),a.createElementBlock("div",MC,[a.createElementVNode("div",{class:a.normalizeClass([t.isAuthenticated?"container-fluid":"container"])},[a.createElementVNode("a",{href:"/",onClick:o[0]||(o[0]=a.withModifiers(()=>i("navigate","/"),["prevent"])),class:"text-decoration-none r3ui-header-link"},[a.createElementVNode("div",TC,[a.createElementVNode("div",DC,[a.renderSlot(s.$slots,"logo",{},()=>[a.createVNode(Gc,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),a.createElementVNode("div",OC,a.toDisplayString(t.brandText),1)])]),a.createElementVNode("div",LC,[a.createElementVNode("div",BC,[t.isAuthenticated?(a.openBlock(),a.createBlock(Po,{key:0,type:"profile",title:t.user?.name||"",links:r.value},null,8,["title","links"])):a.createCommentVNode("",!0),t.isAuthenticated?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",FC,a.toDisplayString(t.loginText),1))]),a.createElementVNode("div",_C,[a.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-a63a7e7f"]]),NC={class:"col-12 divider divider__wrapper","data-test":"Divider"},No={__name:"Divider",props:{height:{type:[Number,String],default:4},className:{type:String,default:"mb-4"},colorHEX:{type:String,default:"#EFEFEF"}},setup(n){const e=n;return(t,i)=>(a.openBlock(),a.createElementBlock("div",NC,[a.createElementVNode("div",{class:a.normalizeClass(e.className),style:a.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},IC=n=>{const e=a.inject("sidebarContentVisibility"),t=a.inject("toggleSidebar"),i=a.ref({}),r=(l,u)=>{i.value[u]===l?i.value[u]=null:i.value[u]=l},s=a.computed(()=>n.value),o=()=>{if(i.value={},!e?.value)return;const l=u=>{u.childrens?.length&&u.childrens.forEach(l),u.isActive&&u.uniqueKey&&r(u.uniqueKey,u.level)};n.value.forEach(l)};return a.provide("expandAccordion",r),a.provide("expandedAccordion",i),a.watch(n,()=>{o()},{deep:!0}),a.watch(()=>e?.value,()=>{o()},{deep:!0}),a.onMounted(()=>{o()}),{expandedAccordion:i,expandAccordion:r,sidebarLinks:n,collapsedSidebarLinks:s,toggleSidebar:t,sidebarContentVisibility:e}},HC={key:0},VC=["href","target","rel"],zC=["innerHTML"],jC={key:1},WC=["id"],UC=["innerHTML"],GC=["id"],YC={class:"accordion-body"},Yc=Ie(a.defineComponent({name:"SidebarLink",__name:"SidebarLink",props:{sidebarLink:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=a.inject("expandAccordion"),r=a.inject("expandedAccordion"),s=o=>{o.isExternal&&o.href?o.openInNewWindow!==!1?window.open(o.href,"_blank","noopener,noreferrer"):window.location.href=o.href:t("navigate",o.href)};return(o,l)=>{const u=a.resolveComponent("SidebarLink",!0);return a.openBlock(),a.createElementBlock("div",null,[n.sidebarLink.childrens?.length?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",HC,[a.createElementVNode("a",{href:n.sidebarLink.href,target:n.sidebarLink.isExternal&&n.sidebarLink.openInNewWindow!==!1?"_blank":void 0,rel:n.sidebarLink.isExternal&&n.sidebarLink.openInNewWindow!==!1?"noopener noreferrer":void 0,onClick:l[0]||(l[0]=a.withModifiers(()=>s(n.sidebarLink),["prevent"])),class:"sidebar-link-item"},[n.sidebarLink.isVisible?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["btn btn-light w-100 text-start border-0",[n.sidebarLink.level===0?"nested-links":"extended-menu-item",n.sidebarLink.isActive?"fw-bolder":""]]),style:{background:"#efefef"}},[a.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:a.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,zC),a.createElementVNode("span",null,a.toDisplayString(n.sidebarLink.label),1)],2)):a.createCommentVNode("",!0)],8,VC)])),n.sidebarLink.childrens?.length?(a.openBlock(),a.createElementBlock("div",jC,[n.sidebarLink.isVisible?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["accordion-item bg-transparent border-0",[n.sidebarLink.level>0?"extended-menu-item":""]])},[a.createElementVNode("h2",{class:"accordion-header",id:`heading-${n.sidebarLink.uniqueKey}`},[a.createElementVNode("button",{class:a.normalizeClass(["accordion-button outline-none rounded",{"fw-bolder":n.sidebarLink.isActive,collapsed:a.unref(r)&&a.unref(r)[n.sidebarLink.level]!==n.sidebarLink.uniqueKey}]),type:"button",onClick:l[1]||(l[1]=c=>a.unref(i)&&a.unref(i)(n.sidebarLink.uniqueKey,n.sidebarLink.level))},[a.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:a.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,UC),a.createTextVNode(" "+a.toDisplayString(n.sidebarLink.label),1)],2)],8,WC),a.createElementVNode("div",{id:`flush-${n.sidebarLink.uniqueKey}`,class:a.normalizeClass(["accordion-collapse collapse",{show:a.unref(r)&&a.unref(r)[n.sidebarLink.level]===n.sidebarLink.uniqueKey}]),style:{transition:"0.5s"}},[a.createElementVNode("div",YC,[a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.sidebarLink.childrens,c=>(a.openBlock(),a.createElementBlock("li",{key:c.uniqueKey},[a.createVNode(u,{sidebarLink:c,onNavigate:l[2]||(l[2]=d=>t("navigate",d))},null,8,["sidebarLink"])]))),128))])])],10,GC)],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-0a6fd930"]]),QC={key:0},KC={key:0},JC=["title"],qC=["innerHTML"],$C={key:1},ZC={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},XC={class:"hidden-div"},eA={key:1},tA=["href","target","rel"],iA=["title"],nA=["innerHTML"],rA={key:0,class:"ms-2"},sA={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},aA={key:0,class:"ms-2"},Qc=Ie(a.defineComponent({name:"CollapsedSidebarLink",__name:"CollapsedSidebarLink",props:{link:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=a.inject("expandAccordion"),r=a.inject("expandedAccordion"),s=o=>{o.isExternal&&o.href?o.openInNewWindow!==!1?window.open(o.href,"_blank","noopener,noreferrer"):window.location.href=o.href:t("navigate",o.href)};return(o,l)=>{const u=a.resolveComponent("CollapsedSidebarLink",!0);return n.link.isVisible?(a.openBlock(),a.createElementBlock("div",QC,[n.link.childrens?.length?(a.openBlock(),a.createElementBlock("div",KC,[a.createElementVNode("button",{title:n.link.label,class:a.normalizeClass(["btn btn-light w-100 text-start border-0",[n.link.icon?"icon":"text-align-left bg-white"]]),type:"button",onClick:l[0]||(l[0]=c=>a.unref(i)?.(n.link.uniqueKey,n.link.level))},[n.link.icon?(a.openBlock(),a.createElementBlock("span",{key:0,innerHTML:n.link.icon},null,8,qC)):(a.openBlock(),a.createElementBlock("span",$C,a.toDisplayString(n.link.label),1))],10,JC),a.unref(r)&&a.unref(r)[n.link.level]===n.link.uniqueKey?(a.openBlock(),a.createElementBlock("div",ZC,[a.createElementVNode("div",XC,[a.createElementVNode("h5",null,a.toDisplayString(n.link.label),1),l[3]||(l[3]=a.createElementVNode("hr",{size:"1"},null,-1)),a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.link.childrens,c=>(a.openBlock(),a.createElementBlock("li",{class:"mb-0",key:c.uniqueKey},[a.createVNode(u,{link:c,onNavigate:l[1]||(l[1]=d=>t("navigate",d))},null,8,["link"])]))),128))])])])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",eA,[a.createElementVNode("a",{href:n.link.href,target:n.link.isExternal&&n.link.openInNewWindow!==!1?"_blank":void 0,rel:n.link.isExternal&&n.link.openInNewWindow!==!1?"noopener noreferrer":void 0,onClick:l[2]||(l[2]=a.withModifiers(()=>s(n.link),["prevent"]))},[n.link.level<1?(a.openBlock(),a.createElementBlock("button",{key:0,title:n.link.label,class:"btn btn-light w-100 text-start border-0",type:"button",style:{padding:"15px 20px",background:"#efefef"}},[a.createElementVNode("span",{innerHTML:n.link.icon},null,8,nA),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",rA,"↗")):a.createCommentVNode("",!0)],8,iA)):(a.openBlock(),a.createElementBlock("button",sA,[a.createElementVNode("span",null,a.toDisplayString(n.link.label),1),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",aA,"↗")):a.createCommentVNode("",!0)]))],8,tA)]))])):a.createCommentVNode("",!0)}}}),[["__scopeId","data-v-6d9f8db2"]]),oA={key:0},lA={class:"accordion accordion-flush",id:"accordionMenu"},uA={key:1},cA={class:"row"},dA={class:"col-12"},hA={class:"sidebar-footer p-3"},Kc=a.defineComponent({__name:"Sidebar",props:{links:{type:Array,required:!0},isCollapsed:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>!t.isCollapsed),{sidebarLinks:s,collapsedSidebarLinks:o}=IC(a.computed(()=>t.links));return(l,u)=>(a.openBlock(),a.createElementBlock("div",{id:"sidebarContent",class:a.normalizeClass(["sidebar sidebarContent",{"collapse-width":!r.value}])},[r.value?(a.openBlock(),a.createElementBlock("div",oA,[a.createElementVNode("div",lA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),c=>(a.openBlock(),a.createElementBlock("div",{key:c.uniqueKey},[a.createVNode(Yc,{sidebarLink:c,onNavigate:u[0]||(u[0]=d=>i("navigate",d))},null,8,["sidebarLink"])]))),128))])])):a.createCommentVNode("",!0),r.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",uA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),c=>(a.openBlock(),a.createElementBlock("div",{key:c.uniqueKey},[a.createVNode(Qc,{link:c,onNavigate:u[1]||(u[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),a.createElementVNode("div",cA,[a.createElementVNode("div",dA,[a.createVNode(No)])]),a.createElementVNode("div",hA,[a.renderSlot(l.$slots,"footer")])],2))}}),fA=n=>{const e=a.ref(!0),t=a.ref(null),i=a.ref(null),r=a.ref(320),s=()=>{e.value=!1,r.value=60,localStorage.setItem("sideBarVisibility","0")},o=()=>{e.value=!0,r.value=320,localStorage.setItem("sideBarVisibility","1")},l=()=>{e.value?s():o()},u=()=>{localStorage.getItem("sideBarVisibility")==="0"?s():o()},c=()=>{setTimeout(()=>{const d=t.value?.offsetWidth||0,f=r.value||0;if(d>0&&f>0){const p=window.innerWidth<768;i.value=p?d:d-f-20}},50)};return a.provide("sidebarContentVisibility",e),a.provide("toggleSidebar",l),a.watch(r,()=>{c()},{deep:!0}),a.onMounted(()=>{u(),c(),window.addEventListener("resize",c,!0)}),a.onBeforeUnmount(()=>{window.removeEventListener("resize",c,!0)}),{isAuthenticated:n,contentWidth:i,clientWidth:t,sidebarWidth:r,toggleSidebar:l,sidebarContentVisibility:e}},pA={class:"container-fluid p-0"},mA={class:"py-4",style:{"min-height":"90vh"}},gA=a.defineComponent({__name:"MainComponent",props:{sidebarLinks:{type:Array,required:!0},isAuthenticated:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,{contentWidth:r,clientWidth:s,sidebarWidth:o,sidebarContentVisibility:l}=fA(a.computed(()=>t.isAuthenticated));return(u,c)=>(a.openBlock(),a.createElementBlock("div",pA,[a.createElementVNode("div",{class:a.normalizeClass(["d-flex",{"justify-content-center":!t.isAuthenticated}]),ref_key:"clientWidth",ref:s},[t.isAuthenticated?(a.openBlock(),a.createElementBlock("div",{key:0,id:"sidebar",class:"pt-3 sidebar px-0 hide-to-print",style:a.normalizeStyle(`background: #efefef; transition: .2s; width:${a.unref(o)}px;`)},[a.createVNode(Kc,{links:t.sidebarLinks,"is-collapsed":!a.unref(l),onNavigate:c[0]||(c[0]=d=>i("navigate",d))},null,8,["links","is-collapsed"])],4)):a.createCommentVNode("",!0),a.createElementVNode("div",{id:"content-div",style:a.normalizeStyle(`transition: .2s; width:${a.unref(r)}px;`)},[a.createElementVNode("div",mA,[a.renderSlot(u.$slots,"breadcrumbs"),a.renderSlot(u.$slots,"default")])],4)],2)]))}}),bA={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},vA={class:"col"},yA={"aria-label":"breadcrumb"},wA={class:"breadcrumb row"},CA=["aria-current"],AA=["href","onClick"],EA={key:1,class:"text-nowrap"},kA=Ie(a.defineComponent({__name:"Breadcrumbs",props:{crumbs:{type:Array,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e;return(r,s)=>(a.openBlock(),a.createElementBlock("div",bA,[a.createElementVNode("div",vA,[a.createElementVNode("nav",yA,[a.createElementVNode("ol",wA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.crumbs,(o,l)=>(a.openBlock(),a.createElementBlock("li",{key:l,class:a.normalizeClass(["breadcrumb-item text-nowrap col-auto",{active:o.isActive}]),"aria-current":o.isActive?"page":void 0},[o.isActive?(a.openBlock(),a.createElementBlock("span",EA,a.toDisplayString(o.text),1)):(a.openBlock(),a.createElementBlock("a",{key:0,href:o.href,class:"text-decoration-none text-black-40 cursor-pointer text-nowrap",onClick:a.withModifiers(()=>i("navigate",o.href),["prevent"])},a.toDisplayString(o.text),9,AA))],10,CA))),128))])])])]))}}),[["__scopeId","data-v-cff07bcc"]]),SA=a.defineComponent({__name:"LanguageSelector",props:{modelValue:{},options:{},width:{},allowClear:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=a.computed({get:()=>t.modelValue,set:s=>i("update:modelValue",s)});return(s,o)=>(a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({minWidth:s.width||"150px"})},[a.createVNode(Vt,{class:"w-100",modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=l=>r.value=l),options:s.options,"allow-clear":s.allowClear??!1},null,8,["modelValue","options","allow-clear"])],4))}}),xA={key:0,class:"card-header"},RA={class:"card-title mb-0"},MA={class:"card-body"},TA={class:"row"},DA={class:"row align-items-center"},OA={class:"col-auto label pe-0"},LA={class:"col-auto"},BA={key:0,class:"mt-3"},FA=Ie(a.defineComponent({__name:"CardInfo",props:{title:{default:""},fields:{default:()=>[]},cardClass:{default:""},variant:{default:"default"},size:{default:"md"},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1}},setup(n){const e=n,t=a.computed(()=>{const i=["card-info"];return e.variant!=="default"&&i.push(`card-info--${e.variant}`),e.size!=="md"&&i.push(`card-info--${e.size}`),e.bordered&&i.push("card-info--bordered"),e.shadow&&i.push("card-info--shadow"),e.cardClass&&i.push(e.cardClass),i.join(" ")});return(i,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["card",t.value])},[i.title?(a.openBlock(),a.createElementBlock("div",xA,[a.createElementVNode("h5",RA,a.toDisplayString(i.title),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",MA,[a.createElementVNode("div",TA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.fields,(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:"col-12 mb-2",key:o},[a.createElementVNode("div",DA,[a.createElementVNode("div",OA,a.toDisplayString(s.label)+":",1),a.createElementVNode("div",LA,[a.createElementVNode("span",{class:a.normalizeClass(["value",s.valueClass]),style:a.normalizeStyle(s.valueStyle)},a.toDisplayString(s.value),7)])])]))),128))]),i.$slots.default?(a.openBlock(),a.createElementBlock("div",BA,[a.renderSlot(i.$slots,"default",{},void 0,!0)])):a.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),_A={class:"placeholder-glow"},PA={class:"page-card"},NA={class:"row hide-to-print card-header mx-0 w-100"},IA={class:"col"},HA={class:"row flex-nowrap align-items-center"},VA={class:"col-auto"},zA={key:0,class:"col-auto"},jA={class:"row",style:{padding:"20px"}},WA={class:"d-flex align-items-start"},UA={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},GA=["onClick"],YA={class:"tab-content",id:"v-pills-tabContent"},QA={key:0,class:"title"},KA={key:1},JA={key:0},qA={key:0},$A=["title"],ZA={key:2},XA={class:"row"},eE={class:"col-12"},tE=Ie(a.defineComponent({__name:"PageCard",props:{actionLinks:{default:()=>[]},tabs:{default:()=>[]},col:{default:"auto"},actionsTitle:{default:"Действия"},isLoading:{type:Boolean,default:!1}},emits:["click","active-tab"],setup(n,{emit:e}){const t=n,i=e,r=a.ref(0),s=a.useSlots(),o=d=>{i("click",d)},l=a.computed(()=>!!s.header),u=a.computed(()=>!!s.footer),c=d=>{r.value=d,i("active-tab",t.tabs[d])};return a.onMounted(()=>{}),(d,f)=>(a.openBlock(),a.createElementBlock("div",null,[a.withDirectives(a.createElementVNode("p",_A,[...f[0]||(f[0]=[a.createElementVNode("span",{class:"placeholder col-12 mb-1",style:{"min-height":"300px","border-radius":"4px"}},null,-1)])],512),[[a.vShow,d.isLoading]]),a.withDirectives(a.createElementVNode("div",PA,[a.createElementVNode("div",NA,[a.createElementVNode("div",IA,[a.createElementVNode("div",HA,[a.createElementVNode("div",VA,[l.value?a.renderSlot(d.$slots,"header",{key:0},void 0,!0):a.createCommentVNode("",!0)])])]),d.actionLinks.length>0?(a.openBlock(),a.createElementBlock("div",zA,[a.createVNode(Po,{title:d.actionsTitle,links:d.actionLinks,onClick:o},null,8,["title","links"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",jA,[a.createElementVNode("div",WA,[a.createElementVNode("div",UA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tabs,(p,h)=>a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:h,class:a.normalizeClass(["nav-link me-5",[h===r.value?"active":""]]),onClick:k=>c(h)},a.toDisplayString(p.navLink),11,GA)),[[a.vShow,p.navLink]])),128))]),a.createElementVNode("div",YA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tabs,(p,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:a.normalizeClass(["tab-pane fade row",[h===r.value?"show active d-flex":""]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.contents,(k,C)=>(a.openBlock(),a.createElementBlock("div",{key:C,class:a.normalizeClass(`col-${d.col} mb-3`)},[k.subtitle?(a.openBlock(),a.createElementBlock("div",QA,a.toDisplayString(k.subtitle)+": ",1)):a.createCommentVNode("",!0),!k.type||k.type==="text"?(a.openBlock(),a.createElementBlock("div",KA,[typeof k.text=="string"?(a.openBlock(),a.createElementBlock("div",JA,a.toDisplayString(k.text),1)):k.text?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(k.text,(A,w)=>(a.openBlock(),a.createElementBlock("div",{key:w},[typeof A=="string"?(a.openBlock(),a.createElementBlock("div",qA,a.toDisplayString(A),1)):a.createCommentVNode("",!0),typeof A=="object"?(a.openBlock(),a.createElementBlock("div",{key:1,title:A?.description||""},a.toDisplayString(A.name),9,$A)):a.createCommentVNode("",!0)]))),128)):a.createCommentVNode("",!0)])):k.type==="custom"&&k.slotName?(a.openBlock(),a.createElementBlock("div",ZA,[a.renderSlot(d.$slots,k.slotName,{content:k},void 0,!0)])):a.createCommentVNode("",!0)],2))),128))],2))),128))])]),u.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(No,{class:"mt-3"}),a.createElementVNode("div",XA,[a.createElementVNode("div",eE,[a.renderSlot(d.$slots,"footer",{},void 0,!0)])])],64)):a.createCommentVNode("",!0)])],512),[[a.vShow,!d.isLoading]])]))}}),[["__scopeId","data-v-57cc294f"]]),iE={key:0,class:"row w-100 parent"},nE={class:"col-12 wrapper w-100"},rE=["innerHTML"],Jc={__name:"Toast",props:{message:{type:String,default:""},isError:{type:Boolean,default:!1}},setup(n){const e=n,t=a.ref(e.message);a.watch(()=>e.message,r=>{t.value=r});const i=()=>{t.value=""};return(r,s)=>t.value&&t.value.length>0?(a.openBlock(),a.createElementBlock("div",iE,[a.createElementVNode("div",nE,[a.createElementVNode("div",{class:a.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,rE),a.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):a.createCommentVNode("",!0)}},sE={key:0,class:"row","data-test":"ErrorMessageComponent"},aE={class:"col-12",id:"alert"},oE={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},lE=["innerHTML"],uE=Ie(a.defineComponent({__name:"ErrorMessageComponent",props:{message:{default:""},warningIcon:{type:Boolean,default:!1},type:{default:"danger"},asHtml:{type:Boolean,default:!1}},setup(n){const e=n,t=a.computed(()=>e.message===null||e.message===void 0?!1:Array.isArray(e.message)?e.message.length>0:!!(e.message&&typeof e.message=="string"&&e.message.length>0&&e.message.trim()!=="")),i=a.computed(()=>Array.isArray(e.message)?e.message.join(", "):e.message||"");return(r,s)=>t.value?(a.openBlock(),a.createElementBlock("div",sE,[a.createElementVNode("div",aE,[a.createElementVNode("div",{class:a.normalizeClass([i.value?`alert alert-${r.type}`:"",{"d-flex align-items-center":r.warningIcon}])},[i.value&&r.warningIcon?(a.openBlock(),a.createElementBlock("i",oE)):a.createCommentVNode("",!0),r.asHtml?(a.openBlock(),a.createElementBlock("div",{key:1,innerHTML:i.value},null,8,lE)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(i.value),1)],64))],2)])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),cE={class:"accordion-header",style:{background:"transparent"}},dE=["aria-expanded","aria-controls"],hE={key:0},fE=["id"],pE={class:"accordion-body px-0"},mE=Ie(a.defineComponent({__name:"DefaultAccordion",props:{title:{},titleFontSize:{default:16},isCollapsed:{type:Boolean,default:!0},isVisibleBorderBottom:{type:Boolean,default:!0},isCollapsedDefault:{type:Boolean,default:!0},isTitleBold:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},emits:["update-visibility"],setup(n,{emit:e}){const t=n,i=e,r=a.useSlots(),s=a.ref(Math.random().toString(36).substr(2,9)),o=u=>!!r[u],l=()=>{const u=!t.isCollapsed;i("update-visibility",u)};return a.watch(()=>t.isCollapsedDefault,u=>{i("update-visibility",u)},{deep:!0}),(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["accordion accordion-flush",{"w-100":u.fullWidth}]),style:{background:"transparent"}},[a.createElementVNode("div",{class:a.normalizeClass(["accordion-item",{"border-bottom":u.isVisibleBorderBottom}]),style:{background:"transparent"}},[a.createElementVNode("h2",cE,[a.createElementVNode("button",{onClick:l,class:a.normalizeClass(["accordion-button collapsed ps-0",{visible:!u.isCollapsed,"fw-bolder":u.isTitleBold}]),style:a.normalizeStyle(`font-size:${u.titleFontSize}px;`),type:"button","aria-expanded":!u.isCollapsed,"aria-controls":`accordion-${s.value}`},a.toDisplayString(u.title),15,dE)]),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[o("accordion-body")?(a.openBlock(),a.createElementBlock("div",hE,[a.withDirectives(a.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[a.createElementVNode("div",pE,[a.renderSlot(u.$slots,"accordion-body",{},void 0,!0)])],8,fE),[[a.vShow,!u.isCollapsed]])])):a.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),gE={class:"accordion-header",style:{background:"transparent"}},bE=["onClick"],vE={class:"d-flex align-items-center w-100"},yE={class:"d-flex align-items-center flex-grow-1"},wE=["value","id","onChange"],CE={class:"form-check-label ps-2 text-body flex-grow-1"},AE={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},EE={class:"col d-flex flex-wrap px-4"},kE={class:"form-check"},SE=["value","id"],xE=["for"],RE=Ie(a.defineComponent({__name:"KindCheckboxesAccordion",props:{checkboxName:{default:"kinds"},kindGroups:{default:()=>[]},defaultSelectedKinds:{default:()=>[]},defaultSelectedKindGroups:{default:()=>[]}},emits:["emitSelectedKinds","emitSelectedKindGroups"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=a.ref([]),o=a.ref([]),l=a.ref(null),u=a.ref([]),c=(k,C)=>{const A=k.target;if(A.tagName==="INPUT"||A.closest(".form-check-input"))return!1;if(A.tagName==="SPAN"||A.closest(".form-check-label"))return l.value!==Number(C)?(l.value=Number(C),!0):(l.value=null,!0);if(l.value!==Number(C))return l.value=Number(C),!0;l.value=null},d=k=>{const C=i.kindGroups.find(w=>w.id===k);if(!C)return;if(s.value.includes(String(k))){const w=C.kinds.map(D=>String(D.id)),m=[...o.value];w.forEach(D=>{m.includes(D)||m.push(D)}),o.value=m}else{const w=C.kinds.map(m=>String(m.id));o.value=o.value.filter(m=>!w.includes(String(m)))}},f=()=>{a.nextTick(()=>{p()})},p=()=>{const k=[];i.kindGroups.forEach((w,m)=>{const D=u.value?.[m];if(!D)return;const g=w.kinds.map(v=>String(v.id)),M=o.value.filter(v=>g.includes(String(v)));M.length===0?(D.indeterminate=!1,D.checked=!1):M.length===g.length?(D.indeterminate=!1,D.checked=!0,k.push(String(w.id))):(D.indeterminate=!0,D.checked=!1)});const C=s.value.map(String).sort(),A=k.map(String).sort();JSON.stringify(C)!==JSON.stringify(A)&&(s.value=k)};a.watch(()=>o.value,k=>{r("emitSelectedKinds",k)},{deep:!0}),a.watch(()=>s.value,k=>{r("emitSelectedKindGroups",k)},{deep:!0}),a.onMounted(()=>{i.defaultSelectedKinds.length>0&&(o.value=[...i.defaultSelectedKinds]),i.defaultSelectedKindGroups.length>0&&(s.value=[...i.defaultSelectedKindGroups]),a.nextTick(()=>{p()})});const h=a.computed(()=>c);return e({toggleAccordion:c}),(k,C)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.kindGroups,(A,w)=>(a.openBlock(),a.createElementBlock("div",{class:"accordion-item border-bottom",style:{background:"transparent"},key:A.id},[k.kindGroups[w].kinds.length>0?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",gE,[a.createElementVNode("button",{class:a.normalizeClass(["accordion-button ps-0",{collapsed:l.value===Number(w)}]),type:"button",style:{background:"transparent"},onClick:m=>h.value(m,w)},[a.createElementVNode("div",vE,[a.createElementVNode("div",yE,[a.withDirectives(a.createElementVNode("input",{class:"form-check-input m-0",type:"checkbox",ref_for:!0,ref_key:"groupCheckbox",ref:u,value:`${A.id}`,id:`${k.checkboxName}_${w}`,name:"kind_group","onUpdate:modelValue":C[0]||(C[0]=m=>s.value=m),onClick:C[1]||(C[1]=a.withModifiers(()=>{},["stop"])),onChange:m=>d(A.id)},null,40,wE),[[a.vModelCheckbox,s.value]]),a.createElementVNode("span",CE,a.toDisplayString(A.name),1)]),a.createElementVNode("i",{class:a.normalizeClass(["bi bi-chevron-down accordion-icon",{rotated:l.value===Number(w)}])},null,2)])],10,bE)]),a.withDirectives(a.createElementVNode("div",AE,[a.createElementVNode("div",EE,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.kindGroups[w].kinds,(m,D)=>(a.openBlock(),a.createElementBlock("div",{class:"col-6 mb-2",key:D},[a.createElementVNode("div",kE,[a.withDirectives(a.createElementVNode("input",{class:"form-check-input",type:"checkbox",value:`${m.id}`,id:`${k.checkboxName}_${m.id}`,name:"kinds","onUpdate:modelValue":C[2]||(C[2]=g=>o.value=g),onChange:f},null,40,SE),[[a.vModelCheckbox,o.value]]),a.createElementVNode("label",{class:"form-check-label",for:`${k.checkboxName}_${m.id}`},[a.createElementVNode("small",null,a.toDisplayString(m.name),1)],8,xE)])]))),128))])],512),[[a.vShow,l.value===Number(w)]])],64)):a.createCommentVNode("",!0)]))),128))}}),[["__scopeId","data-v-c0a701d5"]]);class dt{constructor(e){this.table=e}reloadData(e,t,i){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,i)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return typeof t<"u"&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,i){return this.table.deprecationAdvisor.check(e,t,i)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class Ze{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,i){var r=e?t.split(e):[t],s=r.length,o;for(let l=0;l<s&&(i=i[r[l]],o=i,!!i);l++);return o}static deepClone(e,t,i=[]){var r={}.__proto__,s=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var o in e){let l=e[o],u,c;l!=null&&typeof l=="object"&&(l.__proto__===r||l.__proto__===s)&&(u=i.findIndex(d=>d.subject===l),u>-1?t[o]=i[u].copy:(c=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:c}),t[o]=this.deepClone(l,c,i)))}return t}}let ME=class Dd extends dt{constructor(e,t,i){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=i,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return typeof e=="string"?(e=document.querySelector(e),e||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)")):e===!0&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t?!0:t.parentNode?this._checkContainerIsParent(e,t.parentNode):!1}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),i=t?e.touches[0].pageX:e.pageX,r=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let s=Ze.elOffset(this.container);i-=s.left,r-=s.top}return{x:i,y:r}}elementPositionCoords(e,t="right"){var i=Ze.elOffset(e),r,s,o;switch(this.container!==document.body&&(r=Ze.elOffset(this.container),i.left-=r.left,i.top-=r.top),t){case"right":s=i.left+e.offsetWidth,o=i.top-1;break;case"bottom":s=i.left,o=i.top+e.offsetHeight;break;case"left":s=i.left,o=i.top-1;break;case"top":s=i.left,o=i.top;break;case"center":s=i.left+e.offsetWidth/2,o=i.top+e.offsetHeight/2;break}return{x:s,y:o,offset:i}}show(e,t){var i,r,s,o,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(s=e,l=this.elementPositionCoords(e,t),o=l.offset,i=l.x,r=l.y):typeof e=="number"?(o={top:0,left:0},i=e,r=t):(l=this.containerEventCoords(e),i=l.x,r=l.y,this.reversedX=!1),this.element.style.top=r+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,r,s,o,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",u=>{u.stopPropagation()}),this)}_fitToScreen(e,t,i,r,s){var o=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",i?this.element.style.right=this.container.offsetWidth-r.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let l=Math.max(this.container.offsetHeight,o?this.container.scrollHeight:0);if(t+this.element.offsetHeight>l)if(i)switch(s){case"bottom":this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight-i.offsetHeight-1+"px";break;default:this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+i.offsetHeight+1+"px"}else this.element.style.height=l+"px"}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout(()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)},100),this.blurCallback=e),this}_escapeCheck(e){e.keyCode==27&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(e){return this.childPopup&&this.childPopup.hide(),this.childPopup=new Dd(this.table,e,this),this.childPopup}};class Ve extends dt{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){typeof this.table[e]>"u"?this.table[e]=(...i)=>(this.table.initGuard(e),t(...i)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,i){return this.table.componentFunctionBinder.bind(e,t,i)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t=this.table.rowManager.displayRows.length-1,i;if(this._handler&&(i=this.table.rowManager.displayPipeline.findIndex(r=>r.handler===this._handler),i>-1&&(t=i)),e&&(t=t+e),this._handler)return t>-1?this.table.rowManager.getDisplayRows(t):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new ME(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var TE={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class br extends Ve{static moduleName="accessor";static accessors=TE;constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(r=>{var s="accessor"+(r.charAt(0).toUpperCase()+r.slice(1)),o;e.definition[s]&&(o=this.lookupAccessor(e.definition[s]),o&&(t=!0,i[s]={accessor:o,params:e.definition[s+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":br.accessors[e]?t=br.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t){var i="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.getComponent(),s=Ze.deepClone(e.data||{});return this.table.columnManager.traverse(function(o){var l,u,c,d;o.modules.accessor&&(u=o.modules.accessor[i]||o.modules.accessor.accessor||!1,u&&(l=o.getFieldValue(s),l!="undefined"&&(d=o.getComponent(),c=typeof u.params=="function"?u.params(l,s,t,d,r):u.params,o.setFieldValue(s,u.accessor(l,s,t,c,d,r)))))}),s}}var DE={method:"GET"};function Io(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Io(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Io(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function OE(n){var e=Io(n),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function qc(n,e,t){return n&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",n+=(n.includes("?")?"&":"?")+OE(t)),n}function LE(n,e,t){var i;return new Promise((r,s)=>{if(n=this.urlGenerator.call(this.table,n,e,t),e.method.toUpperCase()!="GET")if(i=typeof this.table.options.ajaxContentType=="object"?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType],i){for(var o in i.headers)e.headers||(e.headers={}),typeof e.headers[o]>"u"&&(e.headers[o]=i.headers[o]);e.body=i.body.call(this,n,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);n?(typeof e.headers>"u"&&(e.headers={}),typeof e.headers.Accept>"u"&&(e.headers.Accept="application/json"),typeof e.headers["X-Requested-With"]>"u"&&(e.headers["X-Requested-With"]="XMLHttpRequest"),typeof e.mode>"u"&&(e.mode="cors"),e.mode=="cors"?(typeof e.headers.Origin>"u"&&(e.headers.Origin=window.location.origin),typeof e.credentials>"u"&&(e.credentials="same-origin")):typeof e.credentials>"u"&&(e.credentials="include"),fetch(n,e).then(l=>{l.ok?l.json().then(u=>{r(u)}).catch(u=>{s(u),console.warn("Ajax Load Error - Invalid JSON returned",u)}):(console.error("Ajax Load Error - Connection Error: "+l.status,l.statusText),s(l))}).catch(l=>{console.error("Ajax Load Error - Connection Error: ",l),s(l)})):(console.warn("Ajax Load Error - No URL Set"),r([]))})}function Ho(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Ho(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Ho(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}var BE={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=Ho(t),r=new FormData;return i.forEach(function(s){r.append(s.key,s.value)}),r}}};class Ji extends Ve{static moduleName="ajax";static defaultConfig=DE;static defaultURLGenerator=qc;static defaultLoaderPromise=LE;static contentTypeFormatters=BE;constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",function(){}),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=Ji.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||Ji.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||Ji.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,i,r){var s=this.table.options.ajaxParams;return s&&(typeof s=="function"&&(s=s.call(this.table)),r=Object.assign(Object.assign({},s),r)),r}requestDataCheck(e,t,i,r){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,r,s){var o;return!s&&this.requestDataCheck(e)?(e&&this.setUrl(e),o=this.generateConfig(i),this.sendRequest(this.url,t,o)):s}setDefaultConfig(e={}){this.config=Object.assign({},Ji.defaultConfig),typeof e=="string"?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return typeof e=="string"?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,i){return this.table.options.ajaxRequesting.call(this.table,e,t)!==!1?this.loaderPromise(e,i,t).then(r=>(this.table.options.ajaxResponse&&(r=this.table.options.ajaxResponse.call(this.table,e,t,r)),r)):Promise.reject()}}var FE={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},_E={table:function(n){var e=[],t=!0,i=this.table.columnManager.columns,r=[],s=[];return n=n.split(`
|
|
31
|
+
`}}function F(){t.calendarContainer.classList.add("hasWeeks");var B=Je("div","flatpickr-weekwrapper");B.appendChild(Je("span","flatpickr-weekday",t.l10n.weekAbbreviation));var E=Je("div","flatpickr-weeks");return B.appendChild(E),{weekWrapper:B,weekNumbers:E}}function N(B,E){E===void 0&&(E=!0);var O=E?B:B-t.currentMonth;O<0&&t._hidePrevMonthArrow===!0||O>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=O,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Ge("onYearChange"),L()),R(),Ge("onMonthChange"),ze())}function Q(B,E){if(B===void 0&&(B=!0),E===void 0&&(E=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,E===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var O=_o(t.config),_=O.hours,G=O.minutes,re=O.seconds;h(_,G,re)}t.redraw(),B&&Ge("onChange")}function j(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),Ge("onClose")}function J(){t.config!==void 0&&Ge("onDestroy");for(var B=t._handlers.length;B--;)t._handlers[B].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var E=t.calendarContainer.parentNode;if(E.lastChild&&E.removeChild(E.lastChild),E.parentNode){for(;E.firstChild;)E.parentNode.insertBefore(E.firstChild,E);E.parentNode.removeChild(E)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(O){try{delete t[O]}catch{}})}function Z(B){return t.calendarContainer.contains(B)}function le(B){if(t.isOpen&&!t.config.inline){var E=St(B),O=Z(E),_=E===t.input||E===t.altInput||t.element.contains(E)||B.path&&B.path.indexOf&&(~B.path.indexOf(t.input)||~B.path.indexOf(t.altInput)),G=!_&&!O&&!Z(B.relatedTarget),re=!t.config.ignoredFocusElements.some(function(ce){return ce.contains(E)});G&&re&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&u(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function ue(B){if(!(!B||t.config.minDate&&B<t.config.minDate.getFullYear()||t.config.maxDate&&B>t.config.maxDate.getFullYear())){var E=B,O=t.currentYear!==E;t.currentYear=E||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),O&&(t.redraw(),Ge("onYearChange"),L())}}function Y(B,E){var O;E===void 0&&(E=!0);var _=t.parseDate(B,void 0,E);if(t.config.minDate&&_&&xt(_,t.config.minDate,E!==void 0?E:!t.minDateHasTime)<0||t.config.maxDate&&_&&xt(_,t.config.maxDate,E!==void 0?E:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(_===void 0)return!1;for(var G=!!t.config.enable,re=(O=t.config.enable)!==null&&O!==void 0?O:t.config.disable,ce=0,fe=void 0;ce<re.length;ce++){if(fe=re[ce],typeof fe=="function"&&fe(_))return G;if(fe instanceof Date&&_!==void 0&&fe.getTime()===_.getTime())return G;if(typeof fe=="string"){var pe=t.parseDate(fe,void 0,!0);return pe&&pe.getTime()===_.getTime()?G:!G}else if(typeof fe=="object"&&_!==void 0&&fe.from&&fe.to&&_.getTime()>=fe.from.getTime()&&_.getTime()<=fe.to.getTime())return G}return!G}function X(B){return t.daysContainer!==void 0?B.className.indexOf("hidden")===-1&&B.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(B):!1}function $(B){var E=B.target===t._input,O=t._input.value.trimEnd()!==Oe();E&&O&&!(B.relatedTarget&&Z(B.relatedTarget))&&t.setDate(t._input.value,!0,B.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function P(B){var E=St(B),O=t.config.wrap?n.contains(E):E===t._input,_=t.config.allowInput,G=t.isOpen&&(!_||!O),re=t.config.inline&&O&&!_;if(B.keyCode===13&&O){if(_)return t.setDate(t._input.value,!0,E===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),E.blur();t.open()}else if(Z(E)||G||re){var ce=!!t.timeContainer&&t.timeContainer.contains(E);switch(B.keyCode){case 13:ce?(B.preventDefault(),u(),ie()):me(B);break;case 27:B.preventDefault(),ie();break;case 8:case 46:O&&!t.config.allowInput&&(B.preventDefault(),t.clear());break;case 37:case 39:if(!ce&&!O){B.preventDefault();var fe=s();if(t.daysContainer!==void 0&&(_===!1||fe&&X(fe))){var pe=B.keyCode===39?1:-1;B.ctrlKey?(B.stopPropagation(),N(pe),b(y(1),0)):b(void 0,pe)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:B.preventDefault();var be=B.keyCode===40?1:-1;t.daysContainer&&E.$i!==void 0||E===t.input||E===t.altInput?B.ctrlKey?(B.stopPropagation(),ue(t.currentYear-be),b(y(1),0)):ce||b(void 0,be*7):E===t.currentYearElement?ue(t.currentYear-be):t.config.enableTime&&(!ce&&t.hourElement&&t.hourElement.focus(),u(B),t._debouncedChange());break;case 9:if(ce){var Ce=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function(Be){return Be}),De=Ce.indexOf(E);if(De!==-1){var We=Ce[De+(B.shiftKey?-1:1)];B.preventDefault(),(We||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(E)&&B.shiftKey&&(B.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&E===t.amPM)switch(B.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],f(),Re();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],f(),Re();break}(O||Z(E))&&Ge("onKeyDown",B)}function z(B,E){if(E===void 0&&(E="flatpickr-day"),!(t.selectedDates.length!==1||B&&(!B.classList.contains(E)||B.classList.contains("flatpickr-disabled")))){for(var O=B?B.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),_=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),G=Math.min(O,t.selectedDates[0].getTime()),re=Math.max(O,t.selectedDates[0].getTime()),ce=!1,fe=0,pe=0,be=G;be<re;be+=Ty.DAY)Y(new Date(be),!0)||(ce=ce||be>G&&be<re,be<_&&(!fe||be>fe)?fe=be:be>_&&(!pe||be<pe)&&(pe=be));var Ce=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+E));Ce.forEach(function(De){var We=De.dateObj,Be=We.getTime(),qe=fe>0&&Be<fe||pe>0&&Be>pe;if(qe){De.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Xe){De.classList.remove(Xe)});return}else if(ce&&!qe)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Xe){De.classList.remove(Xe)}),B!==void 0&&(B.classList.add(O<=t.selectedDates[0].getTime()?"startRange":"endRange"),_<O&&Be===_?De.classList.add("startRange"):_>O&&Be===_&&De.classList.add("endRange"),Be>=fe&&(pe===0||Be<=pe)&&Ry(Be,_,O)&&De.classList.add("inRange"))})}}function ne(){t.isOpen&&!t.config.static&&!t.config.inline&&_e()}function ae(B,E){if(E===void 0&&(E=t._positionElement),t.isMobile===!0){if(B){B.preventDefault();var O=St(B);O&&O.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),Ge("onOpen");return}else if(t._input.disabled||t.config.inline)return;var _=t.isOpen;t.isOpen=!0,_||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),Ge("onOpen"),_e(E)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(B===void 0||!t.timeContainer.contains(B.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function ye(B){return function(E){var O=t.config["_"+B+"Date"]=t.parseDate(E,t.config.dateFormat),_=t.config["_"+(B==="min"?"max":"min")+"Date"];O!==void 0&&(t[B==="min"?"minDateHasTime":"maxDateHasTime"]=O.getHours()>0||O.getMinutes()>0||O.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(G){return Y(G)}),!t.selectedDates.length&&B==="min"&&p(O),Re()),t.daysContainer&&(q(),O!==void 0?t.currentYearElement[B]=O.getFullYear().toString():t.currentYearElement.removeAttribute(B),t.currentYearElement.disabled=!!_&&O!==void 0&&_.getFullYear()===O.getFullYear())}}function we(){var B=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],E=ft(ft({},JSON.parse(JSON.stringify(n.dataset||{}))),e),O={};t.config.parseDate=E.parseDate,t.config.formatDate=E.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(Ce){t.config._enable=Se(Ce)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(Ce){t.config._disable=Se(Ce)}});var _=E.mode==="time";if(!E.dateFormat&&(E.enableTime||_)){var G=ot.defaultConfig.dateFormat||Qi.dateFormat;O.dateFormat=E.noCalendar||_?"H:i"+(E.enableSeconds?":S":""):G+" H:i"+(E.enableSeconds?":S":"")}if(E.altInput&&(E.enableTime||_)&&!E.altFormat){var re=ot.defaultConfig.altFormat||Qi.altFormat;O.altFormat=E.noCalendar||_?"h:i"+(E.enableSeconds?":S K":" K"):re+(" h:i"+(E.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:ye("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:ye("max")});var ce=function(Ce){return function(De){t.config[Ce==="min"?"_minTime":"_maxTime"]=t.parseDate(De,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:ce("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:ce("max")}),E.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,O,E);for(var fe=0;fe<B.length;fe++)t.config[B[fe]]=t.config[B[fe]]===!0||t.config[B[fe]]==="true";Do.filter(function(Ce){return t.config[Ce]!==void 0}).forEach(function(Ce){t.config[Ce]=Oo(t.config[Ce]||[]).map(o)}),t.isMobile=!t.config.disableMobile&&!t.config.inline&&t.config.mode==="single"&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var fe=0;fe<t.config.plugins.length;fe++){var pe=t.config.plugins[fe](t)||{};for(var be in pe)Do.indexOf(be)>-1?t.config[be]=Oo(pe[be]).map(o).concat(t.config[be]):typeof E[be]>"u"&&(t.config[be]=pe[be])}E.altInputClass||(t.config.altInputClass=xe().className+" "+t.config.altInputClass),Ge("onParseConfig")}function xe(){return t.config.wrap?n.querySelector("[data-input]"):n}function Fe(){typeof t.config.locale!="object"&&typeof ot.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=ft(ft({},ot.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?ot.l10ns[t.config.locale]:void 0),Ri.D="("+t.l10n.weekdays.shorthand.join("|")+")",Ri.l="("+t.l10n.weekdays.longhand.join("|")+")",Ri.M="("+t.l10n.months.shorthand.join("|")+")",Ri.F="("+t.l10n.months.longhand.join("|")+")",Ri.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var B=ft(ft({},e),JSON.parse(JSON.stringify(n.dataset||{})));B.time_24hr===void 0&&ot.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=Vc(t),t.parseDate=Bo({config:t.config,l10n:t.l10n})}function _e(B){if(typeof t.config.position=="function")return void t.config.position(t,B);if(t.calendarContainer!==void 0){Ge("onPreCalendarPosition");var E=B||t._positionElement,O=Array.prototype.reduce.call(t.calendarContainer.children,(function(Di,Ax){return Di+Ax.offsetHeight}),0),_=t.calendarContainer.offsetWidth,G=t.config.position.split(" "),re=G[0],ce=G.length>1?G[1]:null,fe=E.getBoundingClientRect(),pe=window.innerHeight-fe.bottom,be=re==="above"||re!=="below"&&pe<O&&fe.top>O,Ce=window.pageYOffset+fe.top+(be?-O-2:E.offsetHeight+2);if(gt(t.calendarContainer,"arrowTop",!be),gt(t.calendarContainer,"arrowBottom",be),!t.config.inline){var De=window.pageXOffset+fe.left,We=!1,Be=!1;ce==="center"?(De-=(_-fe.width)/2,We=!0):ce==="right"&&(De-=_-fe.width,Be=!0),gt(t.calendarContainer,"arrowLeft",!We&&!Be),gt(t.calendarContainer,"arrowCenter",We),gt(t.calendarContainer,"arrowRight",Be);var qe=window.document.body.offsetWidth-(window.pageXOffset+fe.right),Xe=De+_>window.document.body.offsetWidth,at=qe+_>window.document.body.offsetWidth;if(gt(t.calendarContainer,"rightMost",Xe),!t.config.static)if(t.calendarContainer.style.top=Ce+"px",!Xe)t.calendarContainer.style.left=De+"px",t.calendarContainer.style.right="auto";else if(!at)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=qe+"px";else{var nt=Ne();if(nt===void 0)return;var yi=window.document.body.offsetWidth,Ti=Math.max(0,yi/2-_/2),ci=".flatpickr-calendar.centerMost:before",jt=".flatpickr-calendar.centerMost:after",$t=nt.cssRules.length,Xi="{left:"+fe.left+"px;right:auto;}";gt(t.calendarContainer,"rightMost",!1),gt(t.calendarContainer,"centerMost",!0),nt.insertRule(ci+","+jt+Xi,$t),t.calendarContainer.style.left=Ti+"px",t.calendarContainer.style.right="auto"}}}}function Ne(){for(var B=null,E=0;E<document.styleSheets.length;E++){var O=document.styleSheets[E];if(O.cssRules){try{O.cssRules}catch{continue}B=O;break}}return B??de()}function de(){var B=document.createElement("style");return document.head.appendChild(B),B.sheet}function q(){t.config.noCalendar||t.isMobile||(L(),ze(),R())}function ie(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function me(B){B.preventDefault(),B.stopPropagation();var E=function(Ce){return Ce.classList&&Ce.classList.contains("flatpickr-day")&&!Ce.classList.contains("flatpickr-disabled")&&!Ce.classList.contains("notAllowed")},O=Hc(St(B),E);if(O!==void 0){var _=O,G=t.latestSelectedDateObj=new Date(_.dateObj.getTime()),re=(G.getMonth()<t.currentMonth||G.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=_,t.config.mode==="single")t.selectedDates=[G];else if(t.config.mode==="multiple"){var ce=se(G);ce?t.selectedDates.splice(parseInt(ce),1):t.selectedDates.push(G)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=G,t.selectedDates.push(G),xt(G,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(Ce,De){return Ce.getTime()-De.getTime()}));if(f(),re){var fe=t.currentYear!==G.getFullYear();t.currentYear=G.getFullYear(),t.currentMonth=G.getMonth(),fe&&(Ge("onYearChange"),L()),Ge("onMonthChange")}if(ze(),R(),Re(),!re&&t.config.mode!=="range"&&t.config.showMonths===1?x(_):t.selectedDateElem!==void 0&&t.hourElement===void 0&&t.selectedDateElem&&t.selectedDateElem.focus(),t.hourElement!==void 0&&t.hourElement!==void 0&&t.hourElement.focus(),t.config.closeOnSelect){var pe=t.config.mode==="single"&&!t.config.enableTime,be=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(pe||be)&&ie()}A()}}var he={locale:[Fe,K],showMonths:[W,l,V],minDate:[m],maxDate:[m],positionElement:[je],clickOpens:[function(){t.config.clickOpens===!0?(C(t._input,"focus",t.open),C(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function ke(B,E){if(B!==null&&typeof B=="object"){Object.assign(t.config,B);for(var O in B)he[O]!==void 0&&he[O].forEach(function(_){return _()})}else t.config[B]=E,he[B]!==void 0?he[B].forEach(function(_){return _()}):Do.indexOf(B)>-1&&(t.config[B]=Oo(E));t.redraw(),Re(!0)}function Me(B,E){var O=[];if(B instanceof Array)O=B.map(function(_){return t.parseDate(_,E)});else if(B instanceof Date||typeof B=="number")O=[t.parseDate(B,E)];else if(typeof B=="string")switch(t.config.mode){case"single":case"time":O=[t.parseDate(B,E)];break;case"multiple":O=B.split(t.config.conjunction).map(function(_){return t.parseDate(_,E)});break;case"range":O=B.split(t.l10n.rangeSeparator).map(function(_){return t.parseDate(_,E)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(B)));t.selectedDates=t.config.allowInvalidPreload?O:O.filter(function(_){return _ instanceof Date&&Y(_,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(_,G){return _.getTime()-G.getTime()})}function oe(B,E,O){if(E===void 0&&(E=!1),O===void 0&&(O=t.config.dateFormat),B!==0&&!B||B instanceof Array&&B.length===0)return t.clear(E);Me(B,O),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),m(void 0,E),p(),t.selectedDates.length===0&&t.clear(!1),Re(E),E&&Ge("onChange")}function Se(B){return B.slice().map(function(E){return typeof E=="string"||typeof E=="number"||E instanceof Date?t.parseDate(E,void 0,!0):E&&typeof E=="object"&&E.from&&E.to?{from:t.parseDate(E.from,void 0),to:t.parseDate(E.to,void 0)}:E}).filter(function(E){return E})}function Le(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var B=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);B&&Me(B,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),t.config.minTime!==void 0&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),t.config.maxTime!==void 0&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}function et(){if(t.input=xe(),!t.input){t.config.errorHandler(new Error("Invalid input element specified"));return}t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=Je(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),je()}function je(){t._positionElement=t.config.positionElement||t._input}function Rt(){var B=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=Je("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=B,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=B==="datetime-local"?"Y-m-d\\TH:i:S":B==="date"?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",t.altInput!==void 0&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch{}C(t.mobileInput,"change",function(E){t.setDate(St(E).value,!1,t.mobileFormatStr),Ge("onChange"),Ge("onClose")})}function At(B){if(t.isOpen===!0)return t.close();t.open(B)}function Ge(B,E){if(t.config!==void 0){var O=t.config[B];if(O!==void 0&&O.length>0)for(var _=0;O[_]&&_<O.length;_++)O[_](t.selectedDates,t.input.value,t,E);B==="onChange"&&(t.input.dispatchEvent(te("change")),t.input.dispatchEvent(te("input")))}}function te(B){var E=document.createEvent("Event");return E.initEvent(B,!0,!0),E}function se(B){for(var E=0;E<t.selectedDates.length;E++){var O=t.selectedDates[E];if(O instanceof Date&&xt(O,B)===0)return""+E}return!1}function Pe(B){return t.config.mode!=="range"||t.selectedDates.length<2?!1:xt(B,t.selectedDates[0])>=0&&xt(B,t.selectedDates[1])<=0}function ze(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(B,E){var O=new Date(t.currentYear,t.currentMonth,1);O.setMonth(t.currentMonth+E),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[E].textContent=gr(O.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=O.getMonth().toString(),B.value=O.getFullYear().toString()}),t._hidePrevMonthArrow=t.config.minDate!==void 0&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=t.config.maxDate!==void 0&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function Oe(B){var E=B||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(O){return t.formatDate(O,E)}).filter(function(O,_,G){return t.config.mode!=="range"||t.config.enableTime||G.indexOf(O)===_}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function Re(B){B===void 0&&(B=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=Oe(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=Oe(t.config.altFormat)),B!==!1&&Ge("onValueUpdate")}function ct(B){var E=St(B),O=t.prevMonthNav.contains(E),_=t.nextMonthNav.contains(E);O||_?N(O?-1:1):t.yearElements.indexOf(E)>=0?E.select():E.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):E.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function ge(B){B.preventDefault();var E=B.type==="keydown",O=St(B),_=O;t.amPM!==void 0&&O===t.amPM&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]);var G=parseFloat(_.getAttribute("min")),re=parseFloat(_.getAttribute("max")),ce=parseFloat(_.getAttribute("step")),fe=parseInt(_.value,10),pe=B.delta||(E?B.which===38?1:-1:0),be=fe+ce*pe;if(typeof _.value<"u"&&_.value.length===2){var Ce=_===t.hourElement,De=_===t.minuteElement;be<G?(be=re+be+Ft(!Ce)+(Ft(Ce)&&Ft(!t.amPM)),De&&g(void 0,-1,t.hourElement)):be>re&&(be=_===t.hourElement?be-re-Ft(!t.amPM):G,De&&g(void 0,1,t.hourElement)),t.amPM&&Ce&&(ce===1?be+fe===23:Math.abs(be-fe)>ce)&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]),_.value=Ct(be)}}return r(),t}function Ki(n,e){for(var t=Array.prototype.slice.call(n).filter(function(o){return o instanceof HTMLElement}),i=[],r=0;r<t.length;r++){var s=t[r];try{if(s.getAttribute("data-fp-omit")!==null)continue;s._flatpickr!==void 0&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=Oy(s,e||{}),i.push(s._flatpickr)}catch(o){console.error(o)}}return i.length===1?i[0]:i}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return Ki(this,n)},HTMLElement.prototype.flatpickr=function(n){return Ki([this],n)});var ot=function(n,e){return typeof n=="string"?Ki(window.document.querySelectorAll(n),e):n instanceof Node?Ki([n],e):Ki(n,e)};ot.defaultConfig={},ot.l10ns={en:ft({},wn),default:ft({},wn)},ot.localize=function(n){ot.l10ns.default=ft(ft({},ot.l10ns.default),n)},ot.setDefaults=function(n){ot.defaultConfig=ft(ft({},ot.defaultConfig),n)},ot.parseDate=Bo({}),ot.formatDate=Vc({}),ot.compareDates=xt,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Ki(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=ot);var An={exports:{}},Ly=An.exports,jc;function By(){return jc||(jc=1,(function(n,e){(function(t,i){i(e)})(Ly,(function(t){var i=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};i.l10ns.ru=r;var s=i.l10ns;t.Russian=r,t.default=s,Object.defineProperty(t,"__esModule",{value:!0})}))})(An,An.exports)),An.exports}var Fy=By();const _y=["value","id","name","disabled","required","placeholder"],Py=["title"],Ny=["title"],Iy=Ie(a.defineComponent({__name:"Flatpickr",props:{modelValue:{default:""},id:{default:"flatpickr-input"},error:{default:""},name:{default:"flatpickr"},placeholder:{default:"Выберите дату"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},config:{default:()=>({})},format:{default:"DD.MM.YYYY"},locale:{default:"ru"},resetTitle:{default:"Очистить"},calendarTitle:{default:"Выбрать дату"},allowInput:{type:Boolean,default:!0},enableTime:{type:Boolean,default:!1},time_24hr:{type:Boolean,default:!0},dateFormat:{default:"d.m.Y"},minDate:{default:void 0},maxDate:{default:void 0},defaultDate:{default:void 0},mode:{default:"single"}},emits:["update:modelValue","change","open","close","ready"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=a.ref(),o=a.ref(null),l=a.ref(!1),u=a.ref(""),c=a.ref([]),d=a.ref(!1),f=a.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean)||[]:typeof i.error=="string"&&i.error?[i.error]:[]),p=x=>{if(!x)return null;if(x instanceof Date&&!isNaN(x.getTime()))return x;const y=typeof x=="string"?x.trim():"";if(y){const S=C(y);if(S){const R=new Date(S);if(!isNaN(R.getTime()))return R}const b=ot.parseDate?.(y,i.dateFormat);if(b&&!isNaN(b.getTime()))return b;const T=new Date(y);if(!isNaN(T.getTime()))return T}return null},h=x=>{const y=x instanceof Date?x:p(x);if(!y)return"";const S=String(y.getDate()).padStart(2,"0"),b=String(y.getMonth()+1).padStart(2,"0"),T=y.getFullYear();return i.format==="MM/DD/YYYY"?`${b}/${S}/${T}`:i.format==="YYYY-MM-DD"?`${T}-${b}-${S}`:`${S}.${b}.${T}`},k=x=>{const y=x instanceof Date?x:p(x);if(!y)return"";const S=String(y.getDate()).padStart(2,"0"),b=String(y.getMonth()+1).padStart(2,"0");return`${y.getFullYear()}-${b}-${S}`},C=x=>{if(!x)return"";const y=x.trim(),S=ot.parseDate?.(y,i.dateFormat);if(S&&!isNaN(S.getTime())){const b=S.getFullYear(),T=String(S.getMonth()+1).padStart(2,"0"),R=String(S.getDate()).padStart(2,"0");return`${b}-${T}-${R}`}if(/^\d{4}-\d{2}-\d{2}/.test(y))return y;if(i.format==="MM/DD/YYYY"){const[b,T,R]=y.split("/");if(b&&T&&R)return`${R}-${b.padStart(2,"0")}-${T.padStart(2,"0")}`}if(i.format==="YYYY-MM-DD")return y;if(i.format==="DD.MM.YYYY"){const[b,T,R]=y.split(".");if(b&&T&&R)return`${R}-${T.padStart(2,"0")}-${b.padStart(2,"0")}`}return y},A=x=>x?Array.isArray(x)?x:[x]:[],w=(x,y)=>{const S=A(x),b=S.map(R=>h(R)).filter(Boolean);if(u.value=b.join(", "),l.value=b.length>0,!y?._input)return;if(!b.length){y.clear?.(),y._input.value="";return}const T=S.map(R=>p(R)).filter(R=>!!R);if(!T.length){y.clear?.(),y._input.value=u.value;return}y.setDate?.(T,!1),y._input.value=u.value,(i.mode==="range"||i.mode==="multiple")&&(c.value=y.selectedDates||T)},m=()=>{if(!s.value)return;const x={locale:i.locale==="ru"?Fy.Russian:void 0,allowInput:i.allowInput,enableTime:i.enableTime,time_24hr:i.time_24hr,dateFormat:i.dateFormat,mode:i.mode,wrap:!0,onClose:(y,S,b)=>{const T=y.length>0;if(c.value=y,!T)return D({instance:b}),!1;if(i.mode==="range"||i.mode==="multiple"){const R=y.map(W=>k(W)),L=Array.isArray(i.modelValue)?i.modelValue:[];if(L.length===R.length&&L.every((W,U)=>W===R[U]))return!1}else{const R=k(y[0]);if(!(i.modelValue!==R))return!1}if(d.value=!0,i.mode==="range"||i.mode==="multiple"){const R=y.map(L=>h(L));u.value=R.join(", "),l.value=R.length>0}else u.value=S,l.value=S.length>0;a.nextTick(()=>{if(i.mode==="multiple"){const R=y.map(L=>k(L));r("update:modelValue",R)}else if(i.mode==="range"){const R=y.map(L=>k(L));r("update:modelValue",R)}else{const R=k(y[0]);r("update:modelValue",R)}r("change",y.map(R=>R.toISOString()),S,b),a.nextTick(()=>{d.value=!1})})},onOpen:y=>{r("open",y)},onReady:y=>{r("ready",y)},...i.config};i.minDate&&i.minDate&&(x.minDate=i.minDate),i.maxDate&&(x.maxDate=i.maxDate),i.defaultDate&&(x.defaultDate=i.defaultDate),o.value=ot(s.value,x),D({instance:o.value})},D=({instance:x})=>{w(i.modelValue,x)},g=()=>{if(i.disabled||!o.value)return;o.value.clear(),o.value._input.value="";const x=i.mode==="range"||i.mode==="multiple"?[]:"";u.value="",l.value=!1,c.value=[],r("update:modelValue",x),r("change",[],"",o.value),w(x,o.value)},M=x=>{const y=x.target;u.value=y.value},v=()=>{if(i.mode==="range"||i.mode==="multiple"){if(o.value?.isOpen)return;if((o.value?.selectedDates||[]).length===0&&c.value.length>0){const y=c.value.map(T=>k(T)),S=Array.isArray(i.modelValue)?i.modelValue:[];S.length===y.length&&S.every((T,R)=>T===y[R])||r("update:modelValue",y)}return}if(i.mode==="single"&&u.value){const x=C(u.value);x&&r("update:modelValue",x)}};return a.watch(()=>i.modelValue,x=>{d.value||w(x,o.value)},{deep:!0}),a.watch(()=>i.disabled,x=>{o.value?._input&&(o.value._input.disabled=x)}),a.onMounted(()=>{m()}),a.onBeforeUnmount(()=>{o.value&&o.value.destroy()}),e({datapicker:o}),(x,y)=>(a.openBlock(),a.createElementBlock("div",{style:{position:"relative"},ref_key:"input",ref:s},[a.createElementVNode("div",{class:a.normalizeClass({"not-valid":f.value.length})},[a.createElementVNode("input",{type:"text",class:"form-control flatpickr",value:u.value,id:x.id,name:x.name,disabled:x.disabled,required:x.required,placeholder:x.placeholder,autocomplete:"off","data-input":"",onInput:M,onBlur:v},null,40,_y)],2),l.value&&!x.disabled?(a.openBlock(),a.createElementBlock("a",{key:0,class:"remove-button text-dark",onClick:g,style:{position:"absolute",right:"40px",top:"8px","font-size":"16px",cursor:"pointer"},"data-toggle":"",title:x.resetTitle},[...y[0]||(y[0]=[a.createElementVNode("i",{class:"bi bi-x-lg"},null,-1)])],8,Py)):a.createCommentVNode("",!0),a.createElementVNode("a",{class:"remove-button text-dark",style:{position:"absolute",right:"10px",top:"4px","font-size":"20px",cursor:"pointer"},"data-toggle":"",title:x.calendarTitle},[...y[1]||(y[1]=[a.createElementVNode("i",{class:"bi bi-calendar3"},null,-1)])],8,Ny),a.createVNode(ki,{errors:f.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-a8bbc430"]]);function Hy(n={}){const{placeholder:e="Поиск...",searchHint:t="Введите минимум 3 символа",searchTypes:i=[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}],defaultSearchType:r="partial",minSearchLength:s=3}=n,o=a.ref(""),l=a.ref([]),u=a.ref(!1),c=a.ref(r),d=a.ref(!1),f=a.ref(!1),p=a.computed(()=>o.value&&o.value.length>0&&o.value.length<s?`Введите минимум ${s} символа`:t),h=a.computed(()=>i);return{search:o,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:v=>{o.value=v||"",v&&v.length>=s},onSelect:v=>{},clearSearch:()=>{o.value="",l.value=[]},toggleSettings:()=>{d.value=!d.value},hideSettings:()=>{d.value=!1},setOptions:v=>{l.value=v},setLoading:v=>{u.value=v},setGlobalLoading:v=>{f.value=v}}}const Vy=["disabled"],zy={key:1,class:"bi bi-three-dots-vertical"},jy=Ie(a.defineComponent({__name:"HeaderSearchForm",props:{placeholder:{default:"Поиск..."},searchHint:{default:"Введите минимум 3 символа"},searchTypes:{default:()=>[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}]},defaultSearchType:{default:"partial"},minSearchLength:{default:3},searchTypeName:{default:"searchType"},options:{default:()=>[]},isLoading:{type:Boolean,default:!1},isSearchLoading:{type:Boolean,default:!1}},emits:["search","select","searchTypeChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={placeholder:i.placeholder,searchHint:i.searchHint,searchTypes:i.searchTypes,defaultSearchType:i.defaultSearchType,minSearchLength:i.minSearchLength},{search:o,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:k,onSelect:C,clearSearch:A,toggleSettings:w,hideSettings:m}=Hy(s),D=a.ref();a.computed(()=>i.options.length>0?i.options:l.value),a.computed(()=>i.isSearchLoading||u.value),a.computed(()=>i.isLoading||f.value);const g=S=>{const b=S||"";k(b),r("search",b,c.value)},M=S=>{C(S),r("select",S)},v=a.computed(()=>i.searchTypeName);a.watch(c,S=>{r("searchTypeChange",S),m()});const x=S=>{const b=S.target;y.value?.contains(b)||m()},y=a.ref();return a.onMounted(()=>{document.addEventListener("click",x)}),a.onUnmounted(()=>{document.removeEventListener("click",x)}),e({clearSearch:A,setOptions:S=>{l.value=S},setLoading:S=>{u.value=S},setGlobalLoading:S=>{f.value=S},focus:()=>{D.value?.$el?.querySelector("input")?.focus()}}),(S,b)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapperRef",ref:y,class:"position-relative d-flex align-items-center rounded search-select-wrapper"},[(a.openBlock(),a.createBlock(Vt,{ref_key:"selectRef",ref:D,key:a.unref(c),classes:["border-0","outline-none"],style:{maxWidth:"500px",minWidth:"500px"},modelValue:a.unref(o),"onUpdate:modelValue":[b[0]||(b[0]=T=>a.isRef(o)?o.value=T:null),M],reduce:T=>T,options:S.options,placeholder:S.placeholder,onSearch:g,onBlur:a.unref(A),onFocus:a.unref(m),isLoading:S.isSearchLoading,hint:a.unref(p)},null,8,["modelValue","reduce","options","placeholder","onBlur","onFocus","isLoading","hint"])),a.createElementVNode("button",{class:"btn btn-light px-2",onClick:b[1]||(b[1]=(...T)=>a.unref(w)&&a.unref(w)(...T)),disabled:S.isLoading},[S.isLoading?(a.openBlock(),a.createBlock(Lr,{key:0,isSmall:!0})):(a.openBlock(),a.createElementBlock("i",zy))],8,Vy),a.unref(d)?(a.openBlock(),a.createElementBlock("ul",{key:0,class:"position-absolute setting-list",onClick:b[3]||(b[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(h),T=>(a.openBlock(),a.createElementBlock("li",{key:T.value,class:"setting-item"},[a.createVNode(Nc,{name:v.value,label:T.label,modelValue:a.unref(c),"onUpdate:modelValue":b[2]||(b[2]=R=>a.isRef(c)?c.value=R:null),type:"radio",group:v.value,trueValue:T.value},null,8,["name","label","modelValue","group","trueValue"])]))),128))])):a.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-060eb2dc"]]);function Wy(n={}){const{loadCountries:e,loadRegions:t,loadDistricts:i,loadLocalities:r,loadStreets:s,countryKey:o="country_id",regionKey:l="region_id",districtKey:u="district_id",localityKey:c="locality_id",streetKey:d="street_id",houseKey:f="house",buildingKey:p="building",apartmentKey:h="apartment",countryLabel:k="Страна",regionLabel:C="Регион",districtLabel:A="Район",localityLabel:w="Населенный пункт",streetLabel:m="Улица",houseLabel:D="Дом",buildingLabel:g="Корпус",apartmentLabel:M="Квартира",columnWidth:v="12",prefix:x="",multiLocalities:y=!1,multiStreets:S=!1,showHouseFields:b=!0}=n,T=a.ref(!1),R=a.ref({}),L=a.ref(!1),I=a.ref(!1),W=a.ref(!1),U=a.ref(!1),H=a.ref(!1),V=a.ref(!1),K=a.ref([]),F=a.ref([]),N=a.ref([]),Q=a.ref([]),j=a.ref([]),J=a.computed(()=>`${x}${o}`),Z=a.computed(()=>`${x}${l}`),le=a.computed(()=>`${x}${u}`),ue=a.computed(()=>`${x}${c}`),Y=a.computed(()=>`${x}${d}`),X=a.computed(()=>`${x}${f}`),$=a.computed(()=>`${x}${p}`),P=a.computed(()=>`${x}${h}`),z=a.computed(()=>({country:k,region:C,district:A,locality:w,street:m,house:D,building:g,apartment:M})),ne=async()=>{if(e){I.value=!0;try{K.value=await e()}finally{I.value=!1}}},ae=async ge=>{if(t){W.value=!0;try{F.value=await t(ge)}finally{W.value=!1}}},ye=async ge=>{if(i){U.value=!0;try{N.value=await i(ge)}finally{U.value=!1}}},we=async ge=>{if(r){H.value=!0;try{Q.value=await r(ge)}finally{H.value=!1}}},xe=async ge=>{if(s){V.value=!0;try{j.value=await s(ge)}finally{V.value=!1}}},Fe=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[J.value]:ge};R.value=O;return}const E={...R.value,[J.value]:ge,[Z.value]:null,[le.value]:null,[ue.value]:null,[Y.value]:null,[X.value]:null,[$.value]:null,[P.value]:null};R.value=E,F.value=[],N.value=[],Q.value=[],j.value=[]},_e=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[Z.value]:ge};R.value=O;return}const E={...R.value,[Z.value]:ge,[le.value]:null,[ue.value]:null,[Y.value]:null,[X.value]:null,[$.value]:null,[P.value]:null};R.value=E,N.value=[],Q.value=[],j.value=[]},Ne=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[le.value]:ge};R.value=O;return}const E={...R.value,[le.value]:ge,[ue.value]:null,[Y.value]:null,[X.value]:null,[$.value]:null,[P.value]:null};R.value=E},de=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[ue.value]:ge};R.value=O;return}const E={...R.value,[ue.value]:ge,[Y.value]:null,[X.value]:null,[$.value]:null,[P.value]:null};R.value=E,j.value=[]},q=async ge=>{T.value||(Fe(ge),ge&&await ae(ge))},ie=async ge=>{T.value||(_e(ge),ge&&(await ye(ge),await we(ge)))},me=async ge=>{if(!T.value){if(Ne(ge),!ge){const B=R.value[Z.value];B&&await ie(B);return}await we(ge)}},he=async ge=>{T.value||(de(ge),ge&&await xe(ge))},ke=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[Y.value]:ge};R.value=O;return}const E={...R.value,[Y.value]:ge,[X.value]:null,[$.value]:null,[P.value]:null};R.value=E},Me=ge=>{const B=ge.target,E={...R.value,[X.value]:B.value};R.value=E},oe=ge=>{const B=ge.target,E={...R.value,[$.value]:B.value};R.value=E},Se=ge=>{const B=ge.target,E={...R.value,[P.value]:B.value};R.value=E},Le=async(ge,B)=>{Object.assign(R.value,ge)},et=async(ge,B)=>{T.value=!0;const E=ge[J.value],O=ge[Z.value],_=ge[le.value],G=ge[ue.value];ge[Y.value];try{e&&await ne(),t&&(O||E||B)&&await ae(E||B),i&&O&&await ye(O),r&&_?await we(_):r&&O&&await we(O),s&&G&&await xe(G),Object.assign(R.value,ge)}catch(re){console.error("❌ Error during auto-fill (skip reset mode):",re)}finally{a.nextTick(()=>{T.value=!1})}},je=a.computed(()=>{const ge=R.value[J.value];return ge&&K.value.find(E=>String(E.id)===String(ge))?.label||""}),Rt=a.computed(()=>{const ge=R.value[Z.value];return ge&&F.value.find(E=>String(E.id)===String(ge))?.label||""}),At=a.computed(()=>{const ge=R.value[le.value];return ge&&N.value.find(B=>String(B.id)===String(ge))?.label||""}),Ge=a.computed(()=>{const ge=R.value[ue.value];return ge&&Q.value.find(B=>String(B.id)===String(ge))?.label||""}),te=a.computed(()=>{const ge=R.value[Y.value];return ge&&j.value.find(E=>String(E.id)===String(ge))?.label||""}),se=a.computed(()=>{const ge=R.value[X.value];return ge?`${D} ${ge}`:""}),Pe=a.computed(()=>{const ge=R.value[$.value];return ge?`${g} ${ge}`:""}),ze=a.computed(()=>{const ge=R.value[P.value];return ge?`${M} ${ge}`:""}),Oe=a.computed(()=>[je.value,Rt.value,At.value,Ge.value,te.value,se.value,Pe.value,ze.value].filter(Boolean).join(", ")),Re=a.computed(()=>{const ge=R.value[ue.value];return Array.isArray(ge)?ge.length>1:!1}),ct=a.computed(()=>S?!1:b);return{modelValue:R,isLoading:L,isCountryLoading:I,isRegionLoading:W,isDistrictLoading:U,isLocalityLoading:H,isStreetLoading:V,countryOptions:K,regionOptions:F,districtOptions:N,localityOptions:Q,streetOptions:j,finalCountryKey:J,finalRegionKey:Z,finalDistrictKey:le,finalLocalityKey:ue,finalStreetKey:Y,finalHouseKey:X,finalBuildingKey:$,finalApartmentKey:P,labels:z,selectedCountryLabel:je,selectedRegionLabel:Rt,selectedDistrictLabel:At,selectedLocalityLabel:Ge,selectedStreetLabel:te,selectedHouseLabel:se,selectedBuildingLabel:Pe,selectedApartmentLabel:ze,fullAddress:Oe,isMultiLocalitiesSelected:Re,shouldShowHouseFields:ct,loadCountryOptions:ne,loadRegionOptions:ae,loadDistrictOptions:ye,loadLocalityOptions:we,loadStreetOptions:xe,onCountrySelect:q,onRegionSelect:ie,onDistrictSelect:me,onLocalitySelect:he,onStreetSelect:ke,onHouseInput:Me,onBuildingInput:oe,onApartmentInput:Se,resetFieldsByCountry:Fe,resetFieldsByRegion:_e,resetFieldsByDistrict:Ne,resetFieldsByLocality:de,autoFillForm:Le,autoFillFormSkipReset:et}}const Uy={class:"address-form"},Gy={class:"row"},Yy={class:"form-label"},Qy={class:"form-label"},Ky={class:"form-label"},Jy={class:"form-label"},qy={class:"form-label"},$y={class:"form-label"},Zy=["value","disabled"],Xy={class:"form-label"},ew=["value","disabled"],tw={class:"form-label"},iw=["value","disabled"],nw={key:0,class:"mt-3"},rw={class:"alert alert-info"},sw=Ie(a.defineComponent({__name:"AddressForm",props:{modelValue:{default:()=>({})},loadCountries:{},loadRegions:{},loadDistricts:{},loadLocalities:{},loadStreets:{},countryKey:{default:"country_id"},regionKey:{default:"region_id"},districtKey:{default:"district_id"},localityKey:{default:"locality_id"},streetKey:{default:"street_id"},houseKey:{default:"house"},buildingKey:{default:"building"},apartmentKey:{default:"apartment"},countryLabel:{default:"Страна"},regionLabel:{default:"Регион"},districtLabel:{default:"Район"},localityLabel:{default:"Населенный пункт"},streetLabel:{default:"Улица"},houseLabel:{default:"Дом"},buildingLabel:{default:"Корпус"},apartmentLabel:{default:"Квартира"},columnWidth:{default:"12"},prefix:{default:""},multiLocalities:{type:Boolean,default:!1},multiStreets:{type:Boolean,default:!1},showHouseFields:{type:Boolean,default:!0},showFullAddress:{type:Boolean,default:!1},disabledFields:{default:()=>({})},allowClear:{default:()=>({})},countryId:{default:void 0},setFilterParamsStringsHandler:{type:Function,default:void 0},filterName:{default:"address"},isParentComponentReady:{type:Boolean,default:!0}},emits:["update:modelValue","change","countryChange","regionChange","districtChange","localityChange","streetChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={loadCountries:i.loadCountries,loadRegions:i.loadRegions,loadDistricts:i.loadDistricts,loadLocalities:i.loadLocalities,loadStreets:i.loadStreets,countryKey:i.countryKey,regionKey:i.regionKey,districtKey:i.districtKey,localityKey:i.localityKey,streetKey:i.streetKey,houseKey:i.houseKey,buildingKey:i.buildingKey,apartmentKey:i.apartmentKey,countryLabel:i.countryLabel,regionLabel:i.regionLabel,districtLabel:i.districtLabel,localityLabel:i.localityLabel,streetLabel:i.streetLabel,houseLabel:i.houseLabel,buildingLabel:i.buildingLabel,apartmentLabel:i.apartmentLabel,columnWidth:i.columnWidth,prefix:i.prefix,multiLocalities:i.multiLocalities,multiStreets:i.multiStreets,showHouseFields:i.showHouseFields},{modelValue:o,isCountryLoading:l,isRegionLoading:u,isDistrictLoading:c,isLocalityLoading:d,isStreetLoading:f,countryOptions:p,regionOptions:h,districtOptions:k,localityOptions:C,streetOptions:A,finalCountryKey:w,finalRegionKey:m,finalDistrictKey:D,finalLocalityKey:g,finalStreetKey:M,finalHouseKey:v,finalBuildingKey:x,finalApartmentKey:y,labels:S,selectedCountryLabel:b,selectedRegionLabel:T,selectedDistrictLabel:R,selectedLocalityLabel:L,selectedStreetLabel:I,selectedHouseLabel:W,selectedBuildingLabel:U,selectedApartmentLabel:H,fullAddress:V,isMultiLocalitiesSelected:K,shouldShowHouseFields:F,loadCountryOptions:N,loadRegionOptions:Q,onCountrySelect:j,onRegionSelect:J,onDistrictSelect:Z,onLocalitySelect:le,onStreetSelect:ue,onHouseInput:Y,onBuildingInput:X,onApartmentInput:$,autoFillForm:P,autoFillFormSkipReset:z}=Wy(s);let ne=!1,ae=!1,ye=!1;const we=(oe,Se)=>{if(oe===Se)return!0;if(!oe||!Se||typeof oe!="object"||typeof Se!="object")return!1;const Le=Object.keys(oe),et=Object.keys(Se);if(Le.length!==et.length)return!1;for(const je of Le)if(oe[je]!==Se[je])return!1;return!0};a.watch(()=>i.modelValue,async oe=>{if(ne||ae||ye||we(o.value,oe))return;if(oe&&(oe[w.value]||oe[m.value]||oe[D.value]||oe[g.value]||oe[M.value])){if(!ae){ae=!0;try{await z(oe,i.countryId)}catch(Le){console.error("❌ Error during auto-fill:",Le)}finally{ae=!1}}}else o.value={...oe}},{immediate:!0,deep:!0}),a.watch(o,oe=>{ye||ae||we(i.modelValue,oe)||(ne=!0,ye=!0,r("update:modelValue",{...oe}),r("change",{...oe}),a.nextTick(()=>{ne=!1,ye=!1}))},{deep:!0});let xe=!1;a.watch(()=>i.countryId,async(oe,Se)=>{if(!xe&&!ae&&oe!=null&&i.loadRegions){if(oe!==Se){const Le={...o.value,[m.value]:null,[D.value]:null,[g.value]:null,[M.value]:null,[v.value]:null,[x.value]:null,[y.value]:null};o.value=Le}try{xe=!0,await Q(oe)}catch(Le){console.error("❌ AddressForm: Error loading regions",Le)}finally{xe=!1}}},{immediate:!0});const Fe=async oe=>{await j(oe),r("countryChange",oe)},_e=async oe=>{await J(oe),r("regionChange",oe)},Ne=async oe=>{await Z(oe),r("districtChange",oe)},de=async oe=>{await le(oe),r("localityChange",oe)},q=oe=>{ue(oe),r("streetChange",oe)},ie=oe=>{Y(oe)},me=oe=>{X(oe)},he=oe=>{$(oe)},ke=a.computed(()=>{if(!i.multiLocalities)return!1;const oe=o.value[M.value];return!Array.isArray(oe)||oe?.length<2});function Me(){return[b.value,T.value,R.value,L.value,I.value,W.value,U.value,H.value].filter(Boolean).join(", ")}return a.watch(()=>W.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>U.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>H.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>I.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>L.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>R.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>T.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>b.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.onMounted(async()=>{i.loadCountries&&await N()}),e({loadRegionOptions:Q,loadCountryOptions:N,resetForm:()=>{o.value={},p.value=[],h.value=[],k.value=[],C.value=[],A.value=[],r("update:modelValue",{}),i.loadCountries&&N()},getFullAddress:()=>V.value,getValue:()=>Me(),autoFillForm:async oe=>{ae=!0;try{await P(oe)}finally{ae=!1}},autoFillFormSkipReset:async oe=>{ae=!0;try{await z(oe,i.countryId)}finally{ae=!1}}}),(oe,Se)=>(a.openBlock(),a.createElementBlock("div",Uy,[a.createElementVNode("div",Gy,[oe.loadCountries?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Yy,a.toDisplayString(a.unref(S).country),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(w)],options:a.unref(p),disabled:oe.disabledFields?.country||a.unref(l),"onUpdate:modelValue":Fe,allowClear:oe.allowClear?.country,isLoading:a.unref(l)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Qy,a.toDisplayString(a.unref(S).region),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(m)],options:a.unref(h),disabled:oe.disabledFields?.region||a.unref(u),"onUpdate:modelValue":_e,allowClear:oe.allowClear?.region,isLoading:a.unref(u)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Ky,a.toDisplayString(a.unref(S).district),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(D)],disabled:oe.disabledFields?.district||a.unref(c),options:a.unref(k),"onUpdate:modelValue":Ne,allowClear:oe.allowClear?.district,isLoading:a.unref(c)},null,8,["modelValue","disabled","options","allowClear","isLoading"])],2),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Jy,a.toDisplayString(a.unref(S).locality),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(g)],disabled:oe.disabledFields?.locality||a.unref(d),"onUpdate:modelValue":de,options:a.unref(C),name:a.unref(g),showAddButton:ke.value,isLoading:a.unref(d),multiple:oe.multiLocalities},null,8,["modelValue","disabled","options","name","showAddButton","isLoading","multiple"])],2),a.unref(K)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",qy,a.toDisplayString(a.unref(S).street),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(M)],disabled:oe.disabledFields?.street||a.unref(f),options:a.unref(A),"onUpdate:modelValue":q,allowClear:oe.allowClear?.street,isLoading:a.unref(f),multiple:oe.multiStreets},null,8,["modelValue","disabled","options","allowClear","isLoading","multiple"])],2),a.unref(F)?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",$y,a.toDisplayString(a.unref(S).house),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(v)]||"",disabled:oe.disabledFields?.house,onInput:ie},null,40,Zy)],2)):a.createCommentVNode("",!0),a.unref(F)?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Xy,a.toDisplayString(a.unref(S).building),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(x)]||"",disabled:oe.disabledFields?.building,onInput:me},null,40,ew)],2)):a.createCommentVNode("",!0),a.unref(F)?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",tw,a.toDisplayString(a.unref(S).apartment),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(y)]||"",disabled:oe.disabledFields?.apartment,onInput:he},null,40,iw)],2)):a.createCommentVNode("",!0)],64))]),oe.showFullAddress&&a.unref(V)?(a.openBlock(),a.createElementBlock("div",nw,[a.createElementVNode("div",rw,[Se[0]||(Se[0]=a.createElementVNode("strong",null,"Полный адрес:",-1)),a.createTextVNode(" "+a.toDisplayString(a.unref(V)),1)])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-dfe07190"]]),aw={class:"age-from-to-form"},ow={class:"form-group"},lw={key:0,class:"form-label mb-2"},uw={class:"row align-items-center mb-2"},cw={key:0,class:"col-auto"},dw={class:"form-label mb-0"},hw={class:"col"},fw={class:"col"},pw={class:"row align-items-center mb-2"},mw={key:0,class:"col-auto"},gw={class:"form-label mb-0"},bw={class:"col"},vw={class:"col"},yw=Ie(a.defineComponent({__name:"AgeFromAgeTo",props:{modelValue:{default:null},title:{default:""},nameFrom:{default:"age_from"},nameTo:{default:"age_to"},placeholderFrom:{default:null},placeholderTo:{default:null},timeTypePlaceholder:{default:void 0},timeTypeOptions:{default:void 0},disabled:{type:Boolean,default:!1},onFilterUpdate:{type:Function,default:void 0}},emits:["update:modelValue","change"],setup(n,{expose:e,emit:t}){const i=[{id:1,label:"Дней",value:"days"},{id:2,label:"Недель",value:"weeks"},{id:3,label:"Месяцев",value:"months"},{id:4,label:"Лет",value:"years"}],r=n,s=t,o={age_from:null,age_to:null,time_type_from:null,time_type_to:null},l=a.ref({...o}),u=a.computed(()=>r.timeTypeOptions!==void 0&&r.timeTypeOptions!==null?r.timeTypeOptions:i),c=a.computed(()=>r.placeholderFrom??null),d=a.computed(()=>r.placeholderTo??null),f=a.computed(()=>{if(r.timeTypePlaceholder===null||r.timeTypePlaceholder===void 0){console.log("[AgeFromAgeTo] timeTypePlaceholder is null/undefined, placeholder disabled");return}return console.log("[AgeFromAgeTo] timeTypePlaceholder:",r.timeTypePlaceholder),r.timeTypePlaceholder}),p=a.computed(()=>{const m=l.value.age_from;if(!m)return null;const D=l.value.time_type_from,g=u.value.find(({id:M})=>Number(M)===Number(D))?.label;return g?`${m} ${g}`:null}),h=a.computed(()=>{const m=l.value.age_to;if(!m)return null;const D=l.value.time_type_to,g=u.value.find(({id:M})=>Number(M)===Number(D))?.label;return g?`${m} ${g}`:null}),k=()=>{l.value={...o}},C=()=>{r.onFilterUpdate&&(r.onFilterUpdate(r.nameFrom,p.value),r.onFilterUpdate(r.nameTo,h.value))},A=m=>{if(!m.age_from&&!m.age_to&&!m.time_type_from&&!m.time_type_to){s("update:modelValue",null),s("change",{...o}),C();return}const g=[];m.age_from&&m.time_type_from&&g.push(`age_from[time_type]=${m.time_type_from}&age_from[value]=${m.age_from}`),m.age_to&&m.time_type_to&&g.push(`age_to[time_type]=${m.time_type_to}&age_to[value]=${m.age_to}`);const M=g.length>0?g.join("&")+"&":"";s("update:modelValue",M||null),s("change",{...m}),C()},w=m=>{if(m)try{const D=new URLSearchParams(m),g=D.get("age_from[value]"),M=D.get("age_from[time_type]"),v=D.get("age_to[value]"),x=D.get("age_to[time_type]");l.value={age_from:g?Number(g):null,age_to:v?Number(v):null,time_type_from:M?Number(M):null,time_type_to:x?Number(x):null}}catch(D){console.warn("Error parsing query string:",D)}};return a.watch(()=>r.modelValue,(m,D)=>{m!==D&&(m===null?k():w(m))},{immediate:!0}),a.watch(()=>l.value,m=>{A(m)},{deep:!0}),a.onMounted(()=>{r.modelValue&&w(r.modelValue)}),e({reset:k,getFormData:()=>({age_from:l.value.age_from?Number(l.value.age_from):null,age_to:l.value.age_to?Number(l.value.age_to):null,time_type_from:l.value.time_type_from?Number(l.value.time_type_from):null,time_type_to:l.value.time_type_to?Number(l.value.time_type_to):null}),getFilterStrings:()=>({from:p.value,to:h.value})}),(m,D)=>(a.openBlock(),a.createElementBlock("div",aw,[a.createElementVNode("div",ow,[m.title?(a.openBlock(),a.createElementBlock("label",lw,a.toDisplayString(m.title),1)):a.createCommentVNode("",!0),a.createElementVNode("div",uw,[c.value?(a.openBlock(),a.createElementBlock("div",cw,[a.createElementVNode("label",dw,a.toDisplayString(c.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",hw,[a.createVNode(ur,{modelValue:l.value.age_from,"onUpdate:modelValue":D[0]||(D[0]=g=>l.value.age_from=g),name:m.nameFrom,maskOptions:{regex:"^[0-9]*$"},disabled:m.disabled},null,8,["modelValue","name","disabled"])]),a.createElementVNode("div",fw,[a.createVNode(Vt,{modelValue:l.value.time_type_from,"onUpdate:modelValue":D[1]||(D[1]=g=>l.value.time_type_from=g),name:`${m.nameFrom}_type`,multiple:!1,options:u.value,allowClear:!1,disabled:m.disabled,placeholder:f.value},null,8,["modelValue","name","options","disabled","placeholder"])])]),a.createElementVNode("div",pw,[d.value?(a.openBlock(),a.createElementBlock("div",mw,[a.createElementVNode("label",gw,a.toDisplayString(d.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",bw,[a.createVNode(ur,{modelValue:l.value.age_to,"onUpdate:modelValue":D[2]||(D[2]=g=>l.value.age_to=g),name:m.nameTo,maskOptions:{regex:"^[0-9]*$"},disabled:m.disabled},null,8,["modelValue","name","disabled"])]),a.createElementVNode("div",vw,[a.createVNode(Vt,{modelValue:l.value.time_type_to,"onUpdate:modelValue":D[3]||(D[3]=g=>l.value.time_type_to=g),name:`${m.nameTo}_type`,multiple:!1,options:u.value,allowClear:!1,disabled:m.disabled,placeholder:f.value},null,8,["modelValue","name","options","disabled","placeholder"])])])])]))}}),[["__scopeId","data-v-37fca95f"]]),ww={class:"modal-header pb-4 border-bottom-0"},Cw={key:0,class:"modal-title"},Aw={key:0,class:"modal-body pt-0"},Ew={class:"modal-body-content"},kw={key:1,class:"modal-footer row justify-content-start"},Sw={class:"modal-footer-content"},Wc=a.defineComponent({__name:"DefaultModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},scrollable:{type:Boolean,default:!0},centered:{type:Boolean,default:!0},size:{type:String,default:""},fullscreen:{type:Boolean,default:!1},style:{type:String,default:""},modalVisibility:{type:Boolean,default:!1}},emits:["update:modelValue","emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=a.useSlots(),s=()=>{i("update:modelValue",!1),i("emitModalVisibility",!1)},o=k=>{k.key==="Escape"&&s()},l=a.computed(()=>t.modelValue||t.modalVisibility);let u=0,c=!1;const d=()=>{if(u>0){document.body.style.overflow="hidden";return}document.body.style.overflow=""},f=()=>{c||(window.addEventListener("keydown",o),c=!0)},p=()=>{c&&(window.removeEventListener("keydown",o),c=!1)},h=(k,C)=>{if(k&&!C){u+=1,u===1&&f(),d();return}!k&&C&&(u=Math.max(0,u-1),u===0&&p(),d())};return a.watch(l,h,{immediate:!0}),a.onUnmounted(()=>{l.value&&(u=Math.max(0,u-1)),u===0&&p(),d()}),(k,C)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[n.modelValue||n.modalVisibility?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["r3ui-modal-wrapper",{"r3ui-modal-wrapper--fullscreen":n.fullscreen}])},[a.createElementVNode("div",{class:"overlay",onClick:s}),a.createElementVNode("div",{class:a.normalizeClass(["modal-dialog",{"modal-dialog-scrollable":n.scrollable,"modal-dialog-centered":n.centered&&!n.fullscreen,"modal-sm":n.size==="sm"&&!n.fullscreen,"modal-lg":n.size==="lg"&&!n.fullscreen,"modal-xl":n.size==="xl"&&!n.fullscreen}])},[a.createElementVNode("div",{class:"modal-content p-4",style:a.normalizeStyle(n.style)},[a.createElementVNode("div",ww,[n.title?(a.openBlock(),a.createElementBlock("h4",Cw,a.toDisplayString(n.title),1)):a.createCommentVNode("",!0),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:s})]),a.unref(r)["modal-body"]||a.unref(r).body?(a.openBlock(),a.createElementBlock("div",Aw,[a.createElementVNode("div",Ew,[a.renderSlot(k.$slots,"modal-body"),a.renderSlot(k.$slots,"body")])])):a.createCommentVNode("",!0),a.unref(r)["modal-footer"]||a.unref(r).footer?(a.openBlock(),a.createElementBlock("div",kw,[a.createElementVNode("div",Sw,[a.renderSlot(k.$slots,"modal-footer"),a.renderSlot(k.$slots,"footer")])])):a.createCommentVNode("",!0)],4)],2)],2)):a.createCommentVNode("",!0)]))}}),xw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCCZEvh2A2b1/f6WbT996+Jcn7vJvc38yd5d5sJsv77z333HPPvRfgcDgcDofD4XA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2rYF0QFlaLLnk2OQAnCQy8FHkwkxN9ANOqEcNc1bjhxapLQCDqln+HCj7eEfpuHM9YSxVFojH85BCcJrCKjyInJrydfQhiD81z1Tx0X1p1yYS0Gl4n9eENL1kdzN++J5iPQ3Vx5rIsVRQZa6vIYThVYJViilizrysfxspY/2w6hwTluNhiYD8KIBMukqWy4qv708gQhCQyyDOCVBTIVtAFQVWqyKHCJhs4mlqulAtKkW0u+BngFftIwB31Msy1ZL2oW6LfW1fWV7twehfdGXjQvmh5gHRmRO8EeOs4WV8R/drQGSG7SGaBWdS7nFC8FLlXol/0637U0fIaNAUCXoy+ovgpSQUVCAQCgUAgEAgEAoFAIBAIBAKBQCDgytcDGZ2xDzhdwgAAAABJRU5ErkJggg==",Dw={class:"row mb-3 flex-column mx-0"},Ow={class:"col-auto mb-3"},Lw={class:"image-container",style:{width:"90px",height:"90px"}},Bw=["src","alt"],Fw=["src"],_w=["src"],Pw=["src"],Nw=["src"],Iw={class:"col"},Hw={class:"confirmation-content"},Vw={key:0,class:"mb-3"},zw={key:1,class:"text-muted"},jw={key:0,class:"row"},Ww={class:"col-auto"},Uw=["disabled"],Gw={class:"col"},Yw=["disabled"],Qw={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Kw=Ie(a.defineComponent({__name:"ConfirmationModal",props:{title:{default:""},message:{default:""},description:{default:""},modalVisibility:{type:Boolean,default:!1},size:{default:""},confirmText:{default:"Да"},cancelText:{default:"Нет"},imageSrc:{default:""},imageAlt:{default:""},loading:{type:Boolean,default:!1},mode:{default:"confirmation"},showButtons:{type:Boolean,default:!0}},emits:["update:modalVisibility","confirm","cancel"],setup(n,{emit:e}){const t=n,i=e,r=d=>{i("update:modalVisibility",d)},s=()=>{switch(t.mode){case"success":return"btn btn-success";case"warning":return"btn btn-warning";case"error":return"btn btn-danger";default:return"btn btn-primary"}},o=()=>{switch(t.mode){case"success":return"Отлично";case"warning":return"Понятно";case"error":return"Понятно";default:return t.confirmText}},l=()=>{t.loading||i("confirm")},u=()=>{t.loading||(i("cancel"),i("update:modalVisibility",!1))},c=d=>{console.warn("Failed to load image:",d.target.src)};return(d,f)=>(a.openBlock(),a.createBlock(Wc,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":a.withCtx(()=>[a.createElementVNode("div",Dw,[a.createElementVNode("div",Ow,[a.createElementVNode("div",Lw,[d.imageSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,Bw)):d.mode==="success"?(a.openBlock(),a.createElementBlock("img",{key:1,class:"w-100",src:a.unref(Tw),alt:"Успех",onError:c},null,40,Fw)):d.mode==="warning"?(a.openBlock(),a.createElementBlock("img",{key:2,class:"w-100",src:a.unref(Mw),alt:"Предупреждение",onError:c},null,40,_w)):d.mode==="error"?(a.openBlock(),a.createElementBlock("img",{key:3,class:"w-100",src:a.unref(Rw),alt:"Ошибка",onError:c},null,40,Pw)):(a.openBlock(),a.createElementBlock("img",{key:4,class:"w-100",src:a.unref(xw),alt:"Подтверждение",onError:c},null,40,Nw))])]),a.createElementVNode("div",Iw,[a.createElementVNode("div",Hw,[d.message?(a.openBlock(),a.createElementBlock("h5",Vw,a.toDisplayString(d.message),1)):a.createCommentVNode("",!0),d.description?(a.openBlock(),a.createElementBlock("p",zw,a.toDisplayString(d.description),1)):a.createCommentVNode("",!0)])])]),a.renderSlot(d.$slots,"modal-body",{},void 0,!0)]),"modal-footer":a.withCtx(()=>[a.renderSlot(d.$slots,"modal-footer",{},()=>[d.showButtons?(a.openBlock(),a.createElementBlock("div",jw,[a.createElementVNode("div",Ww,[d.mode==="confirmation"?(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-light",onClick:u,disabled:d.loading},a.toDisplayString(d.cancelText),9,Uw)):a.createCommentVNode("",!0)]),a.createElementVNode("div",Gw,[a.createElementVNode("button",{class:a.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(a.openBlock(),a.createElementBlock("span",Qw)):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o()),1)],10,Yw)])])):a.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-d29a06ff"]]),Jw={key:0,class:"filter-modal-wrapper"},qw={class:"filter-modal-dialog"},$w={class:"filter-modal-content"},Zw={class:"filter-modal-header"},Xw={key:0,class:"filter-modal-title"},eC={class:"filter-modal-body"},tC={class:"filter-modal-footer"},iC=Ie(a.defineComponent({__name:"TableFilterModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=()=>{i("emitModalVisibility",!1)},s=o=>{o.key==="Escape"&&r()};return a.watch(()=>t.modalVisibility,o=>{o?(document.body.style.overflow="hidden",window.addEventListener("keydown",s)):(document.body.style.overflow="",window.removeEventListener("keydown",s))},{immediate:!0}),a.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",s)}),(o,l)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[o.modalVisibility?(a.openBlock(),a.createElementBlock("div",Jw,[a.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),a.createElementVNode("div",qw,[a.createElementVNode("div",$w,[a.createElementVNode("div",Zw,[o.title?(a.openBlock(),a.createElementBlock("h4",Xw,a.toDisplayString(o.title),1)):a.createCommentVNode("",!0),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),a.createElementVNode("div",eC,[a.renderSlot(o.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",tC,[a.renderSlot(o.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),nC={key:0,class:"px-0"},rC={class:"modal-dialog modal-dialog-centered modal-xl"},sC={class:"modal-content py-2 px-4"},aC={class:"modal-header mb-3"},oC={class:"modal-title"},lC={class:"modal-body row"},uC={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},Uc=Ie(a.defineComponent({__name:"EditTableColumnsModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){return(t,i)=>t.modalVisibility?(a.openBlock(),a.createElementBlock("div",nC,[a.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),a.createElementVNode("div",rC,[a.createElementVNode("div",sC,[a.createElementVNode("div",aC,[a.createElementVNode("h3",oC,a.toDisplayString(t.title),1),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:i[1]||(i[1]=r=>t.$emit("emitModalVisibility",!1))})]),a.createElementVNode("div",lC,[a.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",uC,[a.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),cC={class:"row mb-4 mx-0","data-test":"PageTitle"},dC={class:"col-12"},hC={class:"row align-items-center"},fC={class:"col-auto"},pC={class:"col d-flex justify-content-end"},mC=Ie(a.defineComponent({__name:"PageTitle",props:{title:{},subtitle:{default:""},titleClass:{default:""},subtitleClass:{default:""},titleStyle:{default:""},subtitleStyle:{default:""}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",cC,[a.createElementVNode("div",dC,[a.createElementVNode("div",hC,[a.createElementVNode("div",fC,[a.createElementVNode("h2",{class:a.normalizeClass(["mb-0",e.titleClass]),style:a.normalizeStyle(e.titleStyle)},a.toDisplayString(e.title),7),e.subtitle?(a.openBlock(),a.createElementBlock("p",{key:0,class:a.normalizeClass(["text-muted mb-0 mt-1",e.subtitleClass]),style:a.normalizeStyle(e.subtitleStyle)},a.toDisplayString(e.subtitle),7)):a.createCommentVNode("",!0)]),a.createElementVNode("div",pC,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),gC={class:"card-body"},bC={class:"card-text"},vC=Ie({__name:"Card",props:{title:{type:String,default:""},bodyClass:{type:String,default:"bg-gray-light"}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["card",n.bodyClass])},[a.createElementVNode("div",gC,[a.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),a.createElementVNode("p",bC,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),yC={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},wC=a.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(a.openBlock(),a.createElementBlock("footer",yC,a.toDisplayString(e.copyrightText)+" "+a.toDisplayString(a.unref(Ae)().year()),1))}}),CC={class:"custom-dropdown"},AC={style:{"border-bottom":"2px solid #000"}},EC={class:"dropdown-list-wrapper"},kC={key:0,class:"custom-dropdown-menu"},SC=["onMousedown"],Po=Ie({__name:"DefaultDropDown",props:{links:{type:Array,required:!0},title:{type:String,default:"Actions"},type:{type:String,default:"actions",validator:function(n){return["actions","profile"].includes(n)}}},setup(n){const e=n,t=a.ref(!1),i=l=>{l&&(l.preventDefault(),l.stopPropagation()),t.value=!t.value},r=l=>{if(typeof l!="function"){i();return}l(),i()},s=l=>{l&&(l.preventDefault(),l.stopPropagation()),setTimeout(()=>{t.value=!1},100)},o=a.computed(()=>e.type==="profile");return(l,u)=>(a.openBlock(),a.createElementBlock("div",CC,[o.value?(a.openBlock(),a.createElementBlock("a",{key:0,href:"#",class:"cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",onClick:i,onBlur:s},[u[0]||(u[0]=a.createElementVNode("div",{class:"circl"},null,-1)),a.createTextVNode(" "+a.toDisplayString(n.title),1)],32)):(a.openBlock(),a.createElementBlock("a",{key:1,href:"#",class:"link-dark",type:"button",onClick:i,onBlur:s},[a.createElementVNode("span",AC,a.toDisplayString(n.title),1),u[1]||(u[1]=a.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-left":"5px"}},null,-1))],32)),a.createElementVNode("div",EC,[t.value?(a.openBlock(),a.createElementBlock("ul",kC,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.links,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:d},[c.hidden?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["dropdown-item",{disabled:c?.disabled}]),style:{cursor:"pointer"},onMousedown:a.withModifiers(f=>r(c?.action),["prevent"])},a.toDisplayString(c?.title),43,SC))]))),128))])):a.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-2e8e004b"]]),xC="data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAA7CAYAAADYdw5tAAAQ9UlEQVR4nO1dzW7bSLb+DinJns69uOzF4CodIKMM0EkHdxFl0YAjqhFmN7s4TxD5CaJ+AstPEPsJojxBO08QGonkAFlYvRh42hlMGDQa7eAuWsHt221bYp1ZsKSQxSJFWf6Lmh+ghSiqeETVV3XOd04VCTk+KTiOYw0Gg3VmZsMwnr58+dI9b5v+aKDzNiDH8VCr1VaJqMXMHhG1Op3O0/O26Y+CnDSfMGq1WoOIHgOwmNkTQtx79eqVd952zTty0nzicBynMhgMngOoyEPrxWJxzXXd/nnaNc/ISTMHkMT5DkAVAJjZA/Cg2+32ztey+YRx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fX129evUDgCUAiymnuqVS6V7+FOZPG7l7doIYVQfgYx1cX75cIcRm/kjA+cC/AdgTzC0pucD7AAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e",RC=["src","alt"],Gc=Ie(a.defineComponent({__name:"Logo",props:{src:{default:xC},alt:{default:"Logo"},width:{default:154},height:{default:50},className:{default:"logo"},style:{default:()=>({})},brandText:{default:void 0},textSize:{default:12},textColor:{default:"#000"},textWeight:{default:"normal"},showText:{type:Boolean,default:!0}},setup(n){const e=n,t=a.computed(()=>e.src?.startsWith("~/")?e.src.replace("~/","/"):e.src),i=a.computed(()=>{const l="r3ui-logo";return e.className?`${l} ${e.className}`:l}),r=a.computed(()=>({width:typeof e.width=="number"?`${e.width}px`:e.width,height:typeof e.height=="number"?`${e.height}px`:e.height,...e.style})),s=a.computed(()=>"r3ui-logo-container"),o=a.computed(()=>({fontSize:typeof e.textSize=="number"?`${e.textSize}px`:e.textSize,color:e.textColor,fontWeight:e.textWeight}));return(l,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["r3ui-logo-container",s.value])},[a.createElementVNode("img",{src:t.value,alt:l.alt,class:a.normalizeClass(i.value),style:a.normalizeStyle(r.value)},null,14,RC),l.brandText&&l.brandText.trim()&&l.showText?(a.openBlock(),a.createElementBlock("span",{key:0,class:"r3ui-logo-text",style:a.normalizeStyle(o.value)},a.toDisplayString(l.brandText),5)):a.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-57bc5457"]]),MC={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},TC={class:"row align-items-center"},DC={class:"col-auto pe-0"},OC={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},LC={class:"row"},BC={class:"col-auto d-flex align-items-center"},FC={key:1,class:"text-muted"},_C={class:"col-auto"},PC=Ie(a.defineComponent({__name:"Header",props:{isAuthenticated:{type:Boolean,default:!1},user:{type:Object,default:null},brandText:{type:String,required:!0},loginText:{type:String,default:"Authorization"},rawDropdownLinks:{type:Array,default:()=>[]}},emits:["navigate","logout"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>t.rawDropdownLinks.map(s=>s.name==="logout"?{...s,action:()=>i("logout")}:s.name.includes("http")?{...s,action:()=>i("navigate",s.name,{external:!0})}:{...s,action:()=>i("navigate",`/${s.name}`)}));return(s,o)=>(a.openBlock(),a.createElementBlock("div",MC,[a.createElementVNode("div",{class:a.normalizeClass([t.isAuthenticated?"container-fluid":"container"])},[a.createElementVNode("a",{href:"/",onClick:o[0]||(o[0]=a.withModifiers(()=>i("navigate","/"),["prevent"])),class:"text-decoration-none r3ui-header-link"},[a.createElementVNode("div",TC,[a.createElementVNode("div",DC,[a.renderSlot(s.$slots,"logo",{},()=>[a.createVNode(Gc,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),a.createElementVNode("div",OC,a.toDisplayString(t.brandText),1)])]),a.createElementVNode("div",LC,[a.createElementVNode("div",BC,[t.isAuthenticated?(a.openBlock(),a.createBlock(Po,{key:0,type:"profile",title:t.user?.name||"",links:r.value},null,8,["title","links"])):a.createCommentVNode("",!0),t.isAuthenticated?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",FC,a.toDisplayString(t.loginText),1))]),a.createElementVNode("div",_C,[a.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-a63a7e7f"]]),NC={class:"col-12 divider divider__wrapper","data-test":"Divider"},No={__name:"Divider",props:{height:{type:[Number,String],default:4},className:{type:String,default:"mb-4"},colorHEX:{type:String,default:"#EFEFEF"}},setup(n){const e=n;return(t,i)=>(a.openBlock(),a.createElementBlock("div",NC,[a.createElementVNode("div",{class:a.normalizeClass(e.className),style:a.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},IC=n=>{const e=a.inject("sidebarContentVisibility"),t=a.inject("toggleSidebar"),i=a.ref({}),r=(l,u)=>{i.value[u]===l?i.value[u]=null:i.value[u]=l},s=a.computed(()=>n.value),o=()=>{if(i.value={},!e?.value)return;const l=u=>{u.childrens?.length&&u.childrens.forEach(l),u.isActive&&u.uniqueKey&&r(u.uniqueKey,u.level)};n.value.forEach(l)};return a.provide("expandAccordion",r),a.provide("expandedAccordion",i),a.watch(n,()=>{o()},{deep:!0}),a.watch(()=>e?.value,()=>{o()},{deep:!0}),a.onMounted(()=>{o()}),{expandedAccordion:i,expandAccordion:r,sidebarLinks:n,collapsedSidebarLinks:s,toggleSidebar:t,sidebarContentVisibility:e}},HC={key:0},VC=["href","target","rel"],zC=["innerHTML"],jC={key:1},WC=["id"],UC=["innerHTML"],GC=["id"],YC={class:"accordion-body"},Yc=Ie(a.defineComponent({name:"SidebarLink",__name:"SidebarLink",props:{sidebarLink:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=a.inject("expandAccordion"),r=a.inject("expandedAccordion"),s=o=>{o.isExternal&&o.href?o.openInNewWindow!==!1?window.open(o.href,"_blank","noopener,noreferrer"):window.location.href=o.href:t("navigate",o.href)};return(o,l)=>{const u=a.resolveComponent("SidebarLink",!0);return a.openBlock(),a.createElementBlock("div",null,[n.sidebarLink.childrens?.length?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",HC,[a.createElementVNode("a",{href:n.sidebarLink.href,target:n.sidebarLink.isExternal&&n.sidebarLink.openInNewWindow!==!1?"_blank":void 0,rel:n.sidebarLink.isExternal&&n.sidebarLink.openInNewWindow!==!1?"noopener noreferrer":void 0,onClick:l[0]||(l[0]=a.withModifiers(()=>s(n.sidebarLink),["prevent"])),class:"sidebar-link-item"},[n.sidebarLink.isVisible?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["btn btn-light w-100 text-start border-0",[n.sidebarLink.level===0?"nested-links":"extended-menu-item",n.sidebarLink.isActive?"fw-bolder":""]]),style:{background:"#efefef"}},[a.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:a.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,zC),a.createElementVNode("span",null,a.toDisplayString(n.sidebarLink.label),1)],2)):a.createCommentVNode("",!0)],8,VC)])),n.sidebarLink.childrens?.length?(a.openBlock(),a.createElementBlock("div",jC,[n.sidebarLink.isVisible?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["accordion-item bg-transparent border-0",[n.sidebarLink.level>0?"extended-menu-item":""]])},[a.createElementVNode("h2",{class:"accordion-header",id:`heading-${n.sidebarLink.uniqueKey}`},[a.createElementVNode("button",{class:a.normalizeClass(["accordion-button outline-none rounded",{"fw-bolder":n.sidebarLink.isActive,collapsed:a.unref(r)&&a.unref(r)[n.sidebarLink.level]!==n.sidebarLink.uniqueKey}]),type:"button",onClick:l[1]||(l[1]=c=>a.unref(i)&&a.unref(i)(n.sidebarLink.uniqueKey,n.sidebarLink.level))},[a.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:a.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,UC),a.createTextVNode(" "+a.toDisplayString(n.sidebarLink.label),1)],2)],8,WC),a.createElementVNode("div",{id:`flush-${n.sidebarLink.uniqueKey}`,class:a.normalizeClass(["accordion-collapse collapse",{show:a.unref(r)&&a.unref(r)[n.sidebarLink.level]===n.sidebarLink.uniqueKey}]),style:{transition:"0.5s"}},[a.createElementVNode("div",YC,[a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.sidebarLink.childrens,c=>(a.openBlock(),a.createElementBlock("li",{key:c.uniqueKey},[a.createVNode(u,{sidebarLink:c,onNavigate:l[2]||(l[2]=d=>t("navigate",d))},null,8,["sidebarLink"])]))),128))])])],10,GC)],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-0a6fd930"]]),QC={key:0},KC={key:0},JC=["title"],qC=["innerHTML"],$C={key:1},ZC={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},XC={class:"hidden-div"},eA={key:1},tA=["href","target","rel"],iA=["title"],nA=["innerHTML"],rA={key:0,class:"ms-2"},sA={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},aA={key:0,class:"ms-2"},Qc=Ie(a.defineComponent({name:"CollapsedSidebarLink",__name:"CollapsedSidebarLink",props:{link:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=a.inject("expandAccordion"),r=a.inject("expandedAccordion"),s=o=>{o.isExternal&&o.href?o.openInNewWindow!==!1?window.open(o.href,"_blank","noopener,noreferrer"):window.location.href=o.href:t("navigate",o.href)};return(o,l)=>{const u=a.resolveComponent("CollapsedSidebarLink",!0);return n.link.isVisible?(a.openBlock(),a.createElementBlock("div",QC,[n.link.childrens?.length?(a.openBlock(),a.createElementBlock("div",KC,[a.createElementVNode("button",{title:n.link.label,class:a.normalizeClass(["btn btn-light w-100 text-start border-0",[n.link.icon?"icon":"text-align-left bg-white"]]),type:"button",onClick:l[0]||(l[0]=c=>a.unref(i)?.(n.link.uniqueKey,n.link.level))},[n.link.icon?(a.openBlock(),a.createElementBlock("span",{key:0,innerHTML:n.link.icon},null,8,qC)):(a.openBlock(),a.createElementBlock("span",$C,a.toDisplayString(n.link.label),1))],10,JC),a.unref(r)&&a.unref(r)[n.link.level]===n.link.uniqueKey?(a.openBlock(),a.createElementBlock("div",ZC,[a.createElementVNode("div",XC,[a.createElementVNode("h5",null,a.toDisplayString(n.link.label),1),l[3]||(l[3]=a.createElementVNode("hr",{size:"1"},null,-1)),a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.link.childrens,c=>(a.openBlock(),a.createElementBlock("li",{class:"mb-0",key:c.uniqueKey},[a.createVNode(u,{link:c,onNavigate:l[1]||(l[1]=d=>t("navigate",d))},null,8,["link"])]))),128))])])])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",eA,[a.createElementVNode("a",{href:n.link.href,target:n.link.isExternal&&n.link.openInNewWindow!==!1?"_blank":void 0,rel:n.link.isExternal&&n.link.openInNewWindow!==!1?"noopener noreferrer":void 0,onClick:l[2]||(l[2]=a.withModifiers(()=>s(n.link),["prevent"]))},[n.link.level<1?(a.openBlock(),a.createElementBlock("button",{key:0,title:n.link.label,class:"btn btn-light w-100 text-start border-0",type:"button",style:{padding:"15px 20px",background:"#efefef"}},[a.createElementVNode("span",{innerHTML:n.link.icon},null,8,nA),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",rA,"↗")):a.createCommentVNode("",!0)],8,iA)):(a.openBlock(),a.createElementBlock("button",sA,[a.createElementVNode("span",null,a.toDisplayString(n.link.label),1),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",aA,"↗")):a.createCommentVNode("",!0)]))],8,tA)]))])):a.createCommentVNode("",!0)}}}),[["__scopeId","data-v-6d9f8db2"]]),oA={key:0},lA={class:"accordion accordion-flush",id:"accordionMenu"},uA={key:1},cA={class:"row"},dA={class:"col-12"},hA={class:"sidebar-footer p-3"},Kc=a.defineComponent({__name:"Sidebar",props:{links:{type:Array,required:!0},isCollapsed:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>!t.isCollapsed),{sidebarLinks:s,collapsedSidebarLinks:o}=IC(a.computed(()=>t.links));return(l,u)=>(a.openBlock(),a.createElementBlock("div",{id:"sidebarContent",class:a.normalizeClass(["sidebar sidebarContent",{"collapse-width":!r.value}])},[r.value?(a.openBlock(),a.createElementBlock("div",oA,[a.createElementVNode("div",lA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),c=>(a.openBlock(),a.createElementBlock("div",{key:c.uniqueKey},[a.createVNode(Yc,{sidebarLink:c,onNavigate:u[0]||(u[0]=d=>i("navigate",d))},null,8,["sidebarLink"])]))),128))])])):a.createCommentVNode("",!0),r.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",uA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),c=>(a.openBlock(),a.createElementBlock("div",{key:c.uniqueKey},[a.createVNode(Qc,{link:c,onNavigate:u[1]||(u[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),a.createElementVNode("div",cA,[a.createElementVNode("div",dA,[a.createVNode(No)])]),a.createElementVNode("div",hA,[a.renderSlot(l.$slots,"footer")])],2))}}),fA=n=>{const e=a.ref(!0),t=a.ref(null),i=a.ref(null),r=a.ref(320),s=()=>{e.value=!1,r.value=60,localStorage.setItem("sideBarVisibility","0")},o=()=>{e.value=!0,r.value=320,localStorage.setItem("sideBarVisibility","1")},l=()=>{e.value?s():o()},u=()=>{localStorage.getItem("sideBarVisibility")==="0"?s():o()},c=()=>{setTimeout(()=>{const d=t.value?.offsetWidth||0,f=r.value||0;if(d>0&&f>0){const p=window.innerWidth<768;i.value=p?d:d-f-20}},50)};return a.provide("sidebarContentVisibility",e),a.provide("toggleSidebar",l),a.watch(r,()=>{c()},{deep:!0}),a.onMounted(()=>{u(),c(),window.addEventListener("resize",c,!0)}),a.onBeforeUnmount(()=>{window.removeEventListener("resize",c,!0)}),{isAuthenticated:n,contentWidth:i,clientWidth:t,sidebarWidth:r,toggleSidebar:l,sidebarContentVisibility:e}},pA={class:"container-fluid p-0"},mA={class:"py-4",style:{"min-height":"90vh"}},gA=a.defineComponent({__name:"MainComponent",props:{sidebarLinks:{type:Array,required:!0},isAuthenticated:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,{contentWidth:r,clientWidth:s,sidebarWidth:o,sidebarContentVisibility:l}=fA(a.computed(()=>t.isAuthenticated));return(u,c)=>(a.openBlock(),a.createElementBlock("div",pA,[a.createElementVNode("div",{class:a.normalizeClass(["d-flex",{"justify-content-center":!t.isAuthenticated}]),ref_key:"clientWidth",ref:s},[t.isAuthenticated?(a.openBlock(),a.createElementBlock("div",{key:0,id:"sidebar",class:"pt-3 sidebar px-0 hide-to-print",style:a.normalizeStyle(`background: #efefef; transition: .2s; width:${a.unref(o)}px;`)},[a.createVNode(Kc,{links:t.sidebarLinks,"is-collapsed":!a.unref(l),onNavigate:c[0]||(c[0]=d=>i("navigate",d))},null,8,["links","is-collapsed"])],4)):a.createCommentVNode("",!0),a.createElementVNode("div",{id:"content-div",style:a.normalizeStyle(`transition: .2s; width:${a.unref(r)}px;`)},[a.createElementVNode("div",mA,[a.renderSlot(u.$slots,"breadcrumbs"),a.renderSlot(u.$slots,"default")])],4)],2)]))}}),bA={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},vA={class:"col"},yA={"aria-label":"breadcrumb"},wA={class:"breadcrumb row"},CA=["aria-current"],AA=["href","onClick"],EA={key:1,class:"text-nowrap"},kA=Ie(a.defineComponent({__name:"Breadcrumbs",props:{crumbs:{type:Array,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e;return(r,s)=>(a.openBlock(),a.createElementBlock("div",bA,[a.createElementVNode("div",vA,[a.createElementVNode("nav",yA,[a.createElementVNode("ol",wA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.crumbs,(o,l)=>(a.openBlock(),a.createElementBlock("li",{key:l,class:a.normalizeClass(["breadcrumb-item text-nowrap col-auto",{active:o.isActive}]),"aria-current":o.isActive?"page":void 0},[o.isActive?(a.openBlock(),a.createElementBlock("span",EA,a.toDisplayString(o.text),1)):(a.openBlock(),a.createElementBlock("a",{key:0,href:o.href,class:"text-decoration-none text-black-40 cursor-pointer text-nowrap",onClick:a.withModifiers(()=>i("navigate",o.href),["prevent"])},a.toDisplayString(o.text),9,AA))],10,CA))),128))])])])]))}}),[["__scopeId","data-v-cff07bcc"]]),SA=a.defineComponent({__name:"LanguageSelector",props:{modelValue:{},options:{},width:{},allowClear:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=a.computed({get:()=>t.modelValue,set:s=>i("update:modelValue",s)});return(s,o)=>(a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({minWidth:s.width||"150px"})},[a.createVNode(Vt,{class:"w-100",modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=l=>r.value=l),options:s.options,"allow-clear":s.allowClear??!1},null,8,["modelValue","options","allow-clear"])],4))}}),xA={key:0,class:"card-header"},RA={class:"card-title mb-0"},MA={class:"card-body"},TA={class:"row"},DA={class:"row align-items-center"},OA={class:"col-auto label pe-0"},LA={class:"col-auto"},BA={key:0,class:"mt-3"},FA=Ie(a.defineComponent({__name:"CardInfo",props:{title:{default:""},fields:{default:()=>[]},cardClass:{default:""},variant:{default:"default"},size:{default:"md"},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1}},setup(n){const e=n,t=a.computed(()=>{const i=["card-info"];return e.variant!=="default"&&i.push(`card-info--${e.variant}`),e.size!=="md"&&i.push(`card-info--${e.size}`),e.bordered&&i.push("card-info--bordered"),e.shadow&&i.push("card-info--shadow"),e.cardClass&&i.push(e.cardClass),i.join(" ")});return(i,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["card",t.value])},[i.title?(a.openBlock(),a.createElementBlock("div",xA,[a.createElementVNode("h5",RA,a.toDisplayString(i.title),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",MA,[a.createElementVNode("div",TA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.fields,(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:"col-12 mb-2",key:o},[a.createElementVNode("div",DA,[a.createElementVNode("div",OA,a.toDisplayString(s.label)+":",1),a.createElementVNode("div",LA,[a.createElementVNode("span",{class:a.normalizeClass(["value",s.valueClass]),style:a.normalizeStyle(s.valueStyle)},a.toDisplayString(s.value),7)])])]))),128))]),i.$slots.default?(a.openBlock(),a.createElementBlock("div",BA,[a.renderSlot(i.$slots,"default",{},void 0,!0)])):a.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),_A={class:"placeholder-glow"},PA={class:"page-card"},NA={class:"row hide-to-print card-header mx-0 w-100"},IA={class:"col"},HA={class:"row flex-nowrap align-items-center"},VA={class:"col-auto"},zA={key:0,class:"col-auto"},jA={class:"row",style:{padding:"20px"}},WA={class:"d-flex align-items-start"},UA={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},GA=["onClick"],YA={class:"tab-content",id:"v-pills-tabContent"},QA={key:0,class:"title"},KA={key:1},JA={key:0},qA={key:0},$A=["title"],ZA={key:2},XA={class:"row"},eE={class:"col-12"},tE=Ie(a.defineComponent({__name:"PageCard",props:{actionLinks:{default:()=>[]},tabs:{default:()=>[]},col:{default:"auto"},actionsTitle:{default:"Действия"},isLoading:{type:Boolean,default:!1}},emits:["click","active-tab"],setup(n,{emit:e}){const t=n,i=e,r=a.ref(0),s=a.useSlots(),o=d=>{i("click",d)},l=a.computed(()=>!!s.header),u=a.computed(()=>!!s.footer),c=d=>{r.value=d,i("active-tab",t.tabs[d])};return a.onMounted(()=>{}),(d,f)=>(a.openBlock(),a.createElementBlock("div",null,[a.withDirectives(a.createElementVNode("p",_A,[...f[0]||(f[0]=[a.createElementVNode("span",{class:"placeholder col-12 mb-1",style:{"min-height":"300px","border-radius":"4px"}},null,-1)])],512),[[a.vShow,d.isLoading]]),a.withDirectives(a.createElementVNode("div",PA,[a.createElementVNode("div",NA,[a.createElementVNode("div",IA,[a.createElementVNode("div",HA,[a.createElementVNode("div",VA,[l.value?a.renderSlot(d.$slots,"header",{key:0},void 0,!0):a.createCommentVNode("",!0)])])]),d.actionLinks.length>0?(a.openBlock(),a.createElementBlock("div",zA,[a.createVNode(Po,{title:d.actionsTitle,links:d.actionLinks,onClick:o},null,8,["title","links"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",jA,[a.createElementVNode("div",WA,[a.createElementVNode("div",UA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tabs,(p,h)=>a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:h,class:a.normalizeClass(["nav-link me-5",[h===r.value?"active":""]]),onClick:k=>c(h)},a.toDisplayString(p.navLink),11,GA)),[[a.vShow,p.navLink]])),128))]),a.createElementVNode("div",YA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tabs,(p,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:a.normalizeClass(["tab-pane fade row",[h===r.value?"show active d-flex":""]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.contents,(k,C)=>(a.openBlock(),a.createElementBlock("div",{key:C,class:a.normalizeClass(`col-${d.col} mb-3`)},[k.subtitle?(a.openBlock(),a.createElementBlock("div",QA,a.toDisplayString(k.subtitle)+": ",1)):a.createCommentVNode("",!0),!k.type||k.type==="text"?(a.openBlock(),a.createElementBlock("div",KA,[typeof k.text=="string"?(a.openBlock(),a.createElementBlock("div",JA,a.toDisplayString(k.text),1)):k.text?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(k.text,(A,w)=>(a.openBlock(),a.createElementBlock("div",{key:w},[typeof A=="string"?(a.openBlock(),a.createElementBlock("div",qA,a.toDisplayString(A),1)):a.createCommentVNode("",!0),typeof A=="object"?(a.openBlock(),a.createElementBlock("div",{key:1,title:A?.description||""},a.toDisplayString(A.name),9,$A)):a.createCommentVNode("",!0)]))),128)):a.createCommentVNode("",!0)])):k.type==="custom"&&k.slotName?(a.openBlock(),a.createElementBlock("div",ZA,[a.renderSlot(d.$slots,k.slotName,{content:k},void 0,!0)])):a.createCommentVNode("",!0)],2))),128))],2))),128))])]),u.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(No,{class:"mt-3"}),a.createElementVNode("div",XA,[a.createElementVNode("div",eE,[a.renderSlot(d.$slots,"footer",{},void 0,!0)])])],64)):a.createCommentVNode("",!0)])],512),[[a.vShow,!d.isLoading]])]))}}),[["__scopeId","data-v-57cc294f"]]),iE={key:0,class:"row w-100 parent"},nE={class:"col-12 wrapper w-100"},rE=["innerHTML"],Jc={__name:"Toast",props:{message:{type:String,default:""},isError:{type:Boolean,default:!1}},setup(n){const e=n,t=a.ref(e.message);a.watch(()=>e.message,r=>{t.value=r});const i=()=>{t.value=""};return(r,s)=>t.value&&t.value.length>0?(a.openBlock(),a.createElementBlock("div",iE,[a.createElementVNode("div",nE,[a.createElementVNode("div",{class:a.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,rE),a.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):a.createCommentVNode("",!0)}},sE={key:0,class:"row","data-test":"ErrorMessageComponent"},aE={class:"col-12",id:"alert"},oE={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},lE=["innerHTML"],uE=Ie(a.defineComponent({__name:"ErrorMessageComponent",props:{message:{default:""},warningIcon:{type:Boolean,default:!1},type:{default:"danger"},asHtml:{type:Boolean,default:!1}},setup(n){const e=n,t=a.computed(()=>e.message===null||e.message===void 0?!1:Array.isArray(e.message)?e.message.length>0:!!(e.message&&typeof e.message=="string"&&e.message.length>0&&e.message.trim()!=="")),i=a.computed(()=>Array.isArray(e.message)?e.message.join(", "):e.message||"");return(r,s)=>t.value?(a.openBlock(),a.createElementBlock("div",sE,[a.createElementVNode("div",aE,[a.createElementVNode("div",{class:a.normalizeClass([i.value?`alert alert-${r.type}`:"",{"d-flex align-items-center":r.warningIcon}])},[i.value&&r.warningIcon?(a.openBlock(),a.createElementBlock("i",oE)):a.createCommentVNode("",!0),r.asHtml?(a.openBlock(),a.createElementBlock("div",{key:1,innerHTML:i.value},null,8,lE)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(i.value),1)],64))],2)])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),cE={class:"accordion-header",style:{background:"transparent"}},dE=["aria-expanded","aria-controls"],hE={key:0},fE=["id"],pE={class:"accordion-body px-0"},mE=Ie(a.defineComponent({__name:"DefaultAccordion",props:{title:{},titleFontSize:{default:16},isCollapsed:{type:Boolean,default:!0},isVisibleBorderBottom:{type:Boolean,default:!0},isCollapsedDefault:{type:Boolean,default:!0},isTitleBold:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},emits:["update-visibility"],setup(n,{emit:e}){const t=n,i=e,r=a.useSlots(),s=a.ref(Math.random().toString(36).substr(2,9)),o=u=>!!r[u],l=()=>{const u=!t.isCollapsed;i("update-visibility",u)};return a.watch(()=>t.isCollapsedDefault,u=>{i("update-visibility",u)},{deep:!0}),(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["accordion accordion-flush",{"w-100":u.fullWidth}]),style:{background:"transparent"}},[a.createElementVNode("div",{class:a.normalizeClass(["accordion-item",{"border-bottom":u.isVisibleBorderBottom}]),style:{background:"transparent"}},[a.createElementVNode("h2",cE,[a.createElementVNode("button",{onClick:l,class:a.normalizeClass(["accordion-button collapsed ps-0",{visible:!u.isCollapsed,"fw-bolder":u.isTitleBold}]),style:a.normalizeStyle(`font-size:${u.titleFontSize}px;`),type:"button","aria-expanded":!u.isCollapsed,"aria-controls":`accordion-${s.value}`},a.toDisplayString(u.title),15,dE)]),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[o("accordion-body")?(a.openBlock(),a.createElementBlock("div",hE,[a.withDirectives(a.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[a.createElementVNode("div",pE,[a.renderSlot(u.$slots,"accordion-body",{},void 0,!0)])],8,fE),[[a.vShow,!u.isCollapsed]])])):a.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),gE={class:"accordion-header",style:{background:"transparent"}},bE=["onClick"],vE={class:"d-flex align-items-center w-100"},yE={class:"d-flex align-items-center flex-grow-1"},wE=["value","id","onChange"],CE={class:"form-check-label ps-2 text-body flex-grow-1"},AE={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},EE={class:"col d-flex flex-wrap px-4"},kE={class:"form-check"},SE=["value","id"],xE=["for"],RE=Ie(a.defineComponent({__name:"KindCheckboxesAccordion",props:{checkboxName:{default:"kinds"},kindGroups:{default:()=>[]},defaultSelectedKinds:{default:()=>[]},defaultSelectedKindGroups:{default:()=>[]}},emits:["emitSelectedKinds","emitSelectedKindGroups"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=a.ref([]),o=a.ref([]),l=a.ref(null),u=a.ref([]),c=(k,C)=>{const A=k.target;if(A.tagName==="INPUT"||A.closest(".form-check-input"))return!1;if(A.tagName==="SPAN"||A.closest(".form-check-label"))return l.value!==Number(C)?(l.value=Number(C),!0):(l.value=null,!0);if(l.value!==Number(C))return l.value=Number(C),!0;l.value=null},d=k=>{const C=i.kindGroups.find(w=>w.id===k);if(!C)return;if(s.value.includes(String(k))){const w=C.kinds.map(D=>String(D.id)),m=[...o.value];w.forEach(D=>{m.includes(D)||m.push(D)}),o.value=m}else{const w=C.kinds.map(m=>String(m.id));o.value=o.value.filter(m=>!w.includes(String(m)))}},f=()=>{a.nextTick(()=>{p()})},p=()=>{const k=[];i.kindGroups.forEach((w,m)=>{const D=u.value?.[m];if(!D)return;const g=w.kinds.map(v=>String(v.id)),M=o.value.filter(v=>g.includes(String(v)));M.length===0?(D.indeterminate=!1,D.checked=!1):M.length===g.length?(D.indeterminate=!1,D.checked=!0,k.push(String(w.id))):(D.indeterminate=!0,D.checked=!1)});const C=s.value.map(String).sort(),A=k.map(String).sort();JSON.stringify(C)!==JSON.stringify(A)&&(s.value=k)};a.watch(()=>o.value,k=>{r("emitSelectedKinds",k)},{deep:!0}),a.watch(()=>s.value,k=>{r("emitSelectedKindGroups",k)},{deep:!0}),a.onMounted(()=>{i.defaultSelectedKinds.length>0&&(o.value=[...i.defaultSelectedKinds]),i.defaultSelectedKindGroups.length>0&&(s.value=[...i.defaultSelectedKindGroups]),a.nextTick(()=>{p()})});const h=a.computed(()=>c);return e({toggleAccordion:c}),(k,C)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.kindGroups,(A,w)=>(a.openBlock(),a.createElementBlock("div",{class:"accordion-item border-bottom",style:{background:"transparent"},key:A.id},[k.kindGroups[w].kinds.length>0?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",gE,[a.createElementVNode("button",{class:a.normalizeClass(["accordion-button ps-0",{collapsed:l.value===Number(w)}]),type:"button",style:{background:"transparent"},onClick:m=>h.value(m,w)},[a.createElementVNode("div",vE,[a.createElementVNode("div",yE,[a.withDirectives(a.createElementVNode("input",{class:"form-check-input m-0",type:"checkbox",ref_for:!0,ref_key:"groupCheckbox",ref:u,value:`${A.id}`,id:`${k.checkboxName}_${w}`,name:"kind_group","onUpdate:modelValue":C[0]||(C[0]=m=>s.value=m),onClick:C[1]||(C[1]=a.withModifiers(()=>{},["stop"])),onChange:m=>d(A.id)},null,40,wE),[[a.vModelCheckbox,s.value]]),a.createElementVNode("span",CE,a.toDisplayString(A.name),1)]),a.createElementVNode("i",{class:a.normalizeClass(["bi bi-chevron-down accordion-icon",{rotated:l.value===Number(w)}])},null,2)])],10,bE)]),a.withDirectives(a.createElementVNode("div",AE,[a.createElementVNode("div",EE,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.kindGroups[w].kinds,(m,D)=>(a.openBlock(),a.createElementBlock("div",{class:"col-6 mb-2",key:D},[a.createElementVNode("div",kE,[a.withDirectives(a.createElementVNode("input",{class:"form-check-input",type:"checkbox",value:`${m.id}`,id:`${k.checkboxName}_${m.id}`,name:"kinds","onUpdate:modelValue":C[2]||(C[2]=g=>o.value=g),onChange:f},null,40,SE),[[a.vModelCheckbox,o.value]]),a.createElementVNode("label",{class:"form-check-label",for:`${k.checkboxName}_${m.id}`},[a.createElementVNode("small",null,a.toDisplayString(m.name),1)],8,xE)])]))),128))])],512),[[a.vShow,l.value===Number(w)]])],64)):a.createCommentVNode("",!0)]))),128))}}),[["__scopeId","data-v-c0a701d5"]]);class dt{constructor(e){this.table=e}reloadData(e,t,i){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,i)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return typeof t<"u"&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,i){return this.table.deprecationAdvisor.check(e,t,i)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class Ze{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,i){var r=e?t.split(e):[t],s=r.length,o;for(let l=0;l<s&&(i=i[r[l]],o=i,!!i);l++);return o}static deepClone(e,t,i=[]){var r={}.__proto__,s=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var o in e){let l=e[o],u,c;l!=null&&typeof l=="object"&&(l.__proto__===r||l.__proto__===s)&&(u=i.findIndex(d=>d.subject===l),u>-1?t[o]=i[u].copy:(c=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:c}),t[o]=this.deepClone(l,c,i)))}return t}}let ME=class Dd extends dt{constructor(e,t,i){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=i,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return typeof e=="string"?(e=document.querySelector(e),e||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)")):e===!0&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t?!0:t.parentNode?this._checkContainerIsParent(e,t.parentNode):!1}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),i=t?e.touches[0].pageX:e.pageX,r=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let s=Ze.elOffset(this.container);i-=s.left,r-=s.top}return{x:i,y:r}}elementPositionCoords(e,t="right"){var i=Ze.elOffset(e),r,s,o;switch(this.container!==document.body&&(r=Ze.elOffset(this.container),i.left-=r.left,i.top-=r.top),t){case"right":s=i.left+e.offsetWidth,o=i.top-1;break;case"bottom":s=i.left,o=i.top+e.offsetHeight;break;case"left":s=i.left,o=i.top-1;break;case"top":s=i.left,o=i.top;break;case"center":s=i.left+e.offsetWidth/2,o=i.top+e.offsetHeight/2;break}return{x:s,y:o,offset:i}}show(e,t){var i,r,s,o,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(s=e,l=this.elementPositionCoords(e,t),o=l.offset,i=l.x,r=l.y):typeof e=="number"?(o={top:0,left:0},i=e,r=t):(l=this.containerEventCoords(e),i=l.x,r=l.y,this.reversedX=!1),this.element.style.top=r+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,r,s,o,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",u=>{u.stopPropagation()}),this)}_fitToScreen(e,t,i,r,s){var o=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",i?this.element.style.right=this.container.offsetWidth-r.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let l=Math.max(this.container.offsetHeight,o?this.container.scrollHeight:0);if(t+this.element.offsetHeight>l)if(i)switch(s){case"bottom":this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight-i.offsetHeight-1+"px";break;default:this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+i.offsetHeight+1+"px"}else this.element.style.height=l+"px"}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout(()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)},100),this.blurCallback=e),this}_escapeCheck(e){e.keyCode==27&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(e){return this.childPopup&&this.childPopup.hide(),this.childPopup=new Dd(this.table,e,this),this.childPopup}};class Ve extends dt{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){typeof this.table[e]>"u"?this.table[e]=(...i)=>(this.table.initGuard(e),t(...i)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,i){return this.table.componentFunctionBinder.bind(e,t,i)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t=this.table.rowManager.displayRows.length-1,i;if(this._handler&&(i=this.table.rowManager.displayPipeline.findIndex(r=>r.handler===this._handler),i>-1&&(t=i)),e&&(t=t+e),this._handler)return t>-1?this.table.rowManager.getDisplayRows(t):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new ME(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var TE={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class br extends Ve{static moduleName="accessor";static accessors=TE;constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(r=>{var s="accessor"+(r.charAt(0).toUpperCase()+r.slice(1)),o;e.definition[s]&&(o=this.lookupAccessor(e.definition[s]),o&&(t=!0,i[s]={accessor:o,params:e.definition[s+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":br.accessors[e]?t=br.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t){var i="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.getComponent(),s=Ze.deepClone(e.data||{});return this.table.columnManager.traverse(function(o){var l,u,c,d;o.modules.accessor&&(u=o.modules.accessor[i]||o.modules.accessor.accessor||!1,u&&(l=o.getFieldValue(s),l!="undefined"&&(d=o.getComponent(),c=typeof u.params=="function"?u.params(l,s,t,d,r):u.params,o.setFieldValue(s,u.accessor(l,s,t,c,d,r)))))}),s}}var DE={method:"GET"};function Io(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Io(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Io(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function OE(n){var e=Io(n),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function qc(n,e,t){return n&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",n+=(n.includes("?")?"&":"?")+OE(t)),n}function LE(n,e,t){var i;return new Promise((r,s)=>{if(n=this.urlGenerator.call(this.table,n,e,t),e.method.toUpperCase()!="GET")if(i=typeof this.table.options.ajaxContentType=="object"?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType],i){for(var o in i.headers)e.headers||(e.headers={}),typeof e.headers[o]>"u"&&(e.headers[o]=i.headers[o]);e.body=i.body.call(this,n,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);n?(typeof e.headers>"u"&&(e.headers={}),typeof e.headers.Accept>"u"&&(e.headers.Accept="application/json"),typeof e.headers["X-Requested-With"]>"u"&&(e.headers["X-Requested-With"]="XMLHttpRequest"),typeof e.mode>"u"&&(e.mode="cors"),e.mode=="cors"?(typeof e.headers.Origin>"u"&&(e.headers.Origin=window.location.origin),typeof e.credentials>"u"&&(e.credentials="same-origin")):typeof e.credentials>"u"&&(e.credentials="include"),fetch(n,e).then(l=>{l.ok?l.json().then(u=>{r(u)}).catch(u=>{s(u),console.warn("Ajax Load Error - Invalid JSON returned",u)}):(console.error("Ajax Load Error - Connection Error: "+l.status,l.statusText),s(l))}).catch(l=>{console.error("Ajax Load Error - Connection Error: ",l),s(l)})):(console.warn("Ajax Load Error - No URL Set"),r([]))})}function Ho(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Ho(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Ho(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}var BE={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=Ho(t),r=new FormData;return i.forEach(function(s){r.append(s.key,s.value)}),r}}};class Ji extends Ve{static moduleName="ajax";static defaultConfig=DE;static defaultURLGenerator=qc;static defaultLoaderPromise=LE;static contentTypeFormatters=BE;constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",function(){}),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=Ji.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||Ji.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||Ji.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,i,r){var s=this.table.options.ajaxParams;return s&&(typeof s=="function"&&(s=s.call(this.table)),r=Object.assign(Object.assign({},s),r)),r}requestDataCheck(e,t,i,r){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,r,s){var o;return!s&&this.requestDataCheck(e)?(e&&this.setUrl(e),o=this.generateConfig(i),this.sendRequest(this.url,t,o)):s}setDefaultConfig(e={}){this.config=Object.assign({},Ji.defaultConfig),typeof e=="string"?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return typeof e=="string"?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,i){return this.table.options.ajaxRequesting.call(this.table,e,t)!==!1?this.loaderPromise(e,i,t).then(r=>(this.table.options.ajaxResponse&&(r=this.table.options.ajaxResponse.call(this.table,e,t,r)),r)):Promise.reject()}}var FE={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},_E={table:function(n){var e=[],t=!0,i=this.table.columnManager.columns,r=[],s=[];return n=n.split(`
|
|
32
32
|
`),n.forEach(function(o){e.push(o.split(" "))}),e.length&&!(e.length===1&&e[0].length<2)?(e[0].forEach(function(o){var l=i.find(function(u){return o&&u.definition.title&&o.trim()&&u.definition.title.trim()===o.trim()});l?r.push(l):t=!1}),t||(t=!0,r=[],e[0].forEach(function(o){var l=i.find(function(u){return o&&u.field&&o.trim()&&u.field.trim()===o.trim()});l?r.push(l):t=!1}),t||(r=this.table.columnManager.columnsByIndex)),t&&e.shift(),e.forEach(function(o){var l={};o.forEach(function(u,c){r[c]&&(l[r[c].field]=u)}),s.push(l)}),s):!1}},PE={copyToClipboard:["ctrl + 67","meta + 67"]},NE={copyToClipboard:function(n){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},IE={keybindings:{bindings:PE,actions:NE}};class vr extends Ve{static moduleName="clipboard";static moduleExtensions=IE;static pasteActions=FE;static pasteParsers=_E;constructor(e){super(e),this.mode=!0,this.pasteParser=function(){},this.pasteAction=function(){},this.customSelection=!1,this.rowRange=!1,this.blocked=!0,this.registerTableOption("clipboard",!1),this.registerTableOption("clipboardCopyStyled",!0),this.registerTableOption("clipboardCopyConfig",!1),this.registerTableOption("clipboardCopyFormatter",!1),this.registerTableOption("clipboardCopyRowRange","active"),this.registerTableOption("clipboardPasteParser","table"),this.registerTableOption("clipboardPasteAction","insert"),this.registerColumnOption("clipboard"),this.registerColumnOption("titleClipboard")}initialize(){this.mode=this.table.options.clipboard,this.rowRange=this.table.options.clipboardCopyRowRange,(this.mode===!0||this.mode==="copy")&&this.table.element.addEventListener("copy",e=>{var t,i,r;this.blocked||(e.preventDefault(),this.customSelection?(t=this.customSelection,this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t))):(r=this.table.modules.export.generateExportList(this.table.options.clipboardCopyConfig,this.table.options.clipboardCopyStyled,this.rowRange,"clipboard"),i=this.table.modules.export.generateHTMLTable(r),t=i?this.generatePlainContent(r):"",this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t),i=this.table.options.clipboardCopyFormatter("html",i))),window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",t):e.clipboardData&&e.clipboardData.setData?(e.clipboardData.setData("text/plain",t),i&&e.clipboardData.setData("text/html",i)):e.originalEvent&&e.originalEvent.clipboardData.setData&&(e.originalEvent.clipboardData.setData("text/plain",t),i&&e.originalEvent.clipboardData.setData("text/html",i)),this.dispatchExternal("clipboardCopied",t,i),this.reset())}),(this.mode===!0||this.mode==="paste")&&this.table.element.addEventListener("paste",e=>{this.paste(e)}),this.setPasteParser(this.table.options.clipboardPasteParser),this.setPasteAction(this.table.options.clipboardPasteAction),this.registerTableFunction("copyToClipboard",this.copy.bind(this))}reset(){this.blocked=!0,this.customSelection=!1}generatePlainContent(e){var t=[];return e.forEach(i=>{var r=[];i.columns.forEach(s=>{var o="";if(s)if(i.type==="group"&&(s.value=s.component.getKey()),s.value===null)o="";else switch(typeof s.value){case"object":o=JSON.stringify(s.value);break;case"undefined":o="";break;default:o=s.value}r.push(o)}),t.push(r.join(" "))}),t.join(`
|
|
33
33
|
`)}copy(e,t){var i,r;this.blocked=!1,this.customSelection=!1,(this.mode===!0||this.mode==="copy")&&(this.rowRange=e||this.table.options.clipboardCopyRowRange,typeof window.getSelection<"u"&&typeof document.createRange<"u"?(e=document.createRange(),e.selectNodeContents(this.table.element),i=window.getSelection(),i.toString()&&t&&(this.customSelection=i.toString()),i.removeAllRanges(),i.addRange(e)):typeof document.selection<"u"&&typeof document.body.createTextRange<"u"&&(r=document.body.createTextRange(),r.moveToElementText(this.table.element),r.select()),document.execCommand("copy"),i&&i.removeAllRanges())}setPasteAction(e){switch(typeof e){case"string":this.pasteAction=vr.pasteActions[e],this.pasteAction||console.warn("Clipboard Error - No such paste action found:",e);break;case"function":this.pasteAction=e;break}}setPasteParser(e){switch(typeof e){case"string":this.pasteParser=vr.pasteParsers[e],this.pasteParser||console.warn("Clipboard Error - No such paste parser found:",e);break;case"function":this.pasteParser=e;break}}paste(e){var t,i,r;this.checkPasteOrigin(e)&&(t=this.getPasteData(e),i=this.pasteParser.call(this,t),i?(e.preventDefault(),this.table.modExists("mutator")&&(i=this.mutateData(i)),r=this.pasteAction.call(this,i),this.dispatchExternal("clipboardPasted",t,i,r)):this.dispatchExternal("clipboardPasteError",t))}mutateData(e){var t=[];return Array.isArray(e)?e.forEach(i=>{t.push(this.table.modules.mutator.transformRow(i,"clipboard"))}):t=e,t}checkPasteOrigin(e){var t=!0,i=this.confirm("clipboard-paste",[e]);return(i||!["DIV","SPAN"].includes(e.target.tagName))&&(t=!1),t}getPasteData(e){var t;return window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):e.originalEvent&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.clipboardData.getData("text/plain")),t}}class HE{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,r){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getTable(){return this._row.table}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}_getSelf(){return this._row}}class $c{constructor(e){return this._cell=e,new Proxy(this,{get:function(t,i,r){return typeof t[i]<"u"?t[i]:t._cell.table.componentFunctionBinder.handle("cell",t._cell,i)}})}getValue(){return this._cell.getValue()}getOldValue(){return this._cell.getOldValue()}getInitialValue(){return this._cell.initialValue}getElement(){return this._cell.getElement()}getRow(){return this._cell.row.getComponent()}getData(e){return this._cell.row.getData(e)}getType(){return"cell"}getField(){return this._cell.column.getField()}getColumn(){return this._cell.column.getComponent()}setValue(e,t){typeof t>"u"&&(t=!0),this._cell.setValue(e,t)}restoreOldValue(){this._cell.setValueActual(this._cell.getOldValue())}restoreInitialValue(){this._cell.setValueActual(this._cell.initialValue)}checkHeight(){this._cell.checkHeight()}getTable(){return this._cell.table}_getSelf(){return this._cell}}class En extends dt{constructor(e,t){super(e.table),this.table=e.table,this.column=e,this.row=t,this.element=null,this.value=null,this.initialValue,this.oldValue=null,this.modules={},this.height=null,this.width=null,this.minWidth=null,this.component=null,this.loaded=!1,this.build()}build(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(this.row.data)),this.initialValue=this.value}generateElement(){this.element=document.createElement("div"),this.element.className="tabulator-cell",this.element.setAttribute("role","gridcell"),this.column.isRowHeader&&this.element.classList.add("tabulator-row-header")}_configureCell(){var e=this.element,t=this.column.getField(),i={top:"flex-start",bottom:"flex-end",middle:"center"},r={left:"flex-start",right:"flex-end",center:"center"};if(e.style.textAlign=this.column.hozAlign,this.column.vertAlign&&(e.style.display="inline-flex",e.style.alignItems=i[this.column.vertAlign]||"",this.column.hozAlign&&(e.style.justifyContent=r[this.column.hozAlign]||"")),t&&e.setAttribute("tabulator-field",t),this.column.definition.cssClass){var s=this.column.definition.cssClass.split(" ");s.forEach(o=>{e.classList.add(o)})}this.dispatch("cell-init",this),this.column.visible||this.hide()}_generateContents(){var e;switch(e=this.chain("cell-format",this,null,()=>this.element.innerHTML=this.value),typeof e){case"object":if(e instanceof Node){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.appendChild(e)}else this.element.innerHTML="",e!=null&&console.warn("Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",e);break;case"undefined":this.element.innerHTML="";break;default:this.element.innerHTML=e}}cellRendered(){this.dispatch("cell-rendered",this)}getElement(e){return this.loaded||(this.loaded=!0,e||this.layoutElement()),this.element}getValue(){return this.value}getOldValue(){return this.oldValue}setValue(e,t,i){var r=this.setValueProcessData(e,t,i);r&&(this.dispatch("cell-value-updated",this),this.cellRendered(),this.column.definition.cellEdited&&this.column.definition.cellEdited.call(this.table,this.getComponent()),this.dispatchExternal("cellEdited",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()))}setValueProcessData(e,t,i){var r=!1;return(this.value!==e||i)&&(r=!0,t&&(e=this.chain("cell-value-changing",[this,e],null,e))),this.setValueActual(e),r&&this.dispatch("cell-value-changed",this),r}setValueActual(e){this.oldValue=this.value,this.value=e,this.dispatch("cell-value-save-before",this),this.column.setFieldValue(this.row.data,e),this.dispatch("cell-value-save-after",this),this.loaded&&this.layoutElement()}layoutElement(){this._generateContents(),this.dispatch("cell-layout",this)}setWidth(){this.width=this.column.width,this.element.style.width=this.column.widthStyled}clearWidth(){this.width="",this.element.style.width=""}getWidth(){return this.width||this.element.offsetWidth}setMinWidth(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled}setMaxWidth(){this.maxWidth=this.column.maxWidth,this.element.style.maxWidth=this.column.maxWidthStyled}checkHeight(){this.row.reinitializeHeight()}clearHeight(){this.element.style.height="",this.height=null,this.dispatch("cell-height",this,"")}setHeight(){this.height=this.row.height,this.element.style.height=this.row.heightStyled,this.dispatch("cell-height",this,this.row.heightStyled)}getHeight(){return this.height||this.element.offsetHeight}show(){this.element.style.display=this.column.vertAlign?"inline-flex":""}hide(){this.element.style.display="none"}delete(){this.dispatch("cell-delete",this),!this.table.rowManager.redrawBlock&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}}getIndex(){return this.row.getCellIndex(this)}getComponent(){return this.component||(this.component=new $c(this)),this.component}}class Zc{constructor(e){return this._column=e,this.type="ColumnComponent",new Proxy(this,{get:function(t,i,r){return typeof t[i]<"u"?t[i]:t._column.table.componentFunctionBinder.handle("column",t._column,i)}})}getElement(){return this._column.getElement()}getDefinition(){return this._column.getDefinition()}getField(){return this._column.getField()}getTitleDownload(){return this._column.getTitleDownload()}getCells(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e}isVisible(){return this._column.visible}show(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()}hide(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()}toggle(){this._column.visible?this.hide():this.show()}delete(){return this._column.delete()}getSubColumns(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e}getParentColumn(){return this._column.getParentComponent()}_getSelf(){return this._column}scrollTo(e,t){return this._column.table.columnManager.scrollToColumn(this._column,e,t)}getTable(){return this._column.table}move(e,t){var i=this._column.table.columnManager.findColumn(e);i?this._column.table.columnManager.moveColumn(this._column,i,t):console.warn("Move Error - No matching column found:",i)}getNextColumn(){var e=this._column.nextColumn();return e?e.getComponent():!1}getPrevColumn(){var e=this._column.prevColumn();return e?e.getComponent():!1}updateDefinition(e){return this._column.updateDefinition(e)}getWidth(){return this._column.getWidth()}setWidth(e){var t;return e===!0?t=this._column.reinitializeWidth(!0):t=this._column.setWidth(e),this._column.table.columnManager.rerenderColumns(!0),t}}var Xc={title:void 0,field:void 0,columns:void 0,visible:void 0,hozAlign:void 0,vertAlign:void 0,width:void 0,minWidth:40,maxWidth:void 0,maxInitialWidth:void 0,cssClass:void 0,variableHeight:void 0,headerVertical:void 0,headerHozAlign:void 0,headerWordWrap:!1,editableTitle:void 0};class Jt extends dt{static defaultOptionList=Xc;constructor(e,t,i){super(t.table),this.definition=e,this.parent=t,this.type="column",this.columns=[],this.cells=[],this.isGroup=!1,this.isRowHeader=i,this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleDownload=null,this.titleFormatterRendered=!1,this.mapDefinitions(),this.setField(this.definition.field),this.modules={},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.maxInitialWidth=null,this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this.definition.columns?(this.isGroup=!0,this.definition.columns.forEach((r,s)=>{var o=new Jt(r,this);this.attachColumn(o)}),this.checkColumnVisibility()):t.registerColumnField(this),this._initialize()}createElement(){var e=document.createElement("div");switch(e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),this.isRowHeader&&e.classList.add("tabulator-row-header"),this.table.options.columnHeaderVertAlign){case"middle":e.style.justifyContent="center";break;case"bottom":e.style.justifyContent="flex-end";break}return e}createGroupElement(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e}mapDefinitions(){var e=this.table.options.columnDefaults;if(e)for(let t in e)typeof this.definition[t]>"u"&&(this.definition[t]=e[t]);this.definition=this.table.columnManager.optionsList.generate(Jt.defaultOptionList,this.definition)}checkDefinition(){Object.keys(this.definition).forEach(e=>{Jt.defaultOptionList.indexOf(e)===-1&&console.warn("Invalid column definition option in '"+(this.field||this.definition.title)+"' column:",e)})}setField(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData}registerColumnPosition(e){this.parent.registerColumnPosition(e)}registerColumnField(e){this.parent.registerColumnField(e)}reRegisterPosition(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)}_initialize(){for(var e=this.definition;this.element.firstChild;)this.element.removeChild(this.element.firstChild);e.headerVertical&&(this.element.classList.add("tabulator-col-vertical"),e.headerVertical==="flip"&&this.element.classList.add("tabulator-col-vertical-flip")),this.contentElement=this._buildColumnHeaderContent(),this.element.appendChild(this.contentElement),this.isGroup?this._buildGroupHeader():this._buildColumnHeader(),this.dispatch("column-init",this)}_buildColumnHeader(){var e=this.definition;if(this.dispatch("column-layout",this),typeof e.visible<"u"&&(e.visible?this.show(!0):this.hide(!0)),e.cssClass){var t=e.cssClass.split(" ");t.forEach(i=>{this.element.classList.add(i)})}e.field&&this.element.setAttribute("tabulator-field",e.field),this.setMinWidth(parseInt(e.minWidth)),e.maxInitialWidth&&(this.maxInitialWidth=parseInt(e.maxInitialWidth)),e.maxWidth&&this.setMaxWidth(parseInt(e.maxWidth)),this.reinitializeWidth(),this.hozAlign=this.definition.hozAlign,this.vertAlign=this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign}_buildColumnHeaderContent(){var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e}_buildColumnHeaderTitle(){var e=this.definition,t=document.createElement("div");if(t.classList.add("tabulator-col-title"),e.headerWordWrap&&t.classList.add("tabulator-col-title-wrap"),e.editableTitle){var i=document.createElement("input");i.classList.add("tabulator-title-editor"),i.addEventListener("click",r=>{r.stopPropagation(),i.focus()}),i.addEventListener("mousedown",r=>{r.stopPropagation()}),i.addEventListener("change",()=>{e.title=i.value,this.dispatchExternal("columnTitleChanged",this.getComponent())}),t.appendChild(i),e.field?this.langBind("columns|"+e.field,r=>{i.value=r||e.title||" "}):i.value=e.title||" "}else e.field?this.langBind("columns|"+e.field,r=>{this._formatColumnHeaderTitle(t,r||e.title||" ")}):this._formatColumnHeaderTitle(t,e.title||" ");return t}_formatColumnHeaderTitle(e,t){var i=this.chain("column-format",[this,t,e],null,()=>t);switch(typeof i){case"object":i instanceof Node?e.appendChild(i):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",i));break;case"undefined":e.innerHTML="";break;default:e.innerHTML=i}}_buildGroupHeader(){if(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass){var e=this.definition.cssClass.split(" ");e.forEach(t=>{this.element.classList.add(t)})}this.titleElement.style.textAlign=this.definition.headerHozAlign,this.element.appendChild(this.groupElement)}_getFlatData(e){return e[this.field]}_getNestedData(e){var t=e,i=this.fieldStructure,r=i.length,s;for(let o=0;o<r&&(t=t[i[o]],s=t,!!t);o++);return s}_setFlatData(e,t){this.field&&(e[this.field]=t)}_setNestedData(e,t){var i=e,r=this.fieldStructure,s=r.length;for(let o=0;o<s;o++)if(o==s-1)i[r[o]]=t;else{if(!i[r[o]])if(typeof t<"u")i[r[o]]={};else break;i=i[r[o]]}}attachColumn(e){this.groupElement?(this.columns.push(e),this.groupElement.appendChild(e.getElement()),e.columnRendered()):console.warn("Column Warning - Column being attached to another column instead of column group")}verticalAlign(e,t){var i=this.parent.isGroup?this.parent.getGroupElement().clientHeight:t||this.parent.getHeadersElement().clientHeight;this.element.style.height=i+"px",this.dispatch("column-height",this,this.element.style.height),this.isGroup&&(this.groupElement.style.minHeight=i-this.contentElement.offsetHeight+"px"),this.columns.forEach(function(r){r.verticalAlign(e)})}clearVerticalAlign(){this.element.style.paddingTop="",this.element.style.height="",this.element.style.minHeight="",this.groupElement.style.minHeight="",this.columns.forEach(function(e){e.clearVerticalAlign()}),this.dispatch("column-height",this,"")}getElement(){return this.element}getGroupElement(){return this.groupElement}getField(){return this.field}getTitleDownload(){return this.titleDownload}getFirstColumn(){return this.isGroup?this.columns.length?this.columns[0].getFirstColumn():!1:this}getLastColumn(){return this.isGroup?this.columns.length?this.columns[this.columns.length-1].getLastColumn():!1:this}getColumns(e){var t=[];return e?this.columns.forEach(i=>{t.push(i),t=t.concat(i.getColumns(!0))}):t=this.columns,t}getCells(){return this.cells}getTopColumn(){return this.parent.isGroup?this.parent.getTopColumn():this}getDefinition(e){var t=[];return this.isGroup&&e&&(this.columns.forEach(function(i){t.push(i.getDefinition(!0))}),this.definition.columns=t),this.definition}checkColumnVisibility(){var e=!1;this.columns.forEach(function(t){t.visible&&(e=!0)}),e?(this.show(),this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1)):this.hide()}show(e,t){this.visible||(this.visible=!0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.show()}),!this.isGroup&&this.width===null&&this.reinitializeWidth(),this.table.columnManager.verticalAlignHeaders(),this.dispatch("column-show",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}hide(e,t){this.visible&&(this.visible=!1,this.element.style.display="none",this.table.columnManager.verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.hide()}),this.dispatch("column-hide",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}matchChildWidths(){var e=0;this.contentElement&&this.columns.length&&(this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}),this.contentElement.style.maxWidth=e-1+"px",this.table.initialized&&(this.element.style.width=e+"px"),this.parent.isGroup&&this.parent.matchChildWidths())}removeChild(e){var t=this.columns.indexOf(e);t>-1&&this.columns.splice(t,1),this.columns.length||this.delete()}setWidth(e){this.widthFixed=!0,this.setWidthActual(e)}setWidthActual(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(t){t.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.dispatch("column-width",this),this.subscribedExternal("columnWidth")&&this.dispatchExternal("columnWidth",this.getComponent())}checkCellHeights(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(t.row.getElement().offsetParent!==null?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(t){t.calcHeight()}),e.forEach(function(t){t.setCellHeight()})}getWidth(){var e=0;return this.isGroup?this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}):e=this.width,e}getLeftOffset(){var e=this.element.offsetLeft;return this.parent.isGroup&&(e+=this.parent.getLeftOffset()),e}getHeight(){return Math.ceil(this.element.getBoundingClientRect().height)}setMinWidth(e){this.maxWidth&&e>this.maxWidth&&(e=this.maxWidth,console.warn("the minWidth ("+e+"px) for column '"+this.field+"' cannot be bigger that its maxWidth ("+this.maxWidthStyled+")")),this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(t){t.setMinWidth()})}setMaxWidth(e){this.minWidth&&e<this.minWidth&&(e=this.minWidth,console.warn("the maxWidth ("+e+"px) for column '"+this.field+"' cannot be smaller that its minWidth ("+this.minWidthStyled+")")),this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach(function(t){t.setMaxWidth()})}delete(){return new Promise((e,t)=>{this.isGroup&&this.columns.forEach(function(r){r.delete()}),this.dispatch("column-delete",this);var i=this.cells.length;for(let r=0;r<i;r++)this.cells[0].delete();this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.contentElement=!1,this.titleElement=!1,this.groupElement=!1,this.parent.isGroup&&this.parent.removeChild(this),this.table.columnManager.deregisterColumn(this),this.table.columnManager.rerenderColumns(!0),this.dispatch("column-deleted",this),e()})}columnRendered(){this.titleFormatterRendered&&this.titleFormatterRendered(),this.dispatch("column-rendered",this)}generateCell(e){var t=new En(this,e);return this.cells.push(t),t}nextColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._nextVisibleColumn(e+1):!1}_nextVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)}prevColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._prevVisibleColumn(e-1):!1}_prevVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)}reinitializeWidth(e){this.widthFixed=!1,typeof this.definition.width<"u"&&!e&&this.setWidth(this.definition.width),this.dispatch("column-width-fit-before",this),this.fitToData(e),this.dispatch("column-width-fit-after",this)}fitToData(e){if(!this.isGroup){this.widthFixed||(this.element.style.width="",this.cells.forEach(r=>{r.clearWidth()}));var t=this.element.offsetWidth;if((!this.width||!this.widthFixed)&&(this.cells.forEach(r=>{var s=r.getWidth();s>t&&(t=s)}),t)){var i=t+1;e?this.setWidth(i):(this.maxInitialWidth&&!e&&(i=Math.min(i,this.maxInitialWidth)),this.setWidthActual(i))}}}updateDefinition(e){var t;return this.isGroup||this.parent.isGroup?(console.error("Column Update Error - The updateDefinition function is only available on ungrouped columns"),Promise.reject("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(t=Object.assign({},this.getDefinition()),t=Object.assign(t,e),this.table.columnManager.addColumn(t,!1,this).then(i=>(t.field==this.field&&(this.field=!1),this.delete().then(()=>i.getComponent()))))}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}getComponent(){return this.component||(this.component=new Zc(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof Jt?this.parent.getComponent():!1}}class yr{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,r){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}getIndex(){return this._row.getData("data")[this._row.table.options.index]}getPosition(){return this._row.getPosition()}watchPosition(e){return this._row.watchPosition(e)}delete(){return this._row.delete()}scrollTo(e,t){return this._row.table.rowManager.scrollToRow(this._row,e,t)}move(e,t){this._row.moveToRow(e,t)}update(e){return this._row.updateData(e)}normalizeHeight(){this._row.normalizeHeight(!0)}_getSelf(){return this._row}reformat(){return this._row.reinitialize()}getTable(){return this._row.table}getNextRow(){var e=this._row.nextRow();return e&&e.getComponent()}getPrevRow(){var e=this._row.prevRow();return e&&e.getComponent()}}class pt extends dt{constructor(e,t,i="row"){super(t.table),this.parent=t,this.data={},this.type=i,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.position=0,this.positionWatchers=[],this.component=null,this.created=!1,this.setData(e)}create(){this.created||(this.created=!0,this.generateElement())}createElement(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e}getElement(){return this.create(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}generateElement(){this.createElement(),this.dispatch("row-init",this)}generateCells(){this.cells=this.table.columnManager.generateCells(this)}initialize(e,t){if(this.create(),!this.initialized||e){for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.dispatch("row-layout-before",this),this.generateCells(),this.initialized=!0,this.table.columnManager.renderer.renderRowCells(this,t),e&&this.normalizeHeight(),this.dispatch("row-layout",this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.dispatch("row-layout-after",this)}else this.table.columnManager.renderer.rerenderRowCells(this,t)}rendered(){this.cells.forEach(e=>{e.cellRendered()})}reinitializeHeight(){this.heightInitialized=!1,this.element&&this.element.offsetParent!==null&&this.normalizeHeight(!0)}deinitialize(){this.initialized=!1}deinitializeHeight(){this.heightInitialized=!1}reinitialize(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&this.element.offsetParent!==null&&this.initialize(!0),this.dispatch("row-relayout",this)}calcHeight(e){var t=0,i=0;this.table.options.rowHeight?this.height=this.table.options.rowHeight:(i=this.calcMinHeight(),t=this.calcMaxHeight(),e?this.height=Math.max(t,i):this.height=this.manualHeight?this.height:Math.max(t,i)),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight}calcMinHeight(){return this.table.options.resizableRows?this.element.clientHeight:0}calcMaxHeight(){var e=0;return this.cells.forEach(function(t){var i=t.getHeight();i>e&&(e=i)}),e}setCellHeight(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0}clearCellHeight(){this.cells.forEach(function(e){e.clearHeight()})}normalizeHeight(e){e&&!this.table.options.rowHeight&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()}setHeight(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight,this.subscribedExternal("rowHeight")&&this.dispatchExternal("rowHeight",this.getComponent()))}getHeight(){return this.outerHeight}getWidth(){return this.element.offsetWidth}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}setData(e){this.data=this.chain("row-data-init-before",[this,e],void 0,e),this.dispatch("row-data-init-after",this)}updateData(e){var t=this.element&&Ze.elVisible(this.element),i={},r;return new Promise((s,o)=>{typeof e=="string"&&(e=JSON.parse(e)),this.dispatch("row-data-save-before",this),this.subscribed("row-data-changing")&&(i=Object.assign(i,this.data),i=Object.assign(i,e)),r=this.chain("row-data-changing",[this,i,e],null,e);for(let l in r)this.data[l]=r[l];this.dispatch("row-data-save-after",this);for(let l in e)this.table.columnManager.getColumnsByFieldRoot(l).forEach(c=>{let d=this.getCell(c.getField());if(d){let f=c.getFieldValue(r);d.getValue()!==f&&(d.setValueProcessData(f),t&&d.cellRendered())}});t?(this.normalizeHeight(!0),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent())):(this.initialized=!1,this.height=0,this.heightStyled=""),this.dispatch("row-data-changed",this,t,e),this.dispatchExternal("rowUpdated",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),s()})}getData(e){return e?this.chain("row-data-retrieve",[this,e],null,this.data):this.data}getCell(e){var t=!1;return e=this.table.columnManager.findColumn(e),!this.initialized&&this.cells.length===0&&this.generateCells(),t=this.cells.find(function(i){return i.column===e}),t}getCellIndex(e){return this.cells.findIndex(function(t){return t===e})}findCell(e){return this.cells.find(t=>t.element===e)}getCells(){return!this.initialized&&this.cells.length===0&&this.generateCells(),this.cells}nextRow(){var e=this.table.rowManager.nextDisplayRow(this,!0);return e||!1}prevRow(){var e=this.table.rowManager.prevDisplayRow(this,!0);return e||!1}moveToRow(e,t){var i=this.table.rowManager.findRow(e);i?(this.table.rowManager.moveRowActual(this,i,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)}delete(){return this.dispatch("row-delete",this),this.deleteActual(),Promise.resolve()}deleteActual(e){this.detachModules(),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.dispatch("row-deleted",this)}detachModules(){this.dispatch("row-deleting",this)}deleteCells(){var e=this.cells.length;for(let t=0;t<e;t++)this.cells[0].delete()}wipe(){if(this.detachModules(),this.deleteCells(),this.element){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.parentNode&&this.element.parentNode.removeChild(this.element)}this.element=!1,this.modules={}}isDisplayed(){return this.table.rowManager.getDisplayRows().includes(this)}getPosition(){return this.isDisplayed()?this.position:!1}setPosition(e){e!=this.position&&(this.position=e,this.positionWatchers.forEach(t=>{t(this.position)}))}watchPosition(e){this.positionWatchers.push(e),e(this.position)}getGroup(){return this.modules.group||!1}getComponent(){return this.component||(this.component=new yr(this)),this.component}}var VE={avg:function(n,e,t){var i=0,r=typeof t.precision<"u"?t.precision:2;return n.length&&(i=n.reduce(function(s,o){return Number(s)+Number(o)}),i=i/n.length,i=r!==!1?i.toFixed(r):i),parseFloat(i).toString()},max:function(n,e,t){var i=null,r=typeof t.precision<"u"?t.precision:!1;return n.forEach(function(s){s=Number(s),(s>i||i===null)&&(i=s)}),i!==null?r!==!1?i.toFixed(r):i:""},min:function(n,e,t){var i=null,r=typeof t.precision<"u"?t.precision:!1;return n.forEach(function(s){s=Number(s),(s<i||i===null)&&(i=s)}),i!==null?r!==!1?i.toFixed(r):i:""},sum:function(n,e,t){var i=0,r=typeof t.precision<"u"?t.precision:!1;return n.length&&n.forEach(function(s){s=Number(s),i+=isNaN(s)?0:Number(s)}),r!==!1?i.toFixed(r):i},concat:function(n,e,t){var i=0;return n.length&&(i=n.reduce(function(r,s){return String(r)+String(s)})),i},count:function(n,e,t){var i=0;return n.length&&n.forEach(function(r){r&&i++}),i},unique:function(n,e,t){var i=n.filter((r,s)=>(n||r===0)&&n.indexOf(r)===s);return i.length}};class qi extends Ve{static moduleName="columnCalcs";static calculations=VE;constructor(e){super(e),this.topCalcs=[],this.botCalcs=[],this.genColumn=!1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.topRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.blocked=!1,this.recalcAfterBlock=!1,this.registerTableOption("columnCalcs",!0),this.registerColumnOption("topCalc"),this.registerColumnOption("topCalcParams"),this.registerColumnOption("topCalcFormatter"),this.registerColumnOption("topCalcFormatterParams"),this.registerColumnOption("bottomCalc"),this.registerColumnOption("bottomCalcParams"),this.registerColumnOption("bottomCalcFormatter"),this.registerColumnOption("bottomCalcFormatterParams")}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-calcs-holder"),e}initialize(){this.genColumn=new Jt({field:"value"},this),this.subscribe("cell-value-changed",this.cellValueChanged.bind(this)),this.subscribe("column-init",this.initializeColumnCheck.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("column-moved",this.recalcActiveRows.bind(this)),this.subscribe("column-add",this.recalcActiveRows.bind(this)),this.subscribe("data-refreshed",this.recalcActiveRowsRefresh.bind(this)),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this)),this.subscribe("redraw-blocked",this.blockRedraw.bind(this)),this.subscribe("redraw-restored",this.restoreRedraw.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this)),this.registerTableFunction("getCalcResults",this.getResults.bind(this)),this.registerTableFunction("recalc",this.userRecalc.bind(this)),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}tableRedraw(e){this.recalc(this.table.rowManager.activeRows),e&&this.redraw()}blockRedraw(){this.blocked=!0,this.recalcAfterBlock=!1}restoreRedraw(){this.blocked=!1,this.recalcAfterBlock&&(this.recalcAfterBlock=!1,this.recalcActiveRowsRefresh())}userRecalc(){this.recalc(this.table.rowManager.activeRows)}blockCheck(){return this.blocked&&(this.recalcAfterBlock=!0),this.blocked}visibleRows(e,t){return this.topRow&&t.unshift(this.topRow),this.botRow&&t.push(this.botRow),t}rowsUpdated(e){this.table.options.groupBy?this.recalcRowGroup(e):this.recalcActiveRows()}recalcActiveRowsRefresh(){this.table.options.groupBy&&this.table.options.dataTreeStartExpanded&&this.table.options.dataTree?this.recalcAll():this.recalcActiveRows()}recalcActiveRows(){this.recalc(this.table.rowManager.activeRows)}cellValueChanged(e){(e.column.definition.topCalc||e.column.definition.bottomCalc)&&(this.table.options.groupBy?((this.table.options.columnCalcs=="table"||this.table.options.columnCalcs=="both")&&this.recalcActiveRows(),this.table.options.columnCalcs!="table"&&this.recalcRowGroup(e.row)):this.recalcActiveRows())}initializeColumnCheck(e){(e.definition.topCalc||e.definition.bottomCalc)&&this.initializeColumn(e)}initializeColumn(e){var t=e.definition,i={topCalcParams:t.topCalcParams||{},botCalcParams:t.bottomCalcParams||{}};if(t.topCalc){switch(typeof t.topCalc){case"string":qi.calculations[t.topCalc]?i.topCalc=qi.calculations[t.topCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.topCalc);break;case"function":i.topCalc=t.topCalc;break}i.topCalc&&(e.modules.columnCalcs=i,this.topCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeTopRow())}if(t.bottomCalc){switch(typeof t.bottomCalc){case"string":qi.calculations[t.bottomCalc]?i.botCalc=qi.calculations[t.bottomCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.bottomCalc);break;case"function":i.botCalc=t.bottomCalc;break}i.botCalc&&(e.modules.columnCalcs=i,this.botCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeBottomRow())}}registerColumnField(){}removeCalcs(){var e=!1;this.topInitialized&&(this.topInitialized=!1,this.topElement.parentNode.removeChild(this.topElement),e=!0),this.botInitialized&&(this.botInitialized=!1,this.footerRemove(this.botElement),e=!0),e&&this.table.rowManager.adjustTableSize()}reinitializeCalcs(){this.topCalcs.length&&this.initializeTopRow(),this.botCalcs.length&&this.initializeBottomRow()}initializeTopRow(){var e=document.createDocumentFragment();this.topInitialized||(e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.topInitialized=!0)}initializeBottomRow(){this.botInitialized||(this.footerPrepend(this.botElement),this.botInitialized=!0)}scrollHorizontal(e){this.botInitialized&&this.botRow&&(this.botElement.scrollLeft=e)}recalc(e){var t,i;if(!this.blockCheck()&&(this.topInitialized||this.botInitialized)){if(t=this.rowsToData(e),this.topInitialized){for(this.topRow&&this.topRow.deleteCells(),i=this.generateRow("top",t),this.topRow=i;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChild);this.topElement.appendChild(i.getElement()),i.initialize(!0)}if(this.botInitialized){for(this.botRow&&this.botRow.deleteCells(),i=this.generateRow("bottom",t),this.botRow=i;this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild);this.botElement.appendChild(i.getElement()),i.initialize(!0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()}}recalcRowGroup(e){this.recalcGroup(this.table.modules.groupRows.getRowGroup(e))}recalcAll(){if((this.topCalcs.length||this.botCalcs.length)&&(this.table.options.columnCalcs!=="group"&&this.recalcActiveRows(),this.table.options.groupBy&&this.table.options.columnCalcs!=="table")){var e=this.table.modules.groupRows.getChildGroups();e.forEach(t=>{this.recalcGroup(t)})}}recalcGroup(e){var t,i;this.blockCheck()||e&&e.calcs&&(e.calcs.bottom&&(t=this.rowsToData(e.rows),i=this.generateRowData("bottom",t),e.calcs.bottom.updateData(i),e.calcs.bottom.reinitialize()),e.calcs.top&&(t=this.rowsToData(e.rows),i=this.generateRowData("top",t),e.calcs.top.updateData(i),e.calcs.top.reinitialize()))}generateTopRow(e){return this.generateRow("top",this.rowsToData(e))}generateBottomRow(e){return this.generateRow("bottom",this.rowsToData(e))}rowsToData(e){var t=[],i=this.table.options.dataTree&&this.table.options.dataTreeChildColumnCalcs,r=this.table.modules.dataTree;return e.forEach(s=>{t.push(s.getData()),i&&s.modules.dataTree?.open&&this.rowsToData(r.getFilteredTreeChildren(s)).forEach(o=>{t.push(s)})}),t}generateRow(e,t){var i=this.generateRowData(e,t),r;return this.table.modExists("mutator")&&this.table.modules.mutator.disable(),r=new pt(i,this,"calc"),this.table.modExists("mutator")&&this.table.modules.mutator.enable(),r.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+e),r.component=!1,r.getComponent=()=>(r.component||(r.component=new HE(r)),r.component),r.generateCells=()=>{var s=[];this.table.columnManager.columnsByIndex.forEach(o=>{this.genColumn.setField(o.getField()),this.genColumn.hozAlign=o.hozAlign,o.definition[e+"CalcFormatter"]&&this.table.modExists("format")?this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter(o.definition[e+"CalcFormatter"]),params:o.definition[e+"CalcFormatterParams"]||{}}:this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter("plaintext"),params:{}},this.genColumn.definition.cssClass=o.definition.cssClass;var l=new En(this.genColumn,r);l.getElement(),l.column=o,l.setWidth(),o.cells.push(l),s.push(l),o.visible||l.hide()}),r.cells=s},r}generateRowData(e,t){var i={},r=e=="top"?this.topCalcs:this.botCalcs,s=e=="top"?"topCalc":"botCalc",o,l;return r.forEach(function(u){var c=[];u.modules.columnCalcs&&u.modules.columnCalcs[s]&&(t.forEach(function(d){c.push(u.getFieldValue(d))}),l=s+"Params",o=typeof u.modules.columnCalcs[l]=="function"?u.modules.columnCalcs[l](c,t):u.modules.columnCalcs[l],u.setFieldValue(i,u.modules.columnCalcs[s](c,t,o)))}),i}hasTopCalcs(){return!!this.topCalcs.length}hasBottomCalcs(){return!!this.botCalcs.length}redraw(){this.topRow&&this.topRow.normalizeHeight(!0),this.botRow&&this.botRow.normalizeHeight(!0)}getResults(){var e={},t;return this.table.options.groupBy&&this.table.modExists("groupRows")?(t=this.table.modules.groupRows.getGroups(!0),t.forEach(i=>{e[i.getKey()]=this.getGroupResults(i)})):e={top:this.topRow?this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():{}},e}getGroupResults(e){var t=e._getSelf(),i=e.getSubGroups(),r={},s={};return i.forEach(o=>{r[o.getKey()]=this.getGroupResults(o)}),s={top:t.calcs.top?t.calcs.top.getData():{},bottom:t.calcs.bottom?t.calcs.bottom.getData():{},groups:r},s}adjustForScrollbar(e){this.botRow&&(this.table.rtl?this.botElement.style.paddingLeft=e+"px":this.botElement.style.paddingRight=e+"px")}}class zE extends Ve{static moduleName="dataTree";constructor(e){super(e),this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this.branchEl=null,this.elementField=!1,this.startOpen=function(){},this.registerTableOption("dataTree",!1),this.registerTableOption("dataTreeFilter",!0),this.registerTableOption("dataTreeSort",!0),this.registerTableOption("dataTreeElementColumn",!1),this.registerTableOption("dataTreeBranchElement",!0),this.registerTableOption("dataTreeChildIndent",9),this.registerTableOption("dataTreeChildField","_children"),this.registerTableOption("dataTreeCollapseElement",!1),this.registerTableOption("dataTreeExpandElement",!1),this.registerTableOption("dataTreeStartExpanded",!1),this.registerTableOption("dataTreeChildColumnCalcs",!1),this.registerTableOption("dataTreeSelectPropagate",!1),this.registerComponentFunction("row","treeCollapse",this.collapseRow.bind(this)),this.registerComponentFunction("row","treeExpand",this.expandRow.bind(this)),this.registerComponentFunction("row","treeToggle",this.toggleRow.bind(this)),this.registerComponentFunction("row","getTreeParent",this.getTreeParent.bind(this)),this.registerComponentFunction("row","getTreeChildren",this.getRowChildren.bind(this)),this.registerComponentFunction("row","addTreeChild",this.addTreeChildRow.bind(this)),this.registerComponentFunction("row","isTreeExpanded",this.isRowExpanded.bind(this))}initialize(){if(this.table.options.dataTree){var e=null,t=this.table.options;switch(this.field=t.dataTreeChildField,this.indent=t.dataTreeChildIndent,this.options("movableRows")&&console.warn("The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"),t.dataTreeBranchElement?t.dataTreeBranchElement===!0?(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch")):typeof t.dataTreeBranchElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeBranchElement,this.branchEl=e.firstChild):this.branchEl=t.dataTreeBranchElement:(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch-empty")),t.dataTreeCollapseElement?typeof t.dataTreeCollapseElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeCollapseElement,this.collapseEl=e.firstChild):this.collapseEl=t.dataTreeCollapseElement:(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabulator-data-tree-control"),this.collapseEl.tabIndex=0,this.collapseEl.innerHTML="<div class='tabulator-data-tree-control-collapse'></div>"),t.dataTreeExpandElement?typeof t.dataTreeExpandElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=t.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="<div class='tabulator-data-tree-control-expand'></div>"),typeof t.dataTreeStartExpanded){case"boolean":this.startOpen=function(i,r){return t.dataTreeStartExpanded};break;case"function":this.startOpen=t.dataTreeStartExpanded;break;default:this.startOpen=function(i,r){return t.dataTreeStartExpanded[r]};break}this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowDelete.bind(this),0),this.subscribe("row-data-changed",this.rowDataChanged.bind(this),10),this.subscribe("cell-value-updated",this.cellValueChanged.bind(this)),this.subscribe("edit-cancelled",this.cellValueChanged.bind(this)),this.subscribe("column-moving-rows",this.columnMoving.bind(this)),this.subscribe("table-built",this.initializeElementField.bind(this)),this.subscribe("table-redrawing",this.tableRedrawing.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),30)}}tableRedrawing(e){var t;e&&(t=this.table.rowManager.getRows(),t.forEach(i=>{this.reinitializeRowChildren(i)}))}initializeElementField(){var e=this.table.columnManager.getFirstVisibleColumn();this.elementField=this.table.options.dataTreeElementColumn||(e?e.field:!1)}getRowChildren(e){return this.getTreeChildren(e,!0)}columnMoving(){var e=[];return this.table.rowManager.rows.forEach(t=>{e=e.concat(this.getTreeChildren(t,!1,!0))}),e}rowDataChanged(e,t,i){this.redrawNeeded(i)&&(this.initializeRow(e),t&&(this.layoutRow(e),this.refreshData(!0)))}cellValueChanged(e){var t=e.column.getField();t===this.elementField&&this.layoutRow(e.row)}initializeRow(e){var t=e.getData()[this.field],i=Array.isArray(t),r=i||!i&&typeof t=="object"&&t!==null;!r&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!r&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:r?e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0):!1,controlEl:e.modules.dataTree&&r?e.modules.dataTree.controlEl:!1,branchEl:e.modules.dataTree&&r?e.modules.dataTree.branchEl:!1,parent:e.modules.dataTree?e.modules.dataTree.parent:!1,children:r}}reinitializeRowChildren(e){var t=this.getTreeChildren(e,!1,!0);t.forEach(function(i){i.reinitialize(!0)})}layoutRow(e){var t=this.elementField?e.getCell(this.elementField):e.getCells()[0],i=t.getElement(),r=e.modules.dataTree;r.branchEl&&(r.branchEl.parentNode&&r.branchEl.parentNode.removeChild(r.branchEl),r.branchEl=!1),r.controlEl&&(r.controlEl.parentNode&&r.controlEl.parentNode.removeChild(r.controlEl),r.controlEl=!1),this.generateControlElement(e,i),e.getElement().classList.add("tabulator-tree-level-"+r.index),r.index&&(this.branchEl?(r.branchEl=this.branchEl.cloneNode(!0),i.insertBefore(r.branchEl,i.firstChild),this.table.rtl?r.branchEl.style.marginRight=(r.branchEl.offsetWidth+r.branchEl.style.marginLeft)*(r.index-1)+r.index*this.indent+"px":r.branchEl.style.marginLeft=(r.branchEl.offsetWidth+r.branchEl.style.marginRight)*(r.index-1)+r.index*this.indent+"px"):this.table.rtl?i.style.paddingRight=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-right"))+r.index*this.indent+"px":i.style.paddingLeft=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-left"))+r.index*this.indent+"px")}generateControlElement(e,t){var i=e.modules.dataTree,r=i.controlEl;t=t||e.getCells()[0].getElement(),i.children!==!1&&(i.open?(i.controlEl=this.collapseEl.cloneNode(!0),i.controlEl.addEventListener("click",s=>{s.stopPropagation(),this.collapseRow(e)})):(i.controlEl=this.expandEl.cloneNode(!0),i.controlEl.addEventListener("click",s=>{s.stopPropagation(),this.expandRow(e)})),i.controlEl.addEventListener("mousedown",s=>{s.stopPropagation()}),r&&r.parentNode===t?r.parentNode.replaceChild(i.controlEl,r):t.insertBefore(i.controlEl,t.firstChild))}getRows(e){var t=[];return e.forEach((i,r)=>{var s,o;t.push(i),i instanceof pt&&(i.create(),s=i.modules.dataTree,!s.index&&s.children!==!1&&(o=this.getChildren(i,!1,!0),o.forEach(l=>{l.create(),t.push(l)})))}),t}getChildren(e,t,i){var r=e.modules.dataTree,s=[],o=[];return r.children!==!1&&(r.open||t)&&(Array.isArray(r.children)||(r.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?s=this.table.modules.filter.filter(r.children):s=r.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(s,i),s.forEach(l=>{o.push(l);var u=this.getChildren(l,!1,!0);u.forEach(c=>{o.push(c)})})),o}generateChildren(e){var t=[],i=e.getData()[this.field];return Array.isArray(i)||(i=[i]),i.forEach(r=>{var s=new pt(r||{},this.table.rowManager);s.create(),s.modules.dataTree.index=e.modules.dataTree.index+1,s.modules.dataTree.parent=e,s.modules.dataTree.children&&(s.modules.dataTree.open=this.startOpen(s.getComponent(),s.modules.dataTree.index)),t.push(s)}),t}expandRow(e,t){var i=e.modules.dataTree;i.children!==!1&&(i.open=!0,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowExpanded",e.getComponent(),e.modules.dataTree.index))}collapseRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open=!1,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowCollapsed",e.getComponent(),e.modules.dataTree.index))}toggleRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open?this.collapseRow(e):this.expandRow(e))}isRowExpanded(e){return e.modules.dataTree.open}getTreeParent(e){return e.modules.dataTree.parent?e.modules.dataTree.parent.getComponent():!1}getTreeParentRoot(e){return e.modules.dataTree&&e.modules.dataTree.parent?this.getTreeParentRoot(e.modules.dataTree.parent):e}getFilteredTreeChildren(e){var t=e.modules.dataTree,i=[],r;return t.children&&(Array.isArray(t.children)||(t.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?r=this.table.modules.filter.filter(t.children):r=t.children,r.forEach(s=>{s instanceof pt&&i.push(s)})),i}rowDeleting(e){var t=e.modules.dataTree;t&&t.children&&Array.isArray(t.children)&&t.children.forEach(i=>{i instanceof pt&&i.wipe()})}rowDelete(e){var t=e.modules.dataTree.parent,i;t&&(i=this.findChildIndex(e,t),i!==!1&&t.data[this.field].splice(i,1),t.data[this.field].length||delete t.data[this.field],this.initializeRow(t),this.layoutRow(t)),this.refreshData(!0)}addTreeChildRow(e,t,i,r){var s=!1;typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),typeof r<"u"&&(s=this.findChildIndex(r,e),s!==!1&&e.data[this.field].splice(i?s:s+1,0,t)),s===!1&&(i?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.refreshData(!0)}findChildIndex(e,t){var i=!1;return typeof e=="object"?e instanceof pt?i=e.data:e instanceof yr?i=e._getSelf().data:typeof HTMLElement<"u"&&e instanceof HTMLElement?t.modules.dataTree&&(i=t.modules.dataTree.children.find(r=>r instanceof pt?r.element===e:!1),i&&(i=i.data)):e===null&&(i=!1):typeof e>"u"?i=!1:i=t.data[this.field].find(r=>r.data[this.table.options.index]==e),i&&(Array.isArray(t.data[this.field])&&(i=t.data[this.field].indexOf(i)),i==-1&&(i=!1)),i}getTreeChildren(e,t,i){var r=e.modules.dataTree,s=[];return r&&r.children&&(Array.isArray(r.children)||(r.children=this.generateChildren(e)),r.children.forEach(o=>{o instanceof pt&&(s.push(t?o.getComponent():o),i&&this.getTreeChildren(o,t,i).forEach(l=>{s.push(l)}))})),s}getChildField(){return this.field}redrawNeeded(e){return(this.field?typeof e[this.field]<"u":!1)||(this.elementField?typeof e[this.elementField]<"u":!1)}}function jE(n,e={},t){var i=e.delimiter?e.delimiter:",",r=[],s=[];n.forEach(o=>{var l=[];switch(o.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":o.columns.forEach((u,c)=>{u&&u.depth===1&&(s[c]=typeof u.value>"u"||u.value===null?"":'"'+String(u.value).split('"').join('""')+'"')});break;case"row":o.columns.forEach(u=>{if(u){switch(typeof u.value){case"object":u.value=u.value!==null?JSON.stringify(u.value):"";break;case"undefined":u.value="";break}l.push('"'+String(u.value).split('"').join('""')+'"')}}),r.push(l.join(i));break}}),s.length&&r.unshift(s.join(i)),r=r.join(`
|
|
34
34
|
`),e.bom&&(r="\uFEFF"+r),t(r,"text/csv")}function WE(n,e,t){var i=[];n.forEach(r=>{var s={};switch(r.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":r.columns.forEach(o=>{o&&(s[o.component.getTitleDownload()||o.component.getField()]=o.value)}),i.push(s);break}}),i=JSON.stringify(i,null," "),t(i,"application/json")}function UE(n,e={},t){var i=[],r=[],s={},o=e.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},l=e.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},u=e.jsPDF||{},c=e.title?e.title:"",d,f;u.orientation||(u.orientation=e.orientation||"landscape"),u.unit||(u.unit="pt"),n.forEach(h=>{switch(h.type){case"header":i.push(p(h));break;case"group":r.push(p(h,o));break;case"calc":r.push(p(h,l));break;case"row":r.push(p(h));break}});function p(h,k){var C=[];return h.columns.forEach(A=>{var w;if(A){switch(typeof A.value){case"object":A.value=A.value!==null?JSON.stringify(A.value):"";break;case"undefined":A.value="";break}w={content:A.value,colSpan:A.width,rowSpan:A.height},k&&(w.styles=k),C.push(w)}}),C}d=this.dependencyRegistry.lookup("jspdf","jsPDF"),f=new d(u),e.autoTable&&(typeof e.autoTable=="function"?s=e.autoTable(f)||{}:s=e.autoTable),c&&(s.didDrawPage=function(h){f.text(c,40,30)}),s.head=i,s.body=r,f.autoTable(s),e.documentProcessing&&e.documentProcessing(f),t(f.output("arraybuffer"),"application/pdf")}function GE(n,e,t){var i=this,r=e.sheetName||"Sheet1",s=this.dependencyRegistry.lookup("XLSX"),o=s.utils.book_new(),l=new dt(this),u="compress"in e?e.compress:!0,c=e.writeOptions||{bookType:"xlsx",bookSST:!0,compression:u},d;c.type="binary",o.SheetNames=[],o.Sheets={};function f(){var k=[],C=[],A={},w={s:{c:0,r:0},e:{c:n[0]?n[0].columns.reduce((m,D)=>m+(D&&D.width?D.width:1),0):0,r:n.length}};return n.forEach((m,D)=>{var g=[];m.columns.forEach(function(M,v){M?(g.push(!(M.value instanceof Date)&&typeof M.value=="object"?JSON.stringify(M.value):M.value),(M.width>1||M.height>-1)&&(M.height>1||M.width>1)&&C.push({s:{r:D,c:v},e:{r:D+M.height-1,c:v+M.width-1}})):g.push("")}),k.push(g)}),s.utils.sheet_add_aoa(A,k),A["!ref"]=s.utils.encode_range(w),C.length&&(A["!merges"]=C),A}if(e.sheetOnly){t(f());return}if(e.sheets)for(var p in e.sheets)e.sheets[p]===!0?(o.SheetNames.push(p),o.Sheets[p]=f()):(o.SheetNames.push(p),l.commsSend(e.sheets[p],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:i.active,intercept:function(k){o.Sheets[p]=k}}));else o.SheetNames.push(r),o.Sheets[r]=f();e.documentProcessing&&(o=e.documentProcessing(o));function h(k){for(var C=new ArrayBuffer(k.length),A=new Uint8Array(C),w=0;w!=k.length;++w)A[w]=k.charCodeAt(w)&255;return C}d=s.write(o,c),t(h(d),"application/octet-stream")}function YE(n,e,t){this.modExists("export",!0)&&t(this.modules.export.generateHTMLTable(n),"text/html")}function QE(n,e,t){const i=[];n.forEach(r=>{const s={};switch(r.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":r.columns.forEach(o=>{o&&(s[o.component.getTitleDownload()||o.component.getField()]=o.value)}),i.push(JSON.stringify(s));break}}),t(i.join(`
|
|
@@ -50,5 +50,5 @@ Received: `,typeof e,`
|
|
|
50
50
|
Data: `,e),!1}loadData(e){var t={data:e};this.loadSheet(this.newSheet(t))}destroySheets(){this.sheets.forEach(e=>{e.destroy()}),this.sheets=[],this.activeSheet=null}loadSheets(e){Array.isArray(e)||(e=[]),this.destroySheets(),e.forEach(t=>{this.newSheet(t)}),this.loadSheet(this.sheets[0])}loadSheet(e){this.activeSheet!==e&&(this.activeSheet&&this.activeSheet.unload(),this.activeSheet=e,e.load())}newSheet(e={}){var t;return e.rows||(e.rows=this.options("spreadsheetRows")),e.columns||(e.columns=this.options("spreadsheetColumns")),t=new id(this,e),this.sheets.push(t),this.element&&this.element.appendChild(t.element),t}removeSheet(e){var t=this.sheets.indexOf(e),i;this.sheets.length>1?t>-1&&(this.sheets.splice(t,1),e.destroy(),this.activeSheet===e&&(i=this.sheets[t-1]||this.sheets[0],i?this.loadSheet(i):this.activeSheet=null)):console.warn("Unable to remove sheet, at least one sheet must be active")}lookupSheet(e){return e?e instanceof id?e:e instanceof td?e._sheet:this.sheets.find(t=>t.key===e)||!1:this.activeSheet}setSheets(e){return this.loadSheets(e),this.getSheets()}addSheet(e){return this.newSheet(e).getComponent()}getSheetDefinitions(){return this.sheets.map(e=>e.getDefinition())}getSheets(){return this.sheets.map(e=>e.getComponent())}getSheet(e){var t=this.lookupSheet(e);return t?t.getComponent():!1}setSheetData(e,t){e&&!t&&(t=e,e=!1);var i=this.lookupSheet(e);return i?i.setData(t):!1}getSheetData(e){var t=this.lookupSheet(e);return t?t.getData():!1}clearSheet(e){var t=this.lookupSheet(e);return t?t.clear():!1}removeSheetFunc(e){var t=this.lookupSheet(e);t&&this.removeSheet(t)}activeSheetFunc(e){var t=this.lookupSheet(e);return t?this.loadSheet(t):!1}}class jk extends Ve{static moduleName="tooltip";constructor(e){super(e),this.tooltipSubscriber=null,this.headerSubscriber=null,this.timeout=null,this.popupInstance=null,this.registerTableOption("tooltipDelay",300),this.registerColumnOption("tooltip"),this.registerColumnOption("headerTooltip")}initialize(){this.deprecatedOptionsCheck(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeColumn(e){e.definition.headerTooltip&&!this.headerSubscriber&&(this.headerSubscriber=!0,this.subscribe("column-mousemove",this.mousemoveCheck.bind(this,"headerTooltip")),this.subscribe("column-mouseout",this.mouseoutCheck.bind(this,"headerTooltip"))),e.definition.tooltip&&!this.tooltipSubscriber&&(this.tooltipSubscriber=!0,this.subscribe("cell-mousemove",this.mousemoveCheck.bind(this,"tooltip")),this.subscribe("cell-mouseout",this.mouseoutCheck.bind(this,"tooltip")))}mousemoveCheck(e,t,i){var r=e==="tooltip"?i.column.definition.tooltip:i.definition.headerTooltip;r&&(this.clearPopup(),this.timeout=setTimeout(this.loadTooltip.bind(this,t,i,r),this.table.options.tooltipDelay))}mouseoutCheck(e,t,i){this.popupInstance||this.clearPopup()}clearPopup(e,t,i){clearTimeout(this.timeout),this.timeout=null,this.popupInstance&&this.popupInstance.hide()}loadTooltip(e,t,i){var r,s,o;function l(u){s=u}typeof i=="function"&&(i=i(e,t.getComponent(),l)),i instanceof HTMLElement?r=i:(r=document.createElement("div"),i===!0&&(t instanceof En?i=t.value:t.definition.field?this.langBind("columns|"+t.definition.field,u=>{r.innerHTML=i=u||t.definition.title}):i=t.definition.title),r.innerHTML=i),(i||i===0||i===!1)&&(r.classList.add("tabulator-tooltip"),r.addEventListener("mousemove",u=>u.preventDefault()),this.popupInstance=this.popup(r),typeof s=="function"&&this.popupInstance.renderCallback(s),o=this.popupInstance.containerEventCoords(e),this.popupInstance.show(o.x+15,o.y+15).hideOnBlur(()=>{this.dispatchExternal("TooltipClosed",t.getComponent()),this.popupInstance=null}),this.dispatchExternal("TooltipOpened",t.getComponent()))}}var Wk={integer:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&Math.floor(e)===e)},float:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&e%1!==0)},numeric:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:!isNaN(e)},string:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:isNaN(e)},alphanumeric:function(n,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=new RegExp(/^[a-z0-9]+$/i);return i.test(e)},max:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)<=t},min:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)>=t},starts:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().startsWith(String(t).toLowerCase())},ends:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().endsWith(String(t).toLowerCase())},minLength:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length>=t},maxLength:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length<=t},in:function(n,e,t){return e===""||e===null||typeof e>"u"?!0:(typeof t=="string"&&(t=t.split("|")),t.indexOf(e)>-1)},regex:function(n,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=new RegExp(t);return i.test(e)},unique:function(n,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=!0,r=n.getData(),s=n.getColumn()._getSelf();return this.table.rowManager.rows.forEach(function(o){var l=o.getData();l!==r&&e==s.getFieldValue(l)&&(i=!1)}),i},required:function(n,e,t){return e!==""&&e!==null&&typeof e<"u"}};class Go extends Ve{static moduleName="validate";static validators=Wk;constructor(e){super(e),this.invalidCells=[],this.registerTableOption("validationMode","blocking"),this.registerColumnOption("validator"),this.registerTableFunction("getInvalidCells",this.getInvalidCells.bind(this)),this.registerTableFunction("clearCellValidation",this.userClearCellValidation.bind(this)),this.registerTableFunction("validate",this.userValidate.bind(this)),this.registerComponentFunction("cell","isValid",this.cellIsValid.bind(this)),this.registerComponentFunction("cell","clearValidation",this.clearValidation.bind(this)),this.registerComponentFunction("cell","validate",this.cellValidate.bind(this)),this.registerComponentFunction("column","validate",this.columnValidate.bind(this)),this.registerComponentFunction("row","validate",this.rowValidate.bind(this))}initialize(){this.subscribe("cell-delete",this.clearValidation.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("edit-success",this.editValidate.bind(this)),this.subscribe("edit-editor-clear",this.editorClear.bind(this)),this.subscribe("edit-edited-clear",this.editedClear.bind(this))}editValidate(e,t,i){var r=this.table.options.validationMode!=="manual"?this.validate(e.column.modules.validate,e,t):!0;return r!==!0&&setTimeout(()=>{e.getElement().classList.add("tabulator-validation-fail"),this.dispatchExternal("validationFailed",e.getComponent(),t,r)}),r}editorClear(e,t){t&&e.column.modules.validate&&this.cellValidate(e),e.getElement().classList.remove("tabulator-validation-fail")}editedClear(e){e.modules.validate&&(e.modules.validate.invalid=!1)}cellIsValid(e){return e.modules.validate&&e.modules.validate.invalid||!0}cellValidate(e){return this.validate(e.column.modules.validate,e,e.getValue())}columnValidate(e){var t=[];return e.cells.forEach(i=>{this.cellValidate(i)!==!0&&t.push(i.getComponent())}),t.length?t:!0}rowValidate(e){var t=[];return e.cells.forEach(i=>{this.cellValidate(i)!==!0&&t.push(i.getComponent())}),t.length?t:!0}userClearCellValidation(e){e||(e=this.getInvalidCells()),Array.isArray(e)||(e=[e]),e.forEach(t=>{this.clearValidation(t._getSelf())})}userValidate(e){var t=[];return this.table.rowManager.rows.forEach(i=>{i=i.getComponent();var r=i.validate();r!==!0&&(t=t.concat(r))}),t.length?t:!0}initializeColumnCheck(e){typeof e.definition.validator<"u"&&this.initializeColumn(e)}initializeColumn(e){var t=this,i=[],r;e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach(s=>{r=t._extractValidator(s),r&&i.push(r)}):(r=this._extractValidator(e.definition.validator),r&&i.push(r)),e.modules.validate=i.length?i:!1)}_extractValidator(e){var t,i,r;switch(typeof e){case"string":return r=e.indexOf(":"),r>-1?(t=e.substring(0,r),i=e.substring(r+1)):t=e,this._buildValidator(t,i);case"function":return this._buildValidator(e);case"object":return this._buildValidator(e.type,e.parameters)}}_buildValidator(e,t){var i=typeof e=="function"?e:Go.validators[e];return i?{type:typeof e=="function"?"function":e,func:i,params:t}:(console.warn("Validator Setup Error - No matching validator found:",e),!1)}validate(e,t,i){var r=this,s=[],o=this.invalidCells.indexOf(t);return e&&e.forEach(l=>{l.func.call(r,t.getComponent(),i,l.params)||s.push({type:l.type,parameters:l.params})}),t.modules.validate||(t.modules.validate={}),s.length?(t.modules.validate.invalid=s,this.table.options.validationMode!=="manual"&&t.getElement().classList.add("tabulator-validation-fail"),o==-1&&this.invalidCells.push(t)):(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),o>-1&&this.invalidCells.splice(o,1)),s.length?s:!0}getInvalidCells(){var e=[];return this.invalidCells.forEach(t=>{e.push(t.getComponent())}),e}clearValidation(e){var t;e.modules.validate&&e.modules.validate.invalid&&(e.getElement().classList.remove("tabulator-validation-fail"),e.modules.validate.invalid=!1,t=this.invalidCells.indexOf(e),t>-1&&this.invalidCells.splice(t,1))}}var Yo=Object.freeze({__proto__:null,AccessorModule:br,AjaxModule:Ji,ClipboardModule:vr,ColumnCalcsModule:qi,DataTreeModule:zE,DownloadModule:wr,EditModule:Vo,ExportModule:kn,FilterModule:Mi,FormatModule:$i,FrozenColumnsModule:_0,FrozenRowsModule:P0,GroupRowsModule:I0,HistoryModule:Ar,HtmlTableImportModule:U0,ImportModule:jo,InteractionModule:q0,KeybindingsModule:Sn,MenuModule:X0,MoveColumnsModule:ek,MoveRowsModule:Er,MutatorModule:kr,PageModule:Wo,PersistenceModule:qt,PopupModule:uk,PrintModule:ck,ReactiveDataModule:dk,ResizeColumnsModule:hk,ResizeRowsModule:fk,ResizeTableModule:pk,ResponsiveLayoutModule:bk,SelectRangeModule:Dk,SelectRowModule:wk,SortModule:xn,SpreadsheetModule:zk,TooltipModule:jk,ValidateModule:Go}),Uk={debugEventsExternal:!1,debugEventsInternal:!1,debugInvalidOptions:!0,debugInvalidComponentFuncs:!0,debugInitialization:!0,debugDeprecation:!0,height:!1,minHeight:!1,maxHeight:!1,columnHeaderVertAlign:"top",popupContainer:!1,columns:[],columnDefaults:{},rowHeader:!1,data:!1,autoColumns:!1,autoColumnsDefinitions:!1,nestedFieldSeparator:".",footerElement:!1,index:"id",textDirection:"auto",addRowPos:"bottom",headerVisible:!0,renderVertical:"virtual",renderHorizontal:"basic",renderVerticalBuffer:0,scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,rowHeight:null,placeholder:!1,dataLoader:!0,dataLoaderLoading:!1,dataLoaderError:!1,dataLoaderErrorTimeout:3e3,dataSendParams:{},dataReceiveParams:{},dependencies:{}};class nd{constructor(e,t,i={}){this.table=e,this.msgType=t,this.registeredDefaults=Object.assign({},i)}register(e,t){this.registeredDefaults[e]=t}generate(e,t={}){var i=Object.assign({},this.registeredDefaults),r=this.table.options.debugInvalidOptions||t.debugInvalidOptions===!0;Object.assign(i,e);for(let s in t)i.hasOwnProperty(s)||(r&&console.warn("Invalid "+this.msgType+" option:",s),i[s]=t.key);for(let s in i)s in t?i[s]=t[s]:Array.isArray(i[s])?i[s]=Object.assign([],i[s]):typeof i[s]=="object"&&i[s]!==null?i[s]=Object.assign({},i[s]):typeof i[s]>"u"&&delete i[s];return i}}class Sr extends dt{constructor(e){super(e),this.elementVertical=e.rowManager.element,this.elementHorizontal=e.columnManager.element,this.tableElement=e.rowManager.tableElement,this.verticalFillMode="fit"}initialize(){}clearRows(){}clearColumns(){}reinitializeColumnWidths(e){}renderRows(){}renderColumns(){}rerenderRows(e){e&&e()}rerenderColumns(e,t){}renderRowCells(e){}rerenderRowCells(e,t){}scrollColumns(e,t){}scrollRows(e,t){}resize(){}scrollToRow(e){}scrollToRowNearestTop(e){}visibleRows(e){return[]}rows(){return this.table.rowManager.getDisplayRows()}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}clear(){this.clearRows(),this.clearColumns()}render(){this.renderRows(),this.renderColumns()}rerender(e){this.rerenderRows(),this.rerenderColumns()}scrollToRowPosition(e,t,i){var r=this.rows().indexOf(e),s=e.getElement(),o=0;return new Promise((l,u)=>{if(r>-1){if(typeof i>"u"&&(i=this.table.options.scrollToRowIfVisible),!i&&Ze.elVisible(s)&&(o=Ze.elOffset(s).top-Ze.elOffset(this.elementVertical).top,o>0&&o<this.elementVertical.clientHeight-s.offsetHeight))return l(),!1;switch(typeof t>"u"&&(t=this.table.options.scrollToRowPosition),t==="nearest"&&(t=this.scrollToRowNearestTop(e)?"top":"bottom"),this.scrollToRow(e),t){case"middle":case"center":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop+(s.offsetTop-this.elementVertical.scrollTop)-(this.elementVertical.scrollHeight-s.offsetTop)/2:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight/2;break;case"bottom":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop-(this.elementVertical.scrollHeight-s.offsetTop)+s.offsetHeight:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight+s.offsetHeight;break;case"top":this.elementVertical.scrollTop=s.offsetTop;break}l()}else console.warn("Scroll Error - Row not visible"),u("Scroll Error - Row not visible")})}}class Gk extends Sr{constructor(e){super(e)}renderRowCells(e,t){const i=document.createDocumentFragment();e.cells.forEach(r=>{i.appendChild(r.getElement())}),e.element.appendChild(i),t||e.cells.forEach(r=>{r.cellRendered()})}reinitializeColumnWidths(e){e.forEach(function(t){t.reinitializeWidth()})}}class Yk extends Sr{constructor(e){super(e),this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.windowBuffer=200,this.visibleRows=null,this.initialized=!1,this.isFitData=!1,this.columns=[]}initialize(){this.compatibilityCheck(),this.layoutCheck(),this.vertScrollListen()}compatibilityCheck(){this.options("layout")=="fitDataTable"&&console.warn("Horizontal Virtual DOM is not compatible with fitDataTable layout mode"),this.options("responsiveLayout")&&console.warn("Horizontal Virtual DOM is not compatible with responsive columns"),this.options("rtl")&&console.warn("Horizontal Virtual DOM is not currently compatible with RTL text direction")}layoutCheck(){this.isFitData=this.options("layout").startsWith("fitData")}vertScrollListen(){this.subscribe("scroll-vertical",this.clearVisRowCache.bind(this)),this.subscribe("data-refreshed",this.clearVisRowCache.bind(this))}clearVisRowCache(){this.visibleRows=null}renderColumns(e,t){this.dataChange()}scrollColumns(e,t){this.scrollLeft!=e&&(this.scrollLeft=e,this.scroll(e-(this.vDomScrollPosLeft+this.windowBuffer)))}calcWindowBuffer(){var e=this.elementVertical.clientWidth;this.table.columnManager.columnsByIndex.forEach(t=>{if(t.visible){var i=t.getWidth();i>e&&(e=i)}}),this.windowBuffer=e*2}rerenderColumns(e,t){var i={cols:this.columns,leftCol:this.leftCol,rightCol:this.rightCol},r=0;e&&!this.initialized||(this.clear(),this.calcWindowBuffer(),this.scrollLeft=this.elementVertical.scrollLeft,this.vDomScrollPosLeft=this.scrollLeft-this.windowBuffer,this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,this.table.columnManager.columnsByIndex.forEach(s=>{var o={},l;s.visible&&(s.modules.frozen||(l=s.getWidth(),o.leftPos=r,o.rightPos=r+l,o.width=l,this.isFitData&&(o.fitDataCheck=s.modules.vdomHoz?s.modules.vdomHoz.fitDataCheck:!0),r+l>this.vDomScrollPosLeft&&r<this.vDomScrollPosRight?(this.leftCol==-1&&(this.leftCol=this.columns.length,this.vDomPadLeft=r),this.rightCol=this.columns.length):this.leftCol!==-1&&(this.vDomPadRight+=l),this.columns.push(s),s.modules.vdomHoz=o,r+=l))}),this.tableElement.style.paddingLeft=this.vDomPadLeft+"px",this.tableElement.style.paddingRight=this.vDomPadRight+"px",this.initialized=!0,t||(!e||this.reinitChanged(i))&&this.reinitializeRows(),this.elementVertical.scrollLeft=this.scrollLeft)}renderRowCells(e){if(this.initialized)this.initializeRow(e);else{const t=document.createDocumentFragment();e.cells.forEach(i=>{t.appendChild(i.getElement())}),e.element.appendChild(t),e.cells.forEach(i=>{i.cellRendered()})}}rerenderRowCells(e,t){this.reinitializeRow(e,t)}reinitializeColumnWidths(e){for(let t=this.leftCol;t<=this.rightCol;t++){let i=this.columns[t];i&&i.reinitializeWidth()}}deinitialize(){this.initialized=!1}clear(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0}dataChange(){var e=!1,t,i;if(this.isFitData){if(this.table.columnManager.columnsByIndex.forEach(r=>{!r.definition.width&&r.visible&&(e=!0)}),e&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,t=this.chain("rows-sample",[1],[],()=>this.table.rowManager.getDisplayRows())[0],t)){i=t.getElement(),t.generateCells(),this.tableElement.appendChild(i);for(let r=0;r<t.cells.length;r++){let s=t.cells[r];i.appendChild(s.getElement()),s.column.reinitializeWidth()}i.parentNode.removeChild(i),this.rerenderColumns(!1,!0)}}else this.options("layout")==="fitColumns"&&(this.layoutRefresh(),this.rerenderColumns(!1,!0))}reinitChanged(e){var t=!0;return e.cols.length!==this.columns.length||e.leftCol!==this.leftCol||e.rightCol!==this.rightCol?!0:(e.cols.forEach((i,r)=>{i!==this.columns[r]&&(t=!1)}),!t)}reinitializeRows(){var e=this.getVisibleRows(),t=this.table.rowManager.getRows().filter(i=>!e.includes(i));e.forEach(i=>{this.reinitializeRow(i,!0)}),t.forEach(i=>{i.deinitialize()})}getVisibleRows(){return this.visibleRows||(this.visibleRows=this.table.rowManager.getVisibleRows()),this.visibleRows}scroll(e){this.vDomScrollPosLeft+=e,this.vDomScrollPosRight+=e,Math.abs(e)>this.windowBuffer/2?this.rerenderColumns():e>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())}colPositionAdjust(e,t,i){for(let r=e;r<t;r++){let s=this.columns[r];s.modules.vdomHoz.leftPos+=i,s.modules.vdomHoz.rightPos+=i}}addColRight(){for(var e=!1,t=!0;t;){let i=this.columns[this.rightCol+1];i&&i.modules.vdomHoz.leftPos<=this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach(r=>{if(r.type!=="group"){var s=r.getCell(i);r.getElement().insertBefore(s.getElement(),r.getCell(this.columns[this.rightCol]).getElement().nextSibling),s.cellRendered()}}),this.fitDataColActualWidthCheck(i),this.rightCol++,this.getVisibleRows().forEach(r=>{r.type!=="group"&&(r.modules.vdomHoz.rightCol=this.rightCol)}),this.rightCol>=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=i.getWidth()):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}addColLeft(){for(var e=!1,t=!0;t;){let i=this.columns[this.leftCol-1];if(i)if(i.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){e=!0,this.getVisibleRows().forEach(s=>{if(s.type!=="group"){var o=s.getCell(i);s.getElement().insertBefore(o.getElement(),s.getCell(this.columns[this.leftCol]).getElement()),o.cellRendered()}}),this.leftCol--,this.getVisibleRows().forEach(s=>{s.type!=="group"&&(s.modules.vdomHoz.leftCol=this.leftCol)}),this.leftCol<=0?this.vDomPadLeft=0:this.vDomPadLeft-=i.getWidth();let r=this.fitDataColActualWidthCheck(i);r&&(this.scrollLeft=this.elementVertical.scrollLeft=this.elementVertical.scrollLeft+r,this.vDomPadRight-=r)}else t=!1;else t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}removeColRight(){for(var e=!1,t=!0;t;){let i=this.columns[this.rightCol];i&&i.modules.vdomHoz.leftPos>this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach(r=>{if(r.type!=="group"){var s=r.getCell(i);try{r.getElement().removeChild(s.getElement())}catch(o){console.warn("Could not removeColRight",o.message)}}}),this.vDomPadRight+=i.getWidth(),this.rightCol--,this.getVisibleRows().forEach(r=>{r.type!=="group"&&(r.modules.vdomHoz.rightCol=this.rightCol)})):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}removeColLeft(){for(var e=!1,t=!0;t;){let i=this.columns[this.leftCol];i&&i.modules.vdomHoz.rightPos<this.vDomScrollPosLeft?(e=!0,this.getVisibleRows().forEach(r=>{if(r.type!=="group"){var s=r.getCell(i);try{r.getElement().removeChild(s.getElement())}catch(o){console.warn("Could not removeColLeft",o.message)}}}),this.vDomPadLeft+=i.getWidth(),this.leftCol++,this.getVisibleRows().forEach(r=>{r.type!=="group"&&(r.modules.vdomHoz.leftCol=this.leftCol)})):t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}fitDataColActualWidthCheck(e){var t,i;return e.modules.vdomHoz.fitDataCheck&&(e.reinitializeWidth(),t=e.getWidth(),i=t-e.modules.vdomHoz.width,i&&(e.modules.vdomHoz.rightPos+=i,e.modules.vdomHoz.width=t,this.colPositionAdjust(this.columns.indexOf(e)+1,this.columns.length,i)),e.modules.vdomHoz.fitDataCheck=!1),i}initializeRow(e){if(e.type!=="group"){e.modules.vdomHoz={leftCol:this.leftCol,rightCol:this.rightCol},this.table.modules.frozenColumns&&this.table.modules.frozenColumns.leftColumns.forEach(t=>{this.appendCell(e,t)});for(let t=this.leftCol;t<=this.rightCol;t++)this.appendCell(e,this.columns[t]);this.table.modules.frozenColumns&&this.table.modules.frozenColumns.rightColumns.forEach(t=>{this.appendCell(e,t)})}}appendCell(e,t){if(t&&t.visible){let i=e.getCell(t);e.getElement().appendChild(i.getElement()),i.cellRendered()}}reinitializeRow(e,t){if(e.type!=="group"&&(t||!e.modules.vdomHoz||e.modules.vdomHoz.leftCol!==this.leftCol||e.modules.vdomHoz.rightCol!==this.rightCol)){for(var i=e.getElement();i.firstChild;)i.removeChild(i.firstChild);this.initializeRow(e)}}}class Qk extends dt{constructor(e){super(e),this.blockHozScrollEvent=!1,this.headersElement=null,this.contentsElement=null,this.rowHeader=null,this.element=null,this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.scrollLeft=0,this.optionsList=new nd(this.table,"column definition",Xc),this.redrawBlock=!1,this.redrawBlockUpdate=null,this.renderer=null}initialize(){this.initializeRenderer(),this.headersElement=this.createHeadersElement(),this.contentsElement=this.createHeaderContentsElement(),this.element=this.createHeaderElement(),this.contentsElement.insertBefore(this.headersElement,this.contentsElement.firstChild),this.element.insertBefore(this.contentsElement,this.element.firstChild),this.initializeScrollWheelWatcher(),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("scrollbar-vertical",this.padVerticalScrollbar.bind(this))}padVerticalScrollbar(e){this.table.rtl?this.headersElement.style.marginLeft=e+"px":this.headersElement.style.marginRight=e+"px"}initializeRenderer(){var e,t={virtual:Yk,basic:Gk};typeof this.table.options.renderHorizontal=="string"?e=t[this.table.options.renderHorizontal]:e=this.table.options.renderHorizontal,e?(this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize()):console.error("Unable to find matching renderer:",this.table.options.renderHorizontal)}createHeadersElement(){var e=document.createElement("div");return e.classList.add("tabulator-headers"),e.setAttribute("role","row"),e}createHeaderContentsElement(){var e=document.createElement("div");return e.classList.add("tabulator-header-contents"),e.setAttribute("role","rowgroup"),e}createHeaderElement(){var e=document.createElement("div");return e.classList.add("tabulator-header"),e.setAttribute("role","rowgroup"),this.table.options.headerVisible||e.classList.add("tabulator-header-hidden"),e}getElement(){return this.element}getContentsElement(){return this.contentsElement}getHeadersElement(){return this.headersElement}scrollHorizontal(e){this.contentsElement.scrollLeft=e,this.scrollLeft=e,this.renderer.scrollColumns(e)}initializeScrollWheelWatcher(){this.contentsElement.addEventListener("wheel",e=>{var t;e.deltaX&&(t=this.contentsElement.scrollLeft+e.deltaX,this.table.rowManager.scrollHorizontal(t),this.table.columnManager.scrollHorizontal(t))})}generateColumnsFromRowData(e){var t=[],i={},r=this.table.options.autoColumns==="full"?e:[e[0]],s=this.table.options.autoColumnsDefinitions;if(e&&e.length){if(r.forEach(o=>{Object.keys(o).forEach((l,u)=>{let c=o[l],d;i[l]?i[l]!==!0&&typeof c<"u"&&(i[l].sorter=this.calculateSorterFromValue(c),i[l]=!0):(d={field:l,title:l,sorter:this.calculateSorterFromValue(c)},t.splice(u,0,d),i[l]=typeof c>"u"?d:!0)})}),s)switch(typeof s){case"function":this.table.options.columns=s.call(this.table,t);break;case"object":Array.isArray(s)?t.forEach(o=>{var l=s.find(u=>u.field===o.field);l&&Object.assign(o,l)}):t.forEach(o=>{s[o.field]&&Object.assign(o,s[o.field])}),this.table.options.columns=t;break}else this.table.options.columns=t;this.setColumns(this.table.options.columns)}}calculateSorterFromValue(e){var t;switch(typeof e){case"undefined":t="string";break;case"boolean":t="boolean";break;case"number":t="number";break;case"object":Array.isArray(e)?t="array":t="string";break;default:!isNaN(e)&&e!==""?t="number":e.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?t="alphanum":t="string";break}return t}setColumns(e,t){for(;this.headersElement.firstChild;)this.headersElement.removeChild(this.headersElement.firstChild);this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.dispatch("columns-loading"),this.dispatchExternal("columnsLoading"),this.table.options.rowHeader&&(this.rowHeader=new Jt(this.table.options.rowHeader===!0?{}:this.table.options.rowHeader,this,!0),this.columns.push(this.rowHeader),this.headersElement.appendChild(this.rowHeader.getElement()),this.rowHeader.columnRendered()),e.forEach((i,r)=>{this._addColumn(i)}),this._reIndexColumns(),this.dispatch("columns-loaded"),this.subscribedExternal("columnsLoaded")&&this.dispatchExternal("columnsLoaded",this.getComponents()),this.rerenderColumns(!1,!0),this.redraw(!0)}_addColumn(e,t,i){var r=new Jt(e,this),s=r.getElement(),o=i&&this.findColumnIndex(i);if(t&&this.rowHeader&&(!i||i===this.rowHeader)&&(t=!1,i=this.rowHeader,o=0),i&&o>-1){var l=i.getTopColumn(),u=this.columns.indexOf(l),c=l.getElement();t?(this.columns.splice(u,0,r),c.parentNode.insertBefore(s,c)):(this.columns.splice(u+1,0,r),c.parentNode.insertBefore(s,c.nextSibling))}else t?(this.columns.unshift(r),this.headersElement.insertBefore(r.getElement(),this.headersElement.firstChild)):(this.columns.push(r),this.headersElement.appendChild(r.getElement()));return r.columnRendered(),r}registerColumnField(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)}registerColumnPosition(e){this.columnsByIndex.push(e)}_reIndexColumns(){this.columnsByIndex=[],this.columns.forEach(function(e){e.reRegisterPosition()})}verticalAlignHeaders(){var e=0;this.redrawBlock||(this.headersElement.style.height="",this.columns.forEach(t=>{t.clearVerticalAlign()}),this.columns.forEach(t=>{var i=t.getHeight();i>e&&(e=i)}),this.headersElement.style.height=e+"px",this.columns.forEach(t=>{t.verticalAlign(this.table.options.columnHeaderVertAlign,e)}),this.table.rowManager.adjustTableSize())}findColumn(e){var t;if(typeof e=="object"){if(e instanceof Jt)return e;if(e instanceof Zc)return e._getSelf()||!1;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return t=[],this.columns.forEach(r=>{t.push(r),t=t.concat(r.getColumns(!0))}),t.find(r=>r.element===e)||!1}else return this.columnsByField[e]||!1;return!1}getColumnByField(e){return this.columnsByField[e]}getColumnsByFieldRoot(e){var t=[];return Object.keys(this.columnsByField).forEach(i=>{var r=this.table.options.nestedFieldSeparator?i.split(this.table.options.nestedFieldSeparator)[0]:i;r===e&&t.push(this.columnsByField[i])}),t}getColumnByIndex(e){return this.columnsByIndex[e]}getFirstVisibleColumn(){var e=this.columnsByIndex.findIndex(t=>t.visible);return e>-1?this.columnsByIndex[e]:!1}getVisibleColumnsByIndex(){return this.columnsByIndex.filter(e=>e.visible)}getColumns(){return this.columns}findColumnIndex(e){return this.columnsByIndex.findIndex(t=>e===t)}getRealColumns(){return this.columnsByIndex}traverse(e){this.columnsByIndex.forEach((t,i)=>{e(t,i)})}getDefinitions(e){var t=[];return this.columnsByIndex.forEach(i=>{(!e||e&&i.visible)&&t.push(i.getDefinition())}),t}getDefinitionTree(){var e=[];return this.columns.forEach(t=>{e.push(t.getDefinition(!0))}),e}getComponents(e){var t=[],i=e?this.columns:this.columnsByIndex;return i.forEach(r=>{t.push(r.getComponent())}),t}getWidth(){var e=0;return this.columnsByIndex.forEach(t=>{t.visible&&(e+=t.getWidth())}),e}moveColumn(e,t,i){t.element.parentNode.insertBefore(e.element,t.element),i&&t.element.parentNode.insertBefore(t.element,e.element),this.moveColumnActual(e,t,i),this.verticalAlignHeaders(),this.table.rowManager.reinitialize()}moveColumnActual(e,t,i){e.parent.isGroup?this._moveColumnInArray(e.parent.columns,e,t,i):this._moveColumnInArray(this.columns,e,t,i),this._moveColumnInArray(this.columnsByIndex,e,t,i,!0),this.rerenderColumns(!0),this.dispatch("column-moved",e,t,i),this.subscribedExternal("columnMoved")&&this.dispatchExternal("columnMoved",e.getComponent(),this.table.columnManager.getComponents())}_moveColumnInArray(e,t,i,r,s){var o=e.indexOf(t),l,u=[];o>-1&&(e.splice(o,1),l=e.indexOf(i),l>-1?r&&(l=l+1):l=o,e.splice(l,0,t),s&&(u=this.chain("column-moving-rows",[t,i,r],null,[])||[],u=u.concat(this.table.rowManager.rows),u.forEach(function(c){if(c.cells.length){var d=c.cells.splice(o,1)[0];c.cells.splice(l,0,d)}})))}scrollToColumn(e,t,i){var r=0,s=e.getLeftOffset(),o=0,l=e.getElement();return new Promise((u,c)=>{if(typeof t>"u"&&(t=this.table.options.scrollToColumnPosition),typeof i>"u"&&(i=this.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":o=-this.element.clientWidth/2;break;case"right":o=l.clientWidth-this.headersElement.clientWidth;break}if(!i&&s>0&&s+l.offsetWidth<this.element.clientWidth)return!1;r=s+o,r=Math.max(Math.min(r,this.table.rowManager.element.scrollWidth-this.table.rowManager.element.clientWidth),0),this.table.rowManager.scrollHorizontal(r),this.scrollHorizontal(r),u()}else console.warn("Scroll Error - Column not visible"),c("Scroll Error - Column not visible")})}generateCells(e){var t=[];return this.columnsByIndex.forEach(i=>{t.push(i.generateCell(e))}),t}getFlexBaseWidth(){var e=this.table.element.clientWidth,t=0;return this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(e-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),this.columnsByIndex.forEach(function(i){var r,s,o;i.visible&&(r=i.definition.width||0,s=parseInt(i.minWidth),typeof r=="string"?r.indexOf("%")>-1?o=e/100*parseInt(r):o=parseInt(r):o=r,t+=o>s?o:s)}),t}addColumn(e,t,i){return new Promise((r,s)=>{var o=this._addColumn(e,t,i);this._reIndexColumns(),this.dispatch("column-add",e,t,i),this.layoutMode()!="fitColumns"&&o.reinitializeWidth(),this.redraw(!0),this.table.rowManager.reinitialize(),this.rerenderColumns(),r(o)})}deregisterColumn(e){var t=e.getField(),i;t&&delete this.columnsByField[t],i=this.columnsByIndex.indexOf(e),i>-1&&this.columnsByIndex.splice(i,1),i=this.columns.indexOf(e),i>-1&&this.columns.splice(i,1),this.verticalAlignHeaders(),this.redraw()}rerenderColumns(e,t){this.redrawBlock?(e===!1||e===!0&&this.redrawBlockUpdate===null)&&(this.redrawBlockUpdate=e):this.renderer.rerenderColumns(e,t)}blockRedraw(){this.redrawBlock=!0,this.redrawBlockUpdate=null}restoreRedraw(){this.redrawBlock=!1,this.verticalAlignHeaders(),this.renderer.rerenderColumns(this.redrawBlockUpdate)}redraw(e){Ze.elVisible(this.element)&&this.verticalAlignHeaders(),e&&(this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),this.confirm("table-redrawing",e)||this.layoutRefresh(e),this.dispatch("table-redraw",e),this.table.footerManager.redraw()}}class Kk extends Sr{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.scrollTop=0,e.scrollLeft=0,e.style.minWidth="",e.style.minHeight="",e.style.display="",e.style.visibility=""}renderRows(){var e=this.tableElement,t=!0,i=document.createDocumentFragment(),r=this.rows();r.forEach((s,o)=>{this.styleRow(s,o),s.initialize(!1,!0),s.type!=="group"&&(t=!1),i.appendChild(s.getElement())}),e.appendChild(i),r.forEach(s=>{s.rendered(),s.heightInitialized||s.calcHeight(!0)}),r.forEach(s=>{s.heightInitialized||s.setCellHeight()}),t?e.style.minWidth=this.table.columnManager.getWidth()+"px":e.style.minWidth=""}rerenderRows(e){this.clearRows(),e&&e(),this.renderRows(),this.rows().length||this.table.rowManager.tableEmpty()}scrollToRowNearestTop(e){var t=Ze.elOffset(e.getElement()).top;return!(Math.abs(this.elementVertical.scrollTop-t)>Math.abs(this.elementVertical.scrollTop+this.elementVertical.clientHeight-t))}scrollToRow(e){var t=e.getElement();this.elementVertical.scrollTop=Ze.elOffset(t).top-Ze.elOffset(this.elementVertical).top+this.elementVertical.scrollTop}visibleRows(e){return this.rows()}}class Jk extends Sr{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[]}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.style.paddingTop="",e.style.paddingBottom="",e.style.minHeight="",e.style.display="",e.style.visibility="",this.elementVertical.scrollTop=0,this.elementVertical.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0,this.vDomTop=0,this.vDomBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0}renderRows(){this._virtualRenderFill()}rerenderRows(e){for(var t=this.elementVertical.scrollTop,i=!1,r=!1,s=this.table.rowManager.scrollLeft,o=this.rows(),l=this.vDomTop;l<=this.vDomBottom;l++)if(o[l]){var u=t-o[l].getElement().offsetTop;if(r===!1||Math.abs(u)<r)r=u,i=l;else break}o.forEach(c=>{c.deinitializeHeight()}),e&&e(),this.rows().length?this._virtualRenderFill(i===!1?this.rows.length-1:i,!0,r||0):(this.clear(),this.table.rowManager.tableEmpty()),this.scrollColumns(s)}scrollColumns(e){this.table.rowManager.scrollHorizontal(e)}scrollRows(e,t){var i=e-this.vDomScrollPosTop,r=e-this.vDomScrollPosBottom,s=this.vDomWindowBuffer*2,o=this.rows();if(this.scrollTop=e,-i>s||r>s){var l=this.table.rowManager.scrollLeft;this._virtualRenderFill(Math.floor(this.elementVertical.scrollTop/this.elementVertical.scrollHeight*o.length)),this.scrollColumns(l)}else t?(i<0&&this._addTopRow(o,-i),r<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(o,-r):this.vDomScrollPosBottom=this.scrollTop)):(r>=0&&this._addBottomRow(o,r),i>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(o,i):this.vDomScrollPosTop=this.scrollTop))}resize(){this.vDomWindowBuffer=this.table.options.renderVerticalBuffer||this.elementVertical.clientHeight}scrollToRowNearestTop(e){var t=this.rows().indexOf(e);return!(Math.abs(this.vDomTop-t)>Math.abs(this.vDomBottom-t))}scrollToRow(e){var t=this.rows().indexOf(e);t>-1&&this._virtualRenderFill(t,!0)}visibleRows(e){var t=this.elementVertical.scrollTop,i=this.elementVertical.clientHeight+t,r=!1,s=0,o=0,l=this.rows();if(e)s=this.vDomTop,o=this.vDomBottom;else for(var u=this.vDomTop;u<=this.vDomBottom;u++)if(l[u])if(r)if(i-l[u].getElement().offsetTop>=0)o=u;else break;else if(t-l[u].getElement().offsetTop>=0)s=u;else if(r=!0,i-l[u].getElement().offsetTop>=0)o=u;else break;return l.slice(s,o+1)}_virtualRenderFill(e,t,i){var r=this.tableElement,s=this.elementVertical,o=0,l=0,u=0,c=0,d=0,f=0,p=this.rows(),h=p.length,k=0,C,A,w=[],m=0,D=0,g=this.table.rowManager.fixedHeight,M=this.elementVertical.clientHeight,v=this.table.options.rowHeight,x=!0;if(e=e||0,i=i||0,!e)this.clear();else{for(;r.firstChild;)r.removeChild(r.firstChild);c=(h-e+1)*this.vDomRowHeight,c<M&&(e-=Math.ceil((M-c)/this.vDomRowHeight),e<0&&(e=0)),o=Math.min(Math.max(Math.floor(this.vDomWindowBuffer/this.vDomRowHeight),this.vDomWindowMinMarginRows),e),e-=o}if(h&&Ze.elVisible(this.elementVertical)){for(this.vDomTop=e,this.vDomBottom=e-1,g||this.table.options.maxHeight?(v&&(D=M/v+this.vDomWindowBuffer/v),D=Math.max(this.vDomWindowMinTotalRows,Math.ceil(D))):D=h;(D==h||l<=M+this.vDomWindowBuffer||m<this.vDomWindowMinTotalRows)&&this.vDomBottom<h-1;){for(w=[],A=document.createDocumentFragment(),f=0;f<D&&this.vDomBottom<h-1;)k=this.vDomBottom+1,C=p[k],this.styleRow(C,k),C.initialize(!1,!0),!C.heightInitialized&&!this.table.options.rowHeight&&C.clearCellHeight(),A.appendChild(C.getElement()),w.push(C),this.vDomBottom++,f++;if(!w.length)break;r.appendChild(A),w.forEach(y=>{y.rendered(),y.heightInitialized||y.calcHeight(!0)}),w.forEach(y=>{y.heightInitialized||y.setCellHeight()}),w.forEach(y=>{u=y.getHeight(),m<o?d+=u:l+=u,u>this.vDomWindowBuffer&&(this.vDomWindowBuffer=u*2),m++}),x=this.table.rowManager.adjustTableSize(),M=this.elementVertical.clientHeight,x&&(g||this.table.options.maxHeight)&&(v=l/m,D=Math.max(this.vDomWindowMinTotalRows,Math.ceil(M/v+this.vDomWindowBuffer/v)))}e?(this.vDomTopPad=t?this.vDomRowHeight*this.vDomTop+i:this.scrollTop-d,this.vDomBottomPad=this.vDomBottom==h-1?0:Math.max(this.vDomScrollHeight-this.vDomTopPad-l-d,0)):(this.vDomTopPad=0,this.vDomRowHeight=Math.floor((l+d)/m),this.vDomBottomPad=this.vDomRowHeight*(h-this.vDomBottom-1),this.vDomScrollHeight=d+l+this.vDomBottomPad-M),r.style.paddingTop=this.vDomTopPad+"px",r.style.paddingBottom=this.vDomBottomPad+"px",t&&(this.scrollTop=this.vDomTopPad+d+i-(this.elementVertical.scrollWidth>this.elementVertical.clientWidth?this.elementVertical.offsetHeight-M:0)),this.scrollTop=Math.min(this.scrollTop,this.elementVertical.scrollHeight-M),this.elementVertical.scrollWidth>this.elementVertical.clientWidth&&t&&(this.scrollTop+=this.elementVertical.offsetHeight-M),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,s.scrollTop=this.scrollTop,this.dispatch("render-virtual-fill")}}_addTopRow(e,t){for(var i=this.tableElement,r=[],s=0,o=this.vDomTop-1,l=0,u=!0;u;)if(this.vDomTop){let c=e[o],d,f;c&&l<this.vDomMaxRenderChain?(d=c.getHeight()||this.vDomRowHeight,f=c.initialized,t>=d?(this.styleRow(c,o),i.insertBefore(c.getElement(),i.firstChild),(!c.initialized||!c.heightInitialized)&&r.push(c),c.initialize(),f||(d=c.getElement().offsetHeight,d>this.vDomWindowBuffer&&(this.vDomWindowBuffer=d*2)),t-=d,s+=d,this.vDomTop--,o--,l++):u=!1):u=!1}else u=!1;for(let c of r)c.clearCellHeight();this._quickNormalizeRowHeight(r),s&&(this.vDomTopPad-=s,this.vDomTopPad<0&&(this.vDomTopPad=o*this.vDomRowHeight),o<1&&(this.vDomTopPad=0),i.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=s)}_removeTopRow(e,t){for(var i=[],r=0,s=0,o=!0;o;){let l=e[this.vDomTop],u;l&&s<this.vDomMaxRenderChain?(u=l.getHeight()||this.vDomRowHeight,t>=u?(this.vDomTop++,t-=u,r+=u,i.push(l),s++):o=!1):o=!1}for(let l of i){let u=l.getElement();u.parentNode&&u.parentNode.removeChild(u)}r&&(this.vDomTopPad+=r,this.tableElement.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?r:r+this.vDomWindowBuffer)}_addBottomRow(e,t){for(var i=this.tableElement,r=[],s=0,o=this.vDomBottom+1,l=0,u=!0;u;){let c=e[o],d,f;c&&l<this.vDomMaxRenderChain?(d=c.getHeight()||this.vDomRowHeight,f=c.initialized,t>=d?(this.styleRow(c,o),i.appendChild(c.getElement()),(!c.initialized||!c.heightInitialized)&&r.push(c),c.initialize(),f||(d=c.getElement().offsetHeight,d>this.vDomWindowBuffer&&(this.vDomWindowBuffer=d*2)),t-=d,s+=d,this.vDomBottom++,o++,l++):u=!1):u=!1}for(let c of r)c.clearCellHeight();this._quickNormalizeRowHeight(r),s&&(this.vDomBottomPad-=s,(this.vDomBottomPad<0||o==e.length-1)&&(this.vDomBottomPad=0),i.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=s)}_removeBottomRow(e,t){for(var i=[],r=0,s=0,o=!0;o;){let l=e[this.vDomBottom],u;l&&s<this.vDomMaxRenderChain?(u=l.getHeight()||this.vDomRowHeight,t>=u?(this.vDomBottom--,t-=u,r+=u,i.push(l),s++):o=!1):o=!1}for(let l of i){let u=l.getElement();u.parentNode&&u.parentNode.removeChild(u)}r&&(this.vDomBottomPad+=r,this.vDomBottomPad<0&&(this.vDomBottomPad=0),this.tableElement.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=r)}_quickNormalizeRowHeight(e){for(let t of e)t.calcHeight();for(let t of e)t.setCellHeight()}}class qk extends dt{constructor(e){super(e),this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.placeholder=null,this.placeholderContents=null,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRowsPipeline=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRenderInPosition=!1,this.dataPipeline=[],this.displayPipeline=[],this.scrollbarWidth=0,this.renderer=null}createHolderElement(){var e=document.createElement("div");return e.classList.add("tabulator-tableholder"),e.setAttribute("tabindex",0),e}createTableElement(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e.setAttribute("role","rowgroup"),e}initializePlaceholder(){var e=this.table.options.placeholder;if(typeof e=="function"&&(e=e.call(this.table)),e=this.chain("placeholder",[e],e,e)||e,e){let t=document.createElement("div");if(t.classList.add("tabulator-placeholder"),typeof e=="string"){let i=document.createElement("div");i.classList.add("tabulator-placeholder-contents"),i.innerHTML=e,t.appendChild(i),this.placeholderContents=i}else typeof HTMLElement<"u"&&e instanceof HTMLElement?(t.appendChild(e),this.placeholderContents=e):(console.warn("Invalid placeholder provided, must be string or HTML Element",e),this.el=null);this.placeholder=t}}getElement(){return this.element}getTableElement(){return this.tableElement}initialize(){this.initializePlaceholder(),this.initializeRenderer(),this.element.appendChild(this.tableElement),this.firstRender=!0,this.element.addEventListener("scroll",()=>{var e=this.element.scrollLeft,t=this.scrollLeft>e,i=this.element.scrollTop,r=this.scrollTop>i;this.scrollLeft!=e&&(this.scrollLeft=e,this.dispatch("scroll-horizontal",e,t),this.dispatchExternal("scrollHorizontal",e,t),this._positionPlaceholder()),this.scrollTop!=i&&(this.scrollTop=i,this.renderer.scrollRows(i,r),this.dispatch("scroll-vertical",i,r),this.dispatchExternal("scrollVertical",i,r))})}findRow(e){if(typeof e=="object"){if(e instanceof pt)return e;if(e instanceof yr)return e._getSelf()||!1;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return this.rows.find(i=>i.getElement()===e)||!1;if(e===null)return!1}else return typeof e>"u"?!1:this.rows.find(i=>i.data[this.table.options.index]==e)||!1;return!1}getRowFromDataObject(e){var t=this.rows.find(i=>i.data===e);return t||!1}getRowFromPosition(e){return this.getDisplayRows().find(t=>t.type==="row"&&t.getPosition()===e&&t.isDisplayed())}scrollToRow(e,t,i){return this.renderer.scrollToRowPosition(e,t,i)}setData(e,t,i){return new Promise((r,s)=>{t&&this.getDisplayRows().length?this.table.options.pagination?this._setDataActual(e,!0):this.reRenderInPosition(()=>{this._setDataActual(e)}):(this.table.options.autoColumns&&i&&this.table.initialized&&this.table.columnManager.generateColumnsFromRowData(e),this.resetScroll(),this._setDataActual(e)),r()})}_setDataActual(e,t){this.dispatchExternal("dataProcessing",e),this._wipeElements(),Array.isArray(e)?(this.dispatch("data-processing",e),e.forEach((i,r)=>{if(i&&typeof i=="object"){var s=new pt(i,this);this.rows.push(s)}else console.warn("Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",i)}),this.refreshActiveData(!1,!1,t),this.dispatch("data-processed",e),this.dispatchExternal("dataProcessed",e)):console.error(`Data Loading Error - Unable to process data due to invalid data type
|
|
51
51
|
Expecting: array
|
|
52
52
|
Received: `,typeof e,`
|
|
53
|
-
Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.adjustTableSize(),this.dispatch("rows-wiped")}destroy(){this.rows.forEach(e=>{e.wipe()}),this.rows=[],this.activeRows=[],this.activeRowsPipeline=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0}deleteRow(e,t){var i=this.rows.indexOf(e),r=this.activeRows.indexOf(e);r>-1&&this.activeRows.splice(r,1),i>-1&&this.rows.splice(i,1),this.setActiveRows(this.activeRows),this.displayRowIterator(s=>{var o=s.indexOf(e);o>-1&&s.splice(o,1)}),t||this.reRenderInPosition(),this.regenerateRowPositions(),this.dispatchExternal("rowDeleted",e.getComponent()),this.displayRowsCount||this.tableEmpty(),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.getData())}addRow(e,t,i,r){var s=this.addRowActual(e,t,i,r);return s}addRows(e,t,i,r){var s=[];return new Promise((o,l)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(typeof i>"u"&&t||typeof i<"u"&&!t)&&e.reverse(),e.forEach((u,c)=>{var d=this.addRow(u,t,i,!0);s.push(d),this.dispatch("row-added",d,u,t,i)}),this.refreshActiveData(r?"displayPipeline":!1,!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),o(s)})}findAddRowPos(e){return typeof e>"u"&&(e=this.table.options.addRowPos),e==="pos"&&(e=!0),e==="bottom"&&(e=!1),e}addRowActual(e,t,i,r){var s=e instanceof pt?e:new pt(e||{},this),o=this.findAddRowPos(t),l=-1,u,c;return i||(c=this.chain("row-adding-position",[s,o],null,{index:i,top:o}),i=c.index,o=c.top),typeof i<"u"&&(i=this.findRow(i)),i=this.chain("row-adding-index",[s,i,o],null,i),i&&(l=this.rows.indexOf(i)),i&&l>-1?(u=this.activeRows.indexOf(i),this.displayRowIterator(function(d){var f=d.indexOf(i);f>-1&&d.splice(o?f:f+1,0,s)}),u>-1&&this.activeRows.splice(o?u:u+1,0,s),this.rows.splice(o?l:l+1,0,s)):o?(this.displayRowIterator(function(d){d.unshift(s)}),this.activeRows.unshift(s),this.rows.unshift(s)):(this.displayRowIterator(function(d){d.push(s)}),this.activeRows.push(s),this.rows.push(s)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",s.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),r||this.reRenderInPosition(),s}moveRow(e,t,i){this.dispatch("row-move",e,t,i),this.moveRowActual(e,t,i),this.regenerateRowPositions(),this.dispatch("row-moved",e,t,i),this.dispatchExternal("rowMoved",e.getComponent())}moveRowActual(e,t,i){this.moveRowInArray(this.rows,e,t,i),this.moveRowInArray(this.activeRows,e,t,i),this.displayRowIterator(r=>{this.moveRowInArray(r,e,t,i)}),this.dispatch("row-moving",e,t,i)}moveRowInArray(e,t,i,r){var s,o,l,u;if(t!==i&&(s=e.indexOf(t),s>-1&&(e.splice(s,1),o=e.indexOf(i),o>-1?r?e.splice(o+1,0,t):e.splice(o,0,t):e.splice(s,0,t)),e===this.getDisplayRows())){l=s<o?s:o,u=o>s?o:s+1;for(let c=l;c<=u;c++)e[c]&&this.styleRow(e[c],c)}}clearData(){this.setData([])}getRowIndex(e){return this.findRowIndex(e,this.rows)}getDisplayRowIndex(e){var t=this.getDisplayRows().indexOf(e);return t>-1?t:!1}nextDisplayRow(e,t){var i=this.getDisplayRowIndex(e),r=!1;return i!==!1&&i<this.displayRowsCount-1&&(r=this.getDisplayRows()[i+1]),r&&(!(r instanceof pt)||r.type!="row")?this.nextDisplayRow(r,t):r}prevDisplayRow(e,t){var i=this.getDisplayRowIndex(e),r=!1;return i&&(r=this.getDisplayRows()[i-1]),t&&r&&(!(r instanceof pt)||r.type!="row")?this.prevDisplayRow(r,t):r}findRowIndex(e,t){var i;return e=this.findRow(e),e&&(i=t.indexOf(e),i>-1)?i:!1}getData(e,t){var i=[],r=this.getRows(e);return r.forEach(function(s){s.type=="row"&&i.push(s.getData(t||"data"))}),i}getComponents(e){var t=[],i=this.getRows(e);return i.forEach(function(r){t.push(r.getComponent())}),t}getDataCount(e){var t=this.getRows(e);return t.length}scrollHorizontal(e){this.scrollLeft=e,this.element.scrollLeft=e,this.dispatch("scroll-horizontal",e)}registerDataPipelineHandler(e,t){typeof t<"u"?(this.dataPipeline.push({handler:e,priority:t}),this.dataPipeline.sort((i,r)=>i.priority-r.priority)):console.error("Data pipeline handlers must have a priority in order to be registered")}registerDisplayPipelineHandler(e,t){typeof t<"u"?(this.displayPipeline.push({handler:e,priority:t}),this.displayPipeline.sort((i,r)=>i.priority-r.priority)):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(e,t,i){var r=this.table,s="",o=0,l=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if(typeof e=="function")if(o=this.dataPipeline.findIndex(u=>u.handler===e),o>-1)s="dataPipeline",t&&(o==this.dataPipeline.length-1?s="display":o++);else if(o=this.displayPipeline.findIndex(u=>u.handler===e),o>-1)s="displayPipeline",t&&(o==this.displayPipeline.length-1?s="end":o++);else{console.error("Unable to refresh data, invalid handler provided",e);return}else s=e||"all",o=0;if(this.redrawBlock){(!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===s&&o<this.redrawBlockRestoreConfig.index||l.indexOf(s)<l.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRestoreConfig={handler:e,skipStage:t,renderInPosition:i,stage:s,index:o});return}else Ze.elVisible(this.element)?i?this.reRenderInPosition(this.refreshPipelines.bind(this,e,s,o,i)):(this.refreshPipelines(e,s,o,i),e||this.table.columnManager.renderer.renderColumns(),this.renderTable(),r.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0)):this.refreshPipelines(e,s,o,i),this.dispatch("data-refreshed")}}refreshPipelines(e,t,i,r){switch(this.dispatch("data-refreshing"),(!e||!this.activeRowsPipeline[0])&&(this.activeRowsPipeline[0]=this.rows.slice(0)),t){case"all":case"dataPipeline":for(let s=i;s<this.dataPipeline.length;s++){let o=this.dataPipeline[s].handler(this.activeRowsPipeline[s].slice(0));this.activeRowsPipeline[s+1]=o||this.activeRowsPipeline[s].slice(0)}this.setActiveRows(this.activeRowsPipeline[this.dataPipeline.length]);case"display":i=0,this.resetDisplayRows();case"displayPipeline":for(let s=i;s<this.displayPipeline.length;s++){let o=this.displayPipeline[s].handler((s?this.getDisplayRows(s-1):this.activeRows).slice(0),r);this.setDisplayRows(o||this.getDisplayRows(s-1).slice(0),s)}case"end":this.regenerateRowPositions()}this.getDisplayRows().length&&this._clearPlaceholder()}regenerateRowPositions(){var e=this.getDisplayRows(),t=1;e.forEach(i=>{i.type==="row"&&(i.setPosition(t),t++)})}setActiveRows(e){this.activeRows=this.activeRows=Object.assign([],e),this.activeRowsCount=this.activeRows.length}resetDisplayRows(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length}setDisplayRows(e,t){this.displayRows[t]=e,t==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length)}getDisplayRows(e){return typeof e>"u"?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[e]||[]}getVisibleRows(e,t){var i=Object.assign([],this.renderer.visibleRows(!t));return e&&(i=this.chain("rows-visible",[t],i,i)),i}displayRowIterator(e){this.activeRowsPipeline.forEach(e),this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length}getRows(e){var t=[];switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!1,!0);break;default:t=this.chain("rows-retrieve",e,null,this.rows)||this.rows}return t}reRenderInPosition(e){this.redrawBlock?e?e():this.redrawBlockRenderInPosition=!0:(this.dispatchExternal("renderStarted"),this.renderer.rerenderRows(e),this.fixedHeight||this.adjustTableSize(),this.scrollBarCheck(),this.dispatchExternal("renderComplete"))}scrollBarCheck(){var e=0;this.element.scrollHeight>this.element.clientHeight&&(e=this.element.offsetWidth-this.element.clientWidth),e!==this.scrollbarWidth&&(this.scrollbarWidth=e,this.dispatch("scrollbar-vertical",e))}initializeRenderer(){var e,t={virtual:Jk,basic:Kk};typeof this.table.options.renderVertical=="string"?e=t[this.table.options.renderVertical]:e=this.table.options.renderVertical,e?(this.renderMode=this.table.options.renderVertical,this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize(),(this.table.element.clientHeight||this.table.options.height)&&!(this.table.options.minHeight&&this.table.options.maxHeight)?this.fixedHeight=!0:this.fixedHeight=!1):console.error("Unable to find matching renderer:",this.table.options.renderVertical)}getRenderMode(){return this.renderMode}renderTable(){this.dispatchExternal("renderStarted"),this.element.scrollTop=0,this._clearTable(),this.displayRowsCount?(this.renderer.renderRows(),this.firstRender&&(this.firstRender=!1,this.fixedHeight||this.adjustTableSize(),this.layoutRefresh(!0))):this.renderEmptyScroll(),this.fixedHeight||this.adjustTableSize(),this.dispatch("table-layout"),this.displayRowsCount||this._showPlaceholder(),this.scrollBarCheck(),this.dispatchExternal("renderComplete")}renderEmptyScroll(){this.placeholder?this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px"}_clearTable(){this._clearPlaceholder(),this.scrollTop=0,this.scrollLeft=0,this.renderer.clearRows()}tableEmpty(){this.renderEmptyScroll(),this._showPlaceholder()}checkPlaceholder(){this.displayRowsCount?this._clearPlaceholder():this.tableEmpty()}_showPlaceholder(){this.placeholder&&(this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.initializePlaceholder(),this.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.placeholder),this._positionPlaceholder(),this.adjustTableSize())}_clearPlaceholder(){this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.tableElement.style.minWidth="",this.tableElement.style.display=""}_positionPlaceholder(){this.placeholder&&this.placeholder.parentNode&&(this.placeholder.style.width=this.table.columnManager.getWidth()+"px",this.placeholderContents.style.width=this.table.rowManager.element.clientWidth+"px",this.placeholderContents.style.marginLeft=this.scrollLeft+"px")}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}normalizeHeight(e){this.activeRows.forEach(function(t){t.normalizeHeight(e)})}adjustTableSize(){let e=this.element.clientHeight,t,i=!1;if(this.renderer.verticalFillMode==="fill"){let r=Math.floor(this.table.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));if(this.fixedHeight){t=isNaN(this.table.options.minHeight)?this.table.options.minHeight:this.table.options.minHeight+"px";const s="calc(100% - "+r+"px)";this.element.style.minHeight=t||"calc(100% - "+r+"px)",this.element.style.height=s,this.element.style.maxHeight=s}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-r+"px",this.element.scrollTop=this.scrollTop;this.renderer.resize(),!this.fixedHeight&&e!=this.element.clientHeight&&(i=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw()),this.scrollBarCheck()}return this._positionPlaceholder(),i}reinitialize(){this.rows.forEach(function(e){e.reinitialize(!0)})}blockRedraw(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1}restoreRedraw(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.handler,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRenderInPosition&&this.reRenderInPosition(),this.redrawBlockRenderInPosition=!1}redraw(e){this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():(this.reRenderInPosition(),this.scrollHorizontal(this.scrollLeft))}resetScroll(){if(this.element.scrollLeft=0,this.element.scrollTop=0,this.table.browser==="ie"){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))}}class $k extends dt{constructor(e){super(e),this.active=!1,this.element=this.createElement(),this.containerElement=this.createContainerElement(),this.external=!1}initialize(){this.initializeElement()}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer"),e}createContainerElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer-contents"),this.element.appendChild(e),e}initializeElement(){if(this.table.options.footerElement)switch(typeof this.table.options.footerElement){case"string":this.table.options.footerElement[0]==="<"?this.containerElement.innerHTML=this.table.options.footerElement:(this.external=!0,this.containerElement=document.querySelector(this.table.options.footerElement));break;default:this.element=this.table.options.footerElement;break}}getElement(){return this.element}append(e){this.activate(),this.containerElement.appendChild(e),this.table.rowManager.adjustTableSize()}prepend(e){this.activate(),this.element.insertBefore(e,this.element.firstChild),this.table.rowManager.adjustTableSize()}remove(e){e.parentNode.removeChild(e),this.deactivate()}deactivate(e){(!this.element.firstChild||e)&&(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)}activate(){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display=""))}redraw(){this.dispatch("footer-redraw")}}class Zk extends dt{constructor(e){super(e),this.el=null,this.abortClasses=["tabulator-headers","tabulator-table"],this.previousTargets={},this.listeners=["click","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","mouseup","mousedown","touchstart","touchend"],this.componentMap={"tabulator-cell":"cell","tabulator-row":"row","tabulator-group":"group","tabulator-col":"column"},this.pseudoTrackers={row:{subscriber:null,target:null},cell:{subscriber:null,target:null},group:{subscriber:null,target:null},column:{subscriber:null,target:null}},this.pseudoTracking=!1}initialize(){this.el=this.table.element,this.buildListenerMap(),this.bindSubscriptionWatchers()}buildListenerMap(){var e={};this.listeners.forEach(t=>{e[t]={handler:null,components:[]}}),this.listeners=e}bindPseudoEvents(){Object.keys(this.pseudoTrackers).forEach(e=>{this.pseudoTrackers[e].subscriber=this.pseudoMouseEnter.bind(this,e),this.subscribe(e+"-mouseover",this.pseudoTrackers[e].subscriber)}),this.pseudoTracking=!0}pseudoMouseEnter(e,t,i){this.pseudoTrackers[e].target!==i&&(this.pseudoTrackers[e].target&&this.dispatch(e+"-mouseleave",t,this.pseudoTrackers[e].target),this.pseudoMouseLeave(e,t),this.pseudoTrackers[e].target=i,this.dispatch(e+"-mouseenter",t,i))}pseudoMouseLeave(e,t){var i=Object.keys(this.pseudoTrackers),r={row:["cell"],cell:["row"]};i=i.filter(s=>{var o=r[e];return s!==e&&(!o||o&&!o.includes(s))}),i.forEach(s=>{var o=this.pseudoTrackers[s].target;this.pseudoTrackers[s].target&&(this.dispatch(s+"-mouseleave",t,o),this.pseudoTrackers[s].target=null)})}bindSubscriptionWatchers(){var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let i of t)for(let r of e){let s=i+"-"+r;this.subscriptionChange(s,this.subscriptionChanged.bind(this,i,r))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,i){var r=this.listeners[t].components,s=r.indexOf(e),o=!1;i?s===-1&&(r.push(e),o=!0):this.subscribed(e+"-"+t)||s>-1&&(r.splice(s,1),o=!0),(t==="mouseenter"||t==="mouseleave")&&!this.pseudoTracking&&this.bindPseudoEvents(),o&&this.updateEventListeners()}updateEventListeners(){for(let e in this.listeners){let t=this.listeners[e];t.components.length?t.handler||(t.handler=this.track.bind(this,e),this.el.addEventListener(e,t.handler)):t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}track(e,t){var i=t.composedPath&&t.composedPath()||t.path,r=this.findTargets(i);r=this.bindComponents(e,r),this.triggerEvents(e,t,r),this.pseudoTracking&&(e=="mouseover"||e=="mouseleave")&&!Object.keys(r).length&&this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let i=Object.keys(this.componentMap);for(let r of e){let s=r.classList?[...r.classList]:[];if(s.filter(u=>this.abortClasses.includes(u)).length)break;let l=s.filter(u=>i.includes(u));for(let u of l)t[this.componentMap[u]]||(t[this.componentMap[u]]=r)}return t.group&&t.group===t.row&&delete t.row,t}bindComponents(e,t){var i=Object.keys(t).reverse(),r=this.listeners[e],s={},o={},l={};for(let u of i){let c,d=t[u],f=this.previousTargets[u];if(f&&f.target===d)c=f.component;else switch(u){case"row":case"group":(r.components.includes("row")||r.components.includes("cell")||r.components.includes("group"))&&(c=this.table.rowManager.getVisibleRows(!0).find(h=>h.getElement()===d),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[u]=!1));break;case"column":r.components.includes("column")&&(c=this.table.columnManager.findColumn(d));break;case"cell":r.components.includes("cell")&&(s.row instanceof pt?c=s.row.findCell(d):t.row&&console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"));break}c&&(s[u]=c,l[u]={target:d,component:c})}return this.previousTargets=l,Object.keys(t).forEach(u=>{let c=s[u];o[u]=c}),o}triggerEvents(e,t,i){var r=this.listeners[e];for(let s in i)i[s]&&r.components.includes(s)&&this.dispatch(s+"-"+e,t,i[s])}clearWatchers(){for(let e in this.listeners){let t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}}class Xk{constructor(e){this.table=e,this.bindings={}}bind(e,t,i){this.bindings[e]||(this.bindings[e]={}),this.bindings[e][t]?console.warn("Unable to bind component handler, a matching function name is already bound",e,t,i):this.bindings[e][t]=i}handle(e,t,i){if(this.bindings[e]&&this.bindings[e][i]&&typeof this.bindings[e][i].bind=="function")return this.bindings[e][i].bind(null,t);i!=="then"&&typeof i=="string"&&!i.startsWith("_")&&this.table.options.debugInvalidComponentFuncs&&console.error("The "+e+" component does not have a "+i+" function, have you checked that you have the correct Tabulator module installed?")}}class eS extends dt{constructor(e){super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,i,r,s,o){var l=++this.requestOrder;if(this.table.destroyed)return Promise.resolve();if(this.dispatchExternal("dataLoading",e),e&&(e.indexOf("{")==0||e.indexOf("[")==0)&&(e=JSON.parse(e)),this.confirm("data-loading",[e,t,i,s])){this.loading=!0,s||this.alertLoader(),t=this.chain("data-params",[e,i,s],t||{},t||{}),t=this.mapParams(t,this.table.options.dataSendParams);var u=this.chain("data-load",[e,t,i,s],!1,Promise.resolve([]));return u.then(c=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{!Array.isArray(c)&&typeof c=="object"&&(c=this.mapParams(c,this.objectInvert(this.table.options.dataReceiveParams)));var d=this.chain("data-loaded",[c],null,c);l==this.requestOrder?(this.clearAlert(),d!==!1&&(this.dispatchExternal("dataLoaded",d),this.table.rowManager.setData(d,r,typeof o>"u"?!r:o))):console.warn("Data Load Response Blocked - An active data load request was blocked by an attempt to change table data while the request was being made")}}).catch(c=>{console.error("Data Load Error: ",c),this.dispatchExternal("dataLoadError",c),s||this.alertError(),setTimeout(()=>{this.clearAlert()},this.table.options.dataLoaderErrorTimeout)}).finally(()=>{this.loading=!1})}else return this.dispatchExternal("dataLoaded",e),e||(e=[]),this.table.rowManager.setData(e,r,typeof o>"u"?!r:o),Promise.resolve()}mapParams(e,t){var i={};for(let r in e)i[t.hasOwnProperty(r)?t[r]:r]=e[r];return i}objectInvert(e){var t={};for(let i in e)t[e[i]]=i;return t}blockActiveLoad(){this.requestOrder++}alertLoader(){var e=typeof this.table.options.dataLoader=="function"?this.table.options.dataLoader():this.table.options.dataLoader;e&&this.table.alertManager.alert(this.table.options.dataLoaderLoading||this.langText("data|loading"))}alertError(){this.table.alertManager.alert(this.table.options.dataLoaderError||this.langText("data|error"),"error")}clearAlert(){this.table.alertManager.clear()}}class tS{constructor(e,t,i){this.table=e,this.events={},this.optionsList=t||{},this.subscriptionNotifiers={},this.dispatch=i?this._debugDispatch.bind(this):this._dispatch.bind(this),this.debug=i}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e])if(t)if(i=this.events[e].findIndex(r=>r===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}else delete this.events[e];else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(r=>{r(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift(),i;return this.events[t]&&this.events[t].forEach((r,s)=>{let o=r.apply(this.table,e);s||(i=o)}),i}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="ExternalEvent:"+e[0],(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}}class iS{constructor(e){this.events={},this.subscriptionNotifiers={},this.dispatch=e?this._debugDispatch.bind(this):this._dispatch.bind(this),this.chain=e?this._debugChain.bind(this):this._chain.bind(this),this.confirm=e?this._debugConfirm.bind(this):this._confirm.bind(this),this.debug=e}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t,i=1e4){this.events[e]||(this.events[e]=[]),this.events[e].push({callback:t,priority:i}),this.events[e].sort((r,s)=>r.priority-s.priority),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e]){if(t)if(i=this.events[e].findIndex(r=>r.callback===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}}else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_chain(e,t,i,r){var s=i;return Array.isArray(t)||(t=[t]),this.subscribed(e)?(this.events[e].forEach((o,l)=>{s=o.callback.apply(this,t.concat([s]))}),s):typeof r=="function"?r():r}_confirm(e,t){var i=!1;return Array.isArray(t)||(t=[t]),this.subscribed(e)&&this.events[e].forEach((r,s)=>{r.callback.apply(this,t)&&(i=!0)}),i}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(r=>{r(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift();this.events[t]&&this.events[t].forEach(i=>{i.callback.apply(this,e)})}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}_debugChain(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._chain(...arguments)}_debugConfirm(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._confirm(...arguments)}}class nS extends dt{constructor(e){super(e)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t,i){var r="";return typeof this.options(e)<"u"?(r="Deprecated Setup Option - Use of the %c"+e+"%c option is now deprecated",t?(r=r+", Please use the %c"+t+"%c option instead",this._warnUser(r,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),i&&(this.table.options[t]=this.table.options[e])):this._warnUser(r,"font-weight: bold;","font-weight: normal;"),!1):!0}checkMsg(e,t){return typeof this.options(e)<"u"?(this._warnUser("%cDeprecated Setup Option - Use of the %c"+e+" %c option is now deprecated, "+t,"font-weight: normal;","font-weight: bold;","font-weight: normal;"),!1):!0}msg(e){this._warnUser(e)}}class rS extends dt{constructor(e){super(e),this.deps={},this.props={}}initialize(){this.deps=Object.assign({},this.options("dependencies"))}lookup(e,t,i){if(Array.isArray(e)){for(const s of e){var r=this.lookup(s,t,!0);if(r)break}if(r)return r;this.error(e)}else return t?this.lookupProp(e,t,i):this.lookupKey(e,i)}lookupProp(e,t,i){var r;if(this.props[e]&&this.props[e][t])return this.props[e][t];if(r=this.lookupKey(e,i),r)return this.props[e]||(this.props[e]={}),this.props[e][t]=r[t]||r,this.props[e][t]}lookupKey(e,t){var i;return this.deps[e]?i=this.deps[e]:window[e]?(this.deps[e]=window[e],i=this.deps[e]):t||this.error(e),i}error(e){console.error("Unable to find dependency",e,"Please check documentation and ensure you have imported the required library into your project")}}function sS(n,e){e&&this.table.columnManager.renderer.reinitializeColumnWidths(n),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function rd(n,e){n.forEach(function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function aS(n,e){var t=0,i=this.table.rowManager.element.clientWidth,r=0,s=!1;n.forEach((o,l)=>{o.widthFixed||o.reinitializeWidth(),(this.table.options.responsiveLayout?o.modules.responsive.visible:o.visible)&&(s=o),o.visible&&(t+=o.getWidth())}),s?(r=i-t+s.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(s.setWidth(0),this.table.modules.responsiveLayout.update()),r>0?s.setWidth(r):s.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function oS(n,e){var t=this.table.rowManager.element.getBoundingClientRect().width,i=0,r=0,s=0,o=0,l=[],u=[],c=0,d=0,f=0;function p(k){var C;return typeof k=="string"?k.indexOf("%")>-1?C=t/100*parseInt(k):C=parseInt(k):C=k,C}function h(k,C,A,w){var m=[],D=0,g=0,M=0,v=s,x=0,y=0,S=[];function b(R){return A*(R.column.definition.widthGrow||1)}function T(R){return p(R.width)-A*(R.column.definition.widthShrink||0)}return k.forEach(function(R,L){var N=w?T(R):b(R);R.column.minWidth>=N?m.push(R):R.column.maxWidth&&R.column.maxWidth<N?(R.width=R.column.maxWidth,C-=R.column.maxWidth,v-=w?R.column.definition.widthShrink||1:R.column.definition.widthGrow||1,v&&(A=Math.floor(C/v))):(S.push(R),y+=w?R.column.definition.widthShrink||1:R.column.definition.widthGrow||1)}),m.length?(m.forEach(function(R){D+=w?R.width-R.column.minWidth:R.column.minWidth,R.width=R.column.minWidth}),g=C-D,M=y?Math.floor(g/y):g,x=h(S,g,M,w)):(x=y?C-Math.floor(C/y)*y:C,S.forEach(function(R){R.width=w?T(R):b(R)})),x}this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(t-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),n.forEach(function(k){var C,A,w;k.visible&&(C=k.definition.width,A=parseInt(k.minWidth),C?(w=p(C),i+=w>A?w:A,k.definition.widthShrink&&(u.push({column:k,width:w>A?w:A}),c+=k.definition.widthShrink)):(l.push({column:k,width:0}),s+=k.definition.widthGrow||1))}),r=t-i,o=Math.floor(r/s),f=h(l,r,o,!1),l.length&&f>0&&(l[l.length-1].width+=f),l.forEach(function(k){r-=k.width}),d=Math.abs(f)+r,d>0&&c&&(f=h(u,d,Math.floor(d/c),!0)),f&&u.length&&(u[u.length-1].width-=f),l.forEach(function(k){k.column.setWidth(k.width)}),u.forEach(function(k){k.column.setWidth(k.width)})}var lS={fitData:sS,fitDataFill:rd,fitDataTable:rd,fitDataStretch:aS,fitColumns:oS};class xr extends Ve{static moduleName="layout";static modes=lS;constructor(e){super(e,"layout"),this.mode=null,this.registerTableOption("layout","fitData"),this.registerTableOption("layoutColumnsOnNewData",!1),this.registerColumnOption("widthGrow"),this.registerColumnOption("widthShrink")}initialize(){var e=this.table.options.layout;xr.modes[e]?this.mode=e:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+e),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode),this.subscribe("column-init",this.initializeColumn.bind(this))}initializeColumn(e){e.definition.widthGrow&&(e.definition.widthGrow=Number(e.definition.widthGrow)),e.definition.widthShrink&&(e.definition.widthShrink=Number(e.definition.widthShrink))}getMode(){return this.mode}layout(e){var t=this.table.columnManager.columnsByIndex.find(i=>i.definition.variableHeight||i.definition.formatter==="textarea");this.dispatch("layout-refreshing"),xr.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}}var uS={default:{groups:{item:"item",items:"items"},columns:{},data:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},headerFilters:{default:"filter column...",columns:{}}}};class Qo extends Ve{static moduleName="localize";static langs=uS;constructor(e){super(e),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=Ze.deepClone(Qo.langs),this.table.options.columnDefaults.headerFilterPlaceholder!==!1&&this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);for(let e in this.table.options.langs)this.installLang(e,this.table.options.langs[e]);this.setLocale(this.table.options.locale),this.registerTableFunction("setLocale",this.setLocale.bind(this)),this.registerTableFunction("getLocale",this.getLocale.bind(this)),this.registerTableFunction("getLang",this.getLang.bind(this))}setHeaderFilterPlaceholder(e){this.langList.default.headerFilters.default=e}installLang(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t}_setLangProp(e,t){for(let i in t)e[i]&&typeof e[i]=="object"?this._setLangProp(e[i],t[i]):e[i]=t[i]}setLocale(e){e=e||"default";function t(i,r){for(var s in i)typeof i[s]=="object"?(r[s]||(r[s]={}),t(i[s],r[s])):r[s]=i[s]}if(e===!0&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!this.langList[e]){let i=e.split("-")[0];this.langList[i]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,i),e=i):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}this.locale=e,this.lang=Ze.deepClone(this.langList.default||{}),e!="default"&&t(this.langList[e],this.lang),this.dispatchExternal("localized",this.locale,this.lang),this._executeBindings()}getLocale(e){return this.locale}getLang(e){return e?this.langList[e]:this.lang}getText(e,t){var i=t?e+"|"+t:e,r=i.split("|"),s=this._getLangElement(r,this.locale);return s||""}_getLangElement(e,t){var i=this.lang;return e.forEach(function(r){var s;i&&(s=i[r],typeof s<"u"?i=s:i=!1)}),i}bind(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)}_executeBindings(){for(let e in this.bindings)this.bindings[e].forEach(t=>{t(this.getText(e),this.lang)})}}class cS extends Ve{static moduleName="comms";constructor(e){super(e)}initialize(){this.registerTableFunction("tableComms",this.receive.bind(this))}getConnections(e){var t=[],i;return i=this.table.constructor.registry.lookupTable(e),i.forEach(r=>{this.table!==r&&t.push(r)}),t}send(e,t,i,r){var s=this.getConnections(e);s.forEach(o=>{o.tableComms(this.table.element,t,i,r)}),!s.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)}receive(e,t,i,r){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,i,r);console.warn("Inter-table Comms Error - no such module:",t)}}var dS=Object.freeze({__proto__:null,CommsModule:cS,LayoutModule:xr,LocalizeModule:Qo});class _t{static registry={tables:[],register(e){_t.registry.tables.push(e)},deregister(e){var t=_t.registry.tables.indexOf(e);t>-1&&_t.registry.tables.splice(t,1)},lookupTable(e,t){var i=[],r,s;if(typeof e=="string"){if(r=document.querySelectorAll(e),r.length)for(var o=0;o<r.length;o++)s=_t.registry.matchElement(r[o]),s&&i.push(s)}else typeof HTMLElement<"u"&&e instanceof HTMLElement||e instanceof _t?(s=_t.registry.matchElement(e),s&&i.push(s)):Array.isArray(e)?e.forEach(function(l){i=i.concat(_t.registry.lookupTable(l))}):t||console.warn("Table Connection Error - Invalid Selector",e);return i},matchElement(e){return _t.registry.tables.find(function(t){return e instanceof _t?t===e:t.element===e})}};static findTable(e){var t=_t.registry.lookupTable(e,!0);return Array.isArray(t)&&!t.length?!1:t}}class st extends _t{static moduleBindings={};static moduleExtensions={};static modulesRegistered=!1;static defaultModules=!1;constructor(){super()}static initializeModuleBinder(e){st.modulesRegistered||(st.modulesRegistered=!0,st._registerModules(dS,!0),e&&st._registerModules(e))}static _extendModule(e,t,i){if(st.moduleBindings[e]){var r=st.moduleBindings[e][t];if(r)if(typeof i=="object")for(let s in i)r[s]=i[s];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)}static _registerModules(e,t){var i=Object.values(e);t&&i.forEach(r=>{r.prototype.moduleCore=!0}),st._registerModule(i)}static _registerModule(e){Array.isArray(e)||(e=[e]),e.forEach(t=>{st._registerModuleBinding(t),st._registerModuleExtensions(t)})}static _registerModuleBinding(e){e.moduleName?st.moduleBindings[e.moduleName]=e:console.error("Unable to bind module, no moduleName defined",e.moduleName)}static _registerModuleExtensions(e){var t=e.moduleExtensions;if(e.moduleExtensions)for(let i in t){let r=t[i];if(st.moduleBindings[i])for(let s in r)st._extendModule(i,s,r[s]);else{st.moduleExtensions[i]||(st.moduleExtensions[i]={});for(let s in r)st.moduleExtensions[i][s]||(st.moduleExtensions[i][s]={}),Object.assign(st.moduleExtensions[i][s],r[s])}}st._extendModuleFromQueue(e)}static _extendModuleFromQueue(e){var t=st.moduleExtensions[e.moduleName];if(t)for(let i in t)st._extendModule(e.moduleName,i,t[i])}_bindModules(){var e=[],t=[],i=[];this.modules={};for(var r in st.moduleBindings){let s=st.moduleBindings[r],o=new s(this);this.modules[r]=o,s.prototype.moduleCore?this.modulesCore.push(o):s.moduleInitOrder?s.moduleInitOrder<0?e.push(o):t.push(o):i.push(o)}e.sort((s,o)=>s.moduleInitOrder>o.moduleInitOrder?1:-1),t.sort((s,o)=>s.moduleInitOrder>o.moduleInitOrder?1:-1),this.modulesRegular=e.concat(i.concat(t))}}class hS extends dt{constructor(e){super(e),this.element=this._createAlertElement(),this.msgElement=this._createMsgElement(),this.type=null,this.element.appendChild(this.msgElement)}_createAlertElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert"),e}_createMsgElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert-msg"),e.setAttribute("role","alert"),e}_typeClass(){return"tabulator-alert-state-"+this.type}alert(e,t="msg"){if(e){for(this.clear(),this.dispatch("alert-show",t),this.type=t;this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.add(this._typeClass()),typeof e=="function"&&(e=e()),e instanceof HTMLElement?this.msgElement.appendChild(e):this.msgElement.innerHTML=e,this.table.element.appendChild(this.element)}}clear(){this.dispatch("alert-hide",this.type),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.msgElement.classList.remove(this._typeClass())}}class gi extends st{static defaultOptions=Uk;static extendModule(){gi.initializeModuleBinder(),gi._extendModule(...arguments)}static registerModule(){gi.initializeModuleBinder(),gi._registerModule(...arguments)}constructor(e,t,i){super(),gi.initializeModuleBinder(i),this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.alertManager=null,this.vdomHoz=null,this.externalEvents=null,this.eventBus=null,this.interactionMonitor=!1,this.browser="",this.browserSlow=!1,this.browserMobile=!1,this.rtl=!1,this.originalElement=null,this.componentFunctionBinder=new Xk(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new nS(this),this.optionsList=new nd(this,"table constructor"),this.dependencyRegistry=new rS(this),this.initialized=!1,this.destroyed=!1,this.initializeElement(e)&&(this.initializeCoreSystems(t),setTimeout(()=>{this._create()})),this.constructor.registry.register(this)}initializeElement(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement?(this.element=e,!0):typeof e=="string"?(this.element=document.querySelector(e),this.element?!0:(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)}initializeCoreSystems(e){this.columnManager=new Qk(this),this.rowManager=new qk(this),this.footerManager=new $k(this),this.dataLoader=new eS(this),this.alertManager=new hS(this),this._bindModules(),this.options=this.optionsList.generate(gi.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new tS(this,this.options,this.options.debugEventsExternal),this.eventBus=new iS(this.options.debugEventsInternal),this.interactionMonitor=new Zk(this),this.dataLoader.initialize(),this.footerManager.initialize(),this.dependencyRegistry.initialize()}_mapDeprecatedFunctionality(){}_clearSelection(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")}_create(){this.externalEvents.dispatch("tableBuilding"),this.eventBus.dispatch("table-building"),this._rtlCheck(),this._buildElement(),this._initializeTable(),this.initialized=!0,this._loadInitialData().finally(()=>{this.eventBus.dispatch("table-initialized"),this.externalEvents.dispatch("tableBuilt")})}_rtlCheck(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if(e.direction!=="rtl")break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}}_clearObjectPointers(){this.options.columns=this.options.columns.slice(0),Array.isArray(this.options.data)&&!this.options.reactiveData&&(this.options.data=this.options.data.slice(0))}_buildElement(){var e=this.element,t=this.options,i;if(e.tagName==="TABLE"){this.originalElement=this.element,i=document.createElement("div");var r=e.attributes;for(var s in r)typeof r[s]=="object"&&i.setAttribute(r[s].name,r[s].value);e.parentNode.replaceChild(i,e),this.element=e=i}for(e.classList.add("tabulator"),e.setAttribute("role","grid");e.firstChild;)e.removeChild(e.firstChild);t.height&&(t.height=isNaN(t.height)?t.height:t.height+"px",e.style.height=t.height),t.minHeight!==!1&&(t.minHeight=isNaN(t.minHeight)?t.minHeight:t.minHeight+"px",e.style.minHeight=t.minHeight),t.maxHeight!==!1&&(t.maxHeight=isNaN(t.maxHeight)?t.maxHeight:t.maxHeight+"px",e.style.maxHeight=t.maxHeight)}_initializeTable(){var e=this.element,t=this.options;this.interactionMonitor.initialize(),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modulesCore.forEach(i=>{i.initialize()}),e.appendChild(this.columnManager.getElement()),e.appendChild(this.rowManager.getElement()),t.footerElement&&this.footerManager.activate(),t.autoColumns&&t.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modulesRegular.forEach(i=>{i.initialize()}),this.columnManager.setColumns(t.columns),this.eventBus.dispatch("table-built")}_loadInitialData(){return this.dataLoader.load(this.options.data).finally(()=>{this.columnManager.verticalAlignHeaders()})}destroy(){var e=this.element;for(this.destroyed=!0,this.constructor.registry.deregister(this),this.eventBus.dispatch("table-destroy"),this.rowManager.destroy();e.firstChild;)e.removeChild(e.firstChild);e.classList.remove("tabulator"),this.externalEvents.dispatch("tableDestroyed")}_detectBrowser(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):e.indexOf("Mac OS")>-1?(this.browser="safari",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.slice(0,4))}initGuard(e,t){var i,r;return this.options.debugInitialization&&!this.initialized&&(e||(i=new Error().stack.split(`
|
|
54
|
-
`),r=i[0]=="Error"?i[2]:i[1],r[0]==" "?e=r.trim().split(" ")[1].split(".")[1]:e=r.trim().split("@")[0]),console.warn("Table Not Initialized - Calling the "+e+" function before the table is initialized may result in inconsistent behavior, Please wait for the `tableBuilt` event before calling this function."+(t?" "+t:""))),this.initialized}blockRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-blocking"),this.rowManager.blockRedraw(),this.columnManager.blockRedraw(),this.eventBus.dispatch("redraw-blocked")}restoreRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-restoring"),this.rowManager.restoreRedraw(),this.columnManager.restoreRedraw(),this.eventBus.dispatch("redraw-restored")}setData(e,t,i){return this.initGuard(!1,"To set initial data please use the 'data' property in the table constructor."),this.dataLoader.load(e,t,i,!1)}clearData(){this.initGuard(),this.dataLoader.blockActiveLoad(),this.rowManager.clearData()}getData(e){return this.rowManager.getData(e)}getDataCount(e){return this.rowManager.getDataCount(e)}replaceData(e,t,i){return this.initGuard(),this.dataLoader.load(e,t,i,!0,!0)}updateData(e){var t=0;return this.initGuard(),new Promise((i,r)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(s=>{var o=this.rowManager.findRow(s[this.options.index]);o?(t++,o.updateData(s).then(()=>{t--,t||i()}).catch(l=>{r("Update Error - Unable to update row",s,l)})):r("Update Error - Unable to find row",s)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})}addData(e,t,i){return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,i).then(o=>{var l=[];o.forEach(function(u){l.push(u.getComponent())}),r(l)}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}updateOrAddData(e){var t=[],i=0;return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(o=>{var l=this.rowManager.findRow(o[this.options.index]);i++,l?l.updateData(o).then(()=>{i--,t.push(l.getComponent()),i||r(t)}):this.rowManager.addRows(o).then(u=>{i--,t.push(u[0].getComponent()),i||r(t)})}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}getRow(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}getRowFromPosition(e){var t=this.rowManager.getRowFromPosition(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}deleteRow(e){var t=[];this.initGuard(),Array.isArray(e)||(e=[e]);for(let i of e){let r=this.rowManager.findRow(i,!0);if(r)t.push(r);else return console.error("Delete Error - No matching row found:",i),Promise.reject("Delete Error - No matching row found")}return t.sort((i,r)=>this.rowManager.rows.indexOf(i)>this.rowManager.rows.indexOf(r)?1:-1),t.forEach(i=>{i.delete()}),this.rowManager.reRenderInPosition(),Promise.resolve()}addRow(e,t,i){return this.initGuard(),typeof e=="string"&&(e=JSON.parse(e)),this.rowManager.addRows(e,t,i,!0).then(r=>r[0].getComponent())}updateOrAddRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>i.getComponent()):this.rowManager.addRows(t).then(r=>r[0].getComponent())}updateRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>Promise.resolve(i.getComponent())):(console.warn("Update Error - No matching row found:",e),Promise.reject("Update Error - No matching row found"))}scrollToRow(e,t,i){var r=this.rowManager.findRow(e);return r?this.rowManager.scrollToRow(r,t,i):(console.warn("Scroll Error - No matching row found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,i){var r=this.rowManager.findRow(e);this.initGuard(),r?r.moveToRow(t,i):console.warn("Move Error - No matching row found:",e)}getRows(e){return this.rowManager.getComponents(e)}getRowPosition(e){var t=this.rowManager.findRow(e);return t?t.getPosition():(console.warn("Position Error - No matching row found:",e),!1)}setColumns(e){this.initGuard(!1,"To set initial columns please use the 'columns' property in the table constructor"),this.columnManager.setColumns(e)}getColumns(e){return this.columnManager.getComponents(e)}getColumn(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)}getColumnDefinitions(){return this.columnManager.getDefinitionTree()}showColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.show();else return console.warn("Column Show Error - No matching column found:",e),!1}hideColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.hide();else return console.warn("Column Hide Error - No matching column found:",e),!1}toggleColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.visible?t.hide():t.show();else return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1}addColumn(e,t,i){var r=this.columnManager.findColumn(i);return this.initGuard(),this.columnManager.addColumn(e,t,r).then(s=>s.getComponent())}deleteColumn(e){var t=this.columnManager.findColumn(e);return this.initGuard(),t?t.delete():(console.warn("Column Delete Error - No matching column found:",e),Promise.reject())}updateColumnDefinition(e,t){var i=this.columnManager.findColumn(e);return this.initGuard(),i?i.updateDefinition(t):(console.warn("Column Update Error - No matching column found:",e),Promise.reject())}moveColumn(e,t,i){var r=this.columnManager.findColumn(e),s=this.columnManager.findColumn(t);this.initGuard(),r?s?this.columnManager.moveColumn(r,s,i):console.warn("Move Error - No matching column found:",s):console.warn("Move Error - No matching column found:",e)}scrollToColumn(e,t,i){return new Promise((r,s)=>{var o=this.columnManager.findColumn(e);return o?this.columnManager.scrollToColumn(o,t,i):(console.warn("Scroll Error - No matching column found:",e),Promise.reject("Scroll Error - No matching column found"))})}redraw(e){this.initGuard(),this.columnManager.redraw(e),this.rowManager.redraw(e)}setHeight(e){this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.initializeRenderer(),this.rowManager.redraw(!0)}on(e,t){this.externalEvents.subscribe(e,t)}off(e,t){this.externalEvents.unsubscribe(e,t)}dispatchEvent(){var e=Array.from(arguments);e.shift(),this.externalEvents.dispatch(...arguments)}alert(e,t){this.initGuard(),this.alertManager.alert(e,t)}clearAlert(){this.initGuard(),this.alertManager.clear()}modExists(e,t){return this.modules[e]?!0:(t&&console.error("Tabulator Module Not Installed: "+e),!1)}module(e){var t=this.modules[e];return t||console.error("Tabulator module not installed: "+e),t}}var Rn=gi;class fS extends Rn{static extendModule(){Rn.initializeModuleBinder(Yo),Rn._extendModule(...arguments)}static registerModule(){Rn.initializeModuleBinder(Yo),Rn._registerModule(...arguments)}constructor(e,t,i){super(e,t,Yo)}}var pS=fS;const mS={key:0,class:"bi bi-chevron-up"},gS={key:1,class:"bi bi-chevron-down"},sd=Ie({__name:"SubFilterToggleBtn",props:["modelValue"],emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=n,r=()=>{t("update:modelValue",!i.modelValue)};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:"icon",onClick:r},[n.modelValue?(a.openBlock(),a.createElementBlock("i",mS)):(a.openBlock(),a.createElementBlock("i",gS))]))}},[["__scopeId","data-v-4810f2ed"]]),Ko={gender:{MALE:1,FEMALE:2},timeTypes:{HOUR:1,DAY:2,WEEK:3,MONTH:4,YEAR:5},customPerPageOptions:[{id:10,label:10},{id:40,label:40},{id:100,label:100},{id:150,label:150},{id:200,label:200}],mask_regex:{INTEGER:"^[0-9]*$",DECIMAL:"^[0-9]{1,10}[.]?[0-9]{1}$",HUNDREDTHS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,2})$",THOUSANDS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,3})$",NO_LIMIT_AFTER_DOT:"^[0-9]{1,10}[.]?[0-9]*$",ABOVE_ONE:"^[1-9]+[0-9]*$",NO_START_SPACE:"^[^ ]+.*$",NO_SPACE:"[^ ]*"}};Object.preventExtensions(Ko);function bS(){return{}}const vS="data:image/gif;base64,R0lGODlhQABAANUAAAQCBISGhMTGxERCROTm5KSmpCQiJGRiZNTW1LS2tPT29BQSFJSWlFRSVDQyNHR2dMzOzOzu7KyurGxqbNze3Ly+vFxaXAwKDIyOjCwqLPz+/BweHKSipDw6PMzKzExKTOzq7KyqrCQmJGRmZNza3Ly6vPz6/BQWFJyanFRWVDQ2NHx+fNTS1PTy9LSytGxubOTi5MTCxFxeXAwODJSSlP///wAAA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QAOw==",yS={class:"position-relative",style:{"min-height":"300px"}},wS={class:"placeholder-glow"},CS={class:"tabulator hide-to-print sticky-bottom bg-white"},AS={class:"row"},ES={key:0,class:"col-auto"},kS={class:"col"},SS={class:"tabulator-footer",ref:"footer"},xS=["id"],RS=["disabled"],MS={key:0,class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},TS=a.defineComponent({__name:"Table",props:{langs:{type:Object,default:()=>({})},paginationPage:{type:Number,default:null},locale:{type:String,default:"en-en"},columnHide:{type:String,default:""},columnShow:{type:String,default:""},options:{type:Object,default:()=>({}),required:!0},filters:{type:[Array,Function,Object],default:()=>[]},tableData:{type:Array,default:()=>[]},showAllColumnsIfAllHidden:{type:Boolean,default:!1},parentComponent:{type:Object,default:()=>({})},selectedRowsStorage:{type:Array,default:()=>[]},isVisibleColumnSubFilter:{type:Boolean,default:null},loadMoreText:{type:String,default:"Load More"},noDataText:{type:String,default:"No data found"},paginationLimitText:{type:String,default:"Please use pagination to navigate"}},emits:["selectedRow","unselectedRow","updateSelectedRows","updateUnselectedRows","updateTable","onHideColumn","onShowColumn","onTableRowClick","onCellClick","onTableRowMoved","pageLoaded","savePaginationPage","updateIsVisibleColumnSubFilter"],setup(n,{emit:e}){const t=n,i=e,r=a.inject("selectedTabIndex",a.ref()),s=a.inject("selectAll",a.ref(0)),o=a.ref(""),l=a.ref(null),u=a.ref({data:[],rows:[]}),c=a.ref(new Set(t.selectedRowsStorage)),d=a.ref(!1),f=a.ref(pi()),p=a.ref(null),h=a.ref(null),k=a.ref(!1),C=a.ref(null),A=a.ref(!1),w=a.computed(()=>t.options?.paginationMode==="remote"),m=a.computed(()=>Ko.customPerPageOptions),D=a.useSlots(),g=V=>!!D[V],M=()=>{o.value=""},v=V=>!V||!V.length?[]:V.map(U=>U),x=()=>{if(!p.value)return;const V=p.value.querySelector(".tabulator-header");!V||t.isVisibleColumnSubFilter===null||zi(V,sd,{modelValue:t.isVisibleColumnSubFilter,"onUpdate:modelValue":U=>i("updateIsVisibleColumnSubFilter",U)})},y=()=>{if(!p.value)return;const V=p.value.querySelector(".tabulator-header");V&&(V.classList.add("position-relative"),x())},S=()=>{if(!h.value)return null;const V=h.value;if(typeof V.getPageMax=="function"){const le=V.getPageMax();if(le!=null&&!Number.isNaN(Number(le)))return Number(le)}const U=V.last_page;return U!=null&&U!==""&&!Number.isNaN(Number(U))?Number(U):null},b=()=>{if(!h.value)return;const V=p.value?.parentNode?.querySelector(".tabulator-footer"),U=p.value?.parentNode?.querySelector(".tabulator-pages"),le=S();if(le==null||le<1||Number.isNaN(le)){V&&V.classList.add("d-none");return}le>1?(V&&V.classList.remove("d-none"),U&&U.style.display==="none"&&(U.style.display="")):V&&V.classList.add("d-none")},T=()=>{A.value||(k.value=!0)},R=()=>{A.value},L=V=>{k.value=!1,A.value},N=()=>{A.value||(d.value=!0,i("updateTable",h.value),h.value&&h.value.selectRow(Array.from(c.value)))},W=V=>{A.value||(setTimeout(()=>{A.value||i("savePaginationPage",V)}),w.value&&b(),s.value>0&&i("pageLoaded"),y())},G=V=>{if(A.value)return;const U=V.getData(),le=h.value?.options?.index||"id",oe=U[le]??null;oe!==null&&(c.value.add(oe),u.value.data.push(U),u.value.rows.push(V),i("updateSelectedRows",{data:u.value.data,row:u.value.rows}),i("selectedRow",{data:U,row:V}))},I=V=>{if(A.value)return;const U=V.getData(),le=h.value?.options?.index||"id",oe=U[le]??null;if(oe===null)return;c.value.delete(oe);const ye=u.value.data.findIndex(we=>we[le]===oe);ye!==-1&&(u.value.data.splice(ye,1),u.value.rows.splice(ye,1)),i("updateUnselectedRows",{data:U,row:V}),i("unselectedRow",{data:U,row:V})},H=function(){A.value||(h.value&&h.value.selectRow(Array.from(c.value)),k.value=!1,w.value&&b())},K=(V,U)=>{if(A.value)return;if(U?._cell?.column?.definition?.hasCellClickHandler){i("onCellClick",V,U);return}const le=[],oe=V.target;for(let ye=0;ye<oe.childNodes.length;ye++){const we=oe.childNodes[ye];we.nodeName==="INPUT"&&we.type==="checkbox"&&le.push("checkbox")}le.includes("checkbox")||i("onTableRowClick",V,U._cell.row,t.parentComponent)},F=V=>{A.value||h.value&&i("onTableRowMoved",h.value.getColumnLayout())},P=()=>{A.value||setTimeout(()=>{A.value})},Q=()=>{A.value||setTimeout(()=>{if(A.value)return;const V=p.value?.parentElement?.querySelector(".tabulator-paginator");V&&!C.value&&(C.value=new MutationObserver(()=>{const U=p.value?.parentElement?.querySelector(".tabulator-pages"),le=S();U&&le!=null&&!Number.isNaN(le)&&le>1&&U.style.display==="none"&&(U.style.display="")}),C.value.observe(V,{childList:!0,subtree:!0,attributes:!0})),ue()})},j=()=>{d.value=!1},q=()=>{if(!p.value||w.value&&!t.options.ajaxResponse||h.value)return;k.value=!0;const V=bS(),U=t.langs&&typeof t.langs=="object"?t.langs:{},le={...t.options,...w.value?{}:{data:t.tableData},langs:{...V,...U},locale:t.locale,columns:v(t.options.columns),dataLoaderLoading:`<img alt="" src="${vS}">`,placeholder:t.noDataText,...t.options.ajaxResponse?{ajaxResponse:t.options.ajaxResponse}:{}};w.value&&(delete le.ajaxURL,le.footerElement=`#tabulator-footer${f.value}`),h.value=new pS(p.value,le),h.value.on("dataLoading",T),h.value.on("dataLoaded",R),h.value.on("dataLoadError",L),h.value.on("tableBuilt",N),h.value.on("pageLoaded",W),h.value.on("rowSelected",G),h.value.on("rowDeselected",I),h.value.on("dataProcessed",H),h.value.on("cellClick",K),h.value.on("columnMoved",F),h.value.on("renderStarted",P),h.value.on("renderComplete",Q),h.value.on("tableDestroyed",j)},X=V=>{if(A.value||!d.value||!V||!h.value)return;const U=h.value.options.ajaxParams;U&&(U.per_page=Number(V)),h.value.options.paginationSize=Number(V),h.value.setPageSize(V)},ae=()=>{if(A.value||!h.value)return;const V=640,U=h.value.options;if(w.value){const le=U.ajaxParams?.per_page??U.paginationSize??h.value.getPageSize()??10,oe=Number(le);if(!Number.isFinite(oe)||oe<1)return;if(oe>=V){o.value=t.paginationLimitText;return}const we=Math.min(oe+oe,V);U.ajaxParams||(U.ajaxParams={}),U.ajaxParams.per_page=we,U.paginationSize=we,h.value.setPageSize(we),we>=V&&(o.value=t.paginationLimitText);return}else{const le=h.value.getPageSize();if(typeof le=="number"&&le<V){const oe=le;h.value.setPageSize(Math.min(le+oe,V))}}U.paginationSize>=V&&(o.value=t.paginationLimitText)},$=V=>{A.value||V===""||!h.value||(h.value.showColumn(V),i("onShowColumn",h.value.getColumnLayout()))},z=V=>{A.value||V===""||!h.value||(h.value.hideColumn(V),i("onHideColumn",h.value.getColumnLayout()))},J=V=>{A.value||!h.value||(V.filter(({visible:U})=>!U).length===V.length?V.map(({field:U})=>{a.nextTick(()=>{!A.value&&h.value&&h.value.showColumn(U)})}):V.map(({field:U,visible:le})=>{!A.value&&h.value&&(le?h.value.showColumn(U):h.value.hideColumn(U))}))},ue=()=>{a.nextTick(()=>{if(A.value||!h.value||h.value.getPage()!==1||!t.paginationPage||t.paginationPage===h.value.getPage())return!1;h.value.setPage(t.paginationPage)})};return a.onMounted(()=>{q()}),a.onBeforeUnmount(()=>{A.value=!0,C.value&&(C.value.disconnect(),C.value=null),h.value&&(h.value.destroy(),h.value=null)}),a.watch(()=>t.columnShow,V=>{V&&$(V)}),a.watch(()=>t.columnHide,V=>{V&&z(V)}),a.watch(()=>t.filters,V=>{A.value||!h.value||h.value.setFilter(V)},{deep:!0}),a.watch(()=>t.tableData,V=>{A.value||!h.value||w.value||h.value.setData(V)},{deep:!1}),a.watch(()=>t.options.ajaxResponse,V=>{A.value||(h.value&&V?h.value.options.ajaxResponse=V:w.value&&V&&!h.value&&a.nextTick(()=>{A.value||!p.value||q()}))}),a.watch(()=>t.options,V=>{A.value||w.value&&V.ajaxResponse&&!h.value&&a.nextTick(()=>{A.value||!p.value||q()})},{deep:!0}),a.watch(r,()=>{A.value||!h.value||h.value.deselectRow()}),a.watch(s,V=>{A.value||V<=0||!h.value||h.value.selectRow()}),a.watch(()=>t.options.columns,V=>{A.value||!d.value||!h.value||!V||(!V.find(({visible:U})=>U)&&t.showAllColumnsIfAllHidden?J(V):h.value.setColumns(V))},{deep:!0}),a.watch(()=>t.selectedRowsStorage,V=>{A.value||!V||(c.value=new Set(V))},{deep:!0}),a.watch(d,V=>{A.value||!V||(t.showAllColumnsIfAllHidden&&J(t.options.columns||[]),t.tableData.length>0&&!w.value&&h.value&&h.value.setData(t.tableData))},{deep:!0}),(V,U)=>(a.openBlock(),a.createElementBlock("div",yS,[a.withDirectives(a.createElementVNode("p",wS,[...U[2]||(U[2]=[a.createStaticVNode('<span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span>',10)])],512),[[a.vShow,k.value]]),a.withDirectives(a.createElementVNode("div",{ref_key:"tableRef",ref:p},null,512),[[a.vShow,!k.value]]),a.withDirectives(a.createElementVNode("div",CS,[a.createElementVNode("div",AS,[g("table-footer-left")?(a.openBlock(),a.createElementBlock("div",ES,[a.renderSlot(V.$slots,"table-footer-left")])):a.createCommentVNode("",!0),a.createElementVNode("div",kS,[a.createElementVNode("div",SS,[a.createElementVNode("div",{class:"tabulator-footer-contents d-flex",id:`tabulator-footer${f.value}`},[a.createElementVNode("button",{class:"btn btn-primary me-3",id:"loadMoreButton",onClick:ae,disabled:k.value},[a.createTextVNode(a.toDisplayString(n.loadMoreText)+" ",1),U[3]||(U[3]=a.createElementVNode("i",{class:"bi bi-plus-lg"},null,-1)),k.value?(a.openBlock(),a.createElementBlock("div",MS)):a.createCommentVNode("",!0)],8,RS),a.createVNode(Vt,{class:"me-3",style:{"min-width":"150px"},modelValue:l.value,"onUpdate:modelValue":[U[0]||(U[0]=le=>l.value=le),U[1]||(U[1]=le=>X(le))],allowClear:!1,options:m.value,dropDownPlacement:"top"},null,8,["modelValue","options"])],8,xS)],512)])])],512),[[a.vShow,w.value]]),a.createVNode(Jc,{message:o.value,onClearMessage:M},null,8,["message"])]))}}),DS={class:"r3-table-count__wrapper px-3"},OS={class:"r3-table-count__label pe-2"},LS={class:"r3-table-count__value"},BS=Ie(a.defineComponent({__name:"TableCount",props:{label:{default:""},count:{default:0},defaultLabel:{default:"-"},defaultCount:{default:"-"},size:{default:"medium"},showSeparator:{type:Boolean,default:!0}},setup(n){const e=n,t=a.computed(()=>e.label||e.defaultLabel),i=a.computed(()=>e.count===null||e.count===void 0||e.count===""?e.defaultCount:e.count);return(r,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["r3-table-count",[`r3-table-count--${r.size}`]])},[a.createElementVNode("div",DS,[a.createElementVNode("span",OS,a.toDisplayString(t.value)+":",1),a.createElementVNode("span",LS,a.toDisplayString(i.value),1)])],2))}}),[["__scopeId","data-v-87be8b13"]]),FS=Ie(a.defineComponent({__name:"ColumnSubFilter",props:{tableRefEl:{default:void 0},columnField:{default:""},mountedComponent:{default:void 0},dataProps:{default:()=>({})},table:{default:void 0},isVisible:{type:Boolean,default:!1}},setup(n){const e=n;function t(){if(!e?.tableRefEl)return!1;const i=`[tabulator-field='${e.columnField}']`,r=e.tableRefEl?.querySelector(i);if(!e.table||!r)return!1;if(e.isVisible&&r&&e.mountedComponent)return zi(r,e.mountedComponent,e.dataProps),!1;zi(r,null,{},!0)}return a.watch(()=>e,()=>{t()},{deep:!0}),a.onMounted(()=>{t()}),(i,r)=>null}}),[["__scopeId","data-v-0ddbb5a3"]]),_S=Ie(a.defineComponent({__name:"TableAppliedFiltersStorage",props:{tableName:{},filters:{}},emits:["update:filters"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=a.computed(()=>"default-page"),o=a.toRef(i,"filters");function l(){let p=localStorage.getItem("filters"),h=p?JSON.parse(p):{};h={...oi(h),[s.value]:{[i.tableName]:d(o.value)}};const k=JSON.stringify(h);return localStorage.setItem("filters",k),p=localStorage.getItem("filters"),p?JSON.parse(p):{}}function u(p){return!(!p||!p[s.value]||!p[s.value][i.tableName])}function c(p){const h=JSON.parse(p);return u(h)?(p=localStorage.getItem("filters")||"{}",JSON.parse(p)):l()}function d(p){const h={};for(const[k,C]of Object.entries(p))h[k]=oi(C._value||C);return h}function f(){let p=localStorage.getItem("filters");if(!p)return r("update:filters",{}),!1;let h=c(p);if(!h[s.value]||!h[s.value][i.tableName])return r("update:filters",{}),!1;const k=d(h[s.value][i.tableName]);return r("update:filters",{...k}),!0}return e({getFilters:f,saveFilters:l}),(p,h)=>a.createCommentVNode("",!0)}}),[["__scopeId","data-v-08a5ac04"]]),PS={class:"row pt-3"},NS={class:"col-12"},IS=["onClick"],HS=Ie(a.defineComponent({__name:"TableQuickFilterComponent",props:{filterList:{},defaultSelected:{default:""}},emits:["emitSelected"],setup(n,{emit:e}){const t=e,i=r=>{t("emitSelected",r)};return(r,s)=>(a.openBlock(),a.createElementBlock("div",PS,[a.createElementVNode("div",NS,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.filterList,(o,l)=>(a.openBlock(),a.createElementBlock("button",{onClick:u=>i(o.name),class:a.normalizeClass(["btn filter-item",{active:r.defaultSelected===o.name,disabled:o.disabled}]),key:l},a.toDisplayString(o.title),11,IS))),128))])]))}}),[["__scopeId","data-v-cdf25b7c"]]),VS={key:0,class:"col-4 mb-2"},zS={class:"form-check"},jS=["checked","id","onChange"],WS=["for"],US=["innerHTML"],GS={class:"col-auto"},YS={class:"col-auto ps-0"},QS={class:"col-auto ps-0"},Jo=Ie(a.defineComponent({__name:"EditTableColumns",props:{title:{default:"Table Data"},modalVisibility:{type:Boolean,default:!1},columns:{default:()=>[]},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["emitModalVisibility","columnVisibilityChange","apply","selectAll","unselectAll"],setup(n,{emit:e}){const t=n,i=e,r=a.ref([...t.columns]),s=a.ref([...t.columns]);a.watch(()=>t.columns,h=>{JSON.stringify(h)!==JSON.stringify(s.value)&&(r.value=[...h],s.value=[...h],l())},{deep:!0});const o=a.ref(!0);function l(){const k=r.value.filter(C=>C.title).some(C=>!C.visible);o.value=k,a.triggerRef(o)}l();const u=h=>{i("emitModalVisibility",h)},c=(h,k)=>{const C=h.target,A=r.value.findIndex(w=>w.field===k);A!==-1&&(r.value[A].visible=C.checked,l()),i("columnVisibilityChange",h,k)},d=()=>{i("apply",r.value)},f=()=>{const h=r.value.map(k=>({...k,visible:k.title?!0:k.visible}));r.value=h,s.value=[...h],l(),i("selectAll")},p=()=>{const h=r.value.map(k=>({...k,visible:k.title?!1:k.visible}));r.value=h,s.value=[...h],l(),i("unselectAll")};return(h,k)=>(a.openBlock(),a.createBlock(Uc,{title:h.title,"modal-visibility":h.modalVisibility,onEmitModalVisibility:u},{"modal-body":a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(C,A)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:A},[C.title?(a.openBlock(),a.createElementBlock("div",VS,[a.createElementVNode("div",zS,[a.createElementVNode("input",{checked:C.visible,class:"form-check-input",type:"checkbox",id:C.field,ref_for:!0,ref:"editColumns",onChange:w=>c(w,C.field)},null,40,jS),a.createElementVNode("label",{class:"form-check-label",for:C.field},[a.createElementVNode("span",{class:"lh-sm",innerHTML:C.title},null,8,US)],8,WS)])])):a.createCommentVNode("",!0)],64))),128))]),"modal-footer":a.withCtx(()=>[a.createElementVNode("div",GS,[a.createElementVNode("button",{type:"button",class:"btn btn-primary px-4",onClick:d},a.toDisplayString(h.applyText),1)]),a.createElementVNode("div",YS,[a.createElementVNode("div",QS,[o.value?(a.openBlock(),a.createElementBlock("button",{key:"select-all",type:"button",class:"btn btn-light",onClick:f},a.toDisplayString(h.selectAllText),1)):a.createCommentVNode("",!0),o.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:"unselect-all",type:"button",class:"btn btn-light",onClick:p},a.toDisplayString(h.unselectAllText),1))])])]),_:1},8,["title","modal-visibility"]))}}),[["__scopeId","data-v-7c63c539"]]);function qo(n,e){const t=a.ref(!1),i=a.ref([...n]);a.watch(()=>n,k=>{i.value=[...k]},{deep:!0});function r(k){t.value=k}function s(k,C){const A=k.target,w=i.value.map(m=>m.field===C?{...m,visible:A.checked}:m);i.value=w,e&&e.value&&(e.value.columns=w)}function o(k){console.log("useTableColumns handleColumnsApply called, received columns:",k),console.log("useTableColumns current tableColumns before update:",i.value),t.value=!1,l(k),u()}function l(k){k&&(i.value=[...k],console.log("useTableColumns tableColumns after update:",i.value))}function u(){if(!e||!e.value){console.log("useTableColumns tableOptions not available");return}console.log("useTableColumns updating tableOptions.columns:",i.value),e.value.columns=i.value,console.log("useTableColumns tableOptions.columns after update:",e.value.columns)}function c(){const k=i.value.map(C=>({...C,visible:C.title?!0:C.visible}));i.value=k,e&&e.value&&(e.value.columns=k)}function d(){const k=i.value.map(C=>({...C,visible:C.title?!1:C.visible}));i.value=k,e&&e.value&&(e.value.columns=k)}const f=a.computed(()=>i.value.filter(k=>k.visible));function p(k){i.value=[...k],e&&e.value&&(e.value.columns=k)}function h(){i.value=[...n],e&&e.value&&(e.value.columns=[...n])}return{columnsModalVisibility:t,tableColumns:i,visibleColumns:f,handleColumnsModalVisibility:r,handleColumnVisibilityChange:s,handleColumnsApply:o,handleColumnsSelectAll:c,handleColumnsUnselectAll:d,updateColumns:p,resetColumns:h}}const KS=a.defineComponent({__name:"TableColumnsButton",props:{columns:{},tableOptions:{},title:{default:"Table Columns Settings"},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:o,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=qo(t.columns,t.tableOptions);a.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,h&&Array.isArray(h)&&(s.value=[...h],i("columns-changed",h)),i("apply")}return(h,k)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Fr,{styles:"light",onSubmit:f,icon:"gear-fill"}),a.createVNode(Jo,{title:h.title,"modal-visibility":a.unref(r),columns:a.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:a.unref(o),onColumnVisibilityChange:a.unref(l),onApply:p,onSelectAll:a.unref(u),onUnselectAll:a.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),JS=a.defineComponent({__name:"TableColumnsModal",props:{columns:{},tableOptions:{},title:{default:"Настройка колонок таблицы"},applyText:{default:"Применить"},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:o,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=qo(t.columns,t.tableOptions);a.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,h&&Array.isArray(h)&&(s.value=[...h],i("columns-changed",h)),i("apply")}return(h,k)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Fr,{styles:"light",onSubmit:f,icon:"gear-fill"}),a.createVNode(Jo,{title:h.title,"modal-visibility":a.unref(r),columns:a.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:a.unref(o),onColumnVisibilityChange:a.unref(l),onApply:p,onSelectAll:a.unref(u),onUnselectAll:a.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),qS={"data-test":"ToggleAllTableRowButtons",class:"toggle-all-rows-controls"},$S={key:2,class:"selected-count"},ZS=Ie(a.defineComponent({__name:"ToggleAllTableRowButtons",props:{selectedRows:{default:()=>[]},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"},selectedText:{default:"Выбрано"},showCount:{type:Boolean,default:!0}},emits:["selectAll","unselectAll"],setup(n,{emit:e}){const t=e,i=()=>{t("selectAll")},r=()=>{t("unselectAll")};return(s,o)=>(a.openBlock(),a.createElementBlock("div",qS,[s.selectedRows.length>0?(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-light me-3",onClick:r},a.toDisplayString(s.unselectAllText),1)):a.createCommentVNode("",!0),s.selectedRows.length===0?(a.openBlock(),a.createElementBlock("button",{key:1,class:"btn btn-primary me-3",onClick:i},a.toDisplayString(s.selectAllText),1)):a.createCommentVNode("",!0),s.showCount?(a.openBlock(),a.createElementBlock("div",$S,a.toDisplayString(s.selectedText)+": "+a.toDisplayString(s.selectedRows.length),1)):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-010ff090"]]),XS={class:"row pt-3"},e1={class:"col-12"},t1=["onClick"],i1=Ie(a.defineComponent({__name:"MultipleQuickFilterComponent",props:{filterList:{},defaultSelected:{default:()=>({})}},emits:["emitSelected"],setup(n,{emit:e}){const t=n,i=e,r=s=>{t.filterList[s].disabled||(t.filterList[s].value=!t.filterList[s].value,i("emitSelected",t.filterList))};return a.watch(()=>t.defaultSelected,s=>{s&&Object.keys(s).length>0&&t.filterList.forEach((o,l)=>{const u=Object.keys(s)[l];u&&s[u]!==void 0&&(o.value=s[u])})},{immediate:!0}),(s,o)=>(a.openBlock(),a.createElementBlock("div",XS,[a.createElementVNode("div",e1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.filterList,(l,u)=>(a.openBlock(),a.createElementBlock("button",{onClick:c=>r(u),class:a.normalizeClass(["btn filter-item",{active:s.filterList[u].value,disabled:s.filterList[u].disabled}]),key:u},a.toDisplayString(l.title),11,t1))),128))])]))}}),[["__scopeId","data-v-1a1bfba2"]]);var bi;(function(n){n.Range="range",n.Steps="steps",n.Positions="positions",n.Count="count",n.Values="values"})(bi||(bi={}));var bt;(function(n){n[n.None=-1]="None",n[n.NoValue=0]="NoValue",n[n.LargeValue=1]="LargeValue",n[n.SmallValue=2]="SmallValue"})(bt||(bt={}));function n1(n){return Rr(n)&&typeof n.from=="function"}function Rr(n){return typeof n=="object"&&typeof n.to=="function"}function ad(n){n.parentElement.removeChild(n)}function $o(n){return n!=null}function od(n){n.preventDefault()}function r1(n){return n.filter(function(e){return this[e]?!1:this[e]=!0},{})}function s1(n,e){return Math.round(n/e)*e}function a1(n,e){var t=n.getBoundingClientRect(),i=n.ownerDocument,r=i.documentElement,s=cd(i);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),e?t.top+s.y-r.clientTop:t.left+s.x-r.clientLeft}function zt(n){return typeof n=="number"&&!isNaN(n)&&isFinite(n)}function ld(n,e,t){t>0&&(mt(n,e),setTimeout(function(){Tr(n,e)},t))}function ud(n){return Math.max(Math.min(n,100),0)}function Mr(n){return Array.isArray(n)?n:[n]}function o1(n){n=String(n);var e=n.split(".");return e.length>1?e[1].length:0}function mt(n,e){n.classList&&!/\s/.test(e)?n.classList.add(e):n.className+=" "+e}function Tr(n,e){n.classList&&!/\s/.test(e)?n.classList.remove(e):n.className=n.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function l1(n,e){return n.classList?n.classList.contains(e):new RegExp("\\b"+e+"\\b").test(n.className)}function cd(n){var e=window.pageXOffset!==void 0,t=(n.compatMode||"")==="CSS1Compat",i=e?window.pageXOffset:t?n.documentElement.scrollLeft:n.body.scrollLeft,r=e?window.pageYOffset:t?n.documentElement.scrollTop:n.body.scrollTop;return{x:i,y:r}}function u1(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function c1(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}function d1(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Zo(n,e){return 100/(e-n)}function Xo(n,e,t){return e*100/(n[t+1]-n[t])}function h1(n,e){return Xo(n,n[0]<0?e+Math.abs(n[0]):e-n[0],0)}function f1(n,e){return e*(n[1]-n[0])/100+n[0]}function Mn(n,e){for(var t=1;n>=e[t];)t+=1;return t}function p1(n,e,t){if(t>=n.slice(-1)[0])return 100;var i=Mn(t,n),r=n[i-1],s=n[i],o=e[i-1],l=e[i];return o+h1([r,s],t)/Zo(o,l)}function m1(n,e,t){if(t>=100)return n.slice(-1)[0];var i=Mn(t,e),r=n[i-1],s=n[i],o=e[i-1],l=e[i];return f1([r,s],(t-o)*Zo(o,l))}function g1(n,e,t,i){if(i===100)return i;var r=Mn(i,n),s=n[r-1],o=n[r];return t?i-s>(o-s)/2?o:s:e[r-1]?n[r-1]+s1(i-n[r-1],e[r-1]):i}var dd=(function(){function n(e,t,i){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=t;var r,s=[];for(Object.keys(e).forEach(function(o){s.push([Mr(e[o]),o])}),s.sort(function(o,l){return o[0][0]-l[0][0]}),r=0;r<s.length;r++)this.handleEntryPoint(s[r][1],s[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return n.prototype.getDistance=function(e){for(var t=[],i=0;i<this.xNumSteps.length-1;i++)t[i]=Xo(this.xVal,e,i);return t},n.prototype.getAbsoluteDistance=function(e,t,i){var r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);!i&&e===this.xPct[r+1]&&r++,t===null&&(t=[]);var s,o=1,l=t[r],u=0,c=0,d=0,f=0;for(i?s=(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):s=(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);l>0;)u=this.xPct[r+1+f]-this.xPct[r+f],t[r+f]*o+100-s*100>100?(c=u*s,o=(l-100*s)/t[r+f],s=1):(c=t[r+f]*u/100*o,o=0),i?(d=d-c,this.xPct.length+f>=1&&f--):(d=d+c,this.xPct.length-f>=1&&f++),l=t[r+f]*o;return e+d},n.prototype.toStepping=function(e){return e=p1(this.xVal,this.xPct,e),e},n.prototype.fromStepping=function(e){return m1(this.xVal,this.xPct,e)},n.prototype.getStep=function(e){return e=g1(this.xPct,this.xSteps,this.snap,e),e},n.prototype.getDefaultStep=function(e,t,i){var r=Mn(e,this.xPct);return(e===100||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/i},n.prototype.getNearbySteps=function(e){var t=Mn(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},n.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(o1);return Math.max.apply(null,e)},n.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},n.prototype.convert=function(e){return this.getStep(this.toStepping(e))},n.prototype.handleEntryPoint=function(e,t){var i;if(e==="min"?i=0:e==="max"?i=100:i=parseFloat(e),!zt(i)||!zt(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(i),this.xVal.push(t[0]);var r=Number(t[1]);i?this.xSteps.push(isNaN(r)?!1:r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},n.prototype.handleStepPoint=function(e,t){if(t){if(this.xVal[e]===this.xVal[e+1]){this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e];return}this.xSteps[e]=Xo([this.xVal[e],this.xVal[e+1]],t,0)/Zo(this.xPct[e],this.xPct[e+1]);var i=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],r=Math.ceil(Number(i.toFixed(3))-1),s=this.xVal[e]+this.xNumSteps[e]*r;this.xHighestCompleteStep[e]=s}},n})(),hd={to:function(n){return n===void 0?"":n.toFixed(2)},from:Number},fd={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},vi={tooltips:".__tooltips",aria:".__aria"};function b1(n,e){if(!zt(e))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=e}function v1(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");n.keyboardPageMultiplier=e}function y1(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");n.keyboardMultiplier=e}function w1(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");n.keyboardDefaultStep=e}function C1(n,e){if(typeof e!="object"||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(e.min===void 0||e.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");n.spectrum=new dd(e,n.snap||!1,n.singleStep)}function A1(n,e){if(e=Mr(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=e.length,n.start=e}function E1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");n.snap=e}function k1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");n.animate=e}function S1(n,e){if(typeof e!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");n.animationDuration=e}function pd(n,e){var t=[!1],i;if(e==="lower"?e=[!0,!1]:e==="upper"&&(e=[!1,!0]),e===!0||e===!1){for(i=1;i<n.handles;i++)t.push(e);t.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==n.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=e}n.connect=t}function x1(n,e){switch(e){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function md(n,e){if(!zt(e))throw new Error("noUiSlider: 'margin' option must be numeric.");e!==0&&(n.margin=n.spectrum.getDistance(e))}function R1(n,e){if(!zt(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getDistance(e),!n.limit||n.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function M1(n,e){var t;if(!zt(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&!(e.length===2||zt(e[0])||zt(e[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(e!==0){for(Array.isArray(e)||(e=[e,e]),n.padding=[n.spectrum.getDistance(e[0]),n.spectrum.getDistance(e[1])],t=0;t<n.spectrum.xNumSteps.length-1;t++)if(n.padding[0][t]<0||n.padding[1][t]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=e[0]+e[1],r=n.spectrum.xVal[0],s=n.spectrum.xVal[n.spectrum.xVal.length-1];if(i/(s-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function T1(n,e){switch(e){case"ltr":n.dir=0;break;case"rtl":n.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function D1(n,e){if(typeof e!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=e.indexOf("tap")>=0,i=e.indexOf("drag")>=0,r=e.indexOf("fixed")>=0,s=e.indexOf("snap")>=0,o=e.indexOf("hover")>=0,l=e.indexOf("unconstrained")>=0,u=e.indexOf("invert-connects")>=0,c=e.indexOf("drag-all")>=0,d=e.indexOf("smooth-steps")>=0;if(r){if(n.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");md(n,n.start[1]-n.start[0])}if(u&&n.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(l&&(n.margin||n.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");n.events={tap:t||s,drag:i,dragAll:c,smoothSteps:d,fixed:r,snap:s,hover:o,unconstrained:l,invertConnects:u}}function O1(n,e){if(e!==!1)if(e===!0||Rr(e)){n.tooltips=[];for(var t=0;t<n.handles;t++)n.tooltips.push(e)}else{if(e=Mr(e),e.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(i){if(typeof i!="boolean"&&!Rr(i))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),n.tooltips=e}}function L1(n,e){if(e.length!==n.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");n.handleAttributes=e}function B1(n,e){if(!Rr(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");n.ariaFormat=e}function F1(n,e){if(!n1(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");n.format=e}function _1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");n.keyboardSupport=e}function P1(n,e){n.documentElement=e}function N1(n,e){if(typeof e!="string"&&e!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=e}function I1(n,e){if(typeof e!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof n.cssPrefix=="string"?(n.cssClasses={},Object.keys(e).forEach(function(t){n.cssClasses[t]=n.cssPrefix+e[t]})):n.cssClasses=e}function gd(n){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:hd,format:hd},t={step:{r:!1,t:b1},keyboardPageMultiplier:{r:!1,t:v1},keyboardMultiplier:{r:!1,t:y1},keyboardDefaultStep:{r:!1,t:w1},start:{r:!0,t:A1},connect:{r:!0,t:pd},direction:{r:!0,t:T1},snap:{r:!1,t:E1},animate:{r:!1,t:k1},animationDuration:{r:!1,t:S1},range:{r:!0,t:C1},orientation:{r:!1,t:x1},margin:{r:!1,t:md},limit:{r:!1,t:R1},padding:{r:!1,t:M1},behaviour:{r:!0,t:D1},ariaFormat:{r:!1,t:B1},format:{r:!1,t:F1},tooltips:{r:!1,t:O1},keyboardSupport:{r:!0,t:_1},documentElement:{r:!1,t:P1},cssPrefix:{r:!0,t:N1},cssClasses:{r:!0,t:I1},handleAttributes:{r:!1,t:L1}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:fd,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format),Object.keys(t).forEach(function(u){if(!$o(n[u])&&i[u]===void 0){if(t[u].r)throw new Error("noUiSlider: '"+u+"' is required.");return}t[u].t(e,$o(n[u])?n[u]:i[u])}),e.pips=n.pips;var r=document.createElement("div"),s=r.style.msTransform!==void 0,o=r.style.transform!==void 0;e.transformRule=o?"transform":s?"msTransform":"webkitTransform";var l=[["left","top"],["right","bottom"]];return e.style=l[e.dir][e.ort],e}function H1(n,e,t){var i=u1(),r=d1(),s=r&&c1(),o=n,l,u,c,d,f,p,h=e.spectrum,k=[],C=[],A=[],w=0,m={},D=!1,g=n.ownerDocument,M=e.documentElement||g.documentElement,v=g.body,x=g.dir==="rtl"||e.ort===1?0:100;function y(E,O){var _=g.createElement("div");return O&&mt(_,O),E.appendChild(_),_}function S(E,O){var _=y(E,e.cssClasses.origin),Y=y(_,e.cssClasses.handle);if(y(Y,e.cssClasses.touchArea),Y.setAttribute("data-handle",String(O)),e.keyboardSupport&&(Y.setAttribute("tabindex","0"),Y.addEventListener("keydown",function(ce){return Fe(ce,O)})),e.handleAttributes!==void 0){var ne=e.handleAttributes[O];Object.keys(ne).forEach(function(ce){Y.setAttribute(ce,ne[ce])})}return Y.setAttribute("role","slider"),Y.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),O===0?mt(Y,e.cssClasses.handleLower):O===e.handles-1&&mt(Y,e.cssClasses.handleUpper),_.handle=Y,_}function b(E,O){return O?y(E,e.cssClasses.connect):!1}function T(E,O){u=y(O,e.cssClasses.connects),c=[],d=[],d.push(b(u,E[0]));for(var _=0;_<e.handles;_++)c.push(S(O,_)),A[_]=_,d.push(b(u,E[_+1]))}function R(E){mt(E,e.cssClasses.target),e.dir===0?mt(E,e.cssClasses.ltr):mt(E,e.cssClasses.rtl),e.ort===0?mt(E,e.cssClasses.horizontal):mt(E,e.cssClasses.vertical);var O=getComputedStyle(E).direction;return O==="rtl"?mt(E,e.cssClasses.textDirectionRtl):mt(E,e.cssClasses.textDirectionLtr),y(E,e.cssClasses.base)}function L(E,O){return!e.tooltips||!e.tooltips[O]?!1:y(E.firstChild,e.cssClasses.tooltip)}function N(){return o.hasAttribute("disabled")}function W(E){var O=c[E];return O.hasAttribute("disabled")}function G(E){E!=null?(c[E].setAttribute("disabled",""),c[E].handle.removeAttribute("tabindex")):(o.setAttribute("disabled",""),c.forEach(function(O){O.handle.removeAttribute("tabindex")}))}function I(E){E!=null?(c[E].removeAttribute("disabled"),c[E].handle.setAttribute("tabindex","0")):(o.removeAttribute("disabled"),c.forEach(function(O){O.removeAttribute("disabled"),O.handle.setAttribute("tabindex","0")}))}function H(){p&&(Z("update"+vi.tooltips),p.forEach(function(E){E&&ad(E)}),p=null)}function K(){H(),p=c.map(L),Ne("update"+vi.tooltips,function(E,O,_){if(!(!p||!e.tooltips)&&p[O]!==!1){var Y=E[O];e.tooltips[O]!==!0&&(Y=e.tooltips[O].to(_[O])),p[O].innerHTML=Y}})}function F(){Z("update"+vi.aria),Ne("update"+vi.aria,function(E,O,_,Y,ne){A.forEach(function(ce){var fe=c[ce],pe=me(C,ce,0,!0,!0,!0),be=me(C,ce,100,!0,!0,!0),Ce=ne[ce],De=String(e.ariaFormat.to(_[ce]));pe=h.fromStepping(pe).toFixed(1),be=h.fromStepping(be).toFixed(1),Ce=h.fromStepping(Ce).toFixed(1),fe.children[0].setAttribute("aria-valuemin",pe),fe.children[0].setAttribute("aria-valuemax",be),fe.children[0].setAttribute("aria-valuenow",Ce),fe.children[0].setAttribute("aria-valuetext",De)})})}function P(E){if(E.mode===bi.Range||E.mode===bi.Steps)return h.xVal;if(E.mode===bi.Count){if(E.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var O=E.values-1,_=100/O,Y=[];O--;)Y[O]=O*_;return Y.push(100),Q(Y,E.stepped)}return E.mode===bi.Positions?Q(E.values,E.stepped):E.mode===bi.Values?E.stepped?E.values.map(function(ne){return h.fromStepping(h.getStep(h.toStepping(ne)))}):E.values:[]}function Q(E,O){return E.map(function(_){return h.fromStepping(O?h.getStep(_):_)})}function j(E){function O(Ce,De){return Number((Ce+De).toFixed(7))}var _=P(E),Y={},ne=h.xVal[0],ce=h.xVal[h.xVal.length-1],fe=!1,pe=!1,be=0;return _=r1(_.slice().sort(function(Ce,De){return Ce-De})),_[0]!==ne&&(_.unshift(ne),fe=!0),_[_.length-1]!==ce&&(_.push(ce),pe=!0),_.forEach(function(Ce,De){var We,Be,qe,Xe=Ce,at=_[De+1],nt,yi,Ti,ci,jt,$t,Xi,Di=E.mode===bi.Steps;for(Di&&(We=h.xNumSteps[De]),We||(We=at-Xe),at===void 0&&(at=Xe),We=Math.max(We,1e-7),Be=Xe;Be<=at;Be=O(Be,We)){for(nt=h.toStepping(Be),yi=nt-be,jt=yi/(E.density||1),$t=Math.round(jt),Xi=yi/$t,qe=1;qe<=$t;qe+=1)Ti=be+qe*Xi,Y[Ti.toFixed(5)]=[h.fromStepping(Ti),0];ci=_.indexOf(Be)>-1?bt.LargeValue:Di?bt.SmallValue:bt.NoValue,!De&&fe&&Be!==at&&(ci=0),Be===at&&pe||(Y[nt.toFixed(5)]=[Be,ci]),be=nt}}),Y}function q(E,O,_){var Y,ne,ce=g.createElement("div"),fe=(Y={},Y[bt.None]="",Y[bt.NoValue]=e.cssClasses.valueNormal,Y[bt.LargeValue]=e.cssClasses.valueLarge,Y[bt.SmallValue]=e.cssClasses.valueSub,Y),pe=(ne={},ne[bt.None]="",ne[bt.NoValue]=e.cssClasses.markerNormal,ne[bt.LargeValue]=e.cssClasses.markerLarge,ne[bt.SmallValue]=e.cssClasses.markerSub,ne),be=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],Ce=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];mt(ce,e.cssClasses.pips),mt(ce,e.ort===0?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical);function De(Be,qe){var Xe=qe===e.cssClasses.value,at=Xe?be:Ce,nt=Xe?fe:pe;return qe+" "+at[e.ort]+" "+nt[Be]}function We(Be,qe,Xe){if(Xe=O?O(qe,Xe):Xe,Xe!==bt.None){var at=y(ce,!1);at.className=De(Xe,e.cssClasses.marker),at.style[e.style]=Be+"%",Xe>bt.NoValue&&(at=y(ce,!1),at.className=De(Xe,e.cssClasses.value),at.setAttribute("data-value",String(qe)),at.style[e.style]=Be+"%",at.innerHTML=String(_.to(qe)))}}return Object.keys(E).forEach(function(Be){We(Be,E[Be][0],E[Be][1])}),ce}function X(){f&&(ad(f),f=null)}function ae(E){X();var O=j(E),_=E.filter,Y=E.format||{to:function(ne){return String(Math.round(ne))}};return f=o.appendChild(q(O,_,Y)),f}function $(){var E=l.getBoundingClientRect(),O="offset"+["Width","Height"][e.ort];return e.ort===0?E.width||l[O]:E.height||l[O]}function z(E,O,_,Y){var ne=function(fe){var pe=J(fe,Y.pageOffset,Y.target||O);if(!pe||N()&&!Y.doNotReject||l1(o,e.cssClasses.tap)&&!Y.doNotReject||E===i.start&&pe.buttons!==void 0&&pe.buttons>1||Y.hover&&pe.buttons)return!1;s||pe.preventDefault(),pe.calcPoint=pe.points[e.ort],_(pe,Y)},ce=[];return E.split(" ").forEach(function(fe){O.addEventListener(fe,ne,s?{passive:!0}:!1),ce.push([fe,ne])}),ce}function J(E,O,_){var Y=E.type.indexOf("touch")===0,ne=E.type.indexOf("mouse")===0,ce=E.type.indexOf("pointer")===0,fe=0,pe=0;if(E.type.indexOf("MSPointer")===0&&(ce=!0),E.type==="mousedown"&&!E.buttons&&!E.touches)return!1;if(Y){var be=function(We){var Be=We.target;return Be===_||_.contains(Be)||E.composed&&E.composedPath().shift()===_};if(E.type==="touchstart"){var Ce=Array.prototype.filter.call(E.touches,be);if(Ce.length>1)return!1;fe=Ce[0].pageX,pe=Ce[0].pageY}else{var De=Array.prototype.find.call(E.changedTouches,be);if(!De)return!1;fe=De.pageX,pe=De.pageY}}return O=O||cd(g),(ne||ce)&&(fe=E.clientX+O.x,pe=E.clientY+O.y),E.pageOffset=O,E.points=[fe,pe],E.cursor=ne||ce,E}function ue(E){var O=E-a1(l,e.ort),_=O*100/$();return _=ud(_),e.dir?100-_:_}function V(E){var O=100,_=!1;return c.forEach(function(Y,ne){if(!W(ne)){var ce=C[ne],fe=Math.abs(ce-E),pe=fe===100&&O===100,be=fe<O,Ce=fe<=O&&E>ce;(be||Ce||pe)&&(_=ne,O=fe)}}),_}function U(E,O){E.type==="mouseout"&&E.target.nodeName==="HTML"&&E.relatedTarget===null&&oe(E,O)}function le(E,O){if(navigator.appVersion.indexOf("MSIE 9")===-1&&E.buttons===0&&O.buttonsProperty!==0)return oe(E,O);var _=(e.dir?-1:1)*(E.calcPoint-O.startCalcPoint),Y=_*100/O.baseSize;ke(_>0,Y,O.locations,O.handleNumbers,O.connect)}function oe(E,O){O.handle&&(Tr(O.handle,e.cssClasses.active),w-=1),O.listeners.forEach(function(_){M.removeEventListener(_[0],_[1])}),w===0&&(Tr(o,e.cssClasses.drag),Se(),E.cursor&&(v.style.cursor="",v.removeEventListener("selectstart",od))),e.events.smoothSteps&&(O.handleNumbers.forEach(function(_){Le(_,C[_],!0,!0,!1,!1)}),O.handleNumbers.forEach(function(_){ie("update",_)})),O.handleNumbers.forEach(function(_){ie("change",_),ie("set",_),ie("end",_)})}function ye(E,O){if(!O.handleNumbers.some(W)){var _;if(O.handleNumbers.length===1){var Y=c[O.handleNumbers[0]];_=Y.children[0],w+=1,mt(_,e.cssClasses.active)}E.stopPropagation();var ne=[],ce=z(i.move,M,le,{target:E.target,handle:_,connect:O.connect,listeners:ne,startCalcPoint:E.calcPoint,baseSize:$(),pageOffset:E.pageOffset,handleNumbers:O.handleNumbers,buttonsProperty:E.buttons,locations:C.slice()}),fe=z(i.end,M,oe,{target:E.target,handle:_,listeners:ne,doNotReject:!0,handleNumbers:O.handleNumbers}),pe=z("mouseout",M,U,{target:E.target,handle:_,listeners:ne,doNotReject:!0,handleNumbers:O.handleNumbers});ne.push.apply(ne,ce.concat(fe,pe)),E.cursor&&(v.style.cursor=getComputedStyle(E.target).cursor,c.length>1&&mt(o,e.cssClasses.drag),v.addEventListener("selectstart",od,!1)),O.handleNumbers.forEach(function(be){ie("start",be)})}}function we(E){E.stopPropagation();var O=ue(E.calcPoint),_=V(O);_!==!1&&(e.events.snap||ld(o,e.cssClasses.tap,e.animationDuration),Le(_,O,!0,!0),Se(),ie("slide",_,!0),ie("update",_,!0),e.events.snap?ye(E,{handleNumbers:[_]}):(ie("change",_,!0),ie("set",_,!0)))}function xe(E){var O=ue(E.calcPoint),_=h.getStep(O),Y=h.fromStepping(_);Object.keys(m).forEach(function(ne){ne.split(".")[0]==="hover"&&m[ne].forEach(function(ce){ce.call(B,Y)})})}function Fe(E,O){if(N()||W(O))return!1;var _=["Left","Right"],Y=["Down","Up"],ne=["PageDown","PageUp"],ce=["Home","End"];e.dir&&!e.ort?_.reverse():e.ort&&!e.dir&&(Y.reverse(),ne.reverse());var fe=E.key.replace("Arrow",""),pe=fe===ne[0],be=fe===ne[1],Ce=fe===Y[0]||fe===_[0]||pe,De=fe===Y[1]||fe===_[1]||be,We=fe===ce[0],Be=fe===ce[1];if(!Ce&&!De&&!We&&!Be)return!0;E.preventDefault();var qe;if(De||Ce){var Xe=Ce?0:1,at=Pe(O),nt=at[Xe];if(nt===null)return!1;nt===!1&&(nt=h.getDefaultStep(C[O],Ce,e.keyboardDefaultStep)),be||pe?nt*=e.keyboardPageMultiplier:nt*=e.keyboardMultiplier,nt=Math.max(nt,1e-7),nt=(Ce?-1:1)*nt,qe=k[O]+nt}else Be?qe=e.spectrum.xVal[e.spectrum.xVal.length-1]:qe=e.spectrum.xVal[0];return Le(O,h.toStepping(qe),!0,!0),ie("slide",O),ie("update",O),ie("change",O),ie("set",O),!1}function _e(E){E.fixed||c.forEach(function(O,_){z(i.start,O.children[0],ye,{handleNumbers:[_]})}),E.tap&&z(i.start,l,we,{}),E.hover&&z(i.move,l,xe,{hover:!0}),E.drag&&d.forEach(function(O,_){if(!(O===!1||_===0||_===d.length-1)){var Y=c[_-1],ne=c[_],ce=[O],fe=[Y,ne],pe=[_-1,_];mt(O,e.cssClasses.draggable),E.fixed&&(ce.push(Y.children[0]),ce.push(ne.children[0])),E.dragAll&&(fe=c,pe=A),ce.forEach(function(be){z(i.start,be,ye,{handles:fe,handleNumbers:pe,connect:O})})}})}function Ne(E,O){m[E]=m[E]||[],m[E].push(O),E.split(".")[0]==="update"&&c.forEach(function(_,Y){ie("update",Y)})}function de(E){return E===vi.aria||E===vi.tooltips}function Z(E){var O=E&&E.split(".")[0],_=O?E.substring(O.length):E;Object.keys(m).forEach(function(Y){var ne=Y.split(".")[0],ce=Y.substring(ne.length);(!O||O===ne)&&(!_||_===ce)&&(!de(ce)||_===ce)&&delete m[Y]})}function ie(E,O,_){Object.keys(m).forEach(function(Y){var ne=Y.split(".")[0];E===ne&&m[Y].forEach(function(ce){ce.call(B,k.map(e.format.to),O,k.slice(),_||!1,C.slice(),B)})})}function me(E,O,_,Y,ne,ce,fe){var pe;return c.length>1&&!e.events.unconstrained&&(Y&&O>0&&(pe=h.getAbsoluteDistance(E[O-1],e.margin,!1),_=Math.max(_,pe)),ne&&O<c.length-1&&(pe=h.getAbsoluteDistance(E[O+1],e.margin,!0),_=Math.min(_,pe))),c.length>1&&e.limit&&(Y&&O>0&&(pe=h.getAbsoluteDistance(E[O-1],e.limit,!1),_=Math.min(_,pe)),ne&&O<c.length-1&&(pe=h.getAbsoluteDistance(E[O+1],e.limit,!0),_=Math.max(_,pe))),e.padding&&(O===0&&(pe=h.getAbsoluteDistance(0,e.padding[0],!1),_=Math.max(_,pe)),O===c.length-1&&(pe=h.getAbsoluteDistance(100,e.padding[1],!0),_=Math.min(_,pe))),fe||(_=h.getStep(_)),_=ud(_),_===E[O]&&!ce?!1:_}function he(E,O){var _=e.ort;return(_?O:E)+", "+(_?E:O)}function ke(E,O,_,Y,ne){var ce=_.slice(),fe=Y[0],pe=e.events.smoothSteps,be=[!E,E],Ce=[E,!E];Y=Y.slice(),E&&Y.reverse(),Y.length>1?Y.forEach(function(We,Be){var qe=me(ce,We,ce[We]+O,be[Be],Ce[Be],!1,pe);qe===!1?O=0:(O=qe-ce[We],ce[We]=qe)}):be=Ce=[!0];var De=!1;Y.forEach(function(We,Be){De=Le(We,_[We]+O,be[Be],Ce[Be],!1,pe)||De}),De&&(Y.forEach(function(We){ie("update",We),ie("slide",We)}),ne!=null&&ie("drag",fe))}function Me(E,O){return e.dir?100-E-O:E}function se(E,O){C[E]=O,k[E]=h.fromStepping(O);var _=Me(O,0)-x,Y="translate("+he(_+"%","0")+")";if(c[E].style[e.transformRule]=Y,e.events.invertConnects&&C.length>1){var ne=C.every(function(ce,fe,pe){return fe===0||ce>=pe[fe-1]});if(D!==!ne){ct();return}}et(E),et(E+1),D&&(et(E-1),et(E+2))}function Se(){A.forEach(function(E){var O=C[E]>50?-1:1,_=3+(c.length+O*E);c[E].style.zIndex=String(_)})}function Le(E,O,_,Y,ne,ce){return ne||(O=me(C,E,O,_,Y,!1,ce)),O===!1?!1:(se(E,O),!0)}function et(E){if(d[E]){var O=C.slice();D&&O.sort(function(pe,be){return pe-be});var _=0,Y=100;E!==0&&(_=O[E-1]),E!==d.length-1&&(Y=O[E]);var ne=Y-_,ce="translate("+he(Me(_,ne)+"%","0")+")",fe="scale("+he(ne/100,"1")+")";d[E].style[e.transformRule]=ce+" "+fe}}function je(E,O){return E===null||E===!1||E===void 0||(typeof E=="number"&&(E=String(E)),E=e.format.from(E),E!==!1&&(E=h.toStepping(E)),E===!1||isNaN(E))?C[O]:E}function Rt(E,O,_){var Y=Mr(E),ne=C[0]===void 0;O=O===void 0?!0:O,e.animate&&!ne&&ld(o,e.cssClasses.tap,e.animationDuration),A.forEach(function(pe){Le(pe,je(Y[pe],pe),!0,!1,_)});var ce=A.length===1?0:1;if(ne&&h.hasNoSize()&&(_=!0,C[0]=0,A.length>1)){var fe=100/(A.length-1);A.forEach(function(pe){C[pe]=pe*fe})}for(;ce<A.length;++ce)A.forEach(function(pe){Le(pe,C[pe],!0,!0,_)});Se(),A.forEach(function(pe){ie("update",pe),Y[pe]!==null&&O&&ie("set",pe)})}function At(E){Rt(e.start,E)}function Ge(E,O,_,Y){if(E=Number(E),!(E>=0&&E<A.length))throw new Error("noUiSlider: invalid handle number, got: "+E);Le(E,je(O,E),!0,!0,Y),ie("update",E),_&&ie("set",E)}function te(E){if(E===void 0&&(E=!1),E)return k.length===1?k[0]:k.slice(0);var O=k.map(e.format.to);return O.length===1?O[0]:O}function re(){for(Z(vi.aria),Z(vi.tooltips),Object.keys(e.cssClasses).forEach(function(E){Tr(o,e.cssClasses[E])});o.firstChild;)o.removeChild(o.firstChild);delete o.noUiSlider}function Pe(E){var O=C[E],_=h.getNearbySteps(O),Y=k[E],ne=_.thisStep.step,ce=null;if(e.snap)return[Y-_.stepBefore.startValue||null,_.stepAfter.startValue-Y||null];ne!==!1&&Y+ne>_.stepAfter.startValue&&(ne=_.stepAfter.startValue-Y),Y>_.thisStep.startValue?ce=_.thisStep.step:_.stepBefore.step===!1?ce=!1:ce=Y-_.stepBefore.highestStep,O===100?ne=null:O===0&&(ce=null);var fe=h.countStepDecimals();return ne!==null&&ne!==!1&&(ne=Number(ne.toFixed(fe))),ce!==null&&ce!==!1&&(ce=Number(ce.toFixed(fe))),[ce,ne]}function ze(){return A.map(Pe)}function Oe(E,O){var _=te(),Y=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];Y.forEach(function(ce){E[ce]!==void 0&&(t[ce]=E[ce])});var ne=gd(t);Y.forEach(function(ce){E[ce]!==void 0&&(e[ce]=ne[ce])}),h=ne.spectrum,e.margin=ne.margin,e.limit=ne.limit,e.padding=ne.padding,e.pips?ae(e.pips):X(),e.tooltips?K():H(),C=[],Rt($o(E.start)?E.start:_,O),E.connect&&Re()}function Re(){for(;u.firstChild;)u.removeChild(u.firstChild);for(var E=0;E<=e.handles;E++)d[E]=b(u,e.connect[E]),et(E);_e({drag:e.events.drag,fixed:!0})}function ct(){D=!D,pd(e,e.connect.map(function(E){return!E})),Re()}function ge(){l=R(o),T(e.connect,l),_e(e.events),Rt(e.start),e.pips&&ae(e.pips),e.tooltips&&K(),F()}ge();var B={destroy:re,steps:ze,on:Ne,off:Z,get:te,set:Rt,setHandle:Ge,reset:At,disable:G,enable:I,__moveHandles:function(E,O,_){ke(E,O,C,_)},options:t,updateOptions:Oe,target:o,removePips:X,removeTooltips:H,getPositions:function(){return C.slice()},getTooltips:function(){return p},getOrigins:function(){return c},pips:ae};return B}function V1(n,e){if(!n||!n.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+n);if(n.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var t=gd(e),i=H1(n,t,e);return n.noUiSlider=i,i}const z1={__spectrum:dd,cssClasses:fd,create:V1},j1={class:"slider-container"},W1={class:"slider-wrapper",style:{position:"relative"}},U1=["id"],G1=["value"],Y1=["value"],Q1=Ie(a.defineComponent({__name:"Slider",props:{minCount:{default:0},maxCount:{default:100},minValue:{default:0},maxValue:{default:100},step:{default:1},tooltips:{type:Boolean,default:!0},connect:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},sliderId:{default:"slider-range"}},emits:["updateMinValue","updateMaxValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=a.ref(null),o=a.ref(null),l=a.ref(null);let u=null;const c=a.ref(i.minValue),d=a.ref(i.maxValue),f=()=>{if(!s.value)return;u&&u.destroy();const C=Array(i.maxCount-i.minCount+1).fill(0).map((w,m)=>i.minCount+m),A={to:w=>{const m=Math.round(w);return C[m]||C[0]},from:w=>{const m=Number(w);return C.indexOf(m)}};try{u=z1.create(s.value,{start:[c.value,d.value],connect:i.connect,step:i.step,tooltips:i.tooltips,format:A,range:{min:0,max:C.length-1}}),u.on("change",w=>{const m=Number(w[0]),D=Number(w[1]);c.value!==m&&(c.value=m,r("updateMinValue",m)),d.value!==D&&(d.value=D,r("updateMaxValue",D)),r("change",[m,D])}),u.on("update",w=>{const m=Number(w[0]),D=Number(w[1]);c.value=m,d.value=D})}catch(w){console.error("Error creating slider:",w)}},p=()=>{a.nextTick(()=>{f()})},h=(C,A)=>{if(u)try{u.set([C,A])}catch(w){console.error("Error updating slider values:",w)}},k=C=>{u&&(C?u.disable():u.enable())};return a.watch(()=>[i.minValue,i.maxValue],([C,A])=>{(C!==c.value||A!==d.value)&&(c.value=C,d.value=A,h(C,A))},{immediate:!1}),a.watch(()=>i.disabled,C=>{k(C)}),a.watch(()=>[i.minCount,i.maxCount],()=>{p()}),a.onMounted(()=>{p()}),a.onUnmounted(()=>{u&&(u.destroy(),u=null)}),e({updateValues:h,getValues:()=>u?.get(),reset:()=>{u&&u.reset()},destroy:()=>{u&&(u.destroy(),u=null)}}),(C,A)=>(a.openBlock(),a.createElementBlock("div",j1,[a.createElementVNode("div",W1,[a.createElementVNode("div",{ref_key:"sliderElement",ref:s,id:C.sliderId},null,8,U1)]),a.createElementVNode("input",{type:"hidden",ref_key:"minValueRef",ref:o,value:C.minValue},null,8,G1),a.createElementVNode("input",{type:"hidden",ref_key:"maxValueRef",ref:l,value:C.maxValue},null,8,Y1)]))}}),[["__scopeId","data-v-892dca90"]]),K1=["title"],J1=Ie(a.defineComponent({__name:"QuestionIcon",props:{title:{default:""},size:{default:"md"},color:{default:"#999999"},iconClass:{default:""},tooltipPosition:{default:"top"},clickToShow:{type:Boolean,default:!0}},setup(n){const e=n,t=a.ref(),i=a.ref(!1),r=a.computed(()=>({color:e.color})),s=a.computed(()=>{switch(e.size){case"sm":return"question-icon--sm";case"lg":return"question-icon--lg";default:return"question-icon--md"}}),o=a.computed(()=>`question-tooltip--${e.tooltipPosition}`),l=()=>{e.clickToShow&&e.title&&(i.value=!i.value)},u=c=>{t.value&&!t.value.contains(c.target)&&(i.value=!1)};return a.onMounted(()=>{e.clickToShow&&document.addEventListener("click",u)}),a.onUnmounted(()=>{e.clickToShow&&document.removeEventListener("click",u)}),(c,d)=>(a.openBlock(),a.createElementBlock("div",{class:"question-icon-wrapper",ref_key:"wrapperRef",ref:t},[a.createElementVNode("i",{class:a.normalizeClass(["bi bi-question-circle-fill question-icon",[c.iconClass,s.value]]),title:c.title,style:a.normalizeStyle(r.value),onClick:l},null,14,K1),i.value&&c.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["question-tooltip",o.value])},[a.createTextVNode(a.toDisplayString(c.title)+" ",1),d[0]||(d[0]=a.createElementVNode("div",{class:"question-tooltip-arrow"},null,-1))],2)):a.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-2c102103"]]),q1={class:"container-fluid rounded overflow-hidden bg-light"},$1={class:"row w-100"},Z1={class:"text-secondary"},X1={class:"d-flex py-3 px-2 onlyPrint"},ex={class:"row w-100"},tx={class:"text-secondary"},ix={class:"row"},nx=Ie(a.defineComponent({__name:"FilterValuesPanel",props:{filterValues:{default:null},filterTitles:{}},emits:["showFilter"],setup(n,{emit:e}){const t=n,i=a.ref(!1),r=a.ref([]);a.computed(()=>t.filterValues?Object.entries(t.filterValues).filter(([o,l])=>l).map(([o,l])=>({name:t.filterTitles[o]||o,value:String(l),key:o})):[]);function s(o){if(!o){r.value=[];return}r.value=Object.entries(o).filter(([l,u])=>u).map(([l,u])=>({name:t.filterTitles[l]||l,value:String(u),key:l}))}return a.watch(()=>t.filterValues,o=>{const l=a.isRef(o)?o.value:o;s(l)},{deep:!0,immediate:!0}),(o,l)=>(a.openBlock(),a.createElementBlock("div",q1,[a.createElementVNode("div",{style:a.normalizeStyle({overflow:"hidden",maxHeight:i.value?"initial":"83px"}),class:"d-flex py-3 px-2 noPrint"},[a.createElementVNode("div",$1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["mb-2",c===r.value.length-1?"col":"col-auto"]),key:u.key},[a.createElementVNode("div",Z1,a.toDisplayString(u.name)+":",1),a.createElementVNode("div",null,[a.createElementVNode("strong",null,a.toDisplayString(u.value),1)])],2))),128))]),a.createElementVNode("div",null,[a.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-right rounded",onClick:l[0]||(l[0]=u=>o.$emit("showFilter"))},[...l[2]||(l[2]=[a.createElementVNode("i",{class:"bi bi-chevron-right i-hidden"},null,-1)])])])],4),a.createElementVNode("div",X1,[a.createElementVNode("div",ex,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["mb-2",c===r.value.length-1?"col":"col-auto"]),key:u.key},[a.createElementVNode("div",tx,a.toDisplayString(u.name)+":",1),a.createElementVNode("div",null,[a.createElementVNode("strong",null,a.toDisplayString(u.value),1)])],2))),128))])]),a.createElementVNode("div",ix,[a.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-bottom hide-to-print",onClick:l[1]||(l[1]=u=>i.value=!i.value)},[a.createElementVNode("i",{class:a.normalizeClass({"bi lh-normal":!0,"bi-chevron-down":!i.value,"bi-chevron-up":i.value})},null,2)])])]))}}),[["__scopeId","data-v-5fb2b7d8"]]),bd=(n={})=>{n.hasOwnProperty("KEY")||(n.KEY="tables");const{KEY:e}=n;function t(o,l){const u=localStorage.getItem(e);let c=JSON.parse(u);return c={...c,[o]:l},localStorage.setItem(e,JSON.stringify(c)),!0}function i(o){return o?(localStorage.setItem(e,JSON.stringify(o)),!0):!1}function r(o){const l=localStorage.getItem(e),u=JSON.parse(l);return u?.hasOwnProperty(o)&&delete u[o],i(u),!0}function s(o){const l=localStorage.getItem(e);return(JSON.parse(l)||{})[o]||null}return{setItemStorage:t,removeItemStorage:r,getItemStorage:s}},rx=({localStorageKey:n=null,getAjaxUrl:e,getAjaxResponse:t,getColumns:i,tableOptions:r,initialFilters:s=()=>({empty:"empty"}),initialFilterTitles:o=()=>({empty:"empty"}),selectedQuickFilter:l=null})=>{const u=a.ref({}),c=a.ref(0),d=a.ref(""),f=a.ref(""),p=a.ref({}),h=a.ref(!1),k=a.ref(!1),C=a.ref(!1),A=a.ref(s()),w=a.ref(!1),{setItemStorage:m,removeItemStorage:D,getItemStorage:g}=bd(),M=()=>n==null?null:a.toValue(n);async function v(){A.value=s(),p.value={}}function x($){const z=M();if(!z)return!1;m(z,$)}const y=a.readonly({...o()});function S($,z){p.value[$]=z}const b=a.computed(()=>Object.values(p.value).some(Boolean));function T(){c.value+=1}async function R($){if(!$||!$.options)return;const z=r.value.ajaxURL;z&&($.options.ajaxURL=z),r.value.columns&&($.options.columns=r.value.columns,$.setColumns(r.value.columns),await L($)),z&&$.replaceData(z)}async function L($){const z=typeof $.hideColumn=="function",J=typeof $.showColumn=="function";if(!z||!J){T();return}for(const ue of r.value.columns)ue.visible===!1?$.hideColumn(ue.field):$.showColumn(ue.field)}function N($){const z=M();if(!z)return!1;m(z,G($))}async function W($){const z=r.value?.paginationMode==="remote";if(!(z&&(!$||!$.replaceData))&&!(w.value||k.value)){k.value=!0;try{if(await K(),w.value||(await a.nextTick(),w.value))return;if(!z){T();return}await R($),h.value=!1}finally{k.value=!1}}}function G($){return $.map(J=>{let ue=JSON.parse(JSON.stringify(J));return J.visible===!1&&(delete ue.width,delete ue.minWidth),ue})}function I($){const z=M();if(!z)return!1;m(z,G($))}function H(){const $={};for(const[z,J]of Object.entries({...A.value}))!J||J?.length<1||Array.isArray(J)&&(J[0]===null||J[0]===void 0||J[0]==="")||($[z]=J);return $}async function K(){if(w.value)return;const $=e(),z=await t();if(w.value)return;const J=j();r.value={...r.value,ajaxURL:$,ajaxResponse:z,columns:J,ajaxParams:{...r.value.ajaxParams,per_page:r.value.paginationSize}}}const F=a.computed(()=>{let $=[];return r.value.columns.map(z=>{z.title&&$.push(z.visible)}),$.includes(!1)});async function P($,z){$.target.checked==!1?(d.value=z,f.value=""):(f.value=z,d.value="")}async function Q(){const $=M();D($),r.value.columns=j()}function j(){const $=M(),z=g($);return z||i({selectedQuickFilter:l?.value})}async function q(){const $=M();D($),r.value.columns.map(z=>z.visible=!1),I(r.value.columns)}function X($){r.value.columns=$;const z=M();z&&m(z,$)}function ae(){r.value.columns=r.value.columns}return a.onBeforeUnmount(()=>{w.value=!0}),a.provide("setFilterParamsStrings",S),a.provide("selectedFilterTitles",y),a.provide("tableFilters",A),a.provide("filterModalVisibility",h),a.provide("resetFilters",v),a.provide("applyFilters",W),a.provide("editTableColumnsModalVisibility",C),a.provide("tableOptions",r),a.provide("editTableColumnVisibility",P),a.provide("isTableCoumnsHidden",F),a.provide("unselectAllTableColumnCheckboxes",q),a.provide("selectAllTableColumnCheckboxes",Q),a.provide("handleColumnsChanged",X),a.provide("handleColumnsApply",ae),a.provide("table",u),{selectAllTableColumnCheckboxes:Q,unselectAllTableColumnCheckboxes:q,isTableCoumnsHidden:F,editTableColumnVisibility:P,fetchData:K,onHideColumn:I,getFilterData:H,applyFilters:W,reRenderTable:T,resetFilters:v,onTableRowMoved:x,onShowColumn:N,table:u,tableKey:c,columnHide:d,columnShow:f,selectedFilterTitles:y,setFilterParamsStrings:S,filterParamsStrings:p,isSelectedFiltersVisible:b,filterModalVisibility:h,editTableColumnsModalVisibility:C,tableFilters:A,tableOptions:r,handleColumnsChanged:X,handleColumnsApply:ae}};function vd(n){return n.map(e=>{const t=JSON.parse(JSON.stringify(e));return e.visible===!1&&(delete t.width,delete t.minWidth),t})}function yd(n){return n.filter(e=>e.visible===!0)}function wd(n,e){return n.map(t=>t.field===e?{...t,visible:!t.visible}:t)}function Dr(n){return n.map(e=>({...e,visible:e.title?!0:e.visible}))}function el(n){return n.map(e=>({...e,visible:e.title?!1:e.visible}))}function Tn(n){if(!Array.isArray(n))return console.warn("validateColumns: columns must be an array"),!1;for(const e of n){if(!e.field||typeof e.field!="string")return console.warn("validateColumns: column.field must be a non-empty string",e),!1;if(typeof e.visible!="boolean")return console.warn("validateColumns: column.visible must be a boolean",e),!1}return!0}function Cd(n){return n.some(e=>e.title&&!e.visible)}function Ad(n,e){return n.find(t=>t.field===e)}function Or(n,e,t){return n.map(i=>i.field===e?{...i,...t}:i)}const sx=Object.freeze(Object.defineProperty({__proto__:null,getColumnByField:Ad,getVisibleColumns:yd,hasHiddenColumns:Cd,hideAllColumns:el,prepareColumnsToSave:vd,resetColumnsToDefault:Dr,toggleColumnVisibility:wd,updateColumn:Or,validateColumns:Tn},Symbol.toStringTag,{value:"Module"}));function Ed(n){const{initialColumns:e,localStorageKey:t,tableOptions:i,autoSave:r=!0,onColumnsChange:s,onApply:o,validateOnChange:l=!0}=n;Tn(e)||console.error("useTableColumnsEnhanced: invalid initialColumns provided");const u=a.ref(!1),c=a.ref([...e]),d=a.ref(!1);if(t&&typeof window<"u")try{const I=localStorage.getItem(t);if(I){const H=JSON.parse(I);Tn(H)&&(c.value=H)}}catch(I){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",I)}const f=a.computed(()=>yd(c.value)),p=a.computed(()=>Cd(c.value)),h=a.computed(()=>c.value.length),k=a.computed(()=>f.value.length);function C(I){if(!(!t||typeof window>"u"||!r))try{const H=vd(I);localStorage.setItem(t,JSON.stringify(H))}catch(H){console.warn("useTableColumnsEnhanced: failed to save columns to localStorage",H)}}function A(){if(!t||typeof window>"u")return null;try{const I=localStorage.getItem(t);if(I){const H=JSON.parse(I);if(Tn(H))return H}}catch(I){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",I)}return null}function w(){if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(I){console.warn("useTableColumnsEnhanced: failed to clear localStorage",I)}}function m(I){if(l&&!Tn(I)){console.error("useTableColumnsEnhanced: invalid columns provided to updateColumns");return}c.value=[...I],C(I),s?.(I)}function D(I,H){const K=I.target,F=Or(c.value,H,{visible:K.checked});m(F)}function g(I){u.value=I}function M(I){const H=I||c.value;m(H),u.value=!1,o?.(H)}function v(){const I=Dr(c.value);m(I)}function x(){const I=el(c.value);m(I)}function y(I){const H=wd(c.value,I);m(H)}function S(I){const H=Or(c.value,I,{visible:!0});m(H)}function b(I){const H=Or(c.value,I,{visible:!1});m(H)}function T(){const I=Dr(e);m(I)}function R(){const I=Dr(c.value);m(I)}function L(){const I=el(c.value);m(I)}function N(I){return Ad(c.value,I)}function W(I){return N(I)?.visible??!1}function G(){i?.value&&(i.value.columns=c.value)}return a.watch(c,()=>{G()},{deep:!0}),a.watch(()=>e,I=>{d.value||(c.value=[...I],d.value=!0)},{deep:!0,immediate:!0}),d.value||(d.value=!0,G()),{columnsModalVisibility:u,tableColumns:c,visibleColumns:f,hasHidden:p,columnsCount:h,visibleCount:k,isInitialized:d,handleColumnsModalVisibility:g,handleColumnVisibilityChange:D,handleColumnsApply:M,handleColumnsSelectAll:v,handleColumnsUnselectAll:x,updateColumns:m,toggleColumn:y,showColumn:S,hideColumn:b,resetToDefault:T,showAll:R,hideAll:L,getColumn:N,isColumnVisible:W,saveToLocalStorage:C,loadFromLocalStorage:A,clearLocalStorage:w,syncWithTableOptions:G}}function ax(n){const{localStorageKey:e,getColumns:t,tableOptions:i,tableDefault:r,onColumnsChange:s,onApply:o}=n,l=Ed({initialColumns:t(),localStorageKey:e,tableOptions:i,autoSave:!0,onColumnsChange:h=>{s?.(h),r?.applyFilters&&r.applyFilters()},onApply:h=>{o?.(h),r?.applyFilters&&r.applyFilters()}});function u(h){console.log("useTableColumnsIntegration handleColumnsChanged called, received columns:",h),l.updateColumns(h)}function c(){console.log("useTableColumnsIntegration handleColumnsApply called"),l.handleColumnsApply()}function d(){if(r){if(r.onShowColumn){const h=r.onShowColumn;r.onShowColumn=k=>{console.log("useTableColumnsIntegration onShowColumn called with columns:",k),l.updateColumns(k),h?.(k)}}if(r.onHideColumn){const h=r.onHideColumn;r.onHideColumn=k=>{console.log("useTableColumnsIntegration onHideColumn called with columns:",k),l.updateColumns(k),h?.(k)}}}}function f(){i?.value&&(i.value.columns=l.tableColumns.value)}function p(){r?.tableOptions&&(r.tableOptions.columns=l.tableColumns.value)}return a.watch(()=>t(),h=>{console.log("useTableColumnsIntegration getColumns changed, updating columns:",h),l.updateColumns(h)},{deep:!0}),d(),{...l,handleColumnsChanged:u,handleColumnsApply:c,syncWithTableOptions:f,syncWithTable:p,setupTableDefaultIntegration:d}}function ox(n){const{tableColumns:e,tableOptions:t,tableDefault:i,onApply:r}=n;function s(l){console.log("createColumnHandlers handleColumnsChanged called, received columns:",l),e.value=l,t.value.columns=l,i?.tableOptions&&(i.tableOptions.columns=l)}function o(){console.log("createColumnHandlers handleColumnsApply called"),console.log("createColumnHandlers current tableColumns:",e.value),t.value.columns=e.value,i?.tableOptions&&(i.tableOptions.columns=e.value),r?.()}return{handleColumnsChanged:s,handleColumnsApply:o}}const lx=(n={})=>{const{navigate:e=C=>console.warn("useBreadcrumbs: navigate function not provided"),translate:t=C=>C,getCurrentRoute:i=()=>({path:"/",name:"home"}),maxItems:r=5,storageKey:s="breadcrumbs"}=n,o=a.ref([]);function l(C){e(C)}function u(C,A){if(!Array.isArray(C))return[];const w=JSON.parse(JSON.stringify(C));return w.length>A&&w.splice(0,w.length-A),w}function c(){const C=i(),A={path:C.path,name:C.name},w=o.value||[],m=w[w.length-1];if(JSON.stringify(m)===JSON.stringify(A))return!1;w.push(A),o.value=u(w,r),localStorage.setItem(s,JSON.stringify(o.value))}function d(){const C=JSON.parse(localStorage.getItem(s)||"[]");C?.length||c(),o.value=C}const f=a.computed(()=>o.value.map((C,A)=>({text:t(`routes.${C.name}`),href:C.path,isActive:A===o.value.length-1})));function p(){c()}function h(){o.value=[],localStorage.removeItem(s)}function k(C){const A=o.value||[];A.push(C),o.value=u(A,r),localStorage.setItem(s,JSON.stringify(o.value))}return a.onMounted(()=>{d()}),{goTo:l,crumbs:f,breadcrumbs:o,updateBreadcrumbs:p,clearBreadcrumbs:h,addBreadcrumb:k}};function ux(n){return n?.length?n.map(e=>typeof e=="string"?e:e?.name??"").filter(e=>!!e):[]}function cx(n){const e=a.computed(()=>{const t=a.toValue(n);return ux(t)});return t=>lr(t,e.value)}const ui={country:"country",region:"region",district:"district",locality:"locality",street:"street",house:"house",building:"building",apartment:"apartment"};function dx(n){return{countryLabel:n(ui.country),regionLabel:n(ui.region),districtLabel:n(ui.district),localityLabel:n(ui.locality),streetLabel:n(ui.street),houseLabel:n(ui.house),buildingLabel:n(ui.building),apartmentLabel:n(ui.apartment)}}const tl={expandAll:"accordion.expand_all",collapseAll:"accordion.collapse_all"};function hx(n){return{expandText:n(tl.expandAll),collapseText:n(tl.collapseAll)}}async function fx(n){const{logOutSSO:e,nextTick:t,navigateTo:i,redirect:r,onReset:s,redirectPath:o="/login",onError:l=c=>console.error(c)}=n,u=typeof e=="function"?e:async()=>{};try{await u()}catch(c){l(c)}finally{const c=r??i;if(r){s(),c(o);return}await t(()=>{s(),c(o)})}}const kd=n=>{if(typeof n=="string"&&n.length!==0&&!n.toLowerCase().includes("localhost"))return n},px=({origin:n,authCookieDomain:e,httpOnly:t})=>{const i=kd(e);return{path:"/",sameSite:"lax",secure:n?.startsWith("https://")??!1,...typeof t=="boolean"?{httpOnly:t}:{},...i?{domain:i}:{}}},Sd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";function xd(){const n=globalThis.crypto;if(!n)throw new Error("Web Crypto API is not available.");if(!n.getRandomValues)throw new Error("Web Crypto getRandomValues is not available.");if(!n.subtle?.digest)throw new Error("Web Crypto subtle digest is not available.");return n}function Rd(n){const e=xd(),t=new Uint8Array(n);e.getRandomValues(t);let i="";return t.forEach(r=>{i+=Sd[r%Sd.length]}),i}function mx(n){const e=new Uint8Array(n);let t="";return e.forEach(i=>{t+=String.fromCharCode(i)}),btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}function Md(n=64){if(!Number.isInteger(n)||n<43||n>128)throw new Error("PKCE code_verifier length must be between 43 and 128.");return Rd(n)}async function Td(n){const e=xd(),i=new TextEncoder().encode(n),r=await e.subtle.digest("SHA-256",i);return mx(r)}async function gx(n=64){const e=Md(n),t=await Td(e);return{codeVerifier:e,codeChallenge:t}}function bx(n=32){if(!Number.isInteger(n)||n<16||n>128)throw new Error("OAuth state length must be between 16 and 128.");return Rd(n)}function vx(n,e,t){return{current_page:e,data:[],first_page_url:n,from:0,last_page:1,last_page_url:n,links:[],next_page_url:null,path:n,per_page:t,prev_page_url:null,to:0,total:0}}function yx(n={}){const e=(i,r)=>i==null||i===""?[]:Array.isArray(i)?i.flatMap((s,o)=>e(s,r?`${r}[${o}]`:String(o))):typeof i=="object"?Object.entries(i).flatMap(([s,o])=>e(o,r?`${r}[${s}]`:s)):r?[{key:r,value:String(i)}]:[],t=i=>i==null||i===""?!0:Array.isArray(i)?i.length===0:typeof i=="object"?Object.keys(i).length===0:!1;return async(i,r,s)=>{const o=(r.method||"GET").toUpperCase();let l=i;if(o==="GET"&&s&&typeof s=="object"){const c=new URL(i,typeof window<"u"?window.location.origin:"http://localhost");Object.entries(s).forEach(([d,f])=>{if(t(f))return;e(f,d).forEach(({key:h,value:k})=>{c.searchParams.set(h,k)})}),l=c.toString()}const u=await fetch(l,r);if(u.status===401)throw n.onUnauthorized?.(u),u;if(u.status===404&&n.onNotFound)return n.onNotFound({url:l,params:s,response:u});if(!u.ok)throw u;return await u.json()}}function wx(n,e){return{[`${e}-${e}`]:{pagination:{first:n("table_pagination.first"),first_title:n("table_pagination.first_title"),last:n("table_pagination.last"),last_title:n("table_pagination.last_title"),prev:n("table_pagination.prev"),prev_title:n("table_pagination.prev_title"),next:n("table_pagination.next"),next_title:n("table_pagination.next_title"),all:n("table_pagination.all"),counter:{showing:n("table_pagination.showing"),of:n("table_pagination.of"),rows:n("table_pagination.rows"),pages:n("table_pagination.pages")}},data:{loading:n("table_pagination.loading"),error:n("table_pagination.error")}}}}const Dn="/api/services/handbook/overpass/",Cx=n=>({searchCountries:(e={})=>n(`${Dn}countries`,{method:"GET",params:e}),getRegionsByCountry:e=>n(`${Dn}countries/${e}/regions`,{method:"GET"}),getDistrictsByRegion:e=>n(`${Dn}regions/${e}/districts`,{method:"GET"}),getLocalitiesByDistrict:e=>n(`${Dn}districts/${e}/cities`,{method:"GET"}),getStreetsByLocality:e=>n(`${Dn}cities/${e}/streets`,{method:"GET"})});ee.ACCORDION_LOCALIZATION_KEYS=tl,ee.ADDRESS_FORM_TRANSLATIONS=ui,ee.AddButton=il,ee.AddressForm=sw,ee.AgeFromAgeTo=yw,ee.BooleanCheckbox=Nc,ee.Breadcrumbs=kA,ee.Card=vC,ee.CardInfo=FA,ee.Checkbox=ub,ee.ClearFormButton=jd,ee.CollapseButton=Nd,ee.CollapsedSidebarLink=Qc,ee.ColumnSubFilter=FS,ee.ConfirmationModal=Kw,ee.CustomInput=ur,ee.DefaultAccordion=mE,ee.DefaultButton=Fr,ee.DefaultDropDown=Po,ee.DefaultModal=Wc,ee.Divider=No,ee.EditTableColumns=Jo,ee.EditTableColumnsModalComponent=Uc,ee.ErrorMessageComponent=uE,ee.ExportButton=Id,ee.ExportComponent=Dh,ee.FilterValuesPanel=nx,ee.Flatpickr=Iy,ee.Footer=wC,ee.FormError=ki,ee.Header=PC,ee.HeaderSearchForm=jy,ee.Icon=Br,ee.KindCheckboxesAccordion=RE,ee.LanguageSelector=SA,ee.Logo=Gc,ee.MainComponent=gA,ee.MultiCheckbox=wy,ee.MultiInput=Sy,ee.MultipleQuickFilterComponent=i1,ee.PageCard=tE,ee.PageTitle=mC,ee.PasswordInput=sb,ee.PrintButton=Hd,ee.QuestionIcon=J1,ee.Sidebar=Kc,ee.SidebarLink=Yc,ee.Slider=Q1,ee.Spinner=Lr,ee.SubFilterToggleBtn=sd,ee.Table=TS,ee.TableAppliedFiltersStorage=_S,ee.TableColumnsButton=KS,ee.TableColumnsModal=JS,ee.TableCount=BS,ee.TableFilterModalComponent=iC,ee.TableQuickFilterComponent=HS,ee.Toast=Jc,ee.ToggleAllTableRowButtons=ZS,ee.ToggleButtons=Gd,ee.VSelect=Vt,ee.addDays=Da,ee.addMonths=Oa,ee.addYears=La,ee.areArraysEqual=Ja,ee.arrayToCutString=ja,ee.camelCase=Pa,ee.capitalize=_a,ee.chunk=Ya,ee.clamp=fo,ee.constants=Ko,ee.createAddressService=Cx,ee.createColumnHandlers=ox,ee.createEmptyRemotePageResponse=vx,ee.createTableAjaxRequestFunc=yx,ee.createTabulatorLangsFromT=wx,ee.cutString=za,ee.debounce=hn,ee.findAll=ha,ee.findOne=da,ee.firstToUppercase=Fa,ee.flattenObject=or,ee.formatDate=Ra,ee.formatMoney=Ma,ee.generateCodeChallenge=Td,ee.generateCodeVerifier=Md,ee.generateId=Xa,ee.generatePkcePair=gx,ee.generateState=bx,ee.getAccordionLocalization=hx,ee.getAddressFormLabels=dx,ee.getAuthCookieOptions=px,ee.getBrowserLocale=ga,ee.getDeclinationFromNumber=Ba,ee.getDeepCopyObject=oi,ee.getLocalStorage=so,ee.getNowDate=Ta,ee.getSessionStorage=lo,ee.getSharedCookieDomain=kd,ee.getSupportedLocales=nr,ee.getUniqueKey=pi,ee.getValueFromArr=ya,ee.getValueFromObjectItem=rr,ee.groupBy=Ua,ee.hasMatch=vo,ee.hasPermission=lr,ee.hasRole=bo,ee.helpers=Xg,ee.initEmailMask=Ca,ee.initInnMask=Ea,ee.initKppMask=ka,ee.initPassportMask=xa,ee.initPhoneMask=Aa,ee.initSnilsMask=Sa,ee.isArraysEqual=Ka,ee.isEqual=ar,ee.isObject=Qa,ee.isValidDate=sr,ee.isValidEmail=to,ee.isValidLocale=ba,ee.isValidPhone=io,ee.isValidUrl=no,ee.kebabCase=Na,ee.lerp=po,ee.maskDate=Va,ee.memoize=co,ee.mountSubFilter=zi,ee.omit=Za,ee.once=ho,ee.pick=$a,ee.prepareResponse=yo,ee.prepareSelectOptions=fa,ee.random=mo,ee.removeLocalStorage=ao,ee.removeSessionStorage=uo,ee.required=eo,ee.roundToDecimals=go,ee.runLogoutFlow=fx,ee.scrollToElement=ma,ee.scrollToError=pa,ee.setLocalStorage=ro,ee.setSessionStorage=oo,ee.snakeCase=Ia,ee.sortBy=Ga,ee.sumOfArrayNumbers=wa,ee.tableColumnsUtils=sx,ee.throttle=va,ee.truncate=Ha,ee.unflatenObject=qa,ee.unique=Wa,ee.useBreadcrumbs=lx,ee.usePermissionChecker=cx,ee.useTableColumns=qo,ee.useTableColumnsEnhanced=Ed,ee.useTableColumnsIntegration=ax,ee.useTableDefault=rx,ee.useTableStorage=bd,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})}));
|
|
53
|
+
Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.adjustTableSize(),this.dispatch("rows-wiped")}destroy(){this.rows.forEach(e=>{e.wipe()}),this.rows=[],this.activeRows=[],this.activeRowsPipeline=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0}deleteRow(e,t){var i=this.rows.indexOf(e),r=this.activeRows.indexOf(e);r>-1&&this.activeRows.splice(r,1),i>-1&&this.rows.splice(i,1),this.setActiveRows(this.activeRows),this.displayRowIterator(s=>{var o=s.indexOf(e);o>-1&&s.splice(o,1)}),t||this.reRenderInPosition(),this.regenerateRowPositions(),this.dispatchExternal("rowDeleted",e.getComponent()),this.displayRowsCount||this.tableEmpty(),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.getData())}addRow(e,t,i,r){var s=this.addRowActual(e,t,i,r);return s}addRows(e,t,i,r){var s=[];return new Promise((o,l)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(typeof i>"u"&&t||typeof i<"u"&&!t)&&e.reverse(),e.forEach((u,c)=>{var d=this.addRow(u,t,i,!0);s.push(d),this.dispatch("row-added",d,u,t,i)}),this.refreshActiveData(r?"displayPipeline":!1,!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),o(s)})}findAddRowPos(e){return typeof e>"u"&&(e=this.table.options.addRowPos),e==="pos"&&(e=!0),e==="bottom"&&(e=!1),e}addRowActual(e,t,i,r){var s=e instanceof pt?e:new pt(e||{},this),o=this.findAddRowPos(t),l=-1,u,c;return i||(c=this.chain("row-adding-position",[s,o],null,{index:i,top:o}),i=c.index,o=c.top),typeof i<"u"&&(i=this.findRow(i)),i=this.chain("row-adding-index",[s,i,o],null,i),i&&(l=this.rows.indexOf(i)),i&&l>-1?(u=this.activeRows.indexOf(i),this.displayRowIterator(function(d){var f=d.indexOf(i);f>-1&&d.splice(o?f:f+1,0,s)}),u>-1&&this.activeRows.splice(o?u:u+1,0,s),this.rows.splice(o?l:l+1,0,s)):o?(this.displayRowIterator(function(d){d.unshift(s)}),this.activeRows.unshift(s),this.rows.unshift(s)):(this.displayRowIterator(function(d){d.push(s)}),this.activeRows.push(s),this.rows.push(s)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",s.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),r||this.reRenderInPosition(),s}moveRow(e,t,i){this.dispatch("row-move",e,t,i),this.moveRowActual(e,t,i),this.regenerateRowPositions(),this.dispatch("row-moved",e,t,i),this.dispatchExternal("rowMoved",e.getComponent())}moveRowActual(e,t,i){this.moveRowInArray(this.rows,e,t,i),this.moveRowInArray(this.activeRows,e,t,i),this.displayRowIterator(r=>{this.moveRowInArray(r,e,t,i)}),this.dispatch("row-moving",e,t,i)}moveRowInArray(e,t,i,r){var s,o,l,u;if(t!==i&&(s=e.indexOf(t),s>-1&&(e.splice(s,1),o=e.indexOf(i),o>-1?r?e.splice(o+1,0,t):e.splice(o,0,t):e.splice(s,0,t)),e===this.getDisplayRows())){l=s<o?s:o,u=o>s?o:s+1;for(let c=l;c<=u;c++)e[c]&&this.styleRow(e[c],c)}}clearData(){this.setData([])}getRowIndex(e){return this.findRowIndex(e,this.rows)}getDisplayRowIndex(e){var t=this.getDisplayRows().indexOf(e);return t>-1?t:!1}nextDisplayRow(e,t){var i=this.getDisplayRowIndex(e),r=!1;return i!==!1&&i<this.displayRowsCount-1&&(r=this.getDisplayRows()[i+1]),r&&(!(r instanceof pt)||r.type!="row")?this.nextDisplayRow(r,t):r}prevDisplayRow(e,t){var i=this.getDisplayRowIndex(e),r=!1;return i&&(r=this.getDisplayRows()[i-1]),t&&r&&(!(r instanceof pt)||r.type!="row")?this.prevDisplayRow(r,t):r}findRowIndex(e,t){var i;return e=this.findRow(e),e&&(i=t.indexOf(e),i>-1)?i:!1}getData(e,t){var i=[],r=this.getRows(e);return r.forEach(function(s){s.type=="row"&&i.push(s.getData(t||"data"))}),i}getComponents(e){var t=[],i=this.getRows(e);return i.forEach(function(r){t.push(r.getComponent())}),t}getDataCount(e){var t=this.getRows(e);return t.length}scrollHorizontal(e){this.scrollLeft=e,this.element.scrollLeft=e,this.dispatch("scroll-horizontal",e)}registerDataPipelineHandler(e,t){typeof t<"u"?(this.dataPipeline.push({handler:e,priority:t}),this.dataPipeline.sort((i,r)=>i.priority-r.priority)):console.error("Data pipeline handlers must have a priority in order to be registered")}registerDisplayPipelineHandler(e,t){typeof t<"u"?(this.displayPipeline.push({handler:e,priority:t}),this.displayPipeline.sort((i,r)=>i.priority-r.priority)):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(e,t,i){var r=this.table,s="",o=0,l=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if(typeof e=="function")if(o=this.dataPipeline.findIndex(u=>u.handler===e),o>-1)s="dataPipeline",t&&(o==this.dataPipeline.length-1?s="display":o++);else if(o=this.displayPipeline.findIndex(u=>u.handler===e),o>-1)s="displayPipeline",t&&(o==this.displayPipeline.length-1?s="end":o++);else{console.error("Unable to refresh data, invalid handler provided",e);return}else s=e||"all",o=0;if(this.redrawBlock){(!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===s&&o<this.redrawBlockRestoreConfig.index||l.indexOf(s)<l.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRestoreConfig={handler:e,skipStage:t,renderInPosition:i,stage:s,index:o});return}else Ze.elVisible(this.element)?i?this.reRenderInPosition(this.refreshPipelines.bind(this,e,s,o,i)):(this.refreshPipelines(e,s,o,i),e||this.table.columnManager.renderer.renderColumns(),this.renderTable(),r.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0)):this.refreshPipelines(e,s,o,i),this.dispatch("data-refreshed")}}refreshPipelines(e,t,i,r){switch(this.dispatch("data-refreshing"),(!e||!this.activeRowsPipeline[0])&&(this.activeRowsPipeline[0]=this.rows.slice(0)),t){case"all":case"dataPipeline":for(let s=i;s<this.dataPipeline.length;s++){let o=this.dataPipeline[s].handler(this.activeRowsPipeline[s].slice(0));this.activeRowsPipeline[s+1]=o||this.activeRowsPipeline[s].slice(0)}this.setActiveRows(this.activeRowsPipeline[this.dataPipeline.length]);case"display":i=0,this.resetDisplayRows();case"displayPipeline":for(let s=i;s<this.displayPipeline.length;s++){let o=this.displayPipeline[s].handler((s?this.getDisplayRows(s-1):this.activeRows).slice(0),r);this.setDisplayRows(o||this.getDisplayRows(s-1).slice(0),s)}case"end":this.regenerateRowPositions()}this.getDisplayRows().length&&this._clearPlaceholder()}regenerateRowPositions(){var e=this.getDisplayRows(),t=1;e.forEach(i=>{i.type==="row"&&(i.setPosition(t),t++)})}setActiveRows(e){this.activeRows=this.activeRows=Object.assign([],e),this.activeRowsCount=this.activeRows.length}resetDisplayRows(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length}setDisplayRows(e,t){this.displayRows[t]=e,t==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length)}getDisplayRows(e){return typeof e>"u"?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[e]||[]}getVisibleRows(e,t){var i=Object.assign([],this.renderer.visibleRows(!t));return e&&(i=this.chain("rows-visible",[t],i,i)),i}displayRowIterator(e){this.activeRowsPipeline.forEach(e),this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length}getRows(e){var t=[];switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!1,!0);break;default:t=this.chain("rows-retrieve",e,null,this.rows)||this.rows}return t}reRenderInPosition(e){this.redrawBlock?e?e():this.redrawBlockRenderInPosition=!0:(this.dispatchExternal("renderStarted"),this.renderer.rerenderRows(e),this.fixedHeight||this.adjustTableSize(),this.scrollBarCheck(),this.dispatchExternal("renderComplete"))}scrollBarCheck(){var e=0;this.element.scrollHeight>this.element.clientHeight&&(e=this.element.offsetWidth-this.element.clientWidth),e!==this.scrollbarWidth&&(this.scrollbarWidth=e,this.dispatch("scrollbar-vertical",e))}initializeRenderer(){var e,t={virtual:Jk,basic:Kk};typeof this.table.options.renderVertical=="string"?e=t[this.table.options.renderVertical]:e=this.table.options.renderVertical,e?(this.renderMode=this.table.options.renderVertical,this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize(),(this.table.element.clientHeight||this.table.options.height)&&!(this.table.options.minHeight&&this.table.options.maxHeight)?this.fixedHeight=!0:this.fixedHeight=!1):console.error("Unable to find matching renderer:",this.table.options.renderVertical)}getRenderMode(){return this.renderMode}renderTable(){this.dispatchExternal("renderStarted"),this.element.scrollTop=0,this._clearTable(),this.displayRowsCount?(this.renderer.renderRows(),this.firstRender&&(this.firstRender=!1,this.fixedHeight||this.adjustTableSize(),this.layoutRefresh(!0))):this.renderEmptyScroll(),this.fixedHeight||this.adjustTableSize(),this.dispatch("table-layout"),this.displayRowsCount||this._showPlaceholder(),this.scrollBarCheck(),this.dispatchExternal("renderComplete")}renderEmptyScroll(){this.placeholder?this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px"}_clearTable(){this._clearPlaceholder(),this.scrollTop=0,this.scrollLeft=0,this.renderer.clearRows()}tableEmpty(){this.renderEmptyScroll(),this._showPlaceholder()}checkPlaceholder(){this.displayRowsCount?this._clearPlaceholder():this.tableEmpty()}_showPlaceholder(){this.placeholder&&(this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.initializePlaceholder(),this.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.placeholder),this._positionPlaceholder(),this.adjustTableSize())}_clearPlaceholder(){this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.tableElement.style.minWidth="",this.tableElement.style.display=""}_positionPlaceholder(){this.placeholder&&this.placeholder.parentNode&&(this.placeholder.style.width=this.table.columnManager.getWidth()+"px",this.placeholderContents.style.width=this.table.rowManager.element.clientWidth+"px",this.placeholderContents.style.marginLeft=this.scrollLeft+"px")}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}normalizeHeight(e){this.activeRows.forEach(function(t){t.normalizeHeight(e)})}adjustTableSize(){let e=this.element.clientHeight,t,i=!1;if(this.renderer.verticalFillMode==="fill"){let r=Math.floor(this.table.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));if(this.fixedHeight){t=isNaN(this.table.options.minHeight)?this.table.options.minHeight:this.table.options.minHeight+"px";const s="calc(100% - "+r+"px)";this.element.style.minHeight=t||"calc(100% - "+r+"px)",this.element.style.height=s,this.element.style.maxHeight=s}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-r+"px",this.element.scrollTop=this.scrollTop;this.renderer.resize(),!this.fixedHeight&&e!=this.element.clientHeight&&(i=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw()),this.scrollBarCheck()}return this._positionPlaceholder(),i}reinitialize(){this.rows.forEach(function(e){e.reinitialize(!0)})}blockRedraw(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1}restoreRedraw(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.handler,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRenderInPosition&&this.reRenderInPosition(),this.redrawBlockRenderInPosition=!1}redraw(e){this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():(this.reRenderInPosition(),this.scrollHorizontal(this.scrollLeft))}resetScroll(){if(this.element.scrollLeft=0,this.element.scrollTop=0,this.table.browser==="ie"){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))}}class $k extends dt{constructor(e){super(e),this.active=!1,this.element=this.createElement(),this.containerElement=this.createContainerElement(),this.external=!1}initialize(){this.initializeElement()}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer"),e}createContainerElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer-contents"),this.element.appendChild(e),e}initializeElement(){if(this.table.options.footerElement)switch(typeof this.table.options.footerElement){case"string":this.table.options.footerElement[0]==="<"?this.containerElement.innerHTML=this.table.options.footerElement:(this.external=!0,this.containerElement=document.querySelector(this.table.options.footerElement));break;default:this.element=this.table.options.footerElement;break}}getElement(){return this.element}append(e){this.activate(),this.containerElement.appendChild(e),this.table.rowManager.adjustTableSize()}prepend(e){this.activate(),this.element.insertBefore(e,this.element.firstChild),this.table.rowManager.adjustTableSize()}remove(e){e.parentNode.removeChild(e),this.deactivate()}deactivate(e){(!this.element.firstChild||e)&&(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)}activate(){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display=""))}redraw(){this.dispatch("footer-redraw")}}class Zk extends dt{constructor(e){super(e),this.el=null,this.abortClasses=["tabulator-headers","tabulator-table"],this.previousTargets={},this.listeners=["click","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","mouseup","mousedown","touchstart","touchend"],this.componentMap={"tabulator-cell":"cell","tabulator-row":"row","tabulator-group":"group","tabulator-col":"column"},this.pseudoTrackers={row:{subscriber:null,target:null},cell:{subscriber:null,target:null},group:{subscriber:null,target:null},column:{subscriber:null,target:null}},this.pseudoTracking=!1}initialize(){this.el=this.table.element,this.buildListenerMap(),this.bindSubscriptionWatchers()}buildListenerMap(){var e={};this.listeners.forEach(t=>{e[t]={handler:null,components:[]}}),this.listeners=e}bindPseudoEvents(){Object.keys(this.pseudoTrackers).forEach(e=>{this.pseudoTrackers[e].subscriber=this.pseudoMouseEnter.bind(this,e),this.subscribe(e+"-mouseover",this.pseudoTrackers[e].subscriber)}),this.pseudoTracking=!0}pseudoMouseEnter(e,t,i){this.pseudoTrackers[e].target!==i&&(this.pseudoTrackers[e].target&&this.dispatch(e+"-mouseleave",t,this.pseudoTrackers[e].target),this.pseudoMouseLeave(e,t),this.pseudoTrackers[e].target=i,this.dispatch(e+"-mouseenter",t,i))}pseudoMouseLeave(e,t){var i=Object.keys(this.pseudoTrackers),r={row:["cell"],cell:["row"]};i=i.filter(s=>{var o=r[e];return s!==e&&(!o||o&&!o.includes(s))}),i.forEach(s=>{var o=this.pseudoTrackers[s].target;this.pseudoTrackers[s].target&&(this.dispatch(s+"-mouseleave",t,o),this.pseudoTrackers[s].target=null)})}bindSubscriptionWatchers(){var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let i of t)for(let r of e){let s=i+"-"+r;this.subscriptionChange(s,this.subscriptionChanged.bind(this,i,r))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,i){var r=this.listeners[t].components,s=r.indexOf(e),o=!1;i?s===-1&&(r.push(e),o=!0):this.subscribed(e+"-"+t)||s>-1&&(r.splice(s,1),o=!0),(t==="mouseenter"||t==="mouseleave")&&!this.pseudoTracking&&this.bindPseudoEvents(),o&&this.updateEventListeners()}updateEventListeners(){for(let e in this.listeners){let t=this.listeners[e];t.components.length?t.handler||(t.handler=this.track.bind(this,e),this.el.addEventListener(e,t.handler)):t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}track(e,t){var i=t.composedPath&&t.composedPath()||t.path,r=this.findTargets(i);r=this.bindComponents(e,r),this.triggerEvents(e,t,r),this.pseudoTracking&&(e=="mouseover"||e=="mouseleave")&&!Object.keys(r).length&&this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let i=Object.keys(this.componentMap);for(let r of e){let s=r.classList?[...r.classList]:[];if(s.filter(u=>this.abortClasses.includes(u)).length)break;let l=s.filter(u=>i.includes(u));for(let u of l)t[this.componentMap[u]]||(t[this.componentMap[u]]=r)}return t.group&&t.group===t.row&&delete t.row,t}bindComponents(e,t){var i=Object.keys(t).reverse(),r=this.listeners[e],s={},o={},l={};for(let u of i){let c,d=t[u],f=this.previousTargets[u];if(f&&f.target===d)c=f.component;else switch(u){case"row":case"group":(r.components.includes("row")||r.components.includes("cell")||r.components.includes("group"))&&(c=this.table.rowManager.getVisibleRows(!0).find(h=>h.getElement()===d),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[u]=!1));break;case"column":r.components.includes("column")&&(c=this.table.columnManager.findColumn(d));break;case"cell":r.components.includes("cell")&&(s.row instanceof pt?c=s.row.findCell(d):t.row&&console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"));break}c&&(s[u]=c,l[u]={target:d,component:c})}return this.previousTargets=l,Object.keys(t).forEach(u=>{let c=s[u];o[u]=c}),o}triggerEvents(e,t,i){var r=this.listeners[e];for(let s in i)i[s]&&r.components.includes(s)&&this.dispatch(s+"-"+e,t,i[s])}clearWatchers(){for(let e in this.listeners){let t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}}class Xk{constructor(e){this.table=e,this.bindings={}}bind(e,t,i){this.bindings[e]||(this.bindings[e]={}),this.bindings[e][t]?console.warn("Unable to bind component handler, a matching function name is already bound",e,t,i):this.bindings[e][t]=i}handle(e,t,i){if(this.bindings[e]&&this.bindings[e][i]&&typeof this.bindings[e][i].bind=="function")return this.bindings[e][i].bind(null,t);i!=="then"&&typeof i=="string"&&!i.startsWith("_")&&this.table.options.debugInvalidComponentFuncs&&console.error("The "+e+" component does not have a "+i+" function, have you checked that you have the correct Tabulator module installed?")}}class eS extends dt{constructor(e){super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,i,r,s,o){var l=++this.requestOrder;if(this.table.destroyed)return Promise.resolve();if(this.dispatchExternal("dataLoading",e),e&&(e.indexOf("{")==0||e.indexOf("[")==0)&&(e=JSON.parse(e)),this.confirm("data-loading",[e,t,i,s])){this.loading=!0,s||this.alertLoader(),t=this.chain("data-params",[e,i,s],t||{},t||{}),t=this.mapParams(t,this.table.options.dataSendParams);var u=this.chain("data-load",[e,t,i,s],!1,Promise.resolve([]));return u.then(c=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{!Array.isArray(c)&&typeof c=="object"&&(c=this.mapParams(c,this.objectInvert(this.table.options.dataReceiveParams)));var d=this.chain("data-loaded",[c],null,c);l==this.requestOrder?(this.clearAlert(),d!==!1&&(this.dispatchExternal("dataLoaded",d),this.table.rowManager.setData(d,r,typeof o>"u"?!r:o))):console.warn("Data Load Response Blocked - An active data load request was blocked by an attempt to change table data while the request was being made")}}).catch(c=>{console.error("Data Load Error: ",c),this.dispatchExternal("dataLoadError",c),s||this.alertError(),setTimeout(()=>{this.clearAlert()},this.table.options.dataLoaderErrorTimeout)}).finally(()=>{this.loading=!1})}else return this.dispatchExternal("dataLoaded",e),e||(e=[]),this.table.rowManager.setData(e,r,typeof o>"u"?!r:o),Promise.resolve()}mapParams(e,t){var i={};for(let r in e)i[t.hasOwnProperty(r)?t[r]:r]=e[r];return i}objectInvert(e){var t={};for(let i in e)t[e[i]]=i;return t}blockActiveLoad(){this.requestOrder++}alertLoader(){var e=typeof this.table.options.dataLoader=="function"?this.table.options.dataLoader():this.table.options.dataLoader;e&&this.table.alertManager.alert(this.table.options.dataLoaderLoading||this.langText("data|loading"))}alertError(){this.table.alertManager.alert(this.table.options.dataLoaderError||this.langText("data|error"),"error")}clearAlert(){this.table.alertManager.clear()}}class tS{constructor(e,t,i){this.table=e,this.events={},this.optionsList=t||{},this.subscriptionNotifiers={},this.dispatch=i?this._debugDispatch.bind(this):this._dispatch.bind(this),this.debug=i}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e])if(t)if(i=this.events[e].findIndex(r=>r===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}else delete this.events[e];else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(r=>{r(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift(),i;return this.events[t]&&this.events[t].forEach((r,s)=>{let o=r.apply(this.table,e);s||(i=o)}),i}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="ExternalEvent:"+e[0],(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}}class iS{constructor(e){this.events={},this.subscriptionNotifiers={},this.dispatch=e?this._debugDispatch.bind(this):this._dispatch.bind(this),this.chain=e?this._debugChain.bind(this):this._chain.bind(this),this.confirm=e?this._debugConfirm.bind(this):this._confirm.bind(this),this.debug=e}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t,i=1e4){this.events[e]||(this.events[e]=[]),this.events[e].push({callback:t,priority:i}),this.events[e].sort((r,s)=>r.priority-s.priority),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e]){if(t)if(i=this.events[e].findIndex(r=>r.callback===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}}else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_chain(e,t,i,r){var s=i;return Array.isArray(t)||(t=[t]),this.subscribed(e)?(this.events[e].forEach((o,l)=>{s=o.callback.apply(this,t.concat([s]))}),s):typeof r=="function"?r():r}_confirm(e,t){var i=!1;return Array.isArray(t)||(t=[t]),this.subscribed(e)&&this.events[e].forEach((r,s)=>{r.callback.apply(this,t)&&(i=!0)}),i}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(r=>{r(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift();this.events[t]&&this.events[t].forEach(i=>{i.callback.apply(this,e)})}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}_debugChain(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._chain(...arguments)}_debugConfirm(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._confirm(...arguments)}}class nS extends dt{constructor(e){super(e)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t,i){var r="";return typeof this.options(e)<"u"?(r="Deprecated Setup Option - Use of the %c"+e+"%c option is now deprecated",t?(r=r+", Please use the %c"+t+"%c option instead",this._warnUser(r,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),i&&(this.table.options[t]=this.table.options[e])):this._warnUser(r,"font-weight: bold;","font-weight: normal;"),!1):!0}checkMsg(e,t){return typeof this.options(e)<"u"?(this._warnUser("%cDeprecated Setup Option - Use of the %c"+e+" %c option is now deprecated, "+t,"font-weight: normal;","font-weight: bold;","font-weight: normal;"),!1):!0}msg(e){this._warnUser(e)}}class rS extends dt{constructor(e){super(e),this.deps={},this.props={}}initialize(){this.deps=Object.assign({},this.options("dependencies"))}lookup(e,t,i){if(Array.isArray(e)){for(const s of e){var r=this.lookup(s,t,!0);if(r)break}if(r)return r;this.error(e)}else return t?this.lookupProp(e,t,i):this.lookupKey(e,i)}lookupProp(e,t,i){var r;if(this.props[e]&&this.props[e][t])return this.props[e][t];if(r=this.lookupKey(e,i),r)return this.props[e]||(this.props[e]={}),this.props[e][t]=r[t]||r,this.props[e][t]}lookupKey(e,t){var i;return this.deps[e]?i=this.deps[e]:window[e]?(this.deps[e]=window[e],i=this.deps[e]):t||this.error(e),i}error(e){console.error("Unable to find dependency",e,"Please check documentation and ensure you have imported the required library into your project")}}function sS(n,e){e&&this.table.columnManager.renderer.reinitializeColumnWidths(n),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function rd(n,e){n.forEach(function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function aS(n,e){var t=0,i=this.table.rowManager.element.clientWidth,r=0,s=!1;n.forEach((o,l)=>{o.widthFixed||o.reinitializeWidth(),(this.table.options.responsiveLayout?o.modules.responsive.visible:o.visible)&&(s=o),o.visible&&(t+=o.getWidth())}),s?(r=i-t+s.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(s.setWidth(0),this.table.modules.responsiveLayout.update()),r>0?s.setWidth(r):s.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function oS(n,e){var t=this.table.rowManager.element.getBoundingClientRect().width,i=0,r=0,s=0,o=0,l=[],u=[],c=0,d=0,f=0;function p(k){var C;return typeof k=="string"?k.indexOf("%")>-1?C=t/100*parseInt(k):C=parseInt(k):C=k,C}function h(k,C,A,w){var m=[],D=0,g=0,M=0,v=s,x=0,y=0,S=[];function b(R){return A*(R.column.definition.widthGrow||1)}function T(R){return p(R.width)-A*(R.column.definition.widthShrink||0)}return k.forEach(function(R,L){var I=w?T(R):b(R);R.column.minWidth>=I?m.push(R):R.column.maxWidth&&R.column.maxWidth<I?(R.width=R.column.maxWidth,C-=R.column.maxWidth,v-=w?R.column.definition.widthShrink||1:R.column.definition.widthGrow||1,v&&(A=Math.floor(C/v))):(S.push(R),y+=w?R.column.definition.widthShrink||1:R.column.definition.widthGrow||1)}),m.length?(m.forEach(function(R){D+=w?R.width-R.column.minWidth:R.column.minWidth,R.width=R.column.minWidth}),g=C-D,M=y?Math.floor(g/y):g,x=h(S,g,M,w)):(x=y?C-Math.floor(C/y)*y:C,S.forEach(function(R){R.width=w?T(R):b(R)})),x}this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(t-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),n.forEach(function(k){var C,A,w;k.visible&&(C=k.definition.width,A=parseInt(k.minWidth),C?(w=p(C),i+=w>A?w:A,k.definition.widthShrink&&(u.push({column:k,width:w>A?w:A}),c+=k.definition.widthShrink)):(l.push({column:k,width:0}),s+=k.definition.widthGrow||1))}),r=t-i,o=Math.floor(r/s),f=h(l,r,o,!1),l.length&&f>0&&(l[l.length-1].width+=f),l.forEach(function(k){r-=k.width}),d=Math.abs(f)+r,d>0&&c&&(f=h(u,d,Math.floor(d/c),!0)),f&&u.length&&(u[u.length-1].width-=f),l.forEach(function(k){k.column.setWidth(k.width)}),u.forEach(function(k){k.column.setWidth(k.width)})}var lS={fitData:sS,fitDataFill:rd,fitDataTable:rd,fitDataStretch:aS,fitColumns:oS};class xr extends Ve{static moduleName="layout";static modes=lS;constructor(e){super(e,"layout"),this.mode=null,this.registerTableOption("layout","fitData"),this.registerTableOption("layoutColumnsOnNewData",!1),this.registerColumnOption("widthGrow"),this.registerColumnOption("widthShrink")}initialize(){var e=this.table.options.layout;xr.modes[e]?this.mode=e:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+e),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode),this.subscribe("column-init",this.initializeColumn.bind(this))}initializeColumn(e){e.definition.widthGrow&&(e.definition.widthGrow=Number(e.definition.widthGrow)),e.definition.widthShrink&&(e.definition.widthShrink=Number(e.definition.widthShrink))}getMode(){return this.mode}layout(e){var t=this.table.columnManager.columnsByIndex.find(i=>i.definition.variableHeight||i.definition.formatter==="textarea");this.dispatch("layout-refreshing"),xr.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}}var uS={default:{groups:{item:"item",items:"items"},columns:{},data:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},headerFilters:{default:"filter column...",columns:{}}}};class Qo extends Ve{static moduleName="localize";static langs=uS;constructor(e){super(e),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=Ze.deepClone(Qo.langs),this.table.options.columnDefaults.headerFilterPlaceholder!==!1&&this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);for(let e in this.table.options.langs)this.installLang(e,this.table.options.langs[e]);this.setLocale(this.table.options.locale),this.registerTableFunction("setLocale",this.setLocale.bind(this)),this.registerTableFunction("getLocale",this.getLocale.bind(this)),this.registerTableFunction("getLang",this.getLang.bind(this))}setHeaderFilterPlaceholder(e){this.langList.default.headerFilters.default=e}installLang(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t}_setLangProp(e,t){for(let i in t)e[i]&&typeof e[i]=="object"?this._setLangProp(e[i],t[i]):e[i]=t[i]}setLocale(e){e=e||"default";function t(i,r){for(var s in i)typeof i[s]=="object"?(r[s]||(r[s]={}),t(i[s],r[s])):r[s]=i[s]}if(e===!0&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!this.langList[e]){let i=e.split("-")[0];this.langList[i]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,i),e=i):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}this.locale=e,this.lang=Ze.deepClone(this.langList.default||{}),e!="default"&&t(this.langList[e],this.lang),this.dispatchExternal("localized",this.locale,this.lang),this._executeBindings()}getLocale(e){return this.locale}getLang(e){return e?this.langList[e]:this.lang}getText(e,t){var i=t?e+"|"+t:e,r=i.split("|"),s=this._getLangElement(r,this.locale);return s||""}_getLangElement(e,t){var i=this.lang;return e.forEach(function(r){var s;i&&(s=i[r],typeof s<"u"?i=s:i=!1)}),i}bind(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)}_executeBindings(){for(let e in this.bindings)this.bindings[e].forEach(t=>{t(this.getText(e),this.lang)})}}class cS extends Ve{static moduleName="comms";constructor(e){super(e)}initialize(){this.registerTableFunction("tableComms",this.receive.bind(this))}getConnections(e){var t=[],i;return i=this.table.constructor.registry.lookupTable(e),i.forEach(r=>{this.table!==r&&t.push(r)}),t}send(e,t,i,r){var s=this.getConnections(e);s.forEach(o=>{o.tableComms(this.table.element,t,i,r)}),!s.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)}receive(e,t,i,r){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,i,r);console.warn("Inter-table Comms Error - no such module:",t)}}var dS=Object.freeze({__proto__:null,CommsModule:cS,LayoutModule:xr,LocalizeModule:Qo});class _t{static registry={tables:[],register(e){_t.registry.tables.push(e)},deregister(e){var t=_t.registry.tables.indexOf(e);t>-1&&_t.registry.tables.splice(t,1)},lookupTable(e,t){var i=[],r,s;if(typeof e=="string"){if(r=document.querySelectorAll(e),r.length)for(var o=0;o<r.length;o++)s=_t.registry.matchElement(r[o]),s&&i.push(s)}else typeof HTMLElement<"u"&&e instanceof HTMLElement||e instanceof _t?(s=_t.registry.matchElement(e),s&&i.push(s)):Array.isArray(e)?e.forEach(function(l){i=i.concat(_t.registry.lookupTable(l))}):t||console.warn("Table Connection Error - Invalid Selector",e);return i},matchElement(e){return _t.registry.tables.find(function(t){return e instanceof _t?t===e:t.element===e})}};static findTable(e){var t=_t.registry.lookupTable(e,!0);return Array.isArray(t)&&!t.length?!1:t}}class st extends _t{static moduleBindings={};static moduleExtensions={};static modulesRegistered=!1;static defaultModules=!1;constructor(){super()}static initializeModuleBinder(e){st.modulesRegistered||(st.modulesRegistered=!0,st._registerModules(dS,!0),e&&st._registerModules(e))}static _extendModule(e,t,i){if(st.moduleBindings[e]){var r=st.moduleBindings[e][t];if(r)if(typeof i=="object")for(let s in i)r[s]=i[s];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)}static _registerModules(e,t){var i=Object.values(e);t&&i.forEach(r=>{r.prototype.moduleCore=!0}),st._registerModule(i)}static _registerModule(e){Array.isArray(e)||(e=[e]),e.forEach(t=>{st._registerModuleBinding(t),st._registerModuleExtensions(t)})}static _registerModuleBinding(e){e.moduleName?st.moduleBindings[e.moduleName]=e:console.error("Unable to bind module, no moduleName defined",e.moduleName)}static _registerModuleExtensions(e){var t=e.moduleExtensions;if(e.moduleExtensions)for(let i in t){let r=t[i];if(st.moduleBindings[i])for(let s in r)st._extendModule(i,s,r[s]);else{st.moduleExtensions[i]||(st.moduleExtensions[i]={});for(let s in r)st.moduleExtensions[i][s]||(st.moduleExtensions[i][s]={}),Object.assign(st.moduleExtensions[i][s],r[s])}}st._extendModuleFromQueue(e)}static _extendModuleFromQueue(e){var t=st.moduleExtensions[e.moduleName];if(t)for(let i in t)st._extendModule(e.moduleName,i,t[i])}_bindModules(){var e=[],t=[],i=[];this.modules={};for(var r in st.moduleBindings){let s=st.moduleBindings[r],o=new s(this);this.modules[r]=o,s.prototype.moduleCore?this.modulesCore.push(o):s.moduleInitOrder?s.moduleInitOrder<0?e.push(o):t.push(o):i.push(o)}e.sort((s,o)=>s.moduleInitOrder>o.moduleInitOrder?1:-1),t.sort((s,o)=>s.moduleInitOrder>o.moduleInitOrder?1:-1),this.modulesRegular=e.concat(i.concat(t))}}class hS extends dt{constructor(e){super(e),this.element=this._createAlertElement(),this.msgElement=this._createMsgElement(),this.type=null,this.element.appendChild(this.msgElement)}_createAlertElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert"),e}_createMsgElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert-msg"),e.setAttribute("role","alert"),e}_typeClass(){return"tabulator-alert-state-"+this.type}alert(e,t="msg"){if(e){for(this.clear(),this.dispatch("alert-show",t),this.type=t;this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.add(this._typeClass()),typeof e=="function"&&(e=e()),e instanceof HTMLElement?this.msgElement.appendChild(e):this.msgElement.innerHTML=e,this.table.element.appendChild(this.element)}}clear(){this.dispatch("alert-hide",this.type),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.msgElement.classList.remove(this._typeClass())}}class gi extends st{static defaultOptions=Uk;static extendModule(){gi.initializeModuleBinder(),gi._extendModule(...arguments)}static registerModule(){gi.initializeModuleBinder(),gi._registerModule(...arguments)}constructor(e,t,i){super(),gi.initializeModuleBinder(i),this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.alertManager=null,this.vdomHoz=null,this.externalEvents=null,this.eventBus=null,this.interactionMonitor=!1,this.browser="",this.browserSlow=!1,this.browserMobile=!1,this.rtl=!1,this.originalElement=null,this.componentFunctionBinder=new Xk(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new nS(this),this.optionsList=new nd(this,"table constructor"),this.dependencyRegistry=new rS(this),this.initialized=!1,this.destroyed=!1,this.initializeElement(e)&&(this.initializeCoreSystems(t),setTimeout(()=>{this._create()})),this.constructor.registry.register(this)}initializeElement(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement?(this.element=e,!0):typeof e=="string"?(this.element=document.querySelector(e),this.element?!0:(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)}initializeCoreSystems(e){this.columnManager=new Qk(this),this.rowManager=new qk(this),this.footerManager=new $k(this),this.dataLoader=new eS(this),this.alertManager=new hS(this),this._bindModules(),this.options=this.optionsList.generate(gi.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new tS(this,this.options,this.options.debugEventsExternal),this.eventBus=new iS(this.options.debugEventsInternal),this.interactionMonitor=new Zk(this),this.dataLoader.initialize(),this.footerManager.initialize(),this.dependencyRegistry.initialize()}_mapDeprecatedFunctionality(){}_clearSelection(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")}_create(){this.externalEvents.dispatch("tableBuilding"),this.eventBus.dispatch("table-building"),this._rtlCheck(),this._buildElement(),this._initializeTable(),this.initialized=!0,this._loadInitialData().finally(()=>{this.eventBus.dispatch("table-initialized"),this.externalEvents.dispatch("tableBuilt")})}_rtlCheck(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if(e.direction!=="rtl")break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}}_clearObjectPointers(){this.options.columns=this.options.columns.slice(0),Array.isArray(this.options.data)&&!this.options.reactiveData&&(this.options.data=this.options.data.slice(0))}_buildElement(){var e=this.element,t=this.options,i;if(e.tagName==="TABLE"){this.originalElement=this.element,i=document.createElement("div");var r=e.attributes;for(var s in r)typeof r[s]=="object"&&i.setAttribute(r[s].name,r[s].value);e.parentNode.replaceChild(i,e),this.element=e=i}for(e.classList.add("tabulator"),e.setAttribute("role","grid");e.firstChild;)e.removeChild(e.firstChild);t.height&&(t.height=isNaN(t.height)?t.height:t.height+"px",e.style.height=t.height),t.minHeight!==!1&&(t.minHeight=isNaN(t.minHeight)?t.minHeight:t.minHeight+"px",e.style.minHeight=t.minHeight),t.maxHeight!==!1&&(t.maxHeight=isNaN(t.maxHeight)?t.maxHeight:t.maxHeight+"px",e.style.maxHeight=t.maxHeight)}_initializeTable(){var e=this.element,t=this.options;this.interactionMonitor.initialize(),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modulesCore.forEach(i=>{i.initialize()}),e.appendChild(this.columnManager.getElement()),e.appendChild(this.rowManager.getElement()),t.footerElement&&this.footerManager.activate(),t.autoColumns&&t.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modulesRegular.forEach(i=>{i.initialize()}),this.columnManager.setColumns(t.columns),this.eventBus.dispatch("table-built")}_loadInitialData(){return this.dataLoader.load(this.options.data).finally(()=>{this.columnManager.verticalAlignHeaders()})}destroy(){var e=this.element;for(this.destroyed=!0,this.constructor.registry.deregister(this),this.eventBus.dispatch("table-destroy"),this.rowManager.destroy();e.firstChild;)e.removeChild(e.firstChild);e.classList.remove("tabulator"),this.externalEvents.dispatch("tableDestroyed")}_detectBrowser(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):e.indexOf("Mac OS")>-1?(this.browser="safari",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.slice(0,4))}initGuard(e,t){var i,r;return this.options.debugInitialization&&!this.initialized&&(e||(i=new Error().stack.split(`
|
|
54
|
+
`),r=i[0]=="Error"?i[2]:i[1],r[0]==" "?e=r.trim().split(" ")[1].split(".")[1]:e=r.trim().split("@")[0]),console.warn("Table Not Initialized - Calling the "+e+" function before the table is initialized may result in inconsistent behavior, Please wait for the `tableBuilt` event before calling this function."+(t?" "+t:""))),this.initialized}blockRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-blocking"),this.rowManager.blockRedraw(),this.columnManager.blockRedraw(),this.eventBus.dispatch("redraw-blocked")}restoreRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-restoring"),this.rowManager.restoreRedraw(),this.columnManager.restoreRedraw(),this.eventBus.dispatch("redraw-restored")}setData(e,t,i){return this.initGuard(!1,"To set initial data please use the 'data' property in the table constructor."),this.dataLoader.load(e,t,i,!1)}clearData(){this.initGuard(),this.dataLoader.blockActiveLoad(),this.rowManager.clearData()}getData(e){return this.rowManager.getData(e)}getDataCount(e){return this.rowManager.getDataCount(e)}replaceData(e,t,i){return this.initGuard(),this.dataLoader.load(e,t,i,!0,!0)}updateData(e){var t=0;return this.initGuard(),new Promise((i,r)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(s=>{var o=this.rowManager.findRow(s[this.options.index]);o?(t++,o.updateData(s).then(()=>{t--,t||i()}).catch(l=>{r("Update Error - Unable to update row",s,l)})):r("Update Error - Unable to find row",s)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})}addData(e,t,i){return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,i).then(o=>{var l=[];o.forEach(function(u){l.push(u.getComponent())}),r(l)}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}updateOrAddData(e){var t=[],i=0;return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(o=>{var l=this.rowManager.findRow(o[this.options.index]);i++,l?l.updateData(o).then(()=>{i--,t.push(l.getComponent()),i||r(t)}):this.rowManager.addRows(o).then(u=>{i--,t.push(u[0].getComponent()),i||r(t)})}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}getRow(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}getRowFromPosition(e){var t=this.rowManager.getRowFromPosition(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}deleteRow(e){var t=[];this.initGuard(),Array.isArray(e)||(e=[e]);for(let i of e){let r=this.rowManager.findRow(i,!0);if(r)t.push(r);else return console.error("Delete Error - No matching row found:",i),Promise.reject("Delete Error - No matching row found")}return t.sort((i,r)=>this.rowManager.rows.indexOf(i)>this.rowManager.rows.indexOf(r)?1:-1),t.forEach(i=>{i.delete()}),this.rowManager.reRenderInPosition(),Promise.resolve()}addRow(e,t,i){return this.initGuard(),typeof e=="string"&&(e=JSON.parse(e)),this.rowManager.addRows(e,t,i,!0).then(r=>r[0].getComponent())}updateOrAddRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>i.getComponent()):this.rowManager.addRows(t).then(r=>r[0].getComponent())}updateRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>Promise.resolve(i.getComponent())):(console.warn("Update Error - No matching row found:",e),Promise.reject("Update Error - No matching row found"))}scrollToRow(e,t,i){var r=this.rowManager.findRow(e);return r?this.rowManager.scrollToRow(r,t,i):(console.warn("Scroll Error - No matching row found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,i){var r=this.rowManager.findRow(e);this.initGuard(),r?r.moveToRow(t,i):console.warn("Move Error - No matching row found:",e)}getRows(e){return this.rowManager.getComponents(e)}getRowPosition(e){var t=this.rowManager.findRow(e);return t?t.getPosition():(console.warn("Position Error - No matching row found:",e),!1)}setColumns(e){this.initGuard(!1,"To set initial columns please use the 'columns' property in the table constructor"),this.columnManager.setColumns(e)}getColumns(e){return this.columnManager.getComponents(e)}getColumn(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)}getColumnDefinitions(){return this.columnManager.getDefinitionTree()}showColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.show();else return console.warn("Column Show Error - No matching column found:",e),!1}hideColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.hide();else return console.warn("Column Hide Error - No matching column found:",e),!1}toggleColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.visible?t.hide():t.show();else return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1}addColumn(e,t,i){var r=this.columnManager.findColumn(i);return this.initGuard(),this.columnManager.addColumn(e,t,r).then(s=>s.getComponent())}deleteColumn(e){var t=this.columnManager.findColumn(e);return this.initGuard(),t?t.delete():(console.warn("Column Delete Error - No matching column found:",e),Promise.reject())}updateColumnDefinition(e,t){var i=this.columnManager.findColumn(e);return this.initGuard(),i?i.updateDefinition(t):(console.warn("Column Update Error - No matching column found:",e),Promise.reject())}moveColumn(e,t,i){var r=this.columnManager.findColumn(e),s=this.columnManager.findColumn(t);this.initGuard(),r?s?this.columnManager.moveColumn(r,s,i):console.warn("Move Error - No matching column found:",s):console.warn("Move Error - No matching column found:",e)}scrollToColumn(e,t,i){return new Promise((r,s)=>{var o=this.columnManager.findColumn(e);return o?this.columnManager.scrollToColumn(o,t,i):(console.warn("Scroll Error - No matching column found:",e),Promise.reject("Scroll Error - No matching column found"))})}redraw(e){this.initGuard(),this.columnManager.redraw(e),this.rowManager.redraw(e)}setHeight(e){this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.initializeRenderer(),this.rowManager.redraw(!0)}on(e,t){this.externalEvents.subscribe(e,t)}off(e,t){this.externalEvents.unsubscribe(e,t)}dispatchEvent(){var e=Array.from(arguments);e.shift(),this.externalEvents.dispatch(...arguments)}alert(e,t){this.initGuard(),this.alertManager.alert(e,t)}clearAlert(){this.initGuard(),this.alertManager.clear()}modExists(e,t){return this.modules[e]?!0:(t&&console.error("Tabulator Module Not Installed: "+e),!1)}module(e){var t=this.modules[e];return t||console.error("Tabulator module not installed: "+e),t}}var Rn=gi;class fS extends Rn{static extendModule(){Rn.initializeModuleBinder(Yo),Rn._extendModule(...arguments)}static registerModule(){Rn.initializeModuleBinder(Yo),Rn._registerModule(...arguments)}constructor(e,t,i){super(e,t,Yo)}}var pS=fS;const mS={key:0,class:"bi bi-chevron-up"},gS={key:1,class:"bi bi-chevron-down"},sd=Ie({__name:"SubFilterToggleBtn",props:["modelValue"],emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=n,r=()=>{t("update:modelValue",!i.modelValue)};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:"icon",onClick:r},[n.modelValue?(a.openBlock(),a.createElementBlock("i",mS)):(a.openBlock(),a.createElementBlock("i",gS))]))}},[["__scopeId","data-v-4810f2ed"]]),Ko={gender:{MALE:1,FEMALE:2},timeTypes:{HOUR:1,DAY:2,WEEK:3,MONTH:4,YEAR:5},customPerPageOptions:[{id:10,label:10},{id:40,label:40},{id:100,label:100},{id:150,label:150},{id:200,label:200}],mask_regex:{INTEGER:"^[0-9]*$",DECIMAL:"^[0-9]{1,10}[.]?[0-9]{1}$",HUNDREDTHS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,2})$",THOUSANDS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,3})$",NO_LIMIT_AFTER_DOT:"^[0-9]{1,10}[.]?[0-9]*$",ABOVE_ONE:"^[1-9]+[0-9]*$",NO_START_SPACE:"^[^ ]+.*$",NO_SPACE:"[^ ]*"}};Object.preventExtensions(Ko);function bS(){return{}}const vS="data:image/gif;base64,R0lGODlhQABAANUAAAQCBISGhMTGxERCROTm5KSmpCQiJGRiZNTW1LS2tPT29BQSFJSWlFRSVDQyNHR2dMzOzOzu7KyurGxqbNze3Ly+vFxaXAwKDIyOjCwqLPz+/BweHKSipDw6PMzKzExKTOzq7KyqrCQmJGRmZNza3Ly6vPz6/BQWFJyanFRWVDQ2NHx+fNTS1PTy9LSytGxubOTi5MTCxFxeXAwODJSSlP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAgA1ACwAAAAAQABAAAAG/sCacEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvteikPiHfcAGxa424AAFilua0NG/behtipulbTYcf0WRBsDiaAWCNsKIZXBDMAJ2iLVRhsLpJHFA0BCkomBymRezAInE0PbBshGpIgHgIeFE4QcmwdYnotCAK7HqFMLStsbCMgaQoUvB4whVEwKcIzGMxaJgSuHjGkVjEOwgdcyLssEVkKKCcAFlwkryDTWREJvlgm7pf3+Pn6+/yLFAkAAwZkUYcAhYMIEc4TEuGCsIfC/owhgIFGxYsWK5Yi0hAiRIleKGIYSRLjRiL/BAq8lQYECRgvY5KgsLCfzZs4c+oE1MJF+80qCiD8pGLiXDouGFIcqPCuCjdvXBg0SNHgAQIrzqBJ42LChQyqKTAUi6IgmLARBNK0QAHWQoGTS2YJswWIwoqpKUbEMoVK1SINAiZM5eCEhCa4RTxZGFpEwYQHTRu7wJB2CyUAlpqU2LBB0SUQjk6QKyIA5JAIDjZkGLsIEQDPRAQBYDmkAOcHkmQ7QFyCTQIjJgZwvgp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f7/AAMKtFNBgcGDB1vYiYGgoUOH6opMyJCsIoAZaSo00NCgo8eOKvIRmWgxGcYxGjtyXMkx5CaEMH2NKfCwJrOBOHPq3MlTE/6MFyKzMJgRFEuKdu+40PAQQUK9cONYldsSgIIHDzJkVrvGKts2LSkIhLDqAUMBKQyQ7SJxdsyED1cp2EDBT0muXb0EIdBw1YOLEqpYufrKh4MCFx4oLHBSolNdIikMWCiaBIYFEoSNMNigIgaXB6xeOJHAao+mETUArIg4RMBJIjDc1biZiAQrFEYgsNJ6AwUrEpV0A6BQ9wQrBUZSROU9hsMAVo2MKDh+5AIrG0/TiGBlAsl0AMiPcHVjh4EuAJ6PfA9vpILgx1RZ0UiyPonaAHYStKI8pD4S8wAkYEcJKjDXH3VJQKACYAL511MRDj44RAUZ1CCGhBLRhuGGHAPiFAQAOw==",yS={class:"position-relative",style:{"min-height":"300px"}},wS={class:"placeholder-glow"},CS={class:"tabulator hide-to-print sticky-bottom bg-white"},AS={class:"row"},ES={key:0,class:"col-auto"},kS={class:"col"},SS={class:"tabulator-footer",ref:"footer"},xS=["id"],RS=["disabled"],MS={key:0,class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},TS=a.defineComponent({__name:"Table",props:{langs:{type:Object,default:()=>({})},paginationPage:{type:Number,default:null},locale:{type:String,default:"en-en"},columnHide:{type:String,default:""},columnShow:{type:String,default:""},options:{type:Object,default:()=>({}),required:!0},filters:{type:[Array,Function,Object],default:()=>[]},tableData:{type:Array,default:()=>[]},showAllColumnsIfAllHidden:{type:Boolean,default:!1},parentComponent:{type:Object,default:()=>({})},selectedRowsStorage:{type:Array,default:()=>[]},isVisibleColumnSubFilter:{type:Boolean,default:null},loadMoreText:{type:String,default:"Load More"},noDataText:{type:String,default:"No data found"},paginationLimitText:{type:String,default:"Please use pagination to navigate"}},emits:["selectedRow","unselectedRow","updateSelectedRows","updateUnselectedRows","updateTable","onHideColumn","onShowColumn","onTableRowClick","onCellClick","onTableRowMoved","pageLoaded","savePaginationPage","updateIsVisibleColumnSubFilter"],setup(n,{emit:e}){const t=n,i=e,r=a.inject("selectedTabIndex",a.ref()),s=a.inject("selectAll",a.ref(0)),o=a.ref(""),l=a.ref(null),u=a.ref({data:[],rows:[]}),c=a.ref(new Set(t.selectedRowsStorage)),d=a.ref(!1),f=a.ref(pi()),p=a.ref(null),h=a.ref(null),k=a.ref(!1),C=a.ref(null),A=a.ref(!1),w=a.computed(()=>t.options?.paginationMode==="remote"),m=a.computed(()=>Ko.customPerPageOptions),D=a.useSlots(),g=P=>!!D[P],M=()=>{o.value=""},v=P=>!P||!P.length?[]:P.map(z=>z),x=()=>{if(!p.value)return;const P=p.value.querySelector(".tabulator-header");!P||t.isVisibleColumnSubFilter===null||zi(P,sd,{modelValue:t.isVisibleColumnSubFilter,"onUpdate:modelValue":z=>i("updateIsVisibleColumnSubFilter",z)})},y=()=>{if(!p.value)return;const P=p.value.querySelector(".tabulator-header");P&&(P.classList.add("position-relative"),x())},S=()=>{if(!h.value)return null;const P=h.value;if(typeof P.getPageMax=="function"){const ne=P.getPageMax();if(ne!=null&&!Number.isNaN(Number(ne)))return Number(ne)}const z=P.last_page;return z!=null&&z!==""&&!Number.isNaN(Number(z))?Number(z):null},b=()=>{if(!h.value)return;const P=p.value?.parentNode?.querySelector(".tabulator-footer"),z=p.value?.parentNode?.querySelector(".tabulator-pages"),ne=S();if(ne==null||ne<1||Number.isNaN(ne)){P&&P.classList.add("d-none");return}ne>1?(P&&P.classList.remove("d-none"),z&&z.style.display==="none"&&(z.style.display="")):P&&P.classList.add("d-none")},T=()=>{A.value||(k.value=!0)},R=()=>{A.value},L=P=>{k.value=!1,A.value},I=()=>{A.value||(d.value=!0,i("updateTable",h.value),h.value&&h.value.selectRow(Array.from(c.value)))},W=P=>{A.value||(setTimeout(()=>{A.value||i("savePaginationPage",P)}),w.value&&b(),s.value>0&&i("pageLoaded"),y())},U=P=>{if(A.value)return;const z=P.getData(),ne=h.value?.options?.index||"id",ae=z[ne]??null;ae!==null&&(c.value.add(ae),u.value.data.push(z),u.value.rows.push(P),i("updateSelectedRows",{data:u.value.data,row:u.value.rows}),i("selectedRow",{data:z,row:P}))},H=P=>{if(A.value)return;const z=P.getData(),ne=h.value?.options?.index||"id",ae=z[ne]??null;if(ae===null)return;c.value.delete(ae);const ye=u.value.data.findIndex(we=>we[ne]===ae);ye!==-1&&(u.value.data.splice(ye,1),u.value.rows.splice(ye,1)),i("updateUnselectedRows",{data:z,row:P}),i("unselectedRow",{data:z,row:P})},V=function(){A.value||(h.value&&h.value.selectRow(Array.from(c.value)),k.value=!1,w.value&&b())},K=(P,z)=>{if(A.value)return;if(z?._cell?.column?.definition?.hasCellClickHandler){i("onCellClick",P,z);return}const ne=[],ae=P.target;for(let ye=0;ye<ae.childNodes.length;ye++){const we=ae.childNodes[ye];we.nodeName==="INPUT"&&we.type==="checkbox"&&ne.push("checkbox")}ne.includes("checkbox")||i("onTableRowClick",P,z._cell.row,t.parentComponent)},F=P=>{A.value||h.value&&i("onTableRowMoved",h.value.getColumnLayout())},N=()=>{A.value||setTimeout(()=>{A.value})},Q=()=>{A.value||setTimeout(()=>{if(A.value)return;const P=p.value?.parentElement?.querySelector(".tabulator-paginator");P&&!C.value&&(C.value=new MutationObserver(()=>{const z=p.value?.parentElement?.querySelector(".tabulator-pages"),ne=S();z&&ne!=null&&!Number.isNaN(ne)&&ne>1&&z.style.display==="none"&&(z.style.display="")}),C.value.observe(P,{childList:!0,subtree:!0,attributes:!0})),$()})},j=()=>{d.value=!1},J=()=>{if(!p.value||w.value&&!t.options.ajaxResponse||h.value)return;k.value=!0;const P=bS(),z=t.langs&&typeof t.langs=="object"?t.langs:{},ne={...t.options,...w.value?{}:{data:t.tableData},langs:{...P,...z},locale:t.locale,columns:v(t.options.columns),dataLoaderLoading:`<img alt="" src="${vS}">`,placeholder:t.noDataText,...t.options.ajaxResponse?{ajaxResponse:t.options.ajaxResponse}:{}};w.value&&(delete ne.ajaxURL,ne.footerElement=`#tabulator-footer${f.value}`),h.value=new pS(p.value,ne),h.value.on("dataLoading",T),h.value.on("dataLoaded",R),h.value.on("dataLoadError",L),h.value.on("tableBuilt",I),h.value.on("pageLoaded",W),h.value.on("rowSelected",U),h.value.on("rowDeselected",H),h.value.on("dataProcessed",V),h.value.on("cellClick",K),h.value.on("columnMoved",F),h.value.on("renderStarted",N),h.value.on("renderComplete",Q),h.value.on("tableDestroyed",j)},Z=P=>{if(A.value||!d.value||!P||!h.value)return;const z=h.value.options.ajaxParams;z&&(z.per_page=Number(P)),h.value.options.paginationSize=Number(P),h.value.setPageSize(P)},le=()=>{if(A.value||!h.value)return;const P=640,z=h.value.options;if(w.value){const ne=z.ajaxParams?.per_page??z.paginationSize??h.value.getPageSize()??10,ae=Number(ne);if(!Number.isFinite(ae)||ae<1)return;if(ae>=P){o.value=t.paginationLimitText;return}const we=Math.min(ae+ae,P);z.ajaxParams||(z.ajaxParams={}),z.ajaxParams.per_page=we,z.paginationSize=we,h.value.setPageSize(we),we>=P&&(o.value=t.paginationLimitText);return}else{const ne=h.value.getPageSize();if(typeof ne=="number"&&ne<P){const ae=ne;h.value.setPageSize(Math.min(ne+ae,P))}}z.paginationSize>=P&&(o.value=t.paginationLimitText)},ue=P=>{A.value||P===""||!h.value||(h.value.showColumn(P),i("onShowColumn",h.value.getColumnLayout()))},Y=P=>{A.value||P===""||!h.value||(h.value.hideColumn(P),i("onHideColumn",h.value.getColumnLayout()))},X=P=>{A.value||!h.value||(P.filter(({visible:z})=>!z).length===P.length?P.map(({field:z})=>{a.nextTick(()=>{!A.value&&h.value&&h.value.showColumn(z)})}):P.map(({field:z,visible:ne})=>{!A.value&&h.value&&(ne?h.value.showColumn(z):h.value.hideColumn(z))}))},$=()=>{a.nextTick(()=>{if(A.value||!h.value||h.value.getPage()!==1||!t.paginationPage||t.paginationPage===h.value.getPage())return!1;h.value.setPage(t.paginationPage)})};return a.onMounted(()=>{J()}),a.onBeforeUnmount(()=>{A.value=!0,C.value&&(C.value.disconnect(),C.value=null),h.value&&(h.value.destroy(),h.value=null)}),a.watch(()=>t.columnShow,P=>{P&&ue(P)}),a.watch(()=>t.columnHide,P=>{P&&Y(P)}),a.watch(()=>t.filters,P=>{A.value||!h.value||h.value.setFilter(P)},{deep:!0}),a.watch(()=>t.tableData,P=>{A.value||!h.value||w.value||h.value.setData(P)},{deep:!1}),a.watch(()=>t.options.ajaxResponse,P=>{A.value||(h.value&&P?h.value.options.ajaxResponse=P:w.value&&P&&!h.value&&a.nextTick(()=>{A.value||!p.value||J()}))}),a.watch(()=>t.options,P=>{A.value||w.value&&P.ajaxResponse&&!h.value&&a.nextTick(()=>{A.value||!p.value||J()})},{deep:!0}),a.watch(r,()=>{A.value||!h.value||h.value.deselectRow()}),a.watch(s,P=>{A.value||P<=0||!h.value||h.value.selectRow()}),a.watch(()=>t.options.columns,P=>{A.value||!d.value||!h.value||!P||(!P.find(({visible:z})=>z)&&t.showAllColumnsIfAllHidden?X(P):h.value.setColumns(P))},{deep:!0}),a.watch(()=>t.selectedRowsStorage,P=>{A.value||!P||(c.value=new Set(P))},{deep:!0}),a.watch(d,P=>{A.value||!P||(t.showAllColumnsIfAllHidden&&X(t.options.columns||[]),t.tableData.length>0&&!w.value&&h.value&&h.value.setData(t.tableData))},{deep:!0}),(P,z)=>(a.openBlock(),a.createElementBlock("div",yS,[a.withDirectives(a.createElementVNode("p",wS,[...z[2]||(z[2]=[a.createStaticVNode('<span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span>',10)])],512),[[a.vShow,k.value]]),a.withDirectives(a.createElementVNode("div",{ref_key:"tableRef",ref:p},null,512),[[a.vShow,!k.value]]),a.withDirectives(a.createElementVNode("div",CS,[a.createElementVNode("div",AS,[g("table-footer-left")?(a.openBlock(),a.createElementBlock("div",ES,[a.renderSlot(P.$slots,"table-footer-left")])):a.createCommentVNode("",!0),a.createElementVNode("div",kS,[a.createElementVNode("div",SS,[a.createElementVNode("div",{class:"tabulator-footer-contents d-flex",id:`tabulator-footer${f.value}`},[a.createElementVNode("button",{class:"btn btn-primary me-3",id:"loadMoreButton",onClick:le,disabled:k.value},[a.createTextVNode(a.toDisplayString(n.loadMoreText)+" ",1),z[3]||(z[3]=a.createElementVNode("i",{class:"bi bi-plus-lg"},null,-1)),k.value?(a.openBlock(),a.createElementBlock("div",MS)):a.createCommentVNode("",!0)],8,RS),a.createVNode(Vt,{class:"me-3",style:{"min-width":"150px"},modelValue:l.value,"onUpdate:modelValue":[z[0]||(z[0]=ne=>l.value=ne),z[1]||(z[1]=ne=>Z(ne))],allowClear:!1,options:m.value,dropDownPlacement:"top"},null,8,["modelValue","options"])],8,xS)],512)])])],512),[[a.vShow,w.value]]),a.createVNode(Jc,{message:o.value,onClearMessage:M},null,8,["message"])]))}}),DS={class:"r3-table-count__wrapper px-3"},OS={class:"r3-table-count__label pe-2"},LS={class:"r3-table-count__value"},BS=Ie(a.defineComponent({__name:"TableCount",props:{label:{default:""},count:{default:0},defaultLabel:{default:"-"},defaultCount:{default:"-"},size:{default:"medium"},showSeparator:{type:Boolean,default:!0}},setup(n){const e=n,t=a.computed(()=>e.label||e.defaultLabel),i=a.computed(()=>e.count===null||e.count===void 0||e.count===""?e.defaultCount:e.count);return(r,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["r3-table-count",[`r3-table-count--${r.size}`]])},[a.createElementVNode("div",DS,[a.createElementVNode("span",OS,a.toDisplayString(t.value)+":",1),a.createElementVNode("span",LS,a.toDisplayString(i.value),1)])],2))}}),[["__scopeId","data-v-87be8b13"]]),FS=Ie(a.defineComponent({__name:"ColumnSubFilter",props:{tableRefEl:{default:void 0},columnField:{default:""},mountedComponent:{default:void 0},dataProps:{default:()=>({})},table:{default:void 0},isVisible:{type:Boolean,default:!1}},setup(n){const e=n;function t(){if(!e?.tableRefEl)return!1;const i=`[tabulator-field='${e.columnField}']`,r=e.tableRefEl?.querySelector(i);if(!e.table||!r)return!1;if(e.isVisible&&r&&e.mountedComponent)return zi(r,e.mountedComponent,e.dataProps),!1;zi(r,null,{},!0)}return a.watch(()=>e,()=>{t()},{deep:!0}),a.onMounted(()=>{t()}),(i,r)=>null}}),[["__scopeId","data-v-0ddbb5a3"]]),_S=Ie(a.defineComponent({__name:"TableAppliedFiltersStorage",props:{tableName:{},filters:{}},emits:["update:filters"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=a.computed(()=>"default-page"),o=a.toRef(i,"filters");function l(){let p=localStorage.getItem("filters"),h=p?JSON.parse(p):{};h={...oi(h),[s.value]:{[i.tableName]:d(o.value)}};const k=JSON.stringify(h);return localStorage.setItem("filters",k),p=localStorage.getItem("filters"),p?JSON.parse(p):{}}function u(p){return!(!p||!p[s.value]||!p[s.value][i.tableName])}function c(p){const h=JSON.parse(p);return u(h)?(p=localStorage.getItem("filters")||"{}",JSON.parse(p)):l()}function d(p){const h={};for(const[k,C]of Object.entries(p))h[k]=oi(C._value||C);return h}function f(){let p=localStorage.getItem("filters");if(!p)return r("update:filters",{}),!1;let h=c(p);if(!h[s.value]||!h[s.value][i.tableName])return r("update:filters",{}),!1;const k=d(h[s.value][i.tableName]);return r("update:filters",{...k}),!0}return e({getFilters:f,saveFilters:l}),(p,h)=>a.createCommentVNode("",!0)}}),[["__scopeId","data-v-08a5ac04"]]),PS={class:"row pt-3"},NS={class:"col-12"},IS=["onClick"],HS=Ie(a.defineComponent({__name:"TableQuickFilterComponent",props:{filterList:{},defaultSelected:{default:""}},emits:["emitSelected"],setup(n,{emit:e}){const t=e,i=r=>{t("emitSelected",r)};return(r,s)=>(a.openBlock(),a.createElementBlock("div",PS,[a.createElementVNode("div",NS,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.filterList,(o,l)=>(a.openBlock(),a.createElementBlock("button",{onClick:u=>i(o.name),class:a.normalizeClass(["btn filter-item",{active:r.defaultSelected===o.name,disabled:o.disabled}]),key:l},a.toDisplayString(o.title),11,IS))),128))])]))}}),[["__scopeId","data-v-cdf25b7c"]]),VS={key:0,class:"col-4 mb-2"},zS={class:"form-check"},jS=["checked","id","onChange"],WS=["for"],US=["innerHTML"],GS={class:"col-auto"},YS={class:"col-auto ps-0"},QS={class:"col-auto ps-0"},Jo=Ie(a.defineComponent({__name:"EditTableColumns",props:{title:{default:"Table Data"},modalVisibility:{type:Boolean,default:!1},columns:{default:()=>[]},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["emitModalVisibility","columnVisibilityChange","apply","selectAll","unselectAll"],setup(n,{emit:e}){const t=n,i=e,r=a.ref([...t.columns]),s=a.ref([...t.columns]);a.watch(()=>t.columns,h=>{JSON.stringify(h)!==JSON.stringify(s.value)&&(r.value=[...h],s.value=[...h],l())},{deep:!0});const o=a.ref(!0);function l(){const k=r.value.filter(C=>C.title).some(C=>!C.visible);o.value=k,a.triggerRef(o)}l();const u=h=>{i("emitModalVisibility",h)},c=(h,k)=>{const C=h.target,A=r.value.findIndex(w=>w.field===k);A!==-1&&(r.value[A].visible=C.checked,l()),i("columnVisibilityChange",h,k)},d=()=>{i("apply",r.value)},f=()=>{const h=r.value.map(k=>({...k,visible:k.title?!0:k.visible}));r.value=h,s.value=[...h],l(),i("selectAll")},p=()=>{const h=r.value.map(k=>({...k,visible:k.title?!1:k.visible}));r.value=h,s.value=[...h],l(),i("unselectAll")};return(h,k)=>(a.openBlock(),a.createBlock(Uc,{title:h.title,"modal-visibility":h.modalVisibility,onEmitModalVisibility:u},{"modal-body":a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(C,A)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:A},[C.title?(a.openBlock(),a.createElementBlock("div",VS,[a.createElementVNode("div",zS,[a.createElementVNode("input",{checked:C.visible,class:"form-check-input",type:"checkbox",id:C.field,ref_for:!0,ref:"editColumns",onChange:w=>c(w,C.field)},null,40,jS),a.createElementVNode("label",{class:"form-check-label",for:C.field},[a.createElementVNode("span",{class:"lh-sm",innerHTML:C.title},null,8,US)],8,WS)])])):a.createCommentVNode("",!0)],64))),128))]),"modal-footer":a.withCtx(()=>[a.createElementVNode("div",GS,[a.createElementVNode("button",{type:"button",class:"btn btn-primary px-4",onClick:d},a.toDisplayString(h.applyText),1)]),a.createElementVNode("div",YS,[a.createElementVNode("div",QS,[o.value?(a.openBlock(),a.createElementBlock("button",{key:"select-all",type:"button",class:"btn btn-light",onClick:f},a.toDisplayString(h.selectAllText),1)):a.createCommentVNode("",!0),o.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:"unselect-all",type:"button",class:"btn btn-light",onClick:p},a.toDisplayString(h.unselectAllText),1))])])]),_:1},8,["title","modal-visibility"]))}}),[["__scopeId","data-v-7c63c539"]]);function qo(n,e){const t=a.ref(!1),i=a.ref([...n]);a.watch(()=>n,k=>{i.value=[...k]},{deep:!0});function r(k){t.value=k}function s(k,C){const A=k.target,w=i.value.map(m=>m.field===C?{...m,visible:A.checked}:m);i.value=w,e&&e.value&&(e.value.columns=w)}function o(k){console.log("useTableColumns handleColumnsApply called, received columns:",k),console.log("useTableColumns current tableColumns before update:",i.value),t.value=!1,l(k),u()}function l(k){k&&(i.value=[...k],console.log("useTableColumns tableColumns after update:",i.value))}function u(){if(!e||!e.value){console.log("useTableColumns tableOptions not available");return}console.log("useTableColumns updating tableOptions.columns:",i.value),e.value.columns=i.value,console.log("useTableColumns tableOptions.columns after update:",e.value.columns)}function c(){const k=i.value.map(C=>({...C,visible:C.title?!0:C.visible}));i.value=k,e&&e.value&&(e.value.columns=k)}function d(){const k=i.value.map(C=>({...C,visible:C.title?!1:C.visible}));i.value=k,e&&e.value&&(e.value.columns=k)}const f=a.computed(()=>i.value.filter(k=>k.visible));function p(k){i.value=[...k],e&&e.value&&(e.value.columns=k)}function h(){i.value=[...n],e&&e.value&&(e.value.columns=[...n])}return{columnsModalVisibility:t,tableColumns:i,visibleColumns:f,handleColumnsModalVisibility:r,handleColumnVisibilityChange:s,handleColumnsApply:o,handleColumnsSelectAll:c,handleColumnsUnselectAll:d,updateColumns:p,resetColumns:h}}const KS=a.defineComponent({__name:"TableColumnsButton",props:{columns:{},tableOptions:{},title:{default:"Table Columns Settings"},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:o,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=qo(t.columns,t.tableOptions);a.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,h&&Array.isArray(h)&&(s.value=[...h],i("columns-changed",h)),i("apply")}return(h,k)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Fr,{styles:"light",onSubmit:f,icon:"gear-fill"}),a.createVNode(Jo,{title:h.title,"modal-visibility":a.unref(r),columns:a.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:a.unref(o),onColumnVisibilityChange:a.unref(l),onApply:p,onSelectAll:a.unref(u),onUnselectAll:a.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),JS=a.defineComponent({__name:"TableColumnsModal",props:{columns:{},tableOptions:{},title:{default:"Настройка колонок таблицы"},applyText:{default:"Применить"},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:o,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=qo(t.columns,t.tableOptions);a.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,h&&Array.isArray(h)&&(s.value=[...h],i("columns-changed",h)),i("apply")}return(h,k)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Fr,{styles:"light",onSubmit:f,icon:"gear-fill"}),a.createVNode(Jo,{title:h.title,"modal-visibility":a.unref(r),columns:a.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:a.unref(o),onColumnVisibilityChange:a.unref(l),onApply:p,onSelectAll:a.unref(u),onUnselectAll:a.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),qS={"data-test":"ToggleAllTableRowButtons",class:"toggle-all-rows-controls"},$S={key:2,class:"selected-count"},ZS=Ie(a.defineComponent({__name:"ToggleAllTableRowButtons",props:{selectedRows:{default:()=>[]},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"},selectedText:{default:"Выбрано"},showCount:{type:Boolean,default:!0}},emits:["selectAll","unselectAll"],setup(n,{emit:e}){const t=e,i=()=>{t("selectAll")},r=()=>{t("unselectAll")};return(s,o)=>(a.openBlock(),a.createElementBlock("div",qS,[s.selectedRows.length>0?(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-light me-3",onClick:r},a.toDisplayString(s.unselectAllText),1)):a.createCommentVNode("",!0),s.selectedRows.length===0?(a.openBlock(),a.createElementBlock("button",{key:1,class:"btn btn-primary me-3",onClick:i},a.toDisplayString(s.selectAllText),1)):a.createCommentVNode("",!0),s.showCount?(a.openBlock(),a.createElementBlock("div",$S,a.toDisplayString(s.selectedText)+": "+a.toDisplayString(s.selectedRows.length),1)):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-010ff090"]]),XS={class:"row pt-3"},e1={class:"col-12"},t1=["onClick"],i1=Ie(a.defineComponent({__name:"MultipleQuickFilterComponent",props:{filterList:{},defaultSelected:{default:()=>({})}},emits:["emitSelected"],setup(n,{emit:e}){const t=n,i=e,r=s=>{t.filterList[s].disabled||(t.filterList[s].value=!t.filterList[s].value,i("emitSelected",t.filterList))};return a.watch(()=>t.defaultSelected,s=>{s&&Object.keys(s).length>0&&t.filterList.forEach((o,l)=>{const u=Object.keys(s)[l];u&&s[u]!==void 0&&(o.value=s[u])})},{immediate:!0}),(s,o)=>(a.openBlock(),a.createElementBlock("div",XS,[a.createElementVNode("div",e1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.filterList,(l,u)=>(a.openBlock(),a.createElementBlock("button",{onClick:c=>r(u),class:a.normalizeClass(["btn filter-item",{active:s.filterList[u].value,disabled:s.filterList[u].disabled}]),key:u},a.toDisplayString(l.title),11,t1))),128))])]))}}),[["__scopeId","data-v-1a1bfba2"]]);var bi;(function(n){n.Range="range",n.Steps="steps",n.Positions="positions",n.Count="count",n.Values="values"})(bi||(bi={}));var bt;(function(n){n[n.None=-1]="None",n[n.NoValue=0]="NoValue",n[n.LargeValue=1]="LargeValue",n[n.SmallValue=2]="SmallValue"})(bt||(bt={}));function n1(n){return Rr(n)&&typeof n.from=="function"}function Rr(n){return typeof n=="object"&&typeof n.to=="function"}function ad(n){n.parentElement.removeChild(n)}function $o(n){return n!=null}function od(n){n.preventDefault()}function r1(n){return n.filter(function(e){return this[e]?!1:this[e]=!0},{})}function s1(n,e){return Math.round(n/e)*e}function a1(n,e){var t=n.getBoundingClientRect(),i=n.ownerDocument,r=i.documentElement,s=cd(i);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),e?t.top+s.y-r.clientTop:t.left+s.x-r.clientLeft}function zt(n){return typeof n=="number"&&!isNaN(n)&&isFinite(n)}function ld(n,e,t){t>0&&(mt(n,e),setTimeout(function(){Tr(n,e)},t))}function ud(n){return Math.max(Math.min(n,100),0)}function Mr(n){return Array.isArray(n)?n:[n]}function o1(n){n=String(n);var e=n.split(".");return e.length>1?e[1].length:0}function mt(n,e){n.classList&&!/\s/.test(e)?n.classList.add(e):n.className+=" "+e}function Tr(n,e){n.classList&&!/\s/.test(e)?n.classList.remove(e):n.className=n.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function l1(n,e){return n.classList?n.classList.contains(e):new RegExp("\\b"+e+"\\b").test(n.className)}function cd(n){var e=window.pageXOffset!==void 0,t=(n.compatMode||"")==="CSS1Compat",i=e?window.pageXOffset:t?n.documentElement.scrollLeft:n.body.scrollLeft,r=e?window.pageYOffset:t?n.documentElement.scrollTop:n.body.scrollTop;return{x:i,y:r}}function u1(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function c1(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}function d1(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Zo(n,e){return 100/(e-n)}function Xo(n,e,t){return e*100/(n[t+1]-n[t])}function h1(n,e){return Xo(n,n[0]<0?e+Math.abs(n[0]):e-n[0],0)}function f1(n,e){return e*(n[1]-n[0])/100+n[0]}function Mn(n,e){for(var t=1;n>=e[t];)t+=1;return t}function p1(n,e,t){if(t>=n.slice(-1)[0])return 100;var i=Mn(t,n),r=n[i-1],s=n[i],o=e[i-1],l=e[i];return o+h1([r,s],t)/Zo(o,l)}function m1(n,e,t){if(t>=100)return n.slice(-1)[0];var i=Mn(t,e),r=n[i-1],s=n[i],o=e[i-1],l=e[i];return f1([r,s],(t-o)*Zo(o,l))}function g1(n,e,t,i){if(i===100)return i;var r=Mn(i,n),s=n[r-1],o=n[r];return t?i-s>(o-s)/2?o:s:e[r-1]?n[r-1]+s1(i-n[r-1],e[r-1]):i}var dd=(function(){function n(e,t,i){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=t;var r,s=[];for(Object.keys(e).forEach(function(o){s.push([Mr(e[o]),o])}),s.sort(function(o,l){return o[0][0]-l[0][0]}),r=0;r<s.length;r++)this.handleEntryPoint(s[r][1],s[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return n.prototype.getDistance=function(e){for(var t=[],i=0;i<this.xNumSteps.length-1;i++)t[i]=Xo(this.xVal,e,i);return t},n.prototype.getAbsoluteDistance=function(e,t,i){var r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);!i&&e===this.xPct[r+1]&&r++,t===null&&(t=[]);var s,o=1,l=t[r],u=0,c=0,d=0,f=0;for(i?s=(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):s=(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);l>0;)u=this.xPct[r+1+f]-this.xPct[r+f],t[r+f]*o+100-s*100>100?(c=u*s,o=(l-100*s)/t[r+f],s=1):(c=t[r+f]*u/100*o,o=0),i?(d=d-c,this.xPct.length+f>=1&&f--):(d=d+c,this.xPct.length-f>=1&&f++),l=t[r+f]*o;return e+d},n.prototype.toStepping=function(e){return e=p1(this.xVal,this.xPct,e),e},n.prototype.fromStepping=function(e){return m1(this.xVal,this.xPct,e)},n.prototype.getStep=function(e){return e=g1(this.xPct,this.xSteps,this.snap,e),e},n.prototype.getDefaultStep=function(e,t,i){var r=Mn(e,this.xPct);return(e===100||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/i},n.prototype.getNearbySteps=function(e){var t=Mn(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},n.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(o1);return Math.max.apply(null,e)},n.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},n.prototype.convert=function(e){return this.getStep(this.toStepping(e))},n.prototype.handleEntryPoint=function(e,t){var i;if(e==="min"?i=0:e==="max"?i=100:i=parseFloat(e),!zt(i)||!zt(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(i),this.xVal.push(t[0]);var r=Number(t[1]);i?this.xSteps.push(isNaN(r)?!1:r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},n.prototype.handleStepPoint=function(e,t){if(t){if(this.xVal[e]===this.xVal[e+1]){this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e];return}this.xSteps[e]=Xo([this.xVal[e],this.xVal[e+1]],t,0)/Zo(this.xPct[e],this.xPct[e+1]);var i=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],r=Math.ceil(Number(i.toFixed(3))-1),s=this.xVal[e]+this.xNumSteps[e]*r;this.xHighestCompleteStep[e]=s}},n})(),hd={to:function(n){return n===void 0?"":n.toFixed(2)},from:Number},fd={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},vi={tooltips:".__tooltips",aria:".__aria"};function b1(n,e){if(!zt(e))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=e}function v1(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");n.keyboardPageMultiplier=e}function y1(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");n.keyboardMultiplier=e}function w1(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");n.keyboardDefaultStep=e}function C1(n,e){if(typeof e!="object"||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(e.min===void 0||e.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");n.spectrum=new dd(e,n.snap||!1,n.singleStep)}function A1(n,e){if(e=Mr(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=e.length,n.start=e}function E1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");n.snap=e}function k1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");n.animate=e}function S1(n,e){if(typeof e!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");n.animationDuration=e}function pd(n,e){var t=[!1],i;if(e==="lower"?e=[!0,!1]:e==="upper"&&(e=[!1,!0]),e===!0||e===!1){for(i=1;i<n.handles;i++)t.push(e);t.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==n.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=e}n.connect=t}function x1(n,e){switch(e){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function md(n,e){if(!zt(e))throw new Error("noUiSlider: 'margin' option must be numeric.");e!==0&&(n.margin=n.spectrum.getDistance(e))}function R1(n,e){if(!zt(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getDistance(e),!n.limit||n.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function M1(n,e){var t;if(!zt(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&!(e.length===2||zt(e[0])||zt(e[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(e!==0){for(Array.isArray(e)||(e=[e,e]),n.padding=[n.spectrum.getDistance(e[0]),n.spectrum.getDistance(e[1])],t=0;t<n.spectrum.xNumSteps.length-1;t++)if(n.padding[0][t]<0||n.padding[1][t]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=e[0]+e[1],r=n.spectrum.xVal[0],s=n.spectrum.xVal[n.spectrum.xVal.length-1];if(i/(s-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function T1(n,e){switch(e){case"ltr":n.dir=0;break;case"rtl":n.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function D1(n,e){if(typeof e!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=e.indexOf("tap")>=0,i=e.indexOf("drag")>=0,r=e.indexOf("fixed")>=0,s=e.indexOf("snap")>=0,o=e.indexOf("hover")>=0,l=e.indexOf("unconstrained")>=0,u=e.indexOf("invert-connects")>=0,c=e.indexOf("drag-all")>=0,d=e.indexOf("smooth-steps")>=0;if(r){if(n.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");md(n,n.start[1]-n.start[0])}if(u&&n.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(l&&(n.margin||n.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");n.events={tap:t||s,drag:i,dragAll:c,smoothSteps:d,fixed:r,snap:s,hover:o,unconstrained:l,invertConnects:u}}function O1(n,e){if(e!==!1)if(e===!0||Rr(e)){n.tooltips=[];for(var t=0;t<n.handles;t++)n.tooltips.push(e)}else{if(e=Mr(e),e.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(i){if(typeof i!="boolean"&&!Rr(i))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),n.tooltips=e}}function L1(n,e){if(e.length!==n.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");n.handleAttributes=e}function B1(n,e){if(!Rr(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");n.ariaFormat=e}function F1(n,e){if(!n1(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");n.format=e}function _1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");n.keyboardSupport=e}function P1(n,e){n.documentElement=e}function N1(n,e){if(typeof e!="string"&&e!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=e}function I1(n,e){if(typeof e!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof n.cssPrefix=="string"?(n.cssClasses={},Object.keys(e).forEach(function(t){n.cssClasses[t]=n.cssPrefix+e[t]})):n.cssClasses=e}function gd(n){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:hd,format:hd},t={step:{r:!1,t:b1},keyboardPageMultiplier:{r:!1,t:v1},keyboardMultiplier:{r:!1,t:y1},keyboardDefaultStep:{r:!1,t:w1},start:{r:!0,t:A1},connect:{r:!0,t:pd},direction:{r:!0,t:T1},snap:{r:!1,t:E1},animate:{r:!1,t:k1},animationDuration:{r:!1,t:S1},range:{r:!0,t:C1},orientation:{r:!1,t:x1},margin:{r:!1,t:md},limit:{r:!1,t:R1},padding:{r:!1,t:M1},behaviour:{r:!0,t:D1},ariaFormat:{r:!1,t:B1},format:{r:!1,t:F1},tooltips:{r:!1,t:O1},keyboardSupport:{r:!0,t:_1},documentElement:{r:!1,t:P1},cssPrefix:{r:!0,t:N1},cssClasses:{r:!0,t:I1},handleAttributes:{r:!1,t:L1}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:fd,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format),Object.keys(t).forEach(function(u){if(!$o(n[u])&&i[u]===void 0){if(t[u].r)throw new Error("noUiSlider: '"+u+"' is required.");return}t[u].t(e,$o(n[u])?n[u]:i[u])}),e.pips=n.pips;var r=document.createElement("div"),s=r.style.msTransform!==void 0,o=r.style.transform!==void 0;e.transformRule=o?"transform":s?"msTransform":"webkitTransform";var l=[["left","top"],["right","bottom"]];return e.style=l[e.dir][e.ort],e}function H1(n,e,t){var i=u1(),r=d1(),s=r&&c1(),o=n,l,u,c,d,f,p,h=e.spectrum,k=[],C=[],A=[],w=0,m={},D=!1,g=n.ownerDocument,M=e.documentElement||g.documentElement,v=g.body,x=g.dir==="rtl"||e.ort===1?0:100;function y(E,O){var _=g.createElement("div");return O&&mt(_,O),E.appendChild(_),_}function S(E,O){var _=y(E,e.cssClasses.origin),G=y(_,e.cssClasses.handle);if(y(G,e.cssClasses.touchArea),G.setAttribute("data-handle",String(O)),e.keyboardSupport&&(G.setAttribute("tabindex","0"),G.addEventListener("keydown",function(ce){return Fe(ce,O)})),e.handleAttributes!==void 0){var re=e.handleAttributes[O];Object.keys(re).forEach(function(ce){G.setAttribute(ce,re[ce])})}return G.setAttribute("role","slider"),G.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),O===0?mt(G,e.cssClasses.handleLower):O===e.handles-1&&mt(G,e.cssClasses.handleUpper),_.handle=G,_}function b(E,O){return O?y(E,e.cssClasses.connect):!1}function T(E,O){u=y(O,e.cssClasses.connects),c=[],d=[],d.push(b(u,E[0]));for(var _=0;_<e.handles;_++)c.push(S(O,_)),A[_]=_,d.push(b(u,E[_+1]))}function R(E){mt(E,e.cssClasses.target),e.dir===0?mt(E,e.cssClasses.ltr):mt(E,e.cssClasses.rtl),e.ort===0?mt(E,e.cssClasses.horizontal):mt(E,e.cssClasses.vertical);var O=getComputedStyle(E).direction;return O==="rtl"?mt(E,e.cssClasses.textDirectionRtl):mt(E,e.cssClasses.textDirectionLtr),y(E,e.cssClasses.base)}function L(E,O){return!e.tooltips||!e.tooltips[O]?!1:y(E.firstChild,e.cssClasses.tooltip)}function I(){return o.hasAttribute("disabled")}function W(E){var O=c[E];return O.hasAttribute("disabled")}function U(E){E!=null?(c[E].setAttribute("disabled",""),c[E].handle.removeAttribute("tabindex")):(o.setAttribute("disabled",""),c.forEach(function(O){O.handle.removeAttribute("tabindex")}))}function H(E){E!=null?(c[E].removeAttribute("disabled"),c[E].handle.setAttribute("tabindex","0")):(o.removeAttribute("disabled"),c.forEach(function(O){O.removeAttribute("disabled"),O.handle.setAttribute("tabindex","0")}))}function V(){p&&(q("update"+vi.tooltips),p.forEach(function(E){E&&ad(E)}),p=null)}function K(){V(),p=c.map(L),Ne("update"+vi.tooltips,function(E,O,_){if(!(!p||!e.tooltips)&&p[O]!==!1){var G=E[O];e.tooltips[O]!==!0&&(G=e.tooltips[O].to(_[O])),p[O].innerHTML=G}})}function F(){q("update"+vi.aria),Ne("update"+vi.aria,function(E,O,_,G,re){A.forEach(function(ce){var fe=c[ce],pe=me(C,ce,0,!0,!0,!0),be=me(C,ce,100,!0,!0,!0),Ce=re[ce],De=String(e.ariaFormat.to(_[ce]));pe=h.fromStepping(pe).toFixed(1),be=h.fromStepping(be).toFixed(1),Ce=h.fromStepping(Ce).toFixed(1),fe.children[0].setAttribute("aria-valuemin",pe),fe.children[0].setAttribute("aria-valuemax",be),fe.children[0].setAttribute("aria-valuenow",Ce),fe.children[0].setAttribute("aria-valuetext",De)})})}function N(E){if(E.mode===bi.Range||E.mode===bi.Steps)return h.xVal;if(E.mode===bi.Count){if(E.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var O=E.values-1,_=100/O,G=[];O--;)G[O]=O*_;return G.push(100),Q(G,E.stepped)}return E.mode===bi.Positions?Q(E.values,E.stepped):E.mode===bi.Values?E.stepped?E.values.map(function(re){return h.fromStepping(h.getStep(h.toStepping(re)))}):E.values:[]}function Q(E,O){return E.map(function(_){return h.fromStepping(O?h.getStep(_):_)})}function j(E){function O(Ce,De){return Number((Ce+De).toFixed(7))}var _=N(E),G={},re=h.xVal[0],ce=h.xVal[h.xVal.length-1],fe=!1,pe=!1,be=0;return _=r1(_.slice().sort(function(Ce,De){return Ce-De})),_[0]!==re&&(_.unshift(re),fe=!0),_[_.length-1]!==ce&&(_.push(ce),pe=!0),_.forEach(function(Ce,De){var We,Be,qe,Xe=Ce,at=_[De+1],nt,yi,Ti,ci,jt,$t,Xi,Di=E.mode===bi.Steps;for(Di&&(We=h.xNumSteps[De]),We||(We=at-Xe),at===void 0&&(at=Xe),We=Math.max(We,1e-7),Be=Xe;Be<=at;Be=O(Be,We)){for(nt=h.toStepping(Be),yi=nt-be,jt=yi/(E.density||1),$t=Math.round(jt),Xi=yi/$t,qe=1;qe<=$t;qe+=1)Ti=be+qe*Xi,G[Ti.toFixed(5)]=[h.fromStepping(Ti),0];ci=_.indexOf(Be)>-1?bt.LargeValue:Di?bt.SmallValue:bt.NoValue,!De&&fe&&Be!==at&&(ci=0),Be===at&&pe||(G[nt.toFixed(5)]=[Be,ci]),be=nt}}),G}function J(E,O,_){var G,re,ce=g.createElement("div"),fe=(G={},G[bt.None]="",G[bt.NoValue]=e.cssClasses.valueNormal,G[bt.LargeValue]=e.cssClasses.valueLarge,G[bt.SmallValue]=e.cssClasses.valueSub,G),pe=(re={},re[bt.None]="",re[bt.NoValue]=e.cssClasses.markerNormal,re[bt.LargeValue]=e.cssClasses.markerLarge,re[bt.SmallValue]=e.cssClasses.markerSub,re),be=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],Ce=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];mt(ce,e.cssClasses.pips),mt(ce,e.ort===0?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical);function De(Be,qe){var Xe=qe===e.cssClasses.value,at=Xe?be:Ce,nt=Xe?fe:pe;return qe+" "+at[e.ort]+" "+nt[Be]}function We(Be,qe,Xe){if(Xe=O?O(qe,Xe):Xe,Xe!==bt.None){var at=y(ce,!1);at.className=De(Xe,e.cssClasses.marker),at.style[e.style]=Be+"%",Xe>bt.NoValue&&(at=y(ce,!1),at.className=De(Xe,e.cssClasses.value),at.setAttribute("data-value",String(qe)),at.style[e.style]=Be+"%",at.innerHTML=String(_.to(qe)))}}return Object.keys(E).forEach(function(Be){We(Be,E[Be][0],E[Be][1])}),ce}function Z(){f&&(ad(f),f=null)}function le(E){Z();var O=j(E),_=E.filter,G=E.format||{to:function(re){return String(Math.round(re))}};return f=o.appendChild(J(O,_,G)),f}function ue(){var E=l.getBoundingClientRect(),O="offset"+["Width","Height"][e.ort];return e.ort===0?E.width||l[O]:E.height||l[O]}function Y(E,O,_,G){var re=function(fe){var pe=X(fe,G.pageOffset,G.target||O);if(!pe||I()&&!G.doNotReject||l1(o,e.cssClasses.tap)&&!G.doNotReject||E===i.start&&pe.buttons!==void 0&&pe.buttons>1||G.hover&&pe.buttons)return!1;s||pe.preventDefault(),pe.calcPoint=pe.points[e.ort],_(pe,G)},ce=[];return E.split(" ").forEach(function(fe){O.addEventListener(fe,re,s?{passive:!0}:!1),ce.push([fe,re])}),ce}function X(E,O,_){var G=E.type.indexOf("touch")===0,re=E.type.indexOf("mouse")===0,ce=E.type.indexOf("pointer")===0,fe=0,pe=0;if(E.type.indexOf("MSPointer")===0&&(ce=!0),E.type==="mousedown"&&!E.buttons&&!E.touches)return!1;if(G){var be=function(We){var Be=We.target;return Be===_||_.contains(Be)||E.composed&&E.composedPath().shift()===_};if(E.type==="touchstart"){var Ce=Array.prototype.filter.call(E.touches,be);if(Ce.length>1)return!1;fe=Ce[0].pageX,pe=Ce[0].pageY}else{var De=Array.prototype.find.call(E.changedTouches,be);if(!De)return!1;fe=De.pageX,pe=De.pageY}}return O=O||cd(g),(re||ce)&&(fe=E.clientX+O.x,pe=E.clientY+O.y),E.pageOffset=O,E.points=[fe,pe],E.cursor=re||ce,E}function $(E){var O=E-a1(l,e.ort),_=O*100/ue();return _=ud(_),e.dir?100-_:_}function P(E){var O=100,_=!1;return c.forEach(function(G,re){if(!W(re)){var ce=C[re],fe=Math.abs(ce-E),pe=fe===100&&O===100,be=fe<O,Ce=fe<=O&&E>ce;(be||Ce||pe)&&(_=re,O=fe)}}),_}function z(E,O){E.type==="mouseout"&&E.target.nodeName==="HTML"&&E.relatedTarget===null&&ae(E,O)}function ne(E,O){if(navigator.appVersion.indexOf("MSIE 9")===-1&&E.buttons===0&&O.buttonsProperty!==0)return ae(E,O);var _=(e.dir?-1:1)*(E.calcPoint-O.startCalcPoint),G=_*100/O.baseSize;ke(_>0,G,O.locations,O.handleNumbers,O.connect)}function ae(E,O){O.handle&&(Tr(O.handle,e.cssClasses.active),w-=1),O.listeners.forEach(function(_){M.removeEventListener(_[0],_[1])}),w===0&&(Tr(o,e.cssClasses.drag),Se(),E.cursor&&(v.style.cursor="",v.removeEventListener("selectstart",od))),e.events.smoothSteps&&(O.handleNumbers.forEach(function(_){Le(_,C[_],!0,!0,!1,!1)}),O.handleNumbers.forEach(function(_){ie("update",_)})),O.handleNumbers.forEach(function(_){ie("change",_),ie("set",_),ie("end",_)})}function ye(E,O){if(!O.handleNumbers.some(W)){var _;if(O.handleNumbers.length===1){var G=c[O.handleNumbers[0]];_=G.children[0],w+=1,mt(_,e.cssClasses.active)}E.stopPropagation();var re=[],ce=Y(i.move,M,ne,{target:E.target,handle:_,connect:O.connect,listeners:re,startCalcPoint:E.calcPoint,baseSize:ue(),pageOffset:E.pageOffset,handleNumbers:O.handleNumbers,buttonsProperty:E.buttons,locations:C.slice()}),fe=Y(i.end,M,ae,{target:E.target,handle:_,listeners:re,doNotReject:!0,handleNumbers:O.handleNumbers}),pe=Y("mouseout",M,z,{target:E.target,handle:_,listeners:re,doNotReject:!0,handleNumbers:O.handleNumbers});re.push.apply(re,ce.concat(fe,pe)),E.cursor&&(v.style.cursor=getComputedStyle(E.target).cursor,c.length>1&&mt(o,e.cssClasses.drag),v.addEventListener("selectstart",od,!1)),O.handleNumbers.forEach(function(be){ie("start",be)})}}function we(E){E.stopPropagation();var O=$(E.calcPoint),_=P(O);_!==!1&&(e.events.snap||ld(o,e.cssClasses.tap,e.animationDuration),Le(_,O,!0,!0),Se(),ie("slide",_,!0),ie("update",_,!0),e.events.snap?ye(E,{handleNumbers:[_]}):(ie("change",_,!0),ie("set",_,!0)))}function xe(E){var O=$(E.calcPoint),_=h.getStep(O),G=h.fromStepping(_);Object.keys(m).forEach(function(re){re.split(".")[0]==="hover"&&m[re].forEach(function(ce){ce.call(B,G)})})}function Fe(E,O){if(I()||W(O))return!1;var _=["Left","Right"],G=["Down","Up"],re=["PageDown","PageUp"],ce=["Home","End"];e.dir&&!e.ort?_.reverse():e.ort&&!e.dir&&(G.reverse(),re.reverse());var fe=E.key.replace("Arrow",""),pe=fe===re[0],be=fe===re[1],Ce=fe===G[0]||fe===_[0]||pe,De=fe===G[1]||fe===_[1]||be,We=fe===ce[0],Be=fe===ce[1];if(!Ce&&!De&&!We&&!Be)return!0;E.preventDefault();var qe;if(De||Ce){var Xe=Ce?0:1,at=Pe(O),nt=at[Xe];if(nt===null)return!1;nt===!1&&(nt=h.getDefaultStep(C[O],Ce,e.keyboardDefaultStep)),be||pe?nt*=e.keyboardPageMultiplier:nt*=e.keyboardMultiplier,nt=Math.max(nt,1e-7),nt=(Ce?-1:1)*nt,qe=k[O]+nt}else Be?qe=e.spectrum.xVal[e.spectrum.xVal.length-1]:qe=e.spectrum.xVal[0];return Le(O,h.toStepping(qe),!0,!0),ie("slide",O),ie("update",O),ie("change",O),ie("set",O),!1}function _e(E){E.fixed||c.forEach(function(O,_){Y(i.start,O.children[0],ye,{handleNumbers:[_]})}),E.tap&&Y(i.start,l,we,{}),E.hover&&Y(i.move,l,xe,{hover:!0}),E.drag&&d.forEach(function(O,_){if(!(O===!1||_===0||_===d.length-1)){var G=c[_-1],re=c[_],ce=[O],fe=[G,re],pe=[_-1,_];mt(O,e.cssClasses.draggable),E.fixed&&(ce.push(G.children[0]),ce.push(re.children[0])),E.dragAll&&(fe=c,pe=A),ce.forEach(function(be){Y(i.start,be,ye,{handles:fe,handleNumbers:pe,connect:O})})}})}function Ne(E,O){m[E]=m[E]||[],m[E].push(O),E.split(".")[0]==="update"&&c.forEach(function(_,G){ie("update",G)})}function de(E){return E===vi.aria||E===vi.tooltips}function q(E){var O=E&&E.split(".")[0],_=O?E.substring(O.length):E;Object.keys(m).forEach(function(G){var re=G.split(".")[0],ce=G.substring(re.length);(!O||O===re)&&(!_||_===ce)&&(!de(ce)||_===ce)&&delete m[G]})}function ie(E,O,_){Object.keys(m).forEach(function(G){var re=G.split(".")[0];E===re&&m[G].forEach(function(ce){ce.call(B,k.map(e.format.to),O,k.slice(),_||!1,C.slice(),B)})})}function me(E,O,_,G,re,ce,fe){var pe;return c.length>1&&!e.events.unconstrained&&(G&&O>0&&(pe=h.getAbsoluteDistance(E[O-1],e.margin,!1),_=Math.max(_,pe)),re&&O<c.length-1&&(pe=h.getAbsoluteDistance(E[O+1],e.margin,!0),_=Math.min(_,pe))),c.length>1&&e.limit&&(G&&O>0&&(pe=h.getAbsoluteDistance(E[O-1],e.limit,!1),_=Math.min(_,pe)),re&&O<c.length-1&&(pe=h.getAbsoluteDistance(E[O+1],e.limit,!0),_=Math.max(_,pe))),e.padding&&(O===0&&(pe=h.getAbsoluteDistance(0,e.padding[0],!1),_=Math.max(_,pe)),O===c.length-1&&(pe=h.getAbsoluteDistance(100,e.padding[1],!0),_=Math.min(_,pe))),fe||(_=h.getStep(_)),_=ud(_),_===E[O]&&!ce?!1:_}function he(E,O){var _=e.ort;return(_?O:E)+", "+(_?E:O)}function ke(E,O,_,G,re){var ce=_.slice(),fe=G[0],pe=e.events.smoothSteps,be=[!E,E],Ce=[E,!E];G=G.slice(),E&&G.reverse(),G.length>1?G.forEach(function(We,Be){var qe=me(ce,We,ce[We]+O,be[Be],Ce[Be],!1,pe);qe===!1?O=0:(O=qe-ce[We],ce[We]=qe)}):be=Ce=[!0];var De=!1;G.forEach(function(We,Be){De=Le(We,_[We]+O,be[Be],Ce[Be],!1,pe)||De}),De&&(G.forEach(function(We){ie("update",We),ie("slide",We)}),re!=null&&ie("drag",fe))}function Me(E,O){return e.dir?100-E-O:E}function oe(E,O){C[E]=O,k[E]=h.fromStepping(O);var _=Me(O,0)-x,G="translate("+he(_+"%","0")+")";if(c[E].style[e.transformRule]=G,e.events.invertConnects&&C.length>1){var re=C.every(function(ce,fe,pe){return fe===0||ce>=pe[fe-1]});if(D!==!re){ct();return}}et(E),et(E+1),D&&(et(E-1),et(E+2))}function Se(){A.forEach(function(E){var O=C[E]>50?-1:1,_=3+(c.length+O*E);c[E].style.zIndex=String(_)})}function Le(E,O,_,G,re,ce){return re||(O=me(C,E,O,_,G,!1,ce)),O===!1?!1:(oe(E,O),!0)}function et(E){if(d[E]){var O=C.slice();D&&O.sort(function(pe,be){return pe-be});var _=0,G=100;E!==0&&(_=O[E-1]),E!==d.length-1&&(G=O[E]);var re=G-_,ce="translate("+he(Me(_,re)+"%","0")+")",fe="scale("+he(re/100,"1")+")";d[E].style[e.transformRule]=ce+" "+fe}}function je(E,O){return E===null||E===!1||E===void 0||(typeof E=="number"&&(E=String(E)),E=e.format.from(E),E!==!1&&(E=h.toStepping(E)),E===!1||isNaN(E))?C[O]:E}function Rt(E,O,_){var G=Mr(E),re=C[0]===void 0;O=O===void 0?!0:O,e.animate&&!re&&ld(o,e.cssClasses.tap,e.animationDuration),A.forEach(function(pe){Le(pe,je(G[pe],pe),!0,!1,_)});var ce=A.length===1?0:1;if(re&&h.hasNoSize()&&(_=!0,C[0]=0,A.length>1)){var fe=100/(A.length-1);A.forEach(function(pe){C[pe]=pe*fe})}for(;ce<A.length;++ce)A.forEach(function(pe){Le(pe,C[pe],!0,!0,_)});Se(),A.forEach(function(pe){ie("update",pe),G[pe]!==null&&O&&ie("set",pe)})}function At(E){Rt(e.start,E)}function Ge(E,O,_,G){if(E=Number(E),!(E>=0&&E<A.length))throw new Error("noUiSlider: invalid handle number, got: "+E);Le(E,je(O,E),!0,!0,G),ie("update",E),_&&ie("set",E)}function te(E){if(E===void 0&&(E=!1),E)return k.length===1?k[0]:k.slice(0);var O=k.map(e.format.to);return O.length===1?O[0]:O}function se(){for(q(vi.aria),q(vi.tooltips),Object.keys(e.cssClasses).forEach(function(E){Tr(o,e.cssClasses[E])});o.firstChild;)o.removeChild(o.firstChild);delete o.noUiSlider}function Pe(E){var O=C[E],_=h.getNearbySteps(O),G=k[E],re=_.thisStep.step,ce=null;if(e.snap)return[G-_.stepBefore.startValue||null,_.stepAfter.startValue-G||null];re!==!1&&G+re>_.stepAfter.startValue&&(re=_.stepAfter.startValue-G),G>_.thisStep.startValue?ce=_.thisStep.step:_.stepBefore.step===!1?ce=!1:ce=G-_.stepBefore.highestStep,O===100?re=null:O===0&&(ce=null);var fe=h.countStepDecimals();return re!==null&&re!==!1&&(re=Number(re.toFixed(fe))),ce!==null&&ce!==!1&&(ce=Number(ce.toFixed(fe))),[ce,re]}function ze(){return A.map(Pe)}function Oe(E,O){var _=te(),G=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];G.forEach(function(ce){E[ce]!==void 0&&(t[ce]=E[ce])});var re=gd(t);G.forEach(function(ce){E[ce]!==void 0&&(e[ce]=re[ce])}),h=re.spectrum,e.margin=re.margin,e.limit=re.limit,e.padding=re.padding,e.pips?le(e.pips):Z(),e.tooltips?K():V(),C=[],Rt($o(E.start)?E.start:_,O),E.connect&&Re()}function Re(){for(;u.firstChild;)u.removeChild(u.firstChild);for(var E=0;E<=e.handles;E++)d[E]=b(u,e.connect[E]),et(E);_e({drag:e.events.drag,fixed:!0})}function ct(){D=!D,pd(e,e.connect.map(function(E){return!E})),Re()}function ge(){l=R(o),T(e.connect,l),_e(e.events),Rt(e.start),e.pips&&le(e.pips),e.tooltips&&K(),F()}ge();var B={destroy:se,steps:ze,on:Ne,off:q,get:te,set:Rt,setHandle:Ge,reset:At,disable:U,enable:H,__moveHandles:function(E,O,_){ke(E,O,C,_)},options:t,updateOptions:Oe,target:o,removePips:Z,removeTooltips:V,getPositions:function(){return C.slice()},getTooltips:function(){return p},getOrigins:function(){return c},pips:le};return B}function V1(n,e){if(!n||!n.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+n);if(n.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var t=gd(e),i=H1(n,t,e);return n.noUiSlider=i,i}const z1={__spectrum:dd,cssClasses:fd,create:V1},j1={class:"slider-container"},W1={class:"slider-wrapper",style:{position:"relative"}},U1=["id"],G1=["value"],Y1=["value"],Q1=Ie(a.defineComponent({__name:"Slider",props:{minCount:{default:0},maxCount:{default:100},minValue:{default:0},maxValue:{default:100},step:{default:1},tooltips:{type:Boolean,default:!0},connect:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},sliderId:{default:"slider-range"}},emits:["updateMinValue","updateMaxValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=a.ref(null),o=a.ref(null),l=a.ref(null);let u=null;const c=a.ref(i.minValue),d=a.ref(i.maxValue),f=()=>{if(!s.value)return;u&&u.destroy();const C=Array(i.maxCount-i.minCount+1).fill(0).map((w,m)=>i.minCount+m),A={to:w=>{const m=Math.round(w);return C[m]||C[0]},from:w=>{const m=Number(w);return C.indexOf(m)}};try{u=z1.create(s.value,{start:[c.value,d.value],connect:i.connect,step:i.step,tooltips:i.tooltips,format:A,range:{min:0,max:C.length-1}}),u.on("change",w=>{const m=Number(w[0]),D=Number(w[1]);c.value!==m&&(c.value=m,r("updateMinValue",m)),d.value!==D&&(d.value=D,r("updateMaxValue",D)),r("change",[m,D])}),u.on("update",w=>{const m=Number(w[0]),D=Number(w[1]);c.value=m,d.value=D})}catch(w){console.error("Error creating slider:",w)}},p=()=>{a.nextTick(()=>{f()})},h=(C,A)=>{if(u)try{u.set([C,A])}catch(w){console.error("Error updating slider values:",w)}},k=C=>{u&&(C?u.disable():u.enable())};return a.watch(()=>[i.minValue,i.maxValue],([C,A])=>{(C!==c.value||A!==d.value)&&(c.value=C,d.value=A,h(C,A))},{immediate:!1}),a.watch(()=>i.disabled,C=>{k(C)}),a.watch(()=>[i.minCount,i.maxCount],()=>{p()}),a.onMounted(()=>{p()}),a.onUnmounted(()=>{u&&(u.destroy(),u=null)}),e({updateValues:h,getValues:()=>u?.get(),reset:()=>{u&&u.reset()},destroy:()=>{u&&(u.destroy(),u=null)}}),(C,A)=>(a.openBlock(),a.createElementBlock("div",j1,[a.createElementVNode("div",W1,[a.createElementVNode("div",{ref_key:"sliderElement",ref:s,id:C.sliderId},null,8,U1)]),a.createElementVNode("input",{type:"hidden",ref_key:"minValueRef",ref:o,value:C.minValue},null,8,G1),a.createElementVNode("input",{type:"hidden",ref_key:"maxValueRef",ref:l,value:C.maxValue},null,8,Y1)]))}}),[["__scopeId","data-v-892dca90"]]),K1=["title"],J1=Ie(a.defineComponent({__name:"QuestionIcon",props:{title:{default:""},size:{default:"md"},color:{default:"#999999"},iconClass:{default:""},tooltipPosition:{default:"top"},clickToShow:{type:Boolean,default:!0}},setup(n){const e=n,t=a.ref(),i=a.ref(!1),r=a.computed(()=>({color:e.color})),s=a.computed(()=>{switch(e.size){case"sm":return"question-icon--sm";case"lg":return"question-icon--lg";default:return"question-icon--md"}}),o=a.computed(()=>`question-tooltip--${e.tooltipPosition}`),l=()=>{e.clickToShow&&e.title&&(i.value=!i.value)},u=c=>{t.value&&!t.value.contains(c.target)&&(i.value=!1)};return a.onMounted(()=>{e.clickToShow&&document.addEventListener("click",u)}),a.onUnmounted(()=>{e.clickToShow&&document.removeEventListener("click",u)}),(c,d)=>(a.openBlock(),a.createElementBlock("div",{class:"question-icon-wrapper",ref_key:"wrapperRef",ref:t},[a.createElementVNode("i",{class:a.normalizeClass(["bi bi-question-circle-fill question-icon",[c.iconClass,s.value]]),title:c.title,style:a.normalizeStyle(r.value),onClick:l},null,14,K1),i.value&&c.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["question-tooltip",o.value])},[a.createTextVNode(a.toDisplayString(c.title)+" ",1),d[0]||(d[0]=a.createElementVNode("div",{class:"question-tooltip-arrow"},null,-1))],2)):a.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-2c102103"]]),q1={class:"container-fluid rounded overflow-hidden bg-light"},$1={class:"row w-100"},Z1={class:"text-secondary"},X1={class:"d-flex py-3 px-2 onlyPrint"},ex={class:"row w-100"},tx={class:"text-secondary"},ix={class:"row"},nx=Ie(a.defineComponent({__name:"FilterValuesPanel",props:{filterValues:{default:null},filterTitles:{}},emits:["showFilter"],setup(n,{emit:e}){const t=n,i=a.ref(!1),r=a.ref([]);a.computed(()=>t.filterValues?Object.entries(t.filterValues).filter(([o,l])=>l).map(([o,l])=>({name:t.filterTitles[o]||o,value:String(l),key:o})):[]);function s(o){if(!o){r.value=[];return}r.value=Object.entries(o).filter(([l,u])=>u).map(([l,u])=>({name:t.filterTitles[l]||l,value:String(u),key:l}))}return a.watch(()=>t.filterValues,o=>{const l=a.isRef(o)?o.value:o;s(l)},{deep:!0,immediate:!0}),(o,l)=>(a.openBlock(),a.createElementBlock("div",q1,[a.createElementVNode("div",{style:a.normalizeStyle({overflow:"hidden",maxHeight:i.value?"initial":"83px"}),class:"d-flex py-3 px-2 noPrint"},[a.createElementVNode("div",$1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["mb-2",c===r.value.length-1?"col":"col-auto"]),key:u.key},[a.createElementVNode("div",Z1,a.toDisplayString(u.name)+":",1),a.createElementVNode("div",null,[a.createElementVNode("strong",null,a.toDisplayString(u.value),1)])],2))),128))]),a.createElementVNode("div",null,[a.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-right rounded",onClick:l[0]||(l[0]=u=>o.$emit("showFilter"))},[...l[2]||(l[2]=[a.createElementVNode("i",{class:"bi bi-chevron-right i-hidden"},null,-1)])])])],4),a.createElementVNode("div",X1,[a.createElementVNode("div",ex,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["mb-2",c===r.value.length-1?"col":"col-auto"]),key:u.key},[a.createElementVNode("div",tx,a.toDisplayString(u.name)+":",1),a.createElementVNode("div",null,[a.createElementVNode("strong",null,a.toDisplayString(u.value),1)])],2))),128))])]),a.createElementVNode("div",ix,[a.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-bottom hide-to-print",onClick:l[1]||(l[1]=u=>i.value=!i.value)},[a.createElementVNode("i",{class:a.normalizeClass({"bi lh-normal":!0,"bi-chevron-down":!i.value,"bi-chevron-up":i.value})},null,2)])])]))}}),[["__scopeId","data-v-5fb2b7d8"]]),bd=(n={})=>{n.hasOwnProperty("KEY")||(n.KEY="tables");const{KEY:e}=n;function t(o,l){const u=localStorage.getItem(e);let c=JSON.parse(u);return c={...c,[o]:l},localStorage.setItem(e,JSON.stringify(c)),!0}function i(o){return o?(localStorage.setItem(e,JSON.stringify(o)),!0):!1}function r(o){const l=localStorage.getItem(e),u=JSON.parse(l);return u?.hasOwnProperty(o)&&delete u[o],i(u),!0}function s(o){const l=localStorage.getItem(e);return(JSON.parse(l)||{})[o]||null}return{setItemStorage:t,removeItemStorage:r,getItemStorage:s}},rx=({localStorageKey:n=null,getAjaxUrl:e,getAjaxResponse:t,getColumns:i,tableOptions:r,initialFilters:s=()=>({empty:"empty"}),initialFilterTitles:o=()=>({empty:"empty"}),selectedQuickFilter:l=null})=>{const u=a.ref({}),c=a.ref(0),d=a.ref(""),f=a.ref(""),p=a.ref({}),h=a.ref(!1),k=a.ref(!1),C=a.ref(!1),A=a.ref(s()),w=a.ref(!1),{setItemStorage:m,removeItemStorage:D,getItemStorage:g}=bd(),M=()=>n==null?null:a.toValue(n),v="[object Object]";function x(){D(v)}function y($,P){const z=new Map($.map(ne=>[ne.field,ne]));return P.map(ne=>{const ae=z.get(ne.field);return ae?{...ne,visible:ae.visible,...ae.width!==void 0?{width:ae.width}:{},...ae.minWidth!==void 0?{minWidth:ae.minWidth}:{}}:ne})}x();async function S(){A.value=s(),p.value={}}function b($){const P=M();if(!P)return!1;m(P,$)}const T=a.readonly({...o()});function R($,P){p.value[$]=P}const L=a.computed(()=>Object.values(p.value).some(Boolean));function I(){c.value+=1}async function W($){if(!$||!$.options)return;const P=r.value.ajaxURL;P&&($.options.ajaxURL=P),r.value.columns&&($.options.columns=r.value.columns,$.setColumns(r.value.columns),await U($)),P&&$.replaceData(P)}async function U($){const P=typeof $.hideColumn=="function",z=typeof $.showColumn=="function";if(!P||!z){I();return}for(const ne of r.value.columns)ne.visible===!1?$.hideColumn(ne.field):$.showColumn(ne.field)}function H($){const P=M();if(!P)return!1;m(P,K($))}async function V($){const P=r.value?.paginationMode==="remote";if(!(P&&(!$||!$.replaceData))&&!(w.value||k.value)){k.value=!0;try{if(await Q(),w.value||(await a.nextTick(),w.value))return;if(!P){I();return}await W($),h.value=!1}finally{k.value=!1}}}function K($){return $.map(z=>{let ne=JSON.parse(JSON.stringify(z));return z.visible===!1&&(delete ne.width,delete ne.minWidth),ne})}function F($){const P=M();if(!P)return!1;m(P,K($))}function N(){const $={};for(const[P,z]of Object.entries({...A.value}))!z||z?.length<1||Array.isArray(z)&&(z[0]===null||z[0]===void 0||z[0]==="")||($[P]=z);return $}async function Q(){if(w.value)return;const $=e(),P=await t();if(w.value)return;const z=le();r.value={...r.value,ajaxURL:$,ajaxResponse:P,columns:z,ajaxParams:{...r.value.ajaxParams,per_page:r.value.paginationSize}}}const j=a.computed(()=>{let $=[];return r.value.columns.map(P=>{P.title&&$.push(P.visible)}),$.includes(!1)});async function J($,P){$.target.checked==!1?(d.value=P,f.value=""):(f.value=P,d.value="")}async function Z(){const $=M();D($),r.value.columns=le()}function le(){const $=M(),P=i({selectedQuickFilter:l?.value}),z=g($);return z?y(z,P):P}async function ue(){const $=M();D($),r.value.columns.map(P=>P.visible=!1),F(r.value.columns)}function Y($){r.value.columns=$;const P=M();P&&m(P,$)}function X(){r.value.columns=r.value.columns}return a.onBeforeUnmount(()=>{w.value=!0}),a.provide("setFilterParamsStrings",R),a.provide("selectedFilterTitles",T),a.provide("tableFilters",A),a.provide("filterModalVisibility",h),a.provide("resetFilters",S),a.provide("applyFilters",V),a.provide("editTableColumnsModalVisibility",C),a.provide("tableOptions",r),a.provide("editTableColumnVisibility",J),a.provide("isTableCoumnsHidden",j),a.provide("unselectAllTableColumnCheckboxes",ue),a.provide("selectAllTableColumnCheckboxes",Z),a.provide("handleColumnsChanged",Y),a.provide("handleColumnsApply",X),a.provide("table",u),{selectAllTableColumnCheckboxes:Z,unselectAllTableColumnCheckboxes:ue,isTableCoumnsHidden:j,editTableColumnVisibility:J,fetchData:Q,onHideColumn:F,getFilterData:N,applyFilters:V,reRenderTable:I,resetFilters:S,onTableRowMoved:b,onShowColumn:H,table:u,tableKey:c,columnHide:d,columnShow:f,selectedFilterTitles:T,setFilterParamsStrings:R,filterParamsStrings:p,isSelectedFiltersVisible:L,filterModalVisibility:h,editTableColumnsModalVisibility:C,tableFilters:A,tableOptions:r,handleColumnsChanged:Y,handleColumnsApply:X}};function vd(n){return n.map(e=>{const t=JSON.parse(JSON.stringify(e));return e.visible===!1&&(delete t.width,delete t.minWidth),t})}function yd(n){return n.filter(e=>e.visible===!0)}function wd(n,e){return n.map(t=>t.field===e?{...t,visible:!t.visible}:t)}function Dr(n){return n.map(e=>({...e,visible:e.title?!0:e.visible}))}function el(n){return n.map(e=>({...e,visible:e.title?!1:e.visible}))}function Tn(n){if(!Array.isArray(n))return console.warn("validateColumns: columns must be an array"),!1;for(const e of n){if(!e.field||typeof e.field!="string")return console.warn("validateColumns: column.field must be a non-empty string",e),!1;if(typeof e.visible!="boolean")return console.warn("validateColumns: column.visible must be a boolean",e),!1}return!0}function Cd(n){return n.some(e=>e.title&&!e.visible)}function Ad(n,e){return n.find(t=>t.field===e)}function Or(n,e,t){return n.map(i=>i.field===e?{...i,...t}:i)}const sx=Object.freeze(Object.defineProperty({__proto__:null,getColumnByField:Ad,getVisibleColumns:yd,hasHiddenColumns:Cd,hideAllColumns:el,prepareColumnsToSave:vd,resetColumnsToDefault:Dr,toggleColumnVisibility:wd,updateColumn:Or,validateColumns:Tn},Symbol.toStringTag,{value:"Module"}));function Ed(n){const{initialColumns:e,localStorageKey:t,tableOptions:i,autoSave:r=!0,onColumnsChange:s,onApply:o,validateOnChange:l=!0}=n;Tn(e)||console.error("useTableColumnsEnhanced: invalid initialColumns provided");const u=a.ref(!1),c=a.ref([...e]),d=a.ref(!1);if(t&&typeof window<"u")try{const H=localStorage.getItem(t);if(H){const V=JSON.parse(H);Tn(V)&&(c.value=V)}}catch(H){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",H)}const f=a.computed(()=>yd(c.value)),p=a.computed(()=>Cd(c.value)),h=a.computed(()=>c.value.length),k=a.computed(()=>f.value.length);function C(H){if(!(!t||typeof window>"u"||!r))try{const V=vd(H);localStorage.setItem(t,JSON.stringify(V))}catch(V){console.warn("useTableColumnsEnhanced: failed to save columns to localStorage",V)}}function A(){if(!t||typeof window>"u")return null;try{const H=localStorage.getItem(t);if(H){const V=JSON.parse(H);if(Tn(V))return V}}catch(H){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",H)}return null}function w(){if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(H){console.warn("useTableColumnsEnhanced: failed to clear localStorage",H)}}function m(H){if(l&&!Tn(H)){console.error("useTableColumnsEnhanced: invalid columns provided to updateColumns");return}c.value=[...H],C(H),s?.(H)}function D(H,V){const K=H.target,F=Or(c.value,V,{visible:K.checked});m(F)}function g(H){u.value=H}function M(H){const V=H||c.value;m(V),u.value=!1,o?.(V)}function v(){const H=Dr(c.value);m(H)}function x(){const H=el(c.value);m(H)}function y(H){const V=wd(c.value,H);m(V)}function S(H){const V=Or(c.value,H,{visible:!0});m(V)}function b(H){const V=Or(c.value,H,{visible:!1});m(V)}function T(){const H=Dr(e);m(H)}function R(){const H=Dr(c.value);m(H)}function L(){const H=el(c.value);m(H)}function I(H){return Ad(c.value,H)}function W(H){return I(H)?.visible??!1}function U(){i?.value&&(i.value.columns=c.value)}return a.watch(c,()=>{U()},{deep:!0}),a.watch(()=>e,H=>{d.value||(c.value=[...H],d.value=!0)},{deep:!0,immediate:!0}),d.value||(d.value=!0,U()),{columnsModalVisibility:u,tableColumns:c,visibleColumns:f,hasHidden:p,columnsCount:h,visibleCount:k,isInitialized:d,handleColumnsModalVisibility:g,handleColumnVisibilityChange:D,handleColumnsApply:M,handleColumnsSelectAll:v,handleColumnsUnselectAll:x,updateColumns:m,toggleColumn:y,showColumn:S,hideColumn:b,resetToDefault:T,showAll:R,hideAll:L,getColumn:I,isColumnVisible:W,saveToLocalStorage:C,loadFromLocalStorage:A,clearLocalStorage:w,syncWithTableOptions:U}}function ax(n){const{localStorageKey:e,getColumns:t,tableOptions:i,tableDefault:r,onColumnsChange:s,onApply:o}=n,l=Ed({initialColumns:t(),localStorageKey:e,tableOptions:i,autoSave:!0,onColumnsChange:h=>{s?.(h),r?.applyFilters&&r.applyFilters()},onApply:h=>{o?.(h),r?.applyFilters&&r.applyFilters()}});function u(h){console.log("useTableColumnsIntegration handleColumnsChanged called, received columns:",h),l.updateColumns(h)}function c(){console.log("useTableColumnsIntegration handleColumnsApply called"),l.handleColumnsApply()}function d(){if(r){if(r.onShowColumn){const h=r.onShowColumn;r.onShowColumn=k=>{console.log("useTableColumnsIntegration onShowColumn called with columns:",k),l.updateColumns(k),h?.(k)}}if(r.onHideColumn){const h=r.onHideColumn;r.onHideColumn=k=>{console.log("useTableColumnsIntegration onHideColumn called with columns:",k),l.updateColumns(k),h?.(k)}}}}function f(){i?.value&&(i.value.columns=l.tableColumns.value)}function p(){r?.tableOptions&&(r.tableOptions.columns=l.tableColumns.value)}return a.watch(()=>t(),h=>{console.log("useTableColumnsIntegration getColumns changed, updating columns:",h),l.updateColumns(h)},{deep:!0}),d(),{...l,handleColumnsChanged:u,handleColumnsApply:c,syncWithTableOptions:f,syncWithTable:p,setupTableDefaultIntegration:d}}function ox(n){const{tableColumns:e,tableOptions:t,tableDefault:i,onApply:r}=n;function s(l){console.log("createColumnHandlers handleColumnsChanged called, received columns:",l),e.value=l,t.value.columns=l,i?.tableOptions&&(i.tableOptions.columns=l)}function o(){console.log("createColumnHandlers handleColumnsApply called"),console.log("createColumnHandlers current tableColumns:",e.value),t.value.columns=e.value,i?.tableOptions&&(i.tableOptions.columns=e.value),r?.()}return{handleColumnsChanged:s,handleColumnsApply:o}}const lx=(n={})=>{const{navigate:e=C=>console.warn("useBreadcrumbs: navigate function not provided"),translate:t=C=>C,getCurrentRoute:i=()=>({path:"/",name:"home"}),maxItems:r=5,storageKey:s="breadcrumbs"}=n,o=a.ref([]);function l(C){e(C)}function u(C,A){if(!Array.isArray(C))return[];const w=JSON.parse(JSON.stringify(C));return w.length>A&&w.splice(0,w.length-A),w}function c(){const C=i(),A={path:C.path,name:C.name},w=o.value||[],m=w[w.length-1];if(JSON.stringify(m)===JSON.stringify(A))return!1;w.push(A),o.value=u(w,r),localStorage.setItem(s,JSON.stringify(o.value))}function d(){const C=JSON.parse(localStorage.getItem(s)||"[]");C?.length||c(),o.value=C}const f=a.computed(()=>o.value.map((C,A)=>({text:t(`routes.${C.name}`),href:C.path,isActive:A===o.value.length-1})));function p(){c()}function h(){o.value=[],localStorage.removeItem(s)}function k(C){const A=o.value||[];A.push(C),o.value=u(A,r),localStorage.setItem(s,JSON.stringify(o.value))}return a.onMounted(()=>{d()}),{goTo:l,crumbs:f,breadcrumbs:o,updateBreadcrumbs:p,clearBreadcrumbs:h,addBreadcrumb:k}};function ux(n){return n?.length?n.map(e=>typeof e=="string"?e:e?.name??"").filter(e=>!!e):[]}function cx(n){const e=a.computed(()=>{const t=a.toValue(n);return ux(t)});return t=>lr(t,e.value)}const ui={country:"country",region:"region",district:"district",locality:"locality",street:"street",house:"house",building:"building",apartment:"apartment"};function dx(n){return{countryLabel:n(ui.country),regionLabel:n(ui.region),districtLabel:n(ui.district),localityLabel:n(ui.locality),streetLabel:n(ui.street),houseLabel:n(ui.house),buildingLabel:n(ui.building),apartmentLabel:n(ui.apartment)}}const tl={expandAll:"accordion.expand_all",collapseAll:"accordion.collapse_all"};function hx(n){return{expandText:n(tl.expandAll),collapseText:n(tl.collapseAll)}}async function fx(n){const{logOutSSO:e,nextTick:t,navigateTo:i,redirect:r,onReset:s,redirectPath:o="/login",onError:l=c=>console.error(c)}=n,u=typeof e=="function"?e:async()=>{};try{await u()}catch(c){l(c)}finally{const c=r??i;if(r){s(),c(o);return}await t(()=>{s(),c(o)})}}const kd=n=>{if(typeof n=="string"&&n.length!==0&&!n.toLowerCase().includes("localhost"))return n},px=({origin:n,authCookieDomain:e,httpOnly:t})=>{const i=kd(e);return{path:"/",sameSite:"lax",secure:n?.startsWith("https://")??!1,...typeof t=="boolean"?{httpOnly:t}:{},...i?{domain:i}:{}}},Sd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";function xd(){const n=globalThis.crypto;if(!n)throw new Error("Web Crypto API is not available.");if(!n.getRandomValues)throw new Error("Web Crypto getRandomValues is not available.");if(!n.subtle?.digest)throw new Error("Web Crypto subtle digest is not available.");return n}function Rd(n){const e=xd(),t=new Uint8Array(n);e.getRandomValues(t);let i="";return t.forEach(r=>{i+=Sd[r%Sd.length]}),i}function mx(n){const e=new Uint8Array(n);let t="";return e.forEach(i=>{t+=String.fromCharCode(i)}),btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}function Md(n=64){if(!Number.isInteger(n)||n<43||n>128)throw new Error("PKCE code_verifier length must be between 43 and 128.");return Rd(n)}async function Td(n){const e=xd(),i=new TextEncoder().encode(n),r=await e.subtle.digest("SHA-256",i);return mx(r)}async function gx(n=64){const e=Md(n),t=await Td(e);return{codeVerifier:e,codeChallenge:t}}function bx(n=32){if(!Number.isInteger(n)||n<16||n>128)throw new Error("OAuth state length must be between 16 and 128.");return Rd(n)}function vx(n,e,t){return{current_page:e,data:[],first_page_url:n,from:0,last_page:1,last_page_url:n,links:[],next_page_url:null,path:n,per_page:t,prev_page_url:null,to:0,total:0}}function yx(n={}){const e=(i,r)=>i==null||i===""?[]:Array.isArray(i)?i.flatMap((s,o)=>e(s,r?`${r}[${o}]`:String(o))):typeof i=="object"?Object.entries(i).flatMap(([s,o])=>e(o,r?`${r}[${s}]`:s)):r?[{key:r,value:String(i)}]:[],t=i=>i==null||i===""?!0:Array.isArray(i)?i.length===0:typeof i=="object"?Object.keys(i).length===0:!1;return async(i,r,s)=>{const o=(r.method||"GET").toUpperCase();let l=i;if(o==="GET"&&s&&typeof s=="object"){const c=new URL(i,typeof window<"u"?window.location.origin:"http://localhost");Object.entries(s).forEach(([d,f])=>{if(t(f))return;e(f,d).forEach(({key:h,value:k})=>{c.searchParams.set(h,k)})}),l=c.toString()}const u=await fetch(l,r);if(u.status===401)throw n.onUnauthorized?.(u),u;if(u.status===404&&n.onNotFound)return n.onNotFound({url:l,params:s,response:u});if(!u.ok)throw u;return await u.json()}}function wx(n,e){return{[`${e}-${e}`]:{pagination:{first:n("table_pagination.first"),first_title:n("table_pagination.first_title"),last:n("table_pagination.last"),last_title:n("table_pagination.last_title"),prev:n("table_pagination.prev"),prev_title:n("table_pagination.prev_title"),next:n("table_pagination.next"),next_title:n("table_pagination.next_title"),all:n("table_pagination.all"),counter:{showing:n("table_pagination.showing"),of:n("table_pagination.of"),rows:n("table_pagination.rows"),pages:n("table_pagination.pages")}},data:{loading:n("table_pagination.loading"),error:n("table_pagination.error")}}}}const Dn="/api/services/handbook/overpass/",Cx=n=>({searchCountries:(e={})=>n(`${Dn}countries`,{method:"GET",params:e}),getRegionsByCountry:e=>n(`${Dn}countries/${e}/regions`,{method:"GET"}),getDistrictsByRegion:e=>n(`${Dn}regions/${e}/districts`,{method:"GET"}),getLocalitiesByDistrict:e=>n(`${Dn}districts/${e}/cities`,{method:"GET"}),getStreetsByLocality:e=>n(`${Dn}cities/${e}/streets`,{method:"GET"})});ee.ACCORDION_LOCALIZATION_KEYS=tl,ee.ADDRESS_FORM_TRANSLATIONS=ui,ee.AddButton=il,ee.AddressForm=sw,ee.AgeFromAgeTo=yw,ee.BooleanCheckbox=Nc,ee.Breadcrumbs=kA,ee.Card=vC,ee.CardInfo=FA,ee.Checkbox=ub,ee.ClearFormButton=jd,ee.CollapseButton=Nd,ee.CollapsedSidebarLink=Qc,ee.ColumnSubFilter=FS,ee.ConfirmationModal=Kw,ee.CustomInput=ur,ee.DefaultAccordion=mE,ee.DefaultButton=Fr,ee.DefaultDropDown=Po,ee.DefaultModal=Wc,ee.Divider=No,ee.EditTableColumns=Jo,ee.EditTableColumnsModalComponent=Uc,ee.ErrorMessageComponent=uE,ee.ExportButton=Id,ee.ExportComponent=Dh,ee.FilterValuesPanel=nx,ee.Flatpickr=Iy,ee.Footer=wC,ee.FormError=ki,ee.Header=PC,ee.HeaderSearchForm=jy,ee.Icon=Br,ee.KindCheckboxesAccordion=RE,ee.LanguageSelector=SA,ee.Logo=Gc,ee.MainComponent=gA,ee.MultiCheckbox=wy,ee.MultiInput=Sy,ee.MultipleQuickFilterComponent=i1,ee.PageCard=tE,ee.PageTitle=mC,ee.PasswordInput=sb,ee.PrintButton=Hd,ee.QuestionIcon=J1,ee.Sidebar=Kc,ee.SidebarLink=Yc,ee.Slider=Q1,ee.Spinner=Lr,ee.SubFilterToggleBtn=sd,ee.Table=TS,ee.TableAppliedFiltersStorage=_S,ee.TableColumnsButton=KS,ee.TableColumnsModal=JS,ee.TableCount=BS,ee.TableFilterModalComponent=iC,ee.TableQuickFilterComponent=HS,ee.Toast=Jc,ee.ToggleAllTableRowButtons=ZS,ee.ToggleButtons=Gd,ee.VSelect=Vt,ee.addDays=Da,ee.addMonths=Oa,ee.addYears=La,ee.areArraysEqual=Ja,ee.arrayToCutString=ja,ee.camelCase=Pa,ee.capitalize=_a,ee.chunk=Ya,ee.clamp=fo,ee.constants=Ko,ee.createAddressService=Cx,ee.createColumnHandlers=ox,ee.createEmptyRemotePageResponse=vx,ee.createTableAjaxRequestFunc=yx,ee.createTabulatorLangsFromT=wx,ee.cutString=za,ee.debounce=hn,ee.findAll=ha,ee.findOne=da,ee.firstToUppercase=Fa,ee.flattenObject=or,ee.formatDate=Ra,ee.formatMoney=Ma,ee.generateCodeChallenge=Td,ee.generateCodeVerifier=Md,ee.generateId=Xa,ee.generatePkcePair=gx,ee.generateState=bx,ee.getAccordionLocalization=hx,ee.getAddressFormLabels=dx,ee.getAuthCookieOptions=px,ee.getBrowserLocale=ga,ee.getDeclinationFromNumber=Ba,ee.getDeepCopyObject=oi,ee.getLocalStorage=so,ee.getNowDate=Ta,ee.getSessionStorage=lo,ee.getSharedCookieDomain=kd,ee.getSupportedLocales=nr,ee.getUniqueKey=pi,ee.getValueFromArr=ya,ee.getValueFromObjectItem=rr,ee.groupBy=Ua,ee.hasMatch=vo,ee.hasPermission=lr,ee.hasRole=bo,ee.helpers=Xg,ee.initEmailMask=Ca,ee.initInnMask=Ea,ee.initKppMask=ka,ee.initPassportMask=xa,ee.initPhoneMask=Aa,ee.initSnilsMask=Sa,ee.isArraysEqual=Ka,ee.isEqual=ar,ee.isObject=Qa,ee.isValidDate=sr,ee.isValidEmail=to,ee.isValidLocale=ba,ee.isValidPhone=io,ee.isValidUrl=no,ee.kebabCase=Na,ee.lerp=po,ee.maskDate=Va,ee.memoize=co,ee.mountSubFilter=zi,ee.omit=Za,ee.once=ho,ee.pick=$a,ee.prepareResponse=yo,ee.prepareSelectOptions=fa,ee.random=mo,ee.removeLocalStorage=ao,ee.removeSessionStorage=uo,ee.required=eo,ee.roundToDecimals=go,ee.runLogoutFlow=fx,ee.scrollToElement=ma,ee.scrollToError=pa,ee.setLocalStorage=ro,ee.setSessionStorage=oo,ee.snakeCase=Ia,ee.sortBy=Ga,ee.sumOfArrayNumbers=wa,ee.tableColumnsUtils=sx,ee.throttle=va,ee.truncate=Ha,ee.unflatenObject=qa,ee.unique=Wa,ee.useBreadcrumbs=lx,ee.usePermissionChecker=cx,ee.useTableColumns=qo,ee.useTableColumnsEnhanced=Ed,ee.useTableColumnsIntegration=ax,ee.useTableDefault=rx,ee.useTableStorage=bd,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})}));
|