@win2win/shared-ui 0.1.22 → 0.1.24

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,27 +1,27 @@
1
- (function(Nt,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],r):(Nt=typeof globalThis<"u"?globalThis:Nt||self,r(Nt.W2WSharedUi={},Nt.Vue,Nt.Pinia))})(this,function(Nt,r,ka){"use strict";var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},oi={exports:{}};/**
1
+ (function(Nt,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],r):(Nt=typeof globalThis<"u"?globalThis:Nt||self,r(Nt.W2WSharedUi={},Nt.Vue,Nt.Pinia))})(this,function(Nt,r,Na){"use strict";var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},si={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
- */oi.exports,function(t,o){(function(){var l,u="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",g="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",C=500,v="__lodash_placeholder__",k=1,E=2,y=4,T=1,z=2,R=1,H=2,F=4,N=8,Q=16,G=32,j=64,K=128,le=256,V=512,$=30,Z="...",A=800,te=16,P=1,ae=2,ue=3,fe=1/0,W=9007199254740991,se=17976931348623157e292,ge=NaN,B=4294967295,O=B-1,ie=B>>>1,ve=[["ary",K],["bind",R],["bindKey",H],["curry",N],["curryRight",Q],["flip",V],["partial",G],["partialRight",j],["rearg",le]],_e="[object Arguments]",U="[object Array]",ne="[object AsyncFunction]",Ae="[object Boolean]",Y="[object Date]",De="[object DOMException]",lt="[object Error]",Ft="[object Function]",yt="[object GeneratorFunction]",nt="[object Map]",wt="[object Number]",tn="[object Null]",ft="[object Object]",_n="[object Promise]",Dr="[object Proxy]",Ut="[object RegExp]",Fe="[object Set]",je="[object String]",zt="[object Symbol]",hr="[object Undefined]",$n="[object WeakMap]",Li="[object WeakSet]",nn="[object ArrayBuffer]",bn="[object DataView]",mr="[object Float32Array]",Ht="[object Float64Array]",Qt="[object Int8Array]",yn="[object Int16Array]",$r="[object Int32Array]",Fn="[object Uint8Array]",Un="[object Uint8ClampedArray]",gr="[object Uint16Array]",pr="[object Uint32Array]",qi=/\b__p \+= '';/g,Vi=/\b(__p \+=) '' \+/g,Pi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fr=/&(?:amp|lt|gt|quot|#39);/g,Ni=/[&<>"']/g,io=RegExp(Fr.source),Di=RegExp(Ni.source),lo=/<%-([\s\S]+?)%>/g,$i=/<%([\s\S]+?)%>/g,zn=/<%=([\s\S]+?)%>/g,Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wn=/^\w*$/,oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ur=/[\\^$.*+?()[\]{}|]/g,ao=RegExp(Ur.source),zr=/^\s+/,uo=/\s/,so=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,co=/\{\n\/\* \[wrapped with (.+)\] \*/,fo=/,? & /,ho=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Sn=/[()=,{}\[\]\/\s]/,xn=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ln=/\w*$/,Hr=/^[-+]0x[0-9a-f]+$/i,mo=/^0b[01]+$/i,Fi=/^\[object .+?Constructor\]$/,Ui=/^0o[0-7]+$/i,zi=/^(?:0|[1-9]\d*)$/,Hi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_=/($^)/,ee=/['\n\r\u2028\u2029\\]/g,X="\\ud800-\\udfff",me="\\u0300-\\u036f",Ie="\\ufe20-\\ufe2f",Be="\\u20d0-\\u20ff",Ge=me+Ie+Be,Ve="\\u2700-\\u27bf",vr="a-z\\xdf-\\xf6\\xf8-\\xff",qg="\\xac\\xb1\\xd7\\xf7",Vg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pg="\\u2000-\\u206f",Ng=" \\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",Vs="A-Z\\xc0-\\xd6\\xd8-\\xde",Ps="\\ufe0e\\ufe0f",Ns=qg+Vg+Pg+Ng,go="['’]",Dg="["+X+"]",Ds="["+Ns+"]",Wi="["+Ge+"]",$s="\\d+",$g="["+Ve+"]",Fs="["+vr+"]",Us="[^"+X+Ns+$s+Ve+vr+Vs+"]",po="\\ud83c[\\udffb-\\udfff]",Fg="(?:"+Wi+"|"+po+")",zs="[^"+X+"]",vo="(?:\\ud83c[\\udde6-\\uddff]){2}",_o="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="["+Vs+"]",Hs="\\u200d",Ws="(?:"+Fs+"|"+Us+")",Ug="(?:"+_r+"|"+Us+")",Gs="(?:"+go+"(?:d|ll|m|re|s|t|ve))?",Ks="(?:"+go+"(?:D|LL|M|RE|S|T|VE))?",js=Fg+"?",Ys="["+Ps+"]?",zg="(?:"+Hs+"(?:"+[zs,vo,_o].join("|")+")"+Ys+js+")*",Hg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qs=Ys+js+zg,Gg="(?:"+[$g,vo,_o].join("|")+")"+Qs,Kg="(?:"+[zs+Wi+"?",Wi,vo,_o,Dg].join("|")+")",jg=RegExp(go,"g"),Yg=RegExp(Wi,"g"),bo=RegExp(po+"(?="+po+")|"+Kg+Qs,"g"),Qg=RegExp([_r+"?"+Fs+"+"+Gs+"(?="+[Ds,_r,"$"].join("|")+")",Ug+"+"+Ks+"(?="+[Ds,_r+Ws,"$"].join("|")+")",_r+"?"+Ws+"+"+Gs,_r+"+"+Ks,Wg,Hg,$s,Gg].join("|"),"g"),Zg=RegExp("["+Hs+X+Ge+Ps+"]"),Xg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jg=["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"],ep=-1,qe={};qe[mr]=qe[Ht]=qe[Qt]=qe[yn]=qe[$r]=qe[Fn]=qe[Un]=qe[gr]=qe[pr]=!0,qe[_e]=qe[U]=qe[nn]=qe[Ae]=qe[bn]=qe[Y]=qe[lt]=qe[Ft]=qe[nt]=qe[wt]=qe[ft]=qe[Ut]=qe[Fe]=qe[je]=qe[$n]=!1;var Le={};Le[_e]=Le[U]=Le[nn]=Le[bn]=Le[Ae]=Le[Y]=Le[mr]=Le[Ht]=Le[Qt]=Le[yn]=Le[$r]=Le[nt]=Le[wt]=Le[ft]=Le[Ut]=Le[Fe]=Le[je]=Le[zt]=Le[Fn]=Le[Un]=Le[gr]=Le[pr]=!0,Le[lt]=Le[Ft]=Le[$n]=!1;var tp={À:"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"},np={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rp={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ip={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lp=parseFloat,op=parseInt,Zs=typeof xe=="object"&&xe&&xe.Object===Object&&xe,ap=typeof self=="object"&&self&&self.Object===Object&&self,et=Zs||ap||Function("return this")(),yo=o&&!o.nodeType&&o,Wn=yo&&!0&&t&&!t.nodeType&&t,Xs=Wn&&Wn.exports===yo,wo=Xs&&Zs.process,Bt=function(){try{var S=Wn&&Wn.require&&Wn.require("util").types;return S||wo&&wo.binding&&wo.binding("util")}catch{}}(),Js=Bt&&Bt.isArrayBuffer,ec=Bt&&Bt.isDate,tc=Bt&&Bt.isMap,nc=Bt&&Bt.isRegExp,rc=Bt&&Bt.isSet,ic=Bt&&Bt.isTypedArray;function St(S,M,I){switch(I.length){case 0:return S.call(M);case 1:return S.call(M,I[0]);case 2:return S.call(M,I[0],I[1]);case 3:return S.call(M,I[0],I[1],I[2])}return S.apply(M,I)}function up(S,M,I,re){for(var pe=-1,Oe=S==null?0:S.length;++pe<Oe;){var Ye=S[pe];M(re,Ye,I(Ye),S)}return re}function Rt(S,M){for(var I=-1,re=S==null?0:S.length;++I<re&&M(S[I],I,S)!==!1;);return S}function sp(S,M){for(var I=S==null?0:S.length;I--&&M(S[I],I,S)!==!1;);return S}function lc(S,M){for(var I=-1,re=S==null?0:S.length;++I<re;)if(!M(S[I],I,S))return!1;return!0}function Cn(S,M){for(var I=-1,re=S==null?0:S.length,pe=0,Oe=[];++I<re;){var Ye=S[I];M(Ye,I,S)&&(Oe[pe++]=Ye)}return Oe}function Gi(S,M){var I=S==null?0:S.length;return!!I&&br(S,M,0)>-1}function So(S,M,I){for(var re=-1,pe=S==null?0:S.length;++re<pe;)if(I(M,S[re]))return!0;return!1}function Pe(S,M){for(var I=-1,re=S==null?0:S.length,pe=Array(re);++I<re;)pe[I]=M(S[I],I,S);return pe}function kn(S,M){for(var I=-1,re=M.length,pe=S.length;++I<re;)S[pe+I]=M[I];return S}function xo(S,M,I,re){var pe=-1,Oe=S==null?0:S.length;for(re&&Oe&&(I=S[++pe]);++pe<Oe;)I=M(I,S[pe],pe,S);return I}function cp(S,M,I,re){var pe=S==null?0:S.length;for(re&&pe&&(I=S[--pe]);pe--;)I=M(I,S[pe],pe,S);return I}function Co(S,M){for(var I=-1,re=S==null?0:S.length;++I<re;)if(M(S[I],I,S))return!0;return!1}var fp=ko("length");function dp(S){return S.split("")}function hp(S){return S.match(ho)||[]}function oc(S,M,I){var re;return I(S,function(pe,Oe,Ye){if(M(pe,Oe,Ye))return re=Oe,!1}),re}function Ki(S,M,I,re){for(var pe=S.length,Oe=I+(re?1:-1);re?Oe--:++Oe<pe;)if(M(S[Oe],Oe,S))return Oe;return-1}function br(S,M,I){return M===M?kp(S,M,I):Ki(S,ac,I)}function mp(S,M,I,re){for(var pe=I-1,Oe=S.length;++pe<Oe;)if(re(S[pe],M))return pe;return-1}function ac(S){return S!==S}function uc(S,M){var I=S==null?0:S.length;return I?Ao(S,M)/I:ge}function ko(S){return function(M){return M==null?l:M[S]}}function Eo(S){return function(M){return S==null?l:S[M]}}function sc(S,M,I,re,pe){return pe(S,function(Oe,Ye,Me){I=re?(re=!1,Oe):M(I,Oe,Ye,Me)}),I}function gp(S,M){var I=S.length;for(S.sort(M);I--;)S[I]=S[I].value;return S}function Ao(S,M){for(var I,re=-1,pe=S.length;++re<pe;){var Oe=M(S[re]);Oe!==l&&(I=I===l?Oe:I+Oe)}return I}function Oo(S,M){for(var I=-1,re=Array(S);++I<S;)re[I]=M(I);return re}function pp(S,M){return Pe(M,function(I){return[I,S[I]]})}function cc(S){return S&&S.slice(0,mc(S)+1).replace(zr,"")}function xt(S){return function(M){return S(M)}}function To(S,M){return Pe(M,function(I){return S[I]})}function Wr(S,M){return S.has(M)}function fc(S,M){for(var I=-1,re=S.length;++I<re&&br(M,S[I],0)>-1;);return I}function dc(S,M){for(var I=S.length;I--&&br(M,S[I],0)>-1;);return I}function vp(S,M){for(var I=S.length,re=0;I--;)S[I]===M&&++re;return re}var _p=Eo(tp),bp=Eo(np);function yp(S){return"\\"+ip[S]}function wp(S,M){return S==null?l:S[M]}function yr(S){return Zg.test(S)}function Sp(S){return Xg.test(S)}function xp(S){for(var M,I=[];!(M=S.next()).done;)I.push(M.value);return I}function Bo(S){var M=-1,I=Array(S.size);return S.forEach(function(re,pe){I[++M]=[pe,re]}),I}function hc(S,M){return function(I){return S(M(I))}}function En(S,M){for(var I=-1,re=S.length,pe=0,Oe=[];++I<re;){var Ye=S[I];(Ye===M||Ye===v)&&(S[I]=v,Oe[pe++]=I)}return Oe}function ji(S){var M=-1,I=Array(S.size);return S.forEach(function(re){I[++M]=re}),I}function Cp(S){var M=-1,I=Array(S.size);return S.forEach(function(re){I[++M]=[re,re]}),I}function kp(S,M,I){for(var re=I-1,pe=S.length;++re<pe;)if(S[re]===M)return re;return-1}function Ep(S,M,I){for(var re=I+1;re--;)if(S[re]===M)return re;return re}function wr(S){return yr(S)?Op(S):fp(S)}function Wt(S){return yr(S)?Tp(S):dp(S)}function mc(S){for(var M=S.length;M--&&uo.test(S.charAt(M)););return M}var Ap=Eo(rp);function Op(S){for(var M=bo.lastIndex=0;bo.test(S);)++M;return M}function Tp(S){return S.match(bo)||[]}function Bp(S){return S.match(Qg)||[]}var Rp=function S(M){M=M==null?et:Sr.defaults(et.Object(),M,Sr.pick(et,Jg));var I=M.Array,re=M.Date,pe=M.Error,Oe=M.Function,Ye=M.Math,Me=M.Object,Ro=M.RegExp,Ip=M.String,It=M.TypeError,Yi=I.prototype,Mp=Oe.prototype,xr=Me.prototype,Qi=M["__core-js_shared__"],Zi=Mp.toString,Re=xr.hasOwnProperty,Lp=0,gc=function(){var e=/[^.]+$/.exec(Qi&&Qi.keys&&Qi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Xi=xr.toString,qp=Zi.call(Me),Vp=et._,Pp=Ro("^"+Zi.call(Re).replace(Ur,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ji=Xs?M.Buffer:l,An=M.Symbol,el=M.Uint8Array,pc=Ji?Ji.allocUnsafe:l,tl=hc(Me.getPrototypeOf,Me),vc=Me.create,_c=xr.propertyIsEnumerable,nl=Yi.splice,bc=An?An.isConcatSpreadable:l,Gr=An?An.iterator:l,Gn=An?An.toStringTag:l,rl=function(){try{var e=Zn(Me,"defineProperty");return e({},"",{}),e}catch{}}(),Np=M.clearTimeout!==et.clearTimeout&&M.clearTimeout,Dp=re&&re.now!==et.Date.now&&re.now,$p=M.setTimeout!==et.setTimeout&&M.setTimeout,il=Ye.ceil,ll=Ye.floor,Io=Me.getOwnPropertySymbols,Fp=Ji?Ji.isBuffer:l,yc=M.isFinite,Up=Yi.join,zp=hc(Me.keys,Me),Qe=Ye.max,rt=Ye.min,Hp=re.now,Wp=M.parseInt,wc=Ye.random,Gp=Yi.reverse,Mo=Zn(M,"DataView"),Kr=Zn(M,"Map"),Lo=Zn(M,"Promise"),Cr=Zn(M,"Set"),jr=Zn(M,"WeakMap"),Yr=Zn(Me,"create"),ol=jr&&new jr,kr={},Kp=Xn(Mo),jp=Xn(Kr),Yp=Xn(Lo),Qp=Xn(Cr),Zp=Xn(jr),al=An?An.prototype:l,Qr=al?al.valueOf:l,Sc=al?al.toString:l;function d(e){if(Ue(e)&&!be(e)&&!(e instanceof ke)){if(e instanceof Mt)return e;if(Re.call(e,"__wrapped__"))return Cf(e)}return new Mt(e)}var Er=function(){function e(){}return function(n){if(!$e(n))return{};if(vc)return vc(n);e.prototype=n;var i=new e;return e.prototype=l,i}}();function ul(){}function Mt(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=l}d.templateSettings={escape:lo,evaluate:$i,interpolate:zn,variable:"",imports:{_:d}},d.prototype=ul.prototype,d.prototype.constructor=d,Mt.prototype=Er(ul.prototype),Mt.prototype.constructor=Mt;function ke(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Xp(){var e=new ke(this.__wrapped__);return e.__actions__=dt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=dt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=dt(this.__views__),e}function Jp(){if(this.__filtered__){var e=new ke(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function ev(){var e=this.__wrapped__.value(),n=this.__dir__,i=be(e),a=n<0,f=i?e.length:0,m=d0(0,f,this.__views__),p=m.start,b=m.end,x=b-p,L=a?b:p-1,q=this.__iteratees__,D=q.length,J=0,oe=rt(x,this.__takeCount__);if(!i||!a&&f==x&&oe==x)return Gc(e,this.__actions__);var de=[];e:for(;x--&&J<oe;){L+=n;for(var we=-1,he=e[L];++we<D;){var Ce=q[we],Ee=Ce.iteratee,Et=Ce.type,ut=Ee(he);if(Et==ae)he=ut;else if(!ut){if(Et==P)continue e;break e}}de[J++]=he}return de}ke.prototype=Er(ul.prototype),ke.prototype.constructor=ke;function Kn(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function tv(){this.__data__=Yr?Yr(null):{},this.size=0}function nv(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function rv(e){var n=this.__data__;if(Yr){var i=n[e];return i===w?l:i}return Re.call(n,e)?n[e]:l}function iv(e){var n=this.__data__;return Yr?n[e]!==l:Re.call(n,e)}function lv(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Yr&&n===l?w:n,this}Kn.prototype.clear=tv,Kn.prototype.delete=nv,Kn.prototype.get=rv,Kn.prototype.has=iv,Kn.prototype.set=lv;function on(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function ov(){this.__data__=[],this.size=0}function av(e){var n=this.__data__,i=sl(n,e);if(i<0)return!1;var a=n.length-1;return i==a?n.pop():nl.call(n,i,1),--this.size,!0}function uv(e){var n=this.__data__,i=sl(n,e);return i<0?l:n[i][1]}function sv(e){return sl(this.__data__,e)>-1}function cv(e,n){var i=this.__data__,a=sl(i,e);return a<0?(++this.size,i.push([e,n])):i[a][1]=n,this}on.prototype.clear=ov,on.prototype.delete=av,on.prototype.get=uv,on.prototype.has=sv,on.prototype.set=cv;function an(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function fv(){this.size=0,this.__data__={hash:new Kn,map:new(Kr||on),string:new Kn}}function dv(e){var n=wl(this,e).delete(e);return this.size-=n?1:0,n}function hv(e){return wl(this,e).get(e)}function mv(e){return wl(this,e).has(e)}function gv(e,n){var i=wl(this,e),a=i.size;return i.set(e,n),this.size+=i.size==a?0:1,this}an.prototype.clear=fv,an.prototype.delete=dv,an.prototype.get=hv,an.prototype.has=mv,an.prototype.set=gv;function jn(e){var n=-1,i=e==null?0:e.length;for(this.__data__=new an;++n<i;)this.add(e[n])}function pv(e){return this.__data__.set(e,w),this}function vv(e){return this.__data__.has(e)}jn.prototype.add=jn.prototype.push=pv,jn.prototype.has=vv;function Gt(e){var n=this.__data__=new on(e);this.size=n.size}function _v(){this.__data__=new on,this.size=0}function bv(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}function yv(e){return this.__data__.get(e)}function wv(e){return this.__data__.has(e)}function Sv(e,n){var i=this.__data__;if(i instanceof on){var a=i.__data__;if(!Kr||a.length<s-1)return a.push([e,n]),this.size=++i.size,this;i=this.__data__=new an(a)}return i.set(e,n),this.size=i.size,this}Gt.prototype.clear=_v,Gt.prototype.delete=bv,Gt.prototype.get=yv,Gt.prototype.has=wv,Gt.prototype.set=Sv;function xc(e,n){var i=be(e),a=!i&&Jn(e),f=!i&&!a&&In(e),m=!i&&!a&&!f&&Br(e),p=i||a||f||m,b=p?Oo(e.length,Ip):[],x=b.length;for(var L in e)(n||Re.call(e,L))&&!(p&&(L=="length"||f&&(L=="offset"||L=="parent")||m&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||fn(L,x)))&&b.push(L);return b}function Cc(e){var n=e.length;return n?e[Wo(0,n-1)]:l}function xv(e,n){return Sl(dt(e),Yn(n,0,e.length))}function Cv(e){return Sl(dt(e))}function qo(e,n,i){(i!==l&&!Kt(e[n],i)||i===l&&!(n in e))&&un(e,n,i)}function Zr(e,n,i){var a=e[n];(!(Re.call(e,n)&&Kt(a,i))||i===l&&!(n in e))&&un(e,n,i)}function sl(e,n){for(var i=e.length;i--;)if(Kt(e[i][0],n))return i;return-1}function kv(e,n,i,a){return On(e,function(f,m,p){n(a,f,i(f),p)}),a}function kc(e,n){return e&&Xt(n,Xe(n),e)}function Ev(e,n){return e&&Xt(n,mt(n),e)}function un(e,n,i){n=="__proto__"&&rl?rl(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}function Vo(e,n){for(var i=-1,a=n.length,f=I(a),m=e==null;++i<a;)f[i]=m?l:pa(e,n[i]);return f}function Yn(e,n,i){return e===e&&(i!==l&&(e=e<=i?e:i),n!==l&&(e=e>=n?e:n)),e}function Lt(e,n,i,a,f,m){var p,b=n&k,x=n&E,L=n&y;if(i&&(p=f?i(e,a,f,m):i(e)),p!==l)return p;if(!$e(e))return e;var q=be(e);if(q){if(p=m0(e),!b)return dt(e,p)}else{var D=it(e),J=D==Ft||D==yt;if(In(e))return Yc(e,b);if(D==ft||D==_e||J&&!f){if(p=x||J?{}:gf(e),!b)return x?r0(e,Ev(p,e)):n0(e,kc(p,e))}else{if(!Le[D])return f?e:{};p=g0(e,D,b)}}m||(m=new Gt);var oe=m.get(e);if(oe)return oe;m.set(e,p),Hf(e)?e.forEach(function(he){p.add(Lt(he,n,i,he,e,m))}):Uf(e)&&e.forEach(function(he,Ce){p.set(Ce,Lt(he,n,i,Ce,e,m))});var de=L?x?na:ta:x?mt:Xe,we=q?l:de(e);return Rt(we||e,function(he,Ce){we&&(Ce=he,he=e[Ce]),Zr(p,Ce,Lt(he,n,i,Ce,e,m))}),p}function Av(e){var n=Xe(e);return function(i){return Ec(i,e,n)}}function Ec(e,n,i){var a=i.length;if(e==null)return!a;for(e=Me(e);a--;){var f=i[a],m=n[f],p=e[f];if(p===l&&!(f in e)||!m(p))return!1}return!0}function Ac(e,n,i){if(typeof e!="function")throw new It(h);return ii(function(){e.apply(l,i)},n)}function Xr(e,n,i,a){var f=-1,m=Gi,p=!0,b=e.length,x=[],L=n.length;if(!b)return x;i&&(n=Pe(n,xt(i))),a?(m=So,p=!1):n.length>=s&&(m=Wr,p=!1,n=new jn(n));e:for(;++f<b;){var q=e[f],D=i==null?q:i(q);if(q=a||q!==0?q:0,p&&D===D){for(var J=L;J--;)if(n[J]===D)continue e;x.push(q)}else m(n,D,a)||x.push(q)}return x}var On=ef(Zt),Oc=ef(No,!0);function Ov(e,n){var i=!0;return On(e,function(a,f,m){return i=!!n(a,f,m),i}),i}function cl(e,n,i){for(var a=-1,f=e.length;++a<f;){var m=e[a],p=n(m);if(p!=null&&(b===l?p===p&&!kt(p):i(p,b)))var b=p,x=m}return x}function Tv(e,n,i,a){var f=e.length;for(i=ye(i),i<0&&(i=-i>f?0:f+i),a=a===l||a>f?f:ye(a),a<0&&(a+=f),a=i>a?0:Gf(a);i<a;)e[i++]=n;return e}function Tc(e,n){var i=[];return On(e,function(a,f,m){n(a,f,m)&&i.push(a)}),i}function tt(e,n,i,a,f){var m=-1,p=e.length;for(i||(i=v0),f||(f=[]);++m<p;){var b=e[m];n>0&&i(b)?n>1?tt(b,n-1,i,a,f):kn(f,b):a||(f[f.length]=b)}return f}var Po=tf(),Bc=tf(!0);function Zt(e,n){return e&&Po(e,n,Xe)}function No(e,n){return e&&Bc(e,n,Xe)}function fl(e,n){return Cn(n,function(i){return dn(e[i])})}function Qn(e,n){n=Bn(n,e);for(var i=0,a=n.length;e!=null&&i<a;)e=e[Jt(n[i++])];return i&&i==a?e:l}function Rc(e,n,i){var a=n(e);return be(e)?a:kn(a,i(e))}function ot(e){return e==null?e===l?hr:tn:Gn&&Gn in Me(e)?f0(e):C0(e)}function Do(e,n){return e>n}function Bv(e,n){return e!=null&&Re.call(e,n)}function Rv(e,n){return e!=null&&n in Me(e)}function Iv(e,n,i){return e>=rt(n,i)&&e<Qe(n,i)}function $o(e,n,i){for(var a=i?So:Gi,f=e[0].length,m=e.length,p=m,b=I(m),x=1/0,L=[];p--;){var q=e[p];p&&n&&(q=Pe(q,xt(n))),x=rt(q.length,x),b[p]=!i&&(n||f>=120&&q.length>=120)?new jn(p&&q):l}q=e[0];var D=-1,J=b[0];e:for(;++D<f&&L.length<x;){var oe=q[D],de=n?n(oe):oe;if(oe=i||oe!==0?oe:0,!(J?Wr(J,de):a(L,de,i))){for(p=m;--p;){var we=b[p];if(!(we?Wr(we,de):a(e[p],de,i)))continue e}J&&J.push(de),L.push(oe)}}return L}function Mv(e,n,i,a){return Zt(e,function(f,m,p){n(a,i(f),m,p)}),a}function Jr(e,n,i){n=Bn(n,e),e=bf(e,n);var a=e==null?e:e[Jt(Vt(n))];return a==null?l:St(a,e,i)}function Ic(e){return Ue(e)&&ot(e)==_e}function Lv(e){return Ue(e)&&ot(e)==nn}function qv(e){return Ue(e)&&ot(e)==Y}function ei(e,n,i,a,f){return e===n?!0:e==null||n==null||!Ue(e)&&!Ue(n)?e!==e&&n!==n:Vv(e,n,i,a,ei,f)}function Vv(e,n,i,a,f,m){var p=be(e),b=be(n),x=p?U:it(e),L=b?U:it(n);x=x==_e?ft:x,L=L==_e?ft:L;var q=x==ft,D=L==ft,J=x==L;if(J&&In(e)){if(!In(n))return!1;p=!0,q=!1}if(J&&!q)return m||(m=new Gt),p||Br(e)?df(e,n,i,a,f,m):s0(e,n,x,i,a,f,m);if(!(i&T)){var oe=q&&Re.call(e,"__wrapped__"),de=D&&Re.call(n,"__wrapped__");if(oe||de){var we=oe?e.value():e,he=de?n.value():n;return m||(m=new Gt),f(we,he,i,a,m)}}return J?(m||(m=new Gt),c0(e,n,i,a,f,m)):!1}function Pv(e){return Ue(e)&&it(e)==nt}function Fo(e,n,i,a){var f=i.length,m=f,p=!a;if(e==null)return!m;for(e=Me(e);f--;){var b=i[f];if(p&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++f<m;){b=i[f];var x=b[0],L=e[x],q=b[1];if(p&&b[2]){if(L===l&&!(x in e))return!1}else{var D=new Gt;if(a)var J=a(L,q,x,e,n,D);if(!(J===l?ei(q,L,T|z,a,D):J))return!1}}return!0}function Mc(e){if(!$e(e)||b0(e))return!1;var n=dn(e)?Pp:Fi;return n.test(Xn(e))}function Nv(e){return Ue(e)&&ot(e)==Ut}function Dv(e){return Ue(e)&&it(e)==Fe}function $v(e){return Ue(e)&&Ol(e.length)&&!!qe[ot(e)]}function Lc(e){return typeof e=="function"?e:e==null?gt:typeof e=="object"?be(e)?Pc(e[0],e[1]):Vc(e):rd(e)}function Uo(e){if(!ri(e))return zp(e);var n=[];for(var i in Me(e))Re.call(e,i)&&i!="constructor"&&n.push(i);return n}function Fv(e){if(!$e(e))return x0(e);var n=ri(e),i=[];for(var a in e)a=="constructor"&&(n||!Re.call(e,a))||i.push(a);return i}function zo(e,n){return e<n}function qc(e,n){var i=-1,a=ht(e)?I(e.length):[];return On(e,function(f,m,p){a[++i]=n(f,m,p)}),a}function Vc(e){var n=ia(e);return n.length==1&&n[0][2]?vf(n[0][0],n[0][1]):function(i){return i===e||Fo(i,e,n)}}function Pc(e,n){return oa(e)&&pf(n)?vf(Jt(e),n):function(i){var a=pa(i,e);return a===l&&a===n?va(i,e):ei(n,a,T|z)}}function dl(e,n,i,a,f){e!==n&&Po(n,function(m,p){if(f||(f=new Gt),$e(m))Uv(e,n,p,i,dl,a,f);else{var b=a?a(ua(e,p),m,p+"",e,n,f):l;b===l&&(b=m),qo(e,p,b)}},mt)}function Uv(e,n,i,a,f,m,p){var b=ua(e,i),x=ua(n,i),L=p.get(x);if(L){qo(e,i,L);return}var q=m?m(b,x,i+"",e,n,p):l,D=q===l;if(D){var J=be(x),oe=!J&&In(x),de=!J&&!oe&&Br(x);q=x,J||oe||de?be(b)?q=b:ze(b)?q=dt(b):oe?(D=!1,q=Yc(x,!0)):de?(D=!1,q=Qc(x,!0)):q=[]:li(x)||Jn(x)?(q=b,Jn(b)?q=Kf(b):(!$e(b)||dn(b))&&(q=gf(x))):D=!1}D&&(p.set(x,q),f(q,x,a,m,p),p.delete(x)),qo(e,i,q)}function Nc(e,n){var i=e.length;if(i)return n+=n<0?i:0,fn(n,i)?e[n]:l}function Dc(e,n,i){n.length?n=Pe(n,function(m){return be(m)?function(p){return Qn(p,m.length===1?m[0]:m)}:m}):n=[gt];var a=-1;n=Pe(n,xt(ce()));var f=qc(e,function(m,p,b){var x=Pe(n,function(L){return L(m)});return{criteria:x,index:++a,value:m}});return gp(f,function(m,p){return t0(m,p,i)})}function zv(e,n){return $c(e,n,function(i,a){return va(e,a)})}function $c(e,n,i){for(var a=-1,f=n.length,m={};++a<f;){var p=n[a],b=Qn(e,p);i(b,p)&&ti(m,Bn(p,e),b)}return m}function Hv(e){return function(n){return Qn(n,e)}}function Ho(e,n,i,a){var f=a?mp:br,m=-1,p=n.length,b=e;for(e===n&&(n=dt(n)),i&&(b=Pe(e,xt(i)));++m<p;)for(var x=0,L=n[m],q=i?i(L):L;(x=f(b,q,x,a))>-1;)b!==e&&nl.call(b,x,1),nl.call(e,x,1);return e}function Fc(e,n){for(var i=e?n.length:0,a=i-1;i--;){var f=n[i];if(i==a||f!==m){var m=f;fn(f)?nl.call(e,f,1):jo(e,f)}}return e}function Wo(e,n){return e+ll(wc()*(n-e+1))}function Wv(e,n,i,a){for(var f=-1,m=Qe(il((n-e)/(i||1)),0),p=I(m);m--;)p[a?m:++f]=e,e+=i;return p}function Go(e,n){var i="";if(!e||n<1||n>W)return i;do n%2&&(i+=e),n=ll(n/2),n&&(e+=e);while(n);return i}function Se(e,n){return sa(_f(e,n,gt),e+"")}function Gv(e){return Cc(Rr(e))}function Kv(e,n){var i=Rr(e);return Sl(i,Yn(n,0,i.length))}function ti(e,n,i,a){if(!$e(e))return e;n=Bn(n,e);for(var f=-1,m=n.length,p=m-1,b=e;b!=null&&++f<m;){var x=Jt(n[f]),L=i;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(f!=p){var q=b[x];L=a?a(q,x,b):l,L===l&&(L=$e(q)?q:fn(n[f+1])?[]:{})}Zr(b,x,L),b=b[x]}return e}var Uc=ol?function(e,n){return ol.set(e,n),e}:gt,jv=rl?function(e,n){return rl(e,"toString",{configurable:!0,enumerable:!1,value:ba(n),writable:!0})}:gt;function Yv(e){return Sl(Rr(e))}function qt(e,n,i){var a=-1,f=e.length;n<0&&(n=-n>f?0:f+n),i=i>f?f:i,i<0&&(i+=f),f=n>i?0:i-n>>>0,n>>>=0;for(var m=I(f);++a<f;)m[a]=e[a+n];return m}function Qv(e,n){var i;return On(e,function(a,f,m){return i=n(a,f,m),!i}),!!i}function hl(e,n,i){var a=0,f=e==null?a:e.length;if(typeof n=="number"&&n===n&&f<=ie){for(;a<f;){var m=a+f>>>1,p=e[m];p!==null&&!kt(p)&&(i?p<=n:p<n)?a=m+1:f=m}return f}return Ko(e,n,gt,i)}function Ko(e,n,i,a){var f=0,m=e==null?0:e.length;if(m===0)return 0;n=i(n);for(var p=n!==n,b=n===null,x=kt(n),L=n===l;f<m;){var q=ll((f+m)/2),D=i(e[q]),J=D!==l,oe=D===null,de=D===D,we=kt(D);if(p)var he=a||de;else L?he=de&&(a||J):b?he=de&&J&&(a||!oe):x?he=de&&J&&!oe&&(a||!we):oe||we?he=!1:he=a?D<=n:D<n;he?f=q+1:m=q}return rt(m,O)}function zc(e,n){for(var i=-1,a=e.length,f=0,m=[];++i<a;){var p=e[i],b=n?n(p):p;if(!i||!Kt(b,x)){var x=b;m[f++]=p===0?0:p}}return m}function Hc(e){return typeof e=="number"?e:kt(e)?ge:+e}function Ct(e){if(typeof e=="string")return e;if(be(e))return Pe(e,Ct)+"";if(kt(e))return Sc?Sc.call(e):"";var n=e+"";return n=="0"&&1/e==-fe?"-0":n}function Tn(e,n,i){var a=-1,f=Gi,m=e.length,p=!0,b=[],x=b;if(i)p=!1,f=So;else if(m>=s){var L=n?null:a0(e);if(L)return ji(L);p=!1,f=Wr,x=new jn}else x=n?[]:b;e:for(;++a<m;){var q=e[a],D=n?n(q):q;if(q=i||q!==0?q:0,p&&D===D){for(var J=x.length;J--;)if(x[J]===D)continue e;n&&x.push(D),b.push(q)}else f(x,D,i)||(x!==b&&x.push(D),b.push(q))}return b}function jo(e,n){return n=Bn(n,e),e=bf(e,n),e==null||delete e[Jt(Vt(n))]}function Wc(e,n,i,a){return ti(e,n,i(Qn(e,n)),a)}function ml(e,n,i,a){for(var f=e.length,m=a?f:-1;(a?m--:++m<f)&&n(e[m],m,e););return i?qt(e,a?0:m,a?m+1:f):qt(e,a?m+1:0,a?f:m)}function Gc(e,n){var i=e;return i instanceof ke&&(i=i.value()),xo(n,function(a,f){return f.func.apply(f.thisArg,kn([a],f.args))},i)}function Yo(e,n,i){var a=e.length;if(a<2)return a?Tn(e[0]):[];for(var f=-1,m=I(a);++f<a;)for(var p=e[f],b=-1;++b<a;)b!=f&&(m[f]=Xr(m[f]||p,e[b],n,i));return Tn(tt(m,1),n,i)}function Kc(e,n,i){for(var a=-1,f=e.length,m=n.length,p={};++a<f;){var b=a<m?n[a]:l;i(p,e[a],b)}return p}function Qo(e){return ze(e)?e:[]}function Zo(e){return typeof e=="function"?e:gt}function Bn(e,n){return be(e)?e:oa(e,n)?[e]:xf(Te(e))}var Zv=Se;function Rn(e,n,i){var a=e.length;return i=i===l?a:i,!n&&i>=a?e:qt(e,n,i)}var jc=Np||function(e){return et.clearTimeout(e)};function Yc(e,n){if(n)return e.slice();var i=e.length,a=pc?pc(i):new e.constructor(i);return e.copy(a),a}function Xo(e){var n=new e.constructor(e.byteLength);return new el(n).set(new el(e)),n}function Xv(e,n){var i=n?Xo(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function Jv(e){var n=new e.constructor(e.source,ln.exec(e));return n.lastIndex=e.lastIndex,n}function e0(e){return Qr?Me(Qr.call(e)):{}}function Qc(e,n){var i=n?Xo(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Zc(e,n){if(e!==n){var i=e!==l,a=e===null,f=e===e,m=kt(e),p=n!==l,b=n===null,x=n===n,L=kt(n);if(!b&&!L&&!m&&e>n||m&&p&&x&&!b&&!L||a&&p&&x||!i&&x||!f)return 1;if(!a&&!m&&!L&&e<n||L&&i&&f&&!a&&!m||b&&i&&f||!p&&f||!x)return-1}return 0}function t0(e,n,i){for(var a=-1,f=e.criteria,m=n.criteria,p=f.length,b=i.length;++a<p;){var x=Zc(f[a],m[a]);if(x){if(a>=b)return x;var L=i[a];return x*(L=="desc"?-1:1)}}return e.index-n.index}function Xc(e,n,i,a){for(var f=-1,m=e.length,p=i.length,b=-1,x=n.length,L=Qe(m-p,0),q=I(x+L),D=!a;++b<x;)q[b]=n[b];for(;++f<p;)(D||f<m)&&(q[i[f]]=e[f]);for(;L--;)q[b++]=e[f++];return q}function Jc(e,n,i,a){for(var f=-1,m=e.length,p=-1,b=i.length,x=-1,L=n.length,q=Qe(m-b,0),D=I(q+L),J=!a;++f<q;)D[f]=e[f];for(var oe=f;++x<L;)D[oe+x]=n[x];for(;++p<b;)(J||f<m)&&(D[oe+i[p]]=e[f++]);return D}function dt(e,n){var i=-1,a=e.length;for(n||(n=I(a));++i<a;)n[i]=e[i];return n}function Xt(e,n,i,a){var f=!i;i||(i={});for(var m=-1,p=n.length;++m<p;){var b=n[m],x=a?a(i[b],e[b],b,i,e):l;x===l&&(x=e[b]),f?un(i,b,x):Zr(i,b,x)}return i}function n0(e,n){return Xt(e,la(e),n)}function r0(e,n){return Xt(e,hf(e),n)}function gl(e,n){return function(i,a){var f=be(i)?up:kv,m=n?n():{};return f(i,e,ce(a,2),m)}}function Ar(e){return Se(function(n,i){var a=-1,f=i.length,m=f>1?i[f-1]:l,p=f>2?i[2]:l;for(m=e.length>3&&typeof m=="function"?(f--,m):l,p&&at(i[0],i[1],p)&&(m=f<3?l:m,f=1),n=Me(n);++a<f;){var b=i[a];b&&e(n,b,a,m)}return n})}function ef(e,n){return function(i,a){if(i==null)return i;if(!ht(i))return e(i,a);for(var f=i.length,m=n?f:-1,p=Me(i);(n?m--:++m<f)&&a(p[m],m,p)!==!1;);return i}}function tf(e){return function(n,i,a){for(var f=-1,m=Me(n),p=a(n),b=p.length;b--;){var x=p[e?b:++f];if(i(m[x],x,m)===!1)break}return n}}function i0(e,n,i){var a=n&R,f=ni(e);function m(){var p=this&&this!==et&&this instanceof m?f:e;return p.apply(a?i:this,arguments)}return m}function nf(e){return function(n){n=Te(n);var i=yr(n)?Wt(n):l,a=i?i[0]:n.charAt(0),f=i?Rn(i,1).join(""):n.slice(1);return a[e]()+f}}function Or(e){return function(n){return xo(td(ed(n).replace(jg,"")),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 i=Er(e.prototype),a=e.apply(i,n);return $e(a)?a:i}}function l0(e,n,i){var a=ni(e);function f(){for(var m=arguments.length,p=I(m),b=m,x=Tr(f);b--;)p[b]=arguments[b];var L=m<3&&p[0]!==x&&p[m-1]!==x?[]:En(p,x);if(m-=L.length,m<i)return uf(e,n,pl,f.placeholder,l,p,L,l,l,i-m);var q=this&&this!==et&&this instanceof f?a:e;return St(q,this,p)}return f}function rf(e){return function(n,i,a){var f=Me(n);if(!ht(n)){var m=ce(i,3);n=Xe(n),i=function(b){return m(f[b],b,f)}}var p=e(n,i,a);return p>-1?f[m?n[p]:p]:l}}function lf(e){return cn(function(n){var i=n.length,a=i,f=Mt.prototype.thru;for(e&&n.reverse();a--;){var m=n[a];if(typeof m!="function")throw new It(h);if(f&&!p&&yl(m)=="wrapper")var p=new Mt([],!0)}for(a=p?a:i;++a<i;){m=n[a];var b=yl(m),x=b=="wrapper"?ra(m):l;x&&aa(x[0])&&x[1]==(K|N|G|le)&&!x[4].length&&x[9]==1?p=p[yl(x[0])].apply(p,x[3]):p=m.length==1&&aa(m)?p[b]():p.thru(m)}return function(){var L=arguments,q=L[0];if(p&&L.length==1&&be(q))return p.plant(q).value();for(var D=0,J=i?n[D].apply(this,L):q;++D<i;)J=n[D].call(this,J);return J}})}function pl(e,n,i,a,f,m,p,b,x,L){var q=n&K,D=n&R,J=n&H,oe=n&(N|Q),de=n&V,we=J?l:ni(e);function he(){for(var Ce=arguments.length,Ee=I(Ce),Et=Ce;Et--;)Ee[Et]=arguments[Et];if(oe)var ut=Tr(he),At=vp(Ee,ut);if(a&&(Ee=Xc(Ee,a,f,oe)),m&&(Ee=Jc(Ee,m,p,oe)),Ce-=At,oe&&Ce<L){var He=En(Ee,ut);return uf(e,n,pl,he.placeholder,i,Ee,He,b,x,L-Ce)}var jt=D?i:this,mn=J?jt[e]:e;return Ce=Ee.length,b?Ee=k0(Ee,b):de&&Ce>1&&Ee.reverse(),q&&x<Ce&&(Ee.length=x),this&&this!==et&&this instanceof he&&(mn=we||ni(mn)),mn.apply(jt,Ee)}return he}function of(e,n){return function(i,a){return Mv(i,e,n(a),{})}}function vl(e,n){return function(i,a){var f;if(i===l&&a===l)return n;if(i!==l&&(f=i),a!==l){if(f===l)return a;typeof i=="string"||typeof a=="string"?(i=Ct(i),a=Ct(a)):(i=Hc(i),a=Hc(a)),f=e(i,a)}return f}}function Jo(e){return cn(function(n){return n=Pe(n,xt(ce())),Se(function(i){var a=this;return e(n,function(f){return St(f,a,i)})})})}function _l(e,n){n=n===l?" ":Ct(n);var i=n.length;if(i<2)return i?Go(n,e):n;var a=Go(n,il(e/wr(n)));return yr(n)?Rn(Wt(a),0,e).join(""):a.slice(0,e)}function o0(e,n,i,a){var f=n&R,m=ni(e);function p(){for(var b=-1,x=arguments.length,L=-1,q=a.length,D=I(q+x),J=this&&this!==et&&this instanceof p?m:e;++L<q;)D[L]=a[L];for(;x--;)D[L++]=arguments[++b];return St(J,f?i:this,D)}return p}function af(e){return function(n,i,a){return a&&typeof a!="number"&&at(n,i,a)&&(i=a=l),n=hn(n),i===l?(i=n,n=0):i=hn(i),a=a===l?n<i?1:-1:hn(a),Wv(n,i,a,e)}}function bl(e){return function(n,i){return typeof n=="string"&&typeof i=="string"||(n=Pt(n),i=Pt(i)),e(n,i)}}function uf(e,n,i,a,f,m,p,b,x,L){var q=n&N,D=q?p:l,J=q?l:p,oe=q?m:l,de=q?l:m;n|=q?G:j,n&=~(q?j:G),n&F||(n&=~(R|H));var we=[e,n,f,oe,D,de,J,b,x,L],he=i.apply(l,we);return aa(e)&&yf(he,we),he.placeholder=a,wf(he,e,n)}function ea(e){var n=Ye[e];return function(i,a){if(i=Pt(i),a=a==null?0:rt(ye(a),292),a&&yc(i)){var f=(Te(i)+"e").split("e"),m=n(f[0]+"e"+(+f[1]+a));return f=(Te(m)+"e").split("e"),+(f[0]+"e"+(+f[1]-a))}return n(i)}}var a0=Cr&&1/ji(new Cr([,-0]))[1]==fe?function(e){return new Cr(e)}:Sa;function sf(e){return function(n){var i=it(n);return i==nt?Bo(n):i==Fe?Cp(n):pp(n,e(n))}}function sn(e,n,i,a,f,m,p,b){var x=n&H;if(!x&&typeof e!="function")throw new It(h);var L=a?a.length:0;if(L||(n&=~(G|j),a=f=l),p=p===l?p:Qe(ye(p),0),b=b===l?b:ye(b),L-=f?f.length:0,n&j){var q=a,D=f;a=f=l}var J=x?l:ra(e),oe=[e,n,i,a,f,q,D,m,p,b];if(J&&S0(oe,J),e=oe[0],n=oe[1],i=oe[2],a=oe[3],f=oe[4],b=oe[9]=oe[9]===l?x?0:e.length:Qe(oe[9]-L,0),!b&&n&(N|Q)&&(n&=~(N|Q)),!n||n==R)var de=i0(e,n,i);else n==N||n==Q?de=l0(e,n,b):(n==G||n==(R|G))&&!f.length?de=o0(e,n,i,a):de=pl.apply(l,oe);var we=J?Uc:yf;return wf(we(de,oe),e,n)}function cf(e,n,i,a){return e===l||Kt(e,xr[i])&&!Re.call(a,i)?n:e}function ff(e,n,i,a,f,m){return $e(e)&&$e(n)&&(m.set(n,e),dl(e,n,l,ff,m),m.delete(n)),e}function u0(e){return li(e)?l:e}function df(e,n,i,a,f,m){var p=i&T,b=e.length,x=n.length;if(b!=x&&!(p&&x>b))return!1;var L=m.get(e),q=m.get(n);if(L&&q)return L==n&&q==e;var D=-1,J=!0,oe=i&z?new jn:l;for(m.set(e,n),m.set(n,e);++D<b;){var de=e[D],we=n[D];if(a)var he=p?a(we,de,D,n,e,m):a(de,we,D,e,n,m);if(he!==l){if(he)continue;J=!1;break}if(oe){if(!Co(n,function(Ce,Ee){if(!Wr(oe,Ee)&&(de===Ce||f(de,Ce,i,a,m)))return oe.push(Ee)})){J=!1;break}}else if(!(de===we||f(de,we,i,a,m))){J=!1;break}}return m.delete(e),m.delete(n),J}function s0(e,n,i,a,f,m,p){switch(i){case bn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case nn:return!(e.byteLength!=n.byteLength||!m(new el(e),new el(n)));case Ae:case Y:case wt:return Kt(+e,+n);case lt:return e.name==n.name&&e.message==n.message;case Ut:case je:return e==n+"";case nt:var b=Bo;case Fe:var x=a&T;if(b||(b=ji),e.size!=n.size&&!x)return!1;var L=p.get(e);if(L)return L==n;a|=z,p.set(e,n);var q=df(b(e),b(n),a,f,m,p);return p.delete(e),q;case zt:if(Qr)return Qr.call(e)==Qr.call(n)}return!1}function c0(e,n,i,a,f,m){var p=i&T,b=ta(e),x=b.length,L=ta(n),q=L.length;if(x!=q&&!p)return!1;for(var D=x;D--;){var J=b[D];if(!(p?J in n:Re.call(n,J)))return!1}var oe=m.get(e),de=m.get(n);if(oe&&de)return oe==n&&de==e;var we=!0;m.set(e,n),m.set(n,e);for(var he=p;++D<x;){J=b[D];var Ce=e[J],Ee=n[J];if(a)var Et=p?a(Ee,Ce,J,n,e,m):a(Ce,Ee,J,e,n,m);if(!(Et===l?Ce===Ee||f(Ce,Ee,i,a,m):Et)){we=!1;break}he||(he=J=="constructor")}if(we&&!he){var ut=e.constructor,At=n.constructor;ut!=At&&"constructor"in e&&"constructor"in n&&!(typeof ut=="function"&&ut instanceof ut&&typeof At=="function"&&At instanceof At)&&(we=!1)}return m.delete(e),m.delete(n),we}function cn(e){return sa(_f(e,l,Af),e+"")}function ta(e){return Rc(e,Xe,la)}function na(e){return Rc(e,mt,hf)}var ra=ol?function(e){return ol.get(e)}:Sa;function yl(e){for(var n=e.name+"",i=kr[n],a=Re.call(kr,n)?i.length:0;a--;){var f=i[a],m=f.func;if(m==null||m==e)return f.name}return n}function Tr(e){var n=Re.call(d,"placeholder")?d:e;return n.placeholder}function ce(){var e=d.iteratee||ya;return e=e===ya?Lc:e,arguments.length?e(arguments[0],arguments[1]):e}function wl(e,n){var i=e.__data__;return _0(n)?i[typeof n=="string"?"string":"hash"]:i.map}function ia(e){for(var n=Xe(e),i=n.length;i--;){var a=n[i],f=e[a];n[i]=[a,f,pf(f)]}return n}function Zn(e,n){var i=wp(e,n);return Mc(i)?i:l}function f0(e){var n=Re.call(e,Gn),i=e[Gn];try{e[Gn]=l;var a=!0}catch{}var f=Xi.call(e);return a&&(n?e[Gn]=i:delete e[Gn]),f}var la=Io?function(e){return e==null?[]:(e=Me(e),Cn(Io(e),function(n){return _c.call(e,n)}))}:xa,hf=Io?function(e){for(var n=[];e;)kn(n,la(e)),e=tl(e);return n}:xa,it=ot;(Mo&&it(new Mo(new ArrayBuffer(1)))!=bn||Kr&&it(new Kr)!=nt||Lo&&it(Lo.resolve())!=_n||Cr&&it(new Cr)!=Fe||jr&&it(new jr)!=$n)&&(it=function(e){var n=ot(e),i=n==ft?e.constructor:l,a=i?Xn(i):"";if(a)switch(a){case Kp:return bn;case jp:return nt;case Yp:return _n;case Qp:return Fe;case Zp:return $n}return n});function d0(e,n,i){for(var a=-1,f=i.length;++a<f;){var m=i[a],p=m.size;switch(m.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 h0(e){var n=e.match(co);return n?n[1].split(fo):[]}function mf(e,n,i){n=Bn(n,e);for(var a=-1,f=n.length,m=!1;++a<f;){var p=Jt(n[a]);if(!(m=e!=null&&i(e,p)))break;e=e[p]}return m||++a!=f?m:(f=e==null?0:e.length,!!f&&Ol(f)&&fn(p,f)&&(be(e)||Jn(e)))}function m0(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&Re.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function gf(e){return typeof e.constructor=="function"&&!ri(e)?Er(tl(e)):{}}function g0(e,n,i){var a=e.constructor;switch(n){case nn:return Xo(e);case Ae:case Y:return new a(+e);case bn:return Xv(e,i);case mr:case Ht:case Qt:case yn:case $r:case Fn:case Un:case gr:case pr:return Qc(e,i);case nt:return new a;case wt:case je:return new a(e);case Ut:return Jv(e);case Fe:return new a;case zt:return e0(e)}}function p0(e,n){var i=n.length;if(!i)return e;var a=i-1;return n[a]=(i>1?"& ":"")+n[a],n=n.join(i>2?", ":" "),e.replace(so,`{
8
+ */si.exports,function(t,l){(function(){var o,u="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",g="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",x=500,v="__lodash_placeholder__",C=1,E=2,b=4,T=1,U=2,R=1,G=2,F=4,N=8,Y=16,z=32,j=64,W=128,oe=256,V=512,D=30,Q="...",A=800,te=16,P=1,ae=2,le=3,ce=1/0,K=9007199254740991,se=17976931348623157e292,ge=NaN,B=4294967295,O=B-1,Z=B>>>1,pe=[["ary",W],["bind",R],["bindKey",G],["curry",N],["curryRight",Y],["flip",V],["partial",z],["partialRight",j],["rearg",oe]],fe="[object Arguments]",H="[object Array]",re="[object AsyncFunction]",Ae="[object Boolean]",X="[object Date]",De="[object DOMException]",ot="[object Error]",Ft="[object Function]",yt="[object GeneratorFunction]",nt="[object Map]",wt="[object Number]",tn="[object Null]",ht="[object Object]",bn="[object Promise]",Ur="[object Proxy]",Ut="[object RegExp]",Fe="[object Set]",Ye="[object String]",zt="[object Symbol]",hr="[object Undefined]",Fn="[object WeakMap]",$i="[object WeakSet]",nn="[object ArrayBuffer]",yn="[object DataView]",mr="[object Float32Array]",Ht="[object Float64Array]",Qt="[object Int8Array]",wn="[object Int16Array]",zr="[object Int32Array]",Un="[object Uint8Array]",zn="[object Uint8ClampedArray]",gr="[object Uint16Array]",pr="[object Uint32Array]",Fi=/\b__p \+= '';/g,Ui=/\b(__p \+=) '' \+/g,zi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hr=/&(?:amp|lt|gt|quot|#39);/g,Hi=/[&<>"']/g,_l=RegExp(Hr.source),Wi=RegExp(Hi.source),bl=/<%-([\s\S]+?)%>/g,Gi=/<%([\s\S]+?)%>/g,Hn=/<%=([\s\S]+?)%>/g,Wn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sn=/^\w*$/,yl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wr=/[\\^$.*+?()[\]{}|]/g,wl=RegExp(Wr.source),Gr=/^\s+/,Sl=/\s/,xl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Cl=/\{\n\/\* \[wrapped with (.+)\] \*/,kl=/,? & /,El=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xn=/[()=,{}\[\]\/\s]/,Cn=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,on=/\w*$/,Kr=/^[-+]0x[0-9a-f]+$/i,Al=/^0b[01]+$/i,Ki=/^\[object .+?Constructor\]$/,ji=/^0o[0-7]+$/i,Yi=/^(?:0|[1-9]\d*)$/,Qi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_=/($^)/,ne=/['\n\r\u2028\u2029\\]/g,J="\\ud800-\\udfff",ve="\\u0300-\\u036f",Ie="\\ufe20-\\ufe2f",Be="\\u20d0-\\u20ff",Ke=ve+Ie+Be,Pe="\\u2700-\\u27bf",vr="a-z\\xdf-\\xf6\\xf8-\\xff",Ug="\\xac\\xb1\\xd7\\xf7",zg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hg="\\u2000-\\u206f",Wg=" \\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",Ws="A-Z\\xc0-\\xd6\\xd8-\\xde",Gs="\\ufe0e\\ufe0f",Ks=Ug+zg+Hg+Wg,Ol="['’]",Gg="["+J+"]",js="["+Ks+"]",Zi="["+Ke+"]",Ys="\\d+",Kg="["+Pe+"]",Qs="["+vr+"]",Zs="[^"+J+Ks+Ys+Pe+vr+Ws+"]",Tl="\\ud83c[\\udffb-\\udfff]",jg="(?:"+Zi+"|"+Tl+")",Xs="[^"+J+"]",Bl="(?:\\ud83c[\\udde6-\\uddff]){2}",Rl="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="["+Ws+"]",Js="\\u200d",ec="(?:"+Qs+"|"+Zs+")",Yg="(?:"+_r+"|"+Zs+")",tc="(?:"+Ol+"(?:d|ll|m|re|s|t|ve))?",nc="(?:"+Ol+"(?:D|LL|M|RE|S|T|VE))?",rc=jg+"?",ic="["+Gs+"]?",Qg="(?:"+Js+"(?:"+[Xs,Bl,Rl].join("|")+")"+ic+rc+")*",Zg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",oc=ic+rc+Qg,Jg="(?:"+[Kg,Bl,Rl].join("|")+")"+oc,ep="(?:"+[Xs+Zi+"?",Zi,Bl,Rl,Gg].join("|")+")",tp=RegExp(Ol,"g"),np=RegExp(Zi,"g"),Il=RegExp(Tl+"(?="+Tl+")|"+ep+oc,"g"),rp=RegExp([_r+"?"+Qs+"+"+tc+"(?="+[js,_r,"$"].join("|")+")",Yg+"+"+nc+"(?="+[js,_r+ec,"$"].join("|")+")",_r+"?"+ec+"+"+tc,_r+"+"+nc,Xg,Zg,Ys,Jg].join("|"),"g"),ip=RegExp("["+Js+J+Ke+Gs+"]"),op=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,lp=["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"],ap=-1,qe={};qe[mr]=qe[Ht]=qe[Qt]=qe[wn]=qe[zr]=qe[Un]=qe[zn]=qe[gr]=qe[pr]=!0,qe[fe]=qe[H]=qe[nn]=qe[Ae]=qe[yn]=qe[X]=qe[ot]=qe[Ft]=qe[nt]=qe[wt]=qe[ht]=qe[Ut]=qe[Fe]=qe[Ye]=qe[Fn]=!1;var Le={};Le[fe]=Le[H]=Le[nn]=Le[yn]=Le[Ae]=Le[X]=Le[mr]=Le[Ht]=Le[Qt]=Le[wn]=Le[zr]=Le[nt]=Le[wt]=Le[ht]=Le[Ut]=Le[Fe]=Le[Ye]=Le[zt]=Le[Un]=Le[zn]=Le[gr]=Le[pr]=!0,Le[ot]=Le[Ft]=Le[Fn]=!1;var up={À:"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"},sp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cp={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},fp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dp=parseFloat,hp=parseInt,lc=typeof xe=="object"&&xe&&xe.Object===Object&&xe,mp=typeof self=="object"&&self&&self.Object===Object&&self,et=lc||mp||Function("return this")(),Ml=l&&!l.nodeType&&l,Gn=Ml&&!0&&t&&!t.nodeType&&t,ac=Gn&&Gn.exports===Ml,Ll=ac&&lc.process,Bt=function(){try{var S=Gn&&Gn.require&&Gn.require("util").types;return S||Ll&&Ll.binding&&Ll.binding("util")}catch{}}(),uc=Bt&&Bt.isArrayBuffer,sc=Bt&&Bt.isDate,cc=Bt&&Bt.isMap,fc=Bt&&Bt.isRegExp,dc=Bt&&Bt.isSet,hc=Bt&&Bt.isTypedArray;function St(S,M,I){switch(I.length){case 0:return S.call(M);case 1:return S.call(M,I[0]);case 2:return S.call(M,I[0],I[1]);case 3:return S.call(M,I[0],I[1],I[2])}return S.apply(M,I)}function gp(S,M,I,ie){for(var _e=-1,Oe=S==null?0:S.length;++_e<Oe;){var Qe=S[_e];M(ie,Qe,I(Qe),S)}return ie}function Rt(S,M){for(var I=-1,ie=S==null?0:S.length;++I<ie&&M(S[I],I,S)!==!1;);return S}function pp(S,M){for(var I=S==null?0:S.length;I--&&M(S[I],I,S)!==!1;);return S}function mc(S,M){for(var I=-1,ie=S==null?0:S.length;++I<ie;)if(!M(S[I],I,S))return!1;return!0}function kn(S,M){for(var I=-1,ie=S==null?0:S.length,_e=0,Oe=[];++I<ie;){var Qe=S[I];M(Qe,I,S)&&(Oe[_e++]=Qe)}return Oe}function Xi(S,M){var I=S==null?0:S.length;return!!I&&br(S,M,0)>-1}function ql(S,M,I){for(var ie=-1,_e=S==null?0:S.length;++ie<_e;)if(I(M,S[ie]))return!0;return!1}function Ne(S,M){for(var I=-1,ie=S==null?0:S.length,_e=Array(ie);++I<ie;)_e[I]=M(S[I],I,S);return _e}function En(S,M){for(var I=-1,ie=M.length,_e=S.length;++I<ie;)S[_e+I]=M[I];return S}function Vl(S,M,I,ie){var _e=-1,Oe=S==null?0:S.length;for(ie&&Oe&&(I=S[++_e]);++_e<Oe;)I=M(I,S[_e],_e,S);return I}function vp(S,M,I,ie){var _e=S==null?0:S.length;for(ie&&_e&&(I=S[--_e]);_e--;)I=M(I,S[_e],_e,S);return I}function Pl(S,M){for(var I=-1,ie=S==null?0:S.length;++I<ie;)if(M(S[I],I,S))return!0;return!1}var _p=Nl("length");function bp(S){return S.split("")}function yp(S){return S.match(El)||[]}function gc(S,M,I){var ie;return I(S,function(_e,Oe,Qe){if(M(_e,Oe,Qe))return ie=Oe,!1}),ie}function Ji(S,M,I,ie){for(var _e=S.length,Oe=I+(ie?1:-1);ie?Oe--:++Oe<_e;)if(M(S[Oe],Oe,S))return Oe;return-1}function br(S,M,I){return M===M?Ip(S,M,I):Ji(S,pc,I)}function wp(S,M,I,ie){for(var _e=I-1,Oe=S.length;++_e<Oe;)if(ie(S[_e],M))return _e;return-1}function pc(S){return S!==S}function vc(S,M){var I=S==null?0:S.length;return I?$l(S,M)/I:ge}function Nl(S){return function(M){return M==null?o:M[S]}}function Dl(S){return function(M){return S==null?o:S[M]}}function _c(S,M,I,ie,_e){return _e(S,function(Oe,Qe,Me){I=ie?(ie=!1,Oe):M(I,Oe,Qe,Me)}),I}function Sp(S,M){var I=S.length;for(S.sort(M);I--;)S[I]=S[I].value;return S}function $l(S,M){for(var I,ie=-1,_e=S.length;++ie<_e;){var Oe=M(S[ie]);Oe!==o&&(I=I===o?Oe:I+Oe)}return I}function Fl(S,M){for(var I=-1,ie=Array(S);++I<S;)ie[I]=M(I);return ie}function xp(S,M){return Ne(M,function(I){return[I,S[I]]})}function bc(S){return S&&S.slice(0,xc(S)+1).replace(Gr,"")}function xt(S){return function(M){return S(M)}}function Ul(S,M){return Ne(M,function(I){return S[I]})}function jr(S,M){return S.has(M)}function yc(S,M){for(var I=-1,ie=S.length;++I<ie&&br(M,S[I],0)>-1;);return I}function wc(S,M){for(var I=S.length;I--&&br(M,S[I],0)>-1;);return I}function Cp(S,M){for(var I=S.length,ie=0;I--;)S[I]===M&&++ie;return ie}var kp=Dl(up),Ep=Dl(sp);function Ap(S){return"\\"+fp[S]}function Op(S,M){return S==null?o:S[M]}function yr(S){return ip.test(S)}function Tp(S){return op.test(S)}function Bp(S){for(var M,I=[];!(M=S.next()).done;)I.push(M.value);return I}function zl(S){var M=-1,I=Array(S.size);return S.forEach(function(ie,_e){I[++M]=[_e,ie]}),I}function Sc(S,M){return function(I){return S(M(I))}}function An(S,M){for(var I=-1,ie=S.length,_e=0,Oe=[];++I<ie;){var Qe=S[I];(Qe===M||Qe===v)&&(S[I]=v,Oe[_e++]=I)}return Oe}function eo(S){var M=-1,I=Array(S.size);return S.forEach(function(ie){I[++M]=ie}),I}function Rp(S){var M=-1,I=Array(S.size);return S.forEach(function(ie){I[++M]=[ie,ie]}),I}function Ip(S,M,I){for(var ie=I-1,_e=S.length;++ie<_e;)if(S[ie]===M)return ie;return-1}function Mp(S,M,I){for(var ie=I+1;ie--;)if(S[ie]===M)return ie;return ie}function wr(S){return yr(S)?qp(S):_p(S)}function Wt(S){return yr(S)?Vp(S):bp(S)}function xc(S){for(var M=S.length;M--&&Sl.test(S.charAt(M)););return M}var Lp=Dl(cp);function qp(S){for(var M=Il.lastIndex=0;Il.test(S);)++M;return M}function Vp(S){return S.match(Il)||[]}function Pp(S){return S.match(rp)||[]}var Np=function S(M){M=M==null?et:Sr.defaults(et.Object(),M,Sr.pick(et,lp));var I=M.Array,ie=M.Date,_e=M.Error,Oe=M.Function,Qe=M.Math,Me=M.Object,Hl=M.RegExp,Dp=M.String,It=M.TypeError,to=I.prototype,$p=Oe.prototype,xr=Me.prototype,no=M["__core-js_shared__"],ro=$p.toString,Re=xr.hasOwnProperty,Fp=0,Cc=function(){var e=/[^.]+$/.exec(no&&no.keys&&no.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),io=xr.toString,Up=ro.call(Me),zp=et._,Hp=Hl("^"+ro.call(Re).replace(Wr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oo=ac?M.Buffer:o,On=M.Symbol,lo=M.Uint8Array,kc=oo?oo.allocUnsafe:o,ao=Sc(Me.getPrototypeOf,Me),Ec=Me.create,Ac=xr.propertyIsEnumerable,uo=to.splice,Oc=On?On.isConcatSpreadable:o,Yr=On?On.iterator:o,Kn=On?On.toStringTag:o,so=function(){try{var e=Xn(Me,"defineProperty");return e({},"",{}),e}catch{}}(),Wp=M.clearTimeout!==et.clearTimeout&&M.clearTimeout,Gp=ie&&ie.now!==et.Date.now&&ie.now,Kp=M.setTimeout!==et.setTimeout&&M.setTimeout,co=Qe.ceil,fo=Qe.floor,Wl=Me.getOwnPropertySymbols,jp=oo?oo.isBuffer:o,Tc=M.isFinite,Yp=to.join,Qp=Sc(Me.keys,Me),Ze=Qe.max,rt=Qe.min,Zp=ie.now,Xp=M.parseInt,Bc=Qe.random,Jp=to.reverse,Gl=Xn(M,"DataView"),Qr=Xn(M,"Map"),Kl=Xn(M,"Promise"),Cr=Xn(M,"Set"),Zr=Xn(M,"WeakMap"),Xr=Xn(Me,"create"),ho=Zr&&new Zr,kr={},ev=Jn(Gl),tv=Jn(Qr),nv=Jn(Kl),rv=Jn(Cr),iv=Jn(Zr),mo=On?On.prototype:o,Jr=mo?mo.valueOf:o,Rc=mo?mo.toString:o;function d(e){if(Ue(e)&&!be(e)&&!(e instanceof ke)){if(e instanceof Mt)return e;if(Re.call(e,"__wrapped__"))return Mf(e)}return new Mt(e)}var Er=function(){function e(){}return function(n){if(!$e(n))return{};if(Ec)return Ec(n);e.prototype=n;var i=new e;return e.prototype=o,i}}();function go(){}function Mt(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=o}d.templateSettings={escape:bl,evaluate:Gi,interpolate:Hn,variable:"",imports:{_:d}},d.prototype=go.prototype,d.prototype.constructor=d,Mt.prototype=Er(go.prototype),Mt.prototype.constructor=Mt;function ke(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function ov(){var e=new ke(this.__wrapped__);return e.__actions__=mt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=mt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=mt(this.__views__),e}function lv(){if(this.__filtered__){var e=new ke(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function av(){var e=this.__wrapped__.value(),n=this.__dir__,i=be(e),a=n<0,f=i?e.length:0,m=b0(0,f,this.__views__),p=m.start,y=m.end,k=y-p,L=a?y:p-1,q=this.__iteratees__,$=q.length,ee=0,ue=rt(k,this.__takeCount__);if(!i||!a&&f==k&&ue==k)return tf(e,this.__actions__);var he=[];e:for(;k--&&ee<ue;){L+=n;for(var we=-1,me=e[L];++we<$;){var Ce=q[we],Ee=Ce.iteratee,Et=Ce.type,ut=Ee(me);if(Et==ae)me=ut;else if(!ut){if(Et==P)continue e;break e}}he[ee++]=me}return he}ke.prototype=Er(go.prototype),ke.prototype.constructor=ke;function jn(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function uv(){this.__data__=Xr?Xr(null):{},this.size=0}function sv(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function cv(e){var n=this.__data__;if(Xr){var i=n[e];return i===w?o:i}return Re.call(n,e)?n[e]:o}function fv(e){var n=this.__data__;return Xr?n[e]!==o:Re.call(n,e)}function dv(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Xr&&n===o?w:n,this}jn.prototype.clear=uv,jn.prototype.delete=sv,jn.prototype.get=cv,jn.prototype.has=fv,jn.prototype.set=dv;function ln(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function hv(){this.__data__=[],this.size=0}function mv(e){var n=this.__data__,i=po(n,e);if(i<0)return!1;var a=n.length-1;return i==a?n.pop():uo.call(n,i,1),--this.size,!0}function gv(e){var n=this.__data__,i=po(n,e);return i<0?o:n[i][1]}function pv(e){return po(this.__data__,e)>-1}function vv(e,n){var i=this.__data__,a=po(i,e);return a<0?(++this.size,i.push([e,n])):i[a][1]=n,this}ln.prototype.clear=hv,ln.prototype.delete=mv,ln.prototype.get=gv,ln.prototype.has=pv,ln.prototype.set=vv;function an(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function _v(){this.size=0,this.__data__={hash:new jn,map:new(Qr||ln),string:new jn}}function bv(e){var n=Oo(this,e).delete(e);return this.size-=n?1:0,n}function yv(e){return Oo(this,e).get(e)}function wv(e){return Oo(this,e).has(e)}function Sv(e,n){var i=Oo(this,e),a=i.size;return i.set(e,n),this.size+=i.size==a?0:1,this}an.prototype.clear=_v,an.prototype.delete=bv,an.prototype.get=yv,an.prototype.has=wv,an.prototype.set=Sv;function Yn(e){var n=-1,i=e==null?0:e.length;for(this.__data__=new an;++n<i;)this.add(e[n])}function xv(e){return this.__data__.set(e,w),this}function Cv(e){return this.__data__.has(e)}Yn.prototype.add=Yn.prototype.push=xv,Yn.prototype.has=Cv;function Gt(e){var n=this.__data__=new ln(e);this.size=n.size}function kv(){this.__data__=new ln,this.size=0}function Ev(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}function Av(e){return this.__data__.get(e)}function Ov(e){return this.__data__.has(e)}function Tv(e,n){var i=this.__data__;if(i instanceof ln){var a=i.__data__;if(!Qr||a.length<s-1)return a.push([e,n]),this.size=++i.size,this;i=this.__data__=new an(a)}return i.set(e,n),this.size=i.size,this}Gt.prototype.clear=kv,Gt.prototype.delete=Ev,Gt.prototype.get=Av,Gt.prototype.has=Ov,Gt.prototype.set=Tv;function Ic(e,n){var i=be(e),a=!i&&er(e),f=!i&&!a&&Mn(e),m=!i&&!a&&!f&&Br(e),p=i||a||f||m,y=p?Fl(e.length,Dp):[],k=y.length;for(var L in e)(n||Re.call(e,L))&&!(p&&(L=="length"||f&&(L=="offset"||L=="parent")||m&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||fn(L,k)))&&y.push(L);return y}function Mc(e){var n=e.length;return n?e[ia(0,n-1)]:o}function Bv(e,n){return To(mt(e),Qn(n,0,e.length))}function Rv(e){return To(mt(e))}function jl(e,n,i){(i!==o&&!Kt(e[n],i)||i===o&&!(n in e))&&un(e,n,i)}function ei(e,n,i){var a=e[n];(!(Re.call(e,n)&&Kt(a,i))||i===o&&!(n in e))&&un(e,n,i)}function po(e,n){for(var i=e.length;i--;)if(Kt(e[i][0],n))return i;return-1}function Iv(e,n,i,a){return Tn(e,function(f,m,p){n(a,f,i(f),p)}),a}function Lc(e,n){return e&&Xt(n,Xe(n),e)}function Mv(e,n){return e&&Xt(n,pt(n),e)}function un(e,n,i){n=="__proto__"&&so?so(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}function Yl(e,n){for(var i=-1,a=n.length,f=I(a),m=e==null;++i<a;)f[i]=m?o:Ta(e,n[i]);return f}function Qn(e,n,i){return e===e&&(i!==o&&(e=e<=i?e:i),n!==o&&(e=e>=n?e:n)),e}function Lt(e,n,i,a,f,m){var p,y=n&C,k=n&E,L=n&b;if(i&&(p=f?i(e,a,f,m):i(e)),p!==o)return p;if(!$e(e))return e;var q=be(e);if(q){if(p=w0(e),!y)return mt(e,p)}else{var $=it(e),ee=$==Ft||$==yt;if(Mn(e))return of(e,y);if($==ht||$==fe||ee&&!f){if(p=k||ee?{}:Cf(e),!y)return k?c0(e,Mv(p,e)):s0(e,Lc(p,e))}else{if(!Le[$])return f?e:{};p=S0(e,$,y)}}m||(m=new Gt);var ue=m.get(e);if(ue)return ue;m.set(e,p),Jf(e)?e.forEach(function(me){p.add(Lt(me,n,i,me,e,m))}):Zf(e)&&e.forEach(function(me,Ce){p.set(Ce,Lt(me,n,i,Ce,e,m))});var he=L?k?ga:ma:k?pt:Xe,we=q?o:he(e);return Rt(we||e,function(me,Ce){we&&(Ce=me,me=e[Ce]),ei(p,Ce,Lt(me,n,i,Ce,e,m))}),p}function Lv(e){var n=Xe(e);return function(i){return qc(i,e,n)}}function qc(e,n,i){var a=i.length;if(e==null)return!a;for(e=Me(e);a--;){var f=i[a],m=n[f],p=e[f];if(p===o&&!(f in e)||!m(p))return!1}return!0}function Vc(e,n,i){if(typeof e!="function")throw new It(h);return ai(function(){e.apply(o,i)},n)}function ti(e,n,i,a){var f=-1,m=Xi,p=!0,y=e.length,k=[],L=n.length;if(!y)return k;i&&(n=Ne(n,xt(i))),a?(m=ql,p=!1):n.length>=s&&(m=jr,p=!1,n=new Yn(n));e:for(;++f<y;){var q=e[f],$=i==null?q:i(q);if(q=a||q!==0?q:0,p&&$===$){for(var ee=L;ee--;)if(n[ee]===$)continue e;k.push(q)}else m(n,$,a)||k.push(q)}return k}var Tn=cf(Zt),Pc=cf(Zl,!0);function qv(e,n){var i=!0;return Tn(e,function(a,f,m){return i=!!n(a,f,m),i}),i}function vo(e,n,i){for(var a=-1,f=e.length;++a<f;){var m=e[a],p=n(m);if(p!=null&&(y===o?p===p&&!kt(p):i(p,y)))var y=p,k=m}return k}function Vv(e,n,i,a){var f=e.length;for(i=ye(i),i<0&&(i=-i>f?0:f+i),a=a===o||a>f?f:ye(a),a<0&&(a+=f),a=i>a?0:td(a);i<a;)e[i++]=n;return e}function Nc(e,n){var i=[];return Tn(e,function(a,f,m){n(a,f,m)&&i.push(a)}),i}function tt(e,n,i,a,f){var m=-1,p=e.length;for(i||(i=C0),f||(f=[]);++m<p;){var y=e[m];n>0&&i(y)?n>1?tt(y,n-1,i,a,f):En(f,y):a||(f[f.length]=y)}return f}var Ql=ff(),Dc=ff(!0);function Zt(e,n){return e&&Ql(e,n,Xe)}function Zl(e,n){return e&&Dc(e,n,Xe)}function _o(e,n){return kn(n,function(i){return dn(e[i])})}function Zn(e,n){n=Rn(n,e);for(var i=0,a=n.length;e!=null&&i<a;)e=e[Jt(n[i++])];return i&&i==a?e:o}function $c(e,n,i){var a=n(e);return be(e)?a:En(a,i(e))}function lt(e){return e==null?e===o?hr:tn:Kn&&Kn in Me(e)?_0(e):R0(e)}function Xl(e,n){return e>n}function Pv(e,n){return e!=null&&Re.call(e,n)}function Nv(e,n){return e!=null&&n in Me(e)}function Dv(e,n,i){return e>=rt(n,i)&&e<Ze(n,i)}function Jl(e,n,i){for(var a=i?ql:Xi,f=e[0].length,m=e.length,p=m,y=I(m),k=1/0,L=[];p--;){var q=e[p];p&&n&&(q=Ne(q,xt(n))),k=rt(q.length,k),y[p]=!i&&(n||f>=120&&q.length>=120)?new Yn(p&&q):o}q=e[0];var $=-1,ee=y[0];e:for(;++$<f&&L.length<k;){var ue=q[$],he=n?n(ue):ue;if(ue=i||ue!==0?ue:0,!(ee?jr(ee,he):a(L,he,i))){for(p=m;--p;){var we=y[p];if(!(we?jr(we,he):a(e[p],he,i)))continue e}ee&&ee.push(he),L.push(ue)}}return L}function $v(e,n,i,a){return Zt(e,function(f,m,p){n(a,i(f),m,p)}),a}function ni(e,n,i){n=Rn(n,e),e=Of(e,n);var a=e==null?e:e[Jt(Vt(n))];return a==null?o:St(a,e,i)}function Fc(e){return Ue(e)&&lt(e)==fe}function Fv(e){return Ue(e)&&lt(e)==nn}function Uv(e){return Ue(e)&&lt(e)==X}function ri(e,n,i,a,f){return e===n?!0:e==null||n==null||!Ue(e)&&!Ue(n)?e!==e&&n!==n:zv(e,n,i,a,ri,f)}function zv(e,n,i,a,f,m){var p=be(e),y=be(n),k=p?H:it(e),L=y?H:it(n);k=k==fe?ht:k,L=L==fe?ht:L;var q=k==ht,$=L==ht,ee=k==L;if(ee&&Mn(e)){if(!Mn(n))return!1;p=!0,q=!1}if(ee&&!q)return m||(m=new Gt),p||Br(e)?wf(e,n,i,a,f,m):p0(e,n,k,i,a,f,m);if(!(i&T)){var ue=q&&Re.call(e,"__wrapped__"),he=$&&Re.call(n,"__wrapped__");if(ue||he){var we=ue?e.value():e,me=he?n.value():n;return m||(m=new Gt),f(we,me,i,a,m)}}return ee?(m||(m=new Gt),v0(e,n,i,a,f,m)):!1}function Hv(e){return Ue(e)&&it(e)==nt}function ea(e,n,i,a){var f=i.length,m=f,p=!a;if(e==null)return!m;for(e=Me(e);f--;){var y=i[f];if(p&&y[2]?y[1]!==e[y[0]]:!(y[0]in e))return!1}for(;++f<m;){y=i[f];var k=y[0],L=e[k],q=y[1];if(p&&y[2]){if(L===o&&!(k in e))return!1}else{var $=new Gt;if(a)var ee=a(L,q,k,e,n,$);if(!(ee===o?ri(q,L,T|U,a,$):ee))return!1}}return!0}function Uc(e){if(!$e(e)||E0(e))return!1;var n=dn(e)?Hp:Ki;return n.test(Jn(e))}function Wv(e){return Ue(e)&&lt(e)==Ut}function Gv(e){return Ue(e)&&it(e)==Fe}function Kv(e){return Ue(e)&&qo(e.length)&&!!qe[lt(e)]}function zc(e){return typeof e=="function"?e:e==null?vt:typeof e=="object"?be(e)?Gc(e[0],e[1]):Wc(e):dd(e)}function ta(e){if(!li(e))return Qp(e);var n=[];for(var i in Me(e))Re.call(e,i)&&i!="constructor"&&n.push(i);return n}function jv(e){if(!$e(e))return B0(e);var n=li(e),i=[];for(var a in e)a=="constructor"&&(n||!Re.call(e,a))||i.push(a);return i}function na(e,n){return e<n}function Hc(e,n){var i=-1,a=gt(e)?I(e.length):[];return Tn(e,function(f,m,p){a[++i]=n(f,m,p)}),a}function Wc(e){var n=va(e);return n.length==1&&n[0][2]?Ef(n[0][0],n[0][1]):function(i){return i===e||ea(i,e,n)}}function Gc(e,n){return ba(e)&&kf(n)?Ef(Jt(e),n):function(i){var a=Ta(i,e);return a===o&&a===n?Ba(i,e):ri(n,a,T|U)}}function bo(e,n,i,a,f){e!==n&&Ql(n,function(m,p){if(f||(f=new Gt),$e(m))Yv(e,n,p,i,bo,a,f);else{var y=a?a(wa(e,p),m,p+"",e,n,f):o;y===o&&(y=m),jl(e,p,y)}},pt)}function Yv(e,n,i,a,f,m,p){var y=wa(e,i),k=wa(n,i),L=p.get(k);if(L){jl(e,i,L);return}var q=m?m(y,k,i+"",e,n,p):o,$=q===o;if($){var ee=be(k),ue=!ee&&Mn(k),he=!ee&&!ue&&Br(k);q=k,ee||ue||he?be(y)?q=y:ze(y)?q=mt(y):ue?($=!1,q=of(k,!0)):he?($=!1,q=lf(k,!0)):q=[]:ui(k)||er(k)?(q=y,er(y)?q=nd(y):(!$e(y)||dn(y))&&(q=Cf(k))):$=!1}$&&(p.set(k,q),f(q,k,a,m,p),p.delete(k)),jl(e,i,q)}function Kc(e,n){var i=e.length;if(i)return n+=n<0?i:0,fn(n,i)?e[n]:o}function jc(e,n,i){n.length?n=Ne(n,function(m){return be(m)?function(p){return Zn(p,m.length===1?m[0]:m)}:m}):n=[vt];var a=-1;n=Ne(n,xt(de()));var f=Hc(e,function(m,p,y){var k=Ne(n,function(L){return L(m)});return{criteria:k,index:++a,value:m}});return Sp(f,function(m,p){return u0(m,p,i)})}function Qv(e,n){return Yc(e,n,function(i,a){return Ba(e,a)})}function Yc(e,n,i){for(var a=-1,f=n.length,m={};++a<f;){var p=n[a],y=Zn(e,p);i(y,p)&&ii(m,Rn(p,e),y)}return m}function Zv(e){return function(n){return Zn(n,e)}}function ra(e,n,i,a){var f=a?wp:br,m=-1,p=n.length,y=e;for(e===n&&(n=mt(n)),i&&(y=Ne(e,xt(i)));++m<p;)for(var k=0,L=n[m],q=i?i(L):L;(k=f(y,q,k,a))>-1;)y!==e&&uo.call(y,k,1),uo.call(e,k,1);return e}function Qc(e,n){for(var i=e?n.length:0,a=i-1;i--;){var f=n[i];if(i==a||f!==m){var m=f;fn(f)?uo.call(e,f,1):aa(e,f)}}return e}function ia(e,n){return e+fo(Bc()*(n-e+1))}function Xv(e,n,i,a){for(var f=-1,m=Ze(co((n-e)/(i||1)),0),p=I(m);m--;)p[a?m:++f]=e,e+=i;return p}function oa(e,n){var i="";if(!e||n<1||n>K)return i;do n%2&&(i+=e),n=fo(n/2),n&&(e+=e);while(n);return i}function Se(e,n){return Sa(Af(e,n,vt),e+"")}function Jv(e){return Mc(Rr(e))}function e0(e,n){var i=Rr(e);return To(i,Qn(n,0,i.length))}function ii(e,n,i,a){if(!$e(e))return e;n=Rn(n,e);for(var f=-1,m=n.length,p=m-1,y=e;y!=null&&++f<m;){var k=Jt(n[f]),L=i;if(k==="__proto__"||k==="constructor"||k==="prototype")return e;if(f!=p){var q=y[k];L=a?a(q,k,y):o,L===o&&(L=$e(q)?q:fn(n[f+1])?[]:{})}ei(y,k,L),y=y[k]}return e}var Zc=ho?function(e,n){return ho.set(e,n),e}:vt,t0=so?function(e,n){return so(e,"toString",{configurable:!0,enumerable:!1,value:Ia(n),writable:!0})}:vt;function n0(e){return To(Rr(e))}function qt(e,n,i){var a=-1,f=e.length;n<0&&(n=-n>f?0:f+n),i=i>f?f:i,i<0&&(i+=f),f=n>i?0:i-n>>>0,n>>>=0;for(var m=I(f);++a<f;)m[a]=e[a+n];return m}function r0(e,n){var i;return Tn(e,function(a,f,m){return i=n(a,f,m),!i}),!!i}function yo(e,n,i){var a=0,f=e==null?a:e.length;if(typeof n=="number"&&n===n&&f<=Z){for(;a<f;){var m=a+f>>>1,p=e[m];p!==null&&!kt(p)&&(i?p<=n:p<n)?a=m+1:f=m}return f}return la(e,n,vt,i)}function la(e,n,i,a){var f=0,m=e==null?0:e.length;if(m===0)return 0;n=i(n);for(var p=n!==n,y=n===null,k=kt(n),L=n===o;f<m;){var q=fo((f+m)/2),$=i(e[q]),ee=$!==o,ue=$===null,he=$===$,we=kt($);if(p)var me=a||he;else L?me=he&&(a||ee):y?me=he&&ee&&(a||!ue):k?me=he&&ee&&!ue&&(a||!we):ue||we?me=!1:me=a?$<=n:$<n;me?f=q+1:m=q}return rt(m,O)}function Xc(e,n){for(var i=-1,a=e.length,f=0,m=[];++i<a;){var p=e[i],y=n?n(p):p;if(!i||!Kt(y,k)){var k=y;m[f++]=p===0?0:p}}return m}function Jc(e){return typeof e=="number"?e:kt(e)?ge:+e}function Ct(e){if(typeof e=="string")return e;if(be(e))return Ne(e,Ct)+"";if(kt(e))return Rc?Rc.call(e):"";var n=e+"";return n=="0"&&1/e==-ce?"-0":n}function Bn(e,n,i){var a=-1,f=Xi,m=e.length,p=!0,y=[],k=y;if(i)p=!1,f=ql;else if(m>=s){var L=n?null:m0(e);if(L)return eo(L);p=!1,f=jr,k=new Yn}else k=n?[]:y;e:for(;++a<m;){var q=e[a],$=n?n(q):q;if(q=i||q!==0?q:0,p&&$===$){for(var ee=k.length;ee--;)if(k[ee]===$)continue e;n&&k.push($),y.push(q)}else f(k,$,i)||(k!==y&&k.push($),y.push(q))}return y}function aa(e,n){return n=Rn(n,e),e=Of(e,n),e==null||delete e[Jt(Vt(n))]}function ef(e,n,i,a){return ii(e,n,i(Zn(e,n)),a)}function wo(e,n,i,a){for(var f=e.length,m=a?f:-1;(a?m--:++m<f)&&n(e[m],m,e););return i?qt(e,a?0:m,a?m+1:f):qt(e,a?m+1:0,a?f:m)}function tf(e,n){var i=e;return i instanceof ke&&(i=i.value()),Vl(n,function(a,f){return f.func.apply(f.thisArg,En([a],f.args))},i)}function ua(e,n,i){var a=e.length;if(a<2)return a?Bn(e[0]):[];for(var f=-1,m=I(a);++f<a;)for(var p=e[f],y=-1;++y<a;)y!=f&&(m[f]=ti(m[f]||p,e[y],n,i));return Bn(tt(m,1),n,i)}function nf(e,n,i){for(var a=-1,f=e.length,m=n.length,p={};++a<f;){var y=a<m?n[a]:o;i(p,e[a],y)}return p}function sa(e){return ze(e)?e:[]}function ca(e){return typeof e=="function"?e:vt}function Rn(e,n){return be(e)?e:ba(e,n)?[e]:If(Te(e))}var i0=Se;function In(e,n,i){var a=e.length;return i=i===o?a:i,!n&&i>=a?e:qt(e,n,i)}var rf=Wp||function(e){return et.clearTimeout(e)};function of(e,n){if(n)return e.slice();var i=e.length,a=kc?kc(i):new e.constructor(i);return e.copy(a),a}function fa(e){var n=new e.constructor(e.byteLength);return new lo(n).set(new lo(e)),n}function o0(e,n){var i=n?fa(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function l0(e){var n=new e.constructor(e.source,on.exec(e));return n.lastIndex=e.lastIndex,n}function a0(e){return Jr?Me(Jr.call(e)):{}}function lf(e,n){var i=n?fa(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function af(e,n){if(e!==n){var i=e!==o,a=e===null,f=e===e,m=kt(e),p=n!==o,y=n===null,k=n===n,L=kt(n);if(!y&&!L&&!m&&e>n||m&&p&&k&&!y&&!L||a&&p&&k||!i&&k||!f)return 1;if(!a&&!m&&!L&&e<n||L&&i&&f&&!a&&!m||y&&i&&f||!p&&f||!k)return-1}return 0}function u0(e,n,i){for(var a=-1,f=e.criteria,m=n.criteria,p=f.length,y=i.length;++a<p;){var k=af(f[a],m[a]);if(k){if(a>=y)return k;var L=i[a];return k*(L=="desc"?-1:1)}}return e.index-n.index}function uf(e,n,i,a){for(var f=-1,m=e.length,p=i.length,y=-1,k=n.length,L=Ze(m-p,0),q=I(k+L),$=!a;++y<k;)q[y]=n[y];for(;++f<p;)($||f<m)&&(q[i[f]]=e[f]);for(;L--;)q[y++]=e[f++];return q}function sf(e,n,i,a){for(var f=-1,m=e.length,p=-1,y=i.length,k=-1,L=n.length,q=Ze(m-y,0),$=I(q+L),ee=!a;++f<q;)$[f]=e[f];for(var ue=f;++k<L;)$[ue+k]=n[k];for(;++p<y;)(ee||f<m)&&($[ue+i[p]]=e[f++]);return $}function mt(e,n){var i=-1,a=e.length;for(n||(n=I(a));++i<a;)n[i]=e[i];return n}function Xt(e,n,i,a){var f=!i;i||(i={});for(var m=-1,p=n.length;++m<p;){var y=n[m],k=a?a(i[y],e[y],y,i,e):o;k===o&&(k=e[y]),f?un(i,y,k):ei(i,y,k)}return i}function s0(e,n){return Xt(e,_a(e),n)}function c0(e,n){return Xt(e,Sf(e),n)}function So(e,n){return function(i,a){var f=be(i)?gp:Iv,m=n?n():{};return f(i,e,de(a,2),m)}}function Ar(e){return Se(function(n,i){var a=-1,f=i.length,m=f>1?i[f-1]:o,p=f>2?i[2]:o;for(m=e.length>3&&typeof m=="function"?(f--,m):o,p&&at(i[0],i[1],p)&&(m=f<3?o:m,f=1),n=Me(n);++a<f;){var y=i[a];y&&e(n,y,a,m)}return n})}function cf(e,n){return function(i,a){if(i==null)return i;if(!gt(i))return e(i,a);for(var f=i.length,m=n?f:-1,p=Me(i);(n?m--:++m<f)&&a(p[m],m,p)!==!1;);return i}}function ff(e){return function(n,i,a){for(var f=-1,m=Me(n),p=a(n),y=p.length;y--;){var k=p[e?y:++f];if(i(m[k],k,m)===!1)break}return n}}function f0(e,n,i){var a=n&R,f=oi(e);function m(){var p=this&&this!==et&&this instanceof m?f:e;return p.apply(a?i:this,arguments)}return m}function df(e){return function(n){n=Te(n);var i=yr(n)?Wt(n):o,a=i?i[0]:n.charAt(0),f=i?In(i,1).join(""):n.slice(1);return a[e]()+f}}function Or(e){return function(n){return Vl(cd(sd(n).replace(tp,"")),e,"")}}function oi(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 i=Er(e.prototype),a=e.apply(i,n);return $e(a)?a:i}}function d0(e,n,i){var a=oi(e);function f(){for(var m=arguments.length,p=I(m),y=m,k=Tr(f);y--;)p[y]=arguments[y];var L=m<3&&p[0]!==k&&p[m-1]!==k?[]:An(p,k);if(m-=L.length,m<i)return vf(e,n,xo,f.placeholder,o,p,L,o,o,i-m);var q=this&&this!==et&&this instanceof f?a:e;return St(q,this,p)}return f}function hf(e){return function(n,i,a){var f=Me(n);if(!gt(n)){var m=de(i,3);n=Xe(n),i=function(y){return m(f[y],y,f)}}var p=e(n,i,a);return p>-1?f[m?n[p]:p]:o}}function mf(e){return cn(function(n){var i=n.length,a=i,f=Mt.prototype.thru;for(e&&n.reverse();a--;){var m=n[a];if(typeof m!="function")throw new It(h);if(f&&!p&&Ao(m)=="wrapper")var p=new Mt([],!0)}for(a=p?a:i;++a<i;){m=n[a];var y=Ao(m),k=y=="wrapper"?pa(m):o;k&&ya(k[0])&&k[1]==(W|N|z|oe)&&!k[4].length&&k[9]==1?p=p[Ao(k[0])].apply(p,k[3]):p=m.length==1&&ya(m)?p[y]():p.thru(m)}return function(){var L=arguments,q=L[0];if(p&&L.length==1&&be(q))return p.plant(q).value();for(var $=0,ee=i?n[$].apply(this,L):q;++$<i;)ee=n[$].call(this,ee);return ee}})}function xo(e,n,i,a,f,m,p,y,k,L){var q=n&W,$=n&R,ee=n&G,ue=n&(N|Y),he=n&V,we=ee?o:oi(e);function me(){for(var Ce=arguments.length,Ee=I(Ce),Et=Ce;Et--;)Ee[Et]=arguments[Et];if(ue)var ut=Tr(me),At=Cp(Ee,ut);if(a&&(Ee=uf(Ee,a,f,ue)),m&&(Ee=sf(Ee,m,p,ue)),Ce-=At,ue&&Ce<L){var He=An(Ee,ut);return vf(e,n,xo,me.placeholder,i,Ee,He,y,k,L-Ce)}var jt=$?i:this,mn=ee?jt[e]:e;return Ce=Ee.length,y?Ee=I0(Ee,y):he&&Ce>1&&Ee.reverse(),q&&k<Ce&&(Ee.length=k),this&&this!==et&&this instanceof me&&(mn=we||oi(mn)),mn.apply(jt,Ee)}return me}function gf(e,n){return function(i,a){return $v(i,e,n(a),{})}}function Co(e,n){return function(i,a){var f;if(i===o&&a===o)return n;if(i!==o&&(f=i),a!==o){if(f===o)return a;typeof i=="string"||typeof a=="string"?(i=Ct(i),a=Ct(a)):(i=Jc(i),a=Jc(a)),f=e(i,a)}return f}}function da(e){return cn(function(n){return n=Ne(n,xt(de())),Se(function(i){var a=this;return e(n,function(f){return St(f,a,i)})})})}function ko(e,n){n=n===o?" ":Ct(n);var i=n.length;if(i<2)return i?oa(n,e):n;var a=oa(n,co(e/wr(n)));return yr(n)?In(Wt(a),0,e).join(""):a.slice(0,e)}function h0(e,n,i,a){var f=n&R,m=oi(e);function p(){for(var y=-1,k=arguments.length,L=-1,q=a.length,$=I(q+k),ee=this&&this!==et&&this instanceof p?m:e;++L<q;)$[L]=a[L];for(;k--;)$[L++]=arguments[++y];return St(ee,f?i:this,$)}return p}function pf(e){return function(n,i,a){return a&&typeof a!="number"&&at(n,i,a)&&(i=a=o),n=hn(n),i===o?(i=n,n=0):i=hn(i),a=a===o?n<i?1:-1:hn(a),Xv(n,i,a,e)}}function Eo(e){return function(n,i){return typeof n=="string"&&typeof i=="string"||(n=Pt(n),i=Pt(i)),e(n,i)}}function vf(e,n,i,a,f,m,p,y,k,L){var q=n&N,$=q?p:o,ee=q?o:p,ue=q?m:o,he=q?o:m;n|=q?z:j,n&=~(q?j:z),n&F||(n&=~(R|G));var we=[e,n,f,ue,$,he,ee,y,k,L],me=i.apply(o,we);return ya(e)&&Tf(me,we),me.placeholder=a,Bf(me,e,n)}function ha(e){var n=Qe[e];return function(i,a){if(i=Pt(i),a=a==null?0:rt(ye(a),292),a&&Tc(i)){var f=(Te(i)+"e").split("e"),m=n(f[0]+"e"+(+f[1]+a));return f=(Te(m)+"e").split("e"),+(f[0]+"e"+(+f[1]-a))}return n(i)}}var m0=Cr&&1/eo(new Cr([,-0]))[1]==ce?function(e){return new Cr(e)}:qa;function _f(e){return function(n){var i=it(n);return i==nt?zl(n):i==Fe?Rp(n):xp(n,e(n))}}function sn(e,n,i,a,f,m,p,y){var k=n&G;if(!k&&typeof e!="function")throw new It(h);var L=a?a.length:0;if(L||(n&=~(z|j),a=f=o),p=p===o?p:Ze(ye(p),0),y=y===o?y:ye(y),L-=f?f.length:0,n&j){var q=a,$=f;a=f=o}var ee=k?o:pa(e),ue=[e,n,i,a,f,q,$,m,p,y];if(ee&&T0(ue,ee),e=ue[0],n=ue[1],i=ue[2],a=ue[3],f=ue[4],y=ue[9]=ue[9]===o?k?0:e.length:Ze(ue[9]-L,0),!y&&n&(N|Y)&&(n&=~(N|Y)),!n||n==R)var he=f0(e,n,i);else n==N||n==Y?he=d0(e,n,y):(n==z||n==(R|z))&&!f.length?he=h0(e,n,i,a):he=xo.apply(o,ue);var we=ee?Zc:Tf;return Bf(we(he,ue),e,n)}function bf(e,n,i,a){return e===o||Kt(e,xr[i])&&!Re.call(a,i)?n:e}function yf(e,n,i,a,f,m){return $e(e)&&$e(n)&&(m.set(n,e),bo(e,n,o,yf,m),m.delete(n)),e}function g0(e){return ui(e)?o:e}function wf(e,n,i,a,f,m){var p=i&T,y=e.length,k=n.length;if(y!=k&&!(p&&k>y))return!1;var L=m.get(e),q=m.get(n);if(L&&q)return L==n&&q==e;var $=-1,ee=!0,ue=i&U?new Yn:o;for(m.set(e,n),m.set(n,e);++$<y;){var he=e[$],we=n[$];if(a)var me=p?a(we,he,$,n,e,m):a(he,we,$,e,n,m);if(me!==o){if(me)continue;ee=!1;break}if(ue){if(!Pl(n,function(Ce,Ee){if(!jr(ue,Ee)&&(he===Ce||f(he,Ce,i,a,m)))return ue.push(Ee)})){ee=!1;break}}else if(!(he===we||f(he,we,i,a,m))){ee=!1;break}}return m.delete(e),m.delete(n),ee}function p0(e,n,i,a,f,m,p){switch(i){case yn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case nn:return!(e.byteLength!=n.byteLength||!m(new lo(e),new lo(n)));case Ae:case X:case wt:return Kt(+e,+n);case ot:return e.name==n.name&&e.message==n.message;case Ut:case Ye:return e==n+"";case nt:var y=zl;case Fe:var k=a&T;if(y||(y=eo),e.size!=n.size&&!k)return!1;var L=p.get(e);if(L)return L==n;a|=U,p.set(e,n);var q=wf(y(e),y(n),a,f,m,p);return p.delete(e),q;case zt:if(Jr)return Jr.call(e)==Jr.call(n)}return!1}function v0(e,n,i,a,f,m){var p=i&T,y=ma(e),k=y.length,L=ma(n),q=L.length;if(k!=q&&!p)return!1;for(var $=k;$--;){var ee=y[$];if(!(p?ee in n:Re.call(n,ee)))return!1}var ue=m.get(e),he=m.get(n);if(ue&&he)return ue==n&&he==e;var we=!0;m.set(e,n),m.set(n,e);for(var me=p;++$<k;){ee=y[$];var Ce=e[ee],Ee=n[ee];if(a)var Et=p?a(Ee,Ce,ee,n,e,m):a(Ce,Ee,ee,e,n,m);if(!(Et===o?Ce===Ee||f(Ce,Ee,i,a,m):Et)){we=!1;break}me||(me=ee=="constructor")}if(we&&!me){var ut=e.constructor,At=n.constructor;ut!=At&&"constructor"in e&&"constructor"in n&&!(typeof ut=="function"&&ut instanceof ut&&typeof At=="function"&&At instanceof At)&&(we=!1)}return m.delete(e),m.delete(n),we}function cn(e){return Sa(Af(e,o,Vf),e+"")}function ma(e){return $c(e,Xe,_a)}function ga(e){return $c(e,pt,Sf)}var pa=ho?function(e){return ho.get(e)}:qa;function Ao(e){for(var n=e.name+"",i=kr[n],a=Re.call(kr,n)?i.length:0;a--;){var f=i[a],m=f.func;if(m==null||m==e)return f.name}return n}function Tr(e){var n=Re.call(d,"placeholder")?d:e;return n.placeholder}function de(){var e=d.iteratee||Ma;return e=e===Ma?zc:e,arguments.length?e(arguments[0],arguments[1]):e}function Oo(e,n){var i=e.__data__;return k0(n)?i[typeof n=="string"?"string":"hash"]:i.map}function va(e){for(var n=Xe(e),i=n.length;i--;){var a=n[i],f=e[a];n[i]=[a,f,kf(f)]}return n}function Xn(e,n){var i=Op(e,n);return Uc(i)?i:o}function _0(e){var n=Re.call(e,Kn),i=e[Kn];try{e[Kn]=o;var a=!0}catch{}var f=io.call(e);return a&&(n?e[Kn]=i:delete e[Kn]),f}var _a=Wl?function(e){return e==null?[]:(e=Me(e),kn(Wl(e),function(n){return Ac.call(e,n)}))}:Va,Sf=Wl?function(e){for(var n=[];e;)En(n,_a(e)),e=ao(e);return n}:Va,it=lt;(Gl&&it(new Gl(new ArrayBuffer(1)))!=yn||Qr&&it(new Qr)!=nt||Kl&&it(Kl.resolve())!=bn||Cr&&it(new Cr)!=Fe||Zr&&it(new Zr)!=Fn)&&(it=function(e){var n=lt(e),i=n==ht?e.constructor:o,a=i?Jn(i):"";if(a)switch(a){case ev:return yn;case tv:return nt;case nv:return bn;case rv:return Fe;case iv:return Fn}return n});function b0(e,n,i){for(var a=-1,f=i.length;++a<f;){var m=i[a],p=m.size;switch(m.type){case"drop":e+=p;break;case"dropRight":n-=p;break;case"take":n=rt(n,e+p);break;case"takeRight":e=Ze(e,n-p);break}}return{start:e,end:n}}function y0(e){var n=e.match(Cl);return n?n[1].split(kl):[]}function xf(e,n,i){n=Rn(n,e);for(var a=-1,f=n.length,m=!1;++a<f;){var p=Jt(n[a]);if(!(m=e!=null&&i(e,p)))break;e=e[p]}return m||++a!=f?m:(f=e==null?0:e.length,!!f&&qo(f)&&fn(p,f)&&(be(e)||er(e)))}function w0(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&Re.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function Cf(e){return typeof e.constructor=="function"&&!li(e)?Er(ao(e)):{}}function S0(e,n,i){var a=e.constructor;switch(n){case nn:return fa(e);case Ae:case X:return new a(+e);case yn:return o0(e,i);case mr:case Ht:case Qt:case wn:case zr:case Un:case zn:case gr:case pr:return lf(e,i);case nt:return new a;case wt:case Ye:return new a(e);case Ut:return l0(e);case Fe:return new a;case zt:return a0(e)}}function x0(e,n){var i=n.length;if(!i)return e;var a=i-1;return n[a]=(i>1?"& ":"")+n[a],n=n.join(i>2?", ":" "),e.replace(xl,`{
9
9
  /* [wrapped with `+n+`] */
10
- `)}function v0(e){return be(e)||Jn(e)||!!(bc&&e&&e[bc])}function fn(e,n){var i=typeof e;return n=n??W,!!n&&(i=="number"||i!="symbol"&&zi.test(e))&&e>-1&&e%1==0&&e<n}function at(e,n,i){if(!$e(i))return!1;var a=typeof n;return(a=="number"?ht(i)&&fn(n,i.length):a=="string"&&n in i)?Kt(i[n],e):!1}function oa(e,n){if(be(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||kt(e)?!0:wn.test(e)||!Hn.test(e)||n!=null&&e in Me(n)}function _0(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function aa(e){var n=yl(e),i=d[n];if(typeof i!="function"||!(n in ke.prototype))return!1;if(e===i)return!0;var a=ra(i);return!!a&&e===a[0]}function b0(e){return!!gc&&gc in e}var y0=Qi?dn:Ca;function ri(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||xr;return e===i}function pf(e){return e===e&&!$e(e)}function vf(e,n){return function(i){return i==null?!1:i[e]===n&&(n!==l||e in Me(i))}}function w0(e){var n=El(e,function(a){return i.size===C&&i.clear(),a}),i=n.cache;return n}function S0(e,n){var i=e[1],a=n[1],f=i|a,m=f<(R|H|K),p=a==K&&i==N||a==K&&i==le&&e[7].length<=n[8]||a==(K|le)&&n[7].length<=n[8]&&i==N;if(!(m||p))return e;a&R&&(e[2]=n[2],f|=i&R?0:F);var b=n[3];if(b){var x=e[3];e[3]=x?Xc(x,b,n[4]):b,e[4]=x?En(e[3],v):n[4]}return b=n[5],b&&(x=e[5],e[5]=x?Jc(x,b,n[6]):b,e[6]=x?En(e[5],v):n[6]),b=n[7],b&&(e[7]=b),a&K&&(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]=f,e}function x0(e){var n=[];if(e!=null)for(var i in Me(e))n.push(i);return n}function C0(e){return Xi.call(e)}function _f(e,n,i){return n=Qe(n===l?e.length-1:n,0),function(){for(var a=arguments,f=-1,m=Qe(a.length-n,0),p=I(m);++f<m;)p[f]=a[n+f];f=-1;for(var b=I(n+1);++f<n;)b[f]=a[f];return b[n]=i(p),St(e,this,b)}}function bf(e,n){return n.length<2?e:Qn(e,qt(n,0,-1))}function k0(e,n){for(var i=e.length,a=rt(n.length,i),f=dt(e);a--;){var m=n[a];e[a]=fn(m,i)?f[m]:l}return e}function ua(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var yf=Sf(Uc),ii=$p||function(e,n){return et.setTimeout(e,n)},sa=Sf(jv);function wf(e,n,i){var a=n+"";return sa(e,p0(a,E0(h0(a),i)))}function Sf(e){var n=0,i=0;return function(){var a=Hp(),f=te-(a-i);if(i=a,f>0){if(++n>=A)return arguments[0]}else n=0;return e.apply(l,arguments)}}function Sl(e,n){var i=-1,a=e.length,f=a-1;for(n=n===l?a:n;++i<n;){var m=Wo(i,f),p=e[m];e[m]=e[i],e[i]=p}return e.length=n,e}var xf=w0(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(oo,function(i,a,f,m){n.push(f?m.replace(xn,"$1"):a||i)}),n});function Jt(e){if(typeof e=="string"||kt(e))return e;var n=e+"";return n=="0"&&1/e==-fe?"-0":n}function Xn(e){if(e!=null){try{return Zi.call(e)}catch{}try{return e+""}catch{}}return""}function E0(e,n){return Rt(ve,function(i){var a="_."+i[0];n&i[1]&&!Gi(e,a)&&e.push(a)}),e.sort()}function Cf(e){if(e instanceof ke)return e.clone();var n=new Mt(e.__wrapped__,e.__chain__);return n.__actions__=dt(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function A0(e,n,i){(i?at(e,n,i):n===l)?n=1:n=Qe(ye(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var f=0,m=0,p=I(il(a/n));f<a;)p[m++]=qt(e,f,f+=n);return p}function O0(e){for(var n=-1,i=e==null?0:e.length,a=0,f=[];++n<i;){var m=e[n];m&&(f[a++]=m)}return f}function T0(){var e=arguments.length;if(!e)return[];for(var n=I(e-1),i=arguments[0],a=e;a--;)n[a-1]=arguments[a];return kn(be(i)?dt(i):[i],tt(n,1))}var B0=Se(function(e,n){return ze(e)?Xr(e,tt(n,1,ze,!0)):[]}),R0=Se(function(e,n){var i=Vt(n);return ze(i)&&(i=l),ze(e)?Xr(e,tt(n,1,ze,!0),ce(i,2)):[]}),I0=Se(function(e,n){var i=Vt(n);return ze(i)&&(i=l),ze(e)?Xr(e,tt(n,1,ze,!0),l,i):[]});function M0(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===l?1:ye(n),qt(e,n<0?0:n,a)):[]}function L0(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===l?1:ye(n),n=a-n,qt(e,0,n<0?0:n)):[]}function q0(e,n){return e&&e.length?ml(e,ce(n,3),!0,!0):[]}function V0(e,n){return e&&e.length?ml(e,ce(n,3),!0):[]}function P0(e,n,i,a){var f=e==null?0:e.length;return f?(i&&typeof i!="number"&&at(e,n,i)&&(i=0,a=f),Tv(e,n,i,a)):[]}function kf(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=i==null?0:ye(i);return f<0&&(f=Qe(a+f,0)),Ki(e,ce(n,3),f)}function Ef(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=a-1;return i!==l&&(f=ye(i),f=i<0?Qe(a+f,0):rt(f,a-1)),Ki(e,ce(n,3),f,!0)}function Af(e){var n=e==null?0:e.length;return n?tt(e,1):[]}function N0(e){var n=e==null?0:e.length;return n?tt(e,fe):[]}function D0(e,n){var i=e==null?0:e.length;return i?(n=n===l?1:ye(n),tt(e,n)):[]}function $0(e){for(var n=-1,i=e==null?0:e.length,a={};++n<i;){var f=e[n];a[f[0]]=f[1]}return a}function Of(e){return e&&e.length?e[0]:l}function F0(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=i==null?0:ye(i);return f<0&&(f=Qe(a+f,0)),br(e,n,f)}function U0(e){var n=e==null?0:e.length;return n?qt(e,0,-1):[]}var z0=Se(function(e){var n=Pe(e,Qo);return n.length&&n[0]===e[0]?$o(n):[]}),H0=Se(function(e){var n=Vt(e),i=Pe(e,Qo);return n===Vt(i)?n=l:i.pop(),i.length&&i[0]===e[0]?$o(i,ce(n,2)):[]}),W0=Se(function(e){var n=Vt(e),i=Pe(e,Qo);return n=typeof n=="function"?n:l,n&&i.pop(),i.length&&i[0]===e[0]?$o(i,l,n):[]});function G0(e,n){return e==null?"":Up.call(e,n)}function Vt(e){var n=e==null?0:e.length;return n?e[n-1]:l}function K0(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=a;return i!==l&&(f=ye(i),f=f<0?Qe(a+f,0):rt(f,a-1)),n===n?Ep(e,n,f):Ki(e,ac,f,!0)}function j0(e,n){return e&&e.length?Nc(e,ye(n)):l}var Y0=Se(Tf);function Tf(e,n){return e&&e.length&&n&&n.length?Ho(e,n):e}function Q0(e,n,i){return e&&e.length&&n&&n.length?Ho(e,n,ce(i,2)):e}function Z0(e,n,i){return e&&e.length&&n&&n.length?Ho(e,n,l,i):e}var X0=cn(function(e,n){var i=e==null?0:e.length,a=Vo(e,n);return Fc(e,Pe(n,function(f){return fn(f,i)?+f:f}).sort(Zc)),a});function J0(e,n){var i=[];if(!(e&&e.length))return i;var a=-1,f=[],m=e.length;for(n=ce(n,3);++a<m;){var p=e[a];n(p,a,e)&&(i.push(p),f.push(a))}return Fc(e,f),i}function ca(e){return e==null?e:Gp.call(e)}function e_(e,n,i){var a=e==null?0:e.length;return a?(i&&typeof i!="number"&&at(e,n,i)?(n=0,i=a):(n=n==null?0:ye(n),i=i===l?a:ye(i)),qt(e,n,i)):[]}function t_(e,n){return hl(e,n)}function n_(e,n,i){return Ko(e,n,ce(i,2))}function r_(e,n){var i=e==null?0:e.length;if(i){var a=hl(e,n);if(a<i&&Kt(e[a],n))return a}return-1}function i_(e,n){return hl(e,n,!0)}function l_(e,n,i){return Ko(e,n,ce(i,2),!0)}function o_(e,n){var i=e==null?0:e.length;if(i){var a=hl(e,n,!0)-1;if(Kt(e[a],n))return a}return-1}function a_(e){return e&&e.length?zc(e):[]}function u_(e,n){return e&&e.length?zc(e,ce(n,2)):[]}function s_(e){var n=e==null?0:e.length;return n?qt(e,1,n):[]}function c_(e,n,i){return e&&e.length?(n=i||n===l?1:ye(n),qt(e,0,n<0?0:n)):[]}function f_(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===l?1:ye(n),n=a-n,qt(e,n<0?0:n,a)):[]}function d_(e,n){return e&&e.length?ml(e,ce(n,3),!1,!0):[]}function h_(e,n){return e&&e.length?ml(e,ce(n,3)):[]}var m_=Se(function(e){return Tn(tt(e,1,ze,!0))}),g_=Se(function(e){var n=Vt(e);return ze(n)&&(n=l),Tn(tt(e,1,ze,!0),ce(n,2))}),p_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:l,Tn(tt(e,1,ze,!0),l,n)});function v_(e){return e&&e.length?Tn(e):[]}function __(e,n){return e&&e.length?Tn(e,ce(n,2)):[]}function b_(e,n){return n=typeof n=="function"?n:l,e&&e.length?Tn(e,l,n):[]}function fa(e){if(!(e&&e.length))return[];var n=0;return e=Cn(e,function(i){if(ze(i))return n=Qe(i.length,n),!0}),Oo(n,function(i){return Pe(e,ko(i))})}function Bf(e,n){if(!(e&&e.length))return[];var i=fa(e);return n==null?i:Pe(i,function(a){return St(n,l,a)})}var y_=Se(function(e,n){return ze(e)?Xr(e,n):[]}),w_=Se(function(e){return Yo(Cn(e,ze))}),S_=Se(function(e){var n=Vt(e);return ze(n)&&(n=l),Yo(Cn(e,ze),ce(n,2))}),x_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:l,Yo(Cn(e,ze),l,n)}),C_=Se(fa);function k_(e,n){return Kc(e||[],n||[],Zr)}function E_(e,n){return Kc(e||[],n||[],ti)}var A_=Se(function(e){var n=e.length,i=n>1?e[n-1]:l;return i=typeof i=="function"?(e.pop(),i):l,Bf(e,i)});function Rf(e){var n=d(e);return n.__chain__=!0,n}function O_(e,n){return n(e),e}function xl(e,n){return n(e)}var T_=cn(function(e){var n=e.length,i=n?e[0]:0,a=this.__wrapped__,f=function(m){return Vo(m,e)};return n>1||this.__actions__.length||!(a instanceof ke)||!fn(i)?this.thru(f):(a=a.slice(i,+i+(n?1:0)),a.__actions__.push({func:xl,args:[f],thisArg:l}),new Mt(a,this.__chain__).thru(function(m){return n&&!m.length&&m.push(l),m}))});function B_(){return Rf(this)}function R_(){return new Mt(this.value(),this.__chain__)}function I_(){this.__values__===l&&(this.__values__=Wf(this.value()));var e=this.__index__>=this.__values__.length,n=e?l:this.__values__[this.__index__++];return{done:e,value:n}}function M_(){return this}function L_(e){for(var n,i=this;i instanceof ul;){var a=Cf(i);a.__index__=0,a.__values__=l,n?f.__wrapped__=a:n=a;var f=a;i=i.__wrapped__}return f.__wrapped__=e,n}function q_(){var e=this.__wrapped__;if(e instanceof ke){var n=e;return this.__actions__.length&&(n=new ke(this)),n=n.reverse(),n.__actions__.push({func:xl,args:[ca],thisArg:l}),new Mt(n,this.__chain__)}return this.thru(ca)}function V_(){return Gc(this.__wrapped__,this.__actions__)}var P_=gl(function(e,n,i){Re.call(e,i)?++e[i]:un(e,i,1)});function N_(e,n,i){var a=be(e)?lc:Ov;return i&&at(e,n,i)&&(n=l),a(e,ce(n,3))}function D_(e,n){var i=be(e)?Cn:Tc;return i(e,ce(n,3))}var $_=rf(kf),F_=rf(Ef);function U_(e,n){return tt(Cl(e,n),1)}function z_(e,n){return tt(Cl(e,n),fe)}function H_(e,n,i){return i=i===l?1:ye(i),tt(Cl(e,n),i)}function If(e,n){var i=be(e)?Rt:On;return i(e,ce(n,3))}function Mf(e,n){var i=be(e)?sp:Oc;return i(e,ce(n,3))}var W_=gl(function(e,n,i){Re.call(e,i)?e[i].push(n):un(e,i,[n])});function G_(e,n,i,a){e=ht(e)?e:Rr(e),i=i&&!a?ye(i):0;var f=e.length;return i<0&&(i=Qe(f+i,0)),Tl(e)?i<=f&&e.indexOf(n,i)>-1:!!f&&br(e,n,i)>-1}var K_=Se(function(e,n,i){var a=-1,f=typeof n=="function",m=ht(e)?I(e.length):[];return On(e,function(p){m[++a]=f?St(n,p,i):Jr(p,n,i)}),m}),j_=gl(function(e,n,i){un(e,i,n)});function Cl(e,n){var i=be(e)?Pe:qc;return i(e,ce(n,3))}function Y_(e,n,i,a){return e==null?[]:(be(n)||(n=n==null?[]:[n]),i=a?l:i,be(i)||(i=i==null?[]:[i]),Dc(e,n,i))}var Q_=gl(function(e,n,i){e[i?0:1].push(n)},function(){return[[],[]]});function Z_(e,n,i){var a=be(e)?xo:sc,f=arguments.length<3;return a(e,ce(n,4),i,f,On)}function X_(e,n,i){var a=be(e)?cp:sc,f=arguments.length<3;return a(e,ce(n,4),i,f,Oc)}function J_(e,n){var i=be(e)?Cn:Tc;return i(e,Al(ce(n,3)))}function eb(e){var n=be(e)?Cc:Gv;return n(e)}function tb(e,n,i){(i?at(e,n,i):n===l)?n=1:n=ye(n);var a=be(e)?xv:Kv;return a(e,n)}function nb(e){var n=be(e)?Cv:Yv;return n(e)}function rb(e){if(e==null)return 0;if(ht(e))return Tl(e)?wr(e):e.length;var n=it(e);return n==nt||n==Fe?e.size:Uo(e).length}function ib(e,n,i){var a=be(e)?Co:Qv;return i&&at(e,n,i)&&(n=l),a(e,ce(n,3))}var lb=Se(function(e,n){if(e==null)return[];var i=n.length;return i>1&&at(e,n[0],n[1])?n=[]:i>2&&at(n[0],n[1],n[2])&&(n=[n[0]]),Dc(e,tt(n,1),[])}),kl=Dp||function(){return et.Date.now()};function ob(e,n){if(typeof n!="function")throw new It(h);return e=ye(e),function(){if(--e<1)return n.apply(this,arguments)}}function Lf(e,n,i){return n=i?l:n,n=e&&n==null?e.length:n,sn(e,K,l,l,l,l,n)}function qf(e,n){var i;if(typeof n!="function")throw new It(h);return e=ye(e),function(){return--e>0&&(i=n.apply(this,arguments)),e<=1&&(n=l),i}}var da=Se(function(e,n,i){var a=R;if(i.length){var f=En(i,Tr(da));a|=G}return sn(e,a,n,i,f)}),Vf=Se(function(e,n,i){var a=R|H;if(i.length){var f=En(i,Tr(Vf));a|=G}return sn(n,a,e,i,f)});function Pf(e,n,i){n=i?l:n;var a=sn(e,N,l,l,l,l,l,n);return a.placeholder=Pf.placeholder,a}function Nf(e,n,i){n=i?l:n;var a=sn(e,Q,l,l,l,l,l,n);return a.placeholder=Nf.placeholder,a}function Df(e,n,i){var a,f,m,p,b,x,L=0,q=!1,D=!1,J=!0;if(typeof e!="function")throw new It(h);n=Pt(n)||0,$e(i)&&(q=!!i.leading,D="maxWait"in i,m=D?Qe(Pt(i.maxWait)||0,n):m,J="trailing"in i?!!i.trailing:J);function oe(He){var jt=a,mn=f;return a=f=l,L=He,p=e.apply(mn,jt),p}function de(He){return L=He,b=ii(Ce,n),q?oe(He):p}function we(He){var jt=He-x,mn=He-L,id=n-jt;return D?rt(id,m-mn):id}function he(He){var jt=He-x,mn=He-L;return x===l||jt>=n||jt<0||D&&mn>=m}function Ce(){var He=kl();if(he(He))return Ee(He);b=ii(Ce,we(He))}function Ee(He){return b=l,J&&a?oe(He):(a=f=l,p)}function Et(){b!==l&&jc(b),L=0,a=x=f=b=l}function ut(){return b===l?p:Ee(kl())}function At(){var He=kl(),jt=he(He);if(a=arguments,f=this,x=He,jt){if(b===l)return de(x);if(D)return jc(b),b=ii(Ce,n),oe(x)}return b===l&&(b=ii(Ce,n)),p}return At.cancel=Et,At.flush=ut,At}var ab=Se(function(e,n){return Ac(e,1,n)}),ub=Se(function(e,n,i){return Ac(e,Pt(n)||0,i)});function sb(e){return sn(e,V)}function El(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new It(h);var i=function(){var a=arguments,f=n?n.apply(this,a):a[0],m=i.cache;if(m.has(f))return m.get(f);var p=e.apply(this,a);return i.cache=m.set(f,p)||m,p};return i.cache=new(El.Cache||an),i}El.Cache=an;function Al(e){if(typeof e!="function")throw new It(h);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 cb(e){return qf(2,e)}var fb=Zv(function(e,n){n=n.length==1&&be(n[0])?Pe(n[0],xt(ce())):Pe(tt(n,1),xt(ce()));var i=n.length;return Se(function(a){for(var f=-1,m=rt(a.length,i);++f<m;)a[f]=n[f].call(this,a[f]);return St(e,this,a)})}),ha=Se(function(e,n){var i=En(n,Tr(ha));return sn(e,G,l,n,i)}),$f=Se(function(e,n){var i=En(n,Tr($f));return sn(e,j,l,n,i)}),db=cn(function(e,n){return sn(e,le,l,l,l,n)});function hb(e,n){if(typeof e!="function")throw new It(h);return n=n===l?n:ye(n),Se(e,n)}function mb(e,n){if(typeof e!="function")throw new It(h);return n=n==null?0:Qe(ye(n),0),Se(function(i){var a=i[n],f=Rn(i,0,n);return a&&kn(f,a),St(e,this,f)})}function gb(e,n,i){var a=!0,f=!0;if(typeof e!="function")throw new It(h);return $e(i)&&(a="leading"in i?!!i.leading:a,f="trailing"in i?!!i.trailing:f),Df(e,n,{leading:a,maxWait:n,trailing:f})}function pb(e){return Lf(e,1)}function vb(e,n){return ha(Zo(n),e)}function _b(){if(!arguments.length)return[];var e=arguments[0];return be(e)?e:[e]}function bb(e){return Lt(e,y)}function yb(e,n){return n=typeof n=="function"?n:l,Lt(e,y,n)}function wb(e){return Lt(e,k|y)}function Sb(e,n){return n=typeof n=="function"?n:l,Lt(e,k|y,n)}function xb(e,n){return n==null||Ec(e,n,Xe(n))}function Kt(e,n){return e===n||e!==e&&n!==n}var Cb=bl(Do),kb=bl(function(e,n){return e>=n}),Jn=Ic(function(){return arguments}())?Ic:function(e){return Ue(e)&&Re.call(e,"callee")&&!_c.call(e,"callee")},be=I.isArray,Eb=Js?xt(Js):Lv;function ht(e){return e!=null&&Ol(e.length)&&!dn(e)}function ze(e){return Ue(e)&&ht(e)}function Ab(e){return e===!0||e===!1||Ue(e)&&ot(e)==Ae}var In=Fp||Ca,Ob=ec?xt(ec):qv;function Tb(e){return Ue(e)&&e.nodeType===1&&!li(e)}function Bb(e){if(e==null)return!0;if(ht(e)&&(be(e)||typeof e=="string"||typeof e.splice=="function"||In(e)||Br(e)||Jn(e)))return!e.length;var n=it(e);if(n==nt||n==Fe)return!e.size;if(ri(e))return!Uo(e).length;for(var i in e)if(Re.call(e,i))return!1;return!0}function Rb(e,n){return ei(e,n)}function Ib(e,n,i){i=typeof i=="function"?i:l;var a=i?i(e,n):l;return a===l?ei(e,n,l,i):!!a}function ma(e){if(!Ue(e))return!1;var n=ot(e);return n==lt||n==De||typeof e.message=="string"&&typeof e.name=="string"&&!li(e)}function Mb(e){return typeof e=="number"&&yc(e)}function dn(e){if(!$e(e))return!1;var n=ot(e);return n==Ft||n==yt||n==ne||n==Dr}function Ff(e){return typeof e=="number"&&e==ye(e)}function Ol(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=W}function $e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function Ue(e){return e!=null&&typeof e=="object"}var Uf=tc?xt(tc):Pv;function Lb(e,n){return e===n||Fo(e,n,ia(n))}function qb(e,n,i){return i=typeof i=="function"?i:l,Fo(e,n,ia(n),i)}function Vb(e){return zf(e)&&e!=+e}function Pb(e){if(y0(e))throw new pe(c);return Mc(e)}function Nb(e){return e===null}function Db(e){return e==null}function zf(e){return typeof e=="number"||Ue(e)&&ot(e)==wt}function li(e){if(!Ue(e)||ot(e)!=ft)return!1;var n=tl(e);if(n===null)return!0;var i=Re.call(n,"constructor")&&n.constructor;return typeof i=="function"&&i instanceof i&&Zi.call(i)==qp}var ga=nc?xt(nc):Nv;function $b(e){return Ff(e)&&e>=-W&&e<=W}var Hf=rc?xt(rc):Dv;function Tl(e){return typeof e=="string"||!be(e)&&Ue(e)&&ot(e)==je}function kt(e){return typeof e=="symbol"||Ue(e)&&ot(e)==zt}var Br=ic?xt(ic):$v;function Fb(e){return e===l}function Ub(e){return Ue(e)&&it(e)==$n}function zb(e){return Ue(e)&&ot(e)==Li}var Hb=bl(zo),Wb=bl(function(e,n){return e<=n});function Wf(e){if(!e)return[];if(ht(e))return Tl(e)?Wt(e):dt(e);if(Gr&&e[Gr])return xp(e[Gr]());var n=it(e),i=n==nt?Bo:n==Fe?ji:Rr;return i(e)}function hn(e){if(!e)return e===0?e:0;if(e=Pt(e),e===fe||e===-fe){var n=e<0?-1:1;return n*se}return e===e?e:0}function ye(e){var n=hn(e),i=n%1;return n===n?i?n-i:n:0}function Gf(e){return e?Yn(ye(e),0,B):0}function Pt(e){if(typeof e=="number")return e;if(kt(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=cc(e);var i=mo.test(e);return i||Ui.test(e)?op(e.slice(2),i?2:8):Hr.test(e)?ge:+e}function Kf(e){return Xt(e,mt(e))}function Gb(e){return e?Yn(ye(e),-W,W):e===0?e:0}function Te(e){return e==null?"":Ct(e)}var Kb=Ar(function(e,n){if(ri(n)||ht(n)){Xt(n,Xe(n),e);return}for(var i in n)Re.call(n,i)&&Zr(e,i,n[i])}),jf=Ar(function(e,n){Xt(n,mt(n),e)}),Bl=Ar(function(e,n,i,a){Xt(n,mt(n),e,a)}),jb=Ar(function(e,n,i,a){Xt(n,Xe(n),e,a)}),Yb=cn(Vo);function Qb(e,n){var i=Er(e);return n==null?i:kc(i,n)}var Zb=Se(function(e,n){e=Me(e);var i=-1,a=n.length,f=a>2?n[2]:l;for(f&&at(n[0],n[1],f)&&(a=1);++i<a;)for(var m=n[i],p=mt(m),b=-1,x=p.length;++b<x;){var L=p[b],q=e[L];(q===l||Kt(q,xr[L])&&!Re.call(e,L))&&(e[L]=m[L])}return e}),Xb=Se(function(e){return e.push(l,ff),St(Yf,l,e)});function Jb(e,n){return oc(e,ce(n,3),Zt)}function ey(e,n){return oc(e,ce(n,3),No)}function ty(e,n){return e==null?e:Po(e,ce(n,3),mt)}function ny(e,n){return e==null?e:Bc(e,ce(n,3),mt)}function ry(e,n){return e&&Zt(e,ce(n,3))}function iy(e,n){return e&&No(e,ce(n,3))}function ly(e){return e==null?[]:fl(e,Xe(e))}function oy(e){return e==null?[]:fl(e,mt(e))}function pa(e,n,i){var a=e==null?l:Qn(e,n);return a===l?i:a}function ay(e,n){return e!=null&&mf(e,n,Bv)}function va(e,n){return e!=null&&mf(e,n,Rv)}var uy=of(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=Xi.call(n)),e[n]=i},ba(gt)),sy=of(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=Xi.call(n)),Re.call(e,n)?e[n].push(i):e[n]=[i]},ce),cy=Se(Jr);function Xe(e){return ht(e)?xc(e):Uo(e)}function mt(e){return ht(e)?xc(e,!0):Fv(e)}function fy(e,n){var i={};return n=ce(n,3),Zt(e,function(a,f,m){un(i,n(a,f,m),a)}),i}function dy(e,n){var i={};return n=ce(n,3),Zt(e,function(a,f,m){un(i,f,n(a,f,m))}),i}var hy=Ar(function(e,n,i){dl(e,n,i)}),Yf=Ar(function(e,n,i,a){dl(e,n,i,a)}),my=cn(function(e,n){var i={};if(e==null)return i;var a=!1;n=Pe(n,function(m){return m=Bn(m,e),a||(a=m.length>1),m}),Xt(e,na(e),i),a&&(i=Lt(i,k|E|y,u0));for(var f=n.length;f--;)jo(i,n[f]);return i});function gy(e,n){return Qf(e,Al(ce(n)))}var py=cn(function(e,n){return e==null?{}:zv(e,n)});function Qf(e,n){if(e==null)return{};var i=Pe(na(e),function(a){return[a]});return n=ce(n),$c(e,i,function(a,f){return n(a,f[0])})}function vy(e,n,i){n=Bn(n,e);var a=-1,f=n.length;for(f||(f=1,e=l);++a<f;){var m=e==null?l:e[Jt(n[a])];m===l&&(a=f,m=i),e=dn(m)?m.call(e):m}return e}function _y(e,n,i){return e==null?e:ti(e,n,i)}function by(e,n,i,a){return a=typeof a=="function"?a:l,e==null?e:ti(e,n,i,a)}var Zf=sf(Xe),Xf=sf(mt);function yy(e,n,i){var a=be(e),f=a||In(e)||Br(e);if(n=ce(n,4),i==null){var m=e&&e.constructor;f?i=a?new m:[]:$e(e)?i=dn(m)?Er(tl(e)):{}:i={}}return(f?Rt:Zt)(e,function(p,b,x){return n(i,p,b,x)}),i}function wy(e,n){return e==null?!0:jo(e,n)}function Sy(e,n,i){return e==null?e:Wc(e,n,Zo(i))}function xy(e,n,i,a){return a=typeof a=="function"?a:l,e==null?e:Wc(e,n,Zo(i),a)}function Rr(e){return e==null?[]:To(e,Xe(e))}function Cy(e){return e==null?[]:To(e,mt(e))}function ky(e,n,i){return i===l&&(i=n,n=l),i!==l&&(i=Pt(i),i=i===i?i:0),n!==l&&(n=Pt(n),n=n===n?n:0),Yn(Pt(e),n,i)}function Ey(e,n,i){return n=hn(n),i===l?(i=n,n=0):i=hn(i),e=Pt(e),Iv(e,n,i)}function Ay(e,n,i){if(i&&typeof i!="boolean"&&at(e,n,i)&&(n=i=l),i===l&&(typeof n=="boolean"?(i=n,n=l):typeof e=="boolean"&&(i=e,e=l)),e===l&&n===l?(e=0,n=1):(e=hn(e),n===l?(n=e,e=0):n=hn(n)),e>n){var a=e;e=n,n=a}if(i||e%1||n%1){var f=wc();return rt(e+f*(n-e+lp("1e-"+((f+"").length-1))),n)}return Wo(e,n)}var Oy=Or(function(e,n,i){return n=n.toLowerCase(),e+(i?Jf(n):n)});function Jf(e){return _a(Te(e).toLowerCase())}function ed(e){return e=Te(e),e&&e.replace(Hi,_p).replace(Yg,"")}function Ty(e,n,i){e=Te(e),n=Ct(n);var a=e.length;i=i===l?a:Yn(ye(i),0,a);var f=i;return i-=n.length,i>=0&&e.slice(i,f)==n}function By(e){return e=Te(e),e&&Di.test(e)?e.replace(Ni,bp):e}function Ry(e){return e=Te(e),e&&ao.test(e)?e.replace(Ur,"\\$&"):e}var Iy=Or(function(e,n,i){return e+(i?"-":"")+n.toLowerCase()}),My=Or(function(e,n,i){return e+(i?" ":"")+n.toLowerCase()}),Ly=nf("toLowerCase");function qy(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;if(!n||a>=n)return e;var f=(n-a)/2;return _l(ll(f),i)+e+_l(il(f),i)}function Vy(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?e+_l(n-a,i):e}function Py(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?_l(n-a,i)+e:e}function Ny(e,n,i){return i||n==null?n=0:n&&(n=+n),Wp(Te(e).replace(zr,""),n||0)}function Dy(e,n,i){return(i?at(e,n,i):n===l)?n=1:n=ye(n),Go(Te(e),n)}function $y(){var e=arguments,n=Te(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var Fy=Or(function(e,n,i){return e+(i?"_":"")+n.toLowerCase()});function Uy(e,n,i){return i&&typeof i!="number"&&at(e,n,i)&&(n=i=l),i=i===l?B:i>>>0,i?(e=Te(e),e&&(typeof n=="string"||n!=null&&!ga(n))&&(n=Ct(n),!n&&yr(e))?Rn(Wt(e),0,i):e.split(n,i)):[]}var zy=Or(function(e,n,i){return e+(i?" ":"")+_a(n)});function Hy(e,n,i){return e=Te(e),i=i==null?0:Yn(ye(i),0,e.length),n=Ct(n),e.slice(i,i+n.length)==n}function Wy(e,n,i){var a=d.templateSettings;i&&at(e,n,i)&&(n=l),e=Te(e),n=Bl({},n,a,cf);var f=Bl({},n.imports,a.imports,cf),m=Xe(f),p=To(f,m),b,x,L=0,q=n.interpolate||_,D="__p += '",J=Ro((n.escape||_).source+"|"+q.source+"|"+(q===zn?rn:_).source+"|"+(n.evaluate||_).source+"|$","g"),oe="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ep+"]")+`
11
- `;e.replace(J,function(he,Ce,Ee,Et,ut,At){return Ee||(Ee=Et),D+=e.slice(L,At).replace(ee,yp),Ce&&(b=!0,D+=`' +
10
+ `)}function C0(e){return be(e)||er(e)||!!(Oc&&e&&e[Oc])}function fn(e,n){var i=typeof e;return n=n??K,!!n&&(i=="number"||i!="symbol"&&Yi.test(e))&&e>-1&&e%1==0&&e<n}function at(e,n,i){if(!$e(i))return!1;var a=typeof n;return(a=="number"?gt(i)&&fn(n,i.length):a=="string"&&n in i)?Kt(i[n],e):!1}function ba(e,n){if(be(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||kt(e)?!0:Sn.test(e)||!Wn.test(e)||n!=null&&e in Me(n)}function k0(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function ya(e){var n=Ao(e),i=d[n];if(typeof i!="function"||!(n in ke.prototype))return!1;if(e===i)return!0;var a=pa(i);return!!a&&e===a[0]}function E0(e){return!!Cc&&Cc in e}var A0=no?dn:Pa;function li(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||xr;return e===i}function kf(e){return e===e&&!$e(e)}function Ef(e,n){return function(i){return i==null?!1:i[e]===n&&(n!==o||e in Me(i))}}function O0(e){var n=Mo(e,function(a){return i.size===x&&i.clear(),a}),i=n.cache;return n}function T0(e,n){var i=e[1],a=n[1],f=i|a,m=f<(R|G|W),p=a==W&&i==N||a==W&&i==oe&&e[7].length<=n[8]||a==(W|oe)&&n[7].length<=n[8]&&i==N;if(!(m||p))return e;a&R&&(e[2]=n[2],f|=i&R?0:F);var y=n[3];if(y){var k=e[3];e[3]=k?uf(k,y,n[4]):y,e[4]=k?An(e[3],v):n[4]}return y=n[5],y&&(k=e[5],e[5]=k?sf(k,y,n[6]):y,e[6]=k?An(e[5],v):n[6]),y=n[7],y&&(e[7]=y),a&W&&(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]=f,e}function B0(e){var n=[];if(e!=null)for(var i in Me(e))n.push(i);return n}function R0(e){return io.call(e)}function Af(e,n,i){return n=Ze(n===o?e.length-1:n,0),function(){for(var a=arguments,f=-1,m=Ze(a.length-n,0),p=I(m);++f<m;)p[f]=a[n+f];f=-1;for(var y=I(n+1);++f<n;)y[f]=a[f];return y[n]=i(p),St(e,this,y)}}function Of(e,n){return n.length<2?e:Zn(e,qt(n,0,-1))}function I0(e,n){for(var i=e.length,a=rt(n.length,i),f=mt(e);a--;){var m=n[a];e[a]=fn(m,i)?f[m]:o}return e}function wa(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var Tf=Rf(Zc),ai=Kp||function(e,n){return et.setTimeout(e,n)},Sa=Rf(t0);function Bf(e,n,i){var a=n+"";return Sa(e,x0(a,M0(y0(a),i)))}function Rf(e){var n=0,i=0;return function(){var a=Zp(),f=te-(a-i);if(i=a,f>0){if(++n>=A)return arguments[0]}else n=0;return e.apply(o,arguments)}}function To(e,n){var i=-1,a=e.length,f=a-1;for(n=n===o?a:n;++i<n;){var m=ia(i,f),p=e[m];e[m]=e[i],e[i]=p}return e.length=n,e}var If=O0(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(yl,function(i,a,f,m){n.push(f?m.replace(Cn,"$1"):a||i)}),n});function Jt(e){if(typeof e=="string"||kt(e))return e;var n=e+"";return n=="0"&&1/e==-ce?"-0":n}function Jn(e){if(e!=null){try{return ro.call(e)}catch{}try{return e+""}catch{}}return""}function M0(e,n){return Rt(pe,function(i){var a="_."+i[0];n&i[1]&&!Xi(e,a)&&e.push(a)}),e.sort()}function Mf(e){if(e instanceof ke)return e.clone();var n=new Mt(e.__wrapped__,e.__chain__);return n.__actions__=mt(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function L0(e,n,i){(i?at(e,n,i):n===o)?n=1:n=Ze(ye(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var f=0,m=0,p=I(co(a/n));f<a;)p[m++]=qt(e,f,f+=n);return p}function q0(e){for(var n=-1,i=e==null?0:e.length,a=0,f=[];++n<i;){var m=e[n];m&&(f[a++]=m)}return f}function V0(){var e=arguments.length;if(!e)return[];for(var n=I(e-1),i=arguments[0],a=e;a--;)n[a-1]=arguments[a];return En(be(i)?mt(i):[i],tt(n,1))}var P0=Se(function(e,n){return ze(e)?ti(e,tt(n,1,ze,!0)):[]}),N0=Se(function(e,n){var i=Vt(n);return ze(i)&&(i=o),ze(e)?ti(e,tt(n,1,ze,!0),de(i,2)):[]}),D0=Se(function(e,n){var i=Vt(n);return ze(i)&&(i=o),ze(e)?ti(e,tt(n,1,ze,!0),o,i):[]});function $0(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===o?1:ye(n),qt(e,n<0?0:n,a)):[]}function F0(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===o?1:ye(n),n=a-n,qt(e,0,n<0?0:n)):[]}function U0(e,n){return e&&e.length?wo(e,de(n,3),!0,!0):[]}function z0(e,n){return e&&e.length?wo(e,de(n,3),!0):[]}function H0(e,n,i,a){var f=e==null?0:e.length;return f?(i&&typeof i!="number"&&at(e,n,i)&&(i=0,a=f),Vv(e,n,i,a)):[]}function Lf(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=i==null?0:ye(i);return f<0&&(f=Ze(a+f,0)),Ji(e,de(n,3),f)}function qf(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=a-1;return i!==o&&(f=ye(i),f=i<0?Ze(a+f,0):rt(f,a-1)),Ji(e,de(n,3),f,!0)}function Vf(e){var n=e==null?0:e.length;return n?tt(e,1):[]}function W0(e){var n=e==null?0:e.length;return n?tt(e,ce):[]}function G0(e,n){var i=e==null?0:e.length;return i?(n=n===o?1:ye(n),tt(e,n)):[]}function K0(e){for(var n=-1,i=e==null?0:e.length,a={};++n<i;){var f=e[n];a[f[0]]=f[1]}return a}function Pf(e){return e&&e.length?e[0]:o}function j0(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=i==null?0:ye(i);return f<0&&(f=Ze(a+f,0)),br(e,n,f)}function Y0(e){var n=e==null?0:e.length;return n?qt(e,0,-1):[]}var Q0=Se(function(e){var n=Ne(e,sa);return n.length&&n[0]===e[0]?Jl(n):[]}),Z0=Se(function(e){var n=Vt(e),i=Ne(e,sa);return n===Vt(i)?n=o:i.pop(),i.length&&i[0]===e[0]?Jl(i,de(n,2)):[]}),X0=Se(function(e){var n=Vt(e),i=Ne(e,sa);return n=typeof n=="function"?n:o,n&&i.pop(),i.length&&i[0]===e[0]?Jl(i,o,n):[]});function J0(e,n){return e==null?"":Yp.call(e,n)}function Vt(e){var n=e==null?0:e.length;return n?e[n-1]:o}function e_(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=a;return i!==o&&(f=ye(i),f=f<0?Ze(a+f,0):rt(f,a-1)),n===n?Mp(e,n,f):Ji(e,pc,f,!0)}function t_(e,n){return e&&e.length?Kc(e,ye(n)):o}var n_=Se(Nf);function Nf(e,n){return e&&e.length&&n&&n.length?ra(e,n):e}function r_(e,n,i){return e&&e.length&&n&&n.length?ra(e,n,de(i,2)):e}function i_(e,n,i){return e&&e.length&&n&&n.length?ra(e,n,o,i):e}var o_=cn(function(e,n){var i=e==null?0:e.length,a=Yl(e,n);return Qc(e,Ne(n,function(f){return fn(f,i)?+f:f}).sort(af)),a});function l_(e,n){var i=[];if(!(e&&e.length))return i;var a=-1,f=[],m=e.length;for(n=de(n,3);++a<m;){var p=e[a];n(p,a,e)&&(i.push(p),f.push(a))}return Qc(e,f),i}function xa(e){return e==null?e:Jp.call(e)}function a_(e,n,i){var a=e==null?0:e.length;return a?(i&&typeof i!="number"&&at(e,n,i)?(n=0,i=a):(n=n==null?0:ye(n),i=i===o?a:ye(i)),qt(e,n,i)):[]}function u_(e,n){return yo(e,n)}function s_(e,n,i){return la(e,n,de(i,2))}function c_(e,n){var i=e==null?0:e.length;if(i){var a=yo(e,n);if(a<i&&Kt(e[a],n))return a}return-1}function f_(e,n){return yo(e,n,!0)}function d_(e,n,i){return la(e,n,de(i,2),!0)}function h_(e,n){var i=e==null?0:e.length;if(i){var a=yo(e,n,!0)-1;if(Kt(e[a],n))return a}return-1}function m_(e){return e&&e.length?Xc(e):[]}function g_(e,n){return e&&e.length?Xc(e,de(n,2)):[]}function p_(e){var n=e==null?0:e.length;return n?qt(e,1,n):[]}function v_(e,n,i){return e&&e.length?(n=i||n===o?1:ye(n),qt(e,0,n<0?0:n)):[]}function __(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===o?1:ye(n),n=a-n,qt(e,n<0?0:n,a)):[]}function b_(e,n){return e&&e.length?wo(e,de(n,3),!1,!0):[]}function y_(e,n){return e&&e.length?wo(e,de(n,3)):[]}var w_=Se(function(e){return Bn(tt(e,1,ze,!0))}),S_=Se(function(e){var n=Vt(e);return ze(n)&&(n=o),Bn(tt(e,1,ze,!0),de(n,2))}),x_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:o,Bn(tt(e,1,ze,!0),o,n)});function C_(e){return e&&e.length?Bn(e):[]}function k_(e,n){return e&&e.length?Bn(e,de(n,2)):[]}function E_(e,n){return n=typeof n=="function"?n:o,e&&e.length?Bn(e,o,n):[]}function Ca(e){if(!(e&&e.length))return[];var n=0;return e=kn(e,function(i){if(ze(i))return n=Ze(i.length,n),!0}),Fl(n,function(i){return Ne(e,Nl(i))})}function Df(e,n){if(!(e&&e.length))return[];var i=Ca(e);return n==null?i:Ne(i,function(a){return St(n,o,a)})}var A_=Se(function(e,n){return ze(e)?ti(e,n):[]}),O_=Se(function(e){return ua(kn(e,ze))}),T_=Se(function(e){var n=Vt(e);return ze(n)&&(n=o),ua(kn(e,ze),de(n,2))}),B_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:o,ua(kn(e,ze),o,n)}),R_=Se(Ca);function I_(e,n){return nf(e||[],n||[],ei)}function M_(e,n){return nf(e||[],n||[],ii)}var L_=Se(function(e){var n=e.length,i=n>1?e[n-1]:o;return i=typeof i=="function"?(e.pop(),i):o,Df(e,i)});function $f(e){var n=d(e);return n.__chain__=!0,n}function q_(e,n){return n(e),e}function Bo(e,n){return n(e)}var V_=cn(function(e){var n=e.length,i=n?e[0]:0,a=this.__wrapped__,f=function(m){return Yl(m,e)};return n>1||this.__actions__.length||!(a instanceof ke)||!fn(i)?this.thru(f):(a=a.slice(i,+i+(n?1:0)),a.__actions__.push({func:Bo,args:[f],thisArg:o}),new Mt(a,this.__chain__).thru(function(m){return n&&!m.length&&m.push(o),m}))});function P_(){return $f(this)}function N_(){return new Mt(this.value(),this.__chain__)}function D_(){this.__values__===o&&(this.__values__=ed(this.value()));var e=this.__index__>=this.__values__.length,n=e?o:this.__values__[this.__index__++];return{done:e,value:n}}function $_(){return this}function F_(e){for(var n,i=this;i instanceof go;){var a=Mf(i);a.__index__=0,a.__values__=o,n?f.__wrapped__=a:n=a;var f=a;i=i.__wrapped__}return f.__wrapped__=e,n}function U_(){var e=this.__wrapped__;if(e instanceof ke){var n=e;return this.__actions__.length&&(n=new ke(this)),n=n.reverse(),n.__actions__.push({func:Bo,args:[xa],thisArg:o}),new Mt(n,this.__chain__)}return this.thru(xa)}function z_(){return tf(this.__wrapped__,this.__actions__)}var H_=So(function(e,n,i){Re.call(e,i)?++e[i]:un(e,i,1)});function W_(e,n,i){var a=be(e)?mc:qv;return i&&at(e,n,i)&&(n=o),a(e,de(n,3))}function G_(e,n){var i=be(e)?kn:Nc;return i(e,de(n,3))}var K_=hf(Lf),j_=hf(qf);function Y_(e,n){return tt(Ro(e,n),1)}function Q_(e,n){return tt(Ro(e,n),ce)}function Z_(e,n,i){return i=i===o?1:ye(i),tt(Ro(e,n),i)}function Ff(e,n){var i=be(e)?Rt:Tn;return i(e,de(n,3))}function Uf(e,n){var i=be(e)?pp:Pc;return i(e,de(n,3))}var X_=So(function(e,n,i){Re.call(e,i)?e[i].push(n):un(e,i,[n])});function J_(e,n,i,a){e=gt(e)?e:Rr(e),i=i&&!a?ye(i):0;var f=e.length;return i<0&&(i=Ze(f+i,0)),Vo(e)?i<=f&&e.indexOf(n,i)>-1:!!f&&br(e,n,i)>-1}var eb=Se(function(e,n,i){var a=-1,f=typeof n=="function",m=gt(e)?I(e.length):[];return Tn(e,function(p){m[++a]=f?St(n,p,i):ni(p,n,i)}),m}),tb=So(function(e,n,i){un(e,i,n)});function Ro(e,n){var i=be(e)?Ne:Hc;return i(e,de(n,3))}function nb(e,n,i,a){return e==null?[]:(be(n)||(n=n==null?[]:[n]),i=a?o:i,be(i)||(i=i==null?[]:[i]),jc(e,n,i))}var rb=So(function(e,n,i){e[i?0:1].push(n)},function(){return[[],[]]});function ib(e,n,i){var a=be(e)?Vl:_c,f=arguments.length<3;return a(e,de(n,4),i,f,Tn)}function ob(e,n,i){var a=be(e)?vp:_c,f=arguments.length<3;return a(e,de(n,4),i,f,Pc)}function lb(e,n){var i=be(e)?kn:Nc;return i(e,Lo(de(n,3)))}function ab(e){var n=be(e)?Mc:Jv;return n(e)}function ub(e,n,i){(i?at(e,n,i):n===o)?n=1:n=ye(n);var a=be(e)?Bv:e0;return a(e,n)}function sb(e){var n=be(e)?Rv:n0;return n(e)}function cb(e){if(e==null)return 0;if(gt(e))return Vo(e)?wr(e):e.length;var n=it(e);return n==nt||n==Fe?e.size:ta(e).length}function fb(e,n,i){var a=be(e)?Pl:r0;return i&&at(e,n,i)&&(n=o),a(e,de(n,3))}var db=Se(function(e,n){if(e==null)return[];var i=n.length;return i>1&&at(e,n[0],n[1])?n=[]:i>2&&at(n[0],n[1],n[2])&&(n=[n[0]]),jc(e,tt(n,1),[])}),Io=Gp||function(){return et.Date.now()};function hb(e,n){if(typeof n!="function")throw new It(h);return e=ye(e),function(){if(--e<1)return n.apply(this,arguments)}}function zf(e,n,i){return n=i?o:n,n=e&&n==null?e.length:n,sn(e,W,o,o,o,o,n)}function Hf(e,n){var i;if(typeof n!="function")throw new It(h);return e=ye(e),function(){return--e>0&&(i=n.apply(this,arguments)),e<=1&&(n=o),i}}var ka=Se(function(e,n,i){var a=R;if(i.length){var f=An(i,Tr(ka));a|=z}return sn(e,a,n,i,f)}),Wf=Se(function(e,n,i){var a=R|G;if(i.length){var f=An(i,Tr(Wf));a|=z}return sn(n,a,e,i,f)});function Gf(e,n,i){n=i?o:n;var a=sn(e,N,o,o,o,o,o,n);return a.placeholder=Gf.placeholder,a}function Kf(e,n,i){n=i?o:n;var a=sn(e,Y,o,o,o,o,o,n);return a.placeholder=Kf.placeholder,a}function jf(e,n,i){var a,f,m,p,y,k,L=0,q=!1,$=!1,ee=!0;if(typeof e!="function")throw new It(h);n=Pt(n)||0,$e(i)&&(q=!!i.leading,$="maxWait"in i,m=$?Ze(Pt(i.maxWait)||0,n):m,ee="trailing"in i?!!i.trailing:ee);function ue(He){var jt=a,mn=f;return a=f=o,L=He,p=e.apply(mn,jt),p}function he(He){return L=He,y=ai(Ce,n),q?ue(He):p}function we(He){var jt=He-k,mn=He-L,hd=n-jt;return $?rt(hd,m-mn):hd}function me(He){var jt=He-k,mn=He-L;return k===o||jt>=n||jt<0||$&&mn>=m}function Ce(){var He=Io();if(me(He))return Ee(He);y=ai(Ce,we(He))}function Ee(He){return y=o,ee&&a?ue(He):(a=f=o,p)}function Et(){y!==o&&rf(y),L=0,a=k=f=y=o}function ut(){return y===o?p:Ee(Io())}function At(){var He=Io(),jt=me(He);if(a=arguments,f=this,k=He,jt){if(y===o)return he(k);if($)return rf(y),y=ai(Ce,n),ue(k)}return y===o&&(y=ai(Ce,n)),p}return At.cancel=Et,At.flush=ut,At}var mb=Se(function(e,n){return Vc(e,1,n)}),gb=Se(function(e,n,i){return Vc(e,Pt(n)||0,i)});function pb(e){return sn(e,V)}function Mo(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new It(h);var i=function(){var a=arguments,f=n?n.apply(this,a):a[0],m=i.cache;if(m.has(f))return m.get(f);var p=e.apply(this,a);return i.cache=m.set(f,p)||m,p};return i.cache=new(Mo.Cache||an),i}Mo.Cache=an;function Lo(e){if(typeof e!="function")throw new It(h);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 vb(e){return Hf(2,e)}var _b=i0(function(e,n){n=n.length==1&&be(n[0])?Ne(n[0],xt(de())):Ne(tt(n,1),xt(de()));var i=n.length;return Se(function(a){for(var f=-1,m=rt(a.length,i);++f<m;)a[f]=n[f].call(this,a[f]);return St(e,this,a)})}),Ea=Se(function(e,n){var i=An(n,Tr(Ea));return sn(e,z,o,n,i)}),Yf=Se(function(e,n){var i=An(n,Tr(Yf));return sn(e,j,o,n,i)}),bb=cn(function(e,n){return sn(e,oe,o,o,o,n)});function yb(e,n){if(typeof e!="function")throw new It(h);return n=n===o?n:ye(n),Se(e,n)}function wb(e,n){if(typeof e!="function")throw new It(h);return n=n==null?0:Ze(ye(n),0),Se(function(i){var a=i[n],f=In(i,0,n);return a&&En(f,a),St(e,this,f)})}function Sb(e,n,i){var a=!0,f=!0;if(typeof e!="function")throw new It(h);return $e(i)&&(a="leading"in i?!!i.leading:a,f="trailing"in i?!!i.trailing:f),jf(e,n,{leading:a,maxWait:n,trailing:f})}function xb(e){return zf(e,1)}function Cb(e,n){return Ea(ca(n),e)}function kb(){if(!arguments.length)return[];var e=arguments[0];return be(e)?e:[e]}function Eb(e){return Lt(e,b)}function Ab(e,n){return n=typeof n=="function"?n:o,Lt(e,b,n)}function Ob(e){return Lt(e,C|b)}function Tb(e,n){return n=typeof n=="function"?n:o,Lt(e,C|b,n)}function Bb(e,n){return n==null||qc(e,n,Xe(n))}function Kt(e,n){return e===n||e!==e&&n!==n}var Rb=Eo(Xl),Ib=Eo(function(e,n){return e>=n}),er=Fc(function(){return arguments}())?Fc:function(e){return Ue(e)&&Re.call(e,"callee")&&!Ac.call(e,"callee")},be=I.isArray,Mb=uc?xt(uc):Fv;function gt(e){return e!=null&&qo(e.length)&&!dn(e)}function ze(e){return Ue(e)&&gt(e)}function Lb(e){return e===!0||e===!1||Ue(e)&&lt(e)==Ae}var Mn=jp||Pa,qb=sc?xt(sc):Uv;function Vb(e){return Ue(e)&&e.nodeType===1&&!ui(e)}function Pb(e){if(e==null)return!0;if(gt(e)&&(be(e)||typeof e=="string"||typeof e.splice=="function"||Mn(e)||Br(e)||er(e)))return!e.length;var n=it(e);if(n==nt||n==Fe)return!e.size;if(li(e))return!ta(e).length;for(var i in e)if(Re.call(e,i))return!1;return!0}function Nb(e,n){return ri(e,n)}function Db(e,n,i){i=typeof i=="function"?i:o;var a=i?i(e,n):o;return a===o?ri(e,n,o,i):!!a}function Aa(e){if(!Ue(e))return!1;var n=lt(e);return n==ot||n==De||typeof e.message=="string"&&typeof e.name=="string"&&!ui(e)}function $b(e){return typeof e=="number"&&Tc(e)}function dn(e){if(!$e(e))return!1;var n=lt(e);return n==Ft||n==yt||n==re||n==Ur}function Qf(e){return typeof e=="number"&&e==ye(e)}function qo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=K}function $e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function Ue(e){return e!=null&&typeof e=="object"}var Zf=cc?xt(cc):Hv;function Fb(e,n){return e===n||ea(e,n,va(n))}function Ub(e,n,i){return i=typeof i=="function"?i:o,ea(e,n,va(n),i)}function zb(e){return Xf(e)&&e!=+e}function Hb(e){if(A0(e))throw new _e(c);return Uc(e)}function Wb(e){return e===null}function Gb(e){return e==null}function Xf(e){return typeof e=="number"||Ue(e)&&lt(e)==wt}function ui(e){if(!Ue(e)||lt(e)!=ht)return!1;var n=ao(e);if(n===null)return!0;var i=Re.call(n,"constructor")&&n.constructor;return typeof i=="function"&&i instanceof i&&ro.call(i)==Up}var Oa=fc?xt(fc):Wv;function Kb(e){return Qf(e)&&e>=-K&&e<=K}var Jf=dc?xt(dc):Gv;function Vo(e){return typeof e=="string"||!be(e)&&Ue(e)&&lt(e)==Ye}function kt(e){return typeof e=="symbol"||Ue(e)&&lt(e)==zt}var Br=hc?xt(hc):Kv;function jb(e){return e===o}function Yb(e){return Ue(e)&&it(e)==Fn}function Qb(e){return Ue(e)&&lt(e)==$i}var Zb=Eo(na),Xb=Eo(function(e,n){return e<=n});function ed(e){if(!e)return[];if(gt(e))return Vo(e)?Wt(e):mt(e);if(Yr&&e[Yr])return Bp(e[Yr]());var n=it(e),i=n==nt?zl:n==Fe?eo:Rr;return i(e)}function hn(e){if(!e)return e===0?e:0;if(e=Pt(e),e===ce||e===-ce){var n=e<0?-1:1;return n*se}return e===e?e:0}function ye(e){var n=hn(e),i=n%1;return n===n?i?n-i:n:0}function td(e){return e?Qn(ye(e),0,B):0}function Pt(e){if(typeof e=="number")return e;if(kt(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=bc(e);var i=Al.test(e);return i||ji.test(e)?hp(e.slice(2),i?2:8):Kr.test(e)?ge:+e}function nd(e){return Xt(e,pt(e))}function Jb(e){return e?Qn(ye(e),-K,K):e===0?e:0}function Te(e){return e==null?"":Ct(e)}var ey=Ar(function(e,n){if(li(n)||gt(n)){Xt(n,Xe(n),e);return}for(var i in n)Re.call(n,i)&&ei(e,i,n[i])}),rd=Ar(function(e,n){Xt(n,pt(n),e)}),Po=Ar(function(e,n,i,a){Xt(n,pt(n),e,a)}),ty=Ar(function(e,n,i,a){Xt(n,Xe(n),e,a)}),ny=cn(Yl);function ry(e,n){var i=Er(e);return n==null?i:Lc(i,n)}var iy=Se(function(e,n){e=Me(e);var i=-1,a=n.length,f=a>2?n[2]:o;for(f&&at(n[0],n[1],f)&&(a=1);++i<a;)for(var m=n[i],p=pt(m),y=-1,k=p.length;++y<k;){var L=p[y],q=e[L];(q===o||Kt(q,xr[L])&&!Re.call(e,L))&&(e[L]=m[L])}return e}),oy=Se(function(e){return e.push(o,yf),St(id,o,e)});function ly(e,n){return gc(e,de(n,3),Zt)}function ay(e,n){return gc(e,de(n,3),Zl)}function uy(e,n){return e==null?e:Ql(e,de(n,3),pt)}function sy(e,n){return e==null?e:Dc(e,de(n,3),pt)}function cy(e,n){return e&&Zt(e,de(n,3))}function fy(e,n){return e&&Zl(e,de(n,3))}function dy(e){return e==null?[]:_o(e,Xe(e))}function hy(e){return e==null?[]:_o(e,pt(e))}function Ta(e,n,i){var a=e==null?o:Zn(e,n);return a===o?i:a}function my(e,n){return e!=null&&xf(e,n,Pv)}function Ba(e,n){return e!=null&&xf(e,n,Nv)}var gy=gf(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=io.call(n)),e[n]=i},Ia(vt)),py=gf(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=io.call(n)),Re.call(e,n)?e[n].push(i):e[n]=[i]},de),vy=Se(ni);function Xe(e){return gt(e)?Ic(e):ta(e)}function pt(e){return gt(e)?Ic(e,!0):jv(e)}function _y(e,n){var i={};return n=de(n,3),Zt(e,function(a,f,m){un(i,n(a,f,m),a)}),i}function by(e,n){var i={};return n=de(n,3),Zt(e,function(a,f,m){un(i,f,n(a,f,m))}),i}var yy=Ar(function(e,n,i){bo(e,n,i)}),id=Ar(function(e,n,i,a){bo(e,n,i,a)}),wy=cn(function(e,n){var i={};if(e==null)return i;var a=!1;n=Ne(n,function(m){return m=Rn(m,e),a||(a=m.length>1),m}),Xt(e,ga(e),i),a&&(i=Lt(i,C|E|b,g0));for(var f=n.length;f--;)aa(i,n[f]);return i});function Sy(e,n){return od(e,Lo(de(n)))}var xy=cn(function(e,n){return e==null?{}:Qv(e,n)});function od(e,n){if(e==null)return{};var i=Ne(ga(e),function(a){return[a]});return n=de(n),Yc(e,i,function(a,f){return n(a,f[0])})}function Cy(e,n,i){n=Rn(n,e);var a=-1,f=n.length;for(f||(f=1,e=o);++a<f;){var m=e==null?o:e[Jt(n[a])];m===o&&(a=f,m=i),e=dn(m)?m.call(e):m}return e}function ky(e,n,i){return e==null?e:ii(e,n,i)}function Ey(e,n,i,a){return a=typeof a=="function"?a:o,e==null?e:ii(e,n,i,a)}var ld=_f(Xe),ad=_f(pt);function Ay(e,n,i){var a=be(e),f=a||Mn(e)||Br(e);if(n=de(n,4),i==null){var m=e&&e.constructor;f?i=a?new m:[]:$e(e)?i=dn(m)?Er(ao(e)):{}:i={}}return(f?Rt:Zt)(e,function(p,y,k){return n(i,p,y,k)}),i}function Oy(e,n){return e==null?!0:aa(e,n)}function Ty(e,n,i){return e==null?e:ef(e,n,ca(i))}function By(e,n,i,a){return a=typeof a=="function"?a:o,e==null?e:ef(e,n,ca(i),a)}function Rr(e){return e==null?[]:Ul(e,Xe(e))}function Ry(e){return e==null?[]:Ul(e,pt(e))}function Iy(e,n,i){return i===o&&(i=n,n=o),i!==o&&(i=Pt(i),i=i===i?i:0),n!==o&&(n=Pt(n),n=n===n?n:0),Qn(Pt(e),n,i)}function My(e,n,i){return n=hn(n),i===o?(i=n,n=0):i=hn(i),e=Pt(e),Dv(e,n,i)}function Ly(e,n,i){if(i&&typeof i!="boolean"&&at(e,n,i)&&(n=i=o),i===o&&(typeof n=="boolean"?(i=n,n=o):typeof e=="boolean"&&(i=e,e=o)),e===o&&n===o?(e=0,n=1):(e=hn(e),n===o?(n=e,e=0):n=hn(n)),e>n){var a=e;e=n,n=a}if(i||e%1||n%1){var f=Bc();return rt(e+f*(n-e+dp("1e-"+((f+"").length-1))),n)}return ia(e,n)}var qy=Or(function(e,n,i){return n=n.toLowerCase(),e+(i?ud(n):n)});function ud(e){return Ra(Te(e).toLowerCase())}function sd(e){return e=Te(e),e&&e.replace(Qi,kp).replace(np,"")}function Vy(e,n,i){e=Te(e),n=Ct(n);var a=e.length;i=i===o?a:Qn(ye(i),0,a);var f=i;return i-=n.length,i>=0&&e.slice(i,f)==n}function Py(e){return e=Te(e),e&&Wi.test(e)?e.replace(Hi,Ep):e}function Ny(e){return e=Te(e),e&&wl.test(e)?e.replace(Wr,"\\$&"):e}var Dy=Or(function(e,n,i){return e+(i?"-":"")+n.toLowerCase()}),$y=Or(function(e,n,i){return e+(i?" ":"")+n.toLowerCase()}),Fy=df("toLowerCase");function Uy(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;if(!n||a>=n)return e;var f=(n-a)/2;return ko(fo(f),i)+e+ko(co(f),i)}function zy(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?e+ko(n-a,i):e}function Hy(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?ko(n-a,i)+e:e}function Wy(e,n,i){return i||n==null?n=0:n&&(n=+n),Xp(Te(e).replace(Gr,""),n||0)}function Gy(e,n,i){return(i?at(e,n,i):n===o)?n=1:n=ye(n),oa(Te(e),n)}function Ky(){var e=arguments,n=Te(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var jy=Or(function(e,n,i){return e+(i?"_":"")+n.toLowerCase()});function Yy(e,n,i){return i&&typeof i!="number"&&at(e,n,i)&&(n=i=o),i=i===o?B:i>>>0,i?(e=Te(e),e&&(typeof n=="string"||n!=null&&!Oa(n))&&(n=Ct(n),!n&&yr(e))?In(Wt(e),0,i):e.split(n,i)):[]}var Qy=Or(function(e,n,i){return e+(i?" ":"")+Ra(n)});function Zy(e,n,i){return e=Te(e),i=i==null?0:Qn(ye(i),0,e.length),n=Ct(n),e.slice(i,i+n.length)==n}function Xy(e,n,i){var a=d.templateSettings;i&&at(e,n,i)&&(n=o),e=Te(e),n=Po({},n,a,bf);var f=Po({},n.imports,a.imports,bf),m=Xe(f),p=Ul(f,m),y,k,L=0,q=n.interpolate||_,$="__p += '",ee=Hl((n.escape||_).source+"|"+q.source+"|"+(q===Hn?rn:_).source+"|"+(n.evaluate||_).source+"|$","g"),ue="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ap+"]")+`
11
+ `;e.replace(ee,function(me,Ce,Ee,Et,ut,At){return Ee||(Ee=Et),$+=e.slice(L,At).replace(ne,Ap),Ce&&(y=!0,$+=`' +
12
12
  __e(`+Ce+`) +
13
- '`),ut&&(x=!0,D+=`';
13
+ '`),ut&&(k=!0,$+=`';
14
14
  `+ut+`;
15
- __p += '`),Ee&&(D+=`' +
15
+ __p += '`),Ee&&($+=`' +
16
16
  ((__t = (`+Ee+`)) == null ? '' : __t) +
17
- '`),L=At+he.length,he}),D+=`';
18
- `;var de=Re.call(n,"variable")&&n.variable;if(!de)D=`with (obj) {
19
- `+D+`
17
+ '`),L=At+me.length,me}),$+=`';
18
+ `;var he=Re.call(n,"variable")&&n.variable;if(!he)$=`with (obj) {
19
+ `+$+`
20
20
  }
21
- `;else if(Sn.test(de))throw new pe(g);D=(x?D.replace(qi,""):D).replace(Vi,"$1").replace(Pi,"$1;"),D="function("+(de||"obj")+`) {
22
- `+(de?"":`obj || (obj = {});
23
- `)+"var __t, __p = ''"+(b?", __e = _.escape":"")+(x?`, __j = Array.prototype.join;
21
+ `;else if(xn.test(he))throw new _e(g);$=(k?$.replace(Fi,""):$).replace(Ui,"$1").replace(zi,"$1;"),$="function("+(he||"obj")+`) {
22
+ `+(he?"":`obj || (obj = {});
23
+ `)+"var __t, __p = ''"+(y?", __e = _.escape":"")+(k?`, __j = Array.prototype.join;
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
- `)+D+`return __p
27
- }`;var we=nd(function(){return Oe(m,oe+"return "+D).apply(l,p)});if(we.source=D,ma(we))throw we;return we}function Gy(e){return Te(e).toLowerCase()}function Ky(e){return Te(e).toUpperCase()}function jy(e,n,i){if(e=Te(e),e&&(i||n===l))return cc(e);if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=Wt(n),m=fc(a,f),p=dc(a,f)+1;return Rn(a,m,p).join("")}function Yy(e,n,i){if(e=Te(e),e&&(i||n===l))return e.slice(0,mc(e)+1);if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=dc(a,Wt(n))+1;return Rn(a,0,f).join("")}function Qy(e,n,i){if(e=Te(e),e&&(i||n===l))return e.replace(zr,"");if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=fc(a,Wt(n));return Rn(a,f).join("")}function Zy(e,n){var i=$,a=Z;if($e(n)){var f="separator"in n?n.separator:f;i="length"in n?ye(n.length):i,a="omission"in n?Ct(n.omission):a}e=Te(e);var m=e.length;if(yr(e)){var p=Wt(e);m=p.length}if(i>=m)return e;var b=i-wr(a);if(b<1)return a;var x=p?Rn(p,0,b).join(""):e.slice(0,b);if(f===l)return x+a;if(p&&(b+=x.length-b),ga(f)){if(e.slice(b).search(f)){var L,q=x;for(f.global||(f=Ro(f.source,Te(ln.exec(f))+"g")),f.lastIndex=0;L=f.exec(q);)var D=L.index;x=x.slice(0,D===l?b:D)}}else if(e.indexOf(Ct(f),b)!=b){var J=x.lastIndexOf(f);J>-1&&(x=x.slice(0,J))}return x+a}function Xy(e){return e=Te(e),e&&io.test(e)?e.replace(Fr,Ap):e}var Jy=Or(function(e,n,i){return e+(i?" ":"")+n.toUpperCase()}),_a=nf("toUpperCase");function td(e,n,i){return e=Te(e),n=i?l:n,n===l?Sp(e)?Bp(e):hp(e):e.match(n)||[]}var nd=Se(function(e,n){try{return St(e,l,n)}catch(i){return ma(i)?i:new pe(i)}}),ew=cn(function(e,n){return Rt(n,function(i){i=Jt(i),un(e,i,da(e[i],e))}),e});function tw(e){var n=e==null?0:e.length,i=ce();return e=n?Pe(e,function(a){if(typeof a[1]!="function")throw new It(h);return[i(a[0]),a[1]]}):[],Se(function(a){for(var f=-1;++f<n;){var m=e[f];if(St(m[0],this,a))return St(m[1],this,a)}})}function nw(e){return Av(Lt(e,k))}function ba(e){return function(){return e}}function rw(e,n){return e==null||e!==e?n:e}var iw=lf(),lw=lf(!0);function gt(e){return e}function ya(e){return Lc(typeof e=="function"?e:Lt(e,k))}function ow(e){return Vc(Lt(e,k))}function aw(e,n){return Pc(e,Lt(n,k))}var uw=Se(function(e,n){return function(i){return Jr(i,e,n)}}),sw=Se(function(e,n){return function(i){return Jr(e,i,n)}});function wa(e,n,i){var a=Xe(n),f=fl(n,a);i==null&&!($e(n)&&(f.length||!a.length))&&(i=n,n=e,e=this,f=fl(n,Xe(n)));var m=!($e(i)&&"chain"in i)||!!i.chain,p=dn(e);return Rt(f,function(b){var x=n[b];e[b]=x,p&&(e.prototype[b]=function(){var L=this.__chain__;if(m||L){var q=e(this.__wrapped__),D=q.__actions__=dt(this.__actions__);return D.push({func:x,args:arguments,thisArg:e}),q.__chain__=L,q}return x.apply(e,kn([this.value()],arguments))})}),e}function cw(){return et._===this&&(et._=Vp),this}function Sa(){}function fw(e){return e=ye(e),Se(function(n){return Nc(n,e)})}var dw=Jo(Pe),hw=Jo(lc),mw=Jo(Co);function rd(e){return oa(e)?ko(Jt(e)):Hv(e)}function gw(e){return function(n){return e==null?l:Qn(e,n)}}var pw=af(),vw=af(!0);function xa(){return[]}function Ca(){return!1}function _w(){return{}}function bw(){return""}function yw(){return!0}function ww(e,n){if(e=ye(e),e<1||e>W)return[];var i=B,a=rt(e,B);n=ce(n),e-=B;for(var f=Oo(a,n);++i<e;)n(i);return f}function Sw(e){return be(e)?Pe(e,Jt):kt(e)?[e]:dt(xf(Te(e)))}function xw(e){var n=++Lp;return Te(e)+n}var Cw=vl(function(e,n){return e+n},0),kw=ea("ceil"),Ew=vl(function(e,n){return e/n},1),Aw=ea("floor");function Ow(e){return e&&e.length?cl(e,gt,Do):l}function Tw(e,n){return e&&e.length?cl(e,ce(n,2),Do):l}function Bw(e){return uc(e,gt)}function Rw(e,n){return uc(e,ce(n,2))}function Iw(e){return e&&e.length?cl(e,gt,zo):l}function Mw(e,n){return e&&e.length?cl(e,ce(n,2),zo):l}var Lw=vl(function(e,n){return e*n},1),qw=ea("round"),Vw=vl(function(e,n){return e-n},0);function Pw(e){return e&&e.length?Ao(e,gt):0}function Nw(e,n){return e&&e.length?Ao(e,ce(n,2)):0}return d.after=ob,d.ary=Lf,d.assign=Kb,d.assignIn=jf,d.assignInWith=Bl,d.assignWith=jb,d.at=Yb,d.before=qf,d.bind=da,d.bindAll=ew,d.bindKey=Vf,d.castArray=_b,d.chain=Rf,d.chunk=A0,d.compact=O0,d.concat=T0,d.cond=tw,d.conforms=nw,d.constant=ba,d.countBy=P_,d.create=Qb,d.curry=Pf,d.curryRight=Nf,d.debounce=Df,d.defaults=Zb,d.defaultsDeep=Xb,d.defer=ab,d.delay=ub,d.difference=B0,d.differenceBy=R0,d.differenceWith=I0,d.drop=M0,d.dropRight=L0,d.dropRightWhile=q0,d.dropWhile=V0,d.fill=P0,d.filter=D_,d.flatMap=U_,d.flatMapDeep=z_,d.flatMapDepth=H_,d.flatten=Af,d.flattenDeep=N0,d.flattenDepth=D0,d.flip=sb,d.flow=iw,d.flowRight=lw,d.fromPairs=$0,d.functions=ly,d.functionsIn=oy,d.groupBy=W_,d.initial=U0,d.intersection=z0,d.intersectionBy=H0,d.intersectionWith=W0,d.invert=uy,d.invertBy=sy,d.invokeMap=K_,d.iteratee=ya,d.keyBy=j_,d.keys=Xe,d.keysIn=mt,d.map=Cl,d.mapKeys=fy,d.mapValues=dy,d.matches=ow,d.matchesProperty=aw,d.memoize=El,d.merge=hy,d.mergeWith=Yf,d.method=uw,d.methodOf=sw,d.mixin=wa,d.negate=Al,d.nthArg=fw,d.omit=my,d.omitBy=gy,d.once=cb,d.orderBy=Y_,d.over=dw,d.overArgs=fb,d.overEvery=hw,d.overSome=mw,d.partial=ha,d.partialRight=$f,d.partition=Q_,d.pick=py,d.pickBy=Qf,d.property=rd,d.propertyOf=gw,d.pull=Y0,d.pullAll=Tf,d.pullAllBy=Q0,d.pullAllWith=Z0,d.pullAt=X0,d.range=pw,d.rangeRight=vw,d.rearg=db,d.reject=J_,d.remove=J0,d.rest=hb,d.reverse=ca,d.sampleSize=tb,d.set=_y,d.setWith=by,d.shuffle=nb,d.slice=e_,d.sortBy=lb,d.sortedUniq=a_,d.sortedUniqBy=u_,d.split=Uy,d.spread=mb,d.tail=s_,d.take=c_,d.takeRight=f_,d.takeRightWhile=d_,d.takeWhile=h_,d.tap=O_,d.throttle=gb,d.thru=xl,d.toArray=Wf,d.toPairs=Zf,d.toPairsIn=Xf,d.toPath=Sw,d.toPlainObject=Kf,d.transform=yy,d.unary=pb,d.union=m_,d.unionBy=g_,d.unionWith=p_,d.uniq=v_,d.uniqBy=__,d.uniqWith=b_,d.unset=wy,d.unzip=fa,d.unzipWith=Bf,d.update=Sy,d.updateWith=xy,d.values=Rr,d.valuesIn=Cy,d.without=y_,d.words=td,d.wrap=vb,d.xor=w_,d.xorBy=S_,d.xorWith=x_,d.zip=C_,d.zipObject=k_,d.zipObjectDeep=E_,d.zipWith=A_,d.entries=Zf,d.entriesIn=Xf,d.extend=jf,d.extendWith=Bl,wa(d,d),d.add=Cw,d.attempt=nd,d.camelCase=Oy,d.capitalize=Jf,d.ceil=kw,d.clamp=ky,d.clone=bb,d.cloneDeep=wb,d.cloneDeepWith=Sb,d.cloneWith=yb,d.conformsTo=xb,d.deburr=ed,d.defaultTo=rw,d.divide=Ew,d.endsWith=Ty,d.eq=Kt,d.escape=By,d.escapeRegExp=Ry,d.every=N_,d.find=$_,d.findIndex=kf,d.findKey=Jb,d.findLast=F_,d.findLastIndex=Ef,d.findLastKey=ey,d.floor=Aw,d.forEach=If,d.forEachRight=Mf,d.forIn=ty,d.forInRight=ny,d.forOwn=ry,d.forOwnRight=iy,d.get=pa,d.gt=Cb,d.gte=kb,d.has=ay,d.hasIn=va,d.head=Of,d.identity=gt,d.includes=G_,d.indexOf=F0,d.inRange=Ey,d.invoke=cy,d.isArguments=Jn,d.isArray=be,d.isArrayBuffer=Eb,d.isArrayLike=ht,d.isArrayLikeObject=ze,d.isBoolean=Ab,d.isBuffer=In,d.isDate=Ob,d.isElement=Tb,d.isEmpty=Bb,d.isEqual=Rb,d.isEqualWith=Ib,d.isError=ma,d.isFinite=Mb,d.isFunction=dn,d.isInteger=Ff,d.isLength=Ol,d.isMap=Uf,d.isMatch=Lb,d.isMatchWith=qb,d.isNaN=Vb,d.isNative=Pb,d.isNil=Db,d.isNull=Nb,d.isNumber=zf,d.isObject=$e,d.isObjectLike=Ue,d.isPlainObject=li,d.isRegExp=ga,d.isSafeInteger=$b,d.isSet=Hf,d.isString=Tl,d.isSymbol=kt,d.isTypedArray=Br,d.isUndefined=Fb,d.isWeakMap=Ub,d.isWeakSet=zb,d.join=G0,d.kebabCase=Iy,d.last=Vt,d.lastIndexOf=K0,d.lowerCase=My,d.lowerFirst=Ly,d.lt=Hb,d.lte=Wb,d.max=Ow,d.maxBy=Tw,d.mean=Bw,d.meanBy=Rw,d.min=Iw,d.minBy=Mw,d.stubArray=xa,d.stubFalse=Ca,d.stubObject=_w,d.stubString=bw,d.stubTrue=yw,d.multiply=Lw,d.nth=j0,d.noConflict=cw,d.noop=Sa,d.now=kl,d.pad=qy,d.padEnd=Vy,d.padStart=Py,d.parseInt=Ny,d.random=Ay,d.reduce=Z_,d.reduceRight=X_,d.repeat=Dy,d.replace=$y,d.result=vy,d.round=qw,d.runInContext=S,d.sample=eb,d.size=rb,d.snakeCase=Fy,d.some=ib,d.sortedIndex=t_,d.sortedIndexBy=n_,d.sortedIndexOf=r_,d.sortedLastIndex=i_,d.sortedLastIndexBy=l_,d.sortedLastIndexOf=o_,d.startCase=zy,d.startsWith=Hy,d.subtract=Vw,d.sum=Pw,d.sumBy=Nw,d.template=Wy,d.times=ww,d.toFinite=hn,d.toInteger=ye,d.toLength=Gf,d.toLower=Gy,d.toNumber=Pt,d.toSafeInteger=Gb,d.toString=Te,d.toUpper=Ky,d.trim=jy,d.trimEnd=Yy,d.trimStart=Qy,d.truncate=Zy,d.unescape=Xy,d.uniqueId=xw,d.upperCase=Jy,d.upperFirst=_a,d.each=If,d.eachRight=Mf,d.first=Of,wa(d,function(){var e={};return Zt(d,function(n,i){Re.call(d.prototype,i)||(e[i]=n)}),e}(),{chain:!1}),d.VERSION=u,Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Rt(["drop","take"],function(e,n){ke.prototype[e]=function(i){i=i===l?1:Qe(ye(i),0);var a=this.__filtered__&&!n?new ke(this):this.clone();return a.__filtered__?a.__takeCount__=rt(i,a.__takeCount__):a.__views__.push({size:rt(i,B),type:e+(a.__dir__<0?"Right":"")}),a},ke.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),Rt(["filter","map","takeWhile"],function(e,n){var i=n+1,a=i==P||i==ue;ke.prototype[e]=function(f){var m=this.clone();return m.__iteratees__.push({iteratee:ce(f,3),type:i}),m.__filtered__=m.__filtered__||a,m}}),Rt(["head","last"],function(e,n){var i="take"+(n?"Right":"");ke.prototype[e]=function(){return this[i](1).value()[0]}}),Rt(["initial","tail"],function(e,n){var i="drop"+(n?"":"Right");ke.prototype[e]=function(){return this.__filtered__?new ke(this):this[i](1)}}),ke.prototype.compact=function(){return this.filter(gt)},ke.prototype.find=function(e){return this.filter(e).head()},ke.prototype.findLast=function(e){return this.reverse().find(e)},ke.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new ke(this):this.map(function(i){return Jr(i,e,n)})}),ke.prototype.reject=function(e){return this.filter(Al(ce(e)))},ke.prototype.slice=function(e,n){e=ye(e);var i=this;return i.__filtered__&&(e>0||n<0)?new ke(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),n!==l&&(n=ye(n),i=n<0?i.dropRight(-n):i.take(n-e)),i)},ke.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ke.prototype.toArray=function(){return this.take(B)},Zt(ke.prototype,function(e,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),f=d[a?"take"+(n=="last"?"Right":""):n],m=a||/^find/.test(n);f&&(d.prototype[n]=function(){var p=this.__wrapped__,b=a?[1]:arguments,x=p instanceof ke,L=b[0],q=x||be(p),D=function(Ce){var Ee=f.apply(d,kn([Ce],b));return a&&J?Ee[0]:Ee};q&&i&&typeof L=="function"&&L.length!=1&&(x=q=!1);var J=this.__chain__,oe=!!this.__actions__.length,de=m&&!J,we=x&&!oe;if(!m&&q){p=we?p:new ke(this);var he=e.apply(p,b);return he.__actions__.push({func:xl,args:[D],thisArg:l}),new Mt(he,J)}return de&&we?e.apply(this,b):(he=this.thru(D),de?a?he.value()[0]:he.value():he)})}),Rt(["pop","push","shift","sort","splice","unshift"],function(e){var n=Yi[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var f=arguments;if(a&&!this.__chain__){var m=this.value();return n.apply(be(m)?m:[],f)}return this[i](function(p){return n.apply(be(p)?p:[],f)})}}),Zt(ke.prototype,function(e,n){var i=d[n];if(i){var a=i.name+"";Re.call(kr,a)||(kr[a]=[]),kr[a].push({name:n,func:i})}}),kr[pl(l,H).name]=[{name:"wrapper",func:l}],ke.prototype.clone=Xp,ke.prototype.reverse=Jp,ke.prototype.value=ev,d.prototype.at=T_,d.prototype.chain=B_,d.prototype.commit=R_,d.prototype.next=I_,d.prototype.plant=L_,d.prototype.reverse=q_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=V_,d.prototype.first=d.prototype.head,Gr&&(d.prototype[Gr]=M_),d},Sr=Rp();Wn?((Wn.exports=Sr)._=Sr,yo._=Sr):et._=Sr}).call(xe)}(oi,oi.exports);var Ne=oi.exports,pt={},Ea={},er={};Object.defineProperty(er,"__esModule",{value:!0}),er.EstadoCaptacion=er.TipoCaptacion=void 0;var Aa;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5"})(Aa||(er.TipoCaptacion=Aa={}));var Oa;(function(t){t.EN_ESTUDIO="1",t.PRE_APROBADA="2",t.APROBADA="3",t.EN_NEGOCIACION="4",t.NEGOCIACION_FINALIZADA="5",t.CONFIRMADA="6",t.FINALIZADA="7",t.CANCELADA="0"})(Oa||(er.EstadoCaptacion=Oa={}));var ai={};Object.defineProperty(ai,"__esModule",{value:!0}),ai.TipoGarantia=void 0;var Ta;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(Ta||(ai.TipoGarantia=Ta={}));var ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.TipoImportacion=void 0;var Ba;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(Ba||(ui.TipoImportacion=Ba={}));var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.TipoLiquidacionReclamo=gn.EstadoLiquidacionReclamo=gn.EstadoLiquidacion=void 0;var Ra;(function(t){t[t.EN_PREVISION=1]="EN_PREVISION",t[t.CONFIRMACION_PENDIENTE=2]="CONFIRMACION_PENDIENTE",t[t.CONFIRMADA=3]="CONFIRMADA",t[t.PAGADA=4]="PAGADA",t[t.CON_RECLAMOS=5]="CON_RECLAMOS"})(Ra||(gn.EstadoLiquidacion=Ra={}));var Ia;(function(t){t[t.ACTIVO=1]="ACTIVO",t[t.APROBADO=2]="APROBADO",t[t.NEGADO=3]="NEGADO"})(Ia||(gn.EstadoLiquidacionReclamo=Ia={}));var Ma;(function(t){t[t.ITEM=1]="ITEM",t[t.COBRO=2]="COBRO"})(Ma||(gn.TipoLiquidacionReclamo=Ma={}));var si={};Object.defineProperty(si,"__esModule",{value:!0}),si.TipoNotificacion=void 0;var La;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(La||(si.TipoNotificacion=La={}));var ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.EstadoPedido=void 0;var qa;(function(t){t[t.PENDIENTE=1]="PENDIENTE",t[t.REVISAR_DOC=2]="REVISAR_DOC",t[t.LLAMAR=3]="LLAMAR",t[t.FINALIZADO=4]="FINALIZADO",t[t.CANCELADO=5]="CANCELADO",t[t.LIQUIDADO=6]="LIQUIDADO",t[t.INCIDENCIA=7]="INCIDENCIA",t[t.TRAMITADO=8]="TRAMITADO",t[t.PENDIENTE_ASIGNAR=9]="PENDIENTE_ASIGNAR"})(qa||(ci.EstadoPedido=qa={}));var tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.TipoProducto=tr.EstadoProducto=void 0;var Va;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(Va||(tr.EstadoProducto=Va={}));var Pa;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(Pa||(tr.TipoProducto=Pa={}));var fi={};Object.defineProperty(fi,"__esModule",{value:!0}),fi.EstadoBase=void 0;var Na;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(Na||(fi.EstadoBase=Na={})),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(er,t),l(ai,t),l(ui,t),l(gn,t),l(si,t),l(ci,t),l(tr,t),l(fi,t)}(Ea);var Da={},$a={},di={};Object.defineProperty(di,"__esModule",{value:!0}),di.LAYOUT_COLUMNA_TYPES=void 0,di.LAYOUT_COLUMNA_TYPES=["texto","numero","fecha"],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(di,t)}($a);var Fa={},pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.LAYOUT_SECTION_TYPES=pn.LayoutSectionType=pn.TextLineType=void 0;var Ua;(function(t){t.TITLE="title",t.SUBTITLE="subtitle",t.PARAGRAPH="paragraph"})(Ua||(pn.TextLineType=Ua={}));var nr;(function(t){t.TEXT="text",t.TABLE="table",t.CARDS_GRID="cards-grid",t.IMAGE="image"})(nr||(pn.LayoutSectionType=nr={})),pn.LAYOUT_SECTION_TYPES=[nr.TEXT,nr.CARDS_GRID,nr.TABLE,nr.IMAGE],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(pn,t)}(Fa);var za={},hi={};Object.defineProperty(hi,"__esModule",{value:!0}),hi.TipoComision=void 0;var Ha;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(Ha||(hi.TipoComision=Ha={}));var Wa={};Object.defineProperty(Wa,"__esModule",{value:!0});var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.TABLES=Ot.TABLES_FIELDS=Ot.SOURCES=Ot.LOGIC_OPERATORS=Ot.RULE_OPERATORS=void 0,Ot.RULE_OPERATORS=["==","!=","<",">","IN"],Ot.LOGIC_OPERATORS=["AND","OR"],Ot.SOURCES=["IMPORTACION","TABLA","CONTENEDOR"],Ot.TABLES_FIELDS={PRODUCTOS:["TIPO","NOMBRE","DESCRIPCION","ID_GAMA","ESTADO","TAGS","ID_PRODUCTO","PROPS","COD_ART_MVX"],CAPTACION:["ESTADO","TIPO","CAPTADO","ID_CAPTACION","FECHA_CAPTADO"]},Ot.TABLES=[{label:"PRODUCTOS",value:"PRODUCTOS"},{label:"CAPTACIONES",value:"CAPTACION"}],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(hi,t),l(Wa,t),l(Ot,t)}(za);var Ga={},mi={};Object.defineProperty(mi,"__esModule",{value:!0}),mi.OPERATORS=void 0,mi.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var rr={};Object.defineProperty(rr,"__esModule",{value:!0}),rr.ControlType=rr.GAMA_PROP_CONTROL_TYPES=void 0,rr.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 Ka;(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"})(Ka||(rr.ControlType=Ka={}));var ja={};Object.defineProperty(ja,"__esModule",{value:!0});var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0});var Qa={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0,t.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||(t.PropValidatorKeys=o={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([l,u])=>({value:l,...u}))})(Qa);var Za={};Object.defineProperty(Za,"__esModule",{value:!0}),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(mi,t),l(rr,t),l(ja,t),l(Ya,t),l(Qa,t),l(Za,t)}(Ga);var Xa={},Ja={};Object.defineProperty(Ja,"__esModule",{value:!0}),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(Ja,t)}(Xa),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l($a,t),l(Fa,t),l(za,t),l(Ga,t),l(Xa,t)}(Da),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(Ea,t),l(Da,t)}(pt);const Rl=[pt.ControlType.DYNAMIC_ARRAY,pt.ControlType.OBJECT],ld={maxControlsPerGroup:1,notifyValidations:!0},eu={required:{fn:()=>t=>{var o;if(t.controlType===pt.ControlType.LOCATION){const{value:l}=t.value;return Ne.values(Ne.omit(l,"catastro")).every(u=>!Ne.isNil(u)&&u!=="")&&(l!=null&&l.catastro?od(l==null?void 0:l.catastro):!0)}return t.controlType===pt.ControlType.DYNAMIC_ARRAY||t.multiple?(((o=t.value)==null?void 0:o.length)||0)>0:!Ne.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>o=>tu(o,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>o=>tu(o,"<=",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 tu(t,o,l){const u={">":(s,c)=>s>c,"<":(s,c)=>s<c,">=":(s,c)=>s>=c,"<=":(s,c)=>s<=c}[o];if(t.controlType===pt.ControlType.NUMBER){const s=Number(t.value);return u(s,l)}if(t.controlType===pt.ControlType.TEXT){const s=(t.value||"").length;return u(s,l)}if([pt.ControlType.CARDS_SELECT,pt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,l)}return!1}function od(t){return/^[A-Za-z0-9]{20}$/.test(t)}function ad(t){const o=[];t.controls.forEach((u,s)=>{const c=ud(u);o.push(...c);const h=!c.length;t.controls[s].valid=h});const l=!o.length;return t.valid=l,o}function ud(t){const o=[];return t.validators&&t.validators.forEach(l=>{const{validator:u,param:s}=l,c=eu[u]||null;c&&(c.fn(Number(s))(t)||o.push(c.message))}),o}function sd(t,o,l){return o.controlType==="dynamic_array"?cd(t,o,l):o.controlType==="object"?nu(t,o,l):[]}function cd(t,o,l){var c,h;const u=[],s=((c=o.itemsLength)==null?void 0:c.value)||0;for(let g=0;g<s;g++){const w=nu({...t,title:`${t.title} ${g+1}`},{...o,value:(h=o.value)==null?void 0:h[g]},l);w.forEach(C=>{C.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...w)}return u}function nu(t,o,l){const u=o.structure;return Ne.chunk(u,l).map(c=>({...t,controls:ru(c).map(h=>{var g;return{...h,id:o.id,value:((g=o.value)==null?void 0:g[h.code])||h.value}})}))}function fd(t){return Ne.chain(t).groupBy("group").toPairs().orderBy(([l,u])=>l).map(([l,u])=>{var h;const s=((h=u.find(g=>{var w;return!!((w=g.title)!=null&&w.trim())}))==null?void 0:h.title)||"",c=u[0].group;return{title:s,controls:u,order:c,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}function dd(t){return t.map(o=>({...o,valid:!1,controls:ru(o.controls)}))}function ru(t){return t.map(o=>{var l,u,s;return{...o,valid:!((l=o.validators)!=null&&l.length),visible:!((u=o.conditions)!=null&&u.length),value:hd(o),itemsLength:o.controlType==="dynamic_array"?{...o.itemsLength,value:((s=o.itemsLength)==null?void 0:s.default)||1}:null}})}function hd(t){if(!Ne.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""}}console.log("active pinia:",ka.getActivePinia());const ir=ka.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=dd(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,o){const{id:l,value:u,code:s}=o,c=this.formSteps[t].controls.find(h=>h.id===l);c&&(Rl.includes(c.controlType)?Ne.set(c.value,s,u):c.value=u)},setControlVisibility(t,o,l){const u=this.formSteps[t].controls.find(s=>s.id===o);u&&(u.visible=l)},setControlItemsLength(t,o,l){const u=this.formSteps[t].controls.find(s=>s.id===o);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=l)},setOnLastSubstep(t){this.onLastSubstep=t},resetSteps(){this.currentStep=1},setCollection(t,o){this.collections[t]=o}},getters:{currentFormStep(t){return t.formSteps[t.currentStep-1]||null},stepsCount(t){return t.formSteps.length},nextDisabled(){return this.currentFormStep.controls.filter(t=>t.visible).some(t=>!t.valid)},getCollection(t){return o=>t.collections[o]||null}}});class iu{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 Ne.orderBy(o,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,c=u.ORDEN,h=u.DESCRIPCION,g=u.CLAVE,w=u.ID_CUESTIONARIO,C=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:c,text:h,controls:C,name:g,id:w}})}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,c=(h,g)=>g.controlType==="input_number"&&h!==null&&h!==void 0&&h!==""&&typeof h=="string";return c(u,o)?parseFloat(u.replaceAll(".","")):(l==="object"&&s.forEach(h=>{const g=u[h.code];c(g,h)&&(u[h.code]=parseFloat(g==null?void 0:g.replaceAll(".","")))}),u)}}function gi(t,o,l,u){return Object.defineProperty(t,o,{get:l,set:u,enumerable:!0}),t}const vn=r.ref(!1);let Il;function md(t,o){const l=/(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:l[5]||l[3]||l[1]||"",version:l[4]||l[2]||"0",platform:o[0]||""}}function gd(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 lu="ontouchstart"in window||window.navigator.maxTouchPoints>0;function pd(t){const o=t.toLowerCase(),l=gd(o),u=md(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 c=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(c===!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&&c!==!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"),vn.value===!0&&(Il={is:{...s}}),lu===!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 h=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:h,[h]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const ou=navigator.userAgent||navigator.vendor||window.opera,vd={has:{touch:!1,webStorage:!1},within:{iframe:!1}},vt={userAgent:ou,is:pd(ou),has:{touch:lu},within:{iframe:window.self!==window.top}},Ml={install(t){const{$q:o}=t;vn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(o.platform,vt),vn.value=!1}),o.platform=r.reactive(this)):o.platform=this}};{let t;gi(vt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(Ml,vt),vn.value===!0&&(Object.assign(Ml,Il,vd),Il=null)}function Ze(t){return r.markRaw(r.defineComponent(t))}function au(t){return r.markRaw(t)}function en(t,o){if(t===o)return!0;if(t!==null&&o!==null&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;let l,u;if(t.constructor===Array){if(l=t.length,l!==o.length)return!1;for(u=l;u--!==0;)if(en(t[u],o[u])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==o.size)return!1;let c=t.entries();for(u=c.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=c.next()}for(c=t.entries(),u=c.next();u.done!==!0;){if(en(u.value[1],o.get(u.value[0]))!==!0)return!1;u=c.next()}return!0}if(t.constructor===Set){if(t.size!==o.size)return!1;const c=t.entries();for(u=c.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=c.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(l=t.length,l!==o.length)return!1;for(u=l;u--!==0;)if(t[u]!==o[u])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();const s=Object.keys(t).filter(c=>t[c]!==void 0);if(l=s.length,l!==Object.keys(o).filter(c=>o[c]!==void 0).length)return!1;for(u=l;u--!==0;){const c=s[u];if(en(t[c],o[c])!==!0)return!1}return!0}return t!==t&&o!==o}const uu={threshold:0,root:null,rootMargin:"0px"};function su(t,o,l){let u,s,c;typeof l=="function"?(u=l,s=uu,c=o.cfg===void 0):(u=l.handler,s=Object.assign({},uu,l.cfg),c=o.cfg===void 0||en(o.cfg,s)===!1),o.handler!==u&&(o.handler=u),c===!0&&(o.cfg=s,o.observer!==void 0&&o.observer.unobserve(t),o.observer=new IntersectionObserver(([h])=>{if(typeof o.handler=="function"){if(h.rootBounds===null&&document.body.contains(t)===!0){o.observer.unobserve(t),o.observer.observe(t);return}(o.handler(h,o.observer)===!1||o.once===!0&&h.isIntersecting===!0)&&cu(t)}},s),o.observer.observe(t))}function cu(t){const o=t.__qvisible;o!==void 0&&(o.observer!==void 0&&o.observer.unobserve(t),delete t.__qvisible)}const _d=au({name:"intersection",mounted(t,{modifiers:o,value:l}){const u={once:o.once===!0};su(t,u,l),t.__qvisible=u},updated(t,o){const l=t.__qvisible;l!==void 0&&su(t,l,o.value)},beforeUnmount:cu});function _t(t,o){return t!==void 0&&t()||o}function bd(t,o){if(t!==void 0){const l=t();if(l!=null)return l.slice()}return o}function Mn(t,o){return t!==void 0?o.concat(t()):o}function yd(t,o){return t===void 0?o:o!==void 0?o.concat(t()):t()}function fu(t,o,l,u,s,c){o.key=u+s;const h=r.h(t,o,l);return s===!0?r.withDirectives(h,c()):h}const wd=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(t,{slots:o,emit:l}){const u=r.ref(vn.value===!0?t.ssrPrerender:!1),s=r.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:w,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:w),c=r.computed(()=>t.disable!==!0&&(vn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),h=r.computed(()=>[[_d,s.value,void 0,{once:t.once}]]),g=r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function w(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,t.onVisibility!==void 0&&l("visibility",u.value))}function C(){if(u.value===!0)return[r.h("div",{key:"content",style:g.value},_t(o.default))];if(o.hidden!==void 0)return[r.h("div",{key:"hidden",style:g.value},o.hidden())]}return()=>{const v=t.transition?[r.h(r.Transition,{name:"q-transition--"+t.transition},C)]:C();return fu(t.tag,{class:"q-intersection"},v,"main",c.value,()=>h.value)}}}),Ll={xs:18,sm:24,md:32,lg:38,xl:46},pi={size:String};function vi(t,o=Ll){return r.computed(()=>t.size!==void 0?{fontSize:t.size in o?`${o[t.size]}px`:t.size}:null)}const Sd={size:{type:[String,Number],default:"1em"},color:String};function xd(t){return{cSize:r.computed(()=>t.size in Ll?`${Ll[t.size]}px`:t.size),classes:r.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const ql=Ze({name:"QSpinner",props:{...Sd,thickness:{type:Number,default:5}},setup(t){const{cSize:o,classes:l}=xd(t);return()=>r.h("svg",{class:l.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),Cd={ratio:[String,Number]};function kd(t,o){return r.computed(()=>{const l=Number(t.ratio||(o!==void 0?o.value:void 0));return isNaN(l)!==!0&&l>0?{paddingBottom:`${100/l}%`}:null})}function Vl(t){if(Object(t.$parent)===t.$parent)return t.$parent;let{parent:o}=t.$;for(;Object(o)===o;){if(Object(o.proxy)===o.proxy)return o.proxy;o=o.parent}}function du(t){return t.appContext.config.globalProperties.$router!==void 0}function Ir(t){return t.isUnmounted===!0||t.isDeactivated===!0}function _i(){let t=null;const o=r.getCurrentInstance();function l(){t!==null&&(clearTimeout(t),t=null)}return r.onDeactivated(l),r.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(u,s){l(),Ir(o)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const Ed=Ze({name:"QImg",props:{...Cd,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:o,emit:l}){const u=r.ref(t.initialRatio),s=kd(t,u),c=r.getCurrentInstance(),{registerTimeout:h,removeTimeout:g}=_i(),{registerTimeout:w,removeTimeout:C}=_i(),v=r.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),k=r.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),E=[r.ref(null),r.ref(v.value)],y=r.ref(0),T=r.ref(!1),z=r.ref(!1),R=r.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),H=r.computed(()=>({width:t.width,height:t.height})),F=r.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),N=r.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function Q(){if(C(),t.loadingShowDelay===0){T.value=!0;return}w(()=>{T.value=!0},t.loadingShowDelay)}function G(){C(),T.value=!1}function j({target:A}){Ir(c)===!1&&(g(),u.value=A.naturalHeight===0?.5:A.naturalWidth/A.naturalHeight,K(A,1))}function K(A,te){te===1e3||Ir(c)===!0||(A.complete===!0?le(A):h(()=>{K(A,te+1)},50))}function le(A){Ir(c)!==!0&&(y.value=y.value^1,E[y.value].value=null,G(),A.getAttribute("__qerror")!=="true"&&(z.value=!1),l("load",A.currentSrc||A.src))}function V(A){g(),G(),z.value=!0,E[y.value].value=k.value,E[y.value^1].value=v.value,l("error",A)}function $(A){const te=E[A].value,P={key:"img_"+A,class:F.value,style:N.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,...te};return y.value===A?Object.assign(P,{class:P.class+"current",onLoad:j,onError:V}):P.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+A},r.h("img",P))}function Z(){return T.value===!1?r.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},_t(o[z.value===!0?"error":"default"])):r.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},o.loading!==void 0?o.loading():t.noSpinner===!0?void 0:[r.h(ql,{color:t.spinnerColor,size:t.spinnerSize})])}{let A=function(){r.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,te=>{g(),z.value=!1,te===null?(G(),E[y.value^1].value=v.value):Q(),E[y.value].value=te},{immediate:!0})};vn.value===!0?r.onMounted(A):A()}return()=>{const A=[];return s.value!==null&&A.push(r.h("div",{key:"filler",style:s.value})),E[0].value!==null&&A.push($(0)),E[1].value!==null&&A.push($(1)),A.push(r.h(r.Transition,{name:"q-transition--fade"},Z)),r.h("div",{key:"main",class:R.value,style:H.value,role:"img","aria-label":t.alt},A)}}}),hu="0 0 24 24",mu=t=>t,Pl=t=>`ionicons ${t}`,gu={"mdi-":t=>`mdi ${t}`,"icon-":mu,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Pl,"ion-ios":Pl,"ion-logo":Pl,"iconfont ":mu,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},pu={o_:"-outlined",r_:"-round",s_:"-sharp"},vu={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Ad=new RegExp("^("+Object.keys(gu).join("|")+")"),Od=new RegExp("^("+Object.keys(pu).join("|")+")"),_u=new RegExp("^("+Object.keys(vu).join("|")+")"),Td=/^[Mm]\s?[-+]?\.?\d/,Bd=/^img:/,Rd=/^svguse:/,Id=/^ion-/,Md=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,bt=Ze({name:"QIcon",props:{...pi,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:o}){const{proxy:{$q:l}}=r.getCurrentInstance(),u=vi(t),s=r.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),c=r.computed(()=>{let h,g=t.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(Td.test(g)===!0){const[v,k=hu]=g.split("|");return{svg:!0,viewBox:k,nodes:v.split("&&").map(E=>{const[y,T,z]=E.split("@@");return r.h("path",{style:T,d:y,transform:z})})}}if(Bd.test(g)===!0)return{img:!0,src:g.substring(4)};if(Rd.test(g)===!0){const[v,k=hu]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:k}}let w=" ";const C=g.match(Ad);if(C!==null)h=gu[C[1]](g);else if(Md.test(g)===!0)h=g;else if(Id.test(g)===!0)h=`ionicons ion-${l.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(_u.test(g)===!0){h="notranslate material-symbols";const v=g.match(_u);v!==null&&(g=g.substring(6),h+=vu[v[1]]),w=g}else{h="notranslate material-icons";const v=g.match(Od);v!==null&&(g=g.substring(2),h+=pu[v[1]]),w=g}return{cls:h,content:w}});return()=>{const h={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?r.h(t.tag,h,_t(o.default)):c.value.img===!0?r.h(t.tag,h,Mn(o.default,[r.h("img",{src:c.value.src})])):c.value.svg===!0?r.h(t.tag,h,Mn(o.default,[r.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?r.h(t.tag,h,Mn(o.default,[r.h("svg",{viewBox:c.value.viewBox},[r.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(h.class+=" "+c.value.cls),r.h(t.tag,h,Mn(o.default,[c.value.content])))}}}),Ld={class:"card-select-container"},qd=["onClick"],Vd={class:"check"},Pd={class:"row justify-center items-center",style:{height:"100%"}},Nd=["onClick"],Dd=r.defineComponent({__name:"CardsSelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue"),l=t,{control:u}=r.toRefs(l);function s(g){if(u.value.multiple){let w=Ne.cloneDeep(o.value);g.exclusive?w=[g.value]:(w=w.filter(C=>{var v,k;return!((k=(v=u.value.options)==null?void 0:v.find(E=>E.value===C))!=null&&k.exclusive)}),w.includes(g.value)?w=w.filter(C=>C!==g.value):w.push(g.value)),o.value=w}else o.value=g.value}function c(g){return h(g)?"active":""}function h(g){let w;return u.value.multiple?w=(o.value||[]).includes(String(g.value)):w=o.value===g.value,w}return(g,w)=>{const C=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(u).label?(r.openBlock(),r.createBlock(C,{key:0,label:r.unref(u).label},null,8,["label"])):r.createCommentVNode("",!0),r.createElementVNode("div",Ld,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).options,(v,k)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:k},[v.image?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`image-card ${c(v)}`),onClick:()=>s(v)},[r.createVNode(Ed,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),r.createElementVNode("div",Vd,[r.createElementVNode("div",Pd,[h(v)?(r.openBlock(),r.createBlock(bt,{key:0,name:"check",size:"25px"})):r.createCommentVNode("",!0)])])],10,qd)):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(`card-option ${c(v)}`),onClick:()=>s(v)},[r.createElementVNode("span",null,r.toDisplayString(v.label),1)],10,Nd))],64))),128))])],64)}}}),st=(t,o)=>{const l=t.__vccOpts||t;for(const[u,s]of o)l[u]=s;return l},$d=st(Dd,[["__scopeId","data-v-148468d6"]]),lr={dark:{type:Boolean,default:null}};function or(t,o){return r.computed(()=>t.dark===null?o.dark.isActive:t.dark)}function Fd(t,o){const l=r.ref(null),u=r.computed(()=>t.disable===!0?null:r.h("span",{ref:l,class:"no-outline",tabindex:-1}));function s(c){const h=o.value;c!==void 0&&c.type.indexOf("key")===0?h!==null&&document.activeElement!==h&&h.contains(document.activeElement)===!0&&h.focus():l.value!==null&&(c===void 0||h!==null&&h.contains(c.target)===!0)&&l.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Nl={name:String};function Ud(t={}){return(o,l,u)=>{o[l](r.h("input",{class:"hidden"+(u||""),...t.value}))}}function bu(t){return r.computed(()=>t.name||t.for)}const zd={xs:30,sm:35,md:40,lg:50,xl:60},ct={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const t=Object.defineProperty({},"passive",{get(){Object.assign(ct,{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 Hd(){}function yu(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 Wd(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const o=[];let l=t.target;for(;l;){if(o.push(l),l.tagName==="HTML")return o.push(document),o.push(window),o;l=l.parentElement}}function Yt(t){t.stopPropagation()}function Dt(t){t.cancelable!==!1&&t.preventDefault()}function Ke(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function Dl(t,o,l){const u=`__q_${o}_evt`;t[u]=t[u]!==void 0?t[u].concat(l):l,l.forEach(s=>{s[0].addEventListener(s[1],t[s[2]],ct[s[3]])})}function wu(t,o){const l=`__q_${o}_evt`;t[l]!==void 0&&(t[l].forEach(u=>{u[0].removeEventListener(u[1],t[u[2]],ct[u[3]])}),t[l]=void 0)}const Su={...lr,...pi,...Nl,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]},xu=["update:modelValue"];function Cu(t,o){const{props:l,slots:u,emit:s,proxy:c}=r.getCurrentInstance(),{$q:h}=c,g=or(l,h),w=r.ref(null),{refocusTargetEl:C,refocusTarget:v}=Fd(l,w),k=vi(l,zd),E=r.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),y=r.computed(()=>{const A=r.toRaw(l.val);return E.value===!0?l.modelValue.findIndex(te=>r.toRaw(te)===A):-1}),T=r.computed(()=>E.value===!0?y.value!==-1:r.toRaw(l.modelValue)===r.toRaw(l.trueValue)),z=r.computed(()=>E.value===!0?y.value===-1:r.toRaw(l.modelValue)===r.toRaw(l.falseValue)),R=r.computed(()=>T.value===!1&&z.value===!1),H=r.computed(()=>l.disable===!0?-1:l.tabindex||0),F=r.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(g.value===!0?` q-${t}--dark`:"")+(l.dense===!0?` q-${t}--dense`:"")+(l.leftLabel===!0?" reverse":"")),N=r.computed(()=>{const A=T.value===!0?"truthy":z.value===!0?"falsy":"indet",te=l.color!==void 0&&(l.keepColor===!0||(t==="toggle"?T.value===!0:z.value!==!0))?` text-${l.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${A}${te}`}),Q=r.computed(()=>{const A={type:"checkbox"};return l.name!==void 0&&Object.assign(A,{".checked":T.value,"^checked":T.value===!0?"checked":void 0,name:l.name,value:E.value===!0?l.val:l.trueValue}),A}),G=Ud(Q),j=r.computed(()=>{const A={tabindex:H.value,role:t==="toggle"?"switch":"checkbox","aria-label":l.label,"aria-checked":R.value===!0?"mixed":T.value===!0?"true":"false"};return l.disable===!0&&(A["aria-disabled"]="true"),A});function K(A){A!==void 0&&(Ke(A),v(A)),l.disable!==!0&&s("update:modelValue",le(),A)}function le(){if(E.value===!0){if(T.value===!0){const A=l.modelValue.slice();return A.splice(y.value,1),A}return l.modelValue.concat([l.val])}if(T.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(z.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(A){(A.keyCode===13||A.keyCode===32)&&Ke(A)}function $(A){(A.keyCode===13||A.keyCode===32)&&K(A)}const Z=o(T,R);return Object.assign(c,{toggle:K}),()=>{const A=Z();l.disable!==!0&&G(A,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const te=[r.h("div",{class:N.value,style:k.value,"aria-hidden":"true"},A)];C.value!==null&&te.push(C.value);const P=l.label!==void 0?Mn(u.default,[l.label]):_t(u.default);return P!==void 0&&te.push(r.h("div",{class:`q-${t}__label q-anchor--skip`},P)),r.h("div",{ref:w,class:F.value,...j.value,onClick:K,onKeydown:V,onKeyup:$},te)}}const Gd=r.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[r.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[r.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),r.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ku=Ze({name:"QCheckbox",props:Su,emits:xu,setup(t){function o(l,u){const s=r.computed(()=>(l.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[r.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[r.h(bt,{class:"q-checkbox__icon",name:s.value})])]:[Gd]}return Cu("checkbox",o)}}),Eu=r.defineComponent({__name:"SimpleCheckbox",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue");return(l,u)=>(r.openBlock(),r.createBlock(ku,{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"]))}}),Kd=Ze({name:"QToggle",props:{...Su,icon:String,iconColor:String},emits:xu,setup(t){function o(l,u){const s=r.computed(()=>(l.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),c=r.computed(()=>l.value===!0?t.iconColor:null);return()=>[r.h("div",{class:"q-toggle__track"}),r.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[r.h(bt,{name:s.value,color:c.value})]:void 0)]}return Cu("toggle",o)}}),jd=r.defineComponent({__name:"SimpleSwitch",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue");return(l,u)=>(r.openBlock(),r.createBlock(Kd,{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 $l,bi=0;const Je=new Array(256);for(let t=0;t<256;t++)Je[t]=(t+256).toString(16).substring(1);const Yd=(()=>{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 o=>{const l=new Uint8Array(o);return t.getRandomValues(l),l}}return o=>{const l=[];for(let u=o;u>0;u--)l.push(Math.floor(Math.random()*256));return l}})(),Au=4096;function Fl(){($l===void 0||bi+16>Au)&&(bi=0,$l=Yd(Au));const t=Array.prototype.slice.call($l,bi,bi+=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 Qd(t){return t??null}function Ou(t,o){return t??(o===!0?`f_${Fl()}`:null)}function Zd({getValue:t,required:o=!0}={}){if(vn.value===!0){const l=t!==void 0?r.ref(Qd(t())):r.ref(null);return o===!0&&l.value===null&&r.onMounted(()=>{l.value=`f_${Fl()}`}),t!==void 0&&r.watch(t,u=>{l.value=Ou(u,o)}),l}return t!==void 0?r.computed(()=>Ou(t(),o)):r.ref(`f_${Fl()}`)}const Tu=/^on[A-Z]/;function Xd(){const{attrs:t,vnode:o}=r.getCurrentInstance(),l={listeners:r.ref({}),attributes:r.ref({})};function u(){const s={},c={};for(const h in t)h!=="class"&&h!=="style"&&Tu.test(h)===!1&&(s[h]=t[h]);for(const h in o.props)Tu.test(h)===!0&&(c[h]=o.props[h]);l.attributes.value=s,l.listeners.value=c}return r.onBeforeUpdate(u),u(),l}const Jd="_q_",eh="_q_fo_";function th({validate:t,resetValidation:o,requiresQForm:l}){const u=r.inject(eh,!1);if(u!==!1){const{props:s,proxy:c}=r.getCurrentInstance();Object.assign(c,{validate:t,resetValidation:o}),r.watch(()=>s.disable,h=>{h===!0?(typeof o=="function"&&o(),u.unbindComponent(c)):u.bindComponent(c)}),r.onMounted(()=>{s.disable!==!0&&u.bindComponent(c)}),r.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(c)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Bu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ru=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Iu=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,yi=/^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])\)$/,wi=/^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)\)$/,Ul={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=>Bu.test(t),hexaColor:t=>Ru.test(t),hexOrHexaColor:t=>Iu.test(t),rgbColor:t=>yi.test(t),rgbaColor:t=>wi.test(t),rgbOrRgbaColor:t=>yi.test(t)||wi.test(t),hexOrRgbColor:t=>Bu.test(t)||yi.test(t),hexaOrRgbaColor:t=>Ru.test(t)||wi.test(t),anyColor:t=>Iu.test(t)||yi.test(t)||wi.test(t)};function Mu(t,o=250,l){let u=null;function s(){const c=arguments,h=()=>{u=null,t.apply(this,c)};u!==null&&clearTimeout(u),u=setTimeout(h,o)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const nh=[!0,!1,"ondemand"],rh={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>nh.includes(t)}};function ih(t,o){const{props:l,proxy:u}=r.getCurrentInstance(),s=r.ref(!1),c=r.ref(null),h=r.ref(!1);th({validate:z,resetValidation:T});let g=0,w;const C=r.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),v=r.computed(()=>l.disable!==!0&&C.value===!0&&o.value===!1),k=r.computed(()=>l.error===!0||s.value===!0),E=r.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:c.value);r.watch(()=>l.modelValue,()=>{h.value=!0,v.value===!0&&l.lazyRules===!1&&R()});function y(){l.lazyRules!=="ondemand"&&v.value===!0&&h.value===!0&&R()}r.watch(()=>l.reactiveRules,H=>{H===!0?w===void 0&&(w=r.watch(()=>l.rules,y,{immediate:!0,deep:!0})):w!==void 0&&(w(),w=void 0)},{immediate:!0}),r.watch(()=>l.lazyRules,y),r.watch(t,H=>{H===!0?h.value=!0:v.value===!0&&l.lazyRules!=="ondemand"&&R()});function T(){g++,o.value=!1,h.value=!1,s.value=!1,c.value=null,R.cancel()}function z(H=l.modelValue){if(l.disable===!0||C.value===!1)return!0;const F=++g,N=o.value!==!0?()=>{h.value=!0}:()=>{},Q=(j,K)=>{j===!0&&N(),s.value=j,c.value=K||null,o.value=!1},G=[];for(let j=0;j<l.rules.length;j++){const K=l.rules[j];let le;if(typeof K=="function"?le=K(H,Ul):typeof K=="string"&&Ul[K]!==void 0&&(le=Ul[K](H)),le===!1||typeof le=="string")return Q(!0,le),!1;le!==!0&&le!==void 0&&G.push(le)}return G.length===0?(Q(!1),!0):(o.value=!0,Promise.all(G).then(j=>{if(j===void 0||Array.isArray(j)===!1||j.length===0)return F===g&&Q(!1),!0;const K=j.find(le=>le===!1||typeof le=="string");return F===g&&Q(K!==void 0,K),K===void 0},j=>(F===g&&(console.error(j),Q(!0)),!1)))}const R=Mu(z,0);return r.onBeforeUnmount(()=>{w!==void 0&&w(),R.cancel()}),Object.assign(u,{resetValidation:T,validate:z}),gi(u,"hasError",()=>k.value),{isDirtyModel:h,hasRules:C,hasError:k,errorMessage:E,validate:z,resetValidation:T}}let Ln=[],Mr=[];function Lu(t){Mr=Mr.filter(o=>o!==t)}function lh(t){Lu(t),Mr.push(t)}function qu(t){Lu(t),Mr.length===0&&Ln.length!==0&&(Ln[Ln.length-1](),Ln=[])}function Si(t){Mr.length===0?t():Ln.push(t)}function oh(t){Ln=Ln.filter(o=>o!==t)}function Lr(t){return t!=null&&(""+t).length!==0}const xi={...{...lr,...rh,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]},zl=["update:modelValue","clear","focus","blur"];function Hl({requiredForAttr:t=!0,tagProp:o,changeEvent:l=!1}={}){const{props:u,proxy:s}=r.getCurrentInstance(),c=or(u,s.$q),h=Zd({required:t,getValue:()=>u.for});return{requiredForAttr:t,changeEvent:l,tag:o===!0?r.computed(()=>u.tag):{value:"label"},isDark:c,editable:r.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:Xd(),targetUid:h,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function Wl(t){const{props:o,emit:l,slots:u,attrs:s,proxy:c}=r.getCurrentInstance(),{$q:h}=c;let g=null;t.hasValue===void 0&&(t.hasValue=r.computed(()=>Lr(o.modelValue))),t.emitValue===void 0&&(t.emitValue=W=>{l("update:modelValue",W)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:V,onFocusout:$}),Object.assign(t,{clearValue:Z,onControlFocusin:V,onControlFocusout:$,focus:K}),t.computedCounter===void 0&&(t.computedCounter=r.computed(()=>{if(o.counter!==!1){const W=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 W+(se!==void 0?" / "+se:"")}}));const{isDirtyModel:w,hasRules:C,hasError:v,errorMessage:k,resetValidation:E}=ih(t.focused,t.innerLoading),y=t.floatingLabel!==void 0?r.computed(()=>o.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):r.computed(()=>o.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),T=r.computed(()=>o.bottomSlots===!0||o.hint!==void 0||C.value===!0||o.counter===!0||o.error!==null),z=r.computed(()=>o.filled===!0?"filled":o.outlined===!0?"outlined":o.borderless===!0?"borderless":o.standout?"standout":"standard"),R=r.computed(()=>`q-field row no-wrap items-start q-field--${z.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(o.rounded===!0?" q-field--rounded":"")+(o.square===!0?" q-field--square":"")+(y.value===!0?" q-field--float":"")+(F.value===!0?" q-field--labeled":"")+(o.dense===!0?" q-field--dense":"")+(o.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":"")+(o.hideBottomSpace!==!0&&T.value===!0?" q-field--with-bottom":"")+(o.disable===!0?" q-field--disabled":o.readonly===!0?" q-field--readonly":"")),H=r.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&&t.focused.value===!0?` ${o.standout}`:o.color!==void 0?` text-${o.color}`:"")),F=r.computed(()=>o.labelSlot===!0||o.label!==void 0),N=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(o.labelColor!==void 0&&v.value!==!0?` text-${o.labelColor}`:"")),Q=r.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:y.value,modelValue:o.modelValue,emitValue:t.emitValue})),G=r.computed(()=>{const W={};return t.targetUid.value&&(W.for=t.targetUid.value),o.disable===!0&&(W["aria-disabled"]="true"),W});function j(){const W=document.activeElement;let se=t.targetRef!==void 0&&t.targetRef.value;se&&(W===null||W.id!==t.targetUid.value)&&(se.hasAttribute("tabindex")===!0||(se=se.querySelector("[tabindex]")),se&&se!==W&&se.focus({preventScroll:!0}))}function K(){Si(j)}function le(){oh(j);const W=document.activeElement;W!==null&&t.rootRef.value.contains(W)&&W.blur()}function V(W){g!==null&&(clearTimeout(g),g=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,l("focus",W))}function $(W,se){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,l("blur",W)),se!==void 0&&se())})}function Z(W){Ke(W),h.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(),o.type==="file"&&(t.inputRef.value.value=null),l("update:modelValue",null),t.changeEvent===!0&&l("change",null),l("clear",o.modelValue),r.nextTick(()=>{const se=w.value;E(),w.value=se})}function A(W){[13,32].includes(W.keyCode)&&Z(W)}function te(){const W=[];return u.prepend!==void 0&&W.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Dt},u.prepend())),W.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},P())),v.value===!0&&o.noErrorIcon===!1&&W.push(ue("error",[r.h(bt,{name:h.iconSet.field.error,color:"negative"})])),o.loading===!0||t.innerLoading.value===!0?W.push(ue("inner-loading-append",u.loading!==void 0?u.loading():[r.h(ql,{color:o.color})])):o.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&W.push(ue("inner-clearable-append",[r.h(bt,{class:"q-field__focusable-action",name:o.clearIcon||h.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":h.lang.label.clear,onKeyup:A,onClick:Z})])),u.append!==void 0&&W.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Dt},u.append())),t.getInnerAppend!==void 0&&W.push(ue("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&W.push(t.getControlChild()),W}function P(){const W=[];return o.prefix!==void 0&&o.prefix!==null&&W.push(r.h("div",{class:"q-field__prefix no-pointer-events row items-center"},o.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&W.push(t.getShadowControl()),t.getControl!==void 0?W.push(t.getControl()):u.rawControl!==void 0?W.push(u.rawControl()):u.control!==void 0&&W.push(r.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0},u.control(Q.value))),F.value===!0&&W.push(r.h("div",{class:N.value},_t(u.label,o.label))),o.suffix!==void 0&&o.suffix!==null&&W.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},o.suffix)),W.concat(_t(u.default))}function ae(){let W,se;v.value===!0?k.value!==null?(W=[r.h("div",{role:"alert"},k.value)],se=`q--slot-error-${k.value}`):(W=_t(u.error),se="q--slot-error"):(o.hideHint!==!0||t.focused.value===!0)&&(o.hint!==void 0?(W=[r.h("div",o.hint)],se=`q--slot-hint-${o.hint}`):(W=_t(u.hint),se="q--slot-hint"));const ge=o.counter===!0||u.counter!==void 0;if(o.hideBottomSpace===!0&&ge===!1&&W===void 0)return;const B=r.h("div",{key:se,class:"q-field__messages col"},W);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(o.hideBottomSpace!==!0?"animated":"stale"),onClick:Dt},[o.hideBottomSpace===!0?B:r.h(r.Transition,{name:"q-transition--field-message"},()=>B),ge===!0?r.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function ue(W,se){return se===null?null:r.h("div",{key:W,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let fe=!1;return r.onDeactivated(()=>{fe=!0}),r.onActivated(()=>{fe===!0&&o.autofocus===!0&&c.focus()}),o.autofocus===!0&&r.onMounted(()=>{c.focus()}),r.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(c,{focus:K,blur:le}),function(){const se=t.getControl===void 0&&u.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0,...G.value}:G.value;return r.h(t.tag.value,{ref:t.rootRef,class:[R.value,s.class],style:s.style,...se},[u.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Dt},u.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:t.controlRef,class:H.value,tabindex:-1,...t.controlEvents},te()),T.value===!0?ae():null]),u.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Dt},u.after()):null])}}function Gl(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function qn(t,o){return Gl(t)===!0?!1:[].concat(o).includes(t.keyCode)}const Vu={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Ci={"#":{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()}},Pu=Object.keys(Ci);Pu.forEach(t=>{Ci[t].regex=new RegExp(Ci[t].pattern)});const ah=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Pu.join("")+"])|(.)","g"),Nu=/[.*+?^${}()|[\]\\]/g,We="",uh={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function sh(t,o,l,u){let s,c,h,g,w,C;const v=r.ref(null),k=r.ref(y());function E(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}r.watch(()=>t.type+t.autogrow,z),r.watch(()=>t.mask,V=>{if(V!==void 0)R(k.value,!0);else{const $=K(k.value);z(),t.modelValue!==$&&o("update:modelValue",$)}}),r.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&R(k.value,!0)}),r.watch(()=>t.unmaskedValue,()=>{v.value===!0&&R(k.value)});function y(){if(z(),v.value===!0){const V=G(K(t.modelValue));return t.fillMask!==!1?le(V):V}return t.modelValue}function T(V){if(V<s.length)return s.slice(-V);let $="",Z=s;const A=Z.indexOf(We);if(A!==-1){for(let te=V-Z.length;te>0;te--)$+=We;Z=Z.slice(0,A)+$+Z.slice(A)}return Z}function z(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&E(),v.value===!1){g=void 0,s="",c="";return}const V=Vu[t.mask]===void 0?t.mask:Vu[t.mask],$=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Z=$.replace(Nu,"\\$&"),A=[],te=[],P=[];let ae=t.reverseFillMask===!0,ue="",fe="";V.replace(ah,(B,O,ie,ve,_e)=>{if(ve!==void 0){const U=Ci[ve];P.push(U),fe=U.negate,ae===!0&&(te.push("(?:"+fe+"+)?("+U.pattern+"+)?(?:"+fe+"+)?("+U.pattern+"+)?"),ae=!1),te.push("(?:"+fe+"+)?("+U.pattern+")?")}else if(ie!==void 0)ue="\\"+(ie==="\\"?"":ie),P.push(ie),A.push("([^"+ue+"]+)?"+ue+"?");else{const U=O!==void 0?O:_e;ue=U==="\\"?"\\\\\\\\":U.replace(Nu,"\\\\$&"),P.push(U),A.push("([^"+ue+"]+)?"+ue+"?")}});const W=new RegExp("^"+A.join("")+"("+(ue===""?".":"[^"+ue+"]")+"+)?"+(ue===""?"":"["+ue+"]*")+"$"),se=te.length-1,ge=te.map((B,O)=>O===0&&t.reverseFillMask===!0?new RegExp("^"+Z+"*"+B):O===se?new RegExp("^"+B+"("+(fe===""?".":fe)+"+)?"+(t.reverseFillMask===!0?"$":Z+"*")):new RegExp("^"+B));h=P,g=B=>{const O=W.exec(t.reverseFillMask===!0?B:B.slice(0,P.length+1));O!==null&&(B=O.slice(1).join(""));const ie=[],ve=ge.length;for(let _e=0,U=B;_e<ve;_e++){const ne=ge[_e].exec(U);if(ne===null)break;U=U.slice(ne.shift().length),ie.push(...ne)}return ie.length!==0?ie.join(""):B},s=P.map(B=>typeof B=="string"?B:We).join(""),c=s.split(We).join($)}function R(V,$,Z){const A=u.value,te=A.selectionEnd,P=A.value.length-te,ae=K(V);$===!0&&z();const ue=G(ae),fe=t.fillMask!==!1?le(ue):ue,W=k.value!==fe;A.value!==fe&&(A.value=fe),W===!0&&(k.value=fe),document.activeElement===A&&r.nextTick(()=>{if(fe===c){const ge=t.reverseFillMask===!0?c.length:0;A.setSelectionRange(ge,ge,"forward");return}if(Z==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=A.selectionEnd;let B=te-1;for(let O=w;O<=B&&O<ge;O++)s[O]!==We&&B++;F.right(A,B);return}if(["deleteContentBackward","deleteContentForward"].indexOf(Z)!==-1){const ge=t.reverseFillMask===!0?te===0?fe.length>ue.length?1:0:Math.max(0,fe.length-(fe===c?0:Math.min(ue.length,P)+1))+1:te;A.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(W===!0){const ge=Math.max(0,fe.length-(fe===c?0:Math.min(ue.length,P+1)));ge===1&&te===1?A.setSelectionRange(ge,ge,"forward"):F.rightReverse(A,ge)}else{const ge=fe.length-P;A.setSelectionRange(ge,ge,"backward")}else if(W===!0){const ge=Math.max(0,s.indexOf(We),Math.min(ue.length,te)-1);F.right(A,ge)}else{const ge=te-1;F.right(A,ge)}});const se=t.unmaskedValue===!0?K(fe):fe;String(t.modelValue)!==se&&(t.modelValue!==null||se!=="")&&l(se,!0)}function H(V,$,Z){const A=G(K(V.value));$=Math.max(0,s.indexOf(We),Math.min(A.length,$)),w=$,V.setSelectionRange($,Z,"forward")}const F={left(V,$){const Z=s.slice($-1).indexOf(We)===-1;let A=Math.max(0,$-1);for(;A>=0;A--)if(s[A]===We){$=A,Z===!0&&$++;break}if(A<0&&s[$]!==void 0&&s[$]!==We)return F.right(V,0);$>=0&&V.setSelectionRange($,$,"backward")},right(V,$){const Z=V.value.length;let A=Math.min(Z,$+1);for(;A<=Z;A++)if(s[A]===We){$=A;break}else s[A-1]===We&&($=A);if(A>Z&&s[$-1]!==void 0&&s[$-1]!==We)return F.left(V,Z);V.setSelectionRange($,$,"forward")},leftReverse(V,$){const Z=T(V.value.length);let A=Math.max(0,$-1);for(;A>=0;A--)if(Z[A-1]===We){$=A;break}else if(Z[A]===We&&($=A,A===0))break;if(A<0&&Z[$]!==void 0&&Z[$]!==We)return F.rightReverse(V,0);$>=0&&V.setSelectionRange($,$,"backward")},rightReverse(V,$){const Z=V.value.length,A=T(Z),te=A.slice(0,$+1).indexOf(We)===-1;let P=Math.min(Z,$+1);for(;P<=Z;P++)if(A[P-1]===We){$=P,$>0&&te===!0&&$--;break}if(P>Z&&A[$-1]!==void 0&&A[$-1]!==We)return F.leftReverse(V,Z);V.setSelectionRange($,$,"forward")}};function N(V){o("click",V),C=void 0}function Q(V){if(o("keydown",V),Gl(V)===!0||V.altKey===!0)return;const $=u.value,Z=$.selectionStart,A=$.selectionEnd;if(V.shiftKey||(C=void 0),V.keyCode===37||V.keyCode===39){V.shiftKey&&C===void 0&&(C=$.selectionDirection==="forward"?Z:A);const te=F[(V.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(V.preventDefault(),te($,C===Z?A:Z),V.shiftKey){const P=$.selectionStart;$.setSelectionRange(Math.min(C,P),Math.max(C,P),"forward")}}else V.keyCode===8&&t.reverseFillMask!==!0&&Z===A?(F.left($,Z),$.setSelectionRange($.selectionStart,A,"backward")):V.keyCode===46&&t.reverseFillMask===!0&&Z===A&&(F.rightReverse($,A),$.setSelectionRange(Z,$.selectionEnd,"forward"))}function G(V){if(V==null||V==="")return"";if(t.reverseFillMask===!0)return j(V);const $=h;let Z=0,A="";for(let te=0;te<$.length;te++){const P=V[Z],ae=$[te];if(typeof ae=="string")A+=ae,P===ae&&Z++;else if(P!==void 0&&ae.regex.test(P))A+=ae.transform!==void 0?ae.transform(P):P,Z++;else return A}return A}function j(V){const $=h,Z=s.indexOf(We);let A=V.length-1,te="";for(let P=$.length-1;P>=0&&A!==-1;P--){const ae=$[P];let ue=V[A];if(typeof ae=="string")te=ae+te,ue===ae&&A--;else if(ue!==void 0&&ae.regex.test(ue))do te=(ae.transform!==void 0?ae.transform(ue):ue)+te,A--,ue=V[A];while(Z===P&&ue!==void 0&&ae.regex.test(ue));else return te}return te}function K(V){return typeof V!="string"||g===void 0?typeof V=="number"?g(""+V):V:g(V)}function le(V){return c.length-V.length<=0?V:t.reverseFillMask===!0&&V.length!==0?c.slice(0,-V.length)+V:V+c.slice(V.length)}return{innerValue:k,hasMask:v,moveCursorForPaste:H,updateMaskValue:R,onMaskedKeydown:Q,onMaskedClick:N}}function ch(t,o){function l(){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(c=>{s.items.add(c)}),{files:s.files}}catch{return{files:void 0}}}return r.computed(()=>{if(t.type==="file")return l()})}const fh=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,dh=/[\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,hh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,mh=/[a-z0-9_ -]$/i;function Du(t){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,t(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(vt.is.firefox===!0?mh.test(l.data)===!1:fh.test(l.data)===!0||dh.test(l.data)===!0||hh.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}const $u=Ze({name:"QInput",inheritAttrs:!1,props:{...xi,...uh,...Nl,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:[...zl,"paste","change","keydown","click","animationend"],setup(t,{emit:o,attrs:l}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c={};let h=NaN,g,w,C=null,v;const k=r.ref(null),E=bu(t),{innerValue:y,hasMask:T,moveCursorForPaste:z,updateMaskValue:R,onMaskedKeydown:H,onMaskedClick:F}=sh(t,o,ue,k),N=ch(t),Q=r.computed(()=>Lr(y.value)),G=Du(P),j=Hl({changeEvent:!0}),K=r.computed(()=>t.type==="textarea"||t.autogrow===!0),le=r.computed(()=>K.value===!0||["text","search","url","tel","password"].includes(t.type)),V=r.computed(()=>{const O={...j.splitAttrs.listeners.value,onInput:P,onPaste:te,onChange:W,onBlur:se,onFocus:Yt};return O.onCompositionstart=O.onCompositionupdate=O.onCompositionend=G,T.value===!0&&(O.onKeydown=H,O.onClick=F),t.autogrow===!0&&(O.onAnimationend=ae),O}),$=r.computed(()=>{const O={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:E.value,...j.splitAttrs.attributes.value,id:j.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return K.value===!1&&(O.type=t.type),t.autogrow===!0&&(O.rows=1),O});r.watch(()=>t.type,()=>{k.value&&(k.value.value=t.modelValue)}),r.watch(()=>t.modelValue,O=>{if(T.value===!0){if(w===!0&&(w=!1,String(O)===h))return;R(O)}else y.value!==O&&(y.value=O,t.type==="number"&&c.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete c.value));t.autogrow===!0&&r.nextTick(fe)}),r.watch(()=>t.autogrow,O=>{O===!0?r.nextTick(fe):k.value!==null&&l.rows>0&&(k.value.style.height="auto")}),r.watch(()=>t.dense,()=>{t.autogrow===!0&&r.nextTick(fe)});function Z(){Si(()=>{const O=document.activeElement;k.value!==null&&k.value!==O&&(O===null||O.id!==j.targetUid.value)&&k.value.focus({preventScroll:!0})})}function A(){k.value!==null&&k.value.select()}function te(O){if(T.value===!0&&t.reverseFillMask!==!0){const ie=O.target;z(ie,ie.selectionStart,ie.selectionEnd)}o("paste",O)}function P(O){if(!O||!O.target)return;if(t.type==="file"){o("update:modelValue",O.target.files);return}const ie=O.target.value;if(O.target.qComposing===!0){c.value=ie;return}if(T.value===!0)R(ie,!1,O.inputType);else if(ue(ie),le.value===!0&&O.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=O.target;ve!==void 0&&_e!==void 0&&r.nextTick(()=>{O.target===document.activeElement&&ie.indexOf(O.target.value)===0&&O.target.setSelectionRange(ve,_e)})}t.autogrow===!0&&fe()}function ae(O){o("animationend",O),fe()}function ue(O,ie){v=()=>{C=null,t.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,t.modelValue!==O&&h!==O&&(h=O,ie===!0&&(w=!0),o("update:modelValue",O),r.nextTick(()=>{h===O&&(h=NaN)})),v=void 0},t.type==="number"&&(g=!0,c.value=O),t.debounce!==void 0?(C!==null&&clearTimeout(C),c.value=O,C=setTimeout(v,t.debounce)):v()}function fe(){requestAnimationFrame(()=>{const O=k.value;if(O!==null){const ie=O.parentNode.style,{scrollTop:ve}=O,{overflowY:_e,maxHeight:U}=s.platform.is.firefox===!0?{}:window.getComputedStyle(O),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(O.style.overflowY="hidden"),ie.marginBottom=O.scrollHeight-1+"px",O.style.height="1px",O.style.height=O.scrollHeight+"px",ne===!0&&(O.style.overflowY=parseInt(U,10)<O.scrollHeight?"auto":"hidden"),ie.marginBottom="",O.scrollTop=ve}})}function W(O){G(O),C!==null&&(clearTimeout(C),C=null),v!==void 0&&v(),o("change",O.target.value)}function se(O){O!==void 0&&Yt(O),C!==null&&(clearTimeout(C),C=null),v!==void 0&&v(),g=!1,w=!1,delete c.value,t.type!=="file"&&setTimeout(()=>{k.value!==null&&(k.value.value=y.value!==void 0?y.value:"")})}function ge(){return c.hasOwnProperty("value")===!0?c.value:y.value!==void 0?y.value:""}r.onBeforeUnmount(()=>{se()}),r.onMounted(()=>{t.autogrow===!0&&fe()}),Object.assign(j,{innerValue:y,fieldClass:r.computed(()=>`q-${K.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:k,emitValue:ue,hasValue:Q,floatingLabel:r.computed(()=>Q.value===!0&&(t.type!=="number"||isNaN(y.value)===!1)||Lr(t.displayValue)),getControl:()=>r.h(K.value===!0?"textarea":"input",{ref:k,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...$.value,...V.value,...t.type!=="file"?{value:ge()}:N.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(K.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},ge()),r.h("span",t.shadowText)])});const B=Wl(j);return Object.assign(u,{focus:Z,select:A,getNativeElement:()=>k.value}),gi(u,"nativeEl",()=>k.value),B}}),ki=Ze({name:"QCard",props:{...lr,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:o}){const{proxy:{$q:l}}=r.getCurrentInstance(),u=or(t,l),s=r.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()=>r.h(t.tag,{class:s.value},_t(o.default))}}),gh=r.defineComponent({__name:"WinInput",props:r.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:o}){const l=r.useModel(t,"modelValue"),u=t,s=r.ref(!1),c=r.computed(()=>u.transparent?"glass-card":"win-card"),h=r.computed(()=>u.label===""?void 0:u.label),g=r.computed(()=>{let y="width: 100%; padding-left: 10px; padding-right: 10px;";return u.inputHeight&&(y+="height: "+u.inputHeight),y}),w=r.computed(()=>l.value||s.value?"17.5px":"15px"),C=r.ref(null);function v(){C.value.focus()}function k(){s.value=!0}function E(){s.value=!1}return o({focus:v}),(y,T)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(ki,{onClick:v,class:r.normalizeClass(`${c.value} row items-center ${l.value&&y.label||s.value&&y.label?"q-pt-md":""} `),style:r.normalizeStyle({minHeight:y.height,width:y.width,maxWidth:"calc(100vw - 32px)",minWidth:y.minWidth,margin:"auto"})},{default:r.withCtx(()=>[r.renderSlot(y.$slots,"fixed-label",{class:"self-start"}),r.createVNode($u,{modelValue:l.value,"onUpdate:modelValue":T[0]||(T[0]=z=>l.value=z),ref_key:"inputRef",ref:C,"label-color":"black","input-class":`text-black ${h.value?"":"text-center ww-title"}`,"input-style":y.inputStyle,style:r.normalizeStyle(g.value),readonly:y.readonly,mask:y.mask,prefix:y.prefix,label:h.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:k,onBlur:E},{label:r.withCtx(()=>[!y.label||y.label!=""?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${w.value};`+y.labelStyle)},r.toDisplayString(y.label)+" "+r.toDisplayString(y.required&&!y.readonly?"*":""),5)):r.createCommentVNode("",!0)]),append:r.withCtx(()=>[r.renderSlot(y.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),r.renderSlot(y.$slots,"bottom")]),_:3},8,["class","style"]),y.hint?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`text-${y.hintOptions.position} text-${y.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},r.toDisplayString(y.hint),3)):r.createCommentVNode("",!0)],64))}}),ph={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},vh=r.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(o,l)=>(r.openBlock(),r.createElementBlock("div",ph,r.toDisplayString(o.label),1))}}),_h={style:{"max-width":"400px"},class:"text-center"},bh={style:{"font-size":"16px"}},yh={style:{"font-size":"16px"}},Kl=st(r.defineComponent({__name:"InputControl",props:r.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,l=r.ref(null),u=r.computed(()=>{var c;return(c=o.control.controlType)==null?void 0:c.split("_")[1]}),s=r.useModel(t,"modelValue");return r.onMounted(()=>{var c;(c=l.value)==null||c.focus()}),(c,h)=>(r.openBlock(),r.createElementBlock("div",_h,[!c.innerLabel&&c.control.label?(r.openBlock(),r.createBlock(vh,{key:0,label:c.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(gh,{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:c.innerLabel?c.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:l},r.createSlots({_:2},[c.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",bh,r.toDisplayString(c.control.prefix),1)]),key:"0"}:void 0,c.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",yh,r.toDisplayString(c.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function jl(t,o){const l=t.style;for(const u in o)l[u]=o[u]}function wh(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const o=r.unref(t);if(o)return o.$el||o}function Fu(t,o){if(t==null||t.contains(o)===!0)return!0;for(let l=t.nextElementSibling;l!==null;l=l.nextElementSibling)if(l.contains(o))return!0;return!1}function Sh(t,o=250){let l=!1,u;return function(){return l===!1&&(l=!0,setTimeout(()=>{l=!1},o),u=t.apply(this,arguments)),u}}function Uu(t,o,l,u){l.modifiers.stop===!0&&Yt(t);const s=l.modifiers.color;let c=l.modifiers.center;c=c===!0||u===!0;const h=document.createElement("span"),g=document.createElement("span"),w=yu(t),{left:C,top:v,width:k,height:E}=o.getBoundingClientRect(),y=Math.sqrt(k*k+E*E),T=y/2,z=`${(k-y)/2}px`,R=c?z:`${w.left-C-T}px`,H=`${(E-y)/2}px`,F=c?H:`${w.top-v-T}px`;g.className="q-ripple__inner",jl(g,{height:`${y}px`,width:`${y}px`,transform:`translate3d(${R},${F},0) scale3d(.2,.2,1)`,opacity:0}),h.className=`q-ripple${s?" text-"+s:""}`,h.setAttribute("dir","ltr"),h.appendChild(g),o.appendChild(h);const N=()=>{h.remove(),clearTimeout(Q)};l.abort.push(N);let Q=setTimeout(()=>{g.classList.add("q-ripple__inner--enter"),g.style.transform=`translate3d(${z},${H},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(()=>{h.remove(),l.abort.splice(l.abort.indexOf(N),1)},275)},250)},50)}function zu(t,{modifiers:o,value:l,arg:u}){const s=Object.assign({},t.cfg.ripple,o,l);t.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||u,keyCodes:[].concat(s.keyCodes||13)}}const Hu=au({name:"ripple",beforeMount(t,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")&&Uu(s,t,u,s.qKeyEvent===!0)},keystart:Sh(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&qn(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&Uu(s,t,u,!0)},300)};zu(u,o),t.__qripple=u,Dl(u,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},updated(t,o){if(o.oldValue!==o.value){const l=t.__qripple;l!==void 0&&(l.enabled=o.value!==!1,l.enabled===!0&&Object(o.value)===o.value&&zu(l,o))}},beforeUnmount(t){const o=t.__qripple;o!==void 0&&(o.abort.forEach(l=>{l()}),wu(o,"main"),delete t._qripple)}}),Wu={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},xh=Object.keys(Wu),Ch={align:{type:String,validator:t=>xh.includes(t)}};function kh(t){return r.computed(()=>{const o=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${Wu[o]}`})}function Gu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Ku(t,o){return(t.aliasOf||t)===(o.aliasOf||o)}function Eh(t,o){for(const l in o){const u=o[l],s=t[l];if(typeof u=="string"){if(u!==s)return!1}else if(Array.isArray(s)===!1||s.length!==u.length||u.some((c,h)=>c!==s[h]))return!1}return!0}function ju(t,o){return Array.isArray(o)===!0?t.length===o.length&&t.every((l,u)=>l===o[u]):t.length===1&&t[0]===o}function Ah(t,o){return Array.isArray(t)===!0?ju(t,o):Array.isArray(o)===!0?ju(o,t):t===o}function Oh(t,o){if(Object.keys(t).length!==Object.keys(o).length)return!1;for(const l in t)if(Ah(t[l],o[l])===!1)return!1;return!0}const Yu={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Th={...Yu,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Qu({fallbackTag:t,useDisableForRouterLinkProps:o=!0}={}){const l=r.getCurrentInstance(),{props:u,proxy:s,emit:c}=l,h=du(l),g=r.computed(()=>u.disable!==!0&&u.href!==void 0),w=o===!0?r.computed(()=>h===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):r.computed(()=>h===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),C=r.computed(()=>w.value===!0?F(u.to):null),v=r.computed(()=>C.value!==null),k=r.computed(()=>g.value===!0||v.value===!0),E=r.computed(()=>u.type==="a"||k.value===!0?"a":u.tag||t||"div"),y=r.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:C.value.href,target:u.target}:{}),T=r.computed(()=>{if(v.value===!1)return-1;const{matched:G}=C.value,{length:j}=G,K=G[j-1];if(K===void 0)return-1;const le=s.$route.matched;if(le.length===0)return-1;const V=le.findIndex(Ku.bind(null,K));if(V!==-1)return V;const $=Gu(G[j-2]);return j>1&&Gu(K)===$&&le[le.length-1].path!==$?le.findIndex(Ku.bind(null,G[j-2])):V}),z=r.computed(()=>v.value===!0&&T.value!==-1&&Eh(s.$route.params,C.value.params)),R=r.computed(()=>z.value===!0&&T.value===s.$route.matched.length-1&&Oh(s.$route.params,C.value.params)),H=r.computed(()=>v.value===!0?R.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":z.value===!0?` ${u.activeClass}`:"":"");function F(G){try{return s.$router.resolve(G)}catch{}return null}function N(G,{returnRouterError:j,to:K=u.to,replace:le=u.replace}={}){if(u.disable===!0)return G.preventDefault(),Promise.resolve(!1);if(G.metaKey||G.altKey||G.ctrlKey||G.shiftKey||G.button!==void 0&&G.button!==0||u.target==="_blank")return Promise.resolve(!1);G.preventDefault();const V=s.$router[le===!0?"replace":"push"](K);return j===!0?V:V.then(()=>{}).catch(()=>{})}function Q(G){if(v.value===!0){const j=K=>N(G,K);c("click",G,j),G.defaultPrevented!==!0&&j()}else c("click",G)}return{hasRouterLink:v,hasHrefLink:g,hasLink:k,linkTag:E,resolvedLink:C,linkIsActive:z,linkIsExactActive:R,linkClass:H,linkAttrs:y,getLink:F,navigateToRouterLink:N,navigateOnClick:Q}}const Zu={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Bh={xs:8,sm:10,md:14,lg:20,xl:24},Rh=["button","submit","reset"],Ih=/[^\s]\/[^\s]/,Mh=["flat","outline","push","unelevated"];function Lh(t,o){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":o}const qh={...{...pi,...Yu,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Mh.reduce((t,o)=>(t[o]=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:{...Ch.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Vh(t){const o=vi(t,Bh),l=kh(t),{hasRouterLink:u,hasLink:s,linkTag:c,linkAttrs:h,navigateOnClick:g}=Qu({fallbackTag:"button"}),w=r.computed(()=>{const R=t.fab===!1&&t.fabMini===!1?o.value:{};return t.padding!==void 0?Object.assign({},R,{padding:t.padding.split(/\s+/).map(H=>H in Zu?Zu[H]+"px":H).join(" "),minWidth:"0",minHeight:"0"}):R}),C=r.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=r.computed(()=>t.disable!==!0&&t.loading!==!0),k=r.computed(()=>v.value===!0?t.tabindex||0:-1),E=r.computed(()=>Lh(t,"standard")),y=r.computed(()=>{const R={tabindex:k.value};return s.value===!0?Object.assign(R,h.value):Rh.includes(t.type)===!0&&(R.type=t.type),c.value==="a"?(t.disable===!0?R["aria-disabled"]="true":R.href===void 0&&(R.role="button"),u.value!==!0&&Ih.test(t.type)===!0&&(R.type=t.type)):t.disable===!0&&(R.disabled="",R["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(R,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),R}),T=r.computed(()=>{let R;t.color!==void 0?t.flat===!0||t.outline===!0?R=`text-${t.textColor||t.color}`:R=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(R=`text-${t.textColor}`);const H=t.round===!0?"round":`rectangle${C.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${E.value} q-btn--${H}`+(R!==void 0?" "+R:"")+(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":"")}),z=r.computed(()=>l.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:T,style:w,innerClasses:z,attributes:y,hasLink:s,linkTag:c,navigateOnClick:g,isActionable:v}}const{passiveCapture:Tt}=ct;let ar=null,ur=null,sr=null;const cr=Ze({name:"QBtn",props:{...qh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:o,emit:l}){const{proxy:u}=r.getCurrentInstance(),{classes:s,style:c,innerClasses:h,attributes:g,hasLink:w,linkTag:C,navigateOnClick:v,isActionable:k}=Vh(t),E=r.ref(null),y=r.ref(null);let T=null,z,R=null;const H=r.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),F=r.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:w.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),N=r.computed(()=>({center:t.round})),Q=r.computed(()=>{const P=Math.max(0,Math.min(100,t.percentage));return P>0?{transition:"transform 0.6s",transform:`translateX(${P-100}%)`}:{}}),G=r.computed(()=>{if(t.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(k.value===!0){const P={onClick:K,onKeydown:le,onMousedown:$};if(u.$q.platform.has.touch===!0){const ae=t.onTouchstart!==void 0?"":"Passive";P[`onTouchstart${ae}`]=V}return P}return{onClick:Ke}}),j=r.computed(()=>({ref:E,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:c.value,...g.value,...G.value}));function K(P){if(E.value!==null){if(P!==void 0){if(P.defaultPrevented===!0)return;const ae=document.activeElement;if(t.type==="submit"&&ae!==document.body&&E.value.contains(ae)===!1&&ae.contains(E.value)===!1){E.value.focus();const ue=()=>{document.removeEventListener("keydown",Ke,!0),document.removeEventListener("keyup",ue,Tt),E.value!==null&&E.value.removeEventListener("blur",ue,Tt)};document.addEventListener("keydown",Ke,!0),document.addEventListener("keyup",ue,Tt),E.value.addEventListener("blur",ue,Tt)}}v(P)}}function le(P){E.value!==null&&(l("keydown",P),qn(P,[13,32])===!0&&ur!==E.value&&(ur!==null&&A(),P.defaultPrevented!==!0&&(E.value.focus(),ur=E.value,E.value.classList.add("q-btn--active"),document.addEventListener("keyup",Z,!0),E.value.addEventListener("blur",Z,Tt)),Ke(P)))}function V(P){E.value!==null&&(l("touchstart",P),P.defaultPrevented!==!0&&(ar!==E.value&&(ar!==null&&A(),ar=E.value,T=P.target,T.addEventListener("touchcancel",Z,Tt),T.addEventListener("touchend",Z,Tt)),z=!0,R!==null&&clearTimeout(R),R=setTimeout(()=>{R=null,z=!1},200)))}function $(P){E.value!==null&&(P.qSkipRipple=z===!0,l("mousedown",P),P.defaultPrevented!==!0&&sr!==E.value&&(sr!==null&&A(),sr=E.value,E.value.classList.add("q-btn--active"),document.addEventListener("mouseup",Z,Tt)))}function Z(P){if(E.value!==null&&!(P!==void 0&&P.type==="blur"&&document.activeElement===E.value)){if(P!==void 0&&P.type==="keyup"){if(ur===E.value&&qn(P,[13,32])===!0){const ae=new MouseEvent("click",P);ae.qKeyEvent=!0,P.defaultPrevented===!0&&Dt(ae),P.cancelBubble===!0&&Yt(ae),E.value.dispatchEvent(ae),Ke(P),P.qKeyEvent=!0}l("keyup",P)}A()}}function A(P){const ae=y.value;P!==!0&&(ar===E.value||sr===E.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),ar===E.value&&(T!==null&&(T.removeEventListener("touchcancel",Z,Tt),T.removeEventListener("touchend",Z,Tt)),ar=T=null),sr===E.value&&(document.removeEventListener("mouseup",Z,Tt),sr=null),ur===E.value&&(document.removeEventListener("keyup",Z,!0),E.value!==null&&E.value.removeEventListener("blur",Z,Tt),ur=null),E.value!==null&&E.value.classList.remove("q-btn--active")}function te(P){Ke(P),P.qSkipRipple=!0}return r.onBeforeUnmount(()=>{A(!0)}),Object.assign(u,{click:P=>{k.value===!0&&K(P)}}),()=>{let P=[];t.icon!==void 0&&P.push(r.h(bt,{name:t.icon,left:t.stack!==!0&&H.value===!0,role:"img"})),H.value===!0&&P.push(r.h("span",{class:"block"},[t.label])),P=Mn(o.default,P),t.iconRight!==void 0&&t.round===!1&&P.push(r.h(bt,{name:t.iconRight,right:t.stack!==!0&&H.value===!0,role:"img"}));const ae=[r.h("span",{class:"q-focus-helper",ref:y})];return t.loading===!0&&t.percentage!==void 0&&ae.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:Q.value})])),ae.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+h.value},P)),t.loading!==null&&ae.push(r.h(r.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},o.loading!==void 0?o.loading():[r.h(ql)])]:null)),r.withDirectives(r.h(C.value,j.value,ae),[[Hu,F.value,void 0,N.value]])}}}),Xu=t=>(r.pushScopeId("data-v-3bcb795a"),t=t(),r.popScopeId(),t),Ph={class:"buttons-container"},Nh={class:"lt-md"},Dh={class:"row justify-between q-my-md q-px-md"},$h=Xu(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Fh={key:1},Uh=Xu(()=>r.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),zh=st(r.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const o=t,l=r.computed(()=>o.currentStep+1);return(u,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Ph,[l.value>1?(r.openBlock(),r.createBlock(cr,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[0]||(s[0]=c=>u.$emit("prev")),flat:""},{default:r.withCtx(()=>[r.createVNode(bt,{name:"arrow_back_ios",color:"info"})]),_:1})):r.createCommentVNode("",!0),l.value!==u.stepsCount?(r.openBlock(),r.createBlock(cr,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[1]||(s[1]=c=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:r.withCtx(()=>[r.createVNode(bt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Nh,[r.createElementVNode("div",Dh,[l.value>1&&l.value<u.stepsCount?(r.openBlock(),r.createBlock(cr,{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]=c=>u.$emit("prev")),flat:"","no-caps":""},{default:r.withCtx(()=>[$h]),_:1})):(r.openBlock(),r.createElementBlock("div",Fh)),l.value<u.stepsCount?(r.openBlock(),r.createBlock(cr,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:s[3]||(s[3]=c=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:r.withCtx(()=>[Uh]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),Hh=Ze({name:"QField",inheritAttrs:!1,props:{...xi,tag:{type:String,default:"label"}},emits:zl,setup(){return Wl(Hl({tagProp:!0}))}}),Wh={xs:8,sm:10,md:14,lg:20,xl:24},Gh=Ze({name:"QChip",props:{...lr,...pi,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:o,emit:l}){const{proxy:{$q:u}}=r.getCurrentInstance(),s=or(t,u),c=vi(t,Wh),h=r.computed(()=>t.selected===!0||t.icon!==void 0),g=r.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),w=r.computed(()=>t.iconRemove||u.iconSet.chip.remove),C=r.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),v=r.computed(()=>{const R=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}`:"")+(R?` text-${R} 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":"")+(C.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":"")}),k=r.computed(()=>{const R=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},H={...R,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:R,remove:H}});function E(R){R.keyCode===13&&y(R)}function y(R){t.disable||(l("update:selected",!t.selected),l("click",R))}function T(R){(R.keyCode===void 0||R.keyCode===13)&&(Ke(R),t.disable===!1&&(l("update:modelValue",!1),l("remove")))}function z(){const R=[];C.value===!0&&R.push(r.h("div",{class:"q-focus-helper"})),h.value===!0&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const H=t.label!==void 0?[r.h("div",{class:"ellipsis"},[t.label])]:void 0;return R.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},yd(o.default,H))),t.iconRight&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:w.value,...k.value.remove,onClick:T,onKeyup:T})),R}return()=>{if(t.modelValue===!1)return;const R={class:v.value,style:c.value};return C.value===!0&&Object.assign(R,k.value.chip,{onClick:y,onKeyup:E}),fu("div",R,z(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[Hu,t.ripple]])}}}),Kh=Ze({name:"QItem",props:{...lr,...Th,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:o,emit:l}){const{proxy:{$q:u}}=r.getCurrentInstance(),s=or(t,u),{hasLink:c,linkAttrs:h,linkClass:g,linkTag:w,navigateOnClick:C}=Qu(),v=r.ref(null),k=r.ref(null),E=r.computed(()=>t.clickable===!0||c.value===!0||t.tag==="label"),y=r.computed(()=>t.disable!==!0&&E.value===!0),T=r.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(c.value===!0&&t.active===null?g.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(y.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":""):"")),z=r.computed(()=>t.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function R(N){y.value===!0&&(k.value!==null&&(N.qKeyEvent!==!0&&document.activeElement===v.value?k.value.focus():document.activeElement===k.value&&v.value.focus()),C(N))}function H(N){if(y.value===!0&&qn(N,[13,32])===!0){Ke(N),N.qKeyEvent=!0;const Q=new MouseEvent("click",N);Q.qKeyEvent=!0,v.value.dispatchEvent(Q)}l("keyup",N)}function F(){const N=bd(o.default,[]);return y.value===!0&&N.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:k})),N}return()=>{const N={ref:v,class:T.value,style:z.value,role:"listitem",onClick:R,onKeyup:H};return y.value===!0?(N.tabindex=t.tabindex||"0",Object.assign(N,h.value)):E.value===!0&&(N["aria-disabled"]="true"),r.h(w.value,N,F())}}}),jh=Ze({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:o}){const l=r.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()=>r.h("div",{class:l.value},_t(o.default))}}),Yh=Ze({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:o}){const l=r.computed(()=>parseInt(t.lines,10)),u=r.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":"")+(l.value===1?" ellipsis":"")),s=r.computed(()=>t.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>r.h("div",{style:s.value,class:u.value},_t(o.default))}});function Qh(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),Ml.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Zh={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function Xh({showing:t,avoidEmit:o,configureAnchorEl:l}){const{props:u,proxy:s,emit:c}=r.getCurrentInstance(),h=r.ref(null);let g=null;function w(y){return h.value===null?!1:y===void 0||y.touches===void 0||y.touches.length<=1}const C={};l===void 0&&(Object.assign(C,{hide(y){s.hide(y)},toggle(y){s.toggle(y),y.qAnchorHandled=!0},toggleKey(y){qn(y,13)===!0&&C.toggle(y)},contextClick(y){s.hide(y),Dt(y),r.nextTick(()=>{s.show(y),y.qAnchorHandled=!0})},prevent:Dt,mobileTouch(y){if(C.mobileCleanup(y),w(y)!==!0)return;s.hide(y),h.value.classList.add("non-selectable");const T=y.target;Dl(C,"anchor",[[T,"touchmove","mobileCleanup","passive"],[T,"touchend","mobileCleanup","passive"],[T,"touchcancel","mobileCleanup","passive"],[h.value,"contextmenu","prevent","notPassive"]]),g=setTimeout(()=>{g=null,s.show(y),y.qAnchorHandled=!0},300)},mobileCleanup(y){h.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),t.value===!0&&y!==void 0&&Qh()}}),l=function(y=u.contextMenu){if(u.noParentEvent===!0||h.value===null)return;let T;y===!0?s.$q.platform.is.mobile===!0?T=[[h.value,"touchstart","mobileTouch","passive"]]:T=[[h.value,"mousedown","hide","passive"],[h.value,"contextmenu","contextClick","notPassive"]]:T=[[h.value,"click","toggle","passive"],[h.value,"keyup","toggleKey","passive"]],Dl(C,"anchor",T)});function v(){wu(C,"anchor")}function k(y){for(h.value=y;h.value.classList.contains("q-anchor--skip");)h.value=h.value.parentNode;l()}function E(){if(u.target===!1||u.target===""||s.$el.parentNode===null)h.value=null;else if(u.target===!0)k(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?(h.value=y.$el||y,l()):(h.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return r.watch(()=>u.contextMenu,y=>{h.value!==null&&(v(),l(y))}),r.watch(()=>u.target,()=>{h.value!==null&&v(),E()}),r.watch(()=>u.noParentEvent,y=>{h.value!==null&&(y===!0?v():l())}),r.onMounted(()=>{E(),o!==!0&&u.modelValue===!0&&h.value===null&&c("update:modelValue",!1)}),r.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:h,canShow:w,anchorEvents:C}}function Jh(t,o){const l=r.ref(null);let u;function s(g,w){const C=`${w!==void 0?"add":"remove"}EventListener`,v=w!==void 0?w:u;g!==window&&g[C]("scroll",v,ct.passive),window[C]("scroll",v,ct.passive),u=w}function c(){l.value!==null&&(s(l.value),l.value=null)}const h=r.watch(()=>t.noParentEvent,()=>{l.value!==null&&(c(),o())});return r.onBeforeUnmount(h),{localScrollTarget:l,unconfigureScrollTarget:c,changeScrollEvent:s}}const Ju={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},es=["beforeShow","show","beforeHide","hide"];function ts({showing:t,canShow:o,hideOnRouteChange:l,handleShow:u,handleHide:s,processOnMount:c}){const h=r.getCurrentInstance(),{props:g,emit:w,proxy:C}=h;let v;function k(F){t.value===!0?T(F):E(F)}function E(F){if(g.disable===!0||F!==void 0&&F.qAnchorHandled===!0||o!==void 0&&o(F)!==!0)return;const N=g["onUpdate:modelValue"]!==void 0;N===!0&&(w("update:modelValue",!0),v=F,r.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&y(F)}function y(F){t.value!==!0&&(t.value=!0,w("beforeShow",F),u!==void 0?u(F):w("show",F))}function T(F){if(g.disable===!0)return;const N=g["onUpdate:modelValue"]!==void 0;N===!0&&(w("update:modelValue",!1),v=F,r.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&z(F)}function z(F){t.value!==!1&&(t.value=!1,w("beforeHide",F),s!==void 0?s(F):w("hide",F))}function R(F){g.disable===!0&&F===!0?g["onUpdate:modelValue"]!==void 0&&w("update:modelValue",!1):F===!0!==t.value&&(F===!0?y:z)(v)}r.watch(()=>g.modelValue,R),l!==void 0&&du(h)===!0&&r.watch(()=>C.$route.fullPath,()=>{l.value===!0&&t.value===!0&&T()}),c===!0&&r.onMounted(()=>{R(g.modelValue)});const H={show:E,hide:T,toggle:k};return Object.assign(C,H),H}const ns={};let em=1,tm=document.body;function nm(t,o){const l=document.createElement("div");if(l.id=o!==void 0?`q-portal--${o}--${em++}`:t,ns.globalNodes!==void 0){const u=ns.globalNodes.class;u!==void 0&&(l.className=u)}return tm.appendChild(l),l}function rm(t){t.remove()}const qr=[];function im(t,o){do{if(t.$options.name==="QMenu"){if(t.hide(o),t.$props.separateClosePopup===!0)return Vl(t)}else if(t.__qPortal===!0){const l=Vl(t);return l!==void 0&&l.$options.name==="QPopupProxy"?(t.hide(o),l):t}t=Vl(t)}while(t!=null)}const lm=Ze({name:"QPortal",setup(t,{slots:o}){return()=>o.default()}});function om(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 rs(t,o,l,u){const s=r.ref(!1),c=r.ref(!1);let h=null;const g={},w=u==="dialog"&&om(t);function C(k){if(k===!0){qu(g),c.value=!0;return}c.value=!1,s.value===!1&&(w===!1&&h===null&&(h=nm(!1,u)),s.value=!0,qr.push(t.proxy),lh(g))}function v(k){if(c.value=!1,k!==!0)return;qu(g),s.value=!1;const E=qr.indexOf(t.proxy);E!==-1&&qr.splice(E,1),h!==null&&(rm(h),h=null)}return r.onUnmounted(()=>{v(!0)}),t.proxy.__qPortal=!0,gi(t.proxy,"contentEl",()=>o.value),{showPortal:C,hidePortal:v,portalIsActive:s,portalIsAccessible:c,renderPortal:()=>w===!0?l():s.value===!0?[r.h(r.Teleport,{to:h},r.h(lm,l))]:void 0}}const is={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function ls(t,o=()=>{},l=()=>{}){return{transitionProps:r.computed(()=>{const u=`q-transition--${t.transitionShow||o()}`,s=`q-transition--${t.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:r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function os(){let t;const o=r.getCurrentInstance();function l(){t=void 0}return r.onDeactivated(l),r.onBeforeUnmount(l),{removeTick:l,registerTick(u){t=u,r.nextTick(()=>{t===u&&(Ir(o)===!1&&t(),t=void 0)})}}}const am=[Element,String],um=[null,document,document.body,document.scrollingElement,document.documentElement];function sm(t,o){let l=wh(o);if(l===void 0){if(t==null)return window;l=t.closest(".scroll,.scroll-y,.overflow-auto")}return um.includes(l)?window:l}function cm(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function fm(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let Ei;function dm(){if(Ei!==void 0)return Ei;const t=document.createElement("p"),o=document.createElement("div");jl(t,{width:"100%",height:"200px"}),jl(o,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),o.appendChild(t),document.body.appendChild(o);const l=t.offsetWidth;o.style.overflow="scroll";let u=t.offsetWidth;return l===u&&(u=o.clientWidth),o.remove(),Ei=l-u,Ei}function hm(t,o=!0){return!t||t.nodeType!==Node.ELEMENT_NODE?!1:o?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 Vn=[];let fr;function mm(t){fr=t.keyCode===27}function gm(){fr===!0&&(fr=!1)}function pm(t){fr===!0&&(fr=!1,qn(t,27)===!0&&Vn[Vn.length-1](t))}function as(t){window[t]("keydown",mm),window[t]("blur",gm),window[t]("keyup",pm),fr=!1}function us(t){vt.is.desktop===!0&&(Vn.push(t),Vn.length===1&&as("addEventListener"))}function Ai(t){const o=Vn.indexOf(t);o!==-1&&(Vn.splice(o,1),Vn.length===0&&as("removeEventListener"))}const Pn=[];function ss(t){Pn[Pn.length-1](t)}function cs(t){vt.is.desktop===!0&&(Pn.push(t),Pn.length===1&&document.body.addEventListener("focusin",ss))}function Yl(t){const o=Pn.indexOf(t);o!==-1&&(Pn.splice(o,1),Pn.length===0&&document.body.removeEventListener("focusin",ss))}const{notPassiveCapture:Oi}=ct,Nn=[];function Ti(t){const o=t.target;if(o===void 0||o.nodeType===8||o.classList.contains("no-pointer-events")===!0)return;let l=qr.length-1;for(;l>=0;){const u=qr[l].$;if(u.type.name==="QTooltip"){l--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;l--}for(let u=Nn.length-1;u>=0;u--){const s=Nn[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))t.qClickOutside=!0,s.onClickOutside(t);else return}}function vm(t){Nn.push(t),Nn.length===1&&(document.addEventListener("mousedown",Ti,Oi),document.addEventListener("touchstart",Ti,Oi))}function fs(t){const o=Nn.findIndex(l=>l===t);o!==-1&&(Nn.splice(o,1),Nn.length===0&&(document.removeEventListener("mousedown",Ti,Oi),document.removeEventListener("touchstart",Ti,Oi)))}let ds,hs;function ms(t){const o=t.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 _m(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const Ql={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{Ql[`${t}#ltr`]=t,Ql[`${t}#rtl`]=t});function gs(t,o){const l=t.split(" ");return{vertical:l[0],horizontal:Ql[`${l[1]}#${o===!0?"rtl":"ltr"}`]}}function bm(t,o){let{top:l,left:u,right:s,bottom:c,width:h,height:g}=t.getBoundingClientRect();return o!==void 0&&(l-=o[1],u-=o[0],c+=o[1],s+=o[0],h+=o[0],g+=o[1]),{top:l,bottom:c,height:g,left:u,right:s,width:h,middle:u+(s-u)/2,center:l+(c-l)/2}}function ym(t,o,l){let{top:u,left:s}=t.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 wm(t,o){return{top:0,center:o/2,bottom:o,left:0,middle:t/2,right:t}}function ps(t,o,l,u){return{top:t[l.vertical]-o[u.vertical],left:t[l.horizontal]-o[u.horizontal]}}function vs(t,o=0){if(t.targetEl===null||t.anchorEl===null||o>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{vs(t,o+1)},10);return}const{targetEl:l,offset:u,anchorEl:s,anchorOrigin:c,selfOrigin:h,absoluteOffset:g,fit:w,cover:C,maxHeight:v,maxWidth:k}=t;if(vt.is.ios===!0&&window.visualViewport!==void 0){const j=document.body.style,{offsetLeft:K,offsetTop:le}=window.visualViewport;K!==ds&&(j.setProperty("--q-pe-left",K+"px"),ds=K),le!==hs&&(j.setProperty("--q-pe-top",le+"px"),hs=le)}const{scrollLeft:E,scrollTop:y}=l,T=g===void 0?bm(s,C===!0?[0,0]:u):ym(s,g,u);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:k||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:z,offsetHeight:R}=l,{elWidth:H,elHeight:F}=w===!0||C===!0?{elWidth:Math.max(T.width,z),elHeight:C===!0?Math.max(T.height,R):R}:{elWidth:z,elHeight:R};let N={maxWidth:k,maxHeight:v};(w===!0||C===!0)&&(N.minWidth=T.width+"px",C===!0&&(N.minHeight=T.height+"px")),Object.assign(l.style,N);const Q=wm(H,F);let G=ps(T,Q,c,h);if(g===void 0||u===void 0)Zl(G,T,Q,c,h);else{const{top:j,left:K}=G;Zl(G,T,Q,c,h);let le=!1;if(G.top!==j){le=!0;const V=2*u[1];T.center=T.top-=V,T.bottom-=V+2}if(G.left!==K){le=!0;const V=2*u[0];T.middle=T.left-=V,T.right-=V+2}le===!0&&(G=ps(T,Q,c,h),Zl(G,T,Q,c,h))}N={top:G.top+"px",left:G.left+"px"},G.maxHeight!==void 0&&(N.maxHeight=G.maxHeight+"px",T.height>G.maxHeight&&(N.minHeight=N.maxHeight)),G.maxWidth!==void 0&&(N.maxWidth=G.maxWidth+"px",T.width>G.maxWidth&&(N.minWidth=N.maxWidth)),Object.assign(l.style,N),l.scrollTop!==y&&(l.scrollTop=y),l.scrollLeft!==E&&(l.scrollLeft=E)}function Zl(t,o,l,u,s){const c=l.bottom,h=l.right,g=dm(),w=window.innerHeight-g,C=document.body.clientWidth;if(t.top<0||t.top+c>w)if(s.vertical==="center")t.top=o[u.vertical]>w/2?Math.max(0,w-c):0,t.maxHeight=Math.min(c,w);else if(o[u.vertical]>w/2){const v=Math.min(w,u.vertical==="center"?o.center:u.vertical===s.vertical?o.bottom:o.top);t.maxHeight=Math.min(c,v),t.top=Math.max(0,v-c)}else t.top=Math.max(0,u.vertical==="center"?o.center:u.vertical===s.vertical?o.top:o.bottom),t.maxHeight=Math.min(c,w-t.top);if(t.left<0||t.left+h>C)if(t.maxWidth=Math.min(h,C),s.horizontal==="middle")t.left=o[u.horizontal]>C/2?Math.max(0,C-h):0;else if(o[u.horizontal]>C/2){const v=Math.min(C,u.horizontal==="middle"?o.middle:u.horizontal===s.horizontal?o.right:o.left);t.maxWidth=Math.min(h,v),t.left=Math.max(0,v-t.maxWidth)}else t.left=Math.max(0,u.horizontal==="middle"?o.middle:u.horizontal===s.horizontal?o.left:o.right),t.maxWidth=Math.min(h,C-t.left)}const Sm=Ze({name:"QMenu",inheritAttrs:!1,props:{...Zh,...Ju,...lr,...is,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ms},self:{type:String,validator:ms},offset:{type:Array,validator:_m},scrollTarget:am,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...es,"click","escapeKey"],setup(t,{slots:o,emit:l,attrs:u}){let s=null,c,h,g;const w=r.getCurrentInstance(),{proxy:C}=w,{$q:v}=C,k=r.ref(null),E=r.ref(!1),y=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),T=or(t,v),{registerTick:z,removeTick:R}=os(),{registerTimeout:H}=_i(),{transitionProps:F,transitionStyle:N}=ls(t),{localScrollTarget:Q,changeScrollEvent:G,unconfigureScrollTarget:j}=Jh(t,ie),{anchorEl:K,canShow:le}=Xh({showing:E}),{hide:V}=ts({showing:E,canShow:le,handleShow:ge,handleHide:B,hideOnRouteChange:y,processOnMount:!0}),{showPortal:$,hidePortal:Z,renderPortal:A}=rs(w,k,Ae,"menu"),te={anchorEl:K,innerRef:k,onClickOutside(Y){if(t.persistent!==!0&&E.value===!0)return V(Y),(Y.type==="touchstart"||Y.target.classList.contains("q-dialog__backdrop"))&&Ke(Y),!0}},P=r.computed(()=>gs(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=r.computed(()=>t.cover===!0?P.value:gs(t.self||"top start",v.lang.rtl)),ue=r.computed(()=>(t.square===!0?" q-menu--square":"")+(T.value===!0?" q-menu--dark q-dark":"")),fe=r.computed(()=>t.autoClose===!0?{onClick:ve}:{}),W=r.computed(()=>E.value===!0&&t.persistent!==!0);r.watch(W,Y=>{Y===!0?(us(U),vm(te)):(Ai(U),fs(te))});function se(){Si(()=>{let Y=k.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=t.noRefocus===!1?document.activeElement:null,cs(_e),$(),ie(),c=void 0,Y!==void 0&&(t.touchPosition||t.contextMenu)){const De=yu(Y);if(De.left!==void 0){const{top:lt,left:Ft}=K.value.getBoundingClientRect();c={left:De.left-Ft,top:De.top-lt}}}h===void 0&&(h=r.watch(()=>v.screen.width+"|"+v.screen.height+"|"+t.self+"|"+t.anchor+"|"+v.lang.rtl,ne)),t.noFocus!==!0&&document.activeElement.blur(),z(()=>{ne(),t.noFocus!==!0&&se()}),H(()=>{v.platform.is.ios===!0&&(g=t.autoClose,k.value.click()),ne(),$(!0),l("show",Y)},t.transitionDuration)}function B(Y){R(),Z(),O(!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),H(()=>{Z(!0),l("hide",Y)},t.transitionDuration)}function O(Y){c=void 0,h!==void 0&&(h(),h=void 0),(Y===!0||E.value===!0)&&(Yl(_e),j(),fs(te),Ai(U)),Y!==!0&&(s=null)}function ie(){(K.value!==null||t.scrollTarget!==void 0)&&(Q.value=sm(K.value,t.scrollTarget),G(Q.value,ne))}function ve(Y){g!==!0?(im(C,Y),l("click",Y)):g=!1}function _e(Y){W.value===!0&&t.noFocus!==!0&&Fu(k.value,Y.target)!==!0&&se()}function U(Y){l("escapeKey"),V(Y)}function ne(){vs({targetEl:k.value,offset:t.offset,anchorEl:K.value,anchorOrigin:P.value,selfOrigin:ae.value,absoluteOffset:c,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ae(){return r.h(r.Transition,F.value,()=>E.value===!0?r.h("div",{role:"menu",...u,ref:k,tabindex:-1,class:["q-menu q-position-engine scroll"+ue.value,u.class],style:[u.style,N.value],...fe.value},_t(o.default)):null)}return r.onBeforeUnmount(O),Object.assign(C,{focus:se,updatePosition:ne}),A}});function xm(t,o,l){function u(){}return r.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Vr=0,Xl,Jl,Pr,eo=!1,_s,bs,ys,Dn=null;function Cm(t){km(t)&&Ke(t)}function km(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const o=Wd(t),l=t.shiftKey&&!t.deltaX,u=!l&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),s=l||u?t.deltaY:t.deltaX;for(let c=0;c<o.length;c++){const h=o[c];if(hm(h,u))return u?s<0&&h.scrollTop===0?!0:s>0&&h.scrollTop+h.clientHeight===h.scrollHeight:s<0&&h.scrollLeft===0?!0:s>0&&h.scrollLeft+h.clientWidth===h.scrollWidth}return!0}function ws(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Bi(t){eo!==!0&&(eo=!0,requestAnimationFrame(()=>{eo=!1;const{height:o}=t.target,{clientHeight:l,scrollTop:u}=document.scrollingElement;(Pr===void 0||o!==window.innerHeight)&&(Pr=l-o,document.scrollingElement.scrollTop=u),u>Pr&&(document.scrollingElement.scrollTop-=Math.ceil((u-Pr)/8))}))}function Ss(t){const o=document.body,l=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(o);Xl=fm(window),Jl=cm(window),_s=o.style.left,bs=o.style.top,ys=window.location.href,o.style.left=`-${Xl}px`,o.style.top=`-${Jl}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,vt.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Bi,ct.passiveCapture),window.visualViewport.addEventListener("scroll",Bi,ct.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ws,ct.passiveCapture))}vt.is.desktop===!0&&vt.is.mac===!0&&window[`${t}EventListener`]("wheel",Cm,ct.notPassive),t==="remove"&&(vt.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",Bi,ct.passiveCapture),window.visualViewport.removeEventListener("scroll",Bi,ct.passiveCapture)):window.removeEventListener("scroll",ws,ct.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=_s,o.style.top=bs,window.location.href===ys&&window.scrollTo(Xl,Jl),Pr=void 0)}function Em(t){let o="add";if(t===!0){if(Vr++,Dn!==null){clearTimeout(Dn),Dn=null;return}if(Vr>1)return}else{if(Vr===0||(Vr--,Vr>0))return;if(o="remove",vt.is.ios===!0&&vt.is.nativeMobile===!0){Dn!==null&&clearTimeout(Dn),Dn=setTimeout(()=>{Ss(o),Dn=null},100);return}}Ss(o)}function Am(){let t;return{preventBodyScroll(o){o!==t&&(t!==void 0||o===!0)&&(t=o,Em(o))}}}let Ri=0;const Om={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"},xs={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Tm=Ze({name:"QDialog",inheritAttrs:!1,props:{...Ju,...is,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:[...es,"shake","click","escapeKey"],setup(t,{slots:o,emit:l,attrs:u}){const s=r.getCurrentInstance(),c=r.ref(null),h=r.ref(!1),g=r.ref(!1);let w=null,C=null,v,k;const E=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:y}=Am(),{registerTimeout:T}=_i(),{registerTick:z,removeTick:R}=os(),{transitionProps:H,transitionStyle:F}=ls(t,()=>xs[t.position][0],()=>xs[t.position][1]),N=r.computed(()=>F.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Q,hidePortal:G,portalIsAccessible:j,renderPortal:K}=rs(s,c,_e,"dialog"),{hide:le}=ts({showing:h,hideOnRouteChange:E,handleShow:ae,handleHide:ue,processOnMount:!0}),{addToHistory:V,removeFromHistory:$}=xm(h),Z=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${Om[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":"")),A=r.computed(()=>h.value===!0&&t.seamless!==!0),te=r.computed(()=>t.autoClose===!0?{onClick:O}:{}),P=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${A.value===!0?"modal":"seamless"}`,u.class]);r.watch(()=>t.maximized,U=>{h.value===!0&&B(U)}),r.watch(A,U=>{y(U),U===!0?(cs(ve),us(se)):(Yl(ve),Ai(se))});function ae(U){V(),C=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,B(t.maximized),Q(),g.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),z(fe)):R(),T(()=>{if(s.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:ne,bottom:Ae}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,De=window.visualViewport!==void 0?window.visualViewport.height:Y;ne>0&&Ae>De/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-De,Ae>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+Ae-De/2))),document.activeElement.scrollIntoView()}k=!0,c.value.click(),k=!1}Q(!0),g.value=!1,l("show",U)},t.transitionDuration)}function ue(U){R(),$(),ge(!0),g.value=!0,G(),C!==null&&(((U&&U.type.indexOf("key")===0?C.closest('[tabindex]:not([tabindex^="-"])'):void 0)||C).focus(),C=null),T(()=>{G(!0),g.value=!1,l("hide",U)},t.transitionDuration)}function fe(U){Si(()=>{let ne=c.value;if(ne!==null){if(U!==void 0){const Ae=ne.querySelector(U);if(Ae!==null){Ae.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 W(U){U&&typeof U.focus=="function"?U.focus({preventScroll:!0}):fe(),l("shake");const ne=c.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),w!==null&&clearTimeout(w),w=setTimeout(()=>{w=null,c.value!==null&&(ne.classList.remove("q-animate--scale"),fe())},170))}function se(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&W():(l("escapeKey"),le()))}function ge(U){w!==null&&(clearTimeout(w),w=null),(U===!0||h.value===!0)&&(B(!1),t.seamless!==!0&&(y(!1),Yl(ve),Ai(se))),U!==!0&&(C=null)}function B(U){U===!0?v!==!0&&(Ri<1&&document.body.classList.add("q-body--dialog"),Ri++,v=!0):v===!0&&(Ri<2&&document.body.classList.remove("q-body--dialog"),Ri--,v=!1)}function O(U){k!==!0&&(le(U),l("click",U))}function ie(U){t.persistent!==!0&&t.noBackdropDismiss!==!0?le(U):t.noShake!==!0&&W()}function ve(U){t.allowFocusOutside!==!0&&j.value===!0&&Fu(c.value,U.target)!==!0&&fe('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:fe,shake:W,__updateRefocusTarget(U){C=U||null}}),r.onBeforeUnmount(ge);function _e(){return r.h("div",{role:"dialog","aria-modal":A.value===!0?"true":"false",...u,class:P.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>A.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:N.value,"aria-hidden":"true",tabindex:-1,onClick:ie}):null),r.h(r.Transition,H.value,()=>h.value===!0?r.h("div",{ref:c,class:Z.value,style:F.value,tabindex:-1,...te.value},_t(o.default)):null)])}return K}});let Ii=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const o=document.createElement("div");Object.assign(o.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(o),t.scrollLeft=-1e3,Ii=t.scrollLeft>=0,t.remove()}const $t=1e3,Bm=["start","center","end","start-force","center-force","end-force"],Cs=Array.prototype.filter,Rm=window.getComputedStyle(document.body).overflowAnchor===void 0?Hd:function(t,o){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const l=t.children||[];Cs.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 dr(t,o){return t+o}function to(t,o,l,u,s,c,h,g){const w=t===window?document.scrollingElement||document.documentElement:t,C=s===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-h-g,scrollMaxSize:0,offsetStart:-h,offsetEnd:-g};if(s===!0?(t===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=w.scrollLeft,v.scrollViewSize+=w.clientWidth),v.scrollMaxSize=w.scrollWidth,c===!0&&(v.scrollStart=(Ii===!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=w.scrollTop,v.scrollViewSize+=w.clientHeight),v.scrollMaxSize=w.scrollHeight),l!==null)for(let k=l.previousElementSibling;k!==null;k=k.previousElementSibling)k.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=k[C]);if(u!==null)for(let k=u.nextElementSibling;k!==null;k=k.nextElementSibling)k.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=k[C]);if(o!==t){const k=w.getBoundingClientRect(),E=o.getBoundingClientRect();s===!0?(v.offsetStart+=E.left-k.left,v.offsetEnd-=E.width):(v.offsetStart+=E.top-k.top,v.offsetEnd-=E.height),t!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function ks(t,o,l,u){o==="end"&&(o=(t===window?document.body:t)[l===!0?"scrollWidth":"scrollHeight"]),t===window?l===!0?(u===!0&&(o=(Ii===!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=(Ii===!0?t.scrollWidth-t.offsetWidth:0)-o),t.scrollLeft=o):t.scrollTop=o}function Nr(t,o,l,u){if(l>=u)return 0;const s=o.length,c=Math.floor(l/$t),h=Math.floor((u-1)/$t)+1;let g=t.slice(c,h).reduce(dr,0);return l%$t!==0&&(g-=o.slice(c*$t,l).reduce(dr,0)),u%$t!==0&&u!==s&&(g-=o.slice(u,h*$t).reduce(dr,0)),g}const Es={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 Im({virtualScrollLength:t,getVirtualScrollTarget:o,getVirtualScrollEl:l,virtualScrollItemSizeComputed:u}){const s=r.getCurrentInstance(),{props:c,emit:h,proxy:g}=s,{$q:w}=g;let C,v,k,E=[],y;const T=r.ref(0),z=r.ref(0),R=r.ref({}),H=r.ref(null),F=r.ref(null),N=r.ref(null),Q=r.ref({from:0,to:0}),G=r.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);u===void 0&&(u=r.computed(()=>c.virtualScrollItemSize));const j=r.computed(()=>u.value+";"+c.virtualScrollHorizontal),K=r.computed(()=>j.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);r.watch(K,()=>{ue()}),r.watch(j,le);function le(){ae(v,!0)}function V(B){ae(B===void 0?v:B)}function $(B,O){const ie=o();if(ie==null||ie.nodeType===8)return;const ve=to(ie,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);k!==ve.scrollViewSize&&ue(ve.scrollViewSize),A(ie,ve,Math.min(t.value-1,Math.max(0,parseInt(B,10)||0)),0,Bm.indexOf(O)!==-1?O:v!==-1&&B>v?"end":"start")}function Z(){const B=o();if(B==null||B.nodeType===8)return;const O=to(B,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),ie=t.value-1,ve=O.scrollMaxSize-O.offsetStart-O.offsetEnd-z.value;if(C===O.scrollStart)return;if(O.scrollMaxSize<=0){A(B,O,0,0);return}k!==O.scrollViewSize&&ue(O.scrollViewSize),te(Q.value.from);const _e=Math.floor(O.scrollMaxSize-Math.max(O.scrollViewSize,O.offsetEnd)-Math.min(y[ie],O.scrollViewSize/2));if(_e>0&&Math.ceil(O.scrollStart)>=_e){A(B,O,ie,O.scrollMaxSize-O.offsetEnd-E.reduce(dr,0));return}let U=0,ne=O.scrollStart-O.offsetStart,Ae=ne;if(ne<=ve&&ne+O.scrollViewSize>=T.value)ne-=T.value,U=Q.value.from,Ae=ne;else for(let Y=0;ne>=E[Y]&&U<ie;Y++)ne-=E[Y],U+=$t;for(;ne>0&&U<ie;)ne-=y[U],ne>-O.scrollViewSize?(U++,Ae=ne):Ae=y[U]+ne;A(B,O,U,Ae)}function A(B,O,ie,ve,_e){const U=typeof _e=="string"&&_e.indexOf("-force")!==-1,ne=U===!0?_e.replace("-force",""):_e,Ae=ne!==void 0?ne:"start";let Y=Math.max(0,ie-R.value[Ae]),De=Y+R.value.total;De>t.value&&(De=t.value,Y=Math.max(0,De-R.value.total)),C=O.scrollStart;const lt=Y!==Q.value.from||De!==Q.value.to;if(lt===!1&&ne===void 0){W(ie);return}const{activeElement:Ft}=document,yt=N.value;lt===!0&&yt!==null&&yt!==Ft&&yt.contains(Ft)===!0&&(yt.addEventListener("focusout",P),setTimeout(()=>{yt!==null&&yt.removeEventListener("focusout",P)})),Rm(yt,ie-Y);const nt=ne!==void 0?y.slice(Y,ie).reduce(dr,0):0;if(lt===!0){const wt=De>=Q.value.from&&Y<=Q.value.to?Q.value.to:De;Q.value={from:Y,to:wt},T.value=Nr(E,y,0,Y),z.value=Nr(E,y,De,t.value),requestAnimationFrame(()=>{Q.value.to!==De&&C===O.scrollStart&&(Q.value={from:Q.value.from,to:De},z.value=Nr(E,y,De,t.value))})}requestAnimationFrame(()=>{if(C!==O.scrollStart)return;lt===!0&&te(Y);const wt=y.slice(Y,ie).reduce(dr,0),tn=wt+O.offsetStart+T.value,ft=tn+y[ie];let _n=tn+ve;if(ne!==void 0){const Dr=wt-nt,Ut=O.scrollStart+Dr;_n=U!==!0&&Ut<tn&&ft<Ut+O.scrollViewSize?Ut:ne==="end"?ft-O.scrollViewSize:tn-(ne==="start"?0:Math.round((O.scrollViewSize-y[ie])/2))}C=_n,ks(B,_n,c.virtualScrollHorizontal,w.lang.rtl),W(ie)})}function te(B){const O=N.value;if(O){const ie=Cs.call(O.children,Y=>Y.classList&&Y.classList.contains("q-virtual-scroll--skip")===!1),ve=ie.length,_e=c.virtualScrollHorizontal===!0?Y=>Y.getBoundingClientRect().width:Y=>Y.offsetHeight;let U=B,ne,Ae;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++;Ae=ne-y[U],Ae!==0&&(y[U]+=Ae,E[Math.floor(U/$t)]+=Ae),U++}}}function P(){N.value!==null&&N.value!==void 0&&N.value.focus()}function ae(B,O){const ie=1*u.value;(O===!0||Array.isArray(y)===!1)&&(y=[]);const ve=y.length;y.length=t.value;for(let U=t.value-1;U>=ve;U--)y[U]=ie;const _e=Math.floor((t.value-1)/$t);E=[];for(let U=0;U<=_e;U++){let ne=0;const Ae=Math.min((U+1)*$t,t.value);for(let Y=U*$t;Y<Ae;Y++)ne+=y[Y];E.push(ne)}v=-1,C=void 0,T.value=Nr(E,y,0,Q.value.from),z.value=Nr(E,y,Q.value.to,t.value),B>=0?(te(Q.value.from),r.nextTick(()=>{$(B)})):se()}function ue(B){if(B===void 0&&typeof window<"u"){const ne=o();ne!=null&&ne.nodeType!==8&&(B=to(ne,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}k=B;const O=parseFloat(c.virtualScrollSliceRatioBefore)||0,ie=parseFloat(c.virtualScrollSliceRatioAfter)||0,ve=1+O+ie,_e=B===void 0||B<=0?1:Math.ceil(B/u.value),U=Math.max(1,_e,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/ve));R.value={total:Math.ceil(U*ve),start:Math.ceil(U*O),center:Math.ceil(U*(.5+O)),end:Math.ceil(U*(1+O)),view:_e}}function fe(B,O){const ie=c.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+ie]:u.value+"px"};return[B==="tbody"?r.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:H},[r.h("tr",[r.h("td",{style:{[ie]:`${T.value}px`,...ve},colspan:G.value})])]):r.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:H,style:{[ie]:`${T.value}px`,...ve}}),r.h(B,{class:"q-virtual-scroll__content",key:"content",ref:N,tabindex:-1},O.flat()),B==="tbody"?r.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F},[r.h("tr",[r.h("td",{style:{[ie]:`${z.value}px`,...ve},colspan:G.value})])]):r.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F,style:{[ie]:`${z.value}px`,...ve}})]}function W(B){v!==B&&(c.onVirtualScroll!==void 0&&h("virtualScroll",{index:B,from:Q.value.from,to:Q.value.to-1,direction:B<v?"decrease":"increase",ref:g}),v=B)}ue();const se=Mu(Z,w.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{ue()});let ge=!1;return r.onDeactivated(()=>{ge=!0}),r.onActivated(()=>{if(ge!==!0)return;const B=o();C!==void 0&&B!==void 0&&B!==null&&B.nodeType!==8?ks(B,C,c.virtualScrollHorizontal,w.lang.rtl):$(v)}),r.onBeforeUnmount(()=>{se.cancel()}),Object.assign(g,{scrollTo:$,reset:le,refresh:V}),{virtualScrollSliceRange:Q,virtualScrollSliceSizeComputed:R,setVirtualScrollSize:ue,onVirtualScrollEvt:se,localResetVirtualScroll:ae,padVirtualScroll:fe,scrollTo:$,reset:le,refresh:V}}function As(t,o,l){if(l<=o)return o;const u=l-o+1;let s=o+(t-o)%u;return s<o&&(s=u+s),s===0?0:s}const Os=t=>["add","add-unique","toggle"].includes(t),Mm=".*+?^${}()|[]\\",Lm=Object.keys(xi),Ts=Ze({name:"QSelect",inheritAttrs:!1,props:{...Es,...Nl,...xi,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:Os},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:Es.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...zl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:o,emit:l}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c=r.ref(!1),h=r.ref(!1),g=r.ref(-1),w=r.ref(""),C=r.ref(!1),v=r.ref(!1);let k=null,E=null,y,T,z,R=null,H,F,N,Q;const G=r.ref(null),j=r.ref(null),K=r.ref(null),le=r.ref(null),V=r.ref(null),$=bu(t),Z=Du($i),A=r.computed(()=>Array.isArray(t.options)?t.options.length:0),te=r.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:P,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:ue,padVirtualScroll:fe,onVirtualScrollEvt:W,scrollTo:se,setVirtualScrollSize:ge}=Im({virtualScrollLength:A,getVirtualScrollTarget:Ni,getVirtualScrollEl:Fr,virtualScrollItemSizeComputed:te}),B=Hl(),O=r.computed(()=>{const _=t.mapOptions===!0&&t.multiple!==!0,ee=t.modelValue!==void 0&&(t.modelValue!==null||_===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0&&Array.isArray(t.options)===!0){const X=t.mapOptions===!0&&y!==void 0?y:[],me=ee.map(Ie=>$r(Ie,X));return t.modelValue===null&&_===!0?me.filter(Ie=>Ie!==null):me}return ee}),ie=r.computed(()=>{const _={};return Lm.forEach(ee=>{const X=t[ee];X!==void 0&&(_[ee]=X)}),_}),ve=r.computed(()=>t.optionsDark===null?B.isDark.value:t.optionsDark),_e=r.computed(()=>Lr(O.value)),U=r.computed(()=>{let _="q-field__input q-placeholder col";return t.hideSelected===!0||O.value.length===0?[_,t.inputClass]:(_+=" q-field__input--padding",t.inputClass===void 0?_:[_,t.inputClass])}),ne=r.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ae=r.computed(()=>A.value===0),Y=r.computed(()=>O.value.map(_=>je.value(_)).join(", ")),De=r.computed(()=>t.displayValue!==void 0?t.displayValue:Y.value),lt=r.computed(()=>t.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Ft=r.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||O.value.some(lt.value))),yt=r.computed(()=>B.focused.value===!0?t.tabindex:-1),nt=r.computed(()=>{const _={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":c.value===!0?"true":"false","aria-controls":`${B.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${B.targetUid.value}_${g.value}`),_}),wt=r.computed(()=>({id:`${B.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),tn=r.computed(()=>O.value.map((_,ee)=>({index:ee,opt:_,html:lt.value(_),selected:!0,removeAtIndex:bn,toggleOption:Ht,tabindex:yt.value}))),ft=r.computed(()=>{if(A.value===0)return[];const{from:_,to:ee}=P.value;return t.options.slice(_,ee).map((X,me)=>{const Ie=zt.value(X)===!0,Be=Un(X)===!0,Ge=_+me,Ve={clickable:!0,active:Be,activeClass:Ut.value,manualFocus:!0,focused:!1,disable:Ie,tabindex:-1,dense:t.optionsDense,dark:ve.value,role:"option","aria-selected":Be===!0?"true":"false",id:`${B.targetUid.value}_${Ge}`,onClick:()=>{Ht(X)}};return Ie!==!0&&(g.value===Ge&&(Ve.focused=!0),s.platform.is.desktop===!0&&(Ve.onMousemove=()=>{c.value===!0&&Qt(Ge)})),{index:Ge,opt:X,html:lt.value(X),label:je.value(X),selected:Ve.active,focused:Ve.focused,toggleOption:Ht,setOptionIndex:Qt,itemProps:Ve}})}),_n=r.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),Dr=r.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),Ut=r.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=r.computed(()=>Fn(t.optionValue,"value")),je=r.computed(()=>Fn(t.optionLabel,"label")),zt=r.computed(()=>Fn(t.optionDisable,"disable")),hr=r.computed(()=>O.value.map(_=>Fe.value(_))),$n=r.computed(()=>{const _={onInput:$i,onChange:Z,onKeydown:Pi,onKeyup:qi,onKeypress:Vi,onFocus:gr,onClick(ee){T===!0&&Yt(ee)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=Z,_});r.watch(O,_=>{y=_,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&B.innerLoading.value!==!0&&(h.value!==!0&&c.value!==!0||_e.value!==!0)&&(z!==!0&&ln(),(h.value===!0||c.value===!0)&&wn(""))},{immediate:!0}),r.watch(()=>t.fillInput,ln),r.watch(c,Hr),r.watch(A,mo);function Li(_){return t.emitValue===!0?Fe.value(_):_}function nn(_){if(_!==-1&&_<O.value.length)if(t.multiple===!0){const ee=t.modelValue.slice();l("remove",{index:_,value:ee.splice(_,1)[0]}),l("update:modelValue",ee)}else l("update:modelValue",null)}function bn(_){nn(_),B.focus()}function mr(_,ee){const X=Li(_);if(t.multiple!==!0){t.fillInput===!0&&Hn(je.value(_),!0,!0),l("update:modelValue",X);return}if(O.value.length===0){l("add",{index:0,value:X}),l("update:modelValue",t.multiple===!0?[X]:X);return}if(ee===!0&&Un(_)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const me=t.modelValue.slice();l("add",{index:me.length,value:X}),me.push(X),l("update:modelValue",me)}function Ht(_,ee){if(B.editable.value!==!0||_===void 0||zt.value(_)===!0)return;const X=Fe.value(_);if(t.multiple!==!0){ee!==!0&&(Hn(t.fillInput===!0?je.value(_):"",!0,!0),rn()),j.value!==null&&j.value.focus(),(O.value.length===0||en(Fe.value(O.value[0]),X)!==!0)&&l("update:modelValue",t.emitValue===!0?X:_);return}if((T!==!0||C.value===!0)&&B.focus(),gr(),O.value.length===0){const Be=t.emitValue===!0?X:_;l("add",{index:0,value:Be}),l("update:modelValue",t.multiple===!0?[Be]:Be);return}const me=t.modelValue.slice(),Ie=hr.value.findIndex(Be=>en(Be,X));if(Ie!==-1)l("remove",{index:Ie,value:me.splice(Ie,1)[0]});else{if(t.maxValues!==void 0&&me.length>=t.maxValues)return;const Be=t.emitValue===!0?X:_;l("add",{index:me.length,value:Be}),me.push(Be)}l("update:modelValue",me)}function Qt(_){if(s.platform.is.desktop!==!0)return;const ee=_!==-1&&_<A.value?_:-1;g.value!==ee&&(g.value=ee)}function yn(_=1,ee){if(c.value===!0){let X=g.value;do X=As(X+_,-1,A.value-1);while(X!==-1&&X!==g.value&&zt.value(t.options[X])===!0);g.value!==X&&(Qt(X),se(X),ee!==!0&&t.useInput===!0&&t.fillInput===!0&&zn(X>=0?je.value(t.options[X]):H,!0))}}function $r(_,ee){const X=me=>en(Fe.value(me),_);return t.options.find(X)||ee.find(X)||_}function Fn(_,ee){const X=_!==void 0?_:ee;return typeof X=="function"?X:me=>me!==null&&typeof me=="object"&&X in me?me[X]:me}function Un(_){const ee=Fe.value(_);return hr.value.find(X=>en(X,ee))!==void 0}function gr(_){t.useInput===!0&&j.value!==null&&(_===void 0||j.value===_.target&&_.target.value===Y.value)&&j.value.select()}function pr(_){qn(_,27)===!0&&c.value===!0&&(Yt(_),rn(),ln()),l("keyup",_)}function qi(_){const{value:ee}=_.target;if(_.keyCode!==void 0){pr(_);return}if(_.target.value="",k!==null&&(clearTimeout(k),k=null),E!==null&&(clearTimeout(E),E=null),ln(),typeof ee=="string"&&ee.length!==0){const X=ee.toLocaleLowerCase(),me=Be=>{const Ge=t.options.find(Ve=>Be.value(Ve).toLocaleLowerCase()===X);return Ge===void 0?!1:(O.value.indexOf(Ge)===-1?Ht(Ge):rn(),!0)},Ie=Be=>{me(Fe)!==!0&&(me(je)===!0||Be===!0||wn(ee,!0,()=>Ie(!0)))};Ie()}else B.clearValue(_)}function Vi(_){l("keypress",_)}function Pi(_){if(l("keydown",_),Gl(_)===!0)return;const ee=w.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),X=_.shiftKey!==!0&&t.multiple!==!0&&(g.value!==-1||ee===!0);if(_.keyCode===27){Dt(_);return}if(_.keyCode===9&&X===!1){Sn();return}if(_.target===void 0||_.target.id!==B.targetUid.value||B.editable.value!==!0)return;if(_.keyCode===40&&B.innerLoading.value!==!0&&c.value===!1){Ke(_),xn();return}if(_.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&w.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?nn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&l("update:modelValue",null);return}(_.keyCode===35||_.keyCode===36)&&(typeof w.value!="string"||w.value.length===0)&&(Ke(_),g.value=-1,yn(_.keyCode===36?1:-1,t.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(Ke(_),g.value=Math.max(-1,Math.min(A.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),yn(_.keyCode===33?1:-1,t.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ke(_),yn(_.keyCode===38?-1:1,t.multiple));const me=A.value;if((N===void 0||Q<Date.now())&&(N=""),me>0&&t.useInput!==!0&&_.key!==void 0&&_.key.length===1&&_.altKey===!1&&_.ctrlKey===!1&&_.metaKey===!1&&(_.keyCode!==32||N.length!==0)){c.value!==!0&&xn(_);const Ie=_.key.toLocaleLowerCase(),Be=N.length===1&&N[0]===Ie;Q=Date.now()+1500,Be===!1&&(Ke(_),N+=Ie);const Ge=new RegExp("^"+N.split("").map(vr=>Mm.indexOf(vr)!==-1?"\\"+vr:vr).join(".*"),"i");let Ve=g.value;if(Be===!0||Ve<0||Ge.test(je.value(t.options[Ve]))!==!0)do Ve=As(Ve+1,-1,me-1);while(Ve!==g.value&&(zt.value(t.options[Ve])===!0||Ge.test(je.value(t.options[Ve]))!==!0));g.value!==Ve&&r.nextTick(()=>{Qt(Ve),se(Ve),Ve>=0&&t.useInput===!0&&t.fillInput===!0&&zn(je.value(t.options[Ve]),!0)});return}if(!(_.keyCode!==13&&(_.keyCode!==32||t.useInput===!0||N!=="")&&(_.keyCode!==9||X===!1))){if(_.keyCode!==9&&Ke(_),g.value!==-1&&g.value<me){Ht(t.options[g.value]);return}if(ee===!0){const Ie=(Be,Ge)=>{if(Ge){if(Os(Ge)!==!0)return}else Ge=t.newValueMode;if(Hn("",t.multiple!==!0,!0),Be==null)return;(Ge==="toggle"?Ht:mr)(Be,Ge==="add-unique"),t.multiple!==!0&&(j.value!==null&&j.value.focus(),rn())};if(t.onNewValue!==void 0?l("newValue",w.value,Ie):Ie(w.value),t.multiple!==!0)return}c.value===!0?Sn():B.innerLoading.value!==!0&&xn()}}function Fr(){return T===!0?V.value:K.value!==null&&K.value.contentEl!==null?K.value.contentEl:void 0}function Ni(){return Fr()}function io(){return t.hideSelected===!0?[]:o["selected-item"]!==void 0?tn.value.map(_=>o["selected-item"](_)).slice():o.selected!==void 0?[].concat(o.selected()):t.useChips===!0?tn.value.map((_,ee)=>r.h(Gh,{key:"option-"+ee,removable:B.editable.value===!0&&zt.value(_.opt)!==!0,dense:!0,textColor:t.color,tabindex:yt.value,onRemove(){_.removeAtIndex(ee)}},()=>r.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:je.value(_.opt)}))):[r.h("span",{[Ft.value===!0?"innerHTML":"textContent"]:De.value})]}function Di(){if(Ae.value===!0)return o["no-option"]!==void 0?o["no-option"]({inputValue:w.value}):void 0;const _=o.option!==void 0?o.option:X=>r.h(Kh,{key:X.index,...X.itemProps},()=>r.h(jh,()=>r.h(Yh,()=>r.h("span",{[X.html===!0?"innerHTML":"textContent"]:X.label}))));let ee=fe("div",ft.value.map(_));return o["before-options"]!==void 0&&(ee=o["before-options"]().concat(ee)),Mn(o["after-options"],ee)}function lo(_,ee){const X=ee===!0?{...nt.value,...B.splitAttrs.attributes.value}:void 0,me={ref:ee===!0?j:void 0,key:"i_t",class:U.value,style:t.inputStyle,value:w.value!==void 0?w.value:"",type:"search",...X,id:ee===!0?B.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":_===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...$n.value};return _!==!0&&T===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),r.h("input",me)}function $i(_){k!==null&&(clearTimeout(k),k=null),E!==null&&(clearTimeout(E),E=null),!(_&&_.target&&_.target.qComposing===!0)&&(zn(_.target.value||""),z=!0,H=w.value,B.focused.value!==!0&&(T!==!0||C.value===!0)&&B.focus(),t.onFilter!==void 0&&(k=setTimeout(()=>{k=null,wn(w.value)},t.inputDebounce)))}function zn(_,ee){w.value!==_&&(w.value=_,ee===!0||t.inputDebounce===0||t.inputDebounce==="0"?l("inputValue",_):E=setTimeout(()=>{E=null,l("inputValue",_)},t.inputDebounce))}function Hn(_,ee,X){z=X!==!0,t.useInput===!0&&(zn(_,!0),(ee===!0||X!==!0)&&(H=_),ee!==!0&&wn(_))}function wn(_,ee,X){if(t.onFilter===void 0||ee!==!0&&B.focused.value!==!0)return;B.innerLoading.value===!0?l("filterAbort"):(B.innerLoading.value=!0,v.value=!0),_!==""&&t.multiple!==!0&&O.value.length!==0&&z!==!0&&_===je.value(O.value[0])&&(_="");const me=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);R!==null&&clearTimeout(R),R=me,l("filter",_,(Ie,Be)=>{(ee===!0||B.focused.value===!0)&&R===me&&(clearTimeout(R),typeof Ie=="function"&&Ie(),v.value=!1,r.nextTick(()=>{B.innerLoading.value=!1,B.editable.value===!0&&(ee===!0?c.value===!0&&rn():c.value===!0?Hr(!0):c.value=!0),typeof Be=="function"&&r.nextTick(()=>{Be(u)}),typeof X=="function"&&r.nextTick(()=>{X(u)})}))},()=>{B.focused.value===!0&&R===me&&(clearTimeout(R),B.innerLoading.value=!1,v.value=!1),c.value===!0&&(c.value=!1)})}function oo(){return r.h(Sm,{ref:K,class:ne.value,style:t.popupContentStyle,modelValue:c.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Ae.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:Dr.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...wt.value,onScrollPassive:W,onBeforeShow:Ui,onBeforeHide:Ur,onShow:ao},Di)}function Ur(_){zi(_),Sn()}function ao(){ge()}function zr(_){Yt(_),j.value!==null&&j.value.focus(),C.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function uo(_){Yt(_),r.nextTick(()=>{C.value=!1})}function so(){const _=[r.h(Hh,{class:`col-auto ${B.fieldClass.value}`,...ie.value,for:B.targetUid.value,dark:ve.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:w.value.length!==0,...B.splitAttrs.listeners.value,onFocus:zr,onBlur:uo},{...o,rawControl:()=>B.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&_.push(r.h("div",{ref:V,class:ne.value+" scroll",style:t.popupContentStyle,...wt.value,onClick:Dt,onScrollPassive:W},Di())),r.h(Tm,{ref:le,modelValue:h.value,position:t.useInput===!0?"top":void 0,transitionShow:F,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Ui,onBeforeHide:co,onHide:fo,onShow:ho},()=>r.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(C.value===!0?" q-select__dialog--focused":"")},_))}function co(_){zi(_),le.value!==null&&le.value.__updateRefocusTarget(B.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),B.focused.value=!1}function fo(_){rn(),B.focused.value===!1&&l("blur",_),ln()}function ho(){const _=document.activeElement;(_===null||_.id!==B.targetUid.value)&&j.value!==null&&j.value!==_&&j.value.focus(),ge()}function Sn(){h.value!==!0&&(g.value=-1,c.value===!0&&(c.value=!1),B.focused.value===!1&&(R!==null&&(clearTimeout(R),R=null),B.innerLoading.value===!0&&(l("filterAbort"),B.innerLoading.value=!1,v.value=!1)))}function xn(_){B.editable.value===!0&&(T===!0?(B.onControlFocusin(_),h.value=!0,r.nextTick(()=>{B.focus()})):B.focus(),t.onFilter!==void 0?wn(w.value):(Ae.value!==!0||o["no-option"]!==void 0)&&(c.value=!0))}function rn(){h.value=!1,Sn()}function ln(){t.useInput===!0&&Hn(t.multiple!==!0&&t.fillInput===!0&&O.value.length!==0&&je.value(O.value[0])||"",!0,!0)}function Hr(_){let ee=-1;if(_===!0){if(O.value.length!==0){const X=Fe.value(O.value[0]);ee=t.options.findIndex(me=>en(Fe.value(me),X))}ue(ee)}Qt(ee)}function mo(_,ee){c.value===!0&&B.innerLoading.value===!1&&(ue(-1,!0),r.nextTick(()=>{c.value===!0&&B.innerLoading.value===!1&&(_>ee?ue():Hr(!0))}))}function Fi(){h.value===!1&&K.value!==null&&K.value.updatePosition()}function Ui(_){_!==void 0&&Yt(_),l("popupShow",_),B.hasPopupOpen=!0,B.onControlFocusin(_)}function zi(_){_!==void 0&&Yt(_),l("popupHide",_),B.hasPopupOpen=!1,B.onControlFocusout(_)}function Hi(){T=s.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?o["no-option"]!==void 0||t.onFilter!==void 0||Ae.value===!1:!0),F=s.platform.is.ios===!0&&T===!0&&t.useInput===!0?"fade":t.transitionShow}return r.onBeforeUpdate(Hi),r.onUpdated(Fi),Hi(),r.onBeforeUnmount(()=>{k!==null&&clearTimeout(k),E!==null&&clearTimeout(E)}),Object.assign(u,{showPopup:xn,hidePopup:rn,removeAtIndex:nn,add:mr,toggleOption:Ht,getOptionIndex:()=>g.value,setOptionIndex:Qt,moveOptionSelection:yn,filter:wn,updateMenuPosition:Fi,updateInputValue:Hn,isOptionSelected:Un,getEmittingOptionValue:Li,isOptionDisabled:(..._)=>zt.value.apply(null,_)===!0,getOptionValue:(..._)=>Fe.value.apply(null,_),getOptionLabel:(..._)=>je.value.apply(null,_)}),Object.assign(B,{innerValue:O,fieldClass:r.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:G,targetRef:j,hasValue:_e,showPopup:xn,floatingLabel:r.computed(()=>t.hideSelected!==!0&&_e.value===!0||typeof w.value=="number"||w.value.length!==0||Lr(t.displayValue)),getControlChild:()=>{if(B.editable.value!==!1&&(h.value===!0||Ae.value!==!0||o["no-option"]!==void 0))return T===!0?so():oo();B.hasPopupOpen===!0&&(B.hasPopupOpen=!1)},controlEvents:{onFocusin(_){B.onControlFocusin(_)},onFocusout(_){B.onControlFocusout(_,()=>{ln(),Sn()})},onClick(_){if(Dt(_),T!==!0&&c.value===!0){Sn(),j.value!==null&&j.value.focus();return}xn(_)}},getControl:_=>{const ee=io(),X=_===!0||h.value!==!0||T!==!0;if(t.useInput===!0)ee.push(lo(_,X));else if(B.editable.value===!0){const Ie=X===!0?nt.value:void 0;ee.push(r.h("input",{ref:X===!0?j:void 0,key:"d_t",class:"q-select__focus-target",id:X===!0?B.targetUid.value:void 0,value:De.value,readonly:!0,"data-autofocus":_===!0||t.autofocus===!0||void 0,...Ie,onKeydown:Pi,onKeyup:pr,onKeypress:Vi})),X===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&ee.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:qi}))}if($.value!==void 0&&t.disable!==!0&&hr.value.length!==0){const Ie=hr.value.map(Be=>r.h("option",{value:Be,selected:!0}));ee.push(r.h("select",{class:"hidden",name:$.value,multiple:t.multiple},Ie))}const me=t.useInput===!0||X!==!0?void 0:B.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",...me,...B.splitAttrs.listeners.value},ee)},getInnerAppend:()=>t.loading!==!0&&v.value!==!0&&t.hideDropdownIcon!==!0?[r.h(bt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:_n.value})]:null}),Wl(B)}}),qm=st(r.defineComponent({__name:"SelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.ref([]),l=r.useModel(t,"modelValue"),u=t,s=r.ref(!1),c=r.computed(()=>u.control.customParams),h=r.ref([]),g=r.computed(()=>{var k;return((k=c.value)==null?void 0:k.collection)||null}),w=r.computed(()=>g.value?h.value:u.control.options),C=ir();r.watch(g,k=>{if(!k)return;const E=C.getCollection(g.value);if(E){h.value=E;return}s.value=!0},{immediate:!0});function v(k,E){if(k===""){E(()=>{o.value=Ne.cloneDeep(w.value)});return}E(()=>{const y=k.toLowerCase();o.value=(w.value||[]).filter(T=>T.toLowerCase().includes(y))})}return(k,E)=>{const y=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[k.control.label?(r.openBlock(),r.createBlock(y,{key:0,label:k.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(ki,{class:"q-card win-card row items-center q-px-md"},{default:r.withCtx(()=>[r.createVNode(Ts,{borderless:"",label:k.control.label,modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=T=>l.value=T),"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"]]),Vm={class:"text-center",style:{width:"100%"}},Pm={class:"text-center text-weight-medium"},Nm={class:"question-title"},Dm=r.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(o,l)=>(r.openBlock(),r.createElementBlock("div",Vm,[r.createElementVNode("div",Pm,r.toDisplayString(o.formGroup.order+1)+"/"+r.toDisplayString(o.stepsCount),1),r.createElementVNode("div",Nm,r.toDisplayString(o.formGroup.title||""),1)]))}});function $m(){return r.inject(Jd)}function Bs(t,o){const{maxControlsPerGroup:l,notifyValidations:u}={...ld,...o||{}},s=ir(),c=r.computed(()=>s.formSteps[t]),h=r.ref([]),g=r.ref([]),w=(y,T)=>{s.setControlValue(t,y);const z=h.value.find(F=>F.id===T);z&&(g.value=ad(z));const R=v(y),H=k(y);(R||H)&&C()};function C(){const y=c.value.controls,T=[];fd(y).forEach(R=>{const H=R.controls;if(H.every(N=>!Rl.includes(N.controlType))){T.push(R);return}let F={...R,controls:[]};for(const N of H)if(Rl.includes(N.controlType)){T.push(F),F={...F,controls:[]};const Q=sd(R,N,l);T.push(...Q)}else F.controls.push(N)}),h.value=Ne.orderBy(T,"order").map(R=>({...R,id:R.controls.map(H=>H.id).join("-")})).filter(R=>R.controls.some(H=>H.visible)).map((R,H)=>({...R,order:H,controls:R.controls.filter(F=>F.visible)}))}function v({id:y,value:T}){let z=!1;const H=c.value.controls.filter(F=>{var N;return((N=F.conditions)==null?void 0:N.some(Q=>Q.id===y))||!1});if(H!=null&&H.length)return H.forEach(({id:F,conditions:N,visible:Q})=>{const G=N.every(j=>{const{value:K,operator:le}=j;return{"==":T===K,"!=":T!==K,">":T>K,"<":T<K}[le]||!1});Q!==G&&(s.setControlVisibility(t,F,G),z=!0)}),z}function k({id:y,value:T}){const z=Number(T||0);let R=!1;const F=c.value.controls.filter(N=>{var Q;return N.controlType==="dynamic_array"&&((Q=N.itemsLength)==null?void 0:Q.controlId)===y});if(F!=null&&F.length)return F.forEach(({id:N,itemsLength:Q})=>{(Q==null?void 0:Q.value)!==z&&(s.setControlItemsLength(t,N,z),R=!0)}),R}const{notify:E}=$m();return r.watch(g,y=>{y.length&&(u&&E({message:y[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),r.watch(c,()=>{C()},{immediate:!0}),{model:h,errorMessages:g,rebuildModel:C,onControlValueUpdate:w}}const Fm={key:0,style:{height:"100%"}},Um={class:"q-py-sm"},zm={class:"form-steps-container"},Hm={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},Wm={class:"controls-container",style:{height:"100%"}},Gm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},Km=st(r.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const o=t,l=ir(),{model:u,onControlValueUpdate:s}=Bs(o.index),c=r.computed(()=>u.value.length),h=r.ref(0),g=r.computed(()=>u.value[h.value]),w=v=>{const k=Ne.toPairs(Ne.groupBy(v,"row"));return Ne.orderBy(k,([E,y])=>Number(E),"asc").map(([E,y])=>({controls:Ne.orderBy(y,"col","asc")}))};r.watch(h,v=>{const k=v+1===c.value;l.setOnLastSubstep(k)},{immediate:!0});function C(v){return{input_text:Kl,input_number:Kl,checkbox:Eu,switch:jd,select:qm,cards_select:$d}[v]||Kl}return(v,k)=>g.value?(r.openBlock(),r.createElementBlock("div",Fm,[r.createElementVNode("div",Um,[r.createVNode(Dm,{formGroup:g.value,stepsCount:c.value},null,8,["formGroup","stepsCount"])]),r.createElementVNode("div",zm,[r.createElementVNode("div",Hm,[r.createElementVNode("div",Wm,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u),E=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:E.id},[h.value===E.order?(r.openBlock(),r.createBlock(wd,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:r.withCtx(()=>[r.createElementVNode("div",Gm,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(w(E.controls),(y,T)=>(r.openBlock(),r.createElementBlock("div",{class:"q-mb-xl",key:T},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.controls,(z,R)=>(r.openBlock(),r.createElementBlock("div",{key:R},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(C(z.controlType)),{control:z,modelValue:y.controls[R].value,"onUpdate:modelValue":[H=>y.controls[R].value=H,H=>r.unref(s)(z,E.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):r.createCommentVNode("",!0)],64))),128)),r.createVNode(zh,{currentStep:h.value,stepsCount:c.value,nextDisabled:!g.value.valid,onPrev:k[0]||(k[0]=E=>h.value--),onNext:k[1]||(k[1]=E=>g.value.valid&&h.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),jm={style:{"font-size":"16px","padding-top":"1rem"}},Ym={style:{"font-size":"16px","padding-top":"1rem"}},no=st(r.defineComponent({__name:"SimpleInput",props:r.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue"),l=t,u=r.computed(()=>{var s;return(s=l.control.controlType)==null?void 0:s.split("_")[1]});return(s,c)=>(r.openBlock(),r.createBlock(ki,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode($u,{borderless:"","reverse-fill-mask":"",modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=h=>o.value=h),label:s.control.label,mask:u.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":u.value==="number"},"input-style":{fontSize:"16px"},rules:s.rules},r.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",jm,r.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",Ym,r.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),Rs=r.defineComponent({__name:"SimpleSelect",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue");return(l,u)=>(r.openBlock(),r.createBlock(ki,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(Ts,{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}))}}),Qm={key:0,style:{height:"100%"}},Zm={class:"question-title text-center q-py-sm"},Xm={class:"form-steps-container bg-grey-1"},Jm={class:"form-container",style:{height:"100%"}},eg={class:"row items-center"},tg={class:"col-12 row"},ng=st(r.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const o=t,{model:l,onControlValueUpdate:u}=Bs(o.index,{notifyValidations:!1});function s(w){return{input_text:no,input_number:no,select:Rs,cards_select:Rs,checkbox:Eu}[w]||no}const c=w=>Ne.orderBy(Ne.toPairs(Ne.groupBy(w,"row")),"row").map(([C,v])=>({controls:Ne.orderBy(v,"col")}));function h(w){return[C=>{var k;let v="";return(k=w.validators)==null||k.some(E=>{const{param:y,validator:T}=E,z=eu[T];return z.fn(Number(y))({...w,value:C})?!1:(v=z.message,!0)}),!v.length||v}]}const g=ir();return r.onMounted(()=>g.setOnLastSubstep(!0)),(w,C)=>r.unref(l)?(r.openBlock(),r.createElementBlock("div",Qm,[r.createElementVNode("div",Zm,r.toDisplayString(r.unref(l)[0].title),1),r.createElementVNode("div",Xm,[r.createElementVNode("div",Jm,[r.createElementVNode("div",eg,[r.createElementVNode("div",tg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c(r.unref(l)[0].controls),(v,k)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(c(r.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:k},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.controls,(E,y)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`col-xs-12 col-sm q-pa-xs ${c(r.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:y},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(s(E.controlType)),{control:E,modelValue:E.value,"onUpdate:modelValue":[T=>E.value=T,T=>r.unref(u)(E,r.unref(l)[0].id)],rules:h(E)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),ro=t=>(r.pushScopeId("data-v-ea1ef607"),t=t(),r.popScopeId(),t),rg={class:"buttons-container"},ig={class:"max-container"},lg={key:0,class:"row checkbox justify-end q-my-sm"},og={style:{"max-width":"650px"}},ag=ro(()=>r.createElementVNode("br",{class:"gt-sm"},null,-1)),ug={class:"row justify-between q-my-md q-px-md q-pb-xl"},sg=ro(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),cg={key:1},fg={key:0,class:"text-black"},dg=ro(()=>r.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),hg={key:1,class:"text-black"},mg=st(r.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:o}){const{nextStep:l,previousStep:u,currentStep:s,stepsCount:c,nextDisabled:h,onLastSubstep:g}=r.toRefs(ir()),w=o,C=r.ref(!1),v=E=>{},k=()=>{s.value===c.value?w("submit"):l.value()};return(E,y)=>(r.openBlock(),r.createElementBlock("div",rg,[r.createElementVNode("div",ig,[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("div",lg,[r.createElementVNode("div",og,[r.createVNode(ku,{color:"info",class:"checkbox",modelValue:C.value,"onUpdate:modelValue":y[1]||(y[1]=T=>C.value=T)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),ag,r.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),r.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:y[0]||(y[0]=T=>v())},"aquí"),r.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",ug,[r.unref(s)>1?(r.openBlock(),r.createBlock(cr,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:r.unref(u),flat:"","no-caps":""},{default:r.withCtx(()=>[sg]),_:1},8,["onClick"])):(r.openBlock(),r.createElementBlock("div",cg)),r.createElementVNode("div",null,[!r.unref(h)&&r.unref(g)?(r.openBlock(),r.createBlock(cr,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:k,disable:r.unref(s)===r.unref(c)&&!C.value,flat:"","no-caps":""},{default:r.withCtx(()=>[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("span",fg,[r.createTextVNode(" Enviar "),dg])):(r.openBlock(),r.createElementBlock("span",hg," Siguiente "))]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),Is=r.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:o}){const l=t,u=o,s=r.ref(!1),c=ir(),h=w=>Ne.keys(Ne.groupBy(w.controls,"group")).length===1;r.watch(()=>l.forms,w=>{const v=new iu().fromRaw(w);c.setFormSteps(v)},{immediate:!0});function g(){const w=Ne.cloneDeep(c.formSteps),v=new iu().toRaw(w);u("onSubmit",v)}return(w,C)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",null,[r.renderSlot(w.$slots,"header"),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).formSteps,(v,k)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:k},[h(v)?r.withDirectives((r.openBlock(),r.createBlock(ng,{key:0,index:k},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===k+1]]):r.withDirectives((r.openBlock(),r.createBlock(Km,{key:1,index:k,onOnLastStep:C[0]||(C[0]=E=>s.value=E)},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===k+1]])],64))),128))]),r.createVNode(mg,{onSubmit:g})],64))}}),gg=r.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),Ms=r.defineComponent({__name:"TestUi",setup(t){const o=r.ref("Test W2W UI!");return(l,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[gg,r.createElementVNode("h1",null,r.toDisplayString(o.value),1)],64))}}),pg=r.defineComponent({__name:"DomSection",props:{section:{}},setup(t){const o=r.ref(null),l=t;return r.watch([()=>l.section,o],([u,s])=>{u&&s&&s.appendChild(u)}),(u,s)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"container",ref:o},null,512))}});function Ls(t,o){try{return o.split(".").reduce((u,s)=>u[s],t)}catch(l){return console.error(l),`{{${o}}}`}}const vg={class:"card"},_g={key:0,class:"card-header"},bg={key:0,contenteditable:""},yg={class:"card-content"},wg={contenteditable:"",class:"field-label"},Sg={contenteditable:"",class:"field-value"},xg=st(r.defineComponent({__name:"Card",props:{card:{},data:{}},setup(t){const o=t;function l(s){const c=s.value||Ls(o.data,s.key||"");return u(c,s.format)}function u(s,c){return c?c==="currency"?new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}).format(s):c==="percentage"?`${s} %`:s:s}return(s,c)=>(r.openBlock(),r.createElementBlock("div",vg,[s.card.title||s.card.subtitle?(r.openBlock(),r.createElementBlock("div",_g,[s.card.title?(r.openBlock(),r.createElementBlock("h3",bg,r.toDisplayString(s.card.title),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",yg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.card.fields,(h,g)=>(r.openBlock(),r.createElementBlock("div",{key:g,class:"card-field"},[r.createElementVNode("span",wg,r.toDisplayString(h.label),1),r.createElementVNode("span",Sg,r.toDisplayString(l(h)),1)]))),128))])]))}}),[["__scopeId","data-v-758b9217"]]);function Mi(t,o={}){const l=r.inject("data"),u=r.computed(()=>l.value[t]||o),s=r.computed(()=>l.value.global||{}),c=r.computed(()=>({...s.value,...u.value}));return{sectionData:u,globalData:s,data:c}}const Cg=st(r.defineComponent({__name:"CardGridSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{data:l}=Mi(o.id,{});return(u,s)=>{var c;return r.openBlock(),r.createElementBlock("div",{class:"card-section",style:r.normalizeStyle(((c=u.styles)==null?void 0:c.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.content.cards,(h,g)=>(r.openBlock(),r.createBlock(xg,{key:g,card:h,data:r.unref(l)},null,8,["card","data"]))),128))],4)}}}),[["__scopeId","data-v-1ef55d4c"]]),kg=["src","alt"],Eg=st(r.defineComponent({__name:"ImageSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{content:l,styles:u}=r.toRefs(o);return Mi(o.id,{}),(s,c)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({justifyContent:r.unref(l).align}),class:"img-container"},[r.createElementVNode("img",{src:r.unref(l).src,alt:r.unref(l).alt,style:r.normalizeStyle({width:r.unref(l).width,height:r.unref(l).height})},null,12,kg)],4))}}),[["__scopeId","data-v-16a52375"]]),Ag="#f5f5f5",Og=st(r.defineComponent({__name:"TableSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{columns:l}=r.toRefs(o.content),{data:u}=Mi(o.id,[]),s=r.computed(()=>[...u.value[o.content.rowsKey]||[]]);return(c,h)=>{var g;return r.openBlock(),r.createElementBlock("table",{style:r.normalizeStyle("width: 100%;"+((g=c.styles)==null?void 0:g.cssRaw)||""),class:"table-section"},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),w=>(r.openBlock(),r.createElementBlock("th",{key:w.key,style:r.normalizeStyle({textAlign:w.align||"left"}),contenteditable:""},r.toDisplayString(w.header),5))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(w,C)=>(r.openBlock(),r.createElementBlock("tr",{key:C,style:r.normalizeStyle({backgroundColor:C%2===0?Ag:"transparent"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),v=>(r.openBlock(),r.createElementBlock("td",{key:v.key,style:r.normalizeStyle({textAlign:v.align||"left"}),contenteditable:""},r.toDisplayString(w[v.key]),5))),128))],4))),128))])],4)}}}),[["__scopeId","data-v-cb58770d"]]),Tg={key:0,contenteditable:""},Bg={key:1,contenteditable:""},Rg={key:2,contenteditable:""},Ig=st(r.defineComponent({__name:"TextSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{data:l}=Mi(o.id,{}),u=r.computed(()=>{var c,h;return((h=(c=o.content)==null?void 0:c.lines)==null?void 0:h.map(({type:g,text:w})=>({type:g,text:s(l.value,w)})))||[]});function s(c,h){const g=h.match(/{{(.*?)}}/g);return g?g.reduce((w,C)=>{const v=C.replace(/{{|}}/g,""),k=Ls(c,v);return w.replace(C,k??v)},h):h}return(c,h)=>{var g;return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(((g=c.styles)==null?void 0:g.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,({type:w,text:C})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[w==="title"?(r.openBlock(),r.createElementBlock("h1",Tg,r.toDisplayString(C),1)):r.createCommentVNode("",!0),w==="subtitle"?(r.openBlock(),r.createElementBlock("h2",Bg,r.toDisplayString(C),1)):r.createCommentVNode("",!0),w==="paragraph"?(r.openBlock(),r.createElementBlock("p",Rg,r.toDisplayString(C),1)):r.createCommentVNode("",!0)],64))),256))],4)}}}),[["__scopeId","data-v-7163c4d0"]]),Mg=r.defineComponent({__name:"SectionWrapper",props:{section:{}},setup(t){const o=t,l={[pt.LayoutSectionType.TEXT]:Ig,[pt.LayoutSectionType.IMAGE]:Eg,[pt.LayoutSectionType.TABLE]:Og,[pt.LayoutSectionType.CARDS_GRID]:Cg},u=r.computed(()=>o.section.type),s=r.computed(()=>({content:o.section.content,styles:o.section.styles,id:o.section.idDocLaySection}));return(c,h)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l[u.value]),r.normalizeProps(r.guardReactiveProps(s.value)),null,16))}}),qs=st(r.defineComponent({__name:"SectionsContainer",props:{layout:{},data:{},htmlNodes:{}},setup(t){var h;const o=t,{layout:l,data:u}=r.toRefs(o);r.provide("data",u);const s=r.computed(()=>{var w;const g=l.value.sections.map(C=>({type:"default",section:C}));return(w=o.htmlNodes)==null||w.forEach(({index:C,element:v})=>{const k=C>g.length?g.length:C;g.splice(k,0,{type:"html",section:v})}),g}),c=((h=l.value.styles)==null?void 0:h.cssRaw)||"";return(g,w)=>(r.openBlock(),r.createElementBlock("div",{class:"sections-container",style:r.normalizeStyle(r.unref(c))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,({type:C,section:v})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[C==="default"?(r.openBlock(),r.createBlock(Mg,{key:0,section:v},null,8,["section"])):(r.openBlock(),r.createBlock(pg,{key:1,section:v},null,8,["section"]))],64))),256))],4))}}),[["__scopeId","data-v-11c6be6b"]]),Lg={install(t,o){if(o!=null&&o.pinia)t.use(o.pinia);else throw new Error("No se ha encontrado una instancia de pinia");t.component("DynamicForm",Is),t.component("TestUi",Ms),t.component("SectionsContainer",qs)}};Nt.DynamicForm=Is,Nt.SectionsContainer=qs,Nt.TestUi=Ms,Nt.default=Lg,Object.defineProperties(Nt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
26
+ `)+$+`return __p
27
+ }`;var we=fd(function(){return Oe(m,ue+"return "+$).apply(o,p)});if(we.source=$,Aa(we))throw we;return we}function Jy(e){return Te(e).toLowerCase()}function ew(e){return Te(e).toUpperCase()}function tw(e,n,i){if(e=Te(e),e&&(i||n===o))return bc(e);if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=Wt(n),m=yc(a,f),p=wc(a,f)+1;return In(a,m,p).join("")}function nw(e,n,i){if(e=Te(e),e&&(i||n===o))return e.slice(0,xc(e)+1);if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=wc(a,Wt(n))+1;return In(a,0,f).join("")}function rw(e,n,i){if(e=Te(e),e&&(i||n===o))return e.replace(Gr,"");if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=yc(a,Wt(n));return In(a,f).join("")}function iw(e,n){var i=D,a=Q;if($e(n)){var f="separator"in n?n.separator:f;i="length"in n?ye(n.length):i,a="omission"in n?Ct(n.omission):a}e=Te(e);var m=e.length;if(yr(e)){var p=Wt(e);m=p.length}if(i>=m)return e;var y=i-wr(a);if(y<1)return a;var k=p?In(p,0,y).join(""):e.slice(0,y);if(f===o)return k+a;if(p&&(y+=k.length-y),Oa(f)){if(e.slice(y).search(f)){var L,q=k;for(f.global||(f=Hl(f.source,Te(on.exec(f))+"g")),f.lastIndex=0;L=f.exec(q);)var $=L.index;k=k.slice(0,$===o?y:$)}}else if(e.indexOf(Ct(f),y)!=y){var ee=k.lastIndexOf(f);ee>-1&&(k=k.slice(0,ee))}return k+a}function ow(e){return e=Te(e),e&&_l.test(e)?e.replace(Hr,Lp):e}var lw=Or(function(e,n,i){return e+(i?" ":"")+n.toUpperCase()}),Ra=df("toUpperCase");function cd(e,n,i){return e=Te(e),n=i?o:n,n===o?Tp(e)?Pp(e):yp(e):e.match(n)||[]}var fd=Se(function(e,n){try{return St(e,o,n)}catch(i){return Aa(i)?i:new _e(i)}}),aw=cn(function(e,n){return Rt(n,function(i){i=Jt(i),un(e,i,ka(e[i],e))}),e});function uw(e){var n=e==null?0:e.length,i=de();return e=n?Ne(e,function(a){if(typeof a[1]!="function")throw new It(h);return[i(a[0]),a[1]]}):[],Se(function(a){for(var f=-1;++f<n;){var m=e[f];if(St(m[0],this,a))return St(m[1],this,a)}})}function sw(e){return Lv(Lt(e,C))}function Ia(e){return function(){return e}}function cw(e,n){return e==null||e!==e?n:e}var fw=mf(),dw=mf(!0);function vt(e){return e}function Ma(e){return zc(typeof e=="function"?e:Lt(e,C))}function hw(e){return Wc(Lt(e,C))}function mw(e,n){return Gc(e,Lt(n,C))}var gw=Se(function(e,n){return function(i){return ni(i,e,n)}}),pw=Se(function(e,n){return function(i){return ni(e,i,n)}});function La(e,n,i){var a=Xe(n),f=_o(n,a);i==null&&!($e(n)&&(f.length||!a.length))&&(i=n,n=e,e=this,f=_o(n,Xe(n)));var m=!($e(i)&&"chain"in i)||!!i.chain,p=dn(e);return Rt(f,function(y){var k=n[y];e[y]=k,p&&(e.prototype[y]=function(){var L=this.__chain__;if(m||L){var q=e(this.__wrapped__),$=q.__actions__=mt(this.__actions__);return $.push({func:k,args:arguments,thisArg:e}),q.__chain__=L,q}return k.apply(e,En([this.value()],arguments))})}),e}function vw(){return et._===this&&(et._=zp),this}function qa(){}function _w(e){return e=ye(e),Se(function(n){return Kc(n,e)})}var bw=da(Ne),yw=da(mc),ww=da(Pl);function dd(e){return ba(e)?Nl(Jt(e)):Zv(e)}function Sw(e){return function(n){return e==null?o:Zn(e,n)}}var xw=pf(),Cw=pf(!0);function Va(){return[]}function Pa(){return!1}function kw(){return{}}function Ew(){return""}function Aw(){return!0}function Ow(e,n){if(e=ye(e),e<1||e>K)return[];var i=B,a=rt(e,B);n=de(n),e-=B;for(var f=Fl(a,n);++i<e;)n(i);return f}function Tw(e){return be(e)?Ne(e,Jt):kt(e)?[e]:mt(If(Te(e)))}function Bw(e){var n=++Fp;return Te(e)+n}var Rw=Co(function(e,n){return e+n},0),Iw=ha("ceil"),Mw=Co(function(e,n){return e/n},1),Lw=ha("floor");function qw(e){return e&&e.length?vo(e,vt,Xl):o}function Vw(e,n){return e&&e.length?vo(e,de(n,2),Xl):o}function Pw(e){return vc(e,vt)}function Nw(e,n){return vc(e,de(n,2))}function Dw(e){return e&&e.length?vo(e,vt,na):o}function $w(e,n){return e&&e.length?vo(e,de(n,2),na):o}var Fw=Co(function(e,n){return e*n},1),Uw=ha("round"),zw=Co(function(e,n){return e-n},0);function Hw(e){return e&&e.length?$l(e,vt):0}function Ww(e,n){return e&&e.length?$l(e,de(n,2)):0}return d.after=hb,d.ary=zf,d.assign=ey,d.assignIn=rd,d.assignInWith=Po,d.assignWith=ty,d.at=ny,d.before=Hf,d.bind=ka,d.bindAll=aw,d.bindKey=Wf,d.castArray=kb,d.chain=$f,d.chunk=L0,d.compact=q0,d.concat=V0,d.cond=uw,d.conforms=sw,d.constant=Ia,d.countBy=H_,d.create=ry,d.curry=Gf,d.curryRight=Kf,d.debounce=jf,d.defaults=iy,d.defaultsDeep=oy,d.defer=mb,d.delay=gb,d.difference=P0,d.differenceBy=N0,d.differenceWith=D0,d.drop=$0,d.dropRight=F0,d.dropRightWhile=U0,d.dropWhile=z0,d.fill=H0,d.filter=G_,d.flatMap=Y_,d.flatMapDeep=Q_,d.flatMapDepth=Z_,d.flatten=Vf,d.flattenDeep=W0,d.flattenDepth=G0,d.flip=pb,d.flow=fw,d.flowRight=dw,d.fromPairs=K0,d.functions=dy,d.functionsIn=hy,d.groupBy=X_,d.initial=Y0,d.intersection=Q0,d.intersectionBy=Z0,d.intersectionWith=X0,d.invert=gy,d.invertBy=py,d.invokeMap=eb,d.iteratee=Ma,d.keyBy=tb,d.keys=Xe,d.keysIn=pt,d.map=Ro,d.mapKeys=_y,d.mapValues=by,d.matches=hw,d.matchesProperty=mw,d.memoize=Mo,d.merge=yy,d.mergeWith=id,d.method=gw,d.methodOf=pw,d.mixin=La,d.negate=Lo,d.nthArg=_w,d.omit=wy,d.omitBy=Sy,d.once=vb,d.orderBy=nb,d.over=bw,d.overArgs=_b,d.overEvery=yw,d.overSome=ww,d.partial=Ea,d.partialRight=Yf,d.partition=rb,d.pick=xy,d.pickBy=od,d.property=dd,d.propertyOf=Sw,d.pull=n_,d.pullAll=Nf,d.pullAllBy=r_,d.pullAllWith=i_,d.pullAt=o_,d.range=xw,d.rangeRight=Cw,d.rearg=bb,d.reject=lb,d.remove=l_,d.rest=yb,d.reverse=xa,d.sampleSize=ub,d.set=ky,d.setWith=Ey,d.shuffle=sb,d.slice=a_,d.sortBy=db,d.sortedUniq=m_,d.sortedUniqBy=g_,d.split=Yy,d.spread=wb,d.tail=p_,d.take=v_,d.takeRight=__,d.takeRightWhile=b_,d.takeWhile=y_,d.tap=q_,d.throttle=Sb,d.thru=Bo,d.toArray=ed,d.toPairs=ld,d.toPairsIn=ad,d.toPath=Tw,d.toPlainObject=nd,d.transform=Ay,d.unary=xb,d.union=w_,d.unionBy=S_,d.unionWith=x_,d.uniq=C_,d.uniqBy=k_,d.uniqWith=E_,d.unset=Oy,d.unzip=Ca,d.unzipWith=Df,d.update=Ty,d.updateWith=By,d.values=Rr,d.valuesIn=Ry,d.without=A_,d.words=cd,d.wrap=Cb,d.xor=O_,d.xorBy=T_,d.xorWith=B_,d.zip=R_,d.zipObject=I_,d.zipObjectDeep=M_,d.zipWith=L_,d.entries=ld,d.entriesIn=ad,d.extend=rd,d.extendWith=Po,La(d,d),d.add=Rw,d.attempt=fd,d.camelCase=qy,d.capitalize=ud,d.ceil=Iw,d.clamp=Iy,d.clone=Eb,d.cloneDeep=Ob,d.cloneDeepWith=Tb,d.cloneWith=Ab,d.conformsTo=Bb,d.deburr=sd,d.defaultTo=cw,d.divide=Mw,d.endsWith=Vy,d.eq=Kt,d.escape=Py,d.escapeRegExp=Ny,d.every=W_,d.find=K_,d.findIndex=Lf,d.findKey=ly,d.findLast=j_,d.findLastIndex=qf,d.findLastKey=ay,d.floor=Lw,d.forEach=Ff,d.forEachRight=Uf,d.forIn=uy,d.forInRight=sy,d.forOwn=cy,d.forOwnRight=fy,d.get=Ta,d.gt=Rb,d.gte=Ib,d.has=my,d.hasIn=Ba,d.head=Pf,d.identity=vt,d.includes=J_,d.indexOf=j0,d.inRange=My,d.invoke=vy,d.isArguments=er,d.isArray=be,d.isArrayBuffer=Mb,d.isArrayLike=gt,d.isArrayLikeObject=ze,d.isBoolean=Lb,d.isBuffer=Mn,d.isDate=qb,d.isElement=Vb,d.isEmpty=Pb,d.isEqual=Nb,d.isEqualWith=Db,d.isError=Aa,d.isFinite=$b,d.isFunction=dn,d.isInteger=Qf,d.isLength=qo,d.isMap=Zf,d.isMatch=Fb,d.isMatchWith=Ub,d.isNaN=zb,d.isNative=Hb,d.isNil=Gb,d.isNull=Wb,d.isNumber=Xf,d.isObject=$e,d.isObjectLike=Ue,d.isPlainObject=ui,d.isRegExp=Oa,d.isSafeInteger=Kb,d.isSet=Jf,d.isString=Vo,d.isSymbol=kt,d.isTypedArray=Br,d.isUndefined=jb,d.isWeakMap=Yb,d.isWeakSet=Qb,d.join=J0,d.kebabCase=Dy,d.last=Vt,d.lastIndexOf=e_,d.lowerCase=$y,d.lowerFirst=Fy,d.lt=Zb,d.lte=Xb,d.max=qw,d.maxBy=Vw,d.mean=Pw,d.meanBy=Nw,d.min=Dw,d.minBy=$w,d.stubArray=Va,d.stubFalse=Pa,d.stubObject=kw,d.stubString=Ew,d.stubTrue=Aw,d.multiply=Fw,d.nth=t_,d.noConflict=vw,d.noop=qa,d.now=Io,d.pad=Uy,d.padEnd=zy,d.padStart=Hy,d.parseInt=Wy,d.random=Ly,d.reduce=ib,d.reduceRight=ob,d.repeat=Gy,d.replace=Ky,d.result=Cy,d.round=Uw,d.runInContext=S,d.sample=ab,d.size=cb,d.snakeCase=jy,d.some=fb,d.sortedIndex=u_,d.sortedIndexBy=s_,d.sortedIndexOf=c_,d.sortedLastIndex=f_,d.sortedLastIndexBy=d_,d.sortedLastIndexOf=h_,d.startCase=Qy,d.startsWith=Zy,d.subtract=zw,d.sum=Hw,d.sumBy=Ww,d.template=Xy,d.times=Ow,d.toFinite=hn,d.toInteger=ye,d.toLength=td,d.toLower=Jy,d.toNumber=Pt,d.toSafeInteger=Jb,d.toString=Te,d.toUpper=ew,d.trim=tw,d.trimEnd=nw,d.trimStart=rw,d.truncate=iw,d.unescape=ow,d.uniqueId=Bw,d.upperCase=lw,d.upperFirst=Ra,d.each=Ff,d.eachRight=Uf,d.first=Pf,La(d,function(){var e={};return Zt(d,function(n,i){Re.call(d.prototype,i)||(e[i]=n)}),e}(),{chain:!1}),d.VERSION=u,Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Rt(["drop","take"],function(e,n){ke.prototype[e]=function(i){i=i===o?1:Ze(ye(i),0);var a=this.__filtered__&&!n?new ke(this):this.clone();return a.__filtered__?a.__takeCount__=rt(i,a.__takeCount__):a.__views__.push({size:rt(i,B),type:e+(a.__dir__<0?"Right":"")}),a},ke.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),Rt(["filter","map","takeWhile"],function(e,n){var i=n+1,a=i==P||i==le;ke.prototype[e]=function(f){var m=this.clone();return m.__iteratees__.push({iteratee:de(f,3),type:i}),m.__filtered__=m.__filtered__||a,m}}),Rt(["head","last"],function(e,n){var i="take"+(n?"Right":"");ke.prototype[e]=function(){return this[i](1).value()[0]}}),Rt(["initial","tail"],function(e,n){var i="drop"+(n?"":"Right");ke.prototype[e]=function(){return this.__filtered__?new ke(this):this[i](1)}}),ke.prototype.compact=function(){return this.filter(vt)},ke.prototype.find=function(e){return this.filter(e).head()},ke.prototype.findLast=function(e){return this.reverse().find(e)},ke.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new ke(this):this.map(function(i){return ni(i,e,n)})}),ke.prototype.reject=function(e){return this.filter(Lo(de(e)))},ke.prototype.slice=function(e,n){e=ye(e);var i=this;return i.__filtered__&&(e>0||n<0)?new ke(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),n!==o&&(n=ye(n),i=n<0?i.dropRight(-n):i.take(n-e)),i)},ke.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ke.prototype.toArray=function(){return this.take(B)},Zt(ke.prototype,function(e,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),f=d[a?"take"+(n=="last"?"Right":""):n],m=a||/^find/.test(n);f&&(d.prototype[n]=function(){var p=this.__wrapped__,y=a?[1]:arguments,k=p instanceof ke,L=y[0],q=k||be(p),$=function(Ce){var Ee=f.apply(d,En([Ce],y));return a&&ee?Ee[0]:Ee};q&&i&&typeof L=="function"&&L.length!=1&&(k=q=!1);var ee=this.__chain__,ue=!!this.__actions__.length,he=m&&!ee,we=k&&!ue;if(!m&&q){p=we?p:new ke(this);var me=e.apply(p,y);return me.__actions__.push({func:Bo,args:[$],thisArg:o}),new Mt(me,ee)}return he&&we?e.apply(this,y):(me=this.thru($),he?a?me.value()[0]:me.value():me)})}),Rt(["pop","push","shift","sort","splice","unshift"],function(e){var n=to[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var f=arguments;if(a&&!this.__chain__){var m=this.value();return n.apply(be(m)?m:[],f)}return this[i](function(p){return n.apply(be(p)?p:[],f)})}}),Zt(ke.prototype,function(e,n){var i=d[n];if(i){var a=i.name+"";Re.call(kr,a)||(kr[a]=[]),kr[a].push({name:n,func:i})}}),kr[xo(o,G).name]=[{name:"wrapper",func:o}],ke.prototype.clone=ov,ke.prototype.reverse=lv,ke.prototype.value=av,d.prototype.at=V_,d.prototype.chain=P_,d.prototype.commit=N_,d.prototype.next=D_,d.prototype.plant=F_,d.prototype.reverse=U_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=z_,d.prototype.first=d.prototype.head,Yr&&(d.prototype[Yr]=$_),d},Sr=Np();Gn?((Gn.exports=Sr)._=Sr,Ml._=Sr):et._=Sr}).call(xe)}(si,si.exports);var Ve=si.exports,st={},Da={},tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.EstadoCaptacion=tr.TipoCaptacion=void 0;var $a;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5"})($a||(tr.TipoCaptacion=$a={}));var Fa;(function(t){t.EN_ESTUDIO="1",t.PRE_APROBADA="2",t.APROBADA="3",t.EN_NEGOCIACION="4",t.NEGOCIACION_FINALIZADA="5",t.CONFIRMADA="6",t.FINALIZADA="7",t.CANCELADA="0"})(Fa||(tr.EstadoCaptacion=Fa={}));var ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.TipoGarantia=void 0;var Ua;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(Ua||(ci.TipoGarantia=Ua={}));var fi={};Object.defineProperty(fi,"__esModule",{value:!0}),fi.TipoImportacion=void 0;var za;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(za||(fi.TipoImportacion=za={}));var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.TipoLiquidacionReclamo=gn.EstadoLiquidacionReclamo=gn.EstadoLiquidacion=void 0;var Ha;(function(t){t[t.EN_PREVISION=1]="EN_PREVISION",t[t.CONFIRMACION_PENDIENTE=2]="CONFIRMACION_PENDIENTE",t[t.CONFIRMADA=3]="CONFIRMADA",t[t.PAGADA=4]="PAGADA",t[t.CON_RECLAMOS=5]="CON_RECLAMOS"})(Ha||(gn.EstadoLiquidacion=Ha={}));var Wa;(function(t){t[t.ACTIVO=1]="ACTIVO",t[t.APROBADO=2]="APROBADO",t[t.NEGADO=3]="NEGADO"})(Wa||(gn.EstadoLiquidacionReclamo=Wa={}));var Ga;(function(t){t[t.ITEM=1]="ITEM",t[t.COBRO=2]="COBRO"})(Ga||(gn.TipoLiquidacionReclamo=Ga={}));var di={};Object.defineProperty(di,"__esModule",{value:!0}),di.TipoNotificacion=void 0;var Ka;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(Ka||(di.TipoNotificacion=Ka={}));var hi={};Object.defineProperty(hi,"__esModule",{value:!0}),hi.EstadoPedido=void 0;var ja;(function(t){t[t.PENDIENTE=1]="PENDIENTE",t[t.REVISAR_DOC=2]="REVISAR_DOC",t[t.LLAMAR=3]="LLAMAR",t[t.FINALIZADO=4]="FINALIZADO",t[t.CANCELADO=5]="CANCELADO",t[t.LIQUIDADO=6]="LIQUIDADO",t[t.INCIDENCIA=7]="INCIDENCIA",t[t.TRAMITADO=8]="TRAMITADO",t[t.PENDIENTE_ASIGNAR=9]="PENDIENTE_ASIGNAR"})(ja||(hi.EstadoPedido=ja={}));var nr={};Object.defineProperty(nr,"__esModule",{value:!0}),nr.TipoProducto=nr.EstadoProducto=void 0;var Ya;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(Ya||(nr.EstadoProducto=Ya={}));var Qa;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(Qa||(nr.TipoProducto=Qa={}));var mi={};Object.defineProperty(mi,"__esModule",{value:!0}),mi.EstadoBase=void 0;var Za;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(Za||(mi.EstadoBase=Za={})),function(t){var l=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),o=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&l(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),o(tr,t),o(ci,t),o(fi,t),o(gn,t),o(di,t),o(hi,t),o(nr,t),o(mi,t)}(Da);var Xa={},Ja={},gi={};Object.defineProperty(gi,"__esModule",{value:!0}),gi.LAYOUT_COLUMNA_TYPES=void 0,gi.LAYOUT_COLUMNA_TYPES=["texto","numero","fecha"],function(t){var l=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),o=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&l(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),o(gi,t)}(Ja);var eu={},pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.LAYOUT_SECTION_TYPES=pn.LayoutSectionType=pn.TextLineType=void 0;var tu;(function(t){t.TITLE="title",t.SUBTITLE="subtitle",t.PARAGRAPH="paragraph"})(tu||(pn.TextLineType=tu={}));var rr;(function(t){t.TEXT="text",t.TABLE="table",t.CARDS_GRID="cards-grid",t.IMAGE="image"})(rr||(pn.LayoutSectionType=rr={})),pn.LAYOUT_SECTION_TYPES=[rr.TEXT,rr.CARDS_GRID,rr.TABLE,rr.IMAGE],function(t){var l=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),o=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&l(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),o(pn,t)}(eu);var nu={},pi={};Object.defineProperty(pi,"__esModule",{value:!0}),pi.TipoComision=void 0;var ru;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(ru||(pi.TipoComision=ru={}));var iu={};Object.defineProperty(iu,"__esModule",{value:!0});var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.TABLES=Ot.TABLES_FIELDS=Ot.SOURCES=Ot.LOGIC_OPERATORS=Ot.RULE_OPERATORS=void 0,Ot.RULE_OPERATORS=["==","!=","<",">","IN"],Ot.LOGIC_OPERATORS=["AND","OR"],Ot.SOURCES=["IMPORTACION","TABLA","CONTENEDOR"],Ot.TABLES_FIELDS={PRODUCTOS:["TIPO","NOMBRE","DESCRIPCION","ID_GAMA","ESTADO","TAGS","ID_PRODUCTO","PROPS","COD_ART_MVX"],CAPTACION:["ESTADO","TIPO","CAPTADO","ID_CAPTACION","FECHA_CAPTADO"]},Ot.TABLES=[{label:"PRODUCTOS",value:"PRODUCTOS"},{label:"CAPTACIONES",value:"CAPTACION"}],function(t){var l=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),o=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&l(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),o(pi,t),o(iu,t),o(Ot,t)}(nu);var ou={},vi={};Object.defineProperty(vi,"__esModule",{value:!0}),vi.OPERATORS=void 0,vi.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var ir={};Object.defineProperty(ir,"__esModule",{value:!0}),ir.ControlType=ir.GAMA_PROP_CONTROL_TYPES=void 0,ir.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 lu;(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"})(lu||(ir.ControlType=lu={}));var au={};Object.defineProperty(au,"__esModule",{value:!0});var uu={};Object.defineProperty(uu,"__esModule",{value:!0});var su={};(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}))})(su);var cu={};Object.defineProperty(cu,"__esModule",{value:!0}),function(t){var l=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),o=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&l(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),o(vi,t),o(ir,t),o(au,t),o(uu,t),o(su,t),o(cu,t)}(ou);var fu={},du={};Object.defineProperty(du,"__esModule",{value:!0}),function(t){var l=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),o=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&l(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),o(du,t)}(fu),function(t){var l=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),o=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&l(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),o(Ja,t),o(eu,t),o(nu,t),o(ou,t),o(fu,t)}(Xa),function(t){var l=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),o=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&l(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),o(Da,t),o(Xa,t)}(st);const No=[st.ControlType.DYNAMIC_ARRAY,st.ControlType.OBJECT],md={maxControlsPerGroup:1,notifyValidations:!0},hu={required:{fn:()=>t=>{var l;if(t.controlType===st.ControlType.LOCATION){const{value:o}=t.value;return Ve.values(Ve.omit(o,"catastro")).every(u=>!Ve.isNil(u)&&u!=="")&&(o!=null&&o.catastro?gd(o==null?void 0:o.catastro):!0)}return t.controlType===st.ControlType.DYNAMIC_ARRAY||t.multiple?(((l=t.value)==null?void 0:l.length)||0)>0:!Ve.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>l=>mu(l,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>l=>mu(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 mu(t,l,o){const u={">":(s,c)=>s>c,"<":(s,c)=>s<c,">=":(s,c)=>s>=c,"<=":(s,c)=>s<=c}[l];if(t.controlType===st.ControlType.NUMBER){const s=Number(t.value);return u(s,o)}if(t.controlType===st.ControlType.TEXT){const s=(t.value||"").length;return u(s,o)}if([st.ControlType.CARDS_SELECT,st.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,o)}return!1}function gd(t){return/^[A-Za-z0-9]{20}$/.test(t)}function pd(t){const l=[];t.controls.forEach((u,s)=>{const c=vd(u);l.push(...c);const h=!c.length;t.controls[s].valid=h});const o=!l.length;return t.valid=o,l}function vd(t){const l=[];return t.validators&&t.validators.forEach(o=>{const{validator:u,param:s}=o,c=hu[u]||null;c&&(c.fn(Number(s))(t)||l.push(c.message))}),l}function _d(t,l,o){return l.controlType==="dynamic_array"?bd(t,l,o):l.controlType==="object"?gu(t,l,o):[]}function bd(t,l,o){var c,h;const u=[],s=((c=l.itemsLength)==null?void 0:c.value)||0;for(let g=0;g<s;g++){const w=gu({...t,title:`${t.title} ${g+1}`},{...l,value:(h=l.value)==null?void 0:h[g]},o);w.forEach(x=>{x.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...w)}return u}function gu(t,l,o){const u=l.structure;return Ve.chunk(u,o).map(c=>({...t,controls:pu(c).map(h=>{var g;return{...h,id:l.id,value:((g=l.value)==null?void 0:g[h.code])||h.value}})}))}function yd(t){return Ve.chain(t).groupBy("group").toPairs().orderBy(([o,u])=>o).map(([o,u])=>{var h;const s=((h=u.find(g=>{var w;return!!((w=g.title)!=null&&w.trim())}))==null?void 0:h.title)||"",c=u[0].group;return{title:s,controls:u,order:c,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}function wd(t){return t.map(l=>({...l,valid:!1,controls:pu(l.controls)}))}function pu(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:Sd(l),itemsLength:l.controlType==="dynamic_array"?{...l.itemsLength,value:((s=l.itemsLength)==null?void 0:s.default)||1}:null}})}function Sd(t){if(!Ve.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""}}console.log("active pinia:",Na.getActivePinia());const or=Na.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=wd(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,l){const{id:o,value:u,code:s}=l,c=this.formSteps[t].controls.find(h=>h.id===o);c&&(No.includes(c.controlType)?Ve.set(c.value,s,u):c.value=u)},setControlVisibility(t,l,o){const u=this.formSteps[t].controls.find(s=>s.id===l);u&&(u.visible=o)},setControlItemsLength(t,l,o){const u=this.formSteps[t].controls.find(s=>s.id===l);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=o)},setOnLastSubstep(t){this.onLastSubstep=t},resetSteps(){this.currentStep=1},setCollection(t,l){this.collections[t]=l}},getters:{currentFormStep(t){return t.formSteps[t.currentStep-1]||null},stepsCount(t){return t.formSteps.length},nextDisabled(){return this.currentFormStep.controls.filter(t=>t.visible).some(t=>!t.valid)},getCollection(t){return l=>t.collections[l]||null}}});class vu{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 Ve.orderBy(l,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,c=u.ORDEN,h=u.DESCRIPCION,g=u.CLAVE,w=u.ID_CUESTIONARIO,x=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:c,text:h,controls:x,name:g,id:w}})}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,c=(h,g)=>g.controlType==="input_number"&&h!==null&&h!==void 0&&h!==""&&typeof h=="string";return c(u,l)?parseFloat(u.replaceAll(".","")):(o==="object"&&s.forEach(h=>{const g=u[h.code];c(g,h)&&(u[h.code]=parseFloat(g==null?void 0:g.replaceAll(".","")))}),u)}}function _i(t,l,o,u){return Object.defineProperty(t,l,{get:o,set:u,enumerable:!0}),t}const vn=r.ref(!1);let Do;function xd(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 Cd(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 _u="ontouchstart"in window||window.navigator.maxTouchPoints>0;function kd(t){const l=t.toLowerCase(),o=Cd(l),u=xd(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 c=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(c===!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&&c!==!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"),vn.value===!0&&(Do={is:{...s}}),_u===!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 h=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:h,[h]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const bu=navigator.userAgent||navigator.vendor||window.opera,Ed={has:{touch:!1,webStorage:!1},within:{iframe:!1}},_t={userAgent:bu,is:kd(bu),has:{touch:_u},within:{iframe:window.self!==window.top}},$o={install(t){const{$q:l}=t;vn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(l.platform,_t),vn.value=!1}),l.platform=r.reactive(this)):l.platform=this}};{let t;_i(_t.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign($o,_t),vn.value===!0&&(Object.assign($o,Do,Ed),Do=null)}function je(t){return r.markRaw(r.defineComponent(t))}function yu(t){return r.markRaw(t)}function en(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(en(t[u],l[u])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==l.size)return!1;let c=t.entries();for(u=c.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=c.next()}for(c=t.entries(),u=c.next();u.done!==!0;){if(en(u.value[1],l.get(u.value[0]))!==!0)return!1;u=c.next()}return!0}if(t.constructor===Set){if(t.size!==l.size)return!1;const c=t.entries();for(u=c.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=c.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(c=>t[c]!==void 0);if(o=s.length,o!==Object.keys(l).filter(c=>l[c]!==void 0).length)return!1;for(u=o;u--!==0;){const c=s[u];if(en(t[c],l[c])!==!0)return!1}return!0}return t!==t&&l!==l}const wu={threshold:0,root:null,rootMargin:"0px"};function Su(t,l,o){let u,s,c;typeof o=="function"?(u=o,s=wu,c=l.cfg===void 0):(u=o.handler,s=Object.assign({},wu,o.cfg),c=l.cfg===void 0||en(l.cfg,s)===!1),l.handler!==u&&(l.handler=u),c===!0&&(l.cfg=s,l.observer!==void 0&&l.observer.unobserve(t),l.observer=new IntersectionObserver(([h])=>{if(typeof l.handler=="function"){if(h.rootBounds===null&&document.body.contains(t)===!0){l.observer.unobserve(t),l.observer.observe(t);return}(l.handler(h,l.observer)===!1||l.once===!0&&h.isIntersecting===!0)&&xu(t)}},s),l.observer.observe(t))}function xu(t){const l=t.__qvisible;l!==void 0&&(l.observer!==void 0&&l.observer.unobserve(t),delete t.__qvisible)}const Ad=yu({name:"intersection",mounted(t,{modifiers:l,value:o}){const u={once:l.once===!0};Su(t,u,o),t.__qvisible=u},updated(t,l){const o=t.__qvisible;o!==void 0&&Su(t,o,l.value)},beforeUnmount:xu});function ct(t,l){return t!==void 0&&t()||l}function Od(t,l){if(t!==void 0){const o=t();if(o!=null)return o.slice()}return l}function Ln(t,l){return t!==void 0?l.concat(t()):l}function Td(t,l){return t===void 0?l:l!==void 0?l.concat(t()):t()}function Cu(t,l,o,u,s,c){l.key=u+s;const h=r.h(t,l,o);return s===!0?r.withDirectives(h,c()):h}const Bd=je({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=r.ref(vn.value===!0?t.ssrPrerender:!1),s=r.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:w,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:w),c=r.computed(()=>t.disable!==!0&&(vn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),h=r.computed(()=>[[Ad,s.value,void 0,{once:t.once}]]),g=r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function w(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,t.onVisibility!==void 0&&o("visibility",u.value))}function x(){if(u.value===!0)return[r.h("div",{key:"content",style:g.value},ct(l.default))];if(l.hidden!==void 0)return[r.h("div",{key:"hidden",style:g.value},l.hidden())]}return()=>{const v=t.transition?[r.h(r.Transition,{name:"q-transition--"+t.transition},x)]:x();return Cu(t.tag,{class:"q-intersection"},v,"main",c.value,()=>h.value)}}}),Fo={xs:18,sm:24,md:32,lg:38,xl:46},bi={size:String};function yi(t,l=Fo){return r.computed(()=>t.size!==void 0?{fontSize:t.size in l?`${l[t.size]}px`:t.size}:null)}const Rd={size:{type:[String,Number],default:"1em"},color:String};function Id(t){return{cSize:r.computed(()=>t.size in Fo?`${Fo[t.size]}px`:t.size),classes:r.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const Uo=je({name:"QSpinner",props:{...Rd,thickness:{type:Number,default:5}},setup(t){const{cSize:l,classes:o}=Id(t);return()=>r.h("svg",{class:o.value+" q-spinner-mat",width:l.value,height:l.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),Md={ratio:[String,Number]};function Ld(t,l){return r.computed(()=>{const o=Number(t.ratio||(l!==void 0?l.value:void 0));return isNaN(o)!==!0&&o>0?{paddingBottom:`${100/o}%`}:null})}function zo(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 ku(t){return t.appContext.config.globalProperties.$router!==void 0}function Ir(t){return t.isUnmounted===!0||t.isDeactivated===!0}function Mr(){let t=null;const l=r.getCurrentInstance();function o(){t!==null&&(clearTimeout(t),t=null)}return r.onDeactivated(o),r.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(u,s){o(),Ir(l)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const qd=je({name:"QImg",props:{...Md,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=r.ref(t.initialRatio),s=Ld(t,u),c=r.getCurrentInstance(),{registerTimeout:h,removeTimeout:g}=Mr(),{registerTimeout:w,removeTimeout:x}=Mr(),v=r.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),C=r.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),E=[r.ref(null),r.ref(v.value)],b=r.ref(0),T=r.ref(!1),U=r.ref(!1),R=r.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),G=r.computed(()=>({width:t.width,height:t.height})),F=r.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),N=r.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function Y(){if(x(),t.loadingShowDelay===0){T.value=!0;return}w(()=>{T.value=!0},t.loadingShowDelay)}function z(){x(),T.value=!1}function j({target:A}){Ir(c)===!1&&(g(),u.value=A.naturalHeight===0?.5:A.naturalWidth/A.naturalHeight,W(A,1))}function W(A,te){te===1e3||Ir(c)===!0||(A.complete===!0?oe(A):h(()=>{W(A,te+1)},50))}function oe(A){Ir(c)!==!0&&(b.value=b.value^1,E[b.value].value=null,z(),A.getAttribute("__qerror")!=="true"&&(U.value=!1),o("load",A.currentSrc||A.src))}function V(A){g(),z(),U.value=!0,E[b.value].value=C.value,E[b.value^1].value=v.value,o("error",A)}function D(A){const te=E[A].value,P={key:"img_"+A,class:F.value,style:N.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,...te};return b.value===A?Object.assign(P,{class:P.class+"current",onLoad:j,onError:V}):P.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+A},r.h("img",P))}function Q(){return T.value===!1?r.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},ct(l[U.value===!0?"error":"default"])):r.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},l.loading!==void 0?l.loading():t.noSpinner===!0?void 0:[r.h(Uo,{color:t.spinnerColor,size:t.spinnerSize})])}{let A=function(){r.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,te=>{g(),U.value=!1,te===null?(z(),E[b.value^1].value=v.value):Y(),E[b.value].value=te},{immediate:!0})};vn.value===!0?r.onMounted(A):A()}return()=>{const A=[];return s.value!==null&&A.push(r.h("div",{key:"filler",style:s.value})),E[0].value!==null&&A.push(D(0)),E[1].value!==null&&A.push(D(1)),A.push(r.h(r.Transition,{name:"q-transition--fade"},Q)),r.h("div",{key:"main",class:R.value,style:G.value,role:"img","aria-label":t.alt},A)}}}),Eu="0 0 24 24",Au=t=>t,Ho=t=>`ionicons ${t}`,Ou={"mdi-":t=>`mdi ${t}`,"icon-":Au,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Ho,"ion-ios":Ho,"ion-logo":Ho,"iconfont ":Au,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},Tu={o_:"-outlined",r_:"-round",s_:"-sharp"},Bu={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Vd=new RegExp("^("+Object.keys(Ou).join("|")+")"),Pd=new RegExp("^("+Object.keys(Tu).join("|")+")"),Ru=new RegExp("^("+Object.keys(Bu).join("|")+")"),Nd=/^[Mm]\s?[-+]?\.?\d/,Dd=/^img:/,$d=/^svguse:/,Fd=/^ion-/,Ud=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,bt=je({name:"QIcon",props:{...bi,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=r.getCurrentInstance(),u=yi(t),s=r.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),c=r.computed(()=>{let h,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(Nd.test(g)===!0){const[v,C=Eu]=g.split("|");return{svg:!0,viewBox:C,nodes:v.split("&&").map(E=>{const[b,T,U]=E.split("@@");return r.h("path",{style:T,d:b,transform:U})})}}if(Dd.test(g)===!0)return{img:!0,src:g.substring(4)};if($d.test(g)===!0){const[v,C=Eu]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:C}}let w=" ";const x=g.match(Vd);if(x!==null)h=Ou[x[1]](g);else if(Ud.test(g)===!0)h=g;else if(Fd.test(g)===!0)h=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(Ru.test(g)===!0){h="notranslate material-symbols";const v=g.match(Ru);v!==null&&(g=g.substring(6),h+=Bu[v[1]]),w=g}else{h="notranslate material-icons";const v=g.match(Pd);v!==null&&(g=g.substring(2),h+=Tu[v[1]]),w=g}return{cls:h,content:w}});return()=>{const h={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?r.h(t.tag,h,ct(l.default)):c.value.img===!0?r.h(t.tag,h,Ln(l.default,[r.h("img",{src:c.value.src})])):c.value.svg===!0?r.h(t.tag,h,Ln(l.default,[r.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?r.h(t.tag,h,Ln(l.default,[r.h("svg",{viewBox:c.value.viewBox},[r.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(h.class+=" "+c.value.cls),r.h(t.tag,h,Ln(l.default,[c.value.content])))}}}),zd={class:"card-select-container"},Hd=["onClick"],Wd={class:"check"},Gd={class:"row justify-center items-center",style:{height:"100%"}},Kd=["onClick"],jd=r.defineComponent({__name:"CardsSelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue"),o=t,{control:u}=r.toRefs(o);function s(g){if(u.value.multiple){let w=Ve.cloneDeep(l.value);g.exclusive?w=[g.value]:(w=w.filter(x=>{var v,C;return!((C=(v=u.value.options)==null?void 0:v.find(E=>E.value===x))!=null&&C.exclusive)}),w.includes(g.value)?w=w.filter(x=>x!==g.value):w.push(g.value)),l.value=w}else l.value=g.value}function c(g){return h(g)?"active":""}function h(g){let w;return u.value.multiple?w=(l.value||[]).includes(String(g.value)):w=l.value===g.value,w}return(g,w)=>{const x=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(u).label?(r.openBlock(),r.createBlock(x,{key:0,label:r.unref(u).label},null,8,["label"])):r.createCommentVNode("",!0),r.createElementVNode("div",zd,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).options,(v,C)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:C},[v.image?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`image-card ${c(v)}`),onClick:()=>s(v)},[r.createVNode(qd,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),r.createElementVNode("div",Wd,[r.createElementVNode("div",Gd,[h(v)?(r.openBlock(),r.createBlock(bt,{key:0,name:"check",size:"25px"})):r.createCommentVNode("",!0)])])],10,Hd)):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(`card-option ${c(v)}`),onClick:()=>s(v)},[r.createElementVNode("span",null,r.toDisplayString(v.label),1)],10,Kd))],64))),128))])],64)}}}),ft=(t,l)=>{const o=t.__vccOpts||t;for(const[u,s]of l)o[u]=s;return o},Yd=ft(jd,[["__scopeId","data-v-148468d6"]]),lr={dark:{type:Boolean,default:null}};function ar(t,l){return r.computed(()=>t.dark===null?l.dark.isActive:t.dark)}function Qd(t,l){const o=r.ref(null),u=r.computed(()=>t.disable===!0?null:r.h("span",{ref:o,class:"no-outline",tabindex:-1}));function s(c){const h=l.value;c!==void 0&&c.type.indexOf("key")===0?h!==null&&document.activeElement!==h&&h.contains(document.activeElement)===!0&&h.focus():o.value!==null&&(c===void 0||h!==null&&h.contains(c.target)===!0)&&o.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Wo={name:String};function Zd(t={}){return(l,o,u)=>{l[o](r.h("input",{class:"hidden"+(u||""),...t.value}))}}function Iu(t){return r.computed(()=>t.name||t.for)}const Xd={xs:30,sm:35,md:40,lg:50,xl:60},dt={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const t=Object.defineProperty({},"passive",{get(){Object.assign(dt,{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 Jd(){}function Mu(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 eh(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 Yt(t){t.stopPropagation()}function Dt(t){t.cancelable!==!1&&t.preventDefault()}function We(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function Lr(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]],dt[s[3]])})}function wi(t,l){const o=`__q_${l}_evt`;t[o]!==void 0&&(t[o].forEach(u=>{u[0].removeEventListener(u[1],t[u[2]],dt[u[3]])}),t[o]=void 0)}const Lu={...lr,...bi,...Wo,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]},qu=["update:modelValue"];function Vu(t,l){const{props:o,slots:u,emit:s,proxy:c}=r.getCurrentInstance(),{$q:h}=c,g=ar(o,h),w=r.ref(null),{refocusTargetEl:x,refocusTarget:v}=Qd(o,w),C=yi(o,Xd),E=r.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),b=r.computed(()=>{const A=r.toRaw(o.val);return E.value===!0?o.modelValue.findIndex(te=>r.toRaw(te)===A):-1}),T=r.computed(()=>E.value===!0?b.value!==-1:r.toRaw(o.modelValue)===r.toRaw(o.trueValue)),U=r.computed(()=>E.value===!0?b.value===-1:r.toRaw(o.modelValue)===r.toRaw(o.falseValue)),R=r.computed(()=>T.value===!1&&U.value===!1),G=r.computed(()=>o.disable===!0?-1:o.tabindex||0),F=r.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":"")),N=r.computed(()=>{const A=T.value===!0?"truthy":U.value===!0?"falsy":"indet",te=o.color!==void 0&&(o.keepColor===!0||(t==="toggle"?T.value===!0:U.value!==!0))?` text-${o.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${A}${te}`}),Y=r.computed(()=>{const A={type:"checkbox"};return o.name!==void 0&&Object.assign(A,{".checked":T.value,"^checked":T.value===!0?"checked":void 0,name:o.name,value:E.value===!0?o.val:o.trueValue}),A}),z=Zd(Y),j=r.computed(()=>{const A={tabindex:G.value,role:t==="toggle"?"switch":"checkbox","aria-label":o.label,"aria-checked":R.value===!0?"mixed":T.value===!0?"true":"false"};return o.disable===!0&&(A["aria-disabled"]="true"),A});function W(A){A!==void 0&&(We(A),v(A)),o.disable!==!0&&s("update:modelValue",oe(),A)}function oe(){if(E.value===!0){if(T.value===!0){const A=o.modelValue.slice();return A.splice(b.value,1),A}return o.modelValue.concat([o.val])}if(T.value===!0){if(o.toggleOrder!=="ft"||o.toggleIndeterminate===!1)return o.falseValue}else if(U.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 V(A){(A.keyCode===13||A.keyCode===32)&&We(A)}function D(A){(A.keyCode===13||A.keyCode===32)&&W(A)}const Q=l(T,R);return Object.assign(c,{toggle:W}),()=>{const A=Q();o.disable!==!0&&z(A,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const te=[r.h("div",{class:N.value,style:C.value,"aria-hidden":"true"},A)];x.value!==null&&te.push(x.value);const P=o.label!==void 0?Ln(u.default,[o.label]):ct(u.default);return P!==void 0&&te.push(r.h("div",{class:`q-${t}__label q-anchor--skip`},P)),r.h("div",{ref:w,class:F.value,...j.value,onClick:W,onKeydown:V,onKeyup:D},te)}}const th=r.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[r.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[r.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),r.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Pu=je({name:"QCheckbox",props:Lu,emits:qu,setup(t){function l(o,u){const s=r.computed(()=>(o.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[r.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[r.h(bt,{class:"q-checkbox__icon",name:s.value})])]:[th]}return Vu("checkbox",l)}}),Nu=r.defineComponent({__name:"SimpleCheckbox",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(o,u)=>(r.openBlock(),r.createBlock(Pu,{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"]))}}),nh=je({name:"QToggle",props:{...Lu,icon:String,iconColor:String},emits:qu,setup(t){function l(o,u){const s=r.computed(()=>(o.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),c=r.computed(()=>o.value===!0?t.iconColor:null);return()=>[r.h("div",{class:"q-toggle__track"}),r.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[r.h(bt,{name:s.value,color:c.value})]:void 0)]}return Vu("toggle",l)}}),rh=r.defineComponent({__name:"SimpleSwitch",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(o,u)=>(r.openBlock(),r.createBlock(nh,{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 Go,Si=0;const Je=new Array(256);for(let t=0;t<256;t++)Je[t]=(t+256).toString(16).substring(1);const ih=(()=>{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}})(),Du=4096;function Ko(){(Go===void 0||Si+16>Du)&&(Si=0,Go=ih(Du));const t=Array.prototype.slice.call(Go,Si,Si+=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 oh(t){return t??null}function $u(t,l){return t??(l===!0?`f_${Ko()}`:null)}function lh({getValue:t,required:l=!0}={}){if(vn.value===!0){const o=t!==void 0?r.ref(oh(t())):r.ref(null);return l===!0&&o.value===null&&r.onMounted(()=>{o.value=`f_${Ko()}`}),t!==void 0&&r.watch(t,u=>{o.value=$u(u,l)}),o}return t!==void 0?r.computed(()=>$u(t(),l)):r.ref(`f_${Ko()}`)}const Fu=/^on[A-Z]/;function ah(){const{attrs:t,vnode:l}=r.getCurrentInstance(),o={listeners:r.ref({}),attributes:r.ref({})};function u(){const s={},c={};for(const h in t)h!=="class"&&h!=="style"&&Fu.test(h)===!1&&(s[h]=t[h]);for(const h in l.props)Fu.test(h)===!0&&(c[h]=l.props[h]);o.attributes.value=s,o.listeners.value=c}return r.onBeforeUpdate(u),u(),o}const uh="_q_",sh="_q_fo_";function ch({validate:t,resetValidation:l,requiresQForm:o}){const u=r.inject(sh,!1);if(u!==!1){const{props:s,proxy:c}=r.getCurrentInstance();Object.assign(c,{validate:t,resetValidation:l}),r.watch(()=>s.disable,h=>{h===!0?(typeof l=="function"&&l(),u.unbindComponent(c)):u.bindComponent(c)}),r.onMounted(()=>{s.disable!==!0&&u.bindComponent(c)}),r.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(c)})}else o===!0&&console.error("Parent QForm not found on useFormChild()!")}const Uu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,zu=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Hu=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,xi=/^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])\)$/,Ci=/^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)\)$/,jo={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=>Uu.test(t),hexaColor:t=>zu.test(t),hexOrHexaColor:t=>Hu.test(t),rgbColor:t=>xi.test(t),rgbaColor:t=>Ci.test(t),rgbOrRgbaColor:t=>xi.test(t)||Ci.test(t),hexOrRgbColor:t=>Uu.test(t)||xi.test(t),hexaOrRgbaColor:t=>zu.test(t)||Ci.test(t),anyColor:t=>Hu.test(t)||xi.test(t)||Ci.test(t)};function Wu(t,l=250,o){let u=null;function s(){const c=arguments,h=()=>{u=null,t.apply(this,c)};u!==null&&clearTimeout(u),u=setTimeout(h,l)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const fh=[!0,!1,"ondemand"],dh={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>fh.includes(t)}};function hh(t,l){const{props:o,proxy:u}=r.getCurrentInstance(),s=r.ref(!1),c=r.ref(null),h=r.ref(!1);ch({validate:U,resetValidation:T});let g=0,w;const x=r.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),v=r.computed(()=>o.disable!==!0&&x.value===!0&&l.value===!1),C=r.computed(()=>o.error===!0||s.value===!0),E=r.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:c.value);r.watch(()=>o.modelValue,()=>{h.value=!0,v.value===!0&&o.lazyRules===!1&&R()});function b(){o.lazyRules!=="ondemand"&&v.value===!0&&h.value===!0&&R()}r.watch(()=>o.reactiveRules,G=>{G===!0?w===void 0&&(w=r.watch(()=>o.rules,b,{immediate:!0,deep:!0})):w!==void 0&&(w(),w=void 0)},{immediate:!0}),r.watch(()=>o.lazyRules,b),r.watch(t,G=>{G===!0?h.value=!0:v.value===!0&&o.lazyRules!=="ondemand"&&R()});function T(){g++,l.value=!1,h.value=!1,s.value=!1,c.value=null,R.cancel()}function U(G=o.modelValue){if(o.disable===!0||x.value===!1)return!0;const F=++g,N=l.value!==!0?()=>{h.value=!0}:()=>{},Y=(j,W)=>{j===!0&&N(),s.value=j,c.value=W||null,l.value=!1},z=[];for(let j=0;j<o.rules.length;j++){const W=o.rules[j];let oe;if(typeof W=="function"?oe=W(G,jo):typeof W=="string"&&jo[W]!==void 0&&(oe=jo[W](G)),oe===!1||typeof oe=="string")return Y(!0,oe),!1;oe!==!0&&oe!==void 0&&z.push(oe)}return z.length===0?(Y(!1),!0):(l.value=!0,Promise.all(z).then(j=>{if(j===void 0||Array.isArray(j)===!1||j.length===0)return F===g&&Y(!1),!0;const W=j.find(oe=>oe===!1||typeof oe=="string");return F===g&&Y(W!==void 0,W),W===void 0},j=>(F===g&&(console.error(j),Y(!0)),!1)))}const R=Wu(U,0);return r.onBeforeUnmount(()=>{w!==void 0&&w(),R.cancel()}),Object.assign(u,{resetValidation:T,validate:U}),_i(u,"hasError",()=>C.value),{isDirtyModel:h,hasRules:x,hasError:C,errorMessage:E,validate:U,resetValidation:T}}let qn=[],qr=[];function Gu(t){qr=qr.filter(l=>l!==t)}function mh(t){Gu(t),qr.push(t)}function Ku(t){Gu(t),qr.length===0&&qn.length!==0&&(qn[qn.length-1](),qn=[])}function ki(t){qr.length===0?t():qn.push(t)}function gh(t){qn=qn.filter(l=>l!==t)}function Vr(t){return t!=null&&(""+t).length!==0}const Ei={...{...lr,...dh,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]},Yo=["update:modelValue","clear","focus","blur"];function Qo({requiredForAttr:t=!0,tagProp:l,changeEvent:o=!1}={}){const{props:u,proxy:s}=r.getCurrentInstance(),c=ar(u,s.$q),h=lh({required:t,getValue:()=>u.for});return{requiredForAttr:t,changeEvent:o,tag:l===!0?r.computed(()=>u.tag):{value:"label"},isDark:c,editable:r.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:ah(),targetUid:h,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function Zo(t){const{props:l,emit:o,slots:u,attrs:s,proxy:c}=r.getCurrentInstance(),{$q:h}=c;let g=null;t.hasValue===void 0&&(t.hasValue=r.computed(()=>Vr(l.modelValue))),t.emitValue===void 0&&(t.emitValue=K=>{o("update:modelValue",K)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:V,onFocusout:D}),Object.assign(t,{clearValue:Q,onControlFocusin:V,onControlFocusout:D,focus:W}),t.computedCounter===void 0&&(t.computedCounter=r.computed(()=>{if(l.counter!==!1){const K=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,se=l.maxlength!==void 0?l.maxlength:l.maxValues;return K+(se!==void 0?" / "+se:"")}}));const{isDirtyModel:w,hasRules:x,hasError:v,errorMessage:C,resetValidation:E}=hh(t.focused,t.innerLoading),b=t.floatingLabel!==void 0?r.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):r.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),T=r.computed(()=>l.bottomSlots===!0||l.hint!==void 0||x.value===!0||l.counter===!0||l.error!==null),U=r.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),R=r.computed(()=>`q-field row no-wrap items-start q-field--${U.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(b.value===!0?" q-field--float":"")+(F.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&&T.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),G=r.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}`:"")),F=r.computed(()=>l.labelSlot===!0||l.label!==void 0),N=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&v.value!==!0?` text-${l.labelColor}`:"")),Y=r.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:b.value,modelValue:l.modelValue,emitValue:t.emitValue})),z=r.computed(()=>{const K={};return t.targetUid.value&&(K.for=t.targetUid.value),l.disable===!0&&(K["aria-disabled"]="true"),K});function j(){const K=document.activeElement;let se=t.targetRef!==void 0&&t.targetRef.value;se&&(K===null||K.id!==t.targetUid.value)&&(se.hasAttribute("tabindex")===!0||(se=se.querySelector("[tabindex]")),se&&se!==K&&se.focus({preventScroll:!0}))}function W(){ki(j)}function oe(){gh(j);const K=document.activeElement;K!==null&&t.rootRef.value.contains(K)&&K.blur()}function V(K){g!==null&&(clearTimeout(g),g=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,o("focus",K))}function D(K,se){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",K)),se!==void 0&&se())})}function Q(K){We(K),h.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),r.nextTick(()=>{const se=w.value;E(),w.value=se})}function A(K){[13,32].includes(K.keyCode)&&Q(K)}function te(){const K=[];return u.prepend!==void 0&&K.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Dt},u.prepend())),K.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},P())),v.value===!0&&l.noErrorIcon===!1&&K.push(le("error",[r.h(bt,{name:h.iconSet.field.error,color:"negative"})])),l.loading===!0||t.innerLoading.value===!0?K.push(le("inner-loading-append",u.loading!==void 0?u.loading():[r.h(Uo,{color:l.color})])):l.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&K.push(le("inner-clearable-append",[r.h(bt,{class:"q-field__focusable-action",name:l.clearIcon||h.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":h.lang.label.clear,onKeyup:A,onClick:Q})])),u.append!==void 0&&K.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Dt},u.append())),t.getInnerAppend!==void 0&&K.push(le("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&K.push(t.getControlChild()),K}function P(){const K=[];return l.prefix!==void 0&&l.prefix!==null&&K.push(r.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&K.push(t.getShadowControl()),t.getControl!==void 0?K.push(t.getControl()):u.rawControl!==void 0?K.push(u.rawControl()):u.control!==void 0&&K.push(r.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(Y.value))),F.value===!0&&K.push(r.h("div",{class:N.value},ct(u.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&K.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),K.concat(ct(u.default))}function ae(){let K,se;v.value===!0?C.value!==null?(K=[r.h("div",{role:"alert"},C.value)],se=`q--slot-error-${C.value}`):(K=ct(u.error),se="q--slot-error"):(l.hideHint!==!0||t.focused.value===!0)&&(l.hint!==void 0?(K=[r.h("div",l.hint)],se=`q--slot-hint-${l.hint}`):(K=ct(u.hint),se="q--slot-hint"));const ge=l.counter===!0||u.counter!==void 0;if(l.hideBottomSpace===!0&&ge===!1&&K===void 0)return;const B=r.h("div",{key:se,class:"q-field__messages col"},K);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:Dt},[l.hideBottomSpace===!0?B:r.h(r.Transition,{name:"q-transition--field-message"},()=>B),ge===!0?r.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function le(K,se){return se===null?null:r.h("div",{key:K,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let ce=!1;return r.onDeactivated(()=>{ce=!0}),r.onActivated(()=>{ce===!0&&l.autofocus===!0&&c.focus()}),l.autofocus===!0&&r.onMounted(()=>{c.focus()}),r.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(c,{focus:W,blur:oe}),function(){const se=t.getControl===void 0&&u.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...z.value}:z.value;return r.h(t.tag.value,{ref:t.rootRef,class:[R.value,s.class],style:s.style,...se},[u.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Dt},u.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:t.controlRef,class:G.value,tabindex:-1,...t.controlEvents},te()),T.value===!0?ae():null]),u.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Dt},u.after()):null])}}function Xo(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function Vn(t,l){return Xo(t)===!0?!1:[].concat(l).includes(t.keyCode)}const ju={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Ai={"#":{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()}},Yu=Object.keys(Ai);Yu.forEach(t=>{Ai[t].regex=new RegExp(Ai[t].pattern)});const ph=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Yu.join("")+"])|(.)","g"),Qu=/[.*+?^${}()|[\]\\]/g,Ge="",vh={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function _h(t,l,o,u){let s,c,h,g,w,x;const v=r.ref(null),C=r.ref(b());function E(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}r.watch(()=>t.type+t.autogrow,U),r.watch(()=>t.mask,V=>{if(V!==void 0)R(C.value,!0);else{const D=W(C.value);U(),t.modelValue!==D&&l("update:modelValue",D)}}),r.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&R(C.value,!0)}),r.watch(()=>t.unmaskedValue,()=>{v.value===!0&&R(C.value)});function b(){if(U(),v.value===!0){const V=z(W(t.modelValue));return t.fillMask!==!1?oe(V):V}return t.modelValue}function T(V){if(V<s.length)return s.slice(-V);let D="",Q=s;const A=Q.indexOf(Ge);if(A!==-1){for(let te=V-Q.length;te>0;te--)D+=Ge;Q=Q.slice(0,A)+D+Q.slice(A)}return Q}function U(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&E(),v.value===!1){g=void 0,s="",c="";return}const V=ju[t.mask]===void 0?t.mask:ju[t.mask],D=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Q=D.replace(Qu,"\\$&"),A=[],te=[],P=[];let ae=t.reverseFillMask===!0,le="",ce="";V.replace(ph,(B,O,Z,pe,fe)=>{if(pe!==void 0){const H=Ai[pe];P.push(H),ce=H.negate,ae===!0&&(te.push("(?:"+ce+"+)?("+H.pattern+"+)?(?:"+ce+"+)?("+H.pattern+"+)?"),ae=!1),te.push("(?:"+ce+"+)?("+H.pattern+")?")}else if(Z!==void 0)le="\\"+(Z==="\\"?"":Z),P.push(Z),A.push("([^"+le+"]+)?"+le+"?");else{const H=O!==void 0?O:fe;le=H==="\\"?"\\\\\\\\":H.replace(Qu,"\\\\$&"),P.push(H),A.push("([^"+le+"]+)?"+le+"?")}});const K=new RegExp("^"+A.join("")+"("+(le===""?".":"[^"+le+"]")+"+)?"+(le===""?"":"["+le+"]*")+"$"),se=te.length-1,ge=te.map((B,O)=>O===0&&t.reverseFillMask===!0?new RegExp("^"+Q+"*"+B):O===se?new RegExp("^"+B+"("+(ce===""?".":ce)+"+)?"+(t.reverseFillMask===!0?"$":Q+"*")):new RegExp("^"+B));h=P,g=B=>{const O=K.exec(t.reverseFillMask===!0?B:B.slice(0,P.length+1));O!==null&&(B=O.slice(1).join(""));const Z=[],pe=ge.length;for(let fe=0,H=B;fe<pe;fe++){const re=ge[fe].exec(H);if(re===null)break;H=H.slice(re.shift().length),Z.push(...re)}return Z.length!==0?Z.join(""):B},s=P.map(B=>typeof B=="string"?B:Ge).join(""),c=s.split(Ge).join(D)}function R(V,D,Q){const A=u.value,te=A.selectionEnd,P=A.value.length-te,ae=W(V);D===!0&&U();const le=z(ae),ce=t.fillMask!==!1?oe(le):le,K=C.value!==ce;A.value!==ce&&(A.value=ce),K===!0&&(C.value=ce),document.activeElement===A&&r.nextTick(()=>{if(ce===c){const ge=t.reverseFillMask===!0?c.length:0;A.setSelectionRange(ge,ge,"forward");return}if(Q==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=A.selectionEnd;let B=te-1;for(let O=w;O<=B&&O<ge;O++)s[O]!==Ge&&B++;F.right(A,B);return}if(["deleteContentBackward","deleteContentForward"].indexOf(Q)!==-1){const ge=t.reverseFillMask===!0?te===0?ce.length>le.length?1:0:Math.max(0,ce.length-(ce===c?0:Math.min(le.length,P)+1))+1:te;A.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(K===!0){const ge=Math.max(0,ce.length-(ce===c?0:Math.min(le.length,P+1)));ge===1&&te===1?A.setSelectionRange(ge,ge,"forward"):F.rightReverse(A,ge)}else{const ge=ce.length-P;A.setSelectionRange(ge,ge,"backward")}else if(K===!0){const ge=Math.max(0,s.indexOf(Ge),Math.min(le.length,te)-1);F.right(A,ge)}else{const ge=te-1;F.right(A,ge)}});const se=t.unmaskedValue===!0?W(ce):ce;String(t.modelValue)!==se&&(t.modelValue!==null||se!=="")&&o(se,!0)}function G(V,D,Q){const A=z(W(V.value));D=Math.max(0,s.indexOf(Ge),Math.min(A.length,D)),w=D,V.setSelectionRange(D,Q,"forward")}const F={left(V,D){const Q=s.slice(D-1).indexOf(Ge)===-1;let A=Math.max(0,D-1);for(;A>=0;A--)if(s[A]===Ge){D=A,Q===!0&&D++;break}if(A<0&&s[D]!==void 0&&s[D]!==Ge)return F.right(V,0);D>=0&&V.setSelectionRange(D,D,"backward")},right(V,D){const Q=V.value.length;let A=Math.min(Q,D+1);for(;A<=Q;A++)if(s[A]===Ge){D=A;break}else s[A-1]===Ge&&(D=A);if(A>Q&&s[D-1]!==void 0&&s[D-1]!==Ge)return F.left(V,Q);V.setSelectionRange(D,D,"forward")},leftReverse(V,D){const Q=T(V.value.length);let A=Math.max(0,D-1);for(;A>=0;A--)if(Q[A-1]===Ge){D=A;break}else if(Q[A]===Ge&&(D=A,A===0))break;if(A<0&&Q[D]!==void 0&&Q[D]!==Ge)return F.rightReverse(V,0);D>=0&&V.setSelectionRange(D,D,"backward")},rightReverse(V,D){const Q=V.value.length,A=T(Q),te=A.slice(0,D+1).indexOf(Ge)===-1;let P=Math.min(Q,D+1);for(;P<=Q;P++)if(A[P-1]===Ge){D=P,D>0&&te===!0&&D--;break}if(P>Q&&A[D-1]!==void 0&&A[D-1]!==Ge)return F.leftReverse(V,Q);V.setSelectionRange(D,D,"forward")}};function N(V){l("click",V),x=void 0}function Y(V){if(l("keydown",V),Xo(V)===!0||V.altKey===!0)return;const D=u.value,Q=D.selectionStart,A=D.selectionEnd;if(V.shiftKey||(x=void 0),V.keyCode===37||V.keyCode===39){V.shiftKey&&x===void 0&&(x=D.selectionDirection==="forward"?Q:A);const te=F[(V.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(V.preventDefault(),te(D,x===Q?A:Q),V.shiftKey){const P=D.selectionStart;D.setSelectionRange(Math.min(x,P),Math.max(x,P),"forward")}}else V.keyCode===8&&t.reverseFillMask!==!0&&Q===A?(F.left(D,Q),D.setSelectionRange(D.selectionStart,A,"backward")):V.keyCode===46&&t.reverseFillMask===!0&&Q===A&&(F.rightReverse(D,A),D.setSelectionRange(Q,D.selectionEnd,"forward"))}function z(V){if(V==null||V==="")return"";if(t.reverseFillMask===!0)return j(V);const D=h;let Q=0,A="";for(let te=0;te<D.length;te++){const P=V[Q],ae=D[te];if(typeof ae=="string")A+=ae,P===ae&&Q++;else if(P!==void 0&&ae.regex.test(P))A+=ae.transform!==void 0?ae.transform(P):P,Q++;else return A}return A}function j(V){const D=h,Q=s.indexOf(Ge);let A=V.length-1,te="";for(let P=D.length-1;P>=0&&A!==-1;P--){const ae=D[P];let le=V[A];if(typeof ae=="string")te=ae+te,le===ae&&A--;else if(le!==void 0&&ae.regex.test(le))do te=(ae.transform!==void 0?ae.transform(le):le)+te,A--,le=V[A];while(Q===P&&le!==void 0&&ae.regex.test(le));else return te}return te}function W(V){return typeof V!="string"||g===void 0?typeof V=="number"?g(""+V):V:g(V)}function oe(V){return c.length-V.length<=0?V:t.reverseFillMask===!0&&V.length!==0?c.slice(0,-V.length)+V:V+c.slice(V.length)}return{innerValue:C,hasMask:v,moveCursorForPaste:G,updateMaskValue:R,onMaskedKeydown:Y,onMaskedClick:N}}function bh(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(c=>{s.items.add(c)}),{files:s.files}}catch{return{files:void 0}}}return r.computed(()=>{if(t.type==="file")return o()})}const yh=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,wh=/[\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,Sh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,xh=/[a-z0-9_ -]$/i;function Zu(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"&&(_t.is.firefox===!0?xh.test(o.data)===!1:yh.test(o.data)===!0||wh.test(o.data)===!0||Sh.test(o.data)===!0)===!0&&(o.target.qComposing=!0)}}const Xu=je({name:"QInput",inheritAttrs:!1,props:{...Ei,...vh,...Wo,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:[...Yo,"paste","change","keydown","click","animationend"],setup(t,{emit:l,attrs:o}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c={};let h=NaN,g,w,x=null,v;const C=r.ref(null),E=Iu(t),{innerValue:b,hasMask:T,moveCursorForPaste:U,updateMaskValue:R,onMaskedKeydown:G,onMaskedClick:F}=_h(t,l,le,C),N=bh(t),Y=r.computed(()=>Vr(b.value)),z=Zu(P),j=Qo({changeEvent:!0}),W=r.computed(()=>t.type==="textarea"||t.autogrow===!0),oe=r.computed(()=>W.value===!0||["text","search","url","tel","password"].includes(t.type)),V=r.computed(()=>{const O={...j.splitAttrs.listeners.value,onInput:P,onPaste:te,onChange:K,onBlur:se,onFocus:Yt};return O.onCompositionstart=O.onCompositionupdate=O.onCompositionend=z,T.value===!0&&(O.onKeydown=G,O.onClick=F),t.autogrow===!0&&(O.onAnimationend=ae),O}),D=r.computed(()=>{const O={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:E.value,...j.splitAttrs.attributes.value,id:j.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return W.value===!1&&(O.type=t.type),t.autogrow===!0&&(O.rows=1),O});r.watch(()=>t.type,()=>{C.value&&(C.value.value=t.modelValue)}),r.watch(()=>t.modelValue,O=>{if(T.value===!0){if(w===!0&&(w=!1,String(O)===h))return;R(O)}else b.value!==O&&(b.value=O,t.type==="number"&&c.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete c.value));t.autogrow===!0&&r.nextTick(ce)}),r.watch(()=>t.autogrow,O=>{O===!0?r.nextTick(ce):C.value!==null&&o.rows>0&&(C.value.style.height="auto")}),r.watch(()=>t.dense,()=>{t.autogrow===!0&&r.nextTick(ce)});function Q(){ki(()=>{const O=document.activeElement;C.value!==null&&C.value!==O&&(O===null||O.id!==j.targetUid.value)&&C.value.focus({preventScroll:!0})})}function A(){C.value!==null&&C.value.select()}function te(O){if(T.value===!0&&t.reverseFillMask!==!0){const Z=O.target;U(Z,Z.selectionStart,Z.selectionEnd)}l("paste",O)}function P(O){if(!O||!O.target)return;if(t.type==="file"){l("update:modelValue",O.target.files);return}const Z=O.target.value;if(O.target.qComposing===!0){c.value=Z;return}if(T.value===!0)R(Z,!1,O.inputType);else if(le(Z),oe.value===!0&&O.target===document.activeElement){const{selectionStart:pe,selectionEnd:fe}=O.target;pe!==void 0&&fe!==void 0&&r.nextTick(()=>{O.target===document.activeElement&&Z.indexOf(O.target.value)===0&&O.target.setSelectionRange(pe,fe)})}t.autogrow===!0&&ce()}function ae(O){l("animationend",O),ce()}function le(O,Z){v=()=>{x=null,t.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,t.modelValue!==O&&h!==O&&(h=O,Z===!0&&(w=!0),l("update:modelValue",O),r.nextTick(()=>{h===O&&(h=NaN)})),v=void 0},t.type==="number"&&(g=!0,c.value=O),t.debounce!==void 0?(x!==null&&clearTimeout(x),c.value=O,x=setTimeout(v,t.debounce)):v()}function ce(){requestAnimationFrame(()=>{const O=C.value;if(O!==null){const Z=O.parentNode.style,{scrollTop:pe}=O,{overflowY:fe,maxHeight:H}=s.platform.is.firefox===!0?{}:window.getComputedStyle(O),re=fe!==void 0&&fe!=="scroll";re===!0&&(O.style.overflowY="hidden"),Z.marginBottom=O.scrollHeight-1+"px",O.style.height="1px",O.style.height=O.scrollHeight+"px",re===!0&&(O.style.overflowY=parseInt(H,10)<O.scrollHeight?"auto":"hidden"),Z.marginBottom="",O.scrollTop=pe}})}function K(O){z(O),x!==null&&(clearTimeout(x),x=null),v!==void 0&&v(),l("change",O.target.value)}function se(O){O!==void 0&&Yt(O),x!==null&&(clearTimeout(x),x=null),v!==void 0&&v(),g=!1,w=!1,delete c.value,t.type!=="file"&&setTimeout(()=>{C.value!==null&&(C.value.value=b.value!==void 0?b.value:"")})}function ge(){return c.hasOwnProperty("value")===!0?c.value:b.value!==void 0?b.value:""}r.onBeforeUnmount(()=>{se()}),r.onMounted(()=>{t.autogrow===!0&&ce()}),Object.assign(j,{innerValue:b,fieldClass:r.computed(()=>`q-${W.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:C,emitValue:le,hasValue:Y,floatingLabel:r.computed(()=>Y.value===!0&&(t.type!=="number"||isNaN(b.value)===!1)||Vr(t.displayValue)),getControl:()=>r.h(W.value===!0?"textarea":"input",{ref:C,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...D.value,...V.value,...t.type!=="file"?{value:ge()}:N.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(W.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},ge()),r.h("span",t.shadowText)])});const B=Zo(j);return Object.assign(u,{focus:Q,select:A,getNativeElement:()=>C.value}),_i(u,"nativeEl",()=>C.value),B}}),Oi=je({name:"QCard",props:{...lr,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=r.getCurrentInstance(),u=ar(t,o),s=r.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()=>r.h(t.tag,{class:s.value},ct(l.default))}}),Ch=r.defineComponent({__name:"WinInput",props:r.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=r.useModel(t,"modelValue"),u=t,s=r.ref(!1),c=r.computed(()=>u.transparent?"glass-card":"win-card"),h=r.computed(()=>u.label===""?void 0:u.label),g=r.computed(()=>{let b="width: 100%; padding-left: 10px; padding-right: 10px;";return u.inputHeight&&(b+="height: "+u.inputHeight),b}),w=r.computed(()=>o.value||s.value?"17.5px":"15px"),x=r.ref(null);function v(){x.value.focus()}function C(){s.value=!0}function E(){s.value=!1}return l({focus:v}),(b,T)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Oi,{onClick:v,class:r.normalizeClass(`${c.value} row items-center ${o.value&&b.label||s.value&&b.label?"q-pt-md":""} `),style:r.normalizeStyle({minHeight:b.height,width:b.width,maxWidth:"calc(100vw - 32px)",minWidth:b.minWidth,margin:"auto"})},{default:r.withCtx(()=>[r.renderSlot(b.$slots,"fixed-label",{class:"self-start"}),r.createVNode(Xu,{modelValue:o.value,"onUpdate:modelValue":T[0]||(T[0]=U=>o.value=U),ref_key:"inputRef",ref:x,"label-color":"black","input-class":`text-black ${h.value?"":"text-center ww-title"}`,"input-style":b.inputStyle,style:r.normalizeStyle(g.value),readonly:b.readonly,mask:b.mask,prefix:b.prefix,label:h.value,type:b.type,suffix:b.suffix,counter:b.counter,maxlength:b.maxlength,rules:b.rules,borderless:"",dense:"","unmasked-value":"","reverse-fill-mask":"",placeholder:b.placeholder,onFocus:C,onBlur:E},{label:r.withCtx(()=>[!b.label||b.label!=""?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${w.value};`+b.labelStyle)},r.toDisplayString(b.label)+" "+r.toDisplayString(b.required&&!b.readonly?"*":""),5)):r.createCommentVNode("",!0)]),append:r.withCtx(()=>[r.renderSlot(b.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),r.renderSlot(b.$slots,"bottom")]),_:3},8,["class","style"]),b.hint?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`text-${b.hintOptions.position} text-${b.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},r.toDisplayString(b.hint),3)):r.createCommentVNode("",!0)],64))}}),kh={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},Eh=r.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(l,o)=>(r.openBlock(),r.createElementBlock("div",kh,r.toDisplayString(l.label),1))}}),Ah={style:{"max-width":"400px"},class:"text-center"},Oh={style:{"font-size":"16px"}},Th={style:{"font-size":"16px"}},Jo=ft(r.defineComponent({__name:"InputControl",props:r.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=t,o=r.ref(null),u=r.computed(()=>{var c;return(c=l.control.controlType)==null?void 0:c.split("_")[1]}),s=r.useModel(t,"modelValue");return r.onMounted(()=>{var c;(c=o.value)==null||c.focus()}),(c,h)=>(r.openBlock(),r.createElementBlock("div",Ah,[!c.innerLabel&&c.control.label?(r.openBlock(),r.createBlock(Eh,{key:0,label:c.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(Ch,{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:c.innerLabel?c.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:o},r.createSlots({_:2},[c.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",Oh,r.toDisplayString(c.control.prefix),1)]),key:"0"}:void 0,c.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",Th,r.toDisplayString(c.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function el(t,l){const o=t.style;for(const u in l)o[u]=l[u]}function Bh(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const l=r.unref(t);if(l)return l.$el||l}function Ju(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 Rh(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 es(t,l,o,u){o.modifiers.stop===!0&&Yt(t);const s=o.modifiers.color;let c=o.modifiers.center;c=c===!0||u===!0;const h=document.createElement("span"),g=document.createElement("span"),w=Mu(t),{left:x,top:v,width:C,height:E}=l.getBoundingClientRect(),b=Math.sqrt(C*C+E*E),T=b/2,U=`${(C-b)/2}px`,R=c?U:`${w.left-x-T}px`,G=`${(E-b)/2}px`,F=c?G:`${w.top-v-T}px`;g.className="q-ripple__inner",el(g,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${R},${F},0) scale3d(.2,.2,1)`,opacity:0}),h.className=`q-ripple${s?" text-"+s:""}`,h.setAttribute("dir","ltr"),h.appendChild(g),l.appendChild(h);const N=()=>{h.remove(),clearTimeout(Y)};o.abort.push(N);let Y=setTimeout(()=>{g.classList.add("q-ripple__inner--enter"),g.style.transform=`translate3d(${U},${G},0) scale3d(1,1,1)`,g.style.opacity=.2,Y=setTimeout(()=>{g.classList.remove("q-ripple__inner--enter"),g.classList.add("q-ripple__inner--leave"),g.style.opacity=0,Y=setTimeout(()=>{h.remove(),o.abort.splice(o.abort.indexOf(N),1)},275)},250)},50)}function ts(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 ns=yu({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")&&es(s,t,u,s.qKeyEvent===!0)},keystart:Rh(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&Vn(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&es(s,t,u,!0)},300)};ts(u,l),t.__qripple=u,Lr(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&&ts(o,l))}},beforeUnmount(t){const l=t.__qripple;l!==void 0&&(l.abort.forEach(o=>{o()}),wi(l,"main"),delete t._qripple)}}),rs={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ih=Object.keys(rs),Mh={align:{type:String,validator:t=>Ih.includes(t)}};function Lh(t){return r.computed(()=>{const l=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${rs[l]}`})}function is(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function os(t,l){return(t.aliasOf||t)===(l.aliasOf||l)}function qh(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((c,h)=>c!==s[h]))return!1}return!0}function ls(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 Vh(t,l){return Array.isArray(t)===!0?ls(t,l):Array.isArray(l)===!0?ls(l,t):t===l}function Ph(t,l){if(Object.keys(t).length!==Object.keys(l).length)return!1;for(const o in t)if(Vh(t[o],l[o])===!1)return!1;return!0}const as={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Nh={...as,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function us({fallbackTag:t,useDisableForRouterLinkProps:l=!0}={}){const o=r.getCurrentInstance(),{props:u,proxy:s,emit:c}=o,h=ku(o),g=r.computed(()=>u.disable!==!0&&u.href!==void 0),w=l===!0?r.computed(()=>h===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):r.computed(()=>h===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),x=r.computed(()=>w.value===!0?F(u.to):null),v=r.computed(()=>x.value!==null),C=r.computed(()=>g.value===!0||v.value===!0),E=r.computed(()=>u.type==="a"||C.value===!0?"a":u.tag||t||"div"),b=r.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:x.value.href,target:u.target}:{}),T=r.computed(()=>{if(v.value===!1)return-1;const{matched:z}=x.value,{length:j}=z,W=z[j-1];if(W===void 0)return-1;const oe=s.$route.matched;if(oe.length===0)return-1;const V=oe.findIndex(os.bind(null,W));if(V!==-1)return V;const D=is(z[j-2]);return j>1&&is(W)===D&&oe[oe.length-1].path!==D?oe.findIndex(os.bind(null,z[j-2])):V}),U=r.computed(()=>v.value===!0&&T.value!==-1&&qh(s.$route.params,x.value.params)),R=r.computed(()=>U.value===!0&&T.value===s.$route.matched.length-1&&Ph(s.$route.params,x.value.params)),G=r.computed(()=>v.value===!0?R.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":U.value===!0?` ${u.activeClass}`:"":"");function F(z){try{return s.$router.resolve(z)}catch{}return null}function N(z,{returnRouterError:j,to:W=u.to,replace:oe=u.replace}={}){if(u.disable===!0)return z.preventDefault(),Promise.resolve(!1);if(z.metaKey||z.altKey||z.ctrlKey||z.shiftKey||z.button!==void 0&&z.button!==0||u.target==="_blank")return Promise.resolve(!1);z.preventDefault();const V=s.$router[oe===!0?"replace":"push"](W);return j===!0?V:V.then(()=>{}).catch(()=>{})}function Y(z){if(v.value===!0){const j=W=>N(z,W);c("click",z,j),z.defaultPrevented!==!0&&j()}else c("click",z)}return{hasRouterLink:v,hasHrefLink:g,hasLink:C,linkTag:E,resolvedLink:x,linkIsActive:U,linkIsExactActive:R,linkClass:G,linkAttrs:b,getLink:F,navigateToRouterLink:N,navigateOnClick:Y}}const ss={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Dh={xs:8,sm:10,md:14,lg:20,xl:24},$h=["button","submit","reset"],Fh=/[^\s]\/[^\s]/,Uh=["flat","outline","push","unelevated"];function zh(t,l){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":l}const Hh={...{...bi,...as,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Uh.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:{...Mh.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Wh(t){const l=yi(t,Dh),o=Lh(t),{hasRouterLink:u,hasLink:s,linkTag:c,linkAttrs:h,navigateOnClick:g}=us({fallbackTag:"button"}),w=r.computed(()=>{const R=t.fab===!1&&t.fabMini===!1?l.value:{};return t.padding!==void 0?Object.assign({},R,{padding:t.padding.split(/\s+/).map(G=>G in ss?ss[G]+"px":G).join(" "),minWidth:"0",minHeight:"0"}):R}),x=r.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=r.computed(()=>t.disable!==!0&&t.loading!==!0),C=r.computed(()=>v.value===!0?t.tabindex||0:-1),E=r.computed(()=>zh(t,"standard")),b=r.computed(()=>{const R={tabindex:C.value};return s.value===!0?Object.assign(R,h.value):$h.includes(t.type)===!0&&(R.type=t.type),c.value==="a"?(t.disable===!0?R["aria-disabled"]="true":R.href===void 0&&(R.role="button"),u.value!==!0&&Fh.test(t.type)===!0&&(R.type=t.type)):t.disable===!0&&(R.disabled="",R["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(R,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),R}),T=r.computed(()=>{let R;t.color!==void 0?t.flat===!0||t.outline===!0?R=`text-${t.textColor||t.color}`:R=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(R=`text-${t.textColor}`);const G=t.round===!0?"round":`rectangle${x.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${E.value} q-btn--${G}`+(R!==void 0?" "+R:"")+(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":"")}),U=r.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:T,style:w,innerClasses:U,attributes:b,hasLink:s,linkTag:c,navigateOnClick:g,isActionable:v}}const{passiveCapture:Tt}=dt;let ur=null,sr=null,cr=null;const _n=je({name:"QBtn",props:{...Hh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:l,emit:o}){const{proxy:u}=r.getCurrentInstance(),{classes:s,style:c,innerClasses:h,attributes:g,hasLink:w,linkTag:x,navigateOnClick:v,isActionable:C}=Wh(t),E=r.ref(null),b=r.ref(null);let T=null,U,R=null;const G=r.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),F=r.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:w.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),N=r.computed(()=>({center:t.round})),Y=r.computed(()=>{const P=Math.max(0,Math.min(100,t.percentage));return P>0?{transition:"transform 0.6s",transform:`translateX(${P-100}%)`}:{}}),z=r.computed(()=>{if(t.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(C.value===!0){const P={onClick:W,onKeydown:oe,onMousedown:D};if(u.$q.platform.has.touch===!0){const ae=t.onTouchstart!==void 0?"":"Passive";P[`onTouchstart${ae}`]=V}return P}return{onClick:We}}),j=r.computed(()=>({ref:E,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:c.value,...g.value,...z.value}));function W(P){if(E.value!==null){if(P!==void 0){if(P.defaultPrevented===!0)return;const ae=document.activeElement;if(t.type==="submit"&&ae!==document.body&&E.value.contains(ae)===!1&&ae.contains(E.value)===!1){E.value.focus();const le=()=>{document.removeEventListener("keydown",We,!0),document.removeEventListener("keyup",le,Tt),E.value!==null&&E.value.removeEventListener("blur",le,Tt)};document.addEventListener("keydown",We,!0),document.addEventListener("keyup",le,Tt),E.value.addEventListener("blur",le,Tt)}}v(P)}}function oe(P){E.value!==null&&(o("keydown",P),Vn(P,[13,32])===!0&&sr!==E.value&&(sr!==null&&A(),P.defaultPrevented!==!0&&(E.value.focus(),sr=E.value,E.value.classList.add("q-btn--active"),document.addEventListener("keyup",Q,!0),E.value.addEventListener("blur",Q,Tt)),We(P)))}function V(P){E.value!==null&&(o("touchstart",P),P.defaultPrevented!==!0&&(ur!==E.value&&(ur!==null&&A(),ur=E.value,T=P.target,T.addEventListener("touchcancel",Q,Tt),T.addEventListener("touchend",Q,Tt)),U=!0,R!==null&&clearTimeout(R),R=setTimeout(()=>{R=null,U=!1},200)))}function D(P){E.value!==null&&(P.qSkipRipple=U===!0,o("mousedown",P),P.defaultPrevented!==!0&&cr!==E.value&&(cr!==null&&A(),cr=E.value,E.value.classList.add("q-btn--active"),document.addEventListener("mouseup",Q,Tt)))}function Q(P){if(E.value!==null&&!(P!==void 0&&P.type==="blur"&&document.activeElement===E.value)){if(P!==void 0&&P.type==="keyup"){if(sr===E.value&&Vn(P,[13,32])===!0){const ae=new MouseEvent("click",P);ae.qKeyEvent=!0,P.defaultPrevented===!0&&Dt(ae),P.cancelBubble===!0&&Yt(ae),E.value.dispatchEvent(ae),We(P),P.qKeyEvent=!0}o("keyup",P)}A()}}function A(P){const ae=b.value;P!==!0&&(ur===E.value||cr===E.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),ur===E.value&&(T!==null&&(T.removeEventListener("touchcancel",Q,Tt),T.removeEventListener("touchend",Q,Tt)),ur=T=null),cr===E.value&&(document.removeEventListener("mouseup",Q,Tt),cr=null),sr===E.value&&(document.removeEventListener("keyup",Q,!0),E.value!==null&&E.value.removeEventListener("blur",Q,Tt),sr=null),E.value!==null&&E.value.classList.remove("q-btn--active")}function te(P){We(P),P.qSkipRipple=!0}return r.onBeforeUnmount(()=>{A(!0)}),Object.assign(u,{click:P=>{C.value===!0&&W(P)}}),()=>{let P=[];t.icon!==void 0&&P.push(r.h(bt,{name:t.icon,left:t.stack!==!0&&G.value===!0,role:"img"})),G.value===!0&&P.push(r.h("span",{class:"block"},[t.label])),P=Ln(l.default,P),t.iconRight!==void 0&&t.round===!1&&P.push(r.h(bt,{name:t.iconRight,right:t.stack!==!0&&G.value===!0,role:"img"}));const ae=[r.h("span",{class:"q-focus-helper",ref:b})];return t.loading===!0&&t.percentage!==void 0&&ae.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:Y.value})])),ae.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+h.value},P)),t.loading!==null&&ae.push(r.h(r.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},l.loading!==void 0?l.loading():[r.h(Uo)])]:null)),r.withDirectives(r.h(x.value,j.value,ae),[[ns,F.value,void 0,N.value]])}}}),cs=t=>(r.pushScopeId("data-v-3bcb795a"),t=t(),r.popScopeId(),t),Gh={class:"buttons-container"},Kh={class:"lt-md"},jh={class:"row justify-between q-my-md q-px-md"},Yh=cs(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Qh={key:1},Zh=cs(()=>r.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),Xh=ft(r.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const l=t,o=r.computed(()=>l.currentStep+1);return(u,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Gh,[o.value>1?(r.openBlock(),r.createBlock(_n,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[0]||(s[0]=c=>u.$emit("prev")),flat:""},{default:r.withCtx(()=>[r.createVNode(bt,{name:"arrow_back_ios",color:"info"})]),_:1})):r.createCommentVNode("",!0),o.value!==u.stepsCount?(r.openBlock(),r.createBlock(_n,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[1]||(s[1]=c=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:r.withCtx(()=>[r.createVNode(bt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Kh,[r.createElementVNode("div",jh,[o.value>1&&o.value<u.stepsCount?(r.openBlock(),r.createBlock(_n,{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]=c=>u.$emit("prev")),flat:"","no-caps":""},{default:r.withCtx(()=>[Yh]),_:1})):(r.openBlock(),r.createElementBlock("div",Qh)),o.value<u.stepsCount?(r.openBlock(),r.createBlock(_n,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:s[3]||(s[3]=c=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:r.withCtx(()=>[Zh]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),Jh=je({name:"QField",inheritAttrs:!1,props:{...Ei,tag:{type:String,default:"label"}},emits:Yo,setup(){return Zo(Qo({tagProp:!0}))}}),em={xs:8,sm:10,md:14,lg:20,xl:24},tm=je({name:"QChip",props:{...lr,...bi,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}}=r.getCurrentInstance(),s=ar(t,u),c=yi(t,em),h=r.computed(()=>t.selected===!0||t.icon!==void 0),g=r.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),w=r.computed(()=>t.iconRemove||u.iconSet.chip.remove),x=r.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),v=r.computed(()=>{const R=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}`:"")+(R?` text-${R} 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":"")+(x.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":"")}),C=r.computed(()=>{const R=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},G={...R,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:R,remove:G}});function E(R){R.keyCode===13&&b(R)}function b(R){t.disable||(o("update:selected",!t.selected),o("click",R))}function T(R){(R.keyCode===void 0||R.keyCode===13)&&(We(R),t.disable===!1&&(o("update:modelValue",!1),o("remove")))}function U(){const R=[];x.value===!0&&R.push(r.h("div",{class:"q-focus-helper"})),h.value===!0&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const G=t.label!==void 0?[r.h("div",{class:"ellipsis"},[t.label])]:void 0;return R.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Td(l.default,G))),t.iconRight&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:w.value,...C.value.remove,onClick:T,onKeyup:T})),R}return()=>{if(t.modelValue===!1)return;const R={class:v.value,style:c.value};return x.value===!0&&Object.assign(R,C.value.chip,{onClick:b,onKeyup:E}),Cu("div",R,U(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[ns,t.ripple]])}}}),nm=je({name:"QItem",props:{...lr,...Nh,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}}=r.getCurrentInstance(),s=ar(t,u),{hasLink:c,linkAttrs:h,linkClass:g,linkTag:w,navigateOnClick:x}=us(),v=r.ref(null),C=r.ref(null),E=r.computed(()=>t.clickable===!0||c.value===!0||t.tag==="label"),b=r.computed(()=>t.disable!==!0&&E.value===!0),T=r.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(c.value===!0&&t.active===null?g.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(b.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":""):"")),U=r.computed(()=>t.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function R(N){b.value===!0&&(C.value!==null&&(N.qKeyEvent!==!0&&document.activeElement===v.value?C.value.focus():document.activeElement===C.value&&v.value.focus()),x(N))}function G(N){if(b.value===!0&&Vn(N,[13,32])===!0){We(N),N.qKeyEvent=!0;const Y=new MouseEvent("click",N);Y.qKeyEvent=!0,v.value.dispatchEvent(Y)}o("keyup",N)}function F(){const N=Od(l.default,[]);return b.value===!0&&N.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:C})),N}return()=>{const N={ref:v,class:T.value,style:U.value,role:"listitem",onClick:R,onKeyup:G};return b.value===!0?(N.tabindex=t.tabindex||"0",Object.assign(N,h.value)):E.value===!0&&(N["aria-disabled"]="true"),r.h(w.value,N,F())}}}),rm=je({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:l}){const o=r.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()=>r.h("div",{class:o.value},ct(l.default))}}),im=je({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:l}){const o=r.computed(()=>parseInt(t.lines,10)),u=r.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=r.computed(()=>t.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>r.h("div",{style:s.value,class:u.value},ct(l.default))}});function tl(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),$o.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const fs={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},om={...fs,contextMenu:Boolean};function ds({showing:t,avoidEmit:l,configureAnchorEl:o}){const{props:u,proxy:s,emit:c}=r.getCurrentInstance(),h=r.ref(null);let g=null;function w(b){return h.value===null?!1:b===void 0||b.touches===void 0||b.touches.length<=1}const x={};o===void 0&&(Object.assign(x,{hide(b){s.hide(b)},toggle(b){s.toggle(b),b.qAnchorHandled=!0},toggleKey(b){Vn(b,13)===!0&&x.toggle(b)},contextClick(b){s.hide(b),Dt(b),r.nextTick(()=>{s.show(b),b.qAnchorHandled=!0})},prevent:Dt,mobileTouch(b){if(x.mobileCleanup(b),w(b)!==!0)return;s.hide(b),h.value.classList.add("non-selectable");const T=b.target;Lr(x,"anchor",[[T,"touchmove","mobileCleanup","passive"],[T,"touchend","mobileCleanup","passive"],[T,"touchcancel","mobileCleanup","passive"],[h.value,"contextmenu","prevent","notPassive"]]),g=setTimeout(()=>{g=null,s.show(b),b.qAnchorHandled=!0},300)},mobileCleanup(b){h.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),t.value===!0&&b!==void 0&&tl()}}),o=function(b=u.contextMenu){if(u.noParentEvent===!0||h.value===null)return;let T;b===!0?s.$q.platform.is.mobile===!0?T=[[h.value,"touchstart","mobileTouch","passive"]]:T=[[h.value,"mousedown","hide","passive"],[h.value,"contextmenu","contextClick","notPassive"]]:T=[[h.value,"click","toggle","passive"],[h.value,"keyup","toggleKey","passive"]],Lr(x,"anchor",T)});function v(){wi(x,"anchor")}function C(b){for(h.value=b;h.value.classList.contains("q-anchor--skip");)h.value=h.value.parentNode;o()}function E(){if(u.target===!1||u.target===""||s.$el.parentNode===null)h.value=null;else if(u.target===!0)C(s.$el.parentNode);else{let b=u.target;if(typeof u.target=="string")try{b=document.querySelector(u.target)}catch{b=void 0}b!=null?(h.value=b.$el||b,o()):(h.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return r.watch(()=>u.contextMenu,b=>{h.value!==null&&(v(),o(b))}),r.watch(()=>u.target,()=>{h.value!==null&&v(),E()}),r.watch(()=>u.noParentEvent,b=>{h.value!==null&&(b===!0?v():o())}),r.onMounted(()=>{E(),l!==!0&&u.modelValue===!0&&h.value===null&&c("update:modelValue",!1)}),r.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:h,canShow:w,anchorEvents:x}}function hs(t,l){const o=r.ref(null);let u;function s(g,w){const x=`${w!==void 0?"add":"remove"}EventListener`,v=w!==void 0?w:u;g!==window&&g[x]("scroll",v,dt.passive),window[x]("scroll",v,dt.passive),u=w}function c(){o.value!==null&&(s(o.value),o.value=null)}const h=r.watch(()=>t.noParentEvent,()=>{o.value!==null&&(c(),l())});return r.onBeforeUnmount(h),{localScrollTarget:o,unconfigureScrollTarget:c,changeScrollEvent:s}}const nl={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},rl=["beforeShow","show","beforeHide","hide"];function il({showing:t,canShow:l,hideOnRouteChange:o,handleShow:u,handleHide:s,processOnMount:c}){const h=r.getCurrentInstance(),{props:g,emit:w,proxy:x}=h;let v;function C(F){t.value===!0?T(F):E(F)}function E(F){if(g.disable===!0||F!==void 0&&F.qAnchorHandled===!0||l!==void 0&&l(F)!==!0)return;const N=g["onUpdate:modelValue"]!==void 0;N===!0&&(w("update:modelValue",!0),v=F,r.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&b(F)}function b(F){t.value!==!0&&(t.value=!0,w("beforeShow",F),u!==void 0?u(F):w("show",F))}function T(F){if(g.disable===!0)return;const N=g["onUpdate:modelValue"]!==void 0;N===!0&&(w("update:modelValue",!1),v=F,r.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&U(F)}function U(F){t.value!==!1&&(t.value=!1,w("beforeHide",F),s!==void 0?s(F):w("hide",F))}function R(F){g.disable===!0&&F===!0?g["onUpdate:modelValue"]!==void 0&&w("update:modelValue",!1):F===!0!==t.value&&(F===!0?b:U)(v)}r.watch(()=>g.modelValue,R),o!==void 0&&ku(h)===!0&&r.watch(()=>x.$route.fullPath,()=>{o.value===!0&&t.value===!0&&T()}),c===!0&&r.onMounted(()=>{R(g.modelValue)});const G={show:E,hide:T,toggle:C};return Object.assign(x,G),G}const ms={};let lm=1,am=document.body;function um(t,l){const o=document.createElement("div");if(o.id=l!==void 0?`q-portal--${l}--${lm++}`:t,ms.globalNodes!==void 0){const u=ms.globalNodes.class;u!==void 0&&(o.className=u)}return am.appendChild(o),o}function sm(t){t.remove()}const Pr=[];function cm(t,l){do{if(t.$options.name==="QMenu"){if(t.hide(l),t.$props.separateClosePopup===!0)return zo(t)}else if(t.__qPortal===!0){const o=zo(t);return o!==void 0&&o.$options.name==="QPopupProxy"?(t.hide(l),o):t}t=zo(t)}while(t!=null)}const fm=je({name:"QPortal",setup(t,{slots:l}){return()=>l.default()}});function dm(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 ol(t,l,o,u){const s=r.ref(!1),c=r.ref(!1);let h=null;const g={},w=u==="dialog"&&dm(t);function x(C){if(C===!0){Ku(g),c.value=!0;return}c.value=!1,s.value===!1&&(w===!1&&h===null&&(h=um(!1,u)),s.value=!0,Pr.push(t.proxy),mh(g))}function v(C){if(c.value=!1,C!==!0)return;Ku(g),s.value=!1;const E=Pr.indexOf(t.proxy);E!==-1&&Pr.splice(E,1),h!==null&&(sm(h),h=null)}return r.onUnmounted(()=>{v(!0)}),t.proxy.__qPortal=!0,_i(t.proxy,"contentEl",()=>l.value),{showPortal:x,hidePortal:v,portalIsActive:s,portalIsAccessible:c,renderPortal:()=>w===!0?o():s.value===!0?[r.h(r.Teleport,{to:h},r.h(fm,o))]:void 0}}const Nr={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function ll(t,l=()=>{},o=()=>{}){return{transitionProps:r.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:r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function al(){let t;const l=r.getCurrentInstance();function o(){t=void 0}return r.onDeactivated(o),r.onBeforeUnmount(o),{removeTick:o,registerTick(u){t=u,r.nextTick(()=>{t===u&&(Ir(l)===!1&&t(),t=void 0)})}}}const gs=[Element,String],hm=[null,document,document.body,document.scrollingElement,document.documentElement];function ps(t,l){let o=Bh(l);if(o===void 0){if(t==null)return window;o=t.closest(".scroll,.scroll-y,.overflow-auto")}return hm.includes(o)?window:o}function mm(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function gm(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let Ti;function pm(){if(Ti!==void 0)return Ti;const t=document.createElement("p"),l=document.createElement("div");el(t,{width:"100%",height:"200px"}),el(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(),Ti=o-u,Ti}function vm(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 Pn=[];let fr;function _m(t){fr=t.keyCode===27}function bm(){fr===!0&&(fr=!1)}function ym(t){fr===!0&&(fr=!1,Vn(t,27)===!0&&Pn[Pn.length-1](t))}function vs(t){window[t]("keydown",_m),window[t]("blur",bm),window[t]("keyup",ym),fr=!1}function _s(t){_t.is.desktop===!0&&(Pn.push(t),Pn.length===1&&vs("addEventListener"))}function Bi(t){const l=Pn.indexOf(t);l!==-1&&(Pn.splice(l,1),Pn.length===0&&vs("removeEventListener"))}const Nn=[];function bs(t){Nn[Nn.length-1](t)}function ys(t){_t.is.desktop===!0&&(Nn.push(t),Nn.length===1&&document.body.addEventListener("focusin",bs))}function ul(t){const l=Nn.indexOf(t);l!==-1&&(Nn.splice(l,1),Nn.length===0&&document.body.removeEventListener("focusin",bs))}const{notPassiveCapture:Ri}=dt,Dn=[];function Ii(t){const l=t.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let o=Pr.length-1;for(;o>=0;){const u=Pr[o].$;if(u.type.name==="QTooltip"){o--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;o--}for(let u=Dn.length-1;u>=0;u--){const s=Dn[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 ws(t){Dn.push(t),Dn.length===1&&(document.addEventListener("mousedown",Ii,Ri),document.addEventListener("touchstart",Ii,Ri))}function Mi(t){const l=Dn.findIndex(o=>o===t);l!==-1&&(Dn.splice(l,1),Dn.length===0&&(document.removeEventListener("mousedown",Ii,Ri),document.removeEventListener("touchstart",Ii,Ri)))}let Ss,xs;function Li(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 Cs(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const sl={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{sl[`${t}#ltr`]=t,sl[`${t}#rtl`]=t});function qi(t,l){const o=t.split(" ");return{vertical:o[0],horizontal:sl[`${o[1]}#${l===!0?"rtl":"ltr"}`]}}function wm(t,l){let{top:o,left:u,right:s,bottom:c,width:h,height:g}=t.getBoundingClientRect();return l!==void 0&&(o-=l[1],u-=l[0],c+=l[1],s+=l[0],h+=l[0],g+=l[1]),{top:o,bottom:c,height:g,left:u,right:s,width:h,middle:u+(s-u)/2,center:o+(c-o)/2}}function Sm(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 xm(t,l){return{top:0,center:l/2,bottom:l,left:0,middle:t/2,right:t}}function ks(t,l,o,u){return{top:t[o.vertical]-l[u.vertical],left:t[o.horizontal]-l[u.horizontal]}}function cl(t,l=0){if(t.targetEl===null||t.anchorEl===null||l>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{cl(t,l+1)},10);return}const{targetEl:o,offset:u,anchorEl:s,anchorOrigin:c,selfOrigin:h,absoluteOffset:g,fit:w,cover:x,maxHeight:v,maxWidth:C}=t;if(_t.is.ios===!0&&window.visualViewport!==void 0){const j=document.body.style,{offsetLeft:W,offsetTop:oe}=window.visualViewport;W!==Ss&&(j.setProperty("--q-pe-left",W+"px"),Ss=W),oe!==xs&&(j.setProperty("--q-pe-top",oe+"px"),xs=oe)}const{scrollLeft:E,scrollTop:b}=o,T=g===void 0?wm(s,x===!0?[0,0]:u):Sm(s,g,u);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:C||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:U,offsetHeight:R}=o,{elWidth:G,elHeight:F}=w===!0||x===!0?{elWidth:Math.max(T.width,U),elHeight:x===!0?Math.max(T.height,R):R}:{elWidth:U,elHeight:R};let N={maxWidth:C,maxHeight:v};(w===!0||x===!0)&&(N.minWidth=T.width+"px",x===!0&&(N.minHeight=T.height+"px")),Object.assign(o.style,N);const Y=xm(G,F);let z=ks(T,Y,c,h);if(g===void 0||u===void 0)fl(z,T,Y,c,h);else{const{top:j,left:W}=z;fl(z,T,Y,c,h);let oe=!1;if(z.top!==j){oe=!0;const V=2*u[1];T.center=T.top-=V,T.bottom-=V+2}if(z.left!==W){oe=!0;const V=2*u[0];T.middle=T.left-=V,T.right-=V+2}oe===!0&&(z=ks(T,Y,c,h),fl(z,T,Y,c,h))}N={top:z.top+"px",left:z.left+"px"},z.maxHeight!==void 0&&(N.maxHeight=z.maxHeight+"px",T.height>z.maxHeight&&(N.minHeight=N.maxHeight)),z.maxWidth!==void 0&&(N.maxWidth=z.maxWidth+"px",T.width>z.maxWidth&&(N.minWidth=N.maxWidth)),Object.assign(o.style,N),o.scrollTop!==b&&(o.scrollTop=b),o.scrollLeft!==E&&(o.scrollLeft=E)}function fl(t,l,o,u,s){const c=o.bottom,h=o.right,g=pm(),w=window.innerHeight-g,x=document.body.clientWidth;if(t.top<0||t.top+c>w)if(s.vertical==="center")t.top=l[u.vertical]>w/2?Math.max(0,w-c):0,t.maxHeight=Math.min(c,w);else if(l[u.vertical]>w/2){const v=Math.min(w,u.vertical==="center"?l.center:u.vertical===s.vertical?l.bottom:l.top);t.maxHeight=Math.min(c,v),t.top=Math.max(0,v-c)}else t.top=Math.max(0,u.vertical==="center"?l.center:u.vertical===s.vertical?l.top:l.bottom),t.maxHeight=Math.min(c,w-t.top);if(t.left<0||t.left+h>x)if(t.maxWidth=Math.min(h,x),s.horizontal==="middle")t.left=l[u.horizontal]>x/2?Math.max(0,x-h):0;else if(l[u.horizontal]>x/2){const v=Math.min(x,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.right:l.left);t.maxWidth=Math.min(h,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(h,x-t.left)}const Cm=je({name:"QMenu",inheritAttrs:!1,props:{...om,...nl,...lr,...Nr,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Li},self:{type:String,validator:Li},offset:{type:Array,validator:Cs},scrollTarget:gs,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...rl,"click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){let s=null,c,h,g;const w=r.getCurrentInstance(),{proxy:x}=w,{$q:v}=x,C=r.ref(null),E=r.ref(!1),b=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),T=ar(t,v),{registerTick:U,removeTick:R}=al(),{registerTimeout:G}=Mr(),{transitionProps:F,transitionStyle:N}=ll(t),{localScrollTarget:Y,changeScrollEvent:z,unconfigureScrollTarget:j}=hs(t,Z),{anchorEl:W,canShow:oe}=ds({showing:E}),{hide:V}=il({showing:E,canShow:oe,handleShow:ge,handleHide:B,hideOnRouteChange:b,processOnMount:!0}),{showPortal:D,hidePortal:Q,renderPortal:A}=ol(w,C,Ae,"menu"),te={anchorEl:W,innerRef:C,onClickOutside(X){if(t.persistent!==!0&&E.value===!0)return V(X),(X.type==="touchstart"||X.target.classList.contains("q-dialog__backdrop"))&&We(X),!0}},P=r.computed(()=>qi(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=r.computed(()=>t.cover===!0?P.value:qi(t.self||"top start",v.lang.rtl)),le=r.computed(()=>(t.square===!0?" q-menu--square":"")+(T.value===!0?" q-menu--dark q-dark":"")),ce=r.computed(()=>t.autoClose===!0?{onClick:pe}:{}),K=r.computed(()=>E.value===!0&&t.persistent!==!0);r.watch(K,X=>{X===!0?(_s(H),ws(te)):(Bi(H),Mi(te))});function se(){ki(()=>{let X=C.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,ys(fe),D(),Z(),c=void 0,X!==void 0&&(t.touchPosition||t.contextMenu)){const De=Mu(X);if(De.left!==void 0){const{top:ot,left:Ft}=W.value.getBoundingClientRect();c={left:De.left-Ft,top:De.top-ot}}}h===void 0&&(h=r.watch(()=>v.screen.width+"|"+v.screen.height+"|"+t.self+"|"+t.anchor+"|"+v.lang.rtl,re)),t.noFocus!==!0&&document.activeElement.blur(),U(()=>{re(),t.noFocus!==!0&&se()}),G(()=>{v.platform.is.ios===!0&&(g=t.autoClose,C.value.click()),re(),D(!0),o("show",X)},t.transitionDuration)}function B(X){R(),Q(),O(!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(()=>{Q(!0),o("hide",X)},t.transitionDuration)}function O(X){c=void 0,h!==void 0&&(h(),h=void 0),(X===!0||E.value===!0)&&(ul(fe),j(),Mi(te),Bi(H)),X!==!0&&(s=null)}function Z(){(W.value!==null||t.scrollTarget!==void 0)&&(Y.value=ps(W.value,t.scrollTarget),z(Y.value,re))}function pe(X){g!==!0?(cm(x,X),o("click",X)):g=!1}function fe(X){K.value===!0&&t.noFocus!==!0&&Ju(C.value,X.target)!==!0&&se()}function H(X){o("escapeKey"),V(X)}function re(){cl({targetEl:C.value,offset:t.offset,anchorEl:W.value,anchorOrigin:P.value,selfOrigin:ae.value,absoluteOffset:c,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ae(){return r.h(r.Transition,F.value,()=>E.value===!0?r.h("div",{role:"menu",...u,ref:C,tabindex:-1,class:["q-menu q-position-engine scroll"+le.value,u.class],style:[u.style,N.value],...ce.value},ct(l.default)):null)}return r.onBeforeUnmount(O),Object.assign(x,{focus:se,updatePosition:re}),A}});function km(t,l,o){function u(){}return r.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Dr=0,dl,hl,$r,ml=!1,Es,As,Os,$n=null;function Em(t){Am(t)&&We(t)}function Am(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const l=eh(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 c=0;c<l.length;c++){const h=l[c];if(vm(h,u))return u?s<0&&h.scrollTop===0?!0:s>0&&h.scrollTop+h.clientHeight===h.scrollHeight:s<0&&h.scrollLeft===0?!0:s>0&&h.scrollLeft+h.clientWidth===h.scrollWidth}return!0}function Ts(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Vi(t){ml!==!0&&(ml=!0,requestAnimationFrame(()=>{ml=!1;const{height:l}=t.target,{clientHeight:o,scrollTop:u}=document.scrollingElement;($r===void 0||l!==window.innerHeight)&&($r=o-l,document.scrollingElement.scrollTop=u),u>$r&&(document.scrollingElement.scrollTop-=Math.ceil((u-$r)/8))}))}function Bs(t){const l=document.body,o=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(l);dl=gm(window),hl=mm(window),Es=l.style.left,As=l.style.top,Os=window.location.href,l.style.left=`-${dl}px`,l.style.top=`-${hl}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,_t.is.ios===!0&&(o===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Vi,dt.passiveCapture),window.visualViewport.addEventListener("scroll",Vi,dt.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Ts,dt.passiveCapture))}_t.is.desktop===!0&&_t.is.mac===!0&&window[`${t}EventListener`]("wheel",Em,dt.notPassive),t==="remove"&&(_t.is.ios===!0&&(o===!0?(window.visualViewport.removeEventListener("resize",Vi,dt.passiveCapture),window.visualViewport.removeEventListener("scroll",Vi,dt.passiveCapture)):window.removeEventListener("scroll",Ts,dt.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=Es,l.style.top=As,window.location.href===Os&&window.scrollTo(dl,hl),$r=void 0)}function Om(t){let l="add";if(t===!0){if(Dr++,$n!==null){clearTimeout($n),$n=null;return}if(Dr>1)return}else{if(Dr===0||(Dr--,Dr>0))return;if(l="remove",_t.is.ios===!0&&_t.is.nativeMobile===!0){$n!==null&&clearTimeout($n),$n=setTimeout(()=>{Bs(l),$n=null},100);return}}Bs(l)}function Tm(){let t;return{preventBodyScroll(l){l!==t&&(t!==void 0||l===!0)&&(t=l,Om(l))}}}let Pi=0;const Bm={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"},Rs={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Rm=je({name:"QDialog",inheritAttrs:!1,props:{...nl,...Nr,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:[...rl,"shake","click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){const s=r.getCurrentInstance(),c=r.ref(null),h=r.ref(!1),g=r.ref(!1);let w=null,x=null,v,C;const E=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:b}=Tm(),{registerTimeout:T}=Mr(),{registerTick:U,removeTick:R}=al(),{transitionProps:G,transitionStyle:F}=ll(t,()=>Rs[t.position][0],()=>Rs[t.position][1]),N=r.computed(()=>F.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Y,hidePortal:z,portalIsAccessible:j,renderPortal:W}=ol(s,c,fe,"dialog"),{hide:oe}=il({showing:h,hideOnRouteChange:E,handleShow:ae,handleHide:le,processOnMount:!0}),{addToHistory:V,removeFromHistory:D}=km(h),Q=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${Bm[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":"")),A=r.computed(()=>h.value===!0&&t.seamless!==!0),te=r.computed(()=>t.autoClose===!0?{onClick:O}:{}),P=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${A.value===!0?"modal":"seamless"}`,u.class]);r.watch(()=>t.maximized,H=>{h.value===!0&&B(H)}),r.watch(A,H=>{b(H),H===!0?(ys(pe),_s(se)):(ul(pe),Bi(se))});function ae(H){V(),x=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,B(t.maximized),Y(),g.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),U(ce)):R(),T(()=>{if(s.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:re,bottom:Ae}=document.activeElement.getBoundingClientRect(),{innerHeight:X}=window,De=window.visualViewport!==void 0?window.visualViewport.height:X;re>0&&Ae>De/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-De,Ae>=X?1/0:Math.ceil(document.scrollingElement.scrollTop+Ae-De/2))),document.activeElement.scrollIntoView()}C=!0,c.value.click(),C=!1}Y(!0),g.value=!1,o("show",H)},t.transitionDuration)}function le(H){R(),D(),ge(!0),g.value=!0,z(),x!==null&&(((H&&H.type.indexOf("key")===0?x.closest('[tabindex]:not([tabindex^="-"])'):void 0)||x).focus(),x=null),T(()=>{z(!0),g.value=!1,o("hide",H)},t.transitionDuration)}function ce(H){ki(()=>{let re=c.value;if(re!==null){if(H!==void 0){const Ae=re.querySelector(H);if(Ae!==null){Ae.focus({preventScroll:!0});return}}re.contains(document.activeElement)!==!0&&(re=re.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||re.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||re.querySelector("[autofocus], [data-autofocus]")||re,re.focus({preventScroll:!0}))}})}function K(H){H&&typeof H.focus=="function"?H.focus({preventScroll:!0}):ce(),o("shake");const re=c.value;re!==null&&(re.classList.remove("q-animate--scale"),re.classList.add("q-animate--scale"),w!==null&&clearTimeout(w),w=setTimeout(()=>{w=null,c.value!==null&&(re.classList.remove("q-animate--scale"),ce())},170))}function se(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&K():(o("escapeKey"),oe()))}function ge(H){w!==null&&(clearTimeout(w),w=null),(H===!0||h.value===!0)&&(B(!1),t.seamless!==!0&&(b(!1),ul(pe),Bi(se))),H!==!0&&(x=null)}function B(H){H===!0?v!==!0&&(Pi<1&&document.body.classList.add("q-body--dialog"),Pi++,v=!0):v===!0&&(Pi<2&&document.body.classList.remove("q-body--dialog"),Pi--,v=!1)}function O(H){C!==!0&&(oe(H),o("click",H))}function Z(H){t.persistent!==!0&&t.noBackdropDismiss!==!0?oe(H):t.noShake!==!0&&K()}function pe(H){t.allowFocusOutside!==!0&&j.value===!0&&Ju(c.value,H.target)!==!0&&ce('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:ce,shake:K,__updateRefocusTarget(H){x=H||null}}),r.onBeforeUnmount(ge);function fe(){return r.h("div",{role:"dialog","aria-modal":A.value===!0?"true":"false",...u,class:P.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>A.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:N.value,"aria-hidden":"true",tabindex:-1,onClick:Z}):null),r.h(r.Transition,G.value,()=>h.value===!0?r.h("div",{ref:c,class:Q.value,style:F.value,tabindex:-1,...te.value},ct(l.default)):null)])}return W}});let Ni=!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,Ni=t.scrollLeft>=0,t.remove()}const $t=1e3,Im=["start","center","end","start-force","center-force","end-force"],Is=Array.prototype.filter,Mm=window.getComputedStyle(document.body).overflowAnchor===void 0?Jd: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||[];Is.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 dr(t,l){return t+l}function gl(t,l,o,u,s,c,h,g){const w=t===window?document.scrollingElement||document.documentElement:t,x=s===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-h-g,scrollMaxSize:0,offsetStart:-h,offsetEnd:-g};if(s===!0?(t===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=w.scrollLeft,v.scrollViewSize+=w.clientWidth),v.scrollMaxSize=w.scrollWidth,c===!0&&(v.scrollStart=(Ni===!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=w.scrollTop,v.scrollViewSize+=w.clientHeight),v.scrollMaxSize=w.scrollHeight),o!==null)for(let C=o.previousElementSibling;C!==null;C=C.previousElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=C[x]);if(u!==null)for(let C=u.nextElementSibling;C!==null;C=C.nextElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=C[x]);if(l!==t){const C=w.getBoundingClientRect(),E=l.getBoundingClientRect();s===!0?(v.offsetStart+=E.left-C.left,v.offsetEnd-=E.width):(v.offsetStart+=E.top-C.top,v.offsetEnd-=E.height),t!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function Ms(t,l,o,u){l==="end"&&(l=(t===window?document.body:t)[o===!0?"scrollWidth":"scrollHeight"]),t===window?o===!0?(u===!0&&(l=(Ni===!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=(Ni===!0?t.scrollWidth-t.offsetWidth:0)-l),t.scrollLeft=l):t.scrollTop=l}function Fr(t,l,o,u){if(o>=u)return 0;const s=l.length,c=Math.floor(o/$t),h=Math.floor((u-1)/$t)+1;let g=t.slice(c,h).reduce(dr,0);return o%$t!==0&&(g-=l.slice(c*$t,o).reduce(dr,0)),u%$t!==0&&u!==s&&(g-=l.slice(u,h*$t).reduce(dr,0)),g}const Ls={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 Lm({virtualScrollLength:t,getVirtualScrollTarget:l,getVirtualScrollEl:o,virtualScrollItemSizeComputed:u}){const s=r.getCurrentInstance(),{props:c,emit:h,proxy:g}=s,{$q:w}=g;let x,v,C,E=[],b;const T=r.ref(0),U=r.ref(0),R=r.ref({}),G=r.ref(null),F=r.ref(null),N=r.ref(null),Y=r.ref({from:0,to:0}),z=r.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);u===void 0&&(u=r.computed(()=>c.virtualScrollItemSize));const j=r.computed(()=>u.value+";"+c.virtualScrollHorizontal),W=r.computed(()=>j.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);r.watch(W,()=>{le()}),r.watch(j,oe);function oe(){ae(v,!0)}function V(B){ae(B===void 0?v:B)}function D(B,O){const Z=l();if(Z==null||Z.nodeType===8)return;const pe=gl(Z,o(),G.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);C!==pe.scrollViewSize&&le(pe.scrollViewSize),A(Z,pe,Math.min(t.value-1,Math.max(0,parseInt(B,10)||0)),0,Im.indexOf(O)!==-1?O:v!==-1&&B>v?"end":"start")}function Q(){const B=l();if(B==null||B.nodeType===8)return;const O=gl(B,o(),G.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),Z=t.value-1,pe=O.scrollMaxSize-O.offsetStart-O.offsetEnd-U.value;if(x===O.scrollStart)return;if(O.scrollMaxSize<=0){A(B,O,0,0);return}C!==O.scrollViewSize&&le(O.scrollViewSize),te(Y.value.from);const fe=Math.floor(O.scrollMaxSize-Math.max(O.scrollViewSize,O.offsetEnd)-Math.min(b[Z],O.scrollViewSize/2));if(fe>0&&Math.ceil(O.scrollStart)>=fe){A(B,O,Z,O.scrollMaxSize-O.offsetEnd-E.reduce(dr,0));return}let H=0,re=O.scrollStart-O.offsetStart,Ae=re;if(re<=pe&&re+O.scrollViewSize>=T.value)re-=T.value,H=Y.value.from,Ae=re;else for(let X=0;re>=E[X]&&H<Z;X++)re-=E[X],H+=$t;for(;re>0&&H<Z;)re-=b[H],re>-O.scrollViewSize?(H++,Ae=re):Ae=b[H]+re;A(B,O,H,Ae)}function A(B,O,Z,pe,fe){const H=typeof fe=="string"&&fe.indexOf("-force")!==-1,re=H===!0?fe.replace("-force",""):fe,Ae=re!==void 0?re:"start";let X=Math.max(0,Z-R.value[Ae]),De=X+R.value.total;De>t.value&&(De=t.value,X=Math.max(0,De-R.value.total)),x=O.scrollStart;const ot=X!==Y.value.from||De!==Y.value.to;if(ot===!1&&re===void 0){K(Z);return}const{activeElement:Ft}=document,yt=N.value;ot===!0&&yt!==null&&yt!==Ft&&yt.contains(Ft)===!0&&(yt.addEventListener("focusout",P),setTimeout(()=>{yt!==null&&yt.removeEventListener("focusout",P)})),Mm(yt,Z-X);const nt=re!==void 0?b.slice(X,Z).reduce(dr,0):0;if(ot===!0){const wt=De>=Y.value.from&&X<=Y.value.to?Y.value.to:De;Y.value={from:X,to:wt},T.value=Fr(E,b,0,X),U.value=Fr(E,b,De,t.value),requestAnimationFrame(()=>{Y.value.to!==De&&x===O.scrollStart&&(Y.value={from:Y.value.from,to:De},U.value=Fr(E,b,De,t.value))})}requestAnimationFrame(()=>{if(x!==O.scrollStart)return;ot===!0&&te(X);const wt=b.slice(X,Z).reduce(dr,0),tn=wt+O.offsetStart+T.value,ht=tn+b[Z];let bn=tn+pe;if(re!==void 0){const Ur=wt-nt,Ut=O.scrollStart+Ur;bn=H!==!0&&Ut<tn&&ht<Ut+O.scrollViewSize?Ut:re==="end"?ht-O.scrollViewSize:tn-(re==="start"?0:Math.round((O.scrollViewSize-b[Z])/2))}x=bn,Ms(B,bn,c.virtualScrollHorizontal,w.lang.rtl),K(Z)})}function te(B){const O=N.value;if(O){const Z=Is.call(O.children,X=>X.classList&&X.classList.contains("q-virtual-scroll--skip")===!1),pe=Z.length,fe=c.virtualScrollHorizontal===!0?X=>X.getBoundingClientRect().width:X=>X.offsetHeight;let H=B,re,Ae;for(let X=0;X<pe;){for(re=fe(Z[X]),X++;X<pe&&Z[X].classList.contains("q-virtual-scroll--with-prev")===!0;)re+=fe(Z[X]),X++;Ae=re-b[H],Ae!==0&&(b[H]+=Ae,E[Math.floor(H/$t)]+=Ae),H++}}}function P(){N.value!==null&&N.value!==void 0&&N.value.focus()}function ae(B,O){const Z=1*u.value;(O===!0||Array.isArray(b)===!1)&&(b=[]);const pe=b.length;b.length=t.value;for(let H=t.value-1;H>=pe;H--)b[H]=Z;const fe=Math.floor((t.value-1)/$t);E=[];for(let H=0;H<=fe;H++){let re=0;const Ae=Math.min((H+1)*$t,t.value);for(let X=H*$t;X<Ae;X++)re+=b[X];E.push(re)}v=-1,x=void 0,T.value=Fr(E,b,0,Y.value.from),U.value=Fr(E,b,Y.value.to,t.value),B>=0?(te(Y.value.from),r.nextTick(()=>{D(B)})):se()}function le(B){if(B===void 0&&typeof window<"u"){const re=l();re!=null&&re.nodeType!==8&&(B=gl(re,o(),G.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}C=B;const O=parseFloat(c.virtualScrollSliceRatioBefore)||0,Z=parseFloat(c.virtualScrollSliceRatioAfter)||0,pe=1+O+Z,fe=B===void 0||B<=0?1:Math.ceil(B/u.value),H=Math.max(1,fe,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/pe));R.value={total:Math.ceil(H*pe),start:Math.ceil(H*O),center:Math.ceil(H*(.5+O)),end:Math.ceil(H*(1+O)),view:fe}}function ce(B,O){const Z=c.virtualScrollHorizontal===!0?"width":"height",pe={["--q-virtual-scroll-item-"+Z]:u.value+"px"};return[B==="tbody"?r.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:G},[r.h("tr",[r.h("td",{style:{[Z]:`${T.value}px`,...pe},colspan:z.value})])]):r.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:G,style:{[Z]:`${T.value}px`,...pe}}),r.h(B,{class:"q-virtual-scroll__content",key:"content",ref:N,tabindex:-1},O.flat()),B==="tbody"?r.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F},[r.h("tr",[r.h("td",{style:{[Z]:`${U.value}px`,...pe},colspan:z.value})])]):r.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F,style:{[Z]:`${U.value}px`,...pe}})]}function K(B){v!==B&&(c.onVirtualScroll!==void 0&&h("virtualScroll",{index:B,from:Y.value.from,to:Y.value.to-1,direction:B<v?"decrease":"increase",ref:g}),v=B)}le();const se=Wu(Q,w.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{le()});let ge=!1;return r.onDeactivated(()=>{ge=!0}),r.onActivated(()=>{if(ge!==!0)return;const B=l();x!==void 0&&B!==void 0&&B!==null&&B.nodeType!==8?Ms(B,x,c.virtualScrollHorizontal,w.lang.rtl):D(v)}),r.onBeforeUnmount(()=>{se.cancel()}),Object.assign(g,{scrollTo:D,reset:oe,refresh:V}),{virtualScrollSliceRange:Y,virtualScrollSliceSizeComputed:R,setVirtualScrollSize:le,onVirtualScrollEvt:se,localResetVirtualScroll:ae,padVirtualScroll:ce,scrollTo:D,reset:oe,refresh:V}}function qs(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 Vs=t=>["add","add-unique","toggle"].includes(t),qm=".*+?^${}()|[]\\",Vm=Object.keys(Ei),Ps=je({name:"QSelect",inheritAttrs:!1,props:{...Ls,...Wo,...Ei,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:Vs},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:Ls.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Yo,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:l,emit:o}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c=r.ref(!1),h=r.ref(!1),g=r.ref(-1),w=r.ref(""),x=r.ref(!1),v=r.ref(!1);let C=null,E=null,b,T,U,R=null,G,F,N,Y;const z=r.ref(null),j=r.ref(null),W=r.ref(null),oe=r.ref(null),V=r.ref(null),D=Iu(t),Q=Zu(Gi),A=r.computed(()=>Array.isArray(t.options)?t.options.length:0),te=r.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:P,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:le,padVirtualScroll:ce,onVirtualScrollEvt:K,scrollTo:se,setVirtualScrollSize:ge}=Lm({virtualScrollLength:A,getVirtualScrollTarget:Hi,getVirtualScrollEl:Hr,virtualScrollItemSizeComputed:te}),B=Qo(),O=r.computed(()=>{const _=t.mapOptions===!0&&t.multiple!==!0,ne=t.modelValue!==void 0&&(t.modelValue!==null||_===!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&&b!==void 0?b:[],ve=ne.map(Ie=>zr(Ie,J));return t.modelValue===null&&_===!0?ve.filter(Ie=>Ie!==null):ve}return ne}),Z=r.computed(()=>{const _={};return Vm.forEach(ne=>{const J=t[ne];J!==void 0&&(_[ne]=J)}),_}),pe=r.computed(()=>t.optionsDark===null?B.isDark.value:t.optionsDark),fe=r.computed(()=>Vr(O.value)),H=r.computed(()=>{let _="q-field__input q-placeholder col";return t.hideSelected===!0||O.value.length===0?[_,t.inputClass]:(_+=" q-field__input--padding",t.inputClass===void 0?_:[_,t.inputClass])}),re=r.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ae=r.computed(()=>A.value===0),X=r.computed(()=>O.value.map(_=>Ye.value(_)).join(", ")),De=r.computed(()=>t.displayValue!==void 0?t.displayValue:X.value),ot=r.computed(()=>t.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Ft=r.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||O.value.some(ot.value))),yt=r.computed(()=>B.focused.value===!0?t.tabindex:-1),nt=r.computed(()=>{const _={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":c.value===!0?"true":"false","aria-controls":`${B.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${B.targetUid.value}_${g.value}`),_}),wt=r.computed(()=>({id:`${B.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),tn=r.computed(()=>O.value.map((_,ne)=>({index:ne,opt:_,html:ot.value(_),selected:!0,removeAtIndex:yn,toggleOption:Ht,tabindex:yt.value}))),ht=r.computed(()=>{if(A.value===0)return[];const{from:_,to:ne}=P.value;return t.options.slice(_,ne).map((J,ve)=>{const Ie=zt.value(J)===!0,Be=zn(J)===!0,Ke=_+ve,Pe={clickable:!0,active:Be,activeClass:Ut.value,manualFocus:!0,focused:!1,disable:Ie,tabindex:-1,dense:t.optionsDense,dark:pe.value,role:"option","aria-selected":Be===!0?"true":"false",id:`${B.targetUid.value}_${Ke}`,onClick:()=>{Ht(J)}};return Ie!==!0&&(g.value===Ke&&(Pe.focused=!0),s.platform.is.desktop===!0&&(Pe.onMousemove=()=>{c.value===!0&&Qt(Ke)})),{index:Ke,opt:J,html:ot.value(J),label:Ye.value(J),selected:Pe.active,focused:Pe.focused,toggleOption:Ht,setOptionIndex:Qt,itemProps:Pe}})}),bn=r.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),Ur=r.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),Ut=r.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=r.computed(()=>Un(t.optionValue,"value")),Ye=r.computed(()=>Un(t.optionLabel,"label")),zt=r.computed(()=>Un(t.optionDisable,"disable")),hr=r.computed(()=>O.value.map(_=>Fe.value(_))),Fn=r.computed(()=>{const _={onInput:Gi,onChange:Q,onKeydown:zi,onKeyup:Fi,onKeypress:Ui,onFocus:gr,onClick(ne){T===!0&&Yt(ne)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=Q,_});r.watch(O,_=>{b=_,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&B.innerLoading.value!==!0&&(h.value!==!0&&c.value!==!0||fe.value!==!0)&&(U!==!0&&on(),(h.value===!0||c.value===!0)&&Sn(""))},{immediate:!0}),r.watch(()=>t.fillInput,on),r.watch(c,Kr),r.watch(A,Al);function $i(_){return t.emitValue===!0?Fe.value(_):_}function nn(_){if(_!==-1&&_<O.value.length)if(t.multiple===!0){const ne=t.modelValue.slice();o("remove",{index:_,value:ne.splice(_,1)[0]}),o("update:modelValue",ne)}else o("update:modelValue",null)}function yn(_){nn(_),B.focus()}function mr(_,ne){const J=$i(_);if(t.multiple!==!0){t.fillInput===!0&&Wn(Ye.value(_),!0,!0),o("update:modelValue",J);return}if(O.value.length===0){o("add",{index:0,value:J}),o("update:modelValue",t.multiple===!0?[J]:J);return}if(ne===!0&&zn(_)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const ve=t.modelValue.slice();o("add",{index:ve.length,value:J}),ve.push(J),o("update:modelValue",ve)}function Ht(_,ne){if(B.editable.value!==!0||_===void 0||zt.value(_)===!0)return;const J=Fe.value(_);if(t.multiple!==!0){ne!==!0&&(Wn(t.fillInput===!0?Ye.value(_):"",!0,!0),rn()),j.value!==null&&j.value.focus(),(O.value.length===0||en(Fe.value(O.value[0]),J)!==!0)&&o("update:modelValue",t.emitValue===!0?J:_);return}if((T!==!0||x.value===!0)&&B.focus(),gr(),O.value.length===0){const Be=t.emitValue===!0?J:_;o("add",{index:0,value:Be}),o("update:modelValue",t.multiple===!0?[Be]:Be);return}const ve=t.modelValue.slice(),Ie=hr.value.findIndex(Be=>en(Be,J));if(Ie!==-1)o("remove",{index:Ie,value:ve.splice(Ie,1)[0]});else{if(t.maxValues!==void 0&&ve.length>=t.maxValues)return;const Be=t.emitValue===!0?J:_;o("add",{index:ve.length,value:Be}),ve.push(Be)}o("update:modelValue",ve)}function Qt(_){if(s.platform.is.desktop!==!0)return;const ne=_!==-1&&_<A.value?_:-1;g.value!==ne&&(g.value=ne)}function wn(_=1,ne){if(c.value===!0){let J=g.value;do J=qs(J+_,-1,A.value-1);while(J!==-1&&J!==g.value&&zt.value(t.options[J])===!0);g.value!==J&&(Qt(J),se(J),ne!==!0&&t.useInput===!0&&t.fillInput===!0&&Hn(J>=0?Ye.value(t.options[J]):G,!0))}}function zr(_,ne){const J=ve=>en(Fe.value(ve),_);return t.options.find(J)||ne.find(J)||_}function Un(_,ne){const J=_!==void 0?_:ne;return typeof J=="function"?J:ve=>ve!==null&&typeof ve=="object"&&J in ve?ve[J]:ve}function zn(_){const ne=Fe.value(_);return hr.value.find(J=>en(J,ne))!==void 0}function gr(_){t.useInput===!0&&j.value!==null&&(_===void 0||j.value===_.target&&_.target.value===X.value)&&j.value.select()}function pr(_){Vn(_,27)===!0&&c.value===!0&&(Yt(_),rn(),on()),o("keyup",_)}function Fi(_){const{value:ne}=_.target;if(_.keyCode!==void 0){pr(_);return}if(_.target.value="",C!==null&&(clearTimeout(C),C=null),E!==null&&(clearTimeout(E),E=null),on(),typeof ne=="string"&&ne.length!==0){const J=ne.toLocaleLowerCase(),ve=Be=>{const Ke=t.options.find(Pe=>Be.value(Pe).toLocaleLowerCase()===J);return Ke===void 0?!1:(O.value.indexOf(Ke)===-1?Ht(Ke):rn(),!0)},Ie=Be=>{ve(Fe)!==!0&&(ve(Ye)===!0||Be===!0||Sn(ne,!0,()=>Ie(!0)))};Ie()}else B.clearValue(_)}function Ui(_){o("keypress",_)}function zi(_){if(o("keydown",_),Xo(_)===!0)return;const ne=w.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),J=_.shiftKey!==!0&&t.multiple!==!0&&(g.value!==-1||ne===!0);if(_.keyCode===27){Dt(_);return}if(_.keyCode===9&&J===!1){xn();return}if(_.target===void 0||_.target.id!==B.targetUid.value||B.editable.value!==!0)return;if(_.keyCode===40&&B.innerLoading.value!==!0&&c.value===!1){We(_),Cn();return}if(_.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&w.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?nn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&o("update:modelValue",null);return}(_.keyCode===35||_.keyCode===36)&&(typeof w.value!="string"||w.value.length===0)&&(We(_),g.value=-1,wn(_.keyCode===36?1:-1,t.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(We(_),g.value=Math.max(-1,Math.min(A.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),wn(_.keyCode===33?1:-1,t.multiple)),(_.keyCode===38||_.keyCode===40)&&(We(_),wn(_.keyCode===38?-1:1,t.multiple));const ve=A.value;if((N===void 0||Y<Date.now())&&(N=""),ve>0&&t.useInput!==!0&&_.key!==void 0&&_.key.length===1&&_.altKey===!1&&_.ctrlKey===!1&&_.metaKey===!1&&(_.keyCode!==32||N.length!==0)){c.value!==!0&&Cn(_);const Ie=_.key.toLocaleLowerCase(),Be=N.length===1&&N[0]===Ie;Y=Date.now()+1500,Be===!1&&(We(_),N+=Ie);const Ke=new RegExp("^"+N.split("").map(vr=>qm.indexOf(vr)!==-1?"\\"+vr:vr).join(".*"),"i");let Pe=g.value;if(Be===!0||Pe<0||Ke.test(Ye.value(t.options[Pe]))!==!0)do Pe=qs(Pe+1,-1,ve-1);while(Pe!==g.value&&(zt.value(t.options[Pe])===!0||Ke.test(Ye.value(t.options[Pe]))!==!0));g.value!==Pe&&r.nextTick(()=>{Qt(Pe),se(Pe),Pe>=0&&t.useInput===!0&&t.fillInput===!0&&Hn(Ye.value(t.options[Pe]),!0)});return}if(!(_.keyCode!==13&&(_.keyCode!==32||t.useInput===!0||N!=="")&&(_.keyCode!==9||J===!1))){if(_.keyCode!==9&&We(_),g.value!==-1&&g.value<ve){Ht(t.options[g.value]);return}if(ne===!0){const Ie=(Be,Ke)=>{if(Ke){if(Vs(Ke)!==!0)return}else Ke=t.newValueMode;if(Wn("",t.multiple!==!0,!0),Be==null)return;(Ke==="toggle"?Ht:mr)(Be,Ke==="add-unique"),t.multiple!==!0&&(j.value!==null&&j.value.focus(),rn())};if(t.onNewValue!==void 0?o("newValue",w.value,Ie):Ie(w.value),t.multiple!==!0)return}c.value===!0?xn():B.innerLoading.value!==!0&&Cn()}}function Hr(){return T===!0?V.value:W.value!==null&&W.value.contentEl!==null?W.value.contentEl:void 0}function Hi(){return Hr()}function _l(){return t.hideSelected===!0?[]:l["selected-item"]!==void 0?tn.value.map(_=>l["selected-item"](_)).slice():l.selected!==void 0?[].concat(l.selected()):t.useChips===!0?tn.value.map((_,ne)=>r.h(tm,{key:"option-"+ne,removable:B.editable.value===!0&&zt.value(_.opt)!==!0,dense:!0,textColor:t.color,tabindex:yt.value,onRemove(){_.removeAtIndex(ne)}},()=>r.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:Ye.value(_.opt)}))):[r.h("span",{[Ft.value===!0?"innerHTML":"textContent"]:De.value})]}function Wi(){if(Ae.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:w.value}):void 0;const _=l.option!==void 0?l.option:J=>r.h(nm,{key:J.index,...J.itemProps},()=>r.h(rm,()=>r.h(im,()=>r.h("span",{[J.html===!0?"innerHTML":"textContent"]:J.label}))));let ne=ce("div",ht.value.map(_));return l["before-options"]!==void 0&&(ne=l["before-options"]().concat(ne)),Ln(l["after-options"],ne)}function bl(_,ne){const J=ne===!0?{...nt.value,...B.splitAttrs.attributes.value}:void 0,ve={ref:ne===!0?j:void 0,key:"i_t",class:H.value,style:t.inputStyle,value:w.value!==void 0?w.value:"",type:"search",...J,id:ne===!0?B.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":_===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...Fn.value};return _!==!0&&T===!0&&(Array.isArray(ve.class)===!0?ve.class=[...ve.class,"no-pointer-events"]:ve.class+=" no-pointer-events"),r.h("input",ve)}function Gi(_){C!==null&&(clearTimeout(C),C=null),E!==null&&(clearTimeout(E),E=null),!(_&&_.target&&_.target.qComposing===!0)&&(Hn(_.target.value||""),U=!0,G=w.value,B.focused.value!==!0&&(T!==!0||x.value===!0)&&B.focus(),t.onFilter!==void 0&&(C=setTimeout(()=>{C=null,Sn(w.value)},t.inputDebounce)))}function Hn(_,ne){w.value!==_&&(w.value=_,ne===!0||t.inputDebounce===0||t.inputDebounce==="0"?o("inputValue",_):E=setTimeout(()=>{E=null,o("inputValue",_)},t.inputDebounce))}function Wn(_,ne,J){U=J!==!0,t.useInput===!0&&(Hn(_,!0),(ne===!0||J!==!0)&&(G=_),ne!==!0&&Sn(_))}function Sn(_,ne,J){if(t.onFilter===void 0||ne!==!0&&B.focused.value!==!0)return;B.innerLoading.value===!0?o("filterAbort"):(B.innerLoading.value=!0,v.value=!0),_!==""&&t.multiple!==!0&&O.value.length!==0&&U!==!0&&_===Ye.value(O.value[0])&&(_="");const ve=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);R!==null&&clearTimeout(R),R=ve,o("filter",_,(Ie,Be)=>{(ne===!0||B.focused.value===!0)&&R===ve&&(clearTimeout(R),typeof Ie=="function"&&Ie(),v.value=!1,r.nextTick(()=>{B.innerLoading.value=!1,B.editable.value===!0&&(ne===!0?c.value===!0&&rn():c.value===!0?Kr(!0):c.value=!0),typeof Be=="function"&&r.nextTick(()=>{Be(u)}),typeof J=="function"&&r.nextTick(()=>{J(u)})}))},()=>{B.focused.value===!0&&R===ve&&(clearTimeout(R),B.innerLoading.value=!1,v.value=!1),c.value===!0&&(c.value=!1)})}function yl(){return r.h(Cm,{ref:W,class:re.value,style:t.popupContentStyle,modelValue:c.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Ae.value!==!0&&t.useInput!==!0,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:pe.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:Ur.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...wt.value,onScrollPassive:K,onBeforeShow:ji,onBeforeHide:Wr,onShow:wl},Wi)}function Wr(_){Yi(_),xn()}function wl(){ge()}function Gr(_){Yt(_),j.value!==null&&j.value.focus(),x.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Sl(_){Yt(_),r.nextTick(()=>{x.value=!1})}function xl(){const _=[r.h(Jh,{class:`col-auto ${B.fieldClass.value}`,...Z.value,for:B.targetUid.value,dark:pe.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:w.value.length!==0,...B.splitAttrs.listeners.value,onFocus:Gr,onBlur:Sl},{...l,rawControl:()=>B.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&_.push(r.h("div",{ref:V,class:re.value+" scroll",style:t.popupContentStyle,...wt.value,onClick:Dt,onScrollPassive:K},Wi())),r.h(Rm,{ref:oe,modelValue:h.value,position:t.useInput===!0?"top":void 0,transitionShow:F,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:ji,onBeforeHide:Cl,onHide:kl,onShow:El},()=>r.h("div",{class:"q-select__dialog"+(pe.value===!0?" q-select__dialog--dark q-dark":"")+(x.value===!0?" q-select__dialog--focused":"")},_))}function Cl(_){Yi(_),oe.value!==null&&oe.value.__updateRefocusTarget(B.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),B.focused.value=!1}function kl(_){rn(),B.focused.value===!1&&o("blur",_),on()}function El(){const _=document.activeElement;(_===null||_.id!==B.targetUid.value)&&j.value!==null&&j.value!==_&&j.value.focus(),ge()}function xn(){h.value!==!0&&(g.value=-1,c.value===!0&&(c.value=!1),B.focused.value===!1&&(R!==null&&(clearTimeout(R),R=null),B.innerLoading.value===!0&&(o("filterAbort"),B.innerLoading.value=!1,v.value=!1)))}function Cn(_){B.editable.value===!0&&(T===!0?(B.onControlFocusin(_),h.value=!0,r.nextTick(()=>{B.focus()})):B.focus(),t.onFilter!==void 0?Sn(w.value):(Ae.value!==!0||l["no-option"]!==void 0)&&(c.value=!0))}function rn(){h.value=!1,xn()}function on(){t.useInput===!0&&Wn(t.multiple!==!0&&t.fillInput===!0&&O.value.length!==0&&Ye.value(O.value[0])||"",!0,!0)}function Kr(_){let ne=-1;if(_===!0){if(O.value.length!==0){const J=Fe.value(O.value[0]);ne=t.options.findIndex(ve=>en(Fe.value(ve),J))}le(ne)}Qt(ne)}function Al(_,ne){c.value===!0&&B.innerLoading.value===!1&&(le(-1,!0),r.nextTick(()=>{c.value===!0&&B.innerLoading.value===!1&&(_>ne?le():Kr(!0))}))}function Ki(){h.value===!1&&W.value!==null&&W.value.updatePosition()}function ji(_){_!==void 0&&Yt(_),o("popupShow",_),B.hasPopupOpen=!0,B.onControlFocusin(_)}function Yi(_){_!==void 0&&Yt(_),o("popupHide",_),B.hasPopupOpen=!1,B.onControlFocusout(_)}function Qi(){T=s.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?l["no-option"]!==void 0||t.onFilter!==void 0||Ae.value===!1:!0),F=s.platform.is.ios===!0&&T===!0&&t.useInput===!0?"fade":t.transitionShow}return r.onBeforeUpdate(Qi),r.onUpdated(Ki),Qi(),r.onBeforeUnmount(()=>{C!==null&&clearTimeout(C),E!==null&&clearTimeout(E)}),Object.assign(u,{showPopup:Cn,hidePopup:rn,removeAtIndex:nn,add:mr,toggleOption:Ht,getOptionIndex:()=>g.value,setOptionIndex:Qt,moveOptionSelection:wn,filter:Sn,updateMenuPosition:Ki,updateInputValue:Wn,isOptionSelected:zn,getEmittingOptionValue:$i,isOptionDisabled:(..._)=>zt.value.apply(null,_)===!0,getOptionValue:(..._)=>Fe.value.apply(null,_),getOptionLabel:(..._)=>Ye.value.apply(null,_)}),Object.assign(B,{innerValue:O,fieldClass:r.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:z,targetRef:j,hasValue:fe,showPopup:Cn,floatingLabel:r.computed(()=>t.hideSelected!==!0&&fe.value===!0||typeof w.value=="number"||w.value.length!==0||Vr(t.displayValue)),getControlChild:()=>{if(B.editable.value!==!1&&(h.value===!0||Ae.value!==!0||l["no-option"]!==void 0))return T===!0?xl():yl();B.hasPopupOpen===!0&&(B.hasPopupOpen=!1)},controlEvents:{onFocusin(_){B.onControlFocusin(_)},onFocusout(_){B.onControlFocusout(_,()=>{on(),xn()})},onClick(_){if(Dt(_),T!==!0&&c.value===!0){xn(),j.value!==null&&j.value.focus();return}Cn(_)}},getControl:_=>{const ne=_l(),J=_===!0||h.value!==!0||T!==!0;if(t.useInput===!0)ne.push(bl(_,J));else if(B.editable.value===!0){const Ie=J===!0?nt.value:void 0;ne.push(r.h("input",{ref:J===!0?j:void 0,key:"d_t",class:"q-select__focus-target",id:J===!0?B.targetUid.value:void 0,value:De.value,readonly:!0,"data-autofocus":_===!0||t.autofocus===!0||void 0,...Ie,onKeydown:zi,onKeyup:pr,onKeypress:Ui})),J===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&ne.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:Fi}))}if(D.value!==void 0&&t.disable!==!0&&hr.value.length!==0){const Ie=hr.value.map(Be=>r.h("option",{value:Be,selected:!0}));ne.push(r.h("select",{class:"hidden",name:D.value,multiple:t.multiple},Ie))}const ve=t.useInput===!0||J!==!0?void 0:B.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",...ve,...B.splitAttrs.listeners.value},ne)},getInnerAppend:()=>t.loading!==!0&&v.value!==!0&&t.hideDropdownIcon!==!0?[r.h(bt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:bn.value})]:null}),Zo(B)}}),Pm=ft(r.defineComponent({__name:"SelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.ref([]),o=r.useModel(t,"modelValue"),u=t,s=r.ref(!1),c=r.computed(()=>u.control.customParams),h=r.ref([]),g=r.computed(()=>{var C;return((C=c.value)==null?void 0:C.collection)||null}),w=r.computed(()=>g.value?h.value:u.control.options),x=or();r.watch(g,C=>{if(!C)return;const E=x.getCollection(g.value);if(E){h.value=E;return}s.value=!0},{immediate:!0});function v(C,E){if(C===""){E(()=>{l.value=Ve.cloneDeep(w.value)});return}E(()=>{const b=C.toLowerCase();l.value=(w.value||[]).filter(T=>T.toLowerCase().includes(b))})}return(C,E)=>{const b=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[C.control.label?(r.openBlock(),r.createBlock(b,{key:0,label:C.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(Oi,{class:"q-card win-card row items-center q-px-md"},{default:r.withCtx(()=>[r.createVNode(Ps,{borderless:"",label:C.control.label,modelValue:o.value,"onUpdate:modelValue":E[0]||(E[0]=T=>o.value=T),"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-fa1749f7"]]),Nm={class:"text-center",style:{width:"100%"}},Dm={class:"text-center text-weight-medium"},$m={class:"question-title"},Fm=r.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(l,o)=>(r.openBlock(),r.createElementBlock("div",Nm,[r.createElementVNode("div",Dm,r.toDisplayString(l.formGroup.order+1)+"/"+r.toDisplayString(l.stepsCount),1),r.createElementVNode("div",$m,r.toDisplayString(l.formGroup.title||""),1)]))}});function Um(){return r.inject(uh)}function Ns(t,l){const{maxControlsPerGroup:o,notifyValidations:u}={...md,...l||{}},s=or(),c=r.computed(()=>s.formSteps[t]),h=r.ref([]),g=r.ref([]),w=(b,T)=>{s.setControlValue(t,b);const U=h.value.find(F=>F.id===T);U&&(g.value=pd(U));const R=v(b),G=C(b);(R||G)&&x()};function x(){const b=c.value.controls,T=[];yd(b).forEach(R=>{const G=R.controls;if(G.every(N=>!No.includes(N.controlType))){T.push(R);return}let F={...R,controls:[]};for(const N of G)if(No.includes(N.controlType)){T.push(F),F={...F,controls:[]};const Y=_d(R,N,o);T.push(...Y)}else F.controls.push(N)}),h.value=Ve.orderBy(T,"order").map(R=>({...R,id:R.controls.map(G=>G.id).join("-")})).filter(R=>R.controls.some(G=>G.visible)).map((R,G)=>({...R,order:G,controls:R.controls.filter(F=>F.visible)}))}function v({id:b,value:T}){let U=!1;const G=c.value.controls.filter(F=>{var N;return((N=F.conditions)==null?void 0:N.some(Y=>Y.id===b))||!1});if(G!=null&&G.length)return G.forEach(({id:F,conditions:N,visible:Y})=>{const z=N.every(j=>{const{value:W,operator:oe}=j;return{"==":T===W,"!=":T!==W,">":T>W,"<":T<W}[oe]||!1});Y!==z&&(s.setControlVisibility(t,F,z),U=!0)}),U}function C({id:b,value:T}){const U=Number(T||0);let R=!1;const F=c.value.controls.filter(N=>{var Y;return N.controlType==="dynamic_array"&&((Y=N.itemsLength)==null?void 0:Y.controlId)===b});if(F!=null&&F.length)return F.forEach(({id:N,itemsLength:Y})=>{(Y==null?void 0:Y.value)!==U&&(s.setControlItemsLength(t,N,U),R=!0)}),R}const{notify:E}=Um();return r.watch(g,b=>{b.length&&(u&&E({message:b[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),r.watch(c,()=>{x()},{immediate:!0}),{model:h,errorMessages:g,rebuildModel:x,onControlValueUpdate:w}}const zm={key:0,style:{height:"100%"}},Hm={class:"q-py-sm"},Wm={class:"form-steps-container"},Gm={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},Km={class:"controls-container",style:{height:"100%"}},jm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},Ym=ft(r.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const l=t,o=or(),{model:u,onControlValueUpdate:s}=Ns(l.index),c=r.computed(()=>u.value.length),h=r.ref(0),g=r.computed(()=>u.value[h.value]),w=v=>{const C=Ve.toPairs(Ve.groupBy(v,"row"));return Ve.orderBy(C,([E,b])=>Number(E),"asc").map(([E,b])=>({controls:Ve.orderBy(b,"col","asc")}))};r.watch(h,v=>{const C=v+1===c.value;o.setOnLastSubstep(C)},{immediate:!0});function x(v){return{input_text:Jo,input_number:Jo,checkbox:Nu,switch:rh,select:Pm,cards_select:Yd}[v]||Jo}return(v,C)=>g.value?(r.openBlock(),r.createElementBlock("div",zm,[r.createElementVNode("div",Hm,[r.createVNode(Fm,{formGroup:g.value,stepsCount:c.value},null,8,["formGroup","stepsCount"])]),r.createElementVNode("div",Wm,[r.createElementVNode("div",Gm,[r.createElementVNode("div",Km,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u),E=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:E.id},[h.value===E.order?(r.openBlock(),r.createBlock(Bd,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:r.withCtx(()=>[r.createElementVNode("div",jm,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(w(E.controls),(b,T)=>(r.openBlock(),r.createElementBlock("div",{class:"q-mb-xl",key:T},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(b.controls,(U,R)=>(r.openBlock(),r.createElementBlock("div",{key:R},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(x(U.controlType)),{control:U,modelValue:b.controls[R].value,"onUpdate:modelValue":[G=>b.controls[R].value=G,G=>r.unref(s)(U,E.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):r.createCommentVNode("",!0)],64))),128)),r.createVNode(Xh,{currentStep:h.value,stepsCount:c.value,nextDisabled:!g.value.valid,onPrev:C[0]||(C[0]=E=>h.value--),onNext:C[1]||(C[1]=E=>g.value.valid&&h.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),Qm={style:{"font-size":"16px","padding-top":"1rem"}},Zm={style:{"font-size":"16px","padding-top":"1rem"}},pl=ft(r.defineComponent({__name:"SimpleInput",props:r.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue"),o=t,u=r.computed(()=>{var s;return(s=o.control.controlType)==null?void 0:s.split("_")[1]});return(s,c)=>(r.openBlock(),r.createBlock(Oi,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(Xu,{borderless:"","reverse-fill-mask":"",modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=h=>l.value=h),label:s.control.label,mask:u.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":u.value==="number"},"input-style":{fontSize:"16px"},rules:s.rules},r.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",Qm,r.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",Zm,r.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),Ds=r.defineComponent({__name:"SimpleSelect",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(o,u)=>(r.openBlock(),r.createBlock(Oi,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(Ps,{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}))}}),Xm={key:0,style:{height:"100%"}},Jm={class:"question-title text-center q-py-sm"},eg={class:"form-steps-container bg-grey-1"},tg={class:"form-container",style:{height:"100%"}},ng={class:"row items-center"},rg={class:"col-12 row"},ig=ft(r.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const l=t,{model:o,onControlValueUpdate:u}=Ns(l.index,{notifyValidations:!1});function s(w){return{input_text:pl,input_number:pl,select:Ds,cards_select:Ds,checkbox:Nu}[w]||pl}const c=w=>Ve.orderBy(Ve.toPairs(Ve.groupBy(w,"row")),"row").map(([x,v])=>({controls:Ve.orderBy(v,"col")}));function h(w){return[x=>{var C;let v="";return(C=w.validators)==null||C.some(E=>{const{param:b,validator:T}=E,U=hu[T];return U.fn(Number(b))({...w,value:x})?!1:(v=U.message,!0)}),!v.length||v}]}const g=or();return r.onMounted(()=>g.setOnLastSubstep(!0)),(w,x)=>r.unref(o)?(r.openBlock(),r.createElementBlock("div",Xm,[r.createElementVNode("div",Jm,r.toDisplayString(r.unref(o)[0].title),1),r.createElementVNode("div",eg,[r.createElementVNode("div",tg,[r.createElementVNode("div",ng,[r.createElementVNode("div",rg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c(r.unref(o)[0].controls),(v,C)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(c(r.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:C},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.controls,(E,b)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`col-xs-12 col-sm q-pa-xs ${c(r.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:b},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(s(E.controlType)),{control:E,modelValue:E.value,"onUpdate:modelValue":[T=>E.value=T,T=>r.unref(u)(E,r.unref(o)[0].id)],rules:h(E)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),vl=t=>(r.pushScopeId("data-v-ea1ef607"),t=t(),r.popScopeId(),t),og={class:"buttons-container"},lg={class:"max-container"},ag={key:0,class:"row checkbox justify-end q-my-sm"},ug={style:{"max-width":"650px"}},sg=vl(()=>r.createElementVNode("br",{class:"gt-sm"},null,-1)),cg={class:"row justify-between q-my-md q-px-md q-pb-xl"},fg=vl(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),dg={key:1},hg={key:0,class:"text-black"},mg=vl(()=>r.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),gg={key:1,class:"text-black"},pg=ft(r.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:l}){const{nextStep:o,previousStep:u,currentStep:s,stepsCount:c,nextDisabled:h,onLastSubstep:g}=r.toRefs(or()),w=l,x=r.ref(!1),v=E=>{},C=()=>{s.value===c.value?w("submit"):o.value()};return(E,b)=>(r.openBlock(),r.createElementBlock("div",og,[r.createElementVNode("div",lg,[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("div",ag,[r.createElementVNode("div",ug,[r.createVNode(Pu,{color:"info",class:"checkbox",modelValue:x.value,"onUpdate:modelValue":b[1]||(b[1]=T=>x.value=T)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),sg,r.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),r.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:b[0]||(b[0]=T=>v())},"aquí"),r.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",cg,[r.unref(s)>1?(r.openBlock(),r.createBlock(_n,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:r.unref(u),flat:"","no-caps":""},{default:r.withCtx(()=>[fg]),_:1},8,["onClick"])):(r.openBlock(),r.createElementBlock("div",dg)),r.createElementVNode("div",null,[!r.unref(h)&&r.unref(g)?(r.openBlock(),r.createBlock(_n,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:C,disable:r.unref(s)===r.unref(c)&&!x.value,flat:"","no-caps":""},{default:r.withCtx(()=>[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("span",hg,[r.createTextVNode(" Enviar "),mg])):(r.openBlock(),r.createElementBlock("span",gg," Siguiente "))]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),$s=r.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:l}){const o=t,u=l,s=r.ref(!1),c=or(),h=w=>Ve.keys(Ve.groupBy(w.controls,"group")).length===1;r.watch(()=>o.forms,w=>{const v=new vu().fromRaw(w);c.setFormSteps(v)},{immediate:!0});function g(){const w=Ve.cloneDeep(c.formSteps),v=new vu().toRaw(w);u("onSubmit",v)}return(w,x)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",null,[r.renderSlot(w.$slots,"header"),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).formSteps,(v,C)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:C},[h(v)?r.withDirectives((r.openBlock(),r.createBlock(ig,{key:0,index:C},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===C+1]]):r.withDirectives((r.openBlock(),r.createBlock(Ym,{key:1,index:C,onOnLastStep:x[0]||(x[0]=E=>s.value=E)},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===C+1]])],64))),128))]),r.createVNode(pg,{onSubmit:g})],64))}}),vg=r.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),Fs=r.defineComponent({__name:"TestUi",setup(t){const l=r.ref("Test W2W UI!");return(o,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[vg,r.createElementVNode("h1",null,r.toDisplayString(l.value),1)],64))}}),_g=r.defineComponent({__name:"DomSection",props:{section:{}},setup(t){const l=r.ref(null),o=t;return r.watch([()=>o.section,l],([u,s])=>{u&&s&&s.appendChild(u)}),(u,s)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"container",ref:l},null,512))}});function Us(t,l){try{return l.split(".").reduce((u,s)=>u[s],t)}catch(o){return console.error(o),`{{${l}}}`}}const bg={class:"card"},yg={key:0,class:"card-header"},wg={key:0,contenteditable:""},Sg={class:"card-content"},xg={contenteditable:"",class:"field-label"},Cg={contenteditable:"",class:"field-value"},kg=ft(r.defineComponent({__name:"Card",props:{card:{},data:{}},setup(t){const l=t;function o(s){const c=s.value||Us(l.data,s.key||"");return u(c,s.format)}function u(s,c){return c?c==="currency"?new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}).format(s):c==="percentage"?`${s} %`:s:s}return(s,c)=>(r.openBlock(),r.createElementBlock("div",bg,[s.card.title||s.card.subtitle?(r.openBlock(),r.createElementBlock("div",yg,[s.card.title?(r.openBlock(),r.createElementBlock("h3",wg,r.toDisplayString(s.card.title),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",Sg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.card.fields,(h,g)=>(r.openBlock(),r.createElementBlock("div",{key:g,class:"card-field"},[r.createElementVNode("span",xg,r.toDisplayString(h.label),1),r.createElementVNode("span",Cg,r.toDisplayString(o(h)),1)]))),128))])]))}}),[["__scopeId","data-v-758b9217"]]);function Di(t,l={}){const o=r.inject("data"),u=r.computed(()=>o.value[t]||l),s=r.computed(()=>o.value.global||{}),c=r.computed(()=>({...s.value,...u.value}));return{sectionData:u,globalData:s,data:c}}const Eg=ft(r.defineComponent({__name:"CardGridSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{data:o}=Di(l.id,{});return(u,s)=>{var c;return r.openBlock(),r.createElementBlock("div",{class:"card-section",style:r.normalizeStyle(((c=u.styles)==null?void 0:c.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.content.cards,(h,g)=>(r.openBlock(),r.createBlock(kg,{key:g,card:h,data:r.unref(o)},null,8,["card","data"]))),128))],4)}}}),[["__scopeId","data-v-1ef55d4c"]]),Ag=["src","alt"],Og=ft(r.defineComponent({__name:"ImageSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{content:o,styles:u}=r.toRefs(l);return Di(l.id,{}),(s,c)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({justifyContent:r.unref(o).align}),class:"img-container"},[r.createElementVNode("img",{src:r.unref(o).src,alt:r.unref(o).alt,style:r.normalizeStyle({width:r.unref(o).width,height:r.unref(o).height})},null,12,Ag)],4))}}),[["__scopeId","data-v-16a52375"]]),Tg="#f5f5f5",Bg=ft(r.defineComponent({__name:"TableSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{columns:o}=r.toRefs(l.content),{data:u}=Di(l.id,[]),s=r.computed(()=>[...u.value[l.content.rowsKey]||[]]);return(c,h)=>{var g;return r.openBlock(),r.createElementBlock("table",{style:r.normalizeStyle("width: 100%;"+((g=c.styles)==null?void 0:g.cssRaw)||""),class:"table-section"},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(o),w=>(r.openBlock(),r.createElementBlock("th",{key:w.key,style:r.normalizeStyle({textAlign:w.align||"left"}),contenteditable:""},r.toDisplayString(w.header),5))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(w,x)=>(r.openBlock(),r.createElementBlock("tr",{key:x,style:r.normalizeStyle({backgroundColor:x%2===0?Tg:"transparent"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(o),v=>(r.openBlock(),r.createElementBlock("td",{key:v.key,style:r.normalizeStyle({textAlign:v.align||"left"}),contenteditable:""},r.toDisplayString(w[v.key]),5))),128))],4))),128))])],4)}}}),[["__scopeId","data-v-cb58770d"]]),zs=je({name:"QTooltip",inheritAttrs:!1,props:{...fs,...nl,...Nr,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Nr.transitionShow,default:"jump-down"},transitionHide:{...Nr.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Li},self:{type:String,default:"top middle",validator:Li},offset:{type:Array,default:()=>[14,14],validator:Cs},scrollTarget:gs,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...rl],setup(t,{slots:l,emit:o,attrs:u}){let s,c;const h=r.getCurrentInstance(),{proxy:{$q:g}}=h,w=r.ref(null),x=r.ref(!1),v=r.computed(()=>qi(t.anchor,g.lang.rtl)),C=r.computed(()=>qi(t.self,g.lang.rtl)),E=r.computed(()=>t.persistent!==!0),{registerTick:b,removeTick:T}=al(),{registerTimeout:U}=Mr(),{transitionProps:R,transitionStyle:G}=ll(t),{localScrollTarget:F,changeScrollEvent:N,unconfigureScrollTarget:Y}=hs(t,ge),{anchorEl:z,canShow:j,anchorEvents:W}=ds({showing:x,configureAnchorEl:se}),{show:oe,hide:V}=il({showing:x,canShow:j,handleShow:te,handleHide:P,hideOnRouteChange:E,processOnMount:!0});Object.assign(W,{delayShow:ce,delayHide:K});const{showPortal:D,hidePortal:Q,renderPortal:A}=ol(h,w,O,"tooltip");if(g.platform.is.mobile===!0){const Z={anchorEl:z,innerRef:w,onClickOutside(fe){return V(fe),fe.target.classList.contains("q-dialog__backdrop")&&We(fe),!0}},pe=r.computed(()=>t.modelValue===null&&t.persistent!==!0&&x.value===!0);r.watch(pe,fe=>{(fe===!0?ws:Mi)(Z)}),r.onBeforeUnmount(()=>{Mi(Z)})}function te(Z){D(),b(()=>{c=new MutationObserver(()=>le()),c.observe(w.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),le(),ge()}),s===void 0&&(s=r.watch(()=>g.screen.width+"|"+g.screen.height+"|"+t.self+"|"+t.anchor+"|"+g.lang.rtl,le)),U(()=>{D(!0),o("show",Z)},t.transitionDuration)}function P(Z){T(),Q(),ae(),U(()=>{Q(!0),o("hide",Z)},t.transitionDuration)}function ae(){c!==void 0&&(c.disconnect(),c=void 0),s!==void 0&&(s(),s=void 0),Y(),wi(W,"tooltipTemp")}function le(){cl({targetEl:w.value,offset:t.offset,anchorEl:z.value,anchorOrigin:v.value,selfOrigin:C.value,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function ce(Z){if(g.platform.is.mobile===!0){tl(),document.body.classList.add("non-selectable");const pe=z.value,fe=["touchmove","touchcancel","touchend","click"].map(H=>[pe,H,"delayHide","passiveCapture"]);Lr(W,"tooltipTemp",fe)}U(()=>{oe(Z)},t.delay)}function K(Z){g.platform.is.mobile===!0&&(wi(W,"tooltipTemp"),tl(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),U(()=>{V(Z)},t.hideDelay)}function se(){if(t.noParentEvent===!0||z.value===null)return;const Z=g.platform.is.mobile===!0?[[z.value,"touchstart","delayShow","passive"]]:[[z.value,"mouseenter","delayShow","passive"],[z.value,"mouseleave","delayHide","passive"]];Lr(W,"anchor",Z)}function ge(){if(z.value!==null||t.scrollTarget!==void 0){F.value=ps(z.value,t.scrollTarget);const Z=t.noParentEvent===!0?le:V;N(F.value,Z)}}function B(){return x.value===!0?r.h("div",{...u,ref:w,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",u.class],style:[u.style,G.value],role:"tooltip"},ct(l.default)):null}function O(){return r.h(r.Transition,R.value,B)}return r.onBeforeUnmount(ae),Object.assign(h.proxy,{updatePosition:le}),A}}),Rg={class:"section"},Ig={class:"no-print"},Mg={class:"add-btn"},Lg={key:0,contenteditable:""},qg={key:1,contenteditable:""},Vg={key:2,class:"p-container"},Pg={contenteditable:""},Ng={class:"remove-btn no-print"},Dg=ft(r.defineComponent({__name:"TextSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{data:o}=Di(l.id,{}),u=r.computed(()=>{var w,x;return((x=(w=l.content)==null?void 0:w.lines)==null?void 0:x.map(v=>({...v,text:c(o.value,v.text)})))||[]}),s=r.ref([]);r.watch(u,w=>{s.value=Ve.cloneDeep(w)},{deep:!0,immediate:!0});function c(w,x){const v=x.match(/{{(.*?)}}/g);return v?v.reduce((C,E)=>{const b=E.replace(/{{|}}/g,""),T=Us(w,b);return C.replace(E,T??b)},x):x}const h=()=>{const w=s.value.length,x={type:st.TextLineType.PARAGRAPH,text:"Párrafo "+w};s.value.push(x)},g=w=>{s.value.splice(w,1)};return(w,x)=>{var v;return r.openBlock(),r.createElementBlock("div",Rg,[r.createElementVNode("div",Ig,[r.createElementVNode("div",Mg,[r.createVNode(_n,{size:"sm",round:"",color:"black",onClick:h,icon:"add"},{default:r.withCtx(()=>[r.createVNode(zs,null,{default:r.withCtx(()=>[r.createTextVNode("Agregar párrafo")]),_:1})]),_:1})])]),r.createElementVNode("div",{style:r.normalizeStyle(((v=w.styles)==null?void 0:v.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,({type:C,text:E,align:b},T)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({textAlign:b||"left"})},[C==="title"?(r.openBlock(),r.createElementBlock("h1",Lg,r.toDisplayString(E),1)):r.createCommentVNode("",!0),C==="subtitle"?(r.openBlock(),r.createElementBlock("h2",qg,r.toDisplayString(E),1)):r.createCommentVNode("",!0),C==="paragraph"?(r.openBlock(),r.createElementBlock("div",Vg,[r.createElementVNode("p",Pg,r.toDisplayString(E),1),r.createElementVNode("div",Ng,[r.createVNode(_n,{size:"sm",r:"",round:"",color:"black",onClick:U=>g(T),icon:"delete"},{default:r.withCtx(()=>[r.createVNode(zs,null,{default:r.withCtx(()=>[r.createTextVNode("Eliminar párrafo")]),_:1})]),_:2},1032,["onClick"])])])):r.createCommentVNode("",!0)],4))),256))],4)])}}}),[["__scopeId","data-v-8180dcbb"]]),$g=r.defineComponent({__name:"SectionWrapper",props:{section:{}},setup(t){const l=t,o={[st.LayoutSectionType.TEXT]:Dg,[st.LayoutSectionType.IMAGE]:Og,[st.LayoutSectionType.TABLE]:Bg,[st.LayoutSectionType.CARDS_GRID]:Eg},u=r.computed(()=>l.section.type),s=r.computed(()=>({content:l.section.content,styles:l.section.styles,id:l.section.idDocLaySection}));return(c,h)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o[u.value]),r.normalizeProps(r.guardReactiveProps(s.value)),null,16))}}),Hs=ft(r.defineComponent({__name:"SectionsContainer",props:{layout:{},data:{},htmlNodes:{}},setup(t){var h;const l=t,{layout:o,data:u}=r.toRefs(l);r.provide("data",u);const s=r.computed(()=>{var w;const g=o.value.sections.map(x=>({type:"default",section:x}));return(w=l.htmlNodes)==null||w.forEach(({index:x,element:v})=>{const C=x>g.length?g.length:x;g.splice(C,0,{type:"html",section:v})}),g}),c=((h=o.value.styles)==null?void 0:h.cssRaw)||"";return(g,w)=>(r.openBlock(),r.createElementBlock("div",{class:"sections-container",style:r.normalizeStyle(r.unref(c))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,({type:x,section:v})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[x==="default"?(r.openBlock(),r.createBlock($g,{key:0,section:v},null,8,["section"])):(r.openBlock(),r.createBlock(_g,{key:1,section:v},null,8,["section"]))],64))),256))],4))}}),[["__scopeId","data-v-11c6be6b"]]),Fg={install(t,l){if(l!=null&&l.pinia)t.use(l.pinia);else throw new Error("No se ha encontrado una instancia de pinia");t.component("DynamicForm",$s),t.component("TestUi",Fs),t.component("SectionsContainer",Hs)}};Nt.DynamicForm=$s,Nt.SectionsContainer=Hs,Nt.TestUi=Fs,Nt.default=Fg,Object.defineProperties(Nt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});