quasar 2.2.1 → 2.3.0

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 (261) hide show
  1. package/dist/api/QCircularProgress.json +14 -0
  2. package/dist/api/QLinearProgress.json +14 -0
  3. package/dist/api/QOptionGroup.json +36 -1
  4. package/dist/api/QSkeleton.json +1 -1
  5. package/dist/api/QTable.json +5 -0
  6. package/dist/api/QTree.json +6 -0
  7. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  8. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  9. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  10. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  11. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  12. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  13. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  14. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  15. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  16. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  17. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  18. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  19. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  20. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  21. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  22. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  23. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  24. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  25. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  28. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-mdi-v4.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-mdi-v5.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  35. package/dist/icon-set/themify.umd.prod.js +1 -1
  36. package/dist/lang/ar.umd.prod.js +1 -1
  37. package/dist/lang/az-Latn.umd.prod.js +1 -1
  38. package/dist/lang/bg.umd.prod.js +1 -1
  39. package/dist/lang/bn.umd.prod.js +1 -1
  40. package/dist/lang/ca.umd.prod.js +1 -1
  41. package/dist/lang/cs.umd.prod.js +1 -1
  42. package/dist/lang/da.umd.prod.js +1 -1
  43. package/dist/lang/de.umd.prod.js +1 -1
  44. package/dist/lang/el.umd.prod.js +1 -1
  45. package/dist/lang/en-GB.umd.prod.js +1 -1
  46. package/dist/lang/en-US.umd.prod.js +1 -1
  47. package/dist/lang/eo.umd.prod.js +1 -1
  48. package/dist/lang/es.umd.prod.js +1 -1
  49. package/dist/lang/et.umd.prod.js +1 -1
  50. package/dist/lang/fa-IR.umd.prod.js +1 -1
  51. package/dist/lang/fa.umd.prod.js +1 -1
  52. package/dist/lang/fi.umd.prod.js +1 -1
  53. package/dist/lang/fr.umd.prod.js +1 -1
  54. package/dist/lang/gn.umd.prod.js +1 -1
  55. package/dist/lang/he.umd.prod.js +1 -1
  56. package/dist/lang/hr.umd.prod.js +1 -1
  57. package/dist/lang/hu.umd.prod.js +1 -1
  58. package/dist/lang/id.umd.prod.js +1 -1
  59. package/dist/lang/is.umd.prod.js +1 -1
  60. package/dist/lang/it.umd.prod.js +1 -1
  61. package/dist/lang/ja.umd.prod.js +1 -1
  62. package/dist/lang/km.umd.prod.js +1 -1
  63. package/dist/lang/ko-KR.umd.prod.js +1 -1
  64. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  65. package/dist/lang/lt.umd.prod.js +1 -1
  66. package/dist/lang/lu.umd.prod.js +1 -1
  67. package/dist/lang/lv.umd.prod.js +1 -1
  68. package/dist/lang/ml.umd.prod.js +1 -1
  69. package/dist/lang/ms.umd.prod.js +1 -1
  70. package/dist/lang/nb-NO.umd.prod.js +1 -1
  71. package/dist/lang/nl.umd.prod.js +1 -1
  72. package/dist/lang/pl.umd.prod.js +1 -1
  73. package/dist/lang/pt-BR.umd.prod.js +1 -1
  74. package/dist/lang/pt.umd.prod.js +1 -1
  75. package/dist/lang/ro.umd.prod.js +1 -1
  76. package/dist/lang/ru.umd.prod.js +1 -1
  77. package/dist/lang/sk.umd.prod.js +1 -1
  78. package/dist/lang/sl.umd.prod.js +1 -1
  79. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  80. package/dist/lang/sr.umd.prod.js +1 -1
  81. package/dist/lang/sv.umd.prod.js +1 -1
  82. package/dist/lang/ta.umd.prod.js +1 -1
  83. package/dist/lang/th.umd.prod.js +1 -1
  84. package/dist/lang/tr.umd.prod.js +1 -1
  85. package/dist/lang/ug.umd.prod.js +1 -1
  86. package/dist/lang/uk.umd.prod.js +1 -1
  87. package/dist/lang/vi.umd.prod.js +1 -1
  88. package/dist/lang/zh-CN.umd.prod.js +1 -1
  89. package/dist/lang/zh-TW.umd.prod.js +1 -1
  90. package/dist/quasar.cjs.prod.js +2 -2
  91. package/dist/quasar.css +53 -9
  92. package/dist/quasar.esm.prod.js +2 -2
  93. package/dist/quasar.prod.css +1 -1
  94. package/dist/quasar.rtl.css +120 -9
  95. package/dist/quasar.rtl.prod.css +1 -1
  96. package/dist/quasar.sass +45 -7
  97. package/dist/quasar.umd.js +320 -254
  98. package/dist/quasar.umd.prod.js +2 -2
  99. package/dist/ssr-directives/Morph.js +1 -1
  100. package/dist/types/index.d.ts +33 -3
  101. package/dist/vetur/quasar-attributes.json +13 -1
  102. package/dist/vetur/quasar-tags.json +5 -2
  103. package/dist/web-types/web-types.json +32 -2
  104. package/package.json +1 -1
  105. package/src/api.extends.json +7 -0
  106. package/src/components/ajax-bar/QAjaxBar.js +3 -2
  107. package/src/components/avatar/QAvatar.js +3 -2
  108. package/src/components/badge/QBadge.js +3 -2
  109. package/src/components/banner/QBanner.js +3 -2
  110. package/src/components/bar/QBar.js +3 -2
  111. package/src/components/breadcrumbs/QBreadcrumbs.js +3 -2
  112. package/src/components/breadcrumbs/QBreadcrumbsEl.js +3 -2
  113. package/src/components/btn/QBtn.js +3 -2
  114. package/src/components/btn-dropdown/QBtnDropdown.js +3 -2
  115. package/src/components/btn-group/QBtnGroup.js +3 -2
  116. package/src/components/btn-toggle/QBtnToggle.js +3 -2
  117. package/src/components/card/QCard.js +3 -2
  118. package/src/components/card/QCardActions.js +3 -2
  119. package/src/components/card/QCardSection.js +3 -2
  120. package/src/components/carousel/QCarousel.js +3 -2
  121. package/src/components/carousel/QCarouselControl.js +3 -2
  122. package/src/components/carousel/QCarouselSlide.js +3 -2
  123. package/src/components/chat/QChatMessage.js +3 -2
  124. package/src/components/checkbox/QCheckbox.js +3 -2
  125. package/src/components/chip/QChip.js +3 -2
  126. package/src/components/circular-progress/QCircularProgress.js +9 -3
  127. package/src/components/circular-progress/QCircularProgress.json +6 -0
  128. package/src/components/color/QColor.js +3 -2
  129. package/src/components/date/QDate.js +5 -3
  130. package/src/components/dialog/QDialog.js +3 -2
  131. package/src/components/dialog-bottom-sheet/BottomSheet.js +3 -2
  132. package/src/components/dialog-plugin/DialogPlugin.js +3 -2
  133. package/src/components/drawer/QDrawer.js +3 -2
  134. package/src/components/editor/QEditor.js +3 -2
  135. package/src/components/expansion-item/QExpansionItem.js +3 -2
  136. package/src/components/fab/QFab.js +3 -2
  137. package/src/components/fab/QFabAction.js +3 -2
  138. package/src/components/field/QField.js +3 -3
  139. package/src/components/file/QFile.js +3 -2
  140. package/src/components/footer/QFooter.js +3 -2
  141. package/src/components/form/QForm.js +3 -2
  142. package/src/components/header/QHeader.js +3 -2
  143. package/src/components/icon/QIcon.js +4 -2
  144. package/src/components/img/QImg.js +5 -2
  145. package/src/components/infinite-scroll/QInfiniteScroll.js +50 -32
  146. package/src/components/inner-loading/QInnerLoading.js +3 -2
  147. package/src/components/input/QInput.js +3 -2
  148. package/src/components/intersection/QIntersection.js +3 -2
  149. package/src/components/item/QItem.js +3 -2
  150. package/src/components/item/QItemLabel.js +3 -2
  151. package/src/components/item/QItemSection.js +3 -2
  152. package/src/components/item/QList.js +3 -3
  153. package/src/components/knob/QKnob.js +3 -2
  154. package/src/components/layout/QLayout.js +3 -2
  155. package/src/components/linear-progress/QLinearProgress.js +13 -3
  156. package/src/components/linear-progress/QLinearProgress.json +6 -0
  157. package/src/components/linear-progress/QLinearProgress.sass +2 -1
  158. package/src/components/markup-table/QMarkupTable.js +3 -2
  159. package/src/components/menu/QMenu.js +4 -3
  160. package/src/components/no-ssr/QNoSsr.js +3 -2
  161. package/src/components/option-group/QOptionGroup.js +4 -2
  162. package/src/components/option-group/QOptionGroup.json +24 -1
  163. package/src/components/page/QPage.js +3 -2
  164. package/src/components/page/QPageContainer.js +3 -2
  165. package/src/components/page-scroller/QPageScroller.js +4 -2
  166. package/src/components/page-sticky/QPageSticky.js +2 -3
  167. package/src/components/pagination/QPagination.js +3 -2
  168. package/src/components/parallax/QParallax.js +3 -2
  169. package/src/components/popup-edit/QPopupEdit.js +3 -2
  170. package/src/components/popup-proxy/QPopupProxy.js +10 -17
  171. package/src/components/pull-to-refresh/QPullToRefresh.js +3 -2
  172. package/src/components/radio/QRadio.js +3 -2
  173. package/src/components/range/QRange.js +3 -2
  174. package/src/components/rating/QRating.js +6 -5
  175. package/src/components/resize-observer/QResizeObserver.js +3 -2
  176. package/src/components/responsive/QResponsive.js +3 -2
  177. package/src/components/scroll-area/QScrollArea.js +3 -2
  178. package/src/components/scroll-observer/QScrollObserver.js +3 -2
  179. package/src/components/select/QSelect.js +11 -20
  180. package/src/components/separator/QSeparator.js +4 -2
  181. package/src/components/skeleton/QSkeleton.js +3 -2
  182. package/src/components/skeleton/QSkeleton.json +1 -4
  183. package/src/components/slide-item/QSlideItem.js +3 -2
  184. package/src/components/slide-transition/QSlideTransition.js +4 -2
  185. package/src/components/slider/QSlider.js +3 -2
  186. package/src/components/space/QSpace.js +4 -2
  187. package/src/components/spinner/QSpinner.js +4 -2
  188. package/src/components/spinner/QSpinnerAudio.js +4 -2
  189. package/src/components/spinner/QSpinnerBall.js +4 -2
  190. package/src/components/spinner/QSpinnerBars.js +4 -2
  191. package/src/components/spinner/QSpinnerBox.js +4 -2
  192. package/src/components/spinner/QSpinnerClock.js +4 -2
  193. package/src/components/spinner/QSpinnerComment.js +4 -2
  194. package/src/components/spinner/QSpinnerCube.js +4 -2
  195. package/src/components/spinner/QSpinnerDots.js +4 -2
  196. package/src/components/spinner/QSpinnerFacebook.js +4 -2
  197. package/src/components/spinner/QSpinnerGears.js +4 -2
  198. package/src/components/spinner/QSpinnerGrid.js +4 -2
  199. package/src/components/spinner/QSpinnerHearts.js +4 -2
  200. package/src/components/spinner/QSpinnerHourglass.js +4 -2
  201. package/src/components/spinner/QSpinnerInfinity.js +4 -2
  202. package/src/components/spinner/QSpinnerIos.js +4 -2
  203. package/src/components/spinner/QSpinnerOrbit.js +4 -2
  204. package/src/components/spinner/QSpinnerOval.js +4 -2
  205. package/src/components/spinner/QSpinnerPie.js +4 -2
  206. package/src/components/spinner/QSpinnerPuff.js +4 -2
  207. package/src/components/spinner/QSpinnerRadio.js +4 -2
  208. package/src/components/spinner/QSpinnerRings.js +4 -2
  209. package/src/components/spinner/QSpinnerTail.js +4 -2
  210. package/src/components/splitter/QSplitter.js +3 -2
  211. package/src/components/stepper/QStep.js +3 -2
  212. package/src/components/stepper/QStepper.js +3 -2
  213. package/src/components/stepper/QStepperNavigation.js +3 -2
  214. package/src/components/stepper/StepHeader.js +4 -2
  215. package/src/components/tab-panels/QTabPanel.js +4 -2
  216. package/src/components/tab-panels/QTabPanels.js +3 -2
  217. package/src/components/table/QTable.js +4 -2
  218. package/src/components/table/QTable.json +1 -0
  219. package/src/components/table/QTd.js +3 -2
  220. package/src/components/table/QTh.js +3 -2
  221. package/src/components/table/QTr.js +3 -2
  222. package/src/components/table/table-pagination.js +2 -2
  223. package/src/components/tabs/QRouteTab.js +4 -2
  224. package/src/components/tabs/QTab.js +3 -3
  225. package/src/components/tabs/QTabs.js +4 -3
  226. package/src/components/time/QTime.js +9 -9
  227. package/src/components/timeline/QTimeline.js +3 -2
  228. package/src/components/timeline/QTimelineEntry.js +3 -2
  229. package/src/components/toggle/QToggle.js +5 -2
  230. package/src/components/toolbar/QToolbar.js +3 -2
  231. package/src/components/toolbar/QToolbarTitle.js +3 -2
  232. package/src/components/tooltip/QTooltip.js +3 -2
  233. package/src/components/tree/QTree.js +12 -7
  234. package/src/components/tree/QTree.json +5 -0
  235. package/src/components/tree/QTree.sass +52 -4
  236. package/src/components/uploader/QUploaderAddTrigger.js +3 -2
  237. package/src/components/uploader/uploader-core.js +2 -7
  238. package/src/components/video/QVideo.js +4 -2
  239. package/src/components/virtual-scroll/QVirtualScroll.js +3 -2
  240. package/src/components/virtual-scroll/use-virtual-scroll.js +17 -1
  241. package/src/composables/private/use-file.js +8 -0
  242. package/src/composables/private/use-model-toggle.js +1 -1
  243. package/src/composables/use-dialog-plugin-component.js +6 -1
  244. package/src/css/normalize.sass +0 -7
  245. package/src/directives/ClosePopup.js +3 -1
  246. package/src/directives/Intersection.js +3 -1
  247. package/src/directives/Morph.js +4 -1
  248. package/src/directives/Mutation.js +3 -1
  249. package/src/directives/Ripple.js +3 -1
  250. package/src/directives/Scroll.js +3 -1
  251. package/src/directives/ScrollFire.js +3 -1
  252. package/src/directives/TouchHold.js +4 -1
  253. package/src/directives/TouchPan.js +4 -1
  254. package/src/directives/TouchRepeat.js +4 -1
  255. package/src/directives/TouchSwipe.js +4 -1
  256. package/src/plugins/Notify.js +4 -3
  257. package/src/utils/create-uploader-component.js +9 -7
  258. package/src/utils/date.js +1 -1
  259. package/src/utils/private/create.js +4 -0
  260. package/src/utils/private/get-emits-object.js +11 -0
  261. package/src/utils/private/vm.js +3 -3
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Quasar Framework v2.2.1
2
+ * Quasar Framework v2.3.0
3
3
  * (c) 2015-present Razvan Stoenescu
4
4
  * Released under the MIT License.
5
5
  */
6
- (function(e,t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define(["vue"],t):(e="undefined"!==typeof globalThis?globalThis:e||self,e.Quasar=t(e.Vue))})(this,function(e){"use strict";const t=e.ref(!1);let o;function n(e,t){const o=/(edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\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)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[2]||o[4]||"0",versionNumber:o[4]||o[2]||"0",platform:t[0]||""}}function a(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 l="ontouchstart"in window||window.navigator.maxTouchPoints>0;function i(e){o={is:{...e}},delete e.mac,delete e.desktop;const t=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:t,[t]:!0})}function r(e){const t=e.toLowerCase(),o=a(t),r=n(t,o),s={};r.browser&&(s[r.browser]=!0,s.version=r.version,s.versionNumber=parseInt(r.versionNumber,10)),r.platform&&(s[r.platform]=!0);const u=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];return!0===u||t.indexOf("mobile")>-1?(s.mobile=!0,s.edga||s.edgios?(s.edge=!0,r.browser="edge"):s.crios?(s.chrome=!0,r.browser="chrome"):s.fxios&&(s.firefox=!0,r.browser="firefox")):s.desktop=!0,(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),(s.chrome||s.opr||s.safari||s.vivaldi||!0===s.mobile&&!0!==s.ios&&!0!==u)&&(s.webkit=!0),(s.safari&&s.blackberry||s.bb)&&(r.browser="blackberry",s.blackberry=!0),s.safari&&s.playbook&&(r.browser="playbook",s.playbook=!0),s.opr&&(r.browser="opera",s.opera=!0),s.safari&&s.android&&(r.browser="android",s.android=!0),s.safari&&s.kindle&&(r.browser="kindle",s.kindle=!0),s.safari&&s.silk&&(r.browser="silk",s.silk=!0),s.vivaldi&&(r.browser="vivaldi",s.vivaldi=!0),s.name=r.browser,s.platform=r.platform,t.indexOf("electron")>-1?s.electron=!0:document.location.href.indexOf("-extension://")>-1?s.bex=!0:(void 0!==window.Capacitor?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),!0===l&&!0===s.mac&&(!0===s.desktop&&!0===s.safari||!0===s.nativeMobile&&!0!==s.android&&!0!==s.ios&&!0!==s.ipad)&&i(s)),s}const s=navigator.userAgent||navigator.vendor||window.opera,u={has:{touch:!1,webStorage:!1},within:{iframe:!1}},c={userAgent:s,is:r(s),has:{touch:l},within:{iframe:window.self!==window.top}},d={install(n){const{$q:a}=n;!0===t.value?(n.onSSRHydrated.push(()=>{t.value=!1,Object.assign(a.platform,c),o=void 0}),a.platform=e.reactive(this)):a.platform=this}};{let e;Object.defineProperty(c.has,"webStorage",{get:()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(e){}return e=!1,!1}}),!0===c.is.ios&&window.navigator.vendor.toLowerCase().indexOf("apple"),!0===t.value?Object.assign(d,c,o,u):Object.assign(d,c)}var v=(t,o)=>{const n={},a=e.reactive(t);return Object.keys(t).forEach(e=>{n[e]={get:()=>a[e],set:t=>{a[e]=t}}}),Object.defineProperties(o,n),o};const p={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(p,{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(e){}function m(){}function f(e){return 0===e.button}function h(e){return 1===e.button}function g(e){return 2===e.button}function b(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 y(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let o=e.target;while(o){if(t.push(o),"HTML"===o.tagName)return t.push(document),t.push(window),t;o=o.parentElement}}const w=40,x=800;function _(e){let t=e.deltaX,o=e.deltaY;if((t||o)&&e.deltaMode){const n=1===e.deltaMode?w:x;t*=n,o*=n}return e.shiftKey&&!t&&([o,t]=[t,o]),{x:t,y:o}}function C(e){e.stopPropagation()}function S(e){!1!==e.cancelable&&e.preventDefault()}function q(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function k(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const o=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",S,p.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",S,p.notPassiveCapture)};e.querySelectorAll("a, img").forEach(o)}function $(e,t,o){const n=`__q_${t}_evt`;e[n]=void 0!==e[n]?e[n].concat(o):o,o.forEach(t=>{t[0].addEventListener(t[1],e[t[2]],p[t[3]])})}function M(e,t){const o=`__q_${t}_evt`;void 0!==e[o]&&(e[o].forEach(t=>{t[0].removeEventListener(t[1],e[t[2]],p[t[3]])}),e[o]=void 0)}var T={listenOpts:p,leftClick:f,middleClick:h,rightClick:g,position:b,getEventPath:y,getMouseWheelDistance:_,stop:C,prevent:S,stopAndPrevent:q,preventDraggable:k};function B(e,t=250,o){let n;function a(){const a=arguments,l=()=>{n=void 0,!0!==o&&e.apply(this,a)};clearTimeout(n),!0===o&&void 0===n&&e.apply(this,a),n=setTimeout(l,t)}return a.cancel=(()=>{clearTimeout(n)}),a}const O=["sm","md","lg","xl"],{passive:V}=p;var z=v({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:m,setDebounce:m,install({$q:e,onSSRHydrated:o}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const n=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=(e=>{const t=window.innerWidth,o=window.innerHeight;if(o!==this.height&&(this.height=o),t!==this.width)this.width=t;else if(!0!==e)return;let a=this.sizes;this.gt.xs=t>=a.sm,this.gt.sm=t>=a.md,this.gt.md=t>=a.lg,this.gt.lg=t>=a.xl,this.lt.sm=t<a.sm,this.lt.md=t<a.md,this.lt.lg=t<a.lg,this.lt.xl=t<a.xl,this.xs=this.lt.sm,this.sm=!0===this.gt.xs&&!0===this.lt.md,this.md=!0===this.gt.sm&&!0===this.lt.lg,this.lg=!0===this.gt.md&&!0===this.lt.xl,this.xl=this.gt.lg,a=(!0===this.xs?"xs":!0===this.sm&&"sm")||!0===this.md&&"md"||!0===this.lg&&"lg"||"xl",a!==this.name&&(!0===n&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${a}`)),this.name=a)});let a,l={},i=16;this.setSizes=(e=>{O.forEach(t=>{void 0!==e[t]&&(l[t]=e[t])})}),this.setDebounce=(e=>{i=e});const r=()=>{const e=getComputedStyle(document.body),t=void 0!==window.visualViewport?window.visualViewport:window;e.getPropertyValue("--q-size-sm")&&O.forEach(t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)}),this.setSizes=(e=>{O.forEach(t=>{e[t]&&(this.sizes[t]=e[t])}),this.__update(!0)}),this.setDebounce=(e=>{void 0!==a&&t.removeEventListener("resize",a,V),a=e>0?B(this.__update,e):this.__update,t.addEventListener("resize",a,V)}),this.setDebounce(i),Object.keys(l).length>0?(this.setSizes(l),l=void 0):this.__update(),!0===n&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===t.value?o.push(r):r()}});const L=v({isActive:!1,mode:!1},{__media:void 0,set(e){L.mode=e,"auto"===e?(void 0===L.__media&&(L.__media=window.matchMedia("(prefers-color-scheme: dark)"),L.__updateMedia=(()=>{L.set("auto")}),L.__media.addListener(L.__updateMedia)),e=L.__media.matches):void 0!==L.__media&&(L.__media.removeListener(L.__updateMedia),L.__media=void 0),L.isActive=!0===e,document.body.classList.remove(`body--${!0===e?"light":"dark"}`),document.body.classList.add(`body--${!0===e?"dark":"light"}`)},toggle(){L.set(!1===L.isActive)},install({$q:e,onSSRHydrated:o,ssrContext:n}){const{dark:a}=e.config;if(e.dark=this,!0===this.__installed&&void 0===a)return;this.isActive=!0===a;const l=void 0!==a&&a;if(!0===t.value){const e=e=>{this.__fromSSR=e},t=this.set;this.set=e,e(l),o.push(()=>{this.set=t,this.set(this.__fromSSR)})}else this.set(l)}}),E=()=>!0;function P(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function A(e){return!0===e.startsWith("#")&&(e=e.substr(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substr(0,e.length-1)),"#"+e}function F(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return E;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(P).map(A)),()=>t.includes(window.location.hash)}var R={__history:[],add:m,remove:m,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:o}=c.is;if(!0!==t&&!0!==o)return;const n=e.config[!0===t?"cordova":"capacitor"];if(void 0!==n&&!1===n.backButton)return;if(!0===o&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=(e=>{void 0===e.condition&&(e.condition=E),this.__history.push(e)}),this.remove=(e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)});const a=F(Object.assign({backButtonExit:!0},n)),l=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===a()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",l,!1)}):window.Capacitor.Plugins.App.addListener("backButton",l)}},I={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,o)=>e+"-"+t+" of "+o,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function N(){const e=!0===Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase()).join("-")}const j=v({__langPack:{}},{getLocale:N,set(e=I,t){const o={...e,rtl:!0===e.rtl,getLocale:N};{const e=document.documentElement;e.setAttribute("dir",!0===o.rtl?"rtl":"ltr"),e.setAttribute("lang",o.isoName),o.set=j.set,Object.assign(j.__langPack,o),j.props=o,j.isoName=o.isoName,j.nativeName=o.nativeName}},install({$q:e,lang:t,ssrContext:o}){e.lang=j.__langPack,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||I)}});function D(e,t,o=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(o instanceof Element))throw new TypeError("Expected a DOM element");o.style.setProperty(`--q-${e}`,t)}let H=!1;function Q(e){H=!0===e.isComposing}function U(e){return!0===H||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function W(e,t){return!0!==U(e)&&[].concat(t).includes(e.keyCode)}function Y(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function K({is:e,has:t,within:o},n){const a=[!0===e.desktop?"desktop":"mobile",`${!1===t.touch?"no-":""}touch`];if(!0===e.mobile){const t=Y(e);void 0!==t&&a.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;a.push(t),a.push("native-mobile"),!0!==e.ios||void 0!==n[t]&&!1===n[t].iosStatusBarPadding||a.push("q-ios-padding")}else!0===e.electron?a.push("electron"):!0===e.bex&&a.push("bex");return!0===o.iframe&&a.push("within-iframe"),a}function X(){const e=document.body.className;let t=e;void 0!==o&&(t=t.replace("desktop","platform-ios mobile")),!0===c.has.touch&&(t=t.replace("no-touch","touch")),!0===c.within.iframe&&(t+=" within-iframe"),e!==t&&(document.body.className=t)}function Z(e){for(const t in e)D(t,e[t])}var G={install(e){const{$q:o}=e;if(void 0!==o.config.brand&&Z(o.config.brand),!0!==this.__installed){if(!0===t.value)X();else{const e=K(c,o.config);document.body.classList.add.apply(document.body.classList,e)}!0===c.is.ios&&document.body.addEventListener("touchstart",m),window.addEventListener("keydown",Q,!0)}}},J={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"}};const ee=v({iconMapFn:null,__icons:{}},{set(e,t){const o={...e,rtl:!0===e.rtl};o.set=ee.set,Object.assign(ee.__icons,o)},install({$q:e,iconSet:t,ssrContext:o}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,Object.defineProperty(e,"iconMapFn",{get:()=>this.iconMapFn,set:e=>{this.iconMapFn=e}}),!0===this.__installed?void 0!==t&&this.set(t):this.set(t||J)}}),te="_q_",oe="_q_t_",ne="_q_s_",ae="_q_l_",le="_q_pc_",ie="_q_f_",re="_q_fo_",se="_q_tabs_",ue="_q_u_",ce={};let de=!1;function ve(){de=!0}const pe=[d,G,L,z,R,j,ee];function me(t,o){const n=e.createApp(t);n.config.globalProperties=o.config.globalProperties;const{reload:a,...l}=o._context;return Object.assign(n._context,l),n}function fe(e,t){t.forEach(t=>{t.install(e),t.__installed=!0})}function he(e,o,n){e.config.globalProperties.$q=n.$q,e.provide(te,n.$q),fe(n,pe),void 0!==o.components&&Object.values(o.components).forEach(t=>{Object(t)===t&&void 0!==t.name&&e.component(t.name,t)}),void 0!==o.directives&&Object.values(o.directives).forEach(t=>{Object(t)===t&&void 0!==t.name&&e.directive(t.name,t)}),void 0!==o.plugins&&fe(n,Object.values(o.plugins).filter(e=>"function"===typeof e.install&&!1===pe.includes(e))),!0===t.value&&(n.$q.onSSRHydrated=(()=>{n.onSSRHydrated.forEach(e=>{e()}),n.$q.onSSRHydrated=(()=>{})}))}var ge=function(e,t={}){const o={version:"2.2.1"};!1===de?(void 0!==t.config&&Object.assign(ce,t.config),o.config={...ce},ve()):o.config=t.config||{},he(e,t,{parentApp:e,$q:o,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})};const be=["B","KB","MB","GB","TB","PB"];function ye(e){let t=0;while(parseInt(e,10)>=1024&&t<be.length-1)e/=1024,++t;return`${e.toFixed(1)}${be[t]}`}function we(e){return e.charAt(0).toUpperCase()+e.slice(1)}function xe(e,t,o){return o<=t?t:Math.min(o,Math.max(t,e))}function _e(e,t,o){if(o<=t)return t;const n=o-t+1;let a=t+(e-t)%n;return a<t&&(a=n+a),0===a?0:a}function Ce(e,t=2,o="0"){if(void 0===e||null===e)return e;const n=""+e;return n.length>=t?n:new Array(t-n.length+1).join(o)+n}var Se={humanStorageSize:ye,capitalize:we,between:xe,normalizeToInterval:_e,pad:Ce};const qe=XMLHttpRequest,ke=qe.prototype.send,$e=[],Me=[];let Te=0;function Be({p:e,pos:t,active:o,horiz:n,reverse:a,dir:l}){let i=1,r=1;return n?(a&&(i=-1),"bottom"===t&&(r=-1),{transform:`translate3d(${i*(e-100)}%,${o?0:-200*r}%,0)`}):(a&&(r=-1),"right"===t&&(i=-1),{transform:`translate3d(${o?0:l*i*-200}%,${r*(e-100)}%,0)`})}function Oe(e,t){return"number"!==typeof t&&(t=e<25?3*Math.random()+3:e<65?3*Math.random():e<85?2*Math.random():e<99?.6:0),xe(e+t,0,100)}function Ve(e,t){function o(){Me.forEach(e=>{e()})}$e.push(e),Me.push(t),Te++,Te>1||(qe.prototype.send=function(){$e.forEach(e=>{e()}),this.addEventListener("loadend",o,!1),ke.apply(this,arguments)})}function ze(e,t){$e.splice($e.indexOf(e),1),Me.splice(Me.indexOf(t),1),Te=Math.max(0,Te-1),0===Te&&(qe.prototype.send=ke)}var Le=e.defineComponent({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:e=>["top","right","bottom","left"].includes(e)},size:{type:String,default:"2px"},color:String,skipHijack:Boolean,reverse:Boolean},emits:["start","stop"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),a=e.ref(0),l=e.ref(!1),i=e.ref(!0);let r,s,u=0;const c=e.computed(()=>`q-loading-bar q-loading-bar--${t.position}`+(void 0!==t.color?` bg-${t.color}`:"")+(!0===i.value?"":" no-transition")),d=e.computed(()=>"top"===t.position||"bottom"===t.position),v=e.computed(()=>!0===d.value?"height":"width"),p=e.computed(()=>{const e=l.value,o=Be({p:a.value,pos:t.position,active:e,horiz:d.value,reverse:!0===n.$q.lang.rtl&&["top","bottom"].includes(t.position)?!t.reverse:t.reverse,dir:!0===n.$q.lang.rtl?-1:1});return o[v.value]=t.size,o.opacity=e?1:0,o}),m=e.computed(()=>!0===l.value?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a.value}:{"aria-hidden":"true"});function f(e=300){const t=s;s=Math.max(0,e)||0,u++,u>1?0===t&&e>0?b():t>0&&e<=0&&clearTimeout(r):(clearTimeout(r),o("start"),a.value=0,!0!==l.value&&(l.value=!0,i.value=!1,r=setTimeout(()=>{i.value=!0,e>0&&b()},100)))}function h(e){u>0&&(a.value=Oe(a.value,e))}function g(){if(u=Math.max(0,u-1),u>0)return;clearTimeout(r),o("stop");const e=()=>{i.value=!0,a.value=100,r=setTimeout(()=>{l.value=!1},1e3)};0===a.value?r=setTimeout(e,1):e()}function b(){a.value<100&&(r=setTimeout(()=>{h(),b()},s))}let y;return e.onMounted(()=>{!0!==t.skipHijack&&(y=!0,Ve(f,g))}),e.onBeforeUnmount(()=>{clearTimeout(r),!0===y&&ze(f,g)}),Object.assign(n,{start:f,stop:g,increment:h}),()=>e.h("div",{class:c.value,style:p.value,...m.value})}});const Ee={xs:18,sm:24,md:32,lg:38,xl:46},Pe={size:String};function Ae(t,o=Ee){return e.computed(()=>void 0!==t.size?{fontSize:t.size in o?`${o[t.size]}px`:t.size}:null)}function Fe(e,t){return void 0!==e&&e()||t}function Re(e,t){if(void 0!==e){const t=e();if(void 0!==t&&null!==t)return t.slice()}return t}function Ie(e,t){return void 0!==e?t.concat(e()):t}function Ne(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function je(t,o,n,a,l,i){o.key=a+l;const r=e.h(t,o,n);return!0===l?e.withDirectives(r,i()):r}const De=e=>e,He=e=>`ionicons ${e}`,Qe={"icon-":De,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":He,"ion-ios":He,"ion-logo":He,"mdi-":e=>`mdi ${e}`,"iconfont ":De,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},Ue={o_:"-outlined",r_:"-round",s_:"-sharp"},We=new RegExp("^("+Object.keys(Qe).join("|")+")"),Ye=new RegExp("^("+Object.keys(Ue).join("|")+")"),Ke=/^M/,Xe=/^img:/,Ze=/^svguse:/,Ge=/^ion-/,Je=/^[l|f]a[s|r|l|b|d]? /;var et=e.defineComponent({name:"QIcon",props:{...Pe,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=Ae(t),l=e.computed(()=>"q-icon"+(!0===t.left?" on-left":"")+(!0===t.right?" on-right":"")+(void 0!==t.color?` text-${t.color}`:"")),i=e.computed(()=>{let o,a=t.name;if(!a)return{none:!0,cls:l.value};if(null!==n.iconMapFn){const e=n.iconMapFn(a);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls+" "+l.value,content:void 0!==e.content?e.content:" "};a=e.icon}}if(!0===Ke.test(a)){const[t,o]=a.split("|");return{svg:!0,cls:l.value,nodes:t.split("&&").map(t=>{const[o,n,a]=t.split("@@");return e.h("path",{style:n,d:o,transform:a})}),viewBox:void 0!==o?o:"0 0 24 24"}}if(!0===Xe.test(a))return{img:!0,cls:l.value,src:a.substring(4)};if(!0===Ze.test(a)){const[e,t]=a.split("|");return{svguse:!0,cls:l.value,src:e.substring(7),viewBox:void 0!==t?t:"0 0 24 24"}}let i=" ";const r=a.match(We);if(null!==r)o=Qe[r[1]](a);else if(!0===Je.test(a))o=a;else if(!0===Ge.test(a))o=`ionicons ion-${!0===n.platform.is.ios?"ios":"md"}${a.substr(3)}`;else{o="notranslate material-icons";const e=a.match(Ye);null!==e&&(a=a.substring(2),o+=Ue[e[1]]),i=a}return{cls:o+" "+l.value,content:i}});return()=>{const n={class:i.value.cls,style:a.value,"aria-hidden":"true",role:"presentation"};return!0===i.value.none?e.h(t.tag,n,Fe(o.default)):!0===i.value.img?(n.src=i.value.src,e.h("img",n)):!0===i.value.svg?(n.viewBox=i.value.viewBox,e.h("svg",n,Ie(o.default,i.value.nodes))):!0===i.value.svguse?(n.viewBox=i.value.viewBox,e.h("svg",n,Ie(o.default,[e.h("use",{"xlink:href":i.value.src})]))):e.h(t.tag,n,Ie(o.default,[i.value.content]))}}}),tt=e.defineComponent({name:"QAvatar",props:{...Pe,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(t,{slots:o}){const n=Ae(t),a=e.computed(()=>"q-avatar"+(t.color?` bg-${t.color}`:"")+(t.textColor?` text-${t.textColor} q-chip--colored`:"")+(!0===t.square?" q-avatar--square":!0===t.rounded?" rounded-borders":"")),l=e.computed(()=>t.fontSize?{fontSize:t.fontSize}:null);return()=>{const i=void 0!==t.icon?[e.h(et,{name:t.icon})]:void 0;return e.h("div",{class:a.value,style:n.value},[e.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:l.value},Ne(o.default,i))])}}});const ot=["top","middle","bottom"];var nt=e.defineComponent({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>ot.includes(e)}},setup(t,{slots:o}){const n=e.computed(()=>{return void 0!==t.align?{verticalAlign:t.align}:null}),a=e.computed(()=>{const e=!0===t.outline&&t.color||t.textColor;return"q-badge flex inline items-center no-wrap"+` q-badge--${!0===t.multiLine?"multi":"single"}-line`+(!0===t.outline?" q-badge--outline":void 0!==t.color?` bg-${t.color}`:"")+(void 0!==e?` text-${e}`:"")+(!0===t.floating?" q-badge--floating":"")+(!0===t.rounded?" q-badge--rounded":"")+(!0===t.transparent?" q-badge--transparent":"")});return()=>e.h("div",{class:a.value,style:n.value,role:"alert","aria-label":t.label},void 0!==t.label?t.label:Fe(o.default))}});const at={dark:{type:Boolean,default:null}};function lt(t,o){return e.computed(()=>null===t.dark?o.dark.isActive:t.dark)}var it=e.defineComponent({name:"QBanner",props:{...at,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),l=e.computed(()=>"q-banner row items-center"+(!0===t.dense?" q-banner--dense":"")+(!0===a.value?" q-banner--dark q-dark":"")+(!0===t.rounded?" rounded-borders":"")),i=e.computed(()=>"q-banner__actions row items-center justify-end"+` col-${!0===t.inlineActions?"auto":"all"}`);return()=>{const n=[e.h("div",{class:"q-banner__avatar col-auto row items-center self-start"},Fe(o.avatar)),e.h("div",{class:"q-banner__content col text-body2"},Fe(o.default))],a=Fe(o.action);return void 0!==a&&n.push(e.h("div",{class:i.value},a)),e.h("div",{class:l.value+(!1===t.inlineActions&&void 0!==a?" q-banner--top-padding":""),role:"alert"},n)}}}),rt=e.defineComponent({name:"QBar",props:{...at,dense:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),l=e.computed(()=>"q-bar row no-wrap items-center"+` q-bar--${!0===t.dense?"dense":"standard"} `+` q-bar--${!0===a.value?"dark":"light"}`);return()=>e.h("div",{class:l.value,role:"toolbar"},Fe(o.default))}});const st={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},ut=Object.keys(st),ct={align:{type:String,validator:e=>ut.includes(e)}};function dt(t){return e.computed(()=>{const e=void 0===t.align?!0===t.vertical?"stretch":"left":t.align;return`${!0===t.vertical?"items":"justify"}-${st[e]}`})}function vt(e){if(void 0!==e.$parent&&null!==e.$parent)return e.$parent;e=e.$.parent;while(void 0!==e&&null!==e){if(void 0!==e.proxy&&null!==e.proxy)return e.proxy;e=e.parent}}function pt(e){const t=new Set;return e.forEach(e=>{"symbol"===typeof e.type&&!0===Array.isArray(e.children)?e.children.forEach(e=>{t.add(e)}):t.add(e)}),Array.from(t)}function mt(e){return void 0!==e.appContext.config.globalProperties.$router}var ft=e.defineComponent({name:"QBreadcrumbs",props:{...ct,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(t,{slots:o}){const n=dt(t),a=e.computed(()=>`flex items-center ${n.value}${"none"===t.gutter?"":` q-gutter-${t.gutter}`}`),l=e.computed(()=>t.separatorColor?` text-${t.separatorColor}`:""),i=e.computed(()=>`text-${t.activeColor}`);return()=>{const n=pt(Fe(o.default));if(void 0===n)return;let r=1;const s=[],u=n.filter(e=>void 0!==e.type&&"QBreadcrumbsEl"===e.type.name).length,c=void 0!==o.separator?o.separator:()=>t.separator;return n.forEach(t=>{if(void 0!==t.type&&"QBreadcrumbsEl"===t.type.name){const o=r<u;r++,s.push(e.h("div",{class:"flex items-center "+(!0===o?i.value:"q-breadcrumbs--last")},[t])),!0===o&&s.push(e.h("div",{class:"q-breadcrumbs__separator"+l.value},c()))}else s.push(t)}),e.h("div",{class:"q-breadcrumbs"},[e.h("div",{class:a.value},s)])}}});function ht(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function gt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function bt(e,t){for(const o in t){const n=t[o],a=e[o];if("string"===typeof n){if(n!==a)return!1}else if(!1===Array.isArray(a)||a.length!==n.length||n.some((e,t)=>e!==a[t]))return!1}return!0}function yt(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}function wt(e,t){return!0===Array.isArray(e)?yt(e,t):!0===Array.isArray(t)?yt(t,e):e===t}function xt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!1===wt(e[o],t[o]))return!1;return!0}const _t={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},disable:Boolean};function Ct(){const t=e.getCurrentInstance(),{props:o,attrs:n,proxy:a}=t,l=mt(t),i=e.computed(()=>!0===l&&!0!==o.disable&&void 0!==o.to&&null!==o.to&&""!==o.to),r=e.computed(()=>{if(!0===i.value)try{return a.$router.resolve(o.to)}catch(e){}return null}),s=e.computed(()=>null!==r.value),u=e.computed(()=>!0===s.value?"a":o.tag||"div"),c=e.computed(()=>{if(!1===s.value)return null;const{matched:e}=r.value,{length:t}=e,o=e[t-1];if(void 0===o)return-1;const n=a.$route.matched;if(0===n.length)return-1;const l=n.findIndex(gt.bind(null,o));if(l>-1)return l;const i=ht(e[t-2]);return t>1&&ht(o)===i&&n[n.length-1].path!==i?n.findIndex(gt.bind(null,e[t-2])):l}),d=e.computed(()=>!0===s.value&&c.value>-1&&bt(a.$route.params,r.value.params)),v=e.computed(()=>!0===d.value&&c.value===a.$route.matched.length-1&&xt(a.$route.params,r.value.params)),p=e.computed(()=>!0===s.value?!0===v.value?` ${o.exactActiveClass} ${o.activeClass}`:!0===o.exact?"":!0===d.value?` ${o.activeClass}`:"":""),m=e.computed(()=>!0===s.value?{href:r.value.href,target:n.target,role:"link"}:{});function f(e){return!(!0===o.disable||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||!0!==e.__qNavigate&&!0===e.defaultPrevented||void 0!==e.button&&0!==e.button||"_blank"===n.target)&&(S(e),a.$router[!0===o.replace?"replace":"push"](o.to).catch(()=>{}))}return{hasLink:s,linkTag:u,linkRoute:r,linkIsActive:d,linkIsExactActive:v,linkClass:p,linkProps:m,navigateToLink:f}}var St=e.defineComponent({name:"QBreadcrumbsEl",props:{..._t,label:String,icon:String,tag:{type:String,default:"span"}},setup(t,{slots:o}){const{linkTag:n,linkProps:a,hasLink:l,navigateToLink:i}=Ct(),r=e.computed(()=>{const e={...a.value};return!0===l.value&&(e.onClick=i),e}),s=e.computed(()=>"q-breadcrumbs__el-icon"+(void 0!==t.label?" q-breadcrumbs__el-icon--with-label":""));return()=>{const a=[];return void 0!==t.icon&&a.push(e.h(et,{class:s.value,name:t.icon})),void 0!==t.label&&a.push(t.label),e.h(n.value,{class:"q-breadcrumbs__el q-link flex inline items-center relative-position",...r.value},Ie(o.default,a))}}});const qt={size:{type:[Number,String],default:"1em"},color:String};function kt(t){return{cSize:e.computed(()=>t.size in Ee?`${Ee[t.size]}px`:t.size),classes:e.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}var $t=e.defineComponent({name:"QSpinner",props:{...qt,thickness:{type:Number,default:5}},setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[e.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}});function Mt(e){if(e===window)return{top:0,left:0};const{top:t,left:o}=e.getBoundingClientRect();return{top:t,left:o}}function Tt(e,t){return window.getComputedStyle(e).getPropertyValue(t)}function Bt(e){return e===window?window.innerHeight:e.getBoundingClientRect().height}function Ot(e){return e===window?window.innerWidth:e.getBoundingClientRect().width}function Vt(e,t){const o=e.style;Object.keys(t).forEach(e=>{o[e]=t[e]})}function zt(e,t){e.forEach(e=>Vt(e,t))}function Lt(e){if("function"===typeof e)return"loading"!==document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)}function Et(t){if(void 0===t||null===t)return;if("string"===typeof t)try{return document.querySelector(t)||void 0}catch(e){return}const o=!0===e.isRef(t)?t.value:t;return o?o.$el||o:void 0}function Pt(e,t){if(void 0===e||null===e||!0===e.contains(t))return!0;for(let o=e.nextElementSibling;null!==o;o=o.nextElementSibling)if(o.contains(t))return!0;return!1}var At={offset:Mt,style:Tt,height:Bt,width:Ot,css:Vt,cssBatch:zt,ready:Lt};function Ft(e,t=250){let o,n=!1;return function(){return!1===n&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function Rt(e,t,o,n){!0===o.modifiers.stop&&C(e);const a=o.modifiers.color;let l=o.modifiers.center;l=!0===l||!0===n;const i=document.createElement("span"),r=document.createElement("span"),s=b(e),{left:u,top:c,width:d,height:v}=t.getBoundingClientRect(),p=Math.sqrt(d*d+v*v),m=p/2,f=`${(d-p)/2}px`,h=l?f:`${s.left-u-m}px`,g=`${(v-p)/2}px`,y=l?g:`${s.top-c-m}px`;r.className="q-ripple__inner",Vt(r,{height:`${p}px`,width:`${p}px`,transform:`translate3d(${h},${y},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${a?" text-"+a:""}`,i.setAttribute("dir","ltr"),i.appendChild(r),t.appendChild(i);const w=()=>{i.remove(),clearTimeout(x)};o.abort.push(w);let x=setTimeout(()=>{r.classList.add("q-ripple__inner--enter"),r.style.transform=`translate3d(${f},${g},0) scale3d(1,1,1)`,r.style.opacity=.2,x=setTimeout(()=>{r.classList.remove("q-ripple__inner--enter"),r.classList.add("q-ripple__inner--leave"),r.style.opacity=0,x=setTimeout(()=>{i.remove(),o.abort.splice(o.abort.indexOf(w),1)},275)},250)},50)}function It(e,{modifiers:t,value:o,arg:n,instance:a}){const l=Object.assign({},a.$q.config.ripple,t,o);e.modifiers={early:!0===l.early,stop:!0===l.stop,center:!0===l.center,color:l.color||n,keyCodes:[].concat(l.keyCodes||13)}}var Nt={name:"ripple",beforeMount(e,t){const o={enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===o.enabled&&!0!==t.qSkipRipple&&(!0===o.modifiers.early?!0===["mousedown","touchstart"].includes(t.type):"click"===t.type)&&Rt(t,e,o,!0===t.qKeyEvent)},keystart:Ft(t=>{!0===o.enabled&&!0!==t.qSkipRipple&&!0===W(t,o.modifiers.keyCodes)&&t.type===`key${!0===o.modifiers.early?"down":"up"}`&&Rt(t,e,o,!0)},300)};It(o,t),e.__qripple=o,$(o,"main",[[e,"mousedown","start","passive"],[e,"touchstart","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const o=e.__qripple;o.enabled=!1!==t.value,!0===o.enabled&&Object(t.value)===t.value&&It(o,t)}},beforeUnmount(e){const t=e.__qripple;t.abort.forEach(e=>{e()}),M(t,"main"),delete e._qripple}};const jt={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Dt={xs:8,sm:10,md:14,lg:20,xl:24},Ht={...Pe,..._t,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,round:Boolean,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...ct.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function Qt(t){const o=Ae(t,Dt),n=dt(t),{hasLink:a,linkProps:l,navigateToLink:i}=Ct(),r=e.computed(()=>{const e=!1===t.fab&&!1===t.fabMini?o.value:{};return void 0!==t.padding?Object.assign({},e,{padding:t.padding.split(/\s+/).map(e=>e in jt?jt[e]+"px":e).join(" "),minWidth:"0",minHeight:"0"}):e}),s=e.computed(()=>!0===t.rounded||!0===t.fab||!0===t.fabMini),u=e.computed(()=>!0!==t.disable&&!0!==t.loading),c=e.computed(()=>!0===u.value?t.tabindex||0:-1),d=e.computed(()=>"a"===t.type||!0===a.value),v=e.computed(()=>{return!0===t.flat?"flat":!0===t.outline?"outline":!0===t.push?"push":!0===t.unelevated?"unelevated":"standard"}),p=e.computed(()=>{const e={tabindex:c.value};return"a"===t.type||"button"===t.type&&!0===a.value||(e.type=t.type),!0===a.value?(Object.assign(e,l.value),e.role="link"):e.role="a"===t.type?"link":"button",!0===t.loading&&void 0!==t.percentage&&Object.assign(e,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),!0===t.disable&&(e.disabled="",e["aria-disabled"]="true"),e}),m=e.computed(()=>{let e;return void 0!==t.color?e=!0===t.flat||!0===t.outline?`text-${t.textColor||t.color}`:`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(e=`text-${t.textColor}`),`q-btn--${v.value} `+`q-btn--${!0===t.round?"round":`rectangle${!0===s.value?" q-btn--rounded":""}`}`+(void 0!==e?" "+e:"")+(!0===u.value?" q-btn--actionable q-focusable q-hoverable":!0===t.disable?" disabled":"")+(!0===t.fab?" q-btn--fab":!0===t.fabMini?" q-btn--fab-mini":"")+(!0===t.noCaps?" q-btn--no-uppercase":"")+(!0===t.dense?" q-btn--dense":"")+(!0===t.stretch?" no-border-radius self-stretch":"")+(!0===t.glossy?" glossy":"")}),f=e.computed(()=>n.value+(!0===t.stack?" column":" row")+(!0===t.noWrap?" no-wrap text-no-wrap":"")+(!0===t.loading?" q-btn__content--hidden":""));return{classes:m,style:r,innerClasses:f,attributes:p,hasLink:a,isLink:d,navigateToLink:i,isActionable:u}}const{passiveCapture:Ut}=p;let Wt=null,Yt=null,Kt=null;var Xt=e.defineComponent({name:"QBtn",props:{...Ht,percentage:Number,darkPercentage:Boolean},emits:["click","keydown","touchstart","mousedown","keyup"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{classes:l,style:i,innerClasses:r,attributes:s,hasLink:u,isLink:c,navigateToLink:d,isActionable:v}=Qt(t),p=e.ref(null),m=e.ref(null);let f,h,g=null;const b=e.computed(()=>void 0!==t.label&&null!==t.label&&""!==t.label),y=e.computed(()=>!0!==t.disable&&!1!==t.ripple&&{keyCodes:!0===c.value?[13,32]:[13],...!0===t.ripple?{}:t.ripple}),w=e.computed(()=>({center:t.round})),x=e.computed(()=>{const e=Math.max(0,Math.min(100,t.percentage));return e>0?{transition:"transform 0.6s",transform:`translateX(${e-100}%)`}:{}}),_=e.computed(()=>{return!0===t.loading?{onMousedown:z,onTouchstartPassive:z,onClick:z,onKeydown:z,onKeyup:z}:!0===v.value?{onClick:$,onKeydown:M,onMousedown:B,onTouchstartPassive:T}:{onClick:q}}),k=e.computed(()=>({ref:p,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:i.value,...s.value,..._.value}));function $(e){if(null!==p.value){if(void 0!==e){if(!0===e.defaultPrevented)return;const o=document.activeElement;if("submit"===t.type&&o!==document.body&&!1===p.value.contains(o)&&!1===o.contains(p.value)){p.value.focus();const e=()=>{document.removeEventListener("keydown",q,!0),document.removeEventListener("keyup",e,Ut),null!==p.value&&p.value.removeEventListener("blur",e,Ut)};document.addEventListener("keydown",q,!0),document.addEventListener("keyup",e,Ut),p.value.addEventListener("blur",e,Ut)}}if(!0===u.value){const t=()=>{e.__qNavigate=!0,d(e)};n("click",e,t),!0!==e.defaultPrevented&&t()}else n("click",e)}}function M(e){null!==p.value&&(!0===W(e,[13,32])&&(q(e),Yt!==p.value&&(null!==Yt&&V(),p.value.focus(),Yt=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("keyup",O,!0),p.value.addEventListener("blur",O,Ut))),n("keydown",e))}function T(e){null!==p.value&&(Wt!==p.value&&(null!==Wt&&V(),Wt=p.value,g=e.target,g.addEventListener("touchcancel",O,Ut),g.addEventListener("touchend",O,Ut)),f=!0,clearTimeout(h),h=setTimeout(()=>{f=!1},200),n("touchstart",e))}function B(e){null!==p.value&&(Kt!==p.value&&(null!==Kt&&V(),Kt=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("mouseup",O,Ut)),e.qSkipRipple=!0===f,n("mousedown",e))}function O(e){if(null!==p.value&&(void 0===e||"blur"!==e.type||document.activeElement!==p.value)){if(void 0!==e&&"keyup"===e.type){if(Yt===p.value&&!0===W(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&S(t),!0===e.cancelBubble&&C(t),p.value.dispatchEvent(t),q(e),e.qKeyEvent=!0}n("keyup",e)}V()}}function V(e){const t=m.value;!0===e||Wt!==p.value&&Kt!==p.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),Wt===p.value&&(null!==g&&(g.removeEventListener("touchcancel",O,Ut),g.removeEventListener("touchend",O,Ut)),Wt=g=null),Kt===p.value&&(document.removeEventListener("mouseup",O,Ut),Kt=null),Yt===p.value&&(document.removeEventListener("keyup",O,!0),null!==p.value&&p.value.removeEventListener("blur",O,Ut),Yt=null),null!==p.value&&p.value.classList.remove("q-btn--active")}function z(e){e.qSkipRipple=!0}return e.onBeforeUnmount(()=>{V(!0)}),Object.assign(a,{click:$}),()=>{let n=[];void 0!==t.icon&&n.push(e.h(et,{name:t.icon,left:!1===t.stack&&!0===b.value,role:"img","aria-hidden":"true"})),!0===b.value&&n.push(e.h("span",{class:"block"},[t.label])),n=Ie(o.default,n),void 0!==t.iconRight&&!1===t.round&&n.push(e.h(et,{name:t.iconRight,right:!1===t.stack&&!0===b.value,role:"img","aria-hidden":"true"}));const a=[e.h("span",{class:"q-focus-helper",ref:m})];return!0===t.loading&&void 0!==t.percentage&&a.push(e.h("span",{class:"q-btn__progress absolute-full overflow-hidden"},[e.h("span",{class:"q-btn__progress-indicator fit block"+(!0===t.darkPercentage?" q-btn__progress--dark":""),style:x.value})])),a.push(e.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},n)),null!==t.loading&&a.push(e.h(e.Transition,{name:"q-transition--fade"},()=>!0===t.loading?[e.h("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==o.loading?o.loading():[e.h($t)])]:null)),e.withDirectives(e.h(!0===c.value?"a":"button",k.value,a),[[Nt,y.value,void 0,w.value]])}}}),Zt=e.defineComponent({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(t,{slots:o}){const n=e.computed(()=>{const e=["unelevated","outline","flat","rounded","push","stretch","glossy"].filter(e=>!0===t[e]).map(e=>`q-btn-group--${e}`).join(" ");return`q-btn-group row no-wrap${e.length>0?" "+e:""}`+(!0===t.spread?" q-btn-group--spread":" inline")});return()=>e.h("div",{class:n.value},Fe(o.default))}});function Gt(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==d.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}const Jt={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function eo({showing:t,avoidEmit:o,configureAnchorEl:n}){const{props:a,proxy:l,emit:i}=e.getCurrentInstance(),r=e.ref(null);let s;function u(e){return null!==r.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const c={};function d(){M(c,"anchor")}function v(e){r.value=e;while(r.value.classList.contains("q-anchor--skip"))r.value=r.value.parentNode;n()}function p(){if(!1===a.target||""===a.target)r.value=null;else if(!0===a.target)v(l.$el.parentNode);else{let e=a.target;if("string"===typeof a.target)try{e=document.querySelector(a.target)}catch(t){e=void 0}void 0!==e&&null!==e?(r.value=e.$el||e,n()):(r.value=null,console.error(`Anchor: target "${a.target}" not found`))}}return void 0===n&&(Object.assign(c,{hide(e){l.hide(e)},toggle(e){l.toggle(e),e.qAnchorHandled=!0},toggleKey(e){!0===W(e,13)&&c.toggle(e)},contextClick(t){l.hide(t),S(t),e.nextTick(()=>{l.show(t),t.qAnchorHandled=!0})},prevent:S,mobileTouch(e){if(c.mobileCleanup(e),!0!==u(e))return;l.hide(e),r.value.classList.add("non-selectable");const t=e.target;$(c,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[r.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{l.show(e),e.qAnchorHandled=!0},300)},mobileCleanup(e){r.value.classList.remove("non-selectable"),clearTimeout(s),!0===t.value&&void 0!==e&&Gt()}}),n=function(e=a.contextMenu){if(!0===a.noParentEvent||null===r.value)return;let t;t=!0===e?!0===l.$q.platform.is.mobile?[[r.value,"touchstart","mobileTouch","passive"]]:[[r.value,"mousedown","hide","passive"],[r.value,"contextmenu","contextClick","notPassive"]]:[[r.value,"click","toggle","passive"],[r.value,"keyup","toggleKey","passive"]],$(c,"anchor",t)}),e.watch(()=>a.contextMenu,e=>{null!==r.value&&(d(),n(e))}),e.watch(()=>a.target,()=>{null!==r.value&&d(),p()}),e.watch(()=>a.noParentEvent,e=>{null!==r.value&&(!0===e?d():n())}),e.onMounted(()=>{p(),!0!==o&&!0===a.modelValue&&null===r.value&&i("update:modelValue",!1)}),e.onBeforeUnmount(()=>{clearTimeout(s),d()}),{anchorEl:r,canShow:u,anchorEvents:c}}function to(t,o){const n=e.ref(null);let a;function l(e,t){const o=`${void 0!==t?"add":"remove"}EventListener`,n=void 0!==t?t:a;e!==window&&e[o]("scroll",n,p.passive),window[o]("scroll",n,p.passive),a=t}function i(){null!==n.value&&(l(n.value),n.value=null)}const r=e.watch(()=>t.noParentEvent,()=>{null!==n.value&&(i(),o())});return e.onBeforeUnmount(r),{localScrollTarget:n,unconfigureScrollTarget:i,changeScrollEvent:l}}const oo={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":Function},no=["before-show","show","before-hide","hide"];function ao({showing:t,canShow:o,hideOnRouteChange:n,handleShow:a,handleHide:l,processOnMount:i}){const r=e.getCurrentInstance(),{props:s,emit:u,proxy:c}=r;let d;function v(e){!0===t.value?f(e):p(e)}function p(t){if(!0===s.disable||void 0!==t&&!0===t.qAnchorHandled||void 0!==o&&!0!==o(t))return;const n=void 0!==s["onUpdate:modelValue"];!0===n&&(u("update:modelValue",!0),d=t,e.nextTick(()=>{d===t&&(d=void 0)})),null!==s.modelValue&&!1!==n||m(t)}function m(e){!0!==t.value&&(t.value=!0,u("before-show",e),void 0!==a?a(e):u("show",e))}function f(t){if(!0===s.disable)return;const o=void 0!==s["onUpdate:modelValue"];!0===o&&(u("update:modelValue",!1),d=t,e.nextTick(()=>{d===t&&(d=void 0)})),null!==s.modelValue&&!1!==o||h(t)}function h(e){!1!==t.value&&(t.value=!1,u("before-hide",e),void 0!==l?l(e):u("hide",e))}function g(e){if(!0===s.disable&&!0===e)void 0!==s["onUpdate:modelValue"]&&u("update:modelValue",!1);else if(!0===e!==t.value){const t=!0===e?m:h;t(d)}}e.watch(()=>s.modelValue,g),void 0!==n&&!0===mt(r)&&e.watch(()=>c.$route,()=>{!0===n.value&&!0===t.value&&f()}),!0===i&&e.onMounted(()=>{g(s.modelValue)});const b={show:p,hide:f,toggle:v};return Object.assign(c,b),b}let lo=[];const io=[];function ro(e){io.push(e)}function so(e){const t=io.indexOf(e);-1!==t&&io.splice(t,1),0===io.length&&lo.length>0&&(lo[lo.length-1](),lo=[])}function uo(e){if(0!==io.length)return lo.push(e),e;e()}function co(e){const t=lo.indexOf(e);-1!==t&&lo.splice(t,1)}const vo=[];let po=document.body;function mo(e){const t=document.createElement("div");if(void 0!==e&&(t.id=e),void 0!==ce.globalNodes){const e=ce.globalNodes.class;void 0!==e&&(t.className=e)}return po.appendChild(t),vo.push(t),t}function fo(e){vo.splice(vo.indexOf(e),1),e.remove()}function ho(e){e!==po&&(po=e,vo.forEach(e=>{!1===e.contains(po)&&po.appendChild(e)}))}const go=[];function bo(e){return go.find(t=>null!==t.__qPortalInnerRef.value&&t.__qPortalInnerRef.value.contains(e))}function yo(e,t){do{if("QMenu"===e.$options.name){if(e.hide(t),!0===e.$props.separateClosePopup)return vt(e)}else if(void 0!==e.__qPortalInnerRef){const o=vt(e);return void 0!==o&&"QPopupProxy"===o.$options.name?(e.hide(t),o):e}e=vt(e)}while(void 0!==e&&null!==e)}function wo(e,t,o){while(0!==o&&void 0!==e&&null!==e){if(void 0!==e.__qPortalInnerRef){if(o--,"QMenu"===e.$options.name){e=yo(e,t);continue}e.hide(t)}e=vt(e)}}function xo(e){e=e.parent;while(void 0!==e&&null!==e){if("QGlobalDialog"===e.type.name)return!0;if("QDialog"===e.type.name||"QMenu"===e.type.name)return!1;e=e.parent}return!1}function _o(t,o,n,a){const l=e.ref(!1);let i=null;const r={},s=!0===a&&xo(t);function u(e){!0!==e?(!1===s&&null===i&&(i=mo()),l.value=!0,go.push(t.proxy),ro(r)):so(r)}function c(){so(r),l.value=!1;const e=go.indexOf(t.proxy);e>-1&&go.splice(e,1),null!==i&&(fo(i),i=null)}return e.onUnmounted(c),Object.assign(t.proxy,{__qPortalInnerRef:o}),{showPortal:u,hidePortal:c,portalIsActive:l,renderPortal:()=>!0===s?n():!0===l.value?[e.h(e.Teleport,{to:i},n())]:void 0}}const Co={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function So(t,o){const n=e.ref(o.value);return e.watch(o,t=>{e.nextTick(()=>{n.value=t})}),{transition:e.computed(()=>"q-transition--"+(!0===n.value?t.transitionHide:t.transitionShow)),transitionStyle:e.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function qo(){let t;return e.onBeforeUnmount(()=>{t=void 0}),{registerTick(e){t=e},removeTick(){t=void 0},prepareTick(){if(void 0!==t){const o=t;e.nextTick(()=>{t===o&&(t(),t=void 0)})}}}}function ko(){let t;return e.onBeforeUnmount(()=>{clearTimeout(t)}),{registerTimeout(e,o){clearTimeout(t),t=setTimeout(e,o)},removeTimeout(){clearTimeout(t)}}}const $o=[null,document,document.body,document.scrollingElement,document.documentElement];function Mo(e,t){let o=Et(t);if(void 0===o){if(void 0===e||null===e)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return $o.includes(o)?window:o}function To(e){return(e===window?document.body:e).scrollHeight}function Bo(e){return(e===window?document.body:e).scrollWidth}function Oo(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Vo(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function zo(e,t,o=0){const n=void 0===arguments[3]?performance.now():arguments[3],a=Oo(e);o<=0?a!==t&&Eo(e,t):requestAnimationFrame(l=>{const i=l-n,r=a+(t-a)/Math.max(i,o)*i;Eo(e,r),r!==t&&zo(e,t,o-i,l)})}function Lo(e,t,o=0){const n=void 0===arguments[3]?performance.now():arguments[3],a=Vo(e);o<=0?a!==t&&Po(e,t):requestAnimationFrame(l=>{const i=l-n,r=a+(t-a)/Math.max(i,o)*i;Po(e,r),r!==t&&Lo(e,t,o-i,l)})}function Eo(e,t){e!==window?e.scrollTop=t:window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t)}function Po(e,t){e!==window?e.scrollLeft=t:window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)}function Ao(e,t,o){o?zo(e,t,o):Eo(e,t)}function Fo(e,t,o){o?Lo(e,t,o):Po(e,t)}let Ro;function Io(){if(void 0!==Ro)return Ro;const e=document.createElement("p"),t=document.createElement("div");Vt(e,{width:"100%",height:"200px"}),Vt(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let n=e.offsetWidth;return o===n&&(n=t.clientWidth),t.remove(),Ro=o-n,Ro}function No(e,t=!0){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(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"])))}var jo={getScrollTarget:Mo,getScrollHeight:To,getScrollWidth:Bo,getVerticalScrollPosition:Oo,getHorizontalScrollPosition:Vo,animVerticalScrollTo:zo,animHorizontalScrollTo:Lo,setVerticalScrollPosition:Ao,setHorizontalScrollPosition:Fo,getScrollbarWidth:Io,hasScrollbar:No};const Do=[];let Ho;function Qo(e){Ho=27===e.keyCode}function Uo(){!0===Ho&&(Ho=!1)}function Wo(e){!0===Ho&&(Ho=!1,!0===W(e,27)&&Do[Do.length-1](e))}function Yo(e){window[e]("keydown",Qo),window[e]("blur",Uo),window[e]("keyup",Wo),Ho=!1}function Ko(e){!0===c.is.desktop&&(Do.push(e),1===Do.length&&Yo("addEventListener"))}function Xo(e){const t=Do.indexOf(e);t>-1&&(Do.splice(t,1),0===Do.length&&Yo("removeEventListener"))}const Zo=[];function Go(e){Zo[Zo.length-1](e)}function Jo(e){!0===c.is.desktop&&(Zo.push(e),1===Zo.length&&document.body.addEventListener("focusin",Go))}function en(e){const t=Zo.indexOf(e);t>-1&&(Zo.splice(t,1),0===Zo.length&&document.body.removeEventListener("focusin",Go))}let tn;const{notPassiveCapture:on}=p,nn=[];function an(e){clearTimeout(tn);const t=e.target;if(void 0===t||8===t.nodeType||!0===t.classList.contains("no-pointer-events"))return;let o=go.length-1;while(o>=0){const e=go[o].$;if("QDialog"!==e.type.name)break;if(!0!==e.props.seamless)return;o--}for(let n=nn.length-1;n>=0;n--){const o=nn[n];if(null!==o.anchorEl.value&&!1!==o.anchorEl.value.contains(t)||t!==document.body&&(null===o.innerRef.value||!1!==o.innerRef.value.contains(t)))return;e.qClickOutside=!0,o.onClickOutside(e)}}function ln(e){nn.push(e),1===nn.length&&(document.addEventListener("mousedown",an,on),document.addEventListener("touchstart",an,on))}function rn(e){const t=nn.findIndex(t=>t===e);t>-1&&(nn.splice(t,1),0===nn.length&&(clearTimeout(tn),document.removeEventListener("mousedown",an,on),document.removeEventListener("touchstart",an,on)))}let sn,un;function cn(e){const t=e.split(" ");return 2===t.length&&(!0!==["top","center","bottom"].includes(t[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(t[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function dn(e){return!e||2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1])}const vn={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function pn(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:vn[`${o[1]}#${!0===t?"rtl":"ltr"}`]}}function mn(e,t){let{top:o,left:n,right:a,bottom:l,width:i,height:r}=e.getBoundingClientRect();return void 0!==t&&(o-=t[1],n-=t[0],l+=t[1],a+=t[0],i+=t[0],r+=t[1]),{top:o,left:n,right:a,bottom:l,width:i,height:r,middle:n+(a-n)/2,center:o+(l-o)/2}}function fn(e){return{top:0,center:e.offsetHeight/2,bottom:e.offsetHeight,left:0,middle:e.offsetWidth/2,right:e.offsetWidth}}function hn(e){if(!0===c.is.ios&&void 0!==window.visualViewport){const e=document.body.style,{offsetLeft:t,offsetTop:o}=window.visualViewport;t!==sn&&(e.setProperty("--q-pe-left",t+"px"),sn=t),o!==un&&(e.setProperty("--q-pe-top",o+"px"),un=o)}let t;const{scrollLeft:o,scrollTop:n}=e.el;if(void 0===e.absoluteOffset)t=mn(e.anchorEl,!0===e.cover?[0,0]:e.offset);else{const{top:o,left:n}=e.anchorEl.getBoundingClientRect(),a=o+e.absoluteOffset.top,l=n+e.absoluteOffset.left;t={top:a,left:l,width:1,height:1,right:l+1,center:a,middle:l,bottom:a+1}}let a={maxHeight:e.maxHeight,maxWidth:e.maxWidth,visibility:"visible"};!0!==e.fit&&!0!==e.cover||(a.minWidth=t.width+"px",!0===e.cover&&(a.minHeight=t.height+"px")),Object.assign(e.el.style,a);const l=fn(e.el),i={top:t[e.anchorOrigin.vertical]-l[e.selfOrigin.vertical],left:t[e.anchorOrigin.horizontal]-l[e.selfOrigin.horizontal]};gn(i,t,l,e.anchorOrigin,e.selfOrigin),a={top:i.top+"px",left:i.left+"px"},void 0!==i.maxHeight&&(a.maxHeight=i.maxHeight+"px",t.height>i.maxHeight&&(a.minHeight=a.maxHeight)),void 0!==i.maxWidth&&(a.maxWidth=i.maxWidth+"px",t.width>i.maxWidth&&(a.minWidth=a.maxWidth)),Object.assign(e.el.style,a),e.el.scrollTop!==n&&(e.el.scrollTop=n),e.el.scrollLeft!==o&&(e.el.scrollLeft=o)}function gn(e,t,o,n,a){const l=o.bottom,i=o.right,r=Io(),s=window.innerHeight-r,u=document.body.clientWidth;if(e.top<0||e.top+l>s)if("center"===a.vertical)e.top=t[n.vertical]>s/2?Math.max(0,s-l):0,e.maxHeight=Math.min(l,s);else if(t[n.vertical]>s/2){const o=Math.min(s,"center"===n.vertical?t.center:n.vertical===a.vertical?t.bottom:t.top);e.maxHeight=Math.min(l,o),e.top=Math.max(0,o-l)}else e.top=Math.max(0,"center"===n.vertical?t.center:n.vertical===a.vertical?t.top:t.bottom),e.maxHeight=Math.min(l,s-e.top);if(e.left<0||e.left+i>u)if(e.maxWidth=Math.min(i,u),"middle"===a.horizontal)e.left=t[n.horizontal]>u/2?Math.max(0,u-i):0;else if(t[n.horizontal]>u/2){const o=Math.min(u,"middle"===n.horizontal?t.middle:n.horizontal===a.horizontal?t.right:t.left);e.maxWidth=Math.min(i,o),e.left=Math.max(0,o-e.maxWidth)}else e.left=Math.max(0,"middle"===n.horizontal?t.middle:n.horizontal===a.horizontal?t.left:t.right),e.maxWidth=Math.min(i,u-e.left)}["left","middle","right"].forEach(e=>{vn[`${e}#ltr`]=e,vn[`${e}#rtl`]=e});var bn=e.defineComponent({name:"QMenu",inheritAttrs:!1,props:{...Jt,...oo,...at,...Co,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:cn},self:{type:String,validator:cn},offset:{type:Array,validator:dn},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...no,"click","escape-key"],setup(t,{slots:o,emit:n,attrs:a}){let l,i,r,s=null;const u=e.getCurrentInstance(),{proxy:c}=u,{$q:d}=c,v=e.ref(null),p=e.ref(!1),m=e.computed(()=>!0!==t.persistent&&!0!==t.noRouteDismiss),f=lt(t,d),{registerTick:h,removeTick:g,prepareTick:y}=qo(),{registerTimeout:w,removeTimeout:x}=ko(),{transition:_,transitionStyle:C}=So(t,p),{localScrollTarget:S,changeScrollEvent:k,unconfigureScrollTarget:$}=to(t,H),{anchorEl:M,canShow:T}=eo({showing:p}),{hide:B}=ao({showing:p,canShow:T,handleShow:N,handleHide:j,hideOnRouteChange:m,processOnMount:!0}),{showPortal:O,hidePortal:V,renderPortal:z}=_o(u,v,K),L={anchorEl:M,innerRef:v,onClickOutside(e){if(!0!==t.persistent&&!0===p.value)return B(e),("touchstart"===e.type||e.target.classList.contains("q-dialog__backdrop"))&&q(e),!0}},E=e.computed(()=>pn(t.anchor||(!0===t.cover?"center middle":"bottom start"),d.lang.rtl)),P=e.computed(()=>!0===t.cover?E.value:pn(t.self||"top start",d.lang.rtl)),A=e.computed(()=>(!0===t.square?" q-menu--square":"")+(!0===f.value?" q-menu--dark q-dark":"")),F=e.computed(()=>!0===t.autoClose?{onClick:Q}:{}),R=e.computed(()=>!0===p.value&&!0!==t.persistent);function I(){uo(()=>{let e=v.value;e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus], [data-autofocus]")||e,e.focus())})}function N(o){if(g(),x(),s=!1===t.noRefocus?document.activeElement:null,Jo(U),O(),H(),l=void 0,void 0!==o&&(t.touchPosition||t.contextMenu)){const e=b(o);if(void 0!==e.left){const{top:t,left:o}=M.value.getBoundingClientRect();l={left:e.left-o,top:e.top-t}}}void 0===i&&(i=e.watch(()=>d.screen.width+"|"+d.screen.height+"|"+t.self+"|"+t.anchor+"|"+d.lang.rtl,Y)),!0!==t.noFocus&&document.activeElement.blur(),h(()=>{Y(),!0!==t.noFocus&&I()}),y(),w(()=>{!0===d.platform.is.ios&&(r=t.autoClose,v.value.click()),Y(),O(!0),n("show",o)},t.transitionDuration)}function j(e){g(),x(),D(!0),null===s||void 0!==e&&!0===e.qClickOutside||s.focus(),w(()=>{V(),n("hide",e)},t.transitionDuration)}function D(e){l=void 0,void 0!==i&&(i(),i=void 0),!0!==e&&!0!==p.value||(en(U),$(),rn(L),Xo(W))}function H(){null===M.value&&void 0===t.scrollTarget||(S.value=Mo(M.value,t.scrollTarget),k(S.value,Y))}function Q(e){!0!==r?(yo(c,e),n("click",e)):r=!1}function U(e){!0===R.value&&!0!==Pt(v.value,e.target)&&I()}function W(e){n("escape-key"),B(e)}function Y(){const e=v.value;null!==e&&null!==M.value&&hn({el:e,offset:t.offset,anchorEl:M.value,anchorOrigin:E.value,selfOrigin:P.value,absoluteOffset:l,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function K(){return e.h(e.Transition,{name:_.value,appear:!0},()=>!0===p.value?e.h("div",{...a,ref:v,tabindex:-1,class:["q-menu q-position-engine scroll"+A.value,a.class],style:[a.style,C.value],...F.value},Fe(o.default)):null)}return e.watch(R,e=>{!0===e?(Ko(W),ln(L)):(Xo(W),rn(L))}),e.onBeforeUnmount(D),Object.assign(c,{focus:I,updatePosition:Y}),z}}),yn=e.defineComponent({name:"QBtnDropdown",props:{...Ht,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean},emits:["update:modelValue","click","before-show","show","before-hide","hide"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),l=e.ref(t.modelValue),i=e.ref(null),r=e.computed(()=>{const e={"aria-expanded":!0===l.value?"true":"false","aria-haspopup":"true"};return(!0===t.disable||!1===t.split&&!0===t.disableMainBtn||!0===t.disableDropdown)&&(e["aria-disabled"]="true"),e}),s=e.computed(()=>"q-btn-dropdown__arrow"+(!0===l.value&&!1===t.noIconAnimation?" rotate-180":"")+(!1===t.split?" q-btn-dropdown__arrow-container":""));function u(e){l.value=!0,n("before-show",e)}function c(e){n("show",e),n("update:modelValue",!0)}function d(e){l.value=!1,n("before-hide",e)}function v(e){n("hide",e),n("update:modelValue",!1)}function p(e){n("click",e)}function m(e){C(e),g(),n("click",e)}function f(e){null!==i.value&&i.value.toggle(e)}function h(e){null!==i.value&&i.value.show(e)}function g(e){null!==i.value&&i.value.hide(e)}return e.watch(()=>t.modelValue,e=>{null!==i.value&&i.value[e?"show":"hide"]()}),e.watch(()=>t.split,g),Object.assign(a,{show:h,hide:g,toggle:f}),e.onMounted(()=>{!0===t.modelValue&&h()}),()=>{const n=[e.h(et,{class:s.value,name:t.dropdownIcon||a.$q.iconSet.arrow.dropdown})];return!0!==t.disableDropdown&&n.push(e.h(bn,{ref:i,class:t.contentClass,style:t.contentStyle,cover:t.cover,fit:!0,persistent:t.persistent,noRouteDismiss:t.noRouteDismiss,autoClose:t.autoClose,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,separateClosePopup:!0,onBeforeShow:u,onShow:c,onBeforeHide:d,onHide:v},o.default)),!1===t.split?e.h(Xt,{class:"q-btn-dropdown q-btn-dropdown--simple",...t,disable:!0===t.disable||!0===t.disableMainBtn,noWrap:!0,round:!1,...r.value,onClick:p},()=>Fe(o.label,[]).concat(n)):e.h(Zt,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",outline:t.outline,flat:t.flat,rounded:t.rounded,push:t.push,unelevated:t.unelevated,glossy:t.glossy,stretch:t.stretch},()=>[e.h(Xt,{class:"q-btn-dropdown--current",...t,disable:!0===t.disable||!0===t.disableMainBtn,noWrap:!0,iconRight:t.iconRight,round:!1,onClick:m},o.label),e.h(Xt,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...r.value,disable:!0===t.disable||!0===t.disableDropdown,outline:t.outline,flat:t.flat,rounded:t.rounded,push:t.push,size:t.size,color:t.color,textColor:t.textColor,dense:t.dense,ripple:t.ripple},()=>n)])}}});const wn={name:String};function xn(t){return e.computed(()=>({type:"hidden",name:t.name,value:t.modelValue}))}function _n(t={},o={}){return(n,a,l)=>{n[a](e.h("input",{class:"hidden"+(l||""),...t.value,...o.value}))}}function Cn(t){return e.computed(()=>t.name||t.for)}var Sn=e.defineComponent({name:"QBtnToggle",props:{...wn,modelValue:{required:!0},options:{type:Array,required:!0,validator:e=>e.every(e=>("label"in e||"icon"in e||"slot"in e)&&"value"in e)},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","clear","click"],setup(t,{slots:o,emit:n}){const a=e.computed(()=>void 0!==t.options.find(e=>e.value===t.modelValue)),l=e.computed(()=>({type:"hidden",name:t.name,value:t.modelValue})),i=_n(l),r=e.computed(()=>t.options.map((e,o)=>{const{attrs:n,value:a,slot:l,...i}=e;return{slot:l,props:{key:o,onClick(t){s(a,e,t)},...n,...i,outline:t.outline,flat:t.flat,rounded:t.rounded,push:t.push,unelevated:t.unelevated,dense:t.dense,disable:!0===t.disable||!0===i.disable,color:a===t.modelValue?u(i,"toggleColor"):u(i,"color"),textColor:a===t.modelValue?u(i,"toggleTextColor"):u(i,"textColor"),noCaps:!0===u(i,"noCaps"),noWrap:!0===u(i,"noWrap"),size:u(i,"size"),padding:u(i,"padding"),ripple:u(i,"ripple"),stack:!0===u(i,"stack"),stretch:!0===u(i,"stretch")}}}));function s(e,o,a){!0!==t.readonly&&(t.modelValue===e?!0===t.clearable&&(n("update:modelValue",null,null),n("clear")):n("update:modelValue",e,o),n("click",a))}function u(e,o){return void 0===e[o]?t[o]:e[o]}function c(){const n=r.value.map(t=>{return e.h(Xt,t.props,void 0!==t.slot?o[t.slot]:void 0)});return void 0!==t.name&&!0!==t.disable&&!0===a.value&&i(n,"push"),Ie(o.default,n)}return()=>e.h(Zt,{class:"q-btn-toggle",outline:t.outline,flat:t.flat,rounded:t.rounded,push:t.push,stretch:t.stretch,unelevated:t.unelevated,glossy:t.glossy,spread:t.spread},c)}}),qn=e.defineComponent({name:"QCard",props:{...at,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),l=e.computed(()=>"q-card"+(!0===a.value?" q-card--dark q-dark":"")+(!0===t.bordered?" q-card--bordered":"")+(!0===t.square?" q-card--square no-border-radius":"")+(!0===t.flat?" q-card--flat no-shadow":""));return()=>e.h(t.tag,{class:l.value},Fe(o.default))}}),kn=e.defineComponent({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-card__section"+` q-card__section--${!0===t.horizontal?"horiz row no-wrap":"vert"}`);return()=>e.h(t.tag,{class:n.value},Fe(o.default))}}),$n=e.defineComponent({name:"QCardActions",props:{...ct,vertical:Boolean},setup(t,{slots:o}){const n=dt(t),a=e.computed(()=>`q-card__actions ${n.value}`+` q-card__actions--${!0===t.vertical?"vert column":"horiz row"}`);return()=>e.h("div",{class:a.value},Fe(o.default))}});const Mn={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},Tn=Object.keys(Mn);function Bn(e){const t={};for(const o of Tn)!0===e[o]&&(t[o]=!0);return 0===Object.keys(t).length?Mn:(!0===t.horizontal?t.left=t.right=!0:!0===t.left&&!0===t.right&&(t.horizontal=!0),!0===t.vertical?t.up=t.down=!0:!0===t.up&&!0===t.down&&(t.vertical=!0),!0===t.horizontal&&!0===t.vertical&&(t.all=!0),t)}function On(e,t){return void 0===t.event&&void 0!==e.target&&!0!==e.target.draggable&&"function"===typeof t.handler&&"INPUT"!==e.target.nodeName.toUpperCase()&&(void 0===e.qClonedBy||-1===e.qClonedBy.indexOf(t.uid))}function Vn(e){const t=[.06,6,50];return"string"===typeof e&&e.length&&e.split(":").forEach((e,o)=>{const n=parseFloat(e);n&&(t[o]=n)}),t}Mn.all=!0;var zn={name:"touch-swipe",beforeMount(e,{value:t,arg:o,modifiers:n}){if(!0!==n.mouse&&!0!==c.has.touch)return;const a=!0===n.mouseCapture?"Capture":"",l={handler:t,sensitivity:Vn(o),direction:Bn(n),noop:m,mouseStart(e){On(e,l)&&f(e)&&($(l,"temp",[[document,"mousemove","move",`notPassive${a}`],[document,"mouseup","end","notPassiveCapture"]]),l.start(e,!0))},touchStart(e){if(On(e,l)){const t=e.target;$(l,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),l.start(e)}},start(t,o){!0===c.is.firefox&&k(e,!0);const n=b(t);l.event={x:n.left,y:n.top,time:Date.now(),mouse:!0===o,dir:!1}},move(e){if(void 0===l.event)return;if(!1!==l.event.dir)return void q(e);const t=Date.now()-l.event.time;if(0===t)return;const o=b(e),n=o.left-l.event.x,a=Math.abs(n),i=o.top-l.event.y,r=Math.abs(i);if(!0!==l.event.mouse){if(a<l.sensitivity[1]&&r<l.sensitivity[1])return void l.end(e)}else if(a<l.sensitivity[2]&&r<l.sensitivity[2])return;const s=a/t,u=r/t;!0===l.direction.vertical&&a<r&&a<100&&u>l.sensitivity[0]&&(l.event.dir=i<0?"up":"down"),!0===l.direction.horizontal&&a>r&&r<100&&s>l.sensitivity[0]&&(l.event.dir=n<0?"left":"right"),!0===l.direction.up&&a<r&&i<0&&a<100&&u>l.sensitivity[0]&&(l.event.dir="up"),!0===l.direction.down&&a<r&&i>0&&a<100&&u>l.sensitivity[0]&&(l.event.dir="down"),!0===l.direction.left&&a>r&&n<0&&r<100&&s>l.sensitivity[0]&&(l.event.dir="left"),!0===l.direction.right&&a>r&&n>0&&r<100&&s>l.sensitivity[0]&&(l.event.dir="right"),!1!==l.event.dir?(q(e),!0===l.event.mouse&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Gt(),l.styleCleanup=(e=>{l.styleCleanup=void 0,document.body.classList.remove("non-selectable");const t=()=>{document.body.classList.remove("no-pointer-events--children")};!0===e?setTimeout(t,50):t()})),l.handler({evt:e,touch:!0!==l.event.mouse,mouse:l.event.mouse,direction:l.event.dir,duration:t,distance:{x:a,y:r}})):l.end(e)},end(t){void 0!==l.event&&(M(l,"temp"),!0===c.is.firefox&&k(e,!1),void 0!==l.styleCleanup&&l.styleCleanup(!0),void 0!==t&&!1!==l.event.dir&&q(t),l.event=void 0)}};e.__qtouchswipe=l,!0===n.mouse&&$(l,"main",[[e,"mousedown","mouseStart",`passive${a}`]]),!0===c.has.touch&&$(l,"main",[[e,"touchstart","touchStart",`passive${!0===n.capture?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchswipe;void 0!==o&&(t.oldValue!==t.value&&("function"!==typeof t.value&&o.end(),o.handler=t.value),o.direction=Bn(t.modifiers))},beforeUnmount(e){const t=e.__qtouchswipe;void 0!==t&&(M(t,"main"),M(t,"temp"),!0===c.is.firefox&&k(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchswipe)}};function Ln(){const e=new Map;return{getCache:function(t,o){return void 0===e[t]?e[t]=o:e[t]},getCacheWithFn:function(t,o){return void 0===e[t]?e[t]=o():e[t]}}}const En={name:{required:!0},disable:Boolean},Pn={setup(t,{slots:o}){return()=>e.h("div",{class:"q-panel scroll",role:"tabpanel"},Fe(o.default))}},An={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},Fn=["update:modelValue","before-transition","transition"];function Rn(){const{props:t,emit:o,proxy:n}=e.getCurrentInstance(),{getCacheWithFn:a}=Ln();let l,i;const r=e.ref(null),s=e.ref(null);function u(e){const o=!0===t.vertical?"up":"left";S((!0===n.$q.lang.rtl?-1:1)*(e.direction===o?1:-1))}const c=e.computed(()=>{return[[zn,u,void 0,{horizontal:!0!==t.vertical,vertical:t.vertical,mouse:!0}]]}),d=e.computed(()=>t.transitionPrev||`slide-${!0===t.vertical?"down":"right"}`),v=e.computed(()=>t.transitionNext||`slide-${!0===t.vertical?"up":"left"}`),p=e.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`),m=e.computed(()=>"string"===typeof t.modelValue||"number"===typeof t.modelValue?t.modelValue:String(t.modelValue)),f=e.computed(()=>({include:t.keepAliveInclude,exclude:t.keepAliveExclude,max:t.keepAliveMax})),h=e.computed(()=>void 0!==t.keepAliveInclude||void 0!==t.keepAliveExclude);function g(){S(1)}function b(){S(-1)}function y(e){o("update:modelValue",e)}function w(e){return void 0!==e&&null!==e&&""!==e}function x(e){return l.findIndex(t=>{return t.props.name===e&&""!==t.props.disable&&!0!==t.props.disable})}function _(){return l.filter(e=>{return""!==e.props.disable&&!0!==e.props.disable})}function C(e){const o=0!==e&&!0===t.animated&&-1!==r.value?"q-transition--"+(-1===e?d.value:v.value):null;s.value!==o&&(s.value=o)}function S(e,n=r.value){let a=n+e;while(a>-1&&a<l.length){const t=l[a];if(void 0!==t&&""!==t.props.disable&&!0!==t.props.disable)return C(e),i=!0,o("update:modelValue",t.props.name),void setTimeout(()=>{i=!1});a+=e}!0===t.infinite&&l.length>0&&-1!==n&&n!==l.length&&S(e,-1===e?l.length:-1)}function q(){const e=x(t.modelValue);return r.value!==e&&(r.value=e),!0}function k(){const o=!0===w(t.modelValue)&&q()&&l[r.value];return!0===t.keepAlive?[e.h(e.KeepAlive,f.value,[e.h(!0===h.value?a(m.value,()=>({...Pn,name:m.value})):Pn,{key:m.value,style:p.value},()=>o)])]:[e.h("div",{class:"q-panel scroll",style:p.value,key:m.value,role:"tabpanel"},[o])]}function $(){if(0!==l.length)return!0===t.animated?[e.h(e.Transition,{name:s.value},k)]:k()}function M(e){return l=pt(Fe(e.default,[])).filter(e=>null!==e.props&&void 0===e.props.slot&&!0===w(e.props.name)),l.length}function T(){return l}return e.watch(()=>t.modelValue,(t,n)=>{const a=!0===w(t)?x(t):-1;!0!==i&&C(-1===a?0:a<x(n)?-1:1),r.value!==a&&(r.value=a,o("before-transition",t,n),e.nextTick(()=>{o("transition",t,n)}))}),Object.assign(n,{next:g,previous:b,goTo:y}),{panelIndex:r,panelDirectives:c,updatePanelsList:M,updatePanelIndex:q,getPanelContent:$,getEnabledPanels:_,getPanels:T,isValidPanelName:w,keepAliveProps:f,needsUniqueKeepAliveWrapper:h,goToPanelByOffset:S,goToPanel:y,nextPanel:g,previousPanel:b}}const In={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Nn=["update:fullscreen","fullscreen"];function jn(){const t=e.getCurrentInstance(),{props:o,emit:n,proxy:a}=t;let l,i,r;const s=e.ref(!1);function u(){!0===s.value?d():c()}function c(){!0!==s.value&&(s.value=!0,r=a.$el.parentNode,r.replaceChild(i,a.$el),document.body.appendChild(a.$el),document.body.classList.add("q-body--fullscreen-mixin"),l={handler:d},R.add(l))}function d(){!0===s.value&&(void 0!==l&&(R.remove(l),l=void 0),r.replaceChild(a.$el,i),document.body.classList.remove("q-body--fullscreen-mixin"),s.value=!1,void 0!==a.$el.scrollIntoView&&setTimeout(()=>{a.$el.scrollIntoView()}))}return!0===mt(t)&&e.watch(()=>a.$route,()=>{!0!==o.noRouteFullscreenExit&&d()}),e.watch(()=>o.fullscreen,e=>{s.value!==e&&u()}),e.watch(s,e=>{n("update:fullscreen",e),n("fullscreen",e)}),e.onBeforeMount(()=>{i=document.createElement("span")}),e.onMounted(()=>{!0===o.fullscreen&&c()}),e.onBeforeUnmount(d),Object.assign(a,{toggleFullscreen:u,setFullscreen:c,exitFullscreen:d}),{inFullscreen:s,toggleFullscreen:u}}const Dn="function"===typeof Map,Hn="function"===typeof Set,Qn="function"===typeof ArrayBuffer;function Un(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let o,n;if(e.constructor===Array){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(!0!==Un(e[n],t[n]))return!1;return!0}if(!0===Dn&&e.constructor===Map){if(e.size!==t.size)return!1;n=e.entries().next();while(!0!==n.done){if(!0!==t.has(n.value[0]))return!1;n=n.next()}n=e.entries().next();while(!0!==n.done){if(!0!==Un(n.value[1],t.get(n.value[0])))return!1;n=n.next()}return!0}if(!0===Hn&&e.constructor===Set){if(e.size!==t.size)return!1;n=e.entries().next();while(!0!==n.done){if(!0!==t.has(n.value[0]))return!1;n=n.next()}return!0}if(!0===Qn&&null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(e[n]!==t[n])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);if(o=a.length,o!==Object.keys(t).length)return!1;for(n=o;0!==n--;){const o=a[n];if(!0!==Un(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Wn(e){return"[object Date]"===Object.prototype.toString.call(e)}function Yn(e){return"number"===typeof e&&isFinite(e)}const Kn=["top","right","bottom","left"],Xn=["regular","flat","outline","push","unelevated"];var Zn=e.defineComponent({name:"QCarousel",props:{...at,...An,...In,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:e=>Xn.includes(e),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:e=>Kn.includes(e)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...Nn,...Fn],setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=lt(t,n);let l,i;const{updatePanelsList:r,getPanelContent:s,panelDirectives:u,goToPanel:c,previousPanel:d,nextPanel:v,getEnabledPanels:p,panelIndex:m}=Rn(),{inFullscreen:f}=jn(),h=e.computed(()=>!0!==f.value&&void 0!==t.height?{height:t.height}:{}),g=e.computed(()=>!0===t.vertical?"vertical":"horizontal"),b=e.computed(()=>`q-carousel q-panel-parent q-carousel--with${!0===t.padding?"":"out"}-padding`+(!0===f.value?" fullscreen":"")+(!0===a.value?" q-carousel--dark q-dark":"")+(!0===t.arrows?` q-carousel--arrows-${g.value}`:"")+(!0===t.navigation?` q-carousel--navigation-${_.value}`:"")),y=e.computed(()=>{const e=[t.prevIcon||n.iconSet.carousel[!0===t.vertical?"up":"left"],t.nextIcon||n.iconSet.carousel[!0===t.vertical?"down":"right"]];return!1===t.vertical&&!0===n.lang.rtl?e.reverse():e}),w=e.computed(()=>t.navigationIcon||n.iconSet.carousel.navigationIcon),x=e.computed(()=>t.navigationActiveIcon||w.value),_=e.computed(()=>t.navigationPosition||(!0===t.vertical?"right":"bottom")),C=e.computed(()=>({color:t.controlColor,textColor:t.controlTextColor,round:!0,[t.controlType]:!0,dense:!0}));function S(){const e=!0===Yn(t.autoplay)?t.autoplay:5e3;l=setTimeout(e>=0?v:d,Math.abs(e))}function q(o,n){return e.h("div",{class:"q-carousel__control q-carousel__navigation no-wrap absolute flex"+` q-carousel__navigation--${o} q-carousel__navigation--${_.value}`+(void 0!==t.controlColor?` text-${t.controlColor}`:"")},[e.h("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},p().map(n))])}function k(){const n=[];if(!0===t.navigation){const t=void 0!==o["navigation-icon"]?o["navigation-icon"]:t=>e.h(Xt,{key:"nav"+t.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${!0===t.active?"":"in"}active`,...t.btnProps,onClick:t.onClick}),a=i-1;n.push(q("buttons",(e,o)=>{const n=e.props.name,l=m.value===o;return t({index:o,maxIndex:a,name:n,active:l,btnProps:{icon:!0===l?x.value:w.value,size:"sm",...C.value},onClick:()=>{c(n)}})}))}else if(!0===t.thumbnails){const o=void 0!==t.controlColor?` text-${t.controlColor}`:"";n.push(q("thumbnails",n=>{const a=n.props;return e.h("img",{key:"tmb#"+a.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${a.name===t.modelValue?"":"in"}active`+o,src:a.imgSrc||a["img-src"],onClick:()=>{c(a.name)}})}))}return!0===t.arrows&&m.value>=0&&((!0===t.infinite||m.value>0)&&n.push(e.h("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${g.value} absolute flex flex-center`},[e.h(Xt,{icon:y.value[0],...C.value,onClick:d})])),(!0===t.infinite||m.value<i-1)&&n.push(e.h("div",{key:"next",class:"q-carousel__control q-carousel__arrow q-carousel__next-arrow"+` q-carousel__next-arrow--${g.value} absolute flex flex-center`},[e.h(Xt,{icon:y.value[1],...C.value,onClick:v})]))),Ie(o.control,n)}return e.watch(()=>t.modelValue,()=>{t.autoplay&&(clearInterval(l),S())}),e.watch(()=>t.autoplay,e=>{e?S():clearInterval(l)}),e.onMounted(()=>{t.autoplay&&S()}),e.onBeforeUnmount(()=>{clearInterval(l)}),()=>{return i=r(o),e.h("div",{class:b.value,style:h.value},[je("div",{class:"q-carousel__slides-container"},s(),"sl-cont",t.swipeable,()=>u.value)].concat(k()))}}}),Gn=e.defineComponent({name:"QCarouselSlide",props:{...En,imgSrc:String},setup(t,{slots:o}){const n=e.computed(()=>t.imgSrc?{backgroundImage:`url("${t.imgSrc}")`}:{});return()=>e.h("div",{class:"q-carousel__slide",style:n.value},Fe(o.default))}}),Jn=e.defineComponent({name:"QCarouselControl",props:{position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,default:()=>[18,18],validator:e=>2===e.length}},setup(t,{slots:o}){const n=e.computed(()=>`q-carousel__control absolute absolute-${t.position}`),a=e.computed(()=>({margin:`${t.offset[1]}px ${t.offset[0]}px`}));return()=>e.h("div",{class:n.value,style:a.value},Fe(o.default))}}),ea=e.defineComponent({name:"QChatMessage",props:{sent:Boolean,label:String,bgColor:String,textColor:String,name:String,avatar:String,text:Array,stamp:String,size:String,labelHtml:Boolean,nameHtml:Boolean,textHtml:Boolean,stampHtml:Boolean},setup(t,{slots:o}){const n=e.computed(()=>!0===t.sent?"sent":"received"),a=e.computed(()=>`q-message-text-content q-message-text-content--${n.value}`+(void 0!==t.textColor?` text-${t.textColor}`:"")),l=e.computed(()=>`q-message-text q-message-text--${n.value}`+(void 0!==t.bgColor?` text-${t.bgColor}`:"")),i=e.computed(()=>"q-message-container row items-end no-wrap"+(!0===t.sent?" reverse":"")),r=e.computed(()=>void 0!==t.size?`col-${t.size}`:""),s=e.computed(()=>({msg:!0===t.textHtml?"innerHTML":"textContent",stamp:!0===t.stampHtml?"innerHTML":"textContent",name:!0===t.nameHtml?"innerHTML":"textContent",label:!0===t.labelHtml?"innerHTML":"textContent"}));function u(n){return void 0!==o.stamp?[n,e.h("div",{class:"q-message-stamp"},o.stamp())]:t.stamp?[n,e.h("div",{class:"q-message-stamp",[s.value.stamp]:t.stamp})]:[n]}function c(t,o){const n=!0===o?t.length>1?e=>e:t=>e.h("div",[t]):t=>e.h("div",{[s.value.msg]:t});return t.map((t,o)=>e.h("div",{key:o,class:l.value},[e.h("div",{class:a.value},u(n(t)))]))}return()=>{const a=[];void 0!==o.avatar?a.push(o.avatar()):void 0!==t.avatar&&a.push(e.h("img",{class:`q-message-avatar q-message-avatar--${n.value}`,src:t.avatar,"aria-hidden":"true"}));const l=[];void 0!==o.name?l.push(e.h("div",{class:`q-message-name q-message-name--${n.value}`},o.name())):void 0!==t.name&&l.push(e.h("div",{class:`q-message-name q-message-name--${n.value}`,[s.value.name]:t.name})),void 0!==o.default?l.push(c(pt(o.default()),!0)):void 0!==t.text&&l.push(c(t.text)),a.push(e.h("div",{class:r.value},l));const u=[];return void 0!==o.label?u.push(e.h("div",{class:"q-message-label"},o.label())):void 0!==t.label&&u.push(e.h("div",{class:"q-message-label",[s.value.label]:t.label})),u.push(e.h("div",{class:i.value},a)),e.h("div",{class:`q-message q-message-${n.value}`},u)}}});function ta(t,o){const n=e.ref(null),a=e.computed(()=>{return!0!==t.disable?null:e.h("span",{ref:n,class:"no-outline",tabindex:-1})});function l(e){void 0!==e&&0===e.type.indexOf("key")?document.activeElement!==o.value&&!0===o.value.contains(document.activeElement)&&o.value.focus():void 0!==e&&!0!==o.value.contains(e.target)||null===n.value||n.value.focus()}return{refocusTargetEl:a,refocusTarget:l}}var oa={xs:30,sm:35,md:40,lg:50,xl:60};const na={...at,...Pe,...wn,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},toggleOrder:{type:String,validator:e=>"tf"===e||"ft"===e},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},aa=["update:modelValue"];function la(t,o){const{props:n,slots:a,emit:l,proxy:i}=e.getCurrentInstance(),{$q:r}=i,s=lt(n,r),u=e.ref(null),{refocusTargetEl:c,refocusTarget:d}=ta(n,u),v=Ae(n,oa),p=e.computed(()=>void 0!==n.val&&Array.isArray(n.modelValue)),m=e.computed(()=>!0===p.value?n.modelValue.indexOf(n.val):-1),f=e.computed(()=>!0===p.value?m.value>-1:n.modelValue===n.trueValue),h=e.computed(()=>!0===p.value?-1===m.value:n.modelValue===n.falseValue),g=e.computed(()=>!1===f.value&&!1===h.value),b=e.computed(()=>!0===n.disable?-1:n.tabindex||0),y=e.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(!0===n.disable?" disabled":"")+(!0===s.value?` q-${t}--dark`:"")+(!0===n.dense?` q-${t}--dense`:"")+(!0===n.leftLabel?" reverse":"")),w=e.computed(()=>{const e=!0===f.value?"truthy":!0===h.value?"falsy":"indet",o=void 0===n.color||!0!==n.keepColor&&("toggle"===t?!0!==f.value:!0===h.value)?"":` text-${n.color}`;return`q-${t}__inner relative-position non-selectable q-${t}__inner--${e}${o}`}),x=e.computed(()=>{const e={type:"checkbox"};return void 0!==n.name&&Object.assign(e,{checked:f.value,name:n.name,value:!0===p.value?n.val:n.trueValue}),e}),_=_n(x),C=e.computed(()=>{const e={tabindex:b.value,role:"checkbox","aria-label":n.label,"aria-checked":!0===g.value?"mixed":!0===f.value?"true":"false"};return!0===n.disable&&(e["aria-disabled"]="true"),e});function S(e){void 0!==e&&(q(e),d(e)),!0!==n.disable&&l("update:modelValue",k(),e)}function k(){if(!0===p.value){if(!0===f.value){const e=n.modelValue.slice();return e.splice(m.value,1),e}return n.modelValue.concat([n.val])}if(!0===f.value){if("ft"!==n.toggleOrder||!1===n.toggleIndeterminate)return n.falseValue}else{if(!0!==h.value)return"ft"!==n.toggleOrder?n.trueValue:n.falseValue;if("ft"===n.toggleOrder||!1===n.toggleIndeterminate)return n.trueValue}return n.indeterminateValue}function $(e){13!==e.keyCode&&32!==e.keyCode||q(e)}function M(e){13!==e.keyCode&&32!==e.keyCode||S(e)}const T=o(f,g);return Object.assign(i,{toggle:S}),()=>{const o=T();!0!==n.disable&&_(o,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const l=[e.h("div",{class:w.value,style:v.value},o)];null!==c.value&&l.push(c.value);const i=void 0!==n.label?Ie(a.default,[n.label]):Fe(a.default);return void 0!==i&&l.push(e.h("div",{class:`q-${t}__label q-anchor--skip`},i)),e.h("div",{ref:u,class:y.value,...C.value,onClick:S,onKeydown:$,onKeyup:M},l)}}const ia=e.h("div",{class:"q-checkbox__bg absolute"},[e.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24","aria-hidden":"true"},[e.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),e.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]);var ra=e.defineComponent({name:"QCheckbox",props:na,emits:aa,setup(){return la("checkbox",()=>()=>[ia])}});const sa={xs:8,sm:10,md:14,lg:20,xl:24};var ua=e.defineComponent({name:"QChip",props:{...at,...Pe,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=lt(t,a),i=Ae(t,sa),r=e.computed(()=>!0===t.selected||void 0!==t.icon),s=e.computed(()=>!0===t.selected?t.iconSelected||a.iconSet.chip.selected:t.icon),u=e.computed(()=>t.iconRemove||a.iconSet.chip.remove),c=e.computed(()=>!1===t.disable&&(!0===t.clickable||null!==t.selected)),d=e.computed(()=>{const e=!0===t.outline&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(!1===t.outline&&void 0!==t.color?` bg-${t.color}`:"")+(e?` text-${e} q-chip--colored`:"")+(!0===t.disable?" disabled":"")+(!0===t.dense?" q-chip--dense":"")+(!0===t.outline?" q-chip--outline":"")+(!0===t.selected?" q-chip--selected":"")+(!0===c.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(!0===t.square?" q-chip--square":"")+(!0===l.value?" q-chip--dark q-dark":"")}),v=e.computed(()=>!0===t.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0});function p(e){13===e.keyCode&&m(e)}function m(e){t.disable||(n("update:selected",!t.selected),n("click",e))}function f(e){void 0!==e.keyCode&&13!==e.keyCode||(q(e),!1===t.disable&&(n("update:modelValue",!1),n("remove")))}function h(){const n=[];!0===c.value&&n.push(e.h("div",{class:"q-focus-helper"})),!0===r.value&&n.push(e.h(et,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const a=void 0!==t.label?[e.h("div",{class:"ellipsis"},[t.label])]:void 0;return n.push(e.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Ne(o.default,a))),t.iconRight&&n.push(e.h(et,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),!0===t.removable&&n.push(e.h(et,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:u.value,...v.value,onClick:f,onKeyup:f})),n}return()=>{if(!1===t.modelValue)return;const e={class:d.value,style:i.value};return!0===c.value&&Object.assign(e,v.value,{onClick:m,onKeyup:p}),je("div",e,h(),"ripple",!1!==t.ripple&&!0!==t.disable,()=>[[Nt,t.ripple]])}}});const ca={...Pe,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean},da=50,va=2*da,pa=va*Math.PI,ma=Math.round(1e3*pa)/1e3;var fa=e.defineComponent({name:"QCircularProgress",props:{...ca,value:{type:Number,default:0},indeterminate:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=Ae(t),l=e.computed(()=>{const e=(!0===n.lang.rtl?-1:1)*t.angle;return{transform:t.reverse!==(!0===n.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-e}deg)`:`rotate3d(0, 0, 1, ${e-90}deg)`}}),i=e.computed(()=>!0!==t.instantFeedback&&!0!==t.indeterminate?{transition:"stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease"}:""),r=e.computed(()=>va/(1-t.thickness/2)),s=e.computed(()=>`${r.value/2} ${r.value/2} ${r.value} ${r.value}`),u=e.computed(()=>xe(t.value,t.min,t.max)),c=e.computed(()=>pa*(1-(u.value-t.min)/(t.max-t.min))),d=e.computed(()=>t.thickness/2*r.value);function v({thickness:t,offset:o,color:n,cls:a}){return e.h("circle",{class:"q-circular-progress__"+a+(void 0!==n?` text-${n}`:""),style:i.value,fill:"transparent",stroke:"currentColor","stroke-width":t,"stroke-dasharray":ma,"stroke-dashoffset":o,cx:r.value,cy:r.value,r:da})}return()=>{const n=[];void 0!==t.centerColor&&"transparent"!==t.centerColor&&n.push(e.h("circle",{class:`q-circular-progress__center text-${t.centerColor}`,fill:"currentColor",r:da-d.value/2,cx:r.value,cy:r.value})),void 0!==t.trackColor&&"transparent"!==t.trackColor&&n.push(v({cls:"track",thickness:d.value,offset:0,color:t.trackColor})),n.push(v({cls:"circle",thickness:d.value,offset:c.value,color:t.color}));const i=[e.h("svg",{class:"q-circular-progress__svg",style:l.value,viewBox:s.value,"aria-hidden":"true"},n)];return!0===t.showValue&&i.push(e.h("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:t.fontSize}},void 0!==o.default?o.default():[e.h("div",u.value)])),e.h("div",{class:`q-circular-progress q-circular-progress--${!0===t.indeterminate?"in":""}determinate`,style:a.value,role:"progressbar","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":!0===t.indeterminate?void 0:u.value},Ne(o.internal,i))}}});function ha(e,t,o){const n=b(e);let a,l=n.left-t.event.x,i=n.top-t.event.y,r=Math.abs(l),s=Math.abs(i);const u=t.direction;!0===u.horizontal&&!0!==u.vertical?a=l<0?"left":"right":!0!==u.horizontal&&!0===u.vertical?a=i<0?"up":"down":!0===u.up&&i<0?(a="up",r>s&&(!0===u.left&&l<0?a="left":!0===u.right&&l>0&&(a="right"))):!0===u.down&&i>0?(a="down",r>s&&(!0===u.left&&l<0?a="left":!0===u.right&&l>0&&(a="right"))):!0===u.left&&l<0?(a="left",r<s&&(!0===u.up&&i<0?a="up":!0===u.down&&i>0&&(a="down"))):!0===u.right&&l>0&&(a="right",r<s&&(!0===u.up&&i<0?a="up":!0===u.down&&i>0&&(a="down")));let c=!1;if(void 0===a&&!1===o){if(!0===t.event.isFirst||void 0===t.event.lastDir)return{};a=t.event.lastDir,c=!0,"left"===a||"right"===a?(n.left-=l,r=0,l=0):(n.top-=i,s=0,i=0)}return{synthetic:c,payload:{evt:e,touch:!0!==t.event.mouse,mouse:!0===t.event.mouse,position:n,direction:a,isFirst:t.event.isFirst,isFinal:!0===o,duration:Date.now()-t.event.time,distance:{x:r,y:s},offset:{x:l,y:i},delta:{x:n.left-t.event.lastX,y:n.top-t.event.lastY}}}}let ga=0;var ba={name:"touch-pan",beforeMount(e,{value:t,modifiers:o}){if(!0!==o.mouse&&!0!==c.has.touch)return;function n(e,t){!0===o.mouse&&!0===t?q(e):(!0===o.stop&&C(e),!0===o.prevent&&S(e))}const a={uid:"qvtp_"+ga++,handler:t,modifiers:o,direction:Bn(o),noop:m,mouseStart(e){On(e,a)&&f(e)&&($(a,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),a.start(e,!0))},touchStart(e){if(On(e,a)){const t=e.target;$(a,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","passiveCapture"],[t,"touchend","end","passiveCapture"]]),a.start(e)}},start(t,n){if(!0===c.is.firefox&&k(e,!0),a.lastEvt=t,!0===n||!0===o.stop){if(!0!==a.direction.all&&(!0!==n||!0!==a.modifiers.mouseAllDir)){const e=t.type.indexOf("mouse")>-1?new MouseEvent(t.type,t):new TouchEvent(t.type,t);!0===t.defaultPrevented&&S(e),!0===t.cancelBubble&&C(e),Object.assign(e,{qKeyEvent:t.qKeyEvent,qClickOutside:t.qClickOutside,qAnchorHandled:t.qAnchorHandled,qClonedBy:void 0===t.qClonedBy?[a.uid]:t.qClonedBy.concat(a.uid)}),a.initialEvent={target:t.target,event:e}}C(t)}const{left:l,top:i}=b(t);a.event={x:l,y:i,time:Date.now(),mouse:!0===n,detected:!1,isFirst:!0,isFinal:!1,lastX:l,lastY:i}},move(e){if(void 0===a.event)return;const t=b(e),l=t.left-a.event.x,i=t.top-a.event.y;if(0===l&&0===i)return;a.lastEvt=e;const r=!0===a.event.mouse,s=()=>{n(e,r),!0!==o.preserveCursor&&(document.documentElement.style.cursor="grabbing"),!0===r&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Gt(),a.styleCleanup=(e=>{if(a.styleCleanup=void 0,!0!==o.preserveCursor&&(document.documentElement.style.cursor=""),document.body.classList.remove("non-selectable"),!0===r){const t=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==e?setTimeout(()=>{t(),e()},50):t()}else void 0!==e&&e()})};if(!0===a.event.detected){!0!==a.event.isFirst&&n(e,a.event.mouse);const{payload:t,synthetic:o}=ha(e,a,!1);return void(void 0!==t&&(!1===a.handler(t)?a.end(e):(void 0===a.styleCleanup&&!0===a.event.isFirst&&s(),a.event.lastX=t.position.left,a.event.lastY=t.position.top,a.event.lastDir=!0===o?void 0:t.direction,a.event.isFirst=!1)))}if(!0===a.direction.all||!0===r&&!0===a.modifiers.mouseAllDir)return s(),a.event.detected=!0,void a.move(e);const u=Math.abs(l),c=Math.abs(i);u!==c&&(!0===a.direction.horizontal&&u>c||!0===a.direction.vertical&&u<c||!0===a.direction.up&&u<c&&i<0||!0===a.direction.down&&u<c&&i>0||!0===a.direction.left&&u>c&&l<0||!0===a.direction.right&&u>c&&l>0?(a.event.detected=!0,a.move(e)):a.end(e,!0))},end(t,o){if(void 0!==a.event){if(M(a,"temp"),!0===c.is.firefox&&k(e,!1),!0===o)void 0!==a.styleCleanup&&a.styleCleanup(),!0!==a.event.detected&&void 0!==a.initialEvent&&a.initialEvent.target.dispatchEvent(a.initialEvent.event);else if(!0===a.event.detected){!0===a.event.isFirst&&a.handler(ha(void 0===t?a.lastEvt:t,a).payload);const{payload:e}=ha(void 0===t?a.lastEvt:t,a,!0),o=()=>{a.handler(e)};void 0!==a.styleCleanup?a.styleCleanup(o):o()}a.event=void 0,a.initialEvent=void 0,a.lastEvt=void 0}}};e.__qtouchpan=a,!0===o.mouse&&$(a,"main",[[e,"mousedown","mouseStart",`passive${!0===o.mouseCapture?"Capture":""}`]]),!0===c.has.touch&&$(a,"main",[[e,"touchstart","touchStart",`passive${!0===o.capture?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchpan;void 0!==o&&(t.oldValue!==t.value&&("function"!==typeof value&&o.end(),o.handler=t.value),o.direction=Bn(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;void 0!==t&&(void 0!==t.event&&t.end(),M(t,"main"),M(t,"temp"),!0===c.is.firefox&&k(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchpan)}};const ya=[34,37,40,33,39,38];function wa(e,t,o,n){const a=b(e),l=xe(!0===n?(a.top-t.top)/t.height:(a.left-t.left)/t.width,0,1);return!0===o?1-l:l}function xa(e,t,o,n,a){let l=t+e*(o-t);if(n>0){const e=(l-t)%n;l+=(Math.abs(e)>=n/2?(e<0?-1:1)*n:0)-e}return a>0&&(l=parseFloat(l.toFixed(a))),xe(l,t,o)}const _a={...at,min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1,validator:e=>e>=0},color:String,labelColor:String,labelTextColor:String,dense:Boolean,label:Boolean,labelAlways:Boolean,markers:[Boolean,Number],snap:Boolean,vertical:Boolean,reverse:Boolean,disable:Boolean,readonly:Boolean,tabindex:[String,Number],thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},Ca=["pan","update:modelValue","change"];function Sa({updateValue:t,updatePosition:o,getDragging:n}){const{props:a,emit:l,proxy:{$q:i}}=e.getCurrentInstance(),r=lt(a,i),s=e.ref(!1),u=e.ref(!1),c=e.ref(!1),d=e.ref(!1),v=e.computed(()=>!0===a.vertical?"--v":"--h"),p=e.computed(()=>!0===a.vertical?!0===a.reverse:a.reverse!==(!0===i.lang.rtl)),m=e.computed(()=>!0!==a.disable&&!0!==a.readonly&&a.min<a.max),f=e.computed(()=>`q-slider q-slider${v.value} q-slider--${!0===s.value?"":"in"}active`+(!0===p.value?" q-slider--reversed":"")+(void 0!==a.color?` text-${a.color}`:"")+(!0===a.disable?" disabled":" q-slider--enabled"+(!0===m.value?" q-slider--editable":""))+("both"===c.value?" q-slider--focus":"")+(a.label||!0===a.labelAlways?" q-slider--label":"")+(!0===a.labelAlways?" q-slider--label-always":"")+(!0===r.value?" q-slider--dark":"")+(!0===a.dense?" q-slider--dense q-slider--dense"+v.value:"")),h=e.computed(()=>(String(a.step).trim("0").split(".")[1]||"").length),g=e.computed(()=>0===a.step?1:a.step),b=e.computed(()=>a.max-a.min),y=e.computed(()=>!0===Yn(a.markers)?a.markers:g.value),w=e.computed(()=>{if(0!==b.value){const e=100*y.value/b.value;return{backgroundSize:!0===a.vertical?`2px ${e}%`:`${e}% 2px`}}return null}),x=e.computed(()=>!0===m.value?a.tabindex||0:-1),_=e.computed(()=>!0===a.vertical?!0===p.value?"bottom":"top":!0===p.value?"right":"left"),C=e.computed(()=>!0===a.vertical?"height":"width"),S=e.computed(()=>!0===a.vertical?"vertical":"horizontal"),q=e.computed(()=>{const e={role:"slider","aria-valuemin":a.min,"aria-valuemax":a.max,"aria-orientation":S.value,"data-step":a.step};return!0===a.disable?e["aria-disabled"]="true":!0===a.readonly&&(e["aria-readonly"]="true"),e}),k=e.computed(()=>{return[[ba,T,void 0,{[S.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]});function $(){return e.h("svg",{class:"q-slider__thumb absolute",viewBox:"0 0 20 20",width:"20",height:"20","aria-hidden":"true"},[e.h("path",{d:a.thumbPath})])}function M(e,t){if(!0===a.vertical)return{};const o=`${Math.ceil(20*Math.abs(.5-t))}px`;return{pin:{transformOrigin:`${!0===i.lang.rtl?o:`calc(100% - ${o})`} 50%`},pinTextContainer:{[!0===i.lang.rtl?"left":"right"]:`${100*e}%`,transform:`translateX(${Math.ceil(20*(!0===i.lang.rtl?-1:1)*e)}px)`}}}function T(e){e.isFinal?(void 0!==d.value&&(o(e.evt),!0===e.touch&&t(!0),d.value=void 0,l("pan","end")),s.value=!1):e.isFirst?(d.value=n(e.evt),o(e.evt),t(),s.value=!0,l("pan","start")):(o(e.evt),t())}function B(){c.value=!1}function O(e){o(e,n(e)),t(),u.value=!0,s.value=!0,document.addEventListener("mouseup",V,!0)}function V(){u.value=!1,void 0===d.value&&(s.value=!1),t(!0),B(),document.removeEventListener("mouseup",V,!0)}function z(e){o(e,n(e)),t(!0)}function L(e){ya.includes(e.keyCode)&&t(!0)}return e.onBeforeUnmount(()=>{document.removeEventListener("mouseup",V,!0)}),{state:{active:s,focus:c,preventFocus:u,dragging:d,axis:v,isReversed:p,editable:m,classes:f,decimals:h,step:g,minMaxDiff:b,markerStyle:w,tabindex:x,positionProp:_,sizeProp:C,attributes:q,panDirective:k},methods:{onActivate:O,onMobileClick:z,onBlur:B,onKeyup:L,getThumbSvg:$,getPinStyle:M}}}var qa=e.defineComponent({name:"QSlider",props:{..._a,...wn,modelValue:{required:!0,default:null,validator:e=>"number"===typeof e||null===e},labelValue:[String,Number]},emits:Ca,setup(t,{emit:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=xn(t),l=_n(a),i=e.ref(null),r=e.ref(null===t.modelValue?t.min:t.modelValue),s=e.ref(0),{state:u,methods:c}=Sa({updateValue:x,updatePosition:C,getDragging:_}),d=e.computed(()=>0===u.minMaxDiff.value?0:(r.value-t.min)/u.minMaxDiff.value),v=e.computed(()=>!0===u.active.value?s.value:d.value),p=e.computed(()=>({[u.positionProp.value]:0,[u.sizeProp.value]:`${100*v.value}%`})),m=e.computed(()=>({[u.positionProp.value]:`${100*v.value}%`})),f=e.computed(()=>!1===u.preventFocus.value&&!0===u.focus.value?" q-slider--focus":""),h=e.computed(()=>void 0!==t.labelColor?`text-${t.labelColor}`:""),g=e.computed(()=>"q-slider__pin-value-marker-text"+(void 0!==t.labelTextColor?` text-${t.labelTextColor}`:"")),b=e.computed(()=>{return!0!==u.editable.value?{}:!0===n.platform.is.mobile?{onClick:c.onMobileClick}:{onMousedown:c.onActivate,onFocus:S,onBlur:c.onBlur,onKeydown:k,onKeyup:c.onKeyup}}),y=e.computed(()=>void 0!==t.labelValue?t.labelValue:r.value),w=e.computed(()=>{const e=!0===t.reverse?-v.value:v.value-1;return c.getPinStyle(e,v.value)});function x(e){r.value!==t.modelValue&&o("update:modelValue",r.value),!0===e&&o("change",r.value)}function _(){return i.value.getBoundingClientRect()}function C(e,o=u.dragging.value){const n=wa(e,o,u.isReversed.value,t.vertical);r.value=xa(n,t.min,t.max,t.step,u.decimals.value),s.value=!0!==t.snap||0===t.step?n:0===u.minMaxDiff.value?0:(r.value-t.min)/u.minMaxDiff.value}function S(){u.focus.value=!0}function k(e){if(!ya.includes(e.keyCode))return;q(e);const o=([34,33].includes(e.keyCode)?10:1)*u.step.value,n=[34,37,40].includes(e.keyCode)?-o:o;r.value=xe(parseFloat((r.value+n).toFixed(u.decimals.value)),t.min,t.max),x()}return e.watch(()=>t.modelValue,e=>{r.value=null===e?0:xe(e,t.min,t.max)}),e.watch(()=>t.min+t.max,()=>{r.value=xe(r.value,t.min,t.max)}),()=>{const o=[c.getThumbSvg(),e.h("div",{class:"q-slider__focus-ring"})];!0!==t.label&&!0!==t.labelAlways||o.push(e.h("div",{class:`q-slider__pin q-slider__pin${u.axis.value} absolute `+h.value,style:w.value.pin},[e.h("div",{class:`q-slider__pin-text-container q-slider__pin-text-container${u.axis.value}`,style:w.value.pinTextContainer},[e.h("span",{class:"q-slider__pin-text "+g.value},[y.value])])]),e.h("div",{class:`q-slider__arrow q-slider__arrow${u.axis.value} ${h.value}`})),void 0!==t.name&&!0!==t.disable&&l(o,"push");const n=[e.h("div",{class:`q-slider__track q-slider__track${u.axis.value} absolute`,style:p.value})];!1!==t.markers&&n.push(e.h("div",{class:`q-slider__track-markers q-slider__track-markers${u.axis.value} absolute-full fit`,style:u.markerStyle.value}));const a=[e.h("div",{class:`q-slider__track-container q-slider__track-container${u.axis.value} absolute`},n),e.h("div",{class:`q-slider__thumb-container q-slider__thumb-container${u.axis.value} absolute non-selectable`+f.value,style:m.value},o)],r={ref:i,class:u.classes.value+(null===t.modelValue?" q-slider--no-value":""),...u.attributes.value,"aria-valuenow":t.modelValue,tabindex:u.tabindex.value,...b.value};return je("div",r,a,"slide",u.editable.value,()=>u.panDirective.value)}}});function ka(){const o=e.ref(!t.value);return!1===o.value&&e.onMounted(()=>{o.value=!0}),o}const $a="undefined"!==typeof ResizeObserver,Ma=!0===$a?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"};var Ta=e.defineComponent({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(t,{emit:o}){let n,a,l={width:-1,height:-1};function i(e){!0===e||0===t.debounce||"0"===t.debounce?r():n||(n=setTimeout(r,t.debounce))}function r(){if(n=void 0,a){const{offsetWidth:e,offsetHeight:t}=a;e===l.width&&t===l.height||(l={width:e,height:t},o("resize",l))}}const s=e.getCurrentInstance();if(Object.assign(s.proxy,{trigger:i}),!0===$a){let t;return e.onMounted(()=>{e.nextTick(()=>{a=s.proxy.$el.parentNode,a&&(t=new ResizeObserver(i),t.observe(a),r())})}),e.onBeforeUnmount(()=>{clearTimeout(n),void 0!==t&&(void 0!==t.disconnect?t.disconnect():a&&t.unobserve(a))}),m}{const t=ka();let o;function u(){clearTimeout(n),void 0!==o&&(void 0!==o.removeEventListener&&o.removeEventListener("resize",i,p.passive),o=void 0)}function c(){u(),a&&a.contentDocument&&(o=a.contentDocument.defaultView,o.addEventListener("resize",i,p.passive),r())}return e.onMounted(()=>{e.nextTick(()=>{a=s.proxy.$el,a&&c()})}),e.onBeforeUnmount(u),()=>{if(!0===t.value)return e.h("object",{style:Ma.style,tabindex:-1,type:"text/html",data:Ma.url,"aria-hidden":"true",onLoad:c})}}}});let Ba=!1;{const e=document.createElement("div"),t=document.createElement("div");e.setAttribute("dir","rtl"),e.style.width="1px",e.style.height="1px",e.style.overflow="auto",t.style.width="1000px",t.style.height="1px",document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,Ba=e.scrollLeft>=0,e.remove()}function Oa(e,t,o){const n=!0===o?["left","right"]:["top","bottom"];return`absolute-${!0===t?n[0]:n[1]}${e?` text-${e}`:""}`}const Va=["left","center","right","justify"],za=()=>{};var La=e.defineComponent({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>Va.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":Function},setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),{proxy:{$q:l}}=a,{registerTick:i,prepareTick:r}=qo(),{registerTimeout:s}=ko(),u=e.ref(null),c=e.ref(null),d=e.ref(t.modelValue),v=e.ref(!1),p=e.ref(!0),f=e.ref(!1),h=e.ref(!1),g=e.computed(()=>!0===l.platform.is.desktop||!0===t.mobileArrows),b=[];let y,w,x,_=!1,C=!0===g.value?E:m;const S=e.computed(()=>({activeClass:t.activeClass,activeColor:t.activeColor,activeBgColor:t.activeBgColor,indicatorClass:Oa(t.indicatorColor,t.switchIndicator,t.vertical),narrowIndicator:t.narrowIndicator,inlineLabel:t.inlineLabel,noCaps:t.noCaps})),q=e.computed(()=>{const e=!0===v.value?"left":!0===h.value?"justify":t.align;return`q-tabs__content--align-${e}`}),k=e.computed(()=>"q-tabs row no-wrap items-center"+` q-tabs--${!0===v.value?"":"not-"}scrollable`+` q-tabs--${!0===t.vertical?"vertical":"horizontal"}`+` q-tabs__arrows--${!0===g.value&&!0===t.outsideArrows?"outside":"inside"}`+(!0===t.dense?" q-tabs--dense":"")+(!0===t.shrink?" col-shrink":"")+(!0===t.stretch?" self-stretch":"")),$=e.computed(()=>"q-tabs__content row no-wrap items-center self-stretch hide-scrollbar "+q.value+(void 0!==t.contentClass?` ${t.contentClass}`:"")+(!0===l.platform.is.mobile?" scroll":"")),M=e.computed(()=>!0===t.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),T=e.computed(()=>!0!==t.vertical&&!0===l.lang.rtl),B=e.computed(()=>!1===Ba&&!0===T.value);function O({name:e,setCurrent:o,skipEmit:a,fromRoute:l}){d.value!==e&&(!0!==a&&n("update:modelValue",e),!0!==o&&void 0!==t["onUpdate:modelValue"]||(L(d.value,e),d.value=e)),void 0!==l&&(_=l)}function V(){i(()=>{!0!==a.isDeactivated&&!0!==a.isUnmounted&&z({width:u.value.offsetWidth,height:u.value.offsetHeight})}),r()}function z(o){if(void 0===M.value||null===c.value)return;const n=o[M.value.container],a=Math.min(c.value[M.value.scroll],Array.prototype.reduce.call(c.value.children,(e,t)=>e+t[M.value.content],0)),l=n>0&&a>n;v.value!==l&&(v.value=l),!0===l&&e.nextTick(C);const i=n<parseInt(t.breakpoint,10);h.value!==i&&(h.value=i)}function L(o,n){const a=void 0!==o&&null!==o&&""!==o?b.find(e=>e.name.value===o):null,l=void 0!==n&&null!==n&&""!==n?b.find(e=>e.name.value===n):null;if(a&&l){const o=a.tabIndicatorRef.value,n=l.tabIndicatorRef.value;clearTimeout(y),o.style.transition="none",o.style.transform="none",n.style.transition="none",n.style.transform="none";const i=o.getBoundingClientRect(),r=n.getBoundingClientRect();n.style.transform=!0===t.vertical?`translate3d(0,${i.top-r.top}px,0) scale3d(1,${r.height?i.height/r.height:1},1)`:`translate3d(${i.left-r.left}px,0,0) scale3d(${r.width?i.width/r.width:1},1,1)`,e.nextTick(()=>{y=setTimeout(()=>{n.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",n.style.transform="none"},70)})}if(l&&!0===v.value){const{left:e,width:o,top:n,height:a}=c.value.getBoundingClientRect(),i=l.rootRef.value.getBoundingClientRect();let r=!0===t.vertical?i.top-n:i.left-e;if(r<0)return c.value[!0===t.vertical?"scrollTop":"scrollLeft"]+=Math.floor(r),void C();r+=!0===t.vertical?i.height-a:i.width-o,r>0&&(c.value[!0===t.vertical?"scrollTop":"scrollLeft"]+=Math.ceil(r),C())}}function E(){const e=c.value;if(null!==e){const o=e.getBoundingClientRect(),n=!0===t.vertical?e.scrollTop:Math.abs(e.scrollLeft);!0===T.value?(p.value=Math.ceil(n+o.width)<e.scrollWidth-1,f.value=n>0):(p.value=n>0,f.value=!0===t.vertical?Math.ceil(n+o.height)<e.scrollHeight:Math.ceil(n+o.width)<e.scrollWidth)}}function P(e){R(),N(e),w=setInterval(()=>{!0===N(e)&&R()},5)}function A(){P(!0===B.value?9999:0)}function F(){P(!0===B.value?0:9999)}function R(){clearInterval(w)}e.watch(T,C),e.watch(()=>t.modelValue,e=>{O({name:e,setCurrent:!0,skipEmit:!0})}),e.watch(()=>t.outsideArrows,()=>{e.nextTick(V())}),e.watch(g,t=>{C=!0===t?E:m,e.nextTick(V())});const I=e.computed(()=>!0===B.value?{get:e=>Math.abs(e.scrollLeft),set:(e,t)=>{e.scrollLeft=-t}}:!0===t.vertical?{get:e=>e.scrollTop,set:(e,t)=>{e.scrollTop=t}}:{get:e=>e.scrollLeft,set:(e,t)=>{e.scrollLeft=t}});function N(e){const t=c.value,{get:o,set:n}=I.value;let a=!1,l=o(t);const i=e<l?-1:1;return l+=5*i,l<0?(a=!0,l=0):(-1===i&&l<=e||1===i&&l>=e)&&(a=!0,l=e),n(t,l),C(),a}function j(){return b.filter(e=>void 0!==e.routerProps&&!0===e.routerProps.hasLink.value)}function D(){let e=null,t=_;const o={matchedLen:0,hrefLen:0,exact:!1,found:!1},{hash:n}=a.proxy.$route,l=d.value;let i=!0===t?za:e=>{l===e.name.value&&(t=!0,i=za)};const r=j();for(const a of r){const t=!0===a.routerProps.exact.value;if(!0!==a.routerProps[!0===t?"linkIsExactActive":"linkIsActive"].value||!0===o.exact&&!0!==t){i(a);continue}const l=a.routerProps.linkRoute.value,r=l.hash;if(!0===t){if(n===r){e=a.name.value;break}if(""!==n&&""!==r){i(a);continue}}const s=l.matched.length,u=l.href.length-r.length;(s===o.matchedLen?u>o.hrefLen:s>o.matchedLen)?(e=a.name.value,Object.assign(o,{matchedLen:s,hrefLen:u,exact:t})):i(a)}!0!==t&&null===e||O({name:e,setCurrent:!0,fromRoute:!0})}function H(){!0!==W.avoidRouteWatcher&&s(D)}function Q(t){b.push(t);const o=j();o.length>0&&(void 0===x&&(x=e.watch(()=>a.proxy.$route,H)),H())}function U(e){if(b.splice(b.indexOf(e),1),void 0!==x){const e=j();0===e.length&&(x(),x=void 0),H()}}const W={currentModel:d,tabProps:S,registerTab:Q,unregisterTab:U,verifyRouteModel:H,updateModel:O,recalculateScroll:V,avoidRouteWatcher:!1};return e.provide(se,W),e.onBeforeUnmount(()=>{clearTimeout(y),void 0!==x&&x()}),e.onActivated(V),()=>{const n=[e.h(Ta,{onResize:z}),e.h("div",{ref:c,class:$.value,onScroll:C},Fe(o.default))];return!0===g.value&&n.push(e.h(et,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(!0===p.value?"":" q-tabs__arrow--faded"),name:t.leftIcon||l.iconSet.tabs[!0===t.vertical?"up":"left"],onMousedown:A,onTouchstartPassive:A,onMouseup:R,onMouseleave:R,onTouchend:R}),e.h(et,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(!0===f.value?"":" q-tabs__arrow--faded"),name:t.rightIcon||l.iconSet.tabs[!0===t.vertical?"down":"right"],onMousedown:F,onTouchstartPassive:F,onMouseup:R,onMouseleave:R,onTouchend:R})),e.h("div",{ref:u,class:k.value,role:"tablist"},n)}}});let Ea=0;const Pa=["click","keyup"],Aa={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${Ea++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function Fa(t,o,n,a){const l=e.inject(se,()=>{console.error("QTab/QRouteTab component needs to be child of QTabs")}),i=e.ref(null),r=e.ref(null),s=e.ref(null),u=e.computed(()=>!0!==t.disable&&t.ripple),c=e.computed(()=>l.currentModel.value===t.name),d=e.computed(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(!0===c.value?" q-tab--active"+(l.tabProps.value.activeClass?" "+l.tabProps.value.activeClass:"")+(l.tabProps.value.activeColor?` text-${l.tabProps.value.activeColor}`:"")+(l.tabProps.value.activeBgColor?` bg-${l.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(t.icon&&t.label&&!1===l.tabProps.value.inlineLabel?" q-tab--full":"")+(!0===t.noCaps||!0===l.tabProps.value.noCaps?" q-tab--no-caps":"")+(!0===t.disable?" disabled":" q-focusable q-hoverable cursor-pointer")+(void 0!==a&&""!==a.linkClass.value?` ${a.linkClass.value}`:"")),v=e.computed(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(!0===l.tabProps.value.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==t.contentClass?` ${t.contentClass}`:"")),p=e.computed(()=>!0===t.disable||!0===c.value?-1:t.tabindex||0);function m(e,o){if(!0!==o&&null!==i.value&&i.value.focus(),!0!==t.disable){let o;if(void 0!==a){if(!0!==a.hasLink.value)return void n("click",e);o=(()=>{e.__qNavigate=!0,l.avoidRouteWatcher=!0;const o=a.navigateToLink(e);!1===o?l.avoidRouteWatcher=!1:o.then(()=>{l.avoidRouteWatcher=!1,l.updateModel({name:t.name,fromRoute:!0})})})}else o=(()=>{l.updateModel({name:t.name,fromRoute:!1})});n("click",e,o),!0!==e.defaultPrevented&&o()}}function f(e){!0===W(e,13)&&m(e,!0),n("keyup",e)}function h(){const n=l.tabProps.value.narrowIndicator,a=[],r=e.h("div",{ref:s,class:["q-tab__indicator",l.tabProps.value.indicatorClass]});void 0!==t.icon&&a.push(e.h(et,{class:"q-tab__icon",name:t.icon})),void 0!==t.label&&a.push(e.h("div",{class:"q-tab__label"},t.label)),!1!==t.alert&&a.push(void 0!==t.alertIcon?e.h(et,{class:"q-tab__alert-icon",color:!0!==t.alert?t.alert:void 0,name:t.alertIcon}):e.h("div",{class:"q-tab__alert"+(!0!==t.alert?` text-${t.alert}`:"")})),!0===n&&a.push(r);const u=[e.h("div",{class:"q-focus-helper",tabindex:-1,ref:i}),e.h("div",{class:v.value},Ie(o.default,a))];return!1===n&&u.push(r),u}const g={name:e.computed(()=>t.name),rootRef:r,tabIndicatorRef:s,routerProps:a};function b(o,n){const a={ref:r,class:d.value,tabindex:p.value,role:"tab","aria-selected":c.value,"aria-disabled":!0===t.disable?"true":void 0,onClick:m,onKeyup:f,...n};return e.withDirectives(e.h(o,a,h()),[[Nt,u.value]])}return e.onBeforeUnmount(()=>{l.unregisterTab(g),l.recalculateScroll()}),e.onMounted(()=>{l.registerTab(g),l.recalculateScroll()}),{renderTab:b,$tabs:l}}var Ra=e.defineComponent({name:"QTab",props:Aa,emits:Pa,setup(e,{slots:t,emit:o}){const{renderTab:n}=Fa(e,t,o);return()=>n("div")}}),Ia=e.defineComponent({name:"QTabPanels",props:{...An,...at},emits:Fn,setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),{updatePanelsList:l,getPanelContent:i,panelDirectives:r}=Rn(),s=e.computed(()=>"q-tab-panels q-panel-parent"+(!0===a.value?" q-tab-panels--dark q-dark":""));return()=>{return l(o),je("div",{class:s.value},i(),"pan",t.swipeable,()=>r.value)}}}),Na=e.defineComponent({name:"QTabPanel",props:En,setup(t,{slots:o}){return()=>e.h("div",{class:"q-tab-panel"},Fe(o.default))}});const ja=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Da=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Ha=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Qa=/^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])\)$/,Ua=/^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)\)$/,Wa={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),hexColor:e=>ja.test(e),hexaColor:e=>Da.test(e),hexOrHexaColor:e=>Ha.test(e),rgbColor:e=>Qa.test(e),rgbaColor:e=>Ua.test(e),rgbOrRgbaColor:e=>Qa.test(e)||Ua.test(e),hexOrRgbColor:e=>ja.test(e)||Qa.test(e),hexaOrRgbaColor:e=>Da.test(e)||Ua.test(e),anyColor:e=>Ha.test(e)||Qa.test(e)||Ua.test(e)};var Ya={testPattern:Wa};const Ka=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function Xa({r:e,g:t,b:o,a:n}){const a=void 0!==n;if(e=Math.round(e),t=Math.round(t),o=Math.round(o),e>255||t>255||o>255||a&&n>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return n=a?(256|Math.round(255*n/100)).toString(16).slice(1):"","#"+(o|t<<8|e<<16|1<<24).toString(16).slice(1)+n}function Za({r:e,g:t,b:o,a:n}){return`rgb${void 0!==n?"a":""}(${e},${t},${o}${void 0!==n?","+n/100:""})`}function Ga(e){if("string"!==typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function Ja({h:e,s:t,v:o,a:n}){let a,l,i;t/=100,o/=100,e/=360;const r=Math.floor(6*e),s=6*e-r,u=o*(1-t),c=o*(1-s*t),d=o*(1-(1-s)*t);switch(r%6){case 0:a=o,l=d,i=u;break;case 1:a=c,l=o,i=u;break;case 2:a=u,l=o,i=d;break;case 3:a=u,l=c,i=o;break;case 4:a=d,l=u,i=o;break;case 5:a=o,l=u,i=c;break}return{r:Math.round(255*a),g:Math.round(255*l),b:Math.round(255*i),a:n}}function el({r:e,g:t,b:o,a:n}){const a=Math.max(e,t,o),l=Math.min(e,t,o),i=a-l,r=0===a?0:i/a,s=a/255;let u;switch(a){case l:u=0;break;case e:u=t-o+i*(t<o?6:0),u/=6*i;break;case t:u=o-e+2*i,u/=6*i;break;case o:u=e-t+4*i,u/=6*i;break}return{h:Math.round(360*u),s:Math.round(100*r),v:Math.round(100*s),a:n}}function tl(e){if("string"!==typeof e)throw new TypeError("Expected a string");const t=e.replace(/ /g,""),o=Ka.exec(t);if(null===o)return Ga(t);const n={r:Math.min(255,parseInt(o[2],10)),g:Math.min(255,parseInt(o[3],10)),b:Math.min(255,parseInt(o[4],10))};if(o[1]){const e=parseFloat(o[5]);n.a=100*Math.min(1,!0===isNaN(e)?1:e)}return n}function ol(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if("number"!==typeof t)throw new TypeError("Expected a numeric percent");const o=tl(e),n=t<0?0:255,a=Math.abs(t)/100,l=o.r,i=o.g,r=o.b;return"#"+(16777216+65536*(Math.round((n-l)*a)+l)+256*(Math.round((n-i)*a)+i)+(Math.round((n-r)*a)+r)).toString(16).slice(1)}function nl(e){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b} object as color");const t="string"===typeof e?tl(e):e,o=t.r/255,n=t.g/255,a=t.b/255,l=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),i=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),r=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4);return.2126*l+.7152*i+.0722*r}function al(e){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b} object as color");const t="string"===typeof e?tl(e):e;return(299*t.r+587*t.g+114*t.b)/1e3}function ll(e,t){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b[, a]} object as fgColor");if("string"!==typeof t&&(!t||void 0===t.r))throw new TypeError("Expected a string or a {r, g, b[, a]} object as bgColor");const o="string"===typeof e?tl(e):e,n=o.r/255,a=o.g/255,l=o.b/255,i=void 0!==o.a?o.a/100:1,r="string"===typeof t?tl(t):t,s=r.r/255,u=r.g/255,c=r.b/255,d=void 0!==r.a?r.a/100:1,v=i+d*(1-i),p=Math.round((n*i+s*d*(1-i))/v*255),m=Math.round((a*i+u*d*(1-i))/v*255),f=Math.round((l*i+c*d*(1-i))/v*255),h={r:p,g:m,b:f,a:Math.round(100*v)};return"string"===typeof e?Xa(h):h}function il(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if(void 0===t||t<-1||t>1)throw new TypeError("Expected offset to be between -1 and 1");const{r:o,g:n,b:a,a:l}=tl(e),i=void 0!==l?l/100:0;return Xa({r:o,g:n,b:a,a:Math.round(100*Math.min(1,Math.max(0,i+t)))})}function rl(e){if("string"!==typeof e)throw new TypeError("Expected a string as color");const t=document.createElement("div");t.className=`text-${e} invisible fixed no-pointer-events`,document.body.appendChild(t);const o=getComputedStyle(t).getPropertyValue("color");return t.remove(),Xa(tl(o))}var sl={rgbToHex:Xa,hexToRgb:Ga,hsvToRgb:Ja,rgbToHsv:el,textToRgb:tl,lighten:ol,luminosity:nl,brightness:al,blend:ll,changeAlpha:il,getPaletteColor:rl};const ul=["rgb(255,204,204)","rgb(255,230,204)","rgb(255,255,204)","rgb(204,255,204)","rgb(204,255,230)","rgb(204,255,255)","rgb(204,230,255)","rgb(204,204,255)","rgb(230,204,255)","rgb(255,204,255)","rgb(255,153,153)","rgb(255,204,153)","rgb(255,255,153)","rgb(153,255,153)","rgb(153,255,204)","rgb(153,255,255)","rgb(153,204,255)","rgb(153,153,255)","rgb(204,153,255)","rgb(255,153,255)","rgb(255,102,102)","rgb(255,179,102)","rgb(255,255,102)","rgb(102,255,102)","rgb(102,255,179)","rgb(102,255,255)","rgb(102,179,255)","rgb(102,102,255)","rgb(179,102,255)","rgb(255,102,255)","rgb(255,51,51)","rgb(255,153,51)","rgb(255,255,51)","rgb(51,255,51)","rgb(51,255,153)","rgb(51,255,255)","rgb(51,153,255)","rgb(51,51,255)","rgb(153,51,255)","rgb(255,51,255)","rgb(255,0,0)","rgb(255,128,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,128)","rgb(0,255,255)","rgb(0,128,255)","rgb(0,0,255)","rgb(128,0,255)","rgb(255,0,255)","rgb(245,0,0)","rgb(245,123,0)","rgb(245,245,0)","rgb(0,245,0)","rgb(0,245,123)","rgb(0,245,245)","rgb(0,123,245)","rgb(0,0,245)","rgb(123,0,245)","rgb(245,0,245)","rgb(214,0,0)","rgb(214,108,0)","rgb(214,214,0)","rgb(0,214,0)","rgb(0,214,108)","rgb(0,214,214)","rgb(0,108,214)","rgb(0,0,214)","rgb(108,0,214)","rgb(214,0,214)","rgb(163,0,0)","rgb(163,82,0)","rgb(163,163,0)","rgb(0,163,0)","rgb(0,163,82)","rgb(0,163,163)","rgb(0,82,163)","rgb(0,0,163)","rgb(82,0,163)","rgb(163,0,163)","rgb(92,0,0)","rgb(92,46,0)","rgb(92,92,0)","rgb(0,92,0)","rgb(0,92,46)","rgb(0,92,92)","rgb(0,46,92)","rgb(0,0,92)","rgb(46,0,92)","rgb(92,0,92)","rgb(255,255,255)","rgb(205,205,205)","rgb(178,178,178)","rgb(153,153,153)","rgb(127,127,127)","rgb(102,102,102)","rgb(76,76,76)","rgb(51,51,51)","rgb(25,25,25)","rgb(0,0,0)"],cl="M5 5 h10 v10 h-10 v-10 z";var dl=e.defineComponent({name:"QColor",props:{...at,...wn,modelValue:String,defaultValue:String,defaultView:{type:String,default:"spectrum",validator:e=>["spectrum","tune","palette"].includes(e)},formatModel:{type:String,default:"auto",validator:e=>["auto","hex","rgb","hexa","rgba"].includes(e)},palette:Array,noHeader:Boolean,noHeaderTabs:Boolean,noFooter:Boolean,square:Boolean,flat:Boolean,bordered:Boolean,disable:Boolean,readonly:Boolean},emits:["update:modelValue","change"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),{$q:a}=n,l=lt(t,a),{getCache:i}=Ln(),r=e.ref(null),s=e.ref(null),u=e.computed(()=>"auto"===t.formatModel?null:t.formatModel.indexOf("hex")>-1),c=e.computed(()=>"auto"===t.formatModel?null:t.formatModel.indexOf("a")>-1),d=e.ref("auto"===t.formatModel?void 0===t.modelValue||null===t.modelValue||""===t.modelValue||t.modelValue.startsWith("#")?"hex":"rgb":t.formatModel.startsWith("hex")?"hex":"rgb"),v=e.ref(t.defaultView),p=e.ref(B(t.modelValue||t.defaultValue)),m=e.computed(()=>!0!==t.disable&&!0!==t.readonly),f=e.computed(()=>void 0===t.modelValue||null===t.modelValue||""===t.modelValue||t.modelValue.startsWith("#")),h=e.computed(()=>null!==u.value?u.value:f.value),g=e.computed(()=>({type:"hidden",name:t.name,value:p.value[!0===h.value?"hex":"rgb"]})),b=_n(g),y=e.computed(()=>null!==c.value?c.value:void 0!==p.value.a),w=e.computed(()=>({backgroundColor:p.value.rgb||"#000"})),x=e.computed(()=>{const e=void 0!==p.value.a&&p.value.a<65||nl(p.value)>.4;return"q-color-picker__header-content"+` q-color-picker__header-content--${e?"light":"dark"}`}),_=e.computed(()=>({background:`hsl(${p.value.h},100%,50%)`})),S=e.computed(()=>({top:`${100-p.value.v}%`,[!0===a.lang.rtl?"right":"left"]:`${p.value.s}%`})),q=e.computed(()=>void 0!==t.palette&&t.palette.length>0?t.palette:ul),k=e.computed(()=>"q-color-picker"+(!0===t.bordered?" q-color-picker--bordered":"")+(!0===t.square?" q-color-picker--square no-border-radius":"")+(!0===t.flat?" q-color-picker--flat no-shadow":"")+(!0===t.disable?" disabled":"")+(!0===l.value?" q-color-picker--dark q-dark":"")),$=e.computed(()=>{return!0===t.disable?{"aria-disabled":"true"}:!0===t.readonly?{"aria-readonly":"true"}:{}}),M=e.computed(()=>{return[[ba,P,void 0,{prevent:!0,stop:!0,mouse:!0}]]});function T(e,t){p.value.hex=Xa(e),p.value.rgb=Za(e),p.value.r=e.r,p.value.g=e.g,p.value.b=e.b,p.value.a=e.a;const n=p.value[!0===h.value?"hex":"rgb"];o("update:modelValue",n),!0===t&&o("change",n)}function B(e){const o=void 0!==c.value?c.value:"auto"===t.formatModel?null:t.formatModel.indexOf("a")>-1;if("string"!==typeof e||0===e.length||!0!==Wa.anyColor(e.replace(/ /g,"")))return{h:0,s:0,v:0,r:0,g:0,b:0,a:!0===o?100:void 0,hex:void 0,rgb:void 0};const n=tl(e);return!0===o&&void 0===n.a&&(n.a=100),n.hex=Xa(n),n.rgb=Za(n),Object.assign(n,el(n))}function O(e,t,o){const n=r.value;if(null===n)return;const l=n.clientWidth,i=n.clientHeight,s=n.getBoundingClientRect();let u=Math.min(l,Math.max(0,e-s.left));!0===a.lang.rtl&&(u=l-u);const c=Math.min(i,Math.max(0,t-s.top)),d=Math.round(100*u/l),v=Math.round(100*Math.max(0,Math.min(1,-c/i+1))),m=Ja({h:p.value.h,s:d,v:v,a:!0===y.value?p.value.a:void 0});p.value.s=d,p.value.v=v,T(m,o)}function V(e,t){const o=Math.round(e),n=Ja({h:o,s:p.value.s,v:p.value.v,a:!0===y.value?p.value.a:void 0});p.value.h=o,T(n,t)}function z(t,o,a,l,i){if(void 0!==l&&C(l),!/^[0-9]+$/.test(t))return void(!0===i&&n.$forceUpdate());const r=Math.floor(Number(t));if(r<0||r>a)return void(!0===i&&n.$forceUpdate());const s={r:"r"===o?r:p.value.r,g:"g"===o?r:p.value.g,b:"b"===o?r:p.value.b,a:!0===y.value?"a"===o?r:p.value.a:void 0};if("a"!==o){const e=el(s);p.value.h=e.h,p.value.s=e.s,p.value.v=e.v}if(T(s,i),void 0!==l&&!0!==i&&void 0!==l.target.selectionEnd){const t=l.target.selectionEnd;e.nextTick(()=>{l.target.setSelectionRange(t,t)})}}function L(t,o){let n;const a=t.target.value;if(C(t),"hex"===d.value){if(a.length!==(!0===y.value?9:7)||!/^#[0-9A-Fa-f]+$/.test(a))return!0;n=Ga(a)}else{let e;if(!a.endsWith(")"))return!0;if(!0!==y.value&&a.startsWith("rgb(")){if(e=a.substring(4,a.length-1).split(",").map(e=>parseInt(e,10)),3!==e.length||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(a))return!0}else{if(!0!==y.value||!a.startsWith("rgba("))return!0;{if(e=a.substring(5,a.length-1).split(","),4!==e.length||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(a))return!0;for(let o=0;o<3;o++){const t=parseInt(e[o],10);if(t<0||t>255)return!0;e[o]=t}const t=parseFloat(e[3]);if(t<0||t>1)return!0;e[3]=t}}if(e[0]<0||e[0]>255||e[1]<0||e[1]>255||e[2]<0||e[2]>255||!0===y.value&&(e[3]<0||e[3]>1))return!0;n={r:e[0],g:e[1],b:e[2],a:!0===y.value?100*e[3]:void 0}}const l=el(n);if(p.value.h=l.h,p.value.s=l.s,p.value.v=l.v,T(n,o),!0!==o){const o=t.target.selectionEnd;e.nextTick(()=>{t.target.setSelectionRange(o,o)})}}function E(e){const t=B(e),o={r:t.r,g:t.g,b:t.b,a:t.a};void 0===o.a&&(o.a=p.value.a),p.value.h=t.h,p.value.s=t.s,p.value.v=t.v,T(o,!0)}function P(e){e.isFinal?O(e.position.left,e.position.top,!0):A(e)}e.watch(()=>t.modelValue,e=>{const o=B(e||t.defaultValue);o.hex!==p.value.hex&&(p.value=o)}),e.watch(()=>t.defaultValue,e=>{if(!t.modelValue&&e){const t=B(e);t.hex!==p.value.hex&&(p.value=t)}});const A=Ft(e=>{O(e.position.left,e.position.top)},20);function F(e){O(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset,!0)}function R(e){O(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset)}function I(e){null!==s.value&&(s.value.$el.style.opacity=e?1:0)}function N(){const o=[];return!0!==t.noHeaderTabs&&o.push(e.h(La,{class:"q-color-picker__header-tabs",modelValue:d.value,dense:!0,align:"justify",...i("topVTab",{"onUpdate:modelValue":e=>{d.value=e}})},()=>[e.h(Ra,{label:"HEX"+(!0===y.value?"A":""),name:"hex",ripple:!1}),e.h(Ra,{label:"RGB"+(!0===y.value?"A":""),name:"rgb",ripple:!1})])),o.push(e.h("div",{class:"q-color-picker__header-banner row flex-center no-wrap"},[e.h("input",{class:"fit",value:p.value[d.value],...!0!==m.value?{readonly:!0}:{},...i("topIn",{onInput:e=>{I(!0===L(e))},onChange:C,onBlur:e=>{!0===L(e,!0)&&n.$forceUpdate(),I(!1)}})}),e.h(et,{ref:s,class:"q-color-picker__error-icon absolute no-pointer-events",name:a.iconSet.type.negative})])),e.h("div",{class:"q-color-picker__header relative-position overflow-hidden"},[e.h("div",{class:"q-color-picker__header-bg absolute-full"}),e.h("div",{class:x.value,style:w.value},o)])}function j(){return e.h(Ia,{modelValue:v.value,animated:!0},()=>[e.h(Na,{class:"q-color-picker__spectrum-tab overflow-hidden",name:"spectrum"},H),e.h(Na,{class:"q-pa-md q-color-picker__tune-tab",name:"tune"},Q),e.h(Na,{class:"q-color-picker__palette-tab",name:"palette"},U)])}function D(){return e.h("div",{class:"q-color-picker__footer relative-position overflow-hidden"},[e.h(La,{class:"absolute-full",modelValue:v.value,dense:!0,align:"justify",...i("ftIn",{"onUpdate:modelValue":e=>{v.value=e}})},()=>[e.h(Ra,{icon:a.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}),e.h(Ra,{icon:a.iconSet.colorPicker.tune,name:"tune",ripple:!1}),e.h(Ra,{icon:a.iconSet.colorPicker.palette,name:"palette",ripple:!1})])])}function H(){const t={ref:r,class:"q-color-picker__spectrum non-selectable relative-position cursor-pointer"+(!0!==m.value?" readonly":""),style:_.value,...!0===m.value?{onClick:F,onMousedown:R}:{}},o=[e.h("div",{style:{paddingBottom:"100%"}}),e.h("div",{class:"q-color-picker__spectrum-white absolute-full"}),e.h("div",{class:"q-color-picker__spectrum-black absolute-full"}),e.h("div",{class:"absolute",style:S.value},[void 0!==p.value.hex?e.h("div",{class:"q-color-picker__spectrum-circle"}):null])],n=[e.h("div",{class:"q-color-picker__hue non-selectable"},[e.h(qa,{modelValue:p.value.h,min:0,max:360,fillHandleAlways:!0,readonly:!0!==m.value,thumbPath:cl,"onUpdate:modelValue":V,...i("lazyhue",{onChange:e=>V(e,!0)})})])];return!0===y.value&&n.push(e.h("div",{class:"q-color-picker__alpha non-selectable"},[e.h(qa,{modelValue:p.value.a,min:0,max:100,fillHandleAlways:!0,readonly:!0!==m.value,thumbPath:cl,...i("alphaSlide",{"onUpdate:modelValue":e=>z(e,"a",100),onChange:e=>z(e,"a",100,void 0,!0)})})])),[je("div",t,o,"spec",m.value,()=>M.value),e.h("div",{class:"q-color-picker__sliders"},n)]}function Q(){return[e.h("div",{class:"row items-center no-wrap"},[e.h("div","R"),e.h(qa,{modelValue:p.value.r,min:0,max:255,color:"red",dark:l.value,readonly:!0!==m.value,...i("rSlide",{"onUpdate:modelValue":e=>z(e,"r",255),onChange:e=>z(e,"r",255,void 0,!0)})}),e.h("input",{value:p.value.r,maxlength:3,readonly:!0!==m.value,onChange:C,...i("rIn",{onInput:e=>z(e.target.value,"r",255,e),onBlur:e=>z(e.target.value,"r",255,e,!0)})})]),e.h("div",{class:"row items-center no-wrap"},[e.h("div","G"),e.h(qa,{modelValue:p.value.g,min:0,max:255,color:"green",dark:l.value,readonly:!0!==m.value,...i("gSlide",{"onUpdate:modelValue":e=>z(e,"g",255),onChange:e=>z(e,"g",255,void 0,!0)})}),e.h("input",{value:p.value.g,maxlength:3,readonly:!0!==m.value,onChange:C,...i("gIn",{onInput:e=>z(e.target.value,"g",255,e),onBlur:e=>z(e.target.value,"g",255,e,!0)})})]),e.h("div",{class:"row items-center no-wrap"},[e.h("div","B"),e.h(qa,{modelValue:p.value.b,min:0,max:255,color:"blue",readonly:!0!==m.value,dark:l.value,...i("bSlide",{"onUpdate:modelValue":e=>z(e,"b",255),onChange:e=>z(e,"b",255,void 0,!0)})}),e.h("input",{value:p.value.b,maxlength:3,readonly:!0!==m.value,onChange:C,...i("bIn",{onInput:e=>z(e.target.value,"b",255,e),onBlur:e=>z(e.target.value,"b",255,e,!0)})})]),!0===y.value?e.h("div",{class:"row items-center no-wrap"},[e.h("div","A"),e.h(qa,{modelValue:p.value.a,color:"grey",readonly:!0!==m.value,dark:l.value,...i("aSlide",{"onUpdate:modelValue":e=>z(e,"a",100),onChange:e=>z(e,"a",100,void 0,!0)})}),e.h("input",{value:p.value.a,maxlength:3,readonly:!0!==m.value,onChange:C,...i("aIn",{onInput:e=>z(e.target.value,"a",100,e),onBlur:e=>z(e.target.value,"a",100,e,!0)})})]):null]}function U(){const t=t=>e.h("div",{class:"q-color-picker__cube col-auto",style:{backgroundColor:t},...!0===m.value?i("palette#"+t,{onClick:()=>{E(t)}}):{}});return[e.h("div",{class:"row items-center q-color-picker__palette-rows"+(!0===m.value?" q-color-picker__palette-rows--editable":"")},q.value.map(t))]}return()=>{const o=[j()];return void 0!==t.name&&!0!==t.disable&&b(o,"push"),!0!==t.noHeader&&o.unshift(N()),!0!==t.noFooter&&o.push(D()),e.h("div",{class:k.value,...$.value},o)}}});const vl=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function pl(e,t,o){return"[object Date]"===Object.prototype.toString.call(e)&&(o=e.getDate(),t=e.getMonth()+1,e=e.getFullYear()),wl(xl(e,t,o))}function ml(e,t,o){return _l(yl(e,t,o))}function fl(e){return 0===gl(e)}function hl(e,t){return t<=6?31:t<=11?30:fl(e)?30:29}function gl(e){const t=vl.length;let o,n,a,l,i,r=vl[0];if(e<r||e>=vl[t-1])throw new Error("Invalid Jalaali year "+e);for(i=1;i<t;i+=1){if(o=vl[i],n=o-r,e<o)break;r=o}return l=e-r,n-l<6&&(l=l-n+33*Cl(n+4,33)),a=Sl(Sl(l+1,33)-1,4),-1===a&&(a=4),a}function bl(e,t){const o=vl.length,n=e+621;let a,l,i,r,s,u=-14,c=vl[0];if(e<c||e>=vl[o-1])throw new Error("Invalid Jalaali year "+e);for(s=1;s<o;s+=1){if(a=vl[s],l=a-c,e<a)break;u=u+8*Cl(l,33)+Cl(Sl(l,33),4),c=a}r=e-c,u=u+8*Cl(r,33)+Cl(Sl(r,33)+3,4),4===Sl(l,33)&&l-r===4&&(u+=1);const d=Cl(n,4)-Cl(3*(Cl(n,100)+1),4)-150,v=20+u-d;return t||(l-r<6&&(r=r-l+33*Cl(l+4,33)),i=Sl(Sl(r+1,33)-1,4),-1===i&&(i=4)),{leap:i,gy:n,march:v}}function yl(e,t,o){const n=bl(e,!0);return xl(n.gy,3,n.march)+31*(t-1)-Cl(t,7)*(t-7)+o-1}function wl(e){const t=_l(e).gy;let o,n,a,l=t-621;const i=bl(l,!1),r=xl(t,3,i.march);if(a=e-r,a>=0){if(a<=185)return n=1+Cl(a,31),o=Sl(a,31)+1,{jy:l,jm:n,jd:o};a-=186}else l-=1,a+=179,1===i.leap&&(a+=1);return n=7+Cl(a,30),o=Sl(a,30)+1,{jy:l,jm:n,jd:o}}function xl(e,t,o){let n=Cl(1461*(e+Cl(t-8,6)+100100),4)+Cl(153*Sl(t+9,12)+2,5)+o-34840408;return n=n-Cl(3*Cl(e+100100+Cl(t-8,6),100),4)+752,n}function _l(e){let t=4*e+139361631;t=t+4*Cl(3*Cl(4*e+183187720,146097),4)-3908;const o=5*Cl(Sl(t,1461),4)+308,n=Cl(Sl(o,153),5)+1,a=Sl(Cl(o,153),12)+1,l=Cl(t,1461)-100100+Cl(8-a,6);return{gy:l,gm:a,gd:n}}function Cl(e,t){return~~(e/t)}function Sl(e,t){return e-~~(e/t)*t}const ql=["gregorian","persian"],kl={modelValue:{required:!0},mask:{type:String},locale:Object,calendar:{type:String,validator:e=>ql.includes(e),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},$l=["update:modelValue"];function Ml(e){return e.year+"/"+Ce(e.month)+"/"+Ce(e.day)}function Tl(t,o){const n=e.computed(()=>{return!0!==t.disable&&!0!==t.readonly}),a=e.computed(()=>{return!0===t.editable?0:-1}),l=e.computed(()=>{const e=[];return void 0!==t.color&&e.push(`bg-${t.color}`),void 0!==t.textColor&&e.push(`text-${t.textColor}`),e.join(" ")});function i(){return t.locale||o.lang.date}function r(e){const o=new Date,n=!0===e?null:0;if("persian"===t.calendar){const e=pl(o);return{year:e.jy,month:e.jm,day:e.jd}}return{year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate(),hour:n,minute:n,second:n,millisecond:n}}return{editable:n,tabindex:a,headerClass:l,getLocale:i,getCurrentDate:r}}const Bl=864e5,Ol=36e5,Vl=6e4,zl="YYYY-MM-DDTHH:mm:ss.SSSZ",Ll=/\[((?:[^\]\\]|\\]|\\)*)\]|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,El=/(\[[^\]]*\])|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,Pl={};function Al(e,t){const o="("+t.days.join("|")+")",n=e+o;if(void 0!==Pl[n])return Pl[n];const a="("+t.daysShort.join("|")+")",l="("+t.months.join("|")+")",i="("+t.monthsShort.join("|")+")",r={};let s=0;const u=e.replace(El,e=>{switch(s++,e){case"YY":return r.YY=s,"(-?\\d{1,2})";case"YYYY":return r.YYYY=s,"(-?\\d{1,4})";case"M":return r.M=s,"(\\d{1,2})";case"MM":return r.M=s,"(\\d{2})";case"MMM":return r.MMM=s,i;case"MMMM":return r.MMMM=s,l;case"D":return r.D=s,"(\\d{1,2})";case"Do":return r.D=s++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return r.D=s,"(\\d{2})";case"H":return r.H=s,"(\\d{1,2})";case"HH":return r.H=s,"(\\d{2})";case"h":return r.h=s,"(\\d{1,2})";case"hh":return r.h=s,"(\\d{2})";case"m":return r.m=s,"(\\d{1,2})";case"mm":return r.m=s,"(\\d{2})";case"s":return r.s=s,"(\\d{1,2})";case"ss":return r.s=s,"(\\d{2})";case"S":return r.S=s,"(\\d{1})";case"SS":return r.S=s,"(\\d{2})";case"SSS":return r.S=s,"(\\d{3})";case"A":return r.A=s,"(AM|PM)";case"a":return r.a=s,"(am|pm)";case"aa":return r.aa=s,"(a\\.m\\.|p\\.m\\.)";case"ddd":return a;case"dddd":return o;case"Q":case"d":case"E":return"(\\d{1})";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"w":return"(\\d{1,2})";case"ww":return"(\\d{2})";case"Z":return r.Z=s,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return r.ZZ=s,"(Z|[+-]\\d{2}\\d{2})";case"X":return r.X=s,"(-?\\d+)";case"x":return r.x=s,"(-?\\d{4,})";default:return s--,"["===e[0]&&(e=e.substring(1,e.length-1)),e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),c={map:r,regex:new RegExp("^"+u)};return Pl[n]=c,c}function Fl(e,t){return void 0!==e?e:void 0!==t?t.date:I.date}function Rl(e,t=""){const o=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),l=n%60;return o+Ce(a)+t+Ce(l)}function Il(e,t,o){let n=e.getFullYear(),a=e.getMonth(),l=e.getDate();return void 0!==t.years&&(n+=o*t.years),void 0!==t.months&&(a+=o*t.months),void 0!==t.days&&(l+=o*t.days),e.setDate(1),e.setMonth(2),e.setFullYear(n),e.setMonth(a),e.setDate(l),e}function Nl(e,t,o){const n=new Date(e),a=void 0!==t.years||void 0!==t.months||void 0!==t.days?Il(n,t,o):n;return Object.keys(t).forEach(e=>{if("years"!==e&&"months"!==e&&"days"!==e){const n=we(e);a[`set${n}`](a[`get${n}`]()+o*t[e])}}),a}function jl(e,t,o){const n=void 0!==t.year?t.year:e[`get${o}FullYear`](),a=void 0!==t.month?t.month-1:e[`get${o}Month`](),l=new Date(n,a+1,0).getDate(),i=Math.min(l,void 0!==t.date?t.date:e[`get${o}Date`]());return e[`set${o}Date`](1),e[`set${o}Month`](2),e[`set${o}FullYear`](n),e[`set${o}Month`](a),e[`set${o}Date`](i),e}function Dl(e,t,o){const n=!0===o?"UTC":"",a=new Date(e),l=void 0!==t.year||void 0!==t.month||void 0!==t.date?jl(a,t,n):a;return Object.keys(t).forEach(e=>{if("year"!==e&&"month"!==e&&"date"!==e){const o=e.charAt(0).toUpperCase()+e.slice(1);l[`set${n}${o}`](t[e])}}),l}function Hl(e,t,o){const n=Ql(e,t,o),a=new Date(n.year,null===n.month?null:n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond),l=a.getTimezoneOffset();return null===n.timezoneOffset||n.timezoneOffset===l?a:Nl(a,{minutes:n.timezoneOffset-l},1)}function Ql(e,t,o,n,a){const l={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(void 0!==a&&Object.assign(l,a),void 0===e||null===e||""===e||"string"!==typeof e)return l;void 0===t&&(t=zl);const i=Fl(o,j.props),r=i.months,s=i.monthsShort,{regex:u,map:c}=Al(t,i),d=e.match(u);if(null===d)return l;let v="";if(void 0!==c.X||void 0!==c.x){const e=parseInt(d[void 0!==c.X?c.X:c.x],10);if(!0===isNaN(e)||e<0)return l;const t=new Date(e*(void 0!==c.X?1e3:1));l.year=t.getFullYear(),l.month=t.getMonth()+1,l.day=t.getDate(),l.hour=t.getHours(),l.minute=t.getMinutes(),l.second=t.getSeconds(),l.millisecond=t.getMilliseconds()}else{if(void 0!==c.YYYY)l.year=parseInt(d[c.YYYY],10);else if(void 0!==c.YY){const e=parseInt(d[c.YY],10);l.year=e<0?e:2e3+e}if(void 0!==c.M){if(l.month=parseInt(d[c.M],10),l.month<1||l.month>12)return l}else void 0!==c.MMM?l.month=s.indexOf(d[c.MMM])+1:void 0!==c.MMMM&&(l.month=r.indexOf(d[c.MMMM])+1);if(void 0!==c.D){if(l.day=parseInt(d[c.D],10),null===l.year||null===l.month||l.day<1)return l;const e="persian"!==n?new Date(l.year,l.month,0).getDate():hl(l.year,l.month);if(l.day>e)return l}void 0!==c.H?l.hour=parseInt(d[c.H],10)%24:void 0!==c.h&&(l.hour=parseInt(d[c.h],10)%12,(c.A&&"PM"===d[c.A]||c.a&&"pm"===d[c.a]||c.aa&&"p.m."===d[c.aa])&&(l.hour+=12),l.hour=l.hour%24),void 0!==c.m&&(l.minute=parseInt(d[c.m],10)%60),void 0!==c.s&&(l.second=parseInt(d[c.s],10)%60),void 0!==c.S&&(l.millisecond=parseInt(d[c.S],10)*10**(3-d[c.S].length)),void 0===c.Z&&void 0===c.ZZ||(v=void 0!==c.Z?d[c.Z].replace(":",""):d[c.ZZ],l.timezoneOffset=("+"===v[0]?-1:1)*(60*v.slice(1,3)+1*v.slice(3,5)))}return l.dateHash=l.year+"/"+Ce(l.month)+"/"+Ce(l.day),l.timeHash=Ce(l.hour)+":"+Ce(l.minute)+":"+Ce(l.second)+v,l}function Ul(e){return"number"===typeof e||!1===isNaN(Date.parse(e))}function Wl(e,t){return Dl(new Date,e,t)}function Yl(e){const t=new Date(e).getDay();return 0===t?7:t}function Kl(e){const t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);const o=new Date(t.getFullYear(),0,4);o.setDate(o.getDate()-(o.getDay()+6)%7+3);const n=t.getTimezoneOffset()-o.getTimezoneOffset();t.setHours(t.getHours()-n);const a=(t-o)/(7*Bl);return 1+Math.floor(a)}function Xl(e){return 1e4*e.getFullYear()+100*e.getMonth()+e.getDate()}function Zl(e,t){const o=new Date(e);return!0===t?Xl(o):o.getTime()}function Gl(e,t,o,n={}){const a=Zl(t,n.onlyDate),l=Zl(o,n.onlyDate),i=Zl(e,n.onlyDate);return(i>a||!0===n.inclusiveFrom&&i===a)&&(i<l||!0===n.inclusiveTo&&i===l)}function Jl(e,t){return Nl(e,t,1)}function ei(e,t){return Nl(e,t,-1)}function ti(e,t,o){const n=new Date(e),a=`set${!0===o?"UTC":""}`;switch(t){case"year":n[`${a}Month`](0);case"month":n[`${a}Date`](1);case"day":n[`${a}Hours`](0);case"hour":n[`${a}Minutes`](0);case"minute":n[`${a}Seconds`](0);case"second":n[`${a}Milliseconds`](0)}return n}function oi(e,t,o){const n=new Date(e),a=`set${!0===o?"UTC":""}`;switch(t){case"year":n[`${a}Month`](11);case"month":n[`${a}Date`](di(n));case"day":n[`${a}Hours`](23);case"hour":n[`${a}Minutes`](59);case"minute":n[`${a}Seconds`](59);case"second":n[`${a}Milliseconds`](999)}return n}function ni(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(e=>{t=Math.max(t,new Date(e))}),t}function ai(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(e=>{t=Math.min(t,new Date(e))}),t}function li(e,t,o){return(e.getTime()-e.getTimezoneOffset()*Vl-(t.getTime()-t.getTimezoneOffset()*Vl))/o}function ii(e,t,o="days"){const n=new Date(e),a=new Date(t);switch(o){case"years":return n.getFullYear()-a.getFullYear();case"months":return 12*(n.getFullYear()-a.getFullYear())+n.getMonth()-a.getMonth();case"days":return li(ti(n,"day"),ti(a,"day"),Bl);case"hours":return li(ti(n,"hour"),ti(a,"hour"),Ol);case"minutes":return li(ti(n,"minute"),ti(a,"minute"),Vl);case"seconds":return li(ti(n,"second"),ti(a,"second"),1e3)}}function ri(e){return ii(e,ti(e,"year"),"days")+1}function si(e){return!0===Wn(e)?"date":"number"===typeof e?"number":"string"}function ui(e,t,o){const n=new Date(e);if(t){const e=new Date(t);if(n<e)return e}if(o){const e=new Date(o);if(n>e)return e}return n}function ci(e,t,o){const n=new Date(e),a=new Date(t);if(void 0===o)return n.getTime()===a.getTime();switch(o){case"second":if(n.getSeconds()!==a.getSeconds())return!1;case"minute":if(n.getMinutes()!==a.getMinutes())return!1;case"hour":if(n.getHours()!==a.getHours())return!1;case"day":if(n.getDate()!==a.getDate())return!1;case"month":if(n.getMonth()!==a.getMonth())return!1;case"year":if(n.getFullYear()!==a.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${o}`)}return!0}function di(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function vi(e){if(e>=11&&e<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`}return`${e}th`}const pi={YY(e,t,o){const n=this.YYYY(e,t,o)%100;return n>0?Ce(n):"-"+Ce(Math.abs(n))},YYYY(e,t,o){return void 0!==o&&null!==o?o:e.getFullYear()},M(e){return e.getMonth()+1},MM(e){return Ce(e.getMonth()+1)},MMM(e,t){return t.monthsShort[e.getMonth()]},MMMM(e,t){return t.months[e.getMonth()]},Q(e){return Math.ceil((e.getMonth()+1)/3)},Qo(e){return vi(this.Q(e))},D(e){return e.getDate()},Do(e){return vi(e.getDate())},DD(e){return Ce(e.getDate())},DDD(e){return ri(e)},DDDD(e){return Ce(ri(e),3)},d(e){return e.getDay()},dd(e,t){return this.dddd(e,t).slice(0,2)},ddd(e,t){return t.daysShort[e.getDay()]},dddd(e,t){return t.days[e.getDay()]},E(e){return e.getDay()||7},w(e){return Kl(e)},ww(e){return Ce(Kl(e))},H(e){return e.getHours()},HH(e){return Ce(e.getHours())},h(e){const t=e.getHours();return 0===t?12:t>12?t%12:t},hh(e){return Ce(this.h(e))},m(e){return e.getMinutes()},mm(e){return Ce(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return Ce(e.getSeconds())},S(e){return Math.floor(e.getMilliseconds()/100)},SS(e){return Ce(Math.floor(e.getMilliseconds()/10))},SSS(e){return Ce(e.getMilliseconds(),3)},A(e){return this.H(e)<12?"AM":"PM"},a(e){return this.H(e)<12?"am":"pm"},aa(e){return this.H(e)<12?"a.m.":"p.m."},Z(e,t,o,n){const a=void 0===n||null===n?e.getTimezoneOffset():n;return Rl(a,":")},ZZ(e,t,o,n){const a=void 0===n||null===n?e.getTimezoneOffset():n;return Rl(a)},X(e){return Math.floor(e.getTime()/1e3)},x(e){return e.getTime()}};function mi(e,t,o,n,a){if(0!==e&&!e||e===1/0||e===-1/0)return;const l=new Date(e);if(isNaN(l))return;void 0===t&&(t=zl);const i=Fl(o,j.props);return t.replace(Ll,(e,t)=>e in pi?pi[e](l,i,n,a):void 0===t?e:t.split("\\]").join("]"))}function fi(e){return!0===Wn(e)?new Date(e.getTime()):e}var hi={isValid:Ul,extractDate:Hl,buildDate:Wl,getDayOfWeek:Yl,getWeekOfYear:Kl,isBetweenDates:Gl,addToDate:Jl,subtractFromDate:ei,adjustDate:Dl,startOfDate:ti,endOfDate:oi,getMaxDate:ni,getMinDate:ai,getDateDiff:ii,getDayOfYear:ri,inferDateFormat:si,getDateBetween:ui,isSameDate:ci,daysInMonth:di,formatDate:mi,clone:fi};const gi=20,bi=["Calendar","Years","Months"],yi=e=>bi.includes(e),wi=e=>/^-?[\d]+\/[0-1]\d$/.test(e),xi=" — ";function _i(e){return e.year+"/"+Ce(e.month)}var Ci=e.defineComponent({name:"QDate",props:{...kl,...wn,...at,multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:wi},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:wi},navigationMaxYearMonth:{type:String,validator:wi},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:yi}},emits:[...$l,"range-start","range-end","navigation"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=lt(t,l),{getCache:r}=Ln(),{tabindex:s,headerClass:u,getLocale:c,getCurrentDate:d}=Tl(t,l);let v;const p=xn(t),m=_n(p),f=e.ref(null),h=e.ref(de()),g=e.ref(c()),b=e.computed(()=>de()),y=e.computed(()=>c()),w=e.computed(()=>d()),x=e.ref(pe(h.value,g.value)),_=e.ref(t.defaultView),C=!0===l.lang.rtl?"right":"left",S=e.ref(C.value),q=e.ref(C.value),k=x.value.year,$=e.ref(k-k%gi-(k<0?gi:0)),M=e.ref(null),T=e.computed(()=>{const e=!0===t.landscape?"landscape":"portrait";return`q-date q-date--${e} q-date--${e}-${!0===t.minimal?"minimal":"standard"}`+(!0===i.value?" q-date--dark q-dark":"")+(!0===t.bordered?" q-date--bordered":"")+(!0===t.square?" q-date--square no-border-radius":"")+(!0===t.flat?" q-date--flat no-shadow":"")+(!0===t.disable?" disabled":!0===t.readonly?" q-date--readonly":"")}),B=e.computed(()=>{return t.color||"primary"}),O=e.computed(()=>{return t.textColor||"white"}),V=e.computed(()=>!0===t.emitImmediately&&!0!==t.multiple&&!0!==t.range),z=e.computed(()=>!0===Array.isArray(t.modelValue)?t.modelValue:null!==t.modelValue&&void 0!==t.modelValue?[t.modelValue]:[]),L=e.computed(()=>z.value.filter(e=>"string"===typeof e).map(e=>ve(e,h.value,g.value)).filter(e=>null!==e.dateHash)),E=e.computed(()=>{const e=e=>ve(e,h.value,g.value);return z.value.filter(e=>Object(e)===e&&void 0!==e.from&&void 0!==e.to).map(t=>({from:e(t.from),to:e(t.to)})).filter(e=>null!==e.from.dateHash&&null!==e.to.dateHash&&e.from.dateHash<e.to.dateHash)}),P=e.computed(()=>"persian"!==t.calendar?e=>new Date(e.year,e.month-1,e.day):e=>{const t=ml(e.year,e.month,e.day);return new Date(t.gy,t.gm-1,t.gd)}),A=e.computed(()=>"persian"===t.calendar?Ml:(e,t,o)=>mi(new Date(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond),void 0===t?h.value:t,void 0===o?g.value:o,e.year,e.timezoneOffset)),F=e.computed(()=>L.value.length+E.value.reduce((e,t)=>e+1+ii(P.value(t.to),P.value(t.from)),0)),R=e.computed(()=>{if(void 0!==t.title&&null!==t.title&&t.title.length>0)return t.title;if(null!==M.value){const e=M.value.init,t=P.value(e);return g.value.daysShort[t.getDay()]+", "+g.value.monthsShort[e.month-1]+" "+e.day+xi+"?"}if(0===F.value)return xi;if(F.value>1)return`${F.value} ${g.value.pluralDay}`;const e=L.value[0],o=P.value(e);return!0===isNaN(o.valueOf())?xi:void 0!==g.value.headerTitle?g.value.headerTitle(o,e):g.value.daysShort[o.getDay()]+", "+g.value.monthsShort[e.month-1]+" "+e.day}),I=e.computed(()=>{const e=L.value.concat(E.value.map(e=>e.from)).sort((e,t)=>e.year-t.year||e.month-t.month);return e[0]}),N=e.computed(()=>{const e=L.value.concat(E.value.map(e=>e.to)).sort((e,t)=>t.year-e.year||t.month-e.month);return e[0]}),j=e.computed(()=>{if(void 0!==t.subtitle&&null!==t.subtitle&&t.subtitle.length>0)return t.subtitle;if(0===F.value)return xi;if(F.value>1){const e=I.value,t=N.value,o=g.value.monthsShort;return o[e.month-1]+(e.year!==t.year?" "+e.year+xi+o[t.month-1]+" ":e.month!==t.month?xi+o[t.month-1]:"")+" "+t.year}return L.value[0].year}),D=e.computed(()=>{const e=[l.iconSet.datetime.arrowLeft,l.iconSet.datetime.arrowRight];return!0===l.lang.rtl?e.reverse():e}),H=e.computed(()=>void 0!==t.firstDayOfWeek?Number(t.firstDayOfWeek):g.value.firstDayOfWeek),Q=e.computed(()=>{const e=g.value.daysShort,t=H.value;return t>0?e.slice(t,7).concat(e.slice(0,t)):e}),U=e.computed(()=>{const e=x.value;return"persian"!==t.calendar?new Date(e.year,e.month,0).getDate():hl(e.year,e.month)}),W=e.computed(()=>"function"===typeof t.eventColor?t.eventColor:()=>t.eventColor),Y=e.computed(()=>{if(void 0===t.navigationMinYearMonth)return null;const e=t.navigationMinYearMonth.split("/");return{year:parseInt(e[0],10),month:parseInt(e[1],10)}}),K=e.computed(()=>{if(void 0===t.navigationMaxYearMonth)return null;const e=t.navigationMaxYearMonth.split("/");return{year:parseInt(e[0],10),month:parseInt(e[1],10)}}),X=e.computed(()=>{const e={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return null!==Y.value&&Y.value.year>=x.value.year&&(e.year.prev=!1,Y.value.year===x.value.year&&Y.value.month>=x.value.month&&(e.month.prev=!1)),null!==K.value&&K.value.year<=x.value.year&&(e.year.next=!1,K.value.year===x.value.year&&K.value.month<=x.value.month&&(e.month.next=!1)),e}),Z=e.computed(()=>{const e={};return L.value.forEach(t=>{const o=_i(t);void 0===e[o]&&(e[o]=[]),e[o].push(t.day)}),e}),G=e.computed(()=>{const e={};return E.value.forEach(t=>{const o=_i(t.from),n=_i(t.to);if(void 0===e[o]&&(e[o]=[]),e[o].push({from:t.from.day,to:o===n?t.to.day:void 0,range:t}),o<n){let o;const{year:a,month:l}=t.from,i=l<12?{year:a,month:l+1}:{year:a+1,month:1};while((o=_i(i))<=n)void 0===e[o]&&(e[o]=[]),e[o].push({from:void 0,to:o===n?t.to.day:void 0,range:t}),i.month++,i.month>12&&(i.year++,i.month=1)}}),e}),J=e.computed(()=>{if(null===M.value)return;const{init:e,initHash:t,final:o,finalHash:n}=M.value,[a,l]=t<=n?[e,o]:[o,e],i=_i(a),r=_i(l);if(i!==ee.value&&r!==ee.value)return;const s={};return i===ee.value?(s.from=a.day,s.includeFrom=!0):s.from=1,r===ee.value?(s.to=l.day,s.includeTo=!0):s.to=U.value,s}),ee=e.computed(()=>_i(x.value)),te=e.computed(()=>{const e={};if(void 0===t.options){for(let t=1;t<=U.value;t++)e[t]=!0;return e}const o="function"===typeof t.options?t.options:e=>t.options.includes(e);for(let t=1;t<=U.value;t++){const n=ee.value+"/"+Ce(t);e[t]=o(n)}return e}),oe=e.computed(()=>{const e={};if(void 0===t.events)for(let t=1;t<=U.value;t++)e[t]=!1;else{const o="function"===typeof t.events?t.events:e=>t.events.includes(e);for(let t=1;t<=U.value;t++){const n=ee.value+"/"+Ce(t);e[t]=!0===o(n)&&W.value(n)}}return e}),ne=e.computed(()=>{let e,o;const{year:n,month:a}=x.value;if("persian"!==t.calendar)e=new Date(n,a-1,1),o=new Date(n,a-1,0).getDate();else{const t=ml(n,a,1);e=new Date(t.gy,t.gm-1,t.gd);let l=a-1,i=n;0===l&&(l=12,i--),o=hl(i,l)}return{days:e.getDay()-H.value-1,endDay:o}}),ae=e.computed(()=>{const e=[],{days:t,endDay:o}=ne.value,n=t<0?t+7:t;if(n<6)for(let i=o-n;i<=o;i++)e.push({i:i,fill:!0});const a=e.length;for(let i=1;i<=U.value;i++){const t={i:i,event:oe.value[i],classes:[]};!0===te.value[i]&&(t.in=!0,t.flat=!0),e.push(t)}if(void 0!==Z.value[ee.value]&&Z.value[ee.value].forEach(t=>{const o=a+t-1;Object.assign(e[o],{selected:!0,unelevated:!0,flat:!1,color:B.value,textColor:O.value})}),void 0!==G.value[ee.value]&&G.value[ee.value].forEach(t=>{if(void 0!==t.from){const o=a+t.from-1,n=a+(t.to||U.value)-1;for(let a=o;a<=n;a++)Object.assign(e[a],{range:t.range,unelevated:!0,color:B.value,textColor:O.value});Object.assign(e[o],{rangeFrom:!0,flat:!1}),void 0!==t.to&&Object.assign(e[n],{rangeTo:!0,flat:!1})}else if(void 0!==t.to){const o=a+t.to-1;for(let n=a;n<=o;n++)Object.assign(e[n],{range:t.range,unelevated:!0,color:B.value,textColor:O.value});Object.assign(e[o],{flat:!1,rangeTo:!0})}else{const o=a+U.value-1;for(let n=a;n<=o;n++)Object.assign(e[n],{range:t.range,unelevated:!0,color:B.value,textColor:O.value})}}),void 0!==J.value){const t=a+J.value.from-1,o=a+J.value.to-1;for(let n=t;n<=o;n++)e[n].color=B.value,e[n].editRange=!0;!0===J.value.includeFrom&&(e[t].editRangeFrom=!0),!0===J.value.includeTo&&(e[o].editRangeTo=!0)}x.value.year===w.value.year&&x.value.month===w.value.month&&(e[a+w.value.day-1].today=!0);const l=e.length%7;if(l>0){const t=7-l;for(let o=1;o<=t;o++)e.push({i:o,fill:!0})}return e.forEach(e=>{let t="q-date__calendar-item ";!0===e.fill?t+="q-date__calendar-item--fill":(t+=`q-date__calendar-item--${!0===e.in?"in":"out"}`,void 0!==e.range&&(t+=` q-date__range${!0===e.rangeTo?"-to":!0===e.rangeFrom?"-from":""}`),!0===e.editRange&&(t+=` q-date__edit-range${!0===e.editRangeFrom?"-from":""}${!0===e.editRangeTo?"-to":""}`),void 0===e.range&&!0!==e.editRange||(t+=` text-${e.color}`)),e.classes=t}),e}),le=e.computed(()=>!0===t.disable?{"aria-disabled":"true"}:!0===t.readonly?{"aria-readonly":"true"}:{});function ie(){const e=w.value,t=Z.value[_i(e)];void 0!==t&&!1!==t.includes(e.day)||$e(e),ue(e.year,e.month)}function re(e){!0===yi(e)&&(_.value=e)}function se(e,t){if(["month","year"].includes(e)){const o="month"===e?fe:he;o(!0===t?-1:1)}}function ue(e,t){_.value="Calendar",xe(e,t)}function ce(e,o){if(!1===t.range||!e)return void(M.value=null);const n=Object.assign({...x.value},e),a=void 0!==o?Object.assign({...x.value},o):n;M.value={init:n,initHash:Ml(n),final:a,finalHash:Ml(a)},ue(n.year,n.month)}function de(){return"persian"===t.calendar?"YYYY/MM/DD":t.mask}function ve(e,o,n){return Ql(e,o,n,t.calendar,{hour:0,minute:0,second:0,millisecond:0})}function pe(e,o){const n=!0===Array.isArray(t.modelValue)?t.modelValue:t.modelValue?[t.modelValue]:[];if(0===n.length)return me();const a=ve(void 0!==n[0].from?n[0].from:n[0],e,o);return null===a.dateHash?me():a}function me(){let e,o;if(void 0!==t.defaultYearMonth){const n=t.defaultYearMonth.split("/");e=parseInt(n[0],10),o=parseInt(n[1],10)}else{const t=void 0!==w.value?w.value:d();e=t.year,o=t.month}return{year:e,month:o,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:e+"/"+Ce(o)+"/01"}}function fe(e){let t=x.value.year,o=Number(x.value.month)+e;13===o?(o=1,t++):0===o&&(o=12,t--),xe(t,o),!0===V.value&&Se("month")}function he(e){const t=Number(x.value.year)+e;xe(t,x.value.month),!0===V.value&&Se("year")}function ge(e){xe(e,x.value.month),_.value="Years"===t.defaultView?"Months":"Calendar",!0===V.value&&Se("year")}function be(e){xe(x.value.year,e),_.value="Calendar",!0===V.value&&Se("month")}function ye(e,t){const o=Z.value[t],n=void 0!==o&&!0===o.includes(e.day)?Me:$e;n(e)}function we(e){return{year:e.year,month:e.month,day:e.day}}function xe(t,o){null!==Y.value&&t<=Y.value.year&&(t=Y.value.year,o<Y.value.month&&(o=Y.value.month)),null!==K.value&&t>=K.value.year&&(t=K.value.year,o>K.value.month&&(o=K.value.month));const n=t+"/"+Ce(o)+"/01";n!==x.value.dateHash&&(S.value=x.value.dateHash<n===(!0!==l.lang.rtl)?"left":"right",t!==x.value.year&&(q.value=S.value),e.nextTick(()=>{$.value=t-t%gi-(t<0?gi:0),Object.assign(x.value,{year:t,month:o,day:1,dateHash:n})}))}function _e(e,o,a){const l=null!==e&&1===e.length&&!1===t.multiple?e[0]:e;v=l;const{reason:i,details:r}=qe(o,a);n("update:modelValue",l,i,r)}function Se(o){const a=void 0!==L.value[0]&&null!==L.value[0].dateHash?{...L.value[0]}:{...x.value};e.nextTick(()=>{a.year=x.value.year,a.month=x.value.month;const e="persian"!==t.calendar?new Date(a.year,a.month,0).getDate():hl(a.year,a.month);a.day=Math.min(Math.max(1,a.day),e);const l=ke(a);v=l;const{details:i}=qe("",a);n("update:modelValue",l,o,i)})}function qe(e,t){return void 0!==t.from?{reason:`${e}-range`,details:{...we(t.target),from:we(t.from),to:we(t.to)}}:{reason:`${e}-day`,details:we(t)}}function ke(e,t,o){return void 0!==e.from?{from:A.value(e.from,t,o),to:A.value(e.to,t,o)}:A.value(e,t,o)}function $e(e){let o;if(!0===t.multiple)if(void 0!==e.from){const t=Ml(e.from),n=Ml(e.to),a=L.value.filter(e=>e.dateHash<t||e.dateHash>n),l=E.value.filter(({from:e,to:o})=>o.dateHash<t||e.dateHash>n);o=a.concat(l).concat(e).map(e=>ke(e))}else{const t=z.value.slice();t.push(ke(e)),o=t}else o=ke(e);_e(o,"add",e)}function Me(e){if(!0===t.noUnset)return;let o=null;if(!0===t.multiple&&!0===Array.isArray(t.modelValue)){const n=ke(e);o=void 0!==e.from?t.modelValue.filter(e=>void 0===e.from||e.from!==n.from&&e.to!==n.to):t.modelValue.filter(e=>e!==n),0===o.length&&(o=null)}_e(o,"remove",e)}function Te(e,o,a){const l=L.value.concat(E.value).map(t=>ke(t,e,o)).filter(e=>{return void 0!==e.from?null!==e.from.dateHash&&null!==e.to.dateHash:null!==e.dateHash});n("update:modelValue",(!0===t.multiple?l:l[0])||null,a)}function Be(){if(!0!==t.minimal)return e.h("div",{class:"q-date__header "+u.value},[e.h("div",{class:"relative-position"},[e.h(e.Transition,{name:"q-transition--fade"},()=>e.h("div",{key:"h-yr-"+j.value,class:"q-date__header-subtitle q-date__header-link "+("Years"===_.value?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...r("vY",{onClick(){_.value="Years"},onKeyup(e){13===e.keyCode&&(_.value="Years")}})},[j.value]))]),e.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[e.h("div",{class:"relative-position col"},[e.h(e.Transition,{name:"q-transition--fade"},()=>e.h("div",{key:"h-sub"+R.value,class:"q-date__header-title-label q-date__header-link "+("Calendar"===_.value?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...r("vC",{onClick(){_.value="Calendar"},onKeyup(e){13===e.keyCode&&(_.value="Calendar")}})},[R.value]))]),!0===t.todayBtn?e.h(Xt,{class:"q-date__header-today self-start",icon:l.iconSet.datetime.today,flat:!0,size:"sm",round:!0,tabindex:s.value,onClick:ie}):null])])}function Oe({label:t,type:o,key:n,dir:a,goTo:l,boundaries:i,cls:u}){return[e.h("div",{class:"row items-center q-date__arrow"},[e.h(Xt,{round:!0,dense:!0,size:"sm",flat:!0,icon:D.value[0],tabindex:s.value,disable:!1===i.prev,...r("go-#"+o,{onClick(){l(-1)}})})]),e.h("div",{class:"relative-position overflow-hidden flex flex-center"+u},[e.h(e.Transition,{name:"q-transition--jump-"+a},()=>e.h("div",{key:n},[e.h(Xt,{flat:!0,dense:!0,noCaps:!0,label:t,tabindex:s.value,...r("view#"+o,{onClick:()=>{_.value=o}})})]))]),e.h("div",{class:"row items-center q-date__arrow"},[e.h(Xt,{round:!0,dense:!0,size:"sm",flat:!0,icon:D.value[1],tabindex:s.value,disable:!1===i.next,...r("go+#"+o,{onClick(){l(1)}})})])]}e.watch(()=>t.modelValue,e=>{if(v===e)v=0;else{const{year:e,month:t}=pe(h.value,g.value);xe(e,t)}}),e.watch(_,()=>{null!==f.value&&f.value.focus()}),e.watch(()=>x.value.year,e=>{n("navigation",{year:e,month:x.value.month})}),e.watch(()=>x.value.month,e=>{n("navigation",{year:x.value.year,month:e})}),e.watch(b,e=>{Te(e,g.value,"mask"),h.value=e}),e.watch(y,e=>{Te(h.value,e,"locale"),g.value=e}),Object.assign(a,{setToday:ie,setView:re,offsetCalendar:se,setCalendarTo:ue,setEditingRange:ce});const Ve={Calendar:()=>[e.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[e.h("div",{class:"q-date__navigation row items-center no-wrap"},Oe({label:g.value.months[x.value.month-1],type:"Months",key:x.value.month,dir:S.value,goTo:fe,boundaries:X.value.month,cls:" col"}).concat(Oe({label:x.value.year,type:"Years",key:x.value.year,dir:q.value,goTo:he,boundaries:X.value.year,cls:""}))),e.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},Q.value.map(t=>e.h("div",{class:"q-date__calendar-item"},[e.h("div",t)]))),e.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[e.h(e.Transition,{name:"q-transition--slide-"+S.value},()=>e.h("div",{key:ee.value,class:"q-date__calendar-days fit"},ae.value.map(t=>e.h("div",{class:t.classes},[!0===t.in?e.h(Xt,{class:!0===t.today?"q-date__today":"",dense:!0,flat:t.flat,unelevated:t.unelevated,color:t.color,textColor:t.textColor,label:t.i,tabindex:s.value,...r("day#"+t.i,{onClick:()=>{ze(t.i)},onMouseover:()=>{Le(t.i)}})},!1!==t.event?()=>e.h("div",{class:"q-date__event bg-"+t.event}):null):e.h("div",""+t.i)]))))])])],Months(){const o=x.value.year===w.value.year,n=e=>{return null!==Y.value&&x.value.year===Y.value.year&&Y.value.month>e||null!==K.value&&x.value.year===K.value.year&&K.value.month<e},a=g.value.monthsShort.map((t,a)=>{const l=x.value.month===a+1;return e.h("div",{class:"q-date__months-item flex flex-center"},[e.h(Xt,{class:!0===o&&w.value.month===a+1?"q-date__today":null,flat:!0!==l,label:t,unelevated:l,color:!0===l?B.value:null,textColor:!0===l?O.value:null,tabindex:s.value,disable:n(a+1),...r("month#"+a,{onClick:()=>{be(a+1)}})})])});return!0===t.yearsInMonthView&&a.unshift(e.h("div",{class:"row no-wrap full-width"},[Oe({label:x.value.year,type:"Years",key:x.value.year,dir:q.value,goTo:he,boundaries:X.value.year,cls:" col"})])),e.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},a)},Years(){const t=$.value,o=t+gi,n=[],a=e=>{return null!==Y.value&&Y.value.year>e||null!==K.value&&K.value.year<e};for(let l=t;l<=o;l++){const t=x.value.year===l;n.push(e.h("div",{class:"q-date__years-item flex flex-center"},[e.h(Xt,{key:"yr"+l,class:w.value.year===l?"q-date__today":null,flat:!t,label:l,dense:!0,unelevated:t,color:!0===t?B.value:null,textColor:!0===t?O.value:null,tabindex:s.value,disable:a(l),...r("yr#"+l,{onClick:()=>{ge(l)}})})]))}return e.h("div",{class:"q-date__view q-date__years flex flex-center"},[e.h("div",{class:"col-auto"},[e.h(Xt,{round:!0,dense:!0,flat:!0,icon:D.value[0],tabindex:s.value,disable:a(t),...r("y-",{onClick:()=>{$.value-=gi}})})]),e.h("div",{class:"q-date__years-content col self-stretch row items-center"},n),e.h("div",{class:"col-auto"},[e.h(Xt,{round:!0,dense:!0,flat:!0,icon:D.value[1],tabindex:s.value,disable:a(o),...r("y+",{onClick:()=>{$.value+=gi}})})])])}};function ze(e){const o={...x.value,day:e};if(!1!==t.range)if(null===M.value){const a=ae.value.find(t=>!0!==t.fill&&t.i===e);if(!0!==t.noUnset&&void 0!==a.range)return void Me({target:o,from:a.range.from,to:a.range.to});if(!0===a.selected)return void Me(o);const l=Ml(o);M.value={init:o,initHash:l,final:o,finalHash:l},n("range-start",we(o))}else{const e=M.value.initHash,t=Ml(o),a=e<=t?{from:M.value.init,to:o}:{from:o,to:M.value.init};M.value=null,$e(e===t?o:{target:o,...a}),n("range-end",{from:we(a.from),to:we(a.to)})}else ye(o,ee.value)}function Le(e){if(null!==M.value){const t={...x.value,day:e};Object.assign(M.value,{final:t,finalHash:Ml(t)})}}return()=>{const n=[e.h("div",{class:"q-date__content col relative-position"},[e.h(e.Transition,{name:"q-transition--fade"},Ve[_.value])])],a=Fe(o.default);return void 0!==a&&n.push(e.h("div",{class:"q-date__actions"},a)),void 0!==t.name&&!0!==t.disable&&m(n,"push"),e.h("div",{class:T.value,...le.value},[Be(),e.h("div",{ref:f,class:"q-date__main col column",tabindex:-1},n)])}}});function Si(t,o,n){let a;function l(){void 0!==a&&(R.remove(a),a=void 0)}return e.onBeforeUnmount(()=>{!0===t.value&&l()}),{removeFromHistory:l,addToHistory(){a={condition:()=>!0===n.value,handler:o},R.add(a)}}}let qi,ki,$i,Mi,Ti,Bi,Oi=0,Vi=!1;function zi(e){Li(e)&&q(e)}function Li(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=y(e),o=e.shiftKey&&!e.deltaX,n=!o&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=o||n?e.deltaY:e.deltaX;for(let l=0;l<t.length;l++){const e=t[l];if(No(e,n))return n?a<0&&0===e.scrollTop||a>0&&e.scrollTop+e.clientHeight===e.scrollHeight:a<0&&0===e.scrollLeft||a>0&&e.scrollLeft+e.clientWidth===e.scrollWidth}return!0}function Ei(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Pi(e){!0!==Vi&&(Vi=!0,requestAnimationFrame(()=>{Vi=!1;const{height:t}=e.target,{clientHeight:o,scrollTop:n}=document.scrollingElement;void 0!==$i&&t===window.innerHeight||($i=o-t,document.scrollingElement.scrollTop=n),n>$i&&(document.scrollingElement.scrollTop-=Math.ceil((n-$i)/8))}))}function Ai(e){const t=document.body,o=void 0!==window.visualViewport;if("add"===e){const{overflowY:e,overflowX:n}=window.getComputedStyle(t);qi=Vo(window),ki=Oo(window),Mi=t.style.left,Ti=t.style.top,t.style.left=`-${qi}px`,t.style.top=`-${ki}px`,"hidden"!==n&&("scroll"===n||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),"hidden"!==e&&("scroll"===e||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===c.is.ios&&(!0===o?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Pi,p.passiveCapture),window.visualViewport.addEventListener("scroll",Pi,p.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Ei,p.passiveCapture))}!0===c.is.desktop&&!0===c.is.mac&&window[`${e}EventListener`]("wheel",zi,p.notPassive),"remove"===e&&(!0===c.is.ios&&(!0===o?(window.visualViewport.removeEventListener("resize",Pi,p.passiveCapture),window.visualViewport.removeEventListener("scroll",Pi,p.passiveCapture)):window.removeEventListener("scroll",Ei,p.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=Mi,t.style.top=Ti,window.scrollTo(qi,ki),$i=void 0)}function Fi(e){let t="add";if(!0===e){if(Oi++,void 0!==Bi)return clearTimeout(Bi),void(Bi=void 0);if(Oi>1)return}else{if(0===Oi)return;if(Oi--,Oi>0)return;if(t="remove",!0===c.is.ios&&!0===c.is.nativeMobile)return clearTimeout(Bi),void(Bi=setTimeout(()=>{Ai(t),Bi=void 0},100))}Ai(t)}function Ri(){let e;return{preventBodyScroll(t){t===e||void 0===e&&!0!==t||(e=t,Fi(t))}}}let Ii=0;const Ni={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"},ji={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]};var Di=e.defineComponent({name:"QDialog",inheritAttrs:!1,props:{...oo,...Co,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:e=>"standard"===e||["top","bottom","left","right"].includes(e)}},emits:[...no,"shake","click","escape-key"],setup(t,{slots:o,emit:n,attrs:a}){const l=e.getCurrentInstance(),i=e.ref(null),r=e.ref(!1),s=e.ref(!1),u=e.ref(!1);let c,d,v,p=null;const m=e.computed(()=>!0!==t.persistent&&!0!==t.noRouteDismiss&&!0!==t.seamless),{preventBodyScroll:f}=Ri(),{registerTimeout:h,removeTimeout:g}=ko(),{registerTick:b,removeTick:y,prepareTick:w}=qo(),{showPortal:x,hidePortal:_,portalIsActive:C,renderPortal:S}=_o(l,i,U,!0),{hide:q}=ao({showing:r,hideOnRouteChange:m,handleShow:P,handleHide:A,processOnMount:!0}),{addToHistory:k,removeFromHistory:$}=Si(r,q,m),M=e.computed(()=>"q-dialog__inner flex no-pointer-events"+` q-dialog__inner--${!0===t.maximized?"maximized":"minimized"}`+` q-dialog__inner--${t.position} ${Ni[t.position]}`+(!0===u.value?" q-dialog__inner--animating":"")+(!0===t.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===t.fullHeight?" q-dialog__inner--fullheight":"")+(!0===t.square?" q-dialog__inner--square":"")),T=e.computed(()=>"q-transition--"+(void 0===t.transitionShow?ji[t.position][0]:t.transitionShow)),B=e.computed(()=>"q-transition--"+(void 0===t.transitionHide?ji[t.position][1]:t.transitionHide)),O=e.computed(()=>!0===s.value?B.value:T.value),V=e.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`),z=e.computed(()=>!0===r.value&&!0!==t.seamless),L=e.computed(()=>!0===t.autoClose?{onClick:D}:{}),E=e.computed(()=>["q-dialog fullscreen no-pointer-events "+`q-dialog--${!0===z.value?"modal":"seamless"}`,a.class]);function P(e){g(),y(),k(),p=!1===t.noRefocus&&null!==document.activeElement?document.activeElement:null,j(t.maximized),x(),u.value=!0,!0!==t.noFocus&&(null!==document.activeElement&&document.activeElement.blur(),b(F),w()),h(()=>{if(!0===l.proxy.$q.platform.is.ios){if(!0!==t.seamless&&document.activeElement){const{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:o}=window,n=void 0!==window.visualViewport?window.visualViewport.height:o;e>0&&t>n/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-n,t>=o?1/0:Math.ceil(document.scrollingElement.scrollTop+t-n/2))),document.activeElement.scrollIntoView()}v=!0,i.value.click(),v=!1}x(!0),u.value=!1,n("show",e)},t.transitionDuration)}function A(e){g(),y(),$(),N(!0),u.value=!0,null!==p&&p.focus(),h(()=>{_(),u.value=!1,n("hide",e)},t.transitionDuration)}function F(){uo(()=>{let e=i.value;null!==e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus], [data-autofocus]")||e,e.focus())})}function R(){F(),n("shake");const e=i.value;null!==e&&(e.classList.remove("q-animate--scale"),e.classList.add("q-animate--scale"),clearTimeout(c),c=setTimeout(()=>{null!==i.value&&(e.classList.remove("q-animate--scale"),F())},170))}function I(){!0!==t.seamless&&(!0===t.persistent||!0===t.noEscDismiss?!0!==t.maximized&&!0!==t.noShake&&R():(n("escape-key"),q()))}function N(e){clearTimeout(c),!0!==e&&!0!==r.value||(j(!1),!0!==t.seamless&&(f(!1),en(Q),Xo(I)))}function j(e){!0===e?!0!==d&&(Ii<1&&document.body.classList.add("q-body--dialog"),Ii++,d=!0):!0===d&&(Ii<2&&document.body.classList.remove("q-body--dialog"),Ii--,d=!1)}function D(e){!0!==v&&(q(e),n("click",e))}function H(e){!0!==t.persistent&&!0!==t.noBackdropDismiss?q(e):!0!==t.noShake&&R()}function Q(e){!0===r.value&&!0===C.value&&!0!==Pt(i.value,e.target)&&F()}function U(){return e.h("div",{...a,class:E.value},[e.h(e.Transition,{name:"q-transition--fade",appear:!0},()=>!0===z.value?e.h("div",{class:"q-dialog__backdrop fixed-full",style:V.value,"aria-hidden":"true",onMousedown:H}):null),e.h(e.Transition,{name:O.value,appear:!0},()=>!0===r.value?e.h("div",{ref:i,class:M.value,style:V.value,tabindex:-1,...L.value},Fe(o.default)):null)])}return e.watch(r,t=>{e.nextTick(()=>{s.value=t})}),e.watch(()=>t.maximized,e=>{!0===r.value&&j(e)}),e.watch(z,e=>{f(e),!0===e?(Jo(Q),Ko(I)):(en(Q),Xo(I))}),Object.assign(l.proxy,{focus:F,shake:R,__updateRefocusTarget(e){p=e||null}}),e.onBeforeUnmount(()=>{N()}),S}});const Hi=150;var Qi=e.defineComponent({name:"QDrawer",inheritAttrs:!1,props:{...oo,...at,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...no,"on-layout","mini-state"],setup(t,{slots:o,emit:n,attrs:a}){const l=e.getCurrentInstance(),{proxy:{$q:i}}=l,r=lt(t,i),{preventBodyScroll:s}=Ri(),{registerTimeout:u}=ko(),c=e.inject(ae,()=>{console.error("QDrawer needs to be child of QLayout")});let d,v,p;const m=e.ref("mobile"===t.behavior||"desktop"!==t.behavior&&c.totalWidth.value<=t.breakpoint),f=e.computed(()=>!0===t.mini&&!0!==m.value),h=e.computed(()=>!0===f.value?t.miniWidth:t.width),g=e.ref(!0===t.showIfAbove&&!1===m.value||!0===t.modelValue),b=e.computed(()=>!0!==t.persistent&&(!0===m.value||!0===P.value));function y(e,t){if(C(),!1!==e&&c.animate(),Y(0),!0===m.value){const e=c.instances[V.value];void 0!==e&&!0===e.belowBreakpoint&&e.hide(!1),X(1),!0!==c.isContainer.value&&s(!0)}else X(0),!1!==e&&Z(!1);u(()=>{!1!==e&&Z(!0),!0!==t&&n("show",e)},Hi)}function w(e,t){S(),!1!==e&&c.animate(),X(0),Y($.value*h.value),te(),!0!==t&&u(()=>{n("hide",e)},Hi)}const{show:x,hide:_}=ao({showing:g,hideOnRouteChange:b,handleShow:y,handleHide:w}),{addToHistory:C,removeFromHistory:S}=Si(g,_,b),q={belowBreakpoint:m,hide:_},k=e.computed(()=>"right"===t.side),$=e.computed(()=>(!0===i.lang.rtl?-1:1)*(!0===k.value?1:-1)),M=e.ref(0),T=e.ref(!1),B=e.ref(!1),O=e.ref(h.value*$.value),V=e.computed(()=>!0===k.value?"left":"right"),z=e.computed(()=>!0===g.value&&!1===m.value&&!1===t.overlay?!0===t.miniToOverlay?t.miniWidth:h.value:0),L=e.computed(()=>!0===t.overlay||!0===t.miniToOverlay||c.view.value.indexOf(k.value?"R":"L")>-1||!0===i.platform.is.ios&&!0===c.isContainer.value),E=e.computed(()=>!1===t.overlay&&!0===g.value&&!1===m.value),P=e.computed(()=>!0===t.overlay&&!0===g.value&&!1===m.value),A=e.computed(()=>"fullscreen q-drawer__backdrop"+(!1===g.value&&!1===T.value?" hidden":"")),F=e.computed(()=>({backgroundColor:`rgba(0,0,0,${.4*M.value})`})),R=e.computed(()=>!0===k.value?"r"===c.rows.value.top[2]:"l"===c.rows.value.top[0]),I=e.computed(()=>!0===k.value?"r"===c.rows.value.bottom[2]:"l"===c.rows.value.bottom[0]),N=e.computed(()=>{const e={};return!0===c.header.space&&!1===R.value&&(!0===L.value?e.top=`${c.header.offset}px`:!0===c.header.space&&(e.top=`${c.header.size}px`)),!0===c.footer.space&&!1===I.value&&(!0===L.value?e.bottom=`${c.footer.offset}px`:!0===c.footer.space&&(e.bottom=`${c.footer.size}px`)),e}),j=e.computed(()=>{const e={width:`${h.value}px`,transform:`translateX(${O.value}px)`};return!0===m.value?e:Object.assign(e,N.value)}),D=e.computed(()=>"q-drawer__content fit "+(!0!==c.isContainer.value?"scroll":"overflow-auto")),H=e.computed(()=>`q-drawer q-drawer--${t.side}`+(!0===B.value?" q-drawer--mini-animate":"")+(!0===t.bordered?" q-drawer--bordered":"")+(!0===r.value?" q-drawer--dark q-dark":"")+(!0===T.value?" no-transition":!0===g.value?"":" q-layout--prevent-focus")+(!0===m.value?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${!0===f.value?"mini":"standard"}`+(!0===L.value||!0!==E.value?" fixed":"")+(!0===t.overlay||!0===t.miniToOverlay?" q-drawer--on-top":"")+(!0===R.value?" q-drawer--top-padding":""))),Q=e.computed(()=>{const e=!0===i.lang.rtl?t.side:V.value;return[[ba,J,void 0,{[e]:!0,mouse:!0}]]}),U=e.computed(()=>{const e=!0===i.lang.rtl?V.value:t.side;return[[ba,ee,void 0,{[e]:!0,mouse:!0}]]}),W=e.computed(()=>{const e=!0===i.lang.rtl?V.value:t.side;return[[ba,ee,void 0,{[e]:!0,mouse:!0,mouseAllDir:!0}]]});function Y(t){void 0===t?e.nextTick(()=>{t=!0===g.value?0:h.value,Y($.value*t)}):(!0!==c.isContainer.value||!0!==k.value||!0!==m.value&&Math.abs(t)!==h.value||(t+=$.value*c.scrollbarWidth.value),O.value=t)}function K(){ne(m,"mobile"===t.behavior||"desktop"!==t.behavior&&c.totalWidth.value<=t.breakpoint)}function X(e){M.value=e}function Z(e){const t=!0===e?"remove":!0!==c.isContainer.value?"add":"";""!==t&&document.body.classList[t]("q-body--drawer-toggle")}function G(){clearTimeout(v),l.proxy&&l.proxy.$el&&l.proxy.$el.classList.add("q-drawer--mini-animate"),B.value=!0,v=setTimeout(()=>{B.value=!1,l&&l.proxy&&l.proxy.$el&&l.proxy.$el.classList.remove("q-drawer--mini-animate")},150)}function J(e){if(!1!==g.value)return;const t=h.value,o=xe(e.distance.x,0,t);if(!0===e.isFinal){const e=o>=Math.min(75,t);return!0===e?x():(c.animate(),X(0),Y($.value*t)),void(T.value=!1)}Y((!0===i.lang.rtl?!0!==k.value:k.value)?Math.max(t-o,0):Math.min(0,o-t)),X(xe(o/t,0,1)),!0===e.isFirst&&(T.value=!0)}function ee(e){if(!0!==g.value)return;const o=h.value,n=e.direction===t.side,a=(!0===i.lang.rtl?!0!==n:n)?xe(e.distance.x,0,o):0;if(!0===e.isFinal){const e=Math.abs(a)<Math.min(75,o);return!0===e?(c.animate(),X(1),Y(0)):_(),void(T.value=!1)}Y($.value*a),X(xe(1-a/o,0,1)),!0===e.isFirst&&(T.value=!0)}function te(){s(!1),Z(!0)}function oe(e,o){c.update(t.side,e,o)}function ne(e,t){e.value!==t&&(e.value=t)}function le(e,o){oe("size",!0===e?t.miniWidth:o)}return e.watch(m,e=>{!0===e?(d=g.value,!0===g.value&&_(!1)):!1===t.overlay&&"mobile"!==t.behavior&&!1!==d&&(!0===g.value?(Y(0),X(0),te()):x(!1))}),e.watch(c.totalWidth,e=>{ne(m,"mobile"===t.behavior||"desktop"!==t.behavior&&e<=t.breakpoint)}),e.watch(()=>t.side,(e,t)=>{c.instances[t]===q&&(c.instances[t]=void 0,c[t].space=!1,c[t].offset=0),c.instances[e]=q,c[e].size=h.value,c[e].space=E.value,c[e].offset=z.value}),e.watch(()=>t.behavior+t.breakpoint,K),e.watch(c.isContainer,e=>{!0===g.value&&s(!0!==e)}),e.watch(c.scrollbarWidth,()=>{Y(!0===g.value?0:void 0)}),e.watch(z,e=>{oe("offset",e)}),e.watch(E,e=>{n("on-layout",e),oe("space",e)}),e.watch(k,()=>{Y()}),e.watch(h,e=>{Y(),le(t.miniToOverlay,e)}),e.watch(()=>t.miniToOverlay,e=>{le(e,h.value)}),e.watch(()=>i.lang.rtl,()=>{Y()}),e.watch(()=>t.mini,()=>{!0===t.modelValue&&(G(),c.animate())}),e.watch(f,e=>{n("mini-state",e)}),c.instances[t.side]=q,le(t.miniToOverlay,h.value),oe("space",E.value),oe("offset",z.value),!0===t.showIfAbove&&!0!==t.modelValue&&!0===g.value&&void 0!==t["onUpdate:modelValue"]&&n("update:modelValue",!0),e.onMounted(()=>{n("on-layout",E.value),n("mini-state",f.value),d=!0===t.showIfAbove;const o=()=>{const e=!0===g.value?y:w;e(!1,!0)};0===c.totalWidth.value?p=e.watch(c.totalWidth,()=>{p(),p=void 0,!1===g.value&&!0===t.showIfAbove&&!1===m.value?x(!1):o()}):e.nextTick(o)}),e.onBeforeUnmount(()=>{void 0!==p&&p(),clearTimeout(v),!0===g.value&&te(),c.instances[t.side]===q&&(c.instances[t.side]=void 0,oe("size",0),oe("offset",0),oe("space",!1))}),()=>{const n=[];!0===m.value&&(!1===t.noSwipeOpen&&n.push(e.withDirectives(e.h("div",{key:"open",class:`q-drawer__opener fixed-${t.side}`,"aria-hidden":"true"}),Q.value)),n.push(je("div",{ref:"backdrop",class:A.value,style:F.value,"aria-hidden":"true",onClick:_},void 0,"backdrop",!0!==t.noSwipeBackdrop&&!0===g.value,()=>W.value)));const l=!0===f.value&&void 0!==o.mini,i=[e.h("div",{...a,key:""+l,class:[D.value,a.class]},!0===l?o.mini():Fe(o.default))];return!0===t.elevated&&!0===g.value&&i.push(e.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push(je("aside",{ref:"content",class:H.value,style:j.value},i,"contentclose",!0!==t.noSwipeClose&&!0===m.value,()=>U.value)),e.h("div",{class:"q-drawer-container"},n)}}});function Ui(e,t){if(t&&e===t)return null;const o=e.nodeName.toLowerCase();if(!0===["div","li","ul","ol","blockquote"].includes(o))return e;const n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,a=n.display;return"block"===a||"table"===a?e:Ui(e.parentNode)}function Wi(e,t,o){return!(!e||e===document.body)&&(!0===o&&e===t||(t===document?document.body:t).contains(e.parentNode))}function Yi(e,t,o){if(o||(o=document.createRange(),o.selectNode(e),o.setStart(e,0)),0===t.count)o.setEnd(e,t.count);else if(t.count>0)if(e.nodeType===Node.TEXT_NODE)e.textContent.length<t.count?t.count-=e.textContent.length:(o.setEnd(e,t.count),t.count=0);else for(let n=0;0!==t.count&&n<e.childNodes.length;n++)o=Yi(e.childNodes[n],t,o);return o}const Ki=/^https?:\/\//;class Xi{constructor(e,t){this.el=e,this.eVm=t,this._range=null}get selection(){if(this.el){const e=document.getSelection();if(Wi(e.anchorNode,this.el,!0)&&Wi(e.focusNode,this.el,!0))return e}return null}get hasSelection(){return null!==this.selection&&this.selection.toString().length>0}get range(){const e=this.selection;return null!==e&&e.rangeCount?e.getRangeAt(0):this._range}get parent(){const e=this.range;if(null!==e){const t=e.startContainer;return t.nodeType===document.ELEMENT_NODE?t:t.parentNode}return null}get blockParent(){const e=this.parent;return null!==e?Ui(e,this.el):null}save(e=this.range){null!==e&&(this._range=e)}restore(e=this._range){const t=document.createRange(),o=document.getSelection();null!==e?(t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),o.removeAllRanges(),o.addRange(t)):(o.selectAllChildren(this.el),o.collapseToEnd())}savePosition(){let e,t=-1;const o=document.getSelection(),n=this.el.parentNode;if(o.focusNode&&Wi(o.focusNode,n)){e=o.focusNode,t=o.focusOffset;while(e&&e!==n)e!==this.el&&e.previousSibling?(e=e.previousSibling,t+=e.textContent.length):e=e.parentNode}this.savedPos=t}restorePosition(e=0){if(this.savedPos>0&&this.savedPos<e){const e=window.getSelection(),t=Yi(this.el,{count:this.savedPos});t&&(t.collapse(!1),e.removeAllRanges(),e.addRange(t))}}hasParent(e,t){const o=t?this.parent:this.blockParent;return null!==o&&o.nodeName.toLowerCase()===e.toLowerCase()}hasParents(e,t,o=this.parent){return null!==o&&(null!==o&&!0===e.includes(o.nodeName.toLowerCase())||!0===t&&this.hasParents(e,t,o.parentNode))}is(e,t){if(null===this.selection)return!1;switch(e){case"formatBlock":return"DIV"===t&&this.parent===this.el||this.hasParent(t,"PRE"===t);case"link":return this.hasParent("A",!0);case"fontSize":return document.queryCommandValue(e)===t;case"fontName":const o=document.queryCommandValue(e);return o===`"${t}"`||o===t;case"fullscreen":return this.eVm.inFullscreen.value;case"viewsource":return this.eVm.isViewingSource.value;case void 0:return!1;default:const n=document.queryCommandState(e);return void 0!==t?n===t:n}}getParentAttribute(e){return null!==this.parent?this.parent.getAttribute(e):null}can(e){return"outdent"===e?this.hasParents(["blockquote","li"],!0):"indent"===e?this.hasParents(["li"],!0):"link"===e?null!==this.selection||this.is("link"):void 0}apply(e,t,o=m){if("formatBlock"===e)["BLOCKQUOTE","H1","H2","H3","H4","H5","H6"].includes(t)&&this.is(e,t)&&(e="outdent",t=null),"PRE"===t&&this.is(e,"PRE")&&(t="P");else{if("print"===e){o();const e=window.open();return e.document.write(`\n <!doctype html>\n <html>\n <head>\n <title>Print - ${document.title}</title>\n </head>\n <body>\n <div>${this.el.innerHTML}</div>\n </body>\n </html>\n `),e.print(),void e.close()}if("link"===e){const e=this.getParentAttribute("href");if(null===e){const e=this.selectWord(this.selection),t=e?e.toString():"";if(!t.length&&(!this.range||!this.range.cloneContents().querySelector("img")))return;this.eVm.editLinkUrl.value=Ki.test(t)?t:"https://",document.execCommand("createLink",!1,this.eVm.editLinkUrl.value),this.save(e.getRangeAt(0))}else this.eVm.editLinkUrl.value=e,this.range.selectNodeContents(this.parent),this.save();return}if("fullscreen"===e)return this.eVm.toggleFullscreen(),void o();if("viewsource"===e)return this.eVm.isViewingSource.value=!1===this.eVm.isViewingSource.value,this.eVm.setContent(this.eVm.props.modelValue),void o()}document.execCommand(e,!1,t),o()}selectWord(e){if(null===e||!0!==e.isCollapsed||void 0===e.modify)return e;const t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);const o=t.collapsed?["backward","forward"]:["forward","backward"];t.detach();const n=e.focusNode,a=e.focusOffset;return e.collapse(e.anchorNode,e.anchorOffset),e.modify("move",o[0],"character"),e.modify("move",o[1],"word"),e.extend(n,a),e.modify("extend",o[1],"character"),e.modify("extend",o[0],"word"),e}}var Zi=e.defineComponent({name:"QTooltip",inheritAttrs:!1,props:{...Jt,...oo,...Co,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:cn},self:{type:String,default:"top middle",validator:cn},offset:{type:Array,default:()=>[14,14],validator:dn},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},emits:[...no],setup(t,{slots:o,emit:n,attrs:a}){let l,i;const r=e.getCurrentInstance(),{proxy:{$q:s}}=r,u=e.ref(null),c=e.ref(!1),d=e.computed(()=>pn(t.anchor,s.lang.rtl)),v=e.computed(()=>pn(t.self,s.lang.rtl)),p=e.computed(()=>!0!==t.persistent),{registerTick:m,removeTick:f,prepareTick:h}=qo(),{registerTimeout:g,removeTimeout:b}=ko(),{transition:y,transitionStyle:w}=So(t,c),{localScrollTarget:x,changeScrollEvent:_,unconfigureScrollTarget:C}=to(t,j),{anchorEl:S,canShow:k,anchorEvents:T}=eo({showing:c,configureAnchorEl:N}),{show:B,hide:O}=ao({showing:c,canShow:k,handleShow:E,handleHide:P,hideOnRouteChange:p,processOnMount:!0});Object.assign(T,{delayShow:R,delayHide:I});const{showPortal:V,hidePortal:z,renderPortal:L}=_o(r,u,H);if(!0===s.platform.is.mobile){const o={anchorEl:S,innerRef:u,onClickOutside(e){return O(e),e.target.classList.contains("q-dialog__backdrop")&&q(e),!0}},n=e.computed(()=>null===t.modelValue&&!0!==t.persistent&&!0===c.value);e.watch(n,e=>{const t=!0===e?ln:rn;t(o)}),e.onBeforeUnmount(()=>{rn(o)})}function E(o){f(),b(),V(),m(()=>{i=new MutationObserver(()=>F()),i.observe(u.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),F(),j()}),h(),void 0===l&&(l=e.watch(()=>s.screen.width+"|"+s.screen.height+"|"+t.self+"|"+t.anchor+"|"+s.lang.rtl,F)),g(()=>{V(!0),n("show",o)},t.transitionDuration)}function P(e){f(),b(),A(),g(()=>{z(),n("hide",e)},t.transitionDuration)}function A(){void 0!==i&&(i.disconnect(),i=void 0),void 0!==l&&(l(),l=void 0),C(),M(T,"tooltipTemp")}function F(){const e=u.value;null!==S.value&&e&&hn({el:e,offset:t.offset,anchorEl:S.value,anchorOrigin:d.value,selfOrigin:v.value,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function R(e){if(!0===s.platform.is.mobile){Gt(),document.body.classList.add("non-selectable");const e=S.value,t=["touchmove","touchcancel","touchend","click"].map(t=>[e,t,"delayHide","passiveCapture"]);$(T,"tooltipTemp",t)}g(()=>{B(e)},t.delay)}function I(e){b(),!0===s.platform.is.mobile&&(M(T,"tooltipTemp"),Gt(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),g(()=>{O(e)},t.hideDelay)}function N(){if(!0===t.noParentEvent||null===S.value)return;const e=!0===s.platform.is.mobile?[[S.value,"touchstart","delayShow","passive"]]:[[S.value,"mouseenter","delayShow","passive"],[S.value,"mouseleave","delayHide","passive"]];$(T,"anchor",e)}function j(){if(null!==S.value||void 0!==t.scrollTarget){x.value=Mo(S.value,t.scrollTarget);const e=!0===t.noParentEvent?F:O;_(x.value,e)}}function D(){return!0===c.value?e.h("div",{...a,ref:u,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",a.class],style:[a.style,w.value],role:"complementary"},Fe(o.default)):null}function H(){return e.h(e.Transition,{name:y.value,appear:!0},D)}return e.onBeforeUnmount(A),Object.assign(r.proxy,{updatePosition:F}),L}}),Gi=e.defineComponent({name:"QItem",props:{...at,..._t,tag:{type:String,default:"div"},active:Boolean,clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=lt(t,a),{hasLink:i,linkProps:r,linkClass:s,linkTag:u,navigateToLink:c}=Ct(),d=e.ref(null),v=e.ref(null),p=e.computed(()=>!0===t.clickable||!0===i.value||"a"===t.tag||"label"===t.tag),m=e.computed(()=>!0!==t.disable&&!0===p.value),f=e.computed(()=>"q-item q-item-type row no-wrap"+(!0===t.dense?" q-item--dense":"")+(!0===l.value?" q-item--dark":"")+(!0===i.value?s.value:!0===t.active?`${void 0!==t.activeClass?` ${t.activeClass}`:""} q-item--active`:"")+(!0===t.disable?" disabled":"")+(!0===m.value?" q-item--clickable q-link cursor-pointer "+(!0===t.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===t.focused?" q-manual-focusable--focused":""):"")),h=e.computed(()=>{if(void 0===t.insetLevel)return null;const e=!0===a.lang.rtl?"Right":"Left";return{["padding"+e]:16+56*t.insetLevel+"px"}});function g(e){!0===m.value&&(null!==v.value&&(!0!==e.qKeyEvent&&document.activeElement===d.value?v.value.focus():document.activeElement===v.value&&d.value.focus()),!0===i.value&&c(e),n("click",e))}function b(e){if(!0===m.value&&!0===W(e,13)){q(e),e.qKeyEvent=!0;const t=new MouseEvent("click",e);t.qKeyEvent=!0,d.value.dispatchEvent(t)}n("keyup",e)}function y(){const t=Re(o.default,[]);return!0===m.value&&t.unshift(e.h("div",{class:"q-focus-helper",tabindex:-1,ref:v})),t}return()=>{const o={ref:d,class:f.value,style:h.value,onClick:g,onKeyup:b};return!0===m.value?(o.tabindex=t.tabindex||"0",Object.assign(o,r.value)):!0===p.value&&(o["aria-disabled"]="true"),e.h(u.value,o,y())}}}),Ji=e.defineComponent({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-item__section column"+` q-item__section--${!0===t.avatar||!0===t.side||!0===t.thumbnail?"side":"main"}`+(!0===t.top?" q-item__section--top justify-start":" justify-center")+(!0===t.avatar?" q-item__section--avatar":"")+(!0===t.thumbnail?" q-item__section--thumbnail":"")+(!0===t.noWrap?" q-item__section--nowrap":""));return()=>e.h("div",{class:n.value},Fe(o.default))}});function er(e,t,o){t.handler?t.handler(e,o,o.caret):o.runCmd(t.cmd,t.param)}function tr(t){return e.h("div",{class:"q-editor__toolbar-group"},t)}function or(t,o,n,a=!1){const l=a||"toggle"===o.type&&(o.toggled?o.toggled(t):o.cmd&&t.caret.is(o.cmd,o.param)),i=[];if(o.tip&&t.$q.platform.is.desktop){const t=o.key?e.h("div",[e.h("small",`(CTRL + ${String.fromCharCode(o.key)})`)]):null;i.push(e.h(Zi,{delay:1e3},()=>[e.h("div",{innerHTML:o.tip}),t]))}return e.h(Xt,{...t.buttonProps.value,icon:null!==o.icon?o.icon:void 0,color:l?o.toggleColor||t.props.toolbarToggleColor:o.color||t.props.toolbarColor,textColor:l&&!t.props.toolbarPush?null:o.textColor||t.props.toolbarTextColor,label:o.label,disable:!!o.disable&&("function"!==typeof o.disable||o.disable(t)),size:"sm",onClick(e){n&&n(),er(e,o,t)}},()=>i)}function nr(t,o){const n="only-icons"===o.list;let a,l,i=o.label,r=null!==o.icon?o.icon:void 0;function s(){c.component.proxy.hide()}if(n)l=o.options.map(e=>{const o=void 0===e.type&&t.caret.is(e.cmd,e.param);return o&&(i=e.tip,r=null!==e.icon?e.icon:void 0),or(t,e,s,o)}),a=t.toolbarBackgroundClass.value,l=[tr(l)];else{const n=void 0!==t.props.toolbarToggleColor?`text-${t.props.toolbarToggleColor}`:null,u=void 0!==t.props.toolbarTextColor?`text-${t.props.toolbarTextColor}`:null,c="no-icons"===o.list;l=o.options.map(o=>{const a=!!o.disable&&o.disable(t),l=void 0===o.type&&t.caret.is(o.cmd,o.param);l&&(i=o.tip,r=null!==o.icon?o.icon:void 0);const d=o.htmlTip;return e.h(Gi,{active:l,activeClass:n,clickable:!0,disable:a,dense:!0,onClick(e){s(),null!==t.contentRef.value&&t.contentRef.value.focus(),t.caret.restore(),er(e,o,t)}},()=>[!0===c?null:e.h(Ji,{class:l?n:u,side:!0},()=>e.h(et,{name:null!==o.icon?o.icon:void 0})),e.h(Ji,d?()=>e.h("div",{class:"text-no-wrap",innerHTML:o.htmlTip}):o.tip?()=>e.h("div",{class:"text-no-wrap"},o.tip):void 0)])}),a=[t.toolbarBackgroundClass.value,u]}const u=o.highlight&&i!==o.label,c=e.h(yn,{...t.buttonProps.value,noCaps:!0,noWrap:!0,color:u?t.props.toolbarToggleColor:t.props.toolbarColor,textColor:u&&!t.props.toolbarPush?null:t.props.toolbarTextColor,label:o.fixedLabel?o.label:i,icon:o.fixedIcon?null!==o.icon?o.icon:void 0:r,contentClass:a},()=>l);return c}function ar(e){if(e.caret)return e.buttons.value.filter(t=>{return!e.isViewingSource.value||t.find(e=>"viewsource"===e.cmd)}).map(t=>tr(t.map(t=>{return(!e.isViewingSource.value||"viewsource"===t.cmd)&&("slot"===t.type?Fe(e.slots[t.slot]):"dropdown"===t.type?nr(e,t):or(e,t))})))}function lr(e,t,o,n={}){const a=Object.keys(n);if(0===a.length)return{};const l={default_font:{cmd:"fontName",param:e,icon:o,tip:t}};return a.forEach(e=>{const t=n[e];l[e]={cmd:"fontName",param:t,icon:o,tip:t,htmlTip:`<font face="${t}">${t}</font>`}}),l}function ir(t){if(t.caret){const o=t.props.toolbarColor||t.props.toolbarTextColor;let n=t.editLinkUrl.value;const a=()=>{t.caret.restore(),n!==t.editLinkUrl.value&&document.execCommand("createLink",!1,""===n?" ":n),t.editLinkUrl.value=null};return[e.h("div",{class:`q-mx-xs text-${o}`},`${t.$q.lang.editor.url}: `),e.h("input",{key:"qedt_btm_input",class:"col q-editor__link-input",value:n,onInput:e=>{C(e),n=e.target.value},onKeydown:e=>{if(!0!==U(e))switch(e.keyCode){case 13:return S(e),a();case 27:S(e),t.caret.restore(),t.editLinkUrl.value&&"https://"!==t.editLinkUrl.value||document.execCommand("unlink"),t.editLinkUrl.value=null;break}}}),tr([e.h(Xt,{key:"qedt_btm_rem",tabindex:-1,...t.buttonProps.value,label:t.$q.lang.label.remove,noCaps:!0,onClick:()=>{t.caret.restore(),document.execCommand("unlink"),t.editLinkUrl.value=null}}),e.h(Xt,{key:"qedt_btm_upd",...t.buttonProps.value,label:t.$q.lang.label.update,noCaps:!0,onClick:a})])]}}const rr=/^on[A-Z]/;function sr(t){const o={listeners:e.ref({}),attributes:e.ref({})};function n(){const e={},n={};Object.keys(t).forEach(o=>{!0===rr.test(o)?e[o]=t[o]:"class"!==o&&"style"!==o&&(n[o]=t[o])}),o.listeners.value=e,o.attributes.value=n}return e.onBeforeUpdate(n),n(),o}const ur=Object.prototype.toString,cr=Object.prototype.hasOwnProperty,dr={};function vr(e){return null===e?String(e):dr[ur.call(e)]||"object"}function pr(e){if(!e||"object"!==vr(e))return!1;if(e.constructor&&!cr.call(e,"constructor")&&!cr.call(e.constructor.prototype,"isPrototypeOf"))return!1;let t;for(t in e);return void 0===t||cr.call(e,t)}function mr(){let e,t,o,n,a,l,i=arguments[0]||{},r=1,s=!1;const u=arguments.length;for("boolean"===typeof i&&(s=i,i=arguments[1]||{},r=2),Object(i)!==i&&"function"!==vr(i)&&(i={}),u===r&&(i=this,r--);r<u;r++)if(null!==(e=arguments[r]))for(t in e)o=i[t],n=e[t],i!==n&&(s&&n&&(pr(n)||(a="array"===vr(n)))?(a?(a=!1,l=o&&"array"===vr(o)?o:[]):l=o&&pr(o)?o:{},i[t]=mr(s,l,n)):void 0!==n&&(i[t]=n));return i}"Boolean Number String Function Array Date RegExp Object".split(" ").forEach(e=>{dr["[object "+e+"]"]=e.toLowerCase()});var fr=e.defineComponent({name:"QEditor",props:{...at,...In,modelValue:{type:String,required:!0},readonly:Boolean,disable:Boolean,minHeight:{type:String,default:"10rem"},maxHeight:String,height:String,definitions:Object,fonts:Object,placeholder:String,toolbar:{type:Array,validator:e=>0===e.length||e.every(e=>e.length),default(){return[["left","center","right","justify"],["bold","italic","underline","strike"],["undo","redo"]]}},toolbarColor:String,toolbarBg:String,toolbarTextColor:String,toolbarToggleColor:{type:String,default:"primary"},toolbarOutline:Boolean,toolbarPush:Boolean,toolbarRounded:Boolean,paragraphTag:{type:String,validator:e=>["div","p"].includes(e),default:"div"},contentStyle:Object,contentClass:[Object,Array,String],square:Boolean,flat:Boolean,dense:Boolean},emits:[...Nn,"update:modelValue","keydown","click","mouseup","keyup","touchend","focus","blur"],setup(t,{slots:o,emit:n,attrs:a}){const{proxy:l}=e.getCurrentInstance(),{$q:i}=l,r=lt(t,i),{inFullscreen:s,toggleFullscreen:u}=jn(),c=sr(a),d=e.ref(null),v=e.ref(null),p=e.ref(null),m=e.ref(!1),f=e.computed(()=>!t.readonly&&!t.disable);let h,g,b=t.modelValue;document.execCommand("defaultParagraphSeparator",!1,t.paragraphTag),h=window.getComputedStyle(document.body).fontFamily;const y=e.computed(()=>t.toolbarBg?` bg-${t.toolbarBg}`:""),w=e.computed(()=>{const e=!0!==t.toolbarOutline&&!0!==t.toolbarPush;return{type:"a",flat:e,noWrap:!0,outline:t.toolbarOutline,push:t.toolbarPush,rounded:t.toolbarRounded,dense:!0,color:t.toolbarColor,disable:!f.value,size:"sm"}}),x=e.computed(()=>{const e=i.lang.editor,o=i.iconSet.editor;return{bold:{cmd:"bold",icon:o.bold,tip:e.bold,key:66},italic:{cmd:"italic",icon:o.italic,tip:e.italic,key:73},strike:{cmd:"strikeThrough",icon:o.strikethrough,tip:e.strikethrough,key:83},underline:{cmd:"underline",icon:o.underline,tip:e.underline,key:85},unordered:{cmd:"insertUnorderedList",icon:o.unorderedList,tip:e.unorderedList},ordered:{cmd:"insertOrderedList",icon:o.orderedList,tip:e.orderedList},subscript:{cmd:"subscript",icon:o.subscript,tip:e.subscript,htmlTip:"x<subscript>2</subscript>"},superscript:{cmd:"superscript",icon:o.superscript,tip:e.superscript,htmlTip:"x<superscript>2</superscript>"},link:{cmd:"link",disable:e=>e.caret&&!e.caret.can("link"),icon:o.hyperlink,tip:e.hyperlink,key:76},fullscreen:{cmd:"fullscreen",icon:o.toggleFullscreen,tip:e.toggleFullscreen,key:70},viewsource:{cmd:"viewsource",icon:o.viewSource,tip:e.viewSource},quote:{cmd:"formatBlock",param:"BLOCKQUOTE",icon:o.quote,tip:e.quote,key:81},left:{cmd:"justifyLeft",icon:o.left,tip:e.left},center:{cmd:"justifyCenter",icon:o.center,tip:e.center},right:{cmd:"justifyRight",icon:o.right,tip:e.right},justify:{cmd:"justifyFull",icon:o.justify,tip:e.justify},print:{type:"no-state",cmd:"print",icon:o.print,tip:e.print,key:80},outdent:{type:"no-state",disable:e=>e.caret&&!e.caret.can("outdent"),cmd:"outdent",icon:o.outdent,tip:e.outdent},indent:{type:"no-state",disable:e=>e.caret&&!e.caret.can("indent"),cmd:"indent",icon:o.indent,tip:e.indent},removeFormat:{type:"no-state",cmd:"removeFormat",icon:o.removeFormat,tip:e.removeFormat},hr:{type:"no-state",cmd:"insertHorizontalRule",icon:o.hr,tip:e.hr},undo:{type:"no-state",cmd:"undo",icon:o.undo,tip:e.undo,key:90},redo:{type:"no-state",cmd:"redo",icon:o.redo,tip:e.redo,key:89},h1:{cmd:"formatBlock",param:"H1",icon:o.heading1||o.heading,tip:e.heading1,htmlTip:`<h1 class="q-ma-none">${e.heading1}</h1>`},h2:{cmd:"formatBlock",param:"H2",icon:o.heading2||o.heading,tip:e.heading2,htmlTip:`<h2 class="q-ma-none">${e.heading2}</h2>`},h3:{cmd:"formatBlock",param:"H3",icon:o.heading3||o.heading,tip:e.heading3,htmlTip:`<h3 class="q-ma-none">${e.heading3}</h3>`},h4:{cmd:"formatBlock",param:"H4",icon:o.heading4||o.heading,tip:e.heading4,htmlTip:`<h4 class="q-ma-none">${e.heading4}</h4>`},h5:{cmd:"formatBlock",param:"H5",icon:o.heading5||o.heading,tip:e.heading5,htmlTip:`<h5 class="q-ma-none">${e.heading5}</h5>`},h6:{cmd:"formatBlock",param:"H6",icon:o.heading6||o.heading,tip:e.heading6,htmlTip:`<h6 class="q-ma-none">${e.heading6}</h6>`},p:{cmd:"formatBlock",param:t.paragraphTag,icon:o.heading,tip:e.paragraph},code:{cmd:"formatBlock",param:"PRE",icon:o.code,htmlTip:`<code>${e.code}</code>`},"size-1":{cmd:"fontSize",param:"1",icon:o.size1||o.size,tip:e.size1,htmlTip:`<font size="1">${e.size1}</font>`},"size-2":{cmd:"fontSize",param:"2",icon:o.size2||o.size,tip:e.size2,htmlTip:`<font size="2">${e.size2}</font>`},"size-3":{cmd:"fontSize",param:"3",icon:o.size3||o.size,tip:e.size3,htmlTip:`<font size="3">${e.size3}</font>`},"size-4":{cmd:"fontSize",param:"4",icon:o.size4||o.size,tip:e.size4,htmlTip:`<font size="4">${e.size4}</font>`},"size-5":{cmd:"fontSize",param:"5",icon:o.size5||o.size,tip:e.size5,htmlTip:`<font size="5">${e.size5}</font>`},"size-6":{cmd:"fontSize",param:"6",icon:o.size6||o.size,tip:e.size6,htmlTip:`<font size="6">${e.size6}</font>`},"size-7":{cmd:"fontSize",param:"7",icon:o.size7||o.size,tip:e.size7,htmlTip:`<font size="7">${e.size7}</font>`}}}),_=e.computed(()=>{const e=t.definitions||{},o=t.definitions||t.fonts?mr(!0,{},x.value,e,lr(h,i.lang.editor.defaultFont,i.iconSet.editor.font,t.fonts)):x.value;return t.toolbar.map(t=>t.map(t=>{if(t.options)return{type:"dropdown",icon:t.icon,label:t.label,size:"sm",dense:!0,fixedLabel:t.fixedLabel,fixedIcon:t.fixedIcon,highlight:t.highlight,list:t.list,options:t.options.map(e=>o[e])};const n=o[t];return n?"no-state"===n.type||e[t]&&(void 0===n.cmd||x.value[n.cmd]&&"no-state"===x.value[n.cmd].type)?n:Object.assign({type:"toggle"},n):{type:"slot",slot:t}}))}),C={$q:i,props:t,slots:o,inFullscreen:s,toggleFullscreen:u,runCmd:H,isViewingSource:m,editLinkUrl:p,toolbarBackgroundClass:y,buttonProps:w,contentRef:v,buttons:_,setContent:D};e.watch(()=>t.modelValue,e=>{b!==e&&(b=e,D(e,!0))});const S=e.computed(()=>t.toolbar&&t.toolbar.length>0),k=e.computed(()=>{const e={},t=t=>{t.key&&(e[t.key]={cmd:t.cmd,param:t.param})};return _.value.forEach(e=>{e.forEach(e=>{e.options?e.options.forEach(t):t(e)})}),e}),$=e.computed(()=>s.value?t.contentStyle:[{minHeight:t.minHeight,height:t.height,maxHeight:t.maxHeight},t.contentStyle]),M=e.computed(()=>`q-editor q-editor--${!0===m.value?"source":"default"}`+(!0===t.disable?" disabled":"")+(!0===s.value?" fullscreen column":"")+(!0===t.square?" q-editor--square no-border-radius":"")+(!0===t.flat?" q-editor--flat":"")+(!0===t.dense?" q-editor--dense":"")+(!0===r.value?" q-editor--dark q-dark":"")),T=e.computed(()=>[t.contentClass,"q-editor__content",{col:s.value,"overflow-auto":s.value||t.maxHeight}]),B=e.computed(()=>!0===t.disable?{"aria-disabled":"true"}:!0===t.readonly?{"aria-readonly":"true"}:{});function O(){if(null!==v.value){const e=`inner${!0===m.value?"Text":"HTML"}`,o=v.value[e];o!==t.modelValue&&(b=o,n("update:modelValue",o))}}function V(e){if(n("keydown",e),!0!==e.ctrlKey||!0===U(e))return void Q();const t=e.keyCode,o=k.value[t];if(void 0!==o){const{cmd:t,param:n}=o;q(e),H(t,n,!1)}}function z(e){Q(),n("click",e)}function L(e){if(null!==v.value){const{scrollTop:e,scrollHeight:t}=v.value;g=t-e}C.caret.save(),n("blur",e)}function E(t){e.nextTick(()=>{null!==v.value&&void 0!==g&&(v.value.scrollTop=v.value.scrollHeight-g)}),n("focus",t)}function P(e){if(!0===d.value.contains(e.target)&&(null===e.relatedTarget||!0!==d.value.contains(e.relatedTarget))){const e=`inner${!0===m.value?"Text":"HTML"}`;C.caret.restorePosition(v.value[e].length),Q()}}function A(e){!0!==d.value.contains(e.target)||null!==e.relatedTarget&&!0===d.value.contains(e.relatedTarget)||(C.caret.savePosition(),Q())}function F(){g=void 0}function R(e){C.caret.save(),n("mouseup",e)}function I(){g=void 0}function N(e){C.caret.save(),n("keyup",e)}function j(e){C.caret.save(),n("touchend",e)}function D(e,t){if(null!==v.value){!0===t&&C.caret.savePosition();const o=`inner${!0===m.value?"Text":"HTML"}`;v.value[o]=e,!0===t&&(C.caret.restorePosition(v.value[o].length),Q())}}function H(e,t,o=!0){W(),C.caret.restore(),C.caret.apply(e,t,()=>{W(),C.caret.save(),o&&Q()})}function Q(){setTimeout(()=>{p.value=null,l.$forceUpdate()},1)}function W(){uo(()=>{null!==v.value&&v.value.focus()})}function Y(){return v.value}return Object.assign(l,{runCmd:H,refreshToolbar:Q,focus:W,getContentEl:Y}),e.onMounted(()=>{C.caret=l.caret=new Xi(v.value,C),D(t.modelValue),Q()}),()=>{let o;if(S.value){const t=[e.h("div",{key:"qedt_top",class:"q-editor__toolbar row no-wrap scroll-x"+y.value},ar(C))];null!==p.value&&t.push(e.h("div",{key:"qedt_btm",class:"q-editor__toolbar row no-wrap items-center scroll-x"+y.value},ir(C))),o=e.h("div",{key:"toolbar_ctainer",class:"q-editor__toolbars-container"},t)}return e.h("div",{ref:d,class:M.value,style:{height:!0===s.value?"100vh":null},...B.value,onFocusin:P,onFocusout:A},[o,e.h("div",{ref:v,style:$.value,class:T.value,contenteditable:f.value,placeholder:t.placeholder,...{},...c.listeners.value,onInput:O,onKeydown:V,onClick:z,onBlur:L,onFocus:E,onMousedown:F,onTouchstartPassive:I,onMouseup:R,onKeyup:N,onTouchend:j})])}}}),hr=e.defineComponent({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:o}){const n=e.computed(()=>parseInt(t.lines,10)),a=e.computed(()=>"q-item__label"+(!0===t.overline?" q-item__label--overline text-overline":"")+(!0===t.caption?" q-item__label--caption text-caption":"")+(!0===t.header?" q-item__label--header":"")+(1===n.value?" ellipsis":"")),l=e.computed(()=>{return void 0!==t.lines&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null});return()=>e.h("div",{style:l.value,class:a.value},Fe(o.default))}}),gr=e.defineComponent({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(t,{slots:o,emit:n}){let a,l,i,r,s,u,c=!1;function d(){a&&a(),a=null,c=!1,clearTimeout(i),clearTimeout(r),void 0!==l&&l.removeEventListener("transitionend",s),s=null}function v(e,o,n){e.style.overflowY="hidden",void 0!==o&&(e.style.height=`${o}px`),e.style.transition=`height ${t.duration}ms cubic-bezier(.25, .8, .50, 1)`,c=!0,a=n}function p(e,t){e.style.overflowY=null,e.style.height=null,e.style.transition=null,d(),t!==u&&n(t)}function m(e,o){let n=0;l=e,!0===c?(d(),n=e.offsetHeight===e.scrollHeight?0:void 0):u="hide",v(e,n,o),i=setTimeout(()=>{e.style.height=`${e.scrollHeight}px`,s=(t=>{Object(t)===t&&t.target!==e||p(e,"show")}),e.addEventListener("transitionend",s),r=setTimeout(s,1.1*t.duration)},100)}function f(e,o){let n;l=e,!0===c?d():(u="show",n=e.scrollHeight),v(e,n,o),i=setTimeout(()=>{e.style.height=0,s=(t=>{Object(t)===t&&t.target!==e||p(e,"hide")}),e.addEventListener("transitionend",s),r=setTimeout(s,1.1*t.duration)},100)}return e.onBeforeUnmount(()=>{!0===c&&d()}),()=>e.h(e.Transition,{css:!1,appear:t.appear,onEnter:m,onLeave:f},o.default)}});const br={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},yr={xs:2,sm:4,md:8,lg:16,xl:24};var wr=e.defineComponent({name:"QSeparator",props:{...at,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(t){const o=e.getCurrentInstance(),n=lt(t,o.proxy.$q),a=e.computed(()=>!0===t.vertical?"vertical":"horizontal"),l=e.computed(()=>` q-separator--${a.value}`),i=e.computed(()=>!1!==t.inset?`${l.value}-${br[t.inset]}`:""),r=e.computed(()=>`q-separator${l.value}${i.value}`+(void 0!==t.color?` bg-${t.color}`:"")+(!0===n.value?" q-separator--dark":"")),s=e.computed(()=>{const e={};if(void 0!==t.size&&(e[!0===t.vertical?"width":"height"]=t.size),!1!==t.spaced){const o=!0===t.spaced?`${yr.md}px`:t.spaced in yr?`${yr[t.spaced]}px`:t.spaced,n=!0===t.vertical?["Left","Right"]:["Top","Bottom"];e[`margin${n[0]}`]=e[`margin${n[1]}`]=o}return e});return()=>e.h("hr",{class:r.value,style:s.value,"aria-orientation":a.value})}});let xr,_r=0;const Cr=new Array(256);for(let um=0;um<256;um++)Cr[um]=(um+256).toString(16).substr(1);const Sr=(()=>{const e="undefined"!==typeof crypto?crypto:"undefined"!==typeof window?window.crypto||window.msCrypto:void 0;if(void 0!==e){if(void 0!==e.randomBytes)return e.randomBytes;if(void 0!==e.getRandomValues)return t=>{const o=new Uint8Array(t);return e.getRandomValues(o),o}}return e=>{const t=[];for(let o=e;o>0;o--)t.push(Math.floor(256*Math.random()));return t}})(),qr=4096;function kr(){(void 0===xr||_r+16>qr)&&(_r=0,xr=Sr(qr));const e=Array.prototype.slice.call(xr,_r,_r+=16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,Cr[e[0]]+Cr[e[1]]+Cr[e[2]]+Cr[e[3]]+"-"+Cr[e[4]]+Cr[e[5]]+"-"+Cr[e[6]]+Cr[e[7]]+"-"+Cr[e[8]]+Cr[e[9]]+"-"+Cr[e[10]]+Cr[e[11]]+Cr[e[12]]+Cr[e[13]]+Cr[e[14]]+Cr[e[15]]}const $r=e.shallowReactive({}),Mr=Object.keys(_t);var Tr=e.defineComponent({name:"QExpansionItem",props:{..._t,...oo,...at,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:Number,headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...no,"click","after-show","after-hide"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=lt(t,a),i=e.ref(null!==t.modelValue?t.modelValue:t.defaultOpened),r=e.ref(null),{hide:s,toggle:u}=ao({showing:i});let c,d;const v=e.computed(()=>"q-expansion-item q-item-type"+` q-expansion-item--${!0===i.value?"expanded":"collapsed"}`+` q-expansion-item--${!0===t.popup?"popup":"standard"}`),p=e.computed(()=>{if(void 0===t.contentInsetLevel)return null;const e=!0===a.lang.rtl?"Right":"Left";return{["padding"+e]:56*t.contentInsetLevel+"px"}}),m=e.computed(()=>!0!==t.disable&&void 0!==t.to&&null!==t.to&&""!==t.to),f=e.computed(()=>{const e={};return Mr.forEach(o=>{e[o]=t[o]}),e}),h=e.computed(()=>!0===m.value||!0!==t.expandIconToggle),g=e.computed(()=>void 0!==t.expandedIcon&&!0===i.value?t.expandedIcon:t.expandIcon||a.iconSet.expansionItem[!0===t.denseToggle?"denseIcon":"icon"]),b=e.computed(()=>!0!==t.disable&&(!0===m.value||!0===t.expandIconToggle));function y(e){!0!==m.value&&u(e),n("click",e)}function w(e){13===e.keyCode&&x(e,!0)}function x(e,t){!0!==t&&null!==r.value&&r.value.focus(),u(e),q(e)}function _(){n("after-show")}function C(){n("after-hide")}function S(){void 0===c&&(c=kr()),!0===i.value&&($r[t.group]=c);const o=e.watch(i,e=>{!0===e?$r[t.group]=c:$r[t.group]===c&&delete $r[t.group]}),n=e.watch(()=>$r[t.group],(e,t)=>{t===c&&void 0!==e&&e!==c&&s()});d=(()=>{o(),n(),$r[t.group]===c&&delete $r[t.group],d=void 0})}function k(){const o={class:["q-focusable relative-position cursor-pointer"+`${!0===t.denseToggle&&!0===t.switchToggleSide?" items-end":""}`,t.expandIconClass],side:!0!==t.switchToggleSide,avatar:t.switchToggleSide},n=[e.h(et,{class:"q-expansion-item__toggle-icon"+(void 0===t.expandedIcon&&!0===i.value?" q-expansion-item__toggle-icon--rotated":""),name:g.value})];return!0===b.value&&(Object.assign(o,{tabindex:0,onClick:x,onKeyup:w}),n.unshift(e.h("div",{ref:r,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),e.h(Ji,o,()=>n)}function $(){let n;return void 0!==o.header?n=[].concat(o.header()):(n=[e.h(Ji,()=>[e.h(hr,{lines:t.labelLines},()=>t.label||""),t.caption?e.h(hr,{lines:t.captionLines,caption:!0},()=>t.caption):null])],t.icon&&n[!0===t.switchToggleSide?"push":"unshift"](e.h(Ji,{side:!0===t.switchToggleSide,avatar:!0!==t.switchToggleSide},()=>e.h(et,{name:t.icon})))),!0!==t.disable&&n[!0===t.switchToggleSide?"unshift":"push"](k()),n}function M(){const o={ref:"item",style:t.headerStyle,class:t.headerClass,dark:l.value,disable:t.disable,dense:t.dense,insetLevel:t.headerInsetLevel};return!0===h.value&&(o.clickable=!0,o.onClick=y,!0===m.value&&Object.assign(o,f.value)),e.h(Gi,o,$)}function T(){return e.withDirectives(e.h("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:p.value},Fe(o.default)),[[e.vShow,i.value]])}function B(){const o=[M(),e.h(gr,{duration:t.duration,onShow:_,onHide:C},T)];return!0===t.expandSeparator&&o.push(e.h(wr,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:l.value}),e.h(wr,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:l.value})),o}return e.watch(()=>t.group,e=>{void 0!==d&&d(),void 0!==e&&S()}),void 0!==t.group&&S(),e.onBeforeUnmount(()=>{void 0!==d&&d()}),()=>e.h("div",{class:v.value},[e.h("div",{class:"q-expansion-item__container relative-position"},B())])}});const Br=["top","right","bottom","left"],Or={type:{type:String,default:"a"},outline:Boolean,push:Boolean,flat:Boolean,unelevated:Boolean,color:String,textColor:String,glossy:Boolean,square:Boolean,padding:String,label:{type:[String,Number],default:""},labelPosition:{type:String,default:"right",validator:e=>Br.includes(e)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]};function Vr(t,o){return{formClass:e.computed(()=>`q-fab--form-${!0===t.square?"square":"rounded"}`),stacked:e.computed(()=>!1===t.externalLabel&&["top","bottom"].includes(t.labelPosition)),labelProps:e.computed(()=>{if(!0===t.externalLabel){const e=null===t.hideLabel?!1===o.value:t.hideLabel;return{action:"push",data:{class:[t.labelClass,"q-fab__label q-tooltip--style q-fab__label--external"+` q-fab__label--external-${t.labelPosition}`+(!0===e?" q-fab__label--external-hidden":"")],style:t.labelStyle}}}return{action:["left","top"].includes(t.labelPosition)?"unshift":"push",data:{class:[t.labelClass,`q-fab__label q-fab__label--internal q-fab__label--internal-${t.labelPosition}`+(!0===t.hideLabel?" q-fab__label--internal-hidden":"")],style:t.labelStyle}}})}}const zr=["up","right","down","left"],Lr=["left","center","right"];var Er=e.defineComponent({name:"QFab",props:{...Or,...oo,icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{default:null},direction:{type:String,default:"right",validator:e=>zr.includes(e)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:e=>Lr.includes(e)}},emits:no,setup(t,{slots:o}){const n=e.ref(null),a=e.ref(!0===t.modelValue),{proxy:{$q:l}}=e.getCurrentInstance(),{formClass:i,labelProps:r}=Vr(t,a),s=e.computed(()=>!0!==t.persistent),{hide:u,toggle:c}=ao({showing:a,hideOnRouteChange:s}),d=e.computed(()=>"q-fab z-fab row inline justify-center"+` q-fab--align-${t.verticalActionsAlign} ${i.value}`+(!0===a.value?" q-fab--opened":" q-fab--closed")),v=e.computed(()=>"q-fab__actions flex no-wrap inline"+` q-fab__actions--${t.direction}`+` q-fab__actions--${!0===a.value?"opened":"closed"}`),p=e.computed(()=>"q-fab__icon-holder "+` q-fab__icon-holder--${!0===a.value?"opened":"closed"}`);function m(){const n=[];return!0!==t.hideIcon&&n.push(e.h("div",{class:p.value},[e.h(et,{class:"q-fab__icon absolute-full",name:t.icon||l.iconSet.fab.icon}),e.h(et,{class:"q-fab__active-icon absolute-full",name:t.activeIcon||l.iconSet.fab.activeIcon})])),""!==t.label&&n[r.value.action](e.h("div",r.value.data,[t.label])),Ie(o.tooltip,n)}return e.provide(ie,{showing:a,onChildClick(e){u(e),null!==n.value&&n.value.$el.focus()}}),()=>e.h("div",{class:d.value},[e.h(Xt,{ref:n,class:i.value,...t,noWrap:!0,stack:t.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0,"aria-expanded":!0===a.value?"true":"false","aria-haspopup":"true",onClick:c},m),e.h("div",{class:v.value},Fe(o.default))])}});const Pr={start:"self-end",center:"self-center",end:"self-start"},Ar=Object.keys(Pr);var Fr=e.defineComponent({name:"QFabAction",props:{...Or,icon:{type:String,default:""},anchor:{type:String,validator:e=>Ar.includes(e)},to:[String,Object],replace:Boolean},emits:["click"],setup(t,{slots:o,emit:n}){const a=e.inject(ie,()=>({showing:{value:!0},onChildClick:m})),{formClass:l,labelProps:i}=Vr(t,a.showing),r=e.computed(()=>{const e=Pr[t.anchor];return l.value+(void 0!==e?` ${e}`:"")}),s=e.computed(()=>!0===t.disable||!0!==a.showing.value);function u(e){a.onChildClick(e),n("click",e)}function c(){const n=[];return""!==t.icon&&n.push(e.h(et,{name:t.icon})),""!==t.label&&n[i.value.action](e.h("div",i.value.data,[t.label])),Ie(o.default,n)}const d=e.getCurrentInstance();return Object.assign(d.proxy,{click:u}),()=>e.h(Xt,{class:r.value,...t,noWrap:!0,stack:t.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:s.value,onClick:u},c)}});function Rr({validate:t,resetValidation:o,requiresQForm:n}){const a=e.inject(re,!1);if(!1!==a){const{props:n,proxy:l}=e.getCurrentInstance();Object.assign(l,{validate:t,resetValidation:o}),e.watch(()=>n.disable,e=>{!0===e?("function"===typeof o&&o(),a.unbindComponent(l)):a.bindComponent(l)}),!0!==n.disable&&a.bindComponent(l),e.onBeforeUnmount(()=>{!0!==n.disable&&a.unbindComponent(l)})}else!0===n&&console.error("Parent QForm not found on useFormChild()!")}const Ir=[!0,!1,"ondemand"],Nr={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:e=>Ir.includes(e)}};function jr(t,o){const{props:n,proxy:a}=e.getCurrentInstance(),l=e.ref(!1),i=e.ref(null),r=e.ref(null);Rr({validate:m,resetValidation:p});let s,u=0;const c=e.computed(()=>void 0!==n.rules&&null!==n.rules&&n.rules.length>0),d=e.computed(()=>!0===n.error||!0===l.value),v=e.computed(()=>"string"===typeof n.errorMessage&&n.errorMessage.length>0?n.errorMessage:i.value);function p(){u++,o.value=!1,r.value=null,l.value=!1,i.value=null}function m(e=n.modelValue){if(!0!==c.value)return!0;u++,!0!==o.value&&!0!==n.lazyRules&&(r.value=!0);const t=(e,t)=>{l.value!==e&&(l.value=e);const n=t||void 0;i.value!==n&&(i.value=n),!1!==o.value&&(o.value=!1)},a=[];for(let o=0;o<n.rules.length;o++){const l=n.rules[o];let i;if("function"===typeof l?i=l(e):"string"===typeof l&&void 0!==Wa[l]&&(i=Wa[l](e)),!1===i||"string"===typeof i)return t(!0,i),!1;!0!==i&&void 0!==i&&a.push(i)}if(0===a.length)return t(!1),!0;!0!==o.value&&(o.value=!0);const s=u;return Promise.all(a).then(e=>{if(s!==u)return!0;if(void 0===e||!1===Array.isArray(e)||0===e.length)return t(!1),!0;const o=e.find(e=>!1===e||"string"===typeof e);return t(void 0!==o,o),void 0===o},e=>{return s!==u||(console.error(e),t(!0),!1)})}function f(e){!0===c.value&&"ondemand"!==n.lazyRules&&(!0===r.value||!0!==n.lazyRules&&!0!==e)&&m()}return e.watch(()=>n.modelValue,()=>{f()}),e.watch(()=>n.reactiveRules,t=>{!0===t?void 0===s&&(s=e.watch(()=>n.rules,()=>{f(!0)})):void 0!==s&&(s(),s=void 0)},{immediate:!0}),e.watch(t,e=>{"ondemand"!==n.lazyRules&&(!0===e?null===r.value&&(r.value=!1):!1===r.value&&!0===c.value&&(r.value=!0,m()))}),e.onBeforeUnmount(()=>{void 0!==s&&s()}),Object.assign(a,{resetValidation:p,validate:m}),Object.defineProperty(a,"hasError",{get:()=>d.value}),{isDirtyModel:r,hasRules:c,hasError:d,computedErrorMessage:v,validate:m,resetValidation:p}}function Dr(e){return void 0===e?`f_${kr()}`:e}function Hr(e){return void 0!==e&&null!==e&&(""+e).length>0}const Qr={...at,...Nr,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]},Ur=["update:modelValue","clear","focus","blur","popup-show","popup-hide"];function Wr(){const{props:t,attrs:o,proxy:n}=e.getCurrentInstance(),a=lt(t,n.$q);return{isDark:a,editable:e.computed(()=>!0!==t.disable&&!0!==t.readonly),innerLoading:e.ref(!1),focused:e.ref(!1),hasPopupOpen:e.ref(!1),splitAttrs:sr(o),targetUid:e.ref(Dr(t.for)),rootRef:e.ref(null),targetRef:e.ref(null),controlRef:e.ref(null)}}function Yr(o){const{props:n,emit:a,slots:l,attrs:i,proxy:r}=e.getCurrentInstance(),{$q:s}=r;let u;void 0===o.hasValue&&(o.hasValue=e.computed(()=>Hr(n.modelValue))),void 0===o.emitValue&&(o.emitValue=(e=>{a("update:modelValue",e)})),void 0===o.controlEvents&&(o.controlEvents={onFocusin:T,onFocusout:B}),Object.assign(o,{clearValue:O,onControlFocusin:T,onControlFocusout:B,focus:$}),void 0===o.computedCounter&&(o.computedCounter=e.computed(()=>{if(!1!==n.counter){const e="string"===typeof n.modelValue||"number"===typeof n.modelValue?(""+n.modelValue).length:!0===Array.isArray(n.modelValue)?n.modelValue.length:0,t=void 0!==n.maxlength?n.maxlength:n.maxValues;return e+(void 0!==t?" / "+t:"")}}));const{isDirtyModel:c,hasRules:d,hasError:v,computedErrorMessage:p,resetValidation:m}=jr(o.focused,o.innerLoading),f=void 0!==o.floatingLabel?e.computed(()=>!0===n.stackLabel||!0===o.focused.value||!0===o.floatingLabel.value):e.computed(()=>!0===n.stackLabel||!0===o.focused.value||!0===o.hasValue.value),h=e.computed(()=>!0===n.bottomSlots||void 0!==n.hint||!0===d.value||!0===n.counter||null!==n.error),g=e.computed(()=>{return!0===n.filled?"filled":!0===n.outlined?"outlined":!0===n.borderless?"borderless":n.standout?"standout":"standard"}),b=e.computed(()=>`q-field row no-wrap items-start q-field--${g.value}`+(void 0!==o.fieldClass?` ${o.fieldClass.value}`:"")+(!0===n.rounded?" q-field--rounded":"")+(!0===n.square?" q-field--square":"")+(!0===f.value?" q-field--float":"")+(!0===w.value?" q-field--labeled":"")+(!0===n.dense?" q-field--dense":"")+(!0===n.itemAligned?" q-field--item-aligned q-item-type":"")+(!0===o.isDark.value?" q-field--dark":"")+(void 0===o.getControl?" q-field--auto-height":"")+(!0===o.focused.value?" q-field--focused":"")+(!0===v.value?" q-field--error":"")+(!0===v.value||!0===o.focused.value?" q-field--highlighted":"")+(!0!==n.hideBottomSpace&&!0===h.value?" q-field--with-bottom":"")+(!0===n.disable?" q-field--disabled":!0===n.readonly?" q-field--readonly":"")),y=e.computed(()=>"q-field__control relative-position row no-wrap"+(void 0!==n.bgColor?` bg-${n.bgColor}`:"")+(!0===v.value?" text-negative":"string"===typeof n.standout&&n.standout.length>0&&!0===o.focused.value?` ${n.standout}`:void 0!==n.color?` text-${n.color}`:"")),w=e.computed(()=>!0===n.labelSlot||void 0!==n.label),x=e.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(void 0!==n.labelColor&&!0!==v.value?` text-${n.labelColor}`:"")),_=e.computed(()=>({id:o.targetUid.value,editable:o.editable.value,focused:o.focused.value,floatingLabel:f.value,modelValue:n.modelValue,emitValue:o.emitValue})),C=e.computed(()=>{const e={for:o.targetUid.value};return!0===n.disable?e["aria-disabled"]="true":!0===n.readonly&&(e["aria-readonly"]="true"),e});let k;function $(){void 0!==k&&co(k),k=uo(()=>{k=void 0;const e=document.activeElement;let t=void 0!==o.targetRef&&o.targetRef.value;!t||null!==e&&e.id===o.targetUid.value||(!0===t.hasAttribute("tabindex")||(t=t.querySelector("[tabindex]")),t&&t!==e&&t.focus())})}function M(){void 0!==k&&co(k);const e=document.activeElement;null!==e&&o.rootRef.value.contains(e)&&e.blur()}function T(e){!0===o.editable.value&&!1===o.focused.value&&(o.focused.value=!0,a("focus",e))}function B(e,t){clearTimeout(u),u=setTimeout(()=>{(!0!==document.hasFocus()||!0!==o.hasPopupOpen.value&&(void 0===o.controlRef||null!==o.controlRef.value&&!1===o.controlRef.value.contains(document.activeElement)))&&(!0===o.focused.value&&(o.focused.value=!1,a("blur",e)),void 0!==t&&t())})}function O(t){if(q(t),!0!==s.platform.is.mobile){const e=void 0!==o.targetRef&&o.targetRef.value||o.rootRef.value;e.focus()}else!0===o.rootRef.value.contains(document.activeElement)&&document.activeElement.blur();"file"===n.type&&(o.inputRef.value.value=null),a("update:modelValue",null),a("clear",n.modelValue),e.nextTick(()=>{m(),"ondemand"!==n.lazyRules&&!0!==s.platform.is.mobile&&(c.value=!1)})}function V(){const t=[];return void 0!==l.prepend&&t.push(e.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:S},l.prepend())),t.push(e.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},z())),void 0!==l.append&&t.push(e.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:S},l.append())),!0===v.value&&!1===n.noErrorIcon&&t.push(E("error",[e.h(et,{name:s.iconSet.field.error,color:"negative"})])),!0===n.loading||!0===o.innerLoading.value?t.push(E("inner-loading-append",void 0!==l.loading?l.loading():[e.h($t,{color:n.color})])):!0===n.clearable&&!0===o.hasValue.value&&!0===o.editable.value&&t.push(E("inner-clearable-append",[e.h(et,{class:"q-field__focusable-action",tag:"button",name:n.clearIcon||s.iconSet.field.clear,tabindex:0,type:"button",onClick:O})])),void 0!==o.getInnerAppend&&t.push(E("inner-append",o.getInnerAppend())),void 0!==o.getControlChild&&t.push(o.getControlChild()),t}function z(){const t=[];return void 0!==n.prefix&&null!==n.prefix&&t.push(e.h("div",{class:"q-field__prefix no-pointer-events row items-center"},n.prefix)),void 0!==o.getShadowControl&&!0===o.hasShadow.value&&t.push(o.getShadowControl()),void 0!==o.getControl?t.push(o.getControl()):void 0!==l.rawControl?t.push(l.rawControl()):void 0!==l.control&&t.push(e.h("div",{ref:o.targetRef,class:"q-field__native row",...o.splitAttrs.attributes.value,"data-autofocus":!0===n.autofocus||void 0},l.control(_.value))),!0===w.value&&t.push(e.h("div",{class:x.value},Fe(l.label,n.label))),void 0!==n.suffix&&null!==n.suffix&&t.push(e.h("div",{class:"q-field__suffix no-pointer-events row items-center"},n.suffix)),t.concat(Fe(l.default))}function L(){let t,a;!0===v.value?null!==p.value?(t=[e.h("div",{role:"alert"},p.value)],a=`q--slot-error-${p.value}`):(t=Fe(l.error),a="q--slot-error"):!0===n.hideHint&&!0!==o.focused.value||(void 0!==n.hint?(t=[e.h("div",n.hint)],a=`q--slot-hint-${n.hint}`):(t=Fe(l.hint),a="q--slot-hint"));const i=!0===n.counter||void 0!==l.counter;if(!0===n.hideBottomSpace&&!1===i&&void 0===t)return;const r=e.h("div",{key:a,class:"q-field__messages col"},t);return e.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(!0!==n.hideBottomSpace?"animated":"stale")},[!0===n.hideBottomSpace?r:e.h(e.Transition,{name:"q-transition--field-message"},()=>r),!0===i?e.h("div",{class:"q-field__counter"},void 0!==l.counter?l.counter():o.computedCounter.value):null])}function E(t,o){return null===o?null:e.h("div",{key:t,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},o)}return e.watch(()=>n.for,e=>{o.targetUid.value=Dr(e)}),Object.assign(r,{focus:$,blur:M}),e.onMounted(()=>{!0===t.value&&void 0===n.for&&(o.targetUid.value=Dr()),!0===n.autofocus&&r.focus()}),e.onBeforeUnmount(()=>{clearTimeout(u)}),function(){return e.h("label",{ref:o.rootRef,class:[b.value,i.class],style:i.style,...C.value},[void 0!==l.before?e.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:S},l.before()):null,e.h("div",{class:"q-field__inner relative-position col self-stretch"},[e.h("div",{ref:o.controlRef,class:y.value,tabindex:-1,...o.controlEvents},V()),!0===h.value?L():null]),void 0!==l.after?e.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:S},l.after()):null])}}var Kr=e.defineComponent({name:"QField",inheritAttrs:!1,props:Qr,emits:Ur,setup(){return Yr(Wr())}});function Xr(e,t,o,n){const a=[];return e.forEach(e=>{!0===n(e)?a.push(e):t.push({failedPropValidation:o,file:e})}),a}function Zr(e){e&&e.dataTransfer&&(e.dataTransfer.dropEffect="copy"),q(e)}const Gr={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},Jr=["rejected"];function es({editable:t,dnd:o,getFileInput:n,addFilesToQueue:a}){const{props:l,emit:i,proxy:r}=e.getCurrentInstance(),s=e.computed(()=>void 0!==l.accept?l.accept.split(",").map(e=>{return e=e.trim(),"*"===e?"*/":(e.endsWith("/*")&&(e=e.slice(0,e.length-1)),e.toUpperCase())}):null),u=e.computed(()=>parseInt(l.maxFiles,10)),c=e.computed(()=>parseInt(l.maxTotalSize,10));function d(e){if(t.value){const t=n();t&&t.click(e)}}function v(e){t.value&&e&&a(null,e)}function p(e,t,o,n){let a=Array.from(t||e.target.files);const r=[],d=()=>{r.length>0&&i("rejected",r)};if(void 0!==l.accept&&-1===s.value.indexOf("*/")&&(a=Xr(a,r,"accept",e=>{return s.value.some(t=>e.type.toUpperCase().startsWith(t)||e.name.toUpperCase().endsWith(t))}),0===a.length))return d();if(void 0!==l.maxFileSize){const e=parseInt(l.maxFileSize,10);if(a=Xr(a,r,"max-file-size",t=>{return t.size<=e}),0===a.length)return d()}if(!0!==l.multiple&&(a=[a[0]]),void 0!==l.maxTotalSize){let e=!0===n?o.reduce((e,t)=>e+t.size,0):0;if(a=Xr(a,r,"max-total-size",t=>{return e+=t.size,e<=c.value}),0===a.length)return d()}if("function"===typeof l.filter){const e=l.filter(a);a=Xr(a,r,"filter",t=>{return e.includes(t)})}if(void 0!==l.maxFiles){let e=!0===n?o.length:0;if(a=Xr(a,r,"max-files",()=>{return e++,e<=u.value}),0===a.length)return d()}return d(),a.length>0?a:void 0}function m(e){Zr(e),!0!==o.value&&(o.value=!0)}function f(e){q(e),o.value=!1}function h(e){Zr(e);const t=e.dataTransfer.files;t.length>0&&a(null,t),o.value=!1}function g(t){if(!0===o.value)return e.h("div",{class:`q-${t}__dnd absolute-full`,onDragenter:Zr,onDragover:Zr,onDragleave:f,onDrop:h})}return Object.assign(r,{pickFiles:d,addFiles:v}),{pickFiles:d,addFiles:v,onDragover:m,processFiles:p,getDndNode:g,maxFilesNumber:u,maxTotalSizeNumber:c}}function ts(t,o){function n(){const e=t.modelValue;try{const t="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(e)===e&&("length"in e?Array.from(e):[e]).forEach(e=>{t.items.add(e)}),{files:t.files}}catch(e){return{files:void 0}}}return!0===o?e.computed(()=>{if("file"===t.type)return n()}):e.computed(n)}var os=e.defineComponent({name:"QFile",inheritAttrs:!1,props:{...Qr,...wn,...Gr,modelValue:[File,FileList,Array],append:Boolean,useChips:Boolean,displayValue:[String,Number],tabindex:{type:[String,Number],default:0},counterLabel:Function,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Ur,...Jr],setup(t,{slots:o,emit:n,attrs:a}){const{proxy:l}=e.getCurrentInstance(),i=Wr(),r=e.ref(null),s=e.ref(!1),u=Cn(t),{pickFiles:c,onDragover:d,processFiles:v,getDndNode:p}=es({editable:i.editable,dnd:s,getFileInput:k,addFilesToQueue:$}),m=ts(t),f=e.computed(()=>Object(t.modelValue)===t.modelValue?"length"in t.modelValue?Array.from(t.modelValue):[t.modelValue]:[]),h=e.computed(()=>Hr(f.value)),g=e.computed(()=>f.value.map(e=>e.name).join(", ")),b=e.computed(()=>ye(f.value.reduce((e,t)=>e+t.size,0))),y=e.computed(()=>({totalSize:b.value,filesNumber:f.value.length,maxFiles:t.maxFiles})),w=e.computed(()=>({tabindex:-1,type:"file",title:"",accept:t.accept,capture:t.capture,name:u.value,...a,id:i.targetUid.value,disabled:!0!==i.editable.value})),x=e.computed(()=>!0===t.multiple&&!0===t.append);function _(e){const t=f.value.slice();t.splice(e,1),S(t)}function C(e){const t=f.value.findIndex(e);t>-1&&_(t)}function S(e){n("update:modelValue",!0===t.multiple?e:e[0])}function q(e){13===e.keyCode&&c(e)}function k(){return r.value}function $(e,o){const n=v(e,o,f.value,x.value);void 0!==n&&((!0===t.multiple?t.modelValue&&n.every(e=>f.value.includes(e)):t.modelValue===n[0])||S(!0===x.value?f.value.concat(n):n))}function M(){return[e.h("input",{class:[t.inputClass,"q-file__filler"],style:t.inputStyle,tabindex:-1})]}function T(){if(void 0!==o.file)return 0===f.value.length?M():f.value.map((e,t)=>o.file({index:t,file:e,ref:this}));if(void 0!==o.selected)return 0===f.value.length?M():o.selected({files:f.value,ref:this});if(!0===t.useChips)return 0===f.value.length?M():f.value.map((o,n)=>e.h(ua,{key:"file-"+n,removable:i.editable.value,dense:!0,textColor:t.color,tabindex:t.tabindex,onRemove:()=>{_(n)}},()=>e.h("span",{class:"ellipsis",textContent:o.name})));const n=void 0!==t.displayValue?t.displayValue:g.value;return n.length>0?[e.h("div",{class:t.inputClass,style:t.inputStyle,textContent:n})]:M()}function B(){const o={ref:r,...w.value,...m.value,class:"q-field__input fit absolute-full cursor-pointer",onChange:$};return!0===t.multiple&&(o.multiple=!0),e.h("input",o)}return Object.assign(i,{fieldClass:{value:"q-file q-field--auto-height"},emitValue:S,hasValue:h,inputRef:r,innerValue:f,floatingLabel:e.computed(()=>!0===h.value||Hr(t.displayValue)),computedCounter:e.computed(()=>{if(void 0!==t.counterLabel)return t.counterLabel(y.value);const e=t.maxFiles;return`${f.value.length}${void 0!==e?" / "+e:""} (${b.value})`}),getControlChild:()=>p("file"),getControl:()=>{const o={ref:i.targetRef,class:"q-field__native row items-center cursor-pointer",tabindex:t.tabindex};return!0===i.editable.value&&Object.assign(o,{onDragover:d,onKeyup:q}),e.h("div",o,[B()].concat(T()))}}),Object.assign(l,{removeAtIndex:_,removeFile:C,getNativeElement:()=>r.value}),Yr(i)}}),ns=e.defineComponent({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(o,{slots:n,emit:a}){const{proxy:{$q:l}}=e.getCurrentInstance(),i=e.inject(ae,()=>{console.error("QFooter needs to be child of QLayout")}),r=e.ref(parseInt(o.heightHint,10)),s=e.ref(!0),u=e.ref(!0===t.value||!0===i.isContainer.value?0:window.innerHeight),c=e.computed(()=>!0===o.reveal||i.view.value.indexOf("F")>-1||!0===i.isContainer.value),d=e.computed(()=>!0===i.isContainer.value?i.containerHeight.value:u.value),v=e.computed(()=>{if(!0!==o.modelValue)return 0;if(!0===c.value)return!0===s.value?r.value:0;const e=i.scroll.value.position+d.value+r.value-i.height.value;return e>0?e:0}),p=e.computed(()=>!0!==o.modelValue||!0===c.value&&!0!==s.value),m=e.computed(()=>!0===o.modelValue&&!0===p.value&&!0===o.reveal),f=e.computed(()=>"q-footer q-layout__section--marginal "+(!0===c.value?"fixed":"absolute")+"-bottom"+(!0===o.bordered?" q-footer--bordered":"")+(!0===p.value?" q-footer--hidden":"")+(!0!==o.modelValue?" q-layout--prevent-focus"+(!0!==c.value?" hidden":""):"")),h=e.computed(()=>{const e=i.rows.value.bottom,t={};return"l"===e[0]&&!0===i.left.space&&(t[!0===l.lang.rtl?"right":"left"]=`${i.left.size}px`),"r"===e[2]&&!0===i.right.space&&(t[!0===l.lang.rtl?"left":"right"]=`${i.right.size}px`),t});function g(e,t){i.update("footer",e,t)}function b(e,t){e.value!==t&&(e.value=t)}function y({height:e}){b(r,e),g("size",e)}function w(){if(!0!==o.reveal)return;const{direction:e,position:t,inflectionPoint:n}=i.scroll.value;b(s,"up"===e||t-n<100||i.height.value-d.value-t-r.value<300)}function x(e){!0===m.value&&b(s,!0),a("focusin",e)}e.watch(()=>o.modelValue,e=>{g("space",e),b(s,!0),i.animate()}),e.watch(v,e=>{g("offset",e)}),e.watch(()=>o.reveal,e=>{!1===e&&b(s,o.modelValue)}),e.watch(s,e=>{i.animate(),a("reveal",e)}),e.watch([r,i.scroll,i.height],w),e.watch(()=>l.screen.height,e=>{!0!==i.isContainer.value&&b(u,e)});const _={};return i.instances.footer=_,!0===o.modelValue&&g("size",r.value),g("space",o.modelValue),g("offset",v.value),e.onBeforeUnmount(()=>{i.instances.footer===_&&(i.instances.footer=void 0,g("size",0),g("offset",0),g("space",!1))}),()=>{const t=Ie(n.default,[e.h(Ta,{debounce:0,onResize:y})]);return!0===o.elevated&&t.push(e.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),e.h("footer",{class:f.value,style:h.value,onFocusin:x},t)}}}),as=e.defineComponent({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validation-success","validation-error"],setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),l=e.ref(null);let i=0;const r=[];function s(e){const o=[],a="boolean"===typeof e?e:!0!==t.noErrorFocus;i++;const l=(e,t)=>{n("validation-"+(!0===e?"success":"error"),t)};for(let n=0;n<r.length;n++){const e=r[n],i=e.validate();if("function"===typeof i.then)o.push(i.then(t=>({valid:t,comp:e}),t=>({valid:!1,comp:e,error:t})));else if(!0!==i){if(!1===t.greedy)return l(!1,e),!0===a&&"function"===typeof e.focus&&e.focus(),Promise.resolve(!1);o.push({valid:!1,comp:e})}}if(0===o.length)return l(!0),Promise.resolve(!0);const s=i;return Promise.all(o).then(e=>{if(s===i){const t=e.filter(e=>!0!==e.valid);if(0===t.length)return l(!0),!0;const{valid:o,comp:n}=t[0];return l(!1,n),!0===a&&!0!==o&&"function"===typeof n.focus&&n.focus(),!1}})}function u(){i++,r.forEach(e=>{"function"===typeof e.resetValidation&&e.resetValidation()})}function c(e){void 0!==e&&q(e),s().then(o=>{!0===o&&(void 0!==t.onSubmit?n("submit",e):void 0!==e&&void 0!==e.target&&"function"===typeof e.target.submit&&e.target.submit())})}function d(o){void 0!==o&&q(o),n("reset"),e.nextTick(()=>{u(),!0===t.autofocus&&!0!==t.noResetFocus&&v()})}function v(){uo(()=>{if(null===l.value)return;const e=l.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(l.value.querySelectorAll("[tabindex]"),e=>e.tabIndex>-1);null!==e&&void 0!==e&&e.focus()})}return e.provide(re,{bindComponent(e){r.push(e)},unbindComponent(e){const t=r.indexOf(e);t>-1&&r.splice(t,1)}}),e.onMounted(()=>{!0===t.autofocus&&v()}),Object.assign(a.proxy,{validate:s,resetValidation:u,submit:c,reset:d,focus:v,getValidationComponents:()=>r}),()=>e.h("form",{class:"q-form",ref:l,onSubmit:c,onReset:d},Fe(o.default))}}),ls={inject:{[re]:{default:m}},watch:{disable(e){const t=this.$.provides[re];void 0!==t&&(!0===e?(this.resetValidation(),t.unbindComponent(this)):t.bindComponent(this))}},methods:{validate(){},resetValidation(){}},created(){const e=this.$.provides[re];void 0!==e&&!0!==this.disable&&e.bindComponent(this)},beforeUnmount(){const e=this.$.provides[re];void 0!==e&&!0!==this.disable&&e.unbindComponent(this)}},is=e.defineComponent({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=e.inject(ae,()=>{console.error("QHeader needs to be child of QLayout")}),i=e.ref(parseInt(t.heightHint,10)),r=e.ref(!0),s=e.computed(()=>!0===t.reveal||l.view.value.indexOf("H")>-1||!0===l.isContainer.value),u=e.computed(()=>{if(!0!==t.modelValue)return 0;if(!0===s.value)return!0===r.value?i.value:0;const e=i.value-l.scroll.value.position;return e>0?e:0}),c=e.computed(()=>!0!==t.modelValue||!0===s.value&&!0!==r.value),d=e.computed(()=>!0===t.modelValue&&!0===c.value&&!0===t.reveal),v=e.computed(()=>"q-header q-layout__section--marginal "+(!0===s.value?"fixed":"absolute")+"-top"+(!0===t.bordered?" q-header--bordered":"")+(!0===c.value?" q-header--hidden":"")+(!0!==t.modelValue?" q-layout--prevent-focus":"")),p=e.computed(()=>{const e=l.rows.value.top,t={};return"l"===e[0]&&!0===l.left.space&&(t[!0===a.lang.rtl?"right":"left"]=`${l.left.size}px`),"r"===e[2]&&!0===l.right.space&&(t[!0===a.lang.rtl?"left":"right"]=`${l.right.size}px`),t});function m(e,t){l.update("header",e,t)}function f(e,t){e.value!==t&&(e.value=t)}function h({height:e}){f(i,e),m("size",e)}function g(e){!0===d.value&&f(r,!0),n("focusin",e)}e.watch(()=>t.modelValue,e=>{m("space",e),f(r,!0),l.animate()}),e.watch(u,e=>{m("offset",e)}),e.watch(()=>t.reveal,e=>{!1===e&&f(r,t.modelValue)}),e.watch(r,e=>{l.animate(),n("reveal",e)}),e.watch(l.scroll,e=>{!0===t.reveal&&f(r,"up"===e.direction||e.position<=t.revealOffset||e.position-e.inflectionPoint<100)});const b={};return l.instances.header=b,!0===t.modelValue&&m("size",i.value),m("space",t.modelValue),m("offset",u.value),e.onBeforeUnmount(()=>{l.instances.header===b&&(l.instances.header=void 0,m("size",0),m("offset",0),m("space",!1))}),()=>{const n=Re(o.default,[]);return!0===t.elevated&&n.push(e.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push(e.h(Ta,{debounce:0,onResize:h})),e.h("header",{class:v.value,style:p.value,onFocusin:g},n)}}});const rs={ratio:[String,Number]};function ss(t,o){return e.computed(()=>{const e=Number(t.ratio||(void 0!==o?o.value:void 0));return!0!==isNaN(e)&&e>0?{paddingBottom:`${100/e}%`}:null})}const us=16/9;var cs=e.defineComponent({name:"QImg",props:{...rs,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},width:String,height:String,initialRatio:{type:[Number,String],default:us},placeholderSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(t,{slots:o,emit:n}){const a=e.ref(t.initialRatio),l=ss(t,a);let i;const r=[e.ref(null),e.ref(void 0!==t.placeholderSrc?{src:t.placeholderSrc}:null)],s=e.ref(0),u=e.ref(!1),c=e.ref(!1),d=e.computed(()=>`q-img q-img--${!0===t.noNativeMenu?"no-":""}menu`),v=e.computed(()=>({width:t.width,height:t.height})),p=e.computed(()=>`q-img__image ${void 0!==t.imgClass?t.imgClass+" ":""}`+`q-img__image--with${!0===t.noTransition?"out":""}-transition`),m=e.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function f(){return t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null}function h(e){if(clearTimeout(i),c.value=!1,null===e)return u.value=!1,r[0].value=null,void(r[1].value=null);u.value=!0,r[s.value].value=e}function g({target:e}){null!==i&&(clearTimeout(i),a.value=0===e.naturalHeight?.5:e.naturalWidth/e.naturalHeight,b(e,1))}function b(e,t){null!==i&&1e3!==t&&(!0===e.complete?y(e):i=setTimeout(()=>{b(e,t+1)},50))}function y(e){null!==i&&(s.value=1===s.value?0:1,r[s.value].value=null,u.value=!1,c.value=!1,n("load",e.currentSrc||e.src))}function w(e){clearTimeout(i),u.value=!1,c.value=!0,r[0].value=null,r[1].value=null,n("error",e)}function x(t,o){return e.h("div",{class:"q-img__container absolute-full",key:t},o)}function _(o){const n=r[o].value,a={key:"img_"+o,class:p.value,style:m.value,crossorigin:t.crossorigin,decoding:t.decoding,referrerpolicy:t.referrerpolicy,height:t.height,width:t.width,loading:t.loading,"aria-hidden":"true",draggable:t.draggable,...n};return s.value===o?(a.class+=" q-img__image--waiting",Object.assign(a,{onLoad:g,onError:w})):a.class+=" q-img__image--loaded",x("img"+o,e.h("img",a))}function C(){return!0!==u.value?e.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},Fe(o[!0===c.value?"error":"default"])):e.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},void 0!==o.loading?o.loading():!0===t.noSpinner?void 0:[e.h($t,{color:t.spinnerColor,size:t.spinnerSize})])}return e.watch(()=>f(),h),h(f()),e.onBeforeUnmount(()=>{clearTimeout(i),i=null}),()=>{const o=[];return null!==l.value&&o.push(e.h("div",{key:"filler",style:l.value})),!0!==c.value&&(null!==r[0].value&&o.push(_(0)),null!==r[1].value&&o.push(_(1))),o.push(e.h(e.Transition,{name:"q-transition--fade"},C)),e.h("div",{class:d.value,style:v.value,role:"img","aria-label":t.alt},o)}}}),ds=e.defineComponent({name:"QInfiniteScroll",props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:{default:void 0},initialIndex:Number,disable:Boolean,reverse:Boolean},emits:["load"],setup(t,{slots:o,emit:n}){const a=e.ref(!1),l=e.ref(null);let i,r,s=t.initialIndex||0,u=!0;const c=e.computed(()=>"q-infinite-scroll__loading"+(!0===a.value?"":" invisible"));function d(){if(!0===t.disable||!0===a.value||!1===u)return;const e=To(i),o=Oo(i),n=Bt(i);!1===t.reverse?o+n+t.offset>=e&&v():o<t.offset&&v()}function v(){if(!0===t.disable||!0===a.value||!1===u)return;s++,a.value=!0;const o=To(i);n("load",s,n=>{!0===u&&(a.value=!1,e.nextTick(()=>{if(!0===t.reverse){const e=To(i),t=Oo(i),n=e-o;Ao(i,t+n)}!0===n?h():l.value&&l.value.closest("body")&&r()}))})}function m(){s=0}function f(){!1===u&&(u=!0,i.addEventListener("scroll",r,p.passive)),d()}function h(){!0===u&&(u=!1,a.value=!1,i.removeEventListener("scroll",r,p.passive))}function g(){i&&!0===u&&i.removeEventListener("scroll",r,p.passive),i=Mo(l.value,t.scrollTarget),!0===u&&i.addEventListener("scroll",r,p.passive)}function b(e){s=e}const y=e.getCurrentInstance();function w(e){e=parseInt(e,10);const t=r;r=e<=0?d:B(d,!0===isNaN(e)?100:e),i&&!0===u&&(void 0!==t&&i.removeEventListener("scroll",t,p.passive),i.addEventListener("scroll",r,p.passive))}return Object.assign(y.proxy,{poll:()=>{void 0!==r&&r()},trigger:v,stop:h,reset:m,resume:f,setIndex:b}),e.watch(()=>t.disable,e=>{!0===e?h():f()}),e.watch(()=>t.scrollTarget,g),e.watch(()=>t.debounce,w),e.onBeforeUnmount(()=>{!0===u&&i.removeEventListener("scroll",r,p.passive)}),e.onMounted(()=>{if(w(t.debounce),g(),!0===t.reverse){const e=To(i),t=Bt(i);Ao(i,e-t)}d()}),()=>{const n=Re(o.default,[]);return!0!==t.disable&&!0===u&&n[!1===t.reverse?"push":"unshift"](e.h("div",{class:c.value},Fe(o.loading))),e.h("div",{class:"q-infinite-scroll",ref:l},n)}}}),vs=e.defineComponent({name:"QInnerLoading",props:{...at,...Co,showing:Boolean,color:String,size:{type:[String,Number],default:42},label:String,labelClass:String,labelStyle:[String,Array,Object]},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),{transition:l,transitionStyle:i}=So(t,e.computed(()=>t.showing)),r=e.computed(()=>"q-inner-loading absolute-full column flex-center"+(!0===a.value?" q-inner-loading--dark":"")),s=e.computed(()=>"q-inner-loading__label"+(void 0!==t.labelClass?` ${t.labelClass}`:""));function u(){const o=[e.h($t,{size:t.size,color:t.color})];return void 0!==t.label&&o.push(e.h("div",{class:s.value,style:t.labelStyle},[t.label])),o}function c(){return!0===t.showing?e.h("div",{class:r.value,style:i.value},void 0!==o.default?o.default():u()):null}return()=>e.h(e.Transition,{name:l.value,appear:!0},c)}});const ps={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},ms={"#":{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()}},fs=Object.keys(ms);fs.forEach(e=>{ms[e].regex=new RegExp(ms[e].pattern)});const hs=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+fs.join("")+"])|(.)","g"),gs=/[.*+?^${}()|[\]\\]/g,bs=String.fromCharCode(1),ys={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function ws(t,o,n,a){let l,i,r,s;const u=e.ref(null),c=e.ref(v());function d(){return!0===t.autogrow||["textarea","text","search","url","tel","password"].includes(t.type)}function v(){if(m(),!0===u.value){const e=y(x(t.modelValue));return!1!==t.fillMask?_(e):e}return t.modelValue}function p(e){if(e<l.length)return l.slice(-e);let t="",o=l;const n=o.indexOf(bs);if(n>-1){for(let n=e-o.length;n>0;n--)t+=bs;o=o.slice(0,n)+t+o.slice(n)}return o}function m(){if(u.value=void 0!==t.mask&&t.mask.length>0&&d(),!1===u.value)return s=void 0,l="",void(i="");const e=void 0===ps[t.mask]?t.mask:ps[t.mask],o="string"===typeof t.fillMask&&t.fillMask.length>0?t.fillMask.slice(0,1):"_",n=o.replace(gs,"\\$&"),a=[],c=[],v=[];let p=!0===t.reverseFillMask,m="",f="";e.replace(hs,(e,t,o,n,l)=>{if(void 0!==n){const e=ms[n];v.push(e),f=e.negate,!0===p&&(c.push("(?:"+f+"+)?("+e.pattern+"+)?(?:"+f+"+)?("+e.pattern+"+)?"),p=!1),c.push("(?:"+f+"+)?("+e.pattern+")?")}else if(void 0!==o)m="\\"+("\\"===o?"":o),v.push(o),a.push("([^"+m+"]+)?"+m+"?");else{const e=void 0!==t?t:l;m="\\"===e?"\\\\\\\\":e.replace(gs,"\\\\$&"),v.push(e),a.push("([^"+m+"]+)?"+m+"?")}});const h=new RegExp("^"+a.join("")+"("+(""===m?".":"[^"+m+"]")+"+)?$"),g=c.length-1,b=c.map((e,o)=>{return 0===o&&!0===t.reverseFillMask?new RegExp("^"+n+"*"+e):o===g?new RegExp("^"+e+"("+(""===f?".":f)+"+)?"+(!0===t.reverseFillMask?"$":n+"*")):new RegExp("^"+e)});r=v,s=(e=>{const t=h.exec(e);null!==t&&(e=t.slice(1).join(""));const o=[],n=b.length;for(let a=0,l=e;a<n;a++){const e=b[a].exec(l);if(null===e)break;l=l.slice(e.shift().length),o.push(...e)}return o.length>0?o.join(""):e}),l=v.map(e=>"string"===typeof e?e:bs).join(""),i=l.split(bs).join(o)}function f(o,r,s){const u=a.value,d=u.selectionEnd,v=u.value.length-d,p=x(o);!0===r&&m();const f=y(p),h=!1!==t.fillMask?_(f):f,b=c.value!==h;u.value!==h&&(u.value=h),!0===b&&(c.value=h),document.activeElement===u&&e.nextTick(()=>{if(h!==i)if("insertFromPaste"!==s||!0===t.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(s)>-1){const e=!0===t.reverseFillMask?0===d?h.length>f.length?1:0:Math.max(0,h.length-(h===i?0:Math.min(f.length,v)+1))+1:d;u.setSelectionRange(e,e,"forward")}else if(!0===t.reverseFillMask)if(!0===b){const e=Math.max(0,h.length-(h===i?0:Math.min(f.length,v+1)));1===e&&1===d?u.setSelectionRange(e,e,"forward"):g.rightReverse(u,e,e)}else{const e=h.length-v;u.setSelectionRange(e,e,"backward")}else if(!0===b){const e=Math.max(0,l.indexOf(bs),Math.min(f.length,d)-1);g.right(u,e,e)}else{const e=d-1;g.right(u,e,e)}else{const e=d-1;g.right(u,e,e)}else{const e=!0===t.reverseFillMask?i.length:0;u.setSelectionRange(e,e,"forward")}});const w=!0===t.unmaskedValue?x(h):h;t.modelValue!==w&&n(w,!0)}function h(e,t,o){const n=y(x(e.value));t=Math.max(0,l.indexOf(bs),Math.min(n.length,t)),e.setSelectionRange(t,o,"forward")}e.watch(()=>t.type+t.autogrow,m),e.watch(()=>t.mask,e=>{if(void 0!==e)f(c.value,!0);else{const e=x(c.value);m(),t.modelValue!==e&&o("update:modelValue",e)}}),e.watch(()=>t.fillMask+t.reverseFillMask,()=>{!0===u.value&&f(c.value,!0)}),e.watch(()=>t.unmaskedValue,()=>{!0===u.value&&f(c.value)});const g={left(e,t,o,n){const a=-1===l.slice(t-1).indexOf(bs);let i=Math.max(0,t-1);for(;i>=0;i--)if(l[i]===bs){t=i,!0===a&&t++;break}if(i<0&&void 0!==l[t]&&l[t]!==bs)return g.right(e,0,0);t>=0&&e.setSelectionRange(t,!0===n?o:t,"backward")},right(e,t,o,n){const a=e.value.length;let i=Math.min(a,o+1);for(;i<=a;i++){if(l[i]===bs){o=i;break}l[i-1]===bs&&(o=i)}if(i>a&&void 0!==l[o-1]&&l[o-1]!==bs)return g.left(e,a,a);e.setSelectionRange(n?t:o,o,"forward")},leftReverse(e,t,o,n){const a=p(e.value.length);let l=Math.max(0,t-1);for(;l>=0;l--){if(a[l-1]===bs){t=l;break}if(a[l]===bs&&(t=l,0===l))break}if(l<0&&void 0!==a[t]&&a[t]!==bs)return g.rightReverse(e,0,0);t>=0&&e.setSelectionRange(t,!0===n?o:t,"backward")},rightReverse(e,t,o,n){const a=e.value.length,l=p(a),i=-1===l.slice(0,o+1).indexOf(bs);let r=Math.min(a,o+1);for(;r<=a;r++)if(l[r-1]===bs){o=r,o>0&&!0===i&&o--;break}if(r>a&&void 0!==l[o-1]&&l[o-1]!==bs)return g.leftReverse(e,a,a);e.setSelectionRange(!0===n?t:o,o,"forward")}};function b(e){if(!0===U(e))return;const o=a.value,n=o.selectionStart,l=o.selectionEnd;if(37===e.keyCode||39===e.keyCode){const a=g[(39===e.keyCode?"right":"left")+(!0===t.reverseFillMask?"Reverse":"")];e.preventDefault(),a(o,n,l,e.shiftKey)}else 8===e.keyCode&&!0!==t.reverseFillMask&&n===l?g.left(o,n,l,!0):46===e.keyCode&&!0===t.reverseFillMask&&n===l&&g.rightReverse(o,n,l,!0)}function y(e){if(void 0===e||null===e||""===e)return"";if(!0===t.reverseFillMask)return w(e);const o=r;let n=0,a="";for(let t=0;t<o.length;t++){const l=e[n],i=o[t];if("string"===typeof i)a+=i,l===i&&n++;else{if(void 0===l||!i.regex.test(l))return a;a+=void 0!==i.transform?i.transform(l):l,n++}}return a}function w(e){const t=r,o=l.indexOf(bs);let n=e.length-1,a="";for(let l=t.length-1;l>=0&&n>-1;l--){const i=t[l];let r=e[n];if("string"===typeof i)a=i+a,r===i&&n--;else{if(void 0===r||!i.regex.test(r))return a;do{a=(void 0!==i.transform?i.transform(r):r)+a,n--,r=e[n]}while(o===l&&void 0!==r&&i.regex.test(r))}}return a}function x(e){return"string"!==typeof e||void 0===s?"number"===typeof e?s(""+e):e:s(e)}function _(e){return i.length-e.length<=0?e:!0===t.reverseFillMask&&e.length>0?i.slice(0,-e.length)+e:e+i.slice(e.length)}return{innerValue:c,hasMask:u,moveCursorForPaste:h,updateMaskValue:f,onMaskedKeydown:b}}const xs=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,_s=/[\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,Cs=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/;function Ss(e){return function(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.composing)return;t.target.composing=!1,e(t)}else"compositionupdate"===t.type?"string"===typeof t.data&&!1===xs.test(t.data)&&!1===_s.test(t.data)&&!1===Cs.test(t.data)&&(t.target.composing=!1):t.target.composing=!0}}var qs=e.defineComponent({name:"QInput",inheritAttrs:!1,props:{...Qr,...ys,...wn,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Ur,"paste","change"],setup(t,{emit:o,attrs:n}){const a={};let l,i,r,s,u=NaN;const c=e.ref(null),d=Cn(t),{innerValue:v,hasMask:p,moveCursorForPaste:m,updateMaskValue:f,onMaskedKeydown:h}=ws(t,o,B,c),g=ts(t,!0),b=e.computed(()=>Hr(v.value)),y=Ss(T),w=Wr(),x=e.computed(()=>"textarea"===t.type||!0===t.autogrow),_=e.computed(()=>!0===x.value||["text","search","url","tel","password"].includes(t.type)),S=e.computed(()=>{const e={...w.splitAttrs.listeners.value,onInput:T,onPaste:M,onChange:V,onBlur:z,onFocus:C};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=y,!0===p.value&&(e.onKeydown=h),!0===t.autogrow&&(e.onAnimationend=O),e}),q=e.computed(()=>{const e={tabindex:0,"data-autofocus":!0===t.autofocus||void 0,rows:"textarea"===t.type?6:void 0,"aria-label":t.label,name:d.value,...w.splitAttrs.attributes.value,id:w.targetUid.value,maxlength:t.maxlength,disabled:!0===t.disable,readonly:!0===t.readonly};return!1===x.value&&(e.type=t.type),!0===t.autogrow&&(e.rows=1),e});function k(){uo(()=>{const e=document.activeElement;null===c.value||c.value===e||null!==e&&e.id===w.targetUid.value||c.value.focus()})}function $(){null!==c.value&&c.value.select()}function M(e){if(!0===p.value&&!0!==t.reverseFillMask){const t=e.target;m(t,t.selectionStart,t.selectionEnd)}o("paste",e)}function T(n){if(!n||!n.target||!0===n.target.composing)return;if("file"===t.type)return void o("update:modelValue",n.target.files);const a=n.target.value;if(!0===p.value)f(a,!1,n.inputType);else if(B(a),!0===_.value&&n.target===document.activeElement){const{selectionStart:t,selectionEnd:o}=n.target;void 0!==t&&void 0!==o&&e.nextTick(()=>{n.target===document.activeElement&&0===a.indexOf(n.target.value)&&n.target.setSelectionRange(t,o)})}!0===t.autogrow&&O()}function B(n,c){s=(()=>{"number"!==t.type&&!0===a.hasOwnProperty("value")&&delete a.value,t.modelValue!==n&&u!==n&&(!0===c&&(i=!0),o("update:modelValue",n),e.nextTick(()=>{u===n&&(u=NaN)})),s=void 0}),"number"===t.type&&(l=!0,a.value=n),void 0!==t.debounce?(clearTimeout(r),a.value=n,r=setTimeout(s,t.debounce)):s()}function O(){const e=c.value;if(null!==e){const t=e.parentNode.style;t.marginBottom=e.scrollHeight-1+"px",e.style.height="1px",e.style.height=e.scrollHeight+"px",t.marginBottom=""}}function V(e){y(e),clearTimeout(r),void 0!==s&&s(),o("change",e.target.value)}function z(e){void 0!==e&&C(e),clearTimeout(r),void 0!==s&&s(),l=!1,i=!1,delete a.value,"file"!==t.type&&setTimeout(()=>{null!==c.value&&(c.value.value=void 0!==v.value?v.value:"")})}function L(){return!0===a.hasOwnProperty("value")?a.value:void 0!==v.value?v.value:""}e.watch(()=>t.modelValue,o=>{if(!0===p.value){if(!0===i)return void(i=!1);f(o)}else v.value!==o&&(v.value=o,"number"===t.type&&!0===a.hasOwnProperty("value")&&(!0===l?l=!1:delete a.value));!0===t.autogrow&&e.nextTick(O)}),e.watch(()=>t.autogrow,t=>{!0===t?e.nextTick(O):null!==c.value&&n.rows>0&&(c.value.style.height="auto")}),e.watch(()=>t.dense,()=>{!0===t.autogrow&&e.nextTick(O)}),e.onBeforeUnmount(()=>{z()}),e.onMounted(()=>{!0===t.autogrow&&O()}),Object.assign(w,{innerValue:v,fieldClass:e.computed(()=>`q-${!0===x.value?"textarea":"input"}`+(!0===t.autogrow?" q-textarea--autogrow":"")),hasShadow:e.computed(()=>"file"!==t.type&&"string"===typeof t.shadowText&&t.shadowText.length>0),inputRef:c,emitValue:B,hasValue:b,floatingLabel:e.computed(()=>!0===b.value||Hr(t.displayValue)),getControl:()=>{return e.h(!0===x.value?"textarea":"input",{ref:c,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...q.value,...S.value,..."file"!==t.type?{value:L()}:g.value})},getShadowControl:()=>{return e.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===x.value?"":" text-no-wrap")},[e.h("span",{class:"invisible"},L()),e.h("span",t.shadowText)])}});const E=Yr(w),P=e.getCurrentInstance();return Object.assign(P.proxy,{focus:k,select:$,getNativeElement:()=>c.value}),E}});const ks={threshold:0,root:null,rootMargin:"0px"};function $s(e,t,o){let n,a,l;"function"===typeof o?(n=o,a=ks,l=void 0===t.cfg):(n=o.handler,a=Object.assign({},ks,o.cfg),l=void 0===t.cfg||!1===Un(t.cfg,a)),t.handler!==n&&(t.handler=n),!0===l&&(t.cfg=a,void 0!==t.observer&&t.observer.unobserve(e),t.observer=new IntersectionObserver(([o])=>{if("function"===typeof t.handler){if(null===o.rootBounds&&!0===document.body.contains(e))return t.observer.unobserve(e),void t.observer.observe(e);const n=t.handler(o,t.observer);(!1===n||!0===t.once&&!0===o.isIntersecting)&&Ms(e)}},a),t.observer.observe(e))}function Ms(e){const t=e.__qvisible;void 0!==t&&(void 0!==t.observer&&t.observer.unobserve(e),delete e.__qvisible)}var Ts={name:"intersection",mounted(e,{modifiers:t,value:o}){const n={once:!0===t.once};$s(e,n,o),e.__qvisible=n},updated(e,t){const o=e.__qvisible;void 0!==o&&$s(e,o,t.value)},beforeUnmount:Ms},Bs=e.defineComponent({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(o,{slots:n,emit:a}){const l=e.ref(!0===t.value&&o.ssrPrerender),i=e.computed(()=>void 0!==o.root||void 0!==o.margin||void 0!==o.threshold?{handler:u,cfg:{root:o.root,rootMargin:o.margin,threshold:o.threshold}}:u),r=e.computed(()=>!0!==o.disable&&(!0!==t.value||!0!==o.once||!0!==o.ssrPrerender)),s=e.computed(()=>{return[[Ts,i.value,void 0,{once:o.once}]]});function u(e){l.value!==e.isIntersecting&&(l.value=e.isIntersecting,void 0!==o.onVisibility&&a("visibility",l.value))}function c(){return!0===l.value?[e.h("div",{key:"content"},Fe(n.default))]:void 0}return()=>{const t=o.transition?[e.h(e.Transition,{name:"q-transition--"+o.transition},c)]:c();return je(o.tag,{class:"q-intersection"},t,"main",r.value,()=>s.value)}}}),Os=e.defineComponent({name:"QList",props:{...at,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),l=e.computed(()=>"q-list"+(!0===t.bordered?" q-list--bordered":"")+(!0===t.dense?" q-list--dense":"")+(!0===t.separator?" q-list--separator":"")+(!0===a.value?" q-list--dark":"")+(!0===t.padding?" q-list--padding":""));return()=>e.h("div",{class:l.value},Fe(o.default))}});const Vs=[34,37,40,33,39,38],zs=Object.keys(ca);var Ls=e.defineComponent({name:"QKnob",props:{...wn,...ca,modelValue:{type:Number,required:!0},step:{type:Number,default:1,validator:e=>e>=0},tabindex:{type:[Number,String],default:0},disable:Boolean,readonly:Boolean},emits:["update:modelValue","change","drag-value"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref(t.modelValue),r=e.ref(!1);let s,u;e.watch(()=>t.modelValue,e=>{if(e<t.min)i.value=t.min;else{if(!(e>t.max))return void(e!==i.value&&(i.value=e));i.value=t.max}i.value!==t.modelValue&&(n("update:modelValue",i.value),n("change",i.value))});const c=e.computed(()=>!1===t.disable&&!1===t.readonly),d=e.computed(()=>"q-knob non-selectable"+(!0===c.value?" q-knob--editable":!0===t.disable?" disabled":"")),v=e.computed(()=>(String(t.step).trim("0").split(".")[1]||"").length),p=e.computed(()=>0===t.step?1:t.step),m=e.computed(()=>!0===t.instantFeedback||!0===r.value),f=!0===l.platform.is.mobile?e.computed(()=>!0===c.value?{onClick:C}:{}):e.computed(()=>!0===c.value?{onMousedown:_,onClick:C,onKeydown:S,onKeyup:$}:{}),h=e.computed(()=>!0===c.value?{tabindex:t.tabindex}:{[`aria-${!0===t.disable?"disabled":"readonly"}`]:"true"}),g=e.computed(()=>{const e={};return zs.forEach(o=>{e[o]=t[o]}),e});function y(e){e.isFinal?(k(e.evt,!0),r.value=!1):e.isFirst?(x(),r.value=!0,k(e.evt)):k(e.evt)}const w=e.computed(()=>{return[[ba,y,void 0,{prevent:!0,stop:!0,mouse:!0}]]});function x(){const{top:e,left:t,width:o,height:n}=u.getBoundingClientRect();s={top:e+n/2,left:t+o/2}}function _(e){x(),k(e)}function C(e){x(),k(e,!0)}function S(e){if(!Vs.includes(e.keyCode))return;q(e);const o=([34,33].includes(e.keyCode)?10:1)*p.value,n=[34,37,40].includes(e.keyCode)?-o:o;i.value=xe(parseFloat((i.value+n).toFixed(v.value)),t.min,t.max),M()}function k(e,o){const a=b(e),r=Math.abs(a.top-s.top),u=Math.sqrt(r**2+Math.abs(a.left-s.left)**2);let c=Math.asin(r/u)*(180/Math.PI);c=a.top<s.top?s.left<a.left?90-c:270+c:s.left<a.left?c+90:270-c,t.angle&&(c=_e(c-t.angle,0,360)),!0===l.lang.rtl&&(c=360-c);let d=t.min+c/360*(t.max-t.min);if(0!==p.value){const e=d%p.value;d=d-e+(Math.abs(e)>=p.value/2?(e<0?-1:1)*p.value:0),d=parseFloat(d.toFixed(v.value))}d=xe(d,t.min,t.max),n("drag-value",d),i.value!==d&&(i.value=d),M(o)}function $(e){Vs.includes(e.keyCode)&&M(!0)}function M(e){t.modelValue!==i.value&&n("update:modelValue",i.value),!0===e&&n("change",i.value)}const T=xn(t);function B(){return e.h("input",T.value)}return e.onMounted(()=>{u=a.$el}),()=>{const n={class:d.value,role:"slider","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,...h.value,...g.value,value:i.value,instantFeedback:m.value,...f.value},a={default:o.default};return!0===c.value?(void 0!==t.name&&(a.internal=B),e.withDirectives(e.h(fa,n,a),w.value)):e.h(fa,n,a)}}});const{passive:Es}=p,Ps=["both","horizontal","vertical"];var As=e.defineComponent({name:"QScrollObserver",props:{axis:{type:String,validator:e=>Ps.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(t,{emit:o}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let a,l,i=null;function r(){i=null;const e=Math.max(0,Oo(a)),l=Vo(a),r={top:e-n.position.top,left:l-n.position.left};if("vertical"===t.axis&&0===r.top||"horizontal"===t.axis&&0===r.left)return;const s=Math.abs(r.top)>=Math.abs(r.left)?r.top<0?"up":"down":r.left<0?"left":"right";n.position={top:e,left:l},n.directionChanged=n.direction!==s,n.delta=r,!0===n.directionChanged&&(n.direction=s,n.inflectionPoint=n.position),o("scroll",{...n})}function s(){a=Mo(l,t.scrollTarget),a.addEventListener("scroll",c,Es),c(!0)}function u(){void 0!==a&&(a.removeEventListener("scroll",c,Es),a=void 0)}function c(e){!0===e||0===t.debounce||"0"===t.debounce?r():null===i&&(i=t.debounce?setTimeout(r,t.debounce):requestAnimationFrame(r))}e.watch(()=>t.scrollTarget,()=>{u(),s()});const d=e.getCurrentInstance();return e.onMounted(()=>{l=d.proxy.$el.parentNode,s()}),e.onBeforeUnmount(()=>{clearTimeout(i),cancelAnimationFrame(i),u()}),Object.assign(d.proxy,{trigger:c,getPosition:()=>n}),m}}),Fs=e.defineComponent({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(o,{slots:n,emit:a}){const{proxy:{$q:l}}=e.getCurrentInstance(),i=e.ref(null),r=e.ref(l.screen.height),s=e.ref(!0===o.container?0:l.screen.width),u=e.ref({position:0,direction:"down",inflectionPoint:0}),c=e.ref(0),d=e.ref(!0===t.value?0:Io()),v=e.computed(()=>"q-layout q-layout--"+(!0===o.container?"containerized":"standard")),p=e.computed(()=>!1===o.container?{minHeight:l.screen.height+"px"}:null),m=e.computed(()=>0!==d.value?{[!0===l.lang.rtl?"left":"right"]:`${d.value}px`}:null),f=e.computed(()=>0!==d.value?{[!0===l.lang.rtl?"right":"left"]:0,[!0===l.lang.rtl?"left":"right"]:`-${d.value}px`,width:`calc(100% + ${d.value}px)`}:null);function h(e){if(!0===o.container||!0!==document.qScrollPrevented){const t={position:e.position.top,direction:e.direction,directionChanged:e.directionChanged,inflectionPoint:e.inflectionPoint.top,delta:e.delta.top};u.value=t,void 0!==o.onScroll&&a("scroll",t)}}function g(e){const{height:t,width:n}=e;let l=!1;r.value!==t&&(l=!0,r.value=t,void 0!==o.onScrollHeight&&a("scroll-height",t),y()),s.value!==n&&(l=!0,s.value=n),!0===l&&void 0!==o.onResize&&a("resize",e)}function b({height:e}){c.value!==e&&(c.value=e,y())}function y(){if(!0===o.container){const e=r.value>c.value?Io():0;d.value!==e&&(d.value=e)}}let w;const x={instances:{},view:e.computed(()=>o.view),isContainer:e.computed(()=>o.container),rootRef:i,height:r,containerHeight:c,scrollbarWidth:d,totalWidth:e.computed(()=>s.value+d.value),rows:e.computed(()=>{const e=o.view.toLowerCase().split(" ");return{top:e[0].split(""),middle:e[1].split(""),bottom:e[2].split("")}}),header:e.reactive({size:0,offset:0,space:!1}),right:e.reactive({size:300,offset:0,space:!1}),footer:e.reactive({size:0,offset:0,space:!1}),left:e.reactive({size:300,offset:0,space:!1}),scroll:u,animate(){void 0!==w?clearTimeout(w):document.body.classList.add("q-body--layout-animate"),w=setTimeout(()=>{document.body.classList.remove("q-body--layout-animate"),w=void 0},155)},update(e,t,o){x[e][t]=o}};return e.provide(ae,x),()=>{const t=Ie(n.default,[e.h(As,{onScroll:h}),e.h(Ta,{onResize:g})]),a=e.h("div",{class:v.value,style:p.value,ref:!0===o.container?void 0:i},t);return!0===o.container?e.h("div",{class:"q-layout-container overflow-hidden",ref:i},[e.h(Ta,{onResize:b}),e.h("div",{class:"absolute-full",style:m.value},[e.h("div",{class:"scroll",style:f.value},[a])])]):a}}});const Rs=["horizontal","vertical","cell","none"];var Is=e.defineComponent({name:"QMarkupTable",props:{...at,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>Rs.includes(e)}},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),l=e.computed(()=>"q-markup-table q-table__container q-table__card"+` q-table--${t.separator}-separator`+(!0===a.value?" q-table--dark q-table__card--dark q-dark":"")+(!0===t.dense?" q-table--dense":"")+(!0===t.flat?" q-table--flat":"")+(!0===t.bordered?" q-table--bordered":"")+(!0===t.square?" q-table--square":"")+(!1===t.wrapCells?" q-table--no-wrap":""));return()=>e.h("div",{class:l.value},[e.h("table",{class:"q-table"},Fe(o.default))])}}),Ns=e.defineComponent({name:"QNoSsr",props:{tag:{type:String,default:"div"},placeholder:String},setup(t,{slots:o}){const n=ka();return()=>{const a={};if(!0===n.value){const n=Fe(o.default);return void 0===n?n:n.length>1?e.h(t.tag,a,n):n[0]}a.class="q-no-ssr-placeholder";const l=Fe(o.placeholder);return void 0!==l?l.length>1?e.h(t.tag,a,l):l[0]:void 0!==t.placeholder?e.h(t.tag,a,t.placeholder):void 0}}});const js=e.h("svg",{class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24","aria-hidden":"true"},[e.h("path",{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}),e.h("path",{class:"q-radio__check",d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"})]);var Ds=e.defineComponent({name:"QRadio",props:{...at,...Pe,...wn,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),l=lt(t,a.$q),i=Ae(t,oa),r=e.ref(null),{refocusTargetEl:s,refocusTarget:u}=ta(t,r),c=e.computed(()=>t.modelValue===t.val),d=e.computed(()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(!0===t.disable?" disabled":"")+(!0===l.value?" q-radio--dark":"")+(!0===t.dense?" q-radio--dense":"")+(!0===t.leftLabel?" reverse":"")),v=e.computed(()=>{const e=void 0===t.color||!0!==t.keepColor&&!0!==c.value?"":` text-${t.color}`;return"q-radio__inner relative-position "+`q-radio__inner--${!0===c.value?"truthy":"falsy"}${e}`}),p=e.computed(()=>!0===t.disable?-1:t.tabindex||0),m=e.computed(()=>{const e={type:"radio"};return void 0!==t.name&&Object.assign(e,{name:t.name,value:t.val}),e}),f=e.computed(()=>void 0!==t.name&&!0===c.value?{checked:!0}:{}),h=_n(m,f);function g(e){void 0!==e&&(q(e),u(e)),!0!==t.disable&&!0!==c.value&&n("update:modelValue",t.val,e)}function b(e){13!==e.keyCode&&32!==e.keyCode||q(e)}function y(e){13!==e.keyCode&&32!==e.keyCode||g(e)}return Object.assign(a,{set:g}),()=>{const n=[js];!0!==t.disable&&h(n,"unshift"," q-radio__native q-ma-none q-pa-none");const a=[e.h("div",{class:v.value,style:i.value},n)];null!==s.value&&a.push(s.value);const l=void 0!==t.label?Ie(o.default,[t.label]):Fe(o.default);return void 0!==l&&a.push(e.h("div",{class:"q-radio__label q-anchor--skip"},l)),e.h("div",{ref:r,class:d.value,tabindex:p.value,role:"radio","aria-label":t.label,"aria-checked":!0===c.value?"true":"false","aria-disabled":!0===t.disable?"true":void 0,onClick:g,onKeydown:b,onKeyup:y},a)}}}),Hs=e.defineComponent({name:"QToggle",props:{...na,icon:String,checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,iconColor:String},emits:aa,setup(t){function o(o,n){const a=e.computed(()=>(!0===o.value?t.checkedIcon:!0===n.value?t.indeterminateIcon:t.uncheckedIcon)||t.icon),l=e.computed(()=>{if(!0===o.value)return t.iconColor});return()=>[e.h("div",{class:"q-toggle__track"}),e.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},void 0!==a.value?[e.h(et,{name:a.value,color:l.value})]:void 0)]}return la("toggle",o)}});const Qs={radio:Ds,checkbox:ra,toggle:Hs},Us=Object.keys(Qs);var Ws=e.defineComponent({name:"QOptionGroup",props:{...at,modelValue:{required:!0},options:{type:Array,validator:e=>e.every(e=>"value"in e&&"label"in e)},name:String,type:{default:"radio",validator:e=>Us.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:["update:modelValue"],setup(t,{emit:o,slots:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=Array.isArray(t.modelValue);"radio"===t.type?!0===l&&console.error("q-option-group: model should not be array"):!1===l&&console.error("q-option-group: model should be array in your case");const i=lt(t,a),r=e.computed(()=>Qs[t.type]),s=e.computed(()=>"q-option-group q-gutter-x-sm"+(!0===t.inline?" q-option-group--inline":"")),u=e.computed(()=>{const e={};return"radio"===t.type&&(e.role="radiogroup",!0===t.disable&&(e["aria-disabled"]="true")),e});function c(e){o("update:modelValue",e)}return()=>e.h("div",{class:s.value,...u.value},t.options.map((o,a)=>{const l=void 0!==n["label-"+a]?()=>n["label-"+a](o):void 0!==n.label?()=>n.label(o):void 0;return e.h("div",[e.h(r.value,{modelValue:t.modelValue,val:o.value,name:void 0===o.name?t.name:o.name,disable:t.disable||o.disable,label:void 0===l?o.label:null,leftLabel:void 0===o.leftLabel?t.leftLabel:o.leftLabel,color:void 0===o.color?t.color:o.color,checkedIcon:o.checkedIcon,uncheckedIcon:o.uncheckedIcon,dark:o.dark||i.value,size:void 0===o.size?t.size:o.size,dense:t.dense,keepColor:void 0===o.keepColor?t.keepColor:o.keepColor,"onUpdate:modelValue":c},l)])}))}}),Ys=e.defineComponent({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.inject(ae);e.inject(le,()=>{console.error("QPage needs to be child of QPageContainer")});const l=e.computed(()=>{const e=(!0===a.header.space?a.header.size:0)+(!0===a.footer.space?a.footer.size:0);if("function"===typeof t.styleFn){const o=!0===a.isContainer.value?a.containerHeight.value:n.screen.height;return t.styleFn(e,o)}return{minHeight:!0===a.isContainer.value?a.containerHeight.value-e+"px":0===n.screen.height?0!==e?`calc(100vh - ${e}px)`:"100vh":n.screen.height-e+"px"}}),i=e.computed(()=>`q-page ${!0===t.padding?" q-layout-padding":""}`);return()=>e.h("main",{class:i.value,style:l.value},Fe(o.default))}}),Ks=e.defineComponent({name:"QPageContainer",setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.inject(ae,()=>{console.error("QPageContainer needs to be child of QLayout")});e.provide(le,!0);const l=e.computed(()=>{const e={};return!0===a.header.space&&(e.paddingTop=`${a.header.size}px`),!0===a.right.space&&(e[`padding${!0===n.lang.rtl?"Left":"Right"}`]=`${a.right.size}px`),!0===a.footer.space&&(e.paddingBottom=`${a.footer.size}px`),!0===a.left.space&&(e[`padding${!0===n.lang.rtl?"Right":"Left"}`]=`${a.left.size}px`),e});return()=>e.h("div",{class:"q-page-container",style:l.value},Fe(o.default))}});const Xs={position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,validator:e=>2===e.length},expand:Boolean};function Zs(){const{props:t,proxy:o}=e.getCurrentInstance(),{$q:n}=o,a=e.inject(ae,()=>{console.error("QPageSticky needs to be child of QLayout")}),l=e.computed(()=>{const e=t.position;return{top:e.indexOf("top")>-1,right:e.indexOf("right")>-1,bottom:e.indexOf("bottom")>-1,left:e.indexOf("left")>-1,vertical:"top"===e||"bottom"===e,horizontal:"left"===e||"right"===e}}),i=e.computed(()=>a.header.offset),r=e.computed(()=>a.right.offset),s=e.computed(()=>a.footer.offset),u=e.computed(()=>a.left.offset),c=e.computed(()=>{let e=0,o=0;const a=l.value,c=!0===n.lang.rtl?-1:1;!0===a.top&&0!==i.value?o=`${i.value}px`:!0===a.bottom&&0!==s.value&&(o=`${-s.value}px`),!0===a.left&&0!==u.value?e=`${c*u.value}px`:!0===a.right&&0!==r.value&&(e=`${-c*r.value}px`);const d={transform:`translate(${e}, ${o})`};return t.offset&&(d.margin=`${t.offset[1]}px ${t.offset[0]}px`),!0===a.vertical?(0!==u.value&&(d[!0===n.lang.rtl?"right":"left"]=`${u.value}px`),0!==r.value&&(d[!0===n.lang.rtl?"left":"right"]=`${r.value}px`)):!0===a.horizontal&&(0!==i.value&&(d.top=`${i.value}px`),0!==s.value&&(d.bottom=`${s.value}px`)),d}),d=e.computed(()=>`q-page-sticky row flex-center fixed-${t.position}`+` q-page-sticky--${!0===t.expand?"expand":"shrink"}`);function v(o){const n=Fe(o.default);return e.h("div",{class:d.value,style:c.value},!0===t.expand?n:[e.h("div",n)])}return{$layout:a,getStickyContent:v}}var Gs=e.defineComponent({name:"QPageScroller",props:{...Xs,scrollOffset:{type:Number,default:1e3},reverse:Boolean,duration:{type:Number,default:300},offset:{default:()=>[18,18]}},emits:["click"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),{$layout:l,getStickyContent:i}=Zs(),r=e.ref(null);let s;const u=e.computed(()=>l.height.value-(!0===l.isContainer.value?l.containerHeight.value:a.screen.height));function c(){return!0===t.reverse?u.value-l.scroll.value.position>t.scrollOffset:l.scroll.value.position>t.scrollOffset}const d=e.ref(c());function v(){const e=c();d.value!==e&&(d.value=e)}function p(){!0===t.reverse?void 0===s&&(s=e.watch(u,v)):m()}function m(){void 0!==s&&(s(),s=void 0)}function f(e){const o=Mo(!0===l.isContainer.value?r.value:l.rootRef.value);Ao(o,!0===t.reverse?l.height.value:0,t.duration),n("click",e)}function h(){return!0===d.value?e.h("div",{ref:r,class:"q-page-scroller",onClick:f},i(o)):null}return e.watch(l.scroll,v),e.watch(()=>t.reverse,p),p(),e.onBeforeUnmount(m),()=>e.h(e.Transition,{name:"q-transition--fade"},h)}}),Js=e.defineComponent({name:"QPageSticky",props:Xs,setup(e,{slots:t}){const{getStickyContent:o}=Zs();return()=>o(t)}}),eu=e.defineComponent({name:"QPagination",props:{...at,modelValue:{type:Number,required:!0},min:{type:Number,default:1},max:{type:Number,required:!0},color:{type:String,default:"primary"},textColor:String,activeColor:String,activeTextColor:String,inputStyle:[Array,String,Object],inputClass:[Array,String,Object],size:String,disable:Boolean,input:Boolean,iconPrev:String,iconNext:String,iconFirst:String,iconLast:String,toFn:Function,boundaryLinks:{type:Boolean,default:null},boundaryNumbers:{type:Boolean,default:null},directionLinks:{type:Boolean,default:null},ellipses:{type:Boolean,default:null},maxPages:{type:Number,default:0,validator:e=>e>=0},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,dense:Boolean,padding:{type:String,default:"3px 2px"}},emits:["update:modelValue"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),{$q:a}=n,l=lt(t,a),i=e.ref(null),r=e.computed({get:()=>t.modelValue,set:e=>{if(e=parseInt(e,10),t.disable||isNaN(e))return;const n=xe(e,t.min,t.max);t.modelValue!==n&&o("update:modelValue",n)}});function s(e,t){return[!0,!1].includes(e)?e:t}e.watch(()=>t.min+t.max,()=>{r.value=t.modelValue});const u=e.computed(()=>"q-pagination row no-wrap items-center"+(!0===t.disable?" disabled":"")),c=e.computed(()=>r.value+" / "+t.max),d=e.computed(()=>s(t.boundaryLinks,t.input)),v=e.computed(()=>s(t.boundaryNumbers,!t.input)),p=e.computed(()=>s(t.directionLinks,t.input)),m=e.computed(()=>s(t.ellipses,!t.input)),f=e.computed(()=>{const e=[t.iconFirst||a.iconSet.pagination.first,t.iconPrev||a.iconSet.pagination.prev,t.iconNext||a.iconSet.pagination.next,t.iconLast||a.iconSet.pagination.last];return!0===a.lang.rtl?e.reverse():e}),h=e.computed(()=>!0===t.disable?{"aria-disabled":"true"}:{}),g=e.computed(()=>({round:t.round,rounded:t.rounded,outline:t.outline,unelevated:t.unelevated,push:t.push,glossy:t.glossy,dense:t.dense,padding:t.padding,color:t.color,flat:!0,size:t.size,ripple:null===t.ripple||t.ripple})),b=e.computed(()=>({flat:t.flat,color:t.activeColor||t.color,textColor:t.activeTextColor||t.textColor}));function y(e){r.value=e}function w(e){r.value=r.value+e}function x(){r.value=i.value,i.value=null}function _(o,n){const a={...g.value,...o};return void 0!==n&&(void 0!==t.toFn?a.to=t.toFn(n):a.onClick=(()=>y(n))),e.h(Xt,a)}return Object.assign(n,{set:y,setByOffset:w}),()=>{const o=[],n=[],a=[];if(d.value&&(o.push(_({key:"bls",disable:t.disable||t.modelValue<=t.min,icon:f.value[0]},t.min)),n.unshift(_({key:"ble",disable:t.disable||t.modelValue>=t.max,icon:f.value[3]},t.max))),p.value&&(o.push(_({key:"bdp",disable:t.disable||t.modelValue<=t.min,icon:f.value[1]},t.modelValue-1)),n.unshift(_({key:"bdn",disable:t.disable||t.modelValue>=t.max,icon:f.value[2]},t.modelValue+1))),!0===t.input)a.push(e.h(qs,{class:"inline",style:{width:`${c.value.length/1.5}em`},type:"number",dense:!0,value:i.value,disable:t.disable,dark:l.value,borderless:!0,inputClass:t.inputClass,inputStyle:t.inputStyle,placeholder:c.value,min:t.min,max:t.max,"onUpdate:modelValue"(e){i.value=e},onKeyup(e){!0===W(e,13)&&x()},onBlur:x}));else{let e=Math.max(t.maxPages,1+(m.value?2:0)+(v.value?2:0)),l=t.min,i=t.max,r=!1,s=!1,u=!1,c=!1;t.maxPages&&e<t.max-t.min+1&&(e=1+2*Math.floor(e/2),l=Math.max(t.min,Math.min(t.max-e+1,t.modelValue-Math.floor(e/2))),i=Math.min(t.max,l+e-1),v.value&&(u=!0,l+=1),m.value&&l>t.min+(v.value?1:0)&&(r=!0,l+=1),v.value&&(c=!0,i-=1),m.value&&i<t.max-(v.value?1:0)&&(s=!0,i-=1));const d={minWidth:`${Math.max(2,String(t.max).length)}em`};if(u){const e=t.min===t.modelValue;o.push(_({key:"bns",style:d,disable:t.disable,flat:!e,textColor:e?t.textColor:void 0,label:t.min},t.min))}if(c){const e=t.max===t.modelValue;n.unshift(_({key:"bne",style:d,disable:t.disable,flat:!e,textColor:e?t.textColor:void 0,label:t.max},t.max))}r&&o.push(_({key:"bes",style:d,disable:t.disable,label:"…",ripple:!1},l-1)),s&&n.unshift(_({key:"bee",style:d,disable:t.disable,label:"…",ripple:!1},i+1));for(let o=l;o<=i;o++){const e={key:`bpg${o}`,style:d,disable:t.disable,label:o};o===t.modelValue&&Object.assign(e,b.value),a.push(_(e,o))}}return e.h("div",{class:u.value,...h.value},[o,e.h("div",{class:"row justify-center"},[a]),n])}}});function tu(e){let t,o,n=!1;function a(){o=arguments,!0!==n&&(n=!0,t=requestAnimationFrame(()=>{e.apply(this,o),o=void 0,n=!1}))}return a.cancel=(()=>{window.cancelAnimationFrame(t),n=!1}),a}const{passive:ou}=p;var nu=e.defineComponent({name:"QParallax",props:{src:String,height:{type:Number,default:500},speed:{type:Number,default:1,validator:e=>e>=0&&e<=1},scrollTarget:{default:void 0},onScroll:Function},setup(t,{slots:o,emit:n}){const a=e.ref(0),l=e.ref(null),i=e.ref(null),r=e.ref(null);let s,u,c,d,v,p;e.watch(()=>t.height,()=>{!0===s&&f()}),e.watch(()=>t.scrollTarget,()=>{!0===s&&(y(),b())});let m=e=>{a.value=e,void 0!==t.onScroll&&n("scroll",e)};function f(){let e,o,n;p===window?(e=0,o=window.innerHeight,n=o):(e=Mt(p).top,o=Bt(p),n=e+o);const a=Mt(l.value).top,i=a+t.height;if(void 0!==v||i>e&&a<n){const e=(n-a)/(t.height+o);h((c-t.height)*e*t.speed),m(e)}}let h=e=>{u.style.transform=`translate3d(-50%,${Math.round(e)}px,0)`};function g(){c=u.naturalHeight||u.videoHeight||Bt(u),!0===s&&f()}function b(){s=!0,p=Mo(l.value,t.scrollTarget),p.addEventListener("scroll",f,ou),window.addEventListener("resize",d,ou),f()}function y(){!0===s&&(s=!1,p.removeEventListener("scroll",f,ou),window.removeEventListener("resize",d,ou),p=void 0)}return e.onMounted(()=>{h=tu(h),m=tu(m),d=tu(g),u=void 0!==o.media?i.value.children[0]:r.value,u.onload=u.onloadstart=u.loadedmetadata=g,g(),u.style.display="initial",void 0!==window.IntersectionObserver?(v=new IntersectionObserver(e=>{const t=!0===e[0].isIntersecting?b:y;t()}),v.observe(l.value)):b()}),e.onBeforeUnmount(()=>{y(),void 0!==v&&v.disconnect(),u.onload=u.onloadstart=u.loadedmetadata=null}),()=>{return e.h("div",{ref:l,class:"q-parallax",style:{height:`${t.height}px`}},[e.h("div",{ref:i,class:"q-parallax__media absolute-full"},void 0!==o.media?o.media():[e.h("img",{ref:r,src:t.src})]),e.h("div",{class:"q-parallax__content absolute-full column flex-center"},void 0!==o.content?o.content({percentScrolled:a.value}):Fe(o.default))])}}});function au(e){const t=JSON.stringify(e);if(t)return JSON.parse(t)}var lu=e.defineComponent({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","before-show","show","before-hide","hide"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref(null),r=e.ref(""),s=e.ref("");let u=!1;const c=e.computed(()=>{const e={initialValue:r.value,validate:t.validate,set:d,cancel:v,updatePosition:p};return Object.defineProperty(e,"value",{get:()=>s.value,set:e=>{s.value=e}}),e});function d(){!1!==t.validate(s.value)&&(!0===m()&&(n("save",s.value,r.value),n("update:modelValue",s.value)),f())}function v(){!0===m()&&n("cancel",s.value,r.value),f()}function p(){e.nextTick(()=>{i.value.updatePosition()})}function m(){return!1===Un(s.value,r.value)}function f(){u=!0,i.value.hide()}function h(){u=!1,r.value=au(t.modelValue),s.value=au(t.modelValue),n("before-show")}function g(){n("show")}function b(){!1===u&&!0===m()&&(!0===t.autoSave&&!0===t.validate(s.value)?(n("save",s.value,r.value),n("update:modelValue",s.value)):n("cancel",s.value,r.value)),n("before-hide")}function y(){n("hide")}function w(){const n=void 0!==o.default?[].concat(o.default(c.value)):[];return t.title&&n.unshift(e.h("div",{class:"q-dialog__title q-mt-sm q-mb-sm"},t.title)),!0===t.buttons&&n.push(e.h("div",{class:"q-popup-edit__buttons row justify-center no-wrap"},[e.h(Xt,{flat:!0,color:t.color,label:t.labelCancel||l.lang.label.cancel,onClick:v}),e.h(Xt,{flat:!0,color:t.color,label:t.labelSet||l.lang.label.set,onClick:d})])),n}return Object.assign(a,{set:d,cancel:v,show(e){null!==i.value&&i.value.show(e)},hide(e){null!==i.value&&i.value.hide(e)},updatePosition:p}),()=>{if(!0!==t.disable)return e.h(bn,{ref:i,class:"q-popup-edit",cover:t.cover,onBeforeShow:h,onShow:g,onBeforeHide:b,onHide:y,onEscapeKey:v},w)}}}),iu=e.defineComponent({name:"QPopupProxy",props:{...Jt,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(t,{slots:o,emit:n,attrs:a}){const{proxy:l}=e.getCurrentInstance(),{$q:i}=l,r=e.ref(!1),s=e.ref(null),u=e.computed(()=>parseInt(t.breakpoint,10)),{canShow:c}=eo({showing:r});function d(){return i.screen.width<u.value||i.screen.height<u.value?"dialog":"menu"}const v=e.ref(d());function p(e){r.value=!0,n("show",e)}function m(e){r.value=!1,v.value=d(),n("hide",e)}return e.watch(()=>d(),e=>{!0!==r.value&&(v.value=e)}),Object.assign(l,{show(e){!0===c(e)&&s.value.show(e)},hide(e){s.value.hide(e)},toggle(e){s.value.toggle(e)}}),()=>{const n=Fe(o.default),l="menu"===v.value&&void 0!==n&&void 0!==n[0]&&void 0!==n[0].type&&["QDate","QTime","QCarousel","QColor"].includes(n[0].type.name)?{cover:!0,maxHeight:"99vh"}:{},i={ref:s,...l,...a,onShow:p,onHide:m};let r;return"dialog"===v.value?r=Di:(r=bn,Object.assign(i,{target:t.target,contextMenu:t.contextMenu,noParentEvent:!0,separateClosePopup:!0})),e.h(r,i,()=>n)}}});const ru={xs:2,sm:4,md:6,lg:10,xl:14};function su(e,t,o){return{transform:!0===t?`translateX(${!0===o.lang.rtl?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var uu=e.defineComponent({name:"QLinearProgress",props:{...at,...Pe,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,instantFeedback:Boolean},setup(t,{slots:o}){const{proxy:n}=e.getCurrentInstance(),a=lt(t,n.$q),l=Ae(t,ru),i=e.computed(()=>!0===t.indeterminate||!0===t.query),r=e.computed(()=>"q-linear-progress"+(void 0!==t.color?` text-${t.color}`:"")+(!0===t.reverse||!0===t.query?" q-linear-progress--reverse":"")+(!0===t.rounded?" rounded-borders":"")),s=e.computed(()=>su(void 0!==t.buffer?t.buffer:1,t.reverse,n.$q)),u=e.computed(()=>"q-linear-progress__track absolute-full"+` q-linear-progress__track--with${!0===t.instantFeedback?"out":""}-transition`+` q-linear-progress__track--${!0===a.value?"dark":"light"}`+(void 0!==t.trackColor?` bg-${t.trackColor}`:"")),c=e.computed(()=>su(!0===i.value?1:t.value,t.reverse,n.$q)),d=e.computed(()=>"q-linear-progress__model absolute-full"+` q-linear-progress__model--with${!0===t.instantFeedback?"out":""}-transition`+` q-linear-progress__model--${!0===i.value?"in":""}determinate`),v=e.computed(()=>({width:`${100*t.value}%`})),p=e.computed(()=>`q-linear-progress__stripe absolute-${!0===t.reverse?"right":"left"}`);return()=>{const n=[e.h("div",{class:u.value,style:s.value}),e.h("div",{class:d.value,style:c.value})];return!0===t.stripe&&!1===i.value&&n.push(e.h("div",{class:p.value,style:v.value})),e.h("div",{class:r.value,style:l.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===t.indeterminate?void 0:t.value},Ie(o.default,n))}}});const cu=40,du=20;var vu=e.defineComponent({name:"QPullToRefresh",props:{color:String,bgColor:String,icon:String,noMouse:Boolean,disable:Boolean,scrollTarget:{default:void 0}},emits:["refresh"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref("pull"),r=e.ref(0),s=e.ref(!1),u=e.ref(-cu),c=e.ref(!1),d=e.ref({}),v=e.computed(()=>({opacity:r.value,transform:`translateY(${u.value}px) rotate(${360*r.value}deg)`})),p=e.computed(()=>"q-pull-to-refresh__puller row flex-center"+(!0===c.value?" q-pull-to-refresh__puller--animating":"")+(void 0!==t.bgColor?` bg-${t.bgColor}`:""));function m(e){if(!0===e.isFinal)return void(!0===s.value&&(s.value=!1,"pulled"===i.value?(i.value="refreshing",b({pos:du}),g()):"pull"===i.value&&b({pos:-cu,ratio:0})));if(!0===c.value||"refreshing"===i.value)return!1;if(!0===e.isFirst){if(0!==Oo(w)||"down"!==e.direction)return!0===s.value&&(s.value=!1,i.value="pull",b({pos:-cu,ratio:0})),!1;s.value=!0;const{top:t,left:o}=y.getBoundingClientRect();d.value={top:t+"px",left:o+"px",width:window.getComputedStyle(y).getPropertyValue("width")}}S(e.evt);const t=Math.min(140,Math.max(0,e.distance.y));u.value=t-cu,r.value=xe(t/(du+cu),0,1);const o=u.value>du?"pulled":"pull";i.value!==o&&(i.value=o)}const f=e.computed(()=>{const e={down:!0,mightPrevent:!0};return!0!==t.noMouse&&(e.mouse=!0),[[ba,m,void 0,e]]}),h=e.computed(()=>`q-pull-to-refresh__content${!0===s.value?" no-pointer-events":""}`);function g(){n("refresh",()=>{b({pos:-cu,ratio:0},()=>{i.value="pull"})})}function b({pos:e,ratio:t},o){c.value=!0,u.value=e,void 0!==t&&(r.value=t),clearTimeout(x),x=setTimeout(()=>{c.value=!1,o&&o()},300)}let y,w,x;function _(){w=Mo(y,t.scrollTarget)}return Object.assign(a,{trigger:g,updateScrollTarget:_}),e.watch(()=>t.scrollTarget,_),e.onMounted(()=>{y=a.$el,_()}),e.onBeforeUnmount(()=>{clearTimeout(x)}),()=>{const n=[e.h("div",{class:h.value},Fe(o.default)),e.h("div",{class:"q-pull-to-refresh__puller-container fixed row flex-center no-pointer-events z-top",style:d.value},[e.h("div",{class:p.value,style:v.value},["refreshing"!==i.value?e.h(et,{name:t.icon||l.iconSet.pullToRefresh.icon,color:t.color,size:"32px"}):e.h($t,{size:"24px",color:t.color})])])];return je("div",{class:"q-pull-to-refresh"},n,"main",!1===t.disable,()=>f.value)}}});const pu={MIN:0,RANGE:1,MAX:2};var mu=e.defineComponent({name:"QRange",props:{...wn,..._a,modelValue:{type:Object,default:()=>({min:null,max:null}),validator(e){return"min"in e&&"max"in e}},name:String,dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelTextColor:String,rightLabelColor:String,rightLabelTextColor:String,leftLabelValue:[String,Number],rightLabelValue:[String,Number]},emits:Ca,setup(t,{emit:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.computed(()=>{return{type:"hidden",name:t.name,value:`${t.modelValue.min}|${t.modelValue.max}`}}),l=_n(a),i=e.ref(null),r=e.ref({min:null===t.modelValue.min?t.min:t.modelValue.min,max:null===t.modelValue.max?t.max:t.modelValue.max}),s=e.ref(null),u=e.ref(0),c=e.ref(0),{state:d,methods:v}=Sa({updateValue:x,updatePosition:C,getDragging:_}),p=e.computed(()=>0===d.minMaxDiff.value?0:(r.value.min-t.min)/d.minMaxDiff.value),m=e.computed(()=>!0===d.active.value?u.value:p.value),f=e.computed(()=>0===d.minMaxDiff.value?0:(r.value.max-t.min)/d.minMaxDiff.value),h=e.computed(()=>!0===d.active.value?c.value:f.value),g=e.computed(()=>({[d.positionProp.value]:`${100*m.value}%`,[d.sizeProp.value]:`${100*(h.value-m.value)}%`})),b=e.computed(()=>{if(!0!==d.editable.value)return{};if(!0===n.platform.is.mobile)return{onClick:v.onMobileClick};const e={onMousedown:v.onActivate};return!0===t.dragOnlyRange&&Object.assign(e,{onFocus:()=>{S("both")},onBlur:v.onBlur,onKeydown:k,onKeyup:v.onKeyup}),e}),y={domRef:e.ref(null),events:e.computed(()=>!0===d.editable.value&&!0!==n.platform.is.mobile&&!0!==t.dragOnlyRange?{onFocus:()=>{S("min")},onBlur:v.onBlur,onKeydown:k,onKeyup:v.onKeyup}:{}),thumbStyle:e.computed(()=>({[d.positionProp.value]:`${100*m.value}%`,"z-index":"min"===s.value?2:void 0})),thumbClass:e.computed(()=>!1===d.preventFocus.value&&"min"===d.focus.value?" q-slider--focus":""),pinClass:e.computed(()=>{const e=t.leftLabelColor||t.labelColor;return e?` text-${e}`:""}),pinTextClass:e.computed(()=>{const e=t.leftLabelTextColor||t.labelTextColor;return e?` text-${e}`:""}),pinStyle:e.computed(()=>{const e=!0===t.reverse?-m.value:m.value-1;return v.getPinStyle(e,m.value)}),label:e.computed(()=>void 0!==t.leftLabelValue?t.leftLabelValue:r.value.min)},w={domRef:e.ref(null),events:e.computed(()=>!0===d.editable.value&&!0!==n.platform.is.mobile&&!0!==t.dragOnlyRange?{onFocus:()=>{S("max")},onBlur:v.onBlur,onKeydown:k,onKeyup:v.onKeyup}:{}),thumbStyle:e.computed(()=>({[d.positionProp.value]:`${100*h.value}%`})),thumbClass:e.computed(()=>!1===d.preventFocus.value&&"max"===d.focus.value?" q-slider--focus":""),pinClass:e.computed(()=>{const e=t.rightLabelColor||t.labelColor;return e?` text-${e}`:""}),pinTextClass:e.computed(()=>{const e=t.rightLabelTextColor||t.labelTextColor;return e?` text-${e}`:""}),pinStyle:e.computed(()=>{const e=!0===t.reverse?-h.value:h.value-1;return v.getPinStyle(e,h.value)}),label:e.computed(()=>void 0!==t.rightLabelValue?t.rightLabelValue:r.value.max)};function x(e){r.value.min===t.modelValue.min&&r.value.max===t.modelValue.max||o("update:modelValue",{...r.value}),!0===e&&o("change",{...r.value})}function _(e){const{left:o,top:n,width:a,height:l}=i.value.getBoundingClientRect(),u=!0===t.dragOnlyRange?0:!0===t.vertical?y.domRef.value.offsetHeight/(2*l):y.domRef.value.offsetWidth/(2*a),c={left:o,top:n,width:a,height:l,valueMin:r.value.min,valueMax:r.value.max,ratioMin:p.value,ratioMax:f.value},v=wa(e,c,d.isReversed.value,t.vertical);let m;return!0!==t.dragOnlyRange&&v<c.ratioMin+u?m=pu.MIN:!0===t.dragOnlyRange||v<c.ratioMax-u?!0===t.dragRange||!0===t.dragOnlyRange?(m=pu.RANGE,Object.assign(c,{offsetRatio:v,offsetModel:xa(v,t.min,t.max,t.step,d.decimals.value),rangeValue:c.valueMax-c.valueMin,rangeRatio:c.ratioMax-c.ratioMin})):m=c.ratioMax-v<v-c.ratioMin?pu.MAX:pu.MIN:m=pu.MAX,c.type=m,s.value=null,c}function C(e,o=d.dragging.value){const n=wa(e,o,d.isReversed.value,t.vertical),a=xa(n,t.min,t.max,t.step,d.decimals.value);let l;switch(o.type){case pu.MIN:n<=o.ratioMax?(l={minR:n,maxR:o.ratioMax,min:a,max:o.valueMax},s.value="min"):(l={minR:o.ratioMax,maxR:n,min:o.valueMax,max:a},s.value="max");break;case pu.MAX:n>=o.ratioMin?(l={minR:o.ratioMin,maxR:n,min:o.valueMin,max:a},s.value="max"):(l={minR:n,maxR:o.ratioMin,min:a,max:o.valueMin},s.value="min");break;case pu.RANGE:const e=n-o.offsetRatio,i=xe(o.ratioMin+e,0,1-o.rangeRatio),r=a-o.offsetModel,u=xe(o.valueMin+r,t.min,t.max-o.rangeValue);l={minR:i,maxR:i+o.rangeRatio,min:parseFloat(u.toFixed(d.decimals.value)),max:parseFloat((u+o.rangeValue).toFixed(d.decimals.value))};break}r.value={min:l.min,max:l.max},null!==r.value.min&&null!==r.value.max||(r.value.min=l.min||t.min,r.value.max=l.max||t.max),!0!==t.snap||0===t.step?(u.value=l.minR,c.value=l.maxR):(u.value=0===d.minMaxDiff.value?0:(r.value.min-t.min)/d.minMaxDiff.value,c.value=0===d.minMaxDiff.value?0:(r.value.max-t.min)/d.minMaxDiff.value)}function S(e){d.focus.value=e}function k(e){if(!ya.includes(e.keyCode))return;q(e);const o=([34,33].includes(e.keyCode)?10:1)*t.step,n=[34,37,40].includes(e.keyCode)?-o:o;if(t.dragOnlyRange){const e=t.dragOnlyRange?r.value.max-r.value.min:0,o=xe(parseFloat((r.value.min+n).toFixed(d.decimals.value)),t.min,t.max-e);r.value={min:o,max:parseFloat((o+e).toFixed(d.decimals.value))}}else{if(!1===d.focus.value)return;{const e=d.focus.value;r.value={...r.value,[e]:xe(parseFloat((r.value[e]+n).toFixed(d.decimals.value)),"min"===e?t.min:r.value.min,"max"===e?t.max:r.value.max)}}}x()}function $(o){const n=[v.getThumbSvg(),e.h("div",{class:"q-slider__focus-ring"})];return!0!==t.label&&!0!==t.labelAlways||n.push(e.h("div",{class:`q-slider__pin q-slider__pin${d.axis.value} absolute`+o.pinClass.value,style:o.pinStyle.value.pin},[e.h("div",{class:`q-slider__pin-text-container q-slider__pin-text-container${d.axis.value}`,style:o.pinStyle.value.pinTextContainer},[e.h("span",{class:"q-slider__pin-text"+o.pinTextClass.value},o.label.value)])]),e.h("div",{class:`q-slider__arrow q-slider__arrow${d.axis.value}`+o.pinClass.value})),e.h("div",{ref:o.domRef,class:`q-slider__thumb-container q-slider__thumb-container${d.axis.value} absolute non-selectable`+o.thumbClass.value,style:o.thumbStyle.value,...o.events.value,tabindex:!0!==t.dragOnlyRange?d.tabindex.value:null},n)}return e.watch(()=>t.modelValue.min,e=>{r.value.min=null===e?t.min:e}),e.watch(()=>t.modelValue.max,e=>{r.value.max=null===e?t.max:e}),e.watch(()=>t.min,e=>{r.value.min<e&&(r.value.min=e),r.value.max<e&&(r.value.max=e)}),e.watch(()=>t.max,e=>{r.value.min>e&&(r.value.min=e),r.value.max>e&&(r.value.max=e)}),()=>{const o=[e.h("div",{class:`q-slider__track q-slider__track${d.axis.value} absolute`,style:g.value})];!1!==t.markers&&o.push(e.h("div",{class:`q-slider__track-markers q-slider__track-markers${d.axis.value} absolute-full fit`,style:d.markerStyle.value}));const a=[e.h("div",{class:`q-slider__track-container q-slider__track-container${d.axis.value} absolute`},o),$(y),$(w)];void 0!==t.name&&!0!==t.disable&&l(a,"push");const r={ref:i,class:"q-range "+d.classes.value+(null===t.modelValue.min||null===t.modelValue.max?" q-slider--no-value":""),...d.attributes.value,"aria-valuenow":t.modelValue.min+"|"+t.modelValue.max,tabindex:!0===t.dragOnlyRange&&!0!==n.platform.is.mobile?d.tabindex.value:null,...b.value};return je("div",r,a,"slide",d.editable.value,()=>d.panDirective.value)}}}),fu=e.defineComponent({name:"QRating",props:{...Pe,...wn,modelValue:{type:Number,required:!0},max:{type:[String,Number],default:5},icon:[String,Array],iconHalf:[String,Array],iconSelected:[String,Array],color:[String,Array],colorHalf:[String,Array],colorSelected:[String,Array],noReset:Boolean,noDimming:Boolean,readonly:Boolean,disable:Boolean},emits:["update:modelValue"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=Ae(t),i=xn(t),r=_n(i),s=e.ref(0);let u={};const c=e.computed(()=>!0!==t.readonly&&!0!==t.disable),d=e.computed(()=>"q-rating row inline items-center"+` q-rating--${!0===c.value?"":"non-"}editable`+(!0===t.noDimming?" q-rating--no-dimming":"")+(!0===t.disable?" disabled":"")+(void 0!==t.color&&!1===Array.isArray(t.color)?` text-${t.color}`:"")),v=e.computed(()=>{const e=!0===Array.isArray(t.icon)?t.icon.length:0,o=!0===Array.isArray(t.iconSelected)?t.iconSelected.length:0,n=!0===Array.isArray(t.iconHalf)?t.iconHalf.length:0,a=!0===Array.isArray(t.color)?t.color.length:0,l=!0===Array.isArray(t.colorSelected)?t.colorSelected.length:0,i=!0===Array.isArray(t.colorHalf)?t.colorHalf.length:0;return{iconLen:e,icon:e>0?t.icon[e-1]:t.icon,selIconLen:o,selIcon:o>0?t.iconSelected[o-1]:t.iconSelected,halfIconLen:n,halfIcon:n>0?t.iconHalf[o-1]:t.iconHalf,colorLen:a,color:a>0?t.color[a-1]:t.color,selColorLen:l,selColor:l>0?t.colorSelected[l-1]:t.colorSelected,halfColorLen:i,halfColor:i>0?t.colorHalf[i-1]:t.colorHalf}}),p=e.computed(()=>{const e=[],o=v.value,n=Math.ceil(t.modelValue),l=void 0===t.iconHalf||n===t.modelValue?-1:n;for(let i=1;i<=t.max;i++){const r=0===s.value&&t.modelValue>=i||s.value>0&&s.value>=i,u=l===i&&s.value<i,c=s.value>0&&(!0===u?n:t.modelValue)>=i&&s.value<i,d=!0===u?i<=o.halfColorLen?t.colorHalf[i-1]:o.halfColor:void 0!==o.selColor&&!0===r?i<=o.selColorLen?t.colorSelected[i-1]:o.selColor:i<=o.colorLen?t.color[i-1]:o.color;e.push({name:(!0===u?i<=o.halfIconLen?t.iconHalf[i-1]:o.halfIcon:void 0===o.selIcon||!0!==r&&!0!==c?i<=o.iconLen?t.icon[i-1]:o.icon:i<=o.selIconLen?t.iconSelected[i-1]:o.selIcon)||a.iconSet.rating.icon,classes:"q-rating__icon"+(!0===r||!0===u?" q-rating__icon--active":"")+(!0===c?" q-rating__icon--exselected":"")+(s.value===i?" q-rating__icon--hovered":"")+(void 0!==d?` text-${d}`:"")})}return e}),m=e.computed(()=>{return!0===t.disable?{"aria-disabled":"true"}:!0===t.readonly?{"aria-readonly":"true"}:void 0}),f=e.computed(()=>!0===c.value?0:null);function h(e){if(!0===c.value){const o=xe(parseInt(e,10),1,parseInt(t.max,10)),a=!0!==t.noReset&&t.modelValue===o?0:o;a!==t.modelValue&&n("update:modelValue",a),s.value=0}}function g(e){!0===c.value&&(s.value=e)}function b(e,t){switch(e.keyCode){case 13:case 32:return h(t),q(e);case 37:case 40:return u[`rt${t-1}`]&&u[`rt${t-1}`].$el.focus(),q(e);case 39:case 38:return u[`rt${t+1}`]&&u[`rt${t+1}`].$el.focus(),q(e)}}function y(){s.value=0}return e.onBeforeUpdate(()=>{u={}}),()=>{const n=[];return p.value.forEach(({classes:t,name:a},l)=>{const i=l+1;n.push(e.h("div",{key:i,ref:e=>{u[`rt${i}`]=e},class:"q-rating__icon-container flex flex-center",tabindex:f.value,onClick(){h(i)},onMouseover(){g(i)},onMouseout:y,onFocus(){g(i)},onBlur:y,onKeyup(e){b(e,i)}},Ie(o[`tip-${i}`],[e.h(et,{class:t,name:a})])))}),void 0!==t.name&&!0!==t.disable&&r(n,"push"),e.h("div",{class:d.value,style:l.value,...m.value},n)}}}),hu=e.defineComponent({name:"QResponsive",props:rs,setup(t,{slots:o}){const n=ss(t);return()=>e.h("div",{class:"q-responsive"},[e.h("div",{class:"q-responsive__filler overflow-hidden"},[e.h("div",{style:n.value})]),e.h("div",{class:"q-responsive__content absolute-full fit"},Fe(o.default))])}});const gu=["vertical","horizontal"],bu={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}};var yu=e.defineComponent({name:"QScrollArea",props:{...at,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(t,{slots:o,emit:n}){const a=e.ref(!1),l=e.ref(!1),i=e.ref(!1),r={vertical:e.ref(0),horizontal:e.ref(0)},s={vertical:{ref:e.ref(null),position:e.ref(0),size:e.ref(0)},horizontal:{ref:e.ref(null),position:e.ref(0),size:e.ref(0)}},u=e.getCurrentInstance(),c=lt(t,u.proxy.$q);let d,v;const p=e.ref(null),m=e.computed(()=>"q-scrollarea"+(!0===c.value?" q-scrollarea--dark":""));s.vertical.percentage=e.computed(()=>{const e=s.vertical.size.value-r.vertical.value;if(e<=0)return 0;const t=xe(s.vertical.position.value/e,0,1);return Math.round(1e4*t)/1e4}),s.vertical.thumbHidden=e.computed(()=>!0!==(null===t.visible?i.value:t.visible)&&!1===a.value&&!1===l.value||s.vertical.size.value<=r.vertical.value+1),s.vertical.thumbSize=e.computed(()=>Math.round(xe(r.vertical.value*r.vertical.value/s.vertical.size.value,50,r.vertical.value))),s.vertical.style=e.computed(()=>{const e=s.vertical.thumbSize.value,o=s.vertical.percentage.value*(r.vertical.value-e);return{...t.thumbStyle,...t.verticalThumbStyle,top:`${o}px`,height:`${e}px`}}),s.vertical.thumbClass=e.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(!0===s.vertical.thumbHidden.value?" q-scrollarea__thumb--invisible":"")),s.vertical.barClass=e.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(!0===s.vertical.thumbHidden.value?" q-scrollarea__bar--invisible":"")),s.horizontal.percentage=e.computed(()=>{const e=s.horizontal.size.value-r.horizontal.value;if(e<=0)return 0;const t=xe(s.horizontal.position.value/e,0,1);return Math.round(1e4*t)/1e4}),s.horizontal.thumbHidden=e.computed(()=>!0!==(null===t.visible?i.value:t.visible)&&!1===a.value&&!1===l.value||s.horizontal.size.value<=r.horizontal.value+1),s.horizontal.thumbSize=e.computed(()=>Math.round(xe(r.horizontal.value*r.horizontal.value/s.horizontal.size.value,50,r.horizontal.value))),s.horizontal.style=e.computed(()=>{const e=s.horizontal.thumbSize.value,o=s.horizontal.percentage.value*(r.horizontal.value-e);return{...t.thumbStyle,...t.horizontalThumbStyle,left:`${o}px`,width:`${e}px`}}),s.horizontal.thumbClass=e.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(!0===s.horizontal.thumbHidden.value?" q-scrollarea__thumb--invisible":"")),s.horizontal.barClass=e.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(!0===s.horizontal.thumbHidden.value?" q-scrollarea__bar--invisible":""));const f=e.computed(()=>!0===s.vertical.thumbHidden.value||!0===s.horizontal.thumbHidden.value?t.contentStyle:t.contentActiveStyle),h=[[ba,e=>{S(e,"vertical")},void 0,{vertical:!0,prevent:!0,mouse:!0,mouseAllDir:!0}]],g=[[ba,e=>{S(e,"horizontal")},void 0,{horizontal:!0,prevent:!0,mouse:!0,mouseAllDir:!0}]];function b(){const e={};return gu.forEach(t=>{const o=s[t];e[t+"Position"]=o.position.value,e[t+"Percentage"]=o.percentage.value,e[t+"Size"]=o.size.value,e[t+"ContainerSize"]=r[t].value}),e}const y=B(()=>{const e=b();e.ref=u.proxy,n("scroll",e)},0);function w(e,t,o){if(!1===gu.includes(e))return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");const n="vertical"===e?Ao:Fo;n(p.value,t,o)}function x({height:e,width:t}){let o=!1;r.vertical.value!==e&&(r.vertical.value=e,o=!0),r.horizontal.value!==t&&(r.horizontal.value=t,o=!0),!0===o&&M()}function _({position:e}){let t=!1;s.vertical.position.value!==e.top&&(s.vertical.position.value=e.top,t=!0),s.horizontal.position.value!==e.left&&(s.horizontal.position.value=e.left,t=!0),!0===t&&M()}function C({height:e,width:t}){s.horizontal.size.value!==t&&(s.horizontal.size.value=t,M()),s.vertical.size.value!==e&&(s.vertical.size.value=e,M())}function S(e,t){const o=s[t];if(!0===e.isFirst){if(!0===o.thumbHidden.value)return;v=o.position.value,l.value=!0}else if(!0!==l.value)return;!0===e.isFinal&&(l.value=!1);const n=bu[t],a=r[t].value,i=(o.size.value-a)/(a-o.thumbSize.value),u=e.distance[n.dist],c=v+(e.direction===n.dir?1:-1)*u*i;T(c,t)}function q(e,t){const o=s[t];if(!0!==o.thumbHidden.value){const n=e[bu[t].offset]-o.thumbSize.value/2;T(n/r[t].value*o.size.value,t),null!==o.ref.value&&o.ref.value.dispatchEvent(new MouseEvent(e.type,e))}}function k(e){q(e,"vertical")}function $(e){q(e,"horizontal")}function M(){!0===a.value?clearTimeout(d):a.value=!0,d=setTimeout(()=>{a.value=!1},t.delay),void 0!==t.onScroll&&y()}function T(e,t){p.value[bu[t].scroll]=e}function O(){i.value=!0}function V(){i.value=!1}return Object.assign(u.proxy,{getScrollTarget:()=>p.value,getScroll:b,getScrollPosition:()=>({top:s.vertical.position.value,left:s.horizontal.position.value}),getScrollPercentage:()=>({top:s.vertical.percentage.value,left:s.horizontal.percentage.value}),setScrollPosition:w,setScrollPercentage(e,t,o){w(e,t*(s[e].size.value-r[e].value),o)}}),()=>{return e.h("div",{class:m.value,onMouseenter:O,onMouseleave:V},[e.h("div",{ref:p,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:void 0!==t.tabindex?t.tabindex:void 0},[e.h("div",{class:"q-scrollarea__content absolute",style:f.value},Ie(o.default,[e.h(Ta,{onResize:C})])),e.h(As,{axis:"both",onScroll:_})]),e.h(Ta,{onResize:x}),e.h("div",{class:s.vertical.barClass.value,style:[t.barStyle,t.verticalBarStyle],"aria-hidden":"true",onMousedown:k}),e.h("div",{class:s.horizontal.barClass.value,style:[t.barStyle,t.horizontalBarStyle],"aria-hidden":"true",onMousedown:$}),e.withDirectives(e.h("div",{ref:s.vertical.ref,class:s.vertical.thumbClass.value,style:s.vertical.style.value,"aria-hidden":"true"}),h),e.withDirectives(e.h("div",{ref:s.horizontal.ref,class:s.horizontal.thumbClass.value,style:s.horizontal.style.value,"aria-hidden":"true"}),g)])}}});const wu=1e3,xu=["start","center","end","start-force","center-force","end-force"],_u=Array.prototype.slice;let Cu=1;const Su=void 0===window.getComputedStyle(document.body).overflowAnchor?m:function(e,t){const o=e+"_ss";let n=document.getElementById(o);null===n&&(n=document.createElement("style"),n.type="text/css",n.id=o,document.head.appendChild(n)),n.qChildIndex!==t&&(n.qChildIndex=t,n.innerHTML=`#${e} > *:nth-child(${t}) { overflow-anchor: auto }`)};function qu(e,t){return e+t}function ku(e,t,o,n,a,l,i,r){const s=e===window?document.scrollingElement||document.documentElement:e,u=!0===a?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-i-r,scrollMaxSize:0,offsetStart:-i,offsetEnd:-r};if(!0===a?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=window.innerWidth):(c.scrollStart=s.scrollLeft,c.scrollViewSize+=s.clientWidth),c.scrollMaxSize=s.scrollWidth,!0===l&&(c.scrollStart=(!0===Ba?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=window.innerHeight):(c.scrollStart=s.scrollTop,c.scrollViewSize+=s.clientHeight),c.scrollMaxSize=s.scrollHeight),null!==o)for(let d=o.previousElementSibling;null!==d;d=d.previousElementSibling)!1===d.classList.contains("q-virtual-scroll--skip")&&(c.offsetStart+=d[u]);if(null!==n)for(let d=n.nextElementSibling;null!==d;d=d.nextElementSibling)!1===d.classList.contains("q-virtual-scroll--skip")&&(c.offsetEnd+=d[u]);if(t!==e){const o=s.getBoundingClientRect(),n=t.getBoundingClientRect();!0===a?(c.offsetStart+=n.left-o.left,c.offsetEnd-=n.width):(c.offsetStart+=n.top-o.top,c.offsetEnd-=n.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function $u(e,t,o,n){e===window?!0===o?(!0===n&&(t=(!0===Ba?document.body.scrollWidth-window.innerWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):!0===o?(!0===n&&(t=(!0===Ba?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Mu(e,t,o,n){if(o>=n)return 0;const a=t.length,l=Math.floor(o/wu),i=Math.floor((n-1)/wu)+1;let r=e.slice(l,i).reduce(qu,0);return o%wu!==0&&(r-=t.slice(l*wu,o).reduce(qu,0)),n%wu!==0&&n!==a&&(r-=t.slice(n,i*wu).reduce(qu,0)),r}const Tu={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Bu=Object.keys(Tu),Ou={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Tu};function Vu({virtualScrollLength:t,getVirtualScrollTarget:o,getVirtualScrollEl:n,virtualScrollItemSizeComputed:a}){const l=e.getCurrentInstance(),{props:i,emit:r,proxy:s}=l,{$q:u}=s;let c,d,v,p,f=[];const h="qvs_"+Cu++,g=e.ref(0),b=e.ref(0),y=e.ref({}),w=e.ref(null),x=e.ref(null),_=e.ref(null),C=e.ref({from:0,to:0}),S=e.computed(()=>void 0!==i.tableColspan?i.tableColspan:100);void 0===a&&(a=e.computed(()=>i.virtualScrollItemSize));const q=e.computed(()=>a.value+";"+i.virtualScrollHorizontal),k=e.computed(()=>q.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);function $(){L(d,!0)}function M(e){L(void 0===e?d:e)}function T(e,a){const l=o();if(void 0===l||null===l||8===l.nodeType)return;const r=ku(l,n(),w.value,x.value,i.virtualScrollHorizontal,u.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);v!==r.scrollViewSize&&E(r.scrollViewSize),V(l,r,Math.min(t.value-1,Math.max(0,parseInt(e,10)||0)),0,xu.indexOf(a)>-1?a:d>-1&&e>d?"end":"start")}function O(){const e=o();if(void 0===e||null===e||8===e.nodeType)return;const a=ku(e,n(),w.value,x.value,i.virtualScrollHorizontal,u.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),l=t.value-1,r=a.scrollMaxSize-a.offsetStart-a.offsetEnd-b.value;if(c===a.scrollStart)return;if(a.scrollMaxSize<=0)return void V(e,a,0,0);v!==a.scrollViewSize&&E(a.scrollViewSize),z(C.value.from);const s=Math.floor(a.scrollMaxSize-Math.max(a.scrollViewSize,a.offsetEnd)-Math.min(p[l],a.scrollViewSize/2));if(s>0&&Math.ceil(a.scrollStart)>=s)return void V(e,a,l,a.scrollMaxSize-a.offsetEnd-f.reduce(qu,0));let d=0,m=a.scrollStart-a.offsetStart,h=m;if(m<=r&&m+a.scrollViewSize>=g.value)m-=g.value,d=C.value.from,h=m;else for(let t=0;m>=f[t]&&d<l;t++)m-=f[t],d+=wu;while(m>0&&d<l)m-=p[d],m>-a.scrollViewSize?(d++,h=m):h=p[d]+m;V(e,a,d,h)}function V(e,o,n,a,l){const r="string"===typeof l&&l.indexOf("-force")>-1,s=!0===r?l.replace("-force",""):l,d=void 0!==s?s:"start";let v=Math.max(0,n-y.value[d]),m=v+y.value.total;m>t.value&&(m=t.value,v=Math.max(0,m-y.value.total)),c=o.scrollStart;const w=v!==C.value.from||m!==C.value.to;if(!1===w&&void 0===s)return void A(n);const{activeElement:x}=document;if(!0===w&&null!==_.value&&_.value!==x&&!0===_.value.contains(x)){const e=()=>{_.value.focus()};x.addEventListener("blur",e,!0),requestAnimationFrame(()=>{x.removeEventListener("blur",e,!0)})}Su(h,n-v+1);const S=void 0!==s?p.slice(v,n).reduce(qu,0):0;if(!0===w){const e=m>=C.value.from&&v<=C.value.to?C.value.to:m;C.value={from:v,to:e},g.value=Mu(f,p,0,v),b.value=Mu(f,p,m,t.value),requestAnimationFrame(()=>{C.value.to!==m&&c===o.scrollStart&&(C.value={from:C.value.from,to:m},b.value=Mu(f,p,m,t.value))})}requestAnimationFrame(()=>{if(c!==o.scrollStart)return;!0===w&&z(v);const t=p.slice(v,n).reduce(qu,0),l=t+o.offsetStart+g.value,d=l+p[n];let m=l+a;if(void 0!==s){const e=t-S,a=o.scrollStart+e;m=!0!==r&&a<l&&d<a+o.scrollViewSize?a:"end"===s?d-o.scrollViewSize:l-("start"===s?0:Math.round((o.scrollViewSize-p[n])/2))}c=m,$u(e,m,i.virtualScrollHorizontal,u.lang.rtl),A(n)})}function z(e){const t=_.value;if(t){const o=_u.call(t.children).filter(e=>!1===e.classList.contains("q-virtual-scroll--skip")),n=o.length,a=!0===i.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight;let l,r,s=e;for(let e=0;e<n;){l=a(o[e]),e++;while(e<n&&!0===o[e].classList.contains("q-virtual-scroll--with-prev"))l+=a(o[e]),e++;r=l-p[s],0!==r&&(p[s]+=r,f[Math.floor(s/wu)]+=r),s++}}}function L(o,n){const l=1*a.value;!0!==n&&!1!==Array.isArray(p)||(p=[]);const i=p.length;p.length=t.value;for(let e=t.value-1;e>=i;e--)p[e]=l;const r=Math.floor((t.value-1)/wu);f=[];for(let e=0;e<=r;e++){let o=0;const n=Math.min((e+1)*wu,t.value);for(let t=e*wu;t<n;t++)o+=p[t];f.push(o)}d=-1,c=void 0,o>=0?(z(C.value.from),e.nextTick(()=>{T(o)})):(g.value=Mu(f,p,0,C.value.from),b.value=Mu(f,p,C.value.to,t.value),F())}function E(e){if(void 0===e&&"undefined"!==typeof window){const t=o();void 0!==t&&null!==t&&8!==t.nodeType&&(e=ku(t,n(),w.value,x.value,i.virtualScrollHorizontal,u.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}v=e;const t=1+i.virtualScrollSliceRatioBefore+i.virtualScrollSliceRatioAfter,l=void 0===e||e<=0?1:Math.ceil(e/a.value),r=Math.max(10,l,Math.ceil(i.virtualScrollSliceSize/t));y.value={total:Math.ceil(r*t),start:Math.ceil(r*i.virtualScrollSliceRatioBefore),center:Math.ceil(r*(.5+i.virtualScrollSliceRatioBefore)),end:Math.ceil(r*(1+i.virtualScrollSliceRatioBefore)),view:l}}function P(t,o){const n=!0===i.virtualScrollHorizontal?"width":"height",l={["--q-virtual-scroll-item-"+n]:a.value+"px"};return["tbody"===t?e.h(t,{class:"q-virtual-scroll__padding",key:"before",ref:w},[e.h("tr",[e.h("td",{style:{[n]:`${g.value}px`,...l},colspan:S.value})])]):e.h(t,{class:"q-virtual-scroll__padding",key:"before",ref:w,style:{[n]:`${g.value}px`,...l}}),e.h(t,{class:"q-virtual-scroll__content",key:"content",ref:_,id:h,tabindex:-1},o.flat()),"tbody"===t?e.h(t,{class:"q-virtual-scroll__padding",key:"after",ref:x},[e.h("tr",[e.h("td",{style:{[n]:`${b.value}px`,...l},colspan:S.value})])]):e.h(t,{class:"q-virtual-scroll__padding",key:"after",ref:x,style:{[n]:`${b.value}px`,...l}})]}function A(e){d!==e&&(void 0!==i.onVirtualScroll&&r("virtual-scroll",{index:e,from:C.value.from,to:C.value.to-1,direction:e<d?"decrease":"increase",ref:s}),d=e)}e.watch(k,()=>{E()}),e.watch(q,$),E();const F=B(O,!0===u.platform.is.ios?120:35);return e.onBeforeMount(()=>{E()}),Su!==m&&e.onBeforeUnmount(()=>{const e=document.getElementById(h+"_ss");null!==e&&e.remove()}),Object.assign(s,{scrollTo:T,reset:$,refresh:M}),{virtualScrollSliceRange:C,virtualScrollSliceSizeComputed:y,setVirtualScrollSize:E,onVirtualScrollEvt:F,localResetVirtualScroll:L,padVirtualScroll:P,scrollTo:T,reset:$,refresh:M}}const zu=e=>["add","add-unique","toggle"].includes(e),Lu=".*+?^${}()|[]\\",Eu=Object.keys(Qr);var Pu=e.defineComponent({name:"QSelect",inheritAttrs:!1,props:{...Ou,...wn,...Qr,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:zu},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,transitionDuration:[String,Number],behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0},onNewValue:Function,onFilter:Function},emits:[...Ur,"add","remove","input-value","keyup","keypress","keydown","filter-abort"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref(!1),r=e.ref(!1),s=e.ref(-1),u=e.ref(""),c=e.ref(!1),d=e.ref(!1);let v,p,m,f,h,g,b,y,w;const x=e.ref(null),_=e.ref(null),k=e.ref(null),$=e.ref(null),M=e.ref(null),T=Cn(t),B=Ss(ze),O=e.computed(()=>Array.isArray(t.options)?t.options.length:0),V=e.computed(()=>void 0===t.virtualScrollItemSize?!0===t.dense?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:z,virtualScrollSliceSizeComputed:L,localResetVirtualScroll:E,padVirtualScroll:P,onVirtualScrollEvt:A,scrollTo:F,setVirtualScrollSize:R}=Vu({virtualScrollLength:O,getVirtualScrollTarget:Te,getVirtualScrollEl:Me,virtualScrollItemSizeComputed:V}),I=Wr(),N=e.computed(()=>{const e=!0===t.mapOptions&&!0!==t.multiple,o=void 0===t.modelValue||null===t.modelValue&&!0!==e?[]:!0===t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue];if(!0===t.mapOptions&&!0===Array.isArray(t.options)){const n=!0===t.mapOptions&&void 0!==p?p:[],a=o.map(e=>ye(e,n));return null===t.modelValue&&!0===e?a.filter(e=>null!==e):a}return o}),j=e.computed(()=>{const e={};return Eu.forEach(o=>{const n=t[o];void 0!==n&&(e[o]=n)}),e}),D=e.computed(()=>null===t.optionsDark?I.isDark.value:t.optionsDark),H=e.computed(()=>Hr(N.value)),Q=e.computed(()=>{let e="q-field__input q-placeholder col";return!0===t.hideSelected||0===N.value.length?[e,t.inputClass]:(e+=" q-field__input--padding",void 0===t.inputClass?e:[e,t.inputClass])}),Y=e.computed(()=>(!0===t.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),K=e.computed(()=>0===O.value),X=e.computed(()=>N.value.map(e=>se.value(e)).join(", ")),Z=e.computed(()=>!0===t.optionsHtml?()=>!0:e=>void 0!==e&&null!==e&&!0===e.html),G=e.computed(()=>!0===t.displayValueHtml||void 0===t.displayValue&&(!0===t.optionsHtml||N.value.some(Z.value))),J=e.computed(()=>!0===I.focused.value?t.tabindex:-1),ee=e.computed(()=>({tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-autocomplete":!0===t.useInput?"list":"none","aria-expanded":!0===i.value?"true":"false","aria-owns":`${I.targetUid.value}_lb`,"aria-controls":`${I.targetUid.value}_lb`})),te=e.computed(()=>{const e={id:`${I.targetUid.value}_lb`,role:"listbox","aria-multiselectable":!0===t.multiple?"true":"false"};return s.value>=0&&(e["aria-activedescendant"]=`${I.targetUid.value}_${s.value}`),e}),oe=e.computed(()=>{return N.value.map((e,t)=>({index:t,opt:e,html:Z.value(e),selected:!0,removeAtIndex:me,toggleOption:he,tabindex:J.value}))}),ne=e.computed(()=>{if(0===O.value)return[];const{from:e,to:o}=z.value;return t.options.slice(e,o).map((o,n)=>{const a=!0===ue.value(o),i=e+n,r={clickable:!0,active:!1,activeClass:ie.value,manualFocus:!0,focused:!1,disable:a,tabindex:-1,dense:t.optionsDense,dark:D.value,role:"option",id:`${I.targetUid.value}_${i}`,onClick:()=>{he(o)}};return!0!==a&&(!0===xe(o)&&(r.active=!0),s.value===i&&(r.focused=!0),r["aria-selected"]=!0===r.active?"true":"false",!0===l.platform.is.desktop&&(r.onMousemove=(()=>{ge(i)}))),{index:i,opt:o,html:Z.value(o),label:se.value(o),selected:r.active,focused:r.focused,toggleOption:he,setOptionIndex:ge,itemProps:r}})}),ae=e.computed(()=>void 0!==t.dropdownIcon?t.dropdownIcon:l.iconSet.arrow.dropdown),le=e.computed(()=>!1===t.optionsCover&&!0!==t.outlined&&!0!==t.standout&&!0!==t.borderless&&!0!==t.rounded),ie=e.computed(()=>void 0!==t.optionsSelectedClass?t.optionsSelectedClass:void 0!==t.color?`text-${t.color}`:""),re=e.computed(()=>we(t.optionValue,"value")),se=e.computed(()=>we(t.optionLabel,"label")),ue=e.computed(()=>we(t.optionDisable,"disable")),ce=e.computed(()=>N.value.map(e=>re.value(e))),de=e.computed(()=>{const e={onInput:ze,onChange:B,onKeydown:$e,onKeyup:qe,onKeypress:ke,onFocus:Ce,onClick(e){!0===m&&C(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=B,e});function ve(e){return!0===t.emitValue?re.value(e):e}function pe(e){if(e>-1&&e<N.value.length)if(!0===t.multiple){const o=t.modelValue.slice();n("remove",{index:e,value:o.splice(e,1)[0]}),n("update:modelValue",o)}else n("update:modelValue",null)}function me(e){pe(e),I.focus()}function fe(e,o){const a=ve(e);if(!0!==t.multiple)return!0===t.fillInput&&Ee(se.value(e),!0,!0),void n("update:modelValue",a);if(0===N.value.length)return n("add",{index:0,value:a}),void n("update:modelValue",!0===t.multiple?[a]:a);if(!0===o&&!0===xe(e))return;if(void 0!==t.maxValues&&t.modelValue.length>=t.maxValues)return;const l=t.modelValue.slice();n("add",{index:l.length,value:a}),l.push(a),n("update:modelValue",l)}function he(e,o){if(!0!==I.editable.value||void 0===e||!0===ue.value(e))return;const a=re.value(e);if(!0!==t.multiple)return!0!==o&&(Ee(!0===t.fillInput?se.value(e):"",!0,!0),Ke()),null!==_.value&&_.value.focus(),void(!0!==Un(re.value(N.value[0]),a)&&n("update:modelValue",!0===t.emitValue?a:e));if((!0!==m||!0===c.value)&&I.focus(),Ce(),0===N.value.length){const o=!0===t.emitValue?a:e;return n("add",{index:0,value:o}),void n("update:modelValue",!0===t.multiple?[o]:o)}const l=t.modelValue.slice(),i=ce.value.findIndex(e=>Un(e,a));if(i>-1)n("remove",{index:i,value:l.splice(i,1)[0]});else{if(void 0!==t.maxValues&&l.length>=t.maxValues)return;const o=!0===t.emitValue?a:e;n("add",{index:l.length,value:o}),l.push(o)}n("update:modelValue",l)}function ge(e){if(!0!==l.platform.is.desktop)return;const t=e>-1&&e<O.value?e:-1;s.value!==t&&(s.value=t)}function be(e=1,o){if(!0===i.value){let n=s.value;do{n=_e(n+e,-1,O.value-1)}while(-1!==n&&n!==s.value&&!0===ue.value(t.options[n]));s.value!==n&&(ge(n),F(n),!0!==o&&!0===t.useInput&&!0===t.fillInput&&Le(n>=0?se.value(t.options[n]):g))}}function ye(e,o){const n=t=>Un(re.value(t),e);return t.options.find(n)||o.find(n)||e}function we(e,t){const o=void 0!==e?e:t;return"function"===typeof o?o:e=>Object(e)===e&&o in e?e[o]:e}function xe(e){const t=re.value(e);return void 0!==ce.value.find(e=>Un(e,t))}function Ce(){!0===t.useInput&&null!==_.value&&_.value.select()}function Se(e){!0===W(e,27)&&!0===i.value&&(C(e),Ke(),Xe()),n("keyup",e)}function qe(e){const{value:o}=e.target;if(void 0===e.keyCode)if(e.target.value="",clearTimeout(v),Xe(),"string"===typeof o&&o.length>0){const e=o.toLocaleLowerCase();let n=t=>re.value(t).toLocaleLowerCase()===e,a=t.options.find(n);void 0!==a?-1===N.value.indexOf(a)?he(a):Ke():(n=(t=>se.value(t).toLocaleLowerCase()===e),a=t.options.find(n),void 0!==a?-1===N.value.indexOf(a)?he(a):Ke():Pe(o,!0))}else I.clearValue(e);else Se(e)}function ke(e){n("keypress",e)}function $e(o){if(n("keydown",o),!0===U(o))return;const a=u.value.length>0&&(void 0!==t.newValueMode||void 0!==t.onNewValue),l=!0!==o.shiftKey&&!0!==t.multiple&&(s.value>-1||!0===a);if(27===o.keyCode)return void S(o);if(9===o.keyCode&&!1===l)return void We();if(void 0===o.target||o.target.id!==I.targetUid.value)return;if(40===o.keyCode&&!0!==I.innerLoading.value&&!1===i.value)return q(o),void Ye();if(8===o.keyCode&&!0!==t.hideSelected&&0===u.value.length)return void(!0===t.multiple&&!0===Array.isArray(t.modelValue)?pe(t.modelValue.length-1):!0!==t.multiple&&null!==t.modelValue&&n("update:modelValue",null));35!==o.keyCode&&36!==o.keyCode||"string"===typeof u.value&&0!==u.value.length||(q(o),s.value=-1,be(36===o.keyCode?1:-1,t.multiple)),33!==o.keyCode&&34!==o.keyCode||void 0===L.value||(q(o),s.value=Math.max(-1,Math.min(O.value,s.value+(33===o.keyCode?-1:1)*L.value.view)),be(33===o.keyCode?1:-1,t.multiple)),38!==o.keyCode&&40!==o.keyCode||(q(o),be(38===o.keyCode?-1:1,t.multiple));const r=O.value;if((void 0===y||w<Date.now())&&(y=""),r>0&&!0!==t.useInput&&void 0!==o.key&&1===o.key.length&&o.altKey===o.ctrlKey&&(32!==o.keyCode||y.length>0)){!0!==i.value&&Ye(o);const n=o.key.toLocaleLowerCase(),a=1===y.length&&y[0]===n;w=Date.now()+1500,!1===a&&(q(o),y+=n);const l=new RegExp("^"+y.split("").map(e=>Lu.indexOf(e)>-1?"\\"+e:e).join(".*"),"i");let u=s.value;if(!0===a||u<0||!0!==l.test(se.value(t.options[u])))do{u=_e(u+1,-1,r-1)}while(u!==s.value&&(!0===ue.value(t.options[u])||!0!==l.test(se.value(t.options[u]))));s.value!==u&&e.nextTick(()=>{ge(u),F(u),u>=0&&!0===t.useInput&&!0===t.fillInput&&Le(se.value(t.options[u]))})}else if(13===o.keyCode||32===o.keyCode&&!0!==t.useInput&&""===y||9===o.keyCode&&!1!==l)if(9!==o.keyCode&&q(o),s.value>-1&&s.value<r)he(t.options[s.value]);else{if(!0===a){const e=(e,o)=>{if(o){if(!0!==zu(o))return}else o=t.newValueMode;if(void 0===e||null===e)return;Ee("",!0!==t.multiple,!0);const n="toggle"===o?he:fe;n(e,"add-unique"===o),!0!==t.multiple&&(null!==_.value&&_.value.focus(),Ke())};if(void 0!==t.onNewValue?n("new-value",u.value,e):e(u.value),!0!==t.multiple)return}!0===i.value?We():!0!==I.innerLoading.value&&Ye()}}function Me(){return!0===m?M.value:null!==k.value&&null!==k.value.__qPortalInnerRef.value?k.value.__qPortalInnerRef.value:void 0}function Te(){return Me()}function Be(){return!0===t.hideSelected?[]:void 0!==o["selected-item"]?oe.value.map(e=>o["selected-item"](e)).slice():void 0!==o.selected?[].concat(o.selected()):!0===t.useChips?oe.value.map((o,n)=>e.h(ua,{key:"option-"+n,removable:!0===I.editable.value&&!0!==ue.value(o.opt),dense:!0,textColor:t.color,tabindex:J.value,onRemove(){o.removeAtIndex(n)}},()=>e.h("span",{class:"ellipsis",[!0===o.html?"innerHTML":"textContent"]:se.value(o.opt)}))):[e.h("span",{[!0===G.value?"innerHTML":"textContent"]:void 0!==t.displayValue?t.displayValue:X.value})]}function Oe(){const t=void 0!==o.option?o.option:t=>{return e.h(Gi,{key:t.index,...t.itemProps},()=>{return e.h(Ji,()=>e.h(hr,()=>e.h("span",{[!0===t.html?"innerHTML":"textContent"]:t.label})))})};let n=P("div",ne.value.map(t));return void 0!==o["before-options"]&&(n=o["before-options"]().concat(n)),Ie(o["after-options"],n)}function Ve(o,n){const a={ref:!0===n?_:void 0,key:"i_t",class:Q.value,style:t.inputStyle,value:void 0!==u.value?u.value:"",type:"search",...ee.value,...I.splitAttrs.attributes.value,id:I.targetUid.value,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":!0!==o&&!0===t.autofocus||void 0,disabled:!0===t.disable,readonly:!0===t.readonly,...de.value};return!0!==o&&!0===m&&(!0===Array.isArray(a.class)?a.class[0]+=" no-pointer-events":a.class+=" no-pointer-events"),e.h("input",a)}function ze(e){clearTimeout(v),e&&e.target&&!0===e.target.composing||(Le(e.target.value||""),f=!0,g=u.value,!0===I.focused.value||!0===m&&!0!==c.value||I.focus(),void 0!==t.onFilter&&(v=setTimeout(()=>{Pe(u.value)},t.inputDebounce)))}function Le(e){u.value!==e&&(u.value=e,n("input-value",e))}function Ee(e,o,n){f=!0!==n,!0===t.useInput&&(Le(e),!0!==o&&!0===n||(g=e),!0!==o&&Pe(e))}function Pe(o,l){if(void 0===t.onFilter||!0!==l&&!0!==I.focused.value)return;!0===I.innerLoading.value?n("filter-abort"):(I.innerLoading.value=!0,d.value=!0),""!==o&&!0!==t.multiple&&N.value.length>0&&!0!==f&&o===se.value(N.value[0])&&(o="");const r=setTimeout(()=>{!0===i.value&&(i.value=!1)},10);clearTimeout(h),h=r,n("filter",o,(t,o)=>{!0!==l&&!0!==I.focused.value||h!==r||(clearTimeout(h),"function"===typeof t&&t(),d.value=!1,e.nextTick(()=>{I.innerLoading.value=!1,!0===I.editable.value&&(!0===l?!0===i.value&&Ke():!0===i.value?Ze(!0):i.value=!0),"function"===typeof o&&e.nextTick(()=>{o(a)})}))},()=>{!0===I.focused.value&&h===r&&(clearTimeout(h),I.innerLoading.value=!1,d.value=!1),!0===i.value&&(i.value=!1)})}function Ae(){const n=!0===K.value?void 0!==o["no-option"]?()=>o["no-option"]({inputValue:u.value}):void 0:Oe;return e.h(bn,{ref:k,class:Y.value,style:t.popupContentStyle,modelValue:i.value,fit:!0!==t.menuShrink,cover:!0===t.optionsCover&&!0!==K.value&&!0!==t.useInput,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:D.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:le.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...te.value,onScrollPassive:A,onBeforeShow:Je,onBeforeHide:Fe,onShow:Re},n)}function Fe(e){tt(e),We()}function Re(){R()}function Ne(e){C(e),null!==_.value&&_.value.focus(),c.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function je(t){C(t),e.nextTick(()=>{c.value=!1})}function De(){const n=[e.h(Kr,{class:`col-auto ${I.fieldClass}`,...j.value,for:I.targetUid.value,dark:D.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:u.value.length>0,...I.splitAttrs.listeners.value,onFocus:Ne,onBlur:je},{...o,rawControl:()=>I.getControl(!0),before:void 0,after:void 0})];return!0===i.value&&n.push(e.h("div",{ref:M,class:Y.value+" scroll",style:t.popupContentStyle,...te.value,onClick:S,onScrollPassive:A},!0===K.value?void 0!==o["no-option"]?o["no-option"]({inputValue:u.value}):null:Oe())),e.h(Di,{ref:$,modelValue:r.value,position:!0===t.useInput?"top":void 0,transitionShow:b,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,onBeforeShow:Je,onBeforeHide:He,onHide:Qe,onShow:Ue},()=>e.h("div",{class:"q-select__dialog"+(!0===D.value?" q-select__dialog--dark q-dark":"")+(!0===c.value?" q-select__dialog--focused":"")},n))}function He(e){tt(e),null!==$.value&&$.value.__updateRefocusTarget(I.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),I.focused.value=!1}function Qe(e){Ke(),!1===I.focused.value&&n("blur",e),Xe()}function Ue(){const e=document.activeElement;null!==e&&e.id===I.targetUid.value||null===_.value||_.value===e||_.value.focus(),R()}function We(){!0!==r.value&&(s.value=-1,!0===i.value&&(i.value=!1),!1===I.focused.value&&(clearTimeout(h),h=void 0,!0===I.innerLoading.value&&(n("filter-abort"),I.innerLoading.value=!1,d.value=!1)))}function Ye(n){!0===I.editable.value&&(!0===m?(I.onControlFocusin(n),r.value=!0,e.nextTick(()=>{I.focus()})):I.focus(),void 0!==t.onFilter?Pe(u.value):!0===K.value&&void 0===o["no-option"]||(i.value=!0))}function Ke(){r.value=!1,We()}function Xe(){!0===t.useInput&&Ee(!0!==t.multiple&&!0===t.fillInput&&N.value.length>0&&se.value(N.value[0])||"",!0,!0)}function Ze(e){let o=-1;if(!0===e){if(N.value.length>0){const e=re.value(N.value[0]);o=t.options.findIndex(t=>Un(re.value(t),e))}E(o)}ge(o)}function Ge(){!1===r.value&&null!==k.value&&k.value.updatePosition()}function Je(e){void 0!==e&&C(e),n("popup-show",e),I.hasPopupOpen.value=!0,I.onControlFocusin(e)}function tt(e){void 0!==e&&C(e),n("popup-hide",e),I.hasPopupOpen.value=!1,I.onControlFocusout(e)}function ot(){m=(!0===l.platform.is.mobile||"dialog"===t.behavior)&&("menu"!==t.behavior&&(!0!==t.useInput||(void 0!==o["no-option"]||void 0!==t.onFilter||!1===K.value))),b=!0===l.platform.is.ios&&!0===m&&!0===t.useInput?"fade":t.transitionShow}return e.watch(N,e=>{p=e,!0===t.useInput&&!0===t.fillInput&&!0!==t.multiple&&!0!==I.innerLoading.value&&(!0!==r.value&&!0!==i.value||!0!==H.value)&&(!0!==f&&Xe(),!0!==r.value&&!0!==i.value||Pe(""))},{immediate:!0}),e.watch(()=>t.fillInput,Xe),e.watch(i,Ze),e.onBeforeUpdate(ot),e.onUpdated(Ge),ot(),e.onBeforeUnmount(()=>{clearTimeout(v)}),Object.assign(a,{showPopup:Ye,hidePopup:Ke,removeAtIndex:pe,add:fe,toggleOption:he,setOptionIndex:ge,moveOptionSelection:be,filter:Pe,updateMenuPosition:Ge,updateInputValue:Ee,isOptionSelected:xe,getEmittingOptionValue:ve,isOptionDisabled:(...e)=>ue.value.apply(null,e),getOptionValue:(...e)=>re.value.apply(null,e),getOptionLabel:(...e)=>se.value.apply(null,e)}),Object.assign(I,{innerValue:N,fieldClass:e.computed(()=>`q-select q-field--auto-height q-select--with${!0!==t.useInput?"out":""}-input`+` q-select--with${!0!==t.useChips?"out":""}-chips`+` q-select--${!0===t.multiple?"multiple":"single"}`),inputRef:x,targetRef:_,hasValue:H,showPopup:Ye,floatingLabel:e.computed(()=>(!0===t.hideSelected?u.value.length>0:!0===H.value)||Hr(t.displayValue)),getControlChild:()=>{if(!1!==I.editable.value&&(!0===r.value||!0!==K.value||void 0!==o["no-option"]))return!0===m?De():Ae()},controlEvents:{onFocusin(e){I.onControlFocusin(e)},onFocusout(e){I.onControlFocusout(e,()=>{Xe(),We()})},onClick(e){if(S(e),!0!==m&&!0===i.value)return We(),void(null!==_.value&&_.value.focus());Ye(e)}},getControl:o=>{const n=Be(),a=!0===o||!0!==r.value||!0!==m;if(!0===t.useInput?n.push(Ve(o,a)):!0===I.editable.value&&!0===a&&(n.push(e.h("div",{ref:_,key:"d_t",class:"no-outline",id:I.targetUid.value,...ee.value,onKeydown:$e,onKeyup:Se,onKeypress:ke})),"string"===typeof t.autocomplete&&t.autocomplete.length>0&&n.push(e.h("input",{class:"q-select__autocomplete-input no-outline",autocomplete:t.autocomplete,onKeyup:qe}))),void 0!==T.value&&!0!==t.disable&&ce.value.length>0){const o=ce.value.map(t=>e.h("option",{value:t,selected:!0}));n.push(e.h("select",{class:"hidden",name:T.value,multiple:t.multiple},o))}return e.h("div",{class:"q-field__native row items-center",...I.splitAttrs.attributes.value},n)},getInnerAppend:()=>!0!==t.loading&&!0!==d.value&&!0!==t.hideDropdownIcon?[e.h(et,{class:"q-select__dropdown-icon"+(!0===i.value?" rotate-180":""),name:ae.value})]:null}),Yr(I)}});const Au=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],Fu=["wave","pulse","pulse-x","pulse-y","fade","blink","none"];var Ru=e.defineComponent({name:"QSkeleton",props:{...at,tag:{type:String,default:"div"},type:{type:String,validator:e=>Au.includes(e),default:"rect"},animation:{type:String,validator:e=>Fu.includes(e),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),l=e.computed(()=>{const e=void 0!==t.size?[t.size,t.size]:[t.width,t.height];return{"--q-skeleton-speed":`${t.animationSpeed}ms`,width:e[0],height:e[1]}}),i=e.computed(()=>`q-skeleton q-skeleton--${!0===a.value?"dark":"light"} q-skeleton--type-${t.type}`+("none"!==t.animation?` q-skeleton--anim q-skeleton--anim-${t.animation}`:"")+(!0===t.square?" q-skeleton--square":"")+(!0===t.bordered?" q-skeleton--bordered":""));return()=>e.h(t.tag,{class:i.value,style:l.value},Fe(o.default))}});const Iu=[["left","center","start","width"],["right","center","end","width"],["top","start","center","height"],["bottom","end","center","height"]];var Nu=e.defineComponent({name:"QSlideItem",props:{...at,leftColor:String,rightColor:String,topColor:String,bottomColor:String,onSlide:Function},emits:["action","top","right","bottom","left"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=lt(t,l),{getCacheWithFn:r}=Ln(),s=e.ref(null);let u,c={},d={},v={};const p=e.computed(()=>!0===l.lang.rtl?{left:"right",right:"left"}:{left:"left",right:"right"}),m=e.computed(()=>"q-slide-item q-item-type overflow-hidden"+(!0===i.value?" q-slide-item--dark q-dark":""));function f(){s.value.style.transform="translate(0,0)"}function h(e,o,a){void 0!==t.onSlide&&n("slide",{side:e,ratio:o,isReset:a})}function g(e){const t=s.value;if(e.isFirst)c={dir:null,size:{left:0,right:0,top:0,bottom:0},scale:0},t.classList.add("no-transition"),Iu.forEach(e=>{if(void 0!==o[e[0]]){const t=v[e[0]];t.style.transform="scale(1)",c.size[e[0]]=t.getBoundingClientRect()[e[3]]}}),c.axis="up"===e.direction||"down"===e.direction?"Y":"X";else{if(e.isFinal)return t.classList.remove("no-transition"),void(1===c.scale?(t.style.transform=`translate${c.axis}(${100*c.dir}%)`,u=setTimeout(()=>{n(c.showing,{reset:f}),n("action",{side:c.showing,reset:f})},230)):(t.style.transform="translate(0,0)",h(c.showing,0,!0)));e.direction="X"===c.axis?e.offset.x<0?"left":"right":e.offset.y<0?"up":"down"}if(void 0===o.left&&e.direction===p.value.right||void 0===o.right&&e.direction===p.value.left||void 0===o.top&&"down"===e.direction||void 0===o.bottom&&"up"===e.direction)return void(t.style.transform="translate(0,0)");let a,l,i;"X"===c.axis?(l="left"===e.direction?-1:1,a=1===l?p.value.left:p.value.right,i=e.distance.x):(l="up"===e.direction?-2:2,a=2===l?"top":"bottom",i=e.distance.y),null!==c.dir&&Math.abs(l)!==Math.abs(c.dir)||(c.dir!==l&&(["left","right","top","bottom"].forEach(e=>{d[e]&&(d[e].style.visibility=a===e?"visible":"hidden")}),c.showing=a,c.dir=l),c.scale=Math.max(0,Math.min(1,(i-40)/c.size[a])),t.style.transform=`translate${c.axis}(${i*l/Math.abs(l)}px)`,v[a].style.transform=`scale(${c.scale})`,h(a,c.scale,!1))}return e.onBeforeUpdate(()=>{d={},v={}}),e.onBeforeUnmount(()=>{clearTimeout(u)}),Object.assign(a,{reset:f}),()=>{const n=[],a={left:void 0!==o[p.value.right],right:void 0!==o[p.value.left],up:void 0!==o.bottom,down:void 0!==o.top},l=Object.keys(a).filter(e=>!0===a[e]);Iu.forEach(a=>{const l=a[0];void 0!==o[l]&&n.push(e.h("div",{ref:e=>{d[l]=e},class:`q-slide-item__${l} absolute-full row no-wrap items-${a[1]} justify-${a[2]}`+(void 0!==t[l+"Color"]?` bg-${t[l+"Color"]}`:"")},[e.h("div",{ref:e=>{v[l]=e}},o[l]())]))});const i=e.h("div",{key:`${0===l.length?"only-":""} content`,ref:s,class:"q-slide-item__content"},Fe(o.default));return 0===l.length?n.push(i):n.push(e.withDirectives(i,r("dir#"+l.join(""),()=>{const e={prevent:!0,stop:!0,mouse:!0};return l.forEach(t=>{e[t]=!0}),[[ba,g,void 0,e]]}))),e.h("div",{class:m.value},n)}}});const ju=e.h("div",{class:"q-space"});var Du=e.defineComponent({name:"QSpace",setup(){return()=>ju}});const Hu=[e.h("g",{transform:"matrix(1 0 0 -1 0 80)"},[e.h("rect",{width:"10",height:"20",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"4.3s",values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"15",width:"10",height:"80",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"2s",values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"30",width:"10",height:"50",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"1.4s",values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"45",width:"10",height:"30",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"2s",values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"})])])];var Qu=e.defineComponent({name:"QSpinnerAudio",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 55 80",xmlns:"http://www.w3.org/2000/svg"},Hu)}});const Uu=[e.h("g",{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"},[e.h("circle",{cx:"5",cy:"50",r:"5"},[e.h("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;5;50;50",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"cx",begin:"0s",dur:"2.2s",values:"5;27;49;5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"27",cy:"5",r:"5"},[e.h("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",from:"5",to:"5",values:"5;50;50;5",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"cx",begin:"0s",dur:"2.2s",from:"27",to:"27",values:"27;49;5;27",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"49",cy:"50",r:"5"},[e.h("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;50;5;50",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"cx",from:"49",to:"49",begin:"0s",dur:"2.2s",values:"49;5;27;49",calcMode:"linear",repeatCount:"indefinite"})])])];var Wu=e.defineComponent({name:"QSpinnerBall",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg"},Uu)}});const Yu=[e.h("rect",{y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"60",width:"15",height:"140",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])];var Ku=e.defineComponent({name:"QSpinnerBars",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg"},Yu)}});const Xu=[e.h("rect",{x:"25",y:"25",width:"50",height:"50",fill:"none","stroke-width":"4",stroke:"currentColor"},[e.h("animateTransform",{id:"spinnerBox",attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",dur:"0.5s",begin:"rectBox.end"})]),e.h("rect",{x:"27",y:"27",width:"46",height:"50",fill:"currentColor"},[e.h("animate",{id:"rectBox",attributeName:"height",begin:"0s;spinnerBox.end",dur:"1.3s",from:"50",to:"0",fill:"freeze"})])];var Zu=e.defineComponent({name:"QSpinnerBox",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Xu)}});const Gu=[e.h("circle",{cx:"50",cy:"50",r:"48",fill:"none","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor"}),e.h("line",{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"85",y2:"50.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2s",repeatCount:"indefinite"})]),e.h("line",{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"49.5",y2:"74"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"15s",repeatCount:"indefinite"})])];var Ju=e.defineComponent({name:"QSpinnerClock",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Gu)}});const ec=[e.h("rect",{x:"0",y:"0",width:" 100",height:"100",fill:"none"}),e.h("path",{d:"M78,19H22c-6.6,0-12,5.4-12,12v31c0,6.6,5.4,12,12,12h37.2c0.4,3,1.8,5.6,3.7,7.6c2.4,2.5,5.1,4.1,9.1,4 c-1.4-2.1-2-7.2-2-10.3c0-0.4,0-0.8,0-1.3h8c6.6,0,12-5.4,12-12V31C90,24.4,84.6,19,78,19z",fill:"currentColor"}),e.h("circle",{cx:"30",cy:"47",r:"5",fill:"#fff"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;1;1",keyTimes:"0;0.2;1",dur:"1s",repeatCount:"indefinite"})]),e.h("circle",{cx:"50",cy:"47",r:"5",fill:"#fff"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.2;0.4;1",dur:"1s",repeatCount:"indefinite"})]),e.h("circle",{cx:"70",cy:"47",r:"5",fill:"#fff"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.4;0.6;1",dur:"1s",repeatCount:"indefinite"})])];var tc=e.defineComponent({name:"QSpinnerComment",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ec)}});const oc=[e.h("rect",{x:"0",y:"0",width:" 100",height:"100",fill:"none"}),e.h("g",{transform:"translate(25 25)"},[e.h("rect",{x:"-20",y:"-20",width:" 40",height:"40",fill:"currentColor",opacity:"0.9"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),e.h("g",{transform:"translate(75 25)"},[e.h("rect",{x:"-20",y:"-20",width:" 40",height:"40",fill:"currentColor",opacity:"0.8"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.1s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),e.h("g",{transform:"translate(25 75)"},[e.h("rect",{x:"-20",y:"-20",width:" 40",height:"40",fill:"currentColor",opacity:"0.7"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.3s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),e.h("g",{transform:"translate(75 75)"},[e.h("rect",{x:"-20",y:"-20",width:" 40",height:"40",fill:"currentColor",opacity:"0.6"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.2s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])])];var nc=e.defineComponent({name:"QSpinnerCube",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},oc)}});const ac=[e.h("circle",{cx:"15",cy:"15",r:"15"},[e.h("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"60",cy:"15",r:"9","fill-opacity":".3"},[e.h("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"fill-opacity",from:".5",to:".5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"105",cy:"15",r:"15"},[e.h("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})])];var lc=e.defineComponent({name:"QSpinnerDots",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg"},ac)}});const ic=[e.h("g",{transform:"translate(20 50)"},[e.h("rect",{x:"-10",y:"-30",width:" 20",height:"60",fill:"currentColor",opacity:"0.6"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])]),e.h("g",{transform:"translate(50 50)"},[e.h("rect",{x:"-10",y:"-30",width:" 20",height:"60",fill:"currentColor",opacity:"0.8"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.1s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])]),e.h("g",{transform:"translate(80 50)"},[e.h("rect",{x:"-10",y:"-30",width:" 20",height:"60",fill:"currentColor",opacity:"0.9"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.2s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])])];var rc=e.defineComponent({name:"QSpinnerFacebook",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},ic)}});const sc=[e.h("g",{transform:"translate(-20,-20)"},[e.h("path",{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"90 50 50",to:"0 50 50",dur:"1s",repeatCount:"indefinite"})])]),e.h("g",{transform:"translate(20,20) rotate(15 50 50)"},[e.h("path",{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"90 50 50",dur:"1s",repeatCount:"indefinite"})])])];var uc=e.defineComponent({name:"QSpinnerGears",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},sc)}});const cc=[e.h("circle",{cx:"12.5",cy:"12.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"12.5",cy:"52.5",r:"12.5","fill-opacity":".5"},[e.h("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"52.5",cy:"12.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"52.5",cy:"52.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"92.5",cy:"12.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"92.5",cy:"52.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"12.5",cy:"92.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"52.5",cy:"92.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"92.5",cy:"92.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})])];var dc=e.defineComponent({name:"QSpinnerGrid",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg"},cc)}});const vc=[e.h("path",{d:"M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.716-6.002 11.47-7.65 17.304-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z","fill-opacity":".5"},[e.h("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("path",{d:"M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.593-2.32 17.308 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z","fill-opacity":".5"},[e.h("animate",{attributeName:"fill-opacity",begin:"0.7s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("path",{d:"M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"})];var pc=e.defineComponent({name:"QSpinnerHearts",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 140 64",xmlns:"http://www.w3.org/2000/svg"},vc)}});const mc=[e.h("g",[e.h("path",{fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"10",d:"M58.4,51.7c-0.9-0.9-1.4-2-1.4-2.3s0.5-0.4,1.4-1.4 C70.8,43.8,79.8,30.5,80,15.5H70H30H20c0.2,15,9.2,28.1,21.6,32.3c0.9,0.9,1.4,1.2,1.4,1.5s-0.5,1.6-1.4,2.5 C29.2,56.1,20.2,69.5,20,85.5h10h40h10C79.8,69.5,70.8,55.9,58.4,51.7z"}),e.h("clipPath",{id:"uil-hourglass-clip1"},[e.h("rect",{x:"15",y:"20",width:" 70",height:"25"},[e.h("animate",{attributeName:"height",from:"25",to:"0",dur:"1s",repeatCount:"indefinite",values:"25;0;0",keyTimes:"0;0.5;1"}),e.h("animate",{attributeName:"y",from:"20",to:"45",dur:"1s",repeatCount:"indefinite",values:"20;45;45",keyTimes:"0;0.5;1"})])]),e.h("clipPath",{id:"uil-hourglass-clip2"},[e.h("rect",{x:"15",y:"55",width:" 70",height:"25"},[e.h("animate",{attributeName:"height",from:"0",to:"25",dur:"1s",repeatCount:"indefinite",values:"0;25;25",keyTimes:"0;0.5;1"}),e.h("animate",{attributeName:"y",from:"80",to:"55",dur:"1s",repeatCount:"indefinite",values:"80;55;55",keyTimes:"0;0.5;1"})])]),e.h("path",{d:"M29,23c3.1,11.4,11.3,19.5,21,19.5S67.9,34.4,71,23H29z","clip-path":"url(#uil-hourglass-clip1)",fill:"currentColor"}),e.h("path",{d:"M71.6,78c-3-11.6-11.5-20-21.5-20s-18.5,8.4-21.5,20H71.6z","clip-path":"url(#uil-hourglass-clip2)",fill:"currentColor"}),e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",repeatCount:"indefinite",dur:"1s",values:"0 50 50;0 50 50;180 50 50",keyTimes:"0;0.7;1"})])];var fc=e.defineComponent({name:"QSpinnerHourglass",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},mc)}});const hc=[e.h("path",{d:"M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z",fill:"none",stroke:"currentColor","stroke-width":"8","stroke-dasharray":"10.691205342610678 10.691205342610678","stroke-dashoffset":"0"},[e.h("animate",{attributeName:"stroke-dashoffset",from:"0",to:"21.382410685221355",begin:"0",dur:"2s",repeatCount:"indefinite",fill:"freeze"})])];var gc=e.defineComponent({name:"QSpinnerInfinity",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},hc)}});const bc=[e.h("g",{"stroke-width":"4","stroke-linecap":"round"},[e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(180)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(210)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(240)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".1;0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(270)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".15;.1;0;1;.85;.7;.65;.55;.45;.35;.25;.15",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(300)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".25;.15;.1;0;1;.85;.7;.65;.55;.45;.35;.25",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(330)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".35;.25;.15;.1;0;1;.85;.7;.65;.55;.45;.35",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(0)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".45;.35;.25;.15;.1;0;1;.85;.7;.65;.55;.45",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(30)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".55;.45;.35;.25;.15;.1;0;1;.85;.7;.65;.55",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(60)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".65;.55;.45;.35;.25;.15;.1;0;1;.85;.7;.65",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(90)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".7;.65;.55;.45;.35;.25;.15;.1;0;1;.85;.7",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(120)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".85;.7;.65;.55;.45;.35;.25;.15;.1;0;1;.85",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(150)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"})])])];var yc=e.defineComponent({name:"QSpinnerIos",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 64 64"},bc)}});const wc=[e.h("circle",{cx:"50",cy:"50",r:"44",fill:"none","stroke-width":"4","stroke-opacity":".5",stroke:"currentColor"}),e.h("circle",{cx:"8",cy:"54",r:"6",fill:"currentColor","stroke-width":"3",stroke:"currentColor"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 48",to:"360 50 52",dur:"2s",repeatCount:"indefinite"})])];var xc=e.defineComponent({name:"QSpinnerOrbit",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},wc)}});const _c=[e.h("g",{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"},[e.h("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),e.h("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])];var Cc=e.defineComponent({name:"QSpinnerOval",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},_c)}});const Sc=[e.h("path",{d:"M0 50A50 50 0 0 1 50 0L50 50L0 50",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"0.8s",repeatCount:"indefinite"})]),e.h("path",{d:"M50 0A50 50 0 0 1 100 50L50 50L50 0",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"1.6s",repeatCount:"indefinite"})]),e.h("path",{d:"M100 50A50 50 0 0 1 50 100L50 50L100 50",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2.4s",repeatCount:"indefinite"})]),e.h("path",{d:"M50 100A50 50 0 0 1 0 50L50 50L50 100",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"3.2s",repeatCount:"indefinite"})])];var qc=e.defineComponent({name:"QSpinnerPie",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Sc)}});const kc=[e.h("g",{fill:"none","fill-rule":"evenodd","stroke-width":"2"},[e.h("circle",{cx:"22",cy:"22",r:"1"},[e.h("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]),e.h("circle",{cx:"22",cy:"22",r:"1"},[e.h("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})])])];var $c=e.defineComponent({name:"QSpinnerPuff",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg"},kc)}});const Mc=[e.h("g",{transform:"scale(0.55)"},[e.h("circle",{cx:"30",cy:"150",r:"30",fill:"currentColor"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})]),e.h("path",{d:"M90,150h30c0-49.7-40.3-90-90-90v30C63.1,90,90,116.9,90,150z",fill:"currentColor"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.1",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})]),e.h("path",{d:"M150,150h30C180,67.2,112.8,0,30,0v30C96.3,30,150,83.7,150,150z",fill:"currentColor"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.2",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})])])];var Tc=e.defineComponent({name:"QSpinnerRadio",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Mc)}});const Bc=[e.h("g",{fill:"none","fill-rule":"evenodd",transform:"translate(1 1)","stroke-width":"2"},[e.h("circle",{cx:"22",cy:"22",r:"6"},[e.h("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"22",cy:"22",r:"6"},[e.h("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"22",cy:"22",r:"8"},[e.h("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})])])];var Oc=e.defineComponent({name:"QSpinnerRings",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"},Bc)}});const Vc=[e.h("defs",[e.h("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},[e.h("stop",{"stop-color":"currentColor","stop-opacity":"0",offset:"0%"}),e.h("stop",{"stop-color":"currentColor","stop-opacity":".631",offset:"63.146%"}),e.h("stop",{"stop-color":"currentColor",offset:"100%"})])]),e.h("g",{transform:"translate(1 1)",fill:"none","fill-rule":"evenodd"},[e.h("path",{d:"M36 18c0-9.94-8.06-18-18-18",stroke:"url(#a)","stroke-width":"2"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})]),e.h("circle",{fill:"currentColor",cx:"36",cy:"18",r:"1"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})])])];var zc=e.defineComponent({name:"QSpinnerTail",props:qt,setup(t){const{cSize:o,classes:n}=kt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},Vc)}}),Lc=e.defineComponent({name:"QSplitter",props:{...at,modelValue:{type:Number,required:!0},reverse:Boolean,unit:{type:String,default:"%",validator:e=>["%","px"].includes(e)},limits:{type:Array,validator:e=>{return 2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1]&&(e[0]>=0&&e[0]<=e[1]))}},emitImmediately:Boolean,horizontal:Boolean,disable:Boolean,beforeClass:[Array,String,Object],afterClass:[Array,String,Object],separatorClass:[Array,String,Object],separatorStyle:[Array,String,Object]},emits:["update:modelValue"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=lt(t,a),i=e.ref(null),r={before:e.ref(null),after:e.ref(null)},s=e.computed(()=>"q-splitter no-wrap "+`${!0===t.horizontal?"q-splitter--horizontal column":"q-splitter--vertical row"}`+` q-splitter--${!0===t.disable?"disabled":"workable"}`+(!0===l.value?" q-splitter--dark":"")),u=e.computed(()=>!0===t.horizontal?"height":"width"),c=e.computed(()=>!0!==t.reverse?"before":"after"),d=e.computed(()=>void 0!==t.limits?t.limits:"%"===t.unit?[10,90]:[50,1/0]);function v(e){return("%"===t.unit?e:Math.round(e))+t.unit}const p=e.computed(()=>({[c.value]:{[u.value]:v(t.modelValue)}}));let m,f,h,g,b;function y(e){if(!0===e.isFirst){const e=i.value.getBoundingClientRect()[u.value];return m=!0===t.horizontal?"up":"left",f="%"===t.unit?100:e,h=Math.min(f,d.value[1],Math.max(d.value[0],t.modelValue)),g=(!0!==t.reverse?1:-1)*(!0===t.horizontal?1:!0===a.lang.rtl?-1:1)*("%"===t.unit?0===e?0:100/e:1),void i.value.classList.add("q-splitter--active")}if(!0===e.isFinal)return b!==t.modelValue&&n("update:modelValue",b),void i.value.classList.remove("q-splitter--active");const o=h+g*(e.direction===m?-1:1)*e.distance[!0===t.horizontal?"y":"x"];b=Math.min(f,d.value[1],Math.max(d.value[0],o)),r[c.value].value.style[u.value]=v(b),!0===t.emitImmediately&&t.modelValue!==b&&n("update:modelValue",b)}const w=e.computed(()=>{return[[ba,y,void 0,{[!0===t.horizontal?"vertical":"horizontal"]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]});function x(e,t){e<t[0]?n("update:modelValue",t[0]):e>t[1]&&n("update:modelValue",t[1])}return e.watch(()=>t.modelValue,e=>{x(e,d.value)}),e.watch(()=>t.limits,()=>{e.nextTick(()=>{x(t.modelValue,d.value)})}),()=>{const n=[e.h("div",{ref:r.before,class:["q-splitter__panel q-splitter__before"+(!0===t.reverse?" col":""),t.beforeClass],style:p.value.before},Fe(o.before)),e.h("div",{class:["q-splitter__separator",t.separatorClass],style:t.separatorStyle,"aria-disabled":!0===t.disable?"true":void 0},[je("div",{class:"q-splitter__separator-area absolute-full"},Fe(o.separator),"sep",!0!==t.disable,()=>w.value)]),e.h("div",{ref:r.after,class:["q-splitter__panel q-splitter__after"+(!0===t.reverse?"":" col"),t.afterClass],style:p.value.after},Fe(o.after))];return e.h("div",{class:s.value,ref:i},Ie(o.default,n))}}}),Ec=e.defineComponent({name:"StepHeader",props:{stepper:{},step:{},goToPanel:Function},setup(t,{attrs:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.ref(null),l=e.computed(()=>t.stepper.modelValue===t.step.name),i=e.computed(()=>{const e=t.step.disable;return!0===e||""===e}),r=e.computed(()=>{const e=t.step.error;return!0===e||""===e}),s=e.computed(()=>{const e=t.step.done;return!1===i.value&&(!0===e||""===e)}),u=e.computed(()=>{const e=t.step.headerNav,o=!0===e||""===e||void 0===e;return!1===i.value&&t.stepper.headerNav&&o}),c=e.computed(()=>{return t.step.prefix&&!1===l.value&&!1===r.value&&!1===s.value}),d=e.computed(()=>{return!0===l.value?t.step.activeIcon||t.stepper.activeIcon||n.iconSet.stepper.active:!0===r.value?t.step.errorIcon||t.stepper.errorIcon||n.iconSet.stepper.error:!1===i.value&&!0===s.value?t.step.doneIcon||t.stepper.doneIcon||n.iconSet.stepper.done:t.step.icon||t.stepper.inactiveIcon}),v=e.computed(()=>{const e=!0===r.value?t.step.errorColor||t.stepper.errorColor:void 0;if(!0===l.value){const o=t.step.activeColor||t.stepper.activeColor||t.step.color;return void 0!==o?o:e}return void 0!==e?e:!1===i.value&&!0===s.value?t.step.doneColor||t.stepper.doneColor||t.step.color||t.stepper.inactiveColor:t.step.color||t.stepper.inactiveColor}),p=e.computed(()=>{return"q-stepper__tab col-grow flex items-center no-wrap relative-position"+(void 0!==v.value?` text-${v.value}`:"")+(!0===r.value?" q-stepper__tab--error":"")+(!0===l.value?" q-stepper__tab--active":"")+(!0===s.value?" q-stepper__tab--done":"")+(!0===u.value?" q-stepper__tab--navigation q-focusable q-hoverable":"")+(!0===i.value?" q-stepper__tab--disabled":"")}),m=e.computed(()=>!0===t.stepper.headerNav&&u.value);function f(){null!==a.value&&a.value.focus(),!1===l.value&&t.goToPanel(t.step.name)}function h(e){13===e.keyCode&&!1===l.value&&t.goToPanel(t.step.name)}return()=>{const n={class:p.value};!0===u.value&&(n.onClick=f,n.onKeyup=h,Object.assign(n,!0===i.value?{tabindex:-1,"aria-disabled":"true"}:{tabindex:o.tabindex||0}));const l=[e.h("div",{class:"q-focus-helper",tabindex:-1,ref:a}),e.h("div",{class:"q-stepper__dot row flex-center q-stepper__line relative-position"},[e.h("span",{class:"row flex-center"},[!0===c.value?t.step.prefix:e.h(et,{name:d.value})])])];if(void 0!==t.step.title&&null!==t.step.title){const o=[e.h("div",{class:"q-stepper__title"},t.step.title)];void 0!==t.step.caption&&null!==t.step.caption&&o.push(e.h("div",{class:"q-stepper__caption"},t.step.caption)),l.push(e.h("div",{class:"q-stepper__label q-stepper__line relative-position"},o))}return e.withDirectives(e.h("div",n,l),[[Nt,m.value]])}}});function Pc(t){return e.h("div",{class:"q-stepper__step-content"},[e.h("div",{class:"q-stepper__step-inner"},Fe(t.default))])}const Ac={setup(e,{slots:t}){return()=>Pc(t)}};var Fc=e.defineComponent({name:"QStep",props:{...En,icon:String,color:String,title:{type:String,required:!0},caption:String,prefix:[String,Number],doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String,headerNav:{type:Boolean,default:!0},done:Boolean,error:Boolean},setup(t,{slots:o}){const n=e.inject(ne,()=>{console.error("QStep needs to be child of QStepper")}),{getCacheWithFn:a}=Ln(),l=e.ref(null),i=e.computed(()=>n.value.modelValue===t.name);e.watch(i,t=>{!0===t&&!0===n.value.vertical&&e.nextTick(()=>{null!==l.value&&(l.value.scrollTop=0)})});const r=e.computed(()=>"string"===typeof t.name||"number"===typeof t.name?t.name:String(t.name));function s(){const t=n.value.vertical;return!0===t&&!0===n.value.keepAlive?e.h(e.KeepAlive,n.value.keepAliveProps.value,!0===i.value?[e.h(!0===n.value.needsUniqueKeepAliveWrapper.value?a(r.value,()=>({...Ac,name:r.value})):Ac,{key:r.value},o.default)]:void 0):!0!==t||!0===i.value?Pc(o):void 0}return()=>e.h("div",{ref:l,class:"q-stepper__step"},!0===n.value.vertical?[e.h(Ec,{stepper:n.value,step:t,goToPanel:n.value.goToPanel}),!0===n.value.animated?e.h(gr,s):s()]:[s()])}});const Rc=/(-\w)/g;function Ic(e){const t={};return Object.keys(e).forEach(o=>{const n=o.replace(Rc,e=>e[1].toUpperCase());t[n]=e[o]}),t}var Nc=e.defineComponent({name:"QStepper",props:{...at,...An,flat:Boolean,bordered:Boolean,alternativeLabels:Boolean,headerNav:Boolean,contracted:Boolean,headerClass:String,inactiveColor:String,inactiveIcon:String,doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String},emits:Fn,setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q),{updatePanelsList:l,isValidPanelName:i,updatePanelIndex:r,getPanelContent:s,getPanels:u,panelDirectives:c,goToPanel:d,keepAliveProps:v,needsUniqueKeepAliveWrapper:p}=Rn();e.provide(ne,e.computed(()=>({goToPanel:d,keepAliveProps:v,needsUniqueKeepAliveWrapper:p,...t})));const m=e.computed(()=>`q-stepper q-stepper--${!0===t.vertical?"vertical":"horizontal"}`+(!0===t.flat||!0===a.value?" q-stepper--flat no-shadow":"")+(!0===t.bordered||!0===a.value&&!1===t.flat?" q-stepper--bordered":"")+(!0===t.contracted?" q-stepper--contracted":"")+(!0===a.value?" q-stepper--dark q-dark":"")),f=e.computed(()=>"q-stepper__header row items-stretch justify-between"+` q-stepper__header--${!0===t.alternativeLabels?"alternative":"standard"}-labels`+(!1===t.flat||!0===t.bordered?" q-stepper__header--border":"")+(void 0!==t.headerClass?` ${t.headerClass}`:""));function h(){const n=Fe(o.message,[]);if(!0===t.vertical){i(t.modelValue)&&r();const a=e.h("div",{class:"q-stepper__content"},Fe(o.default));return void 0===n?[a]:n.concat(a)}return[e.h("div",{class:f.value},u().map(o=>{const n=Ic(o.props);return e.h(Ec,{key:n.name,stepper:t,step:n,goToPanel:d})})),n,je("div",{class:"q-stepper__content q-panel-parent"},s(),"cont",t.swipeable,()=>c.value)]}return()=>{return l(o),e.h("div",{class:m.value},Ie(o.navigation,h()))}}}),jc=e.defineComponent({name:"QStepperNavigation",setup(t,{slots:o}){return()=>e.h("div",{class:"q-stepper__nav"},Fe(o.default))}}),Dc=e.defineComponent({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),{proxy:{$q:l}}=a;return()=>{if(void 0===t.props)return e.h("th",{class:!0===t.autoWidth?"q-table--col-auto-width":""},Fe(o.default));let i,r;const s=a.vnode.key;if(s){if(i=t.props.colsMap[s],void 0===i)return}else i=t.props.col;if(!0===i.sortable){const t="right"===i.align?"unshift":"push";r=Re(o.default,[]),r[t](e.h(et,{class:i.__iconClass,name:l.iconSet.table.arrowUp}))}else r=Fe(o.default);const u={class:i.__thClass+(!0===t.autoWidth?" q-table--col-auto-width":""),style:i.headerStyle,onClick:e=>{!0===i.sortable&&t.props.sort(i),n("click",e)}};return e.h("th",u,r)}}});function Hc(t,o){return e.h("div",t,[e.h("table",{class:"q-table"},o)])}const Qc={list:Os,table:Is},Uc=["list","table","__qtable"];var Wc=e.defineComponent({name:"QVirtualScroll",props:{...Ou,type:{type:String,default:"list",validator:e=>Uc.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},setup(t,{slots:o,attrs:n}){let a;const l=e.ref(null),i=e.computed(()=>t.itemsSize>=0&&void 0!==t.itemsFn?parseInt(t.itemsSize,10):Array.isArray(t.items)?t.items.length:0),{virtualScrollSliceRange:r,localResetVirtualScroll:s,padVirtualScroll:u,onVirtualScrollEvt:c}=Vu({virtualScrollLength:i,getVirtualScrollTarget:h,getVirtualScrollEl:f}),d=e.computed(()=>{if(0===i.value)return[];const e=(e,t)=>({index:r.value.from+t,item:e});return void 0===t.itemsFn?t.items.slice(r.value.from,r.value.to).map(e):t.itemsFn(r.value.from,r.value.to-r.value.from).map(e)}),v=e.computed(()=>"q-virtual-scroll q-virtual-scroll"+(!0===t.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==t.scrollTarget?"":" scroll")),m=e.computed(()=>void 0!==t.scrollTarget?{}:{tabindex:0});function f(){return l.value.$el||l.value}function h(){return a}function g(){a=Mo(f(),t.scrollTarget),a.addEventListener("scroll",c,p.passive)}function b(){void 0!==a&&(a.removeEventListener("scroll",c,p.passive),a=void 0)}function y(){let e=u("list"===t.type?"div":"tbody",d.value.map(o.default));return void 0!==o.before&&(e=o.before().concat(e)),Ie(o.after,e)}return e.watch(i,()=>{s()}),e.watch(()=>t.scrollTarget,()=>{b(),g()}),e.onBeforeMount(()=>{s()}),e.onMounted(()=>{g()}),e.onBeforeUnmount(()=>{b()}),()=>{if(void 0!==o.default)return"__qtable"===t.type?Hc({ref:l,class:"q-table__middle "+v.value},y()):e.h(Qc[t.type],{...n,ref:l,class:[n.class,v.value],...m.value},y);console.error("QVirtualScroll: default scoped slot is required for rendering")}}});function Yc(e,t){return new Date(e)-new Date(t)}const Kc={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>"ad"===e||"da"===e,default:"ad"}};function Xc(t,o,n,a){const l=e.computed(()=>{const{sortBy:e}=o.value;return e&&n.value.find(t=>t.name===e)||null}),i=e.computed(()=>void 0!==t.sortMethod?t.sortMethod:(e,t,o)=>{const a=n.value.find(e=>e.name===t);if(void 0===a||void 0===a.field)return e;const l=!0===o?-1:1,i="function"===typeof a.field?e=>a.field(e):e=>e[a.field];return e.sort((e,t)=>{let o=i(e),n=i(t);return null===o||void 0===o?-1*l:null===n||void 0===n?1*l:void 0!==a.sort?a.sort(o,n,e,t)*l:!0===Yn(o)&&!0===Yn(n)?(o-n)*l:!0===Wn(o)&&!0===Wn(n)?Yc(o,n)*l:"boolean"===typeof o&&"boolean"===typeof n?(o-n)*l:([o,n]=[o,n].map(e=>(e+"").toLocaleString().toLowerCase()),o<n?-1*l:o===n?0:l)})});function r(e){let l=t.columnSortOrder;if(e===Object(e))e.sortOrder&&(l=e.sortOrder),e=e.name;else{const t=n.value.find(t=>t.name===e);void 0!==t&&t.sortOrder&&(l=t.sortOrder)}let{sortBy:i,descending:r}=o.value;i!==e?(i=e,r="da"===l):!0===t.binaryStateSort?r=!r:!0===r?"ad"===l?i=null:r=!1:"ad"===l?r=!0:i=null,a({sortBy:i,descending:r,page:1})}return{columnToSort:l,computedSortMethod:i,sort:r}}const Zc={filter:[String,Object],filterMethod:Function};function Gc(t,o){const n=e.computed(()=>void 0!==t.filterMethod?t.filterMethod:(e,t,o,n)=>{const a=t?t.toLowerCase():"";return e.filter(e=>o.some(t=>{const o=n(t,e)+"",l="undefined"===o||"null"===o?"":o.toLowerCase();return-1!==l.indexOf(a)}))});return e.watch(()=>t.filter,()=>{e.nextTick(()=>{o({page:1},!0)})},{deep:!0}),{computedFilterMethod:n}}function Jc(e,t){for(const o in t)if(t[o]!==e[o])return!1;return!0}function ed(e){return e.page<1&&(e.page=1),void 0!==e.rowsPerPage&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const td={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":Function};function od(t,o){const{props:n,emit:a}=t,l=e.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length>0?n.rowsPerPageOptions[0]:5},n.pagination)),i=e.computed(()=>{const e=void 0!==n["onUpdate:pagination"]?{...l.value,...n.pagination}:l.value;return ed(e)}),r=e.computed(()=>void 0!==i.value.rowsNumber);function s(e){u({pagination:e,filter:n.filter})}function u(t={}){e.nextTick(()=>{a("request",{pagination:t.pagination||i.value,filter:t.filter||n.filter,getCellValue:o})})}function c(e,t){const o=ed({...i.value,...e});Jc(i.value,o)?!0===r.value&&!0===t&&s(o):!0!==r.value?void 0!==n.pagination&&void 0!==n["onUpdate:pagination"]?a("update:pagination",o):l.value=o:s(o)}return{innerPagination:l,computedPagination:i,isServerSide:r,requestServerInteraction:u,setPagination:c}}function nd(t,o,n,a,l,i){const{props:r,emit:s,proxy:{$q:u}}=t,c=e.computed(()=>!0===a.value?n.value.rowsNumber||0:i.value),d=e.computed(()=>{const{page:e,rowsPerPage:t}=n.value;return(e-1)*t}),v=e.computed(()=>{const{page:e,rowsPerPage:t}=n.value;return e*t}),p=e.computed(()=>1===n.value.page),m=e.computed(()=>0===n.value.rowsPerPage?1:Math.max(1,Math.ceil(c.value/n.value.rowsPerPage))),f=e.computed(()=>0===v.value||n.value.page>=m.value),h=e.computed(()=>{const e=r.rowsPerPageOptions.includes(o.value.rowsPerPage)?r.rowsPerPageOptions:[o.value.rowsPerPage].concat(r.rowsPerPageOptions);return e.map(e=>({label:0===e?u.lang.table.allRows:""+e,value:e}))});function g(){l({page:1})}function b(){const{page:e}=n.value;e>1&&l({page:e-1})}function y(){const{page:e,rowsPerPage:t}=n.value;v.value>0&&e*t<c.value&&l({page:e+1})}function w(){l({page:m.value})}return e.watch(m,(e,t)=>{if(e===t)return;const o=n.value.page;e&&!o?l({page:1}):e<o&&l({page:e})}),void 0!==r["onUpdate:pagination"]&&s("update:pagination",{...n.value}),{firstRowIndex:d,lastRowIndex:v,isFirstPage:p,isLastPage:f,pagesNumber:m,computedRowsPerPageOptions:h,computedRowsNumber:c,firstPage:g,prevPage:b,nextPage:y,lastPage:w}}const ad={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},ld=["update:selected","selection"];function id(t,o,n,a){const l=e.computed(()=>{const e={};return t.selected.map(a.value).forEach(t=>{e[t]=!0}),e}),i=e.computed(()=>{return"none"!==t.selection}),r=e.computed(()=>{return"single"===t.selection}),s=e.computed(()=>{return"multiple"===t.selection}),u=e.computed(()=>n.value.length>0&&n.value.every(e=>!0===l.value[a.value(e)])),c=e.computed(()=>!0!==u.value&&n.value.some(e=>!0===l.value[a.value(e)])),d=e.computed(()=>t.selected.length);function v(e){return!0===l.value[e]}function p(){o("update:selected",[])}function m(e,n,l,i){o("selection",{rows:n,added:l,keys:e,evt:i});const s=!0===r.value?!0===l?n:[]:!0===l?t.selected.concat(n):t.selected.filter(t=>!1===e.includes(a.value(t)));o("update:selected",s)}return{hasSelectionMode:i,singleSelection:r,multipleSelection:s,allRowsSelected:u,someRowsSelected:c,rowsSelectedNumber:d,isRowSelected:v,clearSelection:p,updateSelection:m}}function rd(e){return Array.isArray(e)?e.slice():[]}const sd={expanded:Array},ud=["update:expanded"];function cd(t,o){const n=e.ref(rd(t.expanded));function a(e){return n.value.includes(e)}function l(e){void 0!==t.expanded?o("update:expanded",e):n.value=e}function i(e,t){const o=n.value.slice(),a=o.indexOf(e);!0===t?-1===a&&(o.push(e),l(o)):-1!==a&&(o.splice(a,1),l(o))}return e.watch(()=>t.expanded,e=>{n.value=rd(e)}),{isRowExpanded:a,setExpanded:l,updateExpanded:i}}const dd={visibleColumns:Array};function vd(t,o,n){const a=e.computed(()=>{if(void 0!==t.columns)return t.columns;const e=t.rows[0];return void 0!==e?Object.keys(e).map(t=>({name:t,label:t.toUpperCase(),field:t,align:Yn(e[t])?"right":"left",sortable:!0})):[]}),l=e.computed(()=>{const{sortBy:e,descending:n}=o.value,l=void 0!==t.visibleColumns?a.value.filter(e=>!0===e.required||!0===t.visibleColumns.includes(e.name)):a.value;return l.map(t=>{const o=t.align||"right",a=`text-${o}`;return{...t,align:o,__iconClass:`q-table__sort-icon q-table__sort-icon--${o}`,__thClass:a+(void 0!==t.headerClasses?" "+t.headerClasses:"")+(!0===t.sortable?" sortable":"")+(t.name===e?` sorted ${!0===n?"sort-desc":""}`:""),__tdStyle:void 0!==t.style?"function"!==typeof t.style?()=>t.style:t.style:()=>null,__tdClass:void 0!==t.classes?"function"!==typeof t.classes?()=>a+" "+t.classes:e=>a+" "+t.classes(e):()=>a}})}),i=e.computed(()=>{const e={};return l.value.forEach(t=>{e[t.name]=t}),e}),r=e.computed(()=>{return void 0!==t.tableColspan?t.tableColspan:l.value.length+(!0===n.value?1:0)});return{colList:a,computedCols:l,computedColsMap:i,computedColspan:r}}const pd="q-table__bottom row items-center",md={};Bu.forEach(e=>{md[e]={}});var fd=e.defineComponent({name:"QTable",props:{rows:{type:Array,default:()=>[]},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,...md,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,...at,...In,...dd,...Zc,...td,...sd,...ad,...Kc},emits:["request","virtual-scroll",...Nn,...ud,...ld],setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),{proxy:{$q:l}}=a,i=lt(t,l),{inFullscreen:r,toggleFullscreen:s}=jn(),u=e.computed(()=>"function"===typeof t.rowKey?t.rowKey:e=>e[t.rowKey]),c=e.ref(null),d=e.ref(null),v=e.computed(()=>!0!==t.grid&&!0===t.virtualScroll),p=e.computed(()=>" q-table__card"+(!0===i.value?" q-table__card--dark q-dark":"")+(!0===t.square?" q-table--square":"")+(!0===t.flat?" q-table--flat":"")+(!0===t.bordered?" q-table--bordered":"")),m=e.computed(()=>`q-table__container q-table--${t.separator}-separator column no-wrap`+(!0===t.loading?" q-table--loading":"")+(!0===t.grid?" q-table--grid":p.value)+(!0===i.value?" q-table--dark":"")+(!0===t.dense?" q-table--dense":"")+(!1===t.wrapCells?" q-table--no-wrap":"")+(!0===r.value?" fullscreen scroll":"")),f=e.computed(()=>m.value+(!0===t.loading?" q-table--loading":""));e.watch(()=>t.tableStyle+t.tableClass+t.tableHeaderStyle+t.tableHeaderClass+m.value,()=>{!0===v.value&&null!==d.value&&d.value.reset()});const{innerPagination:h,computedPagination:g,isServerSide:b,requestServerInteraction:y,setPagination:w}=od(a,me),{computedFilterMethod:x}=Gc(t,w),{isRowExpanded:_,setExpanded:C,updateExpanded:S}=cd(t,n),q=e.computed(()=>{let e=t.rows;if(!0===b.value||0===e.length)return e;const{sortBy:o,descending:n}=g.value;return t.filter&&(e=x.value(e,t.filter,F.value,me)),null!==N.value&&(e=j.value(t.rows===e?e.slice():e,o,n)),e}),k=e.computed(()=>q.value.length),$=e.computed(()=>{let e=q.value;if(!0===b.value)return e;const{rowsPerPage:o}=g.value;return 0!==o&&(0===H.value&&t.rows!==e?e.length>Q.value&&(e=e.slice(0,Q.value)):e=e.slice(H.value,Q.value)),e}),{hasSelectionMode:M,singleSelection:T,multipleSelection:B,allRowsSelected:O,someRowsSelected:V,rowsSelectedNumber:z,isRowSelected:L,clearSelection:E,updateSelection:P}=id(t,n,$,u),{colList:A,computedCols:F,computedColsMap:R,computedColspan:I}=vd(t,g,M),{columnToSort:N,computedSortMethod:j,sort:D}=Xc(t,g,A,w),{firstRowIndex:H,lastRowIndex:Q,isFirstPage:U,isLastPage:W,pagesNumber:Y,computedRowsPerPageOptions:K,computedRowsNumber:X,firstPage:Z,prevPage:G,nextPage:J,lastPage:ee}=nd(a,h,g,b,w,k),te=e.computed(()=>0===$.value.length),oe=e.computed(()=>{const e={};return Bu.forEach(o=>{e[o]=t[o]}),void 0===e.virtualScrollItemSize&&(e.virtualScrollItemSize=!0===t.dense?28:48),e});function ne(){!0===v.value&&d.value.reset()}function ae(){if(!0===t.grid)return $e();const n=!0!==t.hideHeader?be:null;if(!0===v.value){const a=o["top-row"],l=o["bottom-row"],i={default:e=>se(e.item,o.body,e.index)};if(void 0!==a){const t=e.h("tbody",a({cols:F.value}));i.before=null===n?()=>t:()=>[n()].concat(t)}else null!==n&&(i.before=n);return void 0!==l&&(i.after=(()=>e.h("tbody",l({cols:F.value})))),e.h(Wc,{ref:d,class:t.tableClass,style:t.tableStyle,...oe.value,items:$.value,type:"__qtable",tableColspan:I.value,onVirtualScroll:ie},i)}const a=[ue()];return null!==n&&a.unshift(n()),Hc({class:["q-table__middle scroll",t.tableClass],style:t.tableStyle},a)}function le(e,t){if(null!==d.value)return void d.value.scrollTo(e,t);e=parseInt(e,10);const o=c.value.querySelector(`tbody tr:nth-of-type(${e+1})`);if(null!==o){const t=c.value.querySelector(".q-table__middle.scroll"),{offsetTop:a}=o,l=a<t.scrollTop?"decrease":"increase";t.scrollTop=a,n("virtual-scroll",{index:e,from:0,to:h.value.rowsPerPage-1,direction:l})}}function ie(e){n("virtual-scroll",e)}function re(){return[e.h(uu,{class:"q-table__linear-progress",color:t.color,dark:i.value,indeterminate:!0,trackColor:"transparent"})]}function se(a,l,r){const s=u.value(a),c=L(s);if(void 0!==l)return l(ce({key:s,row:a,pageIndex:r,__trClass:c?"selected":""}));const d=o["body-cell"],v=F.value.map(t=>{const n=o[`body-cell-${t.name}`],l=void 0!==n?n:d;return void 0!==l?l(de({key:s,row:a,pageIndex:r,col:t})):e.h("td",{class:t.__tdClass(a),style:t.__tdStyle(a)},me(t,a))});if(!0===M.value){const n=o["body-selection"],l=void 0!==n?n(ve({key:s,row:a,pageIndex:r})):[e.h(ra,{modelValue:c,color:t.color,dark:i.value,dense:t.dense,"onUpdate:modelValue":(e,t)=>{P([s],[a],e,t)}})];v.unshift(e.h("td",{class:"q-table--col-auto-width"},l))}const p={key:s,class:{selected:c}};return void 0!==t.onRowClick&&(p.class["cursor-pointer"]=!0,p.onClick=(e=>{n("RowClick",e,a,r)})),void 0!==t.onRowDblclick&&(p.class["cursor-pointer"]=!0,p.onDblclick=(e=>{n("RowDblclick",e,a,r)})),void 0!==t.onRowContextmenu&&(p.class["cursor-pointer"]=!0,p.onContextmenu=(e=>{n("RowContextmenu",e,a,r)})),e.h("tr",p,v)}function ue(){const t=o.body,n=o["top-row"],a=o["bottom-row"];let l=$.value.map((e,o)=>se(e,t,o));return void 0!==n&&(l=n({cols:F.value}).concat(l)),void 0!==a&&(l=l.concat(a({cols:F.value}))),e.h("tbody",l)}function ce(e){return pe(e),e.cols=e.cols.map(t=>{const o={...t};return Object.defineProperty(o,"value",{get:()=>me(t,e.row),configurable:!0,enumerable:!0}),o}),e}function de(e){return pe(e),Object.defineProperty(e,"value",{get:()=>me(e.col,e.row),configurable:!0,enumerable:!0}),e}function ve(e){return pe(e),e}function pe(e){Object.assign(e,{cols:F.value,colsMap:R.value,sort:D,rowIndex:H.value+e.pageIndex,color:t.color,dark:i.value,dense:t.dense}),!0===M.value&&Object.defineProperty(e,"selected",{get:()=>L(e.key),set:(t,o)=>{P([e.key],[e.row],t,o)},configurable:!0,enumerable:!0}),Object.defineProperty(e,"expand",{get:()=>_(e.key),set:t=>{S(e.key,t)},configurable:!0,enumerable:!0})}function me(e,t){const o="function"===typeof e.field?e.field(t):t[e.field];return void 0!==e.format?e.format(o,t):o}const fe=e.computed(()=>({pagination:g.value,pagesNumber:Y.value,isFirstPage:U.value,isLastPage:W.value,firstPage:Z,prevPage:G,nextPage:J,lastPage:ee,inFullscreen:r.value,toggleFullscreen:s}));function he(){const n=o.top,a=o["top-left"],l=o["top-right"],i=o["top-selection"],r=!0===M.value&&void 0!==i&&z.vaue>0,s="q-table__top relative-position row items-center";if(void 0!==n)return e.h("div",{class:s},[n(fe.value)]);let u;return!0===r?u=i(fe.value).slice():(u=[],void 0!==a?u.push(e.h("div",{class:"q-table-control"},[a(fe.value)])):t.title&&u.push(e.h("div",{class:"q-table__control"},[e.h("div",{class:["q-table__title",t.titleClass]},t.title)]))),void 0!==l&&(u.push(e.h("div",{class:"q-table__separator col"})),u.push(e.h("div",{class:"q-table__control"},[l(fe.value)]))),0!==u.length?e.h("div",{class:s},u):void 0}const ge=e.computed(()=>!0===V.value?null:O.value);function be(){const n=ye();return!0===t.loading&&void 0===o.loading&&n.push(e.h("tr",{class:"q-table__progress"},[e.h("th",{class:"relative-position",colspan:I.value},re())])),e.h("thead",n)}function ye(){const n=o.header,a=o["header-cell"];if(void 0!==n)return n(we({header:!0})).slice();const l=F.value.map(t=>{const n=o[`header-cell-${t.name}`],l=void 0!==n?n:a,i=we({col:t});return void 0!==l?l(i):e.h(Dc,{key:t.name,props:i},()=>t.label)});if(!0===T.value&&!0!==t.grid)l.unshift(e.h("th",{class:"q-table--col-auto-width"}," "));else if(!0===B.value){const n=o["header-selection"],a=void 0!==n?n(we({})):[e.h(ra,{color:t.color,modelValue:ge.value,dark:i.value,dense:t.dense,"onUpdate:modelValue":xe})];l.unshift(e.h("th",{class:"q-table--col-auto-width"},a))}return[e.h("tr",{class:t.tableHeaderClass,style:t.tableHeaderStyle},l)]}function we(e){return Object.assign(e,{cols:F.value,sort:D,colsMap:R.value,color:t.color,dark:i.value,dense:t.dense}),!0===B.value&&Object.defineProperty(e,"selected",{get:()=>ge.value,set:xe,configurable:!0,enumerable:!0}),e}function xe(e){!0===V.value&&(e=!1),P($.value.map(u.value),$.value,e)}const _e=e.computed(()=>{const e=[t.iconFirstPage||l.iconSet.table.firstPage,t.iconPrevPage||l.iconSet.table.prevPage,t.iconNextPage||l.iconSet.table.nextPage,t.iconLastPage||l.iconSet.table.lastPage];return!0===l.lang.rtl?e.reverse():e});function Ce(){if(!0===t.hideBottom)return;if(!0===te.value){if(!0===t.hideNoData)return;const n=!0===t.loading?t.loadingLabel||l.lang.table.loading:t.filter?t.noResultsLabel||l.lang.table.noResults:t.noDataLabel||l.lang.table.noData,a=o["no-data"],i=void 0!==a?[a({message:n,icon:l.iconSet.table.warning,filter:t.filter})]:[e.h(et,{class:"q-table__bottom-nodata-icon",name:l.iconSet.table.warning}),n];return e.h("div",{class:pd+" q-table__bottom--nodata"},i)}const n=o.bottom;if(void 0!==n)return e.h("div",{class:pd},[n(fe.value)]);const a=!0!==t.hideSelectedBanner&&!0===M.value&&z.value>0?[e.h("div",{class:"q-table__control"},[e.h("div",[(t.selectedRowsLabel||l.lang.table.selectedRecords)(z.value)])])]:[];return!0!==t.hidePagination?e.h("div",{class:pd+" justify-end"},qe(a)):a.length>0?e.h("div",{class:pd},a):void 0}function Se(e){w({page:1,rowsPerPage:e.value})}function qe(n){let a;const{rowsPerPage:r}=g.value,s=t.paginationLabel||l.lang.table.pagination,u=o.pagination,c=t.rowsPerPageOptions.length>1;if(n.push(e.h("div",{class:"q-table__separator col"})),!0===c&&n.push(e.h("div",{class:"q-table__control"},[e.h("span",{class:"q-table__bottom-item"},[t.rowsPerPageLabel||l.lang.table.recordsPerPage]),e.h(Pu,{class:"q-table__select inline q-table__bottom-item",color:t.color,modelValue:r,options:K.value,displayValue:0===r?l.lang.table.allRows:r,dark:i.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Se})])),void 0!==u)a=u(fe.value);else if(a=[e.h("span",0!==r?{class:"q-table__bottom-item"}:{},[r?s(H.value+1,Math.min(Q.value,X.value),X.value):s(1,k.value,X.value)])],0!==r&&Y.value>1){const o={color:t.color,round:!0,dense:!0,flat:!0};!0===t.dense&&(o.size="sm"),Y.value>2&&a.push(e.h(Xt,{key:"pgFirst",...o,icon:_e.value[0],disable:U.value,onClick:Z})),a.push(e.h(Xt,{key:"pgPrev",...o,icon:_e.value[1],disable:U.value,onClick:G}),e.h(Xt,{key:"pgNext",...o,icon:_e.value[2],disable:W.value,onClick:J})),Y.value>2&&a.push(e.h(Xt,{key:"pgLast",...o,icon:_e.value[3],disable:W.value,onClick:ee}))}return n.push(e.h("div",{class:"q-table__control"},a)),n}function ke(){const n=!0===t.gridHeader?[e.h("table",{class:"q-table"},[be()])]:!0===t.loading&&void 0===o.loading?re():void 0;return e.h("div",{class:"q-table__middle"},n)}function $e(){const a=void 0!==o.item?o.item:a=>{const l=a.cols.map(t=>e.h("div",{class:"q-table__grid-item-row"},[e.h("div",{class:"q-table__grid-item-title"},[t.label]),e.h("div",{class:"q-table__grid-item-value"},[t.value])]));if(!0===M.value){const n=o["body-selection"],r=void 0!==n?n(a):[e.h(ra,{modelValue:a.selected,color:t.color,dark:i.value,dense:t.dense,"onUpdate:modelValue":(e,t)=>{P([a.key],[a.row],e,t)}})];l.unshift(e.h("div",{class:"q-table__grid-item-row"},r),e.h(wr,{dark:i.value}))}const r={class:["q-table__grid-item-card"+p.value,t.cardClass],style:t.cardStyle};return void 0===t.onRowClick&&void 0===t.onRowDblclick||(r.class[0]+=" cursor-pointer",void 0!==t.onRowClick&&(r.onClick=(e=>{n("RowClick",e,a.row,a.pageIndex)})),void 0!==t.onRowDblclick&&(r.onDblclick=(e=>{n("RowDblclick",e,a.row,a.pageIndex)}))),e.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(!0===a.selected?"q-table__grid-item--selected":"")},[e.h("div",r,l)])};return e.h("div",{class:["q-table__grid-content row",t.cardContainerClass],style:t.cardContainerStyle},$.value.map((e,t)=>{return a(ce({key:u.value(e),row:e,pageIndex:t}))}))}return Object.assign(a.proxy,{requestServerInteraction:y,setPagination:w,firstPage:Z,prevPage:G,nextPage:J,lastPage:ee,isRowSelected:L,clearSelection:E,isRowExpanded:_,setExpanded:C,sort:D,resetVirtualScroll:ne,scrollTo:le,getCellValue:me}),Object.defineProperty(a.proxy,"filteredSortedRows",{get:()=>q.value,enumerable:!0}),Object.defineProperty(a.proxy,"computedRows",{get:()=>$.value,enumerable:!0}),Object.defineProperty(a.proxy,"computedRowsNumber",{get:()=>X.value,enumerable:!0}),()=>{const n=[he()],a={ref:c,class:f.value};return!0===t.grid?n.push(ke()):Object.assign(a,{class:[a.class,t.cardClass],style:t.cardStyle}),n.push(ae(),Ce()),!0===t.loading&&void 0!==o.loading&&n.push(o.loading()),e.h("div",a,n)}}}),hd=e.defineComponent({name:"QTr",props:{props:Object,noHover:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-tr"+(void 0===t.props||!0===t.props.header?"":" "+t.props.__trClass)+(!0===t.noHover?" q-tr--no-hover":""));return()=>e.h("tr",{class:n.value},Fe(o.default))}}),gd=e.defineComponent({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=e.computed(()=>"q-td"+(!0===t.autoWidth?" q-table--col-auto-width":"")+(!0===t.noHover?" q-td--no-hover":"")+" ");return()=>{if(void 0===t.props)return e.h("td",{class:a.value},Fe(o.default));const l=n.vnode.key,i=(void 0!==t.props.colsMap?t.props.colsMap[l]:null)||t.props.col;if(void 0===i)return;const{row:r}=t.props;return e.h("td",{class:a.value+i.__tdClass(r),style:i.__tdStyle(r)},Fe(o.default))}}}),bd=e.defineComponent({name:"QRouteTab",props:{..._t,...Aa,to:{required:!0}},emits:Pa,setup(t,{slots:o,emit:n}){const a=Ct(),{renderTab:l,$tabs:i}=Fa(t,o,n,{exact:e.computed(()=>t.exact),...a});return e.watch(()=>t.name+t.exact+(a.linkRoute.value||{}).href,()=>{i.verifyRouteModel()}),()=>l(a.linkTag.value,a.linkProps.value)}});function yd(e,t){if(null!==e.hour){if(null===e.minute)return"minute";if(!0===t&&null===e.second)return"second"}return"hour"}function wd(){const e=new Date;return{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}}var xd=e.defineComponent({name:"QTime",props:{...at,...wn,...kl,mask:{default:null},format24h:{type:Boolean,default:null},defaultDate:{type:String,validator:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e)},options:Function,hourOptions:Array,minuteOptions:Array,secondOptions:Array,withSeconds:Boolean,nowBtn:Boolean},emits:$l,setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=lt(t,a),{tabindex:i,headerClass:r,getLocale:s,getCurrentDate:u}=Tl(t,a),c=xn(t),d=_n(c);let v,p;const m=e.ref(null),f=e.computed(()=>j()),h=e.computed(()=>s()),g=Ql(t.modelValue,j(),s(),t.calendar,D()),y=e.ref(yd(g)),w=e.ref(g),x=e.ref(null===g.hour||g.hour<12),_=e.computed(()=>`q-time q-time--${!0===t.landscape?"landscape":"portrait"}`+(!0===l.value?" q-time--dark q-dark":"")+(!0===t.disable?" disabled":!0===t.readonly?" q-time--readonly":"")+(!0===t.bordered?" q-time--bordered":"")+(!0===t.square?" q-time--square no-border-radius":"")+(!0===t.flat?" q-time--flat no-shadow":"")),C=e.computed(()=>{const e=w.value;return{hour:null===e.hour?"--":!0===q.value?Ce(e.hour):String(!0===x.value?0===e.hour?12:e.hour:e.hour>12?e.hour-12:e.hour),minute:null===e.minute?"--":Ce(e.minute),second:null===e.second?"--":Ce(e.second)}}),S=e.computed(()=>D()),q=e.computed(()=>null!==t.format24h?t.format24h:a.lang.date.format24h),k=e.computed(()=>{const e="hour"===y.value,t=!0===e?12:60,o=w.value[y.value],n=Math.round(o*(360/t))-180;let a=`rotate(${n}deg) translateX(-50%)`;return!0===e&&!0===q.value&&w.value.hour>=12&&(a+=" scale(.7)"),{transform:a}}),$=e.computed(()=>null!==w.value.hour),M=e.computed(()=>!0===$.value&&null!==w.value.minute),T=e.computed(()=>void 0!==t.hourOptions?e=>t.hourOptions.includes(e):void 0!==t.options?e=>t.options(e,null,null):null),B=e.computed(()=>void 0!==t.minuteOptions?e=>t.minuteOptions.includes(e):void 0!==t.options?e=>t.options(w.value.hour,e,null):null),O=e.computed(()=>void 0!==t.secondOptions?e=>t.secondOptions.includes(e):void 0!==t.options?e=>t.options(w.value.hour,w.value.minute,e):null),V=e.computed(()=>{if(null===T.value)return null;const e=R(0,11,T.value),t=R(12,11,T.value);return{am:e,pm:t,values:e.values.concat(t.values)}}),z=e.computed(()=>null!==B.value?R(0,59,B.value):null),L=e.computed(()=>null!==O.value?R(0,59,O.value):null),E=e.computed(()=>{switch(y.value){case"hour":return V.value;case"minute":return z.value;case"second":return L.value}}),P=e.computed(()=>{let e,t,o=0,n=1;const a=null!==E.value?E.value.values:void 0;"hour"===y.value?!0===q.value?(e=0,t=23):(e=0,t=11,!1===x.value&&(o=12)):(e=0,t=55,n=5);const l=[];for(let i=e,r=e;i<=t;i+=n,r++){const e=i+o,t=void 0!==a&&!1===a.includes(e),n="hour"===y.value&&0===i?!0===q.value?"00":"12":i;l.push({val:e,index:r,disable:t,label:n})}return l}),A=e.computed(()=>{return[[ba,U,void 0,{stop:!0,prevent:!0,mouse:!0}]]});function F(){const e={...u(),...wd()};ce(e),Object.assign(w.value,e),y.value="hour"}function R(e,t,o){const n=Array.apply(null,{length:t+1}).map((t,n)=>{const a=n+e;return{index:a,val:!0===o(a)}}).filter(e=>!0===e.val).map(e=>e.index);return{min:n[0],max:n[n.length-1],values:n,threshold:t+1}}function I(e,t,o){const n=Math.abs(e-t);return Math.min(n,o-n)}function N(e,{min:t,max:o,values:n,threshold:a}){if(e===t)return t;if(e<t||e>o)return I(e,t,a)<=I(e,o,a)?t:o;const l=n.findIndex(t=>e<=t),i=n[l-1],r=n[l];return e-i<=r-e?i:r}function j(){return"persian"!==t.calendar&&null!==t.mask?t.mask:`HH:mm${!0===t.withSeconds?":ss":""}`}function D(){if("string"!==typeof t.defaultDate){const e=u(!0);return e.dateHash=Ml(e),e}return Ql(t.defaultDate,"YYYY/MM/DD",void 0,t.calendar)}function H(){return!0===de.isDeactivated||!0===de.isUnmounted||null!==E.value&&(0===E.value.values.length||"hour"===y.value&&!0!==q.value&&0===V.value[!0===x.value?"am":"pm"].values.length)}function Q(){const e=m.value,{top:t,left:o,width:n}=e.getBoundingClientRect(),a=n/2;return{top:t+a,left:o+a,dist:.7*a}}function U(e){if(!0!==H()){if(!0===e.isFirst)return v=Q(),void(p=Y(e.evt,v));p=Y(e.evt,v,p),!0===e.isFinal&&(v=!1,p=null,W())}}function W(){"hour"===y.value?y.value="minute":t.withSeconds&&"minute"===y.value&&(y.value="second")}function Y(e,t,o){const n=b(e),a=Math.abs(n.top-t.top),l=Math.sqrt(Math.pow(Math.abs(n.top-t.top),2)+Math.pow(Math.abs(n.left-t.left),2));let i,r=Math.asin(a/l)*(180/Math.PI);if(r=n.top<t.top?t.left<n.left?90-r:270+r:t.left<n.left?r+90:270-r,"hour"===y.value){if(i=r/30,null!==V.value){const e=!0!==q.value?!0===x.value:V.value.am.values.length>0&&V.value.pm.values.length>0?l>=t.dist:V.value.am.values.length>0;i=N(i+(!0===e?0:12),V.value[!0===e?"am":"pm"])}else i=Math.round(i),!0===q.value?l<t.dist?i<12&&(i+=12):12===i&&(i=0):!0===x.value&&12===i?i=0:!1===x.value&&12!==i&&(i+=12);!0===q.value&&(x.value=i<12)}else i=Math.round(r/6)%60,"minute"===y.value&&null!==z.value?i=N(i,z.value):"second"===y.value&&null!==L.value&&(i=N(i,L.value));return o!==i&&ie[y.value](i),i}e.watch(()=>t.modelValue,e=>{const o=Ql(e,f.value,h.value,t.calendar,S.value);console.log({...o}),o.dateHash===w.value.dateHash&&o.timeHash===w.value.timeHash||(w.value=o,null===o.hour?y.value="hour":x.value=o.hour<12)}),e.watch([f,h],()=>{e.nextTick(()=>{ce()})});const K={hour(){y.value="hour"},minute(){y.value="minute"},second(){y.value="second"}};function X(e){13===e.keyCode&&re()}function Z(e){13===e.keyCode&&se()}function G(e){!0!==H()&&(!0!==a.platform.is.desktop&&Y(e,Q()),W())}function J(e){!0!==H()&&Y(e,Q())}function ee(e){if(13===e.keyCode)y.value="hour";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==V.value){const e=!0===q.value?V.value.values:V.value[!0===x.value?"am":"pm"].values;if(0===e.length)return;if(null===w.value.hour)ne(e[0]);else{const o=(e.length+e.indexOf(w.value.hour)+t)%e.length;ne(e[o])}}else{const e=!0===q.value?24:12,o=!0!==q.value&&!1===x.value?12:0,n=null===w.value.hour?-t:w.value.hour;ne(o+(24+n+t)%e)}}}function te(e){if(13===e.keyCode)y.value="minute";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==z.value){const e=z.value.values;if(0===e.length)return;if(null===w.value.minute)ae(e[0]);else{const o=(e.length+e.indexOf(w.value.minute)+t)%e.length;ae(e[o])}}else{const e=null===w.value.minute?-t:w.value.minute;ae((60+e+t)%60)}}}function oe(e){if(13===e.keyCode)y.value="second";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==L.value){const e=L.value.values;if(0===e.length)return;if(null===w.value.seconds)le(e[0]);else{const o=(e.length+e.indexOf(w.value.second)+t)%e.length;le(e[o])}}else{const e=null===w.value.second?-t:w.value.second;le((60+e+t)%60)}}}function ne(e){w.value.hour!==e&&(w.value.hour=e,w.value.minute=null,w.value.second=null)}function ae(e){w.value.minute!==e&&(w.value.minute=e,w.value.second=null,!0!==t.withSeconds&&ce({minute:e}))}function le(e){w.value.second!==e&&ce({second:e})}const ie={hour:ne,minute:ae,second:le};function re(){!1===x.value&&(x.value=!0,null!==w.value.hour&&(w.value.hour-=12,ue()))}function se(){!0===x.value&&(x.value=!1,null!==w.value.hour&&(w.value.hour+=12,ue()))}function ue(){return null!==T.value&&!0!==T.value(w.value.hour)?(w.value=Ql(),void(y.value="hour")):null!==B.value&&!0!==B.value(w.value.minute)?(w.value.minute=null,w.value.second=null,void(y.value="minute")):!0===t.withSeconds&&null!==O.value&&!0!==O.value(w.value.second)?(w.value.second=null,void(y.value="second")):void(null===w.value.hour||null===w.value.minute||!0===t.withSeconds&&null===w.value.second||ce())}function ce(e){const o=Object.assign({...w.value},e),a="persian"===t.calendar?Ce(o.hour)+":"+Ce(o.minute)+(!0===t.withSeconds?":"+Ce(o.second):""):mi(new Date(o.year,null===o.month?null:o.month-1,o.day,o.hour,o.minute,o.second,o.millisecond),f.value,h.value,o.year,o.timezoneOffset);o.changed=a!==t.modelValue,n("update:modelValue",a,o)}const de=e.getCurrentInstance();function ve(){const o=[e.h("div",{class:"q-time__link "+("hour"===y.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:K.hour,onKeyup:ee},C.value.hour),e.h("div",":"),e.h("div",!0===$.value?{class:"q-time__link "+("minute"===y.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onKeyup:te,onClick:K.minute}:{class:"q-time__link"},C.value.minute)];!0===t.withSeconds&&o.push(e.h("div",":"),e.h("div",!0===M.value?{class:"q-time__link "+("second"===y.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onKeyup:oe,onClick:K.second}:{class:"q-time__link"},C.value.second));const n=[e.h("div",{class:"q-time__header-label row items-center no-wrap",dir:"ltr"},o)];return!1===q.value&&n.push(e.h("div",{class:"q-time__header-ampm column items-between no-wrap"},[e.h("div",{class:"q-time__link "+(!0===x.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:re,onKeyup:X},"AM"),e.h("div",{class:"q-time__link "+(!0!==x.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:se,onKeyup:Z},"PM")])),e.h("div",{class:"q-time__header flex flex-center no-wrap "+r.value},n)}function pe(){const o=w.value[y.value];return e.h("div",{class:"q-time__content col relative-position"},[e.h(e.Transition,{name:"q-transition--scale"},()=>e.h("div",{key:"clock"+y.value,class:"q-time__container-parent absolute-full"},[e.h("div",{ref:m,class:"q-time__container-child fit overflow-hidden"},[e.withDirectives(e.h("div",{class:"q-time__clock cursor-pointer non-selectable",onClick:G,onMousedown:J},[e.h("div",{class:"q-time__clock-circle fit"},[e.h("div",{class:"q-time__clock-pointer"+(null===w.value[y.value]?" hidden":void 0!==t.color?` text-${t.color}`:""),style:k.value}),P.value.map(t=>e.h("div",{class:`q-time__clock-position row flex-center q-time__clock-pos-${t.index}`+(t.val===o?" q-time__clock-position--active "+r.value:!0===t.disable?" q-time__clock-position--disable":"")},[e.h("span",t.label)]))])]),A.value)])])),!0===t.nowBtn?e.h(Xt,{class:"q-time__now-button absolute",icon:a.iconSet.datetime.now,unelevated:!0,size:"sm",round:!0,color:t.color,textColor:t.textColor,tabindex:i.value,onClick:F}):null])}return Object.assign(de.proxy,{setNow:F}),()=>{const n=[pe()],a=Fe(o.default);return void 0!==a&&n.push(e.h("div",{class:"q-time__actions"},a)),void 0!==t.name&&!0!==t.disable&&d(n,"push"),e.h("div",{class:_.value,tabindex:-1},[ve(),e.h("div",{class:"q-time__main col overflow-auto"},n)])}}}),_d=e.defineComponent({name:"QTimeline",props:{...at,color:{type:String,default:"primary"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},layout:{type:String,default:"dense",validator:e=>["dense","comfortable","loose"].includes(e)}},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=lt(t,n.proxy.$q);e.provide(oe,t);const l=e.computed(()=>`q-timeline q-timeline--${t.layout} q-timeline--${t.layout}--${t.side}`+(!0===a.value?" q-timeline--dark":""));return()=>e.h("ul",{class:l.value},Fe(o.default))}}),Cd=e.defineComponent({name:"QTimelineEntry",props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},setup(t,{slots:o}){const n=e.inject(oe,()=>{console.error("QTimelineEntry needs to be child of QTimeline")}),a=e.computed(()=>`q-timeline__entry q-timeline__entry--${t.side}`+(void 0!==t.icon||void 0!==t.avatar?" q-timeline__entry--icon":"")),l=e.computed(()=>`q-timeline__dot text-${t.color||n.color}`),i=e.computed(()=>"comfortable"===n.layout&&"left"===n.side);return()=>{const n=Re(o.default,[]);if(void 0!==t.body&&n.unshift(t.body),!0===t.heading){const o=[e.h("div"),e.h("div"),e.h(t.tag,{class:"q-timeline__heading-title"},n)];return e.h("div",{class:"q-timeline__heading"},!0===i.value?o.reverse():o)}let r;void 0!==t.icon?r=[e.h(et,{class:"row items-center justify-center",name:t.icon})]:void 0!==t.avatar&&(r=[e.h("img",{class:"q-timeline__dot-img",src:t.avatar})]);const s=[e.h("div",{class:"q-timeline__subtitle"},[e.h("span",{},Fe(o.subtitle,[t.subtitle]))]),e.h("div",{class:l.value},r),e.h("div",{class:"q-timeline__content"},[e.h("h6",{class:"q-timeline__title"},Fe(o.title,[t.title]))].concat(n))];return e.h("li",{class:a.value},!0===i.value?s.reverse():s)}}}),Sd=e.defineComponent({name:"QToolbar",props:{inset:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-toolbar row no-wrap items-center"+(!0===t.inset?" q-toolbar--inset":""));return()=>e.h("div",{class:n.value},Fe(o.default))}}),qd=e.defineComponent({name:"QToolbarTitle",props:{shrink:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-toolbar__title ellipsis"+(!0===t.shrink?" col-shrink":""));return()=>e.h("div",{class:n.value},Fe(o.default))}}),kd=e.defineComponent({name:"QTree",props:{...at,nodes:{type:Array,required:!0},nodeKey:{type:String,required:!0},labelKey:{type:String,default:"label"},childrenKey:{type:String,default:"children"},color:String,controlColor:String,textColor:String,selectedColor:String,icon:String,tickStrategy:{type:String,default:"none",validator:e=>["none","strict","leaf","leaf-filtered"].includes(e)},ticked:Array,expanded:Array,selected:{},defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:Function,duration:Number,noConnectors:Boolean,noNodesLabel:String,noResultsLabel:String},emits:["update:expanded","update:ticked","update:selected","lazy-load","after-show","after-hide"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=lt(t,l),r=e.ref({}),s=e.ref(t.ticked||[]),u=e.ref(t.expanded||[]);let c={};e.onBeforeUpdate(()=>{c={}});const d=e.computed(()=>"q-tree"+(!0===t.noConnectors?" q-tree--no-connectors":"")+(!0===i.value?" q-tree--dark":"")+(void 0!==t.color?` text-${t.color}`:"")),v=e.computed(()=>void 0!==t.selected),p=e.computed(()=>t.icon||l.iconSet.tree.icon),m=e.computed(()=>t.controlColor||t.color),f=e.computed(()=>void 0!==t.textColor?` text-${t.textColor}`:""),h=e.computed(()=>{const e=t.selectedColor||t.color;return e?` text-${e}`:""}),g=e.computed(()=>void 0!==t.filterMethod?t.filterMethod:(e,o)=>{const n=o.toLowerCase();return e[t.labelKey]&&e[t.labelKey].toLowerCase().indexOf(n)>-1}),b=e.computed(()=>{const e={},o=(n,a)=>{const l=n.tickStrategy||(a?a.tickStrategy:t.tickStrategy),i=n[t.nodeKey],c=n[t.childrenKey]&&n[t.childrenKey].length>0,d=!0!==c,p=!0!==n.disabled&&!0===v.value&&!1!==n.selectable,m=!0!==n.disabled&&!1!==n.expandable,f="none"!==l,h="strict"===l,b="leaf-filtered"===l,y="leaf"===l||"leaf-filtered"===l;let w=!0!==n.disabled&&!1!==n.tickable;!0===y&&!0===w&&a&&!0!==a.tickable&&(w=!1);let x=n.lazy;!0===x&&void 0!==r.value[i]&&!0===Array.isArray(n[t.childrenKey])&&(x=r.value[i]);const _={key:i,parent:a,isParent:c,isLeaf:d,lazy:x,disabled:n.disabled,link:!0!==n.disabled&&(!0===p||!0===m&&(!0===c||!0===x)),children:[],matchesFilter:!t.filter||g.value(n,t.filter),selected:i===t.selected&&!0===p,selectable:p,expanded:!0===c&&u.value.includes(i),expandable:m,noTick:!0===n.noTick||!0!==h&&x&&"loaded"!==x,tickable:w,tickStrategy:l,hasTicking:f,strictTicking:h,leafFilteredTicking:b,leafTicking:y,ticked:!0===h?s.value.includes(i):!0===d&&s.value.includes(i)};if(e[i]=_,!0===c&&(_.children=n[t.childrenKey].map(e=>o(e,_)),t.filter&&(!0!==_.matchesFilter?_.matchesFilter=_.children.some(e=>e.matchesFilter):!0!==_.noTick&&!0!==_.disabled&&!0===_.tickable&&!0===b&&!0===_.children.every(e=>!0!==e.matchesFilter||!0===e.noTick||!0!==e.tickable)&&(_.tickable=!1)),!0===_.matchesFilter&&(!0!==_.noTick&&!0!==h&&!0===_.children.every(e=>e.noTick)&&(_.noTick=!0),y))){if(_.ticked=!1,_.indeterminate=_.children.some(e=>!0===e.indeterminate),_.tickable=!0===_.tickable&&_.children.some(e=>e.tickable),!0!==_.indeterminate){const e=_.children.reduce((e,t)=>!0===t.ticked?e+1:e,0);e===_.children.length?_.ticked=!0:e>0&&(_.indeterminate=!0)}!0===_.indeterminate&&(_.indeterminateNextState=_.children.every(e=>!0!==e.tickable||!0!==e.ticked))}return _};return t.nodes.forEach(e=>o(e,null)),e});function y(e){const o=[].reduce,n=(a,l)=>{return a||!l?a:!0===Array.isArray(l)?o.call(Object(l),n,a):l[t.nodeKey]===e?l:l[t.childrenKey]?n(null,l[t.childrenKey]):void 0};return n(null,t.nodes)}function w(){return s.value.map(e=>y(e))}function x(){return u.value.map(e=>y(e))}function _(e){return!(!e||!b.value[e])&&b.value[e].expanded}function C(){void 0!==t.expanded?n("update:expanded",[]):u.value=[]}function S(){const e=u.value,o=n=>{n[t.childrenKey]&&n[t.childrenKey].length>0&&!1!==n.expandable&&!0!==n.disabled&&(e.push(n[t.nodeKey]),n[t.childrenKey].forEach(o))};t.nodes.forEach(o),void 0!==t.expanded?n("update:expanded",e):u.value=e}function k(o,a,l=y(o),i=b.value[o]){if(i.lazy&&"loaded"!==i.lazy){if("loading"===i.lazy)return;r.value[o]="loading",!0!==Array.isArray(l[t.childrenKey])&&(l[t.childrenKey]=[]),n("lazy-load",{node:l,key:o,done:n=>{r.value[o]="loaded",l[t.childrenKey]=!0===Array.isArray(n)?n:[],e.nextTick(()=>{const e=b.value[o];e&&!0===e.isParent&&$(o,!0)})},fail:()=>{delete r.value[o],0===l[t.childrenKey].length&&delete l[t.childrenKey]}})}else!0===i.isParent&&!0===i.expandable&&$(o,a)}function $(e,o){let a=u.value;const l=void 0!==t.expanded;if(!0===l&&(a=a.slice()),o){if(t.accordion&&b.value[e]){const o=[];b.value[e].parent?b.value[e].parent.children.forEach(t=>{t.key!==e&&!0===t.expandable&&o.push(t.key)}):t.nodes.forEach(n=>{const a=n[t.nodeKey];a!==e&&o.push(a)}),o.length>0&&(a=a.filter(e=>!1===o.includes(e)))}a=a.concat([e]).filter((e,t,o)=>o.indexOf(e)===t)}else a=a.filter(t=>t!==e);!0===l?n("update:expanded",a):u.value=a}function M(e){return!(!e||!b.value[e])&&b.value[e].ticked}function T(e,o){let a=s.value;const l=void 0!==t.ticked;!0===l&&(a=a.slice()),a=o?a.concat(e).filter((e,t,o)=>o.indexOf(e)===t):a.filter(t=>!1===e.includes(t)),!0===l&&n("update:ticked",a)}function B(e,o,n){const l={tree:a,node:e,key:n,color:t.color,dark:i.value};return Object.defineProperty(l,"expanded",{get:()=>{return o.expanded},set:e=>{e!==o.expanded&&k(n,e)},configurable:!0,enumerable:!0}),Object.defineProperty(l,"ticked",{get:()=>{return o.ticked},set:e=>{e!==o.ticked&&T([n],e)},configurable:!0,enumerable:!0}),l}function O(e){return(t.filter?e.filter(e=>b.value[e[t.nodeKey]].matchesFilter):e).map(e=>E(e))}function V(t){if(void 0!==t.icon)return e.h(et,{class:"q-tree__icon q-mr-sm",name:t.icon,color:t.iconColor});const o=t.img||t.avatar;return o?e.h("img",{class:`q-tree__${t.img?"img":"avatar"} q-mr-sm`,src:o}):void 0}function z(){n("after-show")}function L(){n("after-hide")}function E(n){const a=n[t.nodeKey],l=b.value[a],r=n.header&&o[`header-${n.header}`]||o["default-header"],s=!0===l.isParent?O(n[t.childrenKey]):[],u=s.length>0||l.lazy&&"loaded"!==l.lazy;let d=n.body&&o[`body-${n.body}`]||o["default-body"];const v=void 0!==r||void 0!==d?B(n,l,a):null;return void 0!==d&&(d=e.h("div",{class:"q-tree__node-body relative-position"},[e.h("div",{class:f.value},[d(v)])])),e.h("div",{key:a,class:"q-tree__node relative-position"+` q-tree__node--${!0===u?"parent":"child"}`},[e.h("div",{class:"q-tree__node-header relative-position row no-wrap items-center"+(!0===l.link?" q-tree__node--link q-hoverable q-focusable":"")+(!0===l.selected?" q-tree__node--selected":"")+(!0===l.disabled?" q-tree__node--disabled":""),tabindex:!0===l.link?0:-1,onClick:e=>{A(n,l,e)},onKeypress(e){!0!==U(e)&&(13===e.keyCode?A(n,l,e,!0):32===e.keyCode&&F(n,l,e,!0))}},[e.h("div",{class:"q-focus-helper",tabindex:-1,ref:e=>{c[l.key]=e}}),"loading"===l.lazy?e.h($t,{class:"q-tree__spinner q-mr-xs",color:m.value}):!0===u?e.h(et,{class:"q-tree__arrow q-mr-xs"+(!0===l.expanded?" q-tree__arrow--rotate":""),name:p.value,onClick(e){F(n,l,e)}}):null,!0===l.hasTicking&&!0!==l.noTick?e.h(ra,{class:"q-mr-xs",modelValue:!0===l.indeterminate?null:l.ticked,color:m.value,dark:i.value,dense:!0,keepColor:!0,disable:!0!==l.tickable,onKeydown:q,"onUpdate:modelValue":e=>{R(l,e)}}):null,e.h("div",{class:"q-tree__node-header-content col row no-wrap items-center"+(!0===l.selected?h.value:f.value)},[r?r(v):[V(n),e.h("div",n[t.labelKey])]])]),!0===u?e.h(gr,{duration:t.duration,onShow:z,onHide:L},()=>e.withDirectives(e.h("div",{class:"q-tree__node-collapsible"+f.value,key:`${a}__q`},[d,e.h("div",{class:"q-tree__children"+(!0===l.disabled?" q-tree__node--disabled":"")},s)]),[[e.vShow,l.expanded]])):d])}function P(e){const t=c[e];t&&t.focus()}function A(e,o,a,l){!0!==l&&P(o.key),v.value?o.selectable&&n("update:selected",o.key!==t.selected?o.key:null):F(e,o,a,l),"function"===typeof e.handler&&e.handler(e)}function F(e,t,o,n){void 0!==o&&q(o),!0!==n&&P(t.key),k(t.key,!t.expanded,e,t)}function R(e,t){if(!0===e.indeterminate&&(t=e.indeterminateNextState),e.strictTicking)T([e.key],t);else if(e.leafTicking){const o=[],n=e=>{e.isParent?(!0!==t&&!0!==e.noTick&&!0===e.tickable&&o.push(e.key),!0===e.leafTicking&&e.children.forEach(n)):!0===e.noTick||!0!==e.tickable||!0===e.leafFilteredTicking&&!0!==e.matchesFilter||o.push(e.key)};n(e),T(o,t)}}return e.watch(()=>t.ticked,e=>{s.value=e}),e.watch(()=>t.expanded,e=>{u.value=e}),Object.assign(a,{getNodeByKey:y,getTickedNodes:w,getExpandedNodes:x,isExpanded:_,collapseAll:C,expandAll:S,setExpanded:k,isTicked:M,setTicked:T}),!0===t.defaultExpandAll&&S(),()=>{const o=O(t.nodes);return e.h("div",{class:d.value},0===o.length?t.filter?t.noResultsLabel||l.lang.tree.noResults:t.noNodesLabel||l.lang.tree.noNodes:o)}}});function $d(e){return(100*e).toFixed(2)+"%"}const Md={...at,...Gr,label:String,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,noThumbnails:Boolean,autoUpload:Boolean,hideUploadBtn:Boolean,disable:Boolean,readonly:Boolean},Td=[...Jr,"start","finish","added","removed"];function Bd(t){const o=e.getCurrentInstance(),{props:n,slots:a,emit:l,proxy:i}=o,{$q:r}=i,s=lt(n,r);function u(e,t,o){if(e.__status=t,"idle"===t)return e.__uploaded=0,e.__progress=0,e.__sizeLabel=ye(e.size),void(e.__progressLabel="0.00%");"failed"!==t?(e.__uploaded="uploaded"===t?e.size:o,e.__progress="uploaded"===t?1:Math.min(.9999,e.__uploaded/e.size),e.__progressLabel=$d(e.__progress),i.$forceUpdate()):i.$forceUpdate()}const c={files:e.ref([]),queuedFiles:e.ref([]),uploadedFiles:e.ref([]),uploadedSize:e.ref(0),updateFileStatus:u,isAlive(){return!0!==o.isDeactivated&&!0!==o.isUnmounted}};Object.assign(c,t({props:n,slots:a,emit:l,helpers:c}));const d=e.ref(0),v=e.computed(()=>!0!==n.disable&&!0!==n.readonly);void 0===c.isBusy&&(c.isBusy=e.ref(!1));const p=e.ref(!1),m=e.ref(null),f=e.ref(null);e.provide(ue,N);const{pickFiles:h,addFiles:g,onDragover:b,processFiles:y,getDndNode:w,maxFilesNumber:x,maxTotalSizeNumber:_}=es({editable:v,dnd:p,getFileInput:A,addFilesToQueue:F}),S=e.computed(()=>!0===v.value&&!0!==c.isUploading.value&&(!0===n.multiple||0===c.queuedFiles.value.length)&&(void 0===n.maxFiles||c.files.value.length<x.value)&&(void 0===n.maxTotalSize||d.value<_.value)),q=e.computed(()=>!0===v.value&&!0!==c.isBusy.value&&!0!==c.isUploading.value&&c.queuedFiles.value.length>0),k=e.computed(()=>0===d.value?0:c.uploadedSize.value/d.value),$=e.computed(()=>$d(k.value)),M=e.computed(()=>ye(d.value)),T=e.computed(()=>"q-uploader column no-wrap"+(!0===s.value?" q-uploader--dark q-dark":"")+(!0===n.bordered?" q-uploader--bordered":"")+(!0===n.square?" q-uploader--square no-border-radius":"")+(!0===n.flat?" q-uploader--flat no-shadow":"")+(!0===n.disable?" disabled q-uploader--disable":"")),B=e.computed(()=>"q-uploader__header"+(void 0!==n.color?` bg-${n.color}`:"")+(void 0!==n.textColor?` text-${n.textColor}`:""));function O(){!1===n.disable&&(c.abort(),c.uploadedSize.value=0,d.value=0,P(),c.files.value=[],c.queuedFiles.value=[],c.uploadedFiles.value=[])}function V(){!1===n.disable&&L(["uploaded"],()=>{c.uploadedFiles.value=[]})}function z(){L(["idle","failed"],({size:e})=>{d.value-=e,c.queuedFiles.value=[]})}function L(e,t){if(!0===n.disable)return;const o={files:[],size:0},a=c.files.value.filter(t=>{return-1===e.indexOf(t.__status)||(o.size+=t.size,o.files.push(t),void 0!==t._img&&window.URL.revokeObjectURL(t._img.src),!1)});o.files.length>0&&(c.files.value=a,t(o),l("removed",o.files))}function E(e){n.disable||("uploaded"===e.__status?c.uploadedFiles.value=c.uploadedFiles.value.filter(t=>t.name!==e.name):"uploading"===e.__status?e.__abort():d.value-=e.size,c.files.value=c.files.value.filter(t=>{return t.name!==e.name||(void 0!==t._img&&window.URL.revokeObjectURL(t._img.src),!1)}),c.queuedFiles.value=c.queuedFiles.value.filter(t=>t.name!==e.name),l("removed",[e]))}function P(){c.files.value.forEach(e=>{void 0!==e._img&&window.URL.revokeObjectURL(e._img.src)})}function A(){return f.value||m.value.getElementsByClassName("q-uploader__input")[0]}function F(e,t){const o=y(e,t,c.files.value,!0);if(void 0===o)return;const a=o.filter(e=>-1===c.files.value.findIndex(t=>e.name===t.name)),i=A();void 0!==i&&null!==i&&(i.value=""),void 0!==a&&(a.forEach(e=>{if(c.updateFileStatus(e,"idle"),d.value+=e.size,!0!==n.noThumbnails&&e.type.toUpperCase().startsWith("IMAGE")){const t=new Image;t.src=window.URL.createObjectURL(e),e.__img=t}}),c.files.value=c.files.value.concat(a),c.queuedFiles.value=c.queuedFiles.value.concat(a),l("added",a),!0===n.autoUpload&&c.upload())}function R(){!0===q.value&&c.upload()}function I(t,o,n){if(!0===t){const t={type:"a",key:o,icon:r.iconSet.uploader[o],flat:!0,dense:!0};let a=void 0;return"add"===o?a=N:t.onClick=n,e.h(Xt,t,a)}}function N(){return e.h("input",{ref:f,class:"q-uploader__input overflow-hidden absolute-full",tabindex:-1,type:"file",title:"",accept:n.accept,multiple:!0===n.multiple?"multiple":void 0,capture:n.capture,onMousedown:C,onChange:F})}function j(){return void 0!==a.header?a.header(Q.value):[e.h("div",{class:"q-uploader__header-content flex flex-center no-wrap q-gutter-xs"},[I(c.queuedFiles.value.length>0,"removeQueue",z),I(c.uploadedFiles.value.length>0,"removeUploaded",V),!0===c.isUploading.value?e.h($t,{class:"q-uploader__spinner"}):null,e.h("div",{class:"col column justify-center"},[void 0!==n.label?e.h("div",{class:"q-uploader__title"},[n.label]):null,e.h("div",{class:"q-uploader__subtitle"},[M.value+" / "+$.value])]),I(S.value,"add"),I(!1===n.hideUploadBtn&&!0===q.value,"upload",c.upload),I(c.isUploading.value,"clear",c.abort)])]}function D(){return void 0!==a.list?a.list(Q.value):c.files.value.map(t=>e.h("div",{key:t.name,class:"q-uploader__file relative-position"+(!0!==n.noThumbnails&&void 0!==t.__img?" q-uploader__file--img":"")+("failed"===t.__status?" q-uploader__file--failed":"uploaded"===t.__status?" q-uploader__file--uploaded":""),style:!0!==n.noThumbnails&&void 0!==t.__img?{backgroundImage:'url("'+t.__img.src+'")'}:null},[e.h("div",{class:"q-uploader__file-header row flex-center no-wrap"},["failed"===t.__status?e.h(et,{class:"q-uploader__file-status",name:r.iconSet.type.negative,color:"negative"}):null,e.h("div",{class:"q-uploader__file-header-content col"},[e.h("div",{class:"q-uploader__title"},[t.name]),e.h("div",{class:"q-uploader__subtitle row items-center no-wrap"},[t.__sizeLabel+" / "+t.__progressLabel])]),"uploading"===t.__status?e.h(fa,{value:t.__progress,min:0,max:1,indeterminate:0===t.__progress}):e.h(Xt,{round:!0,dense:!0,flat:!0,icon:r.iconSet.uploader["uploaded"===t.__status?"done":"clear"],onClick:()=>{E(t)}})])]))}e.watch(c.isUploading,(e,t)=>{!1===t&&!0===e?l("start"):!0===t&&!1===e&&l("finish")}),e.onBeforeUnmount(()=>{!0===c.isUploading.value&&c.abort(),c.files.value.length>0&&P()});const H={pickFiles:h,addFiles:g,reset:O,removeUploadedFiles:V,removeQueuedFiles:z,removeFile:E,upload:R,abort:c.abort},Q=e.computed(()=>{const t={canAddFiles:S.value,canUpload:q.value,uploadSizeLabel:M.value,uploadProgressLabel:$.value};return Object.keys(c).forEach(o=>{t[o]=!0===e.isRef(c[o])?c[o].value:c[o]}),{...t,...H}});return Object.assign(i,H),()=>{const t=[e.h("div",{class:B.value},j()),e.h("div",{class:"q-uploader__list scroll"},D()),w("uploader")];!0===c.isBusy.value&&t.push(e.h("div",{class:"q-uploader__overlay absolute-full flex flex-center"},[e.h($t)]));const o={ref:m,class:T.value};return!0===S.value&&(o.onDragover=b),e.h("div",o,t)}}var Od=({name:t,props:o,emits:n,injectPlugin:a})=>e.defineComponent({name:t,props:{...Md,...o},emits:[...Td,...n],setup(){return Bd(a)}});function Vd(e){return"function"===typeof e?e:()=>e}const zd={url:[Function,String],method:{type:[Function,String],default:"POST"},fieldName:{type:[Function,String],default:()=>{return e=>e.name}},headers:[Function,Array],formFields:[Function,Array],withCredentials:[Function,Boolean],sendRaw:[Function,Boolean],batch:[Function,Boolean],factory:Function},Ld=["factory-failed","uploaded","failed","uploading"];function Ed({props:t,emit:o,helpers:n}){const a=e.ref([]),l=e.ref([]),i=e.ref(0),r=e.computed(()=>({url:Vd(t.url),method:Vd(t.method),headers:Vd(t.headers),formFields:Vd(t.formFields),fieldName:Vd(t.fieldName),withCredentials:Vd(t.withCredentials),sendRaw:Vd(t.sendRaw),batch:Vd(t.batch)})),s=e.computed(()=>i.value>0),u=e.computed(()=>l.value.length>0);let c;function d(){a.value.forEach(e=>{e.abort()}),l.value.length>0&&(c=!0)}function v(){const e=n.queuedFiles.value.slice(0);n.queuedFiles.value=[],r.value.batch(e)?p(e):e.forEach(e=>{p([e])})}function p(e){if(i.value++,"function"!==typeof t.factory)return void m(e,{});const a=t.factory(e);if(a)if("function"===typeof a.catch&&"function"===typeof a.then){l.value.push(a);const t=t=>{!0===n.isAlive()&&(l.value=l.value.filter(e=>e!==a),0===l.value.length&&(c=!1),n.queuedFiles.value=n.queuedFiles.value.concat(e),e.forEach(e=>{n.updateFileStatus(e,"failed")}),o("factory-failed",t,e),i.value--)};a.then(o=>{!0===c?t(new Error("Aborted")):!0===n.isAlive()&&(l.value=l.value.filter(e=>e!==a),m(e,o))}).catch(t)}else m(e,a||{});else o("factory-failed",new Error("QUploader: factory() does not return properly"),e),i.value--}function m(e,t){const l=new FormData,s=new XMLHttpRequest,u=(e,o)=>{return void 0!==t[e]?Vd(t[e])(o):r.value[e](o)},c=u("url",e);if(!c)return console.error("q-uploader: invalid or no URL specified"),void i.value--;const d=u("formFields",e);void 0!==d&&d.forEach(e=>{l.append(e.name,e.value)});let v,p=0,m=0,f=0,h=0;s.upload.addEventListener("progress",t=>{if(!0===v)return;const o=Math.min(h,t.loaded);n.uploadedSize.value+=o-f,f=o;let a=f-m;for(let l=p;a>0&&l<e.length;l++){const t=e[l],o=a>t.size;if(!o)return void n.updateFileStatus(t,"uploading",a);a-=t.size,p++,m+=t.size,n.updateFileStatus(t,"uploading",t.size)}},!1),s.onreadystatechange=(()=>{s.readyState<4||(s.status&&s.status<400?(n.uploadedFiles.value=n.uploadedFiles.value.concat(e),e.forEach(e=>{n.updateFileStatus(e,"uploaded")}),o("uploaded",{files:e,xhr:s})):(v=!0,n.uploadedSize.value-=f,n.queuedFiles.value=n.queuedFiles.value.concat(e),e.forEach(e=>{n.updateFileStatus(e,"failed")}),o("failed",{files:e,xhr:s})),i.value--,a.value=a.value.filter(e=>e!==s))}),s.open(u("method",e),c),!0===u("withCredentials",e)&&(s.withCredentials=!0);const g=u("headers",e);void 0!==g&&g.forEach(e=>{s.setRequestHeader(e.name,e.value)});const b=u("sendRaw",e);e.forEach(e=>{n.updateFileStatus(e,"uploading",0),!0!==b&&l.append(u("fieldName",e),e,e.name),e.xhr=s,e.__abort=(()=>{s.abort()}),h+=e.size}),o("uploading",{files:e,xhr:s}),a.value.push(s),!0===b?s.send(new Blob(e)):s.send(l)}return{isUploading:s,isBusy:u,abort:d,upload:v}}var Pd={name:"QUploader",props:zd,emits:Ld,injectPlugin:Ed},Ad=Od(Pd),Fd=e.defineComponent({name:"QUploaderAddTrigger",setup(){return e.inject(ue,()=>{console.error("QUploaderAddTrigger needs to be child of QUploader")})}}),Rd=e.defineComponent({name:"QVideo",props:{...rs,src:{type:String,required:!0}},setup(t){const o=ss(t),n=e.computed(()=>"q-video"+(void 0!==t.ratio?" q-video--responsive":""));return()=>e.h("div",{class:n.value,style:o.value},[e.h("iframe",{src:t.src,frameborder:"0",allowfullscreen:!0})])}}),Id=Object.freeze({__proto__:null,QAjaxBar:Le,QAvatar:tt,QBadge:nt,QBanner:it,QBar:rt,QBreadcrumbs:ft,QBreadcrumbsEl:St,QBtn:Xt,QBtnDropdown:yn,QBtnGroup:Zt,QBtnToggle:Sn,QCard:qn,QCardSection:kn,QCardActions:$n,QCarousel:Zn,QCarouselSlide:Gn,QCarouselControl:Jn,QChatMessage:ea,QCheckbox:ra,QChip:ua,QCircularProgress:fa,QColor:dl,QDate:Ci,QDialog:Di,QDrawer:Qi,QEditor:fr,QExpansionItem:Tr,QFab:Er,QFabAction:Fr,QField:Kr,QFile:os,QFooter:ns,QForm:as,QFormChildMixin:ls,QHeader:is,QIcon:et,QImg:cs,QInfiniteScroll:ds,QInnerLoading:vs,QInput:qs,QIntersection:Bs,QList:Os,QItem:Gi,QItemSection:Ji,QItemLabel:hr,QKnob:Ls,QLayout:Fs,QMarkupTable:Is,QMenu:bn,QNoSsr:Ns,QOptionGroup:Ws,QPage:Ys,QPageContainer:Ks,QPageScroller:Gs,QPageSticky:Js,QPagination:eu,QParallax:nu,QPopupEdit:lu,QPopupProxy:iu,QLinearProgress:uu,QPullToRefresh:vu,QRadio:Ds,QRange:mu,QRating:fu,QResizeObserver:Ta,QResponsive:hu,QScrollArea:yu,QScrollObserver:As,QSelect:Pu,QSeparator:wr,QSkeleton:Ru,QSlideItem:Nu,QSlideTransition:gr,QSlider:qa,QSpace:Du,QSpinner:$t,QSpinnerAudio:Qu,QSpinnerBall:Wu,QSpinnerBars:Ku,QSpinnerBox:Zu,QSpinnerClock:Ju,QSpinnerComment:tc,QSpinnerCube:nc,QSpinnerDots:lc,QSpinnerFacebook:rc,QSpinnerGears:uc,QSpinnerGrid:dc,QSpinnerHearts:pc,QSpinnerHourglass:fc,QSpinnerInfinity:gc,QSpinnerIos:yc,QSpinnerOrbit:xc,QSpinnerOval:Cc,QSpinnerPie:qc,QSpinnerPuff:$c,QSpinnerRadio:Tc,QSpinnerRings:Oc,QSpinnerTail:zc,QSplitter:Lc,QStep:Fc,QStepper:Nc,QStepperNavigation:jc,QTabPanels:Ia,QTabPanel:Na,QTable:fd,QTh:Dc,QTr:hd,QTd:gd,QTabs:La,QTab:Ra,QRouteTab:bd,QTime:xd,QTimeline:_d,QTimelineEntry:Cd,QToggle:Hs,QToolbar:Sd,QToolbarTitle:qd,QTooltip:Zi,QTree:kd,QUploader:Ad,QUploaderAddTrigger:Fd,QVideo:Rd,QVirtualScroll:Wc});function Nd(e){if(!1===e)return 0;if(!0===e||void 0===e)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}var jd={name:"close-popup",beforeMount(e,{value:t}){const o={depth:Nd(t),handler(t){0!==o.depth&&setTimeout(()=>{const n=bo(e);void 0!==n&&wo(n,t,o.depth)})},handlerKey(e){!0===W(e,13)&&o.handler(e)}};e.__qclosepopup=o,e.addEventListener("click",o.handler),e.addEventListener("keyup",o.handlerKey)},updated(e,{value:t,oldValue:o}){t!==o&&(e.__qclosepopup.depth=Nd(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}};let Dd=0,Hd=void 0;function Qd(e,t){void 0===Hd&&(Hd=document.createElement("div"),Hd.style.cssText="position: absolute; left: 0; top: 0",document.body.appendChild(Hd));const o=e.getBoundingClientRect(),n=Hd.getBoundingClientRect(),{marginLeft:a,marginRight:l,marginTop:i,marginBottom:r}=window.getComputedStyle(e),s=parseInt(a,10)+parseInt(l,10),u=parseInt(i,10)+parseInt(r,10);return{left:o.left-n.left,top:o.top-n.top,width:o.right-o.left,height:o.bottom-o.top,widthM:o.right-o.left+(!0===t?0:s),heightM:o.bottom-o.top+(!0===t?0:u),marginH:!0===t?s:0,marginV:!0===t?u:0}}function Ud(e){return{width:e.scrollWidth,height:e.scrollHeight}}const Wd=["Top","Right","Bottom","Left"],Yd=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],Kd=/-block|-inline|block-|inline-/,Xd=/(-block|-inline|block-|inline-).*:/;function Zd(e,t){const o=window.getComputedStyle(e),n={};for(let a=0;a<t.length;a++){const e=t[a];if(""===o[e])if("cssText"===e){const t=o.length;let a="";for(let e=0;e<t;e++)!0!==Kd.test(o[e])&&(a+=o[e]+": "+o[o[e]]+"; ");n[e]=a}else if(["borderWidth","borderStyle","borderColor"].indexOf(e)>-1){const t=e.replace("border","");let a="";for(let e=0;e<Wd.length;e++){const n="border"+Wd[e]+t;a+=o[n]+" "}n[e]=a}else if("borderRadius"===e){let t="",a="";for(let e=0;e<Yd.length;e++){const n=o[Yd[e]].split(" ");t+=n[0]+" ",a+=(void 0===n[1]?n[0]:n[1])+" "}n[e]=t+"/ "+a}else n[e]=o[e];else n[e]="cssText"===e?o[e].split(";").filter(e=>!0!==Xd.test(e)).join(";"):o[e]}return n}const Gd=["absolute","fixed","relative","sticky"];function Jd(e){let t=e,o=0;while(null!==t&&t!==document){const{position:n,zIndex:a}=window.getComputedStyle(t),l=Number(a);l>o&&(t===e||!0===Gd.includes(n))&&(o=l),t=t.parentNode}return o}function ev(e){return{from:e.from,to:void 0!==e.to?e.to:e.from}}function tv(e){return"number"===typeof e?e={duration:e}:"function"===typeof e&&(e={onEnd:e}),{...e,waitFor:void 0===e.waitFor?0:e.waitFor,duration:!0===isNaN(e.duration)?300:parseInt(e.duration,10),easing:"string"===typeof e.easing&&e.easing.length>0?e.easing:"ease-in-out",delay:!0===isNaN(e.delay)?0:parseInt(e.delay,10),fill:"string"===typeof e.fill&&e.fill.length>0?e.fill:"none",resize:!0===e.resize,useCSS:!0===e.useCSS,hideFromClone:!0===e.hideFromClone,keepToClone:!0===e.keepToClone,tween:!0===e.tween,tweenFromOpacity:!0===isNaN(e.tweenFromOpacity)?.6:parseFloat(e.tweenFromOpacity),tweenToOpacity:!0===isNaN(e.tweenToOpacity)?.5:parseFloat(e.tweenToOpacity)}}function ov(e){const t=typeof e;return"function"===t?e():"string"===t?document.querySelector(e):e}function nv(e){return e&&e.ownerDocument===document&&null!==e.parentNode}function av(e){let t=()=>!1,o=!1,n=!0;const a=ev(e),l=tv(e),i=ov(a.from);if(!0!==nv(i))return t;"function"===typeof i.qMorphCancel&&i.qMorphCancel();let r=void 0,s=void 0,u=void 0,c=void 0;const d=i.parentNode,v=i.nextElementSibling,p=Qd(i,l.resize),{width:m,height:f}=Ud(d),{borderWidth:h,borderStyle:g,borderColor:b,borderRadius:y,backgroundColor:w,transform:x,position:_,cssText:C}=Zd(i,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),S=i.classList.toString(),q=i.style.cssText,k=i.cloneNode(!0),$=!0===l.tween?i.cloneNode(!0):void 0;void 0!==$&&($.className=$.classList.toString().split(" ").filter(e=>!1===/^bg-/.test(e)).join(" ")),!0===l.hideFromClone&&k.classList.add("q-morph--internal"),k.setAttribute("aria-hidden","true"),k.style.transition="none",k.style.animation="none",k.style.pointerEvents="none",d.insertBefore(k,v),i.qMorphCancel=(()=>{o=!0,k.remove(),void 0!==$&&$.remove(),!0===l.hideFromClone&&k.classList.remove("q-morph--internal"),i.qMorphCancel=void 0});const M=()=>{const e=ov(a.to);if(!0===o||!0!==nv(e))return void("function"===typeof i.qMorphCancel&&i.qMorphCancel());i!==e&&"function"===typeof e.qMorphCancel&&e.qMorphCancel(),!0!==l.keepToClone&&e.classList.add("q-morph--internal"),k.classList.add("q-morph--internal");const{width:v,height:M}=Ud(d),{width:T,height:B}=Ud(e.parentNode);!0!==l.hideFromClone&&k.classList.remove("q-morph--internal"),e.qMorphCancel=(()=>{o=!0,k.remove(),void 0!==$&&$.remove(),!0===l.hideFromClone&&k.classList.remove("q-morph--internal"),!0!==l.keepToClone&&e.classList.remove("q-morph--internal"),i.qMorphCancel=void 0,e.qMorphCancel=void 0});const O=()=>{if(!0===o)return void("function"===typeof e.qMorphCancel&&e.qMorphCancel());!0!==l.hideFromClone&&(k.classList.add("q-morph--internal"),k.innerHTML="",k.style.left=0,k.style.right="unset",k.style.top=0,k.style.bottom="unset",k.style.transform="none"),!0!==l.keepToClone&&e.classList.remove("q-morph--internal");const a=e.parentNode,{width:O,height:V}=Ud(a),z=e.cloneNode(l.keepToClone);z.setAttribute("aria-hidden","true"),!0!==l.keepToClone&&(z.style.left=0,z.style.right="unset",z.style.top=0,z.style.bottom="unset",z.style.transform="none",z.style.pointerEvents="none"),z.classList.add("q-morph--internal");const L=e===i&&d===a?k:e.nextElementSibling;a.insertBefore(z,L);const{borderWidth:E,borderStyle:P,borderColor:A,borderRadius:F,backgroundColor:R,transform:I,position:N,cssText:j}=Zd(e,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),D=e.classList.toString(),H=e.style.cssText;e.style.cssText=j,e.style.transform="none",e.style.animation="none",e.style.transition="none",e.className=D.split(" ").filter(e=>!1===/^bg-/.test(e)).join(" ");const Q=Qd(e,l.resize),U=p.left-Q.left,W=p.top-Q.top,Y=p.width/(Q.width>0?Q.width:10),K=p.height/(Q.height>0?Q.height:100),X=m-v,Z=f-M,G=O-T,J=V-B,ee=Math.max(p.widthM,X),te=Math.max(p.heightM,Z),oe=Math.max(Q.widthM,G),ne=Math.max(Q.heightM,J),ae=i===e&&!1===["absolute","fixed"].includes(N)&&!1===["absolute","fixed"].includes(_);let le="fixed"===N,ie=a;while(!0!==le&&ie!==document)le="fixed"===window.getComputedStyle(ie).position,ie=ie.parentNode;if(!0!==l.hideFromClone&&(k.style.display="block",k.style.flex="0 0 auto",k.style.opacity=0,k.style.minWidth="unset",k.style.maxWidth="unset",k.style.minHeight="unset",k.style.maxHeight="unset",k.classList.remove("q-morph--internal")),!0!==l.keepToClone&&(z.style.display="block",z.style.flex="0 0 auto",z.style.opacity=0,z.style.minWidth="unset",z.style.maxWidth="unset",z.style.minHeight="unset",z.style.maxHeight="unset"),z.classList.remove("q-morph--internal"),"string"===typeof l.classes&&(e.className+=" "+l.classes),"string"===typeof l.style)e.style.cssText+=" "+l.style;else if(l.style===Object(l.style))for(const t in l.style)e.style[t]=l.style[t];const re=Jd(k),se=Jd(e),ue=!0===le?document.documentElement:{scrollLeft:0,scrollTop:0};e.style.position=!0===le?"fixed":"absolute",e.style.left=`${Q.left-ue.scrollLeft}px`,e.style.right="unset",e.style.top=`${Q.top-ue.scrollTop}px`,e.style.margin=0,!0===l.resize&&(e.style.minWidth="unset",e.style.maxWidth="unset",e.style.minHeight="unset",e.style.maxHeight="unset",e.style.overflow="hidden",e.style.overflowX="hidden",e.style.overflowY="hidden"),document.body.appendChild(e),void 0!==$&&($.style.cssText=C,$.style.transform="none",$.style.animation="none",$.style.transition="none",$.style.position=e.style.position,$.style.left=`${p.left-ue.scrollLeft}px`,$.style.right="unset",$.style.top=`${p.top-ue.scrollTop}px`,$.style.margin=0,$.style.pointerEvents="none",!0===l.resize&&($.style.minWidth="unset",$.style.maxWidth="unset",$.style.minHeight="unset",$.style.maxHeight="unset",$.style.overflow="hidden",$.style.overflowX="hidden",$.style.overflowY="hidden"),document.body.appendChild($));const ce=o=>{i===e&&!0!==n?(e.style.cssText=q,e.className=S):(e.style.cssText=H,e.className=D),z.parentNode===a&&a.insertBefore(e,z),k.remove(),z.remove(),void 0!==$&&$.remove(),t=(()=>!1),i.qMorphCancel=void 0,e.qMorphCancel=void 0,"function"===typeof l.onEnd&&l.onEnd(!0===n?"to":"from",!0===o)};if(!0!==l.useCSS&&"function"===typeof e.animate){const a=!0===l.resize?{transform:`translate(${U}px, ${W}px)`,width:`${ee}px`,height:`${te}px`}:{transform:`translate(${U}px, ${W}px) scale(${Y}, ${K})`},d=!0===l.resize?{width:`${oe}px`,height:`${ne}px`}:{},v=!0===l.resize?{width:`${ee}px`,height:`${te}px`}:{},m=!0===l.resize?{transform:`translate(${-1*U}px, ${-1*W}px)`,width:`${oe}px`,height:`${ne}px`}:{transform:`translate(${-1*U}px, ${-1*W}px) scale(${1/Y}, ${1/K})`},f=void 0!==$?{opacity:l.tweenToOpacity}:{backgroundColor:w},_=void 0!==$?{opacity:1}:{backgroundColor:R};c=e.animate([{margin:0,borderWidth:h,borderStyle:g,borderColor:b,borderRadius:y,zIndex:re,transformOrigin:"0 0",...a,...f},{margin:0,borderWidth:E,borderStyle:P,borderColor:A,borderRadius:F,zIndex:se,transformOrigin:"0 0",transform:I,...d,..._}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),s=void 0===$?void 0:$.animate([{opacity:l.tweenFromOpacity,margin:0,borderWidth:h,borderStyle:g,borderColor:b,borderRadius:y,zIndex:re,transformOrigin:"0 0",transform:x,...v},{opacity:0,margin:0,borderWidth:E,borderStyle:P,borderColor:A,borderRadius:F,zIndex:se,transformOrigin:"0 0",...m}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),r=!0===l.hideFromClone||!0===ae?void 0:k.animate([{margin:`${Z<0?Z/2:0}px ${X<0?X/2:0}px`,width:`${ee+p.marginH}px`,height:`${te+p.marginV}px`},{margin:0,width:0,height:0}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),u=!0===l.keepToClone?void 0:z.animate([!0===ae?{margin:`${Z<0?Z/2:0}px ${X<0?X/2:0}px`,width:`${ee+p.marginH}px`,height:`${te+p.marginV}px`}:{margin:0,width:0,height:0},{margin:`${J<0?J/2:0}px ${G<0?G/2:0}px`,width:`${oe+Q.marginH}px`,height:`${ne+Q.marginV}px`}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay});const C=e=>{void 0!==r&&r.cancel(),void 0!==s&&s.cancel(),void 0!==u&&u.cancel(),c.cancel(),c.removeEventListener("finish",C),c.removeEventListener("cancel",C),ce(e),r=void 0,s=void 0,u=void 0,c=void 0};i.qMorphCancel=(()=>{i.qMorphCancel=void 0,o=!0,C()}),e.qMorphCancel=(()=>{e.qMorphCancel=void 0,o=!0,C()}),c.addEventListener("finish",C),c.addEventListener("cancel",C),t=(e=>{return!0!==o&&void 0!==c&&(!0===e?(C(!0),!0):(n=!0!==n,void 0!==r&&r.reverse(),void 0!==s&&s.reverse(),void 0!==u&&u.reverse(),c.reverse(),!0))})}else{const a=`q-morph-anim-${++Dd}`,r=document.createElement("style"),s=!0===l.resize?`\n transform: translate(${U}px, ${W}px);\n width: ${ee}px;\n height: ${te}px;\n `:`transform: translate(${U}px, ${W}px) scale(${Y}, ${K});`,u=!0===l.resize?`\n width: ${oe}px;\n height: ${ne}px;\n `:"",c=!0===l.resize?`\n width: ${ee}px;\n height: ${te}px;\n `:"",d=!0===l.resize?`\n transform: translate(${-1*U}px, ${-1*W}px);\n width: ${oe}px;\n height: ${ne}px;\n `:`transform: translate(${-1*U}px, ${-1*W}px) scale(${1/Y}, ${1/K});`,v=void 0!==$?`opacity: ${l.tweenToOpacity};`:`background-color: ${w};`,m=void 0!==$?"opacity: 1;":`background-color: ${R};`,f=void 0===$?"":`\n @keyframes ${a}-from-tween {\n 0% {\n opacity: ${l.tweenFromOpacity};\n margin: 0;\n border-width: ${h};\n border-style: ${g};\n border-color: ${b};\n border-radius: ${y};\n z-index: ${re};\n transform-origin: 0 0;\n transform: ${x};\n ${c}\n }\n\n 100% {\n opacity: 0;\n margin: 0;\n border-width: ${E};\n border-style: ${P};\n border-color: ${A};\n border-radius: ${F};\n z-index: ${se};\n transform-origin: 0 0;\n ${d}\n }\n }\n `,_=!0===l.hideFromClone||!0===ae?"":`\n @keyframes ${a}-from {\n 0% {\n margin: ${Z<0?Z/2:0}px ${X<0?X/2:0}px;\n width: ${ee+p.marginH}px;\n height: ${te+p.marginV}px;\n }\n\n 100% {\n margin: 0;\n width: 0;\n height: 0;\n }\n }\n `,C=!0===ae?`\n margin: ${Z<0?Z/2:0}px ${X<0?X/2:0}px;\n width: ${ee+p.marginH}px;\n height: ${te+p.marginV}px;\n `:"\n margin: 0;\n width: 0;\n height: 0;\n ",S=!0===l.keepToClone?"":`\n @keyframes ${a}-to {\n 0% {\n ${C}\n }\n\n 100% {\n margin: ${J<0?J/2:0}px ${G<0?G/2:0}px;\n width: ${oe+Q.marginH}px;\n height: ${ne+Q.marginV}px;\n }\n }\n `;r.innerHTML=`\n @keyframes ${a} {\n 0% {\n margin: 0;\n border-width: ${h};\n border-style: ${g};\n border-color: ${b};\n border-radius: ${y};\n background-color: ${w};\n z-index: ${re};\n transform-origin: 0 0;\n ${s}\n ${v}\n }\n\n 100% {\n margin: 0;\n border-width: ${E};\n border-style: ${P};\n border-color: ${A};\n border-radius: ${F};\n background-color: ${R};\n z-index: ${se};\n transform-origin: 0 0;\n transform: ${I};\n ${u}\n ${m}\n }\n }\n\n ${_}\n\n ${f}\n\n ${S}\n `,document.head.appendChild(r);let q="normal";k.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${q} ${l.fill} ${a}-from`,void 0!==$&&($.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${q} ${l.fill} ${a}-from-tween`),z.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${q} ${l.fill} ${a}-to`,e.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${q} ${l.fill} ${a}`;const M=t=>{t===Object(t)&&t.animationName!==a||(e.removeEventListener("animationend",M),e.removeEventListener("animationcancel",M),ce(),r.remove())};i.qMorphCancel=(()=>{i.qMorphCancel=void 0,o=!0,M()}),e.qMorphCancel=(()=>{e.qMorphCancel=void 0,o=!0,M()}),e.addEventListener("animationend",M),e.addEventListener("animationcancel",M),t=(t=>{return!!(!0!==o&&e&&k&&z)&&(!0===t?(M(),!0):(n=!0!==n,q="normal"===q?"reverse":"normal",k.style.animationDirection=q,$.style.animationDirection=q,z.style.animationDirection=q,e.style.animationDirection=q,!0))})}};if(l.waitFor>0||"transitionend"===l.waitFor||l.waitFor===Object(l.waitFor)&&"function"===typeof l.waitFor.then){const t=l.waitFor>0?new Promise(e=>setTimeout(e,l.waitFor)):"transitionend"===l.waitFor?new Promise(t=>{const o=setTimeout(()=>{n()},400),n=a=>{clearTimeout(o),e&&(e.removeEventListener("transitionend",n),e.removeEventListener("transitioncancel",n)),t()};e.addEventListener("transitionend",n),e.addEventListener("transitioncancel",n)}):l.waitFor;t.then(O).catch(()=>{"function"===typeof e.qMorphCancel&&e.qMorphCancel()})}else O()};return"function"===typeof e.onToggle&&e.onToggle(),requestAnimationFrame(M),e=>t(e)}const lv={},iv=["duration","delay","easing","fill","classes","style","duration","resize","useCSS","hideFromClone","keepToClone","tween","tweenFromOpacity","tweenToOpacity","waitFor","onEnd"],rv=["resize","useCSS","hideFromClone","keepToClone","tween"];function sv(e,t){e.clsAction!==t&&(e.clsAction=t,e.el.classList[t]("q-morph--invisible"))}function uv(e){if(!0===e.animating||e.queue.length<2)return;const[t,o]=e.queue;e.animating=!0,t.animating=!0,o.animating=!0,sv(t,"remove"),sv(o,"remove");const n=av({from:t.el,to:o.el,onToggle(){sv(t,"add"),sv(o,"remove")},...o.opts,onEnd(n,a){void 0!==o.opts.onEnd&&o.opts.onEnd(n,a),!0!==a&&(t.animating=!1,o.animating=!1,e.animating=!1,e.cancel=void 0,e.queue.shift(),uv(e))}});e.cancel=(()=>{n(!0),e.cancel=void 0})}function cv(e,t){const o=t.opts;rv.forEach(t=>{o[t]=!0===e[t]})}function dv(e,t){const o="string"===typeof e&&e.length>0?e.split(":"):[];t.name=o[0],t.group=o[1],Object.assign(t.opts,{duration:!0===isNaN(o[2])?300:parseFloat(o[2]),waitFor:o[3]})}function vv(e,t){void 0!==e.group&&(t.group=e.group),void 0!==e.name&&(t.name=e.name);const o=t.opts;iv.forEach(t=>{void 0!==e[t]&&(o[t]=e[t])})}function pv(e,t){if(t.name!==e)!1===t.animating&&sv(t,"add");else{const o=lv[t.group];void 0===o?(lv[t.group]={name:t.group,model:e,queue:[t],animating:!1},sv(t,"remove")):o.model!==e&&(o.model=e,o.queue.push(t),!1===o.animating&&2===o.queue.length&&uv(o))}}function mv(e,t){let o;Object(t)===t?(o=""+t.model,vv(t,e),cv(t,e)):o=""+t,o!==e.model?(e.model=o,pv(o,e)):!1===e.animating&&void 0!==e.clsAction&&e.el.classList[e.clsAction]("q-morph--invisible")}var fv={name:"morph",mounted(e,t){const o={el:e,animating:!1,opts:{}};cv(t.modifiers,o),dv(t.arg,o),mv(o,t.value),e.__qmorph=o},updated(e,t){mv(e.__qmorph,t.value)},beforeUnmount(e){const t=e.__qmorph,o=lv[t.group];if(void 0!==o){const e=o.queue.indexOf(t);-1!==e&&(o.queue=o.queue.filter(e=>e!==t),0===o.queue.length&&(void 0!==o.cancel&&o.cancel(),delete lv[t.group]))}"add"===t.clsAction&&e.classList.remove("q-morph--invisible"),delete e.__qmorph}};const hv={childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0};function gv(e,t,o){t.handler=o,void 0!==t.observer&&t.observer.disconnect(),t.observer=new MutationObserver(o=>{if("function"===typeof t.handler){const n=t.handler(o);!1!==n&&!0!==t.once||bv(e)}}),t.observer.observe(e,t.opts)}function bv(e){const t=e.__qmutation;void 0!==t&&(void 0!==t.observer&&t.observer.disconnect(),delete e.__qmutation)}var yv={name:"mutation",mounted(e,{modifiers:{once:t,...o},value:n}){const a={once:t,opts:0===Object.keys(o).length?hv:o};gv(e,a,n),e.__qmutation=a},updated(e,{oldValue:t,value:o}){const n=e.__qmutation;void 0!==n&&t!==o&&gv(e,n,o)},beforeUnmount:bv};const{passive:wv}=p;function xv(e,{value:t,oldValue:o}){"function"===typeof t?(e.handler=t,"function"!==typeof o&&(e.scrollTarget.addEventListener("scroll",e.scroll,wv),e.scroll())):e.scrollTarget.removeEventListener("scroll",e.scroll,wv)}var _v={name:"scroll-fire",mounted(e,t){const o={scrollTarget:Mo(e),scroll:B(()=>{let t,n;o.scrollTarget===window?(n=e.getBoundingClientRect().bottom,t=window.innerHeight):(n=Mt(e).top+Bt(e),t=Mt(o.scrollTarget).top+Bt(o.scrollTarget)),n>0&&n<t&&(o.scrollTarget.removeEventListener("scroll",o.scroll,wv),o.handler(e))},25)};xv(o,t),e.__qscrollfire=o},updated(e,t){t.value!==t.oldValue&&xv(e.__qscrollfire,t)},beforeUnmount(e){const t=e.__qscrollfire;t.scrollTarget.removeEventListener("scroll",t.scroll,wv),delete e.__qscrollfire}};function Cv(e,{value:t,oldValue:o}){"function"===typeof t?(e.handler=t,"function"!==typeof o&&e.scrollTarget.addEventListener("scroll",e.scroll,p.passive)):e.scrollTarget.removeEventListener("scroll",e.scroll,p.passive)}var Sv={name:"scroll",mounted(e,t){const o={scrollTarget:Mo(e),scroll(){o.handler(Oo(o.scrollTarget),Vo(o.scrollTarget))}};Cv(o,t),e.__qscroll=o},updated(e,t){void 0!==e.__qscroll&&t.oldValue!==t.value&&Cv(e.__qscroll,t)},beforeUnmount(e){const t=e.__qscroll;t.scrollTarget.removeEventListener("scroll",t.scroll,p.passive),delete e.__qscroll}},qv={name:"touch-hold",beforeMount(e,t){const{modifiers:o}=t;if(!0!==o.mouse&&!0!==c.has.touch)return;const n={handler:t.value,noop:m,mouseStart(e){"function"===typeof n.handler&&!0===f(e)&&($(n,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),n.start(e,!0))},touchStart(e){if(void 0!==e.target&&"function"===typeof n.handler){const t=e.target;$(n,"temp",[[t,"touchmove","move","passiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),n.start(e)}},start(e,t){n.origin=b(e);const o=Date.now();!0===c.is.mobile&&(document.body.classList.add("non-selectable"),Gt(),n.styleCleanup=(e=>{n.styleCleanup=void 0;const t=()=>{document.body.classList.remove("non-selectable")};!0===e?(Gt(),setTimeout(t,10)):t()})),n.triggered=!1,n.sensitivity=!0===t?n.mouseSensitivity:n.touchSensitivity,n.timer=setTimeout(()=>{Gt(),n.triggered=!0,n.handler({evt:e,touch:!0!==t,mouse:!0===t,position:n.origin,duration:Date.now()-o})},n.duration)},move(e){const{top:t,left:o}=b(e);(Math.abs(o-n.origin.left)>=n.sensitivity||Math.abs(t-n.origin.top)>=n.sensitivity)&&clearTimeout(n.timer)},end(e){M(n,"temp"),void 0!==n.styleCleanup&&n.styleCleanup(n.triggered),!0===n.triggered?void 0!==e&&q(e):clearTimeout(n.timer)}},a=[600,5,7];"string"===typeof t.arg&&t.arg.length>0&&t.arg.split(":").forEach((e,t)=>{const o=parseInt(e,10);o&&(a[t]=o)}),[n.duration,n.touchSensitivity,n.mouseSensitivity]=a,e.__qtouchhold=n,!0===o.mouse&&$(n,"main",[[e,"mousedown","mouseStart",`passive${!0===o.mouseCapture?"Capture":""}`]]),!0===c.has.touch&&$(n,"main",[[e,"touchstart","touchStart",`passive${!0===o.capture?"Capture":""}`],[e,"touchend","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchhold;void 0!==o&&t.oldValue!==t.value&&("function"!==typeof t.value&&o.end(),o.handler=t.value)},beforeUnmount(e){const t=e.__qtouchhold;void 0!==t&&(M(t,"main"),M(t,"temp"),clearTimeout(t.timer),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchhold)}};const kv={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},$v=new RegExp(`^([\\d+]+|${Object.keys(kv).join("|")})$`,"i");function Mv(e,t){const{top:o,left:n}=b(e);return Math.abs(n-t.left)>=7||Math.abs(o-t.top)>=7}var Tv={name:"touch-repeat",beforeMount(e,{modifiers:t,value:o,arg:n}){const a=Object.keys(t).reduce((e,t)=>{if(!0===$v.test(t)){const o=isNaN(parseInt(t,10))?kv[t.toLowerCase()]:parseInt(t,10);o>=0&&e.push(o)}return e},[]);if(!0!==t.mouse&&!0!==c.has.touch&&0===a.length)return;const l="string"===typeof n&&n.length>0?n.split(":").map(e=>parseInt(e,10)):[0,600,300],i=l.length-1,r={keyboard:a,handler:o,noop:m,mouseStart(e){void 0===r.event&&"function"===typeof r.handler&&!0===f(e)&&($(r,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),r.start(e,!0))},keyboardStart(t){if("function"===typeof r.handler&&!0===W(t,a)){if((0===l[0]||void 0!==r.event)&&(q(t),e.focus(),void 0!==r.event))return;$(r,"temp",[[document,"keyup","end","notPassiveCapture"],[document,"click","end","notPassiveCapture"]]),r.start(t,!1,!0)}},touchStart(e){if(void 0!==e.target&&"function"===typeof r.handler){const t=e.target;$(r,"temp",[[t,"touchmove","move","passiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),r.start(e)}},start(e,t,o){function n(e){r.styleCleanup=void 0,document.documentElement.style.cursor="";const t=()=>{document.body.classList.remove("non-selectable")};!0===e?(Gt(),setTimeout(t,10)):t()}!0!==o&&(r.origin=b(e)),!0===c.is.mobile&&(document.body.classList.add("non-selectable"),Gt(),r.styleCleanup=n),r.event={touch:!0!==t&&!0!==o,mouse:!0===t,keyboard:!0===o,startTime:Date.now(),repeatCount:0};const a=()=>{if(void 0===r.event)return;0===r.event.repeatCount&&(r.event.evt=e,!0===o?r.event.keyCode=e.keyCode:r.event.position=b(e),!0!==c.is.mobile&&(document.documentElement.style.cursor="pointer",document.body.classList.add("non-selectable"),Gt(),r.styleCleanup=n)),r.event.duration=Date.now()-r.event.startTime,r.event.repeatCount+=1,r.handler(r.event);const t=i<r.event.repeatCount?i:r.event.repeatCount;r.timer=setTimeout(a,l[t])};0===l[0]?a():r.timer=setTimeout(a,l[0])},move(e){void 0!==r.event&&!0===Mv(e,r.origin)&&clearTimeout(r.timer)},end(e){void 0!==r.event&&(void 0!==r.styleCleanup&&r.styleCleanup(!0),void 0!==e&&r.event.repeatCount>0&&q(e),M(r,"temp"),clearTimeout(r.timer),r.event=void 0)}};e.__qtouchrepeat=r,!0===t.mouse&&$(r,"main",[[e,"mousedown","mouseStart",`passive${!0===t.mouseCapture?"Capture":""}`]]),!0===c.has.touch&&$(r,"main",[[e,"touchstart","touchStart",`passive${!0===t.capture?"Capture":""}`],[e,"touchend","noop","notPassiveCapture"]]),a.length>0&&$(r,"main",[[e,"keydown","keyboardStart",`notPassive${!0===t.keyCapture?"Capture":""}`]])},updated(e,{oldValue:t,value:o}){const n=e.__qtouchrepeat;void 0!==n&&t!==o&&("function"!==typeof o&&n.end(),n.handler=o)},beforeUnmount(e){const t=e.__qtouchrepeat;void 0!==t&&(clearTimeout(t.timer),M(t,"main"),M(t,"temp"),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchrepeat)}},Bv=Object.freeze({__proto__:null,ClosePopup:jd,Intersection:Ts,Morph:fv,Mutation:yv,Ripple:Nt,ScrollFire:_v,Scroll:Sv,TouchHold:qv,TouchPan:ba,TouchRepeat:Tv,TouchSwipe:zn});function Ov(e,t=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue(`--q-${e}`).trim()||null}let Vv;function zv(){return c.is.winphone?"msapplication-navbutton-color":c.is.safari?"apple-mobile-web-app-status-bar-style":"theme-color"}function Lv(e){const t=document.getElementsByTagName("META");for(const o in t)if(t[o].name===e)return t[o]}function Ev(e){void 0===Vv&&(Vv=zv());let t=Lv(Vv);const o=void 0===t;o&&(t=document.createElement("meta"),t.setAttribute("name",Vv)),t.setAttribute("content",e),o&&document.head.appendChild(t)}var Pv={set:!0!==c.is.mobile||!0!==c.is.nativeMobile&&!0!==c.is.winphone&&!0!==c.is.safari&&!0!==c.is.webkit&&!0!==c.is.vivaldi?m:e=>{const t=e||Ov("primary");!0===c.is.nativeMobile&&window.StatusBar?window.StatusBar.backgroundColorByHexString(t):Ev(t)},install({$q:e}){e.addressbarColor=this,e.config.addressbarColor&&this.set(e.config.addressbarColor)}};const Av={};function Fv(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement}function Rv(e,t){try{const o=e[t]();return void 0===o?Promise.resolve():o}catch(e){return Promise.reject(e)}}const Iv=v({isActive:!1,activeEl:null},{isCapable:!1,request(e){if(!0===Iv.isCapable&&!1===Iv.isActive){const t=e||document.documentElement;return Rv(t,Av.request)}return Iv.__getErr()},exit(){return!0===Iv.isCapable&&!0===Iv.isActive?Rv(document,Av.exit):Iv.__getErr()},toggle(e){return!0===Iv.isActive?Iv.exit():Iv.request(e)},install({$q:e}){e.fullscreen=this}});{function Nv(){Av.request=["requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen"].find(e=>void 0!==document.documentElement[e]),Iv.isCapable=void 0!==Av.request,!1!==Iv.isCapable?(Iv.__getErr=(()=>Promise.resolve()),Av.exit=["exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen"].find(e=>document[e]),Iv.isActive=!!Fv(),["onfullscreenchange","onmsfullscreenchange","onwebkitfullscreenchange"].forEach(e=>{document[e]=(()=>{Iv.isActive=!1===Iv.isActive,!1===Iv.isActive?(Iv.activeEl=null,ho(document.body)):(Iv.activeEl=Fv(),ho(Iv.activeEl===document.documentElement?document.body:Iv.activeEl))})})):Iv.__getErr=(()=>Promise.reject("Not capable"))}Nv()}const jv=v({appVisible:!0},{install({$q:e}){Object.defineProperty(e,"appVisible",{get:()=>this.appVisible})}});{let e,t;if("undefined"!==typeof document.hidden?(e="hidden",t="visibilitychange"):"undefined"!==typeof document.msHidden?(e="msHidden",t="msvisibilitychange"):"undefined"!==typeof document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange"),t&&"undefined"!==typeof document[e]){const o=()=>{jv.appVisible=!document[e]};document.addEventListener(t,o,!1)}}var Dv=e.defineComponent({name:"BottomSheetPlugin",props:{...at,title:String,message:String,actions:Array,grid:Boolean,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),a=lt(t,n.$q),l=e.ref(null);function i(){l.value.show()}function r(){l.value.hide()}function s(e){o("ok",e),r()}function u(){o("hide")}function c(){return t.actions.map(t=>{const o=t.avatar||t.img;return void 0===t.label?e.h(wr,{class:"col-all",dark:a.value}):e.h("div",{class:["q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position",t.class],tabindex:0,onClick(){s(t)},onKeyup(e){13===e.keyCode&&s(t)}},[e.h("div",{class:"q-focus-helper"}),t.icon?e.h(et,{name:t.icon,color:t.color}):o?e.h("img",{class:t.avatar?"q-bottom-sheet__avatar":"",src:o}):e.h("div",{class:"q-bottom-sheet__empty-icon"}),e.h("div",t.label)])})}function d(){return t.actions.map(t=>{const o=t.avatar||t.img;return void 0===t.label?e.h(wr,{spaced:!0,dark:a.value}):e.h(Gi,{class:["q-bottom-sheet__item",t.classes],tabindex:0,clickable:!0,dark:a.value,onClick(){s(t)},onKeyup(e){13===e.keyCode&&s(t)}},()=>[e.h(Ji,{avatar:!0},()=>t.icon?e.h(et,{name:t.icon,color:t.color}):o?e.h("img",{class:t.avatar?"q-bottom-sheet__avatar":"",src:o}):null),e.h(Ji,()=>t.label)])})}function v(){const o=[];return t.title&&o.push(e.h(kn,{class:"q-dialog__title"},()=>t.title)),t.message&&o.push(e.h(kn,{class:"q-dialog__message"},()=>t.message)),o.push(!0===t.grid?e.h("div",{class:"row items-stretch justify-start"},c()):e.h("div",d())),o}function p(){return[e.h(qn,{class:[`q-bottom-sheet q-bottom-sheet--${!0===t.grid?"grid":"list"}`+(!0===a.value?" q-bottom-sheet--dark q-dark":""),t.cardClass],style:t.cardStyle},v)]}return Object.assign(n,{show:i,hide:r}),()=>e.h(Di,{ref:l,position:"bottom",onHide:u},p)}});function Hv(e,t){for(const o in t)"spinner"!==o&&Object(t[o])===t[o]?(e[o]=Object(e[o])!==e[o]?{}:{...e[o]},Hv(e[o],t[o])):e[o]=t[o]}function Qv(t,o,n){return a=>{let l,i;const r=!0===o&&void 0!==a.component;if(!0===r){const{component:e,componentProps:t}=a;l="string"===typeof e?n.component(e):e,i=t}else{const{class:e,style:o,...n}=a;l=t,i=n,void 0!==e&&(n.cardClass=e),void 0!==o&&(n.cardStyle=o)}let s,u=!1;const c=e.ref(null),d=mo(),v=e=>{null!==c.value&&void 0!==c.value[e]?c.value[e]():s.$.subTree&&s.$.subTree.component&&s.$.subTree.component.proxy&&s.$.subTree.component.proxy[e]?s.$.subTree.component.proxy[e]():console.error("[Quasar] Incorrectly defined Dialog component")},p=[],m=[],f={onOk(e){return p.push(e),f},onCancel(e){return m.push(e),f},onDismiss(e){return p.push(e),m.push(e),f},hide(){return v("hide"),f},update(e){if(null!==s){if(!0===r)Object.assign(i,e);else{const{class:t,style:o,...n}=e;void 0!==t&&(n.cardClass=t),void 0!==o&&(n.cardStyle=o),Hv(i,n)}s.$forceUpdate()}return f}},h=e=>{u=!0,p.forEach(t=>{t(e)})},g=()=>{b.unmount(d),fo(d),b=null,s=null,!0!==u&&m.forEach(e=>{e()})};let b=me({name:"QGlobalDialog",setup(){return()=>e.h(l,{ref:c,...i,onOk:h,onHide:g})}},n);function y(){v("show")}return s=b.mount(d),null!==c.value?y():"function"===typeof l.__asyncLoader&&l.__asyncLoader().then(()=>{e.nextTick(y)}),f}}var Uv={install({$q:e,parentApp:t}){!0===this.__installed?e.bottomSheet=Qv(Dv,!1,t):this.create=e.bottomSheet=Qv(Dv,!1,t)}};function Wv(e){return encodeURIComponent(e)}function Yv(e){return decodeURIComponent(e)}function Kv(e){return Wv(e===Object(e)?JSON.stringify(e):""+e)}function Xv(e){if(""===e)return e;0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),e=Yv(e.replace(/\+/g," "));try{e=JSON.parse(e)}catch(e){}return e}function Zv(e){const t=new Date;return t.setMilliseconds(t.getMilliseconds()+e),t.toUTCString()}function Gv(e){let t=0;const o=e.match(/(\d+)d/),n=e.match(/(\d+)h/),a=e.match(/(\d+)m/),l=e.match(/(\d+)s/);return o&&(t+=864e5*o[1]),n&&(t+=36e5*n[1]),a&&(t+=6e4*a[1]),l&&(t+=1e3*l[1]),0===t?e:Zv(t)}function Jv(e,t,o={},n){let a,l;void 0!==o.expires&&("[object Date]"===Object.prototype.toString.call(o.expires)?a=o.expires.toUTCString():"string"===typeof o.expires?a=Gv(o.expires):(l=parseFloat(o.expires),a=!1===isNaN(l)?Zv(864e5*l):o.expires));const i=`${Wv(e)}=${Kv(t)}`,r=[i,void 0!==a?"; Expires="+a:"",o.path?"; Path="+o.path:"",o.domain?"; Domain="+o.domain:"",o.sameSite?"; SameSite="+o.sameSite:"",o.httpOnly?"; HttpOnly":"",o.secure?"; Secure":"",o.other?"; "+o.other:""].join("");if(n){n.req.qCookies?n.req.qCookies.push(r):n.req.qCookies=[r],n.res.setHeader("Set-Cookie",n.req.qCookies);let t=n.req.headers.cookie||"";if(void 0!==a&&l<0){const o=ep(e,n);void 0!==o&&(t=t.replace(`${e}=${o}; `,"").replace(`; ${e}=${o}`,"").replace(`${e}=${o}`,""))}else t=t?`${i}; ${t}`:r;n.req.headers.cookie=t}else document.cookie=r}function ep(e,t){const o=t?t.req.headers:document,n=o.cookie?o.cookie.split("; "):[],a=n.length;let l,i,r,s=e?null:{},u=0;for(;u<a;u++)if(l=n[u].split("="),i=Yv(l.shift()),r=l.join("="),e){if(e===i){s=Xv(r);break}}else s[i]=r;return s}function tp(e,t,o){Jv(e,"",{expires:-1,...t},o)}function op(e,t){return null!==ep(e,t)}function np(e){return{get:t=>ep(t,e),set:(t,o,n)=>Jv(t,o,n,e),has:t=>op(t,e),remove:(t,o)=>tp(t,o,e),getAll:()=>ep(null,e)}}const ap={install({$q:e,ssrContext:t}){e.cookies=this}};Object.assign(ap,np());var lp=e.defineComponent({name:"DialogPlugin",props:{...at,title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:"ok",validator:e=>["ok","cancel","none"].includes(e)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),{$q:a}=n,l=lt(t,a),i=e.ref(null),r=e.ref(void 0!==t.prompt?t.prompt.model:void 0!==t.options?t.options.model:void 0),s=e.computed(()=>"q-dialog-plugin"+(!0===l.value?" q-dialog-plugin--dark q-dark":"")+(!1!==t.progress?" q-dialog-plugin--progress":"")),u=e.computed(()=>t.color||(!0===l.value?"amber":"primary")),c=e.computed(()=>!1===t.progress?null:Object(t.progress)===t.progress?{component:t.progress.spinner||$t,props:{color:t.progress.color||u.value}}:{component:$t,props:{color:u.value}}),d=e.computed(()=>void 0!==t.prompt||void 0!==t.options),v=e.computed(()=>{if(!0!==d.value)return{};const{model:e,isValid:o,items:n,...a}=void 0!==t.prompt?t.prompt:t.options;return a}),p=e.computed(()=>Object(t.ok)===t.ok?a.lang.label.ok:!0===t.ok?a.lang.label.ok:t.ok),m=e.computed(()=>Object(t.cancel)===t.cancel?a.lang.label.cancel:!0===t.cancel?a.lang.label.cancel:t.cancel),f=e.computed(()=>{return void 0!==t.prompt?void 0!==t.prompt.isValid&&!0!==t.prompt.isValid(r.value):void 0!==t.options&&(void 0!==t.options.isValid&&!0!==t.options.isValid(r.value))}),h=e.computed(()=>({color:u.value,label:p.value,ripple:!1,...Object(t.ok)===t.ok?t.ok:{flat:!0},disable:f.value,"data-autofocus":"ok"===t.focus&&!0!==d.value||void 0,onClick:w})),g=e.computed(()=>({color:u.value,label:m.value,ripple:!1,...Object(t.cancel)===t.cancel?t.cancel:{flat:!0},"data-autofocus":"cancel"===t.focus&&!0!==d.value||void 0,onClick:x}));function b(){i.value.show()}function y(){i.value.hide()}function w(){o("ok",e.toRaw(r.value)),y()}function x(){y()}function _(){o("hide")}function C(e){r.value=e}function S(e){!0!==f.value&&"textarea"!==t.prompt.type&&!0===W(e,13)&&w()}function q(o,n){return!0===t.html?e.h(kn,{class:o,innerHTML:n}):e.h(kn,{class:o},()=>n)}function k(){return[e.h(qs,{modelValue:r.value,...v.value,color:u.value,dense:!0,autofocus:!0,dark:l.value,"onUpdate:modelValue":C,onKeyup:S})]}function $(){return[e.h(Ws,{modelValue:r.value,...v.value,color:u.value,options:t.options.items,dark:l.value,"onUpdate:modelValue":C})]}function M(){const o=[];return t.cancel&&o.push(e.h(Xt,g.value)),t.ok&&o.push(e.h(Xt,h.value)),e.h($n,{class:!0===t.stackButtons?"items-end":"",vertical:t.stackButtons,align:"right"},()=>o)}function T(){const o=[];return t.title&&o.push(q("q-dialog__title",t.title)),!1!==t.progress&&o.push(e.h(kn,{class:"q-dialog__progress"},()=>e.h(c.value.component,c.value.props))),t.message&&o.push(q("q-dialog__message",t.message)),void 0!==t.prompt?o.push(e.h(kn,{class:"scroll q-dialog-plugin__form"},k)):void 0!==t.options&&o.push(e.h(wr,{dark:l.value}),e.h(kn,{class:"scroll q-dialog-plugin__form"},$),e.h(wr,{dark:l.value})),(t.ok||t.cancel)&&o.push(M()),o}function B(){return[e.h(qn,{class:[s.value,t.cardClass],style:t.cardStyle,dark:l.value},T)]}return e.watch(()=>t.prompt&&t.prompt.model,C),e.watch(()=>t.options&&t.options.model,C),Object.assign(n,{show:b,hide:y}),()=>e.h(Di,{ref:i,onHide:_},B)}}),ip={install({$q:e,parentApp:t}){!0===this.__installed?e.dialog=Qv(lp,!0,t):this.create=e.dialog=Qv(lp,!0,t)}};const rp={ref:"bar"};var sp=v({isActive:!1},{start:m,stop:m,increment:m,setDefaults:m,install({$q:t,parentApp:o}){if(t.loadingBar=this,!0===this.__installed)return void(void 0!==t.config.loadingBar&&this.setDefaults(t.config.loadingBar));const n=e.ref(void 0!==t.config.loadingBar?{...t.config.loadingBar,...rp}:{...rp}),a=mo("q-loading-bar"),l=me({name:"LoadingBar",devtools:{hide:!0},setup:()=>()=>e.h(Le,n.value)},o).mount(a);Object.assign(this,{start:e=>{const t=l.$refs.bar;t.start(e),this.isActive=t.calls>0},stop:()=>{const e=l.$refs.bar;e.stop(),this.isActive=e.calls>0},increment(){const e=l.$refs.bar;e.increment.apply(null,arguments)},setDefaults:e=>{e===Object(e)&&(n.value={...n.value,...e,...rp})}})}});let up,cp,dp,vp=0,pp={};const mp={delay:0,message:!1,html:!1,spinnerSize:80,spinnerColor:"",messageColor:"",backgroundColor:"",boxClass:"",spinner:$t,customClass:""},fp={...mp},hp=v({isActive:!1},{show(t){if(pp=t===Object(t)&&!0===t.ignoreDefaults?{...mp,...t}:{...fp,...t},hp.isActive=!0,void 0!==up)return pp.uid=vp,void cp.$forceUpdate();pp.uid=++vp,clearTimeout(dp),dp=setTimeout(()=>{dp=void 0;const t=mo("q-loading");up=e.createApp({name:"QLoading",setup(){function o(){!0!==hp.isActive&&void 0!==up&&(Fi(!1),up.unmount(t),fo(t),up=void 0,cp=void 0)}function n(){if(!0!==hp.isActive)return null;const t=[e.h(pp.spinner,{class:"q-loading__spinner",color:pp.spinnerColor,size:pp.spinnerSize})];return pp.message&&t.push(e.h("div",{class:"q-loading__message"+(pp.messageColor?` text-${pp.messageColor}`:""),[!0===pp.html?"innerHTML":"textContent"]:pp.message})),e.h("div",{class:"q-loading fullscreen flex flex-center z-max "+pp.customClass.trim(),key:pp.uid},[e.h("div",{class:"q-loading__backdrop"+(pp.backgroundColor?` bg-${pp.backgroundColor}`:"")}),e.h("div",{class:"q-loading__box column items-center "+pp.boxClass},t)])}return e.onMounted(()=>{Fi(!0)}),()=>e.h(e.Transition,{name:"q-transition--fade",appear:!0,onAfterLeave:o},n)}}),cp=up.mount(t)},pp.delay)},hide(){!0===hp.isActive&&(void 0!==dp&&(clearTimeout(dp),dp=void 0),hp.isActive=!1)},setDefaults(e){e===Object(e)&&Object.assign(fp,e)},install({$q:e}){e.loading=this,void 0!==e.config.loading&&this.setDefaults(e.config.loading)}});let gp,bp;const yp=[];function wp(e){e.title&&(e.title=e.titleTemplate?e.titleTemplate(e.title):e.title,delete e.titleTemplate),[["meta","content"],["link","href"]].forEach(t=>{const o=e[t[0]],n=t[1];for(const e in o){const t=o[e];t.template&&(1===Object.keys(t).length?delete o[e]:(t[n]=t.template(t[n]||""),delete t.template))}})}function xp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const o in e)if(e[o]!==t[o])return!0}function _p(e){return!1===["class","style"].includes(e)}function Cp(e){return!1===["lang","dir"].includes(e)}function Sp(e,t){const o={},n={};return void 0===e?{add:t,remove:n}:(e.title!==t.title&&(o.title=t.title),["meta","link","script","htmlAttr","bodyAttr"].forEach(a=>{const l=e[a],i=t[a];if(n[a]=[],void 0!==l&&null!==l){o[a]={};for(const e in l)!1===i.hasOwnProperty(e)&&n[a].push(e);for(const e in i)!1===l.hasOwnProperty(e)?o[a][e]=i[e]:!0===xp(l[e],i[e])&&(n[a].push(e),o[a][e]=i[e])}else o[a]=i}),{add:o,remove:n})}function qp({add:e,remove:t}){e.title&&(document.title=e.title),Object.keys(t).length>0&&(["meta","link","script"].forEach(e=>{t[e].forEach(t=>{document.head.querySelector(`${e}[data-qmeta="${t}"]`).remove()})}),t.htmlAttr.filter(Cp).forEach(e=>{document.documentElement.removeAttribute(e)}),t.bodyAttr.filter(_p).forEach(e=>{document.body.removeAttribute(e)})),["meta","link","script"].forEach(t=>{const o=e[t];for(const e in o){const n=document.createElement(t);for(const t in o[e])"innerHTML"!==t&&n.setAttribute(t,o[e][t]);n.setAttribute("data-qmeta",e),"script"===t&&(n.innerHTML=o[e].innerHTML||""),document.head.appendChild(n)}}),Object.keys(e.htmlAttr).filter(Cp).forEach(t=>{document.documentElement.setAttribute(t,e.htmlAttr[t]||"")}),Object.keys(e.bodyAttr).filter(_p).forEach(t=>{document.body.setAttribute(t,e.bodyAttr[t]||"")})}function kp(){const e={title:"",titleTemplate:null,meta:{},link:{},script:{},htmlAttr:{},bodyAttr:{}};for(let t=0;t<yp.length;t++){const{active:o,val:n}=yp[t];!0===o&&mr(!0,e,n)}wp(e),qp(Sp(bp,e)),bp=e}function $p(){clearTimeout(gp),gp=setTimeout(kp,50)}var Mp={install(e){!0!==this.__installed&&!0===t.value&&(bp=window.__Q_META__,document.getElementById("qmeta-init").remove())}};let Tp,Bp=0;const Op={},Vp=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],zp=["top-left","top-right","bottom-left","bottom-right"],Lp={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}},Ep={},Pp={};function Ap(e,t){return console.error(`Notify: ${e}`,t),!1}function Fp(t){return e.defineComponent({name:"QNotifications",devtools:{hide:!0},setup(){const o={},n=[];function a(e){clearTimeout(e.meta.timer);const t=o[e.position].value.indexOf(e);if(-1!==t){void 0!==e.group&&delete Ep[e.meta.group];const a=n[""+e.meta.uid];if(a){const{width:e,height:t}=getComputedStyle(a);a.style.left=`${a.offsetLeft}px`,a.style.width=e,a.style.height=t}o[e.position].value.splice(t,1),"function"===typeof e.onDismiss&&e.onDismiss()}}return Vp.forEach(t=>{o[t]=e.ref([]);const n=!0===["left","center","right"].includes(t)?"center":t.indexOf("top")>-1?"top":"bottom",a=t.indexOf("left")>-1?"start":t.indexOf("right")>-1?"end":"center",l=["left","right"].includes(t)?`items-${"left"===t?"start":"end"} justify-center`:"center"===t?"flex-center":`items-${a}`;Pp[t]=`q-notifications__list q-notifications__list--${n} fixed column no-wrap ${l}`}),Tp=((n,l)=>{if(!n)return Ap("parameter required");let i;const r={textColor:"white"};if(!0!==n.ignoreDefaults&&Object.assign(r,Op),Object(n)!==n&&(r.type&&Object.assign(r,Lp[r.type]),n={message:n}),Object.assign(r,Lp[n.type||r.type],n),"function"===typeof r.icon&&(r.icon=r.icon(t)),r.spinner?(!0===r.spinner&&(r.spinner=$t),r.spinner=e.markRaw(r.spinner)):r.spinner=!1,r.meta={hasMedia:Boolean(!1!==r.spinner||r.icon||r.avatar),hasText:Boolean(void 0!==r.message&&null!==r.message||void 0!==r.caption&&null!==r.caption)},r.position){if(!1===Vp.includes(r.position))return Ap("wrong position",n)}else r.position="bottom";if(void 0===r.timeout)r.timeout=5e3;else{const e=parseInt(r.timeout,10);if(isNaN(e)||e<0)return Ap("wrong timeout",n);r.timeout=e}0===r.timeout?r.progress=!1:!0===r.progress&&(r.meta.progressClass="q-notification__progress"+(r.progressClass?` ${r.progressClass}`:""),r.meta.progressStyle={animationDuration:`${r.timeout+1e3}ms`});const s=(!0===Array.isArray(n.actions)?n.actions:[]).concat(!0!==n.ignoreDefaults&&!0===Array.isArray(Op.actions)?Op.actions:[]).concat(void 0!==Lp[n.type]&&!0===Array.isArray(Lp[n.type].actions)?Lp[n.type].actions:[]);if(r.closeBtn&&s.push({label:"string"===typeof r.closeBtn?r.closeBtn:t.lang.label.close}),r.actions=s.map(({handler:e,noDismiss:t,...o})=>({flat:!0,...o,onClick:"function"===typeof e?()=>{e(),!0!==t&&u()}:()=>{u()}})),void 0===r.multiLine&&(r.multiLine=r.actions.length>1),Object.assign(r.meta,{class:"q-notification row items-stretch"+` q-notification--${!0===r.multiLine?"multi-line":"standard"}`+(void 0!==r.color?` bg-${r.color}`:"")+(void 0!==r.textColor?` text-${r.textColor}`:"")+(void 0!==r.classes?` ${r.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(!0===r.multiLine?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(!0===r.multiLine?"":" col"),leftClass:!0===r.meta.hasText?"additional":"single",attrs:{role:"alert",...r.attrs}}),!1===r.group?(r.group=void 0,r.meta.group=void 0):(void 0!==r.group&&!0!==r.group||(r.group=[r.message,r.caption,r.multiline].concat(r.actions.map(e=>`${e.label}*${e.icon}`)).join("|")),r.meta.group=r.group+"|"+r.position),0===r.actions.length?r.actions=void 0:r.meta.actionsClass="q-notification__actions row items-center "+(!0===r.multiLine?"justify-end":"col-auto")+(!0===r.meta.hasMedia?" q-notification__actions--with-media":""),void 0!==l){clearTimeout(l.notif.meta.timer),r.meta.uid=l.notif.meta.uid;const e=o[r.position].value.indexOf(l.notif);o[r.position].value[e]=r}else{const e=Ep[r.meta.group];if(void 0===e){if(r.meta.uid=Bp++,r.meta.badge=1,-1!==["left","right","center"].indexOf(r.position))o[r.position].value.splice(Math.floor(o[r.position].value.length/2),0,r);else{const e=r.position.indexOf("top")>-1?"unshift":"push";o[r.position].value[e](r)}void 0!==r.group&&(Ep[r.meta.group]=r)}else{if(clearTimeout(e.meta.timer),void 0!==r.badgePosition){if(!1===zp.includes(r.badgePosition))return Ap("wrong badgePosition",n)}else r.badgePosition=`top-${r.position.indexOf("left")>-1?"right":"left"}`;r.meta.uid=e.meta.uid,r.meta.badge=e.meta.badge+1,r.meta.badgeClass=`q-notification__badge q-notification__badge--${r.badgePosition}`+(void 0!==r.badgeColor?` bg-${r.badgeColor}`:"")+(void 0!==r.badgeTextColor?` text-${r.badgeTextColor}`:"")+(r.badgeClass?` ${r.badgeClass}`:"");const t=o[r.position].value.indexOf(e);o[r.position].value[t]=Ep[r.meta.group]=r}}const u=()=>{a(r),i=void 0};return r.timeout>0&&(r.meta.timer=setTimeout(()=>{u()},r.timeout+1e3)),void 0!==r.group?e=>{void 0!==e?Ap("trying to update a grouped one which is forbidden",n):u()}:(i={dismiss:u,config:n,notif:r},void 0===l?e=>{if(void 0!==i)if(void 0===e)i.dismiss();else{const t=Object.assign({},i.config,e,{group:!1,position:r.position});Tp(t,i)}}:void Object.assign(l,i))}),()=>e.h("div",{class:"q-notifications"},Vp.map(t=>{return e.h(e.TransitionGroup,{key:t,class:Pp[t],tag:"div",name:`q-notification--${t}`},()=>o[t].value.map(t=>{const o=t.meta,a=[];if(!0===o.hasMedia&&(!1!==t.spinner?a.push(e.h(t.spinner,{class:"q-notification__spinner q-notification__spinner--"+o.leftClass})):t.icon?a.push(e.h(et,{class:"q-notification__icon q-notification__icon--"+o.leftClass,name:t.icon,role:"img"})):t.avatar&&a.push(e.h(tt,{class:"q-notification__avatar q-notification__avatar--"+o.leftClass},()=>e.h("img",{src:t.avatar,"aria-hidden":"true"})))),!0===o.hasText){let o;const n={class:"q-notification__message col"};if(!0===t.html)n.innerHTML=t.caption?`<div>${t.message}</div><div class="q-notification__caption">${t.caption}</div>`:t.message;else{const n=[t.message];o=t.caption?[e.h("div",n),e.h("div",{class:"q-notification__caption"},[t.caption])]:n}a.push(e.h("div",n,o))}const l=[e.h("div",{class:o.contentClass},a)];return!0===t.progress&&l.push(e.h("div",{key:`${o.uid}|p|${o.badge}`,class:o.progressClass,style:o.progressStyle})),void 0!==t.actions&&l.push(e.h("div",{class:o.actionsClass},t.actions.map(t=>e.h(Xt,t)))),o.badge>1&&l.push(e.h("div",{key:`${o.uid}|${o.badge}`,class:t.meta.badgeClass,style:t.badgeStyle},[o.badge])),e.h("div",{ref:e=>{n[""+o.uid]=e},key:o.uid,class:o.class,...o.attrs},[e.h("div",{class:o.wrapperClass},l)])}))}))}})}var Rp={create(e){return Tp(e)},setDefaults(e){e===Object(e)&&Object.assign(Op,e)},registerType(e,t){t===Object(t)&&(Lp[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create,e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,void 0!==e.config.notify&&this.setDefaults(e.config.notify),!0!==this.__installed){const o=mo("q-notify");me(Fp(e),t).mount(o)}}};function Ip(e){return"[object Date]"===Object.prototype.toString.call(e)?"__q_date|"+e.toUTCString():"[object RegExp]"===Object.prototype.toString.call(e)?"__q_expr|"+e.source:"number"===typeof e?"__q_numb|"+e:"boolean"===typeof e?"__q_bool|"+(e?"1":"0"):"string"===typeof e?"__q_strn|"+e:"function"===typeof e?"__q_strn|"+e.toString():e===Object(e)?"__q_objt|"+JSON.stringify(e):e}function Np(e){const t=e.length;if(t<9)return e;const o=e.substr(0,8),n=e.substring(9);switch(o){case"__q_date":return new Date(n);case"__q_expr":return new RegExp(n);case"__q_numb":return Number(n);case"__q_bool":return Boolean("1"===n);case"__q_strn":return""+n;case"__q_objt":return JSON.parse(n);default:return e}}function jp(){const e=()=>null;return{has:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:m,remove:m,clear:m,isEmpty:()=>!0}}function Dp(e){const t=window[e+"Storage"],o=e=>{const o=t.getItem(e);return o?Np(o):null};return{has:e=>null!==t.getItem(e),getLength:()=>t.length,getItem:o,getIndex:e=>{return e<t.length?o(t.key(e)):null},getKey:e=>{return e<t.length?t.key(e):null},getAll:()=>{let e;const n={},a=t.length;for(let l=0;l<a;l++)e=t.key(l),n[e]=o(e);return n},getAllKeys:()=>{const e=[],o=t.length;for(let n=0;n<o;n++)e.push(t.key(n));return e},set:(e,o)=>{t.setItem(e,Ip(o))},remove:e=>{t.removeItem(e)},clear:()=>{t.clear()},isEmpty:()=>0===t.length}}const Hp=!1===c.has.webStorage?jp():Dp("local"),Qp={install({$q:e}){e.localStorage=Hp}};Object.assign(Qp,Hp);const Up=!1===c.has.webStorage?jp():Dp("session"),Wp={install({$q:e}){e.sessionStorage=Up}};Object.assign(Wp,Up);var Yp=Object.freeze({__proto__:null,AddressbarColor:Pv,AppFullscreen:Iv,AppVisibility:jv,BottomSheet:Uv,Cookies:ap,Dark:L,Dialog:ip,LoadingBar:sp,Loading:hp,Meta:Mp,Notify:Rp,Platform:d,Screen:z,LocalStorage:Qp,SessionStorage:Wp});function Kp(e){const t=document.createElement("textarea");t.value=e,t.contentEditable=!0,t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();const o=document.execCommand("copy");return t.remove(),o}function Xp(e){return void 0!==navigator.clipboard?navigator.clipboard.writeText(e):new Promise((t,o)=>{const n=Kp(e);n?t(!0):o(n)})}var Zp=e=>{const t={activated(){this.__qMeta.active=!0,$p()},deactivated(){this.__qMeta.active=!1,$p()},unmounted(){yp.splice(yp.indexOf(this.__qMeta),1),$p(),this.__qMeta=void 0}};return"function"===typeof e?Object.assign(t,{computed:{__qMetaOptions(){return e.call(this)||{}}},watch:{__qMetaOptions(e){this.__qMeta.val=e,!0===this.__qMeta.active&&$p()}},created(){this.__qMeta={active:!0,val:this.__qMetaOptions},yp.push(this.__qMeta),$p()}}):t.created=function(){this.__qMeta={active:!0,val:e},yp.push(this.__qMeta),$p()},t};function Gp(e){setTimeout(()=>{window.URL.revokeObjectURL(e.href)},1e4),e.remove()}function Jp(e,t,o={}){const{mimeType:n,byteOrderMark:a,encoding:l}="string"===typeof o?{mimeType:o}:o,i=void 0!==l?new TextEncoder(l).encode([t]):t,r=void 0!==a?[a,i]:[i],s=new Blob(r,{type:n||"application/octet-stream"}),u=document.createElement("a");u.href=window.URL.createObjectURL(s),u.setAttribute("download",e),"undefined"===typeof u.download&&u.setAttribute("target","_blank"),u.classList.add("hidden"),u.style.position="fixed",document.body.appendChild(u);try{return u.click(),Gp(u),!0}catch(e){return Gp(u),e}}function em(e){const t=Object.assign({noopener:!0},e),o=[];return Object.keys(t).forEach(e=>{!0===t[e]&&o.push(e)}),o.join(",")}function tm(e,t,o){let n=window.open;if(!0===d.is.cordova)if(void 0!==cordova&&void 0!==cordova.InAppBrowser&&void 0!==cordova.InAppBrowser.open)n=cordova.InAppBrowser.open;else if(void 0!==navigator&&void 0!==navigator.app)return navigator.app.loadUrl(e,{openExternal:!0});const a=n(e,"_blank",em(o));if(a)return d.is.desktop&&a.focus(),a;t&&t()}var om=(e,t,o)=>{if(!0!==d.is.ios||void 0===window.SafariViewController)return tm(e,t,o);window.SafariViewController.isAvailable(n=>{n?window.SafariViewController.show({url:e},m,t):tm(e,t,o)})},nm=Object.freeze({__proto__:null,clone:au,colors:sl,copyToClipboard:Xp,createMetaMixin:Zp,createUploaderComponent:Od,date:hi,debounce:B,dom:At,event:T,exportFile:Jp,extend:mr,format:Se,frameDebounce:tu,getCssVar:Ov,noop:m,morph:av,openURL:om,patterns:Ya,scroll:jo,setCssVar:D,throttle:Ft,uid:kr});function am(){const{emit:t,proxy:o}=e.getCurrentInstance(),n=e.ref(null);function a(){n.value.show()}function l(){n.value.hide()}function i(e){t("ok",e),l()}function r(){t("hide")}return Object.assign(o,{show:a,hide:l}),{dialogRef:n,onDialogHide:r,onDialogOK:i,onDialogCancel:l}}function lm(t){{const o={active:!0};if("function"===typeof t){const n=e.computed(t);o.val=n.value,e.watch(n,e=>{o.val=e,!0===o.active&&$p()})}else o.val=t;yp.push(o),$p(),e.onActivated(()=>{o.active=!0,$p()}),e.onDeactivated(()=>{o.active=!1,$p()}),e.onUnmounted(()=>{yp.splice(yp.indexOf(o),1),$p()})}}function im(){return e.inject(te)}am.emits=["ok","hide"];var rm=Object.freeze({__proto__:null,useDialogPluginComponent:am,useFormChild:Rr,useMeta:lm,useQuasar:im}),sm={version:"2.2.1",install(e,t){ge(e,{components:Id,directives:Bv,plugins:Yp,...t})},lang:j,iconSet:ee,...Id,...Bv,...Yp,...rm,...nm};return sm});
6
+ (function(e,t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define(["vue"],t):(e="undefined"!==typeof globalThis?globalThis:e||self,e.Quasar=t(e.Vue))})(this,function(e){"use strict";const t=e.ref(!1);let o;function n(e,t){const o=/(edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\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)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[2]||o[4]||"0",versionNumber:o[4]||o[2]||"0",platform:t[0]||""}}function a(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 l="ontouchstart"in window||window.navigator.maxTouchPoints>0;function i(e){o={is:{...e}},delete e.mac,delete e.desktop;const t=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:t,[t]:!0})}function r(e){const t=e.toLowerCase(),o=a(t),r=n(t,o),s={};r.browser&&(s[r.browser]=!0,s.version=r.version,s.versionNumber=parseInt(r.versionNumber,10)),r.platform&&(s[r.platform]=!0);const u=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];return!0===u||t.indexOf("mobile")>-1?(s.mobile=!0,s.edga||s.edgios?(s.edge=!0,r.browser="edge"):s.crios?(s.chrome=!0,r.browser="chrome"):s.fxios&&(s.firefox=!0,r.browser="firefox")):s.desktop=!0,(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),(s.chrome||s.opr||s.safari||s.vivaldi||!0===s.mobile&&!0!==s.ios&&!0!==u)&&(s.webkit=!0),(s.safari&&s.blackberry||s.bb)&&(r.browser="blackberry",s.blackberry=!0),s.safari&&s.playbook&&(r.browser="playbook",s.playbook=!0),s.opr&&(r.browser="opera",s.opera=!0),s.safari&&s.android&&(r.browser="android",s.android=!0),s.safari&&s.kindle&&(r.browser="kindle",s.kindle=!0),s.safari&&s.silk&&(r.browser="silk",s.silk=!0),s.vivaldi&&(r.browser="vivaldi",s.vivaldi=!0),s.name=r.browser,s.platform=r.platform,t.indexOf("electron")>-1?s.electron=!0:document.location.href.indexOf("-extension://")>-1?s.bex=!0:(void 0!==window.Capacitor?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),!0===l&&!0===s.mac&&(!0===s.desktop&&!0===s.safari||!0===s.nativeMobile&&!0!==s.android&&!0!==s.ios&&!0!==s.ipad)&&i(s)),s}const s=navigator.userAgent||navigator.vendor||window.opera,u={has:{touch:!1,webStorage:!1},within:{iframe:!1}},c={userAgent:s,is:r(s),has:{touch:l},within:{iframe:window.self!==window.top}},d={install(n){const{$q:a}=n;!0===t.value?(n.onSSRHydrated.push(()=>{t.value=!1,Object.assign(a.platform,c),o=void 0}),a.platform=e.reactive(this)):a.platform=this}};{let e;Object.defineProperty(c.has,"webStorage",{get:()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(e){}return e=!1,!1}}),!0===c.is.ios&&window.navigator.vendor.toLowerCase().indexOf("apple"),!0===t.value?Object.assign(d,c,o,u):Object.assign(d,c)}var v=(t,o)=>{const n={},a=e.reactive(t);return Object.keys(t).forEach(e=>{n[e]={get:()=>a[e],set:t=>{a[e]=t}}}),Object.defineProperties(o,n),o};const p={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(p,{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(e){}function m(){}function f(e){return 0===e.button}function h(e){return 1===e.button}function g(e){return 2===e.button}function b(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 y(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let o=e.target;while(o){if(t.push(o),"HTML"===o.tagName)return t.push(document),t.push(window),t;o=o.parentElement}}const w=40,x=800;function _(e){let t=e.deltaX,o=e.deltaY;if((t||o)&&e.deltaMode){const n=1===e.deltaMode?w:x;t*=n,o*=n}return e.shiftKey&&!t&&([o,t]=[t,o]),{x:t,y:o}}function S(e){e.stopPropagation()}function C(e){!1!==e.cancelable&&e.preventDefault()}function q(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function k(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const o=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",C,p.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",C,p.notPassiveCapture)};e.querySelectorAll("a, img").forEach(o)}function $(e,t,o){const n=`__q_${t}_evt`;e[n]=void 0!==e[n]?e[n].concat(o):o,o.forEach(t=>{t[0].addEventListener(t[1],e[t[2]],p[t[3]])})}function M(e,t){const o=`__q_${t}_evt`;void 0!==e[o]&&(e[o].forEach(t=>{t[0].removeEventListener(t[1],e[t[2]],p[t[3]])}),e[o]=void 0)}var T={listenOpts:p,leftClick:f,middleClick:h,rightClick:g,position:b,getEventPath:y,getMouseWheelDistance:_,stop:S,prevent:C,stopAndPrevent:q,preventDraggable:k};function B(e,t=250,o){let n;function a(){const a=arguments,l=()=>{n=void 0,!0!==o&&e.apply(this,a)};clearTimeout(n),!0===o&&void 0===n&&e.apply(this,a),n=setTimeout(l,t)}return a.cancel=(()=>{clearTimeout(n)}),a}const O=["sm","md","lg","xl"],{passive:V}=p;var z=v({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:m,setDebounce:m,install({$q:e,onSSRHydrated:o}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const n=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=(e=>{const t=window.innerWidth,o=window.innerHeight;if(o!==this.height&&(this.height=o),t!==this.width)this.width=t;else if(!0!==e)return;let a=this.sizes;this.gt.xs=t>=a.sm,this.gt.sm=t>=a.md,this.gt.md=t>=a.lg,this.gt.lg=t>=a.xl,this.lt.sm=t<a.sm,this.lt.md=t<a.md,this.lt.lg=t<a.lg,this.lt.xl=t<a.xl,this.xs=this.lt.sm,this.sm=!0===this.gt.xs&&!0===this.lt.md,this.md=!0===this.gt.sm&&!0===this.lt.lg,this.lg=!0===this.gt.md&&!0===this.lt.xl,this.xl=this.gt.lg,a=(!0===this.xs?"xs":!0===this.sm&&"sm")||!0===this.md&&"md"||!0===this.lg&&"lg"||"xl",a!==this.name&&(!0===n&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${a}`)),this.name=a)});let a,l={},i=16;this.setSizes=(e=>{O.forEach(t=>{void 0!==e[t]&&(l[t]=e[t])})}),this.setDebounce=(e=>{i=e});const r=()=>{const e=getComputedStyle(document.body),t=void 0!==window.visualViewport?window.visualViewport:window;e.getPropertyValue("--q-size-sm")&&O.forEach(t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)}),this.setSizes=(e=>{O.forEach(t=>{e[t]&&(this.sizes[t]=e[t])}),this.__update(!0)}),this.setDebounce=(e=>{void 0!==a&&t.removeEventListener("resize",a,V),a=e>0?B(this.__update,e):this.__update,t.addEventListener("resize",a,V)}),this.setDebounce(i),Object.keys(l).length>0?(this.setSizes(l),l=void 0):this.__update(),!0===n&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===t.value?o.push(r):r()}});const L=v({isActive:!1,mode:!1},{__media:void 0,set(e){L.mode=e,"auto"===e?(void 0===L.__media&&(L.__media=window.matchMedia("(prefers-color-scheme: dark)"),L.__updateMedia=(()=>{L.set("auto")}),L.__media.addListener(L.__updateMedia)),e=L.__media.matches):void 0!==L.__media&&(L.__media.removeListener(L.__updateMedia),L.__media=void 0),L.isActive=!0===e,document.body.classList.remove(`body--${!0===e?"light":"dark"}`),document.body.classList.add(`body--${!0===e?"dark":"light"}`)},toggle(){L.set(!1===L.isActive)},install({$q:e,onSSRHydrated:o,ssrContext:n}){const{dark:a}=e.config;if(e.dark=this,!0===this.__installed&&void 0===a)return;this.isActive=!0===a;const l=void 0!==a&&a;if(!0===t.value){const e=e=>{this.__fromSSR=e},t=this.set;this.set=e,e(l),o.push(()=>{this.set=t,this.set(this.__fromSSR)})}else this.set(l)}}),E=()=>!0;function P(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function A(e){return!0===e.startsWith("#")&&(e=e.substr(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substr(0,e.length-1)),"#"+e}function F(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return E;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(P).map(A)),()=>t.includes(window.location.hash)}var R={__history:[],add:m,remove:m,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:o}=c.is;if(!0!==t&&!0!==o)return;const n=e.config[!0===t?"cordova":"capacitor"];if(void 0!==n&&!1===n.backButton)return;if(!0===o&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=(e=>{void 0===e.condition&&(e.condition=E),this.__history.push(e)}),this.remove=(e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)});const a=F(Object.assign({backButtonExit:!0},n)),l=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===a()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",l,!1)}):window.Capacitor.Plugins.App.addListener("backButton",l)}},I={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,o)=>e+"-"+t+" of "+o,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function j(){const e=!0===Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase()).join("-")}const N=v({__langPack:{}},{getLocale:j,set(e=I,t){const o={...e,rtl:!0===e.rtl,getLocale:j};{const e=document.documentElement;e.setAttribute("dir",!0===o.rtl?"rtl":"ltr"),e.setAttribute("lang",o.isoName),o.set=N.set,Object.assign(N.__langPack,o),N.props=o,N.isoName=o.isoName,N.nativeName=o.nativeName}},install({$q:e,lang:t,ssrContext:o}){e.lang=N.__langPack,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||I)}});function D(e,t,o=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(o instanceof Element))throw new TypeError("Expected a DOM element");o.style.setProperty(`--q-${e}`,t)}let H=!1;function Q(e){H=!0===e.isComposing}function U(e){return!0===H||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function W(e,t){return!0!==U(e)&&[].concat(t).includes(e.keyCode)}function Y(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function K({is:e,has:t,within:o},n){const a=[!0===e.desktop?"desktop":"mobile",`${!1===t.touch?"no-":""}touch`];if(!0===e.mobile){const t=Y(e);void 0!==t&&a.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;a.push(t),a.push("native-mobile"),!0!==e.ios||void 0!==n[t]&&!1===n[t].iosStatusBarPadding||a.push("q-ios-padding")}else!0===e.electron?a.push("electron"):!0===e.bex&&a.push("bex");return!0===o.iframe&&a.push("within-iframe"),a}function X(){const e=document.body.className;let t=e;void 0!==o&&(t=t.replace("desktop","platform-ios mobile")),!0===c.has.touch&&(t=t.replace("no-touch","touch")),!0===c.within.iframe&&(t+=" within-iframe"),e!==t&&(document.body.className=t)}function Z(e){for(const t in e)D(t,e[t])}var G={install(e){const{$q:o}=e;if(void 0!==o.config.brand&&Z(o.config.brand),!0!==this.__installed){if(!0===t.value)X();else{const e=K(c,o.config);document.body.classList.add.apply(document.body.classList,e)}!0===c.is.ios&&document.body.addEventListener("touchstart",m),window.addEventListener("keydown",Q,!0)}}},J={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"}};const ee=v({iconMapFn:null,__icons:{}},{set(e,t){const o={...e,rtl:!0===e.rtl};o.set=ee.set,Object.assign(ee.__icons,o)},install({$q:e,iconSet:t,ssrContext:o}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,Object.defineProperty(e,"iconMapFn",{get:()=>this.iconMapFn,set:e=>{this.iconMapFn=e}}),!0===this.__installed?void 0!==t&&this.set(t):this.set(t||J)}}),te="_q_",oe="_q_t_",ne="_q_s_",ae="_q_l_",le="_q_pc_",ie="_q_f_",re="_q_fo_",se="_q_tabs_",ue="_q_u_",ce={};let de=!1;function ve(){de=!0}const pe=[d,G,L,z,R,N,ee];function me(t,o){const n=e.createApp(t);n.config.globalProperties=o.config.globalProperties;const{reload:a,...l}=o._context;return Object.assign(n._context,l),n}function fe(e,t){t.forEach(t=>{t.install(e),t.__installed=!0})}function he(e,o,n){e.config.globalProperties.$q=n.$q,e.provide(te,n.$q),fe(n,pe),void 0!==o.components&&Object.values(o.components).forEach(t=>{Object(t)===t&&void 0!==t.name&&e.component(t.name,t)}),void 0!==o.directives&&Object.values(o.directives).forEach(t=>{Object(t)===t&&void 0!==t.name&&e.directive(t.name,t)}),void 0!==o.plugins&&fe(n,Object.values(o.plugins).filter(e=>"function"===typeof e.install&&!1===pe.includes(e))),!0===t.value&&(n.$q.onSSRHydrated=(()=>{n.onSSRHydrated.forEach(e=>{e()}),n.$q.onSSRHydrated=(()=>{})}))}var ge=function(e,t={}){const o={version:"2.3.0"};!1===de?(void 0!==t.config&&Object.assign(ce,t.config),o.config={...ce},ve()):o.config=t.config||{},he(e,t,{parentApp:e,$q:o,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})};const be=t=>e.markRaw(e.defineComponent(t)),ye=t=>e.markRaw(t),we=["B","KB","MB","GB","TB","PB"];function xe(e){let t=0;while(parseInt(e,10)>=1024&&t<we.length-1)e/=1024,++t;return`${e.toFixed(1)}${we[t]}`}function _e(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Se(e,t,o){return o<=t?t:Math.min(o,Math.max(t,e))}function Ce(e,t,o){if(o<=t)return t;const n=o-t+1;let a=t+(e-t)%n;return a<t&&(a=n+a),0===a?0:a}function qe(e,t=2,o="0"){if(void 0===e||null===e)return e;const n=""+e;return n.length>=t?n:new Array(t-n.length+1).join(o)+n}var ke={humanStorageSize:xe,capitalize:_e,between:Se,normalizeToInterval:Ce,pad:qe};const $e=XMLHttpRequest,Me=$e.prototype.send,Te=[],Be=[];let Oe=0;function Ve({p:e,pos:t,active:o,horiz:n,reverse:a,dir:l}){let i=1,r=1;return n?(a&&(i=-1),"bottom"===t&&(r=-1),{transform:`translate3d(${i*(e-100)}%,${o?0:-200*r}%,0)`}):(a&&(r=-1),"right"===t&&(i=-1),{transform:`translate3d(${o?0:l*i*-200}%,${r*(e-100)}%,0)`})}function ze(e,t){return"number"!==typeof t&&(t=e<25?3*Math.random()+3:e<65?3*Math.random():e<85?2*Math.random():e<99?.6:0),Se(e+t,0,100)}function Le(e,t){function o(){Be.forEach(e=>{e()})}Te.push(e),Be.push(t),Oe++,Oe>1||($e.prototype.send=function(){Te.forEach(e=>{e()}),this.addEventListener("loadend",o,!1),Me.apply(this,arguments)})}function Ee(e,t){Te.splice(Te.indexOf(e),1),Be.splice(Be.indexOf(t),1),Oe=Math.max(0,Oe-1),0===Oe&&($e.prototype.send=Me)}var Pe=be({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:e=>["top","right","bottom","left"].includes(e)},size:{type:String,default:"2px"},color:String,skipHijack:Boolean,reverse:Boolean},emits:["start","stop"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),a=e.ref(0),l=e.ref(!1),i=e.ref(!0);let r,s,u=0;const c=e.computed(()=>`q-loading-bar q-loading-bar--${t.position}`+(void 0!==t.color?` bg-${t.color}`:"")+(!0===i.value?"":" no-transition")),d=e.computed(()=>"top"===t.position||"bottom"===t.position),v=e.computed(()=>!0===d.value?"height":"width"),p=e.computed(()=>{const e=l.value,o=Ve({p:a.value,pos:t.position,active:e,horiz:d.value,reverse:!0===n.$q.lang.rtl&&["top","bottom"].includes(t.position)?!t.reverse:t.reverse,dir:!0===n.$q.lang.rtl?-1:1});return o[v.value]=t.size,o.opacity=e?1:0,o}),m=e.computed(()=>!0===l.value?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a.value}:{"aria-hidden":"true"});function f(e=300){const t=s;s=Math.max(0,e)||0,u++,u>1?0===t&&e>0?b():t>0&&e<=0&&clearTimeout(r):(clearTimeout(r),o("start"),a.value=0,!0!==l.value&&(l.value=!0,i.value=!1,r=setTimeout(()=>{i.value=!0,e>0&&b()},100)))}function h(e){u>0&&(a.value=ze(a.value,e))}function g(){if(u=Math.max(0,u-1),u>0)return;clearTimeout(r),o("stop");const e=()=>{i.value=!0,a.value=100,r=setTimeout(()=>{l.value=!1},1e3)};0===a.value?r=setTimeout(e,1):e()}function b(){a.value<100&&(r=setTimeout(()=>{h(),b()},s))}let y;return e.onMounted(()=>{!0!==t.skipHijack&&(y=!0,Le(f,g))}),e.onBeforeUnmount(()=>{clearTimeout(r),!0===y&&Ee(f,g)}),Object.assign(n,{start:f,stop:g,increment:h}),()=>e.h("div",{class:c.value,style:p.value,...m.value})}});const Ae={xs:18,sm:24,md:32,lg:38,xl:46},Fe={size:String};function Re(t,o=Ae){return e.computed(()=>void 0!==t.size?{fontSize:t.size in o?`${o[t.size]}px`:t.size}:null)}function Ie(e,t){return void 0!==e&&e()||t}function je(e,t){if(void 0!==e){const t=e();if(void 0!==t&&null!==t)return t.slice()}return t}function Ne(e,t){return void 0!==e?t.concat(e()):t}function De(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function He(t,o,n,a,l,i){o.key=a+l;const r=e.h(t,o,n);return!0===l?e.withDirectives(r,i()):r}const Qe=e=>e,Ue=e=>`ionicons ${e}`,We={"icon-":Qe,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Ue,"ion-ios":Ue,"ion-logo":Ue,"mdi-":e=>`mdi ${e}`,"iconfont ":Qe,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},Ye={o_:"-outlined",r_:"-round",s_:"-sharp"},Ke=new RegExp("^("+Object.keys(We).join("|")+")"),Xe=new RegExp("^("+Object.keys(Ye).join("|")+")"),Ze=/^M/,Ge=/^img:/,Je=/^svguse:/,et=/^ion-/,tt=/^[l|f]a[s|r|l|b|d]? /;var ot=be({name:"QIcon",props:{...Fe,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=Re(t),l=e.computed(()=>"q-icon"+(!0===t.left?" on-left":"")+(!0===t.right?" on-right":"")+(void 0!==t.color?` text-${t.color}`:"")),i=e.computed(()=>{let o,a=t.name;if(!a)return{none:!0,cls:l.value};if(null!==n.iconMapFn){const e=n.iconMapFn(a);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls+" "+l.value,content:void 0!==e.content?e.content:" "};a=e.icon}}if(!0===Ze.test(a)){const[t,o]=a.split("|");return{svg:!0,cls:l.value,nodes:t.split("&&").map(t=>{const[o,n,a]=t.split("@@");return e.h("path",{style:n,d:o,transform:a})}),viewBox:void 0!==o?o:"0 0 24 24"}}if(!0===Ge.test(a))return{img:!0,cls:l.value,src:a.substring(4)};if(!0===Je.test(a)){const[e,t]=a.split("|");return{svguse:!0,cls:l.value,src:e.substring(7),viewBox:void 0!==t?t:"0 0 24 24"}}let i=" ";const r=a.match(Ke);if(null!==r)o=We[r[1]](a);else if(!0===tt.test(a))o=a;else if(!0===et.test(a))o=`ionicons ion-${!0===n.platform.is.ios?"ios":"md"}${a.substr(3)}`;else{o="notranslate material-icons";const e=a.match(Xe);null!==e&&(a=a.substring(2),o+=Ye[e[1]]),i=a}return{cls:o+" "+l.value,content:i}});return()=>{const n={class:i.value.cls,style:a.value,"aria-hidden":"true",role:"presentation"};return!0===i.value.none?e.h(t.tag,n,Ie(o.default)):!0===i.value.img?(n.src=i.value.src,e.h("img",n)):!0===i.value.svg?(n.viewBox=i.value.viewBox,e.h("svg",n,Ne(o.default,i.value.nodes))):!0===i.value.svguse?(n.viewBox=i.value.viewBox,e.h("svg",n,Ne(o.default,[e.h("use",{"xlink:href":i.value.src})]))):e.h(t.tag,n,Ne(o.default,[i.value.content]))}}}),nt=be({name:"QAvatar",props:{...Fe,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(t,{slots:o}){const n=Re(t),a=e.computed(()=>"q-avatar"+(t.color?` bg-${t.color}`:"")+(t.textColor?` text-${t.textColor} q-chip--colored`:"")+(!0===t.square?" q-avatar--square":!0===t.rounded?" rounded-borders":"")),l=e.computed(()=>t.fontSize?{fontSize:t.fontSize}:null);return()=>{const i=void 0!==t.icon?[e.h(ot,{name:t.icon})]:void 0;return e.h("div",{class:a.value,style:n.value},[e.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:l.value},De(o.default,i))])}}});const at=["top","middle","bottom"];var lt=be({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>at.includes(e)}},setup(t,{slots:o}){const n=e.computed(()=>{return void 0!==t.align?{verticalAlign:t.align}:null}),a=e.computed(()=>{const e=!0===t.outline&&t.color||t.textColor;return"q-badge flex inline items-center no-wrap"+` q-badge--${!0===t.multiLine?"multi":"single"}-line`+(!0===t.outline?" q-badge--outline":void 0!==t.color?` bg-${t.color}`:"")+(void 0!==e?` text-${e}`:"")+(!0===t.floating?" q-badge--floating":"")+(!0===t.rounded?" q-badge--rounded":"")+(!0===t.transparent?" q-badge--transparent":"")});return()=>e.h("div",{class:a.value,style:n.value,role:"alert","aria-label":t.label},void 0!==t.label?t.label:Ie(o.default))}});const it={dark:{type:Boolean,default:null}};function rt(t,o){return e.computed(()=>null===t.dark?o.dark.isActive:t.dark)}var st=be({name:"QBanner",props:{...it,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=rt(t,n.proxy.$q),l=e.computed(()=>"q-banner row items-center"+(!0===t.dense?" q-banner--dense":"")+(!0===a.value?" q-banner--dark q-dark":"")+(!0===t.rounded?" rounded-borders":"")),i=e.computed(()=>"q-banner__actions row items-center justify-end"+` col-${!0===t.inlineActions?"auto":"all"}`);return()=>{const n=[e.h("div",{class:"q-banner__avatar col-auto row items-center self-start"},Ie(o.avatar)),e.h("div",{class:"q-banner__content col text-body2"},Ie(o.default))],a=Ie(o.action);return void 0!==a&&n.push(e.h("div",{class:i.value},a)),e.h("div",{class:l.value+(!1===t.inlineActions&&void 0!==a?" q-banner--top-padding":""),role:"alert"},n)}}}),ut=be({name:"QBar",props:{...it,dense:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=rt(t,n.proxy.$q),l=e.computed(()=>"q-bar row no-wrap items-center"+` q-bar--${!0===t.dense?"dense":"standard"} `+` q-bar--${!0===a.value?"dark":"light"}`);return()=>e.h("div",{class:l.value,role:"toolbar"},Ie(o.default))}});const ct={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},dt=Object.keys(ct),vt={align:{type:String,validator:e=>dt.includes(e)}};function pt(t){return e.computed(()=>{const e=void 0===t.align?!0===t.vertical?"stretch":"left":t.align;return`${!0===t.vertical?"items":"justify"}-${ct[e]}`})}function mt(e){if(Object(e.$parent)===e.$parent)return e.$parent;e=e.$.parent;while(Object(e)===e){if(Object(e.proxy)===e.proxy)return e.proxy;e=e.parent}}function ft(e){const t=new Set;return e.forEach(e=>{"symbol"===typeof e.type&&!0===Array.isArray(e.children)?e.children.forEach(e=>{t.add(e)}):t.add(e)}),Array.from(t)}function ht(e){return void 0!==e.appContext.config.globalProperties.$router}var gt=be({name:"QBreadcrumbs",props:{...vt,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(t,{slots:o}){const n=pt(t),a=e.computed(()=>`flex items-center ${n.value}${"none"===t.gutter?"":` q-gutter-${t.gutter}`}`),l=e.computed(()=>t.separatorColor?` text-${t.separatorColor}`:""),i=e.computed(()=>`text-${t.activeColor}`);return()=>{const n=ft(Ie(o.default));if(void 0===n)return;let r=1;const s=[],u=n.filter(e=>void 0!==e.type&&"QBreadcrumbsEl"===e.type.name).length,c=void 0!==o.separator?o.separator:()=>t.separator;return n.forEach(t=>{if(void 0!==t.type&&"QBreadcrumbsEl"===t.type.name){const o=r<u;r++,s.push(e.h("div",{class:"flex items-center "+(!0===o?i.value:"q-breadcrumbs--last")},[t])),!0===o&&s.push(e.h("div",{class:"q-breadcrumbs__separator"+l.value},c()))}else s.push(t)}),e.h("div",{class:"q-breadcrumbs"},[e.h("div",{class:a.value},s)])}}});function bt(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function yt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wt(e,t){for(const o in t){const n=t[o],a=e[o];if("string"===typeof n){if(n!==a)return!1}else if(!1===Array.isArray(a)||a.length!==n.length||n.some((e,t)=>e!==a[t]))return!1}return!0}function xt(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}function _t(e,t){return!0===Array.isArray(e)?xt(e,t):!0===Array.isArray(t)?xt(t,e):e===t}function St(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!1===_t(e[o],t[o]))return!1;return!0}const Ct={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},disable:Boolean};function qt(){const t=e.getCurrentInstance(),{props:o,attrs:n,proxy:a}=t,l=ht(t),i=e.computed(()=>!0===l&&!0!==o.disable&&void 0!==o.to&&null!==o.to&&""!==o.to),r=e.computed(()=>{if(!0===i.value)try{return a.$router.resolve(o.to)}catch(e){}return null}),s=e.computed(()=>null!==r.value),u=e.computed(()=>!0===s.value?"a":o.tag||"div"),c=e.computed(()=>{if(!1===s.value)return null;const{matched:e}=r.value,{length:t}=e,o=e[t-1];if(void 0===o)return-1;const n=a.$route.matched;if(0===n.length)return-1;const l=n.findIndex(yt.bind(null,o));if(l>-1)return l;const i=bt(e[t-2]);return t>1&&bt(o)===i&&n[n.length-1].path!==i?n.findIndex(yt.bind(null,e[t-2])):l}),d=e.computed(()=>!0===s.value&&c.value>-1&&wt(a.$route.params,r.value.params)),v=e.computed(()=>!0===d.value&&c.value===a.$route.matched.length-1&&St(a.$route.params,r.value.params)),p=e.computed(()=>!0===s.value?!0===v.value?` ${o.exactActiveClass} ${o.activeClass}`:!0===o.exact?"":!0===d.value?` ${o.activeClass}`:"":""),m=e.computed(()=>!0===s.value?{href:r.value.href,target:n.target,role:"link"}:{});function f(e){return!(!0===o.disable||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||!0!==e.__qNavigate&&!0===e.defaultPrevented||void 0!==e.button&&0!==e.button||"_blank"===n.target)&&(C(e),a.$router[!0===o.replace?"replace":"push"](o.to).catch(()=>{}))}return{hasLink:s,linkTag:u,linkRoute:r,linkIsActive:d,linkIsExactActive:v,linkClass:p,linkProps:m,navigateToLink:f}}var kt=be({name:"QBreadcrumbsEl",props:{...Ct,label:String,icon:String,tag:{type:String,default:"span"}},setup(t,{slots:o}){const{linkTag:n,linkProps:a,hasLink:l,navigateToLink:i}=qt(),r=e.computed(()=>{const e={...a.value};return!0===l.value&&(e.onClick=i),e}),s=e.computed(()=>"q-breadcrumbs__el-icon"+(void 0!==t.label?" q-breadcrumbs__el-icon--with-label":""));return()=>{const a=[];return void 0!==t.icon&&a.push(e.h(ot,{class:s.value,name:t.icon})),void 0!==t.label&&a.push(t.label),e.h(n.value,{class:"q-breadcrumbs__el q-link flex inline items-center relative-position",...r.value},Ne(o.default,a))}}});const $t={size:{type:[Number,String],default:"1em"},color:String};function Mt(t){return{cSize:e.computed(()=>t.size in Ae?`${Ae[t.size]}px`:t.size),classes:e.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}var Tt=be({name:"QSpinner",props:{...$t,thickness:{type:Number,default:5}},setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[e.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}});function Bt(e){if(e===window)return{top:0,left:0};const{top:t,left:o}=e.getBoundingClientRect();return{top:t,left:o}}function Ot(e,t){return window.getComputedStyle(e).getPropertyValue(t)}function Vt(e){return e===window?window.innerHeight:e.getBoundingClientRect().height}function zt(e){return e===window?window.innerWidth:e.getBoundingClientRect().width}function Lt(e,t){const o=e.style;Object.keys(t).forEach(e=>{o[e]=t[e]})}function Et(e,t){e.forEach(e=>Lt(e,t))}function Pt(e){if("function"===typeof e)return"loading"!==document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)}function At(t){if(void 0===t||null===t)return;if("string"===typeof t)try{return document.querySelector(t)||void 0}catch(e){return}const o=!0===e.isRef(t)?t.value:t;return o?o.$el||o:void 0}function Ft(e,t){if(void 0===e||null===e||!0===e.contains(t))return!0;for(let o=e.nextElementSibling;null!==o;o=o.nextElementSibling)if(o.contains(t))return!0;return!1}var Rt={offset:Bt,style:Ot,height:Vt,width:zt,css:Lt,cssBatch:Et,ready:Pt};function It(e,t=250){let o,n=!1;return function(){return!1===n&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function jt(e,t,o,n){!0===o.modifiers.stop&&S(e);const a=o.modifiers.color;let l=o.modifiers.center;l=!0===l||!0===n;const i=document.createElement("span"),r=document.createElement("span"),s=b(e),{left:u,top:c,width:d,height:v}=t.getBoundingClientRect(),p=Math.sqrt(d*d+v*v),m=p/2,f=`${(d-p)/2}px`,h=l?f:`${s.left-u-m}px`,g=`${(v-p)/2}px`,y=l?g:`${s.top-c-m}px`;r.className="q-ripple__inner",Lt(r,{height:`${p}px`,width:`${p}px`,transform:`translate3d(${h},${y},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${a?" text-"+a:""}`,i.setAttribute("dir","ltr"),i.appendChild(r),t.appendChild(i);const w=()=>{i.remove(),clearTimeout(x)};o.abort.push(w);let x=setTimeout(()=>{r.classList.add("q-ripple__inner--enter"),r.style.transform=`translate3d(${f},${g},0) scale3d(1,1,1)`,r.style.opacity=.2,x=setTimeout(()=>{r.classList.remove("q-ripple__inner--enter"),r.classList.add("q-ripple__inner--leave"),r.style.opacity=0,x=setTimeout(()=>{i.remove(),o.abort.splice(o.abort.indexOf(w),1)},275)},250)},50)}function Nt(e,{modifiers:t,value:o,arg:n,instance:a}){const l=Object.assign({},a.$q.config.ripple,t,o);e.modifiers={early:!0===l.early,stop:!0===l.stop,center:!0===l.center,color:l.color||n,keyCodes:[].concat(l.keyCodes||13)}}var Dt=ye({name:"ripple",beforeMount(e,t){const o={enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===o.enabled&&!0!==t.qSkipRipple&&(!0===o.modifiers.early?!0===["mousedown","touchstart"].includes(t.type):"click"===t.type)&&jt(t,e,o,!0===t.qKeyEvent)},keystart:It(t=>{!0===o.enabled&&!0!==t.qSkipRipple&&!0===W(t,o.modifiers.keyCodes)&&t.type===`key${!0===o.modifiers.early?"down":"up"}`&&jt(t,e,o,!0)},300)};Nt(o,t),e.__qripple=o,$(o,"main",[[e,"mousedown","start","passive"],[e,"touchstart","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const o=e.__qripple;o.enabled=!1!==t.value,!0===o.enabled&&Object(t.value)===t.value&&Nt(o,t)}},beforeUnmount(e){const t=e.__qripple;t.abort.forEach(e=>{e()}),M(t,"main"),delete e._qripple}});const Ht={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Qt={xs:8,sm:10,md:14,lg:20,xl:24},Ut={...Fe,...Ct,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,round:Boolean,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...vt.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function Wt(t){const o=Re(t,Qt),n=pt(t),{hasLink:a,linkProps:l,navigateToLink:i}=qt(),r=e.computed(()=>{const e=!1===t.fab&&!1===t.fabMini?o.value:{};return void 0!==t.padding?Object.assign({},e,{padding:t.padding.split(/\s+/).map(e=>e in Ht?Ht[e]+"px":e).join(" "),minWidth:"0",minHeight:"0"}):e}),s=e.computed(()=>!0===t.rounded||!0===t.fab||!0===t.fabMini),u=e.computed(()=>!0!==t.disable&&!0!==t.loading),c=e.computed(()=>!0===u.value?t.tabindex||0:-1),d=e.computed(()=>"a"===t.type||!0===a.value),v=e.computed(()=>{return!0===t.flat?"flat":!0===t.outline?"outline":!0===t.push?"push":!0===t.unelevated?"unelevated":"standard"}),p=e.computed(()=>{const e={tabindex:c.value};return"a"===t.type||"button"===t.type&&!0===a.value||(e.type=t.type),!0===a.value?(Object.assign(e,l.value),e.role="link"):e.role="a"===t.type?"link":"button",!0===t.loading&&void 0!==t.percentage&&Object.assign(e,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),!0===t.disable&&(e.disabled="",e["aria-disabled"]="true"),e}),m=e.computed(()=>{let e;return void 0!==t.color?e=!0===t.flat||!0===t.outline?`text-${t.textColor||t.color}`:`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(e=`text-${t.textColor}`),`q-btn--${v.value} `+`q-btn--${!0===t.round?"round":`rectangle${!0===s.value?" q-btn--rounded":""}`}`+(void 0!==e?" "+e:"")+(!0===u.value?" q-btn--actionable q-focusable q-hoverable":!0===t.disable?" disabled":"")+(!0===t.fab?" q-btn--fab":!0===t.fabMini?" q-btn--fab-mini":"")+(!0===t.noCaps?" q-btn--no-uppercase":"")+(!0===t.dense?" q-btn--dense":"")+(!0===t.stretch?" no-border-radius self-stretch":"")+(!0===t.glossy?" glossy":"")}),f=e.computed(()=>n.value+(!0===t.stack?" column":" row")+(!0===t.noWrap?" no-wrap text-no-wrap":"")+(!0===t.loading?" q-btn__content--hidden":""));return{classes:m,style:r,innerClasses:f,attributes:p,hasLink:a,isLink:d,navigateToLink:i,isActionable:u}}const{passiveCapture:Yt}=p;let Kt=null,Xt=null,Zt=null;var Gt=be({name:"QBtn",props:{...Ut,percentage:Number,darkPercentage:Boolean},emits:["click","keydown","touchstart","mousedown","keyup"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{classes:l,style:i,innerClasses:r,attributes:s,hasLink:u,isLink:c,navigateToLink:d,isActionable:v}=Wt(t),p=e.ref(null),m=e.ref(null);let f,h,g=null;const b=e.computed(()=>void 0!==t.label&&null!==t.label&&""!==t.label),y=e.computed(()=>!0!==t.disable&&!1!==t.ripple&&{keyCodes:!0===c.value?[13,32]:[13],...!0===t.ripple?{}:t.ripple}),w=e.computed(()=>({center:t.round})),x=e.computed(()=>{const e=Math.max(0,Math.min(100,t.percentage));return e>0?{transition:"transform 0.6s",transform:`translateX(${e-100}%)`}:{}}),_=e.computed(()=>{return!0===t.loading?{onMousedown:z,onTouchstartPassive:z,onClick:z,onKeydown:z,onKeyup:z}:!0===v.value?{onClick:$,onKeydown:M,onMousedown:B,onTouchstartPassive:T}:{onClick:q}}),k=e.computed(()=>({ref:p,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:i.value,...s.value,..._.value}));function $(e){if(null!==p.value){if(void 0!==e){if(!0===e.defaultPrevented)return;const o=document.activeElement;if("submit"===t.type&&o!==document.body&&!1===p.value.contains(o)&&!1===o.contains(p.value)){p.value.focus();const e=()=>{document.removeEventListener("keydown",q,!0),document.removeEventListener("keyup",e,Yt),null!==p.value&&p.value.removeEventListener("blur",e,Yt)};document.addEventListener("keydown",q,!0),document.addEventListener("keyup",e,Yt),p.value.addEventListener("blur",e,Yt)}}if(!0===u.value){const t=()=>{e.__qNavigate=!0,d(e)};n("click",e,t),!0!==e.defaultPrevented&&t()}else n("click",e)}}function M(e){null!==p.value&&(!0===W(e,[13,32])&&(q(e),Xt!==p.value&&(null!==Xt&&V(),p.value.focus(),Xt=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("keyup",O,!0),p.value.addEventListener("blur",O,Yt))),n("keydown",e))}function T(e){null!==p.value&&(Kt!==p.value&&(null!==Kt&&V(),Kt=p.value,g=e.target,g.addEventListener("touchcancel",O,Yt),g.addEventListener("touchend",O,Yt)),f=!0,clearTimeout(h),h=setTimeout(()=>{f=!1},200),n("touchstart",e))}function B(e){null!==p.value&&(Zt!==p.value&&(null!==Zt&&V(),Zt=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("mouseup",O,Yt)),e.qSkipRipple=!0===f,n("mousedown",e))}function O(e){if(null!==p.value&&(void 0===e||"blur"!==e.type||document.activeElement!==p.value)){if(void 0!==e&&"keyup"===e.type){if(Xt===p.value&&!0===W(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&C(t),!0===e.cancelBubble&&S(t),p.value.dispatchEvent(t),q(e),e.qKeyEvent=!0}n("keyup",e)}V()}}function V(e){const t=m.value;!0===e||Kt!==p.value&&Zt!==p.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),Kt===p.value&&(null!==g&&(g.removeEventListener("touchcancel",O,Yt),g.removeEventListener("touchend",O,Yt)),Kt=g=null),Zt===p.value&&(document.removeEventListener("mouseup",O,Yt),Zt=null),Xt===p.value&&(document.removeEventListener("keyup",O,!0),null!==p.value&&p.value.removeEventListener("blur",O,Yt),Xt=null),null!==p.value&&p.value.classList.remove("q-btn--active")}function z(e){e.qSkipRipple=!0}return e.onBeforeUnmount(()=>{V(!0)}),Object.assign(a,{click:$}),()=>{let n=[];void 0!==t.icon&&n.push(e.h(ot,{name:t.icon,left:!1===t.stack&&!0===b.value,role:"img","aria-hidden":"true"})),!0===b.value&&n.push(e.h("span",{class:"block"},[t.label])),n=Ne(o.default,n),void 0!==t.iconRight&&!1===t.round&&n.push(e.h(ot,{name:t.iconRight,right:!1===t.stack&&!0===b.value,role:"img","aria-hidden":"true"}));const a=[e.h("span",{class:"q-focus-helper",ref:m})];return!0===t.loading&&void 0!==t.percentage&&a.push(e.h("span",{class:"q-btn__progress absolute-full overflow-hidden"},[e.h("span",{class:"q-btn__progress-indicator fit block"+(!0===t.darkPercentage?" q-btn__progress--dark":""),style:x.value})])),a.push(e.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},n)),null!==t.loading&&a.push(e.h(e.Transition,{name:"q-transition--fade"},()=>!0===t.loading?[e.h("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==o.loading?o.loading():[e.h(Tt)])]:null)),e.withDirectives(e.h(!0===c.value?"a":"button",k.value,a),[[Dt,y.value,void 0,w.value]])}}}),Jt=be({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(t,{slots:o}){const n=e.computed(()=>{const e=["unelevated","outline","flat","rounded","push","stretch","glossy"].filter(e=>!0===t[e]).map(e=>`q-btn-group--${e}`).join(" ");return`q-btn-group row no-wrap${e.length>0?" "+e:""}`+(!0===t.spread?" q-btn-group--spread":" inline")});return()=>e.h("div",{class:n.value},Ie(o.default))}});function eo(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==d.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}const to={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function oo({showing:t,avoidEmit:o,configureAnchorEl:n}){const{props:a,proxy:l,emit:i}=e.getCurrentInstance(),r=e.ref(null);let s;function u(e){return null!==r.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const c={};function d(){M(c,"anchor")}function v(e){r.value=e;while(r.value.classList.contains("q-anchor--skip"))r.value=r.value.parentNode;n()}function p(){if(!1===a.target||""===a.target)r.value=null;else if(!0===a.target)v(l.$el.parentNode);else{let e=a.target;if("string"===typeof a.target)try{e=document.querySelector(a.target)}catch(t){e=void 0}void 0!==e&&null!==e?(r.value=e.$el||e,n()):(r.value=null,console.error(`Anchor: target "${a.target}" not found`))}}return void 0===n&&(Object.assign(c,{hide(e){l.hide(e)},toggle(e){l.toggle(e),e.qAnchorHandled=!0},toggleKey(e){!0===W(e,13)&&c.toggle(e)},contextClick(t){l.hide(t),C(t),e.nextTick(()=>{l.show(t),t.qAnchorHandled=!0})},prevent:C,mobileTouch(e){if(c.mobileCleanup(e),!0!==u(e))return;l.hide(e),r.value.classList.add("non-selectable");const t=e.target;$(c,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[r.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{l.show(e),e.qAnchorHandled=!0},300)},mobileCleanup(e){r.value.classList.remove("non-selectable"),clearTimeout(s),!0===t.value&&void 0!==e&&eo()}}),n=function(e=a.contextMenu){if(!0===a.noParentEvent||null===r.value)return;let t;t=!0===e?!0===l.$q.platform.is.mobile?[[r.value,"touchstart","mobileTouch","passive"]]:[[r.value,"mousedown","hide","passive"],[r.value,"contextmenu","contextClick","notPassive"]]:[[r.value,"click","toggle","passive"],[r.value,"keyup","toggleKey","passive"]],$(c,"anchor",t)}),e.watch(()=>a.contextMenu,e=>{null!==r.value&&(d(),n(e))}),e.watch(()=>a.target,()=>{null!==r.value&&d(),p()}),e.watch(()=>a.noParentEvent,e=>{null!==r.value&&(!0===e?d():n())}),e.onMounted(()=>{p(),!0!==o&&!0===a.modelValue&&null===r.value&&i("update:modelValue",!1)}),e.onBeforeUnmount(()=>{clearTimeout(s),d()}),{anchorEl:r,canShow:u,anchorEvents:c}}function no(t,o){const n=e.ref(null);let a;function l(e,t){const o=`${void 0!==t?"add":"remove"}EventListener`,n=void 0!==t?t:a;e!==window&&e[o]("scroll",n,p.passive),window[o]("scroll",n,p.passive),a=t}function i(){null!==n.value&&(l(n.value),n.value=null)}const r=e.watch(()=>t.noParentEvent,()=>{null!==n.value&&(i(),o())});return e.onBeforeUnmount(r),{localScrollTarget:n,unconfigureScrollTarget:i,changeScrollEvent:l}}const ao={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},lo=["before-show","show","before-hide","hide"];function io({showing:t,canShow:o,hideOnRouteChange:n,handleShow:a,handleHide:l,processOnMount:i}){const r=e.getCurrentInstance(),{props:s,emit:u,proxy:c}=r;let d;function v(e){!0===t.value?f(e):p(e)}function p(t){if(!0===s.disable||void 0!==t&&!0===t.qAnchorHandled||void 0!==o&&!0!==o(t))return;const n=void 0!==s["onUpdate:modelValue"];!0===n&&(u("update:modelValue",!0),d=t,e.nextTick(()=>{d===t&&(d=void 0)})),null!==s.modelValue&&!1!==n||m(t)}function m(e){!0!==t.value&&(t.value=!0,u("before-show",e),void 0!==a?a(e):u("show",e))}function f(t){if(!0===s.disable)return;const o=void 0!==s["onUpdate:modelValue"];!0===o&&(u("update:modelValue",!1),d=t,e.nextTick(()=>{d===t&&(d=void 0)})),null!==s.modelValue&&!1!==o||h(t)}function h(e){!1!==t.value&&(t.value=!1,u("before-hide",e),void 0!==l?l(e):u("hide",e))}function g(e){if(!0===s.disable&&!0===e)void 0!==s["onUpdate:modelValue"]&&u("update:modelValue",!1);else if(!0===e!==t.value){const t=!0===e?m:h;t(d)}}e.watch(()=>s.modelValue,g),void 0!==n&&!0===ht(r)&&e.watch(()=>c.$route,()=>{!0===n.value&&!0===t.value&&f()}),!0===i&&e.onMounted(()=>{g(s.modelValue)});const b={show:p,hide:f,toggle:v};return Object.assign(c,b),b}let ro=[];const so=[];function uo(e){so.push(e)}function co(e){const t=so.indexOf(e);-1!==t&&so.splice(t,1),0===so.length&&ro.length>0&&(ro[ro.length-1](),ro=[])}function vo(e){if(0!==so.length)return ro.push(e),e;e()}function po(e){const t=ro.indexOf(e);-1!==t&&ro.splice(t,1)}const mo=[];let fo=document.body;function ho(e){const t=document.createElement("div");if(void 0!==e&&(t.id=e),void 0!==ce.globalNodes){const e=ce.globalNodes.class;void 0!==e&&(t.className=e)}return fo.appendChild(t),mo.push(t),t}function go(e){mo.splice(mo.indexOf(e),1),e.remove()}function bo(e){e!==fo&&(fo=e,mo.forEach(e=>{!1===e.contains(fo)&&fo.appendChild(e)}))}const yo=[];function wo(e){return yo.find(t=>null!==t.__qPortalInnerRef.value&&t.__qPortalInnerRef.value.contains(e))}function xo(e,t){do{if("QMenu"===e.$options.name){if(e.hide(t),!0===e.$props.separateClosePopup)return mt(e)}else if(void 0!==e.__qPortalInnerRef){const o=mt(e);return void 0!==o&&"QPopupProxy"===o.$options.name?(e.hide(t),o):e}e=mt(e)}while(void 0!==e&&null!==e)}function _o(e,t,o){while(0!==o&&void 0!==e&&null!==e){if(void 0!==e.__qPortalInnerRef){if(o--,"QMenu"===e.$options.name){e=xo(e,t);continue}e.hide(t)}e=mt(e)}}function So(e){e=e.parent;while(void 0!==e&&null!==e){if("QGlobalDialog"===e.type.name)return!0;if("QDialog"===e.type.name||"QMenu"===e.type.name)return!1;e=e.parent}return!1}function Co(t,o,n,a){const l=e.ref(!1);let i=null;const r={},s=!0===a&&So(t);function u(e){!0!==e?(!1===s&&null===i&&(i=ho()),l.value=!0,yo.push(t.proxy),uo(r)):co(r)}function c(){co(r),l.value=!1;const e=yo.indexOf(t.proxy);e>-1&&yo.splice(e,1),null!==i&&(go(i),i=null)}return e.onUnmounted(c),Object.assign(t.proxy,{__qPortalInnerRef:o}),{showPortal:u,hidePortal:c,portalIsActive:l,renderPortal:()=>!0===s?n():!0===l.value?[e.h(e.Teleport,{to:i},n())]:void 0}}const qo={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function ko(t,o){const n=e.ref(o.value);return e.watch(o,t=>{e.nextTick(()=>{n.value=t})}),{transition:e.computed(()=>"q-transition--"+(!0===n.value?t.transitionHide:t.transitionShow)),transitionStyle:e.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function $o(){let t;return e.onBeforeUnmount(()=>{t=void 0}),{registerTick(e){t=e},removeTick(){t=void 0},prepareTick(){if(void 0!==t){const o=t;e.nextTick(()=>{t===o&&(t(),t=void 0)})}}}}function Mo(){let t;return e.onBeforeUnmount(()=>{clearTimeout(t)}),{registerTimeout(e,o){clearTimeout(t),t=setTimeout(e,o)},removeTimeout(){clearTimeout(t)}}}const To=[null,document,document.body,document.scrollingElement,document.documentElement];function Bo(e,t){let o=At(t);if(void 0===o){if(void 0===e||null===e)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return To.includes(o)?window:o}function Oo(e){return(e===window?document.body:e).scrollHeight}function Vo(e){return(e===window?document.body:e).scrollWidth}function zo(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Lo(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Eo(e,t,o=0){const n=void 0===arguments[3]?performance.now():arguments[3],a=zo(e);o<=0?a!==t&&Ao(e,t):requestAnimationFrame(l=>{const i=l-n,r=a+(t-a)/Math.max(i,o)*i;Ao(e,r),r!==t&&Eo(e,t,o-i,l)})}function Po(e,t,o=0){const n=void 0===arguments[3]?performance.now():arguments[3],a=Lo(e);o<=0?a!==t&&Fo(e,t):requestAnimationFrame(l=>{const i=l-n,r=a+(t-a)/Math.max(i,o)*i;Fo(e,r),r!==t&&Po(e,t,o-i,l)})}function Ao(e,t){e!==window?e.scrollTop=t:window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t)}function Fo(e,t){e!==window?e.scrollLeft=t:window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)}function Ro(e,t,o){o?Eo(e,t,o):Ao(e,t)}function Io(e,t,o){o?Po(e,t,o):Fo(e,t)}let jo;function No(){if(void 0!==jo)return jo;const e=document.createElement("p"),t=document.createElement("div");Lt(e,{width:"100%",height:"200px"}),Lt(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let n=e.offsetWidth;return o===n&&(n=t.clientWidth),t.remove(),jo=o-n,jo}function Do(e,t=!0){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(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"])))}var Ho={getScrollTarget:Bo,getScrollHeight:Oo,getScrollWidth:Vo,getVerticalScrollPosition:zo,getHorizontalScrollPosition:Lo,animVerticalScrollTo:Eo,animHorizontalScrollTo:Po,setVerticalScrollPosition:Ro,setHorizontalScrollPosition:Io,getScrollbarWidth:No,hasScrollbar:Do};const Qo=[];let Uo;function Wo(e){Uo=27===e.keyCode}function Yo(){!0===Uo&&(Uo=!1)}function Ko(e){!0===Uo&&(Uo=!1,!0===W(e,27)&&Qo[Qo.length-1](e))}function Xo(e){window[e]("keydown",Wo),window[e]("blur",Yo),window[e]("keyup",Ko),Uo=!1}function Zo(e){!0===c.is.desktop&&(Qo.push(e),1===Qo.length&&Xo("addEventListener"))}function Go(e){const t=Qo.indexOf(e);t>-1&&(Qo.splice(t,1),0===Qo.length&&Xo("removeEventListener"))}const Jo=[];function en(e){Jo[Jo.length-1](e)}function tn(e){!0===c.is.desktop&&(Jo.push(e),1===Jo.length&&document.body.addEventListener("focusin",en))}function on(e){const t=Jo.indexOf(e);t>-1&&(Jo.splice(t,1),0===Jo.length&&document.body.removeEventListener("focusin",en))}let nn;const{notPassiveCapture:an}=p,ln=[];function rn(e){clearTimeout(nn);const t=e.target;if(void 0===t||8===t.nodeType||!0===t.classList.contains("no-pointer-events"))return;let o=yo.length-1;while(o>=0){const e=yo[o].$;if("QDialog"!==e.type.name)break;if(!0!==e.props.seamless)return;o--}for(let n=ln.length-1;n>=0;n--){const o=ln[n];if(null!==o.anchorEl.value&&!1!==o.anchorEl.value.contains(t)||t!==document.body&&(null===o.innerRef.value||!1!==o.innerRef.value.contains(t)))return;e.qClickOutside=!0,o.onClickOutside(e)}}function sn(e){ln.push(e),1===ln.length&&(document.addEventListener("mousedown",rn,an),document.addEventListener("touchstart",rn,an))}function un(e){const t=ln.findIndex(t=>t===e);t>-1&&(ln.splice(t,1),0===ln.length&&(clearTimeout(nn),document.removeEventListener("mousedown",rn,an),document.removeEventListener("touchstart",rn,an)))}let cn,dn;function vn(e){const t=e.split(" ");return 2===t.length&&(!0!==["top","center","bottom"].includes(t[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(t[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function pn(e){return!e||2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1])}const mn={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function fn(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:mn[`${o[1]}#${!0===t?"rtl":"ltr"}`]}}function hn(e,t){let{top:o,left:n,right:a,bottom:l,width:i,height:r}=e.getBoundingClientRect();return void 0!==t&&(o-=t[1],n-=t[0],l+=t[1],a+=t[0],i+=t[0],r+=t[1]),{top:o,left:n,right:a,bottom:l,width:i,height:r,middle:n+(a-n)/2,center:o+(l-o)/2}}function gn(e){return{top:0,center:e.offsetHeight/2,bottom:e.offsetHeight,left:0,middle:e.offsetWidth/2,right:e.offsetWidth}}function bn(e){if(!0===c.is.ios&&void 0!==window.visualViewport){const e=document.body.style,{offsetLeft:t,offsetTop:o}=window.visualViewport;t!==cn&&(e.setProperty("--q-pe-left",t+"px"),cn=t),o!==dn&&(e.setProperty("--q-pe-top",o+"px"),dn=o)}let t;const{scrollLeft:o,scrollTop:n}=e.el;if(void 0===e.absoluteOffset)t=hn(e.anchorEl,!0===e.cover?[0,0]:e.offset);else{const{top:o,left:n}=e.anchorEl.getBoundingClientRect(),a=o+e.absoluteOffset.top,l=n+e.absoluteOffset.left;t={top:a,left:l,width:1,height:1,right:l+1,center:a,middle:l,bottom:a+1}}let a={maxHeight:e.maxHeight,maxWidth:e.maxWidth,visibility:"visible"};!0!==e.fit&&!0!==e.cover||(a.minWidth=t.width+"px",!0===e.cover&&(a.minHeight=t.height+"px")),Object.assign(e.el.style,a);const l=gn(e.el),i={top:t[e.anchorOrigin.vertical]-l[e.selfOrigin.vertical],left:t[e.anchorOrigin.horizontal]-l[e.selfOrigin.horizontal]};yn(i,t,l,e.anchorOrigin,e.selfOrigin),a={top:i.top+"px",left:i.left+"px"},void 0!==i.maxHeight&&(a.maxHeight=i.maxHeight+"px",t.height>i.maxHeight&&(a.minHeight=a.maxHeight)),void 0!==i.maxWidth&&(a.maxWidth=i.maxWidth+"px",t.width>i.maxWidth&&(a.minWidth=a.maxWidth)),Object.assign(e.el.style,a),e.el.scrollTop!==n&&(e.el.scrollTop=n),e.el.scrollLeft!==o&&(e.el.scrollLeft=o)}function yn(e,t,o,n,a){const l=o.bottom,i=o.right,r=No(),s=window.innerHeight-r,u=document.body.clientWidth;if(e.top<0||e.top+l>s)if("center"===a.vertical)e.top=t[n.vertical]>s/2?Math.max(0,s-l):0,e.maxHeight=Math.min(l,s);else if(t[n.vertical]>s/2){const o=Math.min(s,"center"===n.vertical?t.center:n.vertical===a.vertical?t.bottom:t.top);e.maxHeight=Math.min(l,o),e.top=Math.max(0,o-l)}else e.top=Math.max(0,"center"===n.vertical?t.center:n.vertical===a.vertical?t.top:t.bottom),e.maxHeight=Math.min(l,s-e.top);if(e.left<0||e.left+i>u)if(e.maxWidth=Math.min(i,u),"middle"===a.horizontal)e.left=t[n.horizontal]>u/2?Math.max(0,u-i):0;else if(t[n.horizontal]>u/2){const o=Math.min(u,"middle"===n.horizontal?t.middle:n.horizontal===a.horizontal?t.right:t.left);e.maxWidth=Math.min(i,o),e.left=Math.max(0,o-e.maxWidth)}else e.left=Math.max(0,"middle"===n.horizontal?t.middle:n.horizontal===a.horizontal?t.left:t.right),e.maxWidth=Math.min(i,u-e.left)}["left","middle","right"].forEach(e=>{mn[`${e}#ltr`]=e,mn[`${e}#rtl`]=e});var wn=be({name:"QMenu",inheritAttrs:!1,props:{...to,...ao,...it,...qo,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:vn},self:{type:String,validator:vn},offset:{type:Array,validator:pn},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...lo,"click","escape-key"],setup(t,{slots:o,emit:n,attrs:a}){let l,i,r,s=null;const u=e.getCurrentInstance(),{proxy:c}=u,{$q:d}=c,v=e.ref(null),p=e.ref(!1),m=e.computed(()=>!0!==t.persistent&&!0!==t.noRouteDismiss),f=rt(t,d),{registerTick:h,removeTick:g,prepareTick:y}=$o(),{registerTimeout:w,removeTimeout:x}=Mo(),{transition:_,transitionStyle:S}=ko(t,p),{localScrollTarget:C,changeScrollEvent:k,unconfigureScrollTarget:$}=no(t,H),{anchorEl:M,canShow:T}=oo({showing:p}),{hide:B}=io({showing:p,canShow:T,handleShow:j,handleHide:N,hideOnRouteChange:m,processOnMount:!0}),{showPortal:O,hidePortal:V,renderPortal:z}=Co(u,v,K),L={anchorEl:M,innerRef:v,onClickOutside(e){if(!0!==t.persistent&&!0===p.value)return B(e),("touchstart"===e.type||e.target.classList.contains("q-dialog__backdrop"))&&q(e),!0}},E=e.computed(()=>fn(t.anchor||(!0===t.cover?"center middle":"bottom start"),d.lang.rtl)),P=e.computed(()=>!0===t.cover?E.value:fn(t.self||"top start",d.lang.rtl)),A=e.computed(()=>(!0===t.square?" q-menu--square":"")+(!0===f.value?" q-menu--dark q-dark":"")),F=e.computed(()=>!0===t.autoClose?{onClick:Q}:{}),R=e.computed(()=>!0===p.value&&!0!==t.persistent);function I(){vo(()=>{let e=v.value;e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus], [data-autofocus]")||e,e.focus())})}function j(o){if(g(),x(),s=!1===t.noRefocus?document.activeElement:null,tn(U),O(),H(),l=void 0,void 0!==o&&(t.touchPosition||t.contextMenu)){const e=b(o);if(void 0!==e.left){const{top:t,left:o}=M.value.getBoundingClientRect();l={left:e.left-o,top:e.top-t}}}void 0===i&&(i=e.watch(()=>d.screen.width+"|"+d.screen.height+"|"+t.self+"|"+t.anchor+"|"+d.lang.rtl,Y)),!0!==t.noFocus&&document.activeElement.blur(),h(()=>{Y(),!0!==t.noFocus&&I()}),y(),w(()=>{!0===d.platform.is.ios&&(r=t.autoClose,v.value.click()),Y(),O(!0),n("show",o)},t.transitionDuration)}function N(e){g(),x(),D(!0),null===s||void 0!==e&&!0===e.qClickOutside||s.focus(),w(()=>{V(),n("hide",e)},t.transitionDuration)}function D(e){l=void 0,void 0!==i&&(i(),i=void 0),!0!==e&&!0!==p.value||(on(U),$(),un(L),Go(W))}function H(){null===M.value&&void 0===t.scrollTarget||(C.value=Bo(M.value,t.scrollTarget),k(C.value,Y))}function Q(e){!0!==r?(xo(c,e),n("click",e)):r=!1}function U(e){!0===R.value&&!0!==Ft(v.value,e.target)&&I()}function W(e){n("escape-key"),B(e)}function Y(){const e=v.value;null!==e&&null!==M.value&&bn({el:e,offset:t.offset,anchorEl:M.value,anchorOrigin:E.value,selfOrigin:P.value,absoluteOffset:l,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function K(){return e.h(e.Transition,{name:_.value,appear:!0},()=>!0===p.value?e.h("div",{...a,ref:v,tabindex:-1,class:["q-menu q-position-engine scroll"+A.value,a.class],style:[a.style,S.value],...F.value},Ie(o.default)):null)}return e.watch(R,e=>{!0===e?(Zo(W),sn(L)):(Go(W),un(L))}),e.onBeforeUnmount(D),Object.assign(c,{focus:I,updatePosition:Y}),z}}),xn=be({name:"QBtnDropdown",props:{...Ut,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean},emits:["update:modelValue","click","before-show","show","before-hide","hide"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),l=e.ref(t.modelValue),i=e.ref(null),r=e.computed(()=>{const e={"aria-expanded":!0===l.value?"true":"false","aria-haspopup":"true"};return(!0===t.disable||!1===t.split&&!0===t.disableMainBtn||!0===t.disableDropdown)&&(e["aria-disabled"]="true"),e}),s=e.computed(()=>"q-btn-dropdown__arrow"+(!0===l.value&&!1===t.noIconAnimation?" rotate-180":"")+(!1===t.split?" q-btn-dropdown__arrow-container":""));function u(e){l.value=!0,n("before-show",e)}function c(e){n("show",e),n("update:modelValue",!0)}function d(e){l.value=!1,n("before-hide",e)}function v(e){n("hide",e),n("update:modelValue",!1)}function p(e){n("click",e)}function m(e){S(e),g(),n("click",e)}function f(e){null!==i.value&&i.value.toggle(e)}function h(e){null!==i.value&&i.value.show(e)}function g(e){null!==i.value&&i.value.hide(e)}return e.watch(()=>t.modelValue,e=>{null!==i.value&&i.value[e?"show":"hide"]()}),e.watch(()=>t.split,g),Object.assign(a,{show:h,hide:g,toggle:f}),e.onMounted(()=>{!0===t.modelValue&&h()}),()=>{const n=[e.h(ot,{class:s.value,name:t.dropdownIcon||a.$q.iconSet.arrow.dropdown})];return!0!==t.disableDropdown&&n.push(e.h(wn,{ref:i,class:t.contentClass,style:t.contentStyle,cover:t.cover,fit:!0,persistent:t.persistent,noRouteDismiss:t.noRouteDismiss,autoClose:t.autoClose,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,separateClosePopup:!0,onBeforeShow:u,onShow:c,onBeforeHide:d,onHide:v},o.default)),!1===t.split?e.h(Gt,{class:"q-btn-dropdown q-btn-dropdown--simple",...t,disable:!0===t.disable||!0===t.disableMainBtn,noWrap:!0,round:!1,...r.value,onClick:p},()=>Ie(o.label,[]).concat(n)):e.h(Jt,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",outline:t.outline,flat:t.flat,rounded:t.rounded,push:t.push,unelevated:t.unelevated,glossy:t.glossy,stretch:t.stretch},()=>[e.h(Gt,{class:"q-btn-dropdown--current",...t,disable:!0===t.disable||!0===t.disableMainBtn,noWrap:!0,iconRight:t.iconRight,round:!1,onClick:m},o.label),e.h(Gt,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...r.value,disable:!0===t.disable||!0===t.disableDropdown,outline:t.outline,flat:t.flat,rounded:t.rounded,push:t.push,size:t.size,color:t.color,textColor:t.textColor,dense:t.dense,ripple:t.ripple},()=>n)])}}});const _n={name:String};function Sn(t){return e.computed(()=>({type:"hidden",name:t.name,value:t.modelValue}))}function Cn(t={},o={}){return(n,a,l)=>{n[a](e.h("input",{class:"hidden"+(l||""),...t.value,...o.value}))}}function qn(t){return e.computed(()=>t.name||t.for)}var kn=be({name:"QBtnToggle",props:{..._n,modelValue:{required:!0},options:{type:Array,required:!0,validator:e=>e.every(e=>("label"in e||"icon"in e||"slot"in e)&&"value"in e)},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","clear","click"],setup(t,{slots:o,emit:n}){const a=e.computed(()=>void 0!==t.options.find(e=>e.value===t.modelValue)),l=e.computed(()=>({type:"hidden",name:t.name,value:t.modelValue})),i=Cn(l),r=e.computed(()=>t.options.map((e,o)=>{const{attrs:n,value:a,slot:l,...i}=e;return{slot:l,props:{key:o,onClick(t){s(a,e,t)},...n,...i,outline:t.outline,flat:t.flat,rounded:t.rounded,push:t.push,unelevated:t.unelevated,dense:t.dense,disable:!0===t.disable||!0===i.disable,color:a===t.modelValue?u(i,"toggleColor"):u(i,"color"),textColor:a===t.modelValue?u(i,"toggleTextColor"):u(i,"textColor"),noCaps:!0===u(i,"noCaps"),noWrap:!0===u(i,"noWrap"),size:u(i,"size"),padding:u(i,"padding"),ripple:u(i,"ripple"),stack:!0===u(i,"stack"),stretch:!0===u(i,"stretch")}}}));function s(e,o,a){!0!==t.readonly&&(t.modelValue===e?!0===t.clearable&&(n("update:modelValue",null,null),n("clear")):n("update:modelValue",e,o),n("click",a))}function u(e,o){return void 0===e[o]?t[o]:e[o]}function c(){const n=r.value.map(t=>{return e.h(Gt,t.props,void 0!==t.slot?o[t.slot]:void 0)});return void 0!==t.name&&!0!==t.disable&&!0===a.value&&i(n,"push"),Ne(o.default,n)}return()=>e.h(Jt,{class:"q-btn-toggle",outline:t.outline,flat:t.flat,rounded:t.rounded,push:t.push,stretch:t.stretch,unelevated:t.unelevated,glossy:t.glossy,spread:t.spread},c)}}),$n=be({name:"QCard",props:{...it,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=rt(t,n.proxy.$q),l=e.computed(()=>"q-card"+(!0===a.value?" q-card--dark q-dark":"")+(!0===t.bordered?" q-card--bordered":"")+(!0===t.square?" q-card--square no-border-radius":"")+(!0===t.flat?" q-card--flat no-shadow":""));return()=>e.h(t.tag,{class:l.value},Ie(o.default))}}),Mn=be({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-card__section"+` q-card__section--${!0===t.horizontal?"horiz row no-wrap":"vert"}`);return()=>e.h(t.tag,{class:n.value},Ie(o.default))}}),Tn=be({name:"QCardActions",props:{...vt,vertical:Boolean},setup(t,{slots:o}){const n=pt(t),a=e.computed(()=>`q-card__actions ${n.value}`+` q-card__actions--${!0===t.vertical?"vert column":"horiz row"}`);return()=>e.h("div",{class:a.value},Ie(o.default))}});const Bn={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},On=Object.keys(Bn);function Vn(e){const t={};for(const o of On)!0===e[o]&&(t[o]=!0);return 0===Object.keys(t).length?Bn:(!0===t.horizontal?t.left=t.right=!0:!0===t.left&&!0===t.right&&(t.horizontal=!0),!0===t.vertical?t.up=t.down=!0:!0===t.up&&!0===t.down&&(t.vertical=!0),!0===t.horizontal&&!0===t.vertical&&(t.all=!0),t)}function zn(e,t){return void 0===t.event&&void 0!==e.target&&!0!==e.target.draggable&&"function"===typeof t.handler&&"INPUT"!==e.target.nodeName.toUpperCase()&&(void 0===e.qClonedBy||-1===e.qClonedBy.indexOf(t.uid))}function Ln(e){const t=[.06,6,50];return"string"===typeof e&&e.length&&e.split(":").forEach((e,o)=>{const n=parseFloat(e);n&&(t[o]=n)}),t}Bn.all=!0;var En=ye({name:"touch-swipe",beforeMount(e,{value:t,arg:o,modifiers:n}){if(!0!==n.mouse&&!0!==c.has.touch)return;const a=!0===n.mouseCapture?"Capture":"",l={handler:t,sensitivity:Ln(o),direction:Vn(n),noop:m,mouseStart(e){zn(e,l)&&f(e)&&($(l,"temp",[[document,"mousemove","move",`notPassive${a}`],[document,"mouseup","end","notPassiveCapture"]]),l.start(e,!0))},touchStart(e){if(zn(e,l)){const t=e.target;$(l,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),l.start(e)}},start(t,o){!0===c.is.firefox&&k(e,!0);const n=b(t);l.event={x:n.left,y:n.top,time:Date.now(),mouse:!0===o,dir:!1}},move(e){if(void 0===l.event)return;if(!1!==l.event.dir)return void q(e);const t=Date.now()-l.event.time;if(0===t)return;const o=b(e),n=o.left-l.event.x,a=Math.abs(n),i=o.top-l.event.y,r=Math.abs(i);if(!0!==l.event.mouse){if(a<l.sensitivity[1]&&r<l.sensitivity[1])return void l.end(e)}else if(a<l.sensitivity[2]&&r<l.sensitivity[2])return;const s=a/t,u=r/t;!0===l.direction.vertical&&a<r&&a<100&&u>l.sensitivity[0]&&(l.event.dir=i<0?"up":"down"),!0===l.direction.horizontal&&a>r&&r<100&&s>l.sensitivity[0]&&(l.event.dir=n<0?"left":"right"),!0===l.direction.up&&a<r&&i<0&&a<100&&u>l.sensitivity[0]&&(l.event.dir="up"),!0===l.direction.down&&a<r&&i>0&&a<100&&u>l.sensitivity[0]&&(l.event.dir="down"),!0===l.direction.left&&a>r&&n<0&&r<100&&s>l.sensitivity[0]&&(l.event.dir="left"),!0===l.direction.right&&a>r&&n>0&&r<100&&s>l.sensitivity[0]&&(l.event.dir="right"),!1!==l.event.dir?(q(e),!0===l.event.mouse&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),eo(),l.styleCleanup=(e=>{l.styleCleanup=void 0,document.body.classList.remove("non-selectable");const t=()=>{document.body.classList.remove("no-pointer-events--children")};!0===e?setTimeout(t,50):t()})),l.handler({evt:e,touch:!0!==l.event.mouse,mouse:l.event.mouse,direction:l.event.dir,duration:t,distance:{x:a,y:r}})):l.end(e)},end(t){void 0!==l.event&&(M(l,"temp"),!0===c.is.firefox&&k(e,!1),void 0!==l.styleCleanup&&l.styleCleanup(!0),void 0!==t&&!1!==l.event.dir&&q(t),l.event=void 0)}};e.__qtouchswipe=l,!0===n.mouse&&$(l,"main",[[e,"mousedown","mouseStart",`passive${a}`]]),!0===c.has.touch&&$(l,"main",[[e,"touchstart","touchStart",`passive${!0===n.capture?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchswipe;void 0!==o&&(t.oldValue!==t.value&&("function"!==typeof t.value&&o.end(),o.handler=t.value),o.direction=Vn(t.modifiers))},beforeUnmount(e){const t=e.__qtouchswipe;void 0!==t&&(M(t,"main"),M(t,"temp"),!0===c.is.firefox&&k(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchswipe)}});function Pn(){const e=new Map;return{getCache:function(t,o){return void 0===e[t]?e[t]=o:e[t]},getCacheWithFn:function(t,o){return void 0===e[t]?e[t]=o():e[t]}}}const An={name:{required:!0},disable:Boolean},Fn={setup(t,{slots:o}){return()=>e.h("div",{class:"q-panel scroll",role:"tabpanel"},Ie(o.default))}},Rn={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},In=["update:modelValue","before-transition","transition"];function jn(){const{props:t,emit:o,proxy:n}=e.getCurrentInstance(),{getCacheWithFn:a}=Pn();let l,i;const r=e.ref(null),s=e.ref(null);function u(e){const o=!0===t.vertical?"up":"left";C((!0===n.$q.lang.rtl?-1:1)*(e.direction===o?1:-1))}const c=e.computed(()=>{return[[En,u,void 0,{horizontal:!0!==t.vertical,vertical:t.vertical,mouse:!0}]]}),d=e.computed(()=>t.transitionPrev||`slide-${!0===t.vertical?"down":"right"}`),v=e.computed(()=>t.transitionNext||`slide-${!0===t.vertical?"up":"left"}`),p=e.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`),m=e.computed(()=>"string"===typeof t.modelValue||"number"===typeof t.modelValue?t.modelValue:String(t.modelValue)),f=e.computed(()=>({include:t.keepAliveInclude,exclude:t.keepAliveExclude,max:t.keepAliveMax})),h=e.computed(()=>void 0!==t.keepAliveInclude||void 0!==t.keepAliveExclude);function g(){C(1)}function b(){C(-1)}function y(e){o("update:modelValue",e)}function w(e){return void 0!==e&&null!==e&&""!==e}function x(e){return l.findIndex(t=>{return t.props.name===e&&""!==t.props.disable&&!0!==t.props.disable})}function _(){return l.filter(e=>{return""!==e.props.disable&&!0!==e.props.disable})}function S(e){const o=0!==e&&!0===t.animated&&-1!==r.value?"q-transition--"+(-1===e?d.value:v.value):null;s.value!==o&&(s.value=o)}function C(e,n=r.value){let a=n+e;while(a>-1&&a<l.length){const t=l[a];if(void 0!==t&&""!==t.props.disable&&!0!==t.props.disable)return S(e),i=!0,o("update:modelValue",t.props.name),void setTimeout(()=>{i=!1});a+=e}!0===t.infinite&&l.length>0&&-1!==n&&n!==l.length&&C(e,-1===e?l.length:-1)}function q(){const e=x(t.modelValue);return r.value!==e&&(r.value=e),!0}function k(){const o=!0===w(t.modelValue)&&q()&&l[r.value];return!0===t.keepAlive?[e.h(e.KeepAlive,f.value,[e.h(!0===h.value?a(m.value,()=>({...Fn,name:m.value})):Fn,{key:m.value,style:p.value},()=>o)])]:[e.h("div",{class:"q-panel scroll",style:p.value,key:m.value,role:"tabpanel"},[o])]}function $(){if(0!==l.length)return!0===t.animated?[e.h(e.Transition,{name:s.value},k)]:k()}function M(e){return l=ft(Ie(e.default,[])).filter(e=>null!==e.props&&void 0===e.props.slot&&!0===w(e.props.name)),l.length}function T(){return l}return e.watch(()=>t.modelValue,(t,n)=>{const a=!0===w(t)?x(t):-1;!0!==i&&S(-1===a?0:a<x(n)?-1:1),r.value!==a&&(r.value=a,o("before-transition",t,n),e.nextTick(()=>{o("transition",t,n)}))}),Object.assign(n,{next:g,previous:b,goTo:y}),{panelIndex:r,panelDirectives:c,updatePanelsList:M,updatePanelIndex:q,getPanelContent:$,getEnabledPanels:_,getPanels:T,isValidPanelName:w,keepAliveProps:f,needsUniqueKeepAliveWrapper:h,goToPanelByOffset:C,goToPanel:y,nextPanel:g,previousPanel:b}}const Nn={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Dn=["update:fullscreen","fullscreen"];function Hn(){const t=e.getCurrentInstance(),{props:o,emit:n,proxy:a}=t;let l,i,r;const s=e.ref(!1);function u(){!0===s.value?d():c()}function c(){!0!==s.value&&(s.value=!0,r=a.$el.parentNode,r.replaceChild(i,a.$el),document.body.appendChild(a.$el),document.body.classList.add("q-body--fullscreen-mixin"),l={handler:d},R.add(l))}function d(){!0===s.value&&(void 0!==l&&(R.remove(l),l=void 0),r.replaceChild(a.$el,i),document.body.classList.remove("q-body--fullscreen-mixin"),s.value=!1,void 0!==a.$el.scrollIntoView&&setTimeout(()=>{a.$el.scrollIntoView()}))}return!0===ht(t)&&e.watch(()=>a.$route,()=>{!0!==o.noRouteFullscreenExit&&d()}),e.watch(()=>o.fullscreen,e=>{s.value!==e&&u()}),e.watch(s,e=>{n("update:fullscreen",e),n("fullscreen",e)}),e.onBeforeMount(()=>{i=document.createElement("span")}),e.onMounted(()=>{!0===o.fullscreen&&c()}),e.onBeforeUnmount(d),Object.assign(a,{toggleFullscreen:u,setFullscreen:c,exitFullscreen:d}),{inFullscreen:s,toggleFullscreen:u}}const Qn="function"===typeof Map,Un="function"===typeof Set,Wn="function"===typeof ArrayBuffer;function Yn(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let o,n;if(e.constructor===Array){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(!0!==Yn(e[n],t[n]))return!1;return!0}if(!0===Qn&&e.constructor===Map){if(e.size!==t.size)return!1;n=e.entries().next();while(!0!==n.done){if(!0!==t.has(n.value[0]))return!1;n=n.next()}n=e.entries().next();while(!0!==n.done){if(!0!==Yn(n.value[1],t.get(n.value[0])))return!1;n=n.next()}return!0}if(!0===Un&&e.constructor===Set){if(e.size!==t.size)return!1;n=e.entries().next();while(!0!==n.done){if(!0!==t.has(n.value[0]))return!1;n=n.next()}return!0}if(!0===Wn&&null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(e[n]!==t[n])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);if(o=a.length,o!==Object.keys(t).length)return!1;for(n=o;0!==n--;){const o=a[n];if(!0!==Yn(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Kn(e){return"[object Date]"===Object.prototype.toString.call(e)}function Xn(e){return"number"===typeof e&&isFinite(e)}const Zn=["top","right","bottom","left"],Gn=["regular","flat","outline","push","unelevated"];var Jn=be({name:"QCarousel",props:{...it,...Rn,...Nn,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:e=>Gn.includes(e),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:e=>Zn.includes(e)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...Dn,...In],setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=rt(t,n);let l,i;const{updatePanelsList:r,getPanelContent:s,panelDirectives:u,goToPanel:c,previousPanel:d,nextPanel:v,getEnabledPanels:p,panelIndex:m}=jn(),{inFullscreen:f}=Hn(),h=e.computed(()=>!0!==f.value&&void 0!==t.height?{height:t.height}:{}),g=e.computed(()=>!0===t.vertical?"vertical":"horizontal"),b=e.computed(()=>`q-carousel q-panel-parent q-carousel--with${!0===t.padding?"":"out"}-padding`+(!0===f.value?" fullscreen":"")+(!0===a.value?" q-carousel--dark q-dark":"")+(!0===t.arrows?` q-carousel--arrows-${g.value}`:"")+(!0===t.navigation?` q-carousel--navigation-${_.value}`:"")),y=e.computed(()=>{const e=[t.prevIcon||n.iconSet.carousel[!0===t.vertical?"up":"left"],t.nextIcon||n.iconSet.carousel[!0===t.vertical?"down":"right"]];return!1===t.vertical&&!0===n.lang.rtl?e.reverse():e}),w=e.computed(()=>t.navigationIcon||n.iconSet.carousel.navigationIcon),x=e.computed(()=>t.navigationActiveIcon||w.value),_=e.computed(()=>t.navigationPosition||(!0===t.vertical?"right":"bottom")),S=e.computed(()=>({color:t.controlColor,textColor:t.controlTextColor,round:!0,[t.controlType]:!0,dense:!0}));function C(){const e=!0===Xn(t.autoplay)?t.autoplay:5e3;l=setTimeout(e>=0?v:d,Math.abs(e))}function q(o,n){return e.h("div",{class:"q-carousel__control q-carousel__navigation no-wrap absolute flex"+` q-carousel__navigation--${o} q-carousel__navigation--${_.value}`+(void 0!==t.controlColor?` text-${t.controlColor}`:"")},[e.h("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},p().map(n))])}function k(){const n=[];if(!0===t.navigation){const t=void 0!==o["navigation-icon"]?o["navigation-icon"]:t=>e.h(Gt,{key:"nav"+t.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${!0===t.active?"":"in"}active`,...t.btnProps,onClick:t.onClick}),a=i-1;n.push(q("buttons",(e,o)=>{const n=e.props.name,l=m.value===o;return t({index:o,maxIndex:a,name:n,active:l,btnProps:{icon:!0===l?x.value:w.value,size:"sm",...S.value},onClick:()=>{c(n)}})}))}else if(!0===t.thumbnails){const o=void 0!==t.controlColor?` text-${t.controlColor}`:"";n.push(q("thumbnails",n=>{const a=n.props;return e.h("img",{key:"tmb#"+a.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${a.name===t.modelValue?"":"in"}active`+o,src:a.imgSrc||a["img-src"],onClick:()=>{c(a.name)}})}))}return!0===t.arrows&&m.value>=0&&((!0===t.infinite||m.value>0)&&n.push(e.h("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${g.value} absolute flex flex-center`},[e.h(Gt,{icon:y.value[0],...S.value,onClick:d})])),(!0===t.infinite||m.value<i-1)&&n.push(e.h("div",{key:"next",class:"q-carousel__control q-carousel__arrow q-carousel__next-arrow"+` q-carousel__next-arrow--${g.value} absolute flex flex-center`},[e.h(Gt,{icon:y.value[1],...S.value,onClick:v})]))),Ne(o.control,n)}return e.watch(()=>t.modelValue,()=>{t.autoplay&&(clearInterval(l),C())}),e.watch(()=>t.autoplay,e=>{e?C():clearInterval(l)}),e.onMounted(()=>{t.autoplay&&C()}),e.onBeforeUnmount(()=>{clearInterval(l)}),()=>{return i=r(o),e.h("div",{class:b.value,style:h.value},[He("div",{class:"q-carousel__slides-container"},s(),"sl-cont",t.swipeable,()=>u.value)].concat(k()))}}}),ea=be({name:"QCarouselSlide",props:{...An,imgSrc:String},setup(t,{slots:o}){const n=e.computed(()=>t.imgSrc?{backgroundImage:`url("${t.imgSrc}")`}:{});return()=>e.h("div",{class:"q-carousel__slide",style:n.value},Ie(o.default))}}),ta=be({name:"QCarouselControl",props:{position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,default:()=>[18,18],validator:e=>2===e.length}},setup(t,{slots:o}){const n=e.computed(()=>`q-carousel__control absolute absolute-${t.position}`),a=e.computed(()=>({margin:`${t.offset[1]}px ${t.offset[0]}px`}));return()=>e.h("div",{class:n.value,style:a.value},Ie(o.default))}}),oa=be({name:"QChatMessage",props:{sent:Boolean,label:String,bgColor:String,textColor:String,name:String,avatar:String,text:Array,stamp:String,size:String,labelHtml:Boolean,nameHtml:Boolean,textHtml:Boolean,stampHtml:Boolean},setup(t,{slots:o}){const n=e.computed(()=>!0===t.sent?"sent":"received"),a=e.computed(()=>`q-message-text-content q-message-text-content--${n.value}`+(void 0!==t.textColor?` text-${t.textColor}`:"")),l=e.computed(()=>`q-message-text q-message-text--${n.value}`+(void 0!==t.bgColor?` text-${t.bgColor}`:"")),i=e.computed(()=>"q-message-container row items-end no-wrap"+(!0===t.sent?" reverse":"")),r=e.computed(()=>void 0!==t.size?`col-${t.size}`:""),s=e.computed(()=>({msg:!0===t.textHtml?"innerHTML":"textContent",stamp:!0===t.stampHtml?"innerHTML":"textContent",name:!0===t.nameHtml?"innerHTML":"textContent",label:!0===t.labelHtml?"innerHTML":"textContent"}));function u(n){return void 0!==o.stamp?[n,e.h("div",{class:"q-message-stamp"},o.stamp())]:t.stamp?[n,e.h("div",{class:"q-message-stamp",[s.value.stamp]:t.stamp})]:[n]}function c(t,o){const n=!0===o?t.length>1?e=>e:t=>e.h("div",[t]):t=>e.h("div",{[s.value.msg]:t});return t.map((t,o)=>e.h("div",{key:o,class:l.value},[e.h("div",{class:a.value},u(n(t)))]))}return()=>{const a=[];void 0!==o.avatar?a.push(o.avatar()):void 0!==t.avatar&&a.push(e.h("img",{class:`q-message-avatar q-message-avatar--${n.value}`,src:t.avatar,"aria-hidden":"true"}));const l=[];void 0!==o.name?l.push(e.h("div",{class:`q-message-name q-message-name--${n.value}`},o.name())):void 0!==t.name&&l.push(e.h("div",{class:`q-message-name q-message-name--${n.value}`,[s.value.name]:t.name})),void 0!==o.default?l.push(c(ft(o.default()),!0)):void 0!==t.text&&l.push(c(t.text)),a.push(e.h("div",{class:r.value},l));const u=[];return void 0!==o.label?u.push(e.h("div",{class:"q-message-label"},o.label())):void 0!==t.label&&u.push(e.h("div",{class:"q-message-label",[s.value.label]:t.label})),u.push(e.h("div",{class:i.value},a)),e.h("div",{class:`q-message q-message-${n.value}`},u)}}});function na(t,o){const n=e.ref(null),a=e.computed(()=>{return!0!==t.disable?null:e.h("span",{ref:n,class:"no-outline",tabindex:-1})});function l(e){void 0!==e&&0===e.type.indexOf("key")?document.activeElement!==o.value&&!0===o.value.contains(document.activeElement)&&o.value.focus():void 0!==e&&!0!==o.value.contains(e.target)||null===n.value||n.value.focus()}return{refocusTargetEl:a,refocusTarget:l}}var aa={xs:30,sm:35,md:40,lg:50,xl:60};const la={...it,...Fe,..._n,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},toggleOrder:{type:String,validator:e=>"tf"===e||"ft"===e},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},ia=["update:modelValue"];function ra(t,o){const{props:n,slots:a,emit:l,proxy:i}=e.getCurrentInstance(),{$q:r}=i,s=rt(n,r),u=e.ref(null),{refocusTargetEl:c,refocusTarget:d}=na(n,u),v=Re(n,aa),p=e.computed(()=>void 0!==n.val&&Array.isArray(n.modelValue)),m=e.computed(()=>!0===p.value?n.modelValue.indexOf(n.val):-1),f=e.computed(()=>!0===p.value?m.value>-1:n.modelValue===n.trueValue),h=e.computed(()=>!0===p.value?-1===m.value:n.modelValue===n.falseValue),g=e.computed(()=>!1===f.value&&!1===h.value),b=e.computed(()=>!0===n.disable?-1:n.tabindex||0),y=e.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(!0===n.disable?" disabled":"")+(!0===s.value?` q-${t}--dark`:"")+(!0===n.dense?` q-${t}--dense`:"")+(!0===n.leftLabel?" reverse":"")),w=e.computed(()=>{const e=!0===f.value?"truthy":!0===h.value?"falsy":"indet",o=void 0===n.color||!0!==n.keepColor&&("toggle"===t?!0!==f.value:!0===h.value)?"":` text-${n.color}`;return`q-${t}__inner relative-position non-selectable q-${t}__inner--${e}${o}`}),x=e.computed(()=>{const e={type:"checkbox"};return void 0!==n.name&&Object.assign(e,{checked:f.value,name:n.name,value:!0===p.value?n.val:n.trueValue}),e}),_=Cn(x),S=e.computed(()=>{const e={tabindex:b.value,role:"checkbox","aria-label":n.label,"aria-checked":!0===g.value?"mixed":!0===f.value?"true":"false"};return!0===n.disable&&(e["aria-disabled"]="true"),e});function C(e){void 0!==e&&(q(e),d(e)),!0!==n.disable&&l("update:modelValue",k(),e)}function k(){if(!0===p.value){if(!0===f.value){const e=n.modelValue.slice();return e.splice(m.value,1),e}return n.modelValue.concat([n.val])}if(!0===f.value){if("ft"!==n.toggleOrder||!1===n.toggleIndeterminate)return n.falseValue}else{if(!0!==h.value)return"ft"!==n.toggleOrder?n.trueValue:n.falseValue;if("ft"===n.toggleOrder||!1===n.toggleIndeterminate)return n.trueValue}return n.indeterminateValue}function $(e){13!==e.keyCode&&32!==e.keyCode||q(e)}function M(e){13!==e.keyCode&&32!==e.keyCode||C(e)}const T=o(f,g);return Object.assign(i,{toggle:C}),()=>{const o=T();!0!==n.disable&&_(o,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const l=[e.h("div",{class:w.value,style:v.value},o)];null!==c.value&&l.push(c.value);const i=void 0!==n.label?Ne(a.default,[n.label]):Ie(a.default);return void 0!==i&&l.push(e.h("div",{class:`q-${t}__label q-anchor--skip`},i)),e.h("div",{ref:u,class:y.value,...S.value,onClick:C,onKeydown:$,onKeyup:M},l)}}const sa=e.h("div",{class:"q-checkbox__bg absolute"},[e.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24","aria-hidden":"true"},[e.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),e.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]);var ua=be({name:"QCheckbox",props:la,emits:ia,setup(){return ra("checkbox",()=>()=>[sa])}});const ca={xs:8,sm:10,md:14,lg:20,xl:24};var da=be({name:"QChip",props:{...it,...Fe,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=rt(t,a),i=Re(t,ca),r=e.computed(()=>!0===t.selected||void 0!==t.icon),s=e.computed(()=>!0===t.selected?t.iconSelected||a.iconSet.chip.selected:t.icon),u=e.computed(()=>t.iconRemove||a.iconSet.chip.remove),c=e.computed(()=>!1===t.disable&&(!0===t.clickable||null!==t.selected)),d=e.computed(()=>{const e=!0===t.outline&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(!1===t.outline&&void 0!==t.color?` bg-${t.color}`:"")+(e?` text-${e} q-chip--colored`:"")+(!0===t.disable?" disabled":"")+(!0===t.dense?" q-chip--dense":"")+(!0===t.outline?" q-chip--outline":"")+(!0===t.selected?" q-chip--selected":"")+(!0===c.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(!0===t.square?" q-chip--square":"")+(!0===l.value?" q-chip--dark q-dark":"")}),v=e.computed(()=>!0===t.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0});function p(e){13===e.keyCode&&m(e)}function m(e){t.disable||(n("update:selected",!t.selected),n("click",e))}function f(e){void 0!==e.keyCode&&13!==e.keyCode||(q(e),!1===t.disable&&(n("update:modelValue",!1),n("remove")))}function h(){const n=[];!0===c.value&&n.push(e.h("div",{class:"q-focus-helper"})),!0===r.value&&n.push(e.h(ot,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const a=void 0!==t.label?[e.h("div",{class:"ellipsis"},[t.label])]:void 0;return n.push(e.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},De(o.default,a))),t.iconRight&&n.push(e.h(ot,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),!0===t.removable&&n.push(e.h(ot,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:u.value,...v.value,onClick:f,onKeyup:f})),n}return()=>{if(!1===t.modelValue)return;const e={class:d.value,style:i.value};return!0===c.value&&Object.assign(e,v.value,{onClick:m,onKeyup:p}),He("div",e,h(),"ripple",!1!==t.ripple&&!0!==t.disable,()=>[[Dt,t.ripple]])}}});const va={...Fe,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean},pa=50,ma=2*pa,fa=ma*Math.PI,ha=Math.round(1e3*fa)/1e3;var ga=be({name:"QCircularProgress",props:{...va,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=Re(t),l=e.computed(()=>{const e=(!0===n.lang.rtl?-1:1)*t.angle;return{transform:t.reverse!==(!0===n.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-e}deg)`:`rotate3d(0, 0, 1, ${e-90}deg)`}}),i=e.computed(()=>!0!==t.instantFeedback&&!0!==t.indeterminate?{transition:`stroke-dashoffset ${t.animationSpeed}ms ease 0s, stroke ${t.animationSpeed}ms ease`}:""),r=e.computed(()=>ma/(1-t.thickness/2)),s=e.computed(()=>`${r.value/2} ${r.value/2} ${r.value} ${r.value}`),u=e.computed(()=>Se(t.value,t.min,t.max)),c=e.computed(()=>fa*(1-(u.value-t.min)/(t.max-t.min))),d=e.computed(()=>t.thickness/2*r.value);function v({thickness:t,offset:o,color:n,cls:a}){return e.h("circle",{class:"q-circular-progress__"+a+(void 0!==n?` text-${n}`:""),style:i.value,fill:"transparent",stroke:"currentColor","stroke-width":t,"stroke-dasharray":ha,"stroke-dashoffset":o,cx:r.value,cy:r.value,r:pa})}return()=>{const n=[];void 0!==t.centerColor&&"transparent"!==t.centerColor&&n.push(e.h("circle",{class:`q-circular-progress__center text-${t.centerColor}`,fill:"currentColor",r:pa-d.value/2,cx:r.value,cy:r.value})),void 0!==t.trackColor&&"transparent"!==t.trackColor&&n.push(v({cls:"track",thickness:d.value,offset:0,color:t.trackColor})),n.push(v({cls:"circle",thickness:d.value,offset:c.value,color:t.color}));const i=[e.h("svg",{class:"q-circular-progress__svg",style:l.value,viewBox:s.value,"aria-hidden":"true"},n)];return!0===t.showValue&&i.push(e.h("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:t.fontSize}},void 0!==o.default?o.default():[e.h("div",u.value)])),e.h("div",{class:`q-circular-progress q-circular-progress--${!0===t.indeterminate?"in":""}determinate`,style:a.value,role:"progressbar","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":!0===t.indeterminate?void 0:u.value},De(o.internal,i))}}});function ba(e,t,o){const n=b(e);let a,l=n.left-t.event.x,i=n.top-t.event.y,r=Math.abs(l),s=Math.abs(i);const u=t.direction;!0===u.horizontal&&!0!==u.vertical?a=l<0?"left":"right":!0!==u.horizontal&&!0===u.vertical?a=i<0?"up":"down":!0===u.up&&i<0?(a="up",r>s&&(!0===u.left&&l<0?a="left":!0===u.right&&l>0&&(a="right"))):!0===u.down&&i>0?(a="down",r>s&&(!0===u.left&&l<0?a="left":!0===u.right&&l>0&&(a="right"))):!0===u.left&&l<0?(a="left",r<s&&(!0===u.up&&i<0?a="up":!0===u.down&&i>0&&(a="down"))):!0===u.right&&l>0&&(a="right",r<s&&(!0===u.up&&i<0?a="up":!0===u.down&&i>0&&(a="down")));let c=!1;if(void 0===a&&!1===o){if(!0===t.event.isFirst||void 0===t.event.lastDir)return{};a=t.event.lastDir,c=!0,"left"===a||"right"===a?(n.left-=l,r=0,l=0):(n.top-=i,s=0,i=0)}return{synthetic:c,payload:{evt:e,touch:!0!==t.event.mouse,mouse:!0===t.event.mouse,position:n,direction:a,isFirst:t.event.isFirst,isFinal:!0===o,duration:Date.now()-t.event.time,distance:{x:r,y:s},offset:{x:l,y:i},delta:{x:n.left-t.event.lastX,y:n.top-t.event.lastY}}}}let ya=0;var wa=ye({name:"touch-pan",beforeMount(e,{value:t,modifiers:o}){if(!0!==o.mouse&&!0!==c.has.touch)return;function n(e,t){!0===o.mouse&&!0===t?q(e):(!0===o.stop&&S(e),!0===o.prevent&&C(e))}const a={uid:"qvtp_"+ya++,handler:t,modifiers:o,direction:Vn(o),noop:m,mouseStart(e){zn(e,a)&&f(e)&&($(a,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),a.start(e,!0))},touchStart(e){if(zn(e,a)){const t=e.target;$(a,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","passiveCapture"],[t,"touchend","end","passiveCapture"]]),a.start(e)}},start(t,n){if(!0===c.is.firefox&&k(e,!0),a.lastEvt=t,!0===n||!0===o.stop){if(!0!==a.direction.all&&(!0!==n||!0!==a.modifiers.mouseAllDir)){const e=t.type.indexOf("mouse")>-1?new MouseEvent(t.type,t):new TouchEvent(t.type,t);!0===t.defaultPrevented&&C(e),!0===t.cancelBubble&&S(e),Object.assign(e,{qKeyEvent:t.qKeyEvent,qClickOutside:t.qClickOutside,qAnchorHandled:t.qAnchorHandled,qClonedBy:void 0===t.qClonedBy?[a.uid]:t.qClonedBy.concat(a.uid)}),a.initialEvent={target:t.target,event:e}}S(t)}const{left:l,top:i}=b(t);a.event={x:l,y:i,time:Date.now(),mouse:!0===n,detected:!1,isFirst:!0,isFinal:!1,lastX:l,lastY:i}},move(e){if(void 0===a.event)return;const t=b(e),l=t.left-a.event.x,i=t.top-a.event.y;if(0===l&&0===i)return;a.lastEvt=e;const r=!0===a.event.mouse,s=()=>{n(e,r),!0!==o.preserveCursor&&(document.documentElement.style.cursor="grabbing"),!0===r&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),eo(),a.styleCleanup=(e=>{if(a.styleCleanup=void 0,!0!==o.preserveCursor&&(document.documentElement.style.cursor=""),document.body.classList.remove("non-selectable"),!0===r){const t=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==e?setTimeout(()=>{t(),e()},50):t()}else void 0!==e&&e()})};if(!0===a.event.detected){!0!==a.event.isFirst&&n(e,a.event.mouse);const{payload:t,synthetic:o}=ba(e,a,!1);return void(void 0!==t&&(!1===a.handler(t)?a.end(e):(void 0===a.styleCleanup&&!0===a.event.isFirst&&s(),a.event.lastX=t.position.left,a.event.lastY=t.position.top,a.event.lastDir=!0===o?void 0:t.direction,a.event.isFirst=!1)))}if(!0===a.direction.all||!0===r&&!0===a.modifiers.mouseAllDir)return s(),a.event.detected=!0,void a.move(e);const u=Math.abs(l),c=Math.abs(i);u!==c&&(!0===a.direction.horizontal&&u>c||!0===a.direction.vertical&&u<c||!0===a.direction.up&&u<c&&i<0||!0===a.direction.down&&u<c&&i>0||!0===a.direction.left&&u>c&&l<0||!0===a.direction.right&&u>c&&l>0?(a.event.detected=!0,a.move(e)):a.end(e,!0))},end(t,o){if(void 0!==a.event){if(M(a,"temp"),!0===c.is.firefox&&k(e,!1),!0===o)void 0!==a.styleCleanup&&a.styleCleanup(),!0!==a.event.detected&&void 0!==a.initialEvent&&a.initialEvent.target.dispatchEvent(a.initialEvent.event);else if(!0===a.event.detected){!0===a.event.isFirst&&a.handler(ba(void 0===t?a.lastEvt:t,a).payload);const{payload:e}=ba(void 0===t?a.lastEvt:t,a,!0),o=()=>{a.handler(e)};void 0!==a.styleCleanup?a.styleCleanup(o):o()}a.event=void 0,a.initialEvent=void 0,a.lastEvt=void 0}}};e.__qtouchpan=a,!0===o.mouse&&$(a,"main",[[e,"mousedown","mouseStart",`passive${!0===o.mouseCapture?"Capture":""}`]]),!0===c.has.touch&&$(a,"main",[[e,"touchstart","touchStart",`passive${!0===o.capture?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchpan;void 0!==o&&(t.oldValue!==t.value&&("function"!==typeof value&&o.end(),o.handler=t.value),o.direction=Vn(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;void 0!==t&&(void 0!==t.event&&t.end(),M(t,"main"),M(t,"temp"),!0===c.is.firefox&&k(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchpan)}});const xa=[34,37,40,33,39,38];function _a(e,t,o,n){const a=b(e),l=Se(!0===n?(a.top-t.top)/t.height:(a.left-t.left)/t.width,0,1);return!0===o?1-l:l}function Sa(e,t,o,n,a){let l=t+e*(o-t);if(n>0){const e=(l-t)%n;l+=(Math.abs(e)>=n/2?(e<0?-1:1)*n:0)-e}return a>0&&(l=parseFloat(l.toFixed(a))),Se(l,t,o)}const Ca={...it,min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1,validator:e=>e>=0},color:String,labelColor:String,labelTextColor:String,dense:Boolean,label:Boolean,labelAlways:Boolean,markers:[Boolean,Number],snap:Boolean,vertical:Boolean,reverse:Boolean,disable:Boolean,readonly:Boolean,tabindex:[String,Number],thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},qa=["pan","update:modelValue","change"];function ka({updateValue:t,updatePosition:o,getDragging:n}){const{props:a,emit:l,proxy:{$q:i}}=e.getCurrentInstance(),r=rt(a,i),s=e.ref(!1),u=e.ref(!1),c=e.ref(!1),d=e.ref(!1),v=e.computed(()=>!0===a.vertical?"--v":"--h"),p=e.computed(()=>!0===a.vertical?!0===a.reverse:a.reverse!==(!0===i.lang.rtl)),m=e.computed(()=>!0!==a.disable&&!0!==a.readonly&&a.min<a.max),f=e.computed(()=>`q-slider q-slider${v.value} q-slider--${!0===s.value?"":"in"}active`+(!0===p.value?" q-slider--reversed":"")+(void 0!==a.color?` text-${a.color}`:"")+(!0===a.disable?" disabled":" q-slider--enabled"+(!0===m.value?" q-slider--editable":""))+("both"===c.value?" q-slider--focus":"")+(a.label||!0===a.labelAlways?" q-slider--label":"")+(!0===a.labelAlways?" q-slider--label-always":"")+(!0===r.value?" q-slider--dark":"")+(!0===a.dense?" q-slider--dense q-slider--dense"+v.value:"")),h=e.computed(()=>(String(a.step).trim("0").split(".")[1]||"").length),g=e.computed(()=>0===a.step?1:a.step),b=e.computed(()=>a.max-a.min),y=e.computed(()=>!0===Xn(a.markers)?a.markers:g.value),w=e.computed(()=>{if(0!==b.value){const e=100*y.value/b.value;return{backgroundSize:!0===a.vertical?`2px ${e}%`:`${e}% 2px`}}return null}),x=e.computed(()=>!0===m.value?a.tabindex||0:-1),_=e.computed(()=>!0===a.vertical?!0===p.value?"bottom":"top":!0===p.value?"right":"left"),S=e.computed(()=>!0===a.vertical?"height":"width"),C=e.computed(()=>!0===a.vertical?"vertical":"horizontal"),q=e.computed(()=>{const e={role:"slider","aria-valuemin":a.min,"aria-valuemax":a.max,"aria-orientation":C.value,"data-step":a.step};return!0===a.disable?e["aria-disabled"]="true":!0===a.readonly&&(e["aria-readonly"]="true"),e}),k=e.computed(()=>{return[[wa,T,void 0,{[C.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]});function $(){return e.h("svg",{class:"q-slider__thumb absolute",viewBox:"0 0 20 20",width:"20",height:"20","aria-hidden":"true"},[e.h("path",{d:a.thumbPath})])}function M(e,t){if(!0===a.vertical)return{};const o=`${Math.ceil(20*Math.abs(.5-t))}px`;return{pin:{transformOrigin:`${!0===i.lang.rtl?o:`calc(100% - ${o})`} 50%`},pinTextContainer:{[!0===i.lang.rtl?"left":"right"]:`${100*e}%`,transform:`translateX(${Math.ceil(20*(!0===i.lang.rtl?-1:1)*e)}px)`}}}function T(e){e.isFinal?(void 0!==d.value&&(o(e.evt),!0===e.touch&&t(!0),d.value=void 0,l("pan","end")),s.value=!1):e.isFirst?(d.value=n(e.evt),o(e.evt),t(),s.value=!0,l("pan","start")):(o(e.evt),t())}function B(){c.value=!1}function O(e){o(e,n(e)),t(),u.value=!0,s.value=!0,document.addEventListener("mouseup",V,!0)}function V(){u.value=!1,void 0===d.value&&(s.value=!1),t(!0),B(),document.removeEventListener("mouseup",V,!0)}function z(e){o(e,n(e)),t(!0)}function L(e){xa.includes(e.keyCode)&&t(!0)}return e.onBeforeUnmount(()=>{document.removeEventListener("mouseup",V,!0)}),{state:{active:s,focus:c,preventFocus:u,dragging:d,axis:v,isReversed:p,editable:m,classes:f,decimals:h,step:g,minMaxDiff:b,markerStyle:w,tabindex:x,positionProp:_,sizeProp:S,attributes:q,panDirective:k},methods:{onActivate:O,onMobileClick:z,onBlur:B,onKeyup:L,getThumbSvg:$,getPinStyle:M}}}var $a=be({name:"QSlider",props:{...Ca,..._n,modelValue:{required:!0,default:null,validator:e=>"number"===typeof e||null===e},labelValue:[String,Number]},emits:qa,setup(t,{emit:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=Sn(t),l=Cn(a),i=e.ref(null),r=e.ref(null===t.modelValue?t.min:t.modelValue),s=e.ref(0),{state:u,methods:c}=ka({updateValue:x,updatePosition:S,getDragging:_}),d=e.computed(()=>0===u.minMaxDiff.value?0:(r.value-t.min)/u.minMaxDiff.value),v=e.computed(()=>!0===u.active.value?s.value:d.value),p=e.computed(()=>({[u.positionProp.value]:0,[u.sizeProp.value]:`${100*v.value}%`})),m=e.computed(()=>({[u.positionProp.value]:`${100*v.value}%`})),f=e.computed(()=>!1===u.preventFocus.value&&!0===u.focus.value?" q-slider--focus":""),h=e.computed(()=>void 0!==t.labelColor?`text-${t.labelColor}`:""),g=e.computed(()=>"q-slider__pin-value-marker-text"+(void 0!==t.labelTextColor?` text-${t.labelTextColor}`:"")),b=e.computed(()=>{return!0!==u.editable.value?{}:!0===n.platform.is.mobile?{onClick:c.onMobileClick}:{onMousedown:c.onActivate,onFocus:C,onBlur:c.onBlur,onKeydown:k,onKeyup:c.onKeyup}}),y=e.computed(()=>void 0!==t.labelValue?t.labelValue:r.value),w=e.computed(()=>{const e=!0===t.reverse?-v.value:v.value-1;return c.getPinStyle(e,v.value)});function x(e){r.value!==t.modelValue&&o("update:modelValue",r.value),!0===e&&o("change",r.value)}function _(){return i.value.getBoundingClientRect()}function S(e,o=u.dragging.value){const n=_a(e,o,u.isReversed.value,t.vertical);r.value=Sa(n,t.min,t.max,t.step,u.decimals.value),s.value=!0!==t.snap||0===t.step?n:0===u.minMaxDiff.value?0:(r.value-t.min)/u.minMaxDiff.value}function C(){u.focus.value=!0}function k(e){if(!xa.includes(e.keyCode))return;q(e);const o=([34,33].includes(e.keyCode)?10:1)*u.step.value,n=[34,37,40].includes(e.keyCode)?-o:o;r.value=Se(parseFloat((r.value+n).toFixed(u.decimals.value)),t.min,t.max),x()}return e.watch(()=>t.modelValue,e=>{r.value=null===e?0:Se(e,t.min,t.max)}),e.watch(()=>t.min+t.max,()=>{r.value=Se(r.value,t.min,t.max)}),()=>{const o=[c.getThumbSvg(),e.h("div",{class:"q-slider__focus-ring"})];!0!==t.label&&!0!==t.labelAlways||o.push(e.h("div",{class:`q-slider__pin q-slider__pin${u.axis.value} absolute `+h.value,style:w.value.pin},[e.h("div",{class:`q-slider__pin-text-container q-slider__pin-text-container${u.axis.value}`,style:w.value.pinTextContainer},[e.h("span",{class:"q-slider__pin-text "+g.value},[y.value])])]),e.h("div",{class:`q-slider__arrow q-slider__arrow${u.axis.value} ${h.value}`})),void 0!==t.name&&!0!==t.disable&&l(o,"push");const n=[e.h("div",{class:`q-slider__track q-slider__track${u.axis.value} absolute`,style:p.value})];!1!==t.markers&&n.push(e.h("div",{class:`q-slider__track-markers q-slider__track-markers${u.axis.value} absolute-full fit`,style:u.markerStyle.value}));const a=[e.h("div",{class:`q-slider__track-container q-slider__track-container${u.axis.value} absolute`},n),e.h("div",{class:`q-slider__thumb-container q-slider__thumb-container${u.axis.value} absolute non-selectable`+f.value,style:m.value},o)],r={ref:i,class:u.classes.value+(null===t.modelValue?" q-slider--no-value":""),...u.attributes.value,"aria-valuenow":t.modelValue,tabindex:u.tabindex.value,...b.value};return He("div",r,a,"slide",u.editable.value,()=>u.panDirective.value)}}});function Ma(){const o=e.ref(!t.value);return!1===o.value&&e.onMounted(()=>{o.value=!0}),o}const Ta="undefined"!==typeof ResizeObserver,Ba=!0===Ta?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"};var Oa=be({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(t,{emit:o}){let n,a,l={width:-1,height:-1};function i(e){!0===e||0===t.debounce||"0"===t.debounce?r():n||(n=setTimeout(r,t.debounce))}function r(){if(n=void 0,a){const{offsetWidth:e,offsetHeight:t}=a;e===l.width&&t===l.height||(l={width:e,height:t},o("resize",l))}}const s=e.getCurrentInstance();if(Object.assign(s.proxy,{trigger:i}),!0===Ta){let t;return e.onMounted(()=>{e.nextTick(()=>{a=s.proxy.$el.parentNode,a&&(t=new ResizeObserver(i),t.observe(a),r())})}),e.onBeforeUnmount(()=>{clearTimeout(n),void 0!==t&&(void 0!==t.disconnect?t.disconnect():a&&t.unobserve(a))}),m}{const t=Ma();let o;function u(){clearTimeout(n),void 0!==o&&(void 0!==o.removeEventListener&&o.removeEventListener("resize",i,p.passive),o=void 0)}function c(){u(),a&&a.contentDocument&&(o=a.contentDocument.defaultView,o.addEventListener("resize",i,p.passive),r())}return e.onMounted(()=>{e.nextTick(()=>{a=s.proxy.$el,a&&c()})}),e.onBeforeUnmount(u),()=>{if(!0===t.value)return e.h("object",{style:Ba.style,tabindex:-1,type:"text/html",data:Ba.url,"aria-hidden":"true",onLoad:c})}}}});let Va=!1;{const e=document.createElement("div"),t=document.createElement("div");e.setAttribute("dir","rtl"),e.style.width="1px",e.style.height="1px",e.style.overflow="auto",t.style.width="1000px",t.style.height="1px",document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,Va=e.scrollLeft>=0,e.remove()}function za(e,t,o){const n=!0===o?["left","right"]:["top","bottom"];return`absolute-${!0===t?n[0]:n[1]}${e?` text-${e}`:""}`}const La=["left","center","right","justify"],Ea=()=>{};var Pa=be({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>La.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),{proxy:{$q:l}}=a,{registerTick:i,prepareTick:r}=$o(),{registerTimeout:s}=Mo(),u=e.ref(null),c=e.ref(null),d=e.ref(t.modelValue),v=e.ref(!1),p=e.ref(!0),f=e.ref(!1),h=e.ref(!1),g=e.computed(()=>!0===l.platform.is.desktop||!0===t.mobileArrows),b=[];let y,w,x,_=!1,S=!0===g.value?E:m;const C=e.computed(()=>({activeClass:t.activeClass,activeColor:t.activeColor,activeBgColor:t.activeBgColor,indicatorClass:za(t.indicatorColor,t.switchIndicator,t.vertical),narrowIndicator:t.narrowIndicator,inlineLabel:t.inlineLabel,noCaps:t.noCaps})),q=e.computed(()=>{const e=!0===v.value?"left":!0===h.value?"justify":t.align;return`q-tabs__content--align-${e}`}),k=e.computed(()=>"q-tabs row no-wrap items-center"+` q-tabs--${!0===v.value?"":"not-"}scrollable`+` q-tabs--${!0===t.vertical?"vertical":"horizontal"}`+` q-tabs__arrows--${!0===g.value&&!0===t.outsideArrows?"outside":"inside"}`+(!0===t.dense?" q-tabs--dense":"")+(!0===t.shrink?" col-shrink":"")+(!0===t.stretch?" self-stretch":"")),$=e.computed(()=>"q-tabs__content row no-wrap items-center self-stretch hide-scrollbar "+q.value+(void 0!==t.contentClass?` ${t.contentClass}`:"")+(!0===l.platform.is.mobile?" scroll":"")),M=e.computed(()=>!0===t.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),T=e.computed(()=>!0!==t.vertical&&!0===l.lang.rtl),B=e.computed(()=>!1===Va&&!0===T.value);function O({name:e,setCurrent:o,skipEmit:a,fromRoute:l}){d.value!==e&&(!0!==a&&n("update:modelValue",e),!0!==o&&void 0!==t["onUpdate:modelValue"]||(L(d.value,e),d.value=e)),void 0!==l&&(_=l)}function V(){i(()=>{!0!==a.isDeactivated&&!0!==a.isUnmounted&&z({width:u.value.offsetWidth,height:u.value.offsetHeight})}),r()}function z(o){if(void 0===M.value||null===c.value)return;const n=o[M.value.container],a=Math.min(c.value[M.value.scroll],Array.prototype.reduce.call(c.value.children,(e,t)=>e+t[M.value.content],0)),l=n>0&&a>n;v.value!==l&&(v.value=l),!0===l&&e.nextTick(S);const i=n<parseInt(t.breakpoint,10);h.value!==i&&(h.value=i)}function L(o,n){const a=void 0!==o&&null!==o&&""!==o?b.find(e=>e.name.value===o):null,l=void 0!==n&&null!==n&&""!==n?b.find(e=>e.name.value===n):null;if(a&&l){const o=a.tabIndicatorRef.value,n=l.tabIndicatorRef.value;clearTimeout(y),o.style.transition="none",o.style.transform="none",n.style.transition="none",n.style.transform="none";const i=o.getBoundingClientRect(),r=n.getBoundingClientRect();n.style.transform=!0===t.vertical?`translate3d(0,${i.top-r.top}px,0) scale3d(1,${r.height?i.height/r.height:1},1)`:`translate3d(${i.left-r.left}px,0,0) scale3d(${r.width?i.width/r.width:1},1,1)`,e.nextTick(()=>{y=setTimeout(()=>{n.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",n.style.transform="none"},70)})}if(l&&!0===v.value){const{left:e,width:o,top:n,height:a}=c.value.getBoundingClientRect(),i=l.rootRef.value.getBoundingClientRect();let r=!0===t.vertical?i.top-n:i.left-e;if(r<0)return c.value[!0===t.vertical?"scrollTop":"scrollLeft"]+=Math.floor(r),void S();r+=!0===t.vertical?i.height-a:i.width-o,r>0&&(c.value[!0===t.vertical?"scrollTop":"scrollLeft"]+=Math.ceil(r),S())}}function E(){const e=c.value;if(null!==e){const o=e.getBoundingClientRect(),n=!0===t.vertical?e.scrollTop:Math.abs(e.scrollLeft);!0===T.value?(p.value=Math.ceil(n+o.width)<e.scrollWidth-1,f.value=n>0):(p.value=n>0,f.value=!0===t.vertical?Math.ceil(n+o.height)<e.scrollHeight:Math.ceil(n+o.width)<e.scrollWidth)}}function P(e){R(),j(e),w=setInterval(()=>{!0===j(e)&&R()},5)}function A(){P(!0===B.value?9999:0)}function F(){P(!0===B.value?0:9999)}function R(){clearInterval(w)}e.watch(T,S),e.watch(()=>t.modelValue,e=>{O({name:e,setCurrent:!0,skipEmit:!0})}),e.watch(()=>t.outsideArrows,()=>{e.nextTick(V())}),e.watch(g,t=>{S=!0===t?E:m,e.nextTick(V())});const I=e.computed(()=>!0===B.value?{get:e=>Math.abs(e.scrollLeft),set:(e,t)=>{e.scrollLeft=-t}}:!0===t.vertical?{get:e=>e.scrollTop,set:(e,t)=>{e.scrollTop=t}}:{get:e=>e.scrollLeft,set:(e,t)=>{e.scrollLeft=t}});function j(e){const t=c.value,{get:o,set:n}=I.value;let a=!1,l=o(t);const i=e<l?-1:1;return l+=5*i,l<0?(a=!0,l=0):(-1===i&&l<=e||1===i&&l>=e)&&(a=!0,l=e),n(t,l),S(),a}function N(){return b.filter(e=>void 0!==e.routerProps&&!0===e.routerProps.hasLink.value)}function D(){let e=null,t=_;const o={matchedLen:0,hrefLen:0,exact:!1,found:!1},{hash:n}=a.proxy.$route,l=d.value;let i=!0===t?Ea:e=>{l===e.name.value&&(t=!0,i=Ea)};const r=N();for(const a of r){const t=!0===a.routerProps.exact.value;if(!0!==a.routerProps[!0===t?"linkIsExactActive":"linkIsActive"].value||!0===o.exact&&!0!==t){i(a);continue}const l=a.routerProps.linkRoute.value,r=l.hash;if(!0===t){if(n===r){e=a.name.value;break}if(""!==n&&""!==r){i(a);continue}}const s=l.matched.length,u=l.href.length-r.length;(s===o.matchedLen?u>o.hrefLen:s>o.matchedLen)?(e=a.name.value,Object.assign(o,{matchedLen:s,hrefLen:u,exact:t})):i(a)}!0!==t&&null===e||O({name:e,setCurrent:!0,fromRoute:!0})}function H(){!0!==W.avoidRouteWatcher&&s(D)}function Q(t){b.push(t);const o=N();o.length>0&&(void 0===x&&(x=e.watch(()=>a.proxy.$route,H)),H())}function U(e){if(b.splice(b.indexOf(e),1),void 0!==x){const e=N();0===e.length&&(x(),x=void 0),H()}}const W={currentModel:d,tabProps:C,registerTab:Q,unregisterTab:U,verifyRouteModel:H,updateModel:O,recalculateScroll:V,avoidRouteWatcher:!1};return e.provide(se,W),e.onBeforeUnmount(()=>{clearTimeout(y),void 0!==x&&x()}),e.onActivated(V),()=>{const n=[e.h(Oa,{onResize:z}),e.h("div",{ref:c,class:$.value,onScroll:S},Ie(o.default))];return!0===g.value&&n.push(e.h(ot,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(!0===p.value?"":" q-tabs__arrow--faded"),name:t.leftIcon||l.iconSet.tabs[!0===t.vertical?"up":"left"],onMousedown:A,onTouchstartPassive:A,onMouseup:R,onMouseleave:R,onTouchend:R}),e.h(ot,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(!0===f.value?"":" q-tabs__arrow--faded"),name:t.rightIcon||l.iconSet.tabs[!0===t.vertical?"down":"right"],onMousedown:F,onTouchstartPassive:F,onMouseup:R,onMouseleave:R,onTouchend:R})),e.h("div",{ref:u,class:k.value,role:"tablist"},n)}}});let Aa=0;const Fa=["click","keyup"],Ra={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${Aa++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function Ia(t,o,n,a){const l=e.inject(se,()=>{console.error("QTab/QRouteTab component needs to be child of QTabs")}),i=e.ref(null),r=e.ref(null),s=e.ref(null),u=e.computed(()=>!0!==t.disable&&t.ripple),c=e.computed(()=>l.currentModel.value===t.name),d=e.computed(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(!0===c.value?" q-tab--active"+(l.tabProps.value.activeClass?" "+l.tabProps.value.activeClass:"")+(l.tabProps.value.activeColor?` text-${l.tabProps.value.activeColor}`:"")+(l.tabProps.value.activeBgColor?` bg-${l.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(t.icon&&t.label&&!1===l.tabProps.value.inlineLabel?" q-tab--full":"")+(!0===t.noCaps||!0===l.tabProps.value.noCaps?" q-tab--no-caps":"")+(!0===t.disable?" disabled":" q-focusable q-hoverable cursor-pointer")+(void 0!==a&&""!==a.linkClass.value?` ${a.linkClass.value}`:"")),v=e.computed(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(!0===l.tabProps.value.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==t.contentClass?` ${t.contentClass}`:"")),p=e.computed(()=>!0===t.disable||!0===c.value?-1:t.tabindex||0);function m(e,o){if(!0!==o&&null!==i.value&&i.value.focus(),!0!==t.disable){let o;if(void 0!==a){if(!0!==a.hasLink.value)return void n("click",e);o=(()=>{e.__qNavigate=!0,l.avoidRouteWatcher=!0;const o=a.navigateToLink(e);!1===o?l.avoidRouteWatcher=!1:o.then(()=>{l.avoidRouteWatcher=!1,l.updateModel({name:t.name,fromRoute:!0})})})}else o=(()=>{l.updateModel({name:t.name,fromRoute:!1})});n("click",e,o),!0!==e.defaultPrevented&&o()}}function f(e){!0===W(e,13)&&m(e,!0),n("keyup",e)}function h(){const n=l.tabProps.value.narrowIndicator,a=[],r=e.h("div",{ref:s,class:["q-tab__indicator",l.tabProps.value.indicatorClass]});void 0!==t.icon&&a.push(e.h(ot,{class:"q-tab__icon",name:t.icon})),void 0!==t.label&&a.push(e.h("div",{class:"q-tab__label"},t.label)),!1!==t.alert&&a.push(void 0!==t.alertIcon?e.h(ot,{class:"q-tab__alert-icon",color:!0!==t.alert?t.alert:void 0,name:t.alertIcon}):e.h("div",{class:"q-tab__alert"+(!0!==t.alert?` text-${t.alert}`:"")})),!0===n&&a.push(r);const u=[e.h("div",{class:"q-focus-helper",tabindex:-1,ref:i}),e.h("div",{class:v.value},Ne(o.default,a))];return!1===n&&u.push(r),u}const g={name:e.computed(()=>t.name),rootRef:r,tabIndicatorRef:s,routerProps:a};function b(o,n){const a={ref:r,class:d.value,tabindex:p.value,role:"tab","aria-selected":c.value,"aria-disabled":!0===t.disable?"true":void 0,onClick:m,onKeyup:f,...n};return e.withDirectives(e.h(o,a,h()),[[Dt,u.value]])}return e.onBeforeUnmount(()=>{l.unregisterTab(g),l.recalculateScroll()}),e.onMounted(()=>{l.registerTab(g),l.recalculateScroll()}),{renderTab:b,$tabs:l}}var ja=be({name:"QTab",props:Ra,emits:Fa,setup(e,{slots:t,emit:o}){const{renderTab:n}=Ia(e,t,o);return()=>n("div")}}),Na=be({name:"QTabPanels",props:{...Rn,...it},emits:In,setup(t,{slots:o}){const n=e.getCurrentInstance(),a=rt(t,n.proxy.$q),{updatePanelsList:l,getPanelContent:i,panelDirectives:r}=jn(),s=e.computed(()=>"q-tab-panels q-panel-parent"+(!0===a.value?" q-tab-panels--dark q-dark":""));return()=>{return l(o),He("div",{class:s.value},i(),"pan",t.swipeable,()=>r.value)}}}),Da=be({name:"QTabPanel",props:An,setup(t,{slots:o}){return()=>e.h("div",{class:"q-tab-panel"},Ie(o.default))}});const Ha=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Qa=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Ua=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Wa=/^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])\)$/,Ya=/^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)\)$/,Ka={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),hexColor:e=>Ha.test(e),hexaColor:e=>Qa.test(e),hexOrHexaColor:e=>Ua.test(e),rgbColor:e=>Wa.test(e),rgbaColor:e=>Ya.test(e),rgbOrRgbaColor:e=>Wa.test(e)||Ya.test(e),hexOrRgbColor:e=>Ha.test(e)||Wa.test(e),hexaOrRgbaColor:e=>Qa.test(e)||Ya.test(e),anyColor:e=>Ua.test(e)||Wa.test(e)||Ya.test(e)};var Xa={testPattern:Ka};const Za=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function Ga({r:e,g:t,b:o,a:n}){const a=void 0!==n;if(e=Math.round(e),t=Math.round(t),o=Math.round(o),e>255||t>255||o>255||a&&n>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return n=a?(256|Math.round(255*n/100)).toString(16).slice(1):"","#"+(o|t<<8|e<<16|1<<24).toString(16).slice(1)+n}function Ja({r:e,g:t,b:o,a:n}){return`rgb${void 0!==n?"a":""}(${e},${t},${o}${void 0!==n?","+n/100:""})`}function el(e){if("string"!==typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function tl({h:e,s:t,v:o,a:n}){let a,l,i;t/=100,o/=100,e/=360;const r=Math.floor(6*e),s=6*e-r,u=o*(1-t),c=o*(1-s*t),d=o*(1-(1-s)*t);switch(r%6){case 0:a=o,l=d,i=u;break;case 1:a=c,l=o,i=u;break;case 2:a=u,l=o,i=d;break;case 3:a=u,l=c,i=o;break;case 4:a=d,l=u,i=o;break;case 5:a=o,l=u,i=c;break}return{r:Math.round(255*a),g:Math.round(255*l),b:Math.round(255*i),a:n}}function ol({r:e,g:t,b:o,a:n}){const a=Math.max(e,t,o),l=Math.min(e,t,o),i=a-l,r=0===a?0:i/a,s=a/255;let u;switch(a){case l:u=0;break;case e:u=t-o+i*(t<o?6:0),u/=6*i;break;case t:u=o-e+2*i,u/=6*i;break;case o:u=e-t+4*i,u/=6*i;break}return{h:Math.round(360*u),s:Math.round(100*r),v:Math.round(100*s),a:n}}function nl(e){if("string"!==typeof e)throw new TypeError("Expected a string");const t=e.replace(/ /g,""),o=Za.exec(t);if(null===o)return el(t);const n={r:Math.min(255,parseInt(o[2],10)),g:Math.min(255,parseInt(o[3],10)),b:Math.min(255,parseInt(o[4],10))};if(o[1]){const e=parseFloat(o[5]);n.a=100*Math.min(1,!0===isNaN(e)?1:e)}return n}function al(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if("number"!==typeof t)throw new TypeError("Expected a numeric percent");const o=nl(e),n=t<0?0:255,a=Math.abs(t)/100,l=o.r,i=o.g,r=o.b;return"#"+(16777216+65536*(Math.round((n-l)*a)+l)+256*(Math.round((n-i)*a)+i)+(Math.round((n-r)*a)+r)).toString(16).slice(1)}function ll(e){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b} object as color");const t="string"===typeof e?nl(e):e,o=t.r/255,n=t.g/255,a=t.b/255,l=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),i=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),r=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4);return.2126*l+.7152*i+.0722*r}function il(e){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b} object as color");const t="string"===typeof e?nl(e):e;return(299*t.r+587*t.g+114*t.b)/1e3}function rl(e,t){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b[, a]} object as fgColor");if("string"!==typeof t&&(!t||void 0===t.r))throw new TypeError("Expected a string or a {r, g, b[, a]} object as bgColor");const o="string"===typeof e?nl(e):e,n=o.r/255,a=o.g/255,l=o.b/255,i=void 0!==o.a?o.a/100:1,r="string"===typeof t?nl(t):t,s=r.r/255,u=r.g/255,c=r.b/255,d=void 0!==r.a?r.a/100:1,v=i+d*(1-i),p=Math.round((n*i+s*d*(1-i))/v*255),m=Math.round((a*i+u*d*(1-i))/v*255),f=Math.round((l*i+c*d*(1-i))/v*255),h={r:p,g:m,b:f,a:Math.round(100*v)};return"string"===typeof e?Ga(h):h}function sl(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if(void 0===t||t<-1||t>1)throw new TypeError("Expected offset to be between -1 and 1");const{r:o,g:n,b:a,a:l}=nl(e),i=void 0!==l?l/100:0;return Ga({r:o,g:n,b:a,a:Math.round(100*Math.min(1,Math.max(0,i+t)))})}function ul(e){if("string"!==typeof e)throw new TypeError("Expected a string as color");const t=document.createElement("div");t.className=`text-${e} invisible fixed no-pointer-events`,document.body.appendChild(t);const o=getComputedStyle(t).getPropertyValue("color");return t.remove(),Ga(nl(o))}var cl={rgbToHex:Ga,hexToRgb:el,hsvToRgb:tl,rgbToHsv:ol,textToRgb:nl,lighten:al,luminosity:ll,brightness:il,blend:rl,changeAlpha:sl,getPaletteColor:ul};const dl=["rgb(255,204,204)","rgb(255,230,204)","rgb(255,255,204)","rgb(204,255,204)","rgb(204,255,230)","rgb(204,255,255)","rgb(204,230,255)","rgb(204,204,255)","rgb(230,204,255)","rgb(255,204,255)","rgb(255,153,153)","rgb(255,204,153)","rgb(255,255,153)","rgb(153,255,153)","rgb(153,255,204)","rgb(153,255,255)","rgb(153,204,255)","rgb(153,153,255)","rgb(204,153,255)","rgb(255,153,255)","rgb(255,102,102)","rgb(255,179,102)","rgb(255,255,102)","rgb(102,255,102)","rgb(102,255,179)","rgb(102,255,255)","rgb(102,179,255)","rgb(102,102,255)","rgb(179,102,255)","rgb(255,102,255)","rgb(255,51,51)","rgb(255,153,51)","rgb(255,255,51)","rgb(51,255,51)","rgb(51,255,153)","rgb(51,255,255)","rgb(51,153,255)","rgb(51,51,255)","rgb(153,51,255)","rgb(255,51,255)","rgb(255,0,0)","rgb(255,128,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,128)","rgb(0,255,255)","rgb(0,128,255)","rgb(0,0,255)","rgb(128,0,255)","rgb(255,0,255)","rgb(245,0,0)","rgb(245,123,0)","rgb(245,245,0)","rgb(0,245,0)","rgb(0,245,123)","rgb(0,245,245)","rgb(0,123,245)","rgb(0,0,245)","rgb(123,0,245)","rgb(245,0,245)","rgb(214,0,0)","rgb(214,108,0)","rgb(214,214,0)","rgb(0,214,0)","rgb(0,214,108)","rgb(0,214,214)","rgb(0,108,214)","rgb(0,0,214)","rgb(108,0,214)","rgb(214,0,214)","rgb(163,0,0)","rgb(163,82,0)","rgb(163,163,0)","rgb(0,163,0)","rgb(0,163,82)","rgb(0,163,163)","rgb(0,82,163)","rgb(0,0,163)","rgb(82,0,163)","rgb(163,0,163)","rgb(92,0,0)","rgb(92,46,0)","rgb(92,92,0)","rgb(0,92,0)","rgb(0,92,46)","rgb(0,92,92)","rgb(0,46,92)","rgb(0,0,92)","rgb(46,0,92)","rgb(92,0,92)","rgb(255,255,255)","rgb(205,205,205)","rgb(178,178,178)","rgb(153,153,153)","rgb(127,127,127)","rgb(102,102,102)","rgb(76,76,76)","rgb(51,51,51)","rgb(25,25,25)","rgb(0,0,0)"],vl="M5 5 h10 v10 h-10 v-10 z";var pl=be({name:"QColor",props:{...it,..._n,modelValue:String,defaultValue:String,defaultView:{type:String,default:"spectrum",validator:e=>["spectrum","tune","palette"].includes(e)},formatModel:{type:String,default:"auto",validator:e=>["auto","hex","rgb","hexa","rgba"].includes(e)},palette:Array,noHeader:Boolean,noHeaderTabs:Boolean,noFooter:Boolean,square:Boolean,flat:Boolean,bordered:Boolean,disable:Boolean,readonly:Boolean},emits:["update:modelValue","change"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),{$q:a}=n,l=rt(t,a),{getCache:i}=Pn(),r=e.ref(null),s=e.ref(null),u=e.computed(()=>"auto"===t.formatModel?null:t.formatModel.indexOf("hex")>-1),c=e.computed(()=>"auto"===t.formatModel?null:t.formatModel.indexOf("a")>-1),d=e.ref("auto"===t.formatModel?void 0===t.modelValue||null===t.modelValue||""===t.modelValue||t.modelValue.startsWith("#")?"hex":"rgb":t.formatModel.startsWith("hex")?"hex":"rgb"),v=e.ref(t.defaultView),p=e.ref(B(t.modelValue||t.defaultValue)),m=e.computed(()=>!0!==t.disable&&!0!==t.readonly),f=e.computed(()=>void 0===t.modelValue||null===t.modelValue||""===t.modelValue||t.modelValue.startsWith("#")),h=e.computed(()=>null!==u.value?u.value:f.value),g=e.computed(()=>({type:"hidden",name:t.name,value:p.value[!0===h.value?"hex":"rgb"]})),b=Cn(g),y=e.computed(()=>null!==c.value?c.value:void 0!==p.value.a),w=e.computed(()=>({backgroundColor:p.value.rgb||"#000"})),x=e.computed(()=>{const e=void 0!==p.value.a&&p.value.a<65||ll(p.value)>.4;return"q-color-picker__header-content"+` q-color-picker__header-content--${e?"light":"dark"}`}),_=e.computed(()=>({background:`hsl(${p.value.h},100%,50%)`})),C=e.computed(()=>({top:`${100-p.value.v}%`,[!0===a.lang.rtl?"right":"left"]:`${p.value.s}%`})),q=e.computed(()=>void 0!==t.palette&&t.palette.length>0?t.palette:dl),k=e.computed(()=>"q-color-picker"+(!0===t.bordered?" q-color-picker--bordered":"")+(!0===t.square?" q-color-picker--square no-border-radius":"")+(!0===t.flat?" q-color-picker--flat no-shadow":"")+(!0===t.disable?" disabled":"")+(!0===l.value?" q-color-picker--dark q-dark":"")),$=e.computed(()=>{return!0===t.disable?{"aria-disabled":"true"}:!0===t.readonly?{"aria-readonly":"true"}:{}}),M=e.computed(()=>{return[[wa,P,void 0,{prevent:!0,stop:!0,mouse:!0}]]});function T(e,t){p.value.hex=Ga(e),p.value.rgb=Ja(e),p.value.r=e.r,p.value.g=e.g,p.value.b=e.b,p.value.a=e.a;const n=p.value[!0===h.value?"hex":"rgb"];o("update:modelValue",n),!0===t&&o("change",n)}function B(e){const o=void 0!==c.value?c.value:"auto"===t.formatModel?null:t.formatModel.indexOf("a")>-1;if("string"!==typeof e||0===e.length||!0!==Ka.anyColor(e.replace(/ /g,"")))return{h:0,s:0,v:0,r:0,g:0,b:0,a:!0===o?100:void 0,hex:void 0,rgb:void 0};const n=nl(e);return!0===o&&void 0===n.a&&(n.a=100),n.hex=Ga(n),n.rgb=Ja(n),Object.assign(n,ol(n))}function O(e,t,o){const n=r.value;if(null===n)return;const l=n.clientWidth,i=n.clientHeight,s=n.getBoundingClientRect();let u=Math.min(l,Math.max(0,e-s.left));!0===a.lang.rtl&&(u=l-u);const c=Math.min(i,Math.max(0,t-s.top)),d=Math.round(100*u/l),v=Math.round(100*Math.max(0,Math.min(1,-c/i+1))),m=tl({h:p.value.h,s:d,v:v,a:!0===y.value?p.value.a:void 0});p.value.s=d,p.value.v=v,T(m,o)}function V(e,t){const o=Math.round(e),n=tl({h:o,s:p.value.s,v:p.value.v,a:!0===y.value?p.value.a:void 0});p.value.h=o,T(n,t)}function z(t,o,a,l,i){if(void 0!==l&&S(l),!/^[0-9]+$/.test(t))return void(!0===i&&n.$forceUpdate());const r=Math.floor(Number(t));if(r<0||r>a)return void(!0===i&&n.$forceUpdate());const s={r:"r"===o?r:p.value.r,g:"g"===o?r:p.value.g,b:"b"===o?r:p.value.b,a:!0===y.value?"a"===o?r:p.value.a:void 0};if("a"!==o){const e=ol(s);p.value.h=e.h,p.value.s=e.s,p.value.v=e.v}if(T(s,i),void 0!==l&&!0!==i&&void 0!==l.target.selectionEnd){const t=l.target.selectionEnd;e.nextTick(()=>{l.target.setSelectionRange(t,t)})}}function L(t,o){let n;const a=t.target.value;if(S(t),"hex"===d.value){if(a.length!==(!0===y.value?9:7)||!/^#[0-9A-Fa-f]+$/.test(a))return!0;n=el(a)}else{let e;if(!a.endsWith(")"))return!0;if(!0!==y.value&&a.startsWith("rgb(")){if(e=a.substring(4,a.length-1).split(",").map(e=>parseInt(e,10)),3!==e.length||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(a))return!0}else{if(!0!==y.value||!a.startsWith("rgba("))return!0;{if(e=a.substring(5,a.length-1).split(","),4!==e.length||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(a))return!0;for(let o=0;o<3;o++){const t=parseInt(e[o],10);if(t<0||t>255)return!0;e[o]=t}const t=parseFloat(e[3]);if(t<0||t>1)return!0;e[3]=t}}if(e[0]<0||e[0]>255||e[1]<0||e[1]>255||e[2]<0||e[2]>255||!0===y.value&&(e[3]<0||e[3]>1))return!0;n={r:e[0],g:e[1],b:e[2],a:!0===y.value?100*e[3]:void 0}}const l=ol(n);if(p.value.h=l.h,p.value.s=l.s,p.value.v=l.v,T(n,o),!0!==o){const o=t.target.selectionEnd;e.nextTick(()=>{t.target.setSelectionRange(o,o)})}}function E(e){const t=B(e),o={r:t.r,g:t.g,b:t.b,a:t.a};void 0===o.a&&(o.a=p.value.a),p.value.h=t.h,p.value.s=t.s,p.value.v=t.v,T(o,!0)}function P(e){e.isFinal?O(e.position.left,e.position.top,!0):A(e)}e.watch(()=>t.modelValue,e=>{const o=B(e||t.defaultValue);o.hex!==p.value.hex&&(p.value=o)}),e.watch(()=>t.defaultValue,e=>{if(!t.modelValue&&e){const t=B(e);t.hex!==p.value.hex&&(p.value=t)}});const A=It(e=>{O(e.position.left,e.position.top)},20);function F(e){O(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset,!0)}function R(e){O(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset)}function I(e){null!==s.value&&(s.value.$el.style.opacity=e?1:0)}function j(){const o=[];return!0!==t.noHeaderTabs&&o.push(e.h(Pa,{class:"q-color-picker__header-tabs",modelValue:d.value,dense:!0,align:"justify",...i("topVTab",{"onUpdate:modelValue":e=>{d.value=e}})},()=>[e.h(ja,{label:"HEX"+(!0===y.value?"A":""),name:"hex",ripple:!1}),e.h(ja,{label:"RGB"+(!0===y.value?"A":""),name:"rgb",ripple:!1})])),o.push(e.h("div",{class:"q-color-picker__header-banner row flex-center no-wrap"},[e.h("input",{class:"fit",value:p.value[d.value],...!0!==m.value?{readonly:!0}:{},...i("topIn",{onInput:e=>{I(!0===L(e))},onChange:S,onBlur:e=>{!0===L(e,!0)&&n.$forceUpdate(),I(!1)}})}),e.h(ot,{ref:s,class:"q-color-picker__error-icon absolute no-pointer-events",name:a.iconSet.type.negative})])),e.h("div",{class:"q-color-picker__header relative-position overflow-hidden"},[e.h("div",{class:"q-color-picker__header-bg absolute-full"}),e.h("div",{class:x.value,style:w.value},o)])}function N(){return e.h(Na,{modelValue:v.value,animated:!0},()=>[e.h(Da,{class:"q-color-picker__spectrum-tab overflow-hidden",name:"spectrum"},H),e.h(Da,{class:"q-pa-md q-color-picker__tune-tab",name:"tune"},Q),e.h(Da,{class:"q-color-picker__palette-tab",name:"palette"},U)])}function D(){return e.h("div",{class:"q-color-picker__footer relative-position overflow-hidden"},[e.h(Pa,{class:"absolute-full",modelValue:v.value,dense:!0,align:"justify",...i("ftIn",{"onUpdate:modelValue":e=>{v.value=e}})},()=>[e.h(ja,{icon:a.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}),e.h(ja,{icon:a.iconSet.colorPicker.tune,name:"tune",ripple:!1}),e.h(ja,{icon:a.iconSet.colorPicker.palette,name:"palette",ripple:!1})])])}function H(){const t={ref:r,class:"q-color-picker__spectrum non-selectable relative-position cursor-pointer"+(!0!==m.value?" readonly":""),style:_.value,...!0===m.value?{onClick:F,onMousedown:R}:{}},o=[e.h("div",{style:{paddingBottom:"100%"}}),e.h("div",{class:"q-color-picker__spectrum-white absolute-full"}),e.h("div",{class:"q-color-picker__spectrum-black absolute-full"}),e.h("div",{class:"absolute",style:C.value},[void 0!==p.value.hex?e.h("div",{class:"q-color-picker__spectrum-circle"}):null])],n=[e.h("div",{class:"q-color-picker__hue non-selectable"},[e.h($a,{modelValue:p.value.h,min:0,max:360,fillHandleAlways:!0,readonly:!0!==m.value,thumbPath:vl,"onUpdate:modelValue":V,...i("lazyhue",{onChange:e=>V(e,!0)})})])];return!0===y.value&&n.push(e.h("div",{class:"q-color-picker__alpha non-selectable"},[e.h($a,{modelValue:p.value.a,min:0,max:100,fillHandleAlways:!0,readonly:!0!==m.value,thumbPath:vl,...i("alphaSlide",{"onUpdate:modelValue":e=>z(e,"a",100),onChange:e=>z(e,"a",100,void 0,!0)})})])),[He("div",t,o,"spec",m.value,()=>M.value),e.h("div",{class:"q-color-picker__sliders"},n)]}function Q(){return[e.h("div",{class:"row items-center no-wrap"},[e.h("div","R"),e.h($a,{modelValue:p.value.r,min:0,max:255,color:"red",dark:l.value,readonly:!0!==m.value,...i("rSlide",{"onUpdate:modelValue":e=>z(e,"r",255),onChange:e=>z(e,"r",255,void 0,!0)})}),e.h("input",{value:p.value.r,maxlength:3,readonly:!0!==m.value,onChange:S,...i("rIn",{onInput:e=>z(e.target.value,"r",255,e),onBlur:e=>z(e.target.value,"r",255,e,!0)})})]),e.h("div",{class:"row items-center no-wrap"},[e.h("div","G"),e.h($a,{modelValue:p.value.g,min:0,max:255,color:"green",dark:l.value,readonly:!0!==m.value,...i("gSlide",{"onUpdate:modelValue":e=>z(e,"g",255),onChange:e=>z(e,"g",255,void 0,!0)})}),e.h("input",{value:p.value.g,maxlength:3,readonly:!0!==m.value,onChange:S,...i("gIn",{onInput:e=>z(e.target.value,"g",255,e),onBlur:e=>z(e.target.value,"g",255,e,!0)})})]),e.h("div",{class:"row items-center no-wrap"},[e.h("div","B"),e.h($a,{modelValue:p.value.b,min:0,max:255,color:"blue",readonly:!0!==m.value,dark:l.value,...i("bSlide",{"onUpdate:modelValue":e=>z(e,"b",255),onChange:e=>z(e,"b",255,void 0,!0)})}),e.h("input",{value:p.value.b,maxlength:3,readonly:!0!==m.value,onChange:S,...i("bIn",{onInput:e=>z(e.target.value,"b",255,e),onBlur:e=>z(e.target.value,"b",255,e,!0)})})]),!0===y.value?e.h("div",{class:"row items-center no-wrap"},[e.h("div","A"),e.h($a,{modelValue:p.value.a,color:"grey",readonly:!0!==m.value,dark:l.value,...i("aSlide",{"onUpdate:modelValue":e=>z(e,"a",100),onChange:e=>z(e,"a",100,void 0,!0)})}),e.h("input",{value:p.value.a,maxlength:3,readonly:!0!==m.value,onChange:S,...i("aIn",{onInput:e=>z(e.target.value,"a",100,e),onBlur:e=>z(e.target.value,"a",100,e,!0)})})]):null]}function U(){const t=t=>e.h("div",{class:"q-color-picker__cube col-auto",style:{backgroundColor:t},...!0===m.value?i("palette#"+t,{onClick:()=>{E(t)}}):{}});return[e.h("div",{class:"row items-center q-color-picker__palette-rows"+(!0===m.value?" q-color-picker__palette-rows--editable":"")},q.value.map(t))]}return()=>{const o=[N()];return void 0!==t.name&&!0!==t.disable&&b(o,"push"),!0!==t.noHeader&&o.unshift(j()),!0!==t.noFooter&&o.push(D()),e.h("div",{class:k.value,...$.value},o)}}});const ml=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function fl(e,t,o){return"[object Date]"===Object.prototype.toString.call(e)&&(o=e.getDate(),t=e.getMonth()+1,e=e.getFullYear()),_l(Sl(e,t,o))}function hl(e,t,o){return Cl(xl(e,t,o))}function gl(e){return 0===yl(e)}function bl(e,t){return t<=6?31:t<=11?30:gl(e)?30:29}function yl(e){const t=ml.length;let o,n,a,l,i,r=ml[0];if(e<r||e>=ml[t-1])throw new Error("Invalid Jalaali year "+e);for(i=1;i<t;i+=1){if(o=ml[i],n=o-r,e<o)break;r=o}return l=e-r,n-l<6&&(l=l-n+33*ql(n+4,33)),a=kl(kl(l+1,33)-1,4),-1===a&&(a=4),a}function wl(e,t){const o=ml.length,n=e+621;let a,l,i,r,s,u=-14,c=ml[0];if(e<c||e>=ml[o-1])throw new Error("Invalid Jalaali year "+e);for(s=1;s<o;s+=1){if(a=ml[s],l=a-c,e<a)break;u=u+8*ql(l,33)+ql(kl(l,33),4),c=a}r=e-c,u=u+8*ql(r,33)+ql(kl(r,33)+3,4),4===kl(l,33)&&l-r===4&&(u+=1);const d=ql(n,4)-ql(3*(ql(n,100)+1),4)-150,v=20+u-d;return t||(l-r<6&&(r=r-l+33*ql(l+4,33)),i=kl(kl(r+1,33)-1,4),-1===i&&(i=4)),{leap:i,gy:n,march:v}}function xl(e,t,o){const n=wl(e,!0);return Sl(n.gy,3,n.march)+31*(t-1)-ql(t,7)*(t-7)+o-1}function _l(e){const t=Cl(e).gy;let o,n,a,l=t-621;const i=wl(l,!1),r=Sl(t,3,i.march);if(a=e-r,a>=0){if(a<=185)return n=1+ql(a,31),o=kl(a,31)+1,{jy:l,jm:n,jd:o};a-=186}else l-=1,a+=179,1===i.leap&&(a+=1);return n=7+ql(a,30),o=kl(a,30)+1,{jy:l,jm:n,jd:o}}function Sl(e,t,o){let n=ql(1461*(e+ql(t-8,6)+100100),4)+ql(153*kl(t+9,12)+2,5)+o-34840408;return n=n-ql(3*ql(e+100100+ql(t-8,6),100),4)+752,n}function Cl(e){let t=4*e+139361631;t=t+4*ql(3*ql(4*e+183187720,146097),4)-3908;const o=5*ql(kl(t,1461),4)+308,n=ql(kl(o,153),5)+1,a=kl(ql(o,153),12)+1,l=ql(t,1461)-100100+ql(8-a,6);return{gy:l,gm:a,gd:n}}function ql(e,t){return~~(e/t)}function kl(e,t){return e-~~(e/t)*t}const $l=["gregorian","persian"],Ml={modelValue:{required:!0},mask:{type:String},locale:Object,calendar:{type:String,validator:e=>$l.includes(e),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},Tl=["update:modelValue"];function Bl(e){return e.year+"/"+qe(e.month)+"/"+qe(e.day)}function Ol(t,o){const n=e.computed(()=>{return!0!==t.disable&&!0!==t.readonly}),a=e.computed(()=>{return!0===t.editable?0:-1}),l=e.computed(()=>{const e=[];return void 0!==t.color&&e.push(`bg-${t.color}`),void 0!==t.textColor&&e.push(`text-${t.textColor}`),e.join(" ")});function i(){return t.locale||o.lang.date}function r(e){const o=new Date,n=!0===e?null:0;if("persian"===t.calendar){const e=fl(o);return{year:e.jy,month:e.jm,day:e.jd}}return{year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate(),hour:n,minute:n,second:n,millisecond:n}}return{editable:n,tabindex:a,headerClass:l,getLocale:i,getCurrentDate:r}}const Vl=864e5,zl=36e5,Ll=6e4,El="YYYY-MM-DDTHH:mm:ss.SSSZ",Pl=/\[((?:[^\]\\]|\\]|\\)*)\]|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,Al=/(\[[^\]]*\])|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,Fl={};function Rl(e,t){const o="("+t.days.join("|")+")",n=e+o;if(void 0!==Fl[n])return Fl[n];const a="("+t.daysShort.join("|")+")",l="("+t.months.join("|")+")",i="("+t.monthsShort.join("|")+")",r={};let s=0;const u=e.replace(Al,e=>{switch(s++,e){case"YY":return r.YY=s,"(-?\\d{1,2})";case"YYYY":return r.YYYY=s,"(-?\\d{1,4})";case"M":return r.M=s,"(\\d{1,2})";case"MM":return r.M=s,"(\\d{2})";case"MMM":return r.MMM=s,i;case"MMMM":return r.MMMM=s,l;case"D":return r.D=s,"(\\d{1,2})";case"Do":return r.D=s++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return r.D=s,"(\\d{2})";case"H":return r.H=s,"(\\d{1,2})";case"HH":return r.H=s,"(\\d{2})";case"h":return r.h=s,"(\\d{1,2})";case"hh":return r.h=s,"(\\d{2})";case"m":return r.m=s,"(\\d{1,2})";case"mm":return r.m=s,"(\\d{2})";case"s":return r.s=s,"(\\d{1,2})";case"ss":return r.s=s,"(\\d{2})";case"S":return r.S=s,"(\\d{1})";case"SS":return r.S=s,"(\\d{2})";case"SSS":return r.S=s,"(\\d{3})";case"A":return r.A=s,"(AM|PM)";case"a":return r.a=s,"(am|pm)";case"aa":return r.aa=s,"(a\\.m\\.|p\\.m\\.)";case"ddd":return a;case"dddd":return o;case"Q":case"d":case"E":return"(\\d{1})";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"w":return"(\\d{1,2})";case"ww":return"(\\d{2})";case"Z":return r.Z=s,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return r.ZZ=s,"(Z|[+-]\\d{2}\\d{2})";case"X":return r.X=s,"(-?\\d+)";case"x":return r.x=s,"(-?\\d{4,})";default:return s--,"["===e[0]&&(e=e.substring(1,e.length-1)),e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),c={map:r,regex:new RegExp("^"+u)};return Fl[n]=c,c}function Il(e,t){return void 0!==e?e:void 0!==t?t.date:I.date}function jl(e,t=""){const o=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),l=n%60;return o+qe(a)+t+qe(l)}function Nl(e,t,o){let n=e.getFullYear(),a=e.getMonth(),l=e.getDate();return void 0!==t.years&&(n+=o*t.years),void 0!==t.months&&(a+=o*t.months),void 0!==t.days&&(l+=o*t.days),e.setDate(1),e.setMonth(2),e.setFullYear(n),e.setMonth(a),e.setDate(l),e}function Dl(e,t,o){const n=new Date(e),a=void 0!==t.years||void 0!==t.months||void 0!==t.days?Nl(n,t,o):n;return Object.keys(t).forEach(e=>{if("years"!==e&&"months"!==e&&"days"!==e){const n=_e(e);a[`set${n}`](a[`get${n}`]()+o*t[e])}}),a}function Hl(e,t,o){const n=void 0!==t.year?t.year:e[`get${o}FullYear`](),a=void 0!==t.month?t.month-1:e[`get${o}Month`](),l=new Date(n,a+1,0).getDate(),i=Math.min(l,void 0!==t.date?t.date:e[`get${o}Date`]());return e[`set${o}Date`](1),e[`set${o}Month`](2),e[`set${o}FullYear`](n),e[`set${o}Month`](a),e[`set${o}Date`](i),e}function Ql(e,t,o){const n=!0===o?"UTC":"",a=new Date(e),l=void 0!==t.year||void 0!==t.month||void 0!==t.date?Hl(a,t,n):a;return Object.keys(t).forEach(e=>{if("year"!==e&&"month"!==e&&"date"!==e){const o=e.charAt(0).toUpperCase()+e.slice(1);l[`set${n}${o}`](t[e])}}),l}function Ul(e,t,o){const n=Wl(e,t,o),a=new Date(n.year,null===n.month?null:n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond),l=a.getTimezoneOffset();return null===n.timezoneOffset||n.timezoneOffset===l?a:Dl(a,{minutes:n.timezoneOffset-l},1)}function Wl(e,t,o,n,a){const l={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(void 0!==a&&Object.assign(l,a),void 0===e||null===e||""===e||"string"!==typeof e)return l;void 0===t&&(t=El);const i=Il(o,N.props),r=i.months,s=i.monthsShort,{regex:u,map:c}=Rl(t,i),d=e.match(u);if(null===d)return l;let v="";if(void 0!==c.X||void 0!==c.x){const e=parseInt(d[void 0!==c.X?c.X:c.x],10);if(!0===isNaN(e)||e<0)return l;const t=new Date(e*(void 0!==c.X?1e3:1));l.year=t.getFullYear(),l.month=t.getMonth()+1,l.day=t.getDate(),l.hour=t.getHours(),l.minute=t.getMinutes(),l.second=t.getSeconds(),l.millisecond=t.getMilliseconds()}else{if(void 0!==c.YYYY)l.year=parseInt(d[c.YYYY],10);else if(void 0!==c.YY){const e=parseInt(d[c.YY],10);l.year=e<0?e:2e3+e}if(void 0!==c.M){if(l.month=parseInt(d[c.M],10),l.month<1||l.month>12)return l}else void 0!==c.MMM?l.month=s.indexOf(d[c.MMM])+1:void 0!==c.MMMM&&(l.month=r.indexOf(d[c.MMMM])+1);if(void 0!==c.D){if(l.day=parseInt(d[c.D],10),null===l.year||null===l.month||l.day<1)return l;const e="persian"!==n?new Date(l.year,l.month,0).getDate():bl(l.year,l.month);if(l.day>e)return l}void 0!==c.H?l.hour=parseInt(d[c.H],10)%24:void 0!==c.h&&(l.hour=parseInt(d[c.h],10)%12,(c.A&&"PM"===d[c.A]||c.a&&"pm"===d[c.a]||c.aa&&"p.m."===d[c.aa])&&(l.hour+=12),l.hour=l.hour%24),void 0!==c.m&&(l.minute=parseInt(d[c.m],10)%60),void 0!==c.s&&(l.second=parseInt(d[c.s],10)%60),void 0!==c.S&&(l.millisecond=parseInt(d[c.S],10)*10**(3-d[c.S].length)),void 0===c.Z&&void 0===c.ZZ||(v=void 0!==c.Z?d[c.Z].replace(":",""):d[c.ZZ],l.timezoneOffset=("+"===v[0]?-1:1)*(60*v.slice(1,3)+1*v.slice(3,5)))}return l.dateHash=qe(l.year,6)+"/"+qe(l.month)+"/"+qe(l.day),l.timeHash=qe(l.hour)+":"+qe(l.minute)+":"+qe(l.second)+v,l}function Yl(e){return"number"===typeof e||!1===isNaN(Date.parse(e))}function Kl(e,t){return Ql(new Date,e,t)}function Xl(e){const t=new Date(e).getDay();return 0===t?7:t}function Zl(e){const t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);const o=new Date(t.getFullYear(),0,4);o.setDate(o.getDate()-(o.getDay()+6)%7+3);const n=t.getTimezoneOffset()-o.getTimezoneOffset();t.setHours(t.getHours()-n);const a=(t-o)/(7*Vl);return 1+Math.floor(a)}function Gl(e){return 1e4*e.getFullYear()+100*e.getMonth()+e.getDate()}function Jl(e,t){const o=new Date(e);return!0===t?Gl(o):o.getTime()}function ei(e,t,o,n={}){const a=Jl(t,n.onlyDate),l=Jl(o,n.onlyDate),i=Jl(e,n.onlyDate);return(i>a||!0===n.inclusiveFrom&&i===a)&&(i<l||!0===n.inclusiveTo&&i===l)}function ti(e,t){return Dl(e,t,1)}function oi(e,t){return Dl(e,t,-1)}function ni(e,t,o){const n=new Date(e),a=`set${!0===o?"UTC":""}`;switch(t){case"year":n[`${a}Month`](0);case"month":n[`${a}Date`](1);case"day":n[`${a}Hours`](0);case"hour":n[`${a}Minutes`](0);case"minute":n[`${a}Seconds`](0);case"second":n[`${a}Milliseconds`](0)}return n}function ai(e,t,o){const n=new Date(e),a=`set${!0===o?"UTC":""}`;switch(t){case"year":n[`${a}Month`](11);case"month":n[`${a}Date`](pi(n));case"day":n[`${a}Hours`](23);case"hour":n[`${a}Minutes`](59);case"minute":n[`${a}Seconds`](59);case"second":n[`${a}Milliseconds`](999)}return n}function li(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(e=>{t=Math.max(t,new Date(e))}),t}function ii(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(e=>{t=Math.min(t,new Date(e))}),t}function ri(e,t,o){return(e.getTime()-e.getTimezoneOffset()*Ll-(t.getTime()-t.getTimezoneOffset()*Ll))/o}function si(e,t,o="days"){const n=new Date(e),a=new Date(t);switch(o){case"years":return n.getFullYear()-a.getFullYear();case"months":return 12*(n.getFullYear()-a.getFullYear())+n.getMonth()-a.getMonth();case"days":return ri(ni(n,"day"),ni(a,"day"),Vl);case"hours":return ri(ni(n,"hour"),ni(a,"hour"),zl);case"minutes":return ri(ni(n,"minute"),ni(a,"minute"),Ll);case"seconds":return ri(ni(n,"second"),ni(a,"second"),1e3)}}function ui(e){return si(e,ni(e,"year"),"days")+1}function ci(e){return!0===Kn(e)?"date":"number"===typeof e?"number":"string"}function di(e,t,o){const n=new Date(e);if(t){const e=new Date(t);if(n<e)return e}if(o){const e=new Date(o);if(n>e)return e}return n}function vi(e,t,o){const n=new Date(e),a=new Date(t);if(void 0===o)return n.getTime()===a.getTime();switch(o){case"second":if(n.getSeconds()!==a.getSeconds())return!1;case"minute":if(n.getMinutes()!==a.getMinutes())return!1;case"hour":if(n.getHours()!==a.getHours())return!1;case"day":if(n.getDate()!==a.getDate())return!1;case"month":if(n.getMonth()!==a.getMonth())return!1;case"year":if(n.getFullYear()!==a.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${o}`)}return!0}function pi(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function mi(e){if(e>=11&&e<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`}return`${e}th`}const fi={YY(e,t,o){const n=this.YYYY(e,t,o)%100;return n>0?qe(n):"-"+qe(Math.abs(n))},YYYY(e,t,o){return void 0!==o&&null!==o?o:e.getFullYear()},M(e){return e.getMonth()+1},MM(e){return qe(e.getMonth()+1)},MMM(e,t){return t.monthsShort[e.getMonth()]},MMMM(e,t){return t.months[e.getMonth()]},Q(e){return Math.ceil((e.getMonth()+1)/3)},Qo(e){return mi(this.Q(e))},D(e){return e.getDate()},Do(e){return mi(e.getDate())},DD(e){return qe(e.getDate())},DDD(e){return ui(e)},DDDD(e){return qe(ui(e),3)},d(e){return e.getDay()},dd(e,t){return this.dddd(e,t).slice(0,2)},ddd(e,t){return t.daysShort[e.getDay()]},dddd(e,t){return t.days[e.getDay()]},E(e){return e.getDay()||7},w(e){return Zl(e)},ww(e){return qe(Zl(e))},H(e){return e.getHours()},HH(e){return qe(e.getHours())},h(e){const t=e.getHours();return 0===t?12:t>12?t%12:t},hh(e){return qe(this.h(e))},m(e){return e.getMinutes()},mm(e){return qe(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return qe(e.getSeconds())},S(e){return Math.floor(e.getMilliseconds()/100)},SS(e){return qe(Math.floor(e.getMilliseconds()/10))},SSS(e){return qe(e.getMilliseconds(),3)},A(e){return this.H(e)<12?"AM":"PM"},a(e){return this.H(e)<12?"am":"pm"},aa(e){return this.H(e)<12?"a.m.":"p.m."},Z(e,t,o,n){const a=void 0===n||null===n?e.getTimezoneOffset():n;return jl(a,":")},ZZ(e,t,o,n){const a=void 0===n||null===n?e.getTimezoneOffset():n;return jl(a)},X(e){return Math.floor(e.getTime()/1e3)},x(e){return e.getTime()}};function hi(e,t,o,n,a){if(0!==e&&!e||e===1/0||e===-1/0)return;const l=new Date(e);if(isNaN(l))return;void 0===t&&(t=El);const i=Il(o,N.props);return t.replace(Pl,(e,t)=>e in fi?fi[e](l,i,n,a):void 0===t?e:t.split("\\]").join("]"))}function gi(e){return!0===Kn(e)?new Date(e.getTime()):e}var bi={isValid:Yl,extractDate:Ul,buildDate:Kl,getDayOfWeek:Xl,getWeekOfYear:Zl,isBetweenDates:ei,addToDate:ti,subtractFromDate:oi,adjustDate:Ql,startOfDate:ni,endOfDate:ai,getMaxDate:li,getMinDate:ii,getDateDiff:si,getDayOfYear:ui,inferDateFormat:ci,getDateBetween:di,isSameDate:vi,daysInMonth:pi,formatDate:hi,clone:gi};const yi=20,wi=["Calendar","Years","Months"],xi=e=>wi.includes(e),_i=e=>/^-?[\d]+\/[0-1]\d$/.test(e),Si=" — ";function Ci(e){return e.year+"/"+qe(e.month)}var qi=be({name:"QDate",props:{...Ml,..._n,...it,multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:_i},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:_i},navigationMaxYearMonth:{type:String,validator:_i},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:xi}},emits:[...Tl,"range-start","range-end","navigation"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=rt(t,l),{getCache:r}=Pn(),{tabindex:s,headerClass:u,getLocale:c,getCurrentDate:d}=Ol(t,l);let v;const p=Sn(t),m=Cn(p),f=e.ref(null),h=e.ref(de()),g=e.ref(c()),b=e.computed(()=>de()),y=e.computed(()=>c()),w=e.computed(()=>d()),x=e.ref(pe(h.value,g.value)),_=e.ref(t.defaultView),S=!0===l.lang.rtl?"right":"left",C=e.ref(S.value),q=e.ref(S.value),k=x.value.year,$=e.ref(k-k%yi-(k<0?yi:0)),M=e.ref(null),T=e.computed(()=>{const e=!0===t.landscape?"landscape":"portrait";return`q-date q-date--${e} q-date--${e}-${!0===t.minimal?"minimal":"standard"}`+(!0===i.value?" q-date--dark q-dark":"")+(!0===t.bordered?" q-date--bordered":"")+(!0===t.square?" q-date--square no-border-radius":"")+(!0===t.flat?" q-date--flat no-shadow":"")+(!0===t.disable?" disabled":!0===t.readonly?" q-date--readonly":"")}),B=e.computed(()=>{return t.color||"primary"}),O=e.computed(()=>{return t.textColor||"white"}),V=e.computed(()=>!0===t.emitImmediately&&!0!==t.multiple&&!0!==t.range),z=e.computed(()=>!0===Array.isArray(t.modelValue)?t.modelValue:null!==t.modelValue&&void 0!==t.modelValue?[t.modelValue]:[]),L=e.computed(()=>z.value.filter(e=>"string"===typeof e).map(e=>ve(e,h.value,g.value)).filter(e=>null!==e.dateHash)),E=e.computed(()=>{const e=e=>ve(e,h.value,g.value);return z.value.filter(e=>Object(e)===e&&void 0!==e.from&&void 0!==e.to).map(t=>({from:e(t.from),to:e(t.to)})).filter(e=>null!==e.from.dateHash&&null!==e.to.dateHash&&e.from.dateHash<e.to.dateHash)}),P=e.computed(()=>"persian"!==t.calendar?e=>new Date(e.year,e.month-1,e.day):e=>{const t=hl(e.year,e.month,e.day);return new Date(t.gy,t.gm-1,t.gd)}),A=e.computed(()=>"persian"===t.calendar?Bl:(e,t,o)=>hi(new Date(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond),void 0===t?h.value:t,void 0===o?g.value:o,e.year,e.timezoneOffset)),F=e.computed(()=>L.value.length+E.value.reduce((e,t)=>e+1+si(P.value(t.to),P.value(t.from)),0)),R=e.computed(()=>{if(void 0!==t.title&&null!==t.title&&t.title.length>0)return t.title;if(null!==M.value){const e=M.value.init,t=P.value(e);return g.value.daysShort[t.getDay()]+", "+g.value.monthsShort[e.month-1]+" "+e.day+Si+"?"}if(0===F.value)return Si;if(F.value>1)return`${F.value} ${g.value.pluralDay}`;const e=L.value[0],o=P.value(e);return!0===isNaN(o.valueOf())?Si:void 0!==g.value.headerTitle?g.value.headerTitle(o,e):g.value.daysShort[o.getDay()]+", "+g.value.monthsShort[e.month-1]+" "+e.day}),I=e.computed(()=>{const e=L.value.concat(E.value.map(e=>e.from)).sort((e,t)=>e.year-t.year||e.month-t.month);return e[0]}),j=e.computed(()=>{const e=L.value.concat(E.value.map(e=>e.to)).sort((e,t)=>t.year-e.year||t.month-e.month);return e[0]}),N=e.computed(()=>{if(void 0!==t.subtitle&&null!==t.subtitle&&t.subtitle.length>0)return t.subtitle;if(0===F.value)return Si;if(F.value>1){const e=I.value,t=j.value,o=g.value.monthsShort;return o[e.month-1]+(e.year!==t.year?" "+e.year+Si+o[t.month-1]+" ":e.month!==t.month?Si+o[t.month-1]:"")+" "+t.year}return L.value[0].year}),D=e.computed(()=>{const e=[l.iconSet.datetime.arrowLeft,l.iconSet.datetime.arrowRight];return!0===l.lang.rtl?e.reverse():e}),H=e.computed(()=>void 0!==t.firstDayOfWeek?Number(t.firstDayOfWeek):g.value.firstDayOfWeek),Q=e.computed(()=>{const e=g.value.daysShort,t=H.value;return t>0?e.slice(t,7).concat(e.slice(0,t)):e}),U=e.computed(()=>{const e=x.value;return"persian"!==t.calendar?new Date(e.year,e.month,0).getDate():bl(e.year,e.month)}),W=e.computed(()=>"function"===typeof t.eventColor?t.eventColor:()=>t.eventColor),Y=e.computed(()=>{if(void 0===t.navigationMinYearMonth)return null;const e=t.navigationMinYearMonth.split("/");return{year:parseInt(e[0],10),month:parseInt(e[1],10)}}),K=e.computed(()=>{if(void 0===t.navigationMaxYearMonth)return null;const e=t.navigationMaxYearMonth.split("/");return{year:parseInt(e[0],10),month:parseInt(e[1],10)}}),X=e.computed(()=>{const e={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return null!==Y.value&&Y.value.year>=x.value.year&&(e.year.prev=!1,Y.value.year===x.value.year&&Y.value.month>=x.value.month&&(e.month.prev=!1)),null!==K.value&&K.value.year<=x.value.year&&(e.year.next=!1,K.value.year===x.value.year&&K.value.month<=x.value.month&&(e.month.next=!1)),e}),Z=e.computed(()=>{const e={};return L.value.forEach(t=>{const o=Ci(t);void 0===e[o]&&(e[o]=[]),e[o].push(t.day)}),e}),G=e.computed(()=>{const e={};return E.value.forEach(t=>{const o=Ci(t.from),n=Ci(t.to);if(void 0===e[o]&&(e[o]=[]),e[o].push({from:t.from.day,to:o===n?t.to.day:void 0,range:t}),o<n){let o;const{year:a,month:l}=t.from,i=l<12?{year:a,month:l+1}:{year:a+1,month:1};while((o=Ci(i))<=n)void 0===e[o]&&(e[o]=[]),e[o].push({from:void 0,to:o===n?t.to.day:void 0,range:t}),i.month++,i.month>12&&(i.year++,i.month=1)}}),e}),J=e.computed(()=>{if(null===M.value)return;const{init:e,initHash:t,final:o,finalHash:n}=M.value,[a,l]=t<=n?[e,o]:[o,e],i=Ci(a),r=Ci(l);if(i!==ee.value&&r!==ee.value)return;const s={};return i===ee.value?(s.from=a.day,s.includeFrom=!0):s.from=1,r===ee.value?(s.to=l.day,s.includeTo=!0):s.to=U.value,s}),ee=e.computed(()=>Ci(x.value)),te=e.computed(()=>{const e={};if(void 0===t.options){for(let t=1;t<=U.value;t++)e[t]=!0;return e}const o="function"===typeof t.options?t.options:e=>t.options.includes(e);for(let t=1;t<=U.value;t++){const n=ee.value+"/"+qe(t);e[t]=o(n)}return e}),oe=e.computed(()=>{const e={};if(void 0===t.events)for(let t=1;t<=U.value;t++)e[t]=!1;else{const o="function"===typeof t.events?t.events:e=>t.events.includes(e);for(let t=1;t<=U.value;t++){const n=ee.value+"/"+qe(t);e[t]=!0===o(n)&&W.value(n)}}return e}),ne=e.computed(()=>{let e,o;const{year:n,month:a}=x.value;if("persian"!==t.calendar)e=new Date(n,a-1,1),o=new Date(n,a-1,0).getDate();else{const t=hl(n,a,1);e=new Date(t.gy,t.gm-1,t.gd);let l=a-1,i=n;0===l&&(l=12,i--),o=bl(i,l)}return{days:e.getDay()-H.value-1,endDay:o}}),ae=e.computed(()=>{const e=[],{days:t,endDay:o}=ne.value,n=t<0?t+7:t;if(n<6)for(let i=o-n;i<=o;i++)e.push({i:i,fill:!0});const a=e.length;for(let i=1;i<=U.value;i++){const t={i:i,event:oe.value[i],classes:[]};!0===te.value[i]&&(t.in=!0,t.flat=!0),e.push(t)}if(void 0!==Z.value[ee.value]&&Z.value[ee.value].forEach(t=>{const o=a+t-1;Object.assign(e[o],{selected:!0,unelevated:!0,flat:!1,color:B.value,textColor:O.value})}),void 0!==G.value[ee.value]&&G.value[ee.value].forEach(t=>{if(void 0!==t.from){const o=a+t.from-1,n=a+(t.to||U.value)-1;for(let a=o;a<=n;a++)Object.assign(e[a],{range:t.range,unelevated:!0,color:B.value,textColor:O.value});Object.assign(e[o],{rangeFrom:!0,flat:!1}),void 0!==t.to&&Object.assign(e[n],{rangeTo:!0,flat:!1})}else if(void 0!==t.to){const o=a+t.to-1;for(let n=a;n<=o;n++)Object.assign(e[n],{range:t.range,unelevated:!0,color:B.value,textColor:O.value});Object.assign(e[o],{flat:!1,rangeTo:!0})}else{const o=a+U.value-1;for(let n=a;n<=o;n++)Object.assign(e[n],{range:t.range,unelevated:!0,color:B.value,textColor:O.value})}}),void 0!==J.value){const t=a+J.value.from-1,o=a+J.value.to-1;for(let n=t;n<=o;n++)e[n].color=B.value,e[n].editRange=!0;!0===J.value.includeFrom&&(e[t].editRangeFrom=!0),!0===J.value.includeTo&&(e[o].editRangeTo=!0)}x.value.year===w.value.year&&x.value.month===w.value.month&&(e[a+w.value.day-1].today=!0);const l=e.length%7;if(l>0){const t=7-l;for(let o=1;o<=t;o++)e.push({i:o,fill:!0})}return e.forEach(e=>{let t="q-date__calendar-item ";!0===e.fill?t+="q-date__calendar-item--fill":(t+=`q-date__calendar-item--${!0===e.in?"in":"out"}`,void 0!==e.range&&(t+=` q-date__range${!0===e.rangeTo?"-to":!0===e.rangeFrom?"-from":""}`),!0===e.editRange&&(t+=` q-date__edit-range${!0===e.editRangeFrom?"-from":""}${!0===e.editRangeTo?"-to":""}`),void 0===e.range&&!0!==e.editRange||(t+=` text-${e.color}`)),e.classes=t}),e}),le=e.computed(()=>!0===t.disable?{"aria-disabled":"true"}:!0===t.readonly?{"aria-readonly":"true"}:{});function ie(){const e=w.value,t=Z.value[Ci(e)];void 0!==t&&!1!==t.includes(e.day)||$e(e),ue(e.year,e.month)}function re(e){!0===xi(e)&&(_.value=e)}function se(e,t){if(["month","year"].includes(e)){const o="month"===e?fe:he;o(!0===t?-1:1)}}function ue(e,t){_.value="Calendar",xe(e,t)}function ce(e,o){if(!1===t.range||!e)return void(M.value=null);const n=Object.assign({...x.value},e),a=void 0!==o?Object.assign({...x.value},o):n;M.value={init:n,initHash:Bl(n),final:a,finalHash:Bl(a)},ue(n.year,n.month)}function de(){return"persian"===t.calendar?"YYYY/MM/DD":t.mask}function ve(e,o,n){return Wl(e,o,n,t.calendar,{hour:0,minute:0,second:0,millisecond:0})}function pe(e,o){const n=!0===Array.isArray(t.modelValue)?t.modelValue:t.modelValue?[t.modelValue]:[];if(0===n.length)return me();const a=n[n.length-1],l=ve(void 0!==a.from?a.from:a,e,o);return null===l.dateHash?me():l}function me(){let e,o;if(void 0!==t.defaultYearMonth){const n=t.defaultYearMonth.split("/");e=parseInt(n[0],10),o=parseInt(n[1],10)}else{const t=void 0!==w.value?w.value:d();e=t.year,o=t.month}return{year:e,month:o,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:e+"/"+qe(o)+"/01"}}function fe(e){let t=x.value.year,o=Number(x.value.month)+e;13===o?(o=1,t++):0===o&&(o=12,t--),xe(t,o),!0===V.value&&Se("month")}function he(e){const t=Number(x.value.year)+e;xe(t,x.value.month),!0===V.value&&Se("year")}function ge(e){xe(e,x.value.month),_.value="Years"===t.defaultView?"Months":"Calendar",!0===V.value&&Se("year")}function be(e){xe(x.value.year,e),_.value="Calendar",!0===V.value&&Se("month")}function ye(e,t){const o=Z.value[t],n=void 0!==o&&!0===o.includes(e.day)?Me:$e;n(e)}function we(e){return{year:e.year,month:e.month,day:e.day}}function xe(t,o){null!==Y.value&&t<=Y.value.year&&(t=Y.value.year,o<Y.value.month&&(o=Y.value.month)),null!==K.value&&t>=K.value.year&&(t=K.value.year,o>K.value.month&&(o=K.value.month));const n=t+"/"+qe(o)+"/01";n!==x.value.dateHash&&(C.value=x.value.dateHash<n===(!0!==l.lang.rtl)?"left":"right",t!==x.value.year&&(q.value=C.value),e.nextTick(()=>{$.value=t-t%yi-(t<0?yi:0),Object.assign(x.value,{year:t,month:o,day:1,dateHash:n})}))}function _e(e,o,a){const l=null!==e&&1===e.length&&!1===t.multiple?e[0]:e;v=l;const{reason:i,details:r}=Ce(o,a);n("update:modelValue",l,i,r)}function Se(o){const a=void 0!==L.value[0]&&null!==L.value[0].dateHash?{...L.value[0]}:{...x.value};e.nextTick(()=>{a.year=x.value.year,a.month=x.value.month;const e="persian"!==t.calendar?new Date(a.year,a.month,0).getDate():bl(a.year,a.month);a.day=Math.min(Math.max(1,a.day),e);const l=ke(a);v=l;const{details:i}=Ce("",a);n("update:modelValue",l,o,i)})}function Ce(e,t){return void 0!==t.from?{reason:`${e}-range`,details:{...we(t.target),from:we(t.from),to:we(t.to)}}:{reason:`${e}-day`,details:we(t)}}function ke(e,t,o){return void 0!==e.from?{from:A.value(e.from,t,o),to:A.value(e.to,t,o)}:A.value(e,t,o)}function $e(e){let o;if(!0===t.multiple)if(void 0!==e.from){const t=Bl(e.from),n=Bl(e.to),a=L.value.filter(e=>e.dateHash<t||e.dateHash>n),l=E.value.filter(({from:e,to:o})=>o.dateHash<t||e.dateHash>n);o=a.concat(l).concat(e).map(e=>ke(e))}else{const t=z.value.slice();t.push(ke(e)),o=t}else o=ke(e);_e(o,"add",e)}function Me(e){if(!0===t.noUnset)return;let o=null;if(!0===t.multiple&&!0===Array.isArray(t.modelValue)){const n=ke(e);o=void 0!==e.from?t.modelValue.filter(e=>void 0===e.from||e.from!==n.from&&e.to!==n.to):t.modelValue.filter(e=>e!==n),0===o.length&&(o=null)}_e(o,"remove",e)}function Te(e,o,a){const l=L.value.concat(E.value).map(t=>ke(t,e,o)).filter(e=>{return void 0!==e.from?null!==e.from.dateHash&&null!==e.to.dateHash:null!==e.dateHash});n("update:modelValue",(!0===t.multiple?l:l[0])||null,a)}function Be(){if(!0!==t.minimal)return e.h("div",{class:"q-date__header "+u.value},[e.h("div",{class:"relative-position"},[e.h(e.Transition,{name:"q-transition--fade"},()=>e.h("div",{key:"h-yr-"+N.value,class:"q-date__header-subtitle q-date__header-link "+("Years"===_.value?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...r("vY",{onClick(){_.value="Years"},onKeyup(e){13===e.keyCode&&(_.value="Years")}})},[N.value]))]),e.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[e.h("div",{class:"relative-position col"},[e.h(e.Transition,{name:"q-transition--fade"},()=>e.h("div",{key:"h-sub"+R.value,class:"q-date__header-title-label q-date__header-link "+("Calendar"===_.value?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...r("vC",{onClick(){_.value="Calendar"},onKeyup(e){13===e.keyCode&&(_.value="Calendar")}})},[R.value]))]),!0===t.todayBtn?e.h(Gt,{class:"q-date__header-today self-start",icon:l.iconSet.datetime.today,flat:!0,size:"sm",round:!0,tabindex:s.value,onClick:ie}):null])])}function Oe({label:t,type:o,key:n,dir:a,goTo:l,boundaries:i,cls:u}){return[e.h("div",{class:"row items-center q-date__arrow"},[e.h(Gt,{round:!0,dense:!0,size:"sm",flat:!0,icon:D.value[0],tabindex:s.value,disable:!1===i.prev,...r("go-#"+o,{onClick(){l(-1)}})})]),e.h("div",{class:"relative-position overflow-hidden flex flex-center"+u},[e.h(e.Transition,{name:"q-transition--jump-"+a},()=>e.h("div",{key:n},[e.h(Gt,{flat:!0,dense:!0,noCaps:!0,label:t,tabindex:s.value,...r("view#"+o,{onClick:()=>{_.value=o}})})]))]),e.h("div",{class:"row items-center q-date__arrow"},[e.h(Gt,{round:!0,dense:!0,size:"sm",flat:!0,icon:D.value[1],tabindex:s.value,disable:!1===i.next,...r("go+#"+o,{onClick(){l(1)}})})])]}e.watch(()=>t.modelValue,e=>{if(v===e)v=0;else{const{year:e,month:t}=pe(h.value,g.value);xe(e,t)}}),e.watch(_,()=>{null!==f.value&&f.value.focus()}),e.watch(()=>x.value.year,e=>{n("navigation",{year:e,month:x.value.month})}),e.watch(()=>x.value.month,e=>{n("navigation",{year:x.value.year,month:e})}),e.watch(b,e=>{Te(e,g.value,"mask"),h.value=e}),e.watch(y,e=>{Te(h.value,e,"locale"),g.value=e}),Object.assign(a,{setToday:ie,setView:re,offsetCalendar:se,setCalendarTo:ue,setEditingRange:ce});const Ve={Calendar:()=>[e.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[e.h("div",{class:"q-date__navigation row items-center no-wrap"},Oe({label:g.value.months[x.value.month-1],type:"Months",key:x.value.month,dir:C.value,goTo:fe,boundaries:X.value.month,cls:" col"}).concat(Oe({label:x.value.year,type:"Years",key:x.value.year,dir:q.value,goTo:he,boundaries:X.value.year,cls:""}))),e.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},Q.value.map(t=>e.h("div",{class:"q-date__calendar-item"},[e.h("div",t)]))),e.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[e.h(e.Transition,{name:"q-transition--slide-"+C.value},()=>e.h("div",{key:ee.value,class:"q-date__calendar-days fit"},ae.value.map(t=>e.h("div",{class:t.classes},[!0===t.in?e.h(Gt,{class:!0===t.today?"q-date__today":"",dense:!0,flat:t.flat,unelevated:t.unelevated,color:t.color,textColor:t.textColor,label:t.i,tabindex:s.value,...r("day#"+t.i,{onClick:()=>{ze(t.i)},onMouseover:()=>{Le(t.i)}})},!1!==t.event?()=>e.h("div",{class:"q-date__event bg-"+t.event}):null):e.h("div",""+t.i)]))))])])],Months(){const o=x.value.year===w.value.year,n=e=>{return null!==Y.value&&x.value.year===Y.value.year&&Y.value.month>e||null!==K.value&&x.value.year===K.value.year&&K.value.month<e},a=g.value.monthsShort.map((t,a)=>{const l=x.value.month===a+1;return e.h("div",{class:"q-date__months-item flex flex-center"},[e.h(Gt,{class:!0===o&&w.value.month===a+1?"q-date__today":null,flat:!0!==l,label:t,unelevated:l,color:!0===l?B.value:null,textColor:!0===l?O.value:null,tabindex:s.value,disable:n(a+1),...r("month#"+a,{onClick:()=>{be(a+1)}})})])});return!0===t.yearsInMonthView&&a.unshift(e.h("div",{class:"row no-wrap full-width"},[Oe({label:x.value.year,type:"Years",key:x.value.year,dir:q.value,goTo:he,boundaries:X.value.year,cls:" col"})])),e.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},a)},Years(){const t=$.value,o=t+yi,n=[],a=e=>{return null!==Y.value&&Y.value.year>e||null!==K.value&&K.value.year<e};for(let l=t;l<=o;l++){const t=x.value.year===l;n.push(e.h("div",{class:"q-date__years-item flex flex-center"},[e.h(Gt,{key:"yr"+l,class:w.value.year===l?"q-date__today":null,flat:!t,label:l,dense:!0,unelevated:t,color:!0===t?B.value:null,textColor:!0===t?O.value:null,tabindex:s.value,disable:a(l),...r("yr#"+l,{onClick:()=>{ge(l)}})})]))}return e.h("div",{class:"q-date__view q-date__years flex flex-center"},[e.h("div",{class:"col-auto"},[e.h(Gt,{round:!0,dense:!0,flat:!0,icon:D.value[0],tabindex:s.value,disable:a(t),...r("y-",{onClick:()=>{$.value-=yi}})})]),e.h("div",{class:"q-date__years-content col self-stretch row items-center"},n),e.h("div",{class:"col-auto"},[e.h(Gt,{round:!0,dense:!0,flat:!0,icon:D.value[1],tabindex:s.value,disable:a(o),...r("y+",{onClick:()=>{$.value+=yi}})})])])}};function ze(e){const o={...x.value,day:e};if(!1!==t.range)if(null===M.value){const a=ae.value.find(t=>!0!==t.fill&&t.i===e);if(!0!==t.noUnset&&void 0!==a.range)return void Me({target:o,from:a.range.from,to:a.range.to});if(!0===a.selected)return void Me(o);const l=Bl(o);M.value={init:o,initHash:l,final:o,finalHash:l},n("range-start",we(o))}else{const e=M.value.initHash,t=Bl(o),a=e<=t?{from:M.value.init,to:o}:{from:o,to:M.value.init};M.value=null,$e(e===t?o:{target:o,...a}),n("range-end",{from:we(a.from),to:we(a.to)})}else ye(o,ee.value)}function Le(e){if(null!==M.value){const t={...x.value,day:e};Object.assign(M.value,{final:t,finalHash:Bl(t)})}}return()=>{const n=[e.h("div",{class:"q-date__content col relative-position"},[e.h(e.Transition,{name:"q-transition--fade"},Ve[_.value])])],a=Ie(o.default);return void 0!==a&&n.push(e.h("div",{class:"q-date__actions"},a)),void 0!==t.name&&!0!==t.disable&&m(n,"push"),e.h("div",{class:T.value,...le.value},[Be(),e.h("div",{ref:f,class:"q-date__main col column",tabindex:-1},n)])}}});function ki(t,o,n){let a;function l(){void 0!==a&&(R.remove(a),a=void 0)}return e.onBeforeUnmount(()=>{!0===t.value&&l()}),{removeFromHistory:l,addToHistory(){a={condition:()=>!0===n.value,handler:o},R.add(a)}}}let $i,Mi,Ti,Bi,Oi,Vi,zi=0,Li=!1;function Ei(e){Pi(e)&&q(e)}function Pi(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=y(e),o=e.shiftKey&&!e.deltaX,n=!o&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=o||n?e.deltaY:e.deltaX;for(let l=0;l<t.length;l++){const e=t[l];if(Do(e,n))return n?a<0&&0===e.scrollTop||a>0&&e.scrollTop+e.clientHeight===e.scrollHeight:a<0&&0===e.scrollLeft||a>0&&e.scrollLeft+e.clientWidth===e.scrollWidth}return!0}function Ai(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Fi(e){!0!==Li&&(Li=!0,requestAnimationFrame(()=>{Li=!1;const{height:t}=e.target,{clientHeight:o,scrollTop:n}=document.scrollingElement;void 0!==Ti&&t===window.innerHeight||(Ti=o-t,document.scrollingElement.scrollTop=n),n>Ti&&(document.scrollingElement.scrollTop-=Math.ceil((n-Ti)/8))}))}function Ri(e){const t=document.body,o=void 0!==window.visualViewport;if("add"===e){const{overflowY:e,overflowX:n}=window.getComputedStyle(t);$i=Lo(window),Mi=zo(window),Bi=t.style.left,Oi=t.style.top,t.style.left=`-${$i}px`,t.style.top=`-${Mi}px`,"hidden"!==n&&("scroll"===n||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),"hidden"!==e&&("scroll"===e||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===c.is.ios&&(!0===o?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Fi,p.passiveCapture),window.visualViewport.addEventListener("scroll",Fi,p.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Ai,p.passiveCapture))}!0===c.is.desktop&&!0===c.is.mac&&window[`${e}EventListener`]("wheel",Ei,p.notPassive),"remove"===e&&(!0===c.is.ios&&(!0===o?(window.visualViewport.removeEventListener("resize",Fi,p.passiveCapture),window.visualViewport.removeEventListener("scroll",Fi,p.passiveCapture)):window.removeEventListener("scroll",Ai,p.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=Bi,t.style.top=Oi,window.scrollTo($i,Mi),Ti=void 0)}function Ii(e){let t="add";if(!0===e){if(zi++,void 0!==Vi)return clearTimeout(Vi),void(Vi=void 0);if(zi>1)return}else{if(0===zi)return;if(zi--,zi>0)return;if(t="remove",!0===c.is.ios&&!0===c.is.nativeMobile)return clearTimeout(Vi),void(Vi=setTimeout(()=>{Ri(t),Vi=void 0},100))}Ri(t)}function ji(){let e;return{preventBodyScroll(t){t===e||void 0===e&&!0!==t||(e=t,Ii(t))}}}let Ni=0;const Di={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"},Hi={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]};var Qi=be({name:"QDialog",inheritAttrs:!1,props:{...ao,...qo,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:e=>"standard"===e||["top","bottom","left","right"].includes(e)}},emits:[...lo,"shake","click","escape-key"],setup(t,{slots:o,emit:n,attrs:a}){const l=e.getCurrentInstance(),i=e.ref(null),r=e.ref(!1),s=e.ref(!1),u=e.ref(!1);let c,d,v,p=null;const m=e.computed(()=>!0!==t.persistent&&!0!==t.noRouteDismiss&&!0!==t.seamless),{preventBodyScroll:f}=ji(),{registerTimeout:h,removeTimeout:g}=Mo(),{registerTick:b,removeTick:y,prepareTick:w}=$o(),{showPortal:x,hidePortal:_,portalIsActive:S,renderPortal:C}=Co(l,i,U,!0),{hide:q}=io({showing:r,hideOnRouteChange:m,handleShow:P,handleHide:A,processOnMount:!0}),{addToHistory:k,removeFromHistory:$}=ki(r,q,m),M=e.computed(()=>"q-dialog__inner flex no-pointer-events"+` q-dialog__inner--${!0===t.maximized?"maximized":"minimized"}`+` q-dialog__inner--${t.position} ${Di[t.position]}`+(!0===u.value?" q-dialog__inner--animating":"")+(!0===t.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===t.fullHeight?" q-dialog__inner--fullheight":"")+(!0===t.square?" q-dialog__inner--square":"")),T=e.computed(()=>"q-transition--"+(void 0===t.transitionShow?Hi[t.position][0]:t.transitionShow)),B=e.computed(()=>"q-transition--"+(void 0===t.transitionHide?Hi[t.position][1]:t.transitionHide)),O=e.computed(()=>!0===s.value?B.value:T.value),V=e.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`),z=e.computed(()=>!0===r.value&&!0!==t.seamless),L=e.computed(()=>!0===t.autoClose?{onClick:D}:{}),E=e.computed(()=>["q-dialog fullscreen no-pointer-events "+`q-dialog--${!0===z.value?"modal":"seamless"}`,a.class]);function P(e){g(),y(),k(),p=!1===t.noRefocus&&null!==document.activeElement?document.activeElement:null,N(t.maximized),x(),u.value=!0,!0!==t.noFocus&&(null!==document.activeElement&&document.activeElement.blur(),b(F),w()),h(()=>{if(!0===l.proxy.$q.platform.is.ios){if(!0!==t.seamless&&document.activeElement){const{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:o}=window,n=void 0!==window.visualViewport?window.visualViewport.height:o;e>0&&t>n/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-n,t>=o?1/0:Math.ceil(document.scrollingElement.scrollTop+t-n/2))),document.activeElement.scrollIntoView()}v=!0,i.value.click(),v=!1}x(!0),u.value=!1,n("show",e)},t.transitionDuration)}function A(e){g(),y(),$(),j(!0),u.value=!0,null!==p&&p.focus(),h(()=>{_(),u.value=!1,n("hide",e)},t.transitionDuration)}function F(){vo(()=>{let e=i.value;null!==e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus], [data-autofocus]")||e,e.focus())})}function R(){F(),n("shake");const e=i.value;null!==e&&(e.classList.remove("q-animate--scale"),e.classList.add("q-animate--scale"),clearTimeout(c),c=setTimeout(()=>{null!==i.value&&(e.classList.remove("q-animate--scale"),F())},170))}function I(){!0!==t.seamless&&(!0===t.persistent||!0===t.noEscDismiss?!0!==t.maximized&&!0!==t.noShake&&R():(n("escape-key"),q()))}function j(e){clearTimeout(c),!0!==e&&!0!==r.value||(N(!1),!0!==t.seamless&&(f(!1),on(Q),Go(I)))}function N(e){!0===e?!0!==d&&(Ni<1&&document.body.classList.add("q-body--dialog"),Ni++,d=!0):!0===d&&(Ni<2&&document.body.classList.remove("q-body--dialog"),Ni--,d=!1)}function D(e){!0!==v&&(q(e),n("click",e))}function H(e){!0!==t.persistent&&!0!==t.noBackdropDismiss?q(e):!0!==t.noShake&&R()}function Q(e){!0===r.value&&!0===S.value&&!0!==Ft(i.value,e.target)&&F()}function U(){return e.h("div",{...a,class:E.value},[e.h(e.Transition,{name:"q-transition--fade",appear:!0},()=>!0===z.value?e.h("div",{class:"q-dialog__backdrop fixed-full",style:V.value,"aria-hidden":"true",onMousedown:H}):null),e.h(e.Transition,{name:O.value,appear:!0},()=>!0===r.value?e.h("div",{ref:i,class:M.value,style:V.value,tabindex:-1,...L.value},Ie(o.default)):null)])}return e.watch(r,t=>{e.nextTick(()=>{s.value=t})}),e.watch(()=>t.maximized,e=>{!0===r.value&&N(e)}),e.watch(z,e=>{f(e),!0===e?(tn(Q),Zo(I)):(on(Q),Go(I))}),Object.assign(l.proxy,{focus:F,shake:R,__updateRefocusTarget(e){p=e||null}}),e.onBeforeUnmount(()=>{j()}),C}});const Ui=150;var Wi=be({name:"QDrawer",inheritAttrs:!1,props:{...ao,...it,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...lo,"on-layout","mini-state"],setup(t,{slots:o,emit:n,attrs:a}){const l=e.getCurrentInstance(),{proxy:{$q:i}}=l,r=rt(t,i),{preventBodyScroll:s}=ji(),{registerTimeout:u}=Mo(),c=e.inject(ae,()=>{console.error("QDrawer needs to be child of QLayout")});let d,v,p;const m=e.ref("mobile"===t.behavior||"desktop"!==t.behavior&&c.totalWidth.value<=t.breakpoint),f=e.computed(()=>!0===t.mini&&!0!==m.value),h=e.computed(()=>!0===f.value?t.miniWidth:t.width),g=e.ref(!0===t.showIfAbove&&!1===m.value||!0===t.modelValue),b=e.computed(()=>!0!==t.persistent&&(!0===m.value||!0===P.value));function y(e,t){if(S(),!1!==e&&c.animate(),Y(0),!0===m.value){const e=c.instances[V.value];void 0!==e&&!0===e.belowBreakpoint&&e.hide(!1),X(1),!0!==c.isContainer.value&&s(!0)}else X(0),!1!==e&&Z(!1);u(()=>{!1!==e&&Z(!0),!0!==t&&n("show",e)},Ui)}function w(e,t){C(),!1!==e&&c.animate(),X(0),Y($.value*h.value),te(),!0!==t&&u(()=>{n("hide",e)},Ui)}const{show:x,hide:_}=io({showing:g,hideOnRouteChange:b,handleShow:y,handleHide:w}),{addToHistory:S,removeFromHistory:C}=ki(g,_,b),q={belowBreakpoint:m,hide:_},k=e.computed(()=>"right"===t.side),$=e.computed(()=>(!0===i.lang.rtl?-1:1)*(!0===k.value?1:-1)),M=e.ref(0),T=e.ref(!1),B=e.ref(!1),O=e.ref(h.value*$.value),V=e.computed(()=>!0===k.value?"left":"right"),z=e.computed(()=>!0===g.value&&!1===m.value&&!1===t.overlay?!0===t.miniToOverlay?t.miniWidth:h.value:0),L=e.computed(()=>!0===t.overlay||!0===t.miniToOverlay||c.view.value.indexOf(k.value?"R":"L")>-1||!0===i.platform.is.ios&&!0===c.isContainer.value),E=e.computed(()=>!1===t.overlay&&!0===g.value&&!1===m.value),P=e.computed(()=>!0===t.overlay&&!0===g.value&&!1===m.value),A=e.computed(()=>"fullscreen q-drawer__backdrop"+(!1===g.value&&!1===T.value?" hidden":"")),F=e.computed(()=>({backgroundColor:`rgba(0,0,0,${.4*M.value})`})),R=e.computed(()=>!0===k.value?"r"===c.rows.value.top[2]:"l"===c.rows.value.top[0]),I=e.computed(()=>!0===k.value?"r"===c.rows.value.bottom[2]:"l"===c.rows.value.bottom[0]),j=e.computed(()=>{const e={};return!0===c.header.space&&!1===R.value&&(!0===L.value?e.top=`${c.header.offset}px`:!0===c.header.space&&(e.top=`${c.header.size}px`)),!0===c.footer.space&&!1===I.value&&(!0===L.value?e.bottom=`${c.footer.offset}px`:!0===c.footer.space&&(e.bottom=`${c.footer.size}px`)),e}),N=e.computed(()=>{const e={width:`${h.value}px`,transform:`translateX(${O.value}px)`};return!0===m.value?e:Object.assign(e,j.value)}),D=e.computed(()=>"q-drawer__content fit "+(!0!==c.isContainer.value?"scroll":"overflow-auto")),H=e.computed(()=>`q-drawer q-drawer--${t.side}`+(!0===B.value?" q-drawer--mini-animate":"")+(!0===t.bordered?" q-drawer--bordered":"")+(!0===r.value?" q-drawer--dark q-dark":"")+(!0===T.value?" no-transition":!0===g.value?"":" q-layout--prevent-focus")+(!0===m.value?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${!0===f.value?"mini":"standard"}`+(!0===L.value||!0!==E.value?" fixed":"")+(!0===t.overlay||!0===t.miniToOverlay?" q-drawer--on-top":"")+(!0===R.value?" q-drawer--top-padding":""))),Q=e.computed(()=>{const e=!0===i.lang.rtl?t.side:V.value;return[[wa,J,void 0,{[e]:!0,mouse:!0}]]}),U=e.computed(()=>{const e=!0===i.lang.rtl?V.value:t.side;return[[wa,ee,void 0,{[e]:!0,mouse:!0}]]}),W=e.computed(()=>{const e=!0===i.lang.rtl?V.value:t.side;return[[wa,ee,void 0,{[e]:!0,mouse:!0,mouseAllDir:!0}]]});function Y(t){void 0===t?e.nextTick(()=>{t=!0===g.value?0:h.value,Y($.value*t)}):(!0!==c.isContainer.value||!0!==k.value||!0!==m.value&&Math.abs(t)!==h.value||(t+=$.value*c.scrollbarWidth.value),O.value=t)}function K(){ne(m,"mobile"===t.behavior||"desktop"!==t.behavior&&c.totalWidth.value<=t.breakpoint)}function X(e){M.value=e}function Z(e){const t=!0===e?"remove":!0!==c.isContainer.value?"add":"";""!==t&&document.body.classList[t]("q-body--drawer-toggle")}function G(){clearTimeout(v),l.proxy&&l.proxy.$el&&l.proxy.$el.classList.add("q-drawer--mini-animate"),B.value=!0,v=setTimeout(()=>{B.value=!1,l&&l.proxy&&l.proxy.$el&&l.proxy.$el.classList.remove("q-drawer--mini-animate")},150)}function J(e){if(!1!==g.value)return;const t=h.value,o=Se(e.distance.x,0,t);if(!0===e.isFinal){const e=o>=Math.min(75,t);return!0===e?x():(c.animate(),X(0),Y($.value*t)),void(T.value=!1)}Y((!0===i.lang.rtl?!0!==k.value:k.value)?Math.max(t-o,0):Math.min(0,o-t)),X(Se(o/t,0,1)),!0===e.isFirst&&(T.value=!0)}function ee(e){if(!0!==g.value)return;const o=h.value,n=e.direction===t.side,a=(!0===i.lang.rtl?!0!==n:n)?Se(e.distance.x,0,o):0;if(!0===e.isFinal){const e=Math.abs(a)<Math.min(75,o);return!0===e?(c.animate(),X(1),Y(0)):_(),void(T.value=!1)}Y($.value*a),X(Se(1-a/o,0,1)),!0===e.isFirst&&(T.value=!0)}function te(){s(!1),Z(!0)}function oe(e,o){c.update(t.side,e,o)}function ne(e,t){e.value!==t&&(e.value=t)}function le(e,o){oe("size",!0===e?t.miniWidth:o)}return e.watch(m,e=>{!0===e?(d=g.value,!0===g.value&&_(!1)):!1===t.overlay&&"mobile"!==t.behavior&&!1!==d&&(!0===g.value?(Y(0),X(0),te()):x(!1))}),e.watch(c.totalWidth,e=>{ne(m,"mobile"===t.behavior||"desktop"!==t.behavior&&e<=t.breakpoint)}),e.watch(()=>t.side,(e,t)=>{c.instances[t]===q&&(c.instances[t]=void 0,c[t].space=!1,c[t].offset=0),c.instances[e]=q,c[e].size=h.value,c[e].space=E.value,c[e].offset=z.value}),e.watch(()=>t.behavior+t.breakpoint,K),e.watch(c.isContainer,e=>{!0===g.value&&s(!0!==e)}),e.watch(c.scrollbarWidth,()=>{Y(!0===g.value?0:void 0)}),e.watch(z,e=>{oe("offset",e)}),e.watch(E,e=>{n("on-layout",e),oe("space",e)}),e.watch(k,()=>{Y()}),e.watch(h,e=>{Y(),le(t.miniToOverlay,e)}),e.watch(()=>t.miniToOverlay,e=>{le(e,h.value)}),e.watch(()=>i.lang.rtl,()=>{Y()}),e.watch(()=>t.mini,()=>{!0===t.modelValue&&(G(),c.animate())}),e.watch(f,e=>{n("mini-state",e)}),c.instances[t.side]=q,le(t.miniToOverlay,h.value),oe("space",E.value),oe("offset",z.value),!0===t.showIfAbove&&!0!==t.modelValue&&!0===g.value&&void 0!==t["onUpdate:modelValue"]&&n("update:modelValue",!0),e.onMounted(()=>{n("on-layout",E.value),n("mini-state",f.value),d=!0===t.showIfAbove;const o=()=>{const e=!0===g.value?y:w;e(!1,!0)};0===c.totalWidth.value?p=e.watch(c.totalWidth,()=>{p(),p=void 0,!1===g.value&&!0===t.showIfAbove&&!1===m.value?x(!1):o()}):e.nextTick(o)}),e.onBeforeUnmount(()=>{void 0!==p&&p(),clearTimeout(v),!0===g.value&&te(),c.instances[t.side]===q&&(c.instances[t.side]=void 0,oe("size",0),oe("offset",0),oe("space",!1))}),()=>{const n=[];!0===m.value&&(!1===t.noSwipeOpen&&n.push(e.withDirectives(e.h("div",{key:"open",class:`q-drawer__opener fixed-${t.side}`,"aria-hidden":"true"}),Q.value)),n.push(He("div",{ref:"backdrop",class:A.value,style:F.value,"aria-hidden":"true",onClick:_},void 0,"backdrop",!0!==t.noSwipeBackdrop&&!0===g.value,()=>W.value)));const l=!0===f.value&&void 0!==o.mini,i=[e.h("div",{...a,key:""+l,class:[D.value,a.class]},!0===l?o.mini():Ie(o.default))];return!0===t.elevated&&!0===g.value&&i.push(e.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push(He("aside",{ref:"content",class:H.value,style:N.value},i,"contentclose",!0!==t.noSwipeClose&&!0===m.value,()=>U.value)),e.h("div",{class:"q-drawer-container"},n)}}});function Yi(e,t){if(t&&e===t)return null;const o=e.nodeName.toLowerCase();if(!0===["div","li","ul","ol","blockquote"].includes(o))return e;const n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,a=n.display;return"block"===a||"table"===a?e:Yi(e.parentNode)}function Ki(e,t,o){return!(!e||e===document.body)&&(!0===o&&e===t||(t===document?document.body:t).contains(e.parentNode))}function Xi(e,t,o){if(o||(o=document.createRange(),o.selectNode(e),o.setStart(e,0)),0===t.count)o.setEnd(e,t.count);else if(t.count>0)if(e.nodeType===Node.TEXT_NODE)e.textContent.length<t.count?t.count-=e.textContent.length:(o.setEnd(e,t.count),t.count=0);else for(let n=0;0!==t.count&&n<e.childNodes.length;n++)o=Xi(e.childNodes[n],t,o);return o}const Zi=/^https?:\/\//;class Gi{constructor(e,t){this.el=e,this.eVm=t,this._range=null}get selection(){if(this.el){const e=document.getSelection();if(Ki(e.anchorNode,this.el,!0)&&Ki(e.focusNode,this.el,!0))return e}return null}get hasSelection(){return null!==this.selection&&this.selection.toString().length>0}get range(){const e=this.selection;return null!==e&&e.rangeCount?e.getRangeAt(0):this._range}get parent(){const e=this.range;if(null!==e){const t=e.startContainer;return t.nodeType===document.ELEMENT_NODE?t:t.parentNode}return null}get blockParent(){const e=this.parent;return null!==e?Yi(e,this.el):null}save(e=this.range){null!==e&&(this._range=e)}restore(e=this._range){const t=document.createRange(),o=document.getSelection();null!==e?(t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),o.removeAllRanges(),o.addRange(t)):(o.selectAllChildren(this.el),o.collapseToEnd())}savePosition(){let e,t=-1;const o=document.getSelection(),n=this.el.parentNode;if(o.focusNode&&Ki(o.focusNode,n)){e=o.focusNode,t=o.focusOffset;while(e&&e!==n)e!==this.el&&e.previousSibling?(e=e.previousSibling,t+=e.textContent.length):e=e.parentNode}this.savedPos=t}restorePosition(e=0){if(this.savedPos>0&&this.savedPos<e){const e=window.getSelection(),t=Xi(this.el,{count:this.savedPos});t&&(t.collapse(!1),e.removeAllRanges(),e.addRange(t))}}hasParent(e,t){const o=t?this.parent:this.blockParent;return null!==o&&o.nodeName.toLowerCase()===e.toLowerCase()}hasParents(e,t,o=this.parent){return null!==o&&(null!==o&&!0===e.includes(o.nodeName.toLowerCase())||!0===t&&this.hasParents(e,t,o.parentNode))}is(e,t){if(null===this.selection)return!1;switch(e){case"formatBlock":return"DIV"===t&&this.parent===this.el||this.hasParent(t,"PRE"===t);case"link":return this.hasParent("A",!0);case"fontSize":return document.queryCommandValue(e)===t;case"fontName":const o=document.queryCommandValue(e);return o===`"${t}"`||o===t;case"fullscreen":return this.eVm.inFullscreen.value;case"viewsource":return this.eVm.isViewingSource.value;case void 0:return!1;default:const n=document.queryCommandState(e);return void 0!==t?n===t:n}}getParentAttribute(e){return null!==this.parent?this.parent.getAttribute(e):null}can(e){return"outdent"===e?this.hasParents(["blockquote","li"],!0):"indent"===e?this.hasParents(["li"],!0):"link"===e?null!==this.selection||this.is("link"):void 0}apply(e,t,o=m){if("formatBlock"===e)["BLOCKQUOTE","H1","H2","H3","H4","H5","H6"].includes(t)&&this.is(e,t)&&(e="outdent",t=null),"PRE"===t&&this.is(e,"PRE")&&(t="P");else{if("print"===e){o();const e=window.open();return e.document.write(`\n <!doctype html>\n <html>\n <head>\n <title>Print - ${document.title}</title>\n </head>\n <body>\n <div>${this.el.innerHTML}</div>\n </body>\n </html>\n `),e.print(),void e.close()}if("link"===e){const e=this.getParentAttribute("href");if(null===e){const e=this.selectWord(this.selection),t=e?e.toString():"";if(!t.length&&(!this.range||!this.range.cloneContents().querySelector("img")))return;this.eVm.editLinkUrl.value=Zi.test(t)?t:"https://",document.execCommand("createLink",!1,this.eVm.editLinkUrl.value),this.save(e.getRangeAt(0))}else this.eVm.editLinkUrl.value=e,this.range.selectNodeContents(this.parent),this.save();return}if("fullscreen"===e)return this.eVm.toggleFullscreen(),void o();if("viewsource"===e)return this.eVm.isViewingSource.value=!1===this.eVm.isViewingSource.value,this.eVm.setContent(this.eVm.props.modelValue),void o()}document.execCommand(e,!1,t),o()}selectWord(e){if(null===e||!0!==e.isCollapsed||void 0===e.modify)return e;const t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);const o=t.collapsed?["backward","forward"]:["forward","backward"];t.detach();const n=e.focusNode,a=e.focusOffset;return e.collapse(e.anchorNode,e.anchorOffset),e.modify("move",o[0],"character"),e.modify("move",o[1],"word"),e.extend(n,a),e.modify("extend",o[1],"character"),e.modify("extend",o[0],"word"),e}}var Ji=be({name:"QTooltip",inheritAttrs:!1,props:{...to,...ao,...qo,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:vn},self:{type:String,default:"top middle",validator:vn},offset:{type:Array,default:()=>[14,14],validator:pn},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},emits:[...lo],setup(t,{slots:o,emit:n,attrs:a}){let l,i;const r=e.getCurrentInstance(),{proxy:{$q:s}}=r,u=e.ref(null),c=e.ref(!1),d=e.computed(()=>fn(t.anchor,s.lang.rtl)),v=e.computed(()=>fn(t.self,s.lang.rtl)),p=e.computed(()=>!0!==t.persistent),{registerTick:m,removeTick:f,prepareTick:h}=$o(),{registerTimeout:g,removeTimeout:b}=Mo(),{transition:y,transitionStyle:w}=ko(t,c),{localScrollTarget:x,changeScrollEvent:_,unconfigureScrollTarget:S}=no(t,N),{anchorEl:C,canShow:k,anchorEvents:T}=oo({showing:c,configureAnchorEl:j}),{show:B,hide:O}=io({showing:c,canShow:k,handleShow:E,handleHide:P,hideOnRouteChange:p,processOnMount:!0});Object.assign(T,{delayShow:R,delayHide:I});const{showPortal:V,hidePortal:z,renderPortal:L}=Co(r,u,H);if(!0===s.platform.is.mobile){const o={anchorEl:C,innerRef:u,onClickOutside(e){return O(e),e.target.classList.contains("q-dialog__backdrop")&&q(e),!0}},n=e.computed(()=>null===t.modelValue&&!0!==t.persistent&&!0===c.value);e.watch(n,e=>{const t=!0===e?sn:un;t(o)}),e.onBeforeUnmount(()=>{un(o)})}function E(o){f(),b(),V(),m(()=>{i=new MutationObserver(()=>F()),i.observe(u.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),F(),N()}),h(),void 0===l&&(l=e.watch(()=>s.screen.width+"|"+s.screen.height+"|"+t.self+"|"+t.anchor+"|"+s.lang.rtl,F)),g(()=>{V(!0),n("show",o)},t.transitionDuration)}function P(e){f(),b(),A(),g(()=>{z(),n("hide",e)},t.transitionDuration)}function A(){void 0!==i&&(i.disconnect(),i=void 0),void 0!==l&&(l(),l=void 0),S(),M(T,"tooltipTemp")}function F(){const e=u.value;null!==C.value&&e&&bn({el:e,offset:t.offset,anchorEl:C.value,anchorOrigin:d.value,selfOrigin:v.value,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function R(e){if(!0===s.platform.is.mobile){eo(),document.body.classList.add("non-selectable");const e=C.value,t=["touchmove","touchcancel","touchend","click"].map(t=>[e,t,"delayHide","passiveCapture"]);$(T,"tooltipTemp",t)}g(()=>{B(e)},t.delay)}function I(e){b(),!0===s.platform.is.mobile&&(M(T,"tooltipTemp"),eo(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),g(()=>{O(e)},t.hideDelay)}function j(){if(!0===t.noParentEvent||null===C.value)return;const e=!0===s.platform.is.mobile?[[C.value,"touchstart","delayShow","passive"]]:[[C.value,"mouseenter","delayShow","passive"],[C.value,"mouseleave","delayHide","passive"]];$(T,"anchor",e)}function N(){if(null!==C.value||void 0!==t.scrollTarget){x.value=Bo(C.value,t.scrollTarget);const e=!0===t.noParentEvent?F:O;_(x.value,e)}}function D(){return!0===c.value?e.h("div",{...a,ref:u,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",a.class],style:[a.style,w.value],role:"complementary"},Ie(o.default)):null}function H(){return e.h(e.Transition,{name:y.value,appear:!0},D)}return e.onBeforeUnmount(A),Object.assign(r.proxy,{updatePosition:F}),L}}),er=be({name:"QItem",props:{...it,...Ct,tag:{type:String,default:"div"},active:Boolean,clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=rt(t,a),{hasLink:i,linkProps:r,linkClass:s,linkTag:u,navigateToLink:c}=qt(),d=e.ref(null),v=e.ref(null),p=e.computed(()=>!0===t.clickable||!0===i.value||"a"===t.tag||"label"===t.tag),m=e.computed(()=>!0!==t.disable&&!0===p.value),f=e.computed(()=>"q-item q-item-type row no-wrap"+(!0===t.dense?" q-item--dense":"")+(!0===l.value?" q-item--dark":"")+(!0===i.value?s.value:!0===t.active?`${void 0!==t.activeClass?` ${t.activeClass}`:""} q-item--active`:"")+(!0===t.disable?" disabled":"")+(!0===m.value?" q-item--clickable q-link cursor-pointer "+(!0===t.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===t.focused?" q-manual-focusable--focused":""):"")),h=e.computed(()=>{if(void 0===t.insetLevel)return null;const e=!0===a.lang.rtl?"Right":"Left";return{["padding"+e]:16+56*t.insetLevel+"px"}});function g(e){!0===m.value&&(null!==v.value&&(!0!==e.qKeyEvent&&document.activeElement===d.value?v.value.focus():document.activeElement===v.value&&d.value.focus()),!0===i.value&&c(e),n("click",e))}function b(e){if(!0===m.value&&!0===W(e,13)){q(e),e.qKeyEvent=!0;const t=new MouseEvent("click",e);t.qKeyEvent=!0,d.value.dispatchEvent(t)}n("keyup",e)}function y(){const t=je(o.default,[]);return!0===m.value&&t.unshift(e.h("div",{class:"q-focus-helper",tabindex:-1,ref:v})),t}return()=>{const o={ref:d,class:f.value,style:h.value,onClick:g,onKeyup:b};return!0===m.value?(o.tabindex=t.tabindex||"0",Object.assign(o,r.value)):!0===p.value&&(o["aria-disabled"]="true"),e.h(u.value,o,y())}}}),tr=be({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-item__section column"+` q-item__section--${!0===t.avatar||!0===t.side||!0===t.thumbnail?"side":"main"}`+(!0===t.top?" q-item__section--top justify-start":" justify-center")+(!0===t.avatar?" q-item__section--avatar":"")+(!0===t.thumbnail?" q-item__section--thumbnail":"")+(!0===t.noWrap?" q-item__section--nowrap":""));return()=>e.h("div",{class:n.value},Ie(o.default))}});function or(e,t,o){t.handler?t.handler(e,o,o.caret):o.runCmd(t.cmd,t.param)}function nr(t){return e.h("div",{class:"q-editor__toolbar-group"},t)}function ar(t,o,n,a=!1){const l=a||"toggle"===o.type&&(o.toggled?o.toggled(t):o.cmd&&t.caret.is(o.cmd,o.param)),i=[];if(o.tip&&t.$q.platform.is.desktop){const t=o.key?e.h("div",[e.h("small",`(CTRL + ${String.fromCharCode(o.key)})`)]):null;i.push(e.h(Ji,{delay:1e3},()=>[e.h("div",{innerHTML:o.tip}),t]))}return e.h(Gt,{...t.buttonProps.value,icon:null!==o.icon?o.icon:void 0,color:l?o.toggleColor||t.props.toolbarToggleColor:o.color||t.props.toolbarColor,textColor:l&&!t.props.toolbarPush?null:o.textColor||t.props.toolbarTextColor,label:o.label,disable:!!o.disable&&("function"!==typeof o.disable||o.disable(t)),size:"sm",onClick(e){n&&n(),or(e,o,t)}},()=>i)}function lr(t,o){const n="only-icons"===o.list;let a,l,i=o.label,r=null!==o.icon?o.icon:void 0;function s(){c.component.proxy.hide()}if(n)l=o.options.map(e=>{const o=void 0===e.type&&t.caret.is(e.cmd,e.param);return o&&(i=e.tip,r=null!==e.icon?e.icon:void 0),ar(t,e,s,o)}),a=t.toolbarBackgroundClass.value,l=[nr(l)];else{const n=void 0!==t.props.toolbarToggleColor?`text-${t.props.toolbarToggleColor}`:null,u=void 0!==t.props.toolbarTextColor?`text-${t.props.toolbarTextColor}`:null,c="no-icons"===o.list;l=o.options.map(o=>{const a=!!o.disable&&o.disable(t),l=void 0===o.type&&t.caret.is(o.cmd,o.param);l&&(i=o.tip,r=null!==o.icon?o.icon:void 0);const d=o.htmlTip;return e.h(er,{active:l,activeClass:n,clickable:!0,disable:a,dense:!0,onClick(e){s(),null!==t.contentRef.value&&t.contentRef.value.focus(),t.caret.restore(),or(e,o,t)}},()=>[!0===c?null:e.h(tr,{class:l?n:u,side:!0},()=>e.h(ot,{name:null!==o.icon?o.icon:void 0})),e.h(tr,d?()=>e.h("div",{class:"text-no-wrap",innerHTML:o.htmlTip}):o.tip?()=>e.h("div",{class:"text-no-wrap"},o.tip):void 0)])}),a=[t.toolbarBackgroundClass.value,u]}const u=o.highlight&&i!==o.label,c=e.h(xn,{...t.buttonProps.value,noCaps:!0,noWrap:!0,color:u?t.props.toolbarToggleColor:t.props.toolbarColor,textColor:u&&!t.props.toolbarPush?null:t.props.toolbarTextColor,label:o.fixedLabel?o.label:i,icon:o.fixedIcon?null!==o.icon?o.icon:void 0:r,contentClass:a},()=>l);return c}function ir(e){if(e.caret)return e.buttons.value.filter(t=>{return!e.isViewingSource.value||t.find(e=>"viewsource"===e.cmd)}).map(t=>nr(t.map(t=>{return(!e.isViewingSource.value||"viewsource"===t.cmd)&&("slot"===t.type?Ie(e.slots[t.slot]):"dropdown"===t.type?lr(e,t):ar(e,t))})))}function rr(e,t,o,n={}){const a=Object.keys(n);if(0===a.length)return{};const l={default_font:{cmd:"fontName",param:e,icon:o,tip:t}};return a.forEach(e=>{const t=n[e];l[e]={cmd:"fontName",param:t,icon:o,tip:t,htmlTip:`<font face="${t}">${t}</font>`}}),l}function sr(t){if(t.caret){const o=t.props.toolbarColor||t.props.toolbarTextColor;let n=t.editLinkUrl.value;const a=()=>{t.caret.restore(),n!==t.editLinkUrl.value&&document.execCommand("createLink",!1,""===n?" ":n),t.editLinkUrl.value=null};return[e.h("div",{class:`q-mx-xs text-${o}`},`${t.$q.lang.editor.url}: `),e.h("input",{key:"qedt_btm_input",class:"col q-editor__link-input",value:n,onInput:e=>{S(e),n=e.target.value},onKeydown:e=>{if(!0!==U(e))switch(e.keyCode){case 13:return C(e),a();case 27:C(e),t.caret.restore(),t.editLinkUrl.value&&"https://"!==t.editLinkUrl.value||document.execCommand("unlink"),t.editLinkUrl.value=null;break}}}),nr([e.h(Gt,{key:"qedt_btm_rem",tabindex:-1,...t.buttonProps.value,label:t.$q.lang.label.remove,noCaps:!0,onClick:()=>{t.caret.restore(),document.execCommand("unlink"),t.editLinkUrl.value=null}}),e.h(Gt,{key:"qedt_btm_upd",...t.buttonProps.value,label:t.$q.lang.label.update,noCaps:!0,onClick:a})])]}}const ur=/^on[A-Z]/;function cr(t){const o={listeners:e.ref({}),attributes:e.ref({})};function n(){const e={},n={};Object.keys(t).forEach(o=>{!0===ur.test(o)?e[o]=t[o]:"class"!==o&&"style"!==o&&(n[o]=t[o])}),o.listeners.value=e,o.attributes.value=n}return e.onBeforeUpdate(n),n(),o}const dr=Object.prototype.toString,vr=Object.prototype.hasOwnProperty,pr={};function mr(e){return null===e?String(e):pr[dr.call(e)]||"object"}function fr(e){if(!e||"object"!==mr(e))return!1;if(e.constructor&&!vr.call(e,"constructor")&&!vr.call(e.constructor.prototype,"isPrototypeOf"))return!1;let t;for(t in e);return void 0===t||vr.call(e,t)}function hr(){let e,t,o,n,a,l,i=arguments[0]||{},r=1,s=!1;const u=arguments.length;for("boolean"===typeof i&&(s=i,i=arguments[1]||{},r=2),Object(i)!==i&&"function"!==mr(i)&&(i={}),u===r&&(i=this,r--);r<u;r++)if(null!==(e=arguments[r]))for(t in e)o=i[t],n=e[t],i!==n&&(s&&n&&(fr(n)||(a="array"===mr(n)))?(a?(a=!1,l=o&&"array"===mr(o)?o:[]):l=o&&fr(o)?o:{},i[t]=hr(s,l,n)):void 0!==n&&(i[t]=n));return i}"Boolean Number String Function Array Date RegExp Object".split(" ").forEach(e=>{pr["[object "+e+"]"]=e.toLowerCase()});var gr=be({name:"QEditor",props:{...it,...Nn,modelValue:{type:String,required:!0},readonly:Boolean,disable:Boolean,minHeight:{type:String,default:"10rem"},maxHeight:String,height:String,definitions:Object,fonts:Object,placeholder:String,toolbar:{type:Array,validator:e=>0===e.length||e.every(e=>e.length),default(){return[["left","center","right","justify"],["bold","italic","underline","strike"],["undo","redo"]]}},toolbarColor:String,toolbarBg:String,toolbarTextColor:String,toolbarToggleColor:{type:String,default:"primary"},toolbarOutline:Boolean,toolbarPush:Boolean,toolbarRounded:Boolean,paragraphTag:{type:String,validator:e=>["div","p"].includes(e),default:"div"},contentStyle:Object,contentClass:[Object,Array,String],square:Boolean,flat:Boolean,dense:Boolean},emits:[...Dn,"update:modelValue","keydown","click","mouseup","keyup","touchend","focus","blur"],setup(t,{slots:o,emit:n,attrs:a}){const{proxy:l}=e.getCurrentInstance(),{$q:i}=l,r=rt(t,i),{inFullscreen:s,toggleFullscreen:u}=Hn(),c=cr(a),d=e.ref(null),v=e.ref(null),p=e.ref(null),m=e.ref(!1),f=e.computed(()=>!t.readonly&&!t.disable);let h,g,b=t.modelValue;document.execCommand("defaultParagraphSeparator",!1,t.paragraphTag),h=window.getComputedStyle(document.body).fontFamily;const y=e.computed(()=>t.toolbarBg?` bg-${t.toolbarBg}`:""),w=e.computed(()=>{const e=!0!==t.toolbarOutline&&!0!==t.toolbarPush;return{type:"a",flat:e,noWrap:!0,outline:t.toolbarOutline,push:t.toolbarPush,rounded:t.toolbarRounded,dense:!0,color:t.toolbarColor,disable:!f.value,size:"sm"}}),x=e.computed(()=>{const e=i.lang.editor,o=i.iconSet.editor;return{bold:{cmd:"bold",icon:o.bold,tip:e.bold,key:66},italic:{cmd:"italic",icon:o.italic,tip:e.italic,key:73},strike:{cmd:"strikeThrough",icon:o.strikethrough,tip:e.strikethrough,key:83},underline:{cmd:"underline",icon:o.underline,tip:e.underline,key:85},unordered:{cmd:"insertUnorderedList",icon:o.unorderedList,tip:e.unorderedList},ordered:{cmd:"insertOrderedList",icon:o.orderedList,tip:e.orderedList},subscript:{cmd:"subscript",icon:o.subscript,tip:e.subscript,htmlTip:"x<subscript>2</subscript>"},superscript:{cmd:"superscript",icon:o.superscript,tip:e.superscript,htmlTip:"x<superscript>2</superscript>"},link:{cmd:"link",disable:e=>e.caret&&!e.caret.can("link"),icon:o.hyperlink,tip:e.hyperlink,key:76},fullscreen:{cmd:"fullscreen",icon:o.toggleFullscreen,tip:e.toggleFullscreen,key:70},viewsource:{cmd:"viewsource",icon:o.viewSource,tip:e.viewSource},quote:{cmd:"formatBlock",param:"BLOCKQUOTE",icon:o.quote,tip:e.quote,key:81},left:{cmd:"justifyLeft",icon:o.left,tip:e.left},center:{cmd:"justifyCenter",icon:o.center,tip:e.center},right:{cmd:"justifyRight",icon:o.right,tip:e.right},justify:{cmd:"justifyFull",icon:o.justify,tip:e.justify},print:{type:"no-state",cmd:"print",icon:o.print,tip:e.print,key:80},outdent:{type:"no-state",disable:e=>e.caret&&!e.caret.can("outdent"),cmd:"outdent",icon:o.outdent,tip:e.outdent},indent:{type:"no-state",disable:e=>e.caret&&!e.caret.can("indent"),cmd:"indent",icon:o.indent,tip:e.indent},removeFormat:{type:"no-state",cmd:"removeFormat",icon:o.removeFormat,tip:e.removeFormat},hr:{type:"no-state",cmd:"insertHorizontalRule",icon:o.hr,tip:e.hr},undo:{type:"no-state",cmd:"undo",icon:o.undo,tip:e.undo,key:90},redo:{type:"no-state",cmd:"redo",icon:o.redo,tip:e.redo,key:89},h1:{cmd:"formatBlock",param:"H1",icon:o.heading1||o.heading,tip:e.heading1,htmlTip:`<h1 class="q-ma-none">${e.heading1}</h1>`},h2:{cmd:"formatBlock",param:"H2",icon:o.heading2||o.heading,tip:e.heading2,htmlTip:`<h2 class="q-ma-none">${e.heading2}</h2>`},h3:{cmd:"formatBlock",param:"H3",icon:o.heading3||o.heading,tip:e.heading3,htmlTip:`<h3 class="q-ma-none">${e.heading3}</h3>`},h4:{cmd:"formatBlock",param:"H4",icon:o.heading4||o.heading,tip:e.heading4,htmlTip:`<h4 class="q-ma-none">${e.heading4}</h4>`},h5:{cmd:"formatBlock",param:"H5",icon:o.heading5||o.heading,tip:e.heading5,htmlTip:`<h5 class="q-ma-none">${e.heading5}</h5>`},h6:{cmd:"formatBlock",param:"H6",icon:o.heading6||o.heading,tip:e.heading6,htmlTip:`<h6 class="q-ma-none">${e.heading6}</h6>`},p:{cmd:"formatBlock",param:t.paragraphTag,icon:o.heading,tip:e.paragraph},code:{cmd:"formatBlock",param:"PRE",icon:o.code,htmlTip:`<code>${e.code}</code>`},"size-1":{cmd:"fontSize",param:"1",icon:o.size1||o.size,tip:e.size1,htmlTip:`<font size="1">${e.size1}</font>`},"size-2":{cmd:"fontSize",param:"2",icon:o.size2||o.size,tip:e.size2,htmlTip:`<font size="2">${e.size2}</font>`},"size-3":{cmd:"fontSize",param:"3",icon:o.size3||o.size,tip:e.size3,htmlTip:`<font size="3">${e.size3}</font>`},"size-4":{cmd:"fontSize",param:"4",icon:o.size4||o.size,tip:e.size4,htmlTip:`<font size="4">${e.size4}</font>`},"size-5":{cmd:"fontSize",param:"5",icon:o.size5||o.size,tip:e.size5,htmlTip:`<font size="5">${e.size5}</font>`},"size-6":{cmd:"fontSize",param:"6",icon:o.size6||o.size,tip:e.size6,htmlTip:`<font size="6">${e.size6}</font>`},"size-7":{cmd:"fontSize",param:"7",icon:o.size7||o.size,tip:e.size7,htmlTip:`<font size="7">${e.size7}</font>`}}}),_=e.computed(()=>{const e=t.definitions||{},o=t.definitions||t.fonts?hr(!0,{},x.value,e,rr(h,i.lang.editor.defaultFont,i.iconSet.editor.font,t.fonts)):x.value;return t.toolbar.map(t=>t.map(t=>{if(t.options)return{type:"dropdown",icon:t.icon,label:t.label,size:"sm",dense:!0,fixedLabel:t.fixedLabel,fixedIcon:t.fixedIcon,highlight:t.highlight,list:t.list,options:t.options.map(e=>o[e])};const n=o[t];return n?"no-state"===n.type||e[t]&&(void 0===n.cmd||x.value[n.cmd]&&"no-state"===x.value[n.cmd].type)?n:Object.assign({type:"toggle"},n):{type:"slot",slot:t}}))}),S={$q:i,props:t,slots:o,inFullscreen:s,toggleFullscreen:u,runCmd:H,isViewingSource:m,editLinkUrl:p,toolbarBackgroundClass:y,buttonProps:w,contentRef:v,buttons:_,setContent:D};e.watch(()=>t.modelValue,e=>{b!==e&&(b=e,D(e,!0))});const C=e.computed(()=>t.toolbar&&t.toolbar.length>0),k=e.computed(()=>{const e={},t=t=>{t.key&&(e[t.key]={cmd:t.cmd,param:t.param})};return _.value.forEach(e=>{e.forEach(e=>{e.options?e.options.forEach(t):t(e)})}),e}),$=e.computed(()=>s.value?t.contentStyle:[{minHeight:t.minHeight,height:t.height,maxHeight:t.maxHeight},t.contentStyle]),M=e.computed(()=>`q-editor q-editor--${!0===m.value?"source":"default"}`+(!0===t.disable?" disabled":"")+(!0===s.value?" fullscreen column":"")+(!0===t.square?" q-editor--square no-border-radius":"")+(!0===t.flat?" q-editor--flat":"")+(!0===t.dense?" q-editor--dense":"")+(!0===r.value?" q-editor--dark q-dark":"")),T=e.computed(()=>[t.contentClass,"q-editor__content",{col:s.value,"overflow-auto":s.value||t.maxHeight}]),B=e.computed(()=>!0===t.disable?{"aria-disabled":"true"}:!0===t.readonly?{"aria-readonly":"true"}:{});function O(){if(null!==v.value){const e=`inner${!0===m.value?"Text":"HTML"}`,o=v.value[e];o!==t.modelValue&&(b=o,n("update:modelValue",o))}}function V(e){if(n("keydown",e),!0!==e.ctrlKey||!0===U(e))return void Q();const t=e.keyCode,o=k.value[t];if(void 0!==o){const{cmd:t,param:n}=o;q(e),H(t,n,!1)}}function z(e){Q(),n("click",e)}function L(e){if(null!==v.value){const{scrollTop:e,scrollHeight:t}=v.value;g=t-e}S.caret.save(),n("blur",e)}function E(t){e.nextTick(()=>{null!==v.value&&void 0!==g&&(v.value.scrollTop=v.value.scrollHeight-g)}),n("focus",t)}function P(e){if(!0===d.value.contains(e.target)&&(null===e.relatedTarget||!0!==d.value.contains(e.relatedTarget))){const e=`inner${!0===m.value?"Text":"HTML"}`;S.caret.restorePosition(v.value[e].length),Q()}}function A(e){!0!==d.value.contains(e.target)||null!==e.relatedTarget&&!0===d.value.contains(e.relatedTarget)||(S.caret.savePosition(),Q())}function F(){g=void 0}function R(e){S.caret.save(),n("mouseup",e)}function I(){g=void 0}function j(e){S.caret.save(),n("keyup",e)}function N(e){S.caret.save(),n("touchend",e)}function D(e,t){if(null!==v.value){!0===t&&S.caret.savePosition();const o=`inner${!0===m.value?"Text":"HTML"}`;v.value[o]=e,!0===t&&(S.caret.restorePosition(v.value[o].length),Q())}}function H(e,t,o=!0){W(),S.caret.restore(),S.caret.apply(e,t,()=>{W(),S.caret.save(),o&&Q()})}function Q(){setTimeout(()=>{p.value=null,l.$forceUpdate()},1)}function W(){vo(()=>{null!==v.value&&v.value.focus()})}function Y(){return v.value}return Object.assign(l,{runCmd:H,refreshToolbar:Q,focus:W,getContentEl:Y}),e.onMounted(()=>{S.caret=l.caret=new Gi(v.value,S),D(t.modelValue),Q()}),()=>{let o;if(C.value){const t=[e.h("div",{key:"qedt_top",class:"q-editor__toolbar row no-wrap scroll-x"+y.value},ir(S))];null!==p.value&&t.push(e.h("div",{key:"qedt_btm",class:"q-editor__toolbar row no-wrap items-center scroll-x"+y.value},sr(S))),o=e.h("div",{key:"toolbar_ctainer",class:"q-editor__toolbars-container"},t)}return e.h("div",{ref:d,class:M.value,style:{height:!0===s.value?"100vh":null},...B.value,onFocusin:P,onFocusout:A},[o,e.h("div",{ref:v,style:$.value,class:T.value,contenteditable:f.value,placeholder:t.placeholder,...{},...c.listeners.value,onInput:O,onKeydown:V,onClick:z,onBlur:L,onFocus:E,onMousedown:F,onTouchstartPassive:I,onMouseup:R,onKeyup:j,onTouchend:N})])}}}),br=be({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:o}){const n=e.computed(()=>parseInt(t.lines,10)),a=e.computed(()=>"q-item__label"+(!0===t.overline?" q-item__label--overline text-overline":"")+(!0===t.caption?" q-item__label--caption text-caption":"")+(!0===t.header?" q-item__label--header":"")+(1===n.value?" ellipsis":"")),l=e.computed(()=>{return void 0!==t.lines&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null});return()=>e.h("div",{style:l.value,class:a.value},Ie(o.default))}}),yr=be({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(t,{slots:o,emit:n}){let a,l,i,r,s,u,c=!1;function d(){a&&a(),a=null,c=!1,clearTimeout(i),clearTimeout(r),void 0!==l&&l.removeEventListener("transitionend",s),s=null}function v(e,o,n){e.style.overflowY="hidden",void 0!==o&&(e.style.height=`${o}px`),e.style.transition=`height ${t.duration}ms cubic-bezier(.25, .8, .50, 1)`,c=!0,a=n}function p(e,t){e.style.overflowY=null,e.style.height=null,e.style.transition=null,d(),t!==u&&n(t)}function m(e,o){let n=0;l=e,!0===c?(d(),n=e.offsetHeight===e.scrollHeight?0:void 0):u="hide",v(e,n,o),i=setTimeout(()=>{e.style.height=`${e.scrollHeight}px`,s=(t=>{Object(t)===t&&t.target!==e||p(e,"show")}),e.addEventListener("transitionend",s),r=setTimeout(s,1.1*t.duration)},100)}function f(e,o){let n;l=e,!0===c?d():(u="show",n=e.scrollHeight),v(e,n,o),i=setTimeout(()=>{e.style.height=0,s=(t=>{Object(t)===t&&t.target!==e||p(e,"hide")}),e.addEventListener("transitionend",s),r=setTimeout(s,1.1*t.duration)},100)}return e.onBeforeUnmount(()=>{!0===c&&d()}),()=>e.h(e.Transition,{css:!1,appear:t.appear,onEnter:m,onLeave:f},o.default)}});const wr={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},xr={xs:2,sm:4,md:8,lg:16,xl:24};var _r=be({name:"QSeparator",props:{...it,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(t){const o=e.getCurrentInstance(),n=rt(t,o.proxy.$q),a=e.computed(()=>!0===t.vertical?"vertical":"horizontal"),l=e.computed(()=>` q-separator--${a.value}`),i=e.computed(()=>!1!==t.inset?`${l.value}-${wr[t.inset]}`:""),r=e.computed(()=>`q-separator${l.value}${i.value}`+(void 0!==t.color?` bg-${t.color}`:"")+(!0===n.value?" q-separator--dark":"")),s=e.computed(()=>{const e={};if(void 0!==t.size&&(e[!0===t.vertical?"width":"height"]=t.size),!1!==t.spaced){const o=!0===t.spaced?`${xr.md}px`:t.spaced in xr?`${xr[t.spaced]}px`:t.spaced,n=!0===t.vertical?["Left","Right"]:["Top","Bottom"];e[`margin${n[0]}`]=e[`margin${n[1]}`]=o}return e});return()=>e.h("hr",{class:r.value,style:s.value,"aria-orientation":a.value})}});let Sr,Cr=0;const qr=new Array(256);for(let gm=0;gm<256;gm++)qr[gm]=(gm+256).toString(16).substr(1);const kr=(()=>{const e="undefined"!==typeof crypto?crypto:"undefined"!==typeof window?window.crypto||window.msCrypto:void 0;if(void 0!==e){if(void 0!==e.randomBytes)return e.randomBytes;if(void 0!==e.getRandomValues)return t=>{const o=new Uint8Array(t);return e.getRandomValues(o),o}}return e=>{const t=[];for(let o=e;o>0;o--)t.push(Math.floor(256*Math.random()));return t}})(),$r=4096;function Mr(){(void 0===Sr||Cr+16>$r)&&(Cr=0,Sr=kr($r));const e=Array.prototype.slice.call(Sr,Cr,Cr+=16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,qr[e[0]]+qr[e[1]]+qr[e[2]]+qr[e[3]]+"-"+qr[e[4]]+qr[e[5]]+"-"+qr[e[6]]+qr[e[7]]+"-"+qr[e[8]]+qr[e[9]]+"-"+qr[e[10]]+qr[e[11]]+qr[e[12]]+qr[e[13]]+qr[e[14]]+qr[e[15]]}const Tr=e.shallowReactive({}),Br=Object.keys(Ct);var Or=be({name:"QExpansionItem",props:{...Ct,...ao,...it,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:Number,headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...lo,"click","after-show","after-hide"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=rt(t,a),i=e.ref(null!==t.modelValue?t.modelValue:t.defaultOpened),r=e.ref(null),{hide:s,toggle:u}=io({showing:i});let c,d;const v=e.computed(()=>"q-expansion-item q-item-type"+` q-expansion-item--${!0===i.value?"expanded":"collapsed"}`+` q-expansion-item--${!0===t.popup?"popup":"standard"}`),p=e.computed(()=>{if(void 0===t.contentInsetLevel)return null;const e=!0===a.lang.rtl?"Right":"Left";return{["padding"+e]:56*t.contentInsetLevel+"px"}}),m=e.computed(()=>!0!==t.disable&&void 0!==t.to&&null!==t.to&&""!==t.to),f=e.computed(()=>{const e={};return Br.forEach(o=>{e[o]=t[o]}),e}),h=e.computed(()=>!0===m.value||!0!==t.expandIconToggle),g=e.computed(()=>void 0!==t.expandedIcon&&!0===i.value?t.expandedIcon:t.expandIcon||a.iconSet.expansionItem[!0===t.denseToggle?"denseIcon":"icon"]),b=e.computed(()=>!0!==t.disable&&(!0===m.value||!0===t.expandIconToggle));function y(e){!0!==m.value&&u(e),n("click",e)}function w(e){13===e.keyCode&&x(e,!0)}function x(e,t){!0!==t&&null!==r.value&&r.value.focus(),u(e),q(e)}function _(){n("after-show")}function S(){n("after-hide")}function C(){void 0===c&&(c=Mr()),!0===i.value&&(Tr[t.group]=c);const o=e.watch(i,e=>{!0===e?Tr[t.group]=c:Tr[t.group]===c&&delete Tr[t.group]}),n=e.watch(()=>Tr[t.group],(e,t)=>{t===c&&void 0!==e&&e!==c&&s()});d=(()=>{o(),n(),Tr[t.group]===c&&delete Tr[t.group],d=void 0})}function k(){const o={class:["q-focusable relative-position cursor-pointer"+`${!0===t.denseToggle&&!0===t.switchToggleSide?" items-end":""}`,t.expandIconClass],side:!0!==t.switchToggleSide,avatar:t.switchToggleSide},n=[e.h(ot,{class:"q-expansion-item__toggle-icon"+(void 0===t.expandedIcon&&!0===i.value?" q-expansion-item__toggle-icon--rotated":""),name:g.value})];return!0===b.value&&(Object.assign(o,{tabindex:0,onClick:x,onKeyup:w}),n.unshift(e.h("div",{ref:r,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),e.h(tr,o,()=>n)}function $(){let n;return void 0!==o.header?n=[].concat(o.header()):(n=[e.h(tr,()=>[e.h(br,{lines:t.labelLines},()=>t.label||""),t.caption?e.h(br,{lines:t.captionLines,caption:!0},()=>t.caption):null])],t.icon&&n[!0===t.switchToggleSide?"push":"unshift"](e.h(tr,{side:!0===t.switchToggleSide,avatar:!0!==t.switchToggleSide},()=>e.h(ot,{name:t.icon})))),!0!==t.disable&&n[!0===t.switchToggleSide?"unshift":"push"](k()),n}function M(){const o={ref:"item",style:t.headerStyle,class:t.headerClass,dark:l.value,disable:t.disable,dense:t.dense,insetLevel:t.headerInsetLevel};return!0===h.value&&(o.clickable=!0,o.onClick=y,!0===m.value&&Object.assign(o,f.value)),e.h(er,o,$)}function T(){return e.withDirectives(e.h("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:p.value},Ie(o.default)),[[e.vShow,i.value]])}function B(){const o=[M(),e.h(yr,{duration:t.duration,onShow:_,onHide:S},T)];return!0===t.expandSeparator&&o.push(e.h(_r,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:l.value}),e.h(_r,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:l.value})),o}return e.watch(()=>t.group,e=>{void 0!==d&&d(),void 0!==e&&C()}),void 0!==t.group&&C(),e.onBeforeUnmount(()=>{void 0!==d&&d()}),()=>e.h("div",{class:v.value},[e.h("div",{class:"q-expansion-item__container relative-position"},B())])}});const Vr=["top","right","bottom","left"],zr={type:{type:String,default:"a"},outline:Boolean,push:Boolean,flat:Boolean,unelevated:Boolean,color:String,textColor:String,glossy:Boolean,square:Boolean,padding:String,label:{type:[String,Number],default:""},labelPosition:{type:String,default:"right",validator:e=>Vr.includes(e)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]};function Lr(t,o){return{formClass:e.computed(()=>`q-fab--form-${!0===t.square?"square":"rounded"}`),stacked:e.computed(()=>!1===t.externalLabel&&["top","bottom"].includes(t.labelPosition)),labelProps:e.computed(()=>{if(!0===t.externalLabel){const e=null===t.hideLabel?!1===o.value:t.hideLabel;return{action:"push",data:{class:[t.labelClass,"q-fab__label q-tooltip--style q-fab__label--external"+` q-fab__label--external-${t.labelPosition}`+(!0===e?" q-fab__label--external-hidden":"")],style:t.labelStyle}}}return{action:["left","top"].includes(t.labelPosition)?"unshift":"push",data:{class:[t.labelClass,`q-fab__label q-fab__label--internal q-fab__label--internal-${t.labelPosition}`+(!0===t.hideLabel?" q-fab__label--internal-hidden":"")],style:t.labelStyle}}})}}const Er=["up","right","down","left"],Pr=["left","center","right"];var Ar=be({name:"QFab",props:{...zr,...ao,icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{default:null},direction:{type:String,default:"right",validator:e=>Er.includes(e)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:e=>Pr.includes(e)}},emits:lo,setup(t,{slots:o}){const n=e.ref(null),a=e.ref(!0===t.modelValue),{proxy:{$q:l}}=e.getCurrentInstance(),{formClass:i,labelProps:r}=Lr(t,a),s=e.computed(()=>!0!==t.persistent),{hide:u,toggle:c}=io({showing:a,hideOnRouteChange:s}),d=e.computed(()=>"q-fab z-fab row inline justify-center"+` q-fab--align-${t.verticalActionsAlign} ${i.value}`+(!0===a.value?" q-fab--opened":" q-fab--closed")),v=e.computed(()=>"q-fab__actions flex no-wrap inline"+` q-fab__actions--${t.direction}`+` q-fab__actions--${!0===a.value?"opened":"closed"}`),p=e.computed(()=>"q-fab__icon-holder "+` q-fab__icon-holder--${!0===a.value?"opened":"closed"}`);function m(){const n=[];return!0!==t.hideIcon&&n.push(e.h("div",{class:p.value},[e.h(ot,{class:"q-fab__icon absolute-full",name:t.icon||l.iconSet.fab.icon}),e.h(ot,{class:"q-fab__active-icon absolute-full",name:t.activeIcon||l.iconSet.fab.activeIcon})])),""!==t.label&&n[r.value.action](e.h("div",r.value.data,[t.label])),Ne(o.tooltip,n)}return e.provide(ie,{showing:a,onChildClick(e){u(e),null!==n.value&&n.value.$el.focus()}}),()=>e.h("div",{class:d.value},[e.h(Gt,{ref:n,class:i.value,...t,noWrap:!0,stack:t.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0,"aria-expanded":!0===a.value?"true":"false","aria-haspopup":"true",onClick:c},m),e.h("div",{class:v.value},Ie(o.default))])}});const Fr={start:"self-end",center:"self-center",end:"self-start"},Rr=Object.keys(Fr);var Ir=be({name:"QFabAction",props:{...zr,icon:{type:String,default:""},anchor:{type:String,validator:e=>Rr.includes(e)},to:[String,Object],replace:Boolean},emits:["click"],setup(t,{slots:o,emit:n}){const a=e.inject(ie,()=>({showing:{value:!0},onChildClick:m})),{formClass:l,labelProps:i}=Lr(t,a.showing),r=e.computed(()=>{const e=Fr[t.anchor];return l.value+(void 0!==e?` ${e}`:"")}),s=e.computed(()=>!0===t.disable||!0!==a.showing.value);function u(e){a.onChildClick(e),n("click",e)}function c(){const n=[];return""!==t.icon&&n.push(e.h(ot,{name:t.icon})),""!==t.label&&n[i.value.action](e.h("div",i.value.data,[t.label])),Ne(o.default,n)}const d=e.getCurrentInstance();return Object.assign(d.proxy,{click:u}),()=>e.h(Gt,{class:r.value,...t,noWrap:!0,stack:t.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:s.value,onClick:u},c)}});function jr({validate:t,resetValidation:o,requiresQForm:n}){const a=e.inject(re,!1);if(!1!==a){const{props:n,proxy:l}=e.getCurrentInstance();Object.assign(l,{validate:t,resetValidation:o}),e.watch(()=>n.disable,e=>{!0===e?("function"===typeof o&&o(),a.unbindComponent(l)):a.bindComponent(l)}),!0!==n.disable&&a.bindComponent(l),e.onBeforeUnmount(()=>{!0!==n.disable&&a.unbindComponent(l)})}else!0===n&&console.error("Parent QForm not found on useFormChild()!")}const Nr=[!0,!1,"ondemand"],Dr={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:e=>Nr.includes(e)}};function Hr(t,o){const{props:n,proxy:a}=e.getCurrentInstance(),l=e.ref(!1),i=e.ref(null),r=e.ref(null);jr({validate:m,resetValidation:p});let s,u=0;const c=e.computed(()=>void 0!==n.rules&&null!==n.rules&&n.rules.length>0),d=e.computed(()=>!0===n.error||!0===l.value),v=e.computed(()=>"string"===typeof n.errorMessage&&n.errorMessage.length>0?n.errorMessage:i.value);function p(){u++,o.value=!1,r.value=null,l.value=!1,i.value=null}function m(e=n.modelValue){if(!0!==c.value)return!0;u++,!0!==o.value&&!0!==n.lazyRules&&(r.value=!0);const t=(e,t)=>{l.value!==e&&(l.value=e);const n=t||void 0;i.value!==n&&(i.value=n),!1!==o.value&&(o.value=!1)},a=[];for(let o=0;o<n.rules.length;o++){const l=n.rules[o];let i;if("function"===typeof l?i=l(e):"string"===typeof l&&void 0!==Ka[l]&&(i=Ka[l](e)),!1===i||"string"===typeof i)return t(!0,i),!1;!0!==i&&void 0!==i&&a.push(i)}if(0===a.length)return t(!1),!0;!0!==o.value&&(o.value=!0);const s=u;return Promise.all(a).then(e=>{if(s!==u)return!0;if(void 0===e||!1===Array.isArray(e)||0===e.length)return t(!1),!0;const o=e.find(e=>!1===e||"string"===typeof e);return t(void 0!==o,o),void 0===o},e=>{return s!==u||(console.error(e),t(!0),!1)})}function f(e){!0===c.value&&"ondemand"!==n.lazyRules&&(!0===r.value||!0!==n.lazyRules&&!0!==e)&&m()}return e.watch(()=>n.modelValue,()=>{f()}),e.watch(()=>n.reactiveRules,t=>{!0===t?void 0===s&&(s=e.watch(()=>n.rules,()=>{f(!0)})):void 0!==s&&(s(),s=void 0)},{immediate:!0}),e.watch(t,e=>{"ondemand"!==n.lazyRules&&(!0===e?null===r.value&&(r.value=!1):!1===r.value&&!0===c.value&&(r.value=!0,m()))}),e.onBeforeUnmount(()=>{void 0!==s&&s()}),Object.assign(a,{resetValidation:p,validate:m}),Object.defineProperty(a,"hasError",{get:()=>d.value}),{isDirtyModel:r,hasRules:c,hasError:d,computedErrorMessage:v,validate:m,resetValidation:p}}function Qr(e){return void 0===e?`f_${Mr()}`:e}function Ur(e){return void 0!==e&&null!==e&&(""+e).length>0}const Wr={...it,...Dr,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},Yr=["update:modelValue","clear","focus","blur","popup-show","popup-hide"];function Kr(){const{props:t,attrs:o,proxy:n}=e.getCurrentInstance(),a=rt(t,n.$q);return{isDark:a,editable:e.computed(()=>!0!==t.disable&&!0!==t.readonly),innerLoading:e.ref(!1),focused:e.ref(!1),hasPopupOpen:e.ref(!1),splitAttrs:cr(o),targetUid:e.ref(Qr(t.for)),rootRef:e.ref(null),targetRef:e.ref(null),controlRef:e.ref(null)}}function Xr(o){const{props:n,emit:a,slots:l,attrs:i,proxy:r}=e.getCurrentInstance(),{$q:s}=r;let u;void 0===o.hasValue&&(o.hasValue=e.computed(()=>Ur(n.modelValue))),void 0===o.emitValue&&(o.emitValue=(e=>{a("update:modelValue",e)})),void 0===o.controlEvents&&(o.controlEvents={onFocusin:T,onFocusout:B}),Object.assign(o,{clearValue:O,onControlFocusin:T,onControlFocusout:B,focus:$}),void 0===o.computedCounter&&(o.computedCounter=e.computed(()=>{if(!1!==n.counter){const e="string"===typeof n.modelValue||"number"===typeof n.modelValue?(""+n.modelValue).length:!0===Array.isArray(n.modelValue)?n.modelValue.length:0,t=void 0!==n.maxlength?n.maxlength:n.maxValues;return e+(void 0!==t?" / "+t:"")}}));const{isDirtyModel:c,hasRules:d,hasError:v,computedErrorMessage:p,resetValidation:m}=Hr(o.focused,o.innerLoading),f=void 0!==o.floatingLabel?e.computed(()=>!0===n.stackLabel||!0===o.focused.value||!0===o.floatingLabel.value):e.computed(()=>!0===n.stackLabel||!0===o.focused.value||!0===o.hasValue.value),h=e.computed(()=>!0===n.bottomSlots||void 0!==n.hint||!0===d.value||!0===n.counter||null!==n.error),g=e.computed(()=>{return!0===n.filled?"filled":!0===n.outlined?"outlined":!0===n.borderless?"borderless":n.standout?"standout":"standard"}),b=e.computed(()=>`q-field row no-wrap items-start q-field--${g.value}`+(void 0!==o.fieldClass?` ${o.fieldClass.value}`:"")+(!0===n.rounded?" q-field--rounded":"")+(!0===n.square?" q-field--square":"")+(!0===f.value?" q-field--float":"")+(!0===w.value?" q-field--labeled":"")+(!0===n.dense?" q-field--dense":"")+(!0===n.itemAligned?" q-field--item-aligned q-item-type":"")+(!0===o.isDark.value?" q-field--dark":"")+(void 0===o.getControl?" q-field--auto-height":"")+(!0===o.focused.value?" q-field--focused":"")+(!0===v.value?" q-field--error":"")+(!0===v.value||!0===o.focused.value?" q-field--highlighted":"")+(!0!==n.hideBottomSpace&&!0===h.value?" q-field--with-bottom":"")+(!0===n.disable?" q-field--disabled":!0===n.readonly?" q-field--readonly":"")),y=e.computed(()=>"q-field__control relative-position row no-wrap"+(void 0!==n.bgColor?` bg-${n.bgColor}`:"")+(!0===v.value?" text-negative":"string"===typeof n.standout&&n.standout.length>0&&!0===o.focused.value?` ${n.standout}`:void 0!==n.color?` text-${n.color}`:"")),w=e.computed(()=>!0===n.labelSlot||void 0!==n.label),x=e.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(void 0!==n.labelColor&&!0!==v.value?` text-${n.labelColor}`:"")),_=e.computed(()=>({id:o.targetUid.value,editable:o.editable.value,focused:o.focused.value,floatingLabel:f.value,modelValue:n.modelValue,emitValue:o.emitValue})),S=e.computed(()=>{const e={for:o.targetUid.value};return!0===n.disable?e["aria-disabled"]="true":!0===n.readonly&&(e["aria-readonly"]="true"),e});let k;function $(){void 0!==k&&po(k),k=vo(()=>{k=void 0;const e=document.activeElement;let t=void 0!==o.targetRef&&o.targetRef.value;!t||null!==e&&e.id===o.targetUid.value||(!0===t.hasAttribute("tabindex")||(t=t.querySelector("[tabindex]")),t&&t!==e&&t.focus())})}function M(){void 0!==k&&po(k);const e=document.activeElement;null!==e&&o.rootRef.value.contains(e)&&e.blur()}function T(e){!0===o.editable.value&&!1===o.focused.value&&(o.focused.value=!0,a("focus",e))}function B(e,t){clearTimeout(u),u=setTimeout(()=>{(!0!==document.hasFocus()||!0!==o.hasPopupOpen.value&&(void 0===o.controlRef||null!==o.controlRef.value&&!1===o.controlRef.value.contains(document.activeElement)))&&(!0===o.focused.value&&(o.focused.value=!1,a("blur",e)),void 0!==t&&t())})}function O(t){if(q(t),!0!==s.platform.is.mobile){const e=void 0!==o.targetRef&&o.targetRef.value||o.rootRef.value;e.focus()}else!0===o.rootRef.value.contains(document.activeElement)&&document.activeElement.blur();"file"===n.type&&(o.inputRef.value.value=null),a("update:modelValue",null),a("clear",n.modelValue),e.nextTick(()=>{m(),"ondemand"!==n.lazyRules&&!0!==s.platform.is.mobile&&(c.value=!1)})}function V(){const t=[];return void 0!==l.prepend&&t.push(e.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:C},l.prepend())),t.push(e.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},z())),void 0!==l.append&&t.push(e.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:C},l.append())),!0===v.value&&!1===n.noErrorIcon&&t.push(E("error",[e.h(ot,{name:s.iconSet.field.error,color:"negative"})])),!0===n.loading||!0===o.innerLoading.value?t.push(E("inner-loading-append",void 0!==l.loading?l.loading():[e.h(Tt,{color:n.color})])):!0===n.clearable&&!0===o.hasValue.value&&!0===o.editable.value&&t.push(E("inner-clearable-append",[e.h(ot,{class:"q-field__focusable-action",tag:"button",name:n.clearIcon||s.iconSet.field.clear,tabindex:0,type:"button",onClick:O})])),void 0!==o.getInnerAppend&&t.push(E("inner-append",o.getInnerAppend())),void 0!==o.getControlChild&&t.push(o.getControlChild()),t}function z(){const t=[];return void 0!==n.prefix&&null!==n.prefix&&t.push(e.h("div",{class:"q-field__prefix no-pointer-events row items-center"},n.prefix)),void 0!==o.getShadowControl&&!0===o.hasShadow.value&&t.push(o.getShadowControl()),void 0!==o.getControl?t.push(o.getControl()):void 0!==l.rawControl?t.push(l.rawControl()):void 0!==l.control&&t.push(e.h("div",{ref:o.targetRef,class:"q-field__native row",...o.splitAttrs.attributes.value,"data-autofocus":!0===n.autofocus||void 0},l.control(_.value))),!0===w.value&&t.push(e.h("div",{class:x.value},Ie(l.label,n.label))),void 0!==n.suffix&&null!==n.suffix&&t.push(e.h("div",{class:"q-field__suffix no-pointer-events row items-center"},n.suffix)),t.concat(Ie(l.default))}function L(){let t,a;!0===v.value?null!==p.value?(t=[e.h("div",{role:"alert"},p.value)],a=`q--slot-error-${p.value}`):(t=Ie(l.error),a="q--slot-error"):!0===n.hideHint&&!0!==o.focused.value||(void 0!==n.hint?(t=[e.h("div",n.hint)],a=`q--slot-hint-${n.hint}`):(t=Ie(l.hint),a="q--slot-hint"));const i=!0===n.counter||void 0!==l.counter;if(!0===n.hideBottomSpace&&!1===i&&void 0===t)return;const r=e.h("div",{key:a,class:"q-field__messages col"},t);return e.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(!0!==n.hideBottomSpace?"animated":"stale")},[!0===n.hideBottomSpace?r:e.h(e.Transition,{name:"q-transition--field-message"},()=>r),!0===i?e.h("div",{class:"q-field__counter"},void 0!==l.counter?l.counter():o.computedCounter.value):null])}function E(t,o){return null===o?null:e.h("div",{key:t,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},o)}return e.watch(()=>n.for,e=>{o.targetUid.value=Qr(e)}),Object.assign(r,{focus:$,blur:M}),e.onMounted(()=>{!0===t.value&&void 0===n.for&&(o.targetUid.value=Qr()),!0===n.autofocus&&r.focus()}),e.onBeforeUnmount(()=>{clearTimeout(u)}),function(){return e.h("label",{ref:o.rootRef,class:[b.value,i.class],style:i.style,...S.value},[void 0!==l.before?e.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:C},l.before()):null,e.h("div",{class:"q-field__inner relative-position col self-stretch"},[e.h("div",{ref:o.controlRef,class:y.value,tabindex:-1,...o.controlEvents},V()),!0===h.value?L():null]),void 0!==l.after?e.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:C},l.after()):null])}}var Zr=be({name:"QField",inheritAttrs:!1,props:Wr,emits:Yr,setup(){return Xr(Kr())}});function Gr(e,t,o,n){const a=[];return e.forEach(e=>{!0===n(e)?a.push(e):t.push({failedPropValidation:o,file:e})}),a}function Jr(e){e&&e.dataTransfer&&(e.dataTransfer.dropEffect="copy"),q(e)}const es={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},ts=["rejected"];function os({editable:t,dnd:o,getFileInput:n,addFilesToQueue:a}){const{props:l,emit:i,proxy:r}=e.getCurrentInstance(),s=e.computed(()=>void 0!==l.accept?l.accept.split(",").map(e=>{return e=e.trim(),"*"===e?"*/":(e.endsWith("/*")&&(e=e.slice(0,e.length-1)),e.toUpperCase())}):null),u=e.computed(()=>parseInt(l.maxFiles,10)),c=e.computed(()=>parseInt(l.maxTotalSize,10));function d(e){if(t.value){const t=n();t&&t.click(e)}}function v(e){t.value&&e&&a(null,e)}function p(e,t,o,n){let a=Array.from(t||e.target.files);const r=[],d=()=>{r.length>0&&i("rejected",r)};if(void 0!==l.accept&&-1===s.value.indexOf("*/")&&(a=Gr(a,r,"accept",e=>{return s.value.some(t=>e.type.toUpperCase().startsWith(t)||e.name.toUpperCase().endsWith(t))}),0===a.length))return d();if(void 0!==l.maxFileSize){const e=parseInt(l.maxFileSize,10);if(a=Gr(a,r,"max-file-size",t=>{return t.size<=e}),0===a.length)return d()}!0!==l.multiple&&(a=[a[0]]);const v=o.map(e=>e.name);if(a=Gr(a,r,"duplicate",e=>{return!1===v.includes(e.name)}),0===a.length)return d();if(void 0!==l.maxTotalSize){let e=!0===n?o.reduce((e,t)=>e+t.size,0):0;if(a=Gr(a,r,"max-total-size",t=>{return e+=t.size,e<=c.value}),0===a.length)return d()}if("function"===typeof l.filter){const e=l.filter(a);a=Gr(a,r,"filter",t=>{return e.includes(t)})}if(void 0!==l.maxFiles){let e=!0===n?o.length:0;if(a=Gr(a,r,"max-files",()=>{return e++,e<=u.value}),0===a.length)return d()}return d(),a.length>0?a:void 0}function m(e){Jr(e),!0!==o.value&&(o.value=!0)}function f(e){q(e),o.value=!1}function h(e){Jr(e);const t=e.dataTransfer.files;t.length>0&&a(null,t),o.value=!1}function g(t){if(!0===o.value)return e.h("div",{class:`q-${t}__dnd absolute-full`,onDragenter:Jr,onDragover:Jr,onDragleave:f,onDrop:h})}return Object.assign(r,{pickFiles:d,addFiles:v}),{pickFiles:d,addFiles:v,onDragover:m,processFiles:p,getDndNode:g,maxFilesNumber:u,maxTotalSizeNumber:c}}function ns(t,o){function n(){const e=t.modelValue;try{const t="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(e)===e&&("length"in e?Array.from(e):[e]).forEach(e=>{t.items.add(e)}),{files:t.files}}catch(e){return{files:void 0}}}return!0===o?e.computed(()=>{if("file"===t.type)return n()}):e.computed(n)}var as=be({name:"QFile",inheritAttrs:!1,props:{...Wr,..._n,...es,modelValue:[File,FileList,Array],append:Boolean,useChips:Boolean,displayValue:[String,Number],tabindex:{type:[String,Number],default:0},counterLabel:Function,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Yr,...ts],setup(t,{slots:o,emit:n,attrs:a}){const{proxy:l}=e.getCurrentInstance(),i=Kr(),r=e.ref(null),s=e.ref(!1),u=qn(t),{pickFiles:c,onDragover:d,processFiles:v,getDndNode:p}=os({editable:i.editable,dnd:s,getFileInput:k,addFilesToQueue:$}),m=ns(t),f=e.computed(()=>Object(t.modelValue)===t.modelValue?"length"in t.modelValue?Array.from(t.modelValue):[t.modelValue]:[]),h=e.computed(()=>Ur(f.value)),g=e.computed(()=>f.value.map(e=>e.name).join(", ")),b=e.computed(()=>xe(f.value.reduce((e,t)=>e+t.size,0))),y=e.computed(()=>({totalSize:b.value,filesNumber:f.value.length,maxFiles:t.maxFiles})),w=e.computed(()=>({tabindex:-1,type:"file",title:"",accept:t.accept,capture:t.capture,name:u.value,...a,id:i.targetUid.value,disabled:!0!==i.editable.value})),x=e.computed(()=>!0===t.multiple&&!0===t.append);function _(e){const t=f.value.slice();t.splice(e,1),C(t)}function S(e){const t=f.value.findIndex(e);t>-1&&_(t)}function C(e){n("update:modelValue",!0===t.multiple?e:e[0])}function q(e){13===e.keyCode&&c(e)}function k(){return r.value}function $(e,o){const n=v(e,o,f.value,x.value);void 0!==n&&((!0===t.multiple?t.modelValue&&n.every(e=>f.value.includes(e)):t.modelValue===n[0])||C(!0===x.value?f.value.concat(n):n))}function M(){return[e.h("input",{class:[t.inputClass,"q-file__filler"],style:t.inputStyle,tabindex:-1})]}function T(){if(void 0!==o.file)return 0===f.value.length?M():f.value.map((e,t)=>o.file({index:t,file:e,ref:this}));if(void 0!==o.selected)return 0===f.value.length?M():o.selected({files:f.value,ref:this});if(!0===t.useChips)return 0===f.value.length?M():f.value.map((o,n)=>e.h(da,{key:"file-"+n,removable:i.editable.value,dense:!0,textColor:t.color,tabindex:t.tabindex,onRemove:()=>{_(n)}},()=>e.h("span",{class:"ellipsis",textContent:o.name})));const n=void 0!==t.displayValue?t.displayValue:g.value;return n.length>0?[e.h("div",{class:t.inputClass,style:t.inputStyle,textContent:n})]:M()}function B(){const o={ref:r,...w.value,...m.value,class:"q-field__input fit absolute-full cursor-pointer",onChange:$};return!0===t.multiple&&(o.multiple=!0),e.h("input",o)}return Object.assign(i,{fieldClass:{value:"q-file q-field--auto-height"},emitValue:C,hasValue:h,inputRef:r,innerValue:f,floatingLabel:e.computed(()=>!0===h.value||Ur(t.displayValue)),computedCounter:e.computed(()=>{if(void 0!==t.counterLabel)return t.counterLabel(y.value);const e=t.maxFiles;return`${f.value.length}${void 0!==e?" / "+e:""} (${b.value})`}),getControlChild:()=>p("file"),getControl:()=>{const o={ref:i.targetRef,class:"q-field__native row items-center cursor-pointer",tabindex:t.tabindex};return!0===i.editable.value&&Object.assign(o,{onDragover:d,onKeyup:q}),e.h("div",o,[B()].concat(T()))}}),Object.assign(l,{removeAtIndex:_,removeFile:S,getNativeElement:()=>r.value}),Xr(i)}}),ls=be({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(o,{slots:n,emit:a}){const{proxy:{$q:l}}=e.getCurrentInstance(),i=e.inject(ae,()=>{console.error("QFooter needs to be child of QLayout")}),r=e.ref(parseInt(o.heightHint,10)),s=e.ref(!0),u=e.ref(!0===t.value||!0===i.isContainer.value?0:window.innerHeight),c=e.computed(()=>!0===o.reveal||i.view.value.indexOf("F")>-1||!0===i.isContainer.value),d=e.computed(()=>!0===i.isContainer.value?i.containerHeight.value:u.value),v=e.computed(()=>{if(!0!==o.modelValue)return 0;if(!0===c.value)return!0===s.value?r.value:0;const e=i.scroll.value.position+d.value+r.value-i.height.value;return e>0?e:0}),p=e.computed(()=>!0!==o.modelValue||!0===c.value&&!0!==s.value),m=e.computed(()=>!0===o.modelValue&&!0===p.value&&!0===o.reveal),f=e.computed(()=>"q-footer q-layout__section--marginal "+(!0===c.value?"fixed":"absolute")+"-bottom"+(!0===o.bordered?" q-footer--bordered":"")+(!0===p.value?" q-footer--hidden":"")+(!0!==o.modelValue?" q-layout--prevent-focus"+(!0!==c.value?" hidden":""):"")),h=e.computed(()=>{const e=i.rows.value.bottom,t={};return"l"===e[0]&&!0===i.left.space&&(t[!0===l.lang.rtl?"right":"left"]=`${i.left.size}px`),"r"===e[2]&&!0===i.right.space&&(t[!0===l.lang.rtl?"left":"right"]=`${i.right.size}px`),t});function g(e,t){i.update("footer",e,t)}function b(e,t){e.value!==t&&(e.value=t)}function y({height:e}){b(r,e),g("size",e)}function w(){if(!0!==o.reveal)return;const{direction:e,position:t,inflectionPoint:n}=i.scroll.value;b(s,"up"===e||t-n<100||i.height.value-d.value-t-r.value<300)}function x(e){!0===m.value&&b(s,!0),a("focusin",e)}e.watch(()=>o.modelValue,e=>{g("space",e),b(s,!0),i.animate()}),e.watch(v,e=>{g("offset",e)}),e.watch(()=>o.reveal,e=>{!1===e&&b(s,o.modelValue)}),e.watch(s,e=>{i.animate(),a("reveal",e)}),e.watch([r,i.scroll,i.height],w),e.watch(()=>l.screen.height,e=>{!0!==i.isContainer.value&&b(u,e)});const _={};return i.instances.footer=_,!0===o.modelValue&&g("size",r.value),g("space",o.modelValue),g("offset",v.value),e.onBeforeUnmount(()=>{i.instances.footer===_&&(i.instances.footer=void 0,g("size",0),g("offset",0),g("space",!1))}),()=>{const t=Ne(n.default,[e.h(Oa,{debounce:0,onResize:y})]);return!0===o.elevated&&t.push(e.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),e.h("footer",{class:f.value,style:h.value,onFocusin:x},t)}}}),is=be({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validation-success","validation-error"],setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),l=e.ref(null);let i=0;const r=[];function s(e){const o=[],a="boolean"===typeof e?e:!0!==t.noErrorFocus;i++;const l=(e,t)=>{n("validation-"+(!0===e?"success":"error"),t)};for(let n=0;n<r.length;n++){const e=r[n],i=e.validate();if("function"===typeof i.then)o.push(i.then(t=>({valid:t,comp:e}),t=>({valid:!1,comp:e,error:t})));else if(!0!==i){if(!1===t.greedy)return l(!1,e),!0===a&&"function"===typeof e.focus&&e.focus(),Promise.resolve(!1);o.push({valid:!1,comp:e})}}if(0===o.length)return l(!0),Promise.resolve(!0);const s=i;return Promise.all(o).then(e=>{if(s===i){const t=e.filter(e=>!0!==e.valid);if(0===t.length)return l(!0),!0;const{valid:o,comp:n}=t[0];return l(!1,n),!0===a&&!0!==o&&"function"===typeof n.focus&&n.focus(),!1}})}function u(){i++,r.forEach(e=>{"function"===typeof e.resetValidation&&e.resetValidation()})}function c(e){void 0!==e&&q(e),s().then(o=>{!0===o&&(void 0!==t.onSubmit?n("submit",e):void 0!==e&&void 0!==e.target&&"function"===typeof e.target.submit&&e.target.submit())})}function d(o){void 0!==o&&q(o),n("reset"),e.nextTick(()=>{u(),!0===t.autofocus&&!0!==t.noResetFocus&&v()})}function v(){vo(()=>{if(null===l.value)return;const e=l.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(l.value.querySelectorAll("[tabindex]"),e=>e.tabIndex>-1);null!==e&&void 0!==e&&e.focus()})}return e.provide(re,{bindComponent(e){r.push(e)},unbindComponent(e){const t=r.indexOf(e);t>-1&&r.splice(t,1)}}),e.onMounted(()=>{!0===t.autofocus&&v()}),Object.assign(a.proxy,{validate:s,resetValidation:u,submit:c,reset:d,focus:v,getValidationComponents:()=>r}),()=>e.h("form",{class:"q-form",ref:l,onSubmit:c,onReset:d},Ie(o.default))}}),rs={inject:{[re]:{default:m}},watch:{disable(e){const t=this.$.provides[re];void 0!==t&&(!0===e?(this.resetValidation(),t.unbindComponent(this)):t.bindComponent(this))}},methods:{validate(){},resetValidation(){}},created(){const e=this.$.provides[re];void 0!==e&&!0!==this.disable&&e.bindComponent(this)},beforeUnmount(){const e=this.$.provides[re];void 0!==e&&!0!==this.disable&&e.unbindComponent(this)}},ss=be({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=e.inject(ae,()=>{console.error("QHeader needs to be child of QLayout")}),i=e.ref(parseInt(t.heightHint,10)),r=e.ref(!0),s=e.computed(()=>!0===t.reveal||l.view.value.indexOf("H")>-1||!0===l.isContainer.value),u=e.computed(()=>{if(!0!==t.modelValue)return 0;if(!0===s.value)return!0===r.value?i.value:0;const e=i.value-l.scroll.value.position;return e>0?e:0}),c=e.computed(()=>!0!==t.modelValue||!0===s.value&&!0!==r.value),d=e.computed(()=>!0===t.modelValue&&!0===c.value&&!0===t.reveal),v=e.computed(()=>"q-header q-layout__section--marginal "+(!0===s.value?"fixed":"absolute")+"-top"+(!0===t.bordered?" q-header--bordered":"")+(!0===c.value?" q-header--hidden":"")+(!0!==t.modelValue?" q-layout--prevent-focus":"")),p=e.computed(()=>{const e=l.rows.value.top,t={};return"l"===e[0]&&!0===l.left.space&&(t[!0===a.lang.rtl?"right":"left"]=`${l.left.size}px`),"r"===e[2]&&!0===l.right.space&&(t[!0===a.lang.rtl?"left":"right"]=`${l.right.size}px`),t});function m(e,t){l.update("header",e,t)}function f(e,t){e.value!==t&&(e.value=t)}function h({height:e}){f(i,e),m("size",e)}function g(e){!0===d.value&&f(r,!0),n("focusin",e)}e.watch(()=>t.modelValue,e=>{m("space",e),f(r,!0),l.animate()}),e.watch(u,e=>{m("offset",e)}),e.watch(()=>t.reveal,e=>{!1===e&&f(r,t.modelValue)}),e.watch(r,e=>{l.animate(),n("reveal",e)}),e.watch(l.scroll,e=>{!0===t.reveal&&f(r,"up"===e.direction||e.position<=t.revealOffset||e.position-e.inflectionPoint<100)});const b={};return l.instances.header=b,!0===t.modelValue&&m("size",i.value),m("space",t.modelValue),m("offset",u.value),e.onBeforeUnmount(()=>{l.instances.header===b&&(l.instances.header=void 0,m("size",0),m("offset",0),m("space",!1))}),()=>{const n=je(o.default,[]);return!0===t.elevated&&n.push(e.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push(e.h(Oa,{debounce:0,onResize:h})),e.h("header",{class:v.value,style:p.value,onFocusin:g},n)}}});const us={ratio:[String,Number]};function cs(t,o){return e.computed(()=>{const e=Number(t.ratio||(void 0!==o?o.value:void 0));return!0!==isNaN(e)&&e>0?{paddingBottom:`${100/e}%`}:null})}const ds=16/9;var vs=be({name:"QImg",props:{...us,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},width:String,height:String,initialRatio:{type:[Number,String],default:ds},placeholderSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(t,{slots:o,emit:n}){const a=e.ref(t.initialRatio),l=cs(t,a);let i;const r=[e.ref(null),e.ref(void 0!==t.placeholderSrc?{src:t.placeholderSrc}:null)],s=e.ref(0),u=e.ref(!1),c=e.ref(!1),d=e.computed(()=>`q-img q-img--${!0===t.noNativeMenu?"no-":""}menu`),v=e.computed(()=>({width:t.width,height:t.height})),p=e.computed(()=>`q-img__image ${void 0!==t.imgClass?t.imgClass+" ":""}`+`q-img__image--with${!0===t.noTransition?"out":""}-transition`),m=e.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function f(){return t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null}function h(e){if(clearTimeout(i),c.value=!1,null===e)return u.value=!1,r[0].value=null,void(r[1].value=null);u.value=!0,r[s.value].value=e}function g({target:e}){null!==i&&(clearTimeout(i),a.value=0===e.naturalHeight?.5:e.naturalWidth/e.naturalHeight,b(e,1))}function b(e,t){null!==i&&1e3!==t&&(!0===e.complete?y(e):i=setTimeout(()=>{b(e,t+1)},50))}function y(e){null!==i&&(s.value=1===s.value?0:1,r[s.value].value=null,u.value=!1,c.value=!1,n("load",e.currentSrc||e.src))}function w(e){clearTimeout(i),u.value=!1,c.value=!0,r[0].value=null,r[1].value=null,n("error",e)}function x(t,o){return e.h("div",{class:"q-img__container absolute-full",key:t},o)}function _(o){const n=r[o].value,a={key:"img_"+o,class:p.value,style:m.value,crossorigin:t.crossorigin,decoding:t.decoding,referrerpolicy:t.referrerpolicy,height:t.height,width:t.width,loading:t.loading,"aria-hidden":"true",draggable:t.draggable,...n};return s.value===o?(a.class+=" q-img__image--waiting",Object.assign(a,{onLoad:g,onError:w})):a.class+=" q-img__image--loaded",x("img"+o,e.h("img",a))}function S(){return!0!==u.value?e.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},Ie(o[!0===c.value?"error":"default"])):e.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},void 0!==o.loading?o.loading():!0===t.noSpinner?void 0:[e.h(Tt,{color:t.spinnerColor,size:t.spinnerSize})])}return e.watch(()=>f(),h),h(f()),e.onBeforeUnmount(()=>{clearTimeout(i),i=null}),()=>{const o=[];return null!==l.value&&o.push(e.h("div",{key:"filler",style:l.value})),!0!==c.value&&(null!==r[0].value&&o.push(_(0)),null!==r[1].value&&o.push(_(1))),o.push(e.h(e.Transition,{name:"q-transition--fade"},S)),e.h("div",{class:d.value,style:v.value,role:"img","aria-label":t.alt},o)}}});const{passive:ps}=p;var ms=be({name:"QInfiniteScroll",props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:{default:void 0},initialIndex:Number,disable:Boolean,reverse:Boolean},emits:["load"],setup(t,{slots:o,emit:n}){const a=e.ref(!1),l=e.ref(!0),i=e.ref(null);let r,s,u=t.initialIndex||0,c=!1;const d=e.computed(()=>"q-infinite-scroll__loading"+(!0===a.value?"":" invisible"));function v(){if(!0===t.disable||!0===a.value||!1===l.value)return;const e=Oo(r),o=zo(r),n=Vt(r);!1===t.reverse?o+n+t.offset>=e&&p():o<t.offset&&p()}function p(){if(!0===t.disable||!0===a.value||!1===l.value)return;u++,a.value=!0;const o=Oo(r);n("load",u,n=>{!0===l.value&&(a.value=!1,e.nextTick(()=>{if(!0===t.reverse){const e=Oo(r),t=zo(r),n=e-o;Ro(r,t+n)}!0===n?h():i.value&&i.value.closest("body")&&s()}))})}function m(){u=0}function f(){!1===l.value&&(l.value=!0,r.addEventListener("scroll",s,ps)),v()}function h(){!0===l.value&&(l.value=!1,a.value=!1,r.removeEventListener("scroll",s,ps))}function g(){r&&!0===l.value&&r.removeEventListener("scroll",s,ps),r=Bo(i.value,t.scrollTarget),!0===l.value&&r.addEventListener("scroll",s,ps)}function b(e){u=e}const y=e.getCurrentInstance();function w(e){e=parseInt(e,10);const t=s;s=e<=0?v:B(v,!0===isNaN(e)?100:e),r&&!0===l.value&&(void 0!==t&&r.removeEventListener("scroll",t,ps),r.addEventListener("scroll",s,ps))}return Object.assign(y.proxy,{poll:()=>{void 0!==s&&s()},trigger:p,stop:h,reset:m,resume:f,setIndex:b}),e.watch(()=>t.disable,e=>{!0===e?h():f()}),e.watch(()=>t.reverse,e=>{!1===a.value&&!0===l.value&&v()}),e.watch(()=>t.scrollTarget,g),e.watch(()=>t.debounce,w),e.onActivated(()=>{r&&!1!==c&&Ro(r,c)}),e.onDeactivated(()=>{c=!!r&&zo(r)}),e.onBeforeUnmount(()=>{!0===l.value&&r.removeEventListener("scroll",s,ps)}),e.onMounted(()=>{if(w(t.debounce),g(),!0===t.reverse){const e=Oo(r),t=Vt(r);Ro(r,e-t)}v()}),()=>{const n=je(o.default,[]);return!0!==t.disable&&!0===l.value&&n[!1===t.reverse?"push":"unshift"](e.h("div",{class:d.value},Ie(o.loading))),e.h("div",{class:"q-infinite-scroll",ref:i},n)}}}),fs=be({name:"QInnerLoading",props:{...it,...qo,showing:Boolean,color:String,size:{type:[String,Number],default:42},label:String,labelClass:String,labelStyle:[String,Array,Object]},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=rt(t,n.proxy.$q),{transition:l,transitionStyle:i}=ko(t,e.computed(()=>t.showing)),r=e.computed(()=>"q-inner-loading absolute-full column flex-center"+(!0===a.value?" q-inner-loading--dark":"")),s=e.computed(()=>"q-inner-loading__label"+(void 0!==t.labelClass?` ${t.labelClass}`:""));function u(){const o=[e.h(Tt,{size:t.size,color:t.color})];return void 0!==t.label&&o.push(e.h("div",{class:s.value,style:t.labelStyle},[t.label])),o}function c(){return!0===t.showing?e.h("div",{class:r.value,style:i.value},void 0!==o.default?o.default():u()):null}return()=>e.h(e.Transition,{name:l.value,appear:!0},c)}});const hs={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},gs={"#":{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()}},bs=Object.keys(gs);bs.forEach(e=>{gs[e].regex=new RegExp(gs[e].pattern)});const ys=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+bs.join("")+"])|(.)","g"),ws=/[.*+?^${}()|[\]\\]/g,xs=String.fromCharCode(1),_s={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Ss(t,o,n,a){let l,i,r,s;const u=e.ref(null),c=e.ref(v());function d(){return!0===t.autogrow||["textarea","text","search","url","tel","password"].includes(t.type)}function v(){if(m(),!0===u.value){const e=y(x(t.modelValue));return!1!==t.fillMask?_(e):e}return t.modelValue}function p(e){if(e<l.length)return l.slice(-e);let t="",o=l;const n=o.indexOf(xs);if(n>-1){for(let n=e-o.length;n>0;n--)t+=xs;o=o.slice(0,n)+t+o.slice(n)}return o}function m(){if(u.value=void 0!==t.mask&&t.mask.length>0&&d(),!1===u.value)return s=void 0,l="",void(i="");const e=void 0===hs[t.mask]?t.mask:hs[t.mask],o="string"===typeof t.fillMask&&t.fillMask.length>0?t.fillMask.slice(0,1):"_",n=o.replace(ws,"\\$&"),a=[],c=[],v=[];let p=!0===t.reverseFillMask,m="",f="";e.replace(ys,(e,t,o,n,l)=>{if(void 0!==n){const e=gs[n];v.push(e),f=e.negate,!0===p&&(c.push("(?:"+f+"+)?("+e.pattern+"+)?(?:"+f+"+)?("+e.pattern+"+)?"),p=!1),c.push("(?:"+f+"+)?("+e.pattern+")?")}else if(void 0!==o)m="\\"+("\\"===o?"":o),v.push(o),a.push("([^"+m+"]+)?"+m+"?");else{const e=void 0!==t?t:l;m="\\"===e?"\\\\\\\\":e.replace(ws,"\\\\$&"),v.push(e),a.push("([^"+m+"]+)?"+m+"?")}});const h=new RegExp("^"+a.join("")+"("+(""===m?".":"[^"+m+"]")+"+)?$"),g=c.length-1,b=c.map((e,o)=>{return 0===o&&!0===t.reverseFillMask?new RegExp("^"+n+"*"+e):o===g?new RegExp("^"+e+"("+(""===f?".":f)+"+)?"+(!0===t.reverseFillMask?"$":n+"*")):new RegExp("^"+e)});r=v,s=(e=>{const t=h.exec(e);null!==t&&(e=t.slice(1).join(""));const o=[],n=b.length;for(let a=0,l=e;a<n;a++){const e=b[a].exec(l);if(null===e)break;l=l.slice(e.shift().length),o.push(...e)}return o.length>0?o.join(""):e}),l=v.map(e=>"string"===typeof e?e:xs).join(""),i=l.split(xs).join(o)}function f(o,r,s){const u=a.value,d=u.selectionEnd,v=u.value.length-d,p=x(o);!0===r&&m();const f=y(p),h=!1!==t.fillMask?_(f):f,b=c.value!==h;u.value!==h&&(u.value=h),!0===b&&(c.value=h),document.activeElement===u&&e.nextTick(()=>{if(h!==i)if("insertFromPaste"!==s||!0===t.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(s)>-1){const e=!0===t.reverseFillMask?0===d?h.length>f.length?1:0:Math.max(0,h.length-(h===i?0:Math.min(f.length,v)+1))+1:d;u.setSelectionRange(e,e,"forward")}else if(!0===t.reverseFillMask)if(!0===b){const e=Math.max(0,h.length-(h===i?0:Math.min(f.length,v+1)));1===e&&1===d?u.setSelectionRange(e,e,"forward"):g.rightReverse(u,e,e)}else{const e=h.length-v;u.setSelectionRange(e,e,"backward")}else if(!0===b){const e=Math.max(0,l.indexOf(xs),Math.min(f.length,d)-1);g.right(u,e,e)}else{const e=d-1;g.right(u,e,e)}else{const e=d-1;g.right(u,e,e)}else{const e=!0===t.reverseFillMask?i.length:0;u.setSelectionRange(e,e,"forward")}});const w=!0===t.unmaskedValue?x(h):h;t.modelValue!==w&&n(w,!0)}function h(e,t,o){const n=y(x(e.value));t=Math.max(0,l.indexOf(xs),Math.min(n.length,t)),e.setSelectionRange(t,o,"forward")}e.watch(()=>t.type+t.autogrow,m),e.watch(()=>t.mask,e=>{if(void 0!==e)f(c.value,!0);else{const e=x(c.value);m(),t.modelValue!==e&&o("update:modelValue",e)}}),e.watch(()=>t.fillMask+t.reverseFillMask,()=>{!0===u.value&&f(c.value,!0)}),e.watch(()=>t.unmaskedValue,()=>{!0===u.value&&f(c.value)});const g={left(e,t,o,n){const a=-1===l.slice(t-1).indexOf(xs);let i=Math.max(0,t-1);for(;i>=0;i--)if(l[i]===xs){t=i,!0===a&&t++;break}if(i<0&&void 0!==l[t]&&l[t]!==xs)return g.right(e,0,0);t>=0&&e.setSelectionRange(t,!0===n?o:t,"backward")},right(e,t,o,n){const a=e.value.length;let i=Math.min(a,o+1);for(;i<=a;i++){if(l[i]===xs){o=i;break}l[i-1]===xs&&(o=i)}if(i>a&&void 0!==l[o-1]&&l[o-1]!==xs)return g.left(e,a,a);e.setSelectionRange(n?t:o,o,"forward")},leftReverse(e,t,o,n){const a=p(e.value.length);let l=Math.max(0,t-1);for(;l>=0;l--){if(a[l-1]===xs){t=l;break}if(a[l]===xs&&(t=l,0===l))break}if(l<0&&void 0!==a[t]&&a[t]!==xs)return g.rightReverse(e,0,0);t>=0&&e.setSelectionRange(t,!0===n?o:t,"backward")},rightReverse(e,t,o,n){const a=e.value.length,l=p(a),i=-1===l.slice(0,o+1).indexOf(xs);let r=Math.min(a,o+1);for(;r<=a;r++)if(l[r-1]===xs){o=r,o>0&&!0===i&&o--;break}if(r>a&&void 0!==l[o-1]&&l[o-1]!==xs)return g.leftReverse(e,a,a);e.setSelectionRange(!0===n?t:o,o,"forward")}};function b(e){if(!0===U(e))return;const o=a.value,n=o.selectionStart,l=o.selectionEnd;if(37===e.keyCode||39===e.keyCode){const a=g[(39===e.keyCode?"right":"left")+(!0===t.reverseFillMask?"Reverse":"")];e.preventDefault(),a(o,n,l,e.shiftKey)}else 8===e.keyCode&&!0!==t.reverseFillMask&&n===l?g.left(o,n,l,!0):46===e.keyCode&&!0===t.reverseFillMask&&n===l&&g.rightReverse(o,n,l,!0)}function y(e){if(void 0===e||null===e||""===e)return"";if(!0===t.reverseFillMask)return w(e);const o=r;let n=0,a="";for(let t=0;t<o.length;t++){const l=e[n],i=o[t];if("string"===typeof i)a+=i,l===i&&n++;else{if(void 0===l||!i.regex.test(l))return a;a+=void 0!==i.transform?i.transform(l):l,n++}}return a}function w(e){const t=r,o=l.indexOf(xs);let n=e.length-1,a="";for(let l=t.length-1;l>=0&&n>-1;l--){const i=t[l];let r=e[n];if("string"===typeof i)a=i+a,r===i&&n--;else{if(void 0===r||!i.regex.test(r))return a;do{a=(void 0!==i.transform?i.transform(r):r)+a,n--,r=e[n]}while(o===l&&void 0!==r&&i.regex.test(r))}}return a}function x(e){return"string"!==typeof e||void 0===s?"number"===typeof e?s(""+e):e:s(e)}function _(e){return i.length-e.length<=0?e:!0===t.reverseFillMask&&e.length>0?i.slice(0,-e.length)+e:e+i.slice(e.length)}return{innerValue:c,hasMask:u,moveCursorForPaste:h,updateMaskValue:f,onMaskedKeydown:b}}const Cs=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,qs=/[\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,ks=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/;function $s(e){return function(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.composing)return;t.target.composing=!1,e(t)}else"compositionupdate"===t.type?"string"===typeof t.data&&!1===Cs.test(t.data)&&!1===qs.test(t.data)&&!1===ks.test(t.data)&&(t.target.composing=!1):t.target.composing=!0}}var Ms=be({name:"QInput",inheritAttrs:!1,props:{...Wr,..._s,..._n,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Yr,"paste","change"],setup(t,{emit:o,attrs:n}){const a={};let l,i,r,s,u=NaN;const c=e.ref(null),d=qn(t),{innerValue:v,hasMask:p,moveCursorForPaste:m,updateMaskValue:f,onMaskedKeydown:h}=Ss(t,o,B,c),g=ns(t,!0),b=e.computed(()=>Ur(v.value)),y=$s(T),w=Kr(),x=e.computed(()=>"textarea"===t.type||!0===t.autogrow),_=e.computed(()=>!0===x.value||["text","search","url","tel","password"].includes(t.type)),C=e.computed(()=>{const e={...w.splitAttrs.listeners.value,onInput:T,onPaste:M,onChange:V,onBlur:z,onFocus:S};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=y,!0===p.value&&(e.onKeydown=h),!0===t.autogrow&&(e.onAnimationend=O),e}),q=e.computed(()=>{const e={tabindex:0,"data-autofocus":!0===t.autofocus||void 0,rows:"textarea"===t.type?6:void 0,"aria-label":t.label,name:d.value,...w.splitAttrs.attributes.value,id:w.targetUid.value,maxlength:t.maxlength,disabled:!0===t.disable,readonly:!0===t.readonly};return!1===x.value&&(e.type=t.type),!0===t.autogrow&&(e.rows=1),e});function k(){vo(()=>{const e=document.activeElement;null===c.value||c.value===e||null!==e&&e.id===w.targetUid.value||c.value.focus()})}function $(){null!==c.value&&c.value.select()}function M(e){if(!0===p.value&&!0!==t.reverseFillMask){const t=e.target;m(t,t.selectionStart,t.selectionEnd)}o("paste",e)}function T(n){if(!n||!n.target||!0===n.target.composing)return;if("file"===t.type)return void o("update:modelValue",n.target.files);const a=n.target.value;if(!0===p.value)f(a,!1,n.inputType);else if(B(a),!0===_.value&&n.target===document.activeElement){const{selectionStart:t,selectionEnd:o}=n.target;void 0!==t&&void 0!==o&&e.nextTick(()=>{n.target===document.activeElement&&0===a.indexOf(n.target.value)&&n.target.setSelectionRange(t,o)})}!0===t.autogrow&&O()}function B(n,c){s=(()=>{"number"!==t.type&&!0===a.hasOwnProperty("value")&&delete a.value,t.modelValue!==n&&u!==n&&(!0===c&&(i=!0),o("update:modelValue",n),e.nextTick(()=>{u===n&&(u=NaN)})),s=void 0}),"number"===t.type&&(l=!0,a.value=n),void 0!==t.debounce?(clearTimeout(r),a.value=n,r=setTimeout(s,t.debounce)):s()}function O(){const e=c.value;if(null!==e){const t=e.parentNode.style;t.marginBottom=e.scrollHeight-1+"px",e.style.height="1px",e.style.height=e.scrollHeight+"px",t.marginBottom=""}}function V(e){y(e),clearTimeout(r),void 0!==s&&s(),o("change",e.target.value)}function z(e){void 0!==e&&S(e),clearTimeout(r),void 0!==s&&s(),l=!1,i=!1,delete a.value,"file"!==t.type&&setTimeout(()=>{null!==c.value&&(c.value.value=void 0!==v.value?v.value:"")})}function L(){return!0===a.hasOwnProperty("value")?a.value:void 0!==v.value?v.value:""}e.watch(()=>t.modelValue,o=>{if(!0===p.value){if(!0===i)return void(i=!1);f(o)}else v.value!==o&&(v.value=o,"number"===t.type&&!0===a.hasOwnProperty("value")&&(!0===l?l=!1:delete a.value));!0===t.autogrow&&e.nextTick(O)}),e.watch(()=>t.autogrow,t=>{!0===t?e.nextTick(O):null!==c.value&&n.rows>0&&(c.value.style.height="auto")}),e.watch(()=>t.dense,()=>{!0===t.autogrow&&e.nextTick(O)}),e.onBeforeUnmount(()=>{z()}),e.onMounted(()=>{!0===t.autogrow&&O()}),Object.assign(w,{innerValue:v,fieldClass:e.computed(()=>`q-${!0===x.value?"textarea":"input"}`+(!0===t.autogrow?" q-textarea--autogrow":"")),hasShadow:e.computed(()=>"file"!==t.type&&"string"===typeof t.shadowText&&t.shadowText.length>0),inputRef:c,emitValue:B,hasValue:b,floatingLabel:e.computed(()=>!0===b.value||Ur(t.displayValue)),getControl:()=>{return e.h(!0===x.value?"textarea":"input",{ref:c,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...q.value,...C.value,..."file"!==t.type?{value:L()}:g.value})},getShadowControl:()=>{return e.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===x.value?"":" text-no-wrap")},[e.h("span",{class:"invisible"},L()),e.h("span",t.shadowText)])}});const E=Xr(w),P=e.getCurrentInstance();return Object.assign(P.proxy,{focus:k,select:$,getNativeElement:()=>c.value}),E}});const Ts={threshold:0,root:null,rootMargin:"0px"};function Bs(e,t,o){let n,a,l;"function"===typeof o?(n=o,a=Ts,l=void 0===t.cfg):(n=o.handler,a=Object.assign({},Ts,o.cfg),l=void 0===t.cfg||!1===Yn(t.cfg,a)),t.handler!==n&&(t.handler=n),!0===l&&(t.cfg=a,void 0!==t.observer&&t.observer.unobserve(e),t.observer=new IntersectionObserver(([o])=>{if("function"===typeof t.handler){if(null===o.rootBounds&&!0===document.body.contains(e))return t.observer.unobserve(e),void t.observer.observe(e);const n=t.handler(o,t.observer);(!1===n||!0===t.once&&!0===o.isIntersecting)&&Os(e)}},a),t.observer.observe(e))}function Os(e){const t=e.__qvisible;void 0!==t&&(void 0!==t.observer&&t.observer.unobserve(e),delete e.__qvisible)}var Vs=ye({name:"intersection",mounted(e,{modifiers:t,value:o}){const n={once:!0===t.once};Bs(e,n,o),e.__qvisible=n},updated(e,t){const o=e.__qvisible;void 0!==o&&Bs(e,o,t.value)},beforeUnmount:Os}),zs=be({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(o,{slots:n,emit:a}){const l=e.ref(!0===t.value&&o.ssrPrerender),i=e.computed(()=>void 0!==o.root||void 0!==o.margin||void 0!==o.threshold?{handler:u,cfg:{root:o.root,rootMargin:o.margin,threshold:o.threshold}}:u),r=e.computed(()=>!0!==o.disable&&(!0!==t.value||!0!==o.once||!0!==o.ssrPrerender)),s=e.computed(()=>{return[[Vs,i.value,void 0,{once:o.once}]]});function u(e){l.value!==e.isIntersecting&&(l.value=e.isIntersecting,void 0!==o.onVisibility&&a("visibility",l.value))}function c(){return!0===l.value?[e.h("div",{key:"content"},Ie(n.default))]:void 0}return()=>{const t=o.transition?[e.h(e.Transition,{name:"q-transition--"+o.transition},c)]:c();return He(o.tag,{class:"q-intersection"},t,"main",r.value,()=>s.value)}}}),Ls=be({name:"QList",props:{...it,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=rt(t,n.proxy.$q),l=e.computed(()=>"q-list"+(!0===t.bordered?" q-list--bordered":"")+(!0===t.dense?" q-list--dense":"")+(!0===t.separator?" q-list--separator":"")+(!0===a.value?" q-list--dark":"")+(!0===t.padding?" q-list--padding":""));return()=>e.h("div",{class:l.value},Ie(o.default))}});const Es=[34,37,40,33,39,38],Ps=Object.keys(va);var As=be({name:"QKnob",props:{..._n,...va,modelValue:{type:Number,required:!0},step:{type:Number,default:1,validator:e=>e>=0},tabindex:{type:[Number,String],default:0},disable:Boolean,readonly:Boolean},emits:["update:modelValue","change","drag-value"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref(t.modelValue),r=e.ref(!1);let s,u;e.watch(()=>t.modelValue,e=>{if(e<t.min)i.value=t.min;else{if(!(e>t.max))return void(e!==i.value&&(i.value=e));i.value=t.max}i.value!==t.modelValue&&(n("update:modelValue",i.value),n("change",i.value))});const c=e.computed(()=>!1===t.disable&&!1===t.readonly),d=e.computed(()=>"q-knob non-selectable"+(!0===c.value?" q-knob--editable":!0===t.disable?" disabled":"")),v=e.computed(()=>(String(t.step).trim("0").split(".")[1]||"").length),p=e.computed(()=>0===t.step?1:t.step),m=e.computed(()=>!0===t.instantFeedback||!0===r.value),f=!0===l.platform.is.mobile?e.computed(()=>!0===c.value?{onClick:S}:{}):e.computed(()=>!0===c.value?{onMousedown:_,onClick:S,onKeydown:C,onKeyup:$}:{}),h=e.computed(()=>!0===c.value?{tabindex:t.tabindex}:{[`aria-${!0===t.disable?"disabled":"readonly"}`]:"true"}),g=e.computed(()=>{const e={};return Ps.forEach(o=>{e[o]=t[o]}),e});function y(e){e.isFinal?(k(e.evt,!0),r.value=!1):e.isFirst?(x(),r.value=!0,k(e.evt)):k(e.evt)}const w=e.computed(()=>{return[[wa,y,void 0,{prevent:!0,stop:!0,mouse:!0}]]});function x(){const{top:e,left:t,width:o,height:n}=u.getBoundingClientRect();s={top:e+n/2,left:t+o/2}}function _(e){x(),k(e)}function S(e){x(),k(e,!0)}function C(e){if(!Es.includes(e.keyCode))return;q(e);const o=([34,33].includes(e.keyCode)?10:1)*p.value,n=[34,37,40].includes(e.keyCode)?-o:o;i.value=Se(parseFloat((i.value+n).toFixed(v.value)),t.min,t.max),M()}function k(e,o){const a=b(e),r=Math.abs(a.top-s.top),u=Math.sqrt(r**2+Math.abs(a.left-s.left)**2);let c=Math.asin(r/u)*(180/Math.PI);c=a.top<s.top?s.left<a.left?90-c:270+c:s.left<a.left?c+90:270-c,t.angle&&(c=Ce(c-t.angle,0,360)),!0===l.lang.rtl&&(c=360-c);let d=t.min+c/360*(t.max-t.min);if(0!==p.value){const e=d%p.value;d=d-e+(Math.abs(e)>=p.value/2?(e<0?-1:1)*p.value:0),d=parseFloat(d.toFixed(v.value))}d=Se(d,t.min,t.max),n("drag-value",d),i.value!==d&&(i.value=d),M(o)}function $(e){Es.includes(e.keyCode)&&M(!0)}function M(e){t.modelValue!==i.value&&n("update:modelValue",i.value),!0===e&&n("change",i.value)}const T=Sn(t);function B(){return e.h("input",T.value)}return e.onMounted(()=>{u=a.$el}),()=>{const n={class:d.value,role:"slider","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,...h.value,...g.value,value:i.value,instantFeedback:m.value,...f.value},a={default:o.default};return!0===c.value?(void 0!==t.name&&(a.internal=B),e.withDirectives(e.h(ga,n,a),w.value)):e.h(ga,n,a)}}});const{passive:Fs}=p,Rs=["both","horizontal","vertical"];var Is=be({name:"QScrollObserver",props:{axis:{type:String,validator:e=>Rs.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(t,{emit:o}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let a,l,i=null;function r(){i=null;const e=Math.max(0,zo(a)),l=Lo(a),r={top:e-n.position.top,left:l-n.position.left};if("vertical"===t.axis&&0===r.top||"horizontal"===t.axis&&0===r.left)return;const s=Math.abs(r.top)>=Math.abs(r.left)?r.top<0?"up":"down":r.left<0?"left":"right";n.position={top:e,left:l},n.directionChanged=n.direction!==s,n.delta=r,!0===n.directionChanged&&(n.direction=s,n.inflectionPoint=n.position),o("scroll",{...n})}function s(){a=Bo(l,t.scrollTarget),a.addEventListener("scroll",c,Fs),c(!0)}function u(){void 0!==a&&(a.removeEventListener("scroll",c,Fs),a=void 0)}function c(e){!0===e||0===t.debounce||"0"===t.debounce?r():null===i&&(i=t.debounce?setTimeout(r,t.debounce):requestAnimationFrame(r))}e.watch(()=>t.scrollTarget,()=>{u(),s()});const d=e.getCurrentInstance();return e.onMounted(()=>{l=d.proxy.$el.parentNode,s()}),e.onBeforeUnmount(()=>{clearTimeout(i),cancelAnimationFrame(i),u()}),Object.assign(d.proxy,{trigger:c,getPosition:()=>n}),m}}),js=be({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(o,{slots:n,emit:a}){const{proxy:{$q:l}}=e.getCurrentInstance(),i=e.ref(null),r=e.ref(l.screen.height),s=e.ref(!0===o.container?0:l.screen.width),u=e.ref({position:0,direction:"down",inflectionPoint:0}),c=e.ref(0),d=e.ref(!0===t.value?0:No()),v=e.computed(()=>"q-layout q-layout--"+(!0===o.container?"containerized":"standard")),p=e.computed(()=>!1===o.container?{minHeight:l.screen.height+"px"}:null),m=e.computed(()=>0!==d.value?{[!0===l.lang.rtl?"left":"right"]:`${d.value}px`}:null),f=e.computed(()=>0!==d.value?{[!0===l.lang.rtl?"right":"left"]:0,[!0===l.lang.rtl?"left":"right"]:`-${d.value}px`,width:`calc(100% + ${d.value}px)`}:null);function h(e){if(!0===o.container||!0!==document.qScrollPrevented){const t={position:e.position.top,direction:e.direction,directionChanged:e.directionChanged,inflectionPoint:e.inflectionPoint.top,delta:e.delta.top};u.value=t,void 0!==o.onScroll&&a("scroll",t)}}function g(e){const{height:t,width:n}=e;let l=!1;r.value!==t&&(l=!0,r.value=t,void 0!==o.onScrollHeight&&a("scroll-height",t),y()),s.value!==n&&(l=!0,s.value=n),!0===l&&void 0!==o.onResize&&a("resize",e)}function b({height:e}){c.value!==e&&(c.value=e,y())}function y(){if(!0===o.container){const e=r.value>c.value?No():0;d.value!==e&&(d.value=e)}}let w;const x={instances:{},view:e.computed(()=>o.view),isContainer:e.computed(()=>o.container),rootRef:i,height:r,containerHeight:c,scrollbarWidth:d,totalWidth:e.computed(()=>s.value+d.value),rows:e.computed(()=>{const e=o.view.toLowerCase().split(" ");return{top:e[0].split(""),middle:e[1].split(""),bottom:e[2].split("")}}),header:e.reactive({size:0,offset:0,space:!1}),right:e.reactive({size:300,offset:0,space:!1}),footer:e.reactive({size:0,offset:0,space:!1}),left:e.reactive({size:300,offset:0,space:!1}),scroll:u,animate(){void 0!==w?clearTimeout(w):document.body.classList.add("q-body--layout-animate"),w=setTimeout(()=>{document.body.classList.remove("q-body--layout-animate"),w=void 0},155)},update(e,t,o){x[e][t]=o}};return e.provide(ae,x),()=>{const t=Ne(n.default,[e.h(Is,{onScroll:h}),e.h(Oa,{onResize:g})]),a=e.h("div",{class:v.value,style:p.value,ref:!0===o.container?void 0:i},t);return!0===o.container?e.h("div",{class:"q-layout-container overflow-hidden",ref:i},[e.h(Oa,{onResize:b}),e.h("div",{class:"absolute-full",style:m.value},[e.h("div",{class:"scroll",style:f.value},[a])])]):a}}});const Ns=["horizontal","vertical","cell","none"];var Ds=be({name:"QMarkupTable",props:{...it,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>Ns.includes(e)}},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=rt(t,n.proxy.$q),l=e.computed(()=>"q-markup-table q-table__container q-table__card"+` q-table--${t.separator}-separator`+(!0===a.value?" q-table--dark q-table__card--dark q-dark":"")+(!0===t.dense?" q-table--dense":"")+(!0===t.flat?" q-table--flat":"")+(!0===t.bordered?" q-table--bordered":"")+(!0===t.square?" q-table--square":"")+(!1===t.wrapCells?" q-table--no-wrap":""));return()=>e.h("div",{class:l.value},[e.h("table",{class:"q-table"},Ie(o.default))])}}),Hs=be({name:"QNoSsr",props:{tag:{type:String,default:"div"},placeholder:String},setup(t,{slots:o}){const n=Ma();return()=>{const a={};if(!0===n.value){const n=Ie(o.default);return void 0===n?n:n.length>1?e.h(t.tag,a,n):n[0]}a.class="q-no-ssr-placeholder";const l=Ie(o.placeholder);return void 0!==l?l.length>1?e.h(t.tag,a,l):l[0]:void 0!==t.placeholder?e.h(t.tag,a,t.placeholder):void 0}}});const Qs=e.h("svg",{class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24","aria-hidden":"true"},[e.h("path",{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}),e.h("path",{class:"q-radio__check",d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"})]);var Us=be({name:"QRadio",props:{...it,...Fe,..._n,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),l=rt(t,a.$q),i=Re(t,aa),r=e.ref(null),{refocusTargetEl:s,refocusTarget:u}=na(t,r),c=e.computed(()=>t.modelValue===t.val),d=e.computed(()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(!0===t.disable?" disabled":"")+(!0===l.value?" q-radio--dark":"")+(!0===t.dense?" q-radio--dense":"")+(!0===t.leftLabel?" reverse":"")),v=e.computed(()=>{const e=void 0===t.color||!0!==t.keepColor&&!0!==c.value?"":` text-${t.color}`;return"q-radio__inner relative-position "+`q-radio__inner--${!0===c.value?"truthy":"falsy"}${e}`}),p=e.computed(()=>!0===t.disable?-1:t.tabindex||0),m=e.computed(()=>{const e={type:"radio"};return void 0!==t.name&&Object.assign(e,{name:t.name,value:t.val}),e}),f=e.computed(()=>void 0!==t.name&&!0===c.value?{checked:!0}:{}),h=Cn(m,f);function g(e){void 0!==e&&(q(e),u(e)),!0!==t.disable&&!0!==c.value&&n("update:modelValue",t.val,e)}function b(e){13!==e.keyCode&&32!==e.keyCode||q(e)}function y(e){13!==e.keyCode&&32!==e.keyCode||g(e)}return Object.assign(a,{set:g}),()=>{const n=[Qs];!0!==t.disable&&h(n,"unshift"," q-radio__native q-ma-none q-pa-none");const a=[e.h("div",{class:v.value,style:i.value},n)];null!==s.value&&a.push(s.value);const l=void 0!==t.label?Ne(o.default,[t.label]):Ie(o.default);return void 0!==l&&a.push(e.h("div",{class:"q-radio__label q-anchor--skip"},l)),e.h("div",{ref:r,class:d.value,tabindex:p.value,role:"radio","aria-label":t.label,"aria-checked":!0===c.value?"true":"false","aria-disabled":!0===t.disable?"true":void 0,onClick:g,onKeydown:b,onKeyup:y},a)}}}),Ws=be({name:"QToggle",props:{...la,icon:String,checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,iconColor:String},emits:ia,setup(t){function o(o,n){const a=e.computed(()=>(!0===o.value?t.checkedIcon:!0===n.value?t.indeterminateIcon:t.uncheckedIcon)||t.icon),l=e.computed(()=>{if(!0===o.value)return t.iconColor});return()=>[e.h("div",{class:"q-toggle__track"}),e.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},void 0!==a.value?[e.h(ot,{name:a.value,color:l.value})]:void 0)]}return ra("toggle",o)}});const Ys={radio:Us,checkbox:ua,toggle:Ws},Ks=Object.keys(Ys);var Xs=be({name:"QOptionGroup",props:{...it,modelValue:{required:!0},options:{type:Array,validator:e=>e.every(e=>"value"in e&&"label"in e)},name:String,type:{default:"radio",validator:e=>Ks.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:["update:modelValue"],setup(t,{emit:o,slots:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=Array.isArray(t.modelValue);"radio"===t.type?!0===l&&console.error("q-option-group: model should not be array"):!1===l&&console.error("q-option-group: model should be array in your case");const i=rt(t,a),r=e.computed(()=>Ys[t.type]),s=e.computed(()=>"q-option-group q-gutter-x-sm"+(!0===t.inline?" q-option-group--inline":"")),u=e.computed(()=>{const e={};return"radio"===t.type&&(e.role="radiogroup",!0===t.disable&&(e["aria-disabled"]="true")),e});function c(e){o("update:modelValue",e)}return()=>e.h("div",{class:s.value,...u.value},t.options.map((o,a)=>{const l=void 0!==n["label-"+a]?()=>n["label-"+a](o):void 0!==n.label?()=>n.label(o):void 0;return e.h("div",[e.h(r.value,{modelValue:t.modelValue,val:o.value,name:void 0===o.name?t.name:o.name,disable:t.disable||o.disable,label:void 0===l?o.label:null,leftLabel:void 0===o.leftLabel?t.leftLabel:o.leftLabel,color:void 0===o.color?t.color:o.color,checkedIcon:o.checkedIcon,uncheckedIcon:o.uncheckedIcon,dark:o.dark||i.value,size:void 0===o.size?t.size:o.size,dense:t.dense,keepColor:void 0===o.keepColor?t.keepColor:o.keepColor,"onUpdate:modelValue":c},l)])}))}}),Zs=be({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.inject(ae);e.inject(le,()=>{console.error("QPage needs to be child of QPageContainer")});const l=e.computed(()=>{const e=(!0===a.header.space?a.header.size:0)+(!0===a.footer.space?a.footer.size:0);if("function"===typeof t.styleFn){const o=!0===a.isContainer.value?a.containerHeight.value:n.screen.height;return t.styleFn(e,o)}return{minHeight:!0===a.isContainer.value?a.containerHeight.value-e+"px":0===n.screen.height?0!==e?`calc(100vh - ${e}px)`:"100vh":n.screen.height-e+"px"}}),i=e.computed(()=>`q-page ${!0===t.padding?" q-layout-padding":""}`);return()=>e.h("main",{class:i.value,style:l.value},Ie(o.default))}}),Gs=be({name:"QPageContainer",setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.inject(ae,()=>{console.error("QPageContainer needs to be child of QLayout")});e.provide(le,!0);const l=e.computed(()=>{const e={};return!0===a.header.space&&(e.paddingTop=`${a.header.size}px`),!0===a.right.space&&(e[`padding${!0===n.lang.rtl?"Left":"Right"}`]=`${a.right.size}px`),!0===a.footer.space&&(e.paddingBottom=`${a.footer.size}px`),!0===a.left.space&&(e[`padding${!0===n.lang.rtl?"Right":"Left"}`]=`${a.left.size}px`),e});return()=>e.h("div",{class:"q-page-container",style:l.value},Ie(o.default))}});const Js={position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,validator:e=>2===e.length},expand:Boolean};function eu(){const{props:t,proxy:o}=e.getCurrentInstance(),{$q:n}=o,a=e.inject(ae,()=>{console.error("QPageSticky needs to be child of QLayout")}),l=e.computed(()=>{const e=t.position;return{top:e.indexOf("top")>-1,right:e.indexOf("right")>-1,bottom:e.indexOf("bottom")>-1,left:e.indexOf("left")>-1,vertical:"top"===e||"bottom"===e,horizontal:"left"===e||"right"===e}}),i=e.computed(()=>a.header.offset),r=e.computed(()=>a.right.offset),s=e.computed(()=>a.footer.offset),u=e.computed(()=>a.left.offset),c=e.computed(()=>{let e=0,o=0;const a=l.value,c=!0===n.lang.rtl?-1:1;!0===a.top&&0!==i.value?o=`${i.value}px`:!0===a.bottom&&0!==s.value&&(o=`${-s.value}px`),!0===a.left&&0!==u.value?e=`${c*u.value}px`:!0===a.right&&0!==r.value&&(e=`${-c*r.value}px`);const d={transform:`translate(${e}, ${o})`};return t.offset&&(d.margin=`${t.offset[1]}px ${t.offset[0]}px`),!0===a.vertical?(0!==u.value&&(d[!0===n.lang.rtl?"right":"left"]=`${u.value}px`),0!==r.value&&(d[!0===n.lang.rtl?"left":"right"]=`${r.value}px`)):!0===a.horizontal&&(0!==i.value&&(d.top=`${i.value}px`),0!==s.value&&(d.bottom=`${s.value}px`)),d}),d=e.computed(()=>`q-page-sticky row flex-center fixed-${t.position}`+` q-page-sticky--${!0===t.expand?"expand":"shrink"}`);function v(o){const n=Ie(o.default);return e.h("div",{class:d.value,style:c.value},!0===t.expand?n:[e.h("div",n)])}return{$layout:a,getStickyContent:v}}var tu=be({name:"QPageScroller",props:{...Js,scrollOffset:{type:Number,default:1e3},reverse:Boolean,duration:{type:Number,default:300},offset:{default:()=>[18,18]}},emits:["click"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),{$layout:l,getStickyContent:i}=eu(),r=e.ref(null);let s;const u=e.computed(()=>l.height.value-(!0===l.isContainer.value?l.containerHeight.value:a.screen.height));function c(){return!0===t.reverse?u.value-l.scroll.value.position>t.scrollOffset:l.scroll.value.position>t.scrollOffset}const d=e.ref(c());function v(){const e=c();d.value!==e&&(d.value=e)}function p(){!0===t.reverse?void 0===s&&(s=e.watch(u,v)):m()}function m(){void 0!==s&&(s(),s=void 0)}function f(e){const o=Bo(!0===l.isContainer.value?r.value:l.rootRef.value);Ro(o,!0===t.reverse?l.height.value:0,t.duration),n("click",e)}function h(){return!0===d.value?e.h("div",{ref:r,class:"q-page-scroller",onClick:f},i(o)):null}return e.watch(l.scroll,v),e.watch(()=>t.reverse,p),p(),e.onBeforeUnmount(m),()=>e.h(e.Transition,{name:"q-transition--fade"},h)}}),ou=be({name:"QPageSticky",props:Js,setup(e,{slots:t}){const{getStickyContent:o}=eu();return()=>o(t)}}),nu=be({name:"QPagination",props:{...it,modelValue:{type:Number,required:!0},min:{type:Number,default:1},max:{type:Number,required:!0},color:{type:String,default:"primary"},textColor:String,activeColor:String,activeTextColor:String,inputStyle:[Array,String,Object],inputClass:[Array,String,Object],size:String,disable:Boolean,input:Boolean,iconPrev:String,iconNext:String,iconFirst:String,iconLast:String,toFn:Function,boundaryLinks:{type:Boolean,default:null},boundaryNumbers:{type:Boolean,default:null},directionLinks:{type:Boolean,default:null},ellipses:{type:Boolean,default:null},maxPages:{type:Number,default:0,validator:e=>e>=0},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,dense:Boolean,padding:{type:String,default:"3px 2px"}},emits:["update:modelValue"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),{$q:a}=n,l=rt(t,a),i=e.ref(null),r=e.computed({get:()=>t.modelValue,set:e=>{if(e=parseInt(e,10),t.disable||isNaN(e))return;const n=Se(e,t.min,t.max);t.modelValue!==n&&o("update:modelValue",n)}});function s(e,t){return[!0,!1].includes(e)?e:t}e.watch(()=>t.min+t.max,()=>{r.value=t.modelValue});const u=e.computed(()=>"q-pagination row no-wrap items-center"+(!0===t.disable?" disabled":"")),c=e.computed(()=>r.value+" / "+t.max),d=e.computed(()=>s(t.boundaryLinks,t.input)),v=e.computed(()=>s(t.boundaryNumbers,!t.input)),p=e.computed(()=>s(t.directionLinks,t.input)),m=e.computed(()=>s(t.ellipses,!t.input)),f=e.computed(()=>{const e=[t.iconFirst||a.iconSet.pagination.first,t.iconPrev||a.iconSet.pagination.prev,t.iconNext||a.iconSet.pagination.next,t.iconLast||a.iconSet.pagination.last];return!0===a.lang.rtl?e.reverse():e}),h=e.computed(()=>!0===t.disable?{"aria-disabled":"true"}:{}),g=e.computed(()=>({round:t.round,rounded:t.rounded,outline:t.outline,unelevated:t.unelevated,push:t.push,glossy:t.glossy,dense:t.dense,padding:t.padding,color:t.color,flat:!0,size:t.size,ripple:null===t.ripple||t.ripple})),b=e.computed(()=>({flat:t.flat,color:t.activeColor||t.color,textColor:t.activeTextColor||t.textColor}));function y(e){r.value=e}function w(e){r.value=r.value+e}function x(){r.value=i.value,i.value=null}function _(o,n){const a={...g.value,...o};return void 0!==n&&(void 0!==t.toFn?a.to=t.toFn(n):a.onClick=(()=>y(n))),e.h(Gt,a)}return Object.assign(n,{set:y,setByOffset:w}),()=>{const o=[],n=[],a=[];if(d.value&&(o.push(_({key:"bls",disable:t.disable||t.modelValue<=t.min,icon:f.value[0]},t.min)),n.unshift(_({key:"ble",disable:t.disable||t.modelValue>=t.max,icon:f.value[3]},t.max))),p.value&&(o.push(_({key:"bdp",disable:t.disable||t.modelValue<=t.min,icon:f.value[1]},t.modelValue-1)),n.unshift(_({key:"bdn",disable:t.disable||t.modelValue>=t.max,icon:f.value[2]},t.modelValue+1))),!0===t.input)a.push(e.h(Ms,{class:"inline",style:{width:`${c.value.length/1.5}em`},type:"number",dense:!0,value:i.value,disable:t.disable,dark:l.value,borderless:!0,inputClass:t.inputClass,inputStyle:t.inputStyle,placeholder:c.value,min:t.min,max:t.max,"onUpdate:modelValue"(e){i.value=e},onKeyup(e){!0===W(e,13)&&x()},onBlur:x}));else{let e=Math.max(t.maxPages,1+(m.value?2:0)+(v.value?2:0)),l=t.min,i=t.max,r=!1,s=!1,u=!1,c=!1;t.maxPages&&e<t.max-t.min+1&&(e=1+2*Math.floor(e/2),l=Math.max(t.min,Math.min(t.max-e+1,t.modelValue-Math.floor(e/2))),i=Math.min(t.max,l+e-1),v.value&&(u=!0,l+=1),m.value&&l>t.min+(v.value?1:0)&&(r=!0,l+=1),v.value&&(c=!0,i-=1),m.value&&i<t.max-(v.value?1:0)&&(s=!0,i-=1));const d={minWidth:`${Math.max(2,String(t.max).length)}em`};if(u){const e=t.min===t.modelValue;o.push(_({key:"bns",style:d,disable:t.disable,flat:!e,textColor:e?t.textColor:void 0,label:t.min},t.min))}if(c){const e=t.max===t.modelValue;n.unshift(_({key:"bne",style:d,disable:t.disable,flat:!e,textColor:e?t.textColor:void 0,label:t.max},t.max))}r&&o.push(_({key:"bes",style:d,disable:t.disable,label:"…",ripple:!1},l-1)),s&&n.unshift(_({key:"bee",style:d,disable:t.disable,label:"…",ripple:!1},i+1));for(let o=l;o<=i;o++){const e={key:`bpg${o}`,style:d,disable:t.disable,label:o};o===t.modelValue&&Object.assign(e,b.value),a.push(_(e,o))}}return e.h("div",{class:u.value,...h.value},[o,e.h("div",{class:"row justify-center"},[a]),n])}}});function au(e){let t,o,n=!1;function a(){o=arguments,!0!==n&&(n=!0,t=requestAnimationFrame(()=>{e.apply(this,o),o=void 0,n=!1}))}return a.cancel=(()=>{window.cancelAnimationFrame(t),n=!1}),a}const{passive:lu}=p;var iu=be({name:"QParallax",props:{src:String,height:{type:Number,default:500},speed:{type:Number,default:1,validator:e=>e>=0&&e<=1},scrollTarget:{default:void 0},onScroll:Function},setup(t,{slots:o,emit:n}){const a=e.ref(0),l=e.ref(null),i=e.ref(null),r=e.ref(null);let s,u,c,d,v,p;e.watch(()=>t.height,()=>{!0===s&&f()}),e.watch(()=>t.scrollTarget,()=>{!0===s&&(y(),b())});let m=e=>{a.value=e,void 0!==t.onScroll&&n("scroll",e)};function f(){let e,o,n;p===window?(e=0,o=window.innerHeight,n=o):(e=Bt(p).top,o=Vt(p),n=e+o);const a=Bt(l.value).top,i=a+t.height;if(void 0!==v||i>e&&a<n){const e=(n-a)/(t.height+o);h((c-t.height)*e*t.speed),m(e)}}let h=e=>{u.style.transform=`translate3d(-50%,${Math.round(e)}px,0)`};function g(){c=u.naturalHeight||u.videoHeight||Vt(u),!0===s&&f()}function b(){s=!0,p=Bo(l.value,t.scrollTarget),p.addEventListener("scroll",f,lu),window.addEventListener("resize",d,lu),f()}function y(){!0===s&&(s=!1,p.removeEventListener("scroll",f,lu),window.removeEventListener("resize",d,lu),p=void 0)}return e.onMounted(()=>{h=au(h),m=au(m),d=au(g),u=void 0!==o.media?i.value.children[0]:r.value,u.onload=u.onloadstart=u.loadedmetadata=g,g(),u.style.display="initial",void 0!==window.IntersectionObserver?(v=new IntersectionObserver(e=>{const t=!0===e[0].isIntersecting?b:y;t()}),v.observe(l.value)):b()}),e.onBeforeUnmount(()=>{y(),void 0!==v&&v.disconnect(),u.onload=u.onloadstart=u.loadedmetadata=null}),()=>{return e.h("div",{ref:l,class:"q-parallax",style:{height:`${t.height}px`}},[e.h("div",{ref:i,class:"q-parallax__media absolute-full"},void 0!==o.media?o.media():[e.h("img",{ref:r,src:t.src})]),e.h("div",{class:"q-parallax__content absolute-full column flex-center"},void 0!==o.content?o.content({percentScrolled:a.value}):Ie(o.default))])}}});function ru(e){const t=JSON.stringify(e);if(t)return JSON.parse(t)}var su=be({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","before-show","show","before-hide","hide"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref(null),r=e.ref(""),s=e.ref("");let u=!1;const c=e.computed(()=>{const e={initialValue:r.value,validate:t.validate,set:d,cancel:v,updatePosition:p};return Object.defineProperty(e,"value",{get:()=>s.value,set:e=>{s.value=e}}),e});function d(){!1!==t.validate(s.value)&&(!0===m()&&(n("save",s.value,r.value),n("update:modelValue",s.value)),f())}function v(){!0===m()&&n("cancel",s.value,r.value),f()}function p(){e.nextTick(()=>{i.value.updatePosition()})}function m(){return!1===Yn(s.value,r.value)}function f(){u=!0,i.value.hide()}function h(){u=!1,r.value=ru(t.modelValue),s.value=ru(t.modelValue),n("before-show")}function g(){n("show")}function b(){!1===u&&!0===m()&&(!0===t.autoSave&&!0===t.validate(s.value)?(n("save",s.value,r.value),n("update:modelValue",s.value)):n("cancel",s.value,r.value)),n("before-hide")}function y(){n("hide")}function w(){const n=void 0!==o.default?[].concat(o.default(c.value)):[];return t.title&&n.unshift(e.h("div",{class:"q-dialog__title q-mt-sm q-mb-sm"},t.title)),!0===t.buttons&&n.push(e.h("div",{class:"q-popup-edit__buttons row justify-center no-wrap"},[e.h(Gt,{flat:!0,color:t.color,label:t.labelCancel||l.lang.label.cancel,onClick:v}),e.h(Gt,{flat:!0,color:t.color,label:t.labelSet||l.lang.label.set,onClick:d})])),n}return Object.assign(a,{set:d,cancel:v,show(e){null!==i.value&&i.value.show(e)},hide(e){null!==i.value&&i.value.hide(e)},updatePosition:p}),()=>{if(!0!==t.disable)return e.h(wn,{ref:i,class:"q-popup-edit",cover:t.cover,onBeforeShow:h,onShow:g,onBeforeHide:b,onHide:y,onEscapeKey:v},w)}}}),uu=be({name:"QPopupProxy",props:{...to,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(t,{slots:o,emit:n,attrs:a}){const{proxy:l}=e.getCurrentInstance(),{$q:i}=l,r=e.ref(!1),s=e.ref(null),u=e.computed(()=>parseInt(t.breakpoint,10)),{canShow:c}=oo({showing:r});function d(){return i.screen.width<u.value||i.screen.height<u.value?"dialog":"menu"}const v=e.ref(d()),p=e.computed(()=>"menu"===v.value?{maxHeight:"99vh"}:{});function m(e){r.value=!0,n("show",e)}function f(e){r.value=!1,v.value=d(),n("hide",e)}return e.watch(()=>d(),e=>{!0!==r.value&&(v.value=e)}),Object.assign(l,{show(e){!0===c(e)&&s.value.show(e)},hide(e){s.value.hide(e)},toggle(e){s.value.toggle(e)}}),()=>{const n={ref:s,...p.value,...a,onShow:m,onHide:f};let l;return"dialog"===v.value?l=Qi:(l=wn,Object.assign(n,{target:t.target,contextMenu:t.contextMenu,noParentEvent:!0,separateClosePopup:!0})),e.h(l,n,o.default)}}});const cu={xs:2,sm:4,md:6,lg:10,xl:14};function du(e,t,o){return{transform:!0===t?`translateX(${!0===o.lang.rtl?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var vu=be({name:"QLinearProgress",props:{...it,...Fe,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(t,{slots:o}){const{proxy:n}=e.getCurrentInstance(),a=rt(t,n.$q),l=Re(t,cu),i=e.computed(()=>!0===t.indeterminate||!0===t.query),r=e.computed(()=>({...null!==l.value?l.value:{},"--q-linear-progress-speed":`${t.animationSpeed}ms`})),s=e.computed(()=>"q-linear-progress"+(void 0!==t.color?` text-${t.color}`:"")+(!0===t.reverse||!0===t.query?" q-linear-progress--reverse":"")+(!0===t.rounded?" rounded-borders":"")),u=e.computed(()=>du(void 0!==t.buffer?t.buffer:1,t.reverse,n.$q)),c=e.computed(()=>"q-linear-progress__track absolute-full"+` q-linear-progress__track--with${!0===t.instantFeedback?"out":""}-transition`+` q-linear-progress__track--${!0===a.value?"dark":"light"}`+(void 0!==t.trackColor?` bg-${t.trackColor}`:"")),d=e.computed(()=>du(!0===i.value?1:t.value,t.reverse,n.$q)),v=e.computed(()=>"q-linear-progress__model absolute-full"+` q-linear-progress__model--with${!0===t.instantFeedback?"out":""}-transition`+` q-linear-progress__model--${!0===i.value?"in":""}determinate`),p=e.computed(()=>({width:`${100*t.value}%`})),m=e.computed(()=>`q-linear-progress__stripe absolute-${!0===t.reverse?"right":"left"}`);return()=>{const n=[e.h("div",{class:c.value,style:u.value}),e.h("div",{class:v.value,style:d.value})];return!0===t.stripe&&!1===i.value&&n.push(e.h("div",{class:m.value,style:p.value})),e.h("div",{class:s.value,style:r.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===t.indeterminate?void 0:t.value},Ne(o.default,n))}}});const pu=40,mu=20;var fu=be({name:"QPullToRefresh",props:{color:String,bgColor:String,icon:String,noMouse:Boolean,disable:Boolean,scrollTarget:{default:void 0}},emits:["refresh"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref("pull"),r=e.ref(0),s=e.ref(!1),u=e.ref(-pu),c=e.ref(!1),d=e.ref({}),v=e.computed(()=>({opacity:r.value,transform:`translateY(${u.value}px) rotate(${360*r.value}deg)`})),p=e.computed(()=>"q-pull-to-refresh__puller row flex-center"+(!0===c.value?" q-pull-to-refresh__puller--animating":"")+(void 0!==t.bgColor?` bg-${t.bgColor}`:""));function m(e){if(!0===e.isFinal)return void(!0===s.value&&(s.value=!1,"pulled"===i.value?(i.value="refreshing",b({pos:mu}),g()):"pull"===i.value&&b({pos:-pu,ratio:0})));if(!0===c.value||"refreshing"===i.value)return!1;if(!0===e.isFirst){if(0!==zo(w)||"down"!==e.direction)return!0===s.value&&(s.value=!1,i.value="pull",b({pos:-pu,ratio:0})),!1;s.value=!0;const{top:t,left:o}=y.getBoundingClientRect();d.value={top:t+"px",left:o+"px",width:window.getComputedStyle(y).getPropertyValue("width")}}C(e.evt);const t=Math.min(140,Math.max(0,e.distance.y));u.value=t-pu,r.value=Se(t/(mu+pu),0,1);const o=u.value>mu?"pulled":"pull";i.value!==o&&(i.value=o)}const f=e.computed(()=>{const e={down:!0,mightPrevent:!0};return!0!==t.noMouse&&(e.mouse=!0),[[wa,m,void 0,e]]}),h=e.computed(()=>`q-pull-to-refresh__content${!0===s.value?" no-pointer-events":""}`);function g(){n("refresh",()=>{b({pos:-pu,ratio:0},()=>{i.value="pull"})})}function b({pos:e,ratio:t},o){c.value=!0,u.value=e,void 0!==t&&(r.value=t),clearTimeout(x),x=setTimeout(()=>{c.value=!1,o&&o()},300)}let y,w,x;function _(){w=Bo(y,t.scrollTarget)}return Object.assign(a,{trigger:g,updateScrollTarget:_}),e.watch(()=>t.scrollTarget,_),e.onMounted(()=>{y=a.$el,_()}),e.onBeforeUnmount(()=>{clearTimeout(x)}),()=>{const n=[e.h("div",{class:h.value},Ie(o.default)),e.h("div",{class:"q-pull-to-refresh__puller-container fixed row flex-center no-pointer-events z-top",style:d.value},[e.h("div",{class:p.value,style:v.value},["refreshing"!==i.value?e.h(ot,{name:t.icon||l.iconSet.pullToRefresh.icon,color:t.color,size:"32px"}):e.h(Tt,{size:"24px",color:t.color})])])];return He("div",{class:"q-pull-to-refresh"},n,"main",!1===t.disable,()=>f.value)}}});const hu={MIN:0,RANGE:1,MAX:2};var gu=be({name:"QRange",props:{..._n,...Ca,modelValue:{type:Object,default:()=>({min:null,max:null}),validator(e){return"min"in e&&"max"in e}},name:String,dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelTextColor:String,rightLabelColor:String,rightLabelTextColor:String,leftLabelValue:[String,Number],rightLabelValue:[String,Number]},emits:qa,setup(t,{emit:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.computed(()=>{return{type:"hidden",name:t.name,value:`${t.modelValue.min}|${t.modelValue.max}`}}),l=Cn(a),i=e.ref(null),r=e.ref({min:null===t.modelValue.min?t.min:t.modelValue.min,max:null===t.modelValue.max?t.max:t.modelValue.max}),s=e.ref(null),u=e.ref(0),c=e.ref(0),{state:d,methods:v}=ka({updateValue:x,updatePosition:S,getDragging:_}),p=e.computed(()=>0===d.minMaxDiff.value?0:(r.value.min-t.min)/d.minMaxDiff.value),m=e.computed(()=>!0===d.active.value?u.value:p.value),f=e.computed(()=>0===d.minMaxDiff.value?0:(r.value.max-t.min)/d.minMaxDiff.value),h=e.computed(()=>!0===d.active.value?c.value:f.value),g=e.computed(()=>({[d.positionProp.value]:`${100*m.value}%`,[d.sizeProp.value]:`${100*(h.value-m.value)}%`})),b=e.computed(()=>{if(!0!==d.editable.value)return{};if(!0===n.platform.is.mobile)return{onClick:v.onMobileClick};const e={onMousedown:v.onActivate};return!0===t.dragOnlyRange&&Object.assign(e,{onFocus:()=>{C("both")},onBlur:v.onBlur,onKeydown:k,onKeyup:v.onKeyup}),e}),y={domRef:e.ref(null),events:e.computed(()=>!0===d.editable.value&&!0!==n.platform.is.mobile&&!0!==t.dragOnlyRange?{onFocus:()=>{C("min")},onBlur:v.onBlur,onKeydown:k,onKeyup:v.onKeyup}:{}),thumbStyle:e.computed(()=>({[d.positionProp.value]:`${100*m.value}%`,"z-index":"min"===s.value?2:void 0})),thumbClass:e.computed(()=>!1===d.preventFocus.value&&"min"===d.focus.value?" q-slider--focus":""),pinClass:e.computed(()=>{const e=t.leftLabelColor||t.labelColor;return e?` text-${e}`:""}),pinTextClass:e.computed(()=>{const e=t.leftLabelTextColor||t.labelTextColor;return e?` text-${e}`:""}),pinStyle:e.computed(()=>{const e=!0===t.reverse?-m.value:m.value-1;return v.getPinStyle(e,m.value)}),label:e.computed(()=>void 0!==t.leftLabelValue?t.leftLabelValue:r.value.min)},w={domRef:e.ref(null),events:e.computed(()=>!0===d.editable.value&&!0!==n.platform.is.mobile&&!0!==t.dragOnlyRange?{onFocus:()=>{C("max")},onBlur:v.onBlur,onKeydown:k,onKeyup:v.onKeyup}:{}),thumbStyle:e.computed(()=>({[d.positionProp.value]:`${100*h.value}%`})),thumbClass:e.computed(()=>!1===d.preventFocus.value&&"max"===d.focus.value?" q-slider--focus":""),pinClass:e.computed(()=>{const e=t.rightLabelColor||t.labelColor;return e?` text-${e}`:""}),pinTextClass:e.computed(()=>{const e=t.rightLabelTextColor||t.labelTextColor;return e?` text-${e}`:""}),pinStyle:e.computed(()=>{const e=!0===t.reverse?-h.value:h.value-1;return v.getPinStyle(e,h.value)}),label:e.computed(()=>void 0!==t.rightLabelValue?t.rightLabelValue:r.value.max)};function x(e){r.value.min===t.modelValue.min&&r.value.max===t.modelValue.max||o("update:modelValue",{...r.value}),!0===e&&o("change",{...r.value})}function _(e){const{left:o,top:n,width:a,height:l}=i.value.getBoundingClientRect(),u=!0===t.dragOnlyRange?0:!0===t.vertical?y.domRef.value.offsetHeight/(2*l):y.domRef.value.offsetWidth/(2*a),c={left:o,top:n,width:a,height:l,valueMin:r.value.min,valueMax:r.value.max,ratioMin:p.value,ratioMax:f.value},v=_a(e,c,d.isReversed.value,t.vertical);let m;return!0!==t.dragOnlyRange&&v<c.ratioMin+u?m=hu.MIN:!0===t.dragOnlyRange||v<c.ratioMax-u?!0===t.dragRange||!0===t.dragOnlyRange?(m=hu.RANGE,Object.assign(c,{offsetRatio:v,offsetModel:Sa(v,t.min,t.max,t.step,d.decimals.value),rangeValue:c.valueMax-c.valueMin,rangeRatio:c.ratioMax-c.ratioMin})):m=c.ratioMax-v<v-c.ratioMin?hu.MAX:hu.MIN:m=hu.MAX,c.type=m,s.value=null,c}function S(e,o=d.dragging.value){const n=_a(e,o,d.isReversed.value,t.vertical),a=Sa(n,t.min,t.max,t.step,d.decimals.value);let l;switch(o.type){case hu.MIN:n<=o.ratioMax?(l={minR:n,maxR:o.ratioMax,min:a,max:o.valueMax},s.value="min"):(l={minR:o.ratioMax,maxR:n,min:o.valueMax,max:a},s.value="max");break;case hu.MAX:n>=o.ratioMin?(l={minR:o.ratioMin,maxR:n,min:o.valueMin,max:a},s.value="max"):(l={minR:n,maxR:o.ratioMin,min:a,max:o.valueMin},s.value="min");break;case hu.RANGE:const e=n-o.offsetRatio,i=Se(o.ratioMin+e,0,1-o.rangeRatio),r=a-o.offsetModel,u=Se(o.valueMin+r,t.min,t.max-o.rangeValue);l={minR:i,maxR:i+o.rangeRatio,min:parseFloat(u.toFixed(d.decimals.value)),max:parseFloat((u+o.rangeValue).toFixed(d.decimals.value))};break}r.value={min:l.min,max:l.max},null!==r.value.min&&null!==r.value.max||(r.value.min=l.min||t.min,r.value.max=l.max||t.max),!0!==t.snap||0===t.step?(u.value=l.minR,c.value=l.maxR):(u.value=0===d.minMaxDiff.value?0:(r.value.min-t.min)/d.minMaxDiff.value,c.value=0===d.minMaxDiff.value?0:(r.value.max-t.min)/d.minMaxDiff.value)}function C(e){d.focus.value=e}function k(e){if(!xa.includes(e.keyCode))return;q(e);const o=([34,33].includes(e.keyCode)?10:1)*t.step,n=[34,37,40].includes(e.keyCode)?-o:o;if(t.dragOnlyRange){const e=t.dragOnlyRange?r.value.max-r.value.min:0,o=Se(parseFloat((r.value.min+n).toFixed(d.decimals.value)),t.min,t.max-e);r.value={min:o,max:parseFloat((o+e).toFixed(d.decimals.value))}}else{if(!1===d.focus.value)return;{const e=d.focus.value;r.value={...r.value,[e]:Se(parseFloat((r.value[e]+n).toFixed(d.decimals.value)),"min"===e?t.min:r.value.min,"max"===e?t.max:r.value.max)}}}x()}function $(o){const n=[v.getThumbSvg(),e.h("div",{class:"q-slider__focus-ring"})];return!0!==t.label&&!0!==t.labelAlways||n.push(e.h("div",{class:`q-slider__pin q-slider__pin${d.axis.value} absolute`+o.pinClass.value,style:o.pinStyle.value.pin},[e.h("div",{class:`q-slider__pin-text-container q-slider__pin-text-container${d.axis.value}`,style:o.pinStyle.value.pinTextContainer},[e.h("span",{class:"q-slider__pin-text"+o.pinTextClass.value},o.label.value)])]),e.h("div",{class:`q-slider__arrow q-slider__arrow${d.axis.value}`+o.pinClass.value})),e.h("div",{ref:o.domRef,class:`q-slider__thumb-container q-slider__thumb-container${d.axis.value} absolute non-selectable`+o.thumbClass.value,style:o.thumbStyle.value,...o.events.value,tabindex:!0!==t.dragOnlyRange?d.tabindex.value:null},n)}return e.watch(()=>t.modelValue.min,e=>{r.value.min=null===e?t.min:e}),e.watch(()=>t.modelValue.max,e=>{r.value.max=null===e?t.max:e}),e.watch(()=>t.min,e=>{r.value.min<e&&(r.value.min=e),r.value.max<e&&(r.value.max=e)}),e.watch(()=>t.max,e=>{r.value.min>e&&(r.value.min=e),r.value.max>e&&(r.value.max=e)}),()=>{const o=[e.h("div",{class:`q-slider__track q-slider__track${d.axis.value} absolute`,style:g.value})];!1!==t.markers&&o.push(e.h("div",{class:`q-slider__track-markers q-slider__track-markers${d.axis.value} absolute-full fit`,style:d.markerStyle.value}));const a=[e.h("div",{class:`q-slider__track-container q-slider__track-container${d.axis.value} absolute`},o),$(y),$(w)];void 0!==t.name&&!0!==t.disable&&l(a,"push");const r={ref:i,class:"q-range "+d.classes.value+(null===t.modelValue.min||null===t.modelValue.max?" q-slider--no-value":""),...d.attributes.value,"aria-valuenow":t.modelValue.min+"|"+t.modelValue.max,tabindex:!0===t.dragOnlyRange&&!0!==n.platform.is.mobile?d.tabindex.value:null,...b.value};return He("div",r,a,"slide",d.editable.value,()=>d.panDirective.value)}}}),bu=be({name:"QRating",props:{...Fe,..._n,modelValue:{type:Number,required:!0},max:{type:[String,Number],default:5},icon:[String,Array],iconHalf:[String,Array],iconSelected:[String,Array],color:[String,Array],colorHalf:[String,Array],colorSelected:[String,Array],noReset:Boolean,noDimming:Boolean,readonly:Boolean,disable:Boolean},emits:["update:modelValue"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=Re(t),i=Sn(t),r=Cn(i),s=e.ref(0);let u={};const c=e.computed(()=>!0!==t.readonly&&!0!==t.disable),d=e.computed(()=>"q-rating row inline items-center"+` q-rating--${!0===c.value?"":"non-"}editable`+(!0===t.noDimming?" q-rating--no-dimming":"")+(!0===t.disable?" disabled":"")+(void 0!==t.color&&!1===Array.isArray(t.color)?` text-${t.color}`:"")),v=e.computed(()=>{const e=!0===Array.isArray(t.icon)?t.icon.length:0,o=!0===Array.isArray(t.iconSelected)?t.iconSelected.length:0,n=!0===Array.isArray(t.iconHalf)?t.iconHalf.length:0,a=!0===Array.isArray(t.color)?t.color.length:0,l=!0===Array.isArray(t.colorSelected)?t.colorSelected.length:0,i=!0===Array.isArray(t.colorHalf)?t.colorHalf.length:0;return{iconLen:e,icon:e>0?t.icon[e-1]:t.icon,selIconLen:o,selIcon:o>0?t.iconSelected[o-1]:t.iconSelected,halfIconLen:n,halfIcon:n>0?t.iconHalf[o-1]:t.iconHalf,colorLen:a,color:a>0?t.color[a-1]:t.color,selColorLen:l,selColor:l>0?t.colorSelected[l-1]:t.colorSelected,halfColorLen:i,halfColor:i>0?t.colorHalf[i-1]:t.colorHalf}}),p=e.computed(()=>{const e=[],o=v.value,n=Math.ceil(t.modelValue),l=void 0===t.iconHalf||n===t.modelValue?-1:n;for(let i=1;i<=t.max;i++){const r=0===s.value&&t.modelValue>=i||s.value>0&&s.value>=i,u=l===i&&s.value<i,c=s.value>0&&(!0===u?n:t.modelValue)>=i&&s.value<i,d=!0===u?i<=o.halfColorLen?t.colorHalf[i-1]:o.halfColor:void 0!==o.selColor&&!0===r?i<=o.selColorLen?t.colorSelected[i-1]:o.selColor:i<=o.colorLen?t.color[i-1]:o.color;e.push({name:(!0===u?i<=o.halfIconLen?t.iconHalf[i-1]:o.halfIcon:void 0===o.selIcon||!0!==r&&!0!==c?i<=o.iconLen?t.icon[i-1]:o.icon:i<=o.selIconLen?t.iconSelected[i-1]:o.selIcon)||a.iconSet.rating.icon,classes:"q-rating__icon"+(!0===r||!0===u?" q-rating__icon--active":"")+(!0===c?" q-rating__icon--exselected":"")+(s.value===i?" q-rating__icon--hovered":"")+(void 0!==d?` text-${d}`:"")})}return e}),m=e.computed(()=>{return!0===t.disable?{"aria-disabled":"true"}:!0===t.readonly?{"aria-readonly":"true"}:void 0}),f=e.computed(()=>!0===c.value?0:null);function h(e){if(!0===c.value){const o=Se(parseInt(e,10),1,parseInt(t.max,10)),a=!0!==t.noReset&&t.modelValue===o?0:o;a!==t.modelValue&&n("update:modelValue",a),s.value=0}}function g(e){!0===c.value&&(s.value=e)}function b(e,t){switch(e.keyCode){case 13:case 32:return h(t),q(e);case 37:case 40:return u[`rt${t-1}`]&&u[`rt${t-1}`].$el.focus(),q(e);case 39:case 38:return u[`rt${t+1}`]&&u[`rt${t+1}`].$el.focus(),q(e)}}function y(){s.value=0}return e.onBeforeUpdate(()=>{u={}}),()=>{const n=[];return p.value.forEach(({classes:t,name:a},l)=>{const i=l+1;n.push(e.h("div",{key:i,ref:e=>{u[`rt${i}`]=e},class:"q-rating__icon-container flex flex-center",tabindex:f.value,onClick(){h(i)},onMouseover(){g(i)},onMouseout:y,onFocus(){g(i)},onBlur:y,onKeyup(e){b(e,i)}},Ne(o[`tip-${i}`],[e.h(ot,{class:t,name:a})])))}),void 0!==t.name&&!0!==t.disable&&r(n,"push"),e.h("div",{class:d.value,style:l.value,...m.value},n)}}}),yu=be({name:"QResponsive",props:us,setup(t,{slots:o}){const n=cs(t);return()=>e.h("div",{class:"q-responsive"},[e.h("div",{class:"q-responsive__filler overflow-hidden"},[e.h("div",{style:n.value})]),e.h("div",{class:"q-responsive__content absolute-full fit"},Ie(o.default))])}});const wu=["vertical","horizontal"],xu={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}};var _u=be({name:"QScrollArea",props:{...it,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(t,{slots:o,emit:n}){const a=e.ref(!1),l=e.ref(!1),i=e.ref(!1),r={vertical:e.ref(0),horizontal:e.ref(0)},s={vertical:{ref:e.ref(null),position:e.ref(0),size:e.ref(0)},horizontal:{ref:e.ref(null),position:e.ref(0),size:e.ref(0)}},u=e.getCurrentInstance(),c=rt(t,u.proxy.$q);let d,v;const p=e.ref(null),m=e.computed(()=>"q-scrollarea"+(!0===c.value?" q-scrollarea--dark":""));s.vertical.percentage=e.computed(()=>{const e=s.vertical.size.value-r.vertical.value;if(e<=0)return 0;const t=Se(s.vertical.position.value/e,0,1);return Math.round(1e4*t)/1e4}),s.vertical.thumbHidden=e.computed(()=>!0!==(null===t.visible?i.value:t.visible)&&!1===a.value&&!1===l.value||s.vertical.size.value<=r.vertical.value+1),s.vertical.thumbSize=e.computed(()=>Math.round(Se(r.vertical.value*r.vertical.value/s.vertical.size.value,50,r.vertical.value))),s.vertical.style=e.computed(()=>{const e=s.vertical.thumbSize.value,o=s.vertical.percentage.value*(r.vertical.value-e);return{...t.thumbStyle,...t.verticalThumbStyle,top:`${o}px`,height:`${e}px`}}),s.vertical.thumbClass=e.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(!0===s.vertical.thumbHidden.value?" q-scrollarea__thumb--invisible":"")),s.vertical.barClass=e.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(!0===s.vertical.thumbHidden.value?" q-scrollarea__bar--invisible":"")),s.horizontal.percentage=e.computed(()=>{const e=s.horizontal.size.value-r.horizontal.value;if(e<=0)return 0;const t=Se(s.horizontal.position.value/e,0,1);return Math.round(1e4*t)/1e4}),s.horizontal.thumbHidden=e.computed(()=>!0!==(null===t.visible?i.value:t.visible)&&!1===a.value&&!1===l.value||s.horizontal.size.value<=r.horizontal.value+1),s.horizontal.thumbSize=e.computed(()=>Math.round(Se(r.horizontal.value*r.horizontal.value/s.horizontal.size.value,50,r.horizontal.value))),s.horizontal.style=e.computed(()=>{const e=s.horizontal.thumbSize.value,o=s.horizontal.percentage.value*(r.horizontal.value-e);return{...t.thumbStyle,...t.horizontalThumbStyle,left:`${o}px`,width:`${e}px`}}),s.horizontal.thumbClass=e.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(!0===s.horizontal.thumbHidden.value?" q-scrollarea__thumb--invisible":"")),s.horizontal.barClass=e.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(!0===s.horizontal.thumbHidden.value?" q-scrollarea__bar--invisible":""));const f=e.computed(()=>!0===s.vertical.thumbHidden.value||!0===s.horizontal.thumbHidden.value?t.contentStyle:t.contentActiveStyle),h=[[wa,e=>{C(e,"vertical")},void 0,{vertical:!0,prevent:!0,mouse:!0,mouseAllDir:!0}]],g=[[wa,e=>{C(e,"horizontal")},void 0,{horizontal:!0,prevent:!0,mouse:!0,mouseAllDir:!0}]];function b(){const e={};return wu.forEach(t=>{const o=s[t];e[t+"Position"]=o.position.value,e[t+"Percentage"]=o.percentage.value,e[t+"Size"]=o.size.value,e[t+"ContainerSize"]=r[t].value}),e}const y=B(()=>{const e=b();e.ref=u.proxy,n("scroll",e)},0);function w(e,t,o){if(!1===wu.includes(e))return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");const n="vertical"===e?Ro:Io;n(p.value,t,o)}function x({height:e,width:t}){let o=!1;r.vertical.value!==e&&(r.vertical.value=e,o=!0),r.horizontal.value!==t&&(r.horizontal.value=t,o=!0),!0===o&&M()}function _({position:e}){let t=!1;s.vertical.position.value!==e.top&&(s.vertical.position.value=e.top,t=!0),s.horizontal.position.value!==e.left&&(s.horizontal.position.value=e.left,t=!0),!0===t&&M()}function S({height:e,width:t}){s.horizontal.size.value!==t&&(s.horizontal.size.value=t,M()),s.vertical.size.value!==e&&(s.vertical.size.value=e,M())}function C(e,t){const o=s[t];if(!0===e.isFirst){if(!0===o.thumbHidden.value)return;v=o.position.value,l.value=!0}else if(!0!==l.value)return;!0===e.isFinal&&(l.value=!1);const n=xu[t],a=r[t].value,i=(o.size.value-a)/(a-o.thumbSize.value),u=e.distance[n.dist],c=v+(e.direction===n.dir?1:-1)*u*i;T(c,t)}function q(e,t){const o=s[t];if(!0!==o.thumbHidden.value){const n=e[xu[t].offset]-o.thumbSize.value/2;T(n/r[t].value*o.size.value,t),null!==o.ref.value&&o.ref.value.dispatchEvent(new MouseEvent(e.type,e))}}function k(e){q(e,"vertical")}function $(e){q(e,"horizontal")}function M(){!0===a.value?clearTimeout(d):a.value=!0,d=setTimeout(()=>{a.value=!1},t.delay),void 0!==t.onScroll&&y()}function T(e,t){p.value[xu[t].scroll]=e}function O(){i.value=!0}function V(){i.value=!1}return Object.assign(u.proxy,{getScrollTarget:()=>p.value,getScroll:b,getScrollPosition:()=>({top:s.vertical.position.value,left:s.horizontal.position.value}),getScrollPercentage:()=>({top:s.vertical.percentage.value,left:s.horizontal.percentage.value}),setScrollPosition:w,setScrollPercentage(e,t,o){w(e,t*(s[e].size.value-r[e].value),o)}}),()=>{return e.h("div",{class:m.value,onMouseenter:O,onMouseleave:V},[e.h("div",{ref:p,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:void 0!==t.tabindex?t.tabindex:void 0},[e.h("div",{class:"q-scrollarea__content absolute",style:f.value},Ne(o.default,[e.h(Oa,{onResize:S})])),e.h(Is,{axis:"both",onScroll:_})]),e.h(Oa,{onResize:x}),e.h("div",{class:s.vertical.barClass.value,style:[t.barStyle,t.verticalBarStyle],"aria-hidden":"true",onMousedown:k}),e.h("div",{class:s.horizontal.barClass.value,style:[t.barStyle,t.horizontalBarStyle],"aria-hidden":"true",onMousedown:$}),e.withDirectives(e.h("div",{ref:s.vertical.ref,class:s.vertical.thumbClass.value,style:s.vertical.style.value,"aria-hidden":"true"}),h),e.withDirectives(e.h("div",{ref:s.horizontal.ref,class:s.horizontal.thumbClass.value,style:s.horizontal.style.value,"aria-hidden":"true"}),g)])}}});const Su=1e3,Cu=["start","center","end","start-force","center-force","end-force"],qu=Array.prototype.slice;let ku=1;const $u=void 0===window.getComputedStyle(document.body).overflowAnchor?m:function(e,t){const o=e+"_ss";let n=document.getElementById(o);null===n&&(n=document.createElement("style"),n.type="text/css",n.id=o,document.head.appendChild(n)),n.qChildIndex!==t&&(n.qChildIndex=t,n.innerHTML=`#${e} > *:nth-child(${t}) { overflow-anchor: auto }`)};function Mu(e,t){return e+t}function Tu(e,t,o,n,a,l,i,r){const s=e===window?document.scrollingElement||document.documentElement:e,u=!0===a?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-i-r,scrollMaxSize:0,offsetStart:-i,offsetEnd:-r};if(!0===a?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=window.innerWidth):(c.scrollStart=s.scrollLeft,c.scrollViewSize+=s.clientWidth),c.scrollMaxSize=s.scrollWidth,!0===l&&(c.scrollStart=(!0===Va?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=window.innerHeight):(c.scrollStart=s.scrollTop,c.scrollViewSize+=s.clientHeight),c.scrollMaxSize=s.scrollHeight),null!==o)for(let d=o.previousElementSibling;null!==d;d=d.previousElementSibling)!1===d.classList.contains("q-virtual-scroll--skip")&&(c.offsetStart+=d[u]);if(null!==n)for(let d=n.nextElementSibling;null!==d;d=d.nextElementSibling)!1===d.classList.contains("q-virtual-scroll--skip")&&(c.offsetEnd+=d[u]);if(t!==e){const o=s.getBoundingClientRect(),n=t.getBoundingClientRect();!0===a?(c.offsetStart+=n.left-o.left,c.offsetEnd-=n.width):(c.offsetStart+=n.top-o.top,c.offsetEnd-=n.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function Bu(e,t,o,n){e===window?!0===o?(!0===n&&(t=(!0===Va?document.body.scrollWidth-window.innerWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):!0===o?(!0===n&&(t=(!0===Va?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Ou(e,t,o,n){if(o>=n)return 0;const a=t.length,l=Math.floor(o/Su),i=Math.floor((n-1)/Su)+1;let r=e.slice(l,i).reduce(Mu,0);return o%Su!==0&&(r-=t.slice(l*Su,o).reduce(Mu,0)),n%Su!==0&&n!==a&&(r-=t.slice(n,i*Su).reduce(Mu,0)),r}const Vu={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},zu=Object.keys(Vu),Lu={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Vu};function Eu({virtualScrollLength:t,getVirtualScrollTarget:o,getVirtualScrollEl:n,virtualScrollItemSizeComputed:a}){const l=e.getCurrentInstance(),{props:i,emit:r,proxy:s}=l,{$q:u}=s;let c,d,v,p,f=[];const h="qvs_"+ku++,g=e.ref(0),b=e.ref(0),y=e.ref({}),w=e.ref(null),x=e.ref(null),_=e.ref(null),S=e.ref({from:0,to:0}),C=e.computed(()=>void 0!==i.tableColspan?i.tableColspan:100);void 0===a&&(a=e.computed(()=>i.virtualScrollItemSize));const q=e.computed(()=>a.value+";"+i.virtualScrollHorizontal),k=e.computed(()=>q.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);function $(){L(d,!0)}function M(e){L(void 0===e?d:e)}function T(e,a){const l=o();if(void 0===l||null===l||8===l.nodeType)return;const r=Tu(l,n(),w.value,x.value,i.virtualScrollHorizontal,u.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);v!==r.scrollViewSize&&E(r.scrollViewSize),V(l,r,Math.min(t.value-1,Math.max(0,parseInt(e,10)||0)),0,Cu.indexOf(a)>-1?a:d>-1&&e>d?"end":"start")}function O(){const e=o();if(void 0===e||null===e||8===e.nodeType)return;const a=Tu(e,n(),w.value,x.value,i.virtualScrollHorizontal,u.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),l=t.value-1,r=a.scrollMaxSize-a.offsetStart-a.offsetEnd-b.value;if(c===a.scrollStart)return;if(a.scrollMaxSize<=0)return void V(e,a,0,0);v!==a.scrollViewSize&&E(a.scrollViewSize),z(S.value.from);const s=Math.floor(a.scrollMaxSize-Math.max(a.scrollViewSize,a.offsetEnd)-Math.min(p[l],a.scrollViewSize/2));if(s>0&&Math.ceil(a.scrollStart)>=s)return void V(e,a,l,a.scrollMaxSize-a.offsetEnd-f.reduce(Mu,0));let d=0,m=a.scrollStart-a.offsetStart,h=m;if(m<=r&&m+a.scrollViewSize>=g.value)m-=g.value,d=S.value.from,h=m;else for(let t=0;m>=f[t]&&d<l;t++)m-=f[t],d+=Su;while(m>0&&d<l)m-=p[d],m>-a.scrollViewSize?(d++,h=m):h=p[d]+m;V(e,a,d,h)}function V(e,o,n,a,l){const r="string"===typeof l&&l.indexOf("-force")>-1,s=!0===r?l.replace("-force",""):l,d=void 0!==s?s:"start";let v=Math.max(0,n-y.value[d]),m=v+y.value.total;m>t.value&&(m=t.value,v=Math.max(0,m-y.value.total)),c=o.scrollStart;const w=v!==S.value.from||m!==S.value.to;if(!1===w&&void 0===s)return void A(n);const{activeElement:x}=document;if(!0===w&&null!==_.value&&_.value!==x&&!0===_.value.contains(x)){const e=()=>{_.value.focus()};x.addEventListener("blur",e,!0),requestAnimationFrame(()=>{x.removeEventListener("blur",e,!0)})}$u(h,n-v+1);const C=void 0!==s?p.slice(v,n).reduce(Mu,0):0;if(!0===w){const e=m>=S.value.from&&v<=S.value.to?S.value.to:m;S.value={from:v,to:e},g.value=Ou(f,p,0,v),b.value=Ou(f,p,m,t.value),requestAnimationFrame(()=>{S.value.to!==m&&c===o.scrollStart&&(S.value={from:S.value.from,to:m},b.value=Ou(f,p,m,t.value))})}requestAnimationFrame(()=>{if(c!==o.scrollStart)return;!0===w&&z(v);const t=p.slice(v,n).reduce(Mu,0),l=t+o.offsetStart+g.value,d=l+p[n];let m=l+a;if(void 0!==s){const e=t-C,a=o.scrollStart+e;m=!0!==r&&a<l&&d<a+o.scrollViewSize?a:"end"===s?d-o.scrollViewSize:l-("start"===s?0:Math.round((o.scrollViewSize-p[n])/2))}c=m,Bu(e,m,i.virtualScrollHorizontal,u.lang.rtl),A(n)})}function z(e){const t=_.value;if(t){const o=qu.call(t.children).filter(e=>!1===e.classList.contains("q-virtual-scroll--skip")),n=o.length,a=!0===i.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight;let l,r,s=e;for(let e=0;e<n;){l=a(o[e]),e++;while(e<n&&!0===o[e].classList.contains("q-virtual-scroll--with-prev"))l+=a(o[e]),e++;r=l-p[s],0!==r&&(p[s]+=r,f[Math.floor(s/Su)]+=r),s++}}}function L(o,n){const l=1*a.value;!0!==n&&!1!==Array.isArray(p)||(p=[]);const i=p.length;p.length=t.value;for(let e=t.value-1;e>=i;e--)p[e]=l;const r=Math.floor((t.value-1)/Su);f=[];for(let e=0;e<=r;e++){let o=0;const n=Math.min((e+1)*Su,t.value);for(let t=e*Su;t<n;t++)o+=p[t];f.push(o)}d=-1,c=void 0,o>=0?(z(S.value.from),e.nextTick(()=>{T(o)})):(g.value=Ou(f,p,0,S.value.from),b.value=Ou(f,p,S.value.to,t.value),F())}function E(e){if(void 0===e&&"undefined"!==typeof window){const t=o();void 0!==t&&null!==t&&8!==t.nodeType&&(e=Tu(t,n(),w.value,x.value,i.virtualScrollHorizontal,u.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}v=e;const t=1+i.virtualScrollSliceRatioBefore+i.virtualScrollSliceRatioAfter,l=void 0===e||e<=0?1:Math.ceil(e/a.value),r=Math.max(10,l,Math.ceil(i.virtualScrollSliceSize/t));y.value={total:Math.ceil(r*t),start:Math.ceil(r*i.virtualScrollSliceRatioBefore),center:Math.ceil(r*(.5+i.virtualScrollSliceRatioBefore)),end:Math.ceil(r*(1+i.virtualScrollSliceRatioBefore)),view:l}}function P(t,o){const n=!0===i.virtualScrollHorizontal?"width":"height",l={["--q-virtual-scroll-item-"+n]:a.value+"px"};return["tbody"===t?e.h(t,{class:"q-virtual-scroll__padding",key:"before",ref:w},[e.h("tr",[e.h("td",{style:{[n]:`${g.value}px`,...l},colspan:C.value})])]):e.h(t,{class:"q-virtual-scroll__padding",key:"before",ref:w,style:{[n]:`${g.value}px`,...l}}),e.h(t,{class:"q-virtual-scroll__content",key:"content",ref:_,id:h,tabindex:-1},o.flat()),"tbody"===t?e.h(t,{class:"q-virtual-scroll__padding",key:"after",ref:x},[e.h("tr",[e.h("td",{style:{[n]:`${b.value}px`,...l},colspan:C.value})])]):e.h(t,{class:"q-virtual-scroll__padding",key:"after",ref:x,style:{[n]:`${b.value}px`,...l}})]}function A(e){d!==e&&(void 0!==i.onVirtualScroll&&r("virtual-scroll",{index:e,from:S.value.from,to:S.value.to-1,direction:e<d?"decrease":"increase",ref:s}),d=e)}e.watch(k,()=>{E()}),e.watch(q,$),E();const F=B(O,!0===u.platform.is.ios?120:35);return e.onBeforeMount(()=>{E()}),e.onActivated(()=>{const e=o();void 0!==c&&void 0!==e&&null!==e&&8!==e.nodeType?Bu(e,c,i.virtualScrollHorizontal,u.lang.rtl):T(d)}),$u!==m&&e.onBeforeUnmount(()=>{const e=document.getElementById(h+"_ss");null!==e&&e.remove()}),Object.assign(s,{scrollTo:T,reset:$,refresh:M}),{virtualScrollSliceRange:S,virtualScrollSliceSizeComputed:y,setVirtualScrollSize:E,onVirtualScrollEvt:F,localResetVirtualScroll:L,padVirtualScroll:P,scrollTo:T,reset:$,refresh:M}}const Pu=e=>["add","add-unique","toggle"].includes(e),Au=".*+?^${}()|[]\\",Fu=Object.keys(Wr);var Ru=be({name:"QSelect",inheritAttrs:!1,props:{...Lu,..._n,...Wr,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Pu},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,transitionDuration:[String,Number],behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0},onNewValue:Function,onFilter:Function},emits:[...Yr,"add","remove","input-value","keyup","keypress","keydown","filter-abort"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref(!1),r=e.ref(!1),s=e.ref(-1),u=e.ref(""),c=e.ref(!1),d=e.ref(!1);let v,p,m,f,h,g,b,y,w;const x=e.ref(null),_=e.ref(null),k=e.ref(null),$=e.ref(null),M=e.ref(null),T=qn(t),B=$s(ze),O=e.computed(()=>Array.isArray(t.options)?t.options.length:0),V=e.computed(()=>void 0===t.virtualScrollItemSize?!0===t.dense?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:z,virtualScrollSliceSizeComputed:L,localResetVirtualScroll:E,padVirtualScroll:P,onVirtualScrollEvt:A,scrollTo:F,setVirtualScrollSize:R}=Eu({virtualScrollLength:O,getVirtualScrollTarget:Te,getVirtualScrollEl:Me,virtualScrollItemSizeComputed:V}),I=Kr(),j=e.computed(()=>{const e=!0===t.mapOptions&&!0!==t.multiple,o=void 0===t.modelValue||null===t.modelValue&&!0!==e?[]:!0===t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue];if(!0===t.mapOptions&&!0===Array.isArray(t.options)){const n=!0===t.mapOptions&&void 0!==p?p:[],a=o.map(e=>ye(e,n));return null===t.modelValue&&!0===e?a.filter(e=>null!==e):a}return o}),N=e.computed(()=>{const e={};return Fu.forEach(o=>{const n=t[o];void 0!==n&&(e[o]=n)}),e}),D=e.computed(()=>null===t.optionsDark?I.isDark.value:t.optionsDark),H=e.computed(()=>Ur(j.value)),Q=e.computed(()=>{let e="q-field__input q-placeholder col";return!0===t.hideSelected||0===j.value.length?[e,t.inputClass]:(e+=" q-field__input--padding",void 0===t.inputClass?e:[e,t.inputClass])}),Y=e.computed(()=>(!0===t.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),K=e.computed(()=>0===O.value),X=e.computed(()=>j.value.map(e=>se.value(e)).join(", ")),Z=e.computed(()=>!0===t.optionsHtml?()=>!0:e=>void 0!==e&&null!==e&&!0===e.html),G=e.computed(()=>!0===t.displayValueHtml||void 0===t.displayValue&&(!0===t.optionsHtml||j.value.some(Z.value))),J=e.computed(()=>!0===I.focused.value?t.tabindex:-1),ee=e.computed(()=>({tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-autocomplete":!0===t.useInput?"list":"none","aria-expanded":!0===i.value?"true":"false","aria-owns":`${I.targetUid.value}_lb`,"aria-controls":`${I.targetUid.value}_lb`})),te=e.computed(()=>{const e={id:`${I.targetUid.value}_lb`,role:"listbox","aria-multiselectable":!0===t.multiple?"true":"false"};return s.value>=0&&(e["aria-activedescendant"]=`${I.targetUid.value}_${s.value}`),e}),oe=e.computed(()=>{return j.value.map((e,t)=>({index:t,opt:e,html:Z.value(e),selected:!0,removeAtIndex:me,toggleOption:he,tabindex:J.value}))}),ne=e.computed(()=>{if(0===O.value)return[];const{from:e,to:o}=z.value;return t.options.slice(e,o).map((o,n)=>{const a=!0===ue.value(o),i=e+n,r={clickable:!0,active:!1,activeClass:ie.value,manualFocus:!0,focused:!1,disable:a,tabindex:-1,dense:t.optionsDense,dark:D.value,role:"option",id:`${I.targetUid.value}_${i}`,onClick:()=>{he(o)}};return!0!==a&&(!0===xe(o)&&(r.active=!0),s.value===i&&(r.focused=!0),r["aria-selected"]=!0===r.active?"true":"false",!0===l.platform.is.desktop&&(r.onMousemove=(()=>{ge(i)}))),{index:i,opt:o,html:Z.value(o),label:se.value(o),selected:r.active,focused:r.focused,toggleOption:he,setOptionIndex:ge,itemProps:r}})}),ae=e.computed(()=>void 0!==t.dropdownIcon?t.dropdownIcon:l.iconSet.arrow.dropdown),le=e.computed(()=>!1===t.optionsCover&&!0!==t.outlined&&!0!==t.standout&&!0!==t.borderless&&!0!==t.rounded),ie=e.computed(()=>void 0!==t.optionsSelectedClass?t.optionsSelectedClass:void 0!==t.color?`text-${t.color}`:""),re=e.computed(()=>we(t.optionValue,"value")),se=e.computed(()=>we(t.optionLabel,"label")),ue=e.computed(()=>we(t.optionDisable,"disable")),ce=e.computed(()=>j.value.map(e=>re.value(e))),de=e.computed(()=>{const e={onInput:ze,onChange:B,onKeydown:$e,onKeyup:qe,onKeypress:ke,onFocus:_e,onClick(e){!0===m&&S(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=B,e});function ve(e){return!0===t.emitValue?re.value(e):e}function pe(e){if(e>-1&&e<j.value.length)if(!0===t.multiple){const o=t.modelValue.slice();n("remove",{index:e,value:o.splice(e,1)[0]}),n("update:modelValue",o)}else n("update:modelValue",null)}function me(e){pe(e),I.focus()}function fe(e,o){const a=ve(e);if(!0!==t.multiple)return!0===t.fillInput&&Ee(se.value(e),!0,!0),void n("update:modelValue",a);if(0===j.value.length)return n("add",{index:0,value:a}),void n("update:modelValue",!0===t.multiple?[a]:a);if(!0===o&&!0===xe(e))return;if(void 0!==t.maxValues&&t.modelValue.length>=t.maxValues)return;const l=t.modelValue.slice();n("add",{index:l.length,value:a}),l.push(a),n("update:modelValue",l)}function he(e,o){if(!0!==I.editable.value||void 0===e||!0===ue.value(e))return;const a=re.value(e);if(!0!==t.multiple)return!0!==o&&(Ee(!0===t.fillInput?se.value(e):"",!0,!0),Ke()),null!==_.value&&_.value.focus(),void(!0!==Yn(re.value(j.value[0]),a)&&n("update:modelValue",!0===t.emitValue?a:e));if((!0!==m||!0===c.value)&&I.focus(),_e(),0===j.value.length){const o=!0===t.emitValue?a:e;return n("add",{index:0,value:o}),void n("update:modelValue",!0===t.multiple?[o]:o)}const l=t.modelValue.slice(),i=ce.value.findIndex(e=>Yn(e,a));if(i>-1)n("remove",{index:i,value:l.splice(i,1)[0]});else{if(void 0!==t.maxValues&&l.length>=t.maxValues)return;const o=!0===t.emitValue?a:e;n("add",{index:l.length,value:o}),l.push(o)}n("update:modelValue",l)}function ge(e){if(!0!==l.platform.is.desktop)return;const t=e>-1&&e<O.value?e:-1;s.value!==t&&(s.value=t)}function be(e=1,o){if(!0===i.value){let n=s.value;do{n=Ce(n+e,-1,O.value-1)}while(-1!==n&&n!==s.value&&!0===ue.value(t.options[n]));s.value!==n&&(ge(n),F(n),!0!==o&&!0===t.useInput&&!0===t.fillInput&&Le(n>=0?se.value(t.options[n]):g))}}function ye(e,o){const n=t=>Yn(re.value(t),e);return t.options.find(n)||o.find(n)||e}function we(e,t){const o=void 0!==e?e:t;return"function"===typeof o?o:e=>Object(e)===e&&o in e?e[o]:e}function xe(e){const t=re.value(e);return void 0!==ce.value.find(e=>Yn(e,t))}function _e(){!0===t.useInput&&null!==_.value&&_.value.select()}function Se(e){!0===W(e,27)&&!0===i.value&&(S(e),Ke(),Xe()),n("keyup",e)}function qe(e){const{value:o}=e.target;if(void 0===e.keyCode)if(e.target.value="",clearTimeout(v),Xe(),"string"===typeof o&&o.length>0){const e=o.toLocaleLowerCase();let n=t=>re.value(t).toLocaleLowerCase()===e,a=t.options.find(n);void 0!==a?-1===j.value.indexOf(a)?he(a):Ke():(n=(t=>se.value(t).toLocaleLowerCase()===e),a=t.options.find(n),void 0!==a?-1===j.value.indexOf(a)?he(a):Ke():Pe(o,!0))}else I.clearValue(e);else Se(e)}function ke(e){n("keypress",e)}function $e(o){if(n("keydown",o),!0===U(o))return;const a=u.value.length>0&&(void 0!==t.newValueMode||void 0!==t.onNewValue),l=!0!==o.shiftKey&&!0!==t.multiple&&(s.value>-1||!0===a);if(27===o.keyCode)return void C(o);if(9===o.keyCode&&!1===l)return void We();if(void 0===o.target||o.target.id!==I.targetUid.value)return;if(40===o.keyCode&&!0!==I.innerLoading.value&&!1===i.value)return q(o),void Ye();if(8===o.keyCode&&!0!==t.hideSelected&&0===u.value.length)return void(!0===t.multiple&&!0===Array.isArray(t.modelValue)?pe(t.modelValue.length-1):!0!==t.multiple&&null!==t.modelValue&&n("update:modelValue",null));35!==o.keyCode&&36!==o.keyCode||"string"===typeof u.value&&0!==u.value.length||(q(o),s.value=-1,be(36===o.keyCode?1:-1,t.multiple)),33!==o.keyCode&&34!==o.keyCode||void 0===L.value||(q(o),s.value=Math.max(-1,Math.min(O.value,s.value+(33===o.keyCode?-1:1)*L.value.view)),be(33===o.keyCode?1:-1,t.multiple)),38!==o.keyCode&&40!==o.keyCode||(q(o),be(38===o.keyCode?-1:1,t.multiple));const r=O.value;if((void 0===y||w<Date.now())&&(y=""),r>0&&!0!==t.useInput&&void 0!==o.key&&1===o.key.length&&o.altKey===o.ctrlKey&&(32!==o.keyCode||y.length>0)){!0!==i.value&&Ye(o);const n=o.key.toLocaleLowerCase(),a=1===y.length&&y[0]===n;w=Date.now()+1500,!1===a&&(q(o),y+=n);const l=new RegExp("^"+y.split("").map(e=>Au.indexOf(e)>-1?"\\"+e:e).join(".*"),"i");let u=s.value;if(!0===a||u<0||!0!==l.test(se.value(t.options[u])))do{u=Ce(u+1,-1,r-1)}while(u!==s.value&&(!0===ue.value(t.options[u])||!0!==l.test(se.value(t.options[u]))));s.value!==u&&e.nextTick(()=>{ge(u),F(u),u>=0&&!0===t.useInput&&!0===t.fillInput&&Le(se.value(t.options[u]))})}else if(13===o.keyCode||32===o.keyCode&&!0!==t.useInput&&""===y||9===o.keyCode&&!1!==l)if(9!==o.keyCode&&q(o),s.value>-1&&s.value<r)he(t.options[s.value]);else{if(!0===a){const e=(e,o)=>{if(o){if(!0!==Pu(o))return}else o=t.newValueMode;if(void 0===e||null===e)return;Ee("",!0!==t.multiple,!0);const n="toggle"===o?he:fe;n(e,"add-unique"===o),!0!==t.multiple&&(null!==_.value&&_.value.focus(),Ke())};if(void 0!==t.onNewValue?n("new-value",u.value,e):e(u.value),!0!==t.multiple)return}!0===i.value?We():!0!==I.innerLoading.value&&Ye()}}function Me(){return!0===m?M.value:null!==k.value&&null!==k.value.__qPortalInnerRef.value?k.value.__qPortalInnerRef.value:void 0}function Te(){return Me()}function Be(){return!0===t.hideSelected?[]:void 0!==o["selected-item"]?oe.value.map(e=>o["selected-item"](e)).slice():void 0!==o.selected?[].concat(o.selected()):!0===t.useChips?oe.value.map((o,n)=>e.h(da,{key:"option-"+n,removable:!0===I.editable.value&&!0!==ue.value(o.opt),dense:!0,textColor:t.color,tabindex:J.value,onRemove(){o.removeAtIndex(n)}},()=>e.h("span",{class:"ellipsis",[!0===o.html?"innerHTML":"textContent"]:se.value(o.opt)}))):[e.h("span",{[!0===G.value?"innerHTML":"textContent"]:void 0!==t.displayValue?t.displayValue:X.value})]}function Oe(){if(!0===K.value)return void 0!==o["no-option"]?o["no-option"]({inputValue:u.value}):void 0;const t=void 0!==o.option?o.option:t=>{return e.h(er,{key:t.index,...t.itemProps},()=>{return e.h(tr,()=>e.h(br,()=>e.h("span",{[!0===t.html?"innerHTML":"textContent"]:t.label})))})};let n=P("div",ne.value.map(t));return void 0!==o["before-options"]&&(n=o["before-options"]().concat(n)),Ne(o["after-options"],n)}function Ve(o,n){const a={ref:!0===n?_:void 0,key:"i_t",class:Q.value,style:t.inputStyle,value:void 0!==u.value?u.value:"",type:"search",...ee.value,...I.splitAttrs.attributes.value,id:I.targetUid.value,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":!0!==o&&!0===t.autofocus||void 0,disabled:!0===t.disable,readonly:!0===t.readonly,...de.value};return!0!==o&&!0===m&&(!0===Array.isArray(a.class)?a.class[0]+=" no-pointer-events":a.class+=" no-pointer-events"),e.h("input",a)}function ze(e){clearTimeout(v),e&&e.target&&!0===e.target.composing||(Le(e.target.value||""),f=!0,g=u.value,!0===I.focused.value||!0===m&&!0!==c.value||I.focus(),void 0!==t.onFilter&&(v=setTimeout(()=>{Pe(u.value)},t.inputDebounce)))}function Le(e){u.value!==e&&(u.value=e,n("input-value",e))}function Ee(e,o,n){f=!0!==n,!0===t.useInput&&(Le(e),!0!==o&&!0===n||(g=e),!0!==o&&Pe(e))}function Pe(o,l){if(void 0===t.onFilter||!0!==l&&!0!==I.focused.value)return;!0===I.innerLoading.value?n("filter-abort"):(I.innerLoading.value=!0,d.value=!0),""!==o&&!0!==t.multiple&&j.value.length>0&&!0!==f&&o===se.value(j.value[0])&&(o="");const r=setTimeout(()=>{!0===i.value&&(i.value=!1)},10);clearTimeout(h),h=r,n("filter",o,(t,o)=>{!0!==l&&!0!==I.focused.value||h!==r||(clearTimeout(h),"function"===typeof t&&t(),d.value=!1,e.nextTick(()=>{I.innerLoading.value=!1,!0===I.editable.value&&(!0===l?!0===i.value&&Ke():!0===i.value?Ze(!0):i.value=!0),"function"===typeof o&&e.nextTick(()=>{o(a)})}))},()=>{!0===I.focused.value&&h===r&&(clearTimeout(h),I.innerLoading.value=!1,d.value=!1),!0===i.value&&(i.value=!1)})}function Ae(){return e.h(wn,{ref:k,class:Y.value,style:t.popupContentStyle,modelValue:i.value,fit:!0!==t.menuShrink,cover:!0===t.optionsCover&&!0!==K.value&&!0!==t.useInput,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:D.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:le.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...te.value,onScrollPassive:A,onBeforeShow:Je,onBeforeHide:Fe,onShow:Re},Oe)}function Fe(e){et(e),We()}function Re(){R()}function Ie(e){S(e),null!==_.value&&_.value.focus(),c.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function je(t){S(t),e.nextTick(()=>{c.value=!1})}function De(){const n=[e.h(Zr,{class:`col-auto ${I.fieldClass}`,...N.value,for:I.targetUid.value,dark:D.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:u.value.length>0,...I.splitAttrs.listeners.value,onFocus:Ie,onBlur:je},{...o,rawControl:()=>I.getControl(!0),before:void 0,after:void 0})];return!0===i.value&&n.push(e.h("div",{ref:M,class:Y.value+" scroll",style:t.popupContentStyle,...te.value,onClick:C,onScrollPassive:A},Oe())),e.h(Qi,{ref:$,modelValue:r.value,position:!0===t.useInput?"top":void 0,transitionShow:b,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,onBeforeShow:Je,onBeforeHide:He,onHide:Qe,onShow:Ue},()=>e.h("div",{class:"q-select__dialog"+(!0===D.value?" q-select__dialog--dark q-dark":"")+(!0===c.value?" q-select__dialog--focused":"")},n))}function He(e){et(e),null!==$.value&&$.value.__updateRefocusTarget(I.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),I.focused.value=!1}function Qe(e){Ke(),!1===I.focused.value&&n("blur",e),Xe()}function Ue(){const e=document.activeElement;null!==e&&e.id===I.targetUid.value||null===_.value||_.value===e||_.value.focus(),R()}function We(){!0!==r.value&&(s.value=-1,!0===i.value&&(i.value=!1),!1===I.focused.value&&(clearTimeout(h),h=void 0,!0===I.innerLoading.value&&(n("filter-abort"),I.innerLoading.value=!1,d.value=!1)))}function Ye(n){!0===I.editable.value&&(!0===m?(I.onControlFocusin(n),r.value=!0,e.nextTick(()=>{I.focus()})):I.focus(),void 0!==t.onFilter?Pe(u.value):!0===K.value&&void 0===o["no-option"]||(i.value=!0))}function Ke(){r.value=!1,We()}function Xe(){!0===t.useInput&&Ee(!0!==t.multiple&&!0===t.fillInput&&j.value.length>0&&se.value(j.value[0])||"",!0,!0)}function Ze(e){let o=-1;if(!0===e){if(j.value.length>0){const e=re.value(j.value[0]);o=t.options.findIndex(t=>Yn(re.value(t),e))}E(o)}ge(o)}function Ge(){!1===r.value&&null!==k.value&&k.value.updatePosition()}function Je(e){void 0!==e&&S(e),n("popup-show",e),I.hasPopupOpen.value=!0,I.onControlFocusin(e)}function et(e){void 0!==e&&S(e),n("popup-hide",e),I.hasPopupOpen.value=!1,I.onControlFocusout(e)}function tt(){m=(!0===l.platform.is.mobile||"dialog"===t.behavior)&&("menu"!==t.behavior&&(!0!==t.useInput||(void 0!==o["no-option"]||void 0!==t.onFilter||!1===K.value))),b=!0===l.platform.is.ios&&!0===m&&!0===t.useInput?"fade":t.transitionShow}return e.watch(j,e=>{p=e,!0===t.useInput&&!0===t.fillInput&&!0!==t.multiple&&!0!==I.innerLoading.value&&(!0!==r.value&&!0!==i.value||!0!==H.value)&&(!0!==f&&Xe(),!0!==r.value&&!0!==i.value||Pe(""))},{immediate:!0}),e.watch(()=>t.fillInput,Xe),e.watch(i,Ze),e.onBeforeUpdate(tt),e.onUpdated(Ge),tt(),e.onBeforeUnmount(()=>{clearTimeout(v)}),Object.assign(a,{showPopup:Ye,hidePopup:Ke,removeAtIndex:pe,add:fe,toggleOption:he,setOptionIndex:ge,moveOptionSelection:be,filter:Pe,updateMenuPosition:Ge,updateInputValue:Ee,isOptionSelected:xe,getEmittingOptionValue:ve,isOptionDisabled:(...e)=>ue.value.apply(null,e),getOptionValue:(...e)=>re.value.apply(null,e),getOptionLabel:(...e)=>se.value.apply(null,e)}),Object.assign(I,{innerValue:j,fieldClass:e.computed(()=>`q-select q-field--auto-height q-select--with${!0!==t.useInput?"out":""}-input`+` q-select--with${!0!==t.useChips?"out":""}-chips`+` q-select--${!0===t.multiple?"multiple":"single"}`),inputRef:x,targetRef:_,hasValue:H,showPopup:Ye,floatingLabel:e.computed(()=>(!0===t.hideSelected?u.value.length>0:!0===H.value)||Ur(t.displayValue)),getControlChild:()=>{if(!1!==I.editable.value&&(!0===r.value||!0!==K.value||void 0!==o["no-option"]))return!0===m?De():Ae()},controlEvents:{onFocusin(e){I.onControlFocusin(e)},onFocusout(e){I.onControlFocusout(e,()=>{Xe(),We()})},onClick(e){if(C(e),!0!==m&&!0===i.value)return We(),void(null!==_.value&&_.value.focus());Ye(e)}},getControl:o=>{const n=Be(),a=!0===o||!0!==r.value||!0!==m;if(!0===t.useInput?n.push(Ve(o,a)):!0===I.editable.value&&!0===a&&(n.push(e.h("div",{ref:_,key:"d_t",class:"no-outline",id:I.targetUid.value,...ee.value,onKeydown:$e,onKeyup:Se,onKeypress:ke})),"string"===typeof t.autocomplete&&t.autocomplete.length>0&&n.push(e.h("input",{class:"q-select__autocomplete-input no-outline",autocomplete:t.autocomplete,onKeyup:qe}))),void 0!==T.value&&!0!==t.disable&&ce.value.length>0){const o=ce.value.map(t=>e.h("option",{value:t,selected:!0}));n.push(e.h("select",{class:"hidden",name:T.value,multiple:t.multiple},o))}return e.h("div",{class:"q-field__native row items-center",...I.splitAttrs.attributes.value},n)},getInnerAppend:()=>!0!==t.loading&&!0!==d.value&&!0!==t.hideDropdownIcon?[e.h(ot,{class:"q-select__dropdown-icon"+(!0===i.value?" rotate-180":""),name:ae.value})]:null}),Xr(I)}});const Iu=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],ju=["wave","pulse","pulse-x","pulse-y","fade","blink","none"];var Nu=be({name:"QSkeleton",props:{...it,tag:{type:String,default:"div"},type:{type:String,validator:e=>Iu.includes(e),default:"rect"},animation:{type:String,validator:e=>ju.includes(e),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=rt(t,n.proxy.$q),l=e.computed(()=>{const e=void 0!==t.size?[t.size,t.size]:[t.width,t.height];return{"--q-skeleton-speed":`${t.animationSpeed}ms`,width:e[0],height:e[1]}}),i=e.computed(()=>`q-skeleton q-skeleton--${!0===a.value?"dark":"light"} q-skeleton--type-${t.type}`+("none"!==t.animation?` q-skeleton--anim q-skeleton--anim-${t.animation}`:"")+(!0===t.square?" q-skeleton--square":"")+(!0===t.bordered?" q-skeleton--bordered":""));return()=>e.h(t.tag,{class:i.value,style:l.value},Ie(o.default))}});const Du=[["left","center","start","width"],["right","center","end","width"],["top","start","center","height"],["bottom","end","center","height"]];var Hu=be({name:"QSlideItem",props:{...it,leftColor:String,rightColor:String,topColor:String,bottomColor:String,onSlide:Function},emits:["action","top","right","bottom","left"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=rt(t,l),{getCacheWithFn:r}=Pn(),s=e.ref(null);let u,c={},d={},v={};const p=e.computed(()=>!0===l.lang.rtl?{left:"right",right:"left"}:{left:"left",right:"right"}),m=e.computed(()=>"q-slide-item q-item-type overflow-hidden"+(!0===i.value?" q-slide-item--dark q-dark":""));function f(){s.value.style.transform="translate(0,0)"}function h(e,o,a){void 0!==t.onSlide&&n("slide",{side:e,ratio:o,isReset:a})}function g(e){const t=s.value;if(e.isFirst)c={dir:null,size:{left:0,right:0,top:0,bottom:0},scale:0},t.classList.add("no-transition"),Du.forEach(e=>{if(void 0!==o[e[0]]){const t=v[e[0]];t.style.transform="scale(1)",c.size[e[0]]=t.getBoundingClientRect()[e[3]]}}),c.axis="up"===e.direction||"down"===e.direction?"Y":"X";else{if(e.isFinal)return t.classList.remove("no-transition"),void(1===c.scale?(t.style.transform=`translate${c.axis}(${100*c.dir}%)`,u=setTimeout(()=>{n(c.showing,{reset:f}),n("action",{side:c.showing,reset:f})},230)):(t.style.transform="translate(0,0)",h(c.showing,0,!0)));e.direction="X"===c.axis?e.offset.x<0?"left":"right":e.offset.y<0?"up":"down"}if(void 0===o.left&&e.direction===p.value.right||void 0===o.right&&e.direction===p.value.left||void 0===o.top&&"down"===e.direction||void 0===o.bottom&&"up"===e.direction)return void(t.style.transform="translate(0,0)");let a,l,i;"X"===c.axis?(l="left"===e.direction?-1:1,a=1===l?p.value.left:p.value.right,i=e.distance.x):(l="up"===e.direction?-2:2,a=2===l?"top":"bottom",i=e.distance.y),null!==c.dir&&Math.abs(l)!==Math.abs(c.dir)||(c.dir!==l&&(["left","right","top","bottom"].forEach(e=>{d[e]&&(d[e].style.visibility=a===e?"visible":"hidden")}),c.showing=a,c.dir=l),c.scale=Math.max(0,Math.min(1,(i-40)/c.size[a])),t.style.transform=`translate${c.axis}(${i*l/Math.abs(l)}px)`,v[a].style.transform=`scale(${c.scale})`,h(a,c.scale,!1))}return e.onBeforeUpdate(()=>{d={},v={}}),e.onBeforeUnmount(()=>{clearTimeout(u)}),Object.assign(a,{reset:f}),()=>{const n=[],a={left:void 0!==o[p.value.right],right:void 0!==o[p.value.left],up:void 0!==o.bottom,down:void 0!==o.top},l=Object.keys(a).filter(e=>!0===a[e]);Du.forEach(a=>{const l=a[0];void 0!==o[l]&&n.push(e.h("div",{ref:e=>{d[l]=e},class:`q-slide-item__${l} absolute-full row no-wrap items-${a[1]} justify-${a[2]}`+(void 0!==t[l+"Color"]?` bg-${t[l+"Color"]}`:"")},[e.h("div",{ref:e=>{v[l]=e}},o[l]())]))});const i=e.h("div",{key:`${0===l.length?"only-":""} content`,ref:s,class:"q-slide-item__content"},Ie(o.default));return 0===l.length?n.push(i):n.push(e.withDirectives(i,r("dir#"+l.join(""),()=>{const e={prevent:!0,stop:!0,mouse:!0};return l.forEach(t=>{e[t]=!0}),[[wa,g,void 0,e]]}))),e.h("div",{class:m.value},n)}}});const Qu=e.h("div",{class:"q-space"});var Uu=be({name:"QSpace",setup(){return()=>Qu}});const Wu=[e.h("g",{transform:"matrix(1 0 0 -1 0 80)"},[e.h("rect",{width:"10",height:"20",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"4.3s",values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"15",width:"10",height:"80",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"2s",values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"30",width:"10",height:"50",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"1.4s",values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"45",width:"10",height:"30",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"2s",values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"})])])];var Yu=be({name:"QSpinnerAudio",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 55 80",xmlns:"http://www.w3.org/2000/svg"},Wu)}});const Ku=[e.h("g",{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"},[e.h("circle",{cx:"5",cy:"50",r:"5"},[e.h("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;5;50;50",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"cx",begin:"0s",dur:"2.2s",values:"5;27;49;5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"27",cy:"5",r:"5"},[e.h("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",from:"5",to:"5",values:"5;50;50;5",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"cx",begin:"0s",dur:"2.2s",from:"27",to:"27",values:"27;49;5;27",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"49",cy:"50",r:"5"},[e.h("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;50;5;50",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"cx",from:"49",to:"49",begin:"0s",dur:"2.2s",values:"49;5;27;49",calcMode:"linear",repeatCount:"indefinite"})])])];var Xu=be({name:"QSpinnerBall",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg"},Ku)}});const Zu=[e.h("rect",{y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"60",width:"15",height:"140",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])];var Gu=be({name:"QSpinnerBars",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg"},Zu)}});const Ju=[e.h("rect",{x:"25",y:"25",width:"50",height:"50",fill:"none","stroke-width":"4",stroke:"currentColor"},[e.h("animateTransform",{id:"spinnerBox",attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",dur:"0.5s",begin:"rectBox.end"})]),e.h("rect",{x:"27",y:"27",width:"46",height:"50",fill:"currentColor"},[e.h("animate",{id:"rectBox",attributeName:"height",begin:"0s;spinnerBox.end",dur:"1.3s",from:"50",to:"0",fill:"freeze"})])];var ec=be({name:"QSpinnerBox",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Ju)}});const tc=[e.h("circle",{cx:"50",cy:"50",r:"48",fill:"none","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor"}),e.h("line",{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"85",y2:"50.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2s",repeatCount:"indefinite"})]),e.h("line",{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"49.5",y2:"74"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"15s",repeatCount:"indefinite"})])];var oc=be({name:"QSpinnerClock",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},tc)}});const nc=[e.h("rect",{x:"0",y:"0",width:" 100",height:"100",fill:"none"}),e.h("path",{d:"M78,19H22c-6.6,0-12,5.4-12,12v31c0,6.6,5.4,12,12,12h37.2c0.4,3,1.8,5.6,3.7,7.6c2.4,2.5,5.1,4.1,9.1,4 c-1.4-2.1-2-7.2-2-10.3c0-0.4,0-0.8,0-1.3h8c6.6,0,12-5.4,12-12V31C90,24.4,84.6,19,78,19z",fill:"currentColor"}),e.h("circle",{cx:"30",cy:"47",r:"5",fill:"#fff"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;1;1",keyTimes:"0;0.2;1",dur:"1s",repeatCount:"indefinite"})]),e.h("circle",{cx:"50",cy:"47",r:"5",fill:"#fff"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.2;0.4;1",dur:"1s",repeatCount:"indefinite"})]),e.h("circle",{cx:"70",cy:"47",r:"5",fill:"#fff"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.4;0.6;1",dur:"1s",repeatCount:"indefinite"})])];var ac=be({name:"QSpinnerComment",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},nc)}});const lc=[e.h("rect",{x:"0",y:"0",width:" 100",height:"100",fill:"none"}),e.h("g",{transform:"translate(25 25)"},[e.h("rect",{x:"-20",y:"-20",width:" 40",height:"40",fill:"currentColor",opacity:"0.9"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),e.h("g",{transform:"translate(75 25)"},[e.h("rect",{x:"-20",y:"-20",width:" 40",height:"40",fill:"currentColor",opacity:"0.8"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.1s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),e.h("g",{transform:"translate(25 75)"},[e.h("rect",{x:"-20",y:"-20",width:" 40",height:"40",fill:"currentColor",opacity:"0.7"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.3s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),e.h("g",{transform:"translate(75 75)"},[e.h("rect",{x:"-20",y:"-20",width:" 40",height:"40",fill:"currentColor",opacity:"0.6"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.2s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])])];var ic=be({name:"QSpinnerCube",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},lc)}});const rc=[e.h("circle",{cx:"15",cy:"15",r:"15"},[e.h("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"60",cy:"15",r:"9","fill-opacity":".3"},[e.h("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"fill-opacity",from:".5",to:".5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"105",cy:"15",r:"15"},[e.h("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})])];var sc=be({name:"QSpinnerDots",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg"},rc)}});const uc=[e.h("g",{transform:"translate(20 50)"},[e.h("rect",{x:"-10",y:"-30",width:" 20",height:"60",fill:"currentColor",opacity:"0.6"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])]),e.h("g",{transform:"translate(50 50)"},[e.h("rect",{x:"-10",y:"-30",width:" 20",height:"60",fill:"currentColor",opacity:"0.8"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.1s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])]),e.h("g",{transform:"translate(80 50)"},[e.h("rect",{x:"-10",y:"-30",width:" 20",height:"60",fill:"currentColor",opacity:"0.9"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.2s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])])];var cc=be({name:"QSpinnerFacebook",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},uc)}});const dc=[e.h("g",{transform:"translate(-20,-20)"},[e.h("path",{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"90 50 50",to:"0 50 50",dur:"1s",repeatCount:"indefinite"})])]),e.h("g",{transform:"translate(20,20) rotate(15 50 50)"},[e.h("path",{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"90 50 50",dur:"1s",repeatCount:"indefinite"})])])];var vc=be({name:"QSpinnerGears",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},dc)}});const pc=[e.h("circle",{cx:"12.5",cy:"12.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"12.5",cy:"52.5",r:"12.5","fill-opacity":".5"},[e.h("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"52.5",cy:"12.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"52.5",cy:"52.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"92.5",cy:"12.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"92.5",cy:"52.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"12.5",cy:"92.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"52.5",cy:"92.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"92.5",cy:"92.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})])];var mc=be({name:"QSpinnerGrid",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg"},pc)}});const fc=[e.h("path",{d:"M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.716-6.002 11.47-7.65 17.304-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z","fill-opacity":".5"},[e.h("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("path",{d:"M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.593-2.32 17.308 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z","fill-opacity":".5"},[e.h("animate",{attributeName:"fill-opacity",begin:"0.7s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("path",{d:"M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"})];var hc=be({name:"QSpinnerHearts",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 140 64",xmlns:"http://www.w3.org/2000/svg"},fc)}});const gc=[e.h("g",[e.h("path",{fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"10",d:"M58.4,51.7c-0.9-0.9-1.4-2-1.4-2.3s0.5-0.4,1.4-1.4 C70.8,43.8,79.8,30.5,80,15.5H70H30H20c0.2,15,9.2,28.1,21.6,32.3c0.9,0.9,1.4,1.2,1.4,1.5s-0.5,1.6-1.4,2.5 C29.2,56.1,20.2,69.5,20,85.5h10h40h10C79.8,69.5,70.8,55.9,58.4,51.7z"}),e.h("clipPath",{id:"uil-hourglass-clip1"},[e.h("rect",{x:"15",y:"20",width:" 70",height:"25"},[e.h("animate",{attributeName:"height",from:"25",to:"0",dur:"1s",repeatCount:"indefinite",values:"25;0;0",keyTimes:"0;0.5;1"}),e.h("animate",{attributeName:"y",from:"20",to:"45",dur:"1s",repeatCount:"indefinite",values:"20;45;45",keyTimes:"0;0.5;1"})])]),e.h("clipPath",{id:"uil-hourglass-clip2"},[e.h("rect",{x:"15",y:"55",width:" 70",height:"25"},[e.h("animate",{attributeName:"height",from:"0",to:"25",dur:"1s",repeatCount:"indefinite",values:"0;25;25",keyTimes:"0;0.5;1"}),e.h("animate",{attributeName:"y",from:"80",to:"55",dur:"1s",repeatCount:"indefinite",values:"80;55;55",keyTimes:"0;0.5;1"})])]),e.h("path",{d:"M29,23c3.1,11.4,11.3,19.5,21,19.5S67.9,34.4,71,23H29z","clip-path":"url(#uil-hourglass-clip1)",fill:"currentColor"}),e.h("path",{d:"M71.6,78c-3-11.6-11.5-20-21.5-20s-18.5,8.4-21.5,20H71.6z","clip-path":"url(#uil-hourglass-clip2)",fill:"currentColor"}),e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",repeatCount:"indefinite",dur:"1s",values:"0 50 50;0 50 50;180 50 50",keyTimes:"0;0.7;1"})])];var bc=be({name:"QSpinnerHourglass",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},gc)}});const yc=[e.h("path",{d:"M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z",fill:"none",stroke:"currentColor","stroke-width":"8","stroke-dasharray":"10.691205342610678 10.691205342610678","stroke-dashoffset":"0"},[e.h("animate",{attributeName:"stroke-dashoffset",from:"0",to:"21.382410685221355",begin:"0",dur:"2s",repeatCount:"indefinite",fill:"freeze"})])];var wc=be({name:"QSpinnerInfinity",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},yc)}});const xc=[e.h("g",{"stroke-width":"4","stroke-linecap":"round"},[e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(180)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(210)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(240)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".1;0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(270)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".15;.1;0;1;.85;.7;.65;.55;.45;.35;.25;.15",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(300)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".25;.15;.1;0;1;.85;.7;.65;.55;.45;.35;.25",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(330)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".35;.25;.15;.1;0;1;.85;.7;.65;.55;.45;.35",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(0)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".45;.35;.25;.15;.1;0;1;.85;.7;.65;.55;.45",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(30)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".55;.45;.35;.25;.15;.1;0;1;.85;.7;.65;.55",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(60)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".65;.55;.45;.35;.25;.15;.1;0;1;.85;.7;.65",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(90)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".7;.65;.55;.45;.35;.25;.15;.1;0;1;.85;.7",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(120)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".85;.7;.65;.55;.45;.35;.25;.15;.1;0;1;.85",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(150)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"})])])];var _c=be({name:"QSpinnerIos",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 64 64"},xc)}});const Sc=[e.h("circle",{cx:"50",cy:"50",r:"44",fill:"none","stroke-width":"4","stroke-opacity":".5",stroke:"currentColor"}),e.h("circle",{cx:"8",cy:"54",r:"6",fill:"currentColor","stroke-width":"3",stroke:"currentColor"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 48",to:"360 50 52",dur:"2s",repeatCount:"indefinite"})])];var Cc=be({name:"QSpinnerOrbit",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Sc)}});const qc=[e.h("g",{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"},[e.h("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),e.h("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])];var kc=be({name:"QSpinnerOval",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},qc)}});const $c=[e.h("path",{d:"M0 50A50 50 0 0 1 50 0L50 50L0 50",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"0.8s",repeatCount:"indefinite"})]),e.h("path",{d:"M50 0A50 50 0 0 1 100 50L50 50L50 0",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"1.6s",repeatCount:"indefinite"})]),e.h("path",{d:"M100 50A50 50 0 0 1 50 100L50 50L100 50",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2.4s",repeatCount:"indefinite"})]),e.h("path",{d:"M50 100A50 50 0 0 1 0 50L50 50L50 100",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"3.2s",repeatCount:"indefinite"})])];var Mc=be({name:"QSpinnerPie",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},$c)}});const Tc=[e.h("g",{fill:"none","fill-rule":"evenodd","stroke-width":"2"},[e.h("circle",{cx:"22",cy:"22",r:"1"},[e.h("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]),e.h("circle",{cx:"22",cy:"22",r:"1"},[e.h("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})])])];var Bc=be({name:"QSpinnerPuff",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg"},Tc)}});const Oc=[e.h("g",{transform:"scale(0.55)"},[e.h("circle",{cx:"30",cy:"150",r:"30",fill:"currentColor"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})]),e.h("path",{d:"M90,150h30c0-49.7-40.3-90-90-90v30C63.1,90,90,116.9,90,150z",fill:"currentColor"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.1",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})]),e.h("path",{d:"M150,150h30C180,67.2,112.8,0,30,0v30C96.3,30,150,83.7,150,150z",fill:"currentColor"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.2",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})])])];var Vc=be({name:"QSpinnerRadio",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Oc)}});const zc=[e.h("g",{fill:"none","fill-rule":"evenodd",transform:"translate(1 1)","stroke-width":"2"},[e.h("circle",{cx:"22",cy:"22",r:"6"},[e.h("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"22",cy:"22",r:"6"},[e.h("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"22",cy:"22",r:"8"},[e.h("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})])])];var Lc=be({name:"QSpinnerRings",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"},zc)}});const Ec=[e.h("defs",[e.h("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},[e.h("stop",{"stop-color":"currentColor","stop-opacity":"0",offset:"0%"}),e.h("stop",{"stop-color":"currentColor","stop-opacity":".631",offset:"63.146%"}),e.h("stop",{"stop-color":"currentColor",offset:"100%"})])]),e.h("g",{transform:"translate(1 1)",fill:"none","fill-rule":"evenodd"},[e.h("path",{d:"M36 18c0-9.94-8.06-18-18-18",stroke:"url(#a)","stroke-width":"2"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})]),e.h("circle",{fill:"currentColor",cx:"36",cy:"18",r:"1"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})])])];var Pc=be({name:"QSpinnerTail",props:$t,setup(t){const{cSize:o,classes:n}=Mt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},Ec)}}),Ac=be({name:"QSplitter",props:{...it,modelValue:{type:Number,required:!0},reverse:Boolean,unit:{type:String,default:"%",validator:e=>["%","px"].includes(e)},limits:{type:Array,validator:e=>{return 2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1]&&(e[0]>=0&&e[0]<=e[1]))}},emitImmediately:Boolean,horizontal:Boolean,disable:Boolean,beforeClass:[Array,String,Object],afterClass:[Array,String,Object],separatorClass:[Array,String,Object],separatorStyle:[Array,String,Object]},emits:["update:modelValue"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=rt(t,a),i=e.ref(null),r={before:e.ref(null),after:e.ref(null)},s=e.computed(()=>"q-splitter no-wrap "+`${!0===t.horizontal?"q-splitter--horizontal column":"q-splitter--vertical row"}`+` q-splitter--${!0===t.disable?"disabled":"workable"}`+(!0===l.value?" q-splitter--dark":"")),u=e.computed(()=>!0===t.horizontal?"height":"width"),c=e.computed(()=>!0!==t.reverse?"before":"after"),d=e.computed(()=>void 0!==t.limits?t.limits:"%"===t.unit?[10,90]:[50,1/0]);function v(e){return("%"===t.unit?e:Math.round(e))+t.unit}const p=e.computed(()=>({[c.value]:{[u.value]:v(t.modelValue)}}));let m,f,h,g,b;function y(e){if(!0===e.isFirst){const e=i.value.getBoundingClientRect()[u.value];return m=!0===t.horizontal?"up":"left",f="%"===t.unit?100:e,h=Math.min(f,d.value[1],Math.max(d.value[0],t.modelValue)),g=(!0!==t.reverse?1:-1)*(!0===t.horizontal?1:!0===a.lang.rtl?-1:1)*("%"===t.unit?0===e?0:100/e:1),void i.value.classList.add("q-splitter--active")}if(!0===e.isFinal)return b!==t.modelValue&&n("update:modelValue",b),void i.value.classList.remove("q-splitter--active");const o=h+g*(e.direction===m?-1:1)*e.distance[!0===t.horizontal?"y":"x"];b=Math.min(f,d.value[1],Math.max(d.value[0],o)),r[c.value].value.style[u.value]=v(b),!0===t.emitImmediately&&t.modelValue!==b&&n("update:modelValue",b)}const w=e.computed(()=>{return[[wa,y,void 0,{[!0===t.horizontal?"vertical":"horizontal"]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]});function x(e,t){e<t[0]?n("update:modelValue",t[0]):e>t[1]&&n("update:modelValue",t[1])}return e.watch(()=>t.modelValue,e=>{x(e,d.value)}),e.watch(()=>t.limits,()=>{e.nextTick(()=>{x(t.modelValue,d.value)})}),()=>{const n=[e.h("div",{ref:r.before,class:["q-splitter__panel q-splitter__before"+(!0===t.reverse?" col":""),t.beforeClass],style:p.value.before},Ie(o.before)),e.h("div",{class:["q-splitter__separator",t.separatorClass],style:t.separatorStyle,"aria-disabled":!0===t.disable?"true":void 0},[He("div",{class:"q-splitter__separator-area absolute-full"},Ie(o.separator),"sep",!0!==t.disable,()=>w.value)]),e.h("div",{ref:r.after,class:["q-splitter__panel q-splitter__after"+(!0===t.reverse?"":" col"),t.afterClass],style:p.value.after},Ie(o.after))];return e.h("div",{class:s.value,ref:i},Ne(o.default,n))}}}),Fc=be({name:"StepHeader",props:{stepper:{},step:{},goToPanel:Function},setup(t,{attrs:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.ref(null),l=e.computed(()=>t.stepper.modelValue===t.step.name),i=e.computed(()=>{const e=t.step.disable;return!0===e||""===e}),r=e.computed(()=>{const e=t.step.error;return!0===e||""===e}),s=e.computed(()=>{const e=t.step.done;return!1===i.value&&(!0===e||""===e)}),u=e.computed(()=>{const e=t.step.headerNav,o=!0===e||""===e||void 0===e;return!1===i.value&&t.stepper.headerNav&&o}),c=e.computed(()=>{return t.step.prefix&&!1===l.value&&!1===r.value&&!1===s.value}),d=e.computed(()=>{return!0===l.value?t.step.activeIcon||t.stepper.activeIcon||n.iconSet.stepper.active:!0===r.value?t.step.errorIcon||t.stepper.errorIcon||n.iconSet.stepper.error:!1===i.value&&!0===s.value?t.step.doneIcon||t.stepper.doneIcon||n.iconSet.stepper.done:t.step.icon||t.stepper.inactiveIcon}),v=e.computed(()=>{const e=!0===r.value?t.step.errorColor||t.stepper.errorColor:void 0;if(!0===l.value){const o=t.step.activeColor||t.stepper.activeColor||t.step.color;return void 0!==o?o:e}return void 0!==e?e:!1===i.value&&!0===s.value?t.step.doneColor||t.stepper.doneColor||t.step.color||t.stepper.inactiveColor:t.step.color||t.stepper.inactiveColor}),p=e.computed(()=>{return"q-stepper__tab col-grow flex items-center no-wrap relative-position"+(void 0!==v.value?` text-${v.value}`:"")+(!0===r.value?" q-stepper__tab--error":"")+(!0===l.value?" q-stepper__tab--active":"")+(!0===s.value?" q-stepper__tab--done":"")+(!0===u.value?" q-stepper__tab--navigation q-focusable q-hoverable":"")+(!0===i.value?" q-stepper__tab--disabled":"")}),m=e.computed(()=>!0===t.stepper.headerNav&&u.value);function f(){null!==a.value&&a.value.focus(),!1===l.value&&t.goToPanel(t.step.name)}function h(e){13===e.keyCode&&!1===l.value&&t.goToPanel(t.step.name)}return()=>{const n={class:p.value};!0===u.value&&(n.onClick=f,n.onKeyup=h,Object.assign(n,!0===i.value?{tabindex:-1,"aria-disabled":"true"}:{tabindex:o.tabindex||0}));const l=[e.h("div",{class:"q-focus-helper",tabindex:-1,ref:a}),e.h("div",{class:"q-stepper__dot row flex-center q-stepper__line relative-position"},[e.h("span",{class:"row flex-center"},[!0===c.value?t.step.prefix:e.h(ot,{name:d.value})])])];if(void 0!==t.step.title&&null!==t.step.title){const o=[e.h("div",{class:"q-stepper__title"},t.step.title)];void 0!==t.step.caption&&null!==t.step.caption&&o.push(e.h("div",{class:"q-stepper__caption"},t.step.caption)),l.push(e.h("div",{class:"q-stepper__label q-stepper__line relative-position"},o))}return e.withDirectives(e.h("div",n,l),[[Dt,m.value]])}}});function Rc(t){return e.h("div",{class:"q-stepper__step-content"},[e.h("div",{class:"q-stepper__step-inner"},Ie(t.default))])}const Ic={setup(e,{slots:t}){return()=>Rc(t)}};var jc=be({name:"QStep",props:{...An,icon:String,color:String,title:{type:String,required:!0},caption:String,prefix:[String,Number],doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String,headerNav:{type:Boolean,default:!0},done:Boolean,error:Boolean},setup(t,{slots:o}){const n=e.inject(ne,()=>{console.error("QStep needs to be child of QStepper")}),{getCacheWithFn:a}=Pn(),l=e.ref(null),i=e.computed(()=>n.value.modelValue===t.name);e.watch(i,t=>{!0===t&&!0===n.value.vertical&&e.nextTick(()=>{null!==l.value&&(l.value.scrollTop=0)})});const r=e.computed(()=>"string"===typeof t.name||"number"===typeof t.name?t.name:String(t.name));function s(){const t=n.value.vertical;return!0===t&&!0===n.value.keepAlive?e.h(e.KeepAlive,n.value.keepAliveProps.value,!0===i.value?[e.h(!0===n.value.needsUniqueKeepAliveWrapper.value?a(r.value,()=>({...Ic,name:r.value})):Ic,{key:r.value},o.default)]:void 0):!0!==t||!0===i.value?Rc(o):void 0}return()=>e.h("div",{ref:l,class:"q-stepper__step"},!0===n.value.vertical?[e.h(Fc,{stepper:n.value,step:t,goToPanel:n.value.goToPanel}),!0===n.value.animated?e.h(yr,s):s()]:[s()])}});const Nc=/(-\w)/g;function Dc(e){const t={};return Object.keys(e).forEach(o=>{const n=o.replace(Nc,e=>e[1].toUpperCase());t[n]=e[o]}),t}var Hc=be({name:"QStepper",props:{...it,...Rn,flat:Boolean,bordered:Boolean,alternativeLabels:Boolean,headerNav:Boolean,contracted:Boolean,headerClass:String,inactiveColor:String,inactiveIcon:String,doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String},emits:In,setup(t,{slots:o}){const n=e.getCurrentInstance(),a=rt(t,n.proxy.$q),{updatePanelsList:l,isValidPanelName:i,updatePanelIndex:r,getPanelContent:s,getPanels:u,panelDirectives:c,goToPanel:d,keepAliveProps:v,needsUniqueKeepAliveWrapper:p}=jn();e.provide(ne,e.computed(()=>({goToPanel:d,keepAliveProps:v,needsUniqueKeepAliveWrapper:p,...t})));const m=e.computed(()=>`q-stepper q-stepper--${!0===t.vertical?"vertical":"horizontal"}`+(!0===t.flat||!0===a.value?" q-stepper--flat no-shadow":"")+(!0===t.bordered||!0===a.value&&!1===t.flat?" q-stepper--bordered":"")+(!0===t.contracted?" q-stepper--contracted":"")+(!0===a.value?" q-stepper--dark q-dark":"")),f=e.computed(()=>"q-stepper__header row items-stretch justify-between"+` q-stepper__header--${!0===t.alternativeLabels?"alternative":"standard"}-labels`+(!1===t.flat||!0===t.bordered?" q-stepper__header--border":"")+(void 0!==t.headerClass?` ${t.headerClass}`:""));function h(){const n=Ie(o.message,[]);if(!0===t.vertical){i(t.modelValue)&&r();const a=e.h("div",{class:"q-stepper__content"},Ie(o.default));return void 0===n?[a]:n.concat(a)}return[e.h("div",{class:f.value},u().map(o=>{const n=Dc(o.props);return e.h(Fc,{key:n.name,stepper:t,step:n,goToPanel:d})})),n,He("div",{class:"q-stepper__content q-panel-parent"},s(),"cont",t.swipeable,()=>c.value)]}return()=>{return l(o),e.h("div",{class:m.value},Ne(o.navigation,h()))}}}),Qc=be({name:"QStepperNavigation",setup(t,{slots:o}){return()=>e.h("div",{class:"q-stepper__nav"},Ie(o.default))}}),Uc=be({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),{proxy:{$q:l}}=a;return()=>{if(void 0===t.props)return e.h("th",{class:!0===t.autoWidth?"q-table--col-auto-width":""},Ie(o.default));let i,r;const s=a.vnode.key;if(s){if(i=t.props.colsMap[s],void 0===i)return}else i=t.props.col;if(!0===i.sortable){const t="right"===i.align?"unshift":"push";r=je(o.default,[]),r[t](e.h(ot,{class:i.__iconClass,name:l.iconSet.table.arrowUp}))}else r=Ie(o.default);const u={class:i.__thClass+(!0===t.autoWidth?" q-table--col-auto-width":""),style:i.headerStyle,onClick:e=>{!0===i.sortable&&t.props.sort(i),n("click",e)}};return e.h("th",u,r)}}});function Wc(t,o){return e.h("div",t,[e.h("table",{class:"q-table"},o)])}const Yc={list:Ls,table:Ds},Kc=["list","table","__qtable"];var Xc=be({name:"QVirtualScroll",props:{...Lu,type:{type:String,default:"list",validator:e=>Kc.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},setup(t,{slots:o,attrs:n}){let a;const l=e.ref(null),i=e.computed(()=>t.itemsSize>=0&&void 0!==t.itemsFn?parseInt(t.itemsSize,10):Array.isArray(t.items)?t.items.length:0),{virtualScrollSliceRange:r,localResetVirtualScroll:s,padVirtualScroll:u,onVirtualScrollEvt:c}=Eu({virtualScrollLength:i,getVirtualScrollTarget:h,getVirtualScrollEl:f}),d=e.computed(()=>{if(0===i.value)return[];const e=(e,t)=>({index:r.value.from+t,item:e});return void 0===t.itemsFn?t.items.slice(r.value.from,r.value.to).map(e):t.itemsFn(r.value.from,r.value.to-r.value.from).map(e)}),v=e.computed(()=>"q-virtual-scroll q-virtual-scroll"+(!0===t.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==t.scrollTarget?"":" scroll")),m=e.computed(()=>void 0!==t.scrollTarget?{}:{tabindex:0});function f(){return l.value.$el||l.value}function h(){return a}function g(){a=Bo(f(),t.scrollTarget),a.addEventListener("scroll",c,p.passive)}function b(){void 0!==a&&(a.removeEventListener("scroll",c,p.passive),a=void 0)}function y(){let e=u("list"===t.type?"div":"tbody",d.value.map(o.default));return void 0!==o.before&&(e=o.before().concat(e)),Ne(o.after,e)}return e.watch(i,()=>{s()}),e.watch(()=>t.scrollTarget,()=>{b(),g()}),e.onBeforeMount(()=>{s()}),e.onMounted(()=>{g()}),e.onBeforeUnmount(()=>{b()}),()=>{if(void 0!==o.default)return"__qtable"===t.type?Wc({ref:l,class:"q-table__middle "+v.value},y()):e.h(Yc[t.type],{...n,ref:l,class:[n.class,v.value],...m.value},y);console.error("QVirtualScroll: default scoped slot is required for rendering")}}});function Zc(e,t){return new Date(e)-new Date(t)}const Gc={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>"ad"===e||"da"===e,default:"ad"}};function Jc(t,o,n,a){const l=e.computed(()=>{const{sortBy:e}=o.value;return e&&n.value.find(t=>t.name===e)||null}),i=e.computed(()=>void 0!==t.sortMethod?t.sortMethod:(e,t,o)=>{const a=n.value.find(e=>e.name===t);if(void 0===a||void 0===a.field)return e;const l=!0===o?-1:1,i="function"===typeof a.field?e=>a.field(e):e=>e[a.field];return e.sort((e,t)=>{let o=i(e),n=i(t);return null===o||void 0===o?-1*l:null===n||void 0===n?1*l:void 0!==a.sort?a.sort(o,n,e,t)*l:!0===Xn(o)&&!0===Xn(n)?(o-n)*l:!0===Kn(o)&&!0===Kn(n)?Zc(o,n)*l:"boolean"===typeof o&&"boolean"===typeof n?(o-n)*l:([o,n]=[o,n].map(e=>(e+"").toLocaleString().toLowerCase()),o<n?-1*l:o===n?0:l)})});function r(e){let l=t.columnSortOrder;if(e===Object(e))e.sortOrder&&(l=e.sortOrder),e=e.name;else{const t=n.value.find(t=>t.name===e);void 0!==t&&t.sortOrder&&(l=t.sortOrder)}let{sortBy:i,descending:r}=o.value;i!==e?(i=e,r="da"===l):!0===t.binaryStateSort?r=!r:!0===r?"ad"===l?i=null:r=!1:"ad"===l?r=!0:i=null,a({sortBy:i,descending:r,page:1})}return{columnToSort:l,computedSortMethod:i,sort:r}}const ed={filter:[String,Object],filterMethod:Function};function td(t,o){const n=e.computed(()=>void 0!==t.filterMethod?t.filterMethod:(e,t,o,n)=>{const a=t?t.toLowerCase():"";return e.filter(e=>o.some(t=>{const o=n(t,e)+"",l="undefined"===o||"null"===o?"":o.toLowerCase();return-1!==l.indexOf(a)}))});return e.watch(()=>t.filter,()=>{e.nextTick(()=>{o({page:1},!0)})},{deep:!0}),{computedFilterMethod:n}}function od(e,t){for(const o in t)if(t[o]!==e[o])return!1;return!0}function nd(e){return e.page<1&&(e.page=1),void 0!==e.rowsPerPage&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const ad={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function ld(t,o){const{props:n,emit:a}=t,l=e.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length>0?n.rowsPerPageOptions[0]:5},n.pagination)),i=e.computed(()=>{const e=void 0!==n["onUpdate:pagination"]?{...l.value,...n.pagination}:l.value;return nd(e)}),r=e.computed(()=>void 0!==i.value.rowsNumber);function s(e){u({pagination:e,filter:n.filter})}function u(t={}){e.nextTick(()=>{a("request",{pagination:t.pagination||i.value,filter:t.filter||n.filter,getCellValue:o})})}function c(e,t){const o=nd({...i.value,...e});!0!==od(i.value,o)?!0!==r.value?void 0!==n.pagination&&void 0!==n["onUpdate:pagination"]?a("update:pagination",o):l.value=o:s(o):!0===r.value&&!0===t&&s(o)}return{innerPagination:l,computedPagination:i,isServerSide:r,requestServerInteraction:u,setPagination:c}}function id(t,o,n,a,l,i){const{props:r,emit:s,proxy:{$q:u}}=t,c=e.computed(()=>!0===a.value?n.value.rowsNumber||0:i.value),d=e.computed(()=>{const{page:e,rowsPerPage:t}=n.value;return(e-1)*t}),v=e.computed(()=>{const{page:e,rowsPerPage:t}=n.value;return e*t}),p=e.computed(()=>1===n.value.page),m=e.computed(()=>0===n.value.rowsPerPage?1:Math.max(1,Math.ceil(c.value/n.value.rowsPerPage))),f=e.computed(()=>0===v.value||n.value.page>=m.value),h=e.computed(()=>{const e=r.rowsPerPageOptions.includes(o.value.rowsPerPage)?r.rowsPerPageOptions:[o.value.rowsPerPage].concat(r.rowsPerPageOptions);return e.map(e=>({label:0===e?u.lang.table.allRows:""+e,value:e}))});function g(){l({page:1})}function b(){const{page:e}=n.value;e>1&&l({page:e-1})}function y(){const{page:e,rowsPerPage:t}=n.value;v.value>0&&e*t<c.value&&l({page:e+1})}function w(){l({page:m.value})}return e.watch(m,(e,t)=>{if(e===t)return;const o=n.value.page;e&&!o?l({page:1}):e<o&&l({page:e})}),void 0!==r["onUpdate:pagination"]&&s("update:pagination",{...n.value}),{firstRowIndex:d,lastRowIndex:v,isFirstPage:p,isLastPage:f,pagesNumber:m,computedRowsPerPageOptions:h,computedRowsNumber:c,firstPage:g,prevPage:b,nextPage:y,lastPage:w}}const rd={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},sd=["update:selected","selection"];function ud(t,o,n,a){const l=e.computed(()=>{const e={};return t.selected.map(a.value).forEach(t=>{e[t]=!0}),e}),i=e.computed(()=>{return"none"!==t.selection}),r=e.computed(()=>{return"single"===t.selection}),s=e.computed(()=>{return"multiple"===t.selection}),u=e.computed(()=>n.value.length>0&&n.value.every(e=>!0===l.value[a.value(e)])),c=e.computed(()=>!0!==u.value&&n.value.some(e=>!0===l.value[a.value(e)])),d=e.computed(()=>t.selected.length);function v(e){return!0===l.value[e]}function p(){o("update:selected",[])}function m(e,n,l,i){o("selection",{rows:n,added:l,keys:e,evt:i});const s=!0===r.value?!0===l?n:[]:!0===l?t.selected.concat(n):t.selected.filter(t=>!1===e.includes(a.value(t)));o("update:selected",s)}return{hasSelectionMode:i,singleSelection:r,multipleSelection:s,allRowsSelected:u,someRowsSelected:c,rowsSelectedNumber:d,isRowSelected:v,clearSelection:p,updateSelection:m}}function cd(e){return Array.isArray(e)?e.slice():[]}const dd={expanded:Array},vd=["update:expanded"];function pd(t,o){const n=e.ref(cd(t.expanded));function a(e){return n.value.includes(e)}function l(e){void 0!==t.expanded?o("update:expanded",e):n.value=e}function i(e,t){const o=n.value.slice(),a=o.indexOf(e);!0===t?-1===a&&(o.push(e),l(o)):-1!==a&&(o.splice(a,1),l(o))}return e.watch(()=>t.expanded,e=>{n.value=cd(e)}),{isRowExpanded:a,setExpanded:l,updateExpanded:i}}const md={visibleColumns:Array};function fd(t,o,n){const a=e.computed(()=>{if(void 0!==t.columns)return t.columns;const e=t.rows[0];return void 0!==e?Object.keys(e).map(t=>({name:t,label:t.toUpperCase(),field:t,align:Xn(e[t])?"right":"left",sortable:!0})):[]}),l=e.computed(()=>{const{sortBy:e,descending:n}=o.value,l=void 0!==t.visibleColumns?a.value.filter(e=>!0===e.required||!0===t.visibleColumns.includes(e.name)):a.value;return l.map(t=>{const o=t.align||"right",a=`text-${o}`;return{...t,align:o,__iconClass:`q-table__sort-icon q-table__sort-icon--${o}`,__thClass:a+(void 0!==t.headerClasses?" "+t.headerClasses:"")+(!0===t.sortable?" sortable":"")+(t.name===e?` sorted ${!0===n?"sort-desc":""}`:""),__tdStyle:void 0!==t.style?"function"!==typeof t.style?()=>t.style:t.style:()=>null,__tdClass:void 0!==t.classes?"function"!==typeof t.classes?()=>a+" "+t.classes:e=>a+" "+t.classes(e):()=>a}})}),i=e.computed(()=>{const e={};return l.value.forEach(t=>{e[t.name]=t}),e}),r=e.computed(()=>{return void 0!==t.tableColspan?t.tableColspan:l.value.length+(!0===n.value?1:0)});return{colList:a,computedCols:l,computedColsMap:i,computedColspan:r}}const hd="q-table__bottom row items-center",gd={};zu.forEach(e=>{gd[e]={}});var bd=be({name:"QTable",props:{rows:{type:Array,default:()=>[]},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,...gd,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,...it,...Nn,...md,...ed,...ad,...dd,...rd,...Gc},emits:["request","virtual-scroll",...Dn,...vd,...sd],setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),{proxy:{$q:l}}=a,i=rt(t,l),{inFullscreen:r,toggleFullscreen:s}=Hn(),u=e.computed(()=>"function"===typeof t.rowKey?t.rowKey:e=>e[t.rowKey]),c=e.ref(null),d=e.ref(null),v=e.computed(()=>!0!==t.grid&&!0===t.virtualScroll),p=e.computed(()=>" q-table__card"+(!0===i.value?" q-table__card--dark q-dark":"")+(!0===t.square?" q-table--square":"")+(!0===t.flat?" q-table--flat":"")+(!0===t.bordered?" q-table--bordered":"")),m=e.computed(()=>`q-table__container q-table--${t.separator}-separator column no-wrap`+(!0===t.loading?" q-table--loading":"")+(!0===t.grid?" q-table--grid":p.value)+(!0===i.value?" q-table--dark":"")+(!0===t.dense?" q-table--dense":"")+(!1===t.wrapCells?" q-table--no-wrap":"")+(!0===r.value?" fullscreen scroll":"")),f=e.computed(()=>m.value+(!0===t.loading?" q-table--loading":""));e.watch(()=>t.tableStyle+t.tableClass+t.tableHeaderStyle+t.tableHeaderClass+m.value,()=>{!0===v.value&&null!==d.value&&d.value.reset()});const{innerPagination:h,computedPagination:g,isServerSide:b,requestServerInteraction:y,setPagination:w}=ld(a,me),{computedFilterMethod:x}=td(t,w),{isRowExpanded:_,setExpanded:S,updateExpanded:C}=pd(t,n),q=e.computed(()=>{let e=t.rows;if(!0===b.value||0===e.length)return e;const{sortBy:o,descending:n}=g.value;return t.filter&&(e=x.value(e,t.filter,F.value,me)),null!==j.value&&(e=N.value(t.rows===e?e.slice():e,o,n)),e}),k=e.computed(()=>q.value.length),$=e.computed(()=>{let e=q.value;if(!0===b.value)return e;const{rowsPerPage:o}=g.value;return 0!==o&&(0===H.value&&t.rows!==e?e.length>Q.value&&(e=e.slice(0,Q.value)):e=e.slice(H.value,Q.value)),e}),{hasSelectionMode:M,singleSelection:T,multipleSelection:B,allRowsSelected:O,someRowsSelected:V,rowsSelectedNumber:z,isRowSelected:L,clearSelection:E,updateSelection:P}=ud(t,n,$,u),{colList:A,computedCols:F,computedColsMap:R,computedColspan:I}=fd(t,g,M),{columnToSort:j,computedSortMethod:N,sort:D}=Jc(t,g,A,w),{firstRowIndex:H,lastRowIndex:Q,isFirstPage:U,isLastPage:W,pagesNumber:Y,computedRowsPerPageOptions:K,computedRowsNumber:X,firstPage:Z,prevPage:G,nextPage:J,lastPage:ee}=id(a,h,g,b,w,k),te=e.computed(()=>0===$.value.length),oe=e.computed(()=>{const e={};return zu.forEach(o=>{e[o]=t[o]}),void 0===e.virtualScrollItemSize&&(e.virtualScrollItemSize=!0===t.dense?28:48),e});function ne(){!0===v.value&&d.value.reset()}function ae(){if(!0===t.grid)return $e();const n=!0!==t.hideHeader?be:null;if(!0===v.value){const a=o["top-row"],l=o["bottom-row"],i={default:e=>se(e.item,o.body,e.index)};if(void 0!==a){const t=e.h("tbody",a({cols:F.value}));i.before=null===n?()=>t:()=>[n()].concat(t)}else null!==n&&(i.before=n);return void 0!==l&&(i.after=(()=>e.h("tbody",l({cols:F.value})))),e.h(Xc,{ref:d,class:t.tableClass,style:t.tableStyle,...oe.value,items:$.value,type:"__qtable",tableColspan:I.value,onVirtualScroll:ie},i)}const a=[ue()];return null!==n&&a.unshift(n()),Wc({class:["q-table__middle scroll",t.tableClass],style:t.tableStyle},a)}function le(e,t){if(null!==d.value)return void d.value.scrollTo(e,t);e=parseInt(e,10);const o=c.value.querySelector(`tbody tr:nth-of-type(${e+1})`);if(null!==o){const t=c.value.querySelector(".q-table__middle.scroll"),{offsetTop:a}=o,l=a<t.scrollTop?"decrease":"increase";t.scrollTop=a,n("virtual-scroll",{index:e,from:0,to:h.value.rowsPerPage-1,direction:l})}}function ie(e){n("virtual-scroll",e)}function re(){return[e.h(vu,{class:"q-table__linear-progress",color:t.color,dark:i.value,indeterminate:!0,trackColor:"transparent"})]}function se(a,l,r){const s=u.value(a),c=L(s);if(void 0!==l)return l(ce({key:s,row:a,pageIndex:r,__trClass:c?"selected":""}));const d=o["body-cell"],v=F.value.map(t=>{const n=o[`body-cell-${t.name}`],l=void 0!==n?n:d;return void 0!==l?l(de({key:s,row:a,pageIndex:r,col:t})):e.h("td",{class:t.__tdClass(a),style:t.__tdStyle(a)},me(t,a))});if(!0===M.value){const n=o["body-selection"],l=void 0!==n?n(ve({key:s,row:a,pageIndex:r})):[e.h(ua,{modelValue:c,color:t.color,dark:i.value,dense:t.dense,"onUpdate:modelValue":(e,t)=>{P([s],[a],e,t)}})];v.unshift(e.h("td",{class:"q-table--col-auto-width"},l))}const p={key:s,class:{selected:c}};return void 0!==t.onRowClick&&(p.class["cursor-pointer"]=!0,p.onClick=(e=>{n("RowClick",e,a,r)})),void 0!==t.onRowDblclick&&(p.class["cursor-pointer"]=!0,p.onDblclick=(e=>{n("RowDblclick",e,a,r)})),void 0!==t.onRowContextmenu&&(p.class["cursor-pointer"]=!0,p.onContextmenu=(e=>{n("RowContextmenu",e,a,r)})),e.h("tr",p,v)}function ue(){const t=o.body,n=o["top-row"],a=o["bottom-row"];let l=$.value.map((e,o)=>se(e,t,o));return void 0!==n&&(l=n({cols:F.value}).concat(l)),void 0!==a&&(l=l.concat(a({cols:F.value}))),e.h("tbody",l)}function ce(e){return pe(e),e.cols=e.cols.map(t=>{const o={...t};return Object.defineProperty(o,"value",{get:()=>me(t,e.row),configurable:!0,enumerable:!0}),o}),e}function de(e){return pe(e),Object.defineProperty(e,"value",{get:()=>me(e.col,e.row),configurable:!0,enumerable:!0}),e}function ve(e){return pe(e),e}function pe(e){Object.assign(e,{cols:F.value,colsMap:R.value,sort:D,rowIndex:H.value+e.pageIndex,color:t.color,dark:i.value,dense:t.dense}),!0===M.value&&Object.defineProperty(e,"selected",{get:()=>L(e.key),set:(t,o)=>{P([e.key],[e.row],t,o)},configurable:!0,enumerable:!0}),Object.defineProperty(e,"expand",{get:()=>_(e.key),set:t=>{C(e.key,t)},configurable:!0,enumerable:!0})}function me(e,t){const o="function"===typeof e.field?e.field(t):t[e.field];return void 0!==e.format?e.format(o,t):o}const fe=e.computed(()=>({pagination:g.value,pagesNumber:Y.value,isFirstPage:U.value,isLastPage:W.value,firstPage:Z,prevPage:G,nextPage:J,lastPage:ee,inFullscreen:r.value,toggleFullscreen:s}));function he(){const n=o.top,a=o["top-left"],l=o["top-right"],i=o["top-selection"],r=!0===M.value&&void 0!==i&&z.vaue>0,s="q-table__top relative-position row items-center";if(void 0!==n)return e.h("div",{class:s},[n(fe.value)]);let u;return!0===r?u=i(fe.value).slice():(u=[],void 0!==a?u.push(e.h("div",{class:"q-table-control"},[a(fe.value)])):t.title&&u.push(e.h("div",{class:"q-table__control"},[e.h("div",{class:["q-table__title",t.titleClass]},t.title)]))),void 0!==l&&(u.push(e.h("div",{class:"q-table__separator col"})),u.push(e.h("div",{class:"q-table__control"},[l(fe.value)]))),0!==u.length?e.h("div",{class:s},u):void 0}const ge=e.computed(()=>!0===V.value?null:O.value);function be(){const n=ye();return!0===t.loading&&void 0===o.loading&&n.push(e.h("tr",{class:"q-table__progress"},[e.h("th",{class:"relative-position",colspan:I.value},re())])),e.h("thead",n)}function ye(){const n=o.header,a=o["header-cell"];if(void 0!==n)return n(we({header:!0})).slice();const l=F.value.map(t=>{const n=o[`header-cell-${t.name}`],l=void 0!==n?n:a,i=we({col:t});return void 0!==l?l(i):e.h(Uc,{key:t.name,props:i},()=>t.label)});if(!0===T.value&&!0!==t.grid)l.unshift(e.h("th",{class:"q-table--col-auto-width"}," "));else if(!0===B.value){const n=o["header-selection"],a=void 0!==n?n(we({})):[e.h(ua,{color:t.color,modelValue:ge.value,dark:i.value,dense:t.dense,"onUpdate:modelValue":xe})];l.unshift(e.h("th",{class:"q-table--col-auto-width"},a))}return[e.h("tr",{class:t.tableHeaderClass,style:t.tableHeaderStyle},l)]}function we(e){return Object.assign(e,{cols:F.value,sort:D,colsMap:R.value,color:t.color,dark:i.value,dense:t.dense}),!0===B.value&&Object.defineProperty(e,"selected",{get:()=>ge.value,set:xe,configurable:!0,enumerable:!0}),e}function xe(e){!0===V.value&&(e=!1),P($.value.map(u.value),$.value,e)}const _e=e.computed(()=>{const e=[t.iconFirstPage||l.iconSet.table.firstPage,t.iconPrevPage||l.iconSet.table.prevPage,t.iconNextPage||l.iconSet.table.nextPage,t.iconLastPage||l.iconSet.table.lastPage];return!0===l.lang.rtl?e.reverse():e});function Se(){if(!0===t.hideBottom)return;if(!0===te.value){if(!0===t.hideNoData)return;const n=!0===t.loading?t.loadingLabel||l.lang.table.loading:t.filter?t.noResultsLabel||l.lang.table.noResults:t.noDataLabel||l.lang.table.noData,a=o["no-data"],i=void 0!==a?[a({message:n,icon:l.iconSet.table.warning,filter:t.filter})]:[e.h(ot,{class:"q-table__bottom-nodata-icon",name:l.iconSet.table.warning}),n];return e.h("div",{class:hd+" q-table__bottom--nodata"},i)}const n=o.bottom;if(void 0!==n)return e.h("div",{class:hd},[n(fe.value)]);const a=!0!==t.hideSelectedBanner&&!0===M.value&&z.value>0?[e.h("div",{class:"q-table__control"},[e.h("div",[(t.selectedRowsLabel||l.lang.table.selectedRecords)(z.value)])])]:[];return!0!==t.hidePagination?e.h("div",{class:hd+" justify-end"},qe(a)):a.length>0?e.h("div",{class:hd},a):void 0}function Ce(e){w({page:1,rowsPerPage:e.value})}function qe(n){let a;const{rowsPerPage:r}=g.value,s=t.paginationLabel||l.lang.table.pagination,u=o.pagination,c=t.rowsPerPageOptions.length>1;if(n.push(e.h("div",{class:"q-table__separator col"})),!0===c&&n.push(e.h("div",{class:"q-table__control"},[e.h("span",{class:"q-table__bottom-item"},[t.rowsPerPageLabel||l.lang.table.recordsPerPage]),e.h(Ru,{class:"q-table__select inline q-table__bottom-item",color:t.color,modelValue:r,options:K.value,displayValue:0===r?l.lang.table.allRows:r,dark:i.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Ce})])),void 0!==u)a=u(fe.value);else if(a=[e.h("span",0!==r?{class:"q-table__bottom-item"}:{},[r?s(H.value+1,Math.min(Q.value,X.value),X.value):s(1,k.value,X.value)])],0!==r&&Y.value>1){const o={color:t.color,round:!0,dense:!0,flat:!0};!0===t.dense&&(o.size="sm"),Y.value>2&&a.push(e.h(Gt,{key:"pgFirst",...o,icon:_e.value[0],disable:U.value,onClick:Z})),a.push(e.h(Gt,{key:"pgPrev",...o,icon:_e.value[1],disable:U.value,onClick:G}),e.h(Gt,{key:"pgNext",...o,icon:_e.value[2],disable:W.value,onClick:J})),Y.value>2&&a.push(e.h(Gt,{key:"pgLast",...o,icon:_e.value[3],disable:W.value,onClick:ee}))}return n.push(e.h("div",{class:"q-table__control"},a)),n}function ke(){const n=!0===t.gridHeader?[e.h("table",{class:"q-table"},[be()])]:!0===t.loading&&void 0===o.loading?re():void 0;return e.h("div",{class:"q-table__middle"},n)}function $e(){const a=void 0!==o.item?o.item:a=>{const l=a.cols.map(t=>e.h("div",{class:"q-table__grid-item-row"},[e.h("div",{class:"q-table__grid-item-title"},[t.label]),e.h("div",{class:"q-table__grid-item-value"},[t.value])]));if(!0===M.value){const n=o["body-selection"],r=void 0!==n?n(a):[e.h(ua,{modelValue:a.selected,color:t.color,dark:i.value,dense:t.dense,"onUpdate:modelValue":(e,t)=>{P([a.key],[a.row],e,t)}})];l.unshift(e.h("div",{class:"q-table__grid-item-row"},r),e.h(_r,{dark:i.value}))}const r={class:["q-table__grid-item-card"+p.value,t.cardClass],style:t.cardStyle};return void 0===t.onRowClick&&void 0===t.onRowDblclick||(r.class[0]+=" cursor-pointer",void 0!==t.onRowClick&&(r.onClick=(e=>{n("RowClick",e,a.row,a.pageIndex)})),void 0!==t.onRowDblclick&&(r.onDblclick=(e=>{n("RowDblclick",e,a.row,a.pageIndex)}))),e.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(!0===a.selected?"q-table__grid-item--selected":"")},[e.h("div",r,l)])};return e.h("div",{class:["q-table__grid-content row",t.cardContainerClass],style:t.cardContainerStyle},$.value.map((e,t)=>{return a(ce({key:u.value(e),row:e,pageIndex:t}))}))}return Object.assign(a.proxy,{requestServerInteraction:y,setPagination:w,firstPage:Z,prevPage:G,nextPage:J,lastPage:ee,isRowSelected:L,clearSelection:E,isRowExpanded:_,setExpanded:S,sort:D,resetVirtualScroll:ne,scrollTo:le,getCellValue:me}),Object.defineProperty(a.proxy,"filteredSortedRows",{get:()=>q.value,enumerable:!0}),Object.defineProperty(a.proxy,"computedRows",{get:()=>$.value,enumerable:!0}),Object.defineProperty(a.proxy,"computedRowsNumber",{get:()=>X.value,enumerable:!0}),()=>{const n=[he()],a={ref:c,class:f.value};return!0===t.grid?n.push(ke()):Object.assign(a,{class:[a.class,t.cardClass],style:t.cardStyle}),n.push(ae(),Se()),!0===t.loading&&void 0!==o.loading&&n.push(o.loading()),e.h("div",a,n)}}}),yd=be({name:"QTr",props:{props:Object,noHover:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-tr"+(void 0===t.props||!0===t.props.header?"":" "+t.props.__trClass)+(!0===t.noHover?" q-tr--no-hover":""));return()=>e.h("tr",{class:n.value},Ie(o.default))}}),wd=be({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=e.computed(()=>"q-td"+(!0===t.autoWidth?" q-table--col-auto-width":"")+(!0===t.noHover?" q-td--no-hover":"")+" ");return()=>{if(void 0===t.props)return e.h("td",{class:a.value},Ie(o.default));const l=n.vnode.key,i=(void 0!==t.props.colsMap?t.props.colsMap[l]:null)||t.props.col;if(void 0===i)return;const{row:r}=t.props;return e.h("td",{class:a.value+i.__tdClass(r),style:i.__tdStyle(r)},Ie(o.default))}}}),xd=be({name:"QRouteTab",props:{...Ct,...Ra,to:{required:!0}},emits:Fa,setup(t,{slots:o,emit:n}){const a=qt(),{renderTab:l,$tabs:i}=Ia(t,o,n,{exact:e.computed(()=>t.exact),...a});return e.watch(()=>t.name+t.exact+(a.linkRoute.value||{}).href,()=>{i.verifyRouteModel()}),()=>l(a.linkTag.value,a.linkProps.value)}});function _d(e,t){if(null!==e.hour){if(null===e.minute)return"minute";if(!0===t&&null===e.second)return"second"}return"hour"}function Sd(){const e=new Date;return{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}}var Cd=be({name:"QTime",props:{...it,..._n,...Ml,mask:{default:null},format24h:{type:Boolean,default:null},defaultDate:{type:String,validator:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e)},options:Function,hourOptions:Array,minuteOptions:Array,secondOptions:Array,withSeconds:Boolean,nowBtn:Boolean},emits:Tl,setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=rt(t,a),{tabindex:i,headerClass:r,getLocale:s,getCurrentDate:u}=Ol(t,a),c=Sn(t),d=Cn(c);let v,p;const m=e.ref(null),f=e.computed(()=>N()),h=e.computed(()=>s()),g=Wl(t.modelValue,N(),s(),t.calendar,D()),y=e.ref(_d(g)),w=e.ref(g),x=e.ref(null===g.hour||g.hour<12),_=e.computed(()=>`q-time q-time--${!0===t.landscape?"landscape":"portrait"}`+(!0===l.value?" q-time--dark q-dark":"")+(!0===t.disable?" disabled":!0===t.readonly?" q-time--readonly":"")+(!0===t.bordered?" q-time--bordered":"")+(!0===t.square?" q-time--square no-border-radius":"")+(!0===t.flat?" q-time--flat no-shadow":"")),S=e.computed(()=>{const e=w.value;return{hour:null===e.hour?"--":!0===q.value?qe(e.hour):String(!0===x.value?0===e.hour?12:e.hour:e.hour>12?e.hour-12:e.hour),minute:null===e.minute?"--":qe(e.minute),second:null===e.second?"--":qe(e.second)}}),C=e.computed(()=>D()),q=e.computed(()=>null!==t.format24h?t.format24h:a.lang.date.format24h),k=e.computed(()=>{const e="hour"===y.value,t=!0===e?12:60,o=w.value[y.value],n=Math.round(o*(360/t))-180;let a=`rotate(${n}deg) translateX(-50%)`;return!0===e&&!0===q.value&&w.value.hour>=12&&(a+=" scale(.7)"),{transform:a}}),$=e.computed(()=>null!==w.value.hour),M=e.computed(()=>!0===$.value&&null!==w.value.minute),T=e.computed(()=>void 0!==t.hourOptions?e=>t.hourOptions.includes(e):void 0!==t.options?e=>t.options(e,null,null):null),B=e.computed(()=>void 0!==t.minuteOptions?e=>t.minuteOptions.includes(e):void 0!==t.options?e=>t.options(w.value.hour,e,null):null),O=e.computed(()=>void 0!==t.secondOptions?e=>t.secondOptions.includes(e):void 0!==t.options?e=>t.options(w.value.hour,w.value.minute,e):null),V=e.computed(()=>{if(null===T.value)return null;const e=R(0,11,T.value),t=R(12,11,T.value);return{am:e,pm:t,values:e.values.concat(t.values)}}),z=e.computed(()=>null!==B.value?R(0,59,B.value):null),L=e.computed(()=>null!==O.value?R(0,59,O.value):null),E=e.computed(()=>{switch(y.value){case"hour":return V.value;case"minute":return z.value;case"second":return L.value}}),P=e.computed(()=>{let e,t,o=0,n=1;const a=null!==E.value?E.value.values:void 0;"hour"===y.value?!0===q.value?(e=0,t=23):(e=0,t=11,!1===x.value&&(o=12)):(e=0,t=55,n=5);const l=[];for(let i=e,r=e;i<=t;i+=n,r++){const e=i+o,t=void 0!==a&&!1===a.includes(e),n="hour"===y.value&&0===i?!0===q.value?"00":"12":i;l.push({val:e,index:r,disable:t,label:n})}return l}),A=e.computed(()=>{return[[wa,U,void 0,{stop:!0,prevent:!0,mouse:!0}]]});function F(){const e={...u(),...Sd()};ce(e),Object.assign(w.value,e),y.value="hour"}function R(e,t,o){const n=Array.apply(null,{length:t+1}).map((t,n)=>{const a=n+e;return{index:a,val:!0===o(a)}}).filter(e=>!0===e.val).map(e=>e.index);return{min:n[0],max:n[n.length-1],values:n,threshold:t+1}}function I(e,t,o){const n=Math.abs(e-t);return Math.min(n,o-n)}function j(e,{min:t,max:o,values:n,threshold:a}){if(e===t)return t;if(e<t||e>o)return I(e,t,a)<=I(e,o,a)?t:o;const l=n.findIndex(t=>e<=t),i=n[l-1],r=n[l];return e-i<=r-e?i:r}function N(){return"persian"!==t.calendar&&null!==t.mask?t.mask:`HH:mm${!0===t.withSeconds?":ss":""}`}function D(){if("string"!==typeof t.defaultDate){const e=u(!0);return e.dateHash=Bl(e),e}return Wl(t.defaultDate,"YYYY/MM/DD",void 0,t.calendar)}function H(){return!0===de.isDeactivated||!0===de.isUnmounted||null!==E.value&&(0===E.value.values.length||"hour"===y.value&&!0!==q.value&&0===V.value[!0===x.value?"am":"pm"].values.length)}function Q(){const e=m.value,{top:t,left:o,width:n}=e.getBoundingClientRect(),a=n/2;return{top:t+a,left:o+a,dist:.7*a}}function U(e){if(!0!==H()){if(!0===e.isFirst)return v=Q(),void(p=Y(e.evt,v));p=Y(e.evt,v,p),!0===e.isFinal&&(v=!1,p=null,W())}}function W(){"hour"===y.value?y.value="minute":t.withSeconds&&"minute"===y.value&&(y.value="second")}function Y(e,t,o){const n=b(e),a=Math.abs(n.top-t.top),l=Math.sqrt(Math.pow(Math.abs(n.top-t.top),2)+Math.pow(Math.abs(n.left-t.left),2));let i,r=Math.asin(a/l)*(180/Math.PI);if(r=n.top<t.top?t.left<n.left?90-r:270+r:t.left<n.left?r+90:270-r,"hour"===y.value){if(i=r/30,null!==V.value){const e=!0!==q.value?!0===x.value:V.value.am.values.length>0&&V.value.pm.values.length>0?l>=t.dist:V.value.am.values.length>0;i=j(i+(!0===e?0:12),V.value[!0===e?"am":"pm"])}else i=Math.round(i),!0===q.value?l<t.dist?i<12&&(i+=12):12===i&&(i=0):!0===x.value&&12===i?i=0:!1===x.value&&12!==i&&(i+=12);!0===q.value&&(x.value=i<12)}else i=Math.round(r/6)%60,"minute"===y.value&&null!==z.value?i=j(i,z.value):"second"===y.value&&null!==L.value&&(i=j(i,L.value));return o!==i&&ie[y.value](i),i}e.watch(()=>t.modelValue,e=>{const o=Wl(e,f.value,h.value,t.calendar,C.value);o.dateHash===w.value.dateHash&&o.timeHash===w.value.timeHash||(w.value=o,null===o.hour?y.value="hour":x.value=o.hour<12)}),e.watch([f,h],()=>{e.nextTick(()=>{ce()})});const K={hour(){y.value="hour"},minute(){y.value="minute"},second(){y.value="second"}};function X(e){13===e.keyCode&&re()}function Z(e){13===e.keyCode&&se()}function G(e){!0!==H()&&(!0!==a.platform.is.desktop&&Y(e,Q()),W())}function J(e){!0!==H()&&Y(e,Q())}function ee(e){if(13===e.keyCode)y.value="hour";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==V.value){const e=!0===q.value?V.value.values:V.value[!0===x.value?"am":"pm"].values;if(0===e.length)return;if(null===w.value.hour)ne(e[0]);else{const o=(e.length+e.indexOf(w.value.hour)+t)%e.length;ne(e[o])}}else{const e=!0===q.value?24:12,o=!0!==q.value&&!1===x.value?12:0,n=null===w.value.hour?-t:w.value.hour;ne(o+(24+n+t)%e)}}}function te(e){if(13===e.keyCode)y.value="minute";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==z.value){const e=z.value.values;if(0===e.length)return;if(null===w.value.minute)ae(e[0]);else{const o=(e.length+e.indexOf(w.value.minute)+t)%e.length;ae(e[o])}}else{const e=null===w.value.minute?-t:w.value.minute;ae((60+e+t)%60)}}}function oe(e){if(13===e.keyCode)y.value="second";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==L.value){const e=L.value.values;if(0===e.length)return;if(null===w.value.seconds)le(e[0]);else{const o=(e.length+e.indexOf(w.value.second)+t)%e.length;le(e[o])}}else{const e=null===w.value.second?-t:w.value.second;le((60+e+t)%60)}}}function ne(e){w.value.hour!==e&&(w.value.hour=e,ue())}function ae(e){w.value.minute!==e&&(w.value.minute=e,ue())}function le(e){w.value.second!==e&&(w.value.second=e,ue())}const ie={hour:ne,minute:ae,second:le};function re(){!1===x.value&&(x.value=!0,null!==w.value.hour&&(w.value.hour-=12,ue()))}function se(){!0===x.value&&(x.value=!1,null!==w.value.hour&&(w.value.hour+=12,ue()))}function ue(){return null!==T.value&&!0!==T.value(w.value.hour)?(w.value=Wl(),void(y.value="hour")):null!==B.value&&!0!==B.value(w.value.minute)?(w.value.minute=null,w.value.second=null,void(y.value="minute")):!0===t.withSeconds&&null!==O.value&&!0!==O.value(w.value.second)?(w.value.second=null,void(y.value="second")):void(null===w.value.hour||null===w.value.minute||!0===t.withSeconds&&null===w.value.second||ce())}function ce(e){const o=Object.assign({...w.value},e),a="persian"===t.calendar?qe(o.hour)+":"+qe(o.minute)+(!0===t.withSeconds?":"+qe(o.second):""):hi(new Date(o.year,null===o.month?null:o.month-1,o.day,o.hour,o.minute,o.second,o.millisecond),f.value,h.value,o.year,o.timezoneOffset);o.changed=a!==t.modelValue,n("update:modelValue",a,o)}const de=e.getCurrentInstance();function ve(){const o=[e.h("div",{class:"q-time__link "+("hour"===y.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:K.hour,onKeyup:ee},S.value.hour),e.h("div",":"),e.h("div",!0===$.value?{class:"q-time__link "+("minute"===y.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onKeyup:te,onClick:K.minute}:{class:"q-time__link"},S.value.minute)];!0===t.withSeconds&&o.push(e.h("div",":"),e.h("div",!0===M.value?{class:"q-time__link "+("second"===y.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onKeyup:oe,onClick:K.second}:{class:"q-time__link"},S.value.second));const n=[e.h("div",{class:"q-time__header-label row items-center no-wrap",dir:"ltr"},o)];return!1===q.value&&n.push(e.h("div",{class:"q-time__header-ampm column items-between no-wrap"},[e.h("div",{class:"q-time__link "+(!0===x.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:re,onKeyup:X},"AM"),e.h("div",{class:"q-time__link "+(!0!==x.value?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:se,onKeyup:Z},"PM")])),e.h("div",{class:"q-time__header flex flex-center no-wrap "+r.value},n)}function pe(){const o=w.value[y.value];return e.h("div",{class:"q-time__content col relative-position"},[e.h(e.Transition,{name:"q-transition--scale"},()=>e.h("div",{key:"clock"+y.value,class:"q-time__container-parent absolute-full"},[e.h("div",{ref:m,class:"q-time__container-child fit overflow-hidden"},[e.withDirectives(e.h("div",{class:"q-time__clock cursor-pointer non-selectable",onClick:G,onMousedown:J},[e.h("div",{class:"q-time__clock-circle fit"},[e.h("div",{class:"q-time__clock-pointer"+(null===w.value[y.value]?" hidden":void 0!==t.color?` text-${t.color}`:""),style:k.value}),P.value.map(t=>e.h("div",{class:`q-time__clock-position row flex-center q-time__clock-pos-${t.index}`+(t.val===o?" q-time__clock-position--active "+r.value:!0===t.disable?" q-time__clock-position--disable":"")},[e.h("span",t.label)]))])]),A.value)])])),!0===t.nowBtn?e.h(Gt,{class:"q-time__now-button absolute",icon:a.iconSet.datetime.now,unelevated:!0,size:"sm",round:!0,color:t.color,textColor:t.textColor,tabindex:i.value,onClick:F}):null])}return Object.assign(de.proxy,{setNow:F}),()=>{const n=[pe()],a=Ie(o.default);return void 0!==a&&n.push(e.h("div",{class:"q-time__actions"},a)),void 0!==t.name&&!0!==t.disable&&d(n,"push"),e.h("div",{class:_.value,tabindex:-1},[ve(),e.h("div",{class:"q-time__main col overflow-auto"},n)])}}}),qd=be({name:"QTimeline",props:{...it,color:{type:String,default:"primary"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},layout:{type:String,default:"dense",validator:e=>["dense","comfortable","loose"].includes(e)}},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=rt(t,n.proxy.$q);e.provide(oe,t);const l=e.computed(()=>`q-timeline q-timeline--${t.layout} q-timeline--${t.layout}--${t.side}`+(!0===a.value?" q-timeline--dark":""));return()=>e.h("ul",{class:l.value},Ie(o.default))}}),kd=be({name:"QTimelineEntry",props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},setup(t,{slots:o}){const n=e.inject(oe,()=>{console.error("QTimelineEntry needs to be child of QTimeline")}),a=e.computed(()=>`q-timeline__entry q-timeline__entry--${t.side}`+(void 0!==t.icon||void 0!==t.avatar?" q-timeline__entry--icon":"")),l=e.computed(()=>`q-timeline__dot text-${t.color||n.color}`),i=e.computed(()=>"comfortable"===n.layout&&"left"===n.side);return()=>{const n=je(o.default,[]);if(void 0!==t.body&&n.unshift(t.body),!0===t.heading){const o=[e.h("div"),e.h("div"),e.h(t.tag,{class:"q-timeline__heading-title"},n)];return e.h("div",{class:"q-timeline__heading"},!0===i.value?o.reverse():o)}let r;void 0!==t.icon?r=[e.h(ot,{class:"row items-center justify-center",name:t.icon})]:void 0!==t.avatar&&(r=[e.h("img",{class:"q-timeline__dot-img",src:t.avatar})]);const s=[e.h("div",{class:"q-timeline__subtitle"},[e.h("span",{},Ie(o.subtitle,[t.subtitle]))]),e.h("div",{class:l.value},r),e.h("div",{class:"q-timeline__content"},[e.h("h6",{class:"q-timeline__title"},Ie(o.title,[t.title]))].concat(n))];return e.h("li",{class:a.value},!0===i.value?s.reverse():s)}}}),$d=be({name:"QToolbar",props:{inset:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-toolbar row no-wrap items-center"+(!0===t.inset?" q-toolbar--inset":""));return()=>e.h("div",{class:n.value},Ie(o.default))}}),Md=be({name:"QToolbarTitle",props:{shrink:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-toolbar__title ellipsis"+(!0===t.shrink?" col-shrink":""));return()=>e.h("div",{class:n.value},Ie(o.default))}});const Td=["none","strict","leaf","leaf-filtered"];var Bd=be({name:"QTree",props:{...it,nodes:{type:Array,required:!0},nodeKey:{type:String,required:!0},labelKey:{type:String,default:"label"},childrenKey:{type:String,default:"children"},dense:Boolean,color:String,controlColor:String,textColor:String,selectedColor:String,icon:String,tickStrategy:{type:String,default:"none",validator:e=>Td.includes(e)},ticked:Array,expanded:Array,selected:{},defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:Function,duration:Number,noConnectors:Boolean,noNodesLabel:String,noResultsLabel:String},emits:["update:expanded","update:ticked","update:selected","lazy-load","after-show","after-hide"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=rt(t,l),r=e.ref({}),s=e.ref(t.ticked||[]),u=e.ref(t.expanded||[]);let c={};e.onBeforeUpdate(()=>{c={}});const d=e.computed(()=>`q-tree q-tree--${!0===t.dense?"dense":"standard"}`+(!0===t.noConnectors?" q-tree--no-connectors":"")+(!0===i.value?" q-tree--dark":"")+(void 0!==t.color?` text-${t.color}`:"")),v=e.computed(()=>void 0!==t.selected),p=e.computed(()=>t.icon||l.iconSet.tree.icon),m=e.computed(()=>t.controlColor||t.color),f=e.computed(()=>void 0!==t.textColor?` text-${t.textColor}`:""),h=e.computed(()=>{const e=t.selectedColor||t.color;return e?` text-${e}`:""}),g=e.computed(()=>void 0!==t.filterMethod?t.filterMethod:(e,o)=>{const n=o.toLowerCase();return e[t.labelKey]&&e[t.labelKey].toLowerCase().indexOf(n)>-1}),b=e.computed(()=>{const e={},o=(n,a)=>{const l=n.tickStrategy||(a?a.tickStrategy:t.tickStrategy),i=n[t.nodeKey],c=n[t.childrenKey]&&n[t.childrenKey].length>0,d=!0!==c,p=!0!==n.disabled&&!0===v.value&&!1!==n.selectable,m=!0!==n.disabled&&!1!==n.expandable,f="none"!==l,h="strict"===l,b="leaf-filtered"===l,y="leaf"===l||"leaf-filtered"===l;let w=!0!==n.disabled&&!1!==n.tickable;!0===y&&!0===w&&a&&!0!==a.tickable&&(w=!1);let x=n.lazy;!0===x&&void 0!==r.value[i]&&!0===Array.isArray(n[t.childrenKey])&&(x=r.value[i]);const _={key:i,parent:a,isParent:c,isLeaf:d,lazy:x,disabled:n.disabled,link:!0!==n.disabled&&(!0===p||!0===m&&(!0===c||!0===x)),children:[],matchesFilter:!t.filter||g.value(n,t.filter),selected:i===t.selected&&!0===p,selectable:p,expanded:!0===c&&u.value.includes(i),expandable:m,noTick:!0===n.noTick||!0!==h&&x&&"loaded"!==x,tickable:w,tickStrategy:l,hasTicking:f,strictTicking:h,leafFilteredTicking:b,leafTicking:y,ticked:!0===h?s.value.includes(i):!0===d&&s.value.includes(i)};if(e[i]=_,!0===c&&(_.children=n[t.childrenKey].map(e=>o(e,_)),t.filter&&(!0!==_.matchesFilter?_.matchesFilter=_.children.some(e=>e.matchesFilter):!0!==_.noTick&&!0!==_.disabled&&!0===_.tickable&&!0===b&&!0===_.children.every(e=>!0!==e.matchesFilter||!0===e.noTick||!0!==e.tickable)&&(_.tickable=!1)),!0===_.matchesFilter&&(!0!==_.noTick&&!0!==h&&!0===_.children.every(e=>e.noTick)&&(_.noTick=!0),y))){if(_.ticked=!1,_.indeterminate=_.children.some(e=>!0===e.indeterminate),_.tickable=!0===_.tickable&&_.children.some(e=>e.tickable),!0!==_.indeterminate){const e=_.children.reduce((e,t)=>!0===t.ticked?e+1:e,0);e===_.children.length?_.ticked=!0:e>0&&(_.indeterminate=!0)}!0===_.indeterminate&&(_.indeterminateNextState=_.children.every(e=>!0!==e.tickable||!0!==e.ticked))}return _};return t.nodes.forEach(e=>o(e,null)),e});function y(e){const o=[].reduce,n=(a,l)=>{return a||!l?a:!0===Array.isArray(l)?o.call(Object(l),n,a):l[t.nodeKey]===e?l:l[t.childrenKey]?n(null,l[t.childrenKey]):void 0};return n(null,t.nodes)}function w(){return s.value.map(e=>y(e))}function x(){return u.value.map(e=>y(e))}function _(e){return!(!e||!b.value[e])&&b.value[e].expanded}function S(){void 0!==t.expanded?n("update:expanded",[]):u.value=[]}function C(){const e=u.value,o=n=>{n[t.childrenKey]&&n[t.childrenKey].length>0&&!1!==n.expandable&&!0!==n.disabled&&(e.push(n[t.nodeKey]),n[t.childrenKey].forEach(o))};t.nodes.forEach(o),void 0!==t.expanded?n("update:expanded",e):u.value=e}function k(o,a,l=y(o),i=b.value[o]){if(i.lazy&&"loaded"!==i.lazy){if("loading"===i.lazy)return;r.value[o]="loading",!0!==Array.isArray(l[t.childrenKey])&&(l[t.childrenKey]=[]),n("lazy-load",{node:l,key:o,done:n=>{r.value[o]="loaded",l[t.childrenKey]=!0===Array.isArray(n)?n:[],e.nextTick(()=>{const e=b.value[o];e&&!0===e.isParent&&$(o,!0)})},fail:()=>{delete r.value[o],0===l[t.childrenKey].length&&delete l[t.childrenKey]}})}else!0===i.isParent&&!0===i.expandable&&$(o,a)}function $(e,o){let a=u.value;const l=void 0!==t.expanded;if(!0===l&&(a=a.slice()),o){if(t.accordion&&b.value[e]){const o=[];b.value[e].parent?b.value[e].parent.children.forEach(t=>{t.key!==e&&!0===t.expandable&&o.push(t.key)}):t.nodes.forEach(n=>{const a=n[t.nodeKey];a!==e&&o.push(a)}),o.length>0&&(a=a.filter(e=>!1===o.includes(e)))}a=a.concat([e]).filter((e,t,o)=>o.indexOf(e)===t)}else a=a.filter(t=>t!==e);!0===l?n("update:expanded",a):u.value=a}function M(e){return!(!e||!b.value[e])&&b.value[e].ticked}function T(e,o){let a=s.value;const l=void 0!==t.ticked;!0===l&&(a=a.slice()),a=o?a.concat(e).filter((e,t,o)=>o.indexOf(e)===t):a.filter(t=>!1===e.includes(t)),!0===l&&n("update:ticked",a)}function B(e,o,n){const l={tree:a,node:e,key:n,color:t.color,dark:i.value};return Object.defineProperty(l,"expanded",{get:()=>{return o.expanded},set:e=>{e!==o.expanded&&k(n,e)},configurable:!0,enumerable:!0}),Object.defineProperty(l,"ticked",{get:()=>{return o.ticked},set:e=>{e!==o.ticked&&T([n],e)},configurable:!0,enumerable:!0}),l}function O(e){return(t.filter?e.filter(e=>b.value[e[t.nodeKey]].matchesFilter):e).map(e=>E(e))}function V(t){if(void 0!==t.icon)return e.h(ot,{class:"q-tree__icon q-mr-sm",name:t.icon,color:t.iconColor});const o=t.img||t.avatar;return o?e.h("img",{class:`q-tree__${t.img?"img":"avatar"} q-mr-sm`,src:o}):void 0}function z(){n("after-show")}function L(){n("after-hide")}function E(n){const a=n[t.nodeKey],l=b.value[a],r=n.header&&o[`header-${n.header}`]||o["default-header"],s=!0===l.isParent?O(n[t.childrenKey]):[],u=s.length>0||l.lazy&&"loaded"!==l.lazy;let d=n.body&&o[`body-${n.body}`]||o["default-body"];const v=void 0!==r||void 0!==d?B(n,l,a):null;return void 0!==d&&(d=e.h("div",{class:"q-tree__node-body relative-position"},[e.h("div",{class:f.value},[d(v)])])),e.h("div",{key:a,class:"q-tree__node relative-position"+` q-tree__node--${!0===u?"parent":"child"}`},[e.h("div",{class:"q-tree__node-header relative-position row no-wrap items-center"+(!0===l.link?" q-tree__node--link q-hoverable q-focusable":"")+(!0===l.selected?" q-tree__node--selected":"")+(!0===l.disabled?" q-tree__node--disabled":""),tabindex:!0===l.link?0:-1,onClick:e=>{A(n,l,e)},onKeypress(e){!0!==U(e)&&(13===e.keyCode?A(n,l,e,!0):32===e.keyCode&&F(n,l,e,!0))}},[e.h("div",{class:"q-focus-helper",tabindex:-1,ref:e=>{c[l.key]=e}}),"loading"===l.lazy?e.h(Tt,{class:"q-tree__spinner",color:m.value}):!0===u?e.h(ot,{class:"q-tree__arrow"+(!0===l.expanded?" q-tree__arrow--rotate":""),name:p.value,onClick(e){F(n,l,e)}}):null,!0===l.hasTicking&&!0!==l.noTick?e.h(ua,{class:"q-tree__tickbox",modelValue:!0===l.indeterminate?null:l.ticked,color:m.value,dark:i.value,dense:!0,keepColor:!0,disable:!0!==l.tickable,onKeydown:q,"onUpdate:modelValue":e=>{R(l,e)}}):null,e.h("div",{class:"q-tree__node-header-content col row no-wrap items-center"+(!0===l.selected?h.value:f.value)},[r?r(v):[V(n),e.h("div",n[t.labelKey])]])]),!0===u?e.h(yr,{duration:t.duration,onShow:z,onHide:L},()=>e.withDirectives(e.h("div",{class:"q-tree__node-collapsible"+f.value,key:`${a}__q`},[d,e.h("div",{class:"q-tree__children"+(!0===l.disabled?" q-tree__node--disabled":"")},s)]),[[e.vShow,l.expanded]])):d])}function P(e){const t=c[e];t&&t.focus()}function A(e,o,a,l){!0!==l&&P(o.key),v.value?o.selectable&&n("update:selected",o.key!==t.selected?o.key:null):F(e,o,a,l),"function"===typeof e.handler&&e.handler(e)}function F(e,t,o,n){void 0!==o&&q(o),!0!==n&&P(t.key),k(t.key,!t.expanded,e,t)}function R(e,t){if(!0===e.indeterminate&&(t=e.indeterminateNextState),e.strictTicking)T([e.key],t);else if(e.leafTicking){const o=[],n=e=>{e.isParent?(!0!==t&&!0!==e.noTick&&!0===e.tickable&&o.push(e.key),!0===e.leafTicking&&e.children.forEach(n)):!0===e.noTick||!0!==e.tickable||!0===e.leafFilteredTicking&&!0!==e.matchesFilter||o.push(e.key)};n(e),T(o,t)}}return e.watch(()=>t.ticked,e=>{s.value=e}),e.watch(()=>t.expanded,e=>{u.value=e}),Object.assign(a,{getNodeByKey:y,getTickedNodes:w,getExpandedNodes:x,isExpanded:_,collapseAll:S,expandAll:C,setExpanded:k,isTicked:M,setTicked:T}),!0===t.defaultExpandAll&&C(),()=>{const o=O(t.nodes);return e.h("div",{class:d.value},0===o.length?t.filter?t.noResultsLabel||l.lang.tree.noResults:t.noNodesLabel||l.lang.tree.noNodes:o)}}});function Od(e){return(100*e).toFixed(2)+"%"}const Vd={...it,...es,label:String,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,noThumbnails:Boolean,autoUpload:Boolean,hideUploadBtn:Boolean,disable:Boolean,readonly:Boolean},zd=[...ts,"start","finish","added","removed"];function Ld(t){const o=e.getCurrentInstance(),{props:n,slots:a,emit:l,proxy:i}=o,{$q:r}=i,s=rt(n,r);function u(e,t,o){if(e.__status=t,"idle"===t)return e.__uploaded=0,e.__progress=0,e.__sizeLabel=xe(e.size),void(e.__progressLabel="0.00%");"failed"!==t?(e.__uploaded="uploaded"===t?e.size:o,e.__progress="uploaded"===t?1:Math.min(.9999,e.__uploaded/e.size),e.__progressLabel=Od(e.__progress),i.$forceUpdate()):i.$forceUpdate()}const c={files:e.ref([]),queuedFiles:e.ref([]),uploadedFiles:e.ref([]),uploadedSize:e.ref(0),updateFileStatus:u,isAlive(){return!0!==o.isDeactivated&&!0!==o.isUnmounted}};Object.assign(c,t({props:n,slots:a,emit:l,helpers:c}));const d=e.ref(0),v=e.computed(()=>!0!==n.disable&&!0!==n.readonly);void 0===c.isBusy&&(c.isBusy=e.ref(!1));const p=e.ref(!1),m=e.ref(null),f=e.ref(null);e.provide(ue,j);const{pickFiles:h,addFiles:g,onDragover:b,processFiles:y,getDndNode:w,maxFilesNumber:x,maxTotalSizeNumber:_}=os({editable:v,dnd:p,getFileInput:A,addFilesToQueue:F}),C=e.computed(()=>!0===v.value&&!0!==c.isUploading.value&&(!0===n.multiple||0===c.queuedFiles.value.length)&&(void 0===n.maxFiles||c.files.value.length<x.value)&&(void 0===n.maxTotalSize||d.value<_.value)),q=e.computed(()=>!0===v.value&&!0!==c.isBusy.value&&!0!==c.isUploading.value&&c.queuedFiles.value.length>0),k=e.computed(()=>0===d.value?0:c.uploadedSize.value/d.value),$=e.computed(()=>Od(k.value)),M=e.computed(()=>xe(d.value)),T=e.computed(()=>"q-uploader column no-wrap"+(!0===s.value?" q-uploader--dark q-dark":"")+(!0===n.bordered?" q-uploader--bordered":"")+(!0===n.square?" q-uploader--square no-border-radius":"")+(!0===n.flat?" q-uploader--flat no-shadow":"")+(!0===n.disable?" disabled q-uploader--disable":"")),B=e.computed(()=>"q-uploader__header"+(void 0!==n.color?` bg-${n.color}`:"")+(void 0!==n.textColor?` text-${n.textColor}`:""));function O(){!1===n.disable&&(c.abort(),c.uploadedSize.value=0,d.value=0,P(),c.files.value=[],c.queuedFiles.value=[],c.uploadedFiles.value=[])}function V(){!1===n.disable&&L(["uploaded"],()=>{c.uploadedFiles.value=[]})}function z(){L(["idle","failed"],({size:e})=>{d.value-=e,c.queuedFiles.value=[]})}function L(e,t){if(!0===n.disable)return;const o={files:[],size:0},a=c.files.value.filter(t=>{return-1===e.indexOf(t.__status)||(o.size+=t.size,o.files.push(t),void 0!==t._img&&window.URL.revokeObjectURL(t._img.src),!1)});o.files.length>0&&(c.files.value=a,t(o),l("removed",o.files))}function E(e){n.disable||("uploaded"===e.__status?c.uploadedFiles.value=c.uploadedFiles.value.filter(t=>t.name!==e.name):"uploading"===e.__status?e.__abort():d.value-=e.size,c.files.value=c.files.value.filter(t=>{return t.name!==e.name||(void 0!==t._img&&window.URL.revokeObjectURL(t._img.src),!1)}),c.queuedFiles.value=c.queuedFiles.value.filter(t=>t.name!==e.name),l("removed",[e]))}function P(){c.files.value.forEach(e=>{void 0!==e._img&&window.URL.revokeObjectURL(e._img.src)})}function A(){return f.value||m.value.getElementsByClassName("q-uploader__input")[0]}function F(e,t){const o=y(e,t,c.files.value,!0);if(void 0===o)return;const a=A();void 0!==a&&null!==a&&(a.value=""),o.forEach(e=>{if(c.updateFileStatus(e,"idle"),d.value+=e.size,!0!==n.noThumbnails&&e.type.toUpperCase().startsWith("IMAGE")){const t=new Image;t.src=window.URL.createObjectURL(e),e.__img=t}}),c.files.value=c.files.value.concat(o),c.queuedFiles.value=c.queuedFiles.value.concat(o),l("added",o),!0===n.autoUpload&&c.upload()}function R(){!0===q.value&&c.upload()}function I(t,o,n){if(!0===t){const t={type:"a",key:o,icon:r.iconSet.uploader[o],flat:!0,dense:!0};let a=void 0;return"add"===o?a=j:t.onClick=n,e.h(Gt,t,a)}}function j(){return e.h("input",{ref:f,class:"q-uploader__input overflow-hidden absolute-full",tabindex:-1,type:"file",title:"",accept:n.accept,multiple:!0===n.multiple?"multiple":void 0,capture:n.capture,onMousedown:S,onChange:F})}function N(){return void 0!==a.header?a.header(Q.value):[e.h("div",{class:"q-uploader__header-content flex flex-center no-wrap q-gutter-xs"},[I(c.queuedFiles.value.length>0,"removeQueue",z),I(c.uploadedFiles.value.length>0,"removeUploaded",V),!0===c.isUploading.value?e.h(Tt,{class:"q-uploader__spinner"}):null,e.h("div",{class:"col column justify-center"},[void 0!==n.label?e.h("div",{class:"q-uploader__title"},[n.label]):null,e.h("div",{class:"q-uploader__subtitle"},[M.value+" / "+$.value])]),I(C.value,"add"),I(!1===n.hideUploadBtn&&!0===q.value,"upload",c.upload),I(c.isUploading.value,"clear",c.abort)])]}function D(){return void 0!==a.list?a.list(Q.value):c.files.value.map(t=>e.h("div",{key:t.name,class:"q-uploader__file relative-position"+(!0!==n.noThumbnails&&void 0!==t.__img?" q-uploader__file--img":"")+("failed"===t.__status?" q-uploader__file--failed":"uploaded"===t.__status?" q-uploader__file--uploaded":""),style:!0!==n.noThumbnails&&void 0!==t.__img?{backgroundImage:'url("'+t.__img.src+'")'}:null},[e.h("div",{class:"q-uploader__file-header row flex-center no-wrap"},["failed"===t.__status?e.h(ot,{class:"q-uploader__file-status",name:r.iconSet.type.negative,color:"negative"}):null,e.h("div",{class:"q-uploader__file-header-content col"},[e.h("div",{class:"q-uploader__title"},[t.name]),e.h("div",{class:"q-uploader__subtitle row items-center no-wrap"},[t.__sizeLabel+" / "+t.__progressLabel])]),"uploading"===t.__status?e.h(ga,{value:t.__progress,min:0,max:1,indeterminate:0===t.__progress}):e.h(Gt,{round:!0,dense:!0,flat:!0,icon:r.iconSet.uploader["uploaded"===t.__status?"done":"clear"],onClick:()=>{E(t)}})])]))}e.watch(c.isUploading,(e,t)=>{!1===t&&!0===e?l("start"):!0===t&&!1===e&&l("finish")}),e.onBeforeUnmount(()=>{!0===c.isUploading.value&&c.abort(),c.files.value.length>0&&P()});const H={pickFiles:h,addFiles:g,reset:O,removeUploadedFiles:V,removeQueuedFiles:z,removeFile:E,upload:R,abort:c.abort},Q=e.computed(()=>{const t={canAddFiles:C.value,canUpload:q.value,uploadSizeLabel:M.value,uploadProgressLabel:$.value};return Object.keys(c).forEach(o=>{t[o]=!0===e.isRef(c[o])?c[o].value:c[o]}),{...t,...H}});return Object.assign(i,H),()=>{const t=[e.h("div",{class:B.value},N()),e.h("div",{class:"q-uploader__list scroll"},D()),w("uploader")];!0===c.isBusy.value&&t.push(e.h("div",{class:"q-uploader__overlay absolute-full flex flex-center"},[e.h(Tt)]));const o={ref:m,class:T.value};return!0===C.value&&(o.onDragover=b),e.h("div",o,t)}}const Ed=()=>!0;function Pd(e){const t={};return e.forEach(e=>{t[e]=Ed}),t}const Ad=Pd(zd);var Fd=({name:e,props:t,emits:o,injectPlugin:n})=>be({name:e,props:{...Vd,...t},emits:Object(o)===o?{...Ad,...o}:[...zd,...o],setup(){return Ld(n)}});function Rd(e){return"function"===typeof e?e:()=>e}const Id={url:[Function,String],method:{type:[Function,String],default:"POST"},fieldName:{type:[Function,String],default:()=>{return e=>e.name}},headers:[Function,Array],formFields:[Function,Array],withCredentials:[Function,Boolean],sendRaw:[Function,Boolean],batch:[Function,Boolean],factory:Function},jd=["factory-failed","uploaded","failed","uploading"];function Nd({props:t,emit:o,helpers:n}){const a=e.ref([]),l=e.ref([]),i=e.ref(0),r=e.computed(()=>({url:Rd(t.url),method:Rd(t.method),headers:Rd(t.headers),formFields:Rd(t.formFields),fieldName:Rd(t.fieldName),withCredentials:Rd(t.withCredentials),sendRaw:Rd(t.sendRaw),batch:Rd(t.batch)})),s=e.computed(()=>i.value>0),u=e.computed(()=>l.value.length>0);let c;function d(){a.value.forEach(e=>{e.abort()}),l.value.length>0&&(c=!0)}function v(){const e=n.queuedFiles.value.slice(0);n.queuedFiles.value=[],r.value.batch(e)?p(e):e.forEach(e=>{p([e])})}function p(e){if(i.value++,"function"!==typeof t.factory)return void m(e,{});const a=t.factory(e);if(a)if("function"===typeof a.catch&&"function"===typeof a.then){l.value.push(a);const t=t=>{!0===n.isAlive()&&(l.value=l.value.filter(e=>e!==a),0===l.value.length&&(c=!1),n.queuedFiles.value=n.queuedFiles.value.concat(e),e.forEach(e=>{n.updateFileStatus(e,"failed")}),o("factory-failed",t,e),i.value--)};a.then(o=>{!0===c?t(new Error("Aborted")):!0===n.isAlive()&&(l.value=l.value.filter(e=>e!==a),m(e,o))}).catch(t)}else m(e,a||{});else o("factory-failed",new Error("QUploader: factory() does not return properly"),e),i.value--}function m(e,t){const l=new FormData,s=new XMLHttpRequest,u=(e,o)=>{return void 0!==t[e]?Rd(t[e])(o):r.value[e](o)},c=u("url",e);if(!c)return console.error("q-uploader: invalid or no URL specified"),void i.value--;const d=u("formFields",e);void 0!==d&&d.forEach(e=>{l.append(e.name,e.value)});let v,p=0,m=0,f=0,h=0;s.upload.addEventListener("progress",t=>{if(!0===v)return;const o=Math.min(h,t.loaded);n.uploadedSize.value+=o-f,f=o;let a=f-m;for(let l=p;a>0&&l<e.length;l++){const t=e[l],o=a>t.size;if(!o)return void n.updateFileStatus(t,"uploading",a);a-=t.size,p++,m+=t.size,n.updateFileStatus(t,"uploading",t.size)}},!1),s.onreadystatechange=(()=>{s.readyState<4||(s.status&&s.status<400?(n.uploadedFiles.value=n.uploadedFiles.value.concat(e),e.forEach(e=>{n.updateFileStatus(e,"uploaded")}),o("uploaded",{files:e,xhr:s})):(v=!0,n.uploadedSize.value-=f,n.queuedFiles.value=n.queuedFiles.value.concat(e),e.forEach(e=>{n.updateFileStatus(e,"failed")}),o("failed",{files:e,xhr:s})),i.value--,a.value=a.value.filter(e=>e!==s))}),s.open(u("method",e),c),!0===u("withCredentials",e)&&(s.withCredentials=!0);const g=u("headers",e);void 0!==g&&g.forEach(e=>{s.setRequestHeader(e.name,e.value)});const b=u("sendRaw",e);e.forEach(e=>{n.updateFileStatus(e,"uploading",0),!0!==b&&l.append(u("fieldName",e),e,e.name),e.xhr=s,e.__abort=(()=>{s.abort()}),h+=e.size}),o("uploading",{files:e,xhr:s}),a.value.push(s),!0===b?s.send(new Blob(e)):s.send(l)}return{isUploading:s,isBusy:u,abort:d,upload:v}}var Dd={name:"QUploader",props:Id,emits:jd,injectPlugin:Nd},Hd=Fd(Dd),Qd=be({name:"QUploaderAddTrigger",setup(){return e.inject(ue,()=>{console.error("QUploaderAddTrigger needs to be child of QUploader")})}}),Ud=be({name:"QVideo",props:{...us,src:{type:String,required:!0}},setup(t){const o=cs(t),n=e.computed(()=>"q-video"+(void 0!==t.ratio?" q-video--responsive":""));return()=>e.h("div",{class:n.value,style:o.value},[e.h("iframe",{src:t.src,frameborder:"0",allowfullscreen:!0})])}}),Wd=Object.freeze({__proto__:null,QAjaxBar:Pe,QAvatar:nt,QBadge:lt,QBanner:st,QBar:ut,QBreadcrumbs:gt,QBreadcrumbsEl:kt,QBtn:Gt,QBtnDropdown:xn,QBtnGroup:Jt,QBtnToggle:kn,QCard:$n,QCardSection:Mn,QCardActions:Tn,QCarousel:Jn,QCarouselSlide:ea,QCarouselControl:ta,QChatMessage:oa,QCheckbox:ua,QChip:da,QCircularProgress:ga,QColor:pl,QDate:qi,QDialog:Qi,QDrawer:Wi,QEditor:gr,QExpansionItem:Or,QFab:Ar,QFabAction:Ir,QField:Zr,QFile:as,QFooter:ls,QForm:is,QFormChildMixin:rs,QHeader:ss,QIcon:ot,QImg:vs,QInfiniteScroll:ms,QInnerLoading:fs,QInput:Ms,QIntersection:zs,QList:Ls,QItem:er,QItemSection:tr,QItemLabel:br,QKnob:As,QLayout:js,QMarkupTable:Ds,QMenu:wn,QNoSsr:Hs,QOptionGroup:Xs,QPage:Zs,QPageContainer:Gs,QPageScroller:tu,QPageSticky:ou,QPagination:nu,QParallax:iu,QPopupEdit:su,QPopupProxy:uu,QLinearProgress:vu,QPullToRefresh:fu,QRadio:Us,QRange:gu,QRating:bu,QResizeObserver:Oa,QResponsive:yu,QScrollArea:_u,QScrollObserver:Is,QSelect:Ru,QSeparator:_r,QSkeleton:Nu,QSlideItem:Hu,QSlideTransition:yr,QSlider:$a,QSpace:Uu,QSpinner:Tt,QSpinnerAudio:Yu,QSpinnerBall:Xu,QSpinnerBars:Gu,QSpinnerBox:ec,QSpinnerClock:oc,QSpinnerComment:ac,QSpinnerCube:ic,QSpinnerDots:sc,QSpinnerFacebook:cc,QSpinnerGears:vc,QSpinnerGrid:mc,QSpinnerHearts:hc,QSpinnerHourglass:bc,QSpinnerInfinity:wc,QSpinnerIos:_c,QSpinnerOrbit:Cc,QSpinnerOval:kc,QSpinnerPie:Mc,QSpinnerPuff:Bc,QSpinnerRadio:Vc,QSpinnerRings:Lc,QSpinnerTail:Pc,QSplitter:Ac,QStep:jc,QStepper:Hc,QStepperNavigation:Qc,QTabPanels:Na,QTabPanel:Da,QTable:bd,QTh:Uc,QTr:yd,QTd:wd,QTabs:Pa,QTab:ja,QRouteTab:xd,QTime:Cd,QTimeline:qd,QTimelineEntry:kd,QToggle:Ws,QToolbar:$d,QToolbarTitle:Md,QTooltip:Ji,QTree:Bd,QUploader:Hd,QUploaderAddTrigger:Qd,QVideo:Ud,QVirtualScroll:Xc});function Yd(e){if(!1===e)return 0;if(!0===e||void 0===e)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}var Kd=ye({name:"close-popup",beforeMount(e,{value:t}){const o={depth:Yd(t),handler(t){0!==o.depth&&setTimeout(()=>{const n=wo(e);void 0!==n&&_o(n,t,o.depth)})},handlerKey(e){!0===W(e,13)&&o.handler(e)}};e.__qclosepopup=o,e.addEventListener("click",o.handler),e.addEventListener("keyup",o.handlerKey)},updated(e,{value:t,oldValue:o}){t!==o&&(e.__qclosepopup.depth=Yd(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}});let Xd=0,Zd=void 0;function Gd(e,t){void 0===Zd&&(Zd=document.createElement("div"),Zd.style.cssText="position: absolute; left: 0; top: 0",document.body.appendChild(Zd));const o=e.getBoundingClientRect(),n=Zd.getBoundingClientRect(),{marginLeft:a,marginRight:l,marginTop:i,marginBottom:r}=window.getComputedStyle(e),s=parseInt(a,10)+parseInt(l,10),u=parseInt(i,10)+parseInt(r,10);return{left:o.left-n.left,top:o.top-n.top,width:o.right-o.left,height:o.bottom-o.top,widthM:o.right-o.left+(!0===t?0:s),heightM:o.bottom-o.top+(!0===t?0:u),marginH:!0===t?s:0,marginV:!0===t?u:0}}function Jd(e){return{width:e.scrollWidth,height:e.scrollHeight}}const ev=["Top","Right","Bottom","Left"],tv=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],ov=/-block|-inline|block-|inline-/,nv=/(-block|-inline|block-|inline-).*:/;function av(e,t){const o=window.getComputedStyle(e),n={};for(let a=0;a<t.length;a++){const e=t[a];if(""===o[e])if("cssText"===e){const t=o.length;let a="";for(let e=0;e<t;e++)!0!==ov.test(o[e])&&(a+=o[e]+": "+o[o[e]]+"; ");n[e]=a}else if(["borderWidth","borderStyle","borderColor"].indexOf(e)>-1){const t=e.replace("border","");let a="";for(let e=0;e<ev.length;e++){const n="border"+ev[e]+t;a+=o[n]+" "}n[e]=a}else if("borderRadius"===e){let t="",a="";for(let e=0;e<tv.length;e++){const n=o[tv[e]].split(" ");t+=n[0]+" ",a+=(void 0===n[1]?n[0]:n[1])+" "}n[e]=t+"/ "+a}else n[e]=o[e];else n[e]="cssText"===e?o[e].split(";").filter(e=>!0!==nv.test(e)).join(";"):o[e]}return n}const lv=["absolute","fixed","relative","sticky"];function iv(e){let t=e,o=0;while(null!==t&&t!==document){const{position:n,zIndex:a}=window.getComputedStyle(t),l=Number(a);l>o&&(t===e||!0===lv.includes(n))&&(o=l),t=t.parentNode}return o}function rv(e){return{from:e.from,to:void 0!==e.to?e.to:e.from}}function sv(e){return"number"===typeof e?e={duration:e}:"function"===typeof e&&(e={onEnd:e}),{...e,waitFor:void 0===e.waitFor?0:e.waitFor,duration:!0===isNaN(e.duration)?300:parseInt(e.duration,10),easing:"string"===typeof e.easing&&e.easing.length>0?e.easing:"ease-in-out",delay:!0===isNaN(e.delay)?0:parseInt(e.delay,10),fill:"string"===typeof e.fill&&e.fill.length>0?e.fill:"none",resize:!0===e.resize,useCSS:!0===e.useCSS,hideFromClone:!0===e.hideFromClone,keepToClone:!0===e.keepToClone,tween:!0===e.tween,tweenFromOpacity:!0===isNaN(e.tweenFromOpacity)?.6:parseFloat(e.tweenFromOpacity),tweenToOpacity:!0===isNaN(e.tweenToOpacity)?.5:parseFloat(e.tweenToOpacity)}}function uv(e){const t=typeof e;return"function"===t?e():"string"===t?document.querySelector(e):e}function cv(e){return e&&e.ownerDocument===document&&null!==e.parentNode}function dv(e){let t=()=>!1,o=!1,n=!0;const a=rv(e),l=sv(e),i=uv(a.from);if(!0!==cv(i))return t;"function"===typeof i.qMorphCancel&&i.qMorphCancel();let r=void 0,s=void 0,u=void 0,c=void 0;const d=i.parentNode,v=i.nextElementSibling,p=Gd(i,l.resize),{width:m,height:f}=Jd(d),{borderWidth:h,borderStyle:g,borderColor:b,borderRadius:y,backgroundColor:w,transform:x,position:_,cssText:S}=av(i,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),C=i.classList.toString(),q=i.style.cssText,k=i.cloneNode(!0),$=!0===l.tween?i.cloneNode(!0):void 0;void 0!==$&&($.className=$.classList.toString().split(" ").filter(e=>!1===/^bg-/.test(e)).join(" ")),!0===l.hideFromClone&&k.classList.add("q-morph--internal"),k.setAttribute("aria-hidden","true"),k.style.transition="none",k.style.animation="none",k.style.pointerEvents="none",d.insertBefore(k,v),i.qMorphCancel=(()=>{o=!0,k.remove(),void 0!==$&&$.remove(),!0===l.hideFromClone&&k.classList.remove("q-morph--internal"),i.qMorphCancel=void 0});const M=()=>{const e=uv(a.to);if(!0===o||!0!==cv(e))return void("function"===typeof i.qMorphCancel&&i.qMorphCancel());i!==e&&"function"===typeof e.qMorphCancel&&e.qMorphCancel(),!0!==l.keepToClone&&e.classList.add("q-morph--internal"),k.classList.add("q-morph--internal");const{width:v,height:M}=Jd(d),{width:T,height:B}=Jd(e.parentNode);!0!==l.hideFromClone&&k.classList.remove("q-morph--internal"),e.qMorphCancel=(()=>{o=!0,k.remove(),void 0!==$&&$.remove(),!0===l.hideFromClone&&k.classList.remove("q-morph--internal"),!0!==l.keepToClone&&e.classList.remove("q-morph--internal"),i.qMorphCancel=void 0,e.qMorphCancel=void 0});const O=()=>{if(!0===o)return void("function"===typeof e.qMorphCancel&&e.qMorphCancel());!0!==l.hideFromClone&&(k.classList.add("q-morph--internal"),k.innerHTML="",k.style.left=0,k.style.right="unset",k.style.top=0,k.style.bottom="unset",k.style.transform="none"),!0!==l.keepToClone&&e.classList.remove("q-morph--internal");const a=e.parentNode,{width:O,height:V}=Jd(a),z=e.cloneNode(l.keepToClone);z.setAttribute("aria-hidden","true"),!0!==l.keepToClone&&(z.style.left=0,z.style.right="unset",z.style.top=0,z.style.bottom="unset",z.style.transform="none",z.style.pointerEvents="none"),z.classList.add("q-morph--internal");const L=e===i&&d===a?k:e.nextElementSibling;a.insertBefore(z,L);const{borderWidth:E,borderStyle:P,borderColor:A,borderRadius:F,backgroundColor:R,transform:I,position:j,cssText:N}=av(e,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),D=e.classList.toString(),H=e.style.cssText;e.style.cssText=N,e.style.transform="none",e.style.animation="none",e.style.transition="none",e.className=D.split(" ").filter(e=>!1===/^bg-/.test(e)).join(" ");const Q=Gd(e,l.resize),U=p.left-Q.left,W=p.top-Q.top,Y=p.width/(Q.width>0?Q.width:10),K=p.height/(Q.height>0?Q.height:100),X=m-v,Z=f-M,G=O-T,J=V-B,ee=Math.max(p.widthM,X),te=Math.max(p.heightM,Z),oe=Math.max(Q.widthM,G),ne=Math.max(Q.heightM,J),ae=i===e&&!1===["absolute","fixed"].includes(j)&&!1===["absolute","fixed"].includes(_);let le="fixed"===j,ie=a;while(!0!==le&&ie!==document)le="fixed"===window.getComputedStyle(ie).position,ie=ie.parentNode;if(!0!==l.hideFromClone&&(k.style.display="block",k.style.flex="0 0 auto",k.style.opacity=0,k.style.minWidth="unset",k.style.maxWidth="unset",k.style.minHeight="unset",k.style.maxHeight="unset",k.classList.remove("q-morph--internal")),!0!==l.keepToClone&&(z.style.display="block",z.style.flex="0 0 auto",z.style.opacity=0,z.style.minWidth="unset",z.style.maxWidth="unset",z.style.minHeight="unset",z.style.maxHeight="unset"),z.classList.remove("q-morph--internal"),"string"===typeof l.classes&&(e.className+=" "+l.classes),"string"===typeof l.style)e.style.cssText+=" "+l.style;else if(l.style===Object(l.style))for(const t in l.style)e.style[t]=l.style[t];const re=iv(k),se=iv(e),ue=!0===le?document.documentElement:{scrollLeft:0,scrollTop:0};e.style.position=!0===le?"fixed":"absolute",e.style.left=`${Q.left-ue.scrollLeft}px`,e.style.right="unset",e.style.top=`${Q.top-ue.scrollTop}px`,e.style.margin=0,!0===l.resize&&(e.style.minWidth="unset",e.style.maxWidth="unset",e.style.minHeight="unset",e.style.maxHeight="unset",e.style.overflow="hidden",e.style.overflowX="hidden",e.style.overflowY="hidden"),document.body.appendChild(e),void 0!==$&&($.style.cssText=S,$.style.transform="none",$.style.animation="none",$.style.transition="none",$.style.position=e.style.position,$.style.left=`${p.left-ue.scrollLeft}px`,$.style.right="unset",$.style.top=`${p.top-ue.scrollTop}px`,$.style.margin=0,$.style.pointerEvents="none",!0===l.resize&&($.style.minWidth="unset",$.style.maxWidth="unset",$.style.minHeight="unset",$.style.maxHeight="unset",$.style.overflow="hidden",$.style.overflowX="hidden",$.style.overflowY="hidden"),document.body.appendChild($));const ce=o=>{i===e&&!0!==n?(e.style.cssText=q,e.className=C):(e.style.cssText=H,e.className=D),z.parentNode===a&&a.insertBefore(e,z),k.remove(),z.remove(),void 0!==$&&$.remove(),t=(()=>!1),i.qMorphCancel=void 0,e.qMorphCancel=void 0,"function"===typeof l.onEnd&&l.onEnd(!0===n?"to":"from",!0===o)};if(!0!==l.useCSS&&"function"===typeof e.animate){const a=!0===l.resize?{transform:`translate(${U}px, ${W}px)`,width:`${ee}px`,height:`${te}px`}:{transform:`translate(${U}px, ${W}px) scale(${Y}, ${K})`},d=!0===l.resize?{width:`${oe}px`,height:`${ne}px`}:{},v=!0===l.resize?{width:`${ee}px`,height:`${te}px`}:{},m=!0===l.resize?{transform:`translate(${-1*U}px, ${-1*W}px)`,width:`${oe}px`,height:`${ne}px`}:{transform:`translate(${-1*U}px, ${-1*W}px) scale(${1/Y}, ${1/K})`},f=void 0!==$?{opacity:l.tweenToOpacity}:{backgroundColor:w},_=void 0!==$?{opacity:1}:{backgroundColor:R};c=e.animate([{margin:0,borderWidth:h,borderStyle:g,borderColor:b,borderRadius:y,zIndex:re,transformOrigin:"0 0",...a,...f},{margin:0,borderWidth:E,borderStyle:P,borderColor:A,borderRadius:F,zIndex:se,transformOrigin:"0 0",transform:I,...d,..._}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),s=void 0===$?void 0:$.animate([{opacity:l.tweenFromOpacity,margin:0,borderWidth:h,borderStyle:g,borderColor:b,borderRadius:y,zIndex:re,transformOrigin:"0 0",transform:x,...v},{opacity:0,margin:0,borderWidth:E,borderStyle:P,borderColor:A,borderRadius:F,zIndex:se,transformOrigin:"0 0",...m}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),r=!0===l.hideFromClone||!0===ae?void 0:k.animate([{margin:`${Z<0?Z/2:0}px ${X<0?X/2:0}px`,width:`${ee+p.marginH}px`,height:`${te+p.marginV}px`},{margin:0,width:0,height:0}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),u=!0===l.keepToClone?void 0:z.animate([!0===ae?{margin:`${Z<0?Z/2:0}px ${X<0?X/2:0}px`,width:`${ee+p.marginH}px`,height:`${te+p.marginV}px`}:{margin:0,width:0,height:0},{margin:`${J<0?J/2:0}px ${G<0?G/2:0}px`,width:`${oe+Q.marginH}px`,height:`${ne+Q.marginV}px`}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay});const S=e=>{void 0!==r&&r.cancel(),void 0!==s&&s.cancel(),void 0!==u&&u.cancel(),c.cancel(),c.removeEventListener("finish",S),c.removeEventListener("cancel",S),ce(e),r=void 0,s=void 0,u=void 0,c=void 0};i.qMorphCancel=(()=>{i.qMorphCancel=void 0,o=!0,S()}),e.qMorphCancel=(()=>{e.qMorphCancel=void 0,o=!0,S()}),c.addEventListener("finish",S),c.addEventListener("cancel",S),t=(e=>{return!0!==o&&void 0!==c&&(!0===e?(S(!0),!0):(n=!0!==n,void 0!==r&&r.reverse(),void 0!==s&&s.reverse(),void 0!==u&&u.reverse(),c.reverse(),!0))})}else{const a=`q-morph-anim-${++Xd}`,r=document.createElement("style"),s=!0===l.resize?`\n transform: translate(${U}px, ${W}px);\n width: ${ee}px;\n height: ${te}px;\n `:`transform: translate(${U}px, ${W}px) scale(${Y}, ${K});`,u=!0===l.resize?`\n width: ${oe}px;\n height: ${ne}px;\n `:"",c=!0===l.resize?`\n width: ${ee}px;\n height: ${te}px;\n `:"",d=!0===l.resize?`\n transform: translate(${-1*U}px, ${-1*W}px);\n width: ${oe}px;\n height: ${ne}px;\n `:`transform: translate(${-1*U}px, ${-1*W}px) scale(${1/Y}, ${1/K});`,v=void 0!==$?`opacity: ${l.tweenToOpacity};`:`background-color: ${w};`,m=void 0!==$?"opacity: 1;":`background-color: ${R};`,f=void 0===$?"":`\n @keyframes ${a}-from-tween {\n 0% {\n opacity: ${l.tweenFromOpacity};\n margin: 0;\n border-width: ${h};\n border-style: ${g};\n border-color: ${b};\n border-radius: ${y};\n z-index: ${re};\n transform-origin: 0 0;\n transform: ${x};\n ${c}\n }\n\n 100% {\n opacity: 0;\n margin: 0;\n border-width: ${E};\n border-style: ${P};\n border-color: ${A};\n border-radius: ${F};\n z-index: ${se};\n transform-origin: 0 0;\n ${d}\n }\n }\n `,_=!0===l.hideFromClone||!0===ae?"":`\n @keyframes ${a}-from {\n 0% {\n margin: ${Z<0?Z/2:0}px ${X<0?X/2:0}px;\n width: ${ee+p.marginH}px;\n height: ${te+p.marginV}px;\n }\n\n 100% {\n margin: 0;\n width: 0;\n height: 0;\n }\n }\n `,S=!0===ae?`\n margin: ${Z<0?Z/2:0}px ${X<0?X/2:0}px;\n width: ${ee+p.marginH}px;\n height: ${te+p.marginV}px;\n `:"\n margin: 0;\n width: 0;\n height: 0;\n ",C=!0===l.keepToClone?"":`\n @keyframes ${a}-to {\n 0% {\n ${S}\n }\n\n 100% {\n margin: ${J<0?J/2:0}px ${G<0?G/2:0}px;\n width: ${oe+Q.marginH}px;\n height: ${ne+Q.marginV}px;\n }\n }\n `;r.innerHTML=`\n @keyframes ${a} {\n 0% {\n margin: 0;\n border-width: ${h};\n border-style: ${g};\n border-color: ${b};\n border-radius: ${y};\n background-color: ${w};\n z-index: ${re};\n transform-origin: 0 0;\n ${s}\n ${v}\n }\n\n 100% {\n margin: 0;\n border-width: ${E};\n border-style: ${P};\n border-color: ${A};\n border-radius: ${F};\n background-color: ${R};\n z-index: ${se};\n transform-origin: 0 0;\n transform: ${I};\n ${u}\n ${m}\n }\n }\n\n ${_}\n\n ${f}\n\n ${C}\n `,document.head.appendChild(r);let q="normal";k.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${q} ${l.fill} ${a}-from`,void 0!==$&&($.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${q} ${l.fill} ${a}-from-tween`),z.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${q} ${l.fill} ${a}-to`,e.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${q} ${l.fill} ${a}`;const M=t=>{t===Object(t)&&t.animationName!==a||(e.removeEventListener("animationend",M),e.removeEventListener("animationcancel",M),ce(),r.remove())};i.qMorphCancel=(()=>{i.qMorphCancel=void 0,o=!0,M()}),e.qMorphCancel=(()=>{e.qMorphCancel=void 0,o=!0,M()}),e.addEventListener("animationend",M),e.addEventListener("animationcancel",M),t=(t=>{return!!(!0!==o&&e&&k&&z)&&(!0===t?(M(),!0):(n=!0!==n,q="normal"===q?"reverse":"normal",k.style.animationDirection=q,$.style.animationDirection=q,z.style.animationDirection=q,e.style.animationDirection=q,!0))})}};if(l.waitFor>0||"transitionend"===l.waitFor||l.waitFor===Object(l.waitFor)&&"function"===typeof l.waitFor.then){const t=l.waitFor>0?new Promise(e=>setTimeout(e,l.waitFor)):"transitionend"===l.waitFor?new Promise(t=>{const o=setTimeout(()=>{n()},400),n=a=>{clearTimeout(o),e&&(e.removeEventListener("transitionend",n),e.removeEventListener("transitioncancel",n)),t()};e.addEventListener("transitionend",n),e.addEventListener("transitioncancel",n)}):l.waitFor;t.then(O).catch(()=>{"function"===typeof e.qMorphCancel&&e.qMorphCancel()})}else O()};return"function"===typeof e.onToggle&&e.onToggle(),requestAnimationFrame(M),e=>t(e)}const vv={},pv=["duration","delay","easing","fill","classes","style","duration","resize","useCSS","hideFromClone","keepToClone","tween","tweenFromOpacity","tweenToOpacity","waitFor","onEnd"],mv=["resize","useCSS","hideFromClone","keepToClone","tween"];function fv(e,t){e.clsAction!==t&&(e.clsAction=t,e.el.classList[t]("q-morph--invisible"))}function hv(e){if(!0===e.animating||e.queue.length<2)return;const[t,o]=e.queue;e.animating=!0,t.animating=!0,o.animating=!0,fv(t,"remove"),fv(o,"remove");const n=dv({from:t.el,to:o.el,onToggle(){fv(t,"add"),fv(o,"remove")},...o.opts,onEnd(n,a){void 0!==o.opts.onEnd&&o.opts.onEnd(n,a),!0!==a&&(t.animating=!1,o.animating=!1,e.animating=!1,e.cancel=void 0,e.queue.shift(),hv(e))}});e.cancel=(()=>{n(!0),e.cancel=void 0})}function gv(e,t){const o=t.opts;mv.forEach(t=>{o[t]=!0===e[t]})}function bv(e,t){const o="string"===typeof e&&e.length>0?e.split(":"):[];t.name=o[0],t.group=o[1],Object.assign(t.opts,{duration:!0===isNaN(o[2])?300:parseFloat(o[2]),waitFor:o[3]})}function yv(e,t){void 0!==e.group&&(t.group=e.group),void 0!==e.name&&(t.name=e.name);const o=t.opts;pv.forEach(t=>{void 0!==e[t]&&(o[t]=e[t])})}function wv(e,t){if(t.name!==e)!1===t.animating&&fv(t,"add");else{const o=vv[t.group];void 0===o?(vv[t.group]={name:t.group,model:e,queue:[t],animating:!1},fv(t,"remove")):o.model!==e&&(o.model=e,o.queue.push(t),!1===o.animating&&2===o.queue.length&&hv(o))}}function xv(e,t){let o;Object(t)===t?(o=""+t.model,yv(t,e),gv(t,e)):o=""+t,o!==e.model?(e.model=o,wv(o,e)):!1===e.animating&&void 0!==e.clsAction&&e.el.classList[e.clsAction]("q-morph--invisible")}var _v=ye({name:"morph",mounted(e,t){const o={el:e,animating:!1,opts:{}};gv(t.modifiers,o),bv(t.arg,o),xv(o,t.value),e.__qmorph=o},updated(e,t){xv(e.__qmorph,t.value)},beforeUnmount(e){const t=e.__qmorph,o=vv[t.group];if(void 0!==o){const e=o.queue.indexOf(t);-1!==e&&(o.queue=o.queue.filter(e=>e!==t),0===o.queue.length&&(void 0!==o.cancel&&o.cancel(),delete vv[t.group]))}"add"===t.clsAction&&e.classList.remove("q-morph--invisible"),delete e.__qmorph}});const Sv={childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0};function Cv(e,t,o){t.handler=o,void 0!==t.observer&&t.observer.disconnect(),t.observer=new MutationObserver(o=>{if("function"===typeof t.handler){const n=t.handler(o);!1!==n&&!0!==t.once||qv(e)}}),t.observer.observe(e,t.opts)}function qv(e){const t=e.__qmutation;void 0!==t&&(void 0!==t.observer&&t.observer.disconnect(),delete e.__qmutation)}var kv=ye({name:"mutation",mounted(e,{modifiers:{once:t,...o},value:n}){const a={once:t,opts:0===Object.keys(o).length?Sv:o};Cv(e,a,n),e.__qmutation=a},updated(e,{oldValue:t,value:o}){const n=e.__qmutation;void 0!==n&&t!==o&&Cv(e,n,o)},beforeUnmount:qv});const{passive:$v}=p;function Mv(e,{value:t,oldValue:o}){"function"===typeof t?(e.handler=t,"function"!==typeof o&&(e.scrollTarget.addEventListener("scroll",e.scroll,$v),e.scroll())):e.scrollTarget.removeEventListener("scroll",e.scroll,$v)}var Tv=ye({name:"scroll-fire",mounted(e,t){const o={scrollTarget:Bo(e),scroll:B(()=>{let t,n;o.scrollTarget===window?(n=e.getBoundingClientRect().bottom,t=window.innerHeight):(n=Bt(e).top+Vt(e),t=Bt(o.scrollTarget).top+Vt(o.scrollTarget)),n>0&&n<t&&(o.scrollTarget.removeEventListener("scroll",o.scroll,$v),o.handler(e))},25)};Mv(o,t),e.__qscrollfire=o},updated(e,t){t.value!==t.oldValue&&Mv(e.__qscrollfire,t)},beforeUnmount(e){const t=e.__qscrollfire;t.scrollTarget.removeEventListener("scroll",t.scroll,$v),delete e.__qscrollfire}});function Bv(e,{value:t,oldValue:o}){"function"===typeof t?(e.handler=t,"function"!==typeof o&&e.scrollTarget.addEventListener("scroll",e.scroll,p.passive)):e.scrollTarget.removeEventListener("scroll",e.scroll,p.passive)}var Ov=ye({name:"scroll",mounted(e,t){const o={scrollTarget:Bo(e),scroll(){o.handler(zo(o.scrollTarget),Lo(o.scrollTarget))}};Bv(o,t),e.__qscroll=o},updated(e,t){void 0!==e.__qscroll&&t.oldValue!==t.value&&Bv(e.__qscroll,t)},beforeUnmount(e){const t=e.__qscroll;t.scrollTarget.removeEventListener("scroll",t.scroll,p.passive),delete e.__qscroll}}),Vv=ye({name:"touch-hold",beforeMount(e,t){const{modifiers:o}=t;if(!0!==o.mouse&&!0!==c.has.touch)return;const n={handler:t.value,noop:m,mouseStart(e){"function"===typeof n.handler&&!0===f(e)&&($(n,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),n.start(e,!0))},touchStart(e){if(void 0!==e.target&&"function"===typeof n.handler){const t=e.target;$(n,"temp",[[t,"touchmove","move","passiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),n.start(e)}},start(e,t){n.origin=b(e);const o=Date.now();!0===c.is.mobile&&(document.body.classList.add("non-selectable"),eo(),n.styleCleanup=(e=>{n.styleCleanup=void 0;const t=()=>{document.body.classList.remove("non-selectable")};!0===e?(eo(),setTimeout(t,10)):t()})),n.triggered=!1,n.sensitivity=!0===t?n.mouseSensitivity:n.touchSensitivity,n.timer=setTimeout(()=>{eo(),n.triggered=!0,n.handler({evt:e,touch:!0!==t,mouse:!0===t,position:n.origin,duration:Date.now()-o})},n.duration)},move(e){const{top:t,left:o}=b(e);(Math.abs(o-n.origin.left)>=n.sensitivity||Math.abs(t-n.origin.top)>=n.sensitivity)&&clearTimeout(n.timer)},end(e){M(n,"temp"),void 0!==n.styleCleanup&&n.styleCleanup(n.triggered),!0===n.triggered?void 0!==e&&q(e):clearTimeout(n.timer)}},a=[600,5,7];"string"===typeof t.arg&&t.arg.length>0&&t.arg.split(":").forEach((e,t)=>{const o=parseInt(e,10);o&&(a[t]=o)}),[n.duration,n.touchSensitivity,n.mouseSensitivity]=a,e.__qtouchhold=n,!0===o.mouse&&$(n,"main",[[e,"mousedown","mouseStart",`passive${!0===o.mouseCapture?"Capture":""}`]]),!0===c.has.touch&&$(n,"main",[[e,"touchstart","touchStart",`passive${!0===o.capture?"Capture":""}`],[e,"touchend","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchhold;void 0!==o&&t.oldValue!==t.value&&("function"!==typeof t.value&&o.end(),o.handler=t.value)},beforeUnmount(e){const t=e.__qtouchhold;void 0!==t&&(M(t,"main"),M(t,"temp"),clearTimeout(t.timer),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchhold)}});const zv={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Lv=new RegExp(`^([\\d+]+|${Object.keys(zv).join("|")})$`,"i");function Ev(e,t){const{top:o,left:n}=b(e);return Math.abs(n-t.left)>=7||Math.abs(o-t.top)>=7}var Pv=ye({name:"touch-repeat",beforeMount(e,{modifiers:t,value:o,arg:n}){const a=Object.keys(t).reduce((e,t)=>{if(!0===Lv.test(t)){const o=isNaN(parseInt(t,10))?zv[t.toLowerCase()]:parseInt(t,10);o>=0&&e.push(o)}return e},[]);if(!0!==t.mouse&&!0!==c.has.touch&&0===a.length)return;const l="string"===typeof n&&n.length>0?n.split(":").map(e=>parseInt(e,10)):[0,600,300],i=l.length-1,r={keyboard:a,handler:o,noop:m,mouseStart(e){void 0===r.event&&"function"===typeof r.handler&&!0===f(e)&&($(r,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),r.start(e,!0))},keyboardStart(t){if("function"===typeof r.handler&&!0===W(t,a)){if((0===l[0]||void 0!==r.event)&&(q(t),e.focus(),void 0!==r.event))return;$(r,"temp",[[document,"keyup","end","notPassiveCapture"],[document,"click","end","notPassiveCapture"]]),r.start(t,!1,!0)}},touchStart(e){if(void 0!==e.target&&"function"===typeof r.handler){const t=e.target;$(r,"temp",[[t,"touchmove","move","passiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),r.start(e)}},start(e,t,o){function n(e){r.styleCleanup=void 0,document.documentElement.style.cursor="";const t=()=>{document.body.classList.remove("non-selectable")};!0===e?(eo(),setTimeout(t,10)):t()}!0!==o&&(r.origin=b(e)),!0===c.is.mobile&&(document.body.classList.add("non-selectable"),eo(),r.styleCleanup=n),r.event={touch:!0!==t&&!0!==o,mouse:!0===t,keyboard:!0===o,startTime:Date.now(),repeatCount:0};const a=()=>{if(void 0===r.event)return;0===r.event.repeatCount&&(r.event.evt=e,!0===o?r.event.keyCode=e.keyCode:r.event.position=b(e),!0!==c.is.mobile&&(document.documentElement.style.cursor="pointer",document.body.classList.add("non-selectable"),eo(),r.styleCleanup=n)),r.event.duration=Date.now()-r.event.startTime,r.event.repeatCount+=1,r.handler(r.event);const t=i<r.event.repeatCount?i:r.event.repeatCount;r.timer=setTimeout(a,l[t])};0===l[0]?a():r.timer=setTimeout(a,l[0])},move(e){void 0!==r.event&&!0===Ev(e,r.origin)&&clearTimeout(r.timer)},end(e){void 0!==r.event&&(void 0!==r.styleCleanup&&r.styleCleanup(!0),void 0!==e&&r.event.repeatCount>0&&q(e),M(r,"temp"),clearTimeout(r.timer),r.event=void 0)}};e.__qtouchrepeat=r,!0===t.mouse&&$(r,"main",[[e,"mousedown","mouseStart",`passive${!0===t.mouseCapture?"Capture":""}`]]),!0===c.has.touch&&$(r,"main",[[e,"touchstart","touchStart",`passive${!0===t.capture?"Capture":""}`],[e,"touchend","noop","notPassiveCapture"]]),a.length>0&&$(r,"main",[[e,"keydown","keyboardStart",`notPassive${!0===t.keyCapture?"Capture":""}`]])},updated(e,{oldValue:t,value:o}){const n=e.__qtouchrepeat;void 0!==n&&t!==o&&("function"!==typeof o&&n.end(),n.handler=o)},beforeUnmount(e){const t=e.__qtouchrepeat;void 0!==t&&(clearTimeout(t.timer),M(t,"main"),M(t,"temp"),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchrepeat)}}),Av=Object.freeze({__proto__:null,ClosePopup:Kd,Intersection:Vs,Morph:_v,Mutation:kv,Ripple:Dt,ScrollFire:Tv,Scroll:Ov,TouchHold:Vv,TouchPan:wa,TouchRepeat:Pv,TouchSwipe:En});function Fv(e,t=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue(`--q-${e}`).trim()||null}let Rv;function Iv(){return c.is.winphone?"msapplication-navbutton-color":c.is.safari?"apple-mobile-web-app-status-bar-style":"theme-color"}function jv(e){const t=document.getElementsByTagName("META");for(const o in t)if(t[o].name===e)return t[o]}function Nv(e){void 0===Rv&&(Rv=Iv());let t=jv(Rv);const o=void 0===t;o&&(t=document.createElement("meta"),t.setAttribute("name",Rv)),t.setAttribute("content",e),o&&document.head.appendChild(t)}var Dv={set:!0!==c.is.mobile||!0!==c.is.nativeMobile&&!0!==c.is.winphone&&!0!==c.is.safari&&!0!==c.is.webkit&&!0!==c.is.vivaldi?m:e=>{const t=e||Fv("primary");!0===c.is.nativeMobile&&window.StatusBar?window.StatusBar.backgroundColorByHexString(t):Nv(t)},install({$q:e}){e.addressbarColor=this,e.config.addressbarColor&&this.set(e.config.addressbarColor)}};const Hv={};function Qv(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement}function Uv(e,t){try{const o=e[t]();return void 0===o?Promise.resolve():o}catch(e){return Promise.reject(e)}}const Wv=v({isActive:!1,activeEl:null},{isCapable:!1,request(e){if(!0===Wv.isCapable&&!1===Wv.isActive){const t=e||document.documentElement;return Uv(t,Hv.request)}return Wv.__getErr()},exit(){return!0===Wv.isCapable&&!0===Wv.isActive?Uv(document,Hv.exit):Wv.__getErr()},toggle(e){return!0===Wv.isActive?Wv.exit():Wv.request(e)},install({$q:e}){e.fullscreen=this}});{function Yv(){Hv.request=["requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen"].find(e=>void 0!==document.documentElement[e]),Wv.isCapable=void 0!==Hv.request,!1!==Wv.isCapable?(Wv.__getErr=(()=>Promise.resolve()),Hv.exit=["exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen"].find(e=>document[e]),Wv.isActive=!!Qv(),["onfullscreenchange","onmsfullscreenchange","onwebkitfullscreenchange"].forEach(e=>{document[e]=(()=>{Wv.isActive=!1===Wv.isActive,!1===Wv.isActive?(Wv.activeEl=null,bo(document.body)):(Wv.activeEl=Qv(),bo(Wv.activeEl===document.documentElement?document.body:Wv.activeEl))})})):Wv.__getErr=(()=>Promise.reject("Not capable"))}Yv()}const Kv=v({appVisible:!0},{install({$q:e}){Object.defineProperty(e,"appVisible",{get:()=>this.appVisible})}});{let e,t;if("undefined"!==typeof document.hidden?(e="hidden",t="visibilitychange"):"undefined"!==typeof document.msHidden?(e="msHidden",t="msvisibilitychange"):"undefined"!==typeof document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange"),t&&"undefined"!==typeof document[e]){const o=()=>{Kv.appVisible=!document[e]};document.addEventListener(t,o,!1)}}var Xv=be({name:"BottomSheetPlugin",props:{...it,title:String,message:String,actions:Array,grid:Boolean,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),a=rt(t,n.$q),l=e.ref(null);function i(){l.value.show()}function r(){l.value.hide()}function s(e){o("ok",e),r()}function u(){o("hide")}function c(){return t.actions.map(t=>{const o=t.avatar||t.img;return void 0===t.label?e.h(_r,{class:"col-all",dark:a.value}):e.h("div",{class:["q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position",t.class],tabindex:0,onClick(){s(t)},onKeyup(e){13===e.keyCode&&s(t)}},[e.h("div",{class:"q-focus-helper"}),t.icon?e.h(ot,{name:t.icon,color:t.color}):o?e.h("img",{class:t.avatar?"q-bottom-sheet__avatar":"",src:o}):e.h("div",{class:"q-bottom-sheet__empty-icon"}),e.h("div",t.label)])})}function d(){return t.actions.map(t=>{const o=t.avatar||t.img;return void 0===t.label?e.h(_r,{spaced:!0,dark:a.value}):e.h(er,{class:["q-bottom-sheet__item",t.classes],tabindex:0,clickable:!0,dark:a.value,onClick(){s(t)},onKeyup(e){13===e.keyCode&&s(t)}},()=>[e.h(tr,{avatar:!0},()=>t.icon?e.h(ot,{name:t.icon,color:t.color}):o?e.h("img",{class:t.avatar?"q-bottom-sheet__avatar":"",src:o}):null),e.h(tr,()=>t.label)])})}function v(){const o=[];return t.title&&o.push(e.h(Mn,{class:"q-dialog__title"},()=>t.title)),t.message&&o.push(e.h(Mn,{class:"q-dialog__message"},()=>t.message)),o.push(!0===t.grid?e.h("div",{class:"row items-stretch justify-start"},c()):e.h("div",d())),o}function p(){return[e.h($n,{class:[`q-bottom-sheet q-bottom-sheet--${!0===t.grid?"grid":"list"}`+(!0===a.value?" q-bottom-sheet--dark q-dark":""),t.cardClass],style:t.cardStyle},v)]}return Object.assign(n,{show:i,hide:r}),()=>e.h(Qi,{ref:l,position:"bottom",onHide:u},p)}});function Zv(e,t){for(const o in t)"spinner"!==o&&Object(t[o])===t[o]?(e[o]=Object(e[o])!==e[o]?{}:{...e[o]},Zv(e[o],t[o])):e[o]=t[o]}function Gv(t,o,n){return a=>{let l,i;const r=!0===o&&void 0!==a.component;if(!0===r){const{component:e,componentProps:t}=a;l="string"===typeof e?n.component(e):e,i=t}else{const{class:e,style:o,...n}=a;l=t,i=n,void 0!==e&&(n.cardClass=e),void 0!==o&&(n.cardStyle=o)}let s,u=!1;const c=e.ref(null),d=ho(),v=e=>{null!==c.value&&void 0!==c.value[e]?c.value[e]():s.$.subTree&&s.$.subTree.component&&s.$.subTree.component.proxy&&s.$.subTree.component.proxy[e]?s.$.subTree.component.proxy[e]():console.error("[Quasar] Incorrectly defined Dialog component")},p=[],m=[],f={onOk(e){return p.push(e),f},onCancel(e){return m.push(e),f},onDismiss(e){return p.push(e),m.push(e),f},hide(){return v("hide"),f},update(e){if(null!==s){if(!0===r)Object.assign(i,e);else{const{class:t,style:o,...n}=e;void 0!==t&&(n.cardClass=t),void 0!==o&&(n.cardStyle=o),Zv(i,n)}s.$forceUpdate()}return f}},h=e=>{u=!0,p.forEach(t=>{t(e)})},g=()=>{b.unmount(d),go(d),b=null,s=null,!0!==u&&m.forEach(e=>{e()})};let b=me({name:"QGlobalDialog",setup(){return()=>e.h(l,{ref:c,...i,onOk:h,onHide:g})}},n);function y(){v("show")}return s=b.mount(d),null!==c.value?y():"function"===typeof l.__asyncLoader&&l.__asyncLoader().then(()=>{e.nextTick(y)}),f}}var Jv={install({$q:e,parentApp:t}){!0===this.__installed?e.bottomSheet=Gv(Xv,!1,t):this.create=e.bottomSheet=Gv(Xv,!1,t)}};function ep(e){return encodeURIComponent(e)}function tp(e){return decodeURIComponent(e)}function op(e){return ep(e===Object(e)?JSON.stringify(e):""+e)}function np(e){if(""===e)return e;0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),e=tp(e.replace(/\+/g," "));try{e=JSON.parse(e)}catch(e){}return e}function ap(e){const t=new Date;return t.setMilliseconds(t.getMilliseconds()+e),t.toUTCString()}function lp(e){let t=0;const o=e.match(/(\d+)d/),n=e.match(/(\d+)h/),a=e.match(/(\d+)m/),l=e.match(/(\d+)s/);return o&&(t+=864e5*o[1]),n&&(t+=36e5*n[1]),a&&(t+=6e4*a[1]),l&&(t+=1e3*l[1]),0===t?e:ap(t)}function ip(e,t,o={},n){let a,l;void 0!==o.expires&&("[object Date]"===Object.prototype.toString.call(o.expires)?a=o.expires.toUTCString():"string"===typeof o.expires?a=lp(o.expires):(l=parseFloat(o.expires),a=!1===isNaN(l)?ap(864e5*l):o.expires));const i=`${ep(e)}=${op(t)}`,r=[i,void 0!==a?"; Expires="+a:"",o.path?"; Path="+o.path:"",o.domain?"; Domain="+o.domain:"",o.sameSite?"; SameSite="+o.sameSite:"",o.httpOnly?"; HttpOnly":"",o.secure?"; Secure":"",o.other?"; "+o.other:""].join("");if(n){n.req.qCookies?n.req.qCookies.push(r):n.req.qCookies=[r],n.res.setHeader("Set-Cookie",n.req.qCookies);let t=n.req.headers.cookie||"";if(void 0!==a&&l<0){const o=rp(e,n);void 0!==o&&(t=t.replace(`${e}=${o}; `,"").replace(`; ${e}=${o}`,"").replace(`${e}=${o}`,""))}else t=t?`${i}; ${t}`:r;n.req.headers.cookie=t}else document.cookie=r}function rp(e,t){const o=t?t.req.headers:document,n=o.cookie?o.cookie.split("; "):[],a=n.length;let l,i,r,s=e?null:{},u=0;for(;u<a;u++)if(l=n[u].split("="),i=tp(l.shift()),r=l.join("="),e){if(e===i){s=np(r);break}}else s[i]=r;return s}function sp(e,t,o){ip(e,"",{expires:-1,...t},o)}function up(e,t){return null!==rp(e,t)}function cp(e){return{get:t=>rp(t,e),set:(t,o,n)=>ip(t,o,n,e),has:t=>up(t,e),remove:(t,o)=>sp(t,o,e),getAll:()=>rp(null,e)}}const dp={install({$q:e,ssrContext:t}){e.cookies=this}};Object.assign(dp,cp());var vp=be({name:"DialogPlugin",props:{...it,title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:"ok",validator:e=>["ok","cancel","none"].includes(e)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),{$q:a}=n,l=rt(t,a),i=e.ref(null),r=e.ref(void 0!==t.prompt?t.prompt.model:void 0!==t.options?t.options.model:void 0),s=e.computed(()=>"q-dialog-plugin"+(!0===l.value?" q-dialog-plugin--dark q-dark":"")+(!1!==t.progress?" q-dialog-plugin--progress":"")),u=e.computed(()=>t.color||(!0===l.value?"amber":"primary")),c=e.computed(()=>!1===t.progress?null:Object(t.progress)===t.progress?{component:t.progress.spinner||Tt,props:{color:t.progress.color||u.value}}:{component:Tt,props:{color:u.value}}),d=e.computed(()=>void 0!==t.prompt||void 0!==t.options),v=e.computed(()=>{if(!0!==d.value)return{};const{model:e,isValid:o,items:n,...a}=void 0!==t.prompt?t.prompt:t.options;return a}),p=e.computed(()=>Object(t.ok)===t.ok?a.lang.label.ok:!0===t.ok?a.lang.label.ok:t.ok),m=e.computed(()=>Object(t.cancel)===t.cancel?a.lang.label.cancel:!0===t.cancel?a.lang.label.cancel:t.cancel),f=e.computed(()=>{return void 0!==t.prompt?void 0!==t.prompt.isValid&&!0!==t.prompt.isValid(r.value):void 0!==t.options&&(void 0!==t.options.isValid&&!0!==t.options.isValid(r.value))}),h=e.computed(()=>({color:u.value,label:p.value,ripple:!1,...Object(t.ok)===t.ok?t.ok:{flat:!0},disable:f.value,"data-autofocus":"ok"===t.focus&&!0!==d.value||void 0,onClick:w})),g=e.computed(()=>({color:u.value,label:m.value,ripple:!1,...Object(t.cancel)===t.cancel?t.cancel:{flat:!0},"data-autofocus":"cancel"===t.focus&&!0!==d.value||void 0,onClick:x}));function b(){i.value.show()}function y(){i.value.hide()}function w(){o("ok",e.toRaw(r.value)),y()}function x(){y()}function _(){o("hide")}function S(e){r.value=e}function C(e){!0!==f.value&&"textarea"!==t.prompt.type&&!0===W(e,13)&&w()}function q(o,n){return!0===t.html?e.h(Mn,{class:o,innerHTML:n}):e.h(Mn,{class:o},()=>n)}function k(){return[e.h(Ms,{modelValue:r.value,...v.value,color:u.value,dense:!0,autofocus:!0,dark:l.value,"onUpdate:modelValue":S,onKeyup:C})]}function $(){return[e.h(Xs,{modelValue:r.value,...v.value,color:u.value,options:t.options.items,dark:l.value,"onUpdate:modelValue":S})]}function M(){const o=[];return t.cancel&&o.push(e.h(Gt,g.value)),t.ok&&o.push(e.h(Gt,h.value)),e.h(Tn,{class:!0===t.stackButtons?"items-end":"",vertical:t.stackButtons,align:"right"},()=>o)}function T(){const o=[];return t.title&&o.push(q("q-dialog__title",t.title)),!1!==t.progress&&o.push(e.h(Mn,{class:"q-dialog__progress"},()=>e.h(c.value.component,c.value.props))),t.message&&o.push(q("q-dialog__message",t.message)),void 0!==t.prompt?o.push(e.h(Mn,{class:"scroll q-dialog-plugin__form"},k)):void 0!==t.options&&o.push(e.h(_r,{dark:l.value}),e.h(Mn,{class:"scroll q-dialog-plugin__form"},$),e.h(_r,{dark:l.value})),(t.ok||t.cancel)&&o.push(M()),o}function B(){return[e.h($n,{class:[s.value,t.cardClass],style:t.cardStyle,dark:l.value},T)]}return e.watch(()=>t.prompt&&t.prompt.model,S),e.watch(()=>t.options&&t.options.model,S),Object.assign(n,{show:b,hide:y}),()=>e.h(Qi,{ref:i,onHide:_},B)}}),pp={install({$q:e,parentApp:t}){!0===this.__installed?e.dialog=Gv(vp,!0,t):this.create=e.dialog=Gv(vp,!0,t)}};const mp={ref:"bar"};var fp=v({isActive:!1},{start:m,stop:m,increment:m,setDefaults:m,install({$q:t,parentApp:o}){if(t.loadingBar=this,!0===this.__installed)return void(void 0!==t.config.loadingBar&&this.setDefaults(t.config.loadingBar));const n=e.ref(void 0!==t.config.loadingBar?{...t.config.loadingBar,...mp}:{...mp}),a=ho("q-loading-bar"),l=me({name:"LoadingBar",devtools:{hide:!0},setup:()=>()=>e.h(Pe,n.value)},o).mount(a);Object.assign(this,{start:e=>{const t=l.$refs.bar;t.start(e),this.isActive=t.calls>0},stop:()=>{const e=l.$refs.bar;e.stop(),this.isActive=e.calls>0},increment(){const e=l.$refs.bar;e.increment.apply(null,arguments)},setDefaults:e=>{e===Object(e)&&(n.value={...n.value,...e,...mp})}})}});let hp,gp,bp,yp=0,wp={};const xp={delay:0,message:!1,html:!1,spinnerSize:80,spinnerColor:"",messageColor:"",backgroundColor:"",boxClass:"",spinner:Tt,customClass:""},_p={...xp},Sp=v({isActive:!1},{show(t){if(wp=t===Object(t)&&!0===t.ignoreDefaults?{...xp,...t}:{..._p,...t},Sp.isActive=!0,void 0!==hp)return wp.uid=yp,void gp.$forceUpdate();wp.uid=++yp,clearTimeout(bp),bp=setTimeout(()=>{bp=void 0;const t=ho("q-loading");hp=e.createApp({name:"QLoading",setup(){function o(){!0!==Sp.isActive&&void 0!==hp&&(Ii(!1),hp.unmount(t),go(t),hp=void 0,gp=void 0)}function n(){if(!0!==Sp.isActive)return null;const t=[e.h(wp.spinner,{class:"q-loading__spinner",color:wp.spinnerColor,size:wp.spinnerSize})];return wp.message&&t.push(e.h("div",{class:"q-loading__message"+(wp.messageColor?` text-${wp.messageColor}`:""),[!0===wp.html?"innerHTML":"textContent"]:wp.message})),e.h("div",{class:"q-loading fullscreen flex flex-center z-max "+wp.customClass.trim(),key:wp.uid},[e.h("div",{class:"q-loading__backdrop"+(wp.backgroundColor?` bg-${wp.backgroundColor}`:"")}),e.h("div",{class:"q-loading__box column items-center "+wp.boxClass},t)])}return e.onMounted(()=>{Ii(!0)}),()=>e.h(e.Transition,{name:"q-transition--fade",appear:!0,onAfterLeave:o},n)}}),gp=hp.mount(t)},wp.delay)},hide(){!0===Sp.isActive&&(void 0!==bp&&(clearTimeout(bp),bp=void 0),Sp.isActive=!1)},setDefaults(e){e===Object(e)&&Object.assign(_p,e)},install({$q:e}){e.loading=this,void 0!==e.config.loading&&this.setDefaults(e.config.loading)}});let Cp,qp;const kp=[];function $p(e){e.title&&(e.title=e.titleTemplate?e.titleTemplate(e.title):e.title,delete e.titleTemplate),[["meta","content"],["link","href"]].forEach(t=>{const o=e[t[0]],n=t[1];for(const e in o){const t=o[e];t.template&&(1===Object.keys(t).length?delete o[e]:(t[n]=t.template(t[n]||""),delete t.template))}})}function Mp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const o in e)if(e[o]!==t[o])return!0}function Tp(e){return!1===["class","style"].includes(e)}function Bp(e){return!1===["lang","dir"].includes(e)}function Op(e,t){const o={},n={};return void 0===e?{add:t,remove:n}:(e.title!==t.title&&(o.title=t.title),["meta","link","script","htmlAttr","bodyAttr"].forEach(a=>{const l=e[a],i=t[a];if(n[a]=[],void 0!==l&&null!==l){o[a]={};for(const e in l)!1===i.hasOwnProperty(e)&&n[a].push(e);for(const e in i)!1===l.hasOwnProperty(e)?o[a][e]=i[e]:!0===Mp(l[e],i[e])&&(n[a].push(e),o[a][e]=i[e])}else o[a]=i}),{add:o,remove:n})}function Vp({add:e,remove:t}){e.title&&(document.title=e.title),Object.keys(t).length>0&&(["meta","link","script"].forEach(e=>{t[e].forEach(t=>{document.head.querySelector(`${e}[data-qmeta="${t}"]`).remove()})}),t.htmlAttr.filter(Bp).forEach(e=>{document.documentElement.removeAttribute(e)}),t.bodyAttr.filter(Tp).forEach(e=>{document.body.removeAttribute(e)})),["meta","link","script"].forEach(t=>{const o=e[t];for(const e in o){const n=document.createElement(t);for(const t in o[e])"innerHTML"!==t&&n.setAttribute(t,o[e][t]);n.setAttribute("data-qmeta",e),"script"===t&&(n.innerHTML=o[e].innerHTML||""),document.head.appendChild(n)}}),Object.keys(e.htmlAttr).filter(Bp).forEach(t=>{document.documentElement.setAttribute(t,e.htmlAttr[t]||"")}),Object.keys(e.bodyAttr).filter(Tp).forEach(t=>{document.body.setAttribute(t,e.bodyAttr[t]||"")})}function zp(){const e={title:"",titleTemplate:null,meta:{},link:{},script:{},htmlAttr:{},bodyAttr:{}};for(let t=0;t<kp.length;t++){const{active:o,val:n}=kp[t];!0===o&&hr(!0,e,n)}$p(e),Vp(Op(qp,e)),qp=e}function Lp(){clearTimeout(Cp),Cp=setTimeout(zp,50)}var Ep={install(e){!0!==this.__installed&&!0===t.value&&(qp=window.__Q_META__,document.getElementById("qmeta-init").remove())}};let Pp,Ap=0;const Fp={},Rp=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],Ip=["top-left","top-right","bottom-left","bottom-right"],jp={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}},Np={},Dp={};function Hp(e,t){return console.error(`Notify: ${e}`,t),!1}function Qp(t){return be({name:"QNotifications",devtools:{hide:!0},setup(){const o={},n=[];function a(e){clearTimeout(e.meta.timer);const t=o[e.position].value.indexOf(e);if(-1!==t){void 0!==e.group&&delete Np[e.meta.group];const a=n[""+e.meta.uid];if(a){const{width:e,height:t}=getComputedStyle(a);a.style.left=`${a.offsetLeft}px`,a.style.width=e,a.style.height=t}o[e.position].value.splice(t,1),"function"===typeof e.onDismiss&&e.onDismiss()}}return Rp.forEach(t=>{o[t]=e.ref([]);const n=!0===["left","center","right"].includes(t)?"center":t.indexOf("top")>-1?"top":"bottom",a=t.indexOf("left")>-1?"start":t.indexOf("right")>-1?"end":"center",l=["left","right"].includes(t)?`items-${"left"===t?"start":"end"} justify-center`:"center"===t?"flex-center":`items-${a}`;Dp[t]=`q-notifications__list q-notifications__list--${n} fixed column no-wrap ${l}`}),Pp=((n,l)=>{if(!n)return Hp("parameter required");let i;const r={textColor:"white"};if(!0!==n.ignoreDefaults&&Object.assign(r,Fp),Object(n)!==n&&(r.type&&Object.assign(r,jp[r.type]),n={message:n}),Object.assign(r,jp[n.type||r.type],n),"function"===typeof r.icon&&(r.icon=r.icon(t)),r.spinner?(!0===r.spinner&&(r.spinner=Tt),r.spinner=e.markRaw(r.spinner)):r.spinner=!1,r.meta={hasMedia:Boolean(!1!==r.spinner||r.icon||r.avatar),hasText:Boolean(void 0!==r.message&&null!==r.message||void 0!==r.caption&&null!==r.caption)},r.position){if(!1===Rp.includes(r.position))return Hp("wrong position",n)}else r.position="bottom";if(void 0===r.timeout)r.timeout=5e3;else{const e=parseInt(r.timeout,10);if(isNaN(e)||e<0)return Hp("wrong timeout",n);r.timeout=e}0===r.timeout?r.progress=!1:!0===r.progress&&(r.meta.progressClass="q-notification__progress"+(r.progressClass?` ${r.progressClass}`:""),r.meta.progressStyle={animationDuration:`${r.timeout+1e3}ms`});const s=(!0===Array.isArray(n.actions)?n.actions:[]).concat(!0!==n.ignoreDefaults&&!0===Array.isArray(Fp.actions)?Fp.actions:[]).concat(void 0!==jp[n.type]&&!0===Array.isArray(jp[n.type].actions)?jp[n.type].actions:[]);if(r.closeBtn&&s.push({label:"string"===typeof r.closeBtn?r.closeBtn:t.lang.label.close}),r.actions=s.map(({handler:e,noDismiss:t,...o})=>({flat:!0,...o,onClick:"function"===typeof e?()=>{e(),!0!==t&&u()}:()=>{u()}})),void 0===r.multiLine&&(r.multiLine=r.actions.length>1),Object.assign(r.meta,{class:"q-notification row items-stretch"+` q-notification--${!0===r.multiLine?"multi-line":"standard"}`+(void 0!==r.color?` bg-${r.color}`:"")+(void 0!==r.textColor?` text-${r.textColor}`:"")+(void 0!==r.classes?` ${r.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(!0===r.multiLine?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(!0===r.multiLine?"":" col"),leftClass:!0===r.meta.hasText?"additional":"single",attrs:{role:"alert",...r.attrs}}),!1===r.group?(r.group=void 0,r.meta.group=void 0):(void 0!==r.group&&!0!==r.group||(r.group=[r.message,r.caption,r.multiline].concat(r.actions.map(e=>`${e.label}*${e.icon}`)).join("|")),r.meta.group=r.group+"|"+r.position),0===r.actions.length?r.actions=void 0:r.meta.actionsClass="q-notification__actions row items-center "+(!0===r.multiLine?"justify-end":"col-auto")+(!0===r.meta.hasMedia?" q-notification__actions--with-media":""),void 0!==l){clearTimeout(l.notif.meta.timer),r.meta.uid=l.notif.meta.uid;const e=o[r.position].value.indexOf(l.notif);o[r.position].value[e]=r}else{const e=Np[r.meta.group];if(void 0===e){if(r.meta.uid=Ap++,r.meta.badge=1,-1!==["left","right","center"].indexOf(r.position))o[r.position].value.splice(Math.floor(o[r.position].value.length/2),0,r);else{const e=r.position.indexOf("top")>-1?"unshift":"push";o[r.position].value[e](r)}void 0!==r.group&&(Np[r.meta.group]=r)}else{if(clearTimeout(e.meta.timer),void 0!==r.badgePosition){if(!1===Ip.includes(r.badgePosition))return Hp("wrong badgePosition",n)}else r.badgePosition=`top-${r.position.indexOf("left")>-1?"right":"left"}`;r.meta.uid=e.meta.uid,r.meta.badge=e.meta.badge+1,r.meta.badgeClass=`q-notification__badge q-notification__badge--${r.badgePosition}`+(void 0!==r.badgeColor?` bg-${r.badgeColor}`:"")+(void 0!==r.badgeTextColor?` text-${r.badgeTextColor}`:"")+(r.badgeClass?` ${r.badgeClass}`:"");const t=o[r.position].value.indexOf(e);o[r.position].value[t]=Np[r.meta.group]=r}}const u=()=>{a(r),i=void 0};return r.timeout>0&&(r.meta.timer=setTimeout(()=>{u()},r.timeout+1e3)),void 0!==r.group?e=>{void 0!==e?Hp("trying to update a grouped one which is forbidden",n):u()}:(i={dismiss:u,config:n,notif:r},void 0===l?e=>{if(void 0!==i)if(void 0===e)i.dismiss();else{const t=Object.assign({},i.config,e,{group:!1,position:r.position});Pp(t,i)}}:void Object.assign(l,i))}),()=>e.h("div",{class:"q-notifications"},Rp.map(t=>{return e.h(e.TransitionGroup,{key:t,class:Dp[t],tag:"div",name:`q-notification--${t}`},()=>o[t].value.map(t=>{const o=t.meta,a=[];if(!0===o.hasMedia&&(!1!==t.spinner?a.push(e.h(t.spinner,{class:"q-notification__spinner q-notification__spinner--"+o.leftClass})):t.icon?a.push(e.h(ot,{class:"q-notification__icon q-notification__icon--"+o.leftClass,name:t.icon,role:"img"})):t.avatar&&a.push(e.h(nt,{class:"q-notification__avatar q-notification__avatar--"+o.leftClass},()=>e.h("img",{src:t.avatar,"aria-hidden":"true"})))),!0===o.hasText){let o;const n={class:"q-notification__message col"};if(!0===t.html)n.innerHTML=t.caption?`<div>${t.message}</div><div class="q-notification__caption">${t.caption}</div>`:t.message;else{const n=[t.message];o=t.caption?[e.h("div",n),e.h("div",{class:"q-notification__caption"},[t.caption])]:n}a.push(e.h("div",n,o))}const l=[e.h("div",{class:o.contentClass},a)];return!0===t.progress&&l.push(e.h("div",{key:`${o.uid}|p|${o.badge}`,class:o.progressClass,style:o.progressStyle})),void 0!==t.actions&&l.push(e.h("div",{class:o.actionsClass},t.actions.map(t=>e.h(Gt,t)))),o.badge>1&&l.push(e.h("div",{key:`${o.uid}|${o.badge}`,class:t.meta.badgeClass,style:t.badgeStyle},[o.badge])),e.h("div",{ref:e=>{n[""+o.uid]=e},key:o.uid,class:o.class,...o.attrs},[e.h("div",{class:o.wrapperClass},l)])}))}))}})}var Up={create(e){return Pp(e)},setDefaults(e){e===Object(e)&&Object.assign(Fp,e)},registerType(e,t){t===Object(t)&&(jp[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create,e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,void 0!==e.config.notify&&this.setDefaults(e.config.notify),!0!==this.__installed){const o=ho("q-notify");me(Qp(e),t).mount(o)}}};function Wp(e){return"[object Date]"===Object.prototype.toString.call(e)?"__q_date|"+e.toUTCString():"[object RegExp]"===Object.prototype.toString.call(e)?"__q_expr|"+e.source:"number"===typeof e?"__q_numb|"+e:"boolean"===typeof e?"__q_bool|"+(e?"1":"0"):"string"===typeof e?"__q_strn|"+e:"function"===typeof e?"__q_strn|"+e.toString():e===Object(e)?"__q_objt|"+JSON.stringify(e):e}function Yp(e){const t=e.length;if(t<9)return e;const o=e.substr(0,8),n=e.substring(9);switch(o){case"__q_date":return new Date(n);case"__q_expr":return new RegExp(n);case"__q_numb":return Number(n);case"__q_bool":return Boolean("1"===n);case"__q_strn":return""+n;case"__q_objt":return JSON.parse(n);default:return e}}function Kp(){const e=()=>null;return{has:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:m,remove:m,clear:m,isEmpty:()=>!0}}function Xp(e){const t=window[e+"Storage"],o=e=>{const o=t.getItem(e);return o?Yp(o):null};return{has:e=>null!==t.getItem(e),getLength:()=>t.length,getItem:o,getIndex:e=>{return e<t.length?o(t.key(e)):null},getKey:e=>{return e<t.length?t.key(e):null},getAll:()=>{let e;const n={},a=t.length;for(let l=0;l<a;l++)e=t.key(l),n[e]=o(e);return n},getAllKeys:()=>{const e=[],o=t.length;for(let n=0;n<o;n++)e.push(t.key(n));return e},set:(e,o)=>{t.setItem(e,Wp(o))},remove:e=>{t.removeItem(e)},clear:()=>{t.clear()},isEmpty:()=>0===t.length}}const Zp=!1===c.has.webStorage?Kp():Xp("local"),Gp={install({$q:e}){e.localStorage=Zp}};Object.assign(Gp,Zp);const Jp=!1===c.has.webStorage?Kp():Xp("session"),em={install({$q:e}){e.sessionStorage=Jp}};Object.assign(em,Jp);var tm=Object.freeze({__proto__:null,AddressbarColor:Dv,AppFullscreen:Wv,AppVisibility:Kv,BottomSheet:Jv,Cookies:dp,Dark:L,Dialog:pp,LoadingBar:fp,Loading:Sp,Meta:Ep,Notify:Up,Platform:d,Screen:z,LocalStorage:Gp,SessionStorage:em});function om(e){const t=document.createElement("textarea");t.value=e,t.contentEditable=!0,t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();const o=document.execCommand("copy");return t.remove(),o}function nm(e){return void 0!==navigator.clipboard?navigator.clipboard.writeText(e):new Promise((t,o)=>{const n=om(e);n?t(!0):o(n)})}var am=e=>{const t={activated(){this.__qMeta.active=!0,Lp()},deactivated(){this.__qMeta.active=!1,Lp()},unmounted(){kp.splice(kp.indexOf(this.__qMeta),1),Lp(),this.__qMeta=void 0}};return"function"===typeof e?Object.assign(t,{computed:{__qMetaOptions(){return e.call(this)||{}}},watch:{__qMetaOptions(e){this.__qMeta.val=e,!0===this.__qMeta.active&&Lp()}},created(){this.__qMeta={active:!0,val:this.__qMetaOptions},kp.push(this.__qMeta),Lp()}}):t.created=function(){this.__qMeta={active:!0,val:e},kp.push(this.__qMeta),Lp()},t};function lm(e){setTimeout(()=>{window.URL.revokeObjectURL(e.href)},1e4),e.remove()}function im(e,t,o={}){const{mimeType:n,byteOrderMark:a,encoding:l}="string"===typeof o?{mimeType:o}:o,i=void 0!==l?new TextEncoder(l).encode([t]):t,r=void 0!==a?[a,i]:[i],s=new Blob(r,{type:n||"application/octet-stream"}),u=document.createElement("a");u.href=window.URL.createObjectURL(s),u.setAttribute("download",e),"undefined"===typeof u.download&&u.setAttribute("target","_blank"),u.classList.add("hidden"),u.style.position="fixed",document.body.appendChild(u);try{return u.click(),lm(u),!0}catch(e){return lm(u),e}}function rm(e){const t=Object.assign({noopener:!0},e),o=[];return Object.keys(t).forEach(e=>{!0===t[e]&&o.push(e)}),o.join(",")}function sm(e,t,o){let n=window.open;if(!0===d.is.cordova)if(void 0!==cordova&&void 0!==cordova.InAppBrowser&&void 0!==cordova.InAppBrowser.open)n=cordova.InAppBrowser.open;else if(void 0!==navigator&&void 0!==navigator.app)return navigator.app.loadUrl(e,{openExternal:!0});const a=n(e,"_blank",rm(o));if(a)return d.is.desktop&&a.focus(),a;t&&t()}var um=(e,t,o)=>{if(!0!==d.is.ios||void 0===window.SafariViewController)return sm(e,t,o);window.SafariViewController.isAvailable(n=>{n?window.SafariViewController.show({url:e},m,t):sm(e,t,o)})},cm=Object.freeze({__proto__:null,clone:ru,colors:cl,copyToClipboard:nm,createMetaMixin:am,createUploaderComponent:Fd,date:bi,debounce:B,dom:Rt,event:T,exportFile:im,extend:hr,format:ke,frameDebounce:au,getCssVar:Fv,noop:m,morph:dv,openURL:um,patterns:Xa,scroll:Ho,setCssVar:D,throttle:It,uid:Mr});function dm(){const{emit:t,proxy:o}=e.getCurrentInstance(),n=e.ref(null);function a(){n.value.show()}function l(){n.value.hide()}function i(e){t("ok",e),l()}function r(){t("hide")}return Object.assign(o,{show:a,hide:l}),{dialogRef:n,onDialogHide:r,onDialogOK:i,onDialogCancel:l}}const vm=["ok","hide"];function pm(t){{const o={active:!0};if("function"===typeof t){const n=e.computed(t);o.val=n.value,e.watch(n,e=>{o.val=e,!0===o.active&&Lp()})}else o.val=t;kp.push(o),Lp(),e.onActivated(()=>{o.active=!0,Lp()}),e.onDeactivated(()=>{o.active=!1,Lp()}),e.onUnmounted(()=>{kp.splice(kp.indexOf(o),1),Lp()})}}function mm(){return e.inject(te)}dm.emits=vm,dm.emitsObject=Pd(vm);var fm=Object.freeze({__proto__:null,useDialogPluginComponent:dm,useFormChild:jr,useMeta:pm,useQuasar:mm}),hm={version:"2.3.0",install(e,t){ge(e,{components:Wd,directives:Av,plugins:tm,...t})},lang:N,iconSet:ee,...Wd,...Av,...tm,...fm,...cm};return hm});