quasar-factory-lib 0.0.2 → 0.0.3

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 (25) hide show
  1. package/dist/components/K-Table/K-Table.vue.d.ts +836 -0
  2. package/dist/components/K-Table/components/BasicCheckBox.vue.d.ts +33 -0
  3. package/dist/components/K-Table/components/CardListSkeleton.vue.d.ts +2 -0
  4. package/dist/components/K-Table/components/CustomizedButton.vue.d.ts +30 -0
  5. package/dist/components/K-Table/components/CustomizedCheckBox.vue.d.ts +65 -0
  6. package/dist/components/K-Table/components/CustomizedIcon.vue.d.ts +36 -0
  7. package/dist/components/K-Table/components/TableColumnsSelector.vue.d.ts +28 -0
  8. package/dist/components/K-Table/components/TableFilter.vue.d.ts +17 -0
  9. package/dist/components/K-Table/components/TablePopupEdit.vue.d.ts +87 -0
  10. package/dist/components/K-Table/components/TableSkeleton.vue.d.ts +2 -0
  11. package/dist/components/K-Table/components/TableSlotBody.vue.d.ts +282 -0
  12. package/dist/components/K-Table/components/TableSlotGrid.vue.d.ts +289 -0
  13. package/dist/components/K-Table/components/TableSlotHeader.vue.d.ts +34 -0
  14. package/dist/components/K-Table/index.d.ts +8 -0
  15. package/dist/components/K-Table/utils/filterMethod.d.ts +9 -0
  16. package/dist/components/K-Table/utils/infiniteScroll.d.ts +22 -0
  17. package/dist/components/K-Table/utils/setTableHeight.d.ts +4 -0
  18. package/dist/components/K-Table/utils/sort.d.ts +5 -0
  19. package/dist/components/index.d.ts +1 -0
  20. package/dist/components/plugins.d.ts +2 -1
  21. package/dist/index.d.ts +1 -1
  22. package/dist/quasar-factory-lib.js +9001 -2514
  23. package/dist/quasar-factory-lib.umd.cjs +9 -9
  24. package/dist/style.css +1 -1
  25. package/package.json +1 -1
@@ -1,21 +1,21 @@
1
- (function(_e,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],v):(_e=typeof globalThis<"u"?globalThis:_e||self,v(_e.QuasarFactoryLib={},_e.Vue))})(this,function(_e,v){"use strict";function Et(e,t,n,a){return Object.defineProperty(e,t,{get:n,set:a,enumerable:!0}),e}const Ie=v.ref(!1);let bt;function ta(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 na(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 gn="ontouchstart"in window||window.navigator.maxTouchPoints>0;function ra(e){const t=e.toLowerCase(),n=na(t),a=ta(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};a.browser&&(r[a.browser]=!0,r.version=a.version,r.versionNumber=parseInt(a.version,10)),a.platform&&(r[a.platform]=!0);const s=r.android||r.ios||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"];if(s===!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,a.browser="edge"):r.crios?(r.chrome=!0,a.browser="chrome"):r.fxios&&(r.firefox=!0,a.browser="firefox"),(r.ipod||r.ipad||r.iphone)&&(r.ios=!0),r.vivaldi&&(a.browser="vivaldi",r.vivaldi=!0),(r.chrome||r.opr||r.safari||r.vivaldi||r.mobile===!0&&r.ios!==!0&&s!==!0)&&(r.webkit=!0),r.opr&&(a.browser="opera",r.opera=!0),r.safari&&(r.blackberry||r.bb?(a.browser="blackberry",r.blackberry=!0):r.playbook?(a.browser="playbook",r.playbook=!0):r.android?(a.browser="android",r.android=!0):r.kindle?(a.browser="kindle",r.kindle=!0):r.silk&&(a.browser="silk",r.silk=!0)),r.name=a.browser,r.platform=a.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"),Ie.value===!0&&(bt={is:{...r}}),gn===!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 o=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(r,{mobile:!0,ios:!0,platform:o,[o]:!0})}r.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete r.desktop,r.mobile=!0)}return r}const pn=navigator.userAgent||navigator.vendor||window.opera,aa={has:{touch:!1,webStorage:!1},within:{iframe:!1}},fe={userAgent:pn,is:ra(pn),has:{touch:gn},within:{iframe:window.self!==window.top}},vt={install(e){const{$q:t}=e;Ie.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,fe),Ie.value=!1}),t.platform=v.reactive(this)):t.platform=this}};{let e;Et(fe.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(vt,fe),Ie.value===!0&&(Object.assign(vt,bt,aa),bt=null)}function Nt(e){return v.markRaw(v.defineComponent(e))}function sa(e){return v.markRaw(e)}const at=(e,t)=>{const n=v.reactive(e);for(const a in e)Et(t,a,()=>n[a],r=>{n[a]=r});return t},je={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(je,{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 Ge(){}function oa(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 hn(e){e.stopPropagation()}function ia(e){e.cancelable!==!1&&e.preventDefault()}function De(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function la(e,t,n){const a=`__q_${t}_evt`;e[a]=e[a]!==void 0?e[a].concat(n):n,n.forEach(r=>{r[0].addEventListener(r[1],e[r[2]],je[r[3]])})}function ca(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],je[a[3]])}),e[n]=void 0)}function ua(e,t=250,n){let a=null;function r(){const s=arguments,o=()=>{a=null,e.apply(this,s)};a!==null&&clearTimeout(a),a=setTimeout(o,t)}return r.cancel=()=>{a!==null&&clearTimeout(a)},r}const Lt=["sm","md","lg","xl"],{passive:En}=je,fa=at({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:Ge,setDebounce:Ge,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,a=n||window,r=document.scrollingElement||document.documentElement,s=n===void 0||fe.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],o=e.config.screen!==void 0&&e.config.screen.bodyClasses===!0;this.__update=b=>{const[f,I]=s();if(I!==this.height&&(this.height=I),f!==this.width)this.width=f;else if(b!==!0)return;let C=this.sizes;this.gt.xs=f>=C.sm,this.gt.sm=f>=C.md,this.gt.md=f>=C.lg,this.gt.lg=f>=C.xl,this.lt.sm=f<C.sm,this.lt.md=f<C.md,this.lt.lg=f<C.lg,this.lt.xl=f<C.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,C=this.xs===!0&&"xs"||this.sm===!0&&"sm"||this.md===!0&&"md"||this.lg===!0&&"lg"||"xl",C!==this.name&&(o===!0&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${C}`)),this.name=C)};let i,u={},m=16;this.setSizes=b=>{Lt.forEach(f=>{b[f]!==void 0&&(u[f]=b[f])})},this.setDebounce=b=>{m=b};const h=()=>{const b=getComputedStyle(document.body);b.getPropertyValue("--q-size-sm")&&Lt.forEach(f=>{this.sizes[f]=parseInt(b.getPropertyValue(`--q-size-${f}`),10)}),this.setSizes=f=>{Lt.forEach(I=>{f[I]&&(this.sizes[I]=f[I])}),this.__update(!0)},this.setDebounce=f=>{i!==void 0&&a.removeEventListener("resize",i,En),i=f>0?ua(this.__update,f):this.__update,a.addEventListener("resize",i,En)},this.setDebounce(m),Object.keys(u).length!==0?(this.setSizes(u),u=void 0):this.__update(),o===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};Ie.value===!0?t.push(h):h()}}),ee=at({isActive:!1,mode:!1},{__media:void 0,set(e){ee.mode=e,e==="auto"?(ee.__media===void 0&&(ee.__media=window.matchMedia("(prefers-color-scheme: dark)"),ee.__updateMedia=()=>{ee.set("auto")},ee.__media.addListener(ee.__updateMedia)),e=ee.__media.matches):ee.__media!==void 0&&(ee.__media.removeListener(ee.__updateMedia),ee.__media=void 0),ee.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){ee.set(ee.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 da(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 bn=!1;function ma(e){bn=e.isComposing===!0}function _a(e){return bn===!0||e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function yt(e,t){return _a(e)===!0?!1:[].concat(t).includes(e.keyCode)}function vn(e){if(e.ios===!0)return"ios";if(e.android===!0)return"android"}function ga({is:e,has:t,within:n},a){const r=[e.desktop===!0?"desktop":"mobile",`${t.touch===!1?"no-":""}touch`];if(e.mobile===!0){const s=vn(e);s!==void 0&&r.push("platform-"+s)}if(e.nativeMobile===!0){const s=e.nativeMobileWrapper;r.push(s),r.push("native-mobile"),e.ios===!0&&(a[s]===void 0||a[s].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 pa(){const{is:e}=fe,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=vn(e);r!==void 0&&n.add(`platform-${r}`)}}fe.has.touch===!0&&(n.delete("no-touch"),n.add("touch")),fe.within.iframe===!0&&n.add("within-iframe");const a=Array.from(n).join(" ");t!==a&&(document.body.className=a)}function ha(e){for(const t in e)da(t,e[t])}const Ea={install(e){if(this.__installed!==!0){if(Ie.value===!0)pa();else{const{$q:t}=e;t.config.brand!==void 0&&ha(t.config.brand);const n=ga(fe,t.config);document.body.classList.add.apply(document.body.classList,n)}fe.is.ios===!0&&document.body.addEventListener("touchstart",Ge),window.addEventListener("keydown",ma,!0)}}},Nn=()=>!0;function ba(e){return typeof e=="string"&&e!==""&&e!=="/"&&e!=="#/"}function va(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 Na(e){if(e.backButtonExit===!1)return()=>!1;if(e.backButtonExit==="*")return Nn;const t=["#/"];return Array.isArray(e.backButtonExit)===!0&&t.push(...e.backButtonExit.filter(ba).map(va)),()=>t.includes(window.location.hash)}const La={__history:[],add:Ge,remove:Ge,install({$q:e}){if(this.__installed===!0)return;const{cordova:t,capacitor:n}=fe.is;if(t!==!0&&n!==!0)return;const a=e.config[t===!0?"cordova":"capacitor"];if(a!==void 0&&a.backButton===!1||n===!0&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=o=>{o.condition===void 0&&(o.condition=Nn),this.__history.push(o)},this.remove=o=>{const i=this.__history.indexOf(o);i>=0&&this.__history.splice(i,1)};const r=Na(Object.assign({backButtonExit:!0},a)),s=()=>{if(this.__history.length){const o=this.__history[this.__history.length-1];o.condition()===!0&&(this.__history.pop(),o.handler())}else r()===!0?navigator.app.exitApp():window.history.back()};t===!0?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",s,!1)}):window.Capacitor.Plugins.App.addListener("backButton",s)}},Ln={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 yn(){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 Ee=at({__qLang:{}},{getLocale:yn,set(e=Ln,t){const n={...e,rtl:e.rtl===!0,getLocale:yn};{if(n.set=Ee.set,Ee.__langConfig===void 0||Ee.__langConfig.noHtmlAttrs!==!0){const a=document.documentElement;a.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),a.setAttribute("lang",n.isoName)}Object.assign(Ee.__qLang,n)}},install({$q:e,lang:t,ssrContext:n}){e.lang=Ee.__qLang,Ee.__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(a){return Reflect.ownKeys(a).filter(r=>r!=="set"&&r!=="getLocale")}}),this.set(t||Ln))}}),ya={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"}},st=at({iconMapFn:null,__qIconSet:{}},{set(e,t){const n={...e};n.set=st.set,Object.assign(st.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,Et(e,"iconMapFn",()=>this.iconMapFn,a=>{this.iconMapFn=a}),this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys(a){return Reflect.ownKeys(a).filter(r=>r!=="set")}}),this.set(t||ya))}}),Ta="_q_",Tn={};let On=!1;function Oa(){On=!0}function In(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}const kn=[vt,Ea,ee,fa,La,Ee,st];function Sn(e,t){t.forEach(n=>{n.install(e),n.__installed=!0})}function Ia(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(Ta,n.$q),Sn(n,kn),t.components!==void 0&&Object.values(t.components).forEach(a=>{In(a)===!0&&a.name!==void 0&&e.component(a.name,a)}),t.directives!==void 0&&Object.values(t.directives).forEach(a=>{In(a)===!0&&a.name!==void 0&&e.directive(a.name,a)}),t.plugins!==void 0&&Sn(n,Object.values(t.plugins).filter(a=>typeof a.install=="function"&&kn.includes(a)===!1)),Ie.value===!0&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach(a=>{a()}),n.$q.onSSRHydrated=()=>{}})}const ka={name:"Quasar",version:"2.17.7",install:function(e,t={}){const n={version:"2.17.7"};On===!1?(t.config!==void 0&&Object.assign(Tn,t.config),n.config={...Tn},Oa()):n.config=t.config||{},Ia(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},lang:Ee,iconSet:st},Tt={xs:18,sm:24,md:32,lg:38,xl:46},Cn={size:String};function wn(e,t=Tt){return v.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Sa(e,t){return e!==void 0&&e()||t}function qe(e,t){return e!==void 0?t.concat(e()):t}const An="0 0 24 24",Pn=e=>e,Ot=e=>`ionicons ${e}`,Rn={"mdi-":e=>`mdi ${e}`,"icon-":Pn,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Ot,"ion-ios":Ot,"ion-logo":Ot,"iconfont ":Pn,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},Dn={o_:"-outlined",r_:"-round",s_:"-sharp"},Mn={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Ca=new RegExp("^("+Object.keys(Rn).join("|")+")"),wa=new RegExp("^("+Object.keys(Dn).join("|")+")"),Fn=new RegExp("^("+Object.keys(Mn).join("|")+")"),Aa=/^[Mm]\s?[-+]?\.?\d/,Pa=/^img:/,Ra=/^svguse:/,Da=/^ion-/,Ma=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,xn=Nt({name:"QIcon",props:{...Cn,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=v.getCurrentInstance(),a=wn(e),r=v.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),s=v.computed(()=>{let o,i=e.name;if(i==="none"||!i)return{none:!0};if(n.iconMapFn!==null){const h=n.iconMapFn(i);if(h!==void 0)if(h.icon!==void 0){if(i=h.icon,i==="none"||!i)return{none:!0}}else return{cls:h.cls,content:h.content!==void 0?h.content:" "}}if(Aa.test(i)===!0){const[h,b=An]=i.split("|");return{svg:!0,viewBox:b,nodes:h.split("&&").map(f=>{const[I,C,S]=f.split("@@");return v.h("path",{style:C,d:I,transform:S})})}}if(Pa.test(i)===!0)return{img:!0,src:i.substring(4)};if(Ra.test(i)===!0){const[h,b=An]=i.split("|");return{svguse:!0,src:h.substring(7),viewBox:b}}let u=" ";const m=i.match(Ca);if(m!==null)o=Rn[m[1]](i);else if(Ma.test(i)===!0)o=i;else if(Da.test(i)===!0)o=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${i.substring(3)}`;else if(Fn.test(i)===!0){o="notranslate material-symbols";const h=i.match(Fn);h!==null&&(i=i.substring(6),o+=Mn[h[1]]),u=i}else{o="notranslate material-icons";const h=i.match(wa);h!==null&&(i=i.substring(2),o+=Dn[h[1]]),u=i}return{cls:o,content:u}});return()=>{const o={class:r.value,style:a.value,"aria-hidden":"true",role:"presentation"};return s.value.none===!0?v.h(e.tag,o,Sa(t.default)):s.value.img===!0?v.h(e.tag,o,qe(t.default,[v.h("img",{src:s.value.src})])):s.value.svg===!0?v.h(e.tag,o,qe(t.default,[v.h("svg",{viewBox:s.value.viewBox||"0 0 24 24"},s.value.nodes)])):s.value.svguse===!0?v.h(e.tag,o,qe(t.default,[v.h("svg",{viewBox:s.value.viewBox},[v.h("use",{"xlink:href":s.value.src})])])):(s.value.cls!==void 0&&(o.class+=" "+s.value.cls),v.h(e.tag,o,qe(t.default,[s.value.content])))}}}),Fa={size:{type:[String,Number],default:"1em"},color:String};function xa(e){return{cSize:v.computed(()=>e.size in Tt?`${Tt[e.size]}px`:e.size),classes:v.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Ua=Nt({name:"QSpinner",props:{...Fa,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=xa(e);return()=>v.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[v.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function $a(e,t){const n=e.style;for(const a in t)n[a]=t[a]}function Va(e,t=250){let n=!1,a;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),a=e.apply(this,arguments)),a}}function Un(e,t,n,a){n.modifiers.stop===!0&&hn(e);const r=n.modifiers.color;let s=n.modifiers.center;s=s===!0||a===!0;const o=document.createElement("span"),i=document.createElement("span"),u=oa(e),{left:m,top:h,width:b,height:f}=t.getBoundingClientRect(),I=Math.sqrt(b*b+f*f),C=I/2,S=`${(b-I)/2}px`,T=s?S:`${u.left-m-C}px`,d=`${(f-I)/2}px`,_=s?d:`${u.top-h-C}px`;i.className="q-ripple__inner",$a(i,{height:`${I}px`,width:`${I}px`,transform:`translate3d(${T},${_},0) scale3d(.2,.2,1)`,opacity:0}),o.className=`q-ripple${r?" text-"+r:""}`,o.setAttribute("dir","ltr"),o.appendChild(i),t.appendChild(o);const y=()=>{o.remove(),clearTimeout(p)};n.abort.push(y);let p=setTimeout(()=>{i.classList.add("q-ripple__inner--enter"),i.style.transform=`translate3d(${S},${d},0) scale3d(1,1,1)`,i.style.opacity=.2,p=setTimeout(()=>{i.classList.remove("q-ripple__inner--enter"),i.classList.add("q-ripple__inner--leave"),i.style.opacity=0,p=setTimeout(()=>{o.remove(),n.abort.splice(n.abort.indexOf(y),1)},275)},250)},50)}function $n(e,{modifiers:t,value:n,arg:a}){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||a,keyCodes:[].concat(r.keyCodes||13)}}const Wa=sa({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const a={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(r){a.enabled===!0&&r.qSkipRipple!==!0&&r.type===(a.modifiers.early===!0?"pointerdown":"click")&&Un(r,e,a,r.qKeyEvent===!0)},keystart:Va(r=>{a.enabled===!0&&r.qSkipRipple!==!0&&yt(r,a.modifiers.keyCodes)===!0&&r.type===`key${a.modifiers.early===!0?"down":"up"}`&&Un(r,e,a,!0)},300)};$n(a,t),e.__qripple=a,la(a,"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&&$n(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),ca(t,"main"),delete e._qripple)}}),Vn={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ba=Object.keys(Vn),Ha={align:{type:String,validator:e=>Ba.includes(e)}};function ja(e){return v.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Vn[t]}`})}function Ga(e){return e.appContext.config.globalProperties.$router!==void 0}function Wn(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function Bn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qa(e,t){for(const n in t){const a=t[n],r=e[n];if(typeof a=="string"){if(a!==r)return!1}else if(Array.isArray(r)===!1||r.length!==a.length||a.some((s,o)=>s!==r[o]))return!1}return!0}function Hn(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Ka(e,t){return Array.isArray(e)===!0?Hn(e,t):Array.isArray(t)===!0?Hn(t,e):e===t}function Ya(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(Ka(e[n],t[n])===!1)return!1;return!0}const Xa={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean};function Qa({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=v.getCurrentInstance(),{props:a,proxy:r,emit:s}=n,o=Ga(n),i=v.computed(()=>a.disable!==!0&&a.href!==void 0),u=t===!0?v.computed(()=>o===!0&&a.disable!==!0&&i.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):v.computed(()=>o===!0&&i.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),m=v.computed(()=>u.value===!0?_(a.to):null),h=v.computed(()=>m.value!==null),b=v.computed(()=>i.value===!0||h.value===!0),f=v.computed(()=>a.type==="a"||b.value===!0?"a":a.tag||e||"div"),I=v.computed(()=>i.value===!0?{href:a.href,target:a.target}:h.value===!0?{href:m.value.href,target:a.target}:{}),C=v.computed(()=>{if(h.value===!1)return-1;const{matched:L}=m.value,{length:k}=L,E=L[k-1];if(E===void 0)return-1;const R=r.$route.matched;if(R.length===0)return-1;const F=R.findIndex(Bn.bind(null,E));if(F!==-1)return F;const G=Wn(L[k-2]);return k>1&&Wn(E)===G&&R[R.length-1].path!==G?R.findIndex(Bn.bind(null,L[k-2])):F}),S=v.computed(()=>h.value===!0&&C.value!==-1&&qa(r.$route.params,m.value.params)),T=v.computed(()=>S.value===!0&&C.value===r.$route.matched.length-1&&Ya(r.$route.params,m.value.params)),d=v.computed(()=>h.value===!0?T.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":S.value===!0?` ${a.activeClass}`:"":"");function _(L){try{return r.$router.resolve(L)}catch{}return null}function y(L,{returnRouterError:k,to:E=a.to,replace:R=a.replace}={}){if(a.disable===!0)return L.preventDefault(),Promise.resolve(!1);if(L.metaKey||L.altKey||L.ctrlKey||L.shiftKey||L.button!==void 0&&L.button!==0||a.target==="_blank")return Promise.resolve(!1);L.preventDefault();const F=r.$router[R===!0?"replace":"push"](E);return k===!0?F:F.then(()=>{}).catch(()=>{})}function p(L){if(h.value===!0){const k=E=>y(L,E);s("click",L,k),L.defaultPrevented!==!0&&k()}else s("click",L)}return{hasRouterLink:h,hasHrefLink:i,hasLink:b,linkTag:f,resolvedLink:m,linkIsActive:S,linkIsExactActive:T,linkClass:d,linkAttrs:I,getLink:_,navigateToRouterLink:y,navigateOnClick:p}}const jn={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Ja={xs:8,sm:10,md:14,lg:20,xl:24},za=["button","submit","reset"],Za=/[^\s]\/[^\s]/,es=["flat","outline","push","unelevated"];function ts(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const ns={...{...Cn,...Xa,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...es.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:{...Ha.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function rs(e){const t=wn(e,Ja),n=ja(e),{hasRouterLink:a,hasLink:r,linkTag:s,linkAttrs:o,navigateOnClick:i}=Qa({fallbackTag:"button"}),u=v.computed(()=>{const T=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},T,{padding:e.padding.split(/\s+/).map(d=>d in jn?jn[d]+"px":d).join(" "),minWidth:"0",minHeight:"0"}):T}),m=v.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),h=v.computed(()=>e.disable!==!0&&e.loading!==!0),b=v.computed(()=>h.value===!0?e.tabindex||0:-1),f=v.computed(()=>ts(e,"standard")),I=v.computed(()=>{const T={tabindex:b.value};return r.value===!0?Object.assign(T,o.value):za.includes(e.type)===!0&&(T.type=e.type),s.value==="a"?(e.disable===!0?T["aria-disabled"]="true":T.href===void 0&&(T.role="button"),a.value!==!0&&Za.test(e.type)===!0&&(T.type=e.type)):e.disable===!0&&(T.disabled="",T["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(T,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),T}),C=v.computed(()=>{let T;e.color!==void 0?e.flat===!0||e.outline===!0?T=`text-${e.textColor||e.color}`:T=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(T=`text-${e.textColor}`);const d=e.round===!0?"round":`rectangle${m.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${f.value} q-btn--${d}`+(T!==void 0?" "+T:"")+(h.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=v.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:C,style:u,innerClasses:S,attributes:I,hasLink:r,linkTag:s,navigateOnClick:i,isActionable:h}}const{passiveCapture:oe}=je;let Me=null,Fe=null,xe=null;const Gn=Nt({name:"QBtn",props:{...ns,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:a}=v.getCurrentInstance(),{classes:r,style:s,innerClasses:o,attributes:i,hasLink:u,linkTag:m,navigateOnClick:h,isActionable:b}=rs(e),f=v.ref(null),I=v.ref(null);let C=null,S,T=null;const d=v.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),_=v.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:u.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),y=v.computed(()=>({center:e.round})),p=v.computed(()=>{const P=Math.max(0,Math.min(100,e.percentage));return P>0?{transition:"transform 0.6s",transform:`translateX(${P-100}%)`}:{}}),L=v.computed(()=>{if(e.loading===!0)return{onMousedown:le,onTouchstart:le,onClick:le,onKeydown:le,onKeyup:le};if(b.value===!0){const P={onClick:E,onKeydown:R,onMousedown:G};if(a.$q.platform.has.touch===!0){const q=e.onTouchstart!==void 0?"":"Passive";P[`onTouchstart${q}`]=F}return P}return{onClick:De}}),k=v.computed(()=>({ref:f,class:"q-btn q-btn-item non-selectable no-outline "+r.value,style:s.value,...i.value,...L.value}));function E(P){if(f.value!==null){if(P!==void 0){if(P.defaultPrevented===!0)return;const q=document.activeElement;if(e.type==="submit"&&q!==document.body&&f.value.contains(q)===!1&&q.contains(f.value)===!1){f.value.focus();const Oe=()=>{document.removeEventListener("keydown",De,!0),document.removeEventListener("keyup",Oe,oe),f.value!==null&&f.value.removeEventListener("blur",Oe,oe)};document.addEventListener("keydown",De,!0),document.addEventListener("keyup",Oe,oe),f.value.addEventListener("blur",Oe,oe)}}h(P)}}function R(P){f.value!==null&&(n("keydown",P),yt(P,[13,32])===!0&&Fe!==f.value&&(Fe!==null&&j(),P.defaultPrevented!==!0&&(f.value.focus(),Fe=f.value,f.value.classList.add("q-btn--active"),document.addEventListener("keyup",Y,!0),f.value.addEventListener("blur",Y,oe)),De(P)))}function F(P){f.value!==null&&(n("touchstart",P),P.defaultPrevented!==!0&&(Me!==f.value&&(Me!==null&&j(),Me=f.value,C=P.target,C.addEventListener("touchcancel",Y,oe),C.addEventListener("touchend",Y,oe)),S=!0,T!==null&&clearTimeout(T),T=setTimeout(()=>{T=null,S=!1},200)))}function G(P){f.value!==null&&(P.qSkipRipple=S===!0,n("mousedown",P),P.defaultPrevented!==!0&&xe!==f.value&&(xe!==null&&j(),xe=f.value,f.value.classList.add("q-btn--active"),document.addEventListener("mouseup",Y,oe)))}function Y(P){if(f.value!==null&&!(P!==void 0&&P.type==="blur"&&document.activeElement===f.value)){if(P!==void 0&&P.type==="keyup"){if(Fe===f.value&&yt(P,[13,32])===!0){const q=new MouseEvent("click",P);q.qKeyEvent=!0,P.defaultPrevented===!0&&ia(q),P.cancelBubble===!0&&hn(q),f.value.dispatchEvent(q),De(P),P.qKeyEvent=!0}n("keyup",P)}j()}}function j(P){const q=I.value;P!==!0&&(Me===f.value||xe===f.value)&&q!==null&&q!==document.activeElement&&(q.setAttribute("tabindex",-1),q.focus()),Me===f.value&&(C!==null&&(C.removeEventListener("touchcancel",Y,oe),C.removeEventListener("touchend",Y,oe)),Me=C=null),xe===f.value&&(document.removeEventListener("mouseup",Y,oe),xe=null),Fe===f.value&&(document.removeEventListener("keyup",Y,!0),f.value!==null&&f.value.removeEventListener("blur",Y,oe),Fe=null),f.value!==null&&f.value.classList.remove("q-btn--active")}function le(P){De(P),P.qSkipRipple=!0}return v.onBeforeUnmount(()=>{j(!0)}),Object.assign(a,{click:P=>{b.value===!0&&E(P)}}),()=>{let P=[];e.icon!==void 0&&P.push(v.h(xn,{name:e.icon,left:e.stack!==!0&&d.value===!0,role:"img"})),d.value===!0&&P.push(v.h("span",{class:"block"},[e.label])),P=qe(t.default,P),e.iconRight!==void 0&&e.round===!1&&P.push(v.h(xn,{name:e.iconRight,right:e.stack!==!0&&d.value===!0,role:"img"}));const q=[v.h("span",{class:"q-focus-helper",ref:I})];return e.loading===!0&&e.percentage!==void 0&&q.push(v.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[v.h("span",{class:"q-btn__progress-indicator fit block",style:p.value})])),q.push(v.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+o.value},P)),e.loading!==null&&q.push(v.h(v.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[v.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[v.h(Ua)])]:null)),v.withDirectives(v.h(m.value,k.value,q),[[Wa,_.value,void 0,y.value]])}}}),as=v.defineComponent({name:"MyButton",components:{QBtn:Gn},props:{label:{type:String,required:!0},color:{type:String,default:"primary"}},setup(e){return{onClick:()=>{console.log(`${e.label} button clicked!`)}}}}),ss=(e,t)=>{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n};function os(e,t,n,a,r,s){return v.openBlock(),v.createElementBlock(v.Fragment,null,[t[0]||(t[0]=v.createTextVNode("abc")),v.createVNode(Gn,{label:e.label,color:e.color,onClick:e.onClick},null,8,["label","color","onClick"])],64)}const qn=ss(as,[["render",os],["__scopeId","data-v-dec36ed8"]]),is=(e,t)=>{e.use(t)},ls=(e,t,n)=>{e.component(t,n)},cs={install(e){ls(e,"KMyButton",qn)}},us={en:{test:"Test"},es:{test:"Test"}};/*!
1
+ (function(bt,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(bt=typeof globalThis<"u"?globalThis:bt||self,o(bt.QuasarFactoryLib={},bt.Vue))})(this,function(bt,o){"use strict";function tt(e,t,n,l){return Object.defineProperty(e,t,{get:n,set:l,enumerable:!0}),e}function Li(e,t){for(const n in t)tt(e,n,t[n]);return e}const xt=o.ref(!1);let fo;function Oi(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 Ii(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 Cl="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Pi(e){const t=e.toLowerCase(),n=Ii(t),l=Oi(t,n),a={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};l.browser&&(a[l.browser]=!0,a.version=l.version,a.versionNumber=parseInt(l.version,10)),l.platform&&(a[l.platform]=!0);const r=a.android||a.ios||a.bb||a.blackberry||a.ipad||a.iphone||a.ipod||a.kindle||a.playbook||a.silk||a["windows phone"];if(r===!0||t.indexOf("mobile")!==-1?a.mobile=!0:a.desktop=!0,a["windows phone"]&&(a.winphone=!0,delete a["windows phone"]),a.edga||a.edgios||a.edg?(a.edge=!0,l.browser="edge"):a.crios?(a.chrome=!0,l.browser="chrome"):a.fxios&&(a.firefox=!0,l.browser="firefox"),(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a.vivaldi&&(l.browser="vivaldi",a.vivaldi=!0),(a.chrome||a.opr||a.safari||a.vivaldi||a.mobile===!0&&a.ios!==!0&&r!==!0)&&(a.webkit=!0),a.opr&&(l.browser="opera",a.opera=!0),a.safari&&(a.blackberry||a.bb?(l.browser="blackberry",a.blackberry=!0):a.playbook?(l.browser="playbook",a.playbook=!0):a.android?(l.browser="android",a.android=!0):a.kindle?(l.browser="kindle",a.kindle=!0):a.silk&&(l.browser="silk",a.silk=!0)),a.name=l.browser,a.platform=l.platform,t.indexOf("electron")!==-1)a.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)a.bex=!0;else{if(window.Capacitor!==void 0?(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper="cordova"),xt.value===!0&&(fo={is:{...a}}),Cl===!0&&a.mac===!0&&(a.desktop===!0&&a.safari===!0||a.nativeMobile===!0&&a.android!==!0&&a.ios!==!0&&a.ipad!==!0)){delete a.mac,delete a.desktop;const i=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(a,{mobile:!0,ios:!0,platform:i,[i]:!0})}a.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete a.desktop,a.mobile=!0)}return a}const El=navigator.userAgent||navigator.vendor||window.opera,Vi={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Ie={userAgent:El,is:Pi(El),has:{touch:Cl},within:{iframe:window.self!==window.top}},Rn={install(e){const{$q:t}=e;xt.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,Ie),xt.value=!1}),t.platform=o.reactive(this)):t.platform=this}};{let e;tt(Ie.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Rn,Ie),xt.value===!0&&(Object.assign(Rn,fo,Vi),fo=null)}function ve(e){return o.markRaw(o.defineComponent(e))}function Ri(e){return o.markRaw(e)}const An=(e,t)=>{const n=o.reactive(e);for(const l in e)tt(t,l,()=>n[l],a=>{n[l]=a});return t},$e={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign($e,{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 Qt(){}function Tl(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 Ai(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 _t(e){e.stopPropagation()}function dt(e){e.cancelable!==!1&&e.preventDefault()}function Me(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function mo(e,t,n){const l=`__q_${t}_evt`;e[l]=e[l]!==void 0?e[l].concat(n):n,n.forEach(a=>{a[0].addEventListener(a[1],e[a[2]],$e[a[3]])})}function xl(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(l=>{l[0].removeEventListener(l[1],e[l[2]],$e[l[3]])}),e[n]=void 0)}function ho(e,t=250,n){let l=null;function a(){const r=arguments,i=()=>{l=null,e.apply(this,r)};l!==null&&clearTimeout(l),l=setTimeout(i,t)}return a.cancel=()=>{l!==null&&clearTimeout(l)},a}const go=["sm","md","lg","xl"],{passive:Nl}=$e,Mi=An({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:Qt,setDebounce:Qt,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,l=n||window,a=document.scrollingElement||document.documentElement,r=n===void 0||Ie.is.mobile===!0?()=>[Math.max(window.innerWidth,a.clientWidth),Math.max(window.innerHeight,a.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-a.clientWidth,n.height*n.scale+window.innerHeight-a.clientHeight],i=e.config.screen!==void 0&&e.config.screen.bodyClasses===!0;this.__update=c=>{const[f,h]=r();if(h!==this.height&&(this.height=h),f!==this.width)this.width=f;else if(c!==!0)return;let S=this.sizes;this.gt.xs=f>=S.sm,this.gt.sm=f>=S.md,this.gt.md=f>=S.lg,this.gt.lg=f>=S.xl,this.lt.sm=f<S.sm,this.lt.md=f<S.md,this.lt.lg=f<S.lg,this.lt.xl=f<S.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,S=this.xs===!0&&"xs"||this.sm===!0&&"sm"||this.md===!0&&"md"||this.lg===!0&&"lg"||"xl",S!==this.name&&(i===!0&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${S}`)),this.name=S)};let s,u={},m=16;this.setSizes=c=>{go.forEach(f=>{c[f]!==void 0&&(u[f]=c[f])})},this.setDebounce=c=>{m=c};const d=()=>{const c=getComputedStyle(document.body);c.getPropertyValue("--q-size-sm")&&go.forEach(f=>{this.sizes[f]=parseInt(c.getPropertyValue(`--q-size-${f}`),10)}),this.setSizes=f=>{go.forEach(h=>{f[h]&&(this.sizes[h]=f[h])}),this.__update(!0)},this.setDebounce=f=>{s!==void 0&&l.removeEventListener("resize",s,Nl),s=f>0?ho(this.__update,f):this.__update,l.addEventListener("resize",s,Nl)},this.setDebounce(m),Object.keys(u).length!==0?(this.setSizes(u),u=void 0):this.__update(),i===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};xt.value===!0?t.push(d):d()}}),We=An({isActive:!1,mode:!1},{__media:void 0,set(e){We.mode=e,e==="auto"?(We.__media===void 0&&(We.__media=window.matchMedia("(prefers-color-scheme: dark)"),We.__updateMedia=()=>{We.set("auto")},We.__media.addListener(We.__updateMedia)),e=We.__media.matches):We.__media!==void 0&&(We.__media.removeListener(We.__updateMedia),We.__media=void 0),We.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){We.set(We.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 Di(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 Ll=!1;function Bi(e){Ll=e.isComposing===!0}function po(e){return Ll===!0||e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Dt(e,t){return po(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Ol(e){if(e.ios===!0)return"ios";if(e.android===!0)return"android"}function qi({is:e,has:t,within:n},l){const a=[e.desktop===!0?"desktop":"mobile",`${t.touch===!1?"no-":""}touch`];if(e.mobile===!0){const r=Ol(e);r!==void 0&&a.push("platform-"+r)}if(e.nativeMobile===!0){const r=e.nativeMobileWrapper;a.push(r),a.push("native-mobile"),e.ios===!0&&(l[r]===void 0||l[r].iosStatusBarPadding!==!1)&&a.push("q-ios-padding")}else e.electron===!0?a.push("electron"):e.bex===!0&&a.push("bex");return n.iframe===!0&&a.push("within-iframe"),a}function Fi(){const{is:e}=Ie,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 a=Ol(e);a!==void 0&&n.add(`platform-${a}`)}}Ie.has.touch===!0&&(n.delete("no-touch"),n.add("touch")),Ie.within.iframe===!0&&n.add("within-iframe");const l=Array.from(n).join(" ");t!==l&&(document.body.className=l)}function $i(e){for(const t in e)Di(t,e[t])}const Ui={install(e){if(this.__installed!==!0){if(xt.value===!0)Fi();else{const{$q:t}=e;t.config.brand!==void 0&&$i(t.config.brand);const n=qi(Ie,t.config);document.body.classList.add.apply(document.body.classList,n)}Ie.is.ios===!0&&document.body.addEventListener("touchstart",Qt),window.addEventListener("keydown",Bi,!0)}}},Il=()=>!0;function Hi(e){return typeof e=="string"&&e!==""&&e!=="/"&&e!=="#/"}function zi(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 ji(e){if(e.backButtonExit===!1)return()=>!1;if(e.backButtonExit==="*")return Il;const t=["#/"];return Array.isArray(e.backButtonExit)===!0&&t.push(...e.backButtonExit.filter(Hi).map(zi)),()=>t.includes(window.location.hash)}const mn={__history:[],add:Qt,remove:Qt,install({$q:e}){if(this.__installed===!0)return;const{cordova:t,capacitor:n}=Ie.is;if(t!==!0&&n!==!0)return;const l=e.config[t===!0?"cordova":"capacitor"];if(l!==void 0&&l.backButton===!1||n===!0&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=i=>{i.condition===void 0&&(i.condition=Il),this.__history.push(i)},this.remove=i=>{const s=this.__history.indexOf(i);s>=0&&this.__history.splice(s,1)};const a=ji(Object.assign({backButtonExit:!0},l)),r=()=>{if(this.__history.length){const i=this.__history[this.__history.length-1];i.condition()===!0&&(this.__history.pop(),i.handler())}else a()===!0?navigator.app.exitApp():window.history.back()};t===!0?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",r,!1)}):window.Capacitor.Plugins.App.addListener("backButton",r)}},Pl={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 Vl(){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 Nt=An({__qLang:{}},{getLocale:Vl,set(e=Pl,t){const n={...e,rtl:e.rtl===!0,getLocale:Vl};{if(n.set=Nt.set,Nt.__langConfig===void 0||Nt.__langConfig.noHtmlAttrs!==!0){const l=document.documentElement;l.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),l.setAttribute("lang",n.isoName)}Object.assign(Nt.__qLang,n)}},install({$q:e,lang:t,ssrContext:n}){e.lang=Nt.__qLang,Nt.__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(l){return Reflect.ownKeys(l).filter(a=>a!=="set"&&a!=="getLocale")}}),this.set(t||Pl))}}),Wi={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"}},Mn=An({iconMapFn:null,__qIconSet:{}},{set(e,t){const n={...e};n.set=Mn.set,Object.assign(Mn.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,tt(e,"iconMapFn",()=>this.iconMapFn,l=>{this.iconMapFn=l}),this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys(l){return Reflect.ownKeys(l).filter(a=>a!=="set")}}),this.set(t||Wi))}}),Ki="_q_",Gi="_q_fo_",Dn={};let Rl=!1;function Qi(){Rl=!0}function St(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,l;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(l=n;l--!==0;)if(St(e[l],t[l])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let r=e.entries();for(l=r.next();l.done!==!0;){if(t.has(l.value[0])!==!0)return!1;l=r.next()}for(r=e.entries(),l=r.next();l.done!==!0;){if(St(l.value[1],t.get(l.value[0]))!==!0)return!1;l=r.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const r=e.entries();for(l=r.next();l.done!==!0;){if(t.has(l.value[0])!==!0)return!1;l=r.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(l=n;l--!==0;)if(e[l]!==t[l])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 a=Object.keys(e).filter(r=>e[r]!==void 0);if(n=a.length,n!==Object.keys(t).filter(r=>t[r]!==void 0).length)return!1;for(l=n;l--!==0;){const r=a[l];if(St(e[r],t[r])!==!0)return!1}return!0}return e!==e&&t!==t}function bo(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}function Al(e){return Object.prototype.toString.call(e)==="[object Date]"}function _o(e){return typeof e=="number"&&isFinite(e)}const Ml=[Rn,Ui,We,Mi,mn,Nt,Mn];function Dl(e,t){t.forEach(n=>{n.install(e),n.__installed=!0})}function Yi(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(Ki,n.$q),Dl(n,Ml),t.components!==void 0&&Object.values(t.components).forEach(l=>{bo(l)===!0&&l.name!==void 0&&e.component(l.name,l)}),t.directives!==void 0&&Object.values(t.directives).forEach(l=>{bo(l)===!0&&l.name!==void 0&&e.directive(l.name,l)}),t.plugins!==void 0&&Dl(n,Object.values(t.plugins).filter(l=>typeof l.install=="function"&&Ml.includes(l)===!1)),xt.value===!0&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach(l=>{l()}),n.$q.onSSRHydrated=()=>{}})}const Xi={name:"Quasar",version:"2.17.7",install:function(e,t={}){const n={version:"2.17.7"};Rl===!1?(t.config!==void 0&&Object.assign(Dn,t.config),n.config={...Dn},Qi()):n.config=t.config||{},Yi(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},lang:Nt,iconSet:Mn},vo={xs:18,sm:24,md:32,lg:38,xl:46},hn={size:String};function gn(e,t=vo){return o.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Pe(e,t){return e!==void 0&&e()||t}function Bl(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function kt(e,t){return e!==void 0?t.concat(e()):t}function Ji(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function Zi(e,t,n,l,a,r){t.key=l+a;const i=o.h(e,t,n);return a===!0?o.withDirectives(i,r()):i}const ql="0 0 24 24",Fl=e=>e,yo=e=>`ionicons ${e}`,$l={"mdi-":e=>`mdi ${e}`,"icon-":Fl,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":yo,"ion-ios":yo,"ion-logo":yo,"iconfont ":Fl,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},Ul={o_:"-outlined",r_:"-round",s_:"-sharp"},Hl={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},es=new RegExp("^("+Object.keys($l).join("|")+")"),ts=new RegExp("^("+Object.keys(Ul).join("|")+")"),zl=new RegExp("^("+Object.keys(Hl).join("|")+")"),ns=/^[Mm]\s?[-+]?\.?\d/,os=/^img:/,ls=/^svguse:/,as=/^ion-/,rs=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,Ue=ve({name:"QIcon",props:{...hn,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=o.getCurrentInstance(),l=gn(e),a=o.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=o.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(ns.test(s)===!0){const[d,c=ql]=s.split("|");return{svg:!0,viewBox:c,nodes:d.split("&&").map(f=>{const[h,S,E]=f.split("@@");return o.h("path",{style:S,d:h,transform:E})})}}if(os.test(s)===!0)return{img:!0,src:s.substring(4)};if(ls.test(s)===!0){const[d,c=ql]=s.split("|");return{svguse:!0,src:d.substring(7),viewBox:c}}let u=" ";const m=s.match(es);if(m!==null)i=$l[m[1]](s);else if(rs.test(s)===!0)i=s;else if(as.test(s)===!0)i=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(zl.test(s)===!0){i="notranslate material-symbols";const d=s.match(zl);d!==null&&(s=s.substring(6),i+=Hl[d[1]]),u=s}else{i="notranslate material-icons";const d=s.match(ts);d!==null&&(s=s.substring(2),i+=Ul[d[1]]),u=s}return{cls:i,content:u}});return()=>{const i={class:a.value,style:l.value,"aria-hidden":"true",role:"presentation"};return r.value.none===!0?o.h(e.tag,i,Pe(t.default)):r.value.img===!0?o.h(e.tag,i,kt(t.default,[o.h("img",{src:r.value.src})])):r.value.svg===!0?o.h(e.tag,i,kt(t.default,[o.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?o.h(e.tag,i,kt(t.default,[o.h("svg",{viewBox:r.value.viewBox},[o.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(i.class+=" "+r.value.cls),o.h(e.tag,i,kt(t.default,[r.value.content])))}}}),is={size:{type:[String,Number],default:"1em"},color:String};function ss(e){return{cSize:o.computed(()=>e.size in vo?`${vo[e.size]}px`:e.size),classes:o.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const jl=ve({name:"QSpinner",props:{...is,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=ss(e);return()=>o.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[o.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function So(e,t){const n=e.style;for(const l in t)n[l]=t[l]}function us(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=o.unref(e);if(t)return t.$el||t}function Wl(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 cs(e,t=250){let n=!1,l;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),l=e.apply(this,arguments)),l}}function Kl(e,t,n,l){n.modifiers.stop===!0&&_t(e);const a=n.modifiers.color;let r=n.modifiers.center;r=r===!0||l===!0;const i=document.createElement("span"),s=document.createElement("span"),u=Tl(e),{left:m,top:d,width:c,height:f}=t.getBoundingClientRect(),h=Math.sqrt(c*c+f*f),S=h/2,E=`${(c-h)/2}px`,b=r?E:`${u.left-m-S}px`,p=`${(f-h)/2}px`,_=r?p:`${u.top-d-S}px`;s.className="q-ripple__inner",So(s,{height:`${h}px`,width:`${h}px`,transform:`translate3d(${b},${_},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${a?" text-"+a:""}`,i.setAttribute("dir","ltr"),i.appendChild(s),t.appendChild(i);const w=()=>{i.remove(),clearTimeout(y)};n.abort.push(w);let y=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${E},${p},0) scale3d(1,1,1)`,s.style.opacity=.2,y=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,y=setTimeout(()=>{i.remove(),n.abort.splice(n.abort.indexOf(w),1)},275)},250)},50)}function Gl(e,{modifiers:t,value:n,arg:l}){const a=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:a.early===!0,stop:a.stop===!0,center:a.center===!0,color:a.color||l,keyCodes:[].concat(a.keyCodes||13)}}const Ql=Ri({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const l={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(a){l.enabled===!0&&a.qSkipRipple!==!0&&a.type===(l.modifiers.early===!0?"pointerdown":"click")&&Kl(a,e,l,a.qKeyEvent===!0)},keystart:cs(a=>{l.enabled===!0&&a.qSkipRipple!==!0&&Dt(a,l.modifiers.keyCodes)===!0&&a.type===`key${l.modifiers.early===!0?"down":"up"}`&&Kl(a,e,l,!0)},300)};Gl(l,t),e.__qripple=l,mo(l,"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&&Gl(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),xl(t,"main"),delete e._qripple)}}),Yl={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},ds=Object.keys(Yl),fs={align:{type:String,validator:e=>ds.includes(e)}};function ms(e){return o.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Yl[t]}`})}function ko(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 wo(e){return e.appContext.config.globalProperties.$router!==void 0}function Xl(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Jl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function Zl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function hs(e,t){for(const n in t){const l=t[n],a=e[n];if(typeof l=="string"){if(l!==a)return!1}else if(Array.isArray(a)===!1||a.length!==l.length||l.some((r,i)=>r!==a[i]))return!1}return!0}function ea(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,l)=>n===t[l]):e.length===1&&e[0]===t}function gs(e,t){return Array.isArray(e)===!0?ea(e,t):Array.isArray(t)===!0?ea(t,e):e===t}function ps(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(gs(e[n],t[n])===!1)return!1;return!0}const ta={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},bs={...ta,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function na({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=o.getCurrentInstance(),{props:l,proxy:a,emit:r}=n,i=wo(n),s=o.computed(()=>l.disable!==!0&&l.href!==void 0),u=t===!0?o.computed(()=>i===!0&&l.disable!==!0&&s.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""):o.computed(()=>i===!0&&s.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""),m=o.computed(()=>u.value===!0?_(l.to):null),d=o.computed(()=>m.value!==null),c=o.computed(()=>s.value===!0||d.value===!0),f=o.computed(()=>l.type==="a"||c.value===!0?"a":l.tag||e||"div"),h=o.computed(()=>s.value===!0?{href:l.href,target:l.target}:d.value===!0?{href:m.value.href,target:l.target}:{}),S=o.computed(()=>{if(d.value===!1)return-1;const{matched:x}=m.value,{length:O}=x,C=x[O-1];if(C===void 0)return-1;const D=a.$route.matched;if(D.length===0)return-1;const I=D.findIndex(Zl.bind(null,C));if(I!==-1)return I;const V=Jl(x[O-2]);return O>1&&Jl(C)===V&&D[D.length-1].path!==V?D.findIndex(Zl.bind(null,x[O-2])):I}),E=o.computed(()=>d.value===!0&&S.value!==-1&&hs(a.$route.params,m.value.params)),b=o.computed(()=>E.value===!0&&S.value===a.$route.matched.length-1&&ps(a.$route.params,m.value.params)),p=o.computed(()=>d.value===!0?b.value===!0?` ${l.exactActiveClass} ${l.activeClass}`:l.exact===!0?"":E.value===!0?` ${l.activeClass}`:"":"");function _(x){try{return a.$router.resolve(x)}catch{}return null}function w(x,{returnRouterError:O,to:C=l.to,replace:D=l.replace}={}){if(l.disable===!0)return x.preventDefault(),Promise.resolve(!1);if(x.metaKey||x.altKey||x.ctrlKey||x.shiftKey||x.button!==void 0&&x.button!==0||l.target==="_blank")return Promise.resolve(!1);x.preventDefault();const I=a.$router[D===!0?"replace":"push"](C);return O===!0?I:I.then(()=>{}).catch(()=>{})}function y(x){if(d.value===!0){const O=C=>w(x,C);r("click",x,O),x.defaultPrevented!==!0&&O()}else r("click",x)}return{hasRouterLink:d,hasHrefLink:s,hasLink:c,linkTag:f,resolvedLink:m,linkIsActive:E,linkIsExactActive:b,linkClass:p,linkAttrs:h,getLink:_,navigateToRouterLink:w,navigateOnClick:y}}const oa={none:0,xs:4,sm:8,md:16,lg:24,xl:32},_s={xs:8,sm:10,md:14,lg:20,xl:24},vs=["button","submit","reset"],ys=/[^\s]\/[^\s]/,Ss=["flat","outline","push","unelevated"];function ks(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const ws={...{...hn,...ta,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Ss.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:{...fs.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Cs(e){const t=gn(e,_s),n=ms(e),{hasRouterLink:l,hasLink:a,linkTag:r,linkAttrs:i,navigateOnClick:s}=na({fallbackTag:"button"}),u=o.computed(()=>{const b=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},b,{padding:e.padding.split(/\s+/).map(p=>p in oa?oa[p]+"px":p).join(" "),minWidth:"0",minHeight:"0"}):b}),m=o.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),d=o.computed(()=>e.disable!==!0&&e.loading!==!0),c=o.computed(()=>d.value===!0?e.tabindex||0:-1),f=o.computed(()=>ks(e,"standard")),h=o.computed(()=>{const b={tabindex:c.value};return a.value===!0?Object.assign(b,i.value):vs.includes(e.type)===!0&&(b.type=e.type),r.value==="a"?(e.disable===!0?b["aria-disabled"]="true":b.href===void 0&&(b.role="button"),l.value!==!0&&ys.test(e.type)===!0&&(b.type=e.type)):e.disable===!0&&(b.disabled="",b["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(b,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),b}),S=o.computed(()=>{let b;e.color!==void 0?e.flat===!0||e.outline===!0?b=`text-${e.textColor||e.color}`:b=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(b=`text-${e.textColor}`);const p=e.round===!0?"round":`rectangle${m.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${f.value} q-btn--${p}`+(b!==void 0?" "+b:"")+(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":"")}),E=o.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:S,style:u,innerClasses:E,attributes:h,hasLink:a,linkTag:r,navigateOnClick:s,isActionable:d}}const{passiveCapture:ot}=$e;let Yt=null,Xt=null,Jt=null;const wt=ve({name:"QBtn",props:{...ws,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:l}=o.getCurrentInstance(),{classes:a,style:r,innerClasses:i,attributes:s,hasLink:u,linkTag:m,navigateOnClick:d,isActionable:c}=Cs(e),f=o.ref(null),h=o.ref(null);let S=null,E,b=null;const p=o.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),_=o.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:u.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),w=o.computed(()=>({center:e.round})),y=o.computed(()=>{const M=Math.max(0,Math.min(100,e.percentage));return M>0?{transition:"transform 0.6s",transform:`translateX(${M-100}%)`}:{}}),x=o.computed(()=>{if(e.loading===!0)return{onMousedown:W,onTouchstart:W,onClick:W,onKeydown:W,onKeyup:W};if(c.value===!0){const M={onClick:C,onKeydown:D,onMousedown:V};if(l.$q.platform.has.touch===!0){const J=e.onTouchstart!==void 0?"":"Passive";M[`onTouchstart${J}`]=I}return M}return{onClick:Me}}),O=o.computed(()=>({ref:f,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:r.value,...s.value,...x.value}));function C(M){if(f.value!==null){if(M!==void 0){if(M.defaultPrevented===!0)return;const J=document.activeElement;if(e.type==="submit"&&J!==document.body&&f.value.contains(J)===!1&&J.contains(f.value)===!1){f.value.focus();const X=()=>{document.removeEventListener("keydown",Me,!0),document.removeEventListener("keyup",X,ot),f.value!==null&&f.value.removeEventListener("blur",X,ot)};document.addEventListener("keydown",Me,!0),document.addEventListener("keyup",X,ot),f.value.addEventListener("blur",X,ot)}}d(M)}}function D(M){f.value!==null&&(n("keydown",M),Dt(M,[13,32])===!0&&Xt!==f.value&&(Xt!==null&&N(),M.defaultPrevented!==!0&&(f.value.focus(),Xt=f.value,f.value.classList.add("q-btn--active"),document.addEventListener("keyup",B,!0),f.value.addEventListener("blur",B,ot)),Me(M)))}function I(M){f.value!==null&&(n("touchstart",M),M.defaultPrevented!==!0&&(Yt!==f.value&&(Yt!==null&&N(),Yt=f.value,S=M.target,S.addEventListener("touchcancel",B,ot),S.addEventListener("touchend",B,ot)),E=!0,b!==null&&clearTimeout(b),b=setTimeout(()=>{b=null,E=!1},200)))}function V(M){f.value!==null&&(M.qSkipRipple=E===!0,n("mousedown",M),M.defaultPrevented!==!0&&Jt!==f.value&&(Jt!==null&&N(),Jt=f.value,f.value.classList.add("q-btn--active"),document.addEventListener("mouseup",B,ot)))}function B(M){if(f.value!==null&&!(M!==void 0&&M.type==="blur"&&document.activeElement===f.value)){if(M!==void 0&&M.type==="keyup"){if(Xt===f.value&&Dt(M,[13,32])===!0){const J=new MouseEvent("click",M);J.qKeyEvent=!0,M.defaultPrevented===!0&&dt(J),M.cancelBubble===!0&&_t(J),f.value.dispatchEvent(J),Me(M),M.qKeyEvent=!0}n("keyup",M)}N()}}function N(M){const J=h.value;M!==!0&&(Yt===f.value||Jt===f.value)&&J!==null&&J!==document.activeElement&&(J.setAttribute("tabindex",-1),J.focus()),Yt===f.value&&(S!==null&&(S.removeEventListener("touchcancel",B,ot),S.removeEventListener("touchend",B,ot)),Yt=S=null),Jt===f.value&&(document.removeEventListener("mouseup",B,ot),Jt=null),Xt===f.value&&(document.removeEventListener("keyup",B,!0),f.value!==null&&f.value.removeEventListener("blur",B,ot),Xt=null),f.value!==null&&f.value.classList.remove("q-btn--active")}function W(M){Me(M),M.qSkipRipple=!0}return o.onBeforeUnmount(()=>{N(!0)}),Object.assign(l,{click:M=>{c.value===!0&&C(M)}}),()=>{let M=[];e.icon!==void 0&&M.push(o.h(Ue,{name:e.icon,left:e.stack!==!0&&p.value===!0,role:"img"})),p.value===!0&&M.push(o.h("span",{class:"block"},[e.label])),M=kt(t.default,M),e.iconRight!==void 0&&e.round===!1&&M.push(o.h(Ue,{name:e.iconRight,right:e.stack!==!0&&p.value===!0,role:"img"}));const J=[o.h("span",{class:"q-focus-helper",ref:h})];return e.loading===!0&&e.percentage!==void 0&&J.push(o.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[o.h("span",{class:"q-btn__progress-indicator fit block",style:y.value})])),J.push(o.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+i.value},M)),e.loading!==null&&J.push(o.h(o.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[o.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[o.h(jl)])]:null)),o.withDirectives(o.h(m.value,O.value,J),[[Ql,_.value,void 0,w.value]])}}}),Es=o.defineComponent({name:"MyButton",components:{QBtn:wt},props:{label:{type:String,required:!0},color:{type:String,default:"primary"}},setup(e){return{onClick:()=>{console.log(`${e.label} button clicked!`)}}}}),Je=(e,t)=>{const n=e.__vccOpts||e;for(const[l,a]of t)n[l]=a;return n};function Ts(e,t,n,l,a,r){return o.openBlock(),o.createElementBlock(o.Fragment,null,[t[0]||(t[0]=o.createTextVNode("abc")),o.createVNode(wt,{label:e.label,color:e.color,onClick:e.onClick},null,8,["label","color","onClick"])],64)}const la=Je(Es,[["render",Ts],["__scopeId","data-v-dec36ed8"]]),aa=(e,t)=>{e.use(t)},ra=(e,t,n)=>{e.component(t,n)},xs={install(e){ra(e,"KMyButton",la)}},lt={dark:{type:Boolean,default:null}};function at(e,t){return o.computed(()=>e.dark===null?t.dark.isActive:e.dark)}const Ns={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Co={xs:2,sm:4,md:8,lg:16,xl:24},ia=ve({name:"QSeparator",props:{...lt,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=o.getCurrentInstance(),n=at(e,t.proxy.$q),l=o.computed(()=>e.vertical===!0?"vertical":"horizontal"),a=o.computed(()=>` q-separator--${l.value}`),r=o.computed(()=>e.inset!==!1?`${a.value}-${Ns[e.inset]}`:""),i=o.computed(()=>`q-separator${a.value}${r.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),s=o.computed(()=>{const u={};if(e.size!==void 0&&(u[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const m=e.spaced===!0?`${Co.md}px`:e.spaced in Co?`${Co[e.spaced]}px`:e.spaced,d=e.vertical===!0?["Left","Right"]:["Top","Bottom"];u[`margin${d[0]}`]=u[`margin${d[1]}`]=m}return u});return()=>o.h("hr",{class:i.value,style:s.value,"aria-orientation":l.value})}}),Eo=ve({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const l=o.getCurrentInstance(),{proxy:{$q:a}}=l,r=i=>{n("click",i)};return()=>{if(e.props===void 0)return o.h("th",{class:e.autoWidth===!0?"q-table--col-auto-width":"",onClick:r},Pe(t.default));let i,s;const u=l.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=Bl(t.default,[]),s[d](o.h(Ue,{class:i.__iconClass,name:a.iconSet.table.arrowUp}))}else s=Pe(t.default);const m={class:i.__thClass+(e.autoWidth===!0?" q-table--col-auto-width":""),style:i.headerStyle,onClick:d=>{i.sortable===!0&&e.props.sort(i),r(d)}};return o.h("th",m,s)}}}),Ls=["ul","ol"],sa=ve({name:"QList",props:{...lt,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const n=o.getCurrentInstance(),l=at(e,n.proxy.$q),a=o.computed(()=>Ls.includes(e.tag)?null:"list"),r=o.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(l.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>o.h(e.tag,{class:r.value,role:a.value},Pe(t.default))}}),Os=["horizontal","vertical","cell","none"],ua=ve({name:"QMarkupTable",props:{...lt,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>Os.includes(e)}},setup(e,{slots:t}){const n=o.getCurrentInstance(),l=at(e,n.proxy.$q),a=o.computed(()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(l.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()=>o.h("div",{class:a.value},[o.h("table",{class:"q-table"},Pe(t.default))])}});function ca(e,t){return o.h("div",e,[o.h("table",{class:"q-table"},t)])}let Bn=!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,Bn=e.scrollLeft>=0,e.remove()}const ft=1e3,Is=["start","center","end","start-force","center-force","end-force"],da=Array.prototype.filter,Ps=window.getComputedStyle(document.body).overflowAnchor===void 0?Qt: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||[];da.call(n,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const l=n[t];l&&l.dataset&&(l.dataset.qVsAnchor="")}))};function Zt(e,t){return e+t}function To(e,t,n,l,a,r,i,s){const u=e===window?document.scrollingElement||document.documentElement:e,m=a===!0?"offsetWidth":"offsetHeight",d={scrollStart:0,scrollViewSize:-i-s,scrollMaxSize:0,offsetStart:-i,offsetEnd:-s};if(a===!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,r===!0&&(d.scrollStart=(Bn===!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[m]);if(l!==null)for(let c=l.nextElementSibling;c!==null;c=c.nextElementSibling)c.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetEnd+=c[m]);if(t!==e){const c=u.getBoundingClientRect(),f=t.getBoundingClientRect();a===!0?(d.offsetStart+=f.left-c.left,d.offsetEnd-=f.width):(d.offsetStart+=f.top-c.top,d.offsetEnd-=f.height),e!==window&&(d.offsetStart+=d.scrollStart),d.offsetEnd+=d.scrollMaxSize-d.offsetStart}return d}function fa(e,t,n,l){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(l===!0&&(t=(Bn===!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?(l===!0&&(t=(Bn===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function pn(e,t,n,l){if(n>=l)return 0;const a=t.length,r=Math.floor(n/ft),i=Math.floor((l-1)/ft)+1;let s=e.slice(r,i).reduce(Zt,0);return n%ft!==0&&(s-=t.slice(r*ft,n).reduce(Zt,0)),l%ft!==0&&l!==a&&(s-=t.slice(l,i*ft).reduce(Zt,0)),s}const ma={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]},ha=Object.keys(ma),xo={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...ma};function ga({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:l}){const a=o.getCurrentInstance(),{props:r,emit:i,proxy:s}=a,{$q:u}=s;let m,d,c,f=[],h;const S=o.ref(0),E=o.ref(0),b=o.ref({}),p=o.ref(null),_=o.ref(null),w=o.ref(null),y=o.ref({from:0,to:0}),x=o.computed(()=>r.tableColspan!==void 0?r.tableColspan:100);l===void 0&&(l=o.computed(()=>r.virtualScrollItemSize));const O=o.computed(()=>l.value+";"+r.virtualScrollHorizontal),C=o.computed(()=>O.value+";"+r.virtualScrollSliceRatioBefore+";"+r.virtualScrollSliceRatioAfter);o.watch(C,()=>{X()}),o.watch(O,D);function D(){J(d,!0)}function I(L){J(L===void 0?d:L)}function V(L,T){const j=t();if(j==null||j.nodeType===8)return;const ae=To(j,n(),p.value,_.value,r.virtualScrollHorizontal,u.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd);c!==ae.scrollViewSize&&X(ae.scrollViewSize),N(j,ae,Math.min(e.value-1,Math.max(0,parseInt(L,10)||0)),0,Is.indexOf(T)!==-1?T:d!==-1&&L>d?"end":"start")}function B(){const L=t();if(L==null||L.nodeType===8)return;const T=To(L,n(),p.value,_.value,r.virtualScrollHorizontal,u.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd),j=e.value-1,ae=T.scrollMaxSize-T.offsetStart-T.offsetEnd-E.value;if(m===T.scrollStart)return;if(T.scrollMaxSize<=0){N(L,T,0,0);return}c!==T.scrollViewSize&&X(T.scrollViewSize),W(y.value.from);const re=Math.floor(T.scrollMaxSize-Math.max(T.scrollViewSize,T.offsetEnd)-Math.min(h[j],T.scrollViewSize/2));if(re>0&&Math.ceil(T.scrollStart)>=re){N(L,T,j,T.scrollMaxSize-T.offsetEnd-f.reduce(Zt,0));return}let F=0,z=T.scrollStart-T.offsetStart,ce=z;if(z<=ae&&z+T.scrollViewSize>=S.value)z-=S.value,F=y.value.from,ce=z;else for(let $=0;z>=f[$]&&F<j;$++)z-=f[$],F+=ft;for(;z>0&&F<j;)z-=h[F],z>-T.scrollViewSize?(F++,ce=z):ce=h[F]+z;N(L,T,F,ce)}function N(L,T,j,ae,re){const F=typeof re=="string"&&re.indexOf("-force")!==-1,z=F===!0?re.replace("-force",""):re,ce=z!==void 0?z:"start";let $=Math.max(0,j-b.value[ce]),be=$+b.value.total;be>e.value&&(be=e.value,$=Math.max(0,be-b.value.total)),m=T.scrollStart;const Be=$!==y.value.from||be!==y.value.to;if(Be===!1&&z===void 0){U(j);return}const{activeElement:st}=document,Le=w.value;Be===!0&&Le!==null&&Le!==st&&Le.contains(st)===!0&&(Le.addEventListener("focusout",M),setTimeout(()=>{Le!==null&&Le.removeEventListener("focusout",M)})),Ps(Le,j-$);const et=z!==void 0?h.slice($,j).reduce(Zt,0):0;if(Be===!0){const qe=be>=y.value.from&&$<=y.value.to?y.value.to:be;y.value={from:$,to:qe},S.value=pn(f,h,0,$),E.value=pn(f,h,be,e.value),requestAnimationFrame(()=>{y.value.to!==be&&m===T.scrollStart&&(y.value={from:y.value.from,to:be},E.value=pn(f,h,be,e.value))})}requestAnimationFrame(()=>{if(m!==T.scrollStart)return;Be===!0&&W($);const qe=h.slice($,j).reduce(Zt,0),ze=qe+T.offsetStart+S.value,ut=ze+h[j];let g=ze+ae;if(z!==void 0){const k=qe-et,A=T.scrollStart+k;g=F!==!0&&A<ze&&ut<A+T.scrollViewSize?A:z==="end"?ut-T.scrollViewSize:ze-(z==="start"?0:Math.round((T.scrollViewSize-h[j])/2))}m=g,fa(L,g,r.virtualScrollHorizontal,u.lang.rtl),U(j)})}function W(L){const T=w.value;if(T){const j=da.call(T.children,$=>$.classList&&$.classList.contains("q-virtual-scroll--skip")===!1),ae=j.length,re=r.virtualScrollHorizontal===!0?$=>$.getBoundingClientRect().width:$=>$.offsetHeight;let F=L,z,ce;for(let $=0;$<ae;){for(z=re(j[$]),$++;$<ae&&j[$].classList.contains("q-virtual-scroll--with-prev")===!0;)z+=re(j[$]),$++;ce=z-h[F],ce!==0&&(h[F]+=ce,f[Math.floor(F/ft)]+=ce),F++}}}function M(){w.value!==null&&w.value!==void 0&&w.value.focus()}function J(L,T){const j=1*l.value;(T===!0||Array.isArray(h)===!1)&&(h=[]);const ae=h.length;h.length=e.value;for(let F=e.value-1;F>=ae;F--)h[F]=j;const re=Math.floor((e.value-1)/ft);f=[];for(let F=0;F<=re;F++){let z=0;const ce=Math.min((F+1)*ft,e.value);for(let $=F*ft;$<ce;$++)z+=h[$];f.push(z)}d=-1,m=void 0,S.value=pn(f,h,0,y.value.from),E.value=pn(f,h,y.value.to,e.value),L>=0?(W(y.value.from),o.nextTick(()=>{V(L)})):Z()}function X(L){if(L===void 0&&typeof window<"u"){const z=t();z!=null&&z.nodeType!==8&&(L=To(z,n(),p.value,_.value,r.virtualScrollHorizontal,u.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd).scrollViewSize)}c=L;const T=parseFloat(r.virtualScrollSliceRatioBefore)||0,j=parseFloat(r.virtualScrollSliceRatioAfter)||0,ae=1+T+j,re=L===void 0||L<=0?1:Math.ceil(L/l.value),F=Math.max(1,re,Math.ceil((r.virtualScrollSliceSize>0?r.virtualScrollSliceSize:10)/ae));b.value={total:Math.ceil(F*ae),start:Math.ceil(F*T),center:Math.ceil(F*(.5+T)),end:Math.ceil(F*(1+T)),view:re}}function te(L,T){const j=r.virtualScrollHorizontal===!0?"width":"height",ae={["--q-virtual-scroll-item-"+j]:l.value+"px"};return[L==="tbody"?o.h(L,{class:"q-virtual-scroll__padding",key:"before",ref:p},[o.h("tr",[o.h("td",{style:{[j]:`${S.value}px`,...ae},colspan:x.value})])]):o.h(L,{class:"q-virtual-scroll__padding",key:"before",ref:p,style:{[j]:`${S.value}px`,...ae}}),o.h(L,{class:"q-virtual-scroll__content",key:"content",ref:w,tabindex:-1},T.flat()),L==="tbody"?o.h(L,{class:"q-virtual-scroll__padding",key:"after",ref:_},[o.h("tr",[o.h("td",{style:{[j]:`${E.value}px`,...ae},colspan:x.value})])]):o.h(L,{class:"q-virtual-scroll__padding",key:"after",ref:_,style:{[j]:`${E.value}px`,...ae}})]}function U(L){d!==L&&(r.onVirtualScroll!==void 0&&i("virtualScroll",{index:L,from:y.value.from,to:y.value.to-1,direction:L<d?"decrease":"increase",ref:s}),d=L)}X();const Z=ho(B,u.platform.is.ios===!0?120:35);o.onBeforeMount(()=>{X()});let ee=!1;return o.onDeactivated(()=>{ee=!0}),o.onActivated(()=>{if(ee!==!0)return;const L=t();m!==void 0&&L!==void 0&&L!==null&&L.nodeType!==8?fa(L,m,r.virtualScrollHorizontal,u.lang.rtl):V(d)}),o.onBeforeUnmount(()=>{Z.cancel()}),Object.assign(s,{scrollTo:V,reset:D,refresh:I}),{virtualScrollSliceRange:y,virtualScrollSliceSizeComputed:b,setVirtualScrollSize:X,onVirtualScrollEvt:Z,localResetVirtualScroll:J,padVirtualScroll:te,scrollTo:V,reset:D,refresh:I}}const pa=[Element,String],Vs=[null,document,document.body,document.scrollingElement,document.documentElement];function ba(e,t){let n=us(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return Vs.includes(n)?window:n}function Rs(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function As(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let qn;function Ms(){if(qn!==void 0)return qn;const e=document.createElement("p"),t=document.createElement("div");So(e,{width:"100%",height:"200px"}),So(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 l=e.offsetWidth;return n===l&&(l=t.clientWidth),t.remove(),qn=n-l,qn}function Ds(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 Bs={list:sa,table:ua},qs=["list","table","__qtable"],Fs=ve({name:"QVirtualScroll",props:{...xo,type:{type:String,default:"list",validator:e=>qs.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:pa},setup(e,{slots:t,attrs:n}){let l;const a=o.ref(null),r=o.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:m}=ga({virtualScrollLength:r,getVirtualScrollTarget:S,getVirtualScrollEl:h}),d=o.computed(()=>{if(r.value===0)return[];const _=(w,y)=>({index:i.value.from+y,item:w});return e.itemsFn===void 0?e.items.slice(i.value.from,i.value.to).map(_):e.itemsFn(i.value.from,i.value.to-i.value.from).map(_)}),c=o.computed(()=>"q-virtual-scroll q-virtual-scroll"+(e.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(e.scrollTarget!==void 0?"":" scroll")),f=o.computed(()=>e.scrollTarget!==void 0?{}:{tabindex:0});o.watch(r,()=>{s()}),o.watch(()=>e.scrollTarget,()=>{b(),E()});function h(){return a.value.$el||a.value}function S(){return l}function E(){l=ba(h(),e.scrollTarget),l.addEventListener("scroll",m,$e.passive)}function b(){l!==void 0&&(l.removeEventListener("scroll",m,$e.passive),l=void 0)}function p(){let _=u(e.type==="list"?"div":"tbody",d.value.map(t.default));return t.before!==void 0&&(_=t.before().concat(_)),kt(t.after,_)}return o.onBeforeMount(()=>{s()}),o.onMounted(()=>{E()}),o.onActivated(()=>{E()}),o.onDeactivated(()=>{b()}),o.onBeforeUnmount(()=>{b()}),()=>{if(t.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return e.type==="__qtable"?ca({ref:a,class:"q-table__middle "+c.value},p()):o.h(Bs[e.type],{...n,ref:a,class:[n.class,c.value],...f.value},p)}}});let No,Fn=0;const He=new Array(256);for(let e=0;e<256;e++)He[e]=(e+256).toString(16).substring(1);const $s=(()=>{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 l=t;l>0;l--)n.push(Math.floor(Math.random()*256));return n}})(),_a=4096;function Lo(){(No===void 0||Fn+16>_a)&&(Fn=0,No=$s(_a));const e=Array.prototype.slice.call(No,Fn,Fn+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,He[e[0]]+He[e[1]]+He[e[2]]+He[e[3]]+"-"+He[e[4]]+He[e[5]]+"-"+He[e[6]]+He[e[7]]+"-"+He[e[8]]+He[e[9]]+"-"+He[e[10]]+He[e[11]]+He[e[12]]+He[e[13]]+He[e[14]]+He[e[15]]}function Us(e){return e??null}function va(e,t){return e??(t===!0?`f_${Lo()}`:null)}function Hs({getValue:e,required:t=!0}={}){if(xt.value===!0){const n=e!==void 0?o.ref(Us(e())):o.ref(null);return t===!0&&n.value===null&&o.onMounted(()=>{n.value=`f_${Lo()}`}),e!==void 0&&o.watch(e,l=>{n.value=va(l,t)}),n}return e!==void 0?o.computed(()=>va(e(),t)):o.ref(`f_${Lo()}`)}const ya=/^on[A-Z]/;function zs(){const{attrs:e,vnode:t}=o.getCurrentInstance(),n={listeners:o.ref({}),attributes:o.ref({})};function l(){const a={},r={};for(const i in e)i!=="class"&&i!=="style"&&ya.test(i)===!1&&(a[i]=e[i]);for(const i in t.props)ya.test(i)===!0&&(r[i]=t.props[i]);n.attributes.value=a,n.listeners.value=r}return o.onBeforeUpdate(l),l(),n}function js({validate:e,resetValidation:t,requiresQForm:n}){const l=o.inject(Gi,!1);if(l!==!1){const{props:a,proxy:r}=o.getCurrentInstance();Object.assign(r,{validate:e,resetValidation:t}),o.watch(()=>a.disable,i=>{i===!0?(typeof t=="function"&&t(),l.unbindComponent(r)):l.bindComponent(r)}),o.onMounted(()=>{a.disable!==!0&&l.bindComponent(r)}),o.onBeforeUnmount(()=>{a.disable!==!0&&l.unbindComponent(r)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const Sa=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,ka=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,wa=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,$n=/^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])\)$/,Un=/^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)\)$/,Oo={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=>Sa.test(e),hexaColor:e=>ka.test(e),hexOrHexaColor:e=>wa.test(e),rgbColor:e=>$n.test(e),rgbaColor:e=>Un.test(e),rgbOrRgbaColor:e=>$n.test(e)||Un.test(e),hexOrRgbColor:e=>Sa.test(e)||$n.test(e),hexaOrRgbaColor:e=>ka.test(e)||Un.test(e),anyColor:e=>wa.test(e)||$n.test(e)||Un.test(e)},Ws=[!0,!1,"ondemand"],Ks={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Ws.includes(e)}};function Gs(e,t){const{props:n,proxy:l}=o.getCurrentInstance(),a=o.ref(!1),r=o.ref(null),i=o.ref(!1);js({validate:E,resetValidation:S});let s=0,u;const m=o.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),d=o.computed(()=>n.disable!==!0&&m.value===!0&&t.value===!1),c=o.computed(()=>n.error===!0||a.value===!0),f=o.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:r.value);o.watch(()=>n.modelValue,()=>{i.value=!0,d.value===!0&&n.lazyRules===!1&&b()});function h(){n.lazyRules!=="ondemand"&&d.value===!0&&i.value===!0&&b()}o.watch(()=>n.reactiveRules,p=>{p===!0?u===void 0&&(u=o.watch(()=>n.rules,h,{immediate:!0,deep:!0})):u!==void 0&&(u(),u=void 0)},{immediate:!0}),o.watch(()=>n.lazyRules,h),o.watch(e,p=>{p===!0?i.value=!0:d.value===!0&&n.lazyRules!=="ondemand"&&b()});function S(){s++,t.value=!1,i.value=!1,a.value=!1,r.value=null,b.cancel()}function E(p=n.modelValue){if(n.disable===!0||m.value===!1)return!0;const _=++s,w=t.value!==!0?()=>{i.value=!0}:()=>{},y=(O,C)=>{O===!0&&w(),a.value=O,r.value=C||null,t.value=!1},x=[];for(let O=0;O<n.rules.length;O++){const C=n.rules[O];let D;if(typeof C=="function"?D=C(p,Oo):typeof C=="string"&&Oo[C]!==void 0&&(D=Oo[C](p)),D===!1||typeof D=="string")return y(!0,D),!1;D!==!0&&D!==void 0&&x.push(D)}return x.length===0?(y(!1),!0):(t.value=!0,Promise.all(x).then(O=>{if(O===void 0||Array.isArray(O)===!1||O.length===0)return _===s&&y(!1),!0;const C=O.find(D=>D===!1||typeof D=="string");return _===s&&y(C!==void 0,C),C===void 0},O=>(_===s&&(console.error(O),y(!0)),!1)))}const b=ho(E,0);return o.onBeforeUnmount(()=>{u!==void 0&&u(),b.cancel()}),Object.assign(l,{resetValidation:S,validate:E}),tt(l,"hasError",()=>c.value),{isDirtyModel:i,hasRules:m,hasError:c,errorMessage:f,validate:E,resetValidation:S}}let Bt=[],bn=[];function Ca(e){bn=bn.filter(t=>t!==e)}function Qs(e){Ca(e),bn.push(e)}function Ea(e){Ca(e),bn.length===0&&Bt.length!==0&&(Bt[Bt.length-1](),Bt=[])}function Hn(e){bn.length===0?e():Bt.push(e)}function Ys(e){Bt=Bt.filter(t=>t!==e)}function _n(e){return e!=null&&(""+e).length!==0}const zn={...{...lt,...Ks,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]},Io=["update:modelValue","clear","focus","blur"];function Po({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:l,proxy:a}=o.getCurrentInstance(),r=at(l,a.$q),i=Hs({required:e,getValue:()=>l.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?o.computed(()=>l.tag):{value:"label"},isDark:r,editable:o.computed(()=>l.disable!==!0&&l.readonly!==!0),innerLoading:o.ref(!1),focused:o.ref(!1),hasPopupOpen:!1,splitAttrs:zs(),targetUid:i,rootRef:o.ref(null),targetRef:o.ref(null),controlRef:o.ref(null)}}function Vo(e){const{props:t,emit:n,slots:l,attrs:a,proxy:r}=o.getCurrentInstance(),{$q:i}=r;let s=null;e.hasValue===void 0&&(e.hasValue=o.computed(()=>_n(t.modelValue))),e.emitValue===void 0&&(e.emitValue=U=>{n("update:modelValue",U)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:I,onFocusout:V}),Object.assign(e,{clearValue:B,onControlFocusin:I,onControlFocusout:V,focus:C}),e.computedCounter===void 0&&(e.computedCounter=o.computed(()=>{if(t.counter!==!1){const U=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,Z=t.maxlength!==void 0?t.maxlength:t.maxValues;return U+(Z!==void 0?" / "+Z:"")}}));const{isDirtyModel:u,hasRules:m,hasError:d,errorMessage:c,resetValidation:f}=Gs(e.focused,e.innerLoading),h=e.floatingLabel!==void 0?o.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):o.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),S=o.computed(()=>t.bottomSlots===!0||t.hint!==void 0||m.value===!0||t.counter===!0||t.error!==null),E=o.computed(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),b=o.computed(()=>`q-field row no-wrap items-start q-field--${E.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":"")+(_.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&&S.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),p=o.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}`:"")),_=o.computed(()=>t.labelSlot===!0||t.label!==void 0),w=o.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&d.value!==!0?` text-${t.labelColor}`:"")),y=o.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:h.value,modelValue:t.modelValue,emitValue:e.emitValue})),x=o.computed(()=>{const U={};return e.targetUid.value&&(U.for=e.targetUid.value),t.disable===!0&&(U["aria-disabled"]="true"),U});function O(){const U=document.activeElement;let Z=e.targetRef!==void 0&&e.targetRef.value;Z&&(U===null||U.id!==e.targetUid.value)&&(Z.hasAttribute("tabindex")===!0||(Z=Z.querySelector("[tabindex]")),Z&&Z!==U&&Z.focus({preventScroll:!0}))}function C(){Hn(O)}function D(){Ys(O);const U=document.activeElement;U!==null&&e.rootRef.value.contains(U)&&U.blur()}function I(U){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",U))}function V(U,Z){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",U)),Z!==void 0&&Z())})}function B(U){Me(U),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),o.nextTick(()=>{const Z=u.value;f(),u.value=Z})}function N(U){[13,32].includes(U.keyCode)&&B(U)}function W(){const U=[];return l.prepend!==void 0&&U.push(o.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:dt},l.prepend())),U.push(o.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},M())),d.value===!0&&t.noErrorIcon===!1&&U.push(X("error",[o.h(Ue,{name:i.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?U.push(X("inner-loading-append",l.loading!==void 0?l.loading():[o.h(jl,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&U.push(X("inner-clearable-append",[o.h(Ue,{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:N,onClick:B})])),l.append!==void 0&&U.push(o.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:dt},l.append())),e.getInnerAppend!==void 0&&U.push(X("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&U.push(e.getControlChild()),U}function M(){const U=[];return t.prefix!==void 0&&t.prefix!==null&&U.push(o.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&U.push(e.getShadowControl()),e.getControl!==void 0?U.push(e.getControl()):l.rawControl!==void 0?U.push(l.rawControl()):l.control!==void 0&&U.push(o.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},l.control(y.value))),_.value===!0&&U.push(o.h("div",{class:w.value},Pe(l.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&U.push(o.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),U.concat(Pe(l.default))}function J(){let U,Z;d.value===!0?c.value!==null?(U=[o.h("div",{role:"alert"},c.value)],Z=`q--slot-error-${c.value}`):(U=Pe(l.error),Z="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(U=[o.h("div",t.hint)],Z=`q--slot-hint-${t.hint}`):(U=Pe(l.hint),Z="q--slot-hint"));const ee=t.counter===!0||l.counter!==void 0;if(t.hideBottomSpace===!0&&ee===!1&&U===void 0)return;const L=o.h("div",{key:Z,class:"q-field__messages col"},U);return o.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:dt},[t.hideBottomSpace===!0?L:o.h(o.Transition,{name:"q-transition--field-message"},()=>L),ee===!0?o.h("div",{class:"q-field__counter"},l.counter!==void 0?l.counter():e.computedCounter.value):null])}function X(U,Z){return Z===null?null:o.h("div",{key:U,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},Z)}let te=!1;return o.onDeactivated(()=>{te=!0}),o.onActivated(()=>{te===!0&&t.autofocus===!0&&r.focus()}),t.autofocus===!0&&o.onMounted(()=>{r.focus()}),o.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(r,{focus:C,blur:D}),function(){const Z=e.getControl===void 0&&l.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...x.value}:x.value;return o.h(e.tag.value,{ref:e.rootRef,class:[b.value,a.class],style:a.style,...Z},[l.before!==void 0?o.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:dt},l.before()):null,o.h("div",{class:"q-field__inner relative-position col self-stretch"},[o.h("div",{ref:e.controlRef,class:p.value,tabindex:-1,...e.controlEvents},W()),S.value===!0?J():null]),l.after!==void 0?o.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:dt},l.after()):null])}}const Xs=ve({name:"QField",inheritAttrs:!1,props:{...zn,tag:{type:String,default:"label"}},emits:Io,setup(){return Vo(Po({tagProp:!0}))}}),Js={xs:8,sm:10,md:14,lg:20,xl:24},Zs=ve({name:"QChip",props:{...lt,...hn,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:l}}=o.getCurrentInstance(),a=at(e,l),r=gn(e,Js),i=o.computed(()=>e.selected===!0||e.icon!==void 0),s=o.computed(()=>e.selected===!0?e.iconSelected||l.iconSet.chip.selected:e.icon),u=o.computed(()=>e.iconRemove||l.iconSet.chip.remove),m=o.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),d=o.computed(()=>{const b=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}`:"")+(b?` text-${b} 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":"")+(m.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(a.value===!0?" q-chip--dark q-dark":"")}),c=o.computed(()=>{const b=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},p={...b,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||l.lang.label.remove};return{chip:b,remove:p}});function f(b){b.keyCode===13&&h(b)}function h(b){e.disable||(n("update:selected",!e.selected),n("click",b))}function S(b){(b.keyCode===void 0||b.keyCode===13)&&(Me(b),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function E(){const b=[];m.value===!0&&b.push(o.h("div",{class:"q-focus-helper"})),i.value===!0&&b.push(o.h(Ue,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const p=e.label!==void 0?[o.h("div",{class:"ellipsis"},[e.label])]:void 0;return b.push(o.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Ji(t.default,p))),e.iconRight&&b.push(o.h(Ue,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&b.push(o.h(Ue,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:u.value,...c.value.remove,onClick:S,onKeyup:S})),b}return()=>{if(e.modelValue===!1)return;const b={class:d.value,style:r.value};return m.value===!0&&Object.assign(b,c.value.chip,{onClick:h,onKeyup:f}),Zi("div",b,E(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Ql,e.ripple]])}}}),Lt=ve({name:"QItem",props:{...lt,...bs,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:l}}=o.getCurrentInstance(),a=at(e,l),{hasLink:r,linkAttrs:i,linkClass:s,linkTag:u,navigateOnClick:m}=na(),d=o.ref(null),c=o.ref(null),f=o.computed(()=>e.clickable===!0||r.value===!0||e.tag==="label"),h=o.computed(()=>e.disable!==!0&&f.value===!0),S=o.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(a.value===!0?" q-item--dark":"")+(r.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":""):"")),E=o.computed(()=>e.insetLevel===void 0?null:{["padding"+(l.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function b(w){h.value===!0&&(c.value!==null&&(w.qKeyEvent!==!0&&document.activeElement===d.value?c.value.focus():document.activeElement===c.value&&d.value.focus()),m(w))}function p(w){if(h.value===!0&&Dt(w,[13,32])===!0){Me(w),w.qKeyEvent=!0;const y=new MouseEvent("click",w);y.qKeyEvent=!0,d.value.dispatchEvent(y)}n("keyup",w)}function _(){const w=Bl(t.default,[]);return h.value===!0&&w.unshift(o.h("div",{class:"q-focus-helper",tabindex:-1,ref:c})),w}return()=>{const w={ref:d,class:S.value,style:E.value,role:"listitem",onClick:b,onKeyup:p};return h.value===!0?(w.tabindex=e.tabindex||"0",Object.assign(w,i.value)):f.value===!0&&(w["aria-disabled"]="true"),o.h(u.value,w,_())}}}),mt=ve({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=o.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()=>o.h("div",{class:n.value},Pe(t.default))}}),rt=ve({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=o.computed(()=>parseInt(e.lines,10)),l=o.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":"")),a=o.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>o.h("div",{style:a.value,class:l.value},Pe(t.default))}});function eu(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Rn.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const tu={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function nu({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:l,proxy:a,emit:r}=o.getCurrentInstance(),i=o.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 m={};n===void 0&&(Object.assign(m,{hide(h){a.hide(h)},toggle(h){a.toggle(h),h.qAnchorHandled=!0},toggleKey(h){Dt(h,13)===!0&&m.toggle(h)},contextClick(h){a.hide(h),dt(h),o.nextTick(()=>{a.show(h),h.qAnchorHandled=!0})},prevent:dt,mobileTouch(h){if(m.mobileCleanup(h),u(h)!==!0)return;a.hide(h),i.value.classList.add("non-selectable");const S=h.target;mo(m,"anchor",[[S,"touchmove","mobileCleanup","passive"],[S,"touchend","mobileCleanup","passive"],[S,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,a.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&&eu()}}),n=function(h=l.contextMenu){if(l.noParentEvent===!0||i.value===null)return;let S;h===!0?a.$q.platform.is.mobile===!0?S=[[i.value,"touchstart","mobileTouch","passive"]]:S=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:S=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],mo(m,"anchor",S)});function d(){xl(m,"anchor")}function c(h){for(i.value=h;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;n()}function f(){if(l.target===!1||l.target===""||a.$el.parentNode===null)i.value=null;else if(l.target===!0)c(a.$el.parentNode);else{let h=l.target;if(typeof l.target=="string")try{h=document.querySelector(l.target)}catch{h=void 0}h!=null?(i.value=h.$el||h,n()):(i.value=null,console.error(`Anchor: target "${l.target}" not found`))}}return o.watch(()=>l.contextMenu,h=>{i.value!==null&&(d(),n(h))}),o.watch(()=>l.target,()=>{i.value!==null&&d(),f()}),o.watch(()=>l.noParentEvent,h=>{i.value!==null&&(h===!0?d():n())}),o.onMounted(()=>{f(),t!==!0&&l.modelValue===!0&&i.value===null&&r("update:modelValue",!1)}),o.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),d()}),{anchorEl:i,canShow:u,anchorEvents:m}}function ou(e,t){const n=o.ref(null);let l;function a(s,u){const m=`${u!==void 0?"add":"remove"}EventListener`,d=u!==void 0?u:l;s!==window&&s[m]("scroll",d,$e.passive),window[m]("scroll",d,$e.passive),l=u}function r(){n.value!==null&&(a(n.value),n.value=null)}const i=o.watch(()=>e.noParentEvent,()=>{n.value!==null&&(r(),t())});return o.onBeforeUnmount(i),{localScrollTarget:n,unconfigureScrollTarget:r,changeScrollEvent:a}}const Ta={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},xa=["beforeShow","show","beforeHide","hide"];function Na({showing:e,canShow:t,hideOnRouteChange:n,handleShow:l,handleHide:a,processOnMount:r}){const i=o.getCurrentInstance(),{props:s,emit:u,proxy:m}=i;let d;function c(_){e.value===!0?S(_):f(_)}function f(_){if(s.disable===!0||_!==void 0&&_.qAnchorHandled===!0||t!==void 0&&t(_)!==!0)return;const w=s["onUpdate:modelValue"]!==void 0;w===!0&&(u("update:modelValue",!0),d=_,o.nextTick(()=>{d===_&&(d=void 0)})),(s.modelValue===null||w===!1)&&h(_)}function h(_){e.value!==!0&&(e.value=!0,u("beforeShow",_),l!==void 0?l(_):u("show",_))}function S(_){if(s.disable===!0)return;const w=s["onUpdate:modelValue"]!==void 0;w===!0&&(u("update:modelValue",!1),d=_,o.nextTick(()=>{d===_&&(d=void 0)})),(s.modelValue===null||w===!1)&&E(_)}function E(_){e.value!==!1&&(e.value=!1,u("beforeHide",_),a!==void 0?a(_):u("hide",_))}function b(_){s.disable===!0&&_===!0?s["onUpdate:modelValue"]!==void 0&&u("update:modelValue",!1):_===!0!==e.value&&(_===!0?h:E)(d)}o.watch(()=>s.modelValue,b),n!==void 0&&wo(i)===!0&&o.watch(()=>m.$route.fullPath,()=>{n.value===!0&&e.value===!0&&S()}),o.onMounted(()=>{b(s.modelValue)});const p={show:f,hide:S,toggle:c};return Object.assign(m,p),p}let lu=1,au=document.body;function ru(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${lu++}`:e,Dn.globalNodes!==void 0){const l=Dn.globalNodes.class;l!==void 0&&(n.className=l)}return au.appendChild(n),n}function iu(e){e.remove()}const vn=[];function su(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return ko(e)}else if(e.__qPortal===!0){const n=ko(e);return n!==void 0&&n.$options.name==="QPopupProxy"?(e.hide(t),n):e}e=ko(e)}while(e!=null)}const uu=ve({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function cu(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 La(e,t,n,l){const a=o.ref(!1),r=o.ref(!1);let i=null;const s={},u=l==="dialog"&&cu(e);function m(c){if(c===!0){Ea(s),r.value=!0;return}r.value=!1,a.value===!1&&(u===!1&&i===null&&(i=ru(!1,l)),a.value=!0,vn.push(e.proxy),Qs(s))}function d(c){if(r.value=!1,c!==!0)return;Ea(s),a.value=!1;const f=vn.indexOf(e.proxy);f!==-1&&vn.splice(f,1),i!==null&&(iu(i),i=null)}return o.onUnmounted(()=>{d(!0)}),e.proxy.__qPortal=!0,tt(e.proxy,"contentEl",()=>t.value),{showPortal:m,hidePortal:d,portalIsActive:a,portalIsAccessible:r,renderPortal:()=>u===!0?n():a.value===!0?[o.h(o.Teleport,{to:i},o.h(uu,n))]:void 0}}const Oa={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Ia(e,t=()=>{},n=()=>{}){return{transitionProps:o.computed(()=>{const l=`q-transition--${e.transitionShow||t()}`,a=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${l}-enter-from`,enterActiveClass:`${l}-enter-active`,enterToClass:`${l}-enter-to`,leaveFromClass:`${a}-leave-from`,leaveActiveClass:`${a}-leave-active`,leaveToClass:`${a}-leave-to`}}),transitionStyle:o.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Pa(){let e;const t=o.getCurrentInstance();function n(){e=void 0}return o.onDeactivated(n),o.onBeforeUnmount(n),{removeTick:n,registerTick(l){e=l,o.nextTick(()=>{e===l&&(Xl(t)===!1&&e(),e=void 0)})}}}function Va(){let e=null;const t=o.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return o.onDeactivated(n),o.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(l,a){n(),Xl(t)===!1&&(e=setTimeout(()=>{e=null,l()},a))}}}const qt=[];let en;function du(e){en=e.keyCode===27}function fu(){en===!0&&(en=!1)}function mu(e){en===!0&&(en=!1,Dt(e,27)===!0&&qt[qt.length-1](e))}function Ra(e){window[e]("keydown",du),window[e]("blur",fu),window[e]("keyup",mu),en=!1}function Aa(e){Ie.is.desktop===!0&&(qt.push(e),qt.length===1&&Ra("addEventListener"))}function jn(e){const t=qt.indexOf(e);t!==-1&&(qt.splice(t,1),qt.length===0&&Ra("removeEventListener"))}const Ft=[];function Ma(e){Ft[Ft.length-1](e)}function Da(e){Ie.is.desktop===!0&&(Ft.push(e),Ft.length===1&&document.body.addEventListener("focusin",Ma))}function Ro(e){const t=Ft.indexOf(e);t!==-1&&(Ft.splice(t,1),Ft.length===0&&document.body.removeEventListener("focusin",Ma))}const{notPassiveCapture:Wn}=$e,$t=[];function Kn(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=vn.length-1;for(;n>=0;){const l=vn[n].$;if(l.type.name==="QTooltip"){n--;continue}if(l.type.name!=="QDialog")break;if(l.props.seamless!==!0)return;n--}for(let l=$t.length-1;l>=0;l--){const a=$t[l];if((a.anchorEl.value===null||a.anchorEl.value.contains(t)===!1)&&(t===document.body||a.innerRef.value!==null&&a.innerRef.value.contains(t)===!1))e.qClickOutside=!0,a.onClickOutside(e);else return}}function hu(e){$t.push(e),$t.length===1&&(document.addEventListener("mousedown",Kn,Wn),document.addEventListener("touchstart",Kn,Wn))}function Ba(e){const t=$t.findIndex(n=>n===e);t!==-1&&($t.splice(t,1),$t.length===0&&(document.removeEventListener("mousedown",Kn,Wn),document.removeEventListener("touchstart",Kn,Wn)))}let qa,Fa;function $a(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 gu(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Ao={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ao[`${e}#ltr`]=e,Ao[`${e}#rtl`]=e});function Ua(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:Ao[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function pu(e,t){let{top:n,left:l,right:a,bottom:r,width:i,height:s}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],l-=t[0],r+=t[1],a+=t[0],i+=t[0],s+=t[1]),{top:n,bottom:r,height:s,left:l,right:a,width:i,middle:l+(a-l)/2,center:n+(r-n)/2}}function bu(e,t,n){let{top:l,left:a}=e.getBoundingClientRect();return l+=t.top,a+=t.left,n!==void 0&&(l+=n[1],a+=n[0]),{top:l,bottom:l+1,height:1,left:a,right:a+1,width:1,middle:a,center:l}}function _u(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Ha(e,t,n,l){return{top:e[n.vertical]-t[l.vertical],left:e[n.horizontal]-t[l.horizontal]}}function za(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{za(e,t+1)},10);return}const{targetEl:n,offset:l,anchorEl:a,anchorOrigin:r,selfOrigin:i,absoluteOffset:s,fit:u,cover:m,maxHeight:d,maxWidth:c}=e;if(Ie.is.ios===!0&&window.visualViewport!==void 0){const O=document.body.style,{offsetLeft:C,offsetTop:D}=window.visualViewport;C!==qa&&(O.setProperty("--q-pe-left",C+"px"),qa=C),D!==Fa&&(O.setProperty("--q-pe-top",D+"px"),Fa=D)}const{scrollLeft:f,scrollTop:h}=n,S=s===void 0?pu(a,m===!0?[0,0]:l):bu(a,s,l);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:c,maxHeight:d,visibility:"visible"});const{offsetWidth:E,offsetHeight:b}=n,{elWidth:p,elHeight:_}=u===!0||m===!0?{elWidth:Math.max(S.width,E),elHeight:m===!0?Math.max(S.height,b):b}:{elWidth:E,elHeight:b};let w={maxWidth:c,maxHeight:d};(u===!0||m===!0)&&(w.minWidth=S.width+"px",m===!0&&(w.minHeight=S.height+"px")),Object.assign(n.style,w);const y=_u(p,_);let x=Ha(S,y,r,i);if(s===void 0||l===void 0)Mo(x,S,y,r,i);else{const{top:O,left:C}=x;Mo(x,S,y,r,i);let D=!1;if(x.top!==O){D=!0;const I=2*l[1];S.center=S.top-=I,S.bottom-=I+2}if(x.left!==C){D=!0;const I=2*l[0];S.middle=S.left-=I,S.right-=I+2}D===!0&&(x=Ha(S,y,r,i),Mo(x,S,y,r,i))}w={top:x.top+"px",left:x.left+"px"},x.maxHeight!==void 0&&(w.maxHeight=x.maxHeight+"px",S.height>x.maxHeight&&(w.minHeight=w.maxHeight)),x.maxWidth!==void 0&&(w.maxWidth=x.maxWidth+"px",S.width>x.maxWidth&&(w.minWidth=w.maxWidth)),Object.assign(n.style,w),n.scrollTop!==h&&(n.scrollTop=h),n.scrollLeft!==f&&(n.scrollLeft=f)}function Mo(e,t,n,l,a){const r=n.bottom,i=n.right,s=Ms(),u=window.innerHeight-s,m=document.body.clientWidth;if(e.top<0||e.top+r>u)if(a.vertical==="center")e.top=t[l.vertical]>u/2?Math.max(0,u-r):0,e.maxHeight=Math.min(r,u);else if(t[l.vertical]>u/2){const d=Math.min(u,l.vertical==="center"?t.center:l.vertical===a.vertical?t.bottom:t.top);e.maxHeight=Math.min(r,d),e.top=Math.max(0,d-r)}else e.top=Math.max(0,l.vertical==="center"?t.center:l.vertical===a.vertical?t.top:t.bottom),e.maxHeight=Math.min(r,u-e.top);if(e.left<0||e.left+i>m)if(e.maxWidth=Math.min(i,m),a.horizontal==="middle")e.left=t[l.horizontal]>m/2?Math.max(0,m-i):0;else if(t[l.horizontal]>m/2){const d=Math.min(m,l.horizontal==="middle"?t.middle:l.horizontal===a.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,l.horizontal==="middle"?t.middle:l.horizontal===a.horizontal?t.left:t.right),e.maxWidth=Math.min(i,m-e.left)}const ja=ve({name:"QMenu",inheritAttrs:!1,props:{...tu,...Ta,...lt,...Oa,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:$a},self:{type:String,validator:$a},offset:{type:Array,validator:gu},scrollTarget:pa,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...xa,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:l}){let a=null,r,i,s;const u=o.getCurrentInstance(),{proxy:m}=u,{$q:d}=m,c=o.ref(null),f=o.ref(!1),h=o.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),S=at(e,d),{registerTick:E,removeTick:b}=Pa(),{registerTimeout:p}=Va(),{transitionProps:_,transitionStyle:w}=Ia(e),{localScrollTarget:y,changeScrollEvent:x,unconfigureScrollTarget:O}=ou(e,j),{anchorEl:C,canShow:D}=nu({showing:f}),{hide:I}=Na({showing:f,canShow:D,handleShow:ee,handleHide:L,hideOnRouteChange:h,processOnMount:!0}),{showPortal:V,hidePortal:B,renderPortal:N}=La(u,c,ce,"menu"),W={anchorEl:C,innerRef:c,onClickOutside($){if(e.persistent!==!0&&f.value===!0)return I($),($.type==="touchstart"||$.target.classList.contains("q-dialog__backdrop"))&&Me($),!0}},M=o.computed(()=>Ua(e.anchor||(e.cover===!0?"center middle":"bottom start"),d.lang.rtl)),J=o.computed(()=>e.cover===!0?M.value:Ua(e.self||"top start",d.lang.rtl)),X=o.computed(()=>(e.square===!0?" q-menu--square":"")+(S.value===!0?" q-menu--dark q-dark":"")),te=o.computed(()=>e.autoClose===!0?{onClick:ae}:{}),U=o.computed(()=>f.value===!0&&e.persistent!==!0);o.watch(U,$=>{$===!0?(Aa(F),hu(W)):(jn(F),Ba(W))});function Z(){Hn(()=>{let $=c.value;$&&$.contains(document.activeElement)!==!0&&($=$.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||$.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||$.querySelector("[autofocus], [data-autofocus]")||$,$.focus({preventScroll:!0}))})}function ee($){if(a=e.noRefocus===!1?document.activeElement:null,Da(re),V(),j(),r=void 0,$!==void 0&&(e.touchPosition||e.contextMenu)){const be=Tl($);if(be.left!==void 0){const{top:Be,left:st}=C.value.getBoundingClientRect();r={left:be.left-st,top:be.top-Be}}}i===void 0&&(i=o.watch(()=>d.screen.width+"|"+d.screen.height+"|"+e.self+"|"+e.anchor+"|"+d.lang.rtl,z)),e.noFocus!==!0&&document.activeElement.blur(),E(()=>{z(),e.noFocus!==!0&&Z()}),p(()=>{d.platform.is.ios===!0&&(s=e.autoClose,c.value.click()),z(),V(!0),n("show",$)},e.transitionDuration)}function L($){b(),B(),T(!0),a!==null&&($===void 0||$.qClickOutside!==!0)&&((($&&$.type.indexOf("key")===0?a.closest('[tabindex]:not([tabindex^="-"])'):void 0)||a).focus(),a=null),p(()=>{B(!0),n("hide",$)},e.transitionDuration)}function T($){r=void 0,i!==void 0&&(i(),i=void 0),($===!0||f.value===!0)&&(Ro(re),O(),Ba(W),jn(F)),$!==!0&&(a=null)}function j(){(C.value!==null||e.scrollTarget!==void 0)&&(y.value=ba(C.value,e.scrollTarget),x(y.value,z))}function ae($){s!==!0?(su(m,$),n("click",$)):s=!1}function re($){U.value===!0&&e.noFocus!==!0&&Wl(c.value,$.target)!==!0&&Z()}function F($){n("escapeKey"),I($)}function z(){za({targetEl:c.value,offset:e.offset,anchorEl:C.value,anchorOrigin:M.value,selfOrigin:J.value,absoluteOffset:r,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function ce(){return o.h(o.Transition,_.value,()=>f.value===!0?o.h("div",{role:"menu",...l,ref:c,tabindex:-1,class:["q-menu q-position-engine scroll"+X.value,l.class],style:[l.style,w.value],...te.value},Pe(t.default)):null)}return o.onBeforeUnmount(T),Object.assign(m,{focus:Z,updatePosition:z}),N}});function vu(e,t,n){let l;function a(){l!==void 0&&(mn.remove(l),l=void 0)}return o.onBeforeUnmount(()=>{e.value===!0&&a()}),{removeFromHistory:a,addToHistory(){l={condition:()=>n.value===!0,handler:t},mn.add(l)}}}let yn=0,Do,Bo,Sn,qo=!1,Wa,Ka,Ga,Ut=null;function yu(e){Su(e)&&Me(e)}function Su(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=Ai(e),n=e.shiftKey&&!e.deltaX,l=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=n||l?e.deltaY:e.deltaX;for(let r=0;r<t.length;r++){const i=t[r];if(Ds(i,l))return l?a<0&&i.scrollTop===0?!0:a>0&&i.scrollTop+i.clientHeight===i.scrollHeight:a<0&&i.scrollLeft===0?!0:a>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function Qa(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Gn(e){qo!==!0&&(qo=!0,requestAnimationFrame(()=>{qo=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:l}=document.scrollingElement;(Sn===void 0||t!==window.innerHeight)&&(Sn=n-t,document.scrollingElement.scrollTop=l),l>Sn&&(document.scrollingElement.scrollTop-=Math.ceil((l-Sn)/8))}))}function Ya(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:l,overflowX:a}=window.getComputedStyle(t);Do=As(window),Bo=Rs(window),Wa=t.style.left,Ka=t.style.top,Ga=window.location.href,t.style.left=`-${Do}px`,t.style.top=`-${Bo}px`,a!=="hidden"&&(a==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),l!=="hidden"&&(l==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Ie.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Gn,$e.passiveCapture),window.visualViewport.addEventListener("scroll",Gn,$e.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Qa,$e.passiveCapture))}Ie.is.desktop===!0&&Ie.is.mac===!0&&window[`${e}EventListener`]("wheel",yu,$e.notPassive),e==="remove"&&(Ie.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",Gn,$e.passiveCapture),window.visualViewport.removeEventListener("scroll",Gn,$e.passiveCapture)):window.removeEventListener("scroll",Qa,$e.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=Wa,t.style.top=Ka,window.location.href===Ga&&window.scrollTo(Do,Bo),Sn=void 0)}function ku(e){let t="add";if(e===!0){if(yn++,Ut!==null){clearTimeout(Ut),Ut=null;return}if(yn>1)return}else{if(yn===0||(yn--,yn>0))return;if(t="remove",Ie.is.ios===!0&&Ie.is.nativeMobile===!0){Ut!==null&&clearTimeout(Ut),Ut=setTimeout(()=>{Ya(t),Ut=null},100);return}}Ya(t)}function wu(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,ku(t))}}}let Qn=0;const Cu={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"},Xa={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Eu=ve({name:"QDialog",inheritAttrs:!1,props:{...Ta,...Oa,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:[...xa,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:l}){const a=o.getCurrentInstance(),r=o.ref(null),i=o.ref(!1),s=o.ref(!1);let u=null,m=null,d,c;const f=o.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:h}=wu(),{registerTimeout:S}=Va(),{registerTick:E,removeTick:b}=Pa(),{transitionProps:p,transitionStyle:_}=Ia(e,()=>Xa[e.position][0],()=>Xa[e.position][1]),w=o.computed(()=>_.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:y,hidePortal:x,portalIsAccessible:O,renderPortal:C}=La(a,r,re,"dialog"),{hide:D}=Na({showing:i,hideOnRouteChange:f,handleShow:J,handleHide:X,processOnMount:!0}),{addToHistory:I,removeFromHistory:V}=vu(i,D,f),B=o.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${Cu[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":"")),N=o.computed(()=>i.value===!0&&e.seamless!==!0),W=o.computed(()=>e.autoClose===!0?{onClick:T}:{}),M=o.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${N.value===!0?"modal":"seamless"}`,l.class]);o.watch(()=>e.maximized,F=>{i.value===!0&&L(F)}),o.watch(N,F=>{h(F),F===!0?(Da(ae),Aa(Z)):(Ro(ae),jn(Z))});function J(F){I(),m=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,L(e.maximized),y(),s.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),E(te)):b(),S(()=>{if(a.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:z,bottom:ce}=document.activeElement.getBoundingClientRect(),{innerHeight:$}=window,be=window.visualViewport!==void 0?window.visualViewport.height:$;z>0&&ce>be/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-be,ce>=$?1/0:Math.ceil(document.scrollingElement.scrollTop+ce-be/2))),document.activeElement.scrollIntoView()}c=!0,r.value.click(),c=!1}y(!0),s.value=!1,n("show",F)},e.transitionDuration)}function X(F){b(),V(),ee(!0),s.value=!0,x(),m!==null&&(((F&&F.type.indexOf("key")===0?m.closest('[tabindex]:not([tabindex^="-"])'):void 0)||m).focus(),m=null),S(()=>{x(!0),s.value=!1,n("hide",F)},e.transitionDuration)}function te(F){Hn(()=>{let z=r.value;if(z!==null){if(F!==void 0){const ce=z.querySelector(F);if(ce!==null){ce.focus({preventScroll:!0});return}}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 U(F){F&&typeof F.focus=="function"?F.focus({preventScroll:!0}):te(),n("shake");const z=r.value;z!==null&&(z.classList.remove("q-animate--scale"),z.classList.add("q-animate--scale"),u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,r.value!==null&&(z.classList.remove("q-animate--scale"),te())},170))}function Z(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&U():(n("escapeKey"),D()))}function ee(F){u!==null&&(clearTimeout(u),u=null),(F===!0||i.value===!0)&&(L(!1),e.seamless!==!0&&(h(!1),Ro(ae),jn(Z))),F!==!0&&(m=null)}function L(F){F===!0?d!==!0&&(Qn<1&&document.body.classList.add("q-body--dialog"),Qn++,d=!0):d===!0&&(Qn<2&&document.body.classList.remove("q-body--dialog"),Qn--,d=!1)}function T(F){c!==!0&&(D(F),n("click",F))}function j(F){e.persistent!==!0&&e.noBackdropDismiss!==!0?D(F):e.noShake!==!0&&U()}function ae(F){e.allowFocusOutside!==!0&&O.value===!0&&Wl(r.value,F.target)!==!0&&te('[tabindex]:not([tabindex="-1"])')}Object.assign(a.proxy,{focus:te,shake:U,__updateRefocusTarget(F){m=F||null}}),o.onBeforeUnmount(ee);function re(){return o.h("div",{role:"dialog","aria-modal":N.value===!0?"true":"false",...l,class:M.value},[o.h(o.Transition,{name:"q-transition--fade",appear:!0},()=>N.value===!0?o.h("div",{class:"q-dialog__backdrop fixed-full",style:w.value,"aria-hidden":"true",tabindex:-1,onClick:j}):null),o.h(o.Transition,p.value,()=>i.value===!0?o.h("div",{ref:r,class:B.value,style:_.value,tabindex:-1,...W.value},Pe(t.default)):null)])}return C}}),Fo={name:String};function Tu(e={}){return(t,n,l)=>{t[n](o.h("input",{class:"hidden"+(l||""),...e.value}))}}function Ja(e){return o.computed(()=>e.name||e.for)}const xu=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Nu=/[\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,Lu=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Ou=/[a-z0-9_ -]$/i;function Za(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"&&(Ie.is.firefox===!0?Ou.test(n.data)===!1:xu.test(n.data)===!0||Nu.test(n.data)===!0||Lu.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}function er(e,t,n){if(n<=t)return t;const l=n-t+1;let a=t+(e-t)%l;return a<t&&(a=l+a),a===0?0:a}const tr=e=>["add","add-unique","toggle"].includes(e),Iu=".*+?^${}()|[]\\",Pu=Object.keys(zn);function $o(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return l=>l!==null&&typeof l=="object"&&n in l?l[n]:l}const Uo=ve({name:"QSelect",inheritAttrs:!1,props:{...xo,...Fo,...zn,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:tr},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:xo.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Io,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:l}=o.getCurrentInstance(),{$q:a}=l,r=o.ref(!1),i=o.ref(!1),s=o.ref(-1),u=o.ref(""),m=o.ref(!1),d=o.ref(!1);let c=null,f=null,h,S,E,b=null,p,_,w,y;const x=o.ref(null),O=o.ref(null),C=o.ref(null),D=o.ref(null),I=o.ref(null),V=Ja(e),B=Za(P),N=o.computed(()=>Array.isArray(e.options)?e.options.length:0),W=o.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:M,virtualScrollSliceSizeComputed:J,localResetVirtualScroll:X,padVirtualScroll:te,onVirtualScrollEvt:U,scrollTo:Z,setVirtualScrollSize:ee}=ga({virtualScrollLength:N,getVirtualScrollTarget:_l,getVirtualScrollEl:uo,virtualScrollItemSizeComputed:W}),L=Po(),T=o.computed(()=>{const v=e.mapOptions===!0&&e.multiple!==!0,Q=e.modelValue!==void 0&&(e.modelValue!==null||v===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const Y=e.mapOptions===!0&&h!==void 0?h:[],me=Q.map(we=>In(we,Y));return e.modelValue===null&&v===!0?me.filter(we=>we!==null):me}return Q}),j=o.computed(()=>{const v={};return Pu.forEach(Q=>{const Y=e[Q];Y!==void 0&&(v[Q]=Y)}),v}),ae=o.computed(()=>e.optionsDark===null?L.isDark.value:e.optionsDark),re=o.computed(()=>_n(T.value)),F=o.computed(()=>{let v="q-field__input q-placeholder col";return e.hideSelected===!0||T.value.length===0?[v,e.inputClass]:(v+=" q-field__input--padding",e.inputClass===void 0?v:[v,e.inputClass])}),z=o.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),ce=o.computed(()=>N.value===0),$=o.computed(()=>T.value.map(v=>fe.value(v)).join(", ")),be=o.computed(()=>e.displayValue!==void 0?e.displayValue:$.value),Be=o.computed(()=>e.optionsHtml===!0?()=>!0:v=>v!=null&&v.html===!0),st=o.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||T.value.some(Be.value))),Le=o.computed(()=>L.focused.value===!0?e.tabindex:-1),et=o.computed(()=>{const v={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":r.value===!0?"true":"false","aria-controls":`${L.targetUid.value}_lb`};return s.value>=0&&(v["aria-activedescendant"]=`${L.targetUid.value}_${s.value}`),v}),qe=o.computed(()=>({id:`${L.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),ze=o.computed(()=>T.value.map((v,Q)=>({index:Q,opt:v,html:Be.value(v),selected:!0,removeAtIndex:Ce,toggleOption:Ge,tabindex:Le.value}))),ut=o.computed(()=>{if(N.value===0)return[];const{from:v,to:Q}=M.value;return e.options.slice(v,Q).map((Y,me)=>{const we=pe.value(Y)===!0,ke=Tt(Y)===!0,je=v+me,Oe={clickable:!0,active:ke,activeClass:A.value,manualFocus:!0,focused:!1,disable:we,tabindex:-1,dense:e.optionsDense,dark:ae.value,role:"option","aria-selected":ke===!0?"true":"false",id:`${L.targetUid.value}_${je}`,onClick:()=>{Ge(Y)}};return we!==!0&&(s.value===je&&(Oe.focused=!0),a.platform.is.desktop===!0&&(Oe.onMousemove=()=>{r.value===!0&&Ae(je)})),{index:je,opt:Y,html:Be.value(Y),label:fe.value(Y),selected:Oe.active,focused:Oe.focused,toggleOption:Ge,setOptionIndex:Ae,itemProps:Oe}})}),g=o.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:a.iconSet.arrow.dropdown),k=o.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),A=o.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),G=o.computed(()=>$o(e.optionValue,"value")),fe=o.computed(()=>$o(e.optionLabel,"label")),pe=o.computed(()=>$o(e.optionDisable,"disable")),se=o.computed(()=>T.value.map(G.value)),R=o.computed(()=>{const v={onInput:P,onChange:B,onKeydown:Kt,onKeyup:rn,onKeypress:Vn,onFocus:Pn,onClick(Q){S===!0&&_t(Q)}};return v.onCompositionstart=v.onCompositionupdate=v.onCompositionend=B,v});o.watch(T,v=>{h=v,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&L.innerLoading.value!==!0&&(i.value!==!0&&r.value!==!0||re.value!==!0)&&(E!==!0&&fn(),(i.value===!0||r.value===!0)&&oe(""))},{immediate:!0}),o.watch(()=>e.fillInput,fn),o.watch(r,kl),o.watch(N,eh);function q(v){return e.emitValue===!0?G.value(v):v}function de(v){if(v!==-1&&v<T.value.length)if(e.multiple===!0){const Q=e.modelValue.slice();n("remove",{index:v,value:Q.splice(v,1)[0]}),n("update:modelValue",Q)}else n("update:modelValue",null)}function Ce(v){de(v),L.focus()}function ct(v,Q){const Y=q(v);if(e.multiple!==!0){e.fillInput===!0&&ne(fe.value(v),!0,!0),n("update:modelValue",Y);return}if(T.value.length===0){n("add",{index:0,value:Y}),n("update:modelValue",e.multiple===!0?[Y]:Y);return}if(Q===!0&&Tt(v)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const me=e.modelValue.slice();n("add",{index:me.length,value:Y}),me.push(Y),n("update:modelValue",me)}function Ge(v,Q){if(L.editable.value!==!0||v===void 0||pe.value(v)===!0)return;const Y=G.value(v);if(e.multiple!==!0){Q!==!0&&(ne(e.fillInput===!0?fe.value(v):"",!0,!0),Gt()),O.value!==null&&O.value.focus(),(T.value.length===0||St(G.value(T.value[0]),Y)!==!0)&&n("update:modelValue",e.emitValue===!0?Y:v);return}if((S!==!0||m.value===!0)&&L.focus(),Pn(),T.value.length===0){const ke=e.emitValue===!0?Y:v;n("add",{index:0,value:ke}),n("update:modelValue",e.multiple===!0?[ke]:ke);return}const me=e.modelValue.slice(),we=se.value.findIndex(ke=>St(ke,Y));if(we!==-1)n("remove",{index:we,value:me.splice(we,1)[0]});else{if(e.maxValues!==void 0&&me.length>=e.maxValues)return;const ke=e.emitValue===!0?Y:v;n("add",{index:me.length,value:ke}),me.push(ke)}n("update:modelValue",me)}function Ae(v){if(a.platform.is.desktop!==!0)return;const Q=v!==-1&&v<N.value?v:-1;s.value!==Q&&(s.value=Q)}function Fe(v=1,Q){if(r.value===!0){let Y=s.value;do Y=er(Y+v,-1,N.value-1);while(Y!==-1&&Y!==s.value&&pe.value(e.options[Y])===!0);s.value!==Y&&(Ae(Y),Z(Y),Q!==!0&&e.useInput===!0&&e.fillInput===!0&&K(Y>=0?fe.value(e.options[Y]):p,!0))}}function In(v,Q){const Y=me=>St(G.value(me),v);return e.options.find(Y)||Q.find(Y)||v}function Tt(v){const Q=G.value(v);return se.value.find(Y=>St(Y,Q))!==void 0}function Pn(v){e.useInput===!0&&O.value!==null&&(v===void 0||O.value===v.target&&v.target.value===$.value)&&O.value.select()}function so(v){Dt(v,27)===!0&&r.value===!0&&(_t(v),Gt(),fn()),n("keyup",v)}function rn(v){const{value:Q}=v.target;if(v.keyCode!==void 0){so(v);return}if(v.target.value="",c!==null&&(clearTimeout(c),c=null),f!==null&&(clearTimeout(f),f=null),fn(),typeof Q=="string"&&Q.length!==0){const Y=Q.toLocaleLowerCase(),me=ke=>{const je=e.options.find(Oe=>String(ke.value(Oe)).toLocaleLowerCase()===Y);return je===void 0?!1:(T.value.indexOf(je)===-1?Ge(je):Gt(),!0)},we=ke=>{me(G)!==!0&&ke!==!0&&me(fe)!==!0&&oe(Q,!0,()=>we(!0))};we()}else L.clearValue(v)}function Vn(v){n("keypress",v)}function Kt(v){if(n("keydown",v),po(v)===!0)return;const Q=u.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),Y=v.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(s.value!==-1||Q===!0);if(v.keyCode===27){dt(v);return}if(v.keyCode===9&&Y===!1){cn();return}if(v.target===void 0||v.target.id!==L.targetUid.value||L.editable.value!==!0)return;if(v.keyCode===40&&L.innerLoading.value!==!0&&r.value===!1){Me(v),dn();return}if(v.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&u.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?de(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(v.keyCode===35||v.keyCode===36)&&(typeof u.value!="string"||u.value.length===0)&&(Me(v),s.value=-1,Fe(v.keyCode===36?1:-1,e.multiple)),(v.keyCode===33||v.keyCode===34)&&J.value!==void 0&&(Me(v),s.value=Math.max(-1,Math.min(N.value,s.value+(v.keyCode===33?-1:1)*J.value.view)),Fe(v.keyCode===33?1:-1,e.multiple)),(v.keyCode===38||v.keyCode===40)&&(Me(v),Fe(v.keyCode===38?-1:1,e.multiple));const me=N.value;if((w===void 0||y<Date.now())&&(w=""),me>0&&e.useInput!==!0&&v.key!==void 0&&v.key.length===1&&v.altKey===!1&&v.ctrlKey===!1&&v.metaKey===!1&&(v.keyCode!==32||w.length!==0)){r.value!==!0&&dn(v);const we=v.key.toLocaleLowerCase(),ke=w.length===1&&w[0]===we;y=Date.now()+1500,ke===!1&&(Me(v),w+=we);const je=new RegExp("^"+w.split("").map(wl=>Iu.indexOf(wl)!==-1?"\\"+wl:wl).join(".*"),"i");let Oe=s.value;if(ke===!0||Oe<0||je.test(fe.value(e.options[Oe]))!==!0)do Oe=er(Oe+1,-1,me-1);while(Oe!==s.value&&(pe.value(e.options[Oe])===!0||je.test(fe.value(e.options[Oe]))!==!0));s.value!==Oe&&o.nextTick(()=>{Ae(Oe),Z(Oe),Oe>=0&&e.useInput===!0&&e.fillInput===!0&&K(fe.value(e.options[Oe]),!0)});return}if(!(v.keyCode!==13&&(v.keyCode!==32||e.useInput===!0||w!=="")&&(v.keyCode!==9||Y===!1))){if(v.keyCode!==9&&Me(v),s.value!==-1&&s.value<me){Ge(e.options[s.value]);return}if(Q===!0){const we=(ke,je)=>{if(je){if(tr(je)!==!0)return}else je=e.newValueMode;if(ne("",e.multiple!==!0,!0),ke==null)return;(je==="toggle"?Ge:ct)(ke,je==="add-unique"),e.multiple!==!0&&(O.value!==null&&O.value.focus(),Gt())};if(e.onNewValue!==void 0?n("newValue",u.value,we):we(u.value),e.multiple!==!0)return}r.value===!0?cn():L.innerLoading.value!==!0&&dn()}}function uo(){return S===!0?I.value:C.value!==null&&C.value.contentEl!==null?C.value.contentEl:void 0}function _l(){return uo()}function vl(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?ze.value.map(v=>t["selected-item"](v)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?ze.value.map((v,Q)=>o.h(Zs,{key:"option-"+Q,removable:L.editable.value===!0&&pe.value(v.opt)!==!0,dense:!0,textColor:e.color,tabindex:Le.value,onRemove(){v.removeAtIndex(Q)}},()=>o.h("span",{class:"ellipsis",[v.html===!0?"innerHTML":"textContent"]:fe.value(v.opt)}))):[o.h("span",{[st.value===!0?"innerHTML":"textContent"]:be.value})]}function co(){if(ce.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:u.value}):void 0;const v=t.option!==void 0?t.option:Y=>o.h(Lt,{key:Y.index,...Y.itemProps},()=>o.h(mt,()=>o.h(rt,()=>o.h("span",{[Y.html===!0?"innerHTML":"textContent"]:Y.label}))));let Q=te("div",ut.value.map(v));return t["before-options"]!==void 0&&(Q=t["before-options"]().concat(Q)),kt(t["after-options"],Q)}function yl(v,Q){const Y=Q===!0?{...et.value,...L.splitAttrs.attributes.value}:void 0,me={ref:Q===!0?O:void 0,key:"i_t",class:F.value,style:e.inputStyle,value:u.value!==void 0?u.value:"",type:"search",...Y,id:Q===!0?L.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":v===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...R.value};return v!==!0&&S===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),o.h("input",me)}function P(v){c!==null&&(clearTimeout(c),c=null),f!==null&&(clearTimeout(f),f=null),!(v&&v.target&&v.target.qComposing===!0)&&(K(v.target.value||""),E=!0,p=u.value,L.focused.value!==!0&&(S!==!0||m.value===!0)&&L.focus(),e.onFilter!==void 0&&(c=setTimeout(()=>{c=null,oe(u.value)},e.inputDebounce)))}function K(v,Q){u.value!==v&&(u.value=v,Q===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",v):f=setTimeout(()=>{f=null,n("inputValue",v)},e.inputDebounce))}function ne(v,Q,Y){E=Y!==!0,e.useInput===!0&&(K(v,!0),(Q===!0||Y!==!0)&&(p=v),Q!==!0&&oe(v))}function oe(v,Q,Y){if(e.onFilter===void 0||Q!==!0&&L.focused.value!==!0)return;L.innerLoading.value===!0?n("filterAbort"):(L.innerLoading.value=!0,d.value=!0),v!==""&&e.multiple!==!0&&T.value.length!==0&&E!==!0&&v===fe.value(T.value[0])&&(v="");const me=setTimeout(()=>{r.value===!0&&(r.value=!1)},10);b!==null&&clearTimeout(b),b=me,n("filter",v,(we,ke)=>{(Q===!0||L.focused.value===!0)&&b===me&&(clearTimeout(b),typeof we=="function"&&we(),d.value=!1,o.nextTick(()=>{L.innerLoading.value=!1,L.editable.value===!0&&(Q===!0?r.value===!0&&Gt():r.value===!0?kl(!0):r.value=!0),typeof ke=="function"&&o.nextTick(()=>{ke(l)}),typeof Y=="function"&&o.nextTick(()=>{Y(l)})}))},()=>{L.focused.value===!0&&b===me&&(clearTimeout(b),L.innerLoading.value=!1,d.value=!1),r.value===!0&&(r.value=!1)})}function ue(){return o.h(ja,{ref:C,class:z.value,style:e.popupContentStyle,modelValue:r.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&ce.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:ae.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:k.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...qe.value,onScrollPassive:U,onBeforeShow:Ti,onBeforeHide:xe,onShow:Ee},co)}function xe(v){xi(v),cn()}function Ee(){ee()}function pt(v){_t(v),O.value!==null&&O.value.focus(),m.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Qe(v){_t(v),o.nextTick(()=>{m.value=!1})}function sn(){const v=[o.h(Xs,{class:`col-auto ${L.fieldClass.value}`,...j.value,for:L.targetUid.value,dark:ae.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:u.value.length!==0,...L.splitAttrs.listeners.value,onFocus:pt,onBlur:Qe},{...t,rawControl:()=>L.getControl(!0),before:void 0,after:void 0})];return r.value===!0&&v.push(o.h("div",{ref:I,class:z.value+" scroll",style:e.popupContentStyle,...qe.value,onClick:dt,onScrollPassive:U},co())),o.h(Eu,{ref:D,modelValue:i.value,position:e.useInput===!0?"top":void 0,transitionShow:_,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Ti,onBeforeHide:un,onHide:Sl,onShow:Zm},()=>o.h("div",{class:"q-select__dialog"+(ae.value===!0?" q-select__dialog--dark q-dark":"")+(m.value===!0?" q-select__dialog--focused":"")},v))}function un(v){xi(v),D.value!==null&&D.value.__updateRefocusTarget(L.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),L.focused.value=!1}function Sl(v){Gt(),L.focused.value===!1&&n("blur",v),fn()}function Zm(){const v=document.activeElement;(v===null||v.id!==L.targetUid.value)&&O.value!==null&&O.value!==v&&O.value.focus(),ee()}function cn(){i.value!==!0&&(s.value=-1,r.value===!0&&(r.value=!1),L.focused.value===!1&&(b!==null&&(clearTimeout(b),b=null),L.innerLoading.value===!0&&(n("filterAbort"),L.innerLoading.value=!1,d.value=!1)))}function dn(v){L.editable.value===!0&&(S===!0?(L.onControlFocusin(v),i.value=!0,o.nextTick(()=>{L.focus()})):L.focus(),e.onFilter!==void 0?oe(u.value):(ce.value!==!0||t["no-option"]!==void 0)&&(r.value=!0))}function Gt(){i.value=!1,cn()}function fn(){e.useInput===!0&&ne(e.multiple!==!0&&e.fillInput===!0&&T.value.length!==0&&fe.value(T.value[0])||"",!0,!0)}function kl(v){let Q=-1;if(v===!0){if(T.value.length!==0){const Y=G.value(T.value[0]);Q=e.options.findIndex(me=>St(G.value(me),Y))}X(Q)}Ae(Q)}function eh(v,Q){r.value===!0&&L.innerLoading.value===!1&&(X(-1,!0),o.nextTick(()=>{r.value===!0&&L.innerLoading.value===!1&&(v>Q?X():kl(!0))}))}function Ei(){i.value===!1&&C.value!==null&&C.value.updatePosition()}function Ti(v){v!==void 0&&_t(v),n("popupShow",v),L.hasPopupOpen=!0,L.onControlFocusin(v)}function xi(v){v!==void 0&&_t(v),n("popupHide",v),L.hasPopupOpen=!1,L.onControlFocusout(v)}function Ni(){S=a.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||ce.value===!1:!0),_=a.platform.is.ios===!0&&S===!0&&e.useInput===!0?"fade":e.transitionShow}return o.onBeforeUpdate(Ni),o.onUpdated(Ei),Ni(),o.onBeforeUnmount(()=>{c!==null&&clearTimeout(c),f!==null&&clearTimeout(f)}),Object.assign(l,{showPopup:dn,hidePopup:Gt,removeAtIndex:de,add:ct,toggleOption:Ge,getOptionIndex:()=>s.value,setOptionIndex:Ae,moveOptionSelection:Fe,filter:oe,updateMenuPosition:Ei,updateInputValue:ne,isOptionSelected:Tt,getEmittingOptionValue:q,isOptionDisabled:(...v)=>pe.value.apply(null,v)===!0,getOptionValue:(...v)=>G.value.apply(null,v),getOptionLabel:(...v)=>fe.value.apply(null,v)}),Object.assign(L,{innerValue:T,fieldClass:o.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:x,targetRef:O,hasValue:re,showPopup:dn,floatingLabel:o.computed(()=>e.hideSelected!==!0&&re.value===!0||typeof u.value=="number"||u.value.length!==0||_n(e.displayValue)),getControlChild:()=>{if(L.editable.value!==!1&&(i.value===!0||ce.value!==!0||t["no-option"]!==void 0))return S===!0?sn():ue();L.hasPopupOpen===!0&&(L.hasPopupOpen=!1)},controlEvents:{onFocusin(v){L.onControlFocusin(v)},onFocusout(v){L.onControlFocusout(v,()=>{fn(),cn()})},onClick(v){if(dt(v),S!==!0&&r.value===!0){cn(),O.value!==null&&O.value.focus();return}dn(v)}},getControl:v=>{const Q=vl(),Y=v===!0||i.value!==!0||S!==!0;if(e.useInput===!0)Q.push(yl(v,Y));else if(L.editable.value===!0){const we=Y===!0?et.value:void 0;Q.push(o.h("input",{ref:Y===!0?O:void 0,key:"d_t",class:"q-select__focus-target",id:Y===!0?L.targetUid.value:void 0,value:be.value,readonly:!0,"data-autofocus":v===!0||e.autofocus===!0||void 0,...we,onKeydown:Kt,onKeyup:so,onKeypress:Vn})),Y===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&Q.push(o.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:rn}))}if(V.value!==void 0&&e.disable!==!0&&se.value.length!==0){const we=se.value.map(ke=>o.h("option",{value:ke,selected:!0}));Q.push(o.h("select",{class:"hidden",name:V.value,multiple:e.multiple},we))}const me=e.useInput===!0||Y!==!0?void 0:L.splitAttrs.attributes.value;return o.h("div",{class:"q-field__native row items-center",...me,...L.splitAttrs.listeners.value},Q)},getInnerAppend:()=>e.loading!==!0&&d.value!==!0&&e.hideDropdownIcon!==!0?[o.h(Ue,{class:"q-select__dropdown-icon"+(r.value===!0?" rotate-180":""),name:g.value})]:null}),Vo(L)}}),Vu={xs:2,sm:4,md:6,lg:10,xl:14};function nr(e,t,n){return{transform:t===!0?`translateX(${n.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const Ru=ve({name:"QLinearProgress",props:{...lt,...hn,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}=o.getCurrentInstance(),l=at(e,n.$q),a=gn(e,Vu),r=o.computed(()=>e.indeterminate===!0||e.query===!0),i=o.computed(()=>e.reverse!==e.query),s=o.computed(()=>({...a.value!==null?a.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),u=o.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":"")),m=o.computed(()=>nr(e.buffer!==void 0?e.buffer:1,i.value,n.$q)),d=o.computed(()=>`with${e.instantFeedback===!0?"out":""}-transition`),c=o.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${d.value} q-linear-progress__track--${l.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),f=o.computed(()=>nr(r.value===!0?1:e.value,i.value,n.$q)),h=o.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${d.value} q-linear-progress__model--${r.value===!0?"in":""}determinate`),S=o.computed(()=>({width:`${e.value*100}%`})),E=o.computed(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${d.value}`);return()=>{const b=[o.h("div",{class:c.value,style:m.value}),o.h("div",{class:h.value,style:f.value})];return e.stripe===!0&&r.value===!1&&b.push(o.h("div",{class:E.value,style:S.value})),o.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},kt(t.default,b))}}});function Au(e,t){const n=o.ref(null),l=o.computed(()=>e.disable===!0?null:o.h("span",{ref:n,class:"no-outline",tabindex:-1}));function a(r){const i=t.value;r!==void 0&&r.type.indexOf("key")===0?i!==null&&document.activeElement!==i&&i.contains(document.activeElement)===!0&&i.focus():n.value!==null&&(r===void 0||i!==null&&i.contains(r.target)===!0)&&n.value.focus()}return{refocusTargetEl:l,refocusTarget:a}}const Mu={xs:30,sm:35,md:40,lg:50,xl:60},Du={...lt,...hn,...Fo,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]},Bu=["update:modelValue"];function qu(e,t){const{props:n,slots:l,emit:a,proxy:r}=o.getCurrentInstance(),{$q:i}=r,s=at(n,i),u=o.ref(null),{refocusTargetEl:m,refocusTarget:d}=Au(n,u),c=gn(n,Mu),f=o.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),h=o.computed(()=>{const N=o.toRaw(n.val);return f.value===!0?n.modelValue.findIndex(W=>o.toRaw(W)===N):-1}),S=o.computed(()=>f.value===!0?h.value!==-1:o.toRaw(n.modelValue)===o.toRaw(n.trueValue)),E=o.computed(()=>f.value===!0?h.value===-1:o.toRaw(n.modelValue)===o.toRaw(n.falseValue)),b=o.computed(()=>S.value===!1&&E.value===!1),p=o.computed(()=>n.disable===!0?-1:n.tabindex||0),_=o.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":"")),w=o.computed(()=>{const N=S.value===!0?"truthy":E.value===!0?"falsy":"indet",W=n.color!==void 0&&(n.keepColor===!0||E.value!==!0)?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${N}${W}`}),y=o.computed(()=>{const N={type:"checkbox"};return n.name!==void 0&&Object.assign(N,{".checked":S.value,"^checked":S.value===!0?"checked":void 0,name:n.name,value:f.value===!0?n.val:n.trueValue}),N}),x=Tu(y),O=o.computed(()=>{const N={tabindex:p.value,role:"checkbox","aria-label":n.label,"aria-checked":b.value===!0?"mixed":S.value===!0?"true":"false"};return n.disable===!0&&(N["aria-disabled"]="true"),N});function C(N){N!==void 0&&(Me(N),d(N)),n.disable!==!0&&a("update:modelValue",D(),N)}function D(){if(f.value===!0){if(S.value===!0){const N=n.modelValue.slice();return N.splice(h.value,1),N}return n.modelValue.concat([n.val])}if(S.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(E.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 I(N){(N.keyCode===13||N.keyCode===32)&&Me(N)}function V(N){(N.keyCode===13||N.keyCode===32)&&C(N)}const B=t(S,b);return Object.assign(r,{toggle:C}),()=>{const N=B();n.disable!==!0&&x(N,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const W=[o.h("div",{class:w.value,style:c.value,"aria-hidden":"true"},N)];m.value!==null&&W.push(m.value);const M=n.label!==void 0?kt(l.default,[n.label]):Pe(l.default);return M!==void 0&&W.push(o.h("div",{class:`q-${e}__label q-anchor--skip`},M)),o.h("div",{ref:u,class:_.value,...O.value,onClick:C,onKeydown:I,onKeyup:V},W)}}const Fu=()=>o.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[o.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[o.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),o.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Ot=ve({name:"QCheckbox",props:Du,emits:Bu,setup(e){const t=Fu();function n(l,a){const r=o.computed(()=>(l.value===!0?e.checkedIcon:a.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>r.value!==null?[o.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[o.h(Ue,{class:"q-checkbox__icon",name:r.value})])]:[t]}return qu("checkbox",n)}});let kn=0;const $u={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Uu=["update:fullscreen","fullscreen"];function Hu(){const e=o.getCurrentInstance(),{props:t,emit:n,proxy:l}=e;let a,r,i;const s=o.ref(!1);wo(e)===!0&&o.watch(()=>l.$route.fullPath,()=>{t.noRouteFullscreenExit!==!0&&d()}),o.watch(()=>t.fullscreen,c=>{s.value!==c&&u()}),o.watch(s,c=>{n("update:fullscreen",c),n("fullscreen",c)});function u(){s.value===!0?d():m()}function m(){s.value!==!0&&(s.value=!0,i=l.$el.parentNode,i.replaceChild(r,l.$el),document.body.appendChild(l.$el),kn++,kn===1&&document.body.classList.add("q-body--fullscreen-mixin"),a={handler:d},mn.add(a))}function d(){s.value===!0&&(a!==void 0&&(mn.remove(a),a=void 0),i.replaceChild(l.$el,r),s.value=!1,kn=Math.max(0,kn-1),kn===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),l.$el.scrollIntoView!==void 0&&setTimeout(()=>{l.$el.scrollIntoView()})))}return o.onBeforeMount(()=>{r=document.createElement("span")}),o.onMounted(()=>{t.fullscreen===!0&&m()}),o.onBeforeUnmount(d),Object.assign(l,{toggleFullscreen:u,setFullscreen:m,exitFullscreen:d}),{inFullscreen:s,toggleFullscreen:u}}function zu(e,t){return new Date(e)-new Date(t)}const ju={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>e==="ad"||e==="da",default:"ad"}};function Wu(e,t,n,l){const a=o.computed(()=>{const{sortBy:s}=t.value;return s&&n.value.find(u=>u.name===s)||null}),r=o.computed(()=>e.sortMethod!==void 0?e.sortMethod:(s,u,m)=>{const d=n.value.find(h=>h.name===u);if(d===void 0||d.field===void 0)return s;const c=m===!0?-1:1,f=typeof d.field=="function"?h=>d.field(h):h=>h[d.field];return s.sort((h,S)=>{let E=f(h),b=f(S);return d.rawSort!==void 0?d.rawSort(E,b,h,S)*c:E==null?-1*c:b==null?1*c:d.sort!==void 0?d.sort(E,b,h,S)*c:_o(E)===!0&&_o(b)===!0?(E-b)*c:Al(E)===!0&&Al(b)===!0?zu(E,b)*c:typeof E=="boolean"&&typeof b=="boolean"?(E-b)*c:([E,b]=[E,b].map(p=>(p+"").toLocaleString().toLowerCase()),E<b?-1*c:E===b?0:c)})});function i(s){let u=e.columnSortOrder;if(bo(s)===!0)s.sortOrder&&(u=s.sortOrder),s=s.name;else{const c=n.value.find(f=>f.name===s);c!==void 0&&c.sortOrder&&(u=c.sortOrder)}let{sortBy:m,descending:d}=t.value;m!==s?(m=s,d=u==="da"):e.binaryStateSort===!0?d=!d:d===!0?u==="ad"?m=null:d=!1:u==="ad"?d=!0:m=null,l({sortBy:m,descending:d,page:1})}return{columnToSort:a,computedSortMethod:r,sort:i}}const Ku={filter:[String,Object],filterMethod:Function};function Gu(e,t){const n=o.computed(()=>e.filterMethod!==void 0?e.filterMethod:(l,a,r,i)=>{const s=a?a.toLowerCase():"";return l.filter(u=>r.some(m=>{const d=i(m,u)+"";return(d==="undefined"||d==="null"?"":d.toLowerCase()).indexOf(s)!==-1}))});return o.watch(()=>e.filter,()=>{o.nextTick(()=>{t({page:1},!0)})},{deep:!0}),{computedFilterMethod:n}}function Qu(e,t){for(const n in t)if(t[n]!==e[n])return!1;return!0}function or(e){return e.page<1&&(e.page=1),e.rowsPerPage!==void 0&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const Yu={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function Xu(e,t){const{props:n,emit:l}=e,a=o.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length!==0?n.rowsPerPageOptions[0]:5},n.pagination)),r=o.computed(()=>{const d=n["onUpdate:pagination"]!==void 0?{...a.value,...n.pagination}:a.value;return or(d)}),i=o.computed(()=>r.value.rowsNumber!==void 0);function s(d){u({pagination:d,filter:n.filter})}function u(d={}){o.nextTick(()=>{l("request",{pagination:d.pagination||r.value,filter:d.filter||n.filter,getCellValue:t})})}function m(d,c){const f=or({...r.value,...d});if(Qu(r.value,f)===!0){i.value===!0&&c===!0&&s(f);return}if(i.value===!0){s(f);return}n.pagination!==void 0&&n["onUpdate:pagination"]!==void 0?l("update:pagination",f):a.value=f}return{innerPagination:a,computedPagination:r,isServerSide:i,requestServerInteraction:u,setPagination:m}}function Ju(e,t,n,l,a,r){const{props:i,emit:s,proxy:{$q:u}}=e,m=o.computed(()=>l.value===!0?n.value.rowsNumber||0:r.value),d=o.computed(()=>{const{page:y,rowsPerPage:x}=n.value;return(y-1)*x}),c=o.computed(()=>{const{page:y,rowsPerPage:x}=n.value;return y*x}),f=o.computed(()=>n.value.page===1),h=o.computed(()=>n.value.rowsPerPage===0?1:Math.max(1,Math.ceil(m.value/n.value.rowsPerPage))),S=o.computed(()=>c.value===0?!0:n.value.page>=h.value),E=o.computed(()=>(i.rowsPerPageOptions.includes(t.value.rowsPerPage)?i.rowsPerPageOptions:[t.value.rowsPerPage].concat(i.rowsPerPageOptions)).map(x=>({label:x===0?u.lang.table.allRows:""+x,value:x})));o.watch(h,(y,x)=>{if(y===x)return;const O=n.value.page;y&&!O?a({page:1}):y<O&&a({page:y})});function b(){a({page:1})}function p(){const{page:y}=n.value;y>1&&a({page:y-1})}function _(){const{page:y,rowsPerPage:x}=n.value;c.value>0&&y*x<m.value&&a({page:y+1})}function w(){a({page:h.value})}return i["onUpdate:pagination"]!==void 0&&s("update:pagination",{...n.value}),{firstRowIndex:d,lastRowIndex:c,isFirstPage:f,isLastPage:S,pagesNumber:h,computedRowsPerPageOptions:E,computedRowsNumber:m,firstPage:b,prevPage:p,nextPage:_,lastPage:w}}const Zu={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},ec=["update:selected","selection"];function tc(e,t,n,l){const a=o.computed(()=>{const S={};return e.selected.map(l.value).forEach(E=>{S[E]=!0}),S}),r=o.computed(()=>e.selection!=="none"),i=o.computed(()=>e.selection==="single"),s=o.computed(()=>e.selection==="multiple"),u=o.computed(()=>n.value.length!==0&&n.value.every(S=>a.value[l.value(S)]===!0)),m=o.computed(()=>u.value!==!0&&n.value.some(S=>a.value[l.value(S)]===!0)),d=o.computed(()=>e.selected.length);function c(S){return a.value[S]===!0}function f(){t("update:selected",[])}function h(S,E,b,p){t("selection",{rows:E,added:b,keys:S,evt:p});const _=i.value===!0?b===!0?E:[]:b===!0?e.selected.concat(E):e.selected.filter(w=>S.includes(l.value(w))===!1);t("update:selected",_)}return{hasSelectionMode:r,singleSelection:i,multipleSelection:s,allRowsSelected:u,someRowsSelected:m,rowsSelectedNumber:d,isRowSelected:c,clearSelection:f,updateSelection:h}}function lr(e){return Array.isArray(e)?e.slice():[]}const nc={expanded:Array},oc=["update:expanded"];function lc(e,t){const n=o.ref(lr(e.expanded));o.watch(()=>e.expanded,i=>{n.value=lr(i)});function l(i){return n.value.includes(i)}function a(i){e.expanded!==void 0?t("update:expanded",i):n.value=i}function r(i,s){const u=n.value.slice(),m=u.indexOf(i);s===!0?m===-1&&(u.push(i),a(u)):m!==-1&&(u.splice(m,1),a(u))}return{isRowExpanded:l,setExpanded:a,updateExpanded:r}}const ac={visibleColumns:Array};function rc(e,t,n){const l=o.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:_o(s[u])?"right":"left",sortable:!0})):[]}),a=o.computed(()=>{const{sortBy:s,descending:u}=t.value;return(e.visibleColumns!==void 0?l.value.filter(d=>d.required===!0||e.visibleColumns.includes(d.name)===!0):l.value).map(d=>{const c=d.align||"right",f=`text-${c}`;return{...d,align:c,__iconClass:`q-table__sort-icon q-table__sort-icon--${c}`,__thClass:f+(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"?()=>f+" "+d.classes:h=>f+" "+d.classes(h):()=>f}})}),r=o.computed(()=>{const s={};return a.value.forEach(u=>{s[u.name]=u}),s}),i=o.computed(()=>e.tableColspan!==void 0?e.tableColspan:a.value.length+(n.value===!0?1:0));return{colList:l,computedCols:a,computedColsMap:r,computedColspan:i}}const Yn="q-table__bottom row items-center",ar={};ha.forEach(e=>{ar[e]={}});const ic=ve({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:{},...ar,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,...lt,...$u,...ac,...Ku,...Yu,...nc,...Zu,...ju},emits:["request","virtualScroll",...Uu,...oc,...ec],setup(e,{slots:t,emit:n}){const l=o.getCurrentInstance(),{proxy:{$q:a}}=l,r=at(e,a),{inFullscreen:i,toggleFullscreen:s}=Hu(),u=o.computed(()=>typeof e.rowKey=="function"?e.rowKey:P=>P[e.rowKey]),m=o.ref(null),d=o.ref(null),c=o.computed(()=>e.grid!==!0&&e.virtualScroll===!0),f=o.computed(()=>" q-table__card"+(r.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=o.computed(()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(e.grid===!0?" q-table--grid":f.value)+(r.value===!0?" q-table--dark":"")+(e.dense===!0?" q-table--dense":"")+(e.wrapCells===!1?" q-table--no-wrap":"")+(i.value===!0?" fullscreen scroll":"")),S=o.computed(()=>h.value+(e.loading===!0?" q-table--loading":""));o.watch(()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+h.value,()=>{c.value===!0&&d.value!==null&&d.value.reset()});const{innerPagination:E,computedPagination:b,isServerSide:p,requestServerInteraction:_,setPagination:w}=Xu(l,Ae),{computedFilterMethod:y}=Gu(e,w),{isRowExpanded:x,setExpanded:O,updateExpanded:C}=lc(e,n),D=o.computed(()=>{let P=e.rows;if(p.value===!0||P.length===0)return P;const{sortBy:K,descending:ne}=b.value;return e.filter&&(P=y.value(P,e.filter,L.value,Ae)),ae.value!==null&&(P=re.value(e.rows===P?P.slice():P,K,ne)),P}),I=o.computed(()=>D.value.length),V=o.computed(()=>{let P=D.value;if(p.value===!0)return P;const{rowsPerPage:K}=b.value;return K!==0&&(z.value===0&&e.rows!==P?P.length>ce.value&&(P=P.slice(0,ce.value)):P=P.slice(z.value,ce.value)),P}),{hasSelectionMode:B,singleSelection:N,multipleSelection:W,allRowsSelected:M,someRowsSelected:J,rowsSelectedNumber:X,isRowSelected:te,clearSelection:U,updateSelection:Z}=tc(e,n,V,u),{colList:ee,computedCols:L,computedColsMap:T,computedColspan:j}=rc(e,b,B),{columnToSort:ae,computedSortMethod:re,sort:F}=Wu(e,b,ee,w),{firstRowIndex:z,lastRowIndex:ce,isFirstPage:$,isLastPage:be,pagesNumber:Be,computedRowsPerPageOptions:st,computedRowsNumber:Le,firstPage:et,prevPage:qe,nextPage:ze,lastPage:ut}=Ju(l,E,b,p,w,I),g=o.computed(()=>V.value.length===0),k=o.computed(()=>{const P={};return ha.forEach(K=>{P[K]=e[K]}),P.virtualScrollItemSize===void 0&&(P.virtualScrollItemSize=e.dense===!0?28:48),P});function A(){c.value===!0&&d.value.reset()}function G(){if(e.grid===!0)return yl();const P=e.hideHeader!==!0?Pn:null;if(c.value===!0){const ne=t["top-row"],oe=t["bottom-row"],ue={default:xe=>R(xe.item,t.body,xe.index)};if(ne!==void 0){const xe=o.h("tbody",ne({cols:L.value}));ue.before=P===null?()=>xe:()=>[P()].concat(xe)}else P!==null&&(ue.before=P);return oe!==void 0&&(ue.after=()=>o.h("tbody",oe({cols:L.value}))),o.h(Fs,{ref:d,class:e.tableClass,style:e.tableStyle,...k.value,scrollTarget:e.virtualScrollTarget,items:V.value,type:"__qtable",tableColspan:j.value,onVirtualScroll:pe},ue)}const K=[q()];return P!==null&&K.unshift(P()),ca({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},K)}function fe(P,K){if(d.value!==null){d.value.scrollTo(P,K);return}P=parseInt(P,10);const ne=m.value.querySelector(`tbody tr:nth-of-type(${P+1})`);if(ne!==null){const oe=m.value.querySelector(".q-table__middle.scroll"),ue=ne.offsetTop-e.virtualScrollStickySizeStart,xe=ue<oe.scrollTop?"decrease":"increase";oe.scrollTop=ue,n("virtualScroll",{index:P,from:0,to:E.value.rowsPerPage-1,direction:xe})}}function pe(P){n("virtualScroll",P)}function se(){return[o.h(Ru,{class:"q-table__linear-progress",color:e.color,dark:r.value,indeterminate:!0,trackColor:"transparent"})]}function R(P,K,ne){const oe=u.value(P),ue=te(oe);if(K!==void 0)return K(de({key:oe,row:P,pageIndex:ne,__trClass:ue?"selected":""}));const xe=t["body-cell"],Ee=L.value.map(Qe=>{const sn=t[`body-cell-${Qe.name}`],un=sn!==void 0?sn:xe;return un!==void 0?un(Ce({key:oe,row:P,pageIndex:ne,col:Qe})):o.h("td",{class:Qe.__tdClass(P),style:Qe.__tdStyle(P)},Ae(Qe,P))});if(B.value===!0){const Qe=t["body-selection"],sn=Qe!==void 0?Qe(ct({key:oe,row:P,pageIndex:ne})):[o.h(Ot,{modelValue:ue,color:e.color,dark:r.value,dense:e.dense,"onUpdate:modelValue":(un,Sl)=>{Z([oe],[P],un,Sl)}})];Ee.unshift(o.h("td",{class:"q-table--col-auto-width"},sn))}const pt={key:oe,class:{selected:ue}};return e.onRowClick!==void 0&&(pt.class["cursor-pointer"]=!0,pt.onClick=Qe=>{n("rowClick",Qe,P,ne)}),e.onRowDblclick!==void 0&&(pt.class["cursor-pointer"]=!0,pt.onDblclick=Qe=>{n("rowDblclick",Qe,P,ne)}),e.onRowContextmenu!==void 0&&(pt.class["cursor-pointer"]=!0,pt.onContextmenu=Qe=>{n("rowContextmenu",Qe,P,ne)}),o.h("tr",pt,Ee)}function q(){const P=t.body,K=t["top-row"],ne=t["bottom-row"];let oe=V.value.map((ue,xe)=>R(ue,P,xe));return K!==void 0&&(oe=K({cols:L.value}).concat(oe)),ne!==void 0&&(oe=oe.concat(ne({cols:L.value}))),o.h("tbody",oe)}function de(P){return Ge(P),P.cols=P.cols.map(K=>tt({...K},"value",()=>Ae(K,P.row))),P}function Ce(P){return Ge(P),tt(P,"value",()=>Ae(P.col,P.row)),P}function ct(P){return Ge(P),P}function Ge(P){Object.assign(P,{cols:L.value,colsMap:T.value,sort:F,rowIndex:z.value+P.pageIndex,color:e.color,dark:r.value,dense:e.dense}),B.value===!0&&tt(P,"selected",()=>te(P.key),(K,ne)=>{Z([P.key],[P.row],K,ne)}),tt(P,"expand",()=>x(P.key),K=>{C(P.key,K)})}function Ae(P,K){const ne=typeof P.field=="function"?P.field(K):K[P.field];return P.format!==void 0?P.format(ne,K):ne}const Fe=o.computed(()=>({pagination:b.value,pagesNumber:Be.value,isFirstPage:$.value,isLastPage:be.value,firstPage:et,prevPage:qe,nextPage:ze,lastPage:ut,inFullscreen:i.value,toggleFullscreen:s}));function In(){const P=t.top,K=t["top-left"],ne=t["top-right"],oe=t["top-selection"],ue=B.value===!0&&oe!==void 0&&X.value>0,xe="q-table__top relative-position row items-center";if(P!==void 0)return o.h("div",{class:xe},[P(Fe.value)]);let Ee;if(ue===!0?Ee=oe(Fe.value).slice():(Ee=[],K!==void 0?Ee.push(o.h("div",{class:"q-table__control"},[K(Fe.value)])):e.title&&Ee.push(o.h("div",{class:"q-table__control"},[o.h("div",{class:["q-table__title",e.titleClass]},e.title)]))),ne!==void 0&&(Ee.push(o.h("div",{class:"q-table__separator col"})),Ee.push(o.h("div",{class:"q-table__control"},[ne(Fe.value)]))),Ee.length!==0)return o.h("div",{class:xe},Ee)}const Tt=o.computed(()=>J.value===!0?null:M.value);function Pn(){const P=so();return e.loading===!0&&t.loading===void 0&&P.push(o.h("tr",{class:"q-table__progress"},[o.h("th",{class:"relative-position",colspan:j.value},se())])),o.h("thead",P)}function so(){const P=t.header,K=t["header-cell"];if(P!==void 0)return P(rn({header:!0})).slice();const ne=L.value.map(oe=>{const ue=t[`header-cell-${oe.name}`],xe=ue!==void 0?ue:K,Ee=rn({col:oe});return xe!==void 0?xe(Ee):o.h(Eo,{key:oe.name,props:Ee},()=>oe.label)});if(N.value===!0&&e.grid!==!0)ne.unshift(o.h("th",{class:"q-table--col-auto-width"}," "));else if(W.value===!0){const oe=t["header-selection"],ue=oe!==void 0?oe(rn({})):[o.h(Ot,{color:e.color,modelValue:Tt.value,dark:r.value,dense:e.dense,"onUpdate:modelValue":Vn})];ne.unshift(o.h("th",{class:"q-table--col-auto-width"},ue))}return[o.h("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},ne)]}function rn(P){return Object.assign(P,{cols:L.value,sort:F,colsMap:T.value,color:e.color,dark:r.value,dense:e.dense}),W.value===!0&&tt(P,"selected",()=>Tt.value,Vn),P}function Vn(P){J.value===!0&&(P=!1),Z(V.value.map(u.value),V.value,P)}const Kt=o.computed(()=>{const P=[e.iconFirstPage||a.iconSet.table.firstPage,e.iconPrevPage||a.iconSet.table.prevPage,e.iconNextPage||a.iconSet.table.nextPage,e.iconLastPage||a.iconSet.table.lastPage];return a.lang.rtl===!0?P.reverse():P});function uo(){if(e.hideBottom===!0)return;if(g.value===!0){if(e.hideNoData===!0)return;const ne=e.loading===!0?e.loadingLabel||a.lang.table.loading:e.filter?e.noResultsLabel||a.lang.table.noResults:e.noDataLabel||a.lang.table.noData,oe=t["no-data"],ue=oe!==void 0?[oe({message:ne,icon:a.iconSet.table.warning,filter:e.filter})]:[o.h(Ue,{class:"q-table__bottom-nodata-icon",name:a.iconSet.table.warning}),ne];return o.h("div",{class:Yn+" q-table__bottom--nodata"},ue)}const P=t.bottom;if(P!==void 0)return o.h("div",{class:Yn},[P(Fe.value)]);const K=e.hideSelectedBanner!==!0&&B.value===!0&&X.value>0?[o.h("div",{class:"q-table__control"},[o.h("div",[(e.selectedRowsLabel||a.lang.table.selectedRecords)(X.value)])])]:[];if(e.hidePagination!==!0)return o.h("div",{class:Yn+" justify-end"},vl(K));if(K.length!==0)return o.h("div",{class:Yn},K)}function _l(P){w({page:1,rowsPerPage:P.value})}function vl(P){let K;const{rowsPerPage:ne}=b.value,oe=e.paginationLabel||a.lang.table.pagination,ue=t.pagination,xe=e.rowsPerPageOptions.length>1;if(P.push(o.h("div",{class:"q-table__separator col"})),xe===!0&&P.push(o.h("div",{class:"q-table__control"},[o.h("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||a.lang.table.recordsPerPage]),o.h(Uo,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:ne,options:st.value,displayValue:ne===0?a.lang.table.allRows:ne,dark:r.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":_l})])),ue!==void 0)K=ue(Fe.value);else if(K=[o.h("span",ne!==0?{class:"q-table__bottom-item"}:{},[ne?oe(z.value+1,Math.min(ce.value,Le.value),Le.value):oe(1,I.value,Le.value)])],ne!==0&&Be.value>1){const Ee={color:e.color,round:!0,dense:!0,flat:!0};e.dense===!0&&(Ee.size="sm"),Be.value>2&&K.push(o.h(wt,{key:"pgFirst",...Ee,icon:Kt.value[0],disable:$.value,onClick:et})),K.push(o.h(wt,{key:"pgPrev",...Ee,icon:Kt.value[1],disable:$.value,onClick:qe}),o.h(wt,{key:"pgNext",...Ee,icon:Kt.value[2],disable:be.value,onClick:ze})),Be.value>2&&K.push(o.h(wt,{key:"pgLast",...Ee,icon:Kt.value[3],disable:be.value,onClick:ut}))}return P.push(o.h("div",{class:"q-table__control"},K)),P}function co(){const P=e.gridHeader===!0?[o.h("table",{class:"q-table"},[Pn()])]:e.loading===!0&&t.loading===void 0?se():void 0;return o.h("div",{class:"q-table__middle"},P)}function yl(){const P=t.item!==void 0?t.item:K=>{const ne=K.cols.map(ue=>o.h("div",{class:"q-table__grid-item-row"},[o.h("div",{class:"q-table__grid-item-title"},[ue.label]),o.h("div",{class:"q-table__grid-item-value"},[ue.value])]));if(B.value===!0){const ue=t["body-selection"],xe=ue!==void 0?ue(K):[o.h(Ot,{modelValue:K.selected,color:e.color,dark:r.value,dense:e.dense,"onUpdate:modelValue":(Ee,pt)=>{Z([K.key],[K.row],Ee,pt)}})];ne.unshift(o.h("div",{class:"q-table__grid-item-row"},xe),o.h(ia,{dark:r.value}))}const oe={class:["q-table__grid-item-card"+f.value,e.cardClass],style:e.cardStyle};return(e.onRowClick!==void 0||e.onRowDblclick!==void 0||e.onRowContextmenu!==void 0)&&(oe.class[0]+=" cursor-pointer",e.onRowClick!==void 0&&(oe.onClick=ue=>{n("RowClick",ue,K.row,K.pageIndex)}),e.onRowDblclick!==void 0&&(oe.onDblclick=ue=>{n("RowDblclick",ue,K.row,K.pageIndex)}),e.onRowContextmenu!==void 0&&(oe.onContextmenu=ue=>{n("rowContextmenu",ue,K.row,K.pageIndex)})),o.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(K.selected===!0?" q-table__grid-item--selected":"")},[o.h("div",oe,ne)])};return o.h("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},V.value.map((K,ne)=>P(de({key:u.value(K),row:K,pageIndex:ne}))))}return Object.assign(l.proxy,{requestServerInteraction:_,setPagination:w,firstPage:et,prevPage:qe,nextPage:ze,lastPage:ut,isRowSelected:te,clearSelection:U,isRowExpanded:x,setExpanded:O,sort:F,resetVirtualScroll:A,scrollTo:fe,getCellValue:Ae}),Li(l.proxy,{filteredSortedRows:()=>D.value,computedRows:()=>V.value,computedRowsNumber:()=>Le.value}),()=>{const P=[In()],K={ref:m,class:S.value};return e.grid===!0?P.push(co()):Object.assign(K,{class:[K.class,e.cardClass],style:e.cardStyle}),P.push(G(),uo()),e.loading===!0&&t.loading!==void 0&&P.push(t.loading()),o.h("div",K,P)}}}),sc=ve({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const n=o.computed(()=>"q-tr"+(e.props===void 0||e.props.header===!0?"":" "+e.props.__trClass)+(e.noHover===!0?" q-tr--no-hover":""));return()=>o.h("tr",{class:n.value},Pe(t.default))}}),uc={name:"KTableSlotHeader",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 cc(e,t,n,l,a,r){return o.openBlock(),o.createBlock(sc,null,{default:o.withCtx(()=>[n.selectionType!=="none"?(o.openBlock(),o.createBlock(Eo,{key:0},{default:o.withCtx(()=>[n.selectionType=="multiple"?(o.openBlock(),o.createBlock(Ot,{key:0,modelValue:a.tablePropsData.selected,"onUpdate:modelValue":t[0]||(t[0]=i=>a.tablePropsData.selected=i),size:"sm"},null,8,["modelValue"])):o.createCommentVNode("",!0)]),_:1})):o.createCommentVNode("",!0),n.smallDevice?o.createCommentVNode("",!0):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(n.tableProps.cols,i=>(o.openBlock(),o.createBlock(Eo,{key:i.name,props:n.tableProps},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.label),1)]),_:2},1032,["props"]))),128))]),_:1})}const dc=Je(uc,[["render",cc],["__scopeId","data-v-8c21a9e4"]]),fc={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 mc(e,t,n,l,a,r){return o.openBlock(),o.createBlock(Uo,{modelValue:a.visibleColumnsData,"onUpdate:modelValue":[t[0]||(t[0]=i=>a.visibleColumnsData=i),r.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:"selectColumns","options-selected-class":"addicional-visible-columns"},{option:o.withCtx(i=>[o.createVNode(Lt,o.mergeProps(i.itemProps,{class:i.opt.required?"required-table-columns":""}),{default:o.withCtx(()=>[o.createVNode(mt,null,{default:o.withCtx(()=>[o.createVNode(rt,null,{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.opt.label),1)]),_:2},1024)]),_:2},1024)]),_:2},1040,["class"])]),_:1},8,["modelValue","display-value","options","onUpdate:modelValue"])}const hc=Je(fc,[["render",mc],["__scopeId","data-v-95334800"]]),rr=ve({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const n=o.getCurrentInstance(),l=o.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 o.h("td",{class:l.value},Pe(t.default));const a=n.vnode.key,r=(e.props.colsMap!==void 0?e.props.colsMap[a]:null)||e.props.col;if(r===void 0)return;const{row:i}=e.props;return o.h("td",{class:l.value+r.__tdClass(i),style:r.__tdStyle(i)},Pe(t.default))}}}),ir={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Xn={"#":{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()}},sr=Object.keys(Xn);sr.forEach(e=>{Xn[e].regex=new RegExp(Xn[e].pattern)});const gc=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+sr.join("")+"])|(.)","g"),ur=/[.*+?^${}()|[\]\\]/g,Ve="",pc={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function bc(e,t,n,l){let a,r,i,s,u,m;const d=o.ref(null),c=o.ref(h());function f(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}o.watch(()=>e.type+e.autogrow,E),o.watch(()=>e.mask,I=>{if(I!==void 0)b(c.value,!0);else{const V=C(c.value);E(),e.modelValue!==V&&t("update:modelValue",V)}}),o.watch(()=>e.fillMask+e.reverseFillMask,()=>{d.value===!0&&b(c.value,!0)}),o.watch(()=>e.unmaskedValue,()=>{d.value===!0&&b(c.value)});function h(){if(E(),d.value===!0){const I=x(C(e.modelValue));return e.fillMask!==!1?D(I):I}return e.modelValue}function S(I){if(I<a.length)return a.slice(-I);let V="",B=a;const N=B.indexOf(Ve);if(N!==-1){for(let W=I-B.length;W>0;W--)V+=Ve;B=B.slice(0,N)+V+B.slice(N)}return B}function E(){if(d.value=e.mask!==void 0&&e.mask.length!==0&&f(),d.value===!1){s=void 0,a="",r="";return}const I=ir[e.mask]===void 0?e.mask:ir[e.mask],V=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",B=V.replace(ur,"\\$&"),N=[],W=[],M=[];let J=e.reverseFillMask===!0,X="",te="";I.replace(gc,(L,T,j,ae,re)=>{if(ae!==void 0){const F=Xn[ae];M.push(F),te=F.negate,J===!0&&(W.push("(?:"+te+"+)?("+F.pattern+"+)?(?:"+te+"+)?("+F.pattern+"+)?"),J=!1),W.push("(?:"+te+"+)?("+F.pattern+")?")}else if(j!==void 0)X="\\"+(j==="\\"?"":j),M.push(j),N.push("([^"+X+"]+)?"+X+"?");else{const F=T!==void 0?T:re;X=F==="\\"?"\\\\\\\\":F.replace(ur,"\\\\$&"),M.push(F),N.push("([^"+X+"]+)?"+X+"?")}});const U=new RegExp("^"+N.join("")+"("+(X===""?".":"[^"+X+"]")+"+)?"+(X===""?"":"["+X+"]*")+"$"),Z=W.length-1,ee=W.map((L,T)=>T===0&&e.reverseFillMask===!0?new RegExp("^"+B+"*"+L):T===Z?new RegExp("^"+L+"("+(te===""?".":te)+"+)?"+(e.reverseFillMask===!0?"$":B+"*")):new RegExp("^"+L));i=M,s=L=>{const T=U.exec(e.reverseFillMask===!0?L:L.slice(0,M.length+1));T!==null&&(L=T.slice(1).join(""));const j=[],ae=ee.length;for(let re=0,F=L;re<ae;re++){const z=ee[re].exec(F);if(z===null)break;F=F.slice(z.shift().length),j.push(...z)}return j.length!==0?j.join(""):L},a=M.map(L=>typeof L=="string"?L:Ve).join(""),r=a.split(Ve).join(V)}function b(I,V,B){const N=l.value,W=N.selectionEnd,M=N.value.length-W,J=C(I);V===!0&&E();const X=x(J),te=e.fillMask!==!1?D(X):X,U=c.value!==te;N.value!==te&&(N.value=te),U===!0&&(c.value=te),document.activeElement===N&&o.nextTick(()=>{if(te===r){const ee=e.reverseFillMask===!0?r.length:0;N.setSelectionRange(ee,ee,"forward");return}if(B==="insertFromPaste"&&e.reverseFillMask!==!0){const ee=N.selectionEnd;let L=W-1;for(let T=u;T<=L&&T<ee;T++)a[T]!==Ve&&L++;_.right(N,L);return}if(["deleteContentBackward","deleteContentForward"].indexOf(B)!==-1){const ee=e.reverseFillMask===!0?W===0?te.length>X.length?1:0:Math.max(0,te.length-(te===r?0:Math.min(X.length,M)+1))+1:W;N.setSelectionRange(ee,ee,"forward");return}if(e.reverseFillMask===!0)if(U===!0){const ee=Math.max(0,te.length-(te===r?0:Math.min(X.length,M+1)));ee===1&&W===1?N.setSelectionRange(ee,ee,"forward"):_.rightReverse(N,ee)}else{const ee=te.length-M;N.setSelectionRange(ee,ee,"backward")}else if(U===!0){const ee=Math.max(0,a.indexOf(Ve),Math.min(X.length,W)-1);_.right(N,ee)}else{const ee=W-1;_.right(N,ee)}});const Z=e.unmaskedValue===!0?C(te):te;String(e.modelValue)!==Z&&(e.modelValue!==null||Z!=="")&&n(Z,!0)}function p(I,V,B){const N=x(C(I.value));V=Math.max(0,a.indexOf(Ve),Math.min(N.length,V)),u=V,I.setSelectionRange(V,B,"forward")}const _={left(I,V){const B=a.slice(V-1).indexOf(Ve)===-1;let N=Math.max(0,V-1);for(;N>=0;N--)if(a[N]===Ve){V=N,B===!0&&V++;break}if(N<0&&a[V]!==void 0&&a[V]!==Ve)return _.right(I,0);V>=0&&I.setSelectionRange(V,V,"backward")},right(I,V){const B=I.value.length;let N=Math.min(B,V+1);for(;N<=B;N++)if(a[N]===Ve){V=N;break}else a[N-1]===Ve&&(V=N);if(N>B&&a[V-1]!==void 0&&a[V-1]!==Ve)return _.left(I,B);I.setSelectionRange(V,V,"forward")},leftReverse(I,V){const B=S(I.value.length);let N=Math.max(0,V-1);for(;N>=0;N--)if(B[N-1]===Ve){V=N;break}else if(B[N]===Ve&&(V=N,N===0))break;if(N<0&&B[V]!==void 0&&B[V]!==Ve)return _.rightReverse(I,0);V>=0&&I.setSelectionRange(V,V,"backward")},rightReverse(I,V){const B=I.value.length,N=S(B),W=N.slice(0,V+1).indexOf(Ve)===-1;let M=Math.min(B,V+1);for(;M<=B;M++)if(N[M-1]===Ve){V=M,V>0&&W===!0&&V--;break}if(M>B&&N[V-1]!==void 0&&N[V-1]!==Ve)return _.leftReverse(I,B);I.setSelectionRange(V,V,"forward")}};function w(I){t("click",I),m=void 0}function y(I){if(t("keydown",I),po(I)===!0||I.altKey===!0)return;const V=l.value,B=V.selectionStart,N=V.selectionEnd;if(I.shiftKey||(m=void 0),I.keyCode===37||I.keyCode===39){I.shiftKey&&m===void 0&&(m=V.selectionDirection==="forward"?B:N);const W=_[(I.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(I.preventDefault(),W(V,m===B?N:B),I.shiftKey){const M=V.selectionStart;V.setSelectionRange(Math.min(m,M),Math.max(m,M),"forward")}}else I.keyCode===8&&e.reverseFillMask!==!0&&B===N?(_.left(V,B),V.setSelectionRange(V.selectionStart,N,"backward")):I.keyCode===46&&e.reverseFillMask===!0&&B===N&&(_.rightReverse(V,N),V.setSelectionRange(B,V.selectionEnd,"forward"))}function x(I){if(I==null||I==="")return"";if(e.reverseFillMask===!0)return O(I);const V=i;let B=0,N="";for(let W=0;W<V.length;W++){const M=I[B],J=V[W];if(typeof J=="string")N+=J,M===J&&B++;else if(M!==void 0&&J.regex.test(M))N+=J.transform!==void 0?J.transform(M):M,B++;else return N}return N}function O(I){const V=i,B=a.indexOf(Ve);let N=I.length-1,W="";for(let M=V.length-1;M>=0&&N!==-1;M--){const J=V[M];let X=I[N];if(typeof J=="string")W=J+W,X===J&&N--;else if(X!==void 0&&J.regex.test(X))do W=(J.transform!==void 0?J.transform(X):X)+W,N--,X=I[N];while(B===M&&X!==void 0&&J.regex.test(X));else return W}return W}function C(I){return typeof I!="string"||s===void 0?typeof I=="number"?s(""+I):I:s(I)}function D(I){return r.length-I.length<=0?I:e.reverseFillMask===!0&&I.length!==0?r.slice(0,-I.length)+I:I+r.slice(I.length)}return{innerValue:c,hasMask:d,moveCursorForPaste:p,updateMaskValue:b,onMaskedKeydown:y,onMaskedClick:w}}function _c(e,t){function n(){const l=e.modelValue;try{const a="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(l)===l&&("length"in l?Array.from(l):[l]).forEach(r=>{a.items.add(r)}),{files:a.files}}catch{return{files:void 0}}}return o.computed(()=>{if(e.type==="file")return n()})}const cr=ve({name:"QInput",inheritAttrs:!1,props:{...zn,...pc,...Fo,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:[...Io,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:n}){const{proxy:l}=o.getCurrentInstance(),{$q:a}=l,r={};let i=NaN,s,u,m=null,d;const c=o.ref(null),f=Ja(e),{innerValue:h,hasMask:S,moveCursorForPaste:E,updateMaskValue:b,onMaskedKeydown:p,onMaskedClick:_}=bc(e,t,X,c),w=_c(e),y=o.computed(()=>_n(h.value)),x=Za(M),O=Po({changeEvent:!0}),C=o.computed(()=>e.type==="textarea"||e.autogrow===!0),D=o.computed(()=>C.value===!0||["text","search","url","tel","password"].includes(e.type)),I=o.computed(()=>{const T={...O.splitAttrs.listeners.value,onInput:M,onPaste:W,onChange:U,onBlur:Z,onFocus:_t};return T.onCompositionstart=T.onCompositionupdate=T.onCompositionend=x,S.value===!0&&(T.onKeydown=p,T.onClick=_),e.autogrow===!0&&(T.onAnimationend=J),T}),V=o.computed(()=>{const T={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:f.value,...O.splitAttrs.attributes.value,id:O.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return C.value===!1&&(T.type=e.type),e.autogrow===!0&&(T.rows=1),T});o.watch(()=>e.type,()=>{c.value&&(c.value.value=e.modelValue)}),o.watch(()=>e.modelValue,T=>{if(S.value===!0){if(u===!0&&(u=!1,String(T)===i))return;b(T)}else h.value!==T&&(h.value=T,e.type==="number"&&r.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete r.value));e.autogrow===!0&&o.nextTick(te)}),o.watch(()=>e.autogrow,T=>{T===!0?o.nextTick(te):c.value!==null&&n.rows>0&&(c.value.style.height="auto")}),o.watch(()=>e.dense,()=>{e.autogrow===!0&&o.nextTick(te)});function B(){Hn(()=>{const T=document.activeElement;c.value!==null&&c.value!==T&&(T===null||T.id!==O.targetUid.value)&&c.value.focus({preventScroll:!0})})}function N(){c.value!==null&&c.value.select()}function W(T){if(S.value===!0&&e.reverseFillMask!==!0){const j=T.target;E(j,j.selectionStart,j.selectionEnd)}t("paste",T)}function M(T){if(!T||!T.target)return;if(e.type==="file"){t("update:modelValue",T.target.files);return}const j=T.target.value;if(T.target.qComposing===!0){r.value=j;return}if(S.value===!0)b(j,!1,T.inputType);else if(X(j),D.value===!0&&T.target===document.activeElement){const{selectionStart:ae,selectionEnd:re}=T.target;ae!==void 0&&re!==void 0&&o.nextTick(()=>{T.target===document.activeElement&&j.indexOf(T.target.value)===0&&T.target.setSelectionRange(ae,re)})}e.autogrow===!0&&te()}function J(T){t("animationend",T),te()}function X(T,j){d=()=>{m=null,e.type!=="number"&&r.hasOwnProperty("value")===!0&&delete r.value,e.modelValue!==T&&i!==T&&(i=T,j===!0&&(u=!0),t("update:modelValue",T),o.nextTick(()=>{i===T&&(i=NaN)})),d=void 0},e.type==="number"&&(s=!0,r.value=T),e.debounce!==void 0?(m!==null&&clearTimeout(m),r.value=T,m=setTimeout(d,e.debounce)):d()}function te(){requestAnimationFrame(()=>{const T=c.value;if(T!==null){const j=T.parentNode.style,{scrollTop:ae}=T,{overflowY:re,maxHeight:F}=a.platform.is.firefox===!0?{}:window.getComputedStyle(T),z=re!==void 0&&re!=="scroll";z===!0&&(T.style.overflowY="hidden"),j.marginBottom=T.scrollHeight-1+"px",T.style.height="1px",T.style.height=T.scrollHeight+"px",z===!0&&(T.style.overflowY=parseInt(F,10)<T.scrollHeight?"auto":"hidden"),j.marginBottom="",T.scrollTop=ae}})}function U(T){x(T),m!==null&&(clearTimeout(m),m=null),d!==void 0&&d(),t("change",T.target.value)}function Z(T){T!==void 0&&_t(T),m!==null&&(clearTimeout(m),m=null),d!==void 0&&d(),s=!1,u=!1,delete r.value,e.type!=="file"&&setTimeout(()=>{c.value!==null&&(c.value.value=h.value!==void 0?h.value:"")})}function ee(){return r.hasOwnProperty("value")===!0?r.value:h.value!==void 0?h.value:""}o.onBeforeUnmount(()=>{Z()}),o.onMounted(()=>{e.autogrow===!0&&te()}),Object.assign(O,{innerValue:h,fieldClass:o.computed(()=>`q-${C.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:o.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:c,emitValue:X,hasValue:y,floatingLabel:o.computed(()=>y.value===!0&&(e.type!=="number"||isNaN(h.value)===!1)||_n(e.displayValue)),getControl:()=>o.h(C.value===!0?"textarea":"input",{ref:c,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...V.value,...I.value,...e.type!=="file"?{value:ee()}:w.value}),getShadowControl:()=>o.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(C.value===!0?"":" text-no-wrap")},[o.h("span",{class:"invisible"},ee()),o.h("span",e.shadowText)])});const L=Vo(O);return Object.assign(l,{focus:B,select:N,getNativeElement:()=>c.value}),tt(l,"nativeEl",()=>c.value),L}});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 l=e.valueOf();if(Object(l)!==l){const a=new e.constructor(l);return t.set(e,a),a}}return t.set(e,n),e instanceof Set?e.forEach(l=>{n.add(wn(l,t))}):e instanceof Map&&e.forEach((l,a)=>{n.set(a,wn(l,t))}),Object.assign(n,...Object.keys(e).map(l=>({[l]:wn(e[l],t)})))}const vc=ve({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:l}=o.getCurrentInstance(),{$q:a}=l,r=o.ref(null),i=o.ref(""),s=o.ref("");let u=!1;const m=o.computed(()=>tt({initialValue:i.value,validate:e.validate,set:d,cancel:c,updatePosition:f},"value",()=>s.value,y=>{s.value=y}));function d(){e.validate(s.value)!==!1&&(h()===!0&&(n("save",s.value,i.value),n("update:modelValue",s.value)),S())}function c(){h()===!0&&n("cancel",s.value,i.value),S()}function f(){o.nextTick(()=>{r.value.updatePosition()})}function h(){return St(s.value,i.value)===!1}function S(){u=!0,r.value.hide()}function E(){u=!1,i.value=wn(e.modelValue),s.value=wn(e.modelValue),n("beforeShow")}function b(){n("show")}function p(){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 _(){n("hide")}function w(){const y=t.default!==void 0?[].concat(t.default(m.value)):[];return e.title&&y.unshift(o.h("div",{class:"q-dialog__title q-mt-sm q-mb-sm"},e.title)),e.buttons===!0&&y.push(o.h("div",{class:"q-popup-edit__buttons row justify-center no-wrap"},[o.h(wt,{flat:!0,color:e.color,label:e.labelCancel||a.lang.label.cancel,onClick:c}),o.h(wt,{flat:!0,color:e.color,label:e.labelSet||a.lang.label.set,onClick:d})])),y}return Object.assign(l,{set:d,cancel:c,show(y){r.value!==null&&r.value.show(y)},hide(y){r.value!==null&&r.value.hide(y)},updatePosition:f}),()=>{if(e.disable!==!0)return o.h(ja,{ref:r,class:"q-popup-edit",cover:e.cover,onBeforeShow:E,onShow:b,onBeforeHide:p,onHide:_,onEscapeKey:c},w)}}}),yc={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 Sc(e,t,n,l,a,r){return o.openBlock(),o.createBlock(vc,{modelValue:a.modelData,"onUpdate:modelValue":t[1]||(t[1]=i=>a.modelData=i),buttons:"","label-set":e.$t("table.confirm"),"label-cancel":e.$t("table.cancel"),onSave:r.validate,onCancel:()=>{}},{default:o.withCtx(i=>[n.showInputPopupEdit?(o.openBlock(),o.createBlock(cr,{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]=o.withKeys(o.withModifiers(()=>{},["stop"]),["enter"]))},null,8,["modelValue","onUpdate:modelValue","data-cy","label","type","mask","autogrow","rules"])):o.createCommentVNode("",!0),n.showSelectNumberOptions?(o.openBlock(),o.createBlock(Uo,{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"])):o.createCommentVNode("",!0)]),_:1},8,["modelValue","label-set","label-cancel","onSave"])}const dr=Je(yc,[["render",Sc]]),kc={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 wc(e,t,n,l,a,r){return o.openBlock(),o.createBlock(Ot,{modelValue:a.modelData,"onUpdate:modelValue":[t[0]||(t[0]=i=>a.modelData=i),t[1]||(t[1]=i=>{e.$emit("checkBoxEmit",i)})],"data-cy":n.dataCy},null,8,["modelValue","data-cy"])}const fr=Je(kc,[["render",wc]]),Cc={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 Ec(e,t,n,l,a,r){return o.openBlock(),o.createBlock(Ot,{modelValue:a.modelData,"onUpdate:modelValue":[t[0]||(t[0]=i=>a.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 mr=Je(Cc,[["render",Ec]]),Tc={name:"CustomizedIcon",props:{model:{type:Boolean,required:!0},customizedIconSize:{type:String,required:!0},customizedIconName:{type:String,required:!0},customizedIconColor:{type:String,required:!0}}};function xc(e,t,n,l,a,r){return o.openBlock(),o.createBlock(Ue,{name:n.customizedIconName?n.customizedIconName:n.model?"fa-solid fa-circle-check":"fa-solid fa-circle-xmark",color:n.customizedIconColor?n.customizedIconColor:n.model?"green":"red",size:n.customizedIconSize},null,8,["name","color","size"])}const hr=Je(Tc,[["render",xc]]),Nc={name:"CustomizedButton",props:{dataCy:{type:String,required:!0},btnColor:{type:String,required:!0},btnIcon:{type:String,required:!0}},emits:["onClickButton"],data:function(){return{}}};function Lc(e,t,n,l,a,r){return o.openBlock(),o.createBlock(wt,{"data-cy":n.dataCy,flat:"",round:"",color:n.btnColor,size:"md",onClick:t[0]||(t[0]=i=>e.$emit("onClickButton"))},{default:o.withCtx(()=>[o.createVNode(Ue,{name:n.btnIcon},null,8,["name"])]),_:1},8,["data-cy","color"])}const gr=Je(Nc,[["render",Lc]]),Oc={name:"KTableSlotBody",components:{TablePopupEdit:dr,BasicCheckBox:fr,CustomizedCheckBox:mr,CustomizedIcon:hr,CustomizedButton:gr},props:{tableProps:{type:Object,required:!0},selectionType:{type:String,default:"none"}},emits:["onSaveValuePopupEdit","onUpdateCheckboxValue","onClickButton"],data(){return{tablePropsData:this.tableProps}},methods:{getColumnValue(e){return!(e.showBasicCheckbox||e.showCustomizedCheckBox||e.showCustomizedIcon||e.showColumButton)}}},Ic=["textContent"];function Pc(e,t,n,l,a,r){const i=o.resolveComponent("TablePopupEdit"),s=o.resolveComponent("BasicCheckBox"),u=o.resolveComponent("CustomizedCheckBox"),m=o.resolveComponent("CustomizedIcon"),d=o.resolveComponent("CustomizedButton");return o.openBlock(),o.createElementBlock("tr",{class:o.normalizeClass(n.tableProps.row.rowBgColor||"bg-main-color")},[n.selectionType!="none"?(o.openBlock(),o.createBlock(rr,{key:0,id:n.tableProps.row.id,"auto-width":""},{default:o.withCtx(()=>[o.createVNode(Ot,{modelValue:a.tablePropsData.selected,"onUpdate:modelValue":t[0]||(t[0]=c=>a.tablePropsData.selected=c),size:"sm"},null,8,["modelValue"])]),_:1},8,["id"])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.tableProps.cols,c=>(o.openBlock(),o.createBlock(rr,{key:c.name,class:o.normalizeClass(n.tableProps.row.rowBgColor||"bg-main-color"),props:n.tableProps,style:o.normalizeStyle(a.tablePropsData.row.tdStyle)},{default:o.withCtx(()=>[r.getColumnValue(c)?(o.openBlock(),o.createElementBlock("span",{key:0,textContent:o.toDisplayString(n.tableProps.row[c.name])},null,8,Ic)):o.createCommentVNode("",!0),c.editable?(o.openBlock(),o.createBlock(Ue,{key:1,name:"fa-solid fa-pen-to-square",color:"primary"})):o.createCommentVNode("",!0),c.editable?(o.openBlock(),o.createBlock(i,{key:2,model:a.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:f=>{a.tablePropsData.row[c.name]=f,e.$emit(c.popupEditEmit,a.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"])):o.createCommentVNode("",!0),c.showBasicCheckbox?(o.openBlock(),o.createBlock(s,{key:3,"table-props":a.tablePropsData,"data-cy":c.checkBoxDataCy+"-"+n.tableProps.row.id||"",model:a.tablePropsData.row[c.name],onCheckBoxEmit:f=>{a.tablePropsData.row[c.name]=f,e.$emit(c.checkBoxEmit||"onUpdateCheckboxValue",a.tablePropsData.row)}},null,8,["table-props","data-cy","model","onCheckBoxEmit"])):o.createCommentVNode("",!0),c.showCustomizedCheckBox?(o.openBlock(),o.createBlock(u,{key:4,"table-props":a.tablePropsData,"data-cy":c.checkBoxDataCy+"-"+n.tableProps.row.id||"",model:a.tablePropsData.row[c.name],"check-box-color":a.tablePropsData.row[c.name]?c.checkBoxColorCaseTrue:c.checkBoxColorCaseFalse,"check-box-icon-size":"md","checked-icon":c.checkedIcon,"unchecked-icon":c.uncheckedIcon,onCheckBoxEmit:f=>{a.tablePropsData.row[c.name]=f,e.$emit(c.checkBoxEmit||"onUpdateCheckboxValue",a.tablePropsData.row)}},null,8,["table-props","data-cy","model","check-box-color","checked-icon","unchecked-icon","onCheckBoxEmit"])):o.createCommentVNode("",!0),c.showCustomizedIcon?(o.openBlock(),o.createBlock(m,{key:5,model:a.tablePropsData.row[c.name],"customized-icon-size":"sm","customized-icon-name":(a.tablePropsData.row[c.name]?c.customizedIconNameCaseTrue:c.customizedIconNameCaseFalse)||"","customized-icon-color":(a.tablePropsData.row[c.name]?c.customizedIconColorCaseTrue:c.customizedIconColorCaseFalse)||""},null,8,["model","customized-icon-name","customized-icon-color"])):o.createCommentVNode("",!0),c.showCustomizedButton?(o.openBlock(),o.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"])):o.createCommentVNode("",!0)]),_:2},1032,["class","props","style"]))),128))],2)}const Vc=Je(Oc,[["render",Pc]]),Rc=ve({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=o.computed(()=>`q-card__section q-card__section--${e.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>o.h(e.tag,{class:n.value},Pe(t.default))}}),pr=ve({name:"QCard",props:{...lt,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=o.getCurrentInstance(),l=at(e,n),a=o.computed(()=>"q-card"+(l.value===!0?" q-card--dark q-dark":"")+(e.bordered===!0?" q-card--bordered":"")+(e.square===!0?" q-card--square no-border-radius":"")+(e.flat===!0?" q-card--flat no-shadow":""));return()=>o.h(e.tag,{class:a.value},Pe(t.default))}}),Ac={name:"KTableSlotGrid",components:{TablePopupEdit:dr,BasicCheckBox:fr,CustomizedCheckBox:mr,CustomizedIcon:hr,CustomizedButton:gr},props:{tableProps:{type:Object,required:!0},selectionType:{type:String,default:"none"},popupEditNumberOptions:{type:Array}},emits:["onSaveValuePopupEdit","onUpdateCheckboxValue","onClickButton"],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)}}},Mc=["textContent"];function Dc(e,t,n,l,a,r){const i=o.resolveComponent("TablePopupEdit"),s=o.resolveComponent("BasicCheckBox"),u=o.resolveComponent("CustomizedCheckBox"),m=o.resolveComponent("CustomizedIcon"),d=o.resolveComponent("CustomizedButton");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass("q-pa-xs col-xs-12 col-sm-6 col-md-4 col-lg-3 grid-style-transition"),style:o.normalizeStyle(a.tablePropsData.selected?"transform: scale(0.95);":"")},[o.createVNode(pr,{bordered:"",flat:"",square:"",class:o.normalizeClass(a.tablePropsData.selected?e.$q.dark.isActive?"bg-grey-9":"bg-grey-2":n.tableProps.row.rowBgColor||"bg-main-color")},{default:o.withCtx(()=>[o.createVNode(Rc,null,{default:o.withCtx(()=>[n.selectionType!="none"?(o.openBlock(),o.createBlock(Ot,{key:0,modelValue:a.tablePropsData.selected,"onUpdate:modelValue":t[0]||(t[0]=c=>a.tablePropsData.selected=c),dense:""},null,8,["modelValue"])):o.createCommentVNode("",!0)]),_:1}),o.createVNode(sa,{dense:""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.tablePropsData.cols.filter(c=>c.name!=="desc"),c=>(o.openBlock(),o.createBlock(Lt,{key:c.name},{default:o.withCtx(()=>[o.createVNode(mt,null,{default:o.withCtx(()=>[o.createVNode(rt,{class:"itemsFontSize ellipsis text-light-gray"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(c.label),1)]),_:2},1024)]),_:2},1024),o.createVNode(mt,{side:""},{default:o.withCtx(()=>[r.getColumnValue(c)?(o.openBlock(),o.createBlock(rt,{key:0,class:"itemsFontSize text-almost-black"},{default:o.withCtx(()=>[c.editable?(o.openBlock(),o.createBlock(Ue,{key:0,name:"fa-solid fa-pen-to-square",color:"primary",size:"sm"})):o.createCommentVNode("",!0),o.createElementVNode("span",{textContent:o.toDisplayString(n.tableProps.row[c.name])},null,8,Mc),o.createVNode(i,{model:a.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:f=>{a.tablePropsData.row[c.name]=f,e.$emit(c.popupEditEmit,a.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)):o.createCommentVNode("",!0),o.createVNode(mt,null,{default:o.withCtx(()=>[c.showBasicCheckbox?(o.openBlock(),o.createBlock(s,{key:0,"table-props":a.tablePropsData,"data-cy":c.checkBoxDataCy+"-"+n.tableProps.row.id||"",model:a.tablePropsData.row[c.name],onCheckBoxEmit:f=>{a.tablePropsData.row[c.name]=f,e.$emit(c.checkBoxEmit||"onUpdateCheckboxValue",a.tablePropsData.row)}},null,8,["table-props","data-cy","model","onCheckBoxEmit"])):o.createCommentVNode("",!0),c.showCustomizedCheckBox?(o.openBlock(),o.createBlock(u,{key:1,"table-props":a.tablePropsData,"data-cy":c.checkBoxDataCy+"-"+n.tableProps.row.id||"",model:a.tablePropsData.row[c.name],"check-box-color":a.tablePropsData.row[c.name]?c.checkBoxColorCaseTrue:c.checkBoxColorCaseFalse,"check-box-icon-size":"lg","checked-icon":c.checkedIcon,"unchecked-icon":c.uncheckedIcon,onCheckBoxEmit:f=>{a.tablePropsData.row[c.name]=f,e.$emit(c.checkBoxEmit||"onUpdateCheckboxValue",a.tablePropsData.row)}},null,8,["table-props","data-cy","model","check-box-color","checked-icon","unchecked-icon","onCheckBoxEmit"])):o.createCommentVNode("",!0)]),_:2},1024),o.createVNode(mt,null,{default:o.withCtx(()=>[c.showCustomizedIcon?(o.openBlock(),o.createBlock(m,{key:0,model:a.tablePropsData.row[c.name],"table-props":a.tablePropsData,"customized-icon-size":"sm","customized-icon-name":(a.tablePropsData.row[c.name]?c.customizedIconNameCaseTrue:c.customizedIconNameCaseFalse)||"","customized-icon-color":(a.tablePropsData.row[c.name]?c.customizedIconColorCaseTrue:c.customizedIconColorCaseFalse)||""},null,8,["model","table-props","customized-icon-name","customized-icon-color"])):o.createCommentVNode("",!0)]),_:2},1024),o.createVNode(mt,null,{default:o.withCtx(()=>[c.showCustomizedButton?(o.openBlock(),o.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"])):o.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1},8,["class"])],4)}const Bc=Je(Ac,[["render",Dc]]),qc={name:"TableFilter",props:{store:{type:Object,required:!0}},data(){return{localStore:this.store}},beforeMount(){this.localStore.disableScannerButtons=!1,this.localStore.valueInputFilterTable="",this.localStore.lastFilterValue=""},mounted(){},methods:{inputFocus(){setTimeout(()=>{this.$refs.filterRef.focus()},10)},cleanSearchValue(){this.localStore.valueInputFilterTable="",this.localStore.lastFilterValue=""}}};function Fc(e,t,n,l,a,r){return o.openBlock(),o.createBlock(cr,{ref:"filterRef",modelValue:a.localStore.valueInputFilterTable,"onUpdate:modelValue":t[0]||(t[0]=i=>a.localStore.valueInputFilterTable=i),borderless:"",dense:"",debounce:"300",class:"auto-width",placeholder:"Search",outlined:""},{append:o.withCtx(()=>[a.localStore.valueInputFilterTable===""?(o.openBlock(),o.createBlock(Ue,{key:0,name:"search",color:"black"})):(o.openBlock(),o.createBlock(Ue,{key:1,name:"clear",class:"cursor-pointer",onClick:r.cleanSearchValue},null,8,["onClick"]))]),_:1},8,["modelValue"])}const $c=Je(qc,[["render",Fc],["__scopeId","data-v-e08d1df2"]]),br={sortMethod(e,t,n,l=[]){const a=[...e];return t&&(l.includes(t)?this.sortDates(t,n,a):a.sort((r,i)=>{const s=n?i:r,u=n?r:i;return s[t]>u[t]?1:s[t]<u[t]?-1:0})),a},sortDates(e,t,n){n.sort(function(l,a){const r=l[e],i=a[e];let s=t?i:r,u=t?r:i;return s=s.split("/").reverse().join("-"),u=u.split("/").reverse().join("-"),s.localeCompare(u)})}},Uc=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],Hc=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],Re=ve({name:"QSkeleton",props:{...lt,tag:{type:String,default:"div"},type:{type:String,validator:e=>Uc.includes(e),default:"rect"},animation:{type:String,validator:e=>Hc.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=o.getCurrentInstance(),l=at(e,n.proxy.$q),a=o.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]}}),r=o.computed(()=>`q-skeleton q-skeleton--${l.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()=>o.h(e.tag,{class:r.value,style:a.value},Pe(t.default))}}),zc={name:"TableSkeleton",properties:{showSkeleton:{type:Boolean,default:!1}}},jc={class:"text-left",style:{width:"150px"}},Wc={class:"text-right"},Kc={class:"text-right"},Gc={class:"text-right"},Qc={class:"text-right"},Yc={class:"text-right"},Xc={class:"text-left"},Jc={class:"text-right"},Zc={class:"text-right"},ed={class:"text-right"},td={class:"text-right"},nd={class:"text-right"};function od(e,t,n,l,a,r){return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(ua,null,{default:o.withCtx(()=>[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[o.createElementVNode("th",jc,[o.createVNode(Re,{type:"text"})]),o.createElementVNode("th",Wc,[o.createVNode(Re,{type:"text"})]),o.createElementVNode("th",Kc,[o.createVNode(Re,{type:"text"})]),o.createElementVNode("th",Gc,[o.createVNode(Re,{type:"text"})]),o.createElementVNode("th",Qc,[o.createVNode(Re,{type:"text"})]),o.createElementVNode("th",Yc,[o.createVNode(Re,{type:"text"})])])]),o.createElementVNode("tbody",null,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(10,i=>o.createElementVNode("tr",{key:i},[o.createElementVNode("td",Xc,[o.createVNode(Re,{type:"text",width:"85px"})]),o.createElementVNode("td",Jc,[o.createVNode(Re,{type:"text",width:"50px"})]),o.createElementVNode("td",Zc,[o.createVNode(Re,{type:"text",width:"35px"})]),o.createElementVNode("td",ed,[o.createVNode(Re,{type:"text",width:"65px"})]),o.createElementVNode("td",td,[o.createVNode(Re,{type:"text",width:"25px"})]),o.createElementVNode("td",nd,[o.createVNode(Re,{type:"text",width:"85px"})])])),64))])]),_:1})])}const ld=Je(zc,[["render",od]]),ad={name:"CardListSkeleton"};function rd(e,t,n,l,a,r){return o.openBlock(),o.createElementBlock("div",null,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(2,i=>o.createVNode(Lt,{key:i},{default:o.withCtx(()=>[o.createVNode(pr,{style:{width:"100%"}},{default:o.withCtx(()=>[o.createVNode(Lt,null,{default:o.withCtx(()=>[o.createVNode(mt,null,{default:o.withCtx(()=>[o.createVNode(rt,null,{default:o.withCtx(()=>[o.createVNode(Re,{type:"text",width:"60%"})]),_:1}),o.createVNode(rt,{caption:""},{default:o.withCtx(()=>[o.createVNode(Re,{type:"text",width:"60%"})]),_:1})]),_:1})]),_:1}),o.createVNode(Lt,null,{default:o.withCtx(()=>[o.createVNode(mt,null,{default:o.withCtx(()=>[o.createVNode(rt,null,{default:o.withCtx(()=>[o.createVNode(Re,{type:"text",width:"70%"})]),_:1}),o.createVNode(rt,{caption:""},{default:o.withCtx(()=>[o.createVNode(Re,{type:"text",width:"70%"})]),_:1})]),_:1})]),_:1}),o.createVNode(Lt,null,{default:o.withCtx(()=>[o.createVNode(mt,null,{default:o.withCtx(()=>[o.createVNode(rt,null,{default:o.withCtx(()=>[o.createVNode(Re,{type:"text",width:"80%"})]),_:1}),o.createVNode(rt,{caption:""},{default:o.withCtx(()=>[o.createVNode(Re,{type:"text",width:"80%"})]),_:1})]),_:1})]),_:1}),o.createVNode(Lt,null,{default:o.withCtx(()=>[o.createVNode(mt,null,{default:o.withCtx(()=>[o.createVNode(rt,null,{default:o.withCtx(()=>[o.createVNode(Re,{type:"text",width:"90%"})]),_:1}),o.createVNode(rt,{caption:""},{default:o.withCtx(()=>[o.createVNode(Re,{type:"text",width:"90%"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:2},1024)),64))])}const id=Je(ad,[["render",rd]]),sd=o.defineComponent({components:{TableSlotHeader:dc,TableColumnsSelector:hc,TableSlotBody:Vc,TableSlotGrid:Bc,TableFilter:$c,TableSkeleton:ld,CardListSkeleton:id},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","onUpdateCheckboxValue","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)},onUpdateCheckboxValue(e){this.$emit("onUpdateCheckboxValue",e)},onClickButton(e,t){this.$emit(e,t)},onRowClick(e){this.$emit("onRowClick",e)},deleteItem(e){this.$emit("deleteItem",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 a=br.sortMethod(e,t,n,this.sortDataValues).slice(0,e.length);return this.store.valueInputFilterTable===""?a:br.sortMethod(e,t,n,this.sortDataValues)}}});function ud(e,t,n,l,a,r){const i=o.resolveComponent("TableFilter"),s=o.resolveComponent("TableColumnsSelector"),u=o.resolveComponent("TableSlotHeader"),m=o.resolveComponent("TableSlotBody"),d=o.resolveComponent("TableSlotGrid"),c=o.resolveComponent("TableSkeleton"),f=o.resolveComponent("CardListSkeleton");return o.openBlock(),o.createElementBlock("div",null,[e.showSkeleton?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(ic,{key:0,ref:"myTable",selected:e.selected,"onUpdate:selected":t[0]||(t[0]=h=>e.selected=h),class:"k-table",grid:e.smallDevice,style:o.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":o.withCtx(h=>[o.createVNode(ia),e.getTableInputSearchVisibility&&!e.hideFilter?(o.openBlock(),o.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"])):o.createCommentVNode("",!0),e.getColumnsSelectorVisibility&&!e.hideColumnsSelector?(o.openBlock(),o.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"])):o.createCommentVNode("",!0)]),header:o.withCtx(h=>[o.createVNode(u,{"table-props":h,"selection-type":e.selectionType,"small-device":e.smallDevice},null,8,["table-props","selection-type","small-device"])]),body:o.withCtx(h=>[e.showSkeleton?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(m,{key:0,"table-props":h,"selection-type":e.selectionType,onOnUpdateCheckboxValue:e.onUpdateCheckboxValue,onOnSaveValuePopupEdit:e.onSaveValuePopupEdit,onOnClickButton:e.onClickButton,onClick:S=>e.onRowClick(h.row)},null,8,["table-props","selection-type","onOnUpdateCheckboxValue","onOnSaveValuePopupEdit","onOnClickButton","onClick"]))]),item:o.withCtx(h=>[o.createVNode(d,{"table-props":h,"selection-type":e.selectionType,"popup-edit-number-options":e.popupEditNumberOptions,onOnUpdateCheckboxValue:e.onUpdateCheckboxValue,onOnSaveValuePopupEdit:e.onSaveValuePopupEdit,onOnClickButton:e.onClickButton,onClick:S=>e.onRowClick(h.row)},null,8,["table-props","selection-type","popup-edit-number-options","onOnUpdateCheckboxValue","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?(o.openBlock(),o.createBlock(c,{key:1,id:"tableSkeleton"})):o.createCommentVNode("",!0),e.getGridSkeletonVisibility?(o.openBlock(),o.createBlock(f,{key:2,id:"cardListSkeleton"})):o.createCommentVNode("",!0)])}const _r=Je(sd,[["render",ud]]),cd={install(e){ra(e,"KTable",_r)}},dd={en:{test:"Test"},es:{test:"Test"}};/*!
2
2
  * shared v10.0.5
3
3
  * (c) 2024 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
- */const ce=typeof window<"u";let se,ke;if(process.env.NODE_ENV!=="production"){const e=ce&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(se=t=>{e.mark(t)},ke=(t,n,a)=>{e.measure(t,n,a),e.clearMarks(n),e.clearMarks(a)})}const fs=/\{([0-9a-zA-Z]+)\}/g;function ot(e,...t){return t.length===1&&x(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(fs,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const de=(e,t=!1)=>t?Symbol.for(e):Symbol(e),ds=(e,t,n)=>ms({l:e,k:t,s:n}),ms=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),X=e=>typeof e=="number"&&isFinite(e),_s=e=>It(e)==="[object Date]",Ue=e=>It(e)==="[object RegExp]",it=e=>M(e)&&Object.keys(e).length===0,Z=Object.assign,gs=Object.create,W=(e=null)=>gs(e);let Kn;const Se=()=>Kn||(Kn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:W());function Yn(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const ps=Object.prototype.hasOwnProperty;function ue(e,t){return ps.call(e,t)}const K=Array.isArray,B=e=>typeof e=="function",w=e=>typeof e=="string",U=e=>typeof e=="boolean",x=e=>e!==null&&typeof e=="object",hs=e=>x(e)&&B(e.then)&&B(e.catch),Xn=Object.prototype.toString,It=e=>Xn.call(e),M=e=>It(e)==="[object Object]",Es=e=>e==null?"":K(e)||M(e)&&e.toString===Xn?JSON.stringify(e,null,2):String(e);function kt(e,t=""){return e.reduce((n,a,r)=>r===0?n+a:n+t+a,"")}const Qn=2;function bs(e,t=0,n=e.length){const a=e.split(/\r?\n/);let r=0;const s=[];for(let o=0;o<a.length;o++)if(r+=a[o].length+1,r>=t){for(let i=o-Qn;i<=o+Qn||n>r;i++){if(i<0||i>=a.length)continue;const u=i+1;s.push(`${u}${" ".repeat(3-String(u).length)}| ${a[i]}`);const m=a[i].length;if(i===o){const h=t-(r-m)+1,b=Math.max(1,n>r?m-h:n-t);s.push(" | "+" ".repeat(h)+"^".repeat(b))}else if(i>o){if(n>r){const h=Math.max(Math.min(n-r,m),1);s.push(" | "+"^".repeat(h))}r+=m+1}}break}return s.join(`
6
- `)}function be(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Jn={};function zn(e){Jn[e]||(Jn[e]=!0,be(e))}function St(){const e=new Map;return{events:e,on(n,a){const r=e.get(n);r&&r.push(a)||e.set(n,[a])},off(n,a){const r=e.get(n);r&&r.splice(r.indexOf(a)>>>0,1)},emit(n,a){(e.get(n)||[]).slice().map(r=>r(a)),(e.get("*")||[]).slice().map(r=>r(n,a))}}}const lt=e=>!x(e)||K(e);function ct(e,t){if(lt(e)||lt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:a,des:r}=n.pop();Object.keys(a).forEach(s=>{s!=="__proto__"&&(x(a[s])&&!x(r[s])&&(r[s]=Array.isArray(a[s])?[]:W()),lt(r[s])||lt(a[s])?r[s]=a[s]:n.push({src:a[s],des:r[s]}))})}}/*!
5
+ */const ht=typeof window<"u";let nt,Ht;if(process.env.NODE_ENV!=="production"){const e=ht&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(nt=t=>{e.mark(t)},Ht=(t,n,l)=>{e.measure(t,n,l),e.clearMarks(n),e.clearMarks(l)})}const fd=/\{([0-9a-zA-Z]+)\}/g;function Jn(e,...t){return t.length===1&&he(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(fd,(n,l)=>t.hasOwnProperty(l)?t[l]:"")}const vt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),md=(e,t,n)=>hd({l:e,k:t,s:n}),hd=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ne=e=>typeof e=="number"&&isFinite(e),gd=e=>Ho(e)==="[object Date]",tn=e=>Ho(e)==="[object RegExp]",Zn=e=>ie(e)&&Object.keys(e).length===0,De=Object.assign,pd=Object.create,_e=(e=null)=>pd(e);let vr;const zt=()=>vr||(vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:_e());function yr(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const bd=Object.prototype.hasOwnProperty;function gt(e,t){return bd.call(e,t)}const Te=Array.isArray,ye=e=>typeof e=="function",H=e=>typeof e=="string",ge=e=>typeof e=="boolean",he=e=>e!==null&&typeof e=="object",_d=e=>he(e)&&ye(e.then)&&ye(e.catch),Sr=Object.prototype.toString,Ho=e=>Sr.call(e),ie=e=>Ho(e)==="[object Object]",vd=e=>e==null?"":Te(e)||ie(e)&&e.toString===Sr?JSON.stringify(e,null,2):String(e);function zo(e,t=""){return e.reduce((n,l,a)=>a===0?n+l:n+t+l,"")}const kr=2;function yd(e,t=0,n=e.length){const l=e.split(/\r?\n/);let a=0;const r=[];for(let i=0;i<l.length;i++)if(a+=l[i].length+1,a>=t){for(let s=i-kr;s<=i+kr||n>a;s++){if(s<0||s>=l.length)continue;const u=s+1;r.push(`${u}${" ".repeat(3-String(u).length)}| ${l[s]}`);const m=l[s].length;if(s===i){const d=t-(a-m)+1,c=Math.max(1,n>a?m-d:n-t);r.push(" | "+" ".repeat(d)+"^".repeat(c))}else if(s>i){if(n>a){const d=Math.max(Math.min(n-a,m),1);r.push(" | "+"^".repeat(d))}a+=m+1}}break}return r.join(`
6
+ `)}function It(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const wr={};function Cr(e){wr[e]||(wr[e]=!0,It(e))}function jo(){const e=new Map;return{events:e,on(n,l){const a=e.get(n);a&&a.push(l)||e.set(n,[l])},off(n,l){const a=e.get(n);a&&a.splice(a.indexOf(l)>>>0,1)},emit(n,l){(e.get(n)||[]).slice().map(a=>a(l)),(e.get("*")||[]).slice().map(a=>a(n,l))}}}const eo=e=>!he(e)||Te(e);function to(e,t){if(eo(e)||eo(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:l,des:a}=n.pop();Object.keys(l).forEach(r=>{r!=="__proto__"&&(he(l[r])&&!he(a[r])&&(a[r]=Array.isArray(l[r])?[]:_e()),eo(a[r])||eo(l[r])?a[r]=l[r]:n.push({src:l[r],des:a[r]}))})}}/*!
7
7
  * message-compiler v10.0.5
8
8
  * (c) 2024 kazuya kawaguchi
9
9
  * Released under the MIT License.
10
- */function vs(e,t,n){return{line:e,column:t,offset:n}}function Ct(e,t,n){return{start:e,end:t}}const D={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},Ns=17,Ls={[D.EXPECTED_TOKEN]:"Expected token: '{0}'",[D.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[D.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[D.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[D.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[D.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[D.EMPTY_PLACEHOLDER]:"Empty placeholder",[D.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[D.INVALID_LINKED_FORMAT]:"Invalid linked format",[D.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[D.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[D.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[D.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[D.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[D.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function $e(e,t,n={}){const{domain:a,messages:r,args:s}=n,o=process.env.NODE_ENV!=="production"?ot((r||Ls)[e]||"",...s||[]):e,i=new SyntaxError(String(o));return i.code=e,t&&(i.location=t),i.domain=a,i}function ys(e){throw e}const Ts=/<\/?[\w\s="/.':;#-\/]+>/,Os=e=>Ts.test(e),ge=" ",Is="\r",ne=`
11
- `,ks="\u2028",Ss="\u2029";function Cs(e){const t=e;let n=0,a=1,r=1,s=0;const o=E=>t[E]===Is&&t[E+1]===ne,i=E=>t[E]===ne,u=E=>t[E]===Ss,m=E=>t[E]===ks,h=E=>o(E)||i(E)||u(E)||m(E),b=()=>n,f=()=>a,I=()=>r,C=()=>s,S=E=>o(E)||u(E)||m(E)?ne:t[E],T=()=>S(n),d=()=>S(n+s);function _(){return s=0,h(n)&&(a++,r=0),o(n)&&n++,n++,r++,t[n]}function y(){return o(n+s)&&s++,s++,t[n+s]}function p(){n=0,a=1,r=1,s=0}function L(E=0){s=E}function k(){const E=n+s;for(;E!==n;)_();s=0}return{index:b,line:f,column:I,peekOffset:C,charAt:S,currentChar:T,currentPeek:d,next:_,peek:y,reset:p,resetPeek:L,skipToPeek:k}}const ve=void 0,ws=".",Zn="'",As="tokenizer";function Ps(e,t={}){const n=t.location!==!1,a=Cs(e),r=()=>a.index(),s=()=>vs(a.line(),a.column(),a.index()),o=s(),i=r(),u={currentType:13,offset:i,startLoc:o,endLoc:o,lastType:13,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},m=()=>u,{onError:h}=t;function b(l,c,N,...A){const Q=m();if(c.column+=N,c.offset+=N,h){const J=n?Ct(Q.startLoc,c):null,$=$e(l,J,{domain:As,args:A});h($)}}function f(l,c,N){l.endLoc=s(),l.currentType=c;const A={type:c};return n&&(A.loc=Ct(l.startLoc,l.endLoc)),N!=null&&(A.value=N),A}const I=l=>f(l,13);function C(l,c){return l.currentChar()===c?(l.next(),c):(b(D.EXPECTED_TOKEN,s(),0,c),"")}function S(l){let c="";for(;l.currentPeek()===ge||l.currentPeek()===ne;)c+=l.currentPeek(),l.peek();return c}function T(l){const c=S(l);return l.skipToPeek(),c}function d(l){if(l===ve)return!1;const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function _(l){if(l===ve)return!1;const c=l.charCodeAt(0);return c>=48&&c<=57}function y(l,c){const{currentType:N}=c;if(N!==2)return!1;S(l);const A=d(l.currentPeek());return l.resetPeek(),A}function p(l,c){const{currentType:N}=c;if(N!==2)return!1;S(l);const A=l.currentPeek()==="-"?l.peek():l.currentPeek(),Q=_(A);return l.resetPeek(),Q}function L(l,c){const{currentType:N}=c;if(N!==2)return!1;S(l);const A=l.currentPeek()===Zn;return l.resetPeek(),A}function k(l,c){const{currentType:N}=c;if(N!==7)return!1;S(l);const A=l.currentPeek()===".";return l.resetPeek(),A}function E(l,c){const{currentType:N}=c;if(N!==8)return!1;S(l);const A=d(l.currentPeek());return l.resetPeek(),A}function R(l,c){const{currentType:N}=c;if(!(N===7||N===11))return!1;S(l);const A=l.currentPeek()===":";return l.resetPeek(),A}function F(l,c){const{currentType:N}=c;if(N!==9)return!1;const A=()=>{const J=l.currentPeek();return J==="{"?d(l.peek()):J==="@"||J==="|"||J===":"||J==="."||J===ge||!J?!1:J===ne?(l.peek(),A()):Y(l,!1)},Q=A();return l.resetPeek(),Q}function G(l){S(l);const c=l.currentPeek()==="|";return l.resetPeek(),c}function Y(l,c=!0){const N=(Q=!1,J="")=>{const $=l.currentPeek();return $==="{"||$==="@"||!$?Q:$==="|"?!(J===ge||J===ne):$===ge?(l.peek(),N(!0,ge)):$===ne?(l.peek(),N(!0,ne)):!0},A=N();return c&&l.resetPeek(),A}function j(l,c){const N=l.currentChar();return N===ve?ve:c(N)?(l.next(),N):null}function le(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36}function P(l){return j(l,le)}function q(l){const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===95||c===36||c===45}function Oe(l){return j(l,q)}function tn(l){const c=l.charCodeAt(0);return c>=48&&c<=57}function nn(l){return j(l,tn)}function rn(l){const c=l.charCodeAt(0);return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}function he(l){return j(l,rn)}function et(l){let c="",N="";for(;c=nn(l);)N+=c;return N}function an(l){let c="";for(;;){const N=l.currentChar();if(N==="{"||N==="}"||N==="@"||N==="|"||!N)break;if(N===ge||N===ne)if(Y(l))c+=N,l.next();else{if(G(l))break;c+=N,l.next()}else c+=N,l.next()}return c}function sn(l){T(l);let c="",N="";for(;c=Oe(l);)N+=c;return l.currentChar()===ve&&b(D.UNTERMINATED_CLOSING_BRACE,s(),0),N}function on(l){T(l);let c="";return l.currentChar()==="-"?(l.next(),c+=`-${et(l)}`):c+=et(l),l.currentChar()===ve&&b(D.UNTERMINATED_CLOSING_BRACE,s(),0),c}function ln(l){return l!==Zn&&l!==ne}function Zr(l){T(l),C(l,"'");let c="",N="";for(;c=j(l,ln);)c==="\\"?N+=cn(l):N+=c;const A=l.currentChar();return A===ne||A===ve?(b(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),A===ne&&(l.next(),C(l,"'")),N):(C(l,"'"),N)}function cn(l){const c=l.currentChar();switch(c){case"\\":case"'":return l.next(),`\\${c}`;case"u":return pt(l,c,4);case"U":return pt(l,c,6);default:return b(D.UNKNOWN_ESCAPE_SEQUENCE,s(),0,c),""}}function pt(l,c,N){C(l,c);let A="";for(let Q=0;Q<N;Q++){const J=he(l);if(!J){b(D.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${c}${A}${l.currentChar()}`);break}A+=J}return`\\${c}${A}`}function un(l){return l!=="{"&&l!=="}"&&l!==ge&&l!==ne}function fn(l){T(l);let c="",N="";for(;c=j(l,un);)N+=c;return N}function dn(l){let c="",N="";for(;c=P(l);)N+=c;return N}function mn(l){const c=N=>{const A=l.currentChar();return A==="{"||A==="@"||A==="|"||A==="("||A===")"||!A||A===ge?N:(N+=A,l.next(),c(N))};return c("")}function tt(l){T(l);const c=C(l,"|");return T(l),c}function nt(l,c){let N=null;switch(l.currentChar()){case"{":return c.braceNest>=1&&b(D.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),l.next(),N=f(c,2,"{"),T(l),c.braceNest++,N;case"}":return c.braceNest>0&&c.currentType===2&&b(D.EMPTY_PLACEHOLDER,s(),0),l.next(),N=f(c,3,"}"),c.braceNest--,c.braceNest>0&&T(l),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),N;case"@":return c.braceNest>0&&b(D.UNTERMINATED_CLOSING_BRACE,s(),0),N=Ae(l,c)||I(c),c.braceNest=0,N;default:{let Q=!0,J=!0,$=!0;if(G(l))return c.braceNest>0&&b(D.UNTERMINATED_CLOSING_BRACE,s(),0),N=f(c,1,tt(l)),c.braceNest=0,c.inLinked=!1,N;if(c.braceNest>0&&(c.currentType===4||c.currentType===5||c.currentType===6))return b(D.UNTERMINATED_CLOSING_BRACE,s(),0),c.braceNest=0,rt(l,c);if(Q=y(l,c))return N=f(c,4,sn(l)),T(l),N;if(J=p(l,c))return N=f(c,5,on(l)),T(l),N;if($=L(l,c))return N=f(c,6,Zr(l)),T(l),N;if(!Q&&!J&&!$)return N=f(c,12,fn(l)),b(D.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,N.value),T(l),N;break}}return N}function Ae(l,c){const{currentType:N}=c;let A=null;const Q=l.currentChar();switch((N===7||N===8||N===11||N===9)&&(Q===ne||Q===ge)&&b(D.INVALID_LINKED_FORMAT,s(),0),Q){case"@":return l.next(),A=f(c,7,"@"),c.inLinked=!0,A;case".":return T(l),l.next(),f(c,8,".");case":":return T(l),l.next(),f(c,9,":");default:return G(l)?(A=f(c,1,tt(l)),c.braceNest=0,c.inLinked=!1,A):k(l,c)||R(l,c)?(T(l),Ae(l,c)):E(l,c)?(T(l),f(c,11,dn(l))):F(l,c)?(T(l),Q==="{"?nt(l,c)||A:f(c,10,mn(l))):(N===7&&b(D.INVALID_LINKED_FORMAT,s(),0),c.braceNest=0,c.inLinked=!1,rt(l,c))}}function rt(l,c){let N={type:13};if(c.braceNest>0)return nt(l,c)||I(c);if(c.inLinked)return Ae(l,c)||I(c);switch(l.currentChar()){case"{":return nt(l,c)||I(c);case"}":return b(D.UNBALANCED_CLOSING_BRACE,s(),0),l.next(),f(c,3,"}");case"@":return Ae(l,c)||I(c);default:{if(G(l))return N=f(c,1,tt(l)),c.braceNest=0,c.inLinked=!1,N;if(Y(l))return f(c,0,an(l));break}}return N}function _n(){const{currentType:l,offset:c,startLoc:N,endLoc:A}=u;return u.lastType=l,u.lastOffset=c,u.lastStartLoc=N,u.lastEndLoc=A,u.offset=r(),u.startLoc=s(),a.currentChar()===ve?f(u,13):rt(a,u)}return{nextToken:_n,currentOffset:r,currentPosition:s,context:m}}const Rs="parser",Ds=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ms(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(t||n,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function Fs(e={}){const t=e.location!==!1,{onError:n}=e;function a(d,_,y,p,...L){const k=d.currentPosition();if(k.offset+=p,k.column+=p,n){const E=t?Ct(y,k):null,R=$e(_,E,{domain:Rs,args:L});n(R)}}function r(d,_,y){const p={type:d};return t&&(p.start=_,p.end=_,p.loc={start:y,end:y}),p}function s(d,_,y,p){t&&(d.end=_,d.loc&&(d.loc.end=y))}function o(d,_){const y=d.context(),p=r(3,y.offset,y.startLoc);return p.value=_,s(p,d.currentOffset(),d.currentPosition()),p}function i(d,_){const y=d.context(),{lastOffset:p,lastStartLoc:L}=y,k=r(5,p,L);return k.index=parseInt(_,10),d.nextToken(),s(k,d.currentOffset(),d.currentPosition()),k}function u(d,_){const y=d.context(),{lastOffset:p,lastStartLoc:L}=y,k=r(4,p,L);return k.key=_,d.nextToken(),s(k,d.currentOffset(),d.currentPosition()),k}function m(d,_){const y=d.context(),{lastOffset:p,lastStartLoc:L}=y,k=r(9,p,L);return k.value=_.replace(Ds,Ms),d.nextToken(),s(k,d.currentOffset(),d.currentPosition()),k}function h(d){const _=d.nextToken(),y=d.context(),{lastOffset:p,lastStartLoc:L}=y,k=r(8,p,L);return _.type!==11?(a(d,D.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),k.value="",s(k,p,L),{nextConsumeToken:_,node:k}):(_.value==null&&a(d,D.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,me(_)),k.value=_.value||"",s(k,d.currentOffset(),d.currentPosition()),{node:k})}function b(d,_){const y=d.context(),p=r(7,y.offset,y.startLoc);return p.value=_,s(p,d.currentOffset(),d.currentPosition()),p}function f(d){const _=d.context(),y=r(6,_.offset,_.startLoc);let p=d.nextToken();if(p.type===8){const L=h(d);y.modifier=L.node,p=L.nextConsumeToken||d.nextToken()}switch(p.type!==9&&a(d,D.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,me(p)),p=d.nextToken(),p.type===2&&(p=d.nextToken()),p.type){case 10:p.value==null&&a(d,D.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,me(p)),y.key=b(d,p.value||"");break;case 4:p.value==null&&a(d,D.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,me(p)),y.key=u(d,p.value||"");break;case 5:p.value==null&&a(d,D.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,me(p)),y.key=i(d,p.value||"");break;case 6:p.value==null&&a(d,D.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,me(p)),y.key=m(d,p.value||"");break;default:{a(d,D.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const L=d.context(),k=r(7,L.offset,L.startLoc);return k.value="",s(k,L.offset,L.startLoc),y.key=k,s(y,L.offset,L.startLoc),{nextConsumeToken:p,node:y}}}return s(y,d.currentOffset(),d.currentPosition()),{node:y}}function I(d){const _=d.context(),y=_.currentType===1?d.currentOffset():_.offset,p=_.currentType===1?_.endLoc:_.startLoc,L=r(2,y,p);L.items=[];let k=null;do{const F=k||d.nextToken();switch(k=null,F.type){case 0:F.value==null&&a(d,D.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,me(F)),L.items.push(o(d,F.value||""));break;case 5:F.value==null&&a(d,D.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,me(F)),L.items.push(i(d,F.value||""));break;case 4:F.value==null&&a(d,D.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,me(F)),L.items.push(u(d,F.value||""));break;case 6:F.value==null&&a(d,D.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,me(F)),L.items.push(m(d,F.value||""));break;case 7:{const G=f(d);L.items.push(G.node),k=G.nextConsumeToken||null;break}}}while(_.currentType!==13&&_.currentType!==1);const E=_.currentType===1?_.lastOffset:d.currentOffset(),R=_.currentType===1?_.lastEndLoc:d.currentPosition();return s(L,E,R),L}function C(d,_,y,p){const L=d.context();let k=p.items.length===0;const E=r(1,_,y);E.cases=[],E.cases.push(p);do{const R=I(d);k||(k=R.items.length===0),E.cases.push(R)}while(L.currentType!==13);return k&&a(d,D.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),s(E,d.currentOffset(),d.currentPosition()),E}function S(d){const _=d.context(),{offset:y,startLoc:p}=_,L=I(d);return _.currentType===13?L:C(d,y,p,L)}function T(d){const _=Ps(d,Z({},e)),y=_.context(),p=r(0,y.offset,y.startLoc);return t&&p.loc&&(p.loc.source=d),p.body=S(_),e.onCacheKey&&(p.cacheKey=e.onCacheKey(d)),y.currentType!==13&&a(_,D.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,d[y.offset]||""),s(p,_.currentOffset(),_.currentPosition()),p}return{parse:T}}function me(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function xs(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function er(e,t){for(let n=0;n<e.length;n++)wt(e[n],t)}function wt(e,t){switch(e.type){case 1:er(e.cases,t),t.helper("plural");break;case 2:er(e.items,t);break;case 6:{wt(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Us(e,t={}){const n=xs(e);n.helper("normalize"),e.body&&wt(e.body,n);const a=n.context();e.helpers=Array.from(a.helpers)}function $s(e){const t=e.body;return t.type===2?tr(t):t.cases.forEach(n=>tr(n)),e}function tr(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const a=e.items[n];if(!(a.type===3||a.type===9)||a.value==null)break;t.push(a.value)}if(t.length===e.items.length){e.static=kt(t);for(let n=0;n<e.items.length;n++){const a=e.items[n];(a.type===3||a.type===9)&&delete a.value}}}}const Vs="minifier";function Ve(e){switch(e.t=e.type,e.type){case 0:{const t=e;Ve(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let a=0;a<n.length;a++)Ve(n[a]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let a=0;a<n.length;a++)Ve(n[a]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Ve(t.key),t.k=t.key,delete t.key,t.modifier&&(Ve(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw $e(D.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Vs,args:[e.type]})}delete e.type}const Ws="parser";function Bs(e,t){const{filename:n,breakLineCode:a,needIndent:r}=t,s=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:r,indentLevel:0};s&&e.loc&&(o.source=e.loc.source);const i=()=>o;function u(S,T){o.code+=S}function m(S,T=!0){const d=T?a:"";u(r?d+" ".repeat(S):d)}function h(S=!0){const T=++o.indentLevel;S&&m(T)}function b(S=!0){const T=--o.indentLevel;S&&m(T)}function f(){m(o.indentLevel)}return{context:i,push:u,indent:h,deindent:b,newline:f,helper:S=>`_${S}`,needIndent:()=>o.needIndent}}function Hs(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),We(e,t.key),t.modifier?(e.push(", "),We(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function js(e,t){const{helper:n,needIndent:a}=e;e.push(`${n("normalize")}([`),e.indent(a());const r=t.items.length;for(let s=0;s<r&&(We(e,t.items[s]),s!==r-1);s++)e.push(", ");e.deindent(a()),e.push("])")}function Gs(e,t){const{helper:n,needIndent:a}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(a());const r=t.cases.length;for(let s=0;s<r&&(We(e,t.cases[s]),s!==r-1);s++)e.push(", ");e.deindent(a()),e.push("])")}}function qs(e,t){t.body?We(e,t.body):e.push("null")}function We(e,t){const{helper:n}=e;switch(t.type){case 0:qs(e,t);break;case 1:Gs(e,t);break;case 2:js(e,t);break;case 6:Hs(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw $e(D.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ws,args:[t.type]})}}const Ks=(e,t={})=>{const n=w(t.mode)?t.mode:"normal",a=w(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
12
- `,s=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],i=Bs(e,{filename:a,breakLineCode:r,needIndent:s});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(s),o.length>0&&(i.push(`const { ${kt(o.map(h=>`${h}: _${h}`),", ")} } = ctx`),i.newline()),i.push("return "),We(i,e),i.deindent(s),i.push("}"),delete e.helpers;const{code:u,map:m}=i.context();return{ast:e,code:u,map:m?m.toJSON():void 0}};function Ys(e,t={}){const n=Z({},t),a=!!n.jit,r=!!n.minify,s=n.optimize==null?!0:n.optimize,i=Fs(n).parse(e);return a?(s&&$s(i),r&&Ve(i),{ast:i,code:""}):(Us(i,n),Ks(i,n))}/*!
10
+ */function Sd(e,t,n){return{line:e,column:t,offset:n}}function Wo(e,t,n){return{start:e,end:t}}const le={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},kd=17,wd={[le.EXPECTED_TOKEN]:"Expected token: '{0}'",[le.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[le.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[le.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[le.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[le.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[le.EMPTY_PLACEHOLDER]:"Empty placeholder",[le.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[le.INVALID_LINKED_FORMAT]:"Invalid linked format",[le.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[le.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[le.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[le.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[le.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[le.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function nn(e,t,n={}){const{domain:l,messages:a,args:r}=n,i=process.env.NODE_ENV!=="production"?Jn((a||wd)[e]||"",...r||[]):e,s=new SyntaxError(String(i));return s.code=e,t&&(s.location=t),s.domain=l,s}function Cd(e){throw e}const Ed=/<\/?[\w\s="/.':;#-\/]+>/,Td=e=>Ed.test(e),Ct=" ",xd="\r",Ye=`
11
+ `,Nd="\u2028",Ld="\u2029";function Od(e){const t=e;let n=0,l=1,a=1,r=0;const i=C=>t[C]===xd&&t[C+1]===Ye,s=C=>t[C]===Ye,u=C=>t[C]===Ld,m=C=>t[C]===Nd,d=C=>i(C)||s(C)||u(C)||m(C),c=()=>n,f=()=>l,h=()=>a,S=()=>r,E=C=>i(C)||u(C)||m(C)?Ye:t[C],b=()=>E(n),p=()=>E(n+r);function _(){return r=0,d(n)&&(l++,a=0),i(n)&&n++,n++,a++,t[n]}function w(){return i(n+r)&&r++,r++,t[n+r]}function y(){n=0,l=1,a=1,r=0}function x(C=0){r=C}function O(){const C=n+r;for(;C!==n;)_();r=0}return{index:c,line:f,column:h,peekOffset:S,charAt:E,currentChar:b,currentPeek:p,next:_,peek:w,reset:y,resetPeek:x,skipToPeek:O}}const Pt=void 0,Id=".",Er="'",Pd="tokenizer";function Vd(e,t={}){const n=t.location!==!1,l=Od(e),a=()=>l.index(),r=()=>Sd(l.line(),l.column(),l.index()),i=r(),s=a(),u={currentType:13,offset:s,startLoc:i,endLoc:i,lastType:13,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},m=()=>u,{onError:d}=t;function c(g,k,A,...G){const fe=m();if(k.column+=A,k.offset+=A,d){const pe=n?Wo(fe.startLoc,k):null,se=nn(g,pe,{domain:Pd,args:G});d(se)}}function f(g,k,A){g.endLoc=r(),g.currentType=k;const G={type:k};return n&&(G.loc=Wo(g.startLoc,g.endLoc)),A!=null&&(G.value=A),G}const h=g=>f(g,13);function S(g,k){return g.currentChar()===k?(g.next(),k):(c(le.EXPECTED_TOKEN,r(),0,k),"")}function E(g){let k="";for(;g.currentPeek()===Ct||g.currentPeek()===Ye;)k+=g.currentPeek(),g.peek();return k}function b(g){const k=E(g);return g.skipToPeek(),k}function p(g){if(g===Pt)return!1;const k=g.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k===95}function _(g){if(g===Pt)return!1;const k=g.charCodeAt(0);return k>=48&&k<=57}function w(g,k){const{currentType:A}=k;if(A!==2)return!1;E(g);const G=p(g.currentPeek());return g.resetPeek(),G}function y(g,k){const{currentType:A}=k;if(A!==2)return!1;E(g);const G=g.currentPeek()==="-"?g.peek():g.currentPeek(),fe=_(G);return g.resetPeek(),fe}function x(g,k){const{currentType:A}=k;if(A!==2)return!1;E(g);const G=g.currentPeek()===Er;return g.resetPeek(),G}function O(g,k){const{currentType:A}=k;if(A!==7)return!1;E(g);const G=g.currentPeek()===".";return g.resetPeek(),G}function C(g,k){const{currentType:A}=k;if(A!==8)return!1;E(g);const G=p(g.currentPeek());return g.resetPeek(),G}function D(g,k){const{currentType:A}=k;if(!(A===7||A===11))return!1;E(g);const G=g.currentPeek()===":";return g.resetPeek(),G}function I(g,k){const{currentType:A}=k;if(A!==9)return!1;const G=()=>{const pe=g.currentPeek();return pe==="{"?p(g.peek()):pe==="@"||pe==="|"||pe===":"||pe==="."||pe===Ct||!pe?!1:pe===Ye?(g.peek(),G()):B(g,!1)},fe=G();return g.resetPeek(),fe}function V(g){E(g);const k=g.currentPeek()==="|";return g.resetPeek(),k}function B(g,k=!0){const A=(fe=!1,pe="")=>{const se=g.currentPeek();return se==="{"||se==="@"||!se?fe:se==="|"?!(pe===Ct||pe===Ye):se===Ct?(g.peek(),A(!0,Ct)):se===Ye?(g.peek(),A(!0,Ye)):!0},G=A();return k&&g.resetPeek(),G}function N(g,k){const A=g.currentChar();return A===Pt?Pt:k(A)?(g.next(),A):null}function W(g){const k=g.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===95||k===36}function M(g){return N(g,W)}function J(g){const k=g.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===95||k===36||k===45}function X(g){return N(g,J)}function te(g){const k=g.charCodeAt(0);return k>=48&&k<=57}function U(g){return N(g,te)}function Z(g){const k=g.charCodeAt(0);return k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102}function ee(g){return N(g,Z)}function L(g){let k="",A="";for(;k=U(g);)A+=k;return A}function T(g){let k="";for(;;){const A=g.currentChar();if(A==="{"||A==="}"||A==="@"||A==="|"||!A)break;if(A===Ct||A===Ye)if(B(g))k+=A,g.next();else{if(V(g))break;k+=A,g.next()}else k+=A,g.next()}return k}function j(g){b(g);let k="",A="";for(;k=X(g);)A+=k;return g.currentChar()===Pt&&c(le.UNTERMINATED_CLOSING_BRACE,r(),0),A}function ae(g){b(g);let k="";return g.currentChar()==="-"?(g.next(),k+=`-${L(g)}`):k+=L(g),g.currentChar()===Pt&&c(le.UNTERMINATED_CLOSING_BRACE,r(),0),k}function re(g){return g!==Er&&g!==Ye}function F(g){b(g),S(g,"'");let k="",A="";for(;k=N(g,re);)k==="\\"?A+=z(g):A+=k;const G=g.currentChar();return G===Ye||G===Pt?(c(le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),G===Ye&&(g.next(),S(g,"'")),A):(S(g,"'"),A)}function z(g){const k=g.currentChar();switch(k){case"\\":case"'":return g.next(),`\\${k}`;case"u":return ce(g,k,4);case"U":return ce(g,k,6);default:return c(le.UNKNOWN_ESCAPE_SEQUENCE,r(),0,k),""}}function ce(g,k,A){S(g,k);let G="";for(let fe=0;fe<A;fe++){const pe=ee(g);if(!pe){c(le.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${k}${G}${g.currentChar()}`);break}G+=pe}return`\\${k}${G}`}function $(g){return g!=="{"&&g!=="}"&&g!==Ct&&g!==Ye}function be(g){b(g);let k="",A="";for(;k=N(g,$);)A+=k;return A}function Be(g){let k="",A="";for(;k=M(g);)A+=k;return A}function st(g){const k=A=>{const G=g.currentChar();return G==="{"||G==="@"||G==="|"||G==="("||G===")"||!G||G===Ct?A:(A+=G,g.next(),k(A))};return k("")}function Le(g){b(g);const k=S(g,"|");return b(g),k}function et(g,k){let A=null;switch(g.currentChar()){case"{":return k.braceNest>=1&&c(le.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),g.next(),A=f(k,2,"{"),b(g),k.braceNest++,A;case"}":return k.braceNest>0&&k.currentType===2&&c(le.EMPTY_PLACEHOLDER,r(),0),g.next(),A=f(k,3,"}"),k.braceNest--,k.braceNest>0&&b(g),k.inLinked&&k.braceNest===0&&(k.inLinked=!1),A;case"@":return k.braceNest>0&&c(le.UNTERMINATED_CLOSING_BRACE,r(),0),A=qe(g,k)||h(k),k.braceNest=0,A;default:{let fe=!0,pe=!0,se=!0;if(V(g))return k.braceNest>0&&c(le.UNTERMINATED_CLOSING_BRACE,r(),0),A=f(k,1,Le(g)),k.braceNest=0,k.inLinked=!1,A;if(k.braceNest>0&&(k.currentType===4||k.currentType===5||k.currentType===6))return c(le.UNTERMINATED_CLOSING_BRACE,r(),0),k.braceNest=0,ze(g,k);if(fe=w(g,k))return A=f(k,4,j(g)),b(g),A;if(pe=y(g,k))return A=f(k,5,ae(g)),b(g),A;if(se=x(g,k))return A=f(k,6,F(g)),b(g),A;if(!fe&&!pe&&!se)return A=f(k,12,be(g)),c(le.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,A.value),b(g),A;break}}return A}function qe(g,k){const{currentType:A}=k;let G=null;const fe=g.currentChar();switch((A===7||A===8||A===11||A===9)&&(fe===Ye||fe===Ct)&&c(le.INVALID_LINKED_FORMAT,r(),0),fe){case"@":return g.next(),G=f(k,7,"@"),k.inLinked=!0,G;case".":return b(g),g.next(),f(k,8,".");case":":return b(g),g.next(),f(k,9,":");default:return V(g)?(G=f(k,1,Le(g)),k.braceNest=0,k.inLinked=!1,G):O(g,k)||D(g,k)?(b(g),qe(g,k)):C(g,k)?(b(g),f(k,11,Be(g))):I(g,k)?(b(g),fe==="{"?et(g,k)||G:f(k,10,st(g))):(A===7&&c(le.INVALID_LINKED_FORMAT,r(),0),k.braceNest=0,k.inLinked=!1,ze(g,k))}}function ze(g,k){let A={type:13};if(k.braceNest>0)return et(g,k)||h(k);if(k.inLinked)return qe(g,k)||h(k);switch(g.currentChar()){case"{":return et(g,k)||h(k);case"}":return c(le.UNBALANCED_CLOSING_BRACE,r(),0),g.next(),f(k,3,"}");case"@":return qe(g,k)||h(k);default:{if(V(g))return A=f(k,1,Le(g)),k.braceNest=0,k.inLinked=!1,A;if(B(g))return f(k,0,T(g));break}}return A}function ut(){const{currentType:g,offset:k,startLoc:A,endLoc:G}=u;return u.lastType=g,u.lastOffset=k,u.lastStartLoc=A,u.lastEndLoc=G,u.offset=a(),u.startLoc=r(),l.currentChar()===Pt?f(u,13):ze(l,u)}return{nextToken:ut,currentOffset:a,currentPosition:r,context:m}}const Rd="parser",Ad=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Md(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const l=parseInt(t||n,16);return l<=55295||l>=57344?String.fromCodePoint(l):"�"}}}function Dd(e={}){const t=e.location!==!1,{onError:n}=e;function l(p,_,w,y,...x){const O=p.currentPosition();if(O.offset+=y,O.column+=y,n){const C=t?Wo(w,O):null,D=nn(_,C,{domain:Rd,args:x});n(D)}}function a(p,_,w){const y={type:p};return t&&(y.start=_,y.end=_,y.loc={start:w,end:w}),y}function r(p,_,w,y){t&&(p.end=_,p.loc&&(p.loc.end=w))}function i(p,_){const w=p.context(),y=a(3,w.offset,w.startLoc);return y.value=_,r(y,p.currentOffset(),p.currentPosition()),y}function s(p,_){const w=p.context(),{lastOffset:y,lastStartLoc:x}=w,O=a(5,y,x);return O.index=parseInt(_,10),p.nextToken(),r(O,p.currentOffset(),p.currentPosition()),O}function u(p,_){const w=p.context(),{lastOffset:y,lastStartLoc:x}=w,O=a(4,y,x);return O.key=_,p.nextToken(),r(O,p.currentOffset(),p.currentPosition()),O}function m(p,_){const w=p.context(),{lastOffset:y,lastStartLoc:x}=w,O=a(9,y,x);return O.value=_.replace(Ad,Md),p.nextToken(),r(O,p.currentOffset(),p.currentPosition()),O}function d(p){const _=p.nextToken(),w=p.context(),{lastOffset:y,lastStartLoc:x}=w,O=a(8,y,x);return _.type!==11?(l(p,le.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),O.value="",r(O,y,x),{nextConsumeToken:_,node:O}):(_.value==null&&l(p,le.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,yt(_)),O.value=_.value||"",r(O,p.currentOffset(),p.currentPosition()),{node:O})}function c(p,_){const w=p.context(),y=a(7,w.offset,w.startLoc);return y.value=_,r(y,p.currentOffset(),p.currentPosition()),y}function f(p){const _=p.context(),w=a(6,_.offset,_.startLoc);let y=p.nextToken();if(y.type===8){const x=d(p);w.modifier=x.node,y=x.nextConsumeToken||p.nextToken()}switch(y.type!==9&&l(p,le.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,yt(y)),y=p.nextToken(),y.type===2&&(y=p.nextToken()),y.type){case 10:y.value==null&&l(p,le.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,yt(y)),w.key=c(p,y.value||"");break;case 4:y.value==null&&l(p,le.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,yt(y)),w.key=u(p,y.value||"");break;case 5:y.value==null&&l(p,le.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,yt(y)),w.key=s(p,y.value||"");break;case 6:y.value==null&&l(p,le.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,yt(y)),w.key=m(p,y.value||"");break;default:{l(p,le.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const x=p.context(),O=a(7,x.offset,x.startLoc);return O.value="",r(O,x.offset,x.startLoc),w.key=O,r(w,x.offset,x.startLoc),{nextConsumeToken:y,node:w}}}return r(w,p.currentOffset(),p.currentPosition()),{node:w}}function h(p){const _=p.context(),w=_.currentType===1?p.currentOffset():_.offset,y=_.currentType===1?_.endLoc:_.startLoc,x=a(2,w,y);x.items=[];let O=null;do{const I=O||p.nextToken();switch(O=null,I.type){case 0:I.value==null&&l(p,le.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,yt(I)),x.items.push(i(p,I.value||""));break;case 5:I.value==null&&l(p,le.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,yt(I)),x.items.push(s(p,I.value||""));break;case 4:I.value==null&&l(p,le.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,yt(I)),x.items.push(u(p,I.value||""));break;case 6:I.value==null&&l(p,le.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,yt(I)),x.items.push(m(p,I.value||""));break;case 7:{const V=f(p);x.items.push(V.node),O=V.nextConsumeToken||null;break}}}while(_.currentType!==13&&_.currentType!==1);const C=_.currentType===1?_.lastOffset:p.currentOffset(),D=_.currentType===1?_.lastEndLoc:p.currentPosition();return r(x,C,D),x}function S(p,_,w,y){const x=p.context();let O=y.items.length===0;const C=a(1,_,w);C.cases=[],C.cases.push(y);do{const D=h(p);O||(O=D.items.length===0),C.cases.push(D)}while(x.currentType!==13);return O&&l(p,le.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),r(C,p.currentOffset(),p.currentPosition()),C}function E(p){const _=p.context(),{offset:w,startLoc:y}=_,x=h(p);return _.currentType===13?x:S(p,w,y,x)}function b(p){const _=Vd(p,De({},e)),w=_.context(),y=a(0,w.offset,w.startLoc);return t&&y.loc&&(y.loc.source=p),y.body=E(_),e.onCacheKey&&(y.cacheKey=e.onCacheKey(p)),w.currentType!==13&&l(_,le.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,p[w.offset]||""),r(y,_.currentOffset(),_.currentPosition()),y}return{parse:b}}function yt(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Bd(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function Tr(e,t){for(let n=0;n<e.length;n++)Ko(e[n],t)}function Ko(e,t){switch(e.type){case 1:Tr(e.cases,t),t.helper("plural");break;case 2:Tr(e.items,t);break;case 6:{Ko(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function qd(e,t={}){const n=Bd(e);n.helper("normalize"),e.body&&Ko(e.body,n);const l=n.context();e.helpers=Array.from(l.helpers)}function Fd(e){const t=e.body;return t.type===2?xr(t):t.cases.forEach(n=>xr(n)),e}function xr(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const l=e.items[n];if(!(l.type===3||l.type===9)||l.value==null)break;t.push(l.value)}if(t.length===e.items.length){e.static=zo(t);for(let n=0;n<e.items.length;n++){const l=e.items[n];(l.type===3||l.type===9)&&delete l.value}}}}const $d="minifier";function on(e){switch(e.t=e.type,e.type){case 0:{const t=e;on(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let l=0;l<n.length;l++)on(n[l]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let l=0;l<n.length;l++)on(n[l]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;on(t.key),t.k=t.key,delete t.key,t.modifier&&(on(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw nn(le.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:$d,args:[e.type]})}delete e.type}const Ud="parser";function Hd(e,t){const{filename:n,breakLineCode:l,needIndent:a}=t,r=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:a,indentLevel:0};r&&e.loc&&(i.source=e.loc.source);const s=()=>i;function u(E,b){i.code+=E}function m(E,b=!0){const p=b?l:"";u(a?p+" ".repeat(E):p)}function d(E=!0){const b=++i.indentLevel;E&&m(b)}function c(E=!0){const b=--i.indentLevel;E&&m(b)}function f(){m(i.indentLevel)}return{context:s,push:u,indent:d,deindent:c,newline:f,helper:E=>`_${E}`,needIndent:()=>i.needIndent}}function zd(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ln(e,t.key),t.modifier?(e.push(", "),ln(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function jd(e,t){const{helper:n,needIndent:l}=e;e.push(`${n("normalize")}([`),e.indent(l());const a=t.items.length;for(let r=0;r<a&&(ln(e,t.items[r]),r!==a-1);r++)e.push(", ");e.deindent(l()),e.push("])")}function Wd(e,t){const{helper:n,needIndent:l}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(l());const a=t.cases.length;for(let r=0;r<a&&(ln(e,t.cases[r]),r!==a-1);r++)e.push(", ");e.deindent(l()),e.push("])")}}function Kd(e,t){t.body?ln(e,t.body):e.push("null")}function ln(e,t){const{helper:n}=e;switch(t.type){case 0:Kd(e,t);break;case 1:Wd(e,t);break;case 2:jd(e,t);break;case 6:zd(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw nn(le.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ud,args:[t.type]})}}const Gd=(e,t={})=>{const n=H(t.mode)?t.mode:"normal",l=H(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
12
+ `,r=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],s=Hd(e,{filename:l,breakLineCode:a,needIndent:r});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(r),i.length>0&&(s.push(`const { ${zo(i.map(d=>`${d}: _${d}`),", ")} } = ctx`),s.newline()),s.push("return "),ln(s,e),s.deindent(r),s.push("}"),delete e.helpers;const{code:u,map:m}=s.context();return{ast:e,code:u,map:m?m.toJSON():void 0}};function Qd(e,t={}){const n=De({},t),l=!!n.jit,a=!!n.minify,r=n.optimize==null?!0:n.optimize,s=Dd(n).parse(e);return l?(r&&Fd(s),a&&on(s),{ast:s,code:""}):(qd(s,n),Gd(s,n))}/*!
13
13
  * core-base v10.0.5
14
14
  * (c) 2024 kazuya kawaguchi
15
15
  * Released under the MIT License.
16
- */function Xs(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Se().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Se().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function At(e){return n=>Qs(n,e)}function Qs(e,t){const n=zs(t);if(n==null)throw Ke(0);if(Rt(n)===1){const s=eo(n);return e.plural(s.reduce((o,i)=>[...o,nr(e,i)],[]))}else return nr(e,n)}const Js=["b","body"];function zs(e){return Ne(e,Js)}const Zs=["c","cases"];function eo(e){return Ne(e,Zs,[])}function nr(e,t){const n=no(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const a=ao(t).reduce((r,s)=>[...r,Pt(e,s)],[]);return e.normalize(a)}}const to=["s","static"];function no(e){return Ne(e,to)}const ro=["i","items"];function ao(e){return Ne(e,ro,[])}function Pt(e,t){const n=Rt(t);switch(n){case 3:return ut(t,n);case 9:return ut(t,n);case 4:{const a=t;if(ue(a,"k")&&a.k)return e.interpolate(e.named(a.k));if(ue(a,"key")&&a.key)return e.interpolate(e.named(a.key));throw Ke(n)}case 5:{const a=t;if(ue(a,"i")&&X(a.i))return e.interpolate(e.list(a.i));if(ue(a,"index")&&X(a.index))return e.interpolate(e.list(a.index));throw Ke(n)}case 6:{const a=t,r=lo(a),s=uo(a);return e.linked(Pt(e,s),r?Pt(e,r):void 0,e.type)}case 7:return ut(t,n);case 8:return ut(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const so=["t","type"];function Rt(e){return Ne(e,so)}const oo=["v","value"];function ut(e,t){const n=Ne(e,oo);if(n)return n;throw Ke(t)}const io=["m","modifier"];function lo(e){return Ne(e,io)}const co=["k","key"];function uo(e){const t=Ne(e,co);if(t)return t;throw Ke(6)}function Ne(e,t,n){for(let a=0;a<t.length;a++){const r=t[a];if(ue(e,r)&&e[r]!=null)return e[r]}return n}function Ke(e){return new Error(`unhandled node type: ${e}`)}const fo="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function mo(e,t){t&&Os(e)&&be(ot(fo,{source:e}))}const _o=e=>e;let ft=W();function Le(e){return x(e)&&Rt(e)===0&&(ue(e,"b")||ue(e,"body"))}function go(e,t={}){let n=!1;const a=t.onError||ys;return t.onError=r=>{n=!0,a(r)},{...Ys(e,t),detectError:n}}function po(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&w(e)){const n=U(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&mo(e,n);const r=(t.onCacheKey||_o)(e),s=ft[r];if(s)return s;const{ast:o,detectError:i}=go(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=At(o);return i?u:ft[r]=u}else{if(process.env.NODE_ENV!=="production"&&!Le(e))return be(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const a=ft[n];return a||(ft[n]=At(e))}else return At(e)}}let Ye=null;function ho(e){Ye=e}function Eo(e,t,n){Ye&&Ye.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const bo=vo("function:translate");function vo(e){return t=>Ye&&Ye.emit(e,t)}const te={INVALID_ARGUMENT:Ns,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},No=24;function pe(e){return $e(e,null,process.env.NODE_ENV!=="production"?{messages:Lo}:void 0)}const Lo={[te.INVALID_ARGUMENT]:"Invalid arguments",[te.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[te.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[te.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[te.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[te.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[te.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Dt(e,t){return t.locale!=null?rr(t.locale):rr(e.locale)}let Mt;function rr(e){if(w(e))return e;if(B(e)){if(e.resolvedOnce&&Mt!=null)return Mt;if(e.constructor.name==="Function"){const t=e();if(hs(t))throw pe(te.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Mt=t}else throw pe(te.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw pe(te.NOT_SUPPORT_LOCALE_TYPE)}function yo(e,t,n){return[...new Set([n,...K(t)?t:x(t)?Object.keys(t):w(t)?[t]:[n]])]}function ar(e,t,n){const a=w(n)?n:Xe,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let s=r.__localeChainCache.get(a);if(!s){s=[];let o=[n];for(;K(o);)o=sr(s,o,t);const i=K(t)||!M(t)?t:t.default?t.default:null;o=w(i)?[i]:i,K(o)&&sr(s,o,!1),r.__localeChainCache.set(a,s)}return s}function sr(e,t,n){let a=!0;for(let r=0;r<t.length&&U(a);r++){const s=t[r];w(s)&&(a=To(e,t[r],n))}return a}function To(e,t,n){let a;const r=t.split("-");do{const s=r.join("-");a=Oo(e,s,n),r.splice(-1,1)}while(r.length&&a===!0);return a}function Oo(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(K(n)||M(n))&&n[r]&&(a=n[r])}return a}const ye=[];ye[0]={w:[0],i:[3,0],"[":[4],o:[7]},ye[1]={w:[1],".":[2],"[":[4],o:[7]},ye[2]={w:[2],i:[3,0],0:[3,0]},ye[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},ye[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},ye[5]={"'":[4,0],o:8,l:[5,0]},ye[6]={'"':[4,0],o:8,l:[6,0]};const Io=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ko(e){return Io.test(e)}function So(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Co(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function wo(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ko(t)?So(t):"*"+t}function Ao(e){const t=[];let n=-1,a=0,r=0,s,o,i,u,m,h,b;const f=[];f[0]=()=>{o===void 0?o=i:o+=i},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),r++},f[3]=()=>{if(r>0)r--,a=4,f[0]();else{if(r=0,o===void 0||(o=wo(o),o===!1))return!1;f[1]()}};function I(){const C=e[n+1];if(a===5&&C==="'"||a===6&&C==='"')return n++,i="\\"+C,f[0](),!0}for(;a!==null;)if(n++,s=e[n],!(s==="\\"&&I())){if(u=Co(s),b=ye[a],m=b[u]||b.l||8,m===8||(a=m[0],m[1]!==void 0&&(h=f[m[1]],h&&(i=s,h()===!1))))return;if(a===7)return t}}const or=new Map;function Po(e,t){return x(e)?e[t]:null}function Ro(e,t){if(!x(e))return null;let n=or.get(t);if(n||(n=Ao(t),n&&or.set(t,n)),!n)return null;const a=n.length;let r=e,s=0;for(;s<a;){const o=r[n[s]];if(o===void 0||B(r))return null;r=o,s++}return r}const ae={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},Do=8,Mo={[ae.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ae.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ae.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ae.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ae.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ae.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ae.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Ce(e,...t){return ot(Mo[e],...t)}const Fo="10.0.5",dt=-1,Xe="en-US",mt="",ir=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function xo(){return{upper:(e,t)=>t==="text"&&w(e)?e.toUpperCase():t==="vnode"&&x(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&w(e)?e.toLowerCase():t==="vnode"&&x(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&w(e)?ir(e):t==="vnode"&&x(e)&&"__v_isVNode"in e?ir(e.children):e}}let lr;function Uo(e){lr=e}let cr;function $o(e){cr=e}let ur;function Vo(e){ur=e}let fr=null;const Wo=e=>{fr=e},Bo=()=>fr;let dr=null;const mr=e=>{dr=e},Ho=()=>dr;let _r=0;function jo(e={}){const t=B(e.onWarn)?e.onWarn:be,n=w(e.version)?e.version:Fo,a=w(e.locale)||B(e.locale)?e.locale:Xe,r=B(a)?Xe:a,s=K(e.fallbackLocale)||M(e.fallbackLocale)||w(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,o=M(e.messages)?e.messages:Ft(r),i=M(e.datetimeFormats)?e.datetimeFormats:Ft(r),u=M(e.numberFormats)?e.numberFormats:Ft(r),m=Z(W(),e.modifiers,xo()),h=e.pluralRules||W(),b=B(e.missing)?e.missing:null,f=U(e.missingWarn)||Ue(e.missingWarn)?e.missingWarn:!0,I=U(e.fallbackWarn)||Ue(e.fallbackWarn)?e.fallbackWarn:!0,C=!!e.fallbackFormat,S=!!e.unresolving,T=B(e.postTranslation)?e.postTranslation:null,d=M(e.processor)?e.processor:null,_=U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,p=B(e.messageCompiler)?e.messageCompiler:lr;process.env.NODE_ENV!=="production"&&B(e.messageCompiler)&&zn(Ce(ae.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const L=B(e.messageResolver)?e.messageResolver:cr||Po,k=B(e.localeFallbacker)?e.localeFallbacker:ur||yo,E=x(e.fallbackContext)?e.fallbackContext:void 0,R=e,F=x(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,G=x(R.__numberFormatters)?R.__numberFormatters:new Map,Y=x(R.__meta)?R.__meta:{};_r++;const j={version:n,cid:_r,locale:a,fallbackLocale:s,messages:o,modifiers:m,pluralRules:h,missing:b,missingWarn:f,fallbackWarn:I,fallbackFormat:C,unresolving:S,postTranslation:T,processor:d,warnHtmlMessage:_,escapeParameter:y,messageCompiler:p,messageResolver:L,localeFallbacker:k,fallbackContext:E,onWarn:t,__meta:Y};return j.datetimeFormats=i,j.numberFormats=u,j.__datetimeFormatters=F,j.__numberFormatters=G,process.env.NODE_ENV!=="production"&&(j.__v_emitter=R.__v_emitter!=null?R.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Eo(j,n,Y),j}const Ft=e=>({[e]:W()});function _t(e,t){return e instanceof RegExp?e.test(t):e}function gr(e,t){return e instanceof RegExp?e.test(t):e}function xt(e,t,n,a,r){const{missing:s,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:n,key:t,type:r,groupId:`${r}:${t}`})}if(s!==null){const i=s(e,n,t,r);return w(i)?i:t}else return process.env.NODE_ENV!=="production"&&gr(a,t)&&o(Ce(ae.NOT_FOUND_KEY,{key:t,locale:n})),t}function Qe(e,t,n){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function pr(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Go(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let a=n+1;a<t.length;a++)if(pr(e,t[a]))return!0;return!1}const hr=typeof Intl<"u",Er={dateTimeFormat:hr&&typeof Intl.DateTimeFormat<"u",numberFormat:hr&&typeof Intl.NumberFormat<"u"};function br(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:r,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Er.dateTimeFormat)return s(Ce(ae.CANNOT_FORMAT_DATE)),mt;const[u,m,h,b]=Ut(...t),f=U(h.missingWarn)?h.missingWarn:e.missingWarn,I=U(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,C=!!h.part,S=Dt(e,h),T=o(e,r,S);if(!w(u)||u==="")return new Intl.DateTimeFormat(S,b).format(m);let d={},_,y=null,p=S,L=null;const k="datetime format";for(let F=0;F<T.length;F++){if(_=L=T[F],process.env.NODE_ENV!=="production"&&S!==_&&_t(I,u)&&s(Ce(ae.FALLBACK_TO_DATE_FORMAT,{key:u,target:_})),process.env.NODE_ENV!=="production"&&S!==_){const G=e.__v_emitter;G&&G.emit("fallback",{type:k,key:u,from:p,to:L,groupId:`${k}:${u}`})}if(d=n[_]||{},y=d[u],M(y))break;xt(e,u,_,f,k),p=L}if(!M(y)||!w(_))return a?dt:u;let E=`${_}__${u}`;it(b)||(E=`${E}__${JSON.stringify(b)}`);let R=i.get(E);return R||(R=new Intl.DateTimeFormat(_,Z({},y,b)),i.set(E,R)),C?R.formatToParts(m):R.format(m)}const vr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ut(...e){const[t,n,a,r]=e,s=W();let o=W(),i;if(w(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw pe(te.INVALID_ISO_DATE_ARGUMENT);const m=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();i=new Date(m);try{i.toISOString()}catch{throw pe(te.INVALID_ISO_DATE_ARGUMENT)}}else if(_s(t)){if(isNaN(t.getTime()))throw pe(te.INVALID_DATE_ARGUMENT);i=t}else if(X(t))i=t;else throw pe(te.INVALID_ARGUMENT);return w(n)?s.key=n:M(n)&&Object.keys(n).forEach(u=>{vr.includes(u)?o[u]=n[u]:s[u]=n[u]}),w(a)?s.locale=a:M(a)&&(o=a),M(r)&&(o=r),[s.key||"",i,s,o]}function Nr(e,t,n){const a=e;for(const r in n){const s=`${t}__${r}`;a.__datetimeFormatters.has(s)&&a.__datetimeFormatters.delete(s)}}function Lr(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:r,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!Er.numberFormat)return s(Ce(ae.CANNOT_FORMAT_NUMBER)),mt;const[u,m,h,b]=$t(...t),f=U(h.missingWarn)?h.missingWarn:e.missingWarn,I=U(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,C=!!h.part,S=Dt(e,h),T=o(e,r,S);if(!w(u)||u==="")return new Intl.NumberFormat(S,b).format(m);let d={},_,y=null,p=S,L=null;const k="number format";for(let F=0;F<T.length;F++){if(_=L=T[F],process.env.NODE_ENV!=="production"&&S!==_&&_t(I,u)&&s(Ce(ae.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:_})),process.env.NODE_ENV!=="production"&&S!==_){const G=e.__v_emitter;G&&G.emit("fallback",{type:k,key:u,from:p,to:L,groupId:`${k}:${u}`})}if(d=n[_]||{},y=d[u],M(y))break;xt(e,u,_,f,k),p=L}if(!M(y)||!w(_))return a?dt:u;let E=`${_}__${u}`;it(b)||(E=`${E}__${JSON.stringify(b)}`);let R=i.get(E);return R||(R=new Intl.NumberFormat(_,Z({},y,b)),i.set(E,R)),C?R.formatToParts(m):R.format(m)}const yr=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function $t(...e){const[t,n,a,r]=e,s=W();let o=W();if(!X(t))throw pe(te.INVALID_ARGUMENT);const i=t;return w(n)?s.key=n:M(n)&&Object.keys(n).forEach(u=>{yr.includes(u)?o[u]=n[u]:s[u]=n[u]}),w(a)?s.locale=a:M(a)&&(o=a),M(r)&&(o=r),[s.key||"",i,s,o]}function Tr(e,t,n){const a=e;for(const r in n){const s=`${t}__${r}`;a.__numberFormatters.has(s)&&a.__numberFormatters.delete(s)}}const qo=e=>e,Ko=e=>"",Yo="text",Xo=e=>e.length===0?"":kt(e),Qo=Es;function Or(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Jo(e){const t=X(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(X(e.named.count)||X(e.named.n))?X(e.named.count)?e.named.count:X(e.named.n)?e.named.n:t:t}function zo(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Zo(e={}){const t=e.locale,n=Jo(e),a=x(e.pluralRules)&&w(t)&&B(e.pluralRules[t])?e.pluralRules[t]:Or,r=x(e.pluralRules)&&w(t)&&B(e.pluralRules[t])?Or:void 0,s=d=>d[a(n,d.length,r)],o=e.list||[],i=d=>o[d],u=e.named||W();X(e.pluralIndex)&&zo(n,u);const m=d=>u[d];function h(d,_){const y=B(e.messages)?e.messages(d,!!_):x(e.messages)?e.messages[d]:!1;return y||(e.parent?e.parent.message(d):Ko)}const b=d=>e.modifiers?e.modifiers[d]:qo,f=M(e.processor)&&B(e.processor.normalize)?e.processor.normalize:Xo,I=M(e.processor)&&B(e.processor.interpolate)?e.processor.interpolate:Qo,C=M(e.processor)&&w(e.processor.type)?e.processor.type:Yo,T={list:i,named:m,plural:s,linked:(d,..._)=>{const[y,p]=_;let L="text",k="";_.length===1?x(y)?(k=y.modifier||k,L=y.type||L):w(y)&&(k=y||k):_.length===2&&(w(y)&&(k=y||k),w(p)&&(L=p||L));const E=h(d,!0)(T),R=L==="vnode"&&K(E)&&k?E[0]:E;return k?b(k)(R,L):R},message:h,type:C,interpolate:I,normalize:f,values:Z(W(),o,u)};return T}const Ir=()=>"",ie=e=>B(e);function kr(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:r,messageCompiler:s,fallbackLocale:o,messages:i}=e,[u,m]=Vt(...t),h=U(m.missingWarn)?m.missingWarn:e.missingWarn,b=U(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,f=U(m.escapeParameter)?m.escapeParameter:e.escapeParameter,I=!!m.resolvedMessage,C=w(m.default)||U(m.default)?U(m.default)?s?u:()=>u:m.default:n?s?u:()=>u:null,S=n||C!=null&&(w(C)||B(C)),T=Dt(e,m);f&&ei(m);let[d,_,y]=I?[u,T,i[T]||W()]:Sr(e,u,T,o,b,h),p=d,L=u;if(!I&&!(w(p)||Le(p)||ie(p))&&S&&(p=C,L=p),!I&&(!(w(p)||Le(p)||ie(p))||!w(_)))return r?dt:u;if(process.env.NODE_ENV!=="production"&&w(p)&&e.messageCompiler==null)return be(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`),u;let k=!1;const E=()=>{k=!0},R=ie(p)?p:Cr(e,u,_,p,L,E);if(k)return p;const F=ai(e,_,y,m),G=Zo(F),Y=ti(e,R,G),j=a?a(Y,u):Y;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const le={timestamp:Date.now(),key:w(u)?u:ie(p)?p.key:"",locale:_||(ie(p)?p.locale:""),format:w(p)?p:ie(p)?p.source:"",message:j};le.meta=Z({},e.__meta,Bo()||{}),bo(le)}return j}function ei(e){K(e.list)?e.list=e.list.map(t=>w(t)?Yn(t):t):x(e.named)&&Object.keys(e.named).forEach(t=>{w(e.named[t])&&(e.named[t]=Yn(e.named[t]))})}function Sr(e,t,n,a,r,s){const{messages:o,onWarn:i,messageResolver:u,localeFallbacker:m}=e,h=m(e,a,n);let b=W(),f,I=null,C=n,S=null;const T="translate";for(let d=0;d<h.length;d++){if(f=S=h[d],process.env.NODE_ENV!=="production"&&n!==f&&!pr(n,f)&&_t(r,t)&&i(Ce(ae.FALLBACK_TO_TRANSLATE,{key:t,target:f})),process.env.NODE_ENV!=="production"&&n!==f){const L=e.__v_emitter;L&&L.emit("fallback",{type:T,key:t,from:C,to:S,groupId:`${T}:${t}`})}b=o[f]||W();let _=null,y,p;if(process.env.NODE_ENV!=="production"&&ce&&(_=window.performance.now(),y="intlify-message-resolve-start",p="intlify-message-resolve-end",se&&se(y)),(I=u(b,t))===null&&(I=b[t]),process.env.NODE_ENV!=="production"&&ce){const L=window.performance.now(),k=e.__v_emitter;k&&_&&I&&k.emit("message-resolve",{type:"message-resolve",key:t,message:I,time:L-_,groupId:`${T}:${t}`}),y&&p&&se&&ke&&(se(p),ke("intlify message resolve",y,p))}if(w(I)||Le(I)||ie(I))break;if(!Go(f,h)){const L=xt(e,t,f,s,T);L!==t&&(I=L)}C=S}return[I,f,b]}function Cr(e,t,n,a,r,s){const{messageCompiler:o,warnHtmlMessage:i}=e;if(ie(a)){const f=a;return f.locale=f.locale||n,f.key=f.key||t,f}if(o==null){const f=()=>a;return f.locale=n,f.key=t,f}let u=null,m,h;process.env.NODE_ENV!=="production"&&ce&&(u=window.performance.now(),m="intlify-message-compilation-start",h="intlify-message-compilation-end",se&&se(m));const b=o(a,ni(e,n,r,a,i,s));if(process.env.NODE_ENV!=="production"&&ce){const f=window.performance.now(),I=e.__v_emitter;I&&u&&I.emit("message-compilation",{type:"message-compilation",message:a,time:f-u,groupId:`translate:${t}`}),m&&h&&se&&ke&&(se(h),ke("intlify message compilation",m,h))}return b.locale=n,b.key=t,b.source=a,b}function ti(e,t,n){let a=null,r,s;process.env.NODE_ENV!=="production"&&ce&&(a=window.performance.now(),r="intlify-message-evaluation-start",s="intlify-message-evaluation-end",se&&se(r));const o=t(n);if(process.env.NODE_ENV!=="production"&&ce){const i=window.performance.now(),u=e.__v_emitter;u&&a&&u.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-a,groupId:`translate:${t.key}`}),r&&s&&se&&ke&&(se(s),ke("intlify message evaluation",r,s))}return o}function Vt(...e){const[t,n,a]=e,r=W();if(!w(t)&&!X(t)&&!ie(t)&&!Le(t))throw pe(te.INVALID_ARGUMENT);const s=X(t)?String(t):(ie(t),t);return X(n)?r.plural=n:w(n)?r.default=n:M(n)&&!it(n)?r.named=n:K(n)&&(r.list=n),X(a)?r.plural=a:w(a)?r.default=a:M(a)&&Z(r,a),[s,r]}function ni(e,t,n,a,r,s){return{locale:t,key:n,warnHtmlMessage:r,onError:o=>{if(s&&s(o),process.env.NODE_ENV!=="production"){const i=ri(a),u=`Message compilation error: ${o.message}`,m=o.location&&i&&bs(i,o.location.start.offset,o.location.end.offset),h=e.__v_emitter;h&&i&&h.emit("compile-error",{message:i,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`}),console.error(m?`${u}
17
- ${m}`:u)}else throw o},onCacheKey:o=>ds(t,n,o)}}function ri(e){if(w(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function ai(e,t,n,a){const{modifiers:r,pluralRules:s,messageResolver:o,fallbackLocale:i,fallbackWarn:u,missingWarn:m,fallbackContext:h}=e,f={locale:t,modifiers:r,pluralRules:s,messages:(I,C)=>{let S=o(n,I);if(S==null&&(h||C)){const[,,T]=Sr(h||e,I,t,i,u,m);S=o(T,I)}if(w(S)||Le(S)){let T=!1;const _=Cr(e,I,t,S,I,()=>{T=!0});return T?Ir:_}else return ie(S)?S:Ir}};return e.processor&&(f.processor=e.processor),a.list&&(f.list=a.list),a.named&&(f.named=a.named),X(a.plural)&&(f.pluralIndex=a.plural),f}Xs();function si(){return wr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function wr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const oi=typeof Proxy=="function",ii="devtools-plugin:setup",li="plugin:settings:set";let Be,Wt;function ci(){var e;return Be!==void 0||(typeof window<"u"&&window.performance?(Be=!0,Wt=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Be=!0,Wt=globalThis.perf_hooks.performance):Be=!1),Be}function ui(){return ci()?Wt.now():Date.now()}class fi{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const a={};if(t.settings)for(const o in t.settings){const i=t.settings[o];a[o]=i.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},a);try{const o=localStorage.getItem(r),i=JSON.parse(o);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(o){try{localStorage.setItem(r,JSON.stringify(o))}catch{}s=o},now(){return ui()}},n&&n.on(li,(o,i)=>{o===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(o,i)=>this.target?this.target.on[i]:(...u)=>{this.onQueue.push({method:i,args:u})}}),this.proxiedTarget=new Proxy({},{get:(o,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...u)=>(this.targetQueue.push({method:i,args:u,resolve:()=>{}}),this.fallbacks[i](...u)):(...u)=>new Promise(m=>{this.targetQueue.push({method:i,args:u,resolve:m})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function di(e,t){const n=e,a=wr(),r=si(),s=oi&&n.enableEarlyProxy;if(r&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))r.emit(ii,e,t);else{const o=s?new fi(n,r):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
16
+ */function Yd(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(zt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Go(e){return n=>Xd(n,e)}function Xd(e,t){const n=Zd(t);if(n==null)throw Cn(0);if(Yo(n)===1){const r=tf(n);return e.plural(r.reduce((i,s)=>[...i,Nr(e,s)],[]))}else return Nr(e,n)}const Jd=["b","body"];function Zd(e){return Vt(e,Jd)}const ef=["c","cases"];function tf(e){return Vt(e,ef,[])}function Nr(e,t){const n=of(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const l=af(t).reduce((a,r)=>[...a,Qo(e,r)],[]);return e.normalize(l)}}const nf=["s","static"];function of(e){return Vt(e,nf)}const lf=["i","items"];function af(e){return Vt(e,lf,[])}function Qo(e,t){const n=Yo(t);switch(n){case 3:return no(t,n);case 9:return no(t,n);case 4:{const l=t;if(gt(l,"k")&&l.k)return e.interpolate(e.named(l.k));if(gt(l,"key")&&l.key)return e.interpolate(e.named(l.key));throw Cn(n)}case 5:{const l=t;if(gt(l,"i")&&Ne(l.i))return e.interpolate(e.list(l.i));if(gt(l,"index")&&Ne(l.index))return e.interpolate(e.list(l.index));throw Cn(n)}case 6:{const l=t,a=cf(l),r=ff(l);return e.linked(Qo(e,r),a?Qo(e,a):void 0,e.type)}case 7:return no(t,n);case 8:return no(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const rf=["t","type"];function Yo(e){return Vt(e,rf)}const sf=["v","value"];function no(e,t){const n=Vt(e,sf);if(n)return n;throw Cn(t)}const uf=["m","modifier"];function cf(e){return Vt(e,uf)}const df=["k","key"];function ff(e){const t=Vt(e,df);if(t)return t;throw Cn(6)}function Vt(e,t,n){for(let l=0;l<t.length;l++){const a=t[l];if(gt(e,a)&&e[a]!=null)return e[a]}return n}function Cn(e){return new Error(`unhandled node type: ${e}`)}const mf="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function hf(e,t){t&&Td(e)&&It(Jn(mf,{source:e}))}const gf=e=>e;let oo=_e();function Rt(e){return he(e)&&Yo(e)===0&&(gt(e,"b")||gt(e,"body"))}function pf(e,t={}){let n=!1;const l=t.onError||Cd;return t.onError=a=>{n=!0,l(a)},{...Qd(e,t),detectError:n}}function bf(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&H(e)){const n=ge(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&hf(e,n);const a=(t.onCacheKey||gf)(e),r=oo[a];if(r)return r;const{ast:i,detectError:s}=pf(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=Go(i);return s?u:oo[a]=u}else{if(process.env.NODE_ENV!=="production"&&!Rt(e))return It(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const l=oo[n];return l||(oo[n]=Go(e))}else return Go(e)}}let En=null;function _f(e){En=e}function vf(e,t,n){En&&En.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const yf=Sf("function:translate");function Sf(e){return t=>En&&En.emit(e,t)}const Ke={INVALID_ARGUMENT:kd,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},kf=24;function Et(e){return nn(e,null,process.env.NODE_ENV!=="production"?{messages:wf}:void 0)}const wf={[Ke.INVALID_ARGUMENT]:"Invalid arguments",[Ke.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Ke.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Ke.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Ke.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Ke.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Ke.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Xo(e,t){return t.locale!=null?Lr(t.locale):Lr(e.locale)}let Jo;function Lr(e){if(H(e))return e;if(ye(e)){if(e.resolvedOnce&&Jo!=null)return Jo;if(e.constructor.name==="Function"){const t=e();if(_d(t))throw Et(Ke.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Jo=t}else throw Et(Ke.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Et(Ke.NOT_SUPPORT_LOCALE_TYPE)}function Cf(e,t,n){return[...new Set([n,...Te(t)?t:he(t)?Object.keys(t):H(t)?[t]:[n]])]}function Or(e,t,n){const l=H(n)?n:Tn,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let r=a.__localeChainCache.get(l);if(!r){r=[];let i=[n];for(;Te(i);)i=Ir(r,i,t);const s=Te(t)||!ie(t)?t:t.default?t.default:null;i=H(s)?[s]:s,Te(i)&&Ir(r,i,!1),a.__localeChainCache.set(l,r)}return r}function Ir(e,t,n){let l=!0;for(let a=0;a<t.length&&ge(l);a++){const r=t[a];H(r)&&(l=Ef(e,t[a],n))}return l}function Ef(e,t,n){let l;const a=t.split("-");do{const r=a.join("-");l=Tf(e,r,n),a.splice(-1,1)}while(a.length&&l===!0);return l}function Tf(e,t,n){let l=!1;if(!e.includes(t)&&(l=!0,t)){l=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(Te(n)||ie(n))&&n[a]&&(l=n[a])}return l}const At=[];At[0]={w:[0],i:[3,0],"[":[4],o:[7]},At[1]={w:[1],".":[2],"[":[4],o:[7]},At[2]={w:[2],i:[3,0],0:[3,0]},At[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},At[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},At[5]={"'":[4,0],o:8,l:[5,0]},At[6]={'"':[4,0],o:8,l:[6,0]};const xf=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Nf(e){return xf.test(e)}function Lf(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Of(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function If(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Nf(t)?Lf(t):"*"+t}function Pf(e){const t=[];let n=-1,l=0,a=0,r,i,s,u,m,d,c;const f=[];f[0]=()=>{i===void 0?i=s:i+=s},f[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},f[2]=()=>{f[0](),a++},f[3]=()=>{if(a>0)a--,l=4,f[0]();else{if(a=0,i===void 0||(i=If(i),i===!1))return!1;f[1]()}};function h(){const S=e[n+1];if(l===5&&S==="'"||l===6&&S==='"')return n++,s="\\"+S,f[0](),!0}for(;l!==null;)if(n++,r=e[n],!(r==="\\"&&h())){if(u=Of(r),c=At[l],m=c[u]||c.l||8,m===8||(l=m[0],m[1]!==void 0&&(d=f[m[1]],d&&(s=r,d()===!1))))return;if(l===7)return t}}const Pr=new Map;function Vf(e,t){return he(e)?e[t]:null}function Rf(e,t){if(!he(e))return null;let n=Pr.get(t);if(n||(n=Pf(t),n&&Pr.set(t,n)),!n)return null;const l=n.length;let a=e,r=0;for(;r<l;){const i=a[n[r]];if(i===void 0||ye(a))return null;a=i,r++}return a}const Ze={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},Af=8,Mf={[Ze.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Ze.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Ze.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Ze.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Ze.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Ze.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Ze.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function jt(e,...t){return Jn(Mf[e],...t)}const Df="10.0.5",lo=-1,Tn="en-US",ao="",Vr=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Bf(){return{upper:(e,t)=>t==="text"&&H(e)?e.toUpperCase():t==="vnode"&&he(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&H(e)?e.toLowerCase():t==="vnode"&&he(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&H(e)?Vr(e):t==="vnode"&&he(e)&&"__v_isVNode"in e?Vr(e.children):e}}let Rr;function qf(e){Rr=e}let Ar;function Ff(e){Ar=e}let Mr;function $f(e){Mr=e}let Dr=null;const Uf=e=>{Dr=e},Hf=()=>Dr;let Br=null;const qr=e=>{Br=e},zf=()=>Br;let Fr=0;function jf(e={}){const t=ye(e.onWarn)?e.onWarn:It,n=H(e.version)?e.version:Df,l=H(e.locale)||ye(e.locale)?e.locale:Tn,a=ye(l)?Tn:l,r=Te(e.fallbackLocale)||ie(e.fallbackLocale)||H(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=ie(e.messages)?e.messages:Zo(a),s=ie(e.datetimeFormats)?e.datetimeFormats:Zo(a),u=ie(e.numberFormats)?e.numberFormats:Zo(a),m=De(_e(),e.modifiers,Bf()),d=e.pluralRules||_e(),c=ye(e.missing)?e.missing:null,f=ge(e.missingWarn)||tn(e.missingWarn)?e.missingWarn:!0,h=ge(e.fallbackWarn)||tn(e.fallbackWarn)?e.fallbackWarn:!0,S=!!e.fallbackFormat,E=!!e.unresolving,b=ye(e.postTranslation)?e.postTranslation:null,p=ie(e.processor)?e.processor:null,_=ge(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,y=ye(e.messageCompiler)?e.messageCompiler:Rr;process.env.NODE_ENV!=="production"&&ye(e.messageCompiler)&&Cr(jt(Ze.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const x=ye(e.messageResolver)?e.messageResolver:Ar||Vf,O=ye(e.localeFallbacker)?e.localeFallbacker:Mr||Cf,C=he(e.fallbackContext)?e.fallbackContext:void 0,D=e,I=he(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,V=he(D.__numberFormatters)?D.__numberFormatters:new Map,B=he(D.__meta)?D.__meta:{};Fr++;const N={version:n,cid:Fr,locale:l,fallbackLocale:r,messages:i,modifiers:m,pluralRules:d,missing:c,missingWarn:f,fallbackWarn:h,fallbackFormat:S,unresolving:E,postTranslation:b,processor:p,warnHtmlMessage:_,escapeParameter:w,messageCompiler:y,messageResolver:x,localeFallbacker:O,fallbackContext:C,onWarn:t,__meta:B};return N.datetimeFormats=s,N.numberFormats=u,N.__datetimeFormatters=I,N.__numberFormatters=V,process.env.NODE_ENV!=="production"&&(N.__v_emitter=D.__v_emitter!=null?D.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&vf(N,n,B),N}const Zo=e=>({[e]:_e()});function ro(e,t){return e instanceof RegExp?e.test(t):e}function $r(e,t){return e instanceof RegExp?e.test(t):e}function el(e,t,n,l,a){const{missing:r,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(r!==null){const s=r(e,n,t,a);return H(s)?s:t}else return process.env.NODE_ENV!=="production"&&$r(l,t)&&i(jt(Ze.NOT_FOUND_KEY,{key:t,locale:n})),t}function xn(e,t,n){const l=e;l.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ur(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Wf(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let l=n+1;l<t.length;l++)if(Ur(e,t[l]))return!0;return!1}const Hr=typeof Intl<"u",zr={dateTimeFormat:Hr&&typeof Intl.DateTimeFormat<"u",numberFormat:Hr&&typeof Intl.NumberFormat<"u"};function jr(e,...t){const{datetimeFormats:n,unresolving:l,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!zr.dateTimeFormat)return r(jt(Ze.CANNOT_FORMAT_DATE)),ao;const[u,m,d,c]=tl(...t),f=ge(d.missingWarn)?d.missingWarn:e.missingWarn,h=ge(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,S=!!d.part,E=Xo(e,d),b=i(e,a,E);if(!H(u)||u==="")return new Intl.DateTimeFormat(E,c).format(m);let p={},_,w=null,y=E,x=null;const O="datetime format";for(let I=0;I<b.length;I++){if(_=x=b[I],process.env.NODE_ENV!=="production"&&E!==_&&ro(h,u)&&r(jt(Ze.FALLBACK_TO_DATE_FORMAT,{key:u,target:_})),process.env.NODE_ENV!=="production"&&E!==_){const V=e.__v_emitter;V&&V.emit("fallback",{type:O,key:u,from:y,to:x,groupId:`${O}:${u}`})}if(p=n[_]||{},w=p[u],ie(w))break;el(e,u,_,f,O),y=x}if(!ie(w)||!H(_))return l?lo:u;let C=`${_}__${u}`;Zn(c)||(C=`${C}__${JSON.stringify(c)}`);let D=s.get(C);return D||(D=new Intl.DateTimeFormat(_,De({},w,c)),s.set(C,D)),S?D.formatToParts(m):D.format(m)}const Wr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function tl(...e){const[t,n,l,a]=e,r=_e();let i=_e(),s;if(H(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Et(Ke.INVALID_ISO_DATE_ARGUMENT);const m=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();s=new Date(m);try{s.toISOString()}catch{throw Et(Ke.INVALID_ISO_DATE_ARGUMENT)}}else if(gd(t)){if(isNaN(t.getTime()))throw Et(Ke.INVALID_DATE_ARGUMENT);s=t}else if(Ne(t))s=t;else throw Et(Ke.INVALID_ARGUMENT);return H(n)?r.key=n:ie(n)&&Object.keys(n).forEach(u=>{Wr.includes(u)?i[u]=n[u]:r[u]=n[u]}),H(l)?r.locale=l:ie(l)&&(i=l),ie(a)&&(i=a),[r.key||"",s,r,i]}function Kr(e,t,n){const l=e;for(const a in n){const r=`${t}__${a}`;l.__datetimeFormatters.has(r)&&l.__datetimeFormatters.delete(r)}}function Gr(e,...t){const{numberFormats:n,unresolving:l,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!zr.numberFormat)return r(jt(Ze.CANNOT_FORMAT_NUMBER)),ao;const[u,m,d,c]=nl(...t),f=ge(d.missingWarn)?d.missingWarn:e.missingWarn,h=ge(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,S=!!d.part,E=Xo(e,d),b=i(e,a,E);if(!H(u)||u==="")return new Intl.NumberFormat(E,c).format(m);let p={},_,w=null,y=E,x=null;const O="number format";for(let I=0;I<b.length;I++){if(_=x=b[I],process.env.NODE_ENV!=="production"&&E!==_&&ro(h,u)&&r(jt(Ze.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:_})),process.env.NODE_ENV!=="production"&&E!==_){const V=e.__v_emitter;V&&V.emit("fallback",{type:O,key:u,from:y,to:x,groupId:`${O}:${u}`})}if(p=n[_]||{},w=p[u],ie(w))break;el(e,u,_,f,O),y=x}if(!ie(w)||!H(_))return l?lo:u;let C=`${_}__${u}`;Zn(c)||(C=`${C}__${JSON.stringify(c)}`);let D=s.get(C);return D||(D=new Intl.NumberFormat(_,De({},w,c)),s.set(C,D)),S?D.formatToParts(m):D.format(m)}const Qr=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function nl(...e){const[t,n,l,a]=e,r=_e();let i=_e();if(!Ne(t))throw Et(Ke.INVALID_ARGUMENT);const s=t;return H(n)?r.key=n:ie(n)&&Object.keys(n).forEach(u=>{Qr.includes(u)?i[u]=n[u]:r[u]=n[u]}),H(l)?r.locale=l:ie(l)&&(i=l),ie(a)&&(i=a),[r.key||"",s,r,i]}function Yr(e,t,n){const l=e;for(const a in n){const r=`${t}__${a}`;l.__numberFormatters.has(r)&&l.__numberFormatters.delete(r)}}const Kf=e=>e,Gf=e=>"",Qf="text",Yf=e=>e.length===0?"":zo(e),Xf=vd;function Xr(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Jf(e){const t=Ne(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ne(e.named.count)||Ne(e.named.n))?Ne(e.named.count)?e.named.count:Ne(e.named.n)?e.named.n:t:t}function Zf(e,t){t.count||(t.count=e),t.n||(t.n=e)}function em(e={}){const t=e.locale,n=Jf(e),l=he(e.pluralRules)&&H(t)&&ye(e.pluralRules[t])?e.pluralRules[t]:Xr,a=he(e.pluralRules)&&H(t)&&ye(e.pluralRules[t])?Xr:void 0,r=p=>p[l(n,p.length,a)],i=e.list||[],s=p=>i[p],u=e.named||_e();Ne(e.pluralIndex)&&Zf(n,u);const m=p=>u[p];function d(p,_){const w=ye(e.messages)?e.messages(p,!!_):he(e.messages)?e.messages[p]:!1;return w||(e.parent?e.parent.message(p):Gf)}const c=p=>e.modifiers?e.modifiers[p]:Kf,f=ie(e.processor)&&ye(e.processor.normalize)?e.processor.normalize:Yf,h=ie(e.processor)&&ye(e.processor.interpolate)?e.processor.interpolate:Xf,S=ie(e.processor)&&H(e.processor.type)?e.processor.type:Qf,b={list:s,named:m,plural:r,linked:(p,..._)=>{const[w,y]=_;let x="text",O="";_.length===1?he(w)?(O=w.modifier||O,x=w.type||x):H(w)&&(O=w||O):_.length===2&&(H(w)&&(O=w||O),H(y)&&(x=y||x));const C=d(p,!0)(b),D=x==="vnode"&&Te(C)&&O?C[0]:C;return O?c(O)(D,x):D},message:d,type:S,interpolate:h,normalize:f,values:De(_e(),i,u)};return b}const Jr=()=>"",it=e=>ye(e);function Zr(e,...t){const{fallbackFormat:n,postTranslation:l,unresolving:a,messageCompiler:r,fallbackLocale:i,messages:s}=e,[u,m]=ol(...t),d=ge(m.missingWarn)?m.missingWarn:e.missingWarn,c=ge(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,f=ge(m.escapeParameter)?m.escapeParameter:e.escapeParameter,h=!!m.resolvedMessage,S=H(m.default)||ge(m.default)?ge(m.default)?r?u:()=>u:m.default:n?r?u:()=>u:null,E=n||S!=null&&(H(S)||ye(S)),b=Xo(e,m);f&&tm(m);let[p,_,w]=h?[u,b,s[b]||_e()]:ei(e,u,b,i,c,d),y=p,x=u;if(!h&&!(H(y)||Rt(y)||it(y))&&E&&(y=S,x=y),!h&&(!(H(y)||Rt(y)||it(y))||!H(_)))return a?lo:u;if(process.env.NODE_ENV!=="production"&&H(y)&&e.messageCompiler==null)return It(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`),u;let O=!1;const C=()=>{O=!0},D=it(y)?y:ti(e,u,_,y,x,C);if(O)return y;const I=am(e,_,w,m),V=em(I),B=nm(e,D,V),N=l?l(B,u):B;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const W={timestamp:Date.now(),key:H(u)?u:it(y)?y.key:"",locale:_||(it(y)?y.locale:""),format:H(y)?y:it(y)?y.source:"",message:N};W.meta=De({},e.__meta,Hf()||{}),yf(W)}return N}function tm(e){Te(e.list)?e.list=e.list.map(t=>H(t)?yr(t):t):he(e.named)&&Object.keys(e.named).forEach(t=>{H(e.named[t])&&(e.named[t]=yr(e.named[t]))})}function ei(e,t,n,l,a,r){const{messages:i,onWarn:s,messageResolver:u,localeFallbacker:m}=e,d=m(e,l,n);let c=_e(),f,h=null,S=n,E=null;const b="translate";for(let p=0;p<d.length;p++){if(f=E=d[p],process.env.NODE_ENV!=="production"&&n!==f&&!Ur(n,f)&&ro(a,t)&&s(jt(Ze.FALLBACK_TO_TRANSLATE,{key:t,target:f})),process.env.NODE_ENV!=="production"&&n!==f){const x=e.__v_emitter;x&&x.emit("fallback",{type:b,key:t,from:S,to:E,groupId:`${b}:${t}`})}c=i[f]||_e();let _=null,w,y;if(process.env.NODE_ENV!=="production"&&ht&&(_=window.performance.now(),w="intlify-message-resolve-start",y="intlify-message-resolve-end",nt&&nt(w)),(h=u(c,t))===null&&(h=c[t]),process.env.NODE_ENV!=="production"&&ht){const x=window.performance.now(),O=e.__v_emitter;O&&_&&h&&O.emit("message-resolve",{type:"message-resolve",key:t,message:h,time:x-_,groupId:`${b}:${t}`}),w&&y&&nt&&Ht&&(nt(y),Ht("intlify message resolve",w,y))}if(H(h)||Rt(h)||it(h))break;if(!Wf(f,d)){const x=el(e,t,f,r,b);x!==t&&(h=x)}S=E}return[h,f,c]}function ti(e,t,n,l,a,r){const{messageCompiler:i,warnHtmlMessage:s}=e;if(it(l)){const f=l;return f.locale=f.locale||n,f.key=f.key||t,f}if(i==null){const f=()=>l;return f.locale=n,f.key=t,f}let u=null,m,d;process.env.NODE_ENV!=="production"&&ht&&(u=window.performance.now(),m="intlify-message-compilation-start",d="intlify-message-compilation-end",nt&&nt(m));const c=i(l,om(e,n,a,l,s,r));if(process.env.NODE_ENV!=="production"&&ht){const f=window.performance.now(),h=e.__v_emitter;h&&u&&h.emit("message-compilation",{type:"message-compilation",message:l,time:f-u,groupId:`translate:${t}`}),m&&d&&nt&&Ht&&(nt(d),Ht("intlify message compilation",m,d))}return c.locale=n,c.key=t,c.source=l,c}function nm(e,t,n){let l=null,a,r;process.env.NODE_ENV!=="production"&&ht&&(l=window.performance.now(),a="intlify-message-evaluation-start",r="intlify-message-evaluation-end",nt&&nt(a));const i=t(n);if(process.env.NODE_ENV!=="production"&&ht){const s=window.performance.now(),u=e.__v_emitter;u&&l&&u.emit("message-evaluation",{type:"message-evaluation",value:i,time:s-l,groupId:`translate:${t.key}`}),a&&r&&nt&&Ht&&(nt(r),Ht("intlify message evaluation",a,r))}return i}function ol(...e){const[t,n,l]=e,a=_e();if(!H(t)&&!Ne(t)&&!it(t)&&!Rt(t))throw Et(Ke.INVALID_ARGUMENT);const r=Ne(t)?String(t):(it(t),t);return Ne(n)?a.plural=n:H(n)?a.default=n:ie(n)&&!Zn(n)?a.named=n:Te(n)&&(a.list=n),Ne(l)?a.plural=l:H(l)?a.default=l:ie(l)&&De(a,l),[r,a]}function om(e,t,n,l,a,r){return{locale:t,key:n,warnHtmlMessage:a,onError:i=>{if(r&&r(i),process.env.NODE_ENV!=="production"){const s=lm(l),u=`Message compilation error: ${i.message}`,m=i.location&&s&&yd(s,i.location.start.offset,i.location.end.offset),d=e.__v_emitter;d&&s&&d.emit("compile-error",{message:s,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`}),console.error(m?`${u}
17
+ ${m}`:u)}else throw i},onCacheKey:i=>md(t,n,i)}}function lm(e){if(H(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function am(e,t,n,l){const{modifiers:a,pluralRules:r,messageResolver:i,fallbackLocale:s,fallbackWarn:u,missingWarn:m,fallbackContext:d}=e,f={locale:t,modifiers:a,pluralRules:r,messages:(h,S)=>{let E=i(n,h);if(E==null&&(d||S)){const[,,b]=ei(d||e,h,t,s,u,m);E=i(b,h)}if(H(E)||Rt(E)){let b=!1;const _=ti(e,h,t,E,h,()=>{b=!0});return b?Jr:_}else return it(E)?E:Jr}};return e.processor&&(f.processor=e.processor),l.list&&(f.list=l.list),l.named&&(f.named=l.named),Ne(l.plural)&&(f.pluralIndex=l.plural),f}Yd();function rm(){return ni().__VUE_DEVTOOLS_GLOBAL_HOOK__}function ni(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const im=typeof Proxy=="function",sm="devtools-plugin:setup",um="plugin:settings:set";let an,ll;function cm(){var e;return an!==void 0||(typeof window<"u"&&window.performance?(an=!0,ll=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(an=!0,ll=globalThis.perf_hooks.performance):an=!1),an}function dm(){return cm()?ll.now():Date.now()}class fm{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const l={};if(t.settings)for(const i in t.settings){const s=t.settings[i];l[i]=s.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},l);try{const i=localStorage.getItem(a),s=JSON.parse(i);Object.assign(r,s)}catch{}this.fallbacks={getSettings(){return r},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}r=i},now(){return dm()}},n&&n.on(um,(i,s)=>{i===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(i,s)=>this.target?this.target.on[s]:(...u)=>{this.onQueue.push({method:s,args:u})}}),this.proxiedTarget=new Proxy({},{get:(i,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...u)=>(this.targetQueue.push({method:s,args:u,resolve:()=>{}}),this.fallbacks[s](...u)):(...u)=>new Promise(m=>{this.targetQueue.push({method:s,args:u,resolve:m})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function mm(e,t){const n=e,l=ni(),a=rm(),r=im&&n.enableEarlyProxy;if(a&&(l.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))a.emit(sm,e,t);else{const i=r?new fm(n,a):null;(l.__VUE_DEVTOOLS_PLUGINS__=l.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
18
18
  * vue-i18n v10.0.5
19
19
  * (c) 2024 kazuya kawaguchi
20
20
  * Released under the MIT License.
21
- */const mi="10.0.5";function _i(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Se().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Se().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Se().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Se().__INTLIFY_PROD_DEVTOOLS__=!1)}const Te={FALLBACK_TO_ROOT:Do,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_TC:11},gi={[Te.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Te.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Te.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Te.DEPRECATE_TC]:"'tc' and '$tc' has been deprecated in v10. Use 't' or '$t' instead. 'tc' and '$tc’ are going to remove in v11."};function gt(e,...t){return ot(gi[e],...t)}const H={UNEXPECTED_RETURN_TYPE:No,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function re(e,...t){return $e(e,null,process.env.NODE_ENV!=="production"?{messages:pi,args:t}:void 0)}const pi={[H.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[H.INVALID_ARGUMENT]:"Invalid argument",[H.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[H.NOT_INSTALLED]:"Need to install with `app.use` function",[H.UNEXPECTED_ERROR]:"Unexpected error",[H.REQUIRED_VALUE]:"Required in value: {0}",[H.INVALID_VALUE]:"Invalid value",[H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[H.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[H.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Bt=de("__translateVNode"),Ht=de("__datetimeParts"),jt=de("__numberParts"),we=de("__enableEmitter"),Je=de("__disableEmitter"),Ar=de("__setPluralRules"),Pr=de("__injectWithOption"),Gt=de("__dispose");function ze(e){if(!x(e))return e;for(const t in e)if(ue(e,t))if(!t.includes("."))x(e[t])&&ze(e[t]);else{const n=t.split("."),a=n.length-1;let r=e,s=!1;for(let o=0;o<a;o++){if(n[o]in r||(r[n[o]]=W()),!x(r[n[o]])){process.env.NODE_ENV!=="production"&&be(gt(Te.IGNORE_OBJ_FLATTEN,{key:n[o]})),s=!0;break}r=r[n[o]]}s||(r[n[a]]=e[t],delete e[t]),x(r[n[a]])&&ze(r[n[a]])}return e}function qt(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:s}=t,o=M(n)?n:K(a)?W():{[e]:W()};if(K(a)&&a.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:m}=i;u?(o[u]=o[u]||W(),ct(m,o[u])):ct(m,o)}else w(i)&&ct(JSON.parse(i),o)}),r==null&&s)for(const i in o)ue(o,i)&&ze(o[i]);return o}function Rr(e){return e.type}function Dr(e,t,n){let a=x(t.messages)?t.messages:W();"__i18nGlobal"in n&&(a=qt(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);r.length&&r.forEach(s=>{e.mergeLocaleMessage(s,a[s])});{if(x(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(x(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Mr(e){return v.createVNode(v.Text,null,e,0)}const Fr="__INTLIFY_META__",xr=()=>[],hi=()=>!1;let Ur=0;function $r(e){return(t,n,a,r)=>e(n,a,v.getCurrentInstance()||void 0,r)}const Ei=()=>{const e=v.getCurrentInstance();let t=null;return e&&(t=Rr(e)[Fr])?{[Fr]:t}:null};function Kt(e={}){const{__root:t,__injectWithOption:n}=e,a=t===void 0,r=e.flatJson,s=ce?v.ref:v.shallowRef;let o=U(e.inheritLocale)?e.inheritLocale:!0;const i=s(t&&o?t.locale.value:w(e.locale)?e.locale:Xe),u=s(t&&o?t.fallbackLocale.value:w(e.fallbackLocale)||K(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),m=s(qt(i.value,e)),h=s(M(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),b=s(M(e.numberFormats)?e.numberFormats:{[i.value]:{}});let f=t?t.missingWarn:U(e.missingWarn)||Ue(e.missingWarn)?e.missingWarn:!0,I=t?t.fallbackWarn:U(e.fallbackWarn)||Ue(e.fallbackWarn)?e.fallbackWarn:!0,C=t?t.fallbackRoot:U(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,T=B(e.missing)?e.missing:null,d=B(e.missing)?$r(e.missing):null,_=B(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter;const L=t?t.modifiers:M(e.modifiers)?e.modifiers:{};let k=e.pluralRules||t&&t.pluralRules,E;E=(()=>{a&&mr(null);const g={version:mi,locale:i.value,fallbackLocale:u.value,messages:m.value,modifiers:L,pluralRules:k,missing:d===null?void 0:d,missingWarn:f,fallbackWarn:I,fallbackFormat:S,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:y,escapeParameter:p,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};g.datetimeFormats=h.value,g.numberFormats=b.value,g.__datetimeFormatters=M(E)?E.__datetimeFormatters:void 0,g.__numberFormatters=M(E)?E.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(g.__v_emitter=M(E)?E.__v_emitter:void 0);const O=jo(g);return a&&mr(O),O})(),Qe(E,i.value,u.value);function F(){return[i.value,u.value,m.value,h.value,b.value]}const G=v.computed({get:()=>i.value,set:g=>{i.value=g,E.locale=i.value}}),Y=v.computed({get:()=>u.value,set:g=>{u.value=g,E.fallbackLocale=u.value,Qe(E,i.value,g)}}),j=v.computed(()=>m.value),le=v.computed(()=>h.value),P=v.computed(()=>b.value);function q(){return B(_)?_:null}function Oe(g){_=g,E.postTranslation=g}function tn(){return T}function nn(g){g!==null&&(d=$r(g)),T=g,E.missing=d}function rn(g,O){return g!=="translate"||!O.resolvedMessage}const he=(g,O,V,z,Pe,ht)=>{F();let He;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(E.fallbackContext=t?Ho():void 0),He=g(E)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(E.fallbackContext=void 0)}if(V!=="translate exists"&&X(He)&&He===dt||V==="translate exists"&&!He){const[Re,zi]=O();if(process.env.NODE_ENV!=="production"&&t&&w(Re)&&rn(V,zi)&&(C&&(_t(I,Re)||gr(f,Re))&&be(gt(Te.FALLBACK_TO_ROOT,{key:Re,type:V})),process.env.NODE_ENV!=="production")){const{__v_emitter:ea}=E;ea&&C&&ea.emit("fallback",{type:V,key:Re,to:"global",groupId:`${V}:${Re}`})}return t&&C?z(t):Pe(Re)}else{if(ht(He))return He;throw re(H.UNEXPECTED_RETURN_TYPE)}};function et(...g){return he(O=>Reflect.apply(kr,null,[O,...g]),()=>Vt(...g),"translate",O=>Reflect.apply(O.t,O,[...g]),O=>O,O=>w(O))}function an(...g){const[O,V,z]=g;if(z&&!x(z))throw re(H.INVALID_ARGUMENT);return et(O,V,Z({resolvedMessage:!0},z||{}))}function sn(...g){return he(O=>Reflect.apply(br,null,[O,...g]),()=>Ut(...g),"datetime format",O=>Reflect.apply(O.d,O,[...g]),()=>mt,O=>w(O))}function on(...g){return he(O=>Reflect.apply(Lr,null,[O,...g]),()=>$t(...g),"number format",O=>Reflect.apply(O.n,O,[...g]),()=>mt,O=>w(O))}function ln(g){return g.map(O=>w(O)||X(O)||U(O)?Mr(String(O)):O)}const cn={normalize:ln,interpolate:g=>g,type:"vnode"};function pt(...g){return he(O=>{let V;const z=O;try{z.processor=cn,V=Reflect.apply(kr,null,[z,...g])}finally{z.processor=null}return V},()=>Vt(...g),"translate",O=>O[Bt](...g),O=>[Mr(O)],O=>K(O))}function un(...g){return he(O=>Reflect.apply(Lr,null,[O,...g]),()=>$t(...g),"number format",O=>O[jt](...g),xr,O=>w(O)||K(O))}function fn(...g){return he(O=>Reflect.apply(br,null,[O,...g]),()=>Ut(...g),"datetime format",O=>O[Ht](...g),xr,O=>w(O)||K(O))}function dn(g){k=g,E.pluralRules=k}function mn(g,O){return he(()=>{if(!g)return!1;const V=w(O)?O:i.value,z=Ae(V),Pe=E.messageResolver(z,g);return Le(Pe)||ie(Pe)||w(Pe)},()=>[g],"translate exists",V=>Reflect.apply(V.te,V,[g,O]),hi,V=>U(V))}function tt(g){let O=null;const V=ar(E,u.value,i.value);for(let z=0;z<V.length;z++){const Pe=m.value[V[z]]||{},ht=E.messageResolver(Pe,g);if(ht!=null){O=ht;break}}return O}function nt(g){const O=tt(g);return O??(t?t.tm(g)||{}:{})}function Ae(g){return m.value[g]||{}}function rt(g,O){if(r){const V={[g]:O};for(const z in V)ue(V,z)&&ze(V[z]);O=V[g]}m.value[g]=O,E.messages=m.value}function _n(g,O){m.value[g]=m.value[g]||{};const V={[g]:O};if(r)for(const z in V)ue(V,z)&&ze(V[z]);O=V[g],ct(O,m.value[g]),E.messages=m.value}function l(g){return h.value[g]||{}}function c(g,O){h.value[g]=O,E.datetimeFormats=h.value,Nr(E,g,O)}function N(g,O){h.value[g]=Z(h.value[g]||{},O),E.datetimeFormats=h.value,Nr(E,g,O)}function A(g){return b.value[g]||{}}function Q(g,O){b.value[g]=O,E.numberFormats=b.value,Tr(E,g,O)}function J(g,O){b.value[g]=Z(b.value[g]||{},O),E.numberFormats=b.value,Tr(E,g,O)}Ur++,t&&ce&&(v.watch(t.locale,g=>{o&&(i.value=g,E.locale=g,Qe(E,i.value,u.value))}),v.watch(t.fallbackLocale,g=>{o&&(u.value=g,E.fallbackLocale=g,Qe(E,i.value,u.value))}));const $={id:Ur,locale:G,fallbackLocale:Y,get inheritLocale(){return o},set inheritLocale(g){o=g,g&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,Qe(E,i.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:j,get modifiers(){return L},get pluralRules(){return k||{}},get isGlobal(){return a},get missingWarn(){return f},set missingWarn(g){f=g,E.missingWarn=f},get fallbackWarn(){return I},set fallbackWarn(g){I=g,E.fallbackWarn=I},get fallbackRoot(){return C},set fallbackRoot(g){C=g},get fallbackFormat(){return S},set fallbackFormat(g){S=g,E.fallbackFormat=S},get warnHtmlMessage(){return y},set warnHtmlMessage(g){y=g,E.warnHtmlMessage=g},get escapeParameter(){return p},set escapeParameter(g){p=g,E.escapeParameter=g},t:et,getLocaleMessage:Ae,setLocaleMessage:rt,mergeLocaleMessage:_n,getPostTranslationHandler:q,setPostTranslationHandler:Oe,getMissingHandler:tn,setMissingHandler:nn,[Ar]:dn};return $.datetimeFormats=le,$.numberFormats=P,$.rt=an,$.te=mn,$.tm=nt,$.d=sn,$.n=on,$.getDateTimeFormat=l,$.setDateTimeFormat=c,$.mergeDateTimeFormat=N,$.getNumberFormat=A,$.setNumberFormat=Q,$.mergeNumberFormat=J,$[Pr]=n,$[Bt]=pt,$[Ht]=fn,$[jt]=un,process.env.NODE_ENV!=="production"&&($[we]=g=>{E.__v_emitter=g},$[Je]=()=>{E.__v_emitter=void 0}),$}const Vr="vue-i18n: composer properties",Yt={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},bi={"vue-i18n-resource-inspector":"Search for scopes ..."},vi={"vue-i18n-timeline":16764185};let Xt;async function Ni(e,t){return new Promise((n,a)=>{try{di({id:"vue-devtools-plugin-vue-i18n",label:Yt["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Vr],app:e},r=>{Xt=r,r.on.visitComponentTree(({componentInstance:o,treeNode:i})=>{Li(o,i,t)}),r.on.inspectComponent(({componentInstance:o,instanceData:i})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&i&&(t.mode==="legacy"?o.vnode.el.__VUE_I18N__!==t.global.__composer&&Br(i,o.vnode.el.__VUE_I18N__):Br(i,o.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:Yt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:bi["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ki(o,t)});const s=new Map;r.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),Ci(o,t),o.nodeId==="global"){if(!s.has(o.app)){const[i]=await r.getComponentInstances(o.app);s.set(o.app,i)}r.highlightElement(s.get(o.app))}else{const i=Si(o.nodeId,t);i&&r.highlightElement(i)}}),r.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&Ai(o,t)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:Yt["vue-i18n-timeline"],color:vi["vue-i18n-timeline"]}),n(!0)})}catch(r){console.error(r),a(!1)}})}function Wr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Li(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const r={label:`i18n (${Wr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(r)}}function Br(e,t){const n=Vr;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Qt(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Qt(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];B(a)&&"source"in a?t[n]=Ii(a):Le(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:x(a)?t[n]=Qt(a):t[n]=a}),t}const yi={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Ti(e){return e.replace(/[<>"&]/g,Oi)}function Oi(e){return yi[e]||e}function Ii(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Ti(e.source)}")`:"(?)"}`}}}function ki(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,r]of t.__instances){const s=t.mode==="composition"?r:r.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${Wr(a)} Scope`})}}function Si(e,t){let n=null;if(e!=="global"){for(const[a,r]of t.__instances.entries())if(r.id.toString()===e){n=a;break}}return n}function Hr(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Ci(e,t){const n=Hr(e.nodeId,t);return n&&(e.state=wi(n)),null}function wi(e){const t={},n="Locale related info",a=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=a;const r="Locale messages info",s=[{type:r,key:"messages",editable:!1,value:Qt(e.messages.value)}];t[r]=s;{const o="Datetime formats info",i=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=i;const u="Datetime formats info",m=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=m}return t}function Ze(e,t){if(Xt){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Xt.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Ai(e,t){const n=Hr(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&w(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(w(e.state.value)||K(e.state.value)||x(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&U(e.state.value)&&(n.inheritLocale=e.state.value)}}function Pi(e){const t=w(e.locale)?e.locale:Xe,n=w(e.fallbackLocale)||K(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=B(e.missing)?e.missing:void 0,r=U(e.silentTranslationWarn)||Ue(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=U(e.silentFallbackWarn)||Ue(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=U(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=M(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,h=B(e.postTranslation)?e.postTranslation:void 0,b=w(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,I=U(e.sync)?e.sync:!0;let C=e.messages;if(M(e.sharedMessages)){const L=e.sharedMessages;C=Object.keys(L).reduce((E,R)=>{const F=E[R]||(E[R]={});return Z(F,L[R]),E},C||{})}const{__i18n:S,__root:T,__injectWithOption:d}=e,_=e.datetimeFormats,y=e.numberFormats,p=e.flatJson;return{locale:t,fallbackLocale:n,messages:C,flatJson:p,datetimeFormats:_,numberFormats:y,missing:a,missingWarn:r,fallbackWarn:s,fallbackRoot:o,fallbackFormat:i,modifiers:u,pluralRules:m,postTranslation:h,warnHtmlMessage:b,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:I,__i18n:S,__root:T,__injectWithOption:d}}function Jt(e={}){const t=Kt(Pi(e)),{__extender:n}=e,a={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(r){t.setMissingHandler(r)},get silentTranslationWarn(){return U(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=U(r)?!r:r},get silentFallbackWarn(){return U(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=U(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},tc(...r){const[s,o,i]=r,u={plural:1};let m=null,h=null;if(process.env.NODE_ENV!=="production"&&zn(gt(Te.DEPRECATE_TC)),!w(s))throw re(H.INVALID_ARGUMENT);const b=s;return w(o)?u.locale=o:X(o)?u.plural=o:K(o)?m=o:M(o)&&(h=o),w(i)?u.locale=i:K(i)?m=i:M(i)&&(h=i),Reflect.apply(t.t,t,[b,m||h||{},u])},te(r,s){return t.te(r,s)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,s){t.setLocaleMessage(r,s)},mergeLocaleMessage(r,s){t.mergeLocaleMessage(r,s)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,s){t.setDateTimeFormat(r,s)},mergeDateTimeFormat(r,s){t.mergeDateTimeFormat(r,s)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,s){t.setNumberFormat(r,s)},mergeNumberFormat(r,s){t.mergeNumberFormat(r,s)}};return a.__extender=n,process.env.NODE_ENV!=="production"&&(a.__enableEmitter=r=>{const s=t;s[we]&&s[we](r)},a.__disableEmitter=()=>{const r=t;r[Je]&&r[Je]()}),a}function Ri(e,t,n){return{beforeCreate(){const a=v.getCurrentInstance();if(!a)throw re(H.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const s=r.i18n;if(r.__i18n&&(s.__i18n=r.__i18n),s.__root=t,this===this.$root)this.$i18n=jr(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Jt(s);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=jr(e,r);else{this.$i18n=Jt({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Dr(t,r,r),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,o)=>this.$i18n.te(s,o),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(a,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const r=this.__v_emitter=St();a.__enableEmitter&&a.__enableEmitter(r),r.on("*",Ze)}},unmounted(){const a=v.getCurrentInstance();if(!a)throw re(H.UNEXPECTED_ERROR);const r=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Ze),delete this.__v_emitter),this.$i18n&&(r.__disableEmitter&&r.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(a),delete this.$i18n}}}function jr(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Ar](t.pluralizationRules||e.pluralizationRules);const n=qt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const zt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Di({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,r)=>[...a,...r.type===v.Fragment?r.children:[r]],[]):t.reduce((n,a)=>{const r=e[a];return r&&(n[a]=r()),n},W())}function Gr(){return v.Fragment}const qr=v.defineComponent({name:"i18n-t",props:Z({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>X(e)||!isNaN(e)}},zt),setup(e,t){const{slots:n,attrs:a}=t,r=e.i18n||Zt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(b=>b!=="_"),o=W();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=w(e.plural)?+e.plural:e.plural);const i=Di(t,s),u=r[Bt](e.keypath,i,o),m=Z(W(),a),h=w(e.tag)||x(e.tag)?e.tag:Gr();return v.h(h,m,u)}}});function Mi(e){return K(e)&&!w(e[0])}function Kr(e,t,n,a){const{slots:r,attrs:s}=t;return()=>{const o={part:!0};let i=W();e.locale&&(o.locale=e.locale),w(e.format)?o.key=e.format:x(e.format)&&(w(e.format.key)&&(o.key=e.format.key),i=Object.keys(e.format).reduce((f,I)=>n.includes(I)?Z(W(),f,{[I]:e.format[I]}):f,W()));const u=a(e.value,o,i);let m=[o.key];K(u)?m=u.map((f,I)=>{const C=r[f.type],S=C?C({[f.type]:f.value,index:I,parts:u}):[f.value];return Mi(S)&&(S[0].key=`${f.type}-${I}`),S}):w(u)&&(m=[u]);const h=Z(W(),s),b=w(e.tag)||x(e.tag)?e.tag:Gr();return v.h(b,h,m)}}const Yr=v.defineComponent({name:"i18n-n",props:Z({value:{type:Number,required:!0},format:{type:[String,Object]}},zt),setup(e,t){const n=e.i18n||Zt({useScope:e.scope,__useComponent:!0});return Kr(e,t,yr,(...a)=>n[jt](...a))}}),Xr=v.defineComponent({name:"i18n-d",props:Z({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},zt),setup(e,t){const n=e.i18n||Zt({useScope:e.scope,__useComponent:!0});return Kr(e,t,vr,(...a)=>n[Ht](...a))}});function Fi(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function xi(e){const t=o=>{const{instance:i,value:u}=o;if(!i||!i.$)throw re(H.UNEXPECTED_ERROR);const m=Fi(e,i.$),h=Qr(u);return[Reflect.apply(m.t,m,[...Jr(h)]),m]};return{created:(o,i)=>{const[u,m]=t(i);ce&&e.global===m&&(o.__i18nWatcher=v.watch(m.locale,()=>{i.instance&&i.instance.$forceUpdate()})),o.__composer=m,o.textContent=u},unmounted:o=>{ce&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:i})=>{if(o.__composer){const u=o.__composer,m=Qr(i);o.textContent=Reflect.apply(u.t,u,[...Jr(m)])}},getSSRProps:o=>{const[i]=t(o);return{textContent:i}}}}function Qr(e){if(w(e))return{path:e};if(M(e)){if(!("path"in e))throw re(H.REQUIRED_VALUE,"path");return e}else throw re(H.INVALID_VALUE)}function Jr(e){const{path:t,locale:n,args:a,choice:r,plural:s}=e,o={},i=a||{};return w(n)&&(o.locale=n),X(r)&&(o.plural=r),X(s)&&(o.plural=s),[t,i,o]}function Ui(e,t,...n){const a=M(n[0])?n[0]:{};(U(a.globalInstall)?a.globalInstall:!0)&&([qr.name,"I18nT"].forEach(s=>e.component(s,qr)),[Yr.name,"I18nN"].forEach(s=>e.component(s,Yr)),[Xr.name,"I18nD"].forEach(s=>e.component(s,Xr))),e.directive("t",xi(t))}const $i=de("global-vue-i18n");function Vi(e={},t){const n=__VUE_I18N_LEGACY_API__&&U(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=U(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,o]=Wi(e,n),i=de(process.env.NODE_ENV!=="production"?"vue-i18n":"");function u(f){return r.get(f)||null}function m(f,I){r.set(f,I)}function h(f){r.delete(f)}const b={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(f,...I){if(process.env.NODE_ENV!=="production"&&(f.__VUE_I18N__=b),f.__VUE_I18N_SYMBOL__=i,f.provide(f.__VUE_I18N_SYMBOL__,b),M(I[0])){const T=I[0];b.__composerExtend=T.__composerExtend,b.__vueI18nExtend=T.__vueI18nExtend}let C=null;!n&&a&&(C=Xi(f,b.global)),__VUE_I18N_FULL_INSTALL__&&Ui(f,b,...I),__VUE_I18N_LEGACY_API__&&n&&f.mixin(Ri(o,o.__composer,b));const S=f.unmount;if(f.unmount=()=>{C&&C(),b.dispose(),S()},process.env.NODE_ENV!=="production"){if(!await Ni(f,b))throw re(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const d=St();if(n){const _=o;_.__enableEmitter&&_.__enableEmitter(d)}else{const _=o;_[we]&&_[we](d)}d.on("*",Ze)}},get global(){return o},dispose(){s.stop()},__instances:r,__getInstance:u,__setInstance:m,__deleteInstance:h};return b}function Zt(e={}){const t=v.getCurrentInstance();if(t==null)throw re(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw re(H.NOT_INSTALLED);const n=Bi(t),a=ji(n),r=Rr(t),s=Hi(e,r);if(s==="global")return Dr(a,e,r),a;if(s==="parent"){let u=Gi(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&be(gt(Te.NOT_FOUND_PARENT_SCOPE)),u=a),u}const o=n;let i=o.__getInstance(t);if(i==null){const u=Z({},e);"__i18n"in r&&(u.__i18n=r.__i18n),a&&(u.__root=a),i=Kt(u),o.__composerExtend&&(i[Gt]=o.__composerExtend(i)),Ki(o,t,i),o.__setInstance(t,i)}return i}function Wi(e,t,n){const a=v.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?a.run(()=>Jt(e)):a.run(()=>Kt(e));if(r==null)throw re(H.UNEXPECTED_ERROR);return[a,r]}function Bi(e){const t=v.inject(e.isCE?$i:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw re(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}function Hi(e,t){return it(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function ji(e){return e.mode==="composition"?e.global:e.global.__composer}function Gi(e,t,n=!1){let a=null;const r=t.root;let s=qi(t,n);for(;s!=null;){const o=e;if(e.mode==="composition")a=o.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const i=o.__getInstance(s);i!=null&&(a=i.__composer,n&&a&&!a[Pr]&&(a=null))}if(a!=null||r===s)break;s=s.parent}return a}function qi(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Ki(e,t,n){let a=null;v.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=St();const r=n;r[we]&&r[we](a),a.on("*",Ze)}},t),v.onUnmounted(()=>{const r=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",Ze),r[Je]&&r[Je](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=r[Gt];s&&(s(),delete r[Gt])},t)}const Yi=["locale","fallbackLocale","availableLocales"],zr=["t","rt","d","n","tm","te"];function Xi(e,t){const n=Object.create(null);return Yi.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s)throw re(H.UNEXPECTED_ERROR);const o=v.isRef(s.value)?{get(){return s.value.value},set(i){s.value.value=i}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,r,o)}),e.config.globalProperties.$i18n=n,zr.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s||!s.value)throw re(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)}),()=>{delete e.config.globalProperties.$i18n,zr.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}if(_i(),Uo(po),$o(Ro),Vo(ar),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Se();e.__INTLIFY__=!0,ho(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const en=Vi({locale:"es",globalInjection:!0,silentTranslationWarn:!0,messages:us}),Qi={install(e){console.log("[Quasar Components] Installing..."),is(e,cs),e.use(en),en.global.locale="en",e.use(ka,{plugins:{}}),console.log("[Quasar components] Installed")}};function Ji(e){en.global.locale=e}_e.KMyButton=qn,_e.QuasarFactoryLib=Qi,_e.updatePackageLanguage=Ji,Object.defineProperty(_e,Symbol.toStringTag,{value:"Module"})});
21
+ */const hm="10.0.5";function gm(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(zt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(zt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(zt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zt().__INTLIFY_PROD_DEVTOOLS__=!1)}const Mt={FALLBACK_TO_ROOT:Af,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_TC:11},pm={[Mt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Mt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Mt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Mt.DEPRECATE_TC]:"'tc' and '$tc' has been deprecated in v10. Use 't' or '$t' instead. 'tc' and '$tc’ are going to remove in v11."};function io(e,...t){return Jn(pm[e],...t)}const Se={UNEXPECTED_RETURN_TYPE:kf,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Xe(e,...t){return nn(e,null,process.env.NODE_ENV!=="production"?{messages:bm,args:t}:void 0)}const bm={[Se.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Se.INVALID_ARGUMENT]:"Invalid argument",[Se.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Se.NOT_INSTALLED]:"Need to install with `app.use` function",[Se.UNEXPECTED_ERROR]:"Unexpected error",[Se.REQUIRED_VALUE]:"Required in value: {0}",[Se.INVALID_VALUE]:"Invalid value",[Se.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Se.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Se.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Se.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},al=vt("__translateVNode"),rl=vt("__datetimeParts"),il=vt("__numberParts"),Wt=vt("__enableEmitter"),Nn=vt("__disableEmitter"),oi=vt("__setPluralRules"),li=vt("__injectWithOption"),sl=vt("__dispose");function Ln(e){if(!he(e))return e;for(const t in e)if(gt(e,t))if(!t.includes("."))he(e[t])&&Ln(e[t]);else{const n=t.split("."),l=n.length-1;let a=e,r=!1;for(let i=0;i<l;i++){if(n[i]in a||(a[n[i]]=_e()),!he(a[n[i]])){process.env.NODE_ENV!=="production"&&It(io(Mt.IGNORE_OBJ_FLATTEN,{key:n[i]})),r=!0;break}a=a[n[i]]}r||(a[n[l]]=e[t],delete e[t]),he(a[n[l]])&&Ln(a[n[l]])}return e}function ul(e,t){const{messages:n,__i18n:l,messageResolver:a,flatJson:r}=t,i=ie(n)?n:Te(l)?_e():{[e]:_e()};if(Te(l)&&l.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:u,resource:m}=s;u?(i[u]=i[u]||_e(),to(m,i[u])):to(m,i)}else H(s)&&to(JSON.parse(s),i)}),a==null&&r)for(const s in i)gt(i,s)&&Ln(i[s]);return i}function ai(e){return e.type}function ri(e,t,n){let l=he(t.messages)?t.messages:_e();"__i18nGlobal"in n&&(l=ul(e.locale.value,{messages:l,__i18n:n.__i18nGlobal}));const a=Object.keys(l);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,l[r])});{if(he(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(he(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function ii(e){return o.createVNode(o.Text,null,e,0)}const si="__INTLIFY_META__",ui=()=>[],_m=()=>!1;let ci=0;function di(e){return(t,n,l,a)=>e(n,l,o.getCurrentInstance()||void 0,a)}const vm=()=>{const e=o.getCurrentInstance();let t=null;return e&&(t=ai(e)[si])?{[si]:t}:null};function cl(e={}){const{__root:t,__injectWithOption:n}=e,l=t===void 0,a=e.flatJson,r=ht?o.ref:o.shallowRef;let i=ge(e.inheritLocale)?e.inheritLocale:!0;const s=r(t&&i?t.locale.value:H(e.locale)?e.locale:Tn),u=r(t&&i?t.fallbackLocale.value:H(e.fallbackLocale)||Te(e.fallbackLocale)||ie(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),m=r(ul(s.value,e)),d=r(ie(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),c=r(ie(e.numberFormats)?e.numberFormats:{[s.value]:{}});let f=t?t.missingWarn:ge(e.missingWarn)||tn(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:ge(e.fallbackWarn)||tn(e.fallbackWarn)?e.fallbackWarn:!0,S=t?t.fallbackRoot:ge(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,b=ye(e.missing)?e.missing:null,p=ye(e.missing)?di(e.missing):null,_=ye(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:ge(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const x=t?t.modifiers:ie(e.modifiers)?e.modifiers:{};let O=e.pluralRules||t&&t.pluralRules,C;C=(()=>{l&&qr(null);const R={version:hm,locale:s.value,fallbackLocale:u.value,messages:m.value,modifiers:x,pluralRules:O,missing:p===null?void 0:p,missingWarn:f,fallbackWarn:h,fallbackFormat:E,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:w,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};R.datetimeFormats=d.value,R.numberFormats=c.value,R.__datetimeFormatters=ie(C)?C.__datetimeFormatters:void 0,R.__numberFormatters=ie(C)?C.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(R.__v_emitter=ie(C)?C.__v_emitter:void 0);const q=jf(R);return l&&qr(q),q})(),xn(C,s.value,u.value);function I(){return[s.value,u.value,m.value,d.value,c.value]}const V=o.computed({get:()=>s.value,set:R=>{s.value=R,C.locale=s.value}}),B=o.computed({get:()=>u.value,set:R=>{u.value=R,C.fallbackLocale=u.value,xn(C,s.value,R)}}),N=o.computed(()=>m.value),W=o.computed(()=>d.value),M=o.computed(()=>c.value);function J(){return ye(_)?_:null}function X(R){_=R,C.postTranslation=R}function te(){return b}function U(R){R!==null&&(p=di(R)),b=R,C.missing=p}function Z(R,q){return R!=="translate"||!q.resolvedMessage}const ee=(R,q,de,Ce,ct,Ge)=>{I();let Ae;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(C.fallbackContext=t?zf():void 0),Ae=R(C)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(C.fallbackContext=void 0)}if(de!=="translate exists"&&Ne(Ae)&&Ae===lo||de==="translate exists"&&!Ae){const[Fe,In]=q();if(process.env.NODE_ENV!=="production"&&t&&H(Fe)&&Z(de,In)&&(S&&(ro(h,Fe)||$r(f,Fe))&&It(io(Mt.FALLBACK_TO_ROOT,{key:Fe,type:de})),process.env.NODE_ENV!=="production")){const{__v_emitter:Tt}=C;Tt&&S&&Tt.emit("fallback",{type:de,key:Fe,to:"global",groupId:`${de}:${Fe}`})}return t&&S?Ce(t):ct(Fe)}else{if(Ge(Ae))return Ae;throw Xe(Se.UNEXPECTED_RETURN_TYPE)}};function L(...R){return ee(q=>Reflect.apply(Zr,null,[q,...R]),()=>ol(...R),"translate",q=>Reflect.apply(q.t,q,[...R]),q=>q,q=>H(q))}function T(...R){const[q,de,Ce]=R;if(Ce&&!he(Ce))throw Xe(Se.INVALID_ARGUMENT);return L(q,de,De({resolvedMessage:!0},Ce||{}))}function j(...R){return ee(q=>Reflect.apply(jr,null,[q,...R]),()=>tl(...R),"datetime format",q=>Reflect.apply(q.d,q,[...R]),()=>ao,q=>H(q))}function ae(...R){return ee(q=>Reflect.apply(Gr,null,[q,...R]),()=>nl(...R),"number format",q=>Reflect.apply(q.n,q,[...R]),()=>ao,q=>H(q))}function re(R){return R.map(q=>H(q)||Ne(q)||ge(q)?ii(String(q)):q)}const z={normalize:re,interpolate:R=>R,type:"vnode"};function ce(...R){return ee(q=>{let de;const Ce=q;try{Ce.processor=z,de=Reflect.apply(Zr,null,[Ce,...R])}finally{Ce.processor=null}return de},()=>ol(...R),"translate",q=>q[al](...R),q=>[ii(q)],q=>Te(q))}function $(...R){return ee(q=>Reflect.apply(Gr,null,[q,...R]),()=>nl(...R),"number format",q=>q[il](...R),ui,q=>H(q)||Te(q))}function be(...R){return ee(q=>Reflect.apply(jr,null,[q,...R]),()=>tl(...R),"datetime format",q=>q[rl](...R),ui,q=>H(q)||Te(q))}function Be(R){O=R,C.pluralRules=O}function st(R,q){return ee(()=>{if(!R)return!1;const de=H(q)?q:s.value,Ce=qe(de),ct=C.messageResolver(Ce,R);return Rt(ct)||it(ct)||H(ct)},()=>[R],"translate exists",de=>Reflect.apply(de.te,de,[R,q]),_m,de=>ge(de))}function Le(R){let q=null;const de=Or(C,u.value,s.value);for(let Ce=0;Ce<de.length;Ce++){const ct=m.value[de[Ce]]||{},Ge=C.messageResolver(ct,R);if(Ge!=null){q=Ge;break}}return q}function et(R){const q=Le(R);return q??(t?t.tm(R)||{}:{})}function qe(R){return m.value[R]||{}}function ze(R,q){if(a){const de={[R]:q};for(const Ce in de)gt(de,Ce)&&Ln(de[Ce]);q=de[R]}m.value[R]=q,C.messages=m.value}function ut(R,q){m.value[R]=m.value[R]||{};const de={[R]:q};if(a)for(const Ce in de)gt(de,Ce)&&Ln(de[Ce]);q=de[R],to(q,m.value[R]),C.messages=m.value}function g(R){return d.value[R]||{}}function k(R,q){d.value[R]=q,C.datetimeFormats=d.value,Kr(C,R,q)}function A(R,q){d.value[R]=De(d.value[R]||{},q),C.datetimeFormats=d.value,Kr(C,R,q)}function G(R){return c.value[R]||{}}function fe(R,q){c.value[R]=q,C.numberFormats=c.value,Yr(C,R,q)}function pe(R,q){c.value[R]=De(c.value[R]||{},q),C.numberFormats=c.value,Yr(C,R,q)}ci++,t&&ht&&(o.watch(t.locale,R=>{i&&(s.value=R,C.locale=R,xn(C,s.value,u.value))}),o.watch(t.fallbackLocale,R=>{i&&(u.value=R,C.fallbackLocale=R,xn(C,s.value,u.value))}));const se={id:ci,locale:V,fallbackLocale:B,get inheritLocale(){return i},set inheritLocale(R){i=R,R&&t&&(s.value=t.locale.value,u.value=t.fallbackLocale.value,xn(C,s.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:N,get modifiers(){return x},get pluralRules(){return O||{}},get isGlobal(){return l},get missingWarn(){return f},set missingWarn(R){f=R,C.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(R){h=R,C.fallbackWarn=h},get fallbackRoot(){return S},set fallbackRoot(R){S=R},get fallbackFormat(){return E},set fallbackFormat(R){E=R,C.fallbackFormat=E},get warnHtmlMessage(){return w},set warnHtmlMessage(R){w=R,C.warnHtmlMessage=R},get escapeParameter(){return y},set escapeParameter(R){y=R,C.escapeParameter=R},t:L,getLocaleMessage:qe,setLocaleMessage:ze,mergeLocaleMessage:ut,getPostTranslationHandler:J,setPostTranslationHandler:X,getMissingHandler:te,setMissingHandler:U,[oi]:Be};return se.datetimeFormats=W,se.numberFormats=M,se.rt=T,se.te=st,se.tm=et,se.d=j,se.n=ae,se.getDateTimeFormat=g,se.setDateTimeFormat=k,se.mergeDateTimeFormat=A,se.getNumberFormat=G,se.setNumberFormat=fe,se.mergeNumberFormat=pe,se[li]=n,se[al]=ce,se[rl]=be,se[il]=$,process.env.NODE_ENV!=="production"&&(se[Wt]=R=>{C.__v_emitter=R},se[Nn]=()=>{C.__v_emitter=void 0}),se}const fi="vue-i18n: composer properties",dl={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},ym={"vue-i18n-resource-inspector":"Search for scopes ..."},Sm={"vue-i18n-timeline":16764185};let fl;async function km(e,t){return new Promise((n,l)=>{try{mm({id:"vue-devtools-plugin-vue-i18n",label:dl["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[fi],app:e},a=>{fl=a,a.on.visitComponentTree(({componentInstance:i,treeNode:s})=>{wm(i,s,t)}),a.on.inspectComponent(({componentInstance:i,instanceData:s})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&s&&(t.mode==="legacy"?i.vnode.el.__VUE_I18N__!==t.global.__composer&&hi(s,i.vnode.el.__VUE_I18N__):hi(s,i.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:dl["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:ym["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Nm(i,t)});const r=new Map;a.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),Om(i,t),i.nodeId==="global"){if(!r.has(i.app)){const[s]=await a.getComponentInstances(i.app);r.set(i.app,s)}a.highlightElement(r.get(i.app))}else{const s=Lm(i.nodeId,t);s&&a.highlightElement(s)}}),a.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Pm(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:dl["vue-i18n-timeline"],color:Sm["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),l(!1)}})}function mi(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function wm(e,t,n){const l=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==l){const a={label:`i18n (${mi(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function hi(e,t){const n=fi;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:ml(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function ml(e){const t={};return Object.keys(e).forEach(n=>{const l=e[n];ye(l)&&"source"in l?t[n]=xm(l):Rt(l)&&l.loc&&l.loc.source?t[n]=l.loc.source:he(l)?t[n]=ml(l):t[n]=l}),t}const Cm={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Em(e){return e.replace(/[<>"&]/g,Tm)}function Tm(e){return Cm[e]||e}function xm(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Em(e.source)}")`:"(?)"}`}}}function Nm(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[l,a]of t.__instances){const r=t.mode==="composition"?a:a.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${mi(l)} Scope`})}}function Lm(e,t){let n=null;if(e!=="global"){for(const[l,a]of t.__instances.entries())if(a.id.toString()===e){n=l;break}}return n}function gi(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(l=>l.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Om(e,t){const n=gi(e.nodeId,t);return n&&(e.state=Im(n)),null}function Im(e){const t={},n="Locale related info",l=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=l;const a="Locale messages info",r=[{type:a,key:"messages",editable:!1,value:ml(e.messages.value)}];t[a]=r;{const i="Datetime formats info",s=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=s;const u="Datetime formats info",m=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=m}return t}function On(e,t){if(fl){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),fl.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Pm(e,t){const n=gi(e.nodeId,t);if(n){const[l]=e.path;l==="locale"&&H(e.state.value)?n.locale.value=e.state.value:l==="fallbackLocale"&&(H(e.state.value)||Te(e.state.value)||he(e.state.value))?n.fallbackLocale.value=e.state.value:l==="inheritLocale"&&ge(e.state.value)&&(n.inheritLocale=e.state.value)}}function Vm(e){const t=H(e.locale)?e.locale:Tn,n=H(e.fallbackLocale)||Te(e.fallbackLocale)||ie(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,l=ye(e.missing)?e.missing:void 0,a=ge(e.silentTranslationWarn)||tn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=ge(e.silentFallbackWarn)||tn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=ge(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,u=ie(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,d=ye(e.postTranslation)?e.postTranslation:void 0,c=H(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=ge(e.sync)?e.sync:!0;let S=e.messages;if(ie(e.sharedMessages)){const x=e.sharedMessages;S=Object.keys(x).reduce((C,D)=>{const I=C[D]||(C[D]={});return De(I,x[D]),C},S||{})}const{__i18n:E,__root:b,__injectWithOption:p}=e,_=e.datetimeFormats,w=e.numberFormats,y=e.flatJson;return{locale:t,fallbackLocale:n,messages:S,flatJson:y,datetimeFormats:_,numberFormats:w,missing:l,missingWarn:a,fallbackWarn:r,fallbackRoot:i,fallbackFormat:s,modifiers:u,pluralRules:m,postTranslation:d,warnHtmlMessage:c,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,__i18n:E,__root:b,__injectWithOption:p}}function hl(e={}){const t=cl(Vm(e)),{__extender:n}=e,l={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return ge(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=ge(a)?!a:a},get silentFallbackWarn(){return ge(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=ge(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},tc(...a){const[r,i,s]=a,u={plural:1};let m=null,d=null;if(process.env.NODE_ENV!=="production"&&Cr(io(Mt.DEPRECATE_TC)),!H(r))throw Xe(Se.INVALID_ARGUMENT);const c=r;return H(i)?u.locale=i:Ne(i)?u.plural=i:Te(i)?m=i:ie(i)&&(d=i),H(s)?u.locale=s:Te(s)?m=s:ie(s)&&(d=s),Reflect.apply(t.t,t,[c,m||d||{},u])},te(a,r){return t.te(a,r)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,r){t.setLocaleMessage(a,r)},mergeLocaleMessage(a,r){t.mergeLocaleMessage(a,r)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,r){t.setDateTimeFormat(a,r)},mergeDateTimeFormat(a,r){t.mergeDateTimeFormat(a,r)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,r){t.setNumberFormat(a,r)},mergeNumberFormat(a,r){t.mergeNumberFormat(a,r)}};return l.__extender=n,process.env.NODE_ENV!=="production"&&(l.__enableEmitter=a=>{const r=t;r[Wt]&&r[Wt](a)},l.__disableEmitter=()=>{const a=t;a[Nn]&&a[Nn]()}),l}function Rm(e,t,n){return{beforeCreate(){const l=o.getCurrentInstance();if(!l)throw Xe(Se.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=pi(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=hl(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=pi(e,a);else{this.$i18n=hl({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&ri(t,a,a),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(l,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const l=this.$i18n;this.$el.__VUE_I18N__=l.__composer;const a=this.__v_emitter=jo();l.__enableEmitter&&l.__enableEmitter(a),a.on("*",On)}},unmounted(){const l=o.getCurrentInstance();if(!l)throw Xe(Se.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",On),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(l),delete this.$i18n}}}function pi(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[oi](t.pluralizationRules||e.pluralizationRules);const n=ul(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(l=>e.mergeLocaleMessage(l,n[l])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(l=>e.mergeDateTimeFormat(l,t.datetimeFormats[l])),t.numberFormats&&Object.keys(t.numberFormats).forEach(l=>e.mergeNumberFormat(l,t.numberFormats[l])),e}const gl={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Am({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((l,a)=>[...l,...a.type===o.Fragment?a.children:[a]],[]):t.reduce((n,l)=>{const a=e[l];return a&&(n[l]=a()),n},_e())}function bi(){return o.Fragment}const _i=o.defineComponent({name:"i18n-t",props:De({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ne(e)||!isNaN(e)}},gl),setup(e,t){const{slots:n,attrs:l}=t,a=e.i18n||pl({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(c=>c!=="_"),i=_e();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=H(e.plural)?+e.plural:e.plural);const s=Am(t,r),u=a[al](e.keypath,s,i),m=De(_e(),l),d=H(e.tag)||he(e.tag)?e.tag:bi();return o.h(d,m,u)}}});function Mm(e){return Te(e)&&!H(e[0])}function vi(e,t,n,l){const{slots:a,attrs:r}=t;return()=>{const i={part:!0};let s=_e();e.locale&&(i.locale=e.locale),H(e.format)?i.key=e.format:he(e.format)&&(H(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((f,h)=>n.includes(h)?De(_e(),f,{[h]:e.format[h]}):f,_e()));const u=l(e.value,i,s);let m=[i.key];Te(u)?m=u.map((f,h)=>{const S=a[f.type],E=S?S({[f.type]:f.value,index:h,parts:u}):[f.value];return Mm(E)&&(E[0].key=`${f.type}-${h}`),E}):H(u)&&(m=[u]);const d=De(_e(),r),c=H(e.tag)||he(e.tag)?e.tag:bi();return o.h(c,d,m)}}const yi=o.defineComponent({name:"i18n-n",props:De({value:{type:Number,required:!0},format:{type:[String,Object]}},gl),setup(e,t){const n=e.i18n||pl({useScope:e.scope,__useComponent:!0});return vi(e,t,Qr,(...l)=>n[il](...l))}}),Si=o.defineComponent({name:"i18n-d",props:De({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},gl),setup(e,t){const n=e.i18n||pl({useScope:e.scope,__useComponent:!0});return vi(e,t,Wr,(...l)=>n[rl](...l))}});function Dm(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const l=n.__getInstance(t);return l!=null?l.__composer:e.global.__composer}}function Bm(e){const t=i=>{const{instance:s,value:u}=i;if(!s||!s.$)throw Xe(Se.UNEXPECTED_ERROR);const m=Dm(e,s.$),d=ki(u);return[Reflect.apply(m.t,m,[...wi(d)]),m]};return{created:(i,s)=>{const[u,m]=t(s);ht&&e.global===m&&(i.__i18nWatcher=o.watch(m.locale,()=>{s.instance&&s.instance.$forceUpdate()})),i.__composer=m,i.textContent=u},unmounted:i=>{ht&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:s})=>{if(i.__composer){const u=i.__composer,m=ki(s);i.textContent=Reflect.apply(u.t,u,[...wi(m)])}},getSSRProps:i=>{const[s]=t(i);return{textContent:s}}}}function ki(e){if(H(e))return{path:e};if(ie(e)){if(!("path"in e))throw Xe(Se.REQUIRED_VALUE,"path");return e}else throw Xe(Se.INVALID_VALUE)}function wi(e){const{path:t,locale:n,args:l,choice:a,plural:r}=e,i={},s=l||{};return H(n)&&(i.locale=n),Ne(a)&&(i.plural=a),Ne(r)&&(i.plural=r),[t,s,i]}function qm(e,t,...n){const l=ie(n[0])?n[0]:{};(ge(l.globalInstall)?l.globalInstall:!0)&&([_i.name,"I18nT"].forEach(r=>e.component(r,_i)),[yi.name,"I18nN"].forEach(r=>e.component(r,yi)),[Si.name,"I18nD"].forEach(r=>e.component(r,Si))),e.directive("t",Bm(t))}const Fm=vt("global-vue-i18n");function $m(e={},t){const n=__VUE_I18N_LEGACY_API__&&ge(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,l=ge(e.globalInjection)?e.globalInjection:!0,a=new Map,[r,i]=Um(e,n),s=vt(process.env.NODE_ENV!=="production"?"vue-i18n":"");function u(f){return a.get(f)||null}function m(f,h){a.set(f,h)}function d(f){a.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(f,...h){if(process.env.NODE_ENV!=="production"&&(f.__VUE_I18N__=c),f.__VUE_I18N_SYMBOL__=s,f.provide(f.__VUE_I18N_SYMBOL__,c),ie(h[0])){const b=h[0];c.__composerExtend=b.__composerExtend,c.__vueI18nExtend=b.__vueI18nExtend}let S=null;!n&&l&&(S=Ym(f,c.global)),__VUE_I18N_FULL_INSTALL__&&qm(f,c,...h),__VUE_I18N_LEGACY_API__&&n&&f.mixin(Rm(i,i.__composer,c));const E=f.unmount;if(f.unmount=()=>{S&&S(),c.dispose(),E()},process.env.NODE_ENV!=="production"){if(!await km(f,c))throw Xe(Se.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const p=jo();if(n){const _=i;_.__enableEmitter&&_.__enableEmitter(p)}else{const _=i;_[Wt]&&_[Wt](p)}p.on("*",On)}},get global(){return i},dispose(){r.stop()},__instances:a,__getInstance:u,__setInstance:m,__deleteInstance:d};return c}function pl(e={}){const t=o.getCurrentInstance();if(t==null)throw Xe(Se.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Xe(Se.NOT_INSTALLED);const n=Hm(t),l=jm(n),a=ai(t),r=zm(e,a);if(r==="global")return ri(l,e,a),l;if(r==="parent"){let u=Wm(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&It(io(Mt.NOT_FOUND_PARENT_SCOPE)),u=l),u}const i=n;let s=i.__getInstance(t);if(s==null){const u=De({},e);"__i18n"in a&&(u.__i18n=a.__i18n),l&&(u.__root=l),s=cl(u),i.__composerExtend&&(s[sl]=i.__composerExtend(s)),Gm(i,t,s),i.__setInstance(t,s)}return s}function Um(e,t,n){const l=o.effectScope(),a=__VUE_I18N_LEGACY_API__&&t?l.run(()=>hl(e)):l.run(()=>cl(e));if(a==null)throw Xe(Se.UNEXPECTED_ERROR);return[l,a]}function Hm(e){const t=o.inject(e.isCE?Fm:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Xe(e.isCE?Se.NOT_INSTALLED_WITH_PROVIDE:Se.UNEXPECTED_ERROR);return t}function zm(e,t){return Zn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function jm(e){return e.mode==="composition"?e.global:e.global.__composer}function Wm(e,t,n=!1){let l=null;const a=t.root;let r=Km(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")l=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(r);s!=null&&(l=s.__composer,n&&l&&!l[li]&&(l=null))}if(l!=null||a===r)break;r=r.parent}return l}function Km(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Gm(e,t,n){let l=null;o.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,l=jo();const a=n;a[Wt]&&a[Wt](l),l.on("*",On)}},t),o.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(l&&l.off("*",On),a[Nn]&&a[Nn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=a[sl];r&&(r(),delete a[sl])},t)}const Qm=["locale","fallbackLocale","availableLocales"],Ci=["t","rt","d","n","tm","te"];function Ym(e,t){const n=Object.create(null);return Qm.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r)throw Xe(Se.UNEXPECTED_ERROR);const i=o.isRef(r.value)?{get(){return r.value.value},set(s){r.value.value=s}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,a,i)}),e.config.globalProperties.$i18n=n,Ci.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r||!r.value)throw Xe(Se.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,r)}),()=>{delete e.config.globalProperties.$i18n,Ci.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}if(gm(),qf(bf),Ff(Rf),$f(Or),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=zt();e.__INTLIFY__=!0,_f(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const bl=$m({locale:"es",globalInjection:!0,silentTranslationWarn:!0,messages:dd}),Xm={install(e){console.log("[Quasar Components] Installing..."),aa(e,xs),aa(e,cd),e.use(bl),bl.global.locale="en",e.use(Xi,{plugins:{}}),console.log("[Quasar components] Installed")}};function Jm(e){bl.global.locale=e}bt.KMyButton=la,bt.KTable=_r,bt.QuasarFactoryLib=Xm,bt.updatePackageLanguage=Jm,Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"})});