@win2win/shared-ui 0.0.24 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,35 +1,27 @@
1
- (function(Zt,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(Zt=typeof globalThis<"u"?globalThis:Zt||self,i(Zt.W2WSharedUi={},Zt.Vue))})(this,function(Zt,i){"use strict";var Xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},li={exports:{}};/**
1
+ (function(Ht,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],i):(Ht=typeof globalThis<"u"?globalThis:Ht||self,i(Ht.W2WSharedUi={},Ht.Vue,Ht.Pinia))})(this,function(Ht,i,fa){"use strict";var je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ei={exports:{}};/**
2
2
  * @license
3
3
  * Lodash <https://lodash.com/>
4
4
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5
5
  * Released under MIT license <https://lodash.com/license>
6
6
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
7
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
- */li.exports,function(t,l){(function(){var o,u="4.17.21",s=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",g="Invalid `variable` option passed into `_.template`",C="__lodash_hash_undefined__",A=500,v="__lodash_placeholder__",x=1,k=2,_=4,B=1,W=2,O=1,G=2,U=4,D=8,Q=16,j=32,Y=64,I=128,le=256,P=512,T=30,V="...",w=800,Z=16,F=1,ae=2,se=3,ce=1/0,H=9007199254740991,ie=17976931348623157e292,ge=NaN,q=4294967295,R=q-1,oe=q>>>1,ve=[["ary",I],["bind",O],["bindKey",G],["curry",D],["curryRight",Q],["flip",P],["partial",j],["partialRight",Y],["rearg",le]],_e="[object Arguments]",K="[object Array]",ne="[object AsyncFunction]",Ee="[object Boolean]",X="[object Date]",Ne="[object DOMException]",ot="[object Error]",Nt="[object Function]",_t="[object GeneratorFunction]",nt="[object Map]",bt="[object Number]",en="[object Null]",ct="[object Object]",pn="[object Promise]",$r="[object Proxy]",$t="[object RegExp]",Fe="[object Set]",Ge="[object String]",Ft="[object Symbol]",fr="[object Undefined]",$n="[object WeakMap]",Ti="[object WeakSet]",tn="[object ArrayBuffer]",vn="[object DataView]",dr="[object Float32Array]",Dt="[object Float64Array]",Gt="[object Int8Array]",_n="[object Int16Array]",Fr="[object Int32Array]",Fn="[object Uint8Array]",Dn="[object Uint8ClampedArray]",hr="[object Uint16Array]",mr="[object Uint32Array]",Bi=/\b__p \+= '';/g,Ri=/\b(__p \+=) '' \+/g,Oi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dr=/&(?:amp|lt|gt|quot|#39);/g,qi=/[&<>"']/g,il=RegExp(Dr.source),Mi=RegExp(qi.source),ol=/<%-([\s\S]+?)%>/g,Vi=/<%([\s\S]+?)%>/g,zn=/<%=([\s\S]+?)%>/g,Un=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bn=/^\w*$/,ll=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zr=/[\\^$.*+?()[\]{}|]/g,al=RegExp(zr.source),Ur=/^\s+/,ul=/\s/,sl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,cl=/\{\n\/\* \[wrapped with (.+)\] \*/,fl=/,? & /,dl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yn=/[()=,{}\[\]\/\s]/,wn=/\\(\\)?/g,nn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rn=/\w*$/,Wr=/^[-+]0x[0-9a-f]+$/i,hl=/^0b[01]+$/i,Li=/^\[object .+?Constructor\]$/,Ii=/^0o[0-7]+$/i,Pi=/^(?:0|[1-9]\d*)$/,Ni=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,b=/($^)/,te=/['\n\r\u2028\u2029\\]/g,J="\\ud800-\\udfff",me="\\u0300-\\u036f",Oe="\\ufe20-\\ufe2f",Be="\\u20d0-\\u20ff",He=me+Oe+Be,Le="\\u2700-\\u27bf",gr="a-z\\xdf-\\xf6\\xf8-\\xff",lg="\\xac\\xb1\\xd7\\xf7",ag="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ug="\\u2000-\\u206f",sg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ps="A-Z\\xc0-\\xd6\\xd8-\\xde",vs="\\ufe0e\\ufe0f",_s=lg+ag+ug+sg,ml="['’]",cg="["+J+"]",bs="["+_s+"]",$i="["+He+"]",ys="\\d+",fg="["+Le+"]",ws="["+gr+"]",Ss="[^"+J+_s+ys+Le+gr+ps+"]",gl="\\ud83c[\\udffb-\\udfff]",dg="(?:"+$i+"|"+gl+")",xs="[^"+J+"]",pl="(?:\\ud83c[\\udde6-\\uddff]){2}",vl="[\\ud800-\\udbff][\\udc00-\\udfff]",pr="["+ps+"]",Cs="\\u200d",ks="(?:"+ws+"|"+Ss+")",hg="(?:"+pr+"|"+Ss+")",Es="(?:"+ml+"(?:d|ll|m|re|s|t|ve))?",As="(?:"+ml+"(?:D|LL|M|RE|S|T|VE))?",Ts=dg+"?",Bs="["+vs+"]?",mg="(?:"+Cs+"(?:"+[xs,pl,vl].join("|")+")"+Bs+Ts+")*",gg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rs=Bs+Ts+mg,vg="(?:"+[fg,pl,vl].join("|")+")"+Rs,_g="(?:"+[xs+$i+"?",$i,pl,vl,cg].join("|")+")",bg=RegExp(ml,"g"),yg=RegExp($i,"g"),_l=RegExp(gl+"(?="+gl+")|"+_g+Rs,"g"),wg=RegExp([pr+"?"+ws+"+"+Es+"(?="+[bs,pr,"$"].join("|")+")",hg+"+"+As+"(?="+[bs,pr+ks,"$"].join("|")+")",pr+"?"+ks+"+"+Es,pr+"+"+As,pg,gg,ys,vg].join("|"),"g"),Sg=RegExp("["+Cs+J+He+vs+"]"),xg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Cg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kg=-1,Ve={};Ve[dr]=Ve[Dt]=Ve[Gt]=Ve[_n]=Ve[Fr]=Ve[Fn]=Ve[Dn]=Ve[hr]=Ve[mr]=!0,Ve[_e]=Ve[K]=Ve[tn]=Ve[Ee]=Ve[vn]=Ve[X]=Ve[ot]=Ve[Nt]=Ve[nt]=Ve[bt]=Ve[ct]=Ve[$t]=Ve[Fe]=Ve[Ge]=Ve[$n]=!1;var Me={};Me[_e]=Me[K]=Me[tn]=Me[vn]=Me[Ee]=Me[X]=Me[dr]=Me[Dt]=Me[Gt]=Me[_n]=Me[Fr]=Me[nt]=Me[bt]=Me[ct]=Me[$t]=Me[Fe]=Me[Ge]=Me[Ft]=Me[Fn]=Me[Dn]=Me[hr]=Me[mr]=!0,Me[ot]=Me[Nt]=Me[$n]=!1;var Eg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ag={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Tg={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Bg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Rg=parseFloat,Og=parseInt,Os=typeof Xe=="object"&&Xe&&Xe.Object===Object&&Xe,qg=typeof self=="object"&&self&&self.Object===Object&&self,et=Os||qg||Function("return this")(),bl=l&&!l.nodeType&&l,Wn=bl&&!0&&t&&!t.nodeType&&t,qs=Wn&&Wn.exports===bl,yl=qs&&Os.process,Tt=function(){try{var S=Wn&&Wn.require&&Wn.require("util").types;return S||yl&&yl.binding&&yl.binding("util")}catch{}}(),Ms=Tt&&Tt.isArrayBuffer,Vs=Tt&&Tt.isDate,Ls=Tt&&Tt.isMap,Is=Tt&&Tt.isRegExp,Ps=Tt&&Tt.isSet,Ns=Tt&&Tt.isTypedArray;function yt(S,L,M){switch(M.length){case 0:return S.call(L);case 1:return S.call(L,M[0]);case 2:return S.call(L,M[0],M[1]);case 3:return S.call(L,M[0],M[1],M[2])}return S.apply(L,M)}function Mg(S,L,M,re){for(var pe=-1,Ae=S==null?0:S.length;++pe<Ae;){var je=S[pe];L(re,je,M(je),S)}return re}function Bt(S,L){for(var M=-1,re=S==null?0:S.length;++M<re&&L(S[M],M,S)!==!1;);return S}function Vg(S,L){for(var M=S==null?0:S.length;M--&&L(S[M],M,S)!==!1;);return S}function $s(S,L){for(var M=-1,re=S==null?0:S.length;++M<re;)if(!L(S[M],M,S))return!1;return!0}function Sn(S,L){for(var M=-1,re=S==null?0:S.length,pe=0,Ae=[];++M<re;){var je=S[M];L(je,M,S)&&(Ae[pe++]=je)}return Ae}function Fi(S,L){var M=S==null?0:S.length;return!!M&&vr(S,L,0)>-1}function wl(S,L,M){for(var re=-1,pe=S==null?0:S.length;++re<pe;)if(M(L,S[re]))return!0;return!1}function Ie(S,L){for(var M=-1,re=S==null?0:S.length,pe=Array(re);++M<re;)pe[M]=L(S[M],M,S);return pe}function xn(S,L){for(var M=-1,re=L.length,pe=S.length;++M<re;)S[pe+M]=L[M];return S}function Sl(S,L,M,re){var pe=-1,Ae=S==null?0:S.length;for(re&&Ae&&(M=S[++pe]);++pe<Ae;)M=L(M,S[pe],pe,S);return M}function Lg(S,L,M,re){var pe=S==null?0:S.length;for(re&&pe&&(M=S[--pe]);pe--;)M=L(M,S[pe],pe,S);return M}function xl(S,L){for(var M=-1,re=S==null?0:S.length;++M<re;)if(L(S[M],M,S))return!0;return!1}var Ig=Cl("length");function Pg(S){return S.split("")}function Ng(S){return S.match(dl)||[]}function Fs(S,L,M){var re;return M(S,function(pe,Ae,je){if(L(pe,Ae,je))return re=Ae,!1}),re}function Di(S,L,M,re){for(var pe=S.length,Ae=M+(re?1:-1);re?Ae--:++Ae<pe;)if(L(S[Ae],Ae,S))return Ae;return-1}function vr(S,L,M){return L===L?Yg(S,L,M):Di(S,Ds,M)}function $g(S,L,M,re){for(var pe=M-1,Ae=S.length;++pe<Ae;)if(re(S[pe],L))return pe;return-1}function Ds(S){return S!==S}function zs(S,L){var M=S==null?0:S.length;return M?El(S,L)/M:ge}function Cl(S){return function(L){return L==null?o:L[S]}}function kl(S){return function(L){return S==null?o:S[L]}}function Us(S,L,M,re,pe){return pe(S,function(Ae,je,qe){M=re?(re=!1,Ae):L(M,Ae,je,qe)}),M}function Fg(S,L){var M=S.length;for(S.sort(L);M--;)S[M]=S[M].value;return S}function El(S,L){for(var M,re=-1,pe=S.length;++re<pe;){var Ae=L(S[re]);Ae!==o&&(M=M===o?Ae:M+Ae)}return M}function Al(S,L){for(var M=-1,re=Array(S);++M<S;)re[M]=L(M);return re}function Dg(S,L){return Ie(L,function(M){return[M,S[M]]})}function Ws(S){return S&&S.slice(0,js(S)+1).replace(Ur,"")}function wt(S){return function(L){return S(L)}}function Tl(S,L){return Ie(L,function(M){return S[M]})}function Hr(S,L){return S.has(L)}function Hs(S,L){for(var M=-1,re=S.length;++M<re&&vr(L,S[M],0)>-1;);return M}function Ks(S,L){for(var M=S.length;M--&&vr(L,S[M],0)>-1;);return M}function zg(S,L){for(var M=S.length,re=0;M--;)S[M]===L&&++re;return re}var Ug=kl(Eg),Wg=kl(Ag);function Hg(S){return"\\"+Bg[S]}function Kg(S,L){return S==null?o:S[L]}function _r(S){return Sg.test(S)}function Gg(S){return xg.test(S)}function jg(S){for(var L,M=[];!(L=S.next()).done;)M.push(L.value);return M}function Bl(S){var L=-1,M=Array(S.size);return S.forEach(function(re,pe){M[++L]=[pe,re]}),M}function Gs(S,L){return function(M){return S(L(M))}}function Cn(S,L){for(var M=-1,re=S.length,pe=0,Ae=[];++M<re;){var je=S[M];(je===L||je===v)&&(S[M]=v,Ae[pe++]=M)}return Ae}function zi(S){var L=-1,M=Array(S.size);return S.forEach(function(re){M[++L]=re}),M}function Qg(S){var L=-1,M=Array(S.size);return S.forEach(function(re){M[++L]=[re,re]}),M}function Yg(S,L,M){for(var re=M-1,pe=S.length;++re<pe;)if(S[re]===L)return re;return-1}function Zg(S,L,M){for(var re=M+1;re--;)if(S[re]===L)return re;return re}function br(S){return _r(S)?Jg(S):Ig(S)}function zt(S){return _r(S)?ep(S):Pg(S)}function js(S){for(var L=S.length;L--&&ul.test(S.charAt(L)););return L}var Xg=kl(Tg);function Jg(S){for(var L=_l.lastIndex=0;_l.test(S);)++L;return L}function ep(S){return S.match(_l)||[]}function tp(S){return S.match(wg)||[]}var np=function S(L){L=L==null?et:yr.defaults(et.Object(),L,yr.pick(et,Cg));var M=L.Array,re=L.Date,pe=L.Error,Ae=L.Function,je=L.Math,qe=L.Object,Rl=L.RegExp,rp=L.String,Rt=L.TypeError,Ui=M.prototype,ip=Ae.prototype,wr=qe.prototype,Wi=L["__core-js_shared__"],Hi=ip.toString,Re=wr.hasOwnProperty,op=0,Qs=function(){var e=/[^.]+$/.exec(Wi&&Wi.keys&&Wi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ki=wr.toString,lp=Hi.call(qe),ap=et._,up=Rl("^"+Hi.call(Re).replace(zr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gi=qs?L.Buffer:o,kn=L.Symbol,ji=L.Uint8Array,Ys=Gi?Gi.allocUnsafe:o,Qi=Gs(qe.getPrototypeOf,qe),Zs=qe.create,Xs=wr.propertyIsEnumerable,Yi=Ui.splice,Js=kn?kn.isConcatSpreadable:o,Kr=kn?kn.iterator:o,Hn=kn?kn.toStringTag:o,Zi=function(){try{var e=Yn(qe,"defineProperty");return e({},"",{}),e}catch{}}(),sp=L.clearTimeout!==et.clearTimeout&&L.clearTimeout,cp=re&&re.now!==et.Date.now&&re.now,fp=L.setTimeout!==et.setTimeout&&L.setTimeout,Xi=je.ceil,Ji=je.floor,Ol=qe.getOwnPropertySymbols,dp=Gi?Gi.isBuffer:o,ec=L.isFinite,hp=Ui.join,mp=Gs(qe.keys,qe),Qe=je.max,rt=je.min,gp=re.now,pp=L.parseInt,tc=je.random,vp=Ui.reverse,ql=Yn(L,"DataView"),Gr=Yn(L,"Map"),Ml=Yn(L,"Promise"),Sr=Yn(L,"Set"),jr=Yn(L,"WeakMap"),Qr=Yn(qe,"create"),eo=jr&&new jr,xr={},_p=Zn(ql),bp=Zn(Gr),yp=Zn(Ml),wp=Zn(Sr),Sp=Zn(jr),to=kn?kn.prototype:o,Yr=to?to.valueOf:o,nc=to?to.toString:o;function d(e){if(De(e)&&!be(e)&&!(e instanceof Ce)){if(e instanceof Ot)return e;if(Re.call(e,"__wrapped__"))return rf(e)}return new Ot(e)}var Cr=function(){function e(){}return function(n){if(!$e(n))return{};if(Zs)return Zs(n);e.prototype=n;var r=new e;return e.prototype=o,r}}();function no(){}function Ot(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=o}d.templateSettings={escape:ol,evaluate:Vi,interpolate:zn,variable:"",imports:{_:d}},d.prototype=no.prototype,d.prototype.constructor=d,Ot.prototype=Cr(no.prototype),Ot.prototype.constructor=Ot;function Ce(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function xp(){var e=new Ce(this.__wrapped__);return e.__actions__=ft(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ft(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ft(this.__views__),e}function Cp(){if(this.__filtered__){var e=new Ce(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function kp(){var e=this.__wrapped__.value(),n=this.__dir__,r=be(e),a=n<0,c=r?e.length:0,h=Pv(0,c,this.__views__),p=h.start,y=h.end,E=y-p,N=a?y:p-1,$=this.__iteratees__,z=$.length,ee=0,ue=rt(E,this.__takeCount__);if(!r||!a&&c==E&&ue==E)return Ec(e,this.__actions__);var de=[];e:for(;E--&&ee<ue;){N+=n;for(var we=-1,he=e[N];++we<z;){var xe=$[we],ke=xe.iteratee,Ct=xe.type,ut=ke(he);if(Ct==ae)he=ut;else if(!ut){if(Ct==F)continue e;break e}}de[ee++]=he}return de}Ce.prototype=Cr(no.prototype),Ce.prototype.constructor=Ce;function Kn(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}function Ep(){this.__data__=Qr?Qr(null):{},this.size=0}function Ap(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function Tp(e){var n=this.__data__;if(Qr){var r=n[e];return r===C?o:r}return Re.call(n,e)?n[e]:o}function Bp(e){var n=this.__data__;return Qr?n[e]!==o:Re.call(n,e)}function Rp(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qr&&n===o?C:n,this}Kn.prototype.clear=Ep,Kn.prototype.delete=Ap,Kn.prototype.get=Tp,Kn.prototype.has=Bp,Kn.prototype.set=Rp;function on(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}function Op(){this.__data__=[],this.size=0}function qp(e){var n=this.__data__,r=ro(n,e);if(r<0)return!1;var a=n.length-1;return r==a?n.pop():Yi.call(n,r,1),--this.size,!0}function Mp(e){var n=this.__data__,r=ro(n,e);return r<0?o:n[r][1]}function Vp(e){return ro(this.__data__,e)>-1}function Lp(e,n){var r=this.__data__,a=ro(r,e);return a<0?(++this.size,r.push([e,n])):r[a][1]=n,this}on.prototype.clear=Op,on.prototype.delete=qp,on.prototype.get=Mp,on.prototype.has=Vp,on.prototype.set=Lp;function ln(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}function Ip(){this.size=0,this.__data__={hash:new Kn,map:new(Gr||on),string:new Kn}}function Pp(e){var n=po(this,e).delete(e);return this.size-=n?1:0,n}function Np(e){return po(this,e).get(e)}function $p(e){return po(this,e).has(e)}function Fp(e,n){var r=po(this,e),a=r.size;return r.set(e,n),this.size+=r.size==a?0:1,this}ln.prototype.clear=Ip,ln.prototype.delete=Pp,ln.prototype.get=Np,ln.prototype.has=$p,ln.prototype.set=Fp;function Gn(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new ln;++n<r;)this.add(e[n])}function Dp(e){return this.__data__.set(e,C),this}function zp(e){return this.__data__.has(e)}Gn.prototype.add=Gn.prototype.push=Dp,Gn.prototype.has=zp;function Ut(e){var n=this.__data__=new on(e);this.size=n.size}function Up(){this.__data__=new on,this.size=0}function Wp(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}function Hp(e){return this.__data__.get(e)}function Kp(e){return this.__data__.has(e)}function Gp(e,n){var r=this.__data__;if(r instanceof on){var a=r.__data__;if(!Gr||a.length<s-1)return a.push([e,n]),this.size=++r.size,this;r=this.__data__=new ln(a)}return r.set(e,n),this.size=r.size,this}Ut.prototype.clear=Up,Ut.prototype.delete=Wp,Ut.prototype.get=Hp,Ut.prototype.has=Kp,Ut.prototype.set=Gp;function rc(e,n){var r=be(e),a=!r&&Xn(e),c=!r&&!a&&Rn(e),h=!r&&!a&&!c&&Tr(e),p=r||a||c||h,y=p?Al(e.length,rp):[],E=y.length;for(var N in e)(n||Re.call(e,N))&&!(p&&(N=="length"||c&&(N=="offset"||N=="parent")||h&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||cn(N,E)))&&y.push(N);return y}function ic(e){var n=e.length;return n?e[Wl(0,n-1)]:o}function jp(e,n){return vo(ft(e),jn(n,0,e.length))}function Qp(e){return vo(ft(e))}function Vl(e,n,r){(r!==o&&!Wt(e[n],r)||r===o&&!(n in e))&&an(e,n,r)}function Zr(e,n,r){var a=e[n];(!(Re.call(e,n)&&Wt(a,r))||r===o&&!(n in e))&&an(e,n,r)}function ro(e,n){for(var r=e.length;r--;)if(Wt(e[r][0],n))return r;return-1}function Yp(e,n,r,a){return En(e,function(c,h,p){n(a,c,r(c),p)}),a}function oc(e,n){return e&&Qt(n,Ze(n),e)}function Zp(e,n){return e&&Qt(n,ht(n),e)}function an(e,n,r){n=="__proto__"&&Zi?Zi(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}function Ll(e,n){for(var r=-1,a=n.length,c=M(a),h=e==null;++r<a;)c[r]=h?o:ga(e,n[r]);return c}function jn(e,n,r){return e===e&&(r!==o&&(e=e<=r?e:r),n!==o&&(e=e>=n?e:n)),e}function qt(e,n,r,a,c,h){var p,y=n&x,E=n&k,N=n&_;if(r&&(p=c?r(e,a,c,h):r(e)),p!==o)return p;if(!$e(e))return e;var $=be(e);if($){if(p=$v(e),!y)return ft(e,p)}else{var z=it(e),ee=z==Nt||z==_t;if(Rn(e))return Bc(e,y);if(z==ct||z==_e||ee&&!c){if(p=E||ee?{}:jc(e),!y)return E?Tv(e,Zp(p,e)):Av(e,oc(p,e))}else{if(!Me[z])return c?e:{};p=Fv(e,z,y)}}h||(h=new Ut);var ue=h.get(e);if(ue)return ue;h.set(e,p),Cf(e)?e.forEach(function(he){p.add(qt(he,n,r,he,e,h))}):Sf(e)&&e.forEach(function(he,xe){p.set(xe,qt(he,n,r,xe,e,h))});var de=N?E?ta:ea:E?ht:Ze,we=$?o:de(e);return Bt(we||e,function(he,xe){we&&(xe=he,he=e[xe]),Zr(p,xe,qt(he,n,r,xe,e,h))}),p}function Xp(e){var n=Ze(e);return function(r){return lc(r,e,n)}}function lc(e,n,r){var a=r.length;if(e==null)return!a;for(e=qe(e);a--;){var c=r[a],h=n[c],p=e[c];if(p===o&&!(c in e)||!h(p))return!1}return!0}function ac(e,n,r){if(typeof e!="function")throw new Rt(m);return ii(function(){e.apply(o,r)},n)}function Xr(e,n,r,a){var c=-1,h=Fi,p=!0,y=e.length,E=[],N=n.length;if(!y)return E;r&&(n=Ie(n,wt(r))),a?(h=wl,p=!1):n.length>=s&&(h=Hr,p=!1,n=new Gn(n));e:for(;++c<y;){var $=e[c],z=r==null?$:r($);if($=a||$!==0?$:0,p&&z===z){for(var ee=N;ee--;)if(n[ee]===z)continue e;E.push($)}else h(n,z,a)||E.push($)}return E}var En=Vc(jt),uc=Vc(Pl,!0);function Jp(e,n){var r=!0;return En(e,function(a,c,h){return r=!!n(a,c,h),r}),r}function io(e,n,r){for(var a=-1,c=e.length;++a<c;){var h=e[a],p=n(h);if(p!=null&&(y===o?p===p&&!xt(p):r(p,y)))var y=p,E=h}return E}function ev(e,n,r,a){var c=e.length;for(r=ye(r),r<0&&(r=-r>c?0:c+r),a=a===o||a>c?c:ye(a),a<0&&(a+=c),a=r>a?0:Ef(a);r<a;)e[r++]=n;return e}function sc(e,n){var r=[];return En(e,function(a,c,h){n(a,c,h)&&r.push(a)}),r}function tt(e,n,r,a,c){var h=-1,p=e.length;for(r||(r=zv),c||(c=[]);++h<p;){var y=e[h];n>0&&r(y)?n>1?tt(y,n-1,r,a,c):xn(c,y):a||(c[c.length]=y)}return c}var Il=Lc(),cc=Lc(!0);function jt(e,n){return e&&Il(e,n,Ze)}function Pl(e,n){return e&&cc(e,n,Ze)}function oo(e,n){return Sn(n,function(r){return fn(e[r])})}function Qn(e,n){n=Tn(n,e);for(var r=0,a=n.length;e!=null&&r<a;)e=e[Yt(n[r++])];return r&&r==a?e:o}function fc(e,n,r){var a=n(e);return be(e)?a:xn(a,r(e))}function lt(e){return e==null?e===o?fr:en:Hn&&Hn in qe(e)?Iv(e):Qv(e)}function Nl(e,n){return e>n}function tv(e,n){return e!=null&&Re.call(e,n)}function nv(e,n){return e!=null&&n in qe(e)}function rv(e,n,r){return e>=rt(n,r)&&e<Qe(n,r)}function $l(e,n,r){for(var a=r?wl:Fi,c=e[0].length,h=e.length,p=h,y=M(h),E=1/0,N=[];p--;){var $=e[p];p&&n&&($=Ie($,wt(n))),E=rt($.length,E),y[p]=!r&&(n||c>=120&&$.length>=120)?new Gn(p&&$):o}$=e[0];var z=-1,ee=y[0];e:for(;++z<c&&N.length<E;){var ue=$[z],de=n?n(ue):ue;if(ue=r||ue!==0?ue:0,!(ee?Hr(ee,de):a(N,de,r))){for(p=h;--p;){var we=y[p];if(!(we?Hr(we,de):a(e[p],de,r)))continue e}ee&&ee.push(de),N.push(ue)}}return N}function iv(e,n,r,a){return jt(e,function(c,h,p){n(a,r(c),h,p)}),a}function Jr(e,n,r){n=Tn(n,e),e=Xc(e,n);var a=e==null?e:e[Yt(Vt(n))];return a==null?o:yt(a,e,r)}function dc(e){return De(e)&&lt(e)==_e}function ov(e){return De(e)&&lt(e)==tn}function lv(e){return De(e)&&lt(e)==X}function ei(e,n,r,a,c){return e===n?!0:e==null||n==null||!De(e)&&!De(n)?e!==e&&n!==n:av(e,n,r,a,ei,c)}function av(e,n,r,a,c,h){var p=be(e),y=be(n),E=p?K:it(e),N=y?K:it(n);E=E==_e?ct:E,N=N==_e?ct:N;var $=E==ct,z=N==ct,ee=E==N;if(ee&&Rn(e)){if(!Rn(n))return!1;p=!0,$=!1}if(ee&&!$)return h||(h=new Ut),p||Tr(e)?Hc(e,n,r,a,c,h):Vv(e,n,E,r,a,c,h);if(!(r&B)){var ue=$&&Re.call(e,"__wrapped__"),de=z&&Re.call(n,"__wrapped__");if(ue||de){var we=ue?e.value():e,he=de?n.value():n;return h||(h=new Ut),c(we,he,r,a,h)}}return ee?(h||(h=new Ut),Lv(e,n,r,a,c,h)):!1}function uv(e){return De(e)&&it(e)==nt}function Fl(e,n,r,a){var c=r.length,h=c,p=!a;if(e==null)return!h;for(e=qe(e);c--;){var y=r[c];if(p&&y[2]?y[1]!==e[y[0]]:!(y[0]in e))return!1}for(;++c<h;){y=r[c];var E=y[0],N=e[E],$=y[1];if(p&&y[2]){if(N===o&&!(E in e))return!1}else{var z=new Ut;if(a)var ee=a(N,$,E,e,n,z);if(!(ee===o?ei($,N,B|W,a,z):ee))return!1}}return!0}function hc(e){if(!$e(e)||Wv(e))return!1;var n=fn(e)?up:Li;return n.test(Zn(e))}function sv(e){return De(e)&&lt(e)==$t}function cv(e){return De(e)&&it(e)==Fe}function fv(e){return De(e)&&xo(e.length)&&!!Ve[lt(e)]}function mc(e){return typeof e=="function"?e:e==null?mt:typeof e=="object"?be(e)?vc(e[0],e[1]):pc(e):Pf(e)}function Dl(e){if(!ri(e))return mp(e);var n=[];for(var r in qe(e))Re.call(e,r)&&r!="constructor"&&n.push(r);return n}function dv(e){if(!$e(e))return jv(e);var n=ri(e),r=[];for(var a in e)a=="constructor"&&(n||!Re.call(e,a))||r.push(a);return r}function zl(e,n){return e<n}function gc(e,n){var r=-1,a=dt(e)?M(e.length):[];return En(e,function(c,h,p){a[++r]=n(c,h,p)}),a}function pc(e){var n=ra(e);return n.length==1&&n[0][2]?Yc(n[0][0],n[0][1]):function(r){return r===e||Fl(r,e,n)}}function vc(e,n){return oa(e)&&Qc(n)?Yc(Yt(e),n):function(r){var a=ga(r,e);return a===o&&a===n?pa(r,e):ei(n,a,B|W)}}function lo(e,n,r,a,c){e!==n&&Il(n,function(h,p){if(c||(c=new Ut),$e(h))hv(e,n,p,r,lo,a,c);else{var y=a?a(aa(e,p),h,p+"",e,n,c):o;y===o&&(y=h),Vl(e,p,y)}},ht)}function hv(e,n,r,a,c,h,p){var y=aa(e,r),E=aa(n,r),N=p.get(E);if(N){Vl(e,r,N);return}var $=h?h(y,E,r+"",e,n,p):o,z=$===o;if(z){var ee=be(E),ue=!ee&&Rn(E),de=!ee&&!ue&&Tr(E);$=E,ee||ue||de?be(y)?$=y:ze(y)?$=ft(y):ue?(z=!1,$=Bc(E,!0)):de?(z=!1,$=Rc(E,!0)):$=[]:oi(E)||Xn(E)?($=y,Xn(y)?$=Af(y):(!$e(y)||fn(y))&&($=jc(E))):z=!1}z&&(p.set(E,$),c($,E,a,h,p),p.delete(E)),Vl(e,r,$)}function _c(e,n){var r=e.length;if(r)return n+=n<0?r:0,cn(n,r)?e[n]:o}function bc(e,n,r){n.length?n=Ie(n,function(h){return be(h)?function(p){return Qn(p,h.length===1?h[0]:h)}:h}):n=[mt];var a=-1;n=Ie(n,wt(fe()));var c=gc(e,function(h,p,y){var E=Ie(n,function(N){return N(h)});return{criteria:E,index:++a,value:h}});return Fg(c,function(h,p){return Ev(h,p,r)})}function mv(e,n){return yc(e,n,function(r,a){return pa(e,a)})}function yc(e,n,r){for(var a=-1,c=n.length,h={};++a<c;){var p=n[a],y=Qn(e,p);r(y,p)&&ti(h,Tn(p,e),y)}return h}function gv(e){return function(n){return Qn(n,e)}}function Ul(e,n,r,a){var c=a?$g:vr,h=-1,p=n.length,y=e;for(e===n&&(n=ft(n)),r&&(y=Ie(e,wt(r)));++h<p;)for(var E=0,N=n[h],$=r?r(N):N;(E=c(y,$,E,a))>-1;)y!==e&&Yi.call(y,E,1),Yi.call(e,E,1);return e}function wc(e,n){for(var r=e?n.length:0,a=r-1;r--;){var c=n[r];if(r==a||c!==h){var h=c;cn(c)?Yi.call(e,c,1):Gl(e,c)}}return e}function Wl(e,n){return e+Ji(tc()*(n-e+1))}function pv(e,n,r,a){for(var c=-1,h=Qe(Xi((n-e)/(r||1)),0),p=M(h);h--;)p[a?h:++c]=e,e+=r;return p}function Hl(e,n){var r="";if(!e||n<1||n>H)return r;do n%2&&(r+=e),n=Ji(n/2),n&&(e+=e);while(n);return r}function Se(e,n){return ua(Zc(e,n,mt),e+"")}function vv(e){return ic(Br(e))}function _v(e,n){var r=Br(e);return vo(r,jn(n,0,r.length))}function ti(e,n,r,a){if(!$e(e))return e;n=Tn(n,e);for(var c=-1,h=n.length,p=h-1,y=e;y!=null&&++c<h;){var E=Yt(n[c]),N=r;if(E==="__proto__"||E==="constructor"||E==="prototype")return e;if(c!=p){var $=y[E];N=a?a($,E,y):o,N===o&&(N=$e($)?$:cn(n[c+1])?[]:{})}Zr(y,E,N),y=y[E]}return e}var Sc=eo?function(e,n){return eo.set(e,n),e}:mt,bv=Zi?function(e,n){return Zi(e,"toString",{configurable:!0,enumerable:!1,value:_a(n),writable:!0})}:mt;function yv(e){return vo(Br(e))}function Mt(e,n,r){var a=-1,c=e.length;n<0&&(n=-n>c?0:c+n),r=r>c?c:r,r<0&&(r+=c),c=n>r?0:r-n>>>0,n>>>=0;for(var h=M(c);++a<c;)h[a]=e[a+n];return h}function wv(e,n){var r;return En(e,function(a,c,h){return r=n(a,c,h),!r}),!!r}function ao(e,n,r){var a=0,c=e==null?a:e.length;if(typeof n=="number"&&n===n&&c<=oe){for(;a<c;){var h=a+c>>>1,p=e[h];p!==null&&!xt(p)&&(r?p<=n:p<n)?a=h+1:c=h}return c}return Kl(e,n,mt,r)}function Kl(e,n,r,a){var c=0,h=e==null?0:e.length;if(h===0)return 0;n=r(n);for(var p=n!==n,y=n===null,E=xt(n),N=n===o;c<h;){var $=Ji((c+h)/2),z=r(e[$]),ee=z!==o,ue=z===null,de=z===z,we=xt(z);if(p)var he=a||de;else N?he=de&&(a||ee):y?he=de&&ee&&(a||!ue):E?he=de&&ee&&!ue&&(a||!we):ue||we?he=!1:he=a?z<=n:z<n;he?c=$+1:h=$}return rt(h,R)}function xc(e,n){for(var r=-1,a=e.length,c=0,h=[];++r<a;){var p=e[r],y=n?n(p):p;if(!r||!Wt(y,E)){var E=y;h[c++]=p===0?0:p}}return h}function Cc(e){return typeof e=="number"?e:xt(e)?ge:+e}function St(e){if(typeof e=="string")return e;if(be(e))return Ie(e,St)+"";if(xt(e))return nc?nc.call(e):"";var n=e+"";return n=="0"&&1/e==-ce?"-0":n}function An(e,n,r){var a=-1,c=Fi,h=e.length,p=!0,y=[],E=y;if(r)p=!1,c=wl;else if(h>=s){var N=n?null:qv(e);if(N)return zi(N);p=!1,c=Hr,E=new Gn}else E=n?[]:y;e:for(;++a<h;){var $=e[a],z=n?n($):$;if($=r||$!==0?$:0,p&&z===z){for(var ee=E.length;ee--;)if(E[ee]===z)continue e;n&&E.push(z),y.push($)}else c(E,z,r)||(E!==y&&E.push(z),y.push($))}return y}function Gl(e,n){return n=Tn(n,e),e=Xc(e,n),e==null||delete e[Yt(Vt(n))]}function kc(e,n,r,a){return ti(e,n,r(Qn(e,n)),a)}function uo(e,n,r,a){for(var c=e.length,h=a?c:-1;(a?h--:++h<c)&&n(e[h],h,e););return r?Mt(e,a?0:h,a?h+1:c):Mt(e,a?h+1:0,a?c:h)}function Ec(e,n){var r=e;return r instanceof Ce&&(r=r.value()),Sl(n,function(a,c){return c.func.apply(c.thisArg,xn([a],c.args))},r)}function jl(e,n,r){var a=e.length;if(a<2)return a?An(e[0]):[];for(var c=-1,h=M(a);++c<a;)for(var p=e[c],y=-1;++y<a;)y!=c&&(h[c]=Xr(h[c]||p,e[y],n,r));return An(tt(h,1),n,r)}function Ac(e,n,r){for(var a=-1,c=e.length,h=n.length,p={};++a<c;){var y=a<h?n[a]:o;r(p,e[a],y)}return p}function Ql(e){return ze(e)?e:[]}function Yl(e){return typeof e=="function"?e:mt}function Tn(e,n){return be(e)?e:oa(e,n)?[e]:nf(Te(e))}var Sv=Se;function Bn(e,n,r){var a=e.length;return r=r===o?a:r,!n&&r>=a?e:Mt(e,n,r)}var Tc=sp||function(e){return et.clearTimeout(e)};function Bc(e,n){if(n)return e.slice();var r=e.length,a=Ys?Ys(r):new e.constructor(r);return e.copy(a),a}function Zl(e){var n=new e.constructor(e.byteLength);return new ji(n).set(new ji(e)),n}function xv(e,n){var r=n?Zl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Cv(e){var n=new e.constructor(e.source,rn.exec(e));return n.lastIndex=e.lastIndex,n}function kv(e){return Yr?qe(Yr.call(e)):{}}function Rc(e,n){var r=n?Zl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Oc(e,n){if(e!==n){var r=e!==o,a=e===null,c=e===e,h=xt(e),p=n!==o,y=n===null,E=n===n,N=xt(n);if(!y&&!N&&!h&&e>n||h&&p&&E&&!y&&!N||a&&p&&E||!r&&E||!c)return 1;if(!a&&!h&&!N&&e<n||N&&r&&c&&!a&&!h||y&&r&&c||!p&&c||!E)return-1}return 0}function Ev(e,n,r){for(var a=-1,c=e.criteria,h=n.criteria,p=c.length,y=r.length;++a<p;){var E=Oc(c[a],h[a]);if(E){if(a>=y)return E;var N=r[a];return E*(N=="desc"?-1:1)}}return e.index-n.index}function qc(e,n,r,a){for(var c=-1,h=e.length,p=r.length,y=-1,E=n.length,N=Qe(h-p,0),$=M(E+N),z=!a;++y<E;)$[y]=n[y];for(;++c<p;)(z||c<h)&&($[r[c]]=e[c]);for(;N--;)$[y++]=e[c++];return $}function Mc(e,n,r,a){for(var c=-1,h=e.length,p=-1,y=r.length,E=-1,N=n.length,$=Qe(h-y,0),z=M($+N),ee=!a;++c<$;)z[c]=e[c];for(var ue=c;++E<N;)z[ue+E]=n[E];for(;++p<y;)(ee||c<h)&&(z[ue+r[p]]=e[c++]);return z}function ft(e,n){var r=-1,a=e.length;for(n||(n=M(a));++r<a;)n[r]=e[r];return n}function Qt(e,n,r,a){var c=!r;r||(r={});for(var h=-1,p=n.length;++h<p;){var y=n[h],E=a?a(r[y],e[y],y,r,e):o;E===o&&(E=e[y]),c?an(r,y,E):Zr(r,y,E)}return r}function Av(e,n){return Qt(e,ia(e),n)}function Tv(e,n){return Qt(e,Kc(e),n)}function so(e,n){return function(r,a){var c=be(r)?Mg:Yp,h=n?n():{};return c(r,e,fe(a,2),h)}}function kr(e){return Se(function(n,r){var a=-1,c=r.length,h=c>1?r[c-1]:o,p=c>2?r[2]:o;for(h=e.length>3&&typeof h=="function"?(c--,h):o,p&&at(r[0],r[1],p)&&(h=c<3?o:h,c=1),n=qe(n);++a<c;){var y=r[a];y&&e(n,y,a,h)}return n})}function Vc(e,n){return function(r,a){if(r==null)return r;if(!dt(r))return e(r,a);for(var c=r.length,h=n?c:-1,p=qe(r);(n?h--:++h<c)&&a(p[h],h,p)!==!1;);return r}}function Lc(e){return function(n,r,a){for(var c=-1,h=qe(n),p=a(n),y=p.length;y--;){var E=p[e?y:++c];if(r(h[E],E,h)===!1)break}return n}}function Bv(e,n,r){var a=n&O,c=ni(e);function h(){var p=this&&this!==et&&this instanceof h?c:e;return p.apply(a?r:this,arguments)}return h}function Ic(e){return function(n){n=Te(n);var r=_r(n)?zt(n):o,a=r?r[0]:n.charAt(0),c=r?Bn(r,1).join(""):n.slice(1);return a[e]()+c}}function Er(e){return function(n){return Sl(Lf(Vf(n).replace(bg,"")),e,"")}}function ni(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var r=Cr(e.prototype),a=e.apply(r,n);return $e(a)?a:r}}function Rv(e,n,r){var a=ni(e);function c(){for(var h=arguments.length,p=M(h),y=h,E=Ar(c);y--;)p[y]=arguments[y];var N=h<3&&p[0]!==E&&p[h-1]!==E?[]:Cn(p,E);if(h-=N.length,h<r)return Dc(e,n,co,c.placeholder,o,p,N,o,o,r-h);var $=this&&this!==et&&this instanceof c?a:e;return yt($,this,p)}return c}function Pc(e){return function(n,r,a){var c=qe(n);if(!dt(n)){var h=fe(r,3);n=Ze(n),r=function(y){return h(c[y],y,c)}}var p=e(n,r,a);return p>-1?c[h?n[p]:p]:o}}function Nc(e){return sn(function(n){var r=n.length,a=r,c=Ot.prototype.thru;for(e&&n.reverse();a--;){var h=n[a];if(typeof h!="function")throw new Rt(m);if(c&&!p&&go(h)=="wrapper")var p=new Ot([],!0)}for(a=p?a:r;++a<r;){h=n[a];var y=go(h),E=y=="wrapper"?na(h):o;E&&la(E[0])&&E[1]==(I|D|j|le)&&!E[4].length&&E[9]==1?p=p[go(E[0])].apply(p,E[3]):p=h.length==1&&la(h)?p[y]():p.thru(h)}return function(){var N=arguments,$=N[0];if(p&&N.length==1&&be($))return p.plant($).value();for(var z=0,ee=r?n[z].apply(this,N):$;++z<r;)ee=n[z].call(this,ee);return ee}})}function co(e,n,r,a,c,h,p,y,E,N){var $=n&I,z=n&O,ee=n&G,ue=n&(D|Q),de=n&P,we=ee?o:ni(e);function he(){for(var xe=arguments.length,ke=M(xe),Ct=xe;Ct--;)ke[Ct]=arguments[Ct];if(ue)var ut=Ar(he),kt=zg(ke,ut);if(a&&(ke=qc(ke,a,c,ue)),h&&(ke=Mc(ke,h,p,ue)),xe-=kt,ue&&xe<N){var Ue=Cn(ke,ut);return Dc(e,n,co,he.placeholder,r,ke,Ue,y,E,N-xe)}var Ht=z?r:this,hn=ee?Ht[e]:e;return xe=ke.length,y?ke=Yv(ke,y):de&&xe>1&&ke.reverse(),$&&E<xe&&(ke.length=E),this&&this!==et&&this instanceof he&&(hn=we||ni(hn)),hn.apply(Ht,ke)}return he}function $c(e,n){return function(r,a){return iv(r,e,n(a),{})}}function fo(e,n){return function(r,a){var c;if(r===o&&a===o)return n;if(r!==o&&(c=r),a!==o){if(c===o)return a;typeof r=="string"||typeof a=="string"?(r=St(r),a=St(a)):(r=Cc(r),a=Cc(a)),c=e(r,a)}return c}}function Xl(e){return sn(function(n){return n=Ie(n,wt(fe())),Se(function(r){var a=this;return e(n,function(c){return yt(c,a,r)})})})}function ho(e,n){n=n===o?" ":St(n);var r=n.length;if(r<2)return r?Hl(n,e):n;var a=Hl(n,Xi(e/br(n)));return _r(n)?Bn(zt(a),0,e).join(""):a.slice(0,e)}function Ov(e,n,r,a){var c=n&O,h=ni(e);function p(){for(var y=-1,E=arguments.length,N=-1,$=a.length,z=M($+E),ee=this&&this!==et&&this instanceof p?h:e;++N<$;)z[N]=a[N];for(;E--;)z[N++]=arguments[++y];return yt(ee,c?r:this,z)}return p}function Fc(e){return function(n,r,a){return a&&typeof a!="number"&&at(n,r,a)&&(r=a=o),n=dn(n),r===o?(r=n,n=0):r=dn(r),a=a===o?n<r?1:-1:dn(a),pv(n,r,a,e)}}function mo(e){return function(n,r){return typeof n=="string"&&typeof r=="string"||(n=Lt(n),r=Lt(r)),e(n,r)}}function Dc(e,n,r,a,c,h,p,y,E,N){var $=n&D,z=$?p:o,ee=$?o:p,ue=$?h:o,de=$?o:h;n|=$?j:Y,n&=~($?Y:j),n&U||(n&=~(O|G));var we=[e,n,c,ue,z,de,ee,y,E,N],he=r.apply(o,we);return la(e)&&Jc(he,we),he.placeholder=a,ef(he,e,n)}function Jl(e){var n=je[e];return function(r,a){if(r=Lt(r),a=a==null?0:rt(ye(a),292),a&&ec(r)){var c=(Te(r)+"e").split("e"),h=n(c[0]+"e"+(+c[1]+a));return c=(Te(h)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return n(r)}}var qv=Sr&&1/zi(new Sr([,-0]))[1]==ce?function(e){return new Sr(e)}:wa;function zc(e){return function(n){var r=it(n);return r==nt?Bl(n):r==Fe?Qg(n):Dg(n,e(n))}}function un(e,n,r,a,c,h,p,y){var E=n&G;if(!E&&typeof e!="function")throw new Rt(m);var N=a?a.length:0;if(N||(n&=~(j|Y),a=c=o),p=p===o?p:Qe(ye(p),0),y=y===o?y:ye(y),N-=c?c.length:0,n&Y){var $=a,z=c;a=c=o}var ee=E?o:na(e),ue=[e,n,r,a,c,$,z,h,p,y];if(ee&&Gv(ue,ee),e=ue[0],n=ue[1],r=ue[2],a=ue[3],c=ue[4],y=ue[9]=ue[9]===o?E?0:e.length:Qe(ue[9]-N,0),!y&&n&(D|Q)&&(n&=~(D|Q)),!n||n==O)var de=Bv(e,n,r);else n==D||n==Q?de=Rv(e,n,y):(n==j||n==(O|j))&&!c.length?de=Ov(e,n,r,a):de=co.apply(o,ue);var we=ee?Sc:Jc;return ef(we(de,ue),e,n)}function Uc(e,n,r,a){return e===o||Wt(e,wr[r])&&!Re.call(a,r)?n:e}function Wc(e,n,r,a,c,h){return $e(e)&&$e(n)&&(h.set(n,e),lo(e,n,o,Wc,h),h.delete(n)),e}function Mv(e){return oi(e)?o:e}function Hc(e,n,r,a,c,h){var p=r&B,y=e.length,E=n.length;if(y!=E&&!(p&&E>y))return!1;var N=h.get(e),$=h.get(n);if(N&&$)return N==n&&$==e;var z=-1,ee=!0,ue=r&W?new Gn:o;for(h.set(e,n),h.set(n,e);++z<y;){var de=e[z],we=n[z];if(a)var he=p?a(we,de,z,n,e,h):a(de,we,z,e,n,h);if(he!==o){if(he)continue;ee=!1;break}if(ue){if(!xl(n,function(xe,ke){if(!Hr(ue,ke)&&(de===xe||c(de,xe,r,a,h)))return ue.push(ke)})){ee=!1;break}}else if(!(de===we||c(de,we,r,a,h))){ee=!1;break}}return h.delete(e),h.delete(n),ee}function Vv(e,n,r,a,c,h,p){switch(r){case vn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case tn:return!(e.byteLength!=n.byteLength||!h(new ji(e),new ji(n)));case Ee:case X:case bt:return Wt(+e,+n);case ot:return e.name==n.name&&e.message==n.message;case $t:case Ge:return e==n+"";case nt:var y=Bl;case Fe:var E=a&B;if(y||(y=zi),e.size!=n.size&&!E)return!1;var N=p.get(e);if(N)return N==n;a|=W,p.set(e,n);var $=Hc(y(e),y(n),a,c,h,p);return p.delete(e),$;case Ft:if(Yr)return Yr.call(e)==Yr.call(n)}return!1}function Lv(e,n,r,a,c,h){var p=r&B,y=ea(e),E=y.length,N=ea(n),$=N.length;if(E!=$&&!p)return!1;for(var z=E;z--;){var ee=y[z];if(!(p?ee in n:Re.call(n,ee)))return!1}var ue=h.get(e),de=h.get(n);if(ue&&de)return ue==n&&de==e;var we=!0;h.set(e,n),h.set(n,e);for(var he=p;++z<E;){ee=y[z];var xe=e[ee],ke=n[ee];if(a)var Ct=p?a(ke,xe,ee,n,e,h):a(xe,ke,ee,e,n,h);if(!(Ct===o?xe===ke||c(xe,ke,r,a,h):Ct)){we=!1;break}he||(he=ee=="constructor")}if(we&&!he){var ut=e.constructor,kt=n.constructor;ut!=kt&&"constructor"in e&&"constructor"in n&&!(typeof ut=="function"&&ut instanceof ut&&typeof kt=="function"&&kt instanceof kt)&&(we=!1)}return h.delete(e),h.delete(n),we}function sn(e){return ua(Zc(e,o,af),e+"")}function ea(e){return fc(e,Ze,ia)}function ta(e){return fc(e,ht,Kc)}var na=eo?function(e){return eo.get(e)}:wa;function go(e){for(var n=e.name+"",r=xr[n],a=Re.call(xr,n)?r.length:0;a--;){var c=r[a],h=c.func;if(h==null||h==e)return c.name}return n}function Ar(e){var n=Re.call(d,"placeholder")?d:e;return n.placeholder}function fe(){var e=d.iteratee||ba;return e=e===ba?mc:e,arguments.length?e(arguments[0],arguments[1]):e}function po(e,n){var r=e.__data__;return Uv(n)?r[typeof n=="string"?"string":"hash"]:r.map}function ra(e){for(var n=Ze(e),r=n.length;r--;){var a=n[r],c=e[a];n[r]=[a,c,Qc(c)]}return n}function Yn(e,n){var r=Kg(e,n);return hc(r)?r:o}function Iv(e){var n=Re.call(e,Hn),r=e[Hn];try{e[Hn]=o;var a=!0}catch{}var c=Ki.call(e);return a&&(n?e[Hn]=r:delete e[Hn]),c}var ia=Ol?function(e){return e==null?[]:(e=qe(e),Sn(Ol(e),function(n){return Xs.call(e,n)}))}:Sa,Kc=Ol?function(e){for(var n=[];e;)xn(n,ia(e)),e=Qi(e);return n}:Sa,it=lt;(ql&&it(new ql(new ArrayBuffer(1)))!=vn||Gr&&it(new Gr)!=nt||Ml&&it(Ml.resolve())!=pn||Sr&&it(new Sr)!=Fe||jr&&it(new jr)!=$n)&&(it=function(e){var n=lt(e),r=n==ct?e.constructor:o,a=r?Zn(r):"";if(a)switch(a){case _p:return vn;case bp:return nt;case yp:return pn;case wp:return Fe;case Sp:return $n}return n});function Pv(e,n,r){for(var a=-1,c=r.length;++a<c;){var h=r[a],p=h.size;switch(h.type){case"drop":e+=p;break;case"dropRight":n-=p;break;case"take":n=rt(n,e+p);break;case"takeRight":e=Qe(e,n-p);break}}return{start:e,end:n}}function Nv(e){var n=e.match(cl);return n?n[1].split(fl):[]}function Gc(e,n,r){n=Tn(n,e);for(var a=-1,c=n.length,h=!1;++a<c;){var p=Yt(n[a]);if(!(h=e!=null&&r(e,p)))break;e=e[p]}return h||++a!=c?h:(c=e==null?0:e.length,!!c&&xo(c)&&cn(p,c)&&(be(e)||Xn(e)))}function $v(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function jc(e){return typeof e.constructor=="function"&&!ri(e)?Cr(Qi(e)):{}}function Fv(e,n,r){var a=e.constructor;switch(n){case tn:return Zl(e);case Ee:case X:return new a(+e);case vn:return xv(e,r);case dr:case Dt:case Gt:case _n:case Fr:case Fn:case Dn:case hr:case mr:return Rc(e,r);case nt:return new a;case bt:case Ge:return new a(e);case $t:return Cv(e);case Fe:return new a;case Ft:return kv(e)}}function Dv(e,n){var r=n.length;if(!r)return e;var a=r-1;return n[a]=(r>1?"& ":"")+n[a],n=n.join(r>2?", ":" "),e.replace(sl,`{
9
- /* [wrapped with `+n+`] */
10
- `)}function zv(e){return be(e)||Xn(e)||!!(Js&&e&&e[Js])}function cn(e,n){var r=typeof e;return n=n??H,!!n&&(r=="number"||r!="symbol"&&Pi.test(e))&&e>-1&&e%1==0&&e<n}function at(e,n,r){if(!$e(r))return!1;var a=typeof n;return(a=="number"?dt(r)&&cn(n,r.length):a=="string"&&n in r)?Wt(r[n],e):!1}function oa(e,n){if(be(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||xt(e)?!0:bn.test(e)||!Un.test(e)||n!=null&&e in qe(n)}function Uv(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function la(e){var n=go(e),r=d[n];if(typeof r!="function"||!(n in Ce.prototype))return!1;if(e===r)return!0;var a=na(r);return!!a&&e===a[0]}function Wv(e){return!!Qs&&Qs in e}var Hv=Wi?fn:xa;function ri(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||wr;return e===r}function Qc(e){return e===e&&!$e(e)}function Yc(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==o||e in qe(r))}}function Kv(e){var n=wo(e,function(a){return r.size===A&&r.clear(),a}),r=n.cache;return n}function Gv(e,n){var r=e[1],a=n[1],c=r|a,h=c<(O|G|I),p=a==I&&r==D||a==I&&r==le&&e[7].length<=n[8]||a==(I|le)&&n[7].length<=n[8]&&r==D;if(!(h||p))return e;a&O&&(e[2]=n[2],c|=r&O?0:U);var y=n[3];if(y){var E=e[3];e[3]=E?qc(E,y,n[4]):y,e[4]=E?Cn(e[3],v):n[4]}return y=n[5],y&&(E=e[5],e[5]=E?Mc(E,y,n[6]):y,e[6]=E?Cn(e[5],v):n[6]),y=n[7],y&&(e[7]=y),a&I&&(e[8]=e[8]==null?n[8]:rt(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=c,e}function jv(e){var n=[];if(e!=null)for(var r in qe(e))n.push(r);return n}function Qv(e){return Ki.call(e)}function Zc(e,n,r){return n=Qe(n===o?e.length-1:n,0),function(){for(var a=arguments,c=-1,h=Qe(a.length-n,0),p=M(h);++c<h;)p[c]=a[n+c];c=-1;for(var y=M(n+1);++c<n;)y[c]=a[c];return y[n]=r(p),yt(e,this,y)}}function Xc(e,n){return n.length<2?e:Qn(e,Mt(n,0,-1))}function Yv(e,n){for(var r=e.length,a=rt(n.length,r),c=ft(e);a--;){var h=n[a];e[a]=cn(h,r)?c[h]:o}return e}function aa(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var Jc=tf(Sc),ii=fp||function(e,n){return et.setTimeout(e,n)},ua=tf(bv);function ef(e,n,r){var a=n+"";return ua(e,Dv(a,Zv(Nv(a),r)))}function tf(e){var n=0,r=0;return function(){var a=gp(),c=Z-(a-r);if(r=a,c>0){if(++n>=w)return arguments[0]}else n=0;return e.apply(o,arguments)}}function vo(e,n){var r=-1,a=e.length,c=a-1;for(n=n===o?a:n;++r<n;){var h=Wl(r,c),p=e[h];e[h]=e[r],e[r]=p}return e.length=n,e}var nf=Kv(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(ll,function(r,a,c,h){n.push(c?h.replace(wn,"$1"):a||r)}),n});function Yt(e){if(typeof e=="string"||xt(e))return e;var n=e+"";return n=="0"&&1/e==-ce?"-0":n}function Zn(e){if(e!=null){try{return Hi.call(e)}catch{}try{return e+""}catch{}}return""}function Zv(e,n){return Bt(ve,function(r){var a="_."+r[0];n&r[1]&&!Fi(e,a)&&e.push(a)}),e.sort()}function rf(e){if(e instanceof Ce)return e.clone();var n=new Ot(e.__wrapped__,e.__chain__);return n.__actions__=ft(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function Xv(e,n,r){(r?at(e,n,r):n===o)?n=1:n=Qe(ye(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var c=0,h=0,p=M(Xi(a/n));c<a;)p[h++]=Mt(e,c,c+=n);return p}function Jv(e){for(var n=-1,r=e==null?0:e.length,a=0,c=[];++n<r;){var h=e[n];h&&(c[a++]=h)}return c}function e0(){var e=arguments.length;if(!e)return[];for(var n=M(e-1),r=arguments[0],a=e;a--;)n[a-1]=arguments[a];return xn(be(r)?ft(r):[r],tt(n,1))}var t0=Se(function(e,n){return ze(e)?Xr(e,tt(n,1,ze,!0)):[]}),n0=Se(function(e,n){var r=Vt(n);return ze(r)&&(r=o),ze(e)?Xr(e,tt(n,1,ze,!0),fe(r,2)):[]}),r0=Se(function(e,n){var r=Vt(n);return ze(r)&&(r=o),ze(e)?Xr(e,tt(n,1,ze,!0),o,r):[]});function i0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===o?1:ye(n),Mt(e,n<0?0:n,a)):[]}function o0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===o?1:ye(n),n=a-n,Mt(e,0,n<0?0:n)):[]}function l0(e,n){return e&&e.length?uo(e,fe(n,3),!0,!0):[]}function a0(e,n){return e&&e.length?uo(e,fe(n,3),!0):[]}function u0(e,n,r,a){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&at(e,n,r)&&(r=0,a=c),ev(e,n,r,a)):[]}function of(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:ye(r);return c<0&&(c=Qe(a+c,0)),Di(e,fe(n,3),c)}function lf(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=a-1;return r!==o&&(c=ye(r),c=r<0?Qe(a+c,0):rt(c,a-1)),Di(e,fe(n,3),c,!0)}function af(e){var n=e==null?0:e.length;return n?tt(e,1):[]}function s0(e){var n=e==null?0:e.length;return n?tt(e,ce):[]}function c0(e,n){var r=e==null?0:e.length;return r?(n=n===o?1:ye(n),tt(e,n)):[]}function f0(e){for(var n=-1,r=e==null?0:e.length,a={};++n<r;){var c=e[n];a[c[0]]=c[1]}return a}function uf(e){return e&&e.length?e[0]:o}function d0(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:ye(r);return c<0&&(c=Qe(a+c,0)),vr(e,n,c)}function h0(e){var n=e==null?0:e.length;return n?Mt(e,0,-1):[]}var m0=Se(function(e){var n=Ie(e,Ql);return n.length&&n[0]===e[0]?$l(n):[]}),g0=Se(function(e){var n=Vt(e),r=Ie(e,Ql);return n===Vt(r)?n=o:r.pop(),r.length&&r[0]===e[0]?$l(r,fe(n,2)):[]}),p0=Se(function(e){var n=Vt(e),r=Ie(e,Ql);return n=typeof n=="function"?n:o,n&&r.pop(),r.length&&r[0]===e[0]?$l(r,o,n):[]});function v0(e,n){return e==null?"":hp.call(e,n)}function Vt(e){var n=e==null?0:e.length;return n?e[n-1]:o}function _0(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=a;return r!==o&&(c=ye(r),c=c<0?Qe(a+c,0):rt(c,a-1)),n===n?Zg(e,n,c):Di(e,Ds,c,!0)}function b0(e,n){return e&&e.length?_c(e,ye(n)):o}var y0=Se(sf);function sf(e,n){return e&&e.length&&n&&n.length?Ul(e,n):e}function w0(e,n,r){return e&&e.length&&n&&n.length?Ul(e,n,fe(r,2)):e}function S0(e,n,r){return e&&e.length&&n&&n.length?Ul(e,n,o,r):e}var x0=sn(function(e,n){var r=e==null?0:e.length,a=Ll(e,n);return wc(e,Ie(n,function(c){return cn(c,r)?+c:c}).sort(Oc)),a});function C0(e,n){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],h=e.length;for(n=fe(n,3);++a<h;){var p=e[a];n(p,a,e)&&(r.push(p),c.push(a))}return wc(e,c),r}function sa(e){return e==null?e:vp.call(e)}function k0(e,n,r){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&at(e,n,r)?(n=0,r=a):(n=n==null?0:ye(n),r=r===o?a:ye(r)),Mt(e,n,r)):[]}function E0(e,n){return ao(e,n)}function A0(e,n,r){return Kl(e,n,fe(r,2))}function T0(e,n){var r=e==null?0:e.length;if(r){var a=ao(e,n);if(a<r&&Wt(e[a],n))return a}return-1}function B0(e,n){return ao(e,n,!0)}function R0(e,n,r){return Kl(e,n,fe(r,2),!0)}function O0(e,n){var r=e==null?0:e.length;if(r){var a=ao(e,n,!0)-1;if(Wt(e[a],n))return a}return-1}function q0(e){return e&&e.length?xc(e):[]}function M0(e,n){return e&&e.length?xc(e,fe(n,2)):[]}function V0(e){var n=e==null?0:e.length;return n?Mt(e,1,n):[]}function L0(e,n,r){return e&&e.length?(n=r||n===o?1:ye(n),Mt(e,0,n<0?0:n)):[]}function I0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===o?1:ye(n),n=a-n,Mt(e,n<0?0:n,a)):[]}function P0(e,n){return e&&e.length?uo(e,fe(n,3),!1,!0):[]}function N0(e,n){return e&&e.length?uo(e,fe(n,3)):[]}var $0=Se(function(e){return An(tt(e,1,ze,!0))}),F0=Se(function(e){var n=Vt(e);return ze(n)&&(n=o),An(tt(e,1,ze,!0),fe(n,2))}),D0=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:o,An(tt(e,1,ze,!0),o,n)});function z0(e){return e&&e.length?An(e):[]}function U0(e,n){return e&&e.length?An(e,fe(n,2)):[]}function W0(e,n){return n=typeof n=="function"?n:o,e&&e.length?An(e,o,n):[]}function ca(e){if(!(e&&e.length))return[];var n=0;return e=Sn(e,function(r){if(ze(r))return n=Qe(r.length,n),!0}),Al(n,function(r){return Ie(e,Cl(r))})}function cf(e,n){if(!(e&&e.length))return[];var r=ca(e);return n==null?r:Ie(r,function(a){return yt(n,o,a)})}var H0=Se(function(e,n){return ze(e)?Xr(e,n):[]}),K0=Se(function(e){return jl(Sn(e,ze))}),G0=Se(function(e){var n=Vt(e);return ze(n)&&(n=o),jl(Sn(e,ze),fe(n,2))}),j0=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:o,jl(Sn(e,ze),o,n)}),Q0=Se(ca);function Y0(e,n){return Ac(e||[],n||[],Zr)}function Z0(e,n){return Ac(e||[],n||[],ti)}var X0=Se(function(e){var n=e.length,r=n>1?e[n-1]:o;return r=typeof r=="function"?(e.pop(),r):o,cf(e,r)});function ff(e){var n=d(e);return n.__chain__=!0,n}function J0(e,n){return n(e),e}function _o(e,n){return n(e)}var e_=sn(function(e){var n=e.length,r=n?e[0]:0,a=this.__wrapped__,c=function(h){return Ll(h,e)};return n>1||this.__actions__.length||!(a instanceof Ce)||!cn(r)?this.thru(c):(a=a.slice(r,+r+(n?1:0)),a.__actions__.push({func:_o,args:[c],thisArg:o}),new Ot(a,this.__chain__).thru(function(h){return n&&!h.length&&h.push(o),h}))});function t_(){return ff(this)}function n_(){return new Ot(this.value(),this.__chain__)}function r_(){this.__values__===o&&(this.__values__=kf(this.value()));var e=this.__index__>=this.__values__.length,n=e?o:this.__values__[this.__index__++];return{done:e,value:n}}function i_(){return this}function o_(e){for(var n,r=this;r instanceof no;){var a=rf(r);a.__index__=0,a.__values__=o,n?c.__wrapped__=a:n=a;var c=a;r=r.__wrapped__}return c.__wrapped__=e,n}function l_(){var e=this.__wrapped__;if(e instanceof Ce){var n=e;return this.__actions__.length&&(n=new Ce(this)),n=n.reverse(),n.__actions__.push({func:_o,args:[sa],thisArg:o}),new Ot(n,this.__chain__)}return this.thru(sa)}function a_(){return Ec(this.__wrapped__,this.__actions__)}var u_=so(function(e,n,r){Re.call(e,r)?++e[r]:an(e,r,1)});function s_(e,n,r){var a=be(e)?$s:Jp;return r&&at(e,n,r)&&(n=o),a(e,fe(n,3))}function c_(e,n){var r=be(e)?Sn:sc;return r(e,fe(n,3))}var f_=Pc(of),d_=Pc(lf);function h_(e,n){return tt(bo(e,n),1)}function m_(e,n){return tt(bo(e,n),ce)}function g_(e,n,r){return r=r===o?1:ye(r),tt(bo(e,n),r)}function df(e,n){var r=be(e)?Bt:En;return r(e,fe(n,3))}function hf(e,n){var r=be(e)?Vg:uc;return r(e,fe(n,3))}var p_=so(function(e,n,r){Re.call(e,r)?e[r].push(n):an(e,r,[n])});function v_(e,n,r,a){e=dt(e)?e:Br(e),r=r&&!a?ye(r):0;var c=e.length;return r<0&&(r=Qe(c+r,0)),Co(e)?r<=c&&e.indexOf(n,r)>-1:!!c&&vr(e,n,r)>-1}var __=Se(function(e,n,r){var a=-1,c=typeof n=="function",h=dt(e)?M(e.length):[];return En(e,function(p){h[++a]=c?yt(n,p,r):Jr(p,n,r)}),h}),b_=so(function(e,n,r){an(e,r,n)});function bo(e,n){var r=be(e)?Ie:gc;return r(e,fe(n,3))}function y_(e,n,r,a){return e==null?[]:(be(n)||(n=n==null?[]:[n]),r=a?o:r,be(r)||(r=r==null?[]:[r]),bc(e,n,r))}var w_=so(function(e,n,r){e[r?0:1].push(n)},function(){return[[],[]]});function S_(e,n,r){var a=be(e)?Sl:Us,c=arguments.length<3;return a(e,fe(n,4),r,c,En)}function x_(e,n,r){var a=be(e)?Lg:Us,c=arguments.length<3;return a(e,fe(n,4),r,c,uc)}function C_(e,n){var r=be(e)?Sn:sc;return r(e,So(fe(n,3)))}function k_(e){var n=be(e)?ic:vv;return n(e)}function E_(e,n,r){(r?at(e,n,r):n===o)?n=1:n=ye(n);var a=be(e)?jp:_v;return a(e,n)}function A_(e){var n=be(e)?Qp:yv;return n(e)}function T_(e){if(e==null)return 0;if(dt(e))return Co(e)?br(e):e.length;var n=it(e);return n==nt||n==Fe?e.size:Dl(e).length}function B_(e,n,r){var a=be(e)?xl:wv;return r&&at(e,n,r)&&(n=o),a(e,fe(n,3))}var R_=Se(function(e,n){if(e==null)return[];var r=n.length;return r>1&&at(e,n[0],n[1])?n=[]:r>2&&at(n[0],n[1],n[2])&&(n=[n[0]]),bc(e,tt(n,1),[])}),yo=cp||function(){return et.Date.now()};function O_(e,n){if(typeof n!="function")throw new Rt(m);return e=ye(e),function(){if(--e<1)return n.apply(this,arguments)}}function mf(e,n,r){return n=r?o:n,n=e&&n==null?e.length:n,un(e,I,o,o,o,o,n)}function gf(e,n){var r;if(typeof n!="function")throw new Rt(m);return e=ye(e),function(){return--e>0&&(r=n.apply(this,arguments)),e<=1&&(n=o),r}}var fa=Se(function(e,n,r){var a=O;if(r.length){var c=Cn(r,Ar(fa));a|=j}return un(e,a,n,r,c)}),pf=Se(function(e,n,r){var a=O|G;if(r.length){var c=Cn(r,Ar(pf));a|=j}return un(n,a,e,r,c)});function vf(e,n,r){n=r?o:n;var a=un(e,D,o,o,o,o,o,n);return a.placeholder=vf.placeholder,a}function _f(e,n,r){n=r?o:n;var a=un(e,Q,o,o,o,o,o,n);return a.placeholder=_f.placeholder,a}function bf(e,n,r){var a,c,h,p,y,E,N=0,$=!1,z=!1,ee=!0;if(typeof e!="function")throw new Rt(m);n=Lt(n)||0,$e(r)&&($=!!r.leading,z="maxWait"in r,h=z?Qe(Lt(r.maxWait)||0,n):h,ee="trailing"in r?!!r.trailing:ee);function ue(Ue){var Ht=a,hn=c;return a=c=o,N=Ue,p=e.apply(hn,Ht),p}function de(Ue){return N=Ue,y=ii(xe,n),$?ue(Ue):p}function we(Ue){var Ht=Ue-E,hn=Ue-N,Nf=n-Ht;return z?rt(Nf,h-hn):Nf}function he(Ue){var Ht=Ue-E,hn=Ue-N;return E===o||Ht>=n||Ht<0||z&&hn>=h}function xe(){var Ue=yo();if(he(Ue))return ke(Ue);y=ii(xe,we(Ue))}function ke(Ue){return y=o,ee&&a?ue(Ue):(a=c=o,p)}function Ct(){y!==o&&Tc(y),N=0,a=E=c=y=o}function ut(){return y===o?p:ke(yo())}function kt(){var Ue=yo(),Ht=he(Ue);if(a=arguments,c=this,E=Ue,Ht){if(y===o)return de(E);if(z)return Tc(y),y=ii(xe,n),ue(E)}return y===o&&(y=ii(xe,n)),p}return kt.cancel=Ct,kt.flush=ut,kt}var q_=Se(function(e,n){return ac(e,1,n)}),M_=Se(function(e,n,r){return ac(e,Lt(n)||0,r)});function V_(e){return un(e,P)}function wo(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new Rt(m);var r=function(){var a=arguments,c=n?n.apply(this,a):a[0],h=r.cache;if(h.has(c))return h.get(c);var p=e.apply(this,a);return r.cache=h.set(c,p)||h,p};return r.cache=new(wo.Cache||ln),r}wo.Cache=ln;function So(e){if(typeof e!="function")throw new Rt(m);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function L_(e){return gf(2,e)}var I_=Sv(function(e,n){n=n.length==1&&be(n[0])?Ie(n[0],wt(fe())):Ie(tt(n,1),wt(fe()));var r=n.length;return Se(function(a){for(var c=-1,h=rt(a.length,r);++c<h;)a[c]=n[c].call(this,a[c]);return yt(e,this,a)})}),da=Se(function(e,n){var r=Cn(n,Ar(da));return un(e,j,o,n,r)}),yf=Se(function(e,n){var r=Cn(n,Ar(yf));return un(e,Y,o,n,r)}),P_=sn(function(e,n){return un(e,le,o,o,o,n)});function N_(e,n){if(typeof e!="function")throw new Rt(m);return n=n===o?n:ye(n),Se(e,n)}function $_(e,n){if(typeof e!="function")throw new Rt(m);return n=n==null?0:Qe(ye(n),0),Se(function(r){var a=r[n],c=Bn(r,0,n);return a&&xn(c,a),yt(e,this,c)})}function F_(e,n,r){var a=!0,c=!0;if(typeof e!="function")throw new Rt(m);return $e(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),bf(e,n,{leading:a,maxWait:n,trailing:c})}function D_(e){return mf(e,1)}function z_(e,n){return da(Yl(n),e)}function U_(){if(!arguments.length)return[];var e=arguments[0];return be(e)?e:[e]}function W_(e){return qt(e,_)}function H_(e,n){return n=typeof n=="function"?n:o,qt(e,_,n)}function K_(e){return qt(e,x|_)}function G_(e,n){return n=typeof n=="function"?n:o,qt(e,x|_,n)}function j_(e,n){return n==null||lc(e,n,Ze(n))}function Wt(e,n){return e===n||e!==e&&n!==n}var Q_=mo(Nl),Y_=mo(function(e,n){return e>=n}),Xn=dc(function(){return arguments}())?dc:function(e){return De(e)&&Re.call(e,"callee")&&!Xs.call(e,"callee")},be=M.isArray,Z_=Ms?wt(Ms):ov;function dt(e){return e!=null&&xo(e.length)&&!fn(e)}function ze(e){return De(e)&&dt(e)}function X_(e){return e===!0||e===!1||De(e)&&lt(e)==Ee}var Rn=dp||xa,J_=Vs?wt(Vs):lv;function eb(e){return De(e)&&e.nodeType===1&&!oi(e)}function tb(e){if(e==null)return!0;if(dt(e)&&(be(e)||typeof e=="string"||typeof e.splice=="function"||Rn(e)||Tr(e)||Xn(e)))return!e.length;var n=it(e);if(n==nt||n==Fe)return!e.size;if(ri(e))return!Dl(e).length;for(var r in e)if(Re.call(e,r))return!1;return!0}function nb(e,n){return ei(e,n)}function rb(e,n,r){r=typeof r=="function"?r:o;var a=r?r(e,n):o;return a===o?ei(e,n,o,r):!!a}function ha(e){if(!De(e))return!1;var n=lt(e);return n==ot||n==Ne||typeof e.message=="string"&&typeof e.name=="string"&&!oi(e)}function ib(e){return typeof e=="number"&&ec(e)}function fn(e){if(!$e(e))return!1;var n=lt(e);return n==Nt||n==_t||n==ne||n==$r}function wf(e){return typeof e=="number"&&e==ye(e)}function xo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=H}function $e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function De(e){return e!=null&&typeof e=="object"}var Sf=Ls?wt(Ls):uv;function ob(e,n){return e===n||Fl(e,n,ra(n))}function lb(e,n,r){return r=typeof r=="function"?r:o,Fl(e,n,ra(n),r)}function ab(e){return xf(e)&&e!=+e}function ub(e){if(Hv(e))throw new pe(f);return hc(e)}function sb(e){return e===null}function cb(e){return e==null}function xf(e){return typeof e=="number"||De(e)&&lt(e)==bt}function oi(e){if(!De(e)||lt(e)!=ct)return!1;var n=Qi(e);if(n===null)return!0;var r=Re.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&Hi.call(r)==lp}var ma=Is?wt(Is):sv;function fb(e){return wf(e)&&e>=-H&&e<=H}var Cf=Ps?wt(Ps):cv;function Co(e){return typeof e=="string"||!be(e)&&De(e)&&lt(e)==Ge}function xt(e){return typeof e=="symbol"||De(e)&&lt(e)==Ft}var Tr=Ns?wt(Ns):fv;function db(e){return e===o}function hb(e){return De(e)&&it(e)==$n}function mb(e){return De(e)&&lt(e)==Ti}var gb=mo(zl),pb=mo(function(e,n){return e<=n});function kf(e){if(!e)return[];if(dt(e))return Co(e)?zt(e):ft(e);if(Kr&&e[Kr])return jg(e[Kr]());var n=it(e),r=n==nt?Bl:n==Fe?zi:Br;return r(e)}function dn(e){if(!e)return e===0?e:0;if(e=Lt(e),e===ce||e===-ce){var n=e<0?-1:1;return n*ie}return e===e?e:0}function ye(e){var n=dn(e),r=n%1;return n===n?r?n-r:n:0}function Ef(e){return e?jn(ye(e),0,q):0}function Lt(e){if(typeof e=="number")return e;if(xt(e))return ge;if($e(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=$e(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Ws(e);var r=hl.test(e);return r||Ii.test(e)?Og(e.slice(2),r?2:8):Wr.test(e)?ge:+e}function Af(e){return Qt(e,ht(e))}function vb(e){return e?jn(ye(e),-H,H):e===0?e:0}function Te(e){return e==null?"":St(e)}var _b=kr(function(e,n){if(ri(n)||dt(n)){Qt(n,Ze(n),e);return}for(var r in n)Re.call(n,r)&&Zr(e,r,n[r])}),Tf=kr(function(e,n){Qt(n,ht(n),e)}),ko=kr(function(e,n,r,a){Qt(n,ht(n),e,a)}),bb=kr(function(e,n,r,a){Qt(n,Ze(n),e,a)}),yb=sn(Ll);function wb(e,n){var r=Cr(e);return n==null?r:oc(r,n)}var Sb=Se(function(e,n){e=qe(e);var r=-1,a=n.length,c=a>2?n[2]:o;for(c&&at(n[0],n[1],c)&&(a=1);++r<a;)for(var h=n[r],p=ht(h),y=-1,E=p.length;++y<E;){var N=p[y],$=e[N];($===o||Wt($,wr[N])&&!Re.call(e,N))&&(e[N]=h[N])}return e}),xb=Se(function(e){return e.push(o,Wc),yt(Bf,o,e)});function Cb(e,n){return Fs(e,fe(n,3),jt)}function kb(e,n){return Fs(e,fe(n,3),Pl)}function Eb(e,n){return e==null?e:Il(e,fe(n,3),ht)}function Ab(e,n){return e==null?e:cc(e,fe(n,3),ht)}function Tb(e,n){return e&&jt(e,fe(n,3))}function Bb(e,n){return e&&Pl(e,fe(n,3))}function Rb(e){return e==null?[]:oo(e,Ze(e))}function Ob(e){return e==null?[]:oo(e,ht(e))}function ga(e,n,r){var a=e==null?o:Qn(e,n);return a===o?r:a}function qb(e,n){return e!=null&&Gc(e,n,tv)}function pa(e,n){return e!=null&&Gc(e,n,nv)}var Mb=$c(function(e,n,r){n!=null&&typeof n.toString!="function"&&(n=Ki.call(n)),e[n]=r},_a(mt)),Vb=$c(function(e,n,r){n!=null&&typeof n.toString!="function"&&(n=Ki.call(n)),Re.call(e,n)?e[n].push(r):e[n]=[r]},fe),Lb=Se(Jr);function Ze(e){return dt(e)?rc(e):Dl(e)}function ht(e){return dt(e)?rc(e,!0):dv(e)}function Ib(e,n){var r={};return n=fe(n,3),jt(e,function(a,c,h){an(r,n(a,c,h),a)}),r}function Pb(e,n){var r={};return n=fe(n,3),jt(e,function(a,c,h){an(r,c,n(a,c,h))}),r}var Nb=kr(function(e,n,r){lo(e,n,r)}),Bf=kr(function(e,n,r,a){lo(e,n,r,a)}),$b=sn(function(e,n){var r={};if(e==null)return r;var a=!1;n=Ie(n,function(h){return h=Tn(h,e),a||(a=h.length>1),h}),Qt(e,ta(e),r),a&&(r=qt(r,x|k|_,Mv));for(var c=n.length;c--;)Gl(r,n[c]);return r});function Fb(e,n){return Rf(e,So(fe(n)))}var Db=sn(function(e,n){return e==null?{}:mv(e,n)});function Rf(e,n){if(e==null)return{};var r=Ie(ta(e),function(a){return[a]});return n=fe(n),yc(e,r,function(a,c){return n(a,c[0])})}function zb(e,n,r){n=Tn(n,e);var a=-1,c=n.length;for(c||(c=1,e=o);++a<c;){var h=e==null?o:e[Yt(n[a])];h===o&&(a=c,h=r),e=fn(h)?h.call(e):h}return e}function Ub(e,n,r){return e==null?e:ti(e,n,r)}function Wb(e,n,r,a){return a=typeof a=="function"?a:o,e==null?e:ti(e,n,r,a)}var Of=zc(Ze),qf=zc(ht);function Hb(e,n,r){var a=be(e),c=a||Rn(e)||Tr(e);if(n=fe(n,4),r==null){var h=e&&e.constructor;c?r=a?new h:[]:$e(e)?r=fn(h)?Cr(Qi(e)):{}:r={}}return(c?Bt:jt)(e,function(p,y,E){return n(r,p,y,E)}),r}function Kb(e,n){return e==null?!0:Gl(e,n)}function Gb(e,n,r){return e==null?e:kc(e,n,Yl(r))}function jb(e,n,r,a){return a=typeof a=="function"?a:o,e==null?e:kc(e,n,Yl(r),a)}function Br(e){return e==null?[]:Tl(e,Ze(e))}function Qb(e){return e==null?[]:Tl(e,ht(e))}function Yb(e,n,r){return r===o&&(r=n,n=o),r!==o&&(r=Lt(r),r=r===r?r:0),n!==o&&(n=Lt(n),n=n===n?n:0),jn(Lt(e),n,r)}function Zb(e,n,r){return n=dn(n),r===o?(r=n,n=0):r=dn(r),e=Lt(e),rv(e,n,r)}function Xb(e,n,r){if(r&&typeof r!="boolean"&&at(e,n,r)&&(n=r=o),r===o&&(typeof n=="boolean"?(r=n,n=o):typeof e=="boolean"&&(r=e,e=o)),e===o&&n===o?(e=0,n=1):(e=dn(e),n===o?(n=e,e=0):n=dn(n)),e>n){var a=e;e=n,n=a}if(r||e%1||n%1){var c=tc();return rt(e+c*(n-e+Rg("1e-"+((c+"").length-1))),n)}return Wl(e,n)}var Jb=Er(function(e,n,r){return n=n.toLowerCase(),e+(r?Mf(n):n)});function Mf(e){return va(Te(e).toLowerCase())}function Vf(e){return e=Te(e),e&&e.replace(Ni,Ug).replace(yg,"")}function ey(e,n,r){e=Te(e),n=St(n);var a=e.length;r=r===o?a:jn(ye(r),0,a);var c=r;return r-=n.length,r>=0&&e.slice(r,c)==n}function ty(e){return e=Te(e),e&&Mi.test(e)?e.replace(qi,Wg):e}function ny(e){return e=Te(e),e&&al.test(e)?e.replace(zr,"\\$&"):e}var ry=Er(function(e,n,r){return e+(r?"-":"")+n.toLowerCase()}),iy=Er(function(e,n,r){return e+(r?" ":"")+n.toLowerCase()}),oy=Ic("toLowerCase");function ly(e,n,r){e=Te(e),n=ye(n);var a=n?br(e):0;if(!n||a>=n)return e;var c=(n-a)/2;return ho(Ji(c),r)+e+ho(Xi(c),r)}function ay(e,n,r){e=Te(e),n=ye(n);var a=n?br(e):0;return n&&a<n?e+ho(n-a,r):e}function uy(e,n,r){e=Te(e),n=ye(n);var a=n?br(e):0;return n&&a<n?ho(n-a,r)+e:e}function sy(e,n,r){return r||n==null?n=0:n&&(n=+n),pp(Te(e).replace(Ur,""),n||0)}function cy(e,n,r){return(r?at(e,n,r):n===o)?n=1:n=ye(n),Hl(Te(e),n)}function fy(){var e=arguments,n=Te(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var dy=Er(function(e,n,r){return e+(r?"_":"")+n.toLowerCase()});function hy(e,n,r){return r&&typeof r!="number"&&at(e,n,r)&&(n=r=o),r=r===o?q:r>>>0,r?(e=Te(e),e&&(typeof n=="string"||n!=null&&!ma(n))&&(n=St(n),!n&&_r(e))?Bn(zt(e),0,r):e.split(n,r)):[]}var my=Er(function(e,n,r){return e+(r?" ":"")+va(n)});function gy(e,n,r){return e=Te(e),r=r==null?0:jn(ye(r),0,e.length),n=St(n),e.slice(r,r+n.length)==n}function py(e,n,r){var a=d.templateSettings;r&&at(e,n,r)&&(n=o),e=Te(e),n=ko({},n,a,Uc);var c=ko({},n.imports,a.imports,Uc),h=Ze(c),p=Tl(c,h),y,E,N=0,$=n.interpolate||b,z="__p += '",ee=Rl((n.escape||b).source+"|"+$.source+"|"+($===zn?nn:b).source+"|"+(n.evaluate||b).source+"|$","g"),ue="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kg+"]")+`
11
- `;e.replace(ee,function(he,xe,ke,Ct,ut,kt){return ke||(ke=Ct),z+=e.slice(N,kt).replace(te,Hg),xe&&(y=!0,z+=`' +
8
+ */ei.exports,function(n,o){(function(){var l,u="4.17.21",s=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",g="Invalid `variable` option passed into `_.template`",x="__lodash_hash_undefined__",A=500,v="__lodash_placeholder__",C=1,k=2,y=4,B=1,U=2,q=1,W=2,D=4,$=8,Z=16,K=32,Q=64,G=128,le=256,V=512,N=30,X="...",E=800,te=16,P=1,ae=2,ue=3,fe=1/0,H=9007199254740991,se=17976931348623157e292,ge=NaN,R=4294967295,T=R-1,ie=R>>>1,ve=[["ary",G],["bind",q],["bindKey",W],["curry",$],["curryRight",Z],["flip",V],["partial",K],["partialRight",Q],["rearg",le]],_e="[object Arguments]",z="[object Array]",ne="[object AsyncFunction]",Ee="[object Boolean]",Y="[object Date]",$e="[object DOMException]",lt="[object Error]",Pt="[object Function]",_t="[object GeneratorFunction]",nt="[object Map]",bt="[object Number]",Jt="[object Null]",ct="[object Object]",gn="[object Promise]",Or="[object Proxy]",$t="[object RegExp]",Ne="[object Set]",Ge="[object String]",Ft="[object Symbol]",ar="[object Undefined]",Pn="[object WeakMap]",yi="[object WeakSet]",en="[object ArrayBuffer]",pn="[object DataView]",ur="[object Float32Array]",Nt="[object Float64Array]",Gt="[object Int8Array]",vn="[object Int16Array]",Lr="[object Int32Array]",$n="[object Uint8Array]",Fn="[object Uint8ClampedArray]",sr="[object Uint16Array]",cr="[object Uint32Array]",wi=/\b__p \+= '';/g,Si=/\b(__p \+=) '' \+/g,xi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ir=/&(?:amp|lt|gt|quot|#39);/g,Ci=/[&<>"']/g,Wl=RegExp(Ir.source),ki=RegExp(Ci.source),Hl=/<%-([\s\S]+?)%>/g,Ei=/<%([\s\S]+?)%>/g,Nn=/<%=([\s\S]+?)%>/g,Dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_n=/^\w*$/,Kl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vr=/[\\^$.*+?()[\]{}|]/g,Gl=RegExp(Vr.source),Pr=/^\s+/,Ql=/\s/,Yl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zl=/\{\n\/\* \[wrapped with (.+)\] \*/,Xl=/,? & /,jl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,bn=/[()=,{}\[\]\/\s]/,yn=/\\(\\)?/g,tn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nn=/\w*$/,$r=/^[-+]0x[0-9a-f]+$/i,Jl=/^0b[01]+$/i,Ti=/^\[object .+?Constructor\]$/,Ai=/^0o[0-7]+$/i,Bi=/^(?:0|[1-9]\d*)$/,Ri=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_=/($^)/,ee=/['\n\r\u2028\u2029\\]/g,j="\\ud800-\\udfff",me="\\u0300-\\u036f",qe="\\ufe20-\\ufe2f",Be="\\u20d0-\\u20ff",He=me+qe+Be,Ie="\\u2700-\\u27bf",fr="a-z\\xdf-\\xf6\\xf8-\\xff",Lm="\\xac\\xb1\\xd7\\xf7",Im="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vm="\\u2000-\\u206f",Pm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ju="A-Z\\xc0-\\xd6\\xd8-\\xde",es="\\ufe0e\\ufe0f",ts=Lm+Im+Vm+Pm,eo="['’]",$m="["+j+"]",ns="["+ts+"]",qi="["+He+"]",rs="\\d+",Fm="["+Ie+"]",is="["+fr+"]",ls="[^"+j+ts+rs+Ie+fr+Ju+"]",to="\\ud83c[\\udffb-\\udfff]",Nm="(?:"+qi+"|"+to+")",os="[^"+j+"]",no="(?:\\ud83c[\\udde6-\\uddff]){2}",ro="[\\ud800-\\udbff][\\udc00-\\udfff]",dr="["+Ju+"]",as="\\u200d",us="(?:"+is+"|"+ls+")",Dm="(?:"+dr+"|"+ls+")",ss="(?:"+eo+"(?:d|ll|m|re|s|t|ve))?",cs="(?:"+eo+"(?:D|LL|M|RE|S|T|VE))?",fs=Nm+"?",ds="["+es+"]?",zm="(?:"+as+"(?:"+[os,no,ro].join("|")+")"+ds+fs+")*",Um="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hs=ds+fs+zm,Hm="(?:"+[Fm,no,ro].join("|")+")"+hs,Km="(?:"+[os+qi+"?",qi,no,ro,$m].join("|")+")",Gm=RegExp(eo,"g"),Qm=RegExp(qi,"g"),io=RegExp(to+"(?="+to+")|"+Km+hs,"g"),Ym=RegExp([dr+"?"+is+"+"+ss+"(?="+[ns,dr,"$"].join("|")+")",Dm+"+"+cs+"(?="+[ns,dr+us,"$"].join("|")+")",dr+"?"+us+"+"+ss,dr+"+"+cs,Wm,Um,rs,Hm].join("|"),"g"),Zm=RegExp("["+as+j+He+es+"]"),Xm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jm=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jm=-1,Le={};Le[ur]=Le[Nt]=Le[Gt]=Le[vn]=Le[Lr]=Le[$n]=Le[Fn]=Le[sr]=Le[cr]=!0,Le[_e]=Le[z]=Le[en]=Le[Ee]=Le[pn]=Le[Y]=Le[lt]=Le[Pt]=Le[nt]=Le[bt]=Le[ct]=Le[$t]=Le[Ne]=Le[Ge]=Le[Pn]=!1;var Oe={};Oe[_e]=Oe[z]=Oe[en]=Oe[pn]=Oe[Ee]=Oe[Y]=Oe[ur]=Oe[Nt]=Oe[Gt]=Oe[vn]=Oe[Lr]=Oe[nt]=Oe[bt]=Oe[ct]=Oe[$t]=Oe[Ne]=Oe[Ge]=Oe[Ft]=Oe[$n]=Oe[Fn]=Oe[sr]=Oe[cr]=!0,Oe[lt]=Oe[Pt]=Oe[Pn]=!1;var eg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},tg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ng={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},rg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ig=parseFloat,lg=parseInt,ms=typeof je=="object"&&je&&je.Object===Object&&je,og=typeof self=="object"&&self&&self.Object===Object&&self,et=ms||og||Function("return this")(),lo=o&&!o.nodeType&&o,zn=lo&&!0&&n&&!n.nodeType&&n,gs=zn&&zn.exports===lo,oo=gs&&ms.process,Tt=function(){try{var w=zn&&zn.require&&zn.require("util").types;return w||oo&&oo.binding&&oo.binding("util")}catch{}}(),ps=Tt&&Tt.isArrayBuffer,vs=Tt&&Tt.isDate,_s=Tt&&Tt.isMap,bs=Tt&&Tt.isRegExp,ys=Tt&&Tt.isSet,ws=Tt&&Tt.isTypedArray;function yt(w,O,M){switch(M.length){case 0:return w.call(O);case 1:return w.call(O,M[0]);case 2:return w.call(O,M[0],M[1]);case 3:return w.call(O,M[0],M[1],M[2])}return w.apply(O,M)}function ag(w,O,M,re){for(var pe=-1,Te=w==null?0:w.length;++pe<Te;){var Qe=w[pe];O(re,Qe,M(Qe),w)}return re}function At(w,O){for(var M=-1,re=w==null?0:w.length;++M<re&&O(w[M],M,w)!==!1;);return w}function ug(w,O){for(var M=w==null?0:w.length;M--&&O(w[M],M,w)!==!1;);return w}function Ss(w,O){for(var M=-1,re=w==null?0:w.length;++M<re;)if(!O(w[M],M,w))return!1;return!0}function wn(w,O){for(var M=-1,re=w==null?0:w.length,pe=0,Te=[];++M<re;){var Qe=w[M];O(Qe,M,w)&&(Te[pe++]=Qe)}return Te}function Mi(w,O){var M=w==null?0:w.length;return!!M&&hr(w,O,0)>-1}function ao(w,O,M){for(var re=-1,pe=w==null?0:w.length;++re<pe;)if(M(O,w[re]))return!0;return!1}function Ve(w,O){for(var M=-1,re=w==null?0:w.length,pe=Array(re);++M<re;)pe[M]=O(w[M],M,w);return pe}function Sn(w,O){for(var M=-1,re=O.length,pe=w.length;++M<re;)w[pe+M]=O[M];return w}function uo(w,O,M,re){var pe=-1,Te=w==null?0:w.length;for(re&&Te&&(M=w[++pe]);++pe<Te;)M=O(M,w[pe],pe,w);return M}function sg(w,O,M,re){var pe=w==null?0:w.length;for(re&&pe&&(M=w[--pe]);pe--;)M=O(M,w[pe],pe,w);return M}function so(w,O){for(var M=-1,re=w==null?0:w.length;++M<re;)if(O(w[M],M,w))return!0;return!1}var cg=co("length");function fg(w){return w.split("")}function dg(w){return w.match(jl)||[]}function xs(w,O,M){var re;return M(w,function(pe,Te,Qe){if(O(pe,Te,Qe))return re=Te,!1}),re}function Oi(w,O,M,re){for(var pe=w.length,Te=M+(re?1:-1);re?Te--:++Te<pe;)if(O(w[Te],Te,w))return Te;return-1}function hr(w,O,M){return O===O?Cg(w,O,M):Oi(w,Cs,M)}function hg(w,O,M,re){for(var pe=M-1,Te=w.length;++pe<Te;)if(re(w[pe],O))return pe;return-1}function Cs(w){return w!==w}function ks(w,O){var M=w==null?0:w.length;return M?ho(w,O)/M:ge}function co(w){return function(O){return O==null?l:O[w]}}function fo(w){return function(O){return w==null?l:w[O]}}function Es(w,O,M,re,pe){return pe(w,function(Te,Qe,Me){M=re?(re=!1,Te):O(M,Te,Qe,Me)}),M}function mg(w,O){var M=w.length;for(w.sort(O);M--;)w[M]=w[M].value;return w}function ho(w,O){for(var M,re=-1,pe=w.length;++re<pe;){var Te=O(w[re]);Te!==l&&(M=M===l?Te:M+Te)}return M}function mo(w,O){for(var M=-1,re=Array(w);++M<w;)re[M]=O(M);return re}function gg(w,O){return Ve(O,function(M){return[M,w[M]]})}function Ts(w){return w&&w.slice(0,qs(w)+1).replace(Pr,"")}function wt(w){return function(O){return w(O)}}function go(w,O){return Ve(O,function(M){return w[M]})}function Fr(w,O){return w.has(O)}function As(w,O){for(var M=-1,re=w.length;++M<re&&hr(O,w[M],0)>-1;);return M}function Bs(w,O){for(var M=w.length;M--&&hr(O,w[M],0)>-1;);return M}function pg(w,O){for(var M=w.length,re=0;M--;)w[M]===O&&++re;return re}var vg=fo(eg),_g=fo(tg);function bg(w){return"\\"+rg[w]}function yg(w,O){return w==null?l:w[O]}function mr(w){return Zm.test(w)}function wg(w){return Xm.test(w)}function Sg(w){for(var O,M=[];!(O=w.next()).done;)M.push(O.value);return M}function po(w){var O=-1,M=Array(w.size);return w.forEach(function(re,pe){M[++O]=[pe,re]}),M}function Rs(w,O){return function(M){return w(O(M))}}function xn(w,O){for(var M=-1,re=w.length,pe=0,Te=[];++M<re;){var Qe=w[M];(Qe===O||Qe===v)&&(w[M]=v,Te[pe++]=M)}return Te}function Li(w){var O=-1,M=Array(w.size);return w.forEach(function(re){M[++O]=re}),M}function xg(w){var O=-1,M=Array(w.size);return w.forEach(function(re){M[++O]=[re,re]}),M}function Cg(w,O,M){for(var re=M-1,pe=w.length;++re<pe;)if(w[re]===O)return re;return-1}function kg(w,O,M){for(var re=M+1;re--;)if(w[re]===O)return re;return re}function gr(w){return mr(w)?Tg(w):cg(w)}function Dt(w){return mr(w)?Ag(w):fg(w)}function qs(w){for(var O=w.length;O--&&Ql.test(w.charAt(O)););return O}var Eg=fo(ng);function Tg(w){for(var O=io.lastIndex=0;io.test(w);)++O;return O}function Ag(w){return w.match(io)||[]}function Bg(w){return w.match(Ym)||[]}var Rg=function w(O){O=O==null?et:pr.defaults(et.Object(),O,pr.pick(et,jm));var M=O.Array,re=O.Date,pe=O.Error,Te=O.Function,Qe=O.Math,Me=O.Object,vo=O.RegExp,qg=O.String,Bt=O.TypeError,Ii=M.prototype,Mg=Te.prototype,vr=Me.prototype,Vi=O["__core-js_shared__"],Pi=Mg.toString,Re=vr.hasOwnProperty,Og=0,Ms=function(){var e=/[^.]+$/.exec(Vi&&Vi.keys&&Vi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$i=vr.toString,Lg=Pi.call(Me),Ig=et._,Vg=vo("^"+Pi.call(Re).replace(Vr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fi=gs?O.Buffer:l,Cn=O.Symbol,Ni=O.Uint8Array,Os=Fi?Fi.allocUnsafe:l,Di=Rs(Me.getPrototypeOf,Me),Ls=Me.create,Is=vr.propertyIsEnumerable,zi=Ii.splice,Vs=Cn?Cn.isConcatSpreadable:l,Nr=Cn?Cn.iterator:l,Un=Cn?Cn.toStringTag:l,Ui=function(){try{var e=Qn(Me,"defineProperty");return e({},"",{}),e}catch{}}(),Pg=O.clearTimeout!==et.clearTimeout&&O.clearTimeout,$g=re&&re.now!==et.Date.now&&re.now,Fg=O.setTimeout!==et.setTimeout&&O.setTimeout,Wi=Qe.ceil,Hi=Qe.floor,_o=Me.getOwnPropertySymbols,Ng=Fi?Fi.isBuffer:l,Ps=O.isFinite,Dg=Ii.join,zg=Rs(Me.keys,Me),Ye=Qe.max,rt=Qe.min,Ug=re.now,Wg=O.parseInt,$s=Qe.random,Hg=Ii.reverse,bo=Qn(O,"DataView"),Dr=Qn(O,"Map"),yo=Qn(O,"Promise"),_r=Qn(O,"Set"),zr=Qn(O,"WeakMap"),Ur=Qn(Me,"create"),Ki=zr&&new zr,br={},Kg=Yn(bo),Gg=Yn(Dr),Qg=Yn(yo),Yg=Yn(_r),Zg=Yn(zr),Gi=Cn?Cn.prototype:l,Wr=Gi?Gi.valueOf:l,Fs=Gi?Gi.toString:l;function d(e){if(De(e)&&!be(e)&&!(e instanceof Ce)){if(e instanceof Rt)return e;if(Re.call(e,"__wrapped__"))return Nc(e)}return new Rt(e)}var yr=function(){function e(){}return function(t){if(!Fe(t))return{};if(Ls)return Ls(t);e.prototype=t;var r=new e;return e.prototype=l,r}}();function Qi(){}function Rt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=l}d.templateSettings={escape:Hl,evaluate:Ei,interpolate:Nn,variable:"",imports:{_:d}},d.prototype=Qi.prototype,d.prototype.constructor=d,Rt.prototype=yr(Qi.prototype),Rt.prototype.constructor=Rt;function Ce(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Xg(){var e=new Ce(this.__wrapped__);return e.__actions__=ft(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ft(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ft(this.__views__),e}function jg(){if(this.__filtered__){var e=new Ce(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Jg(){var e=this.__wrapped__.value(),t=this.__dir__,r=be(e),a=t<0,c=r?e.length:0,h=fv(0,c,this.__views__),p=h.start,b=h.end,S=b-p,L=a?b:p-1,I=this.__iteratees__,F=I.length,J=0,oe=rt(S,this.__takeCount__);if(!r||!a&&c==S&&oe==S)return sc(e,this.__actions__);var de=[];e:for(;S--&&J<oe;){L+=t;for(var we=-1,he=e[L];++we<F;){var xe=I[we],ke=xe.iteratee,Ct=xe.type,ut=ke(he);if(Ct==ae)he=ut;else if(!ut){if(Ct==P)continue e;break e}}de[J++]=he}return de}Ce.prototype=yr(Qi.prototype),Ce.prototype.constructor=Ce;function Wn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function ep(){this.__data__=Ur?Ur(null):{},this.size=0}function tp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function np(e){var t=this.__data__;if(Ur){var r=t[e];return r===x?l:r}return Re.call(t,e)?t[e]:l}function rp(e){var t=this.__data__;return Ur?t[e]!==l:Re.call(t,e)}function ip(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ur&&t===l?x:t,this}Wn.prototype.clear=ep,Wn.prototype.delete=tp,Wn.prototype.get=np,Wn.prototype.has=rp,Wn.prototype.set=ip;function rn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function lp(){this.__data__=[],this.size=0}function op(e){var t=this.__data__,r=Yi(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():zi.call(t,r,1),--this.size,!0}function ap(e){var t=this.__data__,r=Yi(t,e);return r<0?l:t[r][1]}function up(e){return Yi(this.__data__,e)>-1}function sp(e,t){var r=this.__data__,a=Yi(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}rn.prototype.clear=lp,rn.prototype.delete=op,rn.prototype.get=ap,rn.prototype.has=up,rn.prototype.set=sp;function ln(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function cp(){this.size=0,this.__data__={hash:new Wn,map:new(Dr||rn),string:new Wn}}function fp(e){var t=al(this,e).delete(e);return this.size-=t?1:0,t}function dp(e){return al(this,e).get(e)}function hp(e){return al(this,e).has(e)}function mp(e,t){var r=al(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}ln.prototype.clear=cp,ln.prototype.delete=fp,ln.prototype.get=dp,ln.prototype.has=hp,ln.prototype.set=mp;function Hn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ln;++t<r;)this.add(e[t])}function gp(e){return this.__data__.set(e,x),this}function pp(e){return this.__data__.has(e)}Hn.prototype.add=Hn.prototype.push=gp,Hn.prototype.has=pp;function zt(e){var t=this.__data__=new rn(e);this.size=t.size}function vp(){this.__data__=new rn,this.size=0}function _p(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function bp(e){return this.__data__.get(e)}function yp(e){return this.__data__.has(e)}function wp(e,t){var r=this.__data__;if(r instanceof rn){var a=r.__data__;if(!Dr||a.length<s-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new ln(a)}return r.set(e,t),this.size=r.size,this}zt.prototype.clear=vp,zt.prototype.delete=_p,zt.prototype.get=bp,zt.prototype.has=yp,zt.prototype.set=wp;function Ns(e,t){var r=be(e),a=!r&&Zn(e),c=!r&&!a&&Bn(e),h=!r&&!a&&!c&&Cr(e),p=r||a||c||h,b=p?mo(e.length,qg):[],S=b.length;for(var L in e)(t||Re.call(e,L))&&!(p&&(L=="length"||c&&(L=="offset"||L=="parent")||h&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||sn(L,S)))&&b.push(L);return b}function Ds(e){var t=e.length;return t?e[qo(0,t-1)]:l}function Sp(e,t){return ul(ft(e),Kn(t,0,e.length))}function xp(e){return ul(ft(e))}function wo(e,t,r){(r!==l&&!Ut(e[t],r)||r===l&&!(t in e))&&on(e,t,r)}function Hr(e,t,r){var a=e[t];(!(Re.call(e,t)&&Ut(a,r))||r===l&&!(t in e))&&on(e,t,r)}function Yi(e,t){for(var r=e.length;r--;)if(Ut(e[r][0],t))return r;return-1}function Cp(e,t,r,a){return kn(e,function(c,h,p){t(a,c,r(c),p)}),a}function zs(e,t){return e&&Yt(t,Xe(t),e)}function kp(e,t){return e&&Yt(t,ht(t),e)}function on(e,t,r){t=="__proto__"&&Ui?Ui(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function So(e,t){for(var r=-1,a=t.length,c=M(a),h=e==null;++r<a;)c[r]=h?l:na(e,t[r]);return c}function Kn(e,t,r){return e===e&&(r!==l&&(e=e<=r?e:r),t!==l&&(e=e>=t?e:t)),e}function qt(e,t,r,a,c,h){var p,b=t&C,S=t&k,L=t&y;if(r&&(p=c?r(e,a,c,h):r(e)),p!==l)return p;if(!Fe(e))return e;var I=be(e);if(I){if(p=hv(e),!b)return ft(e,p)}else{var F=it(e),J=F==Pt||F==_t;if(Bn(e))return dc(e,b);if(F==ct||F==_e||J&&!c){if(p=S||J?{}:qc(e),!b)return S?nv(e,kp(p,e)):tv(e,zs(p,e))}else{if(!Oe[F])return c?e:{};p=mv(e,F,b)}}h||(h=new zt);var oe=h.get(e);if(oe)return oe;h.set(e,p),af(e)?e.forEach(function(he){p.add(qt(he,t,r,he,e,h))}):lf(e)&&e.forEach(function(he,xe){p.set(xe,qt(he,t,r,xe,e,h))});var de=L?S?zo:Do:S?ht:Xe,we=I?l:de(e);return At(we||e,function(he,xe){we&&(xe=he,he=e[xe]),Hr(p,xe,qt(he,t,r,xe,e,h))}),p}function Ep(e){var t=Xe(e);return function(r){return Us(r,e,t)}}function Us(e,t,r){var a=r.length;if(e==null)return!a;for(e=Me(e);a--;){var c=r[a],h=t[c],p=e[c];if(p===l&&!(c in e)||!h(p))return!1}return!0}function Ws(e,t,r){if(typeof e!="function")throw new Bt(m);return jr(function(){e.apply(l,r)},t)}function Kr(e,t,r,a){var c=-1,h=Mi,p=!0,b=e.length,S=[],L=t.length;if(!b)return S;r&&(t=Ve(t,wt(r))),a?(h=ao,p=!1):t.length>=s&&(h=Fr,p=!1,t=new Hn(t));e:for(;++c<b;){var I=e[c],F=r==null?I:r(I);if(I=a||I!==0?I:0,p&&F===F){for(var J=L;J--;)if(t[J]===F)continue e;S.push(I)}else h(t,F,a)||S.push(I)}return S}var kn=vc(Qt),Hs=vc(Co,!0);function Tp(e,t){var r=!0;return kn(e,function(a,c,h){return r=!!t(a,c,h),r}),r}function Zi(e,t,r){for(var a=-1,c=e.length;++a<c;){var h=e[a],p=t(h);if(p!=null&&(b===l?p===p&&!xt(p):r(p,b)))var b=p,S=h}return S}function Ap(e,t,r,a){var c=e.length;for(r=ye(r),r<0&&(r=-r>c?0:c+r),a=a===l||a>c?c:ye(a),a<0&&(a+=c),a=r>a?0:sf(a);r<a;)e[r++]=t;return e}function Ks(e,t){var r=[];return kn(e,function(a,c,h){t(a,c,h)&&r.push(a)}),r}function tt(e,t,r,a,c){var h=-1,p=e.length;for(r||(r=pv),c||(c=[]);++h<p;){var b=e[h];t>0&&r(b)?t>1?tt(b,t-1,r,a,c):Sn(c,b):a||(c[c.length]=b)}return c}var xo=_c(),Gs=_c(!0);function Qt(e,t){return e&&xo(e,t,Xe)}function Co(e,t){return e&&Gs(e,t,Xe)}function Xi(e,t){return wn(t,function(r){return cn(e[r])})}function Gn(e,t){t=Tn(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[Zt(t[r++])];return r&&r==a?e:l}function Qs(e,t,r){var a=t(e);return be(e)?a:Sn(a,r(e))}function ot(e){return e==null?e===l?ar:Jt:Un&&Un in Me(e)?cv(e):xv(e)}function ko(e,t){return e>t}function Bp(e,t){return e!=null&&Re.call(e,t)}function Rp(e,t){return e!=null&&t in Me(e)}function qp(e,t,r){return e>=rt(t,r)&&e<Ye(t,r)}function Eo(e,t,r){for(var a=r?ao:Mi,c=e[0].length,h=e.length,p=h,b=M(h),S=1/0,L=[];p--;){var I=e[p];p&&t&&(I=Ve(I,wt(t))),S=rt(I.length,S),b[p]=!r&&(t||c>=120&&I.length>=120)?new Hn(p&&I):l}I=e[0];var F=-1,J=b[0];e:for(;++F<c&&L.length<S;){var oe=I[F],de=t?t(oe):oe;if(oe=r||oe!==0?oe:0,!(J?Fr(J,de):a(L,de,r))){for(p=h;--p;){var we=b[p];if(!(we?Fr(we,de):a(e[p],de,r)))continue e}J&&J.push(de),L.push(oe)}}return L}function Mp(e,t,r,a){return Qt(e,function(c,h,p){t(a,r(c),h,p)}),a}function Gr(e,t,r){t=Tn(t,e),e=Ic(e,t);var a=e==null?e:e[Zt(Ot(t))];return a==null?l:yt(a,e,r)}function Ys(e){return De(e)&&ot(e)==_e}function Op(e){return De(e)&&ot(e)==en}function Lp(e){return De(e)&&ot(e)==Y}function Qr(e,t,r,a,c){return e===t?!0:e==null||t==null||!De(e)&&!De(t)?e!==e&&t!==t:Ip(e,t,r,a,Qr,c)}function Ip(e,t,r,a,c,h){var p=be(e),b=be(t),S=p?z:it(e),L=b?z:it(t);S=S==_e?ct:S,L=L==_e?ct:L;var I=S==ct,F=L==ct,J=S==L;if(J&&Bn(e)){if(!Bn(t))return!1;p=!0,I=!1}if(J&&!I)return h||(h=new zt),p||Cr(e)?Ac(e,t,r,a,c,h):uv(e,t,S,r,a,c,h);if(!(r&B)){var oe=I&&Re.call(e,"__wrapped__"),de=F&&Re.call(t,"__wrapped__");if(oe||de){var we=oe?e.value():e,he=de?t.value():t;return h||(h=new zt),c(we,he,r,a,h)}}return J?(h||(h=new zt),sv(e,t,r,a,c,h)):!1}function Vp(e){return De(e)&&it(e)==nt}function To(e,t,r,a){var c=r.length,h=c,p=!a;if(e==null)return!h;for(e=Me(e);c--;){var b=r[c];if(p&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++c<h;){b=r[c];var S=b[0],L=e[S],I=b[1];if(p&&b[2]){if(L===l&&!(S in e))return!1}else{var F=new zt;if(a)var J=a(L,I,S,e,t,F);if(!(J===l?Qr(I,L,B|U,a,F):J))return!1}}return!0}function Zs(e){if(!Fe(e)||_v(e))return!1;var t=cn(e)?Vg:Ti;return t.test(Yn(e))}function Pp(e){return De(e)&&ot(e)==$t}function $p(e){return De(e)&&it(e)==Ne}function Fp(e){return De(e)&&ml(e.length)&&!!Le[ot(e)]}function Xs(e){return typeof e=="function"?e:e==null?mt:typeof e=="object"?be(e)?ec(e[0],e[1]):Js(e):yf(e)}function Ao(e){if(!Xr(e))return zg(e);var t=[];for(var r in Me(e))Re.call(e,r)&&r!="constructor"&&t.push(r);return t}function Np(e){if(!Fe(e))return Sv(e);var t=Xr(e),r=[];for(var a in e)a=="constructor"&&(t||!Re.call(e,a))||r.push(a);return r}function Bo(e,t){return e<t}function js(e,t){var r=-1,a=dt(e)?M(e.length):[];return kn(e,function(c,h,p){a[++r]=t(c,h,p)}),a}function Js(e){var t=Wo(e);return t.length==1&&t[0][2]?Oc(t[0][0],t[0][1]):function(r){return r===e||To(r,e,t)}}function ec(e,t){return Ko(e)&&Mc(t)?Oc(Zt(e),t):function(r){var a=na(r,e);return a===l&&a===t?ra(r,e):Qr(t,a,B|U)}}function ji(e,t,r,a,c){e!==t&&xo(t,function(h,p){if(c||(c=new zt),Fe(h))Dp(e,t,p,r,ji,a,c);else{var b=a?a(Qo(e,p),h,p+"",e,t,c):l;b===l&&(b=h),wo(e,p,b)}},ht)}function Dp(e,t,r,a,c,h,p){var b=Qo(e,r),S=Qo(t,r),L=p.get(S);if(L){wo(e,r,L);return}var I=h?h(b,S,r+"",e,t,p):l,F=I===l;if(F){var J=be(S),oe=!J&&Bn(S),de=!J&&!oe&&Cr(S);I=S,J||oe||de?be(b)?I=b:ze(b)?I=ft(b):oe?(F=!1,I=dc(S,!0)):de?(F=!1,I=hc(S,!0)):I=[]:Jr(S)||Zn(S)?(I=b,Zn(b)?I=cf(b):(!Fe(b)||cn(b))&&(I=qc(S))):F=!1}F&&(p.set(S,I),c(I,S,a,h,p),p.delete(S)),wo(e,r,I)}function tc(e,t){var r=e.length;if(r)return t+=t<0?r:0,sn(t,r)?e[t]:l}function nc(e,t,r){t.length?t=Ve(t,function(h){return be(h)?function(p){return Gn(p,h.length===1?h[0]:h)}:h}):t=[mt];var a=-1;t=Ve(t,wt(ce()));var c=js(e,function(h,p,b){var S=Ve(t,function(L){return L(h)});return{criteria:S,index:++a,value:h}});return mg(c,function(h,p){return ev(h,p,r)})}function zp(e,t){return rc(e,t,function(r,a){return ra(e,a)})}function rc(e,t,r){for(var a=-1,c=t.length,h={};++a<c;){var p=t[a],b=Gn(e,p);r(b,p)&&Yr(h,Tn(p,e),b)}return h}function Up(e){return function(t){return Gn(t,e)}}function Ro(e,t,r,a){var c=a?hg:hr,h=-1,p=t.length,b=e;for(e===t&&(t=ft(t)),r&&(b=Ve(e,wt(r)));++h<p;)for(var S=0,L=t[h],I=r?r(L):L;(S=c(b,I,S,a))>-1;)b!==e&&zi.call(b,S,1),zi.call(e,S,1);return e}function ic(e,t){for(var r=e?t.length:0,a=r-1;r--;){var c=t[r];if(r==a||c!==h){var h=c;sn(c)?zi.call(e,c,1):Lo(e,c)}}return e}function qo(e,t){return e+Hi($s()*(t-e+1))}function Wp(e,t,r,a){for(var c=-1,h=Ye(Wi((t-e)/(r||1)),0),p=M(h);h--;)p[a?h:++c]=e,e+=r;return p}function Mo(e,t){var r="";if(!e||t<1||t>H)return r;do t%2&&(r+=e),t=Hi(t/2),t&&(e+=e);while(t);return r}function Se(e,t){return Yo(Lc(e,t,mt),e+"")}function Hp(e){return Ds(kr(e))}function Kp(e,t){var r=kr(e);return ul(r,Kn(t,0,r.length))}function Yr(e,t,r,a){if(!Fe(e))return e;t=Tn(t,e);for(var c=-1,h=t.length,p=h-1,b=e;b!=null&&++c<h;){var S=Zt(t[c]),L=r;if(S==="__proto__"||S==="constructor"||S==="prototype")return e;if(c!=p){var I=b[S];L=a?a(I,S,b):l,L===l&&(L=Fe(I)?I:sn(t[c+1])?[]:{})}Hr(b,S,L),b=b[S]}return e}var lc=Ki?function(e,t){return Ki.set(e,t),e}:mt,Gp=Ui?function(e,t){return Ui(e,"toString",{configurable:!0,enumerable:!1,value:la(t),writable:!0})}:mt;function Qp(e){return ul(kr(e))}function Mt(e,t,r){var a=-1,c=e.length;t<0&&(t=-t>c?0:c+t),r=r>c?c:r,r<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var h=M(c);++a<c;)h[a]=e[a+t];return h}function Yp(e,t){var r;return kn(e,function(a,c,h){return r=t(a,c,h),!r}),!!r}function Ji(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=ie){for(;a<c;){var h=a+c>>>1,p=e[h];p!==null&&!xt(p)&&(r?p<=t:p<t)?a=h+1:c=h}return c}return Oo(e,t,mt,r)}function Oo(e,t,r,a){var c=0,h=e==null?0:e.length;if(h===0)return 0;t=r(t);for(var p=t!==t,b=t===null,S=xt(t),L=t===l;c<h;){var I=Hi((c+h)/2),F=r(e[I]),J=F!==l,oe=F===null,de=F===F,we=xt(F);if(p)var he=a||de;else L?he=de&&(a||J):b?he=de&&J&&(a||!oe):S?he=de&&J&&!oe&&(a||!we):oe||we?he=!1:he=a?F<=t:F<t;he?c=I+1:h=I}return rt(h,T)}function oc(e,t){for(var r=-1,a=e.length,c=0,h=[];++r<a;){var p=e[r],b=t?t(p):p;if(!r||!Ut(b,S)){var S=b;h[c++]=p===0?0:p}}return h}function ac(e){return typeof e=="number"?e:xt(e)?ge:+e}function St(e){if(typeof e=="string")return e;if(be(e))return Ve(e,St)+"";if(xt(e))return Fs?Fs.call(e):"";var t=e+"";return t=="0"&&1/e==-fe?"-0":t}function En(e,t,r){var a=-1,c=Mi,h=e.length,p=!0,b=[],S=b;if(r)p=!1,c=ao;else if(h>=s){var L=t?null:ov(e);if(L)return Li(L);p=!1,c=Fr,S=new Hn}else S=t?[]:b;e:for(;++a<h;){var I=e[a],F=t?t(I):I;if(I=r||I!==0?I:0,p&&F===F){for(var J=S.length;J--;)if(S[J]===F)continue e;t&&S.push(F),b.push(I)}else c(S,F,r)||(S!==b&&S.push(F),b.push(I))}return b}function Lo(e,t){return t=Tn(t,e),e=Ic(e,t),e==null||delete e[Zt(Ot(t))]}function uc(e,t,r,a){return Yr(e,t,r(Gn(e,t)),a)}function el(e,t,r,a){for(var c=e.length,h=a?c:-1;(a?h--:++h<c)&&t(e[h],h,e););return r?Mt(e,a?0:h,a?h+1:c):Mt(e,a?h+1:0,a?c:h)}function sc(e,t){var r=e;return r instanceof Ce&&(r=r.value()),uo(t,function(a,c){return c.func.apply(c.thisArg,Sn([a],c.args))},r)}function Io(e,t,r){var a=e.length;if(a<2)return a?En(e[0]):[];for(var c=-1,h=M(a);++c<a;)for(var p=e[c],b=-1;++b<a;)b!=c&&(h[c]=Kr(h[c]||p,e[b],t,r));return En(tt(h,1),t,r)}function cc(e,t,r){for(var a=-1,c=e.length,h=t.length,p={};++a<c;){var b=a<h?t[a]:l;r(p,e[a],b)}return p}function Vo(e){return ze(e)?e:[]}function Po(e){return typeof e=="function"?e:mt}function Tn(e,t){return be(e)?e:Ko(e,t)?[e]:Fc(Ae(e))}var Zp=Se;function An(e,t,r){var a=e.length;return r=r===l?a:r,!t&&r>=a?e:Mt(e,t,r)}var fc=Pg||function(e){return et.clearTimeout(e)};function dc(e,t){if(t)return e.slice();var r=e.length,a=Os?Os(r):new e.constructor(r);return e.copy(a),a}function $o(e){var t=new e.constructor(e.byteLength);return new Ni(t).set(new Ni(e)),t}function Xp(e,t){var r=t?$o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function jp(e){var t=new e.constructor(e.source,nn.exec(e));return t.lastIndex=e.lastIndex,t}function Jp(e){return Wr?Me(Wr.call(e)):{}}function hc(e,t){var r=t?$o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function mc(e,t){if(e!==t){var r=e!==l,a=e===null,c=e===e,h=xt(e),p=t!==l,b=t===null,S=t===t,L=xt(t);if(!b&&!L&&!h&&e>t||h&&p&&S&&!b&&!L||a&&p&&S||!r&&S||!c)return 1;if(!a&&!h&&!L&&e<t||L&&r&&c&&!a&&!h||b&&r&&c||!p&&c||!S)return-1}return 0}function ev(e,t,r){for(var a=-1,c=e.criteria,h=t.criteria,p=c.length,b=r.length;++a<p;){var S=mc(c[a],h[a]);if(S){if(a>=b)return S;var L=r[a];return S*(L=="desc"?-1:1)}}return e.index-t.index}function gc(e,t,r,a){for(var c=-1,h=e.length,p=r.length,b=-1,S=t.length,L=Ye(h-p,0),I=M(S+L),F=!a;++b<S;)I[b]=t[b];for(;++c<p;)(F||c<h)&&(I[r[c]]=e[c]);for(;L--;)I[b++]=e[c++];return I}function pc(e,t,r,a){for(var c=-1,h=e.length,p=-1,b=r.length,S=-1,L=t.length,I=Ye(h-b,0),F=M(I+L),J=!a;++c<I;)F[c]=e[c];for(var oe=c;++S<L;)F[oe+S]=t[S];for(;++p<b;)(J||c<h)&&(F[oe+r[p]]=e[c++]);return F}function ft(e,t){var r=-1,a=e.length;for(t||(t=M(a));++r<a;)t[r]=e[r];return t}function Yt(e,t,r,a){var c=!r;r||(r={});for(var h=-1,p=t.length;++h<p;){var b=t[h],S=a?a(r[b],e[b],b,r,e):l;S===l&&(S=e[b]),c?on(r,b,S):Hr(r,b,S)}return r}function tv(e,t){return Yt(e,Ho(e),t)}function nv(e,t){return Yt(e,Bc(e),t)}function tl(e,t){return function(r,a){var c=be(r)?ag:Cp,h=t?t():{};return c(r,e,ce(a,2),h)}}function wr(e){return Se(function(t,r){var a=-1,c=r.length,h=c>1?r[c-1]:l,p=c>2?r[2]:l;for(h=e.length>3&&typeof h=="function"?(c--,h):l,p&&at(r[0],r[1],p)&&(h=c<3?l:h,c=1),t=Me(t);++a<c;){var b=r[a];b&&e(t,b,a,h)}return t})}function vc(e,t){return function(r,a){if(r==null)return r;if(!dt(r))return e(r,a);for(var c=r.length,h=t?c:-1,p=Me(r);(t?h--:++h<c)&&a(p[h],h,p)!==!1;);return r}}function _c(e){return function(t,r,a){for(var c=-1,h=Me(t),p=a(t),b=p.length;b--;){var S=p[e?b:++c];if(r(h[S],S,h)===!1)break}return t}}function rv(e,t,r){var a=t&q,c=Zr(e);function h(){var p=this&&this!==et&&this instanceof h?c:e;return p.apply(a?r:this,arguments)}return h}function bc(e){return function(t){t=Ae(t);var r=mr(t)?Dt(t):l,a=r?r[0]:t.charAt(0),c=r?An(r,1).join(""):t.slice(1);return a[e]()+c}}function Sr(e){return function(t){return uo(_f(vf(t).replace(Gm,"")),e,"")}}function Zr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=yr(e.prototype),a=e.apply(r,t);return Fe(a)?a:r}}function iv(e,t,r){var a=Zr(e);function c(){for(var h=arguments.length,p=M(h),b=h,S=xr(c);b--;)p[b]=arguments[b];var L=h<3&&p[0]!==S&&p[h-1]!==S?[]:xn(p,S);if(h-=L.length,h<r)return Cc(e,t,nl,c.placeholder,l,p,L,l,l,r-h);var I=this&&this!==et&&this instanceof c?a:e;return yt(I,this,p)}return c}function yc(e){return function(t,r,a){var c=Me(t);if(!dt(t)){var h=ce(r,3);t=Xe(t),r=function(b){return h(c[b],b,c)}}var p=e(t,r,a);return p>-1?c[h?t[p]:p]:l}}function wc(e){return un(function(t){var r=t.length,a=r,c=Rt.prototype.thru;for(e&&t.reverse();a--;){var h=t[a];if(typeof h!="function")throw new Bt(m);if(c&&!p&&ol(h)=="wrapper")var p=new Rt([],!0)}for(a=p?a:r;++a<r;){h=t[a];var b=ol(h),S=b=="wrapper"?Uo(h):l;S&&Go(S[0])&&S[1]==(G|$|K|le)&&!S[4].length&&S[9]==1?p=p[ol(S[0])].apply(p,S[3]):p=h.length==1&&Go(h)?p[b]():p.thru(h)}return function(){var L=arguments,I=L[0];if(p&&L.length==1&&be(I))return p.plant(I).value();for(var F=0,J=r?t[F].apply(this,L):I;++F<r;)J=t[F].call(this,J);return J}})}function nl(e,t,r,a,c,h,p,b,S,L){var I=t&G,F=t&q,J=t&W,oe=t&($|Z),de=t&V,we=J?l:Zr(e);function he(){for(var xe=arguments.length,ke=M(xe),Ct=xe;Ct--;)ke[Ct]=arguments[Ct];if(oe)var ut=xr(he),kt=pg(ke,ut);if(a&&(ke=gc(ke,a,c,oe)),h&&(ke=pc(ke,h,p,oe)),xe-=kt,oe&&xe<L){var Ue=xn(ke,ut);return Cc(e,t,nl,he.placeholder,r,ke,Ue,b,S,L-xe)}var Wt=F?r:this,dn=J?Wt[e]:e;return xe=ke.length,b?ke=Cv(ke,b):de&&xe>1&&ke.reverse(),I&&S<xe&&(ke.length=S),this&&this!==et&&this instanceof he&&(dn=we||Zr(dn)),dn.apply(Wt,ke)}return he}function Sc(e,t){return function(r,a){return Mp(r,e,t(a),{})}}function rl(e,t){return function(r,a){var c;if(r===l&&a===l)return t;if(r!==l&&(c=r),a!==l){if(c===l)return a;typeof r=="string"||typeof a=="string"?(r=St(r),a=St(a)):(r=ac(r),a=ac(a)),c=e(r,a)}return c}}function Fo(e){return un(function(t){return t=Ve(t,wt(ce())),Se(function(r){var a=this;return e(t,function(c){return yt(c,a,r)})})})}function il(e,t){t=t===l?" ":St(t);var r=t.length;if(r<2)return r?Mo(t,e):t;var a=Mo(t,Wi(e/gr(t)));return mr(t)?An(Dt(a),0,e).join(""):a.slice(0,e)}function lv(e,t,r,a){var c=t&q,h=Zr(e);function p(){for(var b=-1,S=arguments.length,L=-1,I=a.length,F=M(I+S),J=this&&this!==et&&this instanceof p?h:e;++L<I;)F[L]=a[L];for(;S--;)F[L++]=arguments[++b];return yt(J,c?r:this,F)}return p}function xc(e){return function(t,r,a){return a&&typeof a!="number"&&at(t,r,a)&&(r=a=l),t=fn(t),r===l?(r=t,t=0):r=fn(r),a=a===l?t<r?1:-1:fn(a),Wp(t,r,a,e)}}function ll(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Lt(t),r=Lt(r)),e(t,r)}}function Cc(e,t,r,a,c,h,p,b,S,L){var I=t&$,F=I?p:l,J=I?l:p,oe=I?h:l,de=I?l:h;t|=I?K:Q,t&=~(I?Q:K),t&D||(t&=~(q|W));var we=[e,t,c,oe,F,de,J,b,S,L],he=r.apply(l,we);return Go(e)&&Vc(he,we),he.placeholder=a,Pc(he,e,t)}function No(e){var t=Qe[e];return function(r,a){if(r=Lt(r),a=a==null?0:rt(ye(a),292),a&&Ps(r)){var c=(Ae(r)+"e").split("e"),h=t(c[0]+"e"+(+c[1]+a));return c=(Ae(h)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return t(r)}}var ov=_r&&1/Li(new _r([,-0]))[1]==fe?function(e){return new _r(e)}:ua;function kc(e){return function(t){var r=it(t);return r==nt?po(t):r==Ne?xg(t):gg(t,e(t))}}function an(e,t,r,a,c,h,p,b){var S=t&W;if(!S&&typeof e!="function")throw new Bt(m);var L=a?a.length:0;if(L||(t&=~(K|Q),a=c=l),p=p===l?p:Ye(ye(p),0),b=b===l?b:ye(b),L-=c?c.length:0,t&Q){var I=a,F=c;a=c=l}var J=S?l:Uo(e),oe=[e,t,r,a,c,I,F,h,p,b];if(J&&wv(oe,J),e=oe[0],t=oe[1],r=oe[2],a=oe[3],c=oe[4],b=oe[9]=oe[9]===l?S?0:e.length:Ye(oe[9]-L,0),!b&&t&($|Z)&&(t&=~($|Z)),!t||t==q)var de=rv(e,t,r);else t==$||t==Z?de=iv(e,t,b):(t==K||t==(q|K))&&!c.length?de=lv(e,t,r,a):de=nl.apply(l,oe);var we=J?lc:Vc;return Pc(we(de,oe),e,t)}function Ec(e,t,r,a){return e===l||Ut(e,vr[r])&&!Re.call(a,r)?t:e}function Tc(e,t,r,a,c,h){return Fe(e)&&Fe(t)&&(h.set(t,e),ji(e,t,l,Tc,h),h.delete(t)),e}function av(e){return Jr(e)?l:e}function Ac(e,t,r,a,c,h){var p=r&B,b=e.length,S=t.length;if(b!=S&&!(p&&S>b))return!1;var L=h.get(e),I=h.get(t);if(L&&I)return L==t&&I==e;var F=-1,J=!0,oe=r&U?new Hn:l;for(h.set(e,t),h.set(t,e);++F<b;){var de=e[F],we=t[F];if(a)var he=p?a(we,de,F,t,e,h):a(de,we,F,e,t,h);if(he!==l){if(he)continue;J=!1;break}if(oe){if(!so(t,function(xe,ke){if(!Fr(oe,ke)&&(de===xe||c(de,xe,r,a,h)))return oe.push(ke)})){J=!1;break}}else if(!(de===we||c(de,we,r,a,h))){J=!1;break}}return h.delete(e),h.delete(t),J}function uv(e,t,r,a,c,h,p){switch(r){case pn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case en:return!(e.byteLength!=t.byteLength||!h(new Ni(e),new Ni(t)));case Ee:case Y:case bt:return Ut(+e,+t);case lt:return e.name==t.name&&e.message==t.message;case $t:case Ge:return e==t+"";case nt:var b=po;case Ne:var S=a&B;if(b||(b=Li),e.size!=t.size&&!S)return!1;var L=p.get(e);if(L)return L==t;a|=U,p.set(e,t);var I=Ac(b(e),b(t),a,c,h,p);return p.delete(e),I;case Ft:if(Wr)return Wr.call(e)==Wr.call(t)}return!1}function sv(e,t,r,a,c,h){var p=r&B,b=Do(e),S=b.length,L=Do(t),I=L.length;if(S!=I&&!p)return!1;for(var F=S;F--;){var J=b[F];if(!(p?J in t:Re.call(t,J)))return!1}var oe=h.get(e),de=h.get(t);if(oe&&de)return oe==t&&de==e;var we=!0;h.set(e,t),h.set(t,e);for(var he=p;++F<S;){J=b[F];var xe=e[J],ke=t[J];if(a)var Ct=p?a(ke,xe,J,t,e,h):a(xe,ke,J,e,t,h);if(!(Ct===l?xe===ke||c(xe,ke,r,a,h):Ct)){we=!1;break}he||(he=J=="constructor")}if(we&&!he){var ut=e.constructor,kt=t.constructor;ut!=kt&&"constructor"in e&&"constructor"in t&&!(typeof ut=="function"&&ut instanceof ut&&typeof kt=="function"&&kt instanceof kt)&&(we=!1)}return h.delete(e),h.delete(t),we}function un(e){return Yo(Lc(e,l,Uc),e+"")}function Do(e){return Qs(e,Xe,Ho)}function zo(e){return Qs(e,ht,Bc)}var Uo=Ki?function(e){return Ki.get(e)}:ua;function ol(e){for(var t=e.name+"",r=br[t],a=Re.call(br,t)?r.length:0;a--;){var c=r[a],h=c.func;if(h==null||h==e)return c.name}return t}function xr(e){var t=Re.call(d,"placeholder")?d:e;return t.placeholder}function ce(){var e=d.iteratee||oa;return e=e===oa?Xs:e,arguments.length?e(arguments[0],arguments[1]):e}function al(e,t){var r=e.__data__;return vv(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Wo(e){for(var t=Xe(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,Mc(c)]}return t}function Qn(e,t){var r=yg(e,t);return Zs(r)?r:l}function cv(e){var t=Re.call(e,Un),r=e[Un];try{e[Un]=l;var a=!0}catch{}var c=$i.call(e);return a&&(t?e[Un]=r:delete e[Un]),c}var Ho=_o?function(e){return e==null?[]:(e=Me(e),wn(_o(e),function(t){return Is.call(e,t)}))}:sa,Bc=_o?function(e){for(var t=[];e;)Sn(t,Ho(e)),e=Di(e);return t}:sa,it=ot;(bo&&it(new bo(new ArrayBuffer(1)))!=pn||Dr&&it(new Dr)!=nt||yo&&it(yo.resolve())!=gn||_r&&it(new _r)!=Ne||zr&&it(new zr)!=Pn)&&(it=function(e){var t=ot(e),r=t==ct?e.constructor:l,a=r?Yn(r):"";if(a)switch(a){case Kg:return pn;case Gg:return nt;case Qg:return gn;case Yg:return Ne;case Zg:return Pn}return t});function fv(e,t,r){for(var a=-1,c=r.length;++a<c;){var h=r[a],p=h.size;switch(h.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=rt(t,e+p);break;case"takeRight":e=Ye(e,t-p);break}}return{start:e,end:t}}function dv(e){var t=e.match(Zl);return t?t[1].split(Xl):[]}function Rc(e,t,r){t=Tn(t,e);for(var a=-1,c=t.length,h=!1;++a<c;){var p=Zt(t[a]);if(!(h=e!=null&&r(e,p)))break;e=e[p]}return h||++a!=c?h:(c=e==null?0:e.length,!!c&&ml(c)&&sn(p,c)&&(be(e)||Zn(e)))}function hv(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function qc(e){return typeof e.constructor=="function"&&!Xr(e)?yr(Di(e)):{}}function mv(e,t,r){var a=e.constructor;switch(t){case en:return $o(e);case Ee:case Y:return new a(+e);case pn:return Xp(e,r);case ur:case Nt:case Gt:case vn:case Lr:case $n:case Fn:case sr:case cr:return hc(e,r);case nt:return new a;case bt:case Ge:return new a(e);case $t:return jp(e);case Ne:return new a;case Ft:return Jp(e)}}function gv(e,t){var r=t.length;if(!r)return e;var a=r-1;return t[a]=(r>1?"& ":"")+t[a],t=t.join(r>2?", ":" "),e.replace(Yl,`{
9
+ /* [wrapped with `+t+`] */
10
+ `)}function pv(e){return be(e)||Zn(e)||!!(Vs&&e&&e[Vs])}function sn(e,t){var r=typeof e;return t=t??H,!!t&&(r=="number"||r!="symbol"&&Bi.test(e))&&e>-1&&e%1==0&&e<t}function at(e,t,r){if(!Fe(r))return!1;var a=typeof t;return(a=="number"?dt(r)&&sn(t,r.length):a=="string"&&t in r)?Ut(r[t],e):!1}function Ko(e,t){if(be(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||xt(e)?!0:_n.test(e)||!Dn.test(e)||t!=null&&e in Me(t)}function vv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Go(e){var t=ol(e),r=d[t];if(typeof r!="function"||!(t in Ce.prototype))return!1;if(e===r)return!0;var a=Uo(r);return!!a&&e===a[0]}function _v(e){return!!Ms&&Ms in e}var bv=Vi?cn:ca;function Xr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||vr;return e===r}function Mc(e){return e===e&&!Fe(e)}function Oc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==l||e in Me(r))}}function yv(e){var t=dl(e,function(a){return r.size===A&&r.clear(),a}),r=t.cache;return t}function wv(e,t){var r=e[1],a=t[1],c=r|a,h=c<(q|W|G),p=a==G&&r==$||a==G&&r==le&&e[7].length<=t[8]||a==(G|le)&&t[7].length<=t[8]&&r==$;if(!(h||p))return e;a&q&&(e[2]=t[2],c|=r&q?0:D);var b=t[3];if(b){var S=e[3];e[3]=S?gc(S,b,t[4]):b,e[4]=S?xn(e[3],v):t[4]}return b=t[5],b&&(S=e[5],e[5]=S?pc(S,b,t[6]):b,e[6]=S?xn(e[5],v):t[6]),b=t[7],b&&(e[7]=b),a&G&&(e[8]=e[8]==null?t[8]:rt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function Sv(e){var t=[];if(e!=null)for(var r in Me(e))t.push(r);return t}function xv(e){return $i.call(e)}function Lc(e,t,r){return t=Ye(t===l?e.length-1:t,0),function(){for(var a=arguments,c=-1,h=Ye(a.length-t,0),p=M(h);++c<h;)p[c]=a[t+c];c=-1;for(var b=M(t+1);++c<t;)b[c]=a[c];return b[t]=r(p),yt(e,this,b)}}function Ic(e,t){return t.length<2?e:Gn(e,Mt(t,0,-1))}function Cv(e,t){for(var r=e.length,a=rt(t.length,r),c=ft(e);a--;){var h=t[a];e[a]=sn(h,r)?c[h]:l}return e}function Qo(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Vc=$c(lc),jr=Fg||function(e,t){return et.setTimeout(e,t)},Yo=$c(Gp);function Pc(e,t,r){var a=t+"";return Yo(e,gv(a,kv(dv(a),r)))}function $c(e){var t=0,r=0;return function(){var a=Ug(),c=te-(a-r);if(r=a,c>0){if(++t>=E)return arguments[0]}else t=0;return e.apply(l,arguments)}}function ul(e,t){var r=-1,a=e.length,c=a-1;for(t=t===l?a:t;++r<t;){var h=qo(r,c),p=e[h];e[h]=e[r],e[r]=p}return e.length=t,e}var Fc=yv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Kl,function(r,a,c,h){t.push(c?h.replace(yn,"$1"):a||r)}),t});function Zt(e){if(typeof e=="string"||xt(e))return e;var t=e+"";return t=="0"&&1/e==-fe?"-0":t}function Yn(e){if(e!=null){try{return Pi.call(e)}catch{}try{return e+""}catch{}}return""}function kv(e,t){return At(ve,function(r){var a="_."+r[0];t&r[1]&&!Mi(e,a)&&e.push(a)}),e.sort()}function Nc(e){if(e instanceof Ce)return e.clone();var t=new Rt(e.__wrapped__,e.__chain__);return t.__actions__=ft(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ev(e,t,r){(r?at(e,t,r):t===l)?t=1:t=Ye(ye(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var c=0,h=0,p=M(Wi(a/t));c<a;)p[h++]=Mt(e,c,c+=t);return p}function Tv(e){for(var t=-1,r=e==null?0:e.length,a=0,c=[];++t<r;){var h=e[t];h&&(c[a++]=h)}return c}function Av(){var e=arguments.length;if(!e)return[];for(var t=M(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Sn(be(r)?ft(r):[r],tt(t,1))}var Bv=Se(function(e,t){return ze(e)?Kr(e,tt(t,1,ze,!0)):[]}),Rv=Se(function(e,t){var r=Ot(t);return ze(r)&&(r=l),ze(e)?Kr(e,tt(t,1,ze,!0),ce(r,2)):[]}),qv=Se(function(e,t){var r=Ot(t);return ze(r)&&(r=l),ze(e)?Kr(e,tt(t,1,ze,!0),l,r):[]});function Mv(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===l?1:ye(t),Mt(e,t<0?0:t,a)):[]}function Ov(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===l?1:ye(t),t=a-t,Mt(e,0,t<0?0:t)):[]}function Lv(e,t){return e&&e.length?el(e,ce(t,3),!0,!0):[]}function Iv(e,t){return e&&e.length?el(e,ce(t,3),!0):[]}function Vv(e,t,r,a){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&at(e,t,r)&&(r=0,a=c),Ap(e,t,r,a)):[]}function Dc(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:ye(r);return c<0&&(c=Ye(a+c,0)),Oi(e,ce(t,3),c)}function zc(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a-1;return r!==l&&(c=ye(r),c=r<0?Ye(a+c,0):rt(c,a-1)),Oi(e,ce(t,3),c,!0)}function Uc(e){var t=e==null?0:e.length;return t?tt(e,1):[]}function Pv(e){var t=e==null?0:e.length;return t?tt(e,fe):[]}function $v(e,t){var r=e==null?0:e.length;return r?(t=t===l?1:ye(t),tt(e,t)):[]}function Fv(e){for(var t=-1,r=e==null?0:e.length,a={};++t<r;){var c=e[t];a[c[0]]=c[1]}return a}function Wc(e){return e&&e.length?e[0]:l}function Nv(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:ye(r);return c<0&&(c=Ye(a+c,0)),hr(e,t,c)}function Dv(e){var t=e==null?0:e.length;return t?Mt(e,0,-1):[]}var zv=Se(function(e){var t=Ve(e,Vo);return t.length&&t[0]===e[0]?Eo(t):[]}),Uv=Se(function(e){var t=Ot(e),r=Ve(e,Vo);return t===Ot(r)?t=l:r.pop(),r.length&&r[0]===e[0]?Eo(r,ce(t,2)):[]}),Wv=Se(function(e){var t=Ot(e),r=Ve(e,Vo);return t=typeof t=="function"?t:l,t&&r.pop(),r.length&&r[0]===e[0]?Eo(r,l,t):[]});function Hv(e,t){return e==null?"":Dg.call(e,t)}function Ot(e){var t=e==null?0:e.length;return t?e[t-1]:l}function Kv(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a;return r!==l&&(c=ye(r),c=c<0?Ye(a+c,0):rt(c,a-1)),t===t?kg(e,t,c):Oi(e,Cs,c,!0)}function Gv(e,t){return e&&e.length?tc(e,ye(t)):l}var Qv=Se(Hc);function Hc(e,t){return e&&e.length&&t&&t.length?Ro(e,t):e}function Yv(e,t,r){return e&&e.length&&t&&t.length?Ro(e,t,ce(r,2)):e}function Zv(e,t,r){return e&&e.length&&t&&t.length?Ro(e,t,l,r):e}var Xv=un(function(e,t){var r=e==null?0:e.length,a=So(e,t);return ic(e,Ve(t,function(c){return sn(c,r)?+c:c}).sort(mc)),a});function jv(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],h=e.length;for(t=ce(t,3);++a<h;){var p=e[a];t(p,a,e)&&(r.push(p),c.push(a))}return ic(e,c),r}function Zo(e){return e==null?e:Hg.call(e)}function Jv(e,t,r){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&at(e,t,r)?(t=0,r=a):(t=t==null?0:ye(t),r=r===l?a:ye(r)),Mt(e,t,r)):[]}function e0(e,t){return Ji(e,t)}function t0(e,t,r){return Oo(e,t,ce(r,2))}function n0(e,t){var r=e==null?0:e.length;if(r){var a=Ji(e,t);if(a<r&&Ut(e[a],t))return a}return-1}function r0(e,t){return Ji(e,t,!0)}function i0(e,t,r){return Oo(e,t,ce(r,2),!0)}function l0(e,t){var r=e==null?0:e.length;if(r){var a=Ji(e,t,!0)-1;if(Ut(e[a],t))return a}return-1}function o0(e){return e&&e.length?oc(e):[]}function a0(e,t){return e&&e.length?oc(e,ce(t,2)):[]}function u0(e){var t=e==null?0:e.length;return t?Mt(e,1,t):[]}function s0(e,t,r){return e&&e.length?(t=r||t===l?1:ye(t),Mt(e,0,t<0?0:t)):[]}function c0(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===l?1:ye(t),t=a-t,Mt(e,t<0?0:t,a)):[]}function f0(e,t){return e&&e.length?el(e,ce(t,3),!1,!0):[]}function d0(e,t){return e&&e.length?el(e,ce(t,3)):[]}var h0=Se(function(e){return En(tt(e,1,ze,!0))}),m0=Se(function(e){var t=Ot(e);return ze(t)&&(t=l),En(tt(e,1,ze,!0),ce(t,2))}),g0=Se(function(e){var t=Ot(e);return t=typeof t=="function"?t:l,En(tt(e,1,ze,!0),l,t)});function p0(e){return e&&e.length?En(e):[]}function v0(e,t){return e&&e.length?En(e,ce(t,2)):[]}function _0(e,t){return t=typeof t=="function"?t:l,e&&e.length?En(e,l,t):[]}function Xo(e){if(!(e&&e.length))return[];var t=0;return e=wn(e,function(r){if(ze(r))return t=Ye(r.length,t),!0}),mo(t,function(r){return Ve(e,co(r))})}function Kc(e,t){if(!(e&&e.length))return[];var r=Xo(e);return t==null?r:Ve(r,function(a){return yt(t,l,a)})}var b0=Se(function(e,t){return ze(e)?Kr(e,t):[]}),y0=Se(function(e){return Io(wn(e,ze))}),w0=Se(function(e){var t=Ot(e);return ze(t)&&(t=l),Io(wn(e,ze),ce(t,2))}),S0=Se(function(e){var t=Ot(e);return t=typeof t=="function"?t:l,Io(wn(e,ze),l,t)}),x0=Se(Xo);function C0(e,t){return cc(e||[],t||[],Hr)}function k0(e,t){return cc(e||[],t||[],Yr)}var E0=Se(function(e){var t=e.length,r=t>1?e[t-1]:l;return r=typeof r=="function"?(e.pop(),r):l,Kc(e,r)});function Gc(e){var t=d(e);return t.__chain__=!0,t}function T0(e,t){return t(e),e}function sl(e,t){return t(e)}var A0=un(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(h){return So(h,e)};return t>1||this.__actions__.length||!(a instanceof Ce)||!sn(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:sl,args:[c],thisArg:l}),new Rt(a,this.__chain__).thru(function(h){return t&&!h.length&&h.push(l),h}))});function B0(){return Gc(this)}function R0(){return new Rt(this.value(),this.__chain__)}function q0(){this.__values__===l&&(this.__values__=uf(this.value()));var e=this.__index__>=this.__values__.length,t=e?l:this.__values__[this.__index__++];return{done:e,value:t}}function M0(){return this}function O0(e){for(var t,r=this;r instanceof Qi;){var a=Nc(r);a.__index__=0,a.__values__=l,t?c.__wrapped__=a:t=a;var c=a;r=r.__wrapped__}return c.__wrapped__=e,t}function L0(){var e=this.__wrapped__;if(e instanceof Ce){var t=e;return this.__actions__.length&&(t=new Ce(this)),t=t.reverse(),t.__actions__.push({func:sl,args:[Zo],thisArg:l}),new Rt(t,this.__chain__)}return this.thru(Zo)}function I0(){return sc(this.__wrapped__,this.__actions__)}var V0=tl(function(e,t,r){Re.call(e,r)?++e[r]:on(e,r,1)});function P0(e,t,r){var a=be(e)?Ss:Tp;return r&&at(e,t,r)&&(t=l),a(e,ce(t,3))}function $0(e,t){var r=be(e)?wn:Ks;return r(e,ce(t,3))}var F0=yc(Dc),N0=yc(zc);function D0(e,t){return tt(cl(e,t),1)}function z0(e,t){return tt(cl(e,t),fe)}function U0(e,t,r){return r=r===l?1:ye(r),tt(cl(e,t),r)}function Qc(e,t){var r=be(e)?At:kn;return r(e,ce(t,3))}function Yc(e,t){var r=be(e)?ug:Hs;return r(e,ce(t,3))}var W0=tl(function(e,t,r){Re.call(e,r)?e[r].push(t):on(e,r,[t])});function H0(e,t,r,a){e=dt(e)?e:kr(e),r=r&&!a?ye(r):0;var c=e.length;return r<0&&(r=Ye(c+r,0)),gl(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&hr(e,t,r)>-1}var K0=Se(function(e,t,r){var a=-1,c=typeof t=="function",h=dt(e)?M(e.length):[];return kn(e,function(p){h[++a]=c?yt(t,p,r):Gr(p,t,r)}),h}),G0=tl(function(e,t,r){on(e,r,t)});function cl(e,t){var r=be(e)?Ve:js;return r(e,ce(t,3))}function Q0(e,t,r,a){return e==null?[]:(be(t)||(t=t==null?[]:[t]),r=a?l:r,be(r)||(r=r==null?[]:[r]),nc(e,t,r))}var Y0=tl(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Z0(e,t,r){var a=be(e)?uo:Es,c=arguments.length<3;return a(e,ce(t,4),r,c,kn)}function X0(e,t,r){var a=be(e)?sg:Es,c=arguments.length<3;return a(e,ce(t,4),r,c,Hs)}function j0(e,t){var r=be(e)?wn:Ks;return r(e,hl(ce(t,3)))}function J0(e){var t=be(e)?Ds:Hp;return t(e)}function e_(e,t,r){(r?at(e,t,r):t===l)?t=1:t=ye(t);var a=be(e)?Sp:Kp;return a(e,t)}function t_(e){var t=be(e)?xp:Qp;return t(e)}function n_(e){if(e==null)return 0;if(dt(e))return gl(e)?gr(e):e.length;var t=it(e);return t==nt||t==Ne?e.size:Ao(e).length}function r_(e,t,r){var a=be(e)?so:Yp;return r&&at(e,t,r)&&(t=l),a(e,ce(t,3))}var i_=Se(function(e,t){if(e==null)return[];var r=t.length;return r>1&&at(e,t[0],t[1])?t=[]:r>2&&at(t[0],t[1],t[2])&&(t=[t[0]]),nc(e,tt(t,1),[])}),fl=$g||function(){return et.Date.now()};function l_(e,t){if(typeof t!="function")throw new Bt(m);return e=ye(e),function(){if(--e<1)return t.apply(this,arguments)}}function Zc(e,t,r){return t=r?l:t,t=e&&t==null?e.length:t,an(e,G,l,l,l,l,t)}function Xc(e,t){var r;if(typeof t!="function")throw new Bt(m);return e=ye(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=l),r}}var jo=Se(function(e,t,r){var a=q;if(r.length){var c=xn(r,xr(jo));a|=K}return an(e,a,t,r,c)}),jc=Se(function(e,t,r){var a=q|W;if(r.length){var c=xn(r,xr(jc));a|=K}return an(t,a,e,r,c)});function Jc(e,t,r){t=r?l:t;var a=an(e,$,l,l,l,l,l,t);return a.placeholder=Jc.placeholder,a}function ef(e,t,r){t=r?l:t;var a=an(e,Z,l,l,l,l,l,t);return a.placeholder=ef.placeholder,a}function tf(e,t,r){var a,c,h,p,b,S,L=0,I=!1,F=!1,J=!0;if(typeof e!="function")throw new Bt(m);t=Lt(t)||0,Fe(r)&&(I=!!r.leading,F="maxWait"in r,h=F?Ye(Lt(r.maxWait)||0,t):h,J="trailing"in r?!!r.trailing:J);function oe(Ue){var Wt=a,dn=c;return a=c=l,L=Ue,p=e.apply(dn,Wt),p}function de(Ue){return L=Ue,b=jr(xe,t),I?oe(Ue):p}function we(Ue){var Wt=Ue-S,dn=Ue-L,wf=t-Wt;return F?rt(wf,h-dn):wf}function he(Ue){var Wt=Ue-S,dn=Ue-L;return S===l||Wt>=t||Wt<0||F&&dn>=h}function xe(){var Ue=fl();if(he(Ue))return ke(Ue);b=jr(xe,we(Ue))}function ke(Ue){return b=l,J&&a?oe(Ue):(a=c=l,p)}function Ct(){b!==l&&fc(b),L=0,a=S=c=b=l}function ut(){return b===l?p:ke(fl())}function kt(){var Ue=fl(),Wt=he(Ue);if(a=arguments,c=this,S=Ue,Wt){if(b===l)return de(S);if(F)return fc(b),b=jr(xe,t),oe(S)}return b===l&&(b=jr(xe,t)),p}return kt.cancel=Ct,kt.flush=ut,kt}var o_=Se(function(e,t){return Ws(e,1,t)}),a_=Se(function(e,t,r){return Ws(e,Lt(t)||0,r)});function u_(e){return an(e,V)}function dl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Bt(m);var r=function(){var a=arguments,c=t?t.apply(this,a):a[0],h=r.cache;if(h.has(c))return h.get(c);var p=e.apply(this,a);return r.cache=h.set(c,p)||h,p};return r.cache=new(dl.Cache||ln),r}dl.Cache=ln;function hl(e){if(typeof e!="function")throw new Bt(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function s_(e){return Xc(2,e)}var c_=Zp(function(e,t){t=t.length==1&&be(t[0])?Ve(t[0],wt(ce())):Ve(tt(t,1),wt(ce()));var r=t.length;return Se(function(a){for(var c=-1,h=rt(a.length,r);++c<h;)a[c]=t[c].call(this,a[c]);return yt(e,this,a)})}),Jo=Se(function(e,t){var r=xn(t,xr(Jo));return an(e,K,l,t,r)}),nf=Se(function(e,t){var r=xn(t,xr(nf));return an(e,Q,l,t,r)}),f_=un(function(e,t){return an(e,le,l,l,l,t)});function d_(e,t){if(typeof e!="function")throw new Bt(m);return t=t===l?t:ye(t),Se(e,t)}function h_(e,t){if(typeof e!="function")throw new Bt(m);return t=t==null?0:Ye(ye(t),0),Se(function(r){var a=r[t],c=An(r,0,t);return a&&Sn(c,a),yt(e,this,c)})}function m_(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new Bt(m);return Fe(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),tf(e,t,{leading:a,maxWait:t,trailing:c})}function g_(e){return Zc(e,1)}function p_(e,t){return Jo(Po(t),e)}function v_(){if(!arguments.length)return[];var e=arguments[0];return be(e)?e:[e]}function __(e){return qt(e,y)}function b_(e,t){return t=typeof t=="function"?t:l,qt(e,y,t)}function y_(e){return qt(e,C|y)}function w_(e,t){return t=typeof t=="function"?t:l,qt(e,C|y,t)}function S_(e,t){return t==null||Us(e,t,Xe(t))}function Ut(e,t){return e===t||e!==e&&t!==t}var x_=ll(ko),C_=ll(function(e,t){return e>=t}),Zn=Ys(function(){return arguments}())?Ys:function(e){return De(e)&&Re.call(e,"callee")&&!Is.call(e,"callee")},be=M.isArray,k_=ps?wt(ps):Op;function dt(e){return e!=null&&ml(e.length)&&!cn(e)}function ze(e){return De(e)&&dt(e)}function E_(e){return e===!0||e===!1||De(e)&&ot(e)==Ee}var Bn=Ng||ca,T_=vs?wt(vs):Lp;function A_(e){return De(e)&&e.nodeType===1&&!Jr(e)}function B_(e){if(e==null)return!0;if(dt(e)&&(be(e)||typeof e=="string"||typeof e.splice=="function"||Bn(e)||Cr(e)||Zn(e)))return!e.length;var t=it(e);if(t==nt||t==Ne)return!e.size;if(Xr(e))return!Ao(e).length;for(var r in e)if(Re.call(e,r))return!1;return!0}function R_(e,t){return Qr(e,t)}function q_(e,t,r){r=typeof r=="function"?r:l;var a=r?r(e,t):l;return a===l?Qr(e,t,l,r):!!a}function ea(e){if(!De(e))return!1;var t=ot(e);return t==lt||t==$e||typeof e.message=="string"&&typeof e.name=="string"&&!Jr(e)}function M_(e){return typeof e=="number"&&Ps(e)}function cn(e){if(!Fe(e))return!1;var t=ot(e);return t==Pt||t==_t||t==ne||t==Or}function rf(e){return typeof e=="number"&&e==ye(e)}function ml(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=H}function Fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function De(e){return e!=null&&typeof e=="object"}var lf=_s?wt(_s):Vp;function O_(e,t){return e===t||To(e,t,Wo(t))}function L_(e,t,r){return r=typeof r=="function"?r:l,To(e,t,Wo(t),r)}function I_(e){return of(e)&&e!=+e}function V_(e){if(bv(e))throw new pe(f);return Zs(e)}function P_(e){return e===null}function $_(e){return e==null}function of(e){return typeof e=="number"||De(e)&&ot(e)==bt}function Jr(e){if(!De(e)||ot(e)!=ct)return!1;var t=Di(e);if(t===null)return!0;var r=Re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Pi.call(r)==Lg}var ta=bs?wt(bs):Pp;function F_(e){return rf(e)&&e>=-H&&e<=H}var af=ys?wt(ys):$p;function gl(e){return typeof e=="string"||!be(e)&&De(e)&&ot(e)==Ge}function xt(e){return typeof e=="symbol"||De(e)&&ot(e)==Ft}var Cr=ws?wt(ws):Fp;function N_(e){return e===l}function D_(e){return De(e)&&it(e)==Pn}function z_(e){return De(e)&&ot(e)==yi}var U_=ll(Bo),W_=ll(function(e,t){return e<=t});function uf(e){if(!e)return[];if(dt(e))return gl(e)?Dt(e):ft(e);if(Nr&&e[Nr])return Sg(e[Nr]());var t=it(e),r=t==nt?po:t==Ne?Li:kr;return r(e)}function fn(e){if(!e)return e===0?e:0;if(e=Lt(e),e===fe||e===-fe){var t=e<0?-1:1;return t*se}return e===e?e:0}function ye(e){var t=fn(e),r=t%1;return t===t?r?t-r:t:0}function sf(e){return e?Kn(ye(e),0,R):0}function Lt(e){if(typeof e=="number")return e;if(xt(e))return ge;if(Fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ts(e);var r=Jl.test(e);return r||Ai.test(e)?lg(e.slice(2),r?2:8):$r.test(e)?ge:+e}function cf(e){return Yt(e,ht(e))}function H_(e){return e?Kn(ye(e),-H,H):e===0?e:0}function Ae(e){return e==null?"":St(e)}var K_=wr(function(e,t){if(Xr(t)||dt(t)){Yt(t,Xe(t),e);return}for(var r in t)Re.call(t,r)&&Hr(e,r,t[r])}),ff=wr(function(e,t){Yt(t,ht(t),e)}),pl=wr(function(e,t,r,a){Yt(t,ht(t),e,a)}),G_=wr(function(e,t,r,a){Yt(t,Xe(t),e,a)}),Q_=un(So);function Y_(e,t){var r=yr(e);return t==null?r:zs(r,t)}var Z_=Se(function(e,t){e=Me(e);var r=-1,a=t.length,c=a>2?t[2]:l;for(c&&at(t[0],t[1],c)&&(a=1);++r<a;)for(var h=t[r],p=ht(h),b=-1,S=p.length;++b<S;){var L=p[b],I=e[L];(I===l||Ut(I,vr[L])&&!Re.call(e,L))&&(e[L]=h[L])}return e}),X_=Se(function(e){return e.push(l,Tc),yt(df,l,e)});function j_(e,t){return xs(e,ce(t,3),Qt)}function J_(e,t){return xs(e,ce(t,3),Co)}function eb(e,t){return e==null?e:xo(e,ce(t,3),ht)}function tb(e,t){return e==null?e:Gs(e,ce(t,3),ht)}function nb(e,t){return e&&Qt(e,ce(t,3))}function rb(e,t){return e&&Co(e,ce(t,3))}function ib(e){return e==null?[]:Xi(e,Xe(e))}function lb(e){return e==null?[]:Xi(e,ht(e))}function na(e,t,r){var a=e==null?l:Gn(e,t);return a===l?r:a}function ob(e,t){return e!=null&&Rc(e,t,Bp)}function ra(e,t){return e!=null&&Rc(e,t,Rp)}var ab=Sc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=$i.call(t)),e[t]=r},la(mt)),ub=Sc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=$i.call(t)),Re.call(e,t)?e[t].push(r):e[t]=[r]},ce),sb=Se(Gr);function Xe(e){return dt(e)?Ns(e):Ao(e)}function ht(e){return dt(e)?Ns(e,!0):Np(e)}function cb(e,t){var r={};return t=ce(t,3),Qt(e,function(a,c,h){on(r,t(a,c,h),a)}),r}function fb(e,t){var r={};return t=ce(t,3),Qt(e,function(a,c,h){on(r,c,t(a,c,h))}),r}var db=wr(function(e,t,r){ji(e,t,r)}),df=wr(function(e,t,r,a){ji(e,t,r,a)}),hb=un(function(e,t){var r={};if(e==null)return r;var a=!1;t=Ve(t,function(h){return h=Tn(h,e),a||(a=h.length>1),h}),Yt(e,zo(e),r),a&&(r=qt(r,C|k|y,av));for(var c=t.length;c--;)Lo(r,t[c]);return r});function mb(e,t){return hf(e,hl(ce(t)))}var gb=un(function(e,t){return e==null?{}:zp(e,t)});function hf(e,t){if(e==null)return{};var r=Ve(zo(e),function(a){return[a]});return t=ce(t),rc(e,r,function(a,c){return t(a,c[0])})}function pb(e,t,r){t=Tn(t,e);var a=-1,c=t.length;for(c||(c=1,e=l);++a<c;){var h=e==null?l:e[Zt(t[a])];h===l&&(a=c,h=r),e=cn(h)?h.call(e):h}return e}function vb(e,t,r){return e==null?e:Yr(e,t,r)}function _b(e,t,r,a){return a=typeof a=="function"?a:l,e==null?e:Yr(e,t,r,a)}var mf=kc(Xe),gf=kc(ht);function bb(e,t,r){var a=be(e),c=a||Bn(e)||Cr(e);if(t=ce(t,4),r==null){var h=e&&e.constructor;c?r=a?new h:[]:Fe(e)?r=cn(h)?yr(Di(e)):{}:r={}}return(c?At:Qt)(e,function(p,b,S){return t(r,p,b,S)}),r}function yb(e,t){return e==null?!0:Lo(e,t)}function wb(e,t,r){return e==null?e:uc(e,t,Po(r))}function Sb(e,t,r,a){return a=typeof a=="function"?a:l,e==null?e:uc(e,t,Po(r),a)}function kr(e){return e==null?[]:go(e,Xe(e))}function xb(e){return e==null?[]:go(e,ht(e))}function Cb(e,t,r){return r===l&&(r=t,t=l),r!==l&&(r=Lt(r),r=r===r?r:0),t!==l&&(t=Lt(t),t=t===t?t:0),Kn(Lt(e),t,r)}function kb(e,t,r){return t=fn(t),r===l?(r=t,t=0):r=fn(r),e=Lt(e),qp(e,t,r)}function Eb(e,t,r){if(r&&typeof r!="boolean"&&at(e,t,r)&&(t=r=l),r===l&&(typeof t=="boolean"?(r=t,t=l):typeof e=="boolean"&&(r=e,e=l)),e===l&&t===l?(e=0,t=1):(e=fn(e),t===l?(t=e,e=0):t=fn(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=$s();return rt(e+c*(t-e+ig("1e-"+((c+"").length-1))),t)}return qo(e,t)}var Tb=Sr(function(e,t,r){return t=t.toLowerCase(),e+(r?pf(t):t)});function pf(e){return ia(Ae(e).toLowerCase())}function vf(e){return e=Ae(e),e&&e.replace(Ri,vg).replace(Qm,"")}function Ab(e,t,r){e=Ae(e),t=St(t);var a=e.length;r=r===l?a:Kn(ye(r),0,a);var c=r;return r-=t.length,r>=0&&e.slice(r,c)==t}function Bb(e){return e=Ae(e),e&&ki.test(e)?e.replace(Ci,_g):e}function Rb(e){return e=Ae(e),e&&Gl.test(e)?e.replace(Vr,"\\$&"):e}var qb=Sr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Mb=Sr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Ob=bc("toLowerCase");function Lb(e,t,r){e=Ae(e),t=ye(t);var a=t?gr(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return il(Hi(c),r)+e+il(Wi(c),r)}function Ib(e,t,r){e=Ae(e),t=ye(t);var a=t?gr(e):0;return t&&a<t?e+il(t-a,r):e}function Vb(e,t,r){e=Ae(e),t=ye(t);var a=t?gr(e):0;return t&&a<t?il(t-a,r)+e:e}function Pb(e,t,r){return r||t==null?t=0:t&&(t=+t),Wg(Ae(e).replace(Pr,""),t||0)}function $b(e,t,r){return(r?at(e,t,r):t===l)?t=1:t=ye(t),Mo(Ae(e),t)}function Fb(){var e=arguments,t=Ae(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Nb=Sr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function Db(e,t,r){return r&&typeof r!="number"&&at(e,t,r)&&(t=r=l),r=r===l?R:r>>>0,r?(e=Ae(e),e&&(typeof t=="string"||t!=null&&!ta(t))&&(t=St(t),!t&&mr(e))?An(Dt(e),0,r):e.split(t,r)):[]}var zb=Sr(function(e,t,r){return e+(r?" ":"")+ia(t)});function Ub(e,t,r){return e=Ae(e),r=r==null?0:Kn(ye(r),0,e.length),t=St(t),e.slice(r,r+t.length)==t}function Wb(e,t,r){var a=d.templateSettings;r&&at(e,t,r)&&(t=l),e=Ae(e),t=pl({},t,a,Ec);var c=pl({},t.imports,a.imports,Ec),h=Xe(c),p=go(c,h),b,S,L=0,I=t.interpolate||_,F="__p += '",J=vo((t.escape||_).source+"|"+I.source+"|"+(I===Nn?tn:_).source+"|"+(t.evaluate||_).source+"|$","g"),oe="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jm+"]")+`
11
+ `;e.replace(J,function(he,xe,ke,Ct,ut,kt){return ke||(ke=Ct),F+=e.slice(L,kt).replace(ee,bg),xe&&(b=!0,F+=`' +
12
12
  __e(`+xe+`) +
13
- '`),ut&&(E=!0,z+=`';
13
+ '`),ut&&(S=!0,F+=`';
14
14
  `+ut+`;
15
- __p += '`),ke&&(z+=`' +
15
+ __p += '`),ke&&(F+=`' +
16
16
  ((__t = (`+ke+`)) == null ? '' : __t) +
17
- '`),N=kt+he.length,he}),z+=`';
18
- `;var de=Re.call(n,"variable")&&n.variable;if(!de)z=`with (obj) {
19
- `+z+`
17
+ '`),L=kt+he.length,he}),F+=`';
18
+ `;var de=Re.call(t,"variable")&&t.variable;if(!de)F=`with (obj) {
19
+ `+F+`
20
20
  }
21
- `;else if(yn.test(de))throw new pe(g);z=(E?z.replace(Bi,""):z).replace(Ri,"$1").replace(Oi,"$1;"),z="function("+(de||"obj")+`) {
21
+ `;else if(bn.test(de))throw new pe(g);F=(S?F.replace(wi,""):F).replace(Si,"$1").replace(xi,"$1;"),F="function("+(de||"obj")+`) {
22
22
  `+(de?"":`obj || (obj = {});
23
- `)+"var __t, __p = ''"+(y?", __e = _.escape":"")+(E?`, __j = Array.prototype.join;
23
+ `)+"var __t, __p = ''"+(b?", __e = _.escape":"")+(S?`, __j = Array.prototype.join;
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
- `)+z+`return __p
27
- }`;var we=If(function(){return Ae(h,ue+"return "+z).apply(o,p)});if(we.source=z,ha(we))throw we;return we}function vy(e){return Te(e).toLowerCase()}function _y(e){return Te(e).toUpperCase()}function by(e,n,r){if(e=Te(e),e&&(r||n===o))return Ws(e);if(!e||!(n=St(n)))return e;var a=zt(e),c=zt(n),h=Hs(a,c),p=Ks(a,c)+1;return Bn(a,h,p).join("")}function yy(e,n,r){if(e=Te(e),e&&(r||n===o))return e.slice(0,js(e)+1);if(!e||!(n=St(n)))return e;var a=zt(e),c=Ks(a,zt(n))+1;return Bn(a,0,c).join("")}function wy(e,n,r){if(e=Te(e),e&&(r||n===o))return e.replace(Ur,"");if(!e||!(n=St(n)))return e;var a=zt(e),c=Hs(a,zt(n));return Bn(a,c).join("")}function Sy(e,n){var r=T,a=V;if($e(n)){var c="separator"in n?n.separator:c;r="length"in n?ye(n.length):r,a="omission"in n?St(n.omission):a}e=Te(e);var h=e.length;if(_r(e)){var p=zt(e);h=p.length}if(r>=h)return e;var y=r-br(a);if(y<1)return a;var E=p?Bn(p,0,y).join(""):e.slice(0,y);if(c===o)return E+a;if(p&&(y+=E.length-y),ma(c)){if(e.slice(y).search(c)){var N,$=E;for(c.global||(c=Rl(c.source,Te(rn.exec(c))+"g")),c.lastIndex=0;N=c.exec($);)var z=N.index;E=E.slice(0,z===o?y:z)}}else if(e.indexOf(St(c),y)!=y){var ee=E.lastIndexOf(c);ee>-1&&(E=E.slice(0,ee))}return E+a}function xy(e){return e=Te(e),e&&il.test(e)?e.replace(Dr,Xg):e}var Cy=Er(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),va=Ic("toUpperCase");function Lf(e,n,r){return e=Te(e),n=r?o:n,n===o?Gg(e)?tp(e):Ng(e):e.match(n)||[]}var If=Se(function(e,n){try{return yt(e,o,n)}catch(r){return ha(r)?r:new pe(r)}}),ky=sn(function(e,n){return Bt(n,function(r){r=Yt(r),an(e,r,fa(e[r],e))}),e});function Ey(e){var n=e==null?0:e.length,r=fe();return e=n?Ie(e,function(a){if(typeof a[1]!="function")throw new Rt(m);return[r(a[0]),a[1]]}):[],Se(function(a){for(var c=-1;++c<n;){var h=e[c];if(yt(h[0],this,a))return yt(h[1],this,a)}})}function Ay(e){return Xp(qt(e,x))}function _a(e){return function(){return e}}function Ty(e,n){return e==null||e!==e?n:e}var By=Nc(),Ry=Nc(!0);function mt(e){return e}function ba(e){return mc(typeof e=="function"?e:qt(e,x))}function Oy(e){return pc(qt(e,x))}function qy(e,n){return vc(e,qt(n,x))}var My=Se(function(e,n){return function(r){return Jr(r,e,n)}}),Vy=Se(function(e,n){return function(r){return Jr(e,r,n)}});function ya(e,n,r){var a=Ze(n),c=oo(n,a);r==null&&!($e(n)&&(c.length||!a.length))&&(r=n,n=e,e=this,c=oo(n,Ze(n)));var h=!($e(r)&&"chain"in r)||!!r.chain,p=fn(e);return Bt(c,function(y){var E=n[y];e[y]=E,p&&(e.prototype[y]=function(){var N=this.__chain__;if(h||N){var $=e(this.__wrapped__),z=$.__actions__=ft(this.__actions__);return z.push({func:E,args:arguments,thisArg:e}),$.__chain__=N,$}return E.apply(e,xn([this.value()],arguments))})}),e}function Ly(){return et._===this&&(et._=ap),this}function wa(){}function Iy(e){return e=ye(e),Se(function(n){return _c(n,e)})}var Py=Xl(Ie),Ny=Xl($s),$y=Xl(xl);function Pf(e){return oa(e)?Cl(Yt(e)):gv(e)}function Fy(e){return function(n){return e==null?o:Qn(e,n)}}var Dy=Fc(),zy=Fc(!0);function Sa(){return[]}function xa(){return!1}function Uy(){return{}}function Wy(){return""}function Hy(){return!0}function Ky(e,n){if(e=ye(e),e<1||e>H)return[];var r=q,a=rt(e,q);n=fe(n),e-=q;for(var c=Al(a,n);++r<e;)n(r);return c}function Gy(e){return be(e)?Ie(e,Yt):xt(e)?[e]:ft(nf(Te(e)))}function jy(e){var n=++op;return Te(e)+n}var Qy=fo(function(e,n){return e+n},0),Yy=Jl("ceil"),Zy=fo(function(e,n){return e/n},1),Xy=Jl("floor");function Jy(e){return e&&e.length?io(e,mt,Nl):o}function ew(e,n){return e&&e.length?io(e,fe(n,2),Nl):o}function tw(e){return zs(e,mt)}function nw(e,n){return zs(e,fe(n,2))}function rw(e){return e&&e.length?io(e,mt,zl):o}function iw(e,n){return e&&e.length?io(e,fe(n,2),zl):o}var ow=fo(function(e,n){return e*n},1),lw=Jl("round"),aw=fo(function(e,n){return e-n},0);function uw(e){return e&&e.length?El(e,mt):0}function sw(e,n){return e&&e.length?El(e,fe(n,2)):0}return d.after=O_,d.ary=mf,d.assign=_b,d.assignIn=Tf,d.assignInWith=ko,d.assignWith=bb,d.at=yb,d.before=gf,d.bind=fa,d.bindAll=ky,d.bindKey=pf,d.castArray=U_,d.chain=ff,d.chunk=Xv,d.compact=Jv,d.concat=e0,d.cond=Ey,d.conforms=Ay,d.constant=_a,d.countBy=u_,d.create=wb,d.curry=vf,d.curryRight=_f,d.debounce=bf,d.defaults=Sb,d.defaultsDeep=xb,d.defer=q_,d.delay=M_,d.difference=t0,d.differenceBy=n0,d.differenceWith=r0,d.drop=i0,d.dropRight=o0,d.dropRightWhile=l0,d.dropWhile=a0,d.fill=u0,d.filter=c_,d.flatMap=h_,d.flatMapDeep=m_,d.flatMapDepth=g_,d.flatten=af,d.flattenDeep=s0,d.flattenDepth=c0,d.flip=V_,d.flow=By,d.flowRight=Ry,d.fromPairs=f0,d.functions=Rb,d.functionsIn=Ob,d.groupBy=p_,d.initial=h0,d.intersection=m0,d.intersectionBy=g0,d.intersectionWith=p0,d.invert=Mb,d.invertBy=Vb,d.invokeMap=__,d.iteratee=ba,d.keyBy=b_,d.keys=Ze,d.keysIn=ht,d.map=bo,d.mapKeys=Ib,d.mapValues=Pb,d.matches=Oy,d.matchesProperty=qy,d.memoize=wo,d.merge=Nb,d.mergeWith=Bf,d.method=My,d.methodOf=Vy,d.mixin=ya,d.negate=So,d.nthArg=Iy,d.omit=$b,d.omitBy=Fb,d.once=L_,d.orderBy=y_,d.over=Py,d.overArgs=I_,d.overEvery=Ny,d.overSome=$y,d.partial=da,d.partialRight=yf,d.partition=w_,d.pick=Db,d.pickBy=Rf,d.property=Pf,d.propertyOf=Fy,d.pull=y0,d.pullAll=sf,d.pullAllBy=w0,d.pullAllWith=S0,d.pullAt=x0,d.range=Dy,d.rangeRight=zy,d.rearg=P_,d.reject=C_,d.remove=C0,d.rest=N_,d.reverse=sa,d.sampleSize=E_,d.set=Ub,d.setWith=Wb,d.shuffle=A_,d.slice=k0,d.sortBy=R_,d.sortedUniq=q0,d.sortedUniqBy=M0,d.split=hy,d.spread=$_,d.tail=V0,d.take=L0,d.takeRight=I0,d.takeRightWhile=P0,d.takeWhile=N0,d.tap=J0,d.throttle=F_,d.thru=_o,d.toArray=kf,d.toPairs=Of,d.toPairsIn=qf,d.toPath=Gy,d.toPlainObject=Af,d.transform=Hb,d.unary=D_,d.union=$0,d.unionBy=F0,d.unionWith=D0,d.uniq=z0,d.uniqBy=U0,d.uniqWith=W0,d.unset=Kb,d.unzip=ca,d.unzipWith=cf,d.update=Gb,d.updateWith=jb,d.values=Br,d.valuesIn=Qb,d.without=H0,d.words=Lf,d.wrap=z_,d.xor=K0,d.xorBy=G0,d.xorWith=j0,d.zip=Q0,d.zipObject=Y0,d.zipObjectDeep=Z0,d.zipWith=X0,d.entries=Of,d.entriesIn=qf,d.extend=Tf,d.extendWith=ko,ya(d,d),d.add=Qy,d.attempt=If,d.camelCase=Jb,d.capitalize=Mf,d.ceil=Yy,d.clamp=Yb,d.clone=W_,d.cloneDeep=K_,d.cloneDeepWith=G_,d.cloneWith=H_,d.conformsTo=j_,d.deburr=Vf,d.defaultTo=Ty,d.divide=Zy,d.endsWith=ey,d.eq=Wt,d.escape=ty,d.escapeRegExp=ny,d.every=s_,d.find=f_,d.findIndex=of,d.findKey=Cb,d.findLast=d_,d.findLastIndex=lf,d.findLastKey=kb,d.floor=Xy,d.forEach=df,d.forEachRight=hf,d.forIn=Eb,d.forInRight=Ab,d.forOwn=Tb,d.forOwnRight=Bb,d.get=ga,d.gt=Q_,d.gte=Y_,d.has=qb,d.hasIn=pa,d.head=uf,d.identity=mt,d.includes=v_,d.indexOf=d0,d.inRange=Zb,d.invoke=Lb,d.isArguments=Xn,d.isArray=be,d.isArrayBuffer=Z_,d.isArrayLike=dt,d.isArrayLikeObject=ze,d.isBoolean=X_,d.isBuffer=Rn,d.isDate=J_,d.isElement=eb,d.isEmpty=tb,d.isEqual=nb,d.isEqualWith=rb,d.isError=ha,d.isFinite=ib,d.isFunction=fn,d.isInteger=wf,d.isLength=xo,d.isMap=Sf,d.isMatch=ob,d.isMatchWith=lb,d.isNaN=ab,d.isNative=ub,d.isNil=cb,d.isNull=sb,d.isNumber=xf,d.isObject=$e,d.isObjectLike=De,d.isPlainObject=oi,d.isRegExp=ma,d.isSafeInteger=fb,d.isSet=Cf,d.isString=Co,d.isSymbol=xt,d.isTypedArray=Tr,d.isUndefined=db,d.isWeakMap=hb,d.isWeakSet=mb,d.join=v0,d.kebabCase=ry,d.last=Vt,d.lastIndexOf=_0,d.lowerCase=iy,d.lowerFirst=oy,d.lt=gb,d.lte=pb,d.max=Jy,d.maxBy=ew,d.mean=tw,d.meanBy=nw,d.min=rw,d.minBy=iw,d.stubArray=Sa,d.stubFalse=xa,d.stubObject=Uy,d.stubString=Wy,d.stubTrue=Hy,d.multiply=ow,d.nth=b0,d.noConflict=Ly,d.noop=wa,d.now=yo,d.pad=ly,d.padEnd=ay,d.padStart=uy,d.parseInt=sy,d.random=Xb,d.reduce=S_,d.reduceRight=x_,d.repeat=cy,d.replace=fy,d.result=zb,d.round=lw,d.runInContext=S,d.sample=k_,d.size=T_,d.snakeCase=dy,d.some=B_,d.sortedIndex=E0,d.sortedIndexBy=A0,d.sortedIndexOf=T0,d.sortedLastIndex=B0,d.sortedLastIndexBy=R0,d.sortedLastIndexOf=O0,d.startCase=my,d.startsWith=gy,d.subtract=aw,d.sum=uw,d.sumBy=sw,d.template=py,d.times=Ky,d.toFinite=dn,d.toInteger=ye,d.toLength=Ef,d.toLower=vy,d.toNumber=Lt,d.toSafeInteger=vb,d.toString=Te,d.toUpper=_y,d.trim=by,d.trimEnd=yy,d.trimStart=wy,d.truncate=Sy,d.unescape=xy,d.uniqueId=jy,d.upperCase=Cy,d.upperFirst=va,d.each=df,d.eachRight=hf,d.first=uf,ya(d,function(){var e={};return jt(d,function(n,r){Re.call(d.prototype,r)||(e[r]=n)}),e}(),{chain:!1}),d.VERSION=u,Bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Bt(["drop","take"],function(e,n){Ce.prototype[e]=function(r){r=r===o?1:Qe(ye(r),0);var a=this.__filtered__&&!n?new Ce(this):this.clone();return a.__filtered__?a.__takeCount__=rt(r,a.__takeCount__):a.__views__.push({size:rt(r,q),type:e+(a.__dir__<0?"Right":"")}),a},Ce.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Bt(["filter","map","takeWhile"],function(e,n){var r=n+1,a=r==F||r==se;Ce.prototype[e]=function(c){var h=this.clone();return h.__iteratees__.push({iteratee:fe(c,3),type:r}),h.__filtered__=h.__filtered__||a,h}}),Bt(["head","last"],function(e,n){var r="take"+(n?"Right":"");Ce.prototype[e]=function(){return this[r](1).value()[0]}}),Bt(["initial","tail"],function(e,n){var r="drop"+(n?"":"Right");Ce.prototype[e]=function(){return this.__filtered__?new Ce(this):this[r](1)}}),Ce.prototype.compact=function(){return this.filter(mt)},Ce.prototype.find=function(e){return this.filter(e).head()},Ce.prototype.findLast=function(e){return this.reverse().find(e)},Ce.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new Ce(this):this.map(function(r){return Jr(r,e,n)})}),Ce.prototype.reject=function(e){return this.filter(So(fe(e)))},Ce.prototype.slice=function(e,n){e=ye(e);var r=this;return r.__filtered__&&(e>0||n<0)?new Ce(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==o&&(n=ye(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},Ce.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ce.prototype.toArray=function(){return this.take(q)},jt(Ce.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),c=d[a?"take"+(n=="last"?"Right":""):n],h=a||/^find/.test(n);c&&(d.prototype[n]=function(){var p=this.__wrapped__,y=a?[1]:arguments,E=p instanceof Ce,N=y[0],$=E||be(p),z=function(xe){var ke=c.apply(d,xn([xe],y));return a&&ee?ke[0]:ke};$&&r&&typeof N=="function"&&N.length!=1&&(E=$=!1);var ee=this.__chain__,ue=!!this.__actions__.length,de=h&&!ee,we=E&&!ue;if(!h&&$){p=we?p:new Ce(this);var he=e.apply(p,y);return he.__actions__.push({func:_o,args:[z],thisArg:o}),new Ot(he,ee)}return de&&we?e.apply(this,y):(he=this.thru(z),de?a?he.value()[0]:he.value():he)})}),Bt(["pop","push","shift","sort","splice","unshift"],function(e){var n=Ui[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var h=this.value();return n.apply(be(h)?h:[],c)}return this[r](function(p){return n.apply(be(p)?p:[],c)})}}),jt(Ce.prototype,function(e,n){var r=d[n];if(r){var a=r.name+"";Re.call(xr,a)||(xr[a]=[]),xr[a].push({name:n,func:r})}}),xr[co(o,G).name]=[{name:"wrapper",func:o}],Ce.prototype.clone=xp,Ce.prototype.reverse=Cp,Ce.prototype.value=kp,d.prototype.at=e_,d.prototype.chain=t_,d.prototype.commit=n_,d.prototype.next=r_,d.prototype.plant=o_,d.prototype.reverse=l_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=a_,d.prototype.first=d.prototype.head,Kr&&(d.prototype[Kr]=i_),d},yr=np();Wn?((Wn.exports=yr)._=yr,bl._=yr):et._=yr}).call(Xe)}(li,li.exports);var Pe=li.exports,Xt={},Ca={},ka={},ai={};Object.defineProperty(ai,"__esModule",{value:!0}),ai.OPERATORS=void 0,ai.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.ControlType=Jn.GAMA_PROP_CONTROL_TYPES=void 0,Jn.GAMA_PROP_CONTROL_TYPES=[{code:"input_text",icon:"title",label:"Texto"},{code:"input_number",icon:"o_looks_one",label:"Número"},{code:"datetime",icon:"event",label:"Fecha y hora"},{code:"date",icon:"calendar_today",label:"Fecha"},{code:"time",icon:"schedule",label:"Hora"},{code:"switch",icon:"toggle_on",label:"Switch"},{code:"checkbox",icon:"o_check_box",label:"Checkbox"},{code:"select",icon:"list",label:"Selector simple"},{code:"cards_select",icon:"grid_view",label:"Selector de tarjetas"},{code:"location",icon:"location_on",label:"Ubicación"},{code:"dynamic_array",icon:"data_array",label:"Colección dinámica"},{code:"object",icon:"data_object",label:"Objeto"}];var Ea;(function(t){t.TEXT="input_text",t.NUMBER="input_number",t.DATETIME="datetime",t.DATE="date",t.TIME="time",t.SWITCH="switch",t.CHECKBOX="checkbox",t.SELECT="select",t.CARDS_SELECT="cards_select",t.LOCATION="location",t.DYNAMIC_ARRAY="dynamic_array",t.OBJECT="object"})(Ea||(Jn.ControlType=Ea={}));var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});var Ba={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0,t.GamaPropValidatorsMap={required:{fn:()=>o=>o.value!==null&&o.value!==void 0&&o.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:o=>u=>{if(typeof u.value=="number")return(u.value||0)>=o;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length>=o:s.length>=o}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:o=>u=>{if(typeof u.value=="number")return(u.value||0)<=o;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length<=o:(s||"").length<=o}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>o=>/^[0-9]*$/.test(String(o.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>o=>o.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(o.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>o=>o.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(o.value)||"")||/^www\.[^ "]+$/.test(String(o.value)||""):!0,message:"La URL no es válida",label:"URL"}};var l;(function(o){o.REQUERIDO="required",o.MINIMO="min",o.MAXIMO="max",o.SOLO_NUMEROS="onlyNumbers",o.EMAIL="email",o.URL="url"})(l||(t.PropValidatorKeys=l={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([o,u])=>({value:o,...u}))})(Ba);var Ra={};Object.defineProperty(Ra,"__esModule",{value:!0}),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(ai,t),o(Jn,t),o(Aa,t),o(Ta,t),o(Ba,t),o(Ra,t)}(ka),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(ka,t)}(Ca),function(t){var l=Xe&&Xe.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),o=Xe&&Xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&l(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),o(Ca,t)}(Xt);const Eo=[Xt.ControlType.DYNAMIC_ARRAY,Xt.ControlType.OBJECT],$f={maxControlsPerGroup:1,notifyValidations:!0},Oa={required:{fn:()=>t=>{var l;if(t.controlType===Xt.ControlType.LOCATION){const{value:o}=t.value;return Pe.values(Pe.omit(o,"catastro")).every(u=>!Pe.isNil(u)&&u!=="")&&(o!=null&&o.catastro?Ff(o==null?void 0:o.catastro):!0)}return t.controlType===Xt.ControlType.DYNAMIC_ARRAY||t.multiple?(((l=t.value)==null?void 0:l.length)||0)>0:!Pe.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>l=>qa(l,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>l=>qa(l,"<=",t),message:"El valor es mayor al máximo permitido"},onlyNumbers:{fn:()=>t=>/^[0-9]*$/.test(String(t.value)||""),message:"Este campo solo acepta números"},email:{fn:()=>t=>t.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(t.value)||""):!0,message:"El correo electrónico no es válido"},url:{fn:()=>t=>t.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(t.value)||"")||/^www\.[^ "]+$/.test(String(t.value)||""):!0,message:"La URL no es válida"}};function qa(t,l,o){const u={">":(s,f)=>s>f,"<":(s,f)=>s<f,">=":(s,f)=>s>=f,"<=":(s,f)=>s<=f}[l];if(t.controlType===Xt.ControlType.NUMBER){const s=Number(t.value);return u(s,o)}if(t.controlType===Xt.ControlType.TEXT){const s=(t.value||"").length;return u(s,o)}if([Xt.ControlType.CARDS_SELECT,Xt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,o)}return!1}function Ff(t){return/^[A-Za-z0-9]{20}$/.test(t)}function Df(t){const l=[];t.controls.forEach((u,s)=>{const f=zf(u);l.push(...f);const m=!f.length;t.controls[s].valid=m});const o=!l.length;return t.valid=o,l}function zf(t){const l=[];return t.validators&&t.validators.forEach(o=>{const{validator:u,param:s}=o,f=Oa[u]||null;f&&(f.fn(Number(s))(t)||l.push(f.message))}),l}function Uf(t,l,o){return l.controlType==="dynamic_array"?Wf(t,l,o):l.controlType==="object"?Ma(t,l,o):[]}function Wf(t,l,o){var f,m;const u=[],s=((f=l.itemsLength)==null?void 0:f.value)||0;for(let g=0;g<s;g++){const C=Ma({...t,title:`${t.title} ${g+1}`},{...l,value:(m=l.value)==null?void 0:m[g]},o);C.forEach(A=>{A.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...C)}return u}function Ma(t,l,o){const u=l.structure;return Pe.chunk(u,o).map(f=>({...t,controls:Va(f).map(m=>{var g;return{...m,id:l.id,value:((g=l.value)==null?void 0:g[m.code])||m.value}})}))}function Hf(t){return Pe.chain(t).groupBy("group").toPairs().orderBy(([o,u])=>o).map(([o,u])=>{var m;const s=((m=u.find(g=>{var C;return!!((C=g.title)!=null&&C.trim())}))==null?void 0:m.title)||"",f=u[0].group;return{title:s,controls:u,order:f,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}function Kf(t){return t.map(l=>({...l,valid:!1,controls:Va(l.controls)}))}function Va(t){return t.map(l=>{var o,u,s;return{...l,valid:!((o=l.validators)!=null&&o.length),visible:!((u=l.conditions)!=null&&u.length),value:Gf(l),itemsLength:l.controlType==="dynamic_array"?{...l.itemsLength,value:((s=l.itemsLength)==null?void 0:s.default)||1}:null}})}function Gf(t){if(!Pe.isNil(t.defaultValue))return t.defaultValue;switch(t.controlType){case"input_text":return"";case"input_number":return null;case"select":return t.multiple?[]:"";case"cards_select":return t.multiple?[]:"";case"checkbox":return null;case"switch":return null;case"location":return{};case"dynamic_array":return[];case"object":return{};default:return""}}var jf=!1;function ui(t,l,o){return Array.isArray(t)?(t.length=Math.max(t.length,l),t.splice(l,1,o),o):(t[l]=o,o)}function Ao(t,l){if(Array.isArray(t)){t.splice(l,1);return}delete t[l]}/*!
28
- * pinia v2.2.1
29
- * (c) 2024 Eduardo San Martin Morote
30
- * @license MIT
31
- */let er;const si=t=>er=t,Qf=()=>i.hasInjectionContext()&&i.inject(La)||er,La=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function On(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Rr;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Rr||(Rr={}));const Or=typeof window<"u";function Ia(t,l){for(const o in l){const u=l[o];if(!(o in t))continue;const s=t[o];On(s)&&On(u)&&!i.isRef(u)&&!i.isReactive(u)?t[o]=Ia(s,u):t[o]=u}return t}const Pa=()=>{};function Na(t,l,o,u=Pa){t.push(l);const s=()=>{const f=t.indexOf(l);f>-1&&(t.splice(f,1),u())};return!o&&i.getCurrentScope()&&i.onScopeDispose(s),s}function tr(t,...l){t.slice().forEach(o=>{o(...l)})}const Yf=t=>t(),$a=Symbol(),To=Symbol();function Bo(t,l){t instanceof Map&&l instanceof Map?l.forEach((o,u)=>t.set(u,o)):t instanceof Set&&l instanceof Set&&l.forEach(t.add,t);for(const o in l){if(!l.hasOwnProperty(o))continue;const u=l[o],s=t[o];On(s)&&On(u)&&t.hasOwnProperty(o)&&!i.isRef(u)&&!i.isReactive(u)?t[o]=Bo(s,u):t[o]=u}return t}const Zf=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Xf(t){return!On(t)||!t.hasOwnProperty(Zf)}const{assign:Et}=Object;function Fa(t){return!!(i.isRef(t)&&t.effect)}function Da(t,l,o,u){const{state:s,actions:f,getters:m}=l,g=o.state.value[t];let C;function A(){!g&&(process.env.NODE_ENV==="production"||!u)&&(o.state.value[t]=s?s():{});const v=process.env.NODE_ENV!=="production"&&u?i.toRefs(i.ref(s?s():{}).value):i.toRefs(o.state.value[t]);return Et(v,f,Object.keys(m||{}).reduce((x,k)=>(process.env.NODE_ENV!=="production"&&k in v&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${k}" in store "${t}".`),x[k]=i.markRaw(i.computed(()=>{si(o);const _=o._s.get(t);return m[k].call(_,_)})),x),{}))}return C=Ro(t,A,l,o,u,!0),C}function Ro(t,l,o={},u,s,f){let m;const g=Et({actions:{}},o);if(process.env.NODE_ENV!=="production"&&!u._e.active)throw new Error("Pinia destroyed");const C={deep:!0};process.env.NODE_ENV!=="production"&&!jf&&(C.onTrigger=T=>{A?_=T:A==!1&&!I._hotUpdating&&(Array.isArray(_)?_.push(T):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let A,v,x=[],k=[],_;const B=u.state.value[t];!f&&!B&&(process.env.NODE_ENV==="production"||!s)&&(u.state.value[t]={});const W=i.ref({});let O;function G(T){let V;A=v=!1,process.env.NODE_ENV!=="production"&&(_=[]),typeof T=="function"?(T(u.state.value[t]),V={type:Rr.patchFunction,storeId:t,events:_}):(Bo(u.state.value[t],T),V={type:Rr.patchObject,payload:T,storeId:t,events:_});const w=O=Symbol();i.nextTick().then(()=>{O===w&&(A=!0)}),v=!0,tr(x,V,u.state.value[t])}const U=f?function(){const{state:V}=o,w=V?V():{};this.$patch(Z=>{Et(Z,w)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:Pa;function D(){m.stop(),x=[],k=[],u._s.delete(t)}const Q=(T,V="")=>{if($a in T)return T[To]=V,T;const w=function(){si(u);const Z=Array.from(arguments),F=[],ae=[];function se(ie){F.push(ie)}function ce(ie){ae.push(ie)}tr(k,{args:Z,name:w[To],store:I,after:se,onError:ce});let H;try{H=T.apply(this&&this.$id===t?this:I,Z)}catch(ie){throw tr(ae,ie),ie}return H instanceof Promise?H.then(ie=>(tr(F,ie),ie)).catch(ie=>(tr(ae,ie),Promise.reject(ie))):(tr(F,H),H)};return w[$a]=!0,w[To]=V,w},j=i.markRaw({actions:{},getters:{},state:[],hotState:W}),Y={_p:u,$id:t,$onAction:Na.bind(null,k),$patch:G,$reset:U,$subscribe(T,V={}){const w=Na(x,T,V.detached,()=>Z()),Z=m.run(()=>i.watch(()=>u.state.value[t],F=>{(V.flush==="sync"?v:A)&&T({storeId:t,type:Rr.direct,events:_},F)},Et({},C,V)));return w},$dispose:D},I=i.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Or?Et({_hmrPayload:j,_customProperties:i.markRaw(new Set)},Y):Y);u._s.set(t,I);const P=(u._a&&u._a.runWithContext||Yf)(()=>u._e.run(()=>(m=i.effectScope()).run(()=>l({action:Q}))));for(const T in P){const V=P[T];if(i.isRef(V)&&!Fa(V)||i.isReactive(V))process.env.NODE_ENV!=="production"&&s?ui(W.value,T,i.toRef(P,T)):f||(B&&Xf(V)&&(i.isRef(V)?V.value=B[T]:Bo(V,B[T])),u.state.value[t][T]=V),process.env.NODE_ENV!=="production"&&j.state.push(T);else if(typeof V=="function"){const w=process.env.NODE_ENV!=="production"&&s?V:Q(V,T);P[T]=w,process.env.NODE_ENV!=="production"&&(j.actions[T]=V),g.actions[T]=V}else process.env.NODE_ENV!=="production"&&Fa(V)&&(j.getters[T]=f?o.getters[T]:V,Or&&(P._getters||(P._getters=i.markRaw([]))).push(T))}if(Et(I,P),Et(i.toRaw(I),P),Object.defineProperty(I,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?W.value:u.state.value[t],set:T=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");G(V=>{Et(V,T)})}}),process.env.NODE_ENV!=="production"&&(I._hotUpdate=i.markRaw(T=>{I._hotUpdating=!0,T._hmrPayload.state.forEach(V=>{if(V in I.$state){const w=T.$state[V],Z=I.$state[V];typeof w=="object"&&On(w)&&On(Z)?Ia(w,Z):T.$state[V]=Z}ui(I,V,i.toRef(T.$state,V))}),Object.keys(I.$state).forEach(V=>{V in T.$state||Ao(I,V)}),A=!1,v=!1,u.state.value[t]=i.toRef(T._hmrPayload,"hotState"),v=!0,i.nextTick().then(()=>{A=!0});for(const V in T._hmrPayload.actions){const w=T[V];ui(I,V,Q(w,V))}for(const V in T._hmrPayload.getters){const w=T._hmrPayload.getters[V],Z=f?i.computed(()=>(si(u),w.call(I,I))):w;ui(I,V,Z)}Object.keys(I._hmrPayload.getters).forEach(V=>{V in T._hmrPayload.getters||Ao(I,V)}),Object.keys(I._hmrPayload.actions).forEach(V=>{V in T._hmrPayload.actions||Ao(I,V)}),I._hmrPayload=T._hmrPayload,I._getters=T._getters,I._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Or){const T={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(V=>{Object.defineProperty(I,V,Et({value:I[V]},T))})}return u._p.forEach(T=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Or){const V=m.run(()=>T({store:I,app:u._a,pinia:u,options:g}));Object.keys(V||{}).forEach(w=>I._customProperties.add(w)),Et(I,V)}else Et(I,m.run(()=>T({store:I,app:u._a,pinia:u,options:g})))}),process.env.NODE_ENV!=="production"&&I.$state&&typeof I.$state=="object"&&typeof I.$state.constructor=="function"&&!I.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
32
- state: () => new MyClass()
33
- Found in store "${I.$id}".`),B&&f&&o.hydrate&&o.hydrate(I.$state,B),A=!0,v=!0,I}function Jf(t,l,o){let u,s;const f=typeof l=="function";u=t,s=f?o:l;function m(g,C){const A=i.hasInjectionContext();if(g=(process.env.NODE_ENV==="test"&&er&&er._testing?null:g)||(A?i.inject(La,null):null),g&&si(g),process.env.NODE_ENV!=="production"&&!er)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
34
- See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
35
- This will fail in production.`);g=er,g._s.has(u)||(f?Ro(u,l,s,g):Da(u,s,g),process.env.NODE_ENV!=="production"&&(m._pinia=g));const v=g._s.get(u);if(process.env.NODE_ENV!=="production"&&C){const x="__hot:"+u,k=f?Ro(x,l,s,g,!0):Da(x,Et({},s),g,!0);C._hotUpdate(k),delete g.state.value[x],g._s.delete(x)}if(process.env.NODE_ENV!=="production"&&Or){const x=i.getCurrentInstance();if(x&&x.proxy&&!C){const k=x.proxy,_="_pStores"in k?k._pStores:k._pStores={};_[u]=v}}return v}return m.$id=u,m}let Oo;const ed=()=>{if(!Qf())throw new Error("No active Pinia instance. Make sure to use app.use(pinia) before accessing the store.");Oo=Jf("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(l){this.formSteps=Kf(l)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(l,o){const{id:u,value:s,code:f}=o,m=this.formSteps[l].controls.find(g=>g.id===u);m&&(Eo.includes(m.controlType)?Pe.set(m.value,f,s):m.value=s)},setControlVisibility(l,o,u){const s=this.formSteps[l].controls.find(f=>f.id===o);s&&(s.visible=u)},setControlItemsLength(l,o,u){const s=this.formSteps[l].controls.find(f=>f.id===o);!s||s.controlType!=="dynamic_array"||(s.itemsLength.value=u)},setOnLastSubstep(l){this.onLastSubstep=l},resetSteps(){this.currentStep=1},setCollection(l,o){this.collections[l]=o}},getters:{currentFormStep(l){return l.formSteps[l.currentStep-1]||null},stepsCount(l){return l.formSteps.length},nextDisabled(){return this.currentFormStep.controls.filter(l=>l.visible).some(l=>!l.valid)},getCollection(l){return o=>l.collections[o]||null}}})},nr=()=>(Oo||ed(),Oo());class za{toRaw(l){return l.flatMap(s=>s.controls).filter(s=>s.visible).map(s=>({ID_CUESTIONARIO_PREGUNTA:s.id,RESPUESTA:this.formatValue(s)}))}fromRaw(l){return Pe.orderBy(l,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,f=u.ORDEN,m=u.DESCRIPCION,g=u.CLAVE,C=u.ID_CUESTIONARIO,A=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:f,text:m,controls:A,name:g,id:C}})}parseControl(l){return{controlType:l.TIPO,label:l.NOMBRE,name:l.CLAVE,options:l.RESPUESTAS,multiple:l.MULTIPLE||!1,validators:l.VALIDACIONES,conditions:l.CONDITIONS,itemsLength:l.LENGTH,id:l.ID_CUESTIONARIO_PREGUNTA,row:l.FILA,col:l.COLUMNA,prefix:l.PREFIJO,suffix:l.SUFIJO,structure:l.STRUCTURE,group:l.GRUPO,title:l.TITULO_GRUPO,customParams:l.PARAMS}}formatValue(l){const{controlType:o,value:u,structure:s}=l,f=(m,g)=>g.controlType==="input_number"&&m!==null&&m!==void 0&&m!==""&&typeof m=="string";return f(u,l)?parseFloat(u.replaceAll(".","")):(o==="object"&&s.forEach(m=>{const g=u[m.code];f(g,m)&&(u[m.code]=parseFloat(g==null?void 0:g.replaceAll(".","")))}),u)}}function ci(t,l,o,u){return Object.defineProperty(t,l,{get:o,set:u,enumerable:!0}),t}const mn=i.ref(!1);let qo;function td(t,l){const o=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome|crios)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(firefox|fxios)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[4]||o[2]||"0",platform:l[0]||""}}function nd(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}const Ua="ontouchstart"in window||window.navigator.maxTouchPoints>0;function rd(t){const l=t.toLowerCase(),o=nd(l),u=td(l,o),s={};u.browser&&(s[u.browser]=!0,s.version=u.version,s.versionNumber=parseInt(u.version,10)),u.platform&&(s[u.platform]=!0);const f=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(f===!0||l.indexOf("mobile")!==-1?s.mobile=!0:s.desktop=!0,s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),s.edga||s.edgios||s.edg?(s.edge=!0,u.browser="edge"):s.crios?(s.chrome=!0,u.browser="chrome"):s.fxios&&(s.firefox=!0,u.browser="firefox"),(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s.vivaldi&&(u.browser="vivaldi",s.vivaldi=!0),(s.chrome||s.opr||s.safari||s.vivaldi||s.mobile===!0&&s.ios!==!0&&f!==!0)&&(s.webkit=!0),s.opr&&(u.browser="opera",s.opera=!0),s.safari&&(s.blackberry||s.bb?(u.browser="blackberry",s.blackberry=!0):s.playbook?(u.browser="playbook",s.playbook=!0):s.android?(u.browser="android",s.android=!0):s.kindle?(u.browser="kindle",s.kindle=!0):s.silk&&(u.browser="silk",s.silk=!0)),s.name=u.browser,s.platform=u.platform,l.indexOf("electron")!==-1)s.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)s.bex=!0;else{if(window.Capacitor!==void 0?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),mn.value===!0&&(qo={is:{...s}}),Ua===!0&&s.mac===!0&&(s.desktop===!0&&s.safari===!0||s.nativeMobile===!0&&s.android!==!0&&s.ios!==!0&&s.ipad!==!0)){delete s.mac,delete s.desktop;const m=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:m,[m]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const Wa=navigator.userAgent||navigator.vendor||window.opera,id={has:{touch:!1,webStorage:!1},within:{iframe:!1}},gt={userAgent:Wa,is:rd(Wa),has:{touch:Ua},within:{iframe:window.self!==window.top}},Mo={install(t){const{$q:l}=t;mn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(l.platform,gt),mn.value=!1}),l.platform=i.reactive(this)):l.platform=this}};{let t;ci(gt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(Mo,gt),mn.value===!0&&(Object.assign(Mo,qo,id),qo=null)}function Ye(t){return i.markRaw(i.defineComponent(t))}function Ha(t){return i.markRaw(t)}function Jt(t,l){if(t===l)return!0;if(t!==null&&l!==null&&typeof t=="object"&&typeof l=="object"){if(t.constructor!==l.constructor)return!1;let o,u;if(t.constructor===Array){if(o=t.length,o!==l.length)return!1;for(u=o;u--!==0;)if(Jt(t[u],l[u])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==l.size)return!1;let f=t.entries();for(u=f.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=f.next()}for(f=t.entries(),u=f.next();u.done!==!0;){if(Jt(u.value[1],l.get(u.value[0]))!==!0)return!1;u=f.next()}return!0}if(t.constructor===Set){if(t.size!==l.size)return!1;const f=t.entries();for(u=f.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=f.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(o=t.length,o!==l.length)return!1;for(u=o;u--!==0;)if(t[u]!==l[u])return!1;return!0}if(t.constructor===RegExp)return t.source===l.source&&t.flags===l.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===l.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===l.toString();const s=Object.keys(t).filter(f=>t[f]!==void 0);if(o=s.length,o!==Object.keys(l).filter(f=>l[f]!==void 0).length)return!1;for(u=o;u--!==0;){const f=s[u];if(Jt(t[f],l[f])!==!0)return!1}return!0}return t!==t&&l!==l}const Ka={threshold:0,root:null,rootMargin:"0px"};function Ga(t,l,o){let u,s,f;typeof o=="function"?(u=o,s=Ka,f=l.cfg===void 0):(u=o.handler,s=Object.assign({},Ka,o.cfg),f=l.cfg===void 0||Jt(l.cfg,s)===!1),l.handler!==u&&(l.handler=u),f===!0&&(l.cfg=s,l.observer!==void 0&&l.observer.unobserve(t),l.observer=new IntersectionObserver(([m])=>{if(typeof l.handler=="function"){if(m.rootBounds===null&&document.body.contains(t)===!0){l.observer.unobserve(t),l.observer.observe(t);return}(l.handler(m,l.observer)===!1||l.once===!0&&m.isIntersecting===!0)&&ja(t)}},s),l.observer.observe(t))}function ja(t){const l=t.__qvisible;l!==void 0&&(l.observer!==void 0&&l.observer.unobserve(t),delete t.__qvisible)}const od=Ha({name:"intersection",mounted(t,{modifiers:l,value:o}){const u={once:l.once===!0};Ga(t,u,o),t.__qvisible=u},updated(t,l){const o=t.__qvisible;o!==void 0&&Ga(t,o,l.value)},beforeUnmount:ja});function pt(t,l){return t!==void 0&&t()||l}function ld(t,l){if(t!==void 0){const o=t();if(o!=null)return o.slice()}return l}function qn(t,l){return t!==void 0?l.concat(t()):l}function ad(t,l){return t===void 0?l:l!==void 0?l.concat(t()):t()}function Qa(t,l,o,u,s,f){l.key=u+s;const m=i.h(t,l,o);return s===!0?i.withDirectives(m,f()):m}const ud=Ye({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(t,{slots:l,emit:o}){const u=i.ref(mn.value===!0?t.ssrPrerender:!1),s=i.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:C,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:C),f=i.computed(()=>t.disable!==!0&&(mn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),m=i.computed(()=>[[od,s.value,void 0,{once:t.once}]]),g=i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function C(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,t.onVisibility!==void 0&&o("visibility",u.value))}function A(){if(u.value===!0)return[i.h("div",{key:"content",style:g.value},pt(l.default))];if(l.hidden!==void 0)return[i.h("div",{key:"hidden",style:g.value},l.hidden())]}return()=>{const v=t.transition?[i.h(i.Transition,{name:"q-transition--"+t.transition},A)]:A();return Qa(t.tag,{class:"q-intersection"},v,"main",f.value,()=>m.value)}}}),Vo={xs:18,sm:24,md:32,lg:38,xl:46},fi={size:String};function di(t,l=Vo){return i.computed(()=>t.size!==void 0?{fontSize:t.size in l?`${l[t.size]}px`:t.size}:null)}const sd={size:{type:[String,Number],default:"1em"},color:String};function cd(t){return{cSize:i.computed(()=>t.size in Vo?`${Vo[t.size]}px`:t.size),classes:i.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const Lo=Ye({name:"QSpinner",props:{...sd,thickness:{type:Number,default:5}},setup(t){const{cSize:l,classes:o}=cd(t);return()=>i.h("svg",{class:o.value+" q-spinner-mat",width:l.value,height:l.value,viewBox:"25 25 50 50"},[i.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),fd={ratio:[String,Number]};function dd(t,l){return i.computed(()=>{const o=Number(t.ratio||(l!==void 0?l.value:void 0));return isNaN(o)!==!0&&o>0?{paddingBottom:`${100/o}%`}:null})}function Io(t){if(Object(t.$parent)===t.$parent)return t.$parent;let{parent:l}=t.$;for(;Object(l)===l;){if(Object(l.proxy)===l.proxy)return l.proxy;l=l.parent}}function Ya(t){return t.appContext.config.globalProperties.$router!==void 0}function qr(t){return t.isUnmounted===!0||t.isDeactivated===!0}function hi(){let t=null;const l=i.getCurrentInstance();function o(){t!==null&&(clearTimeout(t),t=null)}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(u,s){o(),qr(l)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const hd=Ye({name:"QImg",props:{...fd,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:1.7778},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(t,{slots:l,emit:o}){const u=i.ref(t.initialRatio),s=dd(t,u),f=i.getCurrentInstance(),{registerTimeout:m,removeTimeout:g}=hi(),{registerTimeout:C,removeTimeout:A}=hi(),v=i.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),x=i.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),k=[i.ref(null),i.ref(v.value)],_=i.ref(0),B=i.ref(!1),W=i.ref(!1),O=i.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),G=i.computed(()=>({width:t.width,height:t.height})),U=i.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),D=i.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function Q(){if(A(),t.loadingShowDelay===0){B.value=!0;return}C(()=>{B.value=!0},t.loadingShowDelay)}function j(){A(),B.value=!1}function Y({target:w}){qr(f)===!1&&(g(),u.value=w.naturalHeight===0?.5:w.naturalWidth/w.naturalHeight,I(w,1))}function I(w,Z){Z===1e3||qr(f)===!0||(w.complete===!0?le(w):m(()=>{I(w,Z+1)},50))}function le(w){qr(f)!==!0&&(_.value=_.value^1,k[_.value].value=null,j(),w.getAttribute("__qerror")!=="true"&&(W.value=!1),o("load",w.currentSrc||w.src))}function P(w){g(),j(),W.value=!0,k[_.value].value=x.value,k[_.value^1].value=v.value,o("error",w)}function T(w){const Z=k[w].value,F={key:"img_"+w,class:U.value,style:D.value,alt:t.alt,crossorigin:t.crossorigin,decoding:t.decoding,referrerpolicy:t.referrerpolicy,height:t.height,width:t.width,loading:t.loading,fetchpriority:t.fetchpriority,"aria-hidden":"true",draggable:t.draggable,...Z};return _.value===w?Object.assign(F,{class:F.class+"current",onLoad:Y,onError:P}):F.class+="loaded",i.h("div",{class:"q-img__container absolute-full",key:"img"+w},i.h("img",F))}function V(){return B.value===!1?i.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},pt(l[W.value===!0?"error":"default"])):i.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},l.loading!==void 0?l.loading():t.noSpinner===!0?void 0:[i.h(Lo,{color:t.spinnerColor,size:t.spinnerSize})])}{let w=function(){i.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,Z=>{g(),W.value=!1,Z===null?(j(),k[_.value^1].value=v.value):Q(),k[_.value].value=Z},{immediate:!0})};mn.value===!0?i.onMounted(w):w()}return()=>{const w=[];return s.value!==null&&w.push(i.h("div",{key:"filler",style:s.value})),k[0].value!==null&&w.push(T(0)),k[1].value!==null&&w.push(T(1)),w.push(i.h(i.Transition,{name:"q-transition--fade"},V)),i.h("div",{key:"main",class:O.value,style:G.value,role:"img","aria-label":t.alt},w)}}}),Za="0 0 24 24",Xa=t=>t,Po=t=>`ionicons ${t}`,Ja={"mdi-":t=>`mdi ${t}`,"icon-":Xa,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Po,"ion-ios":Po,"ion-logo":Po,"iconfont ":Xa,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},eu={o_:"-outlined",r_:"-round",s_:"-sharp"},tu={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},md=new RegExp("^("+Object.keys(Ja).join("|")+")"),gd=new RegExp("^("+Object.keys(eu).join("|")+")"),nu=new RegExp("^("+Object.keys(tu).join("|")+")"),pd=/^[Mm]\s?[-+]?\.?\d/,vd=/^img:/,_d=/^svguse:/,bd=/^ion-/,yd=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,vt=Ye({name:"QIcon",props:{...fi,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=i.getCurrentInstance(),u=di(t),s=i.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),f=i.computed(()=>{let m,g=t.name;if(g==="none"||!g)return{none:!0};if(o.iconMapFn!==null){const v=o.iconMapFn(g);if(v!==void 0)if(v.icon!==void 0){if(g=v.icon,g==="none"||!g)return{none:!0}}else return{cls:v.cls,content:v.content!==void 0?v.content:" "}}if(pd.test(g)===!0){const[v,x=Za]=g.split("|");return{svg:!0,viewBox:x,nodes:v.split("&&").map(k=>{const[_,B,W]=k.split("@@");return i.h("path",{style:B,d:_,transform:W})})}}if(vd.test(g)===!0)return{img:!0,src:g.substring(4)};if(_d.test(g)===!0){const[v,x=Za]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:x}}let C=" ";const A=g.match(md);if(A!==null)m=Ja[A[1]](g);else if(yd.test(g)===!0)m=g;else if(bd.test(g)===!0)m=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(nu.test(g)===!0){m="notranslate material-symbols";const v=g.match(nu);v!==null&&(g=g.substring(6),m+=tu[v[1]]),C=g}else{m="notranslate material-icons";const v=g.match(gd);v!==null&&(g=g.substring(2),m+=eu[v[1]]),C=g}return{cls:m,content:C}});return()=>{const m={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return f.value.none===!0?i.h(t.tag,m,pt(l.default)):f.value.img===!0?i.h(t.tag,m,qn(l.default,[i.h("img",{src:f.value.src})])):f.value.svg===!0?i.h(t.tag,m,qn(l.default,[i.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?i.h(t.tag,m,qn(l.default,[i.h("svg",{viewBox:f.value.viewBox},[i.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(m.class+=" "+f.value.cls),i.h(t.tag,m,qn(l.default,[f.value.content])))}}}),wd={class:"card-select-container"},Sd=["onClick"],xd={class:"check"},Cd={class:"row justify-center items-center",style:{height:"100%"}},kd=["onClick"],Ed=i.defineComponent({__name:"CardsSelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,{control:u}=i.toRefs(o);function s(g){if(u.value.multiple){let C=Pe.cloneDeep(l.value);g.exclusive?C=[g.value]:(C=C.filter(A=>{var v,x;return!((x=(v=u.value.options)==null?void 0:v.find(k=>k.value===A))!=null&&x.exclusive)}),C.includes(g.value)?C=C.filter(A=>A!==g.value):C.push(g.value)),l.value=C}else l.value=g.value}function f(g){return m(g)?"active":""}function m(g){let C;return u.value.multiple?C=(l.value||[]).includes(String(g.value)):C=l.value===g.value,C}return(g,C)=>{const A=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(u).label?(i.openBlock(),i.createBlock(A,{key:0,label:i.unref(u).label},null,8,["label"])):i.createCommentVNode("",!0),i.createElementVNode("div",wd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u).options,(v,x)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:x},[v.image?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`image-card ${f(v)}`),onClick:()=>s(v)},[i.createVNode(hd,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),i.createElementVNode("div",xd,[i.createElementVNode("div",Cd,[m(v)?(i.openBlock(),i.createBlock(vt,{key:0,name:"check",size:"25px"})):i.createCommentVNode("",!0)])])],10,Sd)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(`card-option ${f(v)}`),onClick:()=>s(v)},[i.createElementVNode("span",null,i.toDisplayString(v.label),1)],10,kd))],64))),128))])],64)}}}),gn=(t,l)=>{const o=t.__vccOpts||t;for(const[u,s]of l)o[u]=s;return o},Ad=gn(Ed,[["__scopeId","data-v-148468d6"]]),rr={dark:{type:Boolean,default:null}};function ir(t,l){return i.computed(()=>t.dark===null?l.dark.isActive:t.dark)}function Td(t,l){const o=i.ref(null),u=i.computed(()=>t.disable===!0?null:i.h("span",{ref:o,class:"no-outline",tabindex:-1}));function s(f){const m=l.value;f!==void 0&&f.type.indexOf("key")===0?m!==null&&document.activeElement!==m&&m.contains(document.activeElement)===!0&&m.focus():o.value!==null&&(f===void 0||m!==null&&m.contains(f.target)===!0)&&o.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const No={name:String};function Bd(t={}){return(l,o,u)=>{l[o](i.h("input",{class:"hidden"+(u||""),...t.value}))}}function ru(t){return i.computed(()=>t.name||t.for)}const Rd={xs:30,sm:35,md:40,lg:50,xl:60},st={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const t=Object.defineProperty({},"passive",{get(){Object.assign(st,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,t),window.removeEventListener("qtest",null,t)}catch{}function Od(){}function iu(t){return t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]?t=t.changedTouches[0]:t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),{top:t.clientY,left:t.clientX}}function qd(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const l=[];let o=t.target;for(;o;){if(l.push(o),o.tagName==="HTML")return l.push(document),l.push(window),l;o=o.parentElement}}function Kt(t){t.stopPropagation()}function It(t){t.cancelable!==!1&&t.preventDefault()}function Ke(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function $o(t,l,o){const u=`__q_${l}_evt`;t[u]=t[u]!==void 0?t[u].concat(o):o,o.forEach(s=>{s[0].addEventListener(s[1],t[s[2]],st[s[3]])})}function ou(t,l){const o=`__q_${l}_evt`;t[o]!==void 0&&(t[o].forEach(u=>{u[0].removeEventListener(u[1],t[u[2]],st[u[3]])}),t[o]=void 0)}const lu={...rr,...fi,...No,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>t==="tf"||t==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},au=["update:modelValue"];function uu(t,l){const{props:o,slots:u,emit:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f,g=ir(o,m),C=i.ref(null),{refocusTargetEl:A,refocusTarget:v}=Td(o,C),x=di(o,Rd),k=i.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),_=i.computed(()=>{const w=i.toRaw(o.val);return k.value===!0?o.modelValue.findIndex(Z=>i.toRaw(Z)===w):-1}),B=i.computed(()=>k.value===!0?_.value!==-1:i.toRaw(o.modelValue)===i.toRaw(o.trueValue)),W=i.computed(()=>k.value===!0?_.value===-1:i.toRaw(o.modelValue)===i.toRaw(o.falseValue)),O=i.computed(()=>B.value===!1&&W.value===!1),G=i.computed(()=>o.disable===!0?-1:o.tabindex||0),U=i.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable===!0?" disabled":"")+(g.value===!0?` q-${t}--dark`:"")+(o.dense===!0?` q-${t}--dense`:"")+(o.leftLabel===!0?" reverse":"")),D=i.computed(()=>{const w=B.value===!0?"truthy":W.value===!0?"falsy":"indet",Z=o.color!==void 0&&(o.keepColor===!0||(t==="toggle"?B.value===!0:W.value!==!0))?` text-${o.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${w}${Z}`}),Q=i.computed(()=>{const w={type:"checkbox"};return o.name!==void 0&&Object.assign(w,{".checked":B.value,"^checked":B.value===!0?"checked":void 0,name:o.name,value:k.value===!0?o.val:o.trueValue}),w}),j=Bd(Q),Y=i.computed(()=>{const w={tabindex:G.value,role:t==="toggle"?"switch":"checkbox","aria-label":o.label,"aria-checked":O.value===!0?"mixed":B.value===!0?"true":"false"};return o.disable===!0&&(w["aria-disabled"]="true"),w});function I(w){w!==void 0&&(Ke(w),v(w)),o.disable!==!0&&s("update:modelValue",le(),w)}function le(){if(k.value===!0){if(B.value===!0){const w=o.modelValue.slice();return w.splice(_.value,1),w}return o.modelValue.concat([o.val])}if(B.value===!0){if(o.toggleOrder!=="ft"||o.toggleIndeterminate===!1)return o.falseValue}else if(W.value===!0){if(o.toggleOrder==="ft"||o.toggleIndeterminate===!1)return o.trueValue}else return o.toggleOrder!=="ft"?o.trueValue:o.falseValue;return o.indeterminateValue}function P(w){(w.keyCode===13||w.keyCode===32)&&Ke(w)}function T(w){(w.keyCode===13||w.keyCode===32)&&I(w)}const V=l(B,O);return Object.assign(f,{toggle:I}),()=>{const w=V();o.disable!==!0&&j(w,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const Z=[i.h("div",{class:D.value,style:x.value,"aria-hidden":"true"},w)];A.value!==null&&Z.push(A.value);const F=o.label!==void 0?qn(u.default,[o.label]):pt(u.default);return F!==void 0&&Z.push(i.h("div",{class:`q-${t}__label q-anchor--skip`},F)),i.h("div",{ref:C,class:U.value,...Y.value,onClick:I,onKeydown:P,onKeyup:T},Z)}}const Md=i.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[i.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[i.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),i.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),su=Ye({name:"QCheckbox",props:lu,emits:au,setup(t){function l(o,u){const s=i.computed(()=>(o.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[i.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[i.h(vt,{class:"q-checkbox__icon",name:s.value})])]:[Md]}return uu("checkbox",l)}}),cu=i.defineComponent({__name:"SimpleCheckbox",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(su,{outlined:"",label:o.control.label,color:"green-10","model-value":!!l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=!l.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),Vd=Ye({name:"QToggle",props:{...lu,icon:String,iconColor:String},emits:au,setup(t){function l(o,u){const s=i.computed(()=>(o.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),f=i.computed(()=>o.value===!0?t.iconColor:null);return()=>[i.h("div",{class:"q-toggle__track"}),i.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[i.h(vt,{name:s.value,color:f.value})]:void 0)]}return uu("toggle",l)}}),Ld=i.defineComponent({__name:"SimpleSwitch",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(Vd,{falseValue:0,trueValue:1,outlined:"",label:o.control.label,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=s),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}});let Fo,mi=0;const Je=new Array(256);for(let t=0;t<256;t++)Je[t]=(t+256).toString(16).substring(1);const Id=(()=>{const t=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(t!==void 0){if(t.randomBytes!==void 0)return t.randomBytes;if(t.getRandomValues!==void 0)return l=>{const o=new Uint8Array(l);return t.getRandomValues(o),o}}return l=>{const o=[];for(let u=l;u>0;u--)o.push(Math.floor(Math.random()*256));return o}})(),fu=4096;function Do(){(Fo===void 0||mi+16>fu)&&(mi=0,Fo=Id(fu));const t=Array.prototype.slice.call(Fo,mi,mi+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Je[t[0]]+Je[t[1]]+Je[t[2]]+Je[t[3]]+"-"+Je[t[4]]+Je[t[5]]+"-"+Je[t[6]]+Je[t[7]]+"-"+Je[t[8]]+Je[t[9]]+"-"+Je[t[10]]+Je[t[11]]+Je[t[12]]+Je[t[13]]+Je[t[14]]+Je[t[15]]}function Pd(t){return t??null}function du(t,l){return t??(l===!0?`f_${Do()}`:null)}function Nd({getValue:t,required:l=!0}={}){if(mn.value===!0){const o=t!==void 0?i.ref(Pd(t())):i.ref(null);return l===!0&&o.value===null&&i.onMounted(()=>{o.value=`f_${Do()}`}),t!==void 0&&i.watch(t,u=>{o.value=du(u,l)}),o}return t!==void 0?i.computed(()=>du(t(),l)):i.ref(`f_${Do()}`)}const hu=/^on[A-Z]/;function $d(){const{attrs:t,vnode:l}=i.getCurrentInstance(),o={listeners:i.ref({}),attributes:i.ref({})};function u(){const s={},f={};for(const m in t)m!=="class"&&m!=="style"&&hu.test(m)===!1&&(s[m]=t[m]);for(const m in l.props)hu.test(m)===!0&&(f[m]=l.props[m]);o.attributes.value=s,o.listeners.value=f}return i.onBeforeUpdate(u),u(),o}const Fd="_q_",Dd="_q_fo_";function zd({validate:t,resetValidation:l,requiresQForm:o}){const u=i.inject(Dd,!1);if(u!==!1){const{props:s,proxy:f}=i.getCurrentInstance();Object.assign(f,{validate:t,resetValidation:l}),i.watch(()=>s.disable,m=>{m===!0?(typeof l=="function"&&l(),u.unbindComponent(f)):u.bindComponent(f)}),i.onMounted(()=>{s.disable!==!0&&u.bindComponent(f)}),i.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(f)})}else o===!0&&console.error("Parent QForm not found on useFormChild()!")}const mu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,gu=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,pu=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,gi=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,pi=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,zo={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),hexColor:t=>mu.test(t),hexaColor:t=>gu.test(t),hexOrHexaColor:t=>pu.test(t),rgbColor:t=>gi.test(t),rgbaColor:t=>pi.test(t),rgbOrRgbaColor:t=>gi.test(t)||pi.test(t),hexOrRgbColor:t=>mu.test(t)||gi.test(t),hexaOrRgbaColor:t=>gu.test(t)||pi.test(t),anyColor:t=>pu.test(t)||gi.test(t)||pi.test(t)};function vu(t,l=250,o){let u=null;function s(){const f=arguments,m=()=>{u=null,t.apply(this,f)};u!==null&&clearTimeout(u),u=setTimeout(m,l)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const Ud=[!0,!1,"ondemand"],Wd={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>Ud.includes(t)}};function Hd(t,l){const{props:o,proxy:u}=i.getCurrentInstance(),s=i.ref(!1),f=i.ref(null),m=i.ref(!1);zd({validate:W,resetValidation:B});let g=0,C;const A=i.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),v=i.computed(()=>o.disable!==!0&&A.value===!0&&l.value===!1),x=i.computed(()=>o.error===!0||s.value===!0),k=i.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:f.value);i.watch(()=>o.modelValue,()=>{m.value=!0,v.value===!0&&o.lazyRules===!1&&O()});function _(){o.lazyRules!=="ondemand"&&v.value===!0&&m.value===!0&&O()}i.watch(()=>o.reactiveRules,G=>{G===!0?C===void 0&&(C=i.watch(()=>o.rules,_,{immediate:!0,deep:!0})):C!==void 0&&(C(),C=void 0)},{immediate:!0}),i.watch(()=>o.lazyRules,_),i.watch(t,G=>{G===!0?m.value=!0:v.value===!0&&o.lazyRules!=="ondemand"&&O()});function B(){g++,l.value=!1,m.value=!1,s.value=!1,f.value=null,O.cancel()}function W(G=o.modelValue){if(o.disable===!0||A.value===!1)return!0;const U=++g,D=l.value!==!0?()=>{m.value=!0}:()=>{},Q=(Y,I)=>{Y===!0&&D(),s.value=Y,f.value=I||null,l.value=!1},j=[];for(let Y=0;Y<o.rules.length;Y++){const I=o.rules[Y];let le;if(typeof I=="function"?le=I(G,zo):typeof I=="string"&&zo[I]!==void 0&&(le=zo[I](G)),le===!1||typeof le=="string")return Q(!0,le),!1;le!==!0&&le!==void 0&&j.push(le)}return j.length===0?(Q(!1),!0):(l.value=!0,Promise.all(j).then(Y=>{if(Y===void 0||Array.isArray(Y)===!1||Y.length===0)return U===g&&Q(!1),!0;const I=Y.find(le=>le===!1||typeof le=="string");return U===g&&Q(I!==void 0,I),I===void 0},Y=>(U===g&&(console.error(Y),Q(!0)),!1)))}const O=vu(W,0);return i.onBeforeUnmount(()=>{C!==void 0&&C(),O.cancel()}),Object.assign(u,{resetValidation:B,validate:W}),ci(u,"hasError",()=>x.value),{isDirtyModel:m,hasRules:A,hasError:x,errorMessage:k,validate:W,resetValidation:B}}let Mn=[],Mr=[];function _u(t){Mr=Mr.filter(l=>l!==t)}function Kd(t){_u(t),Mr.push(t)}function bu(t){_u(t),Mr.length===0&&Mn.length!==0&&(Mn[Mn.length-1](),Mn=[])}function vi(t){Mr.length===0?t():Mn.push(t)}function Gd(t){Mn=Mn.filter(l=>l!==t)}function Vr(t){return t!=null&&(""+t).length!==0}const _i={...{...rr,...Wd,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},maxlength:[Number,String]},Uo=["update:modelValue","clear","focus","blur"];function Wo({requiredForAttr:t=!0,tagProp:l,changeEvent:o=!1}={}){const{props:u,proxy:s}=i.getCurrentInstance(),f=ir(u,s.$q),m=Nd({required:t,getValue:()=>u.for});return{requiredForAttr:t,changeEvent:o,tag:l===!0?i.computed(()=>u.tag):{value:"label"},isDark:f,editable:i.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:i.ref(!1),focused:i.ref(!1),hasPopupOpen:!1,splitAttrs:$d(),targetUid:m,rootRef:i.ref(null),targetRef:i.ref(null),controlRef:i.ref(null)}}function Ho(t){const{props:l,emit:o,slots:u,attrs:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f;let g=null;t.hasValue===void 0&&(t.hasValue=i.computed(()=>Vr(l.modelValue))),t.emitValue===void 0&&(t.emitValue=H=>{o("update:modelValue",H)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:P,onFocusout:T}),Object.assign(t,{clearValue:V,onControlFocusin:P,onControlFocusout:T,focus:I}),t.computedCounter===void 0&&(t.computedCounter=i.computed(()=>{if(l.counter!==!1){const H=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,ie=l.maxlength!==void 0?l.maxlength:l.maxValues;return H+(ie!==void 0?" / "+ie:"")}}));const{isDirtyModel:C,hasRules:A,hasError:v,errorMessage:x,resetValidation:k}=Hd(t.focused,t.innerLoading),_=t.floatingLabel!==void 0?i.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):i.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),B=i.computed(()=>l.bottomSlots===!0||l.hint!==void 0||A.value===!0||l.counter===!0||l.error!==null),W=i.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),O=i.computed(()=>`q-field row no-wrap items-start q-field--${W.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(_.value===!0?" q-field--float":"")+(U.value===!0?" q-field--labeled":"")+(l.dense===!0?" q-field--dense":"")+(l.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(t.isDark.value===!0?" q-field--dark":"")+(t.getControl===void 0?" q-field--auto-height":"")+(t.focused.value===!0?" q-field--focused":"")+(v.value===!0?" q-field--error":"")+(v.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&B.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),G=i.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(v.value===!0?" text-negative":typeof l.standout=="string"&&l.standout.length!==0&&t.focused.value===!0?` ${l.standout}`:l.color!==void 0?` text-${l.color}`:"")),U=i.computed(()=>l.labelSlot===!0||l.label!==void 0),D=i.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&v.value!==!0?` text-${l.labelColor}`:"")),Q=i.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:_.value,modelValue:l.modelValue,emitValue:t.emitValue})),j=i.computed(()=>{const H={};return t.targetUid.value&&(H.for=t.targetUid.value),l.disable===!0&&(H["aria-disabled"]="true"),H});function Y(){const H=document.activeElement;let ie=t.targetRef!==void 0&&t.targetRef.value;ie&&(H===null||H.id!==t.targetUid.value)&&(ie.hasAttribute("tabindex")===!0||(ie=ie.querySelector("[tabindex]")),ie&&ie!==H&&ie.focus({preventScroll:!0}))}function I(){vi(Y)}function le(){Gd(Y);const H=document.activeElement;H!==null&&t.rootRef.value.contains(H)&&H.blur()}function P(H){g!==null&&(clearTimeout(g),g=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,o("focus",H))}function T(H,ie){g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,!(document.hasFocus()===!0&&(t.hasPopupOpen===!0||t.controlRef===void 0||t.controlRef.value===null||t.controlRef.value.contains(document.activeElement)!==!1))&&(t.focused.value===!0&&(t.focused.value=!1,o("blur",H)),ie!==void 0&&ie())})}function V(H){Ke(H),m.platform.is.mobile!==!0?(t.targetRef!==void 0&&t.targetRef.value||t.rootRef.value).focus():t.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),l.type==="file"&&(t.inputRef.value.value=null),o("update:modelValue",null),t.changeEvent===!0&&o("change",null),o("clear",l.modelValue),i.nextTick(()=>{const ie=C.value;k(),C.value=ie})}function w(H){[13,32].includes(H.keyCode)&&V(H)}function Z(){const H=[];return u.prepend!==void 0&&H.push(i.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:It},u.prepend())),H.push(i.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},F())),v.value===!0&&l.noErrorIcon===!1&&H.push(se("error",[i.h(vt,{name:m.iconSet.field.error,color:"negative"})])),l.loading===!0||t.innerLoading.value===!0?H.push(se("inner-loading-append",u.loading!==void 0?u.loading():[i.h(Lo,{color:l.color})])):l.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&H.push(se("inner-clearable-append",[i.h(vt,{class:"q-field__focusable-action",name:l.clearIcon||m.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":m.lang.label.clear,onKeyup:w,onClick:V})])),u.append!==void 0&&H.push(i.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:It},u.append())),t.getInnerAppend!==void 0&&H.push(se("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&H.push(t.getControlChild()),H}function F(){const H=[];return l.prefix!==void 0&&l.prefix!==null&&H.push(i.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&H.push(t.getShadowControl()),t.getControl!==void 0?H.push(t.getControl()):u.rawControl!==void 0?H.push(u.rawControl()):u.control!==void 0&&H.push(i.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},u.control(Q.value))),U.value===!0&&H.push(i.h("div",{class:D.value},pt(u.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&H.push(i.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),H.concat(pt(u.default))}function ae(){let H,ie;v.value===!0?x.value!==null?(H=[i.h("div",{role:"alert"},x.value)],ie=`q--slot-error-${x.value}`):(H=pt(u.error),ie="q--slot-error"):(l.hideHint!==!0||t.focused.value===!0)&&(l.hint!==void 0?(H=[i.h("div",l.hint)],ie=`q--slot-hint-${l.hint}`):(H=pt(u.hint),ie="q--slot-hint"));const ge=l.counter===!0||u.counter!==void 0;if(l.hideBottomSpace===!0&&ge===!1&&H===void 0)return;const q=i.h("div",{key:ie,class:"q-field__messages col"},H);return i.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:It},[l.hideBottomSpace===!0?q:i.h(i.Transition,{name:"q-transition--field-message"},()=>q),ge===!0?i.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function se(H,ie){return ie===null?null:i.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},ie)}let ce=!1;return i.onDeactivated(()=>{ce=!0}),i.onActivated(()=>{ce===!0&&l.autofocus===!0&&f.focus()}),l.autofocus===!0&&i.onMounted(()=>{f.focus()}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(f,{focus:I,blur:le}),function(){const ie=t.getControl===void 0&&u.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...j.value}:j.value;return i.h(t.tag.value,{ref:t.rootRef,class:[O.value,s.class],style:s.style,...ie},[u.before!==void 0?i.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:It},u.before()):null,i.h("div",{class:"q-field__inner relative-position col self-stretch"},[i.h("div",{ref:t.controlRef,class:G.value,tabindex:-1,...t.controlEvents},Z()),B.value===!0?ae():null]),u.after!==void 0?i.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:It},u.after()):null])}}function Ko(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function Vn(t,l){return Ko(t)===!0?!1:[].concat(l).includes(t.keyCode)}const yu={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},bi={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},wu=Object.keys(bi);wu.forEach(t=>{bi[t].regex=new RegExp(bi[t].pattern)});const jd=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+wu.join("")+"])|(.)","g"),Su=/[.*+?^${}()|[\]\\]/g,We="",Qd={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Yd(t,l,o,u){let s,f,m,g,C,A;const v=i.ref(null),x=i.ref(_());function k(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}i.watch(()=>t.type+t.autogrow,W),i.watch(()=>t.mask,P=>{if(P!==void 0)O(x.value,!0);else{const T=I(x.value);W(),t.modelValue!==T&&l("update:modelValue",T)}}),i.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&O(x.value,!0)}),i.watch(()=>t.unmaskedValue,()=>{v.value===!0&&O(x.value)});function _(){if(W(),v.value===!0){const P=j(I(t.modelValue));return t.fillMask!==!1?le(P):P}return t.modelValue}function B(P){if(P<s.length)return s.slice(-P);let T="",V=s;const w=V.indexOf(We);if(w!==-1){for(let Z=P-V.length;Z>0;Z--)T+=We;V=V.slice(0,w)+T+V.slice(w)}return V}function W(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&k(),v.value===!1){g=void 0,s="",f="";return}const P=yu[t.mask]===void 0?t.mask:yu[t.mask],T=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",V=T.replace(Su,"\\$&"),w=[],Z=[],F=[];let ae=t.reverseFillMask===!0,se="",ce="";P.replace(jd,(q,R,oe,ve,_e)=>{if(ve!==void 0){const K=bi[ve];F.push(K),ce=K.negate,ae===!0&&(Z.push("(?:"+ce+"+)?("+K.pattern+"+)?(?:"+ce+"+)?("+K.pattern+"+)?"),ae=!1),Z.push("(?:"+ce+"+)?("+K.pattern+")?")}else if(oe!==void 0)se="\\"+(oe==="\\"?"":oe),F.push(oe),w.push("([^"+se+"]+)?"+se+"?");else{const K=R!==void 0?R:_e;se=K==="\\"?"\\\\\\\\":K.replace(Su,"\\\\$&"),F.push(K),w.push("([^"+se+"]+)?"+se+"?")}});const H=new RegExp("^"+w.join("")+"("+(se===""?".":"[^"+se+"]")+"+)?"+(se===""?"":"["+se+"]*")+"$"),ie=Z.length-1,ge=Z.map((q,R)=>R===0&&t.reverseFillMask===!0?new RegExp("^"+V+"*"+q):R===ie?new RegExp("^"+q+"("+(ce===""?".":ce)+"+)?"+(t.reverseFillMask===!0?"$":V+"*")):new RegExp("^"+q));m=F,g=q=>{const R=H.exec(t.reverseFillMask===!0?q:q.slice(0,F.length+1));R!==null&&(q=R.slice(1).join(""));const oe=[],ve=ge.length;for(let _e=0,K=q;_e<ve;_e++){const ne=ge[_e].exec(K);if(ne===null)break;K=K.slice(ne.shift().length),oe.push(...ne)}return oe.length!==0?oe.join(""):q},s=F.map(q=>typeof q=="string"?q:We).join(""),f=s.split(We).join(T)}function O(P,T,V){const w=u.value,Z=w.selectionEnd,F=w.value.length-Z,ae=I(P);T===!0&&W();const se=j(ae),ce=t.fillMask!==!1?le(se):se,H=x.value!==ce;w.value!==ce&&(w.value=ce),H===!0&&(x.value=ce),document.activeElement===w&&i.nextTick(()=>{if(ce===f){const ge=t.reverseFillMask===!0?f.length:0;w.setSelectionRange(ge,ge,"forward");return}if(V==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=w.selectionEnd;let q=Z-1;for(let R=C;R<=q&&R<ge;R++)s[R]!==We&&q++;U.right(w,q);return}if(["deleteContentBackward","deleteContentForward"].indexOf(V)!==-1){const ge=t.reverseFillMask===!0?Z===0?ce.length>se.length?1:0:Math.max(0,ce.length-(ce===f?0:Math.min(se.length,F)+1))+1:Z;w.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(H===!0){const ge=Math.max(0,ce.length-(ce===f?0:Math.min(se.length,F+1)));ge===1&&Z===1?w.setSelectionRange(ge,ge,"forward"):U.rightReverse(w,ge)}else{const ge=ce.length-F;w.setSelectionRange(ge,ge,"backward")}else if(H===!0){const ge=Math.max(0,s.indexOf(We),Math.min(se.length,Z)-1);U.right(w,ge)}else{const ge=Z-1;U.right(w,ge)}});const ie=t.unmaskedValue===!0?I(ce):ce;String(t.modelValue)!==ie&&(t.modelValue!==null||ie!=="")&&o(ie,!0)}function G(P,T,V){const w=j(I(P.value));T=Math.max(0,s.indexOf(We),Math.min(w.length,T)),C=T,P.setSelectionRange(T,V,"forward")}const U={left(P,T){const V=s.slice(T-1).indexOf(We)===-1;let w=Math.max(0,T-1);for(;w>=0;w--)if(s[w]===We){T=w,V===!0&&T++;break}if(w<0&&s[T]!==void 0&&s[T]!==We)return U.right(P,0);T>=0&&P.setSelectionRange(T,T,"backward")},right(P,T){const V=P.value.length;let w=Math.min(V,T+1);for(;w<=V;w++)if(s[w]===We){T=w;break}else s[w-1]===We&&(T=w);if(w>V&&s[T-1]!==void 0&&s[T-1]!==We)return U.left(P,V);P.setSelectionRange(T,T,"forward")},leftReverse(P,T){const V=B(P.value.length);let w=Math.max(0,T-1);for(;w>=0;w--)if(V[w-1]===We){T=w;break}else if(V[w]===We&&(T=w,w===0))break;if(w<0&&V[T]!==void 0&&V[T]!==We)return U.rightReverse(P,0);T>=0&&P.setSelectionRange(T,T,"backward")},rightReverse(P,T){const V=P.value.length,w=B(V),Z=w.slice(0,T+1).indexOf(We)===-1;let F=Math.min(V,T+1);for(;F<=V;F++)if(w[F-1]===We){T=F,T>0&&Z===!0&&T--;break}if(F>V&&w[T-1]!==void 0&&w[T-1]!==We)return U.leftReverse(P,V);P.setSelectionRange(T,T,"forward")}};function D(P){l("click",P),A=void 0}function Q(P){if(l("keydown",P),Ko(P)===!0||P.altKey===!0)return;const T=u.value,V=T.selectionStart,w=T.selectionEnd;if(P.shiftKey||(A=void 0),P.keyCode===37||P.keyCode===39){P.shiftKey&&A===void 0&&(A=T.selectionDirection==="forward"?V:w);const Z=U[(P.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),Z(T,A===V?w:V),P.shiftKey){const F=T.selectionStart;T.setSelectionRange(Math.min(A,F),Math.max(A,F),"forward")}}else P.keyCode===8&&t.reverseFillMask!==!0&&V===w?(U.left(T,V),T.setSelectionRange(T.selectionStart,w,"backward")):P.keyCode===46&&t.reverseFillMask===!0&&V===w&&(U.rightReverse(T,w),T.setSelectionRange(V,T.selectionEnd,"forward"))}function j(P){if(P==null||P==="")return"";if(t.reverseFillMask===!0)return Y(P);const T=m;let V=0,w="";for(let Z=0;Z<T.length;Z++){const F=P[V],ae=T[Z];if(typeof ae=="string")w+=ae,F===ae&&V++;else if(F!==void 0&&ae.regex.test(F))w+=ae.transform!==void 0?ae.transform(F):F,V++;else return w}return w}function Y(P){const T=m,V=s.indexOf(We);let w=P.length-1,Z="";for(let F=T.length-1;F>=0&&w!==-1;F--){const ae=T[F];let se=P[w];if(typeof ae=="string")Z=ae+Z,se===ae&&w--;else if(se!==void 0&&ae.regex.test(se))do Z=(ae.transform!==void 0?ae.transform(se):se)+Z,w--,se=P[w];while(V===F&&se!==void 0&&ae.regex.test(se));else return Z}return Z}function I(P){return typeof P!="string"||g===void 0?typeof P=="number"?g(""+P):P:g(P)}function le(P){return f.length-P.length<=0?P:t.reverseFillMask===!0&&P.length!==0?f.slice(0,-P.length)+P:P+f.slice(P.length)}return{innerValue:x,hasMask:v,moveCursorForPaste:G,updateMaskValue:O,onMaskedKeydown:Q,onMaskedClick:D}}function Zd(t,l){function o(){const u=t.modelValue;try{const s="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(u)===u&&("length"in u?Array.from(u):[u]).forEach(f=>{s.items.add(f)}),{files:s.files}}catch{return{files:void 0}}}return i.computed(()=>{if(t.type==="file")return o()})}const Xd=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Jd=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,eh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,th=/[a-z0-9_ -]$/i;function xu(t){return function(o){if(o.type==="compositionend"||o.type==="change"){if(o.target.qComposing!==!0)return;o.target.qComposing=!1,t(o)}else o.type==="compositionupdate"&&o.target.qComposing!==!0&&typeof o.data=="string"&&(gt.is.firefox===!0?th.test(o.data)===!1:Xd.test(o.data)===!0||Jd.test(o.data)===!0||eh.test(o.data)===!0)===!0&&(o.target.qComposing=!0)}}const Cu=Ye({name:"QInput",inheritAttrs:!1,props:{..._i,...Qd,...No,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Uo,"paste","change","keydown","click","animationend"],setup(t,{emit:l,attrs:o}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f={};let m=NaN,g,C,A=null,v;const x=i.ref(null),k=ru(t),{innerValue:_,hasMask:B,moveCursorForPaste:W,updateMaskValue:O,onMaskedKeydown:G,onMaskedClick:U}=Yd(t,l,se,x),D=Zd(t),Q=i.computed(()=>Vr(_.value)),j=xu(F),Y=Wo({changeEvent:!0}),I=i.computed(()=>t.type==="textarea"||t.autogrow===!0),le=i.computed(()=>I.value===!0||["text","search","url","tel","password"].includes(t.type)),P=i.computed(()=>{const R={...Y.splitAttrs.listeners.value,onInput:F,onPaste:Z,onChange:H,onBlur:ie,onFocus:Kt};return R.onCompositionstart=R.onCompositionupdate=R.onCompositionend=j,B.value===!0&&(R.onKeydown=G,R.onClick=U),t.autogrow===!0&&(R.onAnimationend=ae),R}),T=i.computed(()=>{const R={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:k.value,...Y.splitAttrs.attributes.value,id:Y.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return I.value===!1&&(R.type=t.type),t.autogrow===!0&&(R.rows=1),R});i.watch(()=>t.type,()=>{x.value&&(x.value.value=t.modelValue)}),i.watch(()=>t.modelValue,R=>{if(B.value===!0){if(C===!0&&(C=!1,String(R)===m))return;O(R)}else _.value!==R&&(_.value=R,t.type==="number"&&f.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete f.value));t.autogrow===!0&&i.nextTick(ce)}),i.watch(()=>t.autogrow,R=>{R===!0?i.nextTick(ce):x.value!==null&&o.rows>0&&(x.value.style.height="auto")}),i.watch(()=>t.dense,()=>{t.autogrow===!0&&i.nextTick(ce)});function V(){vi(()=>{const R=document.activeElement;x.value!==null&&x.value!==R&&(R===null||R.id!==Y.targetUid.value)&&x.value.focus({preventScroll:!0})})}function w(){x.value!==null&&x.value.select()}function Z(R){if(B.value===!0&&t.reverseFillMask!==!0){const oe=R.target;W(oe,oe.selectionStart,oe.selectionEnd)}l("paste",R)}function F(R){if(!R||!R.target)return;if(t.type==="file"){l("update:modelValue",R.target.files);return}const oe=R.target.value;if(R.target.qComposing===!0){f.value=oe;return}if(B.value===!0)O(oe,!1,R.inputType);else if(se(oe),le.value===!0&&R.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=R.target;ve!==void 0&&_e!==void 0&&i.nextTick(()=>{R.target===document.activeElement&&oe.indexOf(R.target.value)===0&&R.target.setSelectionRange(ve,_e)})}t.autogrow===!0&&ce()}function ae(R){l("animationend",R),ce()}function se(R,oe){v=()=>{A=null,t.type!=="number"&&f.hasOwnProperty("value")===!0&&delete f.value,t.modelValue!==R&&m!==R&&(m=R,oe===!0&&(C=!0),l("update:modelValue",R),i.nextTick(()=>{m===R&&(m=NaN)})),v=void 0},t.type==="number"&&(g=!0,f.value=R),t.debounce!==void 0?(A!==null&&clearTimeout(A),f.value=R,A=setTimeout(v,t.debounce)):v()}function ce(){requestAnimationFrame(()=>{const R=x.value;if(R!==null){const oe=R.parentNode.style,{scrollTop:ve}=R,{overflowY:_e,maxHeight:K}=s.platform.is.firefox===!0?{}:window.getComputedStyle(R),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(R.style.overflowY="hidden"),oe.marginBottom=R.scrollHeight-1+"px",R.style.height="1px",R.style.height=R.scrollHeight+"px",ne===!0&&(R.style.overflowY=parseInt(K,10)<R.scrollHeight?"auto":"hidden"),oe.marginBottom="",R.scrollTop=ve}})}function H(R){j(R),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),l("change",R.target.value)}function ie(R){R!==void 0&&Kt(R),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),g=!1,C=!1,delete f.value,t.type!=="file"&&setTimeout(()=>{x.value!==null&&(x.value.value=_.value!==void 0?_.value:"")})}function ge(){return f.hasOwnProperty("value")===!0?f.value:_.value!==void 0?_.value:""}i.onBeforeUnmount(()=>{ie()}),i.onMounted(()=>{t.autogrow===!0&&ce()}),Object.assign(Y,{innerValue:_,fieldClass:i.computed(()=>`q-${I.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:i.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:x,emitValue:se,hasValue:Q,floatingLabel:i.computed(()=>Q.value===!0&&(t.type!=="number"||isNaN(_.value)===!1)||Vr(t.displayValue)),getControl:()=>i.h(I.value===!0?"textarea":"input",{ref:x,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...T.value,...P.value,...t.type!=="file"?{value:ge()}:D.value}),getShadowControl:()=>i.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(I.value===!0?"":" text-no-wrap")},[i.h("span",{class:"invisible"},ge()),i.h("span",t.shadowText)])});const q=Ho(Y);return Object.assign(u,{focus:V,select:w,getNativeElement:()=>x.value}),ci(u,"nativeEl",()=>x.value),q}}),yi=Ye({name:"QCard",props:{...rr,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=i.getCurrentInstance(),u=ir(t,o),s=i.computed(()=>"q-card"+(u.value===!0?" q-card--dark q-dark":"")+(t.bordered===!0?" q-card--bordered":"")+(t.square===!0?" q-card--square no-border-radius":"")+(t.flat===!0?" q-card--flat no-shadow":""));return()=>i.h(t.tag,{class:s.value},pt(l.default))}}),nh=i.defineComponent({__name:"WinInput",props:i.mergeModels({modelValue:{},rules:{},label:{},placeholder:{},mask:{},prefix:{},suffix:{},hint:{},maxlength:{},type:{default:"text"},transparent:{type:Boolean,default:!0},width:{default:"100%"},height:{default:"70px"},inputHeight:{},readonly:{type:Boolean},fillMask:{type:Boolean,default:!1},minWidth:{default:"200px"},inputStyle:{default:"resize: none"},labelStyle:{default:"padding-left: 5px"},hintOptions:{default:{color:"grey-7",position:"right"}},counter:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:l}){const o=i.useModel(t,"modelValue"),u=t,s=i.ref(!1),f=i.computed(()=>u.transparent?"glass-card":"win-card"),m=i.computed(()=>u.label===""?void 0:u.label),g=i.computed(()=>{let _="width: 100%; padding-left: 10px; padding-right: 10px;";return u.inputHeight&&(_+="height: "+u.inputHeight),_}),C=i.computed(()=>o.value||s.value?"17.5px":"15px"),A=i.ref(null);function v(){A.value.focus()}function x(){s.value=!0}function k(){s.value=!1}return l({focus:v}),(_,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(yi,{onClick:v,class:i.normalizeClass(`${f.value} row items-center ${o.value&&_.label||s.value&&_.label?"q-pt-md":""} `),style:i.normalizeStyle({minHeight:_.height,width:_.width,maxWidth:"calc(100vw - 32px)",minWidth:_.minWidth,margin:"auto"})},{default:i.withCtx(()=>[i.renderSlot(_.$slots,"fixed-label",{class:"self-start"}),i.createVNode(Cu,{modelValue:o.value,"onUpdate:modelValue":B[0]||(B[0]=W=>o.value=W),ref_key:"inputRef",ref:A,"label-color":"black","input-class":`text-black ${m.value?"":"text-center ww-title"}`,"input-style":_.inputStyle,style:i.normalizeStyle(g.value),readonly:_.readonly,mask:_.mask,prefix:_.prefix,label:m.value,type:_.type,suffix:_.suffix,counter:_.counter,maxlength:_.maxlength,rules:_.rules,borderless:"",dense:"","unmasked-value":"","reverse-fill-mask":"",placeholder:_.placeholder,onFocus:x,onBlur:k},{label:i.withCtx(()=>[!_.label||_.label!=""?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${C.value};`+_.labelStyle)},i.toDisplayString(_.label)+" "+i.toDisplayString(_.required&&!_.readonly?"*":""),5)):i.createCommentVNode("",!0)]),append:i.withCtx(()=>[i.renderSlot(_.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),i.renderSlot(_.$slots,"bottom")]),_:3},8,["class","style"]),_.hint?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`text-${_.hintOptions.position} text-${_.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},i.toDisplayString(_.hint),3)):i.createCommentVNode("",!0)],64))}}),rh={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},ih=i.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(l,o)=>(i.openBlock(),i.createElementBlock("div",rh,i.toDisplayString(l.label),1))}}),oh={style:{"max-width":"400px"},class:"text-center"},lh={style:{"font-size":"16px"}},ah={style:{"font-size":"16px"}},Go=gn(i.defineComponent({__name:"InputControl",props:i.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=t,o=i.ref(null),u=i.computed(()=>{var f;return(f=l.control.controlType)==null?void 0:f.split("_")[1]}),s=i.useModel(t,"modelValue");return i.onMounted(()=>{var f;(f=o.value)==null||f.focus()}),(f,m)=>(i.openBlock(),i.createElementBlock("div",oh,[!f.innerLabel&&f.control.label?(i.openBlock(),i.createBlock(ih,{key:0,label:f.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(nh,{modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:f.innerLabel?f.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:o},i.createSlots({_:2},[f.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",lh,i.toDisplayString(f.control.prefix),1)]),key:"0"}:void 0,f.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",ah,i.toDisplayString(f.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function jo(t,l){const o=t.style;for(const u in l)o[u]=l[u]}function uh(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const l=i.unref(t);if(l)return l.$el||l}function ku(t,l){if(t==null||t.contains(l)===!0)return!0;for(let o=t.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(l))return!0;return!1}function sh(t,l=250){let o=!1,u;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},l),u=t.apply(this,arguments)),u}}function Eu(t,l,o,u){o.modifiers.stop===!0&&Kt(t);const s=o.modifiers.color;let f=o.modifiers.center;f=f===!0||u===!0;const m=document.createElement("span"),g=document.createElement("span"),C=iu(t),{left:A,top:v,width:x,height:k}=l.getBoundingClientRect(),_=Math.sqrt(x*x+k*k),B=_/2,W=`${(x-_)/2}px`,O=f?W:`${C.left-A-B}px`,G=`${(k-_)/2}px`,U=f?G:`${C.top-v-B}px`;g.className="q-ripple__inner",jo(g,{height:`${_}px`,width:`${_}px`,transform:`translate3d(${O},${U},0) scale3d(.2,.2,1)`,opacity:0}),m.className=`q-ripple${s?" text-"+s:""}`,m.setAttribute("dir","ltr"),m.appendChild(g),l.appendChild(m);const D=()=>{m.remove(),clearTimeout(Q)};o.abort.push(D);let Q=setTimeout(()=>{g.classList.add("q-ripple__inner--enter"),g.style.transform=`translate3d(${W},${G},0) scale3d(1,1,1)`,g.style.opacity=.2,Q=setTimeout(()=>{g.classList.remove("q-ripple__inner--enter"),g.classList.add("q-ripple__inner--leave"),g.style.opacity=0,Q=setTimeout(()=>{m.remove(),o.abort.splice(o.abort.indexOf(D),1)},275)},250)},50)}function Au(t,{modifiers:l,value:o,arg:u}){const s=Object.assign({},t.cfg.ripple,l,o);t.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||u,keyCodes:[].concat(s.keyCodes||13)}}const Tu=Ha({name:"ripple",beforeMount(t,l){const o=l.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const u={cfg:o,enabled:l.value!==!1,modifiers:{},abort:[],start(s){u.enabled===!0&&s.qSkipRipple!==!0&&s.type===(u.modifiers.early===!0?"pointerdown":"click")&&Eu(s,t,u,s.qKeyEvent===!0)},keystart:sh(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&Vn(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&Eu(s,t,u,!0)},300)};Au(u,l),t.__qripple=u,$o(u,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},updated(t,l){if(l.oldValue!==l.value){const o=t.__qripple;o!==void 0&&(o.enabled=l.value!==!1,o.enabled===!0&&Object(l.value)===l.value&&Au(o,l))}},beforeUnmount(t){const l=t.__qripple;l!==void 0&&(l.abort.forEach(o=>{o()}),ou(l,"main"),delete t._qripple)}}),Bu={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},ch=Object.keys(Bu),fh={align:{type:String,validator:t=>ch.includes(t)}};function dh(t){return i.computed(()=>{const l=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${Bu[l]}`})}function Ru(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Ou(t,l){return(t.aliasOf||t)===(l.aliasOf||l)}function hh(t,l){for(const o in l){const u=l[o],s=t[o];if(typeof u=="string"){if(u!==s)return!1}else if(Array.isArray(s)===!1||s.length!==u.length||u.some((f,m)=>f!==s[m]))return!1}return!0}function qu(t,l){return Array.isArray(l)===!0?t.length===l.length&&t.every((o,u)=>o===l[u]):t.length===1&&t[0]===l}function mh(t,l){return Array.isArray(t)===!0?qu(t,l):Array.isArray(l)===!0?qu(l,t):t===l}function gh(t,l){if(Object.keys(t).length!==Object.keys(l).length)return!1;for(const o in t)if(mh(t[o],l[o])===!1)return!1;return!0}const Mu={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},ph={...Mu,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Vu({fallbackTag:t,useDisableForRouterLinkProps:l=!0}={}){const o=i.getCurrentInstance(),{props:u,proxy:s,emit:f}=o,m=Ya(o),g=i.computed(()=>u.disable!==!0&&u.href!==void 0),C=l===!0?i.computed(()=>m===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):i.computed(()=>m===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),A=i.computed(()=>C.value===!0?U(u.to):null),v=i.computed(()=>A.value!==null),x=i.computed(()=>g.value===!0||v.value===!0),k=i.computed(()=>u.type==="a"||x.value===!0?"a":u.tag||t||"div"),_=i.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:A.value.href,target:u.target}:{}),B=i.computed(()=>{if(v.value===!1)return-1;const{matched:j}=A.value,{length:Y}=j,I=j[Y-1];if(I===void 0)return-1;const le=s.$route.matched;if(le.length===0)return-1;const P=le.findIndex(Ou.bind(null,I));if(P!==-1)return P;const T=Ru(j[Y-2]);return Y>1&&Ru(I)===T&&le[le.length-1].path!==T?le.findIndex(Ou.bind(null,j[Y-2])):P}),W=i.computed(()=>v.value===!0&&B.value!==-1&&hh(s.$route.params,A.value.params)),O=i.computed(()=>W.value===!0&&B.value===s.$route.matched.length-1&&gh(s.$route.params,A.value.params)),G=i.computed(()=>v.value===!0?O.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":W.value===!0?` ${u.activeClass}`:"":"");function U(j){try{return s.$router.resolve(j)}catch{}return null}function D(j,{returnRouterError:Y,to:I=u.to,replace:le=u.replace}={}){if(u.disable===!0)return j.preventDefault(),Promise.resolve(!1);if(j.metaKey||j.altKey||j.ctrlKey||j.shiftKey||j.button!==void 0&&j.button!==0||u.target==="_blank")return Promise.resolve(!1);j.preventDefault();const P=s.$router[le===!0?"replace":"push"](I);return Y===!0?P:P.then(()=>{}).catch(()=>{})}function Q(j){if(v.value===!0){const Y=I=>D(j,I);f("click",j,Y),j.defaultPrevented!==!0&&Y()}else f("click",j)}return{hasRouterLink:v,hasHrefLink:g,hasLink:x,linkTag:k,resolvedLink:A,linkIsActive:W,linkIsExactActive:O,linkClass:G,linkAttrs:_,getLink:U,navigateToRouterLink:D,navigateOnClick:Q}}const Lu={none:0,xs:4,sm:8,md:16,lg:24,xl:32},vh={xs:8,sm:10,md:14,lg:20,xl:24},_h=["button","submit","reset"],bh=/[^\s]\/[^\s]/,yh=["flat","outline","push","unelevated"];function wh(t,l){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":l}const Sh={...{...fi,...Mu,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...yh.reduce((t,l)=>(t[l]=Boolean)&&t,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...fh.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function xh(t){const l=di(t,vh),o=dh(t),{hasRouterLink:u,hasLink:s,linkTag:f,linkAttrs:m,navigateOnClick:g}=Vu({fallbackTag:"button"}),C=i.computed(()=>{const O=t.fab===!1&&t.fabMini===!1?l.value:{};return t.padding!==void 0?Object.assign({},O,{padding:t.padding.split(/\s+/).map(G=>G in Lu?Lu[G]+"px":G).join(" "),minWidth:"0",minHeight:"0"}):O}),A=i.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=i.computed(()=>t.disable!==!0&&t.loading!==!0),x=i.computed(()=>v.value===!0?t.tabindex||0:-1),k=i.computed(()=>wh(t,"standard")),_=i.computed(()=>{const O={tabindex:x.value};return s.value===!0?Object.assign(O,m.value):_h.includes(t.type)===!0&&(O.type=t.type),f.value==="a"?(t.disable===!0?O["aria-disabled"]="true":O.href===void 0&&(O.role="button"),u.value!==!0&&bh.test(t.type)===!0&&(O.type=t.type)):t.disable===!0&&(O.disabled="",O["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(O,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),O}),B=i.computed(()=>{let O;t.color!==void 0?t.flat===!0||t.outline===!0?O=`text-${t.textColor||t.color}`:O=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(O=`text-${t.textColor}`);const G=t.round===!0?"round":`rectangle${A.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${k.value} q-btn--${G}`+(O!==void 0?" "+O:"")+(v.value===!0?" q-btn--actionable q-focusable q-hoverable":t.disable===!0?" disabled":"")+(t.fab===!0?" q-btn--fab":t.fabMini===!0?" q-btn--fab-mini":"")+(t.noCaps===!0?" q-btn--no-uppercase":"")+(t.dense===!0?" q-btn--dense":"")+(t.stretch===!0?" no-border-radius self-stretch":"")+(t.glossy===!0?" glossy":"")+(t.square?" q-btn--square":"")}),W=i.computed(()=>o.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:B,style:C,innerClasses:W,attributes:_,hasLink:s,linkTag:f,navigateOnClick:g,isActionable:v}}const{passiveCapture:At}=st;let or=null,lr=null,ar=null;const ur=Ye({name:"QBtn",props:{...Sh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:l,emit:o}){const{proxy:u}=i.getCurrentInstance(),{classes:s,style:f,innerClasses:m,attributes:g,hasLink:C,linkTag:A,navigateOnClick:v,isActionable:x}=xh(t),k=i.ref(null),_=i.ref(null);let B=null,W,O=null;const G=i.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),U=i.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:C.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),D=i.computed(()=>({center:t.round})),Q=i.computed(()=>{const F=Math.max(0,Math.min(100,t.percentage));return F>0?{transition:"transform 0.6s",transform:`translateX(${F-100}%)`}:{}}),j=i.computed(()=>{if(t.loading===!0)return{onMousedown:Z,onTouchstart:Z,onClick:Z,onKeydown:Z,onKeyup:Z};if(x.value===!0){const F={onClick:I,onKeydown:le,onMousedown:T};if(u.$q.platform.has.touch===!0){const ae=t.onTouchstart!==void 0?"":"Passive";F[`onTouchstart${ae}`]=P}return F}return{onClick:Ke}}),Y=i.computed(()=>({ref:k,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:f.value,...g.value,...j.value}));function I(F){if(k.value!==null){if(F!==void 0){if(F.defaultPrevented===!0)return;const ae=document.activeElement;if(t.type==="submit"&&ae!==document.body&&k.value.contains(ae)===!1&&ae.contains(k.value)===!1){k.value.focus();const se=()=>{document.removeEventListener("keydown",Ke,!0),document.removeEventListener("keyup",se,At),k.value!==null&&k.value.removeEventListener("blur",se,At)};document.addEventListener("keydown",Ke,!0),document.addEventListener("keyup",se,At),k.value.addEventListener("blur",se,At)}}v(F)}}function le(F){k.value!==null&&(o("keydown",F),Vn(F,[13,32])===!0&&lr!==k.value&&(lr!==null&&w(),F.defaultPrevented!==!0&&(k.value.focus(),lr=k.value,k.value.classList.add("q-btn--active"),document.addEventListener("keyup",V,!0),k.value.addEventListener("blur",V,At)),Ke(F)))}function P(F){k.value!==null&&(o("touchstart",F),F.defaultPrevented!==!0&&(or!==k.value&&(or!==null&&w(),or=k.value,B=F.target,B.addEventListener("touchcancel",V,At),B.addEventListener("touchend",V,At)),W=!0,O!==null&&clearTimeout(O),O=setTimeout(()=>{O=null,W=!1},200)))}function T(F){k.value!==null&&(F.qSkipRipple=W===!0,o("mousedown",F),F.defaultPrevented!==!0&&ar!==k.value&&(ar!==null&&w(),ar=k.value,k.value.classList.add("q-btn--active"),document.addEventListener("mouseup",V,At)))}function V(F){if(k.value!==null&&!(F!==void 0&&F.type==="blur"&&document.activeElement===k.value)){if(F!==void 0&&F.type==="keyup"){if(lr===k.value&&Vn(F,[13,32])===!0){const ae=new MouseEvent("click",F);ae.qKeyEvent=!0,F.defaultPrevented===!0&&It(ae),F.cancelBubble===!0&&Kt(ae),k.value.dispatchEvent(ae),Ke(F),F.qKeyEvent=!0}o("keyup",F)}w()}}function w(F){const ae=_.value;F!==!0&&(or===k.value||ar===k.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),or===k.value&&(B!==null&&(B.removeEventListener("touchcancel",V,At),B.removeEventListener("touchend",V,At)),or=B=null),ar===k.value&&(document.removeEventListener("mouseup",V,At),ar=null),lr===k.value&&(document.removeEventListener("keyup",V,!0),k.value!==null&&k.value.removeEventListener("blur",V,At),lr=null),k.value!==null&&k.value.classList.remove("q-btn--active")}function Z(F){Ke(F),F.qSkipRipple=!0}return i.onBeforeUnmount(()=>{w(!0)}),Object.assign(u,{click:F=>{x.value===!0&&I(F)}}),()=>{let F=[];t.icon!==void 0&&F.push(i.h(vt,{name:t.icon,left:t.stack!==!0&&G.value===!0,role:"img"})),G.value===!0&&F.push(i.h("span",{class:"block"},[t.label])),F=qn(l.default,F),t.iconRight!==void 0&&t.round===!1&&F.push(i.h(vt,{name:t.iconRight,right:t.stack!==!0&&G.value===!0,role:"img"}));const ae=[i.h("span",{class:"q-focus-helper",ref:_})];return t.loading===!0&&t.percentage!==void 0&&ae.push(i.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[i.h("span",{class:"q-btn__progress-indicator fit block",style:Q.value})])),ae.push(i.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+m.value},F)),t.loading!==null&&ae.push(i.h(i.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[i.h("span",{key:"loading",class:"absolute-full flex flex-center"},l.loading!==void 0?l.loading():[i.h(Lo)])]:null)),i.withDirectives(i.h(A.value,Y.value,ae),[[Tu,U.value,void 0,D.value]])}}}),Iu=t=>(i.pushScopeId("data-v-3bcb795a"),t=t(),i.popScopeId(),t),Ch={class:"buttons-container"},kh={class:"lt-md"},Eh={class:"row justify-between q-my-md q-px-md"},Ah=Iu(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Th={key:1},Bh=Iu(()=>i.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),Rh=gn(i.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const l=t,o=i.computed(()=>l.currentStep+1);return(u,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Ch,[o.value>1?(i.openBlock(),i.createBlock(ur,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[0]||(s[0]=f=>u.$emit("prev")),flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_back_ios",color:"info"})]),_:1})):i.createCommentVNode("",!0),o.value!==u.stepsCount?(i.openBlock(),i.createBlock(ur,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[1]||(s[1]=f=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",kh,[i.createElementVNode("div",Eh,[o.value>1&&o.value<u.stepsCount?(i.openBlock(),i.createBlock(ur,{key:0,color:"info",class:"q-px-md-xl q-py-sm q-mr-sm win-btn win-btn-primary",onClick:s[2]||(s[2]=f=>u.$emit("prev")),flat:"","no-caps":""},{default:i.withCtx(()=>[Ah]),_:1})):(i.openBlock(),i.createElementBlock("div",Th)),o.value<u.stepsCount?(i.openBlock(),i.createBlock(ur,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:s[3]||(s[3]=f=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:i.withCtx(()=>[Bh]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),Oh=Ye({name:"QField",inheritAttrs:!1,props:{..._i,tag:{type:String,default:"label"}},emits:Uo,setup(){return Ho(Wo({tagProp:!0}))}}),qh={xs:8,sm:10,md:14,lg:20,xl:24},Mh=Ye({name:"QChip",props:{...rr,...fi,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(t,{slots:l,emit:o}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=ir(t,u),f=di(t,qh),m=i.computed(()=>t.selected===!0||t.icon!==void 0),g=i.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),C=i.computed(()=>t.iconRemove||u.iconSet.chip.remove),A=i.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),v=i.computed(()=>{const O=t.outline===!0&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(t.outline===!1&&t.color!==void 0?` bg-${t.color}`:"")+(O?` text-${O} q-chip--colored`:"")+(t.disable===!0?" disabled":"")+(t.dense===!0?" q-chip--dense":"")+(t.outline===!0?" q-chip--outline":"")+(t.selected===!0?" q-chip--selected":"")+(A.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(t.square===!0?" q-chip--square":"")+(s.value===!0?" q-chip--dark q-dark":"")}),x=i.computed(()=>{const O=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},G={...O,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:O,remove:G}});function k(O){O.keyCode===13&&_(O)}function _(O){t.disable||(o("update:selected",!t.selected),o("click",O))}function B(O){(O.keyCode===void 0||O.keyCode===13)&&(Ke(O),t.disable===!1&&(o("update:modelValue",!1),o("remove")))}function W(){const O=[];A.value===!0&&O.push(i.h("div",{class:"q-focus-helper"})),m.value===!0&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const G=t.label!==void 0?[i.h("div",{class:"ellipsis"},[t.label])]:void 0;return O.push(i.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},ad(l.default,G))),t.iconRight&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&O.push(i.h(vt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:C.value,...x.value.remove,onClick:B,onKeyup:B})),O}return()=>{if(t.modelValue===!1)return;const O={class:v.value,style:f.value};return A.value===!0&&Object.assign(O,x.value.chip,{onClick:_,onKeyup:k}),Qa("div",O,W(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[Tu,t.ripple]])}}}),Vh=Ye({name:"QItem",props:{...rr,...ph,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(t,{slots:l,emit:o}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=ir(t,u),{hasLink:f,linkAttrs:m,linkClass:g,linkTag:C,navigateOnClick:A}=Vu(),v=i.ref(null),x=i.ref(null),k=i.computed(()=>t.clickable===!0||f.value===!0||t.tag==="label"),_=i.computed(()=>t.disable!==!0&&k.value===!0),B=i.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(f.value===!0&&t.active===null?g.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(_.value===!0?" q-item--clickable q-link cursor-pointer "+(t.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(t.focused===!0?" q-manual-focusable--focused":""):"")),W=i.computed(()=>t.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function O(D){_.value===!0&&(x.value!==null&&(D.qKeyEvent!==!0&&document.activeElement===v.value?x.value.focus():document.activeElement===x.value&&v.value.focus()),A(D))}function G(D){if(_.value===!0&&Vn(D,[13,32])===!0){Ke(D),D.qKeyEvent=!0;const Q=new MouseEvent("click",D);Q.qKeyEvent=!0,v.value.dispatchEvent(Q)}o("keyup",D)}function U(){const D=ld(l.default,[]);return _.value===!0&&D.unshift(i.h("div",{class:"q-focus-helper",tabindex:-1,ref:x})),D}return()=>{const D={ref:v,class:B.value,style:W.value,role:"listitem",onClick:O,onKeyup:G};return _.value===!0?(D.tabindex=t.tabindex||"0",Object.assign(D,m.value)):k.value===!0&&(D["aria-disabled"]="true"),i.h(C.value,D,U())}}}),Lh=Ye({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:l}){const o=i.computed(()=>`q-item__section column q-item__section--${t.avatar===!0||t.side===!0||t.thumbnail===!0?"side":"main"}`+(t.top===!0?" q-item__section--top justify-start":" justify-center")+(t.avatar===!0?" q-item__section--avatar":"")+(t.thumbnail===!0?" q-item__section--thumbnail":"")+(t.noWrap===!0?" q-item__section--nowrap":""));return()=>i.h("div",{class:o.value},pt(l.default))}}),Ih=Ye({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:l}){const o=i.computed(()=>parseInt(t.lines,10)),u=i.computed(()=>"q-item__label"+(t.overline===!0?" q-item__label--overline text-overline":"")+(t.caption===!0?" q-item__label--caption text-caption":"")+(t.header===!0?" q-item__label--header":"")+(o.value===1?" ellipsis":"")),s=i.computed(()=>t.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>i.h("div",{style:s.value,class:u.value},pt(l.default))}});function Ph(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),Mo.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Nh={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function $h({showing:t,avoidEmit:l,configureAnchorEl:o}){const{props:u,proxy:s,emit:f}=i.getCurrentInstance(),m=i.ref(null);let g=null;function C(_){return m.value===null?!1:_===void 0||_.touches===void 0||_.touches.length<=1}const A={};o===void 0&&(Object.assign(A,{hide(_){s.hide(_)},toggle(_){s.toggle(_),_.qAnchorHandled=!0},toggleKey(_){Vn(_,13)===!0&&A.toggle(_)},contextClick(_){s.hide(_),It(_),i.nextTick(()=>{s.show(_),_.qAnchorHandled=!0})},prevent:It,mobileTouch(_){if(A.mobileCleanup(_),C(_)!==!0)return;s.hide(_),m.value.classList.add("non-selectable");const B=_.target;$o(A,"anchor",[[B,"touchmove","mobileCleanup","passive"],[B,"touchend","mobileCleanup","passive"],[B,"touchcancel","mobileCleanup","passive"],[m.value,"contextmenu","prevent","notPassive"]]),g=setTimeout(()=>{g=null,s.show(_),_.qAnchorHandled=!0},300)},mobileCleanup(_){m.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),t.value===!0&&_!==void 0&&Ph()}}),o=function(_=u.contextMenu){if(u.noParentEvent===!0||m.value===null)return;let B;_===!0?s.$q.platform.is.mobile===!0?B=[[m.value,"touchstart","mobileTouch","passive"]]:B=[[m.value,"mousedown","hide","passive"],[m.value,"contextmenu","contextClick","notPassive"]]:B=[[m.value,"click","toggle","passive"],[m.value,"keyup","toggleKey","passive"]],$o(A,"anchor",B)});function v(){ou(A,"anchor")}function x(_){for(m.value=_;m.value.classList.contains("q-anchor--skip");)m.value=m.value.parentNode;o()}function k(){if(u.target===!1||u.target===""||s.$el.parentNode===null)m.value=null;else if(u.target===!0)x(s.$el.parentNode);else{let _=u.target;if(typeof u.target=="string")try{_=document.querySelector(u.target)}catch{_=void 0}_!=null?(m.value=_.$el||_,o()):(m.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return i.watch(()=>u.contextMenu,_=>{m.value!==null&&(v(),o(_))}),i.watch(()=>u.target,()=>{m.value!==null&&v(),k()}),i.watch(()=>u.noParentEvent,_=>{m.value!==null&&(_===!0?v():o())}),i.onMounted(()=>{k(),l!==!0&&u.modelValue===!0&&m.value===null&&f("update:modelValue",!1)}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:m,canShow:C,anchorEvents:A}}function Fh(t,l){const o=i.ref(null);let u;function s(g,C){const A=`${C!==void 0?"add":"remove"}EventListener`,v=C!==void 0?C:u;g!==window&&g[A]("scroll",v,st.passive),window[A]("scroll",v,st.passive),u=C}function f(){o.value!==null&&(s(o.value),o.value=null)}const m=i.watch(()=>t.noParentEvent,()=>{o.value!==null&&(f(),l())});return i.onBeforeUnmount(m),{localScrollTarget:o,unconfigureScrollTarget:f,changeScrollEvent:s}}const Pu={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Nu=["beforeShow","show","beforeHide","hide"];function $u({showing:t,canShow:l,hideOnRouteChange:o,handleShow:u,handleHide:s,processOnMount:f}){const m=i.getCurrentInstance(),{props:g,emit:C,proxy:A}=m;let v;function x(U){t.value===!0?B(U):k(U)}function k(U){if(g.disable===!0||U!==void 0&&U.qAnchorHandled===!0||l!==void 0&&l(U)!==!0)return;const D=g["onUpdate:modelValue"]!==void 0;D===!0&&(C("update:modelValue",!0),v=U,i.nextTick(()=>{v===U&&(v=void 0)})),(g.modelValue===null||D===!1)&&_(U)}function _(U){t.value!==!0&&(t.value=!0,C("beforeShow",U),u!==void 0?u(U):C("show",U))}function B(U){if(g.disable===!0)return;const D=g["onUpdate:modelValue"]!==void 0;D===!0&&(C("update:modelValue",!1),v=U,i.nextTick(()=>{v===U&&(v=void 0)})),(g.modelValue===null||D===!1)&&W(U)}function W(U){t.value!==!1&&(t.value=!1,C("beforeHide",U),s!==void 0?s(U):C("hide",U))}function O(U){g.disable===!0&&U===!0?g["onUpdate:modelValue"]!==void 0&&C("update:modelValue",!1):U===!0!==t.value&&(U===!0?_:W)(v)}i.watch(()=>g.modelValue,O),o!==void 0&&Ya(m)===!0&&i.watch(()=>A.$route.fullPath,()=>{o.value===!0&&t.value===!0&&B()}),f===!0&&i.onMounted(()=>{O(g.modelValue)});const G={show:k,hide:B,toggle:x};return Object.assign(A,G),G}const Fu={};let Dh=1,zh=document.body;function Uh(t,l){const o=document.createElement("div");if(o.id=l!==void 0?`q-portal--${l}--${Dh++}`:t,Fu.globalNodes!==void 0){const u=Fu.globalNodes.class;u!==void 0&&(o.className=u)}return zh.appendChild(o),o}function Wh(t){t.remove()}const Lr=[];function Hh(t,l){do{if(t.$options.name==="QMenu"){if(t.hide(l),t.$props.separateClosePopup===!0)return Io(t)}else if(t.__qPortal===!0){const o=Io(t);return o!==void 0&&o.$options.name==="QPopupProxy"?(t.hide(l),o):t}t=Io(t)}while(t!=null)}const Kh=Ye({name:"QPortal",setup(t,{slots:l}){return()=>l.default()}});function Gh(t){for(t=t.parent;t!=null;){if(t.type.name==="QGlobalDialog")return!0;if(t.type.name==="QDialog"||t.type.name==="QMenu")return!1;t=t.parent}return!1}function Du(t,l,o,u){const s=i.ref(!1),f=i.ref(!1);let m=null;const g={},C=u==="dialog"&&Gh(t);function A(x){if(x===!0){bu(g),f.value=!0;return}f.value=!1,s.value===!1&&(C===!1&&m===null&&(m=Uh(!1,u)),s.value=!0,Lr.push(t.proxy),Kd(g))}function v(x){if(f.value=!1,x!==!0)return;bu(g),s.value=!1;const k=Lr.indexOf(t.proxy);k!==-1&&Lr.splice(k,1),m!==null&&(Wh(m),m=null)}return i.onUnmounted(()=>{v(!0)}),t.proxy.__qPortal=!0,ci(t.proxy,"contentEl",()=>l.value),{showPortal:A,hidePortal:v,portalIsActive:s,portalIsAccessible:f,renderPortal:()=>C===!0?o():s.value===!0?[i.h(i.Teleport,{to:m},i.h(Kh,o))]:void 0}}const zu={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Uu(t,l=()=>{},o=()=>{}){return{transitionProps:i.computed(()=>{const u=`q-transition--${t.transitionShow||l()}`,s=`q-transition--${t.transitionHide||o()}`;return{appear:!0,enterFromClass:`${u}-enter-from`,enterActiveClass:`${u}-enter-active`,enterToClass:`${u}-enter-to`,leaveFromClass:`${s}-leave-from`,leaveActiveClass:`${s}-leave-active`,leaveToClass:`${s}-leave-to`}}),transitionStyle:i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function Wu(){let t;const l=i.getCurrentInstance();function o(){t=void 0}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTick:o,registerTick(u){t=u,i.nextTick(()=>{t===u&&(qr(l)===!1&&t(),t=void 0)})}}}const jh=[Element,String],Qh=[null,document,document.body,document.scrollingElement,document.documentElement];function Yh(t,l){let o=uh(l);if(o===void 0){if(t==null)return window;o=t.closest(".scroll,.scroll-y,.overflow-auto")}return Qh.includes(o)?window:o}function Zh(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function Xh(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let wi;function Jh(){if(wi!==void 0)return wi;const t=document.createElement("p"),l=document.createElement("div");jo(t,{width:"100%",height:"200px"}),jo(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(t),document.body.appendChild(l);const o=t.offsetWidth;l.style.overflow="scroll";let u=t.offsetWidth;return o===u&&(u=l.clientWidth),l.remove(),wi=o-u,wi}function em(t,l=!0){return!t||t.nodeType!==Node.ELEMENT_NODE?!1:l?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"]))}const Ln=[];let sr;function tm(t){sr=t.keyCode===27}function nm(){sr===!0&&(sr=!1)}function rm(t){sr===!0&&(sr=!1,Vn(t,27)===!0&&Ln[Ln.length-1](t))}function Hu(t){window[t]("keydown",tm),window[t]("blur",nm),window[t]("keyup",rm),sr=!1}function Ku(t){gt.is.desktop===!0&&(Ln.push(t),Ln.length===1&&Hu("addEventListener"))}function Si(t){const l=Ln.indexOf(t);l!==-1&&(Ln.splice(l,1),Ln.length===0&&Hu("removeEventListener"))}const In=[];function Gu(t){In[In.length-1](t)}function ju(t){gt.is.desktop===!0&&(In.push(t),In.length===1&&document.body.addEventListener("focusin",Gu))}function Qo(t){const l=In.indexOf(t);l!==-1&&(In.splice(l,1),In.length===0&&document.body.removeEventListener("focusin",Gu))}const{notPassiveCapture:xi}=st,Pn=[];function Ci(t){const l=t.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let o=Lr.length-1;for(;o>=0;){const u=Lr[o].$;if(u.type.name==="QTooltip"){o--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;o--}for(let u=Pn.length-1;u>=0;u--){const s=Pn[u];if((s.anchorEl.value===null||s.anchorEl.value.contains(l)===!1)&&(l===document.body||s.innerRef.value!==null&&s.innerRef.value.contains(l)===!1))t.qClickOutside=!0,s.onClickOutside(t);else return}}function im(t){Pn.push(t),Pn.length===1&&(document.addEventListener("mousedown",Ci,xi),document.addEventListener("touchstart",Ci,xi))}function Qu(t){const l=Pn.findIndex(o=>o===t);l!==-1&&(Pn.splice(l,1),Pn.length===0&&(document.removeEventListener("mousedown",Ci,xi),document.removeEventListener("touchstart",Ci,xi)))}let Yu,Zu;function Xu(t){const l=t.split(" ");return l.length!==2?!1:["top","center","bottom"].includes(l[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(l[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function om(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const Yo={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{Yo[`${t}#ltr`]=t,Yo[`${t}#rtl`]=t});function Ju(t,l){const o=t.split(" ");return{vertical:o[0],horizontal:Yo[`${o[1]}#${l===!0?"rtl":"ltr"}`]}}function lm(t,l){let{top:o,left:u,right:s,bottom:f,width:m,height:g}=t.getBoundingClientRect();return l!==void 0&&(o-=l[1],u-=l[0],f+=l[1],s+=l[0],m+=l[0],g+=l[1]),{top:o,bottom:f,height:g,left:u,right:s,width:m,middle:u+(s-u)/2,center:o+(f-o)/2}}function am(t,l,o){let{top:u,left:s}=t.getBoundingClientRect();return u+=l.top,s+=l.left,o!==void 0&&(u+=o[1],s+=o[0]),{top:u,bottom:u+1,height:1,left:s,right:s+1,width:1,middle:s,center:u}}function um(t,l){return{top:0,center:l/2,bottom:l,left:0,middle:t/2,right:t}}function es(t,l,o,u){return{top:t[o.vertical]-l[u.vertical],left:t[o.horizontal]-l[u.horizontal]}}function ts(t,l=0){if(t.targetEl===null||t.anchorEl===null||l>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{ts(t,l+1)},10);return}const{targetEl:o,offset:u,anchorEl:s,anchorOrigin:f,selfOrigin:m,absoluteOffset:g,fit:C,cover:A,maxHeight:v,maxWidth:x}=t;if(gt.is.ios===!0&&window.visualViewport!==void 0){const Y=document.body.style,{offsetLeft:I,offsetTop:le}=window.visualViewport;I!==Yu&&(Y.setProperty("--q-pe-left",I+"px"),Yu=I),le!==Zu&&(Y.setProperty("--q-pe-top",le+"px"),Zu=le)}const{scrollLeft:k,scrollTop:_}=o,B=g===void 0?lm(s,A===!0?[0,0]:u):am(s,g,u);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:x||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:W,offsetHeight:O}=o,{elWidth:G,elHeight:U}=C===!0||A===!0?{elWidth:Math.max(B.width,W),elHeight:A===!0?Math.max(B.height,O):O}:{elWidth:W,elHeight:O};let D={maxWidth:x,maxHeight:v};(C===!0||A===!0)&&(D.minWidth=B.width+"px",A===!0&&(D.minHeight=B.height+"px")),Object.assign(o.style,D);const Q=um(G,U);let j=es(B,Q,f,m);if(g===void 0||u===void 0)Zo(j,B,Q,f,m);else{const{top:Y,left:I}=j;Zo(j,B,Q,f,m);let le=!1;if(j.top!==Y){le=!0;const P=2*u[1];B.center=B.top-=P,B.bottom-=P+2}if(j.left!==I){le=!0;const P=2*u[0];B.middle=B.left-=P,B.right-=P+2}le===!0&&(j=es(B,Q,f,m),Zo(j,B,Q,f,m))}D={top:j.top+"px",left:j.left+"px"},j.maxHeight!==void 0&&(D.maxHeight=j.maxHeight+"px",B.height>j.maxHeight&&(D.minHeight=D.maxHeight)),j.maxWidth!==void 0&&(D.maxWidth=j.maxWidth+"px",B.width>j.maxWidth&&(D.minWidth=D.maxWidth)),Object.assign(o.style,D),o.scrollTop!==_&&(o.scrollTop=_),o.scrollLeft!==k&&(o.scrollLeft=k)}function Zo(t,l,o,u,s){const f=o.bottom,m=o.right,g=Jh(),C=window.innerHeight-g,A=document.body.clientWidth;if(t.top<0||t.top+f>C)if(s.vertical==="center")t.top=l[u.vertical]>C/2?Math.max(0,C-f):0,t.maxHeight=Math.min(f,C);else if(l[u.vertical]>C/2){const v=Math.min(C,u.vertical==="center"?l.center:u.vertical===s.vertical?l.bottom:l.top);t.maxHeight=Math.min(f,v),t.top=Math.max(0,v-f)}else t.top=Math.max(0,u.vertical==="center"?l.center:u.vertical===s.vertical?l.top:l.bottom),t.maxHeight=Math.min(f,C-t.top);if(t.left<0||t.left+m>A)if(t.maxWidth=Math.min(m,A),s.horizontal==="middle")t.left=l[u.horizontal]>A/2?Math.max(0,A-m):0;else if(l[u.horizontal]>A/2){const v=Math.min(A,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.right:l.left);t.maxWidth=Math.min(m,v),t.left=Math.max(0,v-t.maxWidth)}else t.left=Math.max(0,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.left:l.right),t.maxWidth=Math.min(m,A-t.left)}const sm=Ye({name:"QMenu",inheritAttrs:!1,props:{...Nh,...Pu,...rr,...zu,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Xu},self:{type:String,validator:Xu},offset:{type:Array,validator:om},scrollTarget:jh,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Nu,"click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){let s=null,f,m,g;const C=i.getCurrentInstance(),{proxy:A}=C,{$q:v}=A,x=i.ref(null),k=i.ref(!1),_=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),B=ir(t,v),{registerTick:W,removeTick:O}=Wu(),{registerTimeout:G}=hi(),{transitionProps:U,transitionStyle:D}=Uu(t),{localScrollTarget:Q,changeScrollEvent:j,unconfigureScrollTarget:Y}=Fh(t,oe),{anchorEl:I,canShow:le}=$h({showing:k}),{hide:P}=$u({showing:k,canShow:le,handleShow:ge,handleHide:q,hideOnRouteChange:_,processOnMount:!0}),{showPortal:T,hidePortal:V,renderPortal:w}=Du(C,x,Ee,"menu"),Z={anchorEl:I,innerRef:x,onClickOutside(X){if(t.persistent!==!0&&k.value===!0)return P(X),(X.type==="touchstart"||X.target.classList.contains("q-dialog__backdrop"))&&Ke(X),!0}},F=i.computed(()=>Ju(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=i.computed(()=>t.cover===!0?F.value:Ju(t.self||"top start",v.lang.rtl)),se=i.computed(()=>(t.square===!0?" q-menu--square":"")+(B.value===!0?" q-menu--dark q-dark":"")),ce=i.computed(()=>t.autoClose===!0?{onClick:ve}:{}),H=i.computed(()=>k.value===!0&&t.persistent!==!0);i.watch(H,X=>{X===!0?(Ku(K),im(Z)):(Si(K),Qu(Z))});function ie(){vi(()=>{let X=x.value;X&&X.contains(document.activeElement)!==!0&&(X=X.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||X.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||X.querySelector("[autofocus], [data-autofocus]")||X,X.focus({preventScroll:!0}))})}function ge(X){if(s=t.noRefocus===!1?document.activeElement:null,ju(_e),T(),oe(),f=void 0,X!==void 0&&(t.touchPosition||t.contextMenu)){const Ne=iu(X);if(Ne.left!==void 0){const{top:ot,left:Nt}=I.value.getBoundingClientRect();f={left:Ne.left-Nt,top:Ne.top-ot}}}m===void 0&&(m=i.watch(()=>v.screen.width+"|"+v.screen.height+"|"+t.self+"|"+t.anchor+"|"+v.lang.rtl,ne)),t.noFocus!==!0&&document.activeElement.blur(),W(()=>{ne(),t.noFocus!==!0&&ie()}),G(()=>{v.platform.is.ios===!0&&(g=t.autoClose,x.value.click()),ne(),T(!0),o("show",X)},t.transitionDuration)}function q(X){O(),V(),R(!0),s!==null&&(X===void 0||X.qClickOutside!==!0)&&(((X&&X.type.indexOf("key")===0?s.closest('[tabindex]:not([tabindex^="-"])'):void 0)||s).focus(),s=null),G(()=>{V(!0),o("hide",X)},t.transitionDuration)}function R(X){f=void 0,m!==void 0&&(m(),m=void 0),(X===!0||k.value===!0)&&(Qo(_e),Y(),Qu(Z),Si(K)),X!==!0&&(s=null)}function oe(){(I.value!==null||t.scrollTarget!==void 0)&&(Q.value=Yh(I.value,t.scrollTarget),j(Q.value,ne))}function ve(X){g!==!0?(Hh(A,X),o("click",X)):g=!1}function _e(X){H.value===!0&&t.noFocus!==!0&&ku(x.value,X.target)!==!0&&ie()}function K(X){o("escapeKey"),P(X)}function ne(){ts({targetEl:x.value,offset:t.offset,anchorEl:I.value,anchorOrigin:F.value,selfOrigin:ae.value,absoluteOffset:f,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ee(){return i.h(i.Transition,U.value,()=>k.value===!0?i.h("div",{role:"menu",...u,ref:x,tabindex:-1,class:["q-menu q-position-engine scroll"+se.value,u.class],style:[u.style,D.value],...ce.value},pt(l.default)):null)}return i.onBeforeUnmount(R),Object.assign(A,{focus:ie,updatePosition:ne}),w}});function cm(t,l,o){function u(){}return i.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Ir=0,Xo,Jo,Pr,el=!1,ns,rs,is,Nn=null;function fm(t){dm(t)&&Ke(t)}function dm(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const l=qd(t),o=t.shiftKey&&!t.deltaX,u=!o&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),s=o||u?t.deltaY:t.deltaX;for(let f=0;f<l.length;f++){const m=l[f];if(em(m,u))return u?s<0&&m.scrollTop===0?!0:s>0&&m.scrollTop+m.clientHeight===m.scrollHeight:s<0&&m.scrollLeft===0?!0:s>0&&m.scrollLeft+m.clientWidth===m.scrollWidth}return!0}function os(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ki(t){el!==!0&&(el=!0,requestAnimationFrame(()=>{el=!1;const{height:l}=t.target,{clientHeight:o,scrollTop:u}=document.scrollingElement;(Pr===void 0||l!==window.innerHeight)&&(Pr=o-l,document.scrollingElement.scrollTop=u),u>Pr&&(document.scrollingElement.scrollTop-=Math.ceil((u-Pr)/8))}))}function ls(t){const l=document.body,o=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(l);Xo=Xh(window),Jo=Zh(window),ns=l.style.left,rs=l.style.top,is=window.location.href,l.style.left=`-${Xo}px`,l.style.top=`-${Jo}px`,s!=="hidden"&&(s==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,gt.is.ios===!0&&(o===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ki,st.passiveCapture),window.visualViewport.addEventListener("scroll",ki,st.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",os,st.passiveCapture))}gt.is.desktop===!0&&gt.is.mac===!0&&window[`${t}EventListener`]("wheel",fm,st.notPassive),t==="remove"&&(gt.is.ios===!0&&(o===!0?(window.visualViewport.removeEventListener("resize",ki,st.passiveCapture),window.visualViewport.removeEventListener("scroll",ki,st.passiveCapture)):window.removeEventListener("scroll",os,st.passiveCapture)),l.classList.remove("q-body--prevent-scroll"),l.classList.remove("q-body--force-scrollbar-x"),l.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,l.style.left=ns,l.style.top=rs,window.location.href===is&&window.scrollTo(Xo,Jo),Pr=void 0)}function hm(t){let l="add";if(t===!0){if(Ir++,Nn!==null){clearTimeout(Nn),Nn=null;return}if(Ir>1)return}else{if(Ir===0||(Ir--,Ir>0))return;if(l="remove",gt.is.ios===!0&&gt.is.nativeMobile===!0){Nn!==null&&clearTimeout(Nn),Nn=setTimeout(()=>{ls(l),Nn=null},100);return}}ls(l)}function mm(){let t;return{preventBodyScroll(l){l!==t&&(t!==void 0||l===!0)&&(t=l,hm(l))}}}let Ei=0;const gm={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},as={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},pm=Ye({name:"QDialog",inheritAttrs:!1,props:{...Pu,...zu,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:t=>["standard","top","bottom","left","right"].includes(t)}},emits:[...Nu,"shake","click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){const s=i.getCurrentInstance(),f=i.ref(null),m=i.ref(!1),g=i.ref(!1);let C=null,A=null,v,x;const k=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:_}=mm(),{registerTimeout:B}=hi(),{registerTick:W,removeTick:O}=Wu(),{transitionProps:G,transitionStyle:U}=Uu(t,()=>as[t.position][0],()=>as[t.position][1]),D=i.computed(()=>U.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Q,hidePortal:j,portalIsAccessible:Y,renderPortal:I}=Du(s,f,_e,"dialog"),{hide:le}=$u({showing:m,hideOnRouteChange:k,handleShow:ae,handleHide:se,processOnMount:!0}),{addToHistory:P,removeFromHistory:T}=cm(m),V=i.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${gm[t.position]}`+(g.value===!0?" q-dialog__inner--animating":"")+(t.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(t.fullHeight===!0?" q-dialog__inner--fullheight":"")+(t.square===!0?" q-dialog__inner--square":"")),w=i.computed(()=>m.value===!0&&t.seamless!==!0),Z=i.computed(()=>t.autoClose===!0?{onClick:R}:{}),F=i.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${w.value===!0?"modal":"seamless"}`,u.class]);i.watch(()=>t.maximized,K=>{m.value===!0&&q(K)}),i.watch(w,K=>{_(K),K===!0?(ju(ve),Ku(ie)):(Qo(ve),Si(ie))});function ae(K){P(),A=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,q(t.maximized),Q(),g.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),W(ce)):O(),B(()=>{if(s.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:ne,bottom:Ee}=document.activeElement.getBoundingClientRect(),{innerHeight:X}=window,Ne=window.visualViewport!==void 0?window.visualViewport.height:X;ne>0&&Ee>Ne/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-Ne,Ee>=X?1/0:Math.ceil(document.scrollingElement.scrollTop+Ee-Ne/2))),document.activeElement.scrollIntoView()}x=!0,f.value.click(),x=!1}Q(!0),g.value=!1,o("show",K)},t.transitionDuration)}function se(K){O(),T(),ge(!0),g.value=!0,j(),A!==null&&(((K&&K.type.indexOf("key")===0?A.closest('[tabindex]:not([tabindex^="-"])'):void 0)||A).focus(),A=null),B(()=>{j(!0),g.value=!1,o("hide",K)},t.transitionDuration)}function ce(K){vi(()=>{let ne=f.value;if(ne!==null){if(K!==void 0){const Ee=ne.querySelector(K);if(Ee!==null){Ee.focus({preventScroll:!0});return}}ne.contains(document.activeElement)!==!0&&(ne=ne.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ne.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ne.querySelector("[autofocus], [data-autofocus]")||ne,ne.focus({preventScroll:!0}))}})}function H(K){K&&typeof K.focus=="function"?K.focus({preventScroll:!0}):ce(),o("shake");const ne=f.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),C!==null&&clearTimeout(C),C=setTimeout(()=>{C=null,f.value!==null&&(ne.classList.remove("q-animate--scale"),ce())},170))}function ie(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&H():(o("escapeKey"),le()))}function ge(K){C!==null&&(clearTimeout(C),C=null),(K===!0||m.value===!0)&&(q(!1),t.seamless!==!0&&(_(!1),Qo(ve),Si(ie))),K!==!0&&(A=null)}function q(K){K===!0?v!==!0&&(Ei<1&&document.body.classList.add("q-body--dialog"),Ei++,v=!0):v===!0&&(Ei<2&&document.body.classList.remove("q-body--dialog"),Ei--,v=!1)}function R(K){x!==!0&&(le(K),o("click",K))}function oe(K){t.persistent!==!0&&t.noBackdropDismiss!==!0?le(K):t.noShake!==!0&&H()}function ve(K){t.allowFocusOutside!==!0&&Y.value===!0&&ku(f.value,K.target)!==!0&&ce('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:ce,shake:H,__updateRefocusTarget(K){A=K||null}}),i.onBeforeUnmount(ge);function _e(){return i.h("div",{role:"dialog","aria-modal":w.value===!0?"true":"false",...u,class:F.value},[i.h(i.Transition,{name:"q-transition--fade",appear:!0},()=>w.value===!0?i.h("div",{class:"q-dialog__backdrop fixed-full",style:D.value,"aria-hidden":"true",tabindex:-1,onClick:oe}):null),i.h(i.Transition,G.value,()=>m.value===!0?i.h("div",{ref:f,class:V.value,style:U.value,tabindex:-1,...Z.value},pt(l.default)):null)])}return I}});let Ai=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const l=document.createElement("div");Object.assign(l.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(l),t.scrollLeft=-1e3,Ai=t.scrollLeft>=0,t.remove()}const Pt=1e3,vm=["start","center","end","start-force","center-force","end-force"],us=Array.prototype.filter,_m=window.getComputedStyle(document.body).overflowAnchor===void 0?Od:function(t,l){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const o=t.children||[];us.call(o,s=>s.dataset&&s.dataset.qVsAnchor!==void 0).forEach(s=>{delete s.dataset.qVsAnchor});const u=o[l];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function cr(t,l){return t+l}function tl(t,l,o,u,s,f,m,g){const C=t===window?document.scrollingElement||document.documentElement:t,A=s===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-m-g,scrollMaxSize:0,offsetStart:-m,offsetEnd:-g};if(s===!0?(t===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=C.scrollLeft,v.scrollViewSize+=C.clientWidth),v.scrollMaxSize=C.scrollWidth,f===!0&&(v.scrollStart=(Ai===!0?v.scrollMaxSize-v.scrollViewSize:0)-v.scrollStart)):(t===window?(v.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,v.scrollViewSize+=document.documentElement.clientHeight):(v.scrollStart=C.scrollTop,v.scrollViewSize+=C.clientHeight),v.scrollMaxSize=C.scrollHeight),o!==null)for(let x=o.previousElementSibling;x!==null;x=x.previousElementSibling)x.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=x[A]);if(u!==null)for(let x=u.nextElementSibling;x!==null;x=x.nextElementSibling)x.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=x[A]);if(l!==t){const x=C.getBoundingClientRect(),k=l.getBoundingClientRect();s===!0?(v.offsetStart+=k.left-x.left,v.offsetEnd-=k.width):(v.offsetStart+=k.top-x.top,v.offsetEnd-=k.height),t!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function ss(t,l,o,u){l==="end"&&(l=(t===window?document.body:t)[o===!0?"scrollWidth":"scrollHeight"]),t===window?o===!0?(u===!0&&(l=(Ai===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-l),window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l):o===!0?(u===!0&&(l=(Ai===!0?t.scrollWidth-t.offsetWidth:0)-l),t.scrollLeft=l):t.scrollTop=l}function Nr(t,l,o,u){if(o>=u)return 0;const s=l.length,f=Math.floor(o/Pt),m=Math.floor((u-1)/Pt)+1;let g=t.slice(f,m).reduce(cr,0);return o%Pt!==0&&(g-=l.slice(f*Pt,o).reduce(cr,0)),u%Pt!==0&&u!==s&&(g-=l.slice(u,m*Pt).reduce(cr,0)),g}const cs={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]}};function bm({virtualScrollLength:t,getVirtualScrollTarget:l,getVirtualScrollEl:o,virtualScrollItemSizeComputed:u}){const s=i.getCurrentInstance(),{props:f,emit:m,proxy:g}=s,{$q:C}=g;let A,v,x,k=[],_;const B=i.ref(0),W=i.ref(0),O=i.ref({}),G=i.ref(null),U=i.ref(null),D=i.ref(null),Q=i.ref({from:0,to:0}),j=i.computed(()=>f.tableColspan!==void 0?f.tableColspan:100);u===void 0&&(u=i.computed(()=>f.virtualScrollItemSize));const Y=i.computed(()=>u.value+";"+f.virtualScrollHorizontal),I=i.computed(()=>Y.value+";"+f.virtualScrollSliceRatioBefore+";"+f.virtualScrollSliceRatioAfter);i.watch(I,()=>{se()}),i.watch(Y,le);function le(){ae(v,!0)}function P(q){ae(q===void 0?v:q)}function T(q,R){const oe=l();if(oe==null||oe.nodeType===8)return;const ve=tl(oe,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd);x!==ve.scrollViewSize&&se(ve.scrollViewSize),w(oe,ve,Math.min(t.value-1,Math.max(0,parseInt(q,10)||0)),0,vm.indexOf(R)!==-1?R:v!==-1&&q>v?"end":"start")}function V(){const q=l();if(q==null||q.nodeType===8)return;const R=tl(q,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd),oe=t.value-1,ve=R.scrollMaxSize-R.offsetStart-R.offsetEnd-W.value;if(A===R.scrollStart)return;if(R.scrollMaxSize<=0){w(q,R,0,0);return}x!==R.scrollViewSize&&se(R.scrollViewSize),Z(Q.value.from);const _e=Math.floor(R.scrollMaxSize-Math.max(R.scrollViewSize,R.offsetEnd)-Math.min(_[oe],R.scrollViewSize/2));if(_e>0&&Math.ceil(R.scrollStart)>=_e){w(q,R,oe,R.scrollMaxSize-R.offsetEnd-k.reduce(cr,0));return}let K=0,ne=R.scrollStart-R.offsetStart,Ee=ne;if(ne<=ve&&ne+R.scrollViewSize>=B.value)ne-=B.value,K=Q.value.from,Ee=ne;else for(let X=0;ne>=k[X]&&K<oe;X++)ne-=k[X],K+=Pt;for(;ne>0&&K<oe;)ne-=_[K],ne>-R.scrollViewSize?(K++,Ee=ne):Ee=_[K]+ne;w(q,R,K,Ee)}function w(q,R,oe,ve,_e){const K=typeof _e=="string"&&_e.indexOf("-force")!==-1,ne=K===!0?_e.replace("-force",""):_e,Ee=ne!==void 0?ne:"start";let X=Math.max(0,oe-O.value[Ee]),Ne=X+O.value.total;Ne>t.value&&(Ne=t.value,X=Math.max(0,Ne-O.value.total)),A=R.scrollStart;const ot=X!==Q.value.from||Ne!==Q.value.to;if(ot===!1&&ne===void 0){H(oe);return}const{activeElement:Nt}=document,_t=D.value;ot===!0&&_t!==null&&_t!==Nt&&_t.contains(Nt)===!0&&(_t.addEventListener("focusout",F),setTimeout(()=>{_t!==null&&_t.removeEventListener("focusout",F)})),_m(_t,oe-X);const nt=ne!==void 0?_.slice(X,oe).reduce(cr,0):0;if(ot===!0){const bt=Ne>=Q.value.from&&X<=Q.value.to?Q.value.to:Ne;Q.value={from:X,to:bt},B.value=Nr(k,_,0,X),W.value=Nr(k,_,Ne,t.value),requestAnimationFrame(()=>{Q.value.to!==Ne&&A===R.scrollStart&&(Q.value={from:Q.value.from,to:Ne},W.value=Nr(k,_,Ne,t.value))})}requestAnimationFrame(()=>{if(A!==R.scrollStart)return;ot===!0&&Z(X);const bt=_.slice(X,oe).reduce(cr,0),en=bt+R.offsetStart+B.value,ct=en+_[oe];let pn=en+ve;if(ne!==void 0){const $r=bt-nt,$t=R.scrollStart+$r;pn=K!==!0&&$t<en&&ct<$t+R.scrollViewSize?$t:ne==="end"?ct-R.scrollViewSize:en-(ne==="start"?0:Math.round((R.scrollViewSize-_[oe])/2))}A=pn,ss(q,pn,f.virtualScrollHorizontal,C.lang.rtl),H(oe)})}function Z(q){const R=D.value;if(R){const oe=us.call(R.children,X=>X.classList&&X.classList.contains("q-virtual-scroll--skip")===!1),ve=oe.length,_e=f.virtualScrollHorizontal===!0?X=>X.getBoundingClientRect().width:X=>X.offsetHeight;let K=q,ne,Ee;for(let X=0;X<ve;){for(ne=_e(oe[X]),X++;X<ve&&oe[X].classList.contains("q-virtual-scroll--with-prev")===!0;)ne+=_e(oe[X]),X++;Ee=ne-_[K],Ee!==0&&(_[K]+=Ee,k[Math.floor(K/Pt)]+=Ee),K++}}}function F(){D.value!==null&&D.value!==void 0&&D.value.focus()}function ae(q,R){const oe=1*u.value;(R===!0||Array.isArray(_)===!1)&&(_=[]);const ve=_.length;_.length=t.value;for(let K=t.value-1;K>=ve;K--)_[K]=oe;const _e=Math.floor((t.value-1)/Pt);k=[];for(let K=0;K<=_e;K++){let ne=0;const Ee=Math.min((K+1)*Pt,t.value);for(let X=K*Pt;X<Ee;X++)ne+=_[X];k.push(ne)}v=-1,A=void 0,B.value=Nr(k,_,0,Q.value.from),W.value=Nr(k,_,Q.value.to,t.value),q>=0?(Z(Q.value.from),i.nextTick(()=>{T(q)})):ie()}function se(q){if(q===void 0&&typeof window<"u"){const ne=l();ne!=null&&ne.nodeType!==8&&(q=tl(ne,o(),G.value,U.value,f.virtualScrollHorizontal,C.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd).scrollViewSize)}x=q;const R=parseFloat(f.virtualScrollSliceRatioBefore)||0,oe=parseFloat(f.virtualScrollSliceRatioAfter)||0,ve=1+R+oe,_e=q===void 0||q<=0?1:Math.ceil(q/u.value),K=Math.max(1,_e,Math.ceil((f.virtualScrollSliceSize>0?f.virtualScrollSliceSize:10)/ve));O.value={total:Math.ceil(K*ve),start:Math.ceil(K*R),center:Math.ceil(K*(.5+R)),end:Math.ceil(K*(1+R)),view:_e}}function ce(q,R){const oe=f.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+oe]:u.value+"px"};return[q==="tbody"?i.h(q,{class:"q-virtual-scroll__padding",key:"before",ref:G},[i.h("tr",[i.h("td",{style:{[oe]:`${B.value}px`,...ve},colspan:j.value})])]):i.h(q,{class:"q-virtual-scroll__padding",key:"before",ref:G,style:{[oe]:`${B.value}px`,...ve}}),i.h(q,{class:"q-virtual-scroll__content",key:"content",ref:D,tabindex:-1},R.flat()),q==="tbody"?i.h(q,{class:"q-virtual-scroll__padding",key:"after",ref:U},[i.h("tr",[i.h("td",{style:{[oe]:`${W.value}px`,...ve},colspan:j.value})])]):i.h(q,{class:"q-virtual-scroll__padding",key:"after",ref:U,style:{[oe]:`${W.value}px`,...ve}})]}function H(q){v!==q&&(f.onVirtualScroll!==void 0&&m("virtualScroll",{index:q,from:Q.value.from,to:Q.value.to-1,direction:q<v?"decrease":"increase",ref:g}),v=q)}se();const ie=vu(V,C.platform.is.ios===!0?120:35);i.onBeforeMount(()=>{se()});let ge=!1;return i.onDeactivated(()=>{ge=!0}),i.onActivated(()=>{if(ge!==!0)return;const q=l();A!==void 0&&q!==void 0&&q!==null&&q.nodeType!==8?ss(q,A,f.virtualScrollHorizontal,C.lang.rtl):T(v)}),i.onBeforeUnmount(()=>{ie.cancel()}),Object.assign(g,{scrollTo:T,reset:le,refresh:P}),{virtualScrollSliceRange:Q,virtualScrollSliceSizeComputed:O,setVirtualScrollSize:se,onVirtualScrollEvt:ie,localResetVirtualScroll:ae,padVirtualScroll:ce,scrollTo:T,reset:le,refresh:P}}function fs(t,l,o){if(o<=l)return l;const u=o-l+1;let s=l+(t-l)%u;return s<l&&(s=u+s),s===0?0:s}const ds=t=>["add","add-unique","toggle"].includes(t),ym=".*+?^${}()|[]\\",wm=Object.keys(_i),hs=Ye({name:"QSelect",inheritAttrs:!1,props:{...cs,...No,..._i,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:ds},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:t=>["default","menu","dialog"].includes(t),default:"default"},virtualScrollItemSize:cs.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Uo,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:l,emit:o}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f=i.ref(!1),m=i.ref(!1),g=i.ref(-1),C=i.ref(""),A=i.ref(!1),v=i.ref(!1);let x=null,k=null,_,B,W,O=null,G,U,D,Q;const j=i.ref(null),Y=i.ref(null),I=i.ref(null),le=i.ref(null),P=i.ref(null),T=ru(t),V=xu(Vi),w=i.computed(()=>Array.isArray(t.options)?t.options.length:0),Z=i.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:F,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:se,padVirtualScroll:ce,onVirtualScrollEvt:H,scrollTo:ie,setVirtualScrollSize:ge}=bm({virtualScrollLength:w,getVirtualScrollTarget:qi,getVirtualScrollEl:Dr,virtualScrollItemSizeComputed:Z}),q=Wo(),R=i.computed(()=>{const b=t.mapOptions===!0&&t.multiple!==!0,te=t.modelValue!==void 0&&(t.modelValue!==null||b===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0&&Array.isArray(t.options)===!0){const J=t.mapOptions===!0&&_!==void 0?_:[],me=te.map(Oe=>Fr(Oe,J));return t.modelValue===null&&b===!0?me.filter(Oe=>Oe!==null):me}return te}),oe=i.computed(()=>{const b={};return wm.forEach(te=>{const J=t[te];J!==void 0&&(b[te]=J)}),b}),ve=i.computed(()=>t.optionsDark===null?q.isDark.value:t.optionsDark),_e=i.computed(()=>Vr(R.value)),K=i.computed(()=>{let b="q-field__input q-placeholder col";return t.hideSelected===!0||R.value.length===0?[b,t.inputClass]:(b+=" q-field__input--padding",t.inputClass===void 0?b:[b,t.inputClass])}),ne=i.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ee=i.computed(()=>w.value===0),X=i.computed(()=>R.value.map(b=>Ge.value(b)).join(", ")),Ne=i.computed(()=>t.displayValue!==void 0?t.displayValue:X.value),ot=i.computed(()=>t.optionsHtml===!0?()=>!0:b=>b!=null&&b.html===!0),Nt=i.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||R.value.some(ot.value))),_t=i.computed(()=>q.focused.value===!0?t.tabindex:-1),nt=i.computed(()=>{const b={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":t.readonly===!0?"true":"false","aria-autocomplete":t.useInput===!0?"list":"none","aria-expanded":f.value===!0?"true":"false","aria-controls":`${q.targetUid.value}_lb`};return g.value>=0&&(b["aria-activedescendant"]=`${q.targetUid.value}_${g.value}`),b}),bt=i.computed(()=>({id:`${q.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),en=i.computed(()=>R.value.map((b,te)=>({index:te,opt:b,html:ot.value(b),selected:!0,removeAtIndex:vn,toggleOption:Dt,tabindex:_t.value}))),ct=i.computed(()=>{if(w.value===0)return[];const{from:b,to:te}=F.value;return t.options.slice(b,te).map((J,me)=>{const Oe=Ft.value(J)===!0,Be=Dn(J)===!0,He=b+me,Le={clickable:!0,active:Be,activeClass:$t.value,manualFocus:!0,focused:!1,disable:Oe,tabindex:-1,dense:t.optionsDense,dark:ve.value,role:"option","aria-selected":Be===!0?"true":"false",id:`${q.targetUid.value}_${He}`,onClick:()=>{Dt(J)}};return Oe!==!0&&(g.value===He&&(Le.focused=!0),s.platform.is.desktop===!0&&(Le.onMousemove=()=>{f.value===!0&&Gt(He)})),{index:He,opt:J,html:ot.value(J),label:Ge.value(J),selected:Le.active,focused:Le.focused,toggleOption:Dt,setOptionIndex:Gt,itemProps:Le}})}),pn=i.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),$r=i.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),$t=i.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=i.computed(()=>Fn(t.optionValue,"value")),Ge=i.computed(()=>Fn(t.optionLabel,"label")),Ft=i.computed(()=>Fn(t.optionDisable,"disable")),fr=i.computed(()=>R.value.map(b=>Fe.value(b))),$n=i.computed(()=>{const b={onInput:Vi,onChange:V,onKeydown:Oi,onKeyup:Bi,onKeypress:Ri,onFocus:hr,onClick(te){B===!0&&Kt(te)}};return b.onCompositionstart=b.onCompositionupdate=b.onCompositionend=V,b});i.watch(R,b=>{_=b,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&q.innerLoading.value!==!0&&(m.value!==!0&&f.value!==!0||_e.value!==!0)&&(W!==!0&&rn(),(m.value===!0||f.value===!0)&&bn(""))},{immediate:!0}),i.watch(()=>t.fillInput,rn),i.watch(f,Wr),i.watch(w,hl);function Ti(b){return t.emitValue===!0?Fe.value(b):b}function tn(b){if(b!==-1&&b<R.value.length)if(t.multiple===!0){const te=t.modelValue.slice();o("remove",{index:b,value:te.splice(b,1)[0]}),o("update:modelValue",te)}else o("update:modelValue",null)}function vn(b){tn(b),q.focus()}function dr(b,te){const J=Ti(b);if(t.multiple!==!0){t.fillInput===!0&&Un(Ge.value(b),!0,!0),o("update:modelValue",J);return}if(R.value.length===0){o("add",{index:0,value:J}),o("update:modelValue",t.multiple===!0?[J]:J);return}if(te===!0&&Dn(b)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const me=t.modelValue.slice();o("add",{index:me.length,value:J}),me.push(J),o("update:modelValue",me)}function Dt(b,te){if(q.editable.value!==!0||b===void 0||Ft.value(b)===!0)return;const J=Fe.value(b);if(t.multiple!==!0){te!==!0&&(Un(t.fillInput===!0?Ge.value(b):"",!0,!0),nn()),Y.value!==null&&Y.value.focus(),(R.value.length===0||Jt(Fe.value(R.value[0]),J)!==!0)&&o("update:modelValue",t.emitValue===!0?J:b);return}if((B!==!0||A.value===!0)&&q.focus(),hr(),R.value.length===0){const Be=t.emitValue===!0?J:b;o("add",{index:0,value:Be}),o("update:modelValue",t.multiple===!0?[Be]:Be);return}const me=t.modelValue.slice(),Oe=fr.value.findIndex(Be=>Jt(Be,J));if(Oe!==-1)o("remove",{index:Oe,value:me.splice(Oe,1)[0]});else{if(t.maxValues!==void 0&&me.length>=t.maxValues)return;const Be=t.emitValue===!0?J:b;o("add",{index:me.length,value:Be}),me.push(Be)}o("update:modelValue",me)}function Gt(b){if(s.platform.is.desktop!==!0)return;const te=b!==-1&&b<w.value?b:-1;g.value!==te&&(g.value=te)}function _n(b=1,te){if(f.value===!0){let J=g.value;do J=fs(J+b,-1,w.value-1);while(J!==-1&&J!==g.value&&Ft.value(t.options[J])===!0);g.value!==J&&(Gt(J),ie(J),te!==!0&&t.useInput===!0&&t.fillInput===!0&&zn(J>=0?Ge.value(t.options[J]):G,!0))}}function Fr(b,te){const J=me=>Jt(Fe.value(me),b);return t.options.find(J)||te.find(J)||b}function Fn(b,te){const J=b!==void 0?b:te;return typeof J=="function"?J:me=>me!==null&&typeof me=="object"&&J in me?me[J]:me}function Dn(b){const te=Fe.value(b);return fr.value.find(J=>Jt(J,te))!==void 0}function hr(b){t.useInput===!0&&Y.value!==null&&(b===void 0||Y.value===b.target&&b.target.value===X.value)&&Y.value.select()}function mr(b){Vn(b,27)===!0&&f.value===!0&&(Kt(b),nn(),rn()),o("keyup",b)}function Bi(b){const{value:te}=b.target;if(b.keyCode!==void 0){mr(b);return}if(b.target.value="",x!==null&&(clearTimeout(x),x=null),k!==null&&(clearTimeout(k),k=null),rn(),typeof te=="string"&&te.length!==0){const J=te.toLocaleLowerCase(),me=Be=>{const He=t.options.find(Le=>Be.value(Le).toLocaleLowerCase()===J);return He===void 0?!1:(R.value.indexOf(He)===-1?Dt(He):nn(),!0)},Oe=Be=>{me(Fe)!==!0&&(me(Ge)===!0||Be===!0||bn(te,!0,()=>Oe(!0)))};Oe()}else q.clearValue(b)}function Ri(b){o("keypress",b)}function Oi(b){if(o("keydown",b),Ko(b)===!0)return;const te=C.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),J=b.shiftKey!==!0&&t.multiple!==!0&&(g.value!==-1||te===!0);if(b.keyCode===27){It(b);return}if(b.keyCode===9&&J===!1){yn();return}if(b.target===void 0||b.target.id!==q.targetUid.value||q.editable.value!==!0)return;if(b.keyCode===40&&q.innerLoading.value!==!0&&f.value===!1){Ke(b),wn();return}if(b.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&C.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?tn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&o("update:modelValue",null);return}(b.keyCode===35||b.keyCode===36)&&(typeof C.value!="string"||C.value.length===0)&&(Ke(b),g.value=-1,_n(b.keyCode===36?1:-1,t.multiple)),(b.keyCode===33||b.keyCode===34)&&ae.value!==void 0&&(Ke(b),g.value=Math.max(-1,Math.min(w.value,g.value+(b.keyCode===33?-1:1)*ae.value.view)),_n(b.keyCode===33?1:-1,t.multiple)),(b.keyCode===38||b.keyCode===40)&&(Ke(b),_n(b.keyCode===38?-1:1,t.multiple));const me=w.value;if((D===void 0||Q<Date.now())&&(D=""),me>0&&t.useInput!==!0&&b.key!==void 0&&b.key.length===1&&b.altKey===!1&&b.ctrlKey===!1&&b.metaKey===!1&&(b.keyCode!==32||D.length!==0)){f.value!==!0&&wn(b);const Oe=b.key.toLocaleLowerCase(),Be=D.length===1&&D[0]===Oe;Q=Date.now()+1500,Be===!1&&(Ke(b),D+=Oe);const He=new RegExp("^"+D.split("").map(gr=>ym.indexOf(gr)!==-1?"\\"+gr:gr).join(".*"),"i");let Le=g.value;if(Be===!0||Le<0||He.test(Ge.value(t.options[Le]))!==!0)do Le=fs(Le+1,-1,me-1);while(Le!==g.value&&(Ft.value(t.options[Le])===!0||He.test(Ge.value(t.options[Le]))!==!0));g.value!==Le&&i.nextTick(()=>{Gt(Le),ie(Le),Le>=0&&t.useInput===!0&&t.fillInput===!0&&zn(Ge.value(t.options[Le]),!0)});return}if(!(b.keyCode!==13&&(b.keyCode!==32||t.useInput===!0||D!=="")&&(b.keyCode!==9||J===!1))){if(b.keyCode!==9&&Ke(b),g.value!==-1&&g.value<me){Dt(t.options[g.value]);return}if(te===!0){const Oe=(Be,He)=>{if(He){if(ds(He)!==!0)return}else He=t.newValueMode;if(Un("",t.multiple!==!0,!0),Be==null)return;(He==="toggle"?Dt:dr)(Be,He==="add-unique"),t.multiple!==!0&&(Y.value!==null&&Y.value.focus(),nn())};if(t.onNewValue!==void 0?o("newValue",C.value,Oe):Oe(C.value),t.multiple!==!0)return}f.value===!0?yn():q.innerLoading.value!==!0&&wn()}}function Dr(){return B===!0?P.value:I.value!==null&&I.value.contentEl!==null?I.value.contentEl:void 0}function qi(){return Dr()}function il(){return t.hideSelected===!0?[]:l["selected-item"]!==void 0?en.value.map(b=>l["selected-item"](b)).slice():l.selected!==void 0?[].concat(l.selected()):t.useChips===!0?en.value.map((b,te)=>i.h(Mh,{key:"option-"+te,removable:q.editable.value===!0&&Ft.value(b.opt)!==!0,dense:!0,textColor:t.color,tabindex:_t.value,onRemove(){b.removeAtIndex(te)}},()=>i.h("span",{class:"ellipsis",[b.html===!0?"innerHTML":"textContent"]:Ge.value(b.opt)}))):[i.h("span",{[Nt.value===!0?"innerHTML":"textContent"]:Ne.value})]}function Mi(){if(Ee.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:C.value}):void 0;const b=l.option!==void 0?l.option:J=>i.h(Vh,{key:J.index,...J.itemProps},()=>i.h(Lh,()=>i.h(Ih,()=>i.h("span",{[J.html===!0?"innerHTML":"textContent"]:J.label}))));let te=ce("div",ct.value.map(b));return l["before-options"]!==void 0&&(te=l["before-options"]().concat(te)),qn(l["after-options"],te)}function ol(b,te){const J=te===!0?{...nt.value,...q.splitAttrs.attributes.value}:void 0,me={ref:te===!0?Y:void 0,key:"i_t",class:K.value,style:t.inputStyle,value:C.value!==void 0?C.value:"",type:"search",...J,id:te===!0?q.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":b===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...$n.value};return b!==!0&&B===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),i.h("input",me)}function Vi(b){x!==null&&(clearTimeout(x),x=null),k!==null&&(clearTimeout(k),k=null),!(b&&b.target&&b.target.qComposing===!0)&&(zn(b.target.value||""),W=!0,G=C.value,q.focused.value!==!0&&(B!==!0||A.value===!0)&&q.focus(),t.onFilter!==void 0&&(x=setTimeout(()=>{x=null,bn(C.value)},t.inputDebounce)))}function zn(b,te){C.value!==b&&(C.value=b,te===!0||t.inputDebounce===0||t.inputDebounce==="0"?o("inputValue",b):k=setTimeout(()=>{k=null,o("inputValue",b)},t.inputDebounce))}function Un(b,te,J){W=J!==!0,t.useInput===!0&&(zn(b,!0),(te===!0||J!==!0)&&(G=b),te!==!0&&bn(b))}function bn(b,te,J){if(t.onFilter===void 0||te!==!0&&q.focused.value!==!0)return;q.innerLoading.value===!0?o("filterAbort"):(q.innerLoading.value=!0,v.value=!0),b!==""&&t.multiple!==!0&&R.value.length!==0&&W!==!0&&b===Ge.value(R.value[0])&&(b="");const me=setTimeout(()=>{f.value===!0&&(f.value=!1)},10);O!==null&&clearTimeout(O),O=me,o("filter",b,(Oe,Be)=>{(te===!0||q.focused.value===!0)&&O===me&&(clearTimeout(O),typeof Oe=="function"&&Oe(),v.value=!1,i.nextTick(()=>{q.innerLoading.value=!1,q.editable.value===!0&&(te===!0?f.value===!0&&nn():f.value===!0?Wr(!0):f.value=!0),typeof Be=="function"&&i.nextTick(()=>{Be(u)}),typeof J=="function"&&i.nextTick(()=>{J(u)})}))},()=>{q.focused.value===!0&&O===me&&(clearTimeout(O),q.innerLoading.value=!1,v.value=!1),f.value===!0&&(f.value=!1)})}function ll(){return i.h(sm,{ref:I,class:ne.value,style:t.popupContentStyle,modelValue:f.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Ee.value!==!0&&t.useInput!==!0,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:ve.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:$r.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...bt.value,onScrollPassive:H,onBeforeShow:Ii,onBeforeHide:zr,onShow:al},Mi)}function zr(b){Pi(b),yn()}function al(){ge()}function Ur(b){Kt(b),Y.value!==null&&Y.value.focus(),A.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function ul(b){Kt(b),i.nextTick(()=>{A.value=!1})}function sl(){const b=[i.h(Oh,{class:`col-auto ${q.fieldClass.value}`,...oe.value,for:q.targetUid.value,dark:ve.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:C.value.length!==0,...q.splitAttrs.listeners.value,onFocus:Ur,onBlur:ul},{...l,rawControl:()=>q.getControl(!0),before:void 0,after:void 0})];return f.value===!0&&b.push(i.h("div",{ref:P,class:ne.value+" scroll",style:t.popupContentStyle,...bt.value,onClick:It,onScrollPassive:H},Mi())),i.h(pm,{ref:le,modelValue:m.value,position:t.useInput===!0?"top":void 0,transitionShow:U,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Ii,onBeforeHide:cl,onHide:fl,onShow:dl},()=>i.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(A.value===!0?" q-select__dialog--focused":"")},b))}function cl(b){Pi(b),le.value!==null&&le.value.__updateRefocusTarget(q.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),q.focused.value=!1}function fl(b){nn(),q.focused.value===!1&&o("blur",b),rn()}function dl(){const b=document.activeElement;(b===null||b.id!==q.targetUid.value)&&Y.value!==null&&Y.value!==b&&Y.value.focus(),ge()}function yn(){m.value!==!0&&(g.value=-1,f.value===!0&&(f.value=!1),q.focused.value===!1&&(O!==null&&(clearTimeout(O),O=null),q.innerLoading.value===!0&&(o("filterAbort"),q.innerLoading.value=!1,v.value=!1)))}function wn(b){q.editable.value===!0&&(B===!0?(q.onControlFocusin(b),m.value=!0,i.nextTick(()=>{q.focus()})):q.focus(),t.onFilter!==void 0?bn(C.value):(Ee.value!==!0||l["no-option"]!==void 0)&&(f.value=!0))}function nn(){m.value=!1,yn()}function rn(){t.useInput===!0&&Un(t.multiple!==!0&&t.fillInput===!0&&R.value.length!==0&&Ge.value(R.value[0])||"",!0,!0)}function Wr(b){let te=-1;if(b===!0){if(R.value.length!==0){const J=Fe.value(R.value[0]);te=t.options.findIndex(me=>Jt(Fe.value(me),J))}se(te)}Gt(te)}function hl(b,te){f.value===!0&&q.innerLoading.value===!1&&(se(-1,!0),i.nextTick(()=>{f.value===!0&&q.innerLoading.value===!1&&(b>te?se():Wr(!0))}))}function Li(){m.value===!1&&I.value!==null&&I.value.updatePosition()}function Ii(b){b!==void 0&&Kt(b),o("popupShow",b),q.hasPopupOpen=!0,q.onControlFocusin(b)}function Pi(b){b!==void 0&&Kt(b),o("popupHide",b),q.hasPopupOpen=!1,q.onControlFocusout(b)}function Ni(){B=s.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?l["no-option"]!==void 0||t.onFilter!==void 0||Ee.value===!1:!0),U=s.platform.is.ios===!0&&B===!0&&t.useInput===!0?"fade":t.transitionShow}return i.onBeforeUpdate(Ni),i.onUpdated(Li),Ni(),i.onBeforeUnmount(()=>{x!==null&&clearTimeout(x),k!==null&&clearTimeout(k)}),Object.assign(u,{showPopup:wn,hidePopup:nn,removeAtIndex:tn,add:dr,toggleOption:Dt,getOptionIndex:()=>g.value,setOptionIndex:Gt,moveOptionSelection:_n,filter:bn,updateMenuPosition:Li,updateInputValue:Un,isOptionSelected:Dn,getEmittingOptionValue:Ti,isOptionDisabled:(...b)=>Ft.value.apply(null,b)===!0,getOptionValue:(...b)=>Fe.value.apply(null,b),getOptionLabel:(...b)=>Ge.value.apply(null,b)}),Object.assign(q,{innerValue:R,fieldClass:i.computed(()=>`q-select q-field--auto-height q-select--with${t.useInput!==!0?"out":""}-input q-select--with${t.useChips!==!0?"out":""}-chips q-select--${t.multiple===!0?"multiple":"single"}`),inputRef:j,targetRef:Y,hasValue:_e,showPopup:wn,floatingLabel:i.computed(()=>t.hideSelected!==!0&&_e.value===!0||typeof C.value=="number"||C.value.length!==0||Vr(t.displayValue)),getControlChild:()=>{if(q.editable.value!==!1&&(m.value===!0||Ee.value!==!0||l["no-option"]!==void 0))return B===!0?sl():ll();q.hasPopupOpen===!0&&(q.hasPopupOpen=!1)},controlEvents:{onFocusin(b){q.onControlFocusin(b)},onFocusout(b){q.onControlFocusout(b,()=>{rn(),yn()})},onClick(b){if(It(b),B!==!0&&f.value===!0){yn(),Y.value!==null&&Y.value.focus();return}wn(b)}},getControl:b=>{const te=il(),J=b===!0||m.value!==!0||B!==!0;if(t.useInput===!0)te.push(ol(b,J));else if(q.editable.value===!0){const Oe=J===!0?nt.value:void 0;te.push(i.h("input",{ref:J===!0?Y:void 0,key:"d_t",class:"q-select__focus-target",id:J===!0?q.targetUid.value:void 0,value:Ne.value,readonly:!0,"data-autofocus":b===!0||t.autofocus===!0||void 0,...Oe,onKeydown:Oi,onKeyup:mr,onKeypress:Ri})),J===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&te.push(i.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:Bi}))}if(T.value!==void 0&&t.disable!==!0&&fr.value.length!==0){const Oe=fr.value.map(Be=>i.h("option",{value:Be,selected:!0}));te.push(i.h("select",{class:"hidden",name:T.value,multiple:t.multiple},Oe))}const me=t.useInput===!0||J!==!0?void 0:q.splitAttrs.attributes.value;return i.h("div",{class:"q-field__native row items-center",...me,...q.splitAttrs.listeners.value},te)},getInnerAppend:()=>t.loading!==!0&&v.value!==!0&&t.hideDropdownIcon!==!0?[i.h(vt,{class:"q-select__dropdown-icon"+(f.value===!0?" rotate-180":""),name:pn.value})]:null}),Ho(q)}}),Sm=gn(i.defineComponent({__name:"SelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.ref([]),o=i.useModel(t,"modelValue"),u=t,s=i.ref(!1),f=i.computed(()=>u.control.customParams),m=i.ref([]),g=i.computed(()=>{var x;return((x=f.value)==null?void 0:x.collection)||null}),C=i.computed(()=>g.value?m.value:u.control.options),A=nr();i.watch(g,x=>{if(!x)return;const k=A.getCollection(g.value);if(k){m.value=k;return}s.value=!0},{immediate:!0});function v(x,k){if(x===""){k(()=>{l.value=Pe.cloneDeep(C.value)});return}k(()=>{const _=x.toLowerCase();l.value=(C.value||[]).filter(B=>B.toLowerCase().includes(_))})}return(x,k)=>{const _=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[x.control.label?(i.openBlock(),i.createBlock(_,{key:0,label:x.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(yi,{class:"q-card win-card row items-center q-px-md"},{default:i.withCtx(()=>[i.createVNode(hs,{borderless:"",label:x.control.label,modelValue:o.value,"onUpdate:modelValue":k[0]||(k[0]=B=>o.value=B),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:v,options:l.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-6268ce2c"]]),xm={class:"text-center",style:{width:"100%"}},Cm={class:"text-center text-weight-medium"},km={class:"question-title"},Em=i.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(l,o)=>(i.openBlock(),i.createElementBlock("div",xm,[i.createElementVNode("div",Cm,i.toDisplayString(l.formGroup.order+1)+"/"+i.toDisplayString(l.stepsCount),1),i.createElementVNode("div",km,i.toDisplayString(l.formGroup.title||""),1)]))}});function Am(){return i.inject(Fd)}function ms(t,l){const{maxControlsPerGroup:o,notifyValidations:u}={...$f,...l||{}},s=nr(),f=i.computed(()=>s.formSteps[t]),m=i.ref([]),g=i.ref([]),C=(_,B)=>{s.setControlValue(t,_);const W=m.value.find(U=>U.id===B);W&&(g.value=Df(W));const O=v(_),G=x(_);(O||G)&&A()};function A(){const _=f.value.controls,B=[];Hf(_).forEach(O=>{const G=O.controls;if(G.every(D=>!Eo.includes(D.controlType))){B.push(O);return}let U={...O,controls:[]};for(const D of G)if(Eo.includes(D.controlType)){B.push(U),U={...U,controls:[]};const Q=Uf(O,D,o);B.push(...Q)}else U.controls.push(D)}),m.value=Pe.orderBy(B,"order").map(O=>({...O,id:O.controls.map(G=>G.id).join("-")})).filter(O=>O.controls.some(G=>G.visible)).map((O,G)=>({...O,order:G,controls:O.controls.filter(U=>U.visible)}))}function v({id:_,value:B}){let W=!1;const G=f.value.controls.filter(U=>{var D;return((D=U.conditions)==null?void 0:D.some(Q=>Q.id===_))||!1});if(G!=null&&G.length)return G.forEach(({id:U,conditions:D,visible:Q})=>{const j=D.every(Y=>{const{value:I,operator:le}=Y;return{"==":B===I,"!=":B!==I,">":B>I,"<":B<I}[le]||!1});Q!==j&&(s.setControlVisibility(t,U,j),W=!0)}),W}function x({id:_,value:B}){const W=Number(B||0);let O=!1;const U=f.value.controls.filter(D=>{var Q;return D.controlType==="dynamic_array"&&((Q=D.itemsLength)==null?void 0:Q.controlId)===_});if(U!=null&&U.length)return U.forEach(({id:D,itemsLength:Q})=>{(Q==null?void 0:Q.value)!==W&&(s.setControlItemsLength(t,D,W),O=!0)}),O}const{notify:k}=Am();return i.watch(g,_=>{_.length&&(u&&k({message:_[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),i.watch(f,()=>{A()},{immediate:!0}),{model:m,errorMessages:g,rebuildModel:A,onControlValueUpdate:C}}const Tm={key:0,style:{height:"100%"}},Bm={class:"q-py-sm"},Rm={class:"form-steps-container"},Om={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},qm={class:"controls-container",style:{height:"100%"}},Mm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},Vm=gn(i.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const l=t,o=nr(),{model:u,onControlValueUpdate:s}=ms(l.index),f=i.computed(()=>u.value.length),m=i.ref(0),g=i.computed(()=>u.value[m.value]),C=v=>{const x=Pe.toPairs(Pe.groupBy(v,"row"));return Pe.orderBy(x,([k,_])=>Number(k),"asc").map(([k,_])=>({controls:Pe.orderBy(_,"col","asc")}))};i.watch(m,v=>{const x=v+1===f.value;o.setOnLastSubstep(x)},{immediate:!0});function A(v){return{input_text:Go,input_number:Go,checkbox:cu,switch:Ld,select:Sm,cards_select:Ad}[v]||Go}return(v,x)=>g.value?(i.openBlock(),i.createElementBlock("div",Tm,[i.createElementVNode("div",Bm,[i.createVNode(Em,{formGroup:g.value,stepsCount:f.value},null,8,["formGroup","stepsCount"])]),i.createElementVNode("div",Rm,[i.createElementVNode("div",Om,[i.createElementVNode("div",qm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),k=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k.id},[m.value===k.order?(i.openBlock(),i.createBlock(ud,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:i.withCtx(()=>[i.createElementVNode("div",Mm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(C(k.controls),(_,B)=>(i.openBlock(),i.createElementBlock("div",{class:"q-mb-xl",key:B},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(_.controls,(W,O)=>(i.openBlock(),i.createElementBlock("div",{key:O},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(A(W.controlType)),{control:W,modelValue:_.controls[O].value,"onUpdate:modelValue":[G=>_.controls[O].value=G,G=>i.unref(s)(W,k.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):i.createCommentVNode("",!0)],64))),128)),i.createVNode(Rh,{currentStep:m.value,stepsCount:f.value,nextDisabled:!g.value.valid,onPrev:x[0]||(x[0]=k=>m.value--),onNext:x[1]||(x[1]=k=>g.value.valid&&m.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),Lm={style:{"font-size":"16px","padding-top":"1rem"}},Im={style:{"font-size":"16px","padding-top":"1rem"}},nl=gn(i.defineComponent({__name:"SimpleInput",props:i.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue"),o=t,u=i.computed(()=>{var s;return(s=o.control.controlType)==null?void 0:s.split("_")[1]});return(s,f)=>(i.openBlock(),i.createBlock(yi,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(Cu,{borderless:"","reverse-fill-mask":"",modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=m=>l.value=m),label:s.control.label,mask:u.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":u.value==="number"},"input-style":{fontSize:"16px"},rules:s.rules},i.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",Lm,i.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",Im,i.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-2efb4029"]]),gs=i.defineComponent({__name:"SimpleSelect",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=i.useModel(t,"modelValue");return(o,u)=>(i.openBlock(),i.createBlock(yi,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(hs,{borderless:"",label:o.control.label,options:o.control.options,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=s=>l.value=s),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),Pm={key:0,style:{height:"100%"}},Nm={class:"question-title text-center q-py-sm"},$m={class:"form-steps-container bg-grey-1"},Fm={class:"form-container",style:{height:"100%"}},Dm={class:"row items-center"},zm={class:"col-12 row"},Um=gn(i.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const l=t,{model:o,onControlValueUpdate:u}=ms(l.index,{notifyValidations:!1});function s(C){return{input_text:nl,input_number:nl,select:gs,cards_select:gs,checkbox:cu}[C]||nl}const f=C=>Pe.orderBy(Pe.toPairs(Pe.groupBy(C,"row")),"row").map(([A,v])=>({controls:Pe.orderBy(v,"col")}));function m(C){return[A=>{var x;let v="";return(x=C.validators)==null||x.some(k=>{const{param:_,validator:B}=k,W=Oa[B];return W.fn(Number(_))({...C,value:A})?!1:(v=W.message,!0)}),!v.length||v}]}const g=nr();return i.onMounted(()=>g.setOnLastSubstep(!0)),(C,A)=>i.unref(o)?(i.openBlock(),i.createElementBlock("div",Pm,[i.createElementVNode("div",Nm,i.toDisplayString(i.unref(o)[0].title),1),i.createElementVNode("div",$m,[i.createElementVNode("div",Fm,[i.createElementVNode("div",Dm,[i.createElementVNode("div",zm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f(i.unref(o)[0].controls),(v,x)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(f(i.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:x},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(v.controls,(k,_)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`col-xs-12 col-sm q-pa-xs ${f(i.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:_},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(k.controlType)),{control:k,modelValue:k.value,"onUpdate:modelValue":[B=>k.value=B,B=>i.unref(u)(k,i.unref(o)[0].id)],rules:m(k)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),rl=t=>(i.pushScopeId("data-v-88496229"),t=t(),i.popScopeId(),t),Wm={class:"buttons-container"},Hm={class:"max-container"},Km={key:0,class:"row checkbox justify-end q-my-sm"},Gm={style:{"max-width":"650px"}},jm=rl(()=>i.createElementVNode("br",{class:"gt-sm"},null,-1)),Qm={class:"row justify-between q-my-md q-px-md q-pb-xl"},Ym=rl(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Zm={key:1},Xm={key:0,class:"text-black"},Jm=rl(()=>i.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),eg={key:1,class:"text-black"},tg=gn(i.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:l}){const{nextStep:o,previousStep:u,currentStep:s,stepsCount:f,nextDisabled:m,onLastSubstep:g}=i.toRefs(nr()),C=l,A=i.ref(!1),v=k=>{},x=()=>{s.value===f.value?C("submit"):o.value()};return(k,_)=>(i.openBlock(),i.createElementBlock("div",Wm,[i.createElementVNode("div",Hm,[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("div",Km,[i.createElementVNode("div",Gm,[i.createVNode(su,{color:"info",class:"checkbox",modelValue:A.value,"onUpdate:modelValue":_[1]||(_[1]=B=>A.value=B)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),jm,i.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),i.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:_[0]||(_[0]=B=>v())},"aquí"),i.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",Qm,[i.unref(s)>1?(i.openBlock(),i.createBlock(ur,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:i.unref(u),flat:"","no-caps":""},{default:i.withCtx(()=>[Ym]),_:1},8,["onClick"])):(i.openBlock(),i.createElementBlock("div",Zm)),i.createElementVNode("div",null,[!i.unref(m)&&i.unref(g)?(i.openBlock(),i.createBlock(ur,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:x,disable:i.unref(s)===i.unref(f)&&!A.value,flat:"","no-caps":""},{default:i.withCtx(()=>[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("span",Xm,[i.createTextVNode(" Enviar "),Jm])):(i.openBlock(),i.createElementBlock("span",eg," Siguiente "))]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-88496229"]]),ng=i.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:l}){const o=t,u=l,s=i.ref(!1),f=nr(),m=C=>Pe.keys(Pe.groupBy(C.controls,"group")).length===1;i.watch(()=>o.forms,C=>{const v=new za().fromRaw(C);f.setFormSteps(v)},{immediate:!0});function g(){const C=Pe.cloneDeep(f.formSteps),v=new za().toRaw(C);u("onSubmit",v)}return(C,A)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.renderSlot(C.$slots,"header"),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f).formSteps,(v,x)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:x},[m(v)?i.withDirectives((i.openBlock(),i.createBlock(Um,{key:0,index:x},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===x+1]]):i.withDirectives((i.openBlock(),i.createBlock(Vm,{key:1,index:x,onOnLastStep:A[0]||(A[0]=k=>s.value=k)},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===x+1]])],64))),128))]),i.createVNode(tg,{onSubmit:g})],64))}}),rg=i.createElementVNode("img",{src:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/640px-Vue.js_Logo_2.svg.png",alt:""},null,-1),ig=i.defineComponent({__name:"TestUi",setup(t){const l=i.ref("Test W2W UI!");return(o,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[rg,i.createElementVNode("h1",null,i.toDisplayString(l.value),1)],64))}}),og={install(t,l){console.log("inicializando w2w-shared-ui"),l!=null&&l.pinia?(console.log("existe una instancia de pinia!"),t.use(l.pinia)):console.error("Pinia instance is required to use this library."),console.log("inicializando componentes...")}};Zt.DynamicForm=ng,Zt.TestUi=ig,Zt.default=og,Object.defineProperties(Zt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
26
+ `)+F+`return __p
27
+ }`;var we=bf(function(){return Te(h,oe+"return "+F).apply(l,p)});if(we.source=F,ea(we))throw we;return we}function Hb(e){return Ae(e).toLowerCase()}function Kb(e){return Ae(e).toUpperCase()}function Gb(e,t,r){if(e=Ae(e),e&&(r||t===l))return Ts(e);if(!e||!(t=St(t)))return e;var a=Dt(e),c=Dt(t),h=As(a,c),p=Bs(a,c)+1;return An(a,h,p).join("")}function Qb(e,t,r){if(e=Ae(e),e&&(r||t===l))return e.slice(0,qs(e)+1);if(!e||!(t=St(t)))return e;var a=Dt(e),c=Bs(a,Dt(t))+1;return An(a,0,c).join("")}function Yb(e,t,r){if(e=Ae(e),e&&(r||t===l))return e.replace(Pr,"");if(!e||!(t=St(t)))return e;var a=Dt(e),c=As(a,Dt(t));return An(a,c).join("")}function Zb(e,t){var r=N,a=X;if(Fe(t)){var c="separator"in t?t.separator:c;r="length"in t?ye(t.length):r,a="omission"in t?St(t.omission):a}e=Ae(e);var h=e.length;if(mr(e)){var p=Dt(e);h=p.length}if(r>=h)return e;var b=r-gr(a);if(b<1)return a;var S=p?An(p,0,b).join(""):e.slice(0,b);if(c===l)return S+a;if(p&&(b+=S.length-b),ta(c)){if(e.slice(b).search(c)){var L,I=S;for(c.global||(c=vo(c.source,Ae(nn.exec(c))+"g")),c.lastIndex=0;L=c.exec(I);)var F=L.index;S=S.slice(0,F===l?b:F)}}else if(e.indexOf(St(c),b)!=b){var J=S.lastIndexOf(c);J>-1&&(S=S.slice(0,J))}return S+a}function Xb(e){return e=Ae(e),e&&Wl.test(e)?e.replace(Ir,Eg):e}var jb=Sr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),ia=bc("toUpperCase");function _f(e,t,r){return e=Ae(e),t=r?l:t,t===l?wg(e)?Bg(e):dg(e):e.match(t)||[]}var bf=Se(function(e,t){try{return yt(e,l,t)}catch(r){return ea(r)?r:new pe(r)}}),Jb=un(function(e,t){return At(t,function(r){r=Zt(r),on(e,r,jo(e[r],e))}),e});function ey(e){var t=e==null?0:e.length,r=ce();return e=t?Ve(e,function(a){if(typeof a[1]!="function")throw new Bt(m);return[r(a[0]),a[1]]}):[],Se(function(a){for(var c=-1;++c<t;){var h=e[c];if(yt(h[0],this,a))return yt(h[1],this,a)}})}function ty(e){return Ep(qt(e,C))}function la(e){return function(){return e}}function ny(e,t){return e==null||e!==e?t:e}var ry=wc(),iy=wc(!0);function mt(e){return e}function oa(e){return Xs(typeof e=="function"?e:qt(e,C))}function ly(e){return Js(qt(e,C))}function oy(e,t){return ec(e,qt(t,C))}var ay=Se(function(e,t){return function(r){return Gr(r,e,t)}}),uy=Se(function(e,t){return function(r){return Gr(e,r,t)}});function aa(e,t,r){var a=Xe(t),c=Xi(t,a);r==null&&!(Fe(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=Xi(t,Xe(t)));var h=!(Fe(r)&&"chain"in r)||!!r.chain,p=cn(e);return At(c,function(b){var S=t[b];e[b]=S,p&&(e.prototype[b]=function(){var L=this.__chain__;if(h||L){var I=e(this.__wrapped__),F=I.__actions__=ft(this.__actions__);return F.push({func:S,args:arguments,thisArg:e}),I.__chain__=L,I}return S.apply(e,Sn([this.value()],arguments))})}),e}function sy(){return et._===this&&(et._=Ig),this}function ua(){}function cy(e){return e=ye(e),Se(function(t){return tc(t,e)})}var fy=Fo(Ve),dy=Fo(Ss),hy=Fo(so);function yf(e){return Ko(e)?co(Zt(e)):Up(e)}function my(e){return function(t){return e==null?l:Gn(e,t)}}var gy=xc(),py=xc(!0);function sa(){return[]}function ca(){return!1}function vy(){return{}}function _y(){return""}function by(){return!0}function yy(e,t){if(e=ye(e),e<1||e>H)return[];var r=R,a=rt(e,R);t=ce(t),e-=R;for(var c=mo(a,t);++r<e;)t(r);return c}function wy(e){return be(e)?Ve(e,Zt):xt(e)?[e]:ft(Fc(Ae(e)))}function Sy(e){var t=++Og;return Ae(e)+t}var xy=rl(function(e,t){return e+t},0),Cy=No("ceil"),ky=rl(function(e,t){return e/t},1),Ey=No("floor");function Ty(e){return e&&e.length?Zi(e,mt,ko):l}function Ay(e,t){return e&&e.length?Zi(e,ce(t,2),ko):l}function By(e){return ks(e,mt)}function Ry(e,t){return ks(e,ce(t,2))}function qy(e){return e&&e.length?Zi(e,mt,Bo):l}function My(e,t){return e&&e.length?Zi(e,ce(t,2),Bo):l}var Oy=rl(function(e,t){return e*t},1),Ly=No("round"),Iy=rl(function(e,t){return e-t},0);function Vy(e){return e&&e.length?ho(e,mt):0}function Py(e,t){return e&&e.length?ho(e,ce(t,2)):0}return d.after=l_,d.ary=Zc,d.assign=K_,d.assignIn=ff,d.assignInWith=pl,d.assignWith=G_,d.at=Q_,d.before=Xc,d.bind=jo,d.bindAll=Jb,d.bindKey=jc,d.castArray=v_,d.chain=Gc,d.chunk=Ev,d.compact=Tv,d.concat=Av,d.cond=ey,d.conforms=ty,d.constant=la,d.countBy=V0,d.create=Y_,d.curry=Jc,d.curryRight=ef,d.debounce=tf,d.defaults=Z_,d.defaultsDeep=X_,d.defer=o_,d.delay=a_,d.difference=Bv,d.differenceBy=Rv,d.differenceWith=qv,d.drop=Mv,d.dropRight=Ov,d.dropRightWhile=Lv,d.dropWhile=Iv,d.fill=Vv,d.filter=$0,d.flatMap=D0,d.flatMapDeep=z0,d.flatMapDepth=U0,d.flatten=Uc,d.flattenDeep=Pv,d.flattenDepth=$v,d.flip=u_,d.flow=ry,d.flowRight=iy,d.fromPairs=Fv,d.functions=ib,d.functionsIn=lb,d.groupBy=W0,d.initial=Dv,d.intersection=zv,d.intersectionBy=Uv,d.intersectionWith=Wv,d.invert=ab,d.invertBy=ub,d.invokeMap=K0,d.iteratee=oa,d.keyBy=G0,d.keys=Xe,d.keysIn=ht,d.map=cl,d.mapKeys=cb,d.mapValues=fb,d.matches=ly,d.matchesProperty=oy,d.memoize=dl,d.merge=db,d.mergeWith=df,d.method=ay,d.methodOf=uy,d.mixin=aa,d.negate=hl,d.nthArg=cy,d.omit=hb,d.omitBy=mb,d.once=s_,d.orderBy=Q0,d.over=fy,d.overArgs=c_,d.overEvery=dy,d.overSome=hy,d.partial=Jo,d.partialRight=nf,d.partition=Y0,d.pick=gb,d.pickBy=hf,d.property=yf,d.propertyOf=my,d.pull=Qv,d.pullAll=Hc,d.pullAllBy=Yv,d.pullAllWith=Zv,d.pullAt=Xv,d.range=gy,d.rangeRight=py,d.rearg=f_,d.reject=j0,d.remove=jv,d.rest=d_,d.reverse=Zo,d.sampleSize=e_,d.set=vb,d.setWith=_b,d.shuffle=t_,d.slice=Jv,d.sortBy=i_,d.sortedUniq=o0,d.sortedUniqBy=a0,d.split=Db,d.spread=h_,d.tail=u0,d.take=s0,d.takeRight=c0,d.takeRightWhile=f0,d.takeWhile=d0,d.tap=T0,d.throttle=m_,d.thru=sl,d.toArray=uf,d.toPairs=mf,d.toPairsIn=gf,d.toPath=wy,d.toPlainObject=cf,d.transform=bb,d.unary=g_,d.union=h0,d.unionBy=m0,d.unionWith=g0,d.uniq=p0,d.uniqBy=v0,d.uniqWith=_0,d.unset=yb,d.unzip=Xo,d.unzipWith=Kc,d.update=wb,d.updateWith=Sb,d.values=kr,d.valuesIn=xb,d.without=b0,d.words=_f,d.wrap=p_,d.xor=y0,d.xorBy=w0,d.xorWith=S0,d.zip=x0,d.zipObject=C0,d.zipObjectDeep=k0,d.zipWith=E0,d.entries=mf,d.entriesIn=gf,d.extend=ff,d.extendWith=pl,aa(d,d),d.add=xy,d.attempt=bf,d.camelCase=Tb,d.capitalize=pf,d.ceil=Cy,d.clamp=Cb,d.clone=__,d.cloneDeep=y_,d.cloneDeepWith=w_,d.cloneWith=b_,d.conformsTo=S_,d.deburr=vf,d.defaultTo=ny,d.divide=ky,d.endsWith=Ab,d.eq=Ut,d.escape=Bb,d.escapeRegExp=Rb,d.every=P0,d.find=F0,d.findIndex=Dc,d.findKey=j_,d.findLast=N0,d.findLastIndex=zc,d.findLastKey=J_,d.floor=Ey,d.forEach=Qc,d.forEachRight=Yc,d.forIn=eb,d.forInRight=tb,d.forOwn=nb,d.forOwnRight=rb,d.get=na,d.gt=x_,d.gte=C_,d.has=ob,d.hasIn=ra,d.head=Wc,d.identity=mt,d.includes=H0,d.indexOf=Nv,d.inRange=kb,d.invoke=sb,d.isArguments=Zn,d.isArray=be,d.isArrayBuffer=k_,d.isArrayLike=dt,d.isArrayLikeObject=ze,d.isBoolean=E_,d.isBuffer=Bn,d.isDate=T_,d.isElement=A_,d.isEmpty=B_,d.isEqual=R_,d.isEqualWith=q_,d.isError=ea,d.isFinite=M_,d.isFunction=cn,d.isInteger=rf,d.isLength=ml,d.isMap=lf,d.isMatch=O_,d.isMatchWith=L_,d.isNaN=I_,d.isNative=V_,d.isNil=$_,d.isNull=P_,d.isNumber=of,d.isObject=Fe,d.isObjectLike=De,d.isPlainObject=Jr,d.isRegExp=ta,d.isSafeInteger=F_,d.isSet=af,d.isString=gl,d.isSymbol=xt,d.isTypedArray=Cr,d.isUndefined=N_,d.isWeakMap=D_,d.isWeakSet=z_,d.join=Hv,d.kebabCase=qb,d.last=Ot,d.lastIndexOf=Kv,d.lowerCase=Mb,d.lowerFirst=Ob,d.lt=U_,d.lte=W_,d.max=Ty,d.maxBy=Ay,d.mean=By,d.meanBy=Ry,d.min=qy,d.minBy=My,d.stubArray=sa,d.stubFalse=ca,d.stubObject=vy,d.stubString=_y,d.stubTrue=by,d.multiply=Oy,d.nth=Gv,d.noConflict=sy,d.noop=ua,d.now=fl,d.pad=Lb,d.padEnd=Ib,d.padStart=Vb,d.parseInt=Pb,d.random=Eb,d.reduce=Z0,d.reduceRight=X0,d.repeat=$b,d.replace=Fb,d.result=pb,d.round=Ly,d.runInContext=w,d.sample=J0,d.size=n_,d.snakeCase=Nb,d.some=r_,d.sortedIndex=e0,d.sortedIndexBy=t0,d.sortedIndexOf=n0,d.sortedLastIndex=r0,d.sortedLastIndexBy=i0,d.sortedLastIndexOf=l0,d.startCase=zb,d.startsWith=Ub,d.subtract=Iy,d.sum=Vy,d.sumBy=Py,d.template=Wb,d.times=yy,d.toFinite=fn,d.toInteger=ye,d.toLength=sf,d.toLower=Hb,d.toNumber=Lt,d.toSafeInteger=H_,d.toString=Ae,d.toUpper=Kb,d.trim=Gb,d.trimEnd=Qb,d.trimStart=Yb,d.truncate=Zb,d.unescape=Xb,d.uniqueId=Sy,d.upperCase=jb,d.upperFirst=ia,d.each=Qc,d.eachRight=Yc,d.first=Wc,aa(d,function(){var e={};return Qt(d,function(t,r){Re.call(d.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),d.VERSION=u,At(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),At(["drop","take"],function(e,t){Ce.prototype[e]=function(r){r=r===l?1:Ye(ye(r),0);var a=this.__filtered__&&!t?new Ce(this):this.clone();return a.__filtered__?a.__takeCount__=rt(r,a.__takeCount__):a.__views__.push({size:rt(r,R),type:e+(a.__dir__<0?"Right":"")}),a},Ce.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),At(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==P||r==ue;Ce.prototype[e]=function(c){var h=this.clone();return h.__iteratees__.push({iteratee:ce(c,3),type:r}),h.__filtered__=h.__filtered__||a,h}}),At(["head","last"],function(e,t){var r="take"+(t?"Right":"");Ce.prototype[e]=function(){return this[r](1).value()[0]}}),At(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");Ce.prototype[e]=function(){return this.__filtered__?new Ce(this):this[r](1)}}),Ce.prototype.compact=function(){return this.filter(mt)},Ce.prototype.find=function(e){return this.filter(e).head()},Ce.prototype.findLast=function(e){return this.reverse().find(e)},Ce.prototype.invokeMap=Se(function(e,t){return typeof e=="function"?new Ce(this):this.map(function(r){return Gr(r,e,t)})}),Ce.prototype.reject=function(e){return this.filter(hl(ce(e)))},Ce.prototype.slice=function(e,t){e=ye(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Ce(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==l&&(t=ye(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},Ce.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ce.prototype.toArray=function(){return this.take(R)},Qt(Ce.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),c=d[a?"take"+(t=="last"?"Right":""):t],h=a||/^find/.test(t);c&&(d.prototype[t]=function(){var p=this.__wrapped__,b=a?[1]:arguments,S=p instanceof Ce,L=b[0],I=S||be(p),F=function(xe){var ke=c.apply(d,Sn([xe],b));return a&&J?ke[0]:ke};I&&r&&typeof L=="function"&&L.length!=1&&(S=I=!1);var J=this.__chain__,oe=!!this.__actions__.length,de=h&&!J,we=S&&!oe;if(!h&&I){p=we?p:new Ce(this);var he=e.apply(p,b);return he.__actions__.push({func:sl,args:[F],thisArg:l}),new Rt(he,J)}return de&&we?e.apply(this,b):(he=this.thru(F),de?a?he.value()[0]:he.value():he)})}),At(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ii[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var h=this.value();return t.apply(be(h)?h:[],c)}return this[r](function(p){return t.apply(be(p)?p:[],c)})}}),Qt(Ce.prototype,function(e,t){var r=d[t];if(r){var a=r.name+"";Re.call(br,a)||(br[a]=[]),br[a].push({name:t,func:r})}}),br[nl(l,W).name]=[{name:"wrapper",func:l}],Ce.prototype.clone=Xg,Ce.prototype.reverse=jg,Ce.prototype.value=Jg,d.prototype.at=A0,d.prototype.chain=B0,d.prototype.commit=R0,d.prototype.next=q0,d.prototype.plant=O0,d.prototype.reverse=L0,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=I0,d.prototype.first=d.prototype.head,Nr&&(d.prototype[Nr]=M0),d},pr=Rg();zn?((zn.exports=pr)._=pr,lo._=pr):et._=pr}).call(je)}(ei,ei.exports);var Pe=ei.exports,Xt={},da={},ha={},ti={};Object.defineProperty(ti,"__esModule",{value:!0}),ti.OPERATORS=void 0,ti.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.ControlType=Xn.GAMA_PROP_CONTROL_TYPES=void 0,Xn.GAMA_PROP_CONTROL_TYPES=[{code:"input_text",icon:"title",label:"Texto"},{code:"input_number",icon:"o_looks_one",label:"Número"},{code:"datetime",icon:"event",label:"Fecha y hora"},{code:"date",icon:"calendar_today",label:"Fecha"},{code:"time",icon:"schedule",label:"Hora"},{code:"switch",icon:"toggle_on",label:"Switch"},{code:"checkbox",icon:"o_check_box",label:"Checkbox"},{code:"select",icon:"list",label:"Selector simple"},{code:"cards_select",icon:"grid_view",label:"Selector de tarjetas"},{code:"location",icon:"location_on",label:"Ubicación"},{code:"dynamic_array",icon:"data_array",label:"Colección dinámica"},{code:"object",icon:"data_object",label:"Objeto"}];var ma;(function(n){n.TEXT="input_text",n.NUMBER="input_number",n.DATETIME="datetime",n.DATE="date",n.TIME="time",n.SWITCH="switch",n.CHECKBOX="checkbox",n.SELECT="select",n.CARDS_SELECT="cards_select",n.LOCATION="location",n.DYNAMIC_ARRAY="dynamic_array",n.OBJECT="object"})(ma||(Xn.ControlType=ma={}));var ga={};Object.defineProperty(ga,"__esModule",{value:!0});var pa={};Object.defineProperty(pa,"__esModule",{value:!0});var va={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.VALIDATORS=n.PropValidatorKeys=n.GamaPropValidatorsMap=void 0,n.GamaPropValidatorsMap={required:{fn:()=>l=>l.value!==null&&l.value!==void 0&&l.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:l=>u=>{if(typeof u.value=="number")return(u.value||0)>=l;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length>=l:s.length>=l}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:l=>u=>{if(typeof u.value=="number")return(u.value||0)<=l;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length<=l:(s||"").length<=l}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>l=>/^[0-9]*$/.test(String(l.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>l=>l.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(l.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>l=>l.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(l.value)||"")||/^www\.[^ "]+$/.test(String(l.value)||""):!0,message:"La URL no es válida",label:"URL"}};var o;(function(l){l.REQUERIDO="required",l.MINIMO="min",l.MAXIMO="max",l.SOLO_NUMEROS="onlyNumbers",l.EMAIL="email",l.URL="url"})(o||(n.PropValidatorKeys=o={})),n.VALIDATORS=Object.entries(n.GamaPropValidatorsMap).map(([l,u])=>({value:l,...u}))})(va);var _a={};Object.defineProperty(_a,"__esModule",{value:!0}),function(n){var o=je&&je.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),l=je&&je.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(n,"__esModule",{value:!0}),l(ti,n),l(Xn,n),l(ga,n),l(pa,n),l(va,n),l(_a,n)}(ha),function(n){var o=je&&je.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),l=je&&je.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(n,"__esModule",{value:!0}),l(ha,n)}(da),function(n){var o=je&&je.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),l=je&&je.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(n,"__esModule",{value:!0}),l(da,n)}(Xt);const vl=[Xt.ControlType.DYNAMIC_ARRAY,Xt.ControlType.OBJECT],Sf={maxControlsPerGroup:1,notifyValidations:!0},ba={required:{fn:()=>n=>{var o;if(n.controlType===Xt.ControlType.LOCATION){const{value:l}=n.value;return Pe.values(Pe.omit(l,"catastro")).every(u=>!Pe.isNil(u)&&u!=="")&&(l!=null&&l.catastro?xf(l==null?void 0:l.catastro):!0)}return n.controlType===Xt.ControlType.DYNAMIC_ARRAY||n.multiple?(((o=n.value)==null?void 0:o.length)||0)>0:!Pe.isNil(n.value)&&n.value!==""},message:"Este campo es requerido"},min:{fn:n=>o=>ya(o,">=",n),message:"El valor es menor al mínimo permitido"},max:{fn:n=>o=>ya(o,"<=",n),message:"El valor es mayor al máximo permitido"},onlyNumbers:{fn:()=>n=>/^[0-9]*$/.test(String(n.value)||""),message:"Este campo solo acepta números"},email:{fn:()=>n=>n.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(n.value)||""):!0,message:"El correo electrónico no es válido"},url:{fn:()=>n=>n.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(n.value)||"")||/^www\.[^ "]+$/.test(String(n.value)||""):!0,message:"La URL no es válida"}};function ya(n,o,l){const u={">":(s,f)=>s>f,"<":(s,f)=>s<f,">=":(s,f)=>s>=f,"<=":(s,f)=>s<=f}[o];if(n.controlType===Xt.ControlType.NUMBER){const s=Number(n.value);return u(s,l)}if(n.controlType===Xt.ControlType.TEXT){const s=(n.value||"").length;return u(s,l)}if([Xt.ControlType.CARDS_SELECT,Xt.ControlType.SELECT].includes(n.controlType)&&n.multiple){const s=(n.value||[]).length;return u(s,l)}return!1}function xf(n){return/^[A-Za-z0-9]{20}$/.test(n)}function Cf(n){const o=[];n.controls.forEach((u,s)=>{const f=kf(u);o.push(...f);const m=!f.length;n.controls[s].valid=m});const l=!o.length;return n.valid=l,o}function kf(n){const o=[];return n.validators&&n.validators.forEach(l=>{const{validator:u,param:s}=l,f=ba[u]||null;f&&(f.fn(Number(s))(n)||o.push(f.message))}),o}function Ef(n,o,l){return o.controlType==="dynamic_array"?Tf(n,o,l):o.controlType==="object"?wa(n,o,l):[]}function Tf(n,o,l){var f,m;const u=[],s=((f=o.itemsLength)==null?void 0:f.value)||0;for(let g=0;g<s;g++){const x=wa({...n,title:`${n.title} ${g+1}`},{...o,value:(m=o.value)==null?void 0:m[g]},l);x.forEach(A=>{A.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...x)}return u}function wa(n,o,l){const u=o.structure;return Pe.chunk(u,l).map(f=>({...n,controls:Sa(f).map(m=>{var g;return{...m,id:o.id,value:((g=o.value)==null?void 0:g[m.code])||m.value}})}))}function Af(n){return Pe.chain(n).groupBy("group").toPairs().orderBy(([l,u])=>l).map(([l,u])=>{var m;const s=((m=u.find(g=>{var x;return!!((x=g.title)!=null&&x.trim())}))==null?void 0:m.title)||"",f=u[0].group;return{title:s,controls:u,order:f,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}function Bf(n){return n.map(o=>({...o,valid:!1,controls:Sa(o.controls)}))}function Sa(n){return n.map(o=>{var l,u,s;return{...o,valid:!((l=o.validators)!=null&&l.length),visible:!((u=o.conditions)!=null&&u.length),value:Rf(o),itemsLength:o.controlType==="dynamic_array"?{...o.itemsLength,value:((s=o.itemsLength)==null?void 0:s.default)||1}:null}})}function Rf(n){if(!Pe.isNil(n.defaultValue))return n.defaultValue;switch(n.controlType){case"input_text":return"";case"input_number":return null;case"select":return n.multiple?[]:"";case"cards_select":return n.multiple?[]:"";case"checkbox":return null;case"switch":return null;case"location":return{};case"dynamic_array":return[];case"object":return{};default:return""}}console.log("active pinia:",fa.getActivePinia());const jn=fa.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(n){this.formSteps=Bf(n)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(n,o){const{id:l,value:u,code:s}=o,f=this.formSteps[n].controls.find(m=>m.id===l);f&&(vl.includes(f.controlType)?Pe.set(f.value,s,u):f.value=u)},setControlVisibility(n,o,l){const u=this.formSteps[n].controls.find(s=>s.id===o);u&&(u.visible=l)},setControlItemsLength(n,o,l){const u=this.formSteps[n].controls.find(s=>s.id===o);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=l)},setOnLastSubstep(n){this.onLastSubstep=n},resetSteps(){this.currentStep=1},setCollection(n,o){this.collections[n]=o}},getters:{currentFormStep(n){return n.formSteps[n.currentStep-1]||null},stepsCount(n){return n.formSteps.length},nextDisabled(){return this.currentFormStep.controls.filter(n=>n.visible).some(n=>!n.valid)},getCollection(n){return o=>n.collections[o]||null}}});class xa{toRaw(o){return o.flatMap(s=>s.controls).filter(s=>s.visible).map(s=>({ID_CUESTIONARIO_PREGUNTA:s.id,RESPUESTA:this.formatValue(s)}))}fromRaw(o){return Pe.orderBy(o,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,f=u.ORDEN,m=u.DESCRIPCION,g=u.CLAVE,x=u.ID_CUESTIONARIO,A=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:f,text:m,controls:A,name:g,id:x}})}parseControl(o){return{controlType:o.TIPO,label:o.NOMBRE,name:o.CLAVE,options:o.RESPUESTAS,multiple:o.MULTIPLE||!1,validators:o.VALIDACIONES,conditions:o.CONDITIONS,itemsLength:o.LENGTH,id:o.ID_CUESTIONARIO_PREGUNTA,row:o.FILA,col:o.COLUMNA,prefix:o.PREFIJO,suffix:o.SUFIJO,structure:o.STRUCTURE,group:o.GRUPO,title:o.TITULO_GRUPO,customParams:o.PARAMS}}formatValue(o){const{controlType:l,value:u,structure:s}=o,f=(m,g)=>g.controlType==="input_number"&&m!==null&&m!==void 0&&m!==""&&typeof m=="string";return f(u,o)?parseFloat(u.replaceAll(".","")):(l==="object"&&s.forEach(m=>{const g=u[m.code];f(g,m)&&(u[m.code]=parseFloat(g==null?void 0:g.replaceAll(".","")))}),u)}}function ni(n,o,l,u){return Object.defineProperty(n,o,{get:l,set:u,enumerable:!0}),n}const hn=i.ref(!1);let _l;function qf(n,o){const l=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(n)||/(opr)[\/]([\w.]+)/.exec(n)||/(vivaldi)[\/]([\w.]+)/.exec(n)||/(chrome|crios)[\/]([\w.]+)/.exec(n)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(n)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(n)||/(firefox|fxios)[\/]([\w.]+)/.exec(n)||/(webkit)[\/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(n)||[];return{browser:l[5]||l[3]||l[1]||"",version:l[4]||l[2]||"0",platform:o[0]||""}}function Mf(n){return/(ipad)/.exec(n)||/(ipod)/.exec(n)||/(windows phone)/.exec(n)||/(iphone)/.exec(n)||/(kindle)/.exec(n)||/(silk)/.exec(n)||/(android)/.exec(n)||/(win)/.exec(n)||/(mac)/.exec(n)||/(linux)/.exec(n)||/(cros)/.exec(n)||/(playbook)/.exec(n)||/(bb)/.exec(n)||/(blackberry)/.exec(n)||[]}const Ca="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Of(n){const o=n.toLowerCase(),l=Mf(o),u=qf(o,l),s={};u.browser&&(s[u.browser]=!0,s.version=u.version,s.versionNumber=parseInt(u.version,10)),u.platform&&(s[u.platform]=!0);const f=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(f===!0||o.indexOf("mobile")!==-1?s.mobile=!0:s.desktop=!0,s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),s.edga||s.edgios||s.edg?(s.edge=!0,u.browser="edge"):s.crios?(s.chrome=!0,u.browser="chrome"):s.fxios&&(s.firefox=!0,u.browser="firefox"),(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s.vivaldi&&(u.browser="vivaldi",s.vivaldi=!0),(s.chrome||s.opr||s.safari||s.vivaldi||s.mobile===!0&&s.ios!==!0&&f!==!0)&&(s.webkit=!0),s.opr&&(u.browser="opera",s.opera=!0),s.safari&&(s.blackberry||s.bb?(u.browser="blackberry",s.blackberry=!0):s.playbook?(u.browser="playbook",s.playbook=!0):s.android?(u.browser="android",s.android=!0):s.kindle?(u.browser="kindle",s.kindle=!0):s.silk&&(u.browser="silk",s.silk=!0)),s.name=u.browser,s.platform=u.platform,o.indexOf("electron")!==-1)s.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)s.bex=!0;else{if(window.Capacitor!==void 0?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),hn.value===!0&&(_l={is:{...s}}),Ca===!0&&s.mac===!0&&(s.desktop===!0&&s.safari===!0||s.nativeMobile===!0&&s.android!==!0&&s.ios!==!0&&s.ipad!==!0)){delete s.mac,delete s.desktop;const m=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:m,[m]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const ka=navigator.userAgent||navigator.vendor||window.opera,Lf={has:{touch:!1,webStorage:!1},within:{iframe:!1}},gt={userAgent:ka,is:Of(ka),has:{touch:Ca},within:{iframe:window.self!==window.top}},bl={install(n){const{$q:o}=n;hn.value===!0?(n.onSSRHydrated.push(()=>{Object.assign(o.platform,gt),hn.value=!1}),o.platform=i.reactive(this)):o.platform=this}};{let n;ni(gt.has,"webStorage",()=>{if(n!==void 0)return n;try{if(window.localStorage)return n=!0,!0}catch{}return n=!1,!1}),Object.assign(bl,gt),hn.value===!0&&(Object.assign(bl,_l,Lf),_l=null)}function Ze(n){return i.markRaw(i.defineComponent(n))}function Ea(n){return i.markRaw(n)}function jt(n,o){if(n===o)return!0;if(n!==null&&o!==null&&typeof n=="object"&&typeof o=="object"){if(n.constructor!==o.constructor)return!1;let l,u;if(n.constructor===Array){if(l=n.length,l!==o.length)return!1;for(u=l;u--!==0;)if(jt(n[u],o[u])!==!0)return!1;return!0}if(n.constructor===Map){if(n.size!==o.size)return!1;let f=n.entries();for(u=f.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=f.next()}for(f=n.entries(),u=f.next();u.done!==!0;){if(jt(u.value[1],o.get(u.value[0]))!==!0)return!1;u=f.next()}return!0}if(n.constructor===Set){if(n.size!==o.size)return!1;const f=n.entries();for(u=f.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=f.next()}return!0}if(n.buffer!=null&&n.buffer.constructor===ArrayBuffer){if(l=n.length,l!==o.length)return!1;for(u=l;u--!==0;)if(n[u]!==o[u])return!1;return!0}if(n.constructor===RegExp)return n.source===o.source&&n.flags===o.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===o.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===o.toString();const s=Object.keys(n).filter(f=>n[f]!==void 0);if(l=s.length,l!==Object.keys(o).filter(f=>o[f]!==void 0).length)return!1;for(u=l;u--!==0;){const f=s[u];if(jt(n[f],o[f])!==!0)return!1}return!0}return n!==n&&o!==o}const Ta={threshold:0,root:null,rootMargin:"0px"};function Aa(n,o,l){let u,s,f;typeof l=="function"?(u=l,s=Ta,f=o.cfg===void 0):(u=l.handler,s=Object.assign({},Ta,l.cfg),f=o.cfg===void 0||jt(o.cfg,s)===!1),o.handler!==u&&(o.handler=u),f===!0&&(o.cfg=s,o.observer!==void 0&&o.observer.unobserve(n),o.observer=new IntersectionObserver(([m])=>{if(typeof o.handler=="function"){if(m.rootBounds===null&&document.body.contains(n)===!0){o.observer.unobserve(n),o.observer.observe(n);return}(o.handler(m,o.observer)===!1||o.once===!0&&m.isIntersecting===!0)&&Ba(n)}},s),o.observer.observe(n))}function Ba(n){const o=n.__qvisible;o!==void 0&&(o.observer!==void 0&&o.observer.unobserve(n),delete n.__qvisible)}const If=Ea({name:"intersection",mounted(n,{modifiers:o,value:l}){const u={once:o.once===!0};Aa(n,u,l),n.__qvisible=u},updated(n,o){const l=n.__qvisible;l!==void 0&&Aa(n,l,o.value)},beforeUnmount:Ba});function pt(n,o){return n!==void 0&&n()||o}function Vf(n,o){if(n!==void 0){const l=n();if(l!=null)return l.slice()}return o}function Rn(n,o){return n!==void 0?o.concat(n()):o}function Pf(n,o){return n===void 0?o:o!==void 0?o.concat(n()):n()}function Ra(n,o,l,u,s,f){o.key=u+s;const m=i.h(n,o,l);return s===!0?i.withDirectives(m,f()):m}const $f=Ze({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(n,{slots:o,emit:l}){const u=i.ref(hn.value===!0?n.ssrPrerender:!1),s=i.computed(()=>n.root!==void 0||n.margin!==void 0||n.threshold!==void 0?{handler:x,cfg:{root:n.root,rootMargin:n.margin,threshold:n.threshold}}:x),f=i.computed(()=>n.disable!==!0&&(hn.value!==!0||n.once!==!0||n.ssrPrerender!==!0)),m=i.computed(()=>[[If,s.value,void 0,{once:n.once}]]),g=i.computed(()=>`--q-transition-duration: ${n.transitionDuration}ms`);function x(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,n.onVisibility!==void 0&&l("visibility",u.value))}function A(){if(u.value===!0)return[i.h("div",{key:"content",style:g.value},pt(o.default))];if(o.hidden!==void 0)return[i.h("div",{key:"hidden",style:g.value},o.hidden())]}return()=>{const v=n.transition?[i.h(i.Transition,{name:"q-transition--"+n.transition},A)]:A();return Ra(n.tag,{class:"q-intersection"},v,"main",f.value,()=>m.value)}}}),yl={xs:18,sm:24,md:32,lg:38,xl:46},ri={size:String};function ii(n,o=yl){return i.computed(()=>n.size!==void 0?{fontSize:n.size in o?`${o[n.size]}px`:n.size}:null)}const Ff={size:{type:[String,Number],default:"1em"},color:String};function Nf(n){return{cSize:i.computed(()=>n.size in yl?`${yl[n.size]}px`:n.size),classes:i.computed(()=>"q-spinner"+(n.color?` text-${n.color}`:""))}}const wl=Ze({name:"QSpinner",props:{...Ff,thickness:{type:Number,default:5}},setup(n){const{cSize:o,classes:l}=Nf(n);return()=>i.h("svg",{class:l.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[i.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":n.thickness,"stroke-miterlimit":"10"})])}}),Df={ratio:[String,Number]};function zf(n,o){return i.computed(()=>{const l=Number(n.ratio||(o!==void 0?o.value:void 0));return isNaN(l)!==!0&&l>0?{paddingBottom:`${100/l}%`}:null})}function Sl(n){if(Object(n.$parent)===n.$parent)return n.$parent;let{parent:o}=n.$;for(;Object(o)===o;){if(Object(o.proxy)===o.proxy)return o.proxy;o=o.parent}}function qa(n){return n.appContext.config.globalProperties.$router!==void 0}function Er(n){return n.isUnmounted===!0||n.isDeactivated===!0}function li(){let n=null;const o=i.getCurrentInstance();function l(){n!==null&&(clearTimeout(n),n=null)}return i.onDeactivated(l),i.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(u,s){l(),Er(o)===!1&&(n=setTimeout(()=>{n=null,u()},s))}}}const Uf=Ze({name:"QImg",props:{...Df,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:1.7778},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(n,{slots:o,emit:l}){const u=i.ref(n.initialRatio),s=zf(n,u),f=i.getCurrentInstance(),{registerTimeout:m,removeTimeout:g}=li(),{registerTimeout:x,removeTimeout:A}=li(),v=i.computed(()=>n.placeholderSrc!==void 0?{src:n.placeholderSrc}:null),C=i.computed(()=>n.errorSrc!==void 0?{src:n.errorSrc,__qerror:!0}:null),k=[i.ref(null),i.ref(v.value)],y=i.ref(0),B=i.ref(!1),U=i.ref(!1),q=i.computed(()=>`q-img q-img--${n.noNativeMenu===!0?"no-":""}menu`),W=i.computed(()=>({width:n.width,height:n.height})),D=i.computed(()=>`q-img__image ${n.imgClass!==void 0?n.imgClass+" ":""}q-img__image--with${n.noTransition===!0?"out":""}-transition q-img__image--`),$=i.computed(()=>({...n.imgStyle,objectFit:n.fit,objectPosition:n.position}));function Z(){if(A(),n.loadingShowDelay===0){B.value=!0;return}x(()=>{B.value=!0},n.loadingShowDelay)}function K(){A(),B.value=!1}function Q({target:E}){Er(f)===!1&&(g(),u.value=E.naturalHeight===0?.5:E.naturalWidth/E.naturalHeight,G(E,1))}function G(E,te){te===1e3||Er(f)===!0||(E.complete===!0?le(E):m(()=>{G(E,te+1)},50))}function le(E){Er(f)!==!0&&(y.value=y.value^1,k[y.value].value=null,K(),E.getAttribute("__qerror")!=="true"&&(U.value=!1),l("load",E.currentSrc||E.src))}function V(E){g(),K(),U.value=!0,k[y.value].value=C.value,k[y.value^1].value=v.value,l("error",E)}function N(E){const te=k[E].value,P={key:"img_"+E,class:D.value,style:$.value,alt:n.alt,crossorigin:n.crossorigin,decoding:n.decoding,referrerpolicy:n.referrerpolicy,height:n.height,width:n.width,loading:n.loading,fetchpriority:n.fetchpriority,"aria-hidden":"true",draggable:n.draggable,...te};return y.value===E?Object.assign(P,{class:P.class+"current",onLoad:Q,onError:V}):P.class+="loaded",i.h("div",{class:"q-img__container absolute-full",key:"img"+E},i.h("img",P))}function X(){return B.value===!1?i.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},pt(o[U.value===!0?"error":"default"])):i.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},o.loading!==void 0?o.loading():n.noSpinner===!0?void 0:[i.h(wl,{color:n.spinnerColor,size:n.spinnerSize})])}{let E=function(){i.watch(()=>n.src||n.srcset||n.sizes?{src:n.src,srcset:n.srcset,sizes:n.sizes}:null,te=>{g(),U.value=!1,te===null?(K(),k[y.value^1].value=v.value):Z(),k[y.value].value=te},{immediate:!0})};hn.value===!0?i.onMounted(E):E()}return()=>{const E=[];return s.value!==null&&E.push(i.h("div",{key:"filler",style:s.value})),k[0].value!==null&&E.push(N(0)),k[1].value!==null&&E.push(N(1)),E.push(i.h(i.Transition,{name:"q-transition--fade"},X)),i.h("div",{key:"main",class:q.value,style:W.value,role:"img","aria-label":n.alt},E)}}}),Ma="0 0 24 24",Oa=n=>n,xl=n=>`ionicons ${n}`,La={"mdi-":n=>`mdi ${n}`,"icon-":Oa,"bt-":n=>`bt ${n}`,"eva-":n=>`eva ${n}`,"ion-md":xl,"ion-ios":xl,"ion-logo":xl,"iconfont ":Oa,"ti-":n=>`themify-icon ${n}`,"bi-":n=>`bootstrap-icons ${n}`},Ia={o_:"-outlined",r_:"-round",s_:"-sharp"},Va={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Wf=new RegExp("^("+Object.keys(La).join("|")+")"),Hf=new RegExp("^("+Object.keys(Ia).join("|")+")"),Pa=new RegExp("^("+Object.keys(Va).join("|")+")"),Kf=/^[Mm]\s?[-+]?\.?\d/,Gf=/^img:/,Qf=/^svguse:/,Yf=/^ion-/,Zf=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,vt=Ze({name:"QIcon",props:{...ri,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(n,{slots:o}){const{proxy:{$q:l}}=i.getCurrentInstance(),u=ii(n),s=i.computed(()=>"q-icon"+(n.left===!0?" on-left":"")+(n.right===!0?" on-right":"")+(n.color!==void 0?` text-${n.color}`:"")),f=i.computed(()=>{let m,g=n.name;if(g==="none"||!g)return{none:!0};if(l.iconMapFn!==null){const v=l.iconMapFn(g);if(v!==void 0)if(v.icon!==void 0){if(g=v.icon,g==="none"||!g)return{none:!0}}else return{cls:v.cls,content:v.content!==void 0?v.content:" "}}if(Kf.test(g)===!0){const[v,C=Ma]=g.split("|");return{svg:!0,viewBox:C,nodes:v.split("&&").map(k=>{const[y,B,U]=k.split("@@");return i.h("path",{style:B,d:y,transform:U})})}}if(Gf.test(g)===!0)return{img:!0,src:g.substring(4)};if(Qf.test(g)===!0){const[v,C=Ma]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:C}}let x=" ";const A=g.match(Wf);if(A!==null)m=La[A[1]](g);else if(Zf.test(g)===!0)m=g;else if(Yf.test(g)===!0)m=`ionicons ion-${l.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(Pa.test(g)===!0){m="notranslate material-symbols";const v=g.match(Pa);v!==null&&(g=g.substring(6),m+=Va[v[1]]),x=g}else{m="notranslate material-icons";const v=g.match(Hf);v!==null&&(g=g.substring(2),m+=Ia[v[1]]),x=g}return{cls:m,content:x}});return()=>{const m={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return f.value.none===!0?i.h(n.tag,m,pt(o.default)):f.value.img===!0?i.h(n.tag,m,Rn(o.default,[i.h("img",{src:f.value.src})])):f.value.svg===!0?i.h(n.tag,m,Rn(o.default,[i.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?i.h(n.tag,m,Rn(o.default,[i.h("svg",{viewBox:f.value.viewBox},[i.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(m.class+=" "+f.value.cls),i.h(n.tag,m,Rn(o.default,[f.value.content])))}}}),Xf={class:"card-select-container"},jf=["onClick"],Jf={class:"check"},ed={class:"row justify-center items-center",style:{height:"100%"}},td=["onClick"],nd=i.defineComponent({__name:"CardsSelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=i.useModel(n,"modelValue"),l=n,{control:u}=i.toRefs(l);function s(g){if(u.value.multiple){let x=Pe.cloneDeep(o.value);g.exclusive?x=[g.value]:(x=x.filter(A=>{var v,C;return!((C=(v=u.value.options)==null?void 0:v.find(k=>k.value===A))!=null&&C.exclusive)}),x.includes(g.value)?x=x.filter(A=>A!==g.value):x.push(g.value)),o.value=x}else o.value=g.value}function f(g){return m(g)?"active":""}function m(g){let x;return u.value.multiple?x=(o.value||[]).includes(String(g.value)):x=o.value===g.value,x}return(g,x)=>{const A=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(u).label?(i.openBlock(),i.createBlock(A,{key:0,label:i.unref(u).label},null,8,["label"])):i.createCommentVNode("",!0),i.createElementVNode("div",Xf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u).options,(v,C)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C},[v.image?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`image-card ${f(v)}`),onClick:()=>s(v)},[i.createVNode(Uf,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),i.createElementVNode("div",Jf,[i.createElementVNode("div",ed,[m(v)?(i.openBlock(),i.createBlock(vt,{key:0,name:"check",size:"25px"})):i.createCommentVNode("",!0)])])],10,jf)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(`card-option ${f(v)}`),onClick:()=>s(v)},[i.createElementVNode("span",null,i.toDisplayString(v.label),1)],10,td))],64))),128))])],64)}}}),mn=(n,o)=>{const l=n.__vccOpts||n;for(const[u,s]of o)l[u]=s;return l},rd=mn(nd,[["__scopeId","data-v-148468d6"]]),Jn={dark:{type:Boolean,default:null}};function er(n,o){return i.computed(()=>n.dark===null?o.dark.isActive:n.dark)}function id(n,o){const l=i.ref(null),u=i.computed(()=>n.disable===!0?null:i.h("span",{ref:l,class:"no-outline",tabindex:-1}));function s(f){const m=o.value;f!==void 0&&f.type.indexOf("key")===0?m!==null&&document.activeElement!==m&&m.contains(document.activeElement)===!0&&m.focus():l.value!==null&&(f===void 0||m!==null&&m.contains(f.target)===!0)&&l.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Cl={name:String};function ld(n={}){return(o,l,u)=>{o[l](i.h("input",{class:"hidden"+(u||""),...n.value}))}}function $a(n){return i.computed(()=>n.name||n.for)}const od={xs:30,sm:35,md:40,lg:50,xl:60},st={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const n=Object.defineProperty({},"passive",{get(){Object.assign(st,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,n),window.removeEventListener("qtest",null,n)}catch{}function ad(){}function Fa(n){return n.touches&&n.touches[0]?n=n.touches[0]:n.changedTouches&&n.changedTouches[0]?n=n.changedTouches[0]:n.targetTouches&&n.targetTouches[0]&&(n=n.targetTouches[0]),{top:n.clientY,left:n.clientX}}function ud(n){if(n.path)return n.path;if(n.composedPath)return n.composedPath();const o=[];let l=n.target;for(;l;){if(o.push(l),l.tagName==="HTML")return o.push(document),o.push(window),o;l=l.parentElement}}function Kt(n){n.stopPropagation()}function It(n){n.cancelable!==!1&&n.preventDefault()}function Ke(n){n.cancelable!==!1&&n.preventDefault(),n.stopPropagation()}function kl(n,o,l){const u=`__q_${o}_evt`;n[u]=n[u]!==void 0?n[u].concat(l):l,l.forEach(s=>{s[0].addEventListener(s[1],n[s[2]],st[s[3]])})}function Na(n,o){const l=`__q_${o}_evt`;n[l]!==void 0&&(n[l].forEach(u=>{u[0].removeEventListener(u[1],n[u[2]],st[u[3]])}),n[l]=void 0)}const Da={...Jn,...ri,...Cl,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:n=>n==="tf"||n==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},za=["update:modelValue"];function Ua(n,o){const{props:l,slots:u,emit:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f,g=er(l,m),x=i.ref(null),{refocusTargetEl:A,refocusTarget:v}=id(l,x),C=ii(l,od),k=i.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),y=i.computed(()=>{const E=i.toRaw(l.val);return k.value===!0?l.modelValue.findIndex(te=>i.toRaw(te)===E):-1}),B=i.computed(()=>k.value===!0?y.value!==-1:i.toRaw(l.modelValue)===i.toRaw(l.trueValue)),U=i.computed(()=>k.value===!0?y.value===-1:i.toRaw(l.modelValue)===i.toRaw(l.falseValue)),q=i.computed(()=>B.value===!1&&U.value===!1),W=i.computed(()=>l.disable===!0?-1:l.tabindex||0),D=i.computed(()=>`q-${n} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(g.value===!0?` q-${n}--dark`:"")+(l.dense===!0?` q-${n}--dense`:"")+(l.leftLabel===!0?" reverse":"")),$=i.computed(()=>{const E=B.value===!0?"truthy":U.value===!0?"falsy":"indet",te=l.color!==void 0&&(l.keepColor===!0||(n==="toggle"?B.value===!0:U.value!==!0))?` text-${l.color}`:"";return`q-${n}__inner relative-position non-selectable q-${n}__inner--${E}${te}`}),Z=i.computed(()=>{const E={type:"checkbox"};return l.name!==void 0&&Object.assign(E,{".checked":B.value,"^checked":B.value===!0?"checked":void 0,name:l.name,value:k.value===!0?l.val:l.trueValue}),E}),K=ld(Z),Q=i.computed(()=>{const E={tabindex:W.value,role:n==="toggle"?"switch":"checkbox","aria-label":l.label,"aria-checked":q.value===!0?"mixed":B.value===!0?"true":"false"};return l.disable===!0&&(E["aria-disabled"]="true"),E});function G(E){E!==void 0&&(Ke(E),v(E)),l.disable!==!0&&s("update:modelValue",le(),E)}function le(){if(k.value===!0){if(B.value===!0){const E=l.modelValue.slice();return E.splice(y.value,1),E}return l.modelValue.concat([l.val])}if(B.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(U.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function V(E){(E.keyCode===13||E.keyCode===32)&&Ke(E)}function N(E){(E.keyCode===13||E.keyCode===32)&&G(E)}const X=o(B,q);return Object.assign(f,{toggle:G}),()=>{const E=X();l.disable!==!0&&K(E,"unshift",` q-${n}__native absolute q-ma-none q-pa-none`);const te=[i.h("div",{class:$.value,style:C.value,"aria-hidden":"true"},E)];A.value!==null&&te.push(A.value);const P=l.label!==void 0?Rn(u.default,[l.label]):pt(u.default);return P!==void 0&&te.push(i.h("div",{class:`q-${n}__label q-anchor--skip`},P)),i.h("div",{ref:x,class:D.value,...Q.value,onClick:G,onKeydown:V,onKeyup:N},te)}}const sd=i.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[i.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[i.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),i.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Wa=Ze({name:"QCheckbox",props:Da,emits:za,setup(n){function o(l,u){const s=i.computed(()=>(l.value===!0?n.checkedIcon:u.value===!0?n.indeterminateIcon:n.uncheckedIcon)||null);return()=>s.value!==null?[i.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[i.h(vt,{class:"q-checkbox__icon",name:s.value})])]:[sd]}return Ua("checkbox",o)}}),Ha=i.defineComponent({__name:"SimpleCheckbox",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=i.useModel(n,"modelValue");return(l,u)=>(i.openBlock(),i.createBlock(Wa,{outlined:"",label:l.control.label,color:"green-10","model-value":!!o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=!o.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),cd=Ze({name:"QToggle",props:{...Da,icon:String,iconColor:String},emits:za,setup(n){function o(l,u){const s=i.computed(()=>(l.value===!0?n.checkedIcon:u.value===!0?n.indeterminateIcon:n.uncheckedIcon)||n.icon),f=i.computed(()=>l.value===!0?n.iconColor:null);return()=>[i.h("div",{class:"q-toggle__track"}),i.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[i.h(vt,{name:s.value,color:f.value})]:void 0)]}return Ua("toggle",o)}}),fd=i.defineComponent({__name:"SimpleSwitch",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=i.useModel(n,"modelValue");return(l,u)=>(i.openBlock(),i.createBlock(cd,{falseValue:0,trueValue:1,outlined:"",label:l.control.label,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=s),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}});let El,oi=0;const Je=new Array(256);for(let n=0;n<256;n++)Je[n]=(n+256).toString(16).substring(1);const dd=(()=>{const n=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(n!==void 0){if(n.randomBytes!==void 0)return n.randomBytes;if(n.getRandomValues!==void 0)return o=>{const l=new Uint8Array(o);return n.getRandomValues(l),l}}return o=>{const l=[];for(let u=o;u>0;u--)l.push(Math.floor(Math.random()*256));return l}})(),Ka=4096;function Tl(){(El===void 0||oi+16>Ka)&&(oi=0,El=dd(Ka));const n=Array.prototype.slice.call(El,oi,oi+=16);return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Je[n[0]]+Je[n[1]]+Je[n[2]]+Je[n[3]]+"-"+Je[n[4]]+Je[n[5]]+"-"+Je[n[6]]+Je[n[7]]+"-"+Je[n[8]]+Je[n[9]]+"-"+Je[n[10]]+Je[n[11]]+Je[n[12]]+Je[n[13]]+Je[n[14]]+Je[n[15]]}function hd(n){return n??null}function Ga(n,o){return n??(o===!0?`f_${Tl()}`:null)}function md({getValue:n,required:o=!0}={}){if(hn.value===!0){const l=n!==void 0?i.ref(hd(n())):i.ref(null);return o===!0&&l.value===null&&i.onMounted(()=>{l.value=`f_${Tl()}`}),n!==void 0&&i.watch(n,u=>{l.value=Ga(u,o)}),l}return n!==void 0?i.computed(()=>Ga(n(),o)):i.ref(`f_${Tl()}`)}const Qa=/^on[A-Z]/;function gd(){const{attrs:n,vnode:o}=i.getCurrentInstance(),l={listeners:i.ref({}),attributes:i.ref({})};function u(){const s={},f={};for(const m in n)m!=="class"&&m!=="style"&&Qa.test(m)===!1&&(s[m]=n[m]);for(const m in o.props)Qa.test(m)===!0&&(f[m]=o.props[m]);l.attributes.value=s,l.listeners.value=f}return i.onBeforeUpdate(u),u(),l}const pd="_q_",vd="_q_fo_";function _d({validate:n,resetValidation:o,requiresQForm:l}){const u=i.inject(vd,!1);if(u!==!1){const{props:s,proxy:f}=i.getCurrentInstance();Object.assign(f,{validate:n,resetValidation:o}),i.watch(()=>s.disable,m=>{m===!0?(typeof o=="function"&&o(),u.unbindComponent(f)):u.bindComponent(f)}),i.onMounted(()=>{s.disable!==!0&&u.bindComponent(f)}),i.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(f)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Ya=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Za=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Xa=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,ai=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,ui=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,Al={date:n=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(n),time:n=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(n),fulltime:n=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(n),timeOrFulltime:n=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(n),email:n=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n),hexColor:n=>Ya.test(n),hexaColor:n=>Za.test(n),hexOrHexaColor:n=>Xa.test(n),rgbColor:n=>ai.test(n),rgbaColor:n=>ui.test(n),rgbOrRgbaColor:n=>ai.test(n)||ui.test(n),hexOrRgbColor:n=>Ya.test(n)||ai.test(n),hexaOrRgbaColor:n=>Za.test(n)||ui.test(n),anyColor:n=>Xa.test(n)||ai.test(n)||ui.test(n)};function ja(n,o=250,l){let u=null;function s(){const f=arguments,m=()=>{u=null,n.apply(this,f)};u!==null&&clearTimeout(u),u=setTimeout(m,o)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const bd=[!0,!1,"ondemand"],yd={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:n=>bd.includes(n)}};function wd(n,o){const{props:l,proxy:u}=i.getCurrentInstance(),s=i.ref(!1),f=i.ref(null),m=i.ref(!1);_d({validate:U,resetValidation:B});let g=0,x;const A=i.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),v=i.computed(()=>l.disable!==!0&&A.value===!0&&o.value===!1),C=i.computed(()=>l.error===!0||s.value===!0),k=i.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:f.value);i.watch(()=>l.modelValue,()=>{m.value=!0,v.value===!0&&l.lazyRules===!1&&q()});function y(){l.lazyRules!=="ondemand"&&v.value===!0&&m.value===!0&&q()}i.watch(()=>l.reactiveRules,W=>{W===!0?x===void 0&&(x=i.watch(()=>l.rules,y,{immediate:!0,deep:!0})):x!==void 0&&(x(),x=void 0)},{immediate:!0}),i.watch(()=>l.lazyRules,y),i.watch(n,W=>{W===!0?m.value=!0:v.value===!0&&l.lazyRules!=="ondemand"&&q()});function B(){g++,o.value=!1,m.value=!1,s.value=!1,f.value=null,q.cancel()}function U(W=l.modelValue){if(l.disable===!0||A.value===!1)return!0;const D=++g,$=o.value!==!0?()=>{m.value=!0}:()=>{},Z=(Q,G)=>{Q===!0&&$(),s.value=Q,f.value=G||null,o.value=!1},K=[];for(let Q=0;Q<l.rules.length;Q++){const G=l.rules[Q];let le;if(typeof G=="function"?le=G(W,Al):typeof G=="string"&&Al[G]!==void 0&&(le=Al[G](W)),le===!1||typeof le=="string")return Z(!0,le),!1;le!==!0&&le!==void 0&&K.push(le)}return K.length===0?(Z(!1),!0):(o.value=!0,Promise.all(K).then(Q=>{if(Q===void 0||Array.isArray(Q)===!1||Q.length===0)return D===g&&Z(!1),!0;const G=Q.find(le=>le===!1||typeof le=="string");return D===g&&Z(G!==void 0,G),G===void 0},Q=>(D===g&&(console.error(Q),Z(!0)),!1)))}const q=ja(U,0);return i.onBeforeUnmount(()=>{x!==void 0&&x(),q.cancel()}),Object.assign(u,{resetValidation:B,validate:U}),ni(u,"hasError",()=>C.value),{isDirtyModel:m,hasRules:A,hasError:C,errorMessage:k,validate:U,resetValidation:B}}let qn=[],Tr=[];function Ja(n){Tr=Tr.filter(o=>o!==n)}function Sd(n){Ja(n),Tr.push(n)}function eu(n){Ja(n),Tr.length===0&&qn.length!==0&&(qn[qn.length-1](),qn=[])}function si(n){Tr.length===0?n():qn.push(n)}function xd(n){qn=qn.filter(o=>o!==n)}function Ar(n){return n!=null&&(""+n).length!==0}const ci={...{...Jn,...yd,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},maxlength:[Number,String]},Bl=["update:modelValue","clear","focus","blur"];function Rl({requiredForAttr:n=!0,tagProp:o,changeEvent:l=!1}={}){const{props:u,proxy:s}=i.getCurrentInstance(),f=er(u,s.$q),m=md({required:n,getValue:()=>u.for});return{requiredForAttr:n,changeEvent:l,tag:o===!0?i.computed(()=>u.tag):{value:"label"},isDark:f,editable:i.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:i.ref(!1),focused:i.ref(!1),hasPopupOpen:!1,splitAttrs:gd(),targetUid:m,rootRef:i.ref(null),targetRef:i.ref(null),controlRef:i.ref(null)}}function ql(n){const{props:o,emit:l,slots:u,attrs:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f;let g=null;n.hasValue===void 0&&(n.hasValue=i.computed(()=>Ar(o.modelValue))),n.emitValue===void 0&&(n.emitValue=H=>{l("update:modelValue",H)}),n.controlEvents===void 0&&(n.controlEvents={onFocusin:V,onFocusout:N}),Object.assign(n,{clearValue:X,onControlFocusin:V,onControlFocusout:N,focus:G}),n.computedCounter===void 0&&(n.computedCounter=i.computed(()=>{if(o.counter!==!1){const H=typeof o.modelValue=="string"||typeof o.modelValue=="number"?(""+o.modelValue).length:Array.isArray(o.modelValue)===!0?o.modelValue.length:0,se=o.maxlength!==void 0?o.maxlength:o.maxValues;return H+(se!==void 0?" / "+se:"")}}));const{isDirtyModel:x,hasRules:A,hasError:v,errorMessage:C,resetValidation:k}=wd(n.focused,n.innerLoading),y=n.floatingLabel!==void 0?i.computed(()=>o.stackLabel===!0||n.focused.value===!0||n.floatingLabel.value===!0):i.computed(()=>o.stackLabel===!0||n.focused.value===!0||n.hasValue.value===!0),B=i.computed(()=>o.bottomSlots===!0||o.hint!==void 0||A.value===!0||o.counter===!0||o.error!==null),U=i.computed(()=>o.filled===!0?"filled":o.outlined===!0?"outlined":o.borderless===!0?"borderless":o.standout?"standout":"standard"),q=i.computed(()=>`q-field row no-wrap items-start q-field--${U.value}`+(n.fieldClass!==void 0?` ${n.fieldClass.value}`:"")+(o.rounded===!0?" q-field--rounded":"")+(o.square===!0?" q-field--square":"")+(y.value===!0?" q-field--float":"")+(D.value===!0?" q-field--labeled":"")+(o.dense===!0?" q-field--dense":"")+(o.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(n.isDark.value===!0?" q-field--dark":"")+(n.getControl===void 0?" q-field--auto-height":"")+(n.focused.value===!0?" q-field--focused":"")+(v.value===!0?" q-field--error":"")+(v.value===!0||n.focused.value===!0?" q-field--highlighted":"")+(o.hideBottomSpace!==!0&&B.value===!0?" q-field--with-bottom":"")+(o.disable===!0?" q-field--disabled":o.readonly===!0?" q-field--readonly":"")),W=i.computed(()=>"q-field__control relative-position row no-wrap"+(o.bgColor!==void 0?` bg-${o.bgColor}`:"")+(v.value===!0?" text-negative":typeof o.standout=="string"&&o.standout.length!==0&&n.focused.value===!0?` ${o.standout}`:o.color!==void 0?` text-${o.color}`:"")),D=i.computed(()=>o.labelSlot===!0||o.label!==void 0),$=i.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(o.labelColor!==void 0&&v.value!==!0?` text-${o.labelColor}`:"")),Z=i.computed(()=>({id:n.targetUid.value,editable:n.editable.value,focused:n.focused.value,floatingLabel:y.value,modelValue:o.modelValue,emitValue:n.emitValue})),K=i.computed(()=>{const H={};return n.targetUid.value&&(H.for=n.targetUid.value),o.disable===!0&&(H["aria-disabled"]="true"),H});function Q(){const H=document.activeElement;let se=n.targetRef!==void 0&&n.targetRef.value;se&&(H===null||H.id!==n.targetUid.value)&&(se.hasAttribute("tabindex")===!0||(se=se.querySelector("[tabindex]")),se&&se!==H&&se.focus({preventScroll:!0}))}function G(){si(Q)}function le(){xd(Q);const H=document.activeElement;H!==null&&n.rootRef.value.contains(H)&&H.blur()}function V(H){g!==null&&(clearTimeout(g),g=null),n.editable.value===!0&&n.focused.value===!1&&(n.focused.value=!0,l("focus",H))}function N(H,se){g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,!(document.hasFocus()===!0&&(n.hasPopupOpen===!0||n.controlRef===void 0||n.controlRef.value===null||n.controlRef.value.contains(document.activeElement)!==!1))&&(n.focused.value===!0&&(n.focused.value=!1,l("blur",H)),se!==void 0&&se())})}function X(H){Ke(H),m.platform.is.mobile!==!0?(n.targetRef!==void 0&&n.targetRef.value||n.rootRef.value).focus():n.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),o.type==="file"&&(n.inputRef.value.value=null),l("update:modelValue",null),n.changeEvent===!0&&l("change",null),l("clear",o.modelValue),i.nextTick(()=>{const se=x.value;k(),x.value=se})}function E(H){[13,32].includes(H.keyCode)&&X(H)}function te(){const H=[];return u.prepend!==void 0&&H.push(i.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:It},u.prepend())),H.push(i.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},P())),v.value===!0&&o.noErrorIcon===!1&&H.push(ue("error",[i.h(vt,{name:m.iconSet.field.error,color:"negative"})])),o.loading===!0||n.innerLoading.value===!0?H.push(ue("inner-loading-append",u.loading!==void 0?u.loading():[i.h(wl,{color:o.color})])):o.clearable===!0&&n.hasValue.value===!0&&n.editable.value===!0&&H.push(ue("inner-clearable-append",[i.h(vt,{class:"q-field__focusable-action",name:o.clearIcon||m.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":m.lang.label.clear,onKeyup:E,onClick:X})])),u.append!==void 0&&H.push(i.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:It},u.append())),n.getInnerAppend!==void 0&&H.push(ue("inner-append",n.getInnerAppend())),n.getControlChild!==void 0&&H.push(n.getControlChild()),H}function P(){const H=[];return o.prefix!==void 0&&o.prefix!==null&&H.push(i.h("div",{class:"q-field__prefix no-pointer-events row items-center"},o.prefix)),n.getShadowControl!==void 0&&n.hasShadow.value===!0&&H.push(n.getShadowControl()),n.getControl!==void 0?H.push(n.getControl()):u.rawControl!==void 0?H.push(u.rawControl()):u.control!==void 0&&H.push(i.h("div",{ref:n.targetRef,class:"q-field__native row",tabindex:-1,...n.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0},u.control(Z.value))),D.value===!0&&H.push(i.h("div",{class:$.value},pt(u.label,o.label))),o.suffix!==void 0&&o.suffix!==null&&H.push(i.h("div",{class:"q-field__suffix no-pointer-events row items-center"},o.suffix)),H.concat(pt(u.default))}function ae(){let H,se;v.value===!0?C.value!==null?(H=[i.h("div",{role:"alert"},C.value)],se=`q--slot-error-${C.value}`):(H=pt(u.error),se="q--slot-error"):(o.hideHint!==!0||n.focused.value===!0)&&(o.hint!==void 0?(H=[i.h("div",o.hint)],se=`q--slot-hint-${o.hint}`):(H=pt(u.hint),se="q--slot-hint"));const ge=o.counter===!0||u.counter!==void 0;if(o.hideBottomSpace===!0&&ge===!1&&H===void 0)return;const R=i.h("div",{key:se,class:"q-field__messages col"},H);return i.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(o.hideBottomSpace!==!0?"animated":"stale"),onClick:It},[o.hideBottomSpace===!0?R:i.h(i.Transition,{name:"q-transition--field-message"},()=>R),ge===!0?i.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():n.computedCounter.value):null])}function ue(H,se){return se===null?null:i.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let fe=!1;return i.onDeactivated(()=>{fe=!0}),i.onActivated(()=>{fe===!0&&o.autofocus===!0&&f.focus()}),o.autofocus===!0&&i.onMounted(()=>{f.focus()}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(f,{focus:G,blur:le}),function(){const se=n.getControl===void 0&&u.control===void 0?{...n.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0,...K.value}:K.value;return i.h(n.tag.value,{ref:n.rootRef,class:[q.value,s.class],style:s.style,...se},[u.before!==void 0?i.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:It},u.before()):null,i.h("div",{class:"q-field__inner relative-position col self-stretch"},[i.h("div",{ref:n.controlRef,class:W.value,tabindex:-1,...n.controlEvents},te()),B.value===!0?ae():null]),u.after!==void 0?i.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:It},u.after()):null])}}function Ml(n){return n!==Object(n)||n.isComposing===!0||n.qKeyEvent===!0}function Mn(n,o){return Ml(n)===!0?!1:[].concat(o).includes(n.keyCode)}const tu={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},fi={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:n=>n.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:n=>n.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:n=>n.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:n=>n.toLocaleLowerCase()}},nu=Object.keys(fi);nu.forEach(n=>{fi[n].regex=new RegExp(fi[n].pattern)});const Cd=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+nu.join("")+"])|(.)","g"),ru=/[.*+?^${}()|[\]\\]/g,We="",kd={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Ed(n,o,l,u){let s,f,m,g,x,A;const v=i.ref(null),C=i.ref(y());function k(){return n.autogrow===!0||["textarea","text","search","url","tel","password"].includes(n.type)}i.watch(()=>n.type+n.autogrow,U),i.watch(()=>n.mask,V=>{if(V!==void 0)q(C.value,!0);else{const N=G(C.value);U(),n.modelValue!==N&&o("update:modelValue",N)}}),i.watch(()=>n.fillMask+n.reverseFillMask,()=>{v.value===!0&&q(C.value,!0)}),i.watch(()=>n.unmaskedValue,()=>{v.value===!0&&q(C.value)});function y(){if(U(),v.value===!0){const V=K(G(n.modelValue));return n.fillMask!==!1?le(V):V}return n.modelValue}function B(V){if(V<s.length)return s.slice(-V);let N="",X=s;const E=X.indexOf(We);if(E!==-1){for(let te=V-X.length;te>0;te--)N+=We;X=X.slice(0,E)+N+X.slice(E)}return X}function U(){if(v.value=n.mask!==void 0&&n.mask.length!==0&&k(),v.value===!1){g=void 0,s="",f="";return}const V=tu[n.mask]===void 0?n.mask:tu[n.mask],N=typeof n.fillMask=="string"&&n.fillMask.length!==0?n.fillMask.slice(0,1):"_",X=N.replace(ru,"\\$&"),E=[],te=[],P=[];let ae=n.reverseFillMask===!0,ue="",fe="";V.replace(Cd,(R,T,ie,ve,_e)=>{if(ve!==void 0){const z=fi[ve];P.push(z),fe=z.negate,ae===!0&&(te.push("(?:"+fe+"+)?("+z.pattern+"+)?(?:"+fe+"+)?("+z.pattern+"+)?"),ae=!1),te.push("(?:"+fe+"+)?("+z.pattern+")?")}else if(ie!==void 0)ue="\\"+(ie==="\\"?"":ie),P.push(ie),E.push("([^"+ue+"]+)?"+ue+"?");else{const z=T!==void 0?T:_e;ue=z==="\\"?"\\\\\\\\":z.replace(ru,"\\\\$&"),P.push(z),E.push("([^"+ue+"]+)?"+ue+"?")}});const H=new RegExp("^"+E.join("")+"("+(ue===""?".":"[^"+ue+"]")+"+)?"+(ue===""?"":"["+ue+"]*")+"$"),se=te.length-1,ge=te.map((R,T)=>T===0&&n.reverseFillMask===!0?new RegExp("^"+X+"*"+R):T===se?new RegExp("^"+R+"("+(fe===""?".":fe)+"+)?"+(n.reverseFillMask===!0?"$":X+"*")):new RegExp("^"+R));m=P,g=R=>{const T=H.exec(n.reverseFillMask===!0?R:R.slice(0,P.length+1));T!==null&&(R=T.slice(1).join(""));const ie=[],ve=ge.length;for(let _e=0,z=R;_e<ve;_e++){const ne=ge[_e].exec(z);if(ne===null)break;z=z.slice(ne.shift().length),ie.push(...ne)}return ie.length!==0?ie.join(""):R},s=P.map(R=>typeof R=="string"?R:We).join(""),f=s.split(We).join(N)}function q(V,N,X){const E=u.value,te=E.selectionEnd,P=E.value.length-te,ae=G(V);N===!0&&U();const ue=K(ae),fe=n.fillMask!==!1?le(ue):ue,H=C.value!==fe;E.value!==fe&&(E.value=fe),H===!0&&(C.value=fe),document.activeElement===E&&i.nextTick(()=>{if(fe===f){const ge=n.reverseFillMask===!0?f.length:0;E.setSelectionRange(ge,ge,"forward");return}if(X==="insertFromPaste"&&n.reverseFillMask!==!0){const ge=E.selectionEnd;let R=te-1;for(let T=x;T<=R&&T<ge;T++)s[T]!==We&&R++;D.right(E,R);return}if(["deleteContentBackward","deleteContentForward"].indexOf(X)!==-1){const ge=n.reverseFillMask===!0?te===0?fe.length>ue.length?1:0:Math.max(0,fe.length-(fe===f?0:Math.min(ue.length,P)+1))+1:te;E.setSelectionRange(ge,ge,"forward");return}if(n.reverseFillMask===!0)if(H===!0){const ge=Math.max(0,fe.length-(fe===f?0:Math.min(ue.length,P+1)));ge===1&&te===1?E.setSelectionRange(ge,ge,"forward"):D.rightReverse(E,ge)}else{const ge=fe.length-P;E.setSelectionRange(ge,ge,"backward")}else if(H===!0){const ge=Math.max(0,s.indexOf(We),Math.min(ue.length,te)-1);D.right(E,ge)}else{const ge=te-1;D.right(E,ge)}});const se=n.unmaskedValue===!0?G(fe):fe;String(n.modelValue)!==se&&(n.modelValue!==null||se!=="")&&l(se,!0)}function W(V,N,X){const E=K(G(V.value));N=Math.max(0,s.indexOf(We),Math.min(E.length,N)),x=N,V.setSelectionRange(N,X,"forward")}const D={left(V,N){const X=s.slice(N-1).indexOf(We)===-1;let E=Math.max(0,N-1);for(;E>=0;E--)if(s[E]===We){N=E,X===!0&&N++;break}if(E<0&&s[N]!==void 0&&s[N]!==We)return D.right(V,0);N>=0&&V.setSelectionRange(N,N,"backward")},right(V,N){const X=V.value.length;let E=Math.min(X,N+1);for(;E<=X;E++)if(s[E]===We){N=E;break}else s[E-1]===We&&(N=E);if(E>X&&s[N-1]!==void 0&&s[N-1]!==We)return D.left(V,X);V.setSelectionRange(N,N,"forward")},leftReverse(V,N){const X=B(V.value.length);let E=Math.max(0,N-1);for(;E>=0;E--)if(X[E-1]===We){N=E;break}else if(X[E]===We&&(N=E,E===0))break;if(E<0&&X[N]!==void 0&&X[N]!==We)return D.rightReverse(V,0);N>=0&&V.setSelectionRange(N,N,"backward")},rightReverse(V,N){const X=V.value.length,E=B(X),te=E.slice(0,N+1).indexOf(We)===-1;let P=Math.min(X,N+1);for(;P<=X;P++)if(E[P-1]===We){N=P,N>0&&te===!0&&N--;break}if(P>X&&E[N-1]!==void 0&&E[N-1]!==We)return D.leftReverse(V,X);V.setSelectionRange(N,N,"forward")}};function $(V){o("click",V),A=void 0}function Z(V){if(o("keydown",V),Ml(V)===!0||V.altKey===!0)return;const N=u.value,X=N.selectionStart,E=N.selectionEnd;if(V.shiftKey||(A=void 0),V.keyCode===37||V.keyCode===39){V.shiftKey&&A===void 0&&(A=N.selectionDirection==="forward"?X:E);const te=D[(V.keyCode===39?"right":"left")+(n.reverseFillMask===!0?"Reverse":"")];if(V.preventDefault(),te(N,A===X?E:X),V.shiftKey){const P=N.selectionStart;N.setSelectionRange(Math.min(A,P),Math.max(A,P),"forward")}}else V.keyCode===8&&n.reverseFillMask!==!0&&X===E?(D.left(N,X),N.setSelectionRange(N.selectionStart,E,"backward")):V.keyCode===46&&n.reverseFillMask===!0&&X===E&&(D.rightReverse(N,E),N.setSelectionRange(X,N.selectionEnd,"forward"))}function K(V){if(V==null||V==="")return"";if(n.reverseFillMask===!0)return Q(V);const N=m;let X=0,E="";for(let te=0;te<N.length;te++){const P=V[X],ae=N[te];if(typeof ae=="string")E+=ae,P===ae&&X++;else if(P!==void 0&&ae.regex.test(P))E+=ae.transform!==void 0?ae.transform(P):P,X++;else return E}return E}function Q(V){const N=m,X=s.indexOf(We);let E=V.length-1,te="";for(let P=N.length-1;P>=0&&E!==-1;P--){const ae=N[P];let ue=V[E];if(typeof ae=="string")te=ae+te,ue===ae&&E--;else if(ue!==void 0&&ae.regex.test(ue))do te=(ae.transform!==void 0?ae.transform(ue):ue)+te,E--,ue=V[E];while(X===P&&ue!==void 0&&ae.regex.test(ue));else return te}return te}function G(V){return typeof V!="string"||g===void 0?typeof V=="number"?g(""+V):V:g(V)}function le(V){return f.length-V.length<=0?V:n.reverseFillMask===!0&&V.length!==0?f.slice(0,-V.length)+V:V+f.slice(V.length)}return{innerValue:C,hasMask:v,moveCursorForPaste:W,updateMaskValue:q,onMaskedKeydown:Z,onMaskedClick:$}}function Td(n,o){function l(){const u=n.modelValue;try{const s="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(u)===u&&("length"in u?Array.from(u):[u]).forEach(f=>{s.items.add(f)}),{files:s.files}}catch{return{files:void 0}}}return i.computed(()=>{if(n.type==="file")return l()})}const Ad=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Bd=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,Rd=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,qd=/[a-z0-9_ -]$/i;function iu(n){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,n(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(gt.is.firefox===!0?qd.test(l.data)===!1:Ad.test(l.data)===!0||Bd.test(l.data)===!0||Rd.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}const lu=Ze({name:"QInput",inheritAttrs:!1,props:{...ci,...kd,...Cl,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Bl,"paste","change","keydown","click","animationend"],setup(n,{emit:o,attrs:l}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f={};let m=NaN,g,x,A=null,v;const C=i.ref(null),k=$a(n),{innerValue:y,hasMask:B,moveCursorForPaste:U,updateMaskValue:q,onMaskedKeydown:W,onMaskedClick:D}=Ed(n,o,ue,C),$=Td(n),Z=i.computed(()=>Ar(y.value)),K=iu(P),Q=Rl({changeEvent:!0}),G=i.computed(()=>n.type==="textarea"||n.autogrow===!0),le=i.computed(()=>G.value===!0||["text","search","url","tel","password"].includes(n.type)),V=i.computed(()=>{const T={...Q.splitAttrs.listeners.value,onInput:P,onPaste:te,onChange:H,onBlur:se,onFocus:Kt};return T.onCompositionstart=T.onCompositionupdate=T.onCompositionend=K,B.value===!0&&(T.onKeydown=W,T.onClick=D),n.autogrow===!0&&(T.onAnimationend=ae),T}),N=i.computed(()=>{const T={tabindex:0,"data-autofocus":n.autofocus===!0||void 0,rows:n.type==="textarea"?6:void 0,"aria-label":n.label,name:k.value,...Q.splitAttrs.attributes.value,id:Q.targetUid.value,maxlength:n.maxlength,disabled:n.disable===!0,readonly:n.readonly===!0};return G.value===!1&&(T.type=n.type),n.autogrow===!0&&(T.rows=1),T});i.watch(()=>n.type,()=>{C.value&&(C.value.value=n.modelValue)}),i.watch(()=>n.modelValue,T=>{if(B.value===!0){if(x===!0&&(x=!1,String(T)===m))return;q(T)}else y.value!==T&&(y.value=T,n.type==="number"&&f.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete f.value));n.autogrow===!0&&i.nextTick(fe)}),i.watch(()=>n.autogrow,T=>{T===!0?i.nextTick(fe):C.value!==null&&l.rows>0&&(C.value.style.height="auto")}),i.watch(()=>n.dense,()=>{n.autogrow===!0&&i.nextTick(fe)});function X(){si(()=>{const T=document.activeElement;C.value!==null&&C.value!==T&&(T===null||T.id!==Q.targetUid.value)&&C.value.focus({preventScroll:!0})})}function E(){C.value!==null&&C.value.select()}function te(T){if(B.value===!0&&n.reverseFillMask!==!0){const ie=T.target;U(ie,ie.selectionStart,ie.selectionEnd)}o("paste",T)}function P(T){if(!T||!T.target)return;if(n.type==="file"){o("update:modelValue",T.target.files);return}const ie=T.target.value;if(T.target.qComposing===!0){f.value=ie;return}if(B.value===!0)q(ie,!1,T.inputType);else if(ue(ie),le.value===!0&&T.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=T.target;ve!==void 0&&_e!==void 0&&i.nextTick(()=>{T.target===document.activeElement&&ie.indexOf(T.target.value)===0&&T.target.setSelectionRange(ve,_e)})}n.autogrow===!0&&fe()}function ae(T){o("animationend",T),fe()}function ue(T,ie){v=()=>{A=null,n.type!=="number"&&f.hasOwnProperty("value")===!0&&delete f.value,n.modelValue!==T&&m!==T&&(m=T,ie===!0&&(x=!0),o("update:modelValue",T),i.nextTick(()=>{m===T&&(m=NaN)})),v=void 0},n.type==="number"&&(g=!0,f.value=T),n.debounce!==void 0?(A!==null&&clearTimeout(A),f.value=T,A=setTimeout(v,n.debounce)):v()}function fe(){requestAnimationFrame(()=>{const T=C.value;if(T!==null){const ie=T.parentNode.style,{scrollTop:ve}=T,{overflowY:_e,maxHeight:z}=s.platform.is.firefox===!0?{}:window.getComputedStyle(T),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(T.style.overflowY="hidden"),ie.marginBottom=T.scrollHeight-1+"px",T.style.height="1px",T.style.height=T.scrollHeight+"px",ne===!0&&(T.style.overflowY=parseInt(z,10)<T.scrollHeight?"auto":"hidden"),ie.marginBottom="",T.scrollTop=ve}})}function H(T){K(T),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),o("change",T.target.value)}function se(T){T!==void 0&&Kt(T),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),g=!1,x=!1,delete f.value,n.type!=="file"&&setTimeout(()=>{C.value!==null&&(C.value.value=y.value!==void 0?y.value:"")})}function ge(){return f.hasOwnProperty("value")===!0?f.value:y.value!==void 0?y.value:""}i.onBeforeUnmount(()=>{se()}),i.onMounted(()=>{n.autogrow===!0&&fe()}),Object.assign(Q,{innerValue:y,fieldClass:i.computed(()=>`q-${G.value===!0?"textarea":"input"}`+(n.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:i.computed(()=>n.type!=="file"&&typeof n.shadowText=="string"&&n.shadowText.length!==0),inputRef:C,emitValue:ue,hasValue:Z,floatingLabel:i.computed(()=>Z.value===!0&&(n.type!=="number"||isNaN(y.value)===!1)||Ar(n.displayValue)),getControl:()=>i.h(G.value===!0?"textarea":"input",{ref:C,class:["q-field__native q-placeholder",n.inputClass],style:n.inputStyle,...N.value,...V.value,...n.type!=="file"?{value:ge()}:$.value}),getShadowControl:()=>i.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(G.value===!0?"":" text-no-wrap")},[i.h("span",{class:"invisible"},ge()),i.h("span",n.shadowText)])});const R=ql(Q);return Object.assign(u,{focus:X,select:E,getNativeElement:()=>C.value}),ni(u,"nativeEl",()=>C.value),R}}),di=Ze({name:"QCard",props:{...Jn,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(n,{slots:o}){const{proxy:{$q:l}}=i.getCurrentInstance(),u=er(n,l),s=i.computed(()=>"q-card"+(u.value===!0?" q-card--dark q-dark":"")+(n.bordered===!0?" q-card--bordered":"")+(n.square===!0?" q-card--square no-border-radius":"")+(n.flat===!0?" q-card--flat no-shadow":""));return()=>i.h(n.tag,{class:s.value},pt(o.default))}}),Md=i.defineComponent({__name:"WinInput",props:i.mergeModels({modelValue:{},rules:{},label:{},placeholder:{},mask:{},prefix:{},suffix:{},hint:{},maxlength:{},type:{default:"text"},transparent:{type:Boolean,default:!0},width:{default:"100%"},height:{default:"70px"},inputHeight:{},readonly:{type:Boolean},fillMask:{type:Boolean,default:!1},minWidth:{default:"200px"},inputStyle:{default:"resize: none"},labelStyle:{default:"padding-left: 5px"},hintOptions:{default:{color:"grey-7",position:"right"}},counter:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:o}){const l=i.useModel(n,"modelValue"),u=n,s=i.ref(!1),f=i.computed(()=>u.transparent?"glass-card":"win-card"),m=i.computed(()=>u.label===""?void 0:u.label),g=i.computed(()=>{let y="width: 100%; padding-left: 10px; padding-right: 10px;";return u.inputHeight&&(y+="height: "+u.inputHeight),y}),x=i.computed(()=>l.value||s.value?"17.5px":"15px"),A=i.ref(null);function v(){A.value.focus()}function C(){s.value=!0}function k(){s.value=!1}return o({focus:v}),(y,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(di,{onClick:v,class:i.normalizeClass(`${f.value} row items-center ${l.value&&y.label||s.value&&y.label?"q-pt-md":""} `),style:i.normalizeStyle({minHeight:y.height,width:y.width,maxWidth:"calc(100vw - 32px)",minWidth:y.minWidth,margin:"auto"})},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"fixed-label",{class:"self-start"}),i.createVNode(lu,{modelValue:l.value,"onUpdate:modelValue":B[0]||(B[0]=U=>l.value=U),ref_key:"inputRef",ref:A,"label-color":"black","input-class":`text-black ${m.value?"":"text-center ww-title"}`,"input-style":y.inputStyle,style:i.normalizeStyle(g.value),readonly:y.readonly,mask:y.mask,prefix:y.prefix,label:m.value,type:y.type,suffix:y.suffix,counter:y.counter,maxlength:y.maxlength,rules:y.rules,borderless:"",dense:"","unmasked-value":"","reverse-fill-mask":"",placeholder:y.placeholder,onFocus:C,onBlur:k},{label:i.withCtx(()=>[!y.label||y.label!=""?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${x.value};`+y.labelStyle)},i.toDisplayString(y.label)+" "+i.toDisplayString(y.required&&!y.readonly?"*":""),5)):i.createCommentVNode("",!0)]),append:i.withCtx(()=>[i.renderSlot(y.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),i.renderSlot(y.$slots,"bottom")]),_:3},8,["class","style"]),y.hint?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`text-${y.hintOptions.position} text-${y.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},i.toDisplayString(y.hint),3)):i.createCommentVNode("",!0)],64))}}),Od={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},Ld=i.defineComponent({__name:"ControlLabel",props:{label:{}},setup(n){return(o,l)=>(i.openBlock(),i.createElementBlock("div",Od,i.toDisplayString(o.label),1))}}),Id={style:{"max-width":"400px"},class:"text-center"},Vd={style:{"font-size":"16px"}},Pd={style:{"font-size":"16px"}},Ol=mn(i.defineComponent({__name:"InputControl",props:i.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=n,l=i.ref(null),u=i.computed(()=>{var f;return(f=o.control.controlType)==null?void 0:f.split("_")[1]}),s=i.useModel(n,"modelValue");return i.onMounted(()=>{var f;(f=l.value)==null||f.focus()}),(f,m)=>(i.openBlock(),i.createElementBlock("div",Id,[!f.innerLabel&&f.control.label?(i.openBlock(),i.createBlock(Ld,{key:0,label:f.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(Md,{modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:f.innerLabel?f.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:l},i.createSlots({_:2},[f.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",Vd,i.toDisplayString(f.control.prefix),1)]),key:"0"}:void 0,f.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",Pd,i.toDisplayString(f.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function Ll(n,o){const l=n.style;for(const u in o)l[u]=o[u]}function $d(n){if(n==null)return;if(typeof n=="string")try{return document.querySelector(n)||void 0}catch{return}const o=i.unref(n);if(o)return o.$el||o}function ou(n,o){if(n==null||n.contains(o)===!0)return!0;for(let l=n.nextElementSibling;l!==null;l=l.nextElementSibling)if(l.contains(o))return!0;return!1}function Fd(n,o=250){let l=!1,u;return function(){return l===!1&&(l=!0,setTimeout(()=>{l=!1},o),u=n.apply(this,arguments)),u}}function au(n,o,l,u){l.modifiers.stop===!0&&Kt(n);const s=l.modifiers.color;let f=l.modifiers.center;f=f===!0||u===!0;const m=document.createElement("span"),g=document.createElement("span"),x=Fa(n),{left:A,top:v,width:C,height:k}=o.getBoundingClientRect(),y=Math.sqrt(C*C+k*k),B=y/2,U=`${(C-y)/2}px`,q=f?U:`${x.left-A-B}px`,W=`${(k-y)/2}px`,D=f?W:`${x.top-v-B}px`;g.className="q-ripple__inner",Ll(g,{height:`${y}px`,width:`${y}px`,transform:`translate3d(${q},${D},0) scale3d(.2,.2,1)`,opacity:0}),m.className=`q-ripple${s?" text-"+s:""}`,m.setAttribute("dir","ltr"),m.appendChild(g),o.appendChild(m);const $=()=>{m.remove(),clearTimeout(Z)};l.abort.push($);let Z=setTimeout(()=>{g.classList.add("q-ripple__inner--enter"),g.style.transform=`translate3d(${U},${W},0) scale3d(1,1,1)`,g.style.opacity=.2,Z=setTimeout(()=>{g.classList.remove("q-ripple__inner--enter"),g.classList.add("q-ripple__inner--leave"),g.style.opacity=0,Z=setTimeout(()=>{m.remove(),l.abort.splice(l.abort.indexOf($),1)},275)},250)},50)}function uu(n,{modifiers:o,value:l,arg:u}){const s=Object.assign({},n.cfg.ripple,o,l);n.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||u,keyCodes:[].concat(s.keyCodes||13)}}const su=Ea({name:"ripple",beforeMount(n,o){const l=o.instance.$.appContext.config.globalProperties.$q.config||{};if(l.ripple===!1)return;const u={cfg:l,enabled:o.value!==!1,modifiers:{},abort:[],start(s){u.enabled===!0&&s.qSkipRipple!==!0&&s.type===(u.modifiers.early===!0?"pointerdown":"click")&&au(s,n,u,s.qKeyEvent===!0)},keystart:Fd(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&Mn(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&au(s,n,u,!0)},300)};uu(u,o),n.__qripple=u,kl(u,"main",[[n,"pointerdown","start","passive"],[n,"click","start","passive"],[n,"keydown","keystart","passive"],[n,"keyup","keystart","passive"]])},updated(n,o){if(o.oldValue!==o.value){const l=n.__qripple;l!==void 0&&(l.enabled=o.value!==!1,l.enabled===!0&&Object(o.value)===o.value&&uu(l,o))}},beforeUnmount(n){const o=n.__qripple;o!==void 0&&(o.abort.forEach(l=>{l()}),Na(o,"main"),delete n._qripple)}}),cu={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Nd=Object.keys(cu),Dd={align:{type:String,validator:n=>Nd.includes(n)}};function zd(n){return i.computed(()=>{const o=n.align===void 0?n.vertical===!0?"stretch":"left":n.align;return`${n.vertical===!0?"items":"justify"}-${cu[o]}`})}function fu(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}function du(n,o){return(n.aliasOf||n)===(o.aliasOf||o)}function Ud(n,o){for(const l in o){const u=o[l],s=n[l];if(typeof u=="string"){if(u!==s)return!1}else if(Array.isArray(s)===!1||s.length!==u.length||u.some((f,m)=>f!==s[m]))return!1}return!0}function hu(n,o){return Array.isArray(o)===!0?n.length===o.length&&n.every((l,u)=>l===o[u]):n.length===1&&n[0]===o}function Wd(n,o){return Array.isArray(n)===!0?hu(n,o):Array.isArray(o)===!0?hu(o,n):n===o}function Hd(n,o){if(Object.keys(n).length!==Object.keys(o).length)return!1;for(const l in n)if(Wd(n[l],o[l])===!1)return!1;return!0}const mu={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Kd={...mu,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function gu({fallbackTag:n,useDisableForRouterLinkProps:o=!0}={}){const l=i.getCurrentInstance(),{props:u,proxy:s,emit:f}=l,m=qa(l),g=i.computed(()=>u.disable!==!0&&u.href!==void 0),x=o===!0?i.computed(()=>m===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):i.computed(()=>m===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),A=i.computed(()=>x.value===!0?D(u.to):null),v=i.computed(()=>A.value!==null),C=i.computed(()=>g.value===!0||v.value===!0),k=i.computed(()=>u.type==="a"||C.value===!0?"a":u.tag||n||"div"),y=i.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:A.value.href,target:u.target}:{}),B=i.computed(()=>{if(v.value===!1)return-1;const{matched:K}=A.value,{length:Q}=K,G=K[Q-1];if(G===void 0)return-1;const le=s.$route.matched;if(le.length===0)return-1;const V=le.findIndex(du.bind(null,G));if(V!==-1)return V;const N=fu(K[Q-2]);return Q>1&&fu(G)===N&&le[le.length-1].path!==N?le.findIndex(du.bind(null,K[Q-2])):V}),U=i.computed(()=>v.value===!0&&B.value!==-1&&Ud(s.$route.params,A.value.params)),q=i.computed(()=>U.value===!0&&B.value===s.$route.matched.length-1&&Hd(s.$route.params,A.value.params)),W=i.computed(()=>v.value===!0?q.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":U.value===!0?` ${u.activeClass}`:"":"");function D(K){try{return s.$router.resolve(K)}catch{}return null}function $(K,{returnRouterError:Q,to:G=u.to,replace:le=u.replace}={}){if(u.disable===!0)return K.preventDefault(),Promise.resolve(!1);if(K.metaKey||K.altKey||K.ctrlKey||K.shiftKey||K.button!==void 0&&K.button!==0||u.target==="_blank")return Promise.resolve(!1);K.preventDefault();const V=s.$router[le===!0?"replace":"push"](G);return Q===!0?V:V.then(()=>{}).catch(()=>{})}function Z(K){if(v.value===!0){const Q=G=>$(K,G);f("click",K,Q),K.defaultPrevented!==!0&&Q()}else f("click",K)}return{hasRouterLink:v,hasHrefLink:g,hasLink:C,linkTag:k,resolvedLink:A,linkIsActive:U,linkIsExactActive:q,linkClass:W,linkAttrs:y,getLink:D,navigateToRouterLink:$,navigateOnClick:Z}}const pu={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Gd={xs:8,sm:10,md:14,lg:20,xl:24},Qd=["button","submit","reset"],Yd=/[^\s]\/[^\s]/,Zd=["flat","outline","push","unelevated"];function Xd(n,o){return n.flat===!0?"flat":n.outline===!0?"outline":n.push===!0?"push":n.unelevated===!0?"unelevated":o}const jd={...{...ri,...mu,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Zd.reduce((n,o)=>(n[o]=Boolean)&&n,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Dd.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Jd(n){const o=ii(n,Gd),l=zd(n),{hasRouterLink:u,hasLink:s,linkTag:f,linkAttrs:m,navigateOnClick:g}=gu({fallbackTag:"button"}),x=i.computed(()=>{const q=n.fab===!1&&n.fabMini===!1?o.value:{};return n.padding!==void 0?Object.assign({},q,{padding:n.padding.split(/\s+/).map(W=>W in pu?pu[W]+"px":W).join(" "),minWidth:"0",minHeight:"0"}):q}),A=i.computed(()=>n.rounded===!0||n.fab===!0||n.fabMini===!0),v=i.computed(()=>n.disable!==!0&&n.loading!==!0),C=i.computed(()=>v.value===!0?n.tabindex||0:-1),k=i.computed(()=>Xd(n,"standard")),y=i.computed(()=>{const q={tabindex:C.value};return s.value===!0?Object.assign(q,m.value):Qd.includes(n.type)===!0&&(q.type=n.type),f.value==="a"?(n.disable===!0?q["aria-disabled"]="true":q.href===void 0&&(q.role="button"),u.value!==!0&&Yd.test(n.type)===!0&&(q.type=n.type)):n.disable===!0&&(q.disabled="",q["aria-disabled"]="true"),n.loading===!0&&n.percentage!==void 0&&Object.assign(q,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n.percentage}),q}),B=i.computed(()=>{let q;n.color!==void 0?n.flat===!0||n.outline===!0?q=`text-${n.textColor||n.color}`:q=`bg-${n.color} text-${n.textColor||"white"}`:n.textColor&&(q=`text-${n.textColor}`);const W=n.round===!0?"round":`rectangle${A.value===!0?" q-btn--rounded":n.square===!0?" q-btn--square":""}`;return`q-btn--${k.value} q-btn--${W}`+(q!==void 0?" "+q:"")+(v.value===!0?" q-btn--actionable q-focusable q-hoverable":n.disable===!0?" disabled":"")+(n.fab===!0?" q-btn--fab":n.fabMini===!0?" q-btn--fab-mini":"")+(n.noCaps===!0?" q-btn--no-uppercase":"")+(n.dense===!0?" q-btn--dense":"")+(n.stretch===!0?" no-border-radius self-stretch":"")+(n.glossy===!0?" glossy":"")+(n.square?" q-btn--square":"")}),U=i.computed(()=>l.value+(n.stack===!0?" column":" row")+(n.noWrap===!0?" no-wrap text-no-wrap":"")+(n.loading===!0?" q-btn__content--hidden":""));return{classes:B,style:x,innerClasses:U,attributes:y,hasLink:s,linkTag:f,navigateOnClick:g,isActionable:v}}const{passiveCapture:Et}=st;let tr=null,nr=null,rr=null;const ir=Ze({name:"QBtn",props:{...jd,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(n,{slots:o,emit:l}){const{proxy:u}=i.getCurrentInstance(),{classes:s,style:f,innerClasses:m,attributes:g,hasLink:x,linkTag:A,navigateOnClick:v,isActionable:C}=Jd(n),k=i.ref(null),y=i.ref(null);let B=null,U,q=null;const W=i.computed(()=>n.label!==void 0&&n.label!==null&&n.label!==""),D=i.computed(()=>n.disable===!0||n.ripple===!1?!1:{keyCodes:x.value===!0?[13,32]:[13],...n.ripple===!0?{}:n.ripple}),$=i.computed(()=>({center:n.round})),Z=i.computed(()=>{const P=Math.max(0,Math.min(100,n.percentage));return P>0?{transition:"transform 0.6s",transform:`translateX(${P-100}%)`}:{}}),K=i.computed(()=>{if(n.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(C.value===!0){const P={onClick:G,onKeydown:le,onMousedown:N};if(u.$q.platform.has.touch===!0){const ae=n.onTouchstart!==void 0?"":"Passive";P[`onTouchstart${ae}`]=V}return P}return{onClick:Ke}}),Q=i.computed(()=>({ref:k,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:f.value,...g.value,...K.value}));function G(P){if(k.value!==null){if(P!==void 0){if(P.defaultPrevented===!0)return;const ae=document.activeElement;if(n.type==="submit"&&ae!==document.body&&k.value.contains(ae)===!1&&ae.contains(k.value)===!1){k.value.focus();const ue=()=>{document.removeEventListener("keydown",Ke,!0),document.removeEventListener("keyup",ue,Et),k.value!==null&&k.value.removeEventListener("blur",ue,Et)};document.addEventListener("keydown",Ke,!0),document.addEventListener("keyup",ue,Et),k.value.addEventListener("blur",ue,Et)}}v(P)}}function le(P){k.value!==null&&(l("keydown",P),Mn(P,[13,32])===!0&&nr!==k.value&&(nr!==null&&E(),P.defaultPrevented!==!0&&(k.value.focus(),nr=k.value,k.value.classList.add("q-btn--active"),document.addEventListener("keyup",X,!0),k.value.addEventListener("blur",X,Et)),Ke(P)))}function V(P){k.value!==null&&(l("touchstart",P),P.defaultPrevented!==!0&&(tr!==k.value&&(tr!==null&&E(),tr=k.value,B=P.target,B.addEventListener("touchcancel",X,Et),B.addEventListener("touchend",X,Et)),U=!0,q!==null&&clearTimeout(q),q=setTimeout(()=>{q=null,U=!1},200)))}function N(P){k.value!==null&&(P.qSkipRipple=U===!0,l("mousedown",P),P.defaultPrevented!==!0&&rr!==k.value&&(rr!==null&&E(),rr=k.value,k.value.classList.add("q-btn--active"),document.addEventListener("mouseup",X,Et)))}function X(P){if(k.value!==null&&!(P!==void 0&&P.type==="blur"&&document.activeElement===k.value)){if(P!==void 0&&P.type==="keyup"){if(nr===k.value&&Mn(P,[13,32])===!0){const ae=new MouseEvent("click",P);ae.qKeyEvent=!0,P.defaultPrevented===!0&&It(ae),P.cancelBubble===!0&&Kt(ae),k.value.dispatchEvent(ae),Ke(P),P.qKeyEvent=!0}l("keyup",P)}E()}}function E(P){const ae=y.value;P!==!0&&(tr===k.value||rr===k.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),tr===k.value&&(B!==null&&(B.removeEventListener("touchcancel",X,Et),B.removeEventListener("touchend",X,Et)),tr=B=null),rr===k.value&&(document.removeEventListener("mouseup",X,Et),rr=null),nr===k.value&&(document.removeEventListener("keyup",X,!0),k.value!==null&&k.value.removeEventListener("blur",X,Et),nr=null),k.value!==null&&k.value.classList.remove("q-btn--active")}function te(P){Ke(P),P.qSkipRipple=!0}return i.onBeforeUnmount(()=>{E(!0)}),Object.assign(u,{click:P=>{C.value===!0&&G(P)}}),()=>{let P=[];n.icon!==void 0&&P.push(i.h(vt,{name:n.icon,left:n.stack!==!0&&W.value===!0,role:"img"})),W.value===!0&&P.push(i.h("span",{class:"block"},[n.label])),P=Rn(o.default,P),n.iconRight!==void 0&&n.round===!1&&P.push(i.h(vt,{name:n.iconRight,right:n.stack!==!0&&W.value===!0,role:"img"}));const ae=[i.h("span",{class:"q-focus-helper",ref:y})];return n.loading===!0&&n.percentage!==void 0&&ae.push(i.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(n.darkPercentage===!0?" q-btn__progress--dark":"")},[i.h("span",{class:"q-btn__progress-indicator fit block",style:Z.value})])),ae.push(i.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+m.value},P)),n.loading!==null&&ae.push(i.h(i.Transition,{name:"q-transition--fade"},()=>n.loading===!0?[i.h("span",{key:"loading",class:"absolute-full flex flex-center"},o.loading!==void 0?o.loading():[i.h(wl)])]:null)),i.withDirectives(i.h(A.value,Q.value,ae),[[su,D.value,void 0,$.value]])}}}),vu=n=>(i.pushScopeId("data-v-3bcb795a"),n=n(),i.popScopeId(),n),eh={class:"buttons-container"},th={class:"lt-md"},nh={class:"row justify-between q-my-md q-px-md"},rh=vu(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),ih={key:1},lh=vu(()=>i.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),oh=mn(i.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(n){const o=n,l=i.computed(()=>o.currentStep+1);return(u,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",eh,[l.value>1?(i.openBlock(),i.createBlock(ir,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[0]||(s[0]=f=>u.$emit("prev")),flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_back_ios",color:"info"})]),_:1})):i.createCommentVNode("",!0),l.value!==u.stepsCount?(i.openBlock(),i.createBlock(ir,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[1]||(s[1]=f=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",th,[i.createElementVNode("div",nh,[l.value>1&&l.value<u.stepsCount?(i.openBlock(),i.createBlock(ir,{key:0,color:"info",class:"q-px-md-xl q-py-sm q-mr-sm win-btn win-btn-primary",onClick:s[2]||(s[2]=f=>u.$emit("prev")),flat:"","no-caps":""},{default:i.withCtx(()=>[rh]),_:1})):(i.openBlock(),i.createElementBlock("div",ih)),l.value<u.stepsCount?(i.openBlock(),i.createBlock(ir,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:s[3]||(s[3]=f=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:i.withCtx(()=>[lh]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),ah=Ze({name:"QField",inheritAttrs:!1,props:{...ci,tag:{type:String,default:"label"}},emits:Bl,setup(){return ql(Rl({tagProp:!0}))}}),uh={xs:8,sm:10,md:14,lg:20,xl:24},sh=Ze({name:"QChip",props:{...Jn,...ri,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(n,{slots:o,emit:l}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=er(n,u),f=ii(n,uh),m=i.computed(()=>n.selected===!0||n.icon!==void 0),g=i.computed(()=>n.selected===!0?n.iconSelected||u.iconSet.chip.selected:n.icon),x=i.computed(()=>n.iconRemove||u.iconSet.chip.remove),A=i.computed(()=>n.disable===!1&&(n.clickable===!0||n.selected!==null)),v=i.computed(()=>{const q=n.outline===!0&&n.color||n.textColor;return"q-chip row inline no-wrap items-center"+(n.outline===!1&&n.color!==void 0?` bg-${n.color}`:"")+(q?` text-${q} q-chip--colored`:"")+(n.disable===!0?" disabled":"")+(n.dense===!0?" q-chip--dense":"")+(n.outline===!0?" q-chip--outline":"")+(n.selected===!0?" q-chip--selected":"")+(A.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(n.square===!0?" q-chip--square":"")+(s.value===!0?" q-chip--dark q-dark":"")}),C=i.computed(()=>{const q=n.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:n.tabindex||0},W={...q,role:"button","aria-hidden":"false","aria-label":n.removeAriaLabel||u.lang.label.remove};return{chip:q,remove:W}});function k(q){q.keyCode===13&&y(q)}function y(q){n.disable||(l("update:selected",!n.selected),l("click",q))}function B(q){(q.keyCode===void 0||q.keyCode===13)&&(Ke(q),n.disable===!1&&(l("update:modelValue",!1),l("remove")))}function U(){const q=[];A.value===!0&&q.push(i.h("div",{class:"q-focus-helper"})),m.value===!0&&q.push(i.h(vt,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const W=n.label!==void 0?[i.h("div",{class:"ellipsis"},[n.label])]:void 0;return q.push(i.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Pf(o.default,W))),n.iconRight&&q.push(i.h(vt,{class:"q-chip__icon q-chip__icon--right",name:n.iconRight})),n.removable===!0&&q.push(i.h(vt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:x.value,...C.value.remove,onClick:B,onKeyup:B})),q}return()=>{if(n.modelValue===!1)return;const q={class:v.value,style:f.value};return A.value===!0&&Object.assign(q,C.value.chip,{onClick:y,onKeyup:k}),Ra("div",q,U(),"ripple",n.ripple!==!1&&n.disable!==!0,()=>[[su,n.ripple]])}}}),ch=Ze({name:"QItem",props:{...Jn,...Kd,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(n,{slots:o,emit:l}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=er(n,u),{hasLink:f,linkAttrs:m,linkClass:g,linkTag:x,navigateOnClick:A}=gu(),v=i.ref(null),C=i.ref(null),k=i.computed(()=>n.clickable===!0||f.value===!0||n.tag==="label"),y=i.computed(()=>n.disable!==!0&&k.value===!0),B=i.computed(()=>"q-item q-item-type row no-wrap"+(n.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(f.value===!0&&n.active===null?g.value:n.active===!0?` q-item--active${n.activeClass!==void 0?` ${n.activeClass}`:""}`:"")+(n.disable===!0?" disabled":"")+(y.value===!0?" q-item--clickable q-link cursor-pointer "+(n.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(n.focused===!0?" q-manual-focusable--focused":""):"")),U=i.computed(()=>n.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+n.insetLevel*56+"px"});function q($){y.value===!0&&(C.value!==null&&($.qKeyEvent!==!0&&document.activeElement===v.value?C.value.focus():document.activeElement===C.value&&v.value.focus()),A($))}function W($){if(y.value===!0&&Mn($,[13,32])===!0){Ke($),$.qKeyEvent=!0;const Z=new MouseEvent("click",$);Z.qKeyEvent=!0,v.value.dispatchEvent(Z)}l("keyup",$)}function D(){const $=Vf(o.default,[]);return y.value===!0&&$.unshift(i.h("div",{class:"q-focus-helper",tabindex:-1,ref:C})),$}return()=>{const $={ref:v,class:B.value,style:U.value,role:"listitem",onClick:q,onKeyup:W};return y.value===!0?($.tabindex=n.tabindex||"0",Object.assign($,m.value)):k.value===!0&&($["aria-disabled"]="true"),i.h(x.value,$,D())}}}),fh=Ze({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(n,{slots:o}){const l=i.computed(()=>`q-item__section column q-item__section--${n.avatar===!0||n.side===!0||n.thumbnail===!0?"side":"main"}`+(n.top===!0?" q-item__section--top justify-start":" justify-center")+(n.avatar===!0?" q-item__section--avatar":"")+(n.thumbnail===!0?" q-item__section--thumbnail":"")+(n.noWrap===!0?" q-item__section--nowrap":""));return()=>i.h("div",{class:l.value},pt(o.default))}}),dh=Ze({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(n,{slots:o}){const l=i.computed(()=>parseInt(n.lines,10)),u=i.computed(()=>"q-item__label"+(n.overline===!0?" q-item__label--overline text-overline":"")+(n.caption===!0?" q-item__label--caption text-caption":"")+(n.header===!0?" q-item__label--header":"")+(l.value===1?" ellipsis":"")),s=i.computed(()=>n.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>i.h("div",{style:s.value,class:u.value},pt(o.default))}});function hh(){if(window.getSelection!==void 0){const n=window.getSelection();n.empty!==void 0?n.empty():n.removeAllRanges!==void 0&&(n.removeAllRanges(),bl.is.mobile!==!0&&n.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const mh={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function gh({showing:n,avoidEmit:o,configureAnchorEl:l}){const{props:u,proxy:s,emit:f}=i.getCurrentInstance(),m=i.ref(null);let g=null;function x(y){return m.value===null?!1:y===void 0||y.touches===void 0||y.touches.length<=1}const A={};l===void 0&&(Object.assign(A,{hide(y){s.hide(y)},toggle(y){s.toggle(y),y.qAnchorHandled=!0},toggleKey(y){Mn(y,13)===!0&&A.toggle(y)},contextClick(y){s.hide(y),It(y),i.nextTick(()=>{s.show(y),y.qAnchorHandled=!0})},prevent:It,mobileTouch(y){if(A.mobileCleanup(y),x(y)!==!0)return;s.hide(y),m.value.classList.add("non-selectable");const B=y.target;kl(A,"anchor",[[B,"touchmove","mobileCleanup","passive"],[B,"touchend","mobileCleanup","passive"],[B,"touchcancel","mobileCleanup","passive"],[m.value,"contextmenu","prevent","notPassive"]]),g=setTimeout(()=>{g=null,s.show(y),y.qAnchorHandled=!0},300)},mobileCleanup(y){m.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),n.value===!0&&y!==void 0&&hh()}}),l=function(y=u.contextMenu){if(u.noParentEvent===!0||m.value===null)return;let B;y===!0?s.$q.platform.is.mobile===!0?B=[[m.value,"touchstart","mobileTouch","passive"]]:B=[[m.value,"mousedown","hide","passive"],[m.value,"contextmenu","contextClick","notPassive"]]:B=[[m.value,"click","toggle","passive"],[m.value,"keyup","toggleKey","passive"]],kl(A,"anchor",B)});function v(){Na(A,"anchor")}function C(y){for(m.value=y;m.value.classList.contains("q-anchor--skip");)m.value=m.value.parentNode;l()}function k(){if(u.target===!1||u.target===""||s.$el.parentNode===null)m.value=null;else if(u.target===!0)C(s.$el.parentNode);else{let y=u.target;if(typeof u.target=="string")try{y=document.querySelector(u.target)}catch{y=void 0}y!=null?(m.value=y.$el||y,l()):(m.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return i.watch(()=>u.contextMenu,y=>{m.value!==null&&(v(),l(y))}),i.watch(()=>u.target,()=>{m.value!==null&&v(),k()}),i.watch(()=>u.noParentEvent,y=>{m.value!==null&&(y===!0?v():l())}),i.onMounted(()=>{k(),o!==!0&&u.modelValue===!0&&m.value===null&&f("update:modelValue",!1)}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:m,canShow:x,anchorEvents:A}}function ph(n,o){const l=i.ref(null);let u;function s(g,x){const A=`${x!==void 0?"add":"remove"}EventListener`,v=x!==void 0?x:u;g!==window&&g[A]("scroll",v,st.passive),window[A]("scroll",v,st.passive),u=x}function f(){l.value!==null&&(s(l.value),l.value=null)}const m=i.watch(()=>n.noParentEvent,()=>{l.value!==null&&(f(),o())});return i.onBeforeUnmount(m),{localScrollTarget:l,unconfigureScrollTarget:f,changeScrollEvent:s}}const _u={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},bu=["beforeShow","show","beforeHide","hide"];function yu({showing:n,canShow:o,hideOnRouteChange:l,handleShow:u,handleHide:s,processOnMount:f}){const m=i.getCurrentInstance(),{props:g,emit:x,proxy:A}=m;let v;function C(D){n.value===!0?B(D):k(D)}function k(D){if(g.disable===!0||D!==void 0&&D.qAnchorHandled===!0||o!==void 0&&o(D)!==!0)return;const $=g["onUpdate:modelValue"]!==void 0;$===!0&&(x("update:modelValue",!0),v=D,i.nextTick(()=>{v===D&&(v=void 0)})),(g.modelValue===null||$===!1)&&y(D)}function y(D){n.value!==!0&&(n.value=!0,x("beforeShow",D),u!==void 0?u(D):x("show",D))}function B(D){if(g.disable===!0)return;const $=g["onUpdate:modelValue"]!==void 0;$===!0&&(x("update:modelValue",!1),v=D,i.nextTick(()=>{v===D&&(v=void 0)})),(g.modelValue===null||$===!1)&&U(D)}function U(D){n.value!==!1&&(n.value=!1,x("beforeHide",D),s!==void 0?s(D):x("hide",D))}function q(D){g.disable===!0&&D===!0?g["onUpdate:modelValue"]!==void 0&&x("update:modelValue",!1):D===!0!==n.value&&(D===!0?y:U)(v)}i.watch(()=>g.modelValue,q),l!==void 0&&qa(m)===!0&&i.watch(()=>A.$route.fullPath,()=>{l.value===!0&&n.value===!0&&B()}),f===!0&&i.onMounted(()=>{q(g.modelValue)});const W={show:k,hide:B,toggle:C};return Object.assign(A,W),W}const wu={};let vh=1,_h=document.body;function bh(n,o){const l=document.createElement("div");if(l.id=o!==void 0?`q-portal--${o}--${vh++}`:n,wu.globalNodes!==void 0){const u=wu.globalNodes.class;u!==void 0&&(l.className=u)}return _h.appendChild(l),l}function yh(n){n.remove()}const Br=[];function wh(n,o){do{if(n.$options.name==="QMenu"){if(n.hide(o),n.$props.separateClosePopup===!0)return Sl(n)}else if(n.__qPortal===!0){const l=Sl(n);return l!==void 0&&l.$options.name==="QPopupProxy"?(n.hide(o),l):n}n=Sl(n)}while(n!=null)}const Sh=Ze({name:"QPortal",setup(n,{slots:o}){return()=>o.default()}});function xh(n){for(n=n.parent;n!=null;){if(n.type.name==="QGlobalDialog")return!0;if(n.type.name==="QDialog"||n.type.name==="QMenu")return!1;n=n.parent}return!1}function Su(n,o,l,u){const s=i.ref(!1),f=i.ref(!1);let m=null;const g={},x=u==="dialog"&&xh(n);function A(C){if(C===!0){eu(g),f.value=!0;return}f.value=!1,s.value===!1&&(x===!1&&m===null&&(m=bh(!1,u)),s.value=!0,Br.push(n.proxy),Sd(g))}function v(C){if(f.value=!1,C!==!0)return;eu(g),s.value=!1;const k=Br.indexOf(n.proxy);k!==-1&&Br.splice(k,1),m!==null&&(yh(m),m=null)}return i.onUnmounted(()=>{v(!0)}),n.proxy.__qPortal=!0,ni(n.proxy,"contentEl",()=>o.value),{showPortal:A,hidePortal:v,portalIsActive:s,portalIsAccessible:f,renderPortal:()=>x===!0?l():s.value===!0?[i.h(i.Teleport,{to:m},i.h(Sh,l))]:void 0}}const xu={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Cu(n,o=()=>{},l=()=>{}){return{transitionProps:i.computed(()=>{const u=`q-transition--${n.transitionShow||o()}`,s=`q-transition--${n.transitionHide||l()}`;return{appear:!0,enterFromClass:`${u}-enter-from`,enterActiveClass:`${u}-enter-active`,enterToClass:`${u}-enter-to`,leaveFromClass:`${s}-leave-from`,leaveActiveClass:`${s}-leave-active`,leaveToClass:`${s}-leave-to`}}),transitionStyle:i.computed(()=>`--q-transition-duration: ${n.transitionDuration}ms`)}}function ku(){let n;const o=i.getCurrentInstance();function l(){n=void 0}return i.onDeactivated(l),i.onBeforeUnmount(l),{removeTick:l,registerTick(u){n=u,i.nextTick(()=>{n===u&&(Er(o)===!1&&n(),n=void 0)})}}}const Ch=[Element,String],kh=[null,document,document.body,document.scrollingElement,document.documentElement];function Eh(n,o){let l=$d(o);if(l===void 0){if(n==null)return window;l=n.closest(".scroll,.scroll-y,.overflow-auto")}return kh.includes(l)?window:l}function Th(n){return n===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:n.scrollTop}function Ah(n){return n===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:n.scrollLeft}let hi;function Bh(){if(hi!==void 0)return hi;const n=document.createElement("p"),o=document.createElement("div");Ll(n,{width:"100%",height:"200px"}),Ll(o,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),o.appendChild(n),document.body.appendChild(o);const l=n.offsetWidth;o.style.overflow="scroll";let u=n.offsetWidth;return l===u&&(u=o.clientWidth),o.remove(),hi=l-u,hi}function Rh(n,o=!0){return!n||n.nodeType!==Node.ELEMENT_NODE?!1:o?n.scrollHeight>n.clientHeight&&(n.classList.contains("scroll")||n.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(n)["overflow-y"])):n.scrollWidth>n.clientWidth&&(n.classList.contains("scroll")||n.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(n)["overflow-x"]))}const On=[];let lr;function qh(n){lr=n.keyCode===27}function Mh(){lr===!0&&(lr=!1)}function Oh(n){lr===!0&&(lr=!1,Mn(n,27)===!0&&On[On.length-1](n))}function Eu(n){window[n]("keydown",qh),window[n]("blur",Mh),window[n]("keyup",Oh),lr=!1}function Tu(n){gt.is.desktop===!0&&(On.push(n),On.length===1&&Eu("addEventListener"))}function mi(n){const o=On.indexOf(n);o!==-1&&(On.splice(o,1),On.length===0&&Eu("removeEventListener"))}const Ln=[];function Au(n){Ln[Ln.length-1](n)}function Bu(n){gt.is.desktop===!0&&(Ln.push(n),Ln.length===1&&document.body.addEventListener("focusin",Au))}function Il(n){const o=Ln.indexOf(n);o!==-1&&(Ln.splice(o,1),Ln.length===0&&document.body.removeEventListener("focusin",Au))}const{notPassiveCapture:gi}=st,In=[];function pi(n){const o=n.target;if(o===void 0||o.nodeType===8||o.classList.contains("no-pointer-events")===!0)return;let l=Br.length-1;for(;l>=0;){const u=Br[l].$;if(u.type.name==="QTooltip"){l--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;l--}for(let u=In.length-1;u>=0;u--){const s=In[u];if((s.anchorEl.value===null||s.anchorEl.value.contains(o)===!1)&&(o===document.body||s.innerRef.value!==null&&s.innerRef.value.contains(o)===!1))n.qClickOutside=!0,s.onClickOutside(n);else return}}function Lh(n){In.push(n),In.length===1&&(document.addEventListener("mousedown",pi,gi),document.addEventListener("touchstart",pi,gi))}function Ru(n){const o=In.findIndex(l=>l===n);o!==-1&&(In.splice(o,1),In.length===0&&(document.removeEventListener("mousedown",pi,gi),document.removeEventListener("touchstart",pi,gi)))}let qu,Mu;function Ou(n){const o=n.split(" ");return o.length!==2?!1:["top","center","bottom"].includes(o[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(o[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Ih(n){return n?!(n.length!==2||typeof n[0]!="number"||typeof n[1]!="number"):!0}const Vl={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(n=>{Vl[`${n}#ltr`]=n,Vl[`${n}#rtl`]=n});function Lu(n,o){const l=n.split(" ");return{vertical:l[0],horizontal:Vl[`${l[1]}#${o===!0?"rtl":"ltr"}`]}}function Vh(n,o){let{top:l,left:u,right:s,bottom:f,width:m,height:g}=n.getBoundingClientRect();return o!==void 0&&(l-=o[1],u-=o[0],f+=o[1],s+=o[0],m+=o[0],g+=o[1]),{top:l,bottom:f,height:g,left:u,right:s,width:m,middle:u+(s-u)/2,center:l+(f-l)/2}}function Ph(n,o,l){let{top:u,left:s}=n.getBoundingClientRect();return u+=o.top,s+=o.left,l!==void 0&&(u+=l[1],s+=l[0]),{top:u,bottom:u+1,height:1,left:s,right:s+1,width:1,middle:s,center:u}}function $h(n,o){return{top:0,center:o/2,bottom:o,left:0,middle:n/2,right:n}}function Iu(n,o,l,u){return{top:n[l.vertical]-o[u.vertical],left:n[l.horizontal]-o[u.horizontal]}}function Vu(n,o=0){if(n.targetEl===null||n.anchorEl===null||o>5)return;if(n.targetEl.offsetHeight===0||n.targetEl.offsetWidth===0){setTimeout(()=>{Vu(n,o+1)},10);return}const{targetEl:l,offset:u,anchorEl:s,anchorOrigin:f,selfOrigin:m,absoluteOffset:g,fit:x,cover:A,maxHeight:v,maxWidth:C}=n;if(gt.is.ios===!0&&window.visualViewport!==void 0){const Q=document.body.style,{offsetLeft:G,offsetTop:le}=window.visualViewport;G!==qu&&(Q.setProperty("--q-pe-left",G+"px"),qu=G),le!==Mu&&(Q.setProperty("--q-pe-top",le+"px"),Mu=le)}const{scrollLeft:k,scrollTop:y}=l,B=g===void 0?Vh(s,A===!0?[0,0]:u):Ph(s,g,u);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:C||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:U,offsetHeight:q}=l,{elWidth:W,elHeight:D}=x===!0||A===!0?{elWidth:Math.max(B.width,U),elHeight:A===!0?Math.max(B.height,q):q}:{elWidth:U,elHeight:q};let $={maxWidth:C,maxHeight:v};(x===!0||A===!0)&&($.minWidth=B.width+"px",A===!0&&($.minHeight=B.height+"px")),Object.assign(l.style,$);const Z=$h(W,D);let K=Iu(B,Z,f,m);if(g===void 0||u===void 0)Pl(K,B,Z,f,m);else{const{top:Q,left:G}=K;Pl(K,B,Z,f,m);let le=!1;if(K.top!==Q){le=!0;const V=2*u[1];B.center=B.top-=V,B.bottom-=V+2}if(K.left!==G){le=!0;const V=2*u[0];B.middle=B.left-=V,B.right-=V+2}le===!0&&(K=Iu(B,Z,f,m),Pl(K,B,Z,f,m))}$={top:K.top+"px",left:K.left+"px"},K.maxHeight!==void 0&&($.maxHeight=K.maxHeight+"px",B.height>K.maxHeight&&($.minHeight=$.maxHeight)),K.maxWidth!==void 0&&($.maxWidth=K.maxWidth+"px",B.width>K.maxWidth&&($.minWidth=$.maxWidth)),Object.assign(l.style,$),l.scrollTop!==y&&(l.scrollTop=y),l.scrollLeft!==k&&(l.scrollLeft=k)}function Pl(n,o,l,u,s){const f=l.bottom,m=l.right,g=Bh(),x=window.innerHeight-g,A=document.body.clientWidth;if(n.top<0||n.top+f>x)if(s.vertical==="center")n.top=o[u.vertical]>x/2?Math.max(0,x-f):0,n.maxHeight=Math.min(f,x);else if(o[u.vertical]>x/2){const v=Math.min(x,u.vertical==="center"?o.center:u.vertical===s.vertical?o.bottom:o.top);n.maxHeight=Math.min(f,v),n.top=Math.max(0,v-f)}else n.top=Math.max(0,u.vertical==="center"?o.center:u.vertical===s.vertical?o.top:o.bottom),n.maxHeight=Math.min(f,x-n.top);if(n.left<0||n.left+m>A)if(n.maxWidth=Math.min(m,A),s.horizontal==="middle")n.left=o[u.horizontal]>A/2?Math.max(0,A-m):0;else if(o[u.horizontal]>A/2){const v=Math.min(A,u.horizontal==="middle"?o.middle:u.horizontal===s.horizontal?o.right:o.left);n.maxWidth=Math.min(m,v),n.left=Math.max(0,v-n.maxWidth)}else n.left=Math.max(0,u.horizontal==="middle"?o.middle:u.horizontal===s.horizontal?o.left:o.right),n.maxWidth=Math.min(m,A-n.left)}const Fh=Ze({name:"QMenu",inheritAttrs:!1,props:{...mh,..._u,...Jn,...xu,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Ou},self:{type:String,validator:Ou},offset:{type:Array,validator:Ih},scrollTarget:Ch,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...bu,"click","escapeKey"],setup(n,{slots:o,emit:l,attrs:u}){let s=null,f,m,g;const x=i.getCurrentInstance(),{proxy:A}=x,{$q:v}=A,C=i.ref(null),k=i.ref(!1),y=i.computed(()=>n.persistent!==!0&&n.noRouteDismiss!==!0),B=er(n,v),{registerTick:U,removeTick:q}=ku(),{registerTimeout:W}=li(),{transitionProps:D,transitionStyle:$}=Cu(n),{localScrollTarget:Z,changeScrollEvent:K,unconfigureScrollTarget:Q}=ph(n,ie),{anchorEl:G,canShow:le}=gh({showing:k}),{hide:V}=yu({showing:k,canShow:le,handleShow:ge,handleHide:R,hideOnRouteChange:y,processOnMount:!0}),{showPortal:N,hidePortal:X,renderPortal:E}=Su(x,C,Ee,"menu"),te={anchorEl:G,innerRef:C,onClickOutside(Y){if(n.persistent!==!0&&k.value===!0)return V(Y),(Y.type==="touchstart"||Y.target.classList.contains("q-dialog__backdrop"))&&Ke(Y),!0}},P=i.computed(()=>Lu(n.anchor||(n.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=i.computed(()=>n.cover===!0?P.value:Lu(n.self||"top start",v.lang.rtl)),ue=i.computed(()=>(n.square===!0?" q-menu--square":"")+(B.value===!0?" q-menu--dark q-dark":"")),fe=i.computed(()=>n.autoClose===!0?{onClick:ve}:{}),H=i.computed(()=>k.value===!0&&n.persistent!==!0);i.watch(H,Y=>{Y===!0?(Tu(z),Lh(te)):(mi(z),Ru(te))});function se(){si(()=>{let Y=C.value;Y&&Y.contains(document.activeElement)!==!0&&(Y=Y.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Y.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Y.querySelector("[autofocus], [data-autofocus]")||Y,Y.focus({preventScroll:!0}))})}function ge(Y){if(s=n.noRefocus===!1?document.activeElement:null,Bu(_e),N(),ie(),f=void 0,Y!==void 0&&(n.touchPosition||n.contextMenu)){const $e=Fa(Y);if($e.left!==void 0){const{top:lt,left:Pt}=G.value.getBoundingClientRect();f={left:$e.left-Pt,top:$e.top-lt}}}m===void 0&&(m=i.watch(()=>v.screen.width+"|"+v.screen.height+"|"+n.self+"|"+n.anchor+"|"+v.lang.rtl,ne)),n.noFocus!==!0&&document.activeElement.blur(),U(()=>{ne(),n.noFocus!==!0&&se()}),W(()=>{v.platform.is.ios===!0&&(g=n.autoClose,C.value.click()),ne(),N(!0),l("show",Y)},n.transitionDuration)}function R(Y){q(),X(),T(!0),s!==null&&(Y===void 0||Y.qClickOutside!==!0)&&(((Y&&Y.type.indexOf("key")===0?s.closest('[tabindex]:not([tabindex^="-"])'):void 0)||s).focus(),s=null),W(()=>{X(!0),l("hide",Y)},n.transitionDuration)}function T(Y){f=void 0,m!==void 0&&(m(),m=void 0),(Y===!0||k.value===!0)&&(Il(_e),Q(),Ru(te),mi(z)),Y!==!0&&(s=null)}function ie(){(G.value!==null||n.scrollTarget!==void 0)&&(Z.value=Eh(G.value,n.scrollTarget),K(Z.value,ne))}function ve(Y){g!==!0?(wh(A,Y),l("click",Y)):g=!1}function _e(Y){H.value===!0&&n.noFocus!==!0&&ou(C.value,Y.target)!==!0&&se()}function z(Y){l("escapeKey"),V(Y)}function ne(){Vu({targetEl:C.value,offset:n.offset,anchorEl:G.value,anchorOrigin:P.value,selfOrigin:ae.value,absoluteOffset:f,fit:n.fit,cover:n.cover,maxHeight:n.maxHeight,maxWidth:n.maxWidth})}function Ee(){return i.h(i.Transition,D.value,()=>k.value===!0?i.h("div",{role:"menu",...u,ref:C,tabindex:-1,class:["q-menu q-position-engine scroll"+ue.value,u.class],style:[u.style,$.value],...fe.value},pt(o.default)):null)}return i.onBeforeUnmount(T),Object.assign(A,{focus:se,updatePosition:ne}),E}});function Nh(n,o,l){function u(){}return i.onBeforeUnmount(()=>{n.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Rr=0,$l,Fl,qr,Nl=!1,Pu,$u,Fu,Vn=null;function Dh(n){zh(n)&&Ke(n)}function zh(n){if(n.target===document.body||n.target.classList.contains("q-layout__backdrop"))return!0;const o=ud(n),l=n.shiftKey&&!n.deltaX,u=!l&&Math.abs(n.deltaX)<=Math.abs(n.deltaY),s=l||u?n.deltaY:n.deltaX;for(let f=0;f<o.length;f++){const m=o[f];if(Rh(m,u))return u?s<0&&m.scrollTop===0?!0:s>0&&m.scrollTop+m.clientHeight===m.scrollHeight:s<0&&m.scrollLeft===0?!0:s>0&&m.scrollLeft+m.clientWidth===m.scrollWidth}return!0}function Nu(n){n.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function vi(n){Nl!==!0&&(Nl=!0,requestAnimationFrame(()=>{Nl=!1;const{height:o}=n.target,{clientHeight:l,scrollTop:u}=document.scrollingElement;(qr===void 0||o!==window.innerHeight)&&(qr=l-o,document.scrollingElement.scrollTop=u),u>qr&&(document.scrollingElement.scrollTop-=Math.ceil((u-qr)/8))}))}function Du(n){const o=document.body,l=window.visualViewport!==void 0;if(n==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(o);$l=Ah(window),Fl=Th(window),Pu=o.style.left,$u=o.style.top,Fu=window.location.href,o.style.left=`-${$l}px`,o.style.top=`-${Fl}px`,s!=="hidden"&&(s==="scroll"||o.scrollWidth>window.innerWidth)&&o.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||o.scrollHeight>window.innerHeight)&&o.classList.add("q-body--force-scrollbar-y"),o.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,gt.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",vi,st.passiveCapture),window.visualViewport.addEventListener("scroll",vi,st.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Nu,st.passiveCapture))}gt.is.desktop===!0&&gt.is.mac===!0&&window[`${n}EventListener`]("wheel",Dh,st.notPassive),n==="remove"&&(gt.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",vi,st.passiveCapture),window.visualViewport.removeEventListener("scroll",vi,st.passiveCapture)):window.removeEventListener("scroll",Nu,st.passiveCapture)),o.classList.remove("q-body--prevent-scroll"),o.classList.remove("q-body--force-scrollbar-x"),o.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,o.style.left=Pu,o.style.top=$u,window.location.href===Fu&&window.scrollTo($l,Fl),qr=void 0)}function Uh(n){let o="add";if(n===!0){if(Rr++,Vn!==null){clearTimeout(Vn),Vn=null;return}if(Rr>1)return}else{if(Rr===0||(Rr--,Rr>0))return;if(o="remove",gt.is.ios===!0&&gt.is.nativeMobile===!0){Vn!==null&&clearTimeout(Vn),Vn=setTimeout(()=>{Du(o),Vn=null},100);return}}Du(o)}function Wh(){let n;return{preventBodyScroll(o){o!==n&&(n!==void 0||o===!0)&&(n=o,Uh(o))}}}let _i=0;const Hh={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},zu={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Kh=Ze({name:"QDialog",inheritAttrs:!1,props:{..._u,...xu,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:n=>["standard","top","bottom","left","right"].includes(n)}},emits:[...bu,"shake","click","escapeKey"],setup(n,{slots:o,emit:l,attrs:u}){const s=i.getCurrentInstance(),f=i.ref(null),m=i.ref(!1),g=i.ref(!1);let x=null,A=null,v,C;const k=i.computed(()=>n.persistent!==!0&&n.noRouteDismiss!==!0&&n.seamless!==!0),{preventBodyScroll:y}=Wh(),{registerTimeout:B}=li(),{registerTick:U,removeTick:q}=ku(),{transitionProps:W,transitionStyle:D}=Cu(n,()=>zu[n.position][0],()=>zu[n.position][1]),$=i.computed(()=>D.value+(n.backdropFilter!==void 0?`;backdrop-filter:${n.backdropFilter};-webkit-backdrop-filter:${n.backdropFilter}`:"")),{showPortal:Z,hidePortal:K,portalIsAccessible:Q,renderPortal:G}=Su(s,f,_e,"dialog"),{hide:le}=yu({showing:m,hideOnRouteChange:k,handleShow:ae,handleHide:ue,processOnMount:!0}),{addToHistory:V,removeFromHistory:N}=Nh(m),X=i.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${n.maximized===!0?"maximized":"minimized"} q-dialog__inner--${n.position} ${Hh[n.position]}`+(g.value===!0?" q-dialog__inner--animating":"")+(n.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(n.fullHeight===!0?" q-dialog__inner--fullheight":"")+(n.square===!0?" q-dialog__inner--square":"")),E=i.computed(()=>m.value===!0&&n.seamless!==!0),te=i.computed(()=>n.autoClose===!0?{onClick:T}:{}),P=i.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${E.value===!0?"modal":"seamless"}`,u.class]);i.watch(()=>n.maximized,z=>{m.value===!0&&R(z)}),i.watch(E,z=>{y(z),z===!0?(Bu(ve),Tu(se)):(Il(ve),mi(se))});function ae(z){V(),A=n.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,R(n.maximized),Z(),g.value=!0,n.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),U(fe)):q(),B(()=>{if(s.proxy.$q.platform.is.ios===!0){if(n.seamless!==!0&&document.activeElement){const{top:ne,bottom:Ee}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,$e=window.visualViewport!==void 0?window.visualViewport.height:Y;ne>0&&Ee>$e/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-$e,Ee>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+Ee-$e/2))),document.activeElement.scrollIntoView()}C=!0,f.value.click(),C=!1}Z(!0),g.value=!1,l("show",z)},n.transitionDuration)}function ue(z){q(),N(),ge(!0),g.value=!0,K(),A!==null&&(((z&&z.type.indexOf("key")===0?A.closest('[tabindex]:not([tabindex^="-"])'):void 0)||A).focus(),A=null),B(()=>{K(!0),g.value=!1,l("hide",z)},n.transitionDuration)}function fe(z){si(()=>{let ne=f.value;if(ne!==null){if(z!==void 0){const Ee=ne.querySelector(z);if(Ee!==null){Ee.focus({preventScroll:!0});return}}ne.contains(document.activeElement)!==!0&&(ne=ne.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ne.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ne.querySelector("[autofocus], [data-autofocus]")||ne,ne.focus({preventScroll:!0}))}})}function H(z){z&&typeof z.focus=="function"?z.focus({preventScroll:!0}):fe(),l("shake");const ne=f.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),x!==null&&clearTimeout(x),x=setTimeout(()=>{x=null,f.value!==null&&(ne.classList.remove("q-animate--scale"),fe())},170))}function se(){n.seamless!==!0&&(n.persistent===!0||n.noEscDismiss===!0?n.maximized!==!0&&n.noShake!==!0&&H():(l("escapeKey"),le()))}function ge(z){x!==null&&(clearTimeout(x),x=null),(z===!0||m.value===!0)&&(R(!1),n.seamless!==!0&&(y(!1),Il(ve),mi(se))),z!==!0&&(A=null)}function R(z){z===!0?v!==!0&&(_i<1&&document.body.classList.add("q-body--dialog"),_i++,v=!0):v===!0&&(_i<2&&document.body.classList.remove("q-body--dialog"),_i--,v=!1)}function T(z){C!==!0&&(le(z),l("click",z))}function ie(z){n.persistent!==!0&&n.noBackdropDismiss!==!0?le(z):n.noShake!==!0&&H()}function ve(z){n.allowFocusOutside!==!0&&Q.value===!0&&ou(f.value,z.target)!==!0&&fe('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:fe,shake:H,__updateRefocusTarget(z){A=z||null}}),i.onBeforeUnmount(ge);function _e(){return i.h("div",{role:"dialog","aria-modal":E.value===!0?"true":"false",...u,class:P.value},[i.h(i.Transition,{name:"q-transition--fade",appear:!0},()=>E.value===!0?i.h("div",{class:"q-dialog__backdrop fixed-full",style:$.value,"aria-hidden":"true",tabindex:-1,onClick:ie}):null),i.h(i.Transition,W.value,()=>m.value===!0?i.h("div",{ref:f,class:X.value,style:D.value,tabindex:-1,...te.value},pt(o.default)):null)])}return G}});let bi=!1;{const n=document.createElement("div");n.setAttribute("dir","rtl"),Object.assign(n.style,{width:"1px",height:"1px",overflow:"auto"});const o=document.createElement("div");Object.assign(o.style,{width:"1000px",height:"1px"}),document.body.appendChild(n),n.appendChild(o),n.scrollLeft=-1e3,bi=n.scrollLeft>=0,n.remove()}const Vt=1e3,Gh=["start","center","end","start-force","center-force","end-force"],Uu=Array.prototype.filter,Qh=window.getComputedStyle(document.body).overflowAnchor===void 0?ad:function(n,o){n!==null&&(n._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(n._qOverflowAnimationFrame),n._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(n===null)return;n._qOverflowAnimationFrame=void 0;const l=n.children||[];Uu.call(l,s=>s.dataset&&s.dataset.qVsAnchor!==void 0).forEach(s=>{delete s.dataset.qVsAnchor});const u=l[o];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function or(n,o){return n+o}function Dl(n,o,l,u,s,f,m,g){const x=n===window?document.scrollingElement||document.documentElement:n,A=s===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-m-g,scrollMaxSize:0,offsetStart:-m,offsetEnd:-g};if(s===!0?(n===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=x.scrollLeft,v.scrollViewSize+=x.clientWidth),v.scrollMaxSize=x.scrollWidth,f===!0&&(v.scrollStart=(bi===!0?v.scrollMaxSize-v.scrollViewSize:0)-v.scrollStart)):(n===window?(v.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,v.scrollViewSize+=document.documentElement.clientHeight):(v.scrollStart=x.scrollTop,v.scrollViewSize+=x.clientHeight),v.scrollMaxSize=x.scrollHeight),l!==null)for(let C=l.previousElementSibling;C!==null;C=C.previousElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=C[A]);if(u!==null)for(let C=u.nextElementSibling;C!==null;C=C.nextElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=C[A]);if(o!==n){const C=x.getBoundingClientRect(),k=o.getBoundingClientRect();s===!0?(v.offsetStart+=k.left-C.left,v.offsetEnd-=k.width):(v.offsetStart+=k.top-C.top,v.offsetEnd-=k.height),n!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function Wu(n,o,l,u){o==="end"&&(o=(n===window?document.body:n)[l===!0?"scrollWidth":"scrollHeight"]),n===window?l===!0?(u===!0&&(o=(bi===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-o),window.scrollTo(o,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,o):l===!0?(u===!0&&(o=(bi===!0?n.scrollWidth-n.offsetWidth:0)-o),n.scrollLeft=o):n.scrollTop=o}function Mr(n,o,l,u){if(l>=u)return 0;const s=o.length,f=Math.floor(l/Vt),m=Math.floor((u-1)/Vt)+1;let g=n.slice(f,m).reduce(or,0);return l%Vt!==0&&(g-=o.slice(f*Vt,l).reduce(or,0)),u%Vt!==0&&u!==s&&(g-=o.slice(u,m*Vt).reduce(or,0)),g}const Hu={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]}};function Yh({virtualScrollLength:n,getVirtualScrollTarget:o,getVirtualScrollEl:l,virtualScrollItemSizeComputed:u}){const s=i.getCurrentInstance(),{props:f,emit:m,proxy:g}=s,{$q:x}=g;let A,v,C,k=[],y;const B=i.ref(0),U=i.ref(0),q=i.ref({}),W=i.ref(null),D=i.ref(null),$=i.ref(null),Z=i.ref({from:0,to:0}),K=i.computed(()=>f.tableColspan!==void 0?f.tableColspan:100);u===void 0&&(u=i.computed(()=>f.virtualScrollItemSize));const Q=i.computed(()=>u.value+";"+f.virtualScrollHorizontal),G=i.computed(()=>Q.value+";"+f.virtualScrollSliceRatioBefore+";"+f.virtualScrollSliceRatioAfter);i.watch(G,()=>{ue()}),i.watch(Q,le);function le(){ae(v,!0)}function V(R){ae(R===void 0?v:R)}function N(R,T){const ie=o();if(ie==null||ie.nodeType===8)return;const ve=Dl(ie,l(),W.value,D.value,f.virtualScrollHorizontal,x.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd);C!==ve.scrollViewSize&&ue(ve.scrollViewSize),E(ie,ve,Math.min(n.value-1,Math.max(0,parseInt(R,10)||0)),0,Gh.indexOf(T)!==-1?T:v!==-1&&R>v?"end":"start")}function X(){const R=o();if(R==null||R.nodeType===8)return;const T=Dl(R,l(),W.value,D.value,f.virtualScrollHorizontal,x.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd),ie=n.value-1,ve=T.scrollMaxSize-T.offsetStart-T.offsetEnd-U.value;if(A===T.scrollStart)return;if(T.scrollMaxSize<=0){E(R,T,0,0);return}C!==T.scrollViewSize&&ue(T.scrollViewSize),te(Z.value.from);const _e=Math.floor(T.scrollMaxSize-Math.max(T.scrollViewSize,T.offsetEnd)-Math.min(y[ie],T.scrollViewSize/2));if(_e>0&&Math.ceil(T.scrollStart)>=_e){E(R,T,ie,T.scrollMaxSize-T.offsetEnd-k.reduce(or,0));return}let z=0,ne=T.scrollStart-T.offsetStart,Ee=ne;if(ne<=ve&&ne+T.scrollViewSize>=B.value)ne-=B.value,z=Z.value.from,Ee=ne;else for(let Y=0;ne>=k[Y]&&z<ie;Y++)ne-=k[Y],z+=Vt;for(;ne>0&&z<ie;)ne-=y[z],ne>-T.scrollViewSize?(z++,Ee=ne):Ee=y[z]+ne;E(R,T,z,Ee)}function E(R,T,ie,ve,_e){const z=typeof _e=="string"&&_e.indexOf("-force")!==-1,ne=z===!0?_e.replace("-force",""):_e,Ee=ne!==void 0?ne:"start";let Y=Math.max(0,ie-q.value[Ee]),$e=Y+q.value.total;$e>n.value&&($e=n.value,Y=Math.max(0,$e-q.value.total)),A=T.scrollStart;const lt=Y!==Z.value.from||$e!==Z.value.to;if(lt===!1&&ne===void 0){H(ie);return}const{activeElement:Pt}=document,_t=$.value;lt===!0&&_t!==null&&_t!==Pt&&_t.contains(Pt)===!0&&(_t.addEventListener("focusout",P),setTimeout(()=>{_t!==null&&_t.removeEventListener("focusout",P)})),Qh(_t,ie-Y);const nt=ne!==void 0?y.slice(Y,ie).reduce(or,0):0;if(lt===!0){const bt=$e>=Z.value.from&&Y<=Z.value.to?Z.value.to:$e;Z.value={from:Y,to:bt},B.value=Mr(k,y,0,Y),U.value=Mr(k,y,$e,n.value),requestAnimationFrame(()=>{Z.value.to!==$e&&A===T.scrollStart&&(Z.value={from:Z.value.from,to:$e},U.value=Mr(k,y,$e,n.value))})}requestAnimationFrame(()=>{if(A!==T.scrollStart)return;lt===!0&&te(Y);const bt=y.slice(Y,ie).reduce(or,0),Jt=bt+T.offsetStart+B.value,ct=Jt+y[ie];let gn=Jt+ve;if(ne!==void 0){const Or=bt-nt,$t=T.scrollStart+Or;gn=z!==!0&&$t<Jt&&ct<$t+T.scrollViewSize?$t:ne==="end"?ct-T.scrollViewSize:Jt-(ne==="start"?0:Math.round((T.scrollViewSize-y[ie])/2))}A=gn,Wu(R,gn,f.virtualScrollHorizontal,x.lang.rtl),H(ie)})}function te(R){const T=$.value;if(T){const ie=Uu.call(T.children,Y=>Y.classList&&Y.classList.contains("q-virtual-scroll--skip")===!1),ve=ie.length,_e=f.virtualScrollHorizontal===!0?Y=>Y.getBoundingClientRect().width:Y=>Y.offsetHeight;let z=R,ne,Ee;for(let Y=0;Y<ve;){for(ne=_e(ie[Y]),Y++;Y<ve&&ie[Y].classList.contains("q-virtual-scroll--with-prev")===!0;)ne+=_e(ie[Y]),Y++;Ee=ne-y[z],Ee!==0&&(y[z]+=Ee,k[Math.floor(z/Vt)]+=Ee),z++}}}function P(){$.value!==null&&$.value!==void 0&&$.value.focus()}function ae(R,T){const ie=1*u.value;(T===!0||Array.isArray(y)===!1)&&(y=[]);const ve=y.length;y.length=n.value;for(let z=n.value-1;z>=ve;z--)y[z]=ie;const _e=Math.floor((n.value-1)/Vt);k=[];for(let z=0;z<=_e;z++){let ne=0;const Ee=Math.min((z+1)*Vt,n.value);for(let Y=z*Vt;Y<Ee;Y++)ne+=y[Y];k.push(ne)}v=-1,A=void 0,B.value=Mr(k,y,0,Z.value.from),U.value=Mr(k,y,Z.value.to,n.value),R>=0?(te(Z.value.from),i.nextTick(()=>{N(R)})):se()}function ue(R){if(R===void 0&&typeof window<"u"){const ne=o();ne!=null&&ne.nodeType!==8&&(R=Dl(ne,l(),W.value,D.value,f.virtualScrollHorizontal,x.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd).scrollViewSize)}C=R;const T=parseFloat(f.virtualScrollSliceRatioBefore)||0,ie=parseFloat(f.virtualScrollSliceRatioAfter)||0,ve=1+T+ie,_e=R===void 0||R<=0?1:Math.ceil(R/u.value),z=Math.max(1,_e,Math.ceil((f.virtualScrollSliceSize>0?f.virtualScrollSliceSize:10)/ve));q.value={total:Math.ceil(z*ve),start:Math.ceil(z*T),center:Math.ceil(z*(.5+T)),end:Math.ceil(z*(1+T)),view:_e}}function fe(R,T){const ie=f.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+ie]:u.value+"px"};return[R==="tbody"?i.h(R,{class:"q-virtual-scroll__padding",key:"before",ref:W},[i.h("tr",[i.h("td",{style:{[ie]:`${B.value}px`,...ve},colspan:K.value})])]):i.h(R,{class:"q-virtual-scroll__padding",key:"before",ref:W,style:{[ie]:`${B.value}px`,...ve}}),i.h(R,{class:"q-virtual-scroll__content",key:"content",ref:$,tabindex:-1},T.flat()),R==="tbody"?i.h(R,{class:"q-virtual-scroll__padding",key:"after",ref:D},[i.h("tr",[i.h("td",{style:{[ie]:`${U.value}px`,...ve},colspan:K.value})])]):i.h(R,{class:"q-virtual-scroll__padding",key:"after",ref:D,style:{[ie]:`${U.value}px`,...ve}})]}function H(R){v!==R&&(f.onVirtualScroll!==void 0&&m("virtualScroll",{index:R,from:Z.value.from,to:Z.value.to-1,direction:R<v?"decrease":"increase",ref:g}),v=R)}ue();const se=ja(X,x.platform.is.ios===!0?120:35);i.onBeforeMount(()=>{ue()});let ge=!1;return i.onDeactivated(()=>{ge=!0}),i.onActivated(()=>{if(ge!==!0)return;const R=o();A!==void 0&&R!==void 0&&R!==null&&R.nodeType!==8?Wu(R,A,f.virtualScrollHorizontal,x.lang.rtl):N(v)}),i.onBeforeUnmount(()=>{se.cancel()}),Object.assign(g,{scrollTo:N,reset:le,refresh:V}),{virtualScrollSliceRange:Z,virtualScrollSliceSizeComputed:q,setVirtualScrollSize:ue,onVirtualScrollEvt:se,localResetVirtualScroll:ae,padVirtualScroll:fe,scrollTo:N,reset:le,refresh:V}}function Ku(n,o,l){if(l<=o)return o;const u=l-o+1;let s=o+(n-o)%u;return s<o&&(s=u+s),s===0?0:s}const Gu=n=>["add","add-unique","toggle"].includes(n),Zh=".*+?^${}()|[]\\",Xh=Object.keys(ci),Qu=Ze({name:"QSelect",inheritAttrs:!1,props:{...Hu,...Cl,...ci,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Gu},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:n=>["default","menu","dialog"].includes(n),default:"default"},virtualScrollItemSize:Hu.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Bl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(n,{slots:o,emit:l}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f=i.ref(!1),m=i.ref(!1),g=i.ref(-1),x=i.ref(""),A=i.ref(!1),v=i.ref(!1);let C=null,k=null,y,B,U,q=null,W,D,$,Z;const K=i.ref(null),Q=i.ref(null),G=i.ref(null),le=i.ref(null),V=i.ref(null),N=$a(n),X=iu(Ei),E=i.computed(()=>Array.isArray(n.options)?n.options.length:0),te=i.computed(()=>n.virtualScrollItemSize===void 0?n.optionsDense===!0?24:48:n.virtualScrollItemSize),{virtualScrollSliceRange:P,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:ue,padVirtualScroll:fe,onVirtualScrollEvt:H,scrollTo:se,setVirtualScrollSize:ge}=Yh({virtualScrollLength:E,getVirtualScrollTarget:Ci,getVirtualScrollEl:Ir,virtualScrollItemSizeComputed:te}),R=Rl(),T=i.computed(()=>{const _=n.mapOptions===!0&&n.multiple!==!0,ee=n.modelValue!==void 0&&(n.modelValue!==null||_===!0)?n.multiple===!0&&Array.isArray(n.modelValue)?n.modelValue:[n.modelValue]:[];if(n.mapOptions===!0&&Array.isArray(n.options)===!0){const j=n.mapOptions===!0&&y!==void 0?y:[],me=ee.map(qe=>Lr(qe,j));return n.modelValue===null&&_===!0?me.filter(qe=>qe!==null):me}return ee}),ie=i.computed(()=>{const _={};return Xh.forEach(ee=>{const j=n[ee];j!==void 0&&(_[ee]=j)}),_}),ve=i.computed(()=>n.optionsDark===null?R.isDark.value:n.optionsDark),_e=i.computed(()=>Ar(T.value)),z=i.computed(()=>{let _="q-field__input q-placeholder col";return n.hideSelected===!0||T.value.length===0?[_,n.inputClass]:(_+=" q-field__input--padding",n.inputClass===void 0?_:[_,n.inputClass])}),ne=i.computed(()=>(n.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(n.popupContentClass?" "+n.popupContentClass:"")),Ee=i.computed(()=>E.value===0),Y=i.computed(()=>T.value.map(_=>Ge.value(_)).join(", ")),$e=i.computed(()=>n.displayValue!==void 0?n.displayValue:Y.value),lt=i.computed(()=>n.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Pt=i.computed(()=>n.displayValueHtml===!0||n.displayValue===void 0&&(n.optionsHtml===!0||T.value.some(lt.value))),_t=i.computed(()=>R.focused.value===!0?n.tabindex:-1),nt=i.computed(()=>{const _={tabindex:n.tabindex,role:"combobox","aria-label":n.label,"aria-readonly":n.readonly===!0?"true":"false","aria-autocomplete":n.useInput===!0?"list":"none","aria-expanded":f.value===!0?"true":"false","aria-controls":`${R.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${R.targetUid.value}_${g.value}`),_}),bt=i.computed(()=>({id:`${R.targetUid.value}_lb`,role:"listbox","aria-multiselectable":n.multiple===!0?"true":"false"})),Jt=i.computed(()=>T.value.map((_,ee)=>({index:ee,opt:_,html:lt.value(_),selected:!0,removeAtIndex:pn,toggleOption:Nt,tabindex:_t.value}))),ct=i.computed(()=>{if(E.value===0)return[];const{from:_,to:ee}=P.value;return n.options.slice(_,ee).map((j,me)=>{const qe=Ft.value(j)===!0,Be=Fn(j)===!0,He=_+me,Ie={clickable:!0,active:Be,activeClass:$t.value,manualFocus:!0,focused:!1,disable:qe,tabindex:-1,dense:n.optionsDense,dark:ve.value,role:"option","aria-selected":Be===!0?"true":"false",id:`${R.targetUid.value}_${He}`,onClick:()=>{Nt(j)}};return qe!==!0&&(g.value===He&&(Ie.focused=!0),s.platform.is.desktop===!0&&(Ie.onMousemove=()=>{f.value===!0&&Gt(He)})),{index:He,opt:j,html:lt.value(j),label:Ge.value(j),selected:Ie.active,focused:Ie.focused,toggleOption:Nt,setOptionIndex:Gt,itemProps:Ie}})}),gn=i.computed(()=>n.dropdownIcon!==void 0?n.dropdownIcon:s.iconSet.arrow.dropdown),Or=i.computed(()=>n.optionsCover===!1&&n.outlined!==!0&&n.standout!==!0&&n.borderless!==!0&&n.rounded!==!0),$t=i.computed(()=>n.optionsSelectedClass!==void 0?n.optionsSelectedClass:n.color!==void 0?`text-${n.color}`:""),Ne=i.computed(()=>$n(n.optionValue,"value")),Ge=i.computed(()=>$n(n.optionLabel,"label")),Ft=i.computed(()=>$n(n.optionDisable,"disable")),ar=i.computed(()=>T.value.map(_=>Ne.value(_))),Pn=i.computed(()=>{const _={onInput:Ei,onChange:X,onKeydown:xi,onKeyup:wi,onKeypress:Si,onFocus:sr,onClick(ee){B===!0&&Kt(ee)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=X,_});i.watch(T,_=>{y=_,n.useInput===!0&&n.fillInput===!0&&n.multiple!==!0&&R.innerLoading.value!==!0&&(m.value!==!0&&f.value!==!0||_e.value!==!0)&&(U!==!0&&nn(),(m.value===!0||f.value===!0)&&_n(""))},{immediate:!0}),i.watch(()=>n.fillInput,nn),i.watch(f,$r),i.watch(E,Jl);function yi(_){return n.emitValue===!0?Ne.value(_):_}function en(_){if(_!==-1&&_<T.value.length)if(n.multiple===!0){const ee=n.modelValue.slice();l("remove",{index:_,value:ee.splice(_,1)[0]}),l("update:modelValue",ee)}else l("update:modelValue",null)}function pn(_){en(_),R.focus()}function ur(_,ee){const j=yi(_);if(n.multiple!==!0){n.fillInput===!0&&Dn(Ge.value(_),!0,!0),l("update:modelValue",j);return}if(T.value.length===0){l("add",{index:0,value:j}),l("update:modelValue",n.multiple===!0?[j]:j);return}if(ee===!0&&Fn(_)===!0||n.maxValues!==void 0&&n.modelValue.length>=n.maxValues)return;const me=n.modelValue.slice();l("add",{index:me.length,value:j}),me.push(j),l("update:modelValue",me)}function Nt(_,ee){if(R.editable.value!==!0||_===void 0||Ft.value(_)===!0)return;const j=Ne.value(_);if(n.multiple!==!0){ee!==!0&&(Dn(n.fillInput===!0?Ge.value(_):"",!0,!0),tn()),Q.value!==null&&Q.value.focus(),(T.value.length===0||jt(Ne.value(T.value[0]),j)!==!0)&&l("update:modelValue",n.emitValue===!0?j:_);return}if((B!==!0||A.value===!0)&&R.focus(),sr(),T.value.length===0){const Be=n.emitValue===!0?j:_;l("add",{index:0,value:Be}),l("update:modelValue",n.multiple===!0?[Be]:Be);return}const me=n.modelValue.slice(),qe=ar.value.findIndex(Be=>jt(Be,j));if(qe!==-1)l("remove",{index:qe,value:me.splice(qe,1)[0]});else{if(n.maxValues!==void 0&&me.length>=n.maxValues)return;const Be=n.emitValue===!0?j:_;l("add",{index:me.length,value:Be}),me.push(Be)}l("update:modelValue",me)}function Gt(_){if(s.platform.is.desktop!==!0)return;const ee=_!==-1&&_<E.value?_:-1;g.value!==ee&&(g.value=ee)}function vn(_=1,ee){if(f.value===!0){let j=g.value;do j=Ku(j+_,-1,E.value-1);while(j!==-1&&j!==g.value&&Ft.value(n.options[j])===!0);g.value!==j&&(Gt(j),se(j),ee!==!0&&n.useInput===!0&&n.fillInput===!0&&Nn(j>=0?Ge.value(n.options[j]):W,!0))}}function Lr(_,ee){const j=me=>jt(Ne.value(me),_);return n.options.find(j)||ee.find(j)||_}function $n(_,ee){const j=_!==void 0?_:ee;return typeof j=="function"?j:me=>me!==null&&typeof me=="object"&&j in me?me[j]:me}function Fn(_){const ee=Ne.value(_);return ar.value.find(j=>jt(j,ee))!==void 0}function sr(_){n.useInput===!0&&Q.value!==null&&(_===void 0||Q.value===_.target&&_.target.value===Y.value)&&Q.value.select()}function cr(_){Mn(_,27)===!0&&f.value===!0&&(Kt(_),tn(),nn()),l("keyup",_)}function wi(_){const{value:ee}=_.target;if(_.keyCode!==void 0){cr(_);return}if(_.target.value="",C!==null&&(clearTimeout(C),C=null),k!==null&&(clearTimeout(k),k=null),nn(),typeof ee=="string"&&ee.length!==0){const j=ee.toLocaleLowerCase(),me=Be=>{const He=n.options.find(Ie=>Be.value(Ie).toLocaleLowerCase()===j);return He===void 0?!1:(T.value.indexOf(He)===-1?Nt(He):tn(),!0)},qe=Be=>{me(Ne)!==!0&&(me(Ge)===!0||Be===!0||_n(ee,!0,()=>qe(!0)))};qe()}else R.clearValue(_)}function Si(_){l("keypress",_)}function xi(_){if(l("keydown",_),Ml(_)===!0)return;const ee=x.value.length!==0&&(n.newValueMode!==void 0||n.onNewValue!==void 0),j=_.shiftKey!==!0&&n.multiple!==!0&&(g.value!==-1||ee===!0);if(_.keyCode===27){It(_);return}if(_.keyCode===9&&j===!1){bn();return}if(_.target===void 0||_.target.id!==R.targetUid.value||R.editable.value!==!0)return;if(_.keyCode===40&&R.innerLoading.value!==!0&&f.value===!1){Ke(_),yn();return}if(_.keyCode===8&&(n.useChips===!0||n.clearable===!0)&&n.hideSelected!==!0&&x.value.length===0){n.multiple===!0&&Array.isArray(n.modelValue)===!0?en(n.modelValue.length-1):n.multiple!==!0&&n.modelValue!==null&&l("update:modelValue",null);return}(_.keyCode===35||_.keyCode===36)&&(typeof x.value!="string"||x.value.length===0)&&(Ke(_),g.value=-1,vn(_.keyCode===36?1:-1,n.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(Ke(_),g.value=Math.max(-1,Math.min(E.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),vn(_.keyCode===33?1:-1,n.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ke(_),vn(_.keyCode===38?-1:1,n.multiple));const me=E.value;if(($===void 0||Z<Date.now())&&($=""),me>0&&n.useInput!==!0&&_.key!==void 0&&_.key.length===1&&_.altKey===!1&&_.ctrlKey===!1&&_.metaKey===!1&&(_.keyCode!==32||$.length!==0)){f.value!==!0&&yn(_);const qe=_.key.toLocaleLowerCase(),Be=$.length===1&&$[0]===qe;Z=Date.now()+1500,Be===!1&&(Ke(_),$+=qe);const He=new RegExp("^"+$.split("").map(fr=>Zh.indexOf(fr)!==-1?"\\"+fr:fr).join(".*"),"i");let Ie=g.value;if(Be===!0||Ie<0||He.test(Ge.value(n.options[Ie]))!==!0)do Ie=Ku(Ie+1,-1,me-1);while(Ie!==g.value&&(Ft.value(n.options[Ie])===!0||He.test(Ge.value(n.options[Ie]))!==!0));g.value!==Ie&&i.nextTick(()=>{Gt(Ie),se(Ie),Ie>=0&&n.useInput===!0&&n.fillInput===!0&&Nn(Ge.value(n.options[Ie]),!0)});return}if(!(_.keyCode!==13&&(_.keyCode!==32||n.useInput===!0||$!=="")&&(_.keyCode!==9||j===!1))){if(_.keyCode!==9&&Ke(_),g.value!==-1&&g.value<me){Nt(n.options[g.value]);return}if(ee===!0){const qe=(Be,He)=>{if(He){if(Gu(He)!==!0)return}else He=n.newValueMode;if(Dn("",n.multiple!==!0,!0),Be==null)return;(He==="toggle"?Nt:ur)(Be,He==="add-unique"),n.multiple!==!0&&(Q.value!==null&&Q.value.focus(),tn())};if(n.onNewValue!==void 0?l("newValue",x.value,qe):qe(x.value),n.multiple!==!0)return}f.value===!0?bn():R.innerLoading.value!==!0&&yn()}}function Ir(){return B===!0?V.value:G.value!==null&&G.value.contentEl!==null?G.value.contentEl:void 0}function Ci(){return Ir()}function Wl(){return n.hideSelected===!0?[]:o["selected-item"]!==void 0?Jt.value.map(_=>o["selected-item"](_)).slice():o.selected!==void 0?[].concat(o.selected()):n.useChips===!0?Jt.value.map((_,ee)=>i.h(sh,{key:"option-"+ee,removable:R.editable.value===!0&&Ft.value(_.opt)!==!0,dense:!0,textColor:n.color,tabindex:_t.value,onRemove(){_.removeAtIndex(ee)}},()=>i.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:Ge.value(_.opt)}))):[i.h("span",{[Pt.value===!0?"innerHTML":"textContent"]:$e.value})]}function ki(){if(Ee.value===!0)return o["no-option"]!==void 0?o["no-option"]({inputValue:x.value}):void 0;const _=o.option!==void 0?o.option:j=>i.h(ch,{key:j.index,...j.itemProps},()=>i.h(fh,()=>i.h(dh,()=>i.h("span",{[j.html===!0?"innerHTML":"textContent"]:j.label}))));let ee=fe("div",ct.value.map(_));return o["before-options"]!==void 0&&(ee=o["before-options"]().concat(ee)),Rn(o["after-options"],ee)}function Hl(_,ee){const j=ee===!0?{...nt.value,...R.splitAttrs.attributes.value}:void 0,me={ref:ee===!0?Q:void 0,key:"i_t",class:z.value,style:n.inputStyle,value:x.value!==void 0?x.value:"",type:"search",...j,id:ee===!0?R.targetUid.value:void 0,maxlength:n.maxlength,autocomplete:n.autocomplete,"data-autofocus":_===!0||n.autofocus===!0||void 0,disabled:n.disable===!0,readonly:n.readonly===!0,...Pn.value};return _!==!0&&B===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),i.h("input",me)}function Ei(_){C!==null&&(clearTimeout(C),C=null),k!==null&&(clearTimeout(k),k=null),!(_&&_.target&&_.target.qComposing===!0)&&(Nn(_.target.value||""),U=!0,W=x.value,R.focused.value!==!0&&(B!==!0||A.value===!0)&&R.focus(),n.onFilter!==void 0&&(C=setTimeout(()=>{C=null,_n(x.value)},n.inputDebounce)))}function Nn(_,ee){x.value!==_&&(x.value=_,ee===!0||n.inputDebounce===0||n.inputDebounce==="0"?l("inputValue",_):k=setTimeout(()=>{k=null,l("inputValue",_)},n.inputDebounce))}function Dn(_,ee,j){U=j!==!0,n.useInput===!0&&(Nn(_,!0),(ee===!0||j!==!0)&&(W=_),ee!==!0&&_n(_))}function _n(_,ee,j){if(n.onFilter===void 0||ee!==!0&&R.focused.value!==!0)return;R.innerLoading.value===!0?l("filterAbort"):(R.innerLoading.value=!0,v.value=!0),_!==""&&n.multiple!==!0&&T.value.length!==0&&U!==!0&&_===Ge.value(T.value[0])&&(_="");const me=setTimeout(()=>{f.value===!0&&(f.value=!1)},10);q!==null&&clearTimeout(q),q=me,l("filter",_,(qe,Be)=>{(ee===!0||R.focused.value===!0)&&q===me&&(clearTimeout(q),typeof qe=="function"&&qe(),v.value=!1,i.nextTick(()=>{R.innerLoading.value=!1,R.editable.value===!0&&(ee===!0?f.value===!0&&tn():f.value===!0?$r(!0):f.value=!0),typeof Be=="function"&&i.nextTick(()=>{Be(u)}),typeof j=="function"&&i.nextTick(()=>{j(u)})}))},()=>{R.focused.value===!0&&q===me&&(clearTimeout(q),R.innerLoading.value=!1,v.value=!1),f.value===!0&&(f.value=!1)})}function Kl(){return i.h(Fh,{ref:G,class:ne.value,style:n.popupContentStyle,modelValue:f.value,fit:n.menuShrink!==!0,cover:n.optionsCover===!0&&Ee.value!==!0&&n.useInput!==!0,anchor:n.menuAnchor,self:n.menuSelf,offset:n.menuOffset,dark:ve.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:n.popupNoRouteDismiss,square:Or.value,transitionShow:n.transitionShow,transitionHide:n.transitionHide,transitionDuration:n.transitionDuration,separateClosePopup:!0,...bt.value,onScrollPassive:H,onBeforeShow:Ai,onBeforeHide:Vr,onShow:Gl},ki)}function Vr(_){Bi(_),bn()}function Gl(){ge()}function Pr(_){Kt(_),Q.value!==null&&Q.value.focus(),A.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Ql(_){Kt(_),i.nextTick(()=>{A.value=!1})}function Yl(){const _=[i.h(ah,{class:`col-auto ${R.fieldClass.value}`,...ie.value,for:R.targetUid.value,dark:ve.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:x.value.length!==0,...R.splitAttrs.listeners.value,onFocus:Pr,onBlur:Ql},{...o,rawControl:()=>R.getControl(!0),before:void 0,after:void 0})];return f.value===!0&&_.push(i.h("div",{ref:V,class:ne.value+" scroll",style:n.popupContentStyle,...bt.value,onClick:It,onScrollPassive:H},ki())),i.h(Kh,{ref:le,modelValue:m.value,position:n.useInput===!0?"top":void 0,transitionShow:D,transitionHide:n.transitionHide,transitionDuration:n.transitionDuration,noRouteDismiss:n.popupNoRouteDismiss,onBeforeShow:Ai,onBeforeHide:Zl,onHide:Xl,onShow:jl},()=>i.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(A.value===!0?" q-select__dialog--focused":"")},_))}function Zl(_){Bi(_),le.value!==null&&le.value.__updateRefocusTarget(R.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),R.focused.value=!1}function Xl(_){tn(),R.focused.value===!1&&l("blur",_),nn()}function jl(){const _=document.activeElement;(_===null||_.id!==R.targetUid.value)&&Q.value!==null&&Q.value!==_&&Q.value.focus(),ge()}function bn(){m.value!==!0&&(g.value=-1,f.value===!0&&(f.value=!1),R.focused.value===!1&&(q!==null&&(clearTimeout(q),q=null),R.innerLoading.value===!0&&(l("filterAbort"),R.innerLoading.value=!1,v.value=!1)))}function yn(_){R.editable.value===!0&&(B===!0?(R.onControlFocusin(_),m.value=!0,i.nextTick(()=>{R.focus()})):R.focus(),n.onFilter!==void 0?_n(x.value):(Ee.value!==!0||o["no-option"]!==void 0)&&(f.value=!0))}function tn(){m.value=!1,bn()}function nn(){n.useInput===!0&&Dn(n.multiple!==!0&&n.fillInput===!0&&T.value.length!==0&&Ge.value(T.value[0])||"",!0,!0)}function $r(_){let ee=-1;if(_===!0){if(T.value.length!==0){const j=Ne.value(T.value[0]);ee=n.options.findIndex(me=>jt(Ne.value(me),j))}ue(ee)}Gt(ee)}function Jl(_,ee){f.value===!0&&R.innerLoading.value===!1&&(ue(-1,!0),i.nextTick(()=>{f.value===!0&&R.innerLoading.value===!1&&(_>ee?ue():$r(!0))}))}function Ti(){m.value===!1&&G.value!==null&&G.value.updatePosition()}function Ai(_){_!==void 0&&Kt(_),l("popupShow",_),R.hasPopupOpen=!0,R.onControlFocusin(_)}function Bi(_){_!==void 0&&Kt(_),l("popupHide",_),R.hasPopupOpen=!1,R.onControlFocusout(_)}function Ri(){B=s.platform.is.mobile!==!0&&n.behavior!=="dialog"?!1:n.behavior!=="menu"&&(n.useInput===!0?o["no-option"]!==void 0||n.onFilter!==void 0||Ee.value===!1:!0),D=s.platform.is.ios===!0&&B===!0&&n.useInput===!0?"fade":n.transitionShow}return i.onBeforeUpdate(Ri),i.onUpdated(Ti),Ri(),i.onBeforeUnmount(()=>{C!==null&&clearTimeout(C),k!==null&&clearTimeout(k)}),Object.assign(u,{showPopup:yn,hidePopup:tn,removeAtIndex:en,add:ur,toggleOption:Nt,getOptionIndex:()=>g.value,setOptionIndex:Gt,moveOptionSelection:vn,filter:_n,updateMenuPosition:Ti,updateInputValue:Dn,isOptionSelected:Fn,getEmittingOptionValue:yi,isOptionDisabled:(..._)=>Ft.value.apply(null,_)===!0,getOptionValue:(..._)=>Ne.value.apply(null,_),getOptionLabel:(..._)=>Ge.value.apply(null,_)}),Object.assign(R,{innerValue:T,fieldClass:i.computed(()=>`q-select q-field--auto-height q-select--with${n.useInput!==!0?"out":""}-input q-select--with${n.useChips!==!0?"out":""}-chips q-select--${n.multiple===!0?"multiple":"single"}`),inputRef:K,targetRef:Q,hasValue:_e,showPopup:yn,floatingLabel:i.computed(()=>n.hideSelected!==!0&&_e.value===!0||typeof x.value=="number"||x.value.length!==0||Ar(n.displayValue)),getControlChild:()=>{if(R.editable.value!==!1&&(m.value===!0||Ee.value!==!0||o["no-option"]!==void 0))return B===!0?Yl():Kl();R.hasPopupOpen===!0&&(R.hasPopupOpen=!1)},controlEvents:{onFocusin(_){R.onControlFocusin(_)},onFocusout(_){R.onControlFocusout(_,()=>{nn(),bn()})},onClick(_){if(It(_),B!==!0&&f.value===!0){bn(),Q.value!==null&&Q.value.focus();return}yn(_)}},getControl:_=>{const ee=Wl(),j=_===!0||m.value!==!0||B!==!0;if(n.useInput===!0)ee.push(Hl(_,j));else if(R.editable.value===!0){const qe=j===!0?nt.value:void 0;ee.push(i.h("input",{ref:j===!0?Q:void 0,key:"d_t",class:"q-select__focus-target",id:j===!0?R.targetUid.value:void 0,value:$e.value,readonly:!0,"data-autofocus":_===!0||n.autofocus===!0||void 0,...qe,onKeydown:xi,onKeyup:cr,onKeypress:Si})),j===!0&&typeof n.autocomplete=="string"&&n.autocomplete.length!==0&&ee.push(i.h("input",{class:"q-select__autocomplete-input",autocomplete:n.autocomplete,tabindex:-1,onKeyup:wi}))}if(N.value!==void 0&&n.disable!==!0&&ar.value.length!==0){const qe=ar.value.map(Be=>i.h("option",{value:Be,selected:!0}));ee.push(i.h("select",{class:"hidden",name:N.value,multiple:n.multiple},qe))}const me=n.useInput===!0||j!==!0?void 0:R.splitAttrs.attributes.value;return i.h("div",{class:"q-field__native row items-center",...me,...R.splitAttrs.listeners.value},ee)},getInnerAppend:()=>n.loading!==!0&&v.value!==!0&&n.hideDropdownIcon!==!0?[i.h(vt,{class:"q-select__dropdown-icon"+(f.value===!0?" rotate-180":""),name:gn.value})]:null}),ql(R)}}),jh=mn(i.defineComponent({__name:"SelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=i.ref([]),l=i.useModel(n,"modelValue"),u=n,s=i.ref(!1),f=i.computed(()=>u.control.customParams),m=i.ref([]),g=i.computed(()=>{var C;return((C=f.value)==null?void 0:C.collection)||null}),x=i.computed(()=>g.value?m.value:u.control.options),A=jn();i.watch(g,C=>{if(!C)return;const k=A.getCollection(g.value);if(k){m.value=k;return}s.value=!0},{immediate:!0});function v(C,k){if(C===""){k(()=>{o.value=Pe.cloneDeep(x.value)});return}k(()=>{const y=C.toLowerCase();o.value=(x.value||[]).filter(B=>B.toLowerCase().includes(y))})}return(C,k)=>{const y=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[C.control.label?(i.openBlock(),i.createBlock(y,{key:0,label:C.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(di,{class:"q-card win-card row items-center q-px-md"},{default:i.withCtx(()=>[i.createVNode(Qu,{borderless:"",label:C.control.label,modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=B=>l.value=B),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:v,options:o.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-fa1749f7"]]),Jh={class:"text-center",style:{width:"100%"}},em={class:"text-center text-weight-medium"},tm={class:"question-title"},nm=i.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(n){return(o,l)=>(i.openBlock(),i.createElementBlock("div",Jh,[i.createElementVNode("div",em,i.toDisplayString(o.formGroup.order+1)+"/"+i.toDisplayString(o.stepsCount),1),i.createElementVNode("div",tm,i.toDisplayString(o.formGroup.title||""),1)]))}});function rm(){return i.inject(pd)}function Yu(n,o){const{maxControlsPerGroup:l,notifyValidations:u}={...Sf,...o||{}},s=jn(),f=i.computed(()=>s.formSteps[n]),m=i.ref([]),g=i.ref([]),x=(y,B)=>{s.setControlValue(n,y);const U=m.value.find(D=>D.id===B);U&&(g.value=Cf(U));const q=v(y),W=C(y);(q||W)&&A()};function A(){const y=f.value.controls,B=[];Af(y).forEach(q=>{const W=q.controls;if(W.every($=>!vl.includes($.controlType))){B.push(q);return}let D={...q,controls:[]};for(const $ of W)if(vl.includes($.controlType)){B.push(D),D={...D,controls:[]};const Z=Ef(q,$,l);B.push(...Z)}else D.controls.push($)}),m.value=Pe.orderBy(B,"order").map(q=>({...q,id:q.controls.map(W=>W.id).join("-")})).filter(q=>q.controls.some(W=>W.visible)).map((q,W)=>({...q,order:W,controls:q.controls.filter(D=>D.visible)}))}function v({id:y,value:B}){let U=!1;const W=f.value.controls.filter(D=>{var $;return(($=D.conditions)==null?void 0:$.some(Z=>Z.id===y))||!1});if(W!=null&&W.length)return W.forEach(({id:D,conditions:$,visible:Z})=>{const K=$.every(Q=>{const{value:G,operator:le}=Q;return{"==":B===G,"!=":B!==G,">":B>G,"<":B<G}[le]||!1});Z!==K&&(s.setControlVisibility(n,D,K),U=!0)}),U}function C({id:y,value:B}){const U=Number(B||0);let q=!1;const D=f.value.controls.filter($=>{var Z;return $.controlType==="dynamic_array"&&((Z=$.itemsLength)==null?void 0:Z.controlId)===y});if(D!=null&&D.length)return D.forEach(({id:$,itemsLength:Z})=>{(Z==null?void 0:Z.value)!==U&&(s.setControlItemsLength(n,$,U),q=!0)}),q}const{notify:k}=rm();return i.watch(g,y=>{y.length&&(u&&k({message:y[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),i.watch(f,()=>{A()},{immediate:!0}),{model:m,errorMessages:g,rebuildModel:A,onControlValueUpdate:x}}const im={key:0,style:{height:"100%"}},lm={class:"q-py-sm"},om={class:"form-steps-container"},am={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},um={class:"controls-container",style:{height:"100%"}},sm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},cm=mn(i.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(n){const o=n,l=jn(),{model:u,onControlValueUpdate:s}=Yu(o.index),f=i.computed(()=>u.value.length),m=i.ref(0),g=i.computed(()=>u.value[m.value]),x=v=>{const C=Pe.toPairs(Pe.groupBy(v,"row"));return Pe.orderBy(C,([k,y])=>Number(k),"asc").map(([k,y])=>({controls:Pe.orderBy(y,"col","asc")}))};i.watch(m,v=>{const C=v+1===f.value;l.setOnLastSubstep(C)},{immediate:!0});function A(v){return{input_text:Ol,input_number:Ol,checkbox:Ha,switch:fd,select:jh,cards_select:rd}[v]||Ol}return(v,C)=>g.value?(i.openBlock(),i.createElementBlock("div",im,[i.createElementVNode("div",lm,[i.createVNode(nm,{formGroup:g.value,stepsCount:f.value},null,8,["formGroup","stepsCount"])]),i.createElementVNode("div",om,[i.createElementVNode("div",am,[i.createElementVNode("div",um,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),k=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k.id},[m.value===k.order?(i.openBlock(),i.createBlock($f,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:i.withCtx(()=>[i.createElementVNode("div",sm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x(k.controls),(y,B)=>(i.openBlock(),i.createElementBlock("div",{class:"q-mb-xl",key:B},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.controls,(U,q)=>(i.openBlock(),i.createElementBlock("div",{key:q},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(A(U.controlType)),{control:U,modelValue:y.controls[q].value,"onUpdate:modelValue":[W=>y.controls[q].value=W,W=>i.unref(s)(U,k.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):i.createCommentVNode("",!0)],64))),128)),i.createVNode(oh,{currentStep:m.value,stepsCount:f.value,nextDisabled:!g.value.valid,onPrev:C[0]||(C[0]=k=>m.value--),onNext:C[1]||(C[1]=k=>g.value.valid&&m.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),fm={style:{"font-size":"16px","padding-top":"1rem"}},dm={style:{"font-size":"16px","padding-top":"1rem"}},zl=mn(i.defineComponent({__name:"SimpleInput",props:i.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=i.useModel(n,"modelValue"),l=n,u=i.computed(()=>{var s;return(s=l.control.controlType)==null?void 0:s.split("_")[1]});return(s,f)=>(i.openBlock(),i.createBlock(di,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(lu,{borderless:"","reverse-fill-mask":"",modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=m=>o.value=m),label:s.control.label,mask:u.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":u.value==="number"},"input-style":{fontSize:"16px"},rules:s.rules},i.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",fm,i.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",dm,i.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),Zu=i.defineComponent({__name:"SimpleSelect",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=i.useModel(n,"modelValue");return(l,u)=>(i.openBlock(),i.createBlock(di,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(Qu,{borderless:"",label:l.control.label,options:l.control.options,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=s),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),hm={key:0,style:{height:"100%"}},mm={class:"question-title text-center q-py-sm"},gm={class:"form-steps-container bg-grey-1"},pm={class:"form-container",style:{height:"100%"}},vm={class:"row items-center"},_m={class:"col-12 row"},bm=mn(i.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(n){const o=n,{model:l,onControlValueUpdate:u}=Yu(o.index,{notifyValidations:!1});function s(x){return{input_text:zl,input_number:zl,select:Zu,cards_select:Zu,checkbox:Ha}[x]||zl}const f=x=>Pe.orderBy(Pe.toPairs(Pe.groupBy(x,"row")),"row").map(([A,v])=>({controls:Pe.orderBy(v,"col")}));function m(x){return[A=>{var C;let v="";return(C=x.validators)==null||C.some(k=>{const{param:y,validator:B}=k,U=ba[B];return U.fn(Number(y))({...x,value:A})?!1:(v=U.message,!0)}),!v.length||v}]}const g=jn();return i.onMounted(()=>g.setOnLastSubstep(!0)),(x,A)=>i.unref(l)?(i.openBlock(),i.createElementBlock("div",hm,[i.createElementVNode("div",mm,i.toDisplayString(i.unref(l)[0].title),1),i.createElementVNode("div",gm,[i.createElementVNode("div",pm,[i.createElementVNode("div",vm,[i.createElementVNode("div",_m,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f(i.unref(l)[0].controls),(v,C)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(f(i.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:C},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(v.controls,(k,y)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`col-xs-12 col-sm q-pa-xs ${f(i.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:y},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(k.controlType)),{control:k,modelValue:k.value,"onUpdate:modelValue":[B=>k.value=B,B=>i.unref(u)(k,i.unref(l)[0].id)],rules:m(k)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),Ul=n=>(i.pushScopeId("data-v-ea1ef607"),n=n(),i.popScopeId(),n),ym={class:"buttons-container"},wm={class:"max-container"},Sm={key:0,class:"row checkbox justify-end q-my-sm"},xm={style:{"max-width":"650px"}},Cm=Ul(()=>i.createElementVNode("br",{class:"gt-sm"},null,-1)),km={class:"row justify-between q-my-md q-px-md q-pb-xl"},Em=Ul(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Tm={key:1},Am={key:0,class:"text-black"},Bm=Ul(()=>i.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),Rm={key:1,class:"text-black"},qm=mn(i.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(n,{emit:o}){const{nextStep:l,previousStep:u,currentStep:s,stepsCount:f,nextDisabled:m,onLastSubstep:g}=i.toRefs(jn()),x=o,A=i.ref(!1),v=k=>{},C=()=>{s.value===f.value?x("submit"):l.value()};return(k,y)=>(i.openBlock(),i.createElementBlock("div",ym,[i.createElementVNode("div",wm,[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("div",Sm,[i.createElementVNode("div",xm,[i.createVNode(Wa,{color:"info",class:"checkbox",modelValue:A.value,"onUpdate:modelValue":y[1]||(y[1]=B=>A.value=B)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),Cm,i.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),i.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:y[0]||(y[0]=B=>v())},"aquí"),i.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",km,[i.unref(s)>1?(i.openBlock(),i.createBlock(ir,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:i.unref(u),flat:"","no-caps":""},{default:i.withCtx(()=>[Em]),_:1},8,["onClick"])):(i.openBlock(),i.createElementBlock("div",Tm)),i.createElementVNode("div",null,[!i.unref(m)&&i.unref(g)?(i.openBlock(),i.createBlock(ir,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:C,disable:i.unref(s)===i.unref(f)&&!A.value,flat:"","no-caps":""},{default:i.withCtx(()=>[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("span",Am,[i.createTextVNode(" Enviar "),Bm])):(i.openBlock(),i.createElementBlock("span",Rm," Siguiente "))]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),Xu=i.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(n,{emit:o}){const l=n,u=o,s=i.ref(!1),f=jn(),m=x=>Pe.keys(Pe.groupBy(x.controls,"group")).length===1;i.watch(()=>l.forms,x=>{const v=new xa().fromRaw(x);f.setFormSteps(v)},{immediate:!0});function g(){const x=Pe.cloneDeep(f.formSteps),v=new xa().toRaw(x);u("onSubmit",v)}return(x,A)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.renderSlot(x.$slots,"header"),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f).formSteps,(v,C)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C},[m(v)?i.withDirectives((i.openBlock(),i.createBlock(bm,{key:0,index:C},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===C+1]]):i.withDirectives((i.openBlock(),i.createBlock(cm,{key:1,index:C,onOnLastStep:A[0]||(A[0]=k=>s.value=k)},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===C+1]])],64))),128))]),i.createVNode(qm,{onSubmit:g})],64))}}),Mm=i.createElementVNode("img",{src:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/640px-Vue.js_Logo_2.svg.png",alt:""},null,-1),ju=i.defineComponent({__name:"TestUi",setup(n){const o=i.ref("Test W2W UI!");return(l,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[Mm,i.createElementVNode("h1",null,i.toDisplayString(o.value),1)],64))}}),Om={install(n,o){if(o!=null&&o.pinia)n.use(o.pinia);else throw new Error("No se ha encontrado una instancia de pinia");n.component("DynamicForm",Xu),n.component("TestUi",ju)}};Ht.DynamicForm=Xu,Ht.TestUi=ju,Ht.default=Om,Object.defineProperties(Ht,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});