@win2win/shared-ui 0.1.41 → 0.1.42

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.
Files changed (42) hide show
  1. package/dist/components/Data/Field.vue.d.ts +61 -0
  2. package/dist/components/Data/Field.vue.d.ts.map +1 -0
  3. package/dist/components/{DynamicForm/FormStepsIndicator.vue.d.ts → Data/IndicatorColor.vue.d.ts} +3 -6
  4. package/dist/components/Data/IndicatorColor.vue.d.ts.map +1 -0
  5. package/dist/components/DynamicForm/DynamicForm.vue.d.ts +0 -1
  6. package/dist/components/DynamicForm/DynamicForm.vue.d.ts.map +1 -1
  7. package/dist/components/Inputs/WinInput.vue.d.ts +40 -68
  8. package/dist/components/Inputs/WinInput.vue.d.ts.map +1 -1
  9. package/dist/components/Inputs/WinSelect.vue.d.ts +82 -227
  10. package/dist/components/Inputs/WinSelect.vue.d.ts.map +1 -1
  11. package/dist/components/MapLocationForm/GeocodingInput.vue.d.ts +34 -0
  12. package/dist/components/MapLocationForm/GeocodingInput.vue.d.ts.map +1 -0
  13. package/dist/components/MapLocationForm/MapLocationForm.vue.d.ts +55 -0
  14. package/dist/components/MapLocationForm/MapLocationForm.vue.d.ts.map +1 -0
  15. package/dist/components/MapLocationForm/consts.d.ts +5 -0
  16. package/dist/components/MapLocationForm/consts.d.ts.map +1 -0
  17. package/dist/components/MapLocationForm/helpers.d.ts +2 -0
  18. package/dist/components/MapLocationForm/helpers.d.ts.map +1 -0
  19. package/dist/components/MapLocationForm/models.d.ts +50 -0
  20. package/dist/components/MapLocationForm/models.d.ts.map +1 -0
  21. package/dist/components/MapLocationForm/useGeocoding.d.ts +26 -0
  22. package/dist/components/MapLocationForm/useGeocoding.d.ts.map +1 -0
  23. package/dist/components/TestUi.vue.d.ts +1 -0
  24. package/dist/components/TestUi.vue.d.ts.map +1 -1
  25. package/dist/components/pdf/SectionsContainer.vue.d.ts +2 -2
  26. package/dist/components/pdf/SectionsContainer.vue.d.ts.map +1 -1
  27. package/dist/components/pdf/sections/TextSection.vue.d.ts.map +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/w2w-shared-ui.js +3904 -3790
  30. package/dist/w2w-shared-ui.umd.cjs +13 -13
  31. package/package.json +4 -2
  32. package/dist/components/DynamicForm/Controls/DynamicArrayControl.vue.d.ts +0 -23
  33. package/dist/components/DynamicForm/Controls/DynamicArrayControl.vue.d.ts.map +0 -1
  34. package/dist/components/DynamicForm/Controls/ObjectControl.vue.d.ts +0 -23
  35. package/dist/components/DynamicForm/Controls/ObjectControl.vue.d.ts.map +0 -1
  36. package/dist/components/DynamicForm/FormStepsIndicator.vue.d.ts.map +0 -1
  37. package/dist/components/DynamicForm/MapLocation.vue.d.ts +0 -3
  38. package/dist/components/DynamicForm/MapLocation.vue.d.ts.map +0 -1
  39. package/dist/components/DynamicForm/SelectCurrencyControl.vue.d.ts +0 -23
  40. package/dist/components/DynamicForm/SelectCurrencyControl.vue.d.ts.map +0 -1
  41. package/dist/components/DynamicForm/SelectZoneControl.vue.d.ts +0 -23
  42. package/dist/components/DynamicForm/SelectZoneControl.vue.d.ts.map +0 -1
@@ -1,27 +1,27 @@
1
- (function(Nt,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],r):(Nt=typeof globalThis<"u"?globalThis:Nt||self,r(Nt.W2WSharedUi={},Nt.Vue,Nt.Pinia))})(this,function(Nt,r,Rd){"use strict";var ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ci={exports:{}};/**
1
+ (function(Nt,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],r):(Nt=typeof globalThis<"u"?globalThis:Nt||self,r(Nt.W2WSharedUi={},Nt.Vue,Nt.Pinia))})(this,function(Nt,r,Rd){"use strict";var pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},co={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
- */ci.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.",d="Expected a function",m="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",k=500,p="__lodash_placeholder__",S=1,x=2,_=4,A=1,U=2,B=1,W=2,F=4,V=8,K=16,z=32,Y=64,G=128,oe=256,q=512,$=30,Q="...",O=800,te=16,N=1,ae=2,le=3,ce=1/0,j=9007199254740991,se=17976931348623157e292,ge=NaN,R=4294967295,T=R-1,Z=R>>>1,pe=[["ary",G],["bind",B],["bindKey",W],["curry",V],["curryRight",K],["flip",q],["partial",z],["partialRight",Y],["rearg",oe]],fe="[object Arguments]",H="[object Array]",re="[object AsyncFunction]",Oe="[object Boolean]",X="[object Date]",$e="[object DOMException]",ot="[object Error]",Ft="[object Function]",yt="[object GeneratorFunction]",nt="[object Map]",wt="[object Number]",nn="[object Null]",ht="[object Object]",bn="[object Promise]",zr="[object Proxy]",Ut="[object RegExp]",Fe="[object Set]",Ye="[object String]",zt="[object Symbol]",mr="[object Undefined]",Fn="[object WeakMap]",Fi="[object WeakSet]",rn="[object ArrayBuffer]",yn="[object DataView]",gr="[object Float32Array]",Ht="[object Float64Array]",Qt="[object Int8Array]",wn="[object Int16Array]",Hr="[object Int32Array]",Un="[object Uint8Array]",zn="[object Uint8ClampedArray]",pr="[object Uint16Array]",vr="[object Uint32Array]",Ui=/\b__p \+= '';/g,zi=/\b(__p \+=) '' \+/g,Hi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wr=/&(?:amp|lt|gt|quot|#39);/g,Wi=/[&<>"']/g,yl=RegExp(Wr.source),Gi=RegExp(Wi.source),wl=/<%-([\s\S]+?)%>/g,ji=/<%([\s\S]+?)%>/g,Hn=/<%=([\s\S]+?)%>/g,Wn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sn=/^\w*$/,Sl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gr=/[\\^$.*+?()[\]{}|]/g,Cl=RegExp(Gr.source),jr=/^\s+/,xl=/\s/,El=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Ol=/,? & /,Al=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cn=/[()=,{}\[\]\/\s]/,xn=/\\(\\)?/g,on=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ln=/\w*$/,Kr=/^[-+]0x[0-9a-f]+$/i,Tl=/^0b[01]+$/i,Ki=/^\[object .+?Constructor\]$/,Yi=/^0o[0-7]+$/i,Qi=/^(?:0|[1-9]\d*)$/,Zi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,b=/($^)/,ne=/['\n\r\u2028\u2029\\]/g,J="\\ud800-\\udfff",_e="\\u0300-\\u036f",Ie="\\ufe20-\\ufe2f",Be="\\u20d0-\\u20ff",je=_e+Ie+Be,Ve="\\u2700-\\u27bf",_r="a-z\\xdf-\\xf6\\xf8-\\xff",hp="\\xac\\xb1\\xd7\\xf7",mp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gp="\\u2000-\\u206f",pp=" \\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",uc="A-Z\\xc0-\\xd6\\xd8-\\xde",sc="\\ufe0e\\ufe0f",cc=hp+mp+gp+pp,Bl="['’]",vp="["+J+"]",fc="["+cc+"]",Xi="["+je+"]",dc="\\d+",_p="["+Ve+"]",hc="["+_r+"]",mc="[^"+J+cc+dc+Ve+_r+uc+"]",Rl="\\ud83c[\\udffb-\\udfff]",bp="(?:"+Xi+"|"+Rl+")",gc="[^"+J+"]",Il="(?:\\ud83c[\\udde6-\\uddff]){2}",Ml="[\\ud800-\\udbff][\\udc00-\\udfff]",br="["+uc+"]",pc="\\u200d",vc="(?:"+hc+"|"+mc+")",yp="(?:"+br+"|"+mc+")",_c="(?:"+Bl+"(?:d|ll|m|re|s|t|ve))?",bc="(?:"+Bl+"(?:D|LL|M|RE|S|T|VE))?",yc=bp+"?",wc="["+sc+"]?",wp="(?:"+pc+"(?:"+[gc,Il,Ml].join("|")+")"+wc+yc+")*",Sp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sc=wc+yc+wp,xp="(?:"+[_p,Il,Ml].join("|")+")"+Sc,Ep="(?:"+[gc+Xi+"?",Xi,Il,Ml,vp].join("|")+")",kp=RegExp(Bl,"g"),Op=RegExp(Xi,"g"),Ll=RegExp(Rl+"(?="+Rl+")|"+Ep+Sc,"g"),Ap=RegExp([br+"?"+hc+"+"+_c+"(?="+[fc,br,"$"].join("|")+")",yp+"+"+bc+"(?="+[fc,br+vc,"$"].join("|")+")",br+"?"+vc+"+"+_c,br+"+"+bc,Cp,Sp,dc,xp].join("|"),"g"),Tp=RegExp("["+pc+J+je+sc+"]"),Bp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rp=["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"],Ip=-1,Pe={};Pe[gr]=Pe[Ht]=Pe[Qt]=Pe[wn]=Pe[Hr]=Pe[Un]=Pe[zn]=Pe[pr]=Pe[vr]=!0,Pe[fe]=Pe[H]=Pe[rn]=Pe[Oe]=Pe[yn]=Pe[X]=Pe[ot]=Pe[Ft]=Pe[nt]=Pe[wt]=Pe[ht]=Pe[Ut]=Pe[Fe]=Pe[Ye]=Pe[Fn]=!1;var Le={};Le[fe]=Le[H]=Le[rn]=Le[yn]=Le[Oe]=Le[X]=Le[gr]=Le[Ht]=Le[Qt]=Le[wn]=Le[Hr]=Le[nt]=Le[wt]=Le[ht]=Le[Ut]=Le[Fe]=Le[Ye]=Le[zt]=Le[Un]=Le[zn]=Le[pr]=Le[vr]=!0,Le[ot]=Le[Ft]=Le[Fn]=!1;var Mp={À:"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"},Lp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Pp={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},qp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vp=parseFloat,Np=parseInt,Cc=typeof ve=="object"&&ve&&ve.Object===Object&&ve,$p=typeof self=="object"&&self&&self.Object===Object&&self,et=Cc||$p||Function("return this")(),Pl=l&&!l.nodeType&&l,Gn=Pl&&!0&&t&&!t.nodeType&&t,xc=Gn&&Gn.exports===Pl,ql=xc&&Cc.process,Bt=function(){try{var C=Gn&&Gn.require&&Gn.require("util").types;return C||ql&&ql.binding&&ql.binding("util")}catch{}}(),Ec=Bt&&Bt.isArrayBuffer,kc=Bt&&Bt.isDate,Oc=Bt&&Bt.isMap,Ac=Bt&&Bt.isRegExp,Tc=Bt&&Bt.isSet,Bc=Bt&&Bt.isTypedArray;function St(C,M,I){switch(I.length){case 0:return C.call(M);case 1:return C.call(M,I[0]);case 2:return C.call(M,I[0],I[1]);case 3:return C.call(M,I[0],I[1],I[2])}return C.apply(M,I)}function Dp(C,M,I,ie){for(var be=-1,Ae=C==null?0:C.length;++be<Ae;){var Qe=C[be];M(ie,Qe,I(Qe),C)}return ie}function Rt(C,M){for(var I=-1,ie=C==null?0:C.length;++I<ie&&M(C[I],I,C)!==!1;);return C}function Fp(C,M){for(var I=C==null?0:C.length;I--&&M(C[I],I,C)!==!1;);return C}function Rc(C,M){for(var I=-1,ie=C==null?0:C.length;++I<ie;)if(!M(C[I],I,C))return!1;return!0}function En(C,M){for(var I=-1,ie=C==null?0:C.length,be=0,Ae=[];++I<ie;){var Qe=C[I];M(Qe,I,C)&&(Ae[be++]=Qe)}return Ae}function Ji(C,M){var I=C==null?0:C.length;return!!I&&yr(C,M,0)>-1}function Vl(C,M,I){for(var ie=-1,be=C==null?0:C.length;++ie<be;)if(I(M,C[ie]))return!0;return!1}function Ne(C,M){for(var I=-1,ie=C==null?0:C.length,be=Array(ie);++I<ie;)be[I]=M(C[I],I,C);return be}function kn(C,M){for(var I=-1,ie=M.length,be=C.length;++I<ie;)C[be+I]=M[I];return C}function Nl(C,M,I,ie){var be=-1,Ae=C==null?0:C.length;for(ie&&Ae&&(I=C[++be]);++be<Ae;)I=M(I,C[be],be,C);return I}function Up(C,M,I,ie){var be=C==null?0:C.length;for(ie&&be&&(I=C[--be]);be--;)I=M(I,C[be],be,C);return I}function $l(C,M){for(var I=-1,ie=C==null?0:C.length;++I<ie;)if(M(C[I],I,C))return!0;return!1}var zp=Dl("length");function Hp(C){return C.split("")}function Wp(C){return C.match(Al)||[]}function Ic(C,M,I){var ie;return I(C,function(be,Ae,Qe){if(M(be,Ae,Qe))return ie=Ae,!1}),ie}function eo(C,M,I,ie){for(var be=C.length,Ae=I+(ie?1:-1);ie?Ae--:++Ae<be;)if(M(C[Ae],Ae,C))return Ae;return-1}function yr(C,M,I){return M===M?rv(C,M,I):eo(C,Mc,I)}function Gp(C,M,I,ie){for(var be=I-1,Ae=C.length;++be<Ae;)if(ie(C[be],M))return be;return-1}function Mc(C){return C!==C}function Lc(C,M){var I=C==null?0:C.length;return I?Ul(C,M)/I:ge}function Dl(C){return function(M){return M==null?o:M[C]}}function Fl(C){return function(M){return C==null?o:C[M]}}function Pc(C,M,I,ie,be){return be(C,function(Ae,Qe,Me){I=ie?(ie=!1,Ae):M(I,Ae,Qe,Me)}),I}function jp(C,M){var I=C.length;for(C.sort(M);I--;)C[I]=C[I].value;return C}function Ul(C,M){for(var I,ie=-1,be=C.length;++ie<be;){var Ae=M(C[ie]);Ae!==o&&(I=I===o?Ae:I+Ae)}return I}function zl(C,M){for(var I=-1,ie=Array(C);++I<C;)ie[I]=M(I);return ie}function Kp(C,M){return Ne(M,function(I){return[I,C[I]]})}function qc(C){return C&&C.slice(0,Dc(C)+1).replace(jr,"")}function Ct(C){return function(M){return C(M)}}function Hl(C,M){return Ne(M,function(I){return C[I]})}function Yr(C,M){return C.has(M)}function Vc(C,M){for(var I=-1,ie=C.length;++I<ie&&yr(M,C[I],0)>-1;);return I}function Nc(C,M){for(var I=C.length;I--&&yr(M,C[I],0)>-1;);return I}function Yp(C,M){for(var I=C.length,ie=0;I--;)C[I]===M&&++ie;return ie}var Qp=Fl(Mp),Zp=Fl(Lp);function Xp(C){return"\\"+qp[C]}function Jp(C,M){return C==null?o:C[M]}function wr(C){return Tp.test(C)}function ev(C){return Bp.test(C)}function tv(C){for(var M,I=[];!(M=C.next()).done;)I.push(M.value);return I}function Wl(C){var M=-1,I=Array(C.size);return C.forEach(function(ie,be){I[++M]=[be,ie]}),I}function $c(C,M){return function(I){return C(M(I))}}function On(C,M){for(var I=-1,ie=C.length,be=0,Ae=[];++I<ie;){var Qe=C[I];(Qe===M||Qe===p)&&(C[I]=p,Ae[be++]=I)}return Ae}function to(C){var M=-1,I=Array(C.size);return C.forEach(function(ie){I[++M]=ie}),I}function nv(C){var M=-1,I=Array(C.size);return C.forEach(function(ie){I[++M]=[ie,ie]}),I}function rv(C,M,I){for(var ie=I-1,be=C.length;++ie<be;)if(C[ie]===M)return ie;return-1}function iv(C,M,I){for(var ie=I+1;ie--;)if(C[ie]===M)return ie;return ie}function Sr(C){return wr(C)?lv(C):zp(C)}function Wt(C){return wr(C)?av(C):Hp(C)}function Dc(C){for(var M=C.length;M--&&xl.test(C.charAt(M)););return M}var ov=Fl(Pp);function lv(C){for(var M=Ll.lastIndex=0;Ll.test(C);)++M;return M}function av(C){return C.match(Ll)||[]}function uv(C){return C.match(Ap)||[]}var sv=function C(M){M=M==null?et:Cr.defaults(et.Object(),M,Cr.pick(et,Rp));var I=M.Array,ie=M.Date,be=M.Error,Ae=M.Function,Qe=M.Math,Me=M.Object,Gl=M.RegExp,cv=M.String,It=M.TypeError,no=I.prototype,fv=Ae.prototype,xr=Me.prototype,ro=M["__core-js_shared__"],io=fv.toString,Re=xr.hasOwnProperty,dv=0,Fc=function(){var e=/[^.]+$/.exec(ro&&ro.keys&&ro.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),oo=xr.toString,hv=io.call(Me),mv=et._,gv=Gl("^"+io.call(Re).replace(Gr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lo=xc?M.Buffer:o,An=M.Symbol,ao=M.Uint8Array,Uc=lo?lo.allocUnsafe:o,uo=$c(Me.getPrototypeOf,Me),zc=Me.create,Hc=xr.propertyIsEnumerable,so=no.splice,Wc=An?An.isConcatSpreadable:o,Qr=An?An.iterator:o,jn=An?An.toStringTag:o,co=function(){try{var e=Xn(Me,"defineProperty");return e({},"",{}),e}catch{}}(),pv=M.clearTimeout!==et.clearTimeout&&M.clearTimeout,vv=ie&&ie.now!==et.Date.now&&ie.now,_v=M.setTimeout!==et.setTimeout&&M.setTimeout,fo=Qe.ceil,ho=Qe.floor,jl=Me.getOwnPropertySymbols,bv=lo?lo.isBuffer:o,Gc=M.isFinite,yv=no.join,wv=$c(Me.keys,Me),Ze=Qe.max,rt=Qe.min,Sv=ie.now,Cv=M.parseInt,jc=Qe.random,xv=no.reverse,Kl=Xn(M,"DataView"),Zr=Xn(M,"Map"),Yl=Xn(M,"Promise"),Er=Xn(M,"Set"),Xr=Xn(M,"WeakMap"),Jr=Xn(Me,"create"),mo=Xr&&new Xr,kr={},Ev=Jn(Kl),kv=Jn(Zr),Ov=Jn(Yl),Av=Jn(Er),Tv=Jn(Xr),go=An?An.prototype:o,ei=go?go.valueOf:o,Kc=go?go.toString:o;function h(e){if(Ue(e)&&!ye(e)&&!(e instanceof Ee)){if(e instanceof Mt)return e;if(Re.call(e,"__wrapped__"))return Qf(e)}return new Mt(e)}var Or=function(){function e(){}return function(n){if(!De(n))return{};if(zc)return zc(n);e.prototype=n;var i=new e;return e.prototype=o,i}}();function po(){}function Mt(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=o}h.templateSettings={escape:wl,evaluate:ji,interpolate:Hn,variable:"",imports:{_:h}},h.prototype=po.prototype,h.prototype.constructor=h,Mt.prototype=Or(po.prototype),Mt.prototype.constructor=Mt;function Ee(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Bv(){var e=new Ee(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 Rv(){if(this.__filtered__){var e=new Ee(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Iv(){var e=this.__wrapped__.value(),n=this.__dir__,i=ye(e),a=n<0,f=i?e.length:0,g=H0(0,f,this.__views__),v=g.start,y=g.end,E=y-v,L=a?y:v-1,P=this.__iteratees__,D=P.length,ee=0,ue=rt(E,this.__takeCount__);if(!i||!a&&f==E&&ue==E)return bf(e,this.__actions__);var he=[];e:for(;E--&&ee<ue;){L+=n;for(var Se=-1,me=e[L];++Se<D;){var xe=P[Se],ke=xe.iteratee,kt=xe.type,ut=ke(me);if(kt==ae)me=ut;else if(!ut){if(kt==N)continue e;break e}}he[ee++]=me}return he}Ee.prototype=Or(po.prototype),Ee.prototype.constructor=Ee;function Kn(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function Mv(){this.__data__=Jr?Jr(null):{},this.size=0}function Lv(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function Pv(e){var n=this.__data__;if(Jr){var i=n[e];return i===w?o:i}return Re.call(n,e)?n[e]:o}function qv(e){var n=this.__data__;return Jr?n[e]!==o:Re.call(n,e)}function Vv(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Jr&&n===o?w:n,this}Kn.prototype.clear=Mv,Kn.prototype.delete=Lv,Kn.prototype.get=Pv,Kn.prototype.has=qv,Kn.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 Nv(){this.__data__=[],this.size=0}function $v(e){var n=this.__data__,i=vo(n,e);if(i<0)return!1;var a=n.length-1;return i==a?n.pop():so.call(n,i,1),--this.size,!0}function Dv(e){var n=this.__data__,i=vo(n,e);return i<0?o:n[i][1]}function Fv(e){return vo(this.__data__,e)>-1}function Uv(e,n){var i=this.__data__,a=vo(i,e);return a<0?(++this.size,i.push([e,n])):i[a][1]=n,this}an.prototype.clear=Nv,an.prototype.delete=$v,an.prototype.get=Dv,an.prototype.has=Fv,an.prototype.set=Uv;function un(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 zv(){this.size=0,this.__data__={hash:new Kn,map:new(Zr||an),string:new Kn}}function Hv(e){var n=To(this,e).delete(e);return this.size-=n?1:0,n}function Wv(e){return To(this,e).get(e)}function Gv(e){return To(this,e).has(e)}function jv(e,n){var i=To(this,e),a=i.size;return i.set(e,n),this.size+=i.size==a?0:1,this}un.prototype.clear=zv,un.prototype.delete=Hv,un.prototype.get=Wv,un.prototype.has=Gv,un.prototype.set=jv;function Yn(e){var n=-1,i=e==null?0:e.length;for(this.__data__=new un;++n<i;)this.add(e[n])}function Kv(e){return this.__data__.set(e,w),this}function Yv(e){return this.__data__.has(e)}Yn.prototype.add=Yn.prototype.push=Kv,Yn.prototype.has=Yv;function Gt(e){var n=this.__data__=new an(e);this.size=n.size}function Qv(){this.__data__=new an,this.size=0}function Zv(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}function Xv(e){return this.__data__.get(e)}function Jv(e){return this.__data__.has(e)}function e0(e,n){var i=this.__data__;if(i instanceof an){var a=i.__data__;if(!Zr||a.length<s-1)return a.push([e,n]),this.size=++i.size,this;i=this.__data__=new un(a)}return i.set(e,n),this.size=i.size,this}Gt.prototype.clear=Qv,Gt.prototype.delete=Zv,Gt.prototype.get=Xv,Gt.prototype.has=Jv,Gt.prototype.set=e0;function Yc(e,n){var i=ye(e),a=!i&&er(e),f=!i&&!a&&Mn(e),g=!i&&!a&&!f&&Rr(e),v=i||a||f||g,y=v?zl(e.length,cv):[],E=y.length;for(var L in e)(n||Re.call(e,L))&&!(v&&(L=="length"||f&&(L=="offset"||L=="parent")||g&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||dn(L,E)))&&y.push(L);return y}function Qc(e){var n=e.length;return n?e[la(0,n-1)]:o}function t0(e,n){return Bo(mt(e),Qn(n,0,e.length))}function n0(e){return Bo(mt(e))}function Ql(e,n,i){(i!==o&&!jt(e[n],i)||i===o&&!(n in e))&&sn(e,n,i)}function ti(e,n,i){var a=e[n];(!(Re.call(e,n)&&jt(a,i))||i===o&&!(n in e))&&sn(e,n,i)}function vo(e,n){for(var i=e.length;i--;)if(jt(e[i][0],n))return i;return-1}function r0(e,n,i,a){return Tn(e,function(f,g,v){n(a,f,i(f),v)}),a}function Zc(e,n){return e&&Xt(n,Xe(n),e)}function i0(e,n){return e&&Xt(n,pt(n),e)}function sn(e,n,i){n=="__proto__"&&co?co(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}function Zl(e,n){for(var i=-1,a=n.length,f=I(a),g=e==null;++i<a;)f[i]=g?o:Ra(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,g){var v,y=n&S,E=n&x,L=n&_;if(i&&(v=f?i(e,a,f,g):i(e)),v!==o)return v;if(!De(e))return e;var P=ye(e);if(P){if(v=G0(e),!y)return mt(e,v)}else{var D=it(e),ee=D==Ft||D==yt;if(Mn(e))return Sf(e,y);if(D==ht||D==fe||ee&&!f){if(v=E||ee?{}:Ff(e),!y)return E?P0(e,i0(v,e)):L0(e,Zc(v,e))}else{if(!Le[D])return f?e:{};v=j0(e,D,y)}}g||(g=new Gt);var ue=g.get(e);if(ue)return ue;g.set(e,v),pd(e)?e.forEach(function(me){v.add(Lt(me,n,i,me,e,g))}):md(e)&&e.forEach(function(me,xe){v.set(xe,Lt(me,n,i,xe,e,g))});var he=L?E?va:pa:E?pt:Xe,Se=P?o:he(e);return Rt(Se||e,function(me,xe){Se&&(xe=me,me=e[xe]),ti(v,xe,Lt(me,n,i,xe,e,g))}),v}function o0(e){var n=Xe(e);return function(i){return Xc(i,e,n)}}function Xc(e,n,i){var a=i.length;if(e==null)return!a;for(e=Me(e);a--;){var f=i[a],g=n[f],v=e[f];if(v===o&&!(f in e)||!g(v))return!1}return!0}function Jc(e,n,i){if(typeof e!="function")throw new It(d);return ui(function(){e.apply(o,i)},n)}function ni(e,n,i,a){var f=-1,g=Ji,v=!0,y=e.length,E=[],L=n.length;if(!y)return E;i&&(n=Ne(n,Ct(i))),a?(g=Vl,v=!1):n.length>=s&&(g=Yr,v=!1,n=new Yn(n));e:for(;++f<y;){var P=e[f],D=i==null?P:i(P);if(P=a||P!==0?P:0,v&&D===D){for(var ee=L;ee--;)if(n[ee]===D)continue e;E.push(P)}else g(n,D,a)||E.push(P)}return E}var Tn=Of(Zt),ef=Of(Jl,!0);function l0(e,n){var i=!0;return Tn(e,function(a,f,g){return i=!!n(a,f,g),i}),i}function _o(e,n,i){for(var a=-1,f=e.length;++a<f;){var g=e[a],v=n(g);if(v!=null&&(y===o?v===v&&!Et(v):i(v,y)))var y=v,E=g}return E}function a0(e,n,i,a){var f=e.length;for(i=we(i),i<0&&(i=-i>f?0:f+i),a=a===o||a>f?f:we(a),a<0&&(a+=f),a=i>a?0:_d(a);i<a;)e[i++]=n;return e}function tf(e,n){var i=[];return Tn(e,function(a,f,g){n(a,f,g)&&i.push(a)}),i}function tt(e,n,i,a,f){var g=-1,v=e.length;for(i||(i=Y0),f||(f=[]);++g<v;){var y=e[g];n>0&&i(y)?n>1?tt(y,n-1,i,a,f):kn(f,y):a||(f[f.length]=y)}return f}var Xl=Af(),nf=Af(!0);function Zt(e,n){return e&&Xl(e,n,Xe)}function Jl(e,n){return e&&nf(e,n,Xe)}function bo(e,n){return En(n,function(i){return hn(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 rf(e,n,i){var a=n(e);return ye(e)?a:kn(a,i(e))}function lt(e){return e==null?e===o?mr:nn:jn&&jn in Me(e)?z0(e):n_(e)}function ea(e,n){return e>n}function u0(e,n){return e!=null&&Re.call(e,n)}function s0(e,n){return e!=null&&n in Me(e)}function c0(e,n,i){return e>=rt(n,i)&&e<Ze(n,i)}function ta(e,n,i){for(var a=i?Vl:Ji,f=e[0].length,g=e.length,v=g,y=I(g),E=1/0,L=[];v--;){var P=e[v];v&&n&&(P=Ne(P,Ct(n))),E=rt(P.length,E),y[v]=!i&&(n||f>=120&&P.length>=120)?new Yn(v&&P):o}P=e[0];var D=-1,ee=y[0];e:for(;++D<f&&L.length<E;){var ue=P[D],he=n?n(ue):ue;if(ue=i||ue!==0?ue:0,!(ee?Yr(ee,he):a(L,he,i))){for(v=g;--v;){var Se=y[v];if(!(Se?Yr(Se,he):a(e[v],he,i)))continue e}ee&&ee.push(he),L.push(ue)}}return L}function f0(e,n,i,a){return Zt(e,function(f,g,v){n(a,i(f),g,v)}),a}function ri(e,n,i){n=Rn(n,e),e=Wf(e,n);var a=e==null?e:e[Jt(qt(n))];return a==null?o:St(a,e,i)}function of(e){return Ue(e)&&lt(e)==fe}function d0(e){return Ue(e)&&lt(e)==rn}function h0(e){return Ue(e)&&lt(e)==X}function ii(e,n,i,a,f){return e===n?!0:e==null||n==null||!Ue(e)&&!Ue(n)?e!==e&&n!==n:m0(e,n,i,a,ii,f)}function m0(e,n,i,a,f,g){var v=ye(e),y=ye(n),E=v?H:it(e),L=y?H:it(n);E=E==fe?ht:E,L=L==fe?ht:L;var P=E==ht,D=L==ht,ee=E==L;if(ee&&Mn(e)){if(!Mn(n))return!1;v=!0,P=!1}if(ee&&!P)return g||(g=new Gt),v||Rr(e)?Nf(e,n,i,a,f,g):F0(e,n,E,i,a,f,g);if(!(i&A)){var ue=P&&Re.call(e,"__wrapped__"),he=D&&Re.call(n,"__wrapped__");if(ue||he){var Se=ue?e.value():e,me=he?n.value():n;return g||(g=new Gt),f(Se,me,i,a,g)}}return ee?(g||(g=new Gt),U0(e,n,i,a,f,g)):!1}function g0(e){return Ue(e)&&it(e)==nt}function na(e,n,i,a){var f=i.length,g=f,v=!a;if(e==null)return!g;for(e=Me(e);f--;){var y=i[f];if(v&&y[2]?y[1]!==e[y[0]]:!(y[0]in e))return!1}for(;++f<g;){y=i[f];var E=y[0],L=e[E],P=y[1];if(v&&y[2]){if(L===o&&!(E in e))return!1}else{var D=new Gt;if(a)var ee=a(L,P,E,e,n,D);if(!(ee===o?ii(P,L,A|U,a,D):ee))return!1}}return!0}function lf(e){if(!De(e)||Z0(e))return!1;var n=hn(e)?gv:Ki;return n.test(Jn(e))}function p0(e){return Ue(e)&&lt(e)==Ut}function v0(e){return Ue(e)&&it(e)==Fe}function _0(e){return Ue(e)&&qo(e.length)&&!!Pe[lt(e)]}function af(e){return typeof e=="function"?e:e==null?vt:typeof e=="object"?ye(e)?cf(e[0],e[1]):sf(e):Td(e)}function ra(e){if(!ai(e))return wv(e);var n=[];for(var i in Me(e))Re.call(e,i)&&i!="constructor"&&n.push(i);return n}function b0(e){if(!De(e))return t_(e);var n=ai(e),i=[];for(var a in e)a=="constructor"&&(n||!Re.call(e,a))||i.push(a);return i}function ia(e,n){return e<n}function uf(e,n){var i=-1,a=gt(e)?I(e.length):[];return Tn(e,function(f,g,v){a[++i]=n(f,g,v)}),a}function sf(e){var n=ba(e);return n.length==1&&n[0][2]?zf(n[0][0],n[0][1]):function(i){return i===e||na(i,e,n)}}function cf(e,n){return wa(e)&&Uf(n)?zf(Jt(e),n):function(i){var a=Ra(i,e);return a===o&&a===n?Ia(i,e):ii(n,a,A|U)}}function yo(e,n,i,a,f){e!==n&&Xl(n,function(g,v){if(f||(f=new Gt),De(g))y0(e,n,v,i,yo,a,f);else{var y=a?a(Ca(e,v),g,v+"",e,n,f):o;y===o&&(y=g),Ql(e,v,y)}},pt)}function y0(e,n,i,a,f,g,v){var y=Ca(e,i),E=Ca(n,i),L=v.get(E);if(L){Ql(e,i,L);return}var P=g?g(y,E,i+"",e,n,v):o,D=P===o;if(D){var ee=ye(E),ue=!ee&&Mn(E),he=!ee&&!ue&&Rr(E);P=E,ee||ue||he?ye(y)?P=y:ze(y)?P=mt(y):ue?(D=!1,P=Sf(E,!0)):he?(D=!1,P=Cf(E,!0)):P=[]:si(E)||er(E)?(P=y,er(y)?P=bd(y):(!De(y)||hn(y))&&(P=Ff(E))):D=!1}D&&(v.set(E,P),f(P,E,a,g,v),v.delete(E)),Ql(e,i,P)}function ff(e,n){var i=e.length;if(i)return n+=n<0?i:0,dn(n,i)?e[n]:o}function df(e,n,i){n.length?n=Ne(n,function(g){return ye(g)?function(v){return Zn(v,g.length===1?g[0]:g)}:g}):n=[vt];var a=-1;n=Ne(n,Ct(de()));var f=uf(e,function(g,v,y){var E=Ne(n,function(L){return L(g)});return{criteria:E,index:++a,value:g}});return jp(f,function(g,v){return M0(g,v,i)})}function w0(e,n){return hf(e,n,function(i,a){return Ia(e,a)})}function hf(e,n,i){for(var a=-1,f=n.length,g={};++a<f;){var v=n[a],y=Zn(e,v);i(y,v)&&oi(g,Rn(v,e),y)}return g}function S0(e){return function(n){return Zn(n,e)}}function oa(e,n,i,a){var f=a?Gp:yr,g=-1,v=n.length,y=e;for(e===n&&(n=mt(n)),i&&(y=Ne(e,Ct(i)));++g<v;)for(var E=0,L=n[g],P=i?i(L):L;(E=f(y,P,E,a))>-1;)y!==e&&so.call(y,E,1),so.call(e,E,1);return e}function mf(e,n){for(var i=e?n.length:0,a=i-1;i--;){var f=n[i];if(i==a||f!==g){var g=f;dn(f)?so.call(e,f,1):sa(e,f)}}return e}function la(e,n){return e+ho(jc()*(n-e+1))}function C0(e,n,i,a){for(var f=-1,g=Ze(fo((n-e)/(i||1)),0),v=I(g);g--;)v[a?g:++f]=e,e+=i;return v}function aa(e,n){var i="";if(!e||n<1||n>j)return i;do n%2&&(i+=e),n=ho(n/2),n&&(e+=e);while(n);return i}function Ce(e,n){return xa(Hf(e,n,vt),e+"")}function x0(e){return Qc(Ir(e))}function E0(e,n){var i=Ir(e);return Bo(i,Qn(n,0,i.length))}function oi(e,n,i,a){if(!De(e))return e;n=Rn(n,e);for(var f=-1,g=n.length,v=g-1,y=e;y!=null&&++f<g;){var E=Jt(n[f]),L=i;if(E==="__proto__"||E==="constructor"||E==="prototype")return e;if(f!=v){var P=y[E];L=a?a(P,E,y):o,L===o&&(L=De(P)?P:dn(n[f+1])?[]:{})}ti(y,E,L),y=y[E]}return e}var gf=mo?function(e,n){return mo.set(e,n),e}:vt,k0=co?function(e,n){return co(e,"toString",{configurable:!0,enumerable:!1,value:La(n),writable:!0})}:vt;function O0(e){return Bo(Ir(e))}function Pt(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 g=I(f);++a<f;)g[a]=e[a+n];return g}function A0(e,n){var i;return Tn(e,function(a,f,g){return i=n(a,f,g),!i}),!!i}function wo(e,n,i){var a=0,f=e==null?a:e.length;if(typeof n=="number"&&n===n&&f<=Z){for(;a<f;){var g=a+f>>>1,v=e[g];v!==null&&!Et(v)&&(i?v<=n:v<n)?a=g+1:f=g}return f}return ua(e,n,vt,i)}function ua(e,n,i,a){var f=0,g=e==null?0:e.length;if(g===0)return 0;n=i(n);for(var v=n!==n,y=n===null,E=Et(n),L=n===o;f<g;){var P=ho((f+g)/2),D=i(e[P]),ee=D!==o,ue=D===null,he=D===D,Se=Et(D);if(v)var me=a||he;else L?me=he&&(a||ee):y?me=he&&ee&&(a||!ue):E?me=he&&ee&&!ue&&(a||!Se):ue||Se?me=!1:me=a?D<=n:D<n;me?f=P+1:g=P}return rt(g,T)}function pf(e,n){for(var i=-1,a=e.length,f=0,g=[];++i<a;){var v=e[i],y=n?n(v):v;if(!i||!jt(y,E)){var E=y;g[f++]=v===0?0:v}}return g}function vf(e){return typeof e=="number"?e:Et(e)?ge:+e}function xt(e){if(typeof e=="string")return e;if(ye(e))return Ne(e,xt)+"";if(Et(e))return Kc?Kc.call(e):"";var n=e+"";return n=="0"&&1/e==-ce?"-0":n}function Bn(e,n,i){var a=-1,f=Ji,g=e.length,v=!0,y=[],E=y;if(i)v=!1,f=Vl;else if(g>=s){var L=n?null:$0(e);if(L)return to(L);v=!1,f=Yr,E=new Yn}else E=n?[]:y;e:for(;++a<g;){var P=e[a],D=n?n(P):P;if(P=i||P!==0?P:0,v&&D===D){for(var ee=E.length;ee--;)if(E[ee]===D)continue e;n&&E.push(D),y.push(P)}else f(E,D,i)||(E!==y&&E.push(D),y.push(P))}return y}function sa(e,n){return n=Rn(n,e),e=Wf(e,n),e==null||delete e[Jt(qt(n))]}function _f(e,n,i,a){return oi(e,n,i(Zn(e,n)),a)}function So(e,n,i,a){for(var f=e.length,g=a?f:-1;(a?g--:++g<f)&&n(e[g],g,e););return i?Pt(e,a?0:g,a?g+1:f):Pt(e,a?g+1:0,a?f:g)}function bf(e,n){var i=e;return i instanceof Ee&&(i=i.value()),Nl(n,function(a,f){return f.func.apply(f.thisArg,kn([a],f.args))},i)}function ca(e,n,i){var a=e.length;if(a<2)return a?Bn(e[0]):[];for(var f=-1,g=I(a);++f<a;)for(var v=e[f],y=-1;++y<a;)y!=f&&(g[f]=ni(g[f]||v,e[y],n,i));return Bn(tt(g,1),n,i)}function yf(e,n,i){for(var a=-1,f=e.length,g=n.length,v={};++a<f;){var y=a<g?n[a]:o;i(v,e[a],y)}return v}function fa(e){return ze(e)?e:[]}function da(e){return typeof e=="function"?e:vt}function Rn(e,n){return ye(e)?e:wa(e,n)?[e]:Yf(Te(e))}var T0=Ce;function In(e,n,i){var a=e.length;return i=i===o?a:i,!n&&i>=a?e:Pt(e,n,i)}var wf=pv||function(e){return et.clearTimeout(e)};function Sf(e,n){if(n)return e.slice();var i=e.length,a=Uc?Uc(i):new e.constructor(i);return e.copy(a),a}function ha(e){var n=new e.constructor(e.byteLength);return new ao(n).set(new ao(e)),n}function B0(e,n){var i=n?ha(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function R0(e){var n=new e.constructor(e.source,ln.exec(e));return n.lastIndex=e.lastIndex,n}function I0(e){return ei?Me(ei.call(e)):{}}function Cf(e,n){var i=n?ha(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function xf(e,n){if(e!==n){var i=e!==o,a=e===null,f=e===e,g=Et(e),v=n!==o,y=n===null,E=n===n,L=Et(n);if(!y&&!L&&!g&&e>n||g&&v&&E&&!y&&!L||a&&v&&E||!i&&E||!f)return 1;if(!a&&!g&&!L&&e<n||L&&i&&f&&!a&&!g||y&&i&&f||!v&&f||!E)return-1}return 0}function M0(e,n,i){for(var a=-1,f=e.criteria,g=n.criteria,v=f.length,y=i.length;++a<v;){var E=xf(f[a],g[a]);if(E){if(a>=y)return E;var L=i[a];return E*(L=="desc"?-1:1)}}return e.index-n.index}function Ef(e,n,i,a){for(var f=-1,g=e.length,v=i.length,y=-1,E=n.length,L=Ze(g-v,0),P=I(E+L),D=!a;++y<E;)P[y]=n[y];for(;++f<v;)(D||f<g)&&(P[i[f]]=e[f]);for(;L--;)P[y++]=e[f++];return P}function kf(e,n,i,a){for(var f=-1,g=e.length,v=-1,y=i.length,E=-1,L=n.length,P=Ze(g-y,0),D=I(P+L),ee=!a;++f<P;)D[f]=e[f];for(var ue=f;++E<L;)D[ue+E]=n[E];for(;++v<y;)(ee||f<g)&&(D[ue+i[v]]=e[f++]);return D}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 g=-1,v=n.length;++g<v;){var y=n[g],E=a?a(i[y],e[y],y,i,e):o;E===o&&(E=e[y]),f?sn(i,y,E):ti(i,y,E)}return i}function L0(e,n){return Xt(e,ya(e),n)}function P0(e,n){return Xt(e,$f(e),n)}function Co(e,n){return function(i,a){var f=ye(i)?Dp:r0,g=n?n():{};return f(i,e,de(a,2),g)}}function Ar(e){return Ce(function(n,i){var a=-1,f=i.length,g=f>1?i[f-1]:o,v=f>2?i[2]:o;for(g=e.length>3&&typeof g=="function"?(f--,g):o,v&&at(i[0],i[1],v)&&(g=f<3?o:g,f=1),n=Me(n);++a<f;){var y=i[a];y&&e(n,y,a,g)}return n})}function Of(e,n){return function(i,a){if(i==null)return i;if(!gt(i))return e(i,a);for(var f=i.length,g=n?f:-1,v=Me(i);(n?g--:++g<f)&&a(v[g],g,v)!==!1;);return i}}function Af(e){return function(n,i,a){for(var f=-1,g=Me(n),v=a(n),y=v.length;y--;){var E=v[e?y:++f];if(i(g[E],E,g)===!1)break}return n}}function q0(e,n,i){var a=n&B,f=li(e);function g(){var v=this&&this!==et&&this instanceof g?f:e;return v.apply(a?i:this,arguments)}return g}function Tf(e){return function(n){n=Te(n);var i=wr(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 Tr(e){return function(n){return Nl(Od(kd(n).replace(kp,"")),e,"")}}function li(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=Or(e.prototype),a=e.apply(i,n);return De(a)?a:i}}function V0(e,n,i){var a=li(e);function f(){for(var g=arguments.length,v=I(g),y=g,E=Br(f);y--;)v[y]=arguments[y];var L=g<3&&v[0]!==E&&v[g-1]!==E?[]:On(v,E);if(g-=L.length,g<i)return Lf(e,n,xo,f.placeholder,o,v,L,o,o,i-g);var P=this&&this!==et&&this instanceof f?a:e;return St(P,this,v)}return f}function Bf(e){return function(n,i,a){var f=Me(n);if(!gt(n)){var g=de(i,3);n=Xe(n),i=function(y){return g(f[y],y,f)}}var v=e(n,i,a);return v>-1?f[g?n[v]:v]:o}}function Rf(e){return fn(function(n){var i=n.length,a=i,f=Mt.prototype.thru;for(e&&n.reverse();a--;){var g=n[a];if(typeof g!="function")throw new It(d);if(f&&!v&&Ao(g)=="wrapper")var v=new Mt([],!0)}for(a=v?a:i;++a<i;){g=n[a];var y=Ao(g),E=y=="wrapper"?_a(g):o;E&&Sa(E[0])&&E[1]==(G|V|z|oe)&&!E[4].length&&E[9]==1?v=v[Ao(E[0])].apply(v,E[3]):v=g.length==1&&Sa(g)?v[y]():v.thru(g)}return function(){var L=arguments,P=L[0];if(v&&L.length==1&&ye(P))return v.plant(P).value();for(var D=0,ee=i?n[D].apply(this,L):P;++D<i;)ee=n[D].call(this,ee);return ee}})}function xo(e,n,i,a,f,g,v,y,E,L){var P=n&G,D=n&B,ee=n&W,ue=n&(V|K),he=n&q,Se=ee?o:li(e);function me(){for(var xe=arguments.length,ke=I(xe),kt=xe;kt--;)ke[kt]=arguments[kt];if(ue)var ut=Br(me),Ot=Yp(ke,ut);if(a&&(ke=Ef(ke,a,f,ue)),g&&(ke=kf(ke,g,v,ue)),xe-=Ot,ue&&xe<L){var He=On(ke,ut);return Lf(e,n,xo,me.placeholder,i,ke,He,y,E,L-xe)}var Kt=D?i:this,gn=ee?Kt[e]:e;return xe=ke.length,y?ke=r_(ke,y):he&&xe>1&&ke.reverse(),P&&E<xe&&(ke.length=E),this&&this!==et&&this instanceof me&&(gn=Se||li(gn)),gn.apply(Kt,ke)}return me}function If(e,n){return function(i,a){return f0(i,e,n(a),{})}}function Eo(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=xt(i),a=xt(a)):(i=vf(i),a=vf(a)),f=e(i,a)}return f}}function ma(e){return fn(function(n){return n=Ne(n,Ct(de())),Ce(function(i){var a=this;return e(n,function(f){return St(f,a,i)})})})}function ko(e,n){n=n===o?" ":xt(n);var i=n.length;if(i<2)return i?aa(n,e):n;var a=aa(n,fo(e/Sr(n)));return wr(n)?In(Wt(a),0,e).join(""):a.slice(0,e)}function N0(e,n,i,a){var f=n&B,g=li(e);function v(){for(var y=-1,E=arguments.length,L=-1,P=a.length,D=I(P+E),ee=this&&this!==et&&this instanceof v?g:e;++L<P;)D[L]=a[L];for(;E--;)D[L++]=arguments[++y];return St(ee,f?i:this,D)}return v}function Mf(e){return function(n,i,a){return a&&typeof a!="number"&&at(n,i,a)&&(i=a=o),n=mn(n),i===o?(i=n,n=0):i=mn(i),a=a===o?n<i?1:-1:mn(a),C0(n,i,a,e)}}function Oo(e){return function(n,i){return typeof n=="string"&&typeof i=="string"||(n=Vt(n),i=Vt(i)),e(n,i)}}function Lf(e,n,i,a,f,g,v,y,E,L){var P=n&V,D=P?v:o,ee=P?o:v,ue=P?g:o,he=P?o:g;n|=P?z:Y,n&=~(P?Y:z),n&F||(n&=~(B|W));var Se=[e,n,f,ue,D,he,ee,y,E,L],me=i.apply(o,Se);return Sa(e)&&Gf(me,Se),me.placeholder=a,jf(me,e,n)}function ga(e){var n=Qe[e];return function(i,a){if(i=Vt(i),a=a==null?0:rt(we(a),292),a&&Gc(i)){var f=(Te(i)+"e").split("e"),g=n(f[0]+"e"+(+f[1]+a));return f=(Te(g)+"e").split("e"),+(f[0]+"e"+(+f[1]-a))}return n(i)}}var $0=Er&&1/to(new Er([,-0]))[1]==ce?function(e){return new Er(e)}:Va;function Pf(e){return function(n){var i=it(n);return i==nt?Wl(n):i==Fe?nv(n):Kp(n,e(n))}}function cn(e,n,i,a,f,g,v,y){var E=n&W;if(!E&&typeof e!="function")throw new It(d);var L=a?a.length:0;if(L||(n&=~(z|Y),a=f=o),v=v===o?v:Ze(we(v),0),y=y===o?y:we(y),L-=f?f.length:0,n&Y){var P=a,D=f;a=f=o}var ee=E?o:_a(e),ue=[e,n,i,a,f,P,D,g,v,y];if(ee&&e_(ue,ee),e=ue[0],n=ue[1],i=ue[2],a=ue[3],f=ue[4],y=ue[9]=ue[9]===o?E?0:e.length:Ze(ue[9]-L,0),!y&&n&(V|K)&&(n&=~(V|K)),!n||n==B)var he=q0(e,n,i);else n==V||n==K?he=V0(e,n,y):(n==z||n==(B|z))&&!f.length?he=N0(e,n,i,a):he=xo.apply(o,ue);var Se=ee?gf:Gf;return jf(Se(he,ue),e,n)}function qf(e,n,i,a){return e===o||jt(e,xr[i])&&!Re.call(a,i)?n:e}function Vf(e,n,i,a,f,g){return De(e)&&De(n)&&(g.set(n,e),yo(e,n,o,Vf,g),g.delete(n)),e}function D0(e){return si(e)?o:e}function Nf(e,n,i,a,f,g){var v=i&A,y=e.length,E=n.length;if(y!=E&&!(v&&E>y))return!1;var L=g.get(e),P=g.get(n);if(L&&P)return L==n&&P==e;var D=-1,ee=!0,ue=i&U?new Yn:o;for(g.set(e,n),g.set(n,e);++D<y;){var he=e[D],Se=n[D];if(a)var me=v?a(Se,he,D,n,e,g):a(he,Se,D,e,n,g);if(me!==o){if(me)continue;ee=!1;break}if(ue){if(!$l(n,function(xe,ke){if(!Yr(ue,ke)&&(he===xe||f(he,xe,i,a,g)))return ue.push(ke)})){ee=!1;break}}else if(!(he===Se||f(he,Se,i,a,g))){ee=!1;break}}return g.delete(e),g.delete(n),ee}function F0(e,n,i,a,f,g,v){switch(i){case yn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case rn:return!(e.byteLength!=n.byteLength||!g(new ao(e),new ao(n)));case Oe:case X:case wt:return jt(+e,+n);case ot:return e.name==n.name&&e.message==n.message;case Ut:case Ye:return e==n+"";case nt:var y=Wl;case Fe:var E=a&A;if(y||(y=to),e.size!=n.size&&!E)return!1;var L=v.get(e);if(L)return L==n;a|=U,v.set(e,n);var P=Nf(y(e),y(n),a,f,g,v);return v.delete(e),P;case zt:if(ei)return ei.call(e)==ei.call(n)}return!1}function U0(e,n,i,a,f,g){var v=i&A,y=pa(e),E=y.length,L=pa(n),P=L.length;if(E!=P&&!v)return!1;for(var D=E;D--;){var ee=y[D];if(!(v?ee in n:Re.call(n,ee)))return!1}var ue=g.get(e),he=g.get(n);if(ue&&he)return ue==n&&he==e;var Se=!0;g.set(e,n),g.set(n,e);for(var me=v;++D<E;){ee=y[D];var xe=e[ee],ke=n[ee];if(a)var kt=v?a(ke,xe,ee,n,e,g):a(xe,ke,ee,e,n,g);if(!(kt===o?xe===ke||f(xe,ke,i,a,g):kt)){Se=!1;break}me||(me=ee=="constructor")}if(Se&&!me){var ut=e.constructor,Ot=n.constructor;ut!=Ot&&"constructor"in e&&"constructor"in n&&!(typeof ut=="function"&&ut instanceof ut&&typeof Ot=="function"&&Ot instanceof Ot)&&(Se=!1)}return g.delete(e),g.delete(n),Se}function fn(e){return xa(Hf(e,o,Jf),e+"")}function pa(e){return rf(e,Xe,ya)}function va(e){return rf(e,pt,$f)}var _a=mo?function(e){return mo.get(e)}:Va;function Ao(e){for(var n=e.name+"",i=kr[n],a=Re.call(kr,n)?i.length:0;a--;){var f=i[a],g=f.func;if(g==null||g==e)return f.name}return n}function Br(e){var n=Re.call(h,"placeholder")?h:e;return n.placeholder}function de(){var e=h.iteratee||Pa;return e=e===Pa?af:e,arguments.length?e(arguments[0],arguments[1]):e}function To(e,n){var i=e.__data__;return Q0(n)?i[typeof n=="string"?"string":"hash"]:i.map}function ba(e){for(var n=Xe(e),i=n.length;i--;){var a=n[i],f=e[a];n[i]=[a,f,Uf(f)]}return n}function Xn(e,n){var i=Jp(e,n);return lf(i)?i:o}function z0(e){var n=Re.call(e,jn),i=e[jn];try{e[jn]=o;var a=!0}catch{}var f=oo.call(e);return a&&(n?e[jn]=i:delete e[jn]),f}var ya=jl?function(e){return e==null?[]:(e=Me(e),En(jl(e),function(n){return Hc.call(e,n)}))}:Na,$f=jl?function(e){for(var n=[];e;)kn(n,ya(e)),e=uo(e);return n}:Na,it=lt;(Kl&&it(new Kl(new ArrayBuffer(1)))!=yn||Zr&&it(new Zr)!=nt||Yl&&it(Yl.resolve())!=bn||Er&&it(new Er)!=Fe||Xr&&it(new Xr)!=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 kv:return nt;case Ov:return bn;case Av:return Fe;case Tv:return Fn}return n});function H0(e,n,i){for(var a=-1,f=i.length;++a<f;){var g=i[a],v=g.size;switch(g.type){case"drop":e+=v;break;case"dropRight":n-=v;break;case"take":n=rt(n,e+v);break;case"takeRight":e=Ze(e,n-v);break}}return{start:e,end:n}}function W0(e){var n=e.match(kl);return n?n[1].split(Ol):[]}function Df(e,n,i){n=Rn(n,e);for(var a=-1,f=n.length,g=!1;++a<f;){var v=Jt(n[a]);if(!(g=e!=null&&i(e,v)))break;e=e[v]}return g||++a!=f?g:(f=e==null?0:e.length,!!f&&qo(f)&&dn(v,f)&&(ye(e)||er(e)))}function G0(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 Ff(e){return typeof e.constructor=="function"&&!ai(e)?Or(uo(e)):{}}function j0(e,n,i){var a=e.constructor;switch(n){case rn:return ha(e);case Oe:case X:return new a(+e);case yn:return B0(e,i);case gr:case Ht:case Qt:case wn:case Hr:case Un:case zn:case pr:case vr:return Cf(e,i);case nt:return new a;case wt:case Ye:return new a(e);case Ut:return R0(e);case Fe:return new a;case zt:return I0(e)}}function K0(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(El,`{
8
+ */co.exports,function(t,l){(function(){var i,u="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",h="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",E=500,p="__lodash_placeholder__",w=1,k=2,C=4,B=1,U=2,T=1,G=2,F=4,N=8,Q=16,H=32,K=64,j=128,ie=256,P=512,$=30,Y="...",O=800,te=16,V=1,le=2,ae=3,z=1/0,se=9007199254740991,Ae=17976931348623157e292,me=NaN,R=4294967295,A=R-1,Z=R>>>1,ge=[["ary",j],["bind",T],["bindKey",G],["curry",N],["curryRight",Q],["flip",P],["partial",H],["partialRight",K],["rearg",ie]],ce="[object Arguments]",W="[object Array]",re="[object AsyncFunction]",Ee="[object Boolean]",X="[object Date]",$e="[object DOMException]",at="[object Error]",Ft="[object Function]",bt="[object GeneratorFunction]",rt="[object Map]",wt="[object Number]",tn="[object Null]",ht="[object Object]",yn="[object Promise]",Ur="[object Proxy]",zt="[object RegExp]",Fe="[object Set]",Qe="[object String]",Ut="[object Symbol]",mr="[object Undefined]",Un="[object WeakMap]",zo="[object WeakSet]",nn="[object ArrayBuffer]",bn="[object DataView]",gr="[object Float32Array]",Ht="[object Float64Array]",Yt="[object Int8Array]",wn="[object Int16Array]",Hr="[object Int32Array]",Hn="[object Uint8Array]",Wn="[object Uint8ClampedArray]",pr="[object Uint16Array]",vr="[object Uint32Array]",Uo=/\b__p \+= '';/g,Ho=/\b(__p \+=) '' \+/g,Wo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wr=/&(?:amp|lt|gt|quot|#39);/g,Go=/[&<>"']/g,yl=RegExp(Wr.source),jo=RegExp(Go.source),bl=/<%-([\s\S]+?)%>/g,Ko=/<%([\s\S]+?)%>/g,Gn=/<%=([\s\S]+?)%>/g,jn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sn=/^\w*$/,wl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gr=/[\\^$.*+?()[\]{}|]/g,Sl=RegExp(Gr.source),jr=/^\s+/,Cl=/\s/,xl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,El=/,? & /,Ol=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cn=/[()=,{}\[\]\/\s]/,xn=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,on=/\w*$/,Kr=/^[-+]0x[0-9a-f]+$/i,Al=/^0b[01]+$/i,Qo=/^\[object .+?Constructor\]$/,Yo=/^0o[0-7]+$/i,Zo=/^(?:0|[1-9]\d*)$/,Xo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_=/($^)/,ne=/['\n\r\u2028\u2029\\]/g,J="\\ud800-\\udfff",ve="\\u0300-\\u036f",Ie="\\ufe20-\\ufe2f",Te="\\u20d0-\\u20ff",Ke=ve+Ie+Te,Ve="\\u2700-\\u27bf",_r="a-z\\xdf-\\xf6\\xf8-\\xff",vp="\\xac\\xb1\\xd7\\xf7",_p="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yp="\\u2000-\\u206f",bp=" \\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",uc="A-Z\\xc0-\\xd6\\xd8-\\xde",sc="\\ufe0e\\ufe0f",cc=vp+_p+yp+bp,Bl="['’]",wp="["+J+"]",fc="["+cc+"]",Jo="["+Ke+"]",dc="\\d+",Sp="["+Ve+"]",hc="["+_r+"]",mc="[^"+J+cc+dc+Ve+_r+uc+"]",Tl="\\ud83c[\\udffb-\\udfff]",Cp="(?:"+Jo+"|"+Tl+")",gc="[^"+J+"]",Rl="(?:\\ud83c[\\udde6-\\uddff]){2}",Il="[\\ud800-\\udbff][\\udc00-\\udfff]",yr="["+uc+"]",pc="\\u200d",vc="(?:"+hc+"|"+mc+")",xp="(?:"+yr+"|"+mc+")",_c="(?:"+Bl+"(?:d|ll|m|re|s|t|ve))?",yc="(?:"+Bl+"(?:D|LL|M|RE|S|T|VE))?",bc=Cp+"?",wc="["+sc+"]?",kp="(?:"+pc+"(?:"+[gc,Rl,Il].join("|")+")"+wc+bc+")*",Ep="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Op="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sc=wc+bc+kp,Ap="(?:"+[Sp,Rl,Il].join("|")+")"+Sc,Bp="(?:"+[gc+Jo+"?",Jo,Rl,Il,wp].join("|")+")",Tp=RegExp(Bl,"g"),Rp=RegExp(Jo,"g"),Ml=RegExp(Tl+"(?="+Tl+")|"+Bp+Sc,"g"),Ip=RegExp([yr+"?"+hc+"+"+_c+"(?="+[fc,yr,"$"].join("|")+")",xp+"+"+yc+"(?="+[fc,yr+vc,"$"].join("|")+")",yr+"?"+vc+"+"+_c,yr+"+"+yc,Op,Ep,dc,Ap].join("|"),"g"),Mp=RegExp("["+pc+J+Ke+sc+"]"),Lp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qp=["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"],Pp=-1,qe={};qe[gr]=qe[Ht]=qe[Yt]=qe[wn]=qe[Hr]=qe[Hn]=qe[Wn]=qe[pr]=qe[vr]=!0,qe[ce]=qe[W]=qe[nn]=qe[Ee]=qe[bn]=qe[X]=qe[at]=qe[Ft]=qe[rt]=qe[wt]=qe[ht]=qe[zt]=qe[Fe]=qe[Qe]=qe[Un]=!1;var Le={};Le[ce]=Le[W]=Le[nn]=Le[bn]=Le[Ee]=Le[X]=Le[gr]=Le[Ht]=Le[Yt]=Le[wn]=Le[Hr]=Le[rt]=Le[wt]=Le[ht]=Le[zt]=Le[Fe]=Le[Qe]=Le[Ut]=Le[Hn]=Le[Wn]=Le[pr]=Le[vr]=!0,Le[at]=Le[Ft]=Le[Un]=!1;var Vp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Np={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},$p={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Dp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fp=parseFloat,zp=parseInt,Cc=typeof pe=="object"&&pe&&pe.Object===Object&&pe,Up=typeof self=="object"&&self&&self.Object===Object&&self,tt=Cc||Up||Function("return this")(),Ll=l&&!l.nodeType&&l,Kn=Ll&&!0&&t&&!t.nodeType&&t,xc=Kn&&Kn.exports===Ll,ql=xc&&Cc.process,Tt=function(){try{var S=Kn&&Kn.require&&Kn.require("util").types;return S||ql&&ql.binding&&ql.binding("util")}catch{}}(),kc=Tt&&Tt.isArrayBuffer,Ec=Tt&&Tt.isDate,Oc=Tt&&Tt.isMap,Ac=Tt&&Tt.isRegExp,Bc=Tt&&Tt.isSet,Tc=Tt&&Tt.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 Hp(S,M,I,oe){for(var _e=-1,Oe=S==null?0:S.length;++_e<Oe;){var Ye=S[_e];M(oe,Ye,I(Ye),S)}return oe}function Rt(S,M){for(var I=-1,oe=S==null?0:S.length;++I<oe&&M(S[I],I,S)!==!1;);return S}function Wp(S,M){for(var I=S==null?0:S.length;I--&&M(S[I],I,S)!==!1;);return S}function Rc(S,M){for(var I=-1,oe=S==null?0:S.length;++I<oe;)if(!M(S[I],I,S))return!1;return!0}function kn(S,M){for(var I=-1,oe=S==null?0:S.length,_e=0,Oe=[];++I<oe;){var Ye=S[I];M(Ye,I,S)&&(Oe[_e++]=Ye)}return Oe}function ei(S,M){var I=S==null?0:S.length;return!!I&&br(S,M,0)>-1}function Pl(S,M,I){for(var oe=-1,_e=S==null?0:S.length;++oe<_e;)if(I(M,S[oe]))return!0;return!1}function Ne(S,M){for(var I=-1,oe=S==null?0:S.length,_e=Array(oe);++I<oe;)_e[I]=M(S[I],I,S);return _e}function En(S,M){for(var I=-1,oe=M.length,_e=S.length;++I<oe;)S[_e+I]=M[I];return S}function Vl(S,M,I,oe){var _e=-1,Oe=S==null?0:S.length;for(oe&&Oe&&(I=S[++_e]);++_e<Oe;)I=M(I,S[_e],_e,S);return I}function Gp(S,M,I,oe){var _e=S==null?0:S.length;for(oe&&_e&&(I=S[--_e]);_e--;)I=M(I,S[_e],_e,S);return I}function Nl(S,M){for(var I=-1,oe=S==null?0:S.length;++I<oe;)if(M(S[I],I,S))return!0;return!1}var jp=$l("length");function Kp(S){return S.split("")}function Qp(S){return S.match(Ol)||[]}function Ic(S,M,I){var oe;return I(S,function(_e,Oe,Ye){if(M(_e,Oe,Ye))return oe=Oe,!1}),oe}function ti(S,M,I,oe){for(var _e=S.length,Oe=I+(oe?1:-1);oe?Oe--:++Oe<_e;)if(M(S[Oe],Oe,S))return Oe;return-1}function br(S,M,I){return M===M?av(S,M,I):ti(S,Mc,I)}function Yp(S,M,I,oe){for(var _e=I-1,Oe=S.length;++_e<Oe;)if(oe(S[_e],M))return _e;return-1}function Mc(S){return S!==S}function Lc(S,M){var I=S==null?0:S.length;return I?Fl(S,M)/I:me}function $l(S){return function(M){return M==null?i:M[S]}}function Dl(S){return function(M){return S==null?i:S[M]}}function qc(S,M,I,oe,_e){return _e(S,function(Oe,Ye,Me){I=oe?(oe=!1,Oe):M(I,Oe,Ye,Me)}),I}function Zp(S,M){var I=S.length;for(S.sort(M);I--;)S[I]=S[I].value;return S}function Fl(S,M){for(var I,oe=-1,_e=S.length;++oe<_e;){var Oe=M(S[oe]);Oe!==i&&(I=I===i?Oe:I+Oe)}return I}function zl(S,M){for(var I=-1,oe=Array(S);++I<S;)oe[I]=M(I);return oe}function Xp(S,M){return Ne(M,function(I){return[I,S[I]]})}function Pc(S){return S&&S.slice(0,Dc(S)+1).replace(jr,"")}function Ct(S){return function(M){return S(M)}}function Ul(S,M){return Ne(M,function(I){return S[I]})}function Qr(S,M){return S.has(M)}function Vc(S,M){for(var I=-1,oe=S.length;++I<oe&&br(M,S[I],0)>-1;);return I}function Nc(S,M){for(var I=S.length;I--&&br(M,S[I],0)>-1;);return I}function Jp(S,M){for(var I=S.length,oe=0;I--;)S[I]===M&&++oe;return oe}var ev=Dl(Vp),tv=Dl(Np);function nv(S){return"\\"+Dp[S]}function rv(S,M){return S==null?i:S[M]}function wr(S){return Mp.test(S)}function ov(S){return Lp.test(S)}function iv(S){for(var M,I=[];!(M=S.next()).done;)I.push(M.value);return I}function Hl(S){var M=-1,I=Array(S.size);return S.forEach(function(oe,_e){I[++M]=[_e,oe]}),I}function $c(S,M){return function(I){return S(M(I))}}function On(S,M){for(var I=-1,oe=S.length,_e=0,Oe=[];++I<oe;){var Ye=S[I];(Ye===M||Ye===p)&&(S[I]=p,Oe[_e++]=I)}return Oe}function ni(S){var M=-1,I=Array(S.size);return S.forEach(function(oe){I[++M]=oe}),I}function lv(S){var M=-1,I=Array(S.size);return S.forEach(function(oe){I[++M]=[oe,oe]}),I}function av(S,M,I){for(var oe=I-1,_e=S.length;++oe<_e;)if(S[oe]===M)return oe;return-1}function uv(S,M,I){for(var oe=I+1;oe--;)if(S[oe]===M)return oe;return oe}function Sr(S){return wr(S)?cv(S):jp(S)}function Wt(S){return wr(S)?fv(S):Kp(S)}function Dc(S){for(var M=S.length;M--&&Cl.test(S.charAt(M)););return M}var sv=Dl($p);function cv(S){for(var M=Ml.lastIndex=0;Ml.test(S);)++M;return M}function fv(S){return S.match(Ml)||[]}function dv(S){return S.match(Ip)||[]}var hv=function S(M){M=M==null?tt:Cr.defaults(tt.Object(),M,Cr.pick(tt,qp));var I=M.Array,oe=M.Date,_e=M.Error,Oe=M.Function,Ye=M.Math,Me=M.Object,Wl=M.RegExp,mv=M.String,It=M.TypeError,ri=I.prototype,gv=Oe.prototype,xr=Me.prototype,oi=M["__core-js_shared__"],ii=gv.toString,Re=xr.hasOwnProperty,pv=0,Fc=function(){var e=/[^.]+$/.exec(oi&&oi.keys&&oi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),li=xr.toString,vv=ii.call(Me),_v=tt._,yv=Wl("^"+ii.call(Re).replace(Gr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ai=xc?M.Buffer:i,An=M.Symbol,ui=M.Uint8Array,zc=ai?ai.allocUnsafe:i,si=$c(Me.getPrototypeOf,Me),Uc=Me.create,Hc=xr.propertyIsEnumerable,ci=ri.splice,Wc=An?An.isConcatSpreadable:i,Yr=An?An.iterator:i,Qn=An?An.toStringTag:i,fi=function(){try{var e=er(Me,"defineProperty");return e({},"",{}),e}catch{}}(),bv=M.clearTimeout!==tt.clearTimeout&&M.clearTimeout,wv=oe&&oe.now!==tt.Date.now&&oe.now,Sv=M.setTimeout!==tt.setTimeout&&M.setTimeout,di=Ye.ceil,hi=Ye.floor,Gl=Me.getOwnPropertySymbols,Cv=ai?ai.isBuffer:i,Gc=M.isFinite,xv=ri.join,kv=$c(Me.keys,Me),Ze=Ye.max,ot=Ye.min,Ev=oe.now,Ov=M.parseInt,jc=Ye.random,Av=ri.reverse,jl=er(M,"DataView"),Zr=er(M,"Map"),Kl=er(M,"Promise"),kr=er(M,"Set"),Xr=er(M,"WeakMap"),Jr=er(Me,"create"),mi=Xr&&new Xr,Er={},Bv=tr(jl),Tv=tr(Zr),Rv=tr(Kl),Iv=tr(kr),Mv=tr(Xr),gi=An?An.prototype:i,eo=gi?gi.valueOf:i,Kc=gi?gi.toString:i;function m(e){if(ze(e)&&!ye(e)&&!(e instanceof xe)){if(e instanceof Mt)return e;if(Re.call(e,"__wrapped__"))return Yf(e)}return new Mt(e)}var Or=function(){function e(){}return function(n){if(!De(n))return{};if(Uc)return Uc(n);e.prototype=n;var o=new e;return e.prototype=i,o}}();function pi(){}function Mt(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}m.templateSettings={escape:bl,evaluate:Ko,interpolate:Gn,variable:"",imports:{_:m}},m.prototype=pi.prototype,m.prototype.constructor=m,Mt.prototype=Or(pi.prototype),Mt.prototype.constructor=Mt;function xe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Lv(){var e=new xe(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 qv(){if(this.__filtered__){var e=new xe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Pv(){var e=this.__wrapped__.value(),n=this.__dir__,o=ye(e),a=n<0,f=o?e.length:0,g=K0(0,f,this.__views__),v=g.start,y=g.end,x=y-v,L=a?y:v-1,q=this.__iteratees__,D=q.length,ee=0,ue=ot(x,this.__takeCount__);if(!o||!a&&f==x&&ue==x)return yf(e,this.__actions__);var de=[];e:for(;x--&&ee<ue;){L+=n;for(var we=-1,he=e[L];++we<D;){var Ce=q[we],ke=Ce.iteratee,Et=Ce.type,ct=ke(he);if(Et==le)he=ct;else if(!ct){if(Et==V)continue e;break e}}de[ee++]=he}return de}xe.prototype=Or(pi.prototype),xe.prototype.constructor=xe;function Yn(e){var n=-1,o=e==null?0:e.length;for(this.clear();++n<o;){var a=e[n];this.set(a[0],a[1])}}function Vv(){this.__data__=Jr?Jr(null):{},this.size=0}function Nv(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function $v(e){var n=this.__data__;if(Jr){var o=n[e];return o===b?i:o}return Re.call(n,e)?n[e]:i}function Dv(e){var n=this.__data__;return Jr?n[e]!==i:Re.call(n,e)}function Fv(e,n){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Jr&&n===i?b:n,this}Yn.prototype.clear=Vv,Yn.prototype.delete=Nv,Yn.prototype.get=$v,Yn.prototype.has=Dv,Yn.prototype.set=Fv;function ln(e){var n=-1,o=e==null?0:e.length;for(this.clear();++n<o;){var a=e[n];this.set(a[0],a[1])}}function zv(){this.__data__=[],this.size=0}function Uv(e){var n=this.__data__,o=vi(n,e);if(o<0)return!1;var a=n.length-1;return o==a?n.pop():ci.call(n,o,1),--this.size,!0}function Hv(e){var n=this.__data__,o=vi(n,e);return o<0?i:n[o][1]}function Wv(e){return vi(this.__data__,e)>-1}function Gv(e,n){var o=this.__data__,a=vi(o,e);return a<0?(++this.size,o.push([e,n])):o[a][1]=n,this}ln.prototype.clear=zv,ln.prototype.delete=Uv,ln.prototype.get=Hv,ln.prototype.has=Wv,ln.prototype.set=Gv;function an(e){var n=-1,o=e==null?0:e.length;for(this.clear();++n<o;){var a=e[n];this.set(a[0],a[1])}}function jv(){this.size=0,this.__data__={hash:new Yn,map:new(Zr||ln),string:new Yn}}function Kv(e){var n=Bi(this,e).delete(e);return this.size-=n?1:0,n}function Qv(e){return Bi(this,e).get(e)}function Yv(e){return Bi(this,e).has(e)}function Zv(e,n){var o=Bi(this,e),a=o.size;return o.set(e,n),this.size+=o.size==a?0:1,this}an.prototype.clear=jv,an.prototype.delete=Kv,an.prototype.get=Qv,an.prototype.has=Yv,an.prototype.set=Zv;function Zn(e){var n=-1,o=e==null?0:e.length;for(this.__data__=new an;++n<o;)this.add(e[n])}function Xv(e){return this.__data__.set(e,b),this}function Jv(e){return this.__data__.has(e)}Zn.prototype.add=Zn.prototype.push=Xv,Zn.prototype.has=Jv;function Gt(e){var n=this.__data__=new ln(e);this.size=n.size}function e0(){this.__data__=new ln,this.size=0}function t0(e){var n=this.__data__,o=n.delete(e);return this.size=n.size,o}function n0(e){return this.__data__.get(e)}function r0(e){return this.__data__.has(e)}function o0(e,n){var o=this.__data__;if(o instanceof ln){var a=o.__data__;if(!Zr||a.length<s-1)return a.push([e,n]),this.size=++o.size,this;o=this.__data__=new an(a)}return o.set(e,n),this.size=o.size,this}Gt.prototype.clear=e0,Gt.prototype.delete=t0,Gt.prototype.get=n0,Gt.prototype.has=r0,Gt.prototype.set=o0;function Qc(e,n){var o=ye(e),a=!o&&nr(e),f=!o&&!a&&Mn(e),g=!o&&!a&&!f&&Rr(e),v=o||a||f||g,y=v?zl(e.length,mv):[],x=y.length;for(var L in e)(n||Re.call(e,L))&&!(v&&(L=="length"||f&&(L=="offset"||L=="parent")||g&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||fn(L,x)))&&y.push(L);return y}function Yc(e){var n=e.length;return n?e[ia(0,n-1)]:i}function i0(e,n){return Ti(mt(e),Xn(n,0,e.length))}function l0(e){return Ti(mt(e))}function Ql(e,n,o){(o!==i&&!jt(e[n],o)||o===i&&!(n in e))&&un(e,n,o)}function to(e,n,o){var a=e[n];(!(Re.call(e,n)&&jt(a,o))||o===i&&!(n in e))&&un(e,n,o)}function vi(e,n){for(var o=e.length;o--;)if(jt(e[o][0],n))return o;return-1}function a0(e,n,o,a){return Bn(e,function(f,g,v){n(a,f,o(f),v)}),a}function Zc(e,n){return e&&Xt(n,Xe(n),e)}function u0(e,n){return e&&Xt(n,pt(n),e)}function un(e,n,o){n=="__proto__"&&fi?fi(e,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[n]=o}function Yl(e,n){for(var o=-1,a=n.length,f=I(a),g=e==null;++o<a;)f[o]=g?i:Ta(e,n[o]);return f}function Xn(e,n,o){return e===e&&(o!==i&&(e=e<=o?e:o),n!==i&&(e=e>=n?e:n)),e}function Lt(e,n,o,a,f,g){var v,y=n&w,x=n&k,L=n&C;if(o&&(v=f?o(e,a,f,g):o(e)),v!==i)return v;if(!De(e))return e;var q=ye(e);if(q){if(v=Y0(e),!y)return mt(e,v)}else{var D=it(e),ee=D==Ft||D==bt;if(Mn(e))return Sf(e,y);if(D==ht||D==ce||ee&&!f){if(v=x||ee?{}:Ff(e),!y)return x?$0(e,u0(v,e)):N0(e,Zc(v,e))}else{if(!Le[D])return f?e:{};v=Z0(e,D,y)}}g||(g=new Gt);var ue=g.get(e);if(ue)return ue;g.set(e,v),pd(e)?e.forEach(function(he){v.add(Lt(he,n,o,he,e,g))}):md(e)&&e.forEach(function(he,Ce){v.set(Ce,Lt(he,n,o,Ce,e,g))});var de=L?x?pa:ga:x?pt:Xe,we=q?i:de(e);return Rt(we||e,function(he,Ce){we&&(Ce=he,he=e[Ce]),to(v,Ce,Lt(he,n,o,Ce,e,g))}),v}function s0(e){var n=Xe(e);return function(o){return Xc(o,e,n)}}function Xc(e,n,o){var a=o.length;if(e==null)return!a;for(e=Me(e);a--;){var f=o[a],g=n[f],v=e[f];if(v===i&&!(f in e)||!g(v))return!1}return!0}function Jc(e,n,o){if(typeof e!="function")throw new It(d);return uo(function(){e.apply(i,o)},n)}function no(e,n,o,a){var f=-1,g=ei,v=!0,y=e.length,x=[],L=n.length;if(!y)return x;o&&(n=Ne(n,Ct(o))),a?(g=Pl,v=!1):n.length>=s&&(g=Qr,v=!1,n=new Zn(n));e:for(;++f<y;){var q=e[f],D=o==null?q:o(q);if(q=a||q!==0?q:0,v&&D===D){for(var ee=L;ee--;)if(n[ee]===D)continue e;x.push(q)}else g(n,D,a)||x.push(q)}return x}var Bn=Of(Zt),ef=Of(Xl,!0);function c0(e,n){var o=!0;return Bn(e,function(a,f,g){return o=!!n(a,f,g),o}),o}function _i(e,n,o){for(var a=-1,f=e.length;++a<f;){var g=e[a],v=n(g);if(v!=null&&(y===i?v===v&&!kt(v):o(v,y)))var y=v,x=g}return x}function f0(e,n,o,a){var f=e.length;for(o=be(o),o<0&&(o=-o>f?0:f+o),a=a===i||a>f?f:be(a),a<0&&(a+=f),a=o>a?0:_d(a);o<a;)e[o++]=n;return e}function tf(e,n){var o=[];return Bn(e,function(a,f,g){n(a,f,g)&&o.push(a)}),o}function nt(e,n,o,a,f){var g=-1,v=e.length;for(o||(o=J0),f||(f=[]);++g<v;){var y=e[g];n>0&&o(y)?n>1?nt(y,n-1,o,a,f):En(f,y):a||(f[f.length]=y)}return f}var Zl=Af(),nf=Af(!0);function Zt(e,n){return e&&Zl(e,n,Xe)}function Xl(e,n){return e&&nf(e,n,Xe)}function yi(e,n){return kn(n,function(o){return dn(e[o])})}function Jn(e,n){n=Rn(n,e);for(var o=0,a=n.length;e!=null&&o<a;)e=e[Jt(n[o++])];return o&&o==a?e:i}function rf(e,n,o){var a=n(e);return ye(e)?a:En(a,o(e))}function ut(e){return e==null?e===i?mr:tn:Qn&&Qn in Me(e)?j0(e):l_(e)}function Jl(e,n){return e>n}function d0(e,n){return e!=null&&Re.call(e,n)}function h0(e,n){return e!=null&&n in Me(e)}function m0(e,n,o){return e>=ot(n,o)&&e<Ze(n,o)}function ea(e,n,o){for(var a=o?Pl:ei,f=e[0].length,g=e.length,v=g,y=I(g),x=1/0,L=[];v--;){var q=e[v];v&&n&&(q=Ne(q,Ct(n))),x=ot(q.length,x),y[v]=!o&&(n||f>=120&&q.length>=120)?new Zn(v&&q):i}q=e[0];var D=-1,ee=y[0];e:for(;++D<f&&L.length<x;){var ue=q[D],de=n?n(ue):ue;if(ue=o||ue!==0?ue:0,!(ee?Qr(ee,de):a(L,de,o))){for(v=g;--v;){var we=y[v];if(!(we?Qr(we,de):a(e[v],de,o)))continue e}ee&&ee.push(de),L.push(ue)}}return L}function g0(e,n,o,a){return Zt(e,function(f,g,v){n(a,o(f),g,v)}),a}function ro(e,n,o){n=Rn(n,e),e=Wf(e,n);var a=e==null?e:e[Jt(Pt(n))];return a==null?i:St(a,e,o)}function of(e){return ze(e)&&ut(e)==ce}function p0(e){return ze(e)&&ut(e)==nn}function v0(e){return ze(e)&&ut(e)==X}function oo(e,n,o,a,f){return e===n?!0:e==null||n==null||!ze(e)&&!ze(n)?e!==e&&n!==n:_0(e,n,o,a,oo,f)}function _0(e,n,o,a,f,g){var v=ye(e),y=ye(n),x=v?W:it(e),L=y?W:it(n);x=x==ce?ht:x,L=L==ce?ht:L;var q=x==ht,D=L==ht,ee=x==L;if(ee&&Mn(e)){if(!Mn(n))return!1;v=!0,q=!1}if(ee&&!q)return g||(g=new Gt),v||Rr(e)?Nf(e,n,o,a,f,g):W0(e,n,x,o,a,f,g);if(!(o&B)){var ue=q&&Re.call(e,"__wrapped__"),de=D&&Re.call(n,"__wrapped__");if(ue||de){var we=ue?e.value():e,he=de?n.value():n;return g||(g=new Gt),f(we,he,o,a,g)}}return ee?(g||(g=new Gt),G0(e,n,o,a,f,g)):!1}function y0(e){return ze(e)&&it(e)==rt}function ta(e,n,o,a){var f=o.length,g=f,v=!a;if(e==null)return!g;for(e=Me(e);f--;){var y=o[f];if(v&&y[2]?y[1]!==e[y[0]]:!(y[0]in e))return!1}for(;++f<g;){y=o[f];var x=y[0],L=e[x],q=y[1];if(v&&y[2]){if(L===i&&!(x in e))return!1}else{var D=new Gt;if(a)var ee=a(L,q,x,e,n,D);if(!(ee===i?oo(q,L,B|U,a,D):ee))return!1}}return!0}function lf(e){if(!De(e)||t_(e))return!1;var n=dn(e)?yv:Qo;return n.test(tr(e))}function b0(e){return ze(e)&&ut(e)==zt}function w0(e){return ze(e)&&it(e)==Fe}function S0(e){return ze(e)&&Pi(e.length)&&!!qe[ut(e)]}function af(e){return typeof e=="function"?e:e==null?vt:typeof e=="object"?ye(e)?cf(e[0],e[1]):sf(e):Bd(e)}function na(e){if(!ao(e))return kv(e);var n=[];for(var o in Me(e))Re.call(e,o)&&o!="constructor"&&n.push(o);return n}function C0(e){if(!De(e))return i_(e);var n=ao(e),o=[];for(var a in e)a=="constructor"&&(n||!Re.call(e,a))||o.push(a);return o}function ra(e,n){return e<n}function uf(e,n){var o=-1,a=gt(e)?I(e.length):[];return Bn(e,function(f,g,v){a[++o]=n(f,g,v)}),a}function sf(e){var n=_a(e);return n.length==1&&n[0][2]?Uf(n[0][0],n[0][1]):function(o){return o===e||ta(o,e,n)}}function cf(e,n){return ba(e)&&zf(n)?Uf(Jt(e),n):function(o){var a=Ta(o,e);return a===i&&a===n?Ra(o,e):oo(n,a,B|U)}}function bi(e,n,o,a,f){e!==n&&Zl(n,function(g,v){if(f||(f=new Gt),De(g))x0(e,n,v,o,bi,a,f);else{var y=a?a(Sa(e,v),g,v+"",e,n,f):i;y===i&&(y=g),Ql(e,v,y)}},pt)}function x0(e,n,o,a,f,g,v){var y=Sa(e,o),x=Sa(n,o),L=v.get(x);if(L){Ql(e,o,L);return}var q=g?g(y,x,o+"",e,n,v):i,D=q===i;if(D){var ee=ye(x),ue=!ee&&Mn(x),de=!ee&&!ue&&Rr(x);q=x,ee||ue||de?ye(y)?q=y:Ue(y)?q=mt(y):ue?(D=!1,q=Sf(x,!0)):de?(D=!1,q=Cf(x,!0)):q=[]:so(x)||nr(x)?(q=y,nr(y)?q=yd(y):(!De(y)||dn(y))&&(q=Ff(x))):D=!1}D&&(v.set(x,q),f(q,x,a,g,v),v.delete(x)),Ql(e,o,q)}function ff(e,n){var o=e.length;if(o)return n+=n<0?o:0,fn(n,o)?e[n]:i}function df(e,n,o){n.length?n=Ne(n,function(g){return ye(g)?function(v){return Jn(v,g.length===1?g[0]:g)}:g}):n=[vt];var a=-1;n=Ne(n,Ct(fe()));var f=uf(e,function(g,v,y){var x=Ne(n,function(L){return L(g)});return{criteria:x,index:++a,value:g}});return Zp(f,function(g,v){return V0(g,v,o)})}function k0(e,n){return hf(e,n,function(o,a){return Ra(e,a)})}function hf(e,n,o){for(var a=-1,f=n.length,g={};++a<f;){var v=n[a],y=Jn(e,v);o(y,v)&&io(g,Rn(v,e),y)}return g}function E0(e){return function(n){return Jn(n,e)}}function oa(e,n,o,a){var f=a?Yp:br,g=-1,v=n.length,y=e;for(e===n&&(n=mt(n)),o&&(y=Ne(e,Ct(o)));++g<v;)for(var x=0,L=n[g],q=o?o(L):L;(x=f(y,q,x,a))>-1;)y!==e&&ci.call(y,x,1),ci.call(e,x,1);return e}function mf(e,n){for(var o=e?n.length:0,a=o-1;o--;){var f=n[o];if(o==a||f!==g){var g=f;fn(f)?ci.call(e,f,1):ua(e,f)}}return e}function ia(e,n){return e+hi(jc()*(n-e+1))}function O0(e,n,o,a){for(var f=-1,g=Ze(di((n-e)/(o||1)),0),v=I(g);g--;)v[a?g:++f]=e,e+=o;return v}function la(e,n){var o="";if(!e||n<1||n>se)return o;do n%2&&(o+=e),n=hi(n/2),n&&(e+=e);while(n);return o}function Se(e,n){return Ca(Hf(e,n,vt),e+"")}function A0(e){return Yc(Ir(e))}function B0(e,n){var o=Ir(e);return Ti(o,Xn(n,0,o.length))}function io(e,n,o,a){if(!De(e))return e;n=Rn(n,e);for(var f=-1,g=n.length,v=g-1,y=e;y!=null&&++f<g;){var x=Jt(n[f]),L=o;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(f!=v){var q=y[x];L=a?a(q,x,y):i,L===i&&(L=De(q)?q:fn(n[f+1])?[]:{})}to(y,x,L),y=y[x]}return e}var gf=mi?function(e,n){return mi.set(e,n),e}:vt,T0=fi?function(e,n){return fi(e,"toString",{configurable:!0,enumerable:!1,value:Ma(n),writable:!0})}:vt;function R0(e){return Ti(Ir(e))}function qt(e,n,o){var a=-1,f=e.length;n<0&&(n=-n>f?0:f+n),o=o>f?f:o,o<0&&(o+=f),f=n>o?0:o-n>>>0,n>>>=0;for(var g=I(f);++a<f;)g[a]=e[a+n];return g}function I0(e,n){var o;return Bn(e,function(a,f,g){return o=n(a,f,g),!o}),!!o}function wi(e,n,o){var a=0,f=e==null?a:e.length;if(typeof n=="number"&&n===n&&f<=Z){for(;a<f;){var g=a+f>>>1,v=e[g];v!==null&&!kt(v)&&(o?v<=n:v<n)?a=g+1:f=g}return f}return aa(e,n,vt,o)}function aa(e,n,o,a){var f=0,g=e==null?0:e.length;if(g===0)return 0;n=o(n);for(var v=n!==n,y=n===null,x=kt(n),L=n===i;f<g;){var q=hi((f+g)/2),D=o(e[q]),ee=D!==i,ue=D===null,de=D===D,we=kt(D);if(v)var he=a||de;else L?he=de&&(a||ee):y?he=de&&ee&&(a||!ue):x?he=de&&ee&&!ue&&(a||!we):ue||we?he=!1:he=a?D<=n:D<n;he?f=q+1:g=q}return ot(g,A)}function pf(e,n){for(var o=-1,a=e.length,f=0,g=[];++o<a;){var v=e[o],y=n?n(v):v;if(!o||!jt(y,x)){var x=y;g[f++]=v===0?0:v}}return g}function vf(e){return typeof e=="number"?e:kt(e)?me:+e}function xt(e){if(typeof e=="string")return e;if(ye(e))return Ne(e,xt)+"";if(kt(e))return Kc?Kc.call(e):"";var n=e+"";return n=="0"&&1/e==-z?"-0":n}function Tn(e,n,o){var a=-1,f=ei,g=e.length,v=!0,y=[],x=y;if(o)v=!1,f=Pl;else if(g>=s){var L=n?null:U0(e);if(L)return ni(L);v=!1,f=Qr,x=new Zn}else x=n?[]:y;e:for(;++a<g;){var q=e[a],D=n?n(q):q;if(q=o||q!==0?q:0,v&&D===D){for(var ee=x.length;ee--;)if(x[ee]===D)continue e;n&&x.push(D),y.push(q)}else f(x,D,o)||(x!==y&&x.push(D),y.push(q))}return y}function ua(e,n){return n=Rn(n,e),e=Wf(e,n),e==null||delete e[Jt(Pt(n))]}function _f(e,n,o,a){return io(e,n,o(Jn(e,n)),a)}function Si(e,n,o,a){for(var f=e.length,g=a?f:-1;(a?g--:++g<f)&&n(e[g],g,e););return o?qt(e,a?0:g,a?g+1:f):qt(e,a?g+1:0,a?f:g)}function yf(e,n){var o=e;return o instanceof xe&&(o=o.value()),Vl(n,function(a,f){return f.func.apply(f.thisArg,En([a],f.args))},o)}function sa(e,n,o){var a=e.length;if(a<2)return a?Tn(e[0]):[];for(var f=-1,g=I(a);++f<a;)for(var v=e[f],y=-1;++y<a;)y!=f&&(g[f]=no(g[f]||v,e[y],n,o));return Tn(nt(g,1),n,o)}function bf(e,n,o){for(var a=-1,f=e.length,g=n.length,v={};++a<f;){var y=a<g?n[a]:i;o(v,e[a],y)}return v}function ca(e){return Ue(e)?e:[]}function fa(e){return typeof e=="function"?e:vt}function Rn(e,n){return ye(e)?e:ba(e,n)?[e]:Qf(Be(e))}var M0=Se;function In(e,n,o){var a=e.length;return o=o===i?a:o,!n&&o>=a?e:qt(e,n,o)}var wf=bv||function(e){return tt.clearTimeout(e)};function Sf(e,n){if(n)return e.slice();var o=e.length,a=zc?zc(o):new e.constructor(o);return e.copy(a),a}function da(e){var n=new e.constructor(e.byteLength);return new ui(n).set(new ui(e)),n}function L0(e,n){var o=n?da(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function q0(e){var n=new e.constructor(e.source,on.exec(e));return n.lastIndex=e.lastIndex,n}function P0(e){return eo?Me(eo.call(e)):{}}function Cf(e,n){var o=n?da(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function xf(e,n){if(e!==n){var o=e!==i,a=e===null,f=e===e,g=kt(e),v=n!==i,y=n===null,x=n===n,L=kt(n);if(!y&&!L&&!g&&e>n||g&&v&&x&&!y&&!L||a&&v&&x||!o&&x||!f)return 1;if(!a&&!g&&!L&&e<n||L&&o&&f&&!a&&!g||y&&o&&f||!v&&f||!x)return-1}return 0}function V0(e,n,o){for(var a=-1,f=e.criteria,g=n.criteria,v=f.length,y=o.length;++a<v;){var x=xf(f[a],g[a]);if(x){if(a>=y)return x;var L=o[a];return x*(L=="desc"?-1:1)}}return e.index-n.index}function kf(e,n,o,a){for(var f=-1,g=e.length,v=o.length,y=-1,x=n.length,L=Ze(g-v,0),q=I(x+L),D=!a;++y<x;)q[y]=n[y];for(;++f<v;)(D||f<g)&&(q[o[f]]=e[f]);for(;L--;)q[y++]=e[f++];return q}function Ef(e,n,o,a){for(var f=-1,g=e.length,v=-1,y=o.length,x=-1,L=n.length,q=Ze(g-y,0),D=I(q+L),ee=!a;++f<q;)D[f]=e[f];for(var ue=f;++x<L;)D[ue+x]=n[x];for(;++v<y;)(ee||f<g)&&(D[ue+o[v]]=e[f++]);return D}function mt(e,n){var o=-1,a=e.length;for(n||(n=I(a));++o<a;)n[o]=e[o];return n}function Xt(e,n,o,a){var f=!o;o||(o={});for(var g=-1,v=n.length;++g<v;){var y=n[g],x=a?a(o[y],e[y],y,o,e):i;x===i&&(x=e[y]),f?un(o,y,x):to(o,y,x)}return o}function N0(e,n){return Xt(e,ya(e),n)}function $0(e,n){return Xt(e,$f(e),n)}function Ci(e,n){return function(o,a){var f=ye(o)?Hp:a0,g=n?n():{};return f(o,e,fe(a,2),g)}}function Ar(e){return Se(function(n,o){var a=-1,f=o.length,g=f>1?o[f-1]:i,v=f>2?o[2]:i;for(g=e.length>3&&typeof g=="function"?(f--,g):i,v&&st(o[0],o[1],v)&&(g=f<3?i:g,f=1),n=Me(n);++a<f;){var y=o[a];y&&e(n,y,a,g)}return n})}function Of(e,n){return function(o,a){if(o==null)return o;if(!gt(o))return e(o,a);for(var f=o.length,g=n?f:-1,v=Me(o);(n?g--:++g<f)&&a(v[g],g,v)!==!1;);return o}}function Af(e){return function(n,o,a){for(var f=-1,g=Me(n),v=a(n),y=v.length;y--;){var x=v[e?y:++f];if(o(g[x],x,g)===!1)break}return n}}function D0(e,n,o){var a=n&T,f=lo(e);function g(){var v=this&&this!==tt&&this instanceof g?f:e;return v.apply(a?o:this,arguments)}return g}function Bf(e){return function(n){n=Be(n);var o=wr(n)?Wt(n):i,a=o?o[0]:n.charAt(0),f=o?In(o,1).join(""):n.slice(1);return a[e]()+f}}function Br(e){return function(n){return Vl(Od(Ed(n).replace(Tp,"")),e,"")}}function lo(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 o=Or(e.prototype),a=e.apply(o,n);return De(a)?a:o}}function F0(e,n,o){var a=lo(e);function f(){for(var g=arguments.length,v=I(g),y=g,x=Tr(f);y--;)v[y]=arguments[y];var L=g<3&&v[0]!==x&&v[g-1]!==x?[]:On(v,x);if(g-=L.length,g<o)return Lf(e,n,xi,f.placeholder,i,v,L,i,i,o-g);var q=this&&this!==tt&&this instanceof f?a:e;return St(q,this,v)}return f}function Tf(e){return function(n,o,a){var f=Me(n);if(!gt(n)){var g=fe(o,3);n=Xe(n),o=function(y){return g(f[y],y,f)}}var v=e(n,o,a);return v>-1?f[g?n[v]:v]:i}}function Rf(e){return cn(function(n){var o=n.length,a=o,f=Mt.prototype.thru;for(e&&n.reverse();a--;){var g=n[a];if(typeof g!="function")throw new It(d);if(f&&!v&&Ai(g)=="wrapper")var v=new Mt([],!0)}for(a=v?a:o;++a<o;){g=n[a];var y=Ai(g),x=y=="wrapper"?va(g):i;x&&wa(x[0])&&x[1]==(j|N|H|ie)&&!x[4].length&&x[9]==1?v=v[Ai(x[0])].apply(v,x[3]):v=g.length==1&&wa(g)?v[y]():v.thru(g)}return function(){var L=arguments,q=L[0];if(v&&L.length==1&&ye(q))return v.plant(q).value();for(var D=0,ee=o?n[D].apply(this,L):q;++D<o;)ee=n[D].call(this,ee);return ee}})}function xi(e,n,o,a,f,g,v,y,x,L){var q=n&j,D=n&T,ee=n&G,ue=n&(N|Q),de=n&P,we=ee?i:lo(e);function he(){for(var Ce=arguments.length,ke=I(Ce),Et=Ce;Et--;)ke[Et]=arguments[Et];if(ue)var ct=Tr(he),Ot=Jp(ke,ct);if(a&&(ke=kf(ke,a,f,ue)),g&&(ke=Ef(ke,g,v,ue)),Ce-=Ot,ue&&Ce<L){var He=On(ke,ct);return Lf(e,n,xi,he.placeholder,o,ke,He,y,x,L-Ce)}var Kt=D?o:this,mn=ee?Kt[e]:e;return Ce=ke.length,y?ke=a_(ke,y):de&&Ce>1&&ke.reverse(),q&&x<Ce&&(ke.length=x),this&&this!==tt&&this instanceof he&&(mn=we||lo(mn)),mn.apply(Kt,ke)}return he}function If(e,n){return function(o,a){return g0(o,e,n(a),{})}}function ki(e,n){return function(o,a){var f;if(o===i&&a===i)return n;if(o!==i&&(f=o),a!==i){if(f===i)return a;typeof o=="string"||typeof a=="string"?(o=xt(o),a=xt(a)):(o=vf(o),a=vf(a)),f=e(o,a)}return f}}function ha(e){return cn(function(n){return n=Ne(n,Ct(fe())),Se(function(o){var a=this;return e(n,function(f){return St(f,a,o)})})})}function Ei(e,n){n=n===i?" ":xt(n);var o=n.length;if(o<2)return o?la(n,e):n;var a=la(n,di(e/Sr(n)));return wr(n)?In(Wt(a),0,e).join(""):a.slice(0,e)}function z0(e,n,o,a){var f=n&T,g=lo(e);function v(){for(var y=-1,x=arguments.length,L=-1,q=a.length,D=I(q+x),ee=this&&this!==tt&&this instanceof v?g:e;++L<q;)D[L]=a[L];for(;x--;)D[L++]=arguments[++y];return St(ee,f?o:this,D)}return v}function Mf(e){return function(n,o,a){return a&&typeof a!="number"&&st(n,o,a)&&(o=a=i),n=hn(n),o===i?(o=n,n=0):o=hn(o),a=a===i?n<o?1:-1:hn(a),O0(n,o,a,e)}}function Oi(e){return function(n,o){return typeof n=="string"&&typeof o=="string"||(n=Vt(n),o=Vt(o)),e(n,o)}}function Lf(e,n,o,a,f,g,v,y,x,L){var q=n&N,D=q?v:i,ee=q?i:v,ue=q?g:i,de=q?i:g;n|=q?H:K,n&=~(q?K:H),n&F||(n&=~(T|G));var we=[e,n,f,ue,D,de,ee,y,x,L],he=o.apply(i,we);return wa(e)&&Gf(he,we),he.placeholder=a,jf(he,e,n)}function ma(e){var n=Ye[e];return function(o,a){if(o=Vt(o),a=a==null?0:ot(be(a),292),a&&Gc(o)){var f=(Be(o)+"e").split("e"),g=n(f[0]+"e"+(+f[1]+a));return f=(Be(g)+"e").split("e"),+(f[0]+"e"+(+f[1]-a))}return n(o)}}var U0=kr&&1/ni(new kr([,-0]))[1]==z?function(e){return new kr(e)}:Pa;function qf(e){return function(n){var o=it(n);return o==rt?Hl(n):o==Fe?lv(n):Xp(n,e(n))}}function sn(e,n,o,a,f,g,v,y){var x=n&G;if(!x&&typeof e!="function")throw new It(d);var L=a?a.length:0;if(L||(n&=~(H|K),a=f=i),v=v===i?v:Ze(be(v),0),y=y===i?y:be(y),L-=f?f.length:0,n&K){var q=a,D=f;a=f=i}var ee=x?i:va(e),ue=[e,n,o,a,f,q,D,g,v,y];if(ee&&o_(ue,ee),e=ue[0],n=ue[1],o=ue[2],a=ue[3],f=ue[4],y=ue[9]=ue[9]===i?x?0:e.length:Ze(ue[9]-L,0),!y&&n&(N|Q)&&(n&=~(N|Q)),!n||n==T)var de=D0(e,n,o);else n==N||n==Q?de=F0(e,n,y):(n==H||n==(T|H))&&!f.length?de=z0(e,n,o,a):de=xi.apply(i,ue);var we=ee?gf:Gf;return jf(we(de,ue),e,n)}function Pf(e,n,o,a){return e===i||jt(e,xr[o])&&!Re.call(a,o)?n:e}function Vf(e,n,o,a,f,g){return De(e)&&De(n)&&(g.set(n,e),bi(e,n,i,Vf,g),g.delete(n)),e}function H0(e){return so(e)?i:e}function Nf(e,n,o,a,f,g){var v=o&B,y=e.length,x=n.length;if(y!=x&&!(v&&x>y))return!1;var L=g.get(e),q=g.get(n);if(L&&q)return L==n&&q==e;var D=-1,ee=!0,ue=o&U?new Zn:i;for(g.set(e,n),g.set(n,e);++D<y;){var de=e[D],we=n[D];if(a)var he=v?a(we,de,D,n,e,g):a(de,we,D,e,n,g);if(he!==i){if(he)continue;ee=!1;break}if(ue){if(!Nl(n,function(Ce,ke){if(!Qr(ue,ke)&&(de===Ce||f(de,Ce,o,a,g)))return ue.push(ke)})){ee=!1;break}}else if(!(de===we||f(de,we,o,a,g))){ee=!1;break}}return g.delete(e),g.delete(n),ee}function W0(e,n,o,a,f,g,v){switch(o){case bn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case nn:return!(e.byteLength!=n.byteLength||!g(new ui(e),new ui(n)));case Ee:case X:case wt:return jt(+e,+n);case at:return e.name==n.name&&e.message==n.message;case zt:case Qe:return e==n+"";case rt:var y=Hl;case Fe:var x=a&B;if(y||(y=ni),e.size!=n.size&&!x)return!1;var L=v.get(e);if(L)return L==n;a|=U,v.set(e,n);var q=Nf(y(e),y(n),a,f,g,v);return v.delete(e),q;case Ut:if(eo)return eo.call(e)==eo.call(n)}return!1}function G0(e,n,o,a,f,g){var v=o&B,y=ga(e),x=y.length,L=ga(n),q=L.length;if(x!=q&&!v)return!1;for(var D=x;D--;){var ee=y[D];if(!(v?ee in n:Re.call(n,ee)))return!1}var ue=g.get(e),de=g.get(n);if(ue&&de)return ue==n&&de==e;var we=!0;g.set(e,n),g.set(n,e);for(var he=v;++D<x;){ee=y[D];var Ce=e[ee],ke=n[ee];if(a)var Et=v?a(ke,Ce,ee,n,e,g):a(Ce,ke,ee,e,n,g);if(!(Et===i?Ce===ke||f(Ce,ke,o,a,g):Et)){we=!1;break}he||(he=ee=="constructor")}if(we&&!he){var ct=e.constructor,Ot=n.constructor;ct!=Ot&&"constructor"in e&&"constructor"in n&&!(typeof ct=="function"&&ct instanceof ct&&typeof Ot=="function"&&Ot instanceof Ot)&&(we=!1)}return g.delete(e),g.delete(n),we}function cn(e){return Ca(Hf(e,i,Jf),e+"")}function ga(e){return rf(e,Xe,ya)}function pa(e){return rf(e,pt,$f)}var va=mi?function(e){return mi.get(e)}:Pa;function Ai(e){for(var n=e.name+"",o=Er[n],a=Re.call(Er,n)?o.length:0;a--;){var f=o[a],g=f.func;if(g==null||g==e)return f.name}return n}function Tr(e){var n=Re.call(m,"placeholder")?m:e;return n.placeholder}function fe(){var e=m.iteratee||La;return e=e===La?af:e,arguments.length?e(arguments[0],arguments[1]):e}function Bi(e,n){var o=e.__data__;return e_(n)?o[typeof n=="string"?"string":"hash"]:o.map}function _a(e){for(var n=Xe(e),o=n.length;o--;){var a=n[o],f=e[a];n[o]=[a,f,zf(f)]}return n}function er(e,n){var o=rv(e,n);return lf(o)?o:i}function j0(e){var n=Re.call(e,Qn),o=e[Qn];try{e[Qn]=i;var a=!0}catch{}var f=li.call(e);return a&&(n?e[Qn]=o:delete e[Qn]),f}var ya=Gl?function(e){return e==null?[]:(e=Me(e),kn(Gl(e),function(n){return Hc.call(e,n)}))}:Va,$f=Gl?function(e){for(var n=[];e;)En(n,ya(e)),e=si(e);return n}:Va,it=ut;(jl&&it(new jl(new ArrayBuffer(1)))!=bn||Zr&&it(new Zr)!=rt||Kl&&it(Kl.resolve())!=yn||kr&&it(new kr)!=Fe||Xr&&it(new Xr)!=Un)&&(it=function(e){var n=ut(e),o=n==ht?e.constructor:i,a=o?tr(o):"";if(a)switch(a){case Bv:return bn;case Tv:return rt;case Rv:return yn;case Iv:return Fe;case Mv:return Un}return n});function K0(e,n,o){for(var a=-1,f=o.length;++a<f;){var g=o[a],v=g.size;switch(g.type){case"drop":e+=v;break;case"dropRight":n-=v;break;case"take":n=ot(n,e+v);break;case"takeRight":e=Ze(e,n-v);break}}return{start:e,end:n}}function Q0(e){var n=e.match(kl);return n?n[1].split(El):[]}function Df(e,n,o){n=Rn(n,e);for(var a=-1,f=n.length,g=!1;++a<f;){var v=Jt(n[a]);if(!(g=e!=null&&o(e,v)))break;e=e[v]}return g||++a!=f?g:(f=e==null?0:e.length,!!f&&Pi(f)&&fn(v,f)&&(ye(e)||nr(e)))}function Y0(e){var n=e.length,o=new e.constructor(n);return n&&typeof e[0]=="string"&&Re.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Ff(e){return typeof e.constructor=="function"&&!ao(e)?Or(si(e)):{}}function Z0(e,n,o){var a=e.constructor;switch(n){case nn:return da(e);case Ee:case X:return new a(+e);case bn:return L0(e,o);case gr:case Ht:case Yt:case wn:case Hr:case Hn:case Wn:case pr:case vr:return Cf(e,o);case rt:return new a;case wt:case Qe:return new a(e);case zt:return q0(e);case Fe:return new a;case Ut:return P0(e)}}function X0(e,n){var o=n.length;if(!o)return e;var a=o-1;return n[a]=(o>1?"& ":"")+n[a],n=n.join(o>2?", ":" "),e.replace(xl,`{
9
9
  /* [wrapped with `+n+`] */
10
- `)}function Y0(e){return ye(e)||er(e)||!!(Wc&&e&&e[Wc])}function dn(e,n){var i=typeof e;return n=n??j,!!n&&(i=="number"||i!="symbol"&&Qi.test(e))&&e>-1&&e%1==0&&e<n}function at(e,n,i){if(!De(i))return!1;var a=typeof n;return(a=="number"?gt(i)&&dn(n,i.length):a=="string"&&n in i)?jt(i[n],e):!1}function wa(e,n){if(ye(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Et(e)?!0:Sn.test(e)||!Wn.test(e)||n!=null&&e in Me(n)}function Q0(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function Sa(e){var n=Ao(e),i=h[n];if(typeof i!="function"||!(n in Ee.prototype))return!1;if(e===i)return!0;var a=_a(i);return!!a&&e===a[0]}function Z0(e){return!!Fc&&Fc in e}var X0=ro?hn:$a;function ai(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||xr;return e===i}function Uf(e){return e===e&&!De(e)}function zf(e,n){return function(i){return i==null?!1:i[e]===n&&(n!==o||e in Me(i))}}function J0(e){var n=Lo(e,function(a){return i.size===k&&i.clear(),a}),i=n.cache;return n}function e_(e,n){var i=e[1],a=n[1],f=i|a,g=f<(B|W|G),v=a==G&&i==V||a==G&&i==oe&&e[7].length<=n[8]||a==(G|oe)&&n[7].length<=n[8]&&i==V;if(!(g||v))return e;a&B&&(e[2]=n[2],f|=i&B?0:F);var y=n[3];if(y){var E=e[3];e[3]=E?Ef(E,y,n[4]):y,e[4]=E?On(e[3],p):n[4]}return y=n[5],y&&(E=e[5],e[5]=E?kf(E,y,n[6]):y,e[6]=E?On(e[5],p):n[6]),y=n[7],y&&(e[7]=y),a&G&&(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 t_(e){var n=[];if(e!=null)for(var i in Me(e))n.push(i);return n}function n_(e){return oo.call(e)}function Hf(e,n,i){return n=Ze(n===o?e.length-1:n,0),function(){for(var a=arguments,f=-1,g=Ze(a.length-n,0),v=I(g);++f<g;)v[f]=a[n+f];f=-1;for(var y=I(n+1);++f<n;)y[f]=a[f];return y[n]=i(v),St(e,this,y)}}function Wf(e,n){return n.length<2?e:Zn(e,Pt(n,0,-1))}function r_(e,n){for(var i=e.length,a=rt(n.length,i),f=mt(e);a--;){var g=n[a];e[a]=dn(g,i)?f[g]:o}return e}function Ca(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var Gf=Kf(gf),ui=_v||function(e,n){return et.setTimeout(e,n)},xa=Kf(k0);function jf(e,n,i){var a=n+"";return xa(e,K0(a,i_(W0(a),i)))}function Kf(e){var n=0,i=0;return function(){var a=Sv(),f=te-(a-i);if(i=a,f>0){if(++n>=O)return arguments[0]}else n=0;return e.apply(o,arguments)}}function Bo(e,n){var i=-1,a=e.length,f=a-1;for(n=n===o?a:n;++i<n;){var g=la(i,f),v=e[g];e[g]=e[i],e[i]=v}return e.length=n,e}var Yf=J0(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Sl,function(i,a,f,g){n.push(f?g.replace(xn,"$1"):a||i)}),n});function Jt(e){if(typeof e=="string"||Et(e))return e;var n=e+"";return n=="0"&&1/e==-ce?"-0":n}function Jn(e){if(e!=null){try{return io.call(e)}catch{}try{return e+""}catch{}}return""}function i_(e,n){return Rt(pe,function(i){var a="_."+i[0];n&i[1]&&!Ji(e,a)&&e.push(a)}),e.sort()}function Qf(e){if(e instanceof Ee)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 o_(e,n,i){(i?at(e,n,i):n===o)?n=1:n=Ze(we(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var f=0,g=0,v=I(fo(a/n));f<a;)v[g++]=Pt(e,f,f+=n);return v}function l_(e){for(var n=-1,i=e==null?0:e.length,a=0,f=[];++n<i;){var g=e[n];g&&(f[a++]=g)}return f}function a_(){var e=arguments.length;if(!e)return[];for(var n=I(e-1),i=arguments[0],a=e;a--;)n[a-1]=arguments[a];return kn(ye(i)?mt(i):[i],tt(n,1))}var u_=Ce(function(e,n){return ze(e)?ni(e,tt(n,1,ze,!0)):[]}),s_=Ce(function(e,n){var i=qt(n);return ze(i)&&(i=o),ze(e)?ni(e,tt(n,1,ze,!0),de(i,2)):[]}),c_=Ce(function(e,n){var i=qt(n);return ze(i)&&(i=o),ze(e)?ni(e,tt(n,1,ze,!0),o,i):[]});function f_(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===o?1:we(n),Pt(e,n<0?0:n,a)):[]}function d_(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===o?1:we(n),n=a-n,Pt(e,0,n<0?0:n)):[]}function h_(e,n){return e&&e.length?So(e,de(n,3),!0,!0):[]}function m_(e,n){return e&&e.length?So(e,de(n,3),!0):[]}function g_(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),a0(e,n,i,a)):[]}function Zf(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=i==null?0:we(i);return f<0&&(f=Ze(a+f,0)),eo(e,de(n,3),f)}function Xf(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=a-1;return i!==o&&(f=we(i),f=i<0?Ze(a+f,0):rt(f,a-1)),eo(e,de(n,3),f,!0)}function Jf(e){var n=e==null?0:e.length;return n?tt(e,1):[]}function p_(e){var n=e==null?0:e.length;return n?tt(e,ce):[]}function v_(e,n){var i=e==null?0:e.length;return i?(n=n===o?1:we(n),tt(e,n)):[]}function __(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 ed(e){return e&&e.length?e[0]:o}function b_(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=i==null?0:we(i);return f<0&&(f=Ze(a+f,0)),yr(e,n,f)}function y_(e){var n=e==null?0:e.length;return n?Pt(e,0,-1):[]}var w_=Ce(function(e){var n=Ne(e,fa);return n.length&&n[0]===e[0]?ta(n):[]}),S_=Ce(function(e){var n=qt(e),i=Ne(e,fa);return n===qt(i)?n=o:i.pop(),i.length&&i[0]===e[0]?ta(i,de(n,2)):[]}),C_=Ce(function(e){var n=qt(e),i=Ne(e,fa);return n=typeof n=="function"?n:o,n&&i.pop(),i.length&&i[0]===e[0]?ta(i,o,n):[]});function x_(e,n){return e==null?"":yv.call(e,n)}function qt(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=we(i),f=f<0?Ze(a+f,0):rt(f,a-1)),n===n?iv(e,n,f):eo(e,Mc,f,!0)}function k_(e,n){return e&&e.length?ff(e,we(n)):o}var O_=Ce(td);function td(e,n){return e&&e.length&&n&&n.length?oa(e,n):e}function A_(e,n,i){return e&&e.length&&n&&n.length?oa(e,n,de(i,2)):e}function T_(e,n,i){return e&&e.length&&n&&n.length?oa(e,n,o,i):e}var B_=fn(function(e,n){var i=e==null?0:e.length,a=Zl(e,n);return mf(e,Ne(n,function(f){return dn(f,i)?+f:f}).sort(xf)),a});function R_(e,n){var i=[];if(!(e&&e.length))return i;var a=-1,f=[],g=e.length;for(n=de(n,3);++a<g;){var v=e[a];n(v,a,e)&&(i.push(v),f.push(a))}return mf(e,f),i}function Ea(e){return e==null?e:xv.call(e)}function I_(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:we(n),i=i===o?a:we(i)),Pt(e,n,i)):[]}function M_(e,n){return wo(e,n)}function L_(e,n,i){return ua(e,n,de(i,2))}function P_(e,n){var i=e==null?0:e.length;if(i){var a=wo(e,n);if(a<i&&jt(e[a],n))return a}return-1}function q_(e,n){return wo(e,n,!0)}function V_(e,n,i){return ua(e,n,de(i,2),!0)}function N_(e,n){var i=e==null?0:e.length;if(i){var a=wo(e,n,!0)-1;if(jt(e[a],n))return a}return-1}function $_(e){return e&&e.length?pf(e):[]}function D_(e,n){return e&&e.length?pf(e,de(n,2)):[]}function F_(e){var n=e==null?0:e.length;return n?Pt(e,1,n):[]}function U_(e,n,i){return e&&e.length?(n=i||n===o?1:we(n),Pt(e,0,n<0?0:n)):[]}function z_(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===o?1:we(n),n=a-n,Pt(e,n<0?0:n,a)):[]}function H_(e,n){return e&&e.length?So(e,de(n,3),!1,!0):[]}function W_(e,n){return e&&e.length?So(e,de(n,3)):[]}var G_=Ce(function(e){return Bn(tt(e,1,ze,!0))}),j_=Ce(function(e){var n=qt(e);return ze(n)&&(n=o),Bn(tt(e,1,ze,!0),de(n,2))}),K_=Ce(function(e){var n=qt(e);return n=typeof n=="function"?n:o,Bn(tt(e,1,ze,!0),o,n)});function Y_(e){return e&&e.length?Bn(e):[]}function Q_(e,n){return e&&e.length?Bn(e,de(n,2)):[]}function Z_(e,n){return n=typeof n=="function"?n:o,e&&e.length?Bn(e,o,n):[]}function ka(e){if(!(e&&e.length))return[];var n=0;return e=En(e,function(i){if(ze(i))return n=Ze(i.length,n),!0}),zl(n,function(i){return Ne(e,Dl(i))})}function nd(e,n){if(!(e&&e.length))return[];var i=ka(e);return n==null?i:Ne(i,function(a){return St(n,o,a)})}var X_=Ce(function(e,n){return ze(e)?ni(e,n):[]}),J_=Ce(function(e){return ca(En(e,ze))}),eb=Ce(function(e){var n=qt(e);return ze(n)&&(n=o),ca(En(e,ze),de(n,2))}),tb=Ce(function(e){var n=qt(e);return n=typeof n=="function"?n:o,ca(En(e,ze),o,n)}),nb=Ce(ka);function rb(e,n){return yf(e||[],n||[],ti)}function ib(e,n){return yf(e||[],n||[],oi)}var ob=Ce(function(e){var n=e.length,i=n>1?e[n-1]:o;return i=typeof i=="function"?(e.pop(),i):o,nd(e,i)});function rd(e){var n=h(e);return n.__chain__=!0,n}function lb(e,n){return n(e),e}function Ro(e,n){return n(e)}var ab=fn(function(e){var n=e.length,i=n?e[0]:0,a=this.__wrapped__,f=function(g){return Zl(g,e)};return n>1||this.__actions__.length||!(a instanceof Ee)||!dn(i)?this.thru(f):(a=a.slice(i,+i+(n?1:0)),a.__actions__.push({func:Ro,args:[f],thisArg:o}),new Mt(a,this.__chain__).thru(function(g){return n&&!g.length&&g.push(o),g}))});function ub(){return rd(this)}function sb(){return new Mt(this.value(),this.__chain__)}function cb(){this.__values__===o&&(this.__values__=vd(this.value()));var e=this.__index__>=this.__values__.length,n=e?o:this.__values__[this.__index__++];return{done:e,value:n}}function fb(){return this}function db(e){for(var n,i=this;i instanceof po;){var a=Qf(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 hb(){var e=this.__wrapped__;if(e instanceof Ee){var n=e;return this.__actions__.length&&(n=new Ee(this)),n=n.reverse(),n.__actions__.push({func:Ro,args:[Ea],thisArg:o}),new Mt(n,this.__chain__)}return this.thru(Ea)}function mb(){return bf(this.__wrapped__,this.__actions__)}var gb=Co(function(e,n,i){Re.call(e,i)?++e[i]:sn(e,i,1)});function pb(e,n,i){var a=ye(e)?Rc:l0;return i&&at(e,n,i)&&(n=o),a(e,de(n,3))}function vb(e,n){var i=ye(e)?En:tf;return i(e,de(n,3))}var _b=Bf(Zf),bb=Bf(Xf);function yb(e,n){return tt(Io(e,n),1)}function wb(e,n){return tt(Io(e,n),ce)}function Sb(e,n,i){return i=i===o?1:we(i),tt(Io(e,n),i)}function id(e,n){var i=ye(e)?Rt:Tn;return i(e,de(n,3))}function od(e,n){var i=ye(e)?Fp:ef;return i(e,de(n,3))}var Cb=Co(function(e,n,i){Re.call(e,i)?e[i].push(n):sn(e,i,[n])});function xb(e,n,i,a){e=gt(e)?e:Ir(e),i=i&&!a?we(i):0;var f=e.length;return i<0&&(i=Ze(f+i,0)),Vo(e)?i<=f&&e.indexOf(n,i)>-1:!!f&&yr(e,n,i)>-1}var Eb=Ce(function(e,n,i){var a=-1,f=typeof n=="function",g=gt(e)?I(e.length):[];return Tn(e,function(v){g[++a]=f?St(n,v,i):ri(v,n,i)}),g}),kb=Co(function(e,n,i){sn(e,i,n)});function Io(e,n){var i=ye(e)?Ne:uf;return i(e,de(n,3))}function Ob(e,n,i,a){return e==null?[]:(ye(n)||(n=n==null?[]:[n]),i=a?o:i,ye(i)||(i=i==null?[]:[i]),df(e,n,i))}var Ab=Co(function(e,n,i){e[i?0:1].push(n)},function(){return[[],[]]});function Tb(e,n,i){var a=ye(e)?Nl:Pc,f=arguments.length<3;return a(e,de(n,4),i,f,Tn)}function Bb(e,n,i){var a=ye(e)?Up:Pc,f=arguments.length<3;return a(e,de(n,4),i,f,ef)}function Rb(e,n){var i=ye(e)?En:tf;return i(e,Po(de(n,3)))}function Ib(e){var n=ye(e)?Qc:x0;return n(e)}function Mb(e,n,i){(i?at(e,n,i):n===o)?n=1:n=we(n);var a=ye(e)?t0:E0;return a(e,n)}function Lb(e){var n=ye(e)?n0:O0;return n(e)}function Pb(e){if(e==null)return 0;if(gt(e))return Vo(e)?Sr(e):e.length;var n=it(e);return n==nt||n==Fe?e.size:ra(e).length}function qb(e,n,i){var a=ye(e)?$l:A0;return i&&at(e,n,i)&&(n=o),a(e,de(n,3))}var Vb=Ce(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]]),df(e,tt(n,1),[])}),Mo=vv||function(){return et.Date.now()};function Nb(e,n){if(typeof n!="function")throw new It(d);return e=we(e),function(){if(--e<1)return n.apply(this,arguments)}}function ld(e,n,i){return n=i?o:n,n=e&&n==null?e.length:n,cn(e,G,o,o,o,o,n)}function ad(e,n){var i;if(typeof n!="function")throw new It(d);return e=we(e),function(){return--e>0&&(i=n.apply(this,arguments)),e<=1&&(n=o),i}}var Oa=Ce(function(e,n,i){var a=B;if(i.length){var f=On(i,Br(Oa));a|=z}return cn(e,a,n,i,f)}),ud=Ce(function(e,n,i){var a=B|W;if(i.length){var f=On(i,Br(ud));a|=z}return cn(n,a,e,i,f)});function sd(e,n,i){n=i?o:n;var a=cn(e,V,o,o,o,o,o,n);return a.placeholder=sd.placeholder,a}function cd(e,n,i){n=i?o:n;var a=cn(e,K,o,o,o,o,o,n);return a.placeholder=cd.placeholder,a}function fd(e,n,i){var a,f,g,v,y,E,L=0,P=!1,D=!1,ee=!0;if(typeof e!="function")throw new It(d);n=Vt(n)||0,De(i)&&(P=!!i.leading,D="maxWait"in i,g=D?Ze(Vt(i.maxWait)||0,n):g,ee="trailing"in i?!!i.trailing:ee);function ue(He){var Kt=a,gn=f;return a=f=o,L=He,v=e.apply(gn,Kt),v}function he(He){return L=He,y=ui(xe,n),P?ue(He):v}function Se(He){var Kt=He-E,gn=He-L,Bd=n-Kt;return D?rt(Bd,g-gn):Bd}function me(He){var Kt=He-E,gn=He-L;return E===o||Kt>=n||Kt<0||D&&gn>=g}function xe(){var He=Mo();if(me(He))return ke(He);y=ui(xe,Se(He))}function ke(He){return y=o,ee&&a?ue(He):(a=f=o,v)}function kt(){y!==o&&wf(y),L=0,a=E=f=y=o}function ut(){return y===o?v:ke(Mo())}function Ot(){var He=Mo(),Kt=me(He);if(a=arguments,f=this,E=He,Kt){if(y===o)return he(E);if(D)return wf(y),y=ui(xe,n),ue(E)}return y===o&&(y=ui(xe,n)),v}return Ot.cancel=kt,Ot.flush=ut,Ot}var $b=Ce(function(e,n){return Jc(e,1,n)}),Db=Ce(function(e,n,i){return Jc(e,Vt(n)||0,i)});function Fb(e){return cn(e,q)}function Lo(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new It(d);var i=function(){var a=arguments,f=n?n.apply(this,a):a[0],g=i.cache;if(g.has(f))return g.get(f);var v=e.apply(this,a);return i.cache=g.set(f,v)||g,v};return i.cache=new(Lo.Cache||un),i}Lo.Cache=un;function Po(e){if(typeof e!="function")throw new It(d);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 Ub(e){return ad(2,e)}var zb=T0(function(e,n){n=n.length==1&&ye(n[0])?Ne(n[0],Ct(de())):Ne(tt(n,1),Ct(de()));var i=n.length;return Ce(function(a){for(var f=-1,g=rt(a.length,i);++f<g;)a[f]=n[f].call(this,a[f]);return St(e,this,a)})}),Aa=Ce(function(e,n){var i=On(n,Br(Aa));return cn(e,z,o,n,i)}),dd=Ce(function(e,n){var i=On(n,Br(dd));return cn(e,Y,o,n,i)}),Hb=fn(function(e,n){return cn(e,oe,o,o,o,n)});function Wb(e,n){if(typeof e!="function")throw new It(d);return n=n===o?n:we(n),Ce(e,n)}function Gb(e,n){if(typeof e!="function")throw new It(d);return n=n==null?0:Ze(we(n),0),Ce(function(i){var a=i[n],f=In(i,0,n);return a&&kn(f,a),St(e,this,f)})}function jb(e,n,i){var a=!0,f=!0;if(typeof e!="function")throw new It(d);return De(i)&&(a="leading"in i?!!i.leading:a,f="trailing"in i?!!i.trailing:f),fd(e,n,{leading:a,maxWait:n,trailing:f})}function Kb(e){return ld(e,1)}function Yb(e,n){return Aa(da(n),e)}function Qb(){if(!arguments.length)return[];var e=arguments[0];return ye(e)?e:[e]}function Zb(e){return Lt(e,_)}function Xb(e,n){return n=typeof n=="function"?n:o,Lt(e,_,n)}function Jb(e){return Lt(e,S|_)}function ey(e,n){return n=typeof n=="function"?n:o,Lt(e,S|_,n)}function ty(e,n){return n==null||Xc(e,n,Xe(n))}function jt(e,n){return e===n||e!==e&&n!==n}var ny=Oo(ea),ry=Oo(function(e,n){return e>=n}),er=of(function(){return arguments}())?of:function(e){return Ue(e)&&Re.call(e,"callee")&&!Hc.call(e,"callee")},ye=I.isArray,iy=Ec?Ct(Ec):d0;function gt(e){return e!=null&&qo(e.length)&&!hn(e)}function ze(e){return Ue(e)&&gt(e)}function oy(e){return e===!0||e===!1||Ue(e)&&lt(e)==Oe}var Mn=bv||$a,ly=kc?Ct(kc):h0;function ay(e){return Ue(e)&&e.nodeType===1&&!si(e)}function uy(e){if(e==null)return!0;if(gt(e)&&(ye(e)||typeof e=="string"||typeof e.splice=="function"||Mn(e)||Rr(e)||er(e)))return!e.length;var n=it(e);if(n==nt||n==Fe)return!e.size;if(ai(e))return!ra(e).length;for(var i in e)if(Re.call(e,i))return!1;return!0}function sy(e,n){return ii(e,n)}function cy(e,n,i){i=typeof i=="function"?i:o;var a=i?i(e,n):o;return a===o?ii(e,n,o,i):!!a}function Ta(e){if(!Ue(e))return!1;var n=lt(e);return n==ot||n==$e||typeof e.message=="string"&&typeof e.name=="string"&&!si(e)}function fy(e){return typeof e=="number"&&Gc(e)}function hn(e){if(!De(e))return!1;var n=lt(e);return n==Ft||n==yt||n==re||n==zr}function hd(e){return typeof e=="number"&&e==we(e)}function qo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=j}function De(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function Ue(e){return e!=null&&typeof e=="object"}var md=Oc?Ct(Oc):g0;function dy(e,n){return e===n||na(e,n,ba(n))}function hy(e,n,i){return i=typeof i=="function"?i:o,na(e,n,ba(n),i)}function my(e){return gd(e)&&e!=+e}function gy(e){if(X0(e))throw new be(c);return lf(e)}function py(e){return e===null}function vy(e){return e==null}function gd(e){return typeof e=="number"||Ue(e)&&lt(e)==wt}function si(e){if(!Ue(e)||lt(e)!=ht)return!1;var n=uo(e);if(n===null)return!0;var i=Re.call(n,"constructor")&&n.constructor;return typeof i=="function"&&i instanceof i&&io.call(i)==hv}var Ba=Ac?Ct(Ac):p0;function _y(e){return hd(e)&&e>=-j&&e<=j}var pd=Tc?Ct(Tc):v0;function Vo(e){return typeof e=="string"||!ye(e)&&Ue(e)&&lt(e)==Ye}function Et(e){return typeof e=="symbol"||Ue(e)&&lt(e)==zt}var Rr=Bc?Ct(Bc):_0;function by(e){return e===o}function yy(e){return Ue(e)&&it(e)==Fn}function wy(e){return Ue(e)&&lt(e)==Fi}var Sy=Oo(ia),Cy=Oo(function(e,n){return e<=n});function vd(e){if(!e)return[];if(gt(e))return Vo(e)?Wt(e):mt(e);if(Qr&&e[Qr])return tv(e[Qr]());var n=it(e),i=n==nt?Wl:n==Fe?to:Ir;return i(e)}function mn(e){if(!e)return e===0?e:0;if(e=Vt(e),e===ce||e===-ce){var n=e<0?-1:1;return n*se}return e===e?e:0}function we(e){var n=mn(e),i=n%1;return n===n?i?n-i:n:0}function _d(e){return e?Qn(we(e),0,R):0}function Vt(e){if(typeof e=="number")return e;if(Et(e))return ge;if(De(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=De(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=qc(e);var i=Tl.test(e);return i||Yi.test(e)?Np(e.slice(2),i?2:8):Kr.test(e)?ge:+e}function bd(e){return Xt(e,pt(e))}function xy(e){return e?Qn(we(e),-j,j):e===0?e:0}function Te(e){return e==null?"":xt(e)}var Ey=Ar(function(e,n){if(ai(n)||gt(n)){Xt(n,Xe(n),e);return}for(var i in n)Re.call(n,i)&&ti(e,i,n[i])}),yd=Ar(function(e,n){Xt(n,pt(n),e)}),No=Ar(function(e,n,i,a){Xt(n,pt(n),e,a)}),ky=Ar(function(e,n,i,a){Xt(n,Xe(n),e,a)}),Oy=fn(Zl);function Ay(e,n){var i=Or(e);return n==null?i:Zc(i,n)}var Ty=Ce(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 g=n[i],v=pt(g),y=-1,E=v.length;++y<E;){var L=v[y],P=e[L];(P===o||jt(P,xr[L])&&!Re.call(e,L))&&(e[L]=g[L])}return e}),By=Ce(function(e){return e.push(o,Vf),St(wd,o,e)});function Ry(e,n){return Ic(e,de(n,3),Zt)}function Iy(e,n){return Ic(e,de(n,3),Jl)}function My(e,n){return e==null?e:Xl(e,de(n,3),pt)}function Ly(e,n){return e==null?e:nf(e,de(n,3),pt)}function Py(e,n){return e&&Zt(e,de(n,3))}function qy(e,n){return e&&Jl(e,de(n,3))}function Vy(e){return e==null?[]:bo(e,Xe(e))}function Ny(e){return e==null?[]:bo(e,pt(e))}function Ra(e,n,i){var a=e==null?o:Zn(e,n);return a===o?i:a}function $y(e,n){return e!=null&&Df(e,n,u0)}function Ia(e,n){return e!=null&&Df(e,n,s0)}var Dy=If(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=oo.call(n)),e[n]=i},La(vt)),Fy=If(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=oo.call(n)),Re.call(e,n)?e[n].push(i):e[n]=[i]},de),Uy=Ce(ri);function Xe(e){return gt(e)?Yc(e):ra(e)}function pt(e){return gt(e)?Yc(e,!0):b0(e)}function zy(e,n){var i={};return n=de(n,3),Zt(e,function(a,f,g){sn(i,n(a,f,g),a)}),i}function Hy(e,n){var i={};return n=de(n,3),Zt(e,function(a,f,g){sn(i,f,n(a,f,g))}),i}var Wy=Ar(function(e,n,i){yo(e,n,i)}),wd=Ar(function(e,n,i,a){yo(e,n,i,a)}),Gy=fn(function(e,n){var i={};if(e==null)return i;var a=!1;n=Ne(n,function(g){return g=Rn(g,e),a||(a=g.length>1),g}),Xt(e,va(e),i),a&&(i=Lt(i,S|x|_,D0));for(var f=n.length;f--;)sa(i,n[f]);return i});function jy(e,n){return Sd(e,Po(de(n)))}var Ky=fn(function(e,n){return e==null?{}:w0(e,n)});function Sd(e,n){if(e==null)return{};var i=Ne(va(e),function(a){return[a]});return n=de(n),hf(e,i,function(a,f){return n(a,f[0])})}function Yy(e,n,i){n=Rn(n,e);var a=-1,f=n.length;for(f||(f=1,e=o);++a<f;){var g=e==null?o:e[Jt(n[a])];g===o&&(a=f,g=i),e=hn(g)?g.call(e):g}return e}function Qy(e,n,i){return e==null?e:oi(e,n,i)}function Zy(e,n,i,a){return a=typeof a=="function"?a:o,e==null?e:oi(e,n,i,a)}var Cd=Pf(Xe),xd=Pf(pt);function Xy(e,n,i){var a=ye(e),f=a||Mn(e)||Rr(e);if(n=de(n,4),i==null){var g=e&&e.constructor;f?i=a?new g:[]:De(e)?i=hn(g)?Or(uo(e)):{}:i={}}return(f?Rt:Zt)(e,function(v,y,E){return n(i,v,y,E)}),i}function Jy(e,n){return e==null?!0:sa(e,n)}function ew(e,n,i){return e==null?e:_f(e,n,da(i))}function tw(e,n,i,a){return a=typeof a=="function"?a:o,e==null?e:_f(e,n,da(i),a)}function Ir(e){return e==null?[]:Hl(e,Xe(e))}function nw(e){return e==null?[]:Hl(e,pt(e))}function rw(e,n,i){return i===o&&(i=n,n=o),i!==o&&(i=Vt(i),i=i===i?i:0),n!==o&&(n=Vt(n),n=n===n?n:0),Qn(Vt(e),n,i)}function iw(e,n,i){return n=mn(n),i===o?(i=n,n=0):i=mn(i),e=Vt(e),c0(e,n,i)}function ow(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=mn(e),n===o?(n=e,e=0):n=mn(n)),e>n){var a=e;e=n,n=a}if(i||e%1||n%1){var f=jc();return rt(e+f*(n-e+Vp("1e-"+((f+"").length-1))),n)}return la(e,n)}var lw=Tr(function(e,n,i){return n=n.toLowerCase(),e+(i?Ed(n):n)});function Ed(e){return Ma(Te(e).toLowerCase())}function kd(e){return e=Te(e),e&&e.replace(Zi,Qp).replace(Op,"")}function aw(e,n,i){e=Te(e),n=xt(n);var a=e.length;i=i===o?a:Qn(we(i),0,a);var f=i;return i-=n.length,i>=0&&e.slice(i,f)==n}function uw(e){return e=Te(e),e&&Gi.test(e)?e.replace(Wi,Zp):e}function sw(e){return e=Te(e),e&&Cl.test(e)?e.replace(Gr,"\\$&"):e}var cw=Tr(function(e,n,i){return e+(i?"-":"")+n.toLowerCase()}),fw=Tr(function(e,n,i){return e+(i?" ":"")+n.toLowerCase()}),dw=Tf("toLowerCase");function hw(e,n,i){e=Te(e),n=we(n);var a=n?Sr(e):0;if(!n||a>=n)return e;var f=(n-a)/2;return ko(ho(f),i)+e+ko(fo(f),i)}function mw(e,n,i){e=Te(e),n=we(n);var a=n?Sr(e):0;return n&&a<n?e+ko(n-a,i):e}function gw(e,n,i){e=Te(e),n=we(n);var a=n?Sr(e):0;return n&&a<n?ko(n-a,i)+e:e}function pw(e,n,i){return i||n==null?n=0:n&&(n=+n),Cv(Te(e).replace(jr,""),n||0)}function vw(e,n,i){return(i?at(e,n,i):n===o)?n=1:n=we(n),aa(Te(e),n)}function _w(){var e=arguments,n=Te(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var bw=Tr(function(e,n,i){return e+(i?"_":"")+n.toLowerCase()});function yw(e,n,i){return i&&typeof i!="number"&&at(e,n,i)&&(n=i=o),i=i===o?R:i>>>0,i?(e=Te(e),e&&(typeof n=="string"||n!=null&&!Ba(n))&&(n=xt(n),!n&&wr(e))?In(Wt(e),0,i):e.split(n,i)):[]}var ww=Tr(function(e,n,i){return e+(i?" ":"")+Ma(n)});function Sw(e,n,i){return e=Te(e),i=i==null?0:Qn(we(i),0,e.length),n=xt(n),e.slice(i,i+n.length)==n}function Cw(e,n,i){var a=h.templateSettings;i&&at(e,n,i)&&(n=o),e=Te(e),n=No({},n,a,qf);var f=No({},n.imports,a.imports,qf),g=Xe(f),v=Hl(f,g),y,E,L=0,P=n.interpolate||b,D="__p += '",ee=Gl((n.escape||b).source+"|"+P.source+"|"+(P===Hn?on:b).source+"|"+(n.evaluate||b).source+"|$","g"),ue="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ip+"]")+`
11
- `;e.replace(ee,function(me,xe,ke,kt,ut,Ot){return ke||(ke=kt),D+=e.slice(L,Ot).replace(ne,Xp),xe&&(y=!0,D+=`' +
12
- __e(`+xe+`) +
13
- '`),ut&&(E=!0,D+=`';
14
- `+ut+`;
10
+ `)}function J0(e){return ye(e)||nr(e)||!!(Wc&&e&&e[Wc])}function fn(e,n){var o=typeof e;return n=n??se,!!n&&(o=="number"||o!="symbol"&&Zo.test(e))&&e>-1&&e%1==0&&e<n}function st(e,n,o){if(!De(o))return!1;var a=typeof n;return(a=="number"?gt(o)&&fn(n,o.length):a=="string"&&n in o)?jt(o[n],e):!1}function ba(e,n){if(ye(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||kt(e)?!0:Sn.test(e)||!jn.test(e)||n!=null&&e in Me(n)}function e_(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function wa(e){var n=Ai(e),o=m[n];if(typeof o!="function"||!(n in xe.prototype))return!1;if(e===o)return!0;var a=va(o);return!!a&&e===a[0]}function t_(e){return!!Fc&&Fc in e}var n_=oi?dn:Na;function ao(e){var n=e&&e.constructor,o=typeof n=="function"&&n.prototype||xr;return e===o}function zf(e){return e===e&&!De(e)}function Uf(e,n){return function(o){return o==null?!1:o[e]===n&&(n!==i||e in Me(o))}}function r_(e){var n=Li(e,function(a){return o.size===E&&o.clear(),a}),o=n.cache;return n}function o_(e,n){var o=e[1],a=n[1],f=o|a,g=f<(T|G|j),v=a==j&&o==N||a==j&&o==ie&&e[7].length<=n[8]||a==(j|ie)&&n[7].length<=n[8]&&o==N;if(!(g||v))return e;a&T&&(e[2]=n[2],f|=o&T?0:F);var y=n[3];if(y){var x=e[3];e[3]=x?kf(x,y,n[4]):y,e[4]=x?On(e[3],p):n[4]}return y=n[5],y&&(x=e[5],e[5]=x?Ef(x,y,n[6]):y,e[6]=x?On(e[5],p):n[6]),y=n[7],y&&(e[7]=y),a&j&&(e[8]=e[8]==null?n[8]:ot(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=f,e}function i_(e){var n=[];if(e!=null)for(var o in Me(e))n.push(o);return n}function l_(e){return li.call(e)}function Hf(e,n,o){return n=Ze(n===i?e.length-1:n,0),function(){for(var a=arguments,f=-1,g=Ze(a.length-n,0),v=I(g);++f<g;)v[f]=a[n+f];f=-1;for(var y=I(n+1);++f<n;)y[f]=a[f];return y[n]=o(v),St(e,this,y)}}function Wf(e,n){return n.length<2?e:Jn(e,qt(n,0,-1))}function a_(e,n){for(var o=e.length,a=ot(n.length,o),f=mt(e);a--;){var g=n[a];e[a]=fn(g,o)?f[g]:i}return e}function Sa(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var Gf=Kf(gf),uo=Sv||function(e,n){return tt.setTimeout(e,n)},Ca=Kf(T0);function jf(e,n,o){var a=n+"";return Ca(e,X0(a,u_(Q0(a),o)))}function Kf(e){var n=0,o=0;return function(){var a=Ev(),f=te-(a-o);if(o=a,f>0){if(++n>=O)return arguments[0]}else n=0;return e.apply(i,arguments)}}function Ti(e,n){var o=-1,a=e.length,f=a-1;for(n=n===i?a:n;++o<n;){var g=ia(o,f),v=e[g];e[g]=e[o],e[o]=v}return e.length=n,e}var Qf=r_(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(wl,function(o,a,f,g){n.push(f?g.replace(xn,"$1"):a||o)}),n});function Jt(e){if(typeof e=="string"||kt(e))return e;var n=e+"";return n=="0"&&1/e==-z?"-0":n}function tr(e){if(e!=null){try{return ii.call(e)}catch{}try{return e+""}catch{}}return""}function u_(e,n){return Rt(ge,function(o){var a="_."+o[0];n&o[1]&&!ei(e,a)&&e.push(a)}),e.sort()}function Yf(e){if(e instanceof xe)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 s_(e,n,o){(o?st(e,n,o):n===i)?n=1:n=Ze(be(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var f=0,g=0,v=I(di(a/n));f<a;)v[g++]=qt(e,f,f+=n);return v}function c_(e){for(var n=-1,o=e==null?0:e.length,a=0,f=[];++n<o;){var g=e[n];g&&(f[a++]=g)}return f}function f_(){var e=arguments.length;if(!e)return[];for(var n=I(e-1),o=arguments[0],a=e;a--;)n[a-1]=arguments[a];return En(ye(o)?mt(o):[o],nt(n,1))}var d_=Se(function(e,n){return Ue(e)?no(e,nt(n,1,Ue,!0)):[]}),h_=Se(function(e,n){var o=Pt(n);return Ue(o)&&(o=i),Ue(e)?no(e,nt(n,1,Ue,!0),fe(o,2)):[]}),m_=Se(function(e,n){var o=Pt(n);return Ue(o)&&(o=i),Ue(e)?no(e,nt(n,1,Ue,!0),i,o):[]});function g_(e,n,o){var a=e==null?0:e.length;return a?(n=o||n===i?1:be(n),qt(e,n<0?0:n,a)):[]}function p_(e,n,o){var a=e==null?0:e.length;return a?(n=o||n===i?1:be(n),n=a-n,qt(e,0,n<0?0:n)):[]}function v_(e,n){return e&&e.length?Si(e,fe(n,3),!0,!0):[]}function __(e,n){return e&&e.length?Si(e,fe(n,3),!0):[]}function y_(e,n,o,a){var f=e==null?0:e.length;return f?(o&&typeof o!="number"&&st(e,n,o)&&(o=0,a=f),f0(e,n,o,a)):[]}function Zf(e,n,o){var a=e==null?0:e.length;if(!a)return-1;var f=o==null?0:be(o);return f<0&&(f=Ze(a+f,0)),ti(e,fe(n,3),f)}function Xf(e,n,o){var a=e==null?0:e.length;if(!a)return-1;var f=a-1;return o!==i&&(f=be(o),f=o<0?Ze(a+f,0):ot(f,a-1)),ti(e,fe(n,3),f,!0)}function Jf(e){var n=e==null?0:e.length;return n?nt(e,1):[]}function b_(e){var n=e==null?0:e.length;return n?nt(e,z):[]}function w_(e,n){var o=e==null?0:e.length;return o?(n=n===i?1:be(n),nt(e,n)):[]}function S_(e){for(var n=-1,o=e==null?0:e.length,a={};++n<o;){var f=e[n];a[f[0]]=f[1]}return a}function ed(e){return e&&e.length?e[0]:i}function C_(e,n,o){var a=e==null?0:e.length;if(!a)return-1;var f=o==null?0:be(o);return f<0&&(f=Ze(a+f,0)),br(e,n,f)}function x_(e){var n=e==null?0:e.length;return n?qt(e,0,-1):[]}var k_=Se(function(e){var n=Ne(e,ca);return n.length&&n[0]===e[0]?ea(n):[]}),E_=Se(function(e){var n=Pt(e),o=Ne(e,ca);return n===Pt(o)?n=i:o.pop(),o.length&&o[0]===e[0]?ea(o,fe(n,2)):[]}),O_=Se(function(e){var n=Pt(e),o=Ne(e,ca);return n=typeof n=="function"?n:i,n&&o.pop(),o.length&&o[0]===e[0]?ea(o,i,n):[]});function A_(e,n){return e==null?"":xv.call(e,n)}function Pt(e){var n=e==null?0:e.length;return n?e[n-1]:i}function B_(e,n,o){var a=e==null?0:e.length;if(!a)return-1;var f=a;return o!==i&&(f=be(o),f=f<0?Ze(a+f,0):ot(f,a-1)),n===n?uv(e,n,f):ti(e,Mc,f,!0)}function T_(e,n){return e&&e.length?ff(e,be(n)):i}var R_=Se(td);function td(e,n){return e&&e.length&&n&&n.length?oa(e,n):e}function I_(e,n,o){return e&&e.length&&n&&n.length?oa(e,n,fe(o,2)):e}function M_(e,n,o){return e&&e.length&&n&&n.length?oa(e,n,i,o):e}var L_=cn(function(e,n){var o=e==null?0:e.length,a=Yl(e,n);return mf(e,Ne(n,function(f){return fn(f,o)?+f:f}).sort(xf)),a});function q_(e,n){var o=[];if(!(e&&e.length))return o;var a=-1,f=[],g=e.length;for(n=fe(n,3);++a<g;){var v=e[a];n(v,a,e)&&(o.push(v),f.push(a))}return mf(e,f),o}function xa(e){return e==null?e:Av.call(e)}function P_(e,n,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&st(e,n,o)?(n=0,o=a):(n=n==null?0:be(n),o=o===i?a:be(o)),qt(e,n,o)):[]}function V_(e,n){return wi(e,n)}function N_(e,n,o){return aa(e,n,fe(o,2))}function $_(e,n){var o=e==null?0:e.length;if(o){var a=wi(e,n);if(a<o&&jt(e[a],n))return a}return-1}function D_(e,n){return wi(e,n,!0)}function F_(e,n,o){return aa(e,n,fe(o,2),!0)}function z_(e,n){var o=e==null?0:e.length;if(o){var a=wi(e,n,!0)-1;if(jt(e[a],n))return a}return-1}function U_(e){return e&&e.length?pf(e):[]}function H_(e,n){return e&&e.length?pf(e,fe(n,2)):[]}function W_(e){var n=e==null?0:e.length;return n?qt(e,1,n):[]}function G_(e,n,o){return e&&e.length?(n=o||n===i?1:be(n),qt(e,0,n<0?0:n)):[]}function j_(e,n,o){var a=e==null?0:e.length;return a?(n=o||n===i?1:be(n),n=a-n,qt(e,n<0?0:n,a)):[]}function K_(e,n){return e&&e.length?Si(e,fe(n,3),!1,!0):[]}function Q_(e,n){return e&&e.length?Si(e,fe(n,3)):[]}var Y_=Se(function(e){return Tn(nt(e,1,Ue,!0))}),Z_=Se(function(e){var n=Pt(e);return Ue(n)&&(n=i),Tn(nt(e,1,Ue,!0),fe(n,2))}),X_=Se(function(e){var n=Pt(e);return n=typeof n=="function"?n:i,Tn(nt(e,1,Ue,!0),i,n)});function J_(e){return e&&e.length?Tn(e):[]}function ey(e,n){return e&&e.length?Tn(e,fe(n,2)):[]}function ty(e,n){return n=typeof n=="function"?n:i,e&&e.length?Tn(e,i,n):[]}function ka(e){if(!(e&&e.length))return[];var n=0;return e=kn(e,function(o){if(Ue(o))return n=Ze(o.length,n),!0}),zl(n,function(o){return Ne(e,$l(o))})}function nd(e,n){if(!(e&&e.length))return[];var o=ka(e);return n==null?o:Ne(o,function(a){return St(n,i,a)})}var ny=Se(function(e,n){return Ue(e)?no(e,n):[]}),ry=Se(function(e){return sa(kn(e,Ue))}),oy=Se(function(e){var n=Pt(e);return Ue(n)&&(n=i),sa(kn(e,Ue),fe(n,2))}),iy=Se(function(e){var n=Pt(e);return n=typeof n=="function"?n:i,sa(kn(e,Ue),i,n)}),ly=Se(ka);function ay(e,n){return bf(e||[],n||[],to)}function uy(e,n){return bf(e||[],n||[],io)}var sy=Se(function(e){var n=e.length,o=n>1?e[n-1]:i;return o=typeof o=="function"?(e.pop(),o):i,nd(e,o)});function rd(e){var n=m(e);return n.__chain__=!0,n}function cy(e,n){return n(e),e}function Ri(e,n){return n(e)}var fy=cn(function(e){var n=e.length,o=n?e[0]:0,a=this.__wrapped__,f=function(g){return Yl(g,e)};return n>1||this.__actions__.length||!(a instanceof xe)||!fn(o)?this.thru(f):(a=a.slice(o,+o+(n?1:0)),a.__actions__.push({func:Ri,args:[f],thisArg:i}),new Mt(a,this.__chain__).thru(function(g){return n&&!g.length&&g.push(i),g}))});function dy(){return rd(this)}function hy(){return new Mt(this.value(),this.__chain__)}function my(){this.__values__===i&&(this.__values__=vd(this.value()));var e=this.__index__>=this.__values__.length,n=e?i:this.__values__[this.__index__++];return{done:e,value:n}}function gy(){return this}function py(e){for(var n,o=this;o instanceof pi;){var a=Yf(o);a.__index__=0,a.__values__=i,n?f.__wrapped__=a:n=a;var f=a;o=o.__wrapped__}return f.__wrapped__=e,n}function vy(){var e=this.__wrapped__;if(e instanceof xe){var n=e;return this.__actions__.length&&(n=new xe(this)),n=n.reverse(),n.__actions__.push({func:Ri,args:[xa],thisArg:i}),new Mt(n,this.__chain__)}return this.thru(xa)}function _y(){return yf(this.__wrapped__,this.__actions__)}var yy=Ci(function(e,n,o){Re.call(e,o)?++e[o]:un(e,o,1)});function by(e,n,o){var a=ye(e)?Rc:c0;return o&&st(e,n,o)&&(n=i),a(e,fe(n,3))}function wy(e,n){var o=ye(e)?kn:tf;return o(e,fe(n,3))}var Sy=Tf(Zf),Cy=Tf(Xf);function xy(e,n){return nt(Ii(e,n),1)}function ky(e,n){return nt(Ii(e,n),z)}function Ey(e,n,o){return o=o===i?1:be(o),nt(Ii(e,n),o)}function od(e,n){var o=ye(e)?Rt:Bn;return o(e,fe(n,3))}function id(e,n){var o=ye(e)?Wp:ef;return o(e,fe(n,3))}var Oy=Ci(function(e,n,o){Re.call(e,o)?e[o].push(n):un(e,o,[n])});function Ay(e,n,o,a){e=gt(e)?e:Ir(e),o=o&&!a?be(o):0;var f=e.length;return o<0&&(o=Ze(f+o,0)),Vi(e)?o<=f&&e.indexOf(n,o)>-1:!!f&&br(e,n,o)>-1}var By=Se(function(e,n,o){var a=-1,f=typeof n=="function",g=gt(e)?I(e.length):[];return Bn(e,function(v){g[++a]=f?St(n,v,o):ro(v,n,o)}),g}),Ty=Ci(function(e,n,o){un(e,o,n)});function Ii(e,n){var o=ye(e)?Ne:uf;return o(e,fe(n,3))}function Ry(e,n,o,a){return e==null?[]:(ye(n)||(n=n==null?[]:[n]),o=a?i:o,ye(o)||(o=o==null?[]:[o]),df(e,n,o))}var Iy=Ci(function(e,n,o){e[o?0:1].push(n)},function(){return[[],[]]});function My(e,n,o){var a=ye(e)?Vl:qc,f=arguments.length<3;return a(e,fe(n,4),o,f,Bn)}function Ly(e,n,o){var a=ye(e)?Gp:qc,f=arguments.length<3;return a(e,fe(n,4),o,f,ef)}function qy(e,n){var o=ye(e)?kn:tf;return o(e,qi(fe(n,3)))}function Py(e){var n=ye(e)?Yc:A0;return n(e)}function Vy(e,n,o){(o?st(e,n,o):n===i)?n=1:n=be(n);var a=ye(e)?i0:B0;return a(e,n)}function Ny(e){var n=ye(e)?l0:R0;return n(e)}function $y(e){if(e==null)return 0;if(gt(e))return Vi(e)?Sr(e):e.length;var n=it(e);return n==rt||n==Fe?e.size:na(e).length}function Dy(e,n,o){var a=ye(e)?Nl:I0;return o&&st(e,n,o)&&(n=i),a(e,fe(n,3))}var Fy=Se(function(e,n){if(e==null)return[];var o=n.length;return o>1&&st(e,n[0],n[1])?n=[]:o>2&&st(n[0],n[1],n[2])&&(n=[n[0]]),df(e,nt(n,1),[])}),Mi=wv||function(){return tt.Date.now()};function zy(e,n){if(typeof n!="function")throw new It(d);return e=be(e),function(){if(--e<1)return n.apply(this,arguments)}}function ld(e,n,o){return n=o?i:n,n=e&&n==null?e.length:n,sn(e,j,i,i,i,i,n)}function ad(e,n){var o;if(typeof n!="function")throw new It(d);return e=be(e),function(){return--e>0&&(o=n.apply(this,arguments)),e<=1&&(n=i),o}}var Ea=Se(function(e,n,o){var a=T;if(o.length){var f=On(o,Tr(Ea));a|=H}return sn(e,a,n,o,f)}),ud=Se(function(e,n,o){var a=T|G;if(o.length){var f=On(o,Tr(ud));a|=H}return sn(n,a,e,o,f)});function sd(e,n,o){n=o?i:n;var a=sn(e,N,i,i,i,i,i,n);return a.placeholder=sd.placeholder,a}function cd(e,n,o){n=o?i:n;var a=sn(e,Q,i,i,i,i,i,n);return a.placeholder=cd.placeholder,a}function fd(e,n,o){var a,f,g,v,y,x,L=0,q=!1,D=!1,ee=!0;if(typeof e!="function")throw new It(d);n=Vt(n)||0,De(o)&&(q=!!o.leading,D="maxWait"in o,g=D?Ze(Vt(o.maxWait)||0,n):g,ee="trailing"in o?!!o.trailing:ee);function ue(He){var Kt=a,mn=f;return a=f=i,L=He,v=e.apply(mn,Kt),v}function de(He){return L=He,y=uo(Ce,n),q?ue(He):v}function we(He){var Kt=He-x,mn=He-L,Td=n-Kt;return D?ot(Td,g-mn):Td}function he(He){var Kt=He-x,mn=He-L;return x===i||Kt>=n||Kt<0||D&&mn>=g}function Ce(){var He=Mi();if(he(He))return ke(He);y=uo(Ce,we(He))}function ke(He){return y=i,ee&&a?ue(He):(a=f=i,v)}function Et(){y!==i&&wf(y),L=0,a=x=f=y=i}function ct(){return y===i?v:ke(Mi())}function Ot(){var He=Mi(),Kt=he(He);if(a=arguments,f=this,x=He,Kt){if(y===i)return de(x);if(D)return wf(y),y=uo(Ce,n),ue(x)}return y===i&&(y=uo(Ce,n)),v}return Ot.cancel=Et,Ot.flush=ct,Ot}var Uy=Se(function(e,n){return Jc(e,1,n)}),Hy=Se(function(e,n,o){return Jc(e,Vt(n)||0,o)});function Wy(e){return sn(e,P)}function Li(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new It(d);var o=function(){var a=arguments,f=n?n.apply(this,a):a[0],g=o.cache;if(g.has(f))return g.get(f);var v=e.apply(this,a);return o.cache=g.set(f,v)||g,v};return o.cache=new(Li.Cache||an),o}Li.Cache=an;function qi(e){if(typeof e!="function")throw new It(d);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 Gy(e){return ad(2,e)}var jy=M0(function(e,n){n=n.length==1&&ye(n[0])?Ne(n[0],Ct(fe())):Ne(nt(n,1),Ct(fe()));var o=n.length;return Se(function(a){for(var f=-1,g=ot(a.length,o);++f<g;)a[f]=n[f].call(this,a[f]);return St(e,this,a)})}),Oa=Se(function(e,n){var o=On(n,Tr(Oa));return sn(e,H,i,n,o)}),dd=Se(function(e,n){var o=On(n,Tr(dd));return sn(e,K,i,n,o)}),Ky=cn(function(e,n){return sn(e,ie,i,i,i,n)});function Qy(e,n){if(typeof e!="function")throw new It(d);return n=n===i?n:be(n),Se(e,n)}function Yy(e,n){if(typeof e!="function")throw new It(d);return n=n==null?0:Ze(be(n),0),Se(function(o){var a=o[n],f=In(o,0,n);return a&&En(f,a),St(e,this,f)})}function Zy(e,n,o){var a=!0,f=!0;if(typeof e!="function")throw new It(d);return De(o)&&(a="leading"in o?!!o.leading:a,f="trailing"in o?!!o.trailing:f),fd(e,n,{leading:a,maxWait:n,trailing:f})}function Xy(e){return ld(e,1)}function Jy(e,n){return Oa(fa(n),e)}function eb(){if(!arguments.length)return[];var e=arguments[0];return ye(e)?e:[e]}function tb(e){return Lt(e,C)}function nb(e,n){return n=typeof n=="function"?n:i,Lt(e,C,n)}function rb(e){return Lt(e,w|C)}function ob(e,n){return n=typeof n=="function"?n:i,Lt(e,w|C,n)}function ib(e,n){return n==null||Xc(e,n,Xe(n))}function jt(e,n){return e===n||e!==e&&n!==n}var lb=Oi(Jl),ab=Oi(function(e,n){return e>=n}),nr=of(function(){return arguments}())?of:function(e){return ze(e)&&Re.call(e,"callee")&&!Hc.call(e,"callee")},ye=I.isArray,ub=kc?Ct(kc):p0;function gt(e){return e!=null&&Pi(e.length)&&!dn(e)}function Ue(e){return ze(e)&&gt(e)}function sb(e){return e===!0||e===!1||ze(e)&&ut(e)==Ee}var Mn=Cv||Na,cb=Ec?Ct(Ec):v0;function fb(e){return ze(e)&&e.nodeType===1&&!so(e)}function db(e){if(e==null)return!0;if(gt(e)&&(ye(e)||typeof e=="string"||typeof e.splice=="function"||Mn(e)||Rr(e)||nr(e)))return!e.length;var n=it(e);if(n==rt||n==Fe)return!e.size;if(ao(e))return!na(e).length;for(var o in e)if(Re.call(e,o))return!1;return!0}function hb(e,n){return oo(e,n)}function mb(e,n,o){o=typeof o=="function"?o:i;var a=o?o(e,n):i;return a===i?oo(e,n,i,o):!!a}function Aa(e){if(!ze(e))return!1;var n=ut(e);return n==at||n==$e||typeof e.message=="string"&&typeof e.name=="string"&&!so(e)}function gb(e){return typeof e=="number"&&Gc(e)}function dn(e){if(!De(e))return!1;var n=ut(e);return n==Ft||n==bt||n==re||n==Ur}function hd(e){return typeof e=="number"&&e==be(e)}function Pi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=se}function De(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function ze(e){return e!=null&&typeof e=="object"}var md=Oc?Ct(Oc):y0;function pb(e,n){return e===n||ta(e,n,_a(n))}function vb(e,n,o){return o=typeof o=="function"?o:i,ta(e,n,_a(n),o)}function _b(e){return gd(e)&&e!=+e}function yb(e){if(n_(e))throw new _e(c);return lf(e)}function bb(e){return e===null}function wb(e){return e==null}function gd(e){return typeof e=="number"||ze(e)&&ut(e)==wt}function so(e){if(!ze(e)||ut(e)!=ht)return!1;var n=si(e);if(n===null)return!0;var o=Re.call(n,"constructor")&&n.constructor;return typeof o=="function"&&o instanceof o&&ii.call(o)==vv}var Ba=Ac?Ct(Ac):b0;function Sb(e){return hd(e)&&e>=-se&&e<=se}var pd=Bc?Ct(Bc):w0;function Vi(e){return typeof e=="string"||!ye(e)&&ze(e)&&ut(e)==Qe}function kt(e){return typeof e=="symbol"||ze(e)&&ut(e)==Ut}var Rr=Tc?Ct(Tc):S0;function Cb(e){return e===i}function xb(e){return ze(e)&&it(e)==Un}function kb(e){return ze(e)&&ut(e)==zo}var Eb=Oi(ra),Ob=Oi(function(e,n){return e<=n});function vd(e){if(!e)return[];if(gt(e))return Vi(e)?Wt(e):mt(e);if(Yr&&e[Yr])return iv(e[Yr]());var n=it(e),o=n==rt?Hl:n==Fe?ni:Ir;return o(e)}function hn(e){if(!e)return e===0?e:0;if(e=Vt(e),e===z||e===-z){var n=e<0?-1:1;return n*Ae}return e===e?e:0}function be(e){var n=hn(e),o=n%1;return n===n?o?n-o:n:0}function _d(e){return e?Xn(be(e),0,R):0}function Vt(e){if(typeof e=="number")return e;if(kt(e))return me;if(De(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=De(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Pc(e);var o=Al.test(e);return o||Yo.test(e)?zp(e.slice(2),o?2:8):Kr.test(e)?me:+e}function yd(e){return Xt(e,pt(e))}function Ab(e){return e?Xn(be(e),-se,se):e===0?e:0}function Be(e){return e==null?"":xt(e)}var Bb=Ar(function(e,n){if(ao(n)||gt(n)){Xt(n,Xe(n),e);return}for(var o in n)Re.call(n,o)&&to(e,o,n[o])}),bd=Ar(function(e,n){Xt(n,pt(n),e)}),Ni=Ar(function(e,n,o,a){Xt(n,pt(n),e,a)}),Tb=Ar(function(e,n,o,a){Xt(n,Xe(n),e,a)}),Rb=cn(Yl);function Ib(e,n){var o=Or(e);return n==null?o:Zc(o,n)}var Mb=Se(function(e,n){e=Me(e);var o=-1,a=n.length,f=a>2?n[2]:i;for(f&&st(n[0],n[1],f)&&(a=1);++o<a;)for(var g=n[o],v=pt(g),y=-1,x=v.length;++y<x;){var L=v[y],q=e[L];(q===i||jt(q,xr[L])&&!Re.call(e,L))&&(e[L]=g[L])}return e}),Lb=Se(function(e){return e.push(i,Vf),St(wd,i,e)});function qb(e,n){return Ic(e,fe(n,3),Zt)}function Pb(e,n){return Ic(e,fe(n,3),Xl)}function Vb(e,n){return e==null?e:Zl(e,fe(n,3),pt)}function Nb(e,n){return e==null?e:nf(e,fe(n,3),pt)}function $b(e,n){return e&&Zt(e,fe(n,3))}function Db(e,n){return e&&Xl(e,fe(n,3))}function Fb(e){return e==null?[]:yi(e,Xe(e))}function zb(e){return e==null?[]:yi(e,pt(e))}function Ta(e,n,o){var a=e==null?i:Jn(e,n);return a===i?o:a}function Ub(e,n){return e!=null&&Df(e,n,d0)}function Ra(e,n){return e!=null&&Df(e,n,h0)}var Hb=If(function(e,n,o){n!=null&&typeof n.toString!="function"&&(n=li.call(n)),e[n]=o},Ma(vt)),Wb=If(function(e,n,o){n!=null&&typeof n.toString!="function"&&(n=li.call(n)),Re.call(e,n)?e[n].push(o):e[n]=[o]},fe),Gb=Se(ro);function Xe(e){return gt(e)?Qc(e):na(e)}function pt(e){return gt(e)?Qc(e,!0):C0(e)}function jb(e,n){var o={};return n=fe(n,3),Zt(e,function(a,f,g){un(o,n(a,f,g),a)}),o}function Kb(e,n){var o={};return n=fe(n,3),Zt(e,function(a,f,g){un(o,f,n(a,f,g))}),o}var Qb=Ar(function(e,n,o){bi(e,n,o)}),wd=Ar(function(e,n,o,a){bi(e,n,o,a)}),Yb=cn(function(e,n){var o={};if(e==null)return o;var a=!1;n=Ne(n,function(g){return g=Rn(g,e),a||(a=g.length>1),g}),Xt(e,pa(e),o),a&&(o=Lt(o,w|k|C,H0));for(var f=n.length;f--;)ua(o,n[f]);return o});function Zb(e,n){return Sd(e,qi(fe(n)))}var Xb=cn(function(e,n){return e==null?{}:k0(e,n)});function Sd(e,n){if(e==null)return{};var o=Ne(pa(e),function(a){return[a]});return n=fe(n),hf(e,o,function(a,f){return n(a,f[0])})}function Jb(e,n,o){n=Rn(n,e);var a=-1,f=n.length;for(f||(f=1,e=i);++a<f;){var g=e==null?i:e[Jt(n[a])];g===i&&(a=f,g=o),e=dn(g)?g.call(e):g}return e}function ew(e,n,o){return e==null?e:io(e,n,o)}function tw(e,n,o,a){return a=typeof a=="function"?a:i,e==null?e:io(e,n,o,a)}var Cd=qf(Xe),xd=qf(pt);function nw(e,n,o){var a=ye(e),f=a||Mn(e)||Rr(e);if(n=fe(n,4),o==null){var g=e&&e.constructor;f?o=a?new g:[]:De(e)?o=dn(g)?Or(si(e)):{}:o={}}return(f?Rt:Zt)(e,function(v,y,x){return n(o,v,y,x)}),o}function rw(e,n){return e==null?!0:ua(e,n)}function ow(e,n,o){return e==null?e:_f(e,n,fa(o))}function iw(e,n,o,a){return a=typeof a=="function"?a:i,e==null?e:_f(e,n,fa(o),a)}function Ir(e){return e==null?[]:Ul(e,Xe(e))}function lw(e){return e==null?[]:Ul(e,pt(e))}function aw(e,n,o){return o===i&&(o=n,n=i),o!==i&&(o=Vt(o),o=o===o?o:0),n!==i&&(n=Vt(n),n=n===n?n:0),Xn(Vt(e),n,o)}function uw(e,n,o){return n=hn(n),o===i?(o=n,n=0):o=hn(o),e=Vt(e),m0(e,n,o)}function sw(e,n,o){if(o&&typeof o!="boolean"&&st(e,n,o)&&(n=o=i),o===i&&(typeof n=="boolean"?(o=n,n=i):typeof e=="boolean"&&(o=e,e=i)),e===i&&n===i?(e=0,n=1):(e=hn(e),n===i?(n=e,e=0):n=hn(n)),e>n){var a=e;e=n,n=a}if(o||e%1||n%1){var f=jc();return ot(e+f*(n-e+Fp("1e-"+((f+"").length-1))),n)}return ia(e,n)}var cw=Br(function(e,n,o){return n=n.toLowerCase(),e+(o?kd(n):n)});function kd(e){return Ia(Be(e).toLowerCase())}function Ed(e){return e=Be(e),e&&e.replace(Xo,ev).replace(Rp,"")}function fw(e,n,o){e=Be(e),n=xt(n);var a=e.length;o=o===i?a:Xn(be(o),0,a);var f=o;return o-=n.length,o>=0&&e.slice(o,f)==n}function dw(e){return e=Be(e),e&&jo.test(e)?e.replace(Go,tv):e}function hw(e){return e=Be(e),e&&Sl.test(e)?e.replace(Gr,"\\$&"):e}var mw=Br(function(e,n,o){return e+(o?"-":"")+n.toLowerCase()}),gw=Br(function(e,n,o){return e+(o?" ":"")+n.toLowerCase()}),pw=Bf("toLowerCase");function vw(e,n,o){e=Be(e),n=be(n);var a=n?Sr(e):0;if(!n||a>=n)return e;var f=(n-a)/2;return Ei(hi(f),o)+e+Ei(di(f),o)}function _w(e,n,o){e=Be(e),n=be(n);var a=n?Sr(e):0;return n&&a<n?e+Ei(n-a,o):e}function yw(e,n,o){e=Be(e),n=be(n);var a=n?Sr(e):0;return n&&a<n?Ei(n-a,o)+e:e}function bw(e,n,o){return o||n==null?n=0:n&&(n=+n),Ov(Be(e).replace(jr,""),n||0)}function ww(e,n,o){return(o?st(e,n,o):n===i)?n=1:n=be(n),la(Be(e),n)}function Sw(){var e=arguments,n=Be(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var Cw=Br(function(e,n,o){return e+(o?"_":"")+n.toLowerCase()});function xw(e,n,o){return o&&typeof o!="number"&&st(e,n,o)&&(n=o=i),o=o===i?R:o>>>0,o?(e=Be(e),e&&(typeof n=="string"||n!=null&&!Ba(n))&&(n=xt(n),!n&&wr(e))?In(Wt(e),0,o):e.split(n,o)):[]}var kw=Br(function(e,n,o){return e+(o?" ":"")+Ia(n)});function Ew(e,n,o){return e=Be(e),o=o==null?0:Xn(be(o),0,e.length),n=xt(n),e.slice(o,o+n.length)==n}function Ow(e,n,o){var a=m.templateSettings;o&&st(e,n,o)&&(n=i),e=Be(e),n=Ni({},n,a,Pf);var f=Ni({},n.imports,a.imports,Pf),g=Xe(f),v=Ul(f,g),y,x,L=0,q=n.interpolate||_,D="__p += '",ee=Wl((n.escape||_).source+"|"+q.source+"|"+(q===Gn?rn:_).source+"|"+(n.evaluate||_).source+"|$","g"),ue="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pp+"]")+`
11
+ `;e.replace(ee,function(he,Ce,ke,Et,ct,Ot){return ke||(ke=Et),D+=e.slice(L,Ot).replace(ne,nv),Ce&&(y=!0,D+=`' +
12
+ __e(`+Ce+`) +
13
+ '`),ct&&(x=!0,D+=`';
14
+ `+ct+`;
15
15
  __p += '`),ke&&(D+=`' +
16
16
  ((__t = (`+ke+`)) == null ? '' : __t) +
17
- '`),L=Ot+me.length,me}),D+=`';
18
- `;var he=Re.call(n,"variable")&&n.variable;if(!he)D=`with (obj) {
17
+ '`),L=Ot+he.length,he}),D+=`';
18
+ `;var de=Re.call(n,"variable")&&n.variable;if(!de)D=`with (obj) {
19
19
  `+D+`
20
20
  }
21
- `;else if(Cn.test(he))throw new be(m);D=(E?D.replace(Ui,""):D).replace(zi,"$1").replace(Hi,"$1;"),D="function("+(he||"obj")+`) {
22
- `+(he?"":`obj || (obj = {});
23
- `)+"var __t, __p = ''"+(y?", __e = _.escape":"")+(E?`, __j = Array.prototype.join;
21
+ `;else if(Cn.test(de))throw new _e(h);D=(x?D.replace(Uo,""):D).replace(Ho,"$1").replace(Wo,"$1;"),D="function("+(de||"obj")+`) {
22
+ `+(de?"":`obj || (obj = {});
23
+ `)+"var __t, __p = ''"+(y?", __e = _.escape":"")+(x?`, __j = Array.prototype.join;
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+D+`return __p
27
- }`;var Se=Ad(function(){return Ae(g,ue+"return "+D).apply(o,v)});if(Se.source=D,Ta(Se))throw Se;return Se}function xw(e){return Te(e).toLowerCase()}function Ew(e){return Te(e).toUpperCase()}function kw(e,n,i){if(e=Te(e),e&&(i||n===o))return qc(e);if(!e||!(n=xt(n)))return e;var a=Wt(e),f=Wt(n),g=Vc(a,f),v=Nc(a,f)+1;return In(a,g,v).join("")}function Ow(e,n,i){if(e=Te(e),e&&(i||n===o))return e.slice(0,Dc(e)+1);if(!e||!(n=xt(n)))return e;var a=Wt(e),f=Nc(a,Wt(n))+1;return In(a,0,f).join("")}function Aw(e,n,i){if(e=Te(e),e&&(i||n===o))return e.replace(jr,"");if(!e||!(n=xt(n)))return e;var a=Wt(e),f=Vc(a,Wt(n));return In(a,f).join("")}function Tw(e,n){var i=$,a=Q;if(De(n)){var f="separator"in n?n.separator:f;i="length"in n?we(n.length):i,a="omission"in n?xt(n.omission):a}e=Te(e);var g=e.length;if(wr(e)){var v=Wt(e);g=v.length}if(i>=g)return e;var y=i-Sr(a);if(y<1)return a;var E=v?In(v,0,y).join(""):e.slice(0,y);if(f===o)return E+a;if(v&&(y+=E.length-y),Ba(f)){if(e.slice(y).search(f)){var L,P=E;for(f.global||(f=Gl(f.source,Te(ln.exec(f))+"g")),f.lastIndex=0;L=f.exec(P);)var D=L.index;E=E.slice(0,D===o?y:D)}}else if(e.indexOf(xt(f),y)!=y){var ee=E.lastIndexOf(f);ee>-1&&(E=E.slice(0,ee))}return E+a}function Bw(e){return e=Te(e),e&&yl.test(e)?e.replace(Wr,ov):e}var Rw=Tr(function(e,n,i){return e+(i?" ":"")+n.toUpperCase()}),Ma=Tf("toUpperCase");function Od(e,n,i){return e=Te(e),n=i?o:n,n===o?ev(e)?uv(e):Wp(e):e.match(n)||[]}var Ad=Ce(function(e,n){try{return St(e,o,n)}catch(i){return Ta(i)?i:new be(i)}}),Iw=fn(function(e,n){return Rt(n,function(i){i=Jt(i),sn(e,i,Oa(e[i],e))}),e});function Mw(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(d);return[i(a[0]),a[1]]}):[],Ce(function(a){for(var f=-1;++f<n;){var g=e[f];if(St(g[0],this,a))return St(g[1],this,a)}})}function Lw(e){return o0(Lt(e,S))}function La(e){return function(){return e}}function Pw(e,n){return e==null||e!==e?n:e}var qw=Rf(),Vw=Rf(!0);function vt(e){return e}function Pa(e){return af(typeof e=="function"?e:Lt(e,S))}function Nw(e){return sf(Lt(e,S))}function $w(e,n){return cf(e,Lt(n,S))}var Dw=Ce(function(e,n){return function(i){return ri(i,e,n)}}),Fw=Ce(function(e,n){return function(i){return ri(e,i,n)}});function qa(e,n,i){var a=Xe(n),f=bo(n,a);i==null&&!(De(n)&&(f.length||!a.length))&&(i=n,n=e,e=this,f=bo(n,Xe(n)));var g=!(De(i)&&"chain"in i)||!!i.chain,v=hn(e);return Rt(f,function(y){var E=n[y];e[y]=E,v&&(e.prototype[y]=function(){var L=this.__chain__;if(g||L){var P=e(this.__wrapped__),D=P.__actions__=mt(this.__actions__);return D.push({func:E,args:arguments,thisArg:e}),P.__chain__=L,P}return E.apply(e,kn([this.value()],arguments))})}),e}function Uw(){return et._===this&&(et._=mv),this}function Va(){}function zw(e){return e=we(e),Ce(function(n){return ff(n,e)})}var Hw=ma(Ne),Ww=ma(Rc),Gw=ma($l);function Td(e){return wa(e)?Dl(Jt(e)):S0(e)}function jw(e){return function(n){return e==null?o:Zn(e,n)}}var Kw=Mf(),Yw=Mf(!0);function Na(){return[]}function $a(){return!1}function Qw(){return{}}function Zw(){return""}function Xw(){return!0}function Jw(e,n){if(e=we(e),e<1||e>j)return[];var i=R,a=rt(e,R);n=de(n),e-=R;for(var f=zl(a,n);++i<e;)n(i);return f}function eS(e){return ye(e)?Ne(e,Jt):Et(e)?[e]:mt(Yf(Te(e)))}function tS(e){var n=++dv;return Te(e)+n}var nS=Eo(function(e,n){return e+n},0),rS=ga("ceil"),iS=Eo(function(e,n){return e/n},1),oS=ga("floor");function lS(e){return e&&e.length?_o(e,vt,ea):o}function aS(e,n){return e&&e.length?_o(e,de(n,2),ea):o}function uS(e){return Lc(e,vt)}function sS(e,n){return Lc(e,de(n,2))}function cS(e){return e&&e.length?_o(e,vt,ia):o}function fS(e,n){return e&&e.length?_o(e,de(n,2),ia):o}var dS=Eo(function(e,n){return e*n},1),hS=ga("round"),mS=Eo(function(e,n){return e-n},0);function gS(e){return e&&e.length?Ul(e,vt):0}function pS(e,n){return e&&e.length?Ul(e,de(n,2)):0}return h.after=Nb,h.ary=ld,h.assign=Ey,h.assignIn=yd,h.assignInWith=No,h.assignWith=ky,h.at=Oy,h.before=ad,h.bind=Oa,h.bindAll=Iw,h.bindKey=ud,h.castArray=Qb,h.chain=rd,h.chunk=o_,h.compact=l_,h.concat=a_,h.cond=Mw,h.conforms=Lw,h.constant=La,h.countBy=gb,h.create=Ay,h.curry=sd,h.curryRight=cd,h.debounce=fd,h.defaults=Ty,h.defaultsDeep=By,h.defer=$b,h.delay=Db,h.difference=u_,h.differenceBy=s_,h.differenceWith=c_,h.drop=f_,h.dropRight=d_,h.dropRightWhile=h_,h.dropWhile=m_,h.fill=g_,h.filter=vb,h.flatMap=yb,h.flatMapDeep=wb,h.flatMapDepth=Sb,h.flatten=Jf,h.flattenDeep=p_,h.flattenDepth=v_,h.flip=Fb,h.flow=qw,h.flowRight=Vw,h.fromPairs=__,h.functions=Vy,h.functionsIn=Ny,h.groupBy=Cb,h.initial=y_,h.intersection=w_,h.intersectionBy=S_,h.intersectionWith=C_,h.invert=Dy,h.invertBy=Fy,h.invokeMap=Eb,h.iteratee=Pa,h.keyBy=kb,h.keys=Xe,h.keysIn=pt,h.map=Io,h.mapKeys=zy,h.mapValues=Hy,h.matches=Nw,h.matchesProperty=$w,h.memoize=Lo,h.merge=Wy,h.mergeWith=wd,h.method=Dw,h.methodOf=Fw,h.mixin=qa,h.negate=Po,h.nthArg=zw,h.omit=Gy,h.omitBy=jy,h.once=Ub,h.orderBy=Ob,h.over=Hw,h.overArgs=zb,h.overEvery=Ww,h.overSome=Gw,h.partial=Aa,h.partialRight=dd,h.partition=Ab,h.pick=Ky,h.pickBy=Sd,h.property=Td,h.propertyOf=jw,h.pull=O_,h.pullAll=td,h.pullAllBy=A_,h.pullAllWith=T_,h.pullAt=B_,h.range=Kw,h.rangeRight=Yw,h.rearg=Hb,h.reject=Rb,h.remove=R_,h.rest=Wb,h.reverse=Ea,h.sampleSize=Mb,h.set=Qy,h.setWith=Zy,h.shuffle=Lb,h.slice=I_,h.sortBy=Vb,h.sortedUniq=$_,h.sortedUniqBy=D_,h.split=yw,h.spread=Gb,h.tail=F_,h.take=U_,h.takeRight=z_,h.takeRightWhile=H_,h.takeWhile=W_,h.tap=lb,h.throttle=jb,h.thru=Ro,h.toArray=vd,h.toPairs=Cd,h.toPairsIn=xd,h.toPath=eS,h.toPlainObject=bd,h.transform=Xy,h.unary=Kb,h.union=G_,h.unionBy=j_,h.unionWith=K_,h.uniq=Y_,h.uniqBy=Q_,h.uniqWith=Z_,h.unset=Jy,h.unzip=ka,h.unzipWith=nd,h.update=ew,h.updateWith=tw,h.values=Ir,h.valuesIn=nw,h.without=X_,h.words=Od,h.wrap=Yb,h.xor=J_,h.xorBy=eb,h.xorWith=tb,h.zip=nb,h.zipObject=rb,h.zipObjectDeep=ib,h.zipWith=ob,h.entries=Cd,h.entriesIn=xd,h.extend=yd,h.extendWith=No,qa(h,h),h.add=nS,h.attempt=Ad,h.camelCase=lw,h.capitalize=Ed,h.ceil=rS,h.clamp=rw,h.clone=Zb,h.cloneDeep=Jb,h.cloneDeepWith=ey,h.cloneWith=Xb,h.conformsTo=ty,h.deburr=kd,h.defaultTo=Pw,h.divide=iS,h.endsWith=aw,h.eq=jt,h.escape=uw,h.escapeRegExp=sw,h.every=pb,h.find=_b,h.findIndex=Zf,h.findKey=Ry,h.findLast=bb,h.findLastIndex=Xf,h.findLastKey=Iy,h.floor=oS,h.forEach=id,h.forEachRight=od,h.forIn=My,h.forInRight=Ly,h.forOwn=Py,h.forOwnRight=qy,h.get=Ra,h.gt=ny,h.gte=ry,h.has=$y,h.hasIn=Ia,h.head=ed,h.identity=vt,h.includes=xb,h.indexOf=b_,h.inRange=iw,h.invoke=Uy,h.isArguments=er,h.isArray=ye,h.isArrayBuffer=iy,h.isArrayLike=gt,h.isArrayLikeObject=ze,h.isBoolean=oy,h.isBuffer=Mn,h.isDate=ly,h.isElement=ay,h.isEmpty=uy,h.isEqual=sy,h.isEqualWith=cy,h.isError=Ta,h.isFinite=fy,h.isFunction=hn,h.isInteger=hd,h.isLength=qo,h.isMap=md,h.isMatch=dy,h.isMatchWith=hy,h.isNaN=my,h.isNative=gy,h.isNil=vy,h.isNull=py,h.isNumber=gd,h.isObject=De,h.isObjectLike=Ue,h.isPlainObject=si,h.isRegExp=Ba,h.isSafeInteger=_y,h.isSet=pd,h.isString=Vo,h.isSymbol=Et,h.isTypedArray=Rr,h.isUndefined=by,h.isWeakMap=yy,h.isWeakSet=wy,h.join=x_,h.kebabCase=cw,h.last=qt,h.lastIndexOf=E_,h.lowerCase=fw,h.lowerFirst=dw,h.lt=Sy,h.lte=Cy,h.max=lS,h.maxBy=aS,h.mean=uS,h.meanBy=sS,h.min=cS,h.minBy=fS,h.stubArray=Na,h.stubFalse=$a,h.stubObject=Qw,h.stubString=Zw,h.stubTrue=Xw,h.multiply=dS,h.nth=k_,h.noConflict=Uw,h.noop=Va,h.now=Mo,h.pad=hw,h.padEnd=mw,h.padStart=gw,h.parseInt=pw,h.random=ow,h.reduce=Tb,h.reduceRight=Bb,h.repeat=vw,h.replace=_w,h.result=Yy,h.round=hS,h.runInContext=C,h.sample=Ib,h.size=Pb,h.snakeCase=bw,h.some=qb,h.sortedIndex=M_,h.sortedIndexBy=L_,h.sortedIndexOf=P_,h.sortedLastIndex=q_,h.sortedLastIndexBy=V_,h.sortedLastIndexOf=N_,h.startCase=ww,h.startsWith=Sw,h.subtract=mS,h.sum=gS,h.sumBy=pS,h.template=Cw,h.times=Jw,h.toFinite=mn,h.toInteger=we,h.toLength=_d,h.toLower=xw,h.toNumber=Vt,h.toSafeInteger=xy,h.toString=Te,h.toUpper=Ew,h.trim=kw,h.trimEnd=Ow,h.trimStart=Aw,h.truncate=Tw,h.unescape=Bw,h.uniqueId=tS,h.upperCase=Rw,h.upperFirst=Ma,h.each=id,h.eachRight=od,h.first=ed,qa(h,function(){var e={};return Zt(h,function(n,i){Re.call(h.prototype,i)||(e[i]=n)}),e}(),{chain:!1}),h.VERSION=u,Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),Rt(["drop","take"],function(e,n){Ee.prototype[e]=function(i){i=i===o?1:Ze(we(i),0);var a=this.__filtered__&&!n?new Ee(this):this.clone();return a.__filtered__?a.__takeCount__=rt(i,a.__takeCount__):a.__views__.push({size:rt(i,R),type:e+(a.__dir__<0?"Right":"")}),a},Ee.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),Rt(["filter","map","takeWhile"],function(e,n){var i=n+1,a=i==N||i==le;Ee.prototype[e]=function(f){var g=this.clone();return g.__iteratees__.push({iteratee:de(f,3),type:i}),g.__filtered__=g.__filtered__||a,g}}),Rt(["head","last"],function(e,n){var i="take"+(n?"Right":"");Ee.prototype[e]=function(){return this[i](1).value()[0]}}),Rt(["initial","tail"],function(e,n){var i="drop"+(n?"":"Right");Ee.prototype[e]=function(){return this.__filtered__?new Ee(this):this[i](1)}}),Ee.prototype.compact=function(){return this.filter(vt)},Ee.prototype.find=function(e){return this.filter(e).head()},Ee.prototype.findLast=function(e){return this.reverse().find(e)},Ee.prototype.invokeMap=Ce(function(e,n){return typeof e=="function"?new Ee(this):this.map(function(i){return ri(i,e,n)})}),Ee.prototype.reject=function(e){return this.filter(Po(de(e)))},Ee.prototype.slice=function(e,n){e=we(e);var i=this;return i.__filtered__&&(e>0||n<0)?new Ee(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),n!==o&&(n=we(n),i=n<0?i.dropRight(-n):i.take(n-e)),i)},Ee.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ee.prototype.toArray=function(){return this.take(R)},Zt(Ee.prototype,function(e,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),f=h[a?"take"+(n=="last"?"Right":""):n],g=a||/^find/.test(n);f&&(h.prototype[n]=function(){var v=this.__wrapped__,y=a?[1]:arguments,E=v instanceof Ee,L=y[0],P=E||ye(v),D=function(xe){var ke=f.apply(h,kn([xe],y));return a&&ee?ke[0]:ke};P&&i&&typeof L=="function"&&L.length!=1&&(E=P=!1);var ee=this.__chain__,ue=!!this.__actions__.length,he=g&&!ee,Se=E&&!ue;if(!g&&P){v=Se?v:new Ee(this);var me=e.apply(v,y);return me.__actions__.push({func:Ro,args:[D],thisArg:o}),new Mt(me,ee)}return he&&Se?e.apply(this,y):(me=this.thru(D),he?a?me.value()[0]:me.value():me)})}),Rt(["pop","push","shift","sort","splice","unshift"],function(e){var n=no[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var f=arguments;if(a&&!this.__chain__){var g=this.value();return n.apply(ye(g)?g:[],f)}return this[i](function(v){return n.apply(ye(v)?v:[],f)})}}),Zt(Ee.prototype,function(e,n){var i=h[n];if(i){var a=i.name+"";Re.call(kr,a)||(kr[a]=[]),kr[a].push({name:n,func:i})}}),kr[xo(o,W).name]=[{name:"wrapper",func:o}],Ee.prototype.clone=Bv,Ee.prototype.reverse=Rv,Ee.prototype.value=Iv,h.prototype.at=ab,h.prototype.chain=ub,h.prototype.commit=sb,h.prototype.next=cb,h.prototype.plant=db,h.prototype.reverse=hb,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=mb,h.prototype.first=h.prototype.head,Qr&&(h.prototype[Qr]=fb),h},Cr=sv();Gn?((Gn.exports=Cr)._=Cr,Pl._=Cr):et._=Cr}).call(ve)}(ci,ci.exports);var qe=ci.exports,st={},Da={},tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.EstadoCaptacion=tr.TipoCaptacion=void 0;var Fa;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5"})(Fa||(tr.TipoCaptacion=Fa={}));var Ua;(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"})(Ua||(tr.EstadoCaptacion=Ua={}));var fi={};Object.defineProperty(fi,"__esModule",{value:!0}),fi.TipoGarantia=void 0;var za;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(za||(fi.TipoGarantia=za={}));var di={};Object.defineProperty(di,"__esModule",{value:!0}),di.TipoImportacion=void 0;var Ha;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(Ha||(di.TipoImportacion=Ha={}));var pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.TipoLiquidacionReclamo=pn.EstadoLiquidacionReclamo=pn.EstadoLiquidacion=void 0;var Wa;(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"})(Wa||(pn.EstadoLiquidacion=Wa={}));var Ga;(function(t){t[t.ACTIVO=1]="ACTIVO",t[t.APROBADO=2]="APROBADO",t[t.NEGADO=3]="NEGADO"})(Ga||(pn.EstadoLiquidacionReclamo=Ga={}));var ja;(function(t){t[t.ITEM=1]="ITEM",t[t.COBRO=2]="COBRO"})(ja||(pn.TipoLiquidacionReclamo=ja={}));var hi={};Object.defineProperty(hi,"__esModule",{value:!0}),hi.TipoNotificacion=void 0;var Ka;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(Ka||(hi.TipoNotificacion=Ka={}));var mi={};Object.defineProperty(mi,"__esModule",{value:!0}),mi.EstadoPedido=void 0;var Ya;(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"})(Ya||(mi.EstadoPedido=Ya={}));var nr={};Object.defineProperty(nr,"__esModule",{value:!0}),nr.TipoProducto=nr.EstadoProducto=void 0;var Qa;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(Qa||(nr.EstadoProducto=Qa={}));var Za;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(Za||(nr.TipoProducto=Za={}));var gi={};Object.defineProperty(gi,"__esModule",{value:!0}),gi.EstadoBase=void 0;var Xa;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(Xa||(gi.EstadoBase=Xa={})),function(t){var l=ve&&ve.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var m=Object.getOwnPropertyDescriptor(s,c);(!m||("get"in m?!s.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,m)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),o=ve&&ve.__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(fi,t),o(di,t),o(pn,t),o(hi,t),o(mi,t),o(nr,t),o(gi,t)}(Da);var Ja={},eu={},tu={};Object.defineProperty(tu,"__esModule",{value:!0}),function(t){var l=ve&&ve.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var m=Object.getOwnPropertyDescriptor(s,c);(!m||("get"in m?!s.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,m)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),o=ve&&ve.__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(tu,t)}(eu);var nu={},pi={};Object.defineProperty(pi,"__esModule",{value:!0}),pi.LAYOUT_COLUMNA_TYPES=void 0,pi.LAYOUT_COLUMNA_TYPES=["texto","numero","fecha"],function(t){var l=ve&&ve.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var m=Object.getOwnPropertyDescriptor(s,c);(!m||("get"in m?!s.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,m)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),o=ve&&ve.__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)}(nu);var ru={},vn={};Object.defineProperty(vn,"__esModule",{value:!0}),vn.LAYOUT_SECTION_TYPES=vn.LayoutSectionType=vn.TextLineType=void 0;var iu;(function(t){t.TITLE="title",t.SUBTITLE="subtitle",t.PARAGRAPH="paragraph"})(iu||(vn.TextLineType=iu={}));var rr;(function(t){t.TEXT="text",t.TABLE="table",t.CARDS_GRID="cards-grid",t.IMAGE="image"})(rr||(vn.LayoutSectionType=rr={})),vn.LAYOUT_SECTION_TYPES=[rr.TEXT,rr.CARDS_GRID,rr.TABLE,rr.IMAGE],function(t){var l=ve&&ve.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var m=Object.getOwnPropertyDescriptor(s,c);(!m||("get"in m?!s.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,m)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),o=ve&&ve.__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(vn,t)}(ru);var ou={},ir={};Object.defineProperty(ir,"__esModule",{value:!0}),ir.COMISION_SOURCE_ENTITIES=ir.TipoComision=void 0;var lu;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(lu||(ir.TipoComision=lu={})),ir.COMISION_SOURCE_ENTITIES=["captacion","pedido","producto","propuesta","importacion"];var au={};Object.defineProperty(au,"__esModule",{value:!0});var vi={};Object.defineProperty(vi,"__esModule",{value:!0}),vi.TipoLiquidacion=void 0;var uu;(function(t){t.SOLICITUD_CLIENTE="solicitud_cliente",t.RED_COMERCIAL="red_comercial"})(uu||(vi.TipoLiquidacion=uu={}));var At={};Object.defineProperty(At,"__esModule",{value:!0}),At.TABLES=At.TABLES_FIELDS=At.SOURCES=At.LOGIC_OPERATORS=At.RULE_OPERATORS=void 0,At.RULE_OPERATORS=["==","!=","<",">","IN"],At.LOGIC_OPERATORS=["AND","OR"],At.SOURCES=["IMPORTACION","TABLA","CONTENEDOR"],At.TABLES_FIELDS={PRODUCTOS:["TIPO","NOMBRE","DESCRIPCION","ID_GAMA","ESTADO","TAGS","ID_PRODUCTO","PROPS","CODIGO_EXTERNO"],CAPTACION:["ESTADO","TIPO","CAPTADO","ID_CAPTACION","FECHA_CAPTADO","COD_CLIENTE","COD_PROVEEDOR"]},At.TABLES=[{label:"PRODUCTOS",value:"PRODUCTOS"},{label:"CAPTACIONES",value:"CAPTACION"}],function(t){var l=ve&&ve.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var m=Object.getOwnPropertyDescriptor(s,c);(!m||("get"in m?!s.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,m)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),o=ve&&ve.__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(ir,t),o(au,t),o(vi,t),o(At,t)}(ou);var su={},_i={};Object.defineProperty(_i,"__esModule",{value:!0}),_i.OPERATORS=void 0,_i.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var or={};Object.defineProperty(or,"__esModule",{value:!0}),or.ControlType=or.GAMA_PROP_CONTROL_TYPES=void 0,or.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 cu;(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"})(cu||(or.ControlType=cu={}));var fu={};Object.defineProperty(fu,"__esModule",{value:!0});var du={};Object.defineProperty(du,"__esModule",{value:!0});var hu={};(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}))})(hu);var mu={};Object.defineProperty(mu,"__esModule",{value:!0}),function(t){var l=ve&&ve.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var m=Object.getOwnPropertyDescriptor(s,c);(!m||("get"in m?!s.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,m)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),o=ve&&ve.__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(_i,t),o(or,t),o(fu,t),o(du,t),o(hu,t),o(mu,t)}(su);var gu={},pu={};Object.defineProperty(pu,"__esModule",{value:!0});var vu={};Object.defineProperty(vu,"__esModule",{value:!0});var _u={};Object.defineProperty(_u,"__esModule",{value:!0});var bu={};Object.defineProperty(bu,"__esModule",{value:!0});var yu={};Object.defineProperty(yu,"__esModule",{value:!0});var wu={};Object.defineProperty(wu,"__esModule",{value:!0});var Su={};Object.defineProperty(Su,"__esModule",{value:!0});var Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});var xu={};Object.defineProperty(xu,"__esModule",{value:!0});var Eu={};Object.defineProperty(Eu,"__esModule",{value:!0});var ku={};Object.defineProperty(ku,"__esModule",{value:!0});var Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});var Au={};Object.defineProperty(Au,"__esModule",{value:!0}),function(t){var l=ve&&ve.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var m=Object.getOwnPropertyDescriptor(s,c);(!m||("get"in m?!s.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,m)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),o=ve&&ve.__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(pu,t),o(vu,t),o(_u,t),o(bu,t),o(yu,t),o(wu,t),o(Su,t),o(Cu,t),o(xu,t),o(Eu,t),o(ku,t),o(Ou,t),o(Au,t)}(gu);var Tu={},Bu={};Object.defineProperty(Bu,"__esModule",{value:!0}),function(t){var l=ve&&ve.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var m=Object.getOwnPropertyDescriptor(s,c);(!m||("get"in m?!s.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,m)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),o=ve&&ve.__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(Bu,t)}(Tu),function(t){var l=ve&&ve.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var m=Object.getOwnPropertyDescriptor(s,c);(!m||("get"in m?!s.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,m)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),o=ve&&ve.__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(eu,t),o(nu,t),o(ru,t),o(ou,t),o(su,t),o(gu,t),o(Tu,t)}(Ja),function(t){var l=ve&&ve.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var m=Object.getOwnPropertyDescriptor(s,c);(!m||("get"in m?!s.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,m)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),o=ve&&ve.__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(Ja,t)}(st);const $o=[st.ControlType.DYNAMIC_ARRAY,st.ControlType.OBJECT],Id={maxControlsPerGroup:1,notifyValidations:!0},Ru={required:{fn:()=>t=>{var l;if(t.controlType===st.ControlType.LOCATION){const{value:o}=t.value;return qe.values(qe.omit(o,"catastro")).every(u=>!qe.isNil(u)&&u!=="")&&(o!=null&&o.catastro?Md(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:!qe.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>l=>Iu(l,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>l=>Iu(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 Iu(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 Md(t){return/^[A-Za-z0-9]{20}$/.test(t)}function Ld(t){const l=[];t.controls.forEach((u,s)=>{const c=Pd(u);l.push(...c);const d=!c.length;t.controls[s].valid=d});const o=!l.length;return t.valid=o,l}function Pd(t){const l=[];return t.validators&&t.validators.forEach(o=>{const{validator:u,param:s}=o,c=Ru[u]||null;c&&(c.fn(Number(s))(t)||l.push(c.message))}),l}function qd(t,l,o){return l.controlType==="dynamic_array"?Vd(t,l,o):l.controlType==="object"?Mu(t,l,o):[]}function Vd(t,l,o){var c,d;const u=[],s=((c=l.itemsLength)==null?void 0:c.value)||0;for(let m=0;m<s;m++){const w=Mu({...t,title:`${t.title} ${m+1}`},{...l,value:(d=l.value)==null?void 0:d[m]},o);w.forEach(k=>{k.controls.forEach(p=>{p.code=`${m}.${p.code}`})}),u.push(...w)}return u}function Mu(t,l,o){const u=l.structure;return qe.chunk(u,o).map(c=>({...t,controls:Lu(c).map(d=>{var m;return{...d,id:l.id,value:((m=l.value)==null?void 0:m[d.code])||d.value}})}))}function Nd(t){return qe.chain(t).groupBy("group").toPairs().orderBy(([o,u])=>o).map(([o,u])=>{var d;const s=((d=u.find(m=>{var w;return!!((w=m.title)!=null&&w.trim())}))==null?void 0:d.title)||"",c=u[0].group;return{title:s,controls:u,order:c,visible:!0,valid:u.every(m=>m.valid),id:""}}).value()}function $d(t){return t.map(l=>({...l,valid:!1,controls:Lu(l.controls)}))}function Lu(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:Dd(l),itemsLength:l.controlType==="dynamic_array"?{...l.itemsLength,value:((s=l.itemsLength)==null?void 0:s.default)||1}:null}})}function Dd(t){if(!qe.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 lr=Rd.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=$d(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(d=>d.id===o);c&&($o.includes(c.controlType)?qe.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 qe.orderBy(l,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,c=u.ORDEN,d=u.DESCRIPCION,m=u.CLAVE,w=u.ID_CUESTIONARIO,k=u.PREGUNTAS.filter(p=>p.ESTADO===1).map(p=>this.parseControl(p));return{title:s,order:c,text:d,controls:k,name:m,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=(d,m)=>m.controlType==="input_number"&&d!==null&&d!==void 0&&d!==""&&typeof d=="string";return c(u,l)?parseFloat(u.replaceAll(".","")):(o==="object"&&s.forEach(d=>{const m=u[d.code];c(m,d)&&(u[d.code]=parseFloat(m==null?void 0:m.replaceAll(".","")))}),u)}}function bi(t,l,o,u){return Object.defineProperty(t,l,{get:o,set:u,enumerable:!0}),t}const _n=r.ref(!1);let Do;function Fd(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 Ud(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 qu="ontouchstart"in window||window.navigator.maxTouchPoints>0;function zd(t){const l=t.toLowerCase(),o=Ud(l),u=Fd(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"),_n.value===!0&&(Do={is:{...s}}),qu===!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 d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:d,[d]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const Vu=navigator.userAgent||navigator.vendor||window.opera,Hd={has:{touch:!1,webStorage:!1},within:{iframe:!1}},_t={userAgent:Vu,is:zd(Vu),has:{touch:qu},within:{iframe:window.self!==window.top}},Fo={install(t){const{$q:l}=t;_n.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(l.platform,_t),_n.value=!1}),l.platform=r.reactive(this)):l.platform=this}};{let t;bi(_t.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(Fo,_t),_n.value===!0&&(Object.assign(Fo,Do,Hd),Do=null)}function Ke(t){return r.markRaw(r.defineComponent(t))}function Nu(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 $u={threshold:0,root:null,rootMargin:"0px"};function Du(t,l,o){let u,s,c;typeof o=="function"?(u=o,s=$u,c=l.cfg===void 0):(u=o.handler,s=Object.assign({},$u,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(([d])=>{if(typeof l.handler=="function"){if(d.rootBounds===null&&document.body.contains(t)===!0){l.observer.unobserve(t),l.observer.observe(t);return}(l.handler(d,l.observer)===!1||l.once===!0&&d.isIntersecting===!0)&&Fu(t)}},s),l.observer.observe(t))}function Fu(t){const l=t.__qvisible;l!==void 0&&(l.observer!==void 0&&l.observer.unobserve(t),delete t.__qvisible)}const Wd=Nu({name:"intersection",mounted(t,{modifiers:l,value:o}){const u={once:l.once===!0};Du(t,u,o),t.__qvisible=u},updated(t,l){const o=t.__qvisible;o!==void 0&&Du(t,o,l.value)},beforeUnmount:Fu});function ct(t,l){return t!==void 0&&t()||l}function Gd(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 jd(t,l){return t===void 0?l:l!==void 0?l.concat(t()):t()}function Uu(t,l,o,u,s,c){l.key=u+s;const d=r.h(t,l,o);return s===!0?r.withDirectives(d,c()):d}const Kd=Ke({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(_n.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&&(_n.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),d=r.computed(()=>[[Wd,s.value,void 0,{once:t.once}]]),m=r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function w(p){u.value!==p.isIntersecting&&(u.value=p.isIntersecting,t.onVisibility!==void 0&&o("visibility",u.value))}function k(){if(u.value===!0)return[r.h("div",{key:"content",style:m.value},ct(l.default))];if(l.hidden!==void 0)return[r.h("div",{key:"hidden",style:m.value},l.hidden())]}return()=>{const p=t.transition?[r.h(r.Transition,{name:"q-transition--"+t.transition},k)]:k();return Uu(t.tag,{class:"q-intersection"},p,"main",c.value,()=>d.value)}}}),Uo={xs:18,sm:24,md:32,lg:38,xl:46},yi={size:String};function wi(t,l=Uo){return r.computed(()=>t.size!==void 0?{fontSize:t.size in l?`${l[t.size]}px`:t.size}:null)}const Yd={size:{type:[String,Number],default:"1em"},color:String};function Qd(t){return{cSize:r.computed(()=>t.size in Uo?`${Uo[t.size]}px`:t.size),classes:r.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const zo=Ke({name:"QSpinner",props:{...Yd,thickness:{type:Number,default:5}},setup(t){const{cSize:l,classes:o}=Qd(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"})])}}),Zd={ratio:[String,Number]};function Xd(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 Ho(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 zu(t){return t.appContext.config.globalProperties.$router!==void 0}function Mr(t){return t.isUnmounted===!0||t.isDeactivated===!0}function Lr(){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(),Mr(l)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const Jd=Ke({name:"QImg",props:{...Zd,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=Xd(t,u),c=r.getCurrentInstance(),{registerTimeout:d,removeTimeout:m}=Lr(),{registerTimeout:w,removeTimeout:k}=Lr(),p=r.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),S=r.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),x=[r.ref(null),r.ref(p.value)],_=r.ref(0),A=r.ref(!1),U=r.ref(!1),B=r.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),W=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--`),V=r.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function K(){if(k(),t.loadingShowDelay===0){A.value=!0;return}w(()=>{A.value=!0},t.loadingShowDelay)}function z(){k(),A.value=!1}function Y({target:O}){Mr(c)===!1&&(m(),u.value=O.naturalHeight===0?.5:O.naturalWidth/O.naturalHeight,G(O,1))}function G(O,te){te===1e3||Mr(c)===!0||(O.complete===!0?oe(O):d(()=>{G(O,te+1)},50))}function oe(O){Mr(c)!==!0&&(_.value=_.value^1,x[_.value].value=null,z(),O.getAttribute("__qerror")!=="true"&&(U.value=!1),o("load",O.currentSrc||O.src))}function q(O){m(),z(),U.value=!0,x[_.value].value=S.value,x[_.value^1].value=p.value,o("error",O)}function $(O){const te=x[O].value,N={key:"img_"+O,class:F.value,style:V.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===O?Object.assign(N,{class:N.class+"current",onLoad:Y,onError:q}):N.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+O},r.h("img",N))}function Q(){return A.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(zo,{color:t.spinnerColor,size:t.spinnerSize})])}{let O=function(){r.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,te=>{m(),U.value=!1,te===null?(z(),x[_.value^1].value=p.value):K(),x[_.value].value=te},{immediate:!0})};_n.value===!0?r.onMounted(O):O()}return()=>{const O=[];return s.value!==null&&O.push(r.h("div",{key:"filler",style:s.value})),x[0].value!==null&&O.push($(0)),x[1].value!==null&&O.push($(1)),O.push(r.h(r.Transition,{name:"q-transition--fade"},Q)),r.h("div",{key:"main",class:B.value,style:W.value,role:"img","aria-label":t.alt},O)}}}),Hu="0 0 24 24",Wu=t=>t,Wo=t=>`ionicons ${t}`,Gu={"mdi-":t=>`mdi ${t}`,"icon-":Wu,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Wo,"ion-ios":Wo,"ion-logo":Wo,"iconfont ":Wu,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},ju={o_:"-outlined",r_:"-round",s_:"-sharp"},Ku={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},eh=new RegExp("^("+Object.keys(Gu).join("|")+")"),th=new RegExp("^("+Object.keys(ju).join("|")+")"),Yu=new RegExp("^("+Object.keys(Ku).join("|")+")"),nh=/^[Mm]\s?[-+]?\.?\d/,rh=/^img:/,ih=/^svguse:/,oh=/^ion-/,lh=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,bt=Ke({name:"QIcon",props:{...yi,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=r.getCurrentInstance(),u=wi(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 d,m=t.name;if(m==="none"||!m)return{none:!0};if(o.iconMapFn!==null){const p=o.iconMapFn(m);if(p!==void 0)if(p.icon!==void 0){if(m=p.icon,m==="none"||!m)return{none:!0}}else return{cls:p.cls,content:p.content!==void 0?p.content:" "}}if(nh.test(m)===!0){const[p,S=Hu]=m.split("|");return{svg:!0,viewBox:S,nodes:p.split("&&").map(x=>{const[_,A,U]=x.split("@@");return r.h("path",{style:A,d:_,transform:U})})}}if(rh.test(m)===!0)return{img:!0,src:m.substring(4)};if(ih.test(m)===!0){const[p,S=Hu]=m.split("|");return{svguse:!0,src:p.substring(7),viewBox:S}}let w=" ";const k=m.match(eh);if(k!==null)d=Gu[k[1]](m);else if(lh.test(m)===!0)d=m;else if(oh.test(m)===!0)d=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${m.substring(3)}`;else if(Yu.test(m)===!0){d="notranslate material-symbols";const p=m.match(Yu);p!==null&&(m=m.substring(6),d+=Ku[p[1]]),w=m}else{d="notranslate material-icons";const p=m.match(th);p!==null&&(m=m.substring(2),d+=ju[p[1]]),w=m}return{cls:d,content:w}});return()=>{const d={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?r.h(t.tag,d,ct(l.default)):c.value.img===!0?r.h(t.tag,d,Ln(l.default,[r.h("img",{src:c.value.src})])):c.value.svg===!0?r.h(t.tag,d,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,d,Ln(l.default,[r.h("svg",{viewBox:c.value.viewBox},[r.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(d.class+=" "+c.value.cls),r.h(t.tag,d,Ln(l.default,[c.value.content])))}}}),ah={class:"card-select-container"},uh=["onClick"],sh={class:"check"},ch={class:"row justify-center items-center",style:{height:"100%"}},fh=["onClick"],dh=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(m){if(u.value.multiple){let w=qe.cloneDeep(l.value);m.exclusive?w=[m.value]:(w=w.filter(k=>{var p,S;return!((S=(p=u.value.options)==null?void 0:p.find(x=>x.value===k))!=null&&S.exclusive)}),w.includes(m.value)?w=w.filter(k=>k!==m.value):w.push(m.value)),l.value=w}else l.value=m.value}function c(m){return d(m)?"active":""}function d(m){let w;return u.value.multiple?w=(l.value||[]).includes(String(m.value)):w=l.value===m.value,w}return(m,w)=>{const k=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(u).label?(r.openBlock(),r.createBlock(k,{key:0,label:r.unref(u).label},null,8,["label"])):r.createCommentVNode("",!0),r.createElementVNode("div",ah,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).options,(p,S)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:S},[p.image?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`image-card ${c(p)}`),onClick:()=>s(p)},[r.createVNode(Jd,{src:p.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),r.createElementVNode("div",sh,[r.createElementVNode("div",ch,[d(p)?(r.openBlock(),r.createBlock(bt,{key:0,name:"check",size:"25px"})):r.createCommentVNode("",!0)])])],10,uh)):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(`card-option ${c(p)}`),onClick:()=>s(p)},[r.createElementVNode("span",null,r.toDisplayString(p.label),1)],10,fh))],64))),128))])],64)}}}),ft=(t,l)=>{const o=t.__vccOpts||t;for(const[u,s]of l)o[u]=s;return o},hh=ft(dh,[["__scopeId","data-v-148468d6"]]),ar={dark:{type:Boolean,default:null}};function ur(t,l){return r.computed(()=>t.dark===null?l.dark.isActive:t.dark)}function mh(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 d=l.value;c!==void 0&&c.type.indexOf("key")===0?d!==null&&document.activeElement!==d&&d.contains(document.activeElement)===!0&&d.focus():o.value!==null&&(c===void 0||d!==null&&d.contains(c.target)===!0)&&o.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Go={name:String};function gh(t={}){return(l,o,u)=>{l[o](r.h("input",{class:"hidden"+(u||""),...t.value}))}}function Qu(t){return r.computed(()=>t.name||t.for)}const ph={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 vh(){}function Zu(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 _h(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 $t(t){t.cancelable!==!1&&t.preventDefault()}function We(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function Pr(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 Si(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 Xu={...ar,...yi,...Go,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]},Ju=["update:modelValue"];function es(t,l){const{props:o,slots:u,emit:s,proxy:c}=r.getCurrentInstance(),{$q:d}=c,m=ur(o,d),w=r.ref(null),{refocusTargetEl:k,refocusTarget:p}=mh(o,w),S=wi(o,ph),x=r.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),_=r.computed(()=>{const O=r.toRaw(o.val);return x.value===!0?o.modelValue.findIndex(te=>r.toRaw(te)===O):-1}),A=r.computed(()=>x.value===!0?_.value!==-1:r.toRaw(o.modelValue)===r.toRaw(o.trueValue)),U=r.computed(()=>x.value===!0?_.value===-1:r.toRaw(o.modelValue)===r.toRaw(o.falseValue)),B=r.computed(()=>A.value===!1&&U.value===!1),W=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":"")+(m.value===!0?` q-${t}--dark`:"")+(o.dense===!0?` q-${t}--dense`:"")+(o.leftLabel===!0?" reverse":"")),V=r.computed(()=>{const O=A.value===!0?"truthy":U.value===!0?"falsy":"indet",te=o.color!==void 0&&(o.keepColor===!0||(t==="toggle"?A.value===!0:U.value!==!0))?` text-${o.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${O}${te}`}),K=r.computed(()=>{const O={type:"checkbox"};return o.name!==void 0&&Object.assign(O,{".checked":A.value,"^checked":A.value===!0?"checked":void 0,name:o.name,value:x.value===!0?o.val:o.trueValue}),O}),z=gh(K),Y=r.computed(()=>{const O={tabindex:W.value,role:t==="toggle"?"switch":"checkbox","aria-label":o.label,"aria-checked":B.value===!0?"mixed":A.value===!0?"true":"false"};return o.disable===!0&&(O["aria-disabled"]="true"),O});function G(O){O!==void 0&&(We(O),p(O)),o.disable!==!0&&s("update:modelValue",oe(),O)}function oe(){if(x.value===!0){if(A.value===!0){const O=o.modelValue.slice();return O.splice(_.value,1),O}return o.modelValue.concat([o.val])}if(A.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 q(O){(O.keyCode===13||O.keyCode===32)&&We(O)}function $(O){(O.keyCode===13||O.keyCode===32)&&G(O)}const Q=l(A,B);return Object.assign(c,{toggle:G}),()=>{const O=Q();o.disable!==!0&&z(O,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const te=[r.h("div",{class:V.value,style:S.value,"aria-hidden":"true"},O)];k.value!==null&&te.push(k.value);const N=o.label!==void 0?Ln(u.default,[o.label]):ct(u.default);return N!==void 0&&te.push(r.h("div",{class:`q-${t}__label q-anchor--skip`},N)),r.h("div",{ref:w,class:F.value,...Y.value,onClick:G,onKeydown:q,onKeyup:$},te)}}const bh=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"})])]),ts=Ke({name:"QCheckbox",props:Xu,emits:Ju,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})])]:[bh]}return es("checkbox",l)}}),ns=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(ts,{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"]))}}),yh=Ke({name:"QToggle",props:{...Xu,icon:String,iconColor:String},emits:Ju,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 es("toggle",l)}}),wh=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(yh,{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 jo,Ci=0;const Je=new Array(256);for(let t=0;t<256;t++)Je[t]=(t+256).toString(16).substring(1);const Sh=(()=>{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}})(),rs=4096;function Ko(){(jo===void 0||Ci+16>rs)&&(Ci=0,jo=Sh(rs));const t=Array.prototype.slice.call(jo,Ci,Ci+=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 Ch(t){return t??null}function is(t,l){return t??(l===!0?`f_${Ko()}`:null)}function xh({getValue:t,required:l=!0}={}){if(_n.value===!0){const o=t!==void 0?r.ref(Ch(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=is(u,l)}),o}return t!==void 0?r.computed(()=>is(t(),l)):r.ref(`f_${Ko()}`)}const os=/^on[A-Z]/;function Eh(){const{attrs:t,vnode:l}=r.getCurrentInstance(),o={listeners:r.ref({}),attributes:r.ref({})};function u(){const s={},c={};for(const d in t)d!=="class"&&d!=="style"&&os.test(d)===!1&&(s[d]=t[d]);for(const d in l.props)os.test(d)===!0&&(c[d]=l.props[d]);o.attributes.value=s,o.listeners.value=c}return r.onBeforeUpdate(u),u(),o}const kh="_q_",Oh="_q_fo_";function Ah({validate:t,resetValidation:l,requiresQForm:o}){const u=r.inject(Oh,!1);if(u!==!1){const{props:s,proxy:c}=r.getCurrentInstance();Object.assign(c,{validate:t,resetValidation:l}),r.watch(()=>s.disable,d=>{d===!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 ls=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,as=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,us=/^#([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])\)$/,Ei=/^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)\)$/,Yo={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=>ls.test(t),hexaColor:t=>as.test(t),hexOrHexaColor:t=>us.test(t),rgbColor:t=>xi.test(t),rgbaColor:t=>Ei.test(t),rgbOrRgbaColor:t=>xi.test(t)||Ei.test(t),hexOrRgbColor:t=>ls.test(t)||xi.test(t),hexaOrRgbaColor:t=>as.test(t)||Ei.test(t),anyColor:t=>us.test(t)||xi.test(t)||Ei.test(t)};function ss(t,l=250,o){let u=null;function s(){const c=arguments,d=()=>{u=null,t.apply(this,c)};u!==null&&clearTimeout(u),u=setTimeout(d,l)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const Th=[!0,!1,"ondemand"],Bh={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>Th.includes(t)}};function Rh(t,l){const{props:o,proxy:u}=r.getCurrentInstance(),s=r.ref(!1),c=r.ref(null),d=r.ref(!1);Ah({validate:U,resetValidation:A});let m=0,w;const k=r.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),p=r.computed(()=>o.disable!==!0&&k.value===!0&&l.value===!1),S=r.computed(()=>o.error===!0||s.value===!0),x=r.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:c.value);r.watch(()=>o.modelValue,()=>{d.value=!0,p.value===!0&&o.lazyRules===!1&&B()});function _(){o.lazyRules!=="ondemand"&&p.value===!0&&d.value===!0&&B()}r.watch(()=>o.reactiveRules,W=>{W===!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,W=>{W===!0?d.value=!0:p.value===!0&&o.lazyRules!=="ondemand"&&B()});function A(){m++,l.value=!1,d.value=!1,s.value=!1,c.value=null,B.cancel()}function U(W=o.modelValue){if(o.disable===!0||k.value===!1)return!0;const F=++m,V=l.value!==!0?()=>{d.value=!0}:()=>{},K=(Y,G)=>{Y===!0&&V(),s.value=Y,c.value=G||null,l.value=!1},z=[];for(let Y=0;Y<o.rules.length;Y++){const G=o.rules[Y];let oe;if(typeof G=="function"?oe=G(W,Yo):typeof G=="string"&&Yo[G]!==void 0&&(oe=Yo[G](W)),oe===!1||typeof oe=="string")return K(!0,oe),!1;oe!==!0&&oe!==void 0&&z.push(oe)}return z.length===0?(K(!1),!0):(l.value=!0,Promise.all(z).then(Y=>{if(Y===void 0||Array.isArray(Y)===!1||Y.length===0)return F===m&&K(!1),!0;const G=Y.find(oe=>oe===!1||typeof oe=="string");return F===m&&K(G!==void 0,G),G===void 0},Y=>(F===m&&(console.error(Y),K(!0)),!1)))}const B=ss(U,0);return r.onBeforeUnmount(()=>{w!==void 0&&w(),B.cancel()}),Object.assign(u,{resetValidation:A,validate:U}),bi(u,"hasError",()=>S.value),{isDirtyModel:d,hasRules:k,hasError:S,errorMessage:x,validate:U,resetValidation:A}}let Pn=[],qr=[];function cs(t){qr=qr.filter(l=>l!==t)}function Ih(t){cs(t),qr.push(t)}function fs(t){cs(t),qr.length===0&&Pn.length!==0&&(Pn[Pn.length-1](),Pn=[])}function ki(t){qr.length===0?t():Pn.push(t)}function Mh(t){Pn=Pn.filter(l=>l!==t)}function Vr(t){return t!=null&&(""+t).length!==0}const Oi={...{...ar,...Bh,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]},Qo=["update:modelValue","clear","focus","blur"];function Zo({requiredForAttr:t=!0,tagProp:l,changeEvent:o=!1}={}){const{props:u,proxy:s}=r.getCurrentInstance(),c=ur(u,s.$q),d=xh({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:Eh(),targetUid:d,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function Xo(t){const{props:l,emit:o,slots:u,attrs:s,proxy:c}=r.getCurrentInstance(),{$q:d}=c;let m=null;t.hasValue===void 0&&(t.hasValue=r.computed(()=>Vr(l.modelValue))),t.emitValue===void 0&&(t.emitValue=j=>{o("update:modelValue",j)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:q,onFocusout:$}),Object.assign(t,{clearValue:Q,onControlFocusin:q,onControlFocusout:$,focus:G}),t.computedCounter===void 0&&(t.computedCounter=r.computed(()=>{if(l.counter!==!1){const j=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 j+(se!==void 0?" / "+se:"")}}));const{isDirtyModel:w,hasRules:k,hasError:p,errorMessage:S,resetValidation:x}=Rh(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),A=r.computed(()=>l.bottomSlots===!0||l.hint!==void 0||k.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"),B=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":"")+(p.value===!0?" q-field--error":"")+(p.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&A.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),W=r.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(p.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),V=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&p.value!==!0?` text-${l.labelColor}`:"")),K=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 j={};return t.targetUid.value&&(j.for=t.targetUid.value),l.disable===!0&&(j["aria-disabled"]="true"),j});function Y(){const j=document.activeElement;let se=t.targetRef!==void 0&&t.targetRef.value;se&&(j===null||j.id!==t.targetUid.value)&&(se.hasAttribute("tabindex")===!0||(se=se.querySelector("[tabindex]")),se&&se!==j&&se.focus({preventScroll:!0}))}function G(){ki(Y)}function oe(){Mh(Y);const j=document.activeElement;j!==null&&t.rootRef.value.contains(j)&&j.blur()}function q(j){m!==null&&(clearTimeout(m),m=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,o("focus",j))}function $(j,se){m!==null&&clearTimeout(m),m=setTimeout(()=>{m=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",j)),se!==void 0&&se())})}function Q(j){We(j),d.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;x(),w.value=se})}function O(j){[13,32].includes(j.keyCode)&&Q(j)}function te(){const j=[];return u.prepend!==void 0&&j.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:$t},u.prepend())),j.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},N())),p.value===!0&&l.noErrorIcon===!1&&j.push(le("error",[r.h(bt,{name:d.iconSet.field.error,color:"negative"})])),l.loading===!0||t.innerLoading.value===!0?j.push(le("inner-loading-append",u.loading!==void 0?u.loading():[r.h(zo,{color:l.color})])):l.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&j.push(le("inner-clearable-append",[r.h(bt,{class:"q-field__focusable-action",name:l.clearIcon||d.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":d.lang.label.clear,onKeyup:O,onClick:Q})])),u.append!==void 0&&j.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:$t},u.append())),t.getInnerAppend!==void 0&&j.push(le("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&j.push(t.getControlChild()),j}function N(){const j=[];return l.prefix!==void 0&&l.prefix!==null&&j.push(r.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&j.push(t.getShadowControl()),t.getControl!==void 0?j.push(t.getControl()):u.rawControl!==void 0?j.push(u.rawControl()):u.control!==void 0&&j.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(K.value))),F.value===!0&&j.push(r.h("div",{class:V.value},ct(u.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&j.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),j.concat(ct(u.default))}function ae(){let j,se;p.value===!0?S.value!==null?(j=[r.h("div",{role:"alert"},S.value)],se=`q--slot-error-${S.value}`):(j=ct(u.error),se="q--slot-error"):(l.hideHint!==!0||t.focused.value===!0)&&(l.hint!==void 0?(j=[r.h("div",l.hint)],se=`q--slot-hint-${l.hint}`):(j=ct(u.hint),se="q--slot-hint"));const ge=l.counter===!0||u.counter!==void 0;if(l.hideBottomSpace===!0&&ge===!1&&j===void 0)return;const R=r.h("div",{key:se,class:"q-field__messages col"},j);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:$t},[l.hideBottomSpace===!0?R:r.h(r.Transition,{name:"q-transition--field-message"},()=>R),ge===!0?r.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function le(j,se){return se===null?null:r.h("div",{key:j,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(()=>{m!==null&&clearTimeout(m)}),Object.assign(c,{focus:G,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:[B.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:$t},u.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:t.controlRef,class:W.value,tabindex:-1,...t.controlEvents},te()),A.value===!0?ae():null]),u.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:$t},u.after()):null])}}function Jo(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function qn(t,l){return Jo(t)===!0?!1:[].concat(l).includes(t.keyCode)}const ds={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()}},hs=Object.keys(Ai);hs.forEach(t=>{Ai[t].regex=new RegExp(Ai[t].pattern)});const Lh=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+hs.join("")+"])|(.)","g"),ms=/[.*+?^${}()|[\]\\]/g,Ge="",Ph={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function qh(t,l,o,u){let s,c,d,m,w,k;const p=r.ref(null),S=r.ref(_());function x(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}r.watch(()=>t.type+t.autogrow,U),r.watch(()=>t.mask,q=>{if(q!==void 0)B(S.value,!0);else{const $=G(S.value);U(),t.modelValue!==$&&l("update:modelValue",$)}}),r.watch(()=>t.fillMask+t.reverseFillMask,()=>{p.value===!0&&B(S.value,!0)}),r.watch(()=>t.unmaskedValue,()=>{p.value===!0&&B(S.value)});function _(){if(U(),p.value===!0){const q=z(G(t.modelValue));return t.fillMask!==!1?oe(q):q}return t.modelValue}function A(q){if(q<s.length)return s.slice(-q);let $="",Q=s;const O=Q.indexOf(Ge);if(O!==-1){for(let te=q-Q.length;te>0;te--)$+=Ge;Q=Q.slice(0,O)+$+Q.slice(O)}return Q}function U(){if(p.value=t.mask!==void 0&&t.mask.length!==0&&x(),p.value===!1){m=void 0,s="",c="";return}const q=ds[t.mask]===void 0?t.mask:ds[t.mask],$=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Q=$.replace(ms,"\\$&"),O=[],te=[],N=[];let ae=t.reverseFillMask===!0,le="",ce="";q.replace(Lh,(R,T,Z,pe,fe)=>{if(pe!==void 0){const H=Ai[pe];N.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),N.push(Z),O.push("([^"+le+"]+)?"+le+"?");else{const H=T!==void 0?T:fe;le=H==="\\"?"\\\\\\\\":H.replace(ms,"\\\\$&"),N.push(H),O.push("([^"+le+"]+)?"+le+"?")}});const j=new RegExp("^"+O.join("")+"("+(le===""?".":"[^"+le+"]")+"+)?"+(le===""?"":"["+le+"]*")+"$"),se=te.length-1,ge=te.map((R,T)=>T===0&&t.reverseFillMask===!0?new RegExp("^"+Q+"*"+R):T===se?new RegExp("^"+R+"("+(ce===""?".":ce)+"+)?"+(t.reverseFillMask===!0?"$":Q+"*")):new RegExp("^"+R));d=N,m=R=>{const T=j.exec(t.reverseFillMask===!0?R:R.slice(0,N.length+1));T!==null&&(R=T.slice(1).join(""));const Z=[],pe=ge.length;for(let fe=0,H=R;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(""):R},s=N.map(R=>typeof R=="string"?R:Ge).join(""),c=s.split(Ge).join($)}function B(q,$,Q){const O=u.value,te=O.selectionEnd,N=O.value.length-te,ae=G(q);$===!0&&U();const le=z(ae),ce=t.fillMask!==!1?oe(le):le,j=S.value!==ce;O.value!==ce&&(O.value=ce),j===!0&&(S.value=ce),document.activeElement===O&&r.nextTick(()=>{if(ce===c){const ge=t.reverseFillMask===!0?c.length:0;O.setSelectionRange(ge,ge,"forward");return}if(Q==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=O.selectionEnd;let R=te-1;for(let T=w;T<=R&&T<ge;T++)s[T]!==Ge&&R++;F.right(O,R);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,N)+1))+1:te;O.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(j===!0){const ge=Math.max(0,ce.length-(ce===c?0:Math.min(le.length,N+1)));ge===1&&te===1?O.setSelectionRange(ge,ge,"forward"):F.rightReverse(O,ge)}else{const ge=ce.length-N;O.setSelectionRange(ge,ge,"backward")}else if(j===!0){const ge=Math.max(0,s.indexOf(Ge),Math.min(le.length,te)-1);F.right(O,ge)}else{const ge=te-1;F.right(O,ge)}});const se=t.unmaskedValue===!0?G(ce):ce;String(t.modelValue)!==se&&(t.modelValue!==null||se!=="")&&o(se,!0)}function W(q,$,Q){const O=z(G(q.value));$=Math.max(0,s.indexOf(Ge),Math.min(O.length,$)),w=$,q.setSelectionRange($,Q,"forward")}const F={left(q,$){const Q=s.slice($-1).indexOf(Ge)===-1;let O=Math.max(0,$-1);for(;O>=0;O--)if(s[O]===Ge){$=O,Q===!0&&$++;break}if(O<0&&s[$]!==void 0&&s[$]!==Ge)return F.right(q,0);$>=0&&q.setSelectionRange($,$,"backward")},right(q,$){const Q=q.value.length;let O=Math.min(Q,$+1);for(;O<=Q;O++)if(s[O]===Ge){$=O;break}else s[O-1]===Ge&&($=O);if(O>Q&&s[$-1]!==void 0&&s[$-1]!==Ge)return F.left(q,Q);q.setSelectionRange($,$,"forward")},leftReverse(q,$){const Q=A(q.value.length);let O=Math.max(0,$-1);for(;O>=0;O--)if(Q[O-1]===Ge){$=O;break}else if(Q[O]===Ge&&($=O,O===0))break;if(O<0&&Q[$]!==void 0&&Q[$]!==Ge)return F.rightReverse(q,0);$>=0&&q.setSelectionRange($,$,"backward")},rightReverse(q,$){const Q=q.value.length,O=A(Q),te=O.slice(0,$+1).indexOf(Ge)===-1;let N=Math.min(Q,$+1);for(;N<=Q;N++)if(O[N-1]===Ge){$=N,$>0&&te===!0&&$--;break}if(N>Q&&O[$-1]!==void 0&&O[$-1]!==Ge)return F.leftReverse(q,Q);q.setSelectionRange($,$,"forward")}};function V(q){l("click",q),k=void 0}function K(q){if(l("keydown",q),Jo(q)===!0||q.altKey===!0)return;const $=u.value,Q=$.selectionStart,O=$.selectionEnd;if(q.shiftKey||(k=void 0),q.keyCode===37||q.keyCode===39){q.shiftKey&&k===void 0&&(k=$.selectionDirection==="forward"?Q:O);const te=F[(q.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(q.preventDefault(),te($,k===Q?O:Q),q.shiftKey){const N=$.selectionStart;$.setSelectionRange(Math.min(k,N),Math.max(k,N),"forward")}}else q.keyCode===8&&t.reverseFillMask!==!0&&Q===O?(F.left($,Q),$.setSelectionRange($.selectionStart,O,"backward")):q.keyCode===46&&t.reverseFillMask===!0&&Q===O&&(F.rightReverse($,O),$.setSelectionRange(Q,$.selectionEnd,"forward"))}function z(q){if(q==null||q==="")return"";if(t.reverseFillMask===!0)return Y(q);const $=d;let Q=0,O="";for(let te=0;te<$.length;te++){const N=q[Q],ae=$[te];if(typeof ae=="string")O+=ae,N===ae&&Q++;else if(N!==void 0&&ae.regex.test(N))O+=ae.transform!==void 0?ae.transform(N):N,Q++;else return O}return O}function Y(q){const $=d,Q=s.indexOf(Ge);let O=q.length-1,te="";for(let N=$.length-1;N>=0&&O!==-1;N--){const ae=$[N];let le=q[O];if(typeof ae=="string")te=ae+te,le===ae&&O--;else if(le!==void 0&&ae.regex.test(le))do te=(ae.transform!==void 0?ae.transform(le):le)+te,O--,le=q[O];while(Q===N&&le!==void 0&&ae.regex.test(le));else return te}return te}function G(q){return typeof q!="string"||m===void 0?typeof q=="number"?m(""+q):q:m(q)}function oe(q){return c.length-q.length<=0?q:t.reverseFillMask===!0&&q.length!==0?c.slice(0,-q.length)+q:q+c.slice(q.length)}return{innerValue:S,hasMask:p,moveCursorForPaste:W,updateMaskValue:B,onMaskedKeydown:K,onMaskedClick:V}}function Vh(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 Nh=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,$h=/[\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,Dh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Fh=/[a-z0-9_ -]$/i;function gs(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?Fh.test(o.data)===!1:Nh.test(o.data)===!0||$h.test(o.data)===!0||Dh.test(o.data)===!0)===!0&&(o.target.qComposing=!0)}}const ps=Ke({name:"QInput",inheritAttrs:!1,props:{...Oi,...Ph,...Go,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:[...Qo,"paste","change","keydown","click","animationend"],setup(t,{emit:l,attrs:o}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c={};let d=NaN,m,w,k=null,p;const S=r.ref(null),x=Qu(t),{innerValue:_,hasMask:A,moveCursorForPaste:U,updateMaskValue:B,onMaskedKeydown:W,onMaskedClick:F}=qh(t,l,le,S),V=Vh(t),K=r.computed(()=>Vr(_.value)),z=gs(N),Y=Zo({changeEvent:!0}),G=r.computed(()=>t.type==="textarea"||t.autogrow===!0),oe=r.computed(()=>G.value===!0||["text","search","url","tel","password"].includes(t.type)),q=r.computed(()=>{const T={...Y.splitAttrs.listeners.value,onInput:N,onPaste:te,onChange:j,onBlur:se,onFocus:Yt};return T.onCompositionstart=T.onCompositionupdate=T.onCompositionend=z,A.value===!0&&(T.onKeydown=W,T.onClick=F),t.autogrow===!0&&(T.onAnimationend=ae),T}),$=r.computed(()=>{const T={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:x.value,...Y.splitAttrs.attributes.value,id:Y.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return G.value===!1&&(T.type=t.type),t.autogrow===!0&&(T.rows=1),T});r.watch(()=>t.type,()=>{S.value&&(S.value.value=t.modelValue)}),r.watch(()=>t.modelValue,T=>{if(A.value===!0){if(w===!0&&(w=!1,String(T)===d))return;B(T)}else _.value!==T&&(_.value=T,t.type==="number"&&c.hasOwnProperty("value")===!0&&(m===!0?m=!1:delete c.value));t.autogrow===!0&&r.nextTick(ce)}),r.watch(()=>t.autogrow,T=>{T===!0?r.nextTick(ce):S.value!==null&&o.rows>0&&(S.value.style.height="auto")}),r.watch(()=>t.dense,()=>{t.autogrow===!0&&r.nextTick(ce)});function Q(){ki(()=>{const T=document.activeElement;S.value!==null&&S.value!==T&&(T===null||T.id!==Y.targetUid.value)&&S.value.focus({preventScroll:!0})})}function O(){S.value!==null&&S.value.select()}function te(T){if(A.value===!0&&t.reverseFillMask!==!0){const Z=T.target;U(Z,Z.selectionStart,Z.selectionEnd)}l("paste",T)}function N(T){if(!T||!T.target)return;if(t.type==="file"){l("update:modelValue",T.target.files);return}const Z=T.target.value;if(T.target.qComposing===!0){c.value=Z;return}if(A.value===!0)B(Z,!1,T.inputType);else if(le(Z),oe.value===!0&&T.target===document.activeElement){const{selectionStart:pe,selectionEnd:fe}=T.target;pe!==void 0&&fe!==void 0&&r.nextTick(()=>{T.target===document.activeElement&&Z.indexOf(T.target.value)===0&&T.target.setSelectionRange(pe,fe)})}t.autogrow===!0&&ce()}function ae(T){l("animationend",T),ce()}function le(T,Z){p=()=>{k=null,t.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,t.modelValue!==T&&d!==T&&(d=T,Z===!0&&(w=!0),l("update:modelValue",T),r.nextTick(()=>{d===T&&(d=NaN)})),p=void 0},t.type==="number"&&(m=!0,c.value=T),t.debounce!==void 0?(k!==null&&clearTimeout(k),c.value=T,k=setTimeout(p,t.debounce)):p()}function ce(){requestAnimationFrame(()=>{const T=S.value;if(T!==null){const Z=T.parentNode.style,{scrollTop:pe}=T,{overflowY:fe,maxHeight:H}=s.platform.is.firefox===!0?{}:window.getComputedStyle(T),re=fe!==void 0&&fe!=="scroll";re===!0&&(T.style.overflowY="hidden"),Z.marginBottom=T.scrollHeight-1+"px",T.style.height="1px",T.style.height=T.scrollHeight+"px",re===!0&&(T.style.overflowY=parseInt(H,10)<T.scrollHeight?"auto":"hidden"),Z.marginBottom="",T.scrollTop=pe}})}function j(T){z(T),k!==null&&(clearTimeout(k),k=null),p!==void 0&&p(),l("change",T.target.value)}function se(T){T!==void 0&&Yt(T),k!==null&&(clearTimeout(k),k=null),p!==void 0&&p(),m=!1,w=!1,delete c.value,t.type!=="file"&&setTimeout(()=>{S.value!==null&&(S.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(Y,{innerValue:_,fieldClass:r.computed(()=>`q-${G.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:S,emitValue:le,hasValue:K,floatingLabel:r.computed(()=>K.value===!0&&(t.type!=="number"||isNaN(_.value)===!1)||Vr(t.displayValue)),getControl:()=>r.h(G.value===!0?"textarea":"input",{ref:S,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...$.value,...q.value,...t.type!=="file"?{value:ge()}:V.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(G.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},ge()),r.h("span",t.shadowText)])});const R=Xo(Y);return Object.assign(u,{focus:Q,select:O,getNativeElement:()=>S.value}),bi(u,"nativeEl",()=>S.value),R}}),Ti=Ke({name:"QCard",props:{...ar,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:l}){const{proxy:{$q:o}}=r.getCurrentInstance(),u=ur(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))}}),Uh=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"),d=r.computed(()=>u.label===""?void 0:u.label),m=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"),k=r.ref(null);function p(){k.value.focus()}function S(){s.value=!0}function x(){s.value=!1}return l({focus:p}),(_,A)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ti,{onClick:p,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(ps,{modelValue:o.value,"onUpdate:modelValue":A[0]||(A[0]=U=>o.value=U),ref_key:"inputRef",ref:k,"label-color":"black","input-class":`text-black ${d.value?"":"text-center ww-title"}`,"input-style":_.inputStyle,style:r.normalizeStyle(m.value),readonly:_.readonly,mask:_.mask,prefix:_.prefix,label:d.value,type:_.type,suffix:_.suffix,counter:_.counter,maxlength:_.maxlength,rules:_.rules,borderless:"",dense:"","unmasked-value":"","reverse-fill-mask":"",placeholder:_.placeholder,onFocus:S,onBlur:x},{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))}}),zh={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},Hh=r.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(l,o)=>(r.openBlock(),r.createElementBlock("div",zh,r.toDisplayString(l.label),1))}}),Wh={style:{"max-width":"400px"},class:"text-center"},Gh={style:{"font-size":"16px"}},jh={style:{"font-size":"16px"}},el=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,d)=>(r.openBlock(),r.createElementBlock("div",Wh,[!c.innerLabel&&c.control.label?(r.openBlock(),r.createBlock(Hh,{key:0,label:c.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(Uh,{modelValue:s.value,"onUpdate:modelValue":d[0]||(d[0]=m=>s.value=m),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",Gh,r.toDisplayString(c.control.prefix),1)]),key:"0"}:void 0,c.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",jh,r.toDisplayString(c.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function tl(t,l){const o=t.style;for(const u in l)o[u]=l[u]}function Kh(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 vs(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 Yh(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 _s(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 d=document.createElement("span"),m=document.createElement("span"),w=Zu(t),{left:k,top:p,width:S,height:x}=l.getBoundingClientRect(),_=Math.sqrt(S*S+x*x),A=_/2,U=`${(S-_)/2}px`,B=c?U:`${w.left-k-A}px`,W=`${(x-_)/2}px`,F=c?W:`${w.top-p-A}px`;m.className="q-ripple__inner",tl(m,{height:`${_}px`,width:`${_}px`,transform:`translate3d(${B},${F},0) scale3d(.2,.2,1)`,opacity:0}),d.className=`q-ripple${s?" text-"+s:""}`,d.setAttribute("dir","ltr"),d.appendChild(m),l.appendChild(d);const V=()=>{d.remove(),clearTimeout(K)};o.abort.push(V);let K=setTimeout(()=>{m.classList.add("q-ripple__inner--enter"),m.style.transform=`translate3d(${U},${W},0) scale3d(1,1,1)`,m.style.opacity=.2,K=setTimeout(()=>{m.classList.remove("q-ripple__inner--enter"),m.classList.add("q-ripple__inner--leave"),m.style.opacity=0,K=setTimeout(()=>{d.remove(),o.abort.splice(o.abort.indexOf(V),1)},275)},250)},50)}function bs(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 ys=Nu({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")&&_s(s,t,u,s.qKeyEvent===!0)},keystart:Yh(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&qn(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&_s(s,t,u,!0)},300)};bs(u,l),t.__qripple=u,Pr(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&&bs(o,l))}},beforeUnmount(t){const l=t.__qripple;l!==void 0&&(l.abort.forEach(o=>{o()}),Si(l,"main"),delete t._qripple)}}),ws={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Qh=Object.keys(ws),Zh={align:{type:String,validator:t=>Qh.includes(t)}};function Xh(t){return r.computed(()=>{const l=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${ws[l]}`})}function Ss(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Cs(t,l){return(t.aliasOf||t)===(l.aliasOf||l)}function Jh(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,d)=>c!==s[d]))return!1}return!0}function xs(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 em(t,l){return Array.isArray(t)===!0?xs(t,l):Array.isArray(l)===!0?xs(l,t):t===l}function tm(t,l){if(Object.keys(t).length!==Object.keys(l).length)return!1;for(const o in t)if(em(t[o],l[o])===!1)return!1;return!0}const Es={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},nm={...Es,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function ks({fallbackTag:t,useDisableForRouterLinkProps:l=!0}={}){const o=r.getCurrentInstance(),{props:u,proxy:s,emit:c}=o,d=zu(o),m=r.computed(()=>u.disable!==!0&&u.href!==void 0),w=l===!0?r.computed(()=>d===!0&&u.disable!==!0&&m.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):r.computed(()=>d===!0&&m.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),k=r.computed(()=>w.value===!0?F(u.to):null),p=r.computed(()=>k.value!==null),S=r.computed(()=>m.value===!0||p.value===!0),x=r.computed(()=>u.type==="a"||S.value===!0?"a":u.tag||t||"div"),_=r.computed(()=>m.value===!0?{href:u.href,target:u.target}:p.value===!0?{href:k.value.href,target:u.target}:{}),A=r.computed(()=>{if(p.value===!1)return-1;const{matched:z}=k.value,{length:Y}=z,G=z[Y-1];if(G===void 0)return-1;const oe=s.$route.matched;if(oe.length===0)return-1;const q=oe.findIndex(Cs.bind(null,G));if(q!==-1)return q;const $=Ss(z[Y-2]);return Y>1&&Ss(G)===$&&oe[oe.length-1].path!==$?oe.findIndex(Cs.bind(null,z[Y-2])):q}),U=r.computed(()=>p.value===!0&&A.value!==-1&&Jh(s.$route.params,k.value.params)),B=r.computed(()=>U.value===!0&&A.value===s.$route.matched.length-1&&tm(s.$route.params,k.value.params)),W=r.computed(()=>p.value===!0?B.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 V(z,{returnRouterError:Y,to:G=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 q=s.$router[oe===!0?"replace":"push"](G);return Y===!0?q:q.then(()=>{}).catch(()=>{})}function K(z){if(p.value===!0){const Y=G=>V(z,G);c("click",z,Y),z.defaultPrevented!==!0&&Y()}else c("click",z)}return{hasRouterLink:p,hasHrefLink:m,hasLink:S,linkTag:x,resolvedLink:k,linkIsActive:U,linkIsExactActive:B,linkClass:W,linkAttrs:_,getLink:F,navigateToRouterLink:V,navigateOnClick:K}}const Os={none:0,xs:4,sm:8,md:16,lg:24,xl:32},rm={xs:8,sm:10,md:14,lg:20,xl:24},im=["button","submit","reset"],om=/[^\s]\/[^\s]/,lm=["flat","outline","push","unelevated"];function am(t,l){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":l}const um={...{...yi,...Es,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...lm.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:{...Zh.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function sm(t){const l=wi(t,rm),o=Xh(t),{hasRouterLink:u,hasLink:s,linkTag:c,linkAttrs:d,navigateOnClick:m}=ks({fallbackTag:"button"}),w=r.computed(()=>{const B=t.fab===!1&&t.fabMini===!1?l.value:{};return t.padding!==void 0?Object.assign({},B,{padding:t.padding.split(/\s+/).map(W=>W in Os?Os[W]+"px":W).join(" "),minWidth:"0",minHeight:"0"}):B}),k=r.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),p=r.computed(()=>t.disable!==!0&&t.loading!==!0),S=r.computed(()=>p.value===!0?t.tabindex||0:-1),x=r.computed(()=>am(t,"standard")),_=r.computed(()=>{const B={tabindex:S.value};return s.value===!0?Object.assign(B,d.value):im.includes(t.type)===!0&&(B.type=t.type),c.value==="a"?(t.disable===!0?B["aria-disabled"]="true":B.href===void 0&&(B.role="button"),u.value!==!0&&om.test(t.type)===!0&&(B.type=t.type)):t.disable===!0&&(B.disabled="",B["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(B,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),B}),A=r.computed(()=>{let B;t.color!==void 0?t.flat===!0||t.outline===!0?B=`text-${t.textColor||t.color}`:B=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(B=`text-${t.textColor}`);const W=t.round===!0?"round":`rectangle${k.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${x.value} q-btn--${W}`+(B!==void 0?" "+B:"")+(p.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:A,style:w,innerClasses:U,attributes:_,hasLink:s,linkTag:c,navigateOnClick:m,isActionable:p}}const{passiveCapture:Tt}=dt;let sr=null,cr=null,fr=null;const tn=Ke({name:"QBtn",props:{...um,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:d,attributes:m,hasLink:w,linkTag:k,navigateOnClick:p,isActionable:S}=sm(t),x=r.ref(null),_=r.ref(null);let A=null,U,B=null;const W=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}),V=r.computed(()=>({center:t.round})),K=r.computed(()=>{const N=Math.max(0,Math.min(100,t.percentage));return N>0?{transition:"transform 0.6s",transform:`translateX(${N-100}%)`}:{}}),z=r.computed(()=>{if(t.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(S.value===!0){const N={onClick:G,onKeydown:oe,onMousedown:$};if(u.$q.platform.has.touch===!0){const ae=t.onTouchstart!==void 0?"":"Passive";N[`onTouchstart${ae}`]=q}return N}return{onClick:We}}),Y=r.computed(()=>({ref:x,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:c.value,...m.value,...z.value}));function G(N){if(x.value!==null){if(N!==void 0){if(N.defaultPrevented===!0)return;const ae=document.activeElement;if(t.type==="submit"&&ae!==document.body&&x.value.contains(ae)===!1&&ae.contains(x.value)===!1){x.value.focus();const le=()=>{document.removeEventListener("keydown",We,!0),document.removeEventListener("keyup",le,Tt),x.value!==null&&x.value.removeEventListener("blur",le,Tt)};document.addEventListener("keydown",We,!0),document.addEventListener("keyup",le,Tt),x.value.addEventListener("blur",le,Tt)}}p(N)}}function oe(N){x.value!==null&&(o("keydown",N),qn(N,[13,32])===!0&&cr!==x.value&&(cr!==null&&O(),N.defaultPrevented!==!0&&(x.value.focus(),cr=x.value,x.value.classList.add("q-btn--active"),document.addEventListener("keyup",Q,!0),x.value.addEventListener("blur",Q,Tt)),We(N)))}function q(N){x.value!==null&&(o("touchstart",N),N.defaultPrevented!==!0&&(sr!==x.value&&(sr!==null&&O(),sr=x.value,A=N.target,A.addEventListener("touchcancel",Q,Tt),A.addEventListener("touchend",Q,Tt)),U=!0,B!==null&&clearTimeout(B),B=setTimeout(()=>{B=null,U=!1},200)))}function $(N){x.value!==null&&(N.qSkipRipple=U===!0,o("mousedown",N),N.defaultPrevented!==!0&&fr!==x.value&&(fr!==null&&O(),fr=x.value,x.value.classList.add("q-btn--active"),document.addEventListener("mouseup",Q,Tt)))}function Q(N){if(x.value!==null&&!(N!==void 0&&N.type==="blur"&&document.activeElement===x.value)){if(N!==void 0&&N.type==="keyup"){if(cr===x.value&&qn(N,[13,32])===!0){const ae=new MouseEvent("click",N);ae.qKeyEvent=!0,N.defaultPrevented===!0&&$t(ae),N.cancelBubble===!0&&Yt(ae),x.value.dispatchEvent(ae),We(N),N.qKeyEvent=!0}o("keyup",N)}O()}}function O(N){const ae=_.value;N!==!0&&(sr===x.value||fr===x.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),sr===x.value&&(A!==null&&(A.removeEventListener("touchcancel",Q,Tt),A.removeEventListener("touchend",Q,Tt)),sr=A=null),fr===x.value&&(document.removeEventListener("mouseup",Q,Tt),fr=null),cr===x.value&&(document.removeEventListener("keyup",Q,!0),x.value!==null&&x.value.removeEventListener("blur",Q,Tt),cr=null),x.value!==null&&x.value.classList.remove("q-btn--active")}function te(N){We(N),N.qSkipRipple=!0}return r.onBeforeUnmount(()=>{O(!0)}),Object.assign(u,{click:N=>{S.value===!0&&G(N)}}),()=>{let N=[];t.icon!==void 0&&N.push(r.h(bt,{name:t.icon,left:t.stack!==!0&&W.value===!0,role:"img"})),W.value===!0&&N.push(r.h("span",{class:"block"},[t.label])),N=Ln(l.default,N),t.iconRight!==void 0&&t.round===!1&&N.push(r.h(bt,{name:t.iconRight,right:t.stack!==!0&&W.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:K.value})])),ae.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+d.value},N)),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(zo)])]:null)),r.withDirectives(r.h(k.value,Y.value,ae),[[ys,F.value,void 0,V.value]])}}}),As=t=>(r.pushScopeId("data-v-3bcb795a"),t=t(),r.popScopeId(),t),cm={class:"buttons-container"},fm={class:"lt-md"},dm={class:"row justify-between q-my-md q-px-md"},hm=As(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),mm={key:1},gm=As(()=>r.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),pm=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",cm,[o.value>1?(r.openBlock(),r.createBlock(tn,{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(tn,{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",fm,[r.createElementVNode("div",dm,[o.value>1&&o.value<u.stepsCount?(r.openBlock(),r.createBlock(tn,{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(()=>[hm]),_:1})):(r.openBlock(),r.createElementBlock("div",mm)),o.value<u.stepsCount?(r.openBlock(),r.createBlock(tn,{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(()=>[gm]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),vm=Ke({name:"QField",inheritAttrs:!1,props:{...Oi,tag:{type:String,default:"label"}},emits:Qo,setup(){return Xo(Zo({tagProp:!0}))}}),_m={xs:8,sm:10,md:14,lg:20,xl:24},bm=Ke({name:"QChip",props:{...ar,...yi,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=ur(t,u),c=wi(t,_m),d=r.computed(()=>t.selected===!0||t.icon!==void 0),m=r.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),w=r.computed(()=>t.iconRemove||u.iconSet.chip.remove),k=r.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),p=r.computed(()=>{const B=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}`:"")+(B?` text-${B} 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":"")+(k.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":"")}),S=r.computed(()=>{const B=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},W={...B,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:B,remove:W}});function x(B){B.keyCode===13&&_(B)}function _(B){t.disable||(o("update:selected",!t.selected),o("click",B))}function A(B){(B.keyCode===void 0||B.keyCode===13)&&(We(B),t.disable===!1&&(o("update:modelValue",!1),o("remove")))}function U(){const B=[];k.value===!0&&B.push(r.h("div",{class:"q-focus-helper"})),d.value===!0&&B.push(r.h(bt,{class:"q-chip__icon q-chip__icon--left",name:m.value}));const W=t.label!==void 0?[r.h("div",{class:"ellipsis"},[t.label])]:void 0;return B.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},jd(l.default,W))),t.iconRight&&B.push(r.h(bt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&B.push(r.h(bt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:w.value,...S.value.remove,onClick:A,onKeyup:A})),B}return()=>{if(t.modelValue===!1)return;const B={class:p.value,style:c.value};return k.value===!0&&Object.assign(B,S.value.chip,{onClick:_,onKeyup:x}),Uu("div",B,U(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[ys,t.ripple]])}}}),ym=Ke({name:"QItem",props:{...ar,...nm,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=ur(t,u),{hasLink:c,linkAttrs:d,linkClass:m,linkTag:w,navigateOnClick:k}=ks(),p=r.ref(null),S=r.ref(null),x=r.computed(()=>t.clickable===!0||c.value===!0||t.tag==="label"),_=r.computed(()=>t.disable!==!0&&x.value===!0),A=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?m.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 B(V){_.value===!0&&(S.value!==null&&(V.qKeyEvent!==!0&&document.activeElement===p.value?S.value.focus():document.activeElement===S.value&&p.value.focus()),k(V))}function W(V){if(_.value===!0&&qn(V,[13,32])===!0){We(V),V.qKeyEvent=!0;const K=new MouseEvent("click",V);K.qKeyEvent=!0,p.value.dispatchEvent(K)}o("keyup",V)}function F(){const V=Gd(l.default,[]);return _.value===!0&&V.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:S})),V}return()=>{const V={ref:p,class:A.value,style:U.value,role:"listitem",onClick:B,onKeyup:W};return _.value===!0?(V.tabindex=t.tabindex||"0",Object.assign(V,d.value)):x.value===!0&&(V["aria-disabled"]="true"),r.h(w.value,V,F())}}}),wm=Ke({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))}}),Sm=Ke({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 nl(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),Fo.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ts={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Cm={...Ts,contextMenu:Boolean};function Bs({showing:t,avoidEmit:l,configureAnchorEl:o}){const{props:u,proxy:s,emit:c}=r.getCurrentInstance(),d=r.ref(null);let m=null;function w(_){return d.value===null?!1:_===void 0||_.touches===void 0||_.touches.length<=1}const k={};o===void 0&&(Object.assign(k,{hide(_){s.hide(_)},toggle(_){s.toggle(_),_.qAnchorHandled=!0},toggleKey(_){qn(_,13)===!0&&k.toggle(_)},contextClick(_){s.hide(_),$t(_),r.nextTick(()=>{s.show(_),_.qAnchorHandled=!0})},prevent:$t,mobileTouch(_){if(k.mobileCleanup(_),w(_)!==!0)return;s.hide(_),d.value.classList.add("non-selectable");const A=_.target;Pr(k,"anchor",[[A,"touchmove","mobileCleanup","passive"],[A,"touchend","mobileCleanup","passive"],[A,"touchcancel","mobileCleanup","passive"],[d.value,"contextmenu","prevent","notPassive"]]),m=setTimeout(()=>{m=null,s.show(_),_.qAnchorHandled=!0},300)},mobileCleanup(_){d.value.classList.remove("non-selectable"),m!==null&&(clearTimeout(m),m=null),t.value===!0&&_!==void 0&&nl()}}),o=function(_=u.contextMenu){if(u.noParentEvent===!0||d.value===null)return;let A;_===!0?s.$q.platform.is.mobile===!0?A=[[d.value,"touchstart","mobileTouch","passive"]]:A=[[d.value,"mousedown","hide","passive"],[d.value,"contextmenu","contextClick","notPassive"]]:A=[[d.value,"click","toggle","passive"],[d.value,"keyup","toggleKey","passive"]],Pr(k,"anchor",A)});function p(){Si(k,"anchor")}function S(_){for(d.value=_;d.value.classList.contains("q-anchor--skip");)d.value=d.value.parentNode;o()}function x(){if(u.target===!1||u.target===""||s.$el.parentNode===null)d.value=null;else if(u.target===!0)S(s.$el.parentNode);else{let _=u.target;if(typeof u.target=="string")try{_=document.querySelector(u.target)}catch{_=void 0}_!=null?(d.value=_.$el||_,o()):(d.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return r.watch(()=>u.contextMenu,_=>{d.value!==null&&(p(),o(_))}),r.watch(()=>u.target,()=>{d.value!==null&&p(),x()}),r.watch(()=>u.noParentEvent,_=>{d.value!==null&&(_===!0?p():o())}),r.onMounted(()=>{x(),l!==!0&&u.modelValue===!0&&d.value===null&&c("update:modelValue",!1)}),r.onBeforeUnmount(()=>{m!==null&&clearTimeout(m),p()}),{anchorEl:d,canShow:w,anchorEvents:k}}function Rs(t,l){const o=r.ref(null);let u;function s(m,w){const k=`${w!==void 0?"add":"remove"}EventListener`,p=w!==void 0?w:u;m!==window&&m[k]("scroll",p,dt.passive),window[k]("scroll",p,dt.passive),u=w}function c(){o.value!==null&&(s(o.value),o.value=null)}const d=r.watch(()=>t.noParentEvent,()=>{o.value!==null&&(c(),l())});return r.onBeforeUnmount(d),{localScrollTarget:o,unconfigureScrollTarget:c,changeScrollEvent:s}}const rl={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},il=["beforeShow","show","beforeHide","hide"];function ol({showing:t,canShow:l,hideOnRouteChange:o,handleShow:u,handleHide:s,processOnMount:c}){const d=r.getCurrentInstance(),{props:m,emit:w,proxy:k}=d;let p;function S(F){t.value===!0?A(F):x(F)}function x(F){if(m.disable===!0||F!==void 0&&F.qAnchorHandled===!0||l!==void 0&&l(F)!==!0)return;const V=m["onUpdate:modelValue"]!==void 0;V===!0&&(w("update:modelValue",!0),p=F,r.nextTick(()=>{p===F&&(p=void 0)})),(m.modelValue===null||V===!1)&&_(F)}function _(F){t.value!==!0&&(t.value=!0,w("beforeShow",F),u!==void 0?u(F):w("show",F))}function A(F){if(m.disable===!0)return;const V=m["onUpdate:modelValue"]!==void 0;V===!0&&(w("update:modelValue",!1),p=F,r.nextTick(()=>{p===F&&(p=void 0)})),(m.modelValue===null||V===!1)&&U(F)}function U(F){t.value!==!1&&(t.value=!1,w("beforeHide",F),s!==void 0?s(F):w("hide",F))}function B(F){m.disable===!0&&F===!0?m["onUpdate:modelValue"]!==void 0&&w("update:modelValue",!1):F===!0!==t.value&&(F===!0?_:U)(p)}r.watch(()=>m.modelValue,B),o!==void 0&&zu(d)===!0&&r.watch(()=>k.$route.fullPath,()=>{o.value===!0&&t.value===!0&&A()}),c===!0&&r.onMounted(()=>{B(m.modelValue)});const W={show:x,hide:A,toggle:S};return Object.assign(k,W),W}const Is={};let xm=1,Em=document.body;function km(t,l){const o=document.createElement("div");if(o.id=l!==void 0?`q-portal--${l}--${xm++}`:t,Is.globalNodes!==void 0){const u=Is.globalNodes.class;u!==void 0&&(o.className=u)}return Em.appendChild(o),o}function Om(t){t.remove()}const Nr=[];function Am(t,l){do{if(t.$options.name==="QMenu"){if(t.hide(l),t.$props.separateClosePopup===!0)return Ho(t)}else if(t.__qPortal===!0){const o=Ho(t);return o!==void 0&&o.$options.name==="QPopupProxy"?(t.hide(l),o):t}t=Ho(t)}while(t!=null)}const Tm=Ke({name:"QPortal",setup(t,{slots:l}){return()=>l.default()}});function Bm(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 ll(t,l,o,u){const s=r.ref(!1),c=r.ref(!1);let d=null;const m={},w=u==="dialog"&&Bm(t);function k(S){if(S===!0){fs(m),c.value=!0;return}c.value=!1,s.value===!1&&(w===!1&&d===null&&(d=km(!1,u)),s.value=!0,Nr.push(t.proxy),Ih(m))}function p(S){if(c.value=!1,S!==!0)return;fs(m),s.value=!1;const x=Nr.indexOf(t.proxy);x!==-1&&Nr.splice(x,1),d!==null&&(Om(d),d=null)}return r.onUnmounted(()=>{p(!0)}),t.proxy.__qPortal=!0,bi(t.proxy,"contentEl",()=>l.value),{showPortal:k,hidePortal:p,portalIsActive:s,portalIsAccessible:c,renderPortal:()=>w===!0?o():s.value===!0?[r.h(r.Teleport,{to:d},r.h(Tm,o))]:void 0}}const $r={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function al(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 ul(){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&&(Mr(l)===!1&&t(),t=void 0)})}}}const Ms=[Element,String],Rm=[null,document,document.body,document.scrollingElement,document.documentElement];function Ls(t,l){let o=Kh(l);if(o===void 0){if(t==null)return window;o=t.closest(".scroll,.scroll-y,.overflow-auto")}return Rm.includes(o)?window:o}function Im(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function Mm(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let Bi;function Lm(){if(Bi!==void 0)return Bi;const t=document.createElement("p"),l=document.createElement("div");tl(t,{width:"100%",height:"200px"}),tl(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(),Bi=o-u,Bi}function Pm(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 Vn=[];let dr;function qm(t){dr=t.keyCode===27}function Vm(){dr===!0&&(dr=!1)}function Nm(t){dr===!0&&(dr=!1,qn(t,27)===!0&&Vn[Vn.length-1](t))}function Ps(t){window[t]("keydown",qm),window[t]("blur",Vm),window[t]("keyup",Nm),dr=!1}function qs(t){_t.is.desktop===!0&&(Vn.push(t),Vn.length===1&&Ps("addEventListener"))}function Ri(t){const l=Vn.indexOf(t);l!==-1&&(Vn.splice(l,1),Vn.length===0&&Ps("removeEventListener"))}const Nn=[];function Vs(t){Nn[Nn.length-1](t)}function Ns(t){_t.is.desktop===!0&&(Nn.push(t),Nn.length===1&&document.body.addEventListener("focusin",Vs))}function sl(t){const l=Nn.indexOf(t);l!==-1&&(Nn.splice(l,1),Nn.length===0&&document.body.removeEventListener("focusin",Vs))}const{notPassiveCapture:Ii}=dt,$n=[];function Mi(t){const l=t.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let o=Nr.length-1;for(;o>=0;){const u=Nr[o].$;if(u.type.name==="QTooltip"){o--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;o--}for(let u=$n.length-1;u>=0;u--){const s=$n[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 $s(t){$n.push(t),$n.length===1&&(document.addEventListener("mousedown",Mi,Ii),document.addEventListener("touchstart",Mi,Ii))}function Li(t){const l=$n.findIndex(o=>o===t);l!==-1&&($n.splice(l,1),$n.length===0&&(document.removeEventListener("mousedown",Mi,Ii),document.removeEventListener("touchstart",Mi,Ii)))}let Ds,Fs;function Pi(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 Us(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const cl={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{cl[`${t}#ltr`]=t,cl[`${t}#rtl`]=t});function qi(t,l){const o=t.split(" ");return{vertical:o[0],horizontal:cl[`${o[1]}#${l===!0?"rtl":"ltr"}`]}}function $m(t,l){let{top:o,left:u,right:s,bottom:c,width:d,height:m}=t.getBoundingClientRect();return l!==void 0&&(o-=l[1],u-=l[0],c+=l[1],s+=l[0],d+=l[0],m+=l[1]),{top:o,bottom:c,height:m,left:u,right:s,width:d,middle:u+(s-u)/2,center:o+(c-o)/2}}function Dm(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 Fm(t,l){return{top:0,center:l/2,bottom:l,left:0,middle:t/2,right:t}}function zs(t,l,o,u){return{top:t[o.vertical]-l[u.vertical],left:t[o.horizontal]-l[u.horizontal]}}function fl(t,l=0){if(t.targetEl===null||t.anchorEl===null||l>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{fl(t,l+1)},10);return}const{targetEl:o,offset:u,anchorEl:s,anchorOrigin:c,selfOrigin:d,absoluteOffset:m,fit:w,cover:k,maxHeight:p,maxWidth:S}=t;if(_t.is.ios===!0&&window.visualViewport!==void 0){const Y=document.body.style,{offsetLeft:G,offsetTop:oe}=window.visualViewport;G!==Ds&&(Y.setProperty("--q-pe-left",G+"px"),Ds=G),oe!==Fs&&(Y.setProperty("--q-pe-top",oe+"px"),Fs=oe)}const{scrollLeft:x,scrollTop:_}=o,A=m===void 0?$m(s,k===!0?[0,0]:u):Dm(s,m,u);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:S||"100vw",maxHeight:p||"100vh",visibility:"visible"});const{offsetWidth:U,offsetHeight:B}=o,{elWidth:W,elHeight:F}=w===!0||k===!0?{elWidth:Math.max(A.width,U),elHeight:k===!0?Math.max(A.height,B):B}:{elWidth:U,elHeight:B};let V={maxWidth:S,maxHeight:p};(w===!0||k===!0)&&(V.minWidth=A.width+"px",k===!0&&(V.minHeight=A.height+"px")),Object.assign(o.style,V);const K=Fm(W,F);let z=zs(A,K,c,d);if(m===void 0||u===void 0)dl(z,A,K,c,d);else{const{top:Y,left:G}=z;dl(z,A,K,c,d);let oe=!1;if(z.top!==Y){oe=!0;const q=2*u[1];A.center=A.top-=q,A.bottom-=q+2}if(z.left!==G){oe=!0;const q=2*u[0];A.middle=A.left-=q,A.right-=q+2}oe===!0&&(z=zs(A,K,c,d),dl(z,A,K,c,d))}V={top:z.top+"px",left:z.left+"px"},z.maxHeight!==void 0&&(V.maxHeight=z.maxHeight+"px",A.height>z.maxHeight&&(V.minHeight=V.maxHeight)),z.maxWidth!==void 0&&(V.maxWidth=z.maxWidth+"px",A.width>z.maxWidth&&(V.minWidth=V.maxWidth)),Object.assign(o.style,V),o.scrollTop!==_&&(o.scrollTop=_),o.scrollLeft!==x&&(o.scrollLeft=x)}function dl(t,l,o,u,s){const c=o.bottom,d=o.right,m=Lm(),w=window.innerHeight-m,k=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 p=Math.min(w,u.vertical==="center"?l.center:u.vertical===s.vertical?l.bottom:l.top);t.maxHeight=Math.min(c,p),t.top=Math.max(0,p-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+d>k)if(t.maxWidth=Math.min(d,k),s.horizontal==="middle")t.left=l[u.horizontal]>k/2?Math.max(0,k-d):0;else if(l[u.horizontal]>k/2){const p=Math.min(k,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.right:l.left);t.maxWidth=Math.min(d,p),t.left=Math.max(0,p-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(d,k-t.left)}const Um=Ke({name:"QMenu",inheritAttrs:!1,props:{...Cm,...rl,...ar,...$r,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Pi},self:{type:String,validator:Pi},offset:{type:Array,validator:Us},scrollTarget:Ms,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...il,"click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){let s=null,c,d,m;const w=r.getCurrentInstance(),{proxy:k}=w,{$q:p}=k,S=r.ref(null),x=r.ref(!1),_=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),A=ur(t,p),{registerTick:U,removeTick:B}=ul(),{registerTimeout:W}=Lr(),{transitionProps:F,transitionStyle:V}=al(t),{localScrollTarget:K,changeScrollEvent:z,unconfigureScrollTarget:Y}=Rs(t,Z),{anchorEl:G,canShow:oe}=Bs({showing:x}),{hide:q}=ol({showing:x,canShow:oe,handleShow:ge,handleHide:R,hideOnRouteChange:_,processOnMount:!0}),{showPortal:$,hidePortal:Q,renderPortal:O}=ll(w,S,Oe,"menu"),te={anchorEl:G,innerRef:S,onClickOutside(X){if(t.persistent!==!0&&x.value===!0)return q(X),(X.type==="touchstart"||X.target.classList.contains("q-dialog__backdrop"))&&We(X),!0}},N=r.computed(()=>qi(t.anchor||(t.cover===!0?"center middle":"bottom start"),p.lang.rtl)),ae=r.computed(()=>t.cover===!0?N.value:qi(t.self||"top start",p.lang.rtl)),le=r.computed(()=>(t.square===!0?" q-menu--square":"")+(A.value===!0?" q-menu--dark q-dark":"")),ce=r.computed(()=>t.autoClose===!0?{onClick:pe}:{}),j=r.computed(()=>x.value===!0&&t.persistent!==!0);r.watch(j,X=>{X===!0?(qs(H),$s(te)):(Ri(H),Li(te))});function se(){ki(()=>{let X=S.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,Ns(fe),$(),Z(),c=void 0,X!==void 0&&(t.touchPosition||t.contextMenu)){const $e=Zu(X);if($e.left!==void 0){const{top:ot,left:Ft}=G.value.getBoundingClientRect();c={left:$e.left-Ft,top:$e.top-ot}}}d===void 0&&(d=r.watch(()=>p.screen.width+"|"+p.screen.height+"|"+t.self+"|"+t.anchor+"|"+p.lang.rtl,re)),t.noFocus!==!0&&document.activeElement.blur(),U(()=>{re(),t.noFocus!==!0&&se()}),W(()=>{p.platform.is.ios===!0&&(m=t.autoClose,S.value.click()),re(),$(!0),o("show",X)},t.transitionDuration)}function R(X){B(),Q(),T(!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),W(()=>{Q(!0),o("hide",X)},t.transitionDuration)}function T(X){c=void 0,d!==void 0&&(d(),d=void 0),(X===!0||x.value===!0)&&(sl(fe),Y(),Li(te),Ri(H)),X!==!0&&(s=null)}function Z(){(G.value!==null||t.scrollTarget!==void 0)&&(K.value=Ls(G.value,t.scrollTarget),z(K.value,re))}function pe(X){m!==!0?(Am(k,X),o("click",X)):m=!1}function fe(X){j.value===!0&&t.noFocus!==!0&&vs(S.value,X.target)!==!0&&se()}function H(X){o("escapeKey"),q(X)}function re(){fl({targetEl:S.value,offset:t.offset,anchorEl:G.value,anchorOrigin:N.value,selfOrigin:ae.value,absoluteOffset:c,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Oe(){return r.h(r.Transition,F.value,()=>x.value===!0?r.h("div",{role:"menu",...u,ref:S,tabindex:-1,class:["q-menu q-position-engine scroll"+le.value,u.class],style:[u.style,V.value],...ce.value},ct(l.default)):null)}return r.onBeforeUnmount(T),Object.assign(k,{focus:se,updatePosition:re}),O}});function zm(t,l,o){function u(){}return r.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Dr=0,hl,ml,Fr,gl=!1,Hs,Ws,Gs,Dn=null;function Hm(t){Wm(t)&&We(t)}function Wm(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const l=_h(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 d=l[c];if(Pm(d,u))return u?s<0&&d.scrollTop===0?!0:s>0&&d.scrollTop+d.clientHeight===d.scrollHeight:s<0&&d.scrollLeft===0?!0:s>0&&d.scrollLeft+d.clientWidth===d.scrollWidth}return!0}function js(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Vi(t){gl!==!0&&(gl=!0,requestAnimationFrame(()=>{gl=!1;const{height:l}=t.target,{clientHeight:o,scrollTop:u}=document.scrollingElement;(Fr===void 0||l!==window.innerHeight)&&(Fr=o-l,document.scrollingElement.scrollTop=u),u>Fr&&(document.scrollingElement.scrollTop-=Math.ceil((u-Fr)/8))}))}function Ks(t){const l=document.body,o=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(l);hl=Mm(window),ml=Im(window),Hs=l.style.left,Ws=l.style.top,Gs=window.location.href,l.style.left=`-${hl}px`,l.style.top=`-${ml}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",js,dt.passiveCapture))}_t.is.desktop===!0&&_t.is.mac===!0&&window[`${t}EventListener`]("wheel",Hm,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",js,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=Hs,l.style.top=Ws,window.location.href===Gs&&window.scrollTo(hl,ml),Fr=void 0)}function Gm(t){let l="add";if(t===!0){if(Dr++,Dn!==null){clearTimeout(Dn),Dn=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){Dn!==null&&clearTimeout(Dn),Dn=setTimeout(()=>{Ks(l),Dn=null},100);return}}Ks(l)}function jm(){let t;return{preventBodyScroll(l){l!==t&&(t!==void 0||l===!0)&&(t=l,Gm(l))}}}let Ni=0;const Km={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"},Ys={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Ym=Ke({name:"QDialog",inheritAttrs:!1,props:{...rl,...$r,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:[...il,"shake","click","escapeKey"],setup(t,{slots:l,emit:o,attrs:u}){const s=r.getCurrentInstance(),c=r.ref(null),d=r.ref(!1),m=r.ref(!1);let w=null,k=null,p,S;const x=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:_}=jm(),{registerTimeout:A}=Lr(),{registerTick:U,removeTick:B}=ul(),{transitionProps:W,transitionStyle:F}=al(t,()=>Ys[t.position][0],()=>Ys[t.position][1]),V=r.computed(()=>F.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:K,hidePortal:z,portalIsAccessible:Y,renderPortal:G}=ll(s,c,fe,"dialog"),{hide:oe}=ol({showing:d,hideOnRouteChange:x,handleShow:ae,handleHide:le,processOnMount:!0}),{addToHistory:q,removeFromHistory:$}=zm(d),Q=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${Km[t.position]}`+(m.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":"")),O=r.computed(()=>d.value===!0&&t.seamless!==!0),te=r.computed(()=>t.autoClose===!0?{onClick:T}:{}),N=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${O.value===!0?"modal":"seamless"}`,u.class]);r.watch(()=>t.maximized,H=>{d.value===!0&&R(H)}),r.watch(O,H=>{_(H),H===!0?(Ns(pe),qs(se)):(sl(pe),Ri(se))});function ae(H){q(),k=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,R(t.maximized),K(),m.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),U(ce)):B(),A(()=>{if(s.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:re,bottom:Oe}=document.activeElement.getBoundingClientRect(),{innerHeight:X}=window,$e=window.visualViewport!==void 0?window.visualViewport.height:X;re>0&&Oe>$e/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-$e,Oe>=X?1/0:Math.ceil(document.scrollingElement.scrollTop+Oe-$e/2))),document.activeElement.scrollIntoView()}S=!0,c.value.click(),S=!1}K(!0),m.value=!1,o("show",H)},t.transitionDuration)}function le(H){B(),$(),ge(!0),m.value=!0,z(),k!==null&&(((H&&H.type.indexOf("key")===0?k.closest('[tabindex]:not([tabindex^="-"])'):void 0)||k).focus(),k=null),A(()=>{z(!0),m.value=!1,o("hide",H)},t.transitionDuration)}function ce(H){ki(()=>{let re=c.value;if(re!==null){if(H!==void 0){const Oe=re.querySelector(H);if(Oe!==null){Oe.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 j(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&&j():(o("escapeKey"),oe()))}function ge(H){w!==null&&(clearTimeout(w),w=null),(H===!0||d.value===!0)&&(R(!1),t.seamless!==!0&&(_(!1),sl(pe),Ri(se))),H!==!0&&(k=null)}function R(H){H===!0?p!==!0&&(Ni<1&&document.body.classList.add("q-body--dialog"),Ni++,p=!0):p===!0&&(Ni<2&&document.body.classList.remove("q-body--dialog"),Ni--,p=!1)}function T(H){S!==!0&&(oe(H),o("click",H))}function Z(H){t.persistent!==!0&&t.noBackdropDismiss!==!0?oe(H):t.noShake!==!0&&j()}function pe(H){t.allowFocusOutside!==!0&&Y.value===!0&&vs(c.value,H.target)!==!0&&ce('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:ce,shake:j,__updateRefocusTarget(H){k=H||null}}),r.onBeforeUnmount(ge);function fe(){return r.h("div",{role:"dialog","aria-modal":O.value===!0?"true":"false",...u,class:N.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>O.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:V.value,"aria-hidden":"true",tabindex:-1,onClick:Z}):null),r.h(r.Transition,W.value,()=>d.value===!0?r.h("div",{ref:c,class:Q.value,style:F.value,tabindex:-1,...te.value},ct(l.default)):null)])}return G}});let $i=!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,$i=t.scrollLeft>=0,t.remove()}const Dt=1e3,Qm=["start","center","end","start-force","center-force","end-force"],Qs=Array.prototype.filter,Zm=window.getComputedStyle(document.body).overflowAnchor===void 0?vh: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||[];Qs.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 hr(t,l){return t+l}function pl(t,l,o,u,s,c,d,m){const w=t===window?document.scrollingElement||document.documentElement:t,k=s===!0?"offsetWidth":"offsetHeight",p={scrollStart:0,scrollViewSize:-d-m,scrollMaxSize:0,offsetStart:-d,offsetEnd:-m};if(s===!0?(t===window?(p.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,p.scrollViewSize+=document.documentElement.clientWidth):(p.scrollStart=w.scrollLeft,p.scrollViewSize+=w.clientWidth),p.scrollMaxSize=w.scrollWidth,c===!0&&(p.scrollStart=($i===!0?p.scrollMaxSize-p.scrollViewSize:0)-p.scrollStart)):(t===window?(p.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,p.scrollViewSize+=document.documentElement.clientHeight):(p.scrollStart=w.scrollTop,p.scrollViewSize+=w.clientHeight),p.scrollMaxSize=w.scrollHeight),o!==null)for(let S=o.previousElementSibling;S!==null;S=S.previousElementSibling)S.classList.contains("q-virtual-scroll--skip")===!1&&(p.offsetStart+=S[k]);if(u!==null)for(let S=u.nextElementSibling;S!==null;S=S.nextElementSibling)S.classList.contains("q-virtual-scroll--skip")===!1&&(p.offsetEnd+=S[k]);if(l!==t){const S=w.getBoundingClientRect(),x=l.getBoundingClientRect();s===!0?(p.offsetStart+=x.left-S.left,p.offsetEnd-=x.width):(p.offsetStart+=x.top-S.top,p.offsetEnd-=x.height),t!==window&&(p.offsetStart+=p.scrollStart),p.offsetEnd+=p.scrollMaxSize-p.offsetStart}return p}function Zs(t,l,o,u){l==="end"&&(l=(t===window?document.body:t)[o===!0?"scrollWidth":"scrollHeight"]),t===window?o===!0?(u===!0&&(l=($i===!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=($i===!0?t.scrollWidth-t.offsetWidth:0)-l),t.scrollLeft=l):t.scrollTop=l}function Ur(t,l,o,u){if(o>=u)return 0;const s=l.length,c=Math.floor(o/Dt),d=Math.floor((u-1)/Dt)+1;let m=t.slice(c,d).reduce(hr,0);return o%Dt!==0&&(m-=l.slice(c*Dt,o).reduce(hr,0)),u%Dt!==0&&u!==s&&(m-=l.slice(u,d*Dt).reduce(hr,0)),m}const Xs={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 Xm({virtualScrollLength:t,getVirtualScrollTarget:l,getVirtualScrollEl:o,virtualScrollItemSizeComputed:u}){const s=r.getCurrentInstance(),{props:c,emit:d,proxy:m}=s,{$q:w}=m;let k,p,S,x=[],_;const A=r.ref(0),U=r.ref(0),B=r.ref({}),W=r.ref(null),F=r.ref(null),V=r.ref(null),K=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 Y=r.computed(()=>u.value+";"+c.virtualScrollHorizontal),G=r.computed(()=>Y.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);r.watch(G,()=>{le()}),r.watch(Y,oe);function oe(){ae(p,!0)}function q(R){ae(R===void 0?p:R)}function $(R,T){const Z=l();if(Z==null||Z.nodeType===8)return;const pe=pl(Z,o(),W.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);S!==pe.scrollViewSize&&le(pe.scrollViewSize),O(Z,pe,Math.min(t.value-1,Math.max(0,parseInt(R,10)||0)),0,Qm.indexOf(T)!==-1?T:p!==-1&&R>p?"end":"start")}function Q(){const R=l();if(R==null||R.nodeType===8)return;const T=pl(R,o(),W.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),Z=t.value-1,pe=T.scrollMaxSize-T.offsetStart-T.offsetEnd-U.value;if(k===T.scrollStart)return;if(T.scrollMaxSize<=0){O(R,T,0,0);return}S!==T.scrollViewSize&&le(T.scrollViewSize),te(K.value.from);const fe=Math.floor(T.scrollMaxSize-Math.max(T.scrollViewSize,T.offsetEnd)-Math.min(_[Z],T.scrollViewSize/2));if(fe>0&&Math.ceil(T.scrollStart)>=fe){O(R,T,Z,T.scrollMaxSize-T.offsetEnd-x.reduce(hr,0));return}let H=0,re=T.scrollStart-T.offsetStart,Oe=re;if(re<=pe&&re+T.scrollViewSize>=A.value)re-=A.value,H=K.value.from,Oe=re;else for(let X=0;re>=x[X]&&H<Z;X++)re-=x[X],H+=Dt;for(;re>0&&H<Z;)re-=_[H],re>-T.scrollViewSize?(H++,Oe=re):Oe=_[H]+re;O(R,T,H,Oe)}function O(R,T,Z,pe,fe){const H=typeof fe=="string"&&fe.indexOf("-force")!==-1,re=H===!0?fe.replace("-force",""):fe,Oe=re!==void 0?re:"start";let X=Math.max(0,Z-B.value[Oe]),$e=X+B.value.total;$e>t.value&&($e=t.value,X=Math.max(0,$e-B.value.total)),k=T.scrollStart;const ot=X!==K.value.from||$e!==K.value.to;if(ot===!1&&re===void 0){j(Z);return}const{activeElement:Ft}=document,yt=V.value;ot===!0&&yt!==null&&yt!==Ft&&yt.contains(Ft)===!0&&(yt.addEventListener("focusout",N),setTimeout(()=>{yt!==null&&yt.removeEventListener("focusout",N)})),Zm(yt,Z-X);const nt=re!==void 0?_.slice(X,Z).reduce(hr,0):0;if(ot===!0){const wt=$e>=K.value.from&&X<=K.value.to?K.value.to:$e;K.value={from:X,to:wt},A.value=Ur(x,_,0,X),U.value=Ur(x,_,$e,t.value),requestAnimationFrame(()=>{K.value.to!==$e&&k===T.scrollStart&&(K.value={from:K.value.from,to:$e},U.value=Ur(x,_,$e,t.value))})}requestAnimationFrame(()=>{if(k!==T.scrollStart)return;ot===!0&&te(X);const wt=_.slice(X,Z).reduce(hr,0),nn=wt+T.offsetStart+A.value,ht=nn+_[Z];let bn=nn+pe;if(re!==void 0){const zr=wt-nt,Ut=T.scrollStart+zr;bn=H!==!0&&Ut<nn&&ht<Ut+T.scrollViewSize?Ut:re==="end"?ht-T.scrollViewSize:nn-(re==="start"?0:Math.round((T.scrollViewSize-_[Z])/2))}k=bn,Zs(R,bn,c.virtualScrollHorizontal,w.lang.rtl),j(Z)})}function te(R){const T=V.value;if(T){const Z=Qs.call(T.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=R,re,Oe;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++;Oe=re-_[H],Oe!==0&&(_[H]+=Oe,x[Math.floor(H/Dt)]+=Oe),H++}}}function N(){V.value!==null&&V.value!==void 0&&V.value.focus()}function ae(R,T){const Z=1*u.value;(T===!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)/Dt);x=[];for(let H=0;H<=fe;H++){let re=0;const Oe=Math.min((H+1)*Dt,t.value);for(let X=H*Dt;X<Oe;X++)re+=_[X];x.push(re)}p=-1,k=void 0,A.value=Ur(x,_,0,K.value.from),U.value=Ur(x,_,K.value.to,t.value),R>=0?(te(K.value.from),r.nextTick(()=>{$(R)})):se()}function le(R){if(R===void 0&&typeof window<"u"){const re=l();re!=null&&re.nodeType!==8&&(R=pl(re,o(),W.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}S=R;const T=parseFloat(c.virtualScrollSliceRatioBefore)||0,Z=parseFloat(c.virtualScrollSliceRatioAfter)||0,pe=1+T+Z,fe=R===void 0||R<=0?1:Math.ceil(R/u.value),H=Math.max(1,fe,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/pe));B.value={total:Math.ceil(H*pe),start:Math.ceil(H*T),center:Math.ceil(H*(.5+T)),end:Math.ceil(H*(1+T)),view:fe}}function ce(R,T){const Z=c.virtualScrollHorizontal===!0?"width":"height",pe={["--q-virtual-scroll-item-"+Z]:u.value+"px"};return[R==="tbody"?r.h(R,{class:"q-virtual-scroll__padding",key:"before",ref:W},[r.h("tr",[r.h("td",{style:{[Z]:`${A.value}px`,...pe},colspan:z.value})])]):r.h(R,{class:"q-virtual-scroll__padding",key:"before",ref:W,style:{[Z]:`${A.value}px`,...pe}}),r.h(R,{class:"q-virtual-scroll__content",key:"content",ref:V,tabindex:-1},T.flat()),R==="tbody"?r.h(R,{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(R,{class:"q-virtual-scroll__padding",key:"after",ref:F,style:{[Z]:`${U.value}px`,...pe}})]}function j(R){p!==R&&(c.onVirtualScroll!==void 0&&d("virtualScroll",{index:R,from:K.value.from,to:K.value.to-1,direction:R<p?"decrease":"increase",ref:m}),p=R)}le();const se=ss(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 R=l();k!==void 0&&R!==void 0&&R!==null&&R.nodeType!==8?Zs(R,k,c.virtualScrollHorizontal,w.lang.rtl):$(p)}),r.onBeforeUnmount(()=>{se.cancel()}),Object.assign(m,{scrollTo:$,reset:oe,refresh:q}),{virtualScrollSliceRange:K,virtualScrollSliceSizeComputed:B,setVirtualScrollSize:le,onVirtualScrollEvt:se,localResetVirtualScroll:ae,padVirtualScroll:ce,scrollTo:$,reset:oe,refresh:q}}function Js(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 ec=t=>["add","add-unique","toggle"].includes(t),Jm=".*+?^${}()|[]\\",eg=Object.keys(Oi),tc=Ke({name:"QSelect",inheritAttrs:!1,props:{...Xs,...Go,...Oi,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:ec},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:Xs.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Qo,"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),d=r.ref(!1),m=r.ref(-1),w=r.ref(""),k=r.ref(!1),p=r.ref(!1);let S=null,x=null,_,A,U,B=null,W,F,V,K;const z=r.ref(null),Y=r.ref(null),G=r.ref(null),oe=r.ref(null),q=r.ref(null),$=Qu(t),Q=gs(ji),O=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:N,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:le,padVirtualScroll:ce,onVirtualScrollEvt:j,scrollTo:se,setVirtualScrollSize:ge}=Xm({virtualScrollLength:O,getVirtualScrollTarget:Wi,getVirtualScrollEl:Wr,virtualScrollItemSizeComputed:te}),R=Zo(),T=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?_:[],_e=ne.map(Ie=>Hr(Ie,J));return t.modelValue===null&&b===!0?_e.filter(Ie=>Ie!==null):_e}return ne}),Z=r.computed(()=>{const b={};return eg.forEach(ne=>{const J=t[ne];J!==void 0&&(b[ne]=J)}),b}),pe=r.computed(()=>t.optionsDark===null?R.isDark.value:t.optionsDark),fe=r.computed(()=>Vr(T.value)),H=r.computed(()=>{let b="q-field__input q-placeholder col";return t.hideSelected===!0||T.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:"")),Oe=r.computed(()=>O.value===0),X=r.computed(()=>T.value.map(b=>Ye.value(b)).join(", ")),$e=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||T.value.some(ot.value))),yt=r.computed(()=>R.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":`${R.targetUid.value}_lb`};return m.value>=0&&(b["aria-activedescendant"]=`${R.targetUid.value}_${m.value}`),b}),wt=r.computed(()=>({id:`${R.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),nn=r.computed(()=>T.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(O.value===0)return[];const{from:b,to:ne}=N.value;return t.options.slice(b,ne).map((J,_e)=>{const Ie=zt.value(J)===!0,Be=zn(J)===!0,je=b+_e,Ve={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:`${R.targetUid.value}_${je}`,onClick:()=>{Ht(J)}};return Ie!==!0&&(m.value===je&&(Ve.focused=!0),s.platform.is.desktop===!0&&(Ve.onMousemove=()=>{c.value===!0&&Qt(je)})),{index:je,opt:J,html:ot.value(J),label:Ye.value(J),selected:Ve.active,focused:Ve.focused,toggleOption:Ht,setOptionIndex:Qt,itemProps:Ve}})}),bn=r.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),zr=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")),mr=r.computed(()=>T.value.map(b=>Fe.value(b))),Fn=r.computed(()=>{const b={onInput:ji,onChange:Q,onKeydown:Hi,onKeyup:Ui,onKeypress:zi,onFocus:pr,onClick(ne){A===!0&&Yt(ne)}};return b.onCompositionstart=b.onCompositionupdate=b.onCompositionend=Q,b});r.watch(T,b=>{_=b,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&R.innerLoading.value!==!0&&(d.value!==!0&&c.value!==!0||fe.value!==!0)&&(U!==!0&&ln(),(d.value===!0||c.value===!0)&&Sn(""))},{immediate:!0}),r.watch(()=>t.fillInput,ln),r.watch(c,Kr),r.watch(O,Tl);function Fi(b){return t.emitValue===!0?Fe.value(b):b}function rn(b){if(b!==-1&&b<T.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){rn(b),R.focus()}function gr(b,ne){const J=Fi(b);if(t.multiple!==!0){t.fillInput===!0&&Wn(Ye.value(b),!0,!0),o("update:modelValue",J);return}if(T.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 _e=t.modelValue.slice();o("add",{index:_e.length,value:J}),_e.push(J),o("update:modelValue",_e)}function Ht(b,ne){if(R.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),on()),Y.value!==null&&Y.value.focus(),(T.value.length===0||en(Fe.value(T.value[0]),J)!==!0)&&o("update:modelValue",t.emitValue===!0?J:b);return}if((A!==!0||k.value===!0)&&R.focus(),pr(),T.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 _e=t.modelValue.slice(),Ie=mr.value.findIndex(Be=>en(Be,J));if(Ie!==-1)o("remove",{index:Ie,value:_e.splice(Ie,1)[0]});else{if(t.maxValues!==void 0&&_e.length>=t.maxValues)return;const Be=t.emitValue===!0?J:b;o("add",{index:_e.length,value:Be}),_e.push(Be)}o("update:modelValue",_e)}function Qt(b){if(s.platform.is.desktop!==!0)return;const ne=b!==-1&&b<O.value?b:-1;m.value!==ne&&(m.value=ne)}function wn(b=1,ne){if(c.value===!0){let J=m.value;do J=Js(J+b,-1,O.value-1);while(J!==-1&&J!==m.value&&zt.value(t.options[J])===!0);m.value!==J&&(Qt(J),se(J),ne!==!0&&t.useInput===!0&&t.fillInput===!0&&Hn(J>=0?Ye.value(t.options[J]):W,!0))}}function Hr(b,ne){const J=_e=>en(Fe.value(_e),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:_e=>_e!==null&&typeof _e=="object"&&J in _e?_e[J]:_e}function zn(b){const ne=Fe.value(b);return mr.value.find(J=>en(J,ne))!==void 0}function pr(b){t.useInput===!0&&Y.value!==null&&(b===void 0||Y.value===b.target&&b.target.value===X.value)&&Y.value.select()}function vr(b){qn(b,27)===!0&&c.value===!0&&(Yt(b),on(),ln()),o("keyup",b)}function Ui(b){const{value:ne}=b.target;if(b.keyCode!==void 0){vr(b);return}if(b.target.value="",S!==null&&(clearTimeout(S),S=null),x!==null&&(clearTimeout(x),x=null),ln(),typeof ne=="string"&&ne.length!==0){const J=ne.toLocaleLowerCase(),_e=Be=>{const je=t.options.find(Ve=>Be.value(Ve).toLocaleLowerCase()===J);return je===void 0?!1:(T.value.indexOf(je)===-1?Ht(je):on(),!0)},Ie=Be=>{_e(Fe)!==!0&&(_e(Ye)===!0||Be===!0||Sn(ne,!0,()=>Ie(!0)))};Ie()}else R.clearValue(b)}function zi(b){o("keypress",b)}function Hi(b){if(o("keydown",b),Jo(b)===!0)return;const ne=w.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),J=b.shiftKey!==!0&&t.multiple!==!0&&(m.value!==-1||ne===!0);if(b.keyCode===27){$t(b);return}if(b.keyCode===9&&J===!1){Cn();return}if(b.target===void 0||b.target.id!==R.targetUid.value||R.editable.value!==!0)return;if(b.keyCode===40&&R.innerLoading.value!==!0&&c.value===!1){We(b),xn();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?rn(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),m.value=-1,wn(b.keyCode===36?1:-1,t.multiple)),(b.keyCode===33||b.keyCode===34)&&ae.value!==void 0&&(We(b),m.value=Math.max(-1,Math.min(O.value,m.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 _e=O.value;if((V===void 0||K<Date.now())&&(V=""),_e>0&&t.useInput!==!0&&b.key!==void 0&&b.key.length===1&&b.altKey===!1&&b.ctrlKey===!1&&b.metaKey===!1&&(b.keyCode!==32||V.length!==0)){c.value!==!0&&xn(b);const Ie=b.key.toLocaleLowerCase(),Be=V.length===1&&V[0]===Ie;K=Date.now()+1500,Be===!1&&(We(b),V+=Ie);const je=new RegExp("^"+V.split("").map(_r=>Jm.indexOf(_r)!==-1?"\\"+_r:_r).join(".*"),"i");let Ve=m.value;if(Be===!0||Ve<0||je.test(Ye.value(t.options[Ve]))!==!0)do Ve=Js(Ve+1,-1,_e-1);while(Ve!==m.value&&(zt.value(t.options[Ve])===!0||je.test(Ye.value(t.options[Ve]))!==!0));m.value!==Ve&&r.nextTick(()=>{Qt(Ve),se(Ve),Ve>=0&&t.useInput===!0&&t.fillInput===!0&&Hn(Ye.value(t.options[Ve]),!0)});return}if(!(b.keyCode!==13&&(b.keyCode!==32||t.useInput===!0||V!=="")&&(b.keyCode!==9||J===!1))){if(b.keyCode!==9&&We(b),m.value!==-1&&m.value<_e){Ht(t.options[m.value]);return}if(ne===!0){const Ie=(Be,je)=>{if(je){if(ec(je)!==!0)return}else je=t.newValueMode;if(Wn("",t.multiple!==!0,!0),Be==null)return;(je==="toggle"?Ht:gr)(Be,je==="add-unique"),t.multiple!==!0&&(Y.value!==null&&Y.value.focus(),on())};if(t.onNewValue!==void 0?o("newValue",w.value,Ie):Ie(w.value),t.multiple!==!0)return}c.value===!0?Cn():R.innerLoading.value!==!0&&xn()}}function Wr(){return A===!0?q.value:G.value!==null&&G.value.contentEl!==null?G.value.contentEl:void 0}function Wi(){return Wr()}function yl(){return t.hideSelected===!0?[]:l["selected-item"]!==void 0?nn.value.map(b=>l["selected-item"](b)).slice():l.selected!==void 0?[].concat(l.selected()):t.useChips===!0?nn.value.map((b,ne)=>r.h(bm,{key:"option-"+ne,removable:R.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"]:$e.value})]}function Gi(){if(Oe.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(ym,{key:J.index,...J.itemProps},()=>r.h(wm,()=>r.h(Sm,()=>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 wl(b,ne){const J=ne===!0?{...nt.value,...R.splitAttrs.attributes.value}:void 0,_e={ref:ne===!0?Y:void 0,key:"i_t",class:H.value,style:t.inputStyle,value:w.value!==void 0?w.value:"",type:"search",...J,id:ne===!0?R.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&&A===!0&&(Array.isArray(_e.class)===!0?_e.class=[..._e.class,"no-pointer-events"]:_e.class+=" no-pointer-events"),r.h("input",_e)}function ji(b){S!==null&&(clearTimeout(S),S=null),x!==null&&(clearTimeout(x),x=null),!(b&&b.target&&b.target.qComposing===!0)&&(Hn(b.target.value||""),U=!0,W=w.value,R.focused.value!==!0&&(A!==!0||k.value===!0)&&R.focus(),t.onFilter!==void 0&&(S=setTimeout(()=>{S=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):x=setTimeout(()=>{x=null,o("inputValue",b)},t.inputDebounce))}function Wn(b,ne,J){U=J!==!0,t.useInput===!0&&(Hn(b,!0),(ne===!0||J!==!0)&&(W=b),ne!==!0&&Sn(b))}function Sn(b,ne,J){if(t.onFilter===void 0||ne!==!0&&R.focused.value!==!0)return;R.innerLoading.value===!0?o("filterAbort"):(R.innerLoading.value=!0,p.value=!0),b!==""&&t.multiple!==!0&&T.value.length!==0&&U!==!0&&b===Ye.value(T.value[0])&&(b="");const _e=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);B!==null&&clearTimeout(B),B=_e,o("filter",b,(Ie,Be)=>{(ne===!0||R.focused.value===!0)&&B===_e&&(clearTimeout(B),typeof Ie=="function"&&Ie(),p.value=!1,r.nextTick(()=>{R.innerLoading.value=!1,R.editable.value===!0&&(ne===!0?c.value===!0&&on():c.value===!0?Kr(!0):c.value=!0),typeof Be=="function"&&r.nextTick(()=>{Be(u)}),typeof J=="function"&&r.nextTick(()=>{J(u)})}))},()=>{R.focused.value===!0&&B===_e&&(clearTimeout(B),R.innerLoading.value=!1,p.value=!1),c.value===!0&&(c.value=!1)})}function Sl(){return r.h(Um,{ref:G,class:re.value,style:t.popupContentStyle,modelValue:c.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Oe.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:zr.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...wt.value,onScrollPassive:j,onBeforeShow:Yi,onBeforeHide:Gr,onShow:Cl},Gi)}function Gr(b){Qi(b),Cn()}function Cl(){ge()}function jr(b){Yt(b),Y.value!==null&&Y.value.focus(),k.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function xl(b){Yt(b),r.nextTick(()=>{k.value=!1})}function El(){const b=[r.h(vm,{class:`col-auto ${R.fieldClass.value}`,...Z.value,for:R.targetUid.value,dark:pe.value,square:!0,loading:p.value,itemAligned:!1,filled:!0,stackLabel:w.value.length!==0,...R.splitAttrs.listeners.value,onFocus:jr,onBlur:xl},{...l,rawControl:()=>R.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&b.push(r.h("div",{ref:q,class:re.value+" scroll",style:t.popupContentStyle,...wt.value,onClick:$t,onScrollPassive:j},Gi())),r.h(Ym,{ref:oe,modelValue:d.value,position:t.useInput===!0?"top":void 0,transitionShow:F,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Yi,onBeforeHide:kl,onHide:Ol,onShow:Al},()=>r.h("div",{class:"q-select__dialog"+(pe.value===!0?" q-select__dialog--dark q-dark":"")+(k.value===!0?" q-select__dialog--focused":"")},b))}function kl(b){Qi(b),oe.value!==null&&oe.value.__updateRefocusTarget(R.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),R.focused.value=!1}function Ol(b){on(),R.focused.value===!1&&o("blur",b),ln()}function Al(){const b=document.activeElement;(b===null||b.id!==R.targetUid.value)&&Y.value!==null&&Y.value!==b&&Y.value.focus(),ge()}function Cn(){d.value!==!0&&(m.value=-1,c.value===!0&&(c.value=!1),R.focused.value===!1&&(B!==null&&(clearTimeout(B),B=null),R.innerLoading.value===!0&&(o("filterAbort"),R.innerLoading.value=!1,p.value=!1)))}function xn(b){R.editable.value===!0&&(A===!0?(R.onControlFocusin(b),d.value=!0,r.nextTick(()=>{R.focus()})):R.focus(),t.onFilter!==void 0?Sn(w.value):(Oe.value!==!0||l["no-option"]!==void 0)&&(c.value=!0))}function on(){d.value=!1,Cn()}function ln(){t.useInput===!0&&Wn(t.multiple!==!0&&t.fillInput===!0&&T.value.length!==0&&Ye.value(T.value[0])||"",!0,!0)}function Kr(b){let ne=-1;if(b===!0){if(T.value.length!==0){const J=Fe.value(T.value[0]);ne=t.options.findIndex(_e=>en(Fe.value(_e),J))}le(ne)}Qt(ne)}function Tl(b,ne){c.value===!0&&R.innerLoading.value===!1&&(le(-1,!0),r.nextTick(()=>{c.value===!0&&R.innerLoading.value===!1&&(b>ne?le():Kr(!0))}))}function Ki(){d.value===!1&&G.value!==null&&G.value.updatePosition()}function Yi(b){b!==void 0&&Yt(b),o("popupShow",b),R.hasPopupOpen=!0,R.onControlFocusin(b)}function Qi(b){b!==void 0&&Yt(b),o("popupHide",b),R.hasPopupOpen=!1,R.onControlFocusout(b)}function Zi(){A=s.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?l["no-option"]!==void 0||t.onFilter!==void 0||Oe.value===!1:!0),F=s.platform.is.ios===!0&&A===!0&&t.useInput===!0?"fade":t.transitionShow}return r.onBeforeUpdate(Zi),r.onUpdated(Ki),Zi(),r.onBeforeUnmount(()=>{S!==null&&clearTimeout(S),x!==null&&clearTimeout(x)}),Object.assign(u,{showPopup:xn,hidePopup:on,removeAtIndex:rn,add:gr,toggleOption:Ht,getOptionIndex:()=>m.value,setOptionIndex:Qt,moveOptionSelection:wn,filter:Sn,updateMenuPosition:Ki,updateInputValue:Wn,isOptionSelected:zn,getEmittingOptionValue:Fi,isOptionDisabled:(...b)=>zt.value.apply(null,b)===!0,getOptionValue:(...b)=>Fe.value.apply(null,b),getOptionLabel:(...b)=>Ye.value.apply(null,b)}),Object.assign(R,{innerValue:T,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:Y,hasValue:fe,showPopup:xn,floatingLabel:r.computed(()=>t.hideSelected!==!0&&fe.value===!0||typeof w.value=="number"||w.value.length!==0||Vr(t.displayValue)),getControlChild:()=>{if(R.editable.value!==!1&&(d.value===!0||Oe.value!==!0||l["no-option"]!==void 0))return A===!0?El():Sl();R.hasPopupOpen===!0&&(R.hasPopupOpen=!1)},controlEvents:{onFocusin(b){R.onControlFocusin(b)},onFocusout(b){R.onControlFocusout(b,()=>{ln(),Cn()})},onClick(b){if($t(b),A!==!0&&c.value===!0){Cn(),Y.value!==null&&Y.value.focus();return}xn(b)}},getControl:b=>{const ne=yl(),J=b===!0||d.value!==!0||A!==!0;if(t.useInput===!0)ne.push(wl(b,J));else if(R.editable.value===!0){const Ie=J===!0?nt.value:void 0;ne.push(r.h("input",{ref:J===!0?Y:void 0,key:"d_t",class:"q-select__focus-target",id:J===!0?R.targetUid.value:void 0,value:$e.value,readonly:!0,"data-autofocus":b===!0||t.autofocus===!0||void 0,...Ie,onKeydown:Hi,onKeyup:vr,onKeypress:zi})),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:Ui}))}if($.value!==void 0&&t.disable!==!0&&mr.value.length!==0){const Ie=mr.value.map(Be=>r.h("option",{value:Be,selected:!0}));ne.push(r.h("select",{class:"hidden",name:$.value,multiple:t.multiple},Ie))}const _e=t.useInput===!0||J!==!0?void 0:R.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",..._e,...R.splitAttrs.listeners.value},ne)},getInnerAppend:()=>t.loading!==!0&&p.value!==!0&&t.hideDropdownIcon!==!0?[r.h(bt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:bn.value})]:null}),Xo(R)}}),tg=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),d=r.ref([]),m=r.computed(()=>{var S;return((S=c.value)==null?void 0:S.collection)||null}),w=r.computed(()=>m.value?d.value:u.control.options),k=lr();r.watch(m,S=>{if(!S)return;const x=k.getCollection(m.value);if(x){d.value=x;return}s.value=!0},{immediate:!0});function p(S,x){if(S===""){x(()=>{l.value=qe.cloneDeep(w.value)});return}x(()=>{const _=S.toLowerCase();l.value=(w.value||[]).filter(A=>A.toLowerCase().includes(_))})}return(S,x)=>{const _=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[S.control.label?(r.openBlock(),r.createBlock(_,{key:0,label:S.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(Ti,{class:"q-card win-card row items-center q-px-md"},{default:r.withCtx(()=>[r.createVNode(tc,{borderless:"",label:S.control.label,modelValue:o.value,"onUpdate:modelValue":x[0]||(x[0]=A=>o.value=A),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:p,options:l.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-fa1749f7"]]),ng={class:"text-center",style:{width:"100%"}},rg={class:"text-center text-weight-medium"},ig={class:"question-title"},og=r.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(l,o)=>(r.openBlock(),r.createElementBlock("div",ng,[r.createElementVNode("div",rg,r.toDisplayString(l.formGroup.order+1)+"/"+r.toDisplayString(l.stepsCount),1),r.createElementVNode("div",ig,r.toDisplayString(l.formGroup.title||""),1)]))}});function lg(){return r.inject(kh)}function nc(t,l){const{maxControlsPerGroup:o,notifyValidations:u}={...Id,...l||{}},s=lr(),c=r.computed(()=>s.formSteps[t]),d=r.ref([]),m=r.ref([]),w=(_,A)=>{s.setControlValue(t,_);const U=d.value.find(F=>F.id===A);U&&(m.value=Ld(U));const B=p(_),W=S(_);(B||W)&&k()};function k(){const _=c.value.controls,A=[];Nd(_).forEach(B=>{const W=B.controls;if(W.every(V=>!$o.includes(V.controlType))){A.push(B);return}let F={...B,controls:[]};for(const V of W)if($o.includes(V.controlType)){A.push(F),F={...F,controls:[]};const K=qd(B,V,o);A.push(...K)}else F.controls.push(V)}),d.value=qe.orderBy(A,"order").map(B=>({...B,id:B.controls.map(W=>W.id).join("-")})).filter(B=>B.controls.some(W=>W.visible)).map((B,W)=>({...B,order:W,controls:B.controls.filter(F=>F.visible)}))}function p({id:_,value:A}){let U=!1;const W=c.value.controls.filter(F=>{var V;return((V=F.conditions)==null?void 0:V.some(K=>K.id===_))||!1});if(W!=null&&W.length)return W.forEach(({id:F,conditions:V,visible:K})=>{const z=V.every(Y=>{const{value:G,operator:oe}=Y;return{"==":A===G,"!=":A!==G,">":A>G,"<":A<G}[oe]||!1});K!==z&&(s.setControlVisibility(t,F,z),U=!0)}),U}function S({id:_,value:A}){const U=Number(A||0);let B=!1;const F=c.value.controls.filter(V=>{var K;return V.controlType==="dynamic_array"&&((K=V.itemsLength)==null?void 0:K.controlId)===_});if(F!=null&&F.length)return F.forEach(({id:V,itemsLength:K})=>{(K==null?void 0:K.value)!==U&&(s.setControlItemsLength(t,V,U),B=!0)}),B}const{notify:x}=lg();return r.watch(m,_=>{_.length&&(u&&x({message:_[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),m.value=[])},{deep:!0}),r.watch(c,()=>{k()},{immediate:!0}),{model:d,errorMessages:m,rebuildModel:k,onControlValueUpdate:w}}const ag={key:0,style:{height:"100%"}},ug={class:"q-py-sm"},sg={class:"form-steps-container"},cg={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},fg={class:"controls-container",style:{height:"100%"}},dg={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},hg=ft(r.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const l=t,o=lr(),{model:u,onControlValueUpdate:s}=nc(l.index),c=r.computed(()=>u.value.length),d=r.ref(0),m=r.computed(()=>u.value[d.value]),w=p=>{const S=qe.toPairs(qe.groupBy(p,"row"));return qe.orderBy(S,([x,_])=>Number(x),"asc").map(([x,_])=>({controls:qe.orderBy(_,"col","asc")}))};r.watch(d,p=>{const S=p+1===c.value;o.setOnLastSubstep(S)},{immediate:!0});function k(p){return{input_text:el,input_number:el,checkbox:ns,switch:wh,select:tg,cards_select:hh}[p]||el}return(p,S)=>m.value?(r.openBlock(),r.createElementBlock("div",ag,[r.createElementVNode("div",ug,[r.createVNode(og,{formGroup:m.value,stepsCount:c.value},null,8,["formGroup","stepsCount"])]),r.createElementVNode("div",sg,[r.createElementVNode("div",cg,[r.createElementVNode("div",fg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u),x=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:x.id},[d.value===x.order?(r.openBlock(),r.createBlock(Kd,{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",dg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(w(x.controls),(_,A)=>(r.openBlock(),r.createElementBlock("div",{class:"q-mb-xl",key:A},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(_.controls,(U,B)=>(r.openBlock(),r.createElementBlock("div",{key:B},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(k(U.controlType)),{control:U,modelValue:_.controls[B].value,"onUpdate:modelValue":[W=>_.controls[B].value=W,W=>r.unref(s)(U,x.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):r.createCommentVNode("",!0)],64))),128)),r.createVNode(pm,{currentStep:d.value,stepsCount:c.value,nextDisabled:!m.value.valid,onPrev:S[0]||(S[0]=x=>d.value--),onNext:S[1]||(S[1]=x=>m.value.valid&&d.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),mg={style:{"font-size":"16px","padding-top":"1rem"}},gg={style:{"font-size":"16px","padding-top":"1rem"}},vl=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(Ti,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(ps,{borderless:"","reverse-fill-mask":"",modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=d=>l.value=d),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",mg,r.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",gg,r.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),rc=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(Ti,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(tc,{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}))}}),pg={key:0,style:{height:"100%"}},vg={class:"question-title text-center q-py-sm"},_g={class:"form-steps-container bg-grey-1"},bg={class:"form-container",style:{height:"100%"}},yg={class:"row items-center"},wg={class:"col-12 row"},Sg=ft(r.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const l=t,{model:o,onControlValueUpdate:u}=nc(l.index,{notifyValidations:!1});function s(w){return{input_text:vl,input_number:vl,select:rc,cards_select:rc,checkbox:ns}[w]||vl}const c=w=>qe.orderBy(qe.toPairs(qe.groupBy(w,"row")),"row").map(([k,p])=>({controls:qe.orderBy(p,"col")}));function d(w){return[k=>{var S;let p="";return(S=w.validators)==null||S.some(x=>{const{param:_,validator:A}=x,U=Ru[A];return U.fn(Number(_))({...w,value:k})?!1:(p=U.message,!0)}),!p.length||p}]}const m=lr();return r.onMounted(()=>m.setOnLastSubstep(!0)),(w,k)=>r.unref(o)?(r.openBlock(),r.createElementBlock("div",pg,[r.createElementVNode("div",vg,r.toDisplayString(r.unref(o)[0].title),1),r.createElementVNode("div",_g,[r.createElementVNode("div",bg,[r.createElementVNode("div",yg,[r.createElementVNode("div",wg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c(r.unref(o)[0].controls),(p,S)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(c(r.unref(o)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:S},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.controls,(x,_)=>(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(x.controlType)),{control:x,modelValue:x.value,"onUpdate:modelValue":[A=>x.value=A,A=>r.unref(u)(x,r.unref(o)[0].id)],rules:d(x)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),_l=t=>(r.pushScopeId("data-v-ea1ef607"),t=t(),r.popScopeId(),t),Cg={class:"buttons-container"},xg={class:"max-container"},Eg={key:0,class:"row checkbox justify-end q-my-sm"},kg={style:{"max-width":"650px"}},Og=_l(()=>r.createElementVNode("br",{class:"gt-sm"},null,-1)),Ag={class:"row justify-between q-my-md q-px-md q-pb-xl"},Tg=_l(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Bg={key:1},Rg={key:0,class:"text-black"},Ig=_l(()=>r.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),Mg={key:1,class:"text-black"},Lg=ft(r.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:l}){const{nextStep:o,previousStep:u,currentStep:s,stepsCount:c,nextDisabled:d,onLastSubstep:m}=r.toRefs(lr()),w=l,k=r.ref(!1),p=x=>{},S=()=>{s.value===c.value?w("submit"):o.value()};return(x,_)=>(r.openBlock(),r.createElementBlock("div",Cg,[r.createElementVNode("div",xg,[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("div",Eg,[r.createElementVNode("div",kg,[r.createVNode(ts,{color:"info",class:"checkbox",modelValue:k.value,"onUpdate:modelValue":_[1]||(_[1]=A=>k.value=A)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),Og,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]=A=>p())},"aquí"),r.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",Ag,[r.unref(s)>1?(r.openBlock(),r.createBlock(tn,{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(()=>[Tg]),_:1},8,["onClick"])):(r.openBlock(),r.createElementBlock("div",Bg)),r.createElementVNode("div",null,[!r.unref(d)&&r.unref(m)?(r.openBlock(),r.createBlock(tn,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:S,disable:r.unref(s)===r.unref(c)&&!k.value,flat:"","no-caps":""},{default:r.withCtx(()=>[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("span",Rg,[r.createTextVNode(" Enviar "),Ig])):(r.openBlock(),r.createElementBlock("span",Mg," Siguiente "))]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),ic=r.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:l}){const o=t,u=l,s=r.ref(!1),c=lr(),d=w=>qe.keys(qe.groupBy(w.controls,"group")).length===1;r.watch(()=>o.forms,w=>{const p=new Pu().fromRaw(w);c.setFormSteps(p)},{immediate:!0});function m(){const w=qe.cloneDeep(c.formSteps),p=new Pu().toRaw(w);u("onSubmit",p)}return(w,k)=>(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,(p,S)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:S},[d(p)?r.withDirectives((r.openBlock(),r.createBlock(Sg,{key:0,index:S},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===S+1]]):r.withDirectives((r.openBlock(),r.createBlock(hg,{key:1,index:S,onOnLastStep:k[0]||(k[0]=x=>s.value=x)},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===S+1]])],64))),128))]),r.createVNode(Lg,{onSubmit:m})],64))}}),Pg=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),oc=r.defineComponent({__name:"TestUi",setup(t){const l=r.ref("Test W2W UI!");return(o,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[Pg,r.createElementVNode("h1",null,r.toDisplayString(l.value),1)],64))}}),qg=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 lc(t,l){const o=`{{${l}}}`;try{const u=l.split(".").flatMap(s=>{var m;const c=/(\w+)\[(\d+)\]/g,d=(m=Array.from(s.matchAll(c)))==null?void 0:m[0];return d!=null&&d.length?d.slice(1):s});return(u==null?void 0:u.reduce((s,c)=>(s==null?void 0:s[c])||"",t))||o}catch(u){return console.error(u),o}}function Vg(t,l,o){const u=l.split(".");if(!u.length)return t;const s=u.pop(),c=u.reduce((d,m)=>(d[m]||(d[m]={}),d[m]),t);return c[s]=o,t}const Ng={class:"card"},$g={key:0,class:"card-header"},Dg=["contenteditable"],Fg={class:"card-content"},Ug=["contenteditable"],zg=["contenteditable"],Hg=ft(r.defineComponent({__name:"Card",props:{card:{},data:{}},setup(t){const l=t;function o(c){const d=c.value||lc(l.data,c.key||"");return u(d,c.format)}function u(c,d){return d?d==="currency"?new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}).format(c):d==="percentage"?`${c} %`:c:c}const s=r.inject("editable");return(c,d)=>(r.openBlock(),r.createElementBlock("div",Ng,[c.card.title||c.card.subtitle?(r.openBlock(),r.createElementBlock("div",$g,[c.card.title?(r.openBlock(),r.createElementBlock("h3",{key:0,contenteditable:r.unref(s)},r.toDisplayString(c.card.title),9,Dg)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",Fg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.card.fields,(m,w)=>(r.openBlock(),r.createElementBlock("div",{key:w,class:"card-field"},[r.createElementVNode("span",{contenteditable:r.unref(s),class:"field-label"},r.toDisplayString(m.label),9,Ug),r.createElementVNode("span",{contenteditable:r.unref(s),class:"field-value"},r.toDisplayString(o(m)),9,zg)]))),128))])]))}}),[["__cssModules",{$style:{card:"_card_12eql_1","card-header":"_card-header_12eql_8","card-content":"_card-content_12eql_22","card-field":"_card-field_12eql_22","field-label":"_field-label_12eql_27","field-value":"_field-value_12eql_30"}}]]);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 Wg=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,(d,m)=>(r.openBlock(),r.createBlock(Hg,{key:m,card:d,data:r.unref(o)},null,8,["card","data"]))),128))],4)}}}),[["__cssModules",{$style:{"card-section":"_card-section_1xfbl_2"}}]]),Gg=["src","alt"],jg=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,Gg)],4))}}),[["__cssModules",{$style:{"img-container":"_img-container_17yzt_2"}}]]),Kg=["contenteditable"],Yg=["contenteditable"],Qg="#f5f5f5",Zg=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]||[]]),c=r.inject("editable");return(d,m)=>{var w;return r.openBlock(),r.createElementBlock("table",{style:r.normalizeStyle("width: 100%;"+((w=d.styles)==null?void 0:w.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),k=>(r.openBlock(),r.createElementBlock("th",{key:k.key,style:r.normalizeStyle({textAlign:k.align||"left"}),contenteditable:r.unref(c)},r.toDisplayString(k.header),13,Kg))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(k,p)=>(r.openBlock(),r.createElementBlock("tr",{key:p,style:r.normalizeStyle({backgroundColor:p%2===0?Qg:"transparent"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(o),S=>(r.openBlock(),r.createElementBlock("td",{key:S.key,style:r.normalizeStyle({textAlign:S.align||"left"}),contenteditable:r.unref(c)},r.toDisplayString(k[S.key]),13,Yg))),128))],4))),128))])],4)}}}),[["__cssModules",{$style:{"table-section":"_table-section_aicx8_1"}}]]),bl=Ke({name:"QTooltip",inheritAttrs:!1,props:{...Ts,...rl,...$r,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...$r.transitionShow,default:"jump-down"},transitionHide:{...$r.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Pi},self:{type:String,default:"top middle",validator:Pi},offset:{type:Array,default:()=>[14,14],validator:Us},scrollTarget:Ms,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...il],setup(t,{slots:l,emit:o,attrs:u}){let s,c;const d=r.getCurrentInstance(),{proxy:{$q:m}}=d,w=r.ref(null),k=r.ref(!1),p=r.computed(()=>qi(t.anchor,m.lang.rtl)),S=r.computed(()=>qi(t.self,m.lang.rtl)),x=r.computed(()=>t.persistent!==!0),{registerTick:_,removeTick:A}=ul(),{registerTimeout:U}=Lr(),{transitionProps:B,transitionStyle:W}=al(t),{localScrollTarget:F,changeScrollEvent:V,unconfigureScrollTarget:K}=Rs(t,ge),{anchorEl:z,canShow:Y,anchorEvents:G}=Bs({showing:k,configureAnchorEl:se}),{show:oe,hide:q}=ol({showing:k,canShow:Y,handleShow:te,handleHide:N,hideOnRouteChange:x,processOnMount:!0});Object.assign(G,{delayShow:ce,delayHide:j});const{showPortal:$,hidePortal:Q,renderPortal:O}=ll(d,w,T,"tooltip");if(m.platform.is.mobile===!0){const Z={anchorEl:z,innerRef:w,onClickOutside(fe){return q(fe),fe.target.classList.contains("q-dialog__backdrop")&&We(fe),!0}},pe=r.computed(()=>t.modelValue===null&&t.persistent!==!0&&k.value===!0);r.watch(pe,fe=>{(fe===!0?$s:Li)(Z)}),r.onBeforeUnmount(()=>{Li(Z)})}function te(Z){$(),_(()=>{c=new MutationObserver(()=>le()),c.observe(w.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),le(),ge()}),s===void 0&&(s=r.watch(()=>m.screen.width+"|"+m.screen.height+"|"+t.self+"|"+t.anchor+"|"+m.lang.rtl,le)),U(()=>{$(!0),o("show",Z)},t.transitionDuration)}function N(Z){A(),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),K(),Si(G,"tooltipTemp")}function le(){fl({targetEl:w.value,offset:t.offset,anchorEl:z.value,anchorOrigin:p.value,selfOrigin:S.value,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function ce(Z){if(m.platform.is.mobile===!0){nl(),document.body.classList.add("non-selectable");const pe=z.value,fe=["touchmove","touchcancel","touchend","click"].map(H=>[pe,H,"delayHide","passiveCapture"]);Pr(G,"tooltipTemp",fe)}U(()=>{oe(Z)},t.delay)}function j(Z){m.platform.is.mobile===!0&&(Si(G,"tooltipTemp"),nl(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),U(()=>{q(Z)},t.hideDelay)}function se(){if(t.noParentEvent===!0||z.value===null)return;const Z=m.platform.is.mobile===!0?[[z.value,"touchstart","delayShow","passive"]]:[[z.value,"mouseenter","delayShow","passive"],[z.value,"mouseleave","delayHide","passive"]];Pr(G,"anchor",Z)}function ge(){if(z.value!==null||t.scrollTarget!==void 0){F.value=Ls(z.value,t.scrollTarget);const Z=t.noParentEvent===!0?le:q;V(F.value,Z)}}function R(){return k.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,W.value],role:"tooltip"},ct(l.default)):null}function T(){return r.h(r.Transition,B.value,R)}return r.onBeforeUnmount(ae),Object.assign(d.proxy,{updatePosition:le}),O}}),Xg={class:"section"},Jg={key:0,class:"no-print"},ep={class:"add-btn"},tp=["contenteditable"],np=["contenteditable"],rp={key:0},ip=["contenteditable"],op={key:0,class:"remove-btn no-print"},lp={key:1},ap={class:"p-container"},up=["contenteditable"],sp={key:0,class:"remove-btn no-print"},cp=ft(r.defineComponent({__name:"TextSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{data:o}=Di(l.id,{}),u=r.computed(()=>{var p;return((p=l.content)==null?void 0:p.lines)||[]}),s=r.ref([]),c=r.inject("editable"),d=(p,S,x)=>{if(!S)return m(o.value,p);const _={};return Object.keys(S).forEach(A=>{const U=`${x}.${A}`;Vg(_,U,S[A])}),m(_,p)};r.watch(u,p=>{s.value=qe.cloneDeep(p)},{deep:!0,immediate:!0});function m(p,S){const x=S.match(/{{(.*?)}}/g);return x?x.reduce((_,A)=>{const U=A.replace(/{{|}}/g,"").trim(),B=lc(p,U);return _.replace(A,B??U)},S):S}const w=()=>{if(!(c!=null&&c.value))return;const p=s.value.length,S={type:st.TextLineType.PARAGRAPH,text:"Párrafo "+p};s.value.push(S)},k=p=>{c!=null&&c.value&&s.value.splice(p,1)};return(p,S)=>{var x;return r.openBlock(),r.createElementBlock("div",Xg,[r.unref(c)?(r.openBlock(),r.createElementBlock("div",Jg,[r.createElementVNode("div",ep,[r.createVNode(tn,{size:"sm",round:"",color:"black",onClick:w,icon:"add"},{default:r.withCtx(()=>[r.createVNode(bl,null,{default:r.withCtx(()=>[r.createTextVNode("Agregar párrafo")]),_:1})]),_:1})])])):r.createCommentVNode("",!0),r.createElementVNode("div",{style:r.normalizeStyle(((x=p.styles)==null?void 0:x.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,({type:_,text:A,align:U,sourceCollection:B},W)=>{var F;return r.openBlock(),r.createElementBlock("div",{key:W,style:r.normalizeStyle({textAlign:U||"left"})},[_==="title"?(r.openBlock(),r.createElementBlock("h1",{key:0,contenteditable:r.unref(c)},r.toDisplayString(A),9,tp)):r.createCommentVNode("",!0),_==="subtitle"?(r.openBlock(),r.createElementBlock("h2",{key:1,contenteditable:r.unref(c)},r.toDisplayString(A),9,np)):r.createCommentVNode("",!0),_==="paragraph"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[B&&((F=r.unref(o)[B])==null?void 0:F.length)>0?(r.openBlock(),r.createElementBlock("div",rp,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(o)[B],V=>(r.openBlock(),r.createElementBlock("div",{key:V.id,class:"p-container"},[r.createElementVNode("p",{contenteditable:r.unref(c)},r.toDisplayString(d(A,V,B)),9,ip),r.unref(c)?(r.openBlock(),r.createElementBlock("div",op,[r.createVNode(tn,{size:"sm",round:"",color:"black",onClick:K=>k(W),icon:"delete"},{default:r.withCtx(()=>[r.createVNode(bl,null,{default:r.withCtx(()=>[r.createTextVNode("Eliminar párrafo")]),_:1})]),_:2},1032,["onClick"])])):r.createCommentVNode("",!0)]))),128))])):(r.openBlock(),r.createElementBlock("div",lp,[r.createElementVNode("div",ap,[r.createElementVNode("p",{contenteditable:r.unref(c)},r.toDisplayString(A),9,up),r.unref(c)?(r.openBlock(),r.createElementBlock("div",sp,[r.createVNode(tn,{size:"sm",round:"",color:"black",onClick:V=>k(W),icon:"delete"},{default:r.withCtx(()=>[r.createVNode(bl,null,{default:r.withCtx(()=>[r.createTextVNode("Eliminar párrafo")]),_:1})]),_:2},1032,["onClick"])])):r.createCommentVNode("",!0)])]))],64)):r.createCommentVNode("",!0)],4)}),128))],4)])}}}),[["__cssModules",{$style:{section:"_section_12p9p_1","p-container":"_p-container_12p9p_2","add-btn":"_add-btn_12p9p_6","remove-btn":"_remove-btn_12p9p_13","no-print":"_no-print_12p9p_40"}}]]),fp=r.defineComponent({__name:"SectionWrapper",props:{section:{}},setup(t){const l=t,o={[st.LayoutSectionType.TEXT]:cp,[st.LayoutSectionType.IMAGE]:jg,[st.LayoutSectionType.TABLE]:Zg,[st.LayoutSectionType.CARDS_GRID]:Wg},u=r.computed(()=>l.section.type),s=r.computed(()=>({content:l.section.content,styles:l.section.styles,id:l.section.idDocLaySection}));return(c,d)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o[u.value]),r.normalizeProps(r.guardReactiveProps(s.value)),null,16))}}),ac=ft(r.defineComponent({__name:"SectionsContainer",props:{layout:{},data:{},htmlNodes:{},editable:{type:Boolean}},setup(t){var m;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 k;const w=o.value.sections.map(p=>({type:"default",section:p}));return(k=l.htmlNodes)==null||k.forEach(({index:p,element:S})=>{const x=p>w.length?w.length:p;w.splice(x,0,{type:"html",section:S}),console.log("sections",w[x].section),w[x].section.replace(/\{\{.*?\}\}/g,"")}),w}),d=((m=o.value.styles)==null?void 0:m.cssRaw)||"";return(w,k)=>(r.openBlock(),r.createElementBlock("div",{class:"sections-container",style:r.normalizeStyle(r.unref(d))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,({type:p,section:S})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[p==="default"?(r.openBlock(),r.createBlock(fp,{key:0,section:S},null,8,["section"])):(r.openBlock(),r.createBlock(qg,{key:1,section:S},null,8,["section"]))],64))),256))],4))}}),[["__cssModules",{$style:{"sections-container":"_sections-container_1wrbi_3"}}]]),dp={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",ic),t.component("TestUi",oc),t.component("SectionsContainer",ac)}};Nt.DynamicForm=ic,Nt.SectionsContainer=ac,Nt.TestUi=oc,Nt.default=dp,Object.defineProperties(Nt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
27
+ }`;var we=Ad(function(){return Oe(g,ue+"return "+D).apply(i,v)});if(we.source=D,Aa(we))throw we;return we}function Aw(e){return Be(e).toLowerCase()}function Bw(e){return Be(e).toUpperCase()}function Tw(e,n,o){if(e=Be(e),e&&(o||n===i))return Pc(e);if(!e||!(n=xt(n)))return e;var a=Wt(e),f=Wt(n),g=Vc(a,f),v=Nc(a,f)+1;return In(a,g,v).join("")}function Rw(e,n,o){if(e=Be(e),e&&(o||n===i))return e.slice(0,Dc(e)+1);if(!e||!(n=xt(n)))return e;var a=Wt(e),f=Nc(a,Wt(n))+1;return In(a,0,f).join("")}function Iw(e,n,o){if(e=Be(e),e&&(o||n===i))return e.replace(jr,"");if(!e||!(n=xt(n)))return e;var a=Wt(e),f=Vc(a,Wt(n));return In(a,f).join("")}function Mw(e,n){var o=$,a=Y;if(De(n)){var f="separator"in n?n.separator:f;o="length"in n?be(n.length):o,a="omission"in n?xt(n.omission):a}e=Be(e);var g=e.length;if(wr(e)){var v=Wt(e);g=v.length}if(o>=g)return e;var y=o-Sr(a);if(y<1)return a;var x=v?In(v,0,y).join(""):e.slice(0,y);if(f===i)return x+a;if(v&&(y+=x.length-y),Ba(f)){if(e.slice(y).search(f)){var L,q=x;for(f.global||(f=Wl(f.source,Be(on.exec(f))+"g")),f.lastIndex=0;L=f.exec(q);)var D=L.index;x=x.slice(0,D===i?y:D)}}else if(e.indexOf(xt(f),y)!=y){var ee=x.lastIndexOf(f);ee>-1&&(x=x.slice(0,ee))}return x+a}function Lw(e){return e=Be(e),e&&yl.test(e)?e.replace(Wr,sv):e}var qw=Br(function(e,n,o){return e+(o?" ":"")+n.toUpperCase()}),Ia=Bf("toUpperCase");function Od(e,n,o){return e=Be(e),n=o?i:n,n===i?ov(e)?dv(e):Qp(e):e.match(n)||[]}var Ad=Se(function(e,n){try{return St(e,i,n)}catch(o){return Aa(o)?o:new _e(o)}}),Pw=cn(function(e,n){return Rt(n,function(o){o=Jt(o),un(e,o,Ea(e[o],e))}),e});function Vw(e){var n=e==null?0:e.length,o=fe();return e=n?Ne(e,function(a){if(typeof a[1]!="function")throw new It(d);return[o(a[0]),a[1]]}):[],Se(function(a){for(var f=-1;++f<n;){var g=e[f];if(St(g[0],this,a))return St(g[1],this,a)}})}function Nw(e){return s0(Lt(e,w))}function Ma(e){return function(){return e}}function $w(e,n){return e==null||e!==e?n:e}var Dw=Rf(),Fw=Rf(!0);function vt(e){return e}function La(e){return af(typeof e=="function"?e:Lt(e,w))}function zw(e){return sf(Lt(e,w))}function Uw(e,n){return cf(e,Lt(n,w))}var Hw=Se(function(e,n){return function(o){return ro(o,e,n)}}),Ww=Se(function(e,n){return function(o){return ro(e,o,n)}});function qa(e,n,o){var a=Xe(n),f=yi(n,a);o==null&&!(De(n)&&(f.length||!a.length))&&(o=n,n=e,e=this,f=yi(n,Xe(n)));var g=!(De(o)&&"chain"in o)||!!o.chain,v=dn(e);return Rt(f,function(y){var x=n[y];e[y]=x,v&&(e.prototype[y]=function(){var L=this.__chain__;if(g||L){var q=e(this.__wrapped__),D=q.__actions__=mt(this.__actions__);return D.push({func:x,args:arguments,thisArg:e}),q.__chain__=L,q}return x.apply(e,En([this.value()],arguments))})}),e}function Gw(){return tt._===this&&(tt._=_v),this}function Pa(){}function jw(e){return e=be(e),Se(function(n){return ff(n,e)})}var Kw=ha(Ne),Qw=ha(Rc),Yw=ha(Nl);function Bd(e){return ba(e)?$l(Jt(e)):E0(e)}function Zw(e){return function(n){return e==null?i:Jn(e,n)}}var Xw=Mf(),Jw=Mf(!0);function Va(){return[]}function Na(){return!1}function eS(){return{}}function tS(){return""}function nS(){return!0}function rS(e,n){if(e=be(e),e<1||e>se)return[];var o=R,a=ot(e,R);n=fe(n),e-=R;for(var f=zl(a,n);++o<e;)n(o);return f}function oS(e){return ye(e)?Ne(e,Jt):kt(e)?[e]:mt(Qf(Be(e)))}function iS(e){var n=++pv;return Be(e)+n}var lS=ki(function(e,n){return e+n},0),aS=ma("ceil"),uS=ki(function(e,n){return e/n},1),sS=ma("floor");function cS(e){return e&&e.length?_i(e,vt,Jl):i}function fS(e,n){return e&&e.length?_i(e,fe(n,2),Jl):i}function dS(e){return Lc(e,vt)}function hS(e,n){return Lc(e,fe(n,2))}function mS(e){return e&&e.length?_i(e,vt,ra):i}function gS(e,n){return e&&e.length?_i(e,fe(n,2),ra):i}var pS=ki(function(e,n){return e*n},1),vS=ma("round"),_S=ki(function(e,n){return e-n},0);function yS(e){return e&&e.length?Fl(e,vt):0}function bS(e,n){return e&&e.length?Fl(e,fe(n,2)):0}return m.after=zy,m.ary=ld,m.assign=Bb,m.assignIn=bd,m.assignInWith=Ni,m.assignWith=Tb,m.at=Rb,m.before=ad,m.bind=Ea,m.bindAll=Pw,m.bindKey=ud,m.castArray=eb,m.chain=rd,m.chunk=s_,m.compact=c_,m.concat=f_,m.cond=Vw,m.conforms=Nw,m.constant=Ma,m.countBy=yy,m.create=Ib,m.curry=sd,m.curryRight=cd,m.debounce=fd,m.defaults=Mb,m.defaultsDeep=Lb,m.defer=Uy,m.delay=Hy,m.difference=d_,m.differenceBy=h_,m.differenceWith=m_,m.drop=g_,m.dropRight=p_,m.dropRightWhile=v_,m.dropWhile=__,m.fill=y_,m.filter=wy,m.flatMap=xy,m.flatMapDeep=ky,m.flatMapDepth=Ey,m.flatten=Jf,m.flattenDeep=b_,m.flattenDepth=w_,m.flip=Wy,m.flow=Dw,m.flowRight=Fw,m.fromPairs=S_,m.functions=Fb,m.functionsIn=zb,m.groupBy=Oy,m.initial=x_,m.intersection=k_,m.intersectionBy=E_,m.intersectionWith=O_,m.invert=Hb,m.invertBy=Wb,m.invokeMap=By,m.iteratee=La,m.keyBy=Ty,m.keys=Xe,m.keysIn=pt,m.map=Ii,m.mapKeys=jb,m.mapValues=Kb,m.matches=zw,m.matchesProperty=Uw,m.memoize=Li,m.merge=Qb,m.mergeWith=wd,m.method=Hw,m.methodOf=Ww,m.mixin=qa,m.negate=qi,m.nthArg=jw,m.omit=Yb,m.omitBy=Zb,m.once=Gy,m.orderBy=Ry,m.over=Kw,m.overArgs=jy,m.overEvery=Qw,m.overSome=Yw,m.partial=Oa,m.partialRight=dd,m.partition=Iy,m.pick=Xb,m.pickBy=Sd,m.property=Bd,m.propertyOf=Zw,m.pull=R_,m.pullAll=td,m.pullAllBy=I_,m.pullAllWith=M_,m.pullAt=L_,m.range=Xw,m.rangeRight=Jw,m.rearg=Ky,m.reject=qy,m.remove=q_,m.rest=Qy,m.reverse=xa,m.sampleSize=Vy,m.set=ew,m.setWith=tw,m.shuffle=Ny,m.slice=P_,m.sortBy=Fy,m.sortedUniq=U_,m.sortedUniqBy=H_,m.split=xw,m.spread=Yy,m.tail=W_,m.take=G_,m.takeRight=j_,m.takeRightWhile=K_,m.takeWhile=Q_,m.tap=cy,m.throttle=Zy,m.thru=Ri,m.toArray=vd,m.toPairs=Cd,m.toPairsIn=xd,m.toPath=oS,m.toPlainObject=yd,m.transform=nw,m.unary=Xy,m.union=Y_,m.unionBy=Z_,m.unionWith=X_,m.uniq=J_,m.uniqBy=ey,m.uniqWith=ty,m.unset=rw,m.unzip=ka,m.unzipWith=nd,m.update=ow,m.updateWith=iw,m.values=Ir,m.valuesIn=lw,m.without=ny,m.words=Od,m.wrap=Jy,m.xor=ry,m.xorBy=oy,m.xorWith=iy,m.zip=ly,m.zipObject=ay,m.zipObjectDeep=uy,m.zipWith=sy,m.entries=Cd,m.entriesIn=xd,m.extend=bd,m.extendWith=Ni,qa(m,m),m.add=lS,m.attempt=Ad,m.camelCase=cw,m.capitalize=kd,m.ceil=aS,m.clamp=aw,m.clone=tb,m.cloneDeep=rb,m.cloneDeepWith=ob,m.cloneWith=nb,m.conformsTo=ib,m.deburr=Ed,m.defaultTo=$w,m.divide=uS,m.endsWith=fw,m.eq=jt,m.escape=dw,m.escapeRegExp=hw,m.every=by,m.find=Sy,m.findIndex=Zf,m.findKey=qb,m.findLast=Cy,m.findLastIndex=Xf,m.findLastKey=Pb,m.floor=sS,m.forEach=od,m.forEachRight=id,m.forIn=Vb,m.forInRight=Nb,m.forOwn=$b,m.forOwnRight=Db,m.get=Ta,m.gt=lb,m.gte=ab,m.has=Ub,m.hasIn=Ra,m.head=ed,m.identity=vt,m.includes=Ay,m.indexOf=C_,m.inRange=uw,m.invoke=Gb,m.isArguments=nr,m.isArray=ye,m.isArrayBuffer=ub,m.isArrayLike=gt,m.isArrayLikeObject=Ue,m.isBoolean=sb,m.isBuffer=Mn,m.isDate=cb,m.isElement=fb,m.isEmpty=db,m.isEqual=hb,m.isEqualWith=mb,m.isError=Aa,m.isFinite=gb,m.isFunction=dn,m.isInteger=hd,m.isLength=Pi,m.isMap=md,m.isMatch=pb,m.isMatchWith=vb,m.isNaN=_b,m.isNative=yb,m.isNil=wb,m.isNull=bb,m.isNumber=gd,m.isObject=De,m.isObjectLike=ze,m.isPlainObject=so,m.isRegExp=Ba,m.isSafeInteger=Sb,m.isSet=pd,m.isString=Vi,m.isSymbol=kt,m.isTypedArray=Rr,m.isUndefined=Cb,m.isWeakMap=xb,m.isWeakSet=kb,m.join=A_,m.kebabCase=mw,m.last=Pt,m.lastIndexOf=B_,m.lowerCase=gw,m.lowerFirst=pw,m.lt=Eb,m.lte=Ob,m.max=cS,m.maxBy=fS,m.mean=dS,m.meanBy=hS,m.min=mS,m.minBy=gS,m.stubArray=Va,m.stubFalse=Na,m.stubObject=eS,m.stubString=tS,m.stubTrue=nS,m.multiply=pS,m.nth=T_,m.noConflict=Gw,m.noop=Pa,m.now=Mi,m.pad=vw,m.padEnd=_w,m.padStart=yw,m.parseInt=bw,m.random=sw,m.reduce=My,m.reduceRight=Ly,m.repeat=ww,m.replace=Sw,m.result=Jb,m.round=vS,m.runInContext=S,m.sample=Py,m.size=$y,m.snakeCase=Cw,m.some=Dy,m.sortedIndex=V_,m.sortedIndexBy=N_,m.sortedIndexOf=$_,m.sortedLastIndex=D_,m.sortedLastIndexBy=F_,m.sortedLastIndexOf=z_,m.startCase=kw,m.startsWith=Ew,m.subtract=_S,m.sum=yS,m.sumBy=bS,m.template=Ow,m.times=rS,m.toFinite=hn,m.toInteger=be,m.toLength=_d,m.toLower=Aw,m.toNumber=Vt,m.toSafeInteger=Ab,m.toString=Be,m.toUpper=Bw,m.trim=Tw,m.trimEnd=Rw,m.trimStart=Iw,m.truncate=Mw,m.unescape=Lw,m.uniqueId=iS,m.upperCase=qw,m.upperFirst=Ia,m.each=od,m.eachRight=id,m.first=ed,qa(m,function(){var e={};return Zt(m,function(n,o){Re.call(m.prototype,o)||(e[o]=n)}),e}(),{chain:!1}),m.VERSION=u,Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){m[e].placeholder=m}),Rt(["drop","take"],function(e,n){xe.prototype[e]=function(o){o=o===i?1:Ze(be(o),0);var a=this.__filtered__&&!n?new xe(this):this.clone();return a.__filtered__?a.__takeCount__=ot(o,a.__takeCount__):a.__views__.push({size:ot(o,R),type:e+(a.__dir__<0?"Right":"")}),a},xe.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),Rt(["filter","map","takeWhile"],function(e,n){var o=n+1,a=o==V||o==ae;xe.prototype[e]=function(f){var g=this.clone();return g.__iteratees__.push({iteratee:fe(f,3),type:o}),g.__filtered__=g.__filtered__||a,g}}),Rt(["head","last"],function(e,n){var o="take"+(n?"Right":"");xe.prototype[e]=function(){return this[o](1).value()[0]}}),Rt(["initial","tail"],function(e,n){var o="drop"+(n?"":"Right");xe.prototype[e]=function(){return this.__filtered__?new xe(this):this[o](1)}}),xe.prototype.compact=function(){return this.filter(vt)},xe.prototype.find=function(e){return this.filter(e).head()},xe.prototype.findLast=function(e){return this.reverse().find(e)},xe.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new xe(this):this.map(function(o){return ro(o,e,n)})}),xe.prototype.reject=function(e){return this.filter(qi(fe(e)))},xe.prototype.slice=function(e,n){e=be(e);var o=this;return o.__filtered__&&(e>0||n<0)?new xe(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),n!==i&&(n=be(n),o=n<0?o.dropRight(-n):o.take(n-e)),o)},xe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},xe.prototype.toArray=function(){return this.take(R)},Zt(xe.prototype,function(e,n){var o=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),f=m[a?"take"+(n=="last"?"Right":""):n],g=a||/^find/.test(n);f&&(m.prototype[n]=function(){var v=this.__wrapped__,y=a?[1]:arguments,x=v instanceof xe,L=y[0],q=x||ye(v),D=function(Ce){var ke=f.apply(m,En([Ce],y));return a&&ee?ke[0]:ke};q&&o&&typeof L=="function"&&L.length!=1&&(x=q=!1);var ee=this.__chain__,ue=!!this.__actions__.length,de=g&&!ee,we=x&&!ue;if(!g&&q){v=we?v:new xe(this);var he=e.apply(v,y);return he.__actions__.push({func:Ri,args:[D],thisArg:i}),new Mt(he,ee)}return de&&we?e.apply(this,y):(he=this.thru(D),de?a?he.value()[0]:he.value():he)})}),Rt(["pop","push","shift","sort","splice","unshift"],function(e){var n=ri[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);m.prototype[e]=function(){var f=arguments;if(a&&!this.__chain__){var g=this.value();return n.apply(ye(g)?g:[],f)}return this[o](function(v){return n.apply(ye(v)?v:[],f)})}}),Zt(xe.prototype,function(e,n){var o=m[n];if(o){var a=o.name+"";Re.call(Er,a)||(Er[a]=[]),Er[a].push({name:n,func:o})}}),Er[xi(i,G).name]=[{name:"wrapper",func:i}],xe.prototype.clone=Lv,xe.prototype.reverse=qv,xe.prototype.value=Pv,m.prototype.at=fy,m.prototype.chain=dy,m.prototype.commit=hy,m.prototype.next=my,m.prototype.plant=py,m.prototype.reverse=vy,m.prototype.toJSON=m.prototype.valueOf=m.prototype.value=_y,m.prototype.first=m.prototype.head,Yr&&(m.prototype[Yr]=gy),m},Cr=hv();Kn?((Kn.exports=Cr)._=Cr,Ll._=Cr):tt._=Cr}).call(pe)}(co,co.exports);var Pe=co.exports,ft={},$a={},rr={};Object.defineProperty(rr,"__esModule",{value:!0}),rr.EstadoCaptacion=rr.TipoCaptacion=void 0;var Da;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5"})(Da||(rr.TipoCaptacion=Da={}));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||(rr.EstadoCaptacion=Fa={}));var fo={};Object.defineProperty(fo,"__esModule",{value:!0}),fo.TipoGarantia=void 0;var za;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(za||(fo.TipoGarantia=za={}));var ho={};Object.defineProperty(ho,"__esModule",{value:!0}),ho.TipoImportacion=void 0;var Ua;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(Ua||(ho.TipoImportacion=Ua={}));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 mo={};Object.defineProperty(mo,"__esModule",{value:!0}),mo.TipoNotificacion=void 0;var ja;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(ja||(mo.TipoNotificacion=ja={}));var go={};Object.defineProperty(go,"__esModule",{value:!0}),go.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||(go.EstadoPedido=Ka={}));var or={};Object.defineProperty(or,"__esModule",{value:!0}),or.TipoProducto=or.EstadoProducto=void 0;var Qa;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(Qa||(or.EstadoProducto=Qa={}));var Ya;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(Ya||(or.TipoProducto=Ya={}));var po={};Object.defineProperty(po,"__esModule",{value:!0}),po.EstadoBase=void 0;var Za;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(Za||(po.EstadoBase=Za={})),function(t){var l=pe&&pe.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(s,c);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,h)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),i=pe&&pe.__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}),i(rr,t),i(fo,t),i(ho,t),i(gn,t),i(mo,t),i(go,t),i(or,t),i(po,t)}($a);var Xa={},Ja={},eu={};Object.defineProperty(eu,"__esModule",{value:!0}),function(t){var l=pe&&pe.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(s,c);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,h)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),i=pe&&pe.__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}),i(eu,t)}(Ja);var tu={},vo={};Object.defineProperty(vo,"__esModule",{value:!0}),vo.LAYOUT_COLUMNA_TYPES=void 0,vo.LAYOUT_COLUMNA_TYPES=["texto","numero","fecha"],function(t){var l=pe&&pe.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(s,c);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,h)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),i=pe&&pe.__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}),i(vo,t)}(tu);var nu={},pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.LAYOUT_SECTION_TYPES=pn.LayoutSectionType=pn.TextLineType=void 0;var ru;(function(t){t.TITLE="title",t.SUBTITLE="subtitle",t.PARAGRAPH="paragraph"})(ru||(pn.TextLineType=ru={}));var ir;(function(t){t.TEXT="text",t.TABLE="table",t.CARDS_GRID="cards-grid",t.IMAGE="image"})(ir||(pn.LayoutSectionType=ir={})),pn.LAYOUT_SECTION_TYPES=[ir.TEXT,ir.CARDS_GRID,ir.TABLE,ir.IMAGE],function(t){var l=pe&&pe.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(s,c);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,h)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),i=pe&&pe.__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}),i(pn,t)}(nu);var ou={},lr={};Object.defineProperty(lr,"__esModule",{value:!0}),lr.COMISION_SOURCE_ENTITIES=lr.TipoComision=void 0;var iu;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(iu||(lr.TipoComision=iu={})),lr.COMISION_SOURCE_ENTITIES=["captacion","pedido","producto","propuesta","importacion"];var lu={};Object.defineProperty(lu,"__esModule",{value:!0});var _o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.TipoLiquidacion=void 0;var au;(function(t){t.SOLICITUD_CLIENTE="solicitud_cliente",t.RED_COMERCIAL="red_comercial"})(au||(_o.TipoLiquidacion=au={}));var At={};Object.defineProperty(At,"__esModule",{value:!0}),At.TABLES=At.TABLES_FIELDS=At.SOURCES=At.LOGIC_OPERATORS=At.RULE_OPERATORS=void 0,At.RULE_OPERATORS=["==","!=","<",">","IN"],At.LOGIC_OPERATORS=["AND","OR"],At.SOURCES=["IMPORTACION","TABLA","CONTENEDOR"],At.TABLES_FIELDS={PRODUCTOS:["TIPO","NOMBRE","DESCRIPCION","ID_GAMA","ESTADO","TAGS","ID_PRODUCTO","PROPS","CODIGO_EXTERNO"],CAPTACION:["ESTADO","TIPO","CAPTADO","ID_CAPTACION","FECHA_CAPTADO","COD_CLIENTE","COD_PROVEEDOR"]},At.TABLES=[{label:"PRODUCTOS",value:"PRODUCTOS"},{label:"CAPTACIONES",value:"CAPTACION"}],function(t){var l=pe&&pe.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(s,c);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,h)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),i=pe&&pe.__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}),i(lr,t),i(lu,t),i(_o,t),i(At,t)}(ou);var uu={},yo={};Object.defineProperty(yo,"__esModule",{value:!0}),yo.OPERATORS=void 0,yo.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var ar={};Object.defineProperty(ar,"__esModule",{value:!0}),ar.ControlType=ar.GAMA_PROP_CONTROL_TYPES=void 0,ar.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 su;(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"})(su||(ar.ControlType=su={}));var cu={};Object.defineProperty(cu,"__esModule",{value:!0});var fu={};Object.defineProperty(fu,"__esModule",{value:!0});var du={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0,t.GamaPropValidatorsMap={required:{fn:()=>i=>i.value!==null&&i.value!==void 0&&i.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:i=>u=>{if(typeof u.value=="number")return(u.value||0)>=i;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length>=i:s.length>=i}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:i=>u=>{if(typeof u.value=="number")return(u.value||0)<=i;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length<=i:(s||"").length<=i}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>i=>/^[0-9]*$/.test(String(i.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>i=>i.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(i.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>i=>i.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(i.value)||"")||/^www\.[^ "]+$/.test(String(i.value)||""):!0,message:"La URL no es válida",label:"URL"}};var l;(function(i){i.REQUERIDO="required",i.MINIMO="min",i.MAXIMO="max",i.SOLO_NUMEROS="onlyNumbers",i.EMAIL="email",i.URL="url"})(l||(t.PropValidatorKeys=l={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([i,u])=>({value:i,...u}))})(du);var hu={};Object.defineProperty(hu,"__esModule",{value:!0}),function(t){var l=pe&&pe.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(s,c);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,h)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),i=pe&&pe.__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}),i(yo,t),i(ar,t),i(cu,t),i(fu,t),i(du,t),i(hu,t)}(uu);var mu={},gu={};Object.defineProperty(gu,"__esModule",{value:!0});var pu={};Object.defineProperty(pu,"__esModule",{value:!0});var vu={};Object.defineProperty(vu,"__esModule",{value:!0});var _u={};Object.defineProperty(_u,"__esModule",{value:!0});var yu={};Object.defineProperty(yu,"__esModule",{value:!0});var bu={};Object.defineProperty(bu,"__esModule",{value:!0});var wu={};Object.defineProperty(wu,"__esModule",{value:!0});var Su={};Object.defineProperty(Su,"__esModule",{value:!0});var Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});var xu={};Object.defineProperty(xu,"__esModule",{value:!0});var ku={};Object.defineProperty(ku,"__esModule",{value:!0});var Eu={};Object.defineProperty(Eu,"__esModule",{value:!0});var Ou={};Object.defineProperty(Ou,"__esModule",{value:!0}),function(t){var l=pe&&pe.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(s,c);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,h)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),i=pe&&pe.__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}),i(gu,t),i(pu,t),i(vu,t),i(_u,t),i(yu,t),i(bu,t),i(wu,t),i(Su,t),i(Cu,t),i(xu,t),i(ku,t),i(Eu,t),i(Ou,t)}(mu);var Au={},Bu={};Object.defineProperty(Bu,"__esModule",{value:!0}),function(t){var l=pe&&pe.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(s,c);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,h)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),i=pe&&pe.__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}),i(Bu,t)}(Au),function(t){var l=pe&&pe.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(s,c);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,h)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),i=pe&&pe.__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}),i(Ja,t),i(tu,t),i(nu,t),i(ou,t),i(uu,t),i(mu,t),i(Au,t)}(Xa),function(t){var l=pe&&pe.__createBinding||(Object.create?function(u,s,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(s,c);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,d,h)}:function(u,s,c,d){d===void 0&&(d=c),u[d]=s[c]}),i=pe&&pe.__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}),i($a,t),i(Xa,t)}(ft);const $i=[ft.ControlType.DYNAMIC_ARRAY,ft.ControlType.OBJECT],Id={maxControlsPerGroup:1,notifyValidations:!0},Tu={required:{fn:()=>t=>{var l;if(t.controlType===ft.ControlType.LOCATION){const{value:i}=t.value;return Pe.values(Pe.omit(i,"catastro")).every(u=>!Pe.isNil(u)&&u!=="")&&(i!=null&&i.catastro?Md(i==null?void 0:i.catastro):!0)}return t.controlType===ft.ControlType.DYNAMIC_ARRAY||t.multiple?(((l=t.value)==null?void 0:l.length)||0)>0:!Pe.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>l=>Ru(l,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>l=>Ru(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 Ru(t,l,i){const u={">":(s,c)=>s>c,"<":(s,c)=>s<c,">=":(s,c)=>s>=c,"<=":(s,c)=>s<=c}[l];if(t.controlType===ft.ControlType.NUMBER){const s=Number(t.value);return u(s,i)}if(t.controlType===ft.ControlType.TEXT){const s=(t.value||"").length;return u(s,i)}if([ft.ControlType.CARDS_SELECT,ft.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,i)}return!1}function Md(t){return/^[A-Za-z0-9]{20}$/.test(t)}function Ld(t){const l=[];t.controls.forEach((u,s)=>{const c=qd(u);l.push(...c);const d=!c.length;t.controls[s].valid=d});const i=!l.length;return t.valid=i,l}function qd(t){const l=[];return t.validators&&t.validators.forEach(i=>{const{validator:u,param:s}=i,c=Tu[u]||null;c&&(c.fn(Number(s))(t)||l.push(c.message))}),l}function Pd(t,l,i){return l.controlType==="dynamic_array"?Vd(t,l,i):l.controlType==="object"?Iu(t,l,i):[]}function Vd(t,l,i){var c,d;const u=[],s=((c=l.itemsLength)==null?void 0:c.value)||0;for(let h=0;h<s;h++){const b=Iu({...t,title:`${t.title} ${h+1}`},{...l,value:(d=l.value)==null?void 0:d[h]},i);b.forEach(E=>{E.controls.forEach(p=>{p.code=`${h}.${p.code}`})}),u.push(...b)}return u}function Iu(t,l,i){const u=l.structure;return Pe.chunk(u,i).map(c=>({...t,controls:Mu(c).map(d=>{var h;return{...d,id:l.id,value:((h=l.value)==null?void 0:h[d.code])||d.value}})}))}function Nd(t){return Pe.chain(t).groupBy("group").toPairs().orderBy(([i,u])=>i).map(([i,u])=>{var d;const s=((d=u.find(h=>{var b;return!!((b=h.title)!=null&&b.trim())}))==null?void 0:d.title)||"",c=u[0].group;return{title:s,controls:u,order:c,visible:!0,valid:u.every(h=>h.valid),id:""}}).value()}function $d(t){return t.map(l=>({...l,valid:!1,controls:Mu(l.controls)}))}function Mu(t){return t.map(l=>{var i,u,s;return{...l,valid:!((i=l.validators)!=null&&i.length),visible:!((u=l.conditions)!=null&&u.length),value:Dd(l),itemsLength:l.controlType==="dynamic_array"?{...l.itemsLength,value:((s=l.itemsLength)==null?void 0:s.default)||1}:null}})}function Dd(t){if(!Pe.isNil(t.defaultValue))return t.defaultValue;switch(t.controlType){case"input_text":return"";case"input_number":return null;case"select":return t.multiple?[]:"";case"cards_select":return t.multiple?[]:"";case"checkbox":return null;case"switch":return null;case"location":return{};case"dynamic_array":return[];case"object":return{};default:return""}}const ur=Rd.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=$d(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,l){const{id:i,value:u,code:s}=l,c=this.formSteps[t].controls.find(d=>d.id===i);c&&($i.includes(c.controlType)?Pe.set(c.value,s,u):c.value=u)},setControlVisibility(t,l,i){const u=this.formSteps[t].controls.find(s=>s.id===l);u&&(u.visible=i)},setControlItemsLength(t,l,i){const u=this.formSteps[t].controls.find(s=>s.id===l);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=i)},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 Lu{toRaw(l){return l.flatMap(s=>s.controls).filter(s=>s.visible).map(s=>({ID_CUESTIONARIO_PREGUNTA:s.id,RESPUESTA:this.formatValue(s)}))}fromRaw(l){return Pe.orderBy(l,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,c=u.ORDEN,d=u.DESCRIPCION,h=u.CLAVE,b=u.ID_CUESTIONARIO,E=u.PREGUNTAS.filter(p=>p.ESTADO===1).map(p=>this.parseControl(p));return{title:s,order:c,text:d,controls:E,name:h,id:b}})}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:i,value:u,structure:s}=l,c=(d,h)=>h.controlType==="input_number"&&d!==null&&d!==void 0&&d!==""&&typeof d=="string";return c(u,l)?parseFloat(u.replaceAll(".","")):(i==="object"&&s.forEach(d=>{const h=u[d.code];c(h,d)&&(u[d.code]=parseFloat(h==null?void 0:h.replaceAll(".","")))}),u)}}function bo(t,l,i,u){return Object.defineProperty(t,l,{get:i,set:u,enumerable:!0}),t}const vn=r.ref(!1);let Di;function Fd(t,l){const i=/(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:i[5]||i[3]||i[1]||"",version:i[4]||i[2]||"0",platform:l[0]||""}}function zd(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 qu="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Ud(t){const l=t.toLowerCase(),i=zd(l),u=Fd(l,i),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&&(Di={is:{...s}}),qu===!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 d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:d,[d]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const Pu=navigator.userAgent||navigator.vendor||window.opera,Hd={has:{touch:!1,webStorage:!1},within:{iframe:!1}},_t={userAgent:Pu,is:Ud(Pu),has:{touch:qu},within:{iframe:window.self!==window.top}},Fi={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;bo(_t.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(Fi,_t),vn.value===!0&&(Object.assign(Fi,Di,Hd),Di=null)}function We(t){return r.markRaw(r.defineComponent(t))}function Vu(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 i,u;if(t.constructor===Array){if(i=t.length,i!==l.length)return!1;for(u=i;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(i=t.length,i!==l.length)return!1;for(u=i;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(i=s.length,i!==Object.keys(l).filter(c=>l[c]!==void 0).length)return!1;for(u=i;u--!==0;){const c=s[u];if(en(t[c],l[c])!==!0)return!1}return!0}return t!==t&&l!==l}const Nu={threshold:0,root:null,rootMargin:"0px"};function $u(t,l,i){let u,s,c;typeof i=="function"?(u=i,s=Nu,c=l.cfg===void 0):(u=i.handler,s=Object.assign({},Nu,i.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(([d])=>{if(typeof l.handler=="function"){if(d.rootBounds===null&&document.body.contains(t)===!0){l.observer.unobserve(t),l.observer.observe(t);return}(l.handler(d,l.observer)===!1||l.once===!0&&d.isIntersecting===!0)&&Du(t)}},s),l.observer.observe(t))}function Du(t){const l=t.__qvisible;l!==void 0&&(l.observer!==void 0&&l.observer.unobserve(t),delete t.__qvisible)}const Wd=Vu({name:"intersection",mounted(t,{modifiers:l,value:i}){const u={once:l.once===!0};$u(t,u,i),t.__qvisible=u},updated(t,l){const i=t.__qvisible;i!==void 0&&$u(t,i,l.value)},beforeUnmount:Du});function lt(t,l){return t!==void 0&&t()||l}function Gd(t,l){if(t!==void 0){const i=t();if(i!=null)return i.slice()}return l}function Ln(t,l){return t!==void 0?l.concat(t()):l}function jd(t,l){return t===void 0?l:l!==void 0?l.concat(t()):t()}function Fu(t,l,i,u,s,c){l.key=u+s;const d=r.h(t,l,i);return s===!0?r.withDirectives(d,c()):d}const Kd=We({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:i}){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:b,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:b),c=r.computed(()=>t.disable!==!0&&(vn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),d=r.computed(()=>[[Wd,s.value,void 0,{once:t.once}]]),h=r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function b(p){u.value!==p.isIntersecting&&(u.value=p.isIntersecting,t.onVisibility!==void 0&&i("visibility",u.value))}function E(){if(u.value===!0)return[r.h("div",{key:"content",style:h.value},lt(l.default))];if(l.hidden!==void 0)return[r.h("div",{key:"hidden",style:h.value},l.hidden())]}return()=>{const p=t.transition?[r.h(r.Transition,{name:"q-transition--"+t.transition},E)]:E();return Fu(t.tag,{class:"q-intersection"},p,"main",c.value,()=>d.value)}}}),zi={xs:18,sm:24,md:32,lg:38,xl:46},wo={size:String};function So(t,l=zi){return r.computed(()=>t.size!==void 0?{fontSize:t.size in l?`${l[t.size]}px`:t.size}:null)}const Qd={size:{type:[String,Number],default:"1em"},color:String};function Yd(t){return{cSize:r.computed(()=>t.size in zi?`${zi[t.size]}px`:t.size),classes:r.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const Ui=We({name:"QSpinner",props:{...Qd,thickness:{type:Number,default:5}},setup(t){const{cSize:l,classes:i}=Yd(t);return()=>r.h("svg",{class:i.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"})])}}),Zd={ratio:[String,Number]};function Xd(t,l){return r.computed(()=>{const i=Number(t.ratio||(l!==void 0?l.value:void 0));return isNaN(i)!==!0&&i>0?{paddingBottom:`${100/i}%`}:null})}function Hi(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 zu(t){return t.appContext.config.globalProperties.$router!==void 0}function Mr(t){return t.isUnmounted===!0||t.isDeactivated===!0}function Lr(){let t=null;const l=r.getCurrentInstance();function i(){t!==null&&(clearTimeout(t),t=null)}return r.onDeactivated(i),r.onBeforeUnmount(i),{removeTimeout:i,registerTimeout(u,s){i(),Mr(l)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const Jd=We({name:"QImg",props:{...Zd,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:i}){const u=r.ref(t.initialRatio),s=Xd(t,u),c=r.getCurrentInstance(),{registerTimeout:d,removeTimeout:h}=Lr(),{registerTimeout:b,removeTimeout:E}=Lr(),p=r.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),w=r.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),k=[r.ref(null),r.ref(p.value)],C=r.ref(0),B=r.ref(!1),U=r.ref(!1),T=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 Q(){if(E(),t.loadingShowDelay===0){B.value=!0;return}b(()=>{B.value=!0},t.loadingShowDelay)}function H(){E(),B.value=!1}function K({target:O}){Mr(c)===!1&&(h(),u.value=O.naturalHeight===0?.5:O.naturalWidth/O.naturalHeight,j(O,1))}function j(O,te){te===1e3||Mr(c)===!0||(O.complete===!0?ie(O):d(()=>{j(O,te+1)},50))}function ie(O){Mr(c)!==!0&&(C.value=C.value^1,k[C.value].value=null,H(),O.getAttribute("__qerror")!=="true"&&(U.value=!1),i("load",O.currentSrc||O.src))}function P(O){h(),H(),U.value=!0,k[C.value].value=w.value,k[C.value^1].value=p.value,i("error",O)}function $(O){const te=k[O].value,V={key:"img_"+O,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 C.value===O?Object.assign(V,{class:V.class+"current",onLoad:K,onError:P}):V.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+O},r.h("img",V))}function Y(){return B.value===!1?r.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},lt(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(Ui,{color:t.spinnerColor,size:t.spinnerSize})])}{let O=function(){r.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,te=>{h(),U.value=!1,te===null?(H(),k[C.value^1].value=p.value):Q(),k[C.value].value=te},{immediate:!0})};vn.value===!0?r.onMounted(O):O()}return()=>{const O=[];return s.value!==null&&O.push(r.h("div",{key:"filler",style:s.value})),k[0].value!==null&&O.push($(0)),k[1].value!==null&&O.push($(1)),O.push(r.h(r.Transition,{name:"q-transition--fade"},Y)),r.h("div",{key:"main",class:T.value,style:G.value,role:"img","aria-label":t.alt},O)}}}),Uu="0 0 24 24",Hu=t=>t,Wi=t=>`ionicons ${t}`,Wu={"mdi-":t=>`mdi ${t}`,"icon-":Hu,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Wi,"ion-ios":Wi,"ion-logo":Wi,"iconfont ":Hu,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},Gu={o_:"-outlined",r_:"-round",s_:"-sharp"},ju={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},eh=new RegExp("^("+Object.keys(Wu).join("|")+")"),th=new RegExp("^("+Object.keys(Gu).join("|")+")"),Ku=new RegExp("^("+Object.keys(ju).join("|")+")"),nh=/^[Mm]\s?[-+]?\.?\d/,rh=/^img:/,oh=/^svguse:/,ih=/^ion-/,lh=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,yt=We({name:"QIcon",props:{...wo,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:l}){const{proxy:{$q:i}}=r.getCurrentInstance(),u=So(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 d,h=t.name;if(h==="none"||!h)return{none:!0};if(i.iconMapFn!==null){const p=i.iconMapFn(h);if(p!==void 0)if(p.icon!==void 0){if(h=p.icon,h==="none"||!h)return{none:!0}}else return{cls:p.cls,content:p.content!==void 0?p.content:" "}}if(nh.test(h)===!0){const[p,w=Uu]=h.split("|");return{svg:!0,viewBox:w,nodes:p.split("&&").map(k=>{const[C,B,U]=k.split("@@");return r.h("path",{style:B,d:C,transform:U})})}}if(rh.test(h)===!0)return{img:!0,src:h.substring(4)};if(oh.test(h)===!0){const[p,w=Uu]=h.split("|");return{svguse:!0,src:p.substring(7),viewBox:w}}let b=" ";const E=h.match(eh);if(E!==null)d=Wu[E[1]](h);else if(lh.test(h)===!0)d=h;else if(ih.test(h)===!0)d=`ionicons ion-${i.platform.is.ios===!0?"ios":"md"}${h.substring(3)}`;else if(Ku.test(h)===!0){d="notranslate material-symbols";const p=h.match(Ku);p!==null&&(h=h.substring(6),d+=ju[p[1]]),b=h}else{d="notranslate material-icons";const p=h.match(th);p!==null&&(h=h.substring(2),d+=Gu[p[1]]),b=h}return{cls:d,content:b}});return()=>{const d={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?r.h(t.tag,d,lt(l.default)):c.value.img===!0?r.h(t.tag,d,Ln(l.default,[r.h("img",{src:c.value.src})])):c.value.svg===!0?r.h(t.tag,d,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,d,Ln(l.default,[r.h("svg",{viewBox:c.value.viewBox},[r.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(d.class+=" "+c.value.cls),r.h(t.tag,d,Ln(l.default,[c.value.content])))}}}),ah={class:"card-select-container"},uh=["onClick"],sh={class:"check"},ch={class:"row justify-center items-center",style:{height:"100%"}},fh=["onClick"],dh=r.defineComponent({__name:"CardsSelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue"),i=t,{control:u}=r.toRefs(i);function s(h){if(u.value.multiple){let b=Pe.cloneDeep(l.value);h.exclusive?b=[h.value]:(b=b.filter(E=>{var p,w;return!((w=(p=u.value.options)==null?void 0:p.find(k=>k.value===E))!=null&&w.exclusive)}),b.includes(h.value)?b=b.filter(E=>E!==h.value):b.push(h.value)),l.value=b}else l.value=h.value}function c(h){return d(h)?"active":""}function d(h){let b;return u.value.multiple?b=(l.value||[]).includes(String(h.value)):b=l.value===h.value,b}return(h,b)=>{const E=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(u).label?(r.openBlock(),r.createBlock(E,{key:0,label:r.unref(u).label},null,8,["label"])):r.createCommentVNode("",!0),r.createElementVNode("div",ah,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).options,(p,w)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:w},[p.image?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`image-card ${c(p)}`),onClick:()=>s(p)},[r.createVNode(Jd,{src:p.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),r.createElementVNode("div",sh,[r.createElementVNode("div",ch,[d(p)?(r.openBlock(),r.createBlock(yt,{key:0,name:"check",size:"25px"})):r.createCommentVNode("",!0)])])],10,uh)):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(`card-option ${c(p)}`),onClick:()=>s(p)},[r.createElementVNode("span",null,r.toDisplayString(p.label),1)],10,fh))],64))),128))])],64)}}}),Je=(t,l)=>{const i=t.__vccOpts||t;for(const[u,s]of l)i[u]=s;return i},hh=Je(dh,[["__scopeId","data-v-148468d6"]]),qn={dark:{type:Boolean,default:null}};function Pn(t,l){return r.computed(()=>t.dark===null?l.dark.isActive:t.dark)}function mh(t,l){const i=r.ref(null),u=r.computed(()=>t.disable===!0?null:r.h("span",{ref:i,class:"no-outline",tabindex:-1}));function s(c){const d=l.value;c!==void 0&&c.type.indexOf("key")===0?d!==null&&document.activeElement!==d&&d.contains(document.activeElement)===!0&&d.focus():i.value!==null&&(c===void 0||d!==null&&d.contains(c.target)===!0)&&i.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Gi={name:String};function gh(t={}){return(l,i,u)=>{l[i](r.h("input",{class:"hidden"+(u||""),...t.value}))}}function Qu(t){return r.computed(()=>t.name||t.for)}const ph={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 vh(){}function Yu(t){return t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]?t=t.changedTouches[0]:t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),{top:t.clientY,left:t.clientX}}function _h(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const l=[];let i=t.target;for(;i;){if(l.push(i),i.tagName==="HTML")return l.push(document),l.push(window),l;i=i.parentElement}}function Qt(t){t.stopPropagation()}function $t(t){t.cancelable!==!1&&t.preventDefault()}function Ge(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function qr(t,l,i){const u=`__q_${l}_evt`;t[u]=t[u]!==void 0?t[u].concat(i):i,i.forEach(s=>{s[0].addEventListener(s[1],t[s[2]],dt[s[3]])})}function Co(t,l){const i=`__q_${l}_evt`;t[i]!==void 0&&(t[i].forEach(u=>{u[0].removeEventListener(u[1],t[u[2]],dt[u[3]])}),t[i]=void 0)}const Zu={...qn,...wo,...Gi,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>t==="tf"||t==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Xu=["update:modelValue"];function Ju(t,l){const{props:i,slots:u,emit:s,proxy:c}=r.getCurrentInstance(),{$q:d}=c,h=Pn(i,d),b=r.ref(null),{refocusTargetEl:E,refocusTarget:p}=mh(i,b),w=So(i,ph),k=r.computed(()=>i.val!==void 0&&Array.isArray(i.modelValue)),C=r.computed(()=>{const O=r.toRaw(i.val);return k.value===!0?i.modelValue.findIndex(te=>r.toRaw(te)===O):-1}),B=r.computed(()=>k.value===!0?C.value!==-1:r.toRaw(i.modelValue)===r.toRaw(i.trueValue)),U=r.computed(()=>k.value===!0?C.value===-1:r.toRaw(i.modelValue)===r.toRaw(i.falseValue)),T=r.computed(()=>B.value===!1&&U.value===!1),G=r.computed(()=>i.disable===!0?-1:i.tabindex||0),F=r.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(i.disable===!0?" disabled":"")+(h.value===!0?` q-${t}--dark`:"")+(i.dense===!0?` q-${t}--dense`:"")+(i.leftLabel===!0?" reverse":"")),N=r.computed(()=>{const O=B.value===!0?"truthy":U.value===!0?"falsy":"indet",te=i.color!==void 0&&(i.keepColor===!0||(t==="toggle"?B.value===!0:U.value!==!0))?` text-${i.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${O}${te}`}),Q=r.computed(()=>{const O={type:"checkbox"};return i.name!==void 0&&Object.assign(O,{".checked":B.value,"^checked":B.value===!0?"checked":void 0,name:i.name,value:k.value===!0?i.val:i.trueValue}),O}),H=gh(Q),K=r.computed(()=>{const O={tabindex:G.value,role:t==="toggle"?"switch":"checkbox","aria-label":i.label,"aria-checked":T.value===!0?"mixed":B.value===!0?"true":"false"};return i.disable===!0&&(O["aria-disabled"]="true"),O});function j(O){O!==void 0&&(Ge(O),p(O)),i.disable!==!0&&s("update:modelValue",ie(),O)}function ie(){if(k.value===!0){if(B.value===!0){const O=i.modelValue.slice();return O.splice(C.value,1),O}return i.modelValue.concat([i.val])}if(B.value===!0){if(i.toggleOrder!=="ft"||i.toggleIndeterminate===!1)return i.falseValue}else if(U.value===!0){if(i.toggleOrder==="ft"||i.toggleIndeterminate===!1)return i.trueValue}else return i.toggleOrder!=="ft"?i.trueValue:i.falseValue;return i.indeterminateValue}function P(O){(O.keyCode===13||O.keyCode===32)&&Ge(O)}function $(O){(O.keyCode===13||O.keyCode===32)&&j(O)}const Y=l(B,T);return Object.assign(c,{toggle:j}),()=>{const O=Y();i.disable!==!0&&H(O,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const te=[r.h("div",{class:N.value,style:w.value,"aria-hidden":"true"},O)];E.value!==null&&te.push(E.value);const V=i.label!==void 0?Ln(u.default,[i.label]):lt(u.default);return V!==void 0&&te.push(r.h("div",{class:`q-${t}__label q-anchor--skip`},V)),r.h("div",{ref:b,class:F.value,...K.value,onClick:j,onKeydown:P,onKeyup:$},te)}}const yh=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"})])]),es=We({name:"QCheckbox",props:Zu,emits:Xu,setup(t){function l(i,u){const s=r.computed(()=>(i.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(yt,{class:"q-checkbox__icon",name:s.value})])]:[yh]}return Ju("checkbox",l)}}),ts=r.defineComponent({__name:"SimpleCheckbox",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(i,u)=>(r.openBlock(),r.createBlock(es,{outlined:"",label:i.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"]))}}),bh=We({name:"QToggle",props:{...Zu,icon:String,iconColor:String},emits:Xu,setup(t){function l(i,u){const s=r.computed(()=>(i.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),c=r.computed(()=>i.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(yt,{name:s.value,color:c.value})]:void 0)]}return Ju("toggle",l)}}),wh=r.defineComponent({__name:"SimpleSwitch",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(i,u)=>(r.openBlock(),r.createBlock(bh,{falseValue:0,trueValue:1,outlined:"",label:i.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"]))}}),xo=We({name:"QCard",props:{...qn,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:l}){const{proxy:{$q:i}}=r.getCurrentInstance(),u=Pn(t,i),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},lt(l.default))}});let ji,ko=0;const et=new Array(256);for(let t=0;t<256;t++)et[t]=(t+256).toString(16).substring(1);const Sh=(()=>{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 i=new Uint8Array(l);return t.getRandomValues(i),i}}return l=>{const i=[];for(let u=l;u>0;u--)i.push(Math.floor(Math.random()*256));return i}})(),ns=4096;function Ki(){(ji===void 0||ko+16>ns)&&(ko=0,ji=Sh(ns));const t=Array.prototype.slice.call(ji,ko,ko+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,et[t[0]]+et[t[1]]+et[t[2]]+et[t[3]]+"-"+et[t[4]]+et[t[5]]+"-"+et[t[6]]+et[t[7]]+"-"+et[t[8]]+et[t[9]]+"-"+et[t[10]]+et[t[11]]+et[t[12]]+et[t[13]]+et[t[14]]+et[t[15]]}function Ch(t){return t??null}function rs(t,l){return t??(l===!0?`f_${Ki()}`:null)}function xh({getValue:t,required:l=!0}={}){if(vn.value===!0){const i=t!==void 0?r.ref(Ch(t())):r.ref(null);return l===!0&&i.value===null&&r.onMounted(()=>{i.value=`f_${Ki()}`}),t!==void 0&&r.watch(t,u=>{i.value=rs(u,l)}),i}return t!==void 0?r.computed(()=>rs(t(),l)):r.ref(`f_${Ki()}`)}const os=/^on[A-Z]/;function kh(){const{attrs:t,vnode:l}=r.getCurrentInstance(),i={listeners:r.ref({}),attributes:r.ref({})};function u(){const s={},c={};for(const d in t)d!=="class"&&d!=="style"&&os.test(d)===!1&&(s[d]=t[d]);for(const d in l.props)os.test(d)===!0&&(c[d]=l.props[d]);i.attributes.value=s,i.listeners.value=c}return r.onBeforeUpdate(u),u(),i}const Eh="_q_",Oh="_q_fo_";function Ah({validate:t,resetValidation:l,requiresQForm:i}){const u=r.inject(Oh,!1);if(u!==!1){const{props:s,proxy:c}=r.getCurrentInstance();Object.assign(c,{validate:t,resetValidation:l}),r.watch(()=>s.disable,d=>{d===!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 i===!0&&console.error("Parent QForm not found on useFormChild()!")}const is=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,ls=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,as=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Eo=/^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])\)$/,Oo=/^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)\)$/,Qi={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=>is.test(t),hexaColor:t=>ls.test(t),hexOrHexaColor:t=>as.test(t),rgbColor:t=>Eo.test(t),rgbaColor:t=>Oo.test(t),rgbOrRgbaColor:t=>Eo.test(t)||Oo.test(t),hexOrRgbColor:t=>is.test(t)||Eo.test(t),hexaOrRgbaColor:t=>ls.test(t)||Oo.test(t),anyColor:t=>as.test(t)||Eo.test(t)||Oo.test(t)};function us(t,l=250,i){let u=null;function s(){const c=arguments,d=()=>{u=null,t.apply(this,c)};u!==null&&clearTimeout(u),u=setTimeout(d,l)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const Bh=[!0,!1,"ondemand"],Th={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>Bh.includes(t)}};function Rh(t,l){const{props:i,proxy:u}=r.getCurrentInstance(),s=r.ref(!1),c=r.ref(null),d=r.ref(!1);Ah({validate:U,resetValidation:B});let h=0,b;const E=r.computed(()=>i.rules!==void 0&&i.rules!==null&&i.rules.length!==0),p=r.computed(()=>i.disable!==!0&&E.value===!0&&l.value===!1),w=r.computed(()=>i.error===!0||s.value===!0),k=r.computed(()=>typeof i.errorMessage=="string"&&i.errorMessage.length!==0?i.errorMessage:c.value);r.watch(()=>i.modelValue,()=>{d.value=!0,p.value===!0&&i.lazyRules===!1&&T()});function C(){i.lazyRules!=="ondemand"&&p.value===!0&&d.value===!0&&T()}r.watch(()=>i.reactiveRules,G=>{G===!0?b===void 0&&(b=r.watch(()=>i.rules,C,{immediate:!0,deep:!0})):b!==void 0&&(b(),b=void 0)},{immediate:!0}),r.watch(()=>i.lazyRules,C),r.watch(t,G=>{G===!0?d.value=!0:p.value===!0&&i.lazyRules!=="ondemand"&&T()});function B(){h++,l.value=!1,d.value=!1,s.value=!1,c.value=null,T.cancel()}function U(G=i.modelValue){if(i.disable===!0||E.value===!1)return!0;const F=++h,N=l.value!==!0?()=>{d.value=!0}:()=>{},Q=(K,j)=>{K===!0&&N(),s.value=K,c.value=j||null,l.value=!1},H=[];for(let K=0;K<i.rules.length;K++){const j=i.rules[K];let ie;if(typeof j=="function"?ie=j(G,Qi):typeof j=="string"&&Qi[j]!==void 0&&(ie=Qi[j](G)),ie===!1||typeof ie=="string")return Q(!0,ie),!1;ie!==!0&&ie!==void 0&&H.push(ie)}return H.length===0?(Q(!1),!0):(l.value=!0,Promise.all(H).then(K=>{if(K===void 0||Array.isArray(K)===!1||K.length===0)return F===h&&Q(!1),!0;const j=K.find(ie=>ie===!1||typeof ie=="string");return F===h&&Q(j!==void 0,j),j===void 0},K=>(F===h&&(console.error(K),Q(!0)),!1)))}const T=us(U,0);return r.onBeforeUnmount(()=>{b!==void 0&&b(),T.cancel()}),Object.assign(u,{resetValidation:B,validate:U}),bo(u,"hasError",()=>w.value),{isDirtyModel:d,hasRules:E,hasError:w,errorMessage:k,validate:U,resetValidation:B}}let Vn=[],Pr=[];function ss(t){Pr=Pr.filter(l=>l!==t)}function Ih(t){ss(t),Pr.push(t)}function cs(t){ss(t),Pr.length===0&&Vn.length!==0&&(Vn[Vn.length-1](),Vn=[])}function Ao(t){Pr.length===0?t():Vn.push(t)}function Mh(t){Vn=Vn.filter(l=>l!==t)}function Vr(t){return t!=null&&(""+t).length!==0}const Bo={...{...qn,...Th,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]},Yi=["update:modelValue","clear","focus","blur"];function Zi({requiredForAttr:t=!0,tagProp:l}={}){const{props:i,proxy:u}=r.getCurrentInstance(),s=Pn(i,u.$q),c=xh({required:t,getValue:()=>i.for});return{requiredForAttr:t,tag:l===!0?r.computed(()=>i.tag):{value:"label"},isDark:s,editable:r.computed(()=>i.disable!==!0&&i.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:kh(),targetUid:c,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function Xi(t){const{props:l,emit:i,slots:u,attrs:s,proxy:c}=r.getCurrentInstance(),{$q:d}=c;let h=null;t.hasValue===void 0&&(t.hasValue=r.computed(()=>Vr(l.modelValue))),t.emitValue===void 0&&(t.emitValue=z=>{i("update:modelValue",z)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:P,onFocusout:$}),Object.assign(t,{clearValue:Y,onControlFocusin:P,onControlFocusout:$,focus:j}),t.computedCounter===void 0&&(t.computedCounter=r.computed(()=>{if(l.counter!==!1){const z=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 z+(se!==void 0?" / "+se:"")}}));const{isDirtyModel:b,hasRules:E,hasError:p,errorMessage:w,resetValidation:k}=Rh(t.focused,t.innerLoading),C=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),B=r.computed(()=>l.bottomSlots===!0||l.hint!==void 0||E.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"),T=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":"")+(C.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":"")+(p.value===!0?" q-field--error":"")+(p.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&B.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),G=r.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(p.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&&p.value!==!0?` text-${l.labelColor}`:"")),Q=r.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:C.value,modelValue:l.modelValue,emitValue:t.emitValue})),H=r.computed(()=>{const z={};return t.targetUid.value&&(z.for=t.targetUid.value),l.disable===!0&&(z["aria-disabled"]="true"),z});function K(){const z=document.activeElement;let se=t.targetRef!==void 0&&t.targetRef.value;se&&(z===null||z.id!==t.targetUid.value)&&(se.hasAttribute("tabindex")===!0||(se=se.querySelector("[tabindex]")),se&&se!==z&&se.focus({preventScroll:!0}))}function j(){Ao(K)}function ie(){Mh(K);const z=document.activeElement;z!==null&&t.rootRef.value.contains(z)&&z.blur()}function P(z){h!==null&&(clearTimeout(h),h=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,i("focus",z))}function $(z,se){h!==null&&clearTimeout(h),h=setTimeout(()=>{h=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,i("blur",z)),se!==void 0&&se())})}function Y(z){Ge(z),d.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),i("update:modelValue",null),i("clear",l.modelValue),r.nextTick(()=>{const se=b.value;k(),b.value=se})}function O(){const z=[];return u.prepend!==void 0&&z.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:$t},u.prepend())),z.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},te())),p.value===!0&&l.noErrorIcon===!1&&z.push(le("error",[r.h(yt,{name:d.iconSet.field.error,color:"negative"})])),l.loading===!0||t.innerLoading.value===!0?z.push(le("inner-loading-append",u.loading!==void 0?u.loading():[r.h(Ui,{color:l.color})])):l.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&z.push(le("inner-clearable-append",[r.h(yt,{class:"q-field__focusable-action",tag:"button",name:l.clearIcon||d.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:Y})])),u.append!==void 0&&z.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:$t},u.append())),t.getInnerAppend!==void 0&&z.push(le("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&z.push(t.getControlChild()),z}function te(){const z=[];return l.prefix!==void 0&&l.prefix!==null&&z.push(r.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&z.push(t.getShadowControl()),t.getControl!==void 0?z.push(t.getControl()):u.rawControl!==void 0?z.push(u.rawControl()):u.control!==void 0&&z.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(Q.value))),F.value===!0&&z.push(r.h("div",{class:N.value},lt(u.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&z.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),z.concat(lt(u.default))}function V(){let z,se;p.value===!0?w.value!==null?(z=[r.h("div",{role:"alert"},w.value)],se=`q--slot-error-${w.value}`):(z=lt(u.error),se="q--slot-error"):(l.hideHint!==!0||t.focused.value===!0)&&(l.hint!==void 0?(z=[r.h("div",l.hint)],se=`q--slot-hint-${l.hint}`):(z=lt(u.hint),se="q--slot-hint"));const Ae=l.counter===!0||u.counter!==void 0;if(l.hideBottomSpace===!0&&Ae===!1&&z===void 0)return;const me=r.h("div",{key:se,class:"q-field__messages col"},z);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:$t},[l.hideBottomSpace===!0?me:r.h(r.Transition,{name:"q-transition--field-message"},()=>me),Ae===!0?r.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function le(z,se){return se===null?null:r.h("div",{key:z,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let ae=!1;return r.onDeactivated(()=>{ae=!0}),r.onActivated(()=>{ae===!0&&l.autofocus===!0&&c.focus()}),l.autofocus===!0&&r.onMounted(()=>{c.focus()}),r.onBeforeUnmount(()=>{h!==null&&clearTimeout(h)}),Object.assign(c,{focus:j,blur:ie}),function(){const se=t.getControl===void 0&&u.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...H.value}:H.value;return r.h(t.tag.value,{ref:t.rootRef,class:[T.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:$t},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},O()),B.value===!0?V():null]),u.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:$t},u.after()):null])}}function Ji(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function Nn(t,l){return Ji(t)===!0?!1:[].concat(l).includes(t.keyCode)}const fs={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},To={"#":{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()}},ds=Object.keys(To);ds.forEach(t=>{To[t].regex=new RegExp(To[t].pattern)});const Lh=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+ds.join("")+"])|(.)","g"),hs=/[.*+?^${}()|[\]\\]/g,je="",qh={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Ph(t,l,i,u){let s,c,d,h,b,E;const p=r.ref(null),w=r.ref(C());function k(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}r.watch(()=>t.type+t.autogrow,U),r.watch(()=>t.mask,P=>{if(P!==void 0)T(w.value,!0);else{const $=j(w.value);U(),t.modelValue!==$&&l("update:modelValue",$)}}),r.watch(()=>t.fillMask+t.reverseFillMask,()=>{p.value===!0&&T(w.value,!0)}),r.watch(()=>t.unmaskedValue,()=>{p.value===!0&&T(w.value)});function C(){if(U(),p.value===!0){const P=H(j(t.modelValue));return t.fillMask!==!1?ie(P):P}return t.modelValue}function B(P){if(P<s.length)return s.slice(-P);let $="",Y=s;const O=Y.indexOf(je);if(O!==-1){for(let te=P-Y.length;te>0;te--)$+=je;Y=Y.slice(0,O)+$+Y.slice(O)}return Y}function U(){if(p.value=t.mask!==void 0&&t.mask.length!==0&&k(),p.value===!1){h=void 0,s="",c="";return}const P=fs[t.mask]===void 0?t.mask:fs[t.mask],$=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Y=$.replace(hs,"\\$&"),O=[],te=[],V=[];let le=t.reverseFillMask===!0,ae="",z="";P.replace(Lh,(R,A,Z,ge,ce)=>{if(ge!==void 0){const W=To[ge];V.push(W),z=W.negate,le===!0&&(te.push("(?:"+z+"+)?("+W.pattern+"+)?(?:"+z+"+)?("+W.pattern+"+)?"),le=!1),te.push("(?:"+z+"+)?("+W.pattern+")?")}else if(Z!==void 0)ae="\\"+(Z==="\\"?"":Z),V.push(Z),O.push("([^"+ae+"]+)?"+ae+"?");else{const W=A!==void 0?A:ce;ae=W==="\\"?"\\\\\\\\":W.replace(hs,"\\\\$&"),V.push(W),O.push("([^"+ae+"]+)?"+ae+"?")}});const se=new RegExp("^"+O.join("")+"("+(ae===""?".":"[^"+ae+"]")+"+)?"+(ae===""?"":"["+ae+"]*")+"$"),Ae=te.length-1,me=te.map((R,A)=>A===0&&t.reverseFillMask===!0?new RegExp("^"+Y+"*"+R):A===Ae?new RegExp("^"+R+"("+(z===""?".":z)+"+)?"+(t.reverseFillMask===!0?"$":Y+"*")):new RegExp("^"+R));d=V,h=R=>{const A=se.exec(t.reverseFillMask===!0?R:R.slice(0,V.length+1));A!==null&&(R=A.slice(1).join(""));const Z=[],ge=me.length;for(let ce=0,W=R;ce<ge;ce++){const re=me[ce].exec(W);if(re===null)break;W=W.slice(re.shift().length),Z.push(...re)}return Z.length!==0?Z.join(""):R},s=V.map(R=>typeof R=="string"?R:je).join(""),c=s.split(je).join($)}function T(P,$,Y){const O=u.value,te=O.selectionEnd,V=O.value.length-te,le=j(P);$===!0&&U();const ae=H(le),z=t.fillMask!==!1?ie(ae):ae,se=w.value!==z;O.value!==z&&(O.value=z),se===!0&&(w.value=z),document.activeElement===O&&r.nextTick(()=>{if(z===c){const me=t.reverseFillMask===!0?c.length:0;O.setSelectionRange(me,me,"forward");return}if(Y==="insertFromPaste"&&t.reverseFillMask!==!0){const me=O.selectionEnd;let R=te-1;for(let A=b;A<=R&&A<me;A++)s[A]!==je&&R++;F.right(O,R);return}if(["deleteContentBackward","deleteContentForward"].indexOf(Y)!==-1){const me=t.reverseFillMask===!0?te===0?z.length>ae.length?1:0:Math.max(0,z.length-(z===c?0:Math.min(ae.length,V)+1))+1:te;O.setSelectionRange(me,me,"forward");return}if(t.reverseFillMask===!0)if(se===!0){const me=Math.max(0,z.length-(z===c?0:Math.min(ae.length,V+1)));me===1&&te===1?O.setSelectionRange(me,me,"forward"):F.rightReverse(O,me)}else{const me=z.length-V;O.setSelectionRange(me,me,"backward")}else if(se===!0){const me=Math.max(0,s.indexOf(je),Math.min(ae.length,te)-1);F.right(O,me)}else{const me=te-1;F.right(O,me)}});const Ae=t.unmaskedValue===!0?j(z):z;String(t.modelValue)!==Ae&&(t.modelValue!==null||Ae!=="")&&i(Ae,!0)}function G(P,$,Y){const O=H(j(P.value));$=Math.max(0,s.indexOf(je),Math.min(O.length,$)),b=$,P.setSelectionRange($,Y,"forward")}const F={left(P,$){const Y=s.slice($-1).indexOf(je)===-1;let O=Math.max(0,$-1);for(;O>=0;O--)if(s[O]===je){$=O,Y===!0&&$++;break}if(O<0&&s[$]!==void 0&&s[$]!==je)return F.right(P,0);$>=0&&P.setSelectionRange($,$,"backward")},right(P,$){const Y=P.value.length;let O=Math.min(Y,$+1);for(;O<=Y;O++)if(s[O]===je){$=O;break}else s[O-1]===je&&($=O);if(O>Y&&s[$-1]!==void 0&&s[$-1]!==je)return F.left(P,Y);P.setSelectionRange($,$,"forward")},leftReverse(P,$){const Y=B(P.value.length);let O=Math.max(0,$-1);for(;O>=0;O--)if(Y[O-1]===je){$=O;break}else if(Y[O]===je&&($=O,O===0))break;if(O<0&&Y[$]!==void 0&&Y[$]!==je)return F.rightReverse(P,0);$>=0&&P.setSelectionRange($,$,"backward")},rightReverse(P,$){const Y=P.value.length,O=B(Y),te=O.slice(0,$+1).indexOf(je)===-1;let V=Math.min(Y,$+1);for(;V<=Y;V++)if(O[V-1]===je){$=V,$>0&&te===!0&&$--;break}if(V>Y&&O[$-1]!==void 0&&O[$-1]!==je)return F.leftReverse(P,Y);P.setSelectionRange($,$,"forward")}};function N(P){l("click",P),E=void 0}function Q(P){if(l("keydown",P),Ji(P)===!0||P.altKey===!0)return;const $=u.value,Y=$.selectionStart,O=$.selectionEnd;if(P.shiftKey||(E=void 0),P.keyCode===37||P.keyCode===39){P.shiftKey&&E===void 0&&(E=$.selectionDirection==="forward"?Y:O);const te=F[(P.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),te($,E===Y?O:Y),P.shiftKey){const V=$.selectionStart;$.setSelectionRange(Math.min(E,V),Math.max(E,V),"forward")}}else P.keyCode===8&&t.reverseFillMask!==!0&&Y===O?(F.left($,Y),$.setSelectionRange($.selectionStart,O,"backward")):P.keyCode===46&&t.reverseFillMask===!0&&Y===O&&(F.rightReverse($,O),$.setSelectionRange(Y,$.selectionEnd,"forward"))}function H(P){if(P==null||P==="")return"";if(t.reverseFillMask===!0)return K(P);const $=d;let Y=0,O="";for(let te=0;te<$.length;te++){const V=P[Y],le=$[te];if(typeof le=="string")O+=le,V===le&&Y++;else if(V!==void 0&&le.regex.test(V))O+=le.transform!==void 0?le.transform(V):V,Y++;else return O}return O}function K(P){const $=d,Y=s.indexOf(je);let O=P.length-1,te="";for(let V=$.length-1;V>=0&&O!==-1;V--){const le=$[V];let ae=P[O];if(typeof le=="string")te=le+te,ae===le&&O--;else if(ae!==void 0&&le.regex.test(ae))do te=(le.transform!==void 0?le.transform(ae):ae)+te,O--,ae=P[O];while(Y===V&&ae!==void 0&&le.regex.test(ae));else return te}return te}function j(P){return typeof P!="string"||h===void 0?typeof P=="number"?h(""+P):P:h(P)}function ie(P){return c.length-P.length<=0?P:t.reverseFillMask===!0&&P.length!==0?c.slice(0,-P.length)+P:P+c.slice(P.length)}return{innerValue:w,hasMask:p,moveCursorForPaste:G,updateMaskValue:T,onMaskedKeydown:Q,onMaskedClick:N}}function Vh(t,l){function i(){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 i()})}const Nh=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,$h=/[\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,Dh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Fh=/[a-z0-9_ -]$/i;function ms(t){return function(i){if(i.type==="compositionend"||i.type==="change"){if(i.target.qComposing!==!0)return;i.target.qComposing=!1,t(i)}else i.type==="compositionupdate"&&i.target.qComposing!==!0&&typeof i.data=="string"&&(_t.is.firefox===!0?Fh.test(i.data)===!1:Nh.test(i.data)===!0||$h.test(i.data)===!0||Dh.test(i.data)===!0)===!0&&(i.target.qComposing=!0)}}const gs=We({name:"QInput",inheritAttrs:!1,props:{...Bo,...qh,...Gi,modelValue:[String,Number],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Yi,"paste","change","keydown","click","animationend"],setup(t,{emit:l,attrs:i}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c={};let d=NaN,h,b,E=null,p;const w=r.ref(null),k=Qu(t),{innerValue:C,hasMask:B,moveCursorForPaste:U,updateMaskValue:T,onMaskedKeydown:G,onMaskedClick:F}=Ph(t,l,ae,w),N=Vh(t),Q=r.computed(()=>Vr(C.value)),H=ms(V),K=Zi(),j=r.computed(()=>t.type==="textarea"||t.autogrow===!0),ie=r.computed(()=>j.value===!0||["text","search","url","tel","password"].includes(t.type)),P=r.computed(()=>{const A={...K.splitAttrs.listeners.value,onInput:V,onPaste:te,onChange:se,onBlur:Ae,onFocus:Qt};return A.onCompositionstart=A.onCompositionupdate=A.onCompositionend=H,B.value===!0&&(A.onKeydown=G,A.onClick=F),t.autogrow===!0&&(A.onAnimationend=le),A}),$=r.computed(()=>{const A={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:k.value,...K.splitAttrs.attributes.value,id:K.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return j.value===!1&&(A.type=t.type),t.autogrow===!0&&(A.rows=1),A});r.watch(()=>t.type,()=>{w.value&&(w.value.value=t.modelValue)}),r.watch(()=>t.modelValue,A=>{if(B.value===!0){if(b===!0&&(b=!1,String(A)===d))return;T(A)}else C.value!==A&&(C.value=A,t.type==="number"&&c.hasOwnProperty("value")===!0&&(h===!0?h=!1:delete c.value));t.autogrow===!0&&r.nextTick(z)}),r.watch(()=>t.autogrow,A=>{A===!0?r.nextTick(z):w.value!==null&&i.rows>0&&(w.value.style.height="auto")}),r.watch(()=>t.dense,()=>{t.autogrow===!0&&r.nextTick(z)});function Y(){Ao(()=>{const A=document.activeElement;w.value!==null&&w.value!==A&&(A===null||A.id!==K.targetUid.value)&&w.value.focus({preventScroll:!0})})}function O(){w.value!==null&&w.value.select()}function te(A){if(B.value===!0&&t.reverseFillMask!==!0){const Z=A.target;U(Z,Z.selectionStart,Z.selectionEnd)}l("paste",A)}function V(A){if(!A||!A.target)return;if(t.type==="file"){l("update:modelValue",A.target.files);return}const Z=A.target.value;if(A.target.qComposing===!0){c.value=Z;return}if(B.value===!0)T(Z,!1,A.inputType);else if(ae(Z),ie.value===!0&&A.target===document.activeElement){const{selectionStart:ge,selectionEnd:ce}=A.target;ge!==void 0&&ce!==void 0&&r.nextTick(()=>{A.target===document.activeElement&&Z.indexOf(A.target.value)===0&&A.target.setSelectionRange(ge,ce)})}t.autogrow===!0&&z()}function le(A){l("animationend",A),z()}function ae(A,Z){p=()=>{E=null,t.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,t.modelValue!==A&&d!==A&&(d=A,Z===!0&&(b=!0),l("update:modelValue",A),r.nextTick(()=>{d===A&&(d=NaN)})),p=void 0},t.type==="number"&&(h=!0,c.value=A),t.debounce!==void 0?(E!==null&&clearTimeout(E),c.value=A,E=setTimeout(p,t.debounce)):p()}function z(){requestAnimationFrame(()=>{const A=w.value;if(A!==null){const Z=A.parentNode.style,{scrollTop:ge}=A,{overflowY:ce,maxHeight:W}=s.platform.is.firefox===!0?{}:window.getComputedStyle(A),re=ce!==void 0&&ce!=="scroll";re===!0&&(A.style.overflowY="hidden"),Z.marginBottom=A.scrollHeight-1+"px",A.style.height="1px",A.style.height=A.scrollHeight+"px",re===!0&&(A.style.overflowY=parseInt(W,10)<A.scrollHeight?"auto":"hidden"),Z.marginBottom="",A.scrollTop=ge}})}function se(A){H(A),E!==null&&(clearTimeout(E),E=null),p!==void 0&&p(),l("change",A.target.value)}function Ae(A){A!==void 0&&Qt(A),E!==null&&(clearTimeout(E),E=null),p!==void 0&&p(),h=!1,b=!1,delete c.value,t.type!=="file"&&setTimeout(()=>{w.value!==null&&(w.value.value=C.value!==void 0?C.value:"")})}function me(){return c.hasOwnProperty("value")===!0?c.value:C.value!==void 0?C.value:""}r.onBeforeUnmount(()=>{Ae()}),r.onMounted(()=>{t.autogrow===!0&&z()}),Object.assign(K,{innerValue:C,fieldClass:r.computed(()=>`q-${j.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:w,emitValue:ae,hasValue:Q,floatingLabel:r.computed(()=>Q.value===!0&&(t.type!=="number"||isNaN(C.value)===!1)||Vr(t.displayValue)),getControl:()=>r.h(j.value===!0?"textarea":"input",{ref:w,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...$.value,...P.value,...t.type!=="file"?{value:me()}:N.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(j.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},me()),r.h("span",t.shadowText)])});const R=Xi(K);return Object.assign(u,{focus:Y,select:O,getNativeElement:()=>w.value}),bo(u,"nativeEl",()=>w.value),R}}),zh=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],Uh=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],Hh=We({name:"QSkeleton",props:{...qn,tag:{type:String,default:"div"},type:{type:String,validator:t=>zh.includes(t),default:"rect"},animation:{type:String,validator:t=>Uh.includes(t),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(t,{slots:l}){const i=r.getCurrentInstance(),u=Pn(t,i.proxy.$q),s=r.computed(()=>{const d=t.size!==void 0?[t.size,t.size]:[t.width,t.height];return{"--q-skeleton-speed":`${t.animationSpeed}ms`,width:d[0],height:d[1]}}),c=r.computed(()=>`q-skeleton q-skeleton--${u.value===!0?"dark":"light"} q-skeleton--type-${t.type}`+(t.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${t.animation}`:"")+(t.square===!0?" q-skeleton--square":"")+(t.bordered===!0?" q-skeleton--bordered":""));return()=>r.h(t.tag,{class:c.value,style:s.value},lt(l.default))}}),Wh=Je(r.defineComponent({__name:"IndicatorColor",props:{color:{}},setup(t){const l=t,i=r.computed(()=>{var u;return(u=l.color)!=null&&u.startsWith("#")?{background:l.color}:{}});return(u,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([u.color,"indicator-icon"]),style:r.normalizeStyle(i.value)},null,6))}}),[["__scopeId","data-v-86ec13f1"]]),Gh=Je(r.defineComponent({__name:"Field",props:{sm:{type:Boolean},label:{},value:{},row:{type:Boolean,default:!1},loading:{type:Boolean},hoverable:{type:Boolean,default:!1},bordered:{type:Boolean},colouredLabel:{type:Boolean,default:!0},dense:{type:Boolean,default:!1},indicatorColor:{},format:{},badge:{}},setup(t){const l=t,i=r.computed(()=>l.format?l.format(l.value):l.value),u=r.computed(()=>l.badge?"badge-"+l.badge(l.value):"");return(s,c)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass({"row justify-between items-center no-wrap":s.row,hoverable:s.hoverable,bordered:s.bordered})},[r.createElementVNode("div",{class:r.normalizeClass([s.dense?"dense-text":"text"]),style:r.normalizeStyle({fontSize:s.sm?"11px":""})},r.toDisplayString(s.label),7),s.loading?(r.openBlock(),r.createBlock(Hh,{key:0,type:"rect",width:"100px",animation:"wave"})):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass([`font-bold text-accent-1 row items-center ${s.dense?"dense-text":"text"} `,{text:s.colouredLabel,badgeClass:u.value}])},[s.indicatorColor?(r.openBlock(),r.createBlock(Wh,{key:0,color:s.indicatorColor,class:"q-mr-xs"},null,8,["color"])):r.createCommentVNode("",!0),r.createElementVNode("div",{style:r.normalizeStyle({fontSize:s.sm?"11px":""})},r.toDisplayString(i.value),5)],2))],2))}}),[["__scopeId","data-v-a10936e1"]]),jh={key:0},Kh={key:0,class:"text-weight-bold text-deep-orange"},Qh={style:{"font-size":"16px","padding-top":"1.5rem"}},Yh=Je(r.defineComponent({__name:"WinInput",props:r.mergeModels({name:{},mask:{},fillMask:{type:[Boolean,String]},reverseFillMask:{type:Boolean},unmaskedValue:{type:Boolean},modelValue:{},error:{type:[Boolean,null]},errorMessage:{},noErrorIcon:{type:Boolean},rules:{},reactiveRules:{type:Boolean},lazyRules:{type:[Boolean,String]},label:{},stackLabel:{type:Boolean},hint:{},hideHint:{type:Boolean},prefix:{},suffix:{},labelColor:{},color:{},bgColor:{},dark:{type:[Boolean,null]},loading:{type:Boolean,default:!1},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean},borderless:{type:Boolean},standout:{type:[Boolean,String]},labelSlot:{type:Boolean},bottomSlots:{type:Boolean},hideBottomSpace:{type:Boolean},counter:{type:Boolean},rounded:{type:Boolean},square:{type:Boolean},dense:{type:Boolean},itemAligned:{type:Boolean},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},autofocus:{type:Boolean},for:{},shadowText:{},type:{default:"text"},debounce:{},maxlength:{},autogrow:{type:Boolean},inputClass:{},inputStyle:{},"onUpdate:modelValue":{},onFocus:{},onBlur:{},onClear:{},required:{type:Boolean,default:!1},height:{default:"70px"},step:{default:1},currency:{type:Boolean},decimals:{default:0},useFieldOnReadonly:{type:Boolean,default:!1},fieldFormat:{},percentage:{type:Boolean},currencySymbol:{default:"€"},rows:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:l}){const i=r.useModel(t,"modelValue"),u=r.ref(null),s=t;l({validate:()=>{var h;return(h=u.value)==null?void 0:h.validate()}});const d=r.computed(()=>{if(s.fieldFormat)return s.fieldFormat});return(h,b)=>h.useFieldOnReadonly&&h.readonly?(r.openBlock(),r.createBlock(Gh,{key:0,label:h.label||"",value:i.value??"~",format:d.value,bordered:!0},null,8,["label","value","format"])):(r.openBlock(),r.createBlock(xo,{key:1,class:"glass-card q-py-sm q-px-md",style:r.normalizeStyle({height:h.dense?"auto":h.height})},{default:r.withCtx(()=>[r.createVNode(r.unref(gs),r.mergeProps({ref_key:"inputRef",ref:u},{...s},{borderless:"","hide-bottom-space":"",modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=E=>i.value=E)}),r.createSlots({label:r.withCtx(()=>[h.label?(r.openBlock(),r.createElementBlock("div",jh,[r.createTextVNode(r.toDisplayString(h.label)+" ",1),h.required&&!h.readonly?(r.openBlock(),r.createElementBlock("span",Kh,"*")):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)]),_:2},[h.$slots.prepend?{name:"prepend",fn:r.withCtx(()=>[r.renderSlot(h.$slots,"prepend",{},void 0,!0)]),key:"0"}:void 0,h.$slots.append||h.percentage?{name:"append",fn:r.withCtx(()=>[r.renderSlot(h.$slots,"append",{},()=>[r.createElementVNode("span",Qh,r.toDisplayString(h.percentage?"%":""),1)],!0)]),key:"1"}:void 0]),1040,["modelValue"])]),_:3},8,["style"]))}}),[["__scopeId","data-v-5593318f"]]),Zh={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},Xh=r.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(l,i)=>(r.openBlock(),r.createElementBlock("div",Zh,r.toDisplayString(l.label),1))}}),Jh={style:{"max-width":"400px"},class:"text-center"},em={style:{"font-size":"16px"}},tm={style:{"font-size":"16px"}},el=Je(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,i=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=i.value)==null||c.focus()}),(c,d)=>(r.openBlock(),r.createElementBlock("div",Jh,[!c.innerLabel&&c.control.label?(r.openBlock(),r.createBlock(Xh,{key:0,label:c.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(Yh,{modelValue:s.value,"onUpdate:modelValue":d[0]||(d[0]=h=>s.value=h),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:i},r.createSlots({_:2},[c.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",em,r.toDisplayString(c.control.prefix),1)]),key:"0"}:void 0,c.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",tm,r.toDisplayString(c.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function tl(t,l){const i=t.style;for(const u in l)i[u]=l[u]}function nm(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 ps(t,l){if(t==null||t.contains(l)===!0)return!0;for(let i=t.nextElementSibling;i!==null;i=i.nextElementSibling)if(i.contains(l))return!0;return!1}function rm(t,l=250){let i=!1,u;return function(){return i===!1&&(i=!0,setTimeout(()=>{i=!1},l),u=t.apply(this,arguments)),u}}function vs(t,l,i,u){i.modifiers.stop===!0&&Qt(t);const s=i.modifiers.color;let c=i.modifiers.center;c=c===!0||u===!0;const d=document.createElement("span"),h=document.createElement("span"),b=Yu(t),{left:E,top:p,width:w,height:k}=l.getBoundingClientRect(),C=Math.sqrt(w*w+k*k),B=C/2,U=`${(w-C)/2}px`,T=c?U:`${b.left-E-B}px`,G=`${(k-C)/2}px`,F=c?G:`${b.top-p-B}px`;h.className="q-ripple__inner",tl(h,{height:`${C}px`,width:`${C}px`,transform:`translate3d(${T},${F},0) scale3d(.2,.2,1)`,opacity:0}),d.className=`q-ripple${s?" text-"+s:""}`,d.setAttribute("dir","ltr"),d.appendChild(h),l.appendChild(d);const N=()=>{d.remove(),clearTimeout(Q)};i.abort.push(N);let Q=setTimeout(()=>{h.classList.add("q-ripple__inner--enter"),h.style.transform=`translate3d(${U},${G},0) scale3d(1,1,1)`,h.style.opacity=.2,Q=setTimeout(()=>{h.classList.remove("q-ripple__inner--enter"),h.classList.add("q-ripple__inner--leave"),h.style.opacity=0,Q=setTimeout(()=>{d.remove(),i.abort.splice(i.abort.indexOf(N),1)},275)},250)},50)}function _s(t,{modifiers:l,value:i,arg:u}){const s=Object.assign({},t.cfg.ripple,l,i);t.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||u,keyCodes:[].concat(s.keyCodes||13)}}const ys=Vu({name:"ripple",beforeMount(t,l){const i=l.instance.$.appContext.config.globalProperties.$q.config||{};if(i.ripple===!1)return;const u={cfg:i,enabled:l.value!==!1,modifiers:{},abort:[],start(s){u.enabled===!0&&s.qSkipRipple!==!0&&s.type===(u.modifiers.early===!0?"pointerdown":"click")&&vs(s,t,u,s.qKeyEvent===!0)},keystart:rm(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&Nn(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&vs(s,t,u,!0)},300)};_s(u,l),t.__qripple=u,qr(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 i=t.__qripple;i!==void 0&&(i.enabled=l.value!==!1,i.enabled===!0&&Object(l.value)===l.value&&_s(i,l))}},beforeUnmount(t){const l=t.__qripple;l!==void 0&&(l.abort.forEach(i=>{i()}),Co(l,"main"),delete t._qripple)}}),bs={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},om=Object.keys(bs),im={align:{type:String,validator:t=>om.includes(t)}};function lm(t){return r.computed(()=>{const l=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${bs[l]}`})}function ws(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Ss(t,l){return(t.aliasOf||t)===(l.aliasOf||l)}function am(t,l){for(const i in l){const u=l[i],s=t[i];if(typeof u=="string"){if(u!==s)return!1}else if(Array.isArray(s)===!1||s.length!==u.length||u.some((c,d)=>c!==s[d]))return!1}return!0}function Cs(t,l){return Array.isArray(l)===!0?t.length===l.length&&t.every((i,u)=>i===l[u]):t.length===1&&t[0]===l}function um(t,l){return Array.isArray(t)===!0?Cs(t,l):Array.isArray(l)===!0?Cs(l,t):t===l}function sm(t,l){if(Object.keys(t).length!==Object.keys(l).length)return!1;for(const i in t)if(um(t[i],l[i])===!1)return!1;return!0}const xs={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},cm={...xs,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function ks({fallbackTag:t,useDisableForRouterLinkProps:l=!0}={}){const i=r.getCurrentInstance(),{props:u,proxy:s,emit:c}=i,d=zu(i),h=r.computed(()=>u.disable!==!0&&u.href!==void 0),b=l===!0?r.computed(()=>d===!0&&u.disable!==!0&&h.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):r.computed(()=>d===!0&&h.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),E=r.computed(()=>b.value===!0?F(u.to):null),p=r.computed(()=>E.value!==null),w=r.computed(()=>h.value===!0||p.value===!0),k=r.computed(()=>u.type==="a"||w.value===!0?"a":u.tag||t||"div"),C=r.computed(()=>h.value===!0?{href:u.href,target:u.target}:p.value===!0?{href:E.value.href,target:u.target}:{}),B=r.computed(()=>{if(p.value===!1)return-1;const{matched:H}=E.value,{length:K}=H,j=H[K-1];if(j===void 0)return-1;const ie=s.$route.matched;if(ie.length===0)return-1;const P=ie.findIndex(Ss.bind(null,j));if(P!==-1)return P;const $=ws(H[K-2]);return K>1&&ws(j)===$&&ie[ie.length-1].path!==$?ie.findIndex(Ss.bind(null,H[K-2])):P}),U=r.computed(()=>p.value===!0&&B.value!==-1&&am(s.$route.params,E.value.params)),T=r.computed(()=>U.value===!0&&B.value===s.$route.matched.length-1&&sm(s.$route.params,E.value.params)),G=r.computed(()=>p.value===!0?T.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":U.value===!0?` ${u.activeClass}`:"":"");function F(H){try{return s.$router.resolve(H)}catch{}return null}function N(H,{returnRouterError:K,to:j=u.to,replace:ie=u.replace}={}){if(u.disable===!0)return H.preventDefault(),Promise.resolve(!1);if(H.metaKey||H.altKey||H.ctrlKey||H.shiftKey||H.button!==void 0&&H.button!==0||u.target==="_blank")return Promise.resolve(!1);H.preventDefault();const P=s.$router[ie===!0?"replace":"push"](j);return K===!0?P:P.then(()=>{}).catch(()=>{})}function Q(H){if(p.value===!0){const K=j=>N(H,j);c("click",H,K),H.defaultPrevented!==!0&&K()}else c("click",H)}return{hasRouterLink:p,hasHrefLink:h,hasLink:w,linkTag:k,resolvedLink:E,linkIsActive:U,linkIsExactActive:T,linkClass:G,linkAttrs:C,getLink:F,navigateToRouterLink:N,navigateOnClick:Q}}const Es={none:0,xs:4,sm:8,md:16,lg:24,xl:32},fm={xs:8,sm:10,md:14,lg:20,xl:24},dm=["button","submit","reset"],hm=/[^\s]\/[^\s]/,mm=["flat","outline","push","unelevated"];function gm(t,l){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":l}const pm={...{...wo,...xs,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...mm.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:{...im.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function vm(t){const l=So(t,fm),i=lm(t),{hasRouterLink:u,hasLink:s,linkTag:c,linkAttrs:d,navigateOnClick:h}=ks({fallbackTag:"button"}),b=r.computed(()=>{const T=t.fab===!1&&t.fabMini===!1?l.value:{};return t.padding!==void 0?Object.assign({},T,{padding:t.padding.split(/\s+/).map(G=>G in Es?Es[G]+"px":G).join(" "),minWidth:"0",minHeight:"0"}):T}),E=r.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),p=r.computed(()=>t.disable!==!0&&t.loading!==!0),w=r.computed(()=>p.value===!0?t.tabindex||0:-1),k=r.computed(()=>gm(t,"standard")),C=r.computed(()=>{const T={tabindex:w.value};return s.value===!0?Object.assign(T,d.value):dm.includes(t.type)===!0&&(T.type=t.type),c.value==="a"?(t.disable===!0?T["aria-disabled"]="true":T.href===void 0&&(T.role="button"),u.value!==!0&&hm.test(t.type)===!0&&(T.type=t.type)):t.disable===!0&&(T.disabled="",T["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(T,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),T}),B=r.computed(()=>{let T;t.color!==void 0?t.flat===!0||t.outline===!0?T=`text-${t.textColor||t.color}`:T=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(T=`text-${t.textColor}`);const G=t.round===!0?"round":`rectangle${E.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${k.value} q-btn--${G}`+(T!==void 0?" "+T:"")+(p.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(()=>i.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:B,style:b,innerClasses:U,attributes:C,hasLink:s,linkTag:c,navigateOnClick:h,isActionable:p}}const{passiveCapture:Bt}=dt;let sr=null,cr=null,fr=null;const _n=We({name:"QBtn",props:{...pm,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:l,emit:i}){const{proxy:u}=r.getCurrentInstance(),{classes:s,style:c,innerClasses:d,attributes:h,hasLink:b,linkTag:E,navigateOnClick:p,isActionable:w}=vm(t),k=r.ref(null),C=r.ref(null);let B=null,U,T=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:b.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),N=r.computed(()=>({center:t.round})),Q=r.computed(()=>{const V=Math.max(0,Math.min(100,t.percentage));return V>0?{transition:"transform 0.6s",transform:`translateX(${V-100}%)`}:{}}),H=r.computed(()=>{if(t.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(w.value===!0){const V={onClick:j,onKeydown:ie,onMousedown:$};if(u.$q.platform.has.touch===!0){const le=t.onTouchstart!==void 0?"":"Passive";V[`onTouchstart${le}`]=P}return V}return{onClick:Ge}}),K=r.computed(()=>({ref:k,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:c.value,...h.value,...H.value}));function j(V){if(k.value!==null){if(V!==void 0){if(V.defaultPrevented===!0)return;const le=document.activeElement;if(t.type==="submit"&&le!==document.body&&k.value.contains(le)===!1&&le.contains(k.value)===!1){k.value.focus();const ae=()=>{document.removeEventListener("keydown",Ge,!0),document.removeEventListener("keyup",ae,Bt),k.value!==null&&k.value.removeEventListener("blur",ae,Bt)};document.addEventListener("keydown",Ge,!0),document.addEventListener("keyup",ae,Bt),k.value.addEventListener("blur",ae,Bt)}}p(V)}}function ie(V){k.value!==null&&(i("keydown",V),Nn(V,[13,32])===!0&&cr!==k.value&&(cr!==null&&O(),V.defaultPrevented!==!0&&(k.value.focus(),cr=k.value,k.value.classList.add("q-btn--active"),document.addEventListener("keyup",Y,!0),k.value.addEventListener("blur",Y,Bt)),Ge(V)))}function P(V){k.value!==null&&(i("touchstart",V),V.defaultPrevented!==!0&&(sr!==k.value&&(sr!==null&&O(),sr=k.value,B=V.target,B.addEventListener("touchcancel",Y,Bt),B.addEventListener("touchend",Y,Bt)),U=!0,T!==null&&clearTimeout(T),T=setTimeout(()=>{T=null,U=!1},200)))}function $(V){k.value!==null&&(V.qSkipRipple=U===!0,i("mousedown",V),V.defaultPrevented!==!0&&fr!==k.value&&(fr!==null&&O(),fr=k.value,k.value.classList.add("q-btn--active"),document.addEventListener("mouseup",Y,Bt)))}function Y(V){if(k.value!==null&&!(V!==void 0&&V.type==="blur"&&document.activeElement===k.value)){if(V!==void 0&&V.type==="keyup"){if(cr===k.value&&Nn(V,[13,32])===!0){const le=new MouseEvent("click",V);le.qKeyEvent=!0,V.defaultPrevented===!0&&$t(le),V.cancelBubble===!0&&Qt(le),k.value.dispatchEvent(le),Ge(V),V.qKeyEvent=!0}i("keyup",V)}O()}}function O(V){const le=C.value;V!==!0&&(sr===k.value||fr===k.value)&&le!==null&&le!==document.activeElement&&(le.setAttribute("tabindex",-1),le.focus()),sr===k.value&&(B!==null&&(B.removeEventListener("touchcancel",Y,Bt),B.removeEventListener("touchend",Y,Bt)),sr=B=null),fr===k.value&&(document.removeEventListener("mouseup",Y,Bt),fr=null),cr===k.value&&(document.removeEventListener("keyup",Y,!0),k.value!==null&&k.value.removeEventListener("blur",Y,Bt),cr=null),k.value!==null&&k.value.classList.remove("q-btn--active")}function te(V){Ge(V),V.qSkipRipple=!0}return r.onBeforeUnmount(()=>{O(!0)}),Object.assign(u,{click:V=>{w.value===!0&&j(V)}}),()=>{let V=[];t.icon!==void 0&&V.push(r.h(yt,{name:t.icon,left:t.stack!==!0&&G.value===!0,role:"img","aria-hidden":"true"})),G.value===!0&&V.push(r.h("span",{class:"block"},[t.label])),V=Ln(l.default,V),t.iconRight!==void 0&&t.round===!1&&V.push(r.h(yt,{name:t.iconRight,right:t.stack!==!0&&G.value===!0,role:"img","aria-hidden":"true"}));const le=[r.h("span",{class:"q-focus-helper",ref:C})];return t.loading===!0&&t.percentage!==void 0&&le.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:Q.value})])),le.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+d.value},V)),t.loading!==null&&le.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(Ui)])]:null)),r.withDirectives(r.h(E.value,K.value,le),[[ys,F.value,void 0,N.value]])}}}),Os=t=>(r.pushScopeId("data-v-3bcb795a"),t=t(),r.popScopeId(),t),_m={class:"buttons-container"},ym={class:"lt-md"},bm={class:"row justify-between q-my-md q-px-md"},wm=Os(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Sm={key:1},Cm=Os(()=>r.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),xm=Je(r.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const l=t,i=r.computed(()=>l.currentStep+1);return(u,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",_m,[i.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(yt,{name:"arrow_back_ios",color:"info"})]),_:1})):r.createCommentVNode("",!0),i.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(yt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",ym,[r.createElementVNode("div",bm,[i.value>1&&i.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(()=>[wm]),_:1})):(r.openBlock(),r.createElementBlock("div",Sm)),i.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(()=>[Cm]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),km=We({name:"QField",inheritAttrs:!1,props:{...Bo,tag:{type:String,default:"label"}},emits:Yi,setup(){return Xi(Zi({requiredForAttr:!1,tagProp:!0}))}}),Em={xs:8,sm:10,md:14,lg:20,xl:24},Om=We({name:"QChip",props:{...qn,...wo,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:i}){const{proxy:{$q:u}}=r.getCurrentInstance(),s=Pn(t,u),c=So(t,Em),d=r.computed(()=>t.selected===!0||t.icon!==void 0),h=r.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),b=r.computed(()=>t.iconRemove||u.iconSet.chip.remove),E=r.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),p=r.computed(()=>{const T=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}`:"")+(T?` text-${T} 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":"")+(E.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":"")}),w=r.computed(()=>{const T=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},G={...T,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:T,remove:G}});function k(T){T.keyCode===13&&C(T)}function C(T){t.disable||(i("update:selected",!t.selected),i("click",T))}function B(T){(T.keyCode===void 0||T.keyCode===13)&&(Ge(T),t.disable===!1&&(i("update:modelValue",!1),i("remove")))}function U(){const T=[];E.value===!0&&T.push(r.h("div",{class:"q-focus-helper"})),d.value===!0&&T.push(r.h(yt,{class:"q-chip__icon q-chip__icon--left",name:h.value}));const G=t.label!==void 0?[r.h("div",{class:"ellipsis"},[t.label])]:void 0;return T.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},jd(l.default,G))),t.iconRight&&T.push(r.h(yt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&T.push(r.h(yt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:b.value,...w.value.remove,onClick:B,onKeyup:B})),T}return()=>{if(t.modelValue===!1)return;const T={class:p.value,style:c.value};return E.value===!0&&Object.assign(T,w.value.chip,{onClick:C,onKeyup:k}),Fu("div",T,U(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[ys,t.ripple]])}}}),Am=We({name:"QItem",props:{...qn,...cm,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:i}){const{proxy:{$q:u}}=r.getCurrentInstance(),s=Pn(t,u),{hasLink:c,linkAttrs:d,linkClass:h,linkTag:b,navigateOnClick:E}=ks(),p=r.ref(null),w=r.ref(null),k=r.computed(()=>t.clickable===!0||c.value===!0||t.tag==="label"),C=r.computed(()=>t.disable!==!0&&k.value===!0),B=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?h.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(C.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 T(N){C.value===!0&&(w.value!==null&&(N.qKeyEvent!==!0&&document.activeElement===p.value?w.value.focus():document.activeElement===w.value&&p.value.focus()),E(N))}function G(N){if(C.value===!0&&Nn(N,[13,32])===!0){Ge(N),N.qKeyEvent=!0;const Q=new MouseEvent("click",N);Q.qKeyEvent=!0,p.value.dispatchEvent(Q)}i("keyup",N)}function F(){const N=Gd(l.default,[]);return C.value===!0&&N.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:w})),N}return()=>{const N={ref:p,class:B.value,style:U.value,role:"listitem",onClick:T,onKeyup:G};return C.value===!0?(N.tabindex=t.tabindex||"0",Object.assign(N,d.value)):k.value===!0&&(N["aria-disabled"]="true"),r.h(b.value,N,F())}}}),Bm=We({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:l}){const i=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:i.value},lt(l.default))}}),Tm=We({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:l}){const i=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":"")+(i.value===1?" ellipsis":"")),s=r.computed(()=>t.lines!==void 0&&i.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":i.value}:null);return()=>r.h("div",{style:s.value,class:u.value},lt(l.default))}});function nl(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),Fi.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const As={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Rm={...As,contextMenu:Boolean};function Bs({showing:t,avoidEmit:l,configureAnchorEl:i}){const{props:u,proxy:s,emit:c}=r.getCurrentInstance(),d=r.ref(null);let h=null;function b(C){return d.value===null?!1:C===void 0||C.touches===void 0||C.touches.length<=1}const E={};i===void 0&&(Object.assign(E,{hide(C){s.hide(C)},toggle(C){s.toggle(C),C.qAnchorHandled=!0},toggleKey(C){Nn(C,13)===!0&&E.toggle(C)},contextClick(C){s.hide(C),$t(C),r.nextTick(()=>{s.show(C),C.qAnchorHandled=!0})},prevent:$t,mobileTouch(C){if(E.mobileCleanup(C),b(C)!==!0)return;s.hide(C),d.value.classList.add("non-selectable");const B=C.target;qr(E,"anchor",[[B,"touchmove","mobileCleanup","passive"],[B,"touchend","mobileCleanup","passive"],[B,"touchcancel","mobileCleanup","passive"],[d.value,"contextmenu","prevent","notPassive"]]),h=setTimeout(()=>{h=null,s.show(C),C.qAnchorHandled=!0},300)},mobileCleanup(C){d.value.classList.remove("non-selectable"),h!==null&&(clearTimeout(h),h=null),t.value===!0&&C!==void 0&&nl()}}),i=function(C=u.contextMenu){if(u.noParentEvent===!0||d.value===null)return;let B;C===!0?s.$q.platform.is.mobile===!0?B=[[d.value,"touchstart","mobileTouch","passive"]]:B=[[d.value,"mousedown","hide","passive"],[d.value,"contextmenu","contextClick","notPassive"]]:B=[[d.value,"click","toggle","passive"],[d.value,"keyup","toggleKey","passive"]],qr(E,"anchor",B)});function p(){Co(E,"anchor")}function w(C){for(d.value=C;d.value.classList.contains("q-anchor--skip");)d.value=d.value.parentNode;i()}function k(){if(u.target===!1||u.target===""||s.$el.parentNode===null)d.value=null;else if(u.target===!0)w(s.$el.parentNode);else{let C=u.target;if(typeof u.target=="string")try{C=document.querySelector(u.target)}catch{C=void 0}C!=null?(d.value=C.$el||C,i()):(d.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return r.watch(()=>u.contextMenu,C=>{d.value!==null&&(p(),i(C))}),r.watch(()=>u.target,()=>{d.value!==null&&p(),k()}),r.watch(()=>u.noParentEvent,C=>{d.value!==null&&(C===!0?p():i())}),r.onMounted(()=>{k(),l!==!0&&u.modelValue===!0&&d.value===null&&c("update:modelValue",!1)}),r.onBeforeUnmount(()=>{h!==null&&clearTimeout(h),p()}),{anchorEl:d,canShow:b,anchorEvents:E}}function Ts(t,l){const i=r.ref(null);let u;function s(h,b){const E=`${b!==void 0?"add":"remove"}EventListener`,p=b!==void 0?b:u;h!==window&&h[E]("scroll",p,dt.passive),window[E]("scroll",p,dt.passive),u=b}function c(){i.value!==null&&(s(i.value),i.value=null)}const d=r.watch(()=>t.noParentEvent,()=>{i.value!==null&&(c(),l())});return r.onBeforeUnmount(d),{localScrollTarget:i,unconfigureScrollTarget:c,changeScrollEvent:s}}const rl={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},ol=["beforeShow","show","beforeHide","hide"];function il({showing:t,canShow:l,hideOnRouteChange:i,handleShow:u,handleHide:s,processOnMount:c}){const d=r.getCurrentInstance(),{props:h,emit:b,proxy:E}=d;let p;function w(F){t.value===!0?B(F):k(F)}function k(F){if(h.disable===!0||F!==void 0&&F.qAnchorHandled===!0||l!==void 0&&l(F)!==!0)return;const N=h["onUpdate:modelValue"]!==void 0;N===!0&&(b("update:modelValue",!0),p=F,r.nextTick(()=>{p===F&&(p=void 0)})),(h.modelValue===null||N===!1)&&C(F)}function C(F){t.value!==!0&&(t.value=!0,b("beforeShow",F),u!==void 0?u(F):b("show",F))}function B(F){if(h.disable===!0)return;const N=h["onUpdate:modelValue"]!==void 0;N===!0&&(b("update:modelValue",!1),p=F,r.nextTick(()=>{p===F&&(p=void 0)})),(h.modelValue===null||N===!1)&&U(F)}function U(F){t.value!==!1&&(t.value=!1,b("beforeHide",F),s!==void 0?s(F):b("hide",F))}function T(F){h.disable===!0&&F===!0?h["onUpdate:modelValue"]!==void 0&&b("update:modelValue",!1):F===!0!==t.value&&(F===!0?C:U)(p)}r.watch(()=>h.modelValue,T),i!==void 0&&zu(d)===!0&&r.watch(()=>E.$route.fullPath,()=>{i.value===!0&&t.value===!0&&B()}),c===!0&&r.onMounted(()=>{T(h.modelValue)});const G={show:k,hide:B,toggle:w};return Object.assign(E,G),G}const Rs={};let Im=1,Mm=document.body;function Lm(t,l){const i=document.createElement("div");if(i.id=l!==void 0?`q-portal--${l}--${Im++}`:t,Rs.globalNodes!==void 0){const u=Rs.globalNodes.class;u!==void 0&&(i.className=u)}return Mm.appendChild(i),i}function qm(t){t.remove()}const Nr=[];function Pm(t,l){do{if(t.$options.name==="QMenu"){if(t.hide(l),t.$props.separateClosePopup===!0)return Hi(t)}else if(t.__qPortal===!0){const i=Hi(t);return i!==void 0&&i.$options.name==="QPopupProxy"?(t.hide(l),i):t}t=Hi(t)}while(t!=null)}const Vm=We({name:"QPortal",setup(t,{slots:l}){return()=>l.default()}});function Nm(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 ll(t,l,i,u){const s=r.ref(!1),c=r.ref(!1);let d=null;const h={},b=u==="dialog"&&Nm(t);function E(w){if(w===!0){cs(h),c.value=!0;return}c.value=!1,s.value===!1&&(b===!1&&d===null&&(d=Lm(!1,u)),s.value=!0,Nr.push(t.proxy),Ih(h))}function p(w){if(c.value=!1,w!==!0)return;cs(h),s.value=!1;const k=Nr.indexOf(t.proxy);k!==-1&&Nr.splice(k,1),d!==null&&(qm(d),d=null)}return r.onUnmounted(()=>{p(!0)}),t.proxy.__qPortal=!0,bo(t.proxy,"contentEl",()=>l.value),{showPortal:E,hidePortal:p,portalIsActive:s,portalIsAccessible:c,renderPortal:()=>b===!0?i():s.value===!0?[r.h(r.Teleport,{to:d},r.h(Vm,i))]:void 0}}const $r={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function al(t,l=()=>{},i=()=>{}){return{transitionProps:r.computed(()=>{const u=`q-transition--${t.transitionShow||l()}`,s=`q-transition--${t.transitionHide||i()}`;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 ul(){let t;const l=r.getCurrentInstance();function i(){t=void 0}return r.onDeactivated(i),r.onBeforeUnmount(i),{removeTick:i,registerTick(u){t=u,r.nextTick(()=>{t===u&&(Mr(l)===!1&&t(),t=void 0)})}}}const Is=[Element,String],$m=[null,document,document.body,document.scrollingElement,document.documentElement];function Ms(t,l){let i=nm(l);if(i===void 0){if(t==null)return window;i=t.closest(".scroll,.scroll-y,.overflow-auto")}return $m.includes(i)?window:i}function Dm(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function Fm(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let Ro;function zm(){if(Ro!==void 0)return Ro;const t=document.createElement("p"),l=document.createElement("div");tl(t,{width:"100%",height:"200px"}),tl(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(t),document.body.appendChild(l);const i=t.offsetWidth;l.style.overflow="scroll";let u=t.offsetWidth;return i===u&&(u=l.clientWidth),l.remove(),Ro=i-u,Ro}function Um(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 $n=[];let dr;function Hm(t){dr=t.keyCode===27}function Wm(){dr===!0&&(dr=!1)}function Gm(t){dr===!0&&(dr=!1,Nn(t,27)===!0&&$n[$n.length-1](t))}function Ls(t){window[t]("keydown",Hm),window[t]("blur",Wm),window[t]("keyup",Gm),dr=!1}function qs(t){_t.is.desktop===!0&&($n.push(t),$n.length===1&&Ls("addEventListener"))}function Io(t){const l=$n.indexOf(t);l!==-1&&($n.splice(l,1),$n.length===0&&Ls("removeEventListener"))}const Dn=[];function Ps(t){Dn[Dn.length-1](t)}function Vs(t){_t.is.desktop===!0&&(Dn.push(t),Dn.length===1&&document.body.addEventListener("focusin",Ps))}function sl(t){const l=Dn.indexOf(t);l!==-1&&(Dn.splice(l,1),Dn.length===0&&document.body.removeEventListener("focusin",Ps))}const{notPassiveCapture:Mo}=dt,Fn=[];function Lo(t){const l=t.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let i=Nr.length-1;for(;i>=0;){const u=Nr[i].$;if(u.type.name==="QTooltip"){i--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;i--}for(let u=Fn.length-1;u>=0;u--){const s=Fn[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 Ns(t){Fn.push(t),Fn.length===1&&(document.addEventListener("mousedown",Lo,Mo),document.addEventListener("touchstart",Lo,Mo))}function qo(t){const l=Fn.findIndex(i=>i===t);l!==-1&&(Fn.splice(l,1),Fn.length===0&&(document.removeEventListener("mousedown",Lo,Mo),document.removeEventListener("touchstart",Lo,Mo)))}let $s,Ds;function Po(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 Fs(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const cl={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{cl[`${t}#ltr`]=t,cl[`${t}#rtl`]=t});function Vo(t,l){const i=t.split(" ");return{vertical:i[0],horizontal:cl[`${i[1]}#${l===!0?"rtl":"ltr"}`]}}function jm(t,l){let{top:i,left:u,right:s,bottom:c,width:d,height:h}=t.getBoundingClientRect();return l!==void 0&&(i-=l[1],u-=l[0],c+=l[1],s+=l[0],d+=l[0],h+=l[1]),{top:i,bottom:c,height:h,left:u,right:s,width:d,middle:u+(s-u)/2,center:i+(c-i)/2}}function Km(t,l,i){let{top:u,left:s}=t.getBoundingClientRect();return u+=l.top,s+=l.left,i!==void 0&&(u+=i[1],s+=i[0]),{top:u,bottom:u+1,height:1,left:s,right:s+1,width:1,middle:s,center:u}}function Qm(t,l){return{top:0,center:l/2,bottom:l,left:0,middle:t/2,right:t}}function zs(t,l,i,u){return{top:t[i.vertical]-l[u.vertical],left:t[i.horizontal]-l[u.horizontal]}}function fl(t,l=0){if(t.targetEl===null||t.anchorEl===null||l>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{fl(t,l+1)},10);return}const{targetEl:i,offset:u,anchorEl:s,anchorOrigin:c,selfOrigin:d,absoluteOffset:h,fit:b,cover:E,maxHeight:p,maxWidth:w}=t;if(_t.is.ios===!0&&window.visualViewport!==void 0){const K=document.body.style,{offsetLeft:j,offsetTop:ie}=window.visualViewport;j!==$s&&(K.setProperty("--q-pe-left",j+"px"),$s=j),ie!==Ds&&(K.setProperty("--q-pe-top",ie+"px"),Ds=ie)}const{scrollLeft:k,scrollTop:C}=i,B=h===void 0?jm(s,E===!0?[0,0]:u):Km(s,h,u);Object.assign(i.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:w||"100vw",maxHeight:p||"100vh",visibility:"visible"});const{offsetWidth:U,offsetHeight:T}=i,{elWidth:G,elHeight:F}=b===!0||E===!0?{elWidth:Math.max(B.width,U),elHeight:E===!0?Math.max(B.height,T):T}:{elWidth:U,elHeight:T};let N={maxWidth:w,maxHeight:p};(b===!0||E===!0)&&(N.minWidth=B.width+"px",E===!0&&(N.minHeight=B.height+"px")),Object.assign(i.style,N);const Q=Qm(G,F);let H=zs(B,Q,c,d);if(h===void 0||u===void 0)dl(H,B,Q,c,d);else{const{top:K,left:j}=H;dl(H,B,Q,c,d);let ie=!1;if(H.top!==K){ie=!0;const P=2*u[1];B.center=B.top-=P,B.bottom-=P+2}if(H.left!==j){ie=!0;const P=2*u[0];B.middle=B.left-=P,B.right-=P+2}ie===!0&&(H=zs(B,Q,c,d),dl(H,B,Q,c,d))}N={top:H.top+"px",left:H.left+"px"},H.maxHeight!==void 0&&(N.maxHeight=H.maxHeight+"px",B.height>H.maxHeight&&(N.minHeight=N.maxHeight)),H.maxWidth!==void 0&&(N.maxWidth=H.maxWidth+"px",B.width>H.maxWidth&&(N.minWidth=N.maxWidth)),Object.assign(i.style,N),i.scrollTop!==C&&(i.scrollTop=C),i.scrollLeft!==k&&(i.scrollLeft=k)}function dl(t,l,i,u,s){const c=i.bottom,d=i.right,h=zm(),b=window.innerHeight-h,E=document.body.clientWidth;if(t.top<0||t.top+c>b)if(s.vertical==="center")t.top=l[u.vertical]>b/2?Math.max(0,b-c):0,t.maxHeight=Math.min(c,b);else if(l[u.vertical]>b/2){const p=Math.min(b,u.vertical==="center"?l.center:u.vertical===s.vertical?l.bottom:l.top);t.maxHeight=Math.min(c,p),t.top=Math.max(0,p-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,b-t.top);if(t.left<0||t.left+d>E)if(t.maxWidth=Math.min(d,E),s.horizontal==="middle")t.left=l[u.horizontal]>E/2?Math.max(0,E-d):0;else if(l[u.horizontal]>E/2){const p=Math.min(E,u.horizontal==="middle"?l.middle:u.horizontal===s.horizontal?l.right:l.left);t.maxWidth=Math.min(d,p),t.left=Math.max(0,p-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(d,E-t.left)}const Ym=We({name:"QMenu",inheritAttrs:!1,props:{...Rm,...rl,...qn,...$r,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Po},self:{type:String,validator:Po},offset:{type:Array,validator:Fs},scrollTarget:Is,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...ol,"click","escapeKey"],setup(t,{slots:l,emit:i,attrs:u}){let s=null,c,d,h;const b=r.getCurrentInstance(),{proxy:E}=b,{$q:p}=E,w=r.ref(null),k=r.ref(!1),C=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),B=Pn(t,p),{registerTick:U,removeTick:T}=ul(),{registerTimeout:G}=Lr(),{transitionProps:F,transitionStyle:N}=al(t),{localScrollTarget:Q,changeScrollEvent:H,unconfigureScrollTarget:K}=Ts(t,Z),{anchorEl:j,canShow:ie}=Bs({showing:k}),{hide:P}=il({showing:k,canShow:ie,handleShow:me,handleHide:R,hideOnRouteChange:C,processOnMount:!0}),{showPortal:$,hidePortal:Y,renderPortal:O}=ll(b,w,Ee,"menu"),te={anchorEl:j,innerRef:w,onClickOutside(X){if(t.persistent!==!0&&k.value===!0)return P(X),(X.type==="touchstart"||X.target.classList.contains("q-dialog__backdrop"))&&Ge(X),!0}},V=r.computed(()=>Vo(t.anchor||(t.cover===!0?"center middle":"bottom start"),p.lang.rtl)),le=r.computed(()=>t.cover===!0?V.value:Vo(t.self||"top start",p.lang.rtl)),ae=r.computed(()=>(t.square===!0?" q-menu--square":"")+(B.value===!0?" q-menu--dark q-dark":"")),z=r.computed(()=>t.autoClose===!0?{onClick:ge}:{}),se=r.computed(()=>k.value===!0&&t.persistent!==!0);r.watch(se,X=>{X===!0?(qs(W),Ns(te)):(Io(W),qo(te))});function Ae(){Ao(()=>{let X=w.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 me(X){if(s=t.noRefocus===!1?document.activeElement:null,Vs(ce),$(),Z(),c=void 0,X!==void 0&&(t.touchPosition||t.contextMenu)){const $e=Yu(X);if($e.left!==void 0){const{top:at,left:Ft}=j.value.getBoundingClientRect();c={left:$e.left-Ft,top:$e.top-at}}}d===void 0&&(d=r.watch(()=>p.screen.width+"|"+p.screen.height+"|"+t.self+"|"+t.anchor+"|"+p.lang.rtl,re)),t.noFocus!==!0&&document.activeElement.blur(),U(()=>{re(),t.noFocus!==!0&&Ae()}),G(()=>{p.platform.is.ios===!0&&(h=t.autoClose,w.value.click()),re(),$(!0),i("show",X)},t.transitionDuration)}function R(X){T(),Y(),A(!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(()=>{Y(!0),i("hide",X)},t.transitionDuration)}function A(X){c=void 0,d!==void 0&&(d(),d=void 0),(X===!0||k.value===!0)&&(sl(ce),K(),qo(te),Io(W)),X!==!0&&(s=null)}function Z(){(j.value!==null||t.scrollTarget!==void 0)&&(Q.value=Ms(j.value,t.scrollTarget),H(Q.value,re))}function ge(X){h!==!0?(Pm(E,X),i("click",X)):h=!1}function ce(X){se.value===!0&&t.noFocus!==!0&&ps(w.value,X.target)!==!0&&Ae()}function W(X){i("escapeKey"),P(X)}function re(){fl({targetEl:w.value,offset:t.offset,anchorEl:j.value,anchorOrigin:V.value,selfOrigin:le.value,absoluteOffset:c,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ee(){return r.h(r.Transition,F.value,()=>k.value===!0?r.h("div",{role:"menu",...u,ref:w,tabindex:-1,class:["q-menu q-position-engine scroll"+ae.value,u.class],style:[u.style,N.value],...z.value},lt(l.default)):null)}return r.onBeforeUnmount(A),Object.assign(E,{focus:Ae,updatePosition:re}),O}});function Zm(t,l,i){function u(){}return r.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Dr=0,hl,ml,Fr,gl=!1,Us,Hs,Ws,zn=null;function Xm(t){Jm(t)&&Ge(t)}function Jm(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const l=_h(t),i=t.shiftKey&&!t.deltaX,u=!i&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),s=i||u?t.deltaY:t.deltaX;for(let c=0;c<l.length;c++){const d=l[c];if(Um(d,u))return u?s<0&&d.scrollTop===0?!0:s>0&&d.scrollTop+d.clientHeight===d.scrollHeight:s<0&&d.scrollLeft===0?!0:s>0&&d.scrollLeft+d.clientWidth===d.scrollWidth}return!0}function Gs(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function No(t){gl!==!0&&(gl=!0,requestAnimationFrame(()=>{gl=!1;const{height:l}=t.target,{clientHeight:i,scrollTop:u}=document.scrollingElement;(Fr===void 0||l!==window.innerHeight)&&(Fr=i-l,document.scrollingElement.scrollTop=u),u>Fr&&(document.scrollingElement.scrollTop-=Math.ceil((u-Fr)/8))}))}function js(t){const l=document.body,i=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(l);hl=Fm(window),ml=Dm(window),Us=l.style.left,Hs=l.style.top,Ws=window.location.href,l.style.left=`-${hl}px`,l.style.top=`-${ml}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&&(i===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",No,dt.passiveCapture),window.visualViewport.addEventListener("scroll",No,dt.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Gs,dt.passiveCapture))}_t.is.desktop===!0&&_t.is.mac===!0&&window[`${t}EventListener`]("wheel",Xm,dt.notPassive),t==="remove"&&(_t.is.ios===!0&&(i===!0?(window.visualViewport.removeEventListener("resize",No,dt.passiveCapture),window.visualViewport.removeEventListener("scroll",No,dt.passiveCapture)):window.removeEventListener("scroll",Gs,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=Us,l.style.top=Hs,window.location.href===Ws&&window.scrollTo(hl,ml),Fr=void 0)}function eg(t){let l="add";if(t===!0){if(Dr++,zn!==null){clearTimeout(zn),zn=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){zn!==null&&clearTimeout(zn),zn=setTimeout(()=>{js(l),zn=null},100);return}}js(l)}function tg(){let t;return{preventBodyScroll(l){l!==t&&(t!==void 0||l===!0)&&(t=l,eg(l))}}}let $o=0;const ng={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"},Ks={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},rg=We({name:"QDialog",inheritAttrs:!1,props:{...rl,...$r,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:[...ol,"shake","click","escapeKey"],setup(t,{slots:l,emit:i,attrs:u}){const s=r.getCurrentInstance(),c=r.ref(null),d=r.ref(!1),h=r.ref(!1);let b=null,E=null,p,w;const k=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:C}=tg(),{registerTimeout:B}=Lr(),{registerTick:U,removeTick:T}=ul(),{transitionProps:G,transitionStyle:F}=al(t,()=>Ks[t.position][0],()=>Ks[t.position][1]),N=r.computed(()=>F.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Q,hidePortal:H,portalIsAccessible:K,renderPortal:j}=ll(s,c,ce,"dialog"),{hide:ie}=il({showing:d,hideOnRouteChange:k,handleShow:le,handleHide:ae,processOnMount:!0}),{addToHistory:P,removeFromHistory:$}=Zm(d),Y=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${ng[t.position]}`+(h.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":"")),O=r.computed(()=>d.value===!0&&t.seamless!==!0),te=r.computed(()=>t.autoClose===!0?{onClick:A}:{}),V=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${O.value===!0?"modal":"seamless"}`,u.class]);r.watch(()=>t.maximized,W=>{d.value===!0&&R(W)}),r.watch(O,W=>{C(W),W===!0?(Vs(ge),qs(Ae)):(sl(ge),Io(Ae))});function le(W){P(),E=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,R(t.maximized),Q(),h.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),U(z)):T(),B(()=>{if(s.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:re,bottom:Ee}=document.activeElement.getBoundingClientRect(),{innerHeight:X}=window,$e=window.visualViewport!==void 0?window.visualViewport.height:X;re>0&&Ee>$e/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-$e,Ee>=X?1/0:Math.ceil(document.scrollingElement.scrollTop+Ee-$e/2))),document.activeElement.scrollIntoView()}w=!0,c.value.click(),w=!1}Q(!0),h.value=!1,i("show",W)},t.transitionDuration)}function ae(W){T(),$(),me(!0),h.value=!0,H(),E!==null&&(((W&&W.type.indexOf("key")===0?E.closest('[tabindex]:not([tabindex^="-"])'):void 0)||E).focus(),E=null),B(()=>{H(!0),h.value=!1,i("hide",W)},t.transitionDuration)}function z(W){Ao(()=>{let re=c.value;if(re!==null){if(W!==void 0){const Ee=re.querySelector(W);if(Ee!==null){Ee.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 se(W){W&&typeof W.focus=="function"?W.focus({preventScroll:!0}):z(),i("shake");const re=c.value;re!==null&&(re.classList.remove("q-animate--scale"),re.classList.add("q-animate--scale"),b!==null&&clearTimeout(b),b=setTimeout(()=>{b=null,c.value!==null&&(re.classList.remove("q-animate--scale"),z())},170))}function Ae(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&se():(i("escapeKey"),ie()))}function me(W){b!==null&&(clearTimeout(b),b=null),(W===!0||d.value===!0)&&(R(!1),t.seamless!==!0&&(C(!1),sl(ge),Io(Ae))),W!==!0&&(E=null)}function R(W){W===!0?p!==!0&&($o<1&&document.body.classList.add("q-body--dialog"),$o++,p=!0):p===!0&&($o<2&&document.body.classList.remove("q-body--dialog"),$o--,p=!1)}function A(W){w!==!0&&(ie(W),i("click",W))}function Z(W){t.persistent!==!0&&t.noBackdropDismiss!==!0?ie(W):t.noShake!==!0&&se()}function ge(W){t.allowFocusOutside!==!0&&K.value===!0&&ps(c.value,W.target)!==!0&&z('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:z,shake:se,__updateRefocusTarget(W){E=W||null}}),r.onBeforeUnmount(me);function ce(){return r.h("div",{role:"dialog","aria-modal":O.value===!0?"true":"false",...u,class:V.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>O.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,()=>d.value===!0?r.h("div",{ref:c,class:Y.value,style:F.value,tabindex:-1,...te.value},lt(l.default)):null)])}return j}});let Do=!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,Do=t.scrollLeft>=0,t.remove()}const Dt=1e3,og=["start","center","end","start-force","center-force","end-force"],Qs=Array.prototype.filter,ig=window.getComputedStyle(document.body).overflowAnchor===void 0?vh:function(t,l){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const i=t.children||[];Qs.call(i,s=>s.dataset&&s.dataset.qVsAnchor!==void 0).forEach(s=>{delete s.dataset.qVsAnchor});const u=i[l];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function hr(t,l){return t+l}function pl(t,l,i,u,s,c,d,h){const b=t===window?document.scrollingElement||document.documentElement:t,E=s===!0?"offsetWidth":"offsetHeight",p={scrollStart:0,scrollViewSize:-d-h,scrollMaxSize:0,offsetStart:-d,offsetEnd:-h};if(s===!0?(t===window?(p.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,p.scrollViewSize+=document.documentElement.clientWidth):(p.scrollStart=b.scrollLeft,p.scrollViewSize+=b.clientWidth),p.scrollMaxSize=b.scrollWidth,c===!0&&(p.scrollStart=(Do===!0?p.scrollMaxSize-p.scrollViewSize:0)-p.scrollStart)):(t===window?(p.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,p.scrollViewSize+=document.documentElement.clientHeight):(p.scrollStart=b.scrollTop,p.scrollViewSize+=b.clientHeight),p.scrollMaxSize=b.scrollHeight),i!==null)for(let w=i.previousElementSibling;w!==null;w=w.previousElementSibling)w.classList.contains("q-virtual-scroll--skip")===!1&&(p.offsetStart+=w[E]);if(u!==null)for(let w=u.nextElementSibling;w!==null;w=w.nextElementSibling)w.classList.contains("q-virtual-scroll--skip")===!1&&(p.offsetEnd+=w[E]);if(l!==t){const w=b.getBoundingClientRect(),k=l.getBoundingClientRect();s===!0?(p.offsetStart+=k.left-w.left,p.offsetEnd-=k.width):(p.offsetStart+=k.top-w.top,p.offsetEnd-=k.height),t!==window&&(p.offsetStart+=p.scrollStart),p.offsetEnd+=p.scrollMaxSize-p.offsetStart}return p}function Ys(t,l,i,u){l==="end"&&(l=(t===window?document.body:t)[i===!0?"scrollWidth":"scrollHeight"]),t===window?i===!0?(u===!0&&(l=(Do===!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):i===!0?(u===!0&&(l=(Do===!0?t.scrollWidth-t.offsetWidth:0)-l),t.scrollLeft=l):t.scrollTop=l}function zr(t,l,i,u){if(i>=u)return 0;const s=l.length,c=Math.floor(i/Dt),d=Math.floor((u-1)/Dt)+1;let h=t.slice(c,d).reduce(hr,0);return i%Dt!==0&&(h-=l.slice(c*Dt,i).reduce(hr,0)),u%Dt!==0&&u!==s&&(h-=l.slice(u,d*Dt).reduce(hr,0)),h}const Zs={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 lg({virtualScrollLength:t,getVirtualScrollTarget:l,getVirtualScrollEl:i,virtualScrollItemSizeComputed:u}){const s=r.getCurrentInstance(),{props:c,emit:d,proxy:h}=s,{$q:b}=h;let E,p,w,k=[],C;const B=r.ref(0),U=r.ref(0),T=r.ref({}),G=r.ref(null),F=r.ref(null),N=r.ref(null),Q=r.ref({from:0,to:0}),H=r.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);u===void 0&&(u=r.computed(()=>c.virtualScrollItemSize));const K=r.computed(()=>u.value+";"+c.virtualScrollHorizontal),j=r.computed(()=>K.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);r.watch(j,()=>{ae()}),r.watch(K,ie);function ie(){le(p,!0)}function P(R){le(R===void 0?p:R)}function $(R,A){const Z=l();if(Z==null||Z.nodeType===8)return;const ge=pl(Z,i(),G.value,F.value,c.virtualScrollHorizontal,b.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);w!==ge.scrollViewSize&&ae(ge.scrollViewSize),O(Z,ge,Math.min(t.value-1,Math.max(0,parseInt(R,10)||0)),0,og.indexOf(A)!==-1?A:p!==-1&&R>p?"end":"start")}function Y(){const R=l();if(R==null||R.nodeType===8)return;const A=pl(R,i(),G.value,F.value,c.virtualScrollHorizontal,b.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),Z=t.value-1,ge=A.scrollMaxSize-A.offsetStart-A.offsetEnd-U.value;if(E===A.scrollStart)return;if(A.scrollMaxSize<=0){O(R,A,0,0);return}w!==A.scrollViewSize&&ae(A.scrollViewSize),te(Q.value.from);const ce=Math.floor(A.scrollMaxSize-Math.max(A.scrollViewSize,A.offsetEnd)-Math.min(C[Z],A.scrollViewSize/2));if(ce>0&&Math.ceil(A.scrollStart)>=ce){O(R,A,Z,A.scrollMaxSize-A.offsetEnd-k.reduce(hr,0));return}let W=0,re=A.scrollStart-A.offsetStart,Ee=re;if(re<=ge&&re+A.scrollViewSize>=B.value)re-=B.value,W=Q.value.from,Ee=re;else for(let X=0;re>=k[X]&&W<Z;X++)re-=k[X],W+=Dt;for(;re>0&&W<Z;)re-=C[W],re>-A.scrollViewSize?(W++,Ee=re):Ee=C[W]+re;O(R,A,W,Ee)}function O(R,A,Z,ge,ce){const W=typeof ce=="string"&&ce.indexOf("-force")!==-1,re=W===!0?ce.replace("-force",""):ce,Ee=re!==void 0?re:"start";let X=Math.max(0,Z-T.value[Ee]),$e=X+T.value.total;$e>t.value&&($e=t.value,X=Math.max(0,$e-T.value.total)),E=A.scrollStart;const at=X!==Q.value.from||$e!==Q.value.to;if(at===!1&&re===void 0){se(Z);return}const{activeElement:Ft}=document,bt=N.value;at===!0&&bt!==null&&bt!==Ft&&bt.contains(Ft)===!0&&(bt.addEventListener("focusout",V),setTimeout(()=>{bt!==null&&bt.removeEventListener("focusout",V)})),ig(bt,Z-X);const rt=re!==void 0?C.slice(X,Z).reduce(hr,0):0;if(at===!0){const wt=$e>=Q.value.from&&X<=Q.value.to?Q.value.to:$e;Q.value={from:X,to:wt},B.value=zr(k,C,0,X),U.value=zr(k,C,$e,t.value),requestAnimationFrame(()=>{Q.value.to!==$e&&E===A.scrollStart&&(Q.value={from:Q.value.from,to:$e},U.value=zr(k,C,$e,t.value))})}requestAnimationFrame(()=>{if(E!==A.scrollStart)return;at===!0&&te(X);const wt=C.slice(X,Z).reduce(hr,0),tn=wt+A.offsetStart+B.value,ht=tn+C[Z];let yn=tn+ge;if(re!==void 0){const Ur=wt-rt,zt=A.scrollStart+Ur;yn=W!==!0&&zt<tn&&ht<zt+A.scrollViewSize?zt:re==="end"?ht-A.scrollViewSize:tn-(re==="start"?0:Math.round((A.scrollViewSize-C[Z])/2))}E=yn,Ys(R,yn,c.virtualScrollHorizontal,b.lang.rtl),se(Z)})}function te(R){const A=N.value;if(A){const Z=Qs.call(A.children,X=>X.classList&&X.classList.contains("q-virtual-scroll--skip")===!1),ge=Z.length,ce=c.virtualScrollHorizontal===!0?X=>X.getBoundingClientRect().width:X=>X.offsetHeight;let W=R,re,Ee;for(let X=0;X<ge;){for(re=ce(Z[X]),X++;X<ge&&Z[X].classList.contains("q-virtual-scroll--with-prev")===!0;)re+=ce(Z[X]),X++;Ee=re-C[W],Ee!==0&&(C[W]+=Ee,k[Math.floor(W/Dt)]+=Ee),W++}}}function V(){N.value!==null&&N.value!==void 0&&N.value.focus()}function le(R,A){const Z=1*u.value;(A===!0||Array.isArray(C)===!1)&&(C=[]);const ge=C.length;C.length=t.value;for(let W=t.value-1;W>=ge;W--)C[W]=Z;const ce=Math.floor((t.value-1)/Dt);k=[];for(let W=0;W<=ce;W++){let re=0;const Ee=Math.min((W+1)*Dt,t.value);for(let X=W*Dt;X<Ee;X++)re+=C[X];k.push(re)}p=-1,E=void 0,B.value=zr(k,C,0,Q.value.from),U.value=zr(k,C,Q.value.to,t.value),R>=0?(te(Q.value.from),r.nextTick(()=>{$(R)})):Ae()}function ae(R){if(R===void 0&&typeof window<"u"){const re=l();re!=null&&re.nodeType!==8&&(R=pl(re,i(),G.value,F.value,c.virtualScrollHorizontal,b.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}w=R;const A=parseFloat(c.virtualScrollSliceRatioBefore)||0,Z=parseFloat(c.virtualScrollSliceRatioAfter)||0,ge=1+A+Z,ce=R===void 0||R<=0?1:Math.ceil(R/u.value),W=Math.max(1,ce,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/ge));T.value={total:Math.ceil(W*ge),start:Math.ceil(W*A),center:Math.ceil(W*(.5+A)),end:Math.ceil(W*(1+A)),view:ce}}function z(R,A){const Z=c.virtualScrollHorizontal===!0?"width":"height",ge={["--q-virtual-scroll-item-"+Z]:u.value+"px"};return[R==="tbody"?r.h(R,{class:"q-virtual-scroll__padding",key:"before",ref:G},[r.h("tr",[r.h("td",{style:{[Z]:`${B.value}px`,...ge},colspan:H.value})])]):r.h(R,{class:"q-virtual-scroll__padding",key:"before",ref:G,style:{[Z]:`${B.value}px`,...ge}}),r.h(R,{class:"q-virtual-scroll__content",key:"content",ref:N,tabindex:-1},A.flat()),R==="tbody"?r.h(R,{class:"q-virtual-scroll__padding",key:"after",ref:F},[r.h("tr",[r.h("td",{style:{[Z]:`${U.value}px`,...ge},colspan:H.value})])]):r.h(R,{class:"q-virtual-scroll__padding",key:"after",ref:F,style:{[Z]:`${U.value}px`,...ge}})]}function se(R){p!==R&&(c.onVirtualScroll!==void 0&&d("virtualScroll",{index:R,from:Q.value.from,to:Q.value.to-1,direction:R<p?"decrease":"increase",ref:h}),p=R)}ae();const Ae=us(Y,b.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{ae()});let me=!1;return r.onDeactivated(()=>{me=!0}),r.onActivated(()=>{if(me!==!0)return;const R=l();E!==void 0&&R!==void 0&&R!==null&&R.nodeType!==8?Ys(R,E,c.virtualScrollHorizontal,b.lang.rtl):$(p)}),r.onBeforeUnmount(()=>{Ae.cancel()}),Object.assign(h,{scrollTo:$,reset:ie,refresh:P}),{virtualScrollSliceRange:Q,virtualScrollSliceSizeComputed:T,setVirtualScrollSize:ae,onVirtualScrollEvt:Ae,localResetVirtualScroll:le,padVirtualScroll:z,scrollTo:$,reset:ie,refresh:P}}function Xs(t,l,i){if(i<=l)return l;const u=i-l+1;let s=l+(t-l)%u;return s<l&&(s=u+s),s===0?0:s}const Js=t=>["add","add-unique","toggle"].includes(t),ag=".*+?^${}()|[]\\",ug=Object.keys(Bo),ec=We({name:"QSelect",inheritAttrs:!1,props:{...Zs,...Gi,...Bo,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:Js},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:Zs.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Yi,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:l,emit:i}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c=r.ref(!1),d=r.ref(!1),h=r.ref(-1),b=r.ref(""),E=r.ref(!1),p=r.ref(!1);let w=null,k=null,C,B,U,T=null,G,F,N,Q;const H=r.ref(null),K=r.ref(null),j=r.ref(null),ie=r.ref(null),P=r.ref(null),$=Qu(t),Y=ms(Ko),O=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:V,virtualScrollSliceSizeComputed:le,localResetVirtualScroll:ae,padVirtualScroll:z,onVirtualScrollEvt:se,scrollTo:Ae,setVirtualScrollSize:me}=lg({virtualScrollLength:O,getVirtualScrollTarget:Go,getVirtualScrollEl:Wr,virtualScrollItemSizeComputed:te}),R=Zi(),A=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&&C!==void 0?C:[],ve=ne.map(Ie=>Hr(Ie,J));return t.modelValue===null&&_===!0?ve.filter(Ie=>Ie!==null):ve}return ne}),Z=r.computed(()=>{const _={};return ug.forEach(ne=>{const J=t[ne];J!==void 0&&(_[ne]=J)}),_}),ge=r.computed(()=>t.optionsDark===null?R.isDark.value:t.optionsDark),ce=r.computed(()=>Vr(A.value)),W=r.computed(()=>{let _="q-field__input q-placeholder col";return t.hideSelected===!0||A.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:"")),Ee=r.computed(()=>O.value===0),X=r.computed(()=>A.value.map(_=>Qe.value(_)).join(", ")),$e=r.computed(()=>t.displayValue!==void 0?t.displayValue:X.value),at=r.computed(()=>t.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Ft=r.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||A.value.some(at.value))),bt=r.computed(()=>R.focused.value===!0?t.tabindex:-1),rt=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":`${R.targetUid.value}_lb`};return h.value>=0&&(_["aria-activedescendant"]=`${R.targetUid.value}_${h.value}`),_}),wt=r.computed(()=>({id:`${R.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),tn=r.computed(()=>A.value.map((_,ne)=>({index:ne,opt:_,html:at.value(_),selected:!0,removeAtIndex:bn,toggleOption:Ht,tabindex:bt.value}))),ht=r.computed(()=>{if(O.value===0)return[];const{from:_,to:ne}=V.value;return t.options.slice(_,ne).map((J,ve)=>{const Ie=Ut.value(J)===!0,Te=Wn(J)===!0,Ke=_+ve,Ve={clickable:!0,active:Te,activeClass:zt.value,manualFocus:!0,focused:!1,disable:Ie,tabindex:-1,dense:t.optionsDense,dark:ge.value,role:"option","aria-selected":Te===!0?"true":"false",id:`${R.targetUid.value}_${Ke}`,onClick:()=>{Ht(J)}};return Ie!==!0&&(h.value===Ke&&(Ve.focused=!0),s.platform.is.desktop===!0&&(Ve.onMousemove=()=>{c.value===!0&&Yt(Ke)})),{index:Ke,opt:J,html:at.value(J),label:Qe.value(J),selected:Ve.active,focused:Ve.focused,toggleOption:Ht,setOptionIndex:Yt,itemProps:Ve}})}),yn=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),zt=r.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=r.computed(()=>Hn(t.optionValue,"value")),Qe=r.computed(()=>Hn(t.optionLabel,"label")),Ut=r.computed(()=>Hn(t.optionDisable,"disable")),mr=r.computed(()=>A.value.map(_=>Fe.value(_))),Un=r.computed(()=>{const _={onInput:Ko,onChange:Y,onKeydown:Wo,onKeyup:Uo,onKeypress:Ho,onFocus:pr,onClick(ne){B===!0&&Qt(ne)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=Y,_});r.watch(A,_=>{C=_,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&R.innerLoading.value!==!0&&(d.value!==!0&&c.value!==!0||ce.value!==!0)&&(U!==!0&&on(),(d.value===!0||c.value===!0)&&Sn(""))},{immediate:!0}),r.watch(()=>t.fillInput,on),r.watch(c,Kr),r.watch(O,Al);function zo(_){return t.emitValue===!0?Fe.value(_):_}function nn(_){if(_!==-1&&_<A.value.length)if(t.multiple===!0){const ne=t.modelValue.slice();i("remove",{index:_,value:ne.splice(_,1)[0]}),i("update:modelValue",ne)}else i("update:modelValue",null)}function bn(_){nn(_),R.focus()}function gr(_,ne){const J=zo(_);if(t.multiple!==!0){t.fillInput===!0&&jn(Qe.value(_),!0,!0),i("update:modelValue",J);return}if(A.value.length===0){i("add",{index:0,value:J}),i("update:modelValue",t.multiple===!0?[J]:J);return}if(ne===!0&&Wn(_)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const ve=t.modelValue.slice();i("add",{index:ve.length,value:J}),ve.push(J),i("update:modelValue",ve)}function Ht(_,ne){if(R.editable.value!==!0||_===void 0||Ut.value(_)===!0)return;const J=Fe.value(_);if(t.multiple!==!0){ne!==!0&&(jn(t.fillInput===!0?Qe.value(_):"",!0,!0),rn()),K.value!==null&&K.value.focus(),(A.value.length===0||en(Fe.value(A.value[0]),J)!==!0)&&i("update:modelValue",t.emitValue===!0?J:_);return}if((B!==!0||E.value===!0)&&R.focus(),pr(),A.value.length===0){const Te=t.emitValue===!0?J:_;i("add",{index:0,value:Te}),i("update:modelValue",t.multiple===!0?[Te]:Te);return}const ve=t.modelValue.slice(),Ie=mr.value.findIndex(Te=>en(Te,J));if(Ie!==-1)i("remove",{index:Ie,value:ve.splice(Ie,1)[0]});else{if(t.maxValues!==void 0&&ve.length>=t.maxValues)return;const Te=t.emitValue===!0?J:_;i("add",{index:ve.length,value:Te}),ve.push(Te)}i("update:modelValue",ve)}function Yt(_){if(s.platform.is.desktop!==!0)return;const ne=_!==-1&&_<O.value?_:-1;h.value!==ne&&(h.value=ne)}function wn(_=1,ne){if(c.value===!0){let J=h.value;do J=Xs(J+_,-1,O.value-1);while(J!==-1&&J!==h.value&&Ut.value(t.options[J])===!0);h.value!==J&&(Yt(J),Ae(J),ne!==!0&&t.useInput===!0&&t.fillInput===!0&&Gn(J>=0?Qe.value(t.options[J]):G,!0))}}function Hr(_,ne){const J=ve=>en(Fe.value(ve),_);return t.options.find(J)||ne.find(J)||_}function Hn(_,ne){const J=_!==void 0?_:ne;return typeof J=="function"?J:ve=>ve!==null&&typeof ve=="object"&&J in ve?ve[J]:ve}function Wn(_){const ne=Fe.value(_);return mr.value.find(J=>en(J,ne))!==void 0}function pr(_){t.useInput===!0&&K.value!==null&&(_===void 0||K.value===_.target&&_.target.value===X.value)&&K.value.select()}function vr(_){Nn(_,27)===!0&&c.value===!0&&(Qt(_),rn(),on()),i("keyup",_)}function Uo(_){const{value:ne}=_.target;if(_.keyCode!==void 0){vr(_);return}if(_.target.value="",w!==null&&(clearTimeout(w),w=null),k!==null&&(clearTimeout(k),k=null),on(),typeof ne=="string"&&ne.length!==0){const J=ne.toLocaleLowerCase(),ve=Te=>{const Ke=t.options.find(Ve=>Te.value(Ve).toLocaleLowerCase()===J);return Ke===void 0?!1:(A.value.indexOf(Ke)===-1?Ht(Ke):rn(),!0)},Ie=Te=>{ve(Fe)!==!0&&(ve(Qe)===!0||Te===!0||Sn(ne,!0,()=>Ie(!0)))};Ie()}else R.clearValue(_)}function Ho(_){i("keypress",_)}function Wo(_){if(i("keydown",_),Ji(_)===!0)return;const ne=b.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),J=_.shiftKey!==!0&&t.multiple!==!0&&(h.value!==-1||ne===!0);if(_.keyCode===27){$t(_);return}if(_.keyCode===9&&J===!1){Cn();return}if(_.target===void 0||_.target.id!==R.targetUid.value||R.editable.value!==!0)return;if(_.keyCode===40&&R.innerLoading.value!==!0&&c.value===!1){Ge(_),xn();return}if(_.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&b.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?nn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&i("update:modelValue",null);return}(_.keyCode===35||_.keyCode===36)&&(typeof b.value!="string"||b.value.length===0)&&(Ge(_),h.value=-1,wn(_.keyCode===36?1:-1,t.multiple)),(_.keyCode===33||_.keyCode===34)&&le.value!==void 0&&(Ge(_),h.value=Math.max(-1,Math.min(O.value,h.value+(_.keyCode===33?-1:1)*le.value.view)),wn(_.keyCode===33?1:-1,t.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ge(_),wn(_.keyCode===38?-1:1,t.multiple));const ve=O.value;if((N===void 0||Q<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&&xn(_);const Ie=_.key.toLocaleLowerCase(),Te=N.length===1&&N[0]===Ie;Q=Date.now()+1500,Te===!1&&(Ge(_),N+=Ie);const Ke=new RegExp("^"+N.split("").map(_r=>ag.indexOf(_r)!==-1?"\\"+_r:_r).join(".*"),"i");let Ve=h.value;if(Te===!0||Ve<0||Ke.test(Qe.value(t.options[Ve]))!==!0)do Ve=Xs(Ve+1,-1,ve-1);while(Ve!==h.value&&(Ut.value(t.options[Ve])===!0||Ke.test(Qe.value(t.options[Ve]))!==!0));h.value!==Ve&&r.nextTick(()=>{Yt(Ve),Ae(Ve),Ve>=0&&t.useInput===!0&&t.fillInput===!0&&Gn(Qe.value(t.options[Ve]),!0)});return}if(!(_.keyCode!==13&&(_.keyCode!==32||t.useInput===!0||N!=="")&&(_.keyCode!==9||J===!1))){if(_.keyCode!==9&&Ge(_),h.value!==-1&&h.value<ve){Ht(t.options[h.value]);return}if(ne===!0){const Ie=(Te,Ke)=>{if(Ke){if(Js(Ke)!==!0)return}else Ke=t.newValueMode;if(jn("",t.multiple!==!0,!0),Te==null)return;(Ke==="toggle"?Ht:gr)(Te,Ke==="add-unique"),t.multiple!==!0&&(K.value!==null&&K.value.focus(),rn())};if(t.onNewValue!==void 0?i("newValue",b.value,Ie):Ie(b.value),t.multiple!==!0)return}c.value===!0?Cn():R.innerLoading.value!==!0&&xn()}}function Wr(){return B===!0?P.value:j.value!==null&&j.value.contentEl!==null?j.value.contentEl:void 0}function Go(){return Wr()}function yl(){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(Om,{key:"option-"+ne,removable:R.editable.value===!0&&Ut.value(_.opt)!==!0,dense:!0,textColor:t.color,tabindex:bt.value,onRemove(){_.removeAtIndex(ne)}},()=>r.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:Qe.value(_.opt)}))):[r.h("span",{[Ft.value===!0?"innerHTML":"textContent"]:$e.value})]}function jo(){if(Ee.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:b.value}):void 0;const _=l.option!==void 0?l.option:J=>r.h(Am,{key:J.index,...J.itemProps},()=>r.h(Bm,()=>r.h(Tm,()=>r.h("span",{[J.html===!0?"innerHTML":"textContent"]:J.label}))));let ne=z("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?{...rt.value,...R.splitAttrs.attributes.value}:void 0,ve={ref:ne===!0?K:void 0,key:"i_t",class:W.value,style:t.inputStyle,value:b.value!==void 0?b.value:"",type:"search",...J,id:ne===!0?R.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,...Un.value};return _!==!0&&B===!0&&(Array.isArray(ve.class)===!0?ve.class=[...ve.class,"no-pointer-events"]:ve.class+=" no-pointer-events"),r.h("input",ve)}function Ko(_){w!==null&&(clearTimeout(w),w=null),k!==null&&(clearTimeout(k),k=null),!(_&&_.target&&_.target.qComposing===!0)&&(Gn(_.target.value||""),U=!0,G=b.value,R.focused.value!==!0&&(B!==!0||E.value===!0)&&R.focus(),t.onFilter!==void 0&&(w=setTimeout(()=>{w=null,Sn(b.value)},t.inputDebounce)))}function Gn(_,ne){b.value!==_&&(b.value=_,ne===!0||t.inputDebounce===0||t.inputDebounce==="0"?i("inputValue",_):k=setTimeout(()=>{k=null,i("inputValue",_)},t.inputDebounce))}function jn(_,ne,J){U=J!==!0,t.useInput===!0&&(Gn(_,!0),(ne===!0||J!==!0)&&(G=_),ne!==!0&&Sn(_))}function Sn(_,ne,J){if(t.onFilter===void 0||ne!==!0&&R.focused.value!==!0)return;R.innerLoading.value===!0?i("filterAbort"):(R.innerLoading.value=!0,p.value=!0),_!==""&&t.multiple!==!0&&A.value.length!==0&&U!==!0&&_===Qe.value(A.value[0])&&(_="");const ve=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);T!==null&&clearTimeout(T),T=ve,i("filter",_,(Ie,Te)=>{(ne===!0||R.focused.value===!0)&&T===ve&&(clearTimeout(T),typeof Ie=="function"&&Ie(),p.value=!1,r.nextTick(()=>{R.innerLoading.value=!1,R.editable.value===!0&&(ne===!0?c.value===!0&&rn():c.value===!0?Kr(!0):c.value=!0),typeof Te=="function"&&r.nextTick(()=>{Te(u)}),typeof J=="function"&&r.nextTick(()=>{J(u)})}))},()=>{R.focused.value===!0&&T===ve&&(clearTimeout(T),R.innerLoading.value=!1,p.value=!1),c.value===!0&&(c.value=!1)})}function wl(){return r.h(Ym,{ref:j,class:re.value,style:t.popupContentStyle,modelValue:c.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Ee.value!==!0&&t.useInput!==!0,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:ge.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:se,onBeforeShow:Yo,onBeforeHide:Gr,onShow:Sl},jo)}function Gr(_){Zo(_),Cn()}function Sl(){me()}function jr(_){Qt(_),K.value!==null&&K.value.focus(),E.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Cl(_){Qt(_),r.nextTick(()=>{E.value=!1})}function xl(){const _=[r.h(km,{class:`col-auto ${R.fieldClass.value}`,...Z.value,for:R.targetUid.value,dark:ge.value,square:!0,loading:p.value,itemAligned:!1,filled:!0,stackLabel:b.value.length!==0,...R.splitAttrs.listeners.value,onFocus:jr,onBlur:Cl},{...l,rawControl:()=>R.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&_.push(r.h("div",{ref:P,class:re.value+" scroll",style:t.popupContentStyle,...wt.value,onClick:$t,onScrollPassive:se},jo())),r.h(rg,{ref:ie,modelValue:d.value,position:t.useInput===!0?"top":void 0,transitionShow:F,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Yo,onBeforeHide:kl,onHide:El,onShow:Ol},()=>r.h("div",{class:"q-select__dialog"+(ge.value===!0?" q-select__dialog--dark q-dark":"")+(E.value===!0?" q-select__dialog--focused":"")},_))}function kl(_){Zo(_),ie.value!==null&&ie.value.__updateRefocusTarget(R.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),R.focused.value=!1}function El(_){rn(),R.focused.value===!1&&i("blur",_),on()}function Ol(){const _=document.activeElement;(_===null||_.id!==R.targetUid.value)&&K.value!==null&&K.value!==_&&K.value.focus(),me()}function Cn(){d.value!==!0&&(h.value=-1,c.value===!0&&(c.value=!1),R.focused.value===!1&&(T!==null&&(clearTimeout(T),T=null),R.innerLoading.value===!0&&(i("filterAbort"),R.innerLoading.value=!1,p.value=!1)))}function xn(_){R.editable.value===!0&&(B===!0?(R.onControlFocusin(_),d.value=!0,r.nextTick(()=>{R.focus()})):R.focus(),t.onFilter!==void 0?Sn(b.value):(Ee.value!==!0||l["no-option"]!==void 0)&&(c.value=!0))}function rn(){d.value=!1,Cn()}function on(){t.useInput===!0&&jn(t.multiple!==!0&&t.fillInput===!0&&A.value.length!==0&&Qe.value(A.value[0])||"",!0,!0)}function Kr(_){let ne=-1;if(_===!0){if(A.value.length!==0){const J=Fe.value(A.value[0]);ne=t.options.findIndex(ve=>en(Fe.value(ve),J))}ae(ne)}Yt(ne)}function Al(_,ne){c.value===!0&&R.innerLoading.value===!1&&(ae(-1,!0),r.nextTick(()=>{c.value===!0&&R.innerLoading.value===!1&&(_>ne?ae():Kr(!0))}))}function Qo(){d.value===!1&&j.value!==null&&j.value.updatePosition()}function Yo(_){_!==void 0&&Qt(_),i("popupShow",_),R.hasPopupOpen=!0,R.onControlFocusin(_)}function Zo(_){_!==void 0&&Qt(_),i("popupHide",_),R.hasPopupOpen=!1,R.onControlFocusout(_)}function Xo(){B=s.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?l["no-option"]!==void 0||t.onFilter!==void 0||Ee.value===!1:!0),F=s.platform.is.ios===!0&&B===!0&&t.useInput===!0?"fade":t.transitionShow}return r.onBeforeUpdate(Xo),r.onUpdated(Qo),Xo(),r.onBeforeUnmount(()=>{w!==null&&clearTimeout(w),k!==null&&clearTimeout(k)}),Object.assign(u,{showPopup:xn,hidePopup:rn,removeAtIndex:nn,add:gr,toggleOption:Ht,getOptionIndex:()=>h.value,setOptionIndex:Yt,moveOptionSelection:wn,filter:Sn,updateMenuPosition:Qo,updateInputValue:jn,isOptionSelected:Wn,getEmittingOptionValue:zo,isOptionDisabled:(..._)=>Ut.value.apply(null,_)===!0,getOptionValue:(..._)=>Fe.value.apply(null,_),getOptionLabel:(..._)=>Qe.value.apply(null,_)}),Object.assign(R,{innerValue:A,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:H,targetRef:K,hasValue:ce,showPopup:xn,floatingLabel:r.computed(()=>t.hideSelected!==!0&&ce.value===!0||typeof b.value=="number"||b.value.length!==0||Vr(t.displayValue)),getControlChild:()=>{if(R.editable.value!==!1&&(d.value===!0||Ee.value!==!0||l["no-option"]!==void 0))return B===!0?xl():wl();R.hasPopupOpen===!0&&(R.hasPopupOpen=!1)},controlEvents:{onFocusin(_){R.onControlFocusin(_)},onFocusout(_){R.onControlFocusout(_,()=>{on(),Cn()})},onClick(_){if($t(_),B!==!0&&c.value===!0){Cn(),K.value!==null&&K.value.focus();return}xn(_)}},getControl:_=>{const ne=yl(),J=_===!0||d.value!==!0||B!==!0;if(t.useInput===!0)ne.push(bl(_,J));else if(R.editable.value===!0){const Ie=J===!0?rt.value:void 0;ne.push(r.h("input",{ref:J===!0?K:void 0,key:"d_t",class:"q-select__focus-target",id:J===!0?R.targetUid.value:void 0,value:$e.value,readonly:!0,"data-autofocus":_===!0||t.autofocus===!0||void 0,...Ie,onKeydown:Wo,onKeyup:vr,onKeypress:Ho})),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:Uo}))}if($.value!==void 0&&t.disable!==!0&&mr.value.length!==0){const Ie=mr.value.map(Te=>r.h("option",{value:Te,selected:!0}));ne.push(r.h("select",{class:"hidden",name:$.value,multiple:t.multiple},Ie))}const ve=t.useInput===!0||J!==!0?void 0:R.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",...ve,...R.splitAttrs.listeners.value},ne)},getInnerAppend:()=>t.loading!==!0&&p.value!==!0&&t.hideDropdownIcon!==!0?[r.h(yt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:yn.value})]:null}),Xi(R)}}),sg=Je(r.defineComponent({__name:"SelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.ref([]),i=r.useModel(t,"modelValue"),u=t,s=r.ref(!1),c=r.computed(()=>u.control.customParams),d=r.ref([]),h=r.computed(()=>{var w;return((w=c.value)==null?void 0:w.collection)||null}),b=r.computed(()=>h.value?d.value:u.control.options),E=ur();r.watch(h,w=>{if(!w)return;const k=E.getCollection(h.value);if(k){d.value=k;return}s.value=!0},{immediate:!0});function p(w,k){if(w===""){k(()=>{l.value=Pe.cloneDeep(b.value)});return}k(()=>{const C=w.toLowerCase();l.value=(b.value||[]).filter(B=>B.toLowerCase().includes(C))})}return(w,k)=>{const C=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[w.control.label?(r.openBlock(),r.createBlock(C,{key:0,label:w.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(xo,{class:"q-card win-card row items-center q-px-md"},{default:r.withCtx(()=>[r.createVNode(ec,{borderless:"",label:w.control.label,modelValue:i.value,"onUpdate:modelValue":k[0]||(k[0]=B=>i.value=B),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:p,options:l.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-fa1749f7"]]),cg={class:"text-center",style:{width:"100%"}},fg={class:"text-center text-weight-medium"},dg={class:"question-title"},hg=r.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(l,i)=>(r.openBlock(),r.createElementBlock("div",cg,[r.createElementVNode("div",fg,r.toDisplayString(l.formGroup.order+1)+"/"+r.toDisplayString(l.stepsCount),1),r.createElementVNode("div",dg,r.toDisplayString(l.formGroup.title||""),1)]))}});function mg(){return r.inject(Eh)}function tc(t,l){const{maxControlsPerGroup:i,notifyValidations:u}={...Id,...l||{}},s=ur(),c=r.computed(()=>s.formSteps[t]),d=r.ref([]),h=r.ref([]),b=(C,B)=>{s.setControlValue(t,C);const U=d.value.find(F=>F.id===B);U&&(h.value=Ld(U));const T=p(C),G=w(C);(T||G)&&E()};function E(){const C=c.value.controls,B=[];Nd(C).forEach(T=>{const G=T.controls;if(G.every(N=>!$i.includes(N.controlType))){B.push(T);return}let F={...T,controls:[]};for(const N of G)if($i.includes(N.controlType)){B.push(F),F={...F,controls:[]};const Q=Pd(T,N,i);B.push(...Q)}else F.controls.push(N)}),d.value=Pe.orderBy(B,"order").map(T=>({...T,id:T.controls.map(G=>G.id).join("-")})).filter(T=>T.controls.some(G=>G.visible)).map((T,G)=>({...T,order:G,controls:T.controls.filter(F=>F.visible)}))}function p({id:C,value:B}){let U=!1;const G=c.value.controls.filter(F=>{var N;return((N=F.conditions)==null?void 0:N.some(Q=>Q.id===C))||!1});if(G!=null&&G.length)return G.forEach(({id:F,conditions:N,visible:Q})=>{const H=N.every(K=>{const{value:j,operator:ie}=K;return{"==":B===j,"!=":B!==j,">":B>j,"<":B<j}[ie]||!1});Q!==H&&(s.setControlVisibility(t,F,H),U=!0)}),U}function w({id:C,value:B}){const U=Number(B||0);let T=!1;const F=c.value.controls.filter(N=>{var Q;return N.controlType==="dynamic_array"&&((Q=N.itemsLength)==null?void 0:Q.controlId)===C});if(F!=null&&F.length)return F.forEach(({id:N,itemsLength:Q})=>{(Q==null?void 0:Q.value)!==U&&(s.setControlItemsLength(t,N,U),T=!0)}),T}const{notify:k}=mg();return r.watch(h,C=>{C.length&&(u&&k({message:C[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),h.value=[])},{deep:!0}),r.watch(c,()=>{E()},{immediate:!0}),{model:d,errorMessages:h,rebuildModel:E,onControlValueUpdate:b}}const gg={key:0,style:{height:"100%"}},pg={class:"q-py-sm"},vg={class:"form-steps-container"},_g={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},yg={class:"controls-container",style:{height:"100%"}},bg={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},wg=Je(r.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const l=t,i=ur(),{model:u,onControlValueUpdate:s}=tc(l.index),c=r.computed(()=>u.value.length),d=r.ref(0),h=r.computed(()=>u.value[d.value]),b=p=>{const w=Pe.toPairs(Pe.groupBy(p,"row"));return Pe.orderBy(w,([k,C])=>Number(k),"asc").map(([k,C])=>({controls:Pe.orderBy(C,"col","asc")}))};r.watch(d,p=>{const w=p+1===c.value;i.setOnLastSubstep(w)},{immediate:!0});function E(p){return{input_text:el,input_number:el,checkbox:ts,switch:wh,select:sg,cards_select:hh}[p]||el}return(p,w)=>h.value?(r.openBlock(),r.createElementBlock("div",gg,[r.createElementVNode("div",pg,[r.createVNode(hg,{formGroup:h.value,stepsCount:c.value},null,8,["formGroup","stepsCount"])]),r.createElementVNode("div",vg,[r.createElementVNode("div",_g,[r.createElementVNode("div",yg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u),k=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:k.id},[d.value===k.order?(r.openBlock(),r.createBlock(Kd,{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",bg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(b(k.controls),(C,B)=>(r.openBlock(),r.createElementBlock("div",{class:"q-mb-xl",key:B},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(C.controls,(U,T)=>(r.openBlock(),r.createElementBlock("div",{key:T},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(E(U.controlType)),{control:U,modelValue:C.controls[T].value,"onUpdate:modelValue":[G=>C.controls[T].value=G,G=>r.unref(s)(U,k.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):r.createCommentVNode("",!0)],64))),128)),r.createVNode(xm,{currentStep:d.value,stepsCount:c.value,nextDisabled:!h.value.valid,onPrev:w[0]||(w[0]=k=>d.value--),onNext:w[1]||(w[1]=k=>h.value.valid&&d.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),Sg={style:{"font-size":"16px","padding-top":"1rem"}},Cg={style:{"font-size":"16px","padding-top":"1rem"}},vl=Je(r.defineComponent({__name:"SimpleInput",props:r.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue"),i=t,u=r.computed(()=>{var s;return(s=i.control.controlType)==null?void 0:s.split("_")[1]});return(s,c)=>(r.openBlock(),r.createBlock(xo,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(gs,{borderless:"","reverse-fill-mask":"",modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=d=>l.value=d),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",Sg,r.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",Cg,r.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),nc=r.defineComponent({__name:"SimpleSelect",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(i,u)=>(r.openBlock(),r.createBlock(xo,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(ec,{borderless:"",label:i.control.label,options:i.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}))}}),xg={key:0,style:{height:"100%"}},kg={class:"question-title text-center q-py-sm"},Eg={class:"form-steps-container bg-grey-1"},Og={class:"form-container",style:{height:"100%"}},Ag={class:"row items-center"},Bg={class:"col-12 row"},Tg=Je(r.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const l=t,{model:i,onControlValueUpdate:u}=tc(l.index,{notifyValidations:!1});function s(b){return{input_text:vl,input_number:vl,select:nc,cards_select:nc,checkbox:ts}[b]||vl}const c=b=>Pe.orderBy(Pe.toPairs(Pe.groupBy(b,"row")),"row").map(([E,p])=>({controls:Pe.orderBy(p,"col")}));function d(b){return[E=>{var w;let p="";return(w=b.validators)==null||w.some(k=>{const{param:C,validator:B}=k,U=Tu[B];return U.fn(Number(C))({...b,value:E})?!1:(p=U.message,!0)}),!p.length||p}]}const h=ur();return r.onMounted(()=>h.setOnLastSubstep(!0)),(b,E)=>r.unref(i)?(r.openBlock(),r.createElementBlock("div",xg,[r.createElementVNode("div",kg,r.toDisplayString(r.unref(i)[0].title),1),r.createElementVNode("div",Eg,[r.createElementVNode("div",Og,[r.createElementVNode("div",Ag,[r.createElementVNode("div",Bg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c(r.unref(i)[0].controls),(p,w)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(c(r.unref(i)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:w},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.controls,(k,C)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`col-xs-12 col-sm q-pa-xs ${c(r.unref(i)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:C},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(s(k.controlType)),{control:k,modelValue:k.value,"onUpdate:modelValue":[B=>k.value=B,B=>r.unref(u)(k,r.unref(i)[0].id)],rules:d(k)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),_l=t=>(r.pushScopeId("data-v-ea1ef607"),t=t(),r.popScopeId(),t),Rg={class:"buttons-container"},Ig={class:"max-container"},Mg={key:0,class:"row checkbox justify-end q-my-sm"},Lg={style:{"max-width":"650px"}},qg=_l(()=>r.createElementVNode("br",{class:"gt-sm"},null,-1)),Pg={class:"row justify-between q-my-md q-px-md q-pb-xl"},Vg=_l(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Ng={key:1},$g={key:0,class:"text-black"},Dg=_l(()=>r.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),Fg={key:1,class:"text-black"},zg=Je(r.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:l}){const{nextStep:i,previousStep:u,currentStep:s,stepsCount:c,nextDisabled:d,onLastSubstep:h}=r.toRefs(ur()),b=l,E=r.ref(!1),p=k=>{},w=()=>{s.value===c.value?b("submit"):i.value()};return(k,C)=>(r.openBlock(),r.createElementBlock("div",Rg,[r.createElementVNode("div",Ig,[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("div",Mg,[r.createElementVNode("div",Lg,[r.createVNode(es,{color:"info",class:"checkbox",modelValue:E.value,"onUpdate:modelValue":C[1]||(C[1]=B=>E.value=B)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),qg,r.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),r.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:C[0]||(C[0]=B=>p())},"aquí"),r.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",Pg,[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(()=>[Vg]),_:1},8,["onClick"])):(r.openBlock(),r.createElementBlock("div",Ng)),r.createElementVNode("div",null,[!r.unref(d)&&r.unref(h)?(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:w,disable:r.unref(s)===r.unref(c)&&!E.value,flat:"","no-caps":""},{default:r.withCtx(()=>[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("span",$g,[r.createTextVNode(" Enviar "),Dg])):(r.openBlock(),r.createElementBlock("span",Fg," Siguiente "))]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),rc=r.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:l}){const i=t,u=l,s=r.ref(!1),c=ur(),d=b=>Pe.keys(Pe.groupBy(b.controls,"group")).length===1;r.watch(()=>i.forms,b=>{const p=new Lu().fromRaw(b);c.setFormSteps(p)},{immediate:!0});function h(){const b=Pe.cloneDeep(c.formSteps),p=new Lu().toRaw(b);u("onSubmit",p)}return(b,E)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",null,[r.renderSlot(b.$slots,"header"),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).formSteps,(p,w)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:w},[d(p)?r.withDirectives((r.openBlock(),r.createBlock(Tg,{key:0,index:w},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===w+1]]):r.withDirectives((r.openBlock(),r.createBlock(wg,{key:1,index:w,onOnLastStep:E[0]||(E[0]=k=>s.value=k)},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===w+1]])],64))),128))]),r.createVNode(zg,{onSubmit:h})],64))}}),Ug=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),oc=r.defineComponent({__name:"TestUi",setup(t){const l=r.ref("Test W2W UI!");return(i,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[Ug,r.createElementVNode("h1",null,r.toDisplayString(l.value),1)],64))}}),Hg=r.defineComponent({__name:"DomSection",props:{section:{}},setup(t){const l=r.ref(null),i=t;return r.watch([()=>i.section,l],([u,s])=>{u&&s&&s.appendChild(u)}),(u,s)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"container",ref:l},null,512))}});function ic(t,l){const i=`{{${l}}}`;try{const u=l.split(".").flatMap(s=>{var h;const c=/(\w+)\[(\d+)\]/g,d=(h=Array.from(s.matchAll(c)))==null?void 0:h[0];return d!=null&&d.length?d.slice(1):s});return(u==null?void 0:u.reduce((s,c)=>(s==null?void 0:s[c])||"",t))||i}catch(u){return console.error(u),i}}function Wg(t,l,i){const u=l.split(".");if(!u.length)return t;const s=u.pop(),c=u.reduce((d,h)=>(d[h]||(d[h]={}),d[h]),t);return c[s]=i,t}const Gg={class:"card"},jg={key:0,class:"card-header"},Kg=["contenteditable"],Qg={class:"card-content"},Yg=["contenteditable"],Zg=["contenteditable"],Xg=Je(r.defineComponent({__name:"Card",props:{card:{},data:{}},setup(t){const l=t;function i(c){const d=c.value||ic(l.data,c.key||"");return u(d,c.format)}function u(c,d){return d?d==="currency"?new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}).format(c):d==="percentage"?`${c} %`:c:c}const s=r.inject("editable");return(c,d)=>(r.openBlock(),r.createElementBlock("div",Gg,[c.card.title||c.card.subtitle?(r.openBlock(),r.createElementBlock("div",jg,[c.card.title?(r.openBlock(),r.createElementBlock("h3",{key:0,contenteditable:r.unref(s)},r.toDisplayString(c.card.title),9,Kg)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",Qg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.card.fields,(h,b)=>(r.openBlock(),r.createElementBlock("div",{key:b,class:"card-field"},[r.createElementVNode("span",{contenteditable:r.unref(s),class:"field-label"},r.toDisplayString(h.label),9,Yg),r.createElementVNode("span",{contenteditable:r.unref(s),class:"field-value"},r.toDisplayString(i(h)),9,Zg)]))),128))])]))}}),[["__cssModules",{$style:{card:"_card_12eql_1","card-header":"_card-header_12eql_8","card-content":"_card-content_12eql_22","card-field":"_card-field_12eql_22","field-label":"_field-label_12eql_27","field-value":"_field-value_12eql_30"}}]]);function Fo(t,l={}){const i=r.inject("data"),u=r.computed(()=>i.value[t]||l),s=r.computed(()=>i.value.global||{}),c=r.computed(()=>({...s.value,...u.value}));return{sectionData:u,globalData:s,data:c}}const Jg=Je(r.defineComponent({__name:"CardGridSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{data:i}=Fo(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,(d,h)=>(r.openBlock(),r.createBlock(Xg,{key:h,card:d,data:r.unref(i)},null,8,["card","data"]))),128))],4)}}}),[["__cssModules",{$style:{"card-section":"_card-section_1xfbl_2"}}]]),ep=["src","alt"],tp=Je(r.defineComponent({__name:"ImageSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{content:i,styles:u}=r.toRefs(l);return Fo(l.id,{}),(s,c)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({justifyContent:r.unref(i).align}),class:"img-container"},[r.createElementVNode("img",{src:r.unref(i).src,alt:r.unref(i).alt,style:r.normalizeStyle({width:r.unref(i).width,height:r.unref(i).height})},null,12,ep)],4))}}),[["__cssModules",{$style:{"img-container":"_img-container_17yzt_2"}}]]),np=["contenteditable"],rp=["contenteditable"],op="#f5f5f5",ip=Je(r.defineComponent({__name:"TableSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{columns:i}=r.toRefs(l.content),{data:u}=Fo(l.id,[]),s=r.computed(()=>[...u.value[l.content.rowsKey]||[]]),c=r.inject("editable");return(d,h)=>{var b;return r.openBlock(),r.createElementBlock("table",{style:r.normalizeStyle("width: 100%;"+((b=d.styles)==null?void 0:b.cssRaw)||""),class:"table-section"},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),E=>(r.openBlock(),r.createElementBlock("th",{key:E.key,style:r.normalizeStyle({textAlign:E.align||"left"}),contenteditable:r.unref(c)},r.toDisplayString(E.header),13,np))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(E,p)=>(r.openBlock(),r.createElementBlock("tr",{key:p,style:r.normalizeStyle({backgroundColor:p%2===0?op:"transparent"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),w=>(r.openBlock(),r.createElementBlock("td",{key:w.key,style:r.normalizeStyle({textAlign:w.align||"left"}),contenteditable:r.unref(c)},r.toDisplayString(E[w.key]),13,rp))),128))],4))),128))])],4)}}}),[["__cssModules",{$style:{"table-section":"_table-section_aicx8_1"}}]]),lc=We({name:"QTooltip",inheritAttrs:!1,props:{...As,...rl,...$r,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...$r.transitionShow,default:"jump-down"},transitionHide:{...$r.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Po},self:{type:String,default:"top middle",validator:Po},offset:{type:Array,default:()=>[14,14],validator:Fs},scrollTarget:Is,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...ol],setup(t,{slots:l,emit:i,attrs:u}){let s,c;const d=r.getCurrentInstance(),{proxy:{$q:h}}=d,b=r.ref(null),E=r.ref(!1),p=r.computed(()=>Vo(t.anchor,h.lang.rtl)),w=r.computed(()=>Vo(t.self,h.lang.rtl)),k=r.computed(()=>t.persistent!==!0),{registerTick:C,removeTick:B}=ul(),{registerTimeout:U}=Lr(),{transitionProps:T,transitionStyle:G}=al(t),{localScrollTarget:F,changeScrollEvent:N,unconfigureScrollTarget:Q}=Ts(t,me),{anchorEl:H,canShow:K,anchorEvents:j}=Bs({showing:E,configureAnchorEl:Ae}),{show:ie,hide:P}=il({showing:E,canShow:K,handleShow:te,handleHide:V,hideOnRouteChange:k,processOnMount:!0});Object.assign(j,{delayShow:z,delayHide:se});const{showPortal:$,hidePortal:Y,renderPortal:O}=ll(d,b,A,"tooltip");if(h.platform.is.mobile===!0){const Z={anchorEl:H,innerRef:b,onClickOutside(ce){return P(ce),ce.target.classList.contains("q-dialog__backdrop")&&Ge(ce),!0}},ge=r.computed(()=>t.modelValue===null&&t.persistent!==!0&&E.value===!0);r.watch(ge,ce=>{(ce===!0?Ns:qo)(Z)}),r.onBeforeUnmount(()=>{qo(Z)})}function te(Z){$(),C(()=>{c=new MutationObserver(()=>ae()),c.observe(b.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),ae(),me()}),s===void 0&&(s=r.watch(()=>h.screen.width+"|"+h.screen.height+"|"+t.self+"|"+t.anchor+"|"+h.lang.rtl,ae)),U(()=>{$(!0),i("show",Z)},t.transitionDuration)}function V(Z){B(),Y(),le(),U(()=>{Y(!0),i("hide",Z)},t.transitionDuration)}function le(){c!==void 0&&(c.disconnect(),c=void 0),s!==void 0&&(s(),s=void 0),Q(),Co(j,"tooltipTemp")}function ae(){fl({targetEl:b.value,offset:t.offset,anchorEl:H.value,anchorOrigin:p.value,selfOrigin:w.value,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function z(Z){if(h.platform.is.mobile===!0){nl(),document.body.classList.add("non-selectable");const ge=H.value,ce=["touchmove","touchcancel","touchend","click"].map(W=>[ge,W,"delayHide","passiveCapture"]);qr(j,"tooltipTemp",ce)}U(()=>{ie(Z)},t.delay)}function se(Z){h.platform.is.mobile===!0&&(Co(j,"tooltipTemp"),nl(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),U(()=>{P(Z)},t.hideDelay)}function Ae(){if(t.noParentEvent===!0||H.value===null)return;const Z=h.platform.is.mobile===!0?[[H.value,"touchstart","delayShow","passive"]]:[[H.value,"mouseenter","delayShow","passive"],[H.value,"mouseleave","delayHide","passive"]];qr(j,"anchor",Z)}function me(){if(H.value!==null||t.scrollTarget!==void 0){F.value=Ms(H.value,t.scrollTarget);const Z=t.noParentEvent===!0?ae:P;N(F.value,Z)}}function R(){return E.value===!0?r.h("div",{...u,ref:b,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",u.class],style:[u.style,G.value],role:"tooltip"},lt(l.default)):null}function A(){return r.h(r.Transition,T.value,R)}return r.onBeforeUnmount(le),Object.assign(d.proxy,{updatePosition:ae}),O}}),lp={class:"section"},ap={key:0,class:"no-print"},up={class:"add-btn"},sp=["contenteditable"],cp=["contenteditable"],fp={class:"p-container"},dp=["contenteditable"],hp={key:0,class:"remove-btn no-print"},mp=Je(r.defineComponent({__name:"TextSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{data:i}=Fo(l.id,{}),u=r.computed(()=>{var p;return((p=l.content)==null?void 0:p.lines)||[]}),s=r.ref([]),c=r.inject("editable"),d=(p,w,k)=>{if(!w)return h(i.value,p);const C={};Object.keys(w).forEach(U=>{const T=`${k}.${U}`;Wg(C,T,w[U])});const B=h(C,p);return console.log({buildText:h}),B};r.watch(u,p=>{s.value=Pe.cloneDeep(p)},{deep:!0,immediate:!0});function h(p,w){const k=w.match(/{{(.*?)}}/g);return console.log({variables:k}),k?k.reduce((C,B)=>{const U=B.replace(/{{|}}/g,"").trim(),T=ic(p,U);return C.replace(B,T??U)},w):w}const b=()=>{if(!(c!=null&&c.value))return;const p=s.value.length,w={type:ft.TextLineType.PARAGRAPH,text:"Párrafo "+p};s.value.push(w)},E=p=>{c!=null&&c.value&&s.value.splice(p,1)};return(p,w)=>{var k;return r.openBlock(),r.createElementBlock("div",lp,[r.unref(c)?(r.openBlock(),r.createElementBlock("div",ap,[r.createElementVNode("div",up,[r.createVNode(_n,{size:"sm",round:"",color:"black",onClick:b,icon:"add"},{default:r.withCtx(()=>[r.createVNode(lc,null,{default:r.withCtx(()=>[r.createTextVNode("Agregar párrafo")]),_:1})]),_:1})])])):r.createCommentVNode("",!0),r.createElementVNode("div",{style:r.normalizeStyle(((k=p.styles)==null?void 0:k.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,({type:C,text:B,align:U,sourceCollection:T},G)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({textAlign:U||"left"})},[C==="title"?(r.openBlock(),r.createElementBlock("h1",{key:0,contenteditable:r.unref(c)},r.toDisplayString(B),9,sp)):r.createCommentVNode("",!0),C==="subtitle"?(r.openBlock(),r.createElementBlock("h2",{key:1,contenteditable:r.unref(c)},r.toDisplayString(B),9,cp)):r.createCommentVNode("",!0),C==="paragraph"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:2},r.renderList(T?r.unref(i)[T]:[null],F=>(r.openBlock(),r.createElementBlock("div",fp,[r.createElementVNode("p",{contenteditable:r.unref(c)},r.toDisplayString(d(B,F,T)),9,dp),r.unref(c)?(r.openBlock(),r.createElementBlock("div",hp,[r.createVNode(_n,{size:"sm",r:"",round:"",color:"black",onClick:N=>E(G),icon:"delete"},{default:r.withCtx(()=>[r.createVNode(lc,null,{default:r.withCtx(()=>[r.createTextVNode("Eliminar párrafo")]),_:1})]),_:2},1032,["onClick"])])):r.createCommentVNode("",!0)]))),256)):r.createCommentVNode("",!0)],4))),256))],4)])}}}),[["__cssModules",{$style:{section:"_section_12p9p_1","p-container":"_p-container_12p9p_2","add-btn":"_add-btn_12p9p_6","remove-btn":"_remove-btn_12p9p_13","no-print":"_no-print_12p9p_40"}}]]),gp=r.defineComponent({__name:"SectionWrapper",props:{section:{}},setup(t){const l=t,i={[ft.LayoutSectionType.TEXT]:mp,[ft.LayoutSectionType.IMAGE]:tp,[ft.LayoutSectionType.TABLE]:ip,[ft.LayoutSectionType.CARDS_GRID]:Jg},u=r.computed(()=>l.section.type),s=r.computed(()=>({content:l.section.content,styles:l.section.styles,id:l.section.idDocLaySection}));return(c,d)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i[u.value]),r.normalizeProps(r.guardReactiveProps(s.value)),null,16))}}),ac=Je(r.defineComponent({__name:"SectionsContainer",props:{layout:{},data:{},htmlNodes:{},editable:{type:Boolean}},setup(t){var h;const l=t,{layout:i,data:u,editable:s}=r.toRefs(l);r.provide("data",u),r.provide("editable",s||r.ref(!1));const c=r.computed(()=>{var E;const b=i.value.sections.map(p=>({type:"default",section:p}));return(E=l.htmlNodes)==null||E.forEach(({index:p,element:w})=>{const k=p>b.length?b.length:p;b.splice(k,0,{type:"html",section:w})}),b}),d=((h=i.value.styles)==null?void 0:h.cssRaw)||"";return(b,E)=>(r.openBlock(),r.createElementBlock("div",{class:"sections-container",style:r.normalizeStyle(r.unref(d))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,({type:p,section:w})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[p==="default"?(r.openBlock(),r.createBlock(gp,{key:0,section:w},null,8,["section"])):(r.openBlock(),r.createBlock(Hg,{key:1,section:w},null,8,["section"]))],64))),256))],4))}}),[["__cssModules",{$style:{"sections-container":"_sections-container_1wrbi_3"}}]]),pp={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",rc),t.component("TestUi",oc),t.component("SectionsContainer",ac)}};Nt.DynamicForm=rc,Nt.SectionsContainer=ac,Nt.TestUi=oc,Nt.default=pp,Object.defineProperties(Nt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});