muriel-test
Version:
一个简单的组件库
8 lines • 228 kB
JavaScript
(function(Le,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],t):(Le=typeof globalThis<"u"?globalThis:Le||self,t(Le["muk-ui"]={},Le.Vue,Le.pinia))})(this,function(Le,t,je){"use strict";const wn={xs:18,sm:24,md:32,lg:38,xl:46},ot={size:String};function lt(e,n=wn){return t.computed(()=>e.size!==void 0?{fontSize:e.size in n?`${n[e.size]}px`:e.size}:null)}const ne=e=>t.markRaw(t.defineComponent(e)),Co=e=>t.markRaw(e);function ce(e,n){return e!==void 0&&e()||n}function Vo(e,n){if(e!==void 0){const o=e();if(o!=null)return o.slice()}return n}function Ve(e,n){return e!==void 0?n.concat(e()):n}function So(e,n){return e===void 0?n:n!==void 0?n.concat(e()):e()}function No(e,n,o,l,a,r){n.key=l+a;const i=t.h(e,n,o);return a===!0?t.withDirectives(i,r()):i}const qo="0 0 24 24",Eo=e=>e,xn=e=>`ionicons ${e}`,Bo={"mdi-":e=>`mdi ${e}`,"icon-":Eo,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":xn,"ion-ios":xn,"ion-logo":xn,"iconfont ":Eo,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},To={o_:"-outlined",r_:"-round",s_:"-sharp"},Ro={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Xa=new RegExp("^("+Object.keys(Bo).join("|")+")"),Ja=new RegExp("^("+Object.keys(To).join("|")+")"),$o=new RegExp("^("+Object.keys(Ro).join("|")+")"),Za=/^[Mm]\s?[-+]?\.?\d/,Ya=/^img:/,Ga=/^svguse:/,er=/^ion-/,tr=/^(fa-(solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,me=ne({name:"QIcon",props:{...ot,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:n}){const{proxy:{$q:o}}=t.getCurrentInstance(),l=lt(e),a=t.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=t.computed(()=>{let i,s=e.name;if(s==="none"||!s)return{none:!0};if(o.iconMapFn!==null){const c=o.iconMapFn(s);if(c!==void 0)if(c.icon!==void 0){if(s=c.icon,s==="none"||!s)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(Za.test(s)===!0){const[c,g=qo]=s.split("|");return{svg:!0,viewBox:g,nodes:c.split("&&").map(h=>{const[u,k,q]=h.split("@@");return t.h("path",{style:k,d:u,transform:q})})}}if(Ya.test(s)===!0)return{img:!0,src:s.substring(4)};if(Ga.test(s)===!0){const[c,g=qo]=s.split("|");return{svguse:!0,src:c.substring(7),viewBox:g}}let d=" ";const f=s.match(Xa);if(f!==null)i=Bo[f[1]](s);else if(tr.test(s)===!0)i=s;else if(er.test(s)===!0)i=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if($o.test(s)===!0){i="notranslate material-symbols";const c=s.match($o);c!==null&&(s=s.substring(6),i+=Ro[c[1]]),d=s}else{i="notranslate material-icons";const c=s.match(Ja);c!==null&&(s=s.substring(2),i+=To[c[1]]),d=s}return{cls:i,content:d}});return()=>{const i={class:a.value,style:l.value,"aria-hidden":"true",role:"presentation"};return r.value.none===!0?t.h(e.tag,i,ce(n.default)):r.value.img===!0?t.h("span",i,Ve(n.default,[t.h("img",{src:r.value.src})])):r.value.svg===!0?t.h("span",i,Ve(n.default,[t.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?t.h("span",i,Ve(n.default,[t.h("svg",{viewBox:r.value.viewBox},[t.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(i.class+=" "+r.value.cls),t.h(e.tag,i,Ve(n.default,[r.value.content])))}}}),nr={size:{type:[Number,String],default:"1em"},color:String};function or(e){return{cSize:t.computed(()=>e.size in wn?`${wn[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Lo=ne({name:"QSpinner",props:{...nr,thickness:{type:Number,default:5}},setup(e){const{cSize:n,classes:o}=or(e);return()=>t.h("svg",{class:o.value+" q-spinner-mat",width:n.value,height:n.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function _n(e,n){const o=e.style;for(const l in n)o[l]=n[l]}function lr(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const n=t.isRef(e)===!0?e.value:e;if(n)return n.$el||n}function Po(e,n){if(e==null||e.contains(n)===!0)return!0;for(let o=e.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(n))return!0;return!1}const pe={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(pe,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function We(){}function ar(e){return e.button===0}function It(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function rr(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const n=[];let o=e.target;for(;o;){if(n.push(o),o.tagName==="HTML")return n.push(document),n.push(window),n;o=o.parentElement}}function $e(e){e.stopPropagation()}function Se(e){e.cancelable!==!1&&e.preventDefault()}function re(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function kn(e,n){if(e===void 0||n===!0&&e.__dragPrevented===!0)return;const o=n===!0?l=>{l.__dragPrevented=!0,l.addEventListener("dragstart",Se,pe.notPassiveCapture)}:l=>{delete l.__dragPrevented,l.removeEventListener("dragstart",Se,pe.notPassiveCapture)};e.querySelectorAll("a, img").forEach(o)}function Pe(e,n,o){const l=`__q_${n}_evt`;e[l]=e[l]!==void 0?e[l].concat(o):o,o.forEach(a=>{a[0].addEventListener(a[1],e[a[2]],pe[a[3]])})}function Qe(e,n){const o=`__q_${n}_evt`;e[o]!==void 0&&(e[o].forEach(l=>{l[0].removeEventListener(l[1],e[l[2]],pe[l[3]])}),e[o]=void 0)}function Ot(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Ue(e,n){return Ot(e)===!0?!1:[].concat(n).includes(e.keyCode)}function ir(e,n=250){let o=!1,l;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},n),l=e.apply(this,arguments)),l}}function Mo(e,n,o,l){o.modifiers.stop===!0&&$e(e);const a=o.modifiers.color;let r=o.modifiers.center;r=r===!0||l===!0;const i=document.createElement("span"),s=document.createElement("span"),d=It(e),{left:f,top:c,width:g,height:h}=n.getBoundingClientRect(),u=Math.sqrt(g*g+h*h),k=u/2,q=`${(g-u)/2}px`,v=r?q:`${d.left-f-k}px`,_=`${(h-u)/2}px`,p=r?_:`${d.top-c-k}px`;s.className="q-ripple__inner",_n(s,{height:`${u}px`,width:`${u}px`,transform:`translate3d(${v},${p},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${a?" text-"+a:""}`,i.setAttribute("dir","ltr"),i.appendChild(s),n.appendChild(i);const b=()=>{i.remove(),clearTimeout(x)};o.abort.push(b);let x=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${q},${_},0) scale3d(1,1,1)`,s.style.opacity=.2,x=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,x=setTimeout(()=>{i.remove(),o.abort.splice(o.abort.indexOf(b),1)},275)},250)},50)}function Ao(e,{modifiers:n,value:o,arg:l}){const a=Object.assign({},e.cfg.ripple,n,o);e.modifiers={early:a.early===!0,stop:a.stop===!0,center:a.center===!0,color:a.color||l,keyCodes:[].concat(a.keyCodes||13)}}const Cn=Co({name:"ripple",beforeMount(e,n){const o=n.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const l={cfg:o,enabled:n.value!==!1,modifiers:{},abort:[],start(a){l.enabled===!0&&a.qSkipRipple!==!0&&a.type===(l.modifiers.early===!0?"pointerdown":"click")&&Mo(a,e,l,a.qKeyEvent===!0)},keystart:ir(a=>{l.enabled===!0&&a.qSkipRipple!==!0&&Ue(a,l.modifiers.keyCodes)===!0&&a.type===`key${l.modifiers.early===!0?"down":"up"}`&&Mo(a,e,l,!0)},300)};Ao(l,n),e.__qripple=l,Pe(l,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,n){if(n.oldValue!==n.value){const o=e.__qripple;o!==void 0&&(o.enabled=n.value!==!1,o.enabled===!0&&Object(n.value)===n.value&&Ao(o,n))}},beforeUnmount(e){const n=e.__qripple;n!==void 0&&(n.abort.forEach(o=>{o()}),Qe(n,"main"),delete e._qripple)}}),Io={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},sr=Object.keys(Io),Oo={align:{type:String,validator:e=>sr.includes(e)}};function zo(e){return t.computed(()=>{const n=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Io[n]}`})}function Vn(e){if(Object(e.$parent)===e.$parent)return e.$parent;for(e=e.$.parent;Object(e)===e;){if(Object(e.proxy)===e.proxy)return e.proxy;e=e.parent}}function Fo(e,n){typeof n.type=="symbol"?Array.isArray(n.children)===!0&&n.children.forEach(o=>{Fo(e,o)}):e.add(n)}function ur(e){const n=new Set;return e.forEach(o=>{Fo(n,o)}),Array.from(n)}function Do(e){return e.appContext.config.globalProperties.$router!==void 0}function Uo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function Ho(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function cr(e,n){for(const o in n){const l=n[o],a=e[o];if(typeof l=="string"){if(l!==a)return!1}else if(Array.isArray(a)===!1||a.length!==l.length||l.some((r,i)=>r!==a[i]))return!1}return!0}function jo(e,n){return Array.isArray(n)===!0?e.length===n.length&&e.every((o,l)=>o===n[l]):e.length===1&&e[0]===n}function dr(e,n){return Array.isArray(e)===!0?jo(e,n):Array.isArray(n)===!0?jo(n,e):e===n}function fr(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const o in e)if(dr(e[o],n[o])===!1)return!1;return!0}const Wo={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};function Qo(e){const n=t.getCurrentInstance(),{props:o,proxy:l}=n,a=Do(n),r=t.computed(()=>o.disable!==!0&&o.href!==void 0),i=t.computed(()=>a===!0&&o.disable!==!0&&r.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),s=t.computed(()=>{if(i.value===!0)try{return l.$router.resolve(o.to)}catch{}return null}),d=t.computed(()=>s.value!==null),f=t.computed(()=>r.value===!0||d.value===!0),c=t.computed(()=>o.type==="a"||f.value===!0?"a":o.tag||e||"div"),g=t.computed(()=>r.value===!0?{href:o.href,target:o.target}:d.value===!0?{href:s.value.href,target:o.target}:{}),h=t.computed(()=>{if(d.value===!1)return null;const{matched:_}=s.value,{length:p}=_,b=_[p-1];if(b===void 0)return-1;const x=l.$route.matched;if(x.length===0)return-1;const V=x.findIndex(Ho.bind(null,b));if(V>-1)return V;const y=Uo(_[p-2]);return p>1&&Uo(b)===y&&x[x.length-1].path!==y?x.findIndex(Ho.bind(null,_[p-2])):V}),u=t.computed(()=>d.value===!0&&h.value>-1&&cr(l.$route.params,s.value.params)),k=t.computed(()=>u.value===!0&&h.value===l.$route.matched.length-1&&fr(l.$route.params,s.value.params)),q=t.computed(()=>d.value===!0?k.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":u.value===!0?` ${o.activeClass}`:"":"");function v(_){return o.disable===!0||_.metaKey||_.altKey||_.ctrlKey||_.shiftKey||_.__qNavigate!==!0&&_.defaultPrevented===!0||_.button!==void 0&&_.button!==0||o.target==="_blank"?!1:(Se(_),l.$router[o.replace===!0?"replace":"push"](o.to).catch(p=>p))}return{hasRouterLink:d,hasHrefLink:r,hasLink:f,linkTag:c,linkRoute:s,linkIsActive:u,linkIsExactActive:k,linkClass:q,linkProps:g,navigateToRouterLink:v}}const Ko={none:0,xs:4,sm:8,md:16,lg:24,xl:32},mr={xs:8,sm:10,md:14,lg:20,xl:24},hr=["button","submit","reset"],pr=/[^\s]\/[^\s]/,gr={...ot,...Wo,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,round:Boolean,square:Boolean,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push: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:{...Oo.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function vr(e){const n=lt(e,mr),o=zo(e),{hasRouterLink:l,hasLink:a,linkTag:r,linkProps:i,navigateToRouterLink:s}=Qo("button"),d=t.computed(()=>{const v=e.fab===!1&&e.fabMini===!1?n.value:{};return e.padding!==void 0?Object.assign({},v,{padding:e.padding.split(/\s+/).map(_=>_ in Ko?Ko[_]+"px":_).join(" "),minWidth:"0",minHeight:"0"}):v}),f=t.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),c=t.computed(()=>e.disable!==!0&&e.loading!==!0),g=t.computed(()=>c.value===!0?e.tabindex||0:-1),h=t.computed(()=>e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":"standard"),u=t.computed(()=>{const v={tabindex:g.value};return a.value===!0?Object.assign(v,i.value):hr.includes(e.type)===!0&&(v.type=e.type),r.value==="a"?(e.disable===!0?v["aria-disabled"]="true":v.href===void 0&&(v.role="button"),l.value!==!0&&pr.test(e.type)===!0&&(v.type=e.type)):e.disable===!0&&(v.disabled="",v["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(v,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),v}),k=t.computed(()=>{let v;e.color!==void 0?e.flat===!0||e.outline===!0?v=`text-${e.textColor||e.color}`:v=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(v=`text-${e.textColor}`);const _=e.round===!0?"round":`rectangle${f.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${h.value} q-btn--${_}`+(v!==void 0?" "+v:"")+(c.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),q=t.computed(()=>o.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:k,style:d,innerClasses:q,attributes:u,hasRouterLink:l,hasLink:a,linkTag:r,navigateToRouterLink:s,isActionable:c}}const{passiveCapture:qe}=pe;let at=null,rt=null,it=null;const ge=ne({name:"QBtn",props:{...gr,percentage:Number,darkPercentage:Boolean},emits:["click","keydown","touchstart","mousedown","keyup"],setup(e,{slots:n,emit:o}){const{proxy:l}=t.getCurrentInstance(),{classes:a,style:r,innerClasses:i,attributes:s,hasRouterLink:d,hasLink:f,linkTag:c,navigateToRouterLink:g,isActionable:h}=vr(e),u=t.ref(null),k=t.ref(null);let q=null,v,_;const p=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),b=t.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:f.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),x=t.computed(()=>({center:e.round})),V=t.computed(()=>{const $=Math.max(0,Math.min(100,e.percentage));return $>0?{transition:"transform 0.6s",transform:`translateX(${$-100}%)`}:{}}),y=t.computed(()=>e.loading===!0?{onMousedown:N,onTouchstartPassive:N,onClick:N,onKeydown:N,onKeyup:N}:h.value===!0?{onClick:B,onKeydown:L,onMousedown:C,onTouchstart:I}:{onClick:re}),E=t.computed(()=>({ref:u,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:r.value,...s.value,...y.value}));function B($){if(u.value!==null){if($!==void 0){if($.defaultPrevented===!0)return;const D=document.activeElement;if(e.type==="submit"&&D!==document.body&&u.value.contains(D)===!1&&D.contains(u.value)===!1){u.value.focus();const T=()=>{document.removeEventListener("keydown",re,!0),document.removeEventListener("keyup",T,qe),u.value!==null&&u.value.removeEventListener("blur",T,qe)};document.addEventListener("keydown",re,!0),document.addEventListener("keyup",T,qe),u.value.addEventListener("blur",T,qe)}}if(d.value===!0){const D=()=>{$.__qNavigate=!0,g($)};o("click",$,D),$.defaultPrevented!==!0&&D()}else o("click",$)}}function L($){u.value!==null&&(o("keydown",$),Ue($,[13,32])===!0&&rt!==u.value&&(rt!==null&&w(),$.defaultPrevented!==!0&&(u.value.focus(),rt=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("keyup",S,!0),u.value.addEventListener("blur",S,qe)),re($)))}function I($){u.value!==null&&(o("touchstart",$),$.defaultPrevented!==!0&&(at!==u.value&&(at!==null&&w(),at=u.value,q=$.target,q.addEventListener("touchcancel",S,qe),q.addEventListener("touchend",S,qe)),v=!0,clearTimeout(_),_=setTimeout(()=>{v=!1},200)))}function C($){u.value!==null&&($.qSkipRipple=v===!0,o("mousedown",$),$.defaultPrevented!==!0&&it!==u.value&&(it!==null&&w(),it=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("mouseup",S,qe)))}function S($){if(u.value!==null&&!($!==void 0&&$.type==="blur"&&document.activeElement===u.value)){if($!==void 0&&$.type==="keyup"){if(rt===u.value&&Ue($,[13,32])===!0){const D=new MouseEvent("click",$);D.qKeyEvent=!0,$.defaultPrevented===!0&&Se(D),$.cancelBubble===!0&&$e(D),u.value.dispatchEvent(D),re($),$.qKeyEvent=!0}o("keyup",$)}w()}}function w($){const D=k.value;$!==!0&&(at===u.value||it===u.value)&&D!==null&&D!==document.activeElement&&(D.setAttribute("tabindex",-1),D.focus()),at===u.value&&(q!==null&&(q.removeEventListener("touchcancel",S,qe),q.removeEventListener("touchend",S,qe)),at=q=null),it===u.value&&(document.removeEventListener("mouseup",S,qe),it=null),rt===u.value&&(document.removeEventListener("keyup",S,!0),u.value!==null&&u.value.removeEventListener("blur",S,qe),rt=null),u.value!==null&&u.value.classList.remove("q-btn--active")}function N($){re($),$.qSkipRipple=!0}return t.onBeforeUnmount(()=>{w(!0)}),Object.assign(l,{click:B}),()=>{let $=[];e.icon!==void 0&&$.push(t.h(me,{name:e.icon,left:e.stack===!1&&p.value===!0,role:"img","aria-hidden":"true"})),p.value===!0&&$.push(t.h("span",{class:"block"},[e.label])),$=Ve(n.default,$),e.iconRight!==void 0&&e.round===!1&&$.push(t.h(me,{name:e.iconRight,right:e.stack===!1&&p.value===!0,role:"img","aria-hidden":"true"}));const D=[t.h("span",{class:"q-focus-helper",ref:k})];return e.loading===!0&&e.percentage!==void 0&&D.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:V.value})])),D.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+i.value},$)),e.loading!==null&&D.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},n.loading!==void 0?n.loading():[t.h(Lo)])]:null)),t.withDirectives(t.h(c.value,E.value,D),[[Cn,b.value,void 0,x.value]])}}}),br=["top","right","bottom","left"],Xo={type:{type:String,default:"a"},outline:Boolean,push:Boolean,flat:Boolean,unelevated:Boolean,color:String,textColor:String,glossy:Boolean,square:Boolean,padding:String,label:{type:[String,Number],default:""},labelPosition:{type:String,default:"right",validator:e=>br.includes(e)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]};function Jo(e,n){return{formClass:t.computed(()=>`q-fab--form-${e.square===!0?"square":"rounded"}`),stacked:t.computed(()=>e.externalLabel===!1&&["top","bottom"].includes(e.labelPosition)),labelProps:t.computed(()=>{if(e.externalLabel===!0){const o=e.hideLabel===null?n.value===!1:e.hideLabel;return{action:"push",data:{class:[e.labelClass,`q-fab__label q-tooltip--style q-fab__label--external q-fab__label--external-${e.labelPosition}`+(o===!0?" q-fab__label--external-hidden":"")],style:e.labelStyle}}}return{action:["left","top"].includes(e.labelPosition)?"unshift":"push",data:{class:[e.labelClass,`q-fab__label q-fab__label--internal q-fab__label--internal-${e.labelPosition}`+(e.hideLabel===!0?" q-fab__label--internal-hidden":"")],style:e.labelStyle}}})}}const _t="_q_l_",Zo="_q_pc_",Yo="_q_f_",yr="_q_fo_",Go="_q_tabs_",el={start:"self-end",center:"self-center",end:"self-start"},wr=Object.keys(el),Ke=ne({name:"QFabAction",props:{...Xo,icon:{type:String,default:""},anchor:{type:String,validator:e=>wr.includes(e)},to:[String,Object],replace:Boolean},emits:["click"],setup(e,{slots:n,emit:o}){const l=t.inject(Yo,()=>({showing:{value:!0},onChildClick:We})),{formClass:a,labelProps:r}=Jo(e,l.showing),i=t.computed(()=>{const g=el[e.anchor];return a.value+(g!==void 0?` ${g}`:"")}),s=t.computed(()=>e.disable===!0||l.showing.value!==!0);function d(g){l.onChildClick(g),o("click",g)}function f(){const g=[];return n.icon!==void 0?g.push(n.icon()):e.icon!==""&&g.push(t.h(me,{name:e.icon})),(e.label!==""||n.label!==void 0)&&g[r.value.action](t.h("div",r.value.data,n.label!==void 0?n.label():[e.label])),Ve(n.default,g)}const c=t.getCurrentInstance();return Object.assign(c.proxy,{click:d}),()=>t.h(ge,{class:i.value,...e,noWrap:!0,stack:e.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:s.value,onClick:d},f)}}),zt={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Ft=["before-show","show","before-hide","hide"];function Dt({showing:e,canShow:n,hideOnRouteChange:o,handleShow:l,handleHide:a,processOnMount:r}){const i=t.getCurrentInstance(),{props:s,emit:d,proxy:f}=i;let c;function g(p){e.value===!0?k(p):h(p)}function h(p){if(s.disable===!0||p!==void 0&&p.qAnchorHandled===!0||n!==void 0&&n(p)!==!0)return;const b=s["onUpdate:modelValue"]!==void 0;b===!0&&(d("update:modelValue",!0),c=p,t.nextTick(()=>{c===p&&(c=void 0)})),(s.modelValue===null||b===!1)&&u(p)}function u(p){e.value!==!0&&(e.value=!0,d("before-show",p),l!==void 0?l(p):d("show",p))}function k(p){if(s.disable===!0)return;const b=s["onUpdate:modelValue"]!==void 0;b===!0&&(d("update:modelValue",!1),c=p,t.nextTick(()=>{c===p&&(c=void 0)})),(s.modelValue===null||b===!1)&&q(p)}function q(p){e.value!==!1&&(e.value=!1,d("before-hide",p),a!==void 0?a(p):d("hide",p))}function v(p){s.disable===!0&&p===!0?s["onUpdate:modelValue"]!==void 0&&d("update:modelValue",!1):p===!0!==e.value&&(p===!0?u:q)(c)}t.watch(()=>s.modelValue,v),o!==void 0&&Do(i)===!0&&t.watch(()=>f.$route.fullPath,()=>{o.value===!0&&e.value===!0&&k()}),r===!0&&t.onMounted(()=>{v(s.modelValue)});const _={show:h,hide:k,toggle:g};return Object.assign(f,_),_}const xr=["up","right","down","left"],_r=["left","center","right"],tl=ne({name:"QFab",props:{...Xo,...zt,icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{default:null},direction:{type:String,default:"right",validator:e=>xr.includes(e)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:e=>_r.includes(e)}},emits:Ft,setup(e,{slots:n}){const o=t.ref(null),l=t.ref(e.modelValue===!0),{proxy:{$q:a}}=t.getCurrentInstance(),{formClass:r,labelProps:i}=Jo(e,l),s=t.computed(()=>e.persistent!==!0),{hide:d,toggle:f}=Dt({showing:l,hideOnRouteChange:s}),c=t.computed(()=>({opened:l.value})),g=t.computed(()=>`q-fab z-fab row inline justify-center q-fab--align-${e.verticalActionsAlign} ${r.value}`+(l.value===!0?" q-fab--opened":" q-fab--closed")),h=t.computed(()=>`q-fab__actions flex no-wrap inline q-fab__actions--${e.direction} q-fab__actions--${l.value===!0?"opened":"closed"}`),u=t.computed(()=>`q-fab__icon-holder q-fab__icon-holder--${l.value===!0?"opened":"closed"}`);function k(v,_){const p=n[v],b=`q-fab__${v} absolute-full`;return p===void 0?t.h(me,{class:b,name:e[_]||a.iconSet.fab[_]}):t.h("div",{class:b},p(c.value))}function q(){const v=[];return e.hideIcon!==!0&&v.push(t.h("div",{class:u.value},[k("icon","icon"),k("active-icon","activeIcon")])),(e.label!==""||n.label!==void 0)&&v[i.value.action](t.h("div",i.value.data,n.label!==void 0?n.label(c.value):[e.label])),Ve(n.tooltip,v)}return t.provide(Yo,{showing:l,onChildClick(v){d(v),o.value!==null&&o.value.$el.focus()}}),()=>t.h("div",{class:g.value},[t.h(ge,{ref:o,class:r.value,...e,noWrap:!0,stack:e.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0,"aria-expanded":l.value===!0?"true":"false","aria-haspopup":"true",onClick:f},q),t.h("div",{class:h.value},ce(n.default))])}});function nl(){}nl.prototype={timer:"",debounce(e,n=500){var o=this;return function(l){let a=this,r=l;clearTimeout(o.timer),o.timer=setTimeout(function(){e.call(a,r)},n)}},setCookie(e){for(var n=0,o=e.length;n<o;n++)for(var l in e[n])document.cookie=l+"="+encodeURIComponent(e[n][l])+"; path=/"},getCookie(e){for(var n=document.cookie,o=n.split("; "),l=0,a=o.length;l<a;l++){var r=o[l].split("=");if(e==r[0])return decodeURIComponent(r[1])}},clearCookie(e){var n=new Date;n.setTime(-1e3);for(var o=0,l=e.length;o<l;o++)document.cookie=""+e[o]+"=''; path=/; expires="+n.toGMTString()},arrToStr(e){if(e)return e.map(n=>n.name).toString()},toggleClass(e,n,o="id"){return e.some(l=>l[o]==n[o])},toChecked(e,n,o="id"){var l=this.toggleClass(e,n,o);l?this.removeEle(e,n,o):e.push(n)},removeEle(e,n,o="id"){var l;e.map((a,r)=>{a[o]==n[o]&&(l=r)}),e.splice(l,1)},setApproverStr(e){if(e.settype==1){if(e.nodeUserList.length==1)return e.nodeUserList[0].name;if(e.nodeUserList.length>1){if(e.examineMode==1)return this.arrToStr(e.nodeUserList);if(e.examineMode==2)return e.nodeUserList.length+"\u4EBA\u4F1A\u7B7E"}}else if(e.settype==2){let n=e.directorLevel==1?"\u76F4\u63A5\u4E3B\u7BA1":"\u7B2C"+e.directorLevel+"\u7EA7\u4E3B\u7BA1";if(e.examineMode==1)return n;if(e.examineMode==2)return n+"\u4F1A\u7B7E"}else{if(e.settype==4)return e.selectRange==1?"\u53D1\u8D77\u4EBA\u81EA\u9009":e.nodeUserList.length>0?e.selectRange==2?"\u53D1\u8D77\u4EBA\u81EA\u9009":"\u53D1\u8D77\u4EBA\u4ECE"+e.nodeUserList[0].name+"\u4E2D\u81EA\u9009":"";if(e.settype==5)return"\u53D1\u8D77\u4EBA\u81EA\u5DF1";if(e.settype==7)return"\u4ECE\u76F4\u63A5\u4E3B\u7BA1\u5230\u901A\u8BAF\u5F55\u4E2D\u7EA7\u522B\u6700\u9AD8\u7684\u7B2C"+e.examineEndDirectorLevel+"\u4E2A\u5C42\u7EA7\u4E3B\u7BA1"}},dealStr(e,n){let o=[],l=e.split(",");for(var a in n)l.map(r=>{r==a&&o.push(n[a].value)});return o.join("\u6216")},conditionStr(e,n){var{conditionList:o,nodeUserList:l}=e.branchNodes[n];if(o.length==0)return n==e.branchNodes.length-1&&e.branchNodes[0].conditionList.length!=0?"\u5176\u4ED6\u6761\u4EF6\u8FDB\u5165\u6B64\u6D41\u7A0B":"\u8BF7\u8BBE\u7F6E\u6761\u4EF6";{let v="";for(var a=0;a<o.length;a++){var{columnId:r,columnType:i,showType:s,showName:d,optType:f,zdy1:c,opt1:g,zdy2:h,opt2:u,fixedDownBoxValue:k}=o[a];if(r==0&&l.length!=0&&(v+="\u53D1\u8D77\u4EBA\u5C5E\u4E8E\uFF1A",v+=l.map(_=>_.name).join("\u6216")+" \u5E76\u4E14 "),i=="String"&&s=="3"&&c&&(v+=d+"\u5C5E\u4E8E\uFF1A"+this.dealStr(c,JSON.parse(k))+" \u5E76\u4E14 "),i=="Double")if(f!=6&&c){var q=["","<",">","\u2264","=","\u2265"][f];v+=`${d} ${q} ${c} \u5E76\u4E14 `}else f==6&&c&&h&&(v+=`${c} ${g} ${d} ${u} ${h} \u5E76\u4E14 `)}return v?v.substring(0,v.length-4):"\u8BF7\u8BBE\u7F6E\u6761\u4EF6"}},copyerStr(e){if(console.log("testNode",e),e.conditionNodes&&e.conditionNodes.length!=0)return this.arrToStr(e.nodeUserList);if(e.ccSelfSelectFlag==1)return"\u53D1\u8D77\u4EBA\u81EA\u9009"},toggleStrClass(e,n){return(e.zdy1?e.zdy1.split(","):[]).some(l=>l==n)},filterFields(e,n){let o;return e.forEach(l=>{switch(l.name){case n:o=l.stringValue}}),o}};const ol=new nl,Ee=je.defineStore("processEngine",{state:()=>({tableId:"",isTried:!1,launchDrawer:!1,launchPermission:{},handledByDrawer:!1,handledByPermission:{},approverDrawer:!1,approverPermission:{},conditionDrawer:!1,conditionsPermission:{},copyerDrawer:!1,copyerConfig1:{},adaptation:""}),getters:{},actions:{setTableId(e){this.tableId=e},setIsTried(e){this.isTried=e},setLaunch(e){this.launchDrawer=e,console.log("setLaunch",this.launchDrawer,e)},setLaunchPermission(e){this.launchPermission=e},setHandledBy(e){this.handledByDrawer=e},setHandledByPermission(e){this.handledByPermission=e},setApprover(e){this.approverDrawer=e},setApproverPermission(e){this.approverPermission=e},setCopyer(e){this.copyerDrawer=e},setCopyerConfig(e){this.copyerConfig1=e},setCondition(e){this.conditionDrawer=e},setConditionsConfig(e){console.log("status:conditionsConfig:",e),this.conditionsPermission=e},setAdaptationg(e){console.log("status:adaptation:",e),this.adaptation=e}}}),nf="",of="",Ut=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},kr={class:"add-node-btn-box"},Cr={class:"add-node-btn"},Vr=["onMouseover","onMouseout"],Sn=Ut({__name:"addNodeContent",props:{childNodeP:{type:Object,default:()=>({})},propProcessNode:{type:Object,default:()=>({})}},emits:["update:childNodeP","update:propProcessNode"],setup(e,{emit:n}){const o=e;let{adaptation:l}=je.storeToRefs(Ee()),a=t.computed({get(){return l.value}});const r=t.ref(null),i=t.ref(null),s=t.ref(!1),d=t.ref("right"),f=h=>{if(h!=4){var u;h==1?u={nodeName:"\u8282\u70B9\u540D\u79F0",type:"candidateTask",id:"",assignee:"",multiInsLoop:{collection:"userList",elementVariable:"user",sequential:"true",completionCondition:{textContent:"${nrOfCompletedInstances == 1}"}},listeners:[],nextNode:o.childNodeP}:h==2&&(u={nodeName:"\u8282\u70B9\u540D\u79F0",error:!0,type:"userTask",id:"",assignee:"",multiInsLoop:{collection:"userList",elementVariable:"user",sequential:"true",completionCondition:{textContent:"${nrOfCompletedInstances == 1}"}},listeners:[],nextNode:o.childNodeP}),n("update:childNodeP",u)}else u={nodeName:"\u8DEF\u7531",type:"exclusiveGateway",nextNode:null,branchNodes:[{nodeName:"\u6761\u4EF61",error:!0,conditionExpression:"",nextNode:o.childNodeP},{nodeName:"\u6761\u4EF62",conditionExpression:"",nextNode:null}]},n("update:childNodeP",u)},c=h=>{var u;console.log("1111",h.x,document.body.clientWidth),s.value||(h.x+376>document.body.clientWidth?d.value="left":d.value="right"),(u=r.value)==null||u.show(),s.value=!0,clearTimeout(i.value)},g=()=>{i.value=setTimeout(()=>{var h;(h=r.value)==null||h.hide(),s.value=!1},200)};return(h,u)=>(t.openBlock(),t.createElementBlock("div",kr,[t.createElementVNode("div",Cr,[t.createElementVNode("div",{onMouseover:t.withModifiers(c,["stop"]),onMouseout:t.withModifiers(g,["stop"])},[t.createVNode(tl,{"text-color":"blue",padding:"5px",ref_key:"fabBtn",ref:r,color:"white",icon:"add",direction:t.unref(a)=="standard"?"down":d.value,class:t.normalizeClass(["fab-add-content",{"fab-zindex":s.value,"fab-zone-zindex":!s.value}])},{"active-icon":t.withCtx(({opened:k})=>[t.createVNode(me,{class:t.normalizeClass({"example-fab-animate":k===!0}),name:"add"},null,8,["class"])]),default:t.withCtx(()=>[t.createVNode(Ke,{class:"item-fab-action",square:"",color:"primary","text-color":"white",label:"\u7ECF\u529E\u8282\u70B9",onClick:u[0]||(u[0]=t.withModifiers(k=>f(1),["stop"])),style:{}}),t.createVNode(Ke,{class:"item-fab-action",square:"",color:"warning","text-color":"white",label:"\u5BA1\u6838\u8282\u70B9",onClick:u[1]||(u[1]=t.withModifiers(k=>f(2),["stop"]))}),t.createVNode(Ke,{class:"item-fab-action",square:"",color:"green-12","text-color":"white",label:"\u6761\u4EF6\u5206\u652F",onClick:u[2]||(u[2]=t.withModifiers(k=>f(4),["stop"]))}),t.createVNode(Ke,{class:"item-fab-action",square:"",color:"purple-4","text-color":"white",label:"\u5B50\u6D41\u7A0B"})]),_:1},8,["direction","class"])],40,Vr)])]))}},[["__scopeId","data-v-7ed5b7d2"]]),af="",Sr={key:0,class:"node-wrap"},Nr={class:"text"},qr={class:"content-box"},Er=t.createElementVNode("div",{class:"content-box-left"},"\u53D1\u8D77\u4EBA\uFF1A",-1),Br={class:"content-box-right"},Tr={key:0,class:"placeholder"},Rr={class:"content-box"},$r=t.createElementVNode("div",{class:"content-box-left"},"\u6284\u9001\u4EBA\uFF1A",-1),Lr={class:"content-box-right"},Pr={key:0,class:"placeholder"},Mr={class:"content-box"},Ar=t.createElementVNode("div",{class:"content-box-left"},"\u8F6C\u51FA\u6761\u4EF6\uFF1A",-1),Ir={class:"content-box-right"},Or={key:0,class:"placeholder"},zr={key:0,style:{position:"absolute",right:"-32px",top:"4px"}},Fr={style:{display:"flex","flex-direction":"column"}},Dr=t.createElementVNode("i",{class:"iconfont icon-qihuan text-grey-5",style:{"font-size":"12px"}},null,-1),Ur=t.createElementVNode("i",{class:"iconfont icon-shanshutubiao text-grey-5",style:{"font-size":"12px"}},null,-1),Hr={key:1,class:"error_tip"},jr=[t.createElementVNode("i",{class:"anticon anticon-exclamation-circle"},null,-1)],Wr={key:1,class:"branch-wrap"},Qr={class:"branch-box-wrap"},Kr={class:"branch-box"},Xr={class:"add-branch"},Jr={class:"q-pt-xs",style:{display:"flex","justify-content":"space-around"}},Zr=t.createElementVNode("i",{class:"iconfont icon-tianjiatubiao",style:{"font-size":"12px"}},null,-1),Yr=t.createElementVNode("div",{class:"icon-jianhao",style:{"font-size":"12px"}},null,-1),Gr={class:"condition-node"},ei={class:"condition-node-box"},ti=["onClick"],ni={class:"title-wrapper"},oi={class:"editable-title"},li={class:"priority-title"},ai={class:"content"},ri=["onClick"],ii={key:0,class:"error_tip"},si=[t.createElementVNode("i",{class:"anticon anticon-exclamation-circle"},null,-1),t.createElementVNode("i",{class:"arrow iconfont icon-laseshizhi"},null,-1)],ui=t.createElementVNode("div",{class:"top-left-cover-line"},null,-1),ci=t.createElementVNode("div",{class:"bottom-left-cover-line"},null,-1),di=t.createElementVNode("div",{class:"top-right-cover-line"},null,-1),fi=t.createElementVNode("div",{class:"bottom-right-cover-line"},null,-1),mi={__name:"nodeContent",props:{processNode:{type:Object,default:()=>({})}},emits:["update:processNode"],setup(e,{emit:n}){const o=e;let{isTried:l,launchDrawer:a,launchPermission:r,handledByPermission:i,approverPermission:s,copyerConfig1:d,conditionsPermission:f,adaptation:c}=je.storeToRefs(Ee()),{setLaunch:g,setHandledBy:h,setApprover:u,setCondition:k,setLaunchPermission:q,setHandledByPermission:v,setApproverPermission:_,setConditionsConfig:p}=Ee(),b=t.getCurrentInstance().uid,x=["blue-5","primary","warning","purple-4"],V=["\u53D1\u8D77\u4EBA","\u5BA1\u6838\u4EBA","\u6284\u9001\u4EBA"],y=t.ref(!1),E=["startTask","candidateTask","userTask","subProcess","exclusiveGateway","parallelGateway","selectBranch"],B=t.computed({get(){return c.value}}),L=t.computed(()=>E.findIndex(Z=>Z==C.value.type)),I=t.computed(()=>V[C.value.type]),C=t.computed({get:()=>o.processNode,set:Z=>n("update:processNode",Z)}),S=t.computed(()=>(console.log("test111",C.value,111),console.log(C.value),L.value<4&&C.value&&C.value.assignee?C.value.assignee:"\u6240\u6709\u4EBA"));const w=t.ref(null),N=t.ref(null),$=t.ref("right");t.onMounted(()=>{L.value==1?C.value.error=!ol.setApproverStr(C.value):L.value==2?C.value.error=!ol.copyerStr(C.value):L.value==4}),t.watch([r,i,s,d,f],([Z,O,X,W,A])=>{Z.flag&&Z.id===b&&n("update:processNode",Z.value),O.flag&&O.id===b&&n("update:processNode",O.value),X.flag&&X.id===b&&n("update:processNode",X.value),W.flag&&W.id===b&&n("update:processNode",W.value),A.flag&&A.id===b&&n("update:processNode",A.value)});const D=Z=>{var O;console.log(y.value),y.value||(Z.x+376>document.body.clientWidth?$.value="left":$.value="right"),(O=w.value)==null||O.show(),y.value=!0,clearTimeout(N.value)},T=()=>{N.value=setTimeout(()=>{var Z;(Z=w.value)==null||Z.hide(),y.value=!1},500)},J=()=>{n("update:processNode",C.value.nextNode)},P=()=>{let Z=C.value.branchNodes.length+1;C.value.branchNodes.push({nodeName:"\u6761\u4EF6"+Z,type:3,priorityLevel:Z,conditionList:[],nodeUserList:[],nextNode:null})},R=Z=>{C.value.type=Z},M=()=>{switch(C.value.type){case"handlingNode":C.value.type="approvalNode";break;case"approvalNode":C.value.type="handlingNode";break}},U=Z=>{C.value.branchNodes.splice(Z,1),C.value.branchNodes.map((O,X)=>{O.priorityLevel=X+1,O.nodeName=`\u6761\u4EF6${X+1}`}),C.value.branchNodes.length==1&&(C.value.nextNode&&(C.value.branchNodes[0].nextNode?H(C.value.branchNodes[0].nextNode,C.value.nextNode):C.value.branchNodes[0].nextNode=C.value.nextNode),n("update:processNode",C.value.branchNodes[0].nextNode))},H=(Z,O)=>{Z.nextNode?H(Z.nextNode,O):Z.nextNode=O},K=Z=>{L.value==0?(g(!0),q({value:JSON.parse(JSON.stringify(C.value)),flag:!1,id:b}),console.log(a.value)):L.value==1?(h(!0),v({value:JSON.parse(JSON.stringify(C.value)),flag:!1,id:b})):L.value==2?(u(!0),_({value:JSON.parse(JSON.stringify(C.value)),flag:!1,id:b})):(k(!0),p({value:JSON.parse(JSON.stringify(C.value)),priorityLevel:Z,flag:!1,id:b}))};return(Z,O)=>{const X=t.resolveComponent("nodeContent",!0);return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.unref(L)<4&&t.unref(L)>=0?(t.openBlock(),t.createElementBlock("div",Sr,[t.createElementVNode("div",{class:t.normalizeClass(["node-wrap-box",(t.unref(L)==0?"start-node ":"")+(t.unref(l)&&t.unref(C).error?"active error":"")])},[t.createElementVNode("div",{class:t.normalizeClass(["title",`bg-${t.unref(x)[t.unref(L)]}`])},[t.createElementVNode("span",null,t.toDisplayString(t.unref(C).nodeName),1)],2),t.createElementVNode("div",{class:t.normalizeClass(["content",`bg-${t.unref(x)[t.unref(L)]}`]),onClick:O[0]||(O[0]=W=>K(1))},[t.createElementVNode("div",Nr,[t.createElementVNode("div",null,[t.createElementVNode("div",qr,[Er,t.createElementVNode("div",Br,[t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Tr,"\u8BF7\u9009\u62E9"+t.toDisplayString(t.unref(I)),1)),t.createTextVNode(" "+t.toDisplayString(t.unref(S)),1)])]),t.createElementVNode("div",Rr,[$r,t.createElementVNode("div",Lr,[t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Pr,"\u8BF7\u9009\u62E9"+t.toDisplayString(t.unref(I)),1)),t.createTextVNode(" "+t.toDisplayString(t.unref(S)),1)])]),t.createElementVNode("div",Mr,[Ar,t.createElementVNode("div",Ir,[t.unref(S)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Or,"\u8BF7\u9009\u62E9"+t.toDisplayString(t.unref(I)),1)),t.createTextVNode(" "+t.toDisplayString(t.unref(S)),1)])])])])],2),t.unref(L)!=0?(t.openBlock(),t.createElementBlock("div",zr,[t.createElementVNode("div",Fr,[t.createVNode(ge,{round:"",size:"xs",class:"text-grey-5 bg-white",onClick:M},{default:t.withCtx(()=>[Dr]),_:1}),t.createVNode(ge,{round:"",size:"xs",class:"q-mt-xs text-grey-5 bg-white",onClick:J},{default:t.withCtx(()=>[Ur]),_:1})])])):t.createCommentVNode("",!0),t.unref(l)&&t.unref(C).error?(t.openBlock(),t.createElementBlock("div",Hr,jr)):t.createCommentVNode("",!0)],2),t.createVNode(Sn,{propProcessNode:t.unref(C),"onUpdate:propProcessNode":O[1]||(O[1]=W=>t.isRef(C)?C.value=W:C=W),childNodeP:t.unref(C).nextNode,"onUpdate:childNodeP":O[2]||(O[2]=W=>t.unref(C).nextNode=W)},null,8,["propProcessNode","childNodeP"])])):t.createCommentVNode("",!0),t.unref(L)>=4?(t.openBlock(),t.createElementBlock("div",Wr,[t.createElementVNode("div",Qr,[t.createElementVNode("div",Kr,[t.createElementVNode("div",Xr,[t.createElementVNode("a",{class:t.normalizeClass(["add-brach-type-name text-white",t.unref(L)==4?"bg-green-7":t.unref(L)==5?"bg-red-8":"bg-teal-7"])},t.toDisplayString(t.unref(L)==4?"\u6DFB\u52A0\u6761\u4EF6":t.unref(L)==5?"\u6DFB\u52A0\u5E76\u53D1":"\u6DFB\u52A0\u9009\u62E9"),3),t.createElementVNode("div",Jr,[t.createVNode(ge,{round:"",size:"xs",class:"q-mr-xs text-grey-5 bg-white",onClick:P},{default:t.withCtx(()=>[Zr]),_:1}),t.createVNode(ge,{round:"",size:"xs",class:"q-mr-xs text-grey-5 bg-white",onClick:O[3]||(O[3]=W=>U(t.unref(C).branchNodes.length-1))},{default:t.withCtx(()=>[Yr]),_:1}),t.createElementVNode("div",{onMouseover:D,onMouseout:T},[t.createVNode(tl,{"text-color":"blue",padding:"1px",ref_key:"fabBtn",ref:w,color:"white",class:"fab-add-content",direction:t.unref(B)=="standard"?"down":$.value},{icon:t.withCtx(({opened:W})=>[t.createElementVNode("i",{class:t.normalizeClass(["iconfont icon-qihuan text-grey-5",{"example-fab-animate":W===!0}]),style:{"font-size":"12px"}},null,2)]),"active-icon":t.withCtx(({opened:W})=>[t.createElementVNode("i",{class:t.normalizeClass(["iconfont icon-qihuan text-grey-5",{"example-fab-animate":W===!0}]),style:{"font-size":"12px"}},null,2)]),default:t.withCtx(()=>[t.createVNode(Ke,{class:"item-fab-action",square:"",color:"green-7","text-color":"white",label:"\u6761\u4EF6\u5206\u652F",onClick:O[4]||(O[4]=W=>R("exclusiveGateway"))}),t.createVNode(Ke,{class:"item-fab-action",square:"",color:"red-8","text-color":"white",label:"\u5E76\u884C\u5206\u652F",onClick:O[5]||(O[5]=W=>R("parallelGateway"))}),t.createVNode(Ke,{class:"item-fab-action",square:"",color:"teal-7","text-color":"white",label:"\u9009\u62E9\u5206\u652F",onClick:O[6]||(O[6]=W=>R("selectBranch"))})]),_:1},8,["direction"])],32)])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(C).branchNodes,(W,A)=>(t.openBlock(),t.createElementBlock("div",{class:"col-box",key:A},[t.createElementVNode("div",Gr,[t.createElementVNode("div",ei,[t.createElementVNode("div",{class:t.normalizeClass(["auto-judge",t.unref(l)&&W.error?"error active":""])},[t.createElementVNode("div",{onClick:Q=>K(A)},[t.createElementVNode("div",ni,[t.createElementVNode("span",oi,t.toDisplayString(W.nodeName),1),t.createElementVNode("span",li," \u4F18\u5148\u7EA7"+t.toDisplayString(W.priorityLevel?W.priorityLevel:0),1)]),t.createElementVNode("div",ai,t.toDisplayString(W.conditionExpression?W.conditionExpression:"\u672A\u8BBE\u7F6E")+" ",1)],8,ti),t.createElementVNode("i",{class:"iconfont icon-guanbi close",onClick:Q=>U(A)},null,8,ri),t.unref(l)&&W.error?(t.openBlock(),t.createElementBlock("div",ii,si)):t.createCommentVNode("",!0)],2),t.createVNode(Sn,{propProcessNode:t.unref(C).branchNodes[A],"onUpdate:propProcessNode":Q=>t.unref(C).branchNodes[A]=Q,childNodeP:W.nextNode,"onUpdate:childNodeP":Q=>W.nextNode=Q},null,8,["propProcessNode","onUpdate:propProcessNode","childNodeP","onUpdate:childNodeP"])])]),W.nextNode?(t.openBlock(),t.createBlock(X,{key:0,processNode:W.nextNode,"onUpdate:processNode":Q=>W.nextNode=Q},null,8,["processNode","onUpdate:processNode"])):t.createCommentVNode("",!0),A==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[ui,ci],64)):t.createCommentVNode("",!0),A==t.unref(C).branchNodes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[di,fi],64)):t.createCommentVNode("",!0)]))),128))]),t.createVNode(Sn,{propProcessNode:t.unref(C),"onUpdate:propProcessNode":O[7]||(O[7]=W=>t.isRef(C)?C.value=W:C=W),childNodeP:t.unref(C).nextNode,"onUpdate:childNodeP":O[8]||(O[8]=W=>t.unref(C).nextNode=W)},null,8,["propProcessNode","childNodeP"])])])):t.createCommentVNode("",!0),t.unref(C).nextNode?(t.openBlock(),t.createBlock(X,{key:2,processNode:t.unref(C).nextNode,"onUpdate:processNode":O[9]||(O[9]=W=>t.unref(C).nextNode=W)},null,8,["processNode"])):t.createCommentVNode("",!0)],64)}}};function Nn(e,n,o,l){Object.defineProperty(e,n,{get:o,set:l,enumerable:!0})}const Xe=t.ref(!1);let qn;function hi(e,n){const o=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[2]||o[4]||"0",versionNumber:o[4]||o[2]||"0",platform:n[0]||""}}function pi(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const ll="ontouchstart"in window||window.navigator.maxTouchPoints>0;function gi(e){qn={is:{...e}},delete e.mac,delete e.desktop;const n=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:n,[n]:!0})}function vi(e){const n=e.toLowerCase(),o=pi(n),l=hi(n,o),a={};l.browser&&(a[l.browser]=!0,a.version=l.version,a.versionNumber=parseInt(l.versionNumber,10)),l.platform&&(a[l.platform]=!0);const r=a.android||a.ios||a.bb||a.blackberry||a.ipad||a.iphone||a.ipod||a.kindle||a.playbook||a.silk||a["windows phone"];return r===!0||n.indexOf("mobile")>-1?(a.mobile=!0,a.edga||a.edgios?(a.edge=!0,l.browser="edge"):a.crios?(a.chrome=!0,l.browser="chrome"):a.fxios&&(a.firefox=!0,l.browser="firefox")):a.desktop=!0,(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a["windows phone"]&&(a.winphone=!0,delete a["windows phone"]),(a.chrome||a.opr||a.safari||a.vivaldi||a.mobile===!0&&a.ios!==!0&&r!==!0)&&(a.webkit=!0),a.edg&&(l.browser="edgechromium",a.edgeChromium=!0),(a.safari&&a.blackberry||a.bb)&&(l.browser="blackberry",a.blackberry=!0),a.safari&&a.playbook&&(l.browser="playbook",a.playbook=!0),a.opr&&(l.browser="opera",a.opera=!0),a.safari&&a.android&&(l.browser="android",a.android=!0),a.safari&&a.kindle&&(l.browser="kindle",a.kindle=!0),a.safari&&a.silk&&(l.browser="silk",a.silk=!0),a.vivaldi&&(l.browser="vivaldi",a.vivaldi=!0),a.name=l.browser,a.platform=l.platform,n.indexOf("electron")>-1?a.electron=!0:document.location.href.indexOf("-extension://")>-1?a.bex=!0:(window.Capacitor!==void 0?(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper="cordova"),ll===!0&&a.mac===!0&&(a.desktop===!0&&a.safari===!0||a.nativeMobile===!0&&a.android!==!0&&a.ios!==!0&&a.ipad!==!0)&&gi(a)),a}const al=navigator.userAgent||navigator.vendor||window.opera,bi={has:{touch:!1,webStorage:!1},within:{iframe:!1}},he={userAgent:al,is:vi(al),has:{touch:ll},within:{iframe:window.self!==window.top}},En={install(e){const{$q:n}=e;Xe.value===!0?(e.onSSRHydrated.push(()=>{Xe.value=!1,Object.assign(n.platform,he),qn=void 0}),n.platform=t.reactive(this)):n.platform=this}};{let e;Nn(he.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),he.is.ios===!0&&window.navigator.vendor.toLowerCase().indexOf("apple"),Xe.value===!0?Object.assign(En,he,qn,bi):Object.assign(En,he)}function yi(){const e=t.ref(!Xe.value);return e.value===!1&&t.onMounted(()=>{e.value=!0}),e}const rl=typeof ResizeObserver<"u",il=rl===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},st=ne({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:n}){let o=null,l,a={width:-1,height:-1};function r(d){d===!0||e.debounce===0||e.debounce==="0"?i():o===null&&(o=setTimeout(i,e.debounce))}function i(){if(clearTimeout(o),o=null,l){const{offsetWidth:d,offsetHeight:f}=l;(d!==a.width||f!==a.height)&&(a={width:d,height:f},n("resize",a))}}const s=t.getCurrentInstance();if(Object.assign(s.proxy,{trigger:r}),rl===!0){let d;return t.onMounted(()=>{t.nextTick(()=>{l=s.proxy.$el.parentNode,l&&(d=new ResizeObserver(r),d.observe(l),i())})}),t.onBeforeUnmount(()=>{clearTimeout(o),d!==void 0&&(d.disconnect!==void 0?d.disconnect():l&&d.unobserve(l))}),We}else{let c=function(){clearTimeout(o),f!==void 0&&(f.removeEventListener!==void 0&&f.removeEventListener("resize",r,pe.passive),f=void 0)},g=function(){c(),l&&l.contentDocument&&(f=l.contentDocument.defaultView,f.addEventListener("resize",r,pe.passive),i())};const d=yi();let f;return t.onMounted(()=>{t.nextTick(()=>{l=s.proxy.$el,l&&g()})}),t.onBeforeUnmount(c),()=>{if(d.value===!0)return t.h("object",{style:il.style,tabindex:-1,type:"text/html",data:il.url,"aria-hidden":"true",onLoad:g})}}}}),kt=ne({name:"QPageContainer",setup(e,{slots:n}){const{proxy:{$q:o}}=t.getCurrentInstance(),l=t.inject(_t,()=>{console.error("QPageContainer needs to be child of QLayout")});t.provide(Zo,!0);const a=t.computed(()=>{const r={};return l.header.space===!0&&(r.paddingTop=`${l.header.size}px`),l.right.space===!0&&(r[`padding${o.lang.rtl===!0?"Left":"Right"}`]=`${l.right.size}px`),l.footer.space===!0&&(r.paddingBottom=`${l.footer.size}px`),l.left.space===!0&&(r[`padding${o.lang.rtl===!0?"Right":"Left"}`]=`${l.left.size}px`),r});return()=>t.h("div",{class:"q-page-container",style:a.value},ce(n.default))}}),wi=[null,document,document.body,document.scrollingElement,document.documentElement];function Bn(e,n){let o=lr(n);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return wi.includes(o)?window:o}function sl(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function ul(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let Ht;function jt(){if(Ht!==void 0)return Ht;const e=document.createElement("p"),n=document.createElement("div");_n(e,{width:"100%",height:"200px"}),_n(n,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),n.appendChild(e),document.body.appendChild(n);const o=e.offsetWidth;n.style.overflow="scroll";let l=e.offsetWidth;return o===l&&(l=n.clientWidth),n.remove(),Ht=o-l,Ht}function xi(e,n=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:n?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const{passive:cl}=pe,_i=["both","horizontal","vertical"],ki=ne({name:"QScrollObserver",props:{axis:{type:String,validator:e=>_i.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(e,{emit:n}){const o={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let l=null,a,r;t.watch(()=>e.scrollTarget,()=>{d(),s()});function i(){l!==null&&l();const g=Math.max(0,sl(a)),h=ul(a),u={top:g-o.position.top,left:h-o.position.left};if(e.axis==="vertical"&&u.top===0||e.axis==="horizontal"&&u.left===0)return;const k=Math.abs(u.top)>=Math.abs(u.left)?u.top<0?"up":"down":u.left<0?"left":"right";o.position={top:g,left:h},o.directionChanged=o.direction!==k,o.delta=u,o.directionChanged===!0&&(o.direction=k,o.inflectionPoint=o.position),n("scroll",{...o})}function s(){a=Bn(r,e.scrollTarget),a.addEventListener("scroll",f,cl),f(!0)}function d(){a!==void 0&&(a.removeEventListener("scroll",f,cl),a=void 0)}function f(g){if(g===!0||e.debounce===0||e.debounce==="0")i();else if(l===null){const[h,u]=e.debounce?[setTimeout(i,e.debounce),clearTimeout]:[requestAnimationFrame(i),cancelAnimationFrame];l=()=>{u(h),l=null}}}const c=t.getCurrentInstance();return t.onMounted(()=>{r=c.proxy.$el.parentNode,s()}),t.onBeforeUnmount(()=>{l!==null&&l(),d()}),Object.assign(c.proxy,{trigger:f,getPosition:()=>o}),We}}),Ct=ne({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:n,emit:o}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=t.ref(null),r=t.ref(l.screen.height),i=t.ref(e.container===!0?0:l.screen.width),s=t.ref({position:0,direction:"down",inflectionPoint:0}),d=t.ref(0),f=t.ref(Xe.value===!0?0:jt()),c=t.computed(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),g=t.computed(()=>e.container===!1?{minHeight:l.screen.height+"px"}:null),h=t.computed(()=>f.value!==0?{[l.lang.rtl===!0?"left":"right"]:`${f.value}px`}:null),u=t.computed(()=>f.value!==0?{[l.lang.rtl===!0?"right":"left"]:0,[l.lang.rtl===!0?"left":"right"]:`-${f.value}px`,width:`calc(100% + ${f.value}px)`}:null);function k(x){if(e.container===!0||document.qScrollPrevented!==!0){const V={position:x.position.top,direction:x.direction,directionChanged:x.directionChanged,inflectionPoint:x.inflectionPoint.top,delta:x.delta.top};s.value=V,e.onScroll!==void 0&&o("scroll",V)}}function q(x){const{height:V,width:y}=x;let E=!1;r.value!==V&&(E=!0,r.value=V,e.onScrollHeight!==void 0&&o("scroll-height",V),_()),i.value!==y&&(E=!0,i.value=y),E===!0&&e.onResize!==void 0&&o("resize",x)}function v({height:x}){d.value!==x&&(d.value=x,_())}function _(){if(e.container===!0){const x=r.value>d.value?jt():0;f.value!==x&&(f.value=x)}}let p;const b={instances:{},view:t.computed(()=>e.view),isContainer:t.computed(()=>e.container),rootRef:a,height:r,containerHeight:d,scrollbarWidth:f,totalWidth:t.computed(()=>i.value+f.value),rows:t.computed(()=>{const x=e.view.toLowerCase().split(" ");return{top:x[0].split(""),middle:x[1].split(""),bottom:x[2].split("")}}),header:t.reactive({size:0,offset:0,space:!1}),right:t.reactive({size:300,offset:0,space:!1}),footer:t.reactive({size:0,offset:0,space:!1}),left:t.reactive({size:300,offset:0,space:!1}),scroll:s,animate(){p!==void 0?clearTimeout(p):document.body.classList.add("q-body--layout-animate"),p=setTimeout(()=>{document.body.classList.remove("q-body--layout-animate"),p=void 0},155)},update(x,V,y){b[x][V]=y}};if(t.provide(_t,b),jt()>0){let y=function(){x=null,V.classList.remove("hide-scrollbar")},E=function(){if(x===null){if(V.scrollHeight>l.screen.height)return;V.classList.add("hide-scrollbar")}else clearTimeout(x);x=setTimeout(y,300)},B=function(L){x!==null&&L==="remove"&&(clearTimeout(x),y()),window[`${L}EventListener`]("resize",E)},x=null;const V=document.body;t.watch(()=>e.container!==!0?"add":"remove",B),e.container!==!0&&B("add"),t.onUnmounted(()=>{B("remove")})}return()=>{const x=Ve(n.default,[t.h(ki,{onScroll:k}),t.h(st,{onResize:q})]),V=t.h("div",{class:c.value,style:g.value,ref:e.container===!0?void 0:a,tabindex:-1},x);return e.container===!0?t.h("div",{class:"q-layout-container overflow-hidden",ref:a},[t.h(st,{onResize:v}),t.h("div",{class:"absolute-full",style:h.value},[t.h("div",{class:"scroll",style:u.value},[V])])]):V}}}),Me={dark:{type:Boolean,default:null}};function Ae(e,n){return t.computed(()=>e.dark===null?n.dark.isActive:e.dark)}function Ci({validate:e,resetValidation:n,requiresQForm:o}){const l=t.inject(yr,!1);if(l!==!1){const{props:a,proxy:r}=t.getCurrentInstance();Object.assign(r,{validate:e,resetValidation:n}),t.watch(()=>a.disable,i=>{i===!0?(typeof n=="function"&&n(),l.unbindComponent(r)):l.bindComponent(r)}),a.disable!==!0&&l.bindComponent(r),t.onBeforeUnmount(()=>{a.disable!==!0&&l.unbindComponent(r)})}else o===!0&&console.error("Parent QForm not found on useFormChild()!")}const dl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,fl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,ml=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Wt=/^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])\)$/,Qt=/^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)\)$/,hl={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\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(e),hexColor:e=>dl.test(e),hexaColor:e=>fl.test(e),hexOrHexaColor:e=>ml.test(e),rgbColor:e=>Wt.test(e),rgbaColor:e=>Qt.test(e),rgbOrRgbaColor:e=>Wt.test(e)||Qt.test(e),hexOrRgbColor:e=>dl.test(e)||Wt.test(e),hexaOrRgbaColor:e=>fl.test(e)||Qt.test(e),anyColor:e=>ml.test(e)||Wt.test(e)||Qt.test(e)};"Boolean Number String Function Array Date RegExp Object".split(" ").forEach(e=>{e.toLowerCase()});const Vi={...ot,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean};function Si(e,n,o){return o<=n?n:Math.min(o,Math.max(n,e))}function pl(e,n,o){if(o<=n)return n;const l=o-n+1;let a=n+(e-n)%l;return a<n&&(a=l+a),a===0?0:a}const Tn=50,gl=2*Tn,vl=gl*Math.PI,Ni=Math.round(vl*1e3)/1e3;ne({name:"QCircularProgress",props:{...Vi,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(e,{slots:n}){const{proxy:{$q:o}}=t.getCurrentInstance(),l=lt(e),a=t.computed(()=>{const h=(o.lang.rtl===!0?-1:1)*e.angle;return{transform:e.reverse!==(o.lang.rtl===!0)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-h}deg)`:`rotate3d(0, 0, 1, ${h-90}deg)`}}),r=t.computed(()=>e.instantFeedback!==!0&&e.indeterminate!==!0?{transition:`stroke-dashoffset ${e.animationSpeed}ms ease 0s, stroke ${e.animationSpeed}ms ease`}:""),i=t.computed(()=>gl/(1-e.thickness/2)),s=t.computed(()=>`${i.value/2} ${i.value/2} ${i.value} ${i.value}`),d=t.computed(()=>Si(e.value,e.min,e.max)),f=t.computed(()=>vl*(1-(d.value-e.min)/(e.max-e.min))),c=t.computed(()=>e.thickness/2*i.value);function g({thickness:h,offset:u,color:k,cls:q}){return t.h("circle",{class:"q-circular-progress__"+q+(k!==void 0?` text-${k}`:""),style:r.value,fill:"transparent",stroke:"currentColor","stroke-width":h,"stroke-dasharray":Ni,"stroke-dashoffset":u,cx:i.value,cy:i.value,r:Tn})}return()=>{const h=[];e.centerColor!==void 0&&e.centerColor!=="transparent"&&h.push(t.h("circle",{class:`q-circular-progress__center text-${e.centerColor}`,fill:"currentColor",r:Tn-c.value/2,cx:i.value,cy:i.value})),e.trackColor!==void 0&&e.trackColor!=="transparent"&&h.push(g({cls:"track",thickness:c.value,offset:0,color:e.trackColor})),h.push(g({cls:"circle",thickness:c.value,offset:f.value,color:e.color}));const u=[t.h("svg",{class:"q-circular-progress__svg",style:a.value,viewBox:s.value,"aria-hidden":"true"},h)];return e.showValue===!0&&u.push(t.h("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:e.fontSize}},n.default!==void 0?n.default():[t.h("div",d.value)])),t.h("div",{class:`q-circular-progress q-circular-progress--${e.indeterminate===!0?"in":""}determinate`,style:l.value,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.indeterminate===!0?void 0:d.value},So(n.internal,u))}}});const qi=[...["rejected"],"start","finish","added","removed"],Ei=()=>!0;function Bi(e){const n={};return e.forEach(o=>{n[o]=Ei}),n}const Ti=typeof Map=="function",Ri=typeof Set=="function",$i=typeof ArrayBuffer=="function";function He(e,n){if(e===n)return!0;if(e!==null&&n!==null&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;let o,l;if(e.constructor===Array){if(o=e.length,o!==n.length)return!1;for(l=o;l--!==0;)if(He(e[l],n[l])!==!0)return!1;return!0}if(Ti===!0&&e.constructor===Map){if(e.size!==n.size)return!1;for(l=e.entries().next();l.done!==!0;){if(n.has(l.value[0])!==!0)return!1;l=l.next()}for(l=e.entries().next();l.done!==!0;){if(He(l.value[1],n.get(l.value[0]))!==!0)return!1;l=l.next()}return!0}if(Ri===!0&&e.constructor===Set){if(e.size!==n.size)return!1;for(l=e.entries().next();l.done!==!0;){if(n.has(l.value[0])!==!0)return!1;l=l.next()}return!0}if($i===!0&&e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(o=e.length,o!==n.length)return!1;for(l=o;l--!==0;)if(e[l]!==n[l])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();const a=Object.keys(e).filter(r=>e[r]!==void 0);if(o=a.length,o!==Object.keys(n).filter(r=>n[r]!==void 0).length)return!1;for(l=o;l--!==0;){const r=a[l];if(He(e[r],n[r])!==!0)return!1}return!0}return e!==e&&n!==n}Bi(qi);const Li=(e,n)=>{const o=t.reactive(e);for(const l in e)Nn(n,l,()=>o[l],a=>{o[l]=a});return n},bl={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>e===1?"1 record selected.":(e===0?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,n,o)=>e+"-"+n+" of "+o,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function yl(){const e=Array.isArray(navigator.languages)===!0&&navigator.languages.length>0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((n,o)=>o===0?n.toLowerCase():o>1||n.length<4?n.toUpperCase():n[0].toUpperCase()+n.slice(1).toLowerCase()).join("-")}const ut=Li({__langPack:{}},{getLocale:yl,set(e=bl,n){const o={...e,rtl:e.rtl===!0,getLocale:yl};{const l=document.documentElement;l.setAttribute("dir",o.rtl===!0?"rtl":"ltr"),l.setAttribute("lang",o.isoName),o.set=ut.set,Object.assign(ut.__langPack,o),ut.props=o,ut.isoName=o.isoName,ut.nativeName=o.nativeName}},install({$q:e,lang:n,ssrContext:o}){e.lang=ut.__langPack,this.__installed===!0?n!==void 0&&this.set(n):this.set(n||bl)}});function wl(e,n=250,o){let l;function a(){const r=arguments,i=()=>{l=void 0,o!==!0&&e.apply(this,r)};clearTimeout(l),o===!0&&l===void 0&&e.apply(this,r),l=setTimeout(i,n)}return a.cancel=()=>{clearTimeout(l)},a}let Rn,Kt=0;const ye=new Array(256);for(let e=0;e<256;e++)ye[e]=(e+256).toString(16).substring(1);const Pi=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return n=>{const o=new Uint8Array(n);return e.getRandomValues(o),o}}return n=>{const o=[];for(let l=n;l>0;l--)o.push(Math.floor(Math.random()*256));return o}})(),xl=4096;function Mi(){(Rn===void 0||Kt+16>xl)&&(Kt=0,Rn=Pi(xl));const e=Array.prototype.slice.call(Rn,Kt,Kt+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,ye[e[0]]+ye[e[1]]+ye[e[2]]+ye[e[3]]+"-"+ye[e[4]]+ye[e[5]]+"-"+ye[e[6]]+ye[e[7]]+"-"+ye[e[8]]+ye[e[9]]+"-"+ye[e[10]]+ye[e[11]]+ye[e[12]]+ye[e[13]]+ye[e[14]]+ye[e[15]]}const Ai=[!0,!1,"ondemand"],Ii={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:e=>Ai.includes(e)}};function Oi(e,n){const{props:o,proxy:l}=t.getCurrentInstance(),a=t.ref(!1),r=t.ref(null),i=t.ref(null);Ci({validate:k,resetValidation:u});let s=0,d;const f=t.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length>0),c=t.computed(()=>o.disable!==!0&&f.value===!0),g=t.computed(()=>o.error===!0||a.value===!0),h=t.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length>0?o.errorMessage:r.value);t.watch(()=>o.modelValue,()=>{q()}),t.watch(()=>o.reactiveRules,_=>{_===!0?d===void 0&&(d=t.watch(()=>o.rules,()=>{q(!0)})):d!==void 0&&(d(),d=void 0)},{immediate:!0}),t.watch(e,_=>{_===!0?i.value===null&&(i.value=!1):i.value===!1&&(i.value=!0,c.value===!0&&o.lazyRules!=="ondemand"&&n.value===!1&&v())});function u(){s++,n.value=!1,i.value=null,a.value=!1,r.value=null,v.cancel()}function k(_=o.modelValue){if(c.value!==!0)return!0;const p=++s;n.value!==!0&&o.lazyRules!==!0&&(i.value=!0);const b=(V,y)=>{a.value!==V&&(a.value=V);const E=y||void 0;r.value!==E&&(r.value=E),n.value=!1},x=[];for(let V=0;V<o.rules.length;V++){const y=o.rules[V];let E;if(typeof y=="function"?E=y(_):typeof y=="string"&&hl[y]!==void 0&&(E=hl[y](_)),E===!1||typeof E=="string")return b(!0,E),!1;E!==!0&&E!==void 0&&x.push(E)}return x.length===0?(b(!1),!0):(n.value=!0,Promise.all(x).then(V=>{if(V===void 0||Array.isArray(V)===!1||V.length===0)return p===s&&b(!1),!0;const y=V.find(E=>E===!1||typeof E=="string");return p===s&&b(y!==void 0,y),y===void 0},V=>(p===s&&(console.error(V),b(!0)),!1)))}function q(_){c.value===!0&&o.lazyRules!=="ondemand"&&(i.value===!0||o.lazyRules!==!0&&_!==!0)&&v()}const v=wl(k,0);return t.onBeforeUnmount(()=>{d!==void 0&&d(),v.cancel()}),Object.assign(l,{resetValidation:u,validate:k}),Nn(l,"hasError",()=>g.value),{isDirtyModel:i,hasRules:f,hasError:g,errorMessage:h,validate:k,resetValidation:u}}const _l=/^on[A-Z]/;function zi(e,n){const o={listeners:t.ref({}),attributes:t.ref({})};function l(){const a={},r={};for(const i in e)i!=="class"&&i!=="style"&&_l.test(i)===!1&&(a[i]=e[i]);for(const i in n.props)_l.test(i)===!0&&(r[i]=n.props[i]);o.attributes.value=a,o.listeners.value=r}return t.onBeforeUpdate(l),l(),o}let Je=[],Vt=[];function kl(e){Vt=Vt.filter(n=>n!==e)}function Fi(e){kl(e),Vt.push(e)}function Cl(e){kl(e),Vt.length===0&&Je.length>0&&(Je[Je.length-1](),Je=[])}function Xt(e){Vt.length===0?e():Je.push(e)}function Di(e){Je=Je.filter(n=>n!==e)}function $n(e){return e===void 0?`f_${Mi()}`:e}function St(e){return e!=null&&(""+e).length>0}const Jt={...Me,...Ii,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]},Ln=["update:modelValue","clear","focus","blur","popup-show","popup-hide"];function Pn(){const{props:e,attrs:n,proxy:o,vnode:l}=t.getCurrentInstance();return{isDark:Ae(e,o.$q),editable:t.computed(()=>e.disable!==!0&&e.readonly!==!0),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:zi(n,l),targetUid:t.ref($n(e.for)),rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function Mn(e){const{props:n,emit:o,slots:l,attrs:a,proxy:r}=t.getCurrentInstance(),{$q:i}=r;let s;e.hasValue===void 0&&(e.hasValue=t.computed(()=>St(n.modelValue))),e.emitValue===void 0&&(e.emitValue=T=>{o("update:modelValue",T)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:L,onFocusout:I}),Object.assign(e,{clearValue:C,onControlFocusin:L,onControlFocusout:I,focus:E}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(n.counter!==!1){const T=typeof n.modelValue=="string"||typeof n.modelValue=="number"?(""+n.modelValue).length:Array.isArray(n.modelValue)===!0?n.modelValue.length:0,J=n.maxlength!==void 0?n.maxlength:n.maxValues;return T+(J!==void 0?" / "+J:"")}}));const{isDirtyModel:d,hasRules:f,hasError:c,errorMessage:g,resetValidation:h}=Oi(e.focused,e.innerLoading),u=e.floatingLabel!==void 0?t.computed(()=>n.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>n.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),k=t.computed(()=>n.bottomSlots===!0||n.hint!==void 0||f.value===!0||n.counter===!0||n.error!==null),q=t.computed(()=>n.filled===!0?"filled":n.outlined===!0?"outlined":n.borderless===!0?"borderless":n.standout?"standout":"standard"),v=t.computed(()=>`q-field row no-wrap items-start q-field--${q.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(n.rounded===!0?" q-field--rounded":"")+(n.square===!0?" q-field--square":"")+(u.value===!0?" q-field--float":"")+(p.value===!0?" q-field--labeled":"")+(n.dense===!0?" q-field--dense":"")+(n.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(c.value===!0?" q-field--error":"")+(c.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(n.hideBottomSpace!==!0&&k.value===!0?" q-field--with-bottom":"")+(n.disable===!0?" q-field--disabled":n.readonly===!0?" q-field--readonly":"")),_=t.computed(()=>"q-field__control relative-position row no-wrap"+(n.bgColor!==void 0?` bg-${n.bgColor}`:"")+(c.value===!0?" text-negative":typeof n.standout=="string"&&n.standout.length>0&&e.focused.value===!0?` ${n.standout}`:n.color!==void 0?` text-${n.color}`:"")),p=t.computed(()=>n.labelSlot===!0||n.label!==void 0),b=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(n.labelColor!==void 0&&c.value!==!0?` text-${n.labelColor}`:"")),x=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:u.value,modelValue:n.modelValue,emitValue:e.emitValue})),V=t.computed(()=>{const T={for:e.targetUid.value};return n.disable===!0?T["aria-disabled"]="true":n.readonly===!0&&(T["aria-readonly"]="true"),T});t.watch(()=>n.for,T=>{e.targetUid.value=$n(T)});function y(){const T=document.activeElement;let J=e.targetRef!==void 0&&e.targetRef.value;J&&(T===null||T.id!==e.targetUid.value)&&(J.hasAttribute("tabindex")===!0||(J=J.querySelector("[tabindex]")),J&&J!==T&&J.focus({preventScroll:!0}))}function E(){Xt(y)}function B(){Di(y);const T=document.activeElement;T!==null&&e.rootRef.value.contains(T)&&T.blur()}function L(T){clearTimeout(s),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,o("focus",T))}function I(T,J){clearTimeout(s),s=setTimeout(()=>{document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1)||(e.focused.value===!0&&(e.focused.value=!1,o("blur",T)),J!==void 0&&J())})}function C(T){re(T),i.platform.is.mobile!==!0?(e.targetRef!==void 0&&e.targetRef.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),n.type==="file"&&(e.inputRef.value.value=null),o("update:modelValue",null),o("clear",n.modelValue),t.nextTick(()=>{h(),i.platform.is.mobile!==!0&&(d.value=!1)})}function S(){const T=[];return l.prepend!==void 0&&T.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Se},l.prepend())),T.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},w())),c.value===!0&&n.noErrorIcon===!1&&T.push($("error",[t.h(me,{name:i.iconSet.field.error,color:"negative"})])),n.loading===!0||e.innerLoading.value===!0?T.push($("inner-loading-append",l.loading!==void 0?l.loading():[t.h(Lo,{color:n.color})])):n.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&T.push($("inner-clearable-append",[t.h(me,{class:"q-field__focusable-action",tag:"button",name:n.clearIcon||i.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:C})])),l.append!==void 0&&T.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Se},l.append())),e.getInnerAppend!==void 0&&T.push($("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&T.push(e.getControlChild()),T}function w(){const T=[];return n.prefix!==void 0&&n.prefix!==null&&T.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},n.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&T.push(e.getShadowControl()),e.getControl!==void 0?T.push(e.getControl()):l.rawControl!==void 0?T.push(l.rawControl()):l.control!==void 0&&T.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus===!0||void 0},l.control(x.value))),p.value===!0&&T.push(t.h("div",{class:b.value},ce(l.label,n.label))),n.suffix!==void 0&&n.suffix!==null&&T.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},n.suffix)),T.concat(ce(l.default))}function N(){let T,J;c.value===!0?g.value!==null?(T=[t.h("div",{role:"alert"},g.value)],J=`q--slot-error-${g.value}`):(T=ce(l.error),J="q--slot-error"):(n.hideHint!==!0||e.focused.value===!0)&&(n.hint!==void 0?(T=[t.h("div",n.hint)],J=`q--slot-hint-${n.hint}`):(T=ce(l.hint),J="q--slot-hint"));const P=n.counter===!0||l.counter!==void 0;if(n.hideBottomSpace===!0&&P===!1&&T===void 0)return;const R=t.h("div",{key:J,class:"q-field__messages col"},T);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(n.hideBottomSpace!==!0?"animated":"stale")},[n.hideBottomSpace===!0?R:t.h(t.Transition,{name:"q-transition--field-message"},()=>R),P===!0?t.h("div",{class:"q-field__counter"},l.counter!==void 0?l.counter():e.computedCounter.value):null])}function $(T,J){return J===null?null:t.h("div",{key:T,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},J)}Object.assign(r,{focus:E,blur:B});let D=!1;return t.onDeactivated(()=>{D=!0}),t.onActivated(()=>{D===!0&&n.autofocus===!0&&r.focus()}),t.onMounted(()=>{Xe.value===!0&&n.for===void 0&&(e.targetUid.value=$n()),n.autofocus===!0&&r.focus()}),t.onBeforeUnmount(()=>{clearTimeout(s)}),function(){const J=e.getControl===void 0&&l.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus===!0||void 0,...V.value}:V.value;return t.h("label",{ref:e.rootRef,class:[v.value,a.class],style:a.style,...J},[l.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Se},l.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:_.value,tabindex:-1,...e.controlEvents},S()),k.value===!0?N():null]),l.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Se},l.after()):null])}}const Vl={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Zt={"#":{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:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},Sl=Object.keys(Zt);Sl.forEach(e=>{Zt[e].regex=new RegExp(Zt[e].pattern)});const Ui=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Sl.join("")+"])|(.)","g"),Nl=/[.*+?^${}()|[\]\\]/g,ve=String.fromCharCode(1),Hi={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function ji(e,n,o,l){let a,r,i,s;const d=t.ref(null),f=t.ref(g());function c(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}t.watch(()=>e.type+e.autogrow,u),t.watch(()=>e.mask,y=>{if(y!==void 0)k(f.value,!0);else{const E=x(f.value);u(),e.modelValue!==E&&n("update:modelValue",E)}}),t.watch(()=>e.fillMask+e.reverseFillMask,()=>{d.value===!0&&k(f.value,!0)}),t.watch(()=>e.unmaskedValue,()=>{d.value===!0&&k(f.value)});function g(){if(u(),d.value===!0){const y=p(x(e.modelValue));return e.fillMask!==!1?V(y):y}return e.modelValue}function h(y){if(y<a.length)return a.slice(-y);let E="",B=a;const L=B.indexOf(ve);if(L>-1){for(let I=y-B.length;I>0;I--)E+=ve;B=B.slice(0,L)+E+B.slice(L)}return B}function u(){if(d.value=e.mask!==void 0&&e.mask.length>0&&c(),d.value===!1){s=void 0,a="",r="";return}const y=Vl[e.mask]===void 0?e.mask:Vl[e.mask],E=typeof e.fillMask=="string"&&e.fillMask.length>0?e.fillMask.slice(0,1):"_",B=E.replace(Nl,"\\$&"),L=[],I=[],C=[];let S=e.reverseFillMask===!0,w="",N="";y.replace(Ui,(J,P,R,M,U)=>{if(M!==void 0){const H=Zt[M];C.push(H),N=H.negate,S===!0&&(I.push("(?:"+N+"+)?("+H.pattern+"+)?(?:"+N+"+)?("+H.pattern+"+)?"),S=!1),I.push("(?:"+N+"+)?("+H.pattern+")?")}else if(R!==void 0)w="\\"+(R==="\\"?"":R),C.push(R),L.push("([^"+w+"]+)?"+w+"?");else{const H=P!==void 0?P:U;w=H==="\\"?"\\\\\\\\":H.replace(Nl,"\\\\$&"),C.push(H),L.push("([^"+w+"]+)?"+w+"?")}});const $=new RegExp("^"+L.join("")+"("+(w===""?".":"[^"+w+"]")+"+)?$"),D=I.length-1,T=I.map((J,P)=>P===0&&e.reverseFillMask===!0?new RegExp("^"+B+"*"+J):P===D?new RegExp("^"+J+"("+(N===""?".":N)+"+)?"+(e.reverseFillMask===!0?"$":B+"*")):new RegExp("^"+J));i=C,s=J=>{const P=$.exec(J);P!==null&&(J=P.slice(1).join(""));const R=[],M=T.length;for(let U=0,H=J;U<M;U++){const K=T[U].exec(H);if(K===null)break;H=H.slice(K.shift().length),R.push(...K)}return R.length>0?R.join(""):J},a=C.map(J=>typeof J=="string"?J:ve).join(""),r=a.split(ve).join(E)}function k(y,E,B){const L=l.value,I=L.selectionEnd,C=L.value.length-I,S=x(y);E===!0&&u();const w=p(S),N=e.fillMask!==!1?V(w):w,$=f.value!==N;L.value!==N&&(L.value=N),$===!0&&(f.value=N),document.activeElement===L&&t.nextTick(()=>{if(N===r){const T=e.reverseFillMask===!0?r.length:0;L.setSelectionRange(T,T,"forward");return}if(B==="insertFromPaste"&&e.reverseFillMask!==!0){const T=I-1;v.right(L,T,T);return}if(["deleteContentBackward","deleteContentForward"].indexOf(B)>-1){const T=e.reverseFillMask===!0?I===0?N.length>w.length?1:0:Math.max(0,N.length-(N===r?0:Math.min(w.length,C)+1))+1:I;L.setSelectionRange(T,T,"forward");return}if(e.reverseFillMask===!0)if($===!0){const T=Math.max(0,N.length-(N===r?0:Math.min(w.length,C+1)));T===1&&I===1?L.setSelectionRange(T,T,"forward"):v.rightReverse(L,T,T)}else{const T=N.length-C;L.setSelectionRange(T,T,"backward")}else if($===!0){const T=Math.max(0,a.indexOf(ve),Math.min(w.length,I)-1);v.right(L,T,T)}else{const T=I-1;v.right(L,T,T)}});const D=e.unmaskedValue===!0?x(N):N;String(e.modelValue)!==D&&o(D,!0)}function q(y,E,B){const L=p(x(y.value));E=Math.max(0,a.indexOf(ve),Math.min(L.length,E)),y.setSelectionRange(E,B,"forward")}const v={left(y,E,B,L){const I=a.slice(E-1).indexOf(ve)===-1;let C=Math.max(0,E-1);for(;C>=0;C--)if(a[C]===ve){E=C,I===!0&&E++;break}if(C<0&&a[E]!==void 0&&a[E]!==ve)return v.right(y,0,0);E>=0&&y.setSelectionRange(E,L===!0?B:E,"backward")},right(y,E,B,L){const I=y.value.length;let C=Math.min(I,B+1);for(;C<=I;C++)if(a[C]===ve){B=C;break}else a[C-1]===ve&&(B=C);if(C>I&&a[B-1]!==void 0&&a[B-1]!==ve)return v.left(y,I,I);y.setSelectionRange(L?E:B,B,"forward")},leftReverse(y,E,B,L){const I=h(y.value.length);let C=Math.max(0,E-1);for(;C>=0;C--)if(I[C-1]===ve){E=C;break}else if(I[C]===ve&&(E=C,C===0))break;if(C<0&&I[E]!==void 0&&I[E]!==ve)return v.rightReverse(y,0,0);E>=0&&y.setSelectionRange(E,L===!0?B:E,"backward")},rightReverse(y,E,B,L){const I=y.value.length,C=h(I),S=C.slice(0,B+1).indexOf(ve)===-1;let w=Math.min(I,B+1);for(;w<=I;w++)if(C[w-1]===ve){B=w,B>0&&S===!0&&B--;break}if(w>I&&C[B-1]!==void 0&&C[B-1]!==ve)return v.leftReverse(y,I,I);y.setSelectionRange(L===!0?E:B,B,"forward")}};function _(y){if(Ot(y)===!0)return;const E=l.value,B=E.selectionStart,L=E.selectionEnd;if(y.keyCode===37||y.keyCode===39){const I=v[(y.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];y.preventDefault(),I(E,B,L,y.shiftKey)}else y.keyCode===8&&e.reverseFillMask!==!0&&B===L?v.left(E,B,L,!0):y.keyCode===46&&e.reverseFillMask===!0&&B===L&&v.rightReverse(E,B,L,!0)}function p(y){if(y==null||y==="")return"";if(e.reverseFillMask===!0)return b(y);const E=i;let B=0,L="";for(let I=0;I<E.length;I++){const C=y[B],S=E[I];if(typeof S=="string")L+=S,C===S&&B++;else if(C!==void 0&&S.regex.test(C))L+=S.transform!==void 0?S.transform(C):C,B++;else return L}return L}function b(y){const E=i,B=a.indexOf(ve);let L=y.length-1,I="";for(let C=E.length-1;C>=0&&L>-1;C--){const S=E[C];let w=y[L];if(typeof S=="string")I=S+I,w===S&&L--;else if(w!==void 0&&S.regex.test(w))do I=(S.transform!==void 0?S.transform(w):w)+I,L--,w=y[L];while(B===C&&w!==void 0&&S.regex.test(w));else return I}return I}function x(y){return typeof y!="string"||s===void 0?typeof y=="number"?s(""+y):y:s(y)}function V(y){return r.length-y.length<=0?y:e.reverseFillMask===!0&&y.length>0?r.slice(0,-y.length)+y:y+r.slice(y.length)}return{innerValue:f,hasMask:d,moveCursorForPaste:q,updateMaskValue:k,onMaskedKeydown:_}}const Yt={name:String};function ql(e={}){return(n,o,l)=>{n[o](t.h("input",{class:"hidden"+(l||""),...e.value}))}}function El(e){return t.computed(()=>e.name||e.for)}function Wi(e,n){function o(){const l=e.modelValue;try{const a="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(l)===l&&("length"in l?Array.from(l):[l]).forEach(r=>{a.items.add(r)}),{files:a.files}}catch{return{files:void 0}}}return n===!0?t.computed(()=>{if(e.type==="file")return o()}):t.computed(o)}const Qi=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Ki=/[\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,Xi=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Ji=/[a-z0-9_ -]$/i;function Bl(e){return function(o){if(o.type==="compositionend"||o.type==="change"){if(o.target.qComposing!==!0)return;o.target.qComposing=!1,e(o)}else o.type==="compositionupdate"&&o.target.qComposing!==!0&&typeof o.data=="string"&&(he.is.firefox===!0?Ji.test(o.data)===!1:Qi.test(o.data)===!0||Ki.test(o.data)===!0||Xi.test(o.data)===!0)===!0&&(o.target.qComposing=!0)}}const Nt=ne({name:"QInput",inheritAttrs:!1,props:{...Jt,...Hi,...Yt,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Ln,"paste","change"],setup(e,{emit:n,attrs:o}){const l={};let a=NaN,r,i,s,d;const f=t.ref(null),c=El(e),{innerValue:g,hasMask:h,moveCursorForPaste:u,updateMaskValue:k,onMaskedKeydown:q}=ji(e,n,S,f),v=Wi(e,!0),_=t.computed(()=>St(g.value)),p=Bl(C),b=Pn(),x=t.computed(()=>e.type==="textarea"||e.autogrow===!0),V=t.computed(()=>x.value===!0||["text","search","url","tel","password"].includes(e.type)),y=t.computed(()=>{const P={...b.splitAttrs.listeners.value,onInput:C,onPaste:I,onChange:N,onBlur:$,onFocus:$e};return P.onCompositionstart=P.onCompositionupdate=P.onCompositionend=p,h.value===!0&&(P.onKeydown=q),e.autogrow===!0&&(P.onAnimationend=w),P}),E=t.computed(()=>{const P={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:c.value,...b.splitAttrs.attributes.value,id:b.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return x.value===!1&&(P.type=e.type),e.autogrow===!0&&(P.rows=1),P});t.watch(()=>e.type,()=>{f.value&&(f.value.value=e.modelValue)}),t.watch(()=>e.modelValue,P=>{if(h.value===!0){if(i===!0&&(i=!1,String(P)===a))return;k(P)}else g.value!==P&&(g.value=P,e.type==="number"&&l.hasOwnProperty("value")===!0&&(r===!0?r=!1:delete l.value));e.autogrow===!0&&t.nextTick(w)}),t.watch(()=>e.autogrow,P=>{P===!0?t.nextTick(w):f.value!==null&&o.rows>0&&(f.value.style.height="auto")}),t.watch(()=>e.dense,()=>{e.autogrow===!0&&t.nextTick(w)});function B(){Xt(()=>{const P=document.activeElement;f.value!==null&&f.value!==P&&(P===null||P.id!==b.targetUid.value)&&f.value.focus({preventScroll:!0})})}function L(){f.value!==null&&f.value.select()}function I(P){if(h.value===!0&&e.reverseFillMask!==!0){const R=P.target;u(R,R.selectionStart,R.selectionEnd)}n("paste",P)}function C(P){if(!P||!P.target)return;if(e.type==="file"){n("update:modelValue",P.target.files);return}const R=P.target.value;if(P.target.qComposing===!0){l.value=R;return}if(h.value===!0)k(R,!1,P.inputType);else if(S(R),V.value===!0&&P.target===document.activeElement){const{selectionStart:M,selectionEnd:U}=P.target;M!==void 0&&U!==void 0&&t.nextTick(()=>{P.target===document.activeElement&&R.indexOf(P.target.value)===0&&P.target.setSelectionRange(M,U)})}e.autogrow===!0&&w()}function S(P,R){d=()=>{e.type!=="number"&&l.hasOwnProperty("value")===!0&&delete l.value,e.modelValue!==P&&a!==P&&(a=P,R===!0&&(i=!0),n("update:modelValue",P),t.nextTick(()=>{a===P&&(a=NaN)})),d=void 0},e.type==="number"&&(r=!0,l.value=P),e.debounce!==void 0?(clearTimeout(s),l.value=P,s=setTimeout(d,e.debounce)):d()}function w(){const P=f.value;if(P!==null){const R=P.parentNode.style,{overflow:M}=P.style;R.marginBottom=P.scrollHeight-1+"px",P.style.height="1px",P.style.overflow="hidden",P.style.height=P.scrollHeight+"px",P.style.overflow=M,R.marginBottom=""}}function N(P){p(P),clearTimeout(s),d!==void 0&&d(),n("change",P.target.value)}function $(P){P!==void 0&&$e(P),clearTimeout(s),d!==void 0&&d(),r=!1,i=!1,delete l.value,e.type!=="file"&&setTimeout(()=>{f.value!==null&&(f.value.value=g.value!==void 0?g.value:"")})}function D(){return l.hasOwnProperty("value")===!0?l.value:g.value!==void 0?g.value:""}t.onBeforeUnmount(()=>{$()}),t.onMounted(()=>{e.autogrow===!0&&w()}),Object.assign(b,{innerValue:g,fieldClass:t.computed(()=>`q-${x.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:t.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length>0),inputRef:f,emitValue:S,hasValue:_,floatingLabel:t.computed(()=>_.value===!0||St(e.displayValue)),getControl:()=>t.h(x.value===!0?"textarea":"input",{ref:f,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...E.value,...y.value,...e.type!=="file"?{value:D()}:v.value}),getShadowControl:()=>t.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(x.value===!0?"":" text-no-wrap")},[t.h("span",{class:"invisible"},D()),t.h("span",e.shadowText)])});const T=Mn(b),J=t.getCurrentInstance();return Object.assign(J.proxy,{focus:B,select:L,getNativeElement:()=>f.value}),T}}),Gt=ne({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:n,emit:o}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=t.inject(_t,()=>{console.error("QHeader needs to be child of QLayout")}),r=t.ref(parseInt(e.heightHint,10)),i=t.ref(!0),s=t.computed(()=>e.reveal===!0||a.view.value.indexOf("H")>-1||l.platform.is.ios&&a.isContainer.value===!0),d=t.computed(()=>{if(e.modelValue!==!0)return 0;if(s.value===!0)return i.value===!0?r.value:0;const p=r.value-a.scroll.value.position;return p>0?p:0}),f=t.computed(()=>e.modelValue!==!0||s.value===!0&&i.value!==!0),c=t.computed(()=>e.modelValue===!0&&f.value===!0&&e.reveal===!0),g=t.computed(()=>"q-header q-layout__section--marginal "+(s.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(f.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),h=t.computed(()=>{const p=a.rows.value.top,b={};return p[0]==="l"&&a.left.space===!0&&(b[l.lang.rtl===!0?"right":"left"]=`${a.left.size}px`),p[2]==="r"&&a.right.space===!0&&(b[l.lang.rtl===!0?"left":"right"]=`${a.right.size}px`),b});function u(p,b){a.update("header",p,b)}function k(p,b){p.value!==b&&(p.value=b)}function q({height:p}){k(r,p),u("size",p)}function v(p){c.value===!0&&k(i,!0),o("focusin",p)}t.watch(()=>e.modelValue,p=>{u("space",p),k(i,!0),a.animate()}),t.watch(d,p=>{u("offset",p)}),t.watch(()=>e.reveal,p=>{p===!1&&k(i,e.modelValue)}),t.watch(i,p=>{a.animate(),o("reveal",p)}),t.watch(a.scroll,p=>{e.reveal===!0&&k(i,p.direction==="up"||p.position<=e.revealOffset||p.position-p.inflectionPoint<100)});const _={};return a.instances.header=_,e.modelValue===!0&&u("size",r.value),u("space",e.modelValue),u("offset",d.value),t.onBeforeUnmount(()=>{a.instances.header===_&&(a.instances.header=void 0,u("size",0),u("offset",0),u("space",!1))}),()=>{const p=Vo(n.default,[]);return e.elevated===!0&&p.push(t.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),p.push(t.h(st,{debounce:0,onResize:q})),t.h("header",{class:g.value,style:h.value,onFocusin:v},p)}}}),en=ne({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:n,emit:o}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=t.inject(_t,()=>{console.error("QFooter needs to be child of QLayout")}),r=t.ref(parseInt(e.heightHint,10)),i=t.ref(!0),s=t.ref(Xe.value===!0||a.isContainer.value===!0?0:window.innerHeight),d=t.computed(()=>e.reveal===!0||a.view.value.indexOf("F")>-1||l.platform.is.ios&&a.isContainer.value===!0),f=t.computed(()=>a.isContainer.value===!0?a.containerHeight.value:s.value),c=t.computed(()=>{if(e.modelValue!==!0)return 0;if(d.value===!0)return i.value===!0?r.value:0;const V=a.scroll.value.position+f.value+r.value-a.height.value;return V>0?V:0}),g=t.computed(()=>e.modelValue!==!0||d.value===!0&&i.value!==!0),h=t.computed(()=>e.modelValue===!0&&g.value===!0&&e.reveal===!0),u=t.computed(()=>"q-footer q-layout__section--marginal "+(d.value===!0?"fixed":"absolute")+"-bottom"+(e.bordered===!0?" q-footer--bordered":"")+(g.value===!0?" q-footer--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus"+(d.value!==!0?" hidden":""):"")),k=t.computed(()=>{const V=a.rows.value.bottom,y={};return V[0]==="l"&&a.left.space===!0&&(y[l.lang.rtl===!0?"right":"left"]=`${a.left.size}px`),V[2]==="r"&&a.right.space===!0&&(y[l.lang.rtl===!0?"left":"right"]=`${a.right.size}px`),y});function q(V,y){a.update("footer",V,y)}function v(V,y){V.value!==y&&(V.value=y)}function _({height:V}){v(r,V),q("size",V)}function p(){if(e.reveal!==!0)return;const{direction:V,position:y,inflectionPoint:E}=a.scroll.value;v(i,V==="up"||y-E<100||a.height.value-f.value-y-r.value<300)}function b(V){h.value===!0&&v(i,!0),o("focusin",V)}t.watch(()=>e.modelValue,V=>{q("space",V),v(i,!0),a.animate()}),t.watch(c,V=>{q("offset",V)}),t.watch(()=>e.reveal,V=>{V===!1&&v(i,e.modelValue)}),t.watch(i,V=>{a.animate(),o("reveal",V)}),t.watch([r,a.scroll,a.height],p),t.watch(()=>l.screen.height,V=>{a.isContainer.value!==!0&&v(s,V)});const x={};return a.instances.footer=x,e.modelValue===!0&&q("size",r.value),q("space",e.modelValue),q("offset",c.value),t.onBeforeUnmount(()=>{a.instances.footer===x&&(a.instances.footer=void 0,q("size",0),q("offset",0),q("space",!1))}),()=>{const V=Ve(n.default,[t.h(st,{debounce:0,onResize:_})]);return e.elevated===!0&&V.push(t.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),t.h("footer",{class:u.value,style:k.value,onFocusin:b},V)}}});let Zi=0;const Yi=["click","keydown"],Gi={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${Zi++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function es(e,n,o,l){const a=t.inject(Go,()=>{console.error("QTab/QRouteTab component needs to be child of QTabs")}),{proxy:r}=t.getCurrentInstance(),i=t.ref(null),s=t.ref(null),d=t.ref(null),f=t.computed(()=>e.disable===!0||e.ripple===!1?!1:Object.assign({keyCodes:[13,32],early:!0},e.ripple===!0?{}:e.ripple)),c=t.computed(()=>a.currentModel.value===e.name),g=t.computed(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(c.value===!0?" q-tab--active"+(a.tabProps.value.activeClass?" "+a.tabProps.value.activeClass:"")+(a.tabProps.value.activeColor?` text-${a.tabProps.value.activeColor}`:"")+(a.tabProps.value.activeBgColor?` bg-${a.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(e.icon&&e.label&&a.tabProps.value.inlineLabel===!1?" q-tab--full":"")+(e.noCaps===!0||a.tabProps.value.noCaps===!0?" q-tab--no-caps":"")+(e.disable===!0?" disabled":" q-focusable q-hoverable cursor-pointer")+(l!==void 0&&l.linkClass.value!==""?` ${l.linkClass.value}`:"")),h=t.computed(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(a.tabProps.value.inlineLabel===!0?"row no-wrap q-tab__content--inline":"column")+(e.contentClass!==void 0?` ${e.contentClass}`:"")),u=t.computed(()=>e.disable===!0||a.hasFocus.value===!0?-1:e.tabindex||0);function k(b,x){if(x!==!0&&i.value!==null&&i.value.focus(),e.disable!==!0){let V;if(l!==void 0)if(l.hasRouterLink.value===!0)V=()=>{b.__qNavigate=!0,a.avoidRouteWatcher=!0;const y=l.navigateToRouterLink(b);y===!1?a.avoidRouteWatcher=!1:y.then(E=>{a.avoidRouteWatcher=!1,E===void 0&&a.updateModel({name:e.name,fromRoute:!0})})};else{o("click",b);return}else V=()=>{a.updateModel({name:e.name,fromRoute:!1})};o("click",b,V),b.defaultPrevented!==!0&&V()}}function q(b){Ue(b,[13,32])?k(b,!0):Ot(b)!==!0&&b.keyCode>=35&&b.keyCode<=40&&b.altKey!==!0&&b.metaKey!==!0&&a.onKbdNavigate(b.keyCode,r.$el)===!0&&re(b),o("keydown",b)}function v(){const b=a.tabProps.value.narrowIndicator,x=[],V=t.h("div",{ref:d,class:["q-tab__indicator",a.tabProps.value.indicatorClass]});e.icon!==void 0&&x.push(t.h(me,{class:"q-tab__icon",name:e.icon})),e.label!==void 0&&x.push(t.h("div",{class:"q-tab__label"},e.label)),e.alert!==!1&&x.push(e.alertIcon!==void 0?t.h(me,{class:"q-tab__alert-icon",color:e.alert!==!0?e.alert:void 0,name:e.alertIcon}):t.h("div",{class:"q-tab__alert"+(e.alert!==!0?` text-${e.alert}`:"")})),b===!0&&x.push(V);const y=[t.h("div",{class:"q-focus-helper",tabindex:-1,ref:i}),t.h("div",{class:h.value},Ve(n.default,x))];return b===!1&&y.push(V),y}const _={name:t.computed(()=>e.name),rootRef:s,tabIndicatorRef:d,routerProps:l};t.onBeforeUnmount(()=>{a.unregisterTab(_),a.recalculateScroll()}),t.onMounted(()=>{a.registerTab(_),a.recalculateScroll()});function p(b,x){const V={ref:s,class:g.value,tabindex:u.value,role:"tab","aria-selected":c.value===!0?"true":"false","aria-disabled":e.disable===!0?"true":void 0,onClick:k,onKeydown:q,...x};return t.withDirectives(t.h(b,V,v()),[[Cn,f.value]])}return{renderTab:p,$tabs:a}}const ke=ne({name:"QTab",props:Gi,emits:Yi,setup(e,{slots:n,emit:o}){const{renderTab:l}=es(e,n,o);return()=>l("div")}});function tn(){let e;return t.onBeforeUnmount(()=>{e=void 0}),{registerTick(n){e=n,t.nextTick(()=>{e===n&&(e(),e=void 0)})},removeTick(){e=void 0}}}function qt(){let e;return t.onBeforeUnmount(()=>{clearTimeout(e)}),{registerTimeout(n,o){clearTimeout(e),e=setTimeout(n,o)},removeTimeout(){clearTimeout(e)}}}let Et=!1;{const e=document.createElement("div"),n=document.createElement("div");e.setAttribute("dir","rtl"),e.style.width="1px",e.style.height="1px",e.style.overflow="auto",n.style.width="1000px",n.style.height="1px",document.body.appendChild(e),e.appendChild(n),e.scrollLeft=-1e3,Et=e.scrollLeft>=0,e.remove()}function ts(e,n,o){const l=o===!0?["left","right"]:["top","bottom"];return`absolute-${n===!0?l[0]:l[1]}${e?` text-${e}`:""}`}const ns=["left","center","right","justify"],Tl=()=>{},An=ne({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>ns.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(e,{slots:n,emit:o}){const l=t.getCurrentInstance(),{proxy:{$q:a}}=l,{registerTick:r}=tn(),{registerTimeout:i,removeTimeout:s}=qt(),{registerTimeout:d}=qt(),f=t.ref(null),c=t.ref(null),g=t.ref(e.modelValue),h=t.ref(!1),u=t.ref(!0),k=t.ref(!1),q=t.ref(!1),v=t.computed(()=>a.platform.is.desktop===!0||e.mobileArrows===!0),_=[],p=t.ref(!1);let b=!1,x,V,y,E=v.value===!0?R:We;const B=t.computed(()=>({activeClass:e.activeClass,activeColor:e.activeColor,activeBgColor:e.activeBgColor,indicatorClass:ts(e.indicatorColor,e.switchIndicator,e.vertical),narrowIndicator:e.narrowIndicator,inlineLabel:e.inlineLabel,noCaps:e.noCaps})),L=t.computed(()=>`q-tabs__content--align-${h.value===!0?"left":q.value===!0?"justify":e.align}`),I=t.computed(()=>`q-tabs row no-wrap items-center q-tabs--${h.value===!0?"":"not-"}scrollable q-tabs--${e.vertical===!0?"vertical":"horizontal"} q-tabs__arrows--${v.value===!0&&e.outsideArrows===!0?"outside":"inside"}`+(e.dense===!0?" q-tabs--dense":"")+(e.shrink===!0?" col-shrink":"")+(e.stretch===!0?" self-stretch":"")),C=t.computed(()=>"q-tabs__content row no-wrap items-center self-stretch hide-scrollbar relative-position "+L.value+(e.contentClass!==void 0?` ${e.contentClass}`:"")+(a.platform.is.mobile===!0?" scroll":"")),S=t.computed(()=>e.vertical===!0?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),w=t.computed(()=>e.vertical!==!0&&a.lang.rtl===!0),N=t.computed(()=>Et===!1&&w.value===!0);t.watch(w,E),t.watch(()=>e.modelValue,z=>{$({name:z,setCurrent:!0,skipEmit:!0})}),t.watch(()=>e.outsideArrows,()=>{t.nextTick(D())}),t.watch(v,z=>{E=z===!0?R:We,t.nextTick(D())});function $({name:z,setCurrent:Y,skipEmit:ee,fromRoute:te}){g.value!==z&&(ee!==!0&&o("update:modelValue",z),(Y===!0||e["onUpdate:modelValue"]===void 0)&&(J(g.value,z),g.value=z)),te!==void 0&&(b=te)}function D(){r(()=>{l.isDeactivated!==!0&&l.isUnmounted!==!0&&T({width:f.value.offsetWidth,height:f.value.offsetHeight})})}function T(z){if(S.value===void 0||c.value===null)return;const Y=z[S.value.container],ee=Math.min(c.value[S.value.scroll],Array.prototype.reduce.call(c.value.children,(oe,ue)=>oe+(ue[S.value.content]||0),0)),te=Y>0&&ee>Y;h.value!==te&&(h.value=te),te===!0&&t.nextTick(E);const ae=Y<parseInt(e.breakpoint,10);q.value!==ae&&(q.value=ae)}function J(z,Y){const ee=z!=null&&z!==""?_.find(ae=>ae.name.value===z):null,te=Y!=null&&Y!==""?_.find(ae=>ae.name.value===Y):null;if(ee&&te){const ae=ee.tabIndicatorRef.value,oe=te.tabIndicatorRef.value;clearTimeout(x),ae.style.transition="none",ae.style.transform="none",oe.style.transition="none",oe.style.transform="none";const ue=ae.getBoundingClientRect(),ie=oe.getBoundingClientRect();oe.style.transform=e.vertical===!0?`translate3d(0,${ue.top-ie.top}px,0) scale3d(1,${ie.height?ue.height/ie.height:1},1)`:`translate3d(${ue.left-ie.left}px,0,0) scale3d(${ie.width?ue.width/ie.width:1},1,1)`,t.nextTick(()=>{x=setTimeout(()=>{oe.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",oe.style.transform="none"},70)})}te&&h.value===!0&&P(te.rootRef.value)}function P(z){const{left:Y,width:ee,top:te,height:ae}=c.value.getBoundingClientRect(),oe=z.getBoundingClientRect();let ue=e.vertical===!0?oe.top-te:oe.left-Y;if(ue<0){c.value[e.vertical===!0?"scrollTop":"scrollLeft"]+=Math.floor(ue),E();return}ue+=e.vertical===!0?oe.height-ae:oe.width-ee,ue>0&&(c.value[e.vertical===!0?"scrollTop":"scrollLeft"]+=Math.ceil(ue),E())}function R(){const z=c.value;if(z!==null){const Y=z.getBoundingClientRect(),ee=e.vertical===!0?z.scrollTop:Math.abs(z.scrollLeft);w.value===!0?(u.value=Math.ceil(ee+Y.width)<z.scrollWidth-1,k.value=ee>0):(u.value=ee>0,k.value=e.vertical===!0?Math.ceil(ee+Y.height)<z.scrollHeight:Math.ceil(ee+Y.width)<z.scrollWidth)}}function M(z){K(),X(z),V=setInterval(()=>{X(z)===!0&&K()},5)}function U(){M(N.value===!0?Number.MAX_SAFE_INTEGER:0)}function H(){M(N.value===!0?0:Number.MAX_SAFE_INTEGER)}function K(){clearInterval(V)}function Z(z,Y){const ee=Array.prototype.filter.call(c.value.children,ie=>ie===Y||ie.matches&&ie.matches(".q-tab.q-focusable")===!0),te=ee.length;if(te===0)return;if(z===36)return P(ee[0]),!0;if(z===35)return P(ee[te-1]),!0;const ae=z===(e.vertical===!0?38:37),oe=z===(e.vertical===!0?40:39),ue=ae===!0?-1:oe===!0?1:void 0;if(ue!==void 0){const ie=w.value===!0?-1:1,Ne=ee.indexOf(Y)+ue*ie;return Ne>=0&&Ne<te&&(P(ee[Ne]),ee[Ne].focus({preventScroll:!0})),!0}}const O=t.computed(()=>N.value===!0?{get:z=>Math.abs(z.scrollLeft),set:(z,Y)=>{z.scrollLeft=-Y}}:e.vertical===!0?{get:z=>z.scrollTop,set:(z,Y)=>{z.scrollTop=Y}}:{get:z=>z.scrollLeft,set:(z,Y)=>{z.scrollLeft=Y}});function X(z){const Y=c.value,{get:ee,set:te}=O.value;let ae=!1,oe=ee(Y);const ue=z<oe?-1:1;return oe+=ue*5,oe<0?(ae=!0,oe=0):(ue===-1&&oe<=z||ue===1&&oe>=z)&&(ae=!0,oe=z),te(Y,oe),E(),ae}function W(){return _.filter(z=>z.routerProps!==void 0&&z.routerProps.hasRouterLink.value===!0)}function A(){let z=null,Y=b;const ee={matchedLen:0,hrefLen:0,exact:!1,found:!1},{hash:te}=l.proxy.$route,ae=g.value;let oe=Y===!0?Tl:ie=>{ae===ie.name.value&&(Y=!0,oe=Tl)};const ue=W();for(const ie of ue){const Ne=ie.routerProps.exact.value===!0;if(ie.routerProps[Ne===!0?"linkIsExactActive":"linkIsActive"].value!==!0||ee.exact===!0&&Ne!==!0){oe(ie);continue}const Mt=ie.routerProps.linkRoute.value,vt=Mt.hash;if(Ne===!0){if(te===vt){z=ie.name.value;break}else if(te!==""&&vt!==""){oe(ie);continue}}const Re=Mt.matched.length,De=Mt.href.length-vt.length;if(Re===ee.matchedLen?De>ee.hrefLen:Re>ee.matchedLen){z=ie.name.value,Object.assign(ee,{matchedLen:Re,hrefLen:De,exact:Ne});continue}oe(ie)}(Y===!0||z!==null)&&$({name:z,setCurrent:!0,fromRoute:!0})}function Q(z){if(s(),p.value!==!0&&f.value!==null&&z.target&&typeof z.target.closest=="function"){const Y=z.target.closest(".q-tab");Y&&f.value.contains(Y)===!0&&(p.value=!0)}}function we(){i(()=>{p.value=!1},30)}function xe(){ze.avoidRouteWatcher!==!0&&d(A)}function be(z){_.push(z),W().length>0&&(y===void 0&&(y=t.watch(()=>l.proxy.$route,xe)),xe())}function gt(z){_.splice(_.indexOf(z),1),y!==void 0&&(W().length===0&&(y(),y=void 0),xe())}const ze={currentModel:g,tabProps:B,hasFocus:p,registerTab:be,unregisterTab:gt,verifyRouteModel:xe,updateModel:$,recalculateScroll:D,onKbdNavigate:Z,avoidRouteWatcher:!1};t.provide(Go,ze),t.onBeforeUnmount(()=>{clearTimeout(x),y!==void 0&&y()});let Fe=!1;return t.onDeactivated(()=>{Fe=!0}),t.onActivated(()=>{Fe===!0&&D()}),()=>{const z=[t.h(st,{onResize:T}),t.h("div",{ref:c,class:C.value,onScroll:E},ce(n.default))];return v.value===!0&&z.push(t.h(me,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(u.value===!0?"":" q-tabs__arrow--faded"),name:e.leftIcon||a.iconSet.tabs[e.vertical===!0?"up":"left"],onMousedown:U,onTouchstartPassive:U,onMouseup:K,onMouseleave:K,onTouchend:K}),t.h(me,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(k.value===!0?"":" q-tabs__arrow--faded"),name:e.rightIcon||a.iconSet.tabs[e.vertical===!0?"down":"right"],onMousedown:H,onTouchstartPassive:H,onMouseup:K,onMouseleave:K,onTouchend:K})),t.h("div",{ref:f,class:I.value,role:"tablist",onFocusin:Q,onFocusout:we},z)}}}),In={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},os=Object.keys(In);In.all=!0;function Rl(e){const n={};for(const o of os)e[o]===!0&&(n[o]=!0);return Object.keys(n).length===0?In:(n.horizontal===!0?n.left=n.right=!0:n.left===!0&&n.right===!0&&(n.horizontal=!0),n.vertical===!0?n.up=n.down=!0:n.up===!0&&n.down===!0&&(n.vertical=!0),n.horizontal===!0&&n.vertical===!0&&(n.all=!0),n)}function $l(e,n){return n.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof n.handler=="function"&&e.target.nodeName.toUpperCase()!=="INPUT"&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(n.uid)===-1)}function nn(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),En.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function ls(e){const n=[.06,6,50];return typeof e=="string"&&e.length&&e.split(":").forEach((o,l)=>{const a=parseFloat(o);a&&(n[l]=a)}),n}const as=Co({name:"touch-swipe",beforeMount(e,{value:n,arg:o,modifiers:l}){if(l.mouse!==!0&&he.has.touch!==!0)return;const a=l.mouseCapture===!0?"Capture":"",r={handler:n,sensitivity:ls(o),direction:Rl(l),noop:We,mouseStart(i){$l(i,r)&&ar(i)&&(Pe(r,"temp",[[document,"mousemove","move",`notPassive${a}`],[document,"mouseup","end","notPassiveCapture"]]),r.start(i,!0))},touchStart(i){if($l(i,r)){const s=i.target;Pe(r,"temp",[[s,"touchmove","move","notPassiveCapture"],[s,"touchcancel","end","notPassiveCapture"],[s,"touchend","end","notPassiveCapture"]]),r.start(i)}},start(i,s){he.is.firefox===!0&&kn(e,!0);const d=It(i);r.event={x:d.left,y:d.top,time:Date.now(),mouse:s===!0,dir:!1}},move(i){if(r.event===void 0)return;if(r.event.dir!==!1){re(i);return}const s=Date.now()-r.event.time;if(s===0)return;const d=It(i),f=d.left-r.event.x,c=Math.abs(f),g=d.top-r.event.y,h=Math.abs(g);if(r.event.mouse!==!0){if(c<r.sensitivity[1]&&h<r.sensitivity[1]){r.end(i);return}}else if(c<r.sensitivity[2]&&h<r.sensitivity[2])return;const u=c/s,k=h/s;r.direction.vertical===!0&&c<h&&c<100&&k>r.sensitivity[0]&&(r.event.dir=g<0?"up":"down"),r.direction.horizontal===!0&&c>h&&h<100&&u>r.sensitivity[0]&&(r.event.dir=f<0?"left":"right"),r.direction.up===!0&&c<h&&g<0&&c<100&&k>r.sensitivity[0]&&(r.event.dir="up"),r.direction.down===!0&&c<h&&g>0&&c<100&&k>r.sensitivity[0]&&(r.event.dir="down"),r.direction.left===!0&&c>h&&f<0&&h<100&&u>r.sensitivity[0]&&(r.event.dir="left"),r.direction.right===!0&&c>h&&f>0&&h<100&&u>r.sensitivity[0]&&(r.event.dir="right"),r.event.dir!==!1?(re(i),r.event.mouse===!0&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),nn(),r.styleCleanup=q=>{r.styleCleanup=void 0,document.body.classList.remove("non-selectable");const v=()=>{document.body.classList.remove("no-pointer-events--children")};q===!0?setTimeout(v,50):v()}),r.handler({evt:i,touch:r.event.mouse!==!0,mouse:r.event.mouse,direction:r.event.dir,duration:s,distance:{x:c,y:h}})):r.end(i)},end(i){r.event!==void 0&&(Qe(r,"temp"),he.is.firefox===!0&&kn(e,!1),r.styleCleanup!==void 0&&r.styleCleanup(!0),i!==void 0&&r.event.dir!==!1&&re(i),r.event=void 0)}};e.__qtouchswipe=r,l.mouse===!0&&Pe(r,"main",[[e,"mousedown","mouseStart",`passive${a}`]]),he.has.touch===!0&&Pe(r,"main",[[e,"touchstart","touchStart",`passive${l.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,n){const o=e.__qtouchswipe;o!==void 0&&(n.oldValue!==n.value&&(typeof n.value!="function"&&o.end(),o.handler=n.value),o.direction=Rl(n.modifiers))},beforeUnmount(e){const n=e.__qtouchswipe;n!==void 0&&(Qe(n,"main"),Qe(n,"temp"),he.is.firefox===!0&&kn(e,!1),n.styleCleanup!==void 0&&n.styleCleanup(),delete e.__qtouchswipe)}});function rs(){const e=new Map;return{getCache:function(n,o){return e[n]===void 0?e[n]=o:e[n]},getCacheWithFn:function(n,o){return e[n]===void 0?e[n]=o():e[n]}}}const is={name:{required:!0},disable:Boolean},Ll={setup(e,{slots:n}){return()=>t.h("div",{class:"q-panel scroll",role:"tabpanel"},ce(n.default))}},ss={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},us=["update:modelValue","before-transition","transition"];function cs(){const{props:e,emit:n,proxy:o}=t.getCurrentInstance(),{getCacheWithFn:l}=rs();let a,r;const i=t.ref(null),s=t.ref(null);function d(w){const N=e.vertical===!0?"up":"left";E((o.$q.lang.rtl===!0?-1:1)*(w.direction===N?1:-1))}const f=t.computed(()=>[[as,d,void 0,{horizontal:e.vertical!==!0,vertical:e.vertical,mouse:!0}]]),c=t.computed(()=>e.transitionPrev||`slide-${e.vertical===!0?"down":"right"}`),g=t.computed(()=>e.transitionNext||`slide-${e.vertical===!0?"up":"left"}`),h=t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`),u=t.computed(()=>typeof e.modelValue=="string"||typeof e.modelValue=="number"?e.modelValue:String(e.modelValue)),k=t.computed(()=>({include:e.keepAliveInclude,exclude:e.keepAliveExclude,max:e.keepAliveMax})),q=t.computed(()=>e.keepAliveInclude!==void 0||e.keepAliveExclude!==void 0);t.watch(()=>e.modelValue,(w,N)=>{const $=b(w)===!0?x(w):-1;r!==!0&&y($===-1?0:$<x(N)?-1:1),i.value!==$&&(i.value=$,n("before-transition",w,N),t.nextTick(()=>{n("transition",w,N)}))});function v(){E(1)}function _(){E(-1)}Object.assign(o,{next:v,previous:_,goTo:p});function p(w){n("update:modelValue",w)}function b(w){return w!=null&&w!==""}function x(w){return a.findIndex(N=>N.props.name===w&&N.props.disable!==""&&N.props.disable!==!0)}function V(){return a.filter(w=>w.props.disable!==""&&w.props.disable!==!0)}function y(w){const N=w!==0&&e.animated===!0&&i.value!==-1?"q-transition--"+(w===-1?c.value:g.value):null;s.value!==N&&(s.value=N)}function E(w,N=i.value){let $=N+w;for(;$>-1&&$<a.length;){const D=a[$];if(D!==void 0&&D.props.disable!==""&&D.props.disable!==!0){y(w),r=!0,n("update:modelValue",D.props.name),setTimeout(()=>{r=!1});return}$+=w}e.infinite===!0&&a.length>0&&N!==-1&&N!==a.length&&E(w,w===-1?a.length:-1)}function B(){const w=x(e.modelValue);return i.value!==w&&(i.value=w),!0}function L(){const w=b(e.modelValue)===!0&&B()&&a[i.value];return e.keepAlive===!0?[t.h(t.KeepAlive,k.value,[t.h(q.value===!0?l(u.value,()=>({...Ll,name:u.value})):Ll,{key:u.value,style:h.value},()=>w)])]:[t.h("div",{class:"q-panel scroll",style:h.value,key:u.value,role:"tabpanel"},[w])]}function I(){if(a.length!==0)return e.animated===!0?[t.h(t.Transition,{name:s.value},L)]:L()}function C(w){return a=ur(ce(w.default,[])).filter(N=>N.props!==null&&N.props.slot===void 0&&b(N.props.name)===!0),a.length}function S(){return a}return{panelIndex:i,panelDirectives:f,updatePanelsList:C,updatePanelIndex:B,getPanelContent:I,getEnabledPanels:V,getPanels:S,isValidPanelName:b,keepAliveProps:k,needsUniqueKeepAliveWrapper:q,goToPanelByOffset:E,goToPanel:p,nextPanel:v,previousPanel:_}}const de=ne({name:"QTabPanel",props:is,setup(e,{slots:n}){return()=>t.h("div",{class:"q-tab-panel"},ce(n.default))}}),Ze=ne({name:"QTabPanels",props:{...ss,...Me},emits:us,setup(e,{slots:n}){const o=t.getCurrentInstance(),l=Ae(e,o.proxy.$q),{updatePanelsList:a,getPanelContent:r,panelDirectives:i}=cs(),s=t.computed(()=>"q-tab-panels q-panel-parent"+(l.value===!0?" q-tab-panels--dark q-dark":""));return()=>(a(n),No("div",{class:s.value},r(),"pan",e.swipeable,()=>i.value))}}),on=ne({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:n}){const{proxy:{$q:o}}=t.getCurrentInstance(),l=t.inject(_t);t.inject(Zo,()=>{console.error("QPage needs to be child of QPageContainer")});const a=t.computed(()=>{const i=(l.header.space===!0?l.header.size:0)+(l.footer.space===!0?l.footer.size:0);if(typeof e.styleFn=="function"){const s=l.isContainer.value===!0?l.containerHeight.value:o.screen.height;return e.styleFn(i,s)}return{minHeight:l.isContainer.value===!0?l.containerHeight.value-i+"px":o.screen.height===0?i!==0?`calc(100vh - ${i}px)`:"100vh":o.screen.height-i+"px"}}),r=t.computed(()=>`q-page ${e.padding===!0?" q-layout-padding":""}`);return()=>t.h("main",{class:r.value,style:a.value},ce(n.default))}});function ds(e,n,o){function l(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:l,addToHistory(){}}}const On={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Pl(e,n){const o=t.ref(n.value);return t.watch(n,l=>{t.nextTick(()=>{o.value=l})}),{transition:t.computed(()=>"q-transition--"+(o.value===!0?e.transitionHide:e.transitionShow)),transitionStyle:t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}const Ml={};let fs=document.body;function ms(e){const n=document.createElement("div");if(e!==void 0&&(n.id=e),Ml.globalNodes!==void 0){const o=Ml.globalNodes.class;o!==void 0&&(n.className=o)}return fs.appendChild(n),n}function hs(e){e.remove()}const Bt=[];function ps(e,n){do{if(e.$options.name==="QMenu"){if(e.hide(n),e.$props.separateClosePopup===!0)return Vn(e)}else if(e.__qPortalInnerRef!==void 0){const o=Vn(e);return o!==void 0&&o.$options.name==="QPopupProxy"?(e.hide(n),o):e}e=Vn(e)}while(e!=null)}function gs(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function zn(e,n,o,l){const a=t.ref(!1),r=t.ref(!1);let i=null;const s={},d=l===!0&&gs(e);function f(g){if(g===!0){Cl(s),r.value=!0;return}r.value=!1,a.value===!1&&(d===!1&&i===null&&(i=ms()),a.value=!0,Bt.push(e.proxy),Fi(s))}function c(g){if(r.value=!1,g!==!0)return;Cl(s),a.value=!1;const h=Bt.indexOf(e.proxy);h>-1&&Bt.splice(h,1),i!==null&&(hs(i),i=null)}return t.onUnmounted(()=>{c(!0)}),Object.assign(e.proxy,{__qPortalInnerRef:n}),{showPortal:f,hidePortal:c,portalIsActive:a,portalIsAccessible:r,renderPortal:()=>d===!0?o():a.value===!0?[t.h(t.Teleport,{to:i},o())]:void 0}}let Tt=0,Fn,Dn,Rt,Un=!1,Al,Il,ct;function vs(e){bs(e)&&re(e)}function bs(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const n=rr(e),o=e.shiftKey&&!e.deltaX,l=!o&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=o||l?e.deltaY:e.deltaX;for(let r=0;r<n.length;r++){const i=n[r];if(xi(i,l))return l?a<0&&i.scrollTop===0?!0:a>0&&i.scrollTop+i.clientHeight===i.scrollHeight:a<0&&i.scrollLeft===0?!0:a>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function Ol(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ln(e){Un!==!0&&(Un=!0,requestAnimationFrame(()=>{Un=!1;const{height:n}=e.target,{clientHeight:o,scrollTop:l}=document.scrollingElement;(Rt===void 0||n!==window.innerHeight)&&(Rt=o-n,document.scrollingElement.scrollTop=l),l>Rt&&(document.scrollingElement.scrollTop-=Math.ceil((l-Rt)/8))}))}function zl(e){const n=document.body,o=window.visualViewport!==void 0;if(e==="add"){const{overflowY:l,overflowX:a}=window.getComputedStyle(n);Fn=ul(window),Dn=sl(window),Al=n.style.left,Il=n.style.top,n.style.left=`-${Fn}px`,n.style.top=`-${Dn}px`,a!=="hidden"&&(a==="scroll"||n.scrollWidth>window.innerWidth)&&n.classList.add("q-body--force-scrollbar-x"),l!=="hidden"&&(l==="scroll"||n.scrollHeight>window.innerHeight)&&n.classList.add("q-body--force-scrollbar-y"),n.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,he.is.ios===!0&&(o===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ln,pe.passiveCapture),window.visualViewport.addEventListener("scroll",ln,pe.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Ol,pe.passiveCapture))}he.is.desktop===!0&&he.is.mac===!0&&window[`${e}EventListener`]("wheel",vs,pe.notPassive),e==="remove"&&(he.is.ios===!0&&(o===!0?(window.visualViewport.removeEventListener("resize",ln,pe.passiveCapture),window.visualViewport.removeEventListener("scroll",ln,pe.passiveCapture)):window.removeEventListener("scroll",Ol,pe.passiveCapture)),n.classList.remove("q-body--prevent-scroll"),n.classList.remove("q-body--force-scrollbar-x"),n.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,n.style.left=Al,n.style.top=Il,window.scrollTo(Fn,Dn),Rt=void 0)}function ys(e){let n="add";if(e===!0){if(Tt++,ct!==void 0){clearTimeout(ct),ct=void 0;return}if(Tt>1)return}else{if(Tt===0||(Tt--,Tt>0))return;if(n="remove",he.is.ios===!0&&he.is.nativeMobile===!0){clearTimeout(ct),ct=setTimeout(()=>{zl(n),ct=void 0},100);return}}zl(n)}function ws(){let e;return{preventBodyScroll(n){n!==e&&(e!==void 0||n===!0)&&(e=n,ys(n))}}}const Ye=[];let dt;function xs(e){dt=e.keyCode===27}function _s(){dt===!0&&(dt=!1)}function ks(e){dt===!0&&(dt=!1,Ue(e,27)===!0&&Ye[Ye.length-1](e))}function Fl(e){window[e]("keydown",xs),window[e]("blur",_s),window[e]("keyup",ks),dt=!1}function Dl(e){he.is.desktop===!0&&(Ye.push(e),Ye.length===1&&Fl("addEventListener"))}function an(e){const n=Ye.indexOf(e);n>-1&&(Ye.splice(n,1),Ye.length===0&&Fl("removeEventListener"))}const Ge=[];function Ul(e){Ge[Ge.length-1](e)}function Hl(e){he.is.desktop===!0&&(Ge.push(e),Ge.length===1&&document.body.addEventListener("focusin",Ul))}function Hn(e){const n=Ge.indexOf(e);n>-1&&(Ge.splice(n,1),Ge.length===0&&document.body.removeEventListener("focusin",Ul))}let rn=0;const Cs={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"},jl={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},ft=ne({name:"QDialog",inheritAttrs:!1,props:{...zt,...On,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,position:{type:String,default:"standard",validator:e=>e==="standard"||["top","bottom","left","right"].includes(e)}},emits:[...Ft,"shake","click","escape-key"],setup(e,{slots:n,emit:o,attrs:l}){const a=t.getCurrentInstance(),r=t.ref(null),i=t.ref(!1),s=t.ref(!1),d=t.ref(!1);let f,c=null,g,h;const u=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:k}=ws(),{registerTimeout:q,removeTimeout:v}=qt(),{registerTick:_,removeTick:p}=tn(),{showPortal:b,hidePortal:x,portalIsAccessible:V,renderPortal:y}=zn(a,r,W,!0),{hide:E}=Dt({showing:i,hideOnRouteChange:u,handleShow:J,handleHide:P,processOnMount:!0}),{addToHistory:B,removeFromHistory:L}=ds(i),I=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${Cs[e.position]}`+(d.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),C=t.computed(()=>"q-transition--"+(e.transitionShow===void 0?jl[e.position][0]:e.transitionShow)),S=t.computed(()=>"q-transition--"+(e.transitionHide===void 0?jl[e.position][1]:e.transitionHide)),w=t.computed(()=>s.value===!0?S.value:C.value),N=t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`),$=t.computed(()=>i.value===!0&&e.seamless!==!0),D=t.computed(()=>e.autoClose===!0?{onClick:Z}:{}),T=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${$.value===!0?"modal":"seamless"}`,l.class]);t.watch(i,A=>{t.nextTick(()=>{s.value=A})}),t.watch(()=>e.maximized,A=>{i.value===!0&&K(A)}),t.watch($,A=>{k(A),A===!0?(Hl(X),Dl(U)):(Hn(X),an(U))});function J(A){v(),p(),B(),c=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,K(e.maximized),b(),d.value=!0,e.noFocus!==!0&&(document.activeElement!==null&&document.activeElement.blur(),_(R)),q(()=>{if(a.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:Q,bottom:we}=document.activeElement.getBoundingClientRect(),{innerHeight:xe}=window,be=window.visualViewport!==void 0?window.visualViewport.height:xe;Q>0&&we>be/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-be,we>=xe?1/0:Math.ceil(document.scrollingElement.scrollTop+we-be/2))),document.activeElement.scrollIntoView()}h=!0,r.value.click(),h=!1}b(!0),d.value=!1,o("show",A)},e.transitionDuration)}function P(A){v(),p(),L(),H(!0),d.value=!0,x(),c!==null&&(c.focus(),c=null),q(()=>{x(!0),d.value=!1,o("hide",A)},e.transitionDuration)}function R(A){Xt(()=>{let Q=r.value;Q===null||Q.contains(document.activeElement)===!0||(Q=Q.querySelector(A||"[autofocus], [data-autofocus]")||Q,Q.focus({preventScroll:!0}))})}function M(){R(),o("shake");const A=r.value;A!==null&&(A.classList.remove("q-animate--scale"),A.classList.add("q-animate--scale"),clearTimeout(f),f=setTimeout(()=>{r.value!==null&&(A.classList.remove("q-animate--scale"),R())},170))}function U(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&M():(o("escape-key"),E()))}function H(A){clearTimeout(f),(A===!0||i.value===!0)&&(K(!1),e.seamless!==!0&&(k(!1),Hn(X),an(U))),A!==!0&&(c=null)}function K(A){A===!0?g!==!0&&(rn<1&&document.body.classList.add("q-body--dialog"),rn++,g=!0):g===!0&&(rn<2&&document.body.classList.remove("q-body--dialog"),rn--,g=!1)}function Z(A){h!==!0&&(E(A),o("click",A))}function O(A){e.persistent!==!0&&e.noBackdropDismiss!==!0?E(A):e.noShake!==!0&&M()}function X(A){e.allowFocusOutside!==!0&&V.value===!0&&Po(r.value,A.target)!==!0&&R('[tabindex]:not([tabindex="-1"])')}Object.assign(a.proxy,{focus:R,shake:M,__updateRefocusTarget(A){c=A||null}}),t.onBeforeUnmount(H);function W(){return t.h("div",{...l,class:T.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>$.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:N.value,"aria-hidden":"true",onMousedown:O}):null),t.h(t.Transition,{name:w.value,appear:!0},()=>i.value===!0?t.h("div",{ref:r,class:I.value,style:N.value,tabindex:-1,...D.value},ce(n.default)):null)])}return y}}),jn=ne({name:"QField",inheritAttrs:!1,props:Jt,emits:Ln,setup(){return Mn(Pn())}}),Vs={xs:8,sm:10,md:14,lg:20,xl:24},Ss=ne({name:"QChip",props:{...Me,...ot,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,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:n,emit:o}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=Ae(e,l),r=lt(e,Vs),i=t.computed(()=>e.selected===!0||e.icon!==void 0),s=t.computed(()=>e.selected===!0?e.iconSelected||l.iconSet.chip.selected:e.icon),d=t.computed(()=>e.iconRemove||l.iconSet.chip.remove),f=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),c=t.computed(()=>{const v=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(v?` text-${v} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(f.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(a.value===!0?" q-chip--dark q-dark":"")}),g=t.computed(()=>e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0});function h(v){v.keyCode===13&&u(v)}function u(v){e.disable||(o("update:selected",!e.selected),o("click",v))}function k(v){(v.keyCode===void 0||v.keyCode===13)&&(re(v),e.disable===!1&&(o("update:modelValue",!1),o("remove")))}function q(){const v=[];f.value===!0&&v.push(t.h("div",{class:"q-focus-helper"})),i.value===!0&&v.push(t.h(me,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const _=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return v.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},So(n.default,_))),e.iconRight&&v.push(t.h(me,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&v.push(t.h(me,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:d.value,...g.value,onClick:k,onKeyup:k})),v}return()=>{if(e.modelValue===!1)return;const v={class:c.value,style:r.value};return f.value===!0&&Object.assign(v,g.value,{onClick:u,onKeyup:h}),No("div",v,q(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Cn,e.ripple]])}}}),Ns=ne({name:"QItem",props:{...Me,...Wo,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(e,{slots:n,emit:o}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=Ae(e,l),{hasRouterLink:r,hasLink:i,linkProps:s,linkClass:d,linkTag:f,navigateToRouterLink:c}=Qo(),g=t.ref(null),h=t.ref(null),u=t.computed(()=>e.clickable===!0||i.value===!0||e.tag==="label"),k=t.computed(()=>e.disable!==!0&&u.value===!0),q=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(a.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?d.value:e.active===!0?`${e.activeClass!==void 0?` ${e.activeClass}`:""} q-item--active`:"")+(e.disable===!0?" disabled":"")+(k.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),v=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(l.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function _(x){k.value===!0&&(h.value!==null&&(x.qKeyEvent!==!0&&document.activeElement===g.value?h.value.focus():document.activeElement===h.value&&g.value.focus()),r.value===!0&&c(x),o("click",x))}function p(x){if(k.value===!0&&Ue(x,13)===!0){re(x),x.qKeyEvent=!0;const V=new MouseEvent("click",x);V.qKeyEvent=!0,g.value.dispatchEvent(V)}o("keyup",x)}function b(){const x=Vo(n.default,[]);return k.value===!0&&x.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:h})),x}return()=>{const x={ref:g,class:q.value,style:v.value,onClick:_,onKeyup:p};return k.value===!0?(x.tabindex=e.tabindex||"0",Object.assign(x,s.value)):u.value===!0&&(x["aria-disabled"]="true"),t.h(f.value,x,b())}}}),qs=ne({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:n}){const o=t.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>t.h("div",{class:o.value},ce(n.default))}}),Es=ne({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:n}){const o=t.computed(()=>parseInt(e.lines,10)),l=t.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(o.value===1?" ellipsis":"")),a=t.computed(()=>e.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>t.h("div",{style:a.value,class:l.value},ce(n.default))}}),Wl={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function Ql({showing:e,avoidEmit:n,configureAnchorEl:o}){const{props:l,proxy:a,emit:r}=t.getCurrentInstance(),i=t.ref(null);let s;function d(u){return i.value===null?!1:u===void 0||u.touches===void 0||u.touches.length<=1}const f={};o===void 0&&(Object.assign(f,{hide(u){a.hide(u)},toggle(u){a.toggle(u),u.qAnchorHandled=!0},toggleKey(u){Ue(u,13)===!0&&f.toggle(u)},contextClick(u){a.hide(u),Se(u),t.nextTick(()=>{a.show(u),u.qAnchorHandled=!0})},prevent:Se,mobileTouch(u){if(f.mobileCleanup(u),d(u)!==!0)return;a.hide(u),i.value.classList.add("non-selectable");const k=u.target;Pe(f,"anchor",[[k,"touchmove","mobileCleanup","passive"],[k,"touchend","mobileCleanup","passive"],[k,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{a.show(u),u.qAnchorHandled=!0},300)},mobileCleanup(u){i.value.classList.remove("non-selectable"),clearTimeout(s),e.value===!0&&u!==void 0&&nn()}}),o=function(u=l.contextMenu){if(l.noParentEvent===!0||i.value===null)return;let k;u===!0?a.$q.platform.is.mobile===!0?k=[[i.value,"touchstart","mobileTouch","passive"]]:k=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:k=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],Pe(f,"anchor",k)});function c(){Qe(f,"anchor")}function g(u){for(i.value=u;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;o()}function h(){if(l.target===!1||l.target===""||a.$el.parentNode===null)i.value=null;else if(l.target===!0)g(a.$el.parentNode);else{let u=l.target;if(typeof l.target=="string")try{u=document.querySelector(l.target)}catch{u=void 0}u!=null?(i.value=u.$el||u,o()):(i.value=null,console.error(`Anchor: target "${l.target}" not found`))}}return t.watch(()=>l.contextMenu,u=>{i.value!==null&&(c(),o(u))}),t.watch(()=>l.target,()=>{i.value!==null&&c(),h()}),t.watch(()=>l.noParentEvent,u=>{i.value!==null&&(u===!0?c():o())}),t.onMounted(()=>{h(),n!==!0&&l.modelValue===!0&&i.value===null&&r("update:modelValue",!1)}),t.onBeforeUnmount(()=>{clearTimeout(s),c()}),{anchorEl:i,canShow:d,anchorEvents:f}}function Kl(e,n){const o=t.ref(null);let l;function a(s,d){const f=`${d!==void 0?"add":"remove"}EventListener`,c=d!==void 0?d:l;s!==window&&s[f]("scroll",c,pe.passive),window[f]("scroll",c,pe.passive),l=d}function r(){o.value!==null&&(a(o.value),o.value=null)}const i=t.watch(()=>e.noParentEvent,()=>{o.value!==null&&(r(),n())});return t.onBeforeUnmount(i),{localScrollTarget:o,unconfigureScrollTarget:r,changeScrollEvent:a}}let Xl;const{notPassiveCapture:sn}=pe,et=[];function un(e){clearTimeout(Xl);const n=e.target;if(n===void 0||n.nodeType===8||n.classList.contains("no-pointer-events")===!0)return;let o=Bt.length-1;for(;o>=0;){const l=Bt[o].$;if(l.type.name!=="QDialog")break;if(l.props.seamless!==!0)return;o--}for(let l=et.length-1;l>=0;l--){const a=et[l];if((a.anchorEl.value===null||a.anchorEl.value.contains(n)===!1)&&(n===document.body||a.innerRef.value!==null&&a.innerRef.value.contains(n)===!1))e.qClickOutside=!0,a.onClickOutside(e);else return}}function Jl(e){et.push(e),et.length===1&&(document.addEventListener("mousedown",un,sn),document.addEventListener("touchstart",un,sn))}function cn(e){const n=et.findIndex(o=>o===e);n>-1&&(et.splice(n,1),et.length===0&&(clearTimeout(Xl),document.removeEventListener("mousedown",un,sn),document.removeEventListener("touchstart",un,sn)))}let Zl,Yl;function dn(e){const n=e.split(" ");return n.length!==2?!1:["top","center","bottom"].includes(n[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(n[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Gl(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Wn={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Wn[`${e}#ltr`]=e,Wn[`${e}#rtl`]=e});function fn(e,n){const o=e.split(" ");return{vertical:o[0],horizontal:Wn[`${o[1]}#${n===!0?"rtl":"ltr"}`]}}function Bs(e,n){let{top:o,left:l,right:a,bottom:r,width:i,height:s}=e.getBoundingClientRect();return n!==void 0&&(o-=n[1],l-=n[0],r+=n[1],a+=n[0],i+=n[0],s+=n[1]),{top:o,left:l,right:a,bottom:r,width:i,height:s,middle:l+(a-l)/2,center:o+(r-o)/2}}function Ts(e){return{top:0,center:e.offsetHeight/2,bottom:e.offsetHeight,left:0,middle:e.offsetWidth/2,right:e.offsetWidth}}function ea(e){if(he.is.ios===!0&&window.visualViewport!==void 0){const s=document.body.style,{offsetLeft:d,offsetTop:f}=window.visualViewport;d!==Zl&&(s.setProperty("--q-pe-left",d+"px"),Zl=d),f!==Yl&&(s.setProperty("--q-pe-top",f+"px"),Yl=f)}let n;const{scrollLeft:o,scrollTop:l}=e.el;if(e.absoluteOffset===void 0)n=Bs(e.anchorEl,e.cover===!0?[0,0]:e.offset);else{const{top:s,left:d}=e.anchorEl.getBoundingClientRect(),f=s+e.absoluteOffset.top,c=d+e.absoluteOffset.left;n={top:f,left:c,width:1,height:1,right:c+1,center:f,middle:c,bottom:f+1}}let a={maxHeight:e.maxHeight,maxWidth:e.maxWidth,visibility:"visible"};(e.fit===!0||e.cover===!0)&&(a.minWidth=n.width+"px",e.cover===!0&&(a.minHeight=n.height+"px")),Object.assign(e.el.style,a);const r=Ts(e.el),i={top:n[e.anchorOrigin.vertical]-r[e.selfOrigin.vertical],left:n[e.anchorOrigin.horizontal]-r[e.selfOrigin.horizontal]};Rs(i,n,r,e.anchorOrigin,e.selfOrigin),a={top:i.top+"px",left:i.left+"px"},i.maxHeight!==void 0&&(a.maxHeight=i.maxHeight+"px",n.height>i.maxHeight&&(a.minHeight=a.maxHeight)),i.maxWidth!==void 0&&(a.maxWidth=i.maxWidth+"px",n.width>i.maxWidth&&(a.minWidth=a.maxWidth)),Object.assign(e.el.style,a),e.el.scrollTop!==l&&(e.el.scrollTop=l),e.el.scrollLeft!==o&&(e.el.scrollLeft=o)}function Rs(e,n,o,l,a){const r=o.bottom,i=o.right,s=jt(),d=window.innerHeight-s,f=document.body.clientWidth;if(e.top<0||e.top+r>d)if(a.vertical==="center")e.top=n[l.vertical]>d/2?Math.max(0,d-r):0,e.maxHeight=Math.min(r,d);else if(n[l.vertical]>d/2){const c=Math.min(d,l.vertical==="center"?n.center:l.vertical===a.vertical?n.bottom:n.top);e.maxHeight=Math.min(r,c),e.top=Math.max(0,c-r)}else e.top=Math.max(0,l.vertical==="center"?n.center:l.vertical===a.vertical?n.top:n.bottom),e.maxHeight=Math.min(r,d-e.top);if(e.left<0||e.left+i>f)if(e.maxWidth=Math.min(i,f),a.horizontal==="middle")e.left=n[l.horizontal]>f/2?Math.max(0,f-i):0;else if(n[l.horizontal]>f/2){const c=Math.min(f,l.horizontal==="middle"?n.middle:l.horizontal===a.horizontal?n.right:n.left);e.maxWidth=Math.min(i,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,l.horizontal==="middle"?n.middle:l.horizontal===a.horizontal?n.left:n.right),e.maxWidth=Math.min(i,f-e.left)}const $s=ne({name:"QMenu",inheritAttrs:!1,props:{...Wl,...zt,...Me,...On,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:dn},self:{type:String,validator:dn},offset:{type:Array,validator:Gl},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Ft,"click","escape-key"],setup(e,{slots:n,emit:o,attrs:l}){let a=null,r,i,s;const d=t.getCurrentInstance(),{proxy:f}=d,{$q:c}=f,g=t.ref(null),h=t.ref(!1),u=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),k=Ae(e,c),{registerTick:q,removeTick:v}=tn(),{registerTimeout:_,removeTimeout:p}=qt(),{transition:b,transitionStyle:x}=Pl(e,h),{localScrollTarget:V,changeScrollEvent:y,unconfigureScrollTarget:E}=Kl(e,K),{anchorEl:B,canShow:L}=Ql({showing:h}),{hide:I}=Dt({showing:h,canShow:L,handleShow:M,handleHide:U,hideOnRouteChange:u,processOnMount:!0}),{showPortal:C,hidePortal:S,renderPortal:w}=zn(d,g,A),N={anchorEl:B,innerRef:g,onClickOutside(Q){if(e.persistent!==!0&&h.value===!0)return I(Q),(Q.type==="touchstart"||Q.target.classList.contains("q-dialog__backdrop"))&&re(Q),!0}},$=t.computed(()=>fn(e.anchor||(e.cover===!0?"center middle":"bottom start"),c.lang.rtl)),D=t.computed(()=>e.cover===!0?$.value:fn(e.self||"top start",c.lang.rtl)),T=t.computed(()=>(e.square===!0?" q-menu--square":"")+(k.value===!0?" q-menu--dark q-dark":"")),J=t.computed(()=>e.autoClose===!0?{onClick:Z}:{}),P=t.computed(()=>h.value===!0&&e.persistent!==!0);t.watch(P,Q=>{Q===!0?(Dl(X),Jl(N)):(an(X),cn(N))});function R(){Xt(()=>{let Q=g.value;Q&&Q.contains(document.activeElement)!==!0&&(Q=Q.querySelector("[autofocus], [data-autofocus]")||Q,Q.focus({preventScroll:!0}))})}function M(Q){if(v(),p(),a=e.noRefocus===!1?document.activeElement:null,Hl(O),C(),K(),r=void 0,Q!==void 0&&(e.touchPosition||e.contextMenu)){const we=It(Q);if(we.left!==void 0){const{top:xe,left:be}=B.value.getBoundingClientRect();r={left:we.left-be,top:we.top-xe}}}i===void 0&&(i=t.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,W)),e.noFocus!==!0&&document.activeElement.blur(),q(()=>{W(),e.noFocus!==!0&&R()}),_(()=>{c.platform.is.ios===!0&&(s=e.autoClose,g.value.click()),W(),C(!0),o("show",Q)},e.transitionDuration)}function U(Q){v(),p(),S(),H(!0),a!==null&&(Q===void 0||Q.qClickOutside!==!0)&&(a.focus(),a=null),_(()=>{S(!0),o("hide",Q)},e.transitionDuration)}function H(Q){r=void 0,i!==void 0&&(i(),i=void 0),(Q===!0||h.value===!0)&&(Hn(O),E(),cn(N),an(X)),Q!==!0&&(a=null)}function K(){(B.value!==null||e.scrollTarget!==void 0)&&(V.value=Bn(B.value,e.scrollTarget),y(V.value,W))}function Z(Q){s!==!0?(ps(f,Q),o("click",Q)):s=!1}function O(Q){P.value===!0&&e.noFocus!==!0&&Po(g.value,Q.target)!==!0&&R()}function X(Q){o("escape-key"),I(Q)}function W(){const Q=g.value;Q===null||B.value===null||ea({el:Q,offset:e.offset,anchorEl:B.value,anchorOrigin:$.value,selfOrigin:D.value,absoluteOffset:r,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function A(){return t.h(t.Transition,{name:b.value,appear:!0},()=>h.value===!0?t.h("div",{...l,ref:g,tabindex:-1,class:["q-menu q-position-engine scroll"+T.value,l.class],style:[l.style,x.value],...J.value},ce(n.default)):null)}return t.onBeforeUnmount(H),Object.assign(f,{focus:R,updatePosition:W}),w}}),Te=1e3,Ls=["start","center","end","start-force","center-force","end-force"],ta=Array.prototype.filter,Ps=window.getComputedStyle(document.body).overflowAnchor===void 0?We:function(e,n){e!==null&&(cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;const o=e.children||[];ta.call(o,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const l=o[n];l&&l.dataset&&(l.dataset.qVsAnchor="")}))};function mt(e,n){return e+n}function Qn(e,n,o,l,a,r,i,s){const d=e===window?document.scrollingElement||document.documentElement:e,f=a===!0?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-i-s,scrollMaxSize:0,offsetStart:-i,offsetEnd:-s};if(a===!0?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=d.scrollLeft,c.scrollViewSize+=d.clientWidth),c.scrollMaxSize=d.scrollWidth,r===!0&&(c.scrollStart=(Et===!0?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=document.documentElement.clientHeight):(c.scrollStart=d.scrollTop,c.scrollViewSize+=d.clientHeight),c.scrollMaxSize=d.scrollHeight),o!==null)for(let g=o.previousElementSibling;g!==null;g=g.previousElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(c.offsetStart+=g[f]);if(l!==null)for(let g=l.nextElementSibling;g!==null;g=g.nextElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(c.offsetEnd+=g[f]);if(n!==e){const g=d.getBoundingClientRect(),h=n.getBoundingClientRect();a===!0?(c.offsetStart+=h.left-g.left,c.offsetEnd-=h.width):(c.offsetStart+=h.top-g.top,c.offsetEnd-=h.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function na(e,n,o,l){n==="end"&&(n=(e===window?document.body:e)[o===!0?"scrollWidth":"scrollHeight"]),e===window?o===!0?(l===!0&&(n=(Et===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-n),window.scrollTo(n,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,n):o===!0?(l===!0&&(n=(Et===!0?e.scrollWidth-e.offsetWidth:0)-n),e.scrollLeft=n):e.scrollTop=n}function $t(e,n,o,l){if(o>=l)return 0;const a=n.length,r=Math.floor(o/Te),i=Math.floor((l-1)/Te)+1;let s=e.slice(r,i).reduce(mt,0);return o%Te!==0&&(s-=n.slice(r*Te,o).reduce(mt,0)),l%Te!==0&&l!==a&&(s-=n.slice(l,i*Te).reduce(mt,0)),s}const Ms={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{virtualScrollSliceSize:{type:[Number,String],default:null},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 As({virtualScrollLength:e,getVirtualScrollTarget:n,getVirtualScrollEl:o,virtualScrollItemSizeComputed:l}){const a=t.getCurrentInstance(),{props:r,emit:i,proxy:s}=a,{$q:d}=s;let f,c,g,h=[],u;const k=t.ref(0),q=t.ref(0),v=t.ref({}),_=t.ref(null),p=t.ref(null),b=t.ref(null),x=t.ref({from:0,to:0}),V=t.computed(()=>r.tableColspan!==void 0?r.tableColspan:100);l===void 0&&(l=t.computed(()=>r.virtualScrollItemSize));const y=t.computed(()=>l.value+";"+r.virtualScrollHorizontal),E=t.computed(()=>y.value+";"+r.virtualScrollSliceRatioBefore+";"+r.virtualScrollSliceRatioAfter);t.watch(E,()=>{D()}),t.watch(y,B);function B(){$(c,!0)}function L(M){$(M===void 0?c:M)}function I(M,U){const H=n();if(H==null||H.nodeType===8)return;const K=Qn(H,o(),_.value,p.value,r.virtualScrollHorizontal,d.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd);g!==K.scrollViewSize&&D(K.scrollViewSize),S(H,K,Math.min(e.value-1,Math.max(0,parseInt(M,10)||0)),0,Ls.indexOf(U)>-1?U:c>-1&&M>c?"end":"start")}function C(){const M=n();if(M==null||M.nodeType===8)return;const U=Qn(M,o(),_.value,p.value,r.virtualScrollHorizontal,d.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd),H=e.value-1,K=U.scrollMaxSize-U.offsetStart-U.offsetEnd-q.value;if(f===U.scrollStart)return;if(U.scrollMaxSize<=0){S(M,U,0,0);return}g!==U.scrollViewSize&&D(U.scrollViewSize),w(x.value.from);const Z=Math.floor(U.scrollMaxSize-Math.max(U.scrollViewSize,U.offsetEnd)-Math.min(u[H],U.scrollViewSize/2));if(Z>0&&Math.ceil(U.scrollStart)>=Z){S(M,U,H,U.scrollMaxSize-U.offsetEnd-h.reduce(mt,0));return}let O=0,X=U.scrollStart-U.offsetStart,W=X;if(X<=K&&X+U.scrollViewSize>=k.value)X-=k.value,O=x.value.from,W=X;else for(let A=0;X>=h[A]&&O<H;A++)X-=h[A],O+=Te;for(;X>0&&O<H;)X-=u[O],X>-U.scrollViewSize?(O++,W=X):W=u[O]+X;S(M,U,O,W)}function S(M,U,H,K,Z){const O=typeof Z=="string"&&Z.indexOf("-force")>-1,X=O===!0?Z.replace("-force",""):Z,W=X!==void 0?X:"start";let A=Math.max(0,H-v.value[W]),Q=A+v.value.total;Q>e.value&&(Q=e.value,A=Math.max(0,Q-v.value.total)),f=U.scrollStart;const we=A!==x.value.from||Q!==x.value.to;if(we===!1&&X===void 0){J(H);return}const{activeElement:xe}=document,be=b.value;we===!0&&be!==null&&be!==xe&&be.contains(xe)===!0&&(be.addEventListener("focusout",N),setTimeout(()=>{be!==null&&be.removeEventListener("focusout",N)})),Ps(be,H-A);const gt=X!==void 0?u.slice(A,H).reduce(mt,0):0;if(we===!0){const ze=Q>=x.value.from&&A<=x.value.to?x.value.to:Q;x.value={from:A,to:ze},k.value=$t(h,u,0,A),q.value=$t(h,u,Q,e.value),requestAnimationFrame(()=>{x.value.to!==Q&&f===U.scrollStart&&(x.value={from:x.value.from,to:Q},q.value=$t(h,u,Q,e.value))})}requestAnimationFrame(()=>{if(f!==U.scrollStart)return;we===!0&&w(A);const ze=u.slice(A,H).reduce(mt,0),Fe=ze+U.offsetStart+k.value,z=Fe+u[H];let Y=Fe+K;if(X!==void 0){const ee=ze-gt,te=U.scrollStart+ee;Y=O!==!0&&te<Fe&&z<te+U.scrollViewSize?te:X==="end"?z-U.scrollViewSize:Fe-(X==="start"?0:Math.round((U.scrollViewSize-u[H])/2))}f=Y,na(M,Y,r.virtualScrollHorizontal,d.lang.rtl),J(H)})}function w(M){const U=b.value;if(U){const H=ta.call(U.children,A=>A.classList&&A.classList.contains("q-virtual-scroll--skip")===!1),K=H.length,Z=r.virtualScrollHorizontal===!0?A=>A.getBoundingClientRect().width:A=>A.offsetHeight;let O=M,X,W;for(let A=0;A<K;){for(X=Z(H[A]),A++;A<K&&H[A].classList.contains("q-virtual-scroll--with-prev")===!0;)X+=Z(H[A]),A++;W=X-u[O],W!==0&&(u[O]+=W,h[Math.floor(O/Te)]+=W),O++}}}function N(){b.value!==null&&b.value!==void 0&&b.value.focus()}function $(M,U){const H=1*l.value;(U===!0||Array.isArray(u)===!1)&&(u=[]);const K=u.length;u.length=e.value;for(let O=e.value-1;O>=K;O--)u[O]=H;const Z=Math.floor((e.value-1)/Te);h=[];for(let O=0;O<=Z;O++){let X=0;const W=Math.min((O+1)*Te,e.value);for(let A=O*Te;A<W;A++)X+=u[A];h.push(X)}c=-1,f=void 0,k.value=$t(h,u,0,x.value.from),q.value=$t(h,u,x.value.to,e.value),M>=0?(w(x.value.from),t.nextTick(()=>{I(M)})):P()}function D(M){if(M===void 0&&typeof window<"u"){const X=n();X!=null&&X.nodeType!==8&&(M=Qn(X,o(),_.value,p.value,r.virtualScrollHorizontal,d.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd).scrollViewSize)}g=M;const U=parseFloat(r.virtualScrollSliceRatioBefore)||0,H=parseFloat(r.virtualScrollSliceRatioAfter)||0,K=1+U+H,Z=M===void 0||M<=0?1:Math.ceil(M/l.value),O=Math.max(1,Z,Math.ceil((r.virtualScrollSliceSize>0?r.virtualScrollSliceSize:10)/K));v.value={total:Math.ceil(O*K),start:Math.ceil(O*U),center:Math.ceil(O*(.5+U)),end:Math.ceil(O*(1+U)),view:Z}}function T(M,U){const H=r.virtualScrollHorizontal===!0?"width":"height",K={["--q-virtual-scroll-item-"+H]:l.value+"px"};return[M==="tbody"?t.h(M,{class:"q-virtual-scroll__padding",key:"before",ref:_},[t.h("tr",[t.h("td",{style:{[H]:`${k.value}px`,...K},colspan:V.value})])]):t.h(M,{class:"q-virtual-scroll__padding",key:"before",ref:_,style:{[H]:`${k.value}px`,...K}}),t.h(M,{class:"q-virtual-scroll__content",key:"content",ref:b,tabindex:-1},U.flat()),M==="tbody"?t.h(M,{class:"q-virtual-scroll__padding",key:"after",ref:p},[t.h("tr",[t.h("td",{style:{[H]:`${q.value}px`,...K},colspan:V.value})])]):t.h(M,{class:"q-virtual-scroll__padding",key:"after",ref:p,style:{[H]:`${q.value}px`,...K}})]}function J(M){c!==M&&(r.onVirtualScroll!==void 0&&i("virtual-scroll",{index:M,from:x.value.from,to:x.value.to-1,direction:M<c?"decrease":"increase",ref:s}),c=M)}D();const P=wl(C,d.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{D()});let R=!1;return t.onDeactivated(()=>{R=!0}),t.onActivated(()=>{if(R!==!0)return;const M=n();f!==void 0&&M!==void 0&&M!==null&&M.nodeType!==8?na(M,f,r.virtualScrollHorizontal,d.lang.rtl):I(c)}),t.onBeforeUnmount(()=>{P.cancel()}),Object.assign(s,{scrollTo:I,reset:B,refresh:L}),{virtualScrollSliceRange:x,virtualScrollSliceSizeComputed:v,setVirtualScrollSize:D,onVirtualScrollEvt:P,localResetVirtualScroll:$,padVirtualScroll:T,scrollTo:I,reset:B,refresh:L}}const oa=e=>["add","add-unique","toggle"].includes(e),Is=".*+?^${}()|[]\\",Os=Object.keys(Jt),tt=ne({name:"QSelect",inheritAttrs:!1,props:{...Ms,...Yt,...Jt,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],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:oa},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:String,transitionHide:String,transitionDuration:[String,Number],behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0},onNewValue:Function,onFilter:Function},emits:[...Ln,"add","remove","input-value","new-value","keyup","keypress","keydown","filter-abort"],setup(e,{slots:n,emit:o}){const{proxy:l}=t.getCurrentInstance(),{$q:a}=l,r=t.ref(!1),i=t.ref(!1),s=t.ref(-1),d=t.ref(""),f=t.ref(!1),c=t.ref(!1);let g,h,u,k,q,v,_,p,b;const x=t.ref(null),V=t.ref(null),y=t.ref(null),E=t.ref(null),B=t.ref(null),L=El(e),I=Bl(Ha),C=t.computed(()=>Array.isArray(e.options)?e.options.length:0),S=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:w,virtualScrollSliceSizeComputed:N,localResetVirtualScroll:$,padVirtualScroll:D,onVirtualScrollEvt:T,scrollTo:J,setVirtualScrollSize:P}=As({virtualScrollLength:C,getVirtualScrollTarget:Ud,getVirtualScrollEl:Da,virtualScrollItemSizeComputed:S}),R=Pn(),M=t.computed(()=>{const m=e.mapOptions===!0&&e.multiple!==!0,j=e.modelValue!==void 0&&(e.modelValue!==null||m===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const F=e.mapOptions===!0&&h!==void 0?h:[],G=j.map(se=>Dd(se,F));return e.modelValue===null&&m===!0?G.filter(se=>se!==null):G}return j}),U=t.computed(()=>{const m={};return Os.forEach(j=>{const F=e[j];F!==void 0&&(m[j]=F)}),m}),H=t.computed(()=>e.optionsDark===null?R.isDark.value:e.optionsDark),K=t.computed(()=>St(M.value)),Z=t.computed(()=>{let m="q-field__input q-placeholder col";return e.hideSelected===!0||M.value.length===0?[m,e.inputClass]:(m+=" q-field__input--padding",e.inputClass===void 0?m:[m,e.inputClass])}),O=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),X=t.computed(()=>C.value===0),W=t.computed(()=>M.value.map(m=>te.value(m)).join(", ")),A=t.computed(()=>e.optionsHtml===!0?()=>!0:m=>m!=null&&m.html===!0),Q=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||M.value.some(A.value))),we=t.computed(()=>R.focused.value===!0?e.tabindex:-1),xe=t.computed(()=>{const m={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":r.value===!0?"true":"false","aria-owns":`${R.targetUid.value}_lb`,"aria-controls":`${R.targetUid.value}_lb`};return s.value>=0&&(m["aria-activedescendant"]=`${R.targetUid.value}_${s.value}`),m}),be=t.computed(()=>{const m={id:`${R.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"};return s.value>=0&&(m["aria-activedescendant"]=`${R.targetUid.value}_${s.value}`),m}),gt=t.computed(()=>M.value.map((m,j)=>({index:j,opt:m,html:A.value(m),selected:!0,removeAtIndex:Mt,toggleOption:Re,tabindex:we.value}))),ze=t.computed(()=>{if(C.value===0)return[];const{from:m,to:j}=w.value;return e.options.slice(m,j).map((F,G)=>{const se=ae.value(F)===!0,le=m+G,fe={clickable:!0,active:!1,activeClass:Y.value,manualFocus:!0,focused:!1,disable:se,tabindex:-1,dense:e.optionsDense,dark:H.value,role:"option",id:`${R.targetUid.value}_${le}`,onClick:()=>{Re(F)}};return se!==!0&&(xo(F)===!0&&(fe.active=!0),s.value===le&&(fe.focused=!0),fe["aria-selected"]=fe.active===!0?"true":"false",a.platform.is.desktop===!0&&(fe.onMousemove=()=>{r.value===!0&&De(le)})),{index:le,opt:F,html:A.value(F),label:te.value(F),selected:fe.active,focused:fe.focused,toggleOption:Re,setOptionIndex:De,itemProps:fe}})}),Fe=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:a.iconSet.arrow.dropdown),z=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Y=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),ee=t.computed(()=>wo(e.optionValue,"value")),te=t.computed(()=>wo(e.optionLabel,"label")),ae=t.computed(()=>wo(e.optionDisable,"disable")),oe=t.computed(()=>M.value.map(m=>ee.value(m))),ue=t.computed(()=>{const m={onInput:Ha,onChange:I,onKeydown:Fa,onKeyup:Oa,onKeypress:za,onFocus:Aa,onClick(j){u===!0&&$e(j)}};return m.onCompositionstart=m.onCompositionupdate=m.onCompositionend=I,m});t.watch(M,m=>{h=m,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&R.innerLoading.value!==!0&&(i.value!==!0&&r.value!==!0||K.value!==!0)&&(k!==!0&&xt(),(i.value===!0||r.value===!0)&&bt(""))},{immediate:!0}),t.watch(()=>e.fillInput,xt),t.watch(r,_o),t.watch(C,tf);function ie(m){return e.emitValue===!0?ee.value(m):m}function Ne(m){if(m>-1&&m<M.value.length)if(e.multiple===!0){const j=e.modelValue.slice();o("remove",{index:m,value:j.splice(m,1)[0]}),o("update:modelValue",j)}else o("update:modelValue",null)}function Mt(m){Ne(m),R.focus()}function vt(m,j){const F=ie(m);if(e.multiple!==!0){e.fillInput===!0&&At(te.value(m),!0,!0),o("update:modelValue",F);return}if(M.value.length===0){o("add",{index:0,value:F}),o("update:modelValue",e.multiple===!0?[F]:F);return}if(j===!0&&xo(m)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const G=e.modelValue.slice();o("add",{index:G.length,value:F}),G.push(F),o("update:modelValue",G)}function Re(m,j){if(R.editable.value!==!0||m===void 0||ae.value(m)===!0)return;const F=ee.value(m);if(e.multiple!==!0){j!==!0&&(At(e.fillInput===!0?te.value(m):"",!0,!0),nt()),V.value!==null&&V.value.focus(),(M.value.length===0||He(ee.value(M.value[0]),F)!==!0)&&o("update:modelValue",e.emitValue===!0?F:m);return}if((u!==!0||f.value===!0)&&R.focus(),Aa(),M.value.length===0){const le=e.emitValue===!0?F:m;o("add",{index:0,value:le}),o("update:modelValue",e.multiple===!0?[le]:le);return}const G=e.modelValue.slice(),se=oe.value.findIndex(le=>He(le,F));if(se>-1)o("remove",{index:se,value:G.splice(se,1)[0]});else{if(e.maxValues!==void 0&&G.length>=e.maxValues)return;const le=e.emitValue===!0?F:m;o("add",{index:G.length,value:le}),G.push(le)}o("update:modelValue",G)}function De(m){if(a.platform.is.desktop!==!0)return;const j=m>-1&&m<C.value?m:-1;s.value!==j&&(s.value=j)}function bn(m=1,j){if(r.value===!0){let F=s.value;do F=pl(F+m,-1,C.value-1);while(F!==-1&&F!==s.value&&ae.value(e.options[F])===!0);s.value!==F&&(De(F),J(F),j!==!0&&e.useInput===!0&&e.fillInput===!0&&yn(F>=0?te.value(e.options[F]):v))}}function Dd(m,j){const F=G=>He(ee.value(G),m);return e.options.find(F)||j.find(F)||m}function wo(m,j){const F=m!==void 0?m:j;return typeof F=="function"?F:G=>G!==null&&typeof G=="object"&&F in G?G[F]:G}function xo(m){const j=ee.value(m);return oe.value.find(F=>He(F,j))!==void 0}function Aa(m){e.useInput===!0&&V.value!==null&&(m===void 0||V.value===m.target&&m.target.value===W.value)&&V.value.select()}function Ia(m){Ue(m,27)===!0&&r.value===!0&&($e(m),nt(),xt()),o("keyup",m)}function Oa(m){const{value:j}=m.target;if(m.keyCode!==void 0){Ia(m);return}if(m.target.value="",clearTimeout(g),xt(),typeof j=="string"&&j.length>0){const F=j.toLocaleLowerCase(),G=le=>{const fe=e.options.find(_e=>le.value(_e).toLocaleLowerCase()===F);return fe===void 0?!1:(M.value.indexOf(fe)===-1?Re(fe):nt(),!0)},se=le=>{G(ee)!==!0&&(G(te)===!0||le===!0||bt(j,!0,()=>se(!0)))};se()}else R.clearValue(m)}function za(m){o("keypress",m)}function Fa(m){if(o("keydown",m),Ot(m)===!0)return;const j=d.value.length>0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),F=m.shiftKey!==!0&&e.multiple!==!0&&(s.value>-1||j===!0);if(m.keyCode===27){Se(m);return}if(m.keyCode===9&&F===!1){yt();return}if(m.target===void 0||m.target.id!==R.targetUid.value)return;if(m.keyCode===40&&R.innerLoading.value!==!0&&r.value===!1){re(m),wt();return}if(m.keyCode===8&&e.hideSelected!==!0&&d.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?Ne(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&o("update:modelValue",null);return}(m.keyCode===35||m.keyCode===36)&&(typeof d.value!="string"||d.value.length===0)&&(re(m),s.value=-1,bn(m.keyCode===36?1:-1,e.multiple)),(m.keyCode===33||m.keyCode===34)&&N.value!==void 0&&(re(m),s.value=Math.max(-1,Math.min(C.value,s.value+(m.keyCode===33?-1:1)*N.value.view)),bn(m.keyCode===33?1:-1,e.multiple)),(m.keyCode===38||m.keyCode===40)&&(re(m),bn(m.keyCode===38?-1:1,e.multiple));const G=C.value;if((p===void 0||b<Date.now())&&(p=""),G>0&&e.useInput!==!0&&m.key!==void 0&&m.key.length===1&&m.altKey===m.ctrlKey&&(m.keyCode!==32||p.length>0)){r.value!==!0&&wt(m);const se=m.key.toLocaleLowerCase(),le=p.length===1&&p[0]===se;b=Date.now()+1500,le===!1&&(re(m),p+=se);const fe=new RegExp("^"+p.split("").map(ko=>Is.indexOf(ko)>-1?"\\"+ko:ko).join(".*"),"i");let _e=s.value;if(le===!0||_e<0||fe.test(te.value(e.options[_e]))!==!0)do _e=pl(_e+1,-1,G-1);while(_e!==s.value&&(ae.value(e.options[_e])===!0||fe.test(te.value(e.options[_e]))!==!0));s.value!==_e&&t.nextTick(()=>{De(_e),J(_e),_e>=0&&e.useInput===!0&&e.fillInput===!0&&yn(te.value(e.options[_e]))});return}if(!(m.keyCode!==13&&(m.keyCode!==32||e.useInput===!0||p!=="")&&(m.keyCode!==9||F===!1))){if(m.keyCode!==9&&re(m),s.value>-1&&s.value<G){Re(e.options[s.value]);return}if(j===!0){const se=(le,fe)=>{if(fe){if(oa(fe)!==!0)return}else fe=e.newValueMode;if(le==null)return;At("",e.multiple!==!0,!0),(fe==="toggle"?Re:vt)(le,fe==="add-unique"),e.multiple!==!0&&(V.value!==null&&V.value.focus(),nt())};if(e.onNewValue!==void 0?o("new-value",d.value,se):se(d.value),e.multiple!==!0)return}r.value===!0?yt():R.innerLoading.value!==!0&&wt()}}function Da(){return u===!0?B.value:y.value!==null&&y.value.__qPortalInnerRef.value!==null?y.value.__qPortalInnerRef.value:void 0}function Ud(){return Da()}function Hd(){return e.hideSelected===!0?[]:n["selected-item"]!==void 0?gt.value.map(m=>n["selected-item"](m)).slice():n.selected!==void 0?[].concat(n.selected()):e.useChips===!0?gt.value.map((m,j)=>t.h(Ss,{key:"option-"+j,removable:R.editable.value===!0&&ae.value(m.opt)!==!0,dense:!0,textColor:e.color,tabindex:we.value,onRemove(){m.removeAtIndex(j)}},()=>t.h("span",{class:"ellipsis",[m.html===!0?"innerHTML":"textContent"]:te.value(m.opt)}))):[t.h("span",{[Q.value===!0?"innerHTML":"textContent"]:e.displayValue!==void 0?e.displayValue:W.value})]}function Ua(){if(X.value===!0)return n["no-option"]!==void 0?n["no-option"]({inputValue:d.value}):void 0;const m=n.option!==void 0?n.option:F=>t.h(Ns,{key:F.index,...F.itemProps},()=>t.h(qs,()=>t.h(Es,()=>t.h("span",{[F.html===!0?"innerHTML":"textContent"]:F.label}))));let j=D("div",ze.value.map(m));return n["before-options"]!==void 0&&(j=n["before-options"]().concat(j)),Ve(n["after-options"],j)}function jd(m,j){const F=j===!0?{...xe.value,...R.splitAttrs.attributes.value}:void 0,G={ref:j===!0?V:void 0,key:"i_t",class:Z.value,style:e.inputStyle,value:d.value!==void 0?d.value:"",type:"search",...F,id:j===!0?R.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":m!==!0&&e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...ue.value};return m!==!0&&u===!0&&(Array.isArray(G.class)===!0?G.class=[...G.class,"no-pointer-events"]:G.class+=" no-pointer-events"),t.h("input",G)}function Ha(m){clearTimeout(g),!(m&&m.target&&m.target.qComposing===!0)&&(yn(m.target.value||""),k=!0,v=d.value,R.focused.value!==!0&&(u!==!0||f.value===!0)&&R.focus(),e.onFilter!==void 0&&(g=setTimeout(()=>{bt(d.value)},e.inputDebounce)))}function yn(m){d.value!==m&&(d.value=m,o("input-value",m))}function At(m,j,F){k=F!==!0,e.useInput===!0&&(yn(m),(j===!0||F!==!0)&&(v=m),j!==!0&&bt(m))}function bt(m,j,F){if(e.onFilter===void 0||j!==!0&&R.focused.value!==!0)return;R.innerLoading.value===!0?o("filter-abort"):(R.innerLoading.value=!0,c.value=!0),m!==""&&e.multiple!==!0&&M.value.length>0&&k!==!0&&m===te.value(M.value[0])&&(m="");const G=setTimeout(()=>{r.value===!0&&(r.value=!1)},10);clearTimeout(q),q=G,o("filter",m,(se,le)=>{(j===!0||R.focused.value===!0)&&q===G&&(clearTimeout(q),typeof se=="function"&&se(),c.value=!1,t.nextTick(()=>{R.innerLoading.value=!1,R.editable.value===!0&&(j===!0?r.value===!0&&nt():r.value===!0?_o(!0):r.value=!0),typeof le=="function"&&t.nextTick(()=>{le(l)}),typeof F=="function"&&t.nextTick(()=>{F(l)})}))},()=>{R.focused.value===!0&&q===G&&(clearTimeout(q),R.innerLoading.value=!1,c.value=!1),r.value===!0&&(r.value=!1)})}function Wd(){return t.h($s,{ref:y,class:O.value,style:e.popupContentStyle,modelValue:r.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&X.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:H.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:z.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...be.value,onScrollPassive:T,onBeforeShow:Wa,onBeforeHide:Qd,onShow:Kd},Ua)}function Qd(m){Qa(m),yt()}function Kd(){P()}function Xd(m){$e(m),V.value!==null&&V.value.focus(),f.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Jd(m){$e(m),t.nextTick(()=>{f.value=!1})}function Zd(){const m=[t.h(jn,{class:`col-auto ${R.fieldClass.value}`,...U.value,for:R.targetUid.value,dark:H.value,square:!0,loading:c.value,itemAligned:!1,filled:!0,stackLabel:d.value.length>0,...R.splitAttrs.listeners.value,onFocus:Xd,onBlur:Jd},{...n,rawControl:()=>R.getControl(!0),before:void 0,after:void 0})];return r.value===!0&&m.push(t.h("div",{ref:B,class:O.value+" scroll",style:e.popupContentStyle,...be.value,onClick:Se,onScrollPassive:T},Ua())),t.h(ft,{ref:E,modelValue:i.value,position:e.useInput===!0?"top":void 0,transitionShow:_,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:Wa,onBeforeHide:Yd,onHide:Gd,onShow:ef},()=>t.h("div",{class:"q-select__dialog"+(H.value===!0?" q-select__dialog--dark q-dark":"")+(f.value===!0?" q-select__dialog--focused":"")},m))}function Yd(m){Qa(m),E.value!==null&&E.value.__updateRefocusTarget(R.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),R.focused.value=!1}function Gd(m){nt(),R.focused.value===!1&&o("blur",m),xt()}function ef(){const m=document.activeElement;(m===null||m.id!==R.targetUid.value)&&V.value!==null&&V.value!==m&&V.value.focus(),P()}function yt(){i.value!==!0&&(s.value=-1,r.value===!0&&(r.value=!1),R.focused.value===!1&&(clearTimeout(q),q=void 0,R.innerLoading.value===!0&&(o("filter-abort"),R.innerLoading.value=!1,c.value=!1)))}function wt(m){R.editable.value===!0&&(u===!0?(R.onControlFocusin(m),i.value=!0,t.nextTick(()=>{R.focus()})):R.focus(),e.onFilter!==void 0?bt(d.value):(X.value!==!0||n["no-option"]!==void 0)&&(r.value=!0))}function nt(){i.value=!1,yt()}function xt(){e.useInput===!0&&At(e.multiple!==!0&&e.fillInput===!0&&M.value.length>0&&te.value(M.value[0])||"",!0,!0)}function _o(m){let j=-1;if(m===!0){if(M.value.length>0){const F=ee.value(M.value[0]);j=e.options.findIndex(G=>He(ee.value(G),F))}$(j)}De(j)}function tf(m,j){r.value===!0&&R.innerLoading.value===!1&&($(-1,!0),t.nextTick(()=>{r.value===!0&&R.innerLoading.value===!1&&(m>j?$():_o(!0))}))}function ja(){i.value===!1&&y.value!==null&&y.value.updatePosition()}function Wa(m){m!==void 0&&$e(m),o("popup-show",m),R.hasPopupOpen=!0,R.onControlFocusin(m)}function Qa(m){m!==void 0&&$e(m),o("popup-hide",m),R.hasPopupOpen=!1,R.onControlFocusout(m)}function Ka(){u=a.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?n["no-option"]!==void 0||e.onFilter!==void 0||X.value===!1:!0),_=a.platform.is.ios===!0&&u===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(Ka),t.onUpdated(ja),Ka(),t.onBeforeUnmount(()=>{clearTimeout(g)}),Object.assign(l,{showPopup:wt,hidePopup:nt,removeAtIndex:Ne,add:vt,toggleOption:Re,getOptionIndex:()=>s.value,setOptionIndex:De,moveOptionSelection:bn,filter:bt,updateMenuPosition:ja,updateInputValue:At,isOptionSelected:xo,getEmittingOptionValue:ie,isOptionDisabled:(...m)=>ae.value.apply(null,m)===!0,getOptionValue:(...m)=>ee.value.apply(null,m),getOptionLabel:(...m)=>te.value.apply(null,m)}),Object.assign(R,{innerValue:M,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:x,targetRef:V,hasValue:K,showPopup:wt,floatingLabel:t.computed(()=>e.hideSelected!==!0&&K.value===!0||typeof d.value=="number"||d.value.length>0||St(e.displayValue)),getControlChild:()=>{if(R.editable.value!==!1&&(i.value===!0||X.value!==!0||n["no-option"]!==void 0))return u===!0?Zd():Wd();R.hasPopupOpen===!0&&(R.hasPopupOpen=!1)},controlEvents:{onFocusin(m){R.onControlFocusin(m)},onFocusout(m){R.onControlFocusout(m,()=>{xt(),yt()})},onClick(m){if(Se(m),u!==!0&&r.value===!0){yt(),V.value!==null&&V.value.focus();return}wt(m)}},getControl:m=>{const j=Hd(),F=m===!0||i.value!==!0||u!==!0;if(e.useInput===!0)j.push(jd(m,F));else if(R.editable.value===!0){const se=F===!0?xe.value:void 0;j.push(t.h("input",{ref:F===!0?V:void 0,key:"d_t",class:"q-select__focus-target",id:F===!0?R.targetUid.value:void 0,readonly:!0,"data-autofocus":m!==!0&&e.autofocus===!0||void 0,...se,onKeydown:Fa,onKeyup:Ia,onKeypress:za})),F===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length>0&&j.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,onKeyup:Oa}))}if(L.value!==void 0&&e.disable!==!0&&oe.value.length>0){const se=oe.value.map(le=>t.h("option",{value:le,selected:!0}));j.push(t.h("select",{class:"hidden",name:L.value,multiple:e.multiple},se))}const G=e.useInput===!0||F!==!0?void 0:R.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...G},j)},getInnerAppend:()=>e.loading!==!0&&c.value!==!0&&e.hideDropdownIcon!==!0?[t.h(me,{class:"q-select__dropdown-icon"+(r.value===!0?" rotate-180":""),name:Fe.value})]:null}),Mn(R)}});function la(e,n){const o=t.ref(null),l=t.computed(()=>e.disable===!0?null:t.h("span",{ref:o,class:"no-outline",tabindex:-1}));function a(r){const i=n.value;r!==void 0&&r.type.indexOf("key")===0?i!==null&&document.activeElement!==i&&i.contains(document.activeElement)===!0&&i.focus():o.value!==null&&(r===void 0||i!==null&&i.contains(r.target)===!0)&&o.value.focus()}return{refocusTargetEl:l,refocusTarget:a}}const aa={xs:30,sm:35,md:40,lg:50,xl:60},zs=t.h("svg",{key:"svg",class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24","aria-hidden":"true"},[t.h("path",{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}),t.h("path",{class:"q-radio__check",d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"})]),Ie=ne({name:"QRadio",props:{...Me,...ot,...Yt,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(e,{slots:n,emit:o}){const{proxy:l}=t.getCurrentInstance(),a=Ae(e,l.$q),r=lt(e,aa),i=t.ref(null),{refocusTargetEl:s,refocusTarget:d}=la(e,i),f=t.computed(()=>t.toRaw(e.modelValue)===t.toRaw(e.val)),c=t.computed(()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(e.disable===!0?" disabled":"")+(a.value===!0?" q-radio--dark":"")+(e.dense===!0?" q-radio--dense":"")+(e.leftLabel===!0?" reverse":"")),g=t.computed(()=>{const b=e.color!==void 0&&(e.keepColor===!0||f.value===!0)?` text-${e.color}`:"";return`q-radio__inner relative-position q-radio__inner--${f.value===!0?"truthy":"falsy"}${b}`}),h=t.computed(()=>(f.value===!0?e.checkedIcon:e.uncheckedIcon)||null),u=t.computed(()=>e.disable===!0?-1:e.tabindex||0),k=t.computed(()=>{const b={type:"radio"};return e.name!==void 0&&Object.assign(b,{"^checked":f.value===!0?"checked":void 0,name:e.name,value:e.val}),b}),q=ql(k);function v(b){b!==void 0&&(re(b),d(b)),e.disable!==!0&&f.value!==!0&&o("update:modelValue",e.val,b)}function _(b){(b.keyCode===13||b.keyCode===32)&&re(b)}function p(b){(b.keyCode===13||b.keyCode===32)&&v(b)}return Object.assign(l,{set:v}),()=>{const b=h.value!==null?[t.h("div",{key:"icon",class:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[t.h(me,{class:"q-radio__icon",name:h.value})])]:[zs];e.disable!==!0&&q(b,"unshift"," q-radio__native q-ma-none q-pa-none");const x=[t.h("div",{class:g.value,style:r.value},b)];s.value!==null&&x.push(s.value);const V=e.label!==void 0?Ve(n.default,[e.label]):ce(n.default);return V!==void 0&&x.push(t.h("div",{class:"q-radio__label q-anchor--skip"},V)),t.h("div",{ref:i,class:c.value,tabindex:u.value,role:"radio","aria-label":e.label,"aria-checked":f.value===!0?"true":"false","aria-disabled":e.disable===!0?"true":void 0,onClick:v,onKeydown:_,onKeyup:p},x)}}}),ra={...Me,...ot,...Yt,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:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},ia=["update:modelValue"];function sa(e,n){const{props:o,slots:l,emit:a,proxy:r}=t.getCurrentInstance(),{$q:i}=r,s=Ae(o,i),d=t.ref(null),{refocusTargetEl:f,refocusTarget:c}=la(o,d),g=lt(o,aa),h=t.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),u=t.computed(()=>{const S=t.toRaw(o.val);return h.value===!0?o.modelValue.findIndex(w=>t.toRaw(w)===S):-1}),k=t.computed(()=>h.value===!0?u.value>-1:t.toRaw(o.modelValue)===t.toRaw(o.trueValue)),q=t.computed(()=>h.value===!0?u.value===-1:t.toRaw(o.modelValue)===t.toRaw(o.falseValue)),v=t.computed(()=>k.value===!1&&q.value===!1),_=t.computed(()=>o.disable===!0?-1:o.tabindex||0),p=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(o.dense===!0?` q-${e}--dense`:"")+(o.leftLabel===!0?" reverse":"")),b=t.computed(()=>{const S=k.value===!0?"truthy":q.value===!0?"falsy":"indet",w=o.color!==void 0&&(o.keepColor===!0||(e==="toggle"?k.value===!0:q.value!==!0))?` text-${o.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${S}${w}`}),x=t.computed(()=>{const S={type:"checkbox"};return o.name!==void 0&&Object.assign(S,{"^checked":k.value===!0?"checked":void 0,name:o.name,value:h.value===!0?o.val:o.trueValue}),S}),V=ql(x),y=t.computed(()=>{const S={tabindex:_.value,role:"checkbox","aria-label":o.label,"aria-checked":v.value===!0?"mixed":k.value===!0?"true":"false"};return o.disable===!0&&(S["aria-disabled"]="true"),S});function E(S){S!==void 0&&(re(S),c(S)),o.disable!==!0&&a("update:modelValue",B(),S)}function B(){if(h.value===!0){if(k.value===!0){const S=o.modelValue.slice();return S.splice(u.value,1),S}return o.modelValue.concat([o.val])}if(k.value===!0){if(o.toggleOrder!=="ft"||o.toggleIndeterminate===!1)return o.falseValue}else if(q.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 L(S){(S.keyCode===13||S.keyCode===32)&&re(S)}function I(S){(S.keyCode===13||S.keyCode===32)&&E(S)}const C=n(k,v);return Object.assign(r,{toggle:E}),()=>{const S=C();o.disable!==!0&&V(S,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const w=[t.h("div",{class:b.value,style:g.value},S)];f.value!==null&&w.push(f.value);const N=o.label!==void 0?Ve(l.default,[o.label]):ce(l.default);return N!==void 0&&w.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},N)),t.h("div",{ref:d,class:p.value,...y.value,onClick:E,onKeydown:L,onKeyup:I},w)}}const Fs=t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24","aria-hidden":"true"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Kn=ne({name:"QCheckbox",props:ra,emits:ia,setup(e){function n(o,l){const a=t.computed(()=>(o.value===!0?e.checkedIcon:l.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>a.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(me,{class:"q-checkbox__icon",name:a.value})])]:[Fs]}return sa("checkbox",n)}}),Ds=ne({name:"QToggle",props:{...ra,icon:String,iconColor:String},emits:ia,setup(e){function n(o,l){const a=t.computed(()=>(o.value===!0?e.checkedIcon:l.value===!0?e.indeterminateIcon:e.uncheckedIcon)||e.icon),r=t.computed(()=>o.value===!0?e.iconColor:null);return()=>[t.h("div",{class:"q-toggle__track"}),t.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},a.value!==void 0?[t.h(me,{name:a.value,color:r.value})]:void 0)]}return sa("toggle",n)}}),ua={radio:Ie,checkbox:Kn,toggle:Ds},Us=Object.keys(ua),Lt=ne({name:"QOptionGroup",props:{...Me,modelValue:{required:!0},options:{type:Array,validator:e=>e.every(n=>"value"in n&&"label"in n)},name:String,type:{default:"radio",validator:e=>Us.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{emit:n,slots:o}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=Array.isArray(e.modelValue);e.type==="radio"?a===!0&&console.error("q-option-group: model should not be array"):a===!1&&console.error("q-option-group: model should be array in your case");const r=Ae(e,l),i=t.computed(()=>ua[e.type]),s=t.computed(()=>"q-option-group q-gutter-x-sm"+(e.inline===!0?" q-option-group--inline":"")),d=t.computed(()=>{const c={};return e.type==="radio"&&(c.role="radiogroup",e.disable===!0&&(c["aria-disabled"]="true")),c});function f(c){n("update:modelValue",c)}return()=>t.h("div",{class:s.value,...d.value},e.options.map((c,g)=>{const h=o["label-"+g]!==void 0?()=>o["label-"+g](c):o.label!==void 0?()=>o.label(c):void 0;return t.h("div",[t.h(i.value,{modelValue:e.modelValue,val:c.value,name:c.name===void 0?e.name:c.name,disable:e.disable||c.disable,label:h===void 0?c.label:null,leftLabel:c.leftLabel===void 0?e.leftLabel:c.leftLabel,color:c.color===void 0?e.color:c.color,checkedIcon:c.checkedIcon,uncheckedIcon:c.uncheckedIcon,dark:c.dark||r.value,size:c.size===void 0?e.size:c.size,dense:e.dense,keepColor:c.keepColor===void 0?e.keepColor:c.keepColor,"onUpdate:modelValue":f},h)])}))}}),Pt=ne({name:"QTooltip",inheritAttrs:!1,props:{...Wl,...zt,...On,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:dn},self:{type:String,default:"top middle",validator:dn},offset:{type:Array,default:()=>[14,14],validator:Gl},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},emits:[...Ft],setup(e,{slots:n,emit:o,attrs:l}){let a,r;const i=t.getCurrentInstance(),{proxy:{$q:s}}=i,d=t.ref(null),f=t.ref(!1),c=t.computed(()=>fn(e.anchor,s.lang.rtl)),g=t.computed(()=>fn(e.self,s.lang.rtl)),h=t.computed(()=>e.persistent!==!0),{registerTick:u,removeTick:k}=tn(),{registerTimeout:q,removeTimeout:v}=qt(),{transition:_,transitionStyle:p}=Pl(e,f),{localScrollTarget:b,changeScrollEvent:x,unconfigureScrollTarget:V}=Kl(e,M),{anchorEl:y,canShow:E,anchorEvents:B}=Ql({showing:f,configureAnchorEl:R}),{show:L,hide:I}=Dt({showing:f,canShow:E,handleShow:N,handleHide:$,hideOnRouteChange:h,processOnMount:!0});Object.assign(B,{delayShow:J,delayHide:P});const{showPortal:C,hidePortal:S,renderPortal:w}=zn(i,d,H);if(s.platform.is.mobile===!0){const K={anchorEl:y,innerRef:d,onClickOutside(O){return I(O),O.target.classList.contains("q-dialog__backdrop")&&re(O),!0}},Z=t.computed(()=>e.modelValue===null&&e.persistent!==!0&&f.value===!0);t.watch(Z,O=>{(O===!0?Jl:cn)(K)}),t.onBeforeUnmount(()=>{cn(K)})}function N(K){k(),v(),C(),u(()=>{r=new MutationObserver(()=>T()),r.observe(d.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),T(),M()}),a===void 0&&(a=t.watch(()=>s.screen.width+"|"+s.screen.height+"|"+e.self+"|"+e.anchor+"|"+s.lang.rtl,T)),q(()=>{C(!0),o("show",K)},e.transitionDuration)}function $(K){k(),v(),S(),D(),q(()=>{S(!0),o("hide",K)},e.transitionDuration)}function D(){r!==void 0&&(r.disconnect(),r=void 0),a!==void 0&&(a(),a=void 0),V(),Qe(B,"tooltipTemp")}function T(){const K=d.value;y.value===null||!K||ea({el:K,offset:e.offset,anchorEl:y.value,anchorOrigin:c.value,selfOrigin:g.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function J(K){if(s.platform.is.mobile===!0){nn(),document.body.classList.add("non-selectable");const Z=y.value,O=["touchmove","touchcancel","touchend","click"].map(X=>[Z,X,"delayHide","passiveCapture"]);Pe(B,"tooltipTemp",O)}q(()=>{L(K)},e.delay)}function P(K){v(),s.platform.is.mobile===!0&&(Qe(B,"tooltipTemp"),nn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),q(()=>{I(K)},e.hideDelay)}function R(){if(e.noParentEvent===!0||y.value===null)return;const K=s.platform.is.mobile===!0?[[y.value,"touchstart","delayShow","passive"]]:[[y.value,"mouseenter","delayShow","passive"],[y.value,"mouseleave","delayHide","passive"]];Pe(B,"anchor",K)}function M(){if(y.value!==null||e.scrollTarget!==void 0){b.value=Bn(y.value,e.scrollTarget);const K=e.noParentEvent===!0?T:I;x(b.value,K)}}function U(){return f.value===!0?t.h("div",{...l,ref:d,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",l.class],style:[l.style,p.value],role:"complementary"},ce(n.default)):null}function H(){return t.h(t.Transition,{name:_.value,appear:!0},U)}return t.onBeforeUnmount(D),Object.assign(i.proxy,{updatePosition:T}),w}});function Hs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ca={exports:{}},Xn={exports:{}},da=function(n,o){return function(){for(var a=new Array(arguments.length),r=0;r<a.length;r++)a[r]=arguments[r];return n.apply(o,a)}};/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var js=function(n){return n!=null&&n.constructor!=null&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)},Ws=da,Qs=js,ht=Object.prototype.toString;function fa(e){return ht.call(e)==="[object Array]"}function Ks(e){return ht.call(e)==="[object ArrayBuffer]"}function Xs(e){return typeof FormData<"u"&&e instanceof FormData}function Js(e){var n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&e.buffer instanceof ArrayBuffer,n}function Zs(e){return typeof e=="string"}function Ys(e){return typeof e=="number"}function Gs(e){return typeof e>"u"}function ma(e){return e!==null&&typeof e=="object"}function eu(e){return ht.call(e)==="[object Date]"}function tu(e){return ht.call(e)==="[object File]"}function nu(e){return ht.call(e)==="[object Blob]"}function ha(e){return ht.call(e)==="[object Function]"}function ou(e){return ma(e)&&ha(e.pipe)}function lu(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function au(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function ru(){return typeof navigator<"u"&&navigator.product==="ReactNative"?!1:typeof window<"u"&&typeof document<"u"}function Jn(e,n){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),fa(e))for(var o=0,l=e.length;o<l;o++)n.call(null,e[o],o,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.call(null,e[a],a,e)}function pa(){var e={};function n(a,r){typeof e[r]=="object"&&typeof a=="object"?e[r]=pa(e[r],a):e[r]=a}for(var o=0,l=arguments.length;o<l;o++)Jn(arguments[o],n);return e}function iu(e,n,o){return Jn(n,function(a,r){o&&typeof a=="function"?e[r]=Ws(a,o):e[r]=a}),e}var Be={isArray:fa,isArrayBuffer:Ks,isBuffer:Qs,isFormData:Xs,isArrayBufferView:Js,isString:Zs,isNumber:Ys,isObject:ma,isUndefined:Gs,isDate:eu,isFile:tu,isBlob:nu,isFunction:ha,isStream:ou,isURLSearchParams:lu,isStandardBrowserEnv:ru,forEach:Jn,merge:pa,extend:iu,trim:au},su=Be,uu=function(n,o){su.forEach(n,function(a,r){r!==o&&r.toUpperCase()===o.toUpperCase()&&(n[o]=a,delete n[r])})},Zn,ga;function cu(){return ga||(ga=1,Zn=function(n,o,l,a,r){return n.config=o,l&&(n.code=l),n.request=a,n.response=r,n}),Zn}var Yn,va;function ba(){if(va)return Yn;va=1;var e=cu();return Yn=function(o,l,a,r,i){var s=new Error(o);return e(s,l,a,r,i)},Yn}var Gn,ya;function du(){if(ya)return Gn;ya=1;var e=ba();return Gn=function(o,l,a){var r=a.config.validateStatus;!a.status||!r||r(a.status)?o(a):l(e("Request failed with status code "+a.status,a.config,null,a.request,a))},Gn}var eo,wa;function fu(){if(wa)return eo;wa=1;var e=Be;function n(o){return encodeURIComponent(o).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return eo=function(l,a,r){if(!a)return l;var i;if(r)i=r(a);else if(e.isURLSearchParams(a))i=a.toString();else{var s=[];e.forEach(a,function(f,c){f===null||typeof f>"u"||(e.isArray(f)?c=c+"[]":f=[f],e.forEach(f,function(h){e.isDate(h)?h=h.toISOString():e.isObject(h)&&(h=JSON.stringify(h)),s.push(n(c)+"="+n(h))}))}),i=s.join("&")}return i&&(l+=(l.indexOf("?")===-1?"?":"&")+i),l},eo}var to,xa;function mu(){if(xa)return to;xa=1;var e=Be,n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return to=function(l){var a={},r,i,s;return l&&e.forEach(l.split(`
`),function(f){if(s=f.indexOf(":"),r=e.trim(f.substr(0,s)).toLowerCase(),i=e.trim(f.substr(s+1)),r){if(a[r]&&n.indexOf(r)>=0)return;r==="set-cookie"?a[r]=(a[r]?a[r]:[]).concat([i]):a[r]=a[r]?a[r]+", "+i:i}}),a},to}var no,_a;function hu(){if(_a)return no;_a=1;var e=Be;return no=e.isStandardBrowserEnv()?function(){var o=/(msie|trident)/i.test(navigator.userAgent),l=document.createElement("a"),a;function r(i){var s=i;return o&&(l.setAttribute("href",s),s=l.href),l.setAttribute("href",s),{href:l.href,protocol:l.protocol?l.protocol.replace(/:$/,""):"",host:l.host,search:l.search?l.search.replace(/^\?/,""):"",hash:l.hash?l.hash.replace(/^#/,""):"",hostname:l.hostname,port:l.port,pathname:l.pathname.charAt(0)==="/"?l.pathname:"/"+l.pathname}}return a=r(window.location.href),function(s){var d=e.isString(s)?r(s):s;return d.protocol===a.protocol&&d.host===a.host}}():function(){return function(){return!0}}(),no}var oo,ka;function pu(){if(ka)return oo;ka=1;var e=Be;return oo=e.isStandardBrowserEnv()?function(){return{write:function(l,a,r,i,s,d){var f=[];f.push(l+"="+encodeURIComponent(a)),e.isNumber(r)&&f.push("expires="+new Date(r).toGMTString()),e.isString(i)&&f.push("path="+i),e.isString(s)&&f.push("domain="+s),d===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(l){var a=document.cookie.match(new RegExp("(^|;\\s*)("+l+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(l){this.write(l,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),oo}var lo,Ca;function Va(){if(Ca)return lo;Ca=1;var e=Be,n=du(),o=fu(),l=mu(),a=hu(),r=ba();return lo=function(s){return new Promise(function(f,c){var g=s.data,h=s.headers;e.isFormData(g)&&delete h["Content-Type"];var u=new XMLHttpRequest;if(s.auth){var k=s.auth.username||"",q=s.auth.password||"";h.Authorization="Basic "+btoa(k+":"+q)}if(u.open(s.method.toUpperCase(),o(s.url,s.params,s.paramsSerializer),!0),u.timeout=s.timeout,u.onreadystatechange=function(){if(!(!u||u.readyState!==4)&&!(u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0))){var b="getAllResponseHeaders"in u?l(u.getAllResponseHeaders()):null,x=!s.responseType||s.responseType==="text"?u.responseText:u.response,V={data:x,status:u.status,statusText:u.statusText,headers:b,config:s,request:u};n(f,c,V),u=null}},u.onerror=function(){c(r("Network Error",s,null,u)),u=null},u.ontimeout=function(){c(r("timeout of "+s.timeout+"ms exceeded",s,"ECONNABORTED",u)),u=null},e.isStandardBrowserEnv()){var v=pu(),_=(s.withCredentials||a(s.url))&&s.xsrfCookieName?v.read(s.xsrfCookieName):void 0;_&&(h[s.xsrfHeaderName]=_)}if("setRequestHeader"in u&&e.forEach(h,function(b,x){typeof g>"u"&&x.toLowerCase()==="content-type"?delete h[x]:u.setRequestHeader(x,b)}),s.withCredentials&&(u.withCredentials=!0),s.responseType)try{u.responseType=s.responseType}catch(p){if(s.responseType!=="json")throw p}typeof s.onDownloadProgress=="function"&&u.addEventListener("progress",s.onDownloadProgress),typeof s.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",s.onUploadProgress),s.cancelToken&&s.cancelToken.promise.then(function(b){!u||(u.abort(),c(b),u=null)}),g===void 0&&(g=null),u.send(g)})},lo}var Ce=Be,gu=uu,vu={"Content-Type":"application/x-www-form-urlencoded"};function Sa(e,n){!Ce.isUndefined(e)&&Ce.isUndefined(e["Content-Type"])&&(e["Content-Type"]=n)}function bu(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u")&&(e=Va()),e}var mn={adapter:bu(),transformRequest:[function(n,o){return gu(o,"Content-Type"),Ce.isFormData(n)||Ce.isArrayBuffer(n)||Ce.isBuffer(n)||Ce.isStream(n)||Ce.isFile(n)||Ce.isBlob(n)?n:Ce.isArrayBufferView(n)?n.buffer:Ce.isURLSearchParams(n)?(Sa(o,"application/x-www-form-urlencoded;charset=utf-8"),n.toString()):Ce.isObject(n)?(Sa(o,"application/json;charset=utf-8"),JSON.stringify(n)):n}],transformResponse:[function(n){if(typeof n=="string")try{n=JSON.parse(n)}catch{}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(n){return n>=200&&n<300}};mn.headers={common:{Accept:"application/json, text/plain, */*"}},Ce.forEach(["delete","get","head"],function(n){mn.headers[n]={}}),Ce.forEach(["post","put","patch"],function(n){mn.headers[n]=Ce.merge(vu)});var ao=mn,yu=Be;function hn(){this.handlers=[]}hn.prototype.use=function(n,o){return this.handlers.push({fulfilled:n,rejected:o}),this.handlers.length-1},hn.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)},hn.prototype.forEach=function(n){yu.forEach(this.handlers,function(l){l!==null&&n(l)})};var wu=hn,xu=Be,_u=function(n,o,l){return xu.forEach(l,function(r){n=r(n,o)}),n},ro,Na;function qa(){return Na||(Na=1,ro=function(n){return!!(n&&n.__CANCEL__)}),ro}var ku=function(n){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(n)},Cu=function(n,o){return o?n.replace(/\/+$/,"")+"/"+o.replace(/^\/+/,""):n},Ea=Be,io=_u,Vu=qa(),Su=ao,Nu=ku,qu=Cu;function so(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Eu=function(n){so(n),n.baseURL&&!Nu(n.url)&&(n.url=qu(n.baseURL,n.url)),n.headers=n.headers||{},n.data=io(n.data,n.headers,n.transformRequest),n.headers=Ea.merge(n.headers.common||{},n.headers[n.method]||{},n.headers||{}),Ea.forEach(["delete","get","head","post","put","patch","common"],function(a){delete n.headers[a]});var o=n.adapter||Su.adapter;return o(n).then(function(a){return so(n),a.data=io(a.data,a.headers,n.transformResponse),a},function(a){return Vu(a)||(so(n),a&&a.response&&(a.response.data=io(a.response.data,a.response.headers,n.transformResponse))),Promise.reject(a)})},Bu=ao,pt=Be,Ba=wu,Tu=Eu;function pn(e){this.defaults=e,this.interceptors={request:new Ba,response:new Ba}}pn.prototype.request=function(n){typeof n=="string"&&(n=pt.merge({url:arguments[0]},arguments[1])),n=pt.merge(Bu,{method:"get"},this.defaults,n),n.method=n.method.toLowerCase();var o=[Tu,void 0],l=Promise.resolve(n);for(this.interceptors.request.forEach(function(r){o.unshift(r.fulfilled,r.rejected)}),this.interceptors.response.forEach(function(r){o.push(r.fulfilled,r.rejected)});o.length;)l=l.then(o.shift(),o.shift());return l},pt.forEach(["delete","get","head","options"],function(n){pn.prototype[n]=function(o,l){return this.request(pt.merge(l||{},{method:n,url:o}))}}),pt.forEach(["post","put","patch"],function(n){pn.prototype[n]=function(o,l,a){return this.request(pt.merge(a||{},{method:n,url:o,data:l}))}});var Ru=pn,uo,Ta;function Ra(){if(Ta)return uo;Ta=1;function e(n){this.message=n}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,uo=e,uo}var co,$a;function $u(){if($a)return co;$a=1;var e=Ra();function n(o){if(typeof o!="function")throw new TypeError("executor must be a function.");var l;this.promise=new Promise(function(i){l=i});var a=this;o(function(i){a.reason||(a.reason=new e(i),l(a.reason))})}return n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var l,a=new n(function(i){l=i});return{token:a,cancel:l}},co=n,co}var fo,La;function Lu(){return La||(La=1,fo=function(n){return function(l){return n.apply(null,l)}}),fo}var mo=Be,Pu=da,gn=Ru,Pa=ao;function Ma(e){var n=new gn(e),o=Pu(gn.prototype.request,n);return mo.extend(o,gn.prototype,n),mo.extend(o,n),o}var Oe=Ma(Pa);Oe.Axios=gn,Oe.create=function(n){return Ma(mo.merge(Pa,n))},Oe.Cancel=Ra(),Oe.CancelToken=$u(),Oe.isCancel=qa(),Oe.all=function(n){return Promise.all(n)},Oe.spread=Lu(),Xn.exports=Oe,Xn.exports.default=Oe,function(e){e.exports=Xn.exports}(ca);const Mu=Hs(ca.exports);let Au={};const ho=Mu.create(Au);ho.interceptors.request.use(function(e){return e.headers={"Content-Type":"application/json","Access-Control-Allow-Credentials":!0,"Access-control-Allow-Origin":"*","Access-Control-Allow-Headers":"X-Requested-With","poros-current-user":"eyJhbGciOiJIUzI1NiJ9.eyJjbGllbnRfZXhwaXJ5RGF0ZSI6MTY3MjQ3MDkxMjAwMCwiY2xpZW50SWQiOiIzODI3ZjI2MTRiZDdjZDVhYWZkYTVjNTU2NTkzODQ1ZSIsImNsaWVudF9tYXhOdW0iOjIwMDAsImN1cnJlbnRPcmdUeXBlIjoiMiIsImNsaWVudF9lbmFibGUiOjAsImNsaWVudF9kYXRhc291cmNlIjoibXllcnAxIiwidWlkIjoiYWRtaW4iLCJlbXBOdW0iOm51bGwsImNsaWVudF9tYXN0ZXJBZG1pbiI6IjEiLCJjbGllbnRDb2RlIjoiRlgiLCJuYW1lIjoi6LaF57qn566h55CG5ZGYIiwiaWQiOjEsImN1cnJlbnRPcmdDb2RlIjoiZ3JvdXAiLCJlbWFpbCI6ImNoZW53ZWk4MzQyNUAxMjYuY29tIn0.-XSq7hU-l4a7gPadbZzj-92S9-ldaajTHmZFNookS4g",Authorization:"bearer 6eeb3002-35f5-4343-b167-5f58c3dd3966"},e},function(e){return Promise.reject(e)}),ho.interceptors.response.use(function(e){return e.data},function(e){return Promise.reject(e)});function Iu(e){return ho.get("https://saas.feixuns.com:7778/api/basic-permission/v1/secStaff/list",{params:e})}const Ou=ne({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:n}){const o=t.computed(()=>`q-card__section q-card__section--${e.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>t.h(e.tag,{class:o.value},ce(n.default))}}),zu=ne({name:"QCardActions",props:{...Oo,vertical:Boolean},setup(e,{slots:n}){const o=zo(e),l=t.computed(()=>`q-card__actions ${o.value} q-card__actions--${e.vertical===!0?"vert column":"horiz row"}`);return()=>t.h("div",{class:l.value},ce(n.default))}}),Fu=ne({name:"QCard",props:{...Me,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:n}){const o=t.getCurrentInstance(),l=Ae(e,o.proxy.$q),a=t.computed(()=>"q-card"+(l.value===!0?" q-card--dark q-dark":"")+(e.bordered===!0?" q-card--bordered":"")+(e.square===!0?" q-card--square no-border-radius":"")+(e.flat===!0?" q-card--flat no-shadow":""));return()=>t.h(e.tag,{class:a.value},ce(n.default))}}),ff="",Du={class:"row sponsor-modal"},Uu={class:"col-6 sponsor-modal-left"},Hu={class:"row items-center"},ju=t.createElementVNode("span",{class:"sponsor-modal-left-all-checkbox"},"\u5168\u90E8\u7528\u6237",-1),Wu={class:"row items-center"},Qu={key:0,class:"q-mr-sm head-portrait"},Ku=["src"],Xu={key:1,class:"q-mr-sm row justify-center none-head-portrait"},Ju={class:"col-6 sponsor-modal-right"},Zu=t.createElementVNode("div",{class:"text-weight-bold"},"\u5DF2\u9009\u62E9",-1),Yu={class:"q-pl-md row"},Gu={class:"row items-center right-content-details"},ec={key:0,class:"q-mr-sm head-portrait right-content-details-icon"},tc=["src"],nc={key:1,class:"q-mr-sm row justify-center none-head-portrait"},oc={class:"right-content-details-msg"},lc=t.createElementVNode("div",null,[t.createElementVNode("i",{class:"iconfont icon-guanbi text-grey-5 q-pl-sm",style:{"font-size":"12px"}})],-1),ac={class:"flex justify-end items-center no-wrap confirm bg-white q-dialog"},rc={__name:"sponsorModal",props:{visible:{type:Boolean,default:!1},userList:{type:Array,default:()=>[]},userListContent:{type:Array,default:()=>[]}},emits:["update:visible","update:userList"],setup(e,{expose:n,emit:o}){const l=e;let a=t.computed({get(){return l.visible},set(){k()}}),r=t.ref([]);const i=t.ref([]),s=t.ref([]);t.ref([]);const d=t.ref(!1);t.onMounted(async()=>{r.value=l.userList,console.log(l.userListContent),f()});const f=async()=>{i.value=l.userListContent,s.value=[],r.value=l.userList,i.value.forEach(q=>{q.headUrlContent=JSON.parse(q.headUrl),r.value.forEach(v=>{q.uid==v&&s.value.push(q)})}),s.value.length==0?d.value=!1:s.value.length==i.value.length?d.value=!0:d.value="maybe"},c=()=>{s.value=[],i.value.forEach(q=>{q.headUrlContent=JSON.parse(q.headUrl),r.value.forEach(v=>{q.uid==v&&s.value.unshift(q)})}),s.value.length==0?d.value=!1:s.value.length==i.value.length?d.value=!0:d.value="maybe"},g=()=>{r.value=[],d.value&&i.value.forEach(q=>{r.value.push(q.uid)}),c()},h=()=>{r.value=[],c()},u=()=>{console.log(r.value),o("update:userList",r.value),k()},k=()=>{o("update:visible",!1)};return n({reassignData:f}),(q,v)=>(t.openBlock(),t.createBlock(ft,{modelValue:t.unref(a),"onUpdate:modelValue":v[2]||(v[2]=_=>t.isRef(a)?a.value=_:a=_),class:"bt-personner-modal"},{default:t.withCtx(()=>[t.createVNode(Fu,null,{default:t.withCtx(()=>[t.createVNode(Ou,null,{default:t.withCtx(()=>[t.createVNode(Nt,{placeholder:"\u641C\u7D22\u7528\u6237","bottom-slots":"",outlined:"",dense:"",style:{width:"50%"}}),t.createElementVNode("div",Du,[t.createElementVNode("div",Uu,[t.createElementVNode("div",Hu,[t.createVNode(Kn,{modelValue:d.value,"onUpdate:modelValue":[v[0]||(v[0]=_=>d.value=_),g],"indeterminate-value":"maybe",size:"36px",color:"teal"},null,8,["modelValue"]),ju]),t.createElementVNode("div",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(_,p)=>{var b;return t.openBlock(),t.createElementBlock("div",{key:p},[t.createElementVNode("div",Wu,[t.createVNode(Kn,{"indeterminate-value":"maybe",size:"36px",modelValue:t.unref(r),"onUpdate:modelValue":[v[1]||(v[1]=x=>t.isRef(r)?r.value=x:r=x),c],val:_.uid,color:"teal"},null,8,["modelValue","val"]),_.headUrlContent?(t.openBlock(),t.createElementBlock("div",Qu,[t.createElementVNode("img",{src:(b=_==null?void 0:_.headUrlContent[0])==null?void 0:b.filePath,style:{width:"100%"},alt:""},null,8,Ku)])):(t.openBlock(),t.createElementBlock("div",Xu,[t.createElementVNode("span",null,t.toDisplayString(_.name),1)])),t.createElementVNode("div",null,[t.createElementVNode("div",null,t.toDisplayString(_.name)+" ("+t.toDisplayString(_.uid)+" )",1),t.createElementVNode("div",null,t.toDisplayString(_.orgposRemark),1)])])])}),128))])]),t.createElementVNode("div",Ju,[t.createElementVNode("div",{class:"flex items-start justify-between q-px-md q-py-sm",style:{"font-size":"15px"}},[Zu,t.createElementVNode("div",{class:"cursor-pointer text-red-5",onClick:h},"\u6E05\u7A7A")]),t.createElementVNode("div",null,[t.createElementVNode("div",Yu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(_,p)=>{var b;return t.openBlock(),t.createElementBlock("div",{key:p,class:"row items-center col-5 bg-grey-4 q-pa-sm q-ma-sm right-content"},[t.createElementVNode("div",Gu,[_.headUrlContent?(t.openBlock(),t.createElementBlock("div",ec,[t.createElementVNode("img",{src:(b=_==null?void 0:_.headUrlContent[0])==null?void 0:b.filePath,style:{width:"100%"},alt:""},null,8,tc)])):(t.openBlock(),t.createElementBlock("div",nc,[t.createElementVNode("span",null,t.toDisplayString(_.name),1)])),t.createElementVNode("div",oc,[t.createElementVNode("div",null,t.toDisplayString(_.name)+" ("+t.toDisplayString(_.uid)+" )",1),t.createElementVNode("div",null,t.toDisplayString(_.orgposRemark),1)])]),lc])}),128))])])])])]),_:1}),t.createVNode(zu,{align:"right"},{default:t.withCtx(()=>[t.createElementVNode("div",ac,[t.createVNode(ge,{size:"small",onClick:k,"text-color":"grey-6",unelevated:"",outline:"",class:"preview-btn"},{default:t.withCtx(()=>[t.createTextVNode(" \u53D6 \u6D88 ")]),_:1}),t.createVNode(ge,{size:"small",onClick:u,color:"primary",class:"q-ml-md save-btn",unelevated:""},{default:t.withCtx(()=>[t.createTextVNode(" \u786E \u8BA4 ")]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},mf="",ic={key:0,class:"setting-tab"},sc={class:"q-mb-sm"},uc=t.createElementVNode("div",{class:"text-h6 q-pb-sm"},"\u5BA1\u6279\u8282\u70B9",-1),cc=t.createElementVNode("div",{class:"text-h6"},"\u4E3B\u5BA1\u4EBA\u76F8\u5173\u9009\u9879",-1),dc=t.createElementVNode("span",{class:"q-pr-sm text-h6"},"\u4E3B\u5BA1\u4EBA",-1),fc={class:"iconfont icon-yiwen"},mc=t.createElementVNode("div",{style:{width:"140px"}}," \u4E3B\u529E\u4EBA\u662F\u67D0\u6B65\u9AA4\u7684\u8D1F\u8D23\u4EBA\uFF0C\u53EA\u5141\u8BB8\u4E3B\u529E\u4EBA\u7F16\u8F91\u8868\u5355\u3001\u516C\u5171\u9644\u4EF6\u548C\u8F6C\u4EA4\u6D41\u7A0B ",-1),hc={style:{display:"flex"}},pc=t.createElementVNode("span",{class:"q-pr-sm text-h6"},"\u7ECF\u5BA1\u4EBA",-1),gc={class:"iconfont icon-yiwen"},vc=t.createElementVNode("div",{style:{width:"140px"}}," \u4E3B\u529E\u4EBA\u662F\u67D0\u6B65\u9AA4\u7684\u8D1F\u8D23\u4EBA\uFF0C\u53EA\u5141\u8BB8\u4E3B\u529E\u4EBA\u7F16\u8F91\u8868\u5355\u3001\u516C\u5171\u9644\u4EF6\u548C\u8F6C\u4EA4\u6D41\u7A0B ",-1),bc={class:"q-pt-sm"},yc={class:"user-list"},wc={class:"self-center full-width no-outline",tabindex:"0"},xc={style:{padding:"16px 0"}},_c=t.createElementVNode("div",{class:"text-h6"},"\u662F\u5426\u5141\u8BB8\u4FEE\u6539\u4E3B\u5BA1\u4EBA\u76F8\u5173\u9009\u9879",-1),kc=t.createElementVNode("span",{class:"q-pr-sm text-h6"},"\u5BA1\u6279\u4EBA\u8303\u56F4",-1),Cc={class:"iconfont icon-yiwen"},Vc=t.createElementVNode("div",{style:{width:"140px"}}," \u4E3B\u529E\u4EBA\u662F\u67D0\u6B65\u9AA4\u7684\u8D1F\u8D23\u4EBA\uFF0C\u53EA\u5141\u8BB8\u4E3B\u529E\u4EBA\u7F16\u8F91\u8868\u5355\u3001\u516C\u5171\u9644\u4EF6\u548C\u8F6C\u4EA4\u6D41\u7A0B ",-1),Sc=t.createElementVNode("div",{class:"text-h6"},"\u5BA1\u6279\u65B9\u5F0F",-1),Nc={style:{display:"flex","flex-direction":"column"}},qc={style:{display:"flex","align-items":"center"}},Ec=t.createElementVNode("span",{class:"text-h6 q-pr-sm"},"\u662F\u5426\u5141\u8BB8\u9000\u56DE",-1),Bc={class:"iconfont icon-yiwen"},Tc=t.createElementVNode("div",{style:{width:"140px"}}," \u4E3B\u529E\u4EBA\u662F\u67D0\u6B65\u9AA4\u7684\u8D1F\u8D23\u4EBA\uFF0C\u53EA\u5141\u8BB8\u4E3B\u529E\u4EBA\u7F16\u8F91\u8868\u5355\u3001\u516C\u5171\u9644\u4EF6\u548C\u8F6C\u4EA4\u6D41\u7A0B ",-1),Rc={class:"q-mt-sm"},$c=t.createElementVNode("div",{class:"text-h6"},"\u662F\u5426\u91CD\u65B0\u8D70\u6D41\u7A0B",-1),Lc=t.createElementVNode("div",{class:"text-h6"},"Alarms",-1),Pc=t.createElementVNode("div",{class:"text-h6"},"Movies",-1),Mc={key:1,class:"setting-tab"},Ac={class:"q-pt-sm"},Ic=t.createElementVNode("div",{class:"text-h6"},"\u8C01\u53EF\u4EE5\u53D1\u8D77\u6D41\u7A0B",-1),Oc={class:"q-pt-sm"},zc={class:"user-list"},Fc={key:0,class:"self-center full-width no-outline",tabindex:"0"},Dc={class:"row items-center"},Uc={key:0,class:"q-mr-sm",style:{display:"flex",height:"26px",width:"26px"}},Hc=["src"],jc={key:1,class:"q-mr-sm row justify-center",style:{"border-radius":"6px","font-size":"16px",height:"26px",width:"26px",background:"rgb(238, 237, 237)","line-height":"26px",overflow:"hidden"}},po={__name:"basicSettingsTab",props:{settingType:{type:String,default:()=>""},permission:{type:Object,default:()=>{}},userList:{type:Array,default:()=>{}}},emits:["update:permission","update:userList"],setup(e,{emit:n}){const o=e,l=t.ref([]);t.onMounted(async()=>{let{data:S,success:w}=await Iu({});w&&(S.records.forEach(N=>{N.headUrlContent=JSON.parse(N.headUrl)}),l.value=S.records,console.log("aaa",l.value)),B()});const a=t.ref();let r=t.computed({get:()=>o.permission,set:S=>n("update:permission",S)});const i=t.ref("mails"),s=t.reactive([{label:"\u660E\u786E\u6307\u5B9A\u4E3B\u5BA1\u4EBA",value:"mails"},{label:"\u65E0\u4E3B\u5BA1\u4EBA\u4F1A\u7B7E",value:"alarms"},{label:"\u5148\u63A5\u6536\u8005\u4E3A\u4E3B\u5BA1\u4EBA",value:"movies"}]),d=t.reactive([{label:"\u53D1\u8D77\u4EBA\u4E0A\u7EA7\u4E3B\u7BA1",value:"0"},{label:"\u53D1\u8D77\u4EBA\u4E0A\u7EA7\u4E3B\u7BA1\u9886\u5BFC",value:"1"},{label:"\u53D1\u8D77\u4EBA",value:"2"}]),f=t.ref("0"),c=t.ref("mails"),g=t.reactive([{label:"\u6307\u5B9A\u6210\u5458",value:"mails"},{label:"\u8868\u5355\u53D8\u91CF",value:"alarms"}]),h=t.ref("mails"),u=t.reactive([{label:"\u5141\u8BB8",value:"mails"},{label:"\u4E0D\u5141\u8BB8",value:"alarms"}]),k=t.reactive([{label:"\u65E0\u53D1\u8D77\u4EBA\u8303\u56F4",value:"0"},{label:"\u540C\u4E00\u516C\u53F8",value:"1"},{label:"\u540C\u4E00\u90E8\u95E8",value:"2"},{label:"\u53D1\u8D77\u4EBA\u4E0A\u7EA7",value:"3"},{label:"\u53D1\u8D77\u4EBA\u4E0B\u5C5E",value:"4"}]),q=t.ref("0"),v=t.reactive([{label:"\u6D41\u7A0B\u53D1\u8D77",value:"0"},{label:"\u4E0A\u4E00\u4E2A\u6B65\u9AA4\u4E3B\u529E\u8282\u70B9",value:"1"},{label:"\u81EA\u9009\u4E3B\u529E\u8282\u70B9",value:"2"}]),_=t.ref("0"),p=t.reactive([{label:"\u6216\u7B7E\uFF08\u4E00\u540D\u5BA1\u6279\u4EBA\u540C\u610F\u6216\u9000\u56DE\u5373\u53EF\uFF09",value:"0"},{label:"\u4F1A\u7B7E\uFF08\u65E0\u5E8F\u4F1A\u7B7E\uFF0C\u5F53\u5BA1\u6279\u8FBE\u5230\u4F1A\u7B7E\u6BD4\u4F8B\u65F6\uFF0C\u5219\u8BE5\u5BA1\u6279\u901A\u8FC7\uFF09",value:"1"},{label:"\u4F9D\u6B21\u5BA1\u6279\uFF08\u6309\u987A\u5E8F\u4F9D\u6B21\u5BA1\u6279\uFF09",value:"2"}]);let b=t.ref("");const x=t.ref("0"),V=t.reactive([{label:"\u9ED8\u8BA4",value:"0"},{label:"\u81EA\u5B9A\u4E49",value:"1"}]),y=t.computed({get:()=>o.userList,set:S=>n("update:userList",S)}),E=t.ref(!1),B=()=>{console.log(r.value),o.settingType=="handled"&&(b.value=r.value.multiInsLoop?r.value.multiInsLoop.sequential==!0?"2":r.value.multiInsLoop.completionCondition.textContent=="${nrOfCompletedInstances == 1}"?"0":"1":"")},L=S=>{y.value.splice(S,1)},I=S=>{switch(S){case"0":r.value.multiInsLoop.sequential=!1,r.value.multiInsLoop;case"1":r.value.multiInsLoop.sequential=!1,r.value.multiInsLoop.completionCondition.textContent="${nrOfCompletedInstances > 1}";break;case"2":r.value.multiInsLoop.sequential=!0;break}},C=()=>{a.value.reassignData(),E.value=!0};return(S,w)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.settingType=="handled"?(t.openBlock(),t.createElementBlock("div",ic,[t.createElementVNode("div",sc,[uc,t.createElementVNode("div",null,[t.createVNode(tt,{outlined:"",modelValue:S.model,"onUpdate:modelValue":w[0]||(w[0]=N=>S.model=N),options:S.options,dense:S.dense,"options-dense":S.denseOpts,"input-style":{height:"40px"},class:"drawer-tab-select"},null,8,["modelValue","options","dense","options-dense"])])]),t.createElementVNode("div",null,[cc,t.createElementVNode("div",null,[t.createVNode(Lt,{modelValue:i.value,"onUpdate:modelValue":w[1]||(w[1]=N=>i.value=N),inline:"",options:s},null,8,["modelValue","options"]),t.createVNode(Ze,{modelValue:i.value,"onUpdate:modelValue":w[17]||(w[17]=N=>i.value=N),animated:""},{default:t.withCtx(()=>[t.createVNode(de,{name:"mails"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("div",null,[dc,t.createElementVNode("i",fc,[t.createVNode(Pt,{anchor:"center right",self:"center left",offset:[10,10]},{default:t.withCtx(()=>[mc]),_:1})])]),t.createElementVNode("div",null,[t.createVNode(Lt,{modelValue:c.value,"onUpdate:modelValue":w[2]||(w[2]=N=>c.value=N),inline:"",options:g},null,8,["modelValue","options"])]),t.createElementVNode("div",null,[t.createVNode(Ze,{modelValue:c.value,"onUpdate:modelValue":w[6]||(w[6]=N=>c.value=N),animated:""},{default:t.withCtx(()=>[t.createVNode(de,{name:"mails"},{default:t.withCtx(()=>[t.createVNode(tt,{outlined:"",modelValue:f.value,"onUpdate:modelValue":w[3]||(w[3]=N=>f.value=N),options:d,"emit-value":"","map-options":"",class:"drawer-tab-select"},null,8,["modelValue","options"])]),_:1}),t.createVNode(de,{name:"alarms"},{default:t.withCtx(()=>[t.createElementVNode("div",hc,[t.createVNode(tt,{style:{width:"140px"},outlined:"",modelValue:S.model,"onUpdate:modelValue":w[4]||(w[4]=N=>S.model=N),options:S.options,class:"drawer-tab-select"},null,8,["modelValue","options"]),t.createVNode(tt,{style:{flex:"1"},outlined:"",modelValue:S.model,"onUpdate:modelValue":w[5]||(w[5]=N=>S.model=N),options:S.options,class:"drawer-tab-select"},null,8,["modelValue","options"])])]),_:1})]),_:1},8,["modelValue"])]),t.createElementVNode("div",null,[pc,t.createElementVNode("i",gc,[t.createVNode(Pt,{anchor:"center right",self:"center left",offset:[10,10]},{default:t.withCtx(()=>[vc]),_:1})])]),t.createElementVNode("div",null,[t.createElementVNode("div",bc,[t.createVNode(ge,{color:"grey-1","text-color":"grey-9",icon:"add",label:"\u6DFB\u52A0\u7528\u6237"}),t.createElementVNode("div",yc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(y),(N,$)=>(t.openBlock(),t.createBlock(jn,{key:$,outlined:"",dense:S.dense,class:"q-mt-sm q-mr-sm"},{control:t.withCtx(()=>[t.createElementVNode("div",wc,t.toDisplayString(N),1)]),append:t.withCtx(()=>[t.createVNode(me,{name:"close",class:"cursor-pointer",onClick:D=>L($)},null,8,["onClick"])]),_:2},1032,["dense"]))),128))])])]),t.createElementVNode("div",xc,[_c,t.createVNode(Lt,{modelValue:h.value,"onUpdate:modelValue":w[7]||(w[7]=N=>h.value=N),inline:"",options:u},null,8,["modelValue","options"]),t.createVNode(Ze,{modelValue:h.value,"onUpdate:modelValue":w[9]||(w[9]=N=>h.value=N),animated:""},{default:t.withCtx(()=>[t.createVNode(de,{name:"mails"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[kc,t.createElementVNode("i",Cc,[t.createVNode(Pt,{anchor:"center right",self:"center left",offset:[10,10]},{default:t.withCtx(()=>[Vc]),_:1})])]),t.createVNode(tt,{outlined:"",modelValue:q.value,"onUpdate:modelValue":w[8]||(w[8]=N=>q.value=N),options:k,"input-style":{height:"40px"},class:"drawer-tab-select","emit-value":"","map-options":""},null,8,["modelValue","options"])]),_:1})]),_:1},8,["modelValue"])]),t.createElementVNode("div",null,[Sc,t.createElementVNode("div",Nc,[t.createVNode(Lt,{modelValue:t.unref(b),"onUpdate:modelValue":[w[10]||(w[10]=N=>t.isRef(b)?b.value=N:b=N),I],options:p},null,8,["modelValue","options"])])]),t.createElementVNode("div",null,[t.createElementVNode("div",qc,[Ec,t.createElementVNode("i",Bc,[t.createVNode(Pt,{anchor:"center right",self:"center left",offset:[10,10]},{default:t.withCtx(()=>[Tc]),_:1})])]),t.createElementVNode("div",null,[t.createVNode(Ie,{name:"shape",modelValue:S.shape,"onUpdate:modelValue":w[11]||(w[11]=N=>S.shape=N),val:"line",label:"\u91CD\u65B0\u5BA1\u6279"},null,8,["modelValue"]),t.createVNode(Ie,{name:"shape",modelValue:S.shape,"onUpdate:modelValue":w[12]||(w[12]=N=>S.shape=N),val:"line",label:"\u4ECE\u8282\u70B9\u5BA1\u6279"},null,8,["modelValue"]),t.createVNode(Ie,{name:"shape",modelValue:S.shape,"onUpdate:modelValue":w[13]||(w[13]=N=>S.shape=N),val:"line",label:"\u4E0D\u5141\u8BB8\u9000\u56DE"},null,8,["modelValue"])]),t.createElementVNode("div",null,[t.createVNode(tt,{outlined:"",modelValue:_.value,"onUpdate:modelValue":w[14]||(w[14]=N=>_.value=N),options:v,class:"drawer-tab-select","emit-value":"","map-options":""},null,8,["modelValue","options"])])]),t.createElementVNode("div",Rc,[$c,t.createElementVNode("div",null,[t.createVNode(Ie,{name:"shape",modelValue:S.shape,"onUpdate:modelValue":w[15]||(w[15]=N=>S.shape=N),val:"line",label:"\u662F"},null,8,["modelValue"]),t.createVNode(Ie,{name:"shape",modelValue:S.shape,"onUpdate:modelValue":w[16]||(w[16]=N=>S.shape=N),val:"line",label:"\u5426"},null,8,["modelValue"])])])])]),_:1}),t.createVNode(de,{name:"alarms"},{default:t.withCtx(()=>[Lc,t.createTextVNode(" Lorem ipsum dolor sit amet consectetur adipisicing elit. ")]),_:1}),t.createVNode(de,{name:"movies"},{default:t.withCtx(()=>[Pc,t.createTextVNode(" Lorem ipsum dolor sit amet consectetur adipisicing elit. ")]),_:1})]),_:1},8,["modelValue"])])])])):t.createCommentVNode("",!0),e.settingType=="launch"?(t.openBlock(),t.createElementBlock("div",Mc,[t.createElementVNode("div",Ac,[Ic,t.createVNode(Lt,{modelValue:x.value,"onUpdate:modelValue":w[18]||(w[18]=N=>x.value=N),inline:"",options:V},null,8,["modelValue","options"]),t.createVNode(Ze,{modelValue:x.value,"onUpdate:modelValue":w[19]||(w[19]=N=>x.value=N),animated:""},{default:t.withCtx(()=>[t.createVNode(de,{name:"1"},{default:t.withCtx(()=>[t.createElementVNode("div",Oc,[t.createVNode(ge,{color:"grey-1","text-color":"grey-9",icon:"add",label:"\u6DFB\u52A0\u7528\u6237",onClick:C}),t.createElementVNode("div",zc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(y),(N,$)=>(t.openBlock(),t.createBlock(jn,{key:$,outlined:"",dense:S.dense,class:"q-mt-sm q-mr-sm"},{control:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(D,T)=>{var J;return t.openBlock(),t.createElementBlock(t.Fragment,{key:T},[D.uid==N?(t.openBlock(),t.createElementBlock("div",Fc,[t.createElementVNode("div",Dc,[D.headUrlContent?(t.openBlock(),t.createElementBlock("div",Uc,[t.createElementVNode("img",{src:(J=D==null?void 0:D.headUrlContent[0])==null?void 0:J.filePath,style:{width:"100%"},alt:""},null,8,Hc)])):(t.openBlock(),t.createElementBlock("div",jc,[t.createElementVNode("span",null,t.toDisplayString(D.name),1)])),t.createElementVNode("div",null,[t.createElementVNode("div",null,t.toDisplayString(D.name),1)])])])):t.createCommentVNode("",!0)],64)}),128))]),append:t.withCtx(()=>[t.createVNode(me,{name:"close",class:"cursor-pointer",onClick:D=>L($)},null,8,["onClick"])]),_:2},1032,["dense"]))),128))])])]),_:1})]),_:1},8,["modelValue"])])])):t.createCommentVNode("",!0),t.createVNode(rc,{ref_key:"sponsorModalRef",ref:a,visible:E.value,"onUpdate:visible":w[20]||(w[20]=N=>E.value=N),userList:t.unref(y),"onUpdate:userList":w[21]||(w[21]=N=>t.isRef(y)?y.value=N:null),userListContent:l.value,"onUpdate:userListContent":w[22]||(w[22]=N=>l.value=N)},null,8,["visible","userList","userListContent"])],64))}},Wc={class:"setting-tab"},Qc={class:"q-mb-md"},Kc=t.createElementVNode("div",{class:"text-h6 q-pb-sm"},"\u6284\u9001\u8BBE\u7F6E",-1),Xc={class:"q-pt-sm"},Jc={class:"q-mb-md"},Zc=t.createElementVNode("span",{class:"q-pr-sm text-h6"},"\u6284\u9001\u4EBA\u8303\u56F4",-1),Yc={class:"iconfont icon-yiwen"},Gc=t.createElementVNode("div",{style:{width:"140px"}}," \u6284\u9001\u4EBA\u5458\u589E\u52A0\u4EBA\u5458\u9009\u62E9\u8303\u56F4\u9644\u52A0\u6761\u4EF6 ",-1),ed={class:"q-pt-sm"},td={class:"q-mb-md"},nd=t.createElementVNode("div",{class:"text-h6 q-pb-sm"},"\u63D0\u9192\u5F00\u542F\u72B6\u6001",-1),od={class:"q-pt-sm"},ld={class:"row"},ad=t.createElementVNode("div",{class:"q-mr-sm"},"\u4E0B\u4E00\u6B65\u9AA4",-1),rd={class:"q-gutter-sm"},id=t.createElementVNode("div",null,"111",-1),go={__name:"ccReminderTab",setup(e){const n=t.reactive([{label:"\u65E0\u6284\u9001\u4EBA\u8303\u56F4",value:"0"},{label:"\u540C\u4E00\u516C\u53F8",value:"1"},{label:"\u540C\u4E00\u90E8\u95E8",value:"2"},{label:"\u540C\u4E00\u5C97\u4F4D",value:"3"},{label:"\u53D1\u8D77\u4EBA\u4E0A\u7EA7",value:"4"},{label:"\u53D1\u8D77\u4EBA\u4E0B\u5C5E",value:"5"}]),o=t.ref("0");return(l,a)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Wc,[t.createElementVNode("div",Qc,[Kc,t.createElementVNode("div",Xc,[t.createVNode(ge,{color:"grey-1","text-color":"grey-9",icon:"add",label:"\u6DFB\u52A0\u7528\u6237"})])]),t.createElementVNode("div",Jc,[t.createElementVNode("div",null,[Zc,t.createElementVNode("i",Yc,[t.createVNode(Pt,{anchor:"center right",self:"center left",offset:[10,10]},{default:t.withCtx(()=>[Gc]),_:1})])]),t.createElementVNode("div",ed,[t.createVNode(tt,{outlined:"",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=r=>o.value=r),options:n,class:"drawer-tab-select","emit-value":"","map-options":""},null,8,["modelValue","options"])])]),t.createElementVNode("div",td,[nd,t.createElementVNode("div",od,[t.createElementVNode("div",ld,[ad,t.createElementVNode("div",rd,[t.createVNode(Ie,{dense:"","left-label":"",modelValue:l.shape,"onUpdate:modelValue":a[1]||(a[1]=r=>l.shape=r),val:"line"},{default:t.withCtx(()=>[id]),_:1},8,["modelValue"]),t.createVNode(Ie,{dense:"","left-label":"",modelValue:l.shape,"onUpdate:modelValue":a[2]||(a[2]=r=>l.shape=r),val:"rectangle",label:"Rectangle"},null,8,["modelValue"]),t.createVNode(Ie,{dense:"","left-label":"",modelValue:l.shape,"onUpdate:modelValue":a[3]||(a[3]=r=>l.shape=r),val:"ellipse",label:"Ellipse"},null,8,["modelValue"])])])])])])]))}},sd={};function ud(e,n){return t.openBlock(),t.createElementBlock("div",null," f ")}const vo=Ut(sd,[["render",ud]]),cd={},dd=[t.createElementVNode("div",null,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"text-h6 q-pb-sm"},"\u8F6C\u5165\u6761\u4EF6\u5217\u8868")])],-1)];function fd(e,n){return t.openBlock(),t.createElementBlock("div",null,dd)}const vn=Ut(cd,[["render",fd]]),md={};function hd(e,n){return t.openBlock(),t.createElementBlock("div",null," m ")}const bo=Ut(md,[["render",hd]]),pf="",pd={key:0,class:"q-pa-md text-h6"},gd={key:1},vd={class:"row justify-end"},bd={key:0},yd={__name:"launchDrawer",setup(e){let{launchDrawer:n,launchPermission:o,adaptation:l}=je.storeToRefs(Ee()),{setLaunch:a,setLaunchPermission:r}=Ee(),i=t.computed({get(){return l.value}}),s=t.ref({}),d=t.ref("basicSettings"),f=t.ref(null);const c=t.ref(!1),g=t.ref([]);let h=t.computed({get(){return n.value},set(){k()}});t.watch(o,_=>{s.value=_.value,_.value.assignee&&(g.value=_.value.assignee.split(",")),console.log("flowPermission.value",s.value,g.value)});const u=()=>{s.value.assignee=g.value.toString(),r({value:s.value,flag:!0,id:o.value.id}),k()},k=()=>{o.value.assignee?g.value=o.value.assignee.split(","):g.value=[],a(!1),d.value="basicSettings"},q=()=>{c.value=!0,setTimeout(()=>{var _;(_=f.value)==null||_.focus()},100)},v=()=>{c.value=!1};return(_,p)=>(t.openBlock(),t.createBlock(ft,{modelValue:t.unref(h),"onUpdate:modelValue":p[5]||(p[5]=b=>t.isRef(h)?h.value=b:h=b),position:t.unref(i),class:"drawer-dialog"},{default:t.withCtx(()=>[t.createVNode(Ct,{view:"lHh lpr lFf",style:{height:"100%",width:"400px"},container:"",class:"shadow-2 rounded-borders"},{default:t.withCtx(()=>[t.createVNode(Gt,{class:"bg-white text-black border-b-black",bordered:""},{default:t.withCtx(()=>[c.value?(t.openBlock(),t.createElementBlock("div",gd,[t.createVNode(Nt,{ref_key:"nodeNameInput",ref:f,outlined:"",modelValue:t.unref(s).nodeName,"onUpdate:modelValue":p[0]||(p[0]=b=>t.unref(s).nodeName=b),onBlur:v},null,8,["modelValue"])])):(t.openBlock(),t.createElementBlock("div",pd,[t.createElementVNode("span",null,t.toDisplayString(t.unref(s).nodeName),1),t.createElementVNode("i",{onClick:q,class:"q-ml-sm iconfont icon-bianjitubiao",style:{cursor:"pointer"}})]))]),_:1}),t.createVNode(en,{class:"bg-white text-black q-pa-sm",bordered:""},{default:t.withCtx(()=>[t.createElementVNode("div",vd,[t.createVNode(ge,{color:"white","text-color":"black",onClick:k,class:"q-mr-sm"},{default:t.withCtx(()=>[t.createTextVNode("\u53D6 \u6D88")]),_:1}),t.createVNode(ge,{color:"primary",onClick:u},{default:t.withCtx(()=>[t.createTextVNode("\u786E \u5B9A")]),_:1})])]),_:1}),t.unref(h)?(t.openBlock(),t.createElementBlock("div",bd,[t.createVNode(kt,{class:"bg-white"},{default:t.withCtx(()=>[t.createVNode(on,null,{default:t.withCtx(()=>[t.createVNode(An,{modelValue:t.unref(d),"onUpdate:modelValue":p[1]||(p[1]=b=>t.isRef(d)?d.value=b:d=b),"narrow-indicator":"",dense:"",align:"justify",class:"text-black"},{default:t.withCtx(()=>[t.createVNode(ke,{ripple:!1,name:"basicSettings",label:"\u57FA\u7840\u8BBE\u7F6E"}),t.createVNode(ke,{ripple:!1,name:"formPermissions",label:"\u6570\u636E\u6743\u9650"}),t.createVNode(ke,{ripple:!1,name:"moreSettings",label:"\u64CD\u4F5C\u8BBE\u7F6E"}),t.createVNode(ke,{ripple:!1,name:"approvalCriteria",label:"\u53D1\u8D77\u6761\u4EF6"})]),_:1},8,["modelValue"]),t.createVNode(Ze,{modelValue:t.unref(d),"onUpdate:modelValue":p[4]||(p[4]=b=>t.isRef(d)?d.value=b:d=b),"keep-alive":"",animated:""},{default:t.withCtx(()=>[t.createVNode(de,{name:"basicSettings"},{default:t.withCtx(()=>[t.createVNode(po,{settingType:"launch",permission:t.unref(s),"onUpdate:permission":p[2]||(p[2]=b=>t.isRef(s)?s.value=b:s=b),userList:g.value,"onUpdate:userList":p[3]||(p[3]=b=>g.value=b)},null,8,["permission","userList"])]),_:1}),t.createVNode(de,{name:"ccReminder"},{default:t.withCtx(()=>[t.createVNode(go)]),_:1}),t.createVNode(de,{name:"formPermissions"},{default:t.withCtx(()=>[t.createVNode(vo)]),_:1}),t.createVNode(de,{name:"approvalCriteria"},{default:t.withCtx(()=>[t.createVNode(vn)]),_:1}),t.createVNode(de,{name:"moreSettings"},{default:t.withCtx(()=>[t.createVNode(bo)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})])):t.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","position"]))}},gf="",wd={key:0,class:"q-pa-md text-h6"},xd={key:1},_d={class:"row justify-end"},kd={key:0},Cd={__name:"handledByDrawer",emits:["update:nodeConfig"],setup(e,{emit:n}){let{setHandledByPermission:o,setHandledBy:l}=Ee(),{handledByPermission:a,handledByDrawer:r,adaptation:i}=je.storeToRefs(Ee()),s=t.computed({get(){return i.value}}),d=t.ref("basicSettings"),f=t.ref({});const c=t.ref(!1);let g=t.ref(null),h=t.computed({get(){return r.value},set(){v()}});t.watch(a,_=>{f.value=_.value,console.log("handledByPermissionData",f.value)});const u=()=>{c.value=!0,setTimeout(()=>{var _;(_=g.value)==null||_.focus()},100)},k=()=>{c.value=!1},q=()=>{o({value:f.value,flag:!0,id:a.value.id}),n("update:nodeConfig",f.value),v()},v=()=>{l(!1)};return(_,p)=>{const b=po,x=go,V=vo,y=vn,E=bo;return t.openBlock(),t.createBlock(ft,{modelValue:t.unref(h),"onUpdate:modelValue":p[4]||(p[4]=B=>t.isRef(h)?h.value=B:h=B),position:t.unref(s),class:"drawer-dialog"},{default:t.withCtx(()=>[t.createVNode(Ct,{view:"lHh lpr lFf",container:"",style:{height:"100%",width:"400px"},class:"shadow-2 rounded-borders"},{default:t.withCtx(()=>[t.createVNode(Gt,{class:"bg-white text-black border-b-black",bordered:""},{default:t.withCtx(()=>[c.value?(t.openBlock(),t.createElementBlock("div",xd,[t.createVNode(Nt,{ref_key:"nodeNameInput",ref:g,outlined:"",modelValue:t.unref(f).nodeName,"onUpdate:modelValue":p[0]||(p[0]=B=>t.unref(f).nodeName=B),onBlur:k},null,8,["modelValue"])])):(t.openBlock(),t.createElementBlock("div",wd,[t.createElementVNode("span",null,t.toDisplayString(t.unref(f).nodeName),1),t.createElementVNode("i",{onClick:u,class:"q-ml-sm iconfont icon-bianjitubiao",style:{cursor:"pointer"}})]))]),_:1}),t.createVNode(en,{class:"bg-white text-black q-pa-sm",bordered:""},{default:t.withCtx(()=>[t.createElementVNode("div",_d,[t.createVNode(ge,{color:"white","text-color":"black",onClick:v,class:"q-mr-sm"},{default:t.withCtx(()=>[t.createTextVNode("\u53D6 \u6D88")]),_:1}),t.createVNode(ge,{color:"primary",onClick:q},{default:t.withCtx(()=>[t.createTextVNode("\u786E \u5B9A")]),_:1})])]),_:1}),t.unref(h)?(t.openBlock(),t.createElementBlock("div",kd,[t.createVNode(kt,{class:"bg-white"},{default:t.withCtx(()=>[t.createVNode(on,null,{default:t.withCtx(()=>[t.createVNode(An,{modelValue:t.unref(d),"onUpdate:modelValue":p[1]||(p[1]=B=>t.isRef(d)?d.value=B:d=B),"narrow-indicator":"",dense:"",align:"justify",class:"text-black"},{default:t.withCtx(()=>[t.createVNode(ke,{ripple:!1,name:"basicSettings",label:"\u57FA\u7840\u8BBE\u7F6E"}),t.createVNode(ke,{ripple:!1,name:"ccReminder",label:"\u6284\u9001\u4E0E\u63D0\u9192"}),t.createVNode(ke,{ripple:!1,name:"formPermissions",label:"\u8868\u5355\u6743\u9650"}),t.createVNode(ke,{ripple:!1,name:"approvalCriteria",label:"\u5BA1\u6279\u6761\u4EF6"}),t.createVNode(ke,{ripple:!1,name:"moreSettings",label:"\u66F4\u591A\u8BBE\u7F6E"})]),_:1},8,["modelValue"]),t.createVNode(Ze,{modelValue:t.unref(d),"onUpdate:modelValue":p[3]||(p[3]=B=>t.isRef(d)?d.value=B:d=B),"keep-alive":"",animated:""},{default:t.withCtx(()=>[t.createVNode(de,{name:"basicSettings"},{default:t.withCtx(()=>[t.createVNode(b,{settingType:"handled",permission:t.unref(f),"onUpdate:permission":p[2]||(p[2]=B=>t.isRef(f)?f.value=B:f=B)},null,8,["permission"])]),_:1}),t.createVNode(de,{name:"ccReminder"},{default:t.withCtx(()=>[t.createVNode(x)]),_:1}),t.createVNode(de,{name:"formPermissions"},{default:t.withCtx(()=>[t.createVNode(V)]),_:1}),t.createVNode(de,{name:"approvalCriteria"},{default:t.withCtx(()=>[t.createVNode(y)]),_:1}),t.createVNode(de,{name:"moreSettings"},{default:t.withCtx(()=>[t.createVNode(E)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})])):t.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","position"])}}},vf="",Vd={key:0,class:"q-pa-md text-h6"},Sd={key:1},Nd={class:"row justify-end"},qd={key:0},Ed={__name:"approverDrawer",emits:["update:nodeConfig"],setup(e,{emit:n}){let{approverPermission:o,approverDrawer:l,adaptation:a}=je.storeToRefs(Ee()),{setApproverPermission:r,setApprover:i}=Ee(),s=t.computed({get(){return a.value}}),d=t.ref("basicSettings"),f=t.ref({});const c=t.ref(!1);let g=t.ref(null),h=t.computed({get(){return l.value},set(){v()}});t.watch(o,_=>{f.value=_.value,console.log("approverPermissionData",f.value)});const u=()=>{c.value=!0,setTimeout(()=>{var _;(_=g.value)==null||_.focus()},100)},k=()=>{c.value=!1},q=()=>{r({value:f.value,flag:!0,id:o.value.id}),n("update:nodeConfig",f.value),v()},v=()=>{i(!1)};return(_,p)=>{const b=po,x=go,V=vo,y=vn,E=bo;return t.openBlock(),t.createBlock(ft,{modelValue:t.unref(h),"onUpdate:modelValue":p[4]||(p[4]=B=>t.isRef(h)?h.value=B:h=B),position:t.unref(s),class:"drawer-dialog"},{default:t.withCtx(()=>[t.createVNode(Ct,{view:"lHh lpr lFf",container:"",style:{height:"100%",width:"400px"},class:"shadow-2 rounded-borders"},{default:t.withCtx(()=>[t.createVNode(Gt,{class:"bg-white text-black border-b-black",bordered:""},{default:t.withCtx(()=>[c.value?(t.openBlock(),t.createElementBlock("div",Sd,[t.createVNode(Nt,{ref_key:"nodeNameInput",ref:g,outlined:"",modelValue:t.unref(f).nodeName,"onUpdate:modelValue":p[0]||(p[0]=B=>t.unref(f).nodeName=B),onBlur:k},null,8,["modelValue"])])):(t.openBlock(),t.createElementBlock("div",Vd,[t.createElementVNode("span",null,t.toDisplayString(t.unref(f).nodeName),1),t.createElementVNode("i",{onClick:u,class:"q-ml-sm iconfont icon-bianjitubiao",style:{cursor:"pointer"}})]))]),_:1}),t.createVNode(en,{class:"bg-white text-black q-pa-sm",bordered:""},{default:t.withCtx(()=>[t.createElementVNode("div",Nd,[t.createVNode(ge,{color:"white","text-color":"black",onClick:v,class:"q-mr-sm"},{default:t.withCtx(()=>[t.createTextVNode("\u53D6 \u6D88")]),_:1}),t.createVNode(ge,{color:"primary",onClick:q},{default:t.withCtx(()=>[t.createTextVNode("\u786E \u5B9A")]),_:1})])]),_:1}),t.unref(h)?(t.openBlock(),t.createElementBlock("div",qd,[t.createVNode(kt,{class:"bg-white"},{default:t.withCtx(()=>[t.createVNode(on,null,{default:t.withCtx(()=>[t.createVNode(An,{modelValue:t.unref(d),"onUpdate:modelValue":p[1]||(p[1]=B=>t.isRef(d)?d.value=B:d=B),"narrow-indicator":"",dense:"",align:"justify",class:"text-black"},{default:t.withCtx(()=>[t.createVNode(ke,{ripple:!1,name:"basicSettings",label:"\u57FA\u7840\u8BBE\u7F6E"}),t.createVNode(ke,{ripple:!1,name:"ccReminder",label:"\u6284\u9001\u4E0E\u63D0\u9192"}),t.createVNode(ke,{ripple:!1,name:"formPermissions",label:"\u8868\u5355\u6743\u9650"}),t.createVNode(ke,{ripple:!1,name:"approvalCriteria",label:"\u5BA1\u6279\u6761\u4EF6"}),t.createVNode(ke,{ripple:!1,name:"moreSettings",label:"\u66F4\u591A\u8BBE\u7F6E"})]),_:1},8,["modelValue"]),t.createVNode(Ze,{modelValue:t.unref(d),"onUpdate:modelValue":p[3]||(p[3]=B=>t.isRef(d)?d.value=B:d=B),"keep-alive":"",animated:""},{default:t.withCtx(()=>[t.createVNode(de,{name:"basicSettings"},{default:t.withCtx(()=>[t.createVNode(b,{settingType:"handled",permission:t.unref(f),"onUpdate:permission":p[2]||(p[2]=B=>t.isRef(f)?f.value=B:f=B)},null,8,["permission"])]),_:1}),t.createVNode(de,{name:"ccReminder"},{default:t.withCtx(()=>[t.createVNode(x)]),_:1}),t.createVNode(de,{name:"formPermissions"},{default:t.withCtx(()=>[t.createVNode(V)]),_:1}),t.createVNode(de,{name:"approvalCriteria"},{default:t.withCtx(()=>[t.createVNode(y)]),_:1}),t.createVNode(de,{name:"moreSettings"},{default:t.withCtx(()=>[t.createVNode(E)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})])):t.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","position"])}}},bf="",Bd={key:0,class:"q-pa-md text-h6"},Td={key:1},Rd={class:"row justify-end"},$d={key:0},Ld={class:"q-ma-sm"},Pd={__name:"conditionDrawer",setup(e){let{conditionsPermission:n,conditionDrawer:o,adaptation:l}=je.storeToRefs(Ee()),{setCondition:a,setConditionsConfig:r}=Ee(),i=t.computed({get(){return l.value}}),s=t.ref({}),d=t.ref({}),f=t.computed({get(){return o.value},set(){g()}});t.watch(n,h=>{s.value=h.value,d.value=s.value.branchNodes[h.priorityLevel]});const c=()=>{g(),r({value:s.value,flag:!0,id:conditionsConfig1.value.id})},g=()=>{a(!1)};return(h,u)=>{const k=vn;return t.openBlock(),t.createBlock(ft,{modelValue:t.unref(f),"onUpdate:modelValue":u[2]||(u[2]=q=>t.isRef(f)?f.value=q:f=q),position:t.unref(i),class:"drawer-dialog"},{default:t.withCtx(()=>[t.createVNode(Ct,{view:"lHh lpr lFf",container:"",style:{height:"100%",width:"400px"},class:"shadow-2 rounded-borders"},{default:t.withCtx(()=>[t.createVNode(Gt,{class:"bg-white text-black border-b-black",bordered:""},{default:t.withCtx(()=>[h.isInput?(t.openBlock(),t.createElementBlock("div",Td,[t.createVNode(Nt,{ref:"nodeNameInput",outlined:"",modelValue:t.unref(d).nodeName,"onUpdate:modelValue":u[1]||(u[1]=q=>t.unref(d).nodeName=q),onBlur:h.blurEvent},null,8,["modelValue","onBlur"])])):(t.openBlock(),t.createElementBlock("div",Bd,[t.createElementVNode("span",null,t.toDisplayString(t.unref(d).nodeName),1),t.createElementVNode("i",{onClick:u[0]||(u[0]=(...q)=>h.clickEvent&&h.clickEvent(...q)),class:"q-ml-sm iconfont icon-bianjitubiao",style:{cursor:"pointer"}})]))]),_:1}),t.createVNode(en,{class:"bg-white text-black q-pa-sm",bordered:""},{default:t.withCtx(()=>[t.createElementVNode("div",Rd,[t.createVNode(ge,{color:"white","text-color":"black",onClick:g,class:"q-mr-sm"},{default:t.withCtx(()=>[t.createTextVNode("\u53D6 \u6D88")]),_:1}),t.createVNode(ge,{color:"primary",onClick:c},{default:t.withCtx(()=>[t.createTextVNode("\u786E \u5B9A")]),_:1})])]),_:1}),t.unref(f)?(t.openBlock(),t.createElementBlock("div",$d,[t.createVNode(kt,{class:"bg-white"},{default:t.withCtx(()=>[t.createVNode(on,null,{default:t.withCtx(()=>[t.createElementVNode("div",Ld,[t.createVNode(k)])]),_:1})]),_:1})])):t.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","position"])}}},yf="",Md={class:"fd-nav-content"},Ad={class:"dingflow-design"},Id={class:"zoom"},Od=t.createElementVNode("div",{class:"end-node"},[t.createElementVNode("div",{class:"end-node-circle"}),t.createElementVNode("div",{class:"end-node-text"},"\u6D41\u7A0B\u7ED3\u675F")],-1),yo=Object.assign({name:"SettingVue"},{props:{processJsonInfo:{type:String,default:()=>""}},setup(e){const n=e,{setAdaptationg:o}=Ee();let l=t.ref(100),a=t.ref({}),r=t.ref({}),i=t.ref("");t.onMounted(async()=>{const f=JSON.parse(n.processJsonInfo);let{processNode:c,process:g}=f;a.value=c,r.value=g,console.log("data",a.value,g)});const s=f=>{if(f==1){if(l.value==50)return;l.value-=10}else{if(l.value==300)return;l.value+=10}},d=f=>{f.width<820?i.value="standard":i.value="right",o(i.value)};return(f,c)=>{const g=mi;return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(Ct,{view:"hHr Lpr lfr",style:{"min-height":"auto"}},{default:t.withCtx(()=>[t.createVNode(kt,null,{default:t.withCtx(()=>[t.createElementVNode("div",Md,[t.createVNode(st,{onResize:d}),t.createElementVNode("section",Ad,[t.createElementVNode("div",Id,[t.createElementVNode("div",{class:t.normalizeClass(["zoom-out",t.unref(l)==50&&"disabled"]),onClick:c[0]||(c[0]=h=>s(1))},null,2),t.createElementVNode("span",null,t.toDisplayString(t.unref(l))+"%",1),t.createElementVNode("div",{class:t.normalizeClass(["zoom-in",t.unref(l)==300&&"disabled"]),onClick:c[1]||(c[1]=h=>s(2))},null,2)]),t.createElementVNode("div",{class:"box-scale",style:t.normalizeStyle(`transform: scale(${t.unref(l)/100});`)},[t.createVNode(g,{processNode:t.unref(a),"onUpdate:processNode":c[2]||(c[2]=h=>t.isRef(a)?a.value=h:a=h)},null,8,["processNode"]),Od],4)])])]),_:1}),t.createVNode(yd),t.createVNode(Cd),t.createVNode(Ed),t.createVNode(Pd)]),_:1})])}}}),zd=[yo],Fd={install(e){zd.forEach(n=>{e.component(n.name,yo)})}};Le.default=Fd,Le.settings=yo,Object.defineProperties(Le,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});