quasar-factory-lib 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/components/{K-Table/K-Table.vue.d.ts → Table/Table.vue.d.ts} +1 -0
  2. package/dist/components/{K-Table → Table}/components/TableFilter.vue.d.ts +1 -0
  3. package/dist/components/{K-Table → Table}/index.d.ts +1 -1
  4. package/dist/components/index.d.ts +1 -1
  5. package/dist/components/plugins.d.ts +1 -1
  6. package/dist/pages/TablePage.vue.d.ts +2 -1
  7. package/dist/quasar-factory-lib.js +8 -9
  8. package/dist/quasar-factory-lib.umd.cjs +1 -1
  9. package/dist/style.css +1 -1
  10. package/package.json +1 -1
  11. package/src/assets/fonts/Beatrice Regular.ttf +0 -0
  12. package/src/assets/fonts/Beatrice-Medium.otf +0 -0
  13. package/src/assets/fonts/Beatrice-Regular.woff2 +0 -0
  14. package/src/assets/fonts/SangBleuKingdom-Light.otf +0 -0
  15. package/src/components/{K-Table → Table}/components/TableFilter.vue +5 -6
  16. package/src/components/{K-Table → Table}/css/tableSlotHeader.css +2 -2
  17. package/src/components/{K-Table → Table}/index.ts +1 -1
  18. package/src/components/index.ts +1 -1
  19. package/src/components/plugins.ts +1 -1
  20. package/src/css/app.css +2 -1
  21. package/src/css/fonts.css +15 -0
  22. package/src/pages/TablePage.vue +6 -6
  23. /package/dist/components/{K-Table → Table}/components/BasicCheckBox.vue.d.ts +0 -0
  24. /package/dist/components/{K-Table → Table}/components/CardListSkeleton.vue.d.ts +0 -0
  25. /package/dist/components/{K-Table → Table}/components/CustomizedButton.vue.d.ts +0 -0
  26. /package/dist/components/{K-Table → Table}/components/CustomizedCheckBox.vue.d.ts +0 -0
  27. /package/dist/components/{K-Table → Table}/components/CustomizedIcon.vue.d.ts +0 -0
  28. /package/dist/components/{K-Table → Table}/components/TableColumnsSelector.vue.d.ts +0 -0
  29. /package/dist/components/{K-Table → Table}/components/TablePopupEdit.vue.d.ts +0 -0
  30. /package/dist/components/{K-Table → Table}/components/TableSkeleton.vue.d.ts +0 -0
  31. /package/dist/components/{K-Table → Table}/components/TableSlotBody.vue.d.ts +0 -0
  32. /package/dist/components/{K-Table → Table}/components/TableSlotGrid.vue.d.ts +0 -0
  33. /package/dist/components/{K-Table → Table}/components/TableSlotHeader.vue.d.ts +0 -0
  34. /package/dist/components/{K-Table → Table}/utils/filterMethod.d.ts +0 -0
  35. /package/dist/components/{K-Table → Table}/utils/infiniteScroll.d.ts +0 -0
  36. /package/dist/components/{K-Table → Table}/utils/setTableHeight.d.ts +0 -0
  37. /package/dist/components/{K-Table → Table}/utils/sort.d.ts +0 -0
  38. /package/src/components/{K-Table/K-Table.vue → Table/Table.vue} +0 -0
  39. /package/src/components/{K-Table → Table}/components/BasicCheckBox.vue +0 -0
  40. /package/src/components/{K-Table → Table}/components/CardListSkeleton.vue +0 -0
  41. /package/src/components/{K-Table → Table}/components/CustomizedButton.vue +0 -0
  42. /package/src/components/{K-Table → Table}/components/CustomizedCheckBox.vue +0 -0
  43. /package/src/components/{K-Table → Table}/components/CustomizedIcon.vue +0 -0
  44. /package/src/components/{K-Table → Table}/components/TableColumnsSelector.vue +0 -0
  45. /package/src/components/{K-Table → Table}/components/TablePopupEdit.vue +0 -0
  46. /package/src/components/{K-Table → Table}/components/TableSkeleton.vue +0 -0
  47. /package/src/components/{K-Table → Table}/components/TableSlotBody.vue +0 -0
  48. /package/src/components/{K-Table → Table}/components/TableSlotGrid.vue +0 -0
  49. /package/src/components/{K-Table → Table}/components/TableSlotHeader.vue +0 -0
  50. /package/src/components/{K-Table → Table}/css/columnsSelector.css +0 -0
  51. /package/src/components/{K-Table → Table}/css/table.css +0 -0
  52. /package/src/components/{K-Table → Table}/css/tableFilter.css +0 -0
  53. /package/src/components/{K-Table → Table}/utils/filterMethod.ts +0 -0
  54. /package/src/components/{K-Table → Table}/utils/infiniteScroll.ts +0 -0
  55. /package/src/components/{K-Table → Table}/utils/setTableHeight.ts +0 -0
  56. /package/src/components/{K-Table → Table}/utils/sort.js +0 -0
@@ -1,4 +1,4 @@
1
- (function(Tt,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(Tt=typeof globalThis<"u"?globalThis:Tt||self,l(Tt.QuasarFactoryLib={},Tt.Vue))})(this,function(Tt,l){"use strict";function st(e,t,n,o){return Object.defineProperty(e,t,{get:n,set:o,enumerable:!0}),e}function Fc(e,t){for(const n in t)st(e,n,t[n]);return e}const Ft=l.ref(!1);let tr;function Mc(e,t){const n=/(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:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function qc(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 Ml="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Uc(e){const t=e.toLowerCase(),n=qc(t),o=Mc(t,n),r={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};o.browser&&(r[o.browser]=!0,r.version=o.version,r.versionNumber=parseInt(o.version,10)),o.platform&&(r[o.platform]=!0);const a=r.android||r.ios||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"];if(a===!0||t.indexOf("mobile")!==-1?r.mobile=!0:r.desktop=!0,r["windows phone"]&&(r.winphone=!0,delete r["windows phone"]),r.edga||r.edgios||r.edg?(r.edge=!0,o.browser="edge"):r.crios?(r.chrome=!0,o.browser="chrome"):r.fxios&&(r.firefox=!0,o.browser="firefox"),(r.ipod||r.ipad||r.iphone)&&(r.ios=!0),r.vivaldi&&(o.browser="vivaldi",r.vivaldi=!0),(r.chrome||r.opr||r.safari||r.vivaldi||r.mobile===!0&&r.ios!==!0&&a!==!0)&&(r.webkit=!0),r.opr&&(o.browser="opera",r.opera=!0),r.safari&&(r.blackberry||r.bb?(o.browser="blackberry",r.blackberry=!0):r.playbook?(o.browser="playbook",r.playbook=!0):r.android?(o.browser="android",r.android=!0):r.kindle?(o.browser="kindle",r.kindle=!0):r.silk&&(o.browser="silk",r.silk=!0)),r.name=o.browser,r.platform=o.platform,t.indexOf("electron")!==-1)r.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)r.bex=!0;else{if(window.Capacitor!==void 0?(r.capacitor=!0,r.nativeMobile=!0,r.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(r.cordova=!0,r.nativeMobile=!0,r.nativeMobileWrapper="cordova"),Ft.value===!0&&(tr={is:{...r}}),Ml===!0&&r.mac===!0&&(r.desktop===!0&&r.safari===!0||r.nativeMobile===!0&&r.android!==!0&&r.ios!==!0&&r.ipad!==!0)){delete r.mac,delete r.desktop;const i=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(r,{mobile:!0,ios:!0,platform:i,[i]:!0})}r.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete r.desktop,r.mobile=!0)}return r}const ql=navigator.userAgent||navigator.vendor||window.opera,$c={has:{touch:!1,webStorage:!1},within:{iframe:!1}},De={userAgent:ql,is:Uc(ql),has:{touch:Ml},within:{iframe:window.self!==window.top}},fo={install(e){const{$q:t}=e;Ft.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,De),Ft.value=!1}),t.platform=l.reactive(this)):t.platform=this}};{let e;st(De.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(fo,De),Ft.value===!0&&(Object.assign(fo,tr,$c),tr=null)}function Ee(e){return l.markRaw(l.defineComponent(e))}function Hc(e){return l.markRaw(e)}const mo=(e,t)=>{const n=l.reactive(e);for(const o in e)st(t,o,()=>n[o],r=>{n[o]=r});return t},Ke={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(Ke,{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 mn(){}function Ul(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 zc(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function Ot(e){e.stopPropagation()}function bt(e){e.cancelable!==!1&&e.preventDefault()}function Me(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function nr(e,t,n){const o=`__q_${t}_evt`;e[o]=e[o]!==void 0?e[o].concat(n):n,n.forEach(r=>{r[0].addEventListener(r[1],e[r[2]],Ke[r[3]])})}function $l(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],Ke[o[3]])}),e[n]=void 0)}function or(e,t=250,n){let o=null;function r(){const a=arguments,i=()=>{o=null,e.apply(this,a)};o!==null&&clearTimeout(o),o=setTimeout(i,t)}return r.cancel=()=>{o!==null&&clearTimeout(o)},r}const rr=["sm","md","lg","xl"],{passive:Hl}=Ke,jc=mo({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:mn,setDebounce:mn,install({$q:e,onSSRHydrated:t}){if(e.screen=this,this.__installed===!0){e.config.screen!==void 0&&(e.config.screen.bodyClasses===!1?document.body.classList.remove(`screen--${this.name}`):this.__update(!0));return}const{visualViewport:n}=window,o=n||window,r=document.scrollingElement||document.documentElement,a=n===void 0||De.is.mobile===!0?()=>[Math.max(window.innerWidth,r.clientWidth),Math.max(window.innerHeight,r.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-r.clientWidth,n.height*n.scale+window.innerHeight-r.clientHeight],i=e.config.screen!==void 0&&e.config.screen.bodyClasses===!0;this.__update=c=>{const[m,h]=a();if(h!==this.height&&(this.height=h),m!==this.width)this.width=m;else if(c!==!0)return;let p=this.sizes;this.gt.xs=m>=p.sm,this.gt.sm=m>=p.md,this.gt.md=m>=p.lg,this.gt.lg=m>=p.xl,this.lt.sm=m<p.sm,this.lt.md=m<p.md,this.lt.lg=m<p.lg,this.lt.xl=m<p.xl,this.xs=this.lt.sm,this.sm=this.gt.xs===!0&&this.lt.md===!0,this.md=this.gt.sm===!0&&this.lt.lg===!0,this.lg=this.gt.md===!0&&this.lt.xl===!0,this.xl=this.gt.lg,p=this.xs===!0&&"xs"||this.sm===!0&&"sm"||this.md===!0&&"md"||this.lg===!0&&"lg"||"xl",p!==this.name&&(i===!0&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${p}`)),this.name=p)};let s,u={},f=16;this.setSizes=c=>{rr.forEach(m=>{c[m]!==void 0&&(u[m]=c[m])})},this.setDebounce=c=>{f=c};const d=()=>{const c=getComputedStyle(document.body);c.getPropertyValue("--q-size-sm")&&rr.forEach(m=>{this.sizes[m]=parseInt(c.getPropertyValue(`--q-size-${m}`),10)}),this.setSizes=m=>{rr.forEach(h=>{m[h]&&(this.sizes[h]=m[h])}),this.__update(!0)},this.setDebounce=m=>{s!==void 0&&o.removeEventListener("resize",s,Hl),s=m>0?or(this.__update,m):this.__update,o.addEventListener("resize",s,Hl)},this.setDebounce(f),Object.keys(u).length!==0?(this.setSizes(u),u=void 0):this.__update(),i===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};Ft.value===!0?t.push(d):d()}}),Xe=mo({isActive:!1,mode:!1},{__media:void 0,set(e){Xe.mode=e,e==="auto"?(Xe.__media===void 0&&(Xe.__media=window.matchMedia("(prefers-color-scheme: dark)"),Xe.__updateMedia=()=>{Xe.set("auto")},Xe.__media.addListener(Xe.__updateMedia)),e=Xe.__media.matches):Xe.__media!==void 0&&(Xe.__media.removeListener(Xe.__updateMedia),Xe.__media=void 0),Xe.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){Xe.set(Xe.isActive===!1)},install({$q:e,ssrContext:t}){const{dark:n}=e.config;e.dark=this,this.__installed!==!0&&this.set(n!==void 0?n:!1)}});function Kc(e,t,n=document.body){if(typeof e!="string")throw new TypeError("Expected a string as propName");if(typeof t!="string")throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${e}`,t)}let zl=!1;function Wc(e){zl=e.isComposing===!0}function lr(e){return zl===!0||e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Qt(e,t){return lr(e)===!0?!1:[].concat(t).includes(e.keyCode)}function jl(e){if(e.ios===!0)return"ios";if(e.android===!0)return"android"}function Gc({is:e,has:t,within:n},o){const r=[e.desktop===!0?"desktop":"mobile",`${t.touch===!1?"no-":""}touch`];if(e.mobile===!0){const a=jl(e);a!==void 0&&r.push("platform-"+a)}if(e.nativeMobile===!0){const a=e.nativeMobileWrapper;r.push(a),r.push("native-mobile"),e.ios===!0&&(o[a]===void 0||o[a].iosStatusBarPadding!==!1)&&r.push("q-ios-padding")}else e.electron===!0?r.push("electron"):e.bex===!0&&r.push("bex");return n.iframe===!0&&r.push("within-iframe"),r}function Yc(){const{is:e}=De,t=document.body.className,n=new Set(t.replace(/ {2}/g," ").split(" "));if(e.nativeMobile!==!0&&e.electron!==!0&&e.bex!==!0){if(e.desktop===!0)n.delete("mobile"),n.delete("platform-ios"),n.delete("platform-android"),n.add("desktop");else if(e.mobile===!0){n.delete("desktop"),n.add("mobile"),n.delete("platform-ios"),n.delete("platform-android");const r=jl(e);r!==void 0&&n.add(`platform-${r}`)}}De.has.touch===!0&&(n.delete("no-touch"),n.add("touch")),De.within.iframe===!0&&n.add("within-iframe");const o=Array.from(n).join(" ");t!==o&&(document.body.className=o)}function Qc(e){for(const t in e)Kc(t,e[t])}const Xc={install(e){if(this.__installed!==!0){if(Ft.value===!0)Yc();else{const{$q:t}=e;t.config.brand!==void 0&&Qc(t.config.brand);const n=Gc(De,t.config);document.body.classList.add.apply(document.body.classList,n)}De.is.ios===!0&&document.body.addEventListener("touchstart",mn),window.addEventListener("keydown",Wc,!0)}}},Kl=()=>!0;function Zc(e){return typeof e=="string"&&e!==""&&e!=="/"&&e!=="#/"}function Jc(e){return e.startsWith("#")===!0&&(e=e.substring(1)),e.startsWith("/")===!1&&(e="/"+e),e.endsWith("/")===!0&&(e=e.substring(0,e.length-1)),"#"+e}function ed(e){if(e.backButtonExit===!1)return()=>!1;if(e.backButtonExit==="*")return Kl;const t=["#/"];return Array.isArray(e.backButtonExit)===!0&&t.push(...e.backButtonExit.filter(Zc).map(Jc)),()=>t.includes(window.location.hash)}const Bn={__history:[],add:mn,remove:mn,install({$q:e}){if(this.__installed===!0)return;const{cordova:t,capacitor:n}=De.is;if(t!==!0&&n!==!0)return;const o=e.config[t===!0?"cordova":"capacitor"];if(o!==void 0&&o.backButton===!1||n===!0&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=i=>{i.condition===void 0&&(i.condition=Kl),this.__history.push(i)},this.remove=i=>{const s=this.__history.indexOf(i);s>=0&&this.__history.splice(s,1)};const r=ed(Object.assign({backButtonExit:!0},o)),a=()=>{if(this.__history.length){const i=this.__history[this.__history.length-1];i.condition()===!0&&(this.__history.pop(),i.handler())}else r()===!0?navigator.app.exitApp():window.history.back()};t===!0?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",a,!1)}):window.Capacitor.Plugins.App.addListener("backButton",a)}},Wl={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",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},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,t,n)=>e+"-"+t+" of "+n,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 Gl(){const e=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((t,n)=>n===0?t.toLowerCase():n>1||t.length<4?t.toUpperCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("-")}const Mt=mo({__qLang:{}},{getLocale:Gl,set(e=Wl,t){const n={...e,rtl:e.rtl===!0,getLocale:Gl};{if(n.set=Mt.set,Mt.__langConfig===void 0||Mt.__langConfig.noHtmlAttrs!==!0){const o=document.documentElement;o.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),o.setAttribute("lang",n.isoName)}Object.assign(Mt.__qLang,n)}},install({$q:e,lang:t,ssrContext:n}){e.lang=Mt.__qLang,Mt.__langConfig=e.config.lang,this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(o){return Reflect.ownKeys(o).filter(r=>r!=="set"&&r!=="getLocale")}}),this.set(t||Wl))}}),td={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},ho=mo({iconMapFn:null,__qIconSet:{}},{set(e,t){const n={...e};n.set=ho.set,Object.assign(ho.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,st(e,"iconMapFn",()=>this.iconMapFn,o=>{this.iconMapFn=o}),this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys(o){return Reflect.ownKeys(o).filter(r=>r!=="set")}}),this.set(t||td))}}),nd="_q_",od="_q_fo_",go={};let Yl=!1;function rd(){Yl=!0}function Nt(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,o;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(Nt(e[o],t[o])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let a=e.entries();for(o=a.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=a.next()}for(a=e.entries(),o=a.next();o.done!==!0;){if(Nt(o.value[1],t.get(o.value[0]))!==!0)return!1;o=a.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const a=e.entries();for(o=a.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=a.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const r=Object.keys(e).filter(a=>e[a]!==void 0);if(n=r.length,n!==Object.keys(t).filter(a=>t[a]!==void 0).length)return!1;for(o=n;o--!==0;){const a=r[o];if(Nt(e[a],t[a])!==!0)return!1}return!0}return e!==e&&t!==t}function ar(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}function Ql(e){return Object.prototype.toString.call(e)==="[object Date]"}function ir(e){return typeof e=="number"&&isFinite(e)}const Xl=[fo,Xc,Xe,jc,Bn,Mt,ho];function Zl(e,t){t.forEach(n=>{n.install(e),n.__installed=!0})}function ld(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(nd,n.$q),Zl(n,Xl),t.components!==void 0&&Object.values(t.components).forEach(o=>{ar(o)===!0&&o.name!==void 0&&e.component(o.name,o)}),t.directives!==void 0&&Object.values(t.directives).forEach(o=>{ar(o)===!0&&o.name!==void 0&&e.directive(o.name,o)}),t.plugins!==void 0&&Zl(n,Object.values(t.plugins).filter(o=>typeof o.install=="function"&&Xl.includes(o)===!1)),Ft.value===!0&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach(o=>{o()}),n.$q.onSSRHydrated=()=>{}})}const ad={name:"Quasar",version:"2.17.7",install:function(e,t={}){const n={version:"2.17.7"};Yl===!1?(t.config!==void 0&&Object.assign(go,t.config),n.config={...go},rd()):n.config=t.config||{},ld(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},lang:Mt,iconSet:ho},sr={xs:18,sm:24,md:32,lg:38,xl:46},Fn={size:String};function Mn(e,t=sr){return l.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Ve(e,t){return e!==void 0&&e()||t}function Jl(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function Pt(e,t){return e!==void 0?t.concat(e()):t}function id(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function sd(e,t,n,o,r,a){t.key=o+r;const i=l.h(e,t,n);return r===!0?l.withDirectives(i,a()):i}const ea="0 0 24 24",ta=e=>e,ur=e=>`ionicons ${e}`,na={"mdi-":e=>`mdi ${e}`,"icon-":ta,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":ur,"ion-ios":ur,"ion-logo":ur,"iconfont ":ta,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},oa={o_:"-outlined",r_:"-round",s_:"-sharp"},ra={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ud=new RegExp("^("+Object.keys(na).join("|")+")"),cd=new RegExp("^("+Object.keys(oa).join("|")+")"),la=new RegExp("^("+Object.keys(ra).join("|")+")"),dd=/^[Mm]\s?[-+]?\.?\d/,fd=/^img:/,md=/^svguse:/,hd=/^ion-/,gd=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,We=Ee({name:"QIcon",props:{...Fn,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=l.getCurrentInstance(),o=Mn(e),r=l.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),a=l.computed(()=>{let i,s=e.name;if(s==="none"||!s)return{none:!0};if(n.iconMapFn!==null){const d=n.iconMapFn(s);if(d!==void 0)if(d.icon!==void 0){if(s=d.icon,s==="none"||!s)return{none:!0}}else return{cls:d.cls,content:d.content!==void 0?d.content:" "}}if(dd.test(s)===!0){const[d,c=ea]=s.split("|");return{svg:!0,viewBox:c,nodes:d.split("&&").map(m=>{const[h,p,S]=m.split("@@");return l.h("path",{style:p,d:h,transform:S})})}}if(fd.test(s)===!0)return{img:!0,src:s.substring(4)};if(md.test(s)===!0){const[d,c=ea]=s.split("|");return{svguse:!0,src:d.substring(7),viewBox:c}}let u=" ";const f=s.match(ud);if(f!==null)i=na[f[1]](s);else if(gd.test(s)===!0)i=s;else if(hd.test(s)===!0)i=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(la.test(s)===!0){i="notranslate material-symbols";const d=s.match(la);d!==null&&(s=s.substring(6),i+=ra[d[1]]),u=s}else{i="notranslate material-icons";const d=s.match(cd);d!==null&&(s=s.substring(2),i+=oa[d[1]]),u=s}return{cls:i,content:u}});return()=>{const i={class:r.value,style:o.value,"aria-hidden":"true",role:"presentation"};return a.value.none===!0?l.h(e.tag,i,Ve(t.default)):a.value.img===!0?l.h(e.tag,i,Pt(t.default,[l.h("img",{src:a.value.src})])):a.value.svg===!0?l.h(e.tag,i,Pt(t.default,[l.h("svg",{viewBox:a.value.viewBox||"0 0 24 24"},a.value.nodes)])):a.value.svguse===!0?l.h(e.tag,i,Pt(t.default,[l.h("svg",{viewBox:a.value.viewBox},[l.h("use",{"xlink:href":a.value.src})])])):(a.value.cls!==void 0&&(i.class+=" "+a.value.cls),l.h(e.tag,i,Pt(t.default,[a.value.content])))}}}),_d={size:{type:[String,Number],default:"1em"},color:String};function pd(e){return{cSize:l.computed(()=>e.size in sr?`${sr[e.size]}px`:e.size),classes:l.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const aa=Ee({name:"QSpinner",props:{..._d,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=pd(e);return()=>l.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[l.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function cr(e,t){const n=e.style;for(const o in t)n[o]=t[o]}function vd(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=l.unref(e);if(t)return t.$el||t}function ia(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}function bd(e,t=250){let n=!1,o;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function sa(e,t,n,o){n.modifiers.stop===!0&&Ot(e);const r=n.modifiers.color;let a=n.modifiers.center;a=a===!0||o===!0;const i=document.createElement("span"),s=document.createElement("span"),u=Ul(e),{left:f,top:d,width:c,height:m}=t.getBoundingClientRect(),h=Math.sqrt(c*c+m*m),p=h/2,S=`${(c-h)/2}px`,_=a?S:`${u.left-f-p}px`,g=`${(m-h)/2}px`,v=a?g:`${u.top-d-p}px`;s.className="q-ripple__inner",cr(s,{height:`${h}px`,width:`${h}px`,transform:`translate3d(${_},${v},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${r?" text-"+r:""}`,i.setAttribute("dir","ltr"),i.appendChild(s),t.appendChild(i);const E=()=>{i.remove(),clearTimeout(b)};n.abort.push(E);let b=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${S},${g},0) scale3d(1,1,1)`,s.style.opacity=.2,b=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,b=setTimeout(()=>{i.remove(),n.abort.splice(n.abort.indexOf(E),1)},275)},250)},50)}function ua(e,{modifiers:t,value:n,arg:o}){const r=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:r.early===!0,stop:r.stop===!0,center:r.center===!0,color:r.color||o,keyCodes:[].concat(r.keyCodes||13)}}const ca=Hc({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const o={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(r){o.enabled===!0&&r.qSkipRipple!==!0&&r.type===(o.modifiers.early===!0?"pointerdown":"click")&&sa(r,e,o,r.qKeyEvent===!0)},keystart:bd(r=>{o.enabled===!0&&r.qSkipRipple!==!0&&Qt(r,o.modifiers.keyCodes)===!0&&r.type===`key${o.modifiers.early===!0?"down":"up"}`&&sa(r,e,o,!0)},300)};ua(o,t),e.__qripple=o,nr(o,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&ua(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),$l(t,"main"),delete e._qripple)}}),da={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},yd=Object.keys(da),Ed={align:{type:String,validator:e=>yd.includes(e)}};function Sd(e){return l.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${da[t]}`})}function dr(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function fr(e){return e.appContext.config.globalProperties.$router!==void 0}function fa(e){return e.isUnmounted===!0||e.isDeactivated===!0}function ma(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function ha(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Cd(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(Array.isArray(r)===!1||r.length!==o.length||o.some((a,i)=>a!==r[i]))return!1}return!0}function ga(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function kd(e,t){return Array.isArray(e)===!0?ga(e,t):Array.isArray(t)===!0?ga(t,e):e===t}function wd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(kd(e[n],t[n])===!1)return!1;return!0}const _a={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Td={..._a,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function pa({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=l.getCurrentInstance(),{props:o,proxy:r,emit:a}=n,i=fr(n),s=l.computed(()=>o.disable!==!0&&o.href!==void 0),u=t===!0?l.computed(()=>i===!0&&o.disable!==!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""):l.computed(()=>i===!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),f=l.computed(()=>u.value===!0?v(o.to):null),d=l.computed(()=>f.value!==null),c=l.computed(()=>s.value===!0||d.value===!0),m=l.computed(()=>o.type==="a"||c.value===!0?"a":o.tag||e||"div"),h=l.computed(()=>s.value===!0?{href:o.href,target:o.target}:d.value===!0?{href:f.value.href,target:o.target}:{}),p=l.computed(()=>{if(d.value===!1)return-1;const{matched:A}=f.value,{length:I}=A,T=A[I-1];if(T===void 0)return-1;const B=r.$route.matched;if(B.length===0)return-1;const N=B.findIndex(ha.bind(null,T));if(N!==-1)return N;const P=ma(A[I-2]);return I>1&&ma(T)===P&&B[B.length-1].path!==P?B.findIndex(ha.bind(null,A[I-2])):N}),S=l.computed(()=>d.value===!0&&p.value!==-1&&Cd(r.$route.params,f.value.params)),_=l.computed(()=>S.value===!0&&p.value===r.$route.matched.length-1&&wd(r.$route.params,f.value.params)),g=l.computed(()=>d.value===!0?_.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":S.value===!0?` ${o.activeClass}`:"":"");function v(A){try{return r.$router.resolve(A)}catch{}return null}function E(A,{returnRouterError:I,to:T=o.to,replace:B=o.replace}={}){if(o.disable===!0)return A.preventDefault(),Promise.resolve(!1);if(A.metaKey||A.altKey||A.ctrlKey||A.shiftKey||A.button!==void 0&&A.button!==0||o.target==="_blank")return Promise.resolve(!1);A.preventDefault();const N=r.$router[B===!0?"replace":"push"](T);return I===!0?N:N.then(()=>{}).catch(()=>{})}function b(A){if(d.value===!0){const I=T=>E(A,T);a("click",A,I),A.defaultPrevented!==!0&&I()}else a("click",A)}return{hasRouterLink:d,hasHrefLink:s,hasLink:c,linkTag:m,resolvedLink:f,linkIsActive:S,linkIsExactActive:_,linkClass:g,linkAttrs:h,getLink:v,navigateToRouterLink:E,navigateOnClick:b}}const va={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Od={xs:8,sm:10,md:14,lg:20,xl:24},Ad=["button","submit","reset"],Id=/[^\s]\/[^\s]/,xd=["flat","outline","push","unelevated"];function Nd(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Pd={...{...Fn,..._a,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...xd.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Ed.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Ld(e){const t=Mn(e,Od),n=Sd(e),{hasRouterLink:o,hasLink:r,linkTag:a,linkAttrs:i,navigateOnClick:s}=pa({fallbackTag:"button"}),u=l.computed(()=>{const _=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},_,{padding:e.padding.split(/\s+/).map(g=>g in va?va[g]+"px":g).join(" "),minWidth:"0",minHeight:"0"}):_}),f=l.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),d=l.computed(()=>e.disable!==!0&&e.loading!==!0),c=l.computed(()=>d.value===!0?e.tabindex||0:-1),m=l.computed(()=>Nd(e,"standard")),h=l.computed(()=>{const _={tabindex:c.value};return r.value===!0?Object.assign(_,i.value):Ad.includes(e.type)===!0&&(_.type=e.type),a.value==="a"?(e.disable===!0?_["aria-disabled"]="true":_.href===void 0&&(_.role="button"),o.value!==!0&&Id.test(e.type)===!0&&(_.type=e.type)):e.disable===!0&&(_.disabled="",_["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(_,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),_}),p=l.computed(()=>{let _;e.color!==void 0?e.flat===!0||e.outline===!0?_=`text-${e.textColor||e.color}`:_=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(_=`text-${e.textColor}`);const g=e.round===!0?"round":`rectangle${f.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${m.value} q-btn--${g}`+(_!==void 0?" "+_:"")+(d.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":"")}),S=l.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:u,innerClasses:S,attributes:h,hasLink:r,linkTag:a,navigateOnClick:s,isActionable:d}}const{passiveCapture:dt}=Ke;let hn=null,gn=null,_n=null;const Lt=Ee({name:"QBtn",props:{...Pd,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:o}=l.getCurrentInstance(),{classes:r,style:a,innerClasses:i,attributes:s,hasLink:u,linkTag:f,navigateOnClick:d,isActionable:c}=Ld(e),m=l.ref(null),h=l.ref(null);let p=null,S,_=null;const g=l.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),v=l.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:u.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),E=l.computed(()=>({center:e.round})),b=l.computed(()=>{const V=Math.max(0,Math.min(100,e.percentage));return V>0?{transition:"transform 0.6s",transform:`translateX(${V-100}%)`}:{}}),A=l.computed(()=>{if(e.loading===!0)return{onMousedown:K,onTouchstart:K,onClick:K,onKeydown:K,onKeyup:K};if(c.value===!0){const V={onClick:T,onKeydown:B,onMousedown:P};if(o.$q.platform.has.touch===!0){const ne=e.onTouchstart!==void 0?"":"Passive";V[`onTouchstart${ne}`]=N}return V}return{onClick:Me}}),I=l.computed(()=>({ref:m,class:"q-btn q-btn-item non-selectable no-outline "+r.value,style:a.value,...s.value,...A.value}));function T(V){if(m.value!==null){if(V!==void 0){if(V.defaultPrevented===!0)return;const ne=document.activeElement;if(e.type==="submit"&&ne!==document.body&&m.value.contains(ne)===!1&&ne.contains(m.value)===!1){m.value.focus();const Y=()=>{document.removeEventListener("keydown",Me,!0),document.removeEventListener("keyup",Y,dt),m.value!==null&&m.value.removeEventListener("blur",Y,dt)};document.addEventListener("keydown",Me,!0),document.addEventListener("keyup",Y,dt),m.value.addEventListener("blur",Y,dt)}}d(V)}}function B(V){m.value!==null&&(n("keydown",V),Qt(V,[13,32])===!0&&gn!==m.value&&(gn!==null&&x(),V.defaultPrevented!==!0&&(m.value.focus(),gn=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("keyup",M,!0),m.value.addEventListener("blur",M,dt)),Me(V)))}function N(V){m.value!==null&&(n("touchstart",V),V.defaultPrevented!==!0&&(hn!==m.value&&(hn!==null&&x(),hn=m.value,p=V.target,p.addEventListener("touchcancel",M,dt),p.addEventListener("touchend",M,dt)),S=!0,_!==null&&clearTimeout(_),_=setTimeout(()=>{_=null,S=!1},200)))}function P(V){m.value!==null&&(V.qSkipRipple=S===!0,n("mousedown",V),V.defaultPrevented!==!0&&_n!==m.value&&(_n!==null&&x(),_n=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("mouseup",M,dt)))}function M(V){if(m.value!==null&&!(V!==void 0&&V.type==="blur"&&document.activeElement===m.value)){if(V!==void 0&&V.type==="keyup"){if(gn===m.value&&Qt(V,[13,32])===!0){const ne=new MouseEvent("click",V);ne.qKeyEvent=!0,V.defaultPrevented===!0&&bt(ne),V.cancelBubble===!0&&Ot(ne),m.value.dispatchEvent(ne),Me(V),V.qKeyEvent=!0}n("keyup",V)}x()}}function x(V){const ne=h.value;V!==!0&&(hn===m.value||_n===m.value)&&ne!==null&&ne!==document.activeElement&&(ne.setAttribute("tabindex",-1),ne.focus()),hn===m.value&&(p!==null&&(p.removeEventListener("touchcancel",M,dt),p.removeEventListener("touchend",M,dt)),hn=p=null),_n===m.value&&(document.removeEventListener("mouseup",M,dt),_n=null),gn===m.value&&(document.removeEventListener("keyup",M,!0),m.value!==null&&m.value.removeEventListener("blur",M,dt),gn=null),m.value!==null&&m.value.classList.remove("q-btn--active")}function K(V){Me(V),V.qSkipRipple=!0}return l.onBeforeUnmount(()=>{x(!0)}),Object.assign(o,{click:V=>{c.value===!0&&T(V)}}),()=>{let V=[];e.icon!==void 0&&V.push(l.h(We,{name:e.icon,left:e.stack!==!0&&g.value===!0,role:"img"})),g.value===!0&&V.push(l.h("span",{class:"block"},[e.label])),V=Pt(t.default,V),e.iconRight!==void 0&&e.round===!1&&V.push(l.h(We,{name:e.iconRight,right:e.stack!==!0&&g.value===!0,role:"img"}));const ne=[l.h("span",{class:"q-focus-helper",ref:h})];return e.loading===!0&&e.percentage!==void 0&&ne.push(l.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[l.h("span",{class:"q-btn__progress-indicator fit block",style:b.value})])),ne.push(l.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+i.value},V)),e.loading!==null&&ne.push(l.h(l.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[l.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[l.h(aa)])]:null)),l.withDirectives(l.h(f.value,I.value,ne),[[ca,v.value,void 0,E.value]])}}}),Dd=l.defineComponent({name:"MyButton",components:{QBtn:Lt},props:{label:{type:String,required:!0},color:{type:String,default:"primary"}},setup(e){return{onClick:()=>{console.log(`${e.label} button clicked!`)}}}}),lt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function Vd(e,t,n,o,r,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[t[0]||(t[0]=l.createTextVNode("abc")),l.createVNode(Lt,{label:e.label,color:e.color,onClick:e.onClick},null,8,["label","color","onClick"])],64)}const ba=lt(Dd,[["render",Vd],["__scopeId","data-v-dec36ed8"]]),ya=(e,t)=>{e.use(t)},Ea=(e,t,n)=>{e.component(t,n)},Rd={install(e){Ea(e,"KMyButton",ba)}},ft={dark:{type:Boolean,default:null}};function mt(e,t){return l.computed(()=>e.dark===null?t.dark.isActive:e.dark)}const Bd={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},mr={xs:2,sm:4,md:8,lg:16,xl:24},Sa=Ee({name:"QSeparator",props:{...ft,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=l.getCurrentInstance(),n=mt(e,t.proxy.$q),o=l.computed(()=>e.vertical===!0?"vertical":"horizontal"),r=l.computed(()=>` q-separator--${o.value}`),a=l.computed(()=>e.inset!==!1?`${r.value}-${Bd[e.inset]}`:""),i=l.computed(()=>`q-separator${r.value}${a.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),s=l.computed(()=>{const u={};if(e.size!==void 0&&(u[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const f=e.spaced===!0?`${mr.md}px`:e.spaced in mr?`${mr[e.spaced]}px`:e.spaced,d=e.vertical===!0?["Left","Right"]:["Top","Bottom"];u[`margin${d[0]}`]=u[`margin${d[1]}`]=f}return u});return()=>l.h("hr",{class:i.value,style:s.value,"aria-orientation":o.value})}}),hr=Ee({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const o=l.getCurrentInstance(),{proxy:{$q:r}}=o,a=i=>{n("click",i)};return()=>{if(e.props===void 0)return l.h("th",{class:e.autoWidth===!0?"q-table--col-auto-width":"",onClick:a},Ve(t.default));let i,s;const u=o.vnode.key;if(u){if(i=e.props.colsMap[u],i===void 0)return}else i=e.props.col;if(i.sortable===!0){const d=i.align==="right"?"unshift":"push";s=Jl(t.default,[]),s[d](l.h(We,{class:i.__iconClass,name:r.iconSet.table.arrowUp}))}else s=Ve(t.default);const f={class:i.__thClass+(e.autoWidth===!0?" q-table--col-auto-width":""),style:i.headerStyle,onClick:d=>{i.sortable===!0&&e.props.sort(i),a(d)}};return l.h("th",f,s)}}}),Fd=["ul","ol"],Ca=Ee({name:"QList",props:{...ft,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const n=l.getCurrentInstance(),o=mt(e,n.proxy.$q),r=l.computed(()=>Fd.includes(e.tag)?null:"list"),a=l.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(o.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>l.h(e.tag,{class:a.value,role:r.value},Ve(t.default))}}),Md=["horizontal","vertical","cell","none"],ka=Ee({name:"QMarkupTable",props:{...ft,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>Md.includes(e)}},setup(e,{slots:t}){const n=l.getCurrentInstance(),o=mt(e,n.proxy.$q),r=l.computed(()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(o.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(e.dense===!0?" q-table--dense":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")+(e.square===!0?" q-table--square":"")+(e.wrapCells===!1?" q-table--no-wrap":""));return()=>l.h("div",{class:r.value},[l.h("table",{class:"q-table"},Ve(t.default))])}});function wa(e,t){return l.h("div",e,[l.h("table",{class:"q-table"},t)])}let _o=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,_o=e.scrollLeft>=0,e.remove()}const yt=1e3,qd=["start","center","end","start-force","center-force","end-force"],Ta=Array.prototype.filter,Ud=window.getComputedStyle(document.body).overflowAnchor===void 0?mn:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];Ta.call(n,r=>r.dataset&&r.dataset.qVsAnchor!==void 0).forEach(r=>{delete r.dataset.qVsAnchor});const o=n[t];o&&o.dataset&&(o.dataset.qVsAnchor="")}))};function pn(e,t){return e+t}function gr(e,t,n,o,r,a,i,s){const u=e===window?document.scrollingElement||document.documentElement:e,f=r===!0?"offsetWidth":"offsetHeight",d={scrollStart:0,scrollViewSize:-i-s,scrollMaxSize:0,offsetStart:-i,offsetEnd:-s};if(r===!0?(e===window?(d.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d.scrollViewSize+=document.documentElement.clientWidth):(d.scrollStart=u.scrollLeft,d.scrollViewSize+=u.clientWidth),d.scrollMaxSize=u.scrollWidth,a===!0&&(d.scrollStart=(_o===!0?d.scrollMaxSize-d.scrollViewSize:0)-d.scrollStart)):(e===window?(d.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,d.scrollViewSize+=document.documentElement.clientHeight):(d.scrollStart=u.scrollTop,d.scrollViewSize+=u.clientHeight),d.scrollMaxSize=u.scrollHeight),n!==null)for(let c=n.previousElementSibling;c!==null;c=c.previousElementSibling)c.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetStart+=c[f]);if(o!==null)for(let c=o.nextElementSibling;c!==null;c=c.nextElementSibling)c.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetEnd+=c[f]);if(t!==e){const c=u.getBoundingClientRect(),m=t.getBoundingClientRect();r===!0?(d.offsetStart+=m.left-c.left,d.offsetEnd-=m.width):(d.offsetStart+=m.top-c.top,d.offsetEnd-=m.height),e!==window&&(d.offsetStart+=d.scrollStart),d.offsetEnd+=d.scrollMaxSize-d.offsetStart}return d}function Oa(e,t,n,o){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(o===!0&&(t=(_o===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n===!0?(o===!0&&(t=(_o===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function qn(e,t,n,o){if(n>=o)return 0;const r=t.length,a=Math.floor(n/yt),i=Math.floor((o-1)/yt)+1;let s=e.slice(a,i).reduce(pn,0);return n%yt!==0&&(s-=t.slice(a*yt,n).reduce(pn,0)),o%yt!==0&&o!==r&&(s-=t.slice(o,i*yt).reduce(pn,0)),s}const Aa={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Ia=Object.keys(Aa),_r={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Aa};function xa({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const r=l.getCurrentInstance(),{props:a,emit:i,proxy:s}=r,{$q:u}=s;let f,d,c,m=[],h;const p=l.ref(0),S=l.ref(0),_=l.ref({}),g=l.ref(null),v=l.ref(null),E=l.ref(null),b=l.ref({from:0,to:0}),A=l.computed(()=>a.tableColspan!==void 0?a.tableColspan:100);o===void 0&&(o=l.computed(()=>a.virtualScrollItemSize));const I=l.computed(()=>o.value+";"+a.virtualScrollHorizontal),T=l.computed(()=>I.value+";"+a.virtualScrollSliceRatioBefore+";"+a.virtualScrollSliceRatioAfter);l.watch(T,()=>{Y()}),l.watch(I,B);function B(){ne(d,!0)}function N(O){ne(O===void 0?d:O)}function P(O,w){const j=t();if(j==null||j.nodeType===8)return;const re=gr(j,n(),g.value,v.value,a.virtualScrollHorizontal,u.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd);c!==re.scrollViewSize&&Y(re.scrollViewSize),x(j,re,Math.min(e.value-1,Math.max(0,parseInt(O,10)||0)),0,qd.indexOf(w)!==-1?w:d!==-1&&O>d?"end":"start")}function M(){const O=t();if(O==null||O.nodeType===8)return;const w=gr(O,n(),g.value,v.value,a.virtualScrollHorizontal,u.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd),j=e.value-1,re=w.scrollMaxSize-w.offsetStart-w.offsetEnd-S.value;if(f===w.scrollStart)return;if(w.scrollMaxSize<=0){x(O,w,0,0);return}c!==w.scrollViewSize&&Y(w.scrollViewSize),K(b.value.from);const se=Math.floor(w.scrollMaxSize-Math.max(w.scrollViewSize,w.offsetEnd)-Math.min(h[j],w.scrollViewSize/2));if(se>0&&Math.ceil(w.scrollStart)>=se){x(O,w,j,w.scrollMaxSize-w.offsetEnd-m.reduce(pn,0));return}let U=0,G=w.scrollStart-w.offsetStart,fe=G;if(G<=re&&G+w.scrollViewSize>=p.value)G-=p.value,U=b.value.from,fe=G;else for(let z=0;G>=m[z]&&U<j;z++)G-=m[z],U+=yt;for(;G>0&&U<j;)G-=h[U],G>-w.scrollViewSize?(U++,fe=G):fe=h[U]+G;x(O,w,U,fe)}function x(O,w,j,re,se){const U=typeof se=="string"&&se.indexOf("-force")!==-1,G=U===!0?se.replace("-force",""):se,fe=G!==void 0?G:"start";let z=Math.max(0,j-_.value[fe]),be=z+_.value.total;be>e.value&&(be=e.value,z=Math.max(0,be-_.value.total)),f=w.scrollStart;const $e=z!==b.value.from||be!==b.value.to;if($e===!1&&G===void 0){H(j);return}const{activeElement:_t}=document,Pe=E.value;$e===!0&&Pe!==null&&Pe!==_t&&Pe.contains(_t)===!0&&(Pe.addEventListener("focusout",V),setTimeout(()=>{Pe!==null&&Pe.removeEventListener("focusout",V)})),Ud(Pe,j-z);const it=G!==void 0?h.slice(z,j).reduce(pn,0):0;if($e===!0){const He=be>=b.value.from&&z<=b.value.to?b.value.to:be;b.value={from:z,to:He},p.value=qn(m,h,0,z),S.value=qn(m,h,be,e.value),requestAnimationFrame(()=>{b.value.to!==be&&f===w.scrollStart&&(b.value={from:b.value.from,to:be},S.value=qn(m,h,be,e.value))})}requestAnimationFrame(()=>{if(f!==w.scrollStart)return;$e===!0&&K(z);const He=h.slice(z,j).reduce(pn,0),Ye=He+w.offsetStart+p.value,pt=Ye+h[j];let y=Ye+re;if(G!==void 0){const k=He-it,R=w.scrollStart+k;y=U!==!0&&R<Ye&&pt<R+w.scrollViewSize?R:G==="end"?pt-w.scrollViewSize:Ye-(G==="start"?0:Math.round((w.scrollViewSize-h[j])/2))}f=y,Oa(O,y,a.virtualScrollHorizontal,u.lang.rtl),H(j)})}function K(O){const w=E.value;if(w){const j=Ta.call(w.children,z=>z.classList&&z.classList.contains("q-virtual-scroll--skip")===!1),re=j.length,se=a.virtualScrollHorizontal===!0?z=>z.getBoundingClientRect().width:z=>z.offsetHeight;let U=O,G,fe;for(let z=0;z<re;){for(G=se(j[z]),z++;z<re&&j[z].classList.contains("q-virtual-scroll--with-prev")===!0;)G+=se(j[z]),z++;fe=G-h[U],fe!==0&&(h[U]+=fe,m[Math.floor(U/yt)]+=fe),U++}}}function V(){E.value!==null&&E.value!==void 0&&E.value.focus()}function ne(O,w){const j=1*o.value;(w===!0||Array.isArray(h)===!1)&&(h=[]);const re=h.length;h.length=e.value;for(let U=e.value-1;U>=re;U--)h[U]=j;const se=Math.floor((e.value-1)/yt);m=[];for(let U=0;U<=se;U++){let G=0;const fe=Math.min((U+1)*yt,e.value);for(let z=U*yt;z<fe;z++)G+=h[z];m.push(G)}d=-1,f=void 0,p.value=qn(m,h,0,b.value.from),S.value=qn(m,h,b.value.to,e.value),O>=0?(K(b.value.from),l.nextTick(()=>{P(O)})):Q()}function Y(O){if(O===void 0&&typeof window<"u"){const G=t();G!=null&&G.nodeType!==8&&(O=gr(G,n(),g.value,v.value,a.virtualScrollHorizontal,u.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd).scrollViewSize)}c=O;const w=parseFloat(a.virtualScrollSliceRatioBefore)||0,j=parseFloat(a.virtualScrollSliceRatioAfter)||0,re=1+w+j,se=O===void 0||O<=0?1:Math.ceil(O/o.value),U=Math.max(1,se,Math.ceil((a.virtualScrollSliceSize>0?a.virtualScrollSliceSize:10)/re));_.value={total:Math.ceil(U*re),start:Math.ceil(U*w),center:Math.ceil(U*(.5+w)),end:Math.ceil(U*(1+w)),view:se}}function $(O,w){const j=a.virtualScrollHorizontal===!0?"width":"height",re={["--q-virtual-scroll-item-"+j]:o.value+"px"};return[O==="tbody"?l.h(O,{class:"q-virtual-scroll__padding",key:"before",ref:g},[l.h("tr",[l.h("td",{style:{[j]:`${p.value}px`,...re},colspan:A.value})])]):l.h(O,{class:"q-virtual-scroll__padding",key:"before",ref:g,style:{[j]:`${p.value}px`,...re}}),l.h(O,{class:"q-virtual-scroll__content",key:"content",ref:E,tabindex:-1},w.flat()),O==="tbody"?l.h(O,{class:"q-virtual-scroll__padding",key:"after",ref:v},[l.h("tr",[l.h("td",{style:{[j]:`${S.value}px`,...re},colspan:A.value})])]):l.h(O,{class:"q-virtual-scroll__padding",key:"after",ref:v,style:{[j]:`${S.value}px`,...re}})]}function H(O){d!==O&&(a.onVirtualScroll!==void 0&&i("virtualScroll",{index:O,from:b.value.from,to:b.value.to-1,direction:O<d?"decrease":"increase",ref:s}),d=O)}Y();const Q=or(M,u.platform.is.ios===!0?120:35);l.onBeforeMount(()=>{Y()});let oe=!1;return l.onDeactivated(()=>{oe=!0}),l.onActivated(()=>{if(oe!==!0)return;const O=t();f!==void 0&&O!==void 0&&O!==null&&O.nodeType!==8?Oa(O,f,a.virtualScrollHorizontal,u.lang.rtl):P(d)}),l.onBeforeUnmount(()=>{Q.cancel()}),Object.assign(s,{scrollTo:P,reset:B,refresh:N}),{virtualScrollSliceRange:b,virtualScrollSliceSizeComputed:_,setVirtualScrollSize:Y,onVirtualScrollEvt:Q,localResetVirtualScroll:ne,padVirtualScroll:$,scrollTo:P,reset:B,refresh:N}}const Na=[Element,String],$d=[null,document,document.body,document.scrollingElement,document.documentElement];function Pa(e,t){let n=vd(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return $d.includes(n)?window:n}function Hd(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function zd(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let po;function jd(){if(po!==void 0)return po;const e=document.createElement("p"),t=document.createElement("div");cr(e,{width:"100%",height:"200px"}),cr(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;return n===o&&(o=t.clientWidth),t.remove(),po=n-o,po}function Kd(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?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 Wd={list:Ca,table:ka},Gd=["list","table","__qtable"],Yd=Ee({name:"QVirtualScroll",props:{..._r,type:{type:String,default:"list",validator:e=>Gd.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Na},setup(e,{slots:t,attrs:n}){let o;const r=l.ref(null),a=l.computed(()=>e.itemsSize>=0&&e.itemsFn!==void 0?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0),{virtualScrollSliceRange:i,localResetVirtualScroll:s,padVirtualScroll:u,onVirtualScrollEvt:f}=xa({virtualScrollLength:a,getVirtualScrollTarget:p,getVirtualScrollEl:h}),d=l.computed(()=>{if(a.value===0)return[];const v=(E,b)=>({index:i.value.from+b,item:E});return e.itemsFn===void 0?e.items.slice(i.value.from,i.value.to).map(v):e.itemsFn(i.value.from,i.value.to-i.value.from).map(v)}),c=l.computed(()=>"q-virtual-scroll q-virtual-scroll"+(e.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(e.scrollTarget!==void 0?"":" scroll")),m=l.computed(()=>e.scrollTarget!==void 0?{}:{tabindex:0});l.watch(a,()=>{s()}),l.watch(()=>e.scrollTarget,()=>{_(),S()});function h(){return r.value.$el||r.value}function p(){return o}function S(){o=Pa(h(),e.scrollTarget),o.addEventListener("scroll",f,Ke.passive)}function _(){o!==void 0&&(o.removeEventListener("scroll",f,Ke.passive),o=void 0)}function g(){let v=u(e.type==="list"?"div":"tbody",d.value.map(t.default));return t.before!==void 0&&(v=t.before().concat(v)),Pt(t.after,v)}return l.onBeforeMount(()=>{s()}),l.onMounted(()=>{S()}),l.onActivated(()=>{S()}),l.onDeactivated(()=>{_()}),l.onBeforeUnmount(()=>{_()}),()=>{if(t.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return e.type==="__qtable"?wa({ref:r,class:"q-table__middle "+c.value},g()):l.h(Wd[e.type],{...n,ref:r,class:[n.class,c.value],...m.value},g)}}});let pr,vo=0;const Ge=new Array(256);for(let e=0;e<256;e++)Ge[e]=(e+256).toString(16).substring(1);const Qd=(()=>{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 t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return t=>{const n=[];for(let o=t;o>0;o--)n.push(Math.floor(Math.random()*256));return n}})(),La=4096;function vr(){(pr===void 0||vo+16>La)&&(vo=0,pr=Qd(La));const e=Array.prototype.slice.call(pr,vo,vo+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Ge[e[0]]+Ge[e[1]]+Ge[e[2]]+Ge[e[3]]+"-"+Ge[e[4]]+Ge[e[5]]+"-"+Ge[e[6]]+Ge[e[7]]+"-"+Ge[e[8]]+Ge[e[9]]+"-"+Ge[e[10]]+Ge[e[11]]+Ge[e[12]]+Ge[e[13]]+Ge[e[14]]+Ge[e[15]]}function Xd(e){return e??null}function Da(e,t){return e??(t===!0?`f_${vr()}`:null)}function Zd({getValue:e,required:t=!0}={}){if(Ft.value===!0){const n=e!==void 0?l.ref(Xd(e())):l.ref(null);return t===!0&&n.value===null&&l.onMounted(()=>{n.value=`f_${vr()}`}),e!==void 0&&l.watch(e,o=>{n.value=Da(o,t)}),n}return e!==void 0?l.computed(()=>Da(e(),t)):l.ref(`f_${vr()}`)}const Va=/^on[A-Z]/;function Jd(){const{attrs:e,vnode:t}=l.getCurrentInstance(),n={listeners:l.ref({}),attributes:l.ref({})};function o(){const r={},a={};for(const i in e)i!=="class"&&i!=="style"&&Va.test(i)===!1&&(r[i]=e[i]);for(const i in t.props)Va.test(i)===!0&&(a[i]=t.props[i]);n.attributes.value=r,n.listeners.value=a}return l.onBeforeUpdate(o),o(),n}function ef({validate:e,resetValidation:t,requiresQForm:n}){const o=l.inject(od,!1);if(o!==!1){const{props:r,proxy:a}=l.getCurrentInstance();Object.assign(a,{validate:e,resetValidation:t}),l.watch(()=>r.disable,i=>{i===!0?(typeof t=="function"&&t(),o.unbindComponent(a)):o.bindComponent(a)}),l.onMounted(()=>{r.disable!==!0&&o.bindComponent(a)}),l.onBeforeUnmount(()=>{r.disable!==!0&&o.unbindComponent(a)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const Ra=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ba=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Fa=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,bo=/^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])\)$/,yo=/^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)\)$/,br={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=>Ra.test(e),hexaColor:e=>Ba.test(e),hexOrHexaColor:e=>Fa.test(e),rgbColor:e=>bo.test(e),rgbaColor:e=>yo.test(e),rgbOrRgbaColor:e=>bo.test(e)||yo.test(e),hexOrRgbColor:e=>Ra.test(e)||bo.test(e),hexaOrRgbaColor:e=>Ba.test(e)||yo.test(e),anyColor:e=>Fa.test(e)||bo.test(e)||yo.test(e)},tf=[!0,!1,"ondemand"],nf={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>tf.includes(e)}};function of(e,t){const{props:n,proxy:o}=l.getCurrentInstance(),r=l.ref(!1),a=l.ref(null),i=l.ref(!1);ef({validate:S,resetValidation:p});let s=0,u;const f=l.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),d=l.computed(()=>n.disable!==!0&&f.value===!0&&t.value===!1),c=l.computed(()=>n.error===!0||r.value===!0),m=l.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:a.value);l.watch(()=>n.modelValue,()=>{i.value=!0,d.value===!0&&n.lazyRules===!1&&_()});function h(){n.lazyRules!=="ondemand"&&d.value===!0&&i.value===!0&&_()}l.watch(()=>n.reactiveRules,g=>{g===!0?u===void 0&&(u=l.watch(()=>n.rules,h,{immediate:!0,deep:!0})):u!==void 0&&(u(),u=void 0)},{immediate:!0}),l.watch(()=>n.lazyRules,h),l.watch(e,g=>{g===!0?i.value=!0:d.value===!0&&n.lazyRules!=="ondemand"&&_()});function p(){s++,t.value=!1,i.value=!1,r.value=!1,a.value=null,_.cancel()}function S(g=n.modelValue){if(n.disable===!0||f.value===!1)return!0;const v=++s,E=t.value!==!0?()=>{i.value=!0}:()=>{},b=(I,T)=>{I===!0&&E(),r.value=I,a.value=T||null,t.value=!1},A=[];for(let I=0;I<n.rules.length;I++){const T=n.rules[I];let B;if(typeof T=="function"?B=T(g,br):typeof T=="string"&&br[T]!==void 0&&(B=br[T](g)),B===!1||typeof B=="string")return b(!0,B),!1;B!==!0&&B!==void 0&&A.push(B)}return A.length===0?(b(!1),!0):(t.value=!0,Promise.all(A).then(I=>{if(I===void 0||Array.isArray(I)===!1||I.length===0)return v===s&&b(!1),!0;const T=I.find(B=>B===!1||typeof B=="string");return v===s&&b(T!==void 0,T),T===void 0},I=>(v===s&&(console.error(I),b(!0)),!1)))}const _=or(S,0);return l.onBeforeUnmount(()=>{u!==void 0&&u(),_.cancel()}),Object.assign(o,{resetValidation:p,validate:S}),st(o,"hasError",()=>c.value),{isDirtyModel:i,hasRules:f,hasError:c,errorMessage:m,validate:S,resetValidation:p}}let Xt=[],Un=[];function Ma(e){Un=Un.filter(t=>t!==e)}function rf(e){Ma(e),Un.push(e)}function qa(e){Ma(e),Un.length===0&&Xt.length!==0&&(Xt[Xt.length-1](),Xt=[])}function Eo(e){Un.length===0?e():Xt.push(e)}function lf(e){Xt=Xt.filter(t=>t!==e)}function $n(e){return e!=null&&(""+e).length!==0}const So={...{...ft,...nf,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]},yr=["update:modelValue","clear","focus","blur"];function Er({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:o,proxy:r}=l.getCurrentInstance(),a=mt(o,r.$q),i=Zd({required:e,getValue:()=>o.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?l.computed(()=>o.tag):{value:"label"},isDark:a,editable:l.computed(()=>o.disable!==!0&&o.readonly!==!0),innerLoading:l.ref(!1),focused:l.ref(!1),hasPopupOpen:!1,splitAttrs:Jd(),targetUid:i,rootRef:l.ref(null),targetRef:l.ref(null),controlRef:l.ref(null)}}function Sr(e){const{props:t,emit:n,slots:o,attrs:r,proxy:a}=l.getCurrentInstance(),{$q:i}=a;let s=null;e.hasValue===void 0&&(e.hasValue=l.computed(()=>$n(t.modelValue))),e.emitValue===void 0&&(e.emitValue=H=>{n("update:modelValue",H)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:N,onFocusout:P}),Object.assign(e,{clearValue:M,onControlFocusin:N,onControlFocusout:P,focus:T}),e.computedCounter===void 0&&(e.computedCounter=l.computed(()=>{if(t.counter!==!1){const H=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,Q=t.maxlength!==void 0?t.maxlength:t.maxValues;return H+(Q!==void 0?" / "+Q:"")}}));const{isDirtyModel:u,hasRules:f,hasError:d,errorMessage:c,resetValidation:m}=of(e.focused,e.innerLoading),h=e.floatingLabel!==void 0?l.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):l.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),p=l.computed(()=>t.bottomSlots===!0||t.hint!==void 0||f.value===!0||t.counter===!0||t.error!==null),S=l.computed(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),_=l.computed(()=>`q-field row no-wrap items-start q-field--${S.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(h.value===!0?" q-field--float":"")+(v.value===!0?" q-field--labeled":"")+(t.dense===!0?" q-field--dense":"")+(t.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":"")+(d.value===!0?" q-field--error":"")+(d.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&p.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),g=l.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(d.value===!0?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value===!0?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),v=l.computed(()=>t.labelSlot===!0||t.label!==void 0),E=l.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&d.value!==!0?` text-${t.labelColor}`:"")),b=l.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:h.value,modelValue:t.modelValue,emitValue:e.emitValue})),A=l.computed(()=>{const H={};return e.targetUid.value&&(H.for=e.targetUid.value),t.disable===!0&&(H["aria-disabled"]="true"),H});function I(){const H=document.activeElement;let Q=e.targetRef!==void 0&&e.targetRef.value;Q&&(H===null||H.id!==e.targetUid.value)&&(Q.hasAttribute("tabindex")===!0||(Q=Q.querySelector("[tabindex]")),Q&&Q!==H&&Q.focus({preventScroll:!0}))}function T(){Eo(I)}function B(){lf(I);const H=document.activeElement;H!==null&&e.rootRef.value.contains(H)&&H.blur()}function N(H){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",H))}function P(H,Q){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(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,n("blur",H)),Q!==void 0&&Q())})}function M(H){Me(H),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(),t.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",t.modelValue),l.nextTick(()=>{const Q=u.value;m(),u.value=Q})}function x(H){[13,32].includes(H.keyCode)&&M(H)}function K(){const H=[];return o.prepend!==void 0&&H.push(l.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:bt},o.prepend())),H.push(l.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},V())),d.value===!0&&t.noErrorIcon===!1&&H.push(Y("error",[l.h(We,{name:i.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?H.push(Y("inner-loading-append",o.loading!==void 0?o.loading():[l.h(aa,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&H.push(Y("inner-clearable-append",[l.h(We,{class:"q-field__focusable-action",name:t.clearIcon||i.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":i.lang.label.clear,onKeyup:x,onClick:M})])),o.append!==void 0&&H.push(l.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:bt},o.append())),e.getInnerAppend!==void 0&&H.push(Y("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&H.push(e.getControlChild()),H}function V(){const H=[];return t.prefix!==void 0&&t.prefix!==null&&H.push(l.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&H.push(e.getShadowControl()),e.getControl!==void 0?H.push(e.getControl()):o.rawControl!==void 0?H.push(o.rawControl()):o.control!==void 0&&H.push(l.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},o.control(b.value))),v.value===!0&&H.push(l.h("div",{class:E.value},Ve(o.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&H.push(l.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),H.concat(Ve(o.default))}function ne(){let H,Q;d.value===!0?c.value!==null?(H=[l.h("div",{role:"alert"},c.value)],Q=`q--slot-error-${c.value}`):(H=Ve(o.error),Q="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(H=[l.h("div",t.hint)],Q=`q--slot-hint-${t.hint}`):(H=Ve(o.hint),Q="q--slot-hint"));const oe=t.counter===!0||o.counter!==void 0;if(t.hideBottomSpace===!0&&oe===!1&&H===void 0)return;const O=l.h("div",{key:Q,class:"q-field__messages col"},H);return l.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:bt},[t.hideBottomSpace===!0?O:l.h(l.Transition,{name:"q-transition--field-message"},()=>O),oe===!0?l.h("div",{class:"q-field__counter"},o.counter!==void 0?o.counter():e.computedCounter.value):null])}function Y(H,Q){return Q===null?null:l.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},Q)}let $=!1;return l.onDeactivated(()=>{$=!0}),l.onActivated(()=>{$===!0&&t.autofocus===!0&&a.focus()}),t.autofocus===!0&&l.onMounted(()=>{a.focus()}),l.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(a,{focus:T,blur:B}),function(){const Q=e.getControl===void 0&&o.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...A.value}:A.value;return l.h(e.tag.value,{ref:e.rootRef,class:[_.value,r.class],style:r.style,...Q},[o.before!==void 0?l.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:bt},o.before()):null,l.h("div",{class:"q-field__inner relative-position col self-stretch"},[l.h("div",{ref:e.controlRef,class:g.value,tabindex:-1,...e.controlEvents},K()),p.value===!0?ne():null]),o.after!==void 0?l.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:bt},o.after()):null])}}const af=Ee({name:"QField",inheritAttrs:!1,props:{...So,tag:{type:String,default:"label"}},emits:yr,setup(){return Sr(Er({tagProp:!0}))}}),sf={xs:8,sm:10,md:14,lg:20,xl:24},uf=Ee({name:"QChip",props:{...ft,...Fn,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=l.getCurrentInstance(),r=mt(e,o),a=Mn(e,sf),i=l.computed(()=>e.selected===!0||e.icon!==void 0),s=l.computed(()=>e.selected===!0?e.iconSelected||o.iconSet.chip.selected:e.icon),u=l.computed(()=>e.iconRemove||o.iconSet.chip.remove),f=l.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),d=l.computed(()=>{const _=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}`:"")+(_?` text-${_} 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":"")+(r.value===!0?" q-chip--dark q-dark":"")}),c=l.computed(()=>{const _=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},g={..._,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||o.lang.label.remove};return{chip:_,remove:g}});function m(_){_.keyCode===13&&h(_)}function h(_){e.disable||(n("update:selected",!e.selected),n("click",_))}function p(_){(_.keyCode===void 0||_.keyCode===13)&&(Me(_),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function S(){const _=[];f.value===!0&&_.push(l.h("div",{class:"q-focus-helper"})),i.value===!0&&_.push(l.h(We,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const g=e.label!==void 0?[l.h("div",{class:"ellipsis"},[e.label])]:void 0;return _.push(l.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},id(t.default,g))),e.iconRight&&_.push(l.h(We,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&_.push(l.h(We,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:u.value,...c.value.remove,onClick:p,onKeyup:p})),_}return()=>{if(e.modelValue===!1)return;const _={class:d.value,style:a.value};return f.value===!0&&Object.assign(_,c.value.chip,{onClick:h,onKeyup:m}),sd("div",_,S(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[ca,e.ripple]])}}}),qt=Ee({name:"QItem",props:{...ft,...Td,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:t,emit:n}){const{proxy:{$q:o}}=l.getCurrentInstance(),r=mt(e,o),{hasLink:a,linkAttrs:i,linkClass:s,linkTag:u,navigateOnClick:f}=pa(),d=l.ref(null),c=l.ref(null),m=l.computed(()=>e.clickable===!0||a.value===!0||e.tag==="label"),h=l.computed(()=>e.disable!==!0&&m.value===!0),p=l.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(r.value===!0?" q-item--dark":"")+(a.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(h.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":""):"")),S=l.computed(()=>e.insetLevel===void 0?null:{["padding"+(o.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function _(E){h.value===!0&&(c.value!==null&&(E.qKeyEvent!==!0&&document.activeElement===d.value?c.value.focus():document.activeElement===c.value&&d.value.focus()),f(E))}function g(E){if(h.value===!0&&Qt(E,[13,32])===!0){Me(E),E.qKeyEvent=!0;const b=new MouseEvent("click",E);b.qKeyEvent=!0,d.value.dispatchEvent(b)}n("keyup",E)}function v(){const E=Jl(t.default,[]);return h.value===!0&&E.unshift(l.h("div",{class:"q-focus-helper",tabindex:-1,ref:c})),E}return()=>{const E={ref:d,class:p.value,style:S.value,role:"listitem",onClick:_,onKeyup:g};return h.value===!0?(E.tabindex=e.tabindex||"0",Object.assign(E,i.value)):m.value===!0&&(E["aria-disabled"]="true"),l.h(u.value,E,v())}}}),Et=Ee({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=l.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()=>l.h("div",{class:n.value},Ve(t.default))}}),ht=Ee({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=l.computed(()=>parseInt(e.lines,10)),o=l.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":"")+(n.value===1?" ellipsis":"")),r=l.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>l.h("div",{style:r.value,class:o.value},Ve(t.default))}});function cf(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),fo.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const df={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function ff({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:o,proxy:r,emit:a}=l.getCurrentInstance(),i=l.ref(null);let s=null;function u(h){return i.value===null?!1:h===void 0||h.touches===void 0||h.touches.length<=1}const f={};n===void 0&&(Object.assign(f,{hide(h){r.hide(h)},toggle(h){r.toggle(h),h.qAnchorHandled=!0},toggleKey(h){Qt(h,13)===!0&&f.toggle(h)},contextClick(h){r.hide(h),bt(h),l.nextTick(()=>{r.show(h),h.qAnchorHandled=!0})},prevent:bt,mobileTouch(h){if(f.mobileCleanup(h),u(h)!==!0)return;r.hide(h),i.value.classList.add("non-selectable");const p=h.target;nr(f,"anchor",[[p,"touchmove","mobileCleanup","passive"],[p,"touchend","mobileCleanup","passive"],[p,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,r.show(h),h.qAnchorHandled=!0},300)},mobileCleanup(h){i.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&h!==void 0&&cf()}}),n=function(h=o.contextMenu){if(o.noParentEvent===!0||i.value===null)return;let p;h===!0?r.$q.platform.is.mobile===!0?p=[[i.value,"touchstart","mobileTouch","passive"]]:p=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:p=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],nr(f,"anchor",p)});function d(){$l(f,"anchor")}function c(h){for(i.value=h;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;n()}function m(){if(o.target===!1||o.target===""||r.$el.parentNode===null)i.value=null;else if(o.target===!0)c(r.$el.parentNode);else{let h=o.target;if(typeof o.target=="string")try{h=document.querySelector(o.target)}catch{h=void 0}h!=null?(i.value=h.$el||h,n()):(i.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return l.watch(()=>o.contextMenu,h=>{i.value!==null&&(d(),n(h))}),l.watch(()=>o.target,()=>{i.value!==null&&d(),m()}),l.watch(()=>o.noParentEvent,h=>{i.value!==null&&(h===!0?d():n())}),l.onMounted(()=>{m(),t!==!0&&o.modelValue===!0&&i.value===null&&a("update:modelValue",!1)}),l.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),d()}),{anchorEl:i,canShow:u,anchorEvents:f}}function mf(e,t){const n=l.ref(null);let o;function r(s,u){const f=`${u!==void 0?"add":"remove"}EventListener`,d=u!==void 0?u:o;s!==window&&s[f]("scroll",d,Ke.passive),window[f]("scroll",d,Ke.passive),o=u}function a(){n.value!==null&&(r(n.value),n.value=null)}const i=l.watch(()=>e.noParentEvent,()=>{n.value!==null&&(a(),t())});return l.onBeforeUnmount(i),{localScrollTarget:n,unconfigureScrollTarget:a,changeScrollEvent:r}}const Ua={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},$a=["beforeShow","show","beforeHide","hide"];function Ha({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:r,processOnMount:a}){const i=l.getCurrentInstance(),{props:s,emit:u,proxy:f}=i;let d;function c(v){e.value===!0?p(v):m(v)}function m(v){if(s.disable===!0||v!==void 0&&v.qAnchorHandled===!0||t!==void 0&&t(v)!==!0)return;const E=s["onUpdate:modelValue"]!==void 0;E===!0&&(u("update:modelValue",!0),d=v,l.nextTick(()=>{d===v&&(d=void 0)})),(s.modelValue===null||E===!1)&&h(v)}function h(v){e.value!==!0&&(e.value=!0,u("beforeShow",v),o!==void 0?o(v):u("show",v))}function p(v){if(s.disable===!0)return;const E=s["onUpdate:modelValue"]!==void 0;E===!0&&(u("update:modelValue",!1),d=v,l.nextTick(()=>{d===v&&(d=void 0)})),(s.modelValue===null||E===!1)&&S(v)}function S(v){e.value!==!1&&(e.value=!1,u("beforeHide",v),r!==void 0?r(v):u("hide",v))}function _(v){s.disable===!0&&v===!0?s["onUpdate:modelValue"]!==void 0&&u("update:modelValue",!1):v===!0!==e.value&&(v===!0?h:S)(d)}l.watch(()=>s.modelValue,_),n!==void 0&&fr(i)===!0&&l.watch(()=>f.$route.fullPath,()=>{n.value===!0&&e.value===!0&&p()}),l.onMounted(()=>{_(s.modelValue)});const g={show:m,hide:p,toggle:c};return Object.assign(f,g),g}let hf=1,gf=document.body;function _f(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${hf++}`:e,go.globalNodes!==void 0){const o=go.globalNodes.class;o!==void 0&&(n.className=o)}return gf.appendChild(n),n}function pf(e){e.remove()}const Hn=[];function vf(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return dr(e)}else if(e.__qPortal===!0){const n=dr(e);return n!==void 0&&n.$options.name==="QPopupProxy"?(e.hide(t),n):e}e=dr(e)}while(e!=null)}const bf=Ee({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function yf(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 za(e,t,n,o){const r=l.ref(!1),a=l.ref(!1);let i=null;const s={},u=o==="dialog"&&yf(e);function f(c){if(c===!0){qa(s),a.value=!0;return}a.value=!1,r.value===!1&&(u===!1&&i===null&&(i=_f(!1,o)),r.value=!0,Hn.push(e.proxy),rf(s))}function d(c){if(a.value=!1,c!==!0)return;qa(s),r.value=!1;const m=Hn.indexOf(e.proxy);m!==-1&&Hn.splice(m,1),i!==null&&(pf(i),i=null)}return l.onUnmounted(()=>{d(!0)}),e.proxy.__qPortal=!0,st(e.proxy,"contentEl",()=>t.value),{showPortal:f,hidePortal:d,portalIsActive:r,portalIsAccessible:a,renderPortal:()=>u===!0?n():r.value===!0?[l.h(l.Teleport,{to:i},l.h(bf,n))]:void 0}}const ja={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Ka(e,t=()=>{},n=()=>{}){return{transitionProps:l.computed(()=>{const o=`q-transition--${e.transitionShow||t()}`,r=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${r}-leave-from`,leaveActiveClass:`${r}-leave-active`,leaveToClass:`${r}-leave-to`}}),transitionStyle:l.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Wa(){let e;const t=l.getCurrentInstance();function n(){e=void 0}return l.onDeactivated(n),l.onBeforeUnmount(n),{removeTick:n,registerTick(o){e=o,l.nextTick(()=>{e===o&&(fa(t)===!1&&e(),e=void 0)})}}}function Ga(){let e=null;const t=l.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return l.onDeactivated(n),l.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(o,r){n(),fa(t)===!1&&(e=setTimeout(()=>{e=null,o()},r))}}}const Zt=[];let vn;function Ef(e){vn=e.keyCode===27}function Sf(){vn===!0&&(vn=!1)}function Cf(e){vn===!0&&(vn=!1,Qt(e,27)===!0&&Zt[Zt.length-1](e))}function Ya(e){window[e]("keydown",Ef),window[e]("blur",Sf),window[e]("keyup",Cf),vn=!1}function Qa(e){De.is.desktop===!0&&(Zt.push(e),Zt.length===1&&Ya("addEventListener"))}function Co(e){const t=Zt.indexOf(e);t!==-1&&(Zt.splice(t,1),Zt.length===0&&Ya("removeEventListener"))}const Jt=[];function Xa(e){Jt[Jt.length-1](e)}function Za(e){De.is.desktop===!0&&(Jt.push(e),Jt.length===1&&document.body.addEventListener("focusin",Xa))}function Cr(e){const t=Jt.indexOf(e);t!==-1&&(Jt.splice(t,1),Jt.length===0&&document.body.removeEventListener("focusin",Xa))}const{notPassiveCapture:ko}=Ke,en=[];function wo(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=Hn.length-1;for(;n>=0;){const o=Hn[n].$;if(o.type.name==="QTooltip"){n--;continue}if(o.type.name!=="QDialog")break;if(o.props.seamless!==!0)return;n--}for(let o=en.length-1;o>=0;o--){const r=en[o];if((r.anchorEl.value===null||r.anchorEl.value.contains(t)===!1)&&(t===document.body||r.innerRef.value!==null&&r.innerRef.value.contains(t)===!1))e.qClickOutside=!0,r.onClickOutside(e);else return}}function kf(e){en.push(e),en.length===1&&(document.addEventListener("mousedown",wo,ko),document.addEventListener("touchstart",wo,ko))}function Ja(e){const t=en.findIndex(n=>n===e);t!==-1&&(en.splice(t,1),en.length===0&&(document.removeEventListener("mousedown",wo,ko),document.removeEventListener("touchstart",wo,ko)))}let ei,ti;function ni(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function wf(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const kr={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{kr[`${e}#ltr`]=e,kr[`${e}#rtl`]=e});function oi(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:kr[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function Tf(e,t){let{top:n,left:o,right:r,bottom:a,width:i,height:s}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],o-=t[0],a+=t[1],r+=t[0],i+=t[0],s+=t[1]),{top:n,bottom:a,height:s,left:o,right:r,width:i,middle:o+(r-o)/2,center:n+(a-n)/2}}function Of(e,t,n){let{top:o,left:r}=e.getBoundingClientRect();return o+=t.top,r+=t.left,n!==void 0&&(o+=n[1],r+=n[0]),{top:o,bottom:o+1,height:1,left:r,right:r+1,width:1,middle:r,center:o}}function Af(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function ri(e,t,n,o){return{top:e[n.vertical]-t[o.vertical],left:e[n.horizontal]-t[o.horizontal]}}function li(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{li(e,t+1)},10);return}const{targetEl:n,offset:o,anchorEl:r,anchorOrigin:a,selfOrigin:i,absoluteOffset:s,fit:u,cover:f,maxHeight:d,maxWidth:c}=e;if(De.is.ios===!0&&window.visualViewport!==void 0){const I=document.body.style,{offsetLeft:T,offsetTop:B}=window.visualViewport;T!==ei&&(I.setProperty("--q-pe-left",T+"px"),ei=T),B!==ti&&(I.setProperty("--q-pe-top",B+"px"),ti=B)}const{scrollLeft:m,scrollTop:h}=n,p=s===void 0?Tf(r,f===!0?[0,0]:o):Of(r,s,o);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:c,maxHeight:d,visibility:"visible"});const{offsetWidth:S,offsetHeight:_}=n,{elWidth:g,elHeight:v}=u===!0||f===!0?{elWidth:Math.max(p.width,S),elHeight:f===!0?Math.max(p.height,_):_}:{elWidth:S,elHeight:_};let E={maxWidth:c,maxHeight:d};(u===!0||f===!0)&&(E.minWidth=p.width+"px",f===!0&&(E.minHeight=p.height+"px")),Object.assign(n.style,E);const b=Af(g,v);let A=ri(p,b,a,i);if(s===void 0||o===void 0)wr(A,p,b,a,i);else{const{top:I,left:T}=A;wr(A,p,b,a,i);let B=!1;if(A.top!==I){B=!0;const N=2*o[1];p.center=p.top-=N,p.bottom-=N+2}if(A.left!==T){B=!0;const N=2*o[0];p.middle=p.left-=N,p.right-=N+2}B===!0&&(A=ri(p,b,a,i),wr(A,p,b,a,i))}E={top:A.top+"px",left:A.left+"px"},A.maxHeight!==void 0&&(E.maxHeight=A.maxHeight+"px",p.height>A.maxHeight&&(E.minHeight=E.maxHeight)),A.maxWidth!==void 0&&(E.maxWidth=A.maxWidth+"px",p.width>A.maxWidth&&(E.minWidth=E.maxWidth)),Object.assign(n.style,E),n.scrollTop!==h&&(n.scrollTop=h),n.scrollLeft!==m&&(n.scrollLeft=m)}function wr(e,t,n,o,r){const a=n.bottom,i=n.right,s=jd(),u=window.innerHeight-s,f=document.body.clientWidth;if(e.top<0||e.top+a>u)if(r.vertical==="center")e.top=t[o.vertical]>u/2?Math.max(0,u-a):0,e.maxHeight=Math.min(a,u);else if(t[o.vertical]>u/2){const d=Math.min(u,o.vertical==="center"?t.center:o.vertical===r.vertical?t.bottom:t.top);e.maxHeight=Math.min(a,d),e.top=Math.max(0,d-a)}else e.top=Math.max(0,o.vertical==="center"?t.center:o.vertical===r.vertical?t.top:t.bottom),e.maxHeight=Math.min(a,u-e.top);if(e.left<0||e.left+i>f)if(e.maxWidth=Math.min(i,f),r.horizontal==="middle")e.left=t[o.horizontal]>f/2?Math.max(0,f-i):0;else if(t[o.horizontal]>f/2){const d=Math.min(f,o.horizontal==="middle"?t.middle:o.horizontal===r.horizontal?t.right:t.left);e.maxWidth=Math.min(i,d),e.left=Math.max(0,d-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?t.middle:o.horizontal===r.horizontal?t.left:t.right),e.maxWidth=Math.min(i,f-e.left)}const ai=Ee({name:"QMenu",inheritAttrs:!1,props:{...df,...Ua,...ft,...ja,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ni},self:{type:String,validator:ni},offset:{type:Array,validator:wf},scrollTarget:Na,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...$a,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){let r=null,a,i,s;const u=l.getCurrentInstance(),{proxy:f}=u,{$q:d}=f,c=l.ref(null),m=l.ref(!1),h=l.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),p=mt(e,d),{registerTick:S,removeTick:_}=Wa(),{registerTimeout:g}=Ga(),{transitionProps:v,transitionStyle:E}=Ka(e),{localScrollTarget:b,changeScrollEvent:A,unconfigureScrollTarget:I}=mf(e,j),{anchorEl:T,canShow:B}=ff({showing:m}),{hide:N}=Ha({showing:m,canShow:B,handleShow:oe,handleHide:O,hideOnRouteChange:h,processOnMount:!0}),{showPortal:P,hidePortal:M,renderPortal:x}=za(u,c,fe,"menu"),K={anchorEl:T,innerRef:c,onClickOutside(z){if(e.persistent!==!0&&m.value===!0)return N(z),(z.type==="touchstart"||z.target.classList.contains("q-dialog__backdrop"))&&Me(z),!0}},V=l.computed(()=>oi(e.anchor||(e.cover===!0?"center middle":"bottom start"),d.lang.rtl)),ne=l.computed(()=>e.cover===!0?V.value:oi(e.self||"top start",d.lang.rtl)),Y=l.computed(()=>(e.square===!0?" q-menu--square":"")+(p.value===!0?" q-menu--dark q-dark":"")),$=l.computed(()=>e.autoClose===!0?{onClick:re}:{}),H=l.computed(()=>m.value===!0&&e.persistent!==!0);l.watch(H,z=>{z===!0?(Qa(U),kf(K)):(Co(U),Ja(K))});function Q(){Eo(()=>{let z=c.value;z&&z.contains(document.activeElement)!==!0&&(z=z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||z.querySelector("[autofocus], [data-autofocus]")||z,z.focus({preventScroll:!0}))})}function oe(z){if(r=e.noRefocus===!1?document.activeElement:null,Za(se),P(),j(),a=void 0,z!==void 0&&(e.touchPosition||e.contextMenu)){const be=Ul(z);if(be.left!==void 0){const{top:$e,left:_t}=T.value.getBoundingClientRect();a={left:be.left-_t,top:be.top-$e}}}i===void 0&&(i=l.watch(()=>d.screen.width+"|"+d.screen.height+"|"+e.self+"|"+e.anchor+"|"+d.lang.rtl,G)),e.noFocus!==!0&&document.activeElement.blur(),S(()=>{G(),e.noFocus!==!0&&Q()}),g(()=>{d.platform.is.ios===!0&&(s=e.autoClose,c.value.click()),G(),P(!0),n("show",z)},e.transitionDuration)}function O(z){_(),M(),w(!0),r!==null&&(z===void 0||z.qClickOutside!==!0)&&(((z&&z.type.indexOf("key")===0?r.closest('[tabindex]:not([tabindex^="-"])'):void 0)||r).focus(),r=null),g(()=>{M(!0),n("hide",z)},e.transitionDuration)}function w(z){a=void 0,i!==void 0&&(i(),i=void 0),(z===!0||m.value===!0)&&(Cr(se),I(),Ja(K),Co(U)),z!==!0&&(r=null)}function j(){(T.value!==null||e.scrollTarget!==void 0)&&(b.value=Pa(T.value,e.scrollTarget),A(b.value,G))}function re(z){s!==!0?(vf(f,z),n("click",z)):s=!1}function se(z){H.value===!0&&e.noFocus!==!0&&ia(c.value,z.target)!==!0&&Q()}function U(z){n("escapeKey"),N(z)}function G(){li({targetEl:c.value,offset:e.offset,anchorEl:T.value,anchorOrigin:V.value,selfOrigin:ne.value,absoluteOffset:a,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function fe(){return l.h(l.Transition,v.value,()=>m.value===!0?l.h("div",{role:"menu",...o,ref:c,tabindex:-1,class:["q-menu q-position-engine scroll"+Y.value,o.class],style:[o.style,E.value],...$.value},Ve(t.default)):null)}return l.onBeforeUnmount(w),Object.assign(f,{focus:Q,updatePosition:G}),x}});function If(e,t,n){let o;function r(){o!==void 0&&(Bn.remove(o),o=void 0)}return l.onBeforeUnmount(()=>{e.value===!0&&r()}),{removeFromHistory:r,addToHistory(){o={condition:()=>n.value===!0,handler:t},Bn.add(o)}}}let zn=0,Tr,Or,jn,Ar=!1,ii,si,ui,tn=null;function xf(e){Nf(e)&&Me(e)}function Nf(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=zc(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),r=n||o?e.deltaY:e.deltaX;for(let a=0;a<t.length;a++){const i=t[a];if(Kd(i,o))return o?r<0&&i.scrollTop===0?!0:r>0&&i.scrollTop+i.clientHeight===i.scrollHeight:r<0&&i.scrollLeft===0?!0:r>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function ci(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function To(e){Ar!==!0&&(Ar=!0,requestAnimationFrame(()=>{Ar=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:o}=document.scrollingElement;(jn===void 0||t!==window.innerHeight)&&(jn=n-t,document.scrollingElement.scrollTop=o),o>jn&&(document.scrollingElement.scrollTop-=Math.ceil((o-jn)/8))}))}function di(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:o,overflowX:r}=window.getComputedStyle(t);Tr=zd(window),Or=Hd(window),ii=t.style.left,si=t.style.top,ui=window.location.href,t.style.left=`-${Tr}px`,t.style.top=`-${Or}px`,r!=="hidden"&&(r==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),o!=="hidden"&&(o==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,De.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",To,Ke.passiveCapture),window.visualViewport.addEventListener("scroll",To,Ke.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ci,Ke.passiveCapture))}De.is.desktop===!0&&De.is.mac===!0&&window[`${e}EventListener`]("wheel",xf,Ke.notPassive),e==="remove"&&(De.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",To,Ke.passiveCapture),window.visualViewport.removeEventListener("scroll",To,Ke.passiveCapture)):window.removeEventListener("scroll",ci,Ke.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=ii,t.style.top=si,window.location.href===ui&&window.scrollTo(Tr,Or),jn=void 0)}function Pf(e){let t="add";if(e===!0){if(zn++,tn!==null){clearTimeout(tn),tn=null;return}if(zn>1)return}else{if(zn===0||(zn--,zn>0))return;if(t="remove",De.is.ios===!0&&De.is.nativeMobile===!0){tn!==null&&clearTimeout(tn),tn=setTimeout(()=>{di(t),tn=null},100);return}}di(t)}function Lf(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,Pf(t))}}}let Oo=0;const Df={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"},fi={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Vf=Ee({name:"QDialog",inheritAttrs:!1,props:{...Ua,...ja,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...$a,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){const r=l.getCurrentInstance(),a=l.ref(null),i=l.ref(!1),s=l.ref(!1);let u=null,f=null,d,c;const m=l.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:h}=Lf(),{registerTimeout:p}=Ga(),{registerTick:S,removeTick:_}=Wa(),{transitionProps:g,transitionStyle:v}=Ka(e,()=>fi[e.position][0],()=>fi[e.position][1]),E=l.computed(()=>v.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:b,hidePortal:A,portalIsAccessible:I,renderPortal:T}=za(r,a,se,"dialog"),{hide:B}=Ha({showing:i,hideOnRouteChange:m,handleShow:ne,handleHide:Y,processOnMount:!0}),{addToHistory:N,removeFromHistory:P}=If(i,B,m),M=l.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${Df[e.position]}`+(s.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":"")),x=l.computed(()=>i.value===!0&&e.seamless!==!0),K=l.computed(()=>e.autoClose===!0?{onClick:w}:{}),V=l.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${x.value===!0?"modal":"seamless"}`,o.class]);l.watch(()=>e.maximized,U=>{i.value===!0&&O(U)}),l.watch(x,U=>{h(U),U===!0?(Za(re),Qa(Q)):(Cr(re),Co(Q))});function ne(U){N(),f=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,O(e.maximized),b(),s.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),S($)):_(),p(()=>{if(r.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:G,bottom:fe}=document.activeElement.getBoundingClientRect(),{innerHeight:z}=window,be=window.visualViewport!==void 0?window.visualViewport.height:z;G>0&&fe>be/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-be,fe>=z?1/0:Math.ceil(document.scrollingElement.scrollTop+fe-be/2))),document.activeElement.scrollIntoView()}c=!0,a.value.click(),c=!1}b(!0),s.value=!1,n("show",U)},e.transitionDuration)}function Y(U){_(),P(),oe(!0),s.value=!0,A(),f!==null&&(((U&&U.type.indexOf("key")===0?f.closest('[tabindex]:not([tabindex^="-"])'):void 0)||f).focus(),f=null),p(()=>{A(!0),s.value=!1,n("hide",U)},e.transitionDuration)}function $(U){Eo(()=>{let G=a.value;if(G!==null){if(U!==void 0){const fe=G.querySelector(U);if(fe!==null){fe.focus({preventScroll:!0});return}}G.contains(document.activeElement)!==!0&&(G=G.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||G.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||G.querySelector("[autofocus], [data-autofocus]")||G,G.focus({preventScroll:!0}))}})}function H(U){U&&typeof U.focus=="function"?U.focus({preventScroll:!0}):$(),n("shake");const G=a.value;G!==null&&(G.classList.remove("q-animate--scale"),G.classList.add("q-animate--scale"),u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,a.value!==null&&(G.classList.remove("q-animate--scale"),$())},170))}function Q(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&H():(n("escapeKey"),B()))}function oe(U){u!==null&&(clearTimeout(u),u=null),(U===!0||i.value===!0)&&(O(!1),e.seamless!==!0&&(h(!1),Cr(re),Co(Q))),U!==!0&&(f=null)}function O(U){U===!0?d!==!0&&(Oo<1&&document.body.classList.add("q-body--dialog"),Oo++,d=!0):d===!0&&(Oo<2&&document.body.classList.remove("q-body--dialog"),Oo--,d=!1)}function w(U){c!==!0&&(B(U),n("click",U))}function j(U){e.persistent!==!0&&e.noBackdropDismiss!==!0?B(U):e.noShake!==!0&&H()}function re(U){e.allowFocusOutside!==!0&&I.value===!0&&ia(a.value,U.target)!==!0&&$('[tabindex]:not([tabindex="-1"])')}Object.assign(r.proxy,{focus:$,shake:H,__updateRefocusTarget(U){f=U||null}}),l.onBeforeUnmount(oe);function se(){return l.h("div",{role:"dialog","aria-modal":x.value===!0?"true":"false",...o,class:V.value},[l.h(l.Transition,{name:"q-transition--fade",appear:!0},()=>x.value===!0?l.h("div",{class:"q-dialog__backdrop fixed-full",style:E.value,"aria-hidden":"true",tabindex:-1,onClick:j}):null),l.h(l.Transition,g.value,()=>i.value===!0?l.h("div",{ref:a,class:M.value,style:v.value,tabindex:-1,...K.value},Ve(t.default)):null)])}return T}}),Ir={name:String};function Rf(e={}){return(t,n,o)=>{t[n](l.h("input",{class:"hidden"+(o||""),...e.value}))}}function mi(e){return l.computed(()=>e.name||e.for)}const Bf=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Ff=/[\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,Mf=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,qf=/[a-z0-9_ -]$/i;function hi(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(De.is.firefox===!0?qf.test(n.data)===!1:Bf.test(n.data)===!0||Ff.test(n.data)===!0||Mf.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}function gi(e,t,n){if(n<=t)return t;const o=n-t+1;let r=t+(e-t)%o;return r<t&&(r=o+r),r===0?0:r}const _i=e=>["add","add-unique","toggle"].includes(e),Uf=".*+?^${}()|[]\\",$f=Object.keys(So);function xr(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return o=>o!==null&&typeof o=="object"&&n in o?o[n]:o}const Nr=Ee({name:"QSelect",inheritAttrs:!1,props:{..._r,...Ir,...So,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:_i},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:_r.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...yr,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:o}=l.getCurrentInstance(),{$q:r}=o,a=l.ref(!1),i=l.ref(!1),s=l.ref(-1),u=l.ref(""),f=l.ref(!1),d=l.ref(!1);let c=null,m=null,h,p,S,_=null,g,v,E,b;const A=l.ref(null),I=l.ref(null),T=l.ref(null),B=l.ref(null),N=l.ref(null),P=mi(e),M=hi(L),x=l.computed(()=>Array.isArray(e.options)?e.options.length:0),K=l.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:V,virtualScrollSliceSizeComputed:ne,localResetVirtualScroll:Y,padVirtualScroll:$,onVirtualScrollEvt:H,scrollTo:Q,setVirtualScrollSize:oe}=xa({virtualScrollLength:x,getVirtualScrollTarget:Ll,getVirtualScrollEl:Jo,virtualScrollItemSizeComputed:K}),O=Er(),w=l.computed(()=>{const C=e.mapOptions===!0&&e.multiple!==!0,J=e.modelValue!==void 0&&(e.modelValue!==null||C===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const ee=e.mapOptions===!0&&h!==void 0?h:[],ge=J.map(Te=>so(Te,ee));return e.modelValue===null&&C===!0?ge.filter(Te=>Te!==null):ge}return J}),j=l.computed(()=>{const C={};return $f.forEach(J=>{const ee=e[J];ee!==void 0&&(C[J]=ee)}),C}),re=l.computed(()=>e.optionsDark===null?O.isDark.value:e.optionsDark),se=l.computed(()=>$n(w.value)),U=l.computed(()=>{let C="q-field__input q-placeholder col";return e.hideSelected===!0||w.value.length===0?[C,e.inputClass]:(C+=" q-field__input--padding",e.inputClass===void 0?C:[C,e.inputClass])}),G=l.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),fe=l.computed(()=>x.value===0),z=l.computed(()=>w.value.map(C=>he.value(C)).join(", ")),be=l.computed(()=>e.displayValue!==void 0?e.displayValue:z.value),$e=l.computed(()=>e.optionsHtml===!0?()=>!0:C=>C!=null&&C.html===!0),_t=l.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||w.value.some($e.value))),Pe=l.computed(()=>O.focused.value===!0?e.tabindex:-1),it=l.computed(()=>{const C={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":a.value===!0?"true":"false","aria-controls":`${O.targetUid.value}_lb`};return s.value>=0&&(C["aria-activedescendant"]=`${O.targetUid.value}_${s.value}`),C}),He=l.computed(()=>({id:`${O.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),Ye=l.computed(()=>w.value.map((C,J)=>({index:J,opt:C,html:$e.value(C),selected:!0,removeAtIndex:Oe,toggleOption:et,tabindex:Pe.value}))),pt=l.computed(()=>{if(x.value===0)return[];const{from:C,to:J}=V.value;return e.options.slice(C,J).map((ee,ge)=>{const Te=ve.value(ee)===!0,ke=Bt(ee)===!0,Qe=C+ge,Le={clickable:!0,active:ke,activeClass:R.value,manualFocus:!0,focused:!1,disable:Te,tabindex:-1,dense:e.optionsDense,dark:re.value,role:"option","aria-selected":ke===!0?"true":"false",id:`${O.targetUid.value}_${Qe}`,onClick:()=>{et(ee)}};return Te!==!0&&(s.value===Qe&&(Le.focused=!0),r.platform.is.desktop===!0&&(Le.onMousemove=()=>{a.value===!0&&Fe(Qe)})),{index:Qe,opt:ee,html:$e.value(ee),label:he.value(ee),selected:Le.active,focused:Le.focused,toggleOption:et,setOptionIndex:Fe,itemProps:Le}})}),y=l.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:r.iconSet.arrow.dropdown),k=l.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),R=l.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),Z=l.computed(()=>xr(e.optionValue,"value")),he=l.computed(()=>xr(e.optionLabel,"label")),ve=l.computed(()=>xr(e.optionDisable,"disable")),ce=l.computed(()=>w.value.map(Z.value)),D=l.computed(()=>{const C={onInput:L,onChange:M,onKeydown:dn,onKeyup:Nn,onKeypress:co,onFocus:uo,onClick(J){p===!0&&Ot(J)}};return C.onCompositionstart=C.onCompositionupdate=C.onCompositionend=M,C});l.watch(w,C=>{h=C,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&O.innerLoading.value!==!0&&(i.value!==!0&&a.value!==!0||se.value!==!0)&&(S!==!0&&Rn(),(i.value===!0||a.value===!0)&&ae(""))},{immediate:!0}),l.watch(()=>e.fillInput,Rn),l.watch(a,Bl),l.watch(x,Lv);function q(C){return e.emitValue===!0?Z.value(C):C}function me(C){if(C!==-1&&C<w.value.length)if(e.multiple===!0){const J=e.modelValue.slice();n("remove",{index:C,value:J.splice(C,1)[0]}),n("update:modelValue",J)}else n("update:modelValue",null)}function Oe(C){me(C),O.focus()}function vt(C,J){const ee=q(C);if(e.multiple!==!0){e.fillInput===!0&&le(he.value(C),!0,!0),n("update:modelValue",ee);return}if(w.value.length===0){n("add",{index:0,value:ee}),n("update:modelValue",e.multiple===!0?[ee]:ee);return}if(J===!0&&Bt(C)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const ge=e.modelValue.slice();n("add",{index:ge.length,value:ee}),ge.push(ee),n("update:modelValue",ge)}function et(C,J){if(O.editable.value!==!0||C===void 0||ve.value(C)===!0)return;const ee=Z.value(C);if(e.multiple!==!0){J!==!0&&(le(e.fillInput===!0?he.value(C):"",!0,!0),fn()),I.value!==null&&I.value.focus(),(w.value.length===0||Nt(Z.value(w.value[0]),ee)!==!0)&&n("update:modelValue",e.emitValue===!0?ee:C);return}if((p!==!0||f.value===!0)&&O.focus(),uo(),w.value.length===0){const ke=e.emitValue===!0?ee:C;n("add",{index:0,value:ke}),n("update:modelValue",e.multiple===!0?[ke]:ke);return}const ge=e.modelValue.slice(),Te=ce.value.findIndex(ke=>Nt(ke,ee));if(Te!==-1)n("remove",{index:Te,value:ge.splice(Te,1)[0]});else{if(e.maxValues!==void 0&&ge.length>=e.maxValues)return;const ke=e.emitValue===!0?ee:C;n("add",{index:ge.length,value:ke}),ge.push(ke)}n("update:modelValue",ge)}function Fe(C){if(r.platform.is.desktop!==!0)return;const J=C!==-1&&C<x.value?C:-1;s.value!==J&&(s.value=J)}function ze(C=1,J){if(a.value===!0){let ee=s.value;do ee=gi(ee+C,-1,x.value-1);while(ee!==-1&&ee!==s.value&&ve.value(e.options[ee])===!0);s.value!==ee&&(Fe(ee),Q(ee),J!==!0&&e.useInput===!0&&e.fillInput===!0&&X(ee>=0?he.value(e.options[ee]):g,!0))}}function so(C,J){const ee=ge=>Nt(Z.value(ge),C);return e.options.find(ee)||J.find(ee)||C}function Bt(C){const J=Z.value(C);return ce.value.find(ee=>Nt(ee,J))!==void 0}function uo(C){e.useInput===!0&&I.value!==null&&(C===void 0||I.value===C.target&&C.target.value===z.value)&&I.value.select()}function Zo(C){Qt(C,27)===!0&&a.value===!0&&(Ot(C),fn(),Rn()),n("keyup",C)}function Nn(C){const{value:J}=C.target;if(C.keyCode!==void 0){Zo(C);return}if(C.target.value="",c!==null&&(clearTimeout(c),c=null),m!==null&&(clearTimeout(m),m=null),Rn(),typeof J=="string"&&J.length!==0){const ee=J.toLocaleLowerCase(),ge=ke=>{const Qe=e.options.find(Le=>String(ke.value(Le)).toLocaleLowerCase()===ee);return Qe===void 0?!1:(w.value.indexOf(Qe)===-1?et(Qe):fn(),!0)},Te=ke=>{ge(Z)!==!0&&ke!==!0&&ge(he)!==!0&&ae(J,!0,()=>Te(!0))};Te()}else O.clearValue(C)}function co(C){n("keypress",C)}function dn(C){if(n("keydown",C),lr(C)===!0)return;const J=u.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),ee=C.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(s.value!==-1||J===!0);if(C.keyCode===27){bt(C);return}if(C.keyCode===9&&ee===!1){Dn();return}if(C.target===void 0||C.target.id!==O.targetUid.value||O.editable.value!==!0)return;if(C.keyCode===40&&O.innerLoading.value!==!0&&a.value===!1){Me(C),Vn();return}if(C.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&u.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?me(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(C.keyCode===35||C.keyCode===36)&&(typeof u.value!="string"||u.value.length===0)&&(Me(C),s.value=-1,ze(C.keyCode===36?1:-1,e.multiple)),(C.keyCode===33||C.keyCode===34)&&ne.value!==void 0&&(Me(C),s.value=Math.max(-1,Math.min(x.value,s.value+(C.keyCode===33?-1:1)*ne.value.view)),ze(C.keyCode===33?1:-1,e.multiple)),(C.keyCode===38||C.keyCode===40)&&(Me(C),ze(C.keyCode===38?-1:1,e.multiple));const ge=x.value;if((E===void 0||b<Date.now())&&(E=""),ge>0&&e.useInput!==!0&&C.key!==void 0&&C.key.length===1&&C.altKey===!1&&C.ctrlKey===!1&&C.metaKey===!1&&(C.keyCode!==32||E.length!==0)){a.value!==!0&&Vn(C);const Te=C.key.toLocaleLowerCase(),ke=E.length===1&&E[0]===Te;b=Date.now()+1500,ke===!1&&(Me(C),E+=Te);const Qe=new RegExp("^"+E.split("").map(Fl=>Uf.indexOf(Fl)!==-1?"\\"+Fl:Fl).join(".*"),"i");let Le=s.value;if(ke===!0||Le<0||Qe.test(he.value(e.options[Le]))!==!0)do Le=gi(Le+1,-1,ge-1);while(Le!==s.value&&(ve.value(e.options[Le])===!0||Qe.test(he.value(e.options[Le]))!==!0));s.value!==Le&&l.nextTick(()=>{Fe(Le),Q(Le),Le>=0&&e.useInput===!0&&e.fillInput===!0&&X(he.value(e.options[Le]),!0)});return}if(!(C.keyCode!==13&&(C.keyCode!==32||e.useInput===!0||E!=="")&&(C.keyCode!==9||ee===!1))){if(C.keyCode!==9&&Me(C),s.value!==-1&&s.value<ge){et(e.options[s.value]);return}if(J===!0){const Te=(ke,Qe)=>{if(Qe){if(_i(Qe)!==!0)return}else Qe=e.newValueMode;if(le("",e.multiple!==!0,!0),ke==null)return;(Qe==="toggle"?et:vt)(ke,Qe==="add-unique"),e.multiple!==!0&&(I.value!==null&&I.value.focus(),fn())};if(e.onNewValue!==void 0?n("newValue",u.value,Te):Te(u.value),e.multiple!==!0)return}a.value===!0?Dn():O.innerLoading.value!==!0&&Vn()}}function Jo(){return p===!0?N.value:T.value!==null&&T.value.contentEl!==null?T.value.contentEl:void 0}function Ll(){return Jo()}function Dl(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?Ye.value.map(C=>t["selected-item"](C)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?Ye.value.map((C,J)=>l.h(uf,{key:"option-"+J,removable:O.editable.value===!0&&ve.value(C.opt)!==!0,dense:!0,textColor:e.color,tabindex:Pe.value,onRemove(){C.removeAtIndex(J)}},()=>l.h("span",{class:"ellipsis",[C.html===!0?"innerHTML":"textContent"]:he.value(C.opt)}))):[l.h("span",{[_t.value===!0?"innerHTML":"textContent"]:be.value})]}function er(){if(fe.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:u.value}):void 0;const C=t.option!==void 0?t.option:ee=>l.h(qt,{key:ee.index,...ee.itemProps},()=>l.h(Et,()=>l.h(ht,()=>l.h("span",{[ee.html===!0?"innerHTML":"textContent"]:ee.label}))));let J=$("div",pt.value.map(C));return t["before-options"]!==void 0&&(J=t["before-options"]().concat(J)),Pt(t["after-options"],J)}function Vl(C,J){const ee=J===!0?{...it.value,...O.splitAttrs.attributes.value}:void 0,ge={ref:J===!0?I:void 0,key:"i_t",class:U.value,style:e.inputStyle,value:u.value!==void 0?u.value:"",type:"search",...ee,id:J===!0?O.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":C===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...D.value};return C!==!0&&p===!0&&(Array.isArray(ge.class)===!0?ge.class=[...ge.class,"no-pointer-events"]:ge.class+=" no-pointer-events"),l.h("input",ge)}function L(C){c!==null&&(clearTimeout(c),c=null),m!==null&&(clearTimeout(m),m=null),!(C&&C.target&&C.target.qComposing===!0)&&(X(C.target.value||""),S=!0,g=u.value,O.focused.value!==!0&&(p!==!0||f.value===!0)&&O.focus(),e.onFilter!==void 0&&(c=setTimeout(()=>{c=null,ae(u.value)},e.inputDebounce)))}function X(C,J){u.value!==C&&(u.value=C,J===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",C):m=setTimeout(()=>{m=null,n("inputValue",C)},e.inputDebounce))}function le(C,J,ee){S=ee!==!0,e.useInput===!0&&(X(C,!0),(J===!0||ee!==!0)&&(g=C),J!==!0&&ae(C))}function ae(C,J,ee){if(e.onFilter===void 0||J!==!0&&O.focused.value!==!0)return;O.innerLoading.value===!0?n("filterAbort"):(O.innerLoading.value=!0,d.value=!0),C!==""&&e.multiple!==!0&&w.value.length!==0&&S!==!0&&C===he.value(w.value[0])&&(C="");const ge=setTimeout(()=>{a.value===!0&&(a.value=!1)},10);_!==null&&clearTimeout(_),_=ge,n("filter",C,(Te,ke)=>{(J===!0||O.focused.value===!0)&&_===ge&&(clearTimeout(_),typeof Te=="function"&&Te(),d.value=!1,l.nextTick(()=>{O.innerLoading.value=!1,O.editable.value===!0&&(J===!0?a.value===!0&&fn():a.value===!0?Bl(!0):a.value=!0),typeof ke=="function"&&l.nextTick(()=>{ke(o)}),typeof ee=="function"&&l.nextTick(()=>{ee(o)})}))},()=>{O.focused.value===!0&&_===ge&&(clearTimeout(_),O.innerLoading.value=!1,d.value=!1),a.value===!0&&(a.value=!1)})}function de(){return l.h(ai,{ref:T,class:G.value,style:e.popupContentStyle,modelValue:a.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&fe.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:re.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:k.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...He.value,onScrollPassive:H,onBeforeShow:Vc,onBeforeHide:xe,onShow:Ae},er)}function xe(C){Rc(C),Dn()}function Ae(){oe()}function wt(C){Ot(C),I.value!==null&&I.value.focus(),f.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function tt(C){Ot(C),l.nextTick(()=>{f.value=!1})}function Pn(){const C=[l.h(af,{class:`col-auto ${O.fieldClass.value}`,...j.value,for:O.targetUid.value,dark:re.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:u.value.length!==0,...O.splitAttrs.listeners.value,onFocus:wt,onBlur:tt},{...t,rawControl:()=>O.getControl(!0),before:void 0,after:void 0})];return a.value===!0&&C.push(l.h("div",{ref:N,class:G.value+" scroll",style:e.popupContentStyle,...He.value,onClick:bt,onScrollPassive:H},er())),l.h(Vf,{ref:B,modelValue:i.value,position:e.useInput===!0?"top":void 0,transitionShow:v,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Vc,onBeforeHide:Ln,onHide:Rl,onShow:Pv},()=>l.h("div",{class:"q-select__dialog"+(re.value===!0?" q-select__dialog--dark q-dark":"")+(f.value===!0?" q-select__dialog--focused":"")},C))}function Ln(C){Rc(C),B.value!==null&&B.value.__updateRefocusTarget(O.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),O.focused.value=!1}function Rl(C){fn(),O.focused.value===!1&&n("blur",C),Rn()}function Pv(){const C=document.activeElement;(C===null||C.id!==O.targetUid.value)&&I.value!==null&&I.value!==C&&I.value.focus(),oe()}function Dn(){i.value!==!0&&(s.value=-1,a.value===!0&&(a.value=!1),O.focused.value===!1&&(_!==null&&(clearTimeout(_),_=null),O.innerLoading.value===!0&&(n("filterAbort"),O.innerLoading.value=!1,d.value=!1)))}function Vn(C){O.editable.value===!0&&(p===!0?(O.onControlFocusin(C),i.value=!0,l.nextTick(()=>{O.focus()})):O.focus(),e.onFilter!==void 0?ae(u.value):(fe.value!==!0||t["no-option"]!==void 0)&&(a.value=!0))}function fn(){i.value=!1,Dn()}function Rn(){e.useInput===!0&&le(e.multiple!==!0&&e.fillInput===!0&&w.value.length!==0&&he.value(w.value[0])||"",!0,!0)}function Bl(C){let J=-1;if(C===!0){if(w.value.length!==0){const ee=Z.value(w.value[0]);J=e.options.findIndex(ge=>Nt(Z.value(ge),ee))}Y(J)}Fe(J)}function Lv(C,J){a.value===!0&&O.innerLoading.value===!1&&(Y(-1,!0),l.nextTick(()=>{a.value===!0&&O.innerLoading.value===!1&&(C>J?Y():Bl(!0))}))}function Dc(){i.value===!1&&T.value!==null&&T.value.updatePosition()}function Vc(C){C!==void 0&&Ot(C),n("popupShow",C),O.hasPopupOpen=!0,O.onControlFocusin(C)}function Rc(C){C!==void 0&&Ot(C),n("popupHide",C),O.hasPopupOpen=!1,O.onControlFocusout(C)}function Bc(){p=r.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||fe.value===!1:!0),v=r.platform.is.ios===!0&&p===!0&&e.useInput===!0?"fade":e.transitionShow}return l.onBeforeUpdate(Bc),l.onUpdated(Dc),Bc(),l.onBeforeUnmount(()=>{c!==null&&clearTimeout(c),m!==null&&clearTimeout(m)}),Object.assign(o,{showPopup:Vn,hidePopup:fn,removeAtIndex:me,add:vt,toggleOption:et,getOptionIndex:()=>s.value,setOptionIndex:Fe,moveOptionSelection:ze,filter:ae,updateMenuPosition:Dc,updateInputValue:le,isOptionSelected:Bt,getEmittingOptionValue:q,isOptionDisabled:(...C)=>ve.value.apply(null,C)===!0,getOptionValue:(...C)=>Z.value.apply(null,C),getOptionLabel:(...C)=>he.value.apply(null,C)}),Object.assign(O,{innerValue:w,fieldClass:l.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:A,targetRef:I,hasValue:se,showPopup:Vn,floatingLabel:l.computed(()=>e.hideSelected!==!0&&se.value===!0||typeof u.value=="number"||u.value.length!==0||$n(e.displayValue)),getControlChild:()=>{if(O.editable.value!==!1&&(i.value===!0||fe.value!==!0||t["no-option"]!==void 0))return p===!0?Pn():de();O.hasPopupOpen===!0&&(O.hasPopupOpen=!1)},controlEvents:{onFocusin(C){O.onControlFocusin(C)},onFocusout(C){O.onControlFocusout(C,()=>{Rn(),Dn()})},onClick(C){if(bt(C),p!==!0&&a.value===!0){Dn(),I.value!==null&&I.value.focus();return}Vn(C)}},getControl:C=>{const J=Dl(),ee=C===!0||i.value!==!0||p!==!0;if(e.useInput===!0)J.push(Vl(C,ee));else if(O.editable.value===!0){const Te=ee===!0?it.value:void 0;J.push(l.h("input",{ref:ee===!0?I:void 0,key:"d_t",class:"q-select__focus-target",id:ee===!0?O.targetUid.value:void 0,value:be.value,readonly:!0,"data-autofocus":C===!0||e.autofocus===!0||void 0,...Te,onKeydown:dn,onKeyup:Zo,onKeypress:co})),ee===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&J.push(l.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:Nn}))}if(P.value!==void 0&&e.disable!==!0&&ce.value.length!==0){const Te=ce.value.map(ke=>l.h("option",{value:ke,selected:!0}));J.push(l.h("select",{class:"hidden",name:P.value,multiple:e.multiple},Te))}const ge=e.useInput===!0||ee!==!0?void 0:O.splitAttrs.attributes.value;return l.h("div",{class:"q-field__native row items-center",...ge,...O.splitAttrs.listeners.value},J)},getInnerAppend:()=>e.loading!==!0&&d.value!==!0&&e.hideDropdownIcon!==!0?[l.h(We,{class:"q-select__dropdown-icon"+(a.value===!0?" rotate-180":""),name:y.value})]:null}),Sr(O)}}),Hf={xs:2,sm:4,md:6,lg:10,xl:14};function pi(e,t,n){return{transform:t===!0?`translateX(${n.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const zf=Ee({name:"QLinearProgress",props:{...ft,...Fn,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:n}=l.getCurrentInstance(),o=mt(e,n.$q),r=Mn(e,Hf),a=l.computed(()=>e.indeterminate===!0||e.query===!0),i=l.computed(()=>e.reverse!==e.query),s=l.computed(()=>({...r.value!==null?r.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),u=l.computed(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),f=l.computed(()=>pi(e.buffer!==void 0?e.buffer:1,i.value,n.$q)),d=l.computed(()=>`with${e.instantFeedback===!0?"out":""}-transition`),c=l.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${d.value} q-linear-progress__track--${o.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),m=l.computed(()=>pi(a.value===!0?1:e.value,i.value,n.$q)),h=l.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${d.value} q-linear-progress__model--${a.value===!0?"in":""}determinate`),p=l.computed(()=>({width:`${e.value*100}%`})),S=l.computed(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${d.value}`);return()=>{const _=[l.h("div",{class:c.value,style:f.value}),l.h("div",{class:h.value,style:m.value})];return e.stripe===!0&&a.value===!1&&_.push(l.h("div",{class:S.value,style:p.value})),l.h("div",{class:u.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},Pt(t.default,_))}}});function jf(e,t){const n=l.ref(null),o=l.computed(()=>e.disable===!0?null:l.h("span",{ref:n,class:"no-outline",tabindex:-1}));function r(a){const i=t.value;a!==void 0&&a.type.indexOf("key")===0?i!==null&&document.activeElement!==i&&i.contains(document.activeElement)===!0&&i.focus():n.value!==null&&(a===void 0||i!==null&&i.contains(a.target)===!0)&&n.value.focus()}return{refocusTargetEl:o,refocusTarget:r}}const Kf={xs:30,sm:35,md:40,lg:50,xl:60},Wf={...ft,...Fn,...Ir,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]},Gf=["update:modelValue"];function Yf(e,t){const{props:n,slots:o,emit:r,proxy:a}=l.getCurrentInstance(),{$q:i}=a,s=mt(n,i),u=l.ref(null),{refocusTargetEl:f,refocusTarget:d}=jf(n,u),c=Mn(n,Kf),m=l.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),h=l.computed(()=>{const x=l.toRaw(n.val);return m.value===!0?n.modelValue.findIndex(K=>l.toRaw(K)===x):-1}),p=l.computed(()=>m.value===!0?h.value!==-1:l.toRaw(n.modelValue)===l.toRaw(n.trueValue)),S=l.computed(()=>m.value===!0?h.value===-1:l.toRaw(n.modelValue)===l.toRaw(n.falseValue)),_=l.computed(()=>p.value===!1&&S.value===!1),g=l.computed(()=>n.disable===!0?-1:n.tabindex||0),v=l.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(n.dense===!0?` q-${e}--dense`:"")+(n.leftLabel===!0?" reverse":"")),E=l.computed(()=>{const x=p.value===!0?"truthy":S.value===!0?"falsy":"indet",K=n.color!==void 0&&(n.keepColor===!0||S.value!==!0)?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${x}${K}`}),b=l.computed(()=>{const x={type:"checkbox"};return n.name!==void 0&&Object.assign(x,{".checked":p.value,"^checked":p.value===!0?"checked":void 0,name:n.name,value:m.value===!0?n.val:n.trueValue}),x}),A=Rf(b),I=l.computed(()=>{const x={tabindex:g.value,role:"checkbox","aria-label":n.label,"aria-checked":_.value===!0?"mixed":p.value===!0?"true":"false"};return n.disable===!0&&(x["aria-disabled"]="true"),x});function T(x){x!==void 0&&(Me(x),d(x)),n.disable!==!0&&r("update:modelValue",B(),x)}function B(){if(m.value===!0){if(p.value===!0){const x=n.modelValue.slice();return x.splice(h.value,1),x}return n.modelValue.concat([n.val])}if(p.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(S.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function N(x){(x.keyCode===13||x.keyCode===32)&&Me(x)}function P(x){(x.keyCode===13||x.keyCode===32)&&T(x)}const M=t(p,_);return Object.assign(a,{toggle:T}),()=>{const x=M();n.disable!==!0&&A(x,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const K=[l.h("div",{class:E.value,style:c.value,"aria-hidden":"true"},x)];f.value!==null&&K.push(f.value);const V=n.label!==void 0?Pt(o.default,[n.label]):Ve(o.default);return V!==void 0&&K.push(l.h("div",{class:`q-${e}__label q-anchor--skip`},V)),l.h("div",{ref:u,class:v.value,...I.value,onClick:T,onKeydown:N,onKeyup:P},K)}}const Qf=()=>l.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[l.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[l.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),l.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Ut=Ee({name:"QCheckbox",props:Wf,emits:Gf,setup(e){const t=Qf();function n(o,r){const a=l.computed(()=>(o.value===!0?e.checkedIcon:r.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>a.value!==null?[l.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[l.h(We,{class:"q-checkbox__icon",name:a.value})])]:[t]}return Yf("checkbox",n)}});let Kn=0;const Xf={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Zf=["update:fullscreen","fullscreen"];function Jf(){const e=l.getCurrentInstance(),{props:t,emit:n,proxy:o}=e;let r,a,i;const s=l.ref(!1);fr(e)===!0&&l.watch(()=>o.$route.fullPath,()=>{t.noRouteFullscreenExit!==!0&&d()}),l.watch(()=>t.fullscreen,c=>{s.value!==c&&u()}),l.watch(s,c=>{n("update:fullscreen",c),n("fullscreen",c)});function u(){s.value===!0?d():f()}function f(){s.value!==!0&&(s.value=!0,i=o.$el.parentNode,i.replaceChild(a,o.$el),document.body.appendChild(o.$el),Kn++,Kn===1&&document.body.classList.add("q-body--fullscreen-mixin"),r={handler:d},Bn.add(r))}function d(){s.value===!0&&(r!==void 0&&(Bn.remove(r),r=void 0),i.replaceChild(o.$el,a),s.value=!1,Kn=Math.max(0,Kn-1),Kn===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),o.$el.scrollIntoView!==void 0&&setTimeout(()=>{o.$el.scrollIntoView()})))}return l.onBeforeMount(()=>{a=document.createElement("span")}),l.onMounted(()=>{t.fullscreen===!0&&f()}),l.onBeforeUnmount(d),Object.assign(o,{toggleFullscreen:u,setFullscreen:f,exitFullscreen:d}),{inFullscreen:s,toggleFullscreen:u}}function em(e,t){return new Date(e)-new Date(t)}const tm={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>e==="ad"||e==="da",default:"ad"}};function nm(e,t,n,o){const r=l.computed(()=>{const{sortBy:s}=t.value;return s&&n.value.find(u=>u.name===s)||null}),a=l.computed(()=>e.sortMethod!==void 0?e.sortMethod:(s,u,f)=>{const d=n.value.find(h=>h.name===u);if(d===void 0||d.field===void 0)return s;const c=f===!0?-1:1,m=typeof d.field=="function"?h=>d.field(h):h=>h[d.field];return s.sort((h,p)=>{let S=m(h),_=m(p);return d.rawSort!==void 0?d.rawSort(S,_,h,p)*c:S==null?-1*c:_==null?1*c:d.sort!==void 0?d.sort(S,_,h,p)*c:ir(S)===!0&&ir(_)===!0?(S-_)*c:Ql(S)===!0&&Ql(_)===!0?em(S,_)*c:typeof S=="boolean"&&typeof _=="boolean"?(S-_)*c:([S,_]=[S,_].map(g=>(g+"").toLocaleString().toLowerCase()),S<_?-1*c:S===_?0:c)})});function i(s){let u=e.columnSortOrder;if(ar(s)===!0)s.sortOrder&&(u=s.sortOrder),s=s.name;else{const c=n.value.find(m=>m.name===s);c!==void 0&&c.sortOrder&&(u=c.sortOrder)}let{sortBy:f,descending:d}=t.value;f!==s?(f=s,d=u==="da"):e.binaryStateSort===!0?d=!d:d===!0?u==="ad"?f=null:d=!1:u==="ad"?d=!0:f=null,o({sortBy:f,descending:d,page:1})}return{columnToSort:r,computedSortMethod:a,sort:i}}const om={filter:[String,Object],filterMethod:Function};function rm(e,t){const n=l.computed(()=>e.filterMethod!==void 0?e.filterMethod:(o,r,a,i)=>{const s=r?r.toLowerCase():"";return o.filter(u=>a.some(f=>{const d=i(f,u)+"";return(d==="undefined"||d==="null"?"":d.toLowerCase()).indexOf(s)!==-1}))});return l.watch(()=>e.filter,()=>{l.nextTick(()=>{t({page:1},!0)})},{deep:!0}),{computedFilterMethod:n}}function lm(e,t){for(const n in t)if(t[n]!==e[n])return!1;return!0}function vi(e){return e.page<1&&(e.page=1),e.rowsPerPage!==void 0&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const am={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function im(e,t){const{props:n,emit:o}=e,r=l.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length!==0?n.rowsPerPageOptions[0]:5},n.pagination)),a=l.computed(()=>{const d=n["onUpdate:pagination"]!==void 0?{...r.value,...n.pagination}:r.value;return vi(d)}),i=l.computed(()=>a.value.rowsNumber!==void 0);function s(d){u({pagination:d,filter:n.filter})}function u(d={}){l.nextTick(()=>{o("request",{pagination:d.pagination||a.value,filter:d.filter||n.filter,getCellValue:t})})}function f(d,c){const m=vi({...a.value,...d});if(lm(a.value,m)===!0){i.value===!0&&c===!0&&s(m);return}if(i.value===!0){s(m);return}n.pagination!==void 0&&n["onUpdate:pagination"]!==void 0?o("update:pagination",m):r.value=m}return{innerPagination:r,computedPagination:a,isServerSide:i,requestServerInteraction:u,setPagination:f}}function sm(e,t,n,o,r,a){const{props:i,emit:s,proxy:{$q:u}}=e,f=l.computed(()=>o.value===!0?n.value.rowsNumber||0:a.value),d=l.computed(()=>{const{page:b,rowsPerPage:A}=n.value;return(b-1)*A}),c=l.computed(()=>{const{page:b,rowsPerPage:A}=n.value;return b*A}),m=l.computed(()=>n.value.page===1),h=l.computed(()=>n.value.rowsPerPage===0?1:Math.max(1,Math.ceil(f.value/n.value.rowsPerPage))),p=l.computed(()=>c.value===0?!0:n.value.page>=h.value),S=l.computed(()=>(i.rowsPerPageOptions.includes(t.value.rowsPerPage)?i.rowsPerPageOptions:[t.value.rowsPerPage].concat(i.rowsPerPageOptions)).map(A=>({label:A===0?u.lang.table.allRows:""+A,value:A})));l.watch(h,(b,A)=>{if(b===A)return;const I=n.value.page;b&&!I?r({page:1}):b<I&&r({page:b})});function _(){r({page:1})}function g(){const{page:b}=n.value;b>1&&r({page:b-1})}function v(){const{page:b,rowsPerPage:A}=n.value;c.value>0&&b*A<f.value&&r({page:b+1})}function E(){r({page:h.value})}return i["onUpdate:pagination"]!==void 0&&s("update:pagination",{...n.value}),{firstRowIndex:d,lastRowIndex:c,isFirstPage:m,isLastPage:p,pagesNumber:h,computedRowsPerPageOptions:S,computedRowsNumber:f,firstPage:_,prevPage:g,nextPage:v,lastPage:E}}const um={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},cm=["update:selected","selection"];function dm(e,t,n,o){const r=l.computed(()=>{const p={};return e.selected.map(o.value).forEach(S=>{p[S]=!0}),p}),a=l.computed(()=>e.selection!=="none"),i=l.computed(()=>e.selection==="single"),s=l.computed(()=>e.selection==="multiple"),u=l.computed(()=>n.value.length!==0&&n.value.every(p=>r.value[o.value(p)]===!0)),f=l.computed(()=>u.value!==!0&&n.value.some(p=>r.value[o.value(p)]===!0)),d=l.computed(()=>e.selected.length);function c(p){return r.value[p]===!0}function m(){t("update:selected",[])}function h(p,S,_,g){t("selection",{rows:S,added:_,keys:p,evt:g});const v=i.value===!0?_===!0?S:[]:_===!0?e.selected.concat(S):e.selected.filter(E=>p.includes(o.value(E))===!1);t("update:selected",v)}return{hasSelectionMode:a,singleSelection:i,multipleSelection:s,allRowsSelected:u,someRowsSelected:f,rowsSelectedNumber:d,isRowSelected:c,clearSelection:m,updateSelection:h}}function bi(e){return Array.isArray(e)?e.slice():[]}const fm={expanded:Array},mm=["update:expanded"];function hm(e,t){const n=l.ref(bi(e.expanded));l.watch(()=>e.expanded,i=>{n.value=bi(i)});function o(i){return n.value.includes(i)}function r(i){e.expanded!==void 0?t("update:expanded",i):n.value=i}function a(i,s){const u=n.value.slice(),f=u.indexOf(i);s===!0?f===-1&&(u.push(i),r(u)):f!==-1&&(u.splice(f,1),r(u))}return{isRowExpanded:o,setExpanded:r,updateExpanded:a}}const gm={visibleColumns:Array};function _m(e,t,n){const o=l.computed(()=>{if(e.columns!==void 0)return e.columns;const s=e.rows[0];return s!==void 0?Object.keys(s).map(u=>({name:u,label:u.toUpperCase(),field:u,align:ir(s[u])?"right":"left",sortable:!0})):[]}),r=l.computed(()=>{const{sortBy:s,descending:u}=t.value;return(e.visibleColumns!==void 0?o.value.filter(d=>d.required===!0||e.visibleColumns.includes(d.name)===!0):o.value).map(d=>{const c=d.align||"right",m=`text-${c}`;return{...d,align:c,__iconClass:`q-table__sort-icon q-table__sort-icon--${c}`,__thClass:m+(d.headerClasses!==void 0?" "+d.headerClasses:"")+(d.sortable===!0?" sortable":"")+(d.name===s?` sorted ${u===!0?"sort-desc":""}`:""),__tdStyle:d.style!==void 0?typeof d.style!="function"?()=>d.style:d.style:()=>null,__tdClass:d.classes!==void 0?typeof d.classes!="function"?()=>m+" "+d.classes:h=>m+" "+d.classes(h):()=>m}})}),a=l.computed(()=>{const s={};return r.value.forEach(u=>{s[u.name]=u}),s}),i=l.computed(()=>e.tableColspan!==void 0?e.tableColspan:r.value.length+(n.value===!0?1:0));return{colList:o,computedCols:r,computedColsMap:a,computedColspan:i}}const Ao="q-table__bottom row items-center",yi={};Ia.forEach(e=>{yi[e]={}});const pm=Ee({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...yi,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...ft,...Xf,...gm,...om,...am,...fm,...um,...tm},emits:["request","virtualScroll",...Zf,...mm,...cm],setup(e,{slots:t,emit:n}){const o=l.getCurrentInstance(),{proxy:{$q:r}}=o,a=mt(e,r),{inFullscreen:i,toggleFullscreen:s}=Jf(),u=l.computed(()=>typeof e.rowKey=="function"?e.rowKey:L=>L[e.rowKey]),f=l.ref(null),d=l.ref(null),c=l.computed(()=>e.grid!==!0&&e.virtualScroll===!0),m=l.computed(()=>" q-table__card"+(a.value===!0?" q-table__card--dark q-dark":"")+(e.square===!0?" q-table--square":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")),h=l.computed(()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(e.grid===!0?" q-table--grid":m.value)+(a.value===!0?" q-table--dark":"")+(e.dense===!0?" q-table--dense":"")+(e.wrapCells===!1?" q-table--no-wrap":"")+(i.value===!0?" fullscreen scroll":"")),p=l.computed(()=>h.value+(e.loading===!0?" q-table--loading":""));l.watch(()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+h.value,()=>{c.value===!0&&d.value!==null&&d.value.reset()});const{innerPagination:S,computedPagination:_,isServerSide:g,requestServerInteraction:v,setPagination:E}=im(o,Fe),{computedFilterMethod:b}=rm(e,E),{isRowExpanded:A,setExpanded:I,updateExpanded:T}=hm(e,n),B=l.computed(()=>{let L=e.rows;if(g.value===!0||L.length===0)return L;const{sortBy:X,descending:le}=_.value;return e.filter&&(L=b.value(L,e.filter,O.value,Fe)),re.value!==null&&(L=se.value(e.rows===L?L.slice():L,X,le)),L}),N=l.computed(()=>B.value.length),P=l.computed(()=>{let L=B.value;if(g.value===!0)return L;const{rowsPerPage:X}=_.value;return X!==0&&(G.value===0&&e.rows!==L?L.length>fe.value&&(L=L.slice(0,fe.value)):L=L.slice(G.value,fe.value)),L}),{hasSelectionMode:M,singleSelection:x,multipleSelection:K,allRowsSelected:V,someRowsSelected:ne,rowsSelectedNumber:Y,isRowSelected:$,clearSelection:H,updateSelection:Q}=dm(e,n,P,u),{colList:oe,computedCols:O,computedColsMap:w,computedColspan:j}=_m(e,_,M),{columnToSort:re,computedSortMethod:se,sort:U}=nm(e,_,oe,E),{firstRowIndex:G,lastRowIndex:fe,isFirstPage:z,isLastPage:be,pagesNumber:$e,computedRowsPerPageOptions:_t,computedRowsNumber:Pe,firstPage:it,prevPage:He,nextPage:Ye,lastPage:pt}=sm(o,S,_,g,E,N),y=l.computed(()=>P.value.length===0),k=l.computed(()=>{const L={};return Ia.forEach(X=>{L[X]=e[X]}),L.virtualScrollItemSize===void 0&&(L.virtualScrollItemSize=e.dense===!0?28:48),L});function R(){c.value===!0&&d.value.reset()}function Z(){if(e.grid===!0)return Vl();const L=e.hideHeader!==!0?uo:null;if(c.value===!0){const le=t["top-row"],ae=t["bottom-row"],de={default:xe=>D(xe.item,t.body,xe.index)};if(le!==void 0){const xe=l.h("tbody",le({cols:O.value}));de.before=L===null?()=>xe:()=>[L()].concat(xe)}else L!==null&&(de.before=L);return ae!==void 0&&(de.after=()=>l.h("tbody",ae({cols:O.value}))),l.h(Yd,{ref:d,class:e.tableClass,style:e.tableStyle,...k.value,scrollTarget:e.virtualScrollTarget,items:P.value,type:"__qtable",tableColspan:j.value,onVirtualScroll:ve},de)}const X=[q()];return L!==null&&X.unshift(L()),wa({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},X)}function he(L,X){if(d.value!==null){d.value.scrollTo(L,X);return}L=parseInt(L,10);const le=f.value.querySelector(`tbody tr:nth-of-type(${L+1})`);if(le!==null){const ae=f.value.querySelector(".q-table__middle.scroll"),de=le.offsetTop-e.virtualScrollStickySizeStart,xe=de<ae.scrollTop?"decrease":"increase";ae.scrollTop=de,n("virtualScroll",{index:L,from:0,to:S.value.rowsPerPage-1,direction:xe})}}function ve(L){n("virtualScroll",L)}function ce(){return[l.h(zf,{class:"q-table__linear-progress",color:e.color,dark:a.value,indeterminate:!0,trackColor:"transparent"})]}function D(L,X,le){const ae=u.value(L),de=$(ae);if(X!==void 0)return X(me({key:ae,row:L,pageIndex:le,__trClass:de?"selected":""}));const xe=t["body-cell"],Ae=O.value.map(tt=>{const Pn=t[`body-cell-${tt.name}`],Ln=Pn!==void 0?Pn:xe;return Ln!==void 0?Ln(Oe({key:ae,row:L,pageIndex:le,col:tt})):l.h("td",{class:tt.__tdClass(L),style:tt.__tdStyle(L)},Fe(tt,L))});if(M.value===!0){const tt=t["body-selection"],Pn=tt!==void 0?tt(vt({key:ae,row:L,pageIndex:le})):[l.h(Ut,{modelValue:de,color:e.color,dark:a.value,dense:e.dense,"onUpdate:modelValue":(Ln,Rl)=>{Q([ae],[L],Ln,Rl)}})];Ae.unshift(l.h("td",{class:"q-table--col-auto-width"},Pn))}const wt={key:ae,class:{selected:de}};return e.onRowClick!==void 0&&(wt.class["cursor-pointer"]=!0,wt.onClick=tt=>{n("rowClick",tt,L,le)}),e.onRowDblclick!==void 0&&(wt.class["cursor-pointer"]=!0,wt.onDblclick=tt=>{n("rowDblclick",tt,L,le)}),e.onRowContextmenu!==void 0&&(wt.class["cursor-pointer"]=!0,wt.onContextmenu=tt=>{n("rowContextmenu",tt,L,le)}),l.h("tr",wt,Ae)}function q(){const L=t.body,X=t["top-row"],le=t["bottom-row"];let ae=P.value.map((de,xe)=>D(de,L,xe));return X!==void 0&&(ae=X({cols:O.value}).concat(ae)),le!==void 0&&(ae=ae.concat(le({cols:O.value}))),l.h("tbody",ae)}function me(L){return et(L),L.cols=L.cols.map(X=>st({...X},"value",()=>Fe(X,L.row))),L}function Oe(L){return et(L),st(L,"value",()=>Fe(L.col,L.row)),L}function vt(L){return et(L),L}function et(L){Object.assign(L,{cols:O.value,colsMap:w.value,sort:U,rowIndex:G.value+L.pageIndex,color:e.color,dark:a.value,dense:e.dense}),M.value===!0&&st(L,"selected",()=>$(L.key),(X,le)=>{Q([L.key],[L.row],X,le)}),st(L,"expand",()=>A(L.key),X=>{T(L.key,X)})}function Fe(L,X){const le=typeof L.field=="function"?L.field(X):X[L.field];return L.format!==void 0?L.format(le,X):le}const ze=l.computed(()=>({pagination:_.value,pagesNumber:$e.value,isFirstPage:z.value,isLastPage:be.value,firstPage:it,prevPage:He,nextPage:Ye,lastPage:pt,inFullscreen:i.value,toggleFullscreen:s}));function so(){const L=t.top,X=t["top-left"],le=t["top-right"],ae=t["top-selection"],de=M.value===!0&&ae!==void 0&&Y.value>0,xe="q-table__top relative-position row items-center";if(L!==void 0)return l.h("div",{class:xe},[L(ze.value)]);let Ae;if(de===!0?Ae=ae(ze.value).slice():(Ae=[],X!==void 0?Ae.push(l.h("div",{class:"q-table__control"},[X(ze.value)])):e.title&&Ae.push(l.h("div",{class:"q-table__control"},[l.h("div",{class:["q-table__title",e.titleClass]},e.title)]))),le!==void 0&&(Ae.push(l.h("div",{class:"q-table__separator col"})),Ae.push(l.h("div",{class:"q-table__control"},[le(ze.value)]))),Ae.length!==0)return l.h("div",{class:xe},Ae)}const Bt=l.computed(()=>ne.value===!0?null:V.value);function uo(){const L=Zo();return e.loading===!0&&t.loading===void 0&&L.push(l.h("tr",{class:"q-table__progress"},[l.h("th",{class:"relative-position",colspan:j.value},ce())])),l.h("thead",L)}function Zo(){const L=t.header,X=t["header-cell"];if(L!==void 0)return L(Nn({header:!0})).slice();const le=O.value.map(ae=>{const de=t[`header-cell-${ae.name}`],xe=de!==void 0?de:X,Ae=Nn({col:ae});return xe!==void 0?xe(Ae):l.h(hr,{key:ae.name,props:Ae},()=>ae.label)});if(x.value===!0&&e.grid!==!0)le.unshift(l.h("th",{class:"q-table--col-auto-width"}," "));else if(K.value===!0){const ae=t["header-selection"],de=ae!==void 0?ae(Nn({})):[l.h(Ut,{color:e.color,modelValue:Bt.value,dark:a.value,dense:e.dense,"onUpdate:modelValue":co})];le.unshift(l.h("th",{class:"q-table--col-auto-width"},de))}return[l.h("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},le)]}function Nn(L){return Object.assign(L,{cols:O.value,sort:U,colsMap:w.value,color:e.color,dark:a.value,dense:e.dense}),K.value===!0&&st(L,"selected",()=>Bt.value,co),L}function co(L){ne.value===!0&&(L=!1),Q(P.value.map(u.value),P.value,L)}const dn=l.computed(()=>{const L=[e.iconFirstPage||r.iconSet.table.firstPage,e.iconPrevPage||r.iconSet.table.prevPage,e.iconNextPage||r.iconSet.table.nextPage,e.iconLastPage||r.iconSet.table.lastPage];return r.lang.rtl===!0?L.reverse():L});function Jo(){if(e.hideBottom===!0)return;if(y.value===!0){if(e.hideNoData===!0)return;const le=e.loading===!0?e.loadingLabel||r.lang.table.loading:e.filter?e.noResultsLabel||r.lang.table.noResults:e.noDataLabel||r.lang.table.noData,ae=t["no-data"],de=ae!==void 0?[ae({message:le,icon:r.iconSet.table.warning,filter:e.filter})]:[l.h(We,{class:"q-table__bottom-nodata-icon",name:r.iconSet.table.warning}),le];return l.h("div",{class:Ao+" q-table__bottom--nodata"},de)}const L=t.bottom;if(L!==void 0)return l.h("div",{class:Ao},[L(ze.value)]);const X=e.hideSelectedBanner!==!0&&M.value===!0&&Y.value>0?[l.h("div",{class:"q-table__control"},[l.h("div",[(e.selectedRowsLabel||r.lang.table.selectedRecords)(Y.value)])])]:[];if(e.hidePagination!==!0)return l.h("div",{class:Ao+" justify-end"},Dl(X));if(X.length!==0)return l.h("div",{class:Ao},X)}function Ll(L){E({page:1,rowsPerPage:L.value})}function Dl(L){let X;const{rowsPerPage:le}=_.value,ae=e.paginationLabel||r.lang.table.pagination,de=t.pagination,xe=e.rowsPerPageOptions.length>1;if(L.push(l.h("div",{class:"q-table__separator col"})),xe===!0&&L.push(l.h("div",{class:"q-table__control"},[l.h("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||r.lang.table.recordsPerPage]),l.h(Nr,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:le,options:_t.value,displayValue:le===0?r.lang.table.allRows:le,dark:a.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Ll})])),de!==void 0)X=de(ze.value);else if(X=[l.h("span",le!==0?{class:"q-table__bottom-item"}:{},[le?ae(G.value+1,Math.min(fe.value,Pe.value),Pe.value):ae(1,N.value,Pe.value)])],le!==0&&$e.value>1){const Ae={color:e.color,round:!0,dense:!0,flat:!0};e.dense===!0&&(Ae.size="sm"),$e.value>2&&X.push(l.h(Lt,{key:"pgFirst",...Ae,icon:dn.value[0],disable:z.value,onClick:it})),X.push(l.h(Lt,{key:"pgPrev",...Ae,icon:dn.value[1],disable:z.value,onClick:He}),l.h(Lt,{key:"pgNext",...Ae,icon:dn.value[2],disable:be.value,onClick:Ye})),$e.value>2&&X.push(l.h(Lt,{key:"pgLast",...Ae,icon:dn.value[3],disable:be.value,onClick:pt}))}return L.push(l.h("div",{class:"q-table__control"},X)),L}function er(){const L=e.gridHeader===!0?[l.h("table",{class:"q-table"},[uo()])]:e.loading===!0&&t.loading===void 0?ce():void 0;return l.h("div",{class:"q-table__middle"},L)}function Vl(){const L=t.item!==void 0?t.item:X=>{const le=X.cols.map(de=>l.h("div",{class:"q-table__grid-item-row"},[l.h("div",{class:"q-table__grid-item-title"},[de.label]),l.h("div",{class:"q-table__grid-item-value"},[de.value])]));if(M.value===!0){const de=t["body-selection"],xe=de!==void 0?de(X):[l.h(Ut,{modelValue:X.selected,color:e.color,dark:a.value,dense:e.dense,"onUpdate:modelValue":(Ae,wt)=>{Q([X.key],[X.row],Ae,wt)}})];le.unshift(l.h("div",{class:"q-table__grid-item-row"},xe),l.h(Sa,{dark:a.value}))}const ae={class:["q-table__grid-item-card"+m.value,e.cardClass],style:e.cardStyle};return(e.onRowClick!==void 0||e.onRowDblclick!==void 0||e.onRowContextmenu!==void 0)&&(ae.class[0]+=" cursor-pointer",e.onRowClick!==void 0&&(ae.onClick=de=>{n("RowClick",de,X.row,X.pageIndex)}),e.onRowDblclick!==void 0&&(ae.onDblclick=de=>{n("RowDblclick",de,X.row,X.pageIndex)}),e.onRowContextmenu!==void 0&&(ae.onContextmenu=de=>{n("rowContextmenu",de,X.row,X.pageIndex)})),l.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(X.selected===!0?" q-table__grid-item--selected":"")},[l.h("div",ae,le)])};return l.h("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},P.value.map((X,le)=>L(me({key:u.value(X),row:X,pageIndex:le}))))}return Object.assign(o.proxy,{requestServerInteraction:v,setPagination:E,firstPage:it,prevPage:He,nextPage:Ye,lastPage:pt,isRowSelected:$,clearSelection:H,isRowExpanded:A,setExpanded:I,sort:U,resetVirtualScroll:R,scrollTo:he,getCellValue:Fe}),Fc(o.proxy,{filteredSortedRows:()=>B.value,computedRows:()=>P.value,computedRowsNumber:()=>Pe.value}),()=>{const L=[so()],X={ref:f,class:p.value};return e.grid===!0?L.push(er()):Object.assign(X,{class:[X.class,e.cardClass],style:e.cardStyle}),L.push(Z(),Jo()),e.loading===!0&&t.loading!==void 0&&L.push(t.loading()),l.h("div",X,L)}}}),vm=Ee({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const n=l.computed(()=>"q-tr"+(e.props===void 0||e.props.header===!0?"":" "+e.props.__trClass)+(e.noHover===!0?" q-tr--no-hover":""));return()=>l.h("tr",{class:n.value},Ve(t.default))}}),bm={name:"TableSlotHeader",props:{tableProps:{type:Object,required:!0},selectionType:{type:String,default:"none"},smallDevice:{type:Boolean,required:!0}},data(){return{tablePropsData:this.tableProps,showColumnsSelector:!1,showSearch:!1}},methods:{}};function ym(e,t,n,o,r,a){return l.openBlock(),l.createBlock(vm,{class:"table-header"},{default:l.withCtx(()=>[n.selectionType!=="none"?(l.openBlock(),l.createBlock(hr,{key:0},{default:l.withCtx(()=>[n.selectionType=="multiple"?(l.openBlock(),l.createBlock(Ut,{key:0,modelValue:r.tablePropsData.selected,"onUpdate:modelValue":t[0]||(t[0]=i=>r.tablePropsData.selected=i),size:"sm"},null,8,["modelValue"])):l.createCommentVNode("",!0)]),_:1})):l.createCommentVNode("",!0),n.smallDevice?l.createCommentVNode("",!0):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(n.tableProps.cols,i=>(l.openBlock(),l.createBlock(hr,{key:i.name,props:n.tableProps},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(i.label),1)]),_:2},1032,["props"]))),128))]),_:1})}const Em=lt(bm,[["render",ym]]),Sm={name:"TableColumnsSelector",props:{columns:{type:Array},visibleColumns:{type:Array,required:!0}},emits:["onSelectVisibleColumns"],data(){return{visibleColumnsData:[]}},watch:{visibleColumns(e){this.visibleColumnsData=e}},methods:{onSelectVisibleColumns(e){this.$emit("onSelectVisibleColumns",e)}}};function Cm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(Nr,{modelValue:r.visibleColumnsData,"onUpdate:modelValue":[t[0]||(t[0]=i=>r.visibleColumnsData=i),a.onSelectVisibleColumns],multiple:"",outlined:"",dense:"","options-dense":"","display-value":e.$q.lang.table.columns,"emit-value":"","map-options":"",options:n.columns,"option-value":"name","options-cover":"",class:"columns-selector","options-selected-class":"addicional-visible-columns"},{option:l.withCtx(i=>[l.createVNode(qt,l.mergeProps(i.itemProps,{class:i.opt.required?"required-table-columns":""}),{default:l.withCtx(()=>[l.createVNode(Et,null,{default:l.withCtx(()=>[l.createVNode(ht,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(i.opt.label),1)]),_:2},1024)]),_:2},1024)]),_:2},1040,["class"])]),_:1},8,["modelValue","display-value","options","onUpdate:modelValue"])}const km=lt(Sm,[["render",Cm]]),Ei=Ee({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const n=l.getCurrentInstance(),o=l.computed(()=>"q-td"+(e.autoWidth===!0?" q-table--col-auto-width":"")+(e.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(e.props===void 0)return l.h("td",{class:o.value},Ve(t.default));const r=n.vnode.key,a=(e.props.colsMap!==void 0?e.props.colsMap[r]:null)||e.props.col;if(a===void 0)return;const{row:i}=e.props;return l.h("td",{class:o.value+a.__tdClass(i),style:a.__tdStyle(i)},Ve(t.default))}}}),Si={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Io={"#":{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()}},Ci=Object.keys(Io);Ci.forEach(e=>{Io[e].regex=new RegExp(Io[e].pattern)});const wm=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Ci.join("")+"])|(.)","g"),ki=/[.*+?^${}()|[\]\\]/g,Re="",Tm={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Om(e,t,n,o){let r,a,i,s,u,f;const d=l.ref(null),c=l.ref(h());function m(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}l.watch(()=>e.type+e.autogrow,S),l.watch(()=>e.mask,N=>{if(N!==void 0)_(c.value,!0);else{const P=T(c.value);S(),e.modelValue!==P&&t("update:modelValue",P)}}),l.watch(()=>e.fillMask+e.reverseFillMask,()=>{d.value===!0&&_(c.value,!0)}),l.watch(()=>e.unmaskedValue,()=>{d.value===!0&&_(c.value)});function h(){if(S(),d.value===!0){const N=A(T(e.modelValue));return e.fillMask!==!1?B(N):N}return e.modelValue}function p(N){if(N<r.length)return r.slice(-N);let P="",M=r;const x=M.indexOf(Re);if(x!==-1){for(let K=N-M.length;K>0;K--)P+=Re;M=M.slice(0,x)+P+M.slice(x)}return M}function S(){if(d.value=e.mask!==void 0&&e.mask.length!==0&&m(),d.value===!1){s=void 0,r="",a="";return}const N=Si[e.mask]===void 0?e.mask:Si[e.mask],P=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",M=P.replace(ki,"\\$&"),x=[],K=[],V=[];let ne=e.reverseFillMask===!0,Y="",$="";N.replace(wm,(O,w,j,re,se)=>{if(re!==void 0){const U=Io[re];V.push(U),$=U.negate,ne===!0&&(K.push("(?:"+$+"+)?("+U.pattern+"+)?(?:"+$+"+)?("+U.pattern+"+)?"),ne=!1),K.push("(?:"+$+"+)?("+U.pattern+")?")}else if(j!==void 0)Y="\\"+(j==="\\"?"":j),V.push(j),x.push("([^"+Y+"]+)?"+Y+"?");else{const U=w!==void 0?w:se;Y=U==="\\"?"\\\\\\\\":U.replace(ki,"\\\\$&"),V.push(U),x.push("([^"+Y+"]+)?"+Y+"?")}});const H=new RegExp("^"+x.join("")+"("+(Y===""?".":"[^"+Y+"]")+"+)?"+(Y===""?"":"["+Y+"]*")+"$"),Q=K.length-1,oe=K.map((O,w)=>w===0&&e.reverseFillMask===!0?new RegExp("^"+M+"*"+O):w===Q?new RegExp("^"+O+"("+($===""?".":$)+"+)?"+(e.reverseFillMask===!0?"$":M+"*")):new RegExp("^"+O));i=V,s=O=>{const w=H.exec(e.reverseFillMask===!0?O:O.slice(0,V.length+1));w!==null&&(O=w.slice(1).join(""));const j=[],re=oe.length;for(let se=0,U=O;se<re;se++){const G=oe[se].exec(U);if(G===null)break;U=U.slice(G.shift().length),j.push(...G)}return j.length!==0?j.join(""):O},r=V.map(O=>typeof O=="string"?O:Re).join(""),a=r.split(Re).join(P)}function _(N,P,M){const x=o.value,K=x.selectionEnd,V=x.value.length-K,ne=T(N);P===!0&&S();const Y=A(ne),$=e.fillMask!==!1?B(Y):Y,H=c.value!==$;x.value!==$&&(x.value=$),H===!0&&(c.value=$),document.activeElement===x&&l.nextTick(()=>{if($===a){const oe=e.reverseFillMask===!0?a.length:0;x.setSelectionRange(oe,oe,"forward");return}if(M==="insertFromPaste"&&e.reverseFillMask!==!0){const oe=x.selectionEnd;let O=K-1;for(let w=u;w<=O&&w<oe;w++)r[w]!==Re&&O++;v.right(x,O);return}if(["deleteContentBackward","deleteContentForward"].indexOf(M)!==-1){const oe=e.reverseFillMask===!0?K===0?$.length>Y.length?1:0:Math.max(0,$.length-($===a?0:Math.min(Y.length,V)+1))+1:K;x.setSelectionRange(oe,oe,"forward");return}if(e.reverseFillMask===!0)if(H===!0){const oe=Math.max(0,$.length-($===a?0:Math.min(Y.length,V+1)));oe===1&&K===1?x.setSelectionRange(oe,oe,"forward"):v.rightReverse(x,oe)}else{const oe=$.length-V;x.setSelectionRange(oe,oe,"backward")}else if(H===!0){const oe=Math.max(0,r.indexOf(Re),Math.min(Y.length,K)-1);v.right(x,oe)}else{const oe=K-1;v.right(x,oe)}});const Q=e.unmaskedValue===!0?T($):$;String(e.modelValue)!==Q&&(e.modelValue!==null||Q!=="")&&n(Q,!0)}function g(N,P,M){const x=A(T(N.value));P=Math.max(0,r.indexOf(Re),Math.min(x.length,P)),u=P,N.setSelectionRange(P,M,"forward")}const v={left(N,P){const M=r.slice(P-1).indexOf(Re)===-1;let x=Math.max(0,P-1);for(;x>=0;x--)if(r[x]===Re){P=x,M===!0&&P++;break}if(x<0&&r[P]!==void 0&&r[P]!==Re)return v.right(N,0);P>=0&&N.setSelectionRange(P,P,"backward")},right(N,P){const M=N.value.length;let x=Math.min(M,P+1);for(;x<=M;x++)if(r[x]===Re){P=x;break}else r[x-1]===Re&&(P=x);if(x>M&&r[P-1]!==void 0&&r[P-1]!==Re)return v.left(N,M);N.setSelectionRange(P,P,"forward")},leftReverse(N,P){const M=p(N.value.length);let x=Math.max(0,P-1);for(;x>=0;x--)if(M[x-1]===Re){P=x;break}else if(M[x]===Re&&(P=x,x===0))break;if(x<0&&M[P]!==void 0&&M[P]!==Re)return v.rightReverse(N,0);P>=0&&N.setSelectionRange(P,P,"backward")},rightReverse(N,P){const M=N.value.length,x=p(M),K=x.slice(0,P+1).indexOf(Re)===-1;let V=Math.min(M,P+1);for(;V<=M;V++)if(x[V-1]===Re){P=V,P>0&&K===!0&&P--;break}if(V>M&&x[P-1]!==void 0&&x[P-1]!==Re)return v.leftReverse(N,M);N.setSelectionRange(P,P,"forward")}};function E(N){t("click",N),f=void 0}function b(N){if(t("keydown",N),lr(N)===!0||N.altKey===!0)return;const P=o.value,M=P.selectionStart,x=P.selectionEnd;if(N.shiftKey||(f=void 0),N.keyCode===37||N.keyCode===39){N.shiftKey&&f===void 0&&(f=P.selectionDirection==="forward"?M:x);const K=v[(N.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(N.preventDefault(),K(P,f===M?x:M),N.shiftKey){const V=P.selectionStart;P.setSelectionRange(Math.min(f,V),Math.max(f,V),"forward")}}else N.keyCode===8&&e.reverseFillMask!==!0&&M===x?(v.left(P,M),P.setSelectionRange(P.selectionStart,x,"backward")):N.keyCode===46&&e.reverseFillMask===!0&&M===x&&(v.rightReverse(P,x),P.setSelectionRange(M,P.selectionEnd,"forward"))}function A(N){if(N==null||N==="")return"";if(e.reverseFillMask===!0)return I(N);const P=i;let M=0,x="";for(let K=0;K<P.length;K++){const V=N[M],ne=P[K];if(typeof ne=="string")x+=ne,V===ne&&M++;else if(V!==void 0&&ne.regex.test(V))x+=ne.transform!==void 0?ne.transform(V):V,M++;else return x}return x}function I(N){const P=i,M=r.indexOf(Re);let x=N.length-1,K="";for(let V=P.length-1;V>=0&&x!==-1;V--){const ne=P[V];let Y=N[x];if(typeof ne=="string")K=ne+K,Y===ne&&x--;else if(Y!==void 0&&ne.regex.test(Y))do K=(ne.transform!==void 0?ne.transform(Y):Y)+K,x--,Y=N[x];while(M===V&&Y!==void 0&&ne.regex.test(Y));else return K}return K}function T(N){return typeof N!="string"||s===void 0?typeof N=="number"?s(""+N):N:s(N)}function B(N){return a.length-N.length<=0?N:e.reverseFillMask===!0&&N.length!==0?a.slice(0,-N.length)+N:N+a.slice(N.length)}return{innerValue:c,hasMask:d,moveCursorForPaste:g,updateMaskValue:_,onMaskedKeydown:b,onMaskedClick:E}}function Am(e,t){function n(){const o=e.modelValue;try{const r="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(o)===o&&("length"in o?Array.from(o):[o]).forEach(a=>{r.items.add(a)}),{files:r.files}}catch{return{files:void 0}}}return l.computed(()=>{if(e.type==="file")return n()})}const wi=Ee({name:"QInput",inheritAttrs:!1,props:{...So,...Tm,...Ir,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...yr,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:n}){const{proxy:o}=l.getCurrentInstance(),{$q:r}=o,a={};let i=NaN,s,u,f=null,d;const c=l.ref(null),m=mi(e),{innerValue:h,hasMask:p,moveCursorForPaste:S,updateMaskValue:_,onMaskedKeydown:g,onMaskedClick:v}=Om(e,t,Y,c),E=Am(e),b=l.computed(()=>$n(h.value)),A=hi(V),I=Er({changeEvent:!0}),T=l.computed(()=>e.type==="textarea"||e.autogrow===!0),B=l.computed(()=>T.value===!0||["text","search","url","tel","password"].includes(e.type)),N=l.computed(()=>{const w={...I.splitAttrs.listeners.value,onInput:V,onPaste:K,onChange:H,onBlur:Q,onFocus:Ot};return w.onCompositionstart=w.onCompositionupdate=w.onCompositionend=A,p.value===!0&&(w.onKeydown=g,w.onClick=v),e.autogrow===!0&&(w.onAnimationend=ne),w}),P=l.computed(()=>{const w={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:m.value,...I.splitAttrs.attributes.value,id:I.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return T.value===!1&&(w.type=e.type),e.autogrow===!0&&(w.rows=1),w});l.watch(()=>e.type,()=>{c.value&&(c.value.value=e.modelValue)}),l.watch(()=>e.modelValue,w=>{if(p.value===!0){if(u===!0&&(u=!1,String(w)===i))return;_(w)}else h.value!==w&&(h.value=w,e.type==="number"&&a.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete a.value));e.autogrow===!0&&l.nextTick($)}),l.watch(()=>e.autogrow,w=>{w===!0?l.nextTick($):c.value!==null&&n.rows>0&&(c.value.style.height="auto")}),l.watch(()=>e.dense,()=>{e.autogrow===!0&&l.nextTick($)});function M(){Eo(()=>{const w=document.activeElement;c.value!==null&&c.value!==w&&(w===null||w.id!==I.targetUid.value)&&c.value.focus({preventScroll:!0})})}function x(){c.value!==null&&c.value.select()}function K(w){if(p.value===!0&&e.reverseFillMask!==!0){const j=w.target;S(j,j.selectionStart,j.selectionEnd)}t("paste",w)}function V(w){if(!w||!w.target)return;if(e.type==="file"){t("update:modelValue",w.target.files);return}const j=w.target.value;if(w.target.qComposing===!0){a.value=j;return}if(p.value===!0)_(j,!1,w.inputType);else if(Y(j),B.value===!0&&w.target===document.activeElement){const{selectionStart:re,selectionEnd:se}=w.target;re!==void 0&&se!==void 0&&l.nextTick(()=>{w.target===document.activeElement&&j.indexOf(w.target.value)===0&&w.target.setSelectionRange(re,se)})}e.autogrow===!0&&$()}function ne(w){t("animationend",w),$()}function Y(w,j){d=()=>{f=null,e.type!=="number"&&a.hasOwnProperty("value")===!0&&delete a.value,e.modelValue!==w&&i!==w&&(i=w,j===!0&&(u=!0),t("update:modelValue",w),l.nextTick(()=>{i===w&&(i=NaN)})),d=void 0},e.type==="number"&&(s=!0,a.value=w),e.debounce!==void 0?(f!==null&&clearTimeout(f),a.value=w,f=setTimeout(d,e.debounce)):d()}function $(){requestAnimationFrame(()=>{const w=c.value;if(w!==null){const j=w.parentNode.style,{scrollTop:re}=w,{overflowY:se,maxHeight:U}=r.platform.is.firefox===!0?{}:window.getComputedStyle(w),G=se!==void 0&&se!=="scroll";G===!0&&(w.style.overflowY="hidden"),j.marginBottom=w.scrollHeight-1+"px",w.style.height="1px",w.style.height=w.scrollHeight+"px",G===!0&&(w.style.overflowY=parseInt(U,10)<w.scrollHeight?"auto":"hidden"),j.marginBottom="",w.scrollTop=re}})}function H(w){A(w),f!==null&&(clearTimeout(f),f=null),d!==void 0&&d(),t("change",w.target.value)}function Q(w){w!==void 0&&Ot(w),f!==null&&(clearTimeout(f),f=null),d!==void 0&&d(),s=!1,u=!1,delete a.value,e.type!=="file"&&setTimeout(()=>{c.value!==null&&(c.value.value=h.value!==void 0?h.value:"")})}function oe(){return a.hasOwnProperty("value")===!0?a.value:h.value!==void 0?h.value:""}l.onBeforeUnmount(()=>{Q()}),l.onMounted(()=>{e.autogrow===!0&&$()}),Object.assign(I,{innerValue:h,fieldClass:l.computed(()=>`q-${T.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:l.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:c,emitValue:Y,hasValue:b,floatingLabel:l.computed(()=>b.value===!0&&(e.type!=="number"||isNaN(h.value)===!1)||$n(e.displayValue)),getControl:()=>l.h(T.value===!0?"textarea":"input",{ref:c,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...P.value,...N.value,...e.type!=="file"?{value:oe()}:E.value}),getShadowControl:()=>l.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(T.value===!0?"":" text-no-wrap")},[l.h("span",{class:"invisible"},oe()),l.h("span",e.shadowText)])});const O=Sr(I);return Object.assign(o,{focus:M,select:x,getNativeElement:()=>c.value}),st(o,"nativeEl",()=>c.value),O}});function Wn(e,t=new WeakMap){if(Object(e)!==e)return e;if(t.has(e))return t.get(e);const n=e instanceof Date?new Date(e):e instanceof RegExp?new RegExp(e.source,e.flags):e instanceof Set?new Set:e instanceof Map?new Map:typeof e.constructor!="function"?Object.create(null):e.prototype!==void 0&&typeof e.prototype.constructor=="function"?e:new e.constructor;if(typeof e.constructor=="function"&&typeof e.valueOf=="function"){const o=e.valueOf();if(Object(o)!==o){const r=new e.constructor(o);return t.set(e,r),r}}return t.set(e,n),e instanceof Set?e.forEach(o=>{n.add(Wn(o,t))}):e instanceof Map&&e.forEach((o,r)=>{n.set(r,Wn(o,t))}),Object.assign(n,...Object.keys(e).map(o=>({[o]:Wn(e[o],t)})))}const Im=Ee({name:"QPopupEdit",props:{modelValue:{required:!0},title:String,buttons:Boolean,labelSet:String,labelCancel:String,color:{type:String,default:"primary"},validate:{type:Function,default:()=>!0},autoSave:Boolean,cover:{type:Boolean,default:!0},disable:Boolean},emits:["update:modelValue","save","cancel","beforeShow","show","beforeHide","hide"],setup(e,{slots:t,emit:n}){const{proxy:o}=l.getCurrentInstance(),{$q:r}=o,a=l.ref(null),i=l.ref(""),s=l.ref("");let u=!1;const f=l.computed(()=>st({initialValue:i.value,validate:e.validate,set:d,cancel:c,updatePosition:m},"value",()=>s.value,b=>{s.value=b}));function d(){e.validate(s.value)!==!1&&(h()===!0&&(n("save",s.value,i.value),n("update:modelValue",s.value)),p())}function c(){h()===!0&&n("cancel",s.value,i.value),p()}function m(){l.nextTick(()=>{a.value.updatePosition()})}function h(){return Nt(s.value,i.value)===!1}function p(){u=!0,a.value.hide()}function S(){u=!1,i.value=Wn(e.modelValue),s.value=Wn(e.modelValue),n("beforeShow")}function _(){n("show")}function g(){u===!1&&h()===!0&&(e.autoSave===!0&&e.validate(s.value)===!0?(n("save",s.value,i.value),n("update:modelValue",s.value)):n("cancel",s.value,i.value)),n("beforeHide")}function v(){n("hide")}function E(){const b=t.default!==void 0?[].concat(t.default(f.value)):[];return e.title&&b.unshift(l.h("div",{class:"q-dialog__title q-mt-sm q-mb-sm"},e.title)),e.buttons===!0&&b.push(l.h("div",{class:"q-popup-edit__buttons row justify-center no-wrap"},[l.h(Lt,{flat:!0,color:e.color,label:e.labelCancel||r.lang.label.cancel,onClick:c}),l.h(Lt,{flat:!0,color:e.color,label:e.labelSet||r.lang.label.set,onClick:d})])),b}return Object.assign(o,{set:d,cancel:c,show(b){a.value!==null&&a.value.show(b)},hide(b){a.value!==null&&a.value.hide(b)},updatePosition:m}),()=>{if(e.disable!==!0)return l.h(ai,{ref:a,class:"q-popup-edit",cover:e.cover,onBeforeShow:S,onShow:_,onBeforeHide:g,onHide:v,onEscapeKey:c},E)}}}),xm={name:"PopupEdit",props:{model:{type:[String,Number,Boolean,Array,Object],required:!0},label:{type:String,required:!0},dataCy:{type:String,required:!0},mask:{type:String,required:!0},inputType:{type:String,required:!0},inputMaxLength:{type:Number,required:!0},popupEditNumberOptions:{type:Array,default:()=>[]},showInputPopupEdit:{type:Boolean,required:!0},showSelectNumberOptions:{type:Boolean,required:!1}},emits:["popupEditUpdated","popupEditEmit","save"],data(){return{modelData:this.model}},methods:{validate(e){this.$refs.inputField.validate()?this.$emit("save",e):this.$q.notify({type:"negative",message:"Value not accepted",position:"bottom"})}}};function Nm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(Im,{modelValue:r.modelData,"onUpdate:modelValue":t[1]||(t[1]=i=>r.modelData=i),buttons:"","label-set":e.$t("table.confirm"),"label-cancel":e.$t("table.cancel"),onSave:a.validate,onCancel:()=>{}},{default:l.withCtx(i=>[n.showInputPopupEdit?(l.openBlock(),l.createBlock(wi,{key:0,ref:"inputField",modelValue:i.value,"onUpdate:modelValue":s=>i.value=s,"data-cy":n.dataCy,label:n.label,type:n.inputType,mask:n.mask,autogrow:n.inputType==="textarea",rules:[s=>s&&s.length>0||e.$t("form.rules.emptyField"),s=>s&&s.length<=n.inputMaxLength||e.$t("form.rules.exceedCharactersTypeList",[n.inputMaxLength])],dense:"",autofocus:"",onKeyup:t[0]||(t[0]=l.withKeys(l.withModifiers(()=>{},["stop"]),["enter"]))},null,8,["modelValue","onUpdate:modelValue","data-cy","label","type","mask","autogrow","rules"])):l.createCommentVNode("",!0),n.showSelectNumberOptions?(l.openBlock(),l.createBlock(Nr,{key:1,ref:"selectField",modelValue:i.value,"onUpdate:modelValue":s=>i.value=s,"data-cy":n.dataCy,dense:"",options:n.popupEditNumberOptions},null,8,["modelValue","onUpdate:modelValue","data-cy","options"])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","label-set","label-cancel","onSave"])}const Ti=lt(xm,[["render",Nm]]),Pm={name:"BasicCheckBox",props:{model:{type:Boolean,required:!0},tableProps:{type:Object,required:!0},dataCy:{type:String,required:!0}},emits:["checkBoxEmit"],data(){return{tablePropsData:this.tableProps,modelData:this.model}}};function Lm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(Ut,{modelValue:r.modelData,"onUpdate:modelValue":[t[0]||(t[0]=i=>r.modelData=i),t[1]||(t[1]=i=>{e.$emit("checkBoxEmit",i)})],"data-cy":n.dataCy},null,8,["modelValue","data-cy"])}const Oi=lt(Pm,[["render",Lm]]),Dm={name:"CustomizedCheckBox",props:{model:{type:Boolean,required:!0},tableProps:{type:Object,required:!0},dataCy:{type:String,required:!0},checkBoxColor:{type:String,required:!0},checkBoxIconSize:{type:String,required:!0},checkedIcon:{type:String,required:!0},uncheckedIcon:{type:String,required:!0}},emits:["checkBoxEmit"],data(){return{tablePropsData:this.tableProps,modelData:this.model}}};function Vm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(Ut,{modelValue:r.modelData,"onUpdate:modelValue":[t[0]||(t[0]=i=>r.modelData=i),t[1]||(t[1]=i=>{e.$emit("checkBoxEmit",i)})],"data-cy":n.dataCy,size:n.checkBoxIconSize,color:n.checkBoxColor,"keep-color":!0,"checked-icon":n.checkedIcon,"unchecked-icon":n.uncheckedIcon},null,8,["modelValue","data-cy","size","color","checked-icon","unchecked-icon"])}const Ai=lt(Dm,[["render",Vm]]),Rm={name:"CustomizedIcon",props:{model:{type:Boolean,required:!0},customizedIconSize:{type:String,required:!0},customizedIconName:{type:String,required:!0},customizedIconColor:{type:String,required:!0}}};function Bm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(We,{name:n.customizedIconName?n.customizedIconName:n.model?"check_circle":"cancel",color:n.customizedIconColor?n.customizedIconColor:n.model?"green":"red",size:n.customizedIconSize},null,8,["name","color","size"])}const Ii=lt(Rm,[["render",Bm]]),Fm={name:"CustomizedButton",props:{dataCy:{type:String,required:!0},btnColor:{type:String,required:!0},btnIcon:{type:String,required:!0}},emits:["onClickButton"],data:function(){return{}}};function Mm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(Lt,{"data-cy":n.dataCy,flat:"",round:"",color:n.btnColor,size:"md",onClick:t[0]||(t[0]=i=>e.$emit("onClickButton"))},{default:l.withCtx(()=>[l.createVNode(We,{name:n.btnIcon},null,8,["name"])]),_:1},8,["data-cy","color"])}const xi=lt(Fm,[["render",Mm]]),qm={name:"KTableSlotBody",components:{TablePopupEdit:Ti,BasicCheckBox:Oi,CustomizedCheckBox:Ai,CustomizedIcon:Ii,CustomizedButton:xi},props:{tableProps:{type:Object,required:!0},selectionType:{type:String,default:"none"}},emits:["onSaveValuePopupEdit","onUpdateBasicCheckboxValue","onClickButton","onUpdateCustomizedCheckboxValue"],data(){return{tablePropsData:this.tableProps}},methods:{getColumnValue(e){return!(e.showBasicCheckbox||e.showCustomizedCheckBox||e.showCustomizedIcon||e.showColumButton)}}},Um=["innerHTML"];function $m(e,t,n,o,r,a){const i=l.resolveComponent("TablePopupEdit"),s=l.resolveComponent("BasicCheckBox"),u=l.resolveComponent("CustomizedCheckBox"),f=l.resolveComponent("CustomizedIcon"),d=l.resolveComponent("CustomizedButton");return l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(n.tableProps.row.rowBgColor||"bg-main-color")},[n.selectionType!="none"?(l.openBlock(),l.createBlock(Ei,{key:0,id:n.tableProps.row.id,"auto-width":""},{default:l.withCtx(()=>[l.createVNode(Ut,{modelValue:r.tablePropsData.selected,"onUpdate:modelValue":t[0]||(t[0]=c=>r.tablePropsData.selected=c),size:"sm"},null,8,["modelValue"])]),_:1},8,["id"])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.tableProps.cols,c=>(l.openBlock(),l.createBlock(Ei,{key:c.name,class:l.normalizeClass(n.tableProps.row.rowBgColor||"bg-main-color"),props:n.tableProps,style:l.normalizeStyle(r.tablePropsData.row.tdStyle)},{default:l.withCtx(()=>[a.getColumnValue(c)?(l.openBlock(),l.createElementBlock("span",{key:0,innerHTML:n.tableProps.row[c.name]},null,8,Um)):l.createCommentVNode("",!0),c.editable?(l.openBlock(),l.createBlock(We,{key:1,name:"edit",color:"primary",size:"sm"})):l.createCommentVNode("",!0),c.editable?(l.openBlock(),l.createBlock(i,{key:2,model:r.tablePropsData.row[c.name]||"",label:c.label,"data-cy":c.popupEditDataCy+"-"+n.tableProps.row.id,"input-max-length":c.inputMaxLength||20,mask:c.popupEditMask||"","input-type":c.popupEditInputtype||"text","show-input-popup-edit":c.showInputPopupEdit||!0,"show-select-number-options":c.showSelectNumberOptions||!1,"popup-edit-number-options":c.popupEditNumberOptions||[],onSave:m=>{r.tablePropsData.row[c.name]=m,e.$emit(c.popupEditEmit,r.tablePropsData.row)}},null,8,["model","label","data-cy","input-max-length","mask","input-type","show-input-popup-edit","show-select-number-options","popup-edit-number-options","onSave"])):l.createCommentVNode("",!0),c.showBasicCheckbox?(l.openBlock(),l.createBlock(s,{key:3,"table-props":r.tablePropsData,"data-cy":c.checkBoxDataCy+"-"+n.tableProps.row.id||"",model:r.tablePropsData.row[c.name],onCheckBoxEmit:m=>{r.tablePropsData.row[c.name]=m,e.$emit(c.checkBoxEmit||"onUpdateBasicCheckboxValue",r.tablePropsData.row)}},null,8,["table-props","data-cy","model","onCheckBoxEmit"])):l.createCommentVNode("",!0),c.showCustomizedCheckBox?(l.openBlock(),l.createBlock(u,{key:4,"table-props":r.tablePropsData,"data-cy":c.checkBoxDataCy+"-"+n.tableProps.row.id||"",model:r.tablePropsData.row[c.name],"check-box-color":r.tablePropsData.row[c.name]?c.checkBoxColorCaseTrue:c.checkBoxColorCaseFalse,"check-box-icon-size":"md","checked-icon":c.checkedIcon,"unchecked-icon":c.uncheckedIcon,onCheckBoxEmit:m=>{r.tablePropsData.row[c.name]=m,e.$emit(c.checkBoxEmit||"onUpdateCustomizedCheckboxValue",r.tablePropsData.row)}},null,8,["table-props","data-cy","model","check-box-color","checked-icon","unchecked-icon","onCheckBoxEmit"])):l.createCommentVNode("",!0),c.showCustomizedIcon?(l.openBlock(),l.createBlock(f,{key:5,model:r.tablePropsData.row[c.name],"customized-icon-size":"sm","customized-icon-name":(r.tablePropsData.row[c.name]?c.customizedIconNameCaseTrue:c.customizedIconNameCaseFalse)||"","customized-icon-color":(r.tablePropsData.row[c.name]?c.customizedIconColorCaseTrue:c.customizedIconColorCaseFalse)||""},null,8,["model","customized-icon-name","customized-icon-color"])):l.createCommentVNode("",!0),c.showCustomizedButton?(l.openBlock(),l.createBlock(d,{key:6,"data-cy":c.colButtonDataCy+"-"+n.tableProps.row.id,"btn-color":c.btnColor||"primary","btn-icon":c.btnIcon||"",onOnClickButton:()=>{e.$emit("onClickButton",c.btnEmit,n.tableProps.row)}},null,8,["data-cy","btn-color","btn-icon","onOnClickButton"])):l.createCommentVNode("",!0)]),_:2},1032,["class","props","style"]))),128))],2)}const Hm=lt(qm,[["render",$m]]),zm=Ee({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=l.computed(()=>`q-card__section q-card__section--${e.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>l.h(e.tag,{class:n.value},Ve(t.default))}}),Ni=Ee({name:"QCard",props:{...ft,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=l.getCurrentInstance(),o=mt(e,n),r=l.computed(()=>"q-card"+(o.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()=>l.h(e.tag,{class:r.value},Ve(t.default))}}),jm={name:"KTableSlotGrid",components:{TablePopupEdit:Ti,BasicCheckBox:Oi,CustomizedCheckBox:Ai,CustomizedIcon:Ii,CustomizedButton:xi},props:{tableProps:{type:Object,required:!0},selectionType:{type:String,default:"none"},popupEditNumberOptions:{type:Array}},emits:["onSaveValuePopupEdit","onUpdateBasicCheckboxValue","onClickButton","onUpdateCustomizedCheckboxValue"],data(){return{tablePropsData:this.tableProps,selected:!1}},watch:{gridRowsSelected(e){this.selected=e}},mounted(){},methods:{getColumnValue(e){return!(e.showBasicCheckbox||e.showCustomizedCheckBox||e.showCustomizedIcon||e.showColumButton)}}},Km=["innerHTML"];function Wm(e,t,n,o,r,a){const i=l.resolveComponent("TablePopupEdit"),s=l.resolveComponent("BasicCheckBox"),u=l.resolveComponent("CustomizedCheckBox"),f=l.resolveComponent("CustomizedIcon"),d=l.resolveComponent("CustomizedButton");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass("q-pa-xs col-xs-12 col-sm-6 col-md-4 col-lg-3 grid-style-transition"),style:l.normalizeStyle(r.tablePropsData.selected?"transform: scale(0.95);":"")},[l.createVNode(Ni,{bordered:"",flat:"",square:"",class:l.normalizeClass(r.tablePropsData.selected?e.$q.dark.isActive?"bg-grey-9":"bg-grey-2":n.tableProps.row.rowBgColor||"bg-main-color")},{default:l.withCtx(()=>[l.createVNode(zm,null,{default:l.withCtx(()=>[n.selectionType!="none"?(l.openBlock(),l.createBlock(Ut,{key:0,modelValue:r.tablePropsData.selected,"onUpdate:modelValue":t[0]||(t[0]=c=>r.tablePropsData.selected=c),dense:""},null,8,["modelValue"])):l.createCommentVNode("",!0)]),_:1}),l.createVNode(Ca,{dense:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.tablePropsData.cols.filter(c=>c.name!=="desc"),c=>(l.openBlock(),l.createBlock(qt,{key:c.name},{default:l.withCtx(()=>[l.createVNode(Et,null,{default:l.withCtx(()=>[l.createVNode(ht,{class:"itemsFontSize ellipsis text-light-gray"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(c.label),1)]),_:2},1024)]),_:2},1024),l.createVNode(Et,{side:""},{default:l.withCtx(()=>[a.getColumnValue(c)?(l.openBlock(),l.createBlock(ht,{key:0,class:"itemsFontSize text-almost-black"},{default:l.withCtx(()=>[c.editable?(l.openBlock(),l.createBlock(We,{key:0,name:"fa-solid fa-pen-to-square",color:"primary",size:"sm"})):l.createCommentVNode("",!0),l.createElementVNode("span",{innerHTML:n.tableProps.row[c.name]},null,8,Km),l.createVNode(i,{model:r.tablePropsData.row[c.name]||"",label:c.label,"data-cy":c.popupEditDataCy+"-"+n.tableProps.row.id,"input-max-length":c.inputMaxLength||20,mask:c.popupEditMask||"","input-type":c.popupEditInputtype||"text","show-input-popup-edit":c.showInputPopupEdit||!0,"show-select-number-options":c.showSelectNumberOptions||!1,"popup-edit-number-options":c.popupEditNumberOptions||[],onSave:m=>{r.tablePropsData.row[c.name]=m,e.$emit(c.popupEditEmit,r.tablePropsData.row)}},null,8,["model","label","data-cy","input-max-length","mask","input-type","show-input-popup-edit","show-select-number-options","popup-edit-number-options","onSave"])]),_:2},1024)):l.createCommentVNode("",!0),l.createVNode(Et,null,{default:l.withCtx(()=>[c.showBasicCheckbox?(l.openBlock(),l.createBlock(s,{key:0,"table-props":r.tablePropsData,"data-cy":c.checkBoxDataCy+"-"+n.tableProps.row.id||"",model:r.tablePropsData.row[c.name],onCheckBoxEmit:m=>{r.tablePropsData.row[c.name]=m,e.$emit(c.checkBoxEmit||"onUpdateBasicCheckboxValue",r.tablePropsData.row)}},null,8,["table-props","data-cy","model","onCheckBoxEmit"])):l.createCommentVNode("",!0),c.showCustomizedCheckBox?(l.openBlock(),l.createBlock(u,{key:1,"table-props":r.tablePropsData,"data-cy":c.checkBoxDataCy+"-"+n.tableProps.row.id||"",model:r.tablePropsData.row[c.name],"check-box-color":r.tablePropsData.row[c.name]?c.checkBoxColorCaseTrue:c.checkBoxColorCaseFalse,"check-box-icon-size":"lg","checked-icon":c.checkedIcon,"unchecked-icon":c.uncheckedIcon,onCheckBoxEmit:m=>{r.tablePropsData.row[c.name]=m,e.$emit(c.checkBoxEmit||"onUpdateCustomizedCheckboxValue",r.tablePropsData.row)}},null,8,["table-props","data-cy","model","check-box-color","checked-icon","unchecked-icon","onCheckBoxEmit"])):l.createCommentVNode("",!0)]),_:2},1024),l.createVNode(Et,null,{default:l.withCtx(()=>[c.showCustomizedIcon?(l.openBlock(),l.createBlock(f,{key:0,model:r.tablePropsData.row[c.name],"table-props":r.tablePropsData,"customized-icon-size":"sm","customized-icon-name":(r.tablePropsData.row[c.name]?c.customizedIconNameCaseTrue:c.customizedIconNameCaseFalse)||"","customized-icon-color":(r.tablePropsData.row[c.name]?c.customizedIconColorCaseTrue:c.customizedIconColorCaseFalse)||""},null,8,["model","table-props","customized-icon-name","customized-icon-color"])):l.createCommentVNode("",!0)]),_:2},1024),l.createVNode(Et,null,{default:l.withCtx(()=>[c.showCustomizedButton?(l.openBlock(),l.createBlock(d,{key:0,"data-cy":c.colButtonDataCy+"-"+n.tableProps.row.id,"btn-color":c.btnColor||"primary","btn-icon":c.btnIcon||"",onOnClickButton:()=>{e.$emit("onClickButton",c.btnEmit,n.tableProps.row)}},null,8,["data-cy","btn-color","btn-icon","onOnClickButton"])):l.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1},8,["class"])],4)}const Gm=lt(jm,[["render",Wm]]),Ym={name:"TableFilter",props:{store:{type:Object,required:!0}},data(){return{localStore:this.store}},beforeMount(){this.localStore.cleanTableFilter()},mounted(){},methods:{inputFocus(){setTimeout(()=>{this.$refs.filterRef.focus()},10)}}};function Qm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(wi,{ref:"filterRef",modelValue:r.localStore.filterValue,"onUpdate:modelValue":[t[1]||(t[1]=i=>r.localStore.filterValue=i),t[2]||(t[2]=i=>{r.localStore.setFilterValue(i)})],borderless:"",dense:"",debounce:"300",class:"table-filter auto-width",placeholder:"Search",outlined:""},{append:l.withCtx(()=>[r.localStore.filterValue===""?(l.openBlock(),l.createBlock(We,{key:0,name:"search",color:"black"})):(l.openBlock(),l.createBlock(We,{key:1,name:"clear",class:"cursor-pointer",onClick:t[0]||(t[0]=()=>{r.localStore.cleanTableFilter()})}))]),_:1},8,["modelValue"])}const Xm=lt(Ym,[["render",Qm]]),Pi={sortMethod(e,t,n,o=[]){const r=[...e];return t&&(o.includes(t)?this.sortDates(t,n,r):r.sort((a,i)=>{const s=n?i:a,u=n?a:i;return s[t]>u[t]?1:s[t]<u[t]?-1:0})),r},sortDates(e,t,n){n.sort(function(o,r){const a=o[e],i=r[e];let s=t?i:a,u=t?a:i;return s=s.split("/").reverse().join("-"),u=u.split("/").reverse().join("-"),s.localeCompare(u)})}},Zm=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],Jm=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],Be=Ee({name:"QSkeleton",props:{...ft,tag:{type:String,default:"div"},type:{type:String,validator:e=>Zm.includes(e),default:"rect"},animation:{type:String,validator:e=>Jm.includes(e),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(e,{slots:t}){const n=l.getCurrentInstance(),o=mt(e,n.proxy.$q),r=l.computed(()=>{const i=e.size!==void 0?[e.size,e.size]:[e.width,e.height];return{"--q-skeleton-speed":`${e.animationSpeed}ms`,width:i[0],height:i[1]}}),a=l.computed(()=>`q-skeleton q-skeleton--${o.value===!0?"dark":"light"} q-skeleton--type-${e.type}`+(e.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${e.animation}`:"")+(e.square===!0?" q-skeleton--square":"")+(e.bordered===!0?" q-skeleton--bordered":""));return()=>l.h(e.tag,{class:a.value,style:r.value},Ve(t.default))}}),eh={name:"TableSkeleton",properties:{showSkeleton:{type:Boolean,default:!1}}},th={class:"text-left",style:{width:"150px"}},nh={class:"text-right"},oh={class:"text-right"},rh={class:"text-right"},lh={class:"text-right"},ah={class:"text-right"},ih={class:"text-left"},sh={class:"text-right"},uh={class:"text-right"},ch={class:"text-right"},dh={class:"text-right"},fh={class:"text-right"};function mh(e,t,n,o,r,a){return l.openBlock(),l.createElementBlock("div",null,[l.createVNode(ka,null,{default:l.withCtx(()=>[l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",th,[l.createVNode(Be,{type:"text"})]),l.createElementVNode("th",nh,[l.createVNode(Be,{type:"text"})]),l.createElementVNode("th",oh,[l.createVNode(Be,{type:"text"})]),l.createElementVNode("th",rh,[l.createVNode(Be,{type:"text"})]),l.createElementVNode("th",lh,[l.createVNode(Be,{type:"text"})]),l.createElementVNode("th",ah,[l.createVNode(Be,{type:"text"})])])]),l.createElementVNode("tbody",null,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(10,i=>l.createElementVNode("tr",{key:i},[l.createElementVNode("td",ih,[l.createVNode(Be,{type:"text",width:"85px"})]),l.createElementVNode("td",sh,[l.createVNode(Be,{type:"text",width:"50px"})]),l.createElementVNode("td",uh,[l.createVNode(Be,{type:"text",width:"35px"})]),l.createElementVNode("td",ch,[l.createVNode(Be,{type:"text",width:"65px"})]),l.createElementVNode("td",dh,[l.createVNode(Be,{type:"text",width:"25px"})]),l.createElementVNode("td",fh,[l.createVNode(Be,{type:"text",width:"85px"})])])),64))])]),_:1})])}const hh=lt(eh,[["render",mh]]),gh={name:"CardListSkeleton"};function _h(e,t,n,o,r,a){return l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(2,i=>l.createVNode(qt,{key:i},{default:l.withCtx(()=>[l.createVNode(Ni,{style:{width:"100%"}},{default:l.withCtx(()=>[l.createVNode(qt,null,{default:l.withCtx(()=>[l.createVNode(Et,null,{default:l.withCtx(()=>[l.createVNode(ht,null,{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"60%"})]),_:1}),l.createVNode(ht,{caption:""},{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"60%"})]),_:1})]),_:1})]),_:1}),l.createVNode(qt,null,{default:l.withCtx(()=>[l.createVNode(Et,null,{default:l.withCtx(()=>[l.createVNode(ht,null,{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"70%"})]),_:1}),l.createVNode(ht,{caption:""},{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"70%"})]),_:1})]),_:1})]),_:1}),l.createVNode(qt,null,{default:l.withCtx(()=>[l.createVNode(Et,null,{default:l.withCtx(()=>[l.createVNode(ht,null,{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"80%"})]),_:1}),l.createVNode(ht,{caption:""},{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"80%"})]),_:1})]),_:1})]),_:1}),l.createVNode(qt,null,{default:l.withCtx(()=>[l.createVNode(Et,null,{default:l.withCtx(()=>[l.createVNode(ht,null,{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"90%"})]),_:1}),l.createVNode(ht,{caption:""},{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"90%"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:2},1024)),64))])}const ph=lt(gh,[["render",_h]]),vh=l.defineComponent({components:{TableSlotHeader:Em,TableColumnsSelector:km,TableSlotBody:Hm,TableSlotGrid:Gm,TableFilter:Xm,TableSkeleton:hh,CardListSkeleton:ph},props:{columns:{type:Array,required:!0},rows:{type:Array,required:!0},visibleColumns:{type:Array,required:!0},filterMethod:{type:Function,default:function(){}},filterComputed:{type:Object,default:()=>{}},sortDataValues:{type:Array,default:()=>[""]},selectionType:{type:String,default:"none"},rowKey:{type:String,default:"id"},tableStyle:{type:String,default:""},popupEditNumberOptions:{type:Array,default:()=>[]},smallDevice:{type:Boolean,required:!0},store:{type:Object,required:!0},tableId:{type:String,default:""},hideColumnsSelector:{type:Boolean,default:!1},hideFilter:{type:Boolean,default:!1},showSkeleton:{type:Boolean}},emits:["onSelectVisibleColumns","onUpdateBasicCheckboxValue","onUpdateCustomizedCheckboxValue","onSaveValuePopupEdit","onClickButton","storeUpdated","deleteItem","openModalWithTable","setItemNotFound","onRowClick"],data(){return{selected:[],filter:"",visibleColumnsData:this.visibleColumns,rowsData:[],gridRowsSelected:!1,selectedRows:[],showColumnsSelector:!1,showSearch:!1,loading:!1,storeData:this.store,forceRender:!1}},computed:{getColumnsSelectorVisibility(){return!this.smallDevice||this.showColumnsSelector},getTableInputSearchVisibility(){return!this.smallDevice||this.showSearch},showGridHeader(){return this.selectionType==="multiple"},getTableSkeletonVisibility(){return!this.smallDevice&&this.showSkeleton},getGridSkeletonVisibility(){return this.smallDevice&&this.showSkeleton}},watch:{rows(e){this.rowsData=e}},mounted(){},methods:{getSelectedString(e){const t=e;if(t===0)return"";const n=t>1?"records":"record";return`${t} ${n} selected`},onSelectVisibleColumns(e){this.$emit("onSelectVisibleColumns",e)},onSaveValuePopupEdit(e){this.$emit("onSaveValuePopupEdit",e)},onUpdateBasicCheckboxValue(e){this.$emit("onUpdateBasicCheckboxValue",e)},onClickButton(e,t){this.$emit(e,t)},onRowClick(e){this.$emit("onRowClick",e)},deleteItem(e){this.$emit("deleteItem",e)},onUpdateCustomizedCheckboxValue(e){this.$emit("onUpdateCustomizedCheckboxValue",e)},clearTableSelection(){this.$refs.myTable.clearSelection()},toggleSearchVisibility(e){this.showSearch=!this.showSearch,e.disableScannerButtons=!1,e.lastFilterValue="",e.valueInputFilterTable=""},toogleColumnsSelectorVisibility(){this.showColumnsSelector=!this.showColumnsSelector},filterInputFocus(){setTimeout(()=>{this.$refs.filterInput&&this.$refs.filterInput.inputFocus()},10)},toogleLoading(){this.loading=!this.loading},sortMethod(e,t,n){const r=Pi.sortMethod(e,t,n,this.sortDataValues).slice(0,e.length);return this.store.valueInputFilterTable===""?r:Pi.sortMethod(e,t,n,this.sortDataValues)}}});function bh(e,t,n,o,r,a){const i=l.resolveComponent("TableFilter"),s=l.resolveComponent("TableColumnsSelector"),u=l.resolveComponent("TableSlotHeader"),f=l.resolveComponent("TableSlotBody"),d=l.resolveComponent("TableSlotGrid"),c=l.resolveComponent("TableSkeleton"),m=l.resolveComponent("CardListSkeleton");return l.openBlock(),l.createElementBlock("div",null,[e.showSkeleton?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(pm,{key:0,ref:"myTable",selected:e.selected,"onUpdate:selected":t[0]||(t[0]=h=>e.selected=h),class:"my-table",grid:e.smallDevice,style:l.normalizeStyle(e.tableStyle),flat:"",bordered:"",rows:e.rowsData,columns:e.columns,"row-key":e.rowKey,"rows-per-page-options":[0],selection:e.selectionType,"visible-columns":e.visibleColumns,"table-class":"text-grey-9","table-header-class":"main-color",filter:e.filterComputed,"filter-method":e.filterMethod,"sort-method":e.sortMethod,separator:"horizontal","binary-state-sort":"","selected-rows-label":e.getSelectedString,loading:e.loading,"pagination.sync":"0","grid-header":e.showGridHeader},{"top-right":l.withCtx(h=>[l.createVNode(Sa),e.getTableInputSearchVisibility&&!e.hideFilter?(l.openBlock(),l.createBlock(i,{key:0,ref:"filterInput",class:"q-pl-xs","table-props":h,store:e.store,onInputFocus:e.filterInputFocus},null,8,["table-props","store","onInputFocus"])):l.createCommentVNode("",!0),e.getColumnsSelectorVisibility&&!e.hideColumnsSelector?(l.openBlock(),l.createBlock(s,{key:1,class:"q-pl-xs","table-props":h,columns:e.columns,"visible-columns":e.visibleColumns,onOnSelectVisibleColumns:e.onSelectVisibleColumns},null,8,["table-props","columns","visible-columns","onOnSelectVisibleColumns"])):l.createCommentVNode("",!0)]),header:l.withCtx(h=>[l.createVNode(u,{"table-props":h,"selection-type":e.selectionType,"small-device":e.smallDevice},null,8,["table-props","selection-type","small-device"])]),body:l.withCtx(h=>[e.showSkeleton?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(f,{key:0,"table-props":h,"selection-type":e.selectionType,onOnUpdateBasicCheckboxValue:e.onUpdateBasicCheckboxValue,onOnUpdateCustomizedCheckboxValue:e.onUpdateCustomizedCheckboxValue,onOnSaveValuePopupEdit:e.onSaveValuePopupEdit,onOnClickButton:e.onClickButton,onClick:p=>e.onRowClick(h.row)},null,8,["table-props","selection-type","onOnUpdateBasicCheckboxValue","onOnUpdateCustomizedCheckboxValue","onOnSaveValuePopupEdit","onOnClickButton","onClick"]))]),item:l.withCtx(h=>[l.createVNode(d,{"table-props":h,"selection-type":e.selectionType,"popup-edit-number-options":e.popupEditNumberOptions,onOnUpdateCustomizedCheckboxValue:e.onUpdateCustomizedCheckboxValue,onOnUpdateBasicCheckboxValue:e.onUpdateBasicCheckboxValue,onOnSaveValuePopupEdit:e.onSaveValuePopupEdit,onOnClickButton:e.onClickButton,onClick:p=>e.onRowClick(h.row)},null,8,["table-props","selection-type","popup-edit-number-options","onOnUpdateCustomizedCheckboxValue","onOnUpdateBasicCheckboxValue","onOnSaveValuePopupEdit","onOnClickButton","onClick"])]),_:1},8,["selected","grid","style","rows","columns","row-key","selection","visible-columns","filter","filter-method","sort-method","selected-rows-label","loading","grid-header"])),e.getTableSkeletonVisibility?(l.openBlock(),l.createBlock(c,{key:1,id:"tableSkeleton"})):l.createCommentVNode("",!0),e.getGridSkeletonVisibility?(l.openBlock(),l.createBlock(m,{key:2,id:"cardListSkeleton"})):l.createCommentVNode("",!0)])}const Li=lt(vh,[["render",bh]]),yh={install(e){Ea(e,"MyTable",Li)}};var Eh=Object.create,Di=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyNames,Ch=Object.getPrototypeOf,kh=Object.prototype.hasOwnProperty,wh=(e,t)=>function(){return e&&(t=(0,e[Pr(e)[0]])(e=0)),t},Th=(e,t)=>function(){return t||(0,e[Pr(e)[0]])((t={exports:{}}).exports,t),t.exports},Oh=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Pr(t))!kh.call(e,r)&&r!==n&&Di(e,r,{get:()=>t[r],enumerable:!(o=Sh(t,r))||o.enumerable});return e},Ah=(e,t,n)=>(n=e!=null?Eh(Ch(e)):{},Oh(Di(n,"default",{value:e,enumerable:!0}),e)),Gn=wh({"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/esm_shims.js"(){}}),Ih=Th({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){Gn(),t.exports=o;function n(a){return a instanceof Buffer?Buffer.from(a):new a.constructor(a.buffer.slice(),a.byteOffset,a.length)}function o(a){if(a=a||{},a.circles)return r(a);const i=new Map;if(i.set(Date,c=>new Date(c)),i.set(Map,(c,m)=>new Map(u(Array.from(c),m))),i.set(Set,(c,m)=>new Set(u(Array.from(c),m))),a.constructorHandlers)for(const c of a.constructorHandlers)i.set(c[0],c[1]);let s=null;return a.proto?d:f;function u(c,m){const h=Object.keys(c),p=new Array(h.length);for(let S=0;S<h.length;S++){const _=h[S],g=c[_];typeof g!="object"||g===null?p[_]=g:g.constructor!==Object&&(s=i.get(g.constructor))?p[_]=s(g,m):ArrayBuffer.isView(g)?p[_]=n(g):p[_]=m(g)}return p}function f(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return u(c,f);if(c.constructor!==Object&&(s=i.get(c.constructor)))return s(c,f);const m={};for(const h in c){if(Object.hasOwnProperty.call(c,h)===!1)continue;const p=c[h];typeof p!="object"||p===null?m[h]=p:p.constructor!==Object&&(s=i.get(p.constructor))?m[h]=s(p,f):ArrayBuffer.isView(p)?m[h]=n(p):m[h]=f(p)}return m}function d(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return u(c,d);if(c.constructor!==Object&&(s=i.get(c.constructor)))return s(c,d);const m={};for(const h in c){const p=c[h];typeof p!="object"||p===null?m[h]=p:p.constructor!==Object&&(s=i.get(p.constructor))?m[h]=s(p,d):ArrayBuffer.isView(p)?m[h]=n(p):m[h]=d(p)}return m}}function r(a){const i=[],s=[],u=new Map;if(u.set(Date,h=>new Date(h)),u.set(Map,(h,p)=>new Map(d(Array.from(h),p))),u.set(Set,(h,p)=>new Set(d(Array.from(h),p))),a.constructorHandlers)for(const h of a.constructorHandlers)u.set(h[0],h[1]);let f=null;return a.proto?m:c;function d(h,p){const S=Object.keys(h),_=new Array(S.length);for(let g=0;g<S.length;g++){const v=S[g],E=h[v];if(typeof E!="object"||E===null)_[v]=E;else if(E.constructor!==Object&&(f=u.get(E.constructor)))_[v]=f(E,p);else if(ArrayBuffer.isView(E))_[v]=n(E);else{const b=i.indexOf(E);b!==-1?_[v]=s[b]:_[v]=p(E)}}return _}function c(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return d(h,c);if(h.constructor!==Object&&(f=u.get(h.constructor)))return f(h,c);const p={};i.push(h),s.push(p);for(const S in h){if(Object.hasOwnProperty.call(h,S)===!1)continue;const _=h[S];if(typeof _!="object"||_===null)p[S]=_;else if(_.constructor!==Object&&(f=u.get(_.constructor)))p[S]=f(_,c);else if(ArrayBuffer.isView(_))p[S]=n(_);else{const g=i.indexOf(_);g!==-1?p[S]=s[g]:p[S]=c(_)}}return i.pop(),s.pop(),p}function m(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return d(h,m);if(h.constructor!==Object&&(f=u.get(h.constructor)))return f(h,m);const p={};i.push(h),s.push(p);for(const S in h){const _=h[S];if(typeof _!="object"||_===null)p[S]=_;else if(_.constructor!==Object&&(f=u.get(_.constructor)))p[S]=f(_,m);else if(ArrayBuffer.isView(_))p[S]=n(_);else{const g=i.indexOf(_);g!==-1?p[S]=s[g]:p[S]=m(_)}}return i.pop(),s.pop(),p}}}});Gn(),Gn(),Gn();var Vi=typeof navigator<"u",te=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof te.chrome<"u"&&te.chrome.devtools,Vi&&(te.self,te.top);var Ri;typeof navigator<"u"&&((Ri=navigator.userAgent)==null||Ri.toLowerCase().includes("electron")),Gn();var xh=Ah(Ih()),Nh=/(?:^|[-_/])(\w)/g;function Ph(e,t){return t?t.toUpperCase():""}function Lh(e){return e&&`${e}`.replace(Nh,Ph)}function Dh(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const o=n.lastIndexOf("/"),r=n.substring(o+1);{const a=r.lastIndexOf(t);return r.substring(0,a)}}var Bi=(0,xh.default)({circles:!0});const Vh={trailing:!0};function bn(e,t=25,n={}){if(n={...Vh,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let o,r,a=[],i,s;const u=(f,d)=>(i=Rh(e,f,d),i.finally(()=>{if(i=null,n.trailing&&s&&!r){const c=u(f,s);return s=null,c}}),i);return function(...f){return i?(n.trailing&&(s=f),i):new Promise(d=>{const c=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const m=n.leading?o:u(this,f);for(const h of a)h(m);a=[]},t),c?(o=u(this,f),d(o)):a.push(d)})}}async function Rh(e,t,n){return await e.apply(t,n)}function Lr(e,t={},n){for(const o in e){const r=e[o],a=n?`${n}:${o}`:o;typeof r=="object"&&r!==null?Lr(r,t,a):typeof r=="function"&&(t[a]=r)}return t}const Bh={run:e=>e()},Fh=()=>Bh,Fi=typeof console.createTask<"u"?console.createTask:Fh;function Mh(e,t){const n=t.shift(),o=Fi(n);return e.reduce((r,a)=>r.then(()=>o.run(()=>a(...t))),Promise.resolve())}function qh(e,t){const n=t.shift(),o=Fi(n);return Promise.all(e.map(r=>o.run(()=>r(...t))))}function Dr(e,t){for(const n of[...e])n(t)}class Uh{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,o={}){if(!t||typeof n!="function")return()=>{};const r=t;let a;for(;this._deprecatedHooks[t];)a=this._deprecatedHooks[t],t=a.to;if(a&&!o.allowDeprecated){let i=a.message;i||(i=`${r} hook has been deprecated`+(a.to?`, please use ${a.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let o,r=(...a)=>(typeof o=="function"&&o(),o=void 0,r=void 0,n(...a));return o=this.hook(t,r),o}removeHook(t,n){if(this._hooks[t]){const o=this._hooks[t].indexOf(n);o!==-1&&this._hooks[t].splice(o,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const o=this._hooks[t]||[];delete this._hooks[t];for(const r of o)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Lr(t),o=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of o.splice(0,o.length))r()}}removeHooks(t){const n=Lr(t);for(const o in n)this.removeHook(o,n[o])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Mh,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(qh,t,...n)}callHookWith(t,n,...o){const r=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&&Dr(this._before,r);const a=t(n in this._hooks?[...this._hooks[n]]:[],o);return a instanceof Promise?a.finally(()=>{this._after&&r&&Dr(this._after,r)}):(this._after&&r&&Dr(this._after,r),a)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Mi(){return new Uh}var $h=Object.create,qi=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,Vr=Object.getOwnPropertyNames,zh=Object.getPrototypeOf,jh=Object.prototype.hasOwnProperty,Kh=(e,t)=>function(){return e&&(t=(0,e[Vr(e)[0]])(e=0)),t},Ui=(e,t)=>function(){return t||(0,e[Vr(e)[0]])((t={exports:{}}).exports,t),t.exports},Wh=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Vr(t))!jh.call(e,r)&&r!==n&&qi(e,r,{get:()=>t[r],enumerable:!(o=Hh(t,r))||o.enumerable});return e},Gh=(e,t,n)=>(n=e!=null?$h(zh(e)):{},Wh(qi(n,"default",{value:e,enumerable:!0}),e)),F=Kh({"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/esm_shims.js"(){}}),Yh=Ui({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){F(),function(n){var o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},r=["်","ް"],a={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},s={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},u=[";","?",":","@","&","=","+","$",",","/"].join(""),f=[";","?",":","@","&","=","+","$",","].join(""),d=[".","!","~","*","'","(",")"].join(""),c=function(_,g){var v="-",E="",b="",A=!0,I={},T,B,N,P,M,x,K,V,ne,Y,$,H,Q,oe,O="";if(typeof _!="string")return"";if(typeof g=="string"&&(v=g),K=s.en,V=i.en,typeof g=="object"){T=g.maintainCase||!1,I=g.custom&&typeof g.custom=="object"?g.custom:I,N=+g.truncate>1&&g.truncate||!1,P=g.uric||!1,M=g.uricNoSlash||!1,x=g.mark||!1,A=!(g.symbols===!1||g.lang===!1),v=g.separator||v,P&&(O+=u),M&&(O+=f),x&&(O+=d),K=g.lang&&s[g.lang]&&A?s[g.lang]:A?s.en:{},V=g.lang&&i[g.lang]?i[g.lang]:g.lang===!1||g.lang===!0?{}:i.en,g.titleCase&&typeof g.titleCase.length=="number"&&Array.prototype.toString.call(g.titleCase)?(g.titleCase.forEach(function(w){I[w+""]=w+""}),B=!0):B=!!g.titleCase,g.custom&&typeof g.custom.length=="number"&&Array.prototype.toString.call(g.custom)&&g.custom.forEach(function(w){I[w+""]=w+""}),Object.keys(I).forEach(function(w){var j;w.length>1?j=new RegExp("\\b"+h(w)+"\\b","gi"):j=new RegExp(h(w),"gi"),_=_.replace(j,I[w])});for($ in I)O+=$}for(O+=v,O=h(O),_=_.replace(/(^\s+|\s+$)/g,""),Q=!1,oe=!1,Y=0,H=_.length;Y<H;Y++)$=_[Y],p($,I)?Q=!1:V[$]?($=Q&&V[$].match(/[A-Za-z0-9]/)?" "+V[$]:V[$],Q=!1):$ in o?(Y+1<H&&r.indexOf(_[Y+1])>=0?(b+=$,$=""):oe===!0?($=a[b]+o[$],b=""):$=Q&&o[$].match(/[A-Za-z0-9]/)?" "+o[$]:o[$],Q=!1,oe=!1):$ in a?(b+=$,$="",Y===H-1&&($=a[b]),oe=!0):K[$]&&!(P&&u.indexOf($)!==-1)&&!(M&&f.indexOf($)!==-1)?($=Q||E.substr(-1).match(/[A-Za-z0-9]/)?v+K[$]:K[$],$+=_[Y+1]!==void 0&&_[Y+1].match(/[A-Za-z0-9]/)?v:"",Q=!0):(oe===!0?($=a[b]+$,b="",oe=!1):Q&&(/[A-Za-z0-9]/.test($)||E.substr(-1).match(/A-Za-z0-9]/))&&($=" "+$),Q=!1),E+=$.replace(new RegExp("[^\\w\\s"+O+"_-]","g"),v);return B&&(E=E.replace(/(\w)(\S*)/g,function(w,j,re){var se=j.toUpperCase()+(re!==null?re:"");return Object.keys(I).indexOf(se.toLowerCase())<0?se:se.toLowerCase()})),E=E.replace(/\s+/g,v).replace(new RegExp("\\"+v+"+","g"),v).replace(new RegExp("(^\\"+v+"+|\\"+v+"+$)","g"),""),N&&E.length>N&&(ne=E.charAt(N)===v,E=E.slice(0,N),ne||(E=E.slice(0,E.lastIndexOf(v)))),!T&&!B&&(E=E.toLowerCase()),E},m=function(_){return function(v){return c(v,_)}},h=function(_){return _.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},p=function(S,_){for(var g in _)if(_[g]===S)return!0};if(typeof t<"u"&&t.exports)t.exports=c,t.exports.createSlug=m;else if(typeof define<"u"&&define.amd)define([],function(){return c});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=c,n.createSlug=m}catch{}}(e)}}),Qh=Ui({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){F(),t.exports=Yh()}});F(),F(),F(),F(),F(),F(),F(),F();function Xh(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return n==="index"&&((t=e.__file)!=null&&t.endsWith("index.vue"))?"":n}function Zh(e){const t=e.__file;if(t)return Lh(Dh(t,".vue"))}function $i(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function Rr(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Hi(e){var t,n;const o=(t=e.subTree)==null?void 0:t.type,r=Rr(e);return r?((n=r==null?void 0:r.types)==null?void 0:n.Fragment)===o:!1}function xo(e){var t,n,o;const r=Xh((e==null?void 0:e.type)||{});if(r)return r;if((e==null?void 0:e.root)===e)return"Root";for(const i in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[i]===(e==null?void 0:e.type))return $i(e,i);for(const i in(o=e.appContext)==null?void 0:o.components)if(e.appContext.components[i]===(e==null?void 0:e.type))return $i(e,i);const a=Zh((e==null?void 0:e.type)||{});return a||"Anonymous Component"}function Jh(e){var t,n,o;const r=(o=(n=(t=e==null?void 0:e.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?o:0,a=e===(e==null?void 0:e.root)?"root":e.uid;return`${r}:${a}`}function Br(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function eg(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var No;function tg(e){return No||(No=document.createRange()),No.selectNode(e),No.getBoundingClientRect()}function ng(e){const t=eg();if(!e.children)return t;for(let n=0,o=e.children.length;n<o;n++){const r=e.children[n];let a;if(r.component)a=nn(r.component);else if(r.el){const i=r.el;i.nodeType===1||i.getBoundingClientRect?a=i.getBoundingClientRect():i.nodeType===3&&i.data.trim()&&(a=tg(i))}a&&og(t,a)}return t}function og(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var zi={top:0,left:0,right:0,bottom:0,width:0,height:0};function nn(e){const t=e.subTree.el;return typeof window>"u"?zi:Hi(e)?ng(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?nn(e.subTree.component):zi}F();function Fr(e){return Hi(e)?rg(e.subTree):e.subTree?[e.subTree.el]:[]}function rg(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...Fr(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var ji="__vue-devtools-component-inspector__",Ki="__vue-devtools-component-inspector__card__",Wi="__vue-devtools-component-inspector__name__",Gi="__vue-devtools-component-inspector__indicator__",Yi={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},lg={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},ag={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function yn(){return document.getElementById(ji)}function ig(){return document.getElementById(Ki)}function sg(){return document.getElementById(Gi)}function ug(){return document.getElementById(Wi)}function Mr(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function qr(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:ji,Object.assign(n.style,{...Yi,...Mr(e.bounds),...e.style});const o=document.createElement("span");o.id=Ki,Object.assign(o.style,{...lg,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=Wi,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;const a=document.createElement("i");return a.id=Gi,a.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(a.style,ag),o.appendChild(r),o.appendChild(a),n.appendChild(o),document.body.appendChild(n),n}function Ur(e){const t=yn(),n=ig(),o=ug(),r=sg();t&&(Object.assign(t.style,{...Yi,...Mr(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),o.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,r.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function cg(e){const t=nn(e);if(!t.width&&!t.height)return;const n=xo(e);yn()?Ur({bounds:t,name:n}):qr({bounds:t,name:n})}function Qi(){const e=yn();e&&(e.style.display="none")}var $r=null;function Hr(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&($r=n,n.vnode.el)){const r=nn(n),a=xo(n);yn()?Ur({bounds:r,name:a}):qr({bounds:r,name:a})}}}function dg(e,t){if(e.preventDefault(),e.stopPropagation(),$r){const n=Jh($r);t(n)}}var Po=null;function fg(){Qi(),window.removeEventListener("mouseover",Hr),window.removeEventListener("click",Po,!0),Po=null}function mg(){return window.addEventListener("mouseover",Hr),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),dg(n,o=>{window.removeEventListener("click",t,!0),Po=null,window.removeEventListener("mouseover",Hr);const r=yn();r&&(r.style.display="none"),e(JSON.stringify({id:o}))})}Po=t,window.addEventListener("click",t,!0)})}function hg(e){const t=Br(nt.value,e.id);if(t){const[n]=Fr(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const o=nn(t),r=document.createElement("div"),a={...Mr(o),position:"absolute"};Object.assign(r.style,a),document.body.appendChild(r),r.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(r)},2e3)}setTimeout(()=>{const o=nn(t);if(o.width||o.height){const r=xo(t),a=yn();a?Ur({...e,name:r,bounds:o}):qr({...e,name:r,bounds:o}),setTimeout(()=>{a&&(a.style.display="none")},1500)}},1200)}}F();var Xi,Zi;(Zi=(Xi=te).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(Xi.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function gg(e){let t=0;const n=setInterval(()=>{te.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function _g(){const e=te.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function pg(){return new Promise(e=>{function t(){_g(),e(te.__VUE_INSPECTOR__)}te.__VUE_INSPECTOR__?t():gg(()=>{t()})})}F(),F();function vg(e){return!!(e&&e.__v_isReadonly)}function Ji(e){return vg(e)?Ji(e.__v_raw):!!(e&&e.__v_isReactive)}function zr(e){return!!(e&&e.__v_isRef===!0)}function Yn(e){const t=e&&e.__v_raw;return t?Yn(t):e}var bg=class{constructor(){this.refEditor=new yg}set(e,t,n,o){const r=Array.isArray(t)?t:t.split(".");for(;r.length>1;){const s=r.shift();e instanceof Map&&(e=e.get(s)),e instanceof Set?e=Array.from(e.values())[s]:e=e[s],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const a=r[0],i=this.refEditor.get(e)[a];o?o(e,a,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):e[a]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let o=0;o<n.length;o++)if(e instanceof Map?e=e.get(n[o]):e=e[n[o]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const o=Array.isArray(t)?t.slice():t.split("."),r=n?2:1;for(;e&&o.length>r;){const a=o.shift();e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,o[0])}createDefaultSetCallback(e){return(t,n,o)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Yn(t)instanceof Map?t.delete(n):Yn(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const r=t[e.newKey||n];this.refEditor.isRef(r)?this.refEditor.set(r,o):Yn(t)instanceof Map?t.set(e.newKey||n,o):Yn(t)instanceof Set?t.add(o):t[e.newKey||n]=o}}}},yg=class{set(e,t){if(zr(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(r=>e.add(r));return}const n=Object.keys(t);if(e instanceof Map){const r=new Set(e.keys());n.forEach(a=>{e.set(a,Reflect.get(t,a)),r.delete(a)}),r.forEach(a=>e.delete(a));return}const o=new Set(Object.keys(e));n.forEach(r=>{Reflect.set(e,r,Reflect.get(t,r)),o.delete(r)}),o.forEach(r=>Reflect.deleteProperty(e,r))}}get(e){return zr(e)?e.value:e}isRef(e){return zr(e)||Ji(e)}};F(),F(),F();var Eg="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Sg(){if(!Vi||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(Eg);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}F(),F(),F();var es,ts;(ts=(es=te).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(es.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Cg=new Proxy(te.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function kg(e,t){qe.timelineLayersState[t.id]=!1,Cg.push({...e,descriptorId:t.id,appRecord:Rr(t.app)})}var ns,os;(os=(ns=te).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(ns.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var jr=new Proxy(te.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),rs=bn(()=>{Sn.hooks.callHook("sendInspectorToClient",ls())});function wg(e,t){var n,o;jr.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(o=e.stateFilterPlaceholder)!=null?o:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Rr(t.app)}),rs()}function ls(){return jr.filter(e=>e.descriptor.app===nt.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,o=e.options;return{id:o.id,label:o.label,logo:n.logo,icon:`custom-ic-baseline-${(t=o==null?void 0:o.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function Lo(e,t){return jr.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function Tg(){const e=Mi();e.hook("addInspector",({inspector:o,plugin:r})=>{wg(o,r.descriptor)});const t=bn(async({inspectorId:o,plugin:r})=>{var a;if(!o||!((a=r==null?void 0:r.descriptor)!=null&&a.app)||qe.highPerfModeEnabled)return;const i=Lo(o,r.descriptor.app),s={app:r.descriptor.app,inspectorId:o,filter:(i==null?void 0:i.treeFilter)||"",rootNodes:[]};await new Promise(u=>{e.callHookWith(async f=>{await Promise.all(f.map(d=>d(s))),u()},"getInspectorTree")}),e.callHookWith(async u=>{await Promise.all(u.map(f=>f({inspectorId:o,rootNodes:s.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=bn(async({inspectorId:o,plugin:r})=>{var a;if(!o||!((a=r==null?void 0:r.descriptor)!=null&&a.app)||qe.highPerfModeEnabled)return;const i=Lo(o,r.descriptor.app),s={app:r.descriptor.app,inspectorId:o,nodeId:(i==null?void 0:i.selectedNodeId)||"",state:null},u={currentTab:`custom-inspector:${o}`};s.nodeId&&await new Promise(f=>{e.callHookWith(async d=>{await Promise.all(d.map(c=>c(s,u))),f()},"getInspectorState")}),e.callHookWith(async f=>{await Promise.all(f.map(d=>d({inspectorId:o,nodeId:s.nodeId,state:s.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:o,nodeId:r,plugin:a})=>{const i=Lo(o,a.descriptor.app);i&&(i.selectedNodeId=r)}),e.hook("timelineLayerAdded",({options:o,plugin:r})=>{kg(o,r.descriptor)}),e.hook("timelineEventAdded",({options:o,plugin:r})=>{var a;const i=["performance","component-event","keyboard","mouse"];qe.highPerfModeEnabled||!((a=qe.timelineLayersState)!=null&&a[r.descriptor.id])&&!i.includes(o.layerId)||e.callHookWith(async s=>{await Promise.all(s.map(u=>u(o)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:o})=>{const r=o.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!r)return null;const a=r.id.toString();return[...r.instanceMap].filter(([s])=>s.split(":")[0]===a).map(([,s])=>s)}),e.hook("getComponentBounds",async({instance:o})=>nn(o)),e.hook("getComponentName",({instance:o})=>xo(o)),e.hook("componentHighlight",({uid:o})=>{const r=nt.value.instanceMap.get(o);r&&cg(r)}),e.hook("componentUnhighlight",()=>{Qi()}),e}var as,is;(is=(as=te).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(as.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var ss,us;(us=(ss=te).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(ss.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var cs,ds;(ds=(cs=te).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(cs.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var fs,ms;(ms=(fs=te).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(fs.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var hs,gs;(gs=(hs=te).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(hs.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var on="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Og(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Sg()}}var _s,ps;(ps=(_s=te)[on])!=null||(_s[on]=Og());var Ag=bn(e=>{Sn.hooks.callHook("devtoolsStateUpdated",{state:e})});bn((e,t)=>{Sn.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var Do=new Proxy(te.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?te.__VUE_DEVTOOLS_KIT_APP_RECORDS__:te.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),nt=new Proxy(te.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?te.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?te.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:te.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function vs(){Ag({...te[on],appRecords:Do.value,activeAppRecordId:nt.id,tabs:te.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:te.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Ig(e){te.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,vs()}function xg(e){te.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,vs()}var qe=new Proxy(te[on],{get(e,t){return t==="appRecords"?Do:t==="activeAppRecordId"?nt.id:t==="tabs"?te.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?te.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:te[on][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...te[on]},e[t]=n,te[on][t]=n,!0}});function Ng(e={}){var t,n,o;const{file:r,host:a,baseUrl:i=window.location.origin,line:s=0,column:u=0}=e;if(r){if(a==="chrome-extension"){const f=r.replace(/\\/g,"\\\\"),d=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${d}__open-in-editor?file=${encodeURI(r)}`).then(c=>{if(!c.ok){const m=`Opening component ${f} failed`;console.log(`%c${m}`,"color:red")}})}else if(qe.vitePluginDetected){const f=(o=te.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?o:i;te.__VUE_INSPECTOR__.openInEditor(f,r,s,u)}}}F(),F(),F(),F(),F();var bs,ys;(ys=(bs=te).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(bs.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Kr=new Proxy(te.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Wr(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Gr(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function Pg(e){var t,n,o;const r=(n=(t=Kr.find(a=>{var i;return a[0].id===e&&!!((i=a[0])!=null&&i.settings)}))==null?void 0:t[0])!=null?n:null;return(o=r==null?void 0:r.settings)!=null?o:null}function Es(e,t){var n,o,r;const a=Gr(e);if(a){const i=localStorage.getItem(a);if(i)return JSON.parse(i)}if(e){const i=(o=(n=Kr.find(s=>s[0].id===e))==null?void 0:n[0])!=null?o:null;return Wr((r=i==null?void 0:i.settings)!=null?r:{})}return Wr(t)}function Lg(e,t){const n=Gr(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Wr(t)))}function Dg(e,t,n){const o=Gr(e),r=localStorage.getItem(o),a=JSON.parse(r||"{}"),i={...a,[t]:n};localStorage.setItem(o,JSON.stringify(i)),Sn.hooks.callHookWith(s=>{s.forEach(u=>u({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:i}))},"setPluginSettings")}F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F();var Ss,Cs,ut=(Cs=(Ss=te).__VUE_DEVTOOLS_HOOK)!=null?Cs:Ss.__VUE_DEVTOOLS_HOOK=Mi(),Vg={vueAppInit(e){ut.hook("app:init",e)},vueAppUnmount(e){ut.hook("app:unmount",e)},vueAppConnected(e){ut.hook("app:connected",e)},componentAdded(e){return ut.hook("component:added",e)},componentEmit(e){return ut.hook("component:emit",e)},componentUpdated(e){return ut.hook("component:updated",e)},componentRemoved(e){return ut.hook("component:removed",e)},setupDevtoolsPlugin(e){ut.hook("devtools-plugin:setup",e)},perfStart(e){return ut.hook("perf:start",e)},perfEnd(e){return ut.hook("perf:end",e)}},ks={on:Vg,setupDevToolsPlugin(e,t){return ut.callHook("devtools-plugin:setup",e,t)}},Rg=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(qe.highPerfModeEnabled)return;const n=ls().find(o=>o.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(e){const o=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];ut.callHook("component:updated",...o)}else ut.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Lg(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){qe.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){qe.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return qe.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){qe.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return Es(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},Bg=Rg;F(),F(),F(),F();var Fg="__vue_devtool_undefined__",Mg="__vue_devtool_infinity__",qg="__vue_devtool_negative_infinity__",Ug="__vue_devtool_nan__";F(),F();var $g={[Fg]:"undefined",[Ug]:"NaN",[Mg]:"Infinity",[qg]:"-Infinity"};Object.entries($g).reduce((e,[t,n])=>(e[n]=t,e),{}),F(),F(),F(),F(),F();var ws,Ts;(Ts=(ws=te).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(ws.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function Os(e,t){return ks.setupDevToolsPlugin(e,t)}function Hg(e,t){const[n,o]=e;if(n.app!==t)return;const r=new Bg({plugin:{setupFn:o,descriptor:n},ctx:Sn});n.packageName==="vuex"&&r.on.editInspectorState(a=>{r.sendInspectorState(a.inspectorId)}),o(r)}function As(e,t){te.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||qe.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(te.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Kr.forEach(n=>{Hg(n,e)}))}F(),F();var Qn="__VUE_DEVTOOLS_ROUTER__",En="__VUE_DEVTOOLS_ROUTER_INFO__",Is,xs;(xs=(Is=te)[En])!=null||(Is[En]={currentRoute:null,routes:[]});var Ns,Ps;(Ps=(Ns=te)[Qn])!=null||(Ns[Qn]={}),new Proxy(te[En],{get(e,t){return te[En][t]}}),new Proxy(te[Qn],{get(e,t){if(t==="value")return te[Qn]}});function zg(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Yr(e){return e.map(t=>{let{path:n,name:o,children:r,meta:a}=t;return r!=null&&r.length&&(r=Yr(r)),{path:n,name:o,children:r,meta:a}})}function jg(e){if(e){const{fullPath:t,hash:n,href:o,path:r,name:a,matched:i,params:s,query:u}=e;return{fullPath:t,hash:n,href:o,path:r,name:a,params:s,query:u,matched:Yr(i)}}return e}function Kg(e,t){function n(){var o;const r=(o=e.app)==null?void 0:o.config.globalProperties.$router,a=jg(r==null?void 0:r.currentRoute.value),i=Yr(zg(r)),s=console.warn;console.warn=()=>{},te[En]={currentRoute:a?Bi(a):{},routes:Bi(i)},te[Qn]=r,console.warn=s}n(),ks.on.componentUpdated(bn(()=>{var o;((o=t.value)==null?void 0:o.app)===e.app&&(n(),!qe.highPerfModeEnabled&&Sn.hooks.callHook("routerInfoUpdated",{state:te[En]}))},200))}function Wg(e){return{async getInspectorTree(t){const n={...t,app:nt.value.app,rootNodes:[]};return await new Promise(o=>{e.callHookWith(async r=>{await Promise.all(r.map(a=>a(n))),o()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:nt.value.app,state:null},o={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(r=>{e.callHookWith(async a=>{await Promise.all(a.map(i=>i(n,o))),r()},"getInspectorState")}),n.state},editInspectorState(t){const n=new bg,o={...t,app:nt.value.app,set:(r,a=t.path,i=t.state.value,s)=>{n.set(r,a,i,s||n.createDefaultSetCallback(t.state))}};e.callHookWith(r=>{r.forEach(a=>a(o))},"editInspectorState")},sendInspectorState(t){const n=Lo(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return mg()},cancelInspectComponentInspector(){return fg()},getComponentRenderCode(t){const n=Br(nt.value,t);if(n)return(n==null?void 0:n.type)instanceof Function?n.type.toString():n.render.toString()},scrollToComponent(t){return hg({id:t})},openInEditor:Ng,getVueInspector:pg,toggleApp(t,n){const o=Do.value.find(r=>r.id===t);o&&(xg(t),Ig(o),Kg(o,nt),rs(),As(o.app,n))},inspectDOM(t){const n=Br(nt.value,t);if(n){const[o]=Fr(n);o&&(te.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=o)}},updatePluginSettings(t,n,o){Dg(t,n,o)},getPluginSettings(t){return{options:Pg(t),values:Es(t)}}}}F();var Ls,Ds;(Ds=(Ls=te).__VUE_DEVTOOLS_ENV__)!=null||(Ls.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var Vs=Tg(),Rs,Bs;(Bs=(Rs=te).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(Rs.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:Vs,get state(){return{...qe,activeAppRecordId:nt.id,activeAppRecord:nt.value,appRecords:Do.value}},api:Wg(Vs)});var Sn=te.__VUE_DEVTOOLS_KIT_CONTEXT__;F(),Gh(Qh());var Fs,Ms;(Ms=(Fs=te).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null||(Fs.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),F();function Gg(e){qe.highPerfModeEnabled=e??!qe.highPerfModeEnabled,!e&&nt.value&&As(nt.value.app)}F(),F(),F();function Yg(e){qe.devtoolsClientDetected={...qe.devtoolsClientDetected,...e};const t=Object.values(qe.devtoolsClientDetected).some(Boolean);Gg(!t)}var qs,Us;(Us=(qs=te).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(qs.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=Yg),F(),F(),F(),F(),F(),F(),F();var Qg=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},$s=class{constructor(e){this.generateIdentifier=e,this.kv=new Qg}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Xg=class extends $s{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};F(),F();function Zg(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function Jg(e,t){const n=Zg(e);if("find"in n)return n.find(t);const o=n;for(let r=0;r<o.length;r++){const a=o[r];if(t(a))return a}}function Cn(e,t){Object.entries(e).forEach(([n,o])=>t(o,n))}function Vo(e,t){return e.indexOf(t)!==-1}function Hs(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(t(o))return o}}var e_=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Jg(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};F(),F();var t_=e=>Object.prototype.toString.call(e).slice(8,-1),zs=e=>typeof e>"u",n_=e=>e===null,Xn=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Qr=e=>Xn(e)&&Object.keys(e).length===0,$t=e=>Array.isArray(e),o_=e=>typeof e=="string",r_=e=>typeof e=="number"&&!isNaN(e),l_=e=>typeof e=="boolean",a_=e=>e instanceof RegExp,Zn=e=>e instanceof Map,Jn=e=>e instanceof Set,js=e=>t_(e)==="Symbol",i_=e=>e instanceof Date&&!isNaN(e.valueOf()),s_=e=>e instanceof Error,Ks=e=>typeof e=="number"&&isNaN(e),u_=e=>l_(e)||n_(e)||zs(e)||r_(e)||o_(e)||js(e),c_=e=>typeof e=="bigint",d_=e=>e===1/0||e===-1/0,f_=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),m_=e=>e instanceof URL;F();var Ws=e=>e.replace(/\./g,"\\."),Xr=e=>e.map(String).map(Ws).join("."),eo=e=>{const t=[];let n="";for(let r=0;r<e.length;r++){let a=e.charAt(r);if(a==="\\"&&e.charAt(r+1)==="."){n+=".",r++;continue}if(a==="."){t.push(n),n="";continue}n+=a}const o=n;return t.push(o),t};F();function At(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Gs=[At(zs,"undefined",()=>null,()=>{}),At(c_,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),At(i_,"Date",e=>e.toISOString(),e=>new Date(e)),At(s_,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n}),At(a_,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),At(Jn,"set",e=>[...e.values()],e=>new Set(e)),At(Zn,"map",e=>[...e.entries()],e=>new Map(e)),At(e=>Ks(e)||d_(e),"number",e=>Ks(e)?"NaN":e>0?"Infinity":"-Infinity",Number),At(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),At(m_,"URL",e=>e.toString(),e=>new URL(e))];function Ro(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Ys=Ro((e,t)=>js(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),h_=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Qs=Ro(f_,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=h_[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Xs(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Zs=Ro(Xs,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const o={};return n.forEach(r=>{o[r]=e[r]}),o},(e,t,n)=>{const o=n.classRegistry.getValue(t[1]);if(!o)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(o.prototype),e)}),Js=Ro((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),g_=[Zs,Ys,Js,Qs],eu=(e,t)=>{const n=Hs(g_,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const o=Hs(Gs,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},tu={};Gs.forEach(e=>{tu[e.annotation]=e});var __=(e,t,n)=>{if($t(t))switch(t[0]){case"symbol":return Ys.untransform(e,t,n);case"class":return Zs.untransform(e,t,n);case"custom":return Js.untransform(e,t,n);case"typed-array":return Qs.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const o=tu[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}};F();var kn=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function nu(e){if(Vo(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Vo(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Vo(e,"constructor"))throw new Error("constructor is not allowed as a property")}var p_=(e,t)=>{nu(t);for(let n=0;n<t.length;n++){const o=t[n];if(Jn(e))e=kn(e,+o);else if(Zn(e)){const r=+o,a=+t[++n]==0?"key":"value",i=kn(e,r);switch(a){case"key":e=i;break;case"value":e=e.get(i);break}}else e=e[o]}return e},Zr=(e,t,n)=>{if(nu(t),t.length===0)return n(e);let o=e;for(let a=0;a<t.length-1;a++){const i=t[a];if($t(o)){const s=+i;o=o[s]}else if(Xn(o))o=o[i];else if(Jn(o)){const s=+i;o=kn(o,s)}else if(Zn(o)){if(a===t.length-2)break;const u=+i,f=+t[++a]==0?"key":"value",d=kn(o,u);switch(f){case"key":o=d;break;case"value":o=o.get(d);break}}}const r=t[t.length-1];if($t(o)?o[+r]=n(o[+r]):Xn(o)&&(o[r]=n(o[r])),Jn(o)){const a=kn(o,+r),i=n(a);a!==i&&(o.delete(a),o.add(i))}if(Zn(o)){const a=+t[t.length-2],i=kn(o,a);switch(+r==0?"key":"value"){case"key":{const u=n(i);o.set(u,o.get(i)),u!==i&&o.delete(i);break}case"value":{o.set(i,n(o.get(i)));break}}}return e};function Jr(e,t,n=[]){if(!e)return;if(!$t(e)){Cn(e,(a,i)=>Jr(a,t,[...n,...eo(i)]));return}const[o,r]=e;r&&Cn(r,(a,i)=>{Jr(a,t,[...n,...eo(i)])}),t(o,n)}function v_(e,t,n){return Jr(t,(o,r)=>{e=Zr(e,r,a=>__(a,o,n))}),e}function b_(e,t){function n(o,r){const a=p_(e,eo(r));o.map(eo).forEach(i=>{e=Zr(e,i,()=>a)})}if($t(t)){const[o,r]=t;o.forEach(a=>{e=Zr(e,eo(a),()=>e)}),r&&Cn(r,n)}else Cn(t,n);return e}var y_=(e,t)=>Xn(e)||$t(e)||Zn(e)||Jn(e)||Xs(e,t);function E_(e,t,n){const o=n.get(e);o?o.push(t):n.set(e,[t])}function S_(e,t){const n={};let o;return e.forEach(r=>{if(r.length<=1)return;t||(r=r.map(s=>s.map(String)).sort((s,u)=>s.length-u.length));const[a,...i]=r;a.length===0?o=i.map(Xr):n[Xr(a)]=i.map(Xr)}),o?Qr(n)?[o]:[o,n]:Qr(n)?void 0:n}var ou=(e,t,n,o,r=[],a=[],i=new Map)=>{var s;const u=u_(e);if(!u){E_(e,r,t);const p=i.get(e);if(p)return o?{transformedValue:null}:p}if(!y_(e,n)){const p=eu(e,n),S=p?{transformedValue:p.value,annotations:[p.type]}:{transformedValue:e};return u||i.set(e,S),S}if(Vo(a,e))return{transformedValue:null};const f=eu(e,n),d=(s=f==null?void 0:f.value)!=null?s:e,c=$t(d)?[]:{},m={};Cn(d,(p,S)=>{if(S==="__proto__"||S==="constructor"||S==="prototype")throw new Error(`Detected property ${S}. This is a prototype pollution risk, please remove it from your object.`);const _=ou(p,t,n,o,[...r,S],[...a,e],i);c[S]=_.transformedValue,$t(_.annotations)?m[S]=_.annotations:Xn(_.annotations)&&Cn(_.annotations,(g,v)=>{m[Ws(S)+"."+v]=g})});const h=Qr(m)?{transformedValue:c,annotations:f?[f.type]:void 0}:{transformedValue:c,annotations:f?[f.type,m]:m};return u||i.set(e,h),h};F(),F();function ru(e){return Object.prototype.toString.call(e).slice(8,-1)}function lu(e){return ru(e)==="Array"}function C_(e){if(ru(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function k_(e,t,n,o,r){const a={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";a==="enumerable"&&(e[t]=n),r&&a==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function el(e,t={}){if(lu(e))return e.map(r=>el(r,t));if(!C_(e))return e;const n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...n,...o].reduce((r,a)=>{if(lu(t.props)&&!t.props.includes(a))return r;const i=e[a],s=el(i,t);return k_(r,a,s,e,t.nonenumerable),r},{})}var we=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Xg,this.symbolRegistry=new $s(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new e_,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=ou(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta={...o.meta,values:n.annotations});const r=S_(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){const{json:t,meta:n}=e;let o=el(t);return n!=null&&n.values&&(o=v_(o,n.values,this)),n!=null&&n.referentialEqualities&&(o=b_(o,n.referentialEqualities)),o}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};we.defaultInstance=new we,we.serialize=we.defaultInstance.serialize.bind(we.defaultInstance),we.deserialize=we.defaultInstance.deserialize.bind(we.defaultInstance),we.stringify=we.defaultInstance.stringify.bind(we.defaultInstance),we.parse=we.defaultInstance.parse.bind(we.defaultInstance),we.registerClass=we.defaultInstance.registerClass.bind(we.defaultInstance),we.registerSymbol=we.defaultInstance.registerSymbol.bind(we.defaultInstance),we.registerCustom=we.defaultInstance.registerCustom.bind(we.defaultInstance),we.allowErrorProps=we.defaultInstance.allowErrorProps.bind(we.defaultInstance),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F();var au,iu;(iu=(au=te).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(au.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var su,uu;(uu=(su=te).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(su.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var cu,du;(du=(cu=te).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(cu.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var fu,mu;(mu=(fu=te).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(fu.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var hu,gu;(gu=(hu=te).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||(hu.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var _u,pu;(pu=(_u=te).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(_u.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),F(),F(),F(),F(),F(),F(),F();/*!
1
+ (function(Tt,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(Tt=typeof globalThis<"u"?globalThis:Tt||self,l(Tt.QuasarFactoryLib={},Tt.Vue))})(this,function(Tt,l){"use strict";function st(e,t,n,o){return Object.defineProperty(e,t,{get:n,set:o,enumerable:!0}),e}function Fc(e,t){for(const n in t)st(e,n,t[n]);return e}const Ft=l.ref(!1);let tr;function Mc(e,t){const n=/(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:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function qc(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 Ml="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Uc(e){const t=e.toLowerCase(),n=qc(t),o=Mc(t,n),r={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};o.browser&&(r[o.browser]=!0,r.version=o.version,r.versionNumber=parseInt(o.version,10)),o.platform&&(r[o.platform]=!0);const a=r.android||r.ios||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"];if(a===!0||t.indexOf("mobile")!==-1?r.mobile=!0:r.desktop=!0,r["windows phone"]&&(r.winphone=!0,delete r["windows phone"]),r.edga||r.edgios||r.edg?(r.edge=!0,o.browser="edge"):r.crios?(r.chrome=!0,o.browser="chrome"):r.fxios&&(r.firefox=!0,o.browser="firefox"),(r.ipod||r.ipad||r.iphone)&&(r.ios=!0),r.vivaldi&&(o.browser="vivaldi",r.vivaldi=!0),(r.chrome||r.opr||r.safari||r.vivaldi||r.mobile===!0&&r.ios!==!0&&a!==!0)&&(r.webkit=!0),r.opr&&(o.browser="opera",r.opera=!0),r.safari&&(r.blackberry||r.bb?(o.browser="blackberry",r.blackberry=!0):r.playbook?(o.browser="playbook",r.playbook=!0):r.android?(o.browser="android",r.android=!0):r.kindle?(o.browser="kindle",r.kindle=!0):r.silk&&(o.browser="silk",r.silk=!0)),r.name=o.browser,r.platform=o.platform,t.indexOf("electron")!==-1)r.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)r.bex=!0;else{if(window.Capacitor!==void 0?(r.capacitor=!0,r.nativeMobile=!0,r.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(r.cordova=!0,r.nativeMobile=!0,r.nativeMobileWrapper="cordova"),Ft.value===!0&&(tr={is:{...r}}),Ml===!0&&r.mac===!0&&(r.desktop===!0&&r.safari===!0||r.nativeMobile===!0&&r.android!==!0&&r.ios!==!0&&r.ipad!==!0)){delete r.mac,delete r.desktop;const i=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(r,{mobile:!0,ios:!0,platform:i,[i]:!0})}r.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete r.desktop,r.mobile=!0)}return r}const ql=navigator.userAgent||navigator.vendor||window.opera,$c={has:{touch:!1,webStorage:!1},within:{iframe:!1}},De={userAgent:ql,is:Uc(ql),has:{touch:Ml},within:{iframe:window.self!==window.top}},fo={install(e){const{$q:t}=e;Ft.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,De),Ft.value=!1}),t.platform=l.reactive(this)):t.platform=this}};{let e;st(De.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(fo,De),Ft.value===!0&&(Object.assign(fo,tr,$c),tr=null)}function Ee(e){return l.markRaw(l.defineComponent(e))}function Hc(e){return l.markRaw(e)}const mo=(e,t)=>{const n=l.reactive(e);for(const o in e)st(t,o,()=>n[o],r=>{n[o]=r});return t},Ke={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(Ke,{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 mn(){}function Ul(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 zc(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function Ot(e){e.stopPropagation()}function bt(e){e.cancelable!==!1&&e.preventDefault()}function Me(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function nr(e,t,n){const o=`__q_${t}_evt`;e[o]=e[o]!==void 0?e[o].concat(n):n,n.forEach(r=>{r[0].addEventListener(r[1],e[r[2]],Ke[r[3]])})}function $l(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],Ke[o[3]])}),e[n]=void 0)}function or(e,t=250,n){let o=null;function r(){const a=arguments,i=()=>{o=null,e.apply(this,a)};o!==null&&clearTimeout(o),o=setTimeout(i,t)}return r.cancel=()=>{o!==null&&clearTimeout(o)},r}const rr=["sm","md","lg","xl"],{passive:Hl}=Ke,jc=mo({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:mn,setDebounce:mn,install({$q:e,onSSRHydrated:t}){if(e.screen=this,this.__installed===!0){e.config.screen!==void 0&&(e.config.screen.bodyClasses===!1?document.body.classList.remove(`screen--${this.name}`):this.__update(!0));return}const{visualViewport:n}=window,o=n||window,r=document.scrollingElement||document.documentElement,a=n===void 0||De.is.mobile===!0?()=>[Math.max(window.innerWidth,r.clientWidth),Math.max(window.innerHeight,r.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-r.clientWidth,n.height*n.scale+window.innerHeight-r.clientHeight],i=e.config.screen!==void 0&&e.config.screen.bodyClasses===!0;this.__update=c=>{const[m,h]=a();if(h!==this.height&&(this.height=h),m!==this.width)this.width=m;else if(c!==!0)return;let p=this.sizes;this.gt.xs=m>=p.sm,this.gt.sm=m>=p.md,this.gt.md=m>=p.lg,this.gt.lg=m>=p.xl,this.lt.sm=m<p.sm,this.lt.md=m<p.md,this.lt.lg=m<p.lg,this.lt.xl=m<p.xl,this.xs=this.lt.sm,this.sm=this.gt.xs===!0&&this.lt.md===!0,this.md=this.gt.sm===!0&&this.lt.lg===!0,this.lg=this.gt.md===!0&&this.lt.xl===!0,this.xl=this.gt.lg,p=this.xs===!0&&"xs"||this.sm===!0&&"sm"||this.md===!0&&"md"||this.lg===!0&&"lg"||"xl",p!==this.name&&(i===!0&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${p}`)),this.name=p)};let s,u={},f=16;this.setSizes=c=>{rr.forEach(m=>{c[m]!==void 0&&(u[m]=c[m])})},this.setDebounce=c=>{f=c};const d=()=>{const c=getComputedStyle(document.body);c.getPropertyValue("--q-size-sm")&&rr.forEach(m=>{this.sizes[m]=parseInt(c.getPropertyValue(`--q-size-${m}`),10)}),this.setSizes=m=>{rr.forEach(h=>{m[h]&&(this.sizes[h]=m[h])}),this.__update(!0)},this.setDebounce=m=>{s!==void 0&&o.removeEventListener("resize",s,Hl),s=m>0?or(this.__update,m):this.__update,o.addEventListener("resize",s,Hl)},this.setDebounce(f),Object.keys(u).length!==0?(this.setSizes(u),u=void 0):this.__update(),i===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};Ft.value===!0?t.push(d):d()}}),Xe=mo({isActive:!1,mode:!1},{__media:void 0,set(e){Xe.mode=e,e==="auto"?(Xe.__media===void 0&&(Xe.__media=window.matchMedia("(prefers-color-scheme: dark)"),Xe.__updateMedia=()=>{Xe.set("auto")},Xe.__media.addListener(Xe.__updateMedia)),e=Xe.__media.matches):Xe.__media!==void 0&&(Xe.__media.removeListener(Xe.__updateMedia),Xe.__media=void 0),Xe.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){Xe.set(Xe.isActive===!1)},install({$q:e,ssrContext:t}){const{dark:n}=e.config;e.dark=this,this.__installed!==!0&&this.set(n!==void 0?n:!1)}});function Kc(e,t,n=document.body){if(typeof e!="string")throw new TypeError("Expected a string as propName");if(typeof t!="string")throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${e}`,t)}let zl=!1;function Wc(e){zl=e.isComposing===!0}function lr(e){return zl===!0||e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Qt(e,t){return lr(e)===!0?!1:[].concat(t).includes(e.keyCode)}function jl(e){if(e.ios===!0)return"ios";if(e.android===!0)return"android"}function Gc({is:e,has:t,within:n},o){const r=[e.desktop===!0?"desktop":"mobile",`${t.touch===!1?"no-":""}touch`];if(e.mobile===!0){const a=jl(e);a!==void 0&&r.push("platform-"+a)}if(e.nativeMobile===!0){const a=e.nativeMobileWrapper;r.push(a),r.push("native-mobile"),e.ios===!0&&(o[a]===void 0||o[a].iosStatusBarPadding!==!1)&&r.push("q-ios-padding")}else e.electron===!0?r.push("electron"):e.bex===!0&&r.push("bex");return n.iframe===!0&&r.push("within-iframe"),r}function Yc(){const{is:e}=De,t=document.body.className,n=new Set(t.replace(/ {2}/g," ").split(" "));if(e.nativeMobile!==!0&&e.electron!==!0&&e.bex!==!0){if(e.desktop===!0)n.delete("mobile"),n.delete("platform-ios"),n.delete("platform-android"),n.add("desktop");else if(e.mobile===!0){n.delete("desktop"),n.add("mobile"),n.delete("platform-ios"),n.delete("platform-android");const r=jl(e);r!==void 0&&n.add(`platform-${r}`)}}De.has.touch===!0&&(n.delete("no-touch"),n.add("touch")),De.within.iframe===!0&&n.add("within-iframe");const o=Array.from(n).join(" ");t!==o&&(document.body.className=o)}function Qc(e){for(const t in e)Kc(t,e[t])}const Xc={install(e){if(this.__installed!==!0){if(Ft.value===!0)Yc();else{const{$q:t}=e;t.config.brand!==void 0&&Qc(t.config.brand);const n=Gc(De,t.config);document.body.classList.add.apply(document.body.classList,n)}De.is.ios===!0&&document.body.addEventListener("touchstart",mn),window.addEventListener("keydown",Wc,!0)}}},Kl=()=>!0;function Zc(e){return typeof e=="string"&&e!==""&&e!=="/"&&e!=="#/"}function Jc(e){return e.startsWith("#")===!0&&(e=e.substring(1)),e.startsWith("/")===!1&&(e="/"+e),e.endsWith("/")===!0&&(e=e.substring(0,e.length-1)),"#"+e}function ed(e){if(e.backButtonExit===!1)return()=>!1;if(e.backButtonExit==="*")return Kl;const t=["#/"];return Array.isArray(e.backButtonExit)===!0&&t.push(...e.backButtonExit.filter(Zc).map(Jc)),()=>t.includes(window.location.hash)}const Bn={__history:[],add:mn,remove:mn,install({$q:e}){if(this.__installed===!0)return;const{cordova:t,capacitor:n}=De.is;if(t!==!0&&n!==!0)return;const o=e.config[t===!0?"cordova":"capacitor"];if(o!==void 0&&o.backButton===!1||n===!0&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=i=>{i.condition===void 0&&(i.condition=Kl),this.__history.push(i)},this.remove=i=>{const s=this.__history.indexOf(i);s>=0&&this.__history.splice(s,1)};const r=ed(Object.assign({backButtonExit:!0},o)),a=()=>{if(this.__history.length){const i=this.__history[this.__history.length-1];i.condition()===!0&&(this.__history.pop(),i.handler())}else r()===!0?navigator.app.exitApp():window.history.back()};t===!0?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",a,!1)}):window.Capacitor.Plugins.App.addListener("backButton",a)}},Wl={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",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},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,t,n)=>e+"-"+t+" of "+n,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 Gl(){const e=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((t,n)=>n===0?t.toLowerCase():n>1||t.length<4?t.toUpperCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("-")}const Mt=mo({__qLang:{}},{getLocale:Gl,set(e=Wl,t){const n={...e,rtl:e.rtl===!0,getLocale:Gl};{if(n.set=Mt.set,Mt.__langConfig===void 0||Mt.__langConfig.noHtmlAttrs!==!0){const o=document.documentElement;o.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),o.setAttribute("lang",n.isoName)}Object.assign(Mt.__qLang,n)}},install({$q:e,lang:t,ssrContext:n}){e.lang=Mt.__qLang,Mt.__langConfig=e.config.lang,this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(o){return Reflect.ownKeys(o).filter(r=>r!=="set"&&r!=="getLocale")}}),this.set(t||Wl))}}),td={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},ho=mo({iconMapFn:null,__qIconSet:{}},{set(e,t){const n={...e};n.set=ho.set,Object.assign(ho.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,st(e,"iconMapFn",()=>this.iconMapFn,o=>{this.iconMapFn=o}),this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys(o){return Reflect.ownKeys(o).filter(r=>r!=="set")}}),this.set(t||td))}}),nd="_q_",od="_q_fo_",go={};let Yl=!1;function rd(){Yl=!0}function Nt(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,o;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(Nt(e[o],t[o])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let a=e.entries();for(o=a.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=a.next()}for(a=e.entries(),o=a.next();o.done!==!0;){if(Nt(o.value[1],t.get(o.value[0]))!==!0)return!1;o=a.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const a=e.entries();for(o=a.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=a.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const r=Object.keys(e).filter(a=>e[a]!==void 0);if(n=r.length,n!==Object.keys(t).filter(a=>t[a]!==void 0).length)return!1;for(o=n;o--!==0;){const a=r[o];if(Nt(e[a],t[a])!==!0)return!1}return!0}return e!==e&&t!==t}function ar(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}function Ql(e){return Object.prototype.toString.call(e)==="[object Date]"}function ir(e){return typeof e=="number"&&isFinite(e)}const Xl=[fo,Xc,Xe,jc,Bn,Mt,ho];function Zl(e,t){t.forEach(n=>{n.install(e),n.__installed=!0})}function ld(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(nd,n.$q),Zl(n,Xl),t.components!==void 0&&Object.values(t.components).forEach(o=>{ar(o)===!0&&o.name!==void 0&&e.component(o.name,o)}),t.directives!==void 0&&Object.values(t.directives).forEach(o=>{ar(o)===!0&&o.name!==void 0&&e.directive(o.name,o)}),t.plugins!==void 0&&Zl(n,Object.values(t.plugins).filter(o=>typeof o.install=="function"&&Xl.includes(o)===!1)),Ft.value===!0&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach(o=>{o()}),n.$q.onSSRHydrated=()=>{}})}const ad={name:"Quasar",version:"2.17.7",install:function(e,t={}){const n={version:"2.17.7"};Yl===!1?(t.config!==void 0&&Object.assign(go,t.config),n.config={...go},rd()):n.config=t.config||{},ld(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},lang:Mt,iconSet:ho},sr={xs:18,sm:24,md:32,lg:38,xl:46},Fn={size:String};function Mn(e,t=sr){return l.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Ve(e,t){return e!==void 0&&e()||t}function Jl(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function Pt(e,t){return e!==void 0?t.concat(e()):t}function id(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function sd(e,t,n,o,r,a){t.key=o+r;const i=l.h(e,t,n);return r===!0?l.withDirectives(i,a()):i}const ea="0 0 24 24",ta=e=>e,ur=e=>`ionicons ${e}`,na={"mdi-":e=>`mdi ${e}`,"icon-":ta,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":ur,"ion-ios":ur,"ion-logo":ur,"iconfont ":ta,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},oa={o_:"-outlined",r_:"-round",s_:"-sharp"},ra={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ud=new RegExp("^("+Object.keys(na).join("|")+")"),cd=new RegExp("^("+Object.keys(oa).join("|")+")"),la=new RegExp("^("+Object.keys(ra).join("|")+")"),dd=/^[Mm]\s?[-+]?\.?\d/,fd=/^img:/,md=/^svguse:/,hd=/^ion-/,gd=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,We=Ee({name:"QIcon",props:{...Fn,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=l.getCurrentInstance(),o=Mn(e),r=l.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),a=l.computed(()=>{let i,s=e.name;if(s==="none"||!s)return{none:!0};if(n.iconMapFn!==null){const d=n.iconMapFn(s);if(d!==void 0)if(d.icon!==void 0){if(s=d.icon,s==="none"||!s)return{none:!0}}else return{cls:d.cls,content:d.content!==void 0?d.content:" "}}if(dd.test(s)===!0){const[d,c=ea]=s.split("|");return{svg:!0,viewBox:c,nodes:d.split("&&").map(m=>{const[h,p,S]=m.split("@@");return l.h("path",{style:p,d:h,transform:S})})}}if(fd.test(s)===!0)return{img:!0,src:s.substring(4)};if(md.test(s)===!0){const[d,c=ea]=s.split("|");return{svguse:!0,src:d.substring(7),viewBox:c}}let u=" ";const f=s.match(ud);if(f!==null)i=na[f[1]](s);else if(gd.test(s)===!0)i=s;else if(hd.test(s)===!0)i=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(la.test(s)===!0){i="notranslate material-symbols";const d=s.match(la);d!==null&&(s=s.substring(6),i+=ra[d[1]]),u=s}else{i="notranslate material-icons";const d=s.match(cd);d!==null&&(s=s.substring(2),i+=oa[d[1]]),u=s}return{cls:i,content:u}});return()=>{const i={class:r.value,style:o.value,"aria-hidden":"true",role:"presentation"};return a.value.none===!0?l.h(e.tag,i,Ve(t.default)):a.value.img===!0?l.h(e.tag,i,Pt(t.default,[l.h("img",{src:a.value.src})])):a.value.svg===!0?l.h(e.tag,i,Pt(t.default,[l.h("svg",{viewBox:a.value.viewBox||"0 0 24 24"},a.value.nodes)])):a.value.svguse===!0?l.h(e.tag,i,Pt(t.default,[l.h("svg",{viewBox:a.value.viewBox},[l.h("use",{"xlink:href":a.value.src})])])):(a.value.cls!==void 0&&(i.class+=" "+a.value.cls),l.h(e.tag,i,Pt(t.default,[a.value.content])))}}}),_d={size:{type:[String,Number],default:"1em"},color:String};function pd(e){return{cSize:l.computed(()=>e.size in sr?`${sr[e.size]}px`:e.size),classes:l.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const aa=Ee({name:"QSpinner",props:{..._d,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=pd(e);return()=>l.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[l.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function cr(e,t){const n=e.style;for(const o in t)n[o]=t[o]}function vd(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=l.unref(e);if(t)return t.$el||t}function ia(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}function bd(e,t=250){let n=!1,o;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function sa(e,t,n,o){n.modifiers.stop===!0&&Ot(e);const r=n.modifiers.color;let a=n.modifiers.center;a=a===!0||o===!0;const i=document.createElement("span"),s=document.createElement("span"),u=Ul(e),{left:f,top:d,width:c,height:m}=t.getBoundingClientRect(),h=Math.sqrt(c*c+m*m),p=h/2,S=`${(c-h)/2}px`,_=a?S:`${u.left-f-p}px`,g=`${(m-h)/2}px`,v=a?g:`${u.top-d-p}px`;s.className="q-ripple__inner",cr(s,{height:`${h}px`,width:`${h}px`,transform:`translate3d(${_},${v},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${r?" text-"+r:""}`,i.setAttribute("dir","ltr"),i.appendChild(s),t.appendChild(i);const E=()=>{i.remove(),clearTimeout(b)};n.abort.push(E);let b=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${S},${g},0) scale3d(1,1,1)`,s.style.opacity=.2,b=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,b=setTimeout(()=>{i.remove(),n.abort.splice(n.abort.indexOf(E),1)},275)},250)},50)}function ua(e,{modifiers:t,value:n,arg:o}){const r=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:r.early===!0,stop:r.stop===!0,center:r.center===!0,color:r.color||o,keyCodes:[].concat(r.keyCodes||13)}}const ca=Hc({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const o={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(r){o.enabled===!0&&r.qSkipRipple!==!0&&r.type===(o.modifiers.early===!0?"pointerdown":"click")&&sa(r,e,o,r.qKeyEvent===!0)},keystart:bd(r=>{o.enabled===!0&&r.qSkipRipple!==!0&&Qt(r,o.modifiers.keyCodes)===!0&&r.type===`key${o.modifiers.early===!0?"down":"up"}`&&sa(r,e,o,!0)},300)};ua(o,t),e.__qripple=o,nr(o,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&ua(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),$l(t,"main"),delete e._qripple)}}),da={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},yd=Object.keys(da),Ed={align:{type:String,validator:e=>yd.includes(e)}};function Sd(e){return l.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${da[t]}`})}function dr(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function fr(e){return e.appContext.config.globalProperties.$router!==void 0}function fa(e){return e.isUnmounted===!0||e.isDeactivated===!0}function ma(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function ha(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Cd(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(Array.isArray(r)===!1||r.length!==o.length||o.some((a,i)=>a!==r[i]))return!1}return!0}function ga(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function kd(e,t){return Array.isArray(e)===!0?ga(e,t):Array.isArray(t)===!0?ga(t,e):e===t}function wd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(kd(e[n],t[n])===!1)return!1;return!0}const _a={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Td={..._a,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function pa({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=l.getCurrentInstance(),{props:o,proxy:r,emit:a}=n,i=fr(n),s=l.computed(()=>o.disable!==!0&&o.href!==void 0),u=t===!0?l.computed(()=>i===!0&&o.disable!==!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""):l.computed(()=>i===!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),f=l.computed(()=>u.value===!0?v(o.to):null),d=l.computed(()=>f.value!==null),c=l.computed(()=>s.value===!0||d.value===!0),m=l.computed(()=>o.type==="a"||c.value===!0?"a":o.tag||e||"div"),h=l.computed(()=>s.value===!0?{href:o.href,target:o.target}:d.value===!0?{href:f.value.href,target:o.target}:{}),p=l.computed(()=>{if(d.value===!1)return-1;const{matched:A}=f.value,{length:I}=A,T=A[I-1];if(T===void 0)return-1;const B=r.$route.matched;if(B.length===0)return-1;const N=B.findIndex(ha.bind(null,T));if(N!==-1)return N;const P=ma(A[I-2]);return I>1&&ma(T)===P&&B[B.length-1].path!==P?B.findIndex(ha.bind(null,A[I-2])):N}),S=l.computed(()=>d.value===!0&&p.value!==-1&&Cd(r.$route.params,f.value.params)),_=l.computed(()=>S.value===!0&&p.value===r.$route.matched.length-1&&wd(r.$route.params,f.value.params)),g=l.computed(()=>d.value===!0?_.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":S.value===!0?` ${o.activeClass}`:"":"");function v(A){try{return r.$router.resolve(A)}catch{}return null}function E(A,{returnRouterError:I,to:T=o.to,replace:B=o.replace}={}){if(o.disable===!0)return A.preventDefault(),Promise.resolve(!1);if(A.metaKey||A.altKey||A.ctrlKey||A.shiftKey||A.button!==void 0&&A.button!==0||o.target==="_blank")return Promise.resolve(!1);A.preventDefault();const N=r.$router[B===!0?"replace":"push"](T);return I===!0?N:N.then(()=>{}).catch(()=>{})}function b(A){if(d.value===!0){const I=T=>E(A,T);a("click",A,I),A.defaultPrevented!==!0&&I()}else a("click",A)}return{hasRouterLink:d,hasHrefLink:s,hasLink:c,linkTag:m,resolvedLink:f,linkIsActive:S,linkIsExactActive:_,linkClass:g,linkAttrs:h,getLink:v,navigateToRouterLink:E,navigateOnClick:b}}const va={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Od={xs:8,sm:10,md:14,lg:20,xl:24},Ad=["button","submit","reset"],Id=/[^\s]\/[^\s]/,xd=["flat","outline","push","unelevated"];function Nd(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Pd={...{...Fn,..._a,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...xd.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Ed.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Ld(e){const t=Mn(e,Od),n=Sd(e),{hasRouterLink:o,hasLink:r,linkTag:a,linkAttrs:i,navigateOnClick:s}=pa({fallbackTag:"button"}),u=l.computed(()=>{const _=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},_,{padding:e.padding.split(/\s+/).map(g=>g in va?va[g]+"px":g).join(" "),minWidth:"0",minHeight:"0"}):_}),f=l.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),d=l.computed(()=>e.disable!==!0&&e.loading!==!0),c=l.computed(()=>d.value===!0?e.tabindex||0:-1),m=l.computed(()=>Nd(e,"standard")),h=l.computed(()=>{const _={tabindex:c.value};return r.value===!0?Object.assign(_,i.value):Ad.includes(e.type)===!0&&(_.type=e.type),a.value==="a"?(e.disable===!0?_["aria-disabled"]="true":_.href===void 0&&(_.role="button"),o.value!==!0&&Id.test(e.type)===!0&&(_.type=e.type)):e.disable===!0&&(_.disabled="",_["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(_,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),_}),p=l.computed(()=>{let _;e.color!==void 0?e.flat===!0||e.outline===!0?_=`text-${e.textColor||e.color}`:_=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(_=`text-${e.textColor}`);const g=e.round===!0?"round":`rectangle${f.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${m.value} q-btn--${g}`+(_!==void 0?" "+_:"")+(d.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":"")}),S=l.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:u,innerClasses:S,attributes:h,hasLink:r,linkTag:a,navigateOnClick:s,isActionable:d}}const{passiveCapture:dt}=Ke;let hn=null,gn=null,_n=null;const Lt=Ee({name:"QBtn",props:{...Pd,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:o}=l.getCurrentInstance(),{classes:r,style:a,innerClasses:i,attributes:s,hasLink:u,linkTag:f,navigateOnClick:d,isActionable:c}=Ld(e),m=l.ref(null),h=l.ref(null);let p=null,S,_=null;const g=l.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),v=l.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:u.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),E=l.computed(()=>({center:e.round})),b=l.computed(()=>{const V=Math.max(0,Math.min(100,e.percentage));return V>0?{transition:"transform 0.6s",transform:`translateX(${V-100}%)`}:{}}),A=l.computed(()=>{if(e.loading===!0)return{onMousedown:K,onTouchstart:K,onClick:K,onKeydown:K,onKeyup:K};if(c.value===!0){const V={onClick:T,onKeydown:B,onMousedown:P};if(o.$q.platform.has.touch===!0){const ne=e.onTouchstart!==void 0?"":"Passive";V[`onTouchstart${ne}`]=N}return V}return{onClick:Me}}),I=l.computed(()=>({ref:m,class:"q-btn q-btn-item non-selectable no-outline "+r.value,style:a.value,...s.value,...A.value}));function T(V){if(m.value!==null){if(V!==void 0){if(V.defaultPrevented===!0)return;const ne=document.activeElement;if(e.type==="submit"&&ne!==document.body&&m.value.contains(ne)===!1&&ne.contains(m.value)===!1){m.value.focus();const Y=()=>{document.removeEventListener("keydown",Me,!0),document.removeEventListener("keyup",Y,dt),m.value!==null&&m.value.removeEventListener("blur",Y,dt)};document.addEventListener("keydown",Me,!0),document.addEventListener("keyup",Y,dt),m.value.addEventListener("blur",Y,dt)}}d(V)}}function B(V){m.value!==null&&(n("keydown",V),Qt(V,[13,32])===!0&&gn!==m.value&&(gn!==null&&x(),V.defaultPrevented!==!0&&(m.value.focus(),gn=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("keyup",M,!0),m.value.addEventListener("blur",M,dt)),Me(V)))}function N(V){m.value!==null&&(n("touchstart",V),V.defaultPrevented!==!0&&(hn!==m.value&&(hn!==null&&x(),hn=m.value,p=V.target,p.addEventListener("touchcancel",M,dt),p.addEventListener("touchend",M,dt)),S=!0,_!==null&&clearTimeout(_),_=setTimeout(()=>{_=null,S=!1},200)))}function P(V){m.value!==null&&(V.qSkipRipple=S===!0,n("mousedown",V),V.defaultPrevented!==!0&&_n!==m.value&&(_n!==null&&x(),_n=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("mouseup",M,dt)))}function M(V){if(m.value!==null&&!(V!==void 0&&V.type==="blur"&&document.activeElement===m.value)){if(V!==void 0&&V.type==="keyup"){if(gn===m.value&&Qt(V,[13,32])===!0){const ne=new MouseEvent("click",V);ne.qKeyEvent=!0,V.defaultPrevented===!0&&bt(ne),V.cancelBubble===!0&&Ot(ne),m.value.dispatchEvent(ne),Me(V),V.qKeyEvent=!0}n("keyup",V)}x()}}function x(V){const ne=h.value;V!==!0&&(hn===m.value||_n===m.value)&&ne!==null&&ne!==document.activeElement&&(ne.setAttribute("tabindex",-1),ne.focus()),hn===m.value&&(p!==null&&(p.removeEventListener("touchcancel",M,dt),p.removeEventListener("touchend",M,dt)),hn=p=null),_n===m.value&&(document.removeEventListener("mouseup",M,dt),_n=null),gn===m.value&&(document.removeEventListener("keyup",M,!0),m.value!==null&&m.value.removeEventListener("blur",M,dt),gn=null),m.value!==null&&m.value.classList.remove("q-btn--active")}function K(V){Me(V),V.qSkipRipple=!0}return l.onBeforeUnmount(()=>{x(!0)}),Object.assign(o,{click:V=>{c.value===!0&&T(V)}}),()=>{let V=[];e.icon!==void 0&&V.push(l.h(We,{name:e.icon,left:e.stack!==!0&&g.value===!0,role:"img"})),g.value===!0&&V.push(l.h("span",{class:"block"},[e.label])),V=Pt(t.default,V),e.iconRight!==void 0&&e.round===!1&&V.push(l.h(We,{name:e.iconRight,right:e.stack!==!0&&g.value===!0,role:"img"}));const ne=[l.h("span",{class:"q-focus-helper",ref:h})];return e.loading===!0&&e.percentage!==void 0&&ne.push(l.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[l.h("span",{class:"q-btn__progress-indicator fit block",style:b.value})])),ne.push(l.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+i.value},V)),e.loading!==null&&ne.push(l.h(l.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[l.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[l.h(aa)])]:null)),l.withDirectives(l.h(f.value,I.value,ne),[[ca,v.value,void 0,E.value]])}}}),Dd=l.defineComponent({name:"MyButton",components:{QBtn:Lt},props:{label:{type:String,required:!0},color:{type:String,default:"primary"}},setup(e){return{onClick:()=>{console.log(`${e.label} button clicked!`)}}}}),lt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function Vd(e,t,n,o,r,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[t[0]||(t[0]=l.createTextVNode("abc")),l.createVNode(Lt,{label:e.label,color:e.color,onClick:e.onClick},null,8,["label","color","onClick"])],64)}const ba=lt(Dd,[["render",Vd],["__scopeId","data-v-dec36ed8"]]),ya=(e,t)=>{e.use(t)},Ea=(e,t,n)=>{e.component(t,n)},Rd={install(e){Ea(e,"KMyButton",ba)}},ft={dark:{type:Boolean,default:null}};function mt(e,t){return l.computed(()=>e.dark===null?t.dark.isActive:e.dark)}const Bd={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},mr={xs:2,sm:4,md:8,lg:16,xl:24},Sa=Ee({name:"QSeparator",props:{...ft,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=l.getCurrentInstance(),n=mt(e,t.proxy.$q),o=l.computed(()=>e.vertical===!0?"vertical":"horizontal"),r=l.computed(()=>` q-separator--${o.value}`),a=l.computed(()=>e.inset!==!1?`${r.value}-${Bd[e.inset]}`:""),i=l.computed(()=>`q-separator${r.value}${a.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),s=l.computed(()=>{const u={};if(e.size!==void 0&&(u[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const f=e.spaced===!0?`${mr.md}px`:e.spaced in mr?`${mr[e.spaced]}px`:e.spaced,d=e.vertical===!0?["Left","Right"]:["Top","Bottom"];u[`margin${d[0]}`]=u[`margin${d[1]}`]=f}return u});return()=>l.h("hr",{class:i.value,style:s.value,"aria-orientation":o.value})}}),hr=Ee({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const o=l.getCurrentInstance(),{proxy:{$q:r}}=o,a=i=>{n("click",i)};return()=>{if(e.props===void 0)return l.h("th",{class:e.autoWidth===!0?"q-table--col-auto-width":"",onClick:a},Ve(t.default));let i,s;const u=o.vnode.key;if(u){if(i=e.props.colsMap[u],i===void 0)return}else i=e.props.col;if(i.sortable===!0){const d=i.align==="right"?"unshift":"push";s=Jl(t.default,[]),s[d](l.h(We,{class:i.__iconClass,name:r.iconSet.table.arrowUp}))}else s=Ve(t.default);const f={class:i.__thClass+(e.autoWidth===!0?" q-table--col-auto-width":""),style:i.headerStyle,onClick:d=>{i.sortable===!0&&e.props.sort(i),a(d)}};return l.h("th",f,s)}}}),Fd=["ul","ol"],Ca=Ee({name:"QList",props:{...ft,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const n=l.getCurrentInstance(),o=mt(e,n.proxy.$q),r=l.computed(()=>Fd.includes(e.tag)?null:"list"),a=l.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(o.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>l.h(e.tag,{class:a.value,role:r.value},Ve(t.default))}}),Md=["horizontal","vertical","cell","none"],ka=Ee({name:"QMarkupTable",props:{...ft,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>Md.includes(e)}},setup(e,{slots:t}){const n=l.getCurrentInstance(),o=mt(e,n.proxy.$q),r=l.computed(()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(o.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(e.dense===!0?" q-table--dense":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")+(e.square===!0?" q-table--square":"")+(e.wrapCells===!1?" q-table--no-wrap":""));return()=>l.h("div",{class:r.value},[l.h("table",{class:"q-table"},Ve(t.default))])}});function wa(e,t){return l.h("div",e,[l.h("table",{class:"q-table"},t)])}let _o=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,_o=e.scrollLeft>=0,e.remove()}const yt=1e3,qd=["start","center","end","start-force","center-force","end-force"],Ta=Array.prototype.filter,Ud=window.getComputedStyle(document.body).overflowAnchor===void 0?mn:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];Ta.call(n,r=>r.dataset&&r.dataset.qVsAnchor!==void 0).forEach(r=>{delete r.dataset.qVsAnchor});const o=n[t];o&&o.dataset&&(o.dataset.qVsAnchor="")}))};function pn(e,t){return e+t}function gr(e,t,n,o,r,a,i,s){const u=e===window?document.scrollingElement||document.documentElement:e,f=r===!0?"offsetWidth":"offsetHeight",d={scrollStart:0,scrollViewSize:-i-s,scrollMaxSize:0,offsetStart:-i,offsetEnd:-s};if(r===!0?(e===window?(d.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d.scrollViewSize+=document.documentElement.clientWidth):(d.scrollStart=u.scrollLeft,d.scrollViewSize+=u.clientWidth),d.scrollMaxSize=u.scrollWidth,a===!0&&(d.scrollStart=(_o===!0?d.scrollMaxSize-d.scrollViewSize:0)-d.scrollStart)):(e===window?(d.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,d.scrollViewSize+=document.documentElement.clientHeight):(d.scrollStart=u.scrollTop,d.scrollViewSize+=u.clientHeight),d.scrollMaxSize=u.scrollHeight),n!==null)for(let c=n.previousElementSibling;c!==null;c=c.previousElementSibling)c.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetStart+=c[f]);if(o!==null)for(let c=o.nextElementSibling;c!==null;c=c.nextElementSibling)c.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetEnd+=c[f]);if(t!==e){const c=u.getBoundingClientRect(),m=t.getBoundingClientRect();r===!0?(d.offsetStart+=m.left-c.left,d.offsetEnd-=m.width):(d.offsetStart+=m.top-c.top,d.offsetEnd-=m.height),e!==window&&(d.offsetStart+=d.scrollStart),d.offsetEnd+=d.scrollMaxSize-d.offsetStart}return d}function Oa(e,t,n,o){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(o===!0&&(t=(_o===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n===!0?(o===!0&&(t=(_o===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function qn(e,t,n,o){if(n>=o)return 0;const r=t.length,a=Math.floor(n/yt),i=Math.floor((o-1)/yt)+1;let s=e.slice(a,i).reduce(pn,0);return n%yt!==0&&(s-=t.slice(a*yt,n).reduce(pn,0)),o%yt!==0&&o!==r&&(s-=t.slice(o,i*yt).reduce(pn,0)),s}const Aa={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Ia=Object.keys(Aa),_r={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Aa};function xa({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const r=l.getCurrentInstance(),{props:a,emit:i,proxy:s}=r,{$q:u}=s;let f,d,c,m=[],h;const p=l.ref(0),S=l.ref(0),_=l.ref({}),g=l.ref(null),v=l.ref(null),E=l.ref(null),b=l.ref({from:0,to:0}),A=l.computed(()=>a.tableColspan!==void 0?a.tableColspan:100);o===void 0&&(o=l.computed(()=>a.virtualScrollItemSize));const I=l.computed(()=>o.value+";"+a.virtualScrollHorizontal),T=l.computed(()=>I.value+";"+a.virtualScrollSliceRatioBefore+";"+a.virtualScrollSliceRatioAfter);l.watch(T,()=>{Y()}),l.watch(I,B);function B(){ne(d,!0)}function N(O){ne(O===void 0?d:O)}function P(O,w){const j=t();if(j==null||j.nodeType===8)return;const re=gr(j,n(),g.value,v.value,a.virtualScrollHorizontal,u.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd);c!==re.scrollViewSize&&Y(re.scrollViewSize),x(j,re,Math.min(e.value-1,Math.max(0,parseInt(O,10)||0)),0,qd.indexOf(w)!==-1?w:d!==-1&&O>d?"end":"start")}function M(){const O=t();if(O==null||O.nodeType===8)return;const w=gr(O,n(),g.value,v.value,a.virtualScrollHorizontal,u.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd),j=e.value-1,re=w.scrollMaxSize-w.offsetStart-w.offsetEnd-S.value;if(f===w.scrollStart)return;if(w.scrollMaxSize<=0){x(O,w,0,0);return}c!==w.scrollViewSize&&Y(w.scrollViewSize),K(b.value.from);const se=Math.floor(w.scrollMaxSize-Math.max(w.scrollViewSize,w.offsetEnd)-Math.min(h[j],w.scrollViewSize/2));if(se>0&&Math.ceil(w.scrollStart)>=se){x(O,w,j,w.scrollMaxSize-w.offsetEnd-m.reduce(pn,0));return}let U=0,G=w.scrollStart-w.offsetStart,fe=G;if(G<=re&&G+w.scrollViewSize>=p.value)G-=p.value,U=b.value.from,fe=G;else for(let z=0;G>=m[z]&&U<j;z++)G-=m[z],U+=yt;for(;G>0&&U<j;)G-=h[U],G>-w.scrollViewSize?(U++,fe=G):fe=h[U]+G;x(O,w,U,fe)}function x(O,w,j,re,se){const U=typeof se=="string"&&se.indexOf("-force")!==-1,G=U===!0?se.replace("-force",""):se,fe=G!==void 0?G:"start";let z=Math.max(0,j-_.value[fe]),be=z+_.value.total;be>e.value&&(be=e.value,z=Math.max(0,be-_.value.total)),f=w.scrollStart;const $e=z!==b.value.from||be!==b.value.to;if($e===!1&&G===void 0){H(j);return}const{activeElement:_t}=document,Pe=E.value;$e===!0&&Pe!==null&&Pe!==_t&&Pe.contains(_t)===!0&&(Pe.addEventListener("focusout",V),setTimeout(()=>{Pe!==null&&Pe.removeEventListener("focusout",V)})),Ud(Pe,j-z);const it=G!==void 0?h.slice(z,j).reduce(pn,0):0;if($e===!0){const He=be>=b.value.from&&z<=b.value.to?b.value.to:be;b.value={from:z,to:He},p.value=qn(m,h,0,z),S.value=qn(m,h,be,e.value),requestAnimationFrame(()=>{b.value.to!==be&&f===w.scrollStart&&(b.value={from:b.value.from,to:be},S.value=qn(m,h,be,e.value))})}requestAnimationFrame(()=>{if(f!==w.scrollStart)return;$e===!0&&K(z);const He=h.slice(z,j).reduce(pn,0),Ye=He+w.offsetStart+p.value,pt=Ye+h[j];let y=Ye+re;if(G!==void 0){const k=He-it,R=w.scrollStart+k;y=U!==!0&&R<Ye&&pt<R+w.scrollViewSize?R:G==="end"?pt-w.scrollViewSize:Ye-(G==="start"?0:Math.round((w.scrollViewSize-h[j])/2))}f=y,Oa(O,y,a.virtualScrollHorizontal,u.lang.rtl),H(j)})}function K(O){const w=E.value;if(w){const j=Ta.call(w.children,z=>z.classList&&z.classList.contains("q-virtual-scroll--skip")===!1),re=j.length,se=a.virtualScrollHorizontal===!0?z=>z.getBoundingClientRect().width:z=>z.offsetHeight;let U=O,G,fe;for(let z=0;z<re;){for(G=se(j[z]),z++;z<re&&j[z].classList.contains("q-virtual-scroll--with-prev")===!0;)G+=se(j[z]),z++;fe=G-h[U],fe!==0&&(h[U]+=fe,m[Math.floor(U/yt)]+=fe),U++}}}function V(){E.value!==null&&E.value!==void 0&&E.value.focus()}function ne(O,w){const j=1*o.value;(w===!0||Array.isArray(h)===!1)&&(h=[]);const re=h.length;h.length=e.value;for(let U=e.value-1;U>=re;U--)h[U]=j;const se=Math.floor((e.value-1)/yt);m=[];for(let U=0;U<=se;U++){let G=0;const fe=Math.min((U+1)*yt,e.value);for(let z=U*yt;z<fe;z++)G+=h[z];m.push(G)}d=-1,f=void 0,p.value=qn(m,h,0,b.value.from),S.value=qn(m,h,b.value.to,e.value),O>=0?(K(b.value.from),l.nextTick(()=>{P(O)})):Q()}function Y(O){if(O===void 0&&typeof window<"u"){const G=t();G!=null&&G.nodeType!==8&&(O=gr(G,n(),g.value,v.value,a.virtualScrollHorizontal,u.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd).scrollViewSize)}c=O;const w=parseFloat(a.virtualScrollSliceRatioBefore)||0,j=parseFloat(a.virtualScrollSliceRatioAfter)||0,re=1+w+j,se=O===void 0||O<=0?1:Math.ceil(O/o.value),U=Math.max(1,se,Math.ceil((a.virtualScrollSliceSize>0?a.virtualScrollSliceSize:10)/re));_.value={total:Math.ceil(U*re),start:Math.ceil(U*w),center:Math.ceil(U*(.5+w)),end:Math.ceil(U*(1+w)),view:se}}function $(O,w){const j=a.virtualScrollHorizontal===!0?"width":"height",re={["--q-virtual-scroll-item-"+j]:o.value+"px"};return[O==="tbody"?l.h(O,{class:"q-virtual-scroll__padding",key:"before",ref:g},[l.h("tr",[l.h("td",{style:{[j]:`${p.value}px`,...re},colspan:A.value})])]):l.h(O,{class:"q-virtual-scroll__padding",key:"before",ref:g,style:{[j]:`${p.value}px`,...re}}),l.h(O,{class:"q-virtual-scroll__content",key:"content",ref:E,tabindex:-1},w.flat()),O==="tbody"?l.h(O,{class:"q-virtual-scroll__padding",key:"after",ref:v},[l.h("tr",[l.h("td",{style:{[j]:`${S.value}px`,...re},colspan:A.value})])]):l.h(O,{class:"q-virtual-scroll__padding",key:"after",ref:v,style:{[j]:`${S.value}px`,...re}})]}function H(O){d!==O&&(a.onVirtualScroll!==void 0&&i("virtualScroll",{index:O,from:b.value.from,to:b.value.to-1,direction:O<d?"decrease":"increase",ref:s}),d=O)}Y();const Q=or(M,u.platform.is.ios===!0?120:35);l.onBeforeMount(()=>{Y()});let oe=!1;return l.onDeactivated(()=>{oe=!0}),l.onActivated(()=>{if(oe!==!0)return;const O=t();f!==void 0&&O!==void 0&&O!==null&&O.nodeType!==8?Oa(O,f,a.virtualScrollHorizontal,u.lang.rtl):P(d)}),l.onBeforeUnmount(()=>{Q.cancel()}),Object.assign(s,{scrollTo:P,reset:B,refresh:N}),{virtualScrollSliceRange:b,virtualScrollSliceSizeComputed:_,setVirtualScrollSize:Y,onVirtualScrollEvt:Q,localResetVirtualScroll:ne,padVirtualScroll:$,scrollTo:P,reset:B,refresh:N}}const Na=[Element,String],$d=[null,document,document.body,document.scrollingElement,document.documentElement];function Pa(e,t){let n=vd(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return $d.includes(n)?window:n}function Hd(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function zd(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let po;function jd(){if(po!==void 0)return po;const e=document.createElement("p"),t=document.createElement("div");cr(e,{width:"100%",height:"200px"}),cr(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;return n===o&&(o=t.clientWidth),t.remove(),po=n-o,po}function Kd(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?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 Wd={list:Ca,table:ka},Gd=["list","table","__qtable"],Yd=Ee({name:"QVirtualScroll",props:{..._r,type:{type:String,default:"list",validator:e=>Gd.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Na},setup(e,{slots:t,attrs:n}){let o;const r=l.ref(null),a=l.computed(()=>e.itemsSize>=0&&e.itemsFn!==void 0?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0),{virtualScrollSliceRange:i,localResetVirtualScroll:s,padVirtualScroll:u,onVirtualScrollEvt:f}=xa({virtualScrollLength:a,getVirtualScrollTarget:p,getVirtualScrollEl:h}),d=l.computed(()=>{if(a.value===0)return[];const v=(E,b)=>({index:i.value.from+b,item:E});return e.itemsFn===void 0?e.items.slice(i.value.from,i.value.to).map(v):e.itemsFn(i.value.from,i.value.to-i.value.from).map(v)}),c=l.computed(()=>"q-virtual-scroll q-virtual-scroll"+(e.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(e.scrollTarget!==void 0?"":" scroll")),m=l.computed(()=>e.scrollTarget!==void 0?{}:{tabindex:0});l.watch(a,()=>{s()}),l.watch(()=>e.scrollTarget,()=>{_(),S()});function h(){return r.value.$el||r.value}function p(){return o}function S(){o=Pa(h(),e.scrollTarget),o.addEventListener("scroll",f,Ke.passive)}function _(){o!==void 0&&(o.removeEventListener("scroll",f,Ke.passive),o=void 0)}function g(){let v=u(e.type==="list"?"div":"tbody",d.value.map(t.default));return t.before!==void 0&&(v=t.before().concat(v)),Pt(t.after,v)}return l.onBeforeMount(()=>{s()}),l.onMounted(()=>{S()}),l.onActivated(()=>{S()}),l.onDeactivated(()=>{_()}),l.onBeforeUnmount(()=>{_()}),()=>{if(t.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return e.type==="__qtable"?wa({ref:r,class:"q-table__middle "+c.value},g()):l.h(Wd[e.type],{...n,ref:r,class:[n.class,c.value],...m.value},g)}}});let pr,vo=0;const Ge=new Array(256);for(let e=0;e<256;e++)Ge[e]=(e+256).toString(16).substring(1);const Qd=(()=>{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 t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return t=>{const n=[];for(let o=t;o>0;o--)n.push(Math.floor(Math.random()*256));return n}})(),La=4096;function vr(){(pr===void 0||vo+16>La)&&(vo=0,pr=Qd(La));const e=Array.prototype.slice.call(pr,vo,vo+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Ge[e[0]]+Ge[e[1]]+Ge[e[2]]+Ge[e[3]]+"-"+Ge[e[4]]+Ge[e[5]]+"-"+Ge[e[6]]+Ge[e[7]]+"-"+Ge[e[8]]+Ge[e[9]]+"-"+Ge[e[10]]+Ge[e[11]]+Ge[e[12]]+Ge[e[13]]+Ge[e[14]]+Ge[e[15]]}function Xd(e){return e??null}function Da(e,t){return e??(t===!0?`f_${vr()}`:null)}function Zd({getValue:e,required:t=!0}={}){if(Ft.value===!0){const n=e!==void 0?l.ref(Xd(e())):l.ref(null);return t===!0&&n.value===null&&l.onMounted(()=>{n.value=`f_${vr()}`}),e!==void 0&&l.watch(e,o=>{n.value=Da(o,t)}),n}return e!==void 0?l.computed(()=>Da(e(),t)):l.ref(`f_${vr()}`)}const Va=/^on[A-Z]/;function Jd(){const{attrs:e,vnode:t}=l.getCurrentInstance(),n={listeners:l.ref({}),attributes:l.ref({})};function o(){const r={},a={};for(const i in e)i!=="class"&&i!=="style"&&Va.test(i)===!1&&(r[i]=e[i]);for(const i in t.props)Va.test(i)===!0&&(a[i]=t.props[i]);n.attributes.value=r,n.listeners.value=a}return l.onBeforeUpdate(o),o(),n}function ef({validate:e,resetValidation:t,requiresQForm:n}){const o=l.inject(od,!1);if(o!==!1){const{props:r,proxy:a}=l.getCurrentInstance();Object.assign(a,{validate:e,resetValidation:t}),l.watch(()=>r.disable,i=>{i===!0?(typeof t=="function"&&t(),o.unbindComponent(a)):o.bindComponent(a)}),l.onMounted(()=>{r.disable!==!0&&o.bindComponent(a)}),l.onBeforeUnmount(()=>{r.disable!==!0&&o.unbindComponent(a)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const Ra=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ba=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Fa=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,bo=/^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])\)$/,yo=/^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)\)$/,br={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=>Ra.test(e),hexaColor:e=>Ba.test(e),hexOrHexaColor:e=>Fa.test(e),rgbColor:e=>bo.test(e),rgbaColor:e=>yo.test(e),rgbOrRgbaColor:e=>bo.test(e)||yo.test(e),hexOrRgbColor:e=>Ra.test(e)||bo.test(e),hexaOrRgbaColor:e=>Ba.test(e)||yo.test(e),anyColor:e=>Fa.test(e)||bo.test(e)||yo.test(e)},tf=[!0,!1,"ondemand"],nf={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>tf.includes(e)}};function of(e,t){const{props:n,proxy:o}=l.getCurrentInstance(),r=l.ref(!1),a=l.ref(null),i=l.ref(!1);ef({validate:S,resetValidation:p});let s=0,u;const f=l.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),d=l.computed(()=>n.disable!==!0&&f.value===!0&&t.value===!1),c=l.computed(()=>n.error===!0||r.value===!0),m=l.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:a.value);l.watch(()=>n.modelValue,()=>{i.value=!0,d.value===!0&&n.lazyRules===!1&&_()});function h(){n.lazyRules!=="ondemand"&&d.value===!0&&i.value===!0&&_()}l.watch(()=>n.reactiveRules,g=>{g===!0?u===void 0&&(u=l.watch(()=>n.rules,h,{immediate:!0,deep:!0})):u!==void 0&&(u(),u=void 0)},{immediate:!0}),l.watch(()=>n.lazyRules,h),l.watch(e,g=>{g===!0?i.value=!0:d.value===!0&&n.lazyRules!=="ondemand"&&_()});function p(){s++,t.value=!1,i.value=!1,r.value=!1,a.value=null,_.cancel()}function S(g=n.modelValue){if(n.disable===!0||f.value===!1)return!0;const v=++s,E=t.value!==!0?()=>{i.value=!0}:()=>{},b=(I,T)=>{I===!0&&E(),r.value=I,a.value=T||null,t.value=!1},A=[];for(let I=0;I<n.rules.length;I++){const T=n.rules[I];let B;if(typeof T=="function"?B=T(g,br):typeof T=="string"&&br[T]!==void 0&&(B=br[T](g)),B===!1||typeof B=="string")return b(!0,B),!1;B!==!0&&B!==void 0&&A.push(B)}return A.length===0?(b(!1),!0):(t.value=!0,Promise.all(A).then(I=>{if(I===void 0||Array.isArray(I)===!1||I.length===0)return v===s&&b(!1),!0;const T=I.find(B=>B===!1||typeof B=="string");return v===s&&b(T!==void 0,T),T===void 0},I=>(v===s&&(console.error(I),b(!0)),!1)))}const _=or(S,0);return l.onBeforeUnmount(()=>{u!==void 0&&u(),_.cancel()}),Object.assign(o,{resetValidation:p,validate:S}),st(o,"hasError",()=>c.value),{isDirtyModel:i,hasRules:f,hasError:c,errorMessage:m,validate:S,resetValidation:p}}let Xt=[],Un=[];function Ma(e){Un=Un.filter(t=>t!==e)}function rf(e){Ma(e),Un.push(e)}function qa(e){Ma(e),Un.length===0&&Xt.length!==0&&(Xt[Xt.length-1](),Xt=[])}function Eo(e){Un.length===0?e():Xt.push(e)}function lf(e){Xt=Xt.filter(t=>t!==e)}function $n(e){return e!=null&&(""+e).length!==0}const So={...{...ft,...nf,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]},yr=["update:modelValue","clear","focus","blur"];function Er({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:o,proxy:r}=l.getCurrentInstance(),a=mt(o,r.$q),i=Zd({required:e,getValue:()=>o.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?l.computed(()=>o.tag):{value:"label"},isDark:a,editable:l.computed(()=>o.disable!==!0&&o.readonly!==!0),innerLoading:l.ref(!1),focused:l.ref(!1),hasPopupOpen:!1,splitAttrs:Jd(),targetUid:i,rootRef:l.ref(null),targetRef:l.ref(null),controlRef:l.ref(null)}}function Sr(e){const{props:t,emit:n,slots:o,attrs:r,proxy:a}=l.getCurrentInstance(),{$q:i}=a;let s=null;e.hasValue===void 0&&(e.hasValue=l.computed(()=>$n(t.modelValue))),e.emitValue===void 0&&(e.emitValue=H=>{n("update:modelValue",H)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:N,onFocusout:P}),Object.assign(e,{clearValue:M,onControlFocusin:N,onControlFocusout:P,focus:T}),e.computedCounter===void 0&&(e.computedCounter=l.computed(()=>{if(t.counter!==!1){const H=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,Q=t.maxlength!==void 0?t.maxlength:t.maxValues;return H+(Q!==void 0?" / "+Q:"")}}));const{isDirtyModel:u,hasRules:f,hasError:d,errorMessage:c,resetValidation:m}=of(e.focused,e.innerLoading),h=e.floatingLabel!==void 0?l.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):l.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),p=l.computed(()=>t.bottomSlots===!0||t.hint!==void 0||f.value===!0||t.counter===!0||t.error!==null),S=l.computed(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),_=l.computed(()=>`q-field row no-wrap items-start q-field--${S.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(h.value===!0?" q-field--float":"")+(v.value===!0?" q-field--labeled":"")+(t.dense===!0?" q-field--dense":"")+(t.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":"")+(d.value===!0?" q-field--error":"")+(d.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&p.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),g=l.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(d.value===!0?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value===!0?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),v=l.computed(()=>t.labelSlot===!0||t.label!==void 0),E=l.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&d.value!==!0?` text-${t.labelColor}`:"")),b=l.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:h.value,modelValue:t.modelValue,emitValue:e.emitValue})),A=l.computed(()=>{const H={};return e.targetUid.value&&(H.for=e.targetUid.value),t.disable===!0&&(H["aria-disabled"]="true"),H});function I(){const H=document.activeElement;let Q=e.targetRef!==void 0&&e.targetRef.value;Q&&(H===null||H.id!==e.targetUid.value)&&(Q.hasAttribute("tabindex")===!0||(Q=Q.querySelector("[tabindex]")),Q&&Q!==H&&Q.focus({preventScroll:!0}))}function T(){Eo(I)}function B(){lf(I);const H=document.activeElement;H!==null&&e.rootRef.value.contains(H)&&H.blur()}function N(H){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",H))}function P(H,Q){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(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,n("blur",H)),Q!==void 0&&Q())})}function M(H){Me(H),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(),t.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",t.modelValue),l.nextTick(()=>{const Q=u.value;m(),u.value=Q})}function x(H){[13,32].includes(H.keyCode)&&M(H)}function K(){const H=[];return o.prepend!==void 0&&H.push(l.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:bt},o.prepend())),H.push(l.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},V())),d.value===!0&&t.noErrorIcon===!1&&H.push(Y("error",[l.h(We,{name:i.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?H.push(Y("inner-loading-append",o.loading!==void 0?o.loading():[l.h(aa,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&H.push(Y("inner-clearable-append",[l.h(We,{class:"q-field__focusable-action",name:t.clearIcon||i.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":i.lang.label.clear,onKeyup:x,onClick:M})])),o.append!==void 0&&H.push(l.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:bt},o.append())),e.getInnerAppend!==void 0&&H.push(Y("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&H.push(e.getControlChild()),H}function V(){const H=[];return t.prefix!==void 0&&t.prefix!==null&&H.push(l.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&H.push(e.getShadowControl()),e.getControl!==void 0?H.push(e.getControl()):o.rawControl!==void 0?H.push(o.rawControl()):o.control!==void 0&&H.push(l.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},o.control(b.value))),v.value===!0&&H.push(l.h("div",{class:E.value},Ve(o.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&H.push(l.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),H.concat(Ve(o.default))}function ne(){let H,Q;d.value===!0?c.value!==null?(H=[l.h("div",{role:"alert"},c.value)],Q=`q--slot-error-${c.value}`):(H=Ve(o.error),Q="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(H=[l.h("div",t.hint)],Q=`q--slot-hint-${t.hint}`):(H=Ve(o.hint),Q="q--slot-hint"));const oe=t.counter===!0||o.counter!==void 0;if(t.hideBottomSpace===!0&&oe===!1&&H===void 0)return;const O=l.h("div",{key:Q,class:"q-field__messages col"},H);return l.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:bt},[t.hideBottomSpace===!0?O:l.h(l.Transition,{name:"q-transition--field-message"},()=>O),oe===!0?l.h("div",{class:"q-field__counter"},o.counter!==void 0?o.counter():e.computedCounter.value):null])}function Y(H,Q){return Q===null?null:l.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},Q)}let $=!1;return l.onDeactivated(()=>{$=!0}),l.onActivated(()=>{$===!0&&t.autofocus===!0&&a.focus()}),t.autofocus===!0&&l.onMounted(()=>{a.focus()}),l.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(a,{focus:T,blur:B}),function(){const Q=e.getControl===void 0&&o.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...A.value}:A.value;return l.h(e.tag.value,{ref:e.rootRef,class:[_.value,r.class],style:r.style,...Q},[o.before!==void 0?l.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:bt},o.before()):null,l.h("div",{class:"q-field__inner relative-position col self-stretch"},[l.h("div",{ref:e.controlRef,class:g.value,tabindex:-1,...e.controlEvents},K()),p.value===!0?ne():null]),o.after!==void 0?l.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:bt},o.after()):null])}}const af=Ee({name:"QField",inheritAttrs:!1,props:{...So,tag:{type:String,default:"label"}},emits:yr,setup(){return Sr(Er({tagProp:!0}))}}),sf={xs:8,sm:10,md:14,lg:20,xl:24},uf=Ee({name:"QChip",props:{...ft,...Fn,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=l.getCurrentInstance(),r=mt(e,o),a=Mn(e,sf),i=l.computed(()=>e.selected===!0||e.icon!==void 0),s=l.computed(()=>e.selected===!0?e.iconSelected||o.iconSet.chip.selected:e.icon),u=l.computed(()=>e.iconRemove||o.iconSet.chip.remove),f=l.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),d=l.computed(()=>{const _=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}`:"")+(_?` text-${_} 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":"")+(r.value===!0?" q-chip--dark q-dark":"")}),c=l.computed(()=>{const _=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},g={..._,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||o.lang.label.remove};return{chip:_,remove:g}});function m(_){_.keyCode===13&&h(_)}function h(_){e.disable||(n("update:selected",!e.selected),n("click",_))}function p(_){(_.keyCode===void 0||_.keyCode===13)&&(Me(_),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function S(){const _=[];f.value===!0&&_.push(l.h("div",{class:"q-focus-helper"})),i.value===!0&&_.push(l.h(We,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const g=e.label!==void 0?[l.h("div",{class:"ellipsis"},[e.label])]:void 0;return _.push(l.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},id(t.default,g))),e.iconRight&&_.push(l.h(We,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&_.push(l.h(We,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:u.value,...c.value.remove,onClick:p,onKeyup:p})),_}return()=>{if(e.modelValue===!1)return;const _={class:d.value,style:a.value};return f.value===!0&&Object.assign(_,c.value.chip,{onClick:h,onKeyup:m}),sd("div",_,S(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[ca,e.ripple]])}}}),qt=Ee({name:"QItem",props:{...ft,...Td,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:t,emit:n}){const{proxy:{$q:o}}=l.getCurrentInstance(),r=mt(e,o),{hasLink:a,linkAttrs:i,linkClass:s,linkTag:u,navigateOnClick:f}=pa(),d=l.ref(null),c=l.ref(null),m=l.computed(()=>e.clickable===!0||a.value===!0||e.tag==="label"),h=l.computed(()=>e.disable!==!0&&m.value===!0),p=l.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(r.value===!0?" q-item--dark":"")+(a.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(h.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":""):"")),S=l.computed(()=>e.insetLevel===void 0?null:{["padding"+(o.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function _(E){h.value===!0&&(c.value!==null&&(E.qKeyEvent!==!0&&document.activeElement===d.value?c.value.focus():document.activeElement===c.value&&d.value.focus()),f(E))}function g(E){if(h.value===!0&&Qt(E,[13,32])===!0){Me(E),E.qKeyEvent=!0;const b=new MouseEvent("click",E);b.qKeyEvent=!0,d.value.dispatchEvent(b)}n("keyup",E)}function v(){const E=Jl(t.default,[]);return h.value===!0&&E.unshift(l.h("div",{class:"q-focus-helper",tabindex:-1,ref:c})),E}return()=>{const E={ref:d,class:p.value,style:S.value,role:"listitem",onClick:_,onKeyup:g};return h.value===!0?(E.tabindex=e.tabindex||"0",Object.assign(E,i.value)):m.value===!0&&(E["aria-disabled"]="true"),l.h(u.value,E,v())}}}),Et=Ee({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=l.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()=>l.h("div",{class:n.value},Ve(t.default))}}),ht=Ee({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=l.computed(()=>parseInt(e.lines,10)),o=l.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":"")+(n.value===1?" ellipsis":"")),r=l.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>l.h("div",{style:r.value,class:o.value},Ve(t.default))}});function cf(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),fo.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const df={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function ff({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:o,proxy:r,emit:a}=l.getCurrentInstance(),i=l.ref(null);let s=null;function u(h){return i.value===null?!1:h===void 0||h.touches===void 0||h.touches.length<=1}const f={};n===void 0&&(Object.assign(f,{hide(h){r.hide(h)},toggle(h){r.toggle(h),h.qAnchorHandled=!0},toggleKey(h){Qt(h,13)===!0&&f.toggle(h)},contextClick(h){r.hide(h),bt(h),l.nextTick(()=>{r.show(h),h.qAnchorHandled=!0})},prevent:bt,mobileTouch(h){if(f.mobileCleanup(h),u(h)!==!0)return;r.hide(h),i.value.classList.add("non-selectable");const p=h.target;nr(f,"anchor",[[p,"touchmove","mobileCleanup","passive"],[p,"touchend","mobileCleanup","passive"],[p,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,r.show(h),h.qAnchorHandled=!0},300)},mobileCleanup(h){i.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&h!==void 0&&cf()}}),n=function(h=o.contextMenu){if(o.noParentEvent===!0||i.value===null)return;let p;h===!0?r.$q.platform.is.mobile===!0?p=[[i.value,"touchstart","mobileTouch","passive"]]:p=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:p=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],nr(f,"anchor",p)});function d(){$l(f,"anchor")}function c(h){for(i.value=h;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;n()}function m(){if(o.target===!1||o.target===""||r.$el.parentNode===null)i.value=null;else if(o.target===!0)c(r.$el.parentNode);else{let h=o.target;if(typeof o.target=="string")try{h=document.querySelector(o.target)}catch{h=void 0}h!=null?(i.value=h.$el||h,n()):(i.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return l.watch(()=>o.contextMenu,h=>{i.value!==null&&(d(),n(h))}),l.watch(()=>o.target,()=>{i.value!==null&&d(),m()}),l.watch(()=>o.noParentEvent,h=>{i.value!==null&&(h===!0?d():n())}),l.onMounted(()=>{m(),t!==!0&&o.modelValue===!0&&i.value===null&&a("update:modelValue",!1)}),l.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),d()}),{anchorEl:i,canShow:u,anchorEvents:f}}function mf(e,t){const n=l.ref(null);let o;function r(s,u){const f=`${u!==void 0?"add":"remove"}EventListener`,d=u!==void 0?u:o;s!==window&&s[f]("scroll",d,Ke.passive),window[f]("scroll",d,Ke.passive),o=u}function a(){n.value!==null&&(r(n.value),n.value=null)}const i=l.watch(()=>e.noParentEvent,()=>{n.value!==null&&(a(),t())});return l.onBeforeUnmount(i),{localScrollTarget:n,unconfigureScrollTarget:a,changeScrollEvent:r}}const Ua={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},$a=["beforeShow","show","beforeHide","hide"];function Ha({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:r,processOnMount:a}){const i=l.getCurrentInstance(),{props:s,emit:u,proxy:f}=i;let d;function c(v){e.value===!0?p(v):m(v)}function m(v){if(s.disable===!0||v!==void 0&&v.qAnchorHandled===!0||t!==void 0&&t(v)!==!0)return;const E=s["onUpdate:modelValue"]!==void 0;E===!0&&(u("update:modelValue",!0),d=v,l.nextTick(()=>{d===v&&(d=void 0)})),(s.modelValue===null||E===!1)&&h(v)}function h(v){e.value!==!0&&(e.value=!0,u("beforeShow",v),o!==void 0?o(v):u("show",v))}function p(v){if(s.disable===!0)return;const E=s["onUpdate:modelValue"]!==void 0;E===!0&&(u("update:modelValue",!1),d=v,l.nextTick(()=>{d===v&&(d=void 0)})),(s.modelValue===null||E===!1)&&S(v)}function S(v){e.value!==!1&&(e.value=!1,u("beforeHide",v),r!==void 0?r(v):u("hide",v))}function _(v){s.disable===!0&&v===!0?s["onUpdate:modelValue"]!==void 0&&u("update:modelValue",!1):v===!0!==e.value&&(v===!0?h:S)(d)}l.watch(()=>s.modelValue,_),n!==void 0&&fr(i)===!0&&l.watch(()=>f.$route.fullPath,()=>{n.value===!0&&e.value===!0&&p()}),l.onMounted(()=>{_(s.modelValue)});const g={show:m,hide:p,toggle:c};return Object.assign(f,g),g}let hf=1,gf=document.body;function _f(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${hf++}`:e,go.globalNodes!==void 0){const o=go.globalNodes.class;o!==void 0&&(n.className=o)}return gf.appendChild(n),n}function pf(e){e.remove()}const Hn=[];function vf(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return dr(e)}else if(e.__qPortal===!0){const n=dr(e);return n!==void 0&&n.$options.name==="QPopupProxy"?(e.hide(t),n):e}e=dr(e)}while(e!=null)}const bf=Ee({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function yf(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 za(e,t,n,o){const r=l.ref(!1),a=l.ref(!1);let i=null;const s={},u=o==="dialog"&&yf(e);function f(c){if(c===!0){qa(s),a.value=!0;return}a.value=!1,r.value===!1&&(u===!1&&i===null&&(i=_f(!1,o)),r.value=!0,Hn.push(e.proxy),rf(s))}function d(c){if(a.value=!1,c!==!0)return;qa(s),r.value=!1;const m=Hn.indexOf(e.proxy);m!==-1&&Hn.splice(m,1),i!==null&&(pf(i),i=null)}return l.onUnmounted(()=>{d(!0)}),e.proxy.__qPortal=!0,st(e.proxy,"contentEl",()=>t.value),{showPortal:f,hidePortal:d,portalIsActive:r,portalIsAccessible:a,renderPortal:()=>u===!0?n():r.value===!0?[l.h(l.Teleport,{to:i},l.h(bf,n))]:void 0}}const ja={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Ka(e,t=()=>{},n=()=>{}){return{transitionProps:l.computed(()=>{const o=`q-transition--${e.transitionShow||t()}`,r=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${r}-leave-from`,leaveActiveClass:`${r}-leave-active`,leaveToClass:`${r}-leave-to`}}),transitionStyle:l.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Wa(){let e;const t=l.getCurrentInstance();function n(){e=void 0}return l.onDeactivated(n),l.onBeforeUnmount(n),{removeTick:n,registerTick(o){e=o,l.nextTick(()=>{e===o&&(fa(t)===!1&&e(),e=void 0)})}}}function Ga(){let e=null;const t=l.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return l.onDeactivated(n),l.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(o,r){n(),fa(t)===!1&&(e=setTimeout(()=>{e=null,o()},r))}}}const Zt=[];let vn;function Ef(e){vn=e.keyCode===27}function Sf(){vn===!0&&(vn=!1)}function Cf(e){vn===!0&&(vn=!1,Qt(e,27)===!0&&Zt[Zt.length-1](e))}function Ya(e){window[e]("keydown",Ef),window[e]("blur",Sf),window[e]("keyup",Cf),vn=!1}function Qa(e){De.is.desktop===!0&&(Zt.push(e),Zt.length===1&&Ya("addEventListener"))}function Co(e){const t=Zt.indexOf(e);t!==-1&&(Zt.splice(t,1),Zt.length===0&&Ya("removeEventListener"))}const Jt=[];function Xa(e){Jt[Jt.length-1](e)}function Za(e){De.is.desktop===!0&&(Jt.push(e),Jt.length===1&&document.body.addEventListener("focusin",Xa))}function Cr(e){const t=Jt.indexOf(e);t!==-1&&(Jt.splice(t,1),Jt.length===0&&document.body.removeEventListener("focusin",Xa))}const{notPassiveCapture:ko}=Ke,en=[];function wo(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=Hn.length-1;for(;n>=0;){const o=Hn[n].$;if(o.type.name==="QTooltip"){n--;continue}if(o.type.name!=="QDialog")break;if(o.props.seamless!==!0)return;n--}for(let o=en.length-1;o>=0;o--){const r=en[o];if((r.anchorEl.value===null||r.anchorEl.value.contains(t)===!1)&&(t===document.body||r.innerRef.value!==null&&r.innerRef.value.contains(t)===!1))e.qClickOutside=!0,r.onClickOutside(e);else return}}function kf(e){en.push(e),en.length===1&&(document.addEventListener("mousedown",wo,ko),document.addEventListener("touchstart",wo,ko))}function Ja(e){const t=en.findIndex(n=>n===e);t!==-1&&(en.splice(t,1),en.length===0&&(document.removeEventListener("mousedown",wo,ko),document.removeEventListener("touchstart",wo,ko)))}let ei,ti;function ni(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function wf(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const kr={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{kr[`${e}#ltr`]=e,kr[`${e}#rtl`]=e});function oi(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:kr[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function Tf(e,t){let{top:n,left:o,right:r,bottom:a,width:i,height:s}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],o-=t[0],a+=t[1],r+=t[0],i+=t[0],s+=t[1]),{top:n,bottom:a,height:s,left:o,right:r,width:i,middle:o+(r-o)/2,center:n+(a-n)/2}}function Of(e,t,n){let{top:o,left:r}=e.getBoundingClientRect();return o+=t.top,r+=t.left,n!==void 0&&(o+=n[1],r+=n[0]),{top:o,bottom:o+1,height:1,left:r,right:r+1,width:1,middle:r,center:o}}function Af(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function ri(e,t,n,o){return{top:e[n.vertical]-t[o.vertical],left:e[n.horizontal]-t[o.horizontal]}}function li(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{li(e,t+1)},10);return}const{targetEl:n,offset:o,anchorEl:r,anchorOrigin:a,selfOrigin:i,absoluteOffset:s,fit:u,cover:f,maxHeight:d,maxWidth:c}=e;if(De.is.ios===!0&&window.visualViewport!==void 0){const I=document.body.style,{offsetLeft:T,offsetTop:B}=window.visualViewport;T!==ei&&(I.setProperty("--q-pe-left",T+"px"),ei=T),B!==ti&&(I.setProperty("--q-pe-top",B+"px"),ti=B)}const{scrollLeft:m,scrollTop:h}=n,p=s===void 0?Tf(r,f===!0?[0,0]:o):Of(r,s,o);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:c,maxHeight:d,visibility:"visible"});const{offsetWidth:S,offsetHeight:_}=n,{elWidth:g,elHeight:v}=u===!0||f===!0?{elWidth:Math.max(p.width,S),elHeight:f===!0?Math.max(p.height,_):_}:{elWidth:S,elHeight:_};let E={maxWidth:c,maxHeight:d};(u===!0||f===!0)&&(E.minWidth=p.width+"px",f===!0&&(E.minHeight=p.height+"px")),Object.assign(n.style,E);const b=Af(g,v);let A=ri(p,b,a,i);if(s===void 0||o===void 0)wr(A,p,b,a,i);else{const{top:I,left:T}=A;wr(A,p,b,a,i);let B=!1;if(A.top!==I){B=!0;const N=2*o[1];p.center=p.top-=N,p.bottom-=N+2}if(A.left!==T){B=!0;const N=2*o[0];p.middle=p.left-=N,p.right-=N+2}B===!0&&(A=ri(p,b,a,i),wr(A,p,b,a,i))}E={top:A.top+"px",left:A.left+"px"},A.maxHeight!==void 0&&(E.maxHeight=A.maxHeight+"px",p.height>A.maxHeight&&(E.minHeight=E.maxHeight)),A.maxWidth!==void 0&&(E.maxWidth=A.maxWidth+"px",p.width>A.maxWidth&&(E.minWidth=E.maxWidth)),Object.assign(n.style,E),n.scrollTop!==h&&(n.scrollTop=h),n.scrollLeft!==m&&(n.scrollLeft=m)}function wr(e,t,n,o,r){const a=n.bottom,i=n.right,s=jd(),u=window.innerHeight-s,f=document.body.clientWidth;if(e.top<0||e.top+a>u)if(r.vertical==="center")e.top=t[o.vertical]>u/2?Math.max(0,u-a):0,e.maxHeight=Math.min(a,u);else if(t[o.vertical]>u/2){const d=Math.min(u,o.vertical==="center"?t.center:o.vertical===r.vertical?t.bottom:t.top);e.maxHeight=Math.min(a,d),e.top=Math.max(0,d-a)}else e.top=Math.max(0,o.vertical==="center"?t.center:o.vertical===r.vertical?t.top:t.bottom),e.maxHeight=Math.min(a,u-e.top);if(e.left<0||e.left+i>f)if(e.maxWidth=Math.min(i,f),r.horizontal==="middle")e.left=t[o.horizontal]>f/2?Math.max(0,f-i):0;else if(t[o.horizontal]>f/2){const d=Math.min(f,o.horizontal==="middle"?t.middle:o.horizontal===r.horizontal?t.right:t.left);e.maxWidth=Math.min(i,d),e.left=Math.max(0,d-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?t.middle:o.horizontal===r.horizontal?t.left:t.right),e.maxWidth=Math.min(i,f-e.left)}const ai=Ee({name:"QMenu",inheritAttrs:!1,props:{...df,...Ua,...ft,...ja,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ni},self:{type:String,validator:ni},offset:{type:Array,validator:wf},scrollTarget:Na,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...$a,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){let r=null,a,i,s;const u=l.getCurrentInstance(),{proxy:f}=u,{$q:d}=f,c=l.ref(null),m=l.ref(!1),h=l.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),p=mt(e,d),{registerTick:S,removeTick:_}=Wa(),{registerTimeout:g}=Ga(),{transitionProps:v,transitionStyle:E}=Ka(e),{localScrollTarget:b,changeScrollEvent:A,unconfigureScrollTarget:I}=mf(e,j),{anchorEl:T,canShow:B}=ff({showing:m}),{hide:N}=Ha({showing:m,canShow:B,handleShow:oe,handleHide:O,hideOnRouteChange:h,processOnMount:!0}),{showPortal:P,hidePortal:M,renderPortal:x}=za(u,c,fe,"menu"),K={anchorEl:T,innerRef:c,onClickOutside(z){if(e.persistent!==!0&&m.value===!0)return N(z),(z.type==="touchstart"||z.target.classList.contains("q-dialog__backdrop"))&&Me(z),!0}},V=l.computed(()=>oi(e.anchor||(e.cover===!0?"center middle":"bottom start"),d.lang.rtl)),ne=l.computed(()=>e.cover===!0?V.value:oi(e.self||"top start",d.lang.rtl)),Y=l.computed(()=>(e.square===!0?" q-menu--square":"")+(p.value===!0?" q-menu--dark q-dark":"")),$=l.computed(()=>e.autoClose===!0?{onClick:re}:{}),H=l.computed(()=>m.value===!0&&e.persistent!==!0);l.watch(H,z=>{z===!0?(Qa(U),kf(K)):(Co(U),Ja(K))});function Q(){Eo(()=>{let z=c.value;z&&z.contains(document.activeElement)!==!0&&(z=z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||z.querySelector("[autofocus], [data-autofocus]")||z,z.focus({preventScroll:!0}))})}function oe(z){if(r=e.noRefocus===!1?document.activeElement:null,Za(se),P(),j(),a=void 0,z!==void 0&&(e.touchPosition||e.contextMenu)){const be=Ul(z);if(be.left!==void 0){const{top:$e,left:_t}=T.value.getBoundingClientRect();a={left:be.left-_t,top:be.top-$e}}}i===void 0&&(i=l.watch(()=>d.screen.width+"|"+d.screen.height+"|"+e.self+"|"+e.anchor+"|"+d.lang.rtl,G)),e.noFocus!==!0&&document.activeElement.blur(),S(()=>{G(),e.noFocus!==!0&&Q()}),g(()=>{d.platform.is.ios===!0&&(s=e.autoClose,c.value.click()),G(),P(!0),n("show",z)},e.transitionDuration)}function O(z){_(),M(),w(!0),r!==null&&(z===void 0||z.qClickOutside!==!0)&&(((z&&z.type.indexOf("key")===0?r.closest('[tabindex]:not([tabindex^="-"])'):void 0)||r).focus(),r=null),g(()=>{M(!0),n("hide",z)},e.transitionDuration)}function w(z){a=void 0,i!==void 0&&(i(),i=void 0),(z===!0||m.value===!0)&&(Cr(se),I(),Ja(K),Co(U)),z!==!0&&(r=null)}function j(){(T.value!==null||e.scrollTarget!==void 0)&&(b.value=Pa(T.value,e.scrollTarget),A(b.value,G))}function re(z){s!==!0?(vf(f,z),n("click",z)):s=!1}function se(z){H.value===!0&&e.noFocus!==!0&&ia(c.value,z.target)!==!0&&Q()}function U(z){n("escapeKey"),N(z)}function G(){li({targetEl:c.value,offset:e.offset,anchorEl:T.value,anchorOrigin:V.value,selfOrigin:ne.value,absoluteOffset:a,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function fe(){return l.h(l.Transition,v.value,()=>m.value===!0?l.h("div",{role:"menu",...o,ref:c,tabindex:-1,class:["q-menu q-position-engine scroll"+Y.value,o.class],style:[o.style,E.value],...$.value},Ve(t.default)):null)}return l.onBeforeUnmount(w),Object.assign(f,{focus:Q,updatePosition:G}),x}});function If(e,t,n){let o;function r(){o!==void 0&&(Bn.remove(o),o=void 0)}return l.onBeforeUnmount(()=>{e.value===!0&&r()}),{removeFromHistory:r,addToHistory(){o={condition:()=>n.value===!0,handler:t},Bn.add(o)}}}let zn=0,Tr,Or,jn,Ar=!1,ii,si,ui,tn=null;function xf(e){Nf(e)&&Me(e)}function Nf(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=zc(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),r=n||o?e.deltaY:e.deltaX;for(let a=0;a<t.length;a++){const i=t[a];if(Kd(i,o))return o?r<0&&i.scrollTop===0?!0:r>0&&i.scrollTop+i.clientHeight===i.scrollHeight:r<0&&i.scrollLeft===0?!0:r>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function ci(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function To(e){Ar!==!0&&(Ar=!0,requestAnimationFrame(()=>{Ar=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:o}=document.scrollingElement;(jn===void 0||t!==window.innerHeight)&&(jn=n-t,document.scrollingElement.scrollTop=o),o>jn&&(document.scrollingElement.scrollTop-=Math.ceil((o-jn)/8))}))}function di(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:o,overflowX:r}=window.getComputedStyle(t);Tr=zd(window),Or=Hd(window),ii=t.style.left,si=t.style.top,ui=window.location.href,t.style.left=`-${Tr}px`,t.style.top=`-${Or}px`,r!=="hidden"&&(r==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),o!=="hidden"&&(o==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,De.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",To,Ke.passiveCapture),window.visualViewport.addEventListener("scroll",To,Ke.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ci,Ke.passiveCapture))}De.is.desktop===!0&&De.is.mac===!0&&window[`${e}EventListener`]("wheel",xf,Ke.notPassive),e==="remove"&&(De.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",To,Ke.passiveCapture),window.visualViewport.removeEventListener("scroll",To,Ke.passiveCapture)):window.removeEventListener("scroll",ci,Ke.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=ii,t.style.top=si,window.location.href===ui&&window.scrollTo(Tr,Or),jn=void 0)}function Pf(e){let t="add";if(e===!0){if(zn++,tn!==null){clearTimeout(tn),tn=null;return}if(zn>1)return}else{if(zn===0||(zn--,zn>0))return;if(t="remove",De.is.ios===!0&&De.is.nativeMobile===!0){tn!==null&&clearTimeout(tn),tn=setTimeout(()=>{di(t),tn=null},100);return}}di(t)}function Lf(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,Pf(t))}}}let Oo=0;const Df={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"},fi={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Vf=Ee({name:"QDialog",inheritAttrs:!1,props:{...Ua,...ja,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...$a,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){const r=l.getCurrentInstance(),a=l.ref(null),i=l.ref(!1),s=l.ref(!1);let u=null,f=null,d,c;const m=l.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:h}=Lf(),{registerTimeout:p}=Ga(),{registerTick:S,removeTick:_}=Wa(),{transitionProps:g,transitionStyle:v}=Ka(e,()=>fi[e.position][0],()=>fi[e.position][1]),E=l.computed(()=>v.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:b,hidePortal:A,portalIsAccessible:I,renderPortal:T}=za(r,a,se,"dialog"),{hide:B}=Ha({showing:i,hideOnRouteChange:m,handleShow:ne,handleHide:Y,processOnMount:!0}),{addToHistory:N,removeFromHistory:P}=If(i,B,m),M=l.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${Df[e.position]}`+(s.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":"")),x=l.computed(()=>i.value===!0&&e.seamless!==!0),K=l.computed(()=>e.autoClose===!0?{onClick:w}:{}),V=l.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${x.value===!0?"modal":"seamless"}`,o.class]);l.watch(()=>e.maximized,U=>{i.value===!0&&O(U)}),l.watch(x,U=>{h(U),U===!0?(Za(re),Qa(Q)):(Cr(re),Co(Q))});function ne(U){N(),f=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,O(e.maximized),b(),s.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),S($)):_(),p(()=>{if(r.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:G,bottom:fe}=document.activeElement.getBoundingClientRect(),{innerHeight:z}=window,be=window.visualViewport!==void 0?window.visualViewport.height:z;G>0&&fe>be/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-be,fe>=z?1/0:Math.ceil(document.scrollingElement.scrollTop+fe-be/2))),document.activeElement.scrollIntoView()}c=!0,a.value.click(),c=!1}b(!0),s.value=!1,n("show",U)},e.transitionDuration)}function Y(U){_(),P(),oe(!0),s.value=!0,A(),f!==null&&(((U&&U.type.indexOf("key")===0?f.closest('[tabindex]:not([tabindex^="-"])'):void 0)||f).focus(),f=null),p(()=>{A(!0),s.value=!1,n("hide",U)},e.transitionDuration)}function $(U){Eo(()=>{let G=a.value;if(G!==null){if(U!==void 0){const fe=G.querySelector(U);if(fe!==null){fe.focus({preventScroll:!0});return}}G.contains(document.activeElement)!==!0&&(G=G.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||G.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||G.querySelector("[autofocus], [data-autofocus]")||G,G.focus({preventScroll:!0}))}})}function H(U){U&&typeof U.focus=="function"?U.focus({preventScroll:!0}):$(),n("shake");const G=a.value;G!==null&&(G.classList.remove("q-animate--scale"),G.classList.add("q-animate--scale"),u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,a.value!==null&&(G.classList.remove("q-animate--scale"),$())},170))}function Q(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&H():(n("escapeKey"),B()))}function oe(U){u!==null&&(clearTimeout(u),u=null),(U===!0||i.value===!0)&&(O(!1),e.seamless!==!0&&(h(!1),Cr(re),Co(Q))),U!==!0&&(f=null)}function O(U){U===!0?d!==!0&&(Oo<1&&document.body.classList.add("q-body--dialog"),Oo++,d=!0):d===!0&&(Oo<2&&document.body.classList.remove("q-body--dialog"),Oo--,d=!1)}function w(U){c!==!0&&(B(U),n("click",U))}function j(U){e.persistent!==!0&&e.noBackdropDismiss!==!0?B(U):e.noShake!==!0&&H()}function re(U){e.allowFocusOutside!==!0&&I.value===!0&&ia(a.value,U.target)!==!0&&$('[tabindex]:not([tabindex="-1"])')}Object.assign(r.proxy,{focus:$,shake:H,__updateRefocusTarget(U){f=U||null}}),l.onBeforeUnmount(oe);function se(){return l.h("div",{role:"dialog","aria-modal":x.value===!0?"true":"false",...o,class:V.value},[l.h(l.Transition,{name:"q-transition--fade",appear:!0},()=>x.value===!0?l.h("div",{class:"q-dialog__backdrop fixed-full",style:E.value,"aria-hidden":"true",tabindex:-1,onClick:j}):null),l.h(l.Transition,g.value,()=>i.value===!0?l.h("div",{ref:a,class:M.value,style:v.value,tabindex:-1,...K.value},Ve(t.default)):null)])}return T}}),Ir={name:String};function Rf(e={}){return(t,n,o)=>{t[n](l.h("input",{class:"hidden"+(o||""),...e.value}))}}function mi(e){return l.computed(()=>e.name||e.for)}const Bf=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Ff=/[\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,Mf=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,qf=/[a-z0-9_ -]$/i;function hi(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(De.is.firefox===!0?qf.test(n.data)===!1:Bf.test(n.data)===!0||Ff.test(n.data)===!0||Mf.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}function gi(e,t,n){if(n<=t)return t;const o=n-t+1;let r=t+(e-t)%o;return r<t&&(r=o+r),r===0?0:r}const _i=e=>["add","add-unique","toggle"].includes(e),Uf=".*+?^${}()|[]\\",$f=Object.keys(So);function xr(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return o=>o!==null&&typeof o=="object"&&n in o?o[n]:o}const Nr=Ee({name:"QSelect",inheritAttrs:!1,props:{..._r,...Ir,...So,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:_i},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:_r.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...yr,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:o}=l.getCurrentInstance(),{$q:r}=o,a=l.ref(!1),i=l.ref(!1),s=l.ref(-1),u=l.ref(""),f=l.ref(!1),d=l.ref(!1);let c=null,m=null,h,p,S,_=null,g,v,E,b;const A=l.ref(null),I=l.ref(null),T=l.ref(null),B=l.ref(null),N=l.ref(null),P=mi(e),M=hi(L),x=l.computed(()=>Array.isArray(e.options)?e.options.length:0),K=l.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:V,virtualScrollSliceSizeComputed:ne,localResetVirtualScroll:Y,padVirtualScroll:$,onVirtualScrollEvt:H,scrollTo:Q,setVirtualScrollSize:oe}=xa({virtualScrollLength:x,getVirtualScrollTarget:Ll,getVirtualScrollEl:Jo,virtualScrollItemSizeComputed:K}),O=Er(),w=l.computed(()=>{const C=e.mapOptions===!0&&e.multiple!==!0,J=e.modelValue!==void 0&&(e.modelValue!==null||C===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const ee=e.mapOptions===!0&&h!==void 0?h:[],ge=J.map(Te=>so(Te,ee));return e.modelValue===null&&C===!0?ge.filter(Te=>Te!==null):ge}return J}),j=l.computed(()=>{const C={};return $f.forEach(J=>{const ee=e[J];ee!==void 0&&(C[J]=ee)}),C}),re=l.computed(()=>e.optionsDark===null?O.isDark.value:e.optionsDark),se=l.computed(()=>$n(w.value)),U=l.computed(()=>{let C="q-field__input q-placeholder col";return e.hideSelected===!0||w.value.length===0?[C,e.inputClass]:(C+=" q-field__input--padding",e.inputClass===void 0?C:[C,e.inputClass])}),G=l.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),fe=l.computed(()=>x.value===0),z=l.computed(()=>w.value.map(C=>he.value(C)).join(", ")),be=l.computed(()=>e.displayValue!==void 0?e.displayValue:z.value),$e=l.computed(()=>e.optionsHtml===!0?()=>!0:C=>C!=null&&C.html===!0),_t=l.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||w.value.some($e.value))),Pe=l.computed(()=>O.focused.value===!0?e.tabindex:-1),it=l.computed(()=>{const C={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":a.value===!0?"true":"false","aria-controls":`${O.targetUid.value}_lb`};return s.value>=0&&(C["aria-activedescendant"]=`${O.targetUid.value}_${s.value}`),C}),He=l.computed(()=>({id:`${O.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),Ye=l.computed(()=>w.value.map((C,J)=>({index:J,opt:C,html:$e.value(C),selected:!0,removeAtIndex:Oe,toggleOption:et,tabindex:Pe.value}))),pt=l.computed(()=>{if(x.value===0)return[];const{from:C,to:J}=V.value;return e.options.slice(C,J).map((ee,ge)=>{const Te=ve.value(ee)===!0,ke=Bt(ee)===!0,Qe=C+ge,Le={clickable:!0,active:ke,activeClass:R.value,manualFocus:!0,focused:!1,disable:Te,tabindex:-1,dense:e.optionsDense,dark:re.value,role:"option","aria-selected":ke===!0?"true":"false",id:`${O.targetUid.value}_${Qe}`,onClick:()=>{et(ee)}};return Te!==!0&&(s.value===Qe&&(Le.focused=!0),r.platform.is.desktop===!0&&(Le.onMousemove=()=>{a.value===!0&&Fe(Qe)})),{index:Qe,opt:ee,html:$e.value(ee),label:he.value(ee),selected:Le.active,focused:Le.focused,toggleOption:et,setOptionIndex:Fe,itemProps:Le}})}),y=l.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:r.iconSet.arrow.dropdown),k=l.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),R=l.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),Z=l.computed(()=>xr(e.optionValue,"value")),he=l.computed(()=>xr(e.optionLabel,"label")),ve=l.computed(()=>xr(e.optionDisable,"disable")),ce=l.computed(()=>w.value.map(Z.value)),D=l.computed(()=>{const C={onInput:L,onChange:M,onKeydown:dn,onKeyup:Nn,onKeypress:co,onFocus:uo,onClick(J){p===!0&&Ot(J)}};return C.onCompositionstart=C.onCompositionupdate=C.onCompositionend=M,C});l.watch(w,C=>{h=C,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&O.innerLoading.value!==!0&&(i.value!==!0&&a.value!==!0||se.value!==!0)&&(S!==!0&&Rn(),(i.value===!0||a.value===!0)&&ae(""))},{immediate:!0}),l.watch(()=>e.fillInput,Rn),l.watch(a,Bl),l.watch(x,Lv);function q(C){return e.emitValue===!0?Z.value(C):C}function me(C){if(C!==-1&&C<w.value.length)if(e.multiple===!0){const J=e.modelValue.slice();n("remove",{index:C,value:J.splice(C,1)[0]}),n("update:modelValue",J)}else n("update:modelValue",null)}function Oe(C){me(C),O.focus()}function vt(C,J){const ee=q(C);if(e.multiple!==!0){e.fillInput===!0&&le(he.value(C),!0,!0),n("update:modelValue",ee);return}if(w.value.length===0){n("add",{index:0,value:ee}),n("update:modelValue",e.multiple===!0?[ee]:ee);return}if(J===!0&&Bt(C)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const ge=e.modelValue.slice();n("add",{index:ge.length,value:ee}),ge.push(ee),n("update:modelValue",ge)}function et(C,J){if(O.editable.value!==!0||C===void 0||ve.value(C)===!0)return;const ee=Z.value(C);if(e.multiple!==!0){J!==!0&&(le(e.fillInput===!0?he.value(C):"",!0,!0),fn()),I.value!==null&&I.value.focus(),(w.value.length===0||Nt(Z.value(w.value[0]),ee)!==!0)&&n("update:modelValue",e.emitValue===!0?ee:C);return}if((p!==!0||f.value===!0)&&O.focus(),uo(),w.value.length===0){const ke=e.emitValue===!0?ee:C;n("add",{index:0,value:ke}),n("update:modelValue",e.multiple===!0?[ke]:ke);return}const ge=e.modelValue.slice(),Te=ce.value.findIndex(ke=>Nt(ke,ee));if(Te!==-1)n("remove",{index:Te,value:ge.splice(Te,1)[0]});else{if(e.maxValues!==void 0&&ge.length>=e.maxValues)return;const ke=e.emitValue===!0?ee:C;n("add",{index:ge.length,value:ke}),ge.push(ke)}n("update:modelValue",ge)}function Fe(C){if(r.platform.is.desktop!==!0)return;const J=C!==-1&&C<x.value?C:-1;s.value!==J&&(s.value=J)}function ze(C=1,J){if(a.value===!0){let ee=s.value;do ee=gi(ee+C,-1,x.value-1);while(ee!==-1&&ee!==s.value&&ve.value(e.options[ee])===!0);s.value!==ee&&(Fe(ee),Q(ee),J!==!0&&e.useInput===!0&&e.fillInput===!0&&X(ee>=0?he.value(e.options[ee]):g,!0))}}function so(C,J){const ee=ge=>Nt(Z.value(ge),C);return e.options.find(ee)||J.find(ee)||C}function Bt(C){const J=Z.value(C);return ce.value.find(ee=>Nt(ee,J))!==void 0}function uo(C){e.useInput===!0&&I.value!==null&&(C===void 0||I.value===C.target&&C.target.value===z.value)&&I.value.select()}function Zo(C){Qt(C,27)===!0&&a.value===!0&&(Ot(C),fn(),Rn()),n("keyup",C)}function Nn(C){const{value:J}=C.target;if(C.keyCode!==void 0){Zo(C);return}if(C.target.value="",c!==null&&(clearTimeout(c),c=null),m!==null&&(clearTimeout(m),m=null),Rn(),typeof J=="string"&&J.length!==0){const ee=J.toLocaleLowerCase(),ge=ke=>{const Qe=e.options.find(Le=>String(ke.value(Le)).toLocaleLowerCase()===ee);return Qe===void 0?!1:(w.value.indexOf(Qe)===-1?et(Qe):fn(),!0)},Te=ke=>{ge(Z)!==!0&&ke!==!0&&ge(he)!==!0&&ae(J,!0,()=>Te(!0))};Te()}else O.clearValue(C)}function co(C){n("keypress",C)}function dn(C){if(n("keydown",C),lr(C)===!0)return;const J=u.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),ee=C.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(s.value!==-1||J===!0);if(C.keyCode===27){bt(C);return}if(C.keyCode===9&&ee===!1){Dn();return}if(C.target===void 0||C.target.id!==O.targetUid.value||O.editable.value!==!0)return;if(C.keyCode===40&&O.innerLoading.value!==!0&&a.value===!1){Me(C),Vn();return}if(C.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&u.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?me(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(C.keyCode===35||C.keyCode===36)&&(typeof u.value!="string"||u.value.length===0)&&(Me(C),s.value=-1,ze(C.keyCode===36?1:-1,e.multiple)),(C.keyCode===33||C.keyCode===34)&&ne.value!==void 0&&(Me(C),s.value=Math.max(-1,Math.min(x.value,s.value+(C.keyCode===33?-1:1)*ne.value.view)),ze(C.keyCode===33?1:-1,e.multiple)),(C.keyCode===38||C.keyCode===40)&&(Me(C),ze(C.keyCode===38?-1:1,e.multiple));const ge=x.value;if((E===void 0||b<Date.now())&&(E=""),ge>0&&e.useInput!==!0&&C.key!==void 0&&C.key.length===1&&C.altKey===!1&&C.ctrlKey===!1&&C.metaKey===!1&&(C.keyCode!==32||E.length!==0)){a.value!==!0&&Vn(C);const Te=C.key.toLocaleLowerCase(),ke=E.length===1&&E[0]===Te;b=Date.now()+1500,ke===!1&&(Me(C),E+=Te);const Qe=new RegExp("^"+E.split("").map(Fl=>Uf.indexOf(Fl)!==-1?"\\"+Fl:Fl).join(".*"),"i");let Le=s.value;if(ke===!0||Le<0||Qe.test(he.value(e.options[Le]))!==!0)do Le=gi(Le+1,-1,ge-1);while(Le!==s.value&&(ve.value(e.options[Le])===!0||Qe.test(he.value(e.options[Le]))!==!0));s.value!==Le&&l.nextTick(()=>{Fe(Le),Q(Le),Le>=0&&e.useInput===!0&&e.fillInput===!0&&X(he.value(e.options[Le]),!0)});return}if(!(C.keyCode!==13&&(C.keyCode!==32||e.useInput===!0||E!=="")&&(C.keyCode!==9||ee===!1))){if(C.keyCode!==9&&Me(C),s.value!==-1&&s.value<ge){et(e.options[s.value]);return}if(J===!0){const Te=(ke,Qe)=>{if(Qe){if(_i(Qe)!==!0)return}else Qe=e.newValueMode;if(le("",e.multiple!==!0,!0),ke==null)return;(Qe==="toggle"?et:vt)(ke,Qe==="add-unique"),e.multiple!==!0&&(I.value!==null&&I.value.focus(),fn())};if(e.onNewValue!==void 0?n("newValue",u.value,Te):Te(u.value),e.multiple!==!0)return}a.value===!0?Dn():O.innerLoading.value!==!0&&Vn()}}function Jo(){return p===!0?N.value:T.value!==null&&T.value.contentEl!==null?T.value.contentEl:void 0}function Ll(){return Jo()}function Dl(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?Ye.value.map(C=>t["selected-item"](C)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?Ye.value.map((C,J)=>l.h(uf,{key:"option-"+J,removable:O.editable.value===!0&&ve.value(C.opt)!==!0,dense:!0,textColor:e.color,tabindex:Pe.value,onRemove(){C.removeAtIndex(J)}},()=>l.h("span",{class:"ellipsis",[C.html===!0?"innerHTML":"textContent"]:he.value(C.opt)}))):[l.h("span",{[_t.value===!0?"innerHTML":"textContent"]:be.value})]}function er(){if(fe.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:u.value}):void 0;const C=t.option!==void 0?t.option:ee=>l.h(qt,{key:ee.index,...ee.itemProps},()=>l.h(Et,()=>l.h(ht,()=>l.h("span",{[ee.html===!0?"innerHTML":"textContent"]:ee.label}))));let J=$("div",pt.value.map(C));return t["before-options"]!==void 0&&(J=t["before-options"]().concat(J)),Pt(t["after-options"],J)}function Vl(C,J){const ee=J===!0?{...it.value,...O.splitAttrs.attributes.value}:void 0,ge={ref:J===!0?I:void 0,key:"i_t",class:U.value,style:e.inputStyle,value:u.value!==void 0?u.value:"",type:"search",...ee,id:J===!0?O.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":C===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...D.value};return C!==!0&&p===!0&&(Array.isArray(ge.class)===!0?ge.class=[...ge.class,"no-pointer-events"]:ge.class+=" no-pointer-events"),l.h("input",ge)}function L(C){c!==null&&(clearTimeout(c),c=null),m!==null&&(clearTimeout(m),m=null),!(C&&C.target&&C.target.qComposing===!0)&&(X(C.target.value||""),S=!0,g=u.value,O.focused.value!==!0&&(p!==!0||f.value===!0)&&O.focus(),e.onFilter!==void 0&&(c=setTimeout(()=>{c=null,ae(u.value)},e.inputDebounce)))}function X(C,J){u.value!==C&&(u.value=C,J===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",C):m=setTimeout(()=>{m=null,n("inputValue",C)},e.inputDebounce))}function le(C,J,ee){S=ee!==!0,e.useInput===!0&&(X(C,!0),(J===!0||ee!==!0)&&(g=C),J!==!0&&ae(C))}function ae(C,J,ee){if(e.onFilter===void 0||J!==!0&&O.focused.value!==!0)return;O.innerLoading.value===!0?n("filterAbort"):(O.innerLoading.value=!0,d.value=!0),C!==""&&e.multiple!==!0&&w.value.length!==0&&S!==!0&&C===he.value(w.value[0])&&(C="");const ge=setTimeout(()=>{a.value===!0&&(a.value=!1)},10);_!==null&&clearTimeout(_),_=ge,n("filter",C,(Te,ke)=>{(J===!0||O.focused.value===!0)&&_===ge&&(clearTimeout(_),typeof Te=="function"&&Te(),d.value=!1,l.nextTick(()=>{O.innerLoading.value=!1,O.editable.value===!0&&(J===!0?a.value===!0&&fn():a.value===!0?Bl(!0):a.value=!0),typeof ke=="function"&&l.nextTick(()=>{ke(o)}),typeof ee=="function"&&l.nextTick(()=>{ee(o)})}))},()=>{O.focused.value===!0&&_===ge&&(clearTimeout(_),O.innerLoading.value=!1,d.value=!1),a.value===!0&&(a.value=!1)})}function de(){return l.h(ai,{ref:T,class:G.value,style:e.popupContentStyle,modelValue:a.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&fe.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:re.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:k.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...He.value,onScrollPassive:H,onBeforeShow:Vc,onBeforeHide:xe,onShow:Ae},er)}function xe(C){Rc(C),Dn()}function Ae(){oe()}function wt(C){Ot(C),I.value!==null&&I.value.focus(),f.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function tt(C){Ot(C),l.nextTick(()=>{f.value=!1})}function Pn(){const C=[l.h(af,{class:`col-auto ${O.fieldClass.value}`,...j.value,for:O.targetUid.value,dark:re.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:u.value.length!==0,...O.splitAttrs.listeners.value,onFocus:wt,onBlur:tt},{...t,rawControl:()=>O.getControl(!0),before:void 0,after:void 0})];return a.value===!0&&C.push(l.h("div",{ref:N,class:G.value+" scroll",style:e.popupContentStyle,...He.value,onClick:bt,onScrollPassive:H},er())),l.h(Vf,{ref:B,modelValue:i.value,position:e.useInput===!0?"top":void 0,transitionShow:v,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Vc,onBeforeHide:Ln,onHide:Rl,onShow:Pv},()=>l.h("div",{class:"q-select__dialog"+(re.value===!0?" q-select__dialog--dark q-dark":"")+(f.value===!0?" q-select__dialog--focused":"")},C))}function Ln(C){Rc(C),B.value!==null&&B.value.__updateRefocusTarget(O.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),O.focused.value=!1}function Rl(C){fn(),O.focused.value===!1&&n("blur",C),Rn()}function Pv(){const C=document.activeElement;(C===null||C.id!==O.targetUid.value)&&I.value!==null&&I.value!==C&&I.value.focus(),oe()}function Dn(){i.value!==!0&&(s.value=-1,a.value===!0&&(a.value=!1),O.focused.value===!1&&(_!==null&&(clearTimeout(_),_=null),O.innerLoading.value===!0&&(n("filterAbort"),O.innerLoading.value=!1,d.value=!1)))}function Vn(C){O.editable.value===!0&&(p===!0?(O.onControlFocusin(C),i.value=!0,l.nextTick(()=>{O.focus()})):O.focus(),e.onFilter!==void 0?ae(u.value):(fe.value!==!0||t["no-option"]!==void 0)&&(a.value=!0))}function fn(){i.value=!1,Dn()}function Rn(){e.useInput===!0&&le(e.multiple!==!0&&e.fillInput===!0&&w.value.length!==0&&he.value(w.value[0])||"",!0,!0)}function Bl(C){let J=-1;if(C===!0){if(w.value.length!==0){const ee=Z.value(w.value[0]);J=e.options.findIndex(ge=>Nt(Z.value(ge),ee))}Y(J)}Fe(J)}function Lv(C,J){a.value===!0&&O.innerLoading.value===!1&&(Y(-1,!0),l.nextTick(()=>{a.value===!0&&O.innerLoading.value===!1&&(C>J?Y():Bl(!0))}))}function Dc(){i.value===!1&&T.value!==null&&T.value.updatePosition()}function Vc(C){C!==void 0&&Ot(C),n("popupShow",C),O.hasPopupOpen=!0,O.onControlFocusin(C)}function Rc(C){C!==void 0&&Ot(C),n("popupHide",C),O.hasPopupOpen=!1,O.onControlFocusout(C)}function Bc(){p=r.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||fe.value===!1:!0),v=r.platform.is.ios===!0&&p===!0&&e.useInput===!0?"fade":e.transitionShow}return l.onBeforeUpdate(Bc),l.onUpdated(Dc),Bc(),l.onBeforeUnmount(()=>{c!==null&&clearTimeout(c),m!==null&&clearTimeout(m)}),Object.assign(o,{showPopup:Vn,hidePopup:fn,removeAtIndex:me,add:vt,toggleOption:et,getOptionIndex:()=>s.value,setOptionIndex:Fe,moveOptionSelection:ze,filter:ae,updateMenuPosition:Dc,updateInputValue:le,isOptionSelected:Bt,getEmittingOptionValue:q,isOptionDisabled:(...C)=>ve.value.apply(null,C)===!0,getOptionValue:(...C)=>Z.value.apply(null,C),getOptionLabel:(...C)=>he.value.apply(null,C)}),Object.assign(O,{innerValue:w,fieldClass:l.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:A,targetRef:I,hasValue:se,showPopup:Vn,floatingLabel:l.computed(()=>e.hideSelected!==!0&&se.value===!0||typeof u.value=="number"||u.value.length!==0||$n(e.displayValue)),getControlChild:()=>{if(O.editable.value!==!1&&(i.value===!0||fe.value!==!0||t["no-option"]!==void 0))return p===!0?Pn():de();O.hasPopupOpen===!0&&(O.hasPopupOpen=!1)},controlEvents:{onFocusin(C){O.onControlFocusin(C)},onFocusout(C){O.onControlFocusout(C,()=>{Rn(),Dn()})},onClick(C){if(bt(C),p!==!0&&a.value===!0){Dn(),I.value!==null&&I.value.focus();return}Vn(C)}},getControl:C=>{const J=Dl(),ee=C===!0||i.value!==!0||p!==!0;if(e.useInput===!0)J.push(Vl(C,ee));else if(O.editable.value===!0){const Te=ee===!0?it.value:void 0;J.push(l.h("input",{ref:ee===!0?I:void 0,key:"d_t",class:"q-select__focus-target",id:ee===!0?O.targetUid.value:void 0,value:be.value,readonly:!0,"data-autofocus":C===!0||e.autofocus===!0||void 0,...Te,onKeydown:dn,onKeyup:Zo,onKeypress:co})),ee===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&J.push(l.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:Nn}))}if(P.value!==void 0&&e.disable!==!0&&ce.value.length!==0){const Te=ce.value.map(ke=>l.h("option",{value:ke,selected:!0}));J.push(l.h("select",{class:"hidden",name:P.value,multiple:e.multiple},Te))}const ge=e.useInput===!0||ee!==!0?void 0:O.splitAttrs.attributes.value;return l.h("div",{class:"q-field__native row items-center",...ge,...O.splitAttrs.listeners.value},J)},getInnerAppend:()=>e.loading!==!0&&d.value!==!0&&e.hideDropdownIcon!==!0?[l.h(We,{class:"q-select__dropdown-icon"+(a.value===!0?" rotate-180":""),name:y.value})]:null}),Sr(O)}}),Hf={xs:2,sm:4,md:6,lg:10,xl:14};function pi(e,t,n){return{transform:t===!0?`translateX(${n.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const zf=Ee({name:"QLinearProgress",props:{...ft,...Fn,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:n}=l.getCurrentInstance(),o=mt(e,n.$q),r=Mn(e,Hf),a=l.computed(()=>e.indeterminate===!0||e.query===!0),i=l.computed(()=>e.reverse!==e.query),s=l.computed(()=>({...r.value!==null?r.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),u=l.computed(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),f=l.computed(()=>pi(e.buffer!==void 0?e.buffer:1,i.value,n.$q)),d=l.computed(()=>`with${e.instantFeedback===!0?"out":""}-transition`),c=l.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${d.value} q-linear-progress__track--${o.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),m=l.computed(()=>pi(a.value===!0?1:e.value,i.value,n.$q)),h=l.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${d.value} q-linear-progress__model--${a.value===!0?"in":""}determinate`),p=l.computed(()=>({width:`${e.value*100}%`})),S=l.computed(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${d.value}`);return()=>{const _=[l.h("div",{class:c.value,style:f.value}),l.h("div",{class:h.value,style:m.value})];return e.stripe===!0&&a.value===!1&&_.push(l.h("div",{class:S.value,style:p.value})),l.h("div",{class:u.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},Pt(t.default,_))}}});function jf(e,t){const n=l.ref(null),o=l.computed(()=>e.disable===!0?null:l.h("span",{ref:n,class:"no-outline",tabindex:-1}));function r(a){const i=t.value;a!==void 0&&a.type.indexOf("key")===0?i!==null&&document.activeElement!==i&&i.contains(document.activeElement)===!0&&i.focus():n.value!==null&&(a===void 0||i!==null&&i.contains(a.target)===!0)&&n.value.focus()}return{refocusTargetEl:o,refocusTarget:r}}const Kf={xs:30,sm:35,md:40,lg:50,xl:60},Wf={...ft,...Fn,...Ir,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]},Gf=["update:modelValue"];function Yf(e,t){const{props:n,slots:o,emit:r,proxy:a}=l.getCurrentInstance(),{$q:i}=a,s=mt(n,i),u=l.ref(null),{refocusTargetEl:f,refocusTarget:d}=jf(n,u),c=Mn(n,Kf),m=l.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),h=l.computed(()=>{const x=l.toRaw(n.val);return m.value===!0?n.modelValue.findIndex(K=>l.toRaw(K)===x):-1}),p=l.computed(()=>m.value===!0?h.value!==-1:l.toRaw(n.modelValue)===l.toRaw(n.trueValue)),S=l.computed(()=>m.value===!0?h.value===-1:l.toRaw(n.modelValue)===l.toRaw(n.falseValue)),_=l.computed(()=>p.value===!1&&S.value===!1),g=l.computed(()=>n.disable===!0?-1:n.tabindex||0),v=l.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(n.dense===!0?` q-${e}--dense`:"")+(n.leftLabel===!0?" reverse":"")),E=l.computed(()=>{const x=p.value===!0?"truthy":S.value===!0?"falsy":"indet",K=n.color!==void 0&&(n.keepColor===!0||S.value!==!0)?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${x}${K}`}),b=l.computed(()=>{const x={type:"checkbox"};return n.name!==void 0&&Object.assign(x,{".checked":p.value,"^checked":p.value===!0?"checked":void 0,name:n.name,value:m.value===!0?n.val:n.trueValue}),x}),A=Rf(b),I=l.computed(()=>{const x={tabindex:g.value,role:"checkbox","aria-label":n.label,"aria-checked":_.value===!0?"mixed":p.value===!0?"true":"false"};return n.disable===!0&&(x["aria-disabled"]="true"),x});function T(x){x!==void 0&&(Me(x),d(x)),n.disable!==!0&&r("update:modelValue",B(),x)}function B(){if(m.value===!0){if(p.value===!0){const x=n.modelValue.slice();return x.splice(h.value,1),x}return n.modelValue.concat([n.val])}if(p.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(S.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function N(x){(x.keyCode===13||x.keyCode===32)&&Me(x)}function P(x){(x.keyCode===13||x.keyCode===32)&&T(x)}const M=t(p,_);return Object.assign(a,{toggle:T}),()=>{const x=M();n.disable!==!0&&A(x,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const K=[l.h("div",{class:E.value,style:c.value,"aria-hidden":"true"},x)];f.value!==null&&K.push(f.value);const V=n.label!==void 0?Pt(o.default,[n.label]):Ve(o.default);return V!==void 0&&K.push(l.h("div",{class:`q-${e}__label q-anchor--skip`},V)),l.h("div",{ref:u,class:v.value,...I.value,onClick:T,onKeydown:N,onKeyup:P},K)}}const Qf=()=>l.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[l.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[l.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),l.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Ut=Ee({name:"QCheckbox",props:Wf,emits:Gf,setup(e){const t=Qf();function n(o,r){const a=l.computed(()=>(o.value===!0?e.checkedIcon:r.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>a.value!==null?[l.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[l.h(We,{class:"q-checkbox__icon",name:a.value})])]:[t]}return Yf("checkbox",n)}});let Kn=0;const Xf={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Zf=["update:fullscreen","fullscreen"];function Jf(){const e=l.getCurrentInstance(),{props:t,emit:n,proxy:o}=e;let r,a,i;const s=l.ref(!1);fr(e)===!0&&l.watch(()=>o.$route.fullPath,()=>{t.noRouteFullscreenExit!==!0&&d()}),l.watch(()=>t.fullscreen,c=>{s.value!==c&&u()}),l.watch(s,c=>{n("update:fullscreen",c),n("fullscreen",c)});function u(){s.value===!0?d():f()}function f(){s.value!==!0&&(s.value=!0,i=o.$el.parentNode,i.replaceChild(a,o.$el),document.body.appendChild(o.$el),Kn++,Kn===1&&document.body.classList.add("q-body--fullscreen-mixin"),r={handler:d},Bn.add(r))}function d(){s.value===!0&&(r!==void 0&&(Bn.remove(r),r=void 0),i.replaceChild(o.$el,a),s.value=!1,Kn=Math.max(0,Kn-1),Kn===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),o.$el.scrollIntoView!==void 0&&setTimeout(()=>{o.$el.scrollIntoView()})))}return l.onBeforeMount(()=>{a=document.createElement("span")}),l.onMounted(()=>{t.fullscreen===!0&&f()}),l.onBeforeUnmount(d),Object.assign(o,{toggleFullscreen:u,setFullscreen:f,exitFullscreen:d}),{inFullscreen:s,toggleFullscreen:u}}function em(e,t){return new Date(e)-new Date(t)}const tm={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>e==="ad"||e==="da",default:"ad"}};function nm(e,t,n,o){const r=l.computed(()=>{const{sortBy:s}=t.value;return s&&n.value.find(u=>u.name===s)||null}),a=l.computed(()=>e.sortMethod!==void 0?e.sortMethod:(s,u,f)=>{const d=n.value.find(h=>h.name===u);if(d===void 0||d.field===void 0)return s;const c=f===!0?-1:1,m=typeof d.field=="function"?h=>d.field(h):h=>h[d.field];return s.sort((h,p)=>{let S=m(h),_=m(p);return d.rawSort!==void 0?d.rawSort(S,_,h,p)*c:S==null?-1*c:_==null?1*c:d.sort!==void 0?d.sort(S,_,h,p)*c:ir(S)===!0&&ir(_)===!0?(S-_)*c:Ql(S)===!0&&Ql(_)===!0?em(S,_)*c:typeof S=="boolean"&&typeof _=="boolean"?(S-_)*c:([S,_]=[S,_].map(g=>(g+"").toLocaleString().toLowerCase()),S<_?-1*c:S===_?0:c)})});function i(s){let u=e.columnSortOrder;if(ar(s)===!0)s.sortOrder&&(u=s.sortOrder),s=s.name;else{const c=n.value.find(m=>m.name===s);c!==void 0&&c.sortOrder&&(u=c.sortOrder)}let{sortBy:f,descending:d}=t.value;f!==s?(f=s,d=u==="da"):e.binaryStateSort===!0?d=!d:d===!0?u==="ad"?f=null:d=!1:u==="ad"?d=!0:f=null,o({sortBy:f,descending:d,page:1})}return{columnToSort:r,computedSortMethod:a,sort:i}}const om={filter:[String,Object],filterMethod:Function};function rm(e,t){const n=l.computed(()=>e.filterMethod!==void 0?e.filterMethod:(o,r,a,i)=>{const s=r?r.toLowerCase():"";return o.filter(u=>a.some(f=>{const d=i(f,u)+"";return(d==="undefined"||d==="null"?"":d.toLowerCase()).indexOf(s)!==-1}))});return l.watch(()=>e.filter,()=>{l.nextTick(()=>{t({page:1},!0)})},{deep:!0}),{computedFilterMethod:n}}function lm(e,t){for(const n in t)if(t[n]!==e[n])return!1;return!0}function vi(e){return e.page<1&&(e.page=1),e.rowsPerPage!==void 0&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const am={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function im(e,t){const{props:n,emit:o}=e,r=l.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length!==0?n.rowsPerPageOptions[0]:5},n.pagination)),a=l.computed(()=>{const d=n["onUpdate:pagination"]!==void 0?{...r.value,...n.pagination}:r.value;return vi(d)}),i=l.computed(()=>a.value.rowsNumber!==void 0);function s(d){u({pagination:d,filter:n.filter})}function u(d={}){l.nextTick(()=>{o("request",{pagination:d.pagination||a.value,filter:d.filter||n.filter,getCellValue:t})})}function f(d,c){const m=vi({...a.value,...d});if(lm(a.value,m)===!0){i.value===!0&&c===!0&&s(m);return}if(i.value===!0){s(m);return}n.pagination!==void 0&&n["onUpdate:pagination"]!==void 0?o("update:pagination",m):r.value=m}return{innerPagination:r,computedPagination:a,isServerSide:i,requestServerInteraction:u,setPagination:f}}function sm(e,t,n,o,r,a){const{props:i,emit:s,proxy:{$q:u}}=e,f=l.computed(()=>o.value===!0?n.value.rowsNumber||0:a.value),d=l.computed(()=>{const{page:b,rowsPerPage:A}=n.value;return(b-1)*A}),c=l.computed(()=>{const{page:b,rowsPerPage:A}=n.value;return b*A}),m=l.computed(()=>n.value.page===1),h=l.computed(()=>n.value.rowsPerPage===0?1:Math.max(1,Math.ceil(f.value/n.value.rowsPerPage))),p=l.computed(()=>c.value===0?!0:n.value.page>=h.value),S=l.computed(()=>(i.rowsPerPageOptions.includes(t.value.rowsPerPage)?i.rowsPerPageOptions:[t.value.rowsPerPage].concat(i.rowsPerPageOptions)).map(A=>({label:A===0?u.lang.table.allRows:""+A,value:A})));l.watch(h,(b,A)=>{if(b===A)return;const I=n.value.page;b&&!I?r({page:1}):b<I&&r({page:b})});function _(){r({page:1})}function g(){const{page:b}=n.value;b>1&&r({page:b-1})}function v(){const{page:b,rowsPerPage:A}=n.value;c.value>0&&b*A<f.value&&r({page:b+1})}function E(){r({page:h.value})}return i["onUpdate:pagination"]!==void 0&&s("update:pagination",{...n.value}),{firstRowIndex:d,lastRowIndex:c,isFirstPage:m,isLastPage:p,pagesNumber:h,computedRowsPerPageOptions:S,computedRowsNumber:f,firstPage:_,prevPage:g,nextPage:v,lastPage:E}}const um={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},cm=["update:selected","selection"];function dm(e,t,n,o){const r=l.computed(()=>{const p={};return e.selected.map(o.value).forEach(S=>{p[S]=!0}),p}),a=l.computed(()=>e.selection!=="none"),i=l.computed(()=>e.selection==="single"),s=l.computed(()=>e.selection==="multiple"),u=l.computed(()=>n.value.length!==0&&n.value.every(p=>r.value[o.value(p)]===!0)),f=l.computed(()=>u.value!==!0&&n.value.some(p=>r.value[o.value(p)]===!0)),d=l.computed(()=>e.selected.length);function c(p){return r.value[p]===!0}function m(){t("update:selected",[])}function h(p,S,_,g){t("selection",{rows:S,added:_,keys:p,evt:g});const v=i.value===!0?_===!0?S:[]:_===!0?e.selected.concat(S):e.selected.filter(E=>p.includes(o.value(E))===!1);t("update:selected",v)}return{hasSelectionMode:a,singleSelection:i,multipleSelection:s,allRowsSelected:u,someRowsSelected:f,rowsSelectedNumber:d,isRowSelected:c,clearSelection:m,updateSelection:h}}function bi(e){return Array.isArray(e)?e.slice():[]}const fm={expanded:Array},mm=["update:expanded"];function hm(e,t){const n=l.ref(bi(e.expanded));l.watch(()=>e.expanded,i=>{n.value=bi(i)});function o(i){return n.value.includes(i)}function r(i){e.expanded!==void 0?t("update:expanded",i):n.value=i}function a(i,s){const u=n.value.slice(),f=u.indexOf(i);s===!0?f===-1&&(u.push(i),r(u)):f!==-1&&(u.splice(f,1),r(u))}return{isRowExpanded:o,setExpanded:r,updateExpanded:a}}const gm={visibleColumns:Array};function _m(e,t,n){const o=l.computed(()=>{if(e.columns!==void 0)return e.columns;const s=e.rows[0];return s!==void 0?Object.keys(s).map(u=>({name:u,label:u.toUpperCase(),field:u,align:ir(s[u])?"right":"left",sortable:!0})):[]}),r=l.computed(()=>{const{sortBy:s,descending:u}=t.value;return(e.visibleColumns!==void 0?o.value.filter(d=>d.required===!0||e.visibleColumns.includes(d.name)===!0):o.value).map(d=>{const c=d.align||"right",m=`text-${c}`;return{...d,align:c,__iconClass:`q-table__sort-icon q-table__sort-icon--${c}`,__thClass:m+(d.headerClasses!==void 0?" "+d.headerClasses:"")+(d.sortable===!0?" sortable":"")+(d.name===s?` sorted ${u===!0?"sort-desc":""}`:""),__tdStyle:d.style!==void 0?typeof d.style!="function"?()=>d.style:d.style:()=>null,__tdClass:d.classes!==void 0?typeof d.classes!="function"?()=>m+" "+d.classes:h=>m+" "+d.classes(h):()=>m}})}),a=l.computed(()=>{const s={};return r.value.forEach(u=>{s[u.name]=u}),s}),i=l.computed(()=>e.tableColspan!==void 0?e.tableColspan:r.value.length+(n.value===!0?1:0));return{colList:o,computedCols:r,computedColsMap:a,computedColspan:i}}const Ao="q-table__bottom row items-center",yi={};Ia.forEach(e=>{yi[e]={}});const pm=Ee({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...yi,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...ft,...Xf,...gm,...om,...am,...fm,...um,...tm},emits:["request","virtualScroll",...Zf,...mm,...cm],setup(e,{slots:t,emit:n}){const o=l.getCurrentInstance(),{proxy:{$q:r}}=o,a=mt(e,r),{inFullscreen:i,toggleFullscreen:s}=Jf(),u=l.computed(()=>typeof e.rowKey=="function"?e.rowKey:L=>L[e.rowKey]),f=l.ref(null),d=l.ref(null),c=l.computed(()=>e.grid!==!0&&e.virtualScroll===!0),m=l.computed(()=>" q-table__card"+(a.value===!0?" q-table__card--dark q-dark":"")+(e.square===!0?" q-table--square":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")),h=l.computed(()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(e.grid===!0?" q-table--grid":m.value)+(a.value===!0?" q-table--dark":"")+(e.dense===!0?" q-table--dense":"")+(e.wrapCells===!1?" q-table--no-wrap":"")+(i.value===!0?" fullscreen scroll":"")),p=l.computed(()=>h.value+(e.loading===!0?" q-table--loading":""));l.watch(()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+h.value,()=>{c.value===!0&&d.value!==null&&d.value.reset()});const{innerPagination:S,computedPagination:_,isServerSide:g,requestServerInteraction:v,setPagination:E}=im(o,Fe),{computedFilterMethod:b}=rm(e,E),{isRowExpanded:A,setExpanded:I,updateExpanded:T}=hm(e,n),B=l.computed(()=>{let L=e.rows;if(g.value===!0||L.length===0)return L;const{sortBy:X,descending:le}=_.value;return e.filter&&(L=b.value(L,e.filter,O.value,Fe)),re.value!==null&&(L=se.value(e.rows===L?L.slice():L,X,le)),L}),N=l.computed(()=>B.value.length),P=l.computed(()=>{let L=B.value;if(g.value===!0)return L;const{rowsPerPage:X}=_.value;return X!==0&&(G.value===0&&e.rows!==L?L.length>fe.value&&(L=L.slice(0,fe.value)):L=L.slice(G.value,fe.value)),L}),{hasSelectionMode:M,singleSelection:x,multipleSelection:K,allRowsSelected:V,someRowsSelected:ne,rowsSelectedNumber:Y,isRowSelected:$,clearSelection:H,updateSelection:Q}=dm(e,n,P,u),{colList:oe,computedCols:O,computedColsMap:w,computedColspan:j}=_m(e,_,M),{columnToSort:re,computedSortMethod:se,sort:U}=nm(e,_,oe,E),{firstRowIndex:G,lastRowIndex:fe,isFirstPage:z,isLastPage:be,pagesNumber:$e,computedRowsPerPageOptions:_t,computedRowsNumber:Pe,firstPage:it,prevPage:He,nextPage:Ye,lastPage:pt}=sm(o,S,_,g,E,N),y=l.computed(()=>P.value.length===0),k=l.computed(()=>{const L={};return Ia.forEach(X=>{L[X]=e[X]}),L.virtualScrollItemSize===void 0&&(L.virtualScrollItemSize=e.dense===!0?28:48),L});function R(){c.value===!0&&d.value.reset()}function Z(){if(e.grid===!0)return Vl();const L=e.hideHeader!==!0?uo:null;if(c.value===!0){const le=t["top-row"],ae=t["bottom-row"],de={default:xe=>D(xe.item,t.body,xe.index)};if(le!==void 0){const xe=l.h("tbody",le({cols:O.value}));de.before=L===null?()=>xe:()=>[L()].concat(xe)}else L!==null&&(de.before=L);return ae!==void 0&&(de.after=()=>l.h("tbody",ae({cols:O.value}))),l.h(Yd,{ref:d,class:e.tableClass,style:e.tableStyle,...k.value,scrollTarget:e.virtualScrollTarget,items:P.value,type:"__qtable",tableColspan:j.value,onVirtualScroll:ve},de)}const X=[q()];return L!==null&&X.unshift(L()),wa({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},X)}function he(L,X){if(d.value!==null){d.value.scrollTo(L,X);return}L=parseInt(L,10);const le=f.value.querySelector(`tbody tr:nth-of-type(${L+1})`);if(le!==null){const ae=f.value.querySelector(".q-table__middle.scroll"),de=le.offsetTop-e.virtualScrollStickySizeStart,xe=de<ae.scrollTop?"decrease":"increase";ae.scrollTop=de,n("virtualScroll",{index:L,from:0,to:S.value.rowsPerPage-1,direction:xe})}}function ve(L){n("virtualScroll",L)}function ce(){return[l.h(zf,{class:"q-table__linear-progress",color:e.color,dark:a.value,indeterminate:!0,trackColor:"transparent"})]}function D(L,X,le){const ae=u.value(L),de=$(ae);if(X!==void 0)return X(me({key:ae,row:L,pageIndex:le,__trClass:de?"selected":""}));const xe=t["body-cell"],Ae=O.value.map(tt=>{const Pn=t[`body-cell-${tt.name}`],Ln=Pn!==void 0?Pn:xe;return Ln!==void 0?Ln(Oe({key:ae,row:L,pageIndex:le,col:tt})):l.h("td",{class:tt.__tdClass(L),style:tt.__tdStyle(L)},Fe(tt,L))});if(M.value===!0){const tt=t["body-selection"],Pn=tt!==void 0?tt(vt({key:ae,row:L,pageIndex:le})):[l.h(Ut,{modelValue:de,color:e.color,dark:a.value,dense:e.dense,"onUpdate:modelValue":(Ln,Rl)=>{Q([ae],[L],Ln,Rl)}})];Ae.unshift(l.h("td",{class:"q-table--col-auto-width"},Pn))}const wt={key:ae,class:{selected:de}};return e.onRowClick!==void 0&&(wt.class["cursor-pointer"]=!0,wt.onClick=tt=>{n("rowClick",tt,L,le)}),e.onRowDblclick!==void 0&&(wt.class["cursor-pointer"]=!0,wt.onDblclick=tt=>{n("rowDblclick",tt,L,le)}),e.onRowContextmenu!==void 0&&(wt.class["cursor-pointer"]=!0,wt.onContextmenu=tt=>{n("rowContextmenu",tt,L,le)}),l.h("tr",wt,Ae)}function q(){const L=t.body,X=t["top-row"],le=t["bottom-row"];let ae=P.value.map((de,xe)=>D(de,L,xe));return X!==void 0&&(ae=X({cols:O.value}).concat(ae)),le!==void 0&&(ae=ae.concat(le({cols:O.value}))),l.h("tbody",ae)}function me(L){return et(L),L.cols=L.cols.map(X=>st({...X},"value",()=>Fe(X,L.row))),L}function Oe(L){return et(L),st(L,"value",()=>Fe(L.col,L.row)),L}function vt(L){return et(L),L}function et(L){Object.assign(L,{cols:O.value,colsMap:w.value,sort:U,rowIndex:G.value+L.pageIndex,color:e.color,dark:a.value,dense:e.dense}),M.value===!0&&st(L,"selected",()=>$(L.key),(X,le)=>{Q([L.key],[L.row],X,le)}),st(L,"expand",()=>A(L.key),X=>{T(L.key,X)})}function Fe(L,X){const le=typeof L.field=="function"?L.field(X):X[L.field];return L.format!==void 0?L.format(le,X):le}const ze=l.computed(()=>({pagination:_.value,pagesNumber:$e.value,isFirstPage:z.value,isLastPage:be.value,firstPage:it,prevPage:He,nextPage:Ye,lastPage:pt,inFullscreen:i.value,toggleFullscreen:s}));function so(){const L=t.top,X=t["top-left"],le=t["top-right"],ae=t["top-selection"],de=M.value===!0&&ae!==void 0&&Y.value>0,xe="q-table__top relative-position row items-center";if(L!==void 0)return l.h("div",{class:xe},[L(ze.value)]);let Ae;if(de===!0?Ae=ae(ze.value).slice():(Ae=[],X!==void 0?Ae.push(l.h("div",{class:"q-table__control"},[X(ze.value)])):e.title&&Ae.push(l.h("div",{class:"q-table__control"},[l.h("div",{class:["q-table__title",e.titleClass]},e.title)]))),le!==void 0&&(Ae.push(l.h("div",{class:"q-table__separator col"})),Ae.push(l.h("div",{class:"q-table__control"},[le(ze.value)]))),Ae.length!==0)return l.h("div",{class:xe},Ae)}const Bt=l.computed(()=>ne.value===!0?null:V.value);function uo(){const L=Zo();return e.loading===!0&&t.loading===void 0&&L.push(l.h("tr",{class:"q-table__progress"},[l.h("th",{class:"relative-position",colspan:j.value},ce())])),l.h("thead",L)}function Zo(){const L=t.header,X=t["header-cell"];if(L!==void 0)return L(Nn({header:!0})).slice();const le=O.value.map(ae=>{const de=t[`header-cell-${ae.name}`],xe=de!==void 0?de:X,Ae=Nn({col:ae});return xe!==void 0?xe(Ae):l.h(hr,{key:ae.name,props:Ae},()=>ae.label)});if(x.value===!0&&e.grid!==!0)le.unshift(l.h("th",{class:"q-table--col-auto-width"}," "));else if(K.value===!0){const ae=t["header-selection"],de=ae!==void 0?ae(Nn({})):[l.h(Ut,{color:e.color,modelValue:Bt.value,dark:a.value,dense:e.dense,"onUpdate:modelValue":co})];le.unshift(l.h("th",{class:"q-table--col-auto-width"},de))}return[l.h("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},le)]}function Nn(L){return Object.assign(L,{cols:O.value,sort:U,colsMap:w.value,color:e.color,dark:a.value,dense:e.dense}),K.value===!0&&st(L,"selected",()=>Bt.value,co),L}function co(L){ne.value===!0&&(L=!1),Q(P.value.map(u.value),P.value,L)}const dn=l.computed(()=>{const L=[e.iconFirstPage||r.iconSet.table.firstPage,e.iconPrevPage||r.iconSet.table.prevPage,e.iconNextPage||r.iconSet.table.nextPage,e.iconLastPage||r.iconSet.table.lastPage];return r.lang.rtl===!0?L.reverse():L});function Jo(){if(e.hideBottom===!0)return;if(y.value===!0){if(e.hideNoData===!0)return;const le=e.loading===!0?e.loadingLabel||r.lang.table.loading:e.filter?e.noResultsLabel||r.lang.table.noResults:e.noDataLabel||r.lang.table.noData,ae=t["no-data"],de=ae!==void 0?[ae({message:le,icon:r.iconSet.table.warning,filter:e.filter})]:[l.h(We,{class:"q-table__bottom-nodata-icon",name:r.iconSet.table.warning}),le];return l.h("div",{class:Ao+" q-table__bottom--nodata"},de)}const L=t.bottom;if(L!==void 0)return l.h("div",{class:Ao},[L(ze.value)]);const X=e.hideSelectedBanner!==!0&&M.value===!0&&Y.value>0?[l.h("div",{class:"q-table__control"},[l.h("div",[(e.selectedRowsLabel||r.lang.table.selectedRecords)(Y.value)])])]:[];if(e.hidePagination!==!0)return l.h("div",{class:Ao+" justify-end"},Dl(X));if(X.length!==0)return l.h("div",{class:Ao},X)}function Ll(L){E({page:1,rowsPerPage:L.value})}function Dl(L){let X;const{rowsPerPage:le}=_.value,ae=e.paginationLabel||r.lang.table.pagination,de=t.pagination,xe=e.rowsPerPageOptions.length>1;if(L.push(l.h("div",{class:"q-table__separator col"})),xe===!0&&L.push(l.h("div",{class:"q-table__control"},[l.h("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||r.lang.table.recordsPerPage]),l.h(Nr,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:le,options:_t.value,displayValue:le===0?r.lang.table.allRows:le,dark:a.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Ll})])),de!==void 0)X=de(ze.value);else if(X=[l.h("span",le!==0?{class:"q-table__bottom-item"}:{},[le?ae(G.value+1,Math.min(fe.value,Pe.value),Pe.value):ae(1,N.value,Pe.value)])],le!==0&&$e.value>1){const Ae={color:e.color,round:!0,dense:!0,flat:!0};e.dense===!0&&(Ae.size="sm"),$e.value>2&&X.push(l.h(Lt,{key:"pgFirst",...Ae,icon:dn.value[0],disable:z.value,onClick:it})),X.push(l.h(Lt,{key:"pgPrev",...Ae,icon:dn.value[1],disable:z.value,onClick:He}),l.h(Lt,{key:"pgNext",...Ae,icon:dn.value[2],disable:be.value,onClick:Ye})),$e.value>2&&X.push(l.h(Lt,{key:"pgLast",...Ae,icon:dn.value[3],disable:be.value,onClick:pt}))}return L.push(l.h("div",{class:"q-table__control"},X)),L}function er(){const L=e.gridHeader===!0?[l.h("table",{class:"q-table"},[uo()])]:e.loading===!0&&t.loading===void 0?ce():void 0;return l.h("div",{class:"q-table__middle"},L)}function Vl(){const L=t.item!==void 0?t.item:X=>{const le=X.cols.map(de=>l.h("div",{class:"q-table__grid-item-row"},[l.h("div",{class:"q-table__grid-item-title"},[de.label]),l.h("div",{class:"q-table__grid-item-value"},[de.value])]));if(M.value===!0){const de=t["body-selection"],xe=de!==void 0?de(X):[l.h(Ut,{modelValue:X.selected,color:e.color,dark:a.value,dense:e.dense,"onUpdate:modelValue":(Ae,wt)=>{Q([X.key],[X.row],Ae,wt)}})];le.unshift(l.h("div",{class:"q-table__grid-item-row"},xe),l.h(Sa,{dark:a.value}))}const ae={class:["q-table__grid-item-card"+m.value,e.cardClass],style:e.cardStyle};return(e.onRowClick!==void 0||e.onRowDblclick!==void 0||e.onRowContextmenu!==void 0)&&(ae.class[0]+=" cursor-pointer",e.onRowClick!==void 0&&(ae.onClick=de=>{n("RowClick",de,X.row,X.pageIndex)}),e.onRowDblclick!==void 0&&(ae.onDblclick=de=>{n("RowDblclick",de,X.row,X.pageIndex)}),e.onRowContextmenu!==void 0&&(ae.onContextmenu=de=>{n("rowContextmenu",de,X.row,X.pageIndex)})),l.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(X.selected===!0?" q-table__grid-item--selected":"")},[l.h("div",ae,le)])};return l.h("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},P.value.map((X,le)=>L(me({key:u.value(X),row:X,pageIndex:le}))))}return Object.assign(o.proxy,{requestServerInteraction:v,setPagination:E,firstPage:it,prevPage:He,nextPage:Ye,lastPage:pt,isRowSelected:$,clearSelection:H,isRowExpanded:A,setExpanded:I,sort:U,resetVirtualScroll:R,scrollTo:he,getCellValue:Fe}),Fc(o.proxy,{filteredSortedRows:()=>B.value,computedRows:()=>P.value,computedRowsNumber:()=>Pe.value}),()=>{const L=[so()],X={ref:f,class:p.value};return e.grid===!0?L.push(er()):Object.assign(X,{class:[X.class,e.cardClass],style:e.cardStyle}),L.push(Z(),Jo()),e.loading===!0&&t.loading!==void 0&&L.push(t.loading()),l.h("div",X,L)}}}),vm=Ee({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const n=l.computed(()=>"q-tr"+(e.props===void 0||e.props.header===!0?"":" "+e.props.__trClass)+(e.noHover===!0?" q-tr--no-hover":""));return()=>l.h("tr",{class:n.value},Ve(t.default))}}),bm={name:"TableSlotHeader",props:{tableProps:{type:Object,required:!0},selectionType:{type:String,default:"none"},smallDevice:{type:Boolean,required:!0}},data(){return{tablePropsData:this.tableProps,showColumnsSelector:!1,showSearch:!1}},methods:{}};function ym(e,t,n,o,r,a){return l.openBlock(),l.createBlock(vm,{class:"table-header"},{default:l.withCtx(()=>[n.selectionType!=="none"?(l.openBlock(),l.createBlock(hr,{key:0},{default:l.withCtx(()=>[n.selectionType=="multiple"?(l.openBlock(),l.createBlock(Ut,{key:0,modelValue:r.tablePropsData.selected,"onUpdate:modelValue":t[0]||(t[0]=i=>r.tablePropsData.selected=i),size:"sm"},null,8,["modelValue"])):l.createCommentVNode("",!0)]),_:1})):l.createCommentVNode("",!0),n.smallDevice?l.createCommentVNode("",!0):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(n.tableProps.cols,i=>(l.openBlock(),l.createBlock(hr,{key:i.name,props:n.tableProps},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(i.label),1)]),_:2},1032,["props"]))),128))]),_:1})}const Em=lt(bm,[["render",ym]]),Sm={name:"TableColumnsSelector",props:{columns:{type:Array},visibleColumns:{type:Array,required:!0}},emits:["onSelectVisibleColumns"],data(){return{visibleColumnsData:[]}},watch:{visibleColumns(e){this.visibleColumnsData=e}},methods:{onSelectVisibleColumns(e){this.$emit("onSelectVisibleColumns",e)}}};function Cm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(Nr,{modelValue:r.visibleColumnsData,"onUpdate:modelValue":[t[0]||(t[0]=i=>r.visibleColumnsData=i),a.onSelectVisibleColumns],multiple:"",outlined:"",dense:"","options-dense":"","display-value":e.$q.lang.table.columns,"emit-value":"","map-options":"",options:n.columns,"option-value":"name","options-cover":"",class:"columns-selector","options-selected-class":"addicional-visible-columns"},{option:l.withCtx(i=>[l.createVNode(qt,l.mergeProps(i.itemProps,{class:i.opt.required?"required-table-columns":""}),{default:l.withCtx(()=>[l.createVNode(Et,null,{default:l.withCtx(()=>[l.createVNode(ht,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(i.opt.label),1)]),_:2},1024)]),_:2},1024)]),_:2},1040,["class"])]),_:1},8,["modelValue","display-value","options","onUpdate:modelValue"])}const km=lt(Sm,[["render",Cm]]),Ei=Ee({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const n=l.getCurrentInstance(),o=l.computed(()=>"q-td"+(e.autoWidth===!0?" q-table--col-auto-width":"")+(e.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(e.props===void 0)return l.h("td",{class:o.value},Ve(t.default));const r=n.vnode.key,a=(e.props.colsMap!==void 0?e.props.colsMap[r]:null)||e.props.col;if(a===void 0)return;const{row:i}=e.props;return l.h("td",{class:o.value+a.__tdClass(i),style:a.__tdStyle(i)},Ve(t.default))}}}),Si={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Io={"#":{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()}},Ci=Object.keys(Io);Ci.forEach(e=>{Io[e].regex=new RegExp(Io[e].pattern)});const wm=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Ci.join("")+"])|(.)","g"),ki=/[.*+?^${}()|[\]\\]/g,Re="",Tm={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Om(e,t,n,o){let r,a,i,s,u,f;const d=l.ref(null),c=l.ref(h());function m(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}l.watch(()=>e.type+e.autogrow,S),l.watch(()=>e.mask,N=>{if(N!==void 0)_(c.value,!0);else{const P=T(c.value);S(),e.modelValue!==P&&t("update:modelValue",P)}}),l.watch(()=>e.fillMask+e.reverseFillMask,()=>{d.value===!0&&_(c.value,!0)}),l.watch(()=>e.unmaskedValue,()=>{d.value===!0&&_(c.value)});function h(){if(S(),d.value===!0){const N=A(T(e.modelValue));return e.fillMask!==!1?B(N):N}return e.modelValue}function p(N){if(N<r.length)return r.slice(-N);let P="",M=r;const x=M.indexOf(Re);if(x!==-1){for(let K=N-M.length;K>0;K--)P+=Re;M=M.slice(0,x)+P+M.slice(x)}return M}function S(){if(d.value=e.mask!==void 0&&e.mask.length!==0&&m(),d.value===!1){s=void 0,r="",a="";return}const N=Si[e.mask]===void 0?e.mask:Si[e.mask],P=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",M=P.replace(ki,"\\$&"),x=[],K=[],V=[];let ne=e.reverseFillMask===!0,Y="",$="";N.replace(wm,(O,w,j,re,se)=>{if(re!==void 0){const U=Io[re];V.push(U),$=U.negate,ne===!0&&(K.push("(?:"+$+"+)?("+U.pattern+"+)?(?:"+$+"+)?("+U.pattern+"+)?"),ne=!1),K.push("(?:"+$+"+)?("+U.pattern+")?")}else if(j!==void 0)Y="\\"+(j==="\\"?"":j),V.push(j),x.push("([^"+Y+"]+)?"+Y+"?");else{const U=w!==void 0?w:se;Y=U==="\\"?"\\\\\\\\":U.replace(ki,"\\\\$&"),V.push(U),x.push("([^"+Y+"]+)?"+Y+"?")}});const H=new RegExp("^"+x.join("")+"("+(Y===""?".":"[^"+Y+"]")+"+)?"+(Y===""?"":"["+Y+"]*")+"$"),Q=K.length-1,oe=K.map((O,w)=>w===0&&e.reverseFillMask===!0?new RegExp("^"+M+"*"+O):w===Q?new RegExp("^"+O+"("+($===""?".":$)+"+)?"+(e.reverseFillMask===!0?"$":M+"*")):new RegExp("^"+O));i=V,s=O=>{const w=H.exec(e.reverseFillMask===!0?O:O.slice(0,V.length+1));w!==null&&(O=w.slice(1).join(""));const j=[],re=oe.length;for(let se=0,U=O;se<re;se++){const G=oe[se].exec(U);if(G===null)break;U=U.slice(G.shift().length),j.push(...G)}return j.length!==0?j.join(""):O},r=V.map(O=>typeof O=="string"?O:Re).join(""),a=r.split(Re).join(P)}function _(N,P,M){const x=o.value,K=x.selectionEnd,V=x.value.length-K,ne=T(N);P===!0&&S();const Y=A(ne),$=e.fillMask!==!1?B(Y):Y,H=c.value!==$;x.value!==$&&(x.value=$),H===!0&&(c.value=$),document.activeElement===x&&l.nextTick(()=>{if($===a){const oe=e.reverseFillMask===!0?a.length:0;x.setSelectionRange(oe,oe,"forward");return}if(M==="insertFromPaste"&&e.reverseFillMask!==!0){const oe=x.selectionEnd;let O=K-1;for(let w=u;w<=O&&w<oe;w++)r[w]!==Re&&O++;v.right(x,O);return}if(["deleteContentBackward","deleteContentForward"].indexOf(M)!==-1){const oe=e.reverseFillMask===!0?K===0?$.length>Y.length?1:0:Math.max(0,$.length-($===a?0:Math.min(Y.length,V)+1))+1:K;x.setSelectionRange(oe,oe,"forward");return}if(e.reverseFillMask===!0)if(H===!0){const oe=Math.max(0,$.length-($===a?0:Math.min(Y.length,V+1)));oe===1&&K===1?x.setSelectionRange(oe,oe,"forward"):v.rightReverse(x,oe)}else{const oe=$.length-V;x.setSelectionRange(oe,oe,"backward")}else if(H===!0){const oe=Math.max(0,r.indexOf(Re),Math.min(Y.length,K)-1);v.right(x,oe)}else{const oe=K-1;v.right(x,oe)}});const Q=e.unmaskedValue===!0?T($):$;String(e.modelValue)!==Q&&(e.modelValue!==null||Q!=="")&&n(Q,!0)}function g(N,P,M){const x=A(T(N.value));P=Math.max(0,r.indexOf(Re),Math.min(x.length,P)),u=P,N.setSelectionRange(P,M,"forward")}const v={left(N,P){const M=r.slice(P-1).indexOf(Re)===-1;let x=Math.max(0,P-1);for(;x>=0;x--)if(r[x]===Re){P=x,M===!0&&P++;break}if(x<0&&r[P]!==void 0&&r[P]!==Re)return v.right(N,0);P>=0&&N.setSelectionRange(P,P,"backward")},right(N,P){const M=N.value.length;let x=Math.min(M,P+1);for(;x<=M;x++)if(r[x]===Re){P=x;break}else r[x-1]===Re&&(P=x);if(x>M&&r[P-1]!==void 0&&r[P-1]!==Re)return v.left(N,M);N.setSelectionRange(P,P,"forward")},leftReverse(N,P){const M=p(N.value.length);let x=Math.max(0,P-1);for(;x>=0;x--)if(M[x-1]===Re){P=x;break}else if(M[x]===Re&&(P=x,x===0))break;if(x<0&&M[P]!==void 0&&M[P]!==Re)return v.rightReverse(N,0);P>=0&&N.setSelectionRange(P,P,"backward")},rightReverse(N,P){const M=N.value.length,x=p(M),K=x.slice(0,P+1).indexOf(Re)===-1;let V=Math.min(M,P+1);for(;V<=M;V++)if(x[V-1]===Re){P=V,P>0&&K===!0&&P--;break}if(V>M&&x[P-1]!==void 0&&x[P-1]!==Re)return v.leftReverse(N,M);N.setSelectionRange(P,P,"forward")}};function E(N){t("click",N),f=void 0}function b(N){if(t("keydown",N),lr(N)===!0||N.altKey===!0)return;const P=o.value,M=P.selectionStart,x=P.selectionEnd;if(N.shiftKey||(f=void 0),N.keyCode===37||N.keyCode===39){N.shiftKey&&f===void 0&&(f=P.selectionDirection==="forward"?M:x);const K=v[(N.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(N.preventDefault(),K(P,f===M?x:M),N.shiftKey){const V=P.selectionStart;P.setSelectionRange(Math.min(f,V),Math.max(f,V),"forward")}}else N.keyCode===8&&e.reverseFillMask!==!0&&M===x?(v.left(P,M),P.setSelectionRange(P.selectionStart,x,"backward")):N.keyCode===46&&e.reverseFillMask===!0&&M===x&&(v.rightReverse(P,x),P.setSelectionRange(M,P.selectionEnd,"forward"))}function A(N){if(N==null||N==="")return"";if(e.reverseFillMask===!0)return I(N);const P=i;let M=0,x="";for(let K=0;K<P.length;K++){const V=N[M],ne=P[K];if(typeof ne=="string")x+=ne,V===ne&&M++;else if(V!==void 0&&ne.regex.test(V))x+=ne.transform!==void 0?ne.transform(V):V,M++;else return x}return x}function I(N){const P=i,M=r.indexOf(Re);let x=N.length-1,K="";for(let V=P.length-1;V>=0&&x!==-1;V--){const ne=P[V];let Y=N[x];if(typeof ne=="string")K=ne+K,Y===ne&&x--;else if(Y!==void 0&&ne.regex.test(Y))do K=(ne.transform!==void 0?ne.transform(Y):Y)+K,x--,Y=N[x];while(M===V&&Y!==void 0&&ne.regex.test(Y));else return K}return K}function T(N){return typeof N!="string"||s===void 0?typeof N=="number"?s(""+N):N:s(N)}function B(N){return a.length-N.length<=0?N:e.reverseFillMask===!0&&N.length!==0?a.slice(0,-N.length)+N:N+a.slice(N.length)}return{innerValue:c,hasMask:d,moveCursorForPaste:g,updateMaskValue:_,onMaskedKeydown:b,onMaskedClick:E}}function Am(e,t){function n(){const o=e.modelValue;try{const r="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(o)===o&&("length"in o?Array.from(o):[o]).forEach(a=>{r.items.add(a)}),{files:r.files}}catch{return{files:void 0}}}return l.computed(()=>{if(e.type==="file")return n()})}const wi=Ee({name:"QInput",inheritAttrs:!1,props:{...So,...Tm,...Ir,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...yr,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:n}){const{proxy:o}=l.getCurrentInstance(),{$q:r}=o,a={};let i=NaN,s,u,f=null,d;const c=l.ref(null),m=mi(e),{innerValue:h,hasMask:p,moveCursorForPaste:S,updateMaskValue:_,onMaskedKeydown:g,onMaskedClick:v}=Om(e,t,Y,c),E=Am(e),b=l.computed(()=>$n(h.value)),A=hi(V),I=Er({changeEvent:!0}),T=l.computed(()=>e.type==="textarea"||e.autogrow===!0),B=l.computed(()=>T.value===!0||["text","search","url","tel","password"].includes(e.type)),N=l.computed(()=>{const w={...I.splitAttrs.listeners.value,onInput:V,onPaste:K,onChange:H,onBlur:Q,onFocus:Ot};return w.onCompositionstart=w.onCompositionupdate=w.onCompositionend=A,p.value===!0&&(w.onKeydown=g,w.onClick=v),e.autogrow===!0&&(w.onAnimationend=ne),w}),P=l.computed(()=>{const w={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:m.value,...I.splitAttrs.attributes.value,id:I.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return T.value===!1&&(w.type=e.type),e.autogrow===!0&&(w.rows=1),w});l.watch(()=>e.type,()=>{c.value&&(c.value.value=e.modelValue)}),l.watch(()=>e.modelValue,w=>{if(p.value===!0){if(u===!0&&(u=!1,String(w)===i))return;_(w)}else h.value!==w&&(h.value=w,e.type==="number"&&a.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete a.value));e.autogrow===!0&&l.nextTick($)}),l.watch(()=>e.autogrow,w=>{w===!0?l.nextTick($):c.value!==null&&n.rows>0&&(c.value.style.height="auto")}),l.watch(()=>e.dense,()=>{e.autogrow===!0&&l.nextTick($)});function M(){Eo(()=>{const w=document.activeElement;c.value!==null&&c.value!==w&&(w===null||w.id!==I.targetUid.value)&&c.value.focus({preventScroll:!0})})}function x(){c.value!==null&&c.value.select()}function K(w){if(p.value===!0&&e.reverseFillMask!==!0){const j=w.target;S(j,j.selectionStart,j.selectionEnd)}t("paste",w)}function V(w){if(!w||!w.target)return;if(e.type==="file"){t("update:modelValue",w.target.files);return}const j=w.target.value;if(w.target.qComposing===!0){a.value=j;return}if(p.value===!0)_(j,!1,w.inputType);else if(Y(j),B.value===!0&&w.target===document.activeElement){const{selectionStart:re,selectionEnd:se}=w.target;re!==void 0&&se!==void 0&&l.nextTick(()=>{w.target===document.activeElement&&j.indexOf(w.target.value)===0&&w.target.setSelectionRange(re,se)})}e.autogrow===!0&&$()}function ne(w){t("animationend",w),$()}function Y(w,j){d=()=>{f=null,e.type!=="number"&&a.hasOwnProperty("value")===!0&&delete a.value,e.modelValue!==w&&i!==w&&(i=w,j===!0&&(u=!0),t("update:modelValue",w),l.nextTick(()=>{i===w&&(i=NaN)})),d=void 0},e.type==="number"&&(s=!0,a.value=w),e.debounce!==void 0?(f!==null&&clearTimeout(f),a.value=w,f=setTimeout(d,e.debounce)):d()}function $(){requestAnimationFrame(()=>{const w=c.value;if(w!==null){const j=w.parentNode.style,{scrollTop:re}=w,{overflowY:se,maxHeight:U}=r.platform.is.firefox===!0?{}:window.getComputedStyle(w),G=se!==void 0&&se!=="scroll";G===!0&&(w.style.overflowY="hidden"),j.marginBottom=w.scrollHeight-1+"px",w.style.height="1px",w.style.height=w.scrollHeight+"px",G===!0&&(w.style.overflowY=parseInt(U,10)<w.scrollHeight?"auto":"hidden"),j.marginBottom="",w.scrollTop=re}})}function H(w){A(w),f!==null&&(clearTimeout(f),f=null),d!==void 0&&d(),t("change",w.target.value)}function Q(w){w!==void 0&&Ot(w),f!==null&&(clearTimeout(f),f=null),d!==void 0&&d(),s=!1,u=!1,delete a.value,e.type!=="file"&&setTimeout(()=>{c.value!==null&&(c.value.value=h.value!==void 0?h.value:"")})}function oe(){return a.hasOwnProperty("value")===!0?a.value:h.value!==void 0?h.value:""}l.onBeforeUnmount(()=>{Q()}),l.onMounted(()=>{e.autogrow===!0&&$()}),Object.assign(I,{innerValue:h,fieldClass:l.computed(()=>`q-${T.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:l.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:c,emitValue:Y,hasValue:b,floatingLabel:l.computed(()=>b.value===!0&&(e.type!=="number"||isNaN(h.value)===!1)||$n(e.displayValue)),getControl:()=>l.h(T.value===!0?"textarea":"input",{ref:c,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...P.value,...N.value,...e.type!=="file"?{value:oe()}:E.value}),getShadowControl:()=>l.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(T.value===!0?"":" text-no-wrap")},[l.h("span",{class:"invisible"},oe()),l.h("span",e.shadowText)])});const O=Sr(I);return Object.assign(o,{focus:M,select:x,getNativeElement:()=>c.value}),st(o,"nativeEl",()=>c.value),O}});function Wn(e,t=new WeakMap){if(Object(e)!==e)return e;if(t.has(e))return t.get(e);const n=e instanceof Date?new Date(e):e instanceof RegExp?new RegExp(e.source,e.flags):e instanceof Set?new Set:e instanceof Map?new Map:typeof e.constructor!="function"?Object.create(null):e.prototype!==void 0&&typeof e.prototype.constructor=="function"?e:new e.constructor;if(typeof e.constructor=="function"&&typeof e.valueOf=="function"){const o=e.valueOf();if(Object(o)!==o){const r=new e.constructor(o);return t.set(e,r),r}}return t.set(e,n),e instanceof Set?e.forEach(o=>{n.add(Wn(o,t))}):e instanceof Map&&e.forEach((o,r)=>{n.set(r,Wn(o,t))}),Object.assign(n,...Object.keys(e).map(o=>({[o]:Wn(e[o],t)})))}const Im=Ee({name:"QPopupEdit",props:{modelValue:{required:!0},title:String,buttons:Boolean,labelSet:String,labelCancel:String,color:{type:String,default:"primary"},validate:{type:Function,default:()=>!0},autoSave:Boolean,cover:{type:Boolean,default:!0},disable:Boolean},emits:["update:modelValue","save","cancel","beforeShow","show","beforeHide","hide"],setup(e,{slots:t,emit:n}){const{proxy:o}=l.getCurrentInstance(),{$q:r}=o,a=l.ref(null),i=l.ref(""),s=l.ref("");let u=!1;const f=l.computed(()=>st({initialValue:i.value,validate:e.validate,set:d,cancel:c,updatePosition:m},"value",()=>s.value,b=>{s.value=b}));function d(){e.validate(s.value)!==!1&&(h()===!0&&(n("save",s.value,i.value),n("update:modelValue",s.value)),p())}function c(){h()===!0&&n("cancel",s.value,i.value),p()}function m(){l.nextTick(()=>{a.value.updatePosition()})}function h(){return Nt(s.value,i.value)===!1}function p(){u=!0,a.value.hide()}function S(){u=!1,i.value=Wn(e.modelValue),s.value=Wn(e.modelValue),n("beforeShow")}function _(){n("show")}function g(){u===!1&&h()===!0&&(e.autoSave===!0&&e.validate(s.value)===!0?(n("save",s.value,i.value),n("update:modelValue",s.value)):n("cancel",s.value,i.value)),n("beforeHide")}function v(){n("hide")}function E(){const b=t.default!==void 0?[].concat(t.default(f.value)):[];return e.title&&b.unshift(l.h("div",{class:"q-dialog__title q-mt-sm q-mb-sm"},e.title)),e.buttons===!0&&b.push(l.h("div",{class:"q-popup-edit__buttons row justify-center no-wrap"},[l.h(Lt,{flat:!0,color:e.color,label:e.labelCancel||r.lang.label.cancel,onClick:c}),l.h(Lt,{flat:!0,color:e.color,label:e.labelSet||r.lang.label.set,onClick:d})])),b}return Object.assign(o,{set:d,cancel:c,show(b){a.value!==null&&a.value.show(b)},hide(b){a.value!==null&&a.value.hide(b)},updatePosition:m}),()=>{if(e.disable!==!0)return l.h(ai,{ref:a,class:"q-popup-edit",cover:e.cover,onBeforeShow:S,onShow:_,onBeforeHide:g,onHide:v,onEscapeKey:c},E)}}}),xm={name:"PopupEdit",props:{model:{type:[String,Number,Boolean,Array,Object],required:!0},label:{type:String,required:!0},dataCy:{type:String,required:!0},mask:{type:String,required:!0},inputType:{type:String,required:!0},inputMaxLength:{type:Number,required:!0},popupEditNumberOptions:{type:Array,default:()=>[]},showInputPopupEdit:{type:Boolean,required:!0},showSelectNumberOptions:{type:Boolean,required:!1}},emits:["popupEditUpdated","popupEditEmit","save"],data(){return{modelData:this.model}},methods:{validate(e){this.$refs.inputField.validate()?this.$emit("save",e):this.$q.notify({type:"negative",message:"Value not accepted",position:"bottom"})}}};function Nm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(Im,{modelValue:r.modelData,"onUpdate:modelValue":t[1]||(t[1]=i=>r.modelData=i),buttons:"","label-set":e.$t("table.confirm"),"label-cancel":e.$t("table.cancel"),onSave:a.validate,onCancel:()=>{}},{default:l.withCtx(i=>[n.showInputPopupEdit?(l.openBlock(),l.createBlock(wi,{key:0,ref:"inputField",modelValue:i.value,"onUpdate:modelValue":s=>i.value=s,"data-cy":n.dataCy,label:n.label,type:n.inputType,mask:n.mask,autogrow:n.inputType==="textarea",rules:[s=>s&&s.length>0||e.$t("form.rules.emptyField"),s=>s&&s.length<=n.inputMaxLength||e.$t("form.rules.exceedCharactersTypeList",[n.inputMaxLength])],dense:"",autofocus:"",onKeyup:t[0]||(t[0]=l.withKeys(l.withModifiers(()=>{},["stop"]),["enter"]))},null,8,["modelValue","onUpdate:modelValue","data-cy","label","type","mask","autogrow","rules"])):l.createCommentVNode("",!0),n.showSelectNumberOptions?(l.openBlock(),l.createBlock(Nr,{key:1,ref:"selectField",modelValue:i.value,"onUpdate:modelValue":s=>i.value=s,"data-cy":n.dataCy,dense:"",options:n.popupEditNumberOptions},null,8,["modelValue","onUpdate:modelValue","data-cy","options"])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","label-set","label-cancel","onSave"])}const Ti=lt(xm,[["render",Nm]]),Pm={name:"BasicCheckBox",props:{model:{type:Boolean,required:!0},tableProps:{type:Object,required:!0},dataCy:{type:String,required:!0}},emits:["checkBoxEmit"],data(){return{tablePropsData:this.tableProps,modelData:this.model}}};function Lm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(Ut,{modelValue:r.modelData,"onUpdate:modelValue":[t[0]||(t[0]=i=>r.modelData=i),t[1]||(t[1]=i=>{e.$emit("checkBoxEmit",i)})],"data-cy":n.dataCy},null,8,["modelValue","data-cy"])}const Oi=lt(Pm,[["render",Lm]]),Dm={name:"CustomizedCheckBox",props:{model:{type:Boolean,required:!0},tableProps:{type:Object,required:!0},dataCy:{type:String,required:!0},checkBoxColor:{type:String,required:!0},checkBoxIconSize:{type:String,required:!0},checkedIcon:{type:String,required:!0},uncheckedIcon:{type:String,required:!0}},emits:["checkBoxEmit"],data(){return{tablePropsData:this.tableProps,modelData:this.model}}};function Vm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(Ut,{modelValue:r.modelData,"onUpdate:modelValue":[t[0]||(t[0]=i=>r.modelData=i),t[1]||(t[1]=i=>{e.$emit("checkBoxEmit",i)})],"data-cy":n.dataCy,size:n.checkBoxIconSize,color:n.checkBoxColor,"keep-color":!0,"checked-icon":n.checkedIcon,"unchecked-icon":n.uncheckedIcon},null,8,["modelValue","data-cy","size","color","checked-icon","unchecked-icon"])}const Ai=lt(Dm,[["render",Vm]]),Rm={name:"CustomizedIcon",props:{model:{type:Boolean,required:!0},customizedIconSize:{type:String,required:!0},customizedIconName:{type:String,required:!0},customizedIconColor:{type:String,required:!0}}};function Bm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(We,{name:n.customizedIconName?n.customizedIconName:n.model?"check_circle":"cancel",color:n.customizedIconColor?n.customizedIconColor:n.model?"green":"red",size:n.customizedIconSize},null,8,["name","color","size"])}const Ii=lt(Rm,[["render",Bm]]),Fm={name:"CustomizedButton",props:{dataCy:{type:String,required:!0},btnColor:{type:String,required:!0},btnIcon:{type:String,required:!0}},emits:["onClickButton"],data:function(){return{}}};function Mm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(Lt,{"data-cy":n.dataCy,flat:"",round:"",color:n.btnColor,size:"md",onClick:t[0]||(t[0]=i=>e.$emit("onClickButton"))},{default:l.withCtx(()=>[l.createVNode(We,{name:n.btnIcon},null,8,["name"])]),_:1},8,["data-cy","color"])}const xi=lt(Fm,[["render",Mm]]),qm={name:"KTableSlotBody",components:{TablePopupEdit:Ti,BasicCheckBox:Oi,CustomizedCheckBox:Ai,CustomizedIcon:Ii,CustomizedButton:xi},props:{tableProps:{type:Object,required:!0},selectionType:{type:String,default:"none"}},emits:["onSaveValuePopupEdit","onUpdateBasicCheckboxValue","onClickButton","onUpdateCustomizedCheckboxValue"],data(){return{tablePropsData:this.tableProps}},methods:{getColumnValue(e){return!(e.showBasicCheckbox||e.showCustomizedCheckBox||e.showCustomizedIcon||e.showColumButton)}}},Um=["innerHTML"];function $m(e,t,n,o,r,a){const i=l.resolveComponent("TablePopupEdit"),s=l.resolveComponent("BasicCheckBox"),u=l.resolveComponent("CustomizedCheckBox"),f=l.resolveComponent("CustomizedIcon"),d=l.resolveComponent("CustomizedButton");return l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(n.tableProps.row.rowBgColor||"bg-main-color")},[n.selectionType!="none"?(l.openBlock(),l.createBlock(Ei,{key:0,id:n.tableProps.row.id,"auto-width":""},{default:l.withCtx(()=>[l.createVNode(Ut,{modelValue:r.tablePropsData.selected,"onUpdate:modelValue":t[0]||(t[0]=c=>r.tablePropsData.selected=c),size:"sm"},null,8,["modelValue"])]),_:1},8,["id"])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.tableProps.cols,c=>(l.openBlock(),l.createBlock(Ei,{key:c.name,class:l.normalizeClass(n.tableProps.row.rowBgColor||"bg-main-color"),props:n.tableProps,style:l.normalizeStyle(r.tablePropsData.row.tdStyle)},{default:l.withCtx(()=>[a.getColumnValue(c)?(l.openBlock(),l.createElementBlock("span",{key:0,innerHTML:n.tableProps.row[c.name]},null,8,Um)):l.createCommentVNode("",!0),c.editable?(l.openBlock(),l.createBlock(We,{key:1,name:"edit",color:"primary",size:"sm"})):l.createCommentVNode("",!0),c.editable?(l.openBlock(),l.createBlock(i,{key:2,model:r.tablePropsData.row[c.name]||"",label:c.label,"data-cy":c.popupEditDataCy+"-"+n.tableProps.row.id,"input-max-length":c.inputMaxLength||20,mask:c.popupEditMask||"","input-type":c.popupEditInputtype||"text","show-input-popup-edit":c.showInputPopupEdit||!0,"show-select-number-options":c.showSelectNumberOptions||!1,"popup-edit-number-options":c.popupEditNumberOptions||[],onSave:m=>{r.tablePropsData.row[c.name]=m,e.$emit(c.popupEditEmit,r.tablePropsData.row)}},null,8,["model","label","data-cy","input-max-length","mask","input-type","show-input-popup-edit","show-select-number-options","popup-edit-number-options","onSave"])):l.createCommentVNode("",!0),c.showBasicCheckbox?(l.openBlock(),l.createBlock(s,{key:3,"table-props":r.tablePropsData,"data-cy":c.checkBoxDataCy+"-"+n.tableProps.row.id||"",model:r.tablePropsData.row[c.name],onCheckBoxEmit:m=>{r.tablePropsData.row[c.name]=m,e.$emit(c.checkBoxEmit||"onUpdateBasicCheckboxValue",r.tablePropsData.row)}},null,8,["table-props","data-cy","model","onCheckBoxEmit"])):l.createCommentVNode("",!0),c.showCustomizedCheckBox?(l.openBlock(),l.createBlock(u,{key:4,"table-props":r.tablePropsData,"data-cy":c.checkBoxDataCy+"-"+n.tableProps.row.id||"",model:r.tablePropsData.row[c.name],"check-box-color":r.tablePropsData.row[c.name]?c.checkBoxColorCaseTrue:c.checkBoxColorCaseFalse,"check-box-icon-size":"md","checked-icon":c.checkedIcon,"unchecked-icon":c.uncheckedIcon,onCheckBoxEmit:m=>{r.tablePropsData.row[c.name]=m,e.$emit(c.checkBoxEmit||"onUpdateCustomizedCheckboxValue",r.tablePropsData.row)}},null,8,["table-props","data-cy","model","check-box-color","checked-icon","unchecked-icon","onCheckBoxEmit"])):l.createCommentVNode("",!0),c.showCustomizedIcon?(l.openBlock(),l.createBlock(f,{key:5,model:r.tablePropsData.row[c.name],"customized-icon-size":"sm","customized-icon-name":(r.tablePropsData.row[c.name]?c.customizedIconNameCaseTrue:c.customizedIconNameCaseFalse)||"","customized-icon-color":(r.tablePropsData.row[c.name]?c.customizedIconColorCaseTrue:c.customizedIconColorCaseFalse)||""},null,8,["model","customized-icon-name","customized-icon-color"])):l.createCommentVNode("",!0),c.showCustomizedButton?(l.openBlock(),l.createBlock(d,{key:6,"data-cy":c.colButtonDataCy+"-"+n.tableProps.row.id,"btn-color":c.btnColor||"primary","btn-icon":c.btnIcon||"",onOnClickButton:()=>{e.$emit("onClickButton",c.btnEmit,n.tableProps.row)}},null,8,["data-cy","btn-color","btn-icon","onOnClickButton"])):l.createCommentVNode("",!0)]),_:2},1032,["class","props","style"]))),128))],2)}const Hm=lt(qm,[["render",$m]]),zm=Ee({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=l.computed(()=>`q-card__section q-card__section--${e.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>l.h(e.tag,{class:n.value},Ve(t.default))}}),Ni=Ee({name:"QCard",props:{...ft,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=l.getCurrentInstance(),o=mt(e,n),r=l.computed(()=>"q-card"+(o.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()=>l.h(e.tag,{class:r.value},Ve(t.default))}}),jm={name:"KTableSlotGrid",components:{TablePopupEdit:Ti,BasicCheckBox:Oi,CustomizedCheckBox:Ai,CustomizedIcon:Ii,CustomizedButton:xi},props:{tableProps:{type:Object,required:!0},selectionType:{type:String,default:"none"},popupEditNumberOptions:{type:Array}},emits:["onSaveValuePopupEdit","onUpdateBasicCheckboxValue","onClickButton","onUpdateCustomizedCheckboxValue"],data(){return{tablePropsData:this.tableProps,selected:!1}},watch:{gridRowsSelected(e){this.selected=e}},mounted(){},methods:{getColumnValue(e){return!(e.showBasicCheckbox||e.showCustomizedCheckBox||e.showCustomizedIcon||e.showColumButton)}}},Km=["innerHTML"];function Wm(e,t,n,o,r,a){const i=l.resolveComponent("TablePopupEdit"),s=l.resolveComponent("BasicCheckBox"),u=l.resolveComponent("CustomizedCheckBox"),f=l.resolveComponent("CustomizedIcon"),d=l.resolveComponent("CustomizedButton");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass("q-pa-xs col-xs-12 col-sm-6 col-md-4 col-lg-3 grid-style-transition"),style:l.normalizeStyle(r.tablePropsData.selected?"transform: scale(0.95);":"")},[l.createVNode(Ni,{bordered:"",flat:"",square:"",class:l.normalizeClass(r.tablePropsData.selected?e.$q.dark.isActive?"bg-grey-9":"bg-grey-2":n.tableProps.row.rowBgColor||"bg-main-color")},{default:l.withCtx(()=>[l.createVNode(zm,null,{default:l.withCtx(()=>[n.selectionType!="none"?(l.openBlock(),l.createBlock(Ut,{key:0,modelValue:r.tablePropsData.selected,"onUpdate:modelValue":t[0]||(t[0]=c=>r.tablePropsData.selected=c),dense:""},null,8,["modelValue"])):l.createCommentVNode("",!0)]),_:1}),l.createVNode(Ca,{dense:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.tablePropsData.cols.filter(c=>c.name!=="desc"),c=>(l.openBlock(),l.createBlock(qt,{key:c.name},{default:l.withCtx(()=>[l.createVNode(Et,null,{default:l.withCtx(()=>[l.createVNode(ht,{class:"itemsFontSize ellipsis text-light-gray"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(c.label),1)]),_:2},1024)]),_:2},1024),l.createVNode(Et,{side:""},{default:l.withCtx(()=>[a.getColumnValue(c)?(l.openBlock(),l.createBlock(ht,{key:0,class:"itemsFontSize text-almost-black"},{default:l.withCtx(()=>[c.editable?(l.openBlock(),l.createBlock(We,{key:0,name:"fa-solid fa-pen-to-square",color:"primary",size:"sm"})):l.createCommentVNode("",!0),l.createElementVNode("span",{innerHTML:n.tableProps.row[c.name]},null,8,Km),l.createVNode(i,{model:r.tablePropsData.row[c.name]||"",label:c.label,"data-cy":c.popupEditDataCy+"-"+n.tableProps.row.id,"input-max-length":c.inputMaxLength||20,mask:c.popupEditMask||"","input-type":c.popupEditInputtype||"text","show-input-popup-edit":c.showInputPopupEdit||!0,"show-select-number-options":c.showSelectNumberOptions||!1,"popup-edit-number-options":c.popupEditNumberOptions||[],onSave:m=>{r.tablePropsData.row[c.name]=m,e.$emit(c.popupEditEmit,r.tablePropsData.row)}},null,8,["model","label","data-cy","input-max-length","mask","input-type","show-input-popup-edit","show-select-number-options","popup-edit-number-options","onSave"])]),_:2},1024)):l.createCommentVNode("",!0),l.createVNode(Et,null,{default:l.withCtx(()=>[c.showBasicCheckbox?(l.openBlock(),l.createBlock(s,{key:0,"table-props":r.tablePropsData,"data-cy":c.checkBoxDataCy+"-"+n.tableProps.row.id||"",model:r.tablePropsData.row[c.name],onCheckBoxEmit:m=>{r.tablePropsData.row[c.name]=m,e.$emit(c.checkBoxEmit||"onUpdateBasicCheckboxValue",r.tablePropsData.row)}},null,8,["table-props","data-cy","model","onCheckBoxEmit"])):l.createCommentVNode("",!0),c.showCustomizedCheckBox?(l.openBlock(),l.createBlock(u,{key:1,"table-props":r.tablePropsData,"data-cy":c.checkBoxDataCy+"-"+n.tableProps.row.id||"",model:r.tablePropsData.row[c.name],"check-box-color":r.tablePropsData.row[c.name]?c.checkBoxColorCaseTrue:c.checkBoxColorCaseFalse,"check-box-icon-size":"lg","checked-icon":c.checkedIcon,"unchecked-icon":c.uncheckedIcon,onCheckBoxEmit:m=>{r.tablePropsData.row[c.name]=m,e.$emit(c.checkBoxEmit||"onUpdateCustomizedCheckboxValue",r.tablePropsData.row)}},null,8,["table-props","data-cy","model","check-box-color","checked-icon","unchecked-icon","onCheckBoxEmit"])):l.createCommentVNode("",!0)]),_:2},1024),l.createVNode(Et,null,{default:l.withCtx(()=>[c.showCustomizedIcon?(l.openBlock(),l.createBlock(f,{key:0,model:r.tablePropsData.row[c.name],"table-props":r.tablePropsData,"customized-icon-size":"sm","customized-icon-name":(r.tablePropsData.row[c.name]?c.customizedIconNameCaseTrue:c.customizedIconNameCaseFalse)||"","customized-icon-color":(r.tablePropsData.row[c.name]?c.customizedIconColorCaseTrue:c.customizedIconColorCaseFalse)||""},null,8,["model","table-props","customized-icon-name","customized-icon-color"])):l.createCommentVNode("",!0)]),_:2},1024),l.createVNode(Et,null,{default:l.withCtx(()=>[c.showCustomizedButton?(l.openBlock(),l.createBlock(d,{key:0,"data-cy":c.colButtonDataCy+"-"+n.tableProps.row.id,"btn-color":c.btnColor||"primary","btn-icon":c.btnIcon||"",onOnClickButton:()=>{e.$emit("onClickButton",c.btnEmit,n.tableProps.row)}},null,8,["data-cy","btn-color","btn-icon","onOnClickButton"])):l.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1},8,["class"])],4)}const Gm=lt(jm,[["render",Wm]]),Ym={name:"TableFilter",props:{store:{type:Object,required:!0}},data(){return{localStore:this.store}},mounted(){this.cleanTableFilter()},methods:{inputFocus(){setTimeout(()=>{this.$refs.filterRef.focus()},10)},cleanTableFilter(){this.localStore.cleanTableFilter()}}};function Qm(e,t,n,o,r,a){return l.openBlock(),l.createBlock(wi,{ref:"filterRef",modelValue:r.localStore.filterValue,"onUpdate:modelValue":[t[0]||(t[0]=i=>r.localStore.filterValue=i),t[1]||(t[1]=i=>{r.localStore.setFilterValue(i)})],borderless:"",dense:"",debounce:"300",class:"table-filter auto-width",placeholder:"Search",outlined:""},{append:l.withCtx(()=>[r.localStore.filterValue===""?(l.openBlock(),l.createBlock(We,{key:0,name:"search",color:"black"})):(l.openBlock(),l.createBlock(We,{key:1,name:"clear",class:"cursor-pointer",onClick:a.cleanTableFilter},null,8,["onClick"]))]),_:1},8,["modelValue"])}const Xm=lt(Ym,[["render",Qm]]),Pi={sortMethod(e,t,n,o=[]){const r=[...e];return t&&(o.includes(t)?this.sortDates(t,n,r):r.sort((a,i)=>{const s=n?i:a,u=n?a:i;return s[t]>u[t]?1:s[t]<u[t]?-1:0})),r},sortDates(e,t,n){n.sort(function(o,r){const a=o[e],i=r[e];let s=t?i:a,u=t?a:i;return s=s.split("/").reverse().join("-"),u=u.split("/").reverse().join("-"),s.localeCompare(u)})}},Zm=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],Jm=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],Be=Ee({name:"QSkeleton",props:{...ft,tag:{type:String,default:"div"},type:{type:String,validator:e=>Zm.includes(e),default:"rect"},animation:{type:String,validator:e=>Jm.includes(e),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(e,{slots:t}){const n=l.getCurrentInstance(),o=mt(e,n.proxy.$q),r=l.computed(()=>{const i=e.size!==void 0?[e.size,e.size]:[e.width,e.height];return{"--q-skeleton-speed":`${e.animationSpeed}ms`,width:i[0],height:i[1]}}),a=l.computed(()=>`q-skeleton q-skeleton--${o.value===!0?"dark":"light"} q-skeleton--type-${e.type}`+(e.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${e.animation}`:"")+(e.square===!0?" q-skeleton--square":"")+(e.bordered===!0?" q-skeleton--bordered":""));return()=>l.h(e.tag,{class:a.value,style:r.value},Ve(t.default))}}),eh={name:"TableSkeleton",properties:{showSkeleton:{type:Boolean,default:!1}}},th={class:"text-left",style:{width:"150px"}},nh={class:"text-right"},oh={class:"text-right"},rh={class:"text-right"},lh={class:"text-right"},ah={class:"text-right"},ih={class:"text-left"},sh={class:"text-right"},uh={class:"text-right"},ch={class:"text-right"},dh={class:"text-right"},fh={class:"text-right"};function mh(e,t,n,o,r,a){return l.openBlock(),l.createElementBlock("div",null,[l.createVNode(ka,null,{default:l.withCtx(()=>[l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",th,[l.createVNode(Be,{type:"text"})]),l.createElementVNode("th",nh,[l.createVNode(Be,{type:"text"})]),l.createElementVNode("th",oh,[l.createVNode(Be,{type:"text"})]),l.createElementVNode("th",rh,[l.createVNode(Be,{type:"text"})]),l.createElementVNode("th",lh,[l.createVNode(Be,{type:"text"})]),l.createElementVNode("th",ah,[l.createVNode(Be,{type:"text"})])])]),l.createElementVNode("tbody",null,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(10,i=>l.createElementVNode("tr",{key:i},[l.createElementVNode("td",ih,[l.createVNode(Be,{type:"text",width:"85px"})]),l.createElementVNode("td",sh,[l.createVNode(Be,{type:"text",width:"50px"})]),l.createElementVNode("td",uh,[l.createVNode(Be,{type:"text",width:"35px"})]),l.createElementVNode("td",ch,[l.createVNode(Be,{type:"text",width:"65px"})]),l.createElementVNode("td",dh,[l.createVNode(Be,{type:"text",width:"25px"})]),l.createElementVNode("td",fh,[l.createVNode(Be,{type:"text",width:"85px"})])])),64))])]),_:1})])}const hh=lt(eh,[["render",mh]]),gh={name:"CardListSkeleton"};function _h(e,t,n,o,r,a){return l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(2,i=>l.createVNode(qt,{key:i},{default:l.withCtx(()=>[l.createVNode(Ni,{style:{width:"100%"}},{default:l.withCtx(()=>[l.createVNode(qt,null,{default:l.withCtx(()=>[l.createVNode(Et,null,{default:l.withCtx(()=>[l.createVNode(ht,null,{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"60%"})]),_:1}),l.createVNode(ht,{caption:""},{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"60%"})]),_:1})]),_:1})]),_:1}),l.createVNode(qt,null,{default:l.withCtx(()=>[l.createVNode(Et,null,{default:l.withCtx(()=>[l.createVNode(ht,null,{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"70%"})]),_:1}),l.createVNode(ht,{caption:""},{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"70%"})]),_:1})]),_:1})]),_:1}),l.createVNode(qt,null,{default:l.withCtx(()=>[l.createVNode(Et,null,{default:l.withCtx(()=>[l.createVNode(ht,null,{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"80%"})]),_:1}),l.createVNode(ht,{caption:""},{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"80%"})]),_:1})]),_:1})]),_:1}),l.createVNode(qt,null,{default:l.withCtx(()=>[l.createVNode(Et,null,{default:l.withCtx(()=>[l.createVNode(ht,null,{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"90%"})]),_:1}),l.createVNode(ht,{caption:""},{default:l.withCtx(()=>[l.createVNode(Be,{type:"text",width:"90%"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:2},1024)),64))])}const ph=lt(gh,[["render",_h]]),vh=l.defineComponent({components:{TableSlotHeader:Em,TableColumnsSelector:km,TableSlotBody:Hm,TableSlotGrid:Gm,TableFilter:Xm,TableSkeleton:hh,CardListSkeleton:ph},props:{columns:{type:Array,required:!0},rows:{type:Array,required:!0},visibleColumns:{type:Array,required:!0},filterMethod:{type:Function,default:function(){}},filterComputed:{type:Object,default:()=>{}},sortDataValues:{type:Array,default:()=>[""]},selectionType:{type:String,default:"none"},rowKey:{type:String,default:"id"},tableStyle:{type:String,default:""},popupEditNumberOptions:{type:Array,default:()=>[]},smallDevice:{type:Boolean,required:!0},store:{type:Object,required:!0},tableId:{type:String,default:""},hideColumnsSelector:{type:Boolean,default:!1},hideFilter:{type:Boolean,default:!1},showSkeleton:{type:Boolean}},emits:["onSelectVisibleColumns","onUpdateBasicCheckboxValue","onUpdateCustomizedCheckboxValue","onSaveValuePopupEdit","onClickButton","storeUpdated","deleteItem","openModalWithTable","setItemNotFound","onRowClick"],data(){return{selected:[],filter:"",visibleColumnsData:this.visibleColumns,rowsData:[],gridRowsSelected:!1,selectedRows:[],showColumnsSelector:!1,showSearch:!1,loading:!1,storeData:this.store,forceRender:!1}},computed:{getColumnsSelectorVisibility(){return!this.smallDevice||this.showColumnsSelector},getTableInputSearchVisibility(){return!this.smallDevice||this.showSearch},showGridHeader(){return this.selectionType==="multiple"},getTableSkeletonVisibility(){return!this.smallDevice&&this.showSkeleton},getGridSkeletonVisibility(){return this.smallDevice&&this.showSkeleton}},watch:{rows(e){this.rowsData=e}},mounted(){},methods:{getSelectedString(e){const t=e;if(t===0)return"";const n=t>1?"records":"record";return`${t} ${n} selected`},onSelectVisibleColumns(e){this.$emit("onSelectVisibleColumns",e)},onSaveValuePopupEdit(e){this.$emit("onSaveValuePopupEdit",e)},onUpdateBasicCheckboxValue(e){this.$emit("onUpdateBasicCheckboxValue",e)},onClickButton(e,t){this.$emit(e,t)},onRowClick(e){this.$emit("onRowClick",e)},deleteItem(e){this.$emit("deleteItem",e)},onUpdateCustomizedCheckboxValue(e){this.$emit("onUpdateCustomizedCheckboxValue",e)},clearTableSelection(){this.$refs.myTable.clearSelection()},toggleSearchVisibility(e){this.showSearch=!this.showSearch,e.disableScannerButtons=!1,e.lastFilterValue="",e.valueInputFilterTable=""},toogleColumnsSelectorVisibility(){this.showColumnsSelector=!this.showColumnsSelector},filterInputFocus(){setTimeout(()=>{this.$refs.filterInput&&this.$refs.filterInput.inputFocus()},10)},toogleLoading(){this.loading=!this.loading},sortMethod(e,t,n){const r=Pi.sortMethod(e,t,n,this.sortDataValues).slice(0,e.length);return this.store.valueInputFilterTable===""?r:Pi.sortMethod(e,t,n,this.sortDataValues)}}});function bh(e,t,n,o,r,a){const i=l.resolveComponent("TableFilter"),s=l.resolveComponent("TableColumnsSelector"),u=l.resolveComponent("TableSlotHeader"),f=l.resolveComponent("TableSlotBody"),d=l.resolveComponent("TableSlotGrid"),c=l.resolveComponent("TableSkeleton"),m=l.resolveComponent("CardListSkeleton");return l.openBlock(),l.createElementBlock("div",null,[e.showSkeleton?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(pm,{key:0,ref:"myTable",selected:e.selected,"onUpdate:selected":t[0]||(t[0]=h=>e.selected=h),class:"my-table",grid:e.smallDevice,style:l.normalizeStyle(e.tableStyle),flat:"",bordered:"",rows:e.rowsData,columns:e.columns,"row-key":e.rowKey,"rows-per-page-options":[0],selection:e.selectionType,"visible-columns":e.visibleColumns,"table-class":"text-grey-9","table-header-class":"main-color",filter:e.filterComputed,"filter-method":e.filterMethod,"sort-method":e.sortMethod,separator:"horizontal","binary-state-sort":"","selected-rows-label":e.getSelectedString,loading:e.loading,"pagination.sync":"0","grid-header":e.showGridHeader},{"top-right":l.withCtx(h=>[l.createVNode(Sa),e.getTableInputSearchVisibility&&!e.hideFilter?(l.openBlock(),l.createBlock(i,{key:0,ref:"filterInput",class:"q-pl-xs","table-props":h,store:e.store,onInputFocus:e.filterInputFocus},null,8,["table-props","store","onInputFocus"])):l.createCommentVNode("",!0),e.getColumnsSelectorVisibility&&!e.hideColumnsSelector?(l.openBlock(),l.createBlock(s,{key:1,class:"q-pl-xs","table-props":h,columns:e.columns,"visible-columns":e.visibleColumns,onOnSelectVisibleColumns:e.onSelectVisibleColumns},null,8,["table-props","columns","visible-columns","onOnSelectVisibleColumns"])):l.createCommentVNode("",!0)]),header:l.withCtx(h=>[l.createVNode(u,{"table-props":h,"selection-type":e.selectionType,"small-device":e.smallDevice},null,8,["table-props","selection-type","small-device"])]),body:l.withCtx(h=>[e.showSkeleton?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(f,{key:0,"table-props":h,"selection-type":e.selectionType,onOnUpdateBasicCheckboxValue:e.onUpdateBasicCheckboxValue,onOnUpdateCustomizedCheckboxValue:e.onUpdateCustomizedCheckboxValue,onOnSaveValuePopupEdit:e.onSaveValuePopupEdit,onOnClickButton:e.onClickButton,onClick:p=>e.onRowClick(h.row)},null,8,["table-props","selection-type","onOnUpdateBasicCheckboxValue","onOnUpdateCustomizedCheckboxValue","onOnSaveValuePopupEdit","onOnClickButton","onClick"]))]),item:l.withCtx(h=>[l.createVNode(d,{"table-props":h,"selection-type":e.selectionType,"popup-edit-number-options":e.popupEditNumberOptions,onOnUpdateCustomizedCheckboxValue:e.onUpdateCustomizedCheckboxValue,onOnUpdateBasicCheckboxValue:e.onUpdateBasicCheckboxValue,onOnSaveValuePopupEdit:e.onSaveValuePopupEdit,onOnClickButton:e.onClickButton,onClick:p=>e.onRowClick(h.row)},null,8,["table-props","selection-type","popup-edit-number-options","onOnUpdateCustomizedCheckboxValue","onOnUpdateBasicCheckboxValue","onOnSaveValuePopupEdit","onOnClickButton","onClick"])]),_:1},8,["selected","grid","style","rows","columns","row-key","selection","visible-columns","filter","filter-method","sort-method","selected-rows-label","loading","grid-header"])),e.getTableSkeletonVisibility?(l.openBlock(),l.createBlock(c,{key:1,id:"tableSkeleton"})):l.createCommentVNode("",!0),e.getGridSkeletonVisibility?(l.openBlock(),l.createBlock(m,{key:2,id:"cardListSkeleton"})):l.createCommentVNode("",!0)])}const Li=lt(vh,[["render",bh]]),yh={install(e){Ea(e,"MyTable",Li)}};var Eh=Object.create,Di=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyNames,Ch=Object.getPrototypeOf,kh=Object.prototype.hasOwnProperty,wh=(e,t)=>function(){return e&&(t=(0,e[Pr(e)[0]])(e=0)),t},Th=(e,t)=>function(){return t||(0,e[Pr(e)[0]])((t={exports:{}}).exports,t),t.exports},Oh=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Pr(t))!kh.call(e,r)&&r!==n&&Di(e,r,{get:()=>t[r],enumerable:!(o=Sh(t,r))||o.enumerable});return e},Ah=(e,t,n)=>(n=e!=null?Eh(Ch(e)):{},Oh(Di(n,"default",{value:e,enumerable:!0}),e)),Gn=wh({"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/esm_shims.js"(){}}),Ih=Th({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){Gn(),t.exports=o;function n(a){return a instanceof Buffer?Buffer.from(a):new a.constructor(a.buffer.slice(),a.byteOffset,a.length)}function o(a){if(a=a||{},a.circles)return r(a);const i=new Map;if(i.set(Date,c=>new Date(c)),i.set(Map,(c,m)=>new Map(u(Array.from(c),m))),i.set(Set,(c,m)=>new Set(u(Array.from(c),m))),a.constructorHandlers)for(const c of a.constructorHandlers)i.set(c[0],c[1]);let s=null;return a.proto?d:f;function u(c,m){const h=Object.keys(c),p=new Array(h.length);for(let S=0;S<h.length;S++){const _=h[S],g=c[_];typeof g!="object"||g===null?p[_]=g:g.constructor!==Object&&(s=i.get(g.constructor))?p[_]=s(g,m):ArrayBuffer.isView(g)?p[_]=n(g):p[_]=m(g)}return p}function f(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return u(c,f);if(c.constructor!==Object&&(s=i.get(c.constructor)))return s(c,f);const m={};for(const h in c){if(Object.hasOwnProperty.call(c,h)===!1)continue;const p=c[h];typeof p!="object"||p===null?m[h]=p:p.constructor!==Object&&(s=i.get(p.constructor))?m[h]=s(p,f):ArrayBuffer.isView(p)?m[h]=n(p):m[h]=f(p)}return m}function d(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return u(c,d);if(c.constructor!==Object&&(s=i.get(c.constructor)))return s(c,d);const m={};for(const h in c){const p=c[h];typeof p!="object"||p===null?m[h]=p:p.constructor!==Object&&(s=i.get(p.constructor))?m[h]=s(p,d):ArrayBuffer.isView(p)?m[h]=n(p):m[h]=d(p)}return m}}function r(a){const i=[],s=[],u=new Map;if(u.set(Date,h=>new Date(h)),u.set(Map,(h,p)=>new Map(d(Array.from(h),p))),u.set(Set,(h,p)=>new Set(d(Array.from(h),p))),a.constructorHandlers)for(const h of a.constructorHandlers)u.set(h[0],h[1]);let f=null;return a.proto?m:c;function d(h,p){const S=Object.keys(h),_=new Array(S.length);for(let g=0;g<S.length;g++){const v=S[g],E=h[v];if(typeof E!="object"||E===null)_[v]=E;else if(E.constructor!==Object&&(f=u.get(E.constructor)))_[v]=f(E,p);else if(ArrayBuffer.isView(E))_[v]=n(E);else{const b=i.indexOf(E);b!==-1?_[v]=s[b]:_[v]=p(E)}}return _}function c(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return d(h,c);if(h.constructor!==Object&&(f=u.get(h.constructor)))return f(h,c);const p={};i.push(h),s.push(p);for(const S in h){if(Object.hasOwnProperty.call(h,S)===!1)continue;const _=h[S];if(typeof _!="object"||_===null)p[S]=_;else if(_.constructor!==Object&&(f=u.get(_.constructor)))p[S]=f(_,c);else if(ArrayBuffer.isView(_))p[S]=n(_);else{const g=i.indexOf(_);g!==-1?p[S]=s[g]:p[S]=c(_)}}return i.pop(),s.pop(),p}function m(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return d(h,m);if(h.constructor!==Object&&(f=u.get(h.constructor)))return f(h,m);const p={};i.push(h),s.push(p);for(const S in h){const _=h[S];if(typeof _!="object"||_===null)p[S]=_;else if(_.constructor!==Object&&(f=u.get(_.constructor)))p[S]=f(_,m);else if(ArrayBuffer.isView(_))p[S]=n(_);else{const g=i.indexOf(_);g!==-1?p[S]=s[g]:p[S]=m(_)}}return i.pop(),s.pop(),p}}}});Gn(),Gn(),Gn();var Vi=typeof navigator<"u",te=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof te.chrome<"u"&&te.chrome.devtools,Vi&&(te.self,te.top);var Ri;typeof navigator<"u"&&((Ri=navigator.userAgent)==null||Ri.toLowerCase().includes("electron")),Gn();var xh=Ah(Ih()),Nh=/(?:^|[-_/])(\w)/g;function Ph(e,t){return t?t.toUpperCase():""}function Lh(e){return e&&`${e}`.replace(Nh,Ph)}function Dh(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const o=n.lastIndexOf("/"),r=n.substring(o+1);{const a=r.lastIndexOf(t);return r.substring(0,a)}}var Bi=(0,xh.default)({circles:!0});const Vh={trailing:!0};function bn(e,t=25,n={}){if(n={...Vh,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let o,r,a=[],i,s;const u=(f,d)=>(i=Rh(e,f,d),i.finally(()=>{if(i=null,n.trailing&&s&&!r){const c=u(f,s);return s=null,c}}),i);return function(...f){return i?(n.trailing&&(s=f),i):new Promise(d=>{const c=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const m=n.leading?o:u(this,f);for(const h of a)h(m);a=[]},t),c?(o=u(this,f),d(o)):a.push(d)})}}async function Rh(e,t,n){return await e.apply(t,n)}function Lr(e,t={},n){for(const o in e){const r=e[o],a=n?`${n}:${o}`:o;typeof r=="object"&&r!==null?Lr(r,t,a):typeof r=="function"&&(t[a]=r)}return t}const Bh={run:e=>e()},Fh=()=>Bh,Fi=typeof console.createTask<"u"?console.createTask:Fh;function Mh(e,t){const n=t.shift(),o=Fi(n);return e.reduce((r,a)=>r.then(()=>o.run(()=>a(...t))),Promise.resolve())}function qh(e,t){const n=t.shift(),o=Fi(n);return Promise.all(e.map(r=>o.run(()=>r(...t))))}function Dr(e,t){for(const n of[...e])n(t)}class Uh{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,o={}){if(!t||typeof n!="function")return()=>{};const r=t;let a;for(;this._deprecatedHooks[t];)a=this._deprecatedHooks[t],t=a.to;if(a&&!o.allowDeprecated){let i=a.message;i||(i=`${r} hook has been deprecated`+(a.to?`, please use ${a.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let o,r=(...a)=>(typeof o=="function"&&o(),o=void 0,r=void 0,n(...a));return o=this.hook(t,r),o}removeHook(t,n){if(this._hooks[t]){const o=this._hooks[t].indexOf(n);o!==-1&&this._hooks[t].splice(o,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const o=this._hooks[t]||[];delete this._hooks[t];for(const r of o)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Lr(t),o=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of o.splice(0,o.length))r()}}removeHooks(t){const n=Lr(t);for(const o in n)this.removeHook(o,n[o])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Mh,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(qh,t,...n)}callHookWith(t,n,...o){const r=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&&Dr(this._before,r);const a=t(n in this._hooks?[...this._hooks[n]]:[],o);return a instanceof Promise?a.finally(()=>{this._after&&r&&Dr(this._after,r)}):(this._after&&r&&Dr(this._after,r),a)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Mi(){return new Uh}var $h=Object.create,qi=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,Vr=Object.getOwnPropertyNames,zh=Object.getPrototypeOf,jh=Object.prototype.hasOwnProperty,Kh=(e,t)=>function(){return e&&(t=(0,e[Vr(e)[0]])(e=0)),t},Ui=(e,t)=>function(){return t||(0,e[Vr(e)[0]])((t={exports:{}}).exports,t),t.exports},Wh=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Vr(t))!jh.call(e,r)&&r!==n&&qi(e,r,{get:()=>t[r],enumerable:!(o=Hh(t,r))||o.enumerable});return e},Gh=(e,t,n)=>(n=e!=null?$h(zh(e)):{},Wh(qi(n,"default",{value:e,enumerable:!0}),e)),F=Kh({"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/esm_shims.js"(){}}),Yh=Ui({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){F(),function(n){var o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},r=["်","ް"],a={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},s={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},u=[";","?",":","@","&","=","+","$",",","/"].join(""),f=[";","?",":","@","&","=","+","$",","].join(""),d=[".","!","~","*","'","(",")"].join(""),c=function(_,g){var v="-",E="",b="",A=!0,I={},T,B,N,P,M,x,K,V,ne,Y,$,H,Q,oe,O="";if(typeof _!="string")return"";if(typeof g=="string"&&(v=g),K=s.en,V=i.en,typeof g=="object"){T=g.maintainCase||!1,I=g.custom&&typeof g.custom=="object"?g.custom:I,N=+g.truncate>1&&g.truncate||!1,P=g.uric||!1,M=g.uricNoSlash||!1,x=g.mark||!1,A=!(g.symbols===!1||g.lang===!1),v=g.separator||v,P&&(O+=u),M&&(O+=f),x&&(O+=d),K=g.lang&&s[g.lang]&&A?s[g.lang]:A?s.en:{},V=g.lang&&i[g.lang]?i[g.lang]:g.lang===!1||g.lang===!0?{}:i.en,g.titleCase&&typeof g.titleCase.length=="number"&&Array.prototype.toString.call(g.titleCase)?(g.titleCase.forEach(function(w){I[w+""]=w+""}),B=!0):B=!!g.titleCase,g.custom&&typeof g.custom.length=="number"&&Array.prototype.toString.call(g.custom)&&g.custom.forEach(function(w){I[w+""]=w+""}),Object.keys(I).forEach(function(w){var j;w.length>1?j=new RegExp("\\b"+h(w)+"\\b","gi"):j=new RegExp(h(w),"gi"),_=_.replace(j,I[w])});for($ in I)O+=$}for(O+=v,O=h(O),_=_.replace(/(^\s+|\s+$)/g,""),Q=!1,oe=!1,Y=0,H=_.length;Y<H;Y++)$=_[Y],p($,I)?Q=!1:V[$]?($=Q&&V[$].match(/[A-Za-z0-9]/)?" "+V[$]:V[$],Q=!1):$ in o?(Y+1<H&&r.indexOf(_[Y+1])>=0?(b+=$,$=""):oe===!0?($=a[b]+o[$],b=""):$=Q&&o[$].match(/[A-Za-z0-9]/)?" "+o[$]:o[$],Q=!1,oe=!1):$ in a?(b+=$,$="",Y===H-1&&($=a[b]),oe=!0):K[$]&&!(P&&u.indexOf($)!==-1)&&!(M&&f.indexOf($)!==-1)?($=Q||E.substr(-1).match(/[A-Za-z0-9]/)?v+K[$]:K[$],$+=_[Y+1]!==void 0&&_[Y+1].match(/[A-Za-z0-9]/)?v:"",Q=!0):(oe===!0?($=a[b]+$,b="",oe=!1):Q&&(/[A-Za-z0-9]/.test($)||E.substr(-1).match(/A-Za-z0-9]/))&&($=" "+$),Q=!1),E+=$.replace(new RegExp("[^\\w\\s"+O+"_-]","g"),v);return B&&(E=E.replace(/(\w)(\S*)/g,function(w,j,re){var se=j.toUpperCase()+(re!==null?re:"");return Object.keys(I).indexOf(se.toLowerCase())<0?se:se.toLowerCase()})),E=E.replace(/\s+/g,v).replace(new RegExp("\\"+v+"+","g"),v).replace(new RegExp("(^\\"+v+"+|\\"+v+"+$)","g"),""),N&&E.length>N&&(ne=E.charAt(N)===v,E=E.slice(0,N),ne||(E=E.slice(0,E.lastIndexOf(v)))),!T&&!B&&(E=E.toLowerCase()),E},m=function(_){return function(v){return c(v,_)}},h=function(_){return _.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},p=function(S,_){for(var g in _)if(_[g]===S)return!0};if(typeof t<"u"&&t.exports)t.exports=c,t.exports.createSlug=m;else if(typeof define<"u"&&define.amd)define([],function(){return c});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=c,n.createSlug=m}catch{}}(e)}}),Qh=Ui({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){F(),t.exports=Yh()}});F(),F(),F(),F(),F(),F(),F(),F();function Xh(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return n==="index"&&((t=e.__file)!=null&&t.endsWith("index.vue"))?"":n}function Zh(e){const t=e.__file;if(t)return Lh(Dh(t,".vue"))}function $i(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function Rr(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Hi(e){var t,n;const o=(t=e.subTree)==null?void 0:t.type,r=Rr(e);return r?((n=r==null?void 0:r.types)==null?void 0:n.Fragment)===o:!1}function xo(e){var t,n,o;const r=Xh((e==null?void 0:e.type)||{});if(r)return r;if((e==null?void 0:e.root)===e)return"Root";for(const i in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[i]===(e==null?void 0:e.type))return $i(e,i);for(const i in(o=e.appContext)==null?void 0:o.components)if(e.appContext.components[i]===(e==null?void 0:e.type))return $i(e,i);const a=Zh((e==null?void 0:e.type)||{});return a||"Anonymous Component"}function Jh(e){var t,n,o;const r=(o=(n=(t=e==null?void 0:e.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?o:0,a=e===(e==null?void 0:e.root)?"root":e.uid;return`${r}:${a}`}function Br(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function eg(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var No;function tg(e){return No||(No=document.createRange()),No.selectNode(e),No.getBoundingClientRect()}function ng(e){const t=eg();if(!e.children)return t;for(let n=0,o=e.children.length;n<o;n++){const r=e.children[n];let a;if(r.component)a=nn(r.component);else if(r.el){const i=r.el;i.nodeType===1||i.getBoundingClientRect?a=i.getBoundingClientRect():i.nodeType===3&&i.data.trim()&&(a=tg(i))}a&&og(t,a)}return t}function og(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var zi={top:0,left:0,right:0,bottom:0,width:0,height:0};function nn(e){const t=e.subTree.el;return typeof window>"u"?zi:Hi(e)?ng(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?nn(e.subTree.component):zi}F();function Fr(e){return Hi(e)?rg(e.subTree):e.subTree?[e.subTree.el]:[]}function rg(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...Fr(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var ji="__vue-devtools-component-inspector__",Ki="__vue-devtools-component-inspector__card__",Wi="__vue-devtools-component-inspector__name__",Gi="__vue-devtools-component-inspector__indicator__",Yi={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},lg={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},ag={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function yn(){return document.getElementById(ji)}function ig(){return document.getElementById(Ki)}function sg(){return document.getElementById(Gi)}function ug(){return document.getElementById(Wi)}function Mr(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function qr(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:ji,Object.assign(n.style,{...Yi,...Mr(e.bounds),...e.style});const o=document.createElement("span");o.id=Ki,Object.assign(o.style,{...lg,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=Wi,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;const a=document.createElement("i");return a.id=Gi,a.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(a.style,ag),o.appendChild(r),o.appendChild(a),n.appendChild(o),document.body.appendChild(n),n}function Ur(e){const t=yn(),n=ig(),o=ug(),r=sg();t&&(Object.assign(t.style,{...Yi,...Mr(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),o.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,r.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function cg(e){const t=nn(e);if(!t.width&&!t.height)return;const n=xo(e);yn()?Ur({bounds:t,name:n}):qr({bounds:t,name:n})}function Qi(){const e=yn();e&&(e.style.display="none")}var $r=null;function Hr(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&($r=n,n.vnode.el)){const r=nn(n),a=xo(n);yn()?Ur({bounds:r,name:a}):qr({bounds:r,name:a})}}}function dg(e,t){if(e.preventDefault(),e.stopPropagation(),$r){const n=Jh($r);t(n)}}var Po=null;function fg(){Qi(),window.removeEventListener("mouseover",Hr),window.removeEventListener("click",Po,!0),Po=null}function mg(){return window.addEventListener("mouseover",Hr),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),dg(n,o=>{window.removeEventListener("click",t,!0),Po=null,window.removeEventListener("mouseover",Hr);const r=yn();r&&(r.style.display="none"),e(JSON.stringify({id:o}))})}Po=t,window.addEventListener("click",t,!0)})}function hg(e){const t=Br(nt.value,e.id);if(t){const[n]=Fr(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const o=nn(t),r=document.createElement("div"),a={...Mr(o),position:"absolute"};Object.assign(r.style,a),document.body.appendChild(r),r.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(r)},2e3)}setTimeout(()=>{const o=nn(t);if(o.width||o.height){const r=xo(t),a=yn();a?Ur({...e,name:r,bounds:o}):qr({...e,name:r,bounds:o}),setTimeout(()=>{a&&(a.style.display="none")},1500)}},1200)}}F();var Xi,Zi;(Zi=(Xi=te).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(Xi.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function gg(e){let t=0;const n=setInterval(()=>{te.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function _g(){const e=te.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function pg(){return new Promise(e=>{function t(){_g(),e(te.__VUE_INSPECTOR__)}te.__VUE_INSPECTOR__?t():gg(()=>{t()})})}F(),F();function vg(e){return!!(e&&e.__v_isReadonly)}function Ji(e){return vg(e)?Ji(e.__v_raw):!!(e&&e.__v_isReactive)}function zr(e){return!!(e&&e.__v_isRef===!0)}function Yn(e){const t=e&&e.__v_raw;return t?Yn(t):e}var bg=class{constructor(){this.refEditor=new yg}set(e,t,n,o){const r=Array.isArray(t)?t:t.split(".");for(;r.length>1;){const s=r.shift();e instanceof Map&&(e=e.get(s)),e instanceof Set?e=Array.from(e.values())[s]:e=e[s],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const a=r[0],i=this.refEditor.get(e)[a];o?o(e,a,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):e[a]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let o=0;o<n.length;o++)if(e instanceof Map?e=e.get(n[o]):e=e[n[o]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const o=Array.isArray(t)?t.slice():t.split("."),r=n?2:1;for(;e&&o.length>r;){const a=o.shift();e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,o[0])}createDefaultSetCallback(e){return(t,n,o)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Yn(t)instanceof Map?t.delete(n):Yn(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const r=t[e.newKey||n];this.refEditor.isRef(r)?this.refEditor.set(r,o):Yn(t)instanceof Map?t.set(e.newKey||n,o):Yn(t)instanceof Set?t.add(o):t[e.newKey||n]=o}}}},yg=class{set(e,t){if(zr(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(r=>e.add(r));return}const n=Object.keys(t);if(e instanceof Map){const r=new Set(e.keys());n.forEach(a=>{e.set(a,Reflect.get(t,a)),r.delete(a)}),r.forEach(a=>e.delete(a));return}const o=new Set(Object.keys(e));n.forEach(r=>{Reflect.set(e,r,Reflect.get(t,r)),o.delete(r)}),o.forEach(r=>Reflect.deleteProperty(e,r))}}get(e){return zr(e)?e.value:e}isRef(e){return zr(e)||Ji(e)}};F(),F(),F();var Eg="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Sg(){if(!Vi||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(Eg);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}F(),F(),F();var es,ts;(ts=(es=te).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(es.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Cg=new Proxy(te.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function kg(e,t){qe.timelineLayersState[t.id]=!1,Cg.push({...e,descriptorId:t.id,appRecord:Rr(t.app)})}var ns,os;(os=(ns=te).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(ns.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var jr=new Proxy(te.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),rs=bn(()=>{Sn.hooks.callHook("sendInspectorToClient",ls())});function wg(e,t){var n,o;jr.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(o=e.stateFilterPlaceholder)!=null?o:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Rr(t.app)}),rs()}function ls(){return jr.filter(e=>e.descriptor.app===nt.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,o=e.options;return{id:o.id,label:o.label,logo:n.logo,icon:`custom-ic-baseline-${(t=o==null?void 0:o.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function Lo(e,t){return jr.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function Tg(){const e=Mi();e.hook("addInspector",({inspector:o,plugin:r})=>{wg(o,r.descriptor)});const t=bn(async({inspectorId:o,plugin:r})=>{var a;if(!o||!((a=r==null?void 0:r.descriptor)!=null&&a.app)||qe.highPerfModeEnabled)return;const i=Lo(o,r.descriptor.app),s={app:r.descriptor.app,inspectorId:o,filter:(i==null?void 0:i.treeFilter)||"",rootNodes:[]};await new Promise(u=>{e.callHookWith(async f=>{await Promise.all(f.map(d=>d(s))),u()},"getInspectorTree")}),e.callHookWith(async u=>{await Promise.all(u.map(f=>f({inspectorId:o,rootNodes:s.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=bn(async({inspectorId:o,plugin:r})=>{var a;if(!o||!((a=r==null?void 0:r.descriptor)!=null&&a.app)||qe.highPerfModeEnabled)return;const i=Lo(o,r.descriptor.app),s={app:r.descriptor.app,inspectorId:o,nodeId:(i==null?void 0:i.selectedNodeId)||"",state:null},u={currentTab:`custom-inspector:${o}`};s.nodeId&&await new Promise(f=>{e.callHookWith(async d=>{await Promise.all(d.map(c=>c(s,u))),f()},"getInspectorState")}),e.callHookWith(async f=>{await Promise.all(f.map(d=>d({inspectorId:o,nodeId:s.nodeId,state:s.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:o,nodeId:r,plugin:a})=>{const i=Lo(o,a.descriptor.app);i&&(i.selectedNodeId=r)}),e.hook("timelineLayerAdded",({options:o,plugin:r})=>{kg(o,r.descriptor)}),e.hook("timelineEventAdded",({options:o,plugin:r})=>{var a;const i=["performance","component-event","keyboard","mouse"];qe.highPerfModeEnabled||!((a=qe.timelineLayersState)!=null&&a[r.descriptor.id])&&!i.includes(o.layerId)||e.callHookWith(async s=>{await Promise.all(s.map(u=>u(o)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:o})=>{const r=o.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!r)return null;const a=r.id.toString();return[...r.instanceMap].filter(([s])=>s.split(":")[0]===a).map(([,s])=>s)}),e.hook("getComponentBounds",async({instance:o})=>nn(o)),e.hook("getComponentName",({instance:o})=>xo(o)),e.hook("componentHighlight",({uid:o})=>{const r=nt.value.instanceMap.get(o);r&&cg(r)}),e.hook("componentUnhighlight",()=>{Qi()}),e}var as,is;(is=(as=te).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(as.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var ss,us;(us=(ss=te).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(ss.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var cs,ds;(ds=(cs=te).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(cs.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var fs,ms;(ms=(fs=te).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(fs.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var hs,gs;(gs=(hs=te).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(hs.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var on="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Og(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Sg()}}var _s,ps;(ps=(_s=te)[on])!=null||(_s[on]=Og());var Ag=bn(e=>{Sn.hooks.callHook("devtoolsStateUpdated",{state:e})});bn((e,t)=>{Sn.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var Do=new Proxy(te.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?te.__VUE_DEVTOOLS_KIT_APP_RECORDS__:te.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),nt=new Proxy(te.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?te.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?te.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:te.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function vs(){Ag({...te[on],appRecords:Do.value,activeAppRecordId:nt.id,tabs:te.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:te.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Ig(e){te.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,vs()}function xg(e){te.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,vs()}var qe=new Proxy(te[on],{get(e,t){return t==="appRecords"?Do:t==="activeAppRecordId"?nt.id:t==="tabs"?te.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?te.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:te[on][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...te[on]},e[t]=n,te[on][t]=n,!0}});function Ng(e={}){var t,n,o;const{file:r,host:a,baseUrl:i=window.location.origin,line:s=0,column:u=0}=e;if(r){if(a==="chrome-extension"){const f=r.replace(/\\/g,"\\\\"),d=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${d}__open-in-editor?file=${encodeURI(r)}`).then(c=>{if(!c.ok){const m=`Opening component ${f} failed`;console.log(`%c${m}`,"color:red")}})}else if(qe.vitePluginDetected){const f=(o=te.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?o:i;te.__VUE_INSPECTOR__.openInEditor(f,r,s,u)}}}F(),F(),F(),F(),F();var bs,ys;(ys=(bs=te).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(bs.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Kr=new Proxy(te.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Wr(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Gr(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function Pg(e){var t,n,o;const r=(n=(t=Kr.find(a=>{var i;return a[0].id===e&&!!((i=a[0])!=null&&i.settings)}))==null?void 0:t[0])!=null?n:null;return(o=r==null?void 0:r.settings)!=null?o:null}function Es(e,t){var n,o,r;const a=Gr(e);if(a){const i=localStorage.getItem(a);if(i)return JSON.parse(i)}if(e){const i=(o=(n=Kr.find(s=>s[0].id===e))==null?void 0:n[0])!=null?o:null;return Wr((r=i==null?void 0:i.settings)!=null?r:{})}return Wr(t)}function Lg(e,t){const n=Gr(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Wr(t)))}function Dg(e,t,n){const o=Gr(e),r=localStorage.getItem(o),a=JSON.parse(r||"{}"),i={...a,[t]:n};localStorage.setItem(o,JSON.stringify(i)),Sn.hooks.callHookWith(s=>{s.forEach(u=>u({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:i}))},"setPluginSettings")}F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F();var Ss,Cs,ut=(Cs=(Ss=te).__VUE_DEVTOOLS_HOOK)!=null?Cs:Ss.__VUE_DEVTOOLS_HOOK=Mi(),Vg={vueAppInit(e){ut.hook("app:init",e)},vueAppUnmount(e){ut.hook("app:unmount",e)},vueAppConnected(e){ut.hook("app:connected",e)},componentAdded(e){return ut.hook("component:added",e)},componentEmit(e){return ut.hook("component:emit",e)},componentUpdated(e){return ut.hook("component:updated",e)},componentRemoved(e){return ut.hook("component:removed",e)},setupDevtoolsPlugin(e){ut.hook("devtools-plugin:setup",e)},perfStart(e){return ut.hook("perf:start",e)},perfEnd(e){return ut.hook("perf:end",e)}},ks={on:Vg,setupDevToolsPlugin(e,t){return ut.callHook("devtools-plugin:setup",e,t)}},Rg=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(qe.highPerfModeEnabled)return;const n=ls().find(o=>o.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(e){const o=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];ut.callHook("component:updated",...o)}else ut.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Lg(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){qe.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){qe.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return qe.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){qe.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return Es(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},Bg=Rg;F(),F(),F(),F();var Fg="__vue_devtool_undefined__",Mg="__vue_devtool_infinity__",qg="__vue_devtool_negative_infinity__",Ug="__vue_devtool_nan__";F(),F();var $g={[Fg]:"undefined",[Ug]:"NaN",[Mg]:"Infinity",[qg]:"-Infinity"};Object.entries($g).reduce((e,[t,n])=>(e[n]=t,e),{}),F(),F(),F(),F(),F();var ws,Ts;(Ts=(ws=te).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(ws.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function Os(e,t){return ks.setupDevToolsPlugin(e,t)}function Hg(e,t){const[n,o]=e;if(n.app!==t)return;const r=new Bg({plugin:{setupFn:o,descriptor:n},ctx:Sn});n.packageName==="vuex"&&r.on.editInspectorState(a=>{r.sendInspectorState(a.inspectorId)}),o(r)}function As(e,t){te.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||qe.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(te.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Kr.forEach(n=>{Hg(n,e)}))}F(),F();var Qn="__VUE_DEVTOOLS_ROUTER__",En="__VUE_DEVTOOLS_ROUTER_INFO__",Is,xs;(xs=(Is=te)[En])!=null||(Is[En]={currentRoute:null,routes:[]});var Ns,Ps;(Ps=(Ns=te)[Qn])!=null||(Ns[Qn]={}),new Proxy(te[En],{get(e,t){return te[En][t]}}),new Proxy(te[Qn],{get(e,t){if(t==="value")return te[Qn]}});function zg(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Yr(e){return e.map(t=>{let{path:n,name:o,children:r,meta:a}=t;return r!=null&&r.length&&(r=Yr(r)),{path:n,name:o,children:r,meta:a}})}function jg(e){if(e){const{fullPath:t,hash:n,href:o,path:r,name:a,matched:i,params:s,query:u}=e;return{fullPath:t,hash:n,href:o,path:r,name:a,params:s,query:u,matched:Yr(i)}}return e}function Kg(e,t){function n(){var o;const r=(o=e.app)==null?void 0:o.config.globalProperties.$router,a=jg(r==null?void 0:r.currentRoute.value),i=Yr(zg(r)),s=console.warn;console.warn=()=>{},te[En]={currentRoute:a?Bi(a):{},routes:Bi(i)},te[Qn]=r,console.warn=s}n(),ks.on.componentUpdated(bn(()=>{var o;((o=t.value)==null?void 0:o.app)===e.app&&(n(),!qe.highPerfModeEnabled&&Sn.hooks.callHook("routerInfoUpdated",{state:te[En]}))},200))}function Wg(e){return{async getInspectorTree(t){const n={...t,app:nt.value.app,rootNodes:[]};return await new Promise(o=>{e.callHookWith(async r=>{await Promise.all(r.map(a=>a(n))),o()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:nt.value.app,state:null},o={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(r=>{e.callHookWith(async a=>{await Promise.all(a.map(i=>i(n,o))),r()},"getInspectorState")}),n.state},editInspectorState(t){const n=new bg,o={...t,app:nt.value.app,set:(r,a=t.path,i=t.state.value,s)=>{n.set(r,a,i,s||n.createDefaultSetCallback(t.state))}};e.callHookWith(r=>{r.forEach(a=>a(o))},"editInspectorState")},sendInspectorState(t){const n=Lo(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return mg()},cancelInspectComponentInspector(){return fg()},getComponentRenderCode(t){const n=Br(nt.value,t);if(n)return(n==null?void 0:n.type)instanceof Function?n.type.toString():n.render.toString()},scrollToComponent(t){return hg({id:t})},openInEditor:Ng,getVueInspector:pg,toggleApp(t,n){const o=Do.value.find(r=>r.id===t);o&&(xg(t),Ig(o),Kg(o,nt),rs(),As(o.app,n))},inspectDOM(t){const n=Br(nt.value,t);if(n){const[o]=Fr(n);o&&(te.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=o)}},updatePluginSettings(t,n,o){Dg(t,n,o)},getPluginSettings(t){return{options:Pg(t),values:Es(t)}}}}F();var Ls,Ds;(Ds=(Ls=te).__VUE_DEVTOOLS_ENV__)!=null||(Ls.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var Vs=Tg(),Rs,Bs;(Bs=(Rs=te).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(Rs.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:Vs,get state(){return{...qe,activeAppRecordId:nt.id,activeAppRecord:nt.value,appRecords:Do.value}},api:Wg(Vs)});var Sn=te.__VUE_DEVTOOLS_KIT_CONTEXT__;F(),Gh(Qh());var Fs,Ms;(Ms=(Fs=te).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null||(Fs.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),F();function Gg(e){qe.highPerfModeEnabled=e??!qe.highPerfModeEnabled,!e&&nt.value&&As(nt.value.app)}F(),F(),F();function Yg(e){qe.devtoolsClientDetected={...qe.devtoolsClientDetected,...e};const t=Object.values(qe.devtoolsClientDetected).some(Boolean);Gg(!t)}var qs,Us;(Us=(qs=te).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(qs.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=Yg),F(),F(),F(),F(),F(),F(),F();var Qg=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},$s=class{constructor(e){this.generateIdentifier=e,this.kv=new Qg}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Xg=class extends $s{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};F(),F();function Zg(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function Jg(e,t){const n=Zg(e);if("find"in n)return n.find(t);const o=n;for(let r=0;r<o.length;r++){const a=o[r];if(t(a))return a}}function Cn(e,t){Object.entries(e).forEach(([n,o])=>t(o,n))}function Vo(e,t){return e.indexOf(t)!==-1}function Hs(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(t(o))return o}}var e_=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Jg(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};F(),F();var t_=e=>Object.prototype.toString.call(e).slice(8,-1),zs=e=>typeof e>"u",n_=e=>e===null,Xn=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Qr=e=>Xn(e)&&Object.keys(e).length===0,$t=e=>Array.isArray(e),o_=e=>typeof e=="string",r_=e=>typeof e=="number"&&!isNaN(e),l_=e=>typeof e=="boolean",a_=e=>e instanceof RegExp,Zn=e=>e instanceof Map,Jn=e=>e instanceof Set,js=e=>t_(e)==="Symbol",i_=e=>e instanceof Date&&!isNaN(e.valueOf()),s_=e=>e instanceof Error,Ks=e=>typeof e=="number"&&isNaN(e),u_=e=>l_(e)||n_(e)||zs(e)||r_(e)||o_(e)||js(e),c_=e=>typeof e=="bigint",d_=e=>e===1/0||e===-1/0,f_=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),m_=e=>e instanceof URL;F();var Ws=e=>e.replace(/\./g,"\\."),Xr=e=>e.map(String).map(Ws).join("."),eo=e=>{const t=[];let n="";for(let r=0;r<e.length;r++){let a=e.charAt(r);if(a==="\\"&&e.charAt(r+1)==="."){n+=".",r++;continue}if(a==="."){t.push(n),n="";continue}n+=a}const o=n;return t.push(o),t};F();function At(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Gs=[At(zs,"undefined",()=>null,()=>{}),At(c_,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),At(i_,"Date",e=>e.toISOString(),e=>new Date(e)),At(s_,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n}),At(a_,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),At(Jn,"set",e=>[...e.values()],e=>new Set(e)),At(Zn,"map",e=>[...e.entries()],e=>new Map(e)),At(e=>Ks(e)||d_(e),"number",e=>Ks(e)?"NaN":e>0?"Infinity":"-Infinity",Number),At(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),At(m_,"URL",e=>e.toString(),e=>new URL(e))];function Ro(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Ys=Ro((e,t)=>js(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),h_=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Qs=Ro(f_,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=h_[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Xs(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Zs=Ro(Xs,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const o={};return n.forEach(r=>{o[r]=e[r]}),o},(e,t,n)=>{const o=n.classRegistry.getValue(t[1]);if(!o)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(o.prototype),e)}),Js=Ro((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),g_=[Zs,Ys,Js,Qs],eu=(e,t)=>{const n=Hs(g_,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const o=Hs(Gs,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},tu={};Gs.forEach(e=>{tu[e.annotation]=e});var __=(e,t,n)=>{if($t(t))switch(t[0]){case"symbol":return Ys.untransform(e,t,n);case"class":return Zs.untransform(e,t,n);case"custom":return Js.untransform(e,t,n);case"typed-array":return Qs.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const o=tu[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}};F();var kn=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function nu(e){if(Vo(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Vo(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Vo(e,"constructor"))throw new Error("constructor is not allowed as a property")}var p_=(e,t)=>{nu(t);for(let n=0;n<t.length;n++){const o=t[n];if(Jn(e))e=kn(e,+o);else if(Zn(e)){const r=+o,a=+t[++n]==0?"key":"value",i=kn(e,r);switch(a){case"key":e=i;break;case"value":e=e.get(i);break}}else e=e[o]}return e},Zr=(e,t,n)=>{if(nu(t),t.length===0)return n(e);let o=e;for(let a=0;a<t.length-1;a++){const i=t[a];if($t(o)){const s=+i;o=o[s]}else if(Xn(o))o=o[i];else if(Jn(o)){const s=+i;o=kn(o,s)}else if(Zn(o)){if(a===t.length-2)break;const u=+i,f=+t[++a]==0?"key":"value",d=kn(o,u);switch(f){case"key":o=d;break;case"value":o=o.get(d);break}}}const r=t[t.length-1];if($t(o)?o[+r]=n(o[+r]):Xn(o)&&(o[r]=n(o[r])),Jn(o)){const a=kn(o,+r),i=n(a);a!==i&&(o.delete(a),o.add(i))}if(Zn(o)){const a=+t[t.length-2],i=kn(o,a);switch(+r==0?"key":"value"){case"key":{const u=n(i);o.set(u,o.get(i)),u!==i&&o.delete(i);break}case"value":{o.set(i,n(o.get(i)));break}}}return e};function Jr(e,t,n=[]){if(!e)return;if(!$t(e)){Cn(e,(a,i)=>Jr(a,t,[...n,...eo(i)]));return}const[o,r]=e;r&&Cn(r,(a,i)=>{Jr(a,t,[...n,...eo(i)])}),t(o,n)}function v_(e,t,n){return Jr(t,(o,r)=>{e=Zr(e,r,a=>__(a,o,n))}),e}function b_(e,t){function n(o,r){const a=p_(e,eo(r));o.map(eo).forEach(i=>{e=Zr(e,i,()=>a)})}if($t(t)){const[o,r]=t;o.forEach(a=>{e=Zr(e,eo(a),()=>e)}),r&&Cn(r,n)}else Cn(t,n);return e}var y_=(e,t)=>Xn(e)||$t(e)||Zn(e)||Jn(e)||Xs(e,t);function E_(e,t,n){const o=n.get(e);o?o.push(t):n.set(e,[t])}function S_(e,t){const n={};let o;return e.forEach(r=>{if(r.length<=1)return;t||(r=r.map(s=>s.map(String)).sort((s,u)=>s.length-u.length));const[a,...i]=r;a.length===0?o=i.map(Xr):n[Xr(a)]=i.map(Xr)}),o?Qr(n)?[o]:[o,n]:Qr(n)?void 0:n}var ou=(e,t,n,o,r=[],a=[],i=new Map)=>{var s;const u=u_(e);if(!u){E_(e,r,t);const p=i.get(e);if(p)return o?{transformedValue:null}:p}if(!y_(e,n)){const p=eu(e,n),S=p?{transformedValue:p.value,annotations:[p.type]}:{transformedValue:e};return u||i.set(e,S),S}if(Vo(a,e))return{transformedValue:null};const f=eu(e,n),d=(s=f==null?void 0:f.value)!=null?s:e,c=$t(d)?[]:{},m={};Cn(d,(p,S)=>{if(S==="__proto__"||S==="constructor"||S==="prototype")throw new Error(`Detected property ${S}. This is a prototype pollution risk, please remove it from your object.`);const _=ou(p,t,n,o,[...r,S],[...a,e],i);c[S]=_.transformedValue,$t(_.annotations)?m[S]=_.annotations:Xn(_.annotations)&&Cn(_.annotations,(g,v)=>{m[Ws(S)+"."+v]=g})});const h=Qr(m)?{transformedValue:c,annotations:f?[f.type]:void 0}:{transformedValue:c,annotations:f?[f.type,m]:m};return u||i.set(e,h),h};F(),F();function ru(e){return Object.prototype.toString.call(e).slice(8,-1)}function lu(e){return ru(e)==="Array"}function C_(e){if(ru(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function k_(e,t,n,o,r){const a={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";a==="enumerable"&&(e[t]=n),r&&a==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function el(e,t={}){if(lu(e))return e.map(r=>el(r,t));if(!C_(e))return e;const n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...n,...o].reduce((r,a)=>{if(lu(t.props)&&!t.props.includes(a))return r;const i=e[a],s=el(i,t);return k_(r,a,s,e,t.nonenumerable),r},{})}var we=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Xg,this.symbolRegistry=new $s(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new e_,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=ou(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta={...o.meta,values:n.annotations});const r=S_(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){const{json:t,meta:n}=e;let o=el(t);return n!=null&&n.values&&(o=v_(o,n.values,this)),n!=null&&n.referentialEqualities&&(o=b_(o,n.referentialEqualities)),o}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};we.defaultInstance=new we,we.serialize=we.defaultInstance.serialize.bind(we.defaultInstance),we.deserialize=we.defaultInstance.deserialize.bind(we.defaultInstance),we.stringify=we.defaultInstance.stringify.bind(we.defaultInstance),we.parse=we.defaultInstance.parse.bind(we.defaultInstance),we.registerClass=we.defaultInstance.registerClass.bind(we.defaultInstance),we.registerSymbol=we.defaultInstance.registerSymbol.bind(we.defaultInstance),we.registerCustom=we.defaultInstance.registerCustom.bind(we.defaultInstance),we.allowErrorProps=we.defaultInstance.allowErrorProps.bind(we.defaultInstance),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F();var au,iu;(iu=(au=te).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(au.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var su,uu;(uu=(su=te).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(su.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var cu,du;(du=(cu=te).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(cu.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var fu,mu;(mu=(fu=te).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(fu.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var hu,gu;(gu=(hu=te).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||(hu.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var _u,pu;(pu=(_u=te).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(_u.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),F(),F(),F(),F(),F(),F(),F();/*!
2
2
  * pinia v3.0.1
3
3
  * (c) 2025 Eduardo San Martin Morote
4
4
  * @license MIT