@win2win/shared-ui 0.1.24 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/pdf/SectionsContainer.vue.d.ts +2 -0
- package/dist/components/pdf/SectionsContainer.vue.d.ts.map +1 -1
- package/dist/components/pdf/sections/TextSection.vue.d.ts.map +1 -1
- package/dist/stores/useFormStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/w2w-shared-ui.js +2163 -2159
- package/dist/w2w-shared-ui.umd.cjs +4 -4
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
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,
|
|
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,hd){"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
|
-
*/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={"&":"&","<":"<",">":">",'"':""","'":"'"},cp={"&":"&","<":"<",">":">",""":'"',"'":"'"},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)&<(e)==fe}function Fv(e){return Ue(e)&<(e)==nn}function Uv(e){return Ue(e)&<(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)&<(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,`{
|
|
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__",C=500,v="__lodash_placeholder__",x=1,E=2,_=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,b=/($^)/,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",Hs="A-Z\\xc0-\\xd6\\xd8-\\xde",Ws="\\ufe0e\\ufe0f",Gs=Ug+zg+Hg+Wg,Ol="['’]",Gg="["+J+"]",Ks="["+Gs+"]",Zi="["+Ke+"]",js="\\d+",Kg="["+Pe+"]",Ys="["+vr+"]",Qs="[^"+J+Gs+js+Pe+vr+Hs+"]",Tl="\\ud83c[\\udffb-\\udfff]",jg="(?:"+Zi+"|"+Tl+")",Zs="[^"+J+"]",Bl="(?:\\ud83c[\\udde6-\\uddff]){2}",Rl="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="["+Hs+"]",Xs="\\u200d",Js="(?:"+Ys+"|"+Qs+")",Yg="(?:"+_r+"|"+Qs+")",ec="(?:"+Ol+"(?:d|ll|m|re|s|t|ve))?",tc="(?:"+Ol+"(?:D|LL|M|RE|S|T|VE))?",nc=jg+"?",rc="["+Ws+"]?",Qg="(?:"+Xs+"(?:"+[Zs,Bl,Rl].join("|")+")"+rc+nc+")*",Zg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ic=rc+nc+Qg,Jg="(?:"+[Kg,Bl,Rl].join("|")+")"+ic,ep="(?:"+[Zs+Zi+"?",Zi,Bl,Rl,Gg].join("|")+")",tp=RegExp(Ol,"g"),np=RegExp(Zi,"g"),Il=RegExp(Tl+"(?="+Tl+")|"+ep+ic,"g"),rp=RegExp([_r+"?"+Ys+"+"+ec+"(?="+[Ks,_r,"$"].join("|")+")",Yg+"+"+tc+"(?="+[Ks,_r+Js,"$"].join("|")+")",_r+"?"+Js+"+"+ec,_r+"+"+tc,Xg,Zg,js,Jg].join("|"),"g"),ip=RegExp("["+Xs+J+Ke+Ws+"]"),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={"&":"&","<":"<",">":">",'"':""","'":"'"},cp={"&":"&","<":"<",">":">",""":'"',"'":"'"},fp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dp=parseFloat,hp=parseInt,oc=typeof xe=="object"&&xe&&xe.Object===Object&&xe,mp=typeof self=="object"&&self&&self.Object===Object&&self,et=oc||mp||Function("return this")(),Ml=l&&!l.nodeType&&l,Gn=Ml&&!0&&t&&!t.nodeType&&t,lc=Gn&&Gn.exports===Ml,Ll=lc&&oc.process,Bt=function(){try{var S=Gn&&Gn.require&&Gn.require("util").types;return S||Ll&&Ll.binding&&Ll.binding("util")}catch{}}(),ac=Bt&&Bt.isArrayBuffer,uc=Bt&&Bt.isDate,sc=Bt&&Bt.isMap,cc=Bt&&Bt.isRegExp,fc=Bt&&Bt.isSet,dc=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 hc(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 mc(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,gc,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 gc(S){return S!==S}function pc(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 vc(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 _c(S){return S&&S.slice(0,Sc(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 bc(S,M){for(var I=-1,ie=S.length;++I<ie&&br(M,S[I],0)>-1;);return I}function yc(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 wc(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 Sc(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,xc=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=lc?M.Buffer:o,On=M.Symbol,lo=M.Uint8Array,Cc=oo?oo.allocUnsafe:o,ao=wc(Me.getPrototypeOf,Me),kc=Me.create,Ec=xr.propertyIsEnumerable,uo=to.splice,Ac=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,Oc=M.isFinite,Yp=to.join,Qp=wc(Me.keys,Me),Ze=Qe.max,rt=Qe.min,Zp=ie.now,Xp=M.parseInt,Tc=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,Bc=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 If(e)}return new Mt(e)}var Er=function(){function e(){}return function(n){if(!$e(n))return{};if(kc)return kc(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 ef(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 Rc(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 Ic(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 Mc(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&x,k=n&E,L=n&_;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 rf(e,y);if($==ht||$==fe||ee&&!f){if(p=k||ee?{}:xf(e),!y)return k?c0(e,Mv(p,e)):s0(e,Mc(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),Xf(e)?e.forEach(function(me){p.add(Lt(me,n,i,me,e,m))}):Qf(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 Lc(i,e,n)}}function Lc(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 qc(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=sf(Zt),Vc=sf(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:ed(a);i<a;)e[i++]=n;return e}function Pc(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=cf(),Nc=cf(!0);function Zt(e,n){return e&&Ql(e,n,Xe)}function Zl(e,n){return e&&Nc(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 Dc(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=Af(e,n);var a=e==null?e:e[Jt(Vt(n))];return a==null?o:St(a,e,i)}function $c(e){return Ue(e)&<(e)==fe}function Fv(e){return Ue(e)&<(e)==nn}function Uv(e){return Ue(e)&<(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)?yf(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 Fc(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)&<(e)==Ut}function Gv(e){return Ue(e)&&it(e)==Fe}function Kv(e){return Ue(e)&&qo(e.length)&&!!qe[lt(e)]}function Uc(e){return typeof e=="function"?e:e==null?vt:typeof e=="object"?be(e)?Wc(e[0],e[1]):Hc(e):fd(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 zc(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 Hc(e){var n=va(e);return n.length==1&&n[0][2]?kf(n[0][0],n[0][1]):function(i){return i===e||ea(i,e,n)}}function Wc(e,n){return ba(e)&&Cf(n)?kf(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=rf(k,!0)):he?($=!1,q=of(k,!0)):q=[]:ui(k)||er(k)?(q=y,er(y)?q=td(y):(!$e(y)||dn(y))&&(q=xf(k))):$=!1}$&&(p.set(k,q),f(q,k,a,m,p),p.delete(k)),jl(e,i,q)}function Gc(e,n){var i=e.length;if(i)return n+=n<0?i:0,fn(n,i)?e[n]:o}function Kc(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=zc(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 jc(e,n,function(i,a){return Ba(e,a)})}function jc(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 Yc(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(Tc()*(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(Ef(e,n,vt),e+"")}function Jv(e){return Ic(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 Qc=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 Zc(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 Xc(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 Bc?Bc.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=Af(e,n),e==null||delete e[Jt(Vt(n))]}function Jc(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 ef(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 tf(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]:Rf(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 nf=Wp||function(e){return et.clearTimeout(e)};function rf(e,n){if(n)return e.slice();var i=e.length,a=Cc?Cc(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 of(e,n){var i=n?fa(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function lf(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=lf(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 af(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 uf(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,wf(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 sf(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 cf(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 ff(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(sd(ud(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 pf(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 df(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 hf(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=af(Ee,a,f,ue)),m&&(Ee=uf(Ee,m,p,ue)),Ce-=At,ue&&Ce<L){var He=An(Ee,ut);return pf(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 mf(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=Xc(i),a=Xc(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 gf(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 pf(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)&&Of(me,we),me.placeholder=a,Tf(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&&Oc(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 vf(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?Qc:Of;return Tf(we(he,ue),e,n)}function _f(e,n,i,a){return e===o||Kt(e,xr[i])&&!Re.call(a,i)?n:e}function bf(e,n,i,a,f,m){return $e(e)&&$e(n)&&(m.set(n,e),bo(e,n,o,bf,m),m.delete(n)),e}function g0(e){return ui(e)?o:e}function yf(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=yf(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(Ef(e,o,qf),e+"")}function ma(e){return Dc(e,Xe,_a)}function ga(e){return Dc(e,pt,wf)}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?Uc: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,Cf(f)]}return n}function Xn(e,n){var i=Op(e,n);return Fc(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 Ec.call(e,n)}))}:Va,wf=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 Sf(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 xf(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 of(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 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)&>(e)}function Lb(e){return e===!0||e===!1||Ue(e)&<(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)&<(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)&<(e)==Ye}function kt(e){return typeof e=="symbol"||Ue(e)&<(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)&<(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+"]")+`
|
|
10
|
+
`)}function C0(e){return be(e)||er(e)||!!(Ac&&e&&e[Ac])}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!!xc&&xc 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 Cf(e){return e===e&&!$e(e)}function kf(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===C&&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?af(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?uf(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 Ef(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 Af(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 Of=Bf(Qc),ai=Kp||function(e,n){return et.setTimeout(e,n)},Sa=Bf(t0);function Tf(e,n,i){var a=n+"";return Sa(e,x0(a,M0(y0(a),i)))}function Bf(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 Rf=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 If(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 Mf(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 Lf(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 qf(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 Vf(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,gc,f,!0)}function t_(e,n){return e&&e.length?Gc(e,ye(n)):o}var n_=Se(Pf);function Pf(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 Yc(e,Ne(n,function(f){return fn(f,i)?+f:f}).sort(lf)),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 Yc(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?Zc(e):[]}function g_(e,n){return e&&e.length?Zc(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 Nf(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 tf(e||[],n||[],ei)}function M_(e,n){return tf(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,Nf(e,i)});function Df(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 Df(this)}function N_(){return new Mt(this.value(),this.__chain__)}function D_(){this.__values__===o&&(this.__values__=Jf(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=If(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 ef(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)?hc:qv;return i&&at(e,n,i)&&(n=o),a(e,de(n,3))}function G_(e,n){var i=be(e)?kn:Pc;return i(e,de(n,3))}var K_=df(Mf),j_=df(Lf);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 $f(e,n){var i=be(e)?Rt:Tn;return i(e,de(n,3))}function Ff(e,n){var i=be(e)?pp:Vc;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:zc;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]),Kc(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:vc,f=arguments.length<3;return a(e,de(n,4),i,f,Tn)}function ob(e,n,i){var a=be(e)?vp:vc,f=arguments.length<3;return a(e,de(n,4),i,f,Vc)}function lb(e,n){var i=be(e)?kn:Pc;return i(e,Lo(de(n,3)))}function ab(e){var n=be(e)?Ic: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]]),Kc(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 Uf(e,n,i){return n=i?o:n,n=e&&n==null?e.length:n,sn(e,W,o,o,o,o,n)}function zf(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)}),Hf=Se(function(e,n,i){var a=R|G;if(i.length){var f=An(i,Tr(Hf));a|=z}return sn(n,a,e,i,f)});function Wf(e,n,i){n=i?o:n;var a=sn(e,N,o,o,o,o,o,n);return a.placeholder=Wf.placeholder,a}function Gf(e,n,i){n=i?o:n;var a=sn(e,Y,o,o,o,o,o,n);return a.placeholder=Gf.placeholder,a}function Kf(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,dd=n-jt;return $?rt(dd,m-mn):dd}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&&nf(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 nf(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 qc(e,1,n)}),gb=Se(function(e,n,i){return qc(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 zf(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)}),jf=Se(function(e,n){var i=An(n,Tr(jf));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),Kf(e,n,{leading:a,maxWait:n,trailing:f})}function xb(e){return Uf(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,_)}function Ab(e,n){return n=typeof n=="function"?n:o,Lt(e,_,n)}function Ob(e){return Lt(e,x|_)}function Tb(e,n){return n=typeof n=="function"?n:o,Lt(e,x|_,n)}function Bb(e,n){return n==null||Lc(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=$c(function(){return arguments}())?$c:function(e){return Ue(e)&&Re.call(e,"callee")&&!Ec.call(e,"callee")},be=I.isArray,Mb=ac?xt(ac):Fv;function gt(e){return e!=null&&qo(e.length)&&!dn(e)}function ze(e){return Ue(e)&>(e)}function Lb(e){return e===!0||e===!1||Ue(e)&<(e)==Ae}var Mn=jp||Pa,qb=uc?xt(uc):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"&&Oc(e)}function dn(e){if(!$e(e))return!1;var n=lt(e);return n==Ft||n==yt||n==re||n==Ur}function Yf(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 Qf=sc?xt(sc):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 Zf(e)&&e!=+e}function Hb(e){if(A0(e))throw new _e(c);return Fc(e)}function Wb(e){return e===null}function Gb(e){return e==null}function Zf(e){return typeof e=="number"||Ue(e)&<(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=cc?xt(cc):Wv;function Kb(e){return Yf(e)&&e>=-K&&e<=K}var Xf=fc?xt(fc):Gv;function Vo(e){return typeof e=="string"||!be(e)&&Ue(e)&<(e)==Ye}function kt(e){return typeof e=="symbol"||Ue(e)&<(e)==zt}var Br=dc?xt(dc):Kv;function jb(e){return e===o}function Yb(e){return Ue(e)&&it(e)==Fn}function Qb(e){return Ue(e)&<(e)==$i}var Zb=Eo(na),Xb=Eo(function(e,n){return e<=n});function Jf(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 ed(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=_c(e);var i=Al.test(e);return i||ji.test(e)?hp(e.slice(2),i?2:8):Kr.test(e)?ge:+e}function td(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])}),nd=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:Mc(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,bf),St(rd,o,e)});function ly(e,n){return mc(e,de(n,3),Zt)}function ay(e,n){return mc(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:Nc(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&&Sf(e,n,Pv)}function Ba(e,n){return e!=null&&Sf(e,n,Nv)}var gy=mf(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=io.call(n)),e[n]=i},Ia(vt)),py=mf(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)?Rc(e):ta(e)}function pt(e){return gt(e)?Rc(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)}),rd=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,x|E|_,g0));for(var f=n.length;f--;)aa(i,n[f]);return i});function Sy(e,n){return id(e,Lo(de(n)))}var xy=cn(function(e,n){return e==null?{}:Qv(e,n)});function id(e,n){if(e==null)return{};var i=Ne(ga(e),function(a){return[a]});return n=de(n),jc(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 od=vf(Xe),ld=vf(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:Jc(e,n,ca(i))}function By(e,n,i,a){return a=typeof a=="function"?a:o,e==null?e:Jc(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=Tc();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?ad(n):n)});function ad(e){return Ra(Te(e).toLowerCase())}function ud(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=ff("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,_f);var f=Po({},n.imports,a.imports,_f),m=Xe(f),p=Ul(f,m),y,k,L=0,q=n.interpolate||b,$="__p += '",ee=Hl((n.escape||b).source+"|"+q.source+"|"+(q===Hn?rn:b).source+"|"+(n.evaluate||b).source+"|$","g"),ue="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ap+"]")+`
|
|
11
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
13
|
'`),ut&&(k=!0,$+=`';
|
|
@@ -24,4 +24,4 @@ __p += '`),Ee&&($+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
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"}})});
|
|
27
|
+
}`;var we=cd(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 _c(e);if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=Wt(n),m=bc(a,f),p=yc(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,Sc(e)+1);if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=yc(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=bc(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=ff("toUpperCase");function sd(e,n,i){return e=Te(e),n=i?o:n,n===o?Tp(e)?Pp(e):yp(e):e.match(n)||[]}var cd=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,x))}function Ia(e){return function(){return e}}function cw(e,n){return e==null||e!==e?n:e}var fw=hf(),dw=hf(!0);function vt(e){return e}function Ma(e){return Uc(typeof e=="function"?e:Lt(e,x))}function hw(e){return Hc(Lt(e,x))}function mw(e,n){return Wc(e,Lt(n,x))}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 Gc(n,e)})}var bw=da(Ne),yw=da(hc),ww=da(Pl);function fd(e){return ba(e)?Nl(Jt(e)):Zv(e)}function Sw(e){return function(n){return e==null?o:Zn(e,n)}}var xw=gf(),Cw=gf(!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(Rf(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 pc(e,vt)}function Nw(e,n){return pc(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=Uf,d.assign=ey,d.assignIn=nd,d.assignInWith=Po,d.assignWith=ty,d.at=ny,d.before=zf,d.bind=ka,d.bindAll=aw,d.bindKey=Hf,d.castArray=kb,d.chain=Df,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=Wf,d.curryRight=Gf,d.debounce=Kf,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=qf,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=rd,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=jf,d.partition=rb,d.pick=xy,d.pickBy=id,d.property=fd,d.propertyOf=Sw,d.pull=n_,d.pullAll=Pf,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=Jf,d.toPairs=od,d.toPairsIn=ld,d.toPath=Tw,d.toPlainObject=td,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=Nf,d.update=Ty,d.updateWith=By,d.values=Rr,d.valuesIn=Ry,d.without=A_,d.words=sd,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=od,d.entriesIn=ld,d.extend=nd,d.extendWith=Po,La(d,d),d.add=Rw,d.attempt=cd,d.camelCase=qy,d.capitalize=ad,d.ceil=Iw,d.clamp=Iy,d.clone=Eb,d.cloneDeep=Ob,d.cloneDeepWith=Tb,d.cloneWith=Ab,d.conformsTo=Bb,d.deburr=ud,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=Mf,d.findKey=ly,d.findLast=j_,d.findLastIndex=Lf,d.findLastKey=ay,d.floor=Lw,d.forEach=$f,d.forEachRight=Ff,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=Vf,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=Yf,d.isLength=qo,d.isMap=Qf,d.isMatch=Fb,d.isMatchWith=Ub,d.isNaN=zb,d.isNative=Hb,d.isNil=Gb,d.isNull=Wb,d.isNumber=Zf,d.isObject=$e,d.isObjectLike=Ue,d.isPlainObject=ui,d.isRegExp=Oa,d.isSafeInteger=Kb,d.isSet=Xf,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=ed,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=$f,d.eachRight=Ff,d.first=Vf,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={},Na={},tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.EstadoCaptacion=tr.TipoCaptacion=void 0;var Da;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5"})(Da||(tr.TipoCaptacion=Da={}));var $a;(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"})($a||(tr.EstadoCaptacion=$a={}));var ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.TipoGarantia=void 0;var Fa;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(Fa||(ci.TipoGarantia=Fa={}));var fi={};Object.defineProperty(fi,"__esModule",{value:!0}),fi.TipoImportacion=void 0;var Ua;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(Ua||(fi.TipoImportacion=Ua={}));var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.TipoLiquidacionReclamo=gn.EstadoLiquidacionReclamo=gn.EstadoLiquidacion=void 0;var za;(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"})(za||(gn.EstadoLiquidacion=za={}));var Ha;(function(t){t[t.ACTIVO=1]="ACTIVO",t[t.APROBADO=2]="APROBADO",t[t.NEGADO=3]="NEGADO"})(Ha||(gn.EstadoLiquidacionReclamo=Ha={}));var Wa;(function(t){t[t.ITEM=1]="ITEM",t[t.COBRO=2]="COBRO"})(Wa||(gn.TipoLiquidacionReclamo=Wa={}));var di={};Object.defineProperty(di,"__esModule",{value:!0}),di.TipoNotificacion=void 0;var Ga;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(Ga||(di.TipoNotificacion=Ga={}));var hi={};Object.defineProperty(hi,"__esModule",{value:!0}),hi.EstadoPedido=void 0;var Ka;(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"})(Ka||(hi.EstadoPedido=Ka={}));var nr={};Object.defineProperty(nr,"__esModule",{value:!0}),nr.TipoProducto=nr.EstadoProducto=void 0;var ja;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(ja||(nr.EstadoProducto=ja={}));var Ya;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(Ya||(nr.TipoProducto=Ya={}));var mi={};Object.defineProperty(mi,"__esModule",{value:!0}),mi.EstadoBase=void 0;var Qa;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(Qa||(mi.EstadoBase=Qa={})),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)}(Na);var Za={},Xa={},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)}(Xa);var Ja={},pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.LAYOUT_SECTION_TYPES=pn.LayoutSectionType=pn.TextLineType=void 0;var eu;(function(t){t.TITLE="title",t.SUBTITLE="subtitle",t.PARAGRAPH="paragraph"})(eu||(pn.TextLineType=eu={}));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)}(Ja);var tu={},pi={};Object.defineProperty(pi,"__esModule",{value:!0}),pi.TipoComision=void 0;var nu;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(nu||(pi.TipoComision=nu={}));var ru={};Object.defineProperty(ru,"__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(ru,t),o(Ot,t)}(tu);var iu={},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 ou;(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"})(ou||(ir.ControlType=ou={}));var lu={};Object.defineProperty(lu,"__esModule",{value:!0});var au={};Object.defineProperty(au,"__esModule",{value:!0});var uu={};(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}))})(uu);var su={};Object.defineProperty(su,"__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(lu,t),o(au,t),o(uu,t),o(su,t)}(iu);var cu={},fu={};Object.defineProperty(fu,"__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(fu,t)}(cu),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(Xa,t),o(Ja,t),o(tu,t),o(iu,t),o(cu,t)}(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(Na,t),o(Za,t)}(st);const No=[st.ControlType.DYNAMIC_ARRAY,st.ControlType.OBJECT],md={maxControlsPerGroup:1,notifyValidations:!0},du={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=>hu(l,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>l=>hu(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 hu(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=du[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"?mu(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=mu({...t,title:`${t.title} ${g+1}`},{...l,value:(h=l.value)==null?void 0:h[g]},o);w.forEach(C=>{C.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...w)}return u}function mu(t,l,o){const u=l.structure;return Ve.chunk(u,o).map(c=>({...t,controls:gu(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:gu(l.controls)}))}function gu(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""}}const or=hd.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 pu{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,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(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 vu="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}}),vu===!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 _u=navigator.userAgent||navigator.vendor||window.opera,Ed={has:{touch:!1,webStorage:!1},within:{iframe:!1}},_t={userAgent:_u,is:kd(_u),has:{touch:vu},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 bu(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 yu={threshold:0,root:null,rootMargin:"0px"};function wu(t,l,o){let u,s,c;typeof o=="function"?(u=o,s=yu,c=l.cfg===void 0):(u=o.handler,s=Object.assign({},yu,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)&&Su(t)}},s),l.observer.observe(t))}function Su(t){const l=t.__qvisible;l!==void 0&&(l.observer!==void 0&&l.observer.unobserve(t),delete t.__qvisible)}const Ad=bu({name:"intersection",mounted(t,{modifiers:l,value:o}){const u={once:l.once===!0};wu(t,u,o),t.__qvisible=u},updated(t,l){const o=t.__qvisible;o!==void 0&&wu(t,o,l.value)},beforeUnmount:Su});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 xu(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 C(){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},C)]:C();return xu(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 Cu(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:C}=Mr(),v=r.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),x=r.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),E=[r.ref(null),r.ref(v.value)],_=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(C(),t.loadingShowDelay===0){T.value=!0;return}w(()=>{T.value=!0},t.loadingShowDelay)}function z(){C(),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&&(_.value=_.value^1,E[_.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[_.value].value=x.value,E[_.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 _.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[_.value^1].value=v.value):Y(),E[_.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)}}}),ku="0 0 24 24",Eu=t=>t,Ho=t=>`ionicons ${t}`,Au={"mdi-":t=>`mdi ${t}`,"icon-":Eu,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Ho,"ion-ios":Ho,"ion-logo":Ho,"iconfont ":Eu,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},Ou={o_:"-outlined",r_:"-round",s_:"-sharp"},Tu={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Vd=new RegExp("^("+Object.keys(Au).join("|")+")"),Pd=new RegExp("^("+Object.keys(Ou).join("|")+")"),Bu=new RegExp("^("+Object.keys(Tu).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,x=ku]=g.split("|");return{svg:!0,viewBox:x,nodes:v.split("&&").map(E=>{const[_,T,U]=E.split("@@");return r.h("path",{style:T,d:_,transform:U})})}}if(Dd.test(g)===!0)return{img:!0,src:g.substring(4)};if($d.test(g)===!0){const[v,x=ku]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:x}}let w=" ";const C=g.match(Vd);if(C!==null)h=Au[C[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(Bu.test(g)===!0){h="notranslate material-symbols";const v=g.match(Bu);v!==null&&(g=g.substring(6),h+=Tu[v[1]]),w=g}else{h="notranslate material-icons";const v=g.match(Pd);v!==null&&(g=g.substring(2),h+=Ou[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(C=>{var v,x;return!((x=(v=u.value.options)==null?void 0:v.find(E=>E.value===C))!=null&&x.exclusive)}),w.includes(g.value)?w=w.filter(C=>C!==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 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",zd,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).options,(v,x)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:x},[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 Ru(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 Iu(t){return t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]?t=t.changedTouches[0]:t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),{top:t.clientY,left:t.clientX}}function 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 Mu={...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]},Lu=["update:modelValue"];function qu(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:C,refocusTarget:v}=Qd(o,w),x=yi(o,Xd),E=r.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),_=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?_.value!==-1:r.toRaw(o.modelValue)===r.toRaw(o.trueValue)),U=r.computed(()=>E.value===!0?_.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(_.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:x.value,"aria-hidden":"true"},A)];C.value!==null&&te.push(C.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"})])]),Vu=je({name:"QCheckbox",props:Mu,emits:Lu,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 qu("checkbox",l)}}),Pu=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(Vu,{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:{...Mu,icon:String,iconColor:String},emits:Lu,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 qu("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}})(),Nu=4096;function Ko(){(Go===void 0||Si+16>Nu)&&(Si=0,Go=ih(Nu));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 Du(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=Du(u,l)}),o}return t!==void 0?r.computed(()=>Du(t(),l)):r.ref(`f_${Ko()}`)}const $u=/^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"&&$u.test(h)===!1&&(s[h]=t[h]);for(const h in l.props)$u.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 Fu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Uu=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,zu=/^#([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=>Fu.test(t),hexaColor:t=>Uu.test(t),hexOrHexaColor:t=>zu.test(t),rgbColor:t=>xi.test(t),rgbaColor:t=>Ci.test(t),rgbOrRgbaColor:t=>xi.test(t)||Ci.test(t),hexOrRgbColor:t=>Fu.test(t)||xi.test(t),hexaOrRgbaColor:t=>Uu.test(t)||Ci.test(t),anyColor:t=>zu.test(t)||xi.test(t)||Ci.test(t)};function Hu(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 C=r.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),v=r.computed(()=>o.disable!==!0&&C.value===!0&&l.value===!1),x=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 _(){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,_,{immediate:!0,deep:!0})):w!==void 0&&(w(),w=void 0)},{immediate:!0}),r.watch(()=>o.lazyRules,_),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||C.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=Hu(U,0);return r.onBeforeUnmount(()=>{w!==void 0&&w(),R.cancel()}),Object.assign(u,{resetValidation:T,validate:U}),_i(u,"hasError",()=>x.value),{isDirtyModel:h,hasRules:C,hasError:x,errorMessage:E,validate:U,resetValidation:T}}let qn=[],qr=[];function Wu(t){qr=qr.filter(l=>l!==t)}function mh(t){Wu(t),qr.push(t)}function Gu(t){Wu(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:C,hasError:v,errorMessage:x,resetValidation:E}=hh(t.focused,t.innerLoading),_=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||C.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":"")+(_.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:_.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?x.value!==null?(K=[r.h("div",{role:"alert"},x.value)],se=`q--slot-error-${x.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 Ku={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()}},ju=Object.keys(Ai);ju.forEach(t=>{Ai[t].regex=new RegExp(Ai[t].pattern)});const ph=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+ju.join("")+"])|(.)","g"),Yu=/[.*+?^${}()|[\]\\]/g,Ge="",vh={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function _h(t,l,o,u){let s,c,h,g,w,C;const v=r.ref(null),x=r.ref(_());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(x.value,!0);else{const D=W(x.value);U(),t.modelValue!==D&&l("update:modelValue",D)}}),r.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&R(x.value,!0)}),r.watch(()=>t.unmaskedValue,()=>{v.value===!0&&R(x.value)});function _(){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=Ku[t.mask]===void 0?t.mask:Ku[t.mask],D=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Q=D.replace(Yu,"\\$&"),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(Yu,"\\\\$&"),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=x.value!==ce;A.value!==ce&&(A.value=ce),K===!0&&(x.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),C=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||(C=void 0),V.keyCode===37||V.keyCode===39){V.shiftKey&&C===void 0&&(C=D.selectionDirection==="forward"?Q:A);const te=F[(V.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(V.preventDefault(),te(D,C===Q?A:Q),V.shiftKey){const P=D.selectionStart;D.setSelectionRange(Math.min(C,P),Math.max(C,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:x,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 Qu(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 Zu=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,C=null,v;const x=r.ref(null),E=Ru(t),{innerValue:_,hasMask:T,moveCursorForPaste:U,updateMaskValue:R,onMaskedKeydown:G,onMaskedClick:F}=_h(t,l,le,x),N=bh(t),Y=r.computed(()=>Vr(_.value)),z=Qu(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,()=>{x.value&&(x.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 _.value!==O&&(_.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):x.value!==null&&o.rows>0&&(x.value.style.height="auto")}),r.watch(()=>t.dense,()=>{t.autogrow===!0&&r.nextTick(ce)});function Q(){ki(()=>{const O=document.activeElement;x.value!==null&&x.value!==O&&(O===null||O.id!==j.targetUid.value)&&x.value.focus({preventScroll:!0})})}function A(){x.value!==null&&x.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=()=>{C=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?(C!==null&&clearTimeout(C),c.value=O,C=setTimeout(v,t.debounce)):v()}function ce(){requestAnimationFrame(()=>{const O=x.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),C!==null&&(clearTimeout(C),C=null),v!==void 0&&v(),l("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(()=>{x.value!==null&&(x.value.value=_.value!==void 0?_.value:"")})}function ge(){return c.hasOwnProperty("value")===!0?c.value:_.value!==void 0?_.value:""}r.onBeforeUnmount(()=>{se()}),r.onMounted(()=>{t.autogrow===!0&&ce()}),Object.assign(j,{innerValue:_,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:x,emitValue:le,hasValue:Y,floatingLabel:r.computed(()=>Y.value===!0&&(t.type!=="number"||isNaN(_.value)===!1)||Vr(t.displayValue)),getControl:()=>r.h(W.value===!0?"textarea":"input",{ref:x,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:()=>x.value}),_i(u,"nativeEl",()=>x.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 _="width: 100%; padding-left: 10px; padding-right: 10px;";return u.inputHeight&&(_+="height: "+u.inputHeight),_}),w=r.computed(()=>o.value||s.value?"17.5px":"15px"),C=r.ref(null);function v(){C.value.focus()}function x(){s.value=!0}function E(){s.value=!1}return l({focus:v}),(_,T)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Oi,{onClick:v,class:r.normalizeClass(`${c.value} row items-center ${o.value&&_.label||s.value&&_.label?"q-pt-md":""} `),style:r.normalizeStyle({minHeight:_.height,width:_.width,maxWidth:"calc(100vw - 32px)",minWidth:_.minWidth,margin:"auto"})},{default:r.withCtx(()=>[r.renderSlot(_.$slots,"fixed-label",{class:"self-start"}),r.createVNode(Zu,{modelValue:o.value,"onUpdate:modelValue":T[0]||(T[0]=U=>o.value=U),ref_key:"inputRef",ref:C,"label-color":"black","input-class":`text-black ${h.value?"":"text-center ww-title"}`,"input-style":_.inputStyle,style:r.normalizeStyle(g.value),readonly:_.readonly,mask:_.mask,prefix:_.prefix,label:h.value,type:_.type,suffix:_.suffix,counter:_.counter,maxlength:_.maxlength,rules:_.rules,borderless:"",dense:"","unmasked-value":"","reverse-fill-mask":"",placeholder:_.placeholder,onFocus:x,onBlur:E},{label:r.withCtx(()=>[!_.label||_.label!=""?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${w.value};`+_.labelStyle)},r.toDisplayString(_.label)+" "+r.toDisplayString(_.required&&!_.readonly?"*":""),5)):r.createCommentVNode("",!0)]),append:r.withCtx(()=>[r.renderSlot(_.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),r.renderSlot(_.$slots,"bottom")]),_:3},8,["class","style"]),_.hint?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`text-${_.hintOptions.position} text-${_.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},r.toDisplayString(_.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 Xu(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 Ju(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=Iu(t),{left:C,top:v,width:x,height:E}=l.getBoundingClientRect(),_=Math.sqrt(x*x+E*E),T=_/2,U=`${(x-_)/2}px`,R=c?U:`${w.left-C-T}px`,G=`${(E-_)/2}px`,F=c?G:`${w.top-v-T}px`;g.className="q-ripple__inner",el(g,{height:`${_}px`,width:`${_}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 es(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 ts=bu({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")&&Ju(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"}`&&Ju(s,t,u,!0)},300)};es(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&&es(o,l))}},beforeUnmount(t){const l=t.__qripple;l!==void 0&&(l.abort.forEach(o=>{o()}),wi(l,"main"),delete t._qripple)}}),ns={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ih=Object.keys(ns),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"}-${ns[l]}`})}function rs(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function is(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 os(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?os(t,l):Array.isArray(l)===!0?os(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 ls={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Nh={...ls,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function as({fallbackTag:t,useDisableForRouterLinkProps:l=!0}={}){const o=r.getCurrentInstance(),{props:u,proxy:s,emit:c}=o,h=Cu(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!==""),C=r.computed(()=>w.value===!0?F(u.to):null),v=r.computed(()=>C.value!==null),x=r.computed(()=>g.value===!0||v.value===!0),E=r.computed(()=>u.type==="a"||x.value===!0?"a":u.tag||t||"div"),_=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:z}=C.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(is.bind(null,W));if(V!==-1)return V;const D=rs(z[j-2]);return j>1&&rs(W)===D&&oe[oe.length-1].path!==D?oe.findIndex(is.bind(null,z[j-2])):V}),U=r.computed(()=>v.value===!0&&T.value!==-1&&qh(s.$route.params,C.value.params)),R=r.computed(()=>U.value===!0&&T.value===s.$route.matched.length-1&&Ph(s.$route.params,C.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:x,linkTag:E,resolvedLink:C,linkIsActive:U,linkIsExactActive:R,linkClass:G,linkAttrs:_,getLink:F,navigateToRouterLink:N,navigateOnClick:Y}}const us={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,...ls,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}=as({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 us?us[G]+"px":G).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),x=r.computed(()=>v.value===!0?t.tabindex||0:-1),E=r.computed(()=>zh(t,"standard")),_=r.computed(()=>{const R={tabindex:x.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${C.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:_,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:C,navigateOnClick:v,isActionable:x}=Wh(t),E=r.ref(null),_=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(x.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=_.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=>{x.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:_})];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(C.value,j.value,ae),[[ts,F.value,void 0,N.value]])}}}),ss=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=ss(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Qh={key:1},Zh=ss(()=>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),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":"")}),x=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&&_(R)}function _(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=[];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 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,...x.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,x.value.chip,{onClick:_,onKeyup:E}),xu("div",R,U(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[ts,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:C}=as(),v=r.ref(null),x=r.ref(null),E=r.computed(()=>t.clickable===!0||c.value===!0||t.tag==="label"),_=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":"")+(_.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){_.value===!0&&(x.value!==null&&(N.qKeyEvent!==!0&&document.activeElement===v.value?x.value.focus():document.activeElement===x.value&&v.value.focus()),C(N))}function G(N){if(_.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 _.value===!0&&N.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:x})),N}return()=>{const N={ref:v,class:T.value,style:U.value,role:"listitem",onClick:R,onKeyup:G};return _.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 cs={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},om={...cs,contextMenu:Boolean};function fs({showing:t,avoidEmit:l,configureAnchorEl:o}){const{props:u,proxy:s,emit:c}=r.getCurrentInstance(),h=r.ref(null);let g=null;function w(_){return h.value===null?!1:_===void 0||_.touches===void 0||_.touches.length<=1}const C={};o===void 0&&(Object.assign(C,{hide(_){s.hide(_)},toggle(_){s.toggle(_),_.qAnchorHandled=!0},toggleKey(_){Vn(_,13)===!0&&C.toggle(_)},contextClick(_){s.hide(_),Dt(_),r.nextTick(()=>{s.show(_),_.qAnchorHandled=!0})},prevent:Dt,mobileTouch(_){if(C.mobileCleanup(_),w(_)!==!0)return;s.hide(_),h.value.classList.add("non-selectable");const T=_.target;Lr(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(_),_.qAnchorHandled=!0},300)},mobileCleanup(_){h.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),t.value===!0&&_!==void 0&&tl()}}),o=function(_=u.contextMenu){if(u.noParentEvent===!0||h.value===null)return;let T;_===!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(C,"anchor",T)});function v(){wi(C,"anchor")}function x(_){for(h.value=_;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)x(s.$el.parentNode);else{let _=u.target;if(typeof u.target=="string")try{_=document.querySelector(u.target)}catch{_=void 0}_!=null?(h.value=_.$el||_,o()):(h.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return r.watch(()=>u.contextMenu,_=>{h.value!==null&&(v(),o(_))}),r.watch(()=>u.target,()=>{h.value!==null&&v(),E()}),r.watch(()=>u.noParentEvent,_=>{h.value!==null&&(_===!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:C}}function ds(t,l){const o=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,dt.passive),window[C]("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:C}=h;let v;function x(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)&&_(F)}function _(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?_:U)(v)}r.watch(()=>g.modelValue,R),o!==void 0&&Cu(h)===!0&&r.watch(()=>C.$route.fullPath,()=>{o.value===!0&&t.value===!0&&T()}),c===!0&&r.onMounted(()=>{R(g.modelValue)});const G={show:E,hide:T,toggle:x};return Object.assign(C,G),G}const hs={};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,hs.globalNodes!==void 0){const u=hs.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 C(x){if(x===!0){Gu(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(x){if(c.value=!1,x!==!0)return;Gu(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:C,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 ms=[Element,String],hm=[null,document,document.body,document.scrollingElement,document.documentElement];function gs(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 ps(t){window[t]("keydown",_m),window[t]("blur",bm),window[t]("keyup",ym),fr=!1}function vs(t){_t.is.desktop===!0&&(Pn.push(t),Pn.length===1&&ps("addEventListener"))}function Bi(t){const l=Pn.indexOf(t);l!==-1&&(Pn.splice(l,1),Pn.length===0&&ps("removeEventListener"))}const Nn=[];function _s(t){Nn[Nn.length-1](t)}function bs(t){_t.is.desktop===!0&&(Nn.push(t),Nn.length===1&&document.body.addEventListener("focusin",_s))}function ul(t){const l=Nn.indexOf(t);l!==-1&&(Nn.splice(l,1),Nn.length===0&&document.body.removeEventListener("focusin",_s))}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 ys(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 ws,Ss;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 xs(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 Cs(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:C,maxHeight:v,maxWidth:x}=t;if(_t.is.ios===!0&&window.visualViewport!==void 0){const j=document.body.style,{offsetLeft:W,offsetTop:oe}=window.visualViewport;W!==ws&&(j.setProperty("--q-pe-left",W+"px"),ws=W),oe!==Ss&&(j.setProperty("--q-pe-top",oe+"px"),Ss=oe)}const{scrollLeft:E,scrollTop:_}=o,T=g===void 0?wm(s,C===!0?[0,0]:u):Sm(s,g,u);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:x||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:U,offsetHeight:R}=o,{elWidth:G,elHeight:F}=w===!0||C===!0?{elWidth:Math.max(T.width,U),elHeight:C===!0?Math.max(T.height,R):R}:{elWidth:U,elHeight:R};let N={maxWidth:x,maxHeight:v};(w===!0||C===!0)&&(N.minWidth=T.width+"px",C===!0&&(N.minHeight=T.height+"px")),Object.assign(o.style,N);const Y=xm(G,F);let z=Cs(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=Cs(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!==_&&(o.scrollTop=_),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,C=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>C)if(t.maxWidth=Math.min(h,C),s.horizontal==="middle")t.left=l[u.horizontal]>C/2?Math.max(0,C-h):0;else if(l[u.horizontal]>C/2){const v=Math.min(C,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,C-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:xs},scrollTarget:ms,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:C}=w,{$q:v}=C,x=r.ref(null),E=r.ref(!1),_=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}=ds(t,Z),{anchorEl:W,canShow:oe}=fs({showing:E}),{hide:V}=il({showing:E,canShow:oe,handleShow:ge,handleHide:B,hideOnRouteChange:_,processOnMount:!0}),{showPortal:D,hidePortal:Q,renderPortal:A}=ol(w,x,Ae,"menu"),te={anchorEl:W,innerRef:x,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?(vs(H),ys(te)):(Bi(H),Mi(te))});function se(){ki(()=>{let X=x.value;X&&X.contains(document.activeElement)!==!0&&(X=X.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||X.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||X.querySelector("[autofocus], [data-autofocus]")||X,X.focus({preventScroll:!0}))})}function ge(X){if(s=t.noRefocus===!1?document.activeElement:null,bs(fe),D(),Z(),c=void 0,X!==void 0&&(t.touchPosition||t.contextMenu)){const De=Iu(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,x.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=gs(W.value,t.scrollTarget),z(Y.value,re))}function pe(X){g!==!0?(cm(C,X),o("click",X)):g=!1}function fe(X){K.value===!0&&t.noFocus!==!0&&Xu(x.value,X.target)!==!0&&se()}function H(X){o("escapeKey"),V(X)}function re(){cl({targetEl:x.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:x,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(C,{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,ks,Es,As,$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 Os(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 Ts(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),ks=l.style.left,Es=l.style.top,As=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",Os,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",Os,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=ks,l.style.top=Es,window.location.href===As&&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(()=>{Ts(l),$n=null},100);return}}Ts(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"},Bs={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,C=null,v,x;const E=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:_}=Tm(),{registerTimeout:T}=Mr(),{registerTick:U,removeTick:R}=al(),{transitionProps:G,transitionStyle:F}=ll(t,()=>Bs[t.position][0],()=>Bs[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=>{_(H),H===!0?(bs(pe),vs(se)):(ul(pe),Bi(se))});function ae(H){V(),C=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()}x=!0,c.value.click(),x=!1}Y(!0),g.value=!1,o("show",H)},t.transitionDuration)}function le(H){R(),D(),ge(!0),g.value=!0,z(),C!==null&&(((H&&H.type.indexOf("key")===0?C.closest('[tabindex]:not([tabindex^="-"])'):void 0)||C).focus(),C=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&&(_(!1),ul(pe),Bi(se))),H!==!0&&(C=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){x!==!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&&Xu(c.value,H.target)!==!0&&ce('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:ce,shake:K,__updateRefocusTarget(H){C=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"],Rs=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||[];Rs.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,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=(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 x=o.previousElementSibling;x!==null;x=x.previousElementSibling)x.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=x[C]);if(u!==null)for(let x=u.nextElementSibling;x!==null;x=x.nextElementSibling)x.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=x[C]);if(l!==t){const x=w.getBoundingClientRect(),E=l.getBoundingClientRect();s===!0?(v.offsetStart+=E.left-x.left,v.offsetEnd-=E.width):(v.offsetStart+=E.top-x.top,v.offsetEnd-=E.height),t!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function Is(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 Ms={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 C,v,x,E=[],_;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);x!==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(C===O.scrollStart)return;if(O.scrollMaxSize<=0){A(B,O,0,0);return}x!==O.scrollViewSize&&le(O.scrollViewSize),te(Y.value.from);const fe=Math.floor(O.scrollMaxSize-Math.max(O.scrollViewSize,O.offsetEnd)-Math.min(_[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-=_[H],re>-O.scrollViewSize?(H++,Ae=re):Ae=_[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)),C=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?_.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,_,0,X),U.value=Fr(E,_,De,t.value),requestAnimationFrame(()=>{Y.value.to!==De&&C===O.scrollStart&&(Y.value={from:Y.value.from,to:De},U.value=Fr(E,_,De,t.value))})}requestAnimationFrame(()=>{if(C!==O.scrollStart)return;ot===!0&&te(X);const wt=_.slice(X,Z).reduce(dr,0),tn=wt+O.offsetStart+T.value,ht=tn+_[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-_[Z])/2))}C=bn,Is(B,bn,c.virtualScrollHorizontal,w.lang.rtl),K(Z)})}function te(B){const O=N.value;if(O){const Z=Rs.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-_[H],Ae!==0&&(_[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(_)===!1)&&(_=[]);const pe=_.length;_.length=t.value;for(let H=t.value-1;H>=pe;H--)_[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+=_[X];E.push(re)}v=-1,C=void 0,T.value=Fr(E,_,0,Y.value.from),U.value=Fr(E,_,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)}x=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=Hu(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();C!==void 0&&B!==void 0&&B!==null&&B.nodeType!==8?Is(B,C,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 Ls(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 qs=t=>["add","add-unique","toggle"].includes(t),qm=".*+?^${}()|[]\\",Vm=Object.keys(Ei),Vs=je({name:"QSelect",inheritAttrs:!1,props:{...Ms,...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:qs},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:Ms.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(""),C=r.ref(!1),v=r.ref(!1);let x=null,E=null,_,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=Ru(t),Q=Qu(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 b=t.mapOptions===!0&&t.multiple!==!0,ne=t.modelValue!==void 0&&(t.modelValue!==null||b===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0&&Array.isArray(t.options)===!0){const J=t.mapOptions===!0&&_!==void 0?_:[],ve=ne.map(Ie=>zr(Ie,J));return t.modelValue===null&&b===!0?ve.filter(Ie=>Ie!==null):ve}return ne}),Z=r.computed(()=>{const b={};return Vm.forEach(ne=>{const J=t[ne];J!==void 0&&(b[ne]=J)}),b}),pe=r.computed(()=>t.optionsDark===null?B.isDark.value:t.optionsDark),fe=r.computed(()=>Vr(O.value)),H=r.computed(()=>{let b="q-field__input q-placeholder col";return t.hideSelected===!0||O.value.length===0?[b,t.inputClass]:(b+=" q-field__input--padding",t.inputClass===void 0?b:[b,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(b=>Ye.value(b)).join(", ")),De=r.computed(()=>t.displayValue!==void 0?t.displayValue:X.value),ot=r.computed(()=>t.optionsHtml===!0?()=>!0:b=>b!=null&&b.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 b={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":t.readonly===!0?"true":"false","aria-autocomplete":t.useInput===!0?"list":"none","aria-expanded":c.value===!0?"true":"false","aria-controls":`${B.targetUid.value}_lb`};return g.value>=0&&(b["aria-activedescendant"]=`${B.targetUid.value}_${g.value}`),b}),wt=r.computed(()=>({id:`${B.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),tn=r.computed(()=>O.value.map((b,ne)=>({index:ne,opt:b,html:ot.value(b),selected:!0,removeAtIndex:yn,toggleOption:Ht,tabindex:yt.value}))),ht=r.computed(()=>{if(A.value===0)return[];const{from:b,to:ne}=P.value;return t.options.slice(b,ne).map((J,ve)=>{const Ie=zt.value(J)===!0,Be=zn(J)===!0,Ke=b+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(b=>Fe.value(b))),Fn=r.computed(()=>{const b={onInput:Gi,onChange:Q,onKeydown:zi,onKeyup:Fi,onKeypress:Ui,onFocus:gr,onClick(ne){T===!0&&Yt(ne)}};return b.onCompositionstart=b.onCompositionupdate=b.onCompositionend=Q,b});r.watch(O,b=>{_=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(b){return t.emitValue===!0?Fe.value(b):b}function nn(b){if(b!==-1&&b<O.value.length)if(t.multiple===!0){const ne=t.modelValue.slice();o("remove",{index:b,value:ne.splice(b,1)[0]}),o("update:modelValue",ne)}else o("update:modelValue",null)}function yn(b){nn(b),B.focus()}function mr(b,ne){const J=$i(b);if(t.multiple!==!0){t.fillInput===!0&&Wn(Ye.value(b),!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(b)===!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(b,ne){if(B.editable.value!==!0||b===void 0||zt.value(b)===!0)return;const J=Fe.value(b);if(t.multiple!==!0){ne!==!0&&(Wn(t.fillInput===!0?Ye.value(b):"",!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:b);return}if((T!==!0||C.value===!0)&&B.focus(),gr(),O.value.length===0){const Be=t.emitValue===!0?J:b;o("add",{index:0,value:Be}),o("update:modelValue",t.multiple===!0?[Be]:Be);return}const 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:b;o("add",{index:ve.length,value:Be}),ve.push(Be)}o("update:modelValue",ve)}function Qt(b){if(s.platform.is.desktop!==!0)return;const ne=b!==-1&&b<A.value?b:-1;g.value!==ne&&(g.value=ne)}function wn(b=1,ne){if(c.value===!0){let J=g.value;do J=Ls(J+b,-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(b,ne){const J=ve=>en(Fe.value(ve),b);return t.options.find(J)||ne.find(J)||b}function Un(b,ne){const J=b!==void 0?b:ne;return typeof J=="function"?J:ve=>ve!==null&&typeof ve=="object"&&J in ve?ve[J]:ve}function zn(b){const ne=Fe.value(b);return hr.value.find(J=>en(J,ne))!==void 0}function gr(b){t.useInput===!0&&j.value!==null&&(b===void 0||j.value===b.target&&b.target.value===X.value)&&j.value.select()}function pr(b){Vn(b,27)===!0&&c.value===!0&&(Yt(b),rn(),on()),o("keyup",b)}function Fi(b){const{value:ne}=b.target;if(b.keyCode!==void 0){pr(b);return}if(b.target.value="",x!==null&&(clearTimeout(x),x=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(b)}function Ui(b){o("keypress",b)}function zi(b){if(o("keydown",b),Xo(b)===!0)return;const ne=w.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),J=b.shiftKey!==!0&&t.multiple!==!0&&(g.value!==-1||ne===!0);if(b.keyCode===27){Dt(b);return}if(b.keyCode===9&&J===!1){xn();return}if(b.target===void 0||b.target.id!==B.targetUid.value||B.editable.value!==!0)return;if(b.keyCode===40&&B.innerLoading.value!==!0&&c.value===!1){We(b),Cn();return}if(b.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}(b.keyCode===35||b.keyCode===36)&&(typeof w.value!="string"||w.value.length===0)&&(We(b),g.value=-1,wn(b.keyCode===36?1:-1,t.multiple)),(b.keyCode===33||b.keyCode===34)&&ae.value!==void 0&&(We(b),g.value=Math.max(-1,Math.min(A.value,g.value+(b.keyCode===33?-1:1)*ae.value.view)),wn(b.keyCode===33?1:-1,t.multiple)),(b.keyCode===38||b.keyCode===40)&&(We(b),wn(b.keyCode===38?-1:1,t.multiple));const ve=A.value;if((N===void 0||Y<Date.now())&&(N=""),ve>0&&t.useInput!==!0&&b.key!==void 0&&b.key.length===1&&b.altKey===!1&&b.ctrlKey===!1&&b.metaKey===!1&&(b.keyCode!==32||N.length!==0)){c.value!==!0&&Cn(b);const Ie=b.key.toLocaleLowerCase(),Be=N.length===1&&N[0]===Ie;Y=Date.now()+1500,Be===!1&&(We(b),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=Ls(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(!(b.keyCode!==13&&(b.keyCode!==32||t.useInput===!0||N!=="")&&(b.keyCode!==9||J===!1))){if(b.keyCode!==9&&We(b),g.value!==-1&&g.value<ve){Ht(t.options[g.value]);return}if(ne===!0){const Ie=(Be,Ke)=>{if(Ke){if(qs(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(b=>l["selected-item"](b)).slice():l.selected!==void 0?[].concat(l.selected()):t.useChips===!0?tn.value.map((b,ne)=>r.h(tm,{key:"option-"+ne,removable:B.editable.value===!0&&zt.value(b.opt)!==!0,dense:!0,textColor:t.color,tabindex:yt.value,onRemove(){b.removeAtIndex(ne)}},()=>r.h("span",{class:"ellipsis",[b.html===!0?"innerHTML":"textContent"]:Ye.value(b.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 b=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(b));return l["before-options"]!==void 0&&(ne=l["before-options"]().concat(ne)),Ln(l["after-options"],ne)}function bl(b,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":b===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...Fn.value};return b!==!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(b){x!==null&&(clearTimeout(x),x=null),E!==null&&(clearTimeout(E),E=null),!(b&&b.target&&b.target.qComposing===!0)&&(Hn(b.target.value||""),U=!0,G=w.value,B.focused.value!==!0&&(T!==!0||C.value===!0)&&B.focus(),t.onFilter!==void 0&&(x=setTimeout(()=>{x=null,Sn(w.value)},t.inputDebounce)))}function Hn(b,ne){w.value!==b&&(w.value=b,ne===!0||t.inputDebounce===0||t.inputDebounce==="0"?o("inputValue",b):E=setTimeout(()=>{E=null,o("inputValue",b)},t.inputDebounce))}function Wn(b,ne,J){U=J!==!0,t.useInput===!0&&(Hn(b,!0),(ne===!0||J!==!0)&&(G=b),ne!==!0&&Sn(b))}function Sn(b,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),b!==""&&t.multiple!==!0&&O.value.length!==0&&U!==!0&&b===Ye.value(O.value[0])&&(b="");const ve=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);R!==null&&clearTimeout(R),R=ve,o("filter",b,(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(b){Yi(b),xn()}function wl(){ge()}function Gr(b){Yt(b),j.value!==null&&j.value.focus(),C.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Sl(b){Yt(b),r.nextTick(()=>{C.value=!1})}function xl(){const b=[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&&b.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":"")+(C.value===!0?" q-select__dialog--focused":"")},b))}function Cl(b){Yi(b),oe.value!==null&&oe.value.__updateRefocusTarget(B.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),B.focused.value=!1}function kl(b){rn(),B.focused.value===!1&&o("blur",b),on()}function El(){const b=document.activeElement;(b===null||b.id!==B.targetUid.value)&&j.value!==null&&j.value!==b&&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){B.editable.value===!0&&(T===!0?(B.onControlFocusin(b),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(b){let ne=-1;if(b===!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(b,ne){c.value===!0&&B.innerLoading.value===!1&&(le(-1,!0),r.nextTick(()=>{c.value===!0&&B.innerLoading.value===!1&&(b>ne?le():Kr(!0))}))}function Ki(){h.value===!1&&W.value!==null&&W.value.updatePosition()}function ji(b){b!==void 0&&Yt(b),o("popupShow",b),B.hasPopupOpen=!0,B.onControlFocusin(b)}function Yi(b){b!==void 0&&Yt(b),o("popupHide",b),B.hasPopupOpen=!1,B.onControlFocusout(b)}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(()=>{x!==null&&clearTimeout(x),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:(...b)=>zt.value.apply(null,b)===!0,getOptionValue:(...b)=>Fe.value.apply(null,b),getOptionLabel:(...b)=>Ye.value.apply(null,b)}),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){B.onControlFocusin(b)},onFocusout(b){B.onControlFocusout(b,()=>{on(),xn()})},onClick(b){if(Dt(b),T!==!0&&c.value===!0){xn(),j.value!==null&&j.value.focus();return}Cn(b)}},getControl:b=>{const ne=_l(),J=b===!0||h.value!==!0||T!==!0;if(t.useInput===!0)ne.push(bl(b,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":b===!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 x;return((x=c.value)==null?void 0:x.collection)||null}),w=r.computed(()=>g.value?h.value:u.control.options),C=or();r.watch(g,x=>{if(!x)return;const E=C.getCollection(g.value);if(E){h.value=E;return}s.value=!0},{immediate:!0});function v(x,E){if(x===""){E(()=>{l.value=Ve.cloneDeep(w.value)});return}E(()=>{const _=x.toLowerCase();l.value=(w.value||[]).filter(T=>T.toLowerCase().includes(_))})}return(x,E)=>{const _=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[x.control.label?(r.openBlock(),r.createBlock(_,{key:0,label:x.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(Vs,{borderless:"",label:x.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 Ps(t,l){const{maxControlsPerGroup:o,notifyValidations:u}={...md,...l||{}},s=or(),c=r.computed(()=>s.formSteps[t]),h=r.ref([]),g=r.ref([]),w=(_,T)=>{s.setControlValue(t,_);const U=h.value.find(F=>F.id===T);U&&(g.value=pd(U));const R=v(_),G=x(_);(R||G)&&C()};function C(){const _=c.value.controls,T=[];yd(_).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:_,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===_))||!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 x({id:_,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)===_});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,_=>{_.length&&(u&&E({message:_[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 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}=Ps(l.index),c=r.computed(()=>u.value.length),h=r.ref(0),g=r.computed(()=>u.value[h.value]),w=v=>{const x=Ve.toPairs(Ve.groupBy(v,"row"));return Ve.orderBy(x,([E,_])=>Number(E),"asc").map(([E,_])=>({controls:Ve.orderBy(_,"col","asc")}))};r.watch(h,v=>{const x=v+1===c.value;o.setOnLastSubstep(x)},{immediate:!0});function C(v){return{input_text:Jo,input_number:Jo,checkbox:Pu,switch:rh,select:Pm,cards_select:Yd}[v]||Jo}return(v,x)=>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),(_,T)=>(r.openBlock(),r.createElementBlock("div",{class:"q-mb-xl",key:T},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(_.controls,(U,R)=>(r.openBlock(),r.createElementBlock("div",{key:R},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(C(U.controlType)),{control:U,modelValue:_.controls[R].value,"onUpdate:modelValue":[G=>_.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:x[0]||(x[0]=E=>h.value--),onNext:x[1]||(x[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(Zu,{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"]]),Ns=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(Vs,{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}=Ps(l.index,{notifyValidations:!1});function s(w){return{input_text:pl,input_number:pl,select:Ns,cards_select:Ns,checkbox:Pu}[w]||pl}const c=w=>Ve.orderBy(Ve.toPairs(Ve.groupBy(w,"row")),"row").map(([C,v])=>({controls:Ve.orderBy(v,"col")}));function h(w){return[C=>{var x;let v="";return(x=w.validators)==null||x.some(E=>{const{param:_,validator:T}=E,U=du[T];return U.fn(Number(_))({...w,value:C})?!1:(v=U.message,!0)}),!v.length||v}]}const g=or();return r.onMounted(()=>g.setOnLastSubstep(!0)),(w,C)=>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,x)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(c(r.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:x},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.controls,(E,_)=>(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:_},[(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,C=r.ref(!1),v=E=>{},x=()=>{s.value===c.value?w("submit"):o.value()};return(E,_)=>(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(Vu,{color:"info",class:"checkbox",modelValue:C.value,"onUpdate:modelValue":_[1]||(_[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 "),sg,r.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),r.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:_[0]||(_[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:x,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",hg,[r.createTextVNode(" Enviar "),mg])):(r.openBlock(),r.createElementBlock("span",gg," Siguiente "))]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),Ds=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 pu().fromRaw(w);c.setFormSteps(v)},{immediate:!0});function g(){const w=Ve.cloneDeep(c.formSteps),v=new pu().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,x)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:x},[h(v)?r.withDirectives((r.openBlock(),r.createBlock(ig,{key:0,index:x},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===x+1]]):r.withDirectives((r.openBlock(),r.createBlock(Ym,{key:1,index:x,onOnLastStep:C[0]||(C[0]=E=>s.value=E)},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===x+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),$s=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 Fs(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||Fs(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,C)=>(r.openBlock(),r.createElementBlock("tr",{key:C,style:r.normalizeStyle({backgroundColor:C%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"]]),Us=je({name:"QTooltip",inheritAttrs:!1,props:{...cs,...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:xs},scrollTarget:ms,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),C=r.ref(!1),v=r.computed(()=>qi(t.anchor,g.lang.rtl)),x=r.computed(()=>qi(t.self,g.lang.rtl)),E=r.computed(()=>t.persistent!==!0),{registerTick:_,removeTick:T}=al(),{registerTimeout:U}=Mr(),{transitionProps:R,transitionStyle:G}=ll(t),{localScrollTarget:F,changeScrollEvent:N,unconfigureScrollTarget:Y}=ds(t,ge),{anchorEl:z,canShow:j,anchorEvents:W}=fs({showing:C,configureAnchorEl:se}),{show:oe,hide:V}=il({showing:C,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&&C.value===!0);r.watch(pe,fe=>{(fe===!0?ys:Mi)(Z)}),r.onBeforeUnmount(()=>{Mi(Z)})}function te(Z){D(),_(()=>{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:x.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=gs(z.value,t.scrollTarget);const Z=t.noParentEvent===!0?le:V;N(F.value,Z)}}function B(){return C.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={key:0,class:"no-print"},Mg={class:"add-btn"},Lg=["contenteditable"],qg=["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 C,v;return((v=(C=l.content)==null?void 0:C.lines)==null?void 0:v.map(x=>({...x,text:h(o.value,x.text)})))||[]}),s=r.ref([]),c=r.inject("editable");r.watch(u,C=>{s.value=Ve.cloneDeep(C)},{deep:!0,immediate:!0});function h(C,v){const x=v.match(/{{(.*?)}}/g);return x?x.reduce((E,_)=>{const T=_.replace(/{{|}}/g,""),U=Fs(C,T);return E.replace(_,U??T)},v):v}const g=()=>{if(!(c!=null&&c.value))return;const C=s.value.length,v={type:st.TextLineType.PARAGRAPH,text:"Párrafo "+C};s.value.push(v)},w=C=>{c!=null&&c.value&&s.value.splice(C,1)};return(C,v)=>{var x;return r.openBlock(),r.createElementBlock("div",Rg,[r.unref(c)?(r.openBlock(),r.createElementBlock("div",Ig,[r.createElementVNode("div",Mg,[r.createVNode(_n,{size:"sm",round:"",color:"black",onClick:g,icon:"add"},{default:r.withCtx(()=>[r.createVNode(Us,null,{default:r.withCtx(()=>[r.createTextVNode("Agregar párrafo")]),_:1})]),_:1})])])):r.createCommentVNode("",!0),r.createElementVNode("div",{style:r.normalizeStyle(((x=C.styles)==null?void 0:x.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,({type:E,text:_,align:T},U)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({textAlign:T||"left"})},[E==="title"?(r.openBlock(),r.createElementBlock("h1",{key:0,contenteditable:r.unref(c)},r.toDisplayString(_),9,Lg)):r.createCommentVNode("",!0),E==="subtitle"?(r.openBlock(),r.createElementBlock("h2",{key:1,contenteditable:r.unref(c)},r.toDisplayString(_),9,qg)):r.createCommentVNode("",!0),r.unref(c)&&E==="paragraph"?(r.openBlock(),r.createElementBlock("div",Vg,[r.createElementVNode("p",{contenteditable:r.unref(c)},r.toDisplayString(_),9,Pg),r.createElementVNode("div",Ng,[r.createVNode(_n,{size:"sm",r:"",round:"",color:"black",onClick:R=>w(U),icon:"delete"},{default:r.withCtx(()=>[r.createVNode(Us,null,{default:r.withCtx(()=>[r.createTextVNode("Eliminar párrafo")]),_:1})]),_:2},1032,["onClick"])])])):r.createCommentVNode("",!0)],4))),256))],4)])}}}),[["__scopeId","data-v-ab14e1d5"]]),$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))}}),zs=ft(r.defineComponent({__name:"SectionsContainer",props:{layout:{},data:{},htmlNodes:{},editable:{type:Boolean}},setup(t){var g;const l=t,{layout:o,data:u,editable:s}=r.toRefs(l);r.provide("data",u),r.provide("editable",s||r.ref(!1));const c=r.computed(()=>{var C;const w=o.value.sections.map(v=>({type:"default",section:v}));return(C=l.htmlNodes)==null||C.forEach(({index:v,element:x})=>{const E=v>w.length?w.length:v;w.splice(E,0,{type:"html",section:x})}),w}),h=((g=o.value.styles)==null?void 0:g.cssRaw)||"";return(w,C)=>(r.openBlock(),r.createElementBlock("div",{class:"sections-container",style:r.normalizeStyle(r.unref(h))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,({type:v,section:x})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[v==="default"?(r.openBlock(),r.createBlock($g,{key:0,section:x},null,8,["section"])):(r.openBlock(),r.createBlock(_g,{key:1,section:x},null,8,["section"]))],64))),256))],4))}}),[["__scopeId","data-v-2dff2e90"]]),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",Ds),t.component("TestUi",$s),t.component("SectionsContainer",zs)}};Nt.DynamicForm=Ds,Nt.SectionsContainer=zs,Nt.TestUi=$s,Nt.default=Fg,Object.defineProperties(Nt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|